/* Shared visual system for the static pages and interactive tools. */
:root {
  --sans: Inter, "Helvetica Neue", Arial, sans-serif;
  --serif: var(--sans);
  --paper: #f4f6f9; --hero-paper: #ebeff5; --surface: #fff;
  --ink: #162338; --text: #47566a; --muted: #58667a; --line: #d3dce7;
  --green: #1748be; --orange: #ffab5c; --action: #204fce;
  --shadow: 0 5px 18px rgb(25 45 77 / 5%);
}
:root[data-theme="dark"] {
  --paper: #101723; --surface: #1a2433; --hero-paper: #212e40;
  --ink: #f1f5fa; --text: #c5cfdc; --muted: #aab8ca; --line: #39485d;
  --green: #acc6ff; --action: #204fce;
}
body {font-family:var(--sans)}
.container {width:min(91%,78rem)}
.site-header, .site-footer, .panel, .catalog-card, .tool-card, .directory-controls,
.lookup-toggle, .compare-card, #compare-table, .compare-picker, .privacy-controls {
  background:var(--surface);border-color:var(--line)
}
.site-header .header-inner {min-height:4.4rem;gap:1.3rem}
.brand, .platform-foot .brand {font-family:var(--sans);color:var(--ink);font-weight:800;font-style:italic;letter-spacing:-.085em}
.brand .icon {color:#2758d5}
.main-nav {align-self:stretch;align-items:center;height:auto;gap:.2rem;margin-left:2rem}
.main-nav > a {color:var(--text);padding:0 .8rem;border-radius:.4rem;font-size:.94rem}
.main-nav > a:hover,.main-nav > a[aria-current] {background:var(--hero-paper);color:var(--green)}
.main-nav > a[aria-current]::after {content:none}
.theme-control {background:transparent;border:0;font-weight:550;color:var(--text)}
.account-link,.primary,.estimate-button,.lookup-button:not(:disabled),
[data-theme="dark"] :is(.primary,.estimate-button,.lookup-button:not(:disabled),.account-link) {
  background:var(--action);color:#fff;border:1px solid transparent;border-radius:.46rem;font-weight:650
}
.primary:hover,.estimate-button:hover,.account-link:hover,[data-theme="dark"] .primary:hover,[data-theme="dark"] .estimate-button:hover {background:#133ca5;color:white}
.account-link {padding-inline:1.12rem}
.hero {background:transparent;border:0;padding:1.5rem 0 .25rem}
.hero-grid {
  grid-template-columns:1fr 1fr;gap:0;min-height:0;overflow:hidden;
  border-radius:1.05rem;background:#142137;color:#fff;position:relative
}
.hero-copy {padding:clamp(2rem,3.8vw,3.6rem);padding-right:1rem}
.hero h1 {font:750 clamp(2.8rem,4.65vw,4.6rem)/1.02 var(--sans);letter-spacing:-.067em}
.hero h1 em,[data-theme="dark"] .hero h1 em {color:#c4d7ff;font-style:normal;font-weight:inherit}
.eyebrow,[data-theme="dark"] .eyebrow {color:#e0e8f6;letter-spacing:.15em;font-size:.73rem;margin-bottom:1.3rem}
.stripes i {background:#ffad62;width:3px;height:12px}
.hero-copy > p {color:#d1dbe8;margin:1rem 0 1.35rem;max-width:32rem}
.hero-secondary {display:inline-block;color:#edf2fc;margin:.75rem 0 .4rem 1rem;font-size:.88rem;font-weight:600}
.hero-art {height:100%;width:100%;min-height:0;margin:0;mix-blend-mode:normal;clip-path:polygon(7% 0,100% 0,100% 100%,0 100%)}
.hero-art picture {display:block;width:100%;height:100%}
.hero-art img,[data-theme="dark"] .hero-art img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 57%;filter:none;mask:none;-webkit-mask:none;border-radius:0}
.toolbox {padding-block:2.6rem 2.5rem}
.section-heading h2,.notes h2 {font-size:clamp(1.55rem,2.1vw,2.1rem);letter-spacing:-.045em;font-weight:730}
.section-heading .divider {background:transparent}
.section-heading > .icon {display:none}
.browse-link,.card-link {color:var(--green);font-size:.9rem;font-weight:650}
.tool-card,.catalog-card {border-radius:.7rem;box-shadow:var(--shadow)}
.tool-card {padding:1.45rem;position:relative}
.tool-card h3 {font-size:clamp(1.3rem,1.65vw,1.65rem);font-weight:700;letter-spacing:-.04em}
.tool-card p {margin-bottom:1.15rem}
.card-top {margin-bottom:1.15rem}
.gas,.lookup-icon-route {--tile:#e6efff;--tone:#224fa8}
.ownership,.lookup-icon-price {--tile:#fff0dd;--tone:#87460a}
.tires,.lookup-icon-vehicle {--tile:#e8eef4;--tone:#3a5474}
.icon-tile {border-radius:.65rem;width:2.9rem;height:2.9rem}
.icon-tile .icon {width:1.75rem;height:1.75rem}
.card-link {border-top:1px solid var(--line);padding-top:.95rem;justify-content:space-between}
.link-rule {height:3px;width:1.5rem;border-radius:2px;background:var(--tone)}
.notes {padding:1.8rem 2rem;margin-bottom:2.8rem;border:1px solid var(--line);border-radius:.75rem;background:var(--surface)}
.notes-intro > .icon,.source-note,.note summary:hover {color:var(--green)}
.note:last-child {border-bottom:0}
.site-footer {background:#142137;color:#e2eaf6}
.platform-foot {padding-block:2rem}
.platform-foot :is(a,.brand,small) {color:#e2eaf6}
.platform-foot [aria-label="Policies"] {border-color:#374760}
.platform-foot .brand .icon {color:#597ef0}
.crumbs,.crumbs a,[data-theme="dark"] .crumbs a {color:var(--muted)}
.interior h1,.library-page h1,.reading h1,#comparison h1 {font:730 clamp(2.1rem,3.6vw,3.55rem)/1.08 var(--sans);letter-spacing:-.055em}
.page-lead {max-width:66ch}
.interior-heading .icon-tile {width:3.5rem;height:3.5rem}
.panel, .compare-card, .directory-controls {border-radius:.75rem;box-shadow:var(--shadow)}
.directory-controls {padding:1.25rem;gap:1rem}
.directory-controls input,.directory-controls select,.model-select,.lookup-body select,.input-wrap {background-color:var(--surface);border-color:#9caabf;color:var(--ink)}
.directory-group h2,.panel h2,.editorial h2,.calc-guide h2 {letter-spacing:-.04em;font-weight:700}
.directory-group {margin:2.3rem 0}
.directory-group h2 {padding-bottom:.65rem;border-bottom:1px solid var(--line)}
.catalog-card {padding:1.2rem 1.25rem}
.catalog-card h3 {color:var(--ink);font-size:1.14rem;font-weight:690}
.catalog-card:hover {background:var(--surface);border-color:var(--green)}
.lookup-choices > .lookup-body,.lookup-toggle[aria-expanded="true"],.trip-modes,.owner-note {background:var(--hero-paper);border-color:var(--line)}
.lookup-status:not(:empty) {border-color:var(--green)}
.trip-modes input:checked + span,[data-theme="dark"] .trip-modes input:checked + span {background:var(--action);color:white}
.calc-result.panel,[data-theme="dark"] .calc-result.panel {background:#17273e;color:#fff;border-color:#17273e}
.calc-result :is(h2,.result-value,.result-list dd,.result-note,.tire-table,figure[data-wheel-figure]),[data-theme="dark"] .calc-result :is(h2,.result-value,.result-note) {color:#edf4ff}
.calc-result .result-value {font-family:var(--sans);font-weight:730;letter-spacing:-.055em}
.calc-result :is(.result-list > div,.tire-table th,.tire-table td) {border-color:#44546c}
.calc-result .result-note {color:#c2d2e5}
.library-page,.interior,.reading {padding-bottom:3rem}
.editorial p,.calc-guide p {max-width:72ch}
.privacy-controls,.owner-note {padding:1.25rem}
[data-theme="dark"] :is(.site-header,.tool-card,.lookup-toggle,.input-wrap,.panel,.lookup-body select,.compare-card,.catalog-card) {background-color:var(--surface)}
[data-theme="dark"] .site-footer {background:#0c1320}
[data-theme="dark"] .main-nav a {color:var(--text)}
[data-theme="dark"] :is(.lookup-toggle[aria-expanded="true"],.trip-modes,.lookup-choices > .lookup-body) {background:var(--hero-paper)}
[data-theme="dark"] :is(.form-note,.field-help,.lookup-label strong,.category) {color:var(--text)}
[data-theme="dark"] .calc-result.panel {background:#17273e}
@media(min-width:880px) {
  #directory {display:grid;grid-template-columns:minmax(13rem,16rem) minmax(0,1fr);gap:0 2rem;align-items:start}
  .directory-controls {grid-column:1;grid-row:1 / span 7;position:sticky;top:1rem;display:grid}
  #directory :is(#match-count,.directory-group) {grid-column:2}
  #directory .directory-group {margin:.65rem 0 1.65rem}
  .catalog-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:850px){.hero-copy {padding:1.75rem}.hero-secondary{margin-left:0;display:table}.main-nav {margin-left:0}}
@media(max-width:700px){
  .site-header .header-inner {gap:.4rem .6rem;padding:.6rem 0 .25rem}
  .main-nav {margin:0;border-top:1px solid var(--line);padding-top:.3rem}
  .main-nav > a {padding:.45rem .65rem}
  .hero {padding-top:.85rem}
  .hero-grid {grid-template-columns:1fr}
  .hero-copy {padding:1.8rem 1.35rem 1.45rem}
  .hero h1 {font-size:clamp(2.7rem,9vw,3.5rem)}
  .hero-secondary {margin:.8rem 0 0;display:table}
  .hero-art {clip-path:none;height:clamp(10.5rem,48vw,17rem)}
  .hero-art img {object-position:50% 63%}
  .toolbox {padding-block:1.8rem}.section-heading {gap:.5rem}
  .section-heading h2 {font-size:1.45rem}
  .browse-link {font-size:.8rem;text-align:right}
  .tool-card,.notes {padding:1.15rem}
  .notes {margin-bottom:1.75rem}
  .brand {font-size:1.62rem}
  .theme-control,.account-link {font-size:.81rem;padding:.55rem .7rem}
}
@media(max-width:390px){.container{width:calc(100% - 1.65rem)}.section-heading{flex-wrap:wrap}.section-heading .divider{min-width:0}}
.calc-result .field-help {color:#c2d2e5}
@media(max-width:390px) {
  .site-header .main-nav {gap:.1rem}
  .site-header .main-nav > a {padding-inline:.38rem;font-size:.86rem}
}
#home-search {max-width:32rem;margin:1.1rem 0 .6rem}
#home-search label {display:block;font-size:.93rem;font-weight:650;margin-bottom:.4rem}
.search-line {display:flex;background:white;border:2px solid white;border-radius:.5rem;overflow:hidden}
.search-line input {flex:1;min-width:0;font:inherit;border:0;padding:.75rem;color:#17273e;background:white}
.search-line button {padding:.65rem 1.1rem;background:#204fce;color:white;border:0;border-radius:.32rem;font:600 .96rem var(--sans)}
#home-hits a {display:block;padding:.58rem .25rem;color:white}
#home-status {font-size:.9rem;color:#eff4fc}
.hero-secondary {margin:.5rem 1.2rem 0 0}
.discovery-strip {padding-top:1.35rem}
.discovery-strip h2 {font-size:1rem;margin:0 0 .5rem}
.topic-links {display:flex;gap:.4rem .55rem;flex-wrap:wrap}
.topic-links a {display:inline-flex;align-items:center;min-height:2.75rem;padding:.45rem .85rem;border:1px solid var(--line);border-radius:.4rem;color:var(--green);background:var(--surface);text-decoration:none;font-weight:600;font-size:.9rem}
.topic-links a:hover {border-color:var(--green)}
.next-tool {font-size:.92rem}.next-tool a {color:var(--green)}
[hidden] {display:none!important}
@media(max-width:850px){.hero-secondary{display:inline-block}.main-nav{margin-left:0}}
@media(max-width:700px){.site-header .main-nav{gap:.1rem}.site-header .main-nav>a{padding:.3rem .4rem;min-height:2.75rem}.site-header .main-nav>a:first-child{display:none}}
@media(min-width:701px) and (max-width:940px){.main-nav>a{padding-inline:.32rem}.site-header .header-inner{gap:.55rem}}
.hero-copy {min-width:0}
@media(max-width:700px){
  .hero-grid {grid-template-columns:minmax(0,1fr)}
  .site-header .header-inner {display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:.3rem .25rem}
  .site-header .main-nav {grid-column:1/-1;grid-row:2;justify-content:space-between}
  .site-header .main-nav a {white-space:nowrap}
}
@media(max-width:355px) {
  .hero h1 {font-size:2.22rem}
  .hero-copy {padding-inline:1.05rem}
  .site-header .main-nav>a {font-size:.8rem;padding-inline:.25rem}
  .theme-control,.account-link {font-size:.78rem;padding-inline:.45rem}
}
.cost-meter {height:.26rem;border-radius:1rem;background:#97b8ff;grid-column:1/-1;margin:.22rem 0 0}
.calc-result .result-list .meter-row {display:grid;grid-template-columns:1fr auto}
.tool-glossary {margin:1rem 0;border-block:1px solid var(--line)}
.tool-glossary summary {padding:.82rem .15rem;color:var(--ink);font-weight:650;cursor:pointer}
.tool-glossary p {max-width:70ch;color:var(--text);margin:0 0 1rem}
