@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/source-serif-4-italic-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-600-latin.woff2") format("woff2");
}

/* Repairs verified against the September 11 public website audit. */

/* Component display rules must not expose controls that the application hides. */
[hidden]:not([hidden="until-found"]) { display: none !important; }

html[data-theme="light"] body.avlu-site-polish .v13-header :is(.v13-brand, .v13-nav a, .v13-login, .v13-menu) {
  color: #17253d !important;
}
html[data-theme="light"] body.avlu-site-polish.site-has-scrolled .v13-header { background: #f8f5ed !important; }
@media (max-width: 1040px) {
  html[data-theme="light"] body.avlu-site-polish .v13-header :is(.v13-nav, .v13-menu) { background: #f8f5ed !important; }
}
html[data-theme="light"] body.avlu-site-polish .ref-page-hero :is(h1, .ref-lead, .ref-hero-copy > p) {
  color: #17253d !important;
}
html[data-theme="light"] body.avlu-site-polish .ref-page-hero .ref-eyebrow { color: #315b8b !important; }
body.avlu-site-polish .avlu-page-artifact { background: #10243e !important; color: #eef5ff !important; }
body.avlu-site-polish .avlu-page-signal { background: #10243e !important; color: #eef5ff !important; }
body.avlu-site-polish .avlu-page-signal :is(strong, span) { color: #dce7f7 !important; }
body.avlu-site-polish .about-proof-map { background: #0b1b32 !important; color: #dce7f7 !important; }
body.avlu-site-polish .about-proof-map :is(p, h2, h3, strong, span) { color: #dce7f7 !important; }
body.avlu-site-polish .about-boundary-card :is(h2, h3, p, li) { color: #dce7f7 !important; }
html[data-theme="light"] body.avlu-site-polish .about-evidence-strip :is(strong, span) { color: #17253d !important; }
body.avlu-site-polish .ref-cta-band :is(h2, h3, p) { color: #fff !important; }
body.avlu-site-polish .ref-cta :is(h2, h3, p) { color: #fff !important; }
body.avlu-site-polish .case-walkthrough .case-number { color: #9cc4ff !important; }
body.avlu-site-polish .case-boundary-card--no { background: #541e1b !important; }
body.avlu-site-polish .case-boundary-card--no :is(h2, p, li) { color: #fff !important; }
body.avlu-site-polish .ref-runtime-note { color: #183151 !important; background: #eaf1fc !important; }
html[data-theme="dark"] body.avlu-site-polish .source-query-card :is(p, a, strong, span) { color: #bdd5f7 !important; }
html[data-theme="dark"] body.avlu-site-polish .source-query-card :is(h3, .client-source-address) { color: #bdd5f7 !important; }
html[data-theme="light"] body.avlu-site-polish .authority-canvas :is(strong, span, b, li) { color: #23405d !important; }

/* Presentation cards and text share the same explicit theme palette. */
body.route-presentation {
  --audit-slide: #f8f5ed;
  --audit-card: #fffdf8;
  --audit-ink: #172b46;
  --audit-muted: #405773;
}
html[data-theme="dark"] body.route-presentation {
  --audit-slide: #071426;
  --audit-card: #10243e;
  --audit-ink: #eff5ff;
  --audit-muted: #bfd0e8;
}
body.route-presentation .presentation-slide:not(.presentation-slide--hero):not(.presentation-slide--close) {
  color: var(--audit-ink) !important;
  background: var(--audit-slide) !important;
}
body.route-presentation .presentation-slide:not(.presentation-slide--hero):not(.presentation-slide--close) :is(h2, h3, strong, span, li) {
  color: var(--audit-ink) !important;
}
body.route-presentation .presentation-slide:not(.presentation-slide--hero):not(.presentation-slide--close) p { color: var(--audit-muted) !important; }
body.route-presentation :is(.presentation-funnel article, .presentation-gates article, .presentation-workflow article, .presentation-simulation-grid article, .presentation-simulation-example, .presentation-formula, .presentation-proof-strip, .presentation-status) {
  background: var(--audit-card) !important;
  color: var(--audit-ink) !important;
}
body.route-presentation .presentation-truth { background: var(--audit-card) !important; }
html[data-theme="dark"] body.avlu-site-polish :is(.authority-status__grid b, .authority-promotion-rule > div > span, .authority-gate-grid > article > span) { color: #adceff !important; }
html[data-theme="dark"] body.avlu-site-polish.route-simulation-lab :is(table, tbody, tr, td) { background: #0b182b !important; }
html[data-theme="dark"] body.avlu-site-polish.route-simulation-lab :is(.simulation-kicker, .simulation-packet-grid > article > span, .simulation-provenance > div > span, .simulation-table-card__head span, .simulation-record-button) { color: #adceff !important; }
html[data-theme="dark"] body.avlu-site-polish.route-simulation-lab .simulation-artifacts strong { color: #adceff !important; }

/* These surfaces are deliberately dark in either theme. Pair their foregrounds. */
body.avlu-site-polish .avlu-answer-snap {
  --ref-muted: #bdcce2;
  --ref-copy: #bdcce2;
}
body.avlu-site-polish .avlu-answer-snap :is(.avlu-answer-snap__lead, .simple-trust-line, .simple-trust-line span) {
  color: #bdcce2 !important;
}
body.avlu-site-polish .avlu-answer-snap :is(p, a:not(.v13-btn)) { color: #bdcce2; }
body.avlu-site-polish .avlu-answer-snap strong { color: #f5f8ff; }
body.avlu-site-polish .simple-summary-card__head h2 { color: #f5f8ff !important; }
body.avlu-site-polish .ref-pilot-offer__shell :is(h2, h3) { color: #f5f8ff !important; }
body.avlu-site-polish .ref-pilot-offer__eyebrow { color: #b6d2ff !important; }

body.avlu-site-polish .v13-footer {
  color: #dce7f7 !important;
  background: #07101d !important;
}
body.avlu-site-polish .v13-footer :is(a, p, h3, span, strong) { color: #dce7f7 !important; }
body.avlu-site-polish .v13-footer a:hover { color: #ffffff !important; }
body.avlu-site-polish .v13-footer input { color: #15243b; background: #fff; }

/* Keep the unavailable-submission message readable before a visitor fills the form. */
body.avlu-site-polish .v13-validation-form > .client-panel__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
body.avlu-site-polish [data-quote-status] {
  width: 100%;
  max-width: none;
  padding: 12px;
  color: #183151 !important;
  background: #eaf1fc !important;
  font-size: 14px;
  line-height: 1.5;
  white-space: normal;
}

html[data-theme="dark"] body.avlu-site-polish .simple-proof-disclosure > summary { color: #f5f8ff !important; }
html[data-theme="dark"] body.avlu-site-polish .avlu-section-index { color: #a9c8ee !important; opacity: 1; }
html[data-theme="dark"] body.avlu-site-polish .vin-photo-capture { background: #0b1b32 !important; }
html[data-theme="dark"] body.avlu-site-polish .vin-photo-capture :is(p, label, .intake-mode-label) { color: #c6d7ed !important; }
html[data-theme="dark"] body.avlu-site-polish :is(.ref-tip, .intake-quick-start) { background: #0b1b32; color: #c6d7ed; }
html[data-theme="dark"] body.avlu-site-polish .ref-contact-methods a { color: #b6d2ff !important; }
html[data-theme="dark"] body.avlu-site-polish .ref-contact-layout :is(h3, h4) { color: #f5f8ff !important; }

body.research-page .v13-header__actions > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 40px;
  min-height: 40px;
}
html[data-theme="dark"] body.avlu-site-polish .ref-contact-layout p { color: #c6d7ed; }
html[data-theme="dark"] body.avlu-site-polish .craft-section-number { color: #f4ad9c !important; }
html[data-theme="dark"] body.avlu-site-polish.route-evidence :is(table, tbody, tr, td) { background: #0b182b !important; }
html[data-theme="dark"] body.avlu-site-polish :is(.v13-validation-fieldset, .v13-validation-form) { background: #0b182b !important; }
html[data-theme="dark"] body.avlu-site-polish :is(.v13-proof-box .v13-icon, .secure-handoff__status-label, .intake-mode-label) { color: #adceff !important; }
html[data-theme="dark"] body.avlu-site-polish .avlu-intake-section-state { background: #162c49 !important; color: #d9e9ff !important; }
html[data-theme="dark"] body.avlu-site-polish .ref-runtime-note { background: #0b182b !important; color: #d9e9ff !important; }
html[data-theme="dark"] body.avlu-site-polish .case-walkthrough__proof > p { background: #332910 !important; color: #ffe8b8 !important; }
html[data-theme="dark"] body.avlu-site-polish .case-walkthrough__proof > p b { color: #ffe8b8 !important; }
body.avlu-site-polish .v13-data-badge.is-green { color: #14532d !important; background: #e7fff0 !important; }
body.avlu-site-polish .v13-data-badge.is-amber { color: #663f06 !important; background: #fff3d4 !important; }
body.avlu-site-polish .v13-data-badge.is-red { color: #7f1d1d !important; background: #ffe4e4 !important; }
body.avlu-site-polish .v13-data-badge.is-blue { color: #173c78 !important; background: #e6efff !important; }
html[data-theme="dark"] body.avlu-site-polish .case-template-file__grid > div > span { color: #adceff !important; background: #162c49 !important; }
html[data-theme="dark"] body.avlu-site-polish.route-feedback .ref-panel > div > span { color: #d1dded !important; }
html[data-theme="dark"] body.avlu-site-polish .v13-validation-boundary { background: #332910 !important; }
html[data-theme="dark"] body.avlu-site-polish .v13-validation-boundary :is(strong, p) { color: #ffe8b8 !important; }

@media (max-width: 720px) {
  body.avlu-site-polish .v13-header__inner {
    gap: 8px;
    width: calc(100% - 24px);
    min-width: 0;
    flex-wrap: wrap;
  }
  body.avlu-site-polish .v13-header__actions { gap: 6px; min-width: 0; margin-left: auto; }
  body.avlu-site-polish .v13-header__actions > .v13-btn {
    min-width: 0;
    padding-inline: 8px;
    font-size: 10px;
    white-space: normal;
  }
  body.avlu-site-polish .v13-header__actions :is(.v13-menu, .v13-theme-toggle) {
    flex: 0 0 auto;
    min-height: 44px;
  }
  body.avlu-site-polish .v13-menu { padding-inline: 8px; }

  /* The review-card stamp is decorative; keep it out of the mobile heading flow. */
  body.route-feedback #feedback form.ref-panel::before {
    display: none;
  }

  body.route-feedback #feedback form.ref-panel .ref-form-head {
    padding-top: 0;
    padding-bottom: 20px;
  }
}
/* Final contrast findings from the complete public-route capture. */
@media (max-width: 360px) {
  body.avlu-site-polish .v13-header__inner { display: flex !important; flex-wrap: wrap !important; }
  body.avlu-site-polish .v13-header__actions { flex: 0 0 100%; justify-content: space-between; margin-left: 0; }
  body.avlu-site-polish .v13-header .v13-nav { position: absolute !important; top: 100% !important; }
  body.route-client-review .avlu-intake-rail { grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)) !important; }
}
html[data-theme="light"] .presentation-campaign-strip > div,
html[data-theme="light"] .presentation-question { background: #edf3fb !important; }
html[data-theme="dark"] body.route-presentation.avlu-site-polish .presentation-slide .presentation-truth--lead > span { color: #17395f !important; background: #e9f2ff !important; }
html[data-theme="dark"] .route-feedback .ref-panel > div > span[style*="border-radius:50%"] {
  background: #124580 !important; color: #fff !important;
}
html[data-theme="light"] body.route-feedback .dealer-listing-field__help { color: #526379 !important; }

/*
  AVLU editorial Batch B
  Final visual-only layer. Keep route behavior, content, and state styling intact.
*/

/* Remove nonessential transition chrome without removing focus or validation states. */
html[data-avlu-site-polish]::view-transition-old(root),
html[data-avlu-site-polish]::view-transition-new(root),
body.avlu-site-polish .avlu-route-curtain,
body.avlu-site-polish .avlu-route-curtain::before,
body.avlu-site-polish .avlu-route-curtain::after,
body.avlu-site-polish .avlu-site-progress {
  animation: none !important;
  display: none !important;
}

body.avlu-site-polish [data-avlu-tactile].is-released,
body.avlu-site-polish .v13-btn.is-released,
body.avlu-site-polish [role="tab"].is-released,
body.avlu-site-polish summary.is-released,
body.avlu-site-polish [role="status"].is-status-confirmed,
body.avlu-site-polish [aria-live].is-status-confirmed {
  animation: none !important;
  filter: none !important;
}

body.avlu-site-polish a[data-avlu-route-link].is-route-armed {
  filter: none !important;
}

body.avlu-site-polish label[data-avlu-field-state="filled"]::after {
  display: none !important;
}

/* Shared public chrome: crisp rules, no floating or glass treatment. */
body.avlu-site-polish .v13-header {
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.avlu-site-polish .v13-nav {
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.avlu-site-polish .v13-brand,
body.avlu-site-polish .v13-page-hero h1,
body.avlu-site-polish .ref-page-hero h1,
body.avlu-site-polish .avlu-intake-ignition-hero h1 {
  text-shadow: none !important;
}

body.avlu-site-polish .v13-footer::before,
body.avlu-site-polish .footer::before,
body.avlu-site-finish :is(.ref-cta, .v13-cta, .simulation-cta, .authority-cta, .client-section--cta)::after {
  display: none !important;
}

/* The generated hero signal stays useful as a compact editorial label. */
body.avlu-site-polish .avlu-page-signal {
  top: clamp(20px, 3vw, 34px);
  width: min(190px, 22vw);
  gap: 4px;
  padding: 9px 11px 10px;
  border: 1px solid rgba(161, 194, 236, 0.42);
  border-radius: 2px;
  background: #10243e !important;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.16);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.avlu-site-polish .avlu-page-signal__code {
  font-size: 0.52rem;
  letter-spacing: 0.11em;
}

body.avlu-site-polish .avlu-page-signal__line {
  font-size: clamp(0.96rem, 1.3vw, 1.2rem);
  line-height: 1.08;
}

body.avlu-site-polish .avlu-page-signal__note {
  font-size: 0.5rem;
  line-height: 1.3;
}

/* Homepage: retain the survey-first composition with only a lighter card finish. */
body.research-page .survey-card {
  border-radius: 14px;
  box-shadow: 0 4px 0 rgba(16, 44, 40, 0.08);
}

/* Client Review: preserve the form and readiness console, flatten its presentation shell. */
html[data-theme="dark"] body.route-client-review .v13-header::after,
html[data-theme="dark"] body.route-client-review .avlu-intake-ignition-hero::before,
html[data-theme="dark"] body.route-client-review .avlu-intake-ignition-hero::after {
  display: none !important;
}

html[data-theme="dark"] body.route-client-review :is(
  .v13-header,
  .avlu-intake-ignition-hero,
  .client-panel,
  .ref-panel,
  .client-card,
  .intake-quick-start,
  .readiness-console
) {
  border-color: rgba(126, 169, 237, 0.34) !important;
  background: #071426 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-theme="dark"] body.route-client-review .v13-brand::before {
  box-shadow: none !important;
}

html[data-theme="dark"] body.route-client-review .avlu-intake-ignition-hero :is(h1, h1 em) {
  text-shadow: none !important;
}

html[data-theme="dark"] body.route-client-review :is(.v13-btn--primary, .v13-btn--secondary) {
  box-shadow: none !important;
  transform: none;
}

/* Dealer Validation: make the quote preview and impact numbers carry the emphasis. */
html[data-theme="dark"] body.route-dealer-validation .v13-quote-preview::before,
html[data-theme="dark"] body.route-dealer-validation .v13-quote-preview::after {
  display: none !important;
}

html[data-theme="dark"] body.route-dealer-validation .v13-quote-preview {
  border-color: rgba(126, 169, 237, 0.42) !important;
  background: #071426 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-theme="dark"] body.route-dealer-validation .v13-quote-stack > div {
  background: #0b1b32 !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body.route-dealer-validation .v13-quote-impact {
  background: #10243e !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body.route-dealer-validation .v13-quote-impact__arrow {
  text-shadow: none !important;
}

/* Evidence: keep the score and metrics, remove the glossy scorecard treatment. */
html[data-theme="dark"] body.route-evidence .evidence-scorecard-shell {
  border-color: rgba(126, 169, 237, 0.42) !important;
  border-radius: 3px !important;
  background: #071426 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-theme="dark"] body.route-evidence .evidence-scorecard-shell::before {
  display: none !important;
}

html[data-theme="dark"] body.route-evidence .evidence-scorecard-shell__head,
html[data-theme="dark"] body.route-evidence .evidence-scorecard-shell__total,
html[data-theme="dark"] body.route-evidence .evidence-scorecard-shell__metric,
html[data-theme="dark"] body.route-evidence .evidence-scorecard-shell__boundary,
html[data-theme="dark"] body.route-evidence .evidence-scorecard-shell__link {
  background: #10243e !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body.route-evidence .evidence-scorecard-shell__head > b {
  border-radius: 3px !important;
  background: #17395f !important;
}

html[data-theme="dark"] body.route-evidence .evidence-scorecard-shell__total > strong {
  text-shadow: none !important;
}

/* Simulation Lab: flat navy hero, scoreboard, cards, and single-accent meters. */
html[data-theme="dark"] body.route-simulation-lab .simulation-hero {
  background: #06162f !important;
}

html[data-theme="dark"] body.route-simulation-lab .simulation-hero::before,
html[data-theme="dark"] body.route-simulation-lab .simulation-hero::after {
  display: none !important;
}

html[data-theme="dark"] body.route-simulation-lab .simulation-scoreboard {
  border-radius: 8px !important;
  background: #0b1b32 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-theme="dark"] body.route-simulation-lab .simulation-scoreboard__grid div {
  border-radius: 4px !important;
  background: #10243e !important;
}

html[data-theme="dark"] body.route-simulation-lab :is(
  .simulation-packet-grid article,
  .simulation-table-card,
  .simulation-detail,
  .simulation-boundary-card,
  .simulation-next,
  .simulation-provenance,
  .simulation-filterbar
) {
  border-radius: 8px !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body.route-simulation-lab :is(
  .simulation-mix__track,
  .simulation-mix__fill,
  .simulation-meter,
  .simulation-meter__fill
) {
  border-radius: 2px !important;
  background: #2f83ff !important;
}

html[data-theme="dark"] body.route-simulation-lab .simulation-label {
  border-radius: 3px !important;
}

/* Phone layout: compact footer and consistent header density. */
@media (max-width: 760px) {
  body.avlu-site-polish .v13-header__inner {
    min-height: 60px;
    padding-block: 5px;
  }

  body.avlu-site-polish .v13-nav {
    box-shadow: none !important;
  }

  body.avlu-site-polish .v13-footer {
    padding-block: 28px 16px !important;
  }

  body.avlu-site-polish .v13-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px 14px !important;
  }

  body.avlu-site-polish .v13-footer__brand {
    grid-column: 1 / -1;
  }

  body.avlu-site-polish .v13-footer__bottom {
    gap: 6px 12px !important;
    margin-top: 18px !important;
    padding-top: 12px !important;
  }

  body.avlu-site-polish .v13-footer__bottom > span:nth-child(2) {
    display: none;
  }

  body.avlu-site-polish .avlu-footer-version {
    display: none !important;
  }

  body.avlu-site-polish .avlu-page-signal {
    position: relative;
    top: auto;
    right: auto;
    width: fit-content;
    max-width: min(100%, 250px);
    margin-top: 16px;
    padding: 8px 10px 9px;
  }

  body.avlu-site-polish .avlu-page-signal__line {
    font-size: 1rem;
  }

  body.avlu-site-polish .avlu-page-signal__note {
    font-size: 0.46rem;
  }
}

@media (max-width: 420px) {
  body.avlu-site-polish .v13-footer__grid {
    grid-template-columns: 1fr 1fr !important;
  }

  body.avlu-site-polish .v13-footer__bottom {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/*
  AVLU editorial Batch C
  Route surfaces are intentionally theme-independent where the route itself is dark.
*/

/* Keep one editorial route signal; remove duplicated finish/version/navigation chrome. */
body.avlu-site-polish :is(.avlu-route-plate, .avlu-section-nav, .avlu-section-index, .avlu-page-spine) {
  display: none !important;
}

body.avlu-site-polish .avlu-page-signal__note {
  display: none;
}

body.avlu-site-polish .avlu-page-signal__code {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

@media (min-width: 761px) {
  body.avlu-site-polish .avlu-page-signal {
    position: static !important;
    grid-column: 1 / -1;
    justify-self: start;
    width: min(248px, 100%) !important;
    margin: 0 !important;
    border-radius: 2px !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* Shared flat controls and restrained component geometry. */
body.avlu-site-polish :is(
  .v13-btn,
  .avlu-intake-ignition-button,
  .simulation-record-button,
  .simulation-reset-button
) {
  border-radius: 4px !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

body.avlu-site-polish :is(
  .v13-btn,
  .avlu-intake-ignition-button,
  .simulation-record-button,
  .simulation-reset-button
):is(:hover, :focus-visible, :active) {
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

body.avlu-site-polish .v13-theme-toggle {
  --v13-toggle-width: 44px;
  --v13-toggle-height: 40px;
  --v13-toggle-min-height: 40px;
  width: 44px !important;
  min-width: 44px !important;
  height: 40px !important;
  min-height: 40px !important;
  border: 1px solid currentColor !important;
  border-radius: 4px !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

body.avlu-site-polish .v13-theme-toggle::before,
body.avlu-site-polish .v13-theme-toggle::after {
  display: none !important;
}

body.avlu-site-polish .v13-theme-toggle [data-theme-icon] {
  position: static !important;
  display: grid !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  border-radius: 2px !important;
  place-items: center;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Remove remaining route grids, orbital lighting, and decorative hero layers. */
body.route-client-review .avlu-intake-ignition-hero,
body.route-dealer-validation .v13-page-hero,
body.route-evidence .v13-page-hero,
body.route-simulation-lab .simulation-hero {
  background-image: none !important;
}

body.route-dealer-validation .v13-page-hero,
body.route-evidence .v13-page-hero {
  background: #071426 !important;
}

body.route-simulation-lab .simulation-hero {
  background: #06162f !important;
}

body.route-dealer-validation .v13-page-hero__grid,
body.route-evidence .v13-page-hero__grid,
body.route-simulation-lab .simulation-hero__grid {
  background: #071426 !important;
  background-image: none !important;
}

body.route-dealer-validation {
  background-image: none !important;
}

body.route-dealer-validation .v13-page-hero__lead,
body.route-dealer-validation .v13-page-hero__actions,
body.route-dealer-validation .v13-page-hero__meta,
body.route-evidence .v13-page-hero__lead {
  background-image: none !important;
}

body.route-dealer-validation .v13-page-hero__lead::before,
body.route-dealer-validation .v13-page-hero__actions::before,
body.route-dealer-validation .v13-page-hero__meta::before,
body.route-evidence .v13-page-hero__lead::before {
  display: none !important;
  content: none !important;
  background: none !important;
}

body.route-dealer-validation .v13-page-hero__grid::before,
body.route-dealer-validation .v13-page-hero__grid::after,
body.route-evidence .v13-page-hero__grid::before,
body.route-evidence .v13-page-hero__grid::after,
body.route-simulation-lab .simulation-hero__grid::before,
body.route-simulation-lab .simulation-hero__grid::after {
  display: none !important;
  background: none !important;
}

body.route-client-review .avlu-intake-ignition-hero::before,
body.route-client-review .avlu-intake-ignition-hero::after,
body.route-dealer-validation .v13-page-hero::before,
body.route-dealer-validation .v13-page-hero::after,
body.route-evidence .v13-page-hero::before,
body.route-evidence .v13-page-hero::after,
body.route-simulation-lab .simulation-hero::before,
body.route-simulation-lab .simulation-hero::after {
  display: none !important;
  background: none !important;
}

/* More efficient hero hierarchy across the five editorial routes. */
body.route-how-it-works .ref-page-hero,
body.route-client-review .ref-page-hero,
body.route-dealer-validation .v13-page-hero,
body.route-evidence .v13-page-hero,
body.route-simulation-lab .simulation-hero {
  padding-top: clamp(64px, 6vw, 96px) !important;
  padding-bottom: clamp(58px, 6vw, 88px) !important;
}

body.route-how-it-works .ref-page-hero > .ref-container,
body.route-client-review .ref-page-hero > .ref-container,
body.route-dealer-validation .v13-page-hero > .v13-container,
body.route-evidence .v13-page-hero > .v13-container,
body.route-simulation-lab .simulation-hero > .v13-container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.route-how-it-works .ref-page-hero h1 {
  color: #17253d !important;
  font-size: clamp(3.4rem, 5.4vw, 6rem) !important;
  opacity: 1 !important;
}

body.route-how-it-works .ref-page-hero {
  color: #17253d !important;
  background: #f7f3eb !important;
}

body.route-how-it-works .ref-page-hero :is(.ref-eyebrow, .simple-summary-card__head > span) {
  color: #315b8b !important;
  opacity: 1 !important;
}

body.route-how-it-works .ref-page-hero :is(
  .ref-lead,
  .simple-summary-row small,
  .simple-trust-line
) {
  color: #4c586a !important;
  opacity: 1 !important;
}

body.route-how-it-works .ref-page-hero :is(
  .simple-summary-card,
  .simple-summary-card__head,
  .simple-summary-row,
  .simple-detail,
  .simple-detail summary
) {
  border-color: #c8d5e5 !important;
  color: #17253d !important;
  background: #fffdf8 !important;
  opacity: 1 !important;
}

body.route-how-it-works .ref-page-hero :is(
  .simple-summary-card__head h2,
  .simple-summary-row strong,
  .simple-detail summary
) {
  color: #17253d !important;
  opacity: 1 !important;
}

body.route-client-review .avlu-intake-ignition-hero h1,
body.route-dealer-validation .v13-page-hero h1,
body.route-evidence .v13-page-hero h1,
body.route-simulation-lab .simulation-hero h1 {
  max-width: 100%;
  font-size: clamp(3.35rem, 5.2vw, 5.8rem) !important;
  line-height: 0.96 !important;
  overflow-wrap: normal;
}

/* Evidence: restore an explicit flat scorecard layout under either theme. */
body.route-evidence .evidence-scorecard-shell {
  position: relative;
  display: grid !important;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid rgba(142, 178, 226, 0.48) !important;
  border-radius: 6px !important;
  color: #eef5ff !important;
  background: #0b1b32 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.route-evidence .evidence-scorecard-shell::before {
  display: none !important;
}

body.route-evidence .evidence-scorecard-shell__head {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(142, 178, 226, 0.28);
  color: #dce7f7 !important;
  background: #10243e !important;
  font-size: 0.75rem;
  line-height: 1.35;
}

body.route-evidence .evidence-scorecard-shell__head > :is(span, b) {
  color: #dce7f7 !important;
}

body.route-evidence .evidence-scorecard-shell__head > b {
  flex: 0 0 auto;
  padding: 4px 6px;
  border: 1px solid rgba(142, 178, 226, 0.34);
  border-radius: 2px !important;
  background: transparent !important;
}

body.route-evidence .evidence-scorecard-shell__total {
  display: grid !important;
  gap: 2px;
  padding: 22px 18px 18px;
  border-bottom: 1px solid rgba(142, 178, 226, 0.28);
  background: #0b1b32 !important;
}

body.route-evidence .evidence-scorecard-shell__total > strong {
  color: #f5f8ff !important;
  font-size: clamp(4rem, 7vw, 6.8rem);
  line-height: 0.82;
  letter-spacing: -0.055em;
  text-shadow: none !important;
}

body.route-evidence .evidence-scorecard-shell__total > span {
  color: #bfd0e8 !important;
  font-size: 0.82rem;
  font-weight: 750;
}

body.route-evidence .evidence-scorecard-shell__grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid rgba(142, 178, 226, 0.28);
}

body.route-evidence .evidence-scorecard-shell__metric {
  display: grid !important;
  min-width: 0;
  gap: 5px;
  padding: 15px 16px;
  border: 0 !important;
  border-right: 1px solid rgba(142, 178, 226, 0.22) !important;
  border-bottom: 1px solid rgba(142, 178, 226, 0.22) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.route-evidence .evidence-scorecard-shell__metric:nth-child(2n) {
  border-right: 0 !important;
}

body.route-evidence .evidence-scorecard-shell__metric:nth-last-child(-n + 2) {
  border-bottom: 0 !important;
}

body.route-evidence .evidence-scorecard-shell__metric > strong {
  color: #f5f8ff !important;
  font-size: clamp(1.35rem, 2.5vw, 2.25rem);
  line-height: 1;
}

body.route-evidence .evidence-scorecard-shell__metric > span {
  color: #bfd0e8 !important;
  font-size: 0.72rem;
  line-height: 1.35;
}

body.route-evidence .evidence-scorecard-shell__boundary {
  margin: 0 !important;
  padding: 14px 16px;
  color: #c7d6ea !important;
  background: #10243e !important;
  font-size: 0.82rem;
  line-height: 1.5;
}

body.route-evidence .evidence-scorecard-shell__boundary b {
  color: #f5f8ff !important;
}

body.route-evidence .evidence-scorecard-shell__link {
  display: block;
  padding: 12px 16px;
  border-top: 1px solid rgba(142, 178, 226, 0.28);
  border-radius: 0 !important;
  color: #dbe9ff !important;
  background: #071426 !important;
  box-shadow: none !important;
}

/* Client Review: turn the stateful dial into a flat, rectangular source-status control. */
body.route-client-review .avlu-intake-console,
body.route-client-review .avlu-intake-console__plate {
  overflow: hidden;
  border: 1px solid rgba(75, 111, 158, 0.52) !important;
  border-radius: 6px !important;
  background: #0b1b32 !important;
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.route-client-review .avlu-intake-console {
  padding: 0 !important;
}

body.route-client-review .avlu-intake-console::before,
body.route-client-review .avlu-intake-console::after,
body.route-client-review .avlu-intake-console__plate::before,
body.route-client-review .avlu-intake-console__plate::after {
  display: none !important;
}

body.route-client-review .avlu-intake-console__plate {
  display: grid !important;
  gap: 0 !important;
  padding: 18px !important;
}

body.route-client-review .avlu-intake-console__dial {
  position: relative !important;
  inset: auto !important;
  display: grid !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 116px !important;
  height: auto !important;
  aspect-ratio: auto !important;
  margin: 18px 0 !important;
  padding: 22px !important;
  border: 1px solid rgba(142, 178, 226, 0.42) !important;
  border-radius: 4px !important;
  place-items: start;
  color: #f5f8ff !important;
  text-align: left;
  background: #071426 !important;
  background-image: none !important;
  box-shadow: none !important;
  transform: none !important;
}

body.route-client-review .avlu-intake-console__dial::before,
body.route-client-review .avlu-intake-console__dial::after {
  display: none !important;
}

body.route-client-review .avlu-intake-console__dial-copy {
  position: static !important;
  display: grid;
  width: auto !important;
  height: auto !important;
  gap: 6px;
  border: 0 !important;
  border-radius: 0 !important;
  color: inherit !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

body.route-client-review .avlu-intake-console__dial-copy > span {
  color: #9fb7d6 !important;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

body.route-client-review .avlu-intake-console__dial-copy > strong {
  color: #f5f8ff !important;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1;
}

body.route-client-review .avlu-intake-console__states {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(142, 178, 226, 0.28);
  border-bottom: 1px solid rgba(142, 178, 226, 0.28);
}

body.route-client-review .avlu-intake-console__state {
  min-width: 0;
  padding: 13px 10px !important;
  border: 0 !important;
  border-right: 1px solid rgba(142, 178, 226, 0.22) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.route-client-review .avlu-intake-console__state:last-child {
  border-right: 0 !important;
}

body.route-client-review .avlu-intake-console__foot {
  color: #aebfd6 !important;
}

html[data-theme="light"] body.route-client-review .avlu-intake-ignition-hero__lead {
  color: #4c5562 !important;
}

html[data-theme="light"] body.route-client-review .avlu-intake-ignition-hero__lead strong {
  color: #17253d !important;
}

html[data-theme="light"] body.route-client-review :is(
  .avlu-intake-ignition-hero__privacy,
  .avlu-intake-ignition-hero__rules,
  .avlu-intake-ignition-hero__rules span
) {
  color: #315b8b !important;
  opacity: 1 !important;
}

html[data-theme="dark"] body.route-client-review :is(
  .avlu-intake-ignition-hero__lead,
  .avlu-intake-ignition-hero__privacy,
  .avlu-intake-ignition-hero__rules,
  .avlu-intake-ignition-hero__rules span
) {
  color: #c6d7ed !important;
  opacity: 1 !important;
}

/* Dealer Validation: flat proof sheet with rules rather than nested cards. */
body.route-dealer-validation .v13-quote-preview {
  overflow: hidden;
  border: 1px solid #b8c5d7 !important;
  border-radius: 6px !important;
  background: #f8f5ed !important;
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.route-dealer-validation .v13-quote-preview::before,
body.route-dealer-validation .v13-quote-preview::after {
  display: none !important;
}

body.route-dealer-validation .v13-quote-preview__head :is(span, strong),
body.route-dealer-validation .v13-quote-stack :is(span, strong),
body.route-dealer-validation .v13-quote-impact :is(span, strong) {
  color: #17253d !important;
  -webkit-text-fill-color: #17253d !important;
}

body.route-dealer-validation .v13-quote-preview__badge {
  border: 1px solid #9eb6d3 !important;
  border-radius: 2px !important;
  color: #173c78 !important;
  background: #e7eef8 !important;
  box-shadow: none !important;
}

body.route-dealer-validation .v13-quote-stack {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 !important;
  border-top: 1px solid #c9d2df;
  border-bottom: 1px solid #c9d2df;
}

body.route-dealer-validation .v13-quote-stack > div {
  min-width: 0;
  border: 0 !important;
  border-right: 1px solid #c9d2df !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.route-dealer-validation .v13-quote-stack > div:last-child {
  border-right: 0 !important;
}

body.route-dealer-validation .v13-quote-stack .is-delta {
  background: #edf3fb !important;
}

body.route-dealer-validation .v13-quote-stack .is-delta strong {
  color: #173c78 !important;
  -webkit-text-fill-color: #173c78 !important;
}

body.route-dealer-validation .v13-quote-impact {
  border: 1px solid #17253d !important;
  border-radius: 4px !important;
  background: #e7eef8 !important;
  background-image: none !important;
  box-shadow: none !important;
}

body.route-dealer-validation .v13-quote-impact__arrow {
  color: #315b8b !important;
  text-shadow: none !important;
}

body.route-dealer-validation .v13-quote-preview > p {
  color: #4c5562 !important;
  -webkit-text-fill-color: #4c5562 !important;
}

/* Simulation Lab: solid navy, opaque data panel, and stronger supporting copy. */
body.route-simulation-lab .simulation-scoreboard {
  overflow: hidden;
  border: 1px solid rgba(142, 178, 226, 0.48) !important;
  border-radius: 6px !important;
  color: #eef5ff !important;
  background: #10243e !important;
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.route-simulation-lab .simulation-scoreboard__hero {
  border-top: 1px solid rgba(142, 178, 226, 0.24);
  border-bottom: 1px solid rgba(142, 178, 226, 0.24);
}

body.route-simulation-lab .simulation-scoreboard__hero strong {
  font-size: clamp(4.5rem, 8vw, 7.4rem) !important;
  line-height: 0.86;
}

body.route-simulation-lab .simulation-scoreboard__grid {
  gap: 0 !important;
  border-top: 0 !important;
}

body.route-simulation-lab .simulation-scoreboard__grid div {
  padding: 16px !important;
  border: 0 !important;
  border-right: 1px solid rgba(142, 178, 226, 0.22) !important;
  border-bottom: 1px solid rgba(142, 178, 226, 0.22) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.route-simulation-lab .simulation-scoreboard__grid div:nth-child(2n) {
  border-right: 0 !important;
}

body.route-simulation-lab .simulation-scoreboard__grid strong {
  font-size: clamp(1.7rem, 3vw, 2.4rem) !important;
}

body.route-simulation-lab :is(.simulation-label, .simulation-scoreboard__head > span) {
  border-radius: 2px !important;
  background-image: none !important;
  box-shadow: none !important;
}

body.route-simulation-lab :is(
  .simulation-lead,
  .simulation-boundary,
  .simulation-data-link,
  .simulation-scoreboard__note
) {
  color: #e2ecf9 !important;
  -webkit-text-fill-color: #e2ecf9 !important;
  opacity: 1 !important;
}

body.route-simulation-lab :is(
  .simulation-boundary,
  .simulation-scoreboard__note,
  .simulation-scoreboard > p
) {
  color: #f1f6ff !important;
  -webkit-text-fill-color: #f1f6ff !important;
}

body.route-simulation-lab .simulation-data-link a {
  color: #dbe9ff !important;
}

body.route-simulation-lab :is(
  .simulation-packet-grid article,
  .simulation-table-card,
  .simulation-detail,
  .simulation-boundary-card,
  .simulation-next,
  .simulation-provenance,
  .simulation-filterbar
) {
  border-radius: 6px !important;
  box-shadow: none !important;
}

/* Homepage reward: retain amount, mechanics, and structure in the editorial palette. */
body.research-page .reward-card {
  border: 1px solid #9eb6d3;
  border-radius: 6px;
  color: #17253d;
  background: #dce7f7;
  box-shadow: none;
}

body.research-page .reward-card :is(strong, p, a, .reward-value) {
  color: #17253d;
}

/* Mobile: brand + menu primary row; compact utility treatment below. */
@media (max-width: 760px) {
  body.avlu-site-polish .v13-header__inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 7px 9px !important;
    min-height: 0;
    padding-block: 8px;
  }

  body.avlu-site-polish .v13-brand {
    grid-column: 1 / 3;
    grid-row: 1;
    align-self: center;
  }

  body.avlu-site-polish .v13-header__actions {
    display: contents !important;
  }

  body.avlu-site-polish .v13-menu {
    grid-column: 3;
    grid-row: 1;
    min-height: 40px !important;
    border-radius: 4px !important;
    box-shadow: none !important;
  }

  body.avlu-site-polish .v13-header__actions > .v13-btn {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    min-height: 36px !important;
    padding: 8px 10px !important;
    font-size: 0.66rem !important;
    white-space: nowrap !important;
  }

  body.avlu-site-polish .v13-login {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    padding: 8px 4px;
    font-size: 0.67rem;
  }

  body.avlu-site-polish .v13-theme-toggle {
    grid-column: 3;
    grid-row: 2;
    align-self: center;
  }

  body.avlu-site-polish .v13-header__actions:not(.has-theme-toggle)::before {
    display: none !important;
  }

  body.avlu-site-polish .v13-nav {
    top: 100% !important;
  }

  body.route-how-it-works .ref-page-hero,
  body.route-client-review .ref-page-hero,
  body.route-dealer-validation .v13-page-hero,
  body.route-evidence .v13-page-hero,
  body.route-simulation-lab .simulation-hero {
    padding-top: 36px !important;
    padding-bottom: 48px !important;
  }

  body.route-how-it-works .ref-page-hero h1,
  body.route-client-review .avlu-intake-ignition-hero h1,
  body.route-dealer-validation .v13-page-hero h1,
  body.route-evidence .v13-page-hero h1,
  body.route-simulation-lab .simulation-hero h1 {
    max-width: 100% !important;
    font-size: clamp(2.55rem, 12vw, 3.45rem) !important;
    line-height: 0.98 !important;
    letter-spacing: -0.04em !important;
  }

  body.route-evidence .v13-page-hero h1 {
    overflow: visible !important;
    overflow-wrap: break-word;
    word-break: normal;
  }

  body.route-evidence .v13-page-hero .v13-eyebrow {
    max-width: 100% !important;
  }

  body.route-evidence .v13-page-hero .v13-eyebrow time {
    display: inline !important;
    white-space: normal !important;
  }

  body.route-evidence .v13-page-hero__grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.route-evidence .v13-page-hero__grid > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.route-evidence .evidence-scorecard-shell__grid {
    grid-template-columns: 1fr;
  }

  body.route-evidence .evidence-scorecard-shell__metric,
  body.route-evidence .evidence-scorecard-shell__metric:nth-child(2n),
  body.route-evidence .evidence-scorecard-shell__metric:nth-last-child(-n + 2) {
    border-right: 0 !important;
    border-bottom: 1px solid rgba(142, 178, 226, 0.22) !important;
  }

  body.route-evidence .evidence-scorecard-shell__metric:last-child {
    border-bottom: 0 !important;
  }

  body.route-client-review .avlu-intake-console__states {
    grid-template-columns: 1fr;
  }

  body.route-client-review .avlu-intake-console__state {
    border-right: 0 !important;
    border-bottom: 1px solid rgba(142, 178, 226, 0.22) !important;
  }

  body.route-client-review .avlu-intake-console__state:last-child {
    border-bottom: 0 !important;
  }

  body.route-dealer-validation .v13-quote-stack {
    grid-template-columns: 1fr;
  }

  body.route-dealer-validation .v13-quote-stack > div {
    border-right: 0 !important;
    border-bottom: 1px solid #c9d2df !important;
  }

  body.route-dealer-validation .v13-quote-stack > div:last-child {
    border-bottom: 0 !important;
  }

  body.route-simulation-lab .simulation-scoreboard__hero strong {
    font-size: clamp(4rem, 21vw, 5.8rem) !important;
  }

  body.research-page .research-layout {
    gap: 24px;
    padding-top: 26px;
  }

  body.research-page .research-intro {
    padding-bottom: 0;
  }
}

@media (max-width: 420px) {
  body.avlu-site-polish .v13-header__inner {
    width: calc(100% - 20px);
  }

  body.route-evidence .evidence-scorecard-shell__head {
    align-items: flex-start;
    flex-direction: column;
  }

  body.route-simulation-lab .simulation-scoreboard__grid {
    grid-template-columns: 1fr !important;
  }

  body.route-simulation-lab .simulation-scoreboard__grid div {
    border-right: 0 !important;
  }
}

/*
  AVLU final typography normalization
  Editorial hierarchy is serif-led; operational copy stays clear and human.
  Keep technical notation mono only where it carries system meaning.
*/
.avlu-site-polish,
.research-page {
  --avlu-editorial-serif: "Source Serif 4", Georgia, serif;
  --avlu-reading-sans: "Source Sans 3", "Aptos", sans-serif;
  --avlu-technical-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-family: var(--avlu-reading-sans);
  letter-spacing: 0;
}

.avlu-site-polish :is(h1, h2, h3, .genuine-editorial-heading),
.research-page :is(h1, h2, h3) {
  font-family: var(--avlu-editorial-serif) !important;
  font-weight: 500 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.06 !important;
}

.avlu-site-polish :is(p, li, nav, a, button, label, legend, input, select, textarea, small, figcaption),
.research-page :is(p, li, nav, a, button, label, legend, input, select, textarea, small, figcaption) {
  font-family: var(--avlu-reading-sans);
  letter-spacing: 0;
}

.avlu-site-polish .v13-brand {
  font-family: var(--avlu-reading-sans) !important;
  letter-spacing: 0.08em !important;
}

.avlu-site-polish :is(.v13-nav a, .v13-login, .v13-btn, .v13-menu, .v13-eyebrow, [class*="step-label"]) {
  font-family: var(--avlu-reading-sans) !important;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.025em !important;
  line-height: 1.3;
  text-transform: none !important;
}

.avlu-site-polish :is(.v13-page-hero h1, .ref-page-hero h1, .avlu-intake-ignition-hero h1, .simulation-hero h1) {
  font-family: var(--avlu-editorial-serif) !important;
  font-weight: 500 !important;
  letter-spacing: -0.035em !important;
  line-height: 0.99 !important;
}

.avlu-site-polish :is(.v13-page-hero__lead, .ref-lead, .simulation-lead) {
  font-family: var(--avlu-reading-sans) !important;
  line-height: 1.58;
}

.avlu-site-polish :is(.v13-evidence__item strong, .v13-output-metrics strong, .v13-quote-stack strong, .v13-quote-impact strong, [data-evidence-metric], [data-queue-metric], [data-quote-output]) {
  font-family: var(--avlu-technical-mono) !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.avlu-site-polish :is(time, table, thead th, .ref-eyebrow, .intake-mode-label, .v13-ledger-status, .v13-campaign-summary__head > span, [data-receipt-id], .simulation-id, .simulation-code, .simulation-version, .simulation-status, .simulation-label, .simulation-record-button) {
  font-family: var(--avlu-technical-mono) !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.avlu-site-polish.route-simulation-lab :is(.simulation-eyebrow, .simulation-kicker, .simulation-scoreboard__head > span, .simulation-provenance > div > span) {
  font-family: var(--avlu-reading-sans) !important;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.025em !important;
  line-height: 1.35;
  text-transform: none !important;
}

.avlu-site-polish.route-simulation-lab .simulation-label {
  display: block;
  width: fit-content;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.015em !important;
  line-height: 1.35;
  text-transform: none !important;
}

.research-page :is(nav a, button, .primary-button, .header-cta, .eyebrow, [class*="step-label"]) {
  font-family: var(--avlu-reading-sans) !important;
  letter-spacing: 0.025em !important;
  text-transform: none !important;
}

.avlu-site-polish :is(.v13-ledger-table th, .simulation-table-card th, .simulation-table-card td) {
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
}

.avlu-site-polish :is(label, legend, .v13-field-help, .v13-validation-help, .secure-handoff__check small, .v13-footer, .v13-footer p, .v13-footer a) {
  font-family: var(--avlu-reading-sans) !important;
  font-weight: 400;
  line-height: 1.45;
}

.avlu-site-polish :is(input, select, textarea) {
  font-family: var(--avlu-reading-sans) !important;
  font-size: 1rem;
  line-height: 1.4;
}

.avlu-site-polish .v13-footer__bottom {
  font-family: var(--avlu-reading-sans) !important;
  font-size: 0.88rem;
  letter-spacing: 0;
}

/* Generated by Site Feel; never expose implementation/version chrome to customers. */
.avlu-footer-version {
  display: none !important;
}

@media (max-width: 760px) {
  .avlu-site-polish :is(.v13-page-hero h1, .ref-page-hero h1, .avlu-intake-ignition-hero h1, .simulation-hero h1) {
    font-size: clamp(2.85rem, 13vw, 4.7rem) !important;
    line-height: 1.02 !important;
  }

  .avlu-site-polish :is(h2, .simulation-section h2, .simulation-cta h2) {
    font-size: clamp(2rem, 8vw, 3.4rem) !important;
  }

  .avlu-site-polish :is(.v13-nav a, .v13-login, .v13-btn, .v13-menu, .v13-eyebrow) {
    font-size: 0.82rem;
  }
}

/*
  Mobile header utilities belong to the opened menu, not a disconnected
  second header row. Desktop placement remains unchanged.
*/
@media (max-width: 760px) {
  body.research-page .research-header,
  body.avlu-site-polish:not(.route-login):not(.route-presentation) .v13-header__inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto !important;
    gap: 10px !important;
    min-height: 60px;
    padding-block: 7px;
  }

  body.research-page .brand,
  body.avlu-site-polish:not(.route-login):not(.route-presentation) .v13-brand {
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: center;
  }

  body.research-page .v13-header__actions,
  body.avlu-site-polish:not(.route-login):not(.route-presentation) .v13-header__actions {
    display: flex !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-items: center;
    justify-content: flex-end;
    margin: 0 !important;
  }

  body.research-page .v13-header__actions > :is(a, .v13-theme-toggle),
  body.avlu-site-polish:not(.route-login):not(.route-presentation) .v13-header__actions > :is(a, .v13-theme-toggle) {
    display: none !important;
  }

  body.research-page .v13-menu,
  body.avlu-site-polish:not(.route-login):not(.route-presentation) .v13-menu {
    display: inline-flex !important;
    grid-column: auto !important;
    grid-row: auto !important;
    min-height: 38px !important;
    padding-inline: 11px !important;
  }

  body.research-page .v13-nav,
  body.avlu-site-polish:not(.route-login):not(.route-presentation) .v13-nav {
    top: calc(100% + 6px) !important;
    gap: 3px;
    padding: 9px !important;
  }

  body.research-page .v13-nav.is-open,
  body.avlu-site-polish:not(.route-login):not(.route-presentation) .v13-nav.is-open {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
  }

  body.research-page .v13-nav > .v13-mobile-utility,
  body.avlu-site-polish:not(.route-login):not(.route-presentation) .v13-nav > .v13-mobile-utility {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 40px;
    margin: 0;
    padding: 9px 12px !important;
    border: 1px solid transparent;
    border-radius: 3px;
    box-shadow: none !important;
    font-family: var(--avlu-reading-sans, "Source Sans 3", sans-serif) !important;
    font-size: 0.82rem !important;
    font-weight: 600;
    letter-spacing: 0.015em !important;
    line-height: 1.2;
    text-transform: none !important;
  }

  body.research-page .v13-nav > .v13-mobile-route-cta,
  body.avlu-site-polish:not(.route-login):not(.route-presentation) .v13-nav > .v13-mobile-route-cta {
    margin-top: 5px;
    border-color: #3157c8 !important;
    background: #3157c8 !important;
    color: #fff !important;
    opacity: 1 !important;
  }

  body.research-page .v13-nav > .v13-theme-toggle,
  body.avlu-site-polish:not(.route-login):not(.route-presentation) .v13-nav > .v13-theme-toggle {
    width: 36px !important;
    min-width: 36px !important;
    height: 34px !important;
    min-height: 34px !important;
    margin: 4px 0 0 !important;
    padding: 0 !important;
    border-color: var(--avlu-header-line) !important;
    justify-content: center;
  }
}

/* Keep foregrounds paired with the final light/dark surfaces in either theme. */
body.route-evidence .target-evidence-trust > span,
body.route-simulation-lab .simulation-hero__copy > .simulation-label,
body.route-dealer-validation .quote-validation-hero__resources > span,
body.route-client-review .avlu-intake-console__state > span {
  color: #bfd0e8 !important;
  -webkit-text-fill-color: #bfd0e8 !important;
}

html[data-theme="light"] body.route-client-review .avlu-intake-ignition-hero__eyebrow {
  color: #315b8b !important;
  -webkit-text-fill-color: #315b8b !important;
}

html[data-theme="light"] body.route-client-review .avlu-intake-ignition-hero h1 em {
  color: #3157c8 !important;
  -webkit-text-fill-color: #3157c8 !important;
}

body.route-portal .review-tabs .ref-review-tab-actions [data-complete-review] {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: #3157c8 !important;
  border-color: #3157c8 !important;
}

/* Keep the research receipt action legible after the public cleanup layer. */
html[data-theme="dark"] body.research-page .thank-you-actions .primary-button {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* Retained product-demo surfaces keep their own readable foregrounds. */
body.avlu-site-polish .v13-header .v13-brand::after {
  content: none !important;
  display: none !important;
}

html[data-theme] body.avlu-site-polish .v13-skip-link {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: #071426 !important;
}

html[data-theme] body.avlu-site-polish .farm-calc-result :is(h3, strong, [data-farm-explanation], .farm-disclaimer) {
  color: #f8f4e8 !important;
  -webkit-text-fill-color: #f8f4e8 !important;
}

html[data-theme] body.avlu-site-polish .farm-calc-result .farm-kicker {
  color: #ffe0bd !important;
  -webkit-text-fill-color: #ffe0bd !important;
}

html[data-theme] body.avlu-site-polish .farm-calc-result .farm-result-callout {
  color: #33251c !important;
  -webkit-text-fill-color: #33251c !important;
}

html[data-theme="dark"] body.route-index.avlu-site-polish .avlu-carfax-equation__tile:not(.is-answer) strong,
html[data-theme="dark"] body.route-index.avlu-site-polish .craft-signoff :is(h3, p, strong, small),
html[data-theme="dark"] body.route-index.avlu-site-polish .craft-simulation-summary :is(h3, p, strong),
html[data-theme="dark"] body.route-index.avlu-site-polish .craft-simulation-counts span {
  color: #17253d !important;
  -webkit-text-fill-color: #17253d !important;
}

html[data-theme="dark"] body.route-index.avlu-site-polish .craft-simulation-ledger > li > span {
  color: #ffc39f !important;
  -webkit-text-fill-color: #ffc39f !important;
}

html[data-theme="dark"] body.route-index.avlu-site-polish .craft-simulation-publication > div > span {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

html[data-theme] body.route-index.avlu-site-polish .craft-quote-proof-grid > div > span:first-child,
html[data-theme] body.route-index.avlu-site-polish .craft-workbench-summary > div > span {
  color: #c6c0b5 !important;
  -webkit-text-fill-color: #c6c0b5 !important;
  opacity: 1;
}

/* Apply the existing mobile reading floors to the survey and shared chrome. */
@media (max-width: 720px) {
  body.research-page .v13-mobile-text-floor {
    font-size: 12px !important;
  }

  body.research-page .v13-mobile-body-floor,
  body.research-page .research-intro > .eyebrow {
    font-size: 14px !important;
    line-height: 1.5;
  }

  body.research-page .brand span,
  body.research-page .research-footer :is(span, a),
  body.research-page .v13-menu,
  body.avlu-site-polish .v13-menu,
  body.avlu-site-polish .v13-footer h3,
  body.avlu-site-polish .v13-footer .v13-footer__bottom :is(span, a),
  body.avlu-site-polish .simple-footer__bottom :is(span, a),
  body.route-case-study .footer :is(span, a),
  body.route-presentation .avlu-site-presentation-credit {
    font-size: 12px !important;
  }
}

