:root{
  --bg:#0f1115; --panel:#171a21; --panel-2:#1f232c; --line:#2a2f3a;
  --text:#f2f4f8; --muted:#b4bccb;          /* muted still passes 7:1 on --bg */
  --accent:#22d3ee; --accent-ink:#04222a;   /* button text on accent */
  --ok:#4ade80; --warn:#fbbf24; --bad:#f87171;
  --radius:14px; --maxw:1180px;
  --font:'Inter',system-ui,Segoe UI,Roboto,sans-serif;
  --fs-body:1.15rem;   /* ~18.5px */
  --fs-h1:clamp(2.4rem,6vw,4rem); --fs-h2:clamp(1.7rem,3.5vw,2.4rem);
}
body{background:var(--bg);color:var(--text);font:var(--fs-body)/1.65 var(--font)}
h1,h2{font-weight:800;letter-spacing:-.02em;line-height:1.1}
.btn{min-height:48px;padding:.8rem 1.4rem;border-radius:10px;font-weight:700;
     background:var(--accent);color:var(--accent-ink);border:0}
.btn:focus-visible,a:focus-visible{outline:3px solid #fff;outline-offset:3px}
.btn.ghost{background:transparent;color:var(--text);border:2px solid var(--accent)}
.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius)}
/* public/css/site.css — APPEND */
*,*::before,*::after{box-sizing:border-box}
body{margin:0;padding-top:env(safe-area-inset-top,0px)}
a{color:var(--accent)}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 1.25rem}
.muted{color:var(--muted)}
.skip{position:absolute;left:-999px}.skip:focus{left:1rem;top:1rem;background:#fff;color:#000;padding:.6rem 1rem;z-index:100}
main.wrap{padding-top:2rem;padding-bottom:4rem;min-height:60vh}

.announce{display:flex;justify-content:center;align-items:center;gap:1rem;padding:.55rem 1rem;font-size:.95rem;font-weight:600;background:var(--panel-2);border-bottom:1px solid var(--line)}
.announce.warn{background:var(--warn);color:#1a1300}
.announce.bad{background:var(--bad);color:#1f0505}
.announce button{background:none;border:0;color:inherit;font-size:1.5rem;line-height:1;cursor:pointer;min-width:44px;min-height:44px}

.site-header{position:sticky;top:env(safe-area-inset-top,0px);z-index:50;background:rgba(15,17,21,.92);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.bar{display:flex;align-items:center;justify-content:space-between;min-height:72px;position:relative}
.brand{display:flex;align-items:center}
.logo-lts{display:none}
.site-header nav{display:flex;align-items:center;gap:.25rem}
.site-header nav a{color:var(--text);text-decoration:none;font-weight:600;padding:.7rem 1rem;border-radius:10px}
.site-header nav a:hover{background:var(--panel-2)}
.site-header nav a.active{color:var(--accent);box-shadow:inset 0 -3px 0 var(--accent)}
.site-header nav a.acct{border:2px solid var(--accent);margin-left:.5rem}
.menu-btn{display:none;min-height:48px;padding:0 1.2rem;border-radius:10px;border:2px solid var(--accent);background:transparent;color:var(--text);font:700 1rem var(--font)}

.site-footer{background:var(--panel);border-top:1px solid var(--line);padding:2rem 0 5rem}
.foot{display:flex;flex-wrap:wrap;gap:2rem;justify-content:space-between}
.site-footer nav{display:flex;flex-wrap:wrap;gap:.5rem 1.5rem}
.site-footer nav a{color:var(--text);text-decoration:none;padding:.4rem 0}
.copy{margin-top:1.5rem;font-size:.9rem}
.help-fab{display:none}

@media (max-width:860px){
  .logo-full{display:none}.logo-lts{display:block}
  .menu-btn{display:block}

  /* MOBILE MENU: when open it is a full-height panel pinned just under the header. It scrolls on its own, so long submenu
     trees (Get Help & Services, My Account) are always reachable. Its top edge (--nav-top) is set by the menu script in views/layout.ejs. */
  .site-header nav{display:none;position:fixed;top:var(--nav-top,72px);left:0;right:0;bottom:0;flex-direction:column;align-items:stretch;
    background:var(--panel);border-top:1px solid var(--line);
    padding:.75rem 1.25rem calc(2rem + env(safe-area-inset-bottom,0px));
    overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
  .site-header nav.open{display:flex}
  .site-header nav > *{flex:none}
  .site-header nav a{font-size:1.2rem;padding:1rem}
  .site-header nav a.acct{margin:.5rem 0 0;text-align:center}

  /* while the menu is open: the whole header (and the menu inside it) rises above the Get Help bar, and the page behind stops scrolling.
     The blur filter is switched off because a filtered parent would trap the fixed menu inside the header instead of the screen. */
  html.nav-open,html.nav-open body{overflow:hidden}
  html.nav-open .site-header{z-index:9999;-webkit-backdrop-filter:none;backdrop-filter:none;background:var(--bg)}
  html.nav-open .help-fab{visibility:hidden}

  .help-fab{display:block;position:fixed;left:1rem;right:1rem;bottom:calc(1rem + env(safe-area-inset-bottom,0px));z-index:60;text-align:center;background:var(--accent);color:var(--accent-ink);font-weight:800;text-decoration:none;padding:1rem;border-radius:12px;box-shadow:0 6px 24px rgba(0,0,0,.5)}
}

/* ===== THEME TOGGLE BUTTON (markup: views/partials/header.ejs and the admin dashboard; behaviour: public/js/theme.js) =====
   Dark is the default. The button shows a sun while the site is dark ("switch to light") and a moon while it is light. */
.theme-btn{display:inline-flex;align-items:center;justify-content:center;min-width:46px;min-height:46px;padding:0;border:0;border-radius:10px;background:none;color:var(--text);cursor:pointer;flex:none}
.theme-btn svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.theme-btn .i-moon{display:none}
.theme-btn:hover{background:var(--panel-2);color:var(--accent)}
.theme-btn:focus-visible{outline:3px solid #fff;outline-offset:2px}

/* short colour fade while the button is pressed (the class is removed again by theme.js) */
html.theme-anim,html.theme-anim *,html.theme-anim *::before,html.theme-anim *::after{transition:background-color .25s ease,color .25s ease,border-color .25s ease,box-shadow .25s ease!important}
@media (prefers-reduced-motion:reduce){html.theme-anim,html.theme-anim *,html.theme-anim *::before,html.theme-anim *::after{transition:none!important}}

/* ===== LIGHT MODE (only applies when <html> carries the .light-mode class; the dark theme above is untouched) =====
   Almost every page colour comes from the variables, so redefining them switches the whole site, admin dashboard included.
   The few rules below fix colours that were written directly for the dark theme. */
html.light-mode{
  --bg:#f4f6fa; --panel:#ffffff; --panel-2:#e9eef5; --line:#d3dae6;
  --text:#111827; --muted:#475467;
  --accent:#0e7490; --accent-ink:#ffffff;
  --ok:#15803d; --warn:#b45309; --bad:#b91c1c;
}
html.light-mode .theme-btn .i-sun{display:none}
html.light-mode .theme-btn .i-moon{display:block}
html.light-mode .site-header{background:rgba(255,255,255,.92)}
html.light-mode .announce.warn,html.light-mode .announce.bad{color:#fff}
html.light-mode .badge{color:#fff}                                  /* SOLD OUT stamp on shop cards */
html.light-mode :focus-visible{outline-color:#0b1220!important}     /* the white focus ring would vanish on a light page */
html.light-mode .dd-menu{box-shadow:0 16px 40px rgba(16,24,40,.16)}
html.light-mode .help-fab{box-shadow:0 6px 20px rgba(16,24,40,.25)}