/* TDNSC V32 — one vivid colour per section. No pastel cards or tinted page backgrounds.
   Brand remains electric blue/navy/white; category colours are intentionally saturated.
   Yellow/orange use navy text for legibility. All source files stay unchanged. */
:root {--td-navy:#071B4D;--td-blue:#087EFF;--td-purple:#7127C9;--td-yellow:#FFD000;--td-green:#16803D;--td-pink:#CF196F;--td-orange:#F36B13}
html[data-tdnsc-theme="home"],html[data-tdnsc-theme="blue"]{--page-accent:#087EFF;--page-accent-strong:#0055BB;--page-foreground:#FFFFFF;--page-link:#0053B5;--page-shadow:rgba(0,98,216,.16)}
html[data-tdnsc-theme="purple"]{--page-accent:#7127C9;--page-accent-strong:#572098;--page-foreground:#FFFFFF;--page-link:#6223AB;--page-shadow:rgba(112,39,202,.16)}
html[data-tdnsc-theme="yellow"]{--page-accent:#FFD000;--page-accent-strong:#9A5B00;--page-foreground:#071B4D;--page-link:#805000;--page-shadow:rgba(190,125,0,.18)}
html[data-tdnsc-theme="green"]{--page-accent:#16803D;--page-accent-strong:#0D652B;--page-foreground:#FFFFFF;--page-link:#126630;--page-shadow:rgba(5,113,48,.16)}
html[data-tdnsc-theme="pink"]{--page-accent:#CF196F;--page-accent-strong:#A41656;--page-foreground:#FFFFFF;--page-link:#A8195B;--page-shadow:rgba(207,25,111,.16)}
html[data-tdnsc-theme="orange"]{--page-accent:#F36B13;--page-accent-strong:#9C3D00;--page-foreground:#071B4D;--page-link:#A33F00;--page-shadow:rgba(204,86,0,.18)}
/* The colour band and hero border make the selected colour immediately identifiable. */
html[data-tdnsc-theme]:not([data-tdnsc-theme="home"]) body {background:#FFFFFF!important;color:#071B4D!important}
html[data-tdnsc-theme]:not([data-tdnsc-theme="home"]) body::before {content:"";position:relative;display:block;height:7px;width:100%;background:var(--page-accent);z-index:6}
html[data-tdnsc-theme]:not([data-tdnsc-theme="home"]) :is(.hero,.mcq-hero,.exam-hero,.v21-page-heading,.buy-panel,.tdnsc-paid-hero){background:#FFFFFF!important;border:2px solid var(--page-accent)!important;border-top:7px solid var(--page-accent)!important;border-radius:23px!important;box-shadow:0 9px 25px var(--page-shadow)!important;color:#071B4D!important}
html[data-tdnsc-theme]:not([data-tdnsc-theme="home"]) :is(.exam-hero h1,.exam-subheadline,.exam-lead){color:#071B4D!important}
html[data-tdnsc-theme]:not([data-tdnsc-theme="home"]) :is(.exam-hero h1 span,.exam-subheadline strong){color:var(--page-link)!important}
html[data-tdnsc-theme]:not([data-tdnsc-theme="home"]) :is(.exam-qualification-banner,.v21-banner,.tdnsc-level3-banner){background:var(--page-accent)!important;color:var(--page-foreground)!important;border-color:var(--page-accent)!important}
html[data-tdnsc-theme]:not([data-tdnsc-theme="home"]) :is(.exam-qualification-banner strong,.v21-banner strong,.tdnsc-level3-banner strong){color:var(--page-foreground)!important}
html[data-tdnsc-theme]:not([data-tdnsc-theme="home"]) :is(.badge,.pill,.chip,.exam-number,.exam-eyebrow,.quiz-options button span){background:var(--page-accent)!important;color:var(--page-foreground)!important;border-color:var(--page-accent)!important}
html[data-tdnsc-theme]:not([data-tdnsc-theme="home"]) :is(.card,.resource-card,.unit-card,.mcq-option,.exam-panel,.exam-quick-nav a,.v21-surface,.panel,.source-card,.exam-tips details,.exam-checklist label,.list a){background:#FFFFFF!important;border-color:var(--page-accent)!important}
html[data-tdnsc-theme]:not([data-tdnsc-theme="home"]) :is(.btn:not(.secondary),.action:not(.alt),.exam-action,.exam-hero-cta,.quiz-start button,.buy-button,.btn-primary,.mcq-action,.v21-button-primary){background:var(--page-accent)!important;border-color:var(--page-accent)!important;color:var(--page-foreground)!important}
html[data-tdnsc-theme]:not([data-tdnsc-theme="home"]) :is(.btn.secondary,.action.alt,.exam-outline-action){background:#FFFFFF!important;border:2px solid var(--page-accent)!important;color:var(--page-link)!important}
html[data-tdnsc-theme]:not([data-tdnsc-theme="home"]) :is(.list a,.mcq-back,.exam-footer a,.v21-breadcrumb){color:var(--page-link)!important}
html[data-tdnsc-theme]:not([data-tdnsc-theme="home"]) :is(.exam-checklist input,input[type=checkbox],.quiz-track span){accent-color:var(--page-accent)!important}
html[data-tdnsc-theme]:not([data-tdnsc-theme="home"]) .quiz-track span{background:var(--page-accent)!important}
html[data-tdnsc-theme]:not([data-tdnsc-theme="home"]) .tdnsc-source-note{border-color:var(--page-accent)!important;background:#FFFFFF!important}
html[data-tdnsc-theme]:not([data-tdnsc-theme="home"]) .tdnsc-source-note a{color:var(--page-link)!important}
/* Yellow and orange are vivid design accents, never a low-contrast white-on-yellow button. */
html[data-tdnsc-theme="yellow"] :is(.exam-hero-stats span,.exam-hero-cta,.exam-action,.exam-number,.exam-bank-controls button[aria-pressed=true]){color:#071B4D!important}
html[data-tdnsc-theme="yellow"] .exam-bank-controls button[aria-pressed=true], html[data-tdnsc-theme="yellow"] .exam-plan-buttons button[aria-pressed=true]{background:#FFD000!important;border-color:#FFD000!important;color:#071B4D!important}
html[data-tdnsc-theme="orange"] :is(button.btn,.action,.exam-number){color:#071B4D!important}
/* Functional learning area: change section theme without changing quiz data or paid-access checks. */
html[data-tdnsc-theme] .topbar,html[data-tdnsc-theme] .sidebar{background:#FFFFFF!important;border-color:var(--page-accent)!important}
html[data-tdnsc-theme] :is(.toplinks .current,.sidebar-link.selected,.mobile-link.current,.btn-primary,.unit-no,.resource-icon){background:var(--page-accent)!important;color:var(--page-foreground)!important;border-color:var(--page-accent)!important}
html[data-tdnsc-theme] .meter>span {background:var(--page-accent)!important}
html[data-tdnsc-theme] :is(.toplinks .current,.sidebar-link.selected) {border-radius:12px!important}
html[data-tdnsc-theme="yellow"] :is(.toplinks .current,.sidebar-link.selected,.mobile-link.current){color:#071B4D!important}
/* Each homepage category corresponds to its destination page; large white tiles, vivid icon blocks. */
#home .revision-menu-list>.revision-menu-button:nth-child(1){--accent:#CF196F;--accent-fg:#fff}
#home .revision-menu-list>.revision-menu-button:nth-child(2){--accent:#7127C9;--accent-fg:#fff}
#home .revision-menu-list>.revision-menu-button:nth-child(3){--accent:#FFD000;--accent-fg:#071B4D}
#home .revision-menu-list>.revision-menu-button:nth-child(4){--accent:#087EFF;--accent-fg:#fff}
#home .revision-menu-list>.revision-menu-button:nth-child(5){--accent:#F36B13;--accent-fg:#071B4D}
#home .revision-menu-list>.revision-menu-button:nth-child(6){--accent:#16803D;--accent-fg:#fff}
#home .revision-menu-list>.revision-menu-button:nth-child(7){--accent:#CF196F;--accent-fg:#fff}
#home .revision-menu-list>.revision-menu-button:nth-child(n){background:#FFFFFF!important;border:2px solid var(--accent)!important;border-left:7px solid var(--accent)!important;box-shadow:0 5px 17px rgba(7,27,77,.075)!important}
#home .revision-menu-list>.revision-menu-button:nth-child(n) .revision-menu-icon{background:var(--accent)!important;color:var(--accent-fg)!important;border-color:var(--accent)!important}
#home .revision-menu-list>.revision-menu-button:nth-child(n) .revision-menu-arrow{background:var(--accent)!important;color:var(--accent-fg)!important}
#home .revision-menu-list>.revision-menu-button:nth-child(n) .revision-menu-copy strong{color:#071B4D!important}
#home .revision-menu-list>.revision-menu-button:nth-child(n) .revision-menu-copy small{color:#294866!important}
/* Focus indication, stable legibility, low sensory load, print-friendly. */
html[data-tdnsc-theme] :is(button,a,input,select,summary):focus-visible{outline:3px solid #071B4D!important;outline-offset:3px!important}
@media(prefers-reduced-motion:reduce){html[data-tdnsc-theme] *,html[data-tdnsc-theme] *::before,html[data-tdnsc-theme] *::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media print{html[data-tdnsc-theme] body::before{display:none!important}html[data-tdnsc-theme] .hero{box-shadow:none!important}}

/* MCQ starter CTA now uses pink to match its destination while Exam Prep and the logo retain TDNSC electric blue. */
#home .v28-hero-actions a.v28-mcq-secondary{border-color:#CF196F!important;color:#9E1455!important;background:#FFFFFF!important}
#home .v28-hero-actions a.v28-mcq-secondary .v28-cta-arrow{background:#CF196F!important;color:#FFFFFF!important}
#home .v28-hero-actions a.v28-mcq-secondary:hover{border-color:#9E1455!important}
