/* ==========================================================================
   Car Bidding theme, built on Bootstrap 5.3: "Navy & Saffron".
   - Blue (--brand) is for actions and links: buttons, links, focus of forms.
   - Saffron (--accent) marks auction moments: countdowns, highlights, the
     logo, step numbers, small headings. As text it uses --accent-text.
   - Navy (--navy) is the dark surface: hero, footer, staff bar.
   Every text and control color below meets WCAG 2.1 AA contrast.
   ========================================================================== */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../vendor/inter/inter-latin-wght-normal.woff2") format("woff2");
}

:root {
    --brand: #1d4ed8;
    --brand-rgb: 29, 78, 216;
    --brand-dark: #1e40af;
    --brand-darker: #1e3a8a;
    --brand-soft: #eff4ff;
    --accent: #f5a524;
    --accent-strong: #e08e0b;
    --accent-soft: #fff6e5;
    --accent-line: #fbd99a;
    /* Saffron as text on white: 5.5:1. */
    --accent-text: #a35400;
    --navy: #0b1730;
    --navy-2: #12264a;
    --ink: #0f172a;
    --text: #1e293b;
    --muted: #475569;
    --line: #e2e8f0;
    --line-strong: #8792a6;
    --canvas: #f8fafc;
    --surface: #ffffff;
    --danger: #b91c1c;
    --success: #15803d;
    /* Keyboard focus outline: 5.5:1 on white and 3.2:1 on navy. */
    --focus: #a35400;

    --radius-sm: 0.625rem;
    --radius: 1rem;
    --radius-lg: 1.25rem;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.07);
    --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
    --gradient-brand: linear-gradient(135deg, #f7b733 0%, #f59e0b 100%);
    --gradient-hero: radial-gradient(720px 380px at 92% -12%, rgba(245, 165, 36, 0.24), transparent 62%),
        radial-gradient(820px 460px at -5% 115%, rgba(29, 78, 216, 0.38), transparent 60%),
        linear-gradient(160deg, #0b1730 0%, #0f2147 58%, #142c5e 100%);

    /* Bootstrap variables */
    --bs-font-sans-serif: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);
    --bs-body-color: var(--text);
    --bs-body-color-rgb: 30, 41, 59;
    /* Components (cards, inputs, menus) stay white; only the page uses --canvas. */
    --bs-body-bg: var(--surface);
    --bs-emphasis-color: var(--ink);
    --bs-heading-color: var(--ink);
    --bs-secondary-color: var(--muted);
    --bs-border-color: var(--line);
    --bs-border-radius: var(--radius-sm);
    --bs-border-radius-lg: var(--radius);
    --bs-border-radius-xl: var(--radius-lg);
    --bs-primary: var(--brand);
    --bs-primary-rgb: 29, 78, 216;
    --bs-link-color: var(--brand);
    --bs-link-color-rgb: 29, 78, 216;
    --bs-link-hover-color: var(--brand-darker);
    --bs-link-hover-color-rgb: 30, 58, 138;
    --bs-focus-ring-color: rgba(29, 78, 216, 0.3);
}

/* ---------- Arabic (right-to-left) ---------- */

@font-face {
    font-family: "Noto Sans Arabic";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../vendor/noto-sans-arabic/noto-sans-arabic-arabic-wght-normal.woff2") format("woff2");
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

[dir="rtl"] {
    --bs-font-sans-serif: "Noto Sans Arabic", "Inter", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);
    --bs-body-line-height: 1.7;
}

/* Letter spacing breaks the joined Arabic letters. */
[dir="rtl"] *,
[dir="rtl"] *::before,
[dir="rtl"] *::after {
    letter-spacing: 0 !important;
}

[dir="rtl"] .hero h1 {
    line-height: 1.35;
}

/* Arrows point the other way in Arabic. */
[dir="rtl"] .bi-arrow-right::before,
[dir="rtl"] .bi-arrow-left::before {
    display: inline-block;
    transform: scaleX(-1);
}

/* ---------- Base ---------- */

body {
    background-color: var(--canvas);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "cv11", "ss01";
    text-rendering: optimizeLegibility;
}

h1, h2, .h1, .h2, .display-4, .display-5, .display-6 {
    font-weight: 700;
    letter-spacing: -0.025em;
}

