:root{color-scheme:light}
textarea:focus-visible{outline:3px solid #c68b20;outline-offset:4px}
.avr-footer-bottom{gap:20px;align-items:center;flex-wrap:wrap}
.theme-switch{display:flex;align-items:center;gap:14px;color:#c3cfcb;font-size:12px}
.theme-switch[hidden]{display:none}
.theme-switch>span{white-space:nowrap}
.theme-switch>div{display:flex;gap:3px;padding:4px;border:1px solid #536967;border-radius:8px;background:#122326}
.theme-switch button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:9px 13px;border-radius:5px;background:transparent;color:#d9e4de;font-size:12px;font-weight:600;line-height:1.2}
.theme-switch svg{width:16px;height:16px;flex-shrink:0}
.theme-switch button:hover{background:#2c4446}
.theme-switch button[aria-pressed=true]{background:var(--gold);color:#152426}
.theme-switch button:focus-visible{outline:2px solid #f6cb78;outline-offset:3px}
html[data-theme=dark]{color-scheme:dark;--ink:#e8efeb;--muted:#adc0b8;--paper:#122326;--line:#3a5151;--theme-panel:#1b3033;--theme-raised:#243a3c;--theme-text:#e8efeb;--theme-muted:#b1c3bc;--theme-border:#3a5151}
html[data-theme=dark] body{background:var(--paper);color:var(--theme-text)}
html[data-theme=dark] .size-preset{background:var(--theme-panel);border-color:var(--theme-border);color:var(--theme-text)}
html[data-theme=dark] .size-preset.selected{background:#3a3728;border-color:var(--gold)}
html[data-theme=dark] .size-preset :is(.preset-capacity,span:first-child),html[data-theme=dark] :is(.preset-note,.ridge-note){color:var(--theme-muted)}
html[data-theme=dark] .capacity-project-note{color:#d4c7a7}
html[data-theme=dark] .capacity-error{background:#442d26;border-color:#94634f;color:#ffcfba}
html[data-theme=dark] .avrora-site{background:var(--paper)}
html[data-theme=dark] :is(.avr-header,.page-hero,.avr-footer){background:#102023}
html[data-theme=dark] :is(.page-content,.portfolio-group+.portfolio-group){background:var(--paper)}
html[data-theme=dark] :is(.projects-section,.materials-section,.article-intro){background:var(--theme-panel)}
html[data-theme=dark] :is(.prose p,.prose li,.project-card p,.article-card p,.article-excerpt,.article-meta,.article-toc>a:not(.button),.portfolio-heading>span,.content-picture figcaption,.article-intro .breadcrumbs){color:var(--theme-muted)}
html[data-theme=dark] :is(.content-links a,.table-scroll,.article-card){background:var(--theme-panel);border-color:var(--theme-border)}
html[data-theme=dark] .content-links a:hover{background:var(--theme-raised);border-color:var(--gold)}
html[data-theme=dark] :is(.content-links a span,.card-arrow){color:var(--gold)}
html[data-theme=dark] .table-scroll th{background:#2b4243;color:var(--theme-text)}
html[data-theme=dark] .table-scroll td{color:var(--theme-muted)}
html[data-theme=dark] :is(.table-scroll th,.table-scroll td,.gallery-more,.project-card,.source-list,.text-link){border-color:var(--theme-border)}
html[data-theme=dark] .article-card time{color:#a6bbb1}
html[data-theme=dark] .article-card:hover{border-color:var(--gold)}
html[data-theme=dark] .materials-view-switch button:not([aria-pressed="true"]):hover { background: var(--theme-raised); }
html[data-theme=dark] .content-note{background:#363327;color:#eadfc8;border-color:var(--gold)}
html[data-theme=dark] .draft-checks{background:#363327;color:#eadfc8;border-color:#9a7a42}
html[data-theme=dark] .inquiry-section{background:#1d2c2d;border-color:var(--theme-border)}
html[data-theme=dark] :is(.inquiry-grid>div>p:last-child,.inquiry-form .form-fineprint,.inquiry-form label span){color:var(--theme-muted)}
html[data-theme=dark] :is(.inquiry-form input,.inquiry-form textarea){background:#102326;border-color:#506362;color:var(--theme-text)}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#91aaa4;opacity:1}
html[data-theme=dark] .inquiry-form .form-status{background:#29413b;color:#e5f1e7}
html[data-theme=dark] .button-dark{background:#dce8df;color:#172c2c}
html[data-theme=dark] .button-dark:hover{background:#f0f5f0}
html[data-theme=dark] .skip-link{color:#152426}
/* Keep the model on a pale inset: its dimensional labels are drawn in WebGL. */
html[data-theme=dark] .model-card{background:#e6eae5;border-color:var(--theme-border);color:#18282b;color-scheme:light}
html[data-theme=dark] .model-card .view-switch button.selected{color:#18282b}
html[data-theme=dark] :is(.quiz-card,.capacity-card){background:var(--theme-panel);border-color:var(--theme-border);color:var(--theme-text)}
html[data-theme=dark] :is(.section-description,.eyebrow.dark,.panel-description,.quiz-top,.range-labels,.help-note,.small-note,.engineering-note,.switch-row,.grain-settings .switch-row,.quiz-bottom,.result-panel dt,.back-button){color:var(--theme-muted)}
html[data-theme=dark] .quiz-card .help-note{background:var(--theme-raised);border-color:var(--theme-border);color:var(--theme-text)}
html[data-theme=dark] .quiz-top span:last-child{color:var(--theme-muted)}
html[data-theme=dark] :is(.capacity-heading>span:last-child,.capacity-assumptions summary,.result-kicker){color:var(--gold)}
html[data-theme=dark] :is(.number-wrap,.grain-settings select,.assumption-inputs input,.lead-form input){background:#102326;border-color:#506362;color:var(--theme-text)}
html[data-theme=dark] .number-wrap input{color:var(--theme-text)}
html[data-theme=dark] :is(.number-wrap span,.option-copy small,.addon-option small,.lead-form label>span,.lead-form>small,.lead-preview-note,.capacity-height-note,.capacity-assumptions,.capacity-sources,.capacity-values>div>span){color:var(--theme-muted)}
html[data-theme=dark] :is(.option,.addon-option,.gate-type-options label,.result-panel dl>div,.quiz-bottom,.capacity-assumptions,.capacity-heading,.radio-mark,.check-mark){border-color:var(--theme-border)}
html[data-theme=dark] :is(.option:has(input:checked),.addon-option:has(input:checked),.gate-type-options label:has(input:checked)){background:#34392d;border-color:var(--gold)}
html[data-theme=dark] :is(.option-copy strong,.addon-option strong,.capacity-heading,.capacity-values strong,.result-panel dd,.grain-settings select){color:var(--theme-text)}
html[data-theme=dark] .capacity-card :is(.capacity-heading,.capacity-values strong){color:var(--theme-text)}
html[data-theme=dark] #capacity-tonnes{color:var(--gold)}
html[data-theme=dark] .switch-track{background:#536764}
html[data-theme=dark] .lead-status{background:#3c2b29;color:#ffd9cd;border-color:#90665d}
html[data-theme=dark] .lead-status.success{background:#243f34;color:#d6f2dd;border-color:#638771}
html[data-theme=dark] .toast{background:#dce8df;color:#172c2c}
@media(max-width:600px){.theme-switch{flex-basis:100%;margin-top:4px;justify-content:space-between;gap:10px}.theme-switch button{padding:9px 12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
html[data-theme=dark] .quiz-card .ridge-note{background:var(--theme-raised);border-color:var(--theme-border);border-left-color:#edb149;color:var(--theme-text)}html[data-theme=dark] .quiz-card .ridge-note>strong{color:#edb149}html[data-theme=dark] .quiz-card .ridge-note>small{color:var(--theme-muted)}
