/* Roamsurance · shared visual system, 6 September 2026.
   Presentation only. Page-specific layout, disclosure and eligibility logic stay
   in their existing files. Loaded after page styles to make this the shared layer. */
:root {
  --bg: #FAFBF8;
  --page: #FAFBF8;
  --bg-deep: #EEF4E8;
  --surface: #F4F7EE;
  --surface-elev: #FFFFFF;
  --white: #FFFFFF;
  --ink: #18181A;
  --mid: #4A4C52;
  --soft: #6E6E68;
  --accent: #1A5C3A;
  --green: #1A5C3A;
  --accent-soft: #2B7A52;
  --pale: #EEF4E8;
  --warm: #F1F4ED;
  --line: #E1E6DF;
  --border: #E1E6DF;
  --lime: #D4E99A;
  --action-ink: #173B26;
  --action-hover: #C6DF85;
  --action-pressed: #B8D471;
  --panel-shadow: 0 2px 3px rgba(26,92,58,.02), 0 20px 40px -30px rgba(26,92,58,.19);
}
body[data-rs-page] { background: var(--bg); }
[data-rs-page] :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Same brand and navigation rhythm as the approved homepage. */
[data-rs-page] > nav {
  height: 88px;
  padding-inline: max(32px, calc((100vw - 1240px) / 2));
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}
[data-rs-page] .logo { font-size: 21px; font-weight: 700; gap: 11px; letter-spacing: -.65px; }
[data-rs-page] .logo-dot { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 11px; box-shadow: none; }
[data-rs-page] .logo-dot::after { display: none; }
[data-rs-page] .logo-dot svg { width: 22px; height: 22px; fill: var(--lime); }
[data-rs-page] .logo-dot svg circle { stroke: var(--lime); }
[data-rs-page] .nav-links { gap: 28px; }
[data-rs-page] .nav-links a { font-size: 14px; font-weight: 500; }
[data-rs-page] .nav-cta {
  background: #fff !important; color: var(--ink) !important;
  border: 1px solid #C8D3C5; border-radius: 12px !important;
  padding: 12px 18px !important; font-weight: 600 !important;
}
[data-rs-page] .nav-cta:hover { background: var(--pale) !important; }
[data-rs-page] .nav-exit { min-height: 44px; display: inline-flex; align-items: center; }
[data-rs-page] .mob-toggle { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; }
[data-rs-page] .mob-drawer { top: 88px; background: #fff; border-color: var(--line); }
[data-rs-page] .mob-drawer a:last-child { background: var(--lime); color: var(--action-ink); border-radius: 12px; }

/* Light, readable headings; no font-size normalisation or new font family. */
[data-rs-page] .page-title,
[data-rs-page] .hero-title,
[data-rs-page] .q-title,
[data-rs-page] .results-title { font-weight: 700; letter-spacing: -.035em; }
[data-rs-page] .page-sub,
[data-rs-page] .q-sub,
[data-rs-page] .section-sub { font-weight: 400; }
[data-rs-page] .page { padding-top: 128px; }
[data-rs-page="quiz"] .frame { padding-top: 120px; }
[data-rs-page="quiz"] .progress-rail { top: 88px; background: var(--line); }

/* A lime primary action, forest-green selection, neutral secondary actions.
   Dimensions are deliberately inherited, preserving the tuned result columns. */
[data-rs-page] .btn-green,
[data-rs-page] .btn-next,
[data-rs-page] .btn-submit,
[data-rs-page] .hero-cta-primary,
[data-rs-page] .btn-pop,
[data-rs-page] .card .card-cta,
[data-rs-page] .ac-cta,
[data-rs-page] .cmp-cta,
[data-rs-page] .prov-cta {
  background: var(--lime); color: var(--action-ink); border-color: var(--lime);
  border-radius: 12px; box-shadow: none;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
[data-rs-page] .btn-green:hover,
[data-rs-page] .btn-next:hover:not(:disabled),
[data-rs-page] .btn-submit:hover:not(:disabled),
[data-rs-page] .hero-cta-primary:hover,
[data-rs-page] .btn-pop:hover,
[data-rs-page] .card .card-cta:hover,
[data-rs-page] .ac-cta:hover,
[data-rs-page] .cmp-cta:hover,
[data-rs-page] .prov-cta:hover { background: var(--action-hover); border-color: var(--action-hover); color: var(--action-ink); box-shadow: none; }
[data-rs-page] .btn-green:active,
[data-rs-page] .btn-next:active:not(:disabled),
[data-rs-page] .btn-submit:active:not(:disabled),
[data-rs-page] .hero-cta-primary:active,
[data-rs-page] .card .card-cta:active,
[data-rs-page] .ac-cta:active,
[data-rs-page] .cmp-cta:active,
[data-rs-page] .prov-cta:active { background: var(--action-pressed); border-color: var(--action-pressed); }
[data-rs-page] .btn-outline { border-radius: 12px; box-shadow: none; }
[data-rs-page] .chip { border-radius: 12px; }
[data-rs-page] .chip.selected,
[data-rs-page] .priority.selected { background: var(--accent); border-color: var(--accent); color: #fff; }
[data-rs-page] .priority.selected .priority-hint { color: #E5F0E8; }
[data-rs-page] .priority.selected .priority-check { background: var(--lime); border-color: var(--lime); color: var(--action-ink); }
[data-rs-page] .priority.selected .priority-check svg path { stroke: var(--action-ink); }
[data-rs-page] .priority,
[data-rs-page] .country-trigger,
[data-rs-page] .age-input-wrap { border-radius: 12px; }
[data-rs-page] .country-group { font-size: 12px; }

/* Quiet surfaces; retain meaningful amber warnings and all price-state labels. */
[data-rs-page] .card,
[data-rs-page] .prov-card,
[data-rs-page] .reg-card { border-radius: 20px; box-shadow: var(--panel-shadow); }
[data-rs-page] .card:not(.rank-1) { border-color: var(--line); }
[data-rs-page] .card-chip,
[data-rs-page] .ac-chip,
[data-rs-page] .match-echo { background: var(--warm); }
[data-rs-page] .compare-table thead th { top: 88px; }
[data-rs-page] .compare-table tbody tr:hover .cmp-feature { background: var(--warm); }
[data-rs-page] .cta-strip { background: var(--pale); border: 1px solid var(--line); border-radius: 20px; box-shadow: none; }
[data-rs-page] .cta-strip h3 { color: var(--ink); }
[data-rs-page] .cta-strip p { color: var(--mid); }

/* Compact footer, without removing links, affiliate disclosure or policy text. */
[data-rs-page] > footer { background: var(--bg); border-color: var(--line); }
[data-rs-page] > footer:not(.site-footer) .footer-inner {
  width: calc(100% - 80px); max-width: 1240px; padding: 32px 0 24px;
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 24px 32px;
}
[data-rs-page] > footer:not(.site-footer) .footer-inner > div { flex: 1 1 320px; }
[data-rs-page] > footer .logo { font-size: 17px; }
[data-rs-page] > footer .logo-dot { width: 28px; height: 28px; flex-basis: 28px; border-radius: 8px; }
[data-rs-page] > footer .logo-dot svg { width: 18px; height: 18px; }
[data-rs-page] .footer-links { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px 22px; max-width: 580px; }
[data-rs-page] .footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; }
[data-rs-page] .footer-copy { font-size: 13px; max-width: 480px; margin-top: 10px; }
[data-rs-page] .footer-trust { font-size: 12px; line-height: 1.7; gap: 7px; }
[data-rs-page] > footer:not(.site-footer) .footer-disclaimer {
  width: calc(100% - 80px); max-width: 1240px; padding: 18px 0 26px;
  font-size: 12px; line-height: 1.8; color: var(--soft); border-color: var(--line);
}

/* The banner's own injected CSS loads later: explicit scope preserves parity
   between accept/reject without changing consent behaviour. */
.rs-consent.rs-consent { background: #fff; border-color: #E1E6DF; border-radius: 20px; box-shadow: 0 10px 40px rgba(26,92,58,.13); }
.rs-consent .rs-consent__btn--choice { background: #fff; color: #18181A; border-color: #C8D3C5; border-radius: 12px; }
.rs-consent .rs-consent__btn--choice:hover { background: #EEF4E8; }

/* Redirect interstitials share surfaces only; every destination remains intact. */
[data-rs-page="redirect"] .panel { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: var(--panel-shadow); }

@media (max-width: 920px) {
  [data-rs-page] > nav { height: 68px; padding-inline: 20px; }
  [data-rs-page] .logo { font-size: 19px; gap: 9px; }
  [data-rs-page] .logo-dot { width: 32px; height: 32px; flex-basis: 32px; border-radius: 10px; }
  [data-rs-page] .nav-links { display: none; }
  [data-rs-page] .mob-toggle { display: inline-flex; align-items: center; justify-content: center; }
  [data-rs-page] .mob-drawer { top: 68px; }
  [data-rs-page] .page { padding-top: 100px; }
  [data-rs-page="quiz"] .frame { padding-top: 92px; }
  [data-rs-page="quiz"] .progress-rail { top: 68px; }
  [data-rs-page] .compare-table thead th { top: 68px; }
}
@media (max-width: 640px) {
  [data-rs-page] > footer:not(.site-footer) .footer-inner,
  [data-rs-page] > footer:not(.site-footer) .footer-disclaimer { width: calc(100% - 40px); }
  [data-rs-page] > footer:not(.site-footer) .footer-inner { flex-direction: column; gap: 18px; }
  [data-rs-page] > footer:not(.site-footer) .footer-inner > div { flex: initial; }
  [data-rs-page] .footer-links { gap: 4px 20px; }
  .rs-consent.rs-consent { border-radius: 16px 16px 0 0; }
}
/* 7 September: one ranked results list, with a compact query strip. */
[data-rs-page="quiz"] .unified-results { display: block; max-width: 1080px; }
[data-rs-page="quiz"] .unified-results > .match-echo {
  position: static; max-width: none; margin: 0 0 22px; padding: 12px 16px;
  flex-direction: row; align-items: center; justify-content: flex-start; text-align: left;
}
.unified-results .match-echo-pill { white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
.unified-results .match-echo-label { display: none; }
.unified-results .match-echo .echo-edit { margin: 0 0 0 auto; min-height: 44px; }
.unified-results .results-all { max-width: none; margin: 0; }
.unified-results .results-all-bar { border: 0; padding: 0; }
.unified-results .results-all-toggle[hidden], .unified-results #cards[hidden] { display: none; }
.unified-results .results-controls { justify-content: flex-start; gap: 12px 22px; }
.unified-results .filter-chip { min-height: 44px; }
.unified-results .ac-compare-note { margin: 0 0 8px; }
.unified-results .match-row {
  display: grid; grid-template-columns: minmax(0,1fr) 250px 205px;
  gap: 8px 24px; padding: 16px 22px 12px; border-radius: 18px; align-items: start;
}
.mr-identity, .mr-price, .mr-action { min-width: 0; }
.mr-brand { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 18px; }
.mr-top { font-size: 12px; font-weight: 600; color: var(--accent); }
.mr-plan { margin-top: 5px; font-size: 13px; color: var(--mid); line-height: 1.5; }
.mr-facts { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--mid); }
.mr-price .card-price-status { display: block; width: fit-content; margin: 0 0 5px; padding: 0; border: 0; background: none; color: var(--mid); font-size: 12px; letter-spacing: .02em; }
.mr-price .card-price { font-size: 26px; }
.mr-price .card-price-row { justify-content: flex-start; min-height: 0; flex-wrap: wrap; gap: 3px; }
.mr-price .card-price-cycle, .mr-price .card-price-prefix { font-size: 13px; }
.mr-price .card-price-quote { font-size: 16px; text-align: left; }
.mr-price .card-price-basis { margin-top: 6px; font-size: 12px; line-height: 1.5; text-align: left; }
.mr-action .ac-cta { width: 100%; min-height: 44px; margin-top: 10px; }
.mr-action { grid-column: 3; grid-row: 1; }
.match-row:has(.mr-warning) .mr-action { grid-row: 2; }
.mr-tradeoff { grid-column: 1 / -1; margin: 0; color: var(--mid); font-size: 13px; line-height: 1.5; }
.mr-tradeoff strong { color: var(--ink); font-weight: 600; margin-right: 6px; }
.mr-warning { grid-column: 1 / -1; grid-row: 1; }
.mr-warning .card-geo-warn { margin: 0; padding: 7px 11px; }
.mr-warning .ac-geo-list { margin: 8px 2px 0; font-size: 13px; line-height: 1.5; color: var(--mid); }
.mr-details { grid-column: 1 / -1; min-width: 0; }
.mr-alternatives { grid-column: 1 / -1; min-width: 0; width: 100%; }
.mr-alternatives > summary { min-height: 44px; padding: 12px 0; cursor: pointer; color: var(--accent); font-size: 13px; }
.unified-results .mr-alternatives .mr-alternative { border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 18px 0 0; grid-template-columns: minmax(0,1fr) 230px 205px; }
.mr-details > summary { cursor: pointer; color: var(--accent); font-size: 13px; font-weight: 500; min-height: 44px; display: flex; align-items: center; width: fit-content; padding: 4px 0; }
.mr-evidence { border-top: 1px solid var(--line); padding-top: 16px; max-width: 760px; font-size: 14px; line-height: 1.65; color: var(--mid); }
.mr-evidence h3 { color: var(--ink); font-size: 14px; margin: 14px 0 6px; }
.mr-evidence h3:first-child { margin-top: 0; }
.mr-evidence ul { padding-left: 20px; margin: 10px 0 16px; }
.unified-results.is-loading #resultsAll { display: none; }
@media (max-width: 1000px) {
  .unified-results .mr-alternatives .mr-alternative { grid-template-columns: minmax(0,1fr) 230px; }
  .unified-results .match-row { grid-template-columns: minmax(0,1fr) 230px; gap: 12px 20px; }
  .mr-action, .match-row:has(.mr-warning) .mr-action { grid-column: 2; grid-row: auto; }
  .mr-action .ac-cta { margin-top: 0; }
}
@media (max-width: 640px) {
  .unified-results .match-row { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
  .mr-warning { order: -1; width: 100%; }
  .mr-price, .mr-action, .mr-details { width: 100%; }
  .mr-identity { order: 0; }
  .mr-price { order: 1; }
  .mr-tradeoff { order: 2; }
  .mr-action { order: 3; }
  .mr-details { order: 4; }
  .mr-alternatives { order: 5; }
  .mr-brand { font-size: 18px; }
  .unified-results .match-echo .echo-edit { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  [data-rs-page] *, [data-rs-page] *::before, [data-rs-page] *::after { transition: none !important; scroll-behavior: auto !important; }
}
