/* GolfSec Academy design system.
   Tokens are taken from golfsec.co.uk (template_base CSS variables), plus accessibility fixes:
   - --gold-text (#7d6533) for gold-coloured text on light backgrounds (>= 5:1)
   - gold buttons use --ink text (white on gold fails WCAG at ~2.6:1)
   No inline styles anywhere (strict CSP: style-src 'self'). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.260c81a4759b.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
    U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.1ad231aac0a8.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --green: #0f3d2e;
  --green-2: #14503b;
  --green-3: #1c5c45;
  --gold: #b99b5e;
  --gold-d: #a2854a;
  --gold-text: #7d6533;
  --ink: #1b211e;
  --muted: #5c6b64;
  --paper: #f6f5f1;
  --card: #ffffff;
  --line: #e5e7e2;
  --line-2: #d9ddd6;
  --tint: #eff4f1;
  --dark: #1b1b1b;

  --ok: #1d6b45;        /* 6.4:1 on white */
  --ok-bg: #e5f2ea;
  --warn: #8a5a00;      /* 5.6:1 on white */
  --warn-bg: #fbf1dc;
  --bad: #a3262a;       /* 6.9:1 on white */
  --bad-bg: #f9e5e5;
  --info-bg: #e8eef4;

  --radius-btn: 10px;
  --radius-card: 16px;
  --radius-feature: 20px;
  --shadow: 0 1px 2px rgb(15 61 46 / 6%), 0 8px 24px rgb(15 61 46 / 8%);
  --container: 1180px;
  --focus: 3px solid #1a73e8;
  --focus-on-dark: #ffffff;
  --font: "Inter", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; color: var(--green); font-weight: 700; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; max-width: 70ch; }
a { color: var(--green-2); text-underline-offset: 2px; }
a:hover { color: var(--green); }
:focus-visible { outline: var(--focus); outline-offset: 2px; border-radius: 4px; }
/* The blue ring is under 3:1 on the dark greens (WCAG 1.4.11), so focus on dark surfaces is
   white, and on the gold demo bar it's ink. tests/test_focus_contrast.py checks the ratios. */
.site-header :focus-visible, .site-header .lang-form select:focus, .scorecard :focus-visible,
.takeaway :focus-visible, .engage-rule :focus-visible, .certificate-band :focus-visible,
.poster-band :focus-visible, .secure-cert :focus-visible { outline-color: var(--focus-on-dark); }
.demo-bar :focus-visible { outline-color: var(--ink); }
::selection { background: #d8e6dc; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .75rem 1rem;
  background: var(--card); color: var(--green); font-weight: 700; border-radius: var(--radius-btn);
}
.skip-link:focus { top: 1rem; }

/* Layout */
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.page { padding-block: 2rem 4rem; }
/* Space every top-level section of a page. Vertical margins collapse, so sections that
   already set their own spacing keep it (the larger margin wins). */
.page > * + * { margin-top: 1.5rem; }
.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 2rem; }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 1rem; align-items: center; justify-content: space-between;
  flex-wrap: wrap; }
.page-head { margin-bottom: 1.5rem; }
.page-head p { color: var(--muted); }