h3, h4, h5, h6, .h3, .h4, .h5, .h6 {
    font-weight: 600;
    letter-spacing: -0.015em;
}

.lead {
    font-weight: 400;
}

.text-pre-line {
    white-space: pre-line;
}

.tabular-nums {
    font-variant-numeric: tabular-nums;
}

/* Clearly visible keyboard focus everywhere (orange works on light and dark). */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.form-check-input:focus-visible,
.nav-link:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
    box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- Buttons ---------- */

.btn {
    --bs-btn-font-weight: 600;
    --bs-btn-border-radius: var(--radius-sm);
    --bs-btn-padding-x: 1.05rem;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.btn-lg {
    --bs-btn-border-radius: 0.8rem;
    --bs-btn-padding-y: 0.75rem;
    --bs-btn-padding-x: 1.5rem;
    --bs-btn-font-size: 1.05rem;
}

.btn:active {
    transform: translateY(1px);
}

.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-darker);
    --bs-btn-active-border-color: var(--brand-darker);
    --bs-btn-disabled-bg: var(--brand);
    --bs-btn-disabled-border-color: var(--brand);
    box-shadow: 0 1px 2px rgba(29, 78, 216, 0.25), 0 4px 12px -4px rgba(29, 78, 216, 0.45);
}

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

.btn-outline-secondary {
    --bs-btn-color: var(--muted);
    --bs-btn-border-color: var(--line-strong);
    --bs-btn-hover-color: var(--ink);
    --bs-btn-hover-bg: #f1f5f9;
    --bs-btn-hover-border-color: var(--muted);
    --bs-btn-active-color: var(--ink);
    --bs-btn-active-bg: #e2e8f0;
    --bs-btn-active-border-color: var(--muted);
    --bs-btn-disabled-color: var(--muted);
    --bs-btn-disabled-border-color: var(--line-strong);
}

.btn-outline-danger {
    --bs-btn-color: var(--danger);
    --bs-btn-border-color: var(--danger);
    --bs-btn-hover-bg: var(--danger);
    --bs-btn-hover-border-color: var(--danger);
    --bs-btn-active-bg: #991b1b;
    --bs-btn-active-border-color: #991b1b;
}

.btn-outline-success {
    --bs-btn-color: var(--success);
    --bs-btn-border-color: var(--success);
    --bs-btn-hover-bg: var(--success);
    --bs-btn-hover-border-color: var(--success);
    --bs-btn-active-bg: #166534;
    --bs-btn-active-border-color: #166534;
}

.btn-danger {
    --bs-btn-bg: var(--danger);
    --bs-btn-border-color: var(--danger);
    --bs-btn-hover-bg: #991b1b;
    --bs-btn-hover-border-color: #991b1b;
    --bs-btn-active-bg: #7f1d1d;
    --bs-btn-active-border-color: #7f1d1d;
}

.btn-light {
    --bs-btn-color: var(--ink);
}

/* Saffron with navy text (8:1): the one call to action on a navy background. */
.btn-accent {
    --bs-btn-color: var(--navy);
    --bs-btn-bg: var(--accent);
    --bs-btn-border-color: var(--accent);
    --bs-btn-hover-color: var(--navy);
    --bs-btn-hover-bg: var(--accent-strong);
    --bs-btn-hover-border-color: var(--accent-strong);
    --bs-btn-active-color: var(--navy);
    --bs-btn-active-bg: #c97d08;
    --bs-btn-active-border-color: #c97d08;
    box-shadow: 0 1px 2px rgba(11, 23, 48, 0.25), 0 8px 18px -8px rgba(245, 165, 36, 0.7);
}

/* ---------- Cards, forms, tables ---------- */

