/* ==========================================================================
   Site styles.

   Every visual rule lives here. There is no inline style anywhere in the
   views, and the HTML sanitiser strips style attributes from article bodies,
   so this file is the only thing that decides how the site looks.

   Bootstrap 5.3 is loaded first, then Bootstrap Icons and the brand typeface
   (Plus Jakarta Sans, from jsdelivr like Bootstrap); this layers on top. The
   design follows Bootstrap's own example patterns (heroes, feature icons, card
   grids) rather than a third-party theme: a theme brings its own layout CSS,
   which would break the rule below, and its own licence terms.

   THE DIVISION OF LABOUR, which is the rule to keep:

     Bootstrap owns LAYOUT.  container, row, col-*, d-flex, flex-*, gap-*,
                             justify-*, align-*, the spacing scale, the grid
                             breakpoints, table-responsive, img-fluid.
     This file owns SKIN.    colour, border, radius, shadow, type scale,
                             bespoke spacing values the Bootstrap scale has no
                             step for, and Bootstrap's own --bs-* variables.

   So a flex row is written `class="d-flex flex-wrap gap-3"` in the view, not
   `display: flex` in here. The point is not purity: two systems both laying out
   the same element is how a page ends up responsive in one place and not the
   other, and the one that loses is always the phone.

   If you find yourself writing display:flex, display:grid, justify-content or a
   media query for a breakpoint here, that belongs in the markup as a utility.
   ========================================================================== */

:root {
    /* Brand, measured from the logo (5 October 2026). Change these and the site changes.
       Deep blue carries buttons, links and small text: white on it is about 8:1.
       The bright logo blue is about 4.1:1 against white, which fails for body-size
       text, so it is kept to borders, icons, focus rings and large type. */
    --brand:            #034aa8;
    --brand-dark:       #023a85;
    --brand-deep:       #021f48;   /* the darkest blue: hero shadow side and the footer */
    --brand-accent:     #057de9;
    --brand-contrast:   #ffffff;
    --brand-tint:       #eaf2fd;   /* light blue surfaces: icon tiles, recommended cards */
    --brand-tint-strong:#d3e4fb;

    --ink:              #070f16;
    --ink-soft:         #23313f;
    --ink-muted:        #566676;
    --rule:             #e0e6ee;
    --field-border:     #c9d3df;
    --surface:          #ffffff;
    --surface-alt:      #f5f8fc;

    --success:          #0f7b40;
    --star:             #b45309;

    --font-sans: "Plus Jakarta Sans Variable", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --radius:           .75rem;
    --radius-lg:        1.25rem;
    --shadow-sm:        0 1px 2px rgba(7, 15, 22, .05), 0 1px 3px rgba(7, 15, 22, .06);
    --shadow-md:        0 10px 24px rgba(2, 31, 72, .10);
    --shadow-lg:        0 24px 56px rgba(2, 31, 72, .22);

    --measure:          68ch;

    /* Bootstrap's own variables, so its components carry the brand. In 5.3 links
       and the colour utilities read the -rgb forms; setting only --bs-link-color
       leaves every link Bootstrap's default blue. */
    --bs-primary:              var(--brand);
    --bs-primary-rgb:          3, 74, 168;
    --bs-primary-bg-subtle:    var(--brand-tint);
    --bs-primary-border-subtle:var(--brand-tint-strong);
    --bs-primary-text-emphasis:var(--brand-dark);
    --bs-link-color:           var(--brand);
    --bs-link-color-rgb:       3, 74, 168;
    --bs-link-hover-color:     var(--brand-dark);
    --bs-link-hover-color-rgb: 2, 58, 133;
    --bs-body-font-family:     var(--font-sans);
    --bs-body-color:           var(--ink);
    --bs-body-color-rgb:       7, 15, 22;
    --bs-secondary-color:      var(--ink-muted);
    --bs-border-color:         var(--rule);
    --bs-border-radius:        var(--radius);
    --bs-border-radius-lg:     var(--radius-lg);
    --bs-focus-ring-color:     rgba(5, 125, 233, .35);
}

body {
    color: var(--ink);
    background: var(--surface);
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--ink);
    font-weight: 750;
    letter-spacing: -.012em;
}

a { text-underline-offset: .18em; }

/* --- buttons -----------------------------------------------------------------
   Rounded, bold and generous, so the next step is never in doubt. */

.btn {
    --bs-btn-font-weight: 700;
    --bs-btn-padding-x: 1.125rem;
    --bs-btn-padding-y: .55rem;
    --bs-btn-border-radius: .625rem;
    letter-spacing: .005em;
}
.btn-lg {
    --bs-btn-padding-x: 1.5rem;
    --bs-btn-padding-y: .8rem;
    --bs-btn-font-size: 1.0625rem;
    --bs-btn-border-radius: .75rem;
}
.btn-sm {
    --bs-btn-padding-x: .8rem;
    --bs-btn-padding-y: .35rem;
    --bs-btn-border-radius: .5rem;
}

.btn-primary {
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand-dark);
    --bs-btn-hover-border-color: var(--brand-dark);
    --bs-btn-active-bg: var(--brand-deep);
    --bs-btn-active-border-color: var(--brand-deep);
    --bs-btn-disabled-bg: var(--brand);
    --bs-btn-disabled-border-color: var(--brand);
    box-shadow: 0 6px 14px rgba(3, 74, 168, .22);
}
.btn-primary:hover { box-shadow: 0 8px 18px rgba(3, 74, 168, .30); }

.btn-outline-primary {
    --bs-btn-color: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand);
    --bs-btn-hover-border-color: var(--brand);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--brand-dark);
    --bs-btn-active-border-color: var(--brand-dark);
}

/* The main call to action. On a light page it is the solid brand button; on the
   blue hero, the blue bands and the footer it turns white with deep-blue text,
   because a blue button disappears into a blue background. Deep blue on white
   and white on deep blue are both about 8:1. */
.btn-accent {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand-dark);
    --bs-btn-hover-border-color: var(--brand-dark);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--brand-deep);
    --bs-btn-active-border-color: var(--brand-deep);
    box-shadow: 0 6px 14px rgba(3, 74, 168, .22);
}
.on-dark .btn-accent,
.hero .btn-accent,
.cta-band .btn-accent,
.site-footer .btn-accent {
    --bs-btn-color: var(--brand);
    --bs-btn-bg: #fff;
    --bs-btn-border-color: #fff;
    --bs-btn-hover-color: var(--brand-dark);
    --bs-btn-hover-bg: #e6f0fd;
    --bs-btn-hover-border-color: #e6f0fd;
    --bs-btn-active-color: var(--brand-dark);
    --bs-btn-active-bg: #cfe2fb;
    --bs-btn-active-border-color: #cfe2fb;
    box-shadow: 0 8px 20px rgba(2, 31, 72, .25);
}

