:root { font-size: 20px; --paper: #f7f4ea; --card: #fffdf7; --ink: #202d2b; --muted: #52615b; --green: #173d35; --line: #a9b4a5; --focus: #005c7a; --error: #762b25; }
:root.larger-text { font-size: 24px; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
button, select, summary, label { touch-action: manipulation; }
button { cursor: pointer; min-height: 48px; border: 2px solid var(--green); border-radius: 8px; background: transparent; color: var(--green); padding: .55rem .8rem; font-weight: 650; }
button:hover { background: #e4eadc; }
button.primary { background: var(--green); color: #fff; padding-inline: 1.2rem; }
button.primary:hover { background: #244e43; }
button:disabled { opacity: .65; cursor: default; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
a { color: var(--green); text-underline-offset: .2em; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: 1.85rem; margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .8rem; }
h3 { font-size: 1.05rem; line-height: 1.4; }
p { margin-bottom: 1rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .13em; color: var(--muted); font-weight: 650; font-size: .75rem; margin-bottom: .65rem; }
.site-header { max-width: 1280px; padding: 1rem 1.5rem; margin: auto; display: flex; justify-content: space-between; gap: 1rem; align-items: center; border-bottom: 1px solid var(--line); }
.brand { display: block; color: var(--green); font-family: Georgia, serif; font-size: 1.4rem; }
.edition { font-size: .8rem; color: var(--muted); }
.comfort-controls { display: flex; gap: .5rem; flex-wrap: wrap; }
.comfort-controls button { font-size: .8rem; }
.comfort-controls button[aria-pressed="true"] { background: var(--green); color: white; }
.lesson-layout { max-width: 1280px; padding: 1.8rem 1.5rem 2.5rem; margin: auto; display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 2.1rem; align-items: start; }
.lesson-sidebar { padding-top: .2rem; }
.sidebar-intro, .session-note { color: var(--muted); font-size: .85rem; }
.progress-copy { margin-top: 1.5rem; margin-bottom: .4rem; font-size: .8rem; font-weight: 650; }
progress { width: 100%; height: 8px; accent-color: var(--green); }
.lesson-map { list-style: none; padding: 0; margin: 1.2rem 0 1.5rem; counter-reset: section; }
.lesson-map li { counter-increment: section; display: flex; gap: .7rem; align-items: baseline; color: var(--muted); font-size: .8rem; padding: .5rem 0; }
.lesson-map li::before { content: counter(section); width: 1.2rem; flex: 0 0 1.2rem; font-variant-numeric: tabular-nums; }
.lesson-map li[aria-current="step"] { color: var(--green); font-weight: 750; }
.lesson-map .visited { color: var(--green); }
main { min-width: 0; }
.stage-heading { max-width: 26ch; }
.lead { max-width: 62ch; }
.notice { background: #e8eddf; color: var(--green); border-left: 4px solid var(--green); padding: .65rem .8rem; font-size: .85rem; margin-bottom: 1.2rem; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.card { border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 1rem; min-width: 0; }
.card fieldset { padding: 0; border: 0; margin: 0; min-width: 0; }
.card legend { font-weight: 700; line-height: 1.4; padding: 0; margin-bottom: .45rem; }
.example { font-size: .9rem; overflow-wrap: anywhere; }
.choice-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.choice { display: flex; gap: .55rem; align-items: center; min-height: 48px; padding: .5rem .65rem; border: 1px solid var(--line); border-radius: 6px; background: white; font-size: .85rem; cursor: pointer; }
.choice:has(input:checked) { border: 2px solid var(--green); padding: calc(.5rem - 1px) calc(.65rem - 1px); background: #e8eddf; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--green); width: 1.1rem; height: 1.1rem; flex: 0 0 1.1rem; margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: block; min-width: 0; }
.field span { display: block; font-weight: 650; margin-bottom: .35rem; }
select { width: 100%; min-height: 52px; background: white; color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: .6rem .55rem; }
.hint { display: block; color: var(--muted); font-size: .85rem; font-weight: 400; margin-top: .4rem; }
.full { grid-column: 1 / -1; }
.question { margin-top: 1.2rem; padding: 0; border: 0; }
.question legend { font-weight: 650; margin-bottom: .65rem; }
.preview { background: #e8eddf; border-radius: 8px; padding: 1rem; margin: 1.3rem 0; }
.preview h3 { margin-bottom: .5rem; }
.preview p { font-size: .9rem; margin-bottom: 0; }
details { margin: 1rem 0; font-size: .9rem; }
summary { color: var(--green); font-weight: 650; cursor: pointer; padding-block: .35rem; }
details p { margin-top: .5rem; }
.extra { display: none; }
body.detailed .extra { display: block; }
.reference-layout { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; margin-bottom: 1.2rem; }
.source-card { background: #edf0e4; }
.source-card dl, .plan-facts { margin: 0; }
dt { font-size: .85rem; color: var(--muted); font-weight: 650; margin-top: .6rem; }
dd { margin: .1rem 0 .6rem; }
.source-id { display: block; font-size: .8rem; color: var(--muted); margin-top: .6rem; }
.simulation-label { display: inline-block; font-size: .7rem; font-weight: 750; letter-spacing: .1em; background: #eadfc8; color: #473817; padding: .25rem .5rem; margin-bottom: .7rem; }
.simulated p { font-size: .9rem; }
.simulated ul { margin: .5rem 0 0; padding-left: 1.05rem; font-size: .9rem; }
.assessment-card { margin-bottom: .85rem; }
.assessment-card h3 { margin-bottom: .5rem; }
.claim { font-style: italic; }
.assessment-card .field { margin-top: .8rem; }
.repair-fields { margin-top: 1rem; }
.feedback { margin: 1.2rem 0; padding: 1rem; background: #fff1e9; border-left: 4px solid var(--error); color: var(--error); }
.feedback h3 { margin-bottom: .5rem; }
.feedback ul { padding-left: 1.2rem; margin: 0; }
.feedback li + li { margin-top: .35rem; }
.actions { display: flex; gap: .7rem; justify-content: space-between; align-items: center; margin-top: 1.5rem; flex-wrap: wrap; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.actions .primary { margin-left: auto; }
.section-divider { margin: 1.5rem 0 1rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.plan-card { background: var(--card); border: 2px solid var(--green); border-radius: 10px; padding: 1.25rem; }
.plan-card h3 { font-family: Georgia, serif; font-size: 1.4rem; font-weight: 400; }
.plan-lines { padding-left: 1.2rem; }
.plan-lines li { margin-bottom: .5rem; }
.checklist { padding-left: 1.2rem; }
.checklist li { margin-bottom: .4rem; }
.page-footer { max-width: 1280px; padding: 1rem 1.5rem; margin: auto; font-size: .75rem; color: var(--muted); border-top: 1px solid var(--line); }
.skip-link { position: absolute; z-index: 2; top: 8px; left: 12px; padding: .5rem .8rem; background: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.print-only { display: none; }
@media (max-width: 950px) {
  .lesson-layout { grid-template-columns: 1fr; gap: 1.25rem; }
  .lesson-sidebar h1 { font-size: 1.5rem; margin-bottom: .5rem; }
  .sidebar-intro, .session-note, .lesson-map { display: none; }
  .progress-copy { margin-top: .8rem; }
}
@media (max-width: 650px) {
  .site-header { align-items: start; flex-direction: column; padding: .85rem 1rem; }
  .lesson-layout { padding: 1.2rem 1rem 2rem; }
  .cards, .form-grid, .reference-layout { grid-template-columns: 1fr; }
  .choice-row { flex-direction: column; }
  .comfort-controls { width: 100%; }
  .comfort-controls button { flex: 1; }
  .actions button { width: 100%; }
  .actions .primary { margin-left: 0; }
}
@media print {
  :root { font-size: 12pt; }
  body { background: white; color: black; }
  .screen-only { display: none !important; }
  .print-only:not([hidden]) { display: block; }
  #printout { padding: 0; }
  #printout h1 { font-size: 22pt; }
  #printout h2 { font-size: 16pt; margin-top: 1.3rem; }
  #printout p, #printout li { orphans: 3; widows: 3; }
  #printout ul { padding-left: 1.2rem; }
  #printout .print-label { font-weight: 700; }
}
