/* Site header and footer for pages other than the congress home page.
   Ported from /congress/index.html and scoped under .ghc-chrome, with the home
   page's tokens set on the element itself, so a page's own .btn, .mono or
   --ink never restyles the chrome. Markup comes from scripts/build_chrome.py. */
.ghc-chrome{
  --bone:#E9F2EF; --bone-2:#F3FAF8; --paper:#F7FCFA; --panel:#D9EBE6;
  --ink:#20393A; --ink-soft:#3A5350; --ink-faint:#56726E;
  --mint:#2C8079; --lilac:#146A78; --lilac-soft:#BFEFE7; --peach:#2E8F5E; --sky:#2F79C0;
  --rose:#FF5A78; --rose-soft:#FFB3C2;
  --line:rgba(32,57,58,0.18); --ease:cubic-bezier(0.22,1,0.36,1);
  --shadow-sm:0 16px 34px -22px rgba(30,57,56,0.28);
  font-family:"Inter", system-ui, sans-serif; line-height:1.55; letter-spacing:0.01em; color:var(--ink);
  -webkit-font-smoothing:antialiased; text-align:left;
}
.ghc-chrome *, .ghc-chrome *::before, .ghc-chrome *::after{ box-sizing:border-box; }
.ghc-chrome a{ color:inherit; text-decoration:none; }
.ghc-chrome img{ display:block; max-width:100%; }
.ghc-chrome h4, .ghc-chrome .display{ font-family:"Space Grotesk", sans-serif; font-weight:600; letter-spacing:-0.02em; line-height:0.98; margin:0; }
.ghc-chrome p, .ghc-chrome address{ margin:0; }
.ghc-chrome .mono{ font-family:"JetBrains Mono", "Space Grotesk", monospace; letter-spacing:0.14em; text-transform:uppercase; font-size:0.75rem; font-weight:500; }
.ghc-chrome .wrap{ display:block; width:100%; max-width:1320px; margin:0 auto; padding:0 clamp(20px,5vw,64px); }
/* pages style bare header/footer/form/input/.btn; undo what would leak in */
header.ghc-chrome, footer.ghc-chrome{ max-width:none; margin:0; font-size:1rem; color:var(--ink); text-transform:none; }
footer.ghc-chrome{ display:block; }
.ghc-chrome a:focus-visible, .ghc-chrome button:focus-visible, .ghc-chrome input:focus-visible{ outline:2px solid var(--lilac); outline-offset:3px; border-radius:6px; }

/* ---- header: in flow here (the home page's is fixed over its hero) ---- */
header.ghc-chrome{ position:relative; z-index:800; display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:16px clamp(20px,5vw,64px); background:var(--bone); border-bottom:1px solid var(--line); }
.ghc-chrome .brand{ display:flex; align-items:center; gap:10px; font-family:"Space Grotesk"; font-weight:600; font-size:1.05rem; }
.ghc-chrome .brand-logo{ height:56px; width:auto; }
.ghc-chrome .brand .dot{ width:9px; height:9px; border-radius:50%; background:var(--rose); animation:ghc-beat 1.1s var(--ease) infinite; }
.ghc-chrome .muted{ color:var(--ink-soft); }
@keyframes ghc-beat{ 0%,100%{ transform:scale(1);} 12%{ transform:scale(1.5);} 24%{ transform:scale(1);} 36%{ transform:scale(1.32);} 48%{ transform:scale(1);} }
.ghc-chrome .nav-links{ display:flex; gap:32px; align-items:center; }
.ghc-chrome .nav-links a{ font-size:0.82rem; color:var(--ink-soft); transition:color .3s; position:relative; }
.ghc-chrome .nav-links a:hover, .ghc-chrome .nav-links a[aria-current="page"]{ color:var(--ink); }
.ghc-chrome .nav-links a:not(.btn)::after{ content:""; position:absolute; left:0; bottom:-5px; width:100%; height:1px; background:var(--lilac); transform:scaleX(0); transform-origin:right; transition:transform .4s var(--ease); }
.ghc-chrome .nav-links a:not(.btn):hover::after, .ghc-chrome .nav-links a[aria-current="page"]::after{ transform:scaleX(1); transform-origin:left; }
.ghc-chrome .nav-cta{ display:flex; align-items:center; gap:16px; }
.ghc-chrome .vf-mobile{ display:none; }
.ghc-chrome .nav-burger{ display:none; }

