/* RC-ARCHIVE-THEME-03 (Forge): loaded AFTER theme.css (TZ-THEME-01 tokens). No layout changes. */
html[data-theme=dark]{--t-input-border:#7d93a5}
html[data-theme=light]{--t-input-border:#6B7A88}
html[data-theme] input,html[data-theme] .field input,html[data-theme] .field select,html[data-theme] .field textarea,html[data-theme] .epa-row select{border-color:var(--t-input-border);background:var(--t-elevated);color:var(--t-text)}
html[data-theme] .epa-picker legend{color:var(--t-text2)}
html[data-theme] .result details summary{color:var(--t-action)!important}
html[data-theme] .mini-bar{background:var(--t-border)}
html[data-theme] .aside,html[data-theme] .article-shell .aside{background:var(--t-surface);border-color:var(--t-border)}
html[data-theme] .aside h3,html[data-theme] .article h2,html[data-theme] .article h3,html[data-theme] .page-header h1,html[data-theme] h1,html[data-theme] h2,html[data-theme] h3,html[data-theme] h4,html[data-theme] summary,html[data-theme] dt,html[data-theme] strong,html[data-theme] b{color:var(--t-text)}
html[data-theme] dd,html[data-theme] td,html[data-theme] th,html[data-theme] .footer h4,html[data-theme] .footer-grid div{color:var(--t-text2)}
.theme-toggle{min-height:44px;min-width:44px}
html[data-theme] .breadcrumb [aria-current],html[data-theme] .breadcrumb span{color:var(--t-text)}
html[data-theme] .source-note{color:var(--t-text2)}
/* -04 F02: visible keyboard focus, theme-aware */
html[data-theme] .field input:focus-visible,html[data-theme] .field select:focus-visible,html[data-theme] .field textarea:focus-visible,html[data-theme] input:focus-visible,html[data-theme] select:focus-visible,html[data-theme] textarea:focus-visible,html[data-theme] .theme-toggle:focus-visible{outline:3px solid var(--t-action);outline-offset:2px}
html[data-theme] .field input:focus,html[data-theme] .field select:focus,html[data-theme] .field textarea:focus{border-color:var(--t-action)}
/* -04 F03: compare rows use theme token instead of hardcoded #c6dfed */
html[data-theme] .result .cmp-row{color:var(--t-text)}
/* -05 B01: theme-aware focus for links/buttons (overrides fixed #7ccaff) */
html[data-theme] a:focus-visible,html[data-theme] button:focus-visible,html[data-theme] summary:focus-visible,html[data-theme] .btn:focus-visible{outline:3px solid var(--t-action);outline-offset:2px}
/* -05 B03: CSS scroll-behavior opt-out */
@media(prefers-reduced-motion:reduce){html,html[data-theme]{scroll-behavior:auto!important}}
