/* ==========================================================
   Healthnax — single stylesheet, no JavaScript.
   1. Tokens   2. Base   3. Layout   4. Header/Footer
   5. Components   6. Page sections   7. Quiz engine (CSS only)
   8. Community   9. Utilities / responsive / motion
   ========================================================== */

/* 1. Tokens ------------------------------------------------ */
:root {
  --brand: #0f766e;
  --brand-dark: #0b4f4a;
  --brand-light: #14b8a6;
  --brand-soft: #e3f5f2;
  --accent: #f97316;
  --accent-dark: #c2540a;
  --accent-soft: #fff1e6;
  --sky: #e0f2fe;
  --sky-ink: #075985;
  --leaf: #15803d;
  --leaf-soft: #e4f6ea;
  --berry: #be123c;
  --berry-soft: #ffe4ea;
  --sun-soft: #fff7d6;
  --ink: #12302f;
  --muted: #4d6366;
  --bg: #f5faf9;
  --card: #ffffff;
  --line: #d9e7e4;
  --shadow: 0 1px 2px rgba(18, 48, 47, .06), 0 8px 24px rgba(18, 48, 47, .07);
  --shadow-lg: 0 2px 4px rgba(18, 48, 47, .06), 0 18px 40px rgba(18, 48, 47, .12);
  --radius: 18px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
}

/* 2. Base -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: .35em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand-light); color: #fff; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* 3. Layout ------------------------------------------------ */
.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--tint { background: linear-gradient(180deg, var(--brand-soft), #f0f9f7); }
.section--white { background: #fff; }
.section-head { max-width: 640px; margin-bottom: 2.2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand); background: var(--brand-soft);
  padding: .3rem .8rem; border-radius: 999px; margin-bottom: 1rem;
}
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; align-items: start; }

/* 4. Header / footer --------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 1rem; }
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 800; font-size: 1.4rem;
  color: var(--ink); text-decoration: none; letter-spacing: -.02em;
}
.brand img { width: 38px; height: 38px; }
.brand:hover { color: var(--brand); }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem;
  padding: .5rem .9rem; border-radius: 999px; transition: background .2s, color .2s;
}
.nav a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.nav a[aria-current="page"] { background: var(--brand); color: #fff; }
.nav .nav-cta { background: var(--accent); color: #1c1006; margin-left: .4rem; }
.nav .nav-cta:hover { background: #fb923c; color: #1c1006; }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger {
  display: none; width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; place-items: center;
}
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink);
  border-radius: 2px; position: relative; transition: transform .25s, top .25s;
}
.nav-burger span::before { position: absolute; top: -6px; }
.nav-burger span::after { position: absolute; top: 6px; }
.nav-toggle:focus-visible + .nav-burger { outline: 3px solid var(--accent); outline-offset: 2px; }
.nav-toggle:checked + .nav-burger span { background: transparent; }
.nav-toggle:checked + .nav-burger span::before { top: 0; transform: rotate(45deg); }
.nav-toggle:checked + .nav-burger span::after { top: 0; transform: rotate(-45deg); }

.site-footer { background: var(--brand-dark); color: #cfe9e5; padding: 3.5rem 0 2rem; margin-top: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-grid h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-brand .brand { color: #fff; margin-bottom: .8rem; }
.footer-brand p { max-width: 32ch; font-size: .98rem; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .15);
  font-size: .9rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem;
}
.disclaimer { max-width: 70ch; }

/* 5. Components -------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
  font: inherit; font-weight: 700; text-decoration: none;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  background: var(--brand); color: #fff; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { background: var(--brand-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--accent { background: var(--accent); color: #1c1006; }
.btn--accent:hover { background: #fb923c; color: #1c1006; }
.btn--ghost { background: transparent; color: var(--brand-dark); border-color: var(--brand); }
.btn--ghost:hover { background: var(--brand); color: #fff; }
.btn--light { background: #fff; color: var(--brand-dark); }
.btn--light:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
a.card { text-decoration: none; color: inherit; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); margin-bottom: 1rem; }
.card .more { margin-top: auto; font-weight: 700; color: var(--brand); }
.card .more::after { content: " →"; }
.icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.7rem; margin-bottom: 1rem; background: var(--brand-soft);
}
.icon--orange { background: var(--accent-soft); }
.icon--blue { background: var(--sky); }
.icon--green { background: var(--leaf-soft); }
.icon--rose { background: var(--berry-soft); }
.icon--sun { background: var(--sun-soft); }

.tag {
  display: inline-block; font-size: .75rem; font-weight: 700; padding: .2rem .65rem;
  border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark);
  text-transform: uppercase; letter-spacing: .06em;
}
.tag--orange { background: var(--accent-soft); color: var(--accent-dark); }
.tag--blue { background: var(--sky); color: var(--sky-ink); }
.tag--rose { background: var(--berry-soft); color: var(--berry); }
.tag--green { background: var(--leaf-soft); color: var(--leaf); }

.breadcrumb { font-size: .92rem; margin-bottom: 1rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb span[aria-current] { color: var(--ink); font-weight: 600; }
.breadcrumb .sep { margin: 0 .4rem; }

.callout {
  border-left: 5px solid var(--brand); background: var(--brand-soft);
  padding: 1.1rem 1.4rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1.6rem 0;
}
.callout--warn { border-color: var(--accent); background: var(--accent-soft); }
.callout strong:first-child { display: block; margin-bottom: .2rem; }
.callout p:last-child { margin-bottom: 0; }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: .1em; width: 1.35rem; height: 1.35rem;
  background: var(--leaf); color: #fff; font-size: .8rem; font-weight: 700;
  display: grid; place-items: center; border-radius: 50%;
}
.checklist.avoid li::before { content: "✕"; background: var(--berry); }

details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0 1.2rem; margin-bottom: .8rem;
}
details[open] { box-shadow: var(--shadow); border-color: var(--brand-light); }
summary { cursor: pointer; font-weight: 700; padding: 1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p:last-child { margin-bottom: 1.1rem; }

table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 1.5rem; }
th, td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); font-size: .98rem; }
th { background: var(--brand); color: #fff; font-weight: 700; }
tr:last-child td { border-bottom: 0; }

.aside-box {
  position: sticky; top: 94px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow);
}
.aside-box h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.aside-box ul { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.aside-box a { text-decoration: none; display: block; padding: .35rem 0; font-weight: 600; }
.aside-box a:hover { text-decoration: underline; }

/* 6. Page sections ----------------------------------------- */
.hero {
  position: relative; overflow: hidden; padding: clamp(3.5rem, 8vw, 6.5rem) 0;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(20, 184, 166, .28), transparent 60%),
    radial-gradient(40rem 25rem at -5% 110%, rgba(249, 115, 22, .16), transparent 60%),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero h1 em { font-style: normal; color: var(--brand); background: linear-gradient(transparent 62%, rgba(249, 115, 22, .3) 62%); }
.hero .lead { font-size: 1.25rem; color: var(--muted); max-width: 52ch; }
.hero-card {
  background: #fff; border-radius: 28px; padding: 2rem;
  box-shadow: -14px 14px 0 rgba(20, 184, 166, .25), var(--shadow-lg);
  border: 1px solid var(--line); transform: rotate(1.5deg);
}
.hero-card .pulse { font-size: 3rem; display: inline-block; animation: beat 1.8s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.12); } }
.hero-card ul { margin: 1rem 0 0; }