/* A quiet second choice on a blue background. */
.btn-outline-light {
    --bs-btn-border-color: rgba(255, 255, 255, .55);
    --bs-btn-hover-bg: rgba(255, 255, 255, .12);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-border-color: #fff;
}

/* --- form controls ---------------------------------------------------------- */

.form-control,
.form-select {
    border-color: var(--field-border);
    border-radius: .625rem;
}
.form-control-lg,
.form-select-lg { border-radius: .75rem; }
.form-control:focus,
.form-select:focus {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 .25rem rgba(5, 125, 233, .18);
}
.form-check-input:checked {
    background-color: var(--brand);
    border-color: var(--brand);
}
.form-check-input:focus { border-color: var(--brand-accent); box-shadow: 0 0 0 .25rem rgba(5, 125, 233, .18); }
.input-group-text { background: var(--surface-alt); border-color: var(--field-border); color: var(--ink-muted); }

/* Bootstrap's nav pills and dropdowns read their own variables, not --bs-primary. */
.nav-pills {
    --bs-nav-link-color: var(--ink-soft);
    --bs-nav-link-hover-color: var(--brand);
    --bs-nav-pills-link-active-bg: var(--brand);
}
.dropdown-menu {
    --bs-dropdown-link-active-bg: var(--brand);
    --bs-dropdown-border-radius: var(--radius);
    --bs-dropdown-box-shadow: var(--shadow-md);
}

/* --- badges ------------------------------------------------------------------ */

.badge { --bs-badge-font-weight: 700; --bs-badge-padding-x: .7em; --bs-badge-padding-y: .45em; border-radius: 999px; letter-spacing: .01em; }
.badge.bg-success { background-color: var(--success) !important; }
.badge.bg-light   { background-color: var(--surface-alt) !important; }

/* --- focus and touch ------------------------------------------------------
   Keyboard users need to see where they are. :focus-visible rather than :focus
   so a mouse click does not leave a ring behind, which is why authors reach for
   outline:none and break keyboard navigation entirely. */

:focus-visible {
    outline: 3px solid var(--brand-accent);
    outline-offset: 2px;
    border-radius: 2px;
}

/* A finger is about 9mm. On a touch screen every control gets a 44px target,
   which is the one accessibility rule that is also plainly a usability one:
   below it, people mis-tap and give up on the form. */
@media (pointer: coarse) {
    .btn,
    .nav-link,
    .page-link,
    .form-control,
    .form-select {
        min-height: 44px;
    }

    .btn-sm {
        min-height: 40px;
        padding-inline: .875rem;
    }
}

.skip-link {
    position: absolute;
    top: .5rem;
    left: .5rem;
    z-index: 1080;
    padding: .5rem .875rem;
    background: var(--brand);
    color: var(--brand-contrast);
    border-radius: var(--radius);
}

/* --- header ------------------------------------------------------------- */

/* A thin strip in the logo's two blues above the header. Decorative only. */
.topbar {
    background: linear-gradient(90deg, var(--brand-deep) 0%, var(--brand) 55%, var(--brand-accent) 100%);
}
.topbar-empty   { height: .3rem; padding: 0; }

/* Sticks to the top (sticky-top on the element) and stays readable over whatever
   scrolls beneath it. */
.site-header {
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
    box-shadow: 0 1px 0 var(--rule), 0 6px 18px rgba(2, 31, 72, .04);
}
.site-header .navbar { padding-block: .35rem; }

/* The logo is square, so its height is the header's height. It scales with the
   viewport rather than switching at a breakpoint. */
.site-logo           { height: clamp(52px, 6vw, 72px); width: auto; }

.navbar-brand        { font-weight: 800; color: var(--brand); }
.site-header .nav-link {
    font-weight: 650;
    color: var(--ink-soft);
    border-radius: .5rem;
}
.site-header .nav-link:hover,
.site-header .nav-link:focus { color: var(--brand); }
.site-header .nav-link.active { color: var(--brand); }

.nav-search          { margin: .25rem .75rem; }
.nav-search .form-control {
    min-width: 11rem;
    border-radius: 999px;
    background: var(--surface-alt);
    padding-inline: 1rem;
}
.nav-cta             { white-space: nowrap; }

/* Small laptops (992-1199px): the full menu, search and the button on one line.
   Menu labels never wrap; the spacing, the search box and the logo give way instead. */
