@font-face{font-family:Newsreader;src:url(fonts/Newsreader.woff2) format("woff2");font-weight:600 700;font-display:swap}
@font-face{font-family:"Source Sans 3";src:url(fonts/SourceSans3.woff2) format("woff2");font-weight:400 700;font-display:swap}
@font-face{font-family:EditorialFallback;src:local(Georgia);size-adjust:96%}
@font-face{font-family:TextFallback;src:local(Arial);size-adjust:93%}
html:root{--navy:#183f45;--citrus:#ff9b77;--ivory:#e7eeeb;--cream:var(--ivory);--cream-deep:#d6e3df;--warm:var(--ivory);--bg:var(--ivory);--charcoal:var(--navy);--bronze:var(--navy);--bronze-dark:var(--navy);--gold:var(--navy);--accent:var(--navy);--accent-dark:#0d2f51;--deep:var(--navy);--paper:#fff;--tint:#edf3f7;--ink:#1e2a36;--muted:#526372;--border:#c5d4d0;--line:var(--border);--teal:var(--navy);--teal-dark:var(--navy);--sans:"Source Sans 3",TextFallback,sans-serif;--serif:Newsreader,EditorialFallback,Georgia,serif;--ok:#12613b;--bad:#9b2833}
html body{background:var(--ivory);color:var(--ink);font:400 18px/1.55 var(--sans)}
body :is(h1,h2,h3,.hero-title,.serif){font-family:var(--serif);color:var(--navy);text-wrap:balance}
body :is(.hero,.exam-intro,main) h1,body h1{font:700 clamp(40px,5vw,56px)/1.08 var(--serif);letter-spacing:-.035em}
body h2,body .sec-head h2{font:700 clamp(28px,3vw,36px)/1.15 var(--serif)}
body h3{font-size:20px;line-height:1.25}
body :is(.hero-kicker,.section-kicker,.toc-label,.eyebrow,.panel-kicker){font:700 13px/1.3 var(--sans);letter-spacing:.08em;color:var(--navy)}
body :is(.hero-lead,.dek,.exam-intro>p){font:400 18px/1.5 var(--sans);color:var(--muted)}
body :is(.site-head,.topbar,.site-brand-bar,header:has(>.nav)){background:#f4f7f5;color:var(--navy);border-bottom:1px solid var(--border);backdrop-filter:none}
body :is(.site-head,.topbar,.site-brand-bar,.nav-links) a{color:var(--navy);font-size:16px}
body :is(.nav-cta,.nav-action,.topbar-cta){background:white!important;border:1px solid var(--navy);color:var(--navy)!important}
body :is(footer,.site-foot){background:#eff3f5;color:var(--ink);border-top:1px solid var(--border)}
body :is(footer,.site-foot) :is(a,strong){color:var(--navy)!important}
body :is(.offer-bar,.trust-strip,.readiness-showcase){background:#edf3f6;color:var(--navy)}
body .offer-bar{background:#d5e5e0}body .offer-bar :is(strong,del,.offer-bar-label,.offer-bar-countdown){color:var(--navy)}
body .hero:not(.free-set-hero),body .exam-intro{background:radial-gradient(ellipse at 92% 15%,#e8f1f4 0,transparent 52%),var(--ivory);color:var(--navy)}
body .hero h1 em{color:var(--navy);font-style:normal;font-weight:700}
body .hero-visual img,body.hub img.hero-art{border:1px solid var(--border);border-radius:20px;box-shadow:none}
body .hero-actions>a:not(.button):not(.btn-bronze),body.hub .hero p,body .readiness-copy p{color:var(--muted)}
body :is(.btn-buy,.offer-bar-cta,.step-num,.filter-btn.active,.offer-claim-btn){background:var(--navy)!important;color:white!important}
body :is(.btn-buy,.btn-try,.btn,.button,.offer-bar-cta,.filter-btn,.nav-action,.readiness-link){min-height:44px;align-content:center;font:700 16px/1.1 var(--sans)}
body :is(.btn-try,.readiness-link,.card-actions .button){background:white;color:var(--navy);border:1px solid var(--navy)}
body .trust-inner span,body .trust-inner span:before,body .readiness-copy :is(h2,.hero-kicker),body .bundle-card :is(h3,strong,span,p,del),body #offerCardTimer{color:var(--navy)!important}
body .readiness-showcase{border-block:1px solid #d4e0e6;padding-block:clamp(40px,6vw,76px)}
body .readiness-report,body .bundle-card,body .promise-card,body .product-card{background:white;border:1px solid var(--border);box-shadow:0 6px 24px #183f450b}
body .bundle-card.gold-border{border:2px solid var(--navy)}
body .card-media{background:#edf3f6}body .code-pill,body #offerCardBadge{background:#fff!important;color:var(--navy)!important;border:1px solid var(--border)!important}
body .photo-caption{background:#fff;color:var(--ink)}body .price-row{flex-wrap:wrap}
body .rating-line{display:flex;gap:22px;flex-wrap:wrap;border-top:1px solid var(--border);padding-top:16px}
.rating-line .stat{display:grid;gap:3px;color:var(--muted);font:600 14px/1.4 var(--sans)}
.stat b{font:700 clamp(32px,4vw,44px)/1 var(--serif);font-variant-numeric:tabular-nums;color:var(--navy);min-width:2ch}
.diagnostic-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:12px}
.diagnostic-tiles a{display:grid;grid-template-columns:1fr auto;gap:6px;padding:20px;border:1px solid var(--border);border-radius:14px;color:var(--navy);background:#fff;text-decoration:none;font-weight:700}
.diagnostic-tiles a:hover{border-color:var(--navy)}.diagnostic-tiles small{grid-row:2;font-size:14px;font-weight:400}.diagnostic-tiles b{grid-column:2;grid-row:1/3;align-self:center}
body .hp-faq-grid{display:block;max-width:840px;margin:auto}body .hp-faq-item{margin:8px 0;background:white;padding:0 20px}
.hp-faq-item summary{padding:15px 0;cursor:pointer;color:var(--navy);font:600 20px/1.25 var(--serif)}.hp-faq-item[open] p{padding-bottom:18px}
body .exam-intro{max-width:1090px;margin:28px auto 0;padding:clamp(22px,4vw,46px);border:1px solid var(--border);border-radius:20px}
body .exam-intro h1{max-width:27ch}body .exam-intro>p{max-width:65ch}body .exam-intro-links a,body .free-ref a{color:var(--navy)}
body .quick-panel,body .free-set-hero{background:#edf3f6;color:var(--navy);border:1px solid #cad9e3}
body .free-set-hero :is(h2,p,.sub),body .quick-panel :is(h2,h3,p){color:var(--navy)}
body .qbox{background:#fff;border:1px solid var(--border);border-radius:16px;padding:clamp(18px,3vw,32px)}
body .opt{font:400 18px/1.45 var(--sans);padding:14px 16px;min-height:52px;border-radius:10px}
body .opt.selected{color:var(--navy);background:#edf3fa;border-color:#45729b}
body .opt.correct,body .review-good{background:#e4f5e9;color:#145535;border-color:#2c7951}
body .opt.wrong,body .review-bad{background:#fff0f0;color:#842332;border-color:#b43d4d}
.answer-status{display:block;font:700 14px/1.4 var(--sans);padding-top:4px}
body .review-line,body .result-choice{padding:8px 12px;border-radius:8px}body .review-neutral{background:#eef1f3;color:#455363}
body .is-unanswered .review-status{color:#455363}
body :is(.toc-panel,.story-section,.blueprint-panel,.faq-panel,.related-panel,.exam-seo-block){border-color:var(--border);background:white}
body :is(.prose,.story-section>p,.exam-seo-block>p,.dek){max-width:65ch}
body .prose :is(p,li){font:400 18px/1.55 var(--sans)}
body .hero--practice :is(.dek,.eyebrow,.meta-line,h1),body .hero--practice .hero-art svg{color:var(--navy)}
body .page-shell .hero-art{background:#edf3f6;border:1px solid #d3e0e8}
body .toc-panel a[aria-current]{background:#e8eff4;color:var(--navy);font-weight:700;border-inline-start:3px solid}
body .toc-panel a,body .toc-mobile summary{min-height:44px;font-size:14px}
body .btn-bronze,body.hub .hero .button,body .free-set-start,body .free-result [data-start="1"][data-mode="exam"]{position:relative;overflow:hidden;background:var(--citrus)!important;color:var(--ink)!important;border:1px solid transparent;min-height:48px;border-radius:10px;padding:14px 22px;font:700 16px/1.1 var(--sans)}
body :focus-visible{outline:3px solid #12538c!important;outline-offset:3px}
body section[aria-label="Cookie choices"]{position:static!important;max-width:840px!important;margin:16px auto!important;box-shadow:none!important}
body:has(section[aria-label="Cookie choices"]){padding-bottom:0!important}
body :is(.free-set-pill,.badge,.meta-line,.quick-answer,.report-footer,.free-set-count){font-size:14px}
body .offer-modal-art{background:#edf3f6;color:var(--navy)}
body .offer-modal-art :is(strong,span,p),body .offer-modal-copy h2{color:var(--navy)}
@media(max-width:720px){html body,body .prose :is(p,li){font-size:16px}body .exam-intro{margin:12px;padding:20px}body .hero-grid{gap:20px}body .bundle-card{flex-wrap:wrap}body .wrap{min-width:0}body .section{padding-block:36px}body .rating-line{gap:14px}body .hp-faq-item summary{font-size:18px}body .nav{gap:8px}body .nav-cta{padding:8px 10px}body .topbar{padding:10px 14px}body .topbar-nav{gap:5px 12px}.topbar-nav a{align-content:center;min-height:44px}}
body .free-set-hero{background:linear-gradient(115deg,#fff,#eff5f8);text-align:start;padding:clamp(22px,4vw,42px);border:1px solid #cedce5;border-radius:18px}
body .free-set-hero .free-set-actions{justify-content:flex-start}body .free-set-hero h2{max-width:30ch}
body .free-set-pill,body .free-set-labels span{background:#eaf0f6;color:var(--navy);border:1px solid #cbdbe6}
body .catalog-note{max-width:960px;margin:24px auto;padding:16px 20px;border-top:1px solid var(--border);font:400 14px/1.5 var(--sans);color:var(--muted)}
.catalog-note span{display:block}body .buyer-faq{max-width:1060px;margin:26px auto;padding:24px;background:white;border:1px solid var(--border);border-radius:14px}
.buyer-faq summary,.faq-panel summary{cursor:pointer;min-height:44px;align-content:center;font-weight:600;color:var(--navy)}
body .free-score{color:var(--navy)}body .review-good{border-left:4px solid #2c7951}body .review-bad{border-left:4px solid #b43d4d}
body .free-result{background:linear-gradient(110deg,#fff,#edf4f7)}
body .hero--practice .hero-art :is(.art-label,.art-code,.visual-chip),body .hero--practice .hero-art svg{color:var(--navy)}
body .hero--practice .hero-art,body .hero--practice .quick-answer{background:#edf3f6;color:var(--ink)}
html{--white:#fff}
body .practice-cover{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,.4fr);gap:20px 40px;align-items:center;background:#f4f7f5;border:1px solid #d5dfe5;box-shadow:0 7px 30px #183f450a}
.practice-cover .cover-copy p{max-width:56ch}.cover-actions{display:flex;flex-wrap:wrap;gap:10px}.cover-notes{grid-column:1/-1;border-top:1px solid var(--border);padding-top:10px}.cover-notes p{margin:4px 0;font-size:14px;color:var(--muted)}
.cover-art{align-self:stretch;display:grid;place-content:center;justify-items:center;color:#335b77;border-radius:14px;border:1px solid #cbdbe5;background-color:#eaf1f5;background-image:linear-gradient(90deg,#7390a519 1px,transparent 1px),linear-gradient(#7390a519 1px,transparent 1px);background-size:20px 20px}
.cover-art svg{width:min(100%,170px);height:auto}.cover-art span{color:var(--navy);font:600 20px/1 var(--serif);letter-spacing:.06em}
body:has(#app .qbox) .practice-cover{display:none}
body:has(#app .qbox) .free-article{display:none}
body .qbox .opt{display:flex;align-items:baseline;text-align:start;gap:.65em}
body .qbox .opt>strong{min-width:1.7em;text-align:center}
body .free-set-start:active,body .btn-bronze:active{transform:translateY(1px)}
@media(max-width:720px){body .practice-cover{display:block;padding:22px 18px}.cover-art{position:absolute;z-index:-1;right:-26px;top:-24px;width:105px;height:105px;opacity:.17;transform:rotate(8deg)}.cover-art svg{width:70px}.cover-art span{display:none}.cover-notes{margin-top:16px}body .topbar-nav{column-gap:10px}body .topbar-nav a{font-size:14px}body .cover-actions .btn{min-height:48px}}
body .card-media:has(.subject-mark){isolation:isolate;display:grid;place-items:center;background-color:#e9f1f3;background-image:linear-gradient(90deg,#5f82941b 1px,transparent 1px),linear-gradient(#5f82941b 1px,transparent 1px);background-size:24px 24px;aspect-ratio:2.7;min-height:112px;height:auto;border-bottom:1px solid #d4e0e4}
body .card-media:has(.subject-mark)::after{content:"";position:absolute;inset:auto -65px -120px auto;width:225px;height:225px;border:1px solid #b7cad3;border-radius:50%;background:none;z-index:-1;box-shadow:0 0 0 17px #ffffff40,0 0 0 18px #c8d7dd}
.card-media .subject-mark{width:100px;height:auto;color:#365e76}
body .card-caption{display:none}body .code,body .code-pill{background:#fff;color:var(--navy);border:1px solid #c6d5dd}
body .diagnostic-tiles a span{display:grid;gap:7px}.diagnostic-tiles .subject-mark{width:44px;height:40px;color:#365e76}.home .rating-line .stat b{font-variant-numeric:tabular-nums}
body .nav-links a,body .topbar-nav a,body .toc-panel a{align-content:center;min-height:44px}
body .hero-grid .hero-visual img{width:100%;height:auto;max-width:525px}

body:has(#app .qbox) .exam-intro{display:none}
body .free-set-actions button,body .cover-actions button{cursor:pointer}
body .exam-intro .cover-actions{margin:16px 0}
body .free-set-hero,body .qbox{scroll-margin-top:12px}
body .trust-strip span:before{color:var(--navy)}
body .hp-faq-item a,body .hp-faq-links a{color:var(--navy)}
body .offer-timer-card{background:#fff;border:1px solid var(--border)}
body .bundle-price strong,body .price-tag strong{color:var(--navy)!important}
body.home .hero:before{display:none}
/* Hold the offer's footprint while the existing timer resolves. */
body.home #offerBar[hidden]{display:flex!important;visibility:hidden;pointer-events:none}
body.home .offer-bar{min-height:60px}
@media(max-width:700px){body.home .offer-bar{min-height:80px}}

/* Reserve the signed-out menu until the engine paints its responsive card grid. */
@media (scripting: enabled) {
  #app.exam-launch:empty { min-height: var(--menu-1); }
  @media (min-width: 542px) { #app.exam-launch:empty { min-height: var(--menu-2); } }
  @media (min-width: 803px) { #app.exam-launch:empty { min-height: var(--menu-3); } }
  @media (min-width: 1064px) { #app.exam-launch:empty { min-height: var(--menu-4); } }
}


/* Keep the exam header in its first-painted font on a slow connection. */
@font-face { font-family: ExamNewsreader; src: url(fonts/Newsreader.woff2) format("woff2"); font-weight: 600 700; font-display: optional; }
@font-face { font-family: ExamSourceSans; src: url(fonts/SourceSans3.woff2) format("woff2"); font-weight: 400 700; font-display: optional; }
html:has(.exam-launch) { --sans: ExamSourceSans, TextFallback, sans-serif; --serif: ExamNewsreader, EditorialFallback, Georgia, serif; }
@media (max-width: 720px) {
  body:has(.exam-launch) .topbar-nav { font-family: system-ui, sans-serif; }
  body:has(.exam-launch) .topbar-nav a { font-size: 14px; }
}


/* Mineral reading surfaces, deep teal section openings, coral primary actions. */
html:root { --field: #e7eeeb; --forest: #163d42; --on-forest: #f3f8f6; --seafoam: #c8e0d9; }
body.home #tracks, body.hub, body.page-strategy { background: var(--field); }
/* Light hero banners (Dec 2, 2026): mint surface, deep teal text, coral buttons. */
html:root { --hero-light: linear-gradient(135deg,#f6faf8 0%,#e1eee8 100%); --hero-text:#183f45; --hero-sub:#35565b; --hero-line:#b9cdc6; }
body.home .hero, body.hub .hero, body.page-strategy header.hero,
body .exam-intro, body .practice-cover { background: var(--hero-light); color: var(--hero-text); }
body.home .hero, body.hub .hero { border-bottom: 1px solid var(--hero-line); }
body.home .hero :is(h1, h1 em, .stat b), body.hub .hero h1,
body.page-strategy header.hero h1, body .exam-intro h1,
body .practice-cover :is(h1,h2) { color: var(--hero-text); }
body.home .hero :is(.hero-kicker, .popular-row, .hero-lead, .stat),
body.hub .hero :is(p, .hero-actions span),
body.page-strategy header.hero :is(.dek,.eyebrow,time,.meta-line),
body .exam-intro > p, body .practice-cover .cover-copy p { color: var(--hero-sub); }
body.home .hero :is(.hero-lead,.popular-row) a, body.hub .hero .hero-actions > a:not(.button),
body .exam-intro .exam-intro-links a, body .practice-cover .cover-notes :is(p,a) { color: var(--hero-text) !important; text-decoration: underline; text-underline-offset: .16em; }
body.home .hero .rating-line { border-color: var(--hero-line); }
body.home .hero .hero-kicker, body.page-strategy header.hero .eyebrow { background: transparent; border: 0; }
body.page-strategy header.hero :is(.meta-line span,.visual-chip,.snapshot,.quick-answer,.hero-art) {
  background: #fff; color: #183f45; border-color: #b6cec6;
}
body.page-strategy header.hero :is(.meta-line span,.quick-answer,.snapshot,.hero-art) :is(p,strong,b,span,a) { color: #183f45; }
body.page-strategy header.hero .action-row .button-secondary { color:#183f45; background:#fff; border:1px solid var(--hero-line); }
body .practice-cover .cover-art { background:#dceae5; color:var(--forest); }
body .practice-cover .cover-notes { border-color:var(--hero-line); }
body.home .product-card, body.hub .exam-card { border:1px solid #bfd0cb; border-radius:12px; box-shadow:none; }
body.home .card-media, body.hub .card-media { background:#e1eee8; }
body.home .card-media.has-caption::after { content:none; }
body.home .card-media img, body.hub .card-media img { display:block; width:100%; height:100%; object-fit:cover; }
body.home .product-card:hover .card-media img { transform:none; }
body.home .card-media .code-pill, body.hub .card-media .code { background:#fff !important; color:#183f45 !important; border:1px solid #b9cdc6 !important; }
body.home .offer-bar { background: #d4e4df; }
body .free-set-hero { background: #d9e8e2; }
body :is(.site-foot,footer) { background:#d1e2dc; }
body :is(.btn-bronze,.free-set-start):focus-visible, body .hero a:focus-visible { outline-color:#e9855f !important; }
body.home #tracks .btn-buy, body.hub .card-actions .button {
  background:var(--citrus) !important; color:#183034 !important; border:1px solid #dd8864;
}
body.home #tracks .btn-buy:hover, body.hub .card-actions .button:hover { background:#ffa98a !important; }
body.home #tracks .sec-head a { color:var(--forest); text-underline-offset:.16em; }
body .practice-cover .hero-kicker { color:var(--hero-sub); }
body.page-strategy header.hero .meta-line, body.page-strategy header.hero .meta-line span:not(.visual-chip) { color: var(--hero-sub); }

/* v3-fix: homepage hero subline + light readiness band */
.hero-free15{margin:14px 0 0;font-size:15px;line-height:1.5}
.hero-free15 a{font-weight:700}
.readiness-showcase{background:linear-gradient(120deg,#f4f8f5,#e3efe8 62%,#edf4ef)!important;color:var(--charcoal,#1f2a2e)!important}
.readiness-copy h2{color:#163d42!important}
.readiness-copy p{color:#35565b!important}
.readiness-copy .hero-kicker{color:#8a5a14!important}
.readiness-link{background:#163d42!important;color:#fff!important}
.readiness-link:hover{background:#0f2d31!important}
.readiness-report{box-shadow:0 14px 32px rgba(22,61,66,.14)!important;border:1px solid #d6e3dc}
/* v3-fix: no font-swap layout shift on the homepage (same approach as exam pages) */
html:has(body.home){--sans:ExamSourceSans,TextFallback,sans-serif;--serif:ExamNewsreader,EditorialFallback,Georgia,serif}

/* WO-24: site-wide teacher photo background (the old homepage hero photo, teachers-smiling), light wash only, no dark overlay */
html{background:#e7eeeb}
html body{background:transparent!important}
html body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(rgba(247,250,248,.75),rgba(247,250,248,.75)),url(img/site-bg-teachers-1264.webp) center/cover no-repeat;background:linear-gradient(rgba(247,250,248,.75),rgba(247,250,248,.75)),image-set(url(img/site-bg-teachers-1264.avif) type("image/avif"),url(img/site-bg-teachers-1264.webp) type("image/webp")) center/cover no-repeat}
@media (max-width:820px){html body::before{background:linear-gradient(rgba(247,250,248,.75),rgba(247,250,248,.75)),url(img/site-bg-teachers-800.webp) center/cover no-repeat;background:linear-gradient(rgba(247,250,248,.75),rgba(247,250,248,.75)),image-set(url(img/site-bg-teachers-800.avif) type("image/avif"),url(img/site-bg-teachers-800.webp) type("image/webp")) center/cover no-repeat}}
body :is(section.hero,header.hero){background:linear-gradient(135deg,rgba(246,250,248,.91) 0%,rgba(225,238,232,.87) 100%)!important}
body .trust-strip{background:rgba(237,243,246,.82)!important}
body .section-white,body #finder{background:rgba(255,255,255,.80)!important}
body .readiness-showcase{background:linear-gradient(120deg,rgba(244,248,245,.82),rgba(227,239,232,.78) 62%,rgba(237,244,239,.82))!important}
body #tracks.section{background:transparent!important}
body #question-review{background:rgba(244,235,220,.86)!important}

/* FTCE-012: keep the photo-backed design and improve reading clarity. */
html:root {
  --reading-ink: #163b36;
  --reading-secondary: #345650;
  --reading-border: #b9cdc6;
  --reading-focus: #176c79;
}
body .page-shell :is(.breadcrumb,.eyebrow,.meta-line,.meta-line span,.source-note,.toc-label,
  .panel-kicker,.section-kicker,.quick-answer strong,.art-label,.art-code,.snapshot span) {
  color: var(--reading-ink);
  font-size: 14px;
  line-height: 1.45;
}
body .page-shell :is(.eyebrow,.toc-label,.panel-kicker,.section-kicker,.art-label,.quick-answer strong) {
  letter-spacing: .055em;
  font-weight: 750;
}
body .page-shell :is(.breadcrumb,.meta-line,.source-note) { letter-spacing: normal; }
body .page-shell .source-note { margin-block: 14px; }
body .page-shell .hero .dek { color: var(--reading-ink); font-size: 18px; line-height: 1.55; max-width: 66ch; }
body .page-shell .quick-answer p { color: var(--reading-ink); font-size: 16px; line-height: 1.6; }
body .page-shell .prose :is(p,li) { color: var(--reading-ink); line-height: 1.6; }
body .page-shell :is(.prose p,.story-section > p,.quick-answer p) { max-width: 70ch; }
body .page-shell :is(.breadcrumb,.source-note,.prose,.quick-answer) a {
  color: var(--reading-ink);
  text-decoration: underline;
  text-decoration-thickness: .07em;
  text-underline-offset: .16em;
}
body .page-shell :is(.toc-panel,.toc-mobile) a {
  color: var(--reading-secondary);
  font-size: 15px;
  line-height: 1.4;
  border-inline-start: 3px solid transparent;
  overflow-wrap: anywhere;
}
body .page-shell :is(.toc-panel,.toc-mobile) a span {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--reading-ink);
}
body .page-shell :is(.toc-panel,.toc-mobile) a[aria-current] {
  color: var(--reading-ink);
  background: #e2eee9;
  border-inline-start-color: var(--reading-ink);
}
body .page-shell .hero-art { padding: 38px 14px 14px; align-content: center; }
body .page-shell .hero-art svg { max-width: 220px; }
body .page-shell .hero-art .visual-notes {
  position: relative;
  inset: auto;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  min-width: 0;
  margin-top: 8px;
}
body .page-shell .hero-art .visual-chip {
  max-width: 100%;
  color: var(--reading-ink);
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: normal;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  box-sizing: border-box;
}
body :is(.site-foot-legal,.exam-card.locked p,.exam-tag.locked) { color: var(--reading-secondary); font-size: 14px; }
body :is(.popular-row,.popular-row a,.report-tag,.rel-pill,.article-foot,.article-foot a) { font-size: 14px; }
body .exam-card.locked { opacity: 1; }
body :is(a,button,summary):focus-visible { outline: 2px solid var(--reading-focus) !important; outline-offset: 2px !important; }
@media (max-width: 650px) {
  html body :is(.site-head .site-nav, header > .nav, .topbar).ftlp-mobile-header { flex-wrap: nowrap; }
  html body :is(.site-head .site-nav, header > .nav, .topbar).ftlp-mobile-header > .site-brand { flex: 1 1 0; width: auto; min-width: 0; }
  body .page-shell .hero .dek { font-size: 17px; }
  body .page-shell .hero-art .visual-chip { font-size: 14px; }
}

/* FTCE-015: Midnight Academy. Preserve existing content, photography, and answer states. */
html:root {
  --midnight: #0b1726;
  --midnight-surface: #14273a;
  --midnight-card: #1c3349;
  --midnight-line: #38536b;
  --midnight-ink: #edf2f8;
  --midnight-muted: #c4d3e3;
  --midnight-gold: #efc982;
  --midnight-focus: #ffd68d;
}
html { background: var(--midnight); }
html body { background: var(--midnight) !important; color: var(--midnight-ink); }
html body::before { background: none; }
html body :is(header:has(>.nav),.site-head,.topbar,.site-brand-bar,.offer-bar,.ftlp-mobile-panel) {
  background: var(--midnight-surface) !important;
  border-color: var(--midnight-line) !important;
  color: var(--midnight-ink);
}
html body .site-brand-full { background: #fbfaf5; padding: 2px 8px; box-sizing: content-box; border-radius: 8px; }
html body .site-brand-title { color: var(--midnight-ink); }
html body .site-brand-icon { background: #fbfaf5; border-radius: 5px; }
html body :is(.nav-links,.topbar-nav,.topbar-right,.ftlp-mobile-panel) a,
html body .offer-bar :is(strong,del,.offer-bar-label,.offer-bar-countdown) { color: var(--midnight-ink) !important; opacity: 1; }
html body :is(.nav-tool,.nav-cta,.nav-action,.topbar-cta,.ftlp-mobile-toggle,.ftlp-mobile-account) {
  background: var(--midnight-card) !important; color: var(--midnight-ink) !important; border-color: var(--midnight-line) !important;
}
html body .ftlp-mobile-panel > a { border-color: var(--midnight-line) !important; }
html body :is(.hero,.exam-intro,.practice-cover,.free-set-hero) {
  background: var(--midnight-surface) !important;
  color: var(--midnight-ink);
  border-color: var(--midnight-line);
}
html body.home section.hero {
  background: linear-gradient(90deg,rgba(11,23,38,.94),rgba(11,23,38,.86) 45%,rgba(11,23,38,.48)),
    url(img/site-bg-teachers-1264.webp) center 46%/cover no-repeat !important;
  padding: 30px 0 36px;
}
html body.home .hero-grid { grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: 32px; }
html body.home .hero-visual img {
  border: 3px solid var(--midnight-line);
  box-shadow: 0 16px 28px #0006;
}
html body .page-shell .hero { background: linear-gradient(135deg,#14273af5,#1c3349ed) !important; }
html:has(.page-shell) body::before {
  background: linear-gradient(#0b1726c9,#0b1726e6),url(img/site-bg-teachers-1264.webp) center/cover no-repeat;
}
html body :is(.wrap,.page-shell,.exam-intro,.trust-strip,.site-foot,.article-foot,.free-article,.free-result,
 .exam-seo-block,.checkout-modal,.modal-box,.ftlp-mobile-panel) {
  --ink: var(--midnight-ink);
  --navy: var(--midnight-ink);
  --deep: var(--midnight-ink);
  --forest: var(--midnight-ink);
  --charcoal: var(--midnight-ink);
  --muted: var(--midnight-muted);
  --border: var(--midnight-line);
  --line: var(--midnight-line);
  --reading-ink: var(--midnight-ink);
  --reading-secondary: var(--midnight-muted);
  color: var(--midnight-ink);
}
html body :is(.section-white,#tracks.section,#finder,#diagnostics,.trust-strip,.readiness-showcase,
 .guide-section,.story-section,.toc-panel,.toc-mobile,.blueprint-panel,.faq-panel,.related-panel,
 .exam-seo-block,.exam-card,.free-article,.free-result,.quick-panel,.hp-faq-item,footer,.site-foot,.modal-box) {
  background: var(--midnight-surface) !important; border-color: var(--midnight-line) !important;
  color: var(--midnight-ink);
}
html body :is(.hero-art,.cover-art,.box,.snapshot,.quick-answer,.product-card,.bundle-card,.promise-card,
 .readiness-report,.diagnostic-tiles a,.article-category,.article-category summary,.score-table,.rel-pill,
 .page-shell .meta-line span,.visual-chip,.exam-tag,.qbox) {
  background: var(--midnight-card) !important; border-color: var(--midnight-line) !important;
  color: var(--midnight-ink);
}
html body :is(main,.wrap,.page-shell,.exam-intro,.exam-seo-block,.trust-strip,.free-article,.free-result,footer,.modal-box) :is(h1,h2,h3,h4,h1 em,.stat b,.section-kicker,.panel-kicker,.hero-kicker,.eyebrow,.toc-label,.breadcrumb,.art-label,.art-code) {
  color: var(--midnight-ink) !important;
}
html body :is(main,.wrap,.page-shell,.exam-intro,.exam-seo-block,.trust-strip,.free-article,.free-result,footer,.modal-box) :is(.dek,.hero-lead,.hero-free15,.popular-row,.stat,p,.source-note,.meta-line,.meta-line span,.site-foot-legal,.trust-inner span) {
  color: var(--midnight-muted) !important;
}
html body :is(.breadcrumb,.toc-panel,.toc-mobile,.story-section,.exam-seo-block,.free-article,.quick-answer,.hero-lead,.hero-free15,.popular-row,.site-foot,.article-foot) a:not(.button):not(.cta) {
  color: var(--midnight-ink) !important;
}
html body :is(.hero-art svg,.cover-art svg,.diagnostic-tiles a svg) { color: var(--midnight-gold); }
html body :is(.btn-bronze,.btn-buy,.offer-bar-cta,.offer-claim-btn,.free-set-start,.ftlp-mobile-primary,.ftlp-mobile-account-primary,
 .button:not(.button-secondary),.readiness-link) {
  background: var(--midnight-gold) !important;
  color: var(--midnight) !important;
  border-color: var(--midnight-gold) !important;
}
html body :is(.btn-try,.btn-outline,.button-secondary,.summary-box-actions .cta,.cta--secondary,.hp-faq-article) {
  background: var(--midnight-card) !important; border-color: var(--midnight-line) !important;
  color: var(--midnight-ink) !important;
}
html body :is(.code-pill,.free-set-pill,.badge,.visual-chip,.art-code,.exam-tag,.panel-count,.card-index,.feature-chip) {
  background: var(--midnight-card) !important; color: var(--midnight-ink) !important; border-color: var(--midnight-line) !important;
}
html body :is(.toc-panel,.toc-mobile) a[aria-current] {
  background: var(--midnight-card); border-inline-start-color: var(--midnight-gold);
  color: var(--midnight-ink);
}
html body :is(.score-table thead,.article-dd-item:hover,.article-links a:hover) { background: var(--midnight-surface); color: var(--midnight-ink); }
html body :is(.score-table,.article-links a,.guide-search-status) { color: var(--midnight-muted); }
html body .qbox :is(.opt:not(.correct):not(.wrong),.hint-box,.exp) {
  background: var(--midnight-surface); border-color: var(--midnight-line); color: var(--midnight-ink);
}
html body .qbox .opt.selected:not(.correct):not(.wrong) { background: #325573; border-color: var(--midnight-gold); }
html body :is(a,button,summary,input,select,textarea):focus-visible { outline-color: var(--midnight-focus) !important; }
@media (max-width: 920px) {
  html body.home .hero-grid { grid-template-columns: minmax(0,1fr); gap: 22px; }
  html body.home section.hero {
    background: linear-gradient(120deg,rgba(11,23,38,.89),rgba(11,23,38,.74)),
      url(img/site-bg-teachers-800.webp) center/cover no-repeat !important;
  }
}

/* Match the existing FAQ, search, and result surfaces to the dark palette. */
html body :is(.split-section,.step-item,.photo-caption,.faq-item,.sq li,.unlock-panel,
 .article-dropdown,#articleDropdown,.article-dd-item,.route-step,.hint-box,.exp) {
  background: var(--midnight-card) !important; border-color: var(--midnight-line) !important;
  color: var(--midnight-ink);
}
html body :is(.quick-row,.exam-intro-links,.sq-answer,.box,.hero,footer) a:not(.button):not(.cta),
html body :is(.sq-answer summary,.quick-answer strong,.prose li strong,.score-table caption,
 .report-score > strong,.report-footer > a,.article-dd-item strong) {
  color: var(--midnight-ink) !important;
}
html body :is(.report-score > span,.report-footer > span,.report-domain span,.article-dd-item small) {
  color: var(--midnight-muted) !important;
}
html body :is(.report-score > b,.report-domain > b) { color: #a7e0bc; }
html body .report-domain > b.review { color: var(--midnight-gold); }
html body .report-domain > b.focus { color: #ffb5b2; }
html body :is(#offerCardBadge,.offer-timer-card) {
  background: var(--midnight-card) !important; border-color: var(--midnight-line) !important;
  color: var(--midnight-ink) !important;
}
html body #offerCardBadge :is(span,#offerCardTimer) { color: var(--midnight-ink) !important; }
html body :is(.tabs .tab,.filter-btn,#clearArticleSearch,.btn.sec,.sq-answer,.sq li) {
  background: var(--midnight-card) !important; color: var(--midnight-ink) !important; border-color: var(--midnight-line) !important;
}
html body :is(.tabs .tab.active,.filter-btn.active,.guide-search .primary-go,
 .exam-card .btn:not(.sec),.qbox .btn:not(.sec),.free-result .btn:not(.sec)) {
  background: var(--midnight-gold) !important; border-color: var(--midnight-gold) !important;
  color: var(--midnight) !important;
}

html body.home .hero .hero-actions a.btn-bronze { color: var(--midnight) !important; }
html body :is(.photo-caption,footer) strong { color: var(--midnight-ink) !important; }
html body :is(.unlock-panel,.exam-card) p a { color: var(--midnight-ink); }

/* FTCE-015b: explicit foreground/background pairs within Midnight Academy. */
html body .page-shell .rules-list li,
html body .page-shell .rules-list li :is(p,strong,a) { color: var(--midnight-ink) !important; }
html body .page-shell .rules-list li > :is(span,.rule-number,.rule-num,.rule-index,.step-num) {
  background: var(--midnight-card);
  color: var(--midnight-gold) !important;
}
html body .page-shell .hero .eyebrow {
  background: var(--midnight-card) !important;
  color: var(--midnight-ink) !important;
  border-color: var(--midnight-line);
}
html body .page-shell .snapshot :is(b,span) { color: var(--midnight-ink) !important; }
html body .sq .sq-letter { color: var(--midnight-gold); }
html body .page-shell :is(.metric-card,.answer-card,.answer-hint) {
  background: var(--midnight-card) !important; border-color: var(--midnight-line) !important;
}
html body .page-shell :is(.metric-card,.answer-card,.answer-hint) :is(h3,p,strong,small,span) {
  color: var(--midnight-ink) !important;
}
html body .step-item .step-num {
  background: var(--midnight-gold) !important;
  color: var(--midnight) !important;
}
html body a[href^="mailto:"] { color: var(--midnight-ink); text-decoration-thickness: .07em; }

html body :is(.domain-card,.compare-card,.legal-nav a,#clearArticleSearch,#saveScoresForm) {
  background: var(--midnight-card) !important;
  border-color: var(--midnight-line) !important;
  color: var(--midnight-ink) !important;
}
html body :is(.route-step small,.domain-weight,.prose p strong,.faq-item p strong) {
  color: var(--midnight-ink) !important;
}
html body :is(.page-shell,#app) table :is(caption,thead th,tbody th,td) {
  color: var(--midnight-ink) !important;
  background: var(--midnight-surface) !important;
  border-color: var(--midnight-line) !important;
}
html body :is(.qbox .qstem,#app .qnav .qnum) { color: var(--midnight-ink) !important; }
html body #app .qnav .qnum {
  background: var(--midnight-card) !important;
  border-color: var(--midnight-line) !important;
}
html body #app .qnav .qnum.answered { border-color: #79c4a3 !important; }
html body #app .qnav .qnum.current {
  background: var(--midnight-gold) !important;
  border-color: var(--midnight-gold) !important;
  color: var(--midnight) !important;
}
html body #app .btn:disabled { opacity: 1; color: var(--midnight-muted) !important; }
html body #app :is(.review-good,.review-good strong) { color: #145535 !important; }
html body #app :is(.review-bad,.review-bad strong) { color: #842332 !important; }
html body #app :is(.review-neutral,.review-neutral strong) { color: #344657 !important; }

html body .page-shell .domain-weight {
  background: var(--midnight-surface) !important;
  color: var(--midnight-ink) !important;
  border-color: var(--midnight-line) !important;
}
html body .page-shell .compare-note,
html body #saveScoresForm label { color: var(--midnight-ink) !important; }

html body.reference-home {
  --midnight:#102233; --midnight-surface:#172f44; --midnight-card:#203a4e;
  --midnight-line:#526b7d; --midnight-ink:#fff9ef; --midnight-muted:#d5e0e6;
  --midnight-gold:#ff9854; --midnight-focus:#ffbc86;
}
/* FTCE-016: rounded sections and a shared, high-contrast accent. */
html body.home section.hero {
  background: linear-gradient(90deg,var(--midnight) 10%,var(--midnight-surface)) !important;
}
html body.home #how-it-works {
  background: var(--home-canvas,var(--midnight)) !important;
  padding-block: clamp(32px,6vw,80px);
}
html body.home #how-it-works .split-section {
  width: calc(100% - clamp(32px,7vw,88px));
  margin-inline: auto;
  padding: clamp(16px,3.5vw,42px);
  border: 1px solid var(--midnight-line);
  border-radius: clamp(18px,3vw,30px);
}
html body.home :is(.photo-frame,.hero-visual img) { border-radius: 22px; }
html body.home :is(.step-item,.product-card,.bundle-card,.diagnostic-tiles a,.hp-faq-item) { border-radius: 14px; }
html body.home .step-item { border-color: var(--theme-control-border,var(--midnight-line)) !important; }
html body.home .photo-caption { border-radius: 12px; font-size: 14px; }
html body.home :is(.step-item p,.diagnostic-tiles small,.hp-faq-item p) { font-size: max(14px,1em); }
html body.home #allAccessCard { border-color: var(--midnight-gold) !important; }
html body.home :is(.nav-cta,.ftlp-mobile-primary) {
  background: var(--midnight-gold) !important;
  border-color: var(--midnight-gold) !important;
  color: var(--midnight) !important;
}
html body.home :is(.nav-cta,.ftlp-mobile-primary):hover { text-decoration: underline; }
@media (max-width: 650px) {
  html body.home #how-it-works .split-section { gap: 22px; }
}

html body.home {
  --home-canvas:#f8f2e8;
  --home-panel:#fffaf1;
  --home-text:#14283a;
  --home-muted:#354653;
  --home-rule:#7b6c5c;
  --home-orange:#a64212;
  --theme-control-border:#887968;
}
html body.home :is(#diagnostics,#tracks,#ftce-faq,#promises,.readiness-showcase) {
  background:var(--home-canvas) !important;
  color:var(--home-text);
}
html body.home :is(#diagnostics,#tracks,#ftce-faq,#promises,.readiness-showcase,#how-it-works)
 :is(.wrap,.split-section,.trust-inner) {
  --ink:var(--home-text); --navy:var(--home-text); --deep:var(--home-text);
  --charcoal:var(--home-text); --forest:var(--home-text); --muted:var(--home-muted);
  --border:var(--home-rule); --line:var(--home-rule);
  color:var(--home-text);
}
html body.home :is(#diagnostics,#tracks,#ftce-faq,#promises,.readiness-showcase,#how-it-works)
 :is(h2,h3,h4,.hero-kicker,.section-kicker,.panel-kicker,.stat b,p,.price-tag span,.bundle-price span) {
  color:var(--home-text) !important;
}
html body.home :is(.diagnostic-tiles a,.product-card,.bundle-card,.promise-card,.hp-faq-item,.step-item) {
  background:var(--home-panel) !important;
  color:var(--home-text) !important;
  border-color:var(--home-rule) !important;
}
html body.home .diagnostic-tiles a svg { color:var(--home-orange); }
html body.home #how-it-works .split-section {
  border:0;
  border-block:1px solid var(--home-orange);
  border-radius:0;
  background:var(--home-canvas) !important;
}
html body.home #how-it-works .step-item:first-child { border-color:var(--home-orange) !important; }
html body.home :is(#allAccessCard,.readiness-report,.photo-caption) {
  background:var(--midnight-card) !important;
  color:var(--midnight-ink) !important;
  --ink:var(--midnight-ink); --muted:var(--midnight-muted);
  --navy:var(--midnight-ink); --charcoal:var(--midnight-ink);
}
html body.home :is(#allAccessCard,.readiness-report) :is(h2,h3,h4,p,.bundle-price span) {
  color:var(--midnight-ink) !important;
}
html body.home :is(.hp-faq-item,.hp-faq-links,#promises) a:not(.hp-faq-article) {
  color:var(--home-orange) !important;
}
html body.home :is(#diagnostics,#tracks,#ftce-faq,#promises,.readiness-showcase,#how-it-works)
 :is(a,button,summary,input,select):focus-visible { outline-color:var(--home-orange) !important; }


html body.home #diagnostics .quick-row a { color:var(--home-orange) !important; }
html body.home #ftce-faq .hp-faq-item,
html body.home #how-it-works .step-item,
html body.home #promises .promise-card,
html body.home #promises .split-section {
  background:var(--home-panel) !important;
  color:var(--home-text) !important;
}


html body.home #how-it-works .split-section { box-sizing:border-box; }
html body.home section.hero {
  background:linear-gradient(95deg,var(--midnight) 0%,color-mix(in srgb,var(--midnight) 91%,transparent) 55%,color-mix(in srgb,var(--midnight) 78%,transparent)),
    url(img/site-bg-teachers-1264.webp) center 46%/cover no-repeat !important;
}
@media (max-width:650px) {
  html body.home section.hero {
    background:linear-gradient(color-mix(in srgb,var(--midnight) 92%,transparent),var(--midnight)),
      url(img/site-bg-teachers-800.webp) center/cover no-repeat !important;
  }
}


/* FTCE-016C: reference-led home preview. */
html body.home.reference-home {
  --home-canvas:#f8f3eb;
  --home-panel:#fdf8ef;
  --home-text:#0d2032;
  --home-muted:#384957;
  --home-orange:#a83c0d;
  --midnight-gold:#ff853b;
  --reference-line:#b8ad9e;
  --reference-sage:#e5ecd1;
}
html body.reference-home header:has(>.nav) {
  background:#0c1e2d !important;
  border-bottom-color:#274359 !important;
  top:0;
}
html body.reference-home header > .nav {
  max-width:1280px; min-height:60px; padding-block:7px; position:relative;
}
html body.reference-home header .site-brand-compact {display:flex;align-items:center;gap:10px}
html body.reference-home header .site-brand-full {display:none}
html body.reference-home header .site-brand-icon {
  width:40px;height:32px;object-fit:contain;background:transparent;
}
html body.reference-home header .site-brand-title {
  font:700 clamp(16px,2.35vw,25px)/1 'Newsreader',Georgia,serif;
}
html body.reference-home :is(header .nav-links .nav-cta,header .ftlp-mobile-primary) {
  background:transparent !important;border-color:transparent !important;
  color:#fff9ee !important;box-shadow:none;padding-inline:10px;
}
html body.reference-home .desktop-menu {position:relative}
html body.reference-home .desktop-menu summary {
  display:grid;place-items:center;cursor:pointer;min-height:44px;min-width:44px;
  list-style:none;border:1px solid #728692;border-radius:10px;font-size:15px;
}
html body.reference-home .desktop-menu summary::-webkit-details-marker {display:none}
html body.reference-home .desktop-menu nav {
  position:absolute;right:0;top:calc(100% + 8px);min-width:224px;padding:6px;
  display:grid;background:#10283a;border:1px solid #61798b;border-radius:12px;
  box-shadow:0 10px 30px #0005;z-index:2;
}
html body.reference-home .desktop-menu:not([open]) nav {display:none}
html body.reference-home .desktop-menu nav a {display:flex;align-items:center;min-height:44px;padding:8px 12px}
html body.reference-home .desktop-menu nav a + a {border-top:1px solid #526779}
html body.reference-home .desktop-menu nav a:hover {background:#243f55;text-decoration:underline}
html body.reference-home section.hero {
  background:radial-gradient(ellipse at 68% 40%,#213d51,transparent 65%),#102638 !important;
  padding:clamp(26px,3vw,45px) 0;
}
html body.reference-home .hero-grid {
  max-width:1280px;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);gap:clamp(20px,4vw,58px);
}
html body.reference-home .hero h1 {
  font-size:clamp(39px,5.2vw,70px);line-height:.99;max-width:11ch;margin:0 0 20px;
  letter-spacing:-.036em;
}
html body.reference-home .hero h1 em {font-style:normal}
html body.reference-home .hero .hero-lead {max-width:38ch;font-size:clamp(16px,1.45vw,19px);line-height:1.45;margin:0 0 24px}
html body.reference-home .hero-actions {margin-bottom:0}
html body.reference-home .hero-actions a.btn-bronze {
  display:inline-flex;gap:14px;align-items:center;min-height:48px;
  border-radius:999px;font-size:18px;padding:10px 22px;box-shadow:none;
}
html body.reference-home .hero-visual img {border:0;border-radius:0;box-shadow:none}
html body.reference-home .hero-visual {display:flex;align-items:center}
html body.reference-home :is(#diagnostics,#how-it-works,#reference-pricing,#ftce-faq,#tracks,#promises,.readiness-showcase) {
  background:var(--home-canvas) !important;
}
html body.reference-home :is(#diagnostics,#how-it-works,#reference-pricing,#ftce-faq) > .wrap {max-width:1280px}
html body.reference-home #diagnostics .sec-head {justify-content:center;text-align:center}
html body.reference-home #diagnostics .sec-head h2 {margin:0 0 4px}
html body.reference-home #diagnostics .diagnostic-tiles {grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:19px}
html body.reference-home #diagnostics .diagnostic-tiles a {
  grid-template-columns:1fr auto;grid-template-rows:auto auto;gap:0 6px;
  border-radius:11px;border-color:var(--reference-line) !important;
  padding:10px 13px 9px;min-height:65px;background:var(--home-panel) !important;
}
html body.reference-home #diagnostics .diagnostic-tiles a:hover {border-color:var(--home-orange) !important}
html body.reference-home #diagnostics .diagnostic-tiles a > span {
  display:flex;align-items:center;gap:9px;font-size:15px;line-height:1.15;min-height:36px;
}
html body.reference-home #diagnostics .diagnostic-tiles .subject-mark {
  flex:0 0 36px;width:36px;height:36px;padding:3px;border-radius:50%;
  background:var(--reference-sage);color:#153930;
}
html body.reference-home #diagnostics .diagnostic-tiles small {margin-left:45px;font-size:13px;line-height:1.15}
html body.reference-home #how-it-works {padding:0}
html body.reference-home #how-it-works .split-section {
  width:calc(100% - 48px);padding:24px 0;margin-inline:auto;gap:clamp(22px,4vw,50px);
  border:0;border-block:1px solid var(--home-orange) !important;
  background:transparent !important;
}
html body.reference-home #how-it-works .photo-frame {box-shadow:none;border-radius:16px}
html body.reference-home #how-it-works .photo-caption {background:#112739 !important}
html body.reference-home #how-it-works .step-item {border-color:var(--reference-line) !important;padding:12px 14px}
html body.reference-home #how-it-works .step-item:first-child {border-color:var(--home-orange) !important}
html body.reference-home #how-it-works .step-item:not(:first-child) .step-num {background:#f4d9aa !important}
html body.reference-home #how-it-works .step-item p {font-size:15px;line-height:1.4}
html body.reference-home #reference-pricing {color:var(--home-text);padding:34px 0 22px}
html body.reference-home #reference-pricing .sec-head {justify-content:center;text-align:center}
html body.reference-home #reference-pricing .sec-head :is(h2,p) {color:var(--home-text) !important}
html body.reference-home #reference-pricing .bundle-grid {grid-template-columns:repeat(3,minmax(0,1fr));margin-top:16px}
html body.reference-home #reference-pricing .bundle-card {min-width:0;border-radius:14px;border-color:var(--reference-line) !important}
html body.reference-home #reference-pricing .bundle-card:not(#allAccessCard) :is(h3,p,.bundle-price strong,.bundle-price span) {
  color:var(--home-text) !important;
}
html body.reference-home #reference-pricing .bundle-card > div:last-child {
  display:flex;flex-wrap:wrap;align-items:center;gap:12px;
}
html body.reference-home #reference-pricing #allAccessCard {border:2px solid #df5b1b !important}
html body.reference-home #reference-pricing #offerBar {
  background:transparent !important;border:0 !important;color:var(--home-text) !important;
}
html body.reference-home #reference-pricing #offerBar :is(strong,del,.offer-bar-label,.offer-bar-countdown) {color:var(--home-text) !important}
html body.reference-home #ftce-faq {padding:18px 0 34px}
html body.reference-home #ftce-faq .hp-faq-grid {gap:8px}
html body.reference-home #ftce-faq .hp-faq-item {border-color:var(--reference-line) !important}
html body.reference-home .reference-resources {
  background:#f0e8dc;color:var(--home-text);padding:18px 0;
}
html body.reference-home .reference-resources .wrap {
 --charcoal:var(--home-text);--muted:var(--home-muted);--navy:var(--home-text);
}
html body.reference-home .reference-resources :is(p,.popular-row) {color:var(--home-text) !important}
html body.reference-home .reference-resources :is(p,.popular-row) a {color:var(--home-orange) !important;text-decoration:underline}
html body.reference-home .reference-resources .stat b {color:var(--home-text) !important}
html body.reference-home .reference-resources .rating-line {border-color:var(--reference-line);padding-top:14px}
@media (max-width:950px) {
  html body.reference-home #diagnostics .diagnostic-tiles {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:760px) {
  html body.reference-home .hero-grid {grid-template-columns:minmax(0,1fr);gap:22px}
  html body.reference-home .hero-visual {max-width:520px;margin-inline:auto}
  html body.reference-home #reference-pricing .bundle-grid {grid-template-columns:minmax(0,1fr)}
}
@media (max-width:650px) {
  html body.reference-home header > .nav {padding-inline:12px}
  html body.reference-home header .site-brand-icon {width:30px}
  html body.reference-home header .site-brand-title {max-width:100px}
  html body.reference-home #how-it-works .split-section {width:calc(100% - 32px)}
  html body.reference-home #diagnostics .diagnostic-tiles a {padding-inline:8px}
  html body.reference-home #diagnostics .diagnostic-tiles .subject-mark {flex-basis:29px;width:29px;height:29px}
  html body.reference-home #diagnostics .diagnostic-tiles small {margin-left:38px}
}


html body.reference-home :is(header > .nav,.hero-grid,#diagnostics > .wrap,#reference-pricing > .wrap,#ftce-faq > .wrap) {
  max-width:1200px;
}
html body.reference-home .hero h1 { font-size:clamp(38px,5.05vw,65px);max-width:14.1ch;margin-bottom:16px }
html body.reference-home .hero .hero-lead {max-width:50ch;margin-bottom:20px}
html body.reference-home #diagnostics,
html body.reference-home #how-it-works,
html body.reference-home #ftce-faq {border-block:0}
html body.reference-home #how-it-works .split-section {max-width:1152px}
html body.reference-home #reference-pricing .bundle-card {min-height:220px;padding:20px}
html body.reference-home #reference-pricing .bundle-card a.btn-buy {text-decoration:none}
html body.reference-home .reference-resources :is(.hero-kicker,.rating-line .stat) {color:var(--home-text) !important}
html body.reference-home #ftce-faq :is(.hp-faq-grid,.hp-faq-links) {max-width:none}


html body.reference-home .hero .reference-hero-break {display:none}
@media (min-width:1100px) {
  html body.reference-home .hero h1 {font-size:clamp(47px,4.35vw,56px);max-width:none}
  html body.reference-home .hero .reference-hero-break {display:revert}
}


/* FTCE-016D: navy diagnostic cards with rounded outline subject drawings. */
html body.reference-home #diagnostics {
  --diagnostic-section:#142737;
  --diagnostic-card:#1b3248;
  --diagnostic-ink:#f5f7fb;
  --diagnostic-muted:#d0deeb;
  --diagnostic-border:#426078;
  --diagnostic-icon:#b7d5e8;
  --diagnostic-focus:#ffbd92;
  background:var(--diagnostic-section) !important;
  color:var(--diagnostic-ink);
}
html body.reference-home #diagnostics > .wrap {
  --ink:var(--diagnostic-ink);--charcoal:var(--diagnostic-ink);--muted:var(--diagnostic-muted);
}
html body.reference-home #diagnostics .sec-head {justify-content:flex-start;text-align:start}
html body.reference-home #diagnostics .sec-head h2,
html body.reference-home #diagnostics .quick-row strong {
  color:var(--diagnostic-ink) !important;
}
html body.reference-home #diagnostics :is(.sec-head p,.quick-row,.diagnostic-tiles small) {
  color:var(--diagnostic-muted) !important;
}
html body.reference-home #diagnostics .diagnostic-tiles a {
  display:grid;align-content:start;align-items:start;gap:6px 8px;
  padding:clamp(14px,2.1vw,22px);min-height:138px;
  border-radius:14px;background:var(--diagnostic-card) !important;
  border-color:var(--diagnostic-border) !important;color:var(--diagnostic-ink) !important;
}
html body.reference-home #diagnostics .diagnostic-tiles a:hover {
  border-color:var(--diagnostic-icon) !important;
}
html body.reference-home #diagnostics .diagnostic-tiles a > span {
  display:grid;justify-items:start;gap:10px;
  font-size:clamp(16px,1.5vw,20px);line-height:1.2;
}
html body.reference-home #diagnostics .diagnostic-tiles .subject-mark {
  width:36px;height:36px;padding:6px;background:#243f57;color:var(--diagnostic-icon);
}
html body.reference-home #diagnostics .diagnostic-tiles small {margin:0;font-size:14px}
html body.reference-home #diagnostics .diagnostic-tiles a b {align-self:center}
html body.reference-home #diagnostics .quick-row a {
  color:var(--diagnostic-ink) !important;text-underline-offset:.18em;
}
html body.reference-home #diagnostics a:focus-visible {
  outline:2px solid var(--diagnostic-focus) !important;outline-offset:3px;
}
@media (max-width:650px) {
  html body.reference-home #diagnostics .diagnostic-tiles a {min-height:140px}
  html body.reference-home #diagnostics .diagnostic-tiles .subject-mark {width:34px;height:34px}
}


/* FTCE-016E: keep the open homepage menu inside the phone viewport. */
html body.reference-home header > .nav { flex-wrap:nowrap; }
html body.reference-home header > .nav > .site-brand {
  flex:0 1 auto;
  min-width:0;
  width:auto;
}
html body.reference-home header > .nav > .nav-links {
  flex:0 0 auto;
  width:auto;
  flex-wrap:nowrap;
  gap:8px;
}
html body.reference-home .desktop-menu summary:focus-visible,
html body.reference-home .desktop-menu nav a:focus-visible {
  outline:2px solid var(--midnight-focus) !important;
  outline-offset:2px;
}
html:has(body.reference-home) { scroll-padding-top:76px; }
@media (max-width:650px) {
  html body.reference-home header > .nav > .site-brand { flex:1 1 auto; }
  html body.reference-home .desktop-menu { position:static; }
  html body.reference-home .desktop-menu nav {
    inset-inline:12px;
    min-width:0;
    max-height:calc(100dvh - 76px);
    overflow-y:auto;
  }
  html body.reference-home header > .nav .nav-cta {
    max-width:none;
    white-space:nowrap;
    padding-inline:4px;
  }
}

/* FTCE-016F: Sign In and Sign Up in the header bar, outside the menu. */
html body .header-auth {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
html body .header-auth-signin,
html body .header-auth-signup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border-radius: 999px;
  font: 700 14px/1.1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
}
html body .header-auth-signin {
  background: transparent !important;
  border: 1px solid #9eb3c4;
  color: #fff9ef !important;
}
html body .header-auth-signin:hover { background: #243f55 !important; text-decoration: underline; }
html body .header-auth-signup {
  background: #efc982 !important;
  border: 1px solid #d7b36e;
  color: #0b1726 !important;
}
html body .header-auth-signup:hover { background: #f6d7a0 !important; }
html body .header-auth-signin:focus-visible,
html body .header-auth-signup:focus-visible {
  outline: 2px solid var(--midnight-focus) !important;
  outline-offset: 2px;
}
html body .cta-short { display: none; }
html body .nav-cta .cta-full { display: inline; }

/* Logo-only and simple headers become a single bar. */
html body header:has(> .header-auth),
html body header.site-brand-bar:has(.header-auth) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 60px;
  padding-inline: 16px;
  box-sizing: border-box;
  flex-wrap: nowrap;
}

/* Site-wide compact menu (same panel behavior as the homepage). */
html body .desktop-menu { position: relative; flex: 0 0 auto; }
html body .desktop-menu summary {
  display: grid;
  place-items: center;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  list-style: none;
  border: 1px solid #728692;
  border-radius: 10px;
  font-size: 15px;
  color: #fff9ef;
  box-sizing: border-box;
}
html body .desktop-menu summary::-webkit-details-marker { display: none; }
html body .desktop-menu nav {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 224px;
  padding: 6px;
  display: grid;
  background: #10283a;
  border: 1px solid #61798b;
  border-radius: 12px;
  box-shadow: 0 10px 30px #0005;
  z-index: 20;
}
html body .desktop-menu:not([open]) nav { display: none; }
html body .desktop-menu nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  color: #fff9ef !important;
  text-decoration: none;
}
html body .desktop-menu nav a + a { border-top: 1px solid #526779; }
html body .desktop-menu nav a:hover { background: #243f55; text-decoration: underline; }
html body .desktop-menu summary:focus-visible,
html body .desktop-menu nav a:focus-visible {
  outline: 2px solid var(--midnight-focus) !important;
  outline-offset: 2px;
}

/* Keep the header on one row on phones; shorten the practice-tests label. */
@media (max-width: 650px) {
  html body .cta-full { display: none !important; }
  html body .cta-short { display: inline !important; }
  html body :is(.topbar, .site-head, .site-head .site-nav, header > .nav, .site-brand-bar, header, .topbar-inner, .topnav, .header-actions) {
    flex-wrap: nowrap !important;
    align-items: center;
    max-width: 100%;
    box-sizing: border-box;
  }
  html body :is(.topbar-right, .topbar-nav, .nav-links, .header-actions) {
    display: flex !important;
    flex: 0 1 auto !important;
    flex-wrap: nowrap !important;
    width: auto !important;
    min-width: 0;
    max-width: none !important;
    gap: 6px;
    align-items: center;
  }
  html body :is(.topbar, .site-head .site-nav, header > .nav, header, .topbar-inner, .topnav) > .site-brand {
    flex: 0 1 auto;
    min-width: 0;
  }
  html body :is(.topbar, .site-head, header, .site-brand-bar) .site-brand-title {
    display: none;
  }
  html body .header-auth { gap: 4px; }
  html body .header-auth-signin,
  html body .header-auth-signup {
    padding: 0 8px;
    font-size: 13px;
  }
  html body .nav-cta {
    white-space: nowrap;
    padding-inline: 8px;
  }
  html body .desktop-menu { position: static; }
  html body .desktop-menu nav {
    inset-inline: 12px;
    right: auto;
    min-width: 0;
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
  }
}

html body .header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

/* FTCE-016F follow-up: keep both auth buttons visible and readable. */
html body .header-auth,
html body .header-auth a {
  flex: 0 0 auto;
}
html body .header-auth a.header-auth-signin,
html body .header-auth a.header-auth-signup,
html body .nav-links .header-auth a,
html body .topbar-nav .header-auth a,
html body .topbar-right .header-auth a,
html body .nav-links a.header-auth-signin,
html body .nav-links a.header-auth-signup {
  display: inline-flex !important;
}
html body .header-auth a.header-auth-signup,
html body :is(.nav-links,.topbar-nav,.topbar-right) a.header-auth-signup {
  color: #0b1726 !important;
}
html body a.nav-cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  box-sizing: border-box;
  flex: 0 0 auto;
}
html body header:has(> .header-auth) {
  padding-block: 8px;
}
html body.hub .topbar { background: var(--midnight-surface) !important; }
html body.hub .topnav {
  flex-wrap: nowrap !important;
  min-height: 60px;
  padding-block: 6px;
  gap: 8px;
  align-items: center;
}
html body.hub .desktop-menu,
html body.hub .desktop-menu summary {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  background: transparent !important;
  box-shadow: none;
}
@media (max-width: 650px) {
  html body.hub .topnav,
  html body.hub footer { flex-wrap: nowrap !important; }
  html body :is(.nav-links,.site-nav) .header-auth a:nth-child(2) {
    display: inline-flex !important;
  }
}

html body .desktop-menu nav a,
html body .desktop-menu nav a:nth-child(2),
html body .nav-links .desktop-menu nav a {
  display: flex !important;
  white-space: normal;
  width: 100%;
  box-sizing: border-box;
}

/* FTCE-016G: contrast fixes (text fits its surface) + full-viewport teacher-photo background. */
/* 1. Teacher-photo background: the existing approved photo layer (body::before, fixed) was hidden
   behind the opaque body background and was only enabled on .page-shell article pages.
   Make the body transparent and enable the same photo + same approved dark wash everywhere. */
html:root body { background: transparent !important; }
html:root body::before {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: -1 !important;
  pointer-events: none;
  background: linear-gradient(#0b1726c9, #0b1726e6), url(img/site-bg-teachers-1264.webp) center/cover no-repeat !important;
  opacity: 1 !important;
  height: auto !important;
  bottom: 0 !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}
@media (max-width: 820px) {
  html:root body::before {
    background: linear-gradient(#0b1726c9, #0b1726e6), url(img/site-bg-teachers-800.webp) center/cover no-repeat !important;
  }
}

/* 2. Sidebar table of contents: active item is a pale pill; make its text dark. */
html:root body .page-shell :is(.toc-panel, .toc-mobile) a[aria-current],
html:root body .page-shell :is(.toc-panel, .toc-mobile) a[aria-current] span {
  color: #102233 !important;
}

/* 3. Light content cards on the ftce-login / pearson-materials template (main.wrap > article > section.section). */
html:root body main.wrap > article > section.section,
html:root body main.wrap > article > header.hero .official {
  --ink: #193044; --navy: #123b55; --muted: #3f5363; --deep: #123b55;
}
html:root body main.wrap > article > section.section :is(h2, h3, h4, li, strong, b),
html:root body main.wrap > article > header.hero .official :is(strong, b) {
  color: #123b55 !important;
}
html:root body main.wrap > article > section.section :is(p, .source, .note),
html:root body main.wrap > article > header.hero .official {
  color: #2c4150 !important;
}
html:root body main.wrap > article > section.section a:not(.button),
html:root body main.wrap > article > header.hero .official a {
  color: #0b4a63 !important;
}
/* FAQ items inside the light card are a navy block: lighten their text/links and pad them. */
html:root body main.wrap > article > section.section .faq-item {
  padding: 14px 18px !important;
  border-radius: 12px;
}
html:root body main.wrap > article > section.section .faq-item :is(h3, p, strong) {
  color: #edf2f8 !important;
}
html:root body main.wrap > article > section.section .faq-item a {
  color: #efc982 !important;
}
/* Inner cards inside the light sections (pearson materials) are light too. */
html:root body main.wrap > article > section.section .card :is(h3, p) { color: #123b55 !important; }
html:root body main.wrap > article > section.section .card p { color: #2c4150 !important; }
/* Breadcrumb on the dark page background. */
html:root body main.wrap > nav.crumb { color: #c4d3e3 !important; }
html:root body main.wrap > nav.crumb a { color: #efc982 !important; }

/* 4. Reference cards (white) in cheat-sheet / reference articles: dark text. */
html:root body .reference-card :is(h3, p, li, strong, small, mtext, math) { color: #123b55 !important; }
html:root body .reference-card p { color: #2c4150 !important; }
html:root body .reference-card a { color: #0b4a63 !important; }

/* 5. Practice-cover notes. The light note box gets dark text; links on the dark cover get gold. */
html:root body .practice-cover .cover-notes :is(p, a) { color: #c4d3e3 !important; }
html:root body .practice-cover .cover-notes a { color: #efc982 !important; }
html:root body .practice-cover .cover-notes p.free-set-note.free-factnote,
html:root body .practice-cover .cover-notes p.free-set-note.free-factnote a { color: #2c4150 !important; }
html:root body .practice-cover .cover-notes p.free-set-note.free-factnote a { color: #0b4a63 !important; }

/* 6. Hero "last updated" time on dark hero. */
html:root body.page-strategy header.hero time { color: #c4d3e3 !important; }

/* 7. Exam SEO callout (light). */
html:root body .exam-seo-callout, html:root body .exam-seo-callout strong { color: #2c4150 !important; }
html:root body .exam-seo-callout a { color: #0b4a63 !important; }

/* 8. Free practice tests hub (body.hub). */
html:root body.hub .hero-actions > a.button { color: #102233 !important; }
html:root body.hub .hero-actions > a:not(.button),
html:root body.hub .card-actions > a:not(.button),
html:root body.hub p.section-intro a,
html:root body.hub ol.steps a,
html:root body.hub section > ul > li > a { color: #efc982 !important; }
html:root body.hub ul.resources a { color: #123b55 !important; }
html:root body.hub .comparison-table tbody :is(th, td, strong, a) { color: #123b55 !important; }
html:root body.hub #question-review :is(h2, p, strong) { color: #123b55 !important; }
html:root body.hub #question-review a { color: #0b4a63 !important; }
html:root body.hub section#faq details :is(summary, p, strong),
html:root body.hub section.buyer-faq :is(h2, p, strong) { color: #123b55 !important; }
html:root body.hub section#faq details a,
html:root body.hub section.buyer-faq a { color: #0b4a63 !important; }

/* 9. Math study guide tables: dark strong on dark card -> light. */
html:root body .page-shell .prose table td strong { color: #edf2f8 !important; }

/* 10. Sign-in card (white). */
html:root body .wrap > .card form :is(h1, p.sub) { color: #123b55 !important; }
html:root body .wrap > .card form p.sub { color: #2c4150 !important; }

/* 11. Legal pages: dark text/links on dark background -> light; light refund box -> dark text. */
html:root body main > :is(ul, ol) li, html:root body main > :is(ul, ol) li strong { color: #c4d3e3 !important; }
html:root body main > p > a { color: #efc982 !important; }
html:root body main > p.refund, html:root body main > p.refund strong { color: #2c4150 !important; }

/* 12. Student stats (light cards). */
html:root body #subNote { color: #c4d3e3 !important; }
html:root body .card.card-dark #attemptsBadge { color: #efc982 !important; }
html:root body .card:not(.card-dark) .card-title,
html:root body .card:not(.card-dark) .card-title span,
html:root body .lesson-item, html:root body .lesson-item strong,
html:root body .mod .mod-top b { color: #123b55 !important; }

/* 13. Wrong-answers page (light tabs / empty state). */
html:root body #testTabs.test-tabs, html:root body #testTabs.test-tabs > span { color: #2c4150 !important; }
html:root body #testTabs .test-btn { color: #123b55 !important; }
html:root body #testTabs .test-btn.active { background: #14273a !important; color: #edf2f8 !important; }
html:root body .btn-sm { color: #123b55 !important; }
html:root body #list .empty, html:root body #list .empty :is(strong, p) { color: #2c4150 !important; }

/* 016G follow-up: beat the (0,2,2) Midnight paragraph/link rules with doubled classes. */
html:root body p.exam-seo-callout.exam-seo-callout, html:root body p.exam-seo-callout.exam-seo-callout strong { color: #2c4150 !important; }
html:root body p.exam-seo-callout.exam-seo-callout a.exam-seo-callout, html:root body p.exam-seo-callout.exam-seo-callout a { color: #0b4a63 !important; }
