/* Shared styles: tokens, reset, buttons, top bar, header, footer.
   Copied verbatim from the reference design (Docs/reference/index.html). Do not change values. */
:root{
  --green:#0d4a2b;
  --green-2:#0b3f24;
  --green-ink:#123d27;
  --mint:#eef5ef;
  --mint-2:#e6f0e8;
  --lime:#e3f5a3;
  --ink:#121512;
  --muted:#5b625d;
  --line:#d9e0db;
  --white:#fff;
  --error:#a3261b; /* not in the reference: form errors only (doc 5.1c) */
  --error-bg:#fbeeec;
  --radius:6px;
  --max:1180px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:"Figtree",system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:var(--ink);background:var(--white);-webkit-font-smoothing:antialiased;line-height:1.45}
a{color:inherit;text-decoration:none}
button{font:inherit;cursor:pointer;border:0;background:none;color:inherit}
svg{display:block}
.wrap{max-width:var(--max);margin:0 auto;padding:0 40px}

/* Visually hidden, still read by screen readers (not in the reference). */
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* CSP replacements for the reference's inline style attributes */
.sprite{position:absolute}
.ico-green{color:var(--green)}

/* ---------- Top bar ---------- */
.topbar{background:var(--mint);font-size:13px;color:#2b332d}
.topbar .wrap{height:32px;display:flex;align-items:center;gap:8px}
.topbar .dot{opacity:.6}

/* ---------- Header ---------- */
header{border-bottom:1px solid var(--line);background:#fff;position:sticky;top:0;z-index:20}
header .wrap{height:68px;display:flex;align-items:center;gap:40px}
.logo{display:flex;align-items:center;gap:8px;font-weight:800;font-size:25px;letter-spacing:-.01em;color:#111}
.logo svg{width:34px;height:34px}
nav{display:flex;gap:28px;font-size:14px;color:#2b332d;margin-left:40px}
nav a{display:inline-flex;align-items:center;gap:6px}
nav a:hover{color:var(--green)}
.head-cta{margin-left:auto;display:flex;gap:12px}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;white-space:nowrap;flex-shrink:0;border-radius:var(--radius);font-weight:600;font-size:15px;height:44px;padding:0 22px;transition:background .15s,color .15s,border-color .15s}
.btn-dark{background:var(--green);color:#fff;border:1.5px solid var(--green)}
.btn-dark:hover{background:var(--green-2)}
.btn-outline{background:#fff;color:var(--green-ink);border:1.5px solid var(--green)}
.btn-outline:hover{background:var(--mint)}
.btn-lg{height:52px;padding:0 28px;font-size:17px}
.btn-sm{height:38px;padding:0 22px;font-size:14px}

/* ---------- Footer ---------- */
footer{border-top:1px solid var(--line)}
footer .wrap{display:flex;align-items:center;gap:18px;height:50px;font-size:11px;color:#4b524d}
footer .logo{font-size:15px;gap:5px}
footer .logo svg{width:22px;height:22px}
footer .sep{width:1px;height:18px;background:#cfd6d1}
footer .links{display:flex;gap:18px}
footer .social{display:flex;gap:12px;color:var(--green)}
footer .social svg{width:20px;height:20px}
footer .right{margin-left:auto;display:flex;align-items:center;gap:14px;font-size:10px;text-transform:uppercase}

/* ---------- Age gate (not in the reference; built from its tokens and buttons) ---------- */
.age-locked,.age-locked body{overflow:hidden}
.age-gate{position:fixed;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(18,21,18,.45);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.age-gate[hidden]{display:none}
.age-dialog{width:100%;max-width:440px;max-height:90vh;overflow-y:auto;display:flex;flex-direction:column;align-items:center;gap:16px;padding:28px;text-align:center;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 20px 50px rgba(0,0,0,.18)}
.age-dialog h2{font-size:30px;font-weight:800;letter-spacing:-.025em;line-height:1.1}
.age-text{font-size:14.5px;color:var(--muted);line-height:1.5}
.age-status{font-size:15px;font-weight:500;color:#2b332d}
.age-status.denied{font-weight:700;color:var(--green)}
.age-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;width:100%}
.age-remember{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:14px;color:var(--muted)}
.age-remember input{width:16px;height:16px;accent-color:var(--green)}

/* ---------- Cookie consent (doc 24a; not in the reference design) ---------- */
.consent{position:fixed;left:0;right:0;bottom:0;z-index:40;background:#fff;border-top:1px solid var(--line);box-shadow:0 -6px 24px rgba(18,21,18,.08)}
.consent[hidden]{display:none}
.consent-inner{display:flex;align-items:center;gap:24px;padding-top:16px;padding-bottom:16px}
.consent b{font-size:15px}
.consent p{font-size:14px;color:#3a413c;line-height:1.5;margin-top:2px;max-width:760px}
.consent a{color:var(--green-ink);font-weight:600;text-decoration:underline;text-underline-offset:3px}
.consent-actions{display:flex;gap:10px;margin-left:auto;flex-shrink:0}
.cookie-settings{margin-top:24px}

/* ---------- Responsive ---------- */
/* Deviation 6 (doc 5.1, 2026-11-16): with the extra "Guides" link the menu items wrapped onto several lines between
   981 and 1100px (the reference already wrapped at 981–1004px). Here the menu is tightened and kept on one line;
   from 1101px up the reference spacing is unchanged. */
@media (min-width:981px) and (max-width:1100px){
  nav{gap:16px;margin-left:24px}
  nav a{white-space:nowrap}
}
@media (max-width:980px){
  nav{display:none}
  footer .wrap{flex-wrap:wrap;height:auto;padding-top:14px;padding-bottom:14px}
  footer .right{margin-left:0}
}
@media (max-width:600px){
  .consent-inner{flex-direction:column;align-items:stretch;gap:12px}
  .consent-actions{margin-left:0}
  .consent-actions .btn{flex:1}
  .wrap{padding:0 16px}
  .head-cta .btn{padding:0 14px;font-size:14px}
  .logo{font-size:20px}
  /* Fix (not in the reference): the reference overflows sideways on phones because
     the logo + both header buttons do not fit. Tighten the header so it fits from 320px. */
  header .wrap{gap:12px}
  .head-cta{gap:8px}
  /* Fix (not in the reference): the top bar squeezed its three items into broken columns. */
  .topbar .wrap{height:auto;min-height:32px;padding-top:6px;padding-bottom:6px;flex-wrap:wrap;justify-content:center;column-gap:8px;row-gap:0}
  .topbar span{white-space:nowrap}
  .head-cta .btn{padding:0 12px;font-size:13px}
  /* Signed-in header (not in the reference): Sign out moves to the account menu on phones so three buttons never overflow. */
  .head-signout{display:none}
  /* Deviation 5: eight footer links do not fit on one line on phones. */
  footer .links{flex-wrap:wrap;row-gap:6px}
}
@media (max-width:400px){
  header .wrap{gap:8px}
  header .logo{font-size:16px;gap:5px}
  header .logo svg{width:26px;height:26px}
  .head-cta{gap:6px}
  .head-cta .btn{padding:0 9px;height:34px}
}