/* ---- the home page's glass pill buttons ---- */
.ghc-chrome .btn{ position:relative; isolation:isolate; display:inline-flex; align-items:center; gap:10px;
  font-family:"Space Grotesk"; font-weight:600; font-size:0.84rem; letter-spacing:0.02em; line-height:1.2;
  padding:13px 26px; min-height:0; width:auto; border-radius:100px; color:var(--ink); cursor:pointer; text-transform:none;
  background:color-mix(in srgb, var(--paper) 34%, transparent);
  -webkit-backdrop-filter:blur(7px) saturate(180%) brightness(1.05); backdrop-filter:blur(4px) saturate(180%) brightness(1.05);
  border:0.5px solid color-mix(in srgb, #fff 60%, transparent);
  box-shadow:0 8px 26px -10px rgba(62,42,24,0.34), inset 0 1.5px 0.5px rgba(255,255,255,0.95),
    inset 0 0 0 0.5px rgba(255,255,255,0.28), inset 0 -14px 26px -12px rgba(255,255,255,0.40);
  transition:background .4s, border-color .4s, box-shadow .4s, transform .4s var(--ease); }
.ghc-chrome .btn .btn-inner{ position:relative; z-index:2; display:inline-flex; align-items:center; gap:9px; }
.ghc-chrome .btn::before{ content:""; position:absolute; inset:0; z-index:1; border-radius:inherit; pointer-events:none;
  background:linear-gradient(125deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.14) 30%, transparent 54%); opacity:0.75; }
.ghc-chrome .btn:hover{ background:color-mix(in srgb, var(--paper) 46%, transparent); transform:translateY(-1px);
  box-shadow:0 14px 38px -12px rgba(62,42,24,0.40), 0 0 26px color-mix(in srgb, var(--lilac-soft) 55%, transparent),
    inset 0 1.5px 0.5px rgba(255,255,255,1), inset 0 0 0 0.5px rgba(255,255,255,0.38), inset 0 -16px 28px -12px rgba(255,255,255,0.48); }
