/* A balanced center column keeps the main navigation centered as account actions change. */
header.site-header{position:sticky;top:0;z-index:60;display:grid;grid-template-columns:minmax(0,1fr) min(420px,34vw) minmax(0,1fr);align-items:center;gap:0 14px;min-height:56px;height:56px;width:100%;max-width:none;margin:0;padding:0 clamp(16px,2.5vw,36px);background:#fff;border-bottom:1px solid var(--line)}
.site-header .site-header-start>.brand{justify-self:start;min-width:0;font-size:23px;line-height:1;gap:8px;text-decoration:none}
.site-header .brand-second{display:inline;font-size:inherit;line-height:inherit;margin:0;letter-spacing:0}
.site-header .brandmark{font-size:31px;line-height:1}
.site-header>nav{display:grid;grid-template-columns:repeat(4,minmax(44px,1fr));align-items:center;justify-content:center;gap:4px;width:100%;height:56px;min-width:0;margin:0;flex:none;order:initial;overflow:visible}
.site-header nav .nav-icon{display:flex;align-items:center;justify-content:center;position:relative;width:100%;min-width:44px;height:56px;margin:0;padding:0 8px;border:0;border-radius:6px;background:transparent;color:var(--muted);text-decoration:none;box-shadow:none}
.site-header nav .nav-icon svg{width:25px;height:25px;flex:none}
.site-header nav .nav-icon:hover{background:var(--wash);color:var(--teal)}
.site-header nav .nav-icon.active{background:transparent;color:var(--teal);box-shadow:none}
.site-header nav .nav-icon.active::after{content:'';position:absolute;bottom:0;left:10px;right:10px;height:3px;border-radius:2px 2px 0 0;background:var(--gold)}
.site-header nav #saved-count{top:5px;right:calc(50% - 25px);min-width:18px;height:18px;padding:0 4px;margin:0;display:flex;align-items:center;justify-content:center;border-radius:12px;font:600 10px/1 system-ui,sans-serif;font-variant-numeric:tabular-nums}
.site-header-actions{display:flex;align-items:center;justify-content:flex-end;justify-self:end;gap:9px;min-width:0}
.site-header .site-account{display:flex;flex-wrap:nowrap;align-items:center;gap:6px;margin:0;min-width:0}
.site-header .site-member-actions{display:flex;align-items:center;gap:4px}
.site-header .site-account .header-icon{display:flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;padding:10px;border:0;border-radius:50%;background:var(--wash);color:var(--ink);text-decoration:none}
.site-header .site-account .header-icon:hover{background:#e3ebe6;color:var(--teal)}
.site-header .site-account .header-icon svg{width:22px;height:22px}
.site-header .site-account #site-sign-in{min-height:44px;padding:8px 14px;border:1px solid var(--line);border-radius:22px;font:600 13px/1.4 system-ui,sans-serif;text-decoration:none;white-space:nowrap}
.site-header .site-account .site-avatar{display:flex;align-items:center;justify-content:center;position:relative;width:44px;min-width:44px;height:44px;margin:0;padding:2px;border:0;border-radius:50%;background:transparent;overflow:visible;text-decoration:none}
.site-header .site-avatar img{width:40px;height:40px;object-fit:cover;border-radius:50%}
.site-header .site-avatar #site-avatar-initials{display:flex;align-items:center;justify-content:center;width:40px;height:40px;flex:none;border:1px solid var(--line);border-radius:50%;background:var(--wash);font:650 13px/1 system-ui,sans-serif}
.site-header .site-avatar-chevron{position:absolute;right:0;bottom:0;display:flex;align-items:center;justify-content:center;width:17px;height:17px;margin:0;padding:0;border:2px solid #fff;border-radius:50%;background:#e4ebe6;color:var(--ink);box-shadow:0 0 0 1px #d7e1dc;pointer-events:none}
.site-header .site-avatar-chevron svg{width:10px;height:10px;transition:transform .15s}
.site-header .site-avatar[aria-expanded="true"] .site-avatar-chevron svg{transform:rotate(180deg)}
.site-header .about-button{flex:none;border-left:1px solid var(--line);padding:7px 0 7px 12px;font-size:11px;white-space:nowrap}
.site-header .site-profile-menu{top:calc(100% + 6px)}
.site-header .site-notification-menu{top:calc(100% + 6px)}
.site-header .nav-icon:focus-visible,.site-header .site-account button:focus-visible,.site-header .site-account a:focus-visible{outline:3px solid var(--gold);outline-offset:1px}
.site-header .site-member-actions[hidden],.site-header .site-account [hidden]{display:none!important}
@media(max-width:960px){
  header.site-header{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:48px 44px;gap:0 8px;height:93px;min-height:93px;padding:0 14px}
  .site-header .site-header-start>.brand{grid-column:1;grid-row:1;font-size:21px;gap:6px}
  .site-header .brandmark{font-size:28px}
  .site-header-actions{grid-column:2;grid-row:1;gap:6px}
  .site-header>nav{grid-column:1/-1;grid-row:2;justify-self:center;grid-template-columns:repeat(4,minmax(44px,1fr));gap:4px;width:min(420px,100%);height:44px;order:initial;flex:none;margin:0;overflow:visible}
  .site-header nav .nav-icon{height:44px;min-height:44px;min-width:44px;padding:0 8px}
  .site-header nav .nav-icon svg{width:24px;height:24px}
  .site-header nav #saved-count{top:0;right:calc(50% - 24px)}
  .site-header .site-account{gap:4px}
  .site-header .site-member-actions{gap:2px}
  .site-header .site-account .header-icon{width:44px;min-width:44px;height:44px;padding:11px}
  .site-header .site-account .site-avatar{width:44px;min-width:44px;height:44px}
  .site-header .site-account .header-icon svg{width:21px;height:21px}
}
@media(max-width:720px){
  .site-header .site-notification-menu{top:var(--notification-menu-top,54px);left:12px;right:12px;width:auto}
}
@media(max-width:360px){
  header.site-header{padding:0 12px}
  .site-header .site-header-start>.brand{font-size:18px;gap:5px}
  .site-header .brandmark{font-size:25px}
  .site-header .site-account{gap:2px}
  .site-header .site-member-actions{gap:0}
}

/* The active routed page grows with the viewport; the footer stays after its content. */
body:has(>header.site-header){display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
body:has(>header.site-header)>header.site-header{flex:0 0 auto}
body:has(>header.site-header)>#main:not([hidden]){flex:1 0 auto;width:auto;min-width:0}
body:has(>header.site-header)>.site-page:not([hidden]){flex:1 0 auto;width:100%;min-width:0}
body:has(>header.site-header)>footer{flex:0 0 auto;width:100%;margin-top:auto}


body:has(>header.site-header)>.skip:focus{z-index:80}
