/* LearnHere — calm, high-contrast, phone-first. */
:root {
  --bg: #f3efe6;
  --paper: #fffdf8;
  --ink: #1b1914;
  --muted: #3a362f;
  --line: #ddd4c4;
  --spruce: #123c2e;
  --spruce-ink: #0e3327;
  --wash: #e7f0eb;
  --wheat: #7a4e0c;
  --good-bg: #e5f3ea;
  --good-ink: #0d3d28;
  --bad-bg: #f8e4e1;
  --bad-ink: #6d1414;
  --focus: #0b3d91;
  --stage: #eef3f0;
  --hotspot: #0b3d91;
  --shadow: 0 1px 2px rgba(27, 25, 20, 0.06);
  --radius: 16px;
  --header: 3.75rem;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --text-caption: 0.875rem;
  --text-body: 1.125rem;
  --text-lede: 1.25rem;
  --text-h3: 1.25rem;
  --text-h2: clamp(1.35rem, 4vw, 1.75rem);
  --text-h1: clamp(1.7rem, 5.6vw, 2.4rem);
  --font-display: Georgia, "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

[hidden] { display: none !important; }

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.questions {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, p, li, a, legend, td, th, code { overflow-wrap: anywhere; }

.cards, .card, .steps, main, #site-nav ul { min-width: 0; }

h1, h2, h3, .price-figure, .brand-name {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

h1 { font-size: var(--text-h1); margin: 0 0 0.75rem; }
h2 { font-size: var(--text-h2); line-height: 1.25; margin: 0 0 0.75rem; }
h3 { font-size: var(--text-h3); line-height: 1.3; margin: 0 0 0.35rem; }

html { scroll-padding-top: calc(var(--header) + 0.75rem); }
h1, h2, h3, .q, .q legend, .lesson-section, .practice-window, .formula-bar, [data-exam-q], [data-exam-review] {
  scroll-margin-top: calc(var(--header) + 0.75rem);
}
.block-sim {
  scroll-margin-top: calc(var(--header) + 2.75rem);
}
.block-sim > h3 {
  scroll-margin-top: var(--header);
}

p { margin: 0 0 1rem; }

a { color: var(--spruce-ink); }
a:hover { color: #06281c; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-150%);
  background: #fff;
  color: var(--ink);
  padding: 0.7rem 1rem;
  z-index: 80;
  border-radius: 10px;
  font-weight: 700;
}

.skip:focus { transform: none; }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 1.5rem, 42rem);
  margin-inline: auto;
}

.wrap-wide {
  width: min(100% - 1.5rem, 68rem);
  margin-inline: auto;
}

header.site {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}

.site-bar {
  width: min(100% - 1.5rem, 68rem);
  margin-inline: auto;
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
  padding: 0.35rem 0;
}

.brand-name { font-size: 1.35rem; display: block; line-height: 1; }
.brand-sub {
  display: none;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0;
  color: var(--muted);
  margin-top: 0.15rem;
}

.nav-toggle {
  display: none;
  min-height: 44px;
  min-width: 44px;
  padding: 0.55rem 0.9rem;
  border: 2px solid var(--spruce);
  background: var(--paper);
  color: var(--spruce-ink);
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
}

.js .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

#site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0 0.75rem;
}

#site-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.4rem 0.2rem;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

#site-nav a[aria-current="page"] {
  color: var(--spruce-ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (min-width: 860px) {
  .js .nav-toggle { display: none; }
  header.site {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100% - 1.5rem, 68rem);
    margin-inline: auto;
    gap: 0.75rem;
  }
  header.site > .site-bar,
  #site-nav > .site-bar {
    width: auto;
    margin: 0;
    min-height: var(--header);
  }
  header.site > .site-bar { flex: 0 1 auto; min-width: 0; }
  #site-nav { flex: 1 1 auto; min-width: 0; }
  #site-nav > .site-bar { justify-content: flex-end; }
  #site-nav ul {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0.1rem;
    padding: 0;
  }
  #site-nav a {
    border: 0;
    min-height: 44px;
    padding: 0.35rem 0.5rem;
    border-radius: 10px;
    white-space: nowrap;
  }
  #site-nav a[aria-current="page"] { background: var(--wash); }
  .home-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1.25rem;
    align-items: center;
  }
  .home-layout .hero-copy h1 { margin-top: 0.35rem; }
  .wide-steps { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}

