/* CarTold design system — compact layer on top of Bootstrap 5.3.
   Looks like a data tool, not a dealership: navy/neutral palette, system fonts,
   flat cards and tables instead of gradients, shadows or stock photography. */

:root {
    /* Brand palette (project spec section 4/16) */
    --ct-navy: #102A43;
    --ct-bg: #F6F7F9;
    --ct-card: #FFFFFF;
    --ct-action: #C55317;
    --ct-ok: #147D64;
    --ct-warn: #A65A00;
    --ct-crit: #B42318;
    --ct-border: #E1E6EB;
    --ct-text-muted: #5B6B7C;

    /* Map onto Bootstrap's own variables so built-in components pick up the palette
       without a Sass rebuild. */
    --bs-body-font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --bs-body-color: var(--ct-navy);
    --bs-body-bg: var(--ct-bg);
    --bs-primary: var(--ct-navy);
    --bs-primary-rgb: 16, 42, 67;
    --bs-link-color: var(--ct-action);
    --bs-link-hover-color: #a4430e;
    --bs-border-color: var(--ct-border);
}

body {
    line-height: 1.7;
    /* Flat --ct-bg everywhere, with a short, contained glow sitting just behind
       whatever card is at the top of the page -- not the old 380px navy-to-white
       wash down the whole first screenful. The header itself is a hard, solid
       navy edge (.ct-navbar's own background), untouched by this. */
    background:
        radial-gradient(ellipse 70% 220px at 50% 60px, rgba(16, 42, 67, 0.14), transparent 70%),
        var(--ct-bg);
    background-repeat: no-repeat;
    min-height: 100vh;
}

main {
    max-width: 760px;
}

main.is-wide {
    max-width: 1140px;
}

/* Typography — sizes per spec, Bootstrap's default h1-h3 are close but not exact */
h1 { font-size: 2rem; font-weight: 700; line-height: 1.25; }
h2 { font-size: 1.5rem; font-weight: 700; line-height: 1.3; margin-top: 2rem; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.35; }
p, li { font-size: 1.0625rem; }

@media (min-width: 768px) {
    h1 { font-size: 2.75rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.375rem; }
}

/* Header / navbar */
.ct-navbar {
    background: var(--ct-navy);
    position: relative;
    z-index: 10;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ct-navbar .navbar-brand {
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

.ct-logo-mark {
    display: inline-flex;
    line-height: 0;
}

.ct-logo-word {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.ct-navbar .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

.ct-navbar .nav-link:hover,
.ct-navbar .nav-link:focus {
    color: #fff;
}

.ct-navbar .nav-link {
    position: relative;
    padding-bottom: 0.15rem;
}

.ct-navbar .nav-link.is-active {
    color: #fff;
}

.ct-navbar .nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.15rem;
    height: 2px;
    background: var(--ct-action);
    border-radius: 2px;
}

@media (max-width: 767.98px) {
    .ct-navbar .nav-link.is-active::after { display: none; }
    .ct-navbar .nav-link.is-active { color: var(--ct-action); }
}

.ct-nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 0.375rem;
    color: #fff;
    padding: 0.4rem 0.6rem;
}

.ct-nav-menu {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

/* Six top-level items (was four) get tight between the mobile breakpoint and
   full desktop width -- a smaller gap keeps them on one line next to the brand. */
@media (min-width: 768px) and (max-width: 991.98px) {
    .ct-nav-menu { gap: 0.85rem; }
}

@media (max-width: 767.98px) {
    .ct-nav-toggle { display: inline-flex; }

    .ct-nav-menu {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
        padding-bottom: 0.75rem;
    }

    .ct-nav-menu.is-open { display: flex; }

    .ct-nav-menu .nav-link {
        padding: 0.6rem 0;
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }
}

/* Mega menu — Vehicles/Tools/Data & Methodology triggers in the header */
.ct-nav-item {
    position: relative;
}

.ct-nav-trigger {
    background: transparent;
    border: none;
    padding-bottom: 0.15rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    font: inherit;
}

.ct-nav-chevron {
    width: 0.55rem;
    height: 0.55rem;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.ct-nav-trigger[aria-expanded="true"] .ct-nav-chevron {
    transform: rotate(180deg);
}

.ct-mega-panel {
    position: absolute;
    top: calc(100% + 0.9rem);
    left: 50%;
    transform: translateX(-50%);
    background: var(--ct-card);
    color: var(--ct-navy);
    border-radius: 0.75rem;
    box-shadow: 0 20px 48px rgba(16, 42, 67, 0.28);
    border: 1px solid var(--ct-border);
    padding: 1.5rem;
    z-index: 20;
    width: max-content;
    max-width: min(90vw, 880px);
}

.ct-mega-panel[hidden] { display: none; }

/* The last nav item's panel anchors to its right edge instead of centering --
   centered under a narrow trigger ("About") it would clip past the viewport. */
.ct-mega-panel-end {
    left: auto;
    right: 0;
    transform: none;
}

.ct-mega-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 1.5rem 1.75rem;
}

/* 10 makes pack into two balanced rows of five; four columns left a ragged
   third row and tall empty gaps under single-model makes. */
.ct-mega-grid-makes {
    grid-template-columns: repeat(5, minmax(140px, 1fr));
}

.ct-mega-grid-2col {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
}

.ct-mega-col { min-width: 0; }

.ct-mega-link {
    display: block;
    color: var(--ct-navy);
    text-decoration: none;
    padding: 0.2rem 0;
    font-size: 0.9375rem;
}

.ct-mega-link:hover,
.ct-mega-link:focus-visible {
    color: var(--ct-action);
    text-decoration: underline;
}

.ct-mega-footer {
    border-top: 1px solid var(--ct-border);
    margin-top: 1.25rem;
    padding-top: 1rem;
}

.ct-mega-footer a {
    color: var(--ct-action);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
}

.ct-mega-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(170px, 1fr));
    gap: 1rem;
}

