/* Top Bucket website. Mirrors the app: light ground, white cards with a thin border,
   navy cards with white text for the big actions, blue buttons, soft-blue chips.
   Headings use IBM Plex Sans like the app; everything else is Arial, like the workshop spreadsheets. */
/* Heading fonts are hosted on this site (no requests to Google or anyone else).
   IBM Plex, SIL Open Font License 1.1: see fonts/OFL-IBM-Plex.txt */
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/IBMPlexSans-SemiBold-Latin1.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/IBMPlexSans-Bold-Latin1.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans Condensed'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/IBMPlexSansCondensed-SemiBold-Latin1.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans Condensed'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/IBMPlexSansCondensed-Bold-Latin1.woff2') format('woff2'); }

:root {
  --ground: #F4F5F2;
  --surface: #FFFFFF;
  --ink: #0F1B2D;
  --body: #263247;
  --muted: #4A5568;
  --faint: #6B7585;
  --line: #DDE1E6;
  --line-strong: #C9D0DA;
  --segment: #E3E6EA;
  --blue: #1F4FB8;
  --blue-hover: #163B8A;
  --blue-soft: #E3EBFA;
  --orange: #B4530F;
  --orange-dark: #8A3F0A;
  --orange-soft: #FCEBD9;
  --green: #1E6B3A;
  --green-soft: #E3F1E7;
  --red: #9B2F2F;
  --red-soft: #F8E3E3;
  --gray-chip: #E8EBEF;
  --navy-text: #DCE3EE;
  --navy-muted: #B9C6DC;
  --navy-line: rgba(255, 255, 255, 0.16);
  --cell: #FFFF00;
  --xl-input: #0000FF;
  --xl-link: #008000;
  --xl-grid: #E1E4E8;
  --xl-head: #F0F2F4;

  --f-head: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --f-head-wide: 'IBM Plex Sans Condensed', 'IBM Plex Sans', 'Arial Narrow', Arial, sans-serif;
  --f-text: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  --wrap: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--body); font: 400 16px/1.6 var(--f-text); }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-hover); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
