/* Page-specific layouts. Shared colors, typography, controls and cards remain in theme.css and style.css. */

/* Dark editorial bands keep a stable semantic surface in both themes. */
.editorial-dark,
.rd-band-navy,
.liability-framework {
  color: var(--tone-f8f9fb);
  background: var(--hero-bg);
}
.editorial-dark :is(h2, h3, strong, .section-title),
.rd-band-navy :is(h2, h3, strong, .section-title),
.liability-framework :is(h2, h3, strong, .section-title) { color: var(--tone-fff); }
.editorial-dark :is(p, li, .section-sub),
.rd-band-navy :is(p, li, .section-sub),
.liability-framework :is(p, li, .section-sub) { color: var(--tone-rgba-255-255-255-0p7); }
.editorial-dark .btn-primary { color: var(--tone-0c0d10); background: var(--tone-fff); }

/* Home */
.page-home .targets-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.page-home .target-card { min-height: 260px; }
.page-home .target-ico { margin-bottom: var(--space-5); }
.page-home .skills-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .82fr); gap: clamp(var(--space-6), 6vw, var(--space-9)); align-items: start; }
.page-home .q-list { display: grid; gap: var(--space-3); }
.page-home .q-item { display: flex; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-2); }
.page-home .q-num { width: 34px; height: 34px; display: grid; place-content: center; flex: 0 0 auto; color: var(--accent-ink); background: var(--accent-soft); border-radius: var(--radius-2); font-size: var(--fs-1); font-weight: var(--fw-3); }
.page-home .q-name { color: var(--heading); font-weight: var(--fw-3); }
.page-home .q-detail { color: var(--muted); font-size: var(--fs-2); }
.page-home .q-right { display: grid; gap: var(--space-4); }
.page-home .about-card { padding: var(--space-5); color: var(--tone-fff); background: linear-gradient(145deg, var(--tone-10151e), var(--tone-17243a)); border: 0; }
.page-home .about-card-header { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.page-home .about-avatar { width: 46px; height: 46px; display: grid; place-content: center; background: var(--tone-rgba-255-255-255-0p1); border-radius: var(--radius-2); font-weight: var(--fw-3); }
.page-home .about-name { font-weight: var(--fw-3); }
.page-home .about-role, .page-home .about-text { color: var(--tone-rgba-255-255-255-0p68); }

.nationwide-route { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr); gap: clamp(var(--space-6), 7vw, var(--space-10)); align-items: center; margin-top: clamp(var(--space-6), 6vw, var(--space-8)); }
.nationwide-visual { position: relative; min-height: 430px; display: grid; place-items: center; overflow: hidden; color: var(--tone-74a6ff); background: linear-gradient(145deg, var(--tone-0c111a), var(--tone-080a0e)); border: 1px solid var(--tone-rgba-255-255-255-0p1); border-radius: var(--radius-3); box-shadow: var(--shadow-1); }
.nationwide-visual::before, .nationwide-visual::after { content: ""; position: absolute; border: 1px solid var(--tone-rgba-105-158-255-0p18); border-radius: var(--radius-round); }
.nationwide-visual::before { width: 380px; height: 380px; }
.nationwide-visual::after { width: 230px; height: 230px; }
.nationwide-visual svg { position: relative; z-index: 1; width: min(72%, 340px); filter: drop-shadow(0 18px 36px var(--tone-rgba-38-102-220-0p28)); }
.nationwide-copy { display: grid; gap: var(--space-1); }
.nationwide-point { padding: var(--space-4) 0; border-top: 1px solid var(--border); }
.nationwide-point strong { display: block; margin-bottom: var(--space-1); color: var(--heading); }
.nationwide-point span { color: var(--muted); }

/* Funding */
.funding-visual svg { display: block; width: 100%; max-width: 380px; margin-inline: auto; filter: drop-shadow(0 24px 48px var(--tone-rgba-0-0-0-0p22)); }
.funding-visual .v-a, .funding-visual .v-b { fill: var(--accent); }
.funding-visual .v-c { fill: var(--hero-bg); }
.funding-visual .v-trace { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; }
.funding-visual text { font-family: var(--font); }
.funding-state { display: inline-flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-4) var(--space-1); padding: var(--space-1) var(--space-3); color: var(--muted-strong); border: 1px solid var(--border-strong); border-radius: var(--radius-pill); font-size: var(--fs-1); font-weight: var(--fw-3); text-transform: uppercase; }
.funding-state::before { content: ""; width: 7px; height: 7px; flex: 0 0 auto; background: var(--accent); border-radius: var(--radius-round); }

