/*
 * Vehicle report pages (free-data2.html, paid_data2.html). Everything is scoped to .rpt.
 * Colours and fonts come from the site theme (ccu-theme.css) with fallbacks.
 * Status states: clear (green), info (blue), warn (amber), alert (red), unknown (grey).
 * Status is never shown by colour alone: every state has an icon and words.
 */
.rpt {
    --r-ink: var(--ccu-navy, #0b132b);
    --r-text: #334155;
    --r-muted: #64748b;
    --r-line: #e2e8f0;
    --r-soft: #f8fafc;
    --r-card: #fff;
    --r-blue: var(--ccu-blue, #2563eb);
    --r-blue-soft: #eff6ff;
    --r-clear: #047857;
    --r-clear-soft: #ecfdf5;
    --r-clear-line: #a7f3d0;
    --r-info: #1d4ed8;
    --r-info-soft: #eff6ff;
    --r-info-line: #bfdbfe;
    --r-warn: #b45309;
    --r-warn-soft: #fffbeb;
    --r-warn-line: #fde68a;
    --r-alert: #b91c1c;
    --r-alert-soft: #fef2f2;
    --r-alert-line: #fecaca;
    --r-unknown: #475569;
    --r-unknown-soft: #f1f5f9;
    --r-unknown-line: #cbd5e1;
    --r-radius: 14px;
    --r-sticky: 72px;
    --r-font-head: var(--ccu-font-heading, "Plus Jakarta Sans", -apple-system, "Segoe UI", Roboto, sans-serif);
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px 16px 72px;
    color: var(--r-text);
    font-size: 15px;
    line-height: 1.55;
}

.rpt *, .rpt *::before, .rpt *::after { box-sizing: border-box; }
.rpt h1, .rpt h2, .rpt h3, .rpt h4 { color: var(--r-ink); font-family: var(--r-font-head); letter-spacing: -0.01em; margin: 0; font-weight: 700; line-height: 1.3; }
.rpt h2 { font-size: 1.12rem; }
.rpt h3 { font-size: 1rem; }
.rpt p { margin: 0; }
.rpt a { color: var(--r-blue); }
.rpt [id] { scroll-margin-top: calc(var(--r-sticky) + 56px); }
.rpt .rpt-muted { color: var(--r-muted); }
.rpt .rpt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- layout ---------- */
.rpt-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.rpt-main { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.rpt-aside { display: none; }

@media (min-width: 1024px) {
    .rpt { padding-top: 28px; }
    .rpt-layout { grid-template-columns: minmax(0, 1fr) 264px; gap: 28px; align-items: start; }
    .rpt-aside { display: block; position: sticky; top: calc(var(--r-sticky) + 16px); max-height: calc(100vh - var(--r-sticky) - 32px); overflow-y: auto; }
    .rpt-rail { display: none; }
}

/* ---------- cards ---------- */
.rpt-card {
    background: var(--r-card);
    border: 1px solid var(--r-line);
    border-radius: var(--r-radius);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

/* ---------- vehicle header ---------- */
.rpt-hero { padding: 20px; }
.rpt-hero-top { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.rpt-hero-id { display: flex; gap: 14px; align-items: center; min-width: 0; flex: 1 1 320px; }
.rpt-logo { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 12px; border: 1px solid var(--r-line); background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.rpt-logo img { width: 44px; height: 44px; object-fit: contain; }
.rpt-kicker { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--r-muted); margin-bottom: 2px; }
.rpt-kicker .rpt-tag { margin-left: 6px; }
.rpt-hero h1 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); line-height: 1.2; }
.rpt-plate {
    display: inline-flex; align-items: stretch; border: 2px solid #111; border-radius: 8px; overflow: hidden;
    background: var(--ccu-yellow-plate, #fdd835); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); flex: 0 0 auto;
}
.rpt-plate-badge { background: #1d3f99; color: #fff; font-size: 11px; font-weight: 700; padding: 0 7px; display: flex; align-items: flex-end; padding-bottom: 6px; }
.rpt-plate-text { font-family: var(--ccu-font-plate, "Arial Black", Impact, sans-serif); font-size: 28px; font-weight: 900; letter-spacing: 2px; color: #111; padding: 4px 16px; line-height: 1.2; white-space: nowrap; }
.rpt-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.rpt-facts li { background: var(--r-soft); border: 1px solid var(--r-line); border-radius: 999px; padding: 4px 12px; font-size: 13px; color: var(--r-text); }
.rpt-facts li b { color: var(--r-ink); font-weight: 600; }
.rpt-facts li.rpt-fact-tax.is-ok { background: #f0fdf4; border-color: #bbf7d0; }
.rpt-facts li.rpt-fact-tax.is-ok b { color: #15803d; }
.rpt-facts li.rpt-fact-tax.is-bad { background: #fef2f2; border-color: #fecaca; }
.rpt-facts li.rpt-fact-tax.is-bad b { color: #b91c1c; }
/* Free check: VIN and engine number, locked (in the full report). */
.rpt-facts li.rpt-fact-locked { background: #FFFBEB; border: 1px dashed #F59E0B; padding: 0; }
.rpt-fact-locked a { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; color: var(--r-text) !important; text-decoration: none !important; }
.rpt-fact-locked a:hover { background: #FEF3C7; border-radius: 999px; }
.rpt-fact-locked svg { width: 13px; height: 13px; flex: 0 0 13px; color: #B45309; }
.rpt-facts li.rpt-fact-locked b { color: #B45309; }
.rpt-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--r-line); align-items: center; }
.rpt-meta { margin-left: auto; font-size: 13px; color: var(--r-muted); }

/* ---------- buttons ---------- */
.rpt-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px;
    border-radius: 10px; border: 1px solid var(--r-line); background: #fff; color: var(--r-ink) !important;
    font-weight: 600; font-size: 14px; text-decoration: none !important; cursor: pointer; white-space: nowrap;
}
.rpt-btn:hover { background: var(--r-soft); }
.rpt-btn:focus-visible { outline: 3px solid var(--r-blue); outline-offset: 2px; }
.rpt-btn svg { width: 18px; height: 18px; flex: 0 0 18px; }
/* Download PDF, Share and Check another vehicle: secondary actions, kept small. */
.rpt-actions .rpt-btn { min-height: 34px; padding: 0 11px; gap: 6px; border-radius: 8px; font-size: 13px; }
.rpt-actions .rpt-btn svg { width: 15px; height: 15px; flex-basis: 15px; }
/* London ULEZ status on the free report (app/ulez.py). */
.rpt-ulez { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--r-line); border-radius: 10px; background: var(--r-soft); }
.rpt-ulez-text { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--r-text); }
.rpt-ulez-text strong { color: var(--r-ink); }
.rpt-ulez-result { display: flex; flex-direction: column; gap: 6px; }
.rpt-ulez-insurance { flex-basis: 100%; padding-top: 10px; border-top: 1px solid var(--r-line); }
.rpt-ulez-badge { align-self: flex-start; display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.rpt-ulez-badge.is-compliant { background: #DCFCE7; color: #166534; }
.rpt-ulez-badge.is-likely_compliant { background: #ECFDF5; color: #15803D; border: 1px dashed #4ADE80; }
.rpt-ulez-badge.is-likely_not { background: #FFFBEB; color: #B45309; border: 1px dashed #F59E0B; }
.rpt-ulez-badge.is-not_compliant { background: #FEE2E2; color: #B91C1C; }
.rpt-ulez-badge.is-unknown { background: #F1F5F9; color: #475569; }
.rpt-ulez-reason { font-size: 13px; color: var(--r-muted); }
.rpt-ulez-reason a { text-decoration: underline; }
/* CO2 band chart on the free report (partials/report/co2_chart.html). */
.rpt-co2 { margin: 18px 0 8px; }
.rpt-co2 figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 10px; font-size: 15px; color: var(--r-ink); }
.rpt-co2-value { font-size: 14px; color: var(--r-muted); }
.rpt-co2-bands { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.rpt-co2-bands li { display: flex; align-items: center; gap: 8px; }
.rpt-co2-track { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; }
.rpt-co2-bar { display: block; height: 18px; line-height: 18px; padding-left: 8px; border-radius: 0 9px 9px 0; color: #0F172A; font-size: 12px; font-weight: 800; box-shadow: inset 0 0 0 99px rgba(255, 255, 255, .5); }
.rpt-co2-range { flex: 0 0 72px; text-align: right; font-size: 12px; color: var(--r-muted); }
.rpt-co2-bands li.is-active .rpt-co2-bar { height: 26px; line-height: 26px; font-size: 14px; color: #fff; box-shadow: 0 2px 6px rgba(15, 23, 42, .25); }
.rpt-co2-bands li.is-active .rpt-co2-range { color: var(--r-ink); font-weight: 700; }
.rpt-co2-pin { flex: 0 0 auto; padding: 2px 8px; border-radius: 999px; background: var(--r-ink); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
/* "inc. VAT" next to a price. */
.rpt-vat { font-size: .72em; font-weight: 600; opacity: .8; white-space: nowrap; }
.rpt-buy-price .rpt-vat { display: block; font-family: var(--r-font-body, inherit); font-size: 12px; line-height: 1.3; color: var(--r-muted); opacity: 1; }
.rpt-btn-primary { background: var(--r-blue); border-color: var(--r-blue); color: #fff !important; }
.rpt-btn-primary:hover { background: var(--ccu-blue-hover, #1d4ed8); }
.rpt-btn-cta { background: #15803d; border-color: #15803d; color: #fff !important; }
.rpt-btn-cta:hover { background: #166534; }
.rpt-btn-block { width: 100%; }

/* ---------- tags / pills ---------- */
.rpt-tag { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 10px; font-size: 12.5px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.rpt-tag svg { width: 14px; height: 14px; }
.rpt-s-clear { color: var(--r-clear); background: var(--r-clear-soft); border-color: var(--r-clear-line); }
.rpt-s-info { color: #475569; background: #f1f5f9; border-color: #e2e8f0; }  /* info tags neutral grey, like the info tiles (owner, 7 Oct 2026) */
.rpt-s-warn { color: var(--r-warn); background: var(--r-warn-soft); border-color: var(--r-warn-line); }
.rpt-s-alert { color: var(--r-alert); background: var(--r-alert-soft); border-color: var(--r-alert-line); }
.rpt-s-unknown { color: var(--r-unknown); background: var(--r-unknown-soft); border-color: var(--r-unknown-line); }
.rpt-tag-sample { color: #6d28d9; background: #f5f3ff; border-color: #ddd6fe; }

/* ---------- verdict ---------- */
.rpt-verdict { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--r-radius); border: 1px solid; }
.rpt-verdict-icon { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; }
.rpt-verdict-icon svg { width: 22px; height: 22px; }
.rpt-verdict h3 { font-size: 1.15rem; margin-bottom: 4px; color: inherit; }
.rpt-verdict p { color: var(--r-text); }
.rpt-verdict ul { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.rpt-verdict li { display: flex; gap: 8px; align-items: baseline; color: var(--r-ink); }
.rpt-verdict li a { font-weight: 600; }
.rpt-verdict-clear { background: var(--r-clear-soft); border-color: var(--r-clear-line); color: var(--r-clear); }
.rpt-verdict-warn { background: var(--r-warn-soft); border-color: var(--r-warn-line); color: var(--r-warn); }
.rpt-verdict-alert { background: var(--r-alert-soft); border-color: var(--r-alert-line); color: var(--r-alert); }
.rpt-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; transform: translateY(-1px); background: currentColor; }
.rpt-dot-alert { background: var(--r-alert); }
.rpt-dot-warn { background: var(--r-warn); }

/* ---------- check grid ---------- */
.rpt-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
@media (max-width: 520px) { .rpt-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .rpt-check { padding: 12px 10px; gap: 8px; } .rpt-check-label { font-size: 11px; } }
/* small phones: status tiles one per row, so labels like "Mileage anomaly check" don't break into three lines; the
   locked full-report checks keep two columns but drop their descriptions (owner, 7 Oct 2026) */
@media (max-width: 419px) { .rpt-checks-status { grid-template-columns: 1fr; } .rpt-checks-status .rpt-check { padding: 10px 12px; } }
@media (max-width: 575px) { .rpt-locked-block .rpt-check-detail { display: none !important; } .rpt-locked-block .rpt-check { align-items: center; padding: 10px; min-height: 0; } .rpt-locked-block .rpt-check-label { font-size: 11px; line-height: 1.3; } }
.rpt-check {
    display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; background: #fff;
    border: 1px solid var(--r-line); border-left-width: 4px; color: inherit !important; text-decoration: none !important; min-height: 76px;
}
a.rpt-check:hover { background: var(--r-soft); }
.rpt-check-icon { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.rpt-check-icon svg { width: 16px; height: 16px; }
.rpt-check-label { font-size: 12.5px; color: var(--r-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.rpt-check-status { color: var(--r-ink); font-weight: 700; line-height: 1.3; }
.rpt-check-detail { font-size: 13px; color: var(--r-muted); margin-top: 2px; }
.rpt-check.rpt-c-clear { border-left-color: #10b981; }
.rpt-check.rpt-c-info { border-left-color: #cbd5e1; }  /* info is neutral grey (blue is for actions) */
.rpt-check.rpt-c-warn { border-left-color: #f59e0b; }
.rpt-check.rpt-c-alert { border-left-color: #ef4444; background: #fffafa; }
.rpt-check.rpt-c-unknown { border-left-color: #94a3b8; }
.rpt-c-clear .rpt-check-icon { background: var(--r-clear-soft); color: var(--r-clear); }
.rpt-c-info .rpt-check-icon { background: #f1f5f9; color: #64748b; }
.rpt-c-warn .rpt-check-icon { background: var(--r-warn-soft); color: var(--r-warn); }
.rpt-c-alert .rpt-check-icon { background: var(--r-alert-soft); color: var(--r-alert); }
.rpt-c-unknown .rpt-check-icon { background: var(--r-unknown-soft); color: var(--r-unknown); }
/* premium checks on the free report: gold, like the "In the full report" chips, not greyed out as if unavailable */
.rpt-check-locked { border-color: #fde68a; border-left-color: #f59e0b; background: #fffbeb; }
.rpt-check-locked .rpt-check-icon { background: #fde68a; color: #b45309; }
.rpt-check-locked .rpt-check-label { color: #78350f; }
.rpt-check-locked .rpt-check-detail { color: #92400e; }
.rpt-check-locked .rpt-check-status { color: #92400e; font-weight: 600; }

/* ---------- sections ---------- */
.rpt-section { padding: 0; overflow: hidden; }
.rpt-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--r-line); flex-wrap: wrap; }
.rpt-section-head h2 { font-size: 1.12rem; }
.rpt-section-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.rpt-lead { color: var(--r-ink); }
.rpt-explain { font-size: 14px; color: var(--r-text); background: var(--r-soft); border-radius: 10px; padding: 12px 14px; }
.rpt-explain b { color: var(--r-ink); }
.rpt-empty { display: flex; gap: 10px; align-items: center; color: var(--r-clear); font-weight: 600; }
.rpt-empty svg { width: 18px; height: 18px; }
.rpt-empty-neutral { color: var(--r-muted); }
.rpt-subhead { font-size: .95rem; margin-top: 4px; }

/* key / value lists */
.rpt-kv { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 28px; margin: 0; }
@media (min-width: 720px) { .rpt-kv-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rpt-kv-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid #f1f5f9; }
.rpt-kv dt { font-weight: 500; color: var(--r-muted); font-size: 14px; }
.rpt-kv dd { margin: 0; font-weight: 600; color: var(--r-ink); text-align: right; overflow-wrap: anywhere; }

/* evidence records */
.rpt-records { display: grid; gap: 12px; }
.rpt-record { border: 1px solid var(--r-alert-line); border-radius: 12px; overflow: hidden; }
.rpt .rpt-record-head { background: var(--r-alert-soft); color: var(--r-alert); font-size: 15px; font-weight: 700; padding: 10px 14px; display: flex; gap: 8px; align-items: center; }
.rpt-record-head svg { width: 16px; height: 16px; }
.rpt-record .rpt-kv { padding: 4px 14px 8px; }

/* tables: cards on phones */
.rpt-table-wrap { overflow-x: auto; border: 1px solid var(--r-line); border-radius: 12px; }
.rpt-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rpt-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--r-muted); background: var(--r-soft); padding: 10px 14px; border-bottom: 1px solid var(--r-line); white-space: nowrap; }
.rpt-table td { padding: 11px 14px; border-bottom: 1px solid #f1f5f9; color: var(--r-ink); vertical-align: top; }
.rpt-table tr:last-child td { border-bottom: 0; }
/* the mileage readings: a compact table on phones too, not one card per reading */
@media (max-width: 640px) {
    .rpt-table-wrap.rpt-table-keep { border: 1px solid var(--r-line); }
    .rpt-table-keep .rpt-table thead { position: static; width: auto; height: auto; clip: auto; overflow: visible; }
    .rpt-table-keep .rpt-table { display: table; } .rpt-table-keep .rpt-table tbody { display: table-row-group; }
    .rpt-table-keep .rpt-table tr { display: table-row; border: 0; margin: 0; padding: 0; }
    .rpt-table-keep .rpt-table td { display: table-cell; width: auto; text-align: left; padding: 9px 12px; }
    .rpt-table-keep .rpt-table td::before { content: none; }
    .rpt-table-keep .rpt-table th { padding: 8px 12px; }
}
.rpt-table-more { display: block; margin-top: 8px; padding: 0; border: 0; background: none; color: var(--r-link, #2563eb); font-weight: 600; cursor: pointer; }
@media (max-width: 640px) {
    .rpt-table-wrap { border: 0; overflow: visible; }
    .rpt-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .rpt-table, .rpt-table tbody, .rpt-table tr, .rpt-table td { display: block; width: 100%; }
    .rpt-table tr { border: 1px solid var(--r-line); border-radius: 12px; margin-bottom: 10px; padding: 4px 0; }
    .rpt-table td { display: flex; justify-content: space-between; gap: 12px; text-align: right; padding: 8px 14px; }
    .rpt-table td::before { content: attr(data-label); color: var(--r-muted); font-weight: 500; text-align: left; }
}

/* ---------- MOT timeline ---------- */
.rpt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.rpt-stat { background: var(--r-soft); border: 1px solid var(--r-line); border-radius: 12px; padding: 12px 14px; }
.rpt-stat b { display: block; font-size: 1.25rem; color: var(--r-ink); font-family: var(--r-font-head); }
.rpt-stat span { font-size: 12.5px; color: var(--r-muted); }
.rpt-mot { list-style: none; margin: 0; padding: 0; position: relative; }
.rpt-mot-item { position: relative; padding: 0 0 18px 28px; }
.rpt-mot-item::before { content: ""; position: absolute; left: 7px; top: 18px; bottom: 0; width: 2px; background: var(--r-line); }
.rpt-mot-item:last-child::before { display: none; }
.rpt-mot-dot { position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--r-line); }
.rpt-mot-pass .rpt-mot-dot { background: #10b981; }
.rpt-mot-fail .rpt-mot-dot { background: #ef4444; }
.rpt-mot-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.rpt-mot-date { font-weight: 700; color: var(--r-ink); }
.rpt-mot-sub { font-size: 13.5px; color: var(--r-muted); margin-top: 2px; }
.rpt-mot-sub b { color: var(--r-ink); font-weight: 600; }
.rpt-defects { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.rpt-defects li { display: flex; gap: 10px; align-items: baseline; font-size: 14px; padding: 8px 12px; border-radius: 8px; }
.rpt-defects .rpt-d-fail { background: var(--r-alert-soft); }
.rpt-defects .rpt-d-adv { background: var(--r-warn-soft); }
.rpt-defects .rpt-tag { flex: 0 0 auto; }
.rpt-more { border-top: 1px dashed var(--r-line); padding-top: 12px; }
.rpt-more > summary { cursor: pointer; font-weight: 600; color: var(--r-blue); list-style: none; min-height: 44px; display: flex; align-items: center; }
.rpt-more > summary::-webkit-details-marker { display: none; }
.rpt-more[open] > summary { margin-bottom: 12px; }

/* ---------- mileage chart ---------- */
.rpt-chart { width: 100%; height: auto; display: block; }
.rpt-chart .grid { stroke: #eef2f7; stroke-width: 1; }
.rpt-chart .axis { fill: var(--r-muted); font-size: 12.5px; }
.rpt-chart .line { fill: none; stroke: var(--r-blue); stroke-width: 2.5; stroke-linejoin: round; }
.rpt-chart .area { fill: rgba(37, 99, 235, .08); }
.rpt-chart .dot { fill: #fff; stroke: var(--r-blue); stroke-width: 2.5; }
.rpt-chart .dot-drop { fill: #fff; stroke: #dc2626; stroke-width: 3; }
.rpt-drop { color: var(--r-alert); font-weight: 700; }

/* ---------- specification accordions ---------- */
.rpt-specs { display: flex; flex-direction: column; gap: 10px; }
.rpt-spec { border: 1px solid var(--r-line); border-radius: 12px; background: #fff; }
.rpt-spec > summary { cursor: pointer; list-style: none; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 700; color: var(--r-ink); min-height: 48px; }
.rpt-spec > summary::-webkit-details-marker { display: none; }
.rpt-spec > summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--r-muted); border-bottom: 2px solid var(--r-muted); transform: rotate(45deg); transition: transform .15s; margin-right: 4px; }
.rpt-spec[open] > summary::after { transform: rotate(-135deg); }
.rpt-spec > summary span { font-weight: 500; color: var(--r-muted); font-size: 13px; margin-left: auto; }
.rpt-spec .rpt-kv { padding: 0 16px 10px; }
@media (prefers-reduced-motion: reduce) { .rpt-spec > summary::after { transition: none; } }

/* ---------- navigation ---------- */
.rpt-nav { padding: 14px; }
.rpt-nav h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--r-muted); margin: 2px 6px 8px; }
.rpt-nav ol { list-style: none; margin: 0; padding: 0; }
.rpt-nav li.rpt-nav-group { margin: 12px 0 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--r-muted); }
.rpt-nav li.rpt-nav-group:first-child { margin-top: 0; }
.rpt-rail li.rpt-nav-group { display: none; }
.rpt-nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 8px; border-radius: 8px; color: var(--r-text) !important; text-decoration: none !important; font-size: 14px; }
.rpt-nav a:hover, .rpt-nav a.is-active { background: var(--r-blue-soft); color: var(--r-ink) !important; }
.rpt-nav a.is-active { font-weight: 600; }
.rpt-nav .rpt-dot { transform: none; }
.rpt-aside .rpt-card + .rpt-card { margin-top: 12px; }
.rpt-aside-cta { padding: 16px; }
.rpt-aside-cta h2 { font-size: 1rem; margin-bottom: 6px; }
.rpt-aside-cta p { font-size: 14px; margin-bottom: 12px; }

.rpt-rail {
    position: sticky; top: var(--r-sticky); z-index: 20; margin: 0 -16px; padding: 8px 16px;
    background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--r-line); backdrop-filter: saturate(1.4) blur(6px);
}
.rpt-rail ol { display: flex; gap: 8px; overflow-x: auto; list-style: none; margin: 0; padding: 0; scrollbar-width: none; }
.rpt-rail ol::-webkit-scrollbar { display: none; }
.rpt-rail a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--r-line); background: #fff; white-space: nowrap; font-size: 13.5px; font-weight: 600; color: var(--r-text) !important; text-decoration: none !important; }
.rpt-rail a.is-active { background: var(--r-ink); border-color: var(--r-ink); color: #fff !important; }
/* No colour transition: while a tap scrolls the page the highlighted item changes quickly and faded mid-transition. */
.rpt-rail a, .rpt-nav a { transition: none !important; }
/* A premium (locked) item of the free check, highlighted: its light amber background would hide the white text. */
.rpt-rail a.rpt-nav-locked.is-active { background: #92400e !important; border-color: #92400e !important; color: #fff !important; }
.rpt-rail a.rpt-nav-locked.is-active .rpt-lock { color: #fff; }

/* ---------- upsell (free report) ---------- */
.rpt-upsell { padding: 22px 20px; background: linear-gradient(180deg, #0b132b 0%, #13214a 100%); color: #e2e8f0; border: 0; }
.rpt-upsell h2 { color: #fff; font-size: 1.3rem; margin-bottom: 6px; }
.rpt-upsell p { color: #cbd5e1; }
.rpt-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 16px; }
.rpt-plan { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); color: #fff !important; text-decoration: none !important; }
.rpt-plan:hover { background: rgba(255, 255, 255, .12); }
.rpt-plan-best { border-color: #4ade80; background: rgba(74, 222, 128, .1); }
.rpt-plan b { font-size: 1.35rem; font-family: var(--r-font-head); }
.rpt-plan span { font-size: 13px; color: #cbd5e1; }
.rpt-plan em { font-style: normal; font-size: 12.5px; color: #86efac; font-weight: 600; }
.rpt-plan-go { margin-top: 8px; font-weight: 700; color: #fff; }
.rpt-upsell-note { margin-top: 12px; font-size: 13px; color: #94a3b8 !important; }
.rpt-upsell-note a { color: #93c5fd !important; }

.rpt-mobile-cta { display: none; }
@media (max-width: 1023px) {
    .rpt-mobile-cta {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; gap: 12px; align-items: center; justify-content: space-between;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--r-line); box-shadow: 0 -4px 16px rgba(15, 23, 42, .08);
    }
    .rpt-mobile-cta p { font-size: 13px; line-height: 1.3; color: var(--r-muted); }
    .rpt-mobile-cta b { display: block; color: var(--r-ink); font-size: 14px; }
    .rpt-has-cta { padding-bottom: 110px; }
}

/* ---------- about / sources ---------- */
.rpt-about { padding: 18px 20px; font-size: 14px; }
.rpt-about h2 { font-size: 1rem; margin-bottom: 8px; }
.rpt-sources { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 12px 0; }
.rpt-sources div { background: var(--r-soft); border-radius: 10px; padding: 10px 12px; }
.rpt-sources b { color: var(--r-ink); display: block; }
.rpt-provider-notes { margin: 8px 0 0; padding-left: 18px; }

/* ---------- print / PDF ---------- */
@media print {
    .rpt { max-width: none; padding: 0; }
    .rpt-layout { grid-template-columns: minmax(0, 1fr); }
    .rpt-aside, .rpt-rail, .rpt-actions, .rpt-mobile-cta, .rpt-upsell { display: none !important; }
    .rpt-card, .rpt-check, .rpt-record, .rpt-mot-item, .rpt-kv-row, .rpt-table tr { break-inside: avoid; }
    .rpt-section-head { break-after: avoid; }
    .rpt-check { min-height: 0; }
}
body.pdf-export .rpt-aside, body.pdf-export .rpt-rail, body.pdf-export .rpt-actions,
body.pdf-export .rpt-mobile-cta, body.pdf-export .rpt-upsell { display: none !important; }
body.pdf-export .rpt { max-width: none; padding: 0; }
body.pdf-export .rpt-layout { grid-template-columns: minmax(0, 1fr); }

/* history blocks in "Ownership and changes" */
.rpt-history + .rpt-history { padding-top: 14px; border-top: 1px solid var(--r-line); }
.rpt-history .rpt-table-wrap { margin-top: 10px; }

/* wide tables fit the A4 width in print and PDF */
@media print {
    .rpt-table { font-size: 12px; }
    .rpt-table th, .rpt-table td { padding: 6px 8px; white-space: normal; }
    .rpt-table-wrap { overflow: visible; }
}
body.pdf-export .rpt-table { font-size: 12px; }
body.pdf-export .rpt-table th, body.pdf-export .rpt-table td { padding: 6px 8px; white-space: normal; }
body.pdf-export .rpt-table-wrap { overflow: visible; }

/* ---------- buy buttons: stand out without extra sections ---------- */
.rpt-btn-cta {
    background: linear-gradient(180deg, #16a34a 0%, #15803d 100%); border-color: #15803d;
    font-weight: 800; font-size: 15px; min-height: 48px;
    box-shadow: 0 8px 18px -8px rgba(21, 128, 61, .75), inset 0 1px 0 rgba(255, 255, 255, .18);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.rpt-btn-cta::after { content: "\2192"; font-weight: 800; transition: transform .15s ease; }
.rpt-btn-cta:hover { background: linear-gradient(180deg, #15803d 0%, #166534 100%); transform: translateY(-1px); box-shadow: 0 12px 22px -8px rgba(21, 128, 61, .8); }
.rpt-btn-cta:hover::after { transform: translateX(3px); }
.rpt-btn-cta:focus-visible { outline: 3px solid #86efac; outline-offset: 2px; }

/* Side card on desktop: highlighted, with the price button */
.rpt-aside-cta { border: 2px solid #86efac; background: linear-gradient(180deg, #f0fdf4 0%, #fff 70%); box-shadow: 0 12px 28px -18px rgba(21, 128, 61, .55); }
.rpt-aside-cta h2 { font-size: 1.05rem; font-weight: 800; }

/* Plan tiles in the dark "what the free report can't show" section: the call to action looks like a button */
.rpt-plan { transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.rpt-plan:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .35); }
.rpt-plan-go { display: flex; align-items: center; justify-content: center; margin-top: auto; min-height: 44px; padding: 0 12px; border-radius: 10px; background: linear-gradient(180deg, #16a34a 0%, #15803d 100%); color: #fff !important; font-size: 14.5px; font-weight: 800; box-shadow: 0 8px 18px -8px rgba(22, 163, 74, .8), inset 0 1px 0 rgba(255, 255, 255, .18); transition: background .15s ease; }
.rpt-plan > span.rpt-plan-go { color: #fff; }
.rpt-plan:hover .rpt-plan-go { background: linear-gradient(180deg, #15803d 0%, #166534 100%); }
.rpt-plan-best .rpt-plan-go { background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%); min-height: 48px; font-size: 15.5px; box-shadow: 0 10px 22px -8px rgba(34, 197, 94, .9); }
.rpt-plan { gap: 4px; }
.rpt-plan-go { margin-top: auto; }
.rpt-plan > :nth-last-child(2) { margin-bottom: 12px; }
.rpt-plan-best { border-width: 2px; }

/* Bottom bar on phones and tablets: larger button */
@media (max-width: 1023px) {
    .rpt-mobile-cta { border-top: 2px solid #86efac; }
    .rpt-mobile-cta .rpt-btn-cta { min-height: 50px; padding: 0 18px; font-size: 15.5px; flex-shrink: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .rpt-btn-cta, .rpt-btn-cta::after, .rpt-plan { transition: none; }
    .rpt-btn-cta:hover, .rpt-plan:hover { transform: none; }
    .rpt-btn-cta:hover::after { transform: none; }
}

/* ---------- free report: price options at the top ---------- */
.rpt-buy { padding: 20px; border: 1px solid #bbf7d0; background: linear-gradient(180deg, #f0fdf4 0%, #fff 55%); }
.rpt-buy-head h2 { font-size: 1.2rem; font-weight: 800; color: var(--r-ink); margin: 0 0 4px; }
.rpt-buy-head p { font-size: 14px; color: var(--r-text); margin: 0; }
.rpt-buy-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.rpt-buy-plan {
    position: relative; display: flex; flex-direction: column; gap: 2px; padding: 18px 16px 16px;
    background: #fff; border: 1px solid var(--r-line); border-radius: 14px; color: var(--r-ink) !important; text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.rpt-buy-plan:hover { transform: translateY(-2px); border-color: #86efac; box-shadow: 0 12px 24px -14px rgba(15, 23, 42, .3); }
.rpt-buy-plan:focus-visible { outline: 3px solid var(--r-blue); outline-offset: 2px; }
.rpt-buy-plan.is-main { border: 2px solid #16a34a; box-shadow: 0 14px 30px -16px rgba(22, 163, 74, .55); }
.rpt-buy-badge { position: absolute; top: -11px; left: 14px; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; padding: 3px 10px; border-radius: 999px; background: #15803d; color: #fff; }
.rpt-buy-badge.rpt-buy-save { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.rpt-buy-name { font-size: 13.5px; font-weight: 700; color: var(--r-muted); }
.rpt-buy-price { font-family: var(--r-font-head); font-size: 1.7rem; font-weight: 800; line-height: 1.15; color: var(--r-ink); }
.rpt-buy-sub { font-size: 13px; color: var(--r-muted); margin-bottom: 14px; }
.rpt-buy-go {
    margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; border-radius: 8px;
    font-weight: 700; font-size: 14px; color: #15803d; background: #fff; border: 2px solid #16a34a; transition: background .15s ease, color .15s ease;
}
.rpt-buy-go::after { content: "\2192"; transition: transform .15s ease; }
.rpt-buy-plan:hover .rpt-buy-go { background: #f0fdf4; }
.rpt-buy-plan:hover .rpt-buy-go::after { transform: translateX(3px); }
.rpt-buy-plan.is-main .rpt-buy-go { color: #fff; border-color: #15803d; background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%); box-shadow: 0 8px 18px -8px rgba(22, 163, 74, .8); }
.rpt-buy-plan.is-main:hover .rpt-buy-go { background: linear-gradient(180deg, #16a34a 0%, #15803d 100%); }
.rpt-buy-note { margin: 14px 0 0; font-size: 12.5px; color: var(--r-muted); }

/* lower dark section: one button instead of repeating the prices */
.rpt-upsell-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 18px; }
.rpt-upsell-more { color: #93c5fd !important; font-weight: 600; font-size: 14px; }

@media (max-width: 767px) {
    .rpt-buy { padding: 16px; }
    .rpt-buy-head h2 { font-size: 1.08rem; }
    .rpt-buy-plans { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    /* compact rows on phones: name and price on the left, button on the right */
    .rpt-buy-plan { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name go" "price go" "sub go"; column-gap: 12px; align-items: center; padding: 16px 14px 14px; }
    .rpt-buy-name { grid-area: name; }
    .rpt-buy-price { grid-area: price; font-size: 1.4rem; }
    .rpt-buy-sub { grid-area: sub; margin-bottom: 0; }
    .rpt-buy-go { grid-area: go; margin: 0; min-height: 36px; padding: 0 12px; font-size: 13px; white-space: nowrap; }
    .rpt-buy-plan.is-main { order: -1; }
    .rpt-upsell-buy .rpt-btn { width: 100%; }
}
@media (max-width: 374px) { .rpt-buy-go { padding: 0 10px; font-size: 12.5px; } }
@media (prefers-reduced-motion: reduce) {
    .rpt-buy-plan, .rpt-buy-go, .rpt-buy-go::after { transition: none; }
    .rpt-buy-plan:hover { transform: none; }
}

/* ---------- mileage anomaly check panel (mileage section, free and full reports) ---------- */
.rpt-mcheck { border: 1px solid var(--r-line); border-left: 4px solid #94a3b8; border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; background: #fff; }
.rpt-mcheck.rpt-c-clear { border-left-color: #10b981; background: linear-gradient(90deg, var(--r-clear-soft) 0%, #fff 60%); }
.rpt-mcheck.rpt-c-warn { border-left-color: #f59e0b; background: linear-gradient(90deg, var(--r-warn-soft) 0%, #fff 60%); }
.rpt-mcheck.rpt-c-info { border-left-color: #3b82f6; }
.rpt-mcheck-head { display: flex; align-items: center; gap: 10px; }
.rpt-mcheck-head b { font-size: 1.05rem; color: var(--r-ink); }
.rpt-mcheck-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 12px 0 0; }
.rpt-mcheck-facts div { background: rgba(255, 255, 255, .8); border: 1px solid var(--r-line); border-radius: 10px; padding: 8px 10px; }
.rpt-mcheck-facts dt { font-size: 12px; font-weight: 600; color: var(--r-muted); }
.rpt-mcheck-facts dd { margin: 0; font-weight: 800; color: var(--r-ink); font-size: 14.5px; }
.rpt-mcheck-facts dd span { display: block; font-size: 12px; font-weight: 500; color: var(--r-muted); }
.rpt-mcheck-note { margin: 10px 0 0; font-size: 13.5px; color: var(--r-text); }
@media (max-width: 767px) { .rpt-mcheck-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media print { .rpt-mcheck { break-inside: avoid; } }

/* Research figure in the free report's buy box (templates/free-data2.html) */

/* print and PDF: the folded mileage readings too (partials/report/mileage.html) */
@media print { .rpt-mileage-more { display: table-row-group !important; } .rpt-table-more { display: none !important; } }
