:root{color-scheme:light}
/* One header geometry across routes, including while fonts and scripts load. */
html{scrollbar-gutter:stable}
.site-header .header-inner{width:min(1120px,calc(100% - 80px));max-width:1120px;min-height:90px;height:90px;padding:0;flex-direction:row;justify-content:space-between}
.site-header .header-inner nav{display:flex;align-items:center;gap:30px;flex-shrink:0}
.site-header .header-inner nav a,.site-header .header-inner nav a[aria-current=page]{font-size:15px;font-weight:500;line-height:1.55;box-sizing:border-box;text-align:center;white-space:nowrap;box-shadow:none}
.site-header .header-inner nav a[href='/compare/']{width:154px;flex:0 0 154px;padding:11px 17px}
.site-header .header-inner nav a[href='/faq/']{width:100px;flex:0 0 100px;padding:8px 0}
.site-header .header-inner nav a[aria-current=page]{text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:1px}
@media(max-width:760px){.site-header .header-inner{width:calc(100% - 40px);height:76px;min-height:76px}.site-header .header-inner nav a[href='/compare/']{width:108px;flex-basis:108px;font-size:12px;padding:8px!important}.site-header .header-inner nav a[href='/faq/']{display:none}}
@media(max-width:370px){.site-header .header-inner nav a[href='/compare/']{width:96px;flex-basis:96px}}
.site-header nav .theme-toggle{order:4;display:inline-grid;place-items:center;flex:0 0 40px;width:40px;height:40px;padding:10px;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--muted);cursor:pointer;transition:background .18s,color .18s,transform .18s}
.site-header nav .theme-toggle:hover{background:var(--soft);color:var(--ink);transform:rotate(-10deg)}
.theme-toggle svg{width:19px;height:19px;pointer-events:none}.theme-toggle:focus-visible{outline:2px solid var(--teal);outline-offset:4px}
@media(max-width:370px){.site-header .brand img{width:110px!important}.site-header .header-inner{gap:6px!important}.site-header nav{gap:4px!important}.site-header nav a:first-child{font-size:10px!important;padding:8px!important}}
@media(max-width:760px){.site-header nav{gap:8px!important}.site-header .brand img{width:135px}.site-header .header-inner{gap:12px}.site-header nav a[href='/faq/']{display:none}.site-header nav .theme-toggle{width:40px;height:40px}.site-header nav a:first-child{font-size:11px;padding:9px 10px}}
@media(prefers-reduced-motion:reduce){.site-header nav .theme-toggle{transition:none;transform:none}}
/* Dark surfaces retain the lavender accents and quiet hierarchy. */
:root[data-theme=dark],:root[data-theme=dark] body{color-scheme:dark;--ink:#ecebf3;--muted:#b0adbe;--quiet:#b0adbe;--line:#36333f;--teal:#b5a5f3;--accent:#b5a5f3;--soft:#25212f;--tint:#292237;--paper:#141419;--surface:#1c1b23;--raised:#26232f;--shadow:0 12px 40px #0004;background:var(--paper);color:var(--ink)}
[data-theme=dark] .site-header{background:var(--paper);border-color:var(--line)}
[data-theme=dark] .site-header nav a:first-child{background:var(--tint);color:var(--teal);border-color:var(--line)}
[data-theme=dark] :is(.home-start-section,.clear-directory,.home-explorer-preview,footer,.clear-contact,.profile-decision,.calculator-result,.filters){background:var(--surface);border-color:var(--line)}
[data-theme=dark] :is(.home-company,.home-browse-row a,.buyer-card,.preview-types a,.explorer-dialog,.filter-dialog,.explorer-filters.is-open,dialog,.profile-aside,.empty-state,.comparison-row,pre){background:var(--surface);border-color:var(--line);color:var(--ink)}
[data-theme=dark] :is(input,select,textarea,.explorer-filters select,.explorer-filters input[type=number],.brief-form textarea){background:var(--paper);border-color:var(--line);color:var(--ink)}
[data-theme=dark] :is(.clear-lead,.lead,.article-body p,.article-body li,.fact dd,.clear-company p,.clear-thread p,.decision-grid p,.comparison-row p,.filters label,.clear-paper-bottom){color:var(--muted)}
[data-theme=dark] :is(.button,.clear-primary,.visit,.explorer-site .button,.clear-design .visit){background:#d9d1f3;color:#221c32;border-color:#d9d1f3}
[data-theme=dark] :is(.button,.clear-primary,.visit):hover{background:#ebe5ff;color:#221c32}
[data-theme=dark] :is(.text-button,.intro-back,.close-dialog,.close-filter-dialog){color:var(--ink)}
[data-theme=dark] :is(.record-options span,.status,.fit-label,.buyer-mark,.home-company .buyer-mark,.clear-profile-mark,.close-dialog,.preview-introduction-note){background:var(--tint);color:#c7b9f4;border-color:var(--line)}
[data-theme=dark] .record-options input:checked+span{background:#443363;color:#f0e9ff;border-color:#b5a5f3}
[data-theme=dark] :is(.fit-label[data-status=possible],.status-preferred){background:#222e44;color:#bbcceb}
[data-theme=dark] :is(.fit-label[data-status=incomplete],.clarification,.clear-payment .clarification,.status-needs_clarification){background:#30291e;color:#e1c68e}
[data-theme=dark] :is(.intro-error,.field-error,.input-summary){color:#ffb5a7}
[data-theme=dark] :is(.compare-tray,.selection-bar){background:#30283e;color:var(--ink);border:1px solid var(--line)}
[data-theme=dark] :is(.comparison-table th,.selected-table th,.comparison-heads,.comparison-label){background:var(--surface);color:var(--ink)}
[data-theme=dark] :is(.clear-confirm,.clear-company,.home-process,.home-start-section,.home-company,.explorer-toolbar){border-color:var(--line)}
[data-theme=dark] .filter-dialog .apply-filters{box-shadow:0 0 0 12px var(--surface)}
[data-theme=dark] .ads-preview{background:#2c253c;color:#ddd1f7}
[data-theme=dark] :is(.clear-tabs,.clear-back,.clear-middle){background:var(--raised);border-color:var(--line)}
[data-theme=dark] :is(.clear-front,.clear-tabs button[aria-selected=true]){background:var(--surface);color:var(--ink);border-color:var(--line)}
[data-theme=dark] .clear-glow{background:radial-gradient(ellipse,#49326645,transparent 70%)}
@media print{.theme-toggle{display:none!important}}
/* Shared header tokens and dimensions also apply to profiles, utility pages and errors. */
:root .site-header{--ink:#25262d;--teal:#6263bb;--line:#e3e3e9;--muted:#656773;--soft:#f1f1f7;background:#fdfdfc;border-bottom:1px solid var(--line)}
.site-header .header-inner .brand img{width:178px;height:auto;content:url('/brand/logo-horizontal-for-light.svg')}
.site-header .header-inner .brand{font-size:15px;color:var(--ink)}
.site-header .header-inner nav a[href='/compare/']{order:3;background:#f0edf8;border:1px solid #e3deef;border-radius:9px;color:#57478a}
.site-header .header-inner nav a[href='/faq/']{order:1;color:var(--ink)}
.site-header .header-inner .theme-toggle{font-size:15px}
:root[data-theme=dark] .site-header{--ink:#ecebf3;--teal:#b5a5f3;--line:#36333f;--muted:#b0adbe;--soft:#25212f;background:#141419}
[data-theme=dark] .site-header .header-inner .brand img{content:url('/brand/logo-horizontal-for-dark.svg')}
[data-theme=dark] .site-header .header-inner nav a[href='/compare/']{background:#292237;border-color:#36333f;color:#b5a5f3}
.buyer-name-arrow{font-size:.7em;color:var(--muted);white-space:nowrap}
@media(max-width:760px){.site-header .header-inner .brand img{width:135px}.site-header .header-inner{gap:12px!important;min-height:76px;height:76px}.site-header .header-inner nav{gap:8px!important}}
@media(max-width:370px){.site-header .header-inner .brand img{width:110px!important}.site-header .header-inner{gap:6px!important}.site-header .header-inner nav{gap:4px!important}}
[data-theme=dark] .review-contact{background:var(--tint);color:var(--ink)}
[data-theme=dark] .review-lead{color:var(--muted)}
[data-theme=dark] :is(.active-summary,.help-nav a,.dialog-close,.record-stories section){background:var(--tint);color:var(--ink);border-color:var(--line)}
[data-theme=dark] .explorer-site #close-filters{background:var(--tint);color:var(--ink)}
[data-theme=dark] .fit-label[data-status=fit]{background:#20382e;color:#a8d9c0}
[data-theme=dark] .fit-label[data-status=mismatch]{background:#3c2825;color:#edb2a6}
[data-theme=dark] .fit-label[data-status=confirm]{background:#30291e;color:#e1c68e}
[data-theme=dark] #hero-graphic .ads-data-scene{color:#c6b6f3}
[data-theme=dark] #hero-graphic .ads-orbit{border-color:#b5a5f31c}
[data-theme=dark] #hero-graphic .ads-back-sheet{background:#30273f;border-color:#514264}
[data-theme=dark] #hero-graphic .ads-back-sheet-two{background:#352f26;border-color:#584b36}
[data-theme=dark] #hero-graphic .ads-record-card{background:linear-gradient(145deg,#30283d,#211e2c);border-color:#4a3d60;box-shadow:0 24px 50px -25px #0009}
[data-theme=dark] #hero-graphic .ads-record-label{color:#c4bad7}
[data-theme=dark] #hero-graphic .ads-record-lines i{background:#514561}
[data-theme=dark] #hero-graphic .ads-value-card{background:linear-gradient(145deg,#234b3f,#1d382f);border-color:#3b6958}
[data-theme=dark] #hero-graphic .ads-dollar{color:#a5dfc9}
[data-theme=dark] #hero-graphic .ads-value-mark{background:#203d32;color:#a5dfc9;border-color:#4b7564}
[data-theme=dark] #hero-graphic .ads-type-switch button{color:#bfb3d1}
[data-theme=dark] #hero-graphic .ads-type-switch button[aria-pressed=true]{background:var(--tint);border-color:#514264;color:#e0d1ff}
/* Quiet footer links and small, accessible social icons. */
body footer a,body footer button,body footer a:hover,body footer button:hover,body footer .footer-links a,body footer .footer-links button{text-decoration:none}
body footer .socials{gap:6px;margin-top:14px}
body footer .socials a{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;color:var(--muted);transition:color .15s ease,background-color .15s ease}
body footer .socials a:hover{color:var(--ink);background:var(--tint)}
body footer .socials svg{display:block;width:19px;height:19px;flex:none}
body footer .socials a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(prefers-reduced-motion:reduce){body footer .socials a{transition:none}}