@media (min-width: 992px) {
    .navbar .nav-link { white-space: nowrap; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar .nav-link { padding-left: .45rem; padding-right: .45rem; font-size: .9375rem; }
    .nav-search { margin: .25rem .4rem; }
    .nav-search .form-control { min-width: 0; width: 8.5rem; }
    .site-logo { height: 56px; }
}

.breadcrumb-bar {
    background: var(--surface-alt);
    border-bottom: 1px solid var(--rule);
    padding: .6rem 0;
    font-size: .875rem;
}
.breadcrumb-bar .breadcrumb-item a { color: var(--ink-muted); text-decoration: none; }
.breadcrumb-bar .breadcrumb-item a:hover { color: var(--brand); text-decoration: underline; }
.breadcrumb-bar .breadcrumb-item.active { color: var(--ink-soft); font-weight: 600; }

/* --- hero --------------------------------------------------------------- */

/* Deep blue to brand blue, lit from the top right with the logo's bright blue.
   Gradients only: no photograph pretends to be a real driver's van. */
.hero {
    position: relative;
    overflow: hidden;
    color: var(--brand-contrast);
    background:
        radial-gradient(900px 480px at 88% -12%, rgba(5, 125, 233, .55), transparent 62%),
        radial-gradient(700px 420px at -8% 112%, rgba(5, 125, 233, .28), transparent 60%),
        linear-gradient(135deg, var(--brand-deep) 0%, var(--brand-dark) 45%, var(--brand) 100%);
    padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.25rem, 7vw, 6.5rem);
}
.hero h1, .hero h2, .hero h3 { color: #fff; }
.hero-eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    padding: .35rem .9rem;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: rgba(255, 255, 255, .92);
    margin-bottom: 1.25rem;
}
.hero-title {
    font-size: clamp(2.25rem, 5.2vw, 3.75rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.028em;
    margin-bottom: 1rem;
    max-width: 18ch;
}
.hero-title-accent { color: #9cc8ff; }
.hero-lead  { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .88); max-width: 54ch; margin-bottom: 1.75rem; }

/* The postcode search on the hero: a white card that lifts off the blue. */
.hero-search {
    background: var(--surface);
    color: var(--ink);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: clamp(1rem, 2.5vw, 1.5rem);
    max-width: 38rem;
}
.hero-search .form-label { font-weight: 700; font-size: .9375rem; color: var(--ink); }
.hero-search-or { font-size: .9375rem; color: var(--ink-muted); }

/* What booking through the site means, on frosted glass beside the search. */
.hero-panel {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--radius-lg);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
}
.hero-panel-title { font-size: 1.125rem; font-weight: 750; margin-bottom: 1rem; color: #fff; }
.hero-panel-item  { color: rgba(255, 255, 255, .9); font-size: .975rem; line-height: 1.5; }
.hero-panel-icon  {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: .65rem;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 1.1rem;
}

/* --- sections ------------------------------------------------------------ */

.section        { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-alt    { background: var(--surface-alt); border-block: 1px solid var(--rule); }
.section-eyebrow {
    font-size: .8125rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--brand);
    margin-bottom: .5rem;
}
.section-title,
.section-heading {
    font-size: clamp(1.625rem, 3vw, 2.375rem);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.15;
    margin-bottom: .75rem;
}
.section-lead   { font-size: 1.125rem; color: var(--ink-muted); max-width: 60ch; }

.page-title     { font-size: clamp(1.875rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -.022em; line-height: 1.15; margin-bottom: .75rem; }
.page-intro     { font-size: 1.125rem; color: var(--ink-muted); max-width: var(--measure); margin-bottom: 2rem; }
.empty-state    {
    color: var(--ink-muted);
    padding: 1.5rem 1.25rem;
    border: 1px dashed var(--field-border);
    border-radius: var(--radius);
    background: var(--surface-alt);
}

/* The quote page intro, set small and across the full column. Defined after
   .page-intro so it wins on order. */
.page-intro-sm {
    font-size: .75rem;
    line-height: 1.5;
    max-width: none;
}

/* --- icons, steps and feature cards ---------------------------------------- */

/* A tinted tile holding a Bootstrap Icon. The centring is d-inline-flex
   align-items-center justify-content-center on the element. */
.feature-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    background: var(--brand-tint);
    color: var(--brand);
    font-size: 1.5rem;
}
.feature-icon-sm { width: 2.5rem; height: 2.5rem; border-radius: .75rem; font-size: 1.15rem; }

.step-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.75rem 1.5rem 1.5rem;
    transition: box-shadow .18s ease, transform .18s ease;
}
.step-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.step-card-number {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--brand-tint-strong);
}
.step-card-title { font-size: 1.1875rem; font-weight: 750; margin: 1rem 0 .5rem; }
.step-card p     { color: var(--ink-muted); margin-bottom: 0; }