.ghc-chrome .btn:active{ transform:translateY(0) scale(0.98); }
.ghc-chrome .btn.solid{ background:color-mix(in srgb, var(--lilac) 30%, color-mix(in srgb, var(--paper) 30%, transparent)); border-color:color-mix(in srgb, var(--lilac-soft) 70%, transparent); }
.ghc-chrome .btn.solid:hover{ background:color-mix(in srgb, var(--lilac) 42%, color-mix(in srgb, var(--paper) 26%, transparent)); }
.ghc-chrome .btn.rose{ background:color-mix(in srgb, var(--rose) 32%, color-mix(in srgb, var(--paper) 26%, transparent)); border-color:color-mix(in srgb, var(--rose-soft) 80%, transparent); color:#5a1020; }
.ghc-chrome .btn.rose:hover{ background:color-mix(in srgb, var(--rose) 46%, color-mix(in srgb, var(--paper) 22%, transparent)); }
.ghc-chrome .btn .arrow{ transition:transform .4s var(--ease); }
.ghc-chrome .btn:hover .arrow{ transform:translateX(4px); }
.ghc-chrome .btn.sm{ padding:9px 18px; font-size:0.78rem; }
.ghc-chrome .btn .play-tri{ width:0; height:0; border-top:5px solid transparent; border-bottom:5px solid transparent; border-left:8px solid var(--rose); }

/* ---- footer ---- */
footer.ghc-chrome{ border-top:1px solid var(--line); padding:clamp(60px,8vh,100px) 0 40px; position:relative; z-index:40; background:var(--panel); }  /* above pages' sticky filter bars */
.ghc-chrome .foot-top{ display:grid; grid-template-columns:1.4fr 0.7fr 1.1fr 0.65fr 1.15fr; gap:clamp(24px,3vw,44px); align-items:start; }
.ghc-chrome .foot-logo{ height:46px; width:auto; margin-bottom:20px; }
.ghc-chrome .foot-brand .display{ font-size:clamp(1.9rem,4vw,2.9rem); color:var(--ink); line-height:1.05; }
.ghc-chrome .foot-brand p{ color:var(--ink-soft); max-width:34ch; margin-top:14px; }
.ghc-chrome .foot-meta{ margin-top:14px; font-size:0.74rem; letter-spacing:0.14em; text-transform:uppercase; color:var(--ink-faint); line-height:1.9; }
.ghc-chrome .nowrap{ white-space:nowrap; }
.ghc-chrome .news-note{ margin-top:10px; font-size:0.78rem; color:var(--ink-faint); }
.ghc-chrome .foot-donate{ display:inline-flex; margin-top:22px; }
.ghc-chrome .foot-social{ display:flex; gap:14px; margin-top:22px; }
.ghc-chrome .foot-social a{ display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:50%; border:1px solid var(--line); color:var(--ink-soft); transition:color .3s, border-color .3s, transform .3s var(--ease); }
.ghc-chrome .foot-social a:hover{ color:var(--lilac); border-color:var(--lilac); transform:translateY(-2px); }
.ghc-chrome .foot-org{ display:block; margin-top:24px; padding-top:18px; border-top:1px solid var(--line); max-width:32ch; transition:transform .3s var(--ease); }
.ghc-chrome .foot-org:hover{ transform:translateX(3px); }
.ghc-chrome .foot-org-label{ display:block; font-family:"Space Grotesk"; font-weight:600; font-size:1rem; color:var(--ink); }
.ghc-chrome .foot-org-line{ display:block; margin-top:4px; font-size:0.82rem; line-height:1.5; color:var(--ink-soft); }
.ghc-chrome .foot-org:hover .foot-org-line{ color:var(--lilac); }
.ghc-chrome .foot-vortex-link{ display:inline-flex !important; padding:8px 0 !important; opacity:0.9; transition:opacity .3s, transform .3s var(--ease); }
.ghc-chrome .foot-vortex-link img{ height:30px; width:auto; }
.ghc-chrome .foot-vortex-link:hover{ opacity:1; transform:translateX(3px); }
.ghc-chrome .news{ padding:0; background:none; border:0; border-radius:0; box-shadow:none; display:flex; flex-direction:column; gap:10px; margin-top:24px; max-width:380px; }
.ghc-chrome .news-names, .ghc-chrome .news-row{ display:flex; gap:10px; align-items:stretch; }
.ghc-chrome .news input{ width:auto; height:auto; margin:0; box-shadow:none; flex:1; min-width:0; background:var(--paper); border:1px solid var(--line); border-radius:100px; padding:13px 18px; color:var(--ink); font-family:inherit; font-size:0.9rem; }
.ghc-chrome .news .btn{ white-space:nowrap; flex-shrink:0; }
.ghc-chrome .news input:focus{ outline:none; border-color:var(--lilac); }
.ghc-chrome .foot-col{ display:flex; flex-direction:column; }
.ghc-chrome .foot-col h4{ font-size:0.74rem; letter-spacing:0.18em; text-transform:uppercase; color:var(--ink-soft); font-weight:600; line-height:1.4; padding-bottom:12px; margin-bottom:14px; border-bottom:1px solid var(--line); }
.ghc-chrome .foot-col a:not(.btn){ display:block; white-space:nowrap; color:var(--ink); padding:10px 0; font-size:0.93rem; transition:color .3s, transform .3s var(--ease); }
.ghc-chrome .foot-col a:not(.btn):hover{ color:var(--lilac); transform:translateX(3px); }
.ghc-chrome .foot-link-hot{ font-weight:600; }
.ghc-chrome .foot-link-hot .arrow{ display:inline-block; transition:transform .3s var(--ease); }
.ghc-chrome .foot-link-hot:hover .arrow{ transform:translateX(3px); }
.ghc-chrome .foot-addr{ font-style:normal; margin-top:14px; padding-top:14px; border-top:1px dashed var(--line); }
.ghc-chrome .foot-addr a{ color:var(--ink-faint) !important; font-size:0.84rem !important; line-height:1.8; padding:0 !important; white-space:normal !important; }
.ghc-chrome .foot-addr a:hover{ color:var(--lilac) !important; transform:none !important; }
.ghc-chrome .foot-bot{ display:flex; flex-direction:column; align-items:center; gap:16px; margin-top:clamp(50px,8vh,90px); padding-top:26px; border-top:1px solid var(--line); color:var(--ink-soft); font-size:0.82rem; }
.ghc-chrome .foot-bot-row{ display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap; width:100%; }
.ghc-chrome .foot-legal{ display:flex; flex-wrap:wrap; gap:clamp(14px,2.5vw,28px); }
.ghc-chrome .foot-legal a{ color:var(--ink-soft); transition:color .3s; padding:10px 0; font-size:0.84rem; }
.ghc-chrome .foot-legal a:hover{ color:var(--ink); }
.ghc-chrome .foot-limerine{ display:inline-flex; align-items:center; gap:0.4ch; font-size:0.8rem; letter-spacing:0.02em; text-transform:none; color:var(--ink-soft); padding:8px 14px; border:1px solid var(--line); border-radius:999px; transition:border-color .35s var(--ease), color .35s, transform .35s var(--ease); }
.ghc-chrome .foot-limerine:hover{ color:var(--ink); transform:translateY(-1px); }
.ghc-chrome .foot-limerine .lm-name{ font-weight:600; background:linear-gradient(90deg, var(--mint), var(--peach), var(--sky)); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.ghc-chrome .foot-limerine .lm-heart{ color:var(--rose); display:inline-block; animation:ghc-lm-beat 1.6s ease-in-out infinite; }
@keyframes ghc-lm-beat{ 0%,100%{ transform:scale(1); } 15%{ transform:scale(1.28); } 30%{ transform:scale(1); } }

@media (max-width:1024px){
  .ghc-chrome .foot-top{ grid-template-columns:1fr 1fr; }
  .ghc-chrome .foot-brand{ grid-column:1 / -1; }
}
@media (max-width:720px){
  header.ghc-chrome{ padding:10px 16px; }
  .ghc-chrome .brand-logo{ height:44px; }
  .ghc-chrome .nav-burger{ display:inline-flex; flex-direction:column; justify-content:center; gap:5px; padding:12px; background:none; border:0; cursor:pointer; }
  .ghc-chrome .nav-burger i{ width:22px; height:2px; background:var(--ink); border-radius:2px; transition:transform .3s var(--ease), opacity .3s; }
  .ghc-chrome .nav-burger[aria-expanded="true"] i:nth-child(1){ transform:translateY(7px) rotate(45deg); }
  .ghc-chrome .nav-burger[aria-expanded="true"] i:nth-child(2){ opacity:0; }
  .ghc-chrome .nav-burger[aria-expanded="true"] i:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }
  .ghc-chrome .nav-links{ display:none; position:absolute; top:100%; left:0; right:0; flex-direction:column; align-items:flex-start; gap:0;
    background:var(--bone-2); border-bottom:1px solid var(--line); padding:10px 20px 18px; box-shadow:var(--shadow-sm); z-index:790; }
  .ghc-chrome .nav-links.open{ display:flex; }
  .ghc-chrome .nav-links a{ font-size:1rem; padding:12px 0; }
  .ghc-chrome .nav-links .btn.sm{ margin-top:10px; padding:10px 20px; }
  .ghc-chrome .nav-cta{ gap:8px; }
  .ghc-chrome .nav-cta .btn.sm{ padding:9px 14px; font-size:0.72rem; white-space:nowrap; }
  .ghc-chrome .nav-cta .btn.sm .arrow, .ghc-chrome .nav-cta .vf-pill{ display:none; }
  .ghc-chrome .vf-mobile{ display:block; }
  .ghc-chrome .foot-top{ grid-template-columns:1fr 1fr; gap:24px; }
  .ghc-chrome .foot-top > div.foot-col:last-child{ grid-column:1 / -1; }
  .ghc-chrome .foot-bot-row{ flex-direction:column; align-items:flex-start; gap:6px; }
  .ghc-chrome .foot-limerine{ flex-wrap:wrap; justify-content:center; font-size:0.72rem; }
}
@media (max-width:480px){ .ghc-chrome .news-names, .ghc-chrome .news-row{ flex-direction:column; } .ghc-chrome .news .btn{ width:100%; justify-content:center; } }
@media (prefers-reduced-motion:reduce){ .ghc-chrome *{ animation:none !important; transition:none !important; } }
