/* The one header on every page (tools/home/header.html, stamped by tools/site_chrome.py).
   Ray, 2026-11-19: the site was a navigation mess, with five different headers. Every rule here
   sets what it needs, because older pages style bare nav, a and header elements themselves. */
.sh{position:relative;z-index:50;display:block;width:100%;margin:0;padding:0;border:0;border-bottom:1px solid #1d2028;background:#08090b;color:#f4f6fa;font:550 15px/1.3 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;box-sizing:border-box}
.sh *{box-sizing:border-box}
.sh-in{display:flex;align-items:center;gap:12px 28px;width:min(1280px,100%);margin:0 auto;padding:8px max(24px,env(safe-area-inset-left,0px)) 8px max(24px,env(safe-area-inset-right,0px))}
.sh a{color:inherit;text-decoration:none}
.sh a:focus-visible{outline:2px solid #8cf7cf;outline-offset:3px;border-radius:8px}
.sh-logo{display:flex;align-items:center;min-height:44px;flex:none}
.sh-logo img{display:block;width:auto;height:32px;max-width:none}
.sh-nav{display:flex;align-items:center;gap:24px;flex:1;min-width:0;height:auto;margin:0;padding:0;border:0;background:none}
.sh-nav a{display:inline-flex;align-items:center;min-height:44px;color:#c6ccd8}
.sh-nav a:hover{color:#f4f6fa}
.sh-nav a[aria-current]{color:#8cf7cf;box-shadow:inset 0 -2px 0 #8cf7cf}
.sh-act{display:flex;align-items:center;gap:16px;flex:none}
.sh-signin{display:inline-flex;align-items:center;min-height:44px;color:#c6ccd8}
.sh-signin:hover{color:#f4f6fa}
.sh-btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 18px;border:0;border-radius:12px;background:#8cf7cf;color:#06130e!important;font:700 15px/1 Inter,ui-sans-serif,system-ui,sans-serif;cursor:pointer;white-space:nowrap}
.sh-btn:hover{filter:brightness(1.06)}
.sh-btn.sites{background:#8da8ff;color:#0a0f22!important}
.sh-sub{display:flex;flex-wrap:wrap;gap:4px 22px;width:min(1280px,100%);margin:0 auto;padding:6px max(24px,env(safe-area-inset-left,0px)) 0;font:600 14px/1.3 Inter,ui-sans-serif,system-ui,sans-serif}
.sh-sub a{display:inline-flex;align-items:center;min-height:40px;color:#a8afbd;text-decoration:none}
.sh-sub a:hover{color:#f4f6fa}
.sh-sub a[aria-current]{color:#f4f6fa;box-shadow:inset 0 -2px 0 currentColor}
/* Older pages that centred a narrow body now centre this wrapper instead, so the header spans the page. */
body.sh-body{margin:0;max-width:none;padding:0;background:#08090b}
/* Six menu links since Philodelphio (2026-12-01): between phone and desktop widths they ran into Sign in. */
@media (min-width:701px) and (max-width:1040px){.sh-nav{gap:14px}.sh-nav a{font-size:14px}.sh-act{gap:12px}}
@media (max-width:700px){
  .sh-in{display:grid;grid-template-columns:auto 1fr;grid-template-areas:"logo act" "nav nav";gap:0 12px;padding-top:6px;padding-bottom:2px}
  .sh-logo{grid-area:logo}
  .sh-act{grid-area:act;justify-content:flex-end;gap:12px}
  /* Six links since Philosophy (2026-12-01): spread across the width so the last isn't cut off. */
  .sh-nav{grid-area:nav;gap:8px;justify-content:space-between}
  .sh-btn{min-height:40px;padding:0 14px;font-size:14px}
}
@media (max-width:360px){.sh-nav{gap:6px}.sh-nav a{font-size:14px}.sh-signin{font-size:14px}}
.sh-skip{position:absolute;left:16px;top:-60px;z-index:100;padding:10px 14px;border-radius:8px;background:#fff;color:#08090b;font-weight:600;text-decoration:none}
.sh-skip:focus{top:10px}
#content:focus{outline:none}
