/* Shared site header for every cssgreen.com page (/, /try/, /scan/). Change it here, not in the pages.
   Self-contained: its own colours and fonts, so it looks the same whatever the page's own CSS is. */
.sh{--sh-bg:#3B2418;--sh-fg:#F3ECE2;--sh-muted:#C9B9A6;--sh-accent:#8E9A6B;--sh-focus:#E0705F;
  --sh-display:"Big Shoulders Stencil Display","Arial Narrow",Impact,sans-serif;
  --sh-body:"IBM Plex Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --sh-mono:"IBM Plex Mono",ui-monospace,Menlo,Consolas,monospace;
  position:sticky;top:env(safe-area-inset-top,0px);z-index:50;background:var(--sh-bg);color:var(--sh-fg);
  padding:10px max(16px,env(safe-area-inset-right,0px)) 10px max(16px,env(safe-area-inset-left,0px));
  font-family:var(--sh-body);font-size:16px;line-height:1.4}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .sh{--sh-bg:#0E0B08;--sh-muted:#B9A995;--sh-accent:#A7B482}}
:root[data-theme="dark"] .sh{--sh-bg:#0E0B08;--sh-muted:#B9A995;--sh-accent:#A7B482}
.sh *{box-sizing:border-box}
.sh-in{max-width:1120px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px}
.sh-left{display:flex;align-items:center;justify-content:space-between;gap:8px 12px;flex-wrap:wrap;flex:1;min-width:0}
.sh-mark{font-family:var(--sh-display);font-weight:900;font-size:24px;line-height:1.2;letter-spacing:.04em;text-decoration:none;color:var(--sh-fg)}
.sh-mark small{font-family:var(--sh-mono);font-weight:400;font-size:10px;letter-spacing:.14em;color:var(--sh-muted);margin-left:8px}
.sh-list{list-style:none;margin:0;padding:0;display:flex;gap:16px;flex-wrap:wrap;font-size:14px}
.sh-list a{text-decoration:none;color:var(--sh-muted)}
.sh-list a:hover,.sh-list a[aria-current="page"]{color:var(--sh-fg)}
.sh-list a[aria-current="page"]{text-decoration:underline;text-decoration-color:var(--sh-accent);text-decoration-thickness:2px;text-underline-offset:6px}
.sh a:focus-visible,.sh button:focus-visible{outline:2px solid var(--sh-focus);outline-offset:3px}
.sh-logo{height:62px;width:auto;opacity:.7;display:block;flex-shrink:0}
/* Phones and tablets: one Menu button instead of rows of links. Without JS the links stay visible. */
.sh-btn{display:none}
@media (max-width:1100px){
  html.js .sh-btn{display:inline-flex;align-items:center;gap:8px;margin-left:auto;min-height:44px;padding:0 14px;border:1.5px solid var(--sh-muted);border-radius:6px;background:transparent;color:var(--sh-fg);font:600 15px/1 var(--sh-body);cursor:pointer}
  html.js .sh-btn[aria-expanded="true"]{background:var(--sh-fg);color:var(--sh-bg);border-color:var(--sh-fg)}
  .sh-btn svg{width:18px;height:18px;display:block}
  html.js .sh-left{flex-wrap:nowrap}
  html.js .sh-list{display:none;position:absolute;left:0;right:0;top:100%;background:var(--sh-bg);gap:0 24px;font-size:17px;
    padding:4px max(16px,env(safe-area-inset-right,0px)) 16px max(16px,env(safe-area-inset-left,0px));
    border-top:1px solid rgba(243,236,226,.14);box-shadow:0 14px 28px rgba(0,0,0,.35);max-height:calc(100vh - 80px);overflow:auto}
  html.js .sh-list.open{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
  html.js .sh-list a{display:block;padding:13px 2px 13px 10px;border-bottom:1px solid rgba(243,236,226,.1);border-left:3px solid transparent;color:var(--sh-fg)}
  html.js .sh-list a:hover{color:var(--sh-accent)}
  html.js .sh-list a[aria-current="page"]{text-decoration:none;border-left-color:var(--sh-accent);color:var(--sh-accent)}
}
@media (max-width:760px){
  .sh{padding-block:8px}
  .sh-logo{height:40px}
  .sh-mark{display:flex;flex-direction:column;line-height:1}
  .sh-mark small{margin:5px 0 0;font-size:9px}
}
