/* Shared masthead, links and Tools menu. */
.site-wrap { max-width:1200px; margin:auto; padding:0 40px; }
.site-header { display:flex; align-items:center; justify-content:space-between; gap:30px; padding:23px 0; }
.site-header img { display:block; width:270px; height:auto; }
.site-header nav { display:flex; gap:28px; align-items:center; font:14px/1.65 Arial,sans-serif; }
.site-header nav a { text-decoration:none; }
.site-header nav > a { min-height:44px; display:inline-flex; align-items:center; }
.site-header nav > a:hover { text-decoration:underline; text-underline-offset:4px; }
.site-header :focus-visible { outline:3px solid #caab56; outline-offset:4px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.tools-menu { position:relative; z-index:10; flex-shrink:0; }
.tools-menu summary { display:flex; align-items:center; justify-content:center; gap:4px; min-width:48px; min-height:48px; list-style:none; cursor:pointer; border:1px solid transparent; border-radius:10px; }
.tools-menu summary::-webkit-details-marker { display:none; }
.tools-menu summary:hover,.tools-menu[open] summary { background:#e7eee6; border-color:#cbd9cb; }
.tools-menu[open] .tools-chevron { transform:rotate(180deg); }
.tools-panel { position:absolute; right:0; top:calc(100% + 10px); width:264px; max-width:calc(100vw - 40px); padding:8px; background:#fff; border:1px solid #d8e2d7; border-radius:12px; box-shadow:0 14px 36px #19392f20; }
.tools-item { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:48px; padding:11px 12px; border-radius:6px; font-size:14px; white-space:nowrap; }
.tools-item[href]:hover,.tools-signout button:hover { background:#edf3eb; }
.tools-unavailable { color:#68766e; border-top:1px solid #edf0e9; border-radius:0; margin-top:4px; }
.tools-badge { font-size:10px; font-weight:600; letter-spacing:.02em; padding:3px 7px; border-radius:4px; background:#eef2eb; color:#53665a; }
.tools-protected { border-top:1px solid #edf0e9; margin-top:4px; padding-top:4px; }
.tools-item--parent { font-weight:600; }
.tools-item--child { margin-inline-start:14px; padding-inline-start:14px; }
.tools-signout { margin-top:4px; }
.tools-signout button { width:100%; background:transparent; border:none; color:inherit; font:inherit; cursor:pointer; }
@media(max-width:850px) {
    .site-wrap { padding:0 25px; }
    .site-header img { width:220px; }
    .site-header nav { gap:18px; }
}
@media(max-width:600px) {
    .site-header { position:relative; align-items:flex-start; flex-direction:column; gap:17px; }
    .site-header img { width:min(190px,65vw); }
    .site-header nav { width:100%; justify-content:space-between; }
    .site-header .tools-menu { position:absolute; right:0; top:18px; }
    .site-header nav > a { min-height:44px; margin-block:-11px; }
}