/* Audience pages */
.company-road-risk-section { padding: clamp(var(--space-8), 8vw, var(--space-10)) clamp(var(--space-5), 4vw, var(--space-8)); background: var(--surface); border-bottom: 1px solid var(--border); }
.company-road-risk-section > * { width: min(100%, var(--content)); margin-inline: auto; }
.company-road-risk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.company-road-risk-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--space-4); }
.company-road-risk-card { padding: var(--space-4); border-radius: var(--radius-2); }
.company-road-risk-card-primary { color: var(--tone-fff); background: linear-gradient(145deg, var(--brand-navy), color-mix(in srgb, var(--brand-blue) 72%, var(--brand-navy))); border: 0; }
.company-road-risk-card-primary :is(.company-road-risk-number, .company-road-risk-title, .company-road-risk-detail) { color: inherit; }
.company-road-risk-number { color: var(--heading); font-size: var(--fs-7); font-weight: var(--fw-3); letter-spacing: -.05em; }
.company-road-risk-title { margin-top: var(--space-1); color: var(--heading); font-weight: var(--fw-3); }
.company-road-risk-detail { margin-top: var(--space-1); color: var(--muted); font-size: var(--fs-2); }
.company-road-risk-note { display: flex; gap: var(--space-3); padding: var(--space-4); color: var(--muted); background: var(--surface-muted); border: 1px solid var(--border); border-radius: var(--radius-2); }
.company-road-risk-note-accent { background: var(--accent-soft); }
.company-road-risk-icon { flex: 0 0 auto; color: var(--accent-ink); }
.company-road-risk-note-title { color: var(--heading); font-weight: var(--fw-3); }
.company-road-risk-note-detail { font-size: var(--fs-2); }

.offer-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;margin-bottom:var(--space-6)}
.offer-card { position: relative; min-height: 100%; }
.offer-num { padding: var(--space-1) var(--space-3); border-radius: var(--radius-pill); background: var(--accent-soft); width: fit-content; margin-bottom: var(--space-4); color: var(--accent-ink); font-size: var(--fs-1); font-weight: var(--fw-4); letter-spacing: .1em; }
.offer-baseline, .offer-lead { color: var(--heading); font-size: var(--fs-5); font-weight: var(--fw-3); line-height: var(--lh-2); }
.offer-desc { color: var(--muted); font-size: var(--fs-3); }
.offer-list, .offer-ul { margin: var(--space-4) 0 var(--space-4); padding-left: var(--space-4); color: var(--muted); font-size: var(--fs-3); }
.offer-list li + li, .offer-ul li + li { margin-top: var(--space-1); }
.offer-card.highlighted { border-color: color-mix(in srgb, var(--accent) 42%, var(--border)); background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface)); }
.offer-meta, .offer-foot { color: var(--muted); font-size: var(--fs-1); }

.finance-section { background: var(--page-bg); }

/* Shared section roots keep page-specific surfaces as documented parameters while their
   structure comes from one partial. These declarations replace the former inline roots. */
[data-component="offer"] { background: var(--off); }
[data-component="offer"][data-component-variant="associations"] {
  padding: clamp(var(--space-8), 8vw, var(--space-10)) clamp(var(--space-5), 4vw, var(--space-8));
  border-bottom: var(--line-1) solid var(--border);
}
[data-component="funding"][data-component-variant="associations"] {
  background: linear-gradient(180deg, var(--white) 0%, var(--ok-soft) 50%, var(--white) 100%);
  padding: clamp(var(--space-8), 8vw, var(--space-10)) clamp(var(--space-5), 4vw, var(--space-8));
  border-bottom: var(--line-1) solid var(--border);
}
[data-component="funding"][data-component-variant="authorities"],
[data-component="funding"][data-component-variant="driving-schools"] {
  padding: clamp(var(--space-8), 8vw, var(--space-10)) clamp(var(--space-5), 4vw, var(--space-8));
  border-bottom: var(--line-1) solid var(--border);
}
[data-component="faq"] {
  padding: clamp(var(--space-8), 8vw, var(--space-10)) clamp(var(--space-5), 4vw, var(--space-8));
  background: var(--off);
}
[data-component="faq"][data-component-surface="white"] { background: var(--white); }

/* Page-owned slot content stays free of inline presentation. These semantic classes preserve
   the former values while the shared partial owns the section root. */
[data-component] .component-accent { color: var(--accent-ink); }

[data-component="offer"] .offer-icon-accent { color: var(--accent); background: var(--accent-soft); }
[data-component="offer"] .offer-icon-slate { color: var(--slate-ink); background: var(--accent-soft); }
[data-component="offer"] .offer-icon-success { color: var(--ok); background: var(--ok-soft); }
[data-component="offer"] .offer-icon-blue { color: var(--accent-ink); background: var(--blue-l); }
[data-component="offer"] .offer-icon-hero { color: var(--hero-text); background: var(--hero-bg); }
[data-component="offer"] .offer-icon-on-hero { color: var(--tone-ffffff); background: var(--hero-bg); }
[data-component="offer"] .offer-icon-on-accent { color: var(--on-accent); background: var(--accent); }
[data-component="offer"] .offer-card-accent { border-color: var(--accent); background: var(--accent-soft); }
[data-component="offer"] .offer-card-blue { border-color: var(--blue); background: var(--blue-ll); }
[data-component="offer"] .association-offer-link { display: inline-flex; align-items: center; gap: var(--space-2); margin-top: var(--space-4); color: var(--accent-ink); font-size: var(--fs-3); font-weight: var(--fw-2); text-decoration: none; }
[data-component="offer"] .association-offer-bullet { flex-shrink: 0; color: var(--accent-ink); }
[data-component="offer"] .association-offer-muted { color: var(--slate); }
[data-component="offer"] .association-offer-kicker { color: var(--accent-ink); font-size: var(--fs-1); font-weight: var(--fw-2); }
[data-component="offer"] .association-funding-badge { display: inline-flex; align-items: center; gap: var(--space-2); margin-top: var(--space-4); padding: var(--space-2) var(--space-4); background: var(--accent-soft); border: var(--line-1) solid var(--tone-fde68a); border-radius: var(--radius-pill); }