/* Header */
.site-header { background: var(--green); color: #fff; }
.site-header .container { display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.25rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none;
  font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.brand:hover { color: #fff; }
.brand img, .brand svg { height: 34px; width: auto; }
.brand .brand-sub { color: var(--gold); font-weight: 600; }
/* The GolfSec logo (white shield, gold wordmark), then "Academy" after a thin rule. */
.site-header .brand { gap: .75rem; }
.site-header .brand img { height: 40px; }
.site-header .brand .brand-sub { color: #fff; font-weight: 600; letter-spacing: .02em;
  padding-left: .75rem; border-left: 1px solid rgb(255 255 255 / .35); line-height: 1.6; }
.site-nav { display: flex; gap: .25rem; flex-wrap: wrap; align-items: center; }
.site-nav a, .site-nav button.linklike {
  color: #e7efe9; text-decoration: none; padding: .5rem .75rem; border-radius: 8px;
  font-weight: 500; font-size: .98rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--green-3); color: #fff; }
.site-nav form { display: inline; margin: 0; }
.site-nav button.linklike { background: none; border: 0; cursor: pointer; font: inherit; }
.site-nav button.linklike:hover { background: var(--green-3); color: #fff; }
.club-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem;
  border: 1px solid rgb(255 255 255 / 25%); border-radius: 999px; font-size: .88rem;
  color: #e7efe9; }

.support-banner { background: var(--warn-bg); color: var(--warn); border-bottom: 1px solid #ecd9ae;
  padding: .6rem 0; font-weight: 600; font-size: .95rem; }
.support-banner .container { display: flex; gap: 1rem; align-items: center;
  justify-content: space-between; flex-wrap: wrap; }

/* Hero */
.hero {
  background:
    linear-gradient(105deg, rgb(9 38 28 / 94%), rgb(15 61 46 / 86%) 42%, rgb(15 61 46 / 70%)),
    radial-gradient(circle at 80% 20%, #2f7a5c 0, transparent 55%),
    var(--green);
  color: #fff; padding: 4.5rem 0 4rem;
}
.hero h1 { color: #fff; max-width: 22ch; }
.hero p { color: #dfe9e3; font-size: 1.15rem; max-width: 60ch; }
.eyebrow, .hero .eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700;
  color: var(--gold); margin-bottom: .75rem; }

/* Sections */
.section { padding: 84px 0; }
.section-tint { background: var(--tint); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .7rem 1.25rem; border-radius: var(--radius-btn);
  border: 2px solid transparent; font: inherit; font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer; line-height: 1.2; transition: background .15s ease;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-2); color: #fff; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-d); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--green); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.hero .btn-ghost, .on-dark .btn-ghost { color: #fff; border-color: rgb(255 255 255 / 45%); }
.btn-danger { background: var(--card); color: var(--bad); border-color: #e6b8b9; }
.btn-danger:hover { background: var(--bad-bg); }
.btn-sm { min-height: 36px; padding: .45rem .8rem; font-size: .92rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 26px 30px; }
.card-feature { border-radius: var(--radius-feature); box-shadow: var(--shadow); }
.card h2, .card h3 { margin-top: 0; }
.card-link { display: block; text-decoration: none; color: inherit;
  transition: border-color .15s, box-shadow .15s; }
.card-link:hover { border-color: var(--green-3); box-shadow: var(--shadow); color: inherit; }
.card-foot { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }

/* Stat tiles */
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 1.25rem 1.5rem; }
/* Label, value and note are often spans: stack them so they never run together. */
.stat .stat-label, .stat .stat-value, .stat .stat-note { display: block; }
.stat .stat-label { color: var(--muted); font-size: .9rem; font-weight: 600; }
.stat .stat-value { font-size: 2rem; font-weight: 800; color: var(--green); line-height: 1.1;
  margin-top: .25rem; font-variant-numeric: tabular-nums; }
.stat .stat-note { font-size: .88rem; color: var(--muted); margin-top: .25rem; }

/* Badges */
.badge { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .8rem;
  font-weight: 700; background: var(--tint); color: var(--green); border: 1px solid #d3e2d8;
  white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); border-color: #c4e0cf; }
.badge-warn { background: var(--warn-bg); color: var(--warn); border-color: #ecd9ae; }
.badge-bad { background: var(--bad-bg); color: var(--bad); border-color: #ebc3c4; }
.badge-gold { background: #f6efe0; color: var(--gold-text); border-color: #e8dbbd; }

/* Alerts / messages */
.alert { border-radius: 12px; padding: .9rem 1.1rem; border: 1px solid var(--line);
  background: var(--card); }
.alert-success { background: var(--ok-bg); border-color: #c4e0cf; color: #144d32; }
.alert-error { background: var(--bad-bg); border-color: #ebc3c4; color: #7c1c1f; }
.alert-warning { background: var(--warn-bg); border-color: #ecd9ae; color: #6b4600; }
.alert-info { background: var(--info-bg); border-color: #cfdbe7; color: #23384d; }
.messages { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .5rem; }

/* Forms */
.form { display: grid; gap: 1.1rem; max-width: 40rem; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: .35rem; }
.field .help { color: var(--muted); font-size: .9rem; margin-top: .3rem; }
.field .errorlist { list-style: none; padding: 0; margin: .35rem 0 0; color: var(--bad);
  font-weight: 600; font-size: .92rem; }
.errorlist.nonfield { list-style: none; padding: .8rem 1rem; margin: 0; border-radius: 12px;
  background: var(--bad-bg); color: #7c1c1f; border: 1px solid #ebc3c4; }
input[type="text"], input[type="email"], input[type="date"], input[type="search"],
input[type="number"], input[type="password"], input[type="file"], select, textarea {
  width: 100%; min-height: 46px; padding: .6rem .8rem; border: 1px solid var(--line-2);
  border-radius: 10px; background: #fff; font: inherit; color: var(--ink);
}
textarea { min-height: 10rem; }
input:focus, select:focus, textarea:focus { outline: var(--focus); outline-offset: 1px;
  border-color: #1a73e8; }
fieldset { border: 0; padding: 0; margin: 0; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: .4rem .9rem; }
.checks label, .check { display: flex; gap: .55rem; align-items: flex-start; font-weight: 500;
  margin: 0; cursor: pointer; }
input[type="checkbox"], input[type="radio"] { width: 1.25rem; height: 1.25rem; margin-top: .2rem;
  accent-color: var(--green); flex: none; }
.form-actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.code-input { font-size: 1.5rem; letter-spacing: .2em; text-transform: uppercase;
  font-variant-numeric: tabular-nums; text-align: center; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-card);
  background: var(--card); }
table.table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.table th, .table td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line);
  vertical-align: top; }
.table th { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
  background: #fafaf8; font-weight: 700; }
.table tr:last-child td { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Progress */
.progress { height: .65rem; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--green-3); border-radius: 999px; }
/* Width classes avoid inline styles (CSP). p0..p100 in steps of 5. */
.w-0{width:0}.w-5{width:5%}.w-10{width:10%}.w-15{width:15%}.w-20{width:20%}.w-25{width:25%}
.w-30{width:30%}.w-35{width:35%}.w-40{width:40%}.w-45{width:45%}.w-50{width:50%}.w-55{width:55%}
.w-60{width:60%}.w-65{width:65%}.w-70{width:70%}.w-75{width:75%}.w-80{width:80%}.w-85{width:85%}
.w-90{width:90%}.w-95{width:95%}.w-100{width:100%}

/* Handicap scorecard */
.scorecard { background: var(--green); color: #fff; border-radius: var(--radius-feature);
  padding: 1.5rem 1.75rem; display: grid; gap: .5rem; }
.scorecard .label { color: var(--gold); font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; font-size: .78rem; }
.scorecard .value { font-size: 3rem; font-weight: 800; line-height: 1;
  font-variant-numeric: tabular-nums; }
.scorecard .par { color: #dfe9e3; }
.scorecard a { color: #fff; }

/* Learning player */
.player { max-width: 46rem; margin-inline: auto; }
.player-progress { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem;
  color: var(--muted); font-size: .92rem; font-weight: 600; }
.player-progress .progress { flex: 1; }
.step-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-feature);
  padding: 2rem; box-shadow: var(--shadow); }
.step-card h2 { margin-top: 0; }
.story { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.avatar { width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--tint);
  color: var(--green); display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
  border: 2px solid var(--gold); }
.speech { background: var(--tint); border-radius: 0 16px 16px 16px; padding: 1rem 1.25rem; }
.speech .who { font-weight: 700; color: var(--green); font-size: .92rem; margin-bottom: .25rem; }
.options { display: grid; gap: .65rem; margin: 1.25rem 0; }
.option { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1rem;
  border: 2px solid var(--line-2); border-radius: 14px; background: #fff; cursor: pointer; }
.option:hover { border-color: var(--green-3); }
.option:has(input:checked) { border-color: var(--green); background: var(--tint); }
.option.correct { border-color: var(--ok); background: var(--ok-bg); }
.option.incorrect { border-color: var(--bad); background: var(--bad-bg); }
.feedback { border-radius: 14px; padding: 1rem 1.25rem; margin: 1rem 0; border-left: 6px solid; }
.feedback-good { background: var(--ok-bg); border-color: var(--ok); }
.feedback-bad { background: var(--warn-bg); border-color: var(--warn); }
.takeaway { background: var(--green); color: #fff; border-radius: var(--radius-feature);
  padding: 1.75rem; }
.takeaway h2, .takeaway h3 { color: var(--gold); }

/* Simulated UIs (inbox, card terminal, phone call, booking screen) */
.sim { border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: #fff;
  margin: 1rem 0; font-size: .97rem; }
.sim-bar { background: #eef0ee; padding: .5rem .9rem; font-size: .82rem; color: var(--muted);
  font-weight: 600; display: flex; gap: .5rem; align-items: center; }
.sim-bar::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: #d9534f;
  box-shadow: 1rem 0 0 #f0ad4e, 2rem 0 0 #5cb85c; margin-right: 2rem; }
.email-head { padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); display: grid; gap: .2rem; }
.email-head .k { color: var(--muted); display: inline-block; min-width: 4.5rem; }
.email-body { padding: 1.1rem; white-space: pre-line; }
.email-attach { margin: 0 1.1rem 1.1rem; padding: .5rem .8rem; border: 1px dashed var(--line-2);
  border-radius: 8px; display: inline-flex; gap: .4rem; font-size: .9rem; }
.fake-link { color: #1a56c4; text-decoration: underline; }
.terminal { background: #20262b; color: #e9f1ee; padding: 1.25rem; font-variant-numeric: tabular-nums; }
.terminal .screen { background: #b9d3c2; color: #102018; border-radius: 6px; padding: .9rem;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .95rem; }
.call { padding: 1.1rem; display: grid; gap: .75rem; }
.call .line { display: grid; grid-template-columns: auto 1fr; gap: .6rem; }
.call .line .who { font-weight: 700; color: var(--green); }
.flags { display: grid; gap: .5rem; margin: 1rem 0; }
.flag { display: flex; gap: .65rem; align-items: flex-start; padding: .75rem .9rem;
  border: 2px solid var(--line-2); border-radius: 12px; cursor: pointer; background: #fff; }
.flag:has(input:checked) { border-color: var(--green); background: var(--tint); }
.flag.was-flag { border-color: var(--ok); background: var(--ok-bg); }
.flag.not-flag { border-color: var(--line-2); background: #fafaf8; }

/* Module list */
.module-card { display: grid; gap: .5rem; }
.module-meta { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; color: var(--muted);
  font-size: .9rem; }

/* Policy document */
.doc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 2rem 2.25rem; max-width: 50rem; }
.doc h1, .doc h2, .doc h3 { color: var(--green); }
.doc ul, .doc ol { padding-left: 1.4rem; }
.doc li + li { margin-top: .3rem; }

/* Footer */
.site-footer { background: var(--dark); color: #c9cfcb; padding: 2rem 0; font-size: .92rem; }
.site-footer a { color: #e7efe9; }
.site-footer .container { display: flex; gap: 1rem 2rem; flex-wrap: wrap; justify-content: space-between; }
.site-footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* Enrolment card (printable) */
.enrol-card { width: min(100%, 26rem); border: 2px dashed var(--line-2); border-radius: 18px;
  padding: 1.75rem; background: #fff; text-align: center; margin-inline: auto; }
.enrol-card .qr { width: 220px; margin: 1rem auto; }
.enrol-card .code { font-size: 1.6rem; font-weight: 800; letter-spacing: .15em; color: var(--green);
  font-variant-numeric: tabular-nums; }

/* Poster (printable) */
.poster { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-feature);
  padding: 2.5rem; max-width: 46rem; margin-inline: auto; }
.poster .poster-band { background: var(--green); color: #fff; margin: -2.5rem -2.5rem 2rem;
  padding: 2rem 2.5rem; border-radius: var(--radius-feature) var(--radius-feature) 0 0; }
.poster .poster-band h1 { color: #fff; margin: 0; }
.poster ol { font-size: 1.2rem; display: grid; gap: .75rem; padding-left: 1.5rem; }

/* Print: committee report, enrolment cards, posters */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 11pt; }
  .site-header, .site-footer, .no-print, .messages, .support-banner { display: none !important; }
  .page { padding: 0; }
  .card, .stat, .table-wrap, .doc { border-color: #ccc; box-shadow: none; break-inside: avoid; }
  .enrol-card { border: 2px dashed #999; }
  a { color: inherit; text-decoration: none; }
  .scorecard, .takeaway, .poster .poster-band { -webkit-print-color-adjust: exact;
    print-color-adjust: exact; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important;
    scroll-behavior: auto !important; }
}

@media (max-width: 640px) {
  .card { padding: 20px; }
  .step-card { padding: 1.25rem; }
  .doc { padding: 1.25rem; }
  .section { padding: 56px 0; }
  .hero { padding: 3rem 0 2.5rem; }
}

/* Auth pages */
.auth .page { max-width: 34rem; }
.auth .page h1 { margin-bottom: .75rem; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
.auth-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-feature);
  padding: 2rem; box-shadow: var(--shadow); }

/* "I think I've clicked something": always visible in the header, never alarming */
a.nav-urgent { display: inline-flex; align-items: center; min-height: 36px; padding: .35rem .8rem;
  border-radius: 8px; background: var(--gold); color: var(--ink); font-weight: 700;
  text-decoration: none; }
a.nav-urgent:hover { background: var(--gold-d); color: var(--ink); }

/* Header: menu button (small screens), brand left; club, language and account top right. */
.site-header .container.header-top { min-height: 4rem; justify-content: flex-start; }
.header-top .brand { margin-right: auto; }
.header-utils { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  justify-content: flex-end; font-size: .92rem; }
.header-utils form { display: inline; margin: 0; }
.header-utils .linklike { background: none; border: 0; color: #e7efe9; font: inherit;
  cursor: pointer; padding: .4rem .5rem; border-radius: 8px; min-height: 36px; }
.header-utils .linklike:hover { background: var(--green-3); color: #fff; }
.chip-caret { margin-left: .35rem; font-size: .75em; }
a.club-chip { text-decoration: none; }
a.club-chip:hover { border-color: var(--gold); color: #fff; }
.lang-form select { width: auto; min-height: 36px; padding: .3rem 1.8rem .3rem .6rem;
  border-radius: 999px; border: 1px solid rgb(255 255 255 / 25%); background-color: var(--green-2);
  color: #fff; font-size: .9rem; }
.lang-form select:focus { outline: var(--focus); outline-offset: 2px; }
.lang-form option { color: var(--ink); background: #fff; }
.account-link { display: inline-flex; align-items: center; gap: .45rem; color: #fff;
  text-decoration: none; padding: .2rem .5rem .2rem .2rem; border-radius: 999px; min-height: 36px; }
.account-link:hover { background: var(--green-3); color: #fff; }
.account-avatar { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: var(--ink); font-weight: 800; font-size: .8rem; }
.js .js-hide { display: none; }
@media (max-width: 640px) {
  .site-header .container.header-top { padding-block: .6rem; }
  .header-utils { width: 100%; justify-content: flex-start; }
  .account-name { display: none; }
}
@media print { .header-utils, .menu-toggle { display: none !important; } }

/* Side menu: main links, then the Manage categories and the console as drop-downs. On small
   screens it folds away behind the header's Menu button (without JavaScript it stays open
   above the page). */
.shell { flex: 1; display: flex; }
.shell > main { flex: 1; min-width: 0; }
.sidebar { flex: none; width: 17rem; background: var(--card); border-right: 1px solid var(--line); }
.side-nav { position: sticky; top: 0; max-height: 100vh; overflow-y: auto; scrollbar-width: thin;
  padding: 1.25rem .75rem 2rem; font-size: .95rem; }
.side-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side-nav a { display: block; padding: .5rem .75rem; border-radius: 8px; color: var(--ink);
  text-decoration: none; font-weight: 500; line-height: 1.4; }
.side-nav a:hover { background: var(--tint); color: var(--green); }
.side-nav a[aria-current="page"] { background: var(--green); color: #fff; }
.side-nav a[aria-current="page"]:focus-visible { outline-offset: 1px; }
.side-heading { margin: 1.5rem .75rem .4rem; font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.side-group > summary { display: flex; align-items: center; justify-content: space-between;
  gap: .5rem; padding: .5rem .75rem; border-radius: 8px; color: var(--green); font-weight: 600;
  line-height: 1.4; cursor: pointer; list-style: none; }
.side-group > summary::-webkit-details-marker { display: none; }
.side-group > summary::after { content: ""; flex: none; width: .45rem; height: .45rem;
  margin-top: -.2rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .15s; }
.side-group[open] > summary::after { margin-top: .2rem; transform: rotate(-135deg); }
.side-group > summary:hover { background: var(--tint); }
.side-group ul { margin: 2px 0 .5rem .75rem; padding-left: .5rem; border-left: 2px solid var(--line); }
.side-group a { padding: .4rem .65rem; font-size: .92rem; }
.menu-toggle { display: none; align-items: center; gap: .5rem; min-height: 40px;
  padding: .35rem .8rem; border: 1px solid rgb(255 255 255 / 30%); border-radius: 8px;
  background: none; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.menu-toggle::before { content: ""; width: 1rem; height: 2px; background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }
.menu-toggle:hover { background: var(--green-3); }
@media (max-width: 960px) {
  .shell { flex-direction: column; }
  .sidebar { width: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .side-nav { position: static; max-height: none; }
  .js .menu-toggle { display: inline-flex; }
  .js .sidebar:not(.is-open) { display: none; }
}
@media print { .sidebar { display: none !important; } }

/* Demo mode bar (local demos only) */
.demo-bar { background: var(--gold); color: var(--ink); font-size: .9rem; font-weight: 600; }
.demo-bar .container { display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; min-height: 2.25rem; }
.demo-bar a { color: var(--ink); font-weight: 800; }
.demo-avatar { width: 2.75rem; height: 2.75rem; font-size: .95rem; }
.demo-persona h2 { margin: 0; }
