:root { color-scheme: light; --ink: #243b32; --green: #163e35; --muted: #52665d; --paper: #fcfaf3; --line: #d8dfd5; --gold: #efb436; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.6 system-ui, sans-serif; }
a { color: #226653; text-underline-offset: 4px; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button, .button { min-height: 44px; }
a, button, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #b15c12; outline-offset: 4px; }
h1,h2,h3,h4 { line-height: 1.2; color: var(--green); text-wrap: balance; }
h1 { margin: 8px 0 14px; font-size: clamp(2.2rem, 4.4vw, 3.7rem); letter-spacing: -.045em; }
h2 { font-size: 1.7rem; margin: 0; letter-spacing: -.025em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 16px; }
.skip-link { position: fixed; top: -100px; left: 16px; padding: 12px 20px; background: white; z-index: 10; }
.skip-link:focus { top: 12px; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px max(24px, calc((100% - 1200px)/2)); background: var(--green); color: white; }
.wordmark { color: white; text-decoration: none; font-size: 1.65rem; font-weight: 850; white-space: nowrap; letter-spacing: -.06em; }
.wordmark b { color: var(--gold); }
.site-header nav { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.site-header nav a { color: white; font-size: .9rem; font-weight: 600; padding-block: 8px; }
.site-header nav [aria-current] { text-decoration-color: var(--gold); text-decoration-thickness: 3px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; padding: 11px 20px; border: 1px solid var(--green); border-radius: 7px; background: var(--green); color: white; font-weight: 700; text-decoration: none; line-height: 1.4; }
.button.secondary { color: var(--green); background: white; }
.site-header .button { color: var(--green); background: var(--gold); padding: 10px 16px; }
.library-main { max-width: 1248px; margin: auto; padding: 38px 24px 64px; }
.intro { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-bottom: 32px; }
.intro > div:first-child { max-width: 730px; }
.intro p:last-child { margin-bottom: 0; color: var(--muted); }
.eyebrow { margin: 0 0 9px; font-size: .8rem; text-transform: uppercase; letter-spacing: .13em; font-weight: 750; color: var(--muted); }
.lead { font-size: 1.3rem; margin-bottom: 8px; }
.library-total { padding: 6px 0 6px 30px; border-left: 2px solid var(--gold); min-width: 205px; }
.library-total strong { display: block; font-size: 3.5rem; line-height: 1; letter-spacing: -.06em; color: var(--green); }
.library-total span { display: block; font-size: .9rem; margin-top: 6px; color: var(--muted); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.section-heading a { font-size: .9rem; font-weight: 650; }
.set-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.set-card { display: block; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: white; text-decoration: none; color: var(--ink); transition: box-shadow .15s; }
.set-card:hover { box-shadow: 0 5px 18px #163e351a; }
.set-card[aria-current="true"] { outline: 3px solid var(--green); outline-offset: 2px; }
.set-card img { display: block; width: 100%; height: 115px; object-fit: cover; object-position: center 40%; }
.set-card-body { padding: 16px; }
.set-card h3 { margin: 0 0 8px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 1.17rem; }
.set-card p { font-size: .9rem; line-height: 1.45; color: var(--muted); min-height: 2.6em; margin-bottom: 12px; }
.set-meta { display: block; font-size: .85rem; }
.set-count { display: block; margin-top: 10px; font-size: .9rem; color: #226653; font-weight: 700; }
.badge { display: inline-block; font-size: .75rem; padding: 3px 8px; background: #f9e7bc; color: #735017; border-radius: 4px; line-height: 1.3; font-weight: 700; letter-spacing: 0; }
.catalog { margin-top: 42px; }
.filter-note { color: var(--muted); max-width: 90ch; font-size: .9rem; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; background: #eaf0e9; padding: 20px; border-radius: 9px; border: 1px solid var(--line); }
.filters label { display: grid; gap: 6px; flex: 1 1 130px; font-size: .875rem; font-weight: 650; }
.filters .search-label { flex: 2 1 210px; }
input, select { width: 100%; min-width: 0; height: 46px; border: 1px solid #99aca0; border-radius: 5px; background: white; padding: 9px 10px; color: var(--ink); font-size: 1rem; }
.reset { padding: 9px 6px; border: none; background: transparent; color: #226653; text-decoration: underline; text-underline-offset: 4px; font-size: .875rem; }
.results-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin: 20px 0; font-size: .875rem; color: var(--muted); }
.results-bar p { margin: 0; font-weight: 700; color: var(--ink); }
.unit { margin-bottom: 22px; border: 1px solid var(--line); background: white; border-radius: 9px; overflow: hidden; }
.unit-header { padding: 20px 24px; background: #f1f4ee; display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.unit-header h3 { margin: 4px 0 8px; }
.unit-header p { margin: 0; color: var(--muted); font-size: .875rem; }
.unit-header .eyebrow { font-size: .75rem; }
.unit-age { text-align: right; white-space: nowrap; font-size: .875rem; }
.unit-readiness { padding: 14px 24px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.unit-readiness p { margin: 0; }
.lesson-row { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; gap: 16px; padding: 16px 24px; border-bottom: 1px solid #e6eae3; }
.lesson-row:last-child { border-bottom: 0; }
.level-number { display: grid; place-items: center; min-height: 40px; background: #fbf0cc; color: #725017; border-radius: 6px; font-size: 1rem; font-weight: 750; }
.lesson-row h4 { margin: 0 0 4px; font-size: 1rem; }
.lesson-row h4 a { color: var(--ink); text-decoration: none; }
.lesson-row h4 a:hover { text-decoration: underline; }
.lesson-row p { margin: 0; color: var(--muted); font-size: .9rem; }
.plan-link { padding: 10px 0 10px 12px; font-size: .875rem; font-weight: 700; white-space: nowrap; }
.empty-state { padding: 40px; background: white; border: 1px solid var(--line); border-radius: 9px; }
.classroom-note { padding: 28px; border-left: 4px solid var(--gold); margin-top: 36px; background: #f5eedb; }
.classroom-note h2 { margin-bottom: 14px; font-size: 1.3rem; }
.classroom-note p:last-child { margin-bottom: 0; }
.site-footer { padding: 24px; display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.lesson-main { max-width: 1148px; margin: auto; padding: 32px 24px 64px; }
.breadcrumb { font-size: .9rem; margin-bottom: 28px; }
.lesson-header { padding-bottom: 28px; border-bottom: 2px solid var(--green); margin-bottom: 28px; }
.lesson-header h1 { font-size: clamp(2rem,4vw,3.1rem); max-width: 850px; }
.lesson-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .95rem; color: var(--muted); margin: 18px 0; }
.lesson-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.lesson-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 32px; }
.lesson-body section { margin-bottom: 32px; }
.lesson-body h2, .lesson-aside h2 { font-size: 1.3rem; margin-bottom: 14px; }
.lesson-body h3 { font-size: 1rem; margin: 16px 0 8px; }
.lesson-body ul { padding-left: 24px; }
.lesson-body li { margin: 8px 0; }
.objective { border-left: 4px solid var(--gold); padding: 20px 24px; background: #f9f0d9; }
.objective p:last-child { margin-bottom: 0; }
.lesson-aside > section { padding: 22px; margin-bottom: 20px; background: #edf2eb; border-radius: 8px; }
.lesson-aside p, .lesson-aside li { font-size: .9rem; }
.lesson-aside ul { padding-left: 20px; }
.lesson-aside h3 { font-size: .95rem; }
.lesson-aside a { display: inline-block; padding-block: 4px; }
.timeline { list-style: none; padding: 0 !important; counter-reset: stage; }
.timeline > li { margin: 0; padding: 0 0 22px 30px; border-left: 2px solid #d9dfd4; position: relative; }
.timeline > li:before { content: ''; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--green); left: -6px; top: 8px; }
.timeline h3 { margin: 0 0 8px; }
.timeline .time { color: var(--muted); font-size: .875rem; font-weight: 500; margin-left: 8px; }
.timeline p { margin: 0; }
.exit-ticket { padding: 24px; background: #edf2eb; border: 1px solid var(--line); border-radius: 8px; }
.exit-ticket p { font-size: 1.1rem; }
.response-lines { display: none; }
.plan-pagination { display: flex; justify-content: space-between; gap: 20px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.plan-pagination a { max-width: 48%; font-size: .9rem; }
.plan-pagination a:last-child { margin-left: auto; text-align: right; }
.print-url { display: none; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (max-width: 900px) {
  .set-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .lesson-grid { grid-template-columns: minmax(0,1fr); }
  .lesson-aside { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
  .lesson-aside > section { margin-bottom: 0; }
}
@media (max-width: 600px) {
  .site-header { padding: 16px 20px; align-items: start; flex-direction: column; gap: 12px; }
  .site-header nav { gap: 16px; }
  .site-header nav a { font-size: .875rem; }
  .library-main, .lesson-main { padding: 26px 18px 40px; }
  .intro { align-items: start; gap: 16px; }
  .library-total { display: none; }
  .set-grid { gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); }
  .set-card-body { padding: 12px; }
  .set-card img { height: 95px; }
  .set-card h3 { font-size: 1.05rem; }
  .set-card p { min-height: 0; }
  .filters { padding: 14px; }
  .filters .search-label { flex-basis: 100%; }
  .unit-header { padding: 16px; flex-direction: column; gap: 10px; }
  .unit-age { text-align: left; }
  .unit-readiness { padding: 12px 16px; }
  .lesson-row { padding: 16px; grid-template-columns: 32px minmax(0,1fr); gap: 12px; }
  .plan-link { grid-column: 2; padding: 0; }
  .lesson-aside { display: block; }
  .lesson-aside > section { margin-bottom: 20px; }
  .classroom-note { padding: 22px; }
  .site-footer { justify-content: start; gap: 8px; }
}
@media (max-width: 350px) { .set-grid { grid-template-columns: 1fr; } }
@media print {
  @page { margin: 15mm; }
  body { font-size: 11pt; line-height: 1.45; background: white; color: black; }
  .site-header,.site-footer,.skip-link,.lesson-actions,.breadcrumb,.plan-pagination { display: none !important; }
  .lesson-main { padding: 0; max-width: none; }
  h1 { font-size: 25pt !important; } h2 { font-size: 15pt !important; }
  h1,h2,h3,h4 { color: black; break-after: avoid; }
  .lesson-grid { display: block; }
  .lesson-header { margin-bottom: 18px; padding-bottom: 12px; }
  .lesson-body section { margin-bottom: 20px; }
  .objective,.exit-ticket,.lesson-aside > section { background: white; border: 1px solid #bbb; padding: 15px; }
  .timeline > li,.exit-ticket,.lesson-aside > section { break-inside: avoid; }
  .lesson-aside { display: block; }
  .lesson-aside > section { margin-top: 18px; }
  .lesson-aside .related { display: none; }
  a { color: black; text-decoration: none; }
  .response-lines { display: block; height: 70px; background: repeating-linear-gradient(white,white 22px,#bbb 23px,white 24px); }
  .print-url { display: block; overflow-wrap: anywhere; font-size: 9pt; }
}

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