[data-component="funding"] .finance-dot-accent,
[data-component="funding"] .finance-dot-success { width: .375rem; height: .375rem; border-radius: var(--radius-round); }
[data-component="funding"] .finance-dot-accent { background: var(--accent); }
[data-component="funding"] .finance-dot-success { background: var(--ok); }
[data-component="funding"] .funding-blue { color: var(--accent-ink); }
[data-component="funding"] .funding-section-lead { margin-bottom: var(--space-4); }
[data-component="funding"] .funding-note { display: flex; align-items: flex-start; gap: var(--space-4); margin-top: var(--space-6); padding: var(--space-5); background: var(--white); border: var(--line-1) solid var(--border); border-radius: var(--radius-3); }
[data-component="funding"] .funding-note-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 2rem; height: 2rem; color: var(--accent-ink); background: var(--blue-l); border-radius: var(--radius-2); }
[data-component="funding"] .funding-note-copy { color: var(--slate); font-size: var(--fs-3); line-height: var(--lh-3); }
[data-component="funding"] .funding-note-title { color: var(--navy); font-weight: var(--fw-3); }
[data-component="funding"] .funding-inclusion-panel { margin-top: var(--space-6); padding: var(--space-6); background: linear-gradient(135deg, var(--accent-soft), var(--accent-soft)); border: var(--line-1) solid var(--accent); border-radius: var(--radius-3); }
[data-component="funding"] .funding-inclusion-heading { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-5); }
[data-component="funding"] .funding-inclusion-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 2.75rem; min-width: 2.75rem; height: 2.75rem; color: var(--surface); background: var(--accent); border-radius: var(--radius-2); }
[data-component="funding"] .funding-inclusion-heading-title { margin: 0; color: var(--accent-ink); font-family: var(--font), sans-serif; font-size: var(--fs-6); font-weight: var(--fw-4); letter-spacing: -.01em; line-height: var(--lh-1); }
[data-component="funding"] .funding-inclusion-heading-kicker { margin-top: var(--space-1); color: var(--accent-ink); font-size: var(--fs-2); }
[data-component="funding"] .funding-inclusion-item { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-3) var(--space-4); background: var(--surface); border-radius: var(--radius-2); }
[data-component="funding"] .funding-inclusion-check { flex-shrink: 0; color: var(--ok); font-weight: var(--fw-4); line-height: var(--lh-2); }
[data-component="funding"] .funding-inclusion-title { color: var(--accent-ink); font-size: var(--fs-3); font-weight: var(--fw-3); line-height: var(--lh-2); }
[data-component="funding"] .funding-inclusion-copy { margin-top: var(--space-1); color: var(--muted); font-size: var(--fs-1); line-height: var(--lh-2); }
[data-component="funding"] .funding-registration-note { padding: var(--space-3) var(--space-4); color: var(--accent-ink); background: var(--tone-rgba-124-58-237-0p08); border-left: var(--line-3) solid var(--accent); border-radius: var(--radius-2); font-size: var(--fs-2); line-height: var(--lh-3); }
[data-component="funding"] .funding-registration-note strong { font-weight: var(--fw-3); }

[data-component="faq"] .faq-measure { max-width: 52.5rem; }
[data-component="faq"] .faq-stack { display: flex; flex-direction: column; gap: var(--space-4); margin-top: var(--space-6); }
[data-component="lead-figure"] .lead-figure-font { font-family: var(--font), sans-serif; }
[data-component="lead-figure"] .lead-figure-product-width { max-width: 48.75rem; }

.finance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.finance-card { min-height: 100%; }
.finance-card ul { padding-left: var(--space-4); color: var(--muted); }
.finance-card.path-a { border-top: 3px solid var(--success); }
.finance-card.path-b { border-top: 3px solid var(--accent); }
.finance-extras { margin-top: var(--space-4); padding: var(--space-4); color: var(--muted); background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-2); }
.finance-extras-head { margin-bottom: var(--space-3); color: var(--heading); font-weight: var(--fw-3); }
.roi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(var(--space-5), 4vw, var(--space-7)); align-items: center; }
.charts-grid canvas { max-height: 340px; }
.cost-details, .cost-totals { color: var(--muted); background: var(--surface-muted); border: 1px solid var(--border); border-radius: var(--radius-2); }

.resp-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:var(--space-6)}
.resp-card { background: var(--tone-rgba-255-255-255-0p07); border-color: var(--tone-rgba-255-255-255-0p12); }
.resp-head { display: flex; align-items: center; gap: var(--space-3); }
.resp-head .resp-icon { margin: 0; }
.resp-title { color: var(--tone-fff); font-weight: var(--fw-3); }
.resp-card p, .resp-foot { color: var(--tone-rgba-255-255-255-0p64); }
.resp-tag { margin-top: var(--space-4); color: var(--tone-rgba-255-255-255-0p82); background: var(--tone-rgba-255-255-255-0p08); border-color: var(--tone-rgba-255-255-255-0p13); }