.page-hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
  background: linear-gradient(135deg, var(--brand-soft), #f6fbfa 60%, var(--accent-soft));
  border-bottom: 1px solid var(--line);
}
.page-hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; margin-bottom: 0; }
.page-hero .big-emoji { font-size: 3rem; display: block; margin-bottom: .5rem; }

.stats { background: var(--brand-dark); color: #fff; padding: 2.2rem 0; }
.stats .grid { text-align: center; }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.7rem); color: #5eead4; line-height: 1.1; }
.stat span { font-size: .95rem; color: #cfe9e5; }

.cta-band {
  background: linear-gradient(120deg, var(--brand), var(--brand-dark));
  color: #fff; border-radius: 28px; padding: clamp(2rem, 5vw, 3.5rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.cta-band h2 { color: #fff; margin-bottom: .3rem; }
.cta-band p { margin: 0; color: #d3f0ec; max-width: 48ch; }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: .2rem 0 1.2rem 3.4rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; border-radius: 50%;
}

.quote { font-size: 1.1rem; font-style: italic; }
.quote footer { font-style: normal; font-size: .92rem; color: var(--muted); margin-top: .8rem; }

.rec-block { padding: 1.8rem 0; border-bottom: 1px solid var(--line); }
.rec-block:last-of-type { border-bottom: 0; }
.rec-block h2 { display: flex; align-items: center; gap: .6rem; }
.pill-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 0; }
.pill-nav a {
  text-decoration: none; font-weight: 600; font-size: .95rem; padding: .45rem 1rem;
  border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink);
}
.pill-nav a:hover { border-color: var(--brand); color: var(--brand); }

