/* Hybrid Plan Builder: white and yellow with black text, always light. */

:root {
  --bg: #ffffff;
  --bg-soft: #fafaf7;
  --surface: #ffffff;
  --text: #111111;
  --muted: #5c5c5c;
  --border: #e7e5df;
  --yellow: #ffd60a;
  --yellow-dark: #e6b800;
  --yellow-soft: #fff7cc;
  --focus: #111111;
  --hard: #e03131;
  --moderate: #f59f00;
  --easy: #2f9e44;
  --rest: #adb5bd;
  --warn-bg: #fff4e5;
  --ok-bg: #ebfbee;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(17 17 17 / 5%), 0 6px 20px rgb(17 17 17 / 6%);
  --font-head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg-soft);
  color: var(--text);
  font: 17px/1.55 var(--font-body);
  overflow-wrap: anywhere;
  /* Full-height column so the footer sits at the bottom even when a view is short. */
  display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100dvh;
}
#plan-view, .wod-view { flex: 1 0 auto; }
.site-footer { flex: none; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.05;
  margin: 0 0 .6rem;
}
h2 { font-size: 1.6rem; }
p { margin: 0 0 .75rem; }
ul { margin: 0; padding-left: 1.2rem; }
a { color: inherit; }

.wrap { width: 100%; max-width: 820px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgb(255 255 255 / 92%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 800; font-size: 1.35rem;
  text-transform: uppercase; text-decoration: none; letter-spacing: .02em;
}
.brand-mark {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--yellow); color: var(--text); font-size: 1.3rem;
}
.brand-mark img { width: 80%; height: 80%; display: block; }
.account { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.tabs { display: flex; gap: 2px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; padding: 2px; }
.tabs a {
  text-decoration: none; font-weight: 700; font-size: .92rem;
  padding: 4px 14px; border-radius: 999px; min-height: 30px; display: inline-flex; align-items: center;
}
.tabs a[aria-current="page"] { background: var(--yellow); }

.account-menu { position: relative; }
.account-menu summary { list-style: none; display: inline-flex; align-items: center; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu .menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30;
  display: grid; gap: 6px; min-width: 220px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); padding: 10px;
}
.account-menu .menu p { margin: 0 0 4px; overflow-wrap: anywhere; }
.account-menu .menu .btn { width: 100%; text-align: left; }
/* Phones: pin the menu inside the screen instead of hanging off the button, which may sit near the edge. */
@media (max-width: 599px) {
  .account-menu .menu { position: fixed; top: 60px; left: 12px; right: 12px; min-width: 0; }
}
/* Keep the sticky header one line tall on phones so it never covers the toolbar. */
@media (max-width: 599px) {
  .brand { font-size: 1.1rem; }
  .brand-mark { width: 30px; height: 30px; }
    .header-row { gap: 6px; }
}
@media (max-width: 479px) {
  .brand-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 560px;
  display: flex; align-items: flex-end;
  padding: 24px 16px;
  overflow: hidden;
  background: #111;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 60% center;
  filter: grayscale(1) contrast(1.05);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 5%) 30%, rgb(0 0 0 / 55%) 100%);
}
.hero-panel {
  position: relative; z-index: 1;
  width: 100%; max-width: 560px;
  margin: 0 auto 0 max(0px, calc((100% - 820px) / 2));
  background: var(--yellow);
  color: var(--text);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: 0 12px 40px rgb(0 0 0 / 35%);
}
.hero-panel h1 { font-size: clamp(2.4rem, 9vw, 3.6rem); margin-bottom: .5rem; }
.hero-panel p { font-size: 1.02rem; }
.eyebrow {
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: .4rem;
}
.hero-panel .btn.primary { background: var(--text); border-color: var(--text); color: var(--yellow); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
@media (min-width: 760px) { .hero { min-height: 620px; padding: 48px 24px; } .hero-panel { padding: 30px 32px; } }

/* ---------- photo banners ---------- */

.banner { margin: 24px 0; border-radius: var(--radius); overflow: hidden; height: 180px; background: #222; }
.banner img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); display: block; }
.footer-banner { margin: 40px 0 0; border-radius: 0; height: 220px; }
@media (min-width: 760px) { .banner { height: 230px; } .footer-banner { height: 280px; } }