/* Product */
.rd-hero-em { color: var(--accent); font-style: normal; }
.rd-prod-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); }
.rd-hero-visual { width: min(100%, 780px); overflow: hidden; border: 1px solid var(--tone-rgba-255-255-255-0p15); border-radius: var(--radius-3); }
.rd-hero-visual svg { display: block; width: 100%; }
.rd-band-navy { padding: var(--space-6) clamp(var(--space-5), 4vw, var(--space-8)); }
.rd-stats { width: min(100%, var(--content)); margin-inline: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rd-stat-v { color: inherit; font-size: var(--fs-7); font-weight: var(--fw-3); }
.rd-stat-l { color: var(--tone-rgba-255-255-255-0p58); font-size: var(--fs-1); }
.rd-stats .rd-stat-v { color: var(--tone-fff); font-family: var(--font), sans-serif; font-weight: var(--fw-4); letter-spacing: -.02em; line-height: var(--lh-1); white-space: nowrap; }
.rd-stats .rd-stat-v span { color: var(--coral-100); }
.rd-stats .rd-stat-l { margin-top: var(--space-1); color: var(--tone-b9c9e2); line-height: var(--lh-2); white-space: nowrap; }
.sec-tint-blue { background: color-mix(in srgb, var(--accent-soft) 44%, var(--page-bg)); }
.sec-tint-green { background: color-mix(in srgb, var(--success-soft) 42%, var(--page-bg)); }
.sec-tint-violet { background: color-mix(in srgb, var(--purple-l) 42%, var(--page-bg)); }
.sr-unlimited { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4); color: var(--muted); background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-2); }
.sr-unlimited__mark { color: var(--accent-ink); font-size: var(--fs-7); line-height: var(--lh-1); }

/* CITS */
.rd-hero-phone { width: 100%; max-width: 380px; }
.rd-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.rd-step { padding: var(--space-4); background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-2); }
.rd-step-n { width: 38px; height: 38px; display: grid; place-content: center; margin-bottom: var(--space-4); color: var(--tone-fff); background: var(--accent); border-radius: var(--radius-round); font-weight: var(--fw-3); }
.rd-step h3 { margin-bottom: var(--space-1); color: var(--heading); }
.rd-step p { margin: 0; color: var(--muted); }

/* Road-safety learning modules */
.ri-band { background: var(--surface-muted); }
.ri-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ri-num { color: var(--heading); font-size: var(--fs-7); font-weight: var(--fw-3); letter-spacing: -.05em; }
.ri-desc { color: var(--muted-strong); font-size: var(--fs-3); }
.ri-src { color: var(--muted); font-size: var(--fs-1); }
.advice-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.advice { padding: var(--space-4); background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-2); }
.advice-title { color: var(--heading); font-weight: var(--fw-3); }
.advice-text { color: var(--muted); font-size: var(--fs-2); }
.ix-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ix-full { grid-column: 1 / -1; }
.ix-h3 { color: var(--heading); }
.rt-pad, .signq-wrap { min-height: 220px; display: grid; place-content: center; padding: var(--space-5); text-align: center; background: var(--surface-muted); border: 1px solid var(--border); border-radius: var(--radius-2); }
.rt-pad { width: 100%; font: inherit; cursor: pointer; }
.rt-idle { color: var(--tone-fff); background: var(--hero-bg); }
.rt-wait { color: var(--on-danger); background: var(--danger); }
.rt-go { color: var(--on-success); background: var(--success); }
.rt-early { color: var(--on-warning); background: var(--warning); }
.rt-result { margin-top: var(--space-4); }
.rt-time { color: var(--heading); font-size: var(--fs-8); font-weight: var(--fw-3); }
.rt-list { display: grid; gap: var(--space-1); padding: 0; list-style: none; }
.rt-list li { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-2) var(--space-3); color: var(--text); background: var(--surface-muted); border-radius: var(--radius-2); }
.rt-msg { color: inherit; font-weight: var(--fw-3); }
.signq-q { color: var(--heading); font-weight: var(--fw-3); }
.rt-pad .rt-sub { color: inherit; }
.rt-sub, .rt-note, .signq-ask, .qz-explain { color: var(--muted); font-size: var(--fs-2); }
.qz-opts { display: grid; gap: var(--space-2); }
.qz-opts button, .rt-again { min-height: 44px; padding: var(--space-2) var(--space-3); color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-2); cursor: pointer; }