.meter { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; margin: .5rem 0 1rem; }
.meter > i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-light), var(--leaf)); }

.plate { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.plate div { padding: 1rem; border-radius: var(--radius-sm); font-weight: 700; text-align: center; }
.plate .veg { background: var(--leaf-soft); color: var(--leaf); }
.plate .grain { background: var(--sun-soft); color: #8a6a00; }
.plate .protein { background: var(--berry-soft); color: var(--berry); }
.plate .fruit { background: var(--accent-soft); color: var(--accent-dark); }

/* 7. Quiz engine (pure CSS) -------------------------------- */
.quiz { counter-reset: score answered total qnum; display: grid; gap: 1.4rem; max-width: 760px; margin-inline: auto; }
.q {
  counter-increment: total qnum;
  border: 1px solid var(--line); background: #fff; border-radius: var(--radius);
  padding: 1.5rem 1.6rem 1.6rem; margin: 0; box-shadow: var(--shadow); min-width: 0;
}
.q legend { float: left; width: 100%; padding: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.35; margin-bottom: 1rem; }
.q legend::before { content: "Question " counter(qnum); display: block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: .3rem; }
.q legend + * { clear: both; }
.opt {
  display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; margin-bottom: .55rem;
  border: 2px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.opt:hover { border-color: var(--brand-light); background: var(--brand-soft); }
.opt input { accent-color: var(--brand); width: 1.15rem; height: 1.15rem; flex: none; margin: 0; }
.opt:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.explain { display: none; margin: .9rem 0 0; padding: .9rem 1.1rem; border-radius: var(--radius-sm); font-size: .98rem; }
.explain strong { display: block; }

/* once answered: lock the options and reveal feedback */
.q:has(input:checked) { counter-increment: total qnum answered; }
.q:has(input:checked) .opt { pointer-events: none; }
.q:has(input:checked) .explain { display: block; animation: pop .35s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* knowledge quiz: right / wrong */
.q:has(input.correct:checked) { counter-increment: total qnum answered score; border-color: var(--leaf); }
.q:has(input:checked) .opt:has(input.correct) { border-color: var(--leaf); background: var(--leaf-soft); }
.q:has(input:checked:not(.correct)) { border-color: var(--berry); }
.q:has(input:checked:not(.correct)) .opt:has(input:checked) { border-color: var(--berry); background: var(--berry-soft); }
.q:has(input.correct:checked) .explain { background: var(--leaf-soft); color: #0f4d27; }
.q:has(input:checked:not(.correct)) .explain { background: var(--berry-soft); color: #7a0b26; }
.explain .good, .explain .bad { display: none; }
.q:has(input.correct:checked) .explain .good { display: block; }
.q:has(input:checked:not(.correct)) .explain .bad { display: block; }

/* habit check: supportive tone, no red */
.quiz--habit .q:has(input:checked:not(.correct)) { border-color: var(--accent); }
.quiz--habit .q:has(input:checked) .opt:has(input.correct) { border-color: var(--line); background: #fff; }
.quiz--habit .q:has(input.correct:checked) .opt:has(input.correct) { border-color: var(--leaf); background: var(--leaf-soft); }
.quiz--habit .q:has(input:checked:not(.correct)) .opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.quiz--habit .q:has(input:checked:not(.correct)) .explain { background: var(--accent-soft); color: #6b3205; }

/* live scoreboard */
.scoreboard {
  position: sticky; bottom: 1rem; z-index: 5; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1rem; padding: 1rem 1.4rem; border-radius: 999px;
  background: var(--ink); color: #fff; box-shadow: var(--shadow-lg);
}
.scoreboard .score::before { content: counter(score) " / " counter(total); font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: #5eead4; }
.scoreboard .score::after { content: " correct · " counter(answered) " answered"; color: #cfe9e5; font-size: .95rem; }
.quiz--habit .scoreboard .score::after { content: " healthy habits · " counter(answered) " answered"; }
.scoreboard .btn { padding: .5rem 1.2rem; font-size: .95rem; }

/* result messages — appear once every question is answered */
.verdict { display: none; padding: 1.4rem 1.6rem; border-radius: var(--radius); background: var(--brand-soft); border: 2px dashed var(--brand); }
.quiz:has(.q:nth-of-type(1) input:checked):has(.q:nth-of-type(2) input:checked):has(.q:nth-of-type(3) input:checked):has(.q:nth-of-type(4) input:checked):has(.q:nth-of-type(5) input:checked) .verdict { display: block; animation: pop .4s ease; }
.verdict h2 { font-size: 1.4rem; }
.verdict p:last-child { margin-bottom: 0; }

/* mini quiz (home page) */
.mini-quiz { max-width: none; }

/* 8. Community --------------------------------------------- */
.post {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 1rem; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow); margin-bottom: 1rem;
}
.avatar {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; color: #fff; font-size: 1.1rem; background: var(--brand);
}
.avatar--orange { background: var(--accent-dark); }
.avatar--blue { background: #0369a1; }
.avatar--rose { background: var(--berry); }
.avatar--green { background: var(--leaf); }
.post h3 { margin-bottom: .2rem; font-size: 1.1rem; }
.post h3 a { color: var(--ink); text-decoration: none; }
.post h3 a:hover { color: var(--brand); }
.post .meta { font-size: .88rem; color: var(--muted); margin-bottom: .5rem; }
.post p { margin-bottom: 0; color: var(--muted); }
.post .stats-col { text-align: right; font-size: .9rem; color: var(--muted); white-space: nowrap; }
.post .stats-col b { display: block; font-size: 1.2rem; color: var(--ink); }

.event {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 1.2rem; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow); margin-bottom: 1rem;
}
.date-chip { text-align: center; background: var(--brand-soft); border-radius: 14px; padding: .6rem .4rem; }
.date-chip b { display: block; font-family: var(--font-display); font-size: 1.8rem; line-height: 1; color: var(--brand-dark); }
.date-chip span { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--brand); }
.event h3 { margin-bottom: .2rem; }
.event p { margin: 0; color: var(--muted); font-size: .96rem; }

.group-card .members { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.group-card .banner { height: 8px; border-radius: 999px; margin-bottom: 1.2rem; background: linear-gradient(90deg, var(--brand-light), var(--brand)); }
.group-card.orange .banner { background: linear-gradient(90deg, #fdba74, var(--accent)); }
.group-card.blue .banner { background: linear-gradient(90deg, #7dd3fc, #0284c7); }
.group-card.rose .banner { background: linear-gradient(90deg, #fda4af, var(--berry)); }
.group-card.green .banner { background: linear-gradient(90deg, #86efac, var(--leaf)); }

/* 9. Utilities / responsive / motion ----------------------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.sample-note { font-size: .88rem; color: var(--muted); font-style: italic; }
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.error-page .code { font-family: var(--font-display); font-size: clamp(5rem, 18vw, 10rem); font-weight: 800; line-height: 1; color: var(--brand); }

@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .layout-aside { grid-template-columns: 1fr; }
  .hero-card { transform: none; max-width: 520px; }
  .aside-box { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-burger { display: grid; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
    background: #fff; padding: 1rem 1.25rem 1.4rem; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none;
  }
  .nav a { padding: .8rem 1rem; }
  .nav .nav-cta { margin: .4rem 0 0; text-align: center; }
  .nav-toggle:checked ~ .nav { display: flex; }
}

@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .post { grid-template-columns: 44px 1fr; }
  .post .stats-col { grid-column: 2; text-align: left; display: flex; gap: 1rem; }
  .post .stats-col b { display: inline; margin-right: .3rem; }
  .event { grid-template-columns: 70px 1fr; }
  .event .btn { grid-column: 1 / -1; justify-content: center; }
  .scoreboard { border-radius: var(--radius); }
}

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

@media print {
  .site-header, .site-footer, .cta-band, .scoreboard { display: none; }
  body { background: #fff; }
}

/* 10. Contact page, opt-in widget & legal documents --------- */
.company { font-style: normal; margin-top: 1rem; font-size: .95rem; line-height: 1.7; }
.company strong { color: #fff; }

.contact-layout { display: grid; gap: 2rem; align-items: start; }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; margin-bottom: 1rem; box-shadow: var(--shadow);
}
.contact-card h2 { font-size: 1.5rem; margin: .2rem 0 .5rem; }
.contact-card p { color: var(--muted); margin: 0; }
.contact-card a { font-weight: 700; }

.optin-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.4rem; box-shadow: var(--shadow); position: relative;
}
#disclaimer-form-widget { color: var(--ink); font-size: 14px; position: relative; }
#disclaimer-form-widget * { box-sizing: border-box; }
#disclaimer-form-widget .contact-info-title,
#disclaimer-form-widget .consent-title {
  margin-bottom: 12px; color: var(--brand); font-size: .75rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
}
#disclaimer-form-widget .input-group { margin-bottom: 14px; }
#disclaimer-form-widget .input-group label { display: block; margin-bottom: 6px; font-weight: 600; }
#disclaimer-form-widget .input-group input {
  width: 100%; padding: 13px 14px; border: 2px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); font: inherit; font-size: 1rem;
}
#disclaimer-form-widget .input-group input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(20, 184, 166, .2); }
#disclaimer-form-widget .input-group input.error { border-color: var(--berry); background: #fff6f7; }
#disclaimer-form-widget .input-group input.valid { border-color: var(--leaf); }
#disclaimer-form-widget .error-message { display: none; margin-top: 4px; color: var(--berry); font-size: 12px; }
#disclaimer-form-widget .consent-section,
#disclaimer-form-widget .required-checkbox,
#disclaimer-form-widget .bot-check-container {
  margin: 16px 0; padding: 14px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--bg);
}
#disclaimer-form-widget .checkbox-item { display: flex; align-items: flex-start; font-size: 12.5px; }
#disclaimer-form-widget .checkbox-item input[type="checkbox"] {
  flex-shrink: 0; width: 16px; height: 16px; margin: 3px 10px 0 0; accent-color: var(--brand);
}
#disclaimer-form-widget .checkbox-item label { flex: 1; line-height: 1.55; color: var(--ink); }
#disclaimer-form-widget .required-checkbox { background: var(--leaf-soft); border-color: rgba(21, 128, 61, .35); }
#disclaimer-form-widget .required-checkbox-links a { font-weight: 700; }
#disclaimer-form-widget .submit-button,
#disclaimer-form-widget .bot-check-button,
#success-modal .close-button { font: inherit; font-weight: 700; cursor: pointer; }
#disclaimer-form-widget .submit-button {
  width: 100%; min-height: 48px; border: 0; border-radius: 999px;
  background: var(--accent); color: #1c1006; transition: background .2s, transform .15s;
}
#disclaimer-form-widget .submit-button:hover { background: #fb923c; transform: translateY(-1px); }
#disclaimer-form-widget .bot-check-container { text-align: center; }
#disclaimer-form-widget .bot-check-button {
  min-width: 180px; padding: 10px 20px; border: 1px solid var(--ink);
  border-radius: 999px; background: #fff; color: var(--ink);
}
#disclaimer-form-widget .bot-check-button.verified { background: var(--leaf); border-color: var(--leaf); color: #fff; }
#disclaimer-form-widget .bot-check-error { display: none; margin-top: 8px; color: var(--berry); font-size: 12px; }
#disclaimer-form-widget .bot-check-timer { margin-top: 6px; color: var(--muted); font-size: 12px; }
#disclaimer-form-widget .hidden-field { position: absolute; left: -9999px; opacity: 0; }
#success-modal {
  display: none; position: fixed; inset: 0; z-index: 1000;
  align-items: center; justify-content: center; background: rgba(18, 48, 47, .6);
}
#success-modal.show { display: flex; }
#success-modal .modal-content {
  width: min(420px, 90%); padding: 34px 28px; background: #fff; color: var(--ink);
  text-align: center; border-radius: 24px;
}
#success-modal .success-icon { font-size: 2.4rem; color: var(--leaf); margin-bottom: 8px; }
#success-modal .modal-title { margin: 0 0 8px; font-size: 1.6rem; }
#success-modal .modal-message { margin: 0 0 18px; color: var(--muted); }
#success-modal .close-button {
  margin-top: 8px; padding: 12px 22px; border: 0; border-radius: 999px;
  background: var(--brand-dark); color: #fff;
}

.doc { max-width: 760px; }
.doc h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); margin: 2rem 0 .6rem; }
.doc p, .doc li { color: var(--muted); }
.doc p { margin: .7rem 0; }
.doc strong { color: var(--ink); }
.doc a { font-weight: 600; }
.doc ul { list-style: disc; margin: .4rem 0 1rem; padding-left: 1.25rem; }

@media (min-width: 900px) {
  .contact-layout { grid-template-columns: .72fr 1.28fr; }
}
