:root {
  --ink: #2d2f7f;
  --teal: #402fa3;
  --teal-deep: #2d2f7f;
  --leaf: #9977fc;
  --oat: #f7f7f9;
  --paper: #ffffff;
  --apricot: #ffeb95;
  --sun: #ffeb95;
  --lavender: #c9b1ff;
  --mist: #e7e6fb;
  --slate: #5e5f88;
  --line: #d6d5f6;
  --white: #ffffff;
  --shadow-sm: 0 7px 18px rgba(45, 47, 127, 0.08);
  --shadow-md: 0 18px 45px rgba(45, 47, 127, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font-heading: "Fredoka", "Nunito", "Arial Rounded MT Bold", sans-serif;
  --font-body: "Atkinson Hyperlegible", "Lexend", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-early-reader: "Andika", "Atkinson Hyperlegible", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--oat);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--oat); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--oat); line-height: 1.5; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid rgba(245, 180, 148, 0.8); outline-offset: 3px; }
button:disabled { cursor: not-allowed; opacity: 0.55; }

.ambient-shape { position: fixed; pointer-events: none; z-index: -1; border-radius: 999px; filter: blur(5px); opacity: .6; }
.ambient-one { width: 290px; height: 290px; background: rgba(153, 119, 252, .18); top: -128px; right: 4%; }
.ambient-two { width: 240px; height: 240px; background: rgba(255, 235, 149, .34); bottom: -100px; left: 17%; }

.shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { background: var(--ink); color: #f8fbf9; display: flex; flex-direction: column; padding: 22px 15px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; padding: 4px 7px 25px; text-decoration: none; color: var(--white); }
.brand img { width: 166px; height: auto; display: block; }
.brand-name { font-weight: 800; letter-spacing: -.045em; font-size: 20px; line-height: 1; }
.brand-name small { display: block; margin-top: 5px; color: #a7c5ba; font-size: 10px; letter-spacing: .15em; text-transform: uppercase; font-weight: 700; }
.school-pill { display: flex; gap: 9px; align-items: center; margin: 0 4px 22px; padding: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-md); color: #dbe9e2; font-size: 12px; line-height: 1.2; }
.school-pill .avatar { flex: 0 0 29px; height: 29px; border-radius: 9px; display: grid; place-items: center; color: var(--ink); background: var(--sun); font-weight: 900; font-size: 11px; }
.school-pill strong { display: block; color: var(--white); font-size: 12px; }
.nav-group { display: grid; gap: 4px; }
.nav-label { color: #86a99d; font-size: 10px; padding: 0 12px 8px; letter-spacing: .13em; text-transform: uppercase; font-weight: 800; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 11px; padding: 11px 12px; border: 0; border-radius: 11px; color: #d1e0d9; background: transparent; text-align: left; font-size: 13px; font-weight: 700; transition: background .18s ease, color .18s ease, transform .18s ease; }
.nav-item:hover { background: rgba(255,255,255,.08); color: var(--white); transform: translateX(2px); }
.nav-item.active { color: var(--ink); background: var(--paper); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.nav-icon { width: 19px; height: 19px; flex: 0 0 19px; opacity: .95; }
.sidebar-bottom { margin-top: auto; padding-top: 28px; }
.help-card { padding: 15px; border-radius: var(--radius-lg); background: rgba(119,169,141,.18); border: 1px solid rgba(119,169,141,.2); }
.help-card span { display: inline-grid; place-items: center; height: 26px; width: 26px; margin-bottom: 8px; border-radius: 9px; background: var(--leaf); color: var(--ink); font-weight: 900; }
.help-card strong { display: block; font-size: 13px; }
.help-card p { color: #d1e0d9; font-size: 11px; line-height: 1.45; margin: 5px 0 12px; }
.help-card button { color: var(--white); padding: 0; border: 0; background: transparent; font-weight: 800; font-size: 11px; }

.main { padding: 20px clamp(20px, 3vw, 44px) 44px; overflow: hidden; }
.topbar { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.crumb { display: flex; gap: 11px; align-items: center; color: var(--slate); font-size: 13px; }
.crumb strong { color: var(--ink); font-weight: 800; }
.crumb-dot { display: inline-block; height: 4px; width: 4px; background: var(--leaf); border-radius: 999px; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.icon-button { width: 38px; height: 38px; border: 1px solid var(--line); color: var(--ink); border-radius: 12px; background: var(--paper); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.icon-button:hover { background: var(--mist); }
.top-avatar { display: flex; align-items: center; gap: 9px; margin-left: 5px; color: var(--slate); font-size: 12px; font-weight: 700; }
.top-avatar .avatar { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--lavender); color: var(--ink); font-size: 12px; font-weight: 900; }

.view { animation: reveal .26s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.eyebrow:before { content: ""; width: 21px; height: 3px; border-radius: 99px; background: var(--apricot); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; }
h1 { margin-bottom: 8px; font-size: clamp(28px, 3vw, 42px); line-height: 1.04; letter-spacing: -.055em; }
h2 { font-size: 21px; letter-spacing: -.035em; margin-bottom: 5px; }
h3 { font-size: 15px; letter-spacing: -.02em; margin-bottom: 4px; }
.early-reader, .early-reader h1, .early-reader h2, .early-reader h3, .early-reader button, .early-reader input, .early-reader select, .early-reader textarea { font-family: var(--font-early-reader); letter-spacing: normal; }
.subcopy { color: var(--slate); font-size: 14px; line-height: 1.55; max-width: 680px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 30px 0 13px; }
.section-head p { color: var(--slate); font-size: 12px; margin: 0; }

.btn { min-height: 40px; padding: 0 15px; border-radius: 11px; border: 1px solid transparent; display: inline-flex; align-items: center; gap: 8px; justify-content: center; font-size: 12px; font-weight: 850; transition: transform .17s ease, box-shadow .17s ease, background .17s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--teal-deep); }
.btn-soft { color: var(--teal-deep); background: #dfeee6; }
.btn-quiet { background: var(--paper); border-color: var(--line); color: var(--ink); }
.btn-tiny { min-height: 30px; padding: 0 10px; font-size: 10px; border-radius: 9px; }
.arrow { font-size: 17px; line-height: .5; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .68fr); gap: 18px; }
.welcome-card { min-height: 238px; padding: clamp(23px, 3vw, 34px); position: relative; overflow: hidden; border-radius: var(--radius-xl); color: var(--white); background: var(--ink); box-shadow: var(--shadow-md); }
.welcome-content { position: relative; z-index: 1; max-width: 60%; }
.welcome-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; pointer-events: none; }
.welcome-card h1 { max-width: 530px; margin-bottom: 11px; }
.welcome-card .subcopy { color: #d5e2dc; max-width: 550px; }
.welcome-card .btn { margin-top: 11px; background: var(--sun); color: var(--ink); }

.progress-card { border-radius: var(--radius-xl); padding: 24px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.progress-card .progress-top { display: flex; justify-content: space-between; align-items: flex-start; }
.progress-card .progress-number { color: var(--teal); font-size: 28px; font-weight: 900; letter-spacing: -.06em; }
.progress-card p { color: var(--slate); font-size: 12px; line-height: 1.45; }
.ring { width: 79px; height: 79px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--leaf) 0 72%, var(--mist) 72% 100%); }
.ring-inner { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); font-size: 14px; font-weight: 900; }
.micro-row { display: flex; justify-content: space-between; padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--line); }
.micro-row strong { display: block; font-size: 13px; }
.micro-row span { color: var(--slate); font-size: 10px; }

.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.lesson-card { padding: 18px; position: relative; overflow: hidden; }
.lesson-card .lesson-colour { position: absolute; top: 0; left: 0; width: 7px; height: 100%; background: var(--leaf); }
.lesson-card.apricot .lesson-colour { background: var(--apricot); }
.lesson-card.lavender .lesson-colour { background: var(--lavender); }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; background: var(--mist); border-radius: 99px; color: var(--teal-deep); font-size: 10px; line-height: 1; font-weight: 850; }
.tag .mini-dot { height: 5px; width: 5px; background: var(--leaf); border-radius: 50%; }
.lesson-card h3 { margin: 12px 0 5px; font-size: 16px; }
.lesson-card p { color: var(--slate); font-size: 12px; line-height: 1.48; margin-bottom: 15px; }
.card-footer { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.meta { display: flex; gap: 8px; align-items: center; color: var(--slate); font-size: 10px; font-weight: 700; }

.checklist-card { padding: 20px; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.list-head small { color: var(--slate); font-weight: 700; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.checklist li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #edf1ee; color: var(--slate); font-size: 12px; }
.checklist li:last-child { border-bottom: 0; }
.check { height: 20px; width: 20px; flex: 0 0 20px; display: grid; place-items: center; border: 1px solid #c8d9ce; background: var(--paper); border-radius: 7px; color: transparent; font-size: 12px; font-weight: 900; }
.check.done { border-color: var(--leaf); background: var(--leaf); color: var(--ink); }
.checklist .incomplete { color: var(--ink); font-weight: 800; }

.prompt-card { min-height: 100%; padding: 20px; background: #f9edd2; border-color: #edddb5; position: relative; overflow: hidden; }
.prompt-card:after { content: ""; position: absolute; right: -21px; bottom: -22px; width: 95px; height: 95px; border: 19px solid rgba(245, 180, 148, .57); border-radius: 50%; }
.prompt-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--apricot); color: var(--ink); font-weight: 900; }
.prompt-card h3 { margin: 13px 0 7px; }
.prompt-card p { max-width: 260px; position: relative; z-index: 1; color: #6a604c; font-size: 12px; line-height: 1.5; }
.quote { color: var(--ink); font-weight: 850; }

.impact-bar { height: 7px; overflow: hidden; border-radius: 999px; background: var(--mist); }
.impact-bar span { display: block; height: 100%; border-radius: inherit; background: var(--leaf); }
.impact-row { display: grid; grid-template-columns: 1.1fr 2fr auto; gap: 11px; align-items: center; margin: 10px 0; font-size: 11px; }
.impact-row strong { font-size: 11px; }
.impact-row em { color: var(--teal); font-size: 11px; font-style: normal; font-weight: 900; }

.page-hero { display: flex; justify-content: space-between; gap: 25px; align-items: flex-end; margin: 7px 0 23px; }
.page-hero .subcopy { max-width: 640px; }
.filter-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-chip { border: 1px solid var(--line); color: var(--slate); background: var(--paper); border-radius: 999px; padding: 8px 11px; font-size: 11px; font-weight: 800; }
.filter-chip:hover { border-color: var(--leaf); }
.filter-chip.active { color: var(--ink); border-color: var(--leaf); background: #e1f0e7; }
.year-tabs { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.year-tab { flex: 0 0 auto; min-height: 40px; padding: 0 13px; border: 1px solid var(--line); background: var(--paper); border-radius: 11px; color: var(--slate); font-size: 12px; font-weight: 850; }
.year-tab.active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.curriculum-card { padding: 21px; }
.curriculum-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 17px; margin-bottom: 18px; }
.curriculum-top p { margin: 0; color: var(--slate); font-size: 12px; line-height: 1.45; }
.curriculum-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.theme-tile { padding: 15px; min-height: 139px; border-radius: 15px; background: var(--oat); border: 1px solid transparent; transition: transform .18s ease, border .18s ease; }
.theme-tile:hover { transform: translateY(-2px); border-color: var(--leaf); }
.theme-tile .theme-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--paper); font-size: 13px; }
.theme-tile h3 { margin: 13px 0 4px; font-size: 13px; }
.theme-tile p { color: var(--slate); font-size: 11px; line-height: 1.45; margin-bottom: 0; }
.theme-tile[data-theme="regulation"] { background: #e6f1e9; }
.theme-tile[data-theme="relationships"] { background: #f9e5da; }
.theme-tile[data-theme="identity"] { background: #e9e6f5; }
.theme-tile[data-theme="habits"] { background: #faefd2; }
.theme-tile[data-theme="neurodiversity"] { background: #e5eef3; }
.lesson-strip { display: grid; gap: 9px; }
.lesson-line { display: grid; grid-template-columns: 35px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lesson-line:last-child { border-bottom: 0; }
.lesson-index { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: var(--mist); color: var(--teal-deep); font-size: 10px; font-weight: 900; }
.lesson-line strong { display: block; font-size: 12px; }
.lesson-line span { color: var(--slate); font-size: 10px; }

.training-feature { padding: 24px; min-height: 238px; background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.training-copy { position: relative; z-index: 1; max-width: 56%; }
.training-media { position: absolute; top: 50%; right: 18px; z-index: 1; width: 39%; max-height: calc(100% - 36px); padding: 6px; object-fit: contain; transform: translateY(-50%); border: 1px solid rgba(255,255,255,.28); border-radius: 18px; background: rgba(255,255,255,.92); box-shadow: 0 12px 25px rgba(10, 11, 55, .26); }
.training-feature p { max-width: 420px; color: #d5e2dc; font-size: 13px; line-height: 1.55; }
.training-feature h2 { font-size: 25px; max-width: 440px; }
.training-feature .tag { background: rgba(255,255,255,.12); color: var(--white); }
.training-feature .btn { position: relative; z-index: 1; background: var(--sun); color: var(--ink); margin-top: 5px; }
.module-card { padding: 17px; }
.module-card .module-top { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.module-card p { color: var(--slate); font-size: 11px; line-height: 1.45; min-height: 31px; }
.module-progress { margin: 13px 0 8px; }
.module-card .small-meta { display: flex; justify-content: space-between; color: var(--slate); font-size: 10px; font-weight: 800; }
.playbox { display: flex; align-items: center; gap: 13px; padding: 13px; margin-top: 16px; border-radius: var(--radius-md); background: var(--oat); }
.playbox button { width: 33px; height: 33px; flex: 0 0 33px; border: 0; color: var(--white); background: var(--teal); border-radius: 50%; }
.playbox strong { display: block; font-size: 12px; }
.playbox span { display: block; margin-top: 2px; color: var(--slate); font-size: 10px; }

.lesson-layout { display: grid; grid-template-columns: 244px minmax(0, 1fr); gap: 18px; }
.lesson-steps { padding: 15px; align-self: start; }
.lesson-steps h3 { padding: 5px 7px 12px; font-size: 13px; }
.step-button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 8px; border: 0; border-radius: 11px; background: transparent; color: var(--slate); text-align: left; font-size: 11px; font-weight: 800; }
.step-button:hover { background: var(--oat); }
.step-button.active { color: var(--ink); background: #e1f0e7; }
.step-button.done .step-no { background: var(--leaf); border-color: var(--leaf); color: var(--ink); }
.step-no { width: 24px; height: 24px; display: grid; place-items: center; flex: 0 0 24px; border: 1px solid var(--line); border-radius: 8px; color: var(--teal-deep); background: var(--paper); font-size: 10px; }
.lesson-stage { min-height: 430px; padding: clamp(20px, 3vw, 34px); }
.stage-top { display: flex; justify-content: space-between; gap: 15px; align-items: flex-start; }
.stage-top .tag { background: #f9edd2; color: #725b22; }
.stage-body { margin-top: 26px; }
.stage-body h2 { font-size: clamp(22px, 2.6vw, 30px); }
.stage-body > p { max-width: 650px; color: var(--slate); font-size: 13px; line-height: 1.58; }
.stage-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.info-panel { padding: 17px; margin-top: 20px; border-left: 4px solid var(--apricot); background: #fff4ee; border-radius: 0 13px 13px 0; }
.info-panel strong { font-size: 12px; }
.info-panel p { color: #725c55; font-size: 12px; line-height: 1.48; margin: 5px 0 0; }
.prepare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: 19px; }
.resource-chip { min-height: 83px; padding: 13px; text-align: left; border: 1px solid var(--line); background: var(--oat); border-radius: 13px; }
.resource-chip:hover { border-color: var(--leaf); background: #eef6f0; }
.resource-chip span { display: block; margin-bottom: 7px; color: var(--teal); font-size: 15px; }
.resource-chip strong { display: block; font-size: 11px; }
.resource-chip small { color: var(--slate); font-size: 10px; }
.classroom-frame { position: relative; min-height: 225px; padding: 23px; overflow: hidden; border-radius: 19px; background: #e6f1e9; }
.classroom-frame:before { content: ""; position: absolute; width: 245px; height: 245px; border-radius: 50%; right: -92px; bottom: -100px; border: 27px solid #c3dccb; }
.classroom-frame .slide-label { position: relative; z-index: 1; display: inline-flex; padding: 5px 9px; border-radius: 99px; background: var(--paper); color: var(--teal); font-size: 10px; font-weight: 900; }
.classroom-frame h3 { position: relative; z-index: 1; max-width: 420px; margin: 35px 0 8px; font-size: 24px; letter-spacing: -.045em; }
.classroom-frame p { position: relative; z-index: 1; max-width: 380px; color: var(--teal-deep); font-size: 12px; line-height: 1.5; }
.slide-controls { display: flex; gap: 7px; position: absolute; right: 17px; top: 16px; z-index: 2; }
.slide-controls button { width: 30px; height: 30px; border: 0; border-radius: 9px; background: var(--paper); color: var(--ink); font-weight: 900; }
.reflection-box { padding: 19px; background: #f9edd2; border-radius: 17px; }
.reflection-box textarea { width: 100%; min-height: 90px; margin-top: 11px; padding: 11px; resize: vertical; border: 1px solid #e3d6b4; background: rgba(255,255,255,.65); color: var(--ink); border-radius: 11px; font: inherit; font-size: 12px; }

.lead-hero { padding: 26px; color: var(--white); background: var(--ink); border-radius: var(--radius-xl); position: relative; overflow: hidden; }
.lead-hero:after { content: ""; position: absolute; width: 350px; height: 140px; right: -70px; bottom: -98px; border: 24px solid var(--lavender); border-radius: 50%; opacity: .55; }
.lead-hero h1 { max-width: 655px; }
.lead-hero .subcopy { color: #d6e4de; max-width: 660px; }
.lead-hero .badge-row { position: relative; z-index: 1; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.badge { display: inline-flex; gap: 6px; align-items: center; padding: 7px 10px; border-radius: 99px; color: var(--ink); background: var(--white); font-size: 10px; font-weight: 900; }
.badge i { height: 7px; width: 7px; display: inline-block; border-radius: 50%; background: var(--leaf); }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.metric-card { padding: 18px; }
.metric-card span { display: block; color: var(--slate); font-size: 10px; font-weight: 800; }
.metric-card strong { display: block; margin-top: 9px; font-size: 28px; letter-spacing: -.06em; }
.metric-card small { display: block; color: var(--teal); margin-top: 4px; font-size: 10px; font-weight: 850; }
.rollout-card { padding: 20px; }
.rollout-row { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rollout-row:last-child { border-bottom: 0; }
.rollout-row .term { font-size: 10px; font-weight: 900; color: var(--teal); text-transform: uppercase; letter-spacing: .08em; }
.rollout-row strong { display: block; font-size: 12px; }
.rollout-row span { color: var(--slate); font-size: 10px; }
.status { padding: 5px 7px; border-radius: 99px; font-size: 9px; font-weight: 900; }
.status.complete { background: #daf0e1; color: #296648; }
.status.ready { background: #f9edd2; color: #77632a; }
.status.next { background: #ece9f6; color: #5e5790; }
.evidence-quote { padding: 21px; color: var(--ink); background: #ece9f6; border-color: #d9d4ee; }
.evidence-quote .quote-mark { color: var(--teal); font-family: Georgia, serif; font-size: 48px; line-height: .65; }
.evidence-quote p { font-size: 14px; line-height: 1.55; font-weight: 800; }
.evidence-quote small { color: var(--slate); font-size: 10px; }

.parent-shell { max-width: 1040px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(22px, 4vw, 60px); align-items: center; margin: 13px auto 0; }
.parent-content h1 { max-width: 600px; }
.parent-content .subcopy { max-width: 560px; }
.parent-points { display: grid; gap: 12px; margin: 23px 0; }
.parent-point { display: flex; align-items: flex-start; gap: 12px; }
.parent-point span { flex: 0 0 31px; height: 31px; display: grid; place-items: center; background: #e1f0e7; border-radius: 10px; color: var(--teal-deep); font-size: 14px; }
.parent-point strong { display: block; font-size: 12px; }
.parent-point p { color: var(--slate); margin: 3px 0 0; font-size: 11px; line-height: 1.45; }
.phone { width: min(100%, 295px); margin: 0 auto; padding: 9px; border-radius: 36px; background: var(--ink); box-shadow: 0 25px 50px rgba(23,58,56,.22); }
.phone-screen { min-height: 516px; overflow: hidden; border-radius: 28px; background: var(--paper); }
.phone-notch { width: 86px; height: 22px; margin: 0 auto; border-radius: 0 0 14px 14px; background: var(--ink); }
.phone-top { padding: 17px 18px 13px; display: flex; align-items: center; justify-content: space-between; font-size: 10px; font-weight: 900; }
.phone-hero { margin: 0 12px; padding: 18px; border-radius: 18px; color: var(--white); background: var(--teal); }
.phone-hero .tiny-label { color: #d5eadd; font-size: 9px; letter-spacing: .09em; text-transform: uppercase; font-weight: 900; }
.phone-hero h3 { margin: 8px 0; font-size: 18px; }
.phone-hero p { margin: 0; color: #e6f2eb; font-size: 10px; line-height: 1.4; }
.phone-content { padding: 16px 18px; }
.phone-content strong { font-size: 11px; }
.prompt-bubble { margin-top: 10px; padding: 10px; color: #5b5947; background: #f9edd2; border-radius: 11px; font-size: 10px; line-height: 1.45; }
.home-card { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-top: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; }
.home-card span { display: block; color: var(--slate); font-size: 9px; }
.home-card strong { display: block; font-size: 10px; }
.home-card i { font-style: normal; font-size: 15px; }

.content-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(310px, .92fr); gap: 17px; }
.resource-library-card, .library-summary { padding: 23px; }
.resource-library-card { background: var(--paper); }
.resource-library-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 7px; }
.resource-library-heading .eyebrow { margin-bottom: 4px; }
.resource-library-heading h2 { margin-bottom: 0; }
.resource-library-symbol { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: var(--white); background: var(--teal); font-size: 23px; font-weight: 900; }
.resource-library-card > p { color: var(--slate); font-size: 12px; line-height: 1.5; }
.library-perks { display: grid; gap: 10px; margin-top: 18px; }
.library-perks div { padding: 10px 11px; border-radius: 11px; background: var(--oat); }
.library-perks strong, .library-perks span { display: block; }
.library-perks strong { font-size: 11px; }
.library-perks span { margin-top: 3px; color: var(--slate); font-size: 10px; line-height: 1.42; }
.library-summary { color: var(--white); background: var(--ink); position: relative; overflow: hidden; }
.library-summary:after { content: ""; position: absolute; width: 180px; height: 180px; right: -72px; bottom: -83px; border: 23px solid rgba(201, 177, 255, .52); border-radius: 50%; }
.library-copy { position: relative; z-index: 1; }
.library-summary h2 { margin-top: 13px; font-size: 24px; }
.library-summary .library-copy > p { max-width: 420px; color: #e4e3ff; font-size: 12px; line-height: 1.55; }
.library-summary .tag { color: var(--ink); background: var(--sun); }
.library-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); margin: 21px 0; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); }
.library-stats div { padding: 0 10px; border-right: 1px solid rgba(255,255,255,.18); }
.library-stats div:first-child { padding-left: 0; }
.library-stats div:last-child { border-right: 0; }
.library-stats strong { display: block; color: var(--sun); font-size: 21px; letter-spacing: -.05em; }
.library-stats span { display: block; margin-top: 3px; color: #e4e3ff; font-size: 9px; line-height: 1.25; }
.library-summary .info-panel { position: relative; z-index: 1; border-left-color: var(--sun); background: rgba(255,255,255,.1); }
.library-summary .info-panel strong { color: var(--white); }
.library-summary .info-panel p { color: #e4e3ff; }
.library-visual { position: relative; z-index: 1; display: block; width: 100%; max-height: 210px; margin-top: 18px; object-fit: contain; border: 1px solid rgba(255,255,255,.25); border-radius: 14px; background: rgba(255,255,255,.94); }
.content-list { display: grid; gap: 9px; }
.content-item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 13px; align-items: center; padding: 14px 16px; }
.content-icon { width: 38px; height: 38px; display: grid; place-items: center; color: var(--teal); border-radius: 12px; background: #eeecff; font-size: 17px; font-weight: 900; }
.content-name h3 { margin: 6px 0 2px; font-size: 13px; }
.content-name p { margin: 0; color: var(--slate); font-size: 10px; }
.content-actions { display: flex; align-items: center; gap: 9px; }
.text-button { padding: 6px 2px; color: var(--teal); border: 0; background: transparent; font-size: 10px; font-weight: 850; }
.text-button:hover { color: #d06a64; }

.empty-state { padding: 32px; text-align: center; color: var(--slate); }
.empty-state strong { color: var(--ink); display: block; margin-bottom: 6px; }
.toast { position: fixed; z-index: 10; right: 22px; bottom: 22px; max-width: 320px; padding: 12px 15px; opacity: 0; pointer-events: none; color: var(--white); background: var(--ink); border-radius: 12px; box-shadow: var(--shadow-md); font-size: 12px; font-weight: 750; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.mobile-nav { display: none; }

@media (max-width: 1040px) {
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .lesson-layout { grid-template-columns: 208px minmax(0, 1fr); }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .parent-shell { grid-template-columns: minmax(0, 1fr) 260px; }
}
@media (max-width: 800px) {
  .shell { display: block; }
  .sidebar { display: none; }
  .main { padding: 14px 16px 34px; }
  .topbar { margin-bottom: 14px; min-height: 43px; }
  .mobile-nav { display: block; position: sticky; top: 0; z-index: 5; margin: -14px -16px 16px; padding: 11px 16px; background: rgba(247,244,238,.92); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(223,230,224,.8); }
  .mobile-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .mobile-brand { display: flex; align-items: center; }
  .mobile-brand img { width: 110px; height: auto; display: block; }
  .mobile-links { display: flex; overflow-x: auto; gap: 6px; margin: 10px -2px -4px; padding-bottom: 4px; }
  .mobile-links .nav-item { width: auto; flex: 0 0 auto; padding: 7px 10px; color: var(--slate); background: var(--paper); border: 1px solid var(--line); font-size: 10px; }
  .mobile-links .nav-item.active { color: var(--white); background: var(--ink); border-color: var(--ink); }
  .topbar .crumb, .top-avatar span { display: none; }
  .top-actions { margin-left: auto; }
  .hero-grid, .parent-shell { grid-template-columns: 1fr; }
  .welcome-card { min-height: 233px; }
  .welcome-content { max-width: 100%; }
  .welcome-media { opacity: .32; object-position: 68% center; }
  .training-copy { max-width: 100%; }
  .training-media { display: none; }
  .lesson-layout { grid-template-columns: 1fr; }
  .lesson-steps { display: flex; overflow-x: auto; gap: 7px; padding: 8px; }
  .lesson-steps h3 { display: none; }
  .step-button { width: auto; flex: 0 0 auto; padding: 8px; }
  .step-button span:last-child { display: none; }
  .page-hero { align-items: flex-start; flex-direction: column; }
  .curriculum-grid { grid-template-columns: 1fr 1fr; }
  .parent-shell { gap: 18px; }
  .phone { margin-top: 5px; }
  .content-layout { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  h1 { font-size: 29px; }
  .cards-3, .cards-2, .prepare-grid, .metric-grid { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; flex-direction: column; margin-top: 24px; }
  .curriculum-grid { grid-template-columns: 1fr; }
  .curriculum-top { flex-direction: column; }
  .welcome-card { padding: 23px; }
  .progress-card { padding: 19px; }
  .lead-hero { padding: 22px; }
  .rollout-row { grid-template-columns: 58px minmax(0, 1fr); }
  .rollout-row .status { grid-column: 2; justify-self: start; }
  .top-actions .icon-button:first-child { display: none; }
  .content-item { grid-template-columns: 38px minmax(0, 1fr); }
  .content-actions { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; }
}


/* Authenticated school portal */
.school-nav-symbol { display: grid; place-items: center; font-size: 16px; font-weight: 850; }
.school-code-label { display: inline-flex; padding: 5px 8px; color: var(--slate); border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 9px; font-weight: 850; }
.school-programme-status { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 850; white-space: nowrap; }
.school-programme-status.active { color: #296648; background: #daf0e1; }
.school-programme-status.onboarding { color: #725b22; background: #fff2c4; }
.school-programme-status.paused { color: #5e5790; background: #ece9f6; }
.school-sign-out { padding: 5px 2px; color: var(--teal); border: 0; background: transparent; font: inherit; font-size: 10px; font-weight: 850; }
.school-sign-out:hover { text-decoration: underline; }
.portal-stat-orb { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; color: var(--teal); background: #eeecff; font-family: var(--font-heading); font-size: 29px; font-weight: 600; }
.portal-resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.portal-resource-card { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 11px; align-items: center; padding: 15px; }
.portal-resource-card .btn { grid-column: 2; justify-self: start; }
.portal-empty { display: grid; gap: 5px; place-items: center; min-height: 146px; padding: 25px; color: var(--slate); text-align: center; }
.portal-empty strong { color: var(--ink); }
.portal-unit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.portal-unit { min-height: 152px; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: var(--oat); }
.portal-unit > span { display: grid; place-items: center; width: 28px; height: 28px; color: var(--teal); border-radius: 9px; background: var(--paper); font-size: 10px; font-weight: 900; }
.portal-unit h3 { margin: 14px 0 5px; }
.portal-unit p { margin: 0; color: var(--slate); font-size: 11px; line-height: 1.45; }
.school-boundary-note { display: grid; gap: 4px; margin-top: 17px; padding: 17px; border-left: 4px solid var(--apricot); background: #fff4ee; }
.school-boundary-note p { margin: 0; color: #725c55; font-size: 12px; line-height: 1.5; }
.school-metrics-note { display: grid; gap: 4px; margin-top: 24px; padding: 13px; border-radius: 12px; background: rgba(255,255,255,.56); }
.school-metrics-note strong { font-size: 11px; }
.school-metrics-note span { color: var(--slate); font-size: 10px; line-height: 1.45; }
.portal-loading { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.portal-loading .card { max-width: 470px; padding: 28px; text-align: center; }
.portal-loading p { color: var(--slate); font-size: 13px; line-height: 1.5; }
@media (max-width: 1040px) { .portal-resource-grid, .portal-unit-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 800px) { .school-code-label, .school-programme-status, .school-sign-out { display: none; } .portal-resource-grid, .portal-unit-grid { grid-template-columns: 1fr; } }


/* Editorial typography refinement: warm, clear and deliberately restrained. */
html { font-kerning: normal; text-rendering: optimizeLegibility; }
body { font-size: 14px; letter-spacing: .002em; }
h1, h2, h3 { font-weight: 500; }
h1 { font-size: clamp(29px, 2.7vw, 40px); line-height: 1.11; letter-spacing: -.032em; }
h2 { font-size: 20px; line-height: 1.18; letter-spacing: -.018em; }
h3 { line-height: 1.25; letter-spacing: -.012em; }
.eyebrow { gap: 7px; font-size: 10px; font-weight: 700; letter-spacing: .085em; }
.eyebrow:before { width: 17px; height: 2px; }
.subcopy { font-size: 13px; line-height: 1.68; }
.nav-label { font-weight: 700; letter-spacing: .1em; }
.nav-item { font-weight: 600; letter-spacing: 0; }
.top-avatar { font-weight: 600; }
.btn, .filter-chip, .year-tab { font-weight: 700; letter-spacing: .005em; }
.tag, .meta { font-weight: 700; letter-spacing: .01em; }
.progress-card .progress-number, .metric-card strong, .library-stats strong { font-family: var(--font-heading); font-weight: 500; letter-spacing: -.03em; }
.lesson-card h3 { font-size: 15px; line-height: 1.28; }
.page-hero { margin-bottom: 25px; }
@media (max-width: 540px) { h1 { font-size: 28px; line-height: 1.13; } h2 { font-size: 19px; } }


.school-access-help { display: inline-flex; margin-top: 10px; color: var(--apricot); font-size: 10px; font-weight: 700; text-decoration: none; }
.school-access-help:hover { text-decoration: underline; }
.school-programme-link { display: inline-flex; margin-top: 8px; color: #d8d7f7; font-size: 10px; font-weight: 700; text-decoration: none; }
.school-programme-link:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }


/* Published lesson pathways */
.school-pathway-stack { display: grid; gap: 15px; margin-top: 18px; }
.lesson-pathway-card { padding: 22px; }
.school-pathway-list { display: grid; gap: 11px; }
.school-pathway-lesson { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.school-pathway-step { width: 31px; height: 31px; display: grid; place-items: center; color: var(--teal); border-radius: 10px; background: var(--mist); font-size: 10px; font-weight: 900; }
.school-pathway-copy h3 { margin: 0 0 4px; font-size: 15px; }
.school-pathway-copy > p { margin: 0; color: var(--slate); font-size: 11px; line-height: 1.5; }
.school-pathway-resources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 11px; }
.school-pathway-resource { display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 7px 10px; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; background: var(--oat); text-align: left; font: inherit; font-size: 10px; font-weight: 800; }
.school-pathway-resource:hover { border-color: var(--leaf); background: #eeecff; }
.school-pathway-resource span { width: 15px; display: inline-grid; place-items: center; color: var(--teal); font-size: 13px; }
.lesson-pathway-empty { margin-top: 18px; }
@media (max-width: 560px) { .school-pathway-resources { grid-template-columns: 1fr; } .lesson-pathway-card { padding: 17px; } }

/* Calm, teacher-facing typography: clearer body copy and less display-heavy headings. */
:root {
  --font-heading: "DM Sans", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Avenir Next", "Segoe UI", system-ui, sans-serif;
}
body { font-size: 17px; line-height: 1.65; }
h1, h2, h3 { font-weight: 600; }
.subcopy { font-size: 17px; line-height: 1.7; }
.section-head p, .page-hero .subcopy { font-size: 15px; line-height: 1.65; }
.lesson-card p, .curriculum-top p, .resource-library-card > p, .library-summary .library-copy > p, .training-feature p { font-size: 15px; line-height: 1.65; }
.school-pathway-copy > p, .school-boundary-note p, .portal-empty, .portal-loading p { font-size: 15px; line-height: 1.63; }
.content-name p, .library-perks span, .info-panel p { font-size: 13px; line-height: 1.58; }
.nav-item { font-size: 14px; }
.btn { font-size: 13px; }
.btn-tiny { font-size: 11px; }
@media (max-width: 540px) {
  body { font-size: 16px; }
  .subcopy { font-size: 16px; }
  .lesson-card p, .curriculum-top p, .resource-library-card > p, .library-summary .library-copy > p, .training-feature p, .school-pathway-copy > p, .school-boundary-note p { font-size: 14px; }
}

/* Editorial Curriculum sequence: structured like a teaching programme, not a card dashboard. */
.curriculum-view { max-width: 980px; }
.curriculum-masthead { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding: 14px 0 30px; border-bottom: 1px solid var(--line); }
.curriculum-masthead h1 { max-width: 700px; margin-bottom: 10px; font-size: clamp(32px, 4vw, 50px); line-height: 1.04; letter-spacing: -.04em; }
.curriculum-masthead .subcopy { max-width: 680px; margin-bottom: 0; }
.curriculum-school-label { flex: 0 0 auto; padding: 7px 10px; color: var(--teal-deep); border: 1px solid var(--line); border-radius: 7px; background: var(--paper); font-size: 12px; font-weight: 700; }
.curriculum-year-picker { display: grid; grid-template-columns: minmax(190px, .7fr) minmax(0, 1.3fr); gap: 25px; align-items: end; padding: 24px 0 22px; border-bottom: 1px solid var(--line); }
.curriculum-year-picker h2 { margin: 0 0 4px; font-size: 21px; }
.curriculum-year-picker p { margin: 0; color: var(--slate); font-size: 16px; line-height: 1.58; }
.curriculum-year-picker .year-tabs { justify-content: flex-end; }
.curriculum-year-picker .year-tab { min-height: 38px; border-radius: 7px; font-size: 13px; }
.school-pathway-stack { gap: 34px; margin-top: 33px; }
.curriculum-sequence { padding: 0; }
.curriculum-sequence-header { display: grid; grid-template-columns: minmax(210px, .85fr) minmax(0, 1.15fr); gap: 26px; align-items: end; padding-bottom: 21px; border-bottom: 2px solid var(--ink); }
.curriculum-sequence-label, .curriculum-lesson-meta { display: flex; gap: 10px; align-items: center; color: var(--teal); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.curriculum-sequence-header h2 { margin: 8px 0 0; font-size: 30px; line-height: 1.1; letter-spacing: -.035em; }
.curriculum-sequence-header p { max-width: 540px; margin: 0; color: var(--slate); font-size: 16px; line-height: 1.62; }
.curriculum-sequence-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.curriculum-sequence-item { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 19px; min-height: 148px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.curriculum-sequence-item:last-child { border-bottom: 0; }
.curriculum-sequence-marker { position: relative; display: grid; place-items: start center; padding-top: 2px; color: var(--teal); font-family: var(--font-heading); font-size: 22px; font-weight: 700; letter-spacing: -.04em; }
.curriculum-sequence-marker::after { content: ""; position: absolute; top: 37px; bottom: -23px; width: 1px; background: var(--line); }
.curriculum-sequence-item:last-child .curriculum-sequence-marker::after { display: none; }
.curriculum-lesson-meta { gap: 8px; color: var(--slate); font-size: 10px; }
.curriculum-lesson-meta span + span::before { content: "·"; margin-right: 8px; color: var(--lavender); }
.curriculum-sequence-content h3 { margin: 7px 0 6px; font-size: 20px; line-height: 1.22; letter-spacing: -.025em; }
.curriculum-sequence-content > p { max-width: 650px; margin: 0; color: var(--slate); font-size: 16px; line-height: 1.62; }
.curriculum-resource-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 15px; }
.curriculum-resource-link { display: inline-flex; align-items: center; gap: 6px; padding: 0 0 3px; color: var(--teal); border: 0; border-bottom: 1px solid var(--lavender); border-radius: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 700; }
.curriculum-resource-link:hover { color: var(--ink); border-bottom-color: var(--ink); }
.curriculum-resource-link > span { font-size: 14px; }
.curriculum-resource-link b { font-size: 12px; font-weight: 700; }
.curriculum-empty-state { display: grid; gap: 6px; padding: 32px 0; color: var(--slate); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.58; }
.curriculum-empty-state strong { color: var(--ink); font-family: var(--font-heading); font-size: 20px; }
.curriculum-view .school-boundary-note { margin-top: 27px; border-radius: 0; border: 0; border-left: 3px solid var(--apricot); background: transparent; }
@media (max-width: 720px) {
  .curriculum-masthead, .curriculum-year-picker, .curriculum-sequence-header { grid-template-columns: 1fr; align-items: start; }
  .curriculum-masthead { display: grid; }
  .curriculum-year-picker .year-tabs { justify-content: flex-start; }
  .curriculum-school-label { justify-self: start; }
  .curriculum-sequence-header { display: grid; gap: 12px; }
}
@media (max-width: 540px) {
  .curriculum-masthead { padding-bottom: 23px; }
  .curriculum-masthead h1 { font-size: 31px; }
  .curriculum-year-picker { gap: 16px; padding: 20px 0; }
  .curriculum-sequence-header h2 { font-size: 26px; }
  .curriculum-sequence-item { grid-template-columns: 45px minmax(0, 1fr); gap: 12px; min-height: 0; padding: 19px 0; }
  .curriculum-sequence-marker { font-size: 18px; }
  .curriculum-sequence-marker::after { top: 31px; bottom: -20px; }
  .curriculum-sequence-content h3 { font-size: 18px; }
  .curriculum-sequence-content > p, .curriculum-sequence-header p, .curriculum-year-picker p { font-size: 15px; }
}