/* Reversibility facts */
.rev-figures-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; list-style: none; }
.rev-figure-v, .rev-figure-l { display: block; white-space: nowrap; }
.rev-figure-v { color: var(--heading); font-size: var(--fs-7); font-weight: var(--fw-3); line-height: var(--lh-1); }
.rev-figure-l { margin-top: var(--space-1); color: var(--muted); font-size: var(--fs-1); line-height: var(--lh-2); }
.stats-inner, .rd-stats, .rev-figures-grid { gap: clamp(var(--space-2), 1.5vw, var(--space-4)); }
.qz-opts button.ok { color: var(--success); background: var(--success-soft); border-color: var(--success); }
.qz-opts button.no { color: var(--danger); background: var(--danger-soft); border-color: var(--danger); }
.da-controls { display: grid; gap: var(--space-4); }
.da-srow { display: grid; gap: var(--space-2); color: var(--muted); }
.da-toggle { width: fit-content; display: inline-flex; gap: var(--space-1); padding: var(--space-1); background: var(--surface-muted); border: 1px solid var(--border); border-radius: var(--radius-pill); }
.da-opt { min-height: 36px; padding: var(--space-2) var(--space-3); color: var(--muted); background: transparent; border: 0; border-radius: var(--radius-2); cursor: pointer; }
.da-opt.da-on { color: var(--heading); background: var(--surface-raised); box-shadow: var(--shadow-1); }
.da-bar { height: 12px; display: flex; margin: var(--space-4) 0 var(--space-3); overflow: hidden; background: var(--surface-muted); border-radius: var(--radius-pill); }
.da-seg { min-width: 2px; height: 100%; }
.da-react { background: var(--warning); }
.da-brake { background: var(--accent); }
.da-legend { display: flex; justify-content: space-between; gap: var(--space-4); color: var(--muted); font-size: var(--fs-1); }
.da-k { display: inline-block; width: 8px; height: 8px; border-radius: var(--radius-round); }
.da-kr { background: var(--warning); }
.da-kb { background: var(--accent); }
.da-total { color: var(--heading); font-weight: var(--fw-3); }
.ec-metrics { display: grid; gap: var(--space-3); margin-top: var(--space-4); }
.ec-row { display: grid; grid-template-columns: minmax(100px, .7fr) minmax(120px, 1fr) auto; gap: var(--space-2); align-items: center; }
.ec-lbl, .ec-val, .ec-note { color: var(--muted); font-size: var(--fs-1); }
.ec-track { height: 9px; overflow: hidden; background: var(--surface-muted); border-radius: var(--radius-pill); }
.ec-fill { display: block; height: 100%; background: var(--success); border-radius: var(--radius-pill); }
.ec-eco { color: var(--success); font-size: var(--fs-6); font-weight: var(--fw-3); }

/* Editorial, search and map pages */
.blog-contents, .news-official { padding: var(--space-4) var(--space-4); background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-2); }
.blog-contents { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
.blog-contents a { display: inline-flex; align-items: center; min-height: var(--space-5); font-size: var(--fs-2); text-decoration: none; }
.blog-feed { max-width: var(--reading); }
.blog-article { max-width: var(--reading); margin: 0 auto; padding: clamp(var(--space-6), 6vw, var(--space-8)) 0; border-bottom: 1px solid var(--border); }
.blog-article :where(p, li, ul, ol) { color: var(--text); line-height: var(--lh-4); }
.blog-article > h3 { margin: var(--space-5) 0 var(--space-2); color: var(--heading); font-size: var(--fs-6); }
.blog-cat { color: var(--accent-ink); font-size: var(--fs-1); font-weight: var(--fw-3); letter-spacing: .08em; text-transform: uppercase; }
.blog-cat-accent { color: var(--accent-ink); }
.blog-cat-success { color: var(--success); }
.blog-cat-associations { color: var(--audience-associations); }
.blog-source { margin-top: var(--space-3); color: var(--muted-strong); font-size: var(--fs-1); }
.blog-source-cited { font-style: italic; }
.blog-provenance { margin-top: var(--space-5); color: var(--muted-strong); font-size: var(--fs-2); line-height: var(--lh-3); }
.blog-official-title { margin: var(--space-7) 0 var(--space-2); font-size: var(--fs-6); }
.blog-official-intro { max-width: var(--measure-text); margin-top: 0; }
.news-official { list-style: none; }
.news-official li + li { border-top: 1px solid var(--border); }
.news-official a { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) 0; text-decoration: none; }
.news-official small { color: var(--muted); }
.glossary-item { padding: var(--space-4); }
.page-search input[type="search"] { min-height: 54px; font-size: var(--fs-5); }
.page-sitemap .rd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.page-sitemap .rd-card li a { display: inline-block; padding-block: var(--space-1); }

/* Error and status surfaces */
body[class*="page-error"] main, .page-status main, .page-offline main { min-height: 100svh; display: grid; align-items: center; }
body[class*="page-error"] .compo-intro, .page-status .compo-intro, .page-offline .compo-intro { width: 100%; }

@media (max-width: 980px) {
  .page-home .targets-grid, .offer-grid, .resp-grid, .company-road-risk-grid, .ri-grid, .advice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-home .skills-layout, .nationwide-route { grid-template-columns: 1fr; }
  .nationwide-visual { min-height: 360px; }
  .page-sitemap .rd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .offer-grid, .finance-grid, .resp-grid, .company-road-risk-grid,
  .company-road-risk-grid-two, .roi-grid, .ri-grid, .advice-grid, .ix-grid,
  .page-sitemap .rd-grid { grid-template-columns: 1fr; }
  .ix-full { grid-column: auto; }
  .page-home .target-card { min-height: 0; }
  .nationwide-visual { min-height: 300px; border-radius: var(--radius-3); }
  .ec-row { grid-template-columns: 1fr; }
  .da-legend { flex-direction: column; }
  .news-official a { flex-direction: column; }
  .fin-steps, .rd-steps { grid-template-columns: 1fr; }
}

@media (max-width: 759px) {
  .stats-inner, .stats-inner:has(> .stat:nth-child(4):last-child), .rd-stats, .rev-figures-grid { grid-template-columns: 1fr; }
}