/* A band of brand blue inside the container: the drivers' panel on the home page. */
.cta-band {
    position: relative;
    overflow: hidden;
    color: rgba(255, 255, 255, .9);
    border-radius: calc(var(--radius-lg) * 1.2);
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(5, 125, 233, .5), transparent 65%),
        linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
    box-shadow: var(--shadow-lg);
    padding: clamp(1.75rem, 4.5vw, 3.25rem);
}
.cta-band h2, .cta-band h3 { color: #fff; }
.cta-band-title { font-size: clamp(1.5rem, 3vw, 2.125rem); font-weight: 800; letter-spacing: -.02em; }

/* A light-blue panel: the van size helper on the home page. */
.tint-panel {
    background: linear-gradient(135deg, var(--brand-tint) 0%, #f7fbff 100%);
    border: 1px solid var(--brand-tint-strong);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 4vw, 2.75rem);
}

/* Home page service overview. Bootstrap utilities in the view own the layout. */
.home-section { scroll-margin-top: 7rem; }
.home-jump-nav { background: var(--surface); }
.home-jump-link {
    color: var(--ink-muted);
    font-size: .875rem;
    font-weight: 650;
    text-decoration: none;
}
.home-jump-link:hover,
.home-jump-link:focus-visible { color: var(--brand); text-decoration: underline; }
.home-service-card {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.home-service-card p { color: var(--ink-muted); }
.home-service-card:hover { border-color: var(--brand-tint-strong); box-shadow: var(--shadow-md); }
.home-international-panel {
    background: linear-gradient(120deg, var(--brand-tint), var(--surface));
    border: 1px solid var(--brand-tint-strong);
    border-radius: var(--radius-lg);
}
.home-detail-list dt { font-weight: 750; margin-bottom: .3rem; }

/* Ticks in front of each point. Ordered lists keep their numbers. */
.tick-list,
ul.check-list { list-style: none; padding-left: 0; margin: 1rem 0 0; }
.tick-list li,
ul.check-list li { position: relative; padding-left: 1.85rem; }
.tick-list li + li,
.check-list li + li { margin-top: .5rem; }
.tick-list li::before,
ul.check-list li::before {
    content: "";
    position: absolute;
    left: .3rem;
    top: .38em;
    width: .45rem;
    height: .85rem;
    border: solid var(--brand-accent);
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}
.on-dark .tick-list li::before,
.cta-band .tick-list li::before { border-color: #9cc8ff; }
ol.check-list { padding-left: 1.25rem; }
ol.check-list li::marker { color: var(--brand); font-weight: 800; }

/* --- reviews ----------------------------------------------------------------- */

.review-card {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.375rem;
}
/* Gold on white is under 3:1, so the stars are a darker amber; they are decoration
   either way, because the rating is also spelled out for screen readers. */
.review-stars      { font-size: 1.25rem; letter-spacing: .1em; color: var(--star); line-height: 1; }
.review-stars-off  { color: var(--rule); }
.review-body       { font-size: 1rem; color: var(--ink); }
.review-body p     { margin-bottom: .5rem; }
.review-meta       { font-size: .875rem; color: var(--ink-muted); }
.review-meta strong{ color: var(--ink); }

/* A driver's reply sits under the review it answers, set back so it never reads as
   part of the customer's words. */
.review-reply {
    background: var(--surface-alt);
    border-left: 3px solid var(--brand-accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: .75rem 1rem;
    font-size: .9375rem;
    color: var(--ink);
}
.review-reply-label { font-size: .875rem; color: var(--ink-muted); }
.review-reply-label strong { color: var(--ink); }

/* --- article cards ------------------------------------------------------- */

/* Skin only. The column layout is Bootstrap's d-flex flex-column on the element. */
.article-card {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .18s ease, transform .18s ease;
}
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.article-card-media img {
    display: block;
    width: 100%;
    /* Reserving the box stops the card shifting as images load, which is what
       keeps cumulative layout shift at zero on the listing pages. */
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Padding is a bespoke value, so it stays here; the flex-column and flex-grow-1
   come from Bootstrap on the element. A card without a picture gets a strip of the
   logo's blues along its top instead. */
.article-card-body   { padding: 1.25rem 1.375rem 1.375rem; }
.article-card-body:first-child { border-top: 4px solid var(--brand-accent); }
.article-card-category {
    display: inline-block;
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--brand);
    text-decoration: none;
    margin-bottom: .5rem;
}
.article-card-title  { font-size: 1.1875rem; font-weight: 750; line-height: 1.3; margin-bottom: .5rem; }
.article-card-title a{ color: var(--ink); text-decoration: none; }
.article-card-title a:hover { color: var(--brand); }
.article-card-excerpt{ color: var(--ink-muted); font-size: .9375rem; margin-bottom: 1rem; }
.article-card-meta   { font-size: .8125rem; color: var(--ink-muted); margin: auto 0 0; }
.article-card-sep    { margin: 0 .4rem; opacity: .6; }

/* --- article page -------------------------------------------------------- */

/* The article page matches the home page's content area: 1320px, which is 1296px
   of content once the container's 12px side padding comes off. Narrow the column to
   col-lg-7 in Article.cshtml if it reads heavy. */
.article-detail  { max-width: 1320px; }
.article-header  { margin-bottom: 1.5rem; }
.article-category{
    display: inline-block;
    font-size: .8125rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--brand);
    text-decoration: none;
    margin-bottom: .625rem;
}
.article-title   { font-size: clamp(1.9rem, 4.5vw, 2.875rem); font-weight: 800; letter-spacing: -.022em; line-height: 1.15; margin-bottom: .75rem; }
.article-meta    { font-size: .9375rem; color: var(--ink-muted); }
.article-meta-sep{ margin: 0 .45rem; opacity: .6; }

.article-figure       { margin: 0 0 2rem; }
.article-figure img   { width: 100%; height: auto; border-radius: var(--radius-lg); aspect-ratio: 16 / 9; object-fit: cover; }

.article-body { font-size: 1.0625rem; max-width: none; }

/* Media breaks out of the measure and uses the column. */
.article-body figure,
.article-body .table-responsive,
.article-body > img,
.article-body pre { max-width: none; }

/* A lead paragraph, set larger. Every article has an excerpt, so this is the one
   element that makes the top of every article look the same. */
.article-standfirst {
    font-size: 1.1875rem;
    line-height: 1.55;
    color: var(--ink-muted);
    max-width: none;
    margin: 0 0 1rem;
}

/* --- contents ------------------------------------------------------------- */

.article-contents {
    position: sticky;
    top: 6.5rem;
    border-left: 3px solid var(--brand-tint-strong);
    padding: .25rem 0 .25rem 1rem;
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
}
.article-contents-heading {
    font-size: .6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--ink-muted);
    margin-bottom: .5rem;
}
.article-contents-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: none;
}
.article-contents-list li { margin-bottom: .4rem; line-height: 1.35; }
.article-contents-list a {
    font-size: .8125rem;
    color: var(--ink-muted);
    text-decoration: none;
}
.article-contents-list a:hover { color: var(--brand); text-decoration: underline; }
.article-contents-l3 { padding-left: .75rem; }
.article-contents-l3 a { font-size: .75rem; }

.article-contents-inline {
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: .625rem .875rem;
    margin-bottom: 1.5rem;
    background: var(--surface-alt);
}
.article-contents-inline summary {
    cursor: pointer;
    font-weight: 700;
    font-size: .875rem;
    color: var(--brand);
}
.article-contents-inline .article-contents-list { margin-top: .625rem; }

/* Anchored headings must not land under the sticky header when jumped to. */
.article-body h2,
.article-body h3 { scroll-margin-top: 6.5rem; }

.article-footer {
    border-top: 1px solid var(--rule);
    margin-top: 2.5rem;
    padding-top: 1rem;
    max-width: none;
}
.article-footer-dates { font-size: .8125rem; color: var(--ink-muted); }
.article-body > * + * { margin-top: 1.125rem; }
.article-body h2 { font-size: 1.5rem;   font-weight: 800; letter-spacing: -.015em; margin-top: 2.5rem; line-height: 1.3; }
.article-body h3 { font-size: 1.25rem;  font-weight: 750; margin-top: 1.75rem; line-height: 1.35; }
.article-body h4 { font-size: 1.0625rem;font-weight: 750; margin-top: 1.5rem; }
.article-body ul,
.article-body ol { padding-left: 1.35rem; }
.article-body li + li { margin-top: .4rem; }
.article-body li::marker { color: var(--brand); }
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius); }
.article-body a   { color: var(--brand); }
.article-body blockquote {
    border-left: 4px solid var(--brand-accent);
    background: var(--surface-alt);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: .75rem 1rem .75rem 1.125rem;
    color: var(--ink-soft);
}
.article-body table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.article-body th,
.article-body td    { border: 1px solid var(--rule); padding: .6rem .75rem; text-align: left; }
.article-body thead th { background: var(--brand-tint); font-weight: 700; }

.related { margin-top: 3.5rem; }

/* --- pagination ---------------------------------------------------------- */

.pagination-nav { margin-top: 2.5rem; }
.pagination {
    --bs-pagination-color: var(--brand);
    --bs-pagination-hover-color: var(--brand-dark);
    --bs-pagination-active-bg: var(--brand);
    --bs-pagination-active-border-color: var(--brand);
    --bs-pagination-focus-box-shadow: 0 0 0 .25rem rgba(5, 125, 233, .18);
}

/* --- forms --------------------------------------------------------------- */

.form-legend  { float: none; width: auto; padding: 0; font-size: 1.125rem; font-weight: 750; color: var(--ink); margin-bottom: 1rem; }