@media (max-width: 859px) {
  .js #site-nav.is-collapsed { display: none; }
  .js #site-nav:not(.is-collapsed) {
    border-top: 1px solid var(--line);
    background: var(--paper);
    padding-bottom: 0.5rem;
  }
  #site-nav ul,
  #site-nav a { width: 100%; }
}

main { padding: 1.25rem 0 2.5rem; }

.hero h1 { margin-top: 0.85rem; }

.lede { font-size: 1.15rem; }

.proof {
  color: var(--muted);
  font-size: 1rem;
}

.frame {
  border-radius: var(--radius);
  overflow: hidden;
  background: #e6dfd2;
  box-shadow: var(--shadow);
}

.frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.frame-wide { aspect-ratio: 3 / 2; }
.frame-tall { aspect-ratio: 16 / 10; }
.frame-person { aspect-ratio: 4 / 5; }
.frame-slip img { object-fit: contain; background: #e6dfd2; }

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.1rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.75rem 1.15rem;
  border-radius: 12px;
  border: 2px solid var(--spruce);
  background: var(--spruce);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  width: 100%;
}

.btn:hover { background: #0c2e23; color: #fff; }
.btn-secondary { background: var(--paper); color: var(--spruce-ink); }
.btn-secondary:hover { background: var(--wash); color: var(--spruce-ink); }

a.btn:focus-visible, button.btn:focus-visible { color: #fff; }
.btn-secondary:focus-visible { color: var(--spruce-ink); }

.price-anchor {
  margin: 0;
  font-weight: 700;
}

.section { margin-top: 2.4rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.steps li, .card, .panel, .certificate, .q, .faq, .form, .roster li, .stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.steps li { padding: 1rem 1rem 0.25rem; display: grid; grid-template-columns: auto 1fr; gap: 0.75rem 0.9rem; }
.step-num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--spruce);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.2rem;
}
.steps h3 { margin-top: 0.45rem; }
.steps p { grid-column: 2; margin-top: 0; }

.cards { display: grid; gap: 0.9rem; }
.card { padding: 0.85rem 0.85rem 1rem; }
.card h3 { font-size: 1.28rem; }
.card h3 a,
.check a {
  display: flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
}
main p > a:only-child {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.card .meta { color: var(--muted); margin-bottom: 0.6rem; }
.card .frame { margin-bottom: 0.8rem; }

.soon { opacity: 1; }
.soon h3 { font-size: 1.1rem; }
.pill {
  display: inline-block;
  background: var(--wash);
  color: var(--spruce-ink);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.bar {
  height: 0.7rem;
  background: #e6dfd2;
  border-radius: 999px;
  overflow: hidden;
  margin: 0.35rem 0;
}
.bar > span {
  display: block;
  height: 100%;
  background: var(--spruce);
  width: 0;
  border-radius: inherit;
}
.progress-line { display: flex; justify-content: space-between; gap: 0.75rem; font-weight: 700; margin: 0.2rem 0 0; }

.price-block { padding: 1.15rem; }
.price-figure { font-size: clamp(2.7rem, 12vw, 4.4rem); margin: 0; }
.price-unit { font-size: 1.15rem; font-weight: 600; }
.price-grid { display: grid; gap: 0.75rem; margin: 1rem 0; }
.price-grid div {
  background: var(--bg);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}
.price-grid strong { display: block; font-size: 1.35rem; }
.check { padding-left: 1.15rem; margin: 0 0 1rem; }
.check li { margin: 0.4rem 0; }
.draft-tag {
  display: inline-block;
  margin-left: 0.35rem;
  background: #f3e2c2;
  color: #5c3b08;
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.faq details { border-bottom: 1px solid var(--line); background: var(--paper); }
.faq details:first-of-type { border-top: 1px solid var(--line); border-radius: 16px 16px 0 0; }
.faq details:last-of-type { border-radius: 0 0 16px 16px; }
.faq summary {
  min-height: 52px;
  padding: 0.85rem 1rem;
  font-weight: 700;
  cursor: pointer;
}
.faq details p, .faq details ul { padding: 0 1rem; }
.faq details p:last-child, .faq details ul:last-child { padding-bottom: 0.9rem; }

.form { padding: 1rem; }
label { display: block; font-weight: 700; margin: 0.85rem 0 0.35rem; }
input, textarea, select {
  width: 100%;
  font: inherit;
  font-size: 1.0625rem;
  color: var(--ink);
  background: #fff;
  border: 2px solid #c9bfae;
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
  min-height: 48px;
}
textarea { min-height: 8rem; resize: vertical; }
.cert-fields textarea { min-height: 4.75rem; }
.field-echo { margin: 0.35rem 0 0; font-weight: 700; }
.hint { color: var(--muted); font-weight: 500; font-size: 0.98rem; }

.crumbs { margin: 0 0 0.8rem; font-size: 0.98rem; }
.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.15rem 0.35rem 0;
}
.crumbs a::after { content: " /"; }

.step-label { font-weight: 700; margin-bottom: 0.35rem; }
.lesson-list { list-style: none; margin: 0; padding: 0; max-width: 100%; }
.lesson-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
  max-width: 100%;
}
.lesson-list a {
  font-weight: 700;
  min-height: 44px;
  display: flex;
  align-items: center;
  max-width: 100%;
}
.status { color: var(--muted); font-size: 0.98rem; margin: 0; }

.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin: 0.35rem 0; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1rem;
}
.prose th, .prose td {
  border: 1px solid var(--line);
  padding: 0.55rem 0.4rem;
  text-align: left;
  vertical-align: top;
}
.prose th { background: var(--wash); }
.prose code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.92em;
}
.remember {
  background: var(--wash);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin: 0 0 1rem;
}