/* Audience and mission composition lives here, never in inline layout overrides. */
.page-home .target-card { padding: clamp(var(--space-5), 2.5vw, var(--space-6)); }
.page-home .target-card h3 { margin-bottom: var(--space-3); font-size: var(--fs-6); line-height: var(--lh-2); }
.page-home .target-card p { margin-bottom: var(--space-5); line-height: var(--lh-4); }
.page-home .audience-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-5); }
.page-home .audience-grid > .target-card { grid-column: span 2; }
.page-home .audience-grid > .target-card:nth-last-child(-n+2) { grid-column: span 3; }
.page-home .mission-grid { gap: var(--space-5); }
@media (max-width: 1040px) {
  .page-home .audience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-home .audience-grid > .target-card { grid-column: auto; }
  .page-home .audience-grid > .target-card:nth-last-child(-n+2) { grid-column: auto; }
  .page-home .audience-grid > .target-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .page-home .mission-grid, .page-home .audience-grid { gap: var(--space-4); }
}
@media (max-width: 600px) {
  .page-home .targets-grid { grid-template-columns: 1fr; }
  .page-home .audience-grid > .target-card { grid-column: 1 / -1; }
}

.page-home .target-card { --card-accent: var(--accent-ink); }
/* Audience accents belong to the cards, not detached corner decorations. */
.page-home .target-businesses { --card-accent: var(--audience-businesses); }
.page-home .target-associations { --card-accent: var(--audience-associations); }
.page-home .target-authorities { --card-accent: var(--audience-authorities); }
.page-home .target-part { --card-accent: var(--audience-individuals); }
.page-home .target-eco { --card-accent: var(--audience-driving-schools); }
.page-home .target-card {
  position: relative;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--card-accent) 24%, var(--border));
  background: linear-gradient(150deg, color-mix(in srgb, var(--card-accent) 10%, var(--surface-raised)), var(--surface-raised) 72%);
}
.page-home .target-card .target-ico {
  width: 56px; height: 56px; border-radius: var(--radius-2);
  color: var(--card-accent);
  background: color-mix(in srgb, var(--card-accent) 14%, var(--surface-raised));
  transition: transform var(--motion-duration-calm) var(--ease), background-color var(--motion-duration-calm) var(--ease);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .page-home .target-card:hover .target-ico { transform: translateY(calc(var(--motion-distance-touch) * -1)) rotate(-6deg) scale(var(--motion-scale-lift)); }
  .page-home .target-card:hover { border-color: var(--card-accent); box-shadow: var(--shadow-2); }
}
@media (prefers-reduced-motion: reduce) { .page-home .target-card .target-ico { transition: none; } }
@media (prefers-reduced-motion: no-preference) { .page-businesses #result-bar { transition: width var(--motion-duration-calm) var(--ease); } }

/* Shared subcontract-service component: content remains in locale overlays. */
.partner-services { background: var(--accent-soft); scroll-margin-top: 7rem; }
.partner-services .section-sub { max-width: 760px; margin-bottom: 0; }
.partner-services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); margin: var(--space-6) 0; }
.partner-service-card { padding: clamp(var(--space-5), 3vw, var(--space-6)); border: 1px solid var(--border); border-radius: var(--radius-3); background: var(--surface); }
.partner-service-card h3 { color: var(--heading); font-size: var(--fs-6); line-height: var(--lh-2); margin-bottom: var(--space-3); }
.partner-service-card p, .partner-services-note { color: var(--text); line-height: var(--lh-3); }
.partner-services-note { max-width: 760px; margin-top: var(--space-5); }
.partner-services .btn-primary { white-space: normal; text-align: center; min-height: 44px; }
@media (max-width: 900px) {
  .partner-services-summary, .partner-services-grid { grid-template-columns: minmax(0, 1fr); }
  .partner-services-summary > .btn-primary { justify-self: start; }
}

.about-brand { display: block; width: var(--space-9); height: var(--space-9); margin: 0 auto var(--space-5); overflow: hidden; border-radius: var(--radius-round); }
.about-brand svg { display: block; }
.about-copy { padding-block-start: 0; }
.about-landmarks { padding-block-start: 0; }
.about-landmarks .section-inner { max-width: var(--measure-text); }
.about-landmarks .section-title { margin-bottom: var(--space-4); font-size: var(--fs-7); }
.intro-section-narrow { padding-block-start: 0; }

/* Nationwide coverage: one promise, followed by practical delivery details. */
.coverage-card { padding: clamp(var(--space-5), 3vw, var(--space-6)); }
.coverage-eyebrow { margin: 0 0 var(--space-4); color: var(--accent-ink); font-size: var(--fs-2); font-weight: var(--fw-2); letter-spacing: .06em; }
.coverage-card h3 { margin: 0; max-width: 20ch; color: var(--heading); font-size: var(--fs-7); line-height: var(--lh-1); letter-spacing: -.035em; }
.coverage-description { margin: var(--space-4) 0 0; color: var(--text); line-height: var(--lh-3); }
.coverage-note { margin: var(--space-5) 0 0; padding-top: var(--space-4); border-top: 1px solid var(--border); color: var(--muted); font-size: var(--fs-3); line-height: var(--lh-3); }


