/* Shared reading rhythm and the school landing. Existing brand colours are retained. */
html { scroll-padding-top: calc(var(--site-header-height) + 64px); -webkit-text-size-adjust: 100%; }
body { font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; }
button, input, select, textarea { font: inherit; }
main, section, article, aside { min-width: 0; }
:where(a, button, summary):focus-visible { outline: 3px solid #6d5cff; outline-offset: 4px; }
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 100; padding: 12px 18px; border-radius: 10px; color: #fff; background: #29233f; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.header-shell { grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; }
.header-nav { gap: 18px; }
.header-link { min-height: 42px; display: inline-flex; align-items: center; font-size: .875rem; }
.site-header { box-shadow: 0 3px 16px #10172814; }
.logo { flex-shrink: 0; }
.header-burger { flex-shrink: 0; }
.header-link.active { text-decoration: underline; text-underline-offset: 7px; }
.school-home { gap: clamp(48px, 7vw, 88px); padding-bottom: 32px; }
.school-home .hero-screen { padding-top: clamp(36px, 6vw, 72px); padding-bottom: 44px; gap: 48px; grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr); }
.school-home .hero-title { font-size: clamp(2.35rem, 4.3vw, 3.65rem); line-height: 1.12; letter-spacing: -.045em; margin: 16px 0 22px; overflow-wrap: normal; }
.school-home .hero-kicker, .school-home .section-label { font-size: .75rem; font-weight: 700; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; color: #595478; }
.school-home .hero-lead { font-size: 1.12rem; line-height: 1.75; max-width: 47ch; margin-bottom: 26px; }
.school-home .hero-actions { gap: 10px; flex-wrap: wrap; }
.hero-cta { min-height: 48px; }
.school-home .hero-cta { display: inline-flex; text-align: center; font-size: .92rem; gap: 12px; padding: 14px 20px; }
.school-home .hero-proof { font-size: .82rem; margin: 16px 0 0; color: #596276; }
.hero-subjects { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.hero-subjects li { font-size: .75rem; font-weight: 600; background: #ffffff80; border: 1px solid #68789b29; border-radius: 6px; padding: 4px 10px; }
.hero-demo { min-width: 0; align-self: center; }
.school-home .hero-window { width: 100%; margin: 0; box-shadow: 0 20px 60px #362c7720; border: 1px solid #ffffffb3; border-radius: 18px; }
.school-home .hero-game-canvas { min-height: 280px; }
.school-home .hero-window-bar { padding: 12px 16px; }
.hero-demo-caption { font-size: .8rem; color: #57647b; margin: 14px 0 0; }
.hero-demo-caption span { margin-right: 6px; color: #6d5cff; }
.home-jump-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 28px; padding: 16px 0; margin-top: -52px; border-bottom: 1px solid #e6e7ee; }
.home-jump-nav a { padding: 8px 0; font-size: .86rem; color: #596176; text-decoration: none; }
.home-jump-nav a:hover { color: #5646dd; }
.school-section { scroll-margin-top: 90px; }
.school-section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.school-home .section-title { font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1.2; letter-spacing: -.025em; max-width: 28ch; }
.school-home .section-label { margin: 0 0 12px; }
.school-text-link { display: inline-flex; gap: 14px; align-items: center; flex-shrink: 0; min-height: 44px; color: #5145b8; font-size: .9rem; font-weight: 600; text-decoration: none; }
.school-text-link:hover { text-decoration: underline; }
.school-section-lead { max-width: 65ch; color: #5a6475; line-height: 1.75; margin: 0 0 24px; }
.school-path { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.school-path li { display: flex; min-width: 0; }
.school-path a { width: 100%; display: flex; flex-direction: column; text-decoration: none; padding: 24px 22px 18px; border: 1px solid #e4e5ee; border-radius: 14px; background: linear-gradient(155deg, #f9f8ff, #fff 65%); }
.school-path a:hover, .school-project-card:hover { border-color: #aaa0ee; box-shadow: 0 8px 28px #44317a0c; }
.school-step-number { align-self: start; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #efeaff; color: #6552d1; font-size: .78rem; font-weight: 700; margin-bottom: 28px; }
.school-path h3, .school-project-copy h3, .school-format h3, .school-library h3 { font-size: 1.13rem; line-height: 1.35; margin: 0 0 12px; letter-spacing: -.015em; }
.school-path p, .school-project-copy p { font-size: .92rem; line-height: 1.65; color: #596276; margin-bottom: 22px; }
.school-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; border-top: 1px solid #e7e7ef; padding-top: 14px; color: #62567b; font-size: .77rem; font-weight: 600; }
.school-card-foot span { font-size: 1.1rem; color: #6d5cff; }
.school-project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.school-project-card { display: flex; flex-direction: column; text-decoration: none; border: 1px solid #e5e5ee; border-radius: 16px; overflow: hidden; background: #fff; }
.school-project-image { position: relative; padding: 22px; aspect-ratio: 1.65; background: linear-gradient(135deg, #edeafa, #e4f4f5); overflow: hidden; }
.school-project-image img { width: 100%; height: 100%; object-fit: contain; border-radius: 7px; }
.school-project-image > span:not(.project-cover) { position: absolute; top: 12px; left: 12px; font-size: .68rem; font-weight: 600; padding: 3px 9px; border-radius: 20px; background: #fff; color: #514c67; box-shadow: 0 2px 8px #25203e14; }
.school-project-copy { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.school-project-note { color: #667080; margin: 18px 0 0; font-size: .87rem; }
.school-format { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 36px; border: 1px solid #e5e7ef; border-radius: 18px; background: #f8f9fc; }
.school-format .section-title { margin-bottom: 20px; }
.school-tools { padding-left: 16px; border-left: 2px solid #b2a4ee; color: #646879; font-size: .9rem; margin: 0; }
.school-format-steps { list-style: none; display: grid; gap: 24px; align-content: center; }
.school-format-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 18px; }
.school-format-steps li > span { font-size: .8rem; font-weight: 700; color: #7a6ca7; padding-top: 2px; }
.school-format-steps h3 { margin-bottom: 7px; }
.school-format-steps p { font-size: .94rem; line-height: 1.7; color: #596276; margin: 0; }
.school-book-banner { scroll-margin-top: 90px; display: grid; grid-template-columns: 200px minmax(0, 1fr); align-items: center; gap: 46px; padding: 36px 48px; border-radius: 18px; border: 1px solid #e0dbf0; background: linear-gradient(120deg, #efeaff, #f8faff 65%, #ebf7f7); }
.school-book-cover { display: block; width: 100%; max-width: 200px; height: auto; border-radius: 3px 10px 10px 3px; box-shadow: 10px 14px 22px #33245124; transform: rotate(-3deg); }
.school-book-banner h2 { font-size: clamp(1.5rem, 2.7vw, 2rem); line-height: 1.3; margin-bottom: 14px; max-width: 30ch; letter-spacing: -.025em; }
.school-book-banner p:not(.section-label) { max-width: 57ch; color: #596276; font-size: .96rem; margin-bottom: 22px; }
.school-library { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.school-library section { display: flex; flex-direction: column; padding: 22px 0 0; border-top: 2px solid #dcd6f1; }
.school-library h3 { margin-bottom: 2px; }
.school-library p { color: #727786; font-size: .83rem; margin-bottom: 20px; }
.school-library ul { list-style: none; margin-bottom: 14px; flex: 1; }
.school-library li { border-bottom: 1px solid #e8e9ef; }
.school-library li a { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding: 14px 0; font-size: .94rem; line-height: 1.55; text-decoration: none; }
.school-library li span { color: #8d85a0; }
.school-faq { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; }
.school-faq-list details { border-bottom: 1px solid #e3e5ed; }
.school-faq-list details:first-child { border-top: 1px solid #e3e5ed; }
.school-faq-list summary { padding: 20px 30px 20px 0; font-size: 1rem; font-weight: 600; line-height: 1.5; cursor: pointer; position: relative; list-style: none; }
.school-faq-list summary::-webkit-details-marker { display: none; }
.school-faq-list summary::after { content: '+'; position: absolute; right: 3px; top: 20px; color: #6d5cff; font-weight: 400; font-size: 1.3rem; }
.school-faq-list details[open] summary::after { content: '−'; }
.school-faq-list details p { color: #596276; font-size: .95rem; line-height: 1.75; padding-bottom: 12px; }
.school-home .home-final-cta { padding: 48px 28px; border: 1px solid #e5e0f4; box-shadow: none; }
.school-home .home-final-cta .section-title { max-width: none; }
.school-home .home-final-cta > p:not(.section-label) { max-width: 52ch; margin: 18px auto 24px; color: #596276; }
/* A comfortable measure, generous line-height and explicit lesson navigation. */
.single-article { max-width: 780px; margin: 0 auto 56px; padding-top: 0; }
.article-toc { margin-top: 0; margin-bottom: 30px; }
.article-toc-toggle { min-height: 46px; }
.article-toc-list a { padding: 12px 10px; }
.article-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; font-size: .78rem; line-height: 1.5; color: #6a7082; margin-bottom: 20px; padding-top: 4px; }
.article-breadcrumbs a { color: #625889; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.article-breadcrumbs a:hover { text-decoration: underline; }
.article-breadcrumbs [aria-hidden] { color: #a29ab1; }
.article-header { margin-bottom: 28px; }
.article-detail-title { font-size: clamp(1.85rem, 4vw, 2.65rem); line-height: 1.18; letter-spacing: -.025em; margin-bottom: 20px; overflow-wrap: break-word; text-wrap: pretty; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: #747987; margin-bottom: 24px; }
.article-cover { width: 100%; max-height: 420px; object-fit: contain; border-radius: 14px; border: 1px solid #e9e7f0; background: #f7f8fc; }
.article-content { font-size: 1.0625rem; line-height: 1.85; }
.article-body { overflow-wrap: break-word; }
.article-body > p { margin-bottom: 1.35em; }
.article-body > p:first-child, .article-body .article-lead { font-size: 1.1rem; line-height: 1.85; color: #48546a; }
.article-body h2 { font-size: clamp(1.4rem, 2.8vw, 1.8rem); line-height: 1.3; letter-spacing: -.018em; margin: 2.1em 0 .85em; }
.article-body h3 { font-size: 1.2rem; line-height: 1.4; margin: 1.8em 0 .75em; }
.article-body h4 { font-size: 1.075rem; color: #353f54; margin-top: 1.5em; }
.article-body ul, .article-body ol { margin-bottom: 1.4em; padding-left: 1.5em; }
.article-body li { padding-left: .25em; margin-bottom: .6em; }
.article-body pre { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; tab-size: 2; font-size: .85rem; line-height: 1.7; }
.article-body code { overflow-wrap: anywhere; }
.article-body pre code { overflow-wrap: normal; }
.article-body table { display: block; width: 100%; overflow-x: auto; }
.article-callout { padding: 22px 24px; margin: 26px 0; }
.article-track-step { display: grid; grid-template-columns: 11px minmax(0, 1fr); gap: 5px 10px; align-content: start; }
.article-track-dot { grid-column: 1; grid-row: 1 / 3; }
.article-track-step-caption, .article-track-step-link, .article-track-step-label { grid-column: 2; }
.article-track-step--current .article-track-dot { animation: none; }
.article-track-step-caption { display: block; font-size: .68rem; line-height: 1.4; font-weight: 500; color: #737589; margin-bottom: 6px; }
.article-track-step-link { min-height: 44px; }
.article-track-progress { white-space: normal; }
.article-track-bottom { margin: 40px 0; padding: 24px; border: 1px solid #e2deef; border-radius: 14px; background: #f8f7fd; }
.article-track-bottom > p { font-size: .78rem; font-weight: 600; color: #6b6482; margin: 0 0 14px; }
.article-track-bottom-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.article-track-bottom-links a { text-decoration: none; display: block; font-size: .94rem; line-height: 1.55; }
.article-track-bottom-links a span { display: block; color: #7967b4; font-size: .76rem; margin-bottom: 5px; }
.article-track-bottom-links a:last-child { text-align: right; }
.article-track-bottom > a { display: inline-flex; align-items: center; margin-top: 18px; min-height: 44px; font-size: .82rem; color: #61528e; }
.read-next-block { margin-top: 40px; padding-top: 30px; border-top: 1px solid #e5e7ee; }
.read-next-block h2 { font-size: 1.4rem; margin-bottom: 20px; }
@media (max-width: 1100px) and (min-width: 769px) {
  .header-shell { gap: 14px; }
  .header-nav { gap: 12px; }
  .header-link { font-size: .76rem; }
  .header-brand .site-subtitle { display: none; }
  .header-cta { font-size: .75rem; padding-inline: 12px; }
  .school-home .hero-screen { gap: 28px; }
  .school-path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .school-project-grid { gap: 14px; }
}
@media (max-width: 768px) {
  .container { padding-inline: 20px; }
  .site-header { padding: 10px 20px; }
  .header-shell { gap: 12px; flex-wrap: nowrap; }
  .header-brand { flex: 1; }
  .header-brand .site-title { font-size: 1rem; }
  .header-brand .site-subtitle { font-size: .7rem; line-height: 1.4; max-width: 28ch; white-space: normal; }
  .header-burger { width: 44px; height: 44px; border-radius: 12px; }
  .header-nav { gap: 0; background: #232635; padding: 12px 20px 20px; max-height: calc(100svh - 70px); overflow-y: auto; overscroll-behavior: contain; }
  .header-link { min-height: 48px; font-size: .95rem; }
  .header-cta-in-nav { min-height: 48px; justify-content: center; }
  .school-home { gap: 48px; }
  .school-home .hero-screen { grid-template-columns: minmax(0, 1fr); padding-top: 36px; padding-bottom: 30px; gap: 30px; }
  .school-home .hero-title { font-size: clamp(2rem, 6.9vw, 3rem); letter-spacing: -.035em; line-height: 1.14; margin: 15px 0 20px; }
  .school-home .hero-lead { font-size: 1rem; line-height: 1.75; margin-bottom: 24px; }
  .school-home .hero-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .school-home .hero-cta { width: 100%; justify-content: center; font-size: .91rem; padding: 14px 16px; }
  .school-home .hero-proof { font-size: .75rem; }
  .hero-subjects { margin-top: 20px; }
  .school-home .hero-game-canvas { min-height: 220px; height: 230px; }
  .hero-demo-caption { font-size: .75rem; }
  .home-jump-nav { margin-top: -32px; justify-content: start; gap: 4px 20px; padding: 10px 0 16px; }
  .home-jump-nav a { font-size: .78rem; min-height: 40px; }
  .school-section-head { display: block; margin-bottom: 18px; }
  .school-section-head .school-text-link { margin-top: 10px; }
  .school-home .section-title { font-size: 1.7rem; line-height: 1.23; }
  .school-section-lead { font-size: .95rem; }
  .school-path { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .school-path a { position: relative; padding: 22px 20px 20px 74px; }
  .school-step-number { position: absolute; left: 20px; top: 22px; margin: 0; width: 34px; height: 34px; }
  .school-path h3 { margin-bottom: 8px; }
  .school-path p { margin-bottom: 16px; font-size: .91rem; }
  .school-project-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .school-project-image { aspect-ratio: 1.8; padding: 24px; }
  .school-project-copy { padding: 22px; }
  .school-project-note { font-size: .85rem; }
  .school-format { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 24px 20px; }
  .school-format-steps { gap: 24px; }
  .school-book-banner { grid-template-columns: minmax(0, 1fr); padding: 28px 24px; gap: 28px; }
  .school-book-cover { width: 148px; justify-self: center; }
  .school-book-banner h2 { font-size: 1.6rem; }
  .school-library { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .school-library section { padding-top: 20px; }
  .school-library p { margin-bottom: 4px; }
  .school-library li a { font-size: .96rem; padding: 16px 0; }
  .school-faq { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .school-home .home-final-cta { padding: 30px 22px; }
  .school-home .home-final-cta > p:not(.section-label) { font-size: .95rem; }
  .article-toc { margin-bottom: 24px; }
  .article-toc-toggle { width: calc(100% - 40px); font-size: .84rem; min-height: 44px; }
  .article-toc-list { padding-inline: 14px; max-height: min(65svh, 480px); }
  .article-toc-list a { min-height: 44px; }
  .article-breadcrumbs { font-size: .75rem; margin-bottom: 16px; }
  .article-detail-title { font-size: 1.85rem; line-height: 1.22; }
  .article-meta { font-size: .77rem; line-height: 1.6; margin-bottom: 20px; }
  .article-cover { border-radius: 10px; }
  .article-content { font-size: 1rem; line-height: 1.85; }
  .article-body > p:first-child, .article-body .article-lead { font-size: 1.025rem; }
  .article-body h2 { font-size: 1.4rem; margin-top: 1.9em; }
  .article-body h3 { font-size: 1.17rem; }
  .article-callout { padding: 20px 18px; }
  .article-body pre { font-size: .8rem; }
  .article-track-nav { padding: 18px; margin-bottom: 24px; }
  .article-track-line { gap: 16px; }
  .article-track-bottom { padding: 20px; }
  .article-track-bottom-links { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .article-track-bottom-links a:last-child { text-align: left; }
  .footer-links a { min-height: 40px; display: inline-flex; align-items: center; }
  .cookie-consent { max-width: calc(100% - 24px); }
}
@media (max-width: 360px) {
  .container { padding-inline: 16px; }
  .site-header { padding-inline: 16px; }
  .header-brand .site-subtitle { font-size: .6rem; }
  .school-home .hero-title { font-size: 1.9rem; }
  .school-path a { padding-left: 64px; padding-right: 16px; }
  .school-step-number { left: 16px; }
  .article-detail-title { font-size: 1.65rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