.ct-mega-tool-card {
    display: block;
    padding: 0.9rem 1rem;
    border: 1px solid var(--ct-border);
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--ct-navy);
    transition: border-color 0.15s ease;
}

.ct-mega-tool-card:hover,
.ct-mega-tool-card:focus-visible {
    border-color: var(--ct-action);
}

.ct-mega-tool-card .fw-bold {
    display: block;
    margin-bottom: 0.2rem;
}

/* Stylized make "badge" — a consistent CarTold-styled wordmark, not a reproduction
   of any manufacturer's actual logo/trademark. Same treatment for every make. */
.ct-make-badge {
    display: inline-flex;
    align-items: center;
    font-weight: 800;
    font-size: 0.6875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ct-navy);
    background: var(--ct-bg);
    border: 1px solid var(--ct-border);
    border-radius: 0.375rem;
    padding: 0.3rem 0.55rem;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: border-color 0.15s ease, color 0.15s ease;
}

a.ct-make-badge:hover,
a.ct-make-badge:focus-visible {
    border-color: var(--ct-action);
    color: var(--ct-action);
}

@media (max-width: 767.98px) {
    .ct-nav-item { width: 100%; }

    .ct-nav-trigger {
        padding: 0.6rem 0;
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        justify-content: space-between;
        color: rgba(255, 255, 255, 0.85);
    }

    .ct-mega-panel {
        position: static;
        transform: none;
        width: 100%;
        max-width: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: rgba(255, 255, 255, 0.04);
        padding: 0.75rem 1rem;
        margin-bottom: 0.25rem;
    }

    .ct-mega-grid,
    .ct-mega-grid-makes,
    .ct-mega-grid-2col,
    .ct-mega-tools-grid {
        grid-template-columns: 1fr;
        gap: 0.35rem 0;
    }

    .ct-mega-link { color: rgba(255, 255, 255, 0.8); }

    .ct-mega-tool-card {
        background: transparent;
        border-color: rgba(255, 255, 255, 0.15);
        color: #fff;
    }

    .ct-mega-footer { border-top-color: rgba(255, 255, 255, 0.15); }

    .ct-make-badge {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.2);
        color: #fff;
    }
}