/* The invitation before contact is a spaced band, not an unstyled text block. */
.engagement-band { padding: clamp(var(--space-7), 6vw, var(--space-9)) clamp(var(--space-5), 4vw, var(--space-8)); background: var(--accent-soft); border-block: 1px solid var(--border); }
.engagement-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(var(--space-6), 5vw, var(--space-9)); }
.engagement-copy { max-width: 760px; }
.engagement-copy h2 { margin: 0; color: var(--heading); font-size: var(--fs-8); line-height: var(--lh-1); letter-spacing: -.04em; }
.engagement-copy p { margin: var(--space-4) 0 0; color: var(--text); font-size: var(--fs-5); line-height: var(--lh-4); max-width: 60ch; }
.engagement-layout > .btn-primary { justify-self: end; white-space: nowrap; }
@media (max-width: 780px) {
  .engagement-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .engagement-layout > .btn-primary { justify-self: start; }
}

/* Numbered step chips: one token pair (ink on its soft tint) that reads in both themes. */
.step-chip { display: inline-block; margin-bottom: var(--space-4); padding: var(--space-1) var(--space-2); border-radius: var(--radius-2); background: var(--accent-soft); color: var(--accent-ink); font-size: var(--fs-7); font-weight: var(--fw-4); letter-spacing: -.04em; line-height: var(--lh-1); }

/* Gallery of the surprises. */
.delight-discover { margin-top: var(--space-4); min-height: 44px; padding: var(--space-2) var(--space-4); color: var(--text); border: 1px solid var(--border-strong); background: transparent; border-radius: var(--radius-2); font: inherit; font-size: var(--fs-3); cursor: pointer; }
.delight-gallery { width: min(780px, calc(100% - 2rem)); max-height: calc(100svh - 3rem); margin: auto; padding: clamp(var(--space-4),4vw,var(--space-6)); color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-3); }
.delight-gallery::backdrop { background: var(--tone-rgba-0-0-0-0p55); backdrop-filter: blur(8px); }
.delight-gallery h2 { font-size: var(--fs-7); color: var(--heading); margin-bottom: var(--space-5); }
.delight-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--space-3); }
.delight-grid button { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); min-height: 100px; padding: var(--space-4); text-align: left; font: inherit; color: var(--text); background: var(--surface-muted); border: 1px solid var(--border); border-radius: var(--radius-2); cursor: pointer; }
.delight-gallery-close { display: block; margin: var(--space-5) 0 0 auto; min-height: 44px; padding: var(--space-3) var(--space-4); color: var(--surface); background: var(--heading); border: 0; border-radius: var(--radius-2); font: inherit; cursor: pointer; }
.delight-gallery-heading { position: sticky; top: -1px; z-index: 1; display: flex; align-items: flex-start; gap: var(--space-4); padding-bottom: var(--space-4); background: var(--surface); }
.delight-gallery-heading h2 { flex: 1; margin-bottom: 0; }
.delight-gallery-heading .delight-gallery-close { flex: 0 0 auto; margin: 0; }
.delight-grid button:hover, .delight-grid button:focus-visible { border-color: var(--accent); }
@media (max-width: 600px) { .delight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* The band behind the two accident charts: muted on every page; the audience page tints it (assets/audience-colour.css). */
.chart-band { padding: clamp(var(--space-8), 8vw, var(--space-10)) clamp(var(--space-5), 4vw, var(--space-8)); background: var(--off); border-bottom: 1px solid var(--border); }
.chart-card { background: var(--white); }
/* The sectors most exposed: a tile with an icon. Plain on every page; the audience page colours them (assets/audience-colour.css). */
.sector-tile { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4); background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-2); }
.sector-ico { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; min-width: 36px; color: var(--accent-ink); }

/* The figure that used to sit in the header of the product, coaching and funding pages: the first block under the shared header, on the dark ground used by the header. */
.lead-figure { padding: var(--space-6) clamp(var(--space-5), 4vw, var(--space-8)) 0; }
.lead-figure-panel { --accent: var(--hero-accent); display: flex; justify-content: center; max-width: 60rem; margin-inline: auto; padding: clamp(var(--space-5), 4vw, var(--space-7)) clamp(var(--space-5), 4vw, var(--space-8)); color: var(--hero-text); background: var(--hero-bg); border-radius: var(--radius-3); }
.lead-figure-panel .funding-visual { --accent: var(--universe-accent); }
.lead-figure + .rd-band-navy { margin-top: var(--space-6); }
.lead-figure-panel .funding-visual { width: 100%; }

/* @component section-eyebrow: the small label above a section title, the same on every page: the ink of the page's audience (its accent where the page has none) with a short bar from that colour to the amber. */
.compo-intro .section-tag { color: var(--aud-ink, var(--accent-ink)); }
.compo-intro .section-tag::before {
  content: "";
  display: inline-block;
  width: 1.75rem;
  height: var(--line-3);
  margin-inline-end: var(--space-5);
  vertical-align: middle;
  border-radius: var(--radius-1);
  background: linear-gradient(90deg, var(--aud-from, var(--accent)), var(--brand-amber));
}

/* @component contact-block: the one contact section of every page, whatever its audience: the touch size of its channel links, the note above its form (free quotation, required fields) and the privacy line above its button. */
[data-component="contact"] .c-val > a { display: inline-flex; align-items: center; min-height: 2.75rem; min-width: 2.75rem; }
.form-hint { margin: 0 0 var(--space-2); color: var(--muted); font-size: var(--fs-3); line-height: var(--lh-3); }
.form-privacy { margin: var(--space-2) 0 0; color: var(--muted); font-size: var(--fs-2); line-height: var(--lh-3); }
.form-privacy a { display: flex; width: fit-content; align-items: center; min-height: 2.75rem; color: var(--accent-ink); text-decoration: underline; }