.card {
    --bs-card-border-color: var(--line);
    --bs-card-border-radius: var(--radius);
    --bs-card-inner-border-radius: calc(var(--radius) - 1px);
    --bs-card-cap-bg: var(--surface);
    --bs-card-cap-padding-y: 0.9rem;
    --bs-card-cap-padding-x: 1.25rem;
    --bs-card-spacer-x: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.card-header {
    font-weight: 600;
}

.form-label {
    font-weight: 500;
    color: var(--ink);
}

.form-control,
.form-select {
    border-color: var(--line-strong);
    padding: 0.6rem 0.85rem;
}

.form-select {
    padding-inline-end: 2.25rem;
}

.form-control-sm {
    padding: 0.35rem 0.65rem;
}

.form-select-sm {
    padding-block: 0.35rem;
    padding-inline: 0.65rem 2.1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 0.25rem rgba(29, 78, 216, 0.18);
}

.form-check-input {
    border-color: var(--line-strong);
}

.form-check-input:checked {
    background-color: var(--brand);
    border-color: var(--brand);
}

.input-group-text {
    background: #f1f5f9;
    border-color: var(--line-strong);
    color: #334155;
    font-weight: 600;
}

.form-text {
    color: var(--muted);
}

.table {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: #f8fafc;
}

.table > thead th {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    background: #f8fafc;
    border-bottom-color: var(--line);
    white-space: nowrap;
}

.table td,
.table th {
    vertical-align: middle;
}

.alert {
    border-radius: var(--radius-sm);
}

.modal {
    --bs-modal-bg: var(--surface);
}

.modal-content {
    border: 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.modal-header,
.modal-footer {
    border-color: var(--line);
}

.breadcrumb {
    --bs-breadcrumb-divider-color: var(--muted);
    --bs-breadcrumb-item-active-color: var(--muted);
    font-size: 0.875rem;
}

.pagination {
    --bs-pagination-border-radius: var(--radius-sm);
    --bs-pagination-active-bg: var(--brand);
    --bs-pagination-active-border-color: var(--brand);
}

/* ---------- Status pills and chips ---------- */

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.status-pill::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: currentColor;
}

.status-open { background: #dcfce7; color: #166534; }
.status-upcoming { background: #dbeafe; color: #1e40af; }
.status-ended { background: #e2e8f0; color: #334155; }
.status-none { background: #f1f5f9; color: #334155; }
.status-sale { background: #ede9fe; color: #5b21b6; }
.status-rent { background: #ccfbf1; color: #115e59; }
.status-warning { background: #fef3c7; color: #92400e; }
.status-danger { background: #fee2e2; color: #991b1b; }

.status-open::before {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.time-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: var(--accent);
    color: var(--navy);
    font-size: 0.8125rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.time-chip.is-urgent {
    background: var(--danger);
    color: #fff;
}

.eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-text);
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding-block: 0.35rem;
    padding-inline: 0.85rem 0.55rem;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-darker);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
}

.filter-chip:hover {
    background: #e0e7ff;
    color: var(--brand-darker);
}

.filter-chip .bi {
    font-size: 0.75rem;
}

/* ---------- Public header and footer ---------- */

.site-header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--line);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
}

.site-header .navbar {
    --bs-navbar-padding-y: 0.75rem;
    --bs-navbar-color: #334155;
    --bs-navbar-hover-color: var(--ink);
    --bs-navbar-active-color: var(--brand);
    --bs-navbar-brand-color: var(--ink);
    --bs-navbar-brand-hover-color: var(--ink);
}

.site-header .nav-link {
    font-weight: 500;
    border-radius: 0.5rem;
    padding: 0.5rem 0.85rem !important;
}

.site-header .nav-link:hover {
    background: #f1f5f9;
}

.site-header .nav-link.active {
    color: var(--ink);
    background: transparent;
    box-shadow: inset 0 -3px 0 var(--accent);
    border-radius: 0.5rem 0.5rem 0 0;
}

.brand {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.7rem;
    background: var(--gradient-brand);
    color: var(--navy);
    font-size: 1.15rem;
    box-shadow: 0 4px 12px -4px rgba(245, 165, 36, 0.7);
}

.site-footer {
    margin-top: 5rem;
    padding: 3.5rem 0 1.5rem;
    background: var(--navy);
    color: #cbd5e1;
}

.site-footer .brand {
    color: #fff;
}

.site-footer h2 {
    margin-bottom: 1rem;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer a {
    color: #e2e8f0;
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.site-footer .footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    font-size: 0.875rem;
}

/* ---------- Page header band ---------- */

.page-header {
    padding: 2.75rem 0 2.25rem;
    background: linear-gradient(180deg, var(--brand-soft) 0%, var(--canvas) 100%);
    border-bottom: 1px solid var(--line);
}

.page-header h1 {
    font-size: clamp(1.85rem, 1.4rem + 1.6vw, 2.6rem);
    margin-bottom: 0.5rem;
}

.page-header .lead {
    color: var(--muted);
    max-width: 44rem;
    margin-bottom: 0;
}

/* ---------- Home page ---------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0 5rem;
    color: #fff;
    background: var(--gradient-hero);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
}

.hero .container {
    position: relative;
}

.hero h1 {
    color: #fff;
    font-size: clamp(2.3rem, 1.4rem + 3.4vw, 3.9rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
    font-weight: 800;
}

.hero h1 .highlight {
    color: #fbbf24;
}

.hero .lead {
    color: #cbd5e1;
    font-size: 1.2rem;
    max-width: 36rem;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #e0e7ff;
    font-size: 0.875rem;
    font-weight: 500;
}

.hero-eyebrow .bi {
    color: #fbbf24;
}

/* Quick search on the home page: vehicle type, make, and a saffron button. */
.hero-search {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
    gap: 0.75rem;
    max-width: 40rem;
    padding: 1rem;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.55);
}

.hero-search .form-label {
    margin-bottom: 0.3rem;
    color: var(--muted);
    font-size: 0.8125rem;
    font-weight: 600;
}

.hero-search .btn {
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .hero-search {
        grid-template-columns: 1fr;
    }
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin-top: 1rem;
}

.hero-links a {
    color: #e2e8f0;
    font-weight: 600;
    text-decoration: none;
}

.hero-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    padding: 0;
    margin: 2rem 0 0;
    list-style: none;
    color: #e2e8f0;
    font-size: 0.95rem;
}

.hero-trust .bi {
    color: #fbbf24;
    margin-inline-end: 0.35rem;
}

.hero-card {
    color: var(--text);
    border: 0;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.hero-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #e2e8f0;
}

.hero-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-card-media .status-pill {
    position: absolute;
    top: 0.85rem;
    inset-inline-start: 0.85rem;
}

.stats-strip {
    position: relative;
    margin-top: -2.5rem;
    z-index: 2;
}

.stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    padding: 1.25rem 1.4rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stat-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 0.9rem;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 1.35rem;
}

.stat-value {
    display: block;
    color: var(--ink);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.stat-label {
    color: var(--muted);
    font-size: 0.9rem;
}

.section {
    padding: 4rem 0 0;
}

.section-heading h2 {
    font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem);
}

.step,
.feature {
    height: 100%;
    padding: 1.6rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.step-icon,
.feature-icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    border-radius: 0.9rem;
    background: var(--gradient-brand);
    color: var(--navy);
    font-size: 1.35rem;
    box-shadow: 0 6px 16px -6px rgba(245, 165, 36, 0.7);
}

/* A full-width tinted band that breaks up the long home page. */
.section-band {
    margin-top: 4rem;
    padding: 3.5rem 0;
    background: linear-gradient(180deg, #eef3fb 0%, #f5f8fc 100%);
    border-block: 1px solid var(--line);
}

.feature-icon {
    background: var(--brand-soft);
    color: var(--brand);
    box-shadow: none;
}

.step-label {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--accent-text);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cta-band {
    position: relative;
    overflow: hidden;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    background: var(--gradient-hero);
    color: #fff;
}

.cta-band h2 {
    color: #fff;
}

.cta-band p {
    color: #cbd5e1;
}

/* Home page invitation to private sellers ("Sell your car"). */
.sell-band {
    padding: 1.75rem 2rem;
    border: 1px solid var(--accent-line);
    border-radius: var(--radius-lg);
    background: var(--accent-soft);
}

.sell-band-icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-sm);
    background: var(--gradient-brand);
    color: var(--navy);
    font-size: 1.35rem;
}

/* ---------- Car cards ---------- */

/* Listing grid: as many cards as fit, at least 15.5rem wide each. */
.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
    gap: 1rem;
}

/* Compact listing card (home page, car list, dealer pages). The hero card on
   the home page also carries .car-card for the hover effect but keeps its size. */
.car-card {
    position: relative;
    height: 100%;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.car-card:not(.hero-card) {
    --bs-card-spacer-y: 0.75rem;
    --bs-card-spacer-x: 0.85rem;
}

.car-card:not(.hero-card) .card-body {
    display: flex;
    flex-direction: column;
}

.car-card:hover,
.car-card:focus-within {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}

.car-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f5f9;
}

/* The whole vehicle stays visible, whatever the photograph's shape. */
.car-card-media img,
.car-card-media .no-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.car-card-media .status-pill,
.car-card-media .time-chip {
    position: absolute;
    inset-inline-start: 0.5rem;
    padding: 0.25rem 0.55rem;
    font-size: 0.75rem;
}

.car-card-media .status-pill {
    top: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.car-card-media .time-chip {
    bottom: 0.5rem;
}

.car-card-title {
    margin-bottom: 0.25rem;
    font-size: 1.05rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.car-card-title a {
    color: var(--ink);
    text-decoration: none;
}

.car-card-title a:hover {
    color: var(--brand);
}

/* Public list of dealers. */
.dealer-card {
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dealer-card:hover,
.dealer-card:focus-within {
    border-color: var(--brand);
    box-shadow: var(--shadow);
}

/* Dealer and town on one line, cut off with an ellipsis when too long. */
.car-card-meta {
    margin: 0 0 0.5rem;
    color: var(--muted);
    font-size: 0.8125rem;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.car-card-meta .car-card-dealer {
    color: var(--ink);
    font-weight: 600;
}

.car-card-meta .car-card-place::before {
    content: "\2022";
    margin-inline-end: 0.35rem;
}

.car-card-meta .bi,
.car-dealer .bi {
    margin-inline-end: 0.3rem;
    color: var(--muted);
}

.car-dealer {
    font-weight: 600;
}

/* Mileage, year, and fuel as small rounded chips on one line. They wrap only
   on very narrow screens, so nothing is cut off. */
.car-card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0;
    margin: 0 0 0.6rem;
    list-style: none;
    color: var(--text);
    font-size: 0.6875rem;
}

.car-card-specs li {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.35rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f8fafc;
    white-space: nowrap;
}

.car-card-specs .bi {
    margin-inline-end: 0.2rem;
    color: var(--muted);
}

.price-label {
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.price-amount {
    color: var(--ink);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    font-variant-numeric: tabular-nums;
}

/* Price and date under a thin divider, kept at the bottom with the button so
   both line up across a row. */
.car-card-summary {
    margin-top: auto;
    padding-top: 0.55rem;
    margin-bottom: 0.65rem;
    border-top: 1px solid var(--line);
}

/* Label and amount side by side. */
.car-card-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.15rem 0.45rem;
}

.car-card-price .price-label {
    display: inline;
    font-size: 0.6875rem;
}

.car-card-price .price-amount {
    font-size: 1.25rem;
}

.car-card-date {
    margin: 0.15rem 0 0;
    color: var(--muted);
    font-size: 0.75rem;
}

/* Full-width button, above the stretched title link that covers the card. */
.car-card-action {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
}

.no-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    background: #e2e8f0;
    color: var(--muted);
    font-size: 0.875rem;
}

.no-photo .bi {
    font-size: 2rem;
}

/* ---------- Car list ---------- */

.filters-card {
    top: 6rem;
}

.results-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.empty-state {
    padding: 3.5rem 1.5rem;
    text-align: center;
    background: var(--surface);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
}

.empty-state > .bi {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--muted);
    font-size: 2.5rem;
}

/* ---------- Car details ---------- */

.car-layout {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "media" "bidding" "details";
}

.car-layout-media { grid-area: media; }
.car-layout-bidding { grid-area: bidding; }
.car-layout-details { grid-area: details; }

@media (min-width: 992px) {
    .car-layout {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        grid-template-areas: "media bidding" "details bidding";
        align-items: start;
    }

    .car-layout-bidding {
        align-self: stretch;
    }
}

.car-subtitle {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    padding: 0;
    margin: 0;
    list-style: none;
    color: var(--muted);
}

.car-subtitle .bi {
    margin-inline-end: 0.3rem;
}

.gallery-main {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--ink);
    box-shadow: var(--shadow);
}

.gallery-main .carousel-control-prev,
.gallery-main .carousel-control-next {
    width: 3.25rem;
    height: 3.25rem;
    top: 50%;
    bottom: auto;
    margin: 0 0.75rem;
    transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.65);
    opacity: 1;
}

