/* LEGACY. Page-by-page patches carried over from topnav.css. Delete each rule when its page family is rebuilt on mbs.css. */
/* ===== MBS site skin: one look for every page (Oct 16 2026) ===== */
html{--s-night:#123178;--s-night2:#0d1a38;--s-gold:#eab954;--s-gold-d:#c8921f;--s-paper:#fbf7ee;--s-card:#fffdf7;--s-ink:#0d1a38;--s-mute:#4a5d72;--s-line:rgba(13,26,56,.14);--s-link:#14677f;--s-serif:"Lora",Georgia,"Times New Roman",serif;--s-label:"Poppins","Segoe UI",Arial,sans-serif}
/* shared hero: deep night with a soft glow and a gold rule */
html body :is(.bk-hero,.daily-topic-hero,.lesson-hero,.page-hero,.pg-hero,.tp-hero,.th-hero,.syl-hero,.hero-band,.theory-hero,.fm-hero,.materials-hero){background:radial-gradient(ellipse 60% 120% at 82% 0%,rgba(40,120,170,.32),transparent 60%),radial-gradient(ellipse 50% 90% at 100% 100%,rgba(130,70,140,.16),transparent 60%),var(--s-night)!important;border-bottom:7px solid var(--s-gold)!important;color:#e9f2f6}
html body :is(.bk-hero,.daily-topic-hero,.lesson-hero,.page-hero,.pg-hero,.tp-hero,.th-hero,.syl-hero,.hero-band,.theory-hero,.fm-hero,.materials-hero) :is(h1,h2){font-family:var(--s-serif)!important;color:#f3f8fb!important;font-weight:500;letter-spacing:-.01em}
html.mbs-light body>header.top:not(.mbs-chrome),html.mbs-light body>main>section.hero,html.mbs-light body>section.hero{background:radial-gradient(ellipse 60% 120% at 82% 0%,rgba(40,120,170,.32),transparent 60%),radial-gradient(ellipse 50% 90% at 100% 100%,rgba(130,70,140,.16),transparent 60%),var(--s-night)!important;border-bottom:7px solid var(--s-gold)!important}
/* ---------- light pages ---------- */
html.mbs-light body{background:var(--s-paper)!important;color:var(--s-ink);font-family:var(--s-serif);-webkit-font-smoothing:antialiased}
html.mbs-light body :is(h1,h2,h3,h4,h5){font-family:var(--s-serif)!important;font-weight:600;letter-spacing:-.005em}
html.mbs-light body :is(p,li,td,dd,blockquote,figcaption){font-family:var(--s-serif)}
html.mbs-light body :is(.eyebrow,.kicker,.tag,.chip,.pill,.badge,.label,.crumb,.crumbs,.meta,.byline,.stat-label,[class*="eyebrow"],[class*="kicker"],th,label,summary,figcaption small){font-family:var(--s-label)!important;letter-spacing:.12em;font-weight:700}
html.mbs-light body :is(.eyebrow,.kicker,[class*="eyebrow"],[class*="kicker"]){text-transform:uppercase;font-size:.7rem}
html.mbs-light body p a:not([class]),html.mbs-light body li a:not([class]){color:var(--s-link);text-decoration-thickness:1px;text-underline-offset:3px}
html.mbs-light body :is(.card,.panel,.box,.tile,.callout,.note,.ex,.example,.try,.check,.q,.question,table){border-color:var(--s-line)}
html.mbs-light body table{border-collapse:collapse}
html.mbs-light body th{background:var(--s-night2)!important;color:#f3f8fb!important;font-size:.7rem;text-transform:uppercase}
html.mbs-light body hr{border:0;border-top:1px solid var(--s-line)}
html.mbs-light body ::selection{background:var(--s-gold);color:var(--s-night)}
/* ---------- dark pages ---------- */
html.mbs-dark body{font-family:var(--s-serif)}
html.mbs-dark body :is(h1,h2,h3,h4,h5){font-family:var(--s-serif)!important}
html.mbs-dark body :is(.eyebrow,.kicker,.tag,.chip,.pill,.badge,.label,[class*="eyebrow"],[class*="kicker"],th){font-family:var(--s-label)!important;letter-spacing:.14em}
html.mbs-dark body ::selection{background:var(--s-gold);color:var(--s-night)}
/* generic heroes on light pages */
html.mbs-light body :is(section,header)[class*="hero"]:not([class*="photo"]):not(.mbs-chrome):not(.has-photo):not([class*="_hero_"]):not([class*="ridge"]){background:radial-gradient(ellipse 60% 120% at 82% 0%,rgba(40,120,170,.32),transparent 60%),radial-gradient(ellipse 50% 90% at 100% 100%,rgba(130,70,140,.16),transparent 60%),var(--s-night)!important;border-bottom:7px solid var(--s-gold)!important;color:#e9f2f6}
html.mbs-light body :is(section,header)[class*="hero"]:not([class*="photo"]):not(.mbs-chrome):not(.has-photo):not([class*="_hero_"]):not([class*="ridge"]) :is(h1,h2){color:#f3f8fb!important}
html.mbs-light body :is(section,header)[class*="hero"]:not([class*="photo"]):not(.mbs-chrome):not(.has-photo):not([class*="_hero_"]):not([class*="ridge"]) p:not([class*="kicker"]):not([class*="eyebrow"]){color:#cfe0ea}
html.mbs-light body :is(.bk-hero,.daily-topic-hero,.materials-hero) a:not([class]){color:var(--s-gold)}
html.mbs-light body :is(.bk-hero,.daily-topic-hero,.theory-hero,.fm-hero,.materials-hero,[class*="hero"]) :is([class*="kicker"],[class*="eyebrow"]){color:#7fd6ec}
/* small uppercase labels tagged by script */
html body .mbs-lbl{font-family:var(--s-label)!important;letter-spacing:.12em}
html.mbs-light body :is(section,header)[class*="hero"]:not([class*="photo"]):not(.has-photo):not([class*="_hero_"]):not([class*="ridge"]) :is(div[class*="copy"],div[class*="wrap"],div[class*="inner"]){background:transparent!important;box-shadow:none}
html.mbs-light body :is(.plans-closing,.daily-topic-close,section[class*="closing"]){background:var(--s-night)!important;color:#cfe0ea!important;border-top:7px solid var(--s-gold)}
html.mbs-light body :is(.plans-closing,.daily-topic-close,section[class*="closing"]) :is(h2,h3,p,small){color:#e9f2f6!important}
html.mbs-light body :is(.plans-closing,.daily-topic-close,section[class*="closing"]) em{color:var(--s-gold)!important}
html body :is(.bk-hero,.daily-topic-hero,.theory-hero,.fm-hero,.materials-hero,section[class*="hero"],header[class*="hero"]) :is(h1,h2) em{background:none!important;color:var(--s-gold)!important;font-style:italic;font-weight:400;box-shadow:none}
@media(max-width:760px){html.mbs-light body :not(.tablewrap)>table{display:block!important;max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch}}
@media(max-width:760px){html body .rule-line{overflow-x:hidden;max-width:100%;white-space:nowrap;text-overflow:clip}}
html.mbs-framed body{background:transparent!important}html.mbs-framed{background:#123178}
/* Oct 16 2026: one look for every game hero. Night, gold, Lora, and a photo from the home page set. */
html .ridge-family-hero{background:radial-gradient(ellipse 60% 90% at 85% 10%,rgba(40,120,170,.30),transparent 60%),radial-gradient(ellipse 50% 70% at 0% 100%,rgba(130,70,140,.14),transparent 60%),#123178!important;border-bottom:7px solid #eab954!important;min-height:0!important;padding:76px max(28px,50vw - 590px) 84px!important;gap:56px!important;grid-template-columns:minmax(300px,.95fr) minmax(360px,1.05fr)!important}
html .ridge-family-hero:before,html .ridge-family-hero:after{content:none!important;display:none!important}
html .ridge-family-copy{text-shadow:none!important}
html .ridge-family-copy>p{color:#7fd6ec!important;font:600 .72rem/1 "Poppins",system-ui,sans-serif!important;letter-spacing:.18em!important;text-transform:uppercase!important;margin:0 0 20px!important}
html .ridge-family-copy h1{font:500 clamp(3rem,5.6vw,5.4rem)/.98 "Lora",Georgia,serif!important;letter-spacing:-.02em!important;text-transform:none!important;text-shadow:none!important;color:#f3f8fb!important}
html .ridge-family-copy h1 em{color:#eab954!important;font-style:italic!important;font-weight:400!important;text-shadow:none!important}
html .ridge-family-copy>span{font:400 1.12rem/1.65 "Lora",Georgia,serif!important;color:#cfe0ea!important;text-shadow:none!important;max-width:520px!important}
html .ridge-family-copy>div{border-block:0!important;border-top:1px solid rgba(255,255,255,.18)!important;color:#9fb6c5!important;text-shadow:none!important;font:600 .66rem/1 "Poppins",system-ui,sans-serif!important;padding:18px 0 0!important}
html .ridge-family-copy>div b{color:#eab954!important;font:500 1.25rem "Lora",Georgia,serif!important}
html .ridge-family-art{border:1px solid rgba(234,185,84,.45)!important;border-radius:6px!important;height:clamp(300px,34vw,470px)!important;background:#123178 var(--gimg,none) center/cover no-repeat!important;box-shadow:0 30px 70px rgba(0,0,0,.5)!important}
html .ridge-family-art:before{content:""!important;background:linear-gradient(90deg,#123178 0,rgba(18,49,120,0) 28%),linear-gradient(0deg,rgba(18,49,120,.55),rgba(18,49,120,0) 40%)!important;height:auto!important;inset:0!important;z-index:1!important}
html .ridge-family-art img,html .ridge-family-art figcaption{display:none!important}
@media (max-width:900px){html .ridge-family-hero{grid-template-columns:1fr!important;padding:56px 22px 60px!important;gap:32px!important}html .ridge-family-art{height:min(62vw,380px)!important}}
html .rr-warrior-game .rr-intro{background:radial-gradient(ellipse 60% 90% at 85% 10%,rgba(40,120,170,.30),transparent 60%),radial-gradient(ellipse 50% 70% at 0% 100%,rgba(130,70,140,.14),transparent 60%),#123178!important;border-bottom:7px solid #eab954!important}
html .rr-warrior-game .rr-intro:after{display:none!important}
html .rr-warrior-game .rr-kicker{color:#7fd6ec!important;font:600 .72rem/1 "Poppins",system-ui,sans-serif!important;letter-spacing:.18em!important}
html .rr-warrior-game .rr-intro h1{font:500 clamp(3rem,5.6vw,5.4rem)/.98 "Lora",Georgia,serif!important;letter-spacing:-.02em!important;text-shadow:none!important}
html .rr-warrior-game .rr-intro h1 em{color:#eab954!important;font-style:italic!important;font-weight:400!important}
html .rr-warrior-panel{border:1px solid rgba(234,185,84,.45)!important;border-radius:6px!important;background:#123178 var(--gimg,none) center/cover no-repeat!important;box-shadow:0 30px 70px rgba(0,0,0,.5)!important;min-height:clamp(300px,30vw,420px)!important}
html .rr-warrior-panel:before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,#123178 0,rgba(18,49,120,0) 28%),linear-gradient(0deg,rgba(18,49,120,.55),rgba(18,49,120,0) 40%)}
html .rr-warrior-panel:after{display:none!important}
html .rr-warrior-panel img{display:none!important}
html .tm-page .brand{color:#f3f8fb;font-family:"Lora",Georgia,serif}
html .tm-page .wallet{background:rgba(234,185,84,.12);border:1px solid rgba(234,185,84,.5);color:#eab954;border-radius:4px;font-family:"Poppins",sans-serif}
html .tm-page .tab{color:#9fb6c5;font-family:"Poppins",sans-serif;font-size:13px;letter-spacing:.1em;text-transform:uppercase;font-weight:700}
html .tm-page .tab.active{color:#eab954;border-color:#eab954}
html .tm-page .eyebrow{color:#7fd6ec;font-family:"Poppins",sans-serif;letter-spacing:.18em;font-weight:600}
html .tm-page .intro p:not(.eyebrow){color:#cfe0ea;font-size:1.05rem}
html .tm-page .level{color:#9fb6c5;font-family:"Poppins",sans-serif}
html .tm-page .scene{border-radius:6px;border:1px solid rgba(234,185,84,.45);background:#123178 var(--gimg,none) center/cover no-repeat}
html .tm-page .scene img{display:none}
html .tm-page .scene:after{background:linear-gradient(transparent,#123178)}
html .tm-page .scene-caption .pill{color:#eab954;font-family:"Poppins",sans-serif}
html .tm-page .puzzle-heading h2,html .tm-page .equation{color:#0d1a38;font-family:"Lora",Georgia,serif}
html .tm-page .progress span.filled{background:#eab954}
html .tm-page .purple{background:#fbf1d8;color:#8a6410;border-radius:2px;font-family:"Poppins",sans-serif}
html .tm-page .unknown{color:#8a6410;border-color:#eab954;background:#fbf1d8;border-radius:4px}
html .tm-page .primary{background:#eab954;border:0;border-bottom:3px solid #b98d2c;border-radius:4px;color:#123178;font-family:"Poppins",sans-serif;letter-spacing:.06em;text-transform:uppercase;font-size:13px}
html .tm-page .primary:hover{background:#f2c970}
html .tm-page .hint{background:#f3ead4;border-radius:4px}
html .tm-page .journey{background:rgba(255,255,255,.06);border-radius:4px}
html .tm-page .room{color:#9fb6c5;font-family:"Poppins",sans-serif}
html .tm-page .room b{background:rgba(255,255,255,.12);border-radius:3px}
html .tm-page .room.current{color:#eab954}
html .tm-page .room.current b{background:#eab954;color:#123178}
html .tm-page .room.done b{background:#2c6b57;color:#e9f2f6}
html .wt-page .brand{font-family:"Lora",Georgia,serif;color:#f3f8fb;letter-spacing:-.01em;font-weight:500;font-size:24px}
html .wt-page .quiet{color:#e9f2f6;border-color:rgba(255,255,255,.28);border-radius:4px;font-family:"Poppins",sans-serif;font-size:.8rem}
html .wt-page .quiet:hover{background:rgba(255,255,255,.08)}
html .wt-page .adventure{background:#123178 var(--gimg,none) center/cover no-repeat}
html .wt-page .adventure>img{display:none}
html .wt-page .eyebrow{font-family:"Poppins",sans-serif;font-weight:600;letter-spacing:.18em}
html .wt-page .adventure-copy .eyebrow{color:#7fd6ec}
html .wt-page .green{color:#8a6410}
html .wt-page #steps span.done{background:#eab954;box-shadow:none}
html .wt-page .how{border-radius:4px}
html .wt-page .circle{background:#f3ead4;color:#0d1a38}
html .wt-page .primary{background:#eab954;color:#123178;border-radius:4px;box-shadow:0 3px 0 #b98d2c;font-family:"Poppins",sans-serif;letter-spacing:.06em;text-transform:uppercase;font-size:.8rem}
html .wt-page .primary:hover{background:#f2c970}
html .wt-page .hear{background:#f3ead4;color:#0d1a38;border-radius:4px}
html .wt-page .choice{border-radius:4px;border-color:#c9d3da}
html .wt-page .choice:hover:not(:disabled){border-color:#eab954;background:#fbf4e1}
html .wt-page .choice.correct{border-color:#2c6b57;background:#e3f1ea}
html .wt-page .feedback{color:#2c6b57}

/* Shared hero block for static game pages (Oct 16 2026). */
.g-hero{display:grid;grid-template-columns:minmax(300px,.95fr) minmax(360px,1.05fr);gap:56px;align-items:center;padding:60px max(28px,50vw - 590px) 64px;background:radial-gradient(ellipse 60% 90% at 85% 10%,rgba(40,120,170,.30),transparent 60%),radial-gradient(ellipse 50% 70% at 0% 100%,rgba(130,70,140,.14),transparent 60%),#123178;border-bottom:7px solid #eab954;color:#e9f2f6;font-family:"Lora",Georgia,serif}
.g-hero .g-k{margin:0 0 18px;color:#7fd6ec;font:600 .72rem/1 "Poppins",system-ui,sans-serif;letter-spacing:.18em;text-transform:uppercase}
.g-hero h1{margin:0;font:500 clamp(3rem,5.6vw,5.2rem)/.98 "Lora",Georgia,serif;letter-spacing:-.02em;color:#f3f8fb}
.g-hero h1 em{color:#eab954;font-style:italic;font-weight:400}
.g-hero .g-lead{margin:24px 0 0;max-width:520px;font:400 1.1rem/1.65 "Lora",Georgia,serif;color:#cfe0ea}
.g-hero .g-art{height:clamp(240px,28vw,400px);border:1px solid rgba(234,185,84,.45);border-radius:6px;background:#123178 var(--gimg,none) center/cover no-repeat;box-shadow:0 30px 70px rgba(0,0,0,.5);position:relative}
.g-hero .g-art:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#123178 0,rgba(18,49,120,0) 28%),linear-gradient(0deg,rgba(18,49,120,.55),rgba(18,49,120,0) 40%)}
@media (max-width:900px){.g-hero{grid-template-columns:1fr;gap:28px;padding:44px 22px}.g-hero .g-art{height:min(58vw,320px)}}

/* Times Table, Addition and Sight Words: same night, gold and photo */
html .mq-shell{background:#123178!important}
html .mq-hero{background:linear-gradient(90deg,rgba(18,49,120,.95),rgba(18,49,120,.8) 55%,rgba(18,49,120,.92)),var(--gimg,none) center/cover,#123178!important;min-height:0!important;padding:72px max(25px,50vw - 610px) 84px!important;border-bottom:7px solid #eab954!important;gap:56px!important}
html .mq-hero:after,html .mq-sky,html .mq-hills,html .mq-scene{display:none!important}
html .mq-hero-copy{text-shadow:none!important;padding-top:0!important;align-self:center!important}
html .mq-hero-copy>p{color:#7fd6ec!important;font:600 .72rem/1 "Poppins",system-ui,sans-serif!important;letter-spacing:.18em!important;text-transform:uppercase}
html .mq-hero-copy h1{font:500 clamp(2.8rem,4.8vw,4.6rem)/1 "Lora",Georgia,serif!important;letter-spacing:-.02em!important;text-transform:none!important;color:#f3f8fb}
html .mq-hero-copy h1 em{color:#eab954!important;font-style:italic;font-weight:400}
html .mq-hero-copy>span{font:400 1.1rem/1.65 "Lora",Georgia,serif!important;color:#cfe0ea;text-shadow:none!important}
html .mq-game-card{color:#0d1937!important;text-shadow:none!important}
html .mq-game-card h2,html .mq-game-card h3{color:#0d1937!important;font-family:"Lora",Georgia,serif!important;text-shadow:none!important}
html body section[class*="hero"] .mq-game-card :is(h2,h3),html.mbs-light body section[class*="hero"] .mq-game-card :is(h2,h3){color:#0d1937!important}
html body section[class*="hero"] .mq-game-card .mq-select-label{color:#688094!important}
html body .mq-hero .mq-game-card.mq-game-card.mq-game-card :is(h2,h3,h4){color:#0d1937!important}
html.mbs-light body section.mq-hero.mq-hero.mq-hero.mq-hero.mq-hero.mq-hero.mq-hero .mq-game-card.mq-game-card.mq-game-card.mq-game-card :is(h2,h3,h4){color:#0d1937!important}
@media(max-width:600px){html .g-band{padding:30px 18px 28px}}
html #startScreen .lights{display:none}
html #startScreen .primary{background:#eab954!important;color:#123178!important;border:0!important;border-radius:2px!important;box-shadow:none!important;font:700 .86rem/1 "Poppins",system-ui,sans-serif!important;letter-spacing:.12em;text-transform:uppercase;padding:18px 34px!important}
html #startScreen .primary:hover{background:#f3c966!important}
@media(max-width:600px){html .formula{max-width:100%;overflow-wrap:anywhere;word-break:break-word;font-size:.8rem!important;white-space:normal!important}html .topbar{flex-wrap:wrap}}

/* Quiz rallies: same photo behind the page */
html:has(#v-start) body{background:linear-gradient(rgba(18,49,120,.9),rgba(18,49,120,.94)),var(--gimg,none) center/cover fixed,#123178!important}
header.mbs-topnav{display:block;height:79px;background:#123178;border-bottom:3px solid #eab954;overflow:hidden}header.mbs-topnav *{visibility:hidden}html.mbs-on header.mbs-topnav{display:none!important}html.mbs-on footer.mbs-foot,html.mbs-on footer.libfoot,html.mbs-on footer.pg-foot,html.mbs-on footer.foot,html.mbs-on footer.school-footer{display:none!important}@media print{header.mbs-topnav{display:none}}

@media (min-width:981px){.mega:has(>div:nth-child(3):last-child){grid-template-columns:230px 1fr 1fr;left:24px;right:auto;min-width:640px}}