:root {
  --ink: #13254a;
  --muted: #51607b;
  --paper: #fffdf9;
  --white: #ffffff;
  --purple: #7428c7;
  --purple-dark: #521596;
  --teal: #0a9ba1;
  --coral: #ef4c66;
  --gold: #f5b51b;
  --green: #2da66f;
  --line: #dfe5ef;
  --shadow: 0 18px 45px rgba(19, 37, 74, .12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Atkinson Hyperlegible", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
}
body:has(dialog[open]) { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 4px solid var(--gold); outline-offset: 3px; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-150%);
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  border-radius: 8px;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 64px);
  background: rgba(255, 253, 249, .95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-family: Nunito, sans-serif;
  font-weight: 900;
  line-height: 1.05;
}
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: .72rem; font-weight: 700; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: white;
  background: linear-gradient(135deg, var(--coral), var(--purple));
  border-radius: 14px;
  font-family: Nunito, sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  transform: rotate(-4deg);
}
nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); }
nav a { text-decoration: none; font-weight: 700; }
nav a:hover { color: var(--purple); }

.hero {
  width: min(1480px, calc(100% - 32px));
  margin: 26px auto 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.banner-wrap { position: relative; }
.banner-wrap > img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}
.hero-summary { padding: clamp(24px, 4vw, 54px); text-align: center; }
.hero-summary h1 { max-width: 900px; margin: 6px auto 14px; font-size: clamp(2rem, 5vw, 4rem); }
.hero-summary > p:not(.eyebrow) { max-width: 850px; margin: 0 auto; color: var(--muted); font-size: 1.14rem; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

h1, h2, h3 { font-family: Nunito, sans-serif; line-height: 1.12; }
h2 { margin: 4px 0 10px; font-size: clamp(1.9rem, 4vw, 3.1rem); }
h3 { margin: 0 0 6px; }
.eyebrow { margin: 0; color: var(--purple); font-family: Nunito, sans-serif; font-size: .84rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 18px;
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  font-family: Nunito, sans-serif;
  font-weight: 900;
}
.button.primary { color: white; background: var(--purple); }
.button.primary:hover { background: var(--purple-dark); }
.button.secondary { color: var(--purple-dark); background: white; border-color: #cbb5e6; }
.button.secondary:hover { background: #f7f0ff; }
.button.full { width: 100%; }

.quick-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
}
.quick-facts article { padding: 18px; text-align: center; background: white; border: 1px solid var(--line); border-radius: 16px; }
.quick-facts strong { display: block; color: var(--purple); font-family: Nunito, sans-serif; font-size: 1.7rem; font-weight: 900; }
.quick-facts span { color: var(--muted); font-size: .94rem; }

.section { padding: 86px clamp(18px, 5vw, 76px); }
.section.soft { background: #f4effb; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 28px; max-width: 1400px; margin: 0 auto 30px; }
.section-heading.compact { max-width: 1040px; }
.section-heading p:not(.eyebrow) { max-width: 760px; margin: 0; color: var(--muted); }
.count-badge { flex: 0 0 auto; padding: 9px 14px; color: var(--purple-dark); background: #efe3ff; border-radius: 999px; font-weight: 700; }

.filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 14px;
  max-width: 1400px;
  margin: 0 auto 28px;
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.filters label { display: grid; gap: 6px; color: var(--muted); font-size: .86rem; font-weight: 700; }
.filters input, .filters select { width: 100%; min-height: 48px; padding: 9px 12px; color: var(--ink); background: white; border: 2px solid #cbd3e2; border-radius: 10px; }
.filters input:focus, .filters select:focus { border-color: var(--purple); outline: none; box-shadow: 0 0 0 3px rgba(116, 40, 199, .15); }

.lesson-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; max-width: 1400px; margin: 0 auto; }
.lesson-card { display: flex; flex-direction: column; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 8px 24px rgba(19, 37, 74, .08); transition: transform .18s ease, box-shadow .18s ease; }
.lesson-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.lesson-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #eef1f6; }
.lesson-card-body { display: flex; flex: 1; flex-direction: column; padding: 18px; }
.lesson-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.lesson-number { color: var(--purple); font-size: .84rem; font-weight: 700; }
.cost { color: #176941; font-size: .84rem; font-weight: 700; }
.lesson-card h3 { font-size: 1.24rem; }
.lesson-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 6px 0 14px; }
.topic-pill, .access-pill { padding: 5px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.topic-pill { color: #075e63; background: #dff7f5; }
.access-pill { color: #742317; background: #ffe2d8; }
.materials-preview { margin: 0 0 18px; color: var(--muted); font-size: .9rem; }
.lesson-card .button { margin-top: auto; }
.empty-state { max-width: 680px; margin: 40px auto; padding: 34px; text-align: center; background: white; border: 2px dashed #c7bdd4; border-radius: 20px; }

.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 1040px; margin: 0 auto; }
.support-card { display: flex; gap: 18px; padding: 26px; background: white; border-radius: 20px; box-shadow: 0 10px 26px rgba(19, 37, 74, .08); }
.support-card p { margin: 0; color: var(--muted); }
.support-number { display: grid; flex: 0 0 52px; place-items: center; width: 52px; height: 52px; color: white; border-radius: 16px; font-family: Nunito, sans-serif; font-size: 1.5rem; font-weight: 900; }
.support-card.high .support-number { background: var(--coral); }
.support-card.independent .support-number { background: var(--teal); }

.routine { max-width: 1040px; margin: 0 auto; padding: 0; list-style: none; }
.routine li { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 18px; padding: 21px 0; border-bottom: 1px solid var(--line); }
.routine li > span { display: grid; place-items: center; width: 40px; height: 40px; color: white; background: var(--purple); border-radius: 50%; font-family: Nunito, sans-serif; font-weight: 900; }
.routine strong { display: block; font-family: Nunito, sans-serif; font-size: 1.12rem; }
.routine p { margin: 3px 0 0; color: var(--muted); }
.routine small { padding: 5px 9px; color: var(--purple-dark); background: #f1e7fc; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.teacher-note { max-width: 1040px; margin: 24px auto 0; padding: 20px 24px; background: #fff4cb; border-left: 6px solid var(--gold); border-radius: 12px; }
.teacher-note strong { font-family: Nunito, sans-serif; }
.teacher-note p { margin: 3px 0 0; }

footer { padding: 42px 20px; color: white; text-align: center; background: var(--ink); }
footer p { margin: 3px 0; }

dialog { width: min(1040px, calc(100% - 24px)); max-height: calc(100vh - 24px); padding: 0; overflow: hidden; border: 0; border-radius: 24px; box-shadow: 0 30px 90px rgba(0,0,0,.28); }
dialog::backdrop { background: rgba(16, 24, 44, .68); backdrop-filter: blur(4px); }
.dialog-shell { position: relative; max-height: calc(100vh - 24px); overflow-y: auto; background: var(--paper); }
.dialog-close { position: sticky; top: 14px; z-index: 3; float: right; display: grid; place-items: center; width: 46px; height: 46px; margin: 14px 14px -60px 0; color: var(--ink); background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; font-size: 1.8rem; line-height: 1; box-shadow: 0 5px 16px rgba(0,0,0,.12); }
.lesson-detail { padding-bottom: 34px; }
.detail-hero { display: grid; grid-template-columns: 46% 54%; background: white; border-bottom: 1px solid var(--line); }
.detail-hero img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.detail-intro { align-self: center; padding: 42px; }
.detail-intro h2 { margin: 6px 0 12px; font-size: clamp(2rem, 4vw, 3.2rem); }
.detail-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.detail-chips span { padding: 7px 10px; color: var(--muted); background: #f1f4f9; border-radius: 999px; font-size: .84rem; font-weight: 700; }
.detail-chips .access-chip { color: #742317; background: #ffe2d8; }
.detail-body { display: grid; gap: 20px; padding: 30px clamp(18px, 4vw, 46px); }
.knowledge-card { padding: 22px 24px; color: white; background: linear-gradient(120deg, var(--purple), #9b3ed1); border-radius: 18px; }
.knowledge-card .label { color: #f1dcff; }
.knowledge-card h3 { margin: 4px 0 6px; font-size: 1.35rem; }
.knowledge-card p { margin: 0; }
.vision-card { padding: 22px 24px; color: white; background: #111827; border: 4px solid var(--gold); border-radius: 18px; }
.vision-card .label { color: #ffe48a; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.vision-card h3 { margin: 5px 0 8px; font-size: 1.35rem; }
.vision-card p { margin: 5px 0; }
.asd-card { padding: 22px 24px; color: #063d3d; background: #e7f8f6; border: 4px solid var(--teal); border-radius: 18px; }
.asd-card .label { color: #086866; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.asd-card h3 { margin: 5px 0 8px; font-size: 1.35rem; }
.asd-card p { margin: 5px 0; }
.lesson-panel { padding: 22px; background: white; border: 1px solid var(--line); border-radius: 18px; }
.lesson-panel h3 { margin-bottom: 12px; }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plain-list { margin: 0; padding-left: 22px; }
.plain-list li + li { margin-top: 8px; }
.visual-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.visual-step { min-height: 170px; padding: 18px; background: #f8f4fc; border: 2px solid #e1d0f3; border-radius: 16px; }
.visual-step:nth-child(2) { background: #eefafa; border-color: #bee5e3; }
.visual-step:nth-child(3) { background: #fff6d9; border-color: #f2da80; }
.step-number { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px; color: white; background: var(--purple); border-radius: 12px; font-family: Nunito, sans-serif; font-size: 1.2rem; font-weight: 900; }
.visual-step:nth-child(2) .step-number { background: var(--teal); }
.visual-step:nth-child(3) .step-number { background: #c38000; }
.visual-step strong { display: block; margin-bottom: 5px; font-family: Nunito, sans-serif; }
.visual-step p { margin: 0; }
.support-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.support-option { padding: 18px; border-radius: 14px; }
.support-option:first-child { background: #fff0f2; border: 2px solid #f4bdc6; }
.support-option:last-child { background: #eaf8f6; border: 2px solid #b2dfda; }
.support-option h4 { margin: 0 0 6px; font-family: Nunito, sans-serif; font-size: 1.08rem; }
.support-option p { margin: 0; }
.callout { padding: 18px; background: #fff8dc; border-left: 5px solid var(--gold); border-radius: 12px; }
.callout p { margin: 3px 0 0; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }

#printSheet { display: none; }

@media (max-width: 1080px) {
  .lesson-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  body { font-size: 17px; }
  .site-header { position: static; align-items: flex-start; flex-direction: column; }
  nav { width: 100%; overflow-x: auto; padding-bottom: 3px; }
  nav a { white-space: nowrap; }
  .hero { width: calc(100% - 20px); margin-top: 10px; border-radius: 18px; }
  .quick-facts { grid-template-columns: 1fr 1fr; }
  .section { padding: 58px 16px; }
  .section-heading { align-items: start; flex-direction: column; }
  .filters { grid-template-columns: 1fr; }
  .lesson-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .support-grid, .two-column { grid-template-columns: 1fr; }
  .detail-hero { grid-template-columns: 1fr; }
  .detail-hero img { min-height: 0; aspect-ratio: 1 / 1; }
  .detail-intro { padding: 26px 20px; }
  .visual-steps, .support-options { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .brand { font-size: .96rem; }
  .brand-mark { width: 42px; height: 42px; }
  .hero-summary { text-align: left; }
  .hero-actions { justify-content: stretch; }
  .hero-actions .button { width: 100%; }
  .lesson-grid { grid-template-columns: 1fr; }
  .routine li { grid-template-columns: auto 1fr; }
  .routine small { grid-column: 2; justify-self: start; }
  dialog { width: 100%; max-height: 100vh; border-radius: 0; }
  .dialog-shell { max-height: 100vh; }
}

@media print {
  @page { size: letter; margin: .38in; }
  body { color: #111; background: white; font-family: Arial, sans-serif; font-size: 9.4pt; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  body > *:not(#printSheet) { display: none !important; }
  #printSheet { display: block !important; }
  .print-page { box-sizing: border-box; width: 100%; }
  .print-guide-page { break-after: page; page-break-after: always; }
  .print-header { display: grid; grid-template-columns: 1fr 1.1in; gap: .18in; align-items: start; padding-bottom: .1in; border-bottom: 3px solid #7428c7; }
  .print-header h1 { margin: 0 0 3px; font-size: 19pt; }
  .print-header p { margin: 2px 0; }
  .print-header img { width: 1.1in; height: 1.1in; object-fit: cover; border-radius: 8px; }
  .print-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; font-weight: bold; }
  .print-section { break-inside: avoid; margin-top: .1in; padding: .085in .12in; border: 1px solid #bbb; border-radius: 7px; }
  .print-section h2 { margin: 0 0 3px; font-size: 11.5pt; color: #54218c; }
  .print-section h3 { margin: 4px 0 2px; font-size: 10pt; }
  .print-section p { margin: 2px 0; }
  .print-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: .08in; }
  .print-step { padding: .07in; border: 1px solid #999; border-radius: 5px; }
  .print-step strong { display: block; }
  .print-support { display: grid; grid-template-columns: 1fr 1fr; gap: .1in; }
  .print-footer { margin-top: .11in; padding-top: .06in; border-top: 1px solid #bbb; text-align: center; font-size: 8pt; }

  .rubric-page { break-inside: avoid; page-break-inside: avoid; }
  .rubric-header { padding-bottom: .1in; border-bottom: 3px solid #7428c7; }
  .rubric-header h1 { margin: 2px 0 4px; color: #54218c; font-size: 19pt; }
  .rubric-header p { margin: 2px 0; }
  .rubric-brand { color: #075e63; font-weight: bold; letter-spacing: .02em; }
  .rubric-info { display: grid; grid-template-columns: 1.35fr 1fr; gap: .08in .2in; margin: .12in 0; padding: .1in .12in; border: 1px solid #999; border-radius: 6px; font-weight: bold; }
  .rubric-scale { display: grid; grid-template-columns: 1fr 1fr; gap: .07in; margin-bottom: .08in; }
  .rubric-scale div { padding: .07in .09in; background: #f4effb; border: 1px solid #cbb5e6; border-radius: 5px; }
  .rubric-scale strong, .rubric-scale span { display: block; }
  .rubric-scale strong { color: #54218c; font-size: 9.2pt; }
  .rubric-scale span { margin-top: 1px; font-size: 8.2pt; line-height: 1.2; }
  .rubric-note { margin: .06in 0 .08in; padding: .06in .08in; background: #fff6d9; border-left: 4px solid #c38000; font-size: 8.4pt; }
  .rubric-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 8.6pt; }
  .rubric-table th, .rubric-table td { border: 1px solid #777; }
  .rubric-table thead th { padding: .055in .04in; color: white; background: #54218c; text-align: center; }
  .rubric-table thead th:first-child { width: 66%; text-align: left; }
  .rubric-table tbody th { padding: .055in .07in; background: #faf8fc; text-align: left; vertical-align: top; font-weight: normal; }
  .rubric-table tbody th strong, .rubric-table tbody th span { display: block; }
  .rubric-table tbody th strong { margin-bottom: 1px; color: #111; font-size: 9pt; }
  .rubric-table tbody th span { line-height: 1.18; }
  .rubric-table td { width: 6.8%; text-align: center; vertical-align: middle; }
  .rubric-box { display: inline-block; width: 13px; height: 13px; border: 1.5px solid #333; border-radius: 2px; }
  .rubric-summary { display: grid; grid-template-columns: 1fr 1fr; gap: .08in; margin-top: .1in; }
  .rubric-summary section { padding: .075in .1in; border: 1px solid #999; border-radius: 6px; break-inside: avoid; }
  .rubric-summary section:last-child { grid-column: 1 / -1; }
  .rubric-summary h2 { margin: 0 0 3px; color: #54218c; font-size: 10.5pt; }
  .writing-lines { margin: 2px 0; font-size: 9pt; line-height: 1.55; }
  .next-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px 8px; margin: 4px 0; font-size: 8.5pt; }
}