.gallery-main .carousel-control-prev:hover,
.gallery-main .carousel-control-next:hover {
    background: rgba(15, 23, 42, 0.85);
}

.gallery-main .carousel-control-prev-icon,
.gallery-main .carousel-control-next-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.gallery-count {
    position: absolute;
    inset-inline-end: 0.85rem;
    bottom: 0.85rem;
    z-index: 2;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(5.25rem, 1fr));
    gap: 0.6rem;
    padding: 0;
    margin: 0.85rem 0 0;
    list-style: none;
}

.gallery-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 0.65rem;
    background: none;
    opacity: 0.75;
    transition: opacity 0.15s ease, border-color 0.15s ease;
}

.gallery-thumb:hover,
.gallery-thumb[aria-current="true"] {
    opacity: 1;
}

.gallery-thumb[aria-current="true"] {
    border-color: var(--brand);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Compact details on the vehicle page: two columns of label and value rows. */
.spec-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 2rem;
    margin: 0;
    border-top: 1px solid var(--line);
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.9375rem;
}

.spec-row-wide {
    grid-column: 1 / -1;
}

.spec-row dt {
    flex: none;
    color: var(--muted);
    font-weight: 500;
}

.spec-row dt .bi {
    margin-inline-end: 0.45rem;
    color: var(--brand);
}

