/* Atkinson Hyperlegible Next — SIL Open Font License; see assets/fonts/atkinson-hyperlegible-next/OFL.txt. */
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(./assets/fonts/atkinson-hyperlegible-next/italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(./assets/fonts/atkinson-hyperlegible-next/italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(./assets/fonts/atkinson-hyperlegible-next/normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(./assets/fonts/atkinson-hyperlegible-next/normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --course-font: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, Arial, sans-serif;
  --bg: #f3efe6;
  --paper: #ffffff;
  --ink: #171713;
  --muted: #676052;
  --line: #d8d0c1;
  --green: #1f5d43;
  --green-dark: #194a35;
  --green-soft: #e4efe8;
  --error: #8b3a2b;
}
* { box-sizing: border-box; }
html { scroll-padding-bottom: 7rem; }
body { margin: 0; min-height: 100vh; position: relative; isolation: isolate; background: var(--bg); color: var(--ink); font: 18px/1.65 var(--course-font); }
body::before, body::after { content: ""; position: fixed; inset: 0; pointer-events: none; }
body::before { z-index: -2; background: url("/assets/backgrounds/sc-coastal.webp") center center / cover no-repeat; }
body::after { z-index: -1; background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(247,242,234,.02)); }
button, select, input { font: inherit; }
button, select { min-height: 44px; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
button:focus-visible, select:focus-visible, input:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #277a57; outline-offset: 3px; }
h1:focus { outline: none; }
[hidden] { display: none !important; }
.shell { width: min(94%, 86rem); margin: 0 auto; padding-bottom: 7.5rem; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; padding: 1.15rem .2rem; font: 14px/1.4 var(--course-font); }
.brand { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.brand strong { font-size: 16px; color: var(--green-dark); }
.brand span { color: var(--muted); }
.language { display: flex; align-items: center; gap: .6rem; }
.course-account { display:flex; align-items:center; gap:1rem; flex-wrap:wrap; justify-content:flex-end; }
.course-account .button { font:14px/1.4 var(--course-font); padding:.55rem .8rem; }
.save-status { color:var(--muted); font:13px/1.5 var(--course-font); margin:0 0 .75rem; }
.save-status .button { font:inherit; padding:.2rem .6rem; min-height:32px; }
#registration-dialog { width:min(92vw,32rem); max-height:90dvh; overflow:auto; border:1px solid var(--line); border-radius:16px; padding:1.5rem; color:var(--ink); background:var(--paper); font:16px/1.55 var(--course-font); }
#registration-dialog::backdrop { background:rgba(20,35,27,.5); }
.registration-heading { display:flex; align-items:center; gap:1rem; justify-content:space-between; margin-bottom:1rem; }
.registration-heading h2 { margin:0; }
#registration-content form { display:grid; gap:.8rem; margin-top:1rem; }
#registration-content label { display:grid; gap:.35rem; }
#registration-content input { width:100%; min-height:44px; padding:.6rem .7rem; border:1px solid var(--line); border-radius:8px; }
#registration-content p { margin:0 0 .75rem; }
.reviewer-sign-in { display:block; margin-top:1.25rem; padding-top:1rem; border-top:1px solid var(--line); color:var(--green-dark); text-align:center; text-underline-offset:.2em; }
#registration-status { margin:1rem 0 0; color:var(--error); }
@media(max-width:560px) { .topbar { flex-wrap:wrap; } .course-account { width:100%; justify-content:space-between; gap:.5rem; } }
select { color: var(--ink); border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: .5rem 2rem .5rem .7rem; max-width: 100%; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.35rem, 3vw, 2.65rem); min-height: min(72vh, 44rem); }
.lesson-head { padding-bottom: 1.3rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.module-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.2rem; font: 14px/1.4 var(--course-font); }
.module-picker { display: flex; align-items: center; gap: .7rem; min-width: 0; max-width: 100%; }
.module-picker select { width: min(32rem, 100%); }
.module-picker span { color: var(--muted); }
.lesson-number { color: var(--muted); margin: 0; }
.progress { height: 5px; background: #e8ede8; border-radius: 3px; overflow: hidden; margin-bottom: 1.5rem; }
.progress span { display: block; height: 100%; background: var(--green); }
h1 { font-size: clamp(1.65rem, 2.8vw, 2.4rem); line-height: 1.2; margin: 0; font-weight: 600; overflow-wrap: anywhere; }
h2 { font-size: 1.28rem; line-height: 1.35; margin: 1.4rem 0 .55rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: .25rem 0 1.2rem; padding-left: 1.35rem; }
li { margin-bottom: .5rem; }
.lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 34%); gap: clamp(1.6rem, 3.2vw, 3rem); align-items: start; }
.lesson-content { min-width: 0; }
.exam-instructions { grid-template-columns:1fr; }
.exam-instructions .lesson-content { max-width:70ch; }
.lesson-content > :first-child { margin-top: 0; }
.lesson-content p, .lesson-content li { overflow-wrap: anywhere; }
.lesson-content a { color: var(--green-dark); text-underline-offset: .15em; }
.visual { margin: 0; min-width: 0; position: sticky; top: 1rem; }
.image-placeholder { display: flex; min-height: 245px; aspect-ratio: 4 / 3; align-items: center; justify-content: center; flex-direction: column; border: 1px dashed #afa99a; border-radius: 10px; background: #f7f6f1; padding: 1.5rem; text-align: center; }
.placeholder-label { color: var(--muted); font: 13px/1.5 var(--course-font); letter-spacing: .025em; margin: 0 0 .5rem; }
.placeholder-description { color: #514d43; font: 16px/1.55 var(--course-font); margin: 0; }
.visual img { display: block; max-width: 100%; height: auto; margin: auto; border: 1px solid var(--line); border-radius: 10px; }
.visual figcaption { color: var(--muted); font: 14px/1.55 var(--course-font); margin-top: .6rem; }
.narration { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1rem 0 0; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 16px; background: #fbf8f1; font: 14px/1.4 var(--course-font); }
.narration button { border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: .55rem .85rem; color: var(--ink); }
.narration .listen { border-color: var(--green); background: var(--green); color: #fff; font-weight: 600; }
.narration-title { margin-right: .2rem; }
.narration-speed { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); }
.narration-speed select { font: inherit; padding: .45rem .65rem; }
.narration-status { color: var(--muted); margin-left: .4rem; font-size: 13px; }
.activity { border-top: 1px solid var(--line); margin-top: 1.4rem; padding-top: 1.15rem; }
.inline-reveal { display: inline-block; position: relative; min-height: 1.8em; min-width: 5.25rem; max-width: 100%; margin: .1em .1em; padding: 0 .35em; border: 1px solid var(--green); border-radius: 6px; background: var(--green-soft); color: transparent; font: inherit; line-height: inherit; letter-spacing: inherit; text-align: left; white-space: normal; vertical-align: baseline; cursor: pointer; }
.inline-reveal::after { content: '+ ' attr(data-reveal-label); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--green-dark); font: 600 13px/1.2 var(--course-font); text-align: center; pointer-events: none; }
.inline-reveal:not(.is-revealed):hover { background: #d3e7d9; border-color: var(--green-dark); }
.inline-reveal:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.inline-reveal.is-revealed { border-color: transparent; background: #edf4ee; color: inherit; cursor: default; }
.inline-reveal.is-revealed::after { visibility: hidden; }
.reveal-review { margin: 0 0 1.5rem; padding: 1rem; border: 1px solid var(--line); border-radius: 10px; background: #f7f8f3; font: 14px/1.5 var(--course-font); }
.reveal-review p { margin: .5rem 0; }
.review-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.reveal-review .button { font-size: 14px; min-height: 44px; padding: .5rem .85rem; }
.review-status { color: var(--muted); }
.review-mark { background: #d7ebdc; color: inherit; border-bottom: 2px solid var(--green); cursor: pointer; }
.review-mark:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.review-selection { position: fixed; z-index: 6; bottom: 6.8rem; left: 50%; transform: translateX(-50%); width: min(92vw, 48rem); padding: .8rem 1rem; border: 1px solid var(--green); border-radius: 10px; background: #fff; box-shadow: 0 3px 16px #0002; display: flex; align-items: center; gap: 1rem; }
.review-selection span { flex: 1; min-width: 0; overflow-wrap: anywhere; max-height: 5rem; overflow: auto; }
@media (max-width: 560px) { .review-selection { bottom: 7.5rem; flex-wrap: wrap; gap: .5rem; } .review-selection span { flex-basis: 100%; } }
.activity h2 { margin-top: 0; }
.activity-intro { color: var(--muted); font: 14px/1.5 var(--course-font); margin-bottom: .8rem; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 600; font-size: 1.13rem; line-height: 1.5; padding: 0; margin-bottom: .8rem; width: 100%; }
.option { display: flex; align-items: baseline; gap: .7rem; border: 1px solid var(--line); padding: .8rem .9rem; border-radius: 9px; margin: .6rem 0; cursor: pointer; }
.option:has(input:checked) { border-color: var(--green); background: #f0f6f2; }
.option input { flex: none; width: 18px; height: 18px; accent-color: var(--green); }
.option span { min-width: 0; }
.answer-actions { margin-top: 1rem; }
.feedback { font-size: 1rem; border-left: 3px solid var(--green); background: #f0f6f2; padding: .85rem 1rem; margin: 1rem 0 0; }
.feedback.incorrect { border-color: var(--error); background: #fbf0ec; }
.feedback strong { display: block; margin-bottom: .3rem; }
.reveal { margin: .7rem 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.reveal summary { cursor: pointer; font-weight: 600; padding: .9rem 1rem; }
.reveal summary::marker { color: var(--green); }
.reveal[open] summary { background: #f0f6f2; border-bottom: 1px solid var(--line); }
.reveal-body { padding: 1rem; }
.reveal-body > :last-child { margin-bottom: 0; }
.callout { margin: 1.15rem 0; border-left: 3px solid var(--green); padding: .35rem 0 .35rem 1rem; }
.callout > :last-child { margin-bottom: 0; }
.bottom-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 5; border-top: 1px solid var(--line); background: #fcf8f0; padding-bottom: env(safe-area-inset-bottom); }
.bar-inner { width: min(94%, 86rem); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem .2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 24px; padding: .65rem 1.5rem; font: 600 16px/1.4 var(--course-font); border: 1px solid var(--green); text-align: center; }
.button.primary { color: #fff; background: var(--green); }
.button.primary:hover:not(:disabled) { background: var(--green-dark); }
.button.secondary { color: var(--ink); background: #fff; border-color: var(--line); }
.button.secondary:hover:not(:disabled) { border-color: var(--green); }
.position { font: 14px/1.4 var(--course-font); color: var(--muted); text-align: center; margin: 0; }
.error { color: var(--error); }
.skip-link { position: absolute; top: -10rem; left: 1rem; z-index: 10; background: #fff; color: var(--green-dark); padding: .6rem 1rem; }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 850px) {
  .lesson-layout { grid-template-columns: 1fr; }
  .visual { position: static; max-width: 32rem; width: 100%; margin: .5rem auto 0; }
  .image-placeholder { min-height: 180px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .shell { width: 94%; padding-bottom: 7.7rem; }
  .topbar { align-items: start; font-size: 13px; }
  .brand { display: block; }
  .brand span { display: block; font-size: 12px; margin-top: .2rem; }
  .language { display: block; text-align: right; }
  .language > span { display: none; }
  .language select { max-width: 8rem; }
  .panel { padding: 1.15rem; border-radius: 12px; }
  .module-row { display: block; }
  .module-picker { display: block; }
  .module-picker > span { display: block; margin-bottom: .3rem; }
  .module-picker select { width: 100%; }
  .lesson-number { margin-top: .75rem; }
  .narration-status { width: 100%; margin-left: 0; }
  .bar-inner { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem 1rem; padding: .65rem .2rem; }
  .bar-inner .position { grid-column: 1 / -1; grid-row: 2; font-size: 12px; }
  .bar-inner .button { padding: .65rem 1rem; }
  #previous { grid-column: 1; grid-row: 1; }
  #next { grid-column: 2; grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  body::before, body::after { display: none; }
  .topbar, .bottom-bar, .narration, .module-picker, .answer-actions { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .shell { width: 100%; padding: 0; }
  .panel { padding: 0; border: 0; }
  .lesson-layout { grid-template-columns: minmax(0, 1fr) 30%; }
}
.legal{width:fit-content;max-width:100%;text-align:center;margin:1rem auto;padding:.35rem .8rem;border-radius:8px;background:transparent;font:14px/1.5 var(--course-font);color:#676052}.legal a{color:inherit}

.home-link { color: inherit; text-decoration: none; }
.home-link:hover { text-decoration: underline; }

.sample-visual img { max-height: 280px; max-height: min(34vh, 280px); width: auto; object-fit: contain; }
.sample-selector { display: grid; gap: .4rem; margin-bottom: .75rem; }
.sample-selector select { width: 100%; min-width: 0; padding: .55rem; font: inherit; }
.sample-visual > a:last-child { display: inline-block; margin-top: .5rem; font-size: .9rem; }

/* Reviewer controls remain visible while reading and never appear for students. */
.auditor-bar { position:sticky; top:0; z-index:50; padding:16px 20px; border:1px solid #b58b35; background:#fef3c7; color:#422006; border-radius:12px; font:14px/1.5 var(--course-font); }
.auditor-bar[hidden] { display:none; }
.auditor-heading { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px 20px; margin-bottom:8px; }
.auditor-heading strong { font-size:16px; font-weight:600; }
.auditor-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; }
.auditor-edit { font:inherit; min-height:40px; padding:8px 12px; border:1px solid #b58b35; border-radius:8px; background:#fff; color:#422006; cursor:pointer; }
.auditor-edit[aria-pressed="true"] { background:#422006; color:#fff; }
.auditor-bar label { display:flex; gap:10px; align-items:center; margin:0; }
.auditor-bar p { margin:4px 0 0; }
.auditor-bar .auditor-note { color:#71552c; font-size:12px; margin-top:8px; }
.auditor-bar select { font:inherit; min-height:40px; }
.auditor-bar select, #auditor-slide-select { max-width:100%; padding:8px; }
#auditor-timer { font-weight:600; font-variant-numeric:tabular-nums; }
#completion-notice { font-variant-numeric:tabular-nums; }
@media(max-width:640px) { .auditor-bar { padding:12px 14px; } .auditor-actions { width:100%; } .auditor-bar label { width:100%; justify-content:space-between; } #auditor-slide-select { width:100%; } }
