/* The footer control is shared by all content pages; quiz sessions inherit appearance. */
:root{color-scheme:light}
.footer-utilities{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:14px;margin-left:auto}
.theme-control{display:inline-flex;align-items:center;gap:3px;padding:4px;border:1px solid #e2e8e8;border-radius:13px;background:#f8fafa;max-width:100%}
.theme-choice{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid transparent;border-radius:9px;background:transparent;color:#617171;font:600 14px/1.5 'DM Sans','Noto Sans SC',sans-serif;padding:7px 9px;min-height:38px;cursor:pointer;white-space:nowrap;margin:0}
.theme-choice svg{width:17px;height:17px;flex:none}.theme-choice:hover{color:#b8252f;background:#fff}.theme-choice[aria-pressed="true"]{background:#fff;color:#b8252f;border-color:#e2e8e8;box-shadow:0 2px 0 #e2e8e8}.theme-choice:focus-visible{outline:3px solid #5579cf;outline-offset:3px}
@media(max-width:767px){.footer-utilities{width:100%;justify-content:space-between;margin-left:0;gap:15px}.footer-bottom .footer-utilities .live-visitors{margin-left:0}.theme-choice{padding:7px 8px}.theme-control{flex:none}}
:root[data-theme="dark"]{color-scheme:dark;--ink:#eef3f4;--muted:#b2bfc4;--paper:#11181d;--border:#3b4b53;--surface:#192329;--surface-soft:#202d34;--teal:#b5aaff;--teal-dark:#c3baff;--teal-light:#29273c;--olive:#b8a0dc;--ochre:#ff8d98;--neutral-shadow:#32414a;--d-bg:#11181d;--d-panel:#192329;--d-raised:#202d34;--d-text:#eef3f4;--d-muted:#b2bfc4;--d-border:#3b4b53;--d-red:#ff8d98;--d-red-soft:#322128;--d-purple:#c3baff;--d-purple-soft:#27283b;--d-gold:#e9cb8c;--d-gold-soft:#302b20}
:root[data-theme="dark"] body{background:var(--d-bg);color:var(--d-text)}
:root[data-theme="dark"] :is(h1,h2,h3,h4){color:var(--d-text)}
:root[data-theme="dark"] :is(p,.muted,.english-primary,.chinese-assist,.landing-description,.landing-assurances,.feature-caption,.coverage-note,.stats-scope,.portal-note,.chapter-selection-note,.preview-progress,.quiz-meta,.progress-count,.footer-brand-caption,.footer-contact,.footer-notices p,.footer-bottom,.footer-brand-block>p,.sidebar-companion,.about-art-caption,.about-art-note,.province-name,.province-back,.national-independence,.empty-history){color:var(--d-muted)}
:root[data-theme="dark"] :is(a,.text-action,.back-link,.moving-back,.about-text-link,.footer-contact a,.footer-link-group a,.about-source-links a,.guide-rule-source a,.guide-rule-links a,.feedback-source){color:var(--d-red)}
:root[data-theme="dark"] :is(.app-sidebar,.header,.quiz-bottom){background:var(--d-bg);border-color:#29373e;box-shadow:none}
:root[data-theme="dark"] :is(.brand,.footer-brand,.bootstrap-brand span,.side-link,.workspace-title,.language,.question-category,.question-tag){color:var(--d-text)}
:root[data-theme="dark"] :is(.brand-en,.eyebrow,.landing-badge,.chapter-number,.bank-question-number,.practice-number,.about-facts strong,.about-province-code,.chapter-card>span:first-child){color:var(--d-red)}
:root[data-theme="dark"] .side-link:hover{background:var(--d-panel)}
:root[data-theme="dark"] .side-link.active{background:var(--d-red-soft);color:var(--d-red);border-color:#63323d;box-shadow:0 3px 0 #422730}
:root[data-theme="dark"] :is(.language,.sidebar-language a.language,.button.secondary,.carousel-arrow,.map-toggle){background:var(--d-panel);border-color:var(--d-border);color:var(--d-text);box-shadow:0 3px 0 #2e3c44}
:root[data-theme="dark"] :is(.language:hover,.button.secondary:hover,.carousel-arrow:hover){background:var(--d-raised)}
:root[data-theme="dark"] :is(.button.primary,.landing-actions>.button,.landing-final>.button){background:#f55861;color:#171b20;border-color:#f55861;box-shadow:0 4px 0 #9e303d}
:root[data-theme="dark"] :is(.button.primary:hover,.landing-actions>.button:hover,.landing-final>.button:hover){background:#ff7981;border-color:#ff7981;color:#171b20}
:root[data-theme="dark"] .button:disabled{background:#28343a;border-color:#3c4a52;color:#95a5ad;box-shadow:0 3px 0 #263239;transform:none}
:root[data-theme="dark"] :is(.product-preview,.preview-question,.preview-choice,.chapter-card,.chapter-select-trigger,.chapter-options-panel,.bank-question,.bank-answer>div,.profile-chapters,.profile-history,.profile-stats article,.about-province-list>a,.moving-detail,.moving-prep,.moving-source,.moving-related,.guide-table-scroll,.province-resource-grid article){background:var(--d-panel);border-color:var(--d-border);box-shadow:0 3px 0 #2c3a42;color:var(--d-text)}
:root[data-theme="dark"] :is(.preview-chrome,.preview-address,.preview-stats,.preview-progress,.preview-bottom,.coverage-strip,.chapter-picker,.bank-sources,.about-method,.about-independence,.about-transparency,.licensing-official,.moving-checklist,.moving-faq,.guide-rule-table tbody th,.national-method,.province-coming){background:var(--d-panel);border-color:var(--d-border);color:var(--d-muted)}
:root[data-theme="dark"] :is(.preview-choice,.choice) :is(.english-primary,.chinese-assist){color:inherit}
:root[data-theme="dark"] :is(.preview-category,.preview-letter,.feature-icon,.feature-index,.resume-icon,.history-icon,.local-badge,.chapter-select-icon){background:var(--d-purple-soft);color:var(--d-purple)}
:root[data-theme="dark"] :is(.preview-count,.choice-key,.chapter-option-number){background:var(--d-raised);border-color:var(--d-border);color:var(--d-text)}
:root[data-theme="dark"] :is(.landing-badge,.live-demo-tag,.finish-badge,.practice-hero,.landing-final,.about-final-cta,.about-hero-art,.about-values article,.about-principles>article,.feature-card.feature-0,.moving-card-0,.province-card,.province-code){background:var(--d-red-soft);border-color:#55313b;box-shadow:0 4px 0 #3d2931;color:var(--d-text)}
:root[data-theme="dark"] :is(.feature-card.feature-1,.feature-card.feature-3,.about-values article:nth-child(2),.about-principles>article:nth-child(2),.roadmap-section,.resume-card,.moving-card-1,.province-ontario){background:var(--d-purple-soft);border-color:#43405d;box-shadow:0 4px 0 #343148;color:var(--d-text)}
:root[data-theme="dark"] :is(.feature-card.feature-2,.about-values article:nth-child(3),.about-principles>article:nth-child(3),.buddy-bubble,.about-art-note,.guide-rule-note,.moving-card-2,.province-alberta){background:var(--d-gold-soft);border-color:#5a4b32;box-shadow:0 3px 0 #423a2a;color:var(--d-gold)}
:root[data-theme="dark"] :is(.feature-card,.moving-card,.steps article){color:var(--d-text)}
:root[data-theme="dark"] :is(.feature-card h3,.about-editorial h3,.about-editorial h2,.about-province-list strong,.moving-detail-header h2,.chapter-selected-copy strong,.chapter-option-title,.bank-chapter-heading h2,.guide-rule-section h2){color:var(--d-text)}
:root[data-theme="dark"] :is(.feature-card p,.feature-card>p,.about-editorial p,.about-art-caption,.chapter-selected-copy small,.chapter-card>span:last-child,.chapter-option-count,.chapter-menu-heading,.profile-heading p,.history-icon+p,.moving-detail-grid p,.moving-step-icon+p,.moving-related p,.moving-card p,.guide-rule-list li,.guide-rule-source,.guide-rule-table td,.guide-rule-table tbody th){color:var(--d-muted)}
:root[data-theme="dark"] :is(.chapter-option,.bank-filter,.licensing-step,.moving-tab){background:var(--d-panel);border-color:var(--d-border);color:var(--d-muted);box-shadow:none}
:root[data-theme="dark"] :is(.chapter-option:hover,.chapter-option[aria-selected="true"],.bank-filter.active,.licensing-step.is-current,.moving-tab.is-active){background:var(--d-red-soft);color:var(--d-red);border-color:#8a4353}
:root[data-theme="dark"] :is(.chapter-option-check,.chapter-option[aria-selected="true"] .chapter-option-number){color:var(--d-red)}
:root[data-theme="dark"] :is(.chapter-option:disabled,.chapter-card.coming){background:#151d22;color:#89999f;border-color:#2c3a42}
:root[data-theme="dark"] :is(.licensing-step-label,.moving-tab small,.chapter-option small){color:inherit}
:root[data-theme="dark"] :is(.guide-rule-table thead th,.practice-tag,.about-province-code,.question-category>.icon){background:var(--d-red-soft);border-color:#56353f;color:var(--d-red)}
:root[data-theme="dark"] :is(.guide-rule-section,.guide-rule-table td,.guide-rule-table th,.about-source-links,.about-facts,.about-facts>div+div,.about-data-grid article,.faq-item,.footer,.footer-bottom,.footer-notices,.feature-caption,.chapter-menu-heading){border-color:#35434b}
:root[data-theme="dark"] .bank-filters{background:var(--d-bg)}
:root[data-theme="dark"] :is(.bank-filter span,.bank-chapter-heading>span,.profile-avatar,.about-value-icon,.moving-card-icon,.moving-step-icon){background:var(--d-red-soft);color:var(--d-red);border-color:#5b3540}
:root[data-theme="dark"] :is(.progress-track,.bootstrap-track,progress,.licensing-step-bar){background:#303f47}
:root[data-theme="dark"] .choice{background:var(--d-panel);border-color:var(--d-border);color:var(--d-text);box-shadow:0 3px 0 #2c3a42}
:root[data-theme="dark"] .choice:hover{background:var(--d-raised);border-color:#71838e}
:root[data-theme="dark"] :is(.choice.selected,.choice.is-selected){background:#1e304c;border-color:#76aaff;color:#d6e7ff;box-shadow:0 3px 0 #426597}
:root[data-theme="dark"] .choice.selected .choice-key{background:#76aaff;color:#14233b;border-color:#76aaff}
:root[data-theme="dark"] :is(.choice.correct,.preview-choice.is-correct){background:#172d29;border-color:#75c5a7;color:#b3ead6;box-shadow:0 3px 0 #38675a}
:root[data-theme="dark"] :is(.choice.correct .choice-key,.preview-choice.is-correct .preview-letter){background:#75c5a7;color:#14241f;border-color:#75c5a7}
:root[data-theme="dark"] :is(.choice.wrong,.choice.incorrect,.preview-choice.is-incorrect){background:#372329;border-color:#f18a97;color:#ffc1c9;box-shadow:0 3px 0 #813e4c}
:root[data-theme="dark"] :is(.choice.wrong .choice-key,.choice.incorrect .choice-key,.preview-choice.is-incorrect .preview-letter){background:#f18a97;color:#321d23;border-color:#f18a97}
:root[data-theme="dark"] :is(.answer-feedback,.answer-feedback.right,.answer-feedback.wrong,.preview-feedback.correct,.preview-feedback.incorrect,.feedback-details,.compact-feedback){background:#1e292f;border-color:#40525c;color:var(--d-text);box-shadow:none}
:root[data-theme="dark"] :is(.answer-feedback.right .feedback-heading,.preview-feedback.correct strong){color:#b3ead6}
:root[data-theme="dark"] :is(.answer-feedback.wrong .feedback-heading,.preview-feedback.incorrect strong,.review-status.wrong){color:#ffb0bc}
:root[data-theme="dark"] :is(.review-item,.result-stats>div,.last-result,.steps article,.reference-document,.reference-list li){background:var(--d-panel);border-color:var(--d-border);color:var(--d-text);box-shadow:none}
:root[data-theme="dark"] :is(.review-item.review-wrong,.review-wrong){border-color:#75404d}
:root[data-theme="dark"] :is(.footer-link-group h2,.footer-brand-block strong,.footer-brand,.bootstrap-brand span){color:var(--d-text)}
:root[data-theme="dark"] :is(.footer-link-group a,.footer-contact a,.footer-contact,.footer-brand-block>p,.footer-brand-caption,.footer-notices p,.footer-bottom){color:var(--d-muted)}
:root[data-theme="dark"] :is(.footer-link-group a:hover,.footer-contact a:hover){color:var(--d-red)}
:root[data-theme="dark"] :is(.live-visitors,.theme-control){background:var(--d-panel);border-color:var(--d-border);color:var(--d-muted)}
:root[data-theme="dark"] .live-visitors.is-live{color:var(--d-text)}
:root[data-theme="dark"] .theme-choice{color:var(--d-muted)}
:root[data-theme="dark"] :is(.theme-choice:hover,.theme-choice[aria-pressed="true"]){background:var(--d-raised);color:var(--d-red);border-color:var(--d-border);box-shadow:0 2px 0 #2e3c44}
:root[data-theme="dark"] dialog{background:var(--d-panel);color:var(--d-text);border-color:var(--d-border)}
:root[data-theme="dark"] dialog::backdrop{background:#0009}
:root[data-theme="dark"] :is(input,select,textarea){background:var(--d-panel);color:var(--d-text);border-color:var(--d-border)}
:root[data-theme="dark"] :is(a,button,summary,input,select):focus-visible{outline-color:#91b8ff}
:root[data-theme="dark"] ::selection{background:#62414c;color:#fff}
@media(max-width:767px){:root[data-theme="dark"] .sidebar-language :is(.language,a.language){background:var(--d-panel);box-shadow:none;border-color:var(--d-border)}:root[data-theme="dark"] .side-link.active{box-shadow:none}}
:root[data-theme="dark"] .landing-copy h1 span{color:var(--d-red)}
:root[data-theme="dark"] :is(.buddy-bubble>span,.preview-progress>span,.preview-progress strong,.browser-menu,.preview-address,.landing-assurances span){color:var(--d-muted)}
:root[data-theme="dark"] .buddy-bubble>span{color:var(--d-gold)}
:root[data-theme="dark"] :is(.question-tag,.question-category){background:transparent;color:var(--d-text)}
:root[data-theme="dark"] .answer-feedback.right h2{color:#b3ead6}
:root[data-theme="dark"] .answer-feedback.wrong h2{color:#ffb0bc}
:root[data-theme="dark"] .quiz-top>span{color:var(--d-muted)}
:root[data-theme="dark"] .feature-art{background:var(--d-raised);border-color:var(--d-border)}
:root[data-theme="dark"] :is(.question-tag>.icon,.step-icon.green-bg,.about-method-steps li>span){background:var(--d-red-soft);border-color:#5b3540;color:var(--d-red)}
:root[data-theme="dark"] :is(.step-icon.blue-bg,.status-badge.planned){background:var(--d-purple-soft);border-color:#48445e;color:var(--d-purple)}
:root[data-theme="dark"] :is(.step-icon.peach-bg,.profile-empty){background:var(--d-gold-soft);border-color:#5a4b32;color:var(--d-text)}
:root[data-theme="dark"] :is(.licensing-progress,.moving-tabs,.moving-detail-header){border-color:var(--d-border)}
:root[data-theme="dark"] :is(.moving-tab strong,.licensing-step-label){color:var(--d-text)}
:root[data-theme="dark"] :is(.moving-tab.is-active strong,.licensing-step.is-current .licensing-step-label){color:var(--d-red)}
:root[data-theme="dark"] .moving-tab>span{color:var(--d-muted)}
:root[data-theme="dark"] :is(.coverage-strip strong,.profile-stats strong,.result-stats strong,.practice-number){color:var(--d-red)}
:root[data-theme="dark"] :is(.feature-carousel-toolbar>span,.step-num,.about-facts span,.about-province-list small,.profile-stats span,.chapter-progress-row small,.profile-history small,.result-stats span){color:var(--d-muted)}

:root[data-theme="dark"] :is(.national-assurances span,.practice-facts span){color:var(--d-muted)}
:root[data-theme="dark"] :is(.national-art,.province-resource-hero){background:var(--d-panel);border-color:var(--d-border);color:var(--d-text)}
:root[data-theme="dark"] .national-art>span{background:var(--d-gold-soft);border-color:#5a4b32;color:var(--d-gold)}
:root[data-theme="dark"] .landing-how .steps article .step-num{color:var(--d-muted)}
:root[data-theme="dark"] .restart-note{color:var(--d-muted)}
:root[data-theme="dark"] :is(#question-title,.preview-question h2) .english-primary{color:var(--d-text)}