/* Cards */
.ct-card {
    background: var(--ct-card);
    border: 1px solid var(--ct-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(16, 42, 67, 0.04);
}

.ct-card + .ct-card {
    margin-top: 1.5rem;
}

.ct-hero-card {
    box-shadow: 0 12px 32px rgba(16, 42, 67, 0.18);
    border-color: transparent;
}

/* Homepage hero. Dark panel so the page opens with the brand rather than a
   white card on a white page, with the vehicle selector kept on white inside it
   -- that avoids restyling every form control for a dark background, which is
   where dark heroes usually break. */
.ct-home-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0D2338 0%, var(--ct-navy) 55%, #1B4266 100%);
    color: #fff;
    border-radius: 0.75rem;
    padding: 2.5rem 1.75rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .ct-home-hero { padding: 2.5rem 2.5rem 2.25rem; }
}

/* Same diagonal hairline motif as the Open Graph image, so a shared link and
   the page it opens read as the same product. */
.ct-home-hero::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -80px;
    width: 420px;
    height: 320px;
    background: repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.05) 0 1px,
        transparent 1px 26px
    );
    pointer-events: none;
}

.ct-home-hero > * { position: relative; z-index: 1; }

.ct-home-hero h1 {
    color: #fff;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.ct-home-hero-lead {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.0625rem;
    max-width: 60ch;
    margin-bottom: 0;
}

/* Report and tool introductions reuse the lead style on white cards. */
.ct-hero-card .ct-home-hero-lead {
    color: var(--ct-text-muted);
}

/* Outback buying guide: scoped additions leave other model hubs unchanged. */
.ct-outback-kicker {
    color: var(--ct-text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.ct-outback-jumps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding: 1rem;
    border: 1px solid var(--ct-border);
    border-radius: 0.625rem;
    background: var(--ct-card);
    font-size: 0.875rem;
}
.ct-outback-section {
    margin-top: 2.5rem;
    scroll-margin-top: 5.5rem;
}
.ct-outback-year {
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr);
    gap: 1rem;
}
.ct-outback-year-label { padding-top: 0.25rem; }
.ct-outback-checklist li { margin-bottom: 1rem; }
.ct-outback-checklist li:last-child { margin-bottom: 0; }
@media (max-width: 575.98px) {
    .ct-outback-year { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
}

/* The selector sits on white inside the dark hero. */
.ct-hero-panel {
    background: #fff;
    border-radius: 0.625rem;
    padding: 1.25rem;
    margin-top: 1.5rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

/* Explicit, because the panel sits inside a hero that sets color:#fff -- without
   this the labels inherit white and vanish against the white panel. */
.ct-hero-panel,
.ct-hero-panel .form-label { color: var(--ct-text-muted); }

.ct-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1.25rem;
}

/* Secondary CTA: readable on navy without competing with the orange primary. */
.btn-ct-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #fff;
}

.btn-ct-ghost:hover,
.btn-ct-ghost:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff;
}

/* Sits inline with the CTAs rather than on its own line, so it costs no extra
   vertical space in the hero. */
.ct-hero-note {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.8125rem;
    margin: 0;
}

/* Credibility band -- counts pulled live, see HomeController::stats(). Lives
   below the hero rather than inside it: in the hero it pushed the fold past
   three quarters of a desktop screen and left nothing else visible. */
.ct-proof-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 1rem;
    background: var(--ct-card);
    border: 1px solid var(--ct-border);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .ct-proof-strip { grid-template-columns: repeat(4, 1fr); }
}

.ct-proof-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ct-navy);
    line-height: 1.15;
}

.ct-proof-label {
    display: block;
    font-size: 0.75rem;
    color: var(--ct-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.15rem;
}

/* Section rhythm. Everything used to be separated by a uniform 1.5rem, which
   read as one long list rather than distinct sections. */
.ct-section { margin-bottom: 2.25rem; }

@media (min-width: 768px) {
    .ct-section { margin-bottom: 3rem; }
}

/* Section headings with a "see all" link on the same line. */
.ct-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}

.ct-section-head h2 { margin: 0; }

.ct-section-head a {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ct-action);
    text-decoration: none;
    white-space: nowrap;
}

.ct-section-head a:hover { text-decoration: underline; }

.ct-section-lead {
    color: var(--ct-text-muted);
    margin-bottom: 1rem;
    max-width: 65ch;
}