/* @component error-page: the hero of the numbered error pages (a road-sign disc with the status code, the title, a lead line) and the destination cards offered under it. */
.error-hero { padding: var(--space-10) var(--space-6) var(--space-9); background: linear-gradient(180deg, var(--white) 0%, var(--off) 100%); position: relative; overflow: hidden; min-height: 70vh; display: flex; align-items: center; }
.error-glow-top, .error-glow-bottom { position: absolute; pointer-events: none; }
.error-glow-top { top: -5rem; right: -5rem; width: 25rem; height: 25rem; background: radial-gradient(circle, var(--tone-rgba-63-93-130-0p06) 0%, transparent 100%); }
.error-glow-bottom { bottom: -3.75rem; left: -3.75rem; width: 18.75rem; height: 18.75rem; background: radial-gradient(circle, var(--tone-rgba-232-93-32-0p05) 0%, transparent 100%); }
.error-sign { display: inline-flex; align-items: center; justify-content: center; width: 12.5rem; height: 12.5rem; background: var(--surface); border: .5rem solid var(--danger); border-radius: var(--radius-round); margin-bottom: var(--space-6); position: relative; box-shadow: var(--shadow-2); }
.error-sign-code { font-family: var(--font), sans-serif; font-size: var(--fs-8); font-weight: var(--fw-4); color: var(--danger); letter-spacing: -0.05em; line-height: var(--lh-1); }
.error-sign-stripe { position: absolute; top: 50%; left: 5%; right: 5%; height: .875rem; background: var(--danger); transform: rotate(-25deg); opacity: 0.12; border-radius: var(--radius-2); }
.compo-intro p.error-tag { color: var(--danger); }
.compo-intro .error-title { font-family: var(--font), sans-serif; font-size: var(--fs-8); font-weight: var(--fw-4); color: var(--navy); letter-spacing: -0.025em; line-height: var(--lh-1); margin-bottom: var(--space-4); }
.compo-intro .error-title-compact { font-size: var(--fs-8); line-height: var(--lh-1); }
.compo-intro .error-title em { font-style: italic; color: var(--accent-ink); }
.compo-intro .error-lead { font-size: var(--fs-6); color: var(--slate); line-height: var(--lh-4); max-width: 40rem; margin-left: auto; margin-right: auto; }
.compo-intro .error-lead-plain { font-size: var(--fs-5); color: var(--slate); line-height: var(--lh-4); }
.error-recovery-links { margin-bottom: var(--space-4); color: var(--muted-strong); font-size: var(--fs-4); text-align: center; }
.error-recovery-note { color: var(--muted-strong); font-size: var(--fs-2); font-style: italic; text-align: center; }
.error-destinations { padding: var(--space-9) var(--space-6); background: var(--white); border-top: var(--line-1) solid var(--border); border-bottom: var(--line-1) solid var(--border); }
.card-edge { position: absolute; top: 0; left: 0; right: 0; height: .1875rem; background: var(--accent); }
.card-edge-ok { background: var(--ok); }
.card-edge-slate { background: var(--tone-5a6b8c); }
.card-icon { width: 2.5rem; height: 2.5rem; border-radius: var(--radius-2); background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-4); }
.card-icon-ok { background: var(--ok-soft); color: var(--ok); }
.card-icon-slate { color: var(--slate-ink); }
.compo-card .card-text { flex: 1; margin-bottom: var(--space-3); }
.card-label { color: var(--accent-ink); font-size: var(--fs-3); font-weight: var(--fw-2); }
.card-label-ok { color: var(--ok); }
.card-label-slate { color: var(--tone-5a6b8c); }

/* @component disclosure: a closed question and its answer, as a bordered panel on the off-white ground (the long form, with a summary and a body) or as a roomy card (the short form). */
.disclosure { border: var(--line-1) solid var(--border); border-radius: var(--radius-2); overflow: hidden; margin-bottom: var(--space-3); background: var(--off); }
.faq-card { background: var(--off); border: var(--line-1) solid var(--border); border-radius: var(--radius-2); padding: var(--space-4) var(--space-5); }
.faq-card-answer { margin-top: var(--space-3); color: var(--slate); font-size: var(--fs-3); line-height: var(--lh-4); }

/* @component chart-section: the two accident charts side by side (one column below 781 px, from the shared grid rule) and the sectors most exposed. */
@media (min-width: 48.8125rem) { .charts-grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: start; } }
.chart-card { border: var(--line-1) solid var(--border); border-radius: var(--radius-3); padding: var(--space-6); }
.chart-title { margin-bottom: var(--space-1); color: var(--navy); font-size: var(--fs-4); font-weight: var(--fw-3); }
.chart-source { margin-bottom: var(--space-5); color: var(--slate); font-size: var(--fs-1); }
.chart-frame { position: relative; height: 15rem; }
.chart-frame canvas { max-width: 100%; }
.sector-list { margin-top: var(--space-6); }
.sector-list-title { margin-bottom: var(--space-4); color: var(--navy); font-size: var(--fs-5); font-weight: var(--fw-3); }
.sector-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.sector-name { color: var(--navy); font-size: var(--fs-3); font-weight: var(--fw-3); }
.sector-note { margin-top: var(--space-1); color: var(--slate); font-size: var(--fs-1); }