.sources { padding-left: 1.15rem; }
.sources a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0;
}

.q { padding: 0.9rem; margin: 0 0 0.8rem; }
.q legend { font-weight: 700; padding: 0; margin-bottom: 0.6rem; }
.option {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  min-height: 48px;
  padding: 0.75rem 0.8rem;
  border: 2px solid #c9bfae;
  border-radius: 12px;
  margin: 0.5rem 0;
  font-weight: 600;
  background: #fff;
}
.option input { width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; accent-color: var(--spruce); flex: none; }
.option span { flex: 1; min-width: 0; }
.option:has(input:checked) { border-color: var(--spruce); background: var(--wash); }
.option:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

.feedback {
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  margin: 0.6rem 0 0;
  font-weight: 600;
}
.feedback.is-good { background: var(--good-bg); color: var(--good-ink); }
.feedback.is-bad { background: var(--bad-bg); color: var(--bad-ink); }

.example {
  background: #5c3b08;
  color: #fff8ea;
  margin: 0;
  padding: 0.75rem 0;
  font-weight: 800;
  text-align: center;
}
.example p { width: min(100% - 1.5rem, 68rem); margin: 0 auto; }

.stats { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.7rem; }
.stat { padding: 0.9rem 1rem; }
.stat strong { display: block; font-family: Georgia, serif; font-size: 2rem; }