/* Vehicle cards carry an icon, a name and a short meta line, so the shared
   1.5rem card padding left them looking mostly empty. */
.ct-vehicle-card {
    display: block;
    padding: 1.125rem 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.ct-vehicle-card:hover,
.ct-vehicle-card:focus-visible {
    border-color: var(--ct-action);
    box-shadow: 0 6px 18px rgba(16, 42, 67, 0.10);
    transform: translateY(-1px);
    color: inherit;
}

.ct-vehicle-name {
    font-weight: 700;
    line-height: 1.25;
    color: var(--ct-navy);
}

.ct-vehicle-meta {
    font-size: 0.8125rem;
    color: var(--ct-text-muted);
    margin-top: 0.15rem;
}

/* Guides / research / tools cards. */
.ct-link-card {
    display: block;
    padding: 1.25rem 1.375rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.ct-link-card:hover,
.ct-link-card:focus-visible {
    border-color: var(--ct-action);
    box-shadow: 0 6px 18px rgba(16, 42, 67, 0.10);
    transform: translateY(-1px);
    color: inherit;
}

.ct-link-card-title {
    font-weight: 700;
    color: var(--ct-navy);
    line-height: 1.3;
    margin-bottom: 0.35rem;
}

.ct-link-card-text {
    font-size: 0.875rem;
    color: var(--ct-text-muted);
    margin: 0;
    line-height: 1.5;
}

a.ct-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

a.ct-card:hover,
a.ct-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(16, 42, 67, 0.12);
    border-color: var(--ct-action);
}

.ct-model-icon {
    width: 2.75rem;
    height: 1.7rem;
    color: var(--ct-navy);
    opacity: 0.75;
    margin-bottom: 0.6rem;
    display: block;
}

/* Status badges — recalls/complaints/investigations use these consistently.
   Never use color alone: pair with a text label so the meaning survives
   grayscale printing and colorblind users. */
.ct-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.ct-badge-ok { background: #E6F4F0; color: var(--ct-ok); }
.ct-badge-warn { background: #FBF0E2; color: var(--ct-warn); }
.ct-badge-crit { background: #FBEAE8; color: var(--ct-crit); }
.ct-badge-neutral { background: #EDF0F3; color: var(--ct-text-muted); }

/* At-a-glance stat grid */
.ct-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 576px) {
    .ct-stat-grid { grid-template-columns: repeat(4, 1fr); }
}

.ct-stat {
    padding: 1rem;
    background: var(--ct-bg);
    border-radius: 0.625rem;
    border: 1px solid var(--ct-border);
}

.ct-stat-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--ct-action);
    margin-bottom: 0.4rem;
}

.ct-stat-label {
    font-size: 0.8125rem;
    color: var(--ct-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.ct-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Tables — recalls, complaints, comparisons */
.ct-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.ct-table th {
    text-align: left;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--ct-text-muted);
    border-bottom: 2px solid var(--ct-border);
    padding: 0.6rem 0.75rem;
}

.ct-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--ct-border);
    vertical-align: top;
}

.ct-table tbody tr:hover {
    background: var(--ct-bg);
}

/* Timeline — model-year / generation history */
.ct-timeline {
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid var(--ct-border);
}

.ct-timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.ct-timeline-item::before {
    content: "";
    position: absolute;
    left: -1.6875rem;
    top: 0.3rem;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: var(--ct-navy);
}

.ct-timeline-year {
    font-weight: 700;
}

/* Alerts — recall warnings, data-limitation notices */
.ct-alert {
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    border: 1px solid transparent;
    font-size: 0.9375rem;
}

.ct-alert-warn { background: #FBF0E2; border-color: #F0D9B5; color: #6b3d00; }
.ct-alert-crit { background: #FBEAE8; border-color: #F3C6C1; color: #7a170f; }
.ct-alert-info { background: #EAF1F7; border-color: #C9DCEB; color: var(--ct-navy); }
.ct-alert-ok { background: #E6F4F0; border-color: #BFE3D8; color: #0e5945; }

/* Breadcrumb */
.ct-breadcrumb {
    font-size: 0.875rem;
    color: var(--ct-text-muted);
}

.ct-breadcrumb a { color: inherit; text-decoration: none; }
.ct-breadcrumb a:hover { color: var(--ct-action); text-decoration: underline; }

/* Sources / citations block */
.ct-sources {
    font-size: 0.875rem;
    color: var(--ct-text-muted);
    border-top: 1px solid var(--ct-border);
    padding-top: 1rem;
    margin-top: 2rem;
}

.ct-sources li { margin-bottom: 0.35rem; }

/* Ad slots — fixed dimensions to avoid CLS, per project spec */
.ct-ad-slot {
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ct-bg);
    border: 1px dashed var(--ct-border);
    color: var(--ct-text-muted);
    font-size: 0.8125rem;
    margin: 2rem 0;
}

/* Vehicle silhouette / icon containers — SVG icons go here, no stock photos */
.ct-icon-tile {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ct-bg);
    border-radius: 0.5rem;
    color: var(--ct-navy);
}

/* Buttons */
.btn-ct-action {
    background: var(--ct-action);
    border-color: var(--ct-action);
    color: #fff;
}

.btn-ct-action:hover,
.btn-ct-action:focus {
    background: #a4430e;
    border-color: #a4430e;
    color: #fff;
}

/* Every colour here is checked against the navy background. The section
   headings sat at 40% white -- 3.57:1, under the 4.5:1 WCAG AA floor for small
   text -- so they were failing the standard, not just reading faint. */
footer.ct-footer {
    background: var(--ct-navy);
    color: rgba(255, 255, 255, 0.78); /* 9.4:1 */
    font-size: 0.875rem;
    margin-top: 3rem;
}

.ct-footer .ct-logo-word { color: #fff; }

/* Explains the name: the record already exists, we only read it out. */
.ct-footer-story {
    color: #fff;
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 0.45rem;
}

.ct-footer-blurb {
    color: rgba(255, 255, 255, 0.74); /* 8.6:1 */
    font-size: 0.875rem;
    line-height: 1.55;
    max-width: 44ch;
    margin: 0 0 0.7rem;
}

.ct-footer-tagline {
    color: #E9A97F; /* lightened brand orange -- 7.9:1, the darker --ct-action fails on navy */
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0;
}

.ct-footer-heading {
    color: rgba(255, 255, 255, 0.7); /* 7.6:1 -- was 3.57:1 */
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

/* Menu links: deliberately larger than the bottom disclaimer, which is the
   least important text in the footer and was only 1px smaller before. */
.ct-footer a {
    display: block;
    color: rgba(255, 255, 255, 0.9); /* 11.9:1 */
    text-decoration: none;
    font-size: 0.9375rem;
    padding: 0.2rem 0;
}

/* Ten makes as one long single column made the footer needlessly tall --
   two columns halve its height and roughly match the other columns'.
   Column flow (not row) so the alphabetical list still reads top-to-bottom
   down each column rather than zig-zagging across. */
.ct-footer-makes {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(5, auto);
    column-gap: 1.75rem;
    justify-content: start;
}

.ct-footer a:hover,
.ct-footer a:focus {
    color: #fff;
    text-decoration: underline;
}

/* 0.75rem against the links' 0.9375rem -- a visible step down, where the old
   0.8125rem was one pixel smaller and read as the same size. */
.ct-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding-top: 1.25rem;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.66); /* 7.1:1 */
    line-height: 1.6;
}

/* font-size has to be set on the paragraphs, not just the container: a global
   `p, li { font-size: 1.0625rem }` rule beats inheritance, so these lines were
   rendering at 17px -- larger than the 15px menu links above them -- and the
   container's font-size never reached them.
   max-width because full container width gave them a ~150-character measure. */
.ct-footer-bottom p {
    font-size: 0.75rem;
    max-width: 68ch;
}

/* Cookie notice banner — see public/assets/js/consent-banner.js */
.ct-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    background: var(--ct-navy);
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.2);
}

.ct-consent-banner a {
    color: #fff;
    text-decoration: underline;
}

/* Print view — used by the inspection checklist's Print button. */
@media print {
    .ct-navbar, .ct-footer, .no-print { display: none !important; }
    body { background: #fff; }
    main { max-width: 100%; }
    .ct-card { box-shadow: none; border: 1px solid #ccc; }
}