.spec-row dd {
    margin: 0;
    color: var(--ink);
    font-weight: 600;
    text-align: end;
    overflow-wrap: anywhere;
}

.spec-row dd.font-monospace {
    font-size: 0.875rem;
}

@media (max-width: 575.98px) {
    .spec-list {
        grid-template-columns: 1fr;
    }
}

.bid-panel {
    top: 6rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.bid-panel .card-body {
    padding: 1.75rem;
}

.bid-amount {
    color: var(--ink);
    font-size: clamp(2.1rem, 1.6rem + 2vw, 2.9rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.035em;
    font-variant-numeric: tabular-nums;
}

.bid-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.bid-fact {
    padding: 0.8rem 0.9rem;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 0.8rem;
}

.bid-fact dt {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.bid-fact dd {
    margin: 0;
    color: var(--ink);
    font-size: 1.1rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.countdown-part {
    padding: 0.65rem 0.25rem;
    text-align: center;
    border-radius: 0.8rem;
    background: var(--ink);
    color: #fff;
}

.countdown-part .value {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.countdown-part .unit {
    color: #cbd5e1;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.countdown.is-urgent .countdown-part {
    background: var(--danger);
}

.countdown.is-urgent .countdown-part .unit {
    color: #fee2e2;
}

.trust-list {
    display: grid;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
    color: var(--muted);
    font-size: 0.875rem;
}

.trust-list .bi {
    margin-inline-end: 0.45rem;
    color: var(--success);
}

.quick-bids {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.quick-bids .btn {
    --bs-btn-padding-y: 0.3rem;
    --bs-btn-padding-x: 0.75rem;
    --bs-btn-font-size: 0.875rem;
    border-radius: 999px;
}

.bid-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem;
    margin-bottom: 1.25rem;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 0.9rem;
}

.bid-summary img,
.bid-summary .no-photo {
    width: 5.5rem;
    aspect-ratio: 4 / 3;
    border-radius: 0.6rem;
    object-fit: cover;
    flex-shrink: 0;
}

.success-panel {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 1.4rem;
    margin-bottom: 1.5rem;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius);
    background: #f0fdf4;
}

.success-panel > .bi {
    color: var(--success);
    font-size: 1.75rem;
    line-height: 1;
}

.reference {
    padding: 0.15rem 0.5rem;
    border-radius: 0.4rem;
    background: #fff;
    border: 1px solid #bbf7d0;
    font-family: var(--bs-font-monospace);
    font-weight: 600;
}

.mobile-bid-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.1);
}

body.has-mobile-bid-bar {
    padding-bottom: 5.5rem;
}

@media (min-width: 992px) {
    .mobile-bid-bar {
        display: none;
    }

    body.has-mobile-bid-bar {
        padding-bottom: 0;
    }
}

/* ---------- Content pages ---------- */

.prose {
    max-width: 46rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.prose h2 {
    margin-top: 2rem;
    font-size: 1.35rem;
}

.check-list {
    display: grid;
    gap: 0.75rem;
    padding: 0;
    list-style: none;
}

.check-list li {
    display: flex;
    gap: 0.65rem;
}

.check-list .bi {
    color: var(--success);
    font-size: 1.2rem;
    line-height: 1.5;
}

.info-steps {
    display: grid;
    gap: 1rem;
    padding: 0;
    margin: 0;
    list-style: none;
    counter-reset: step;
}

.info-steps li {
    position: relative;
    padding-inline-start: 2.75rem;
    counter-increment: step;
}

.info-steps li::before {
    content: counter(step);
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 700;
}

/* ---------- Login pages ---------- */

.auth-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(0, 1fr);
}

.auth-aside {
    display: none;
}

@media (min-width: 992px) {
    .auth-shell {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    }

    .auth-aside {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 3rem;
        overflow: hidden;
        color: #fff;
        background: var(--gradient-hero);
    }

    .auth-aside::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
        background-size: 22px 22px;
    }

    .auth-aside > * {
        position: relative;
    }
}

.auth-aside h2,
.auth-aside .h2 {
    color: #fff;
    font-size: 2.25rem;
    font-weight: 800;
}

.auth-aside p {
    color: #cbd5e1;
}

.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 26rem;
}