/* The move request's sections: white cards, numbered in the brand blue. The numbers,
   not colours, tell one step from the next, which also works for anyone who cannot
   tell the colours apart. */
.form-section {
    --section-accent: var(--brand);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem 1.375rem 1.375rem;
    margin-bottom: 1.25rem;
}
.form-section .form-legend { color: var(--ink); }

/* The step number in a form section's legend. */
.step-no {
    display: inline-block;
    background: var(--brand);
    color: var(--brand-contrast);
    border-radius: 999px;
    font-size: .875rem;
    font-weight: 800;
    line-height: 1.875rem;
    min-width: 1.875rem;
    text-align: center;
    margin-right: .6rem;
    vertical-align: .1em;
}

/* Compact by default on a pointer device. The coarse-pointer block above still
   lifts every control back to a 44px target on a touch screen. */
.quote-form .form-label { margin-bottom: .25rem; font-size: .875rem; font-weight: 650; }
.quote-form .form-text  { margin-top: .15rem; font-size: .75rem; }

/* --- the find form ----------------------------------------------------------
   The postcode search on /find/: one panel holding the box, the button and the
   size counter. */
.find-form {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: clamp(1rem, 3vw, 1.5rem);
}
.find-form > .form-label { font-weight: 750; }
.find-input        { max-width: 22rem; }
/* The search box with its suggestions wrapped round it keeps the box's width, so the
   button stays beside it rather than at the far end of the row. */
.find-form .postcode-anchor { max-width: 22rem; }

/* Search results: aligned Bootstrap rows; these styles affect only /find/. */
.find-page .find-input,
.find-page .find-form .postcode-anchor { max-width: none; }
.find-page .find-form { box-shadow: var(--shadow-sm); }
.find-result-count {
    background: var(--brand-tint);
    color: var(--brand);
    border-radius: 999px;
    font-size: .875rem;
    font-weight: 750;
    padding: .3rem .7rem;
}
.find-page .driver-result { padding: .9rem 1rem; }
.driver-result-content { min-width: 0; }
.driver-result-thumb {
    width: 4rem;
    height: 4rem;
    border-radius: var(--radius);
    background: var(--brand-tint);
    color: var(--brand);
    font-size: 1.6rem;
}
.driver-result-thumb .driver-card-photo { height: 4rem; aspect-ratio: 1; }
.driver-result-thumb .driver-card-logo { display: block; max-width: 3.4rem; max-height: 3.4rem; object-fit: contain; }
.driver-result-thumb-listing { width: 3rem; height: 3rem; font-size: 1.35rem; }
.driver-result-action { min-width: 9rem; }
.find-admin-records summary { color: var(--ink-muted); }

/* --- size estimator -------------------------------------------------------
   Skin only; the grid inside it is Bootstrap's. Quieter than the form itself,
   because it is a helper and not a step. */

.size-estimator {
    border: 1px solid var(--brand-tint-strong);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--brand-tint) 0%, var(--surface) 3.5rem);
}
.size-estimator-toggle {
    cursor: pointer;
    padding: .7rem .9rem;
    font-size: .9375rem;
    font-weight: 750;
    color: var(--brand);
}
.size-estimator-toggle::marker { color: var(--brand-accent); }
.size-estimator-body   { padding: 0 .9rem .9rem; }
.size-estimator-group  {
    font-size: .6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--brand);
    margin: .75rem 0 .3rem;
}
.size-estimator .form-label { font-size: .75rem; font-weight: 600; margin-bottom: .1rem; color: var(--ink-soft); }
.size-estimator .form-control { padding: .3rem .55rem; font-size: .875rem; }

/* A row the customer adds for something the list lacks: name, count, remove. Built
   by site.js, so its layout lives here rather than in a view. */
.custom-item {
    display: flex;
    gap: .5rem;
    align-items: center;
    margin-bottom: .375rem;
}
.custom-item .custom-item-name  { flex: 1 1 auto; min-width: 0; }
.custom-item .custom-item-count { flex: 0 0 4.5rem; }
.custom-item .custom-item-remove { flex: 0 0 auto; padding: 0; font-size: .75rem; }

.size-estimator-result {
    background: var(--surface);
    border: 1px solid var(--brand-tint-strong);
    border-radius: var(--radius);
    padding: .75rem .9rem;
    margin-top: .5rem;
}
.size-estimator-total  { font-size: 1.0625rem; }
.size-estimator-total strong { color: var(--brand); font-size: 1.375rem; }
.size-estimator-advice { font-size: .875rem; color: var(--ink-soft); }
.size-estimator-note   { font-size: .75rem; color: var(--ink-muted); margin-top: .6rem; }

/* Required-field marker. Red on white here is 4.5:1, but colour is never the only
   signal: each marked label also carries a visually-hidden "required". */
.required-mark {
    color: #c4262e;
    font-weight: 700;
    margin-left: .15rem;
}
.form-required-note {
    font-size: .875rem;
    color: var(--ink-muted);
}
.form-required-note .required-mark { margin-left: 0; margin-right: .15rem; }

.form-legend-optional {
    font-weight: 500;
    font-size: .8125rem;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-left: .5rem;
}

