/* Oppilar's navy/orange identity. Activity feedback retains its semantic colours. */
.math-activity-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:22px}
.math-activity-card{text-align:left;width:100%;border-top:4px solid var(--brand-orange)}
.math-activity-card .choice-copy>strong{font-size:clamp(21px,3vw,27px);display:block;margin-top:12px}
.math-activity-card .choice-copy>.eyebrow{color:var(--accent);font-size:12px}
.math-activity-card .choice-copy>.math-activity-start{color:var(--brand-navy);font-weight:800;margin-top:22px}
.math-activity-symbol{font-size:42px;line-height:1.2;color:var(--brand-orange)}
.math-game-frame{position:fixed;inset:0;z-index:1000;display:block;width:100vw;height:100vh;height:100dvh;border:0;background:#090b0f}
body.math-game-active{overflow:hidden;background:#090b0f}
body.math-game-active>.knowledge-flow-bg,
body.math-game-active>.skip-link,
body.math-game-active>.site-footer,
body.math-game-active>.dialog,
body.math-game-active .shell>.top{display:none}
body.math-game-active .shell{min-height:100dvh}
body.math-game-active .shell>.main{max-width:none;width:100%;min-height:100dvh;padding:0}
.brand-symbol{display:block;width:32px;height:32px;fill:currentColor;stroke:none;color:var(--brand-navy)}
.skip-link{position:fixed;top:8px;left:16px;z-index:100;background:var(--brand-navy);color:white;padding:12px 18px;border-radius:10px;transform:translateY(-180%)}
.skip-link:focus{transform:none}
.top{max-width:var(--page);height:100px;padding:16px 24px;border-bottom:1px solid var(--line);gap:24px}
.brand{padding:0;gap:12px;flex-shrink:0}
.brand .brand-logo{width:176px;height:55px}
.beta-chip{background:var(--accent-soft);color:#994000;letter-spacing:.09em}
.main-nav{display:flex;align-items:center;gap:4px;margin-left:auto}
.main-nav button{border:0;background:transparent;padding:12px 16px;min-height:44px;border-radius:12px;color:var(--muted);font-size:14px;font-weight:750;cursor:pointer}
.main-nav button:hover{background:var(--surface-2);color:var(--brand-navy)}
.main-nav button[aria-current="page"]{color:var(--brand-navy);background:#e6edf6;box-shadow:inset 0 -3px var(--brand-orange)}
.top-actions:has(>.hidden):not(:has(>:not(.hidden))){display:none}
.top-actions .icon{border-radius:12px;background:white;height:44px;min-width:44px;display:flex;align-items:center;justify-content:center;gap:7px}
.top-actions .brand-symbol{width:24px;height:24px}
.main{padding-top:30px;padding-bottom:64px}
.shell{min-height:calc(100vh - 90px)}
.hero h1,.section-title,.chapter-card h2,.reading-title{color:var(--brand-navy)}
.hero h1{line-height:1.08;letter-spacing:-1.8px}
.eyebrow{color:var(--accent);font-weight:800;letter-spacing:.14em}
.primary{background:var(--brand-navy)}
.primary:hover{background:#124777}
.secondary:hover{border-color:#8ca4bf;background:#f0f5fa}
.back{color:var(--brand-navy);min-height:44px}
.site-footer{max-width:var(--page);margin:auto;border-top:1px solid var(--line);padding:24px;display:flex;align-items:center;justify-content:flex-end;gap:24px;flex-wrap:wrap;font-size:13px;color:var(--muted)}
.footer-brand{margin-right:auto;color:var(--brand-navy);font-weight:800}
.footer-brand span{font-weight:450;color:var(--muted)}
.site-footer a{padding:8px 0;text-underline-offset:4px}

/* Landing: one inclusive message over the shared, slowly moving knowledge-flow background. */
.landing{min-height:0;display:block;padding:6px 8px 0}
.landing-hero{display:flex;align-items:center;min-height:430px;padding:40px 0 32px;overflow:visible}
.landing-intro{position:relative;z-index:3;padding-left:4px;width:min(650px,62%)}
.landing-intro h1{font-size:clamp(50px,5vw,72px);line-height:1.02;letter-spacing:-4.2px;font-weight:820;color:var(--brand-navy);margin:0 0 28px;max-width:620px}
.landing-intro h1>span{display:block}.landing-title-main{color:var(--brand-navy);white-space:nowrap}.landing-title-accent{color:var(--brand-orange)}
.landing-intro>p{font-size:clamp(18px,1.65vw,23px);line-height:1.55;color:#687b98;max-width:470px;margin:0}

.choice-grid{gap:22px}
.landing-choice-grid{position:relative;z-index:6}
.choice-card{display:flex;align-items:center;gap:18px;min-height:142px;padding:28px 34px;border-radius:20px;box-shadow:none}
.choice-card.accent{border-color:#b9cce0;background:#eef5fb}
.choice-card:hover{border-color:#8ba7c6;box-shadow:0 8px 28px #062b5b0b;transform:translateY(-2px)}
.choice-card .choice-copy{margin:0;flex:1}
.choice-card strong{font-size:27px;color:var(--brand-navy);letter-spacing:-.65px}
.choice-copy>span{font-size:16px;margin-top:7px;color:#6b7d97}
.choice-card .choice-arrow{position:static;color:var(--brand-navy);margin:0;font-size:32px;line-height:1}

/* The same symbols guide discovery, activities and teacher tools. */
.subject-browse-card{min-height:152px;gap:18px;padding:20px;box-shadow:none;border-radius:18px}
.subject-browse-card:hover{border-color:#8ba7c6;background:#fafdff}
.subject-browse-card-icon{width:56px;height:56px;background:#edf3fa;border-radius:15px}
.subject-browse-card-icon .brand-symbol{width:40px;height:40px;fill:currentColor;stroke:none;color:var(--brand-navy)}
.subject-browse-card-title{color:var(--brand-navy);display:flex;align-items:center;justify-content:space-between;width:100%;gap:8px}
.subject-browse-card-title::after{content:'↗';font-size:18px;font-weight:500;color:var(--muted)}
.search-field{border-radius:15px;min-height:58px;box-shadow:0 4px 16px #062b5b05}
.search-field:focus-within{border-color:#155a9a;box-shadow:0 0 0 3px #155a9a24}
.search-field input::placeholder{color:#687a90}
.search-symbol{transform:none}
.search-symbol .brand-symbol{width:25px;height:25px}
.chapter-action-card{padding:18px;box-shadow:none;border-radius:18px}
.chapter-action-main>strong{color:var(--brand-navy)}
.chapter-activity-button{width:auto;height:auto;min-width:90px;min-height:74px;flex:0 0 auto;display:flex;flex-direction:column;justify-content:center;gap:5px;padding:9px;background:#f4f7fb!important;border-color:#dce4ee!important;color:var(--brand-navy)!important}
.chapter-activity-button .brand-symbol{width:30px;height:30px;fill:currentColor;stroke:none}
.activity-label{font-size:11px;font-weight:750;line-height:1.3}
.chapter-activity-button:hover:not(:disabled){background:#e8f0f9!important;border-color:#8ba7c6!important}
.chapter-activity-button:disabled{opacity:.4;filter:grayscale(1)}
.teacher-svg-icon .brand-symbol,.review-object-icon .brand-symbol,.review-overview-icon .brand-symbol{fill:currentColor;stroke:none;color:var(--brand-navy)}
.teacher-tool-card{padding:24px;border-radius:18px;box-shadow:none}
.teacher-tool-card .list-card-icon{background:#edf3fa;width:58px;height:58px}
.teacher-tool-card .list-card-icon .brand-symbol{width:38px;height:38px}
.teacher-tool-card .list-card-body strong{color:var(--brand-navy)}

@media(max-width:900px){
  .top{gap:12px;padding-inline:18px}.brand .brand-logo{width:142px;height:45px}.main-nav button{padding-inline:12px}
  .landing-hero{min-height:390px;padding:34px 0 28px}
  .landing-intro{width:min(620px,68%)}.landing-intro h1{font-size:clamp(46px,5.8vw,62px);letter-spacing:-3.2px}.choice-card{padding:24px 28px}
}
@media(max-width:680px){
  .top{height:auto;min-height:116px;flex-wrap:wrap;gap:10px;padding-top:max(12px,env(safe-area-inset-top));padding-bottom:0}
  .brand{gap:8px}.brand .brand-logo{width:132px;height:42px}.top-actions{margin-left:auto}
  .main-nav{order:3;flex-basis:100%;margin:0;gap:0;justify-content:space-between}.main-nav button{flex:1;border-radius:8px 8px 0 0;font-size:13px;min-height:44px}
  .main{padding-top:22px;padding-bottom:40px}.landing{padding:0}
  .landing-hero{min-height:310px;padding:30px 0 32px;overflow:visible}.landing-intro{padding:0 2px;width:100%}.landing-intro h1{font-size:44px;letter-spacing:-2.2px;margin:8px 0 18px}.landing-intro>p{font-size:17px;line-height:1.5;max-width:390px}
  .choice-grid{grid-template-columns:1fr;gap:12px}.choice-card{min-height:104px;padding:20px 22px}.choice-card strong{font-size:22px}.choice-copy>span{font-size:14px}.choice-card .choice-arrow{font-size:27px}
  .subject-browse-card{min-height:140px;padding:18px;gap:16px}.subject-browse-card-title{font-size:16px}
  .subject-browse-card-icon{width:48px;height:48px}.subject-browse-card-icon .brand-symbol{width:34px;height:34px}
  .chapter-action-card{grid-template-columns:1fr;padding:16px}.chapter-actions{justify-content:flex-start}.chapter-activity-button{min-width:104px;min-height:68px}
  .hero.compact h1{font-size:36px;letter-spacing:-1.3px}.teacher-tool-card{padding:18px}.site-footer{gap:12px 24px;padding:20px 18px}.footer-brand{flex-basis:100%}
  .level-grid{gap:8px}.level{min-width:0;padding:16px 8px}.level strong{font-size:16px}
  .top:has(.top-actions>:not(.hidden)) .brand .beta-chip{display:none}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}

.map-link-button{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.map-link-button .brand-symbol{width:22px;height:22px;flex-shrink:0}