/* ---------- Staff area ---------- */

.staff-navbar {
    background: var(--navy);
    --bs-navbar-color: #cbd5e1;
    --bs-navbar-hover-color: #fff;
    --bs-navbar-active-color: #fff;
    --bs-navbar-brand-color: #fff;
    --bs-navbar-brand-hover-color: #fff;
    --bs-navbar-padding-y: 0.6rem;
}

/* Compact, one line per item, so the menu fits a laptop screen. */
.staff-navbar .nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 0.5rem;
    padding: 0.45rem 0.6rem !important;
}

.staff-navbar .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
}

.staff-navbar .nav-link.active {
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 -2px 0 var(--accent);
}

/* On laptop screens the menu keeps one line: these labels are read by screen
   readers but not shown (the user's role is also at the top of their menu). */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .staff-navbar .staff-nav-optional {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

/* Staff dashboard tiles: as many as fit, each wide enough for its label. */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
    gap: 0.85rem;
}

.stat-grid .stat-tile {
    gap: 0.75rem;
    padding: 0.95rem 1rem;
}

.stat-grid .stat-icon {
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.15rem;
}

.stat-tile {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    padding: 1.1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: inherit;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.stat-tile:hover {
    color: inherit;
    border-color: #cbd5e1;
    box-shadow: var(--shadow);
}

.stat-tile.active {
    border-color: var(--brand);
    box-shadow: 0 0 0 1px var(--brand);
}

.stat-tile .stat-icon.is-open { background: #dcfce7; color: #166534; }
.stat-tile .stat-icon.is-upcoming { background: #dbeafe; color: #1e40af; }
.stat-tile .stat-icon.is-ended { background: #e2e8f0; color: #334155; }
.stat-tile .stat-icon.is-inquiries { background: #fef3c7; color: #92400e; }
.stat-tile .stat-icon.is-sell { background: #ede9fe; color: #5b21b6; }
.stat-tile .stat-icon.is-rent { background: #ccfbf1; color: #115e59; }

.photo-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0.5rem;
}

/* Staff car list: one fixed square per row, cropped to the centre of the
   photograph, so rows line up whatever shape the photograph has. */
.photo-col {
    width: 72px;
    min-width: 72px;
    vertical-align: middle;
}

.photo-col .photo-thumb {
    width: 56px;
    height: 56px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border: 1px solid var(--line);
    background: #f1f5f9;
}

.photo-col .photo-thumb.no-photo {
    position: relative;
    padding: 0;
    gap: 0;
}

.photo-col .photo-thumb.no-photo .bi {
    font-size: 1.25rem;
}

/* The placeholder text stays for screen readers but never wraps in the cell. */
.photo-col .photo-thumb.no-photo span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Photographs of a sell request (staff), from the private disk. */
.sell-request-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
    gap: 0.75rem;
}

.sell-request-photos img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0.5rem;
    background: #f1f5f9;
}

/* ---------- Customer accounts ---------- */

.account-shell {
    max-width: 32rem;
    margin-inline: auto;
}

.account-card .card-body {
    padding: 1.5rem;
}

@media (min-width: 576px) {
    .account-card .card-body {
        padding: 2.25rem;
    }
}

.account-alt {
    margin-top: 1.25rem;
    text-align: center;
    color: var(--muted);
}

.standing {
    margin-bottom: 1rem;
}

.standing .status-pill {
    font-size: 0.875rem;
}

/* The icon replaces the status dot. */
.standing .status-pill::before {
    display: none;
}

.site-header .dropdown-menu {
    --bs-dropdown-link-active-bg: var(--brand);
    --bs-dropdown-link-active-color: #fff;
}

.confirm-bid {
    padding: 1.25rem 0.5rem 0.5rem;
    text-align: center;
}

.confirm-bid .feature-icon {
    margin-inline: auto;
}

.confirm-bid-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ink);
}

.my-bid-round {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 768px) {
    .my-bid-round {
        grid-template-columns: 9rem minmax(0, 1fr);
    }
}

.my-bid-round .car-thumb {
    max-width: 8rem;
}

@media (min-width: 768px) {
    .my-bid-round .car-thumb {
        max-width: none;
    }
}

.my-bid-round .car-thumb img,
.my-bid-round .car-thumb .no-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 0.6rem;
    object-fit: cover;
}

.danger-zone {
    border-color: #fecaca;
}

/* ---------- Vehicle type tabs (car list) ---------- */

/* On phones the tabs scroll sideways instead of wrapping. */
@media (max-width: 767.98px) {
    .type-tabs .nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        scrollbar-width: thin;
    }

    .type-tabs .nav-link {
        white-space: nowrap;
    }
}