.roster { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.roster li { padding: 0.9rem 1rem 0.4rem; }
.roster dl { margin: 0.4rem 0 0.6rem; }
.roster dt { font-weight: 700; }
.roster dd { margin: 0 0 0.45rem; }

.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 0.9rem; }
.tabs button {
  min-height: 48px;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 2px solid var(--spruce);
  background: var(--paper);
  color: var(--spruce-ink);
  font: inherit;
  font-weight: 700;
}
.tabs button[aria-selected="true"] { background: var(--spruce); color: #fff; }

.matrix { display: grid; gap: 0.65rem; }
.matrix-row {
  display: grid;
  gap: 0.45rem 0.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
}
.matrix-head { display: none; }
.matrix-name { font-weight: 700; }
.matrix-row [data-label]::before {
  content: attr(data-label);
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.reading { width: min(100%, 42rem); }
.continue { margin: 0 0 1.25rem; }

dialog {
  width: min(100% - 1.5rem, 36rem);
  max-height: calc(100dvh - 1rem);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  background: var(--paper);
  color: var(--ink);
}
dialog::backdrop { background: rgba(27, 25, 20, 0.55); }

.cert-page-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.cert-print-bar { margin: 0 0 0.5rem; }
.cert-scale {
  width: min(100%, calc((100dvh - 16.5rem) * 11 / 8.5));
  margin: 0 auto 0.75rem;
  container-type: inline-size;
}
.certificate {
  position: relative;
  width: 100%;
  aspect-ratio: 11 / 8.5;
  margin: 0;
  padding: 3.2cqw 4cqw 2.4cqw;
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid var(--spruce);
  box-shadow: inset 0 0 0 0.55cqw var(--paper), inset 0 0 0 0.72cqw #c4a36a;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  align-content: stretch;
}
.cert-corner {
  position: absolute;
  width: 1.1cqw;
  height: 1.1cqw;
  border: 1px solid #c4a36a;
  transform: rotate(45deg);
  z-index: 2;
}
.cert-corner-nw { top: 1.6cqw; left: 1.6cqw; }
.cert-corner-ne { top: 1.6cqw; right: 1.6cqw; }
.cert-corner-sw { bottom: 1.6cqw; left: 1.6cqw; }
.cert-corner-se { bottom: 1.6cqw; right: 1.6cqw; }
.cert-watermark {
  margin: 0.6cqw 0 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 2.4cqw;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(18, 60, 46, 0.07);
  pointer-events: none;
}
.sample-flag {
  position: absolute;
  top: 2.2cqw;
  right: 3.2cqw;
  z-index: 2;
  margin: 0;
  background: #5c3b08;
  color: #fff8ea;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.5cqw;
  border-radius: 999px;
  padding: 0.25cqw 1.1cqw;
}
.cert-top, .cert-centre, .cert-band, .cert-footer { position: relative; z-index: 1; }
.cert-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1cqw;
  padding-right: 12cqw;
}
.cert-brand {
  display: flex;
  align-items: center;
  gap: 0.8cqw;
  margin: 0;
  color: var(--spruce);
  font-family: var(--font-display);
  font-size: 3.2cqw;
}
.cert-brand .mark { width: 4.2cqw; height: 4.2cqw; }
.cert-kicker {
  margin: 0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 1.7cqw;
  color: var(--spruce);
}
.cert-centre { text-align: center; align-self: end; margin-bottom: 6.1cqw; }
.cert-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 6.2cqw;
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.cert-has, .cert-when, .cert-org, .cert-hours, .cert-exam {
  margin: 0.35cqw auto 0;
  font-size: 1.9cqw;
  line-height: 1.25;
  width: max-content;
  max-width: 100%;
}
.cert-when { white-space: nowrap; }
.cert-exam { max-width: 86%; }
.cert-course {
  margin: 0.4cqw 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 3.3cqw;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.cert-band {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 1.5cqw;
  margin-top: 1cqw;
}
.cert-logo { min-height: 8cqw; display: flex; align-items: flex-end; }
.cert-logo img { max-width: 13.7cqw; max-height: 7.8cqw; object-fit: contain; }
.cert-seal { width: 14.7cqw; height: auto; justify-self: center; }
.cert-sign { justify-self: end; text-align: right; min-width: 18cqw; }
.cert-sign-label {
  margin: 0 0 0.3cqw;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-variant: small-caps;
  font-size: 1.35cqw;
  color: var(--spruce);
}
.cert-sign-space { height: 3.4cqw; }
.cert-sign-name {
  margin: 0;
  border-top: 1px solid var(--spruce);
  padding-top: 0.35cqw;
  font-family: var(--font-display);
  font-size: 2.2cqw;
}
.cert-sign-title { margin: 0.15cqw 0 0; font-size: 1.5cqw; }
.cert-footer { margin-top: 1.2cqw; }
.cert-id { margin: 0; font-size: 1.45cqw; letter-spacing: 0.04em; }
.cert-honest, .cert-credit {
  margin: 0.25cqw 0 0;
  font-size: 1.35cqw;
  font-weight: 400;
  line-height: 1.3;
}
.cert-staff { margin: 0.5rem 0 1rem; }
.cert-staff summary { min-height: 44px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
.cert-fields { margin: 0.5rem 0 1rem; }
.cert-fields input[type="file"] { max-width: 100%; }
@media (max-width: 400px) {
  .cert-scale { width: 100%; max-width: 100%; }
  .certificate {
    aspect-ratio: auto;
    height: auto;
    overflow: visible;
    max-width: 100%;
    min-width: 0;
    grid-template-rows: auto auto auto auto;
  }
  .cert-top, .cert-centre, .cert-band, .cert-footer { min-width: 0; max-width: 100%; }
  .cert-name, .cert-has, .cert-when, .cert-org, .cert-hours, .cert-exam, .cert-course,
  .cert-id, .cert-honest, .cert-credit {
    width: auto;
    max-width: 100%;
  }
  .cert-band { grid-template-columns: 2.25rem 3.25rem minmax(0, 1fr); }
  .cert-seal { width: 3.25rem; min-width: 0; }
  .cert-sign { min-width: 0; max-width: 100%; justify-self: end; }
  .cert-sign-label, .cert-sign-name, .cert-sign-title { overflow-wrap: anywhere; }
}
@media (max-width: 360px) {
  .cert-when, .cert-org, .cert-hours, .cert-exam, .cert-sign-name, .cert-sign-title, .cert-sign-label { font-size: 10px; }
  .cert-course { font-size: max(3.3cqw, 12px); }
  .cert-id, .cert-honest, .cert-credit { font-size: 8px; }
}

footer.site {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 2rem;
  background: #ebe4d6;
}
.disclaimer { font-weight: 700; margin-bottom: 0.35rem; }
.credit { margin: 0; font-size: 0.98rem; }
.credit a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

@media (min-width: 600px) {
  .actions { flex-direction: row; flex-wrap: wrap; }
  .btn { width: auto; }
  .actions .btn { min-width: 12rem; }
  .price-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 800px) {
  .cards.cols-3 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
  main { padding-top: 1.75rem; }
}

@media (min-width: 1100px) {
  .matrix-head,
  .matrix-row { grid-template-columns: 1.25fr repeat(4, 1fr); align-items: center; }
  .matrix-head {
    display: grid;
    background: transparent;
    border: 0;
    padding: 0 0.9rem;
    font-weight: 700;
  }
  .matrix-row [data-label]::before { content: none; }
}

@media (min-width: 1040px) {
  .brand-sub { display: block; line-height: 1.25; max-width: 16rem; }
  .cards.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 380px) {
  .site-bar,
  .wrap,
  .wrap-wide { width: min(100% - 1rem, 68rem); }
  h1 { font-size: 1.6rem; }
}

@media (min-width: 860px) and (max-width: 1039px) {
  header.site { align-items: center; }
  #site-nav ul { flex-wrap: wrap; justify-content: flex-end; }
  #site-nav a { padding: 0.35rem 0.4rem; }
}

@media (max-width: 600px) {
  dialog {
    width: calc(100% - 1rem);
    max-height: calc(100dvh - 1rem);
  }
  #draft-text { min-height: 16rem; height: auto; field-sizing: content; }
}

@media (max-height: 620px) {
  .hero .frame-wide { aspect-ratio: 2 / 1; }
}

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

.role-switch {
  width: min(100% - 1.5rem, 68rem);
  margin: 0.5rem auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.role-label { margin: 0; flex-basis: 100%; }
.access-banner {
  width: min(100% - 1.5rem, 68rem);
  margin: 0.5rem auto;
  padding: 0.75rem 1rem;
  background: var(--wash);
  border: 2px solid var(--spruce);
}
.role-switch button {
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 2px solid var(--spruce);
  background: var(--paper);
  color: var(--spruce-ink);
  font: inherit;
}
.role-switch button[aria-pressed="true"] { background: var(--spruce); color: #fff; }
.reading, .longform, .syllabus {
  font-size: var(--text-body);
  line-height: 1.7;
  width: min(100%, 40rem);
}
.longform p, .reading p, .syllabus p { margin: 0 0 1rem; }
.syllabus .lede, .lede { font-size: var(--text-lede); line-height: 1.55; }
.meta, .block-label, .caption { font-size: var(--text-caption); line-height: 1.4; }
.block { margin: 0 0 1rem; }
.block-example,
.block-assignment,
.block-check {
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: var(--paper);
}
.block-label { font-weight: 700; margin: 0.6rem 0 0.2rem; }
.result-line { font-size: 1.0625rem; line-height: 1.55; font-weight: 600; }
.section-nav summary,
.block-check summary {
  min-height: 44px;
  display: flex;
  align-items: center;
}
.file-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.file-list li { margin: 0 0 0.75rem; }
.prose, .longform { overflow-wrap: anywhere; }
.prose table, .longform table { display: block; max-width: 100%; overflow-x: auto; }
@media (min-width: 860px) {
  .section-nav { position: sticky; top: calc(var(--header) + 0.5rem); }
  .syllabus-top { display: grid; grid-template-columns: minmax(0, 1fr) 16rem; gap: 1.5rem; align-items: start; }
  .syllabus-top .frame { aspect-ratio: 4 / 3; max-height: 11rem; }
}
.demo-controls { margin-top: 1rem; }
.demo-controls summary { min-height: 44px; display: flex; align-items: center; }

.sample-banner {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  background: var(--wheat, #7a4e0c);
  color: #fff;
  font-weight: 700;
}
.report-filters {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1rem;
}
.report-filters label { display: grid; gap: 0.25rem; font-weight: 700; }
.report-filters select,
.report-filters input {
  min-height: 44px;
  font: inherit;
  padding: 0.4rem 0.6rem;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
}
.report-cards { display: grid; gap: 0.75rem; }
.report-card {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}
.table-scroll { overflow-x: auto; max-width: 100%; }
.report-table { width: 100%; border-collapse: collapse; }
.report-table th,
.report-table td {
  border: 1px solid var(--line);
  padding: 0.4rem 0.5rem;
  text-align: left;
  vertical-align: top;
}
.practice-window { border: 2px solid var(--spruce); border-radius: 12px; background: #fffdf8; max-width: 100%; overflow: hidden; }
.pw-bar, .formula-bar { display: flex; gap: 0.5rem; align-items: center; min-height: 44px; padding: 0.4rem 0.6rem; background: var(--stage); border-bottom: 1px solid var(--line); }
.formula-bar span { min-height: 36px; display: inline-flex; align-items: center; }
[data-name-box] { min-width: 3rem; font-weight: 700; }
[data-formula-input] { flex: 1; font-family: ui-monospace, monospace; }
.sheet-scroll, .pw-scroll { overflow-x: auto; max-width: 100%; }
.sheet { border-collapse: collapse; }
.sheet th, .sheet td { border: 1px solid var(--line); padding: 0; white-space: nowrap; }
.sheet button { min-width: 44px; min-height: 44px; padding: 0.4rem 0.6rem; white-space: nowrap; background: #fff; color: var(--ink); border: 0; }
.sheet td.is-selected { outline: 3px solid var(--hotspot); outline-offset: -3px; }
.sheet-keys, .pw-menu, .pw-ribbon { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.4rem; max-width: 100%; }
.pw-ribbon { background: #e7f0eb; border-bottom: 1px solid var(--line); }
.sheet-keys button, .pw-menu button, .pw-ribbon button { white-space: normal; min-height: 44px; width: auto; max-width: 100%; flex: 0 1 auto; text-align: left; }
.pw-status { margin: 0; padding: 0.4rem 0.6rem 0.6rem; }
.launch, .word-page, .ol-pane, .job-form, .job-results { margin: 0.6rem; padding: 0.6rem; background: #fff; border: 1px solid var(--line); max-width: calc(100% - 1.2rem); }
.launch { background: #f4efe4; min-height: 7rem; }
.doc-title.is-selected, [data-slot="sent1"].is-selected { outline: 3px solid var(--hotspot); }
.doc-title.is-bold { font-weight: 700; }
.doc-title.is-heading { font-size: 1.35rem; }
.ol-split { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 0.4rem; max-width: 100%; }
@media (max-width: 360px) {
  .ol-split { grid-template-columns: 1fr; }
}
.ol-list { list-style: none; margin: 0.6rem; padding: 0; }
.ol-list li { min-height: 44px; display: flex; align-items: center; }
.is-flagged::after { content: "  Flagged"; }
[data-job="other"][hidden], [data-slot][hidden] { display: none; }
.section-picker { margin: 0 0 1rem; }
.section-picker summary, .section-picker a { min-height: 44px; }
#exam-locked summary, #exam-locked a { min-height: 44px; display: flex; align-items: center; }
.exam-q[hidden], [data-exam-review][hidden] { display: none; }
.section-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
  max-width: 100%;
}
.section-nav a, .lesson-list a { display: flex; align-items: center; min-height: 44px; }
.order-row.is-picked { outline: 2px solid var(--hotspot); background: var(--wash); }
.section-chips a {
  flex: 1 1 12rem;
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  scroll-snap-align: start;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  border: 2px solid var(--spruce);
  border-radius: 999px;
  background: var(--paper);
  text-decoration: none;
  color: var(--spruce-ink);
}
.section-chips a[aria-current="location"] { background: var(--wash); }
.stage {
  position: relative;
  background: var(--stage);
  border: 2px solid var(--spruce);
  border-radius: var(--radius);
  padding: var(--space-4);
  overflow-x: auto;
  max-width: 100%;
}
.sheet {
  border-collapse: collapse;
  min-width: 16rem;
  background: var(--paper);
}
.sheet th, .sheet td { border: 1px solid var(--line); padding: 0; }
.sheet button, .hotspot {
  min-width: 44px;
  min-height: 44px;
  width: 100%;
  border: 2px solid transparent;
  background: transparent;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}
.sheet button.is-target, .hotspot.is-target { outline: 2px solid var(--hotspot); }
.ribbon {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.ribbon button { min-height: 44px; }
.badge-list { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 0; list-style: none; }
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  background: var(--wash);
  color: var(--spruce-ink);
}
.badge[data-earned="false"] { opacity: 0.55; }
.coming-soon { border-style: dashed; }
.cheat-sheet { background: var(--paper); border: 2px solid var(--wheat); border-radius: var(--radius); padding: var(--space-4); }
.order-row, .branch-choice { min-height: 48px; }
.funder-print { display: none; }
@media print {
  body.printing-cheat header.site,
  body.printing-cheat footer.site,
  body.printing-cheat .lesson-section,
  body.printing-cheat .section-chips,
  body.printing-cheat .no-print,
  body.printing-cheat .role-switch { display: none !important; }
  body.printing-cheat .cheat-sheet { display: block; border: 0; }
}

@media print {
  @page { size: letter; margin: 0.6in; }
  header.site, .nav-toggle, .role-switch, .access-banner, .cert-fields, .no-print, .crumbs, .actions, .report-screen, footer.site, .example {
    display: none !important;
  }
  .funder-print { display: block; }
  body:has(.funder-print) { page: funder-sheet; }
  body:has(.funder-print) main h1,
  body:has(.funder-print) main .lede,
  body:has(.funder-print) .report-screen,
  body:has(.funder-print) .sample-banner { display: none !important; }
  body:has(.funder-print) .funder-print,
  body:has(.funder-print) .funder-print .sample-banner,
  body:has(.funder-print) .funder-print h1 { display: block !important; }
  body:has(.funder-print) .report-logo { display: flex; align-items: center; gap: 0.3rem; font-weight: 700; margin: 0.06in 0 0; font-size: 9pt; }
  body:has(.funder-print) .funder-print h1 { font-size: 14pt; margin: 0.04in 0 0; }
  body:has(.funder-print) .funder-print h2 { font-size: 11pt; margin: 0.1in 0 0.03in; }
  body:has(.funder-print) .funder-print p,
  body:has(.funder-print) .funder-print li { margin: 0; font-size: 9pt; line-height: 1.25; }
  body:has(.funder-print) .funder-print ul { margin: 0; padding-left: 1.1em; }
  body:has(.funder-print) .funder-print .sample-banner { margin: 0 0 0.06in; padding: 0.03in 0.08in; }
  body:has(.funder-print) .report-table,
  body:has(.funder-print) .report-table th,
  body:has(.funder-print) .report-table td {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    font-size: 9pt;
    line-height: 1.2;
    padding: 0.03in 0.05in;
  }
  .sample-banner { background: #fff; color: #000; border: 2px solid #000; }
  .report-table { break-inside: auto; }
  .report-table tr { break-inside: avoid; }
  .funder-print h1 { font-size: 14pt; margin: 0; }
  .table-scroll { overflow: visible; }
  body { background: #fff; font-size: 12pt; }
  .wrap, .wrap-wide { width: auto; }
  .certificate { break-inside: avoid; }
  a { color: #000; text-decoration: none; }
  footer.site { background: #fff; border: 0; padding-top: 1rem; }
}

@page learnhere-cert {
  size: letter landscape;
  margin: 0.4in;
}
@page funder-sheet {
  size: letter landscape;
  margin: 0.4in;
}

@media print {
  body:has(#certificate) {
    page: learnhere-cert;
    background: #fff;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  body:has(#certificate) header.site,
  body:has(#certificate) footer.site,
  body:has(#certificate) nav,
  body:has(#certificate) .nav-toggle,
  body:has(#certificate) .skip,
  body:has(#certificate) .crumbs,
  body:has(#certificate) .cert-fields,
  body:has(#certificate) .no-print,
  body:has(#certificate) .actions,
  body:has(#certificate) #cert-locked,
  body:has(#certificate) #cert-ready > h1,
  body:has(#certificate) #cert-state {
    display: none !important;
  }
  body:has(#certificate) main,
  body:has(#certificate) .wrap,
  body:has(#certificate) #cert-ready {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
  }
  body:has(#certificate) .cert-scale { width: 10.2in; margin: 0; container-type: inline-size; }
  body:has(#certificate) .certificate {
    width: 10.2in;
    height: 7.55in;
    max-width: none;
    margin: 0;
    aspect-ratio: auto;
    break-inside: avoid;
    page-break-inside: avoid;
    break-after: avoid;
    page-break-after: avoid;
    overflow: hidden;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  body:has(#certificate) .cert-name { font-size: 48pt; }
  body:has(#certificate) .cert-has,
  body:has(#certificate) .cert-when,
  body:has(#certificate) .cert-org { font-size: 13pt; }
  body:has(#certificate) .cert-course { font-size: 24pt; }
  body:has(#certificate) .cert-seal { width: 1.5in; }
  body:has(#certificate) .cert-centre { margin-bottom: 0.62in; }
  body:has(#certificate) .cert-sign-space { height: 0.55in; }
  body:has(#certificate) .cert-sign-label { font-size: 8pt; }
  body:has(#certificate) .cert-logo img { max-width: 1.4in; max-height: 0.8in; }
  body:has(#certificate) .cert-honest,
  body:has(#certificate) .cert-credit,
  body:has(#certificate) .cert-id,
  body:has(#certificate) .cert-watermark { font-size: 8pt; font-weight: 400; }
  body:has(#certificate) .cert-watermark { color: rgba(18, 60, 46, 0.14); }
  body:has(#certificate) .crumbs,
  body:has(#certificate) h1,
  body:has(#certificate) #cert-state,
  body:has(#certificate) button { display: none !important; }
  body:has(#certificate) .cert-staff,
  body:has(#certificate) .cert-print-bar,
  body:has(#certificate) #cert-state { display: none !important; }
}