.form-label   { font-weight: 650; font-size: .9375rem; }
.form-hint    { font-size: .8125rem; color: var(--ink-muted); margin: .35rem 0 0; }
.field-error  { display: block; color: #b42318; font-size: .8125rem; margin-top: .25rem; }
.search-form  { max-width: 30rem; margin-bottom: 2rem; }
.auth-form,
.admin-form   { margin-top: 1.5rem; }

/* Honeypot. Off-screen rather than display:none, because some bots skip
   anything that is not rendered. Real people never reach it. */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Postcode suggestions under a postcode box (postcode-lookup.js). The list sits over
   the content below it, so it is positioned against its anchor rather than laid out. */
.postcode-anchor { position: relative; }
.postcode-suggestions {
    position: absolute; top: calc(100% + 4px); left: 0; width: 100%; z-index: 1000;
    list-style: none; margin: 0; padding: .25rem; background: var(--surface);
    border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-md);
    max-height: 16rem; overflow-y: auto;
}
.postcode-suggestions li { padding: .5rem .75rem; border-radius: .4rem; cursor: pointer; font-weight: 600; color: var(--ink); }
.postcode-suggestions li:hover, .postcode-suggestions li.active { background: var(--surface-alt); color: var(--brand); }
.postcode-note { font-size: .875rem; line-height: 1.5; margin: .35rem 0 0; color: #854600; }
.postcode-note.is-found { color: #176438; }

/* "Showing drivers for Medway": a corrected spelling on the search, said plainly above the results. */
.search-corrected { background: var(--brand-tint); border-left: 3px solid var(--brand-accent); }

/* --- panels ---------------------------------------------------------------
   .admin-panel is the general content card, on public pages as much as in the
   admin: white, a hairline border, a soft shadow. */

.admin-panel   {
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.375rem;
    margin-bottom: 1.25rem;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.admin-panel-title { font-size: .9375rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); margin-bottom: 1rem; }
.admin-table   { font-size: .9375rem; }
.admin-table thead th { font-size: .8125rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-muted); }
.admin-slug    { display: block; font-size: .8125rem; color: var(--ink-muted); }
/* --- the admin shell (Views/Shared/_AdminLayout) -----------------------------
   Skin only: Bootstrap utilities in the view do the layout. The few sizes below have no
   Bootstrap step: the sidebar width, and the top bar height the sidebar sticks under.
   Everything is scoped to .admin-body, so the public site and the driver portal are
   untouched. */

.admin-body        { background: var(--surface-alt); }
.admin-topbar      { height: 3.5rem; background: var(--brand-deep); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .12); z-index: 1030; }
.admin-topbar-brand{ color: #fff; font-weight: 800; letter-spacing: -.01em; }
.admin-topbar-brand:hover { color: #fff; }
/* The logo sits on a white tile so its colours read the same as on the public header. */
.admin-topbar-logo { width: 2.25rem; height: 2.25rem; background: #fff; border-radius: .5rem; padding: .2rem; flex-shrink: 0; }
.admin-topbar-logo img { width: 100%; height: 100%; object-fit: contain; }
.admin-topbar-tag  { font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .15rem .45rem; margin-left: .35rem;
                     border: 1px solid rgba(255, 255, 255, .35); border-radius: .35rem; color: rgba(255, 255, 255, .85); }
.admin-topbar-link { color: rgba(255, 255, 255, .85); font-size: .875rem; text-decoration: none; }
.admin-topbar-link:hover { color: #fff; text-decoration: underline; }
.admin-topbar-btn  { color: #fff; border: 1px solid rgba(255, 255, 255, .25); background: transparent; }
.admin-topbar-btn:hover, .admin-topbar-btn:focus-visible, .admin-topbar-btn.show { color: #fff; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); }
.admin-role-badge  { background: var(--brand-tint); color: var(--brand); font-weight: 700; }

.admin-sidebar     { width: 16rem; position: sticky; top: 3.5rem; height: calc(100vh - 3.5rem); overflow-y: auto;
                     background: var(--surface); border-right: 1px solid var(--rule); padding: 1rem .75rem 2rem; }
.admin-menu-group  { margin-bottom: 1.25rem; }
.admin-menu-title  { font-size: .6875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-muted); margin: 0 0 .35rem .75rem; }
.admin-menu-link   { padding: .45rem .75rem; border-radius: .5rem; border-left: 3px solid transparent; color: var(--ink-soft);
                     font-size: .9375rem; font-weight: 600; text-decoration: none; }
.admin-menu-link .bi { font-size: 1rem; color: var(--ink-muted); }
.admin-menu-link:hover { background: var(--surface-alt); color: var(--ink); }
.admin-menu-link.active { background: var(--brand-tint); color: var(--brand); border-left-color: var(--brand-accent); }
.admin-menu-link.active .bi { color: var(--brand); }
/* --- the site monitor: server-drawn SVG charts and ranked bars --------------------------------- */
.monitor-chart     { width: 100%; height: auto; display: block; }
.chart-grid        { stroke: var(--rule); stroke-width: 1; }
.chart-label       { fill: var(--ink-muted); font-size: 11px; }
.chart-human       { fill: var(--brand-accent); }
.chart-bot         { fill: #9fb0c3; }
.monitor-key       { display: inline-block; width: .75rem; height: .75rem; border-radius: .2rem; vertical-align: -.1rem; margin-right: .25rem; }
.monitor-key-human { background: var(--brand-accent); }
.monitor-key-bot   { background: #9fb0c3; }
.monitor-bars li   { padding: .3rem 0; font-size: .875rem; }
.monitor-bar-label { width: 9.5rem; flex-shrink: 0; }
.monitor-bar-value { width: 5.5rem; flex-shrink: 0; text-align: right; font-variant-numeric: tabular-nums; }
.monitor-hbar      { height: .5rem; background: var(--surface-alt); border-radius: .25rem; }
.monitor-hbar-fill { fill: var(--brand-accent); }
/* Metric blocks and the monitor toolbar: compact, hairline-bordered, tabular figures. */
.metric-tile       { background: var(--surface); border: 1px solid var(--rule); border-radius: .625rem; padding: .875rem 1rem; border-top: 3px solid var(--brand-accent); }
.metric-tile-link:hover, .metric-tile-link:focus-within { border-color: var(--brand-accent); box-shadow: 0 2px 10px rgba(3, 74, 168, .15); }
.metric-label      { font-size: .6875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-muted); }
.metric-icon       { color: var(--brand); background: var(--brand-tint); border-radius: .5rem; width: 1.75rem; height: 1.75rem; display: inline-grid; place-items: center; font-size: .9rem; }
.metric-value      { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; color: var(--ink); }
.metric-note       { font-size: .75rem; color: var(--ink-muted); line-height: 1.3; }
.metric-chip       { font-size: .75rem; font-weight: 700; padding: .1rem .45rem; border-radius: 999px; white-space: nowrap; }
.metric-up         { background: #e3f5ea; color: var(--success); }
.metric-down       { background: #fdeaea; color: #b42318; }
.metric-flat       { background: var(--surface-alt); color: var(--ink-muted); }
.metric-spark      { width: 6rem; height: 1.75rem; flex-shrink: 0; }
.metric-spark-line { fill: none; stroke: var(--brand-accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
/* Wave charts (site monitor): smooth lines, a soft fill under the main one, and a dot and guide line on hover. */
.chart-wave-line   { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart-wave-human  { stroke: var(--brand-accent); }
.chart-wave-bot    { stroke: #7d90a6; stroke-dasharray: 5 4; }
.chart-wave-area   { stroke: none; }
.chart-stop-top    { stop-color: var(--brand-accent); stop-opacity: .38; }
.chart-stop-bottom { stop-color: var(--brand-accent); stop-opacity: .02; }
.chart-hit-area    { fill: transparent; }
.chart-hit-line    { stroke: var(--rule); stroke-width: 1; opacity: 0; }
.chart-dot         { opacity: 0; stroke-width: 2; }
.chart-dot.chart-wave-human { fill: var(--brand-accent); stroke: var(--surface); stroke-dasharray: none; }
.chart-dot.chart-wave-bot   { fill: #7d90a6; stroke: var(--surface); stroke-dasharray: none; }
.chart-hit:hover .chart-hit-line, .chart-hit:hover .chart-dot { opacity: 1; }
.monitor-wave-swatch { width: 1.5rem; height: .5rem; vertical-align: middle; }
.monitor-figures   { max-height: 16rem; overflow: auto; }
.row-spark         { width: 7rem; height: 1.75rem; display: block; }
.row-spark-area    { fill: var(--brand-accent); opacity: .16; stroke: none; }
.source-bar        { width: 8rem; height: .6rem; display: block; border-radius: .3rem; }
.src-search        { fill: #057de9; background: #057de9; }
.src-ai            { fill: #7b4fd6; background: #7b4fd6; }
.src-social        { fill: #e0861a; background: #e0861a; }
.src-other         { fill: #5b7a99; background: #5b7a99; }
.src-direct        { fill: #b7c4d3; background: #b7c4d3; }
.src-empty         { fill: var(--surface-alt); }
.monitor-slow-path { max-width: 11rem; }
.health-donut      { width: 7.5rem; height: 7.5rem; flex-shrink: 0; }
.donut-track       { fill: none; stroke: var(--surface-alt); stroke-width: 5; }
.donut-slice       { fill: none; stroke-width: 5; }
.donut-figure      { fill: var(--ink); font-size: 7px; font-weight: 800; }
circle.donut-good  { stroke: #1f8a4c; }
circle.donut-warn  { stroke: #e0a21a; }
circle.donut-bad   { stroke: #c0392b; }
.monitor-key.donut-good { background: #1f8a4c; }
.monitor-key.donut-warn { background: #e0a21a; }
.monitor-key.donut-bad  { background: #c0392b; }
.monitor-toolbar   { background: var(--surface); border: 1px solid var(--rule); border-radius: .625rem; padding: .5rem .75rem; }
.admin-tabs .nav-link { font-weight: 600; color: var(--ink-soft); }
.admin-tabs .nav-link.active { color: var(--brand); }

.admin-menu-badge  { min-width: 1.35rem; padding: .05rem .45rem; border-radius: 999px; background: #b45309; color: #fff; font-size: .75rem; font-weight: 800; text-align: center; }
.admin-attention   { border-left: 4px solid #b45309; background: #fff8ec; }
.admin-attention-link { color: var(--ink); text-decoration: none; border-radius: .5rem; padding: .5rem .625rem; }
.admin-attention-link:hover { background: #fdecd0; color: var(--ink); }
.admin-attention-count { min-width: 2.25rem; padding: .1rem .5rem; border-radius: 999px; background: #b45309; color: #fff; font-weight: 800; text-align: center; }
.admin-offcanvas   { width: 17rem; }

.admin-main        { min-width: 0; }
.admin-main .container      { max-width: none; padding-inline: 1.5rem; }
.admin-main .section        { padding-block: 1.5rem 3rem; }
.admin-main .page-title     { font-size: 1.5rem; font-weight: 800; letter-spacing: -.015em; margin-bottom: 1.25rem; }
.admin-main .admin-panel    { border-radius: .625rem; box-shadow: none; padding: 1rem 1.125rem; }
.admin-main .table          { font-size: .875rem; background: var(--surface); border: 1px solid var(--rule); --bs-table-bg: var(--surface); }
.admin-main .table > :not(caption) > * > * { padding: .5rem .75rem; border-bottom-color: var(--rule); }
.admin-main .table thead th { font-size: .6875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-muted); background: var(--surface-alt); white-space: nowrap; }
.admin-sort                 { color: inherit; text-decoration: none; }
.admin-sort .bi             { font-size: .7rem; margin-left: .15rem; opacity: .45; }
.admin-sort:hover, .admin-sort.active { color: var(--brand); }
.admin-sort:hover .bi, .admin-sort.active .bi { opacity: 1; }
.admin-main .table-hover > tbody > tr:hover > * { background: var(--brand-tint); }
.admin-main .form-control, .admin-main .form-select { font-size: .9375rem; border-color: var(--field-border); }
.admin-main .btn            { font-weight: 600; }

@media (min-width: 992px) {
    .admin-main .container  { padding-inline: 2rem; }
}

.code-area     { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .875rem; line-height: 1.5; }

.badge.status-published { background: var(--success); }
.badge.status-draft     { background: #8a6d1f; }
.badge.status-archived  { background: #5a6a78; }

/* --- the platform: driver portal, profiles, requests ------------------------
   Skin only. Every row, column and gap comes from Bootstrap on the element. */

.portal-nav .nav-link        { color: var(--ink-soft); font-weight: 650; border-radius: 999px; }
.portal-nav .nav-link:hover  { color: var(--brand); background: var(--brand-tint); }
.portal-nav .nav-link.active { background: var(--brand); color: var(--brand-contrast); }
.portal-nav .btn-link        { text-decoration: none; }

.job-card,
.driver-card,
.quote-card {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.125rem 1.25rem;
    transition: box-shadow .18s ease, border-color .18s ease;
}
.job-card:hover,
.driver-card:hover,
.quote-card:hover { box-shadow: var(--shadow-md); border-color: var(--brand-tint-strong); }
.quote-card.is-chosen { border-color: var(--success); box-shadow: 0 0 0 3px rgba(15, 123, 64, .12); }

.driver-card-photo { border-radius: var(--radius); object-fit: cover; aspect-ratio: 4 / 3; width: 100%; }
.driver-profile-logo { display: block; max-width: 14rem; max-height: 7rem; object-fit: contain; }
.driver-card-thumb { width: 7.5rem; }
.driver-card h3 a  { color: var(--ink); text-decoration: none; }
.driver-card h3 a:hover { color: var(--brand); text-decoration: underline; }

/* Recommended drivers: a light-blue card and a brand badge. "Our own team" is
   deliberately quiet (outline, muted text) but always present where the operator's
   own team is listed. */
.driver-card-recommended {
    background: linear-gradient(180deg, var(--brand-tint) 0%, var(--surface) 70%);
    border-color: var(--brand-tint-strong);
}
.driver-card-featured { border-color: #d7b55a; background: #fffdf6; }
.badge-featured { background: #fff1bd; color: #5c4100; border: 1px solid #d7b55a; font-weight: 700; }
.badge-recommended { background: var(--brand); color: #fff; }
.badge-own { background: var(--surface); color: var(--ink-muted); border: 1px solid var(--rule); font-weight: 600; }

/* A listing the driver hasn't claimed yet: amber, so it reads as "not confirmed" rather
   than as a warning about the driver. #6b4400 on #fff4d6 is about 7.8:1. */
.badge-unclaimed { background: #fff4d6; color: #6b4400; border: 1px solid #f0c75e; font-weight: 600; }

/* Condition photos at loading and unloading: small, cropped to one shape so a row lines up. */
.condition-thumb { width: 96px; height: 72px; object-fit: cover; border-radius: .375rem; border: 1px solid var(--bs-border-color); }
.unclaimed-note { background: #fff9e8; border-left: 3px solid #f0c75e; }

/* A customer's files with a move: the icon in the brand colour, the size in the muted ink. */
.request-file-icon { color: var(--brand); font-size: 1.25rem; line-height: 1; }

.rating-stars { color: #8a5a00; font-weight: 700; }

.profile-gallery img { border-radius: var(--radius); object-fit: cover; aspect-ratio: 4 / 3; width: 100%; transition: transform .18s ease; }
.profile-gallery a:hover img { transform: scale(1.02); }
.profile-portfolio-summary { padding: 1rem; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--surface); }
.portfolio-preview-strip { padding-bottom: .25rem; scrollbar-width: thin; scroll-snap-type: x proximity; }
.portfolio-preview-item { display: block; overflow: hidden; border-radius: var(--radius); background: var(--surface-alt); scroll-snap-align: start; }
.portfolio-preview-item img { display: block; width: 100%; height: clamp(6rem, 11vw, 8.5rem); object-fit: cover; transition: transform .18s ease; }
.portfolio-preview-item:hover img { transform: scale(1.035); }

.portfolio-modal .modal-content { color: #fff; background: #151b24; border: 1px solid rgba(255,255,255,.16); }
.portfolio-modal .modal-header { border-bottom-color: rgba(255,255,255,.16); }
.portfolio-modal .modal-title { color: #fff; }
.portfolio-modal .modal-body { padding: .75rem 1rem 1rem; }
.portfolio-counter { color: rgba(255,255,255,.7); }
.portfolio-stage { min-height: min(64vh, 46rem); }
.portfolio-stage > img { display: block; min-width: 0; max-width: 100%; max-height: min(64vh, 46rem); margin: auto; object-fit: contain; }
.portfolio-step { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: #fff; background: rgba(255,255,255,.08); font-size: 1.25rem; }
.portfolio-step:hover,
.portfolio-step:focus-visible { background: rgba(255,255,255,.2); }
.portfolio-caption { min-height: 1.5rem; color: rgba(255,255,255,.86); text-align: center; }
.portfolio-thumbnails { padding: .25rem .125rem .5rem; scrollbar-width: thin; }
.portfolio-thumbnail { width: 5.5rem; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: .5rem; background: transparent; opacity: .68; }
.portfolio-thumbnail img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.portfolio-thumbnail:hover { opacity: 1; }
.portfolio-thumbnail.is-current { border-color: #fff; opacity: 1; }
.photo-tile img      { border-radius: var(--radius); object-fit: cover; aspect-ratio: 4 / 3; width: 100%; }

/* The profile's own header: name, what they are and the badges, on a light card. */
.profile-head {
    background: linear-gradient(135deg, var(--brand-tint) 0%, var(--surface) 75%);
    border: 1px solid var(--brand-tint-strong);
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 3vw, 1.75rem);
}
/* The quote panel stays in view beside a long profile; top clears the sticky header. */
.profile-aside { top: 6.5rem; }

.message-thread  { max-height: 28rem; overflow-y: auto; }
.message         { border-radius: var(--radius); padding: .625rem .875rem; }
.message-mine    { background: var(--brand-tint); margin-left: 1.5rem; }
.message-theirs  { background: var(--surface); border: 1px solid var(--rule); margin-right: 1.5rem; }

.text-prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }

.coverage-council         { border: 1px solid var(--rule); border-radius: var(--radius); padding: .5rem .75rem; background: var(--surface); }
.coverage-council summary { cursor: pointer; }

.money-split      { border: 1px solid var(--brand-tint-strong); border-radius: var(--radius); background: var(--brand-tint); padding: .875rem 1rem; }
.money-split-total { font-size: 1.375rem; font-weight: 800; }

/* --- footer -------------------------------------------------------------- */

.site-footer {
    position: relative;
    background:
        radial-gradient(700px 300px at 100% 0%, rgba(5, 125, 233, .18), transparent 65%),
        var(--brand-deep);
    color: rgba(255, 255, 255, .78);
    padding: clamp(2.75rem, 6vw, 4rem) 0 1.5rem;
    margin-top: 4rem;
}
.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand) 0%, var(--brand-accent) 100%);
}
.footer-heading { font-size: .8125rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 1rem; }
.footer-text    { font-size: .9375rem; font-style: normal; }
.footer-list    { list-style: none; padding: 0; margin: 0; font-size: .9375rem; }
.footer-list li + li { margin-top: .55rem; }
/* Buttons keep their own colours: as a plain link colour, this would turn the white
   "Send your move" button's text white as well. */
.footer-list a,
.site-footer a:not(.btn)  { color: rgba(255, 255, 255, .78); text-decoration: none; }
.footer-list a:hover,
.site-footer a:not(.btn):hover { color: #fff; text-decoration: underline; }
.footer-bottom  {
    border-top: 1px solid rgba(255, 255, 255, .14);
    margin-top: 2.75rem;
    padding-top: 1.25rem;
    font-size: .8125rem;
    color: rgba(255, 255, 255, .62);
}

/* --- print --------------------------------------------------------------- */

@media print {
    .topbar, .site-header, .site-footer, .breadcrumb-bar,
    .related, .pagination-nav { display: none !important; }
    .article-body { max-width: none; }
    .hero { background: none; color: var(--ink); }
}

/* --- reduced motion ------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .article-card:hover,
    .step-card:hover,
    .profile-gallery a:hover img { transform: none; }
    .portfolio-preview-item:hover img { transform: none; }
}