/* Four station shots: 2×2 on phones, one row from tablet up. */
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 24px 0; }
.photo-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); filter: grayscale(1) contrast(1.05); display: block; background: #222; }
@media (min-width: 760px) { .photo-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; } }

/* ---------- cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 18px;
  margin-bottom: 18px;
}
.card.info { border-left: 6px solid var(--yellow); }
.card.warn { border-left: 6px solid var(--hard); background: var(--warn-bg); }
.note { background: var(--yellow-soft); border-radius: 10px; padding: 10px 12px; }
.note.ok { background: var(--ok-bg); }

/* ---------- form ---------- */

.grid { display: grid; gap: 4px 18px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid { grid-template-columns: 1fr 1fr; } }

.field { margin-bottom: 12px; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; }
fieldset.field { border: 0; padding: 0; margin: 0 0 16px; }

input[type="text"], input[type="date"], input[type="email"], input[type="password"], input[type="number"], select {
  width: 100%;
  min-height: 50px;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: #a3a3a3; opacity: 1; }
input:focus, select:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 4px var(--yellow-soft); }
input[aria-invalid="true"] { border-color: var(--hard); }
.hint { color: var(--muted); font-size: .88rem; margin: 6px 0 0; }
.error { color: var(--hard); font-weight: 600; font-size: .95rem; margin: 6px 0 0; }
.error:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 58px; min-height: 46px; padding: 0 14px;
  border: 2px solid var(--border); border-radius: 999px;
  font-weight: 600; background: var(--bg);
  transition: background .15s, border-color .15s;
}
.chip input:checked + span { background: var(--yellow); border-color: var(--text); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.check-row { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.check-row input { width: 22px; height: 22px; flex: none; accent-color: var(--text); }
.check-row.small { align-items: flex-start; font-weight: 500; margin: 4px 0 12px; }
.form:focus { outline: none; }

/* ---------- buttons ---------- */

.btn {
  font: inherit; font-weight: 700; overflow-wrap: normal;
  min-height: 46px; padding: 8px 18px;
  border-radius: 12px; border: 2px solid var(--text);
  background: var(--bg); color: var(--text);
  cursor: pointer;
  transition: background .15s, transform .05s;
}
.btn:hover { background: var(--yellow-soft); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--yellow); border-color: var(--yellow); }
.btn.primary:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); }
.btn.big { width: 100%; min-height: 54px; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em; font-size: 1.2rem; }
.btn.small { min-height: 36px; padding: 4px 12px; font-size: .9rem; border-radius: 10px; }
.btn.ghost { border-color: var(--border); }
.btn.link { border: 0; background: none; padding: 4px 6px; min-height: 0; text-decoration: underline; font-weight: 600; }
.btn:disabled { opacity: .75; cursor: default; }
.btn.google { margin-bottom: 4px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; }
.google-g { width: 22px; height: 22px; flex: none; }

.toolbar {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 16px 0 12px;
}
.toolbar select { flex: 1 1 100%; min-height: 46px; font-weight: 600; }
.toolbar .btn { flex: 1 1 0; padding: 8px 6px; font-size: .9rem; }
@media (min-width: 640px) {
  .toolbar select { flex: 1 1 auto; width: auto; }
  .toolbar .btn { flex: 0 1 auto; padding: 8px 18px; font-size: 1rem; }
}

/* A built plan replaces the landing page; Edit / New plan bring the form back on its own. */
body.has-plan .hero, body.has-plan #plan-view .banner, body.has-plan .photo-grid, body.has-plan #wod-teaser { display: none; }
body.has-plan:not(.editing) #plan-form { display: none; }
body.editing #results { display: none; }
body.editing #plan-form { margin-top: 20px; }
.cancel-btn { margin-top: 8px; }

.row-btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- summary / splits / paces ---------- */

.summary { background: var(--text); color: #fff; border-color: var(--text); }
.summary h2 { color: var(--yellow); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; }
.stats dt { color: #bdbdbd; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.stats dd { margin: 0; font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.summary .muted { color: #bdbdbd; }
@media (min-width: 600px) { .stats { grid-template-columns: repeat(3, 1fr); } }

.splits, .swap { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.splits td, .splits th, .swap td, .swap th { padding: 8px 4px; border-bottom: 1px solid var(--border); text-align: left; }
.splits td:last-child, .splits th:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.splits tr.group th { padding-top: 14px; font-family: var(--font-head); text-transform: uppercase; font-size: 1.1rem; }
.splits td:first-child { padding-left: 14px; }
.swap th { font-family: var(--font-head); text-transform: uppercase; background: var(--yellow); padding-left: 8px; }
.swap td { font-variant-numeric: tabular-nums; padding-left: 8px; }

.zones { list-style: none; padding: 0; margin: 0 0 10px; }
/* Phone: name + help on the left, pace over heart rate on the right. Wider: one row each. */
.zones li {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 14px;
  grid-template-areas: "zone pace" "help hr";
  padding: 10px 0; border-bottom: 1px solid var(--border); align-items: baseline;
}
.zones .zones-head { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 4px 0; grid-template-areas: "zone pace"; }
.zones .zones-head span:nth-child(2)::after { content: " / heart rate"; }
.zones .zones-head span:nth-child(3) { display: none; }
.zones .zone { grid-area: zone; font-weight: 700; }
.zones .pace { grid-area: pace; }
.zones .hr { grid-area: hr; color: var(--hard); }
.zones .help { grid-area: help; color: var(--muted); font-size: .88rem; }
.zones .pace, .zones .hr { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
@media (min-width: 600px) {
  .zones li { grid-template-columns: 1fr auto 7.5rem; grid-template-areas: "zone pace hr" "help help help"; }
  .zones .zones-head { grid-template-areas: "zone pace hr"; }
  .zones .zones-head span:nth-child(2)::after { content: ""; }
  .zones .zones-head span:nth-child(3) { display: block; text-align: right; grid-area: hr; }
}

.suggestion { border: 3px solid var(--yellow); background: var(--yellow-soft); }

.glossary summary { cursor: pointer; list-style: none; }
.glossary summary::-webkit-details-marker { display: none; }
.glossary summary h2 { display: inline; }
.glossary summary::after { content: " +"; font-weight: 800; font-size: 1.4rem; }
.glossary[open] summary::after { content: " −"; }
.glossary dl { margin: 12px 0 0; }
.glossary dt { font-weight: 700; }
.glossary dd { margin: 0 0 10px; color: var(--muted); }

/* ---------- plan week (same look as the WOD page) ---------- */

.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0; }
.legend .btn.link { margin-left: auto; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.dot.effort-hard { background: var(--hard); }
.dot.effort-moderate { background: var(--moderate); }
.dot.effort-easy { background: var(--easy); }
.dot.effort-rest { background: var(--rest); }
.badge { display: inline-block; background: var(--yellow); color: var(--text); font-family: var(--font-body); font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 2px 9px; vertical-align: middle; text-transform: none; }

.plan-week { scroll-margin-top: 80px; }
.plan-week-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; margin-bottom: 12px; }
.plan-week-title { text-align: center; }
.plan-week-title h2 { font-size: 1.7rem; margin-bottom: 2px; }
.plan-week-title p { margin: 0; }
.plan-week .week-strip { margin-bottom: 10px; }
.plan-week .note { margin: 10px 0 0; }
.strip-arrow:disabled { opacity: .3; }

.strip-day { position: relative; }
.strip-bar { width: 60%; height: 4px; border-radius: 4px; background: var(--rest); }
.strip-bar.effort-hard { background: var(--hard); }
.strip-bar.effort-moderate { background: var(--moderate); }
.strip-bar.effort-easy { background: var(--easy); }

.day-card .lines { margin-top: 4px; }
.day-card .lines li { margin-bottom: 4px; }
.day-card .row-btns { margin-top: 14px; }
.lines { margin-top: 8px; }
.lines li { margin-bottom: 3px; }
.logged { margin: 12px 0 0; font-weight: 600; color: var(--easy); }
.projection-note { margin: 14px 0 0; }
.fold-body { margin-top: 12px; }

.wod {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--yellow-soft);
  border: 1px solid var(--yellow);
}
.wod-title { font-weight: 800; margin: 0 0 4px; }
.wod .small { margin: 6px 0 0; }

.unlock { border: 3px solid var(--yellow); background: var(--yellow-soft); text-align: center; }
.unlock h2 { font-size: 1.8rem; }


/* ---------- footer / dialogs / toast ---------- */

.site-footer { background: var(--text); color: #fff; padding: 28px 0 40px; font-size: .95rem; }
.site-footer .small { color: #bdbdbd; }

dialog {
  width: min(460px, calc(100vw - 32px));
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 24px 20px;
  box-shadow: 0 20px 60px rgb(0 0 0 / 30%);
}
dialog::backdrop { background: rgb(0 0 0 / 55%); }
.dialog-close { position: absolute; top: 10px; right: 10px; }
.or { display: flex; align-items: center; gap: 8px; color: var(--muted); margin: 14px 0; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--border); }

.toast {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20;
  max-width: 480px; margin: 0 auto;
  background: var(--text); color: #fff;
  border-left: 6px solid var(--yellow);
  border-radius: 10px; padding: 12px 16px;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: none; pointer-events: auto; }
.toast { display: flex; align-items: center; gap: 12px; }
#toast-msg { flex: 1; }
.toast .btn { background: var(--yellow); border-color: var(--yellow); flex: none; }

/* ---------- Workout of the Day ---------- */

/* Photo background behind the WOD view, darkened and grey like the other photos. */
body.wod-mode::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(0 0 0 / 55%), rgb(0 0 0 / 70%)), url("../img/sled-push.jpg") center / cover no-repeat;
  filter: grayscale(1) contrast(1.05);
}
body.wod-mode .wod-heading { color: #fff; text-shadow: 0 2px 12px rgb(0 0 0 / 50%); }
body.wod-mode .wod-view { padding-bottom: 32px; }

.wod-heading { font-size: clamp(2rem, 8vw, 2.8rem); margin: 22px 0 12px; }

.week-strip { display: flex; align-items: center; gap: 4px; margin-bottom: 14px; }
.week-strip ol { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.strip-arrow { flex: none; min-width: 32px; padding: 4px 6px; font-size: 1.2rem; }
.strip-day {
  width: 100%; min-height: 56px; display: grid; place-items: center;
  font: inherit; color: var(--text); cursor: pointer; overflow-wrap: normal;
  background: var(--surface); border: 2px solid var(--border); border-radius: 12px; padding: 4px 0;
}
.strip-day .strip-wd { font-size: .66rem; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; color: var(--muted); font-weight: 700; }
.strip-day .strip-date { font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; line-height: 1; }
.strip-day.today { border-color: var(--yellow-dark); }
.strip-day.selected { background: var(--yellow); border-color: var(--text); }
.strip-day.selected .strip-wd { color: var(--text); }

.wod-card h2 { font-size: 2rem; margin-bottom: 0; }
.wod-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.wod-day { margin: 0 0 2px; color: var(--muted); font-size: .9rem; font-weight: 600; }

.seg { display: inline-flex; border: 2px solid var(--text); border-radius: 12px; overflow: hidden; }
.seg button {
  font: inherit; font-weight: 700; font-size: .92rem; min-height: 40px; padding: 4px 14px;
  border: 0; background: var(--bg); color: var(--text); cursor: pointer;
}
.seg button + button { border-left: 2px solid var(--text); }
.seg button.on { background: var(--yellow); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tag {
  display: inline-block; font-size: .78rem; font-weight: 700; border-radius: 999px;
  padding: 3px 10px; background: var(--bg-soft); border: 1px solid var(--border);
}
.tag.mode { background: var(--text); color: var(--yellow); border-color: var(--text); }
.tag.bench { background: var(--yellow); border-color: var(--yellow-dark); }
.tag.effort-hard { background: var(--hard); color: #fff; border-color: var(--hard); }
.tag.effort-moderate { background: var(--moderate); border-color: var(--moderate); }
.tag.effort-easy { background: var(--easy); color: #fff; border-color: var(--easy); }
.tag.effort-rest { background: var(--rest); border-color: var(--rest); }

.wod-headline { font-size: 1.1rem; margin-bottom: 8px; }
.howto { border-radius: 10px; padding: 10px 12px; background: var(--bg-soft); border: 1px solid var(--border); }
.howto.team { background: var(--yellow-soft); border-color: var(--yellow); font-weight: 600; }
.wod-scheme { margin-bottom: 4px; }
.wod-block { margin: 12px 0; }
.wod-block-label { margin: 0 0 2px; }
.wod-block .lines { margin-top: 4px; }
.team-note { margin: 0 0 4px; color: var(--muted); }
.wod-rest { color: var(--muted); margin: 4px 0 0; font-size: .92rem; }
.wod-score { margin-top: 14px; }

.wod-teaser { border-left: 6px solid var(--yellow); margin-top: 20px; }
.wod-teaser .eyebrow { margin-bottom: .2rem; }
.wod-teaser .btn { text-decoration: none; display: inline-flex; align-items: center; }

.wod-info h3, .bench-group h3 { font-size: 1.15rem; margin: 14px 0 6px; }
.bench-list { list-style: none; padding: 0; margin: 0; }
.bench-list li { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 6px 0; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }

/* ---------- consent bar ---------- */

.consent-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgb(17 17 17 / 96%); color: #fff; font-size: .88rem;
  border-top: 3px solid var(--yellow);
}
.consent-bar[hidden] { display: none; }
.consent-bar p { margin: 0; max-width: 560px; }
.consent-bar a { color: var(--yellow); }
.consent-btns { display: flex; gap: 8px; }
.consent-bar .btn.ghost { background: transparent; color: #fff; border-color: #777; }
.consent-bar .btn.ghost:hover { background: #333; }

/* ---------- footer links and legal pages ---------- */

.footer-links a { color: #fff; }
.legal { padding-top: 24px; padding-bottom: 40px; }
.legal h1 { font-size: clamp(2.2rem, 8vw, 3rem); }
.legal h2 { margin-top: 28px; font-size: 1.4rem; }
.legal ul { margin-bottom: .75rem; }
.legal li { margin-bottom: 4px; }
.legal .table-wrap { overflow-x: auto; }
.legal table { width: 100%; border-collapse: collapse; margin-bottom: 12px; font-size: .92rem; }
.legal th, .legal td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal th { background: var(--yellow-soft); }

/* ---------- print ---------- */

@media print {
  body { background: #fff; font-size: 11pt; }
  .no-print, .site-header, .toast, .consent-bar, .badge, .banner, .hero, .site-footer .small { display: none !important; }
  .card { box-shadow: none; break-inside: avoid; }
  .summary { background: #fff; color: #000; }
  .summary h2, .stats dt { color: #000; }
  .site-footer { background: #fff; color: #000; padding: 0; }
  .wod { background: #fff; }
  .unlock { display: none; }
  .glossary summary::after { content: ""; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