/* Keep keyboard focus out from under the sticky header when the page scrolls to it */
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 88px); }
h1, h2, h3 { color: var(--ink); text-wrap: balance; margin: 0; }
h1 { font: 700 clamp(38px, 6vw, 66px)/1.04 var(--f-head-wide); letter-spacing: -0.01em; }
h2 { font: 700 clamp(28px, 3.6vw, 38px)/1.12 var(--f-head-wide); }
h3 { font: 600 18px/1.3 var(--f-head); }
p { margin: 0; }
.mono, .num { font-family: var(--f-text); font-variant-numeric: tabular-nums; font-weight: 700; }
.eyebrow { font: 700 12px/1.2 var(--f-text); letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.lede { font-size: 18px; line-height: 1.6; color: var(--body); max-width: 34em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.wrap {
  width: 100%; max-width: var(--wrap); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.band { padding-block: clamp(48px, 7vw, 88px); }
.band + .band { border-top: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }

/* Header, like the app's top bar */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--ground); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--ground); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; min-height: 64px; flex-wrap: wrap; padding-block: 10px; }
.brand { font: 700 15px/1 var(--f-head); letter-spacing: 0.14em; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { width: 44px; height: 44px; border-radius: 50%; display: block; flex: none; }
.brand-mark { width: 22px; height: 22px; display: inline-grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.brand-mark i { display: block; background: var(--line-strong); border-radius: 2px; }
.brand-mark i:first-child { background: var(--blue); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; background: var(--segment); border-radius: 12px; padding: 4px; }
.nav a { color: var(--muted); text-decoration: none; font: 400 14px/1 var(--f-text); padding: 10px 14px; border-radius: 9px; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { background: var(--surface); color: var(--ink); font-weight: 700; }

/* Buttons, same kinds as the app */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px;
  border-radius: 10px; font: 700 15px/1 var(--f-text); text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  background: var(--blue); color: #FFFFFF;
}
.btn:hover { background: var(--blue-hover); color: #FFFFFF; }
.btn-ghost { background: var(--surface); color: var(--blue); border-color: var(--blue); }
.btn-ghost:hover { background: var(--blue-soft); color: var(--blue); }
.btn-dark { background: var(--ink); color: #FFFFFF; }
.btn-dark:hover { background: #1B2A44; color: #FFFFFF; }
.btn-on-panel { background: #FFFFFF; color: var(--ink); }
.btn-on-panel:hover { background: var(--blue-soft); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Cards, as in the app */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card h3 { font-size: 17px; }
.card p { font-size: 15px; line-height: 1.55; }
.card-soft { background: var(--blue-soft); border-color: var(--blue-soft); }
.card-dark { background: var(--ink); border-color: var(--ink); color: var(--navy-text); }
.card-dark h3, .card-dark h2 { color: #FFFFFF; }
.card-dark .label { color: var(--navy-muted); }
.label { font: 700 12px/1.2 var(--f-text); color: var(--muted); }

/* The navy "bubble" rows from the Prep tab */
.bubble { background: var(--ink); color: #FFFFFF; border-radius: 16px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; }
.bubble:hover { background: #1B2A44; color: #FFFFFF; }
.bubble b { display: block; font: 700 16px/1.3 var(--f-text); color: #FFFFFF; }
.bubble span { display: block; font: 400 13px/1.4 var(--f-text); color: var(--navy-text); }
.chev { width: 20px; height: 20px; flex: none; }

/* Challenge cards on the home page */
.challenge-card { padding: 24px; gap: 12px; }
.challenge-card h3 { font: 700 clamp(24px, 2.6vw, 30px)/1.15 var(--f-head-wide); }
.challenge-card p { color: var(--navy-text); flex: 1; }
.challenge-card .meta { font-size: 13px; color: var(--navy-muted); }
.challenge-card .btn { align-self: flex-start; margin-top: 4px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.plan .btn { margin-top: auto; }
.plan-best { background: var(--ink); border-color: var(--ink); color: var(--navy-text); }
.plan-best .label { color: var(--navy-muted); }
.plan-best .price b { color: #FFFFFF; }
.plan-best .price span, .plan-best p { color: var(--navy-text); }
.plan-best .ticks li { color: var(--navy-text); }
.plan-best .ticks svg { color: #8AAEFF; }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.best { font: 700 12px/1 var(--f-text); background: #FFFFFF; color: var(--ink); padding: 6px 10px; border-radius: 999px; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price b { font: 700 40px/1 var(--f-text); color: var(--ink); font-variant-numeric: tabular-nums; }
.price span { font-size: 15px; color: var(--muted); }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: var(--body); }
.ticks svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--blue); }
.btn[aria-disabled="true"] { cursor: default; opacity: 0.85; }
.compare td:nth-child(n+2), .compare th:nth-child(n+2) { text-align: center; width: 90px; }
.compare td:first-child { white-space: normal; }

/* White list rows with a soft-blue icon square */
.row { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-width: 0; }
a.row:hover { border-color: var(--blue); }
.row .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: none; font: 700 12px/1 var(--f-text); }
.row .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row .txt b { font: 700 15px/1.3 var(--f-text); color: var(--ink); }
.row .txt span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.row .right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.row[aria-disabled="true"] { opacity: 0.7; }

/* Pills and chips */
.stages { display: flex; flex-wrap: wrap; gap: 6px; }
.stage { font: 700 12px/1 var(--f-text); padding: 7px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); white-space: nowrap; }
.stage.s0 { background: var(--gray-chip); color: #364152; }
.stage.s2 { background: var(--orange-soft); color: var(--orange-dark); }
.stage.s4 { background: var(--blue); color: #FFFFFF; }
.stage.s6 { background: var(--ink); color: #FFFFFF; }
.chip { font: 700 12px/1 var(--f-text); padding: 5px 8px; border-radius: 6px; white-space: nowrap; }
.chip-open { background: var(--green-soft); color: var(--green); }
.chip-soon { background: var(--blue-soft); color: var(--blue); }
.chip-closed { background: var(--gray-chip); color: #4A5568; }
.pill { font: 700 12px/1 var(--f-text); padding: 7px 10px; border-radius: 999px; white-space: nowrap; }
.pill-open { background: var(--green-soft); color: var(--green); }
.pill-soon { background: var(--gray-chip); color: var(--muted); }
.date { font: 700 13px/1 var(--f-text); color: var(--orange); font-variant-numeric: tabular-nums; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); } }
.phone { background: var(--ground); border: 1px solid var(--line-strong); border-radius: 28px; padding: 18px; display: flex; flex-direction: column; gap: 12px; max-width: 400px; width: 100%; justify-self: center; box-shadow: 0 24px 48px -30px rgba(15, 27, 45, 0.5); }
.phone-top { display: flex; justify-content: space-between; align-items: center; font: 700 17px/1 var(--f-head); color: var(--ink); padding: 2px 2px 4px; }
.phone-top small { font: 400 12px/1 var(--f-text); color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat b { font: 700 22px/1 var(--f-text); color: var(--ink); font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--muted); line-height: 1.3; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 40em; margin-bottom: 28px; }

/* Spreadsheet look (matches the Arial workshop files) */
.sheet { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; min-width: 0; }
.sheet-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--xl-head); font: 400 13px/1.3 var(--f-text); color: var(--muted); }
.sheet-bar .fx { font-style: italic; font-weight: 700; }
.sheet-bar code { color: var(--ink); font: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sheet-scroll { overflow-x: auto; }
.sheet table { border-collapse: collapse; width: 100%; font: 400 13px/1.25 var(--f-text); font-variant-numeric: tabular-nums; color: #000000; }
.sheet th, .sheet td { border: 1px solid var(--xl-grid); padding: 7px 9px; white-space: nowrap; }
.sheet thead th { background: var(--ink); color: #FFFFFF; font-weight: 700; text-align: right; }
.sheet thead th:first-child { text-align: left; }
.sheet td { text-align: right; }
.sheet td:first-child { text-align: left; }
.sheet .wraptxt { white-space: normal; text-align: left; color: var(--muted); }
.sheet .in { color: var(--xl-input); }
.sheet .fill { background: var(--cell); }
.sheet .sel { outline: 2px solid #1E7B45; outline-offset: -2px; }
.sheet .bold td { font-weight: 700; }
.sheet .ok { color: #1E6B3A; font-weight: 700; text-align: left; }
.sheet-tabs { display: flex; gap: 2px; padding: 6px 8px 0; background: var(--xl-head); border-top: 1px solid var(--line); overflow-x: auto; }
.sheet-tabs span { font: 400 12px/1 var(--f-text); padding: 7px 12px; border-radius: 6px 6px 0 0; color: var(--muted); white-space: nowrap; }
.sheet-tabs span.on { background: var(--surface); color: var(--ink); font-weight: 700; }

/* Workshop list (kept for older markup) */
.wlist { display: grid; gap: 10px; }

/* Lesson layout */
.lesson { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 44px; align-items: start; }
.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 92px); display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
.toc a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 9px; color: var(--body); text-decoration: none; font-size: 14px; }
.toc a:hover { background: var(--blue-soft); color: var(--blue); }
.toc .box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-strong); flex: none; display: inline-grid; place-items: center; font-size: 12px; color: transparent; }
.toc a.done .box { background: #2E9E5B; border-color: #2E9E5B; color: #FFFFFF; }
.toc .prog { font: 700 12px/1.4 var(--f-text); color: var(--blue); padding: 4px 10px 8px; letter-spacing: 0.06em; }
@media (max-width: 900px) { .lesson { grid-template-columns: minmax(0, 1fr); } .toc { position: static; flex-direction: row; flex-wrap: wrap; } .toc .prog { width: 100%; } }
.steps { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(18px, 3vw, 28px); display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 100px; min-width: 0; }
.step h2 { font: 600 clamp(22px, 2.6vw, 26px)/1.25 var(--f-head); }
.step-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.step-num { font: 700 12px/1 var(--f-text); color: var(--blue); background: var(--blue-soft); padding: 7px 10px; border-radius: 999px; letter-spacing: 0.04em; }
.prose { display: flex; flex-direction: column; gap: 12px; max-width: 44em; }
.prose ul, .prose ol { margin: 0; padding-left: 1.25em; display: flex; flex-direction: column; gap: 6px; }

/* Formula tables: label, cell, formula, note */
.ftable { border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; background: var(--ground); }
.ftable table { border-collapse: collapse; width: 100%; font: 400 14px/1.4 var(--f-text); }
.ftable th { text-align: left; font: 700 12px/1 var(--f-text); color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ftable td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ftable tr:last-child td { border-bottom: none; }
.ftable td.cell { color: var(--muted); white-space: nowrap; font-weight: 700; }
.ftable td.f { color: var(--ink); white-space: nowrap; font-weight: 700; }
.ftable td.fnote { color: var(--muted); font-size: 13px; min-width: 9em; }

.check { background: var(--green-soft); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; color: var(--body); }
.check strong { color: var(--green); font: 700 12px/1 var(--f-text); letter-spacing: 0.08em; text-transform: uppercase; }
.tip { background: var(--orange-soft); border-radius: 12px; padding: 14px 16px; color: var(--body); }
.tip strong { color: var(--orange-dark); }
.done-btn { align-self: flex-start; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1.5px solid var(--blue); background: var(--surface); color: var(--blue); font: 700 15px/1 var(--f-text); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.done-btn[aria-pressed="true"] { border-color: #2E9E5B; color: var(--green); background: var(--green-soft); }
.legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.legend div { display: flex; gap: 10px; align-items: center; font-size: 14px; background: var(--ground); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.sw { width: 36px; height: 22px; border-radius: 4px; border: 1px solid var(--line-strong); display: inline-grid; place-items: center; font: 700 12px/1 var(--f-text); flex: none; background: var(--surface); }
@media (max-width: 520px) { .legend { grid-template-columns: minmax(0, 1fr); } }
.downloads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dl { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.downloads .dl { background: var(--ground); }
.dl .file { font: 400 13px/1.4 var(--f-text); color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 600px) { .downloads { grid-template-columns: minmax(0, 1fr); } }
.result-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.result { background: var(--ink); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.result .v { font: 700 26px/1.1 var(--f-text); color: #FFFFFF; font-variant-numeric: tabular-nums; }
.result .k { font-size: 13px; color: var(--navy-text); }
@media (max-width: 640px) { .result-row { grid-template-columns: minmax(0, 1fr); } }

/* Challenge page, like the in-app challenge */
.play { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.qcard { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; font: 700 18px/1.45 var(--f-text); color: var(--ink); }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt { min-height: 54px; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 400 15px/1.4 var(--f-text); cursor: pointer; }
.opt:hover { border-color: var(--blue); }
.timerbar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.timerbar i { display: block; height: 100%; background: var(--orange); transition: width 1s linear; }
@media (prefers-reduced-motion: reduce) { .timerbar i { transition: none; } }
.vs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.vs > div { border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.vs > div.win { background: var(--blue); border-color: var(--blue); color: #FFFFFF; }
.vs .big { font: 700 38px/1 var(--f-text); font-variant-numeric: tabular-nums; }
.note { background: var(--blue-soft); color: var(--body); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.linkbox { display: flex; gap: 8px; flex-wrap: wrap; }
.linkbox input, .field { flex: 1 1 240px; min-width: 0; min-height: 46px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); padding: 0 12px; font: 400 15px/1 var(--f-text); }
.panel { background: var(--ink); color: var(--navy-text); border-radius: 16px; padding: clamp(20px, 4vw, 32px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.panel h2, .panel h3 { color: #FFFFFF; }
.panel .eyebrow { color: var(--navy-muted); }
.score-card { display: flex; flex-direction: column; gap: 6px; }
.score-card .big { font: 700 52px/1 var(--f-text); color: #FFFFFF; font-variant-numeric: tabular-nums; }

/* Legal drafts */
.doc { max-width: 44em; display: flex; flex-direction: column; gap: 16px; }
.doc h2 { font: 600 24px/1.3 var(--f-head); margin-top: 16px; }
.doc ul { margin: 0; padding-left: 1.25em; display: flex; flex-direction: column; gap: 6px; }
.draft { background: var(--orange-soft); color: var(--body); border-radius: 12px; padding: 14px 16px; }
.ph { background: #FFF59D; color: var(--ink); padding: 0 4px; border-radius: 3px; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 32px; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.site-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }

/* Accessibility helpers */
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #FFFFFF; padding: 10px 14px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 10px); color: #FFFFFF; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
main:focus { outline: none; }
kbd { font: 700 12px/1 var(--f-text); background: var(--surface); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; padding: 2px 6px; }

/* Storage consent banner: both choices look the same, so neither is pushed */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px max(16px, env(safe-area-inset-left, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
.consent-inner { max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; padding: 16px 18px; display: flex; gap: 14px 20px; align-items: center; flex-wrap: wrap; box-shadow: 0 18px 40px -20px rgba(15, 27, 45, 0.45); }
.consent-inner p { flex: 1 1 320px; font-size: 14px; line-height: 1.5; }
.consent-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.consent-btns .btn { min-width: 120px; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 14px; max-width: 34em; }
.form label { font-weight: 700; font-size: 14px; color: var(--ink); }
.form .hint { font-size: 13px; color: var(--muted); }
.form input[type="email"], .form input[type="text"], .form select, .form textarea { width: 100%; min-height: 46px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); padding: 10px 12px; font: 400 15px/1.4 var(--f-text); }
.form textarea { min-height: 110px; resize: vertical; }
.form fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; margin: 0; }
.form legend { font-weight: 700; font-size: 14px; color: var(--ink); padding: 0 4px; }
.choice { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 400 !important; color: var(--body) !important; }
.choice input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--blue); }
.fgroup { display: flex; flex-direction: column; gap: 6px; }
.hp { position: absolute; left: -9999px; }
.biz { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; font-size: 15px; }
.biz dt { font-weight: 700; color: var(--ink); }
.biz dd { margin: 0; }
@media (max-width: 520px) { .biz { grid-template-columns: 1fr; gap: 2px; } .biz dd { margin-bottom: 8px; } }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkish:hover { color: var(--blue-hover); }

/* Accessibility and phone pass */
/* On navy surfaces the blue focus ring is too faint (2.4:1), so it turns white there */
.panel :focus-visible, .card-dark :focus-visible, .plan-best :focus-visible, .result :focus-visible { outline-color: #FFFFFF; }
/* The "All workshops" link on lesson pages: only as wide as its text, with a 44px tap area that doesn't move anything */
.wrap > a.small { align-self: flex-start; padding-block: 11px; margin-block: -11px; }
/* Phones and touch screens: 44px tap targets in the header, lesson steps and footer */
@media (max-width: 620px), (pointer: coarse) {
  .nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .toc a { min-height: 44px; }
  .site-foot nav { row-gap: 0; }
  .site-foot nav a, .site-foot nav .linkish { min-height: 44px; display: inline-flex; align-items: center; }
}
/* Phones: the header no longer follows you down the page (it took a fifth of the screen),
   and the four nav links share one row instead of wrapping */
@media (max-width: 620px), (max-height: 500px) {
  .site-head { position: static; }
  html { scroll-padding-top: 0; }
  .step { scroll-margin-top: 16px; }
}
@media (max-width: 620px) {
  .nav { width: 100%; flex-wrap: nowrap; }
  .nav a { flex: 1 1 auto; justify-content: center; padding-inline: 6px; }
}
