@font-face {
  font-family: Sora;
  src: url("fonts/Sora-VF.subset.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Figtree;
  src: url("fonts/Figtree-VF.subset.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root{--navy:#203e76;--deep:#142b55;--ink:#1b2d50;--muted:#4a5b73;--cream:#faf8f2;--paper:#f3eee3;--pale-blue:#e6edf7;--line:#d8e0eb;--white:#fff;--radius:26px;--heading:Sora,system-ui,sans-serif;--sans:Figtree,system-ui,sans-serif}
*,*::before,*::after{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font:500 1rem/1.65 var(--sans);-webkit-font-smoothing:antialiased}img{display:block;width:100%;height:auto}a{color:inherit}button,input,select,textarea{font:inherit}button{cursor:pointer}p{margin:0 0 1.05rem}h1,h2,h3{font:700 1em/1.04 var(--heading);letter-spacing:-.035em;margin:0 0 .65em;text-wrap:balance}h1{font-size:clamp(3.45rem,7.4vw,7.25rem)}h2{font-size:clamp(2.35rem,5vw,4.75rem)}h3{font-size:clamp(1.55rem,2.55vw,2.35rem)}strong{font-weight:750}ul,ol{padding-inline-start:1.3rem}.shell{width:min(1300px,calc(100% - 112px));margin-inline:auto}.narrow{max-width:730px}.muted{color:var(--muted)}.eyebrow{display:flex;align-items:center;margin-bottom:13px;color:#31568a;font-weight:750;font-size:.91rem;letter-spacing:.015em}.section{padding-block:clamp(66px,8vw,120px)}.section-lite{padding-block:clamp(36px,5vw,76px)}.intro{max-width:660px;font-size:clamp(1.03rem,1.45vw,1.24rem);color:var(--muted)}.center{text-align:center;margin-inline:auto}.center.eyebrow{justify-content:center}.button{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;text-decoration:none;border:1px solid var(--navy);border-radius:12px;background:var(--navy);color:var(--white);font-weight:750;padding:12px 21px;line-height:1.3;min-height:48px;transition:background .18s,transform .18s;text-align:center;max-width:100%}.button:hover{background:#2e5591;transform:translateY(-2px)}.button.soft{background:transparent;color:var(--navy);border-color:#7890ae}.button.soft:hover{background:#e6eef9}.button.light{background:transparent;color:#fff9e9;border-color:#a9bddd}.button.light:hover{background:#334e7f}.textlink{font-weight:800;text-decoration-thickness:.1em;text-underline-offset:.24em}.actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:26px}.actions.center{justify-content:center}:focus-visible{outline:3px solid #376fc2;outline-offset:4px}.dark :focus-visible{outline-color:#a6cbff}.skip{position:absolute;left:1rem;top:-6rem;z-index:20}.skip:focus{top:1rem}.dark{color:var(--white);background:var(--navy)}.dark .intro,.dark .muted{color:#dce8fa}.dark .eyebrow{color:#e4efff}
header{background:var(--cream);border-bottom:1px solid #dce3ed;position:relative;z-index:5}.nav{display:flex;align-items:center;justify-content:space-between;min-height:82px;gap:20px}.brand{display:inline-block;flex:none}.brand img{width:130px;height:auto}.navlinks{display:flex;align-items:center;gap:clamp(16px,2.1vw,34px);list-style:none;padding:0;margin:0}.navlinks a{font-size:.94rem;text-decoration:none;font-weight:725;white-space:nowrap}.navlinks a:hover,.navlinks [aria-current=page]{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:6px}.menu{display:none;border:1px solid var(--line);background:transparent;border-radius:10px;padding:.48rem .8rem;color:var(--ink);font-weight:750}

.routes,.grid-two,.split,.plans,.articles{display:grid;gap:24px}.routes,.grid-two,.split{grid-template-columns:repeat(2,minmax(0,1fr))}.routes{margin-top:32px}.route{position:relative;padding:36px 34px 34px;border-radius:var(--radius);background:#e8eff9;min-height:236px;display:flex;flex-direction:column;align-items:flex-start;border:1px solid #d4dfef}.route:nth-child(2){background:#fbf6e8;border-color:#e8dfcc}.route h3{margin-bottom:12px;max-width:14em}.route p{max-width:28em}.route .textlink{margin-top:auto}.route-icon{width:42px;height:42px;display:grid;place-items:center;font-size:1.2rem;background:#fffcf2;border-radius:12px;margin-bottom:18px;color:var(--navy);font-weight:900}.route .eyebrow{margin:0 0 10px;font-size:.76rem}.split{align-items:center;gap:clamp(28px,6vw,90px)}.split .illustration{height:100%}.illustration{overflow:hidden;position:relative;margin:0;border-radius:var(--radius);background:#d9e5f3}.illustration img{aspect-ratio:1.24;object-fit:cover;height:100%}.illustration.wide img{aspect-ratio:1.65}.steps{padding:0;list-style:none;margin:28px 0 0;display:grid;gap:15px}.steps li{display:grid;grid-template-columns:34px 1fr;gap:12px;align-items:start}.steps .no{background:#e3edf9;border-radius:50%;height:32px;display:grid;place-items:center;font-size:.86rem;font-weight:800;color:var(--navy)}.dark .steps .no{background:#dce9fb}.steps span strong{display:block;line-height:1.35}.steps span:not(.no){line-height:1.5}.steps span small{font-size:.94rem;display:block;margin-top:3px}.mission{background:#eaf1f9}.banner{border-radius:var(--radius);text-align:center;padding:56px 24px;background:radial-gradient(ellipse at 85% 100%,#466797,transparent 55%),var(--deep)}.banner h2{font-size:clamp(2.15rem,4.8vw,4.15rem);margin-bottom:.36em}
.page-hero{background:#eaf1f9;border-bottom:1px solid #d4e3f6}.page-hero.alt{background:#f8f3e8;border-color:#e5dcc8}.page-hero h1{font-size:clamp(3rem,6.2vw,6rem);margin-bottom:20px}.page-hero .intro{color:#374d72}.small-hero h1{font-size:clamp(2.9rem,6.1vw,6rem);margin-bottom:14px}.small-hero .intro{margin-bottom:0}
.box{border:1px solid var(--line);border-radius:var(--radius);padding:28px;background:var(--white);display:flex;flex-direction:column;min-width:0}.box p:last-child{margin-bottom:0}.plans,.articles{grid-template-columns:repeat(3,minmax(0,1fr))}.plans{margin:32px 0}.plans h2,.box h2{font-size:clamp(1.65rem,2.6vw,2.5rem)}.plans .price{font:700 clamp(2.55rem,4.5vw,4.5rem)/1 var(--heading);margin:8px 0}.price-note{color:var(--muted);font-weight:750}.plans ul{margin-bottom:24px}.plans .button{margin-top:auto;align-self:flex-start}.plans .featured{border:2px solid #829bc3;background:#edf3fc}.school-note{background:#e8f0fa;border-radius:18px;padding:22px 26px;display:flex;gap:20px;align-items:center;justify-content:space-between}.school-note p{margin-bottom:0}.faq{max-width:790px;margin-inline:auto}.faq details{border-top:1px solid var(--line);padding:13px 0}.faq details:last-child{border-bottom:1px solid var(--line)}.faq summary{font-size:1.05rem;cursor:pointer;font-weight:800;padding:4px 4px;line-height:1.45}.faq details p{margin:10px 0 3px 22px;color:var(--muted)}.articles .box{padding:0;overflow:hidden}.articles img{aspect-ratio:1.63;object-fit:cover}.article-tile{padding:23px;display:flex;flex-direction:column;flex:1}.article-tile .textlink{margin-top:auto}.article-tile h2{font-size:clamp(1.45rem,2.4vw,2.08rem)}.article{max-width:730px}.article h1{font-size:clamp(2.65rem,5.8vw,5rem);line-height:1.02}.article h2{font-size:clamp(1.75rem,3vw,2.6rem);margin-top:1.3em}.article p,.article li{font-size:1.08rem}.article figure{margin:23px 0 32px}.article .intro{font-size:1.19rem}.blog-filter{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:24px}.blog-filter button{border:1px solid #cedaee;background:#f3f6fc;color:var(--navy);border-radius:10px;padding:7px 12px;font-weight:750}.blog-filter button[aria-pressed=true]{background:var(--navy);color:white}
.playground{display:grid;grid-template-columns:1fr 1fr;gap:0;border-radius:var(--radius);overflow:hidden;background:var(--white);border:1px solid var(--line);box-shadow:0 18px 35px #263e7016}.playground .illustration{border-radius:0}.playground .illustration img{object-position:54% center}.quiz{padding:clamp(24px,4.5vw,60px);align-self:center}.quiz h2{font-size:clamp(2.35rem,4vw,4rem)}.quiz .eyebrow{margin-bottom:10px}.answer-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:12px 0}.answer{border:1px solid #cad9eb;background:white;border-radius:11px;padding:11px;color:var(--ink);font-weight:800}.answer:hover{background:#e8effb}.answer.good{background:#deebff;border-color:#668bc5}.answer.bad{background:#f8e7d8;border-color:#b77755}.answer:disabled{cursor:default}.quiz-feedback{font-size:.89rem;min-height:47px;margin:8px 0}.q-progress{color:var(--muted);font-size:.86rem;font-weight:750}.quiz progress{accent-color:#386cac;width:100%;height:11px;display:block;margin:8px 0 13px}.form{max-width:620px}.field{display:grid;gap:7px;margin:0 0 17px;font-weight:800}.field :is(input,select,textarea){width:100%;background:#fffdf7;border:1px solid #849bbb;border-radius:10px;color:var(--ink);padding:10px 12px;font-weight:500}.field textarea{resize:vertical}.form [role=status]{margin-top:14px;color:var(--muted)}.form .note{font-size:.94rem}.site-footer{background:var(--deep);color:#eaf2fd;padding:45px 0 20px}.foot-grid{display:grid;grid-template-columns:1.4fr .8fr .8fr;gap:27px}.foot-grid p{max-width:300px;margin-top:12px;color:#d3e1f4}.foot-grid ul{list-style:none;padding:0;margin:8px 0 0}.foot-grid li{margin:4px 0}.foot-grid a{text-underline-offset:4px}.foot-grid .brand{background:#faf8f2;border-radius:10px;padding:5px 9px}.foot-grid .brand img{width:112px}.foot-end{margin:26px 0 0;padding-top:13px;border-top:1px solid #4b618a;font-size:.83rem;color:#d8e5f5}
[hidden]{display:none!important}.reveal{animation:rise .62s both}@keyframes rise{from{opacity:.3;transform:translateY(12px)}to{opacity:1;transform:none}}

@media(max-width:1050px){.shell{width:calc(100% - 64px)}.navlinks{gap:16px}.navlinks a{font-size:.88rem}.nav>.button{padding-inline:13px}.split{gap:30px}.box{padding:19px}}
@media(max-width:790px){.shell{width:calc(100% - 36px)}.nav{min-height:69px;gap:12px;flex-wrap:wrap}.nav>.button{display:none}.brand img{width:112px}.menu{display:block;margin-left:auto}.navlinks{order:3;width:100%;display:grid;grid-template-columns:1fr 1fr;gap:0;padding:0 0 13px}.navlinks a{display:block;padding:9px 5px}.js .navlinks:not(.open){display:none}.split,.playground{grid-template-columns:1fr}.section{padding-block:58px}.routes,.grid-two{gap:12px}.route{padding:23px 17px;min-height:230px}.plans,.articles{grid-template-columns:1fr}.plans,.articles{gap:14px}.box{padding:24px}.school-note{display:block}.school-note .button{margin-top:15px}.foot-grid{grid-template-columns:1fr 1fr}.foot-grid>div:first-child{grid-column:1/-1}.playground .illustration img{aspect-ratio:1.63}.page-hero .split{gap:24px}.page-hero h1{margin-bottom:16px}}
@media(max-width:435px){.routes{grid-template-columns:1fr}.route{min-height:auto}.route .textlink{margin-top:4px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.articles .illustration{border-radius:0}.playground[data-complete] .illustration img{filter:saturate(1.17) brightness(1.11);transition:filter .65s}.playground[data-complete] .quiz h2{color:#32588c}.playground .illustration img{min-height:100%}


h1, h2, h3 { line-height: 1.13; }
h2 { font-size: clamp(2rem, 3.65vw, 3.5rem); }
h3 { font-size: clamp(1.35rem, 2.15vw, 2.05rem); }
.button.white { background: white; color: var(--navy); border-color: white; }
.button.white:hover { background: #e8f0ff; }
.button.soft { border-color: #9bb0ce; background: #ffffff94; }
.button.soft:hover { background: #e8f0ff; }
.textlink { color: #244e8c; text-decoration-thickness: .075em; }
.banner { background: radial-gradient(ellipse at 90% 120%, #3764a5, transparent 65%), var(--deep); }
.site-footer { border-top: 1px solid #2f4771; }

/* The cast and the trail move together. Trees and near grass move at their own depth. */
.mast {
  --scene-x: 0px;
  --scene-y: 0px;
  --scene-scroll: 0px;
  --road-x: calc(var(--scene-x) * .36);
  --road-y: calc(var(--scene-y) * .24 + var(--scene-scroll) * .33);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(640px, 58vw, 865px);
  background: radial-gradient(ellipse at 50% 22%, #fffdf8, #f8f6ed 67%, #eaf2fa);
}
.mast-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: clamp(69px, 7.6vw, 113px);
}
.mast-copy h1 {
  font-size: clamp(3rem, 5.65vw, 6.25rem);
  letter-spacing: -.066em;
  line-height: 1.07;
  margin: 0 auto 19px;
}
.mast-copy h1 span { color: #315e9d; }
.mast-copy .intro {
  line-height: 1.5;
  max-width: 590px;
  margin: 0 auto;
  text-wrap: pretty;
}
.mast-copy .actions { margin-top: 23px; }
.hero-scene { position: absolute; inset: 0 0 -11px; pointer-events: none; transform-origin: 50% 88%; }
.hero-layer { position: absolute; }
.hero-layer :is(picture, img) { display: block; width: 100%; height: 100%; }
.hero-backdrop {
  inset: auto -3% -22px;
  height: clamp(326px, 36vw, 575px);
  transform: translate3d(var(--road-x), var(--road-y), 0);
}
.hero-cottage {
  bottom: clamp(68px, 8.8vw, 143px);
  left: 60%;
  width: clamp(75px, 8vw, 130px);
  transform: translate3d(calc(var(--scene-x) * .43), calc(var(--scene-y) * .31 + var(--scene-scroll) * .38), 0);
}
.hero-trees {
  inset: auto -4% 34px;
  height: clamp(325px, 41vw, 622px);
  transform: translate3d(calc(var(--scene-x) * .69), calc(var(--scene-y) * .51 + var(--scene-scroll) * .18), 0);
}
.hero-tree { position: absolute; width: clamp(180px, 27vw, 477px); height: 100%; bottom: 0; }
.hero-tree-left { left: 0; --tree-pivot: 12%; --tree-tilt: -2.4deg; }
.hero-tree-right { right: 0; --tree-pivot: 88%; --tree-tilt: 2.1deg; }
.hero-party {
  inset: auto 0 clamp(39px, 4.7vw, 77px);
  transform: translate3d(var(--road-x), var(--road-y), 0);
}
.hero-group { position: absolute; bottom: 0; }
.hero-group-left {
  width: clamp(184px, 25vw, 388px);
  left: 14.5%;
}
.hero-group-right {
  width: clamp(136px, 20vw, 307px);
  right: 10%;
  bottom: clamp(8px, 1vw, 18px);
}
.hero-group-right::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 2% 1% 5%;
  height: 7%;
  background: radial-gradient(ellipse at 54% 54%, #46402565, transparent 66%);
}
.hero-foreground {
  inset: auto -4% -14px;
  height: clamp(89px, 10.5vw, 168px);
  transform: translate3d(calc(var(--scene-x) * 1.05), calc(var(--scene-y) * .32 - var(--scene-scroll) * .07), 0);
}
.hero-foreground > div { height: 100%; }
[data-entrance=pending] .hero-scene { transform: scale(1.075); }
[data-entrance=playing] .hero-scene {
  animation: open-landscape 1.65s cubic-bezier(.19,.8,.25,1) both;
}
[data-entrance=playing] .hero-tree {
  animation: settle-canopy 1.3s ease-out .24s both;
  transform-origin: var(--tree-pivot) bottom;
}
.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 28% -10% 20%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse at 45% 62%, #f5fcffbf, transparent 52%);
}
[data-entrance=playing] .hero-backdrop::after {
  animation: valley-light 1.85s ease-in-out both;
}
@keyframes open-landscape {
  from { transform: scale(1.075); }
  to { transform: scale(1); }
}
@keyframes settle-canopy {
  0% { transform: rotate(var(--tree-tilt)); }
  58% { transform: rotate(calc(var(--tree-tilt) * -.22)); }
  100% { transform: rotate(0); }
}
@keyframes valley-light {
  0% { transform: translateX(-23%); opacity: .3; }
  55% { opacity: .44; }
  100% { transform: translateX(26%); opacity: 0; }
}

.catalogue.section {
  --catalogue-overlap: clamp(19px,3.3vw,46px);
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * var(--catalogue-overlap));
  padding-block: 0 clamp(47px,5.6vw,78px);
  background: linear-gradient(to bottom, transparent var(--catalogue-overlap), var(--cream) var(--catalogue-overlap));
}
.catalogue-panel { --catalogue-inset: clamp(15px,3.15vw,42px); padding: clamp(23px,3.3vw,43px) var(--catalogue-inset) 0; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 10px 28px #142b5511; }
.catalogue-heading { text-align: center; margin-inline: auto; }
.catalogue-heading h2 { font-size: clamp(1.67rem,3.2vw,2.75rem); margin-bottom: 9px; }
.catalogue-heading .intro { margin: 0 auto; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.subject-strip {
  display: flex;
  gap: clamp(8px, 1.2vw, 16px);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-color: #a3b8d3 transparent;
  scrollbar-width: thin;
  margin: 21px -5px 0;
  padding: 5px;
}
.subject {
  flex: 1 0 125px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 9px 9px;
  scroll-snap-align: start;
  border: 1px solid #d9e2ef;
  border-radius: 16px;
  color: var(--ink);
  background: white;
  font-weight: 750;
  font-size: clamp(.88rem, 1.3vw, 1.03rem);
  white-space: nowrap;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.subject img { width: clamp(46px, 5.1vw, 65px); aspect-ratio: 1; object-fit: contain; }
.subject:hover { background: #f1f5fd; border-color: #aac0df; }
.subject[aria-pressed=true] {
  background: #edf4ff;
  border-color: #829fca;
  box-shadow: inset 0 -3px #4d72ab;
}
.subject-examples { display: grid; }
.subject-detail {
  text-align: center;
  padding: clamp(16px,2.25vw,25px) 0;
}
.subject-detail + .subject-detail { border-top: 1px solid var(--line); }
.js .subject-detail { border: 0; }
.subject-detail h3 { font-size: clamp(1.3rem, 2.35vw, 2rem); margin-bottom: 7px; }
.topic-list { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px 8px; list-style: none; padding: 0; margin: 0; color: #3e577a; }
.topic-list li { font-size: .88rem; font-weight: 650; background: #f0f4fa; border-radius: 6px; padding: 3px 8px; }
.subject-detail-footer { display: grid; justify-items: center; gap: 11px; margin-top: 12px; text-align: center; }
.subject-count { display: grid; gap: 1px; margin: 0; color: #465e80; font-size: .93rem; line-height: 1.4; }
.subject-count strong { color: var(--navy); }
.subject-detail-footer .button { width: min(100%,224px); box-shadow: 0 5px 12px #203e7626; }
@media (max-width: 620px) {
  .subject { flex-basis: 134px; }
}
.catalogue-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
  background: #eaf1fb;
  padding: clamp(16px,2.2vw,29px) var(--catalogue-inset);
  border-top: 1px solid var(--line);
  border-radius: 0 0 21px 21px;
  margin: 0 calc(-1 * var(--catalogue-inset));
}
.catalogue-stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; align-items: center; text-align: center; padding-inline: clamp(0px, 1.8vw, 24px); }
.catalogue-stats > div + div { border-left: 1px solid #c9d8ec; }
.catalogue-stats dt { color: #364f76; line-height: 1.35; font-weight: 700; }
.catalogue-stats dt small { display: block; font-size: .84rem; font-weight: 550; margin-top: 3px; }
.catalogue-stats dd { margin: 0 0 6px; color: var(--navy); font: 740 clamp(1.7rem,3.3vw,3.05rem)/1.05 var(--heading); letter-spacing: -.06em; }

.route-chapter { background: #f0f5fc; border-block: 1px solid #e3eaf4; }
.route-chapter .routes { gap: clamp(14px,2.1vw,28px); }
.route-chapter .route { min-width: 0; min-height: 0; padding: 0; background: #fff; border-color: var(--line); border-radius: 20px; }
.route-chapter .route:nth-child(2) { background: #fdfefe; }
.route-visual { width: 100%; height: clamp(294px,24vw,310px); margin: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 19px 19px 0 0; overflow: hidden; }
.route-copy { align-self: stretch; padding: clamp(23px, 3.2vw, 40px); flex: 1; display: flex; flex-direction: column; }
.route-copy h3 { max-width: 21ch; }
.route-copy p:not(.eyebrow) { max-width: 48ch; color: var(--muted); }
.route-copy .textlink { margin-top: auto; align-self: flex-start; }
.game-feature { background: var(--cream); }
.home-faq { padding-bottom: 0; }
.home-faq h2, .home-reading h2 { font-size: clamp(1.75rem,3vw,2.6rem); }
.home-reading-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 13px; }
.home-reading-heading h2 { margin: 0; }
.home-reading ul { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; margin: 0; padding: 0; list-style: none; }
.home-reading li a { display: grid; align-content: start; gap: 5px; height: 100%; padding: 17px 19px; border: 1px solid var(--line); border-radius: 13px; background: #fff; text-decoration: none; }
.home-reading li a:hover { border-color: #90a8cb; }
.home-reading li strong { color: var(--navy); text-decoration: underline; text-underline-offset: .19em; }
.home-reading li span { color: var(--muted); }
@media (max-width: 790px) { .home-reading ul { grid-template-columns: minmax(0,1fr); } }
.mission { background: #f0f5fc; border-block: 1px solid #e3eaf4; }
.page-hero {
  background: radial-gradient(ellipse at 80% 64%, #e5edfa, transparent 68%), #faf8f2;
  border-bottom: 1px solid #e3eaf4;
}
.page-hero.alt { background: radial-gradient(ellipse at 83% 65%, #e8effa, transparent 63%), #faf8f2; border-color: #e3eaf4; }
.page-hero h1 { font-size: clamp(2.65rem, 4.15vw, 4.75rem); letter-spacing: -.055em; }
.small-hero h1 { font-size: clamp(2.65rem, 5vw, 4.75rem); }

@media (max-width: 970px) {
  .mast { min-height: clamp(608px, 70vw, 680px); }
  .hero-trees { height: clamp(305px, 41vw, 460px); }
  .hero-group-left { left: 12%; }
  .hero-group-right { right: 8%; }
  .hero-cottage { bottom: clamp(68px, 8.8vw, 100px); }
}
@media (max-width: 790px) {
}
@media (max-width: 620px) {
  .mast { min-height: clamp(555px, 130vw, 647px); }
  .mast-copy { padding-top: 49px; width: calc(100% - 34px); }
  .mast-copy h1 { max-width: 12ch; font-size: clamp(2.55rem, 10.5vw, 4rem); margin-bottom: 13px; }
  .mast-copy .intro { max-width: 330px; font-size: 1rem; }
  .mast-copy .actions { margin-top: 17px; gap: 8px; }
  .mast-copy .button { min-height: 44px; font-size: .87rem; padding: 8px 11px; }
  .hero-backdrop { inset-inline: -30% -43%; height: 264px; }
  .hero-party { bottom: 24px; }
  .hero-group-left { width: clamp(120px, 37vw, 216px); left: 5%; }
  .hero-group-right { width: clamp(92px, 28vw, 169px); right: 5%; }
  .hero-trees { inset-inline: -16%; height: 246px; bottom: 26px; }
  .hero-tree { width: clamp(119px, 35vw, 184px); }
  .hero-cottage { left: 57%; bottom: clamp(58px, 12vw, 80px); width: clamp(58px, 14vw, 89px); }
  .hero-foreground { inset-inline: -18%; height: 76px; }
  .catalogue-stats { gap: 7px; padding: 17px 11px; }
  .catalogue-stats > div { padding-inline: 3px; }
  .catalogue-stats dd { font-size: clamp(1.33rem, 5.15vw, 2.1rem); }
  .catalogue-stats dt { font-size: .77rem; }
  .catalogue-stats dt small { font-size: .68rem; }
}
@media (prefers-reduced-motion: reduce) {
  [data-entrance=pending] .hero-scene { transform: none; }
}

@media (max-width: 620px) {
  .page-hero.section { padding-block: 42px; }
  .page-hero h1 { font-size: clamp(2.08rem, 9vw, 3.15rem); }
  .page-hero .actions { gap: 8px; }
  .page-hero .actions .button { padding-inline: 11px; font-size: .9rem; }
}

.game-preview { min-width: 0; margin: 0; align-self: center; }
.game-preview-frame {
  position: relative;
  isolation: isolate;
  border: 1px solid #bbcde5;
  border-radius: clamp(12px, 1.5vw, 19px);
  box-shadow: 0 14px 29px #16396b25;
  background: #dbe8d5;
}
.game-preview-frame > img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.56;
  object-fit: cover;
  object-position: center 40%;
  border-radius: inherit;
}
.game-wave {
  position: absolute;
  inset: 5% auto auto 50%;
  transform: translateX(-50%);
  border-radius: 7px;
  color: #fff;
  background: #223e73;
  box-shadow: 0 2px 0 #152a55;
  padding: 3px 11px;
  font-size: .82rem;
  font-weight: 800;
}
.game-question {
  position: absolute;
  inset: auto 7% -16px;
  display: grid;
  text-align: center;
  gap: 3px;
  padding: 6px 10px 9px;
  color: #1a2d52;
  background: #fffdf3;
  border: 1px solid #e2d6ba;
  border-radius: 11px;
  box-shadow: 0 5px 14px #18345723;
  line-height: 1.18;
}
.game-question > span { font-size: .73rem; color: #496080; font-weight: 750; }
.game-question > strong { font-size: clamp(1.14rem, 2.1vw, 1.56rem); }
.game-answers { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); list-style: none; gap: 4px; padding: 0; margin: 3px 0 0; }
.game-answers li {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 6px;
  border-radius: 5px;
  border: 1px solid #d8dfeb;
  background: #fff;
  font-size: .78rem;
  font-weight: 800;
}
.game-answers b { display: grid; place-items: center; width: 16px; height: 16px; color: white; background: #254477; border-radius: 4px; font-size: .66rem; }
.game-preview { padding-bottom: 16px; }
.game-preview.route-game { padding: 0; }
.route-game .game-preview-frame { height: 100%; border: 0; border-radius: 0; box-shadow: none; }
.route-game .game-preview-frame > img { height: 100%; object-position: center 36%; }
.route-game .game-question { inset: auto 6% 11px; max-width: 340px; margin-inline: auto; }

.planning-layout { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); align-items: center; gap: clamp(30px,4vw,58px); }
.planning-copy h2 { font-size: clamp(2rem,3.25vw,3.3rem); }
.checks { list-style: none; margin: 19px 0 0; padding: 0; display: grid; gap: 13px; }
.checks li { position: relative; padding-inline-start: 30px; color: var(--muted); }
.checks li::before { content: "✓"; position: absolute; inset: 1px auto auto 0; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #dce8f7; color: var(--navy); font-weight: 800; }
.checks strong { color: var(--ink); }

.planning-preview { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); min-width: 0; margin: 0; line-height: 1.38; }
.planning-screen, .planning-library { min-width: 0; padding: clamp(13px,1.85vw,23px); border-radius: 15px; }
.planning-screen { grid-area: 1 / 1 / 2 / 11; background: #fbf8f0; border: 1px solid #e2daca; box-shadow: 0 10px 28px #17284b13; }
.planning-heading { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.planning-heading h3, .planning-library h3 { margin: 0; font-size: clamp(1.13rem,1.9vw,1.58rem); }
.planning-heading small { color: var(--muted); font-weight: 750; font-size: .77rem; }
.planning-heading img { width: clamp(57px,6.2vw,82px); height: auto; }
.planning-periods, .planning-timeline, .library-packages { list-style: none; padding: 0; }
.planning-periods { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; margin: 12px 0; }
.planning-periods li { padding: 6px 7px; border: 1px solid #e4ddce; border-radius: 8px; background: #fffdf8; line-height: 1.24; }
.planning-periods .period-current { border: 1px solid #365587; box-shadow: 0 0 0 1px #365587; }
.planning-periods strong { display: block; font-size: .79rem; }
.planning-periods small { color: var(--muted); font-size: .73rem; }
.planning-test { margin: 0 0 13px; padding: 7px 9px; border: 1px solid #e6ddc9; border-radius: 8px; background: #fffdf8; font-size: .83rem; }
.planning-test strong { padding-inline-end: 5px; color: var(--navy); }
.planning-timeline { width: 74%; margin: 0 0 2px 5px; border-left: 1px solid #b6b3a9; }
.planning-timeline > li { position: relative; padding: 0 0 12px 11px; font-size: .87rem; }
.planning-timeline > li:last-child { padding-bottom: 0; }
.planning-timeline > li::before { content: ""; position: absolute; top: 4px; left: -5px; width: 7px; height: 7px; border: 1.5px solid var(--navy); border-radius: 50%; background: #f9f6ee; }
.planning-chapters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; margin-top: 5px; }
.planning-chapters span { padding: 6px 7px; border: 1px solid #e6dece; border-radius: 7px; background: #fffdf8; font-size: .77rem; }
.planning-chapters .chapter-current { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 750; }
.chapter-current small { display: block; font-size: .71rem; opacity: .88; }

.planning-library { grid-area: 2 / 8 / 3 / -1; z-index: 1; margin-top: -95px; background: #fff; border: 1px solid #cbd9ea; box-shadow: 0 13px 30px #17284b20; }
.planning-library h3 { font-size: clamp(1rem,1.5vw,1.28rem); text-wrap: initial; }
.library-search { display: flex; align-items: center; gap: 8px; margin: 8px 0 5px; padding: 6px 7px; border: 1px solid var(--line); border-radius: 6px; background: #f7f9fc; color: var(--muted); font-size: .78rem; }
.library-search span { position: relative; width: 10px; height: 10px; flex: none; border: 1px solid currentColor; border-radius: 50%; }
.library-search span::after { content: ""; position: absolute; top: 7px; left: 6px; width: 5px; border-top: 1px solid currentColor; transform: rotate(46deg); }
.library-filters { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; font-size: .73rem; }
.library-filters span { padding: 3px 5px; border-radius: 4px; background: #e8edf5; }
.library-packages { margin: 7px 0 0; }
.library-packages li { padding-block: 5px; border-top: 1px solid var(--line); font-size: .82rem; }
.library-packages small { display: block; color: var(--muted); font-size: .75rem; }

@media (max-width: 890px) { .planning-layout { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 620px) {
  .planning-screen { grid-column-end: -1; padding-bottom: 20px; }
  .planning-timeline { width: auto; }
  .planning-library { grid-column-start: 3; margin-top: -10px; }
  .game-preview-frame > img { aspect-ratio: 1.42; }
  .game-question { inset-inline: 5%; }
}
.team-subjects > div {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 16px #1d3c6e13;
  line-height: 1.25;
}

.team-preview { position: relative; min-width: 0; margin: 0; padding-bottom: 31px; }
.team-scene { position: relative; min-width: 0; isolation: isolate; }
.team-scene > img { display: block; width: 100%; height: auto; border: 1px solid #d4e0f0; border-radius: 17px; box-shadow: 0 14px 28px #1b396824; }
.team-nameplates { position: absolute; inset: 0; pointer-events: none; }
.team-nameplates > span {
  position: absolute;
  top: var(--name-y);
  left: var(--name-x);
  transform: translate(-50%, calc(-100% - 5px));
  padding: 2px 7px;
  border: 1px solid #ffffff85;
  border-radius: 5px;
  background: #1a3563;
  color: #fff;
  font-size: clamp(.69rem, 1vw, .88rem);
  font-weight: 780;
  line-height: 1.35;
}
.team-nameplates span:nth-child(1) { --name-x: 23.5%; --name-y: 40.7%; }
.team-nameplates span:nth-child(2) { --name-x: 49.4%; --name-y: 42.6%; }
.team-nameplates span:nth-child(3) { --name-x: 74.9%; --name-y: 39%; }
.team-subjects {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 5px;
  margin: -17px 5% 0;
}
.team-subjects > div { text-align: center; }
.team-subjects :is(strong, span) { display: block; }
.team-subjects span { color: #4b6383; font-size: .78rem; }
.class-lesson {
  position: relative;
  width: fit-content;
  max-width: calc(100% - 14px);
  margin: -26px 9px 0 auto;
  padding: 10px 15px;
  border: 1px solid #dce5f1;
  border-radius: 11px;
  background: #fff;
  color: #203958;
  box-shadow: 0 8px 23px #21375f26;
  line-height: 1.35;
}
.class-lesson :is(span, strong, small) { display: block; }
.class-lesson :is(span, small) { color: #456387; font-size: .81rem; }
.class-lesson strong { color: var(--navy); margin: 2px 0 3px; }

.parent-trust { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 24px; }
.parent-trust h3 { font-size: clamp(1.1rem,1.7vw,1.45rem); text-wrap: balance; }
.parent-trust p { color: var(--muted); }
.trust-icon { position: relative; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 15px; color: var(--navy); background: #e5edf9; }
.trust-friends { gap: 2px; }
.trust-friends i { display: block; width: 13px; height: 9px; margin-top: 8px; border: 1.6px solid currentColor; border-radius: 8px 8px 4px 4px; position: relative; }
.trust-friends i::before { content: ""; position: absolute; top: -10px; left: 2px; width: 7px; height: 7px; border: 1.6px solid currentColor; border-radius: 50%; }
.trust-shield i { display: grid; place-items: center; width: 23px; height: 26px; padding-bottom: 3px; clip-path: polygon(0 10%,50% 0,100% 10%,94% 66%,73% 89%,50% 100%,27% 89%,6% 66%); background: var(--navy); color: white; font-size: .9rem; font-weight: 800; font-style: normal; }
.trust-clock i { display: block; width: 23px; height: 23px; border: 2px solid currentColor; border-radius: 50%; position: relative; }
.trust-clock i::after { content: ""; position: absolute; top: 4px; left: 9px; width: 5px; height: 7px; border: solid currentColor; border-width: 0 0 2px 2px; }
.parent-offer { padding-top: 0; }
.parent-pass { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: clamp(17px,3vw,36px); border-radius: 17px; background: var(--surface-soft); }
.parent-pass h2 { font-size: clamp(1.35rem,2.4vw,2.05rem); margin-bottom: 7px; }
.parent-pass p { margin: 0; color: #3d5579; }
.parent-pass .button { flex: none; }
@media (max-width: 790px) {
  .parent-trust { grid-template-columns: 1fr; }
  .parent-pass { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 360px) {
  .team-subjects > div { padding-inline: 3px; }
}

:root {
  --cream: #f8f9fb;
  --paper: #edf0f4;
  --line: #dce1e8;
  --surface-alt: #edf0f4;
  --surface-soft: #e8edf4;
  --site-hero: radial-gradient(ellipse at 50% 19%, #fcfdfe 8%, #f3f6fa 66%, #e5ecf5);
}
header { border-color: var(--line); }
.mast { background: var(--site-hero); }
:is(.page-hero, .page-hero.alt) { background: var(--cream); border-color: var(--line); }
:is(.mission, .route-chapter, .school-showcase:nth-of-type(2)) { background: var(--surface-alt); border-color: var(--line); }
.catalogue-stats { background: var(--surface-soft); }
.catalogue-stats > div + div { border-color: var(--line); }
.subject { border-color: var(--line); }
.subject[aria-pressed=true] { background: var(--surface-soft); border-color: #849fc6; }
.game-preview-frame, .team-scene > img { border-color: var(--line); box-shadow: 0 12px 30px #22345216; }
.parent-trust { gap: clamp(16px,3.4vw,45px); }
.parent-trust .box { align-items: center; text-align: center; background: #fff; padding: clamp(17px,2vw,28px); border-radius: 15px; }
.parent-pass .button.soft { background: #fff; }
.school-layout {
  display: grid;
  grid-template-columns: minmax(0,.72fr) minmax(0,1.28fr);
  align-items: center;
  gap: clamp(24px,4.5vw,65px);
}
.school-layout-reverse { grid-template-columns: minmax(0,1.28fr) minmax(0,.72fr); }
.school-layout-reverse .school-copy { grid-area: 1 / 2; }
.school-layout-reverse .school-preview { grid-area: 1 / 1; }
.school-copy .intro { margin: 0; }
.school-copy .actions { margin-top: 18px; }
.school-hero.page-hero h1 { max-width: 18ch; font-size: clamp(2.5rem,3.65vw,4rem); }
:is(.school-hero, .school-showcase).section { padding-block: clamp(44px,5.65vw,83px); }
.school-showcase { border-bottom: 1px solid var(--line); }

.school-preview {
  --screen-bg: #fbf8f0;
  --screen-white: #fffdf8;
  --screen-line: #e4dbc9;
  --screen-ink: #1d284e;
  --screen-muted: #4b5972;
  --screen-help: #b7cbed;
  --screen-current: #7095ca;
  --screen-ahead: #1d284e;
  --screen-help-bg: #eef3fb;
  --screen-tile: #f6f2e9;
  margin: 0;
  min-width: 0;
  width: 100%;
  container-type: inline-size;
}
.school-screen {
  color: var(--screen-ink);
  background: var(--screen-bg);
  border: 1px solid var(--screen-line);
  box-shadow: 0 12px 34px #21334f10;
  border-radius: 17px;
  overflow: hidden;
  text-align: left;
  line-height: 1.35;
}
.screen-content { min-width: 0; padding: clamp(15px,2.1vw,26px); }
.screen-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.screen-heading :is(p,h3) { margin: 0; }
.screen-heading h3 { text-wrap: initial; font-size: clamp(1.5rem,2.5vw,2.45rem); margin-block: 3px 5px; }
.screen-brand { width: 84px; height: auto; margin-left: auto; }
.screen-heading p:not(.screen-label) { color: var(--screen-muted); font-size: .95rem; }
.screen-label { color: var(--screen-muted); text-transform: uppercase; font-size: .72rem; font-weight: 800; letter-spacing: .07em; }
.screen-panel { min-width: 0; border: 1px solid var(--screen-line); background: var(--screen-white); border-radius: 11px; padding: clamp(10px,1.5vw,17px); }
.screen-panel h4, .screen-group h4, .screen-pupil-module h4 { font: 770 clamp(.94rem,1.4vw,1.13rem)/1.2 var(--heading); letter-spacing: -.035em; margin: 0 0 7px; }
.screen-panel p { font-size: .88rem; color: var(--screen-muted); margin: 5px 0 0; }
.screen-panel p strong { color: var(--screen-ink); }
.screen-dashboard-metrics { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.88fr) minmax(0,1.12fr); gap: 9px; }
.screen-signal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 3px 12px;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 7px;
  background: var(--screen-help-bg);
  font-size: .82rem;
}
.screen-signal a { color: var(--screen-ink); font-weight: 750; text-underline-offset: 2px; }
.screen-week { position: relative; }
:is(.screen-week,.screen-track) > strong, .screen-pupil-metrics strong { display: block; margin-top: 5px; font: 780 clamp(1.35rem,2.6vw,2.2rem)/1.1 var(--heading); letter-spacing: -.045em; }
:is(.screen-week,.screen-track) > strong small { font: 750 .85rem var(--sans); color: var(--screen-muted); }
.screen-week p { max-width: 22ch; }
.screen-track { background: var(--screen-help-bg); border-color: #cfdbef; }
.screen-track > strong { color: var(--navy); }
.screen-spark { display: flex; height: 38px; align-items: end; gap: 4px; }
.screen-spark > i { display: block; flex: 1; background: var(--screen-current); border-radius: 4px 4px 0 0; }
.screen-spark > i:last-child { background: var(--screen-ahead); }
.screen-week .screen-spark { position: absolute; width: 31%; height: 33px; right: 10px; top: 25px; }
.screen-agenda { margin: 5px 0 0; list-style: none; padding: 0; }
.screen-agenda li { padding-block: 5px; font-size: .86rem; }
.screen-agenda li + li { border-top: 1px solid var(--screen-line); }
.screen-agenda li > span { padding-right: 4px; color: var(--screen-muted); font-size: .76rem; white-space: nowrap; }
.screen-subject-panel { margin-top: 10px; padding: 0; overflow: hidden; }
.screen-subject-table { width: 100%; border-collapse: collapse; font-size: .86rem; table-layout: auto; }
.screen-subject-table :is(th,td) { padding: 7px clamp(6px,1.1vw,12px); border-bottom: 1px solid var(--screen-line); }
.screen-subject-table tbody tr:last-child :is(th,td) { border-bottom: 0; }
.screen-subject-table thead th { color: var(--screen-muted); font-size: .76rem; }
.screen-subject-table :is(thead th:first-child,tbody th) { text-align: left; }
.screen-subject-table tbody td { text-align: center; font-weight: 750; }
.screen-bar-cell { width: 37%; }
.screen-subject { display: flex; align-items: center; gap: 6px; }
.screen-subject img, .screen-subject-tile img { width: 33px; height: 33px; object-fit: contain; padding: 3px; border-radius: 7px; background: #eaf0f8; }
.screen-subject small { display: block; font-weight: 500; color: var(--screen-muted); }
.screen-distribution { display: flex; height: 8px; gap: 2px; overflow: hidden; border-radius: 6px; }
.screen-distribution > span { flex-basis: 0; background: var(--screen-help); }
.screen-distribution > span:nth-child(2) { background: var(--screen-current); }
.screen-distribution > span:nth-child(3) { background: var(--screen-ahead); }
.screen-class-controls { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 12px; }
.screen-tab { padding: 4px 8px; border: 1px solid var(--screen-line); border-radius: 7px; background: var(--screen-white); font-size: .78rem; font-weight: 750; }
.screen-tab.active { color: #fff; border-color: var(--screen-ink); background: var(--screen-ink); }
.screen-class-grid { display: grid; grid-template-columns: .9fr 1.55fr .9fr; align-items: start; gap: 9px; margin-top: 12px; }
.screen-group { min-width: 0; border: 1px solid var(--screen-line); border-radius: 10px; padding: 9px; background: var(--screen-white); }
.screen-group-help { background: var(--screen-help-bg); border-color: #d1deef; }
.screen-group-ahead { background: var(--screen-bg); }
.screen-group-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 3px; }
.screen-group-title > span { display: grid; place-items: center; padding-inline: 5px; min-width: 22px; min-height: 18px; border: 1px solid var(--screen-line); border-radius: 10px; background: var(--screen-white); font-size: .74rem; font-weight: 800; }
.screen-group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.screen-group-current ul { grid-template-columns: repeat(2,minmax(0,1fr)); }
.screen-kid { display: flex; align-items: center; min-height: 36px; gap: 5px; padding: 4px 5px; border-radius: 7px; border: 1px solid var(--screen-line); background: var(--screen-white); font-size: .8rem; color: var(--screen-ink); text-decoration: none; }
a.screen-kid:hover { border-color: #829cc1; background: #f8faff; }
a.screen-kid strong { text-decoration: underline; text-underline-offset: .19em; }
.screen-kid small, .screen-class-more { display: block; color: var(--screen-muted); font-size: .71rem; }
.screen-class-more { margin-top: 6px; }
details.screen-class-more summary { cursor: pointer; color: var(--screen-ink); font-size: .8rem; font-weight: 720; }
details.screen-class-more ul { margin-top: 6px; }
.screen-initial { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; background: #e9e3f3; color: var(--screen-ink); font-size: .69rem; font-weight: 800; }
.screen-group li:nth-child(2n) .screen-initial { background: #e6ecf4; }
.screen-group li:nth-child(3n) .screen-initial { background: #e9eddf; }
.screen-group-current li:nth-child(3n + 1) .screen-initial { background: #f4eacf; }
.screen-pupil-heading .screen-initial { width: 48px; height: 48px; font-size: 1rem; }
.screen-pupil-metrics, .screen-pupil-subjects { display: grid; gap: 8px; }
.screen-pupil-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
.screen-pupil-subjects { grid-template-columns: repeat(2,minmax(0,1fr)); }
.screen-pupil-bottom { margin-top: 10px; }
.screen-pupil-bottom h4 { margin: 0; }
.screen-pupil-metrics strong { margin: 0 0 3px; }
.screen-pupil-metrics span { display: block; font-size: .79rem; color: var(--screen-muted); }
.screen-pupil-module { margin-top: 12px; }
.screen-pupil-module > p { margin: 6px 0 0; font-size: .8rem; color: var(--screen-muted); }
.screen-subject-tile { min-width: 0; padding: 9px; border-radius: 9px; border: 1px solid var(--screen-line); background: var(--screen-bg); }
.screen-subject-tile > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 4px; margin-bottom: 4px; }
.screen-subject-tile > div span { text-align: center; font-size: .69rem; color: #425771; background: var(--screen-tile); border-radius: 5px; padding: 3px 5px; font-weight: 750; }
.screen-subject-tile[data-school-subject=nederlands] > div span { background: #f9edce; color: #684700; }
.screen-subject-tile[data-school-subject=wiskunde] > div span { background: #e7f0e7; color: #205535; }
.screen-subject-tile h5 { margin: 0 0 4px; font-size: .94rem; }
.screen-subject-tile > strong { display: block; font-size: .87rem; }
.screen-subject-tile > p { margin: 3px 0 0; font-size: .77rem; color: var(--screen-muted); }
.screen-progress { display: flex; align-items: center; gap: 8px; margin-top: 5px; font-size: .78rem; }
.screen-progress > div { flex: 1; border-radius: 7px; height: 8px; overflow: hidden; background: var(--screen-tile); }
.screen-progress > div span { display: block; border-radius: inherit; width: 60%; height: 100%; background: var(--screen-current); }

.route-dashboard .school-screen { display: grid; align-content: center; height: 100%; border: 0; border-radius: 0; box-shadow: none; }
.route-dashboard .screen-content { padding: 9px clamp(9px,1.65vw,22px); }
.route-dashboard .screen-heading { margin-bottom: 8px; }
.route-dashboard .screen-heading h3 { font-size: clamp(1.18rem,2vw,1.62rem); margin-block: 2px 0; }
.route-dashboard .screen-dashboard-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.route-dashboard .screen-dashboard-metrics .screen-label { display: block; line-height: 1.2; }
.route-dashboard :is(.screen-week,.screen-track) { padding: 7px 9px; }
.route-dashboard :is(.screen-week,.screen-track) > strong { font-size: clamp(1.15rem,2.2vw,1.65rem); margin-top: 3px; }
.route-dashboard .screen-panel p { font-size: .77rem; margin-top: 3px; }
.route-dashboard .screen-subject-panel { margin-top: 7px; }
.route-dashboard .screen-subject-table :is(th,td) { padding: 3px clamp(4px,.8vw,10px); }
.route-dashboard .screen-subject-table { font-size: .79rem; }
.route-dashboard .screen-subject-table thead th { font-size: .72rem; }
.route-dashboard .screen-subject img { width: 25px; height: 25px; }

.learning-feature-layout { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); align-items: center; gap: clamp(24px,5vw,70px); }
.learning-feature-copy { grid-area: 1 / 2; }
.learning-feature-copy > p:last-child { margin-bottom: 0; }
.learning-route {
  --flow-gap: clamp(13px,1.65vw,24px);
  --flow-turn: 24px;
  --flow-direct-inset: clamp(13px,1.8vw,23px);
  --flow-green: #438360;
  --flow-red: #b85858;
  grid-area: 1 / 1;
  min-width: 0;
  max-width: 680px;
  width: 100%;
  margin: 0;
  padding: clamp(12px,2vw,24px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
}
.learning-route figcaption { margin-bottom: 11px; color: var(--muted); font-size: .84rem; font-weight: 700; }
.learning-flow {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.18fr);
  grid-template-areas: ". start" "help blocked" ". finish";
  gap: var(--flow-gap);
  isolation: isolate;
  list-style: none;
  padding: 0;
  margin: 0;
}
.learning-card { position: relative; min-width: 0; padding: clamp(9px,1.22vw,15px); border: 1px solid var(--line); border-radius: 11px; background: #fff; line-height: 1.3; }
.learning-card h3 { margin: 0 0 4px; font-size: clamp(.87rem,1.3vw,1.11rem); letter-spacing: -.025em; text-wrap: initial; }
.learning-card p { margin: 0; color: var(--muted); font-size: clamp(.8rem,1.12vw,.95rem); }
.learning-score { display: inline-block; margin-top: 5px; color: #245639; font-size: clamp(.8rem,1.15vw,.96rem); }
.learning-start { grid-area: start; }
.learning-blocked { grid-area: blocked; position: relative; min-width: 0; display: flex; align-items: center; padding-left: calc(var(--flow-direct-inset) + 16px); }
.learning-blocked-note { padding: 6px 8px; border: 1px solid #e6bfbf; border-radius: 7px; background: #fff6f5; color: #902f34; line-height: 1.27; }
.learning-blocked-note h3 { margin: 0 0 3px; font: 750 clamp(.76rem,1.12vw,.92rem)/1.23 var(--heading); letter-spacing: -.025em; text-wrap: initial; }
.learning-blocked-note p { margin: 0; font-size: clamp(.73rem,1.06vw,.87rem); }
.learning-finish h3 span { display: inline-block; margin-inline-end: 3px; font-size: 1.15em; }
.learning-blocked::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: calc(-1 * var(--flow-gap) - 1px) auto calc(-1 * var(--flow-gap) - 1px) var(--flow-direct-inset);
  border-left: 2px dashed var(--flow-red);
}
.learning-stop { position: absolute; top: 50%; left: calc(var(--flow-direct-inset) + 1px); transform: translate(-50%,-50%); display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid #e2afaf; border-radius: 50%; background: #fff6f5; color: #902f34; font-size: 1.15rem; font-weight: 800; line-height: 1; }
.learning-finish { grid-area: finish; border-color: #aaccb8; }
.learning-finish h3 span { color: #276142; }
.learning-help { grid-area: help; background: #edf7f0; border-color: #aacbb7; }
.learning-help::before, .learning-help::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  width: calc(50% + var(--flow-gap) + 18px);
  height: calc(var(--flow-gap) + var(--flow-turn));
  border-left: 2px solid var(--flow-green);
}
.learning-help::before { bottom: 100%; border-top: 2px solid var(--flow-green); border-top-left-radius: 6px; }
.learning-help::after { top: 100%; border-bottom: 2px solid var(--flow-green); border-bottom-left-radius: 6px; }
.learning-adjustment { position: absolute; right: 0; bottom: calc(100% + var(--flow-gap) + var(--flow-turn) + 5px); max-width: 100%; padding: 3px 7px; border: 1px solid #b4d0bf; border-radius: 10px; background: #edf7f0; color: #245639; font-size: clamp(.68rem,1vw,.82rem); font-weight: 800; line-height: 1.2; text-align: center; }
.learning-arrow { position: absolute; width: 9px; height: 8px; background: var(--flow-green); }
.learning-arrow-in { top: -7px; left: calc(50% - 4px); clip-path: polygon(0 0,100% 0,50% 100%); }
.learning-arrow-out { top: calc(100% + var(--flow-gap) + var(--flow-turn) - 5px); left: calc(100% + var(--flow-gap) - 8px); clip-path: polygon(0 0,100% 50%,0 100%); }
.learning-groups { display: flex; flex-wrap: wrap; gap: 3px; margin: 7px 0 5px; }
.learning-groups span { display: grid; grid-template-columns: repeat(3,5px); gap: 2px; padding: 4px; border-radius: 4px; border: 1px solid #9dbcab; background: #fff; }
.learning-groups i { width: 5px; height: 5px; border-radius: 50%; background: #3c8060; }

@container (max-width: 570px) {
  .screen-dashboard-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .screen-planned { grid-column: 1 / -1; }
  .screen-bar-cell { display: none; }
  .screen-class-grid { grid-template-columns: 1fr 1fr; }
  .screen-group-current { grid-area: 1 / 1 / 2 / -1; }
  .screen-group-current ul { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@container (max-width: 365px) {
  .screen-group-current ul { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .screen-subject img { display: none; }
  .screen-week .screen-spark { display: none; }
  .screen-brand { width: 70px; }
}
@media (max-width: 900px) {
  .route-chapter .routes { grid-template-columns: minmax(0,1fr); }
  .route-dashboard, .route-dashboard .school-screen { height: auto; }
  .route-game { height: 250px; }
}
@media (max-width: 790px) {
  .learning-feature-layout { grid-template-columns: minmax(0,1fr); }
  .learning-feature-layout > * { grid-area: auto; }
  .school-layout { grid-template-columns: 1fr; }
  .school-layout-reverse :is(.school-copy, .school-preview) { grid-area: auto; }
  .school-hero.page-hero h1 { font-size: clamp(2.08rem,9vw,3.15rem); }
}