.type-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 600;
}

.type-tabs .nav-link:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.type-tabs .nav-link.active {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

.type-tab-count {
    margin-inline-start: 0.4rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: var(--muted);
    font-size: 0.75rem;
}

.type-tabs .nav-link.active .type-tab-count {
    /* White on the brand blue: 6.7:1, enough for the small count. */
    background: #fff;
    color: var(--brand);
}

/* ---------- Browse by type (home page) ---------- */

.type-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1rem;
    margin: 0;
}

.type-tile {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    height: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.type-tile:hover,
.type-tile:focus-visible {
    border-color: var(--brand);
    box-shadow: var(--shadow);
    color: var(--ink);
}

.type-tile-icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-sm);
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 1.35rem;
}

.type-tile-label {
    display: block;
    font-weight: 700;
}

.type-tile-count {
    display: block;
    color: var(--muted);
    font-size: 0.875rem;
}

/* ---------- FAQ and "how it works" notes ---------- */

.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    margin-bottom: 0.6rem;
}

.faq-item summary {
    padding: 0.85rem 1rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    flex: none;
    color: var(--accent-text);
    font-weight: 700;
}

.faq-item[open] summary::after {
    content: "\2212";
}

.faq-item p {
    padding: 0 1rem 1rem;
    color: var(--text);
}

.how-to summary {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand);
    cursor: pointer;
}

.how-to ol {
    font-size: 0.875rem;
    color: var(--text);
}

.how-to ol li {
    margin-bottom: 0.35rem;
}

.how-to a {
    font-size: 0.875rem;
}

/* The header keeps one line on laptop screens: no wrapping inside items, tighter spacing. */
.site-header .nav-link,
.site-header .navbar-nav .btn {
    white-space: nowrap;
}

/* The language button never wraps its label. */
.lang-switch {
    white-space: nowrap;
}

/* The public menu opens out at 1200px (the hamburger shows below that: with
   the Browse menu, the two buttons and the language switch it no longer fits
   between 992 and 1199px), and is tightened up to 1399px. */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .site-header .nav-link {
        padding: 0.5rem 0.55rem !important;
        font-size: 0.9375rem;
    }

    .site-header .brand {
        font-size: 1.1rem;
    }

    .site-header .navbar-nav .btn {
        padding-inline: 0.85rem;
        font-size: 0.9375rem;
    }
}
