/*
 * The engine stylesheet. Structure, rhythm and behaviour only — every colour, radius, font and
 * width comes from the per-site tokens in partials/palette.blade.php, so one file renders a
 * different-looking site on every domain.
 *
 * Rewritten from scratch after the first version shipped something that read as a bare document:
 * a flat rectangle for a hero, no imagery, and a prose column pinned to the left of a 1280px
 * container with the whole right half empty. That last one was a real bug and not a matter of
 * taste — a max-width on a child inside a full-width container leaves a hole, it does not centre.
 */

/* ---------- reset and base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.65;
    color: var(--ink);
    background: var(--page);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    line-height: 1.12;
    letter-spacing: -.02em;
    margin: 0 0 .5em;
    font-weight: 600;
    text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4rem); }
h2 { font-size: clamp(1.65rem, 1.25rem + 1.7vw, 2.5rem); }
h3 { font-size: clamp(1.12rem, 1.02rem + .4vw, 1.3rem); letter-spacing: -.012em; }

p { margin: 0 0 1.15em; }
a { color: var(--link); text-underline-offset: .18em; }
img, svg, video { max-width: 100%; height: auto; display: block; }
strong { font-weight: 600; }

:where(a, button, input, select, summary, [tabindex]):focus-visible {
    outline: 2.5px solid var(--accent-bright);
    outline-offset: 3px;
    border-radius: 3px;
}

/* ---------- layout primitives ---------- */

.shell { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.shell--narrow { width: min(100% - 2.5rem, 780px); }

.band { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0; }
.band--tint { background: var(--tint); }
.band--tint-2 { background: var(--tint-2); }
.band--dark { background: var(--dark); color: var(--on-dark); }
.band--dark h2, .band--dark h3 { color: var(--on-dark); }

.eyebrow {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 .7rem;
}
.band--dark .eyebrow { color: var(--on-dark-2); }

.section-head { max-width: 60ch; margin-bottom: clamp(1.6rem, 1rem + 2vw, 2.6rem); }
.section-head p { color: var(--ink-2); font-size: 1.06rem; margin-bottom: 0; }
.band--dark .section-head p { color: var(--on-dark-2); }

/* ---------- buttons ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    font: inherit; font-family: var(--font-body); font-weight: 600; font-size: .94rem; line-height: 1;
    padding: .95rem 1.6rem;
    border: 1.5px solid transparent; border-radius: var(--radius);
    background: var(--accent); color: var(--accent-ink);
    text-decoration: none; cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:hover { background: var(--accent-bright); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn__arrow { width: 17px; height: 17px; transition: transform .2s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--gold { background: var(--accent); color: var(--accent-ink); }
.btn--outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn--outline:hover { background: var(--accent); color: var(--accent-ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn--ghost:hover { background: var(--tint); color: var(--ink); border-color: var(--accent); }
.btn--sm { padding: .62rem 1.15rem; font-size: .86rem; }

/* A text link with a rule under it, weighted below the solid button on purpose: two equal
   buttons make a visitor choose, one primary and one secondary tells them which is which. */
.link-arrow {
    display: inline-flex; align-items: center; gap: .55rem;
    font-weight: 600; font-size: .94rem; text-decoration: none;
    color: inherit; padding-bottom: .45rem;
    border-bottom: 1.5px solid currentColor;
}
.link-arrow svg { width: 17px; height: 17px; transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

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

.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--surface); color: var(--ink); padding: .7rem 1.1rem; }
.skip:focus { left: 0; }

.site-head { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid transparent; transition: background .25s ease, border-color .25s ease; }
.site-head--over { position: fixed; left: 0; right: 0; background: transparent; }
.site-head.is-stuck,
.site-head:not(.site-head--over) {
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom-color: var(--rule);
}

/* The bar breathes in the transparent state and compacts in the solid one.
   Over the hero the header has no visible box, so its height costs nothing — which is the whole
   trick here: the logo can be large exactly where there is room for it, and the NAVIGATION never
   changes size either way. Scrolling compacts both, because a tall bar over content is a tall
   bar you can see. */
.site-head__bar { display: flex; align-items: center; gap: 1.5rem; padding: 1.6rem 0; transition: padding .25s ease; }
.site-head.is-stuck .site-head__bar,
.site-head:not(.site-head--over) .site-head__bar { padding: .8rem 0; }

.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
/* Sized by STATE, not by one compromise value. A stacked lockup — silhouette over wordmark over
   strapline, roughly 3:1 — gives its wordmark only about a third of whatever height it is set to,
   so a single header-sized value makes the name unreadable. */
.brand__logo { height: 96px; width: auto; display: block; transition: height .25s ease; }
.site-head.is-stuck .brand__logo,
.site-head:not(.site-head--over) .brand__logo { height: 50px; }
/* Two files, swapped by ground rather than recoloured by filter: the lockup is two colours —
   navy type and a gold mark — and a filter that whitens one destroys the other. */
.brand__logo--dark { display: none; }
.site-head--over:not(.is-stuck) .brand__logo--light { display: none; }
.site-head--over:not(.is-stuck) .brand__logo--dark { display: block; }
.brand__word { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.site-head--over:not(.is-stuck) .brand__word { color: #fff; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.75rem; }
.site-nav__list { list-style: none; display: flex; align-items: center; gap: 1.9rem; margin: 0; padding: 0; }
.site-nav__list a {
    color: var(--ink-2); text-decoration: none; font-size: .92rem; font-weight: 500;
    padding: .35rem 0; position: relative; white-space: nowrap;
}
.site-nav__list a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--accent); transition: right .22s ease; }
.site-nav__list a:hover::after, .site-nav__list a[aria-current="page"]::after { right: 0; }
.site-nav__list a[aria-current="page"] { color: var(--accent); }
.site-head--over:not(.is-stuck) .site-nav__list a { color: rgb(255 255 255 / .88); }
.site-head--over:not(.is-stuck) .site-nav__list a[aria-current="page"] { color: var(--accent); }

/* Clustered navigation. Sixteen pages do not fit a flat bar, and a bar that drops the ninth
   page leaves it crawlable but unreachable by hand.

   Two independent open triggers, deliberately: `:hover` is pure CSS so a mouse needs no script,
   and `[aria-expanded="true"]` is the button state so touch and keyboard have a real control.
   They agree about what "open" means, so the one case where they disagree — clicking to close
   while still hovering — leaves the panel open under the cursor, which is what a cursor sitting
   on it should do anyway. */
.site-nav__item { position: relative; }
.site-nav__item--group { display: flex; align-items: center; }
.site-nav__trigger {
    display: inline-flex; align-items: center; gap: .4rem;
    font: inherit; font-size: .92rem; font-weight: 500; line-height: inherit;
    color: var(--ink-2); background: none; border: 0; padding: .35rem 0;
    cursor: pointer; white-space: nowrap; position: relative;
}
.site-nav__trigger::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--accent); transition: right .22s ease; }
.site-nav__trigger:hover::after, .site-nav__trigger[aria-expanded="true"]::after { right: 0; }
.site-nav__chevron { width: 10px; height: 7px; flex: none; transition: transform .22s ease; }
.site-nav__trigger[aria-expanded="true"] .site-nav__chevron { transform: rotate(180deg); }
.site-head--over:not(.is-stuck) .site-nav__trigger { color: rgb(255 255 255 / .88); }

.site-nav__panel {
    position: absolute; top: calc(100% + 1.15rem); left: 50%;
    min-width: 15.5rem; list-style: none; margin: 0; padding: .45rem;
    background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
    box-shadow: var(--lift-2);
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateX(-50%) translateY(-.4rem);
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
/* The gap between the trigger and the panel is dead space a cursor crosses; without this the
   panel closes halfway down. */
.site-nav__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -1.2rem; height: 1.2rem; }
.site-nav__trigger[aria-expanded="true"] + .site-nav__panel {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    transition: opacity .18s ease, transform .18s ease, visibility 0s;
}
.site-nav__list .site-nav__panel a {
    display: block; padding: .58rem .8rem; border-radius: calc(var(--radius) - 1px);
    color: var(--ink) !important; font-size: .9rem; white-space: normal;
}
.site-nav__list .site-nav__panel a::after { display: none; }
.site-nav__list .site-nav__panel a:hover { background: var(--tint); color: var(--accent) !important; }
.site-nav__list .site-nav__panel a[aria-current="page"] { color: var(--accent) !important; }
/* The group's own page, repeated as the first row: on touch the trigger can only open the panel,
   so without this row the landing page is unreachable from the header. */
.site-nav__lead { font-weight: 600; }
.site-nav__panel li:has(> .site-nav__lead) { border-bottom: 1px solid var(--rule); margin-bottom: .3rem; padding-bottom: .3rem; }

@media (hover: hover) and (min-width: 1081px) {
    .site-nav__item--group:hover .site-nav__panel {
        opacity: 1; visibility: visible; pointer-events: auto;
        transform: translateX(-50%) translateY(0);
        transition: opacity .18s ease, transform .18s ease, visibility 0s;
    }
}

.site-nav__end { display: flex; align-items: center; gap: 1.1rem; }
.site-nav__rule { width: 1px; height: 30px; background: var(--rule-2); }
.site-head--over:not(.is-stuck) .site-nav__rule { background: var(--on-dark-rule); }
.site-nav__save { display: inline-grid; place-items: center; width: 26px; height: 26px; color: var(--ink-2); }
.site-nav__save svg { width: 22px; height: 22px; }
.site-head--over:not(.is-stuck) .site-nav__save { color: #fff; }
.site-nav__save:hover { color: var(--accent); }

.nav-toggle { display: none; }
@media (max-width: 1080px) {
    .hero { padding: 8rem 0 3.5rem; min-height: min(80vh, 640px); }
    .hero--flat { padding: 7.5rem 0 3rem; }

    /* On a phone the transparent bar has no room to be generous: the panel drops from under it
       and a 96px logo would push the menu halfway down the screen. */
    .site-head__bar { padding: .9rem 0; }
    .brand__logo, .site-head.is-stuck .brand__logo { height: 54px; }

    .site-nav {
        position: fixed; inset: 5.4rem 0 auto;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--surface); border-bottom: 1px solid var(--rule);
        padding: .5rem 1.5rem 1.5rem; box-shadow: var(--lift-2);
        transform: translateY(-120%); visibility: hidden; pointer-events: none;
        transition: transform .25s ease, visibility 0s linear .25s;
    }
    /* visibility and pointer-events, not transform alone. A panel hidden only by translateY
       still occupies its box for hit-testing: this one sat over the burger and swallowed every
       click, so the mobile menu could not be opened at all. */
    .site-nav.is-open { transform: none; visibility: visible; pointer-events: auto; transition: transform .25s ease, visibility 0s; }
    .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .site-nav__list a { color: var(--ink) !important; padding: .9rem 0; border-bottom: 1px solid var(--rule); font-size: 1rem; display: block; }
    .site-nav__list a::after { display: none; }
    /* On a phone the dropdown is an accordion in the flow. Absolute positioning here would put
       a floating card over a panel that is itself a fixed overlay. */
    .site-nav__item--group { display: block; }
    .site-nav__trigger { width: 100%; justify-content: space-between; color: var(--ink) !important; padding: .9rem 0; border-bottom: 1px solid var(--rule); font-size: 1rem; }
    .site-nav__trigger::after { display: none; }
    .site-nav__panel {
        position: static; transform: none; min-width: 0; padding: 0 0 .3rem .9rem;
        background: none; border: 0; box-shadow: none;
        display: none; opacity: 1; visibility: visible; pointer-events: auto;
    }
    .site-nav__panel::before { display: none; }
    .site-nav__trigger[aria-expanded="true"] + .site-nav__panel { display: block; transform: none; }
    .site-nav__list .site-nav__panel a { padding: .7rem 0; font-size: .95rem; }
    .site-nav__list .site-nav__panel a:hover { background: none; }
    .site-nav__panel li:has(> .site-nav__lead) { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
    .site-nav__end { margin-top: 1.1rem; justify-content: space-between; }
    .site-nav__rule { display: none; }
    .site-nav__end .btn { flex: 1; margin-left: 1rem; }
    .nav-toggle { display: inline-flex; margin-left: auto; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--rule-2); border-radius: var(--radius); background: transparent; color: var(--ink); cursor: pointer; }
    .site-head--over:not(.is-stuck) .nav-toggle { border-color: var(--on-dark-rule); color: #fff; }
    .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 1.5px; background: currentColor; }
    .nav-toggle span { position: relative; }
    .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
    .nav-toggle span::before { top: -6px; }
    .nav-toggle span::after { top: 6px; }
}

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

/* The top padding clears the TALL state of the header, not the compact one. The transparent bar
   is 147px with the large logo in it, and a 9rem gap put the eyebrow directly under the wordmark. */
.hero { position: relative; display: flex; align-items: center; min-height: min(80vh, 700px); padding: 11rem 0 5rem; color: #fff; background: var(--dark); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
/* Three stops. A strong wash from the left so the type has a ground of its own, a floor so the
   bottom never goes pale, and a soft top for the transparent header to sit against. */
.hero__media::after {
    content: "";
    position: absolute; inset: 0;
    background:
        linear-gradient(100deg, color-mix(in srgb, var(--dark) 94%, transparent) 0%, color-mix(in srgb, var(--dark) 74%, transparent) 34%, color-mix(in srgb, var(--dark) 12%, transparent) 68%, transparent 88%),
        linear-gradient(to top, color-mix(in srgb, var(--dark) 55%, transparent) 0%, transparent 40%),
        linear-gradient(to bottom, color-mix(in srgb, var(--dark) 55%, transparent) 0%, transparent 26%);
}
.hero__inner { position: relative; z-index: 1; }
.hero__body { max-width: 52ch; }
/* The headline is set to break where the writer intended, not where the box happens to run
   out. `balance` alone still wrapped "Timeless streets. Honest advice." onto three lines at a
   40ch measure, which reads as an accident. */
.hero h1 { color: #fff; font-size: clamp(2.4rem, 1.2rem + 4.1vw, 4.2rem); line-height: 1.05; letter-spacing: -.022em; margin-bottom: 1.4rem; max-width: 17ch; text-wrap: balance; }
.hero__lede { font-size: clamp(1rem, .94rem + .35vw, 1.14rem); line-height: 1.62; color: rgb(255 255 255 / .82); margin-bottom: 2.2rem; max-width: 44ch; }
.hero__eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    color: var(--accent); font-size: .78rem; font-weight: 600;
    letter-spacing: .18em; text-transform: uppercase; margin-bottom: 1.5rem;
}
.hero__eyebrow svg { width: 15px; height: 15px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
.hero__actions .link-arrow { color: #fff; }

.hero--flat { min-height: 0; padding: 11rem 0 3.5rem; }

/* ---------- search ---------- */

.search { background: var(--surface); border-radius: var(--radius-lg); padding: 1rem; box-shadow: var(--lift-3); color: var(--ink); }
.hero .search { margin-top: 2rem; }
.search__grid { display: grid; gap: .65rem; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); align-items: end; }
.field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.field > span { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.field input, .field select {
    font: inherit; font-size: .95rem; padding: .62rem .7rem; width: 100%;
    color: var(--ink); background: var(--tint-2);
    border: 1.5px solid transparent; border-radius: calc(var(--radius) * .75);
    transition: border-color .16s ease, background .16s ease;
}
.field input:hover, .field select:hover { background: var(--tint); }
.field input:focus, .field select:focus { background: var(--surface); border-color: var(--accent); outline: none; }
.search .btn { height: 2.85rem; }

/* ---------- prose ---------- */

.prose-shell { padding: clamp(2.75rem, 2rem + 3vw, 4.5rem) 0; }
/* Centred, not pinned left. The first version put max-width on the children of a full-width
   container, which leaves the right half of a 1280px page empty and reads as a broken layout. */
.prose { max-width: var(--measure); font-size: 1.06rem; }
.prose > h2 { margin-top: 2.4rem; }
.prose > h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose li::marker { color: var(--accent); }

.pull {
    border-left: 3px solid var(--accent);
    background: var(--tint);
    padding: 1.15rem 1.35rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 2rem 0;
}
.pull p:last-child { margin-bottom: 0; }
.pull__label { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .4rem; }

/* ---------- generic cards ---------- */

.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); padding: 0; margin: 0; list-style: none; }

.card {
    display: flex; flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--lift-1);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--lift-2); border-color: var(--rule-2); }
.card__media { aspect-ratio: 4 / 3; background: var(--tint); overflow: hidden; }
/* Never enlarge a supplier image past its native size: one car template upscaled a 474x316
   photo 2.3x across a full-width pane and cropped it, and the stacked mobile layout was a
   second, separate instance of the same bug. */
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 1rem 1.15rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card__name { margin: 0; font-size: 1.05rem; }
.card__meta { display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: center; font-size: .87rem; color: var(--ink-3); margin: 0; }
.card__score { font-weight: 700; color: var(--accent); }
.card__price { margin-top: auto; padding-top: .6rem; display: flex; align-items: baseline; gap: .45rem; flex-wrap: wrap; }
.card__amount { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
.card__was { color: var(--ink-3); text-decoration: line-through; font-size: .88rem; }
.card__unit, .card__total { font-size: .82rem; color: var(--ink-3); }
.stars { color: var(--warm); letter-spacing: .08em; font-size: .85rem; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0 0 1.5rem; list-style: none; }
.chip {
    font-size: .87rem; font-weight: 500;
    padding: .42rem .9rem;
    border: 1.5px solid var(--rule-2);
    border-radius: 999px;
    color: var(--ink-2); background: var(--surface);
    text-decoration: none; cursor: pointer;
    font-family: inherit;
    transition: border-color .16s ease, color .16s ease, background .16s ease;
}
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip--clear { border: 0; background: transparent; color: var(--link); text-decoration: underline; }
.chip b { font-weight: 700; }

.empty { border: 1.5px dashed var(--rule-2); border-radius: var(--radius-lg); padding: 2.25rem; color: var(--ink-2); text-align: center; }

/* ---------- feature strip ---------- */

.feature { display: grid; gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: center; }
@media (min-width: 860px) { .feature { grid-template-columns: 1fr 1fr; } .feature--flip .feature__media { order: 2; } }
.feature__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--lift-2); aspect-ratio: 3 / 2; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__body p:last-child { margin-bottom: 0; }
.feature__list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .6rem; }
.feature__list li { display: grid; grid-template-columns: 1.4rem 1fr; gap: .5rem; font-size: .97rem; color: var(--ink-2); }
.feature__list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: .55em; }

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

.site-foot { background: var(--dark); color: var(--on-dark-2); padding: clamp(2.75rem, 2rem + 3vw, 4.5rem) 0 2rem; margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
.site-foot__cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.site-foot__brand { max-width: 32ch; }
/* The footer needs its own size: `.brand__logo` is set for the HERO state of the header, and
   only the header's stuck state overrides it, so the footer silently inherited 96px. */
.site-foot__brand .brand { color: #fff; margin-bottom: 1rem; }
.site-foot .brand__logo { height: 64px; }
.site-foot__brand p { color: var(--on-dark-2); font-size: .95rem; }
.site-foot h2 { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; color: rgb(255 255 255 / .55); font-family: var(--font-body); margin-bottom: .9rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-foot a { color: var(--on-dark-2); text-decoration: none; font-size: .95rem; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.site-foot__note { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / .12); display: flex; flex-wrap: wrap; gap: .8rem 2rem; justify-content: space-between; font-size: .87rem; color: rgb(255 255 255 / .5); }
.site-foot__note p { margin: 0; max-width: 68ch; }

/* ---------- reveal, sticky cta ---------- */

@media (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
    .reveal.is-in { opacity: 1; transform: none; }
}

.sticky-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: .65rem .9rem calc(.65rem + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--rule);
    transform: translateY(115%);
    transition: transform .24s ease;
}
.sticky-cta.is-up { transform: none; }
.sticky-cta .btn { width: 100%; }
@media (min-width: 821px) { .sticky-cta { display: none; } }

/* ==========================================================================
   INTRO: prose beside the essentials
   Fixes the width problem that made the first version look broken. A reading column
   is capped at a measure for legibility; inside a 1200px container that leaves the
   row half empty unless something useful sits next to it.
   ========================================================================== */

.intro { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .intro { grid-template-columns: minmax(0, 1fr) 320px; gap: 3.5rem; } }
.intro__prose { max-width: var(--measure); font-size: 1.06rem; }
.intro__prose > *:last-child { margin-bottom: 0; }

.facts { background: var(--tint); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 1.4rem 1.5rem; }
@media (min-width: 900px) { .facts { position: sticky; top: 5.5rem; } }
.facts__title { font-family: var(--font-body); font-size: .74rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.1rem; }
.facts__list { margin: 0; display: grid; gap: .95rem; }
.facts__list div { display: grid; gap: .15rem; }
.facts__list dt { font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.facts__list dd { margin: 0; font-size: .95rem; line-height: 1.45; }

.card__text { font-size: .94rem; color: var(--ink-2); margin: 0; }

/* ---------- map ---------- */

.mapbox {
    position: relative;
    aspect-ratio: 16 / 8;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--rule);
    background: var(--tint);
    box-shadow: var(--lift-1);
}
@media (max-width: 700px) { .mapbox { aspect-ratio: 4 / 3; } }
.mapbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

.mapbox__link { margin: .9rem 0 0; font-size: .93rem; display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: baseline; }
.mapbox__coords { color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ---------- essence band ---------- */

.essence__grid { display: grid; gap: 2.5rem; }
@media (min-width: 940px) { .essence__grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 4rem; align-items: start; } }
.essence__lead h2 { font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.5rem); line-height: 1.16; margin: 0; }
.essence__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; }
@media (min-width: 620px) { .essence__points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.25rem; } }
@media (min-width: 940px) { .essence__points { border-left: 1px solid var(--rule-2); padding-left: 4rem; margin-left: -1rem; } }
.essence__icon { display: block; color: var(--accent); margin-bottom: 1rem; }
.essence__icon svg { width: 34px; height: 34px; }
.essence__points h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; letter-spacing: 0; margin: 0 0 .45rem; }
.essence__points p { font-size: .93rem; color: var(--ink-2); margin: 0; line-height: 1.6; }

.eyebrow { font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--warm); margin: 0 0 .9rem; }
.band--dark .eyebrow { color: var(--accent); }

/* ==========================================================================
   RESULTS AND REVIEWS
   Neither region renders today — the fixture cannot publish rates, so the grid is
   absent rather than empty. They are styled anyway: the day a partner key lands is
   not the day to discover that a whole section has no rules behind it.
   ========================================================================== */

.results { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0; }
.results__head { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; align-items: baseline; margin-bottom: 1.5rem; }
.results__head h2 { margin: 0; }
.results__count { color: var(--ink-3); font-size: .92rem; }

/* Never enlarge a supplier image past its native size, and cap it by width. One car-engine
   template upscaled a 474x316 photo 2.3x across a full-width pane and cropped it; the stacked
   mobile layout was a second, separate instance of the same bug. */
.thumb { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--tint); display: block; }

.reviews { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0; background: var(--tint); }
.reviews__list { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); list-style: none; padding: 0; margin: 1.5rem 0 0; }
.review { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--lift-1); }
.review p { font-size: .97rem; color: var(--ink-2); }
.review__who { font-size: .86rem; color: var(--ink-3); margin: .8rem 0 0; font-weight: 500; }

a.site-foot__credits { display: inline-block; margin-top: 2rem; font-size: .82rem; color: rgb(255 255 255 / .45); text-decoration: underline; text-underline-offset: .2em; }
a.site-foot__credits:hover { color: rgb(255 255 255 / .8); }

.credit-list { display: grid; gap: 1.1rem; margin: 2rem 0; }
.credit-list div { display: grid; gap: .2rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--rule); }
.credit-list dt { font-weight: 600; }
.credit-list dd { margin: 0; font-size: .93rem; display: flex; flex-wrap: wrap; gap: .3rem .9rem; }
.credit-list dd span { color: var(--ink-3); }
.credit-note { font-size: .9rem; color: var(--ink-3); }

/* ---------- comparison table ---------- */

/* A four-column table is the right shape for "which neighbourhood" and the wrong shape for a
   380px screen. Rather than let it scroll sideways, it becomes a stack of labelled cards below
   860px — the data-label on each cell carries the column heading down with it. */
/* The wrapper, not the table, owns the horizontal scroll: a table that scrolls itself drags the
   whole page body sideways on a narrow screen. Below 860px the table restacks and this never
   triggers, so it is the safety net rather than the mechanism. */
.compare { overflow-x: auto; }
.compare__table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.compare__table th, .compare__table td { text-align: left; padding: .95rem 1.1rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.compare__table thead th {
    font-family: var(--font-head); font-size: .74rem; font-weight: 600;
    letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
    border-bottom: 1px solid var(--rule-2); padding-bottom: .7rem;
}
.compare__table tbody th { font-weight: 600; color: var(--ink); width: 26%; }
.compare__table tbody th a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--accent); }
.compare__table tbody th a:hover { color: var(--accent); }
.compare__table td { color: var(--ink-2); }
.compare__table tbody tr:last-child th, .compare__table tbody tr:last-child td { border-bottom: 0; }
.compare__table tbody tr:hover td, .compare__table tbody tr:hover th { background: var(--tint-2); }
.compare__note { display: block; font-weight: 400; font-size: .84rem; color: var(--ink-3); margin-top: .2rem; }

@media (max-width: 860px) {
    .compare__table, .compare__table tbody, .compare__table tr, .compare__table th, .compare__table td { display: block; }
    .compare__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .compare__table tbody tr { border: 1px solid var(--rule); border-radius: var(--radius); margin-bottom: 1rem; padding: .3rem 0; }
    .compare__table tbody th { width: auto; font-size: 1.05rem; border-bottom: 1px solid var(--rule); }
    .compare__table td { border-bottom: 0; padding: .45rem 1.1rem; }
    .compare__table td::before { content: attr(data-label) " — "; color: var(--ink-3); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
    .compare__table tbody tr:hover td, .compare__table tbody tr:hover th { background: none; }
}

/* ---------- FAQ ---------- */

/* <details>, not a scripted accordion: it opens with JavaScript off, it is findable by the
   browser's own in-page search, and it needs no ARIA of its own. */
.faq { max-width: 62rem; }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
    padding: 1.15rem 0; cursor: pointer; list-style: none;
    font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent); }
.faq__mark { width: 14px; height: 14px; flex: none; color: var(--accent); transition: transform .22s ease; }
.faq__item[open] .faq__mark { transform: rotate(45deg); }
.faq__body { padding: 0 0 1.3rem; max-width: 62ch; }
.faq__body p { color: var(--ink-2); margin: 0; }

/* ---------- source stamp ---------- */

.checked {
    margin-top: 2.2rem; padding: 1.1rem 1.3rem;
    border-left: 3px solid var(--accent); background: var(--tint-2);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: .88rem;
}
.checked__when { margin: 0; color: var(--ink-2); font-weight: 600; }
.checked__list { list-style: none; margin: .45rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; }
.checked__list a { color: var(--ink-3); text-decoration: none; border-bottom: 1px solid var(--rule-2); }
.checked__list a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- internal links ---------- */

.next-pages { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.next-pages__item a {
    display: flex; flex-direction: column; gap: .55rem; height: 100%;
    padding: 1.4rem 1.5rem; text-decoration: none;
    background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.next-pages__item a:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--lift-2); }
.next-pages__item h3 { font-size: 1.1rem; margin: 0; color: var(--ink); }
.next-pages__item p { margin: 0; font-size: .92rem; color: var(--ink-2); }
/* The arrow is pushed to the bottom so cards of different text lengths still line up. */
.next-pages__item .link-arrow { margin-top: auto; padding-top: .5rem; }

/* ---------- checklist inside prose ---------- */

/* A list of things to buy or do, distinct from the running prose so it can be scanned. The marker
   is drawn rather than a bullet character, because a granite-grey tick at 0.8em is the only part
   of this that has to survive a font fallback. */
.ticks { list-style: none; margin: 1.4rem 0; padding: 0; display: grid; gap: .7rem; }
.ticks li { position: relative; padding-left: 1.75rem; color: var(--ink-2); }
.ticks li::before {
    content: ""; position: absolute; left: 0; top: .42em;
    width: .7rem; height: .38rem;
    border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg);
}
.ticks strong { color: var(--ink); }

/* ---------- the short-answer panel ---------- */

/* Shares the .intro grid with the prose column, so it inherits the same 320px rail and the same
   sticky behaviour as .facts on the home page. Different content, identical geometry — two rails
   of different widths on sibling pages is the kind of drift nobody notices and everybody feels. */
.verdict { background: var(--tint); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 1.4rem 1.5rem; }
@media (min-width: 900px) { .verdict { position: sticky; top: 5.5rem; } }
.verdict__title { font-family: var(--font-body); font-size: .74rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.1rem; }
.verdict__rows { margin: 0; display: grid; gap: .95rem; }
.verdict__rows div { display: grid; gap: .15rem; }
.verdict__rows dt { font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.verdict__rows dd { margin: 0; font-size: .95rem; line-height: 1.45; }
.verdict__head { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 1.4rem 0 .55rem; }
.verdict__head--yes { color: var(--accent); }
.verdict__head--no { color: var(--ink-3); }
.verdict__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .92rem; line-height: 1.45; color: var(--ink-2); }
.verdict__list li { position: relative; padding-left: 1.15rem; }
/* Drawn, not a character: a tick and a dash from a fallback font are different sizes and land on
   different baselines, and the two lists then read as two different components. */
.verdict__list li::before { content: ""; position: absolute; left: 0; }
.verdict__list--yes li::before { top: .42em; width: .55rem; height: .3rem; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.verdict__list--no li::before { top: .62em; width: .6rem; height: 2px; background: var(--ink-3); }

/* ==========================================================================
   TOUCH TARGETS
   Keyed on `pointer: coarse`, not on width. The condition is the input device,
   not the screen: a small window on a laptop still has a mouse, and a tablet in
   landscape is 1024px wide and still operated with a thumb.

   Measured on the live site before this block: fourteen footer links at 19px
   tall, the five neighbourhood links in the stacked comparison cards at 21px,
   and the saved-places icon at 26px. The footer is also the no-JavaScript
   fallback for the whole navigation, so it is the last place that should be
   hard to hit.
   ========================================================================== */

@media (pointer: coarse) {
    /* The gap shrinks as the padding grows, so the column does not get taller
       for the sake of it — the target does, the list does not. */
    .site-foot ul { gap: 0; }
    .site-foot ul a { display: block; padding: .72rem 0; min-height: 44px; box-sizing: border-box; }
    .site-foot__credits { padding: .6rem 0; }

    /* Row headers in the stacked comparison cards are the primary way into the
       five neighbourhood pages from the hub. */
    .compare__table tbody th a { display: inline-block; padding: .5rem 0; min-height: 44px; box-sizing: border-box; }

    .site-nav__save { width: 44px; height: 44px; }
    .site-nav__save svg { width: 22px; height: 22px; }

    /* Buttons and the arrow links beside them: a 33px control next to a 44px
       one reads as the secondary action being the harder one to press. */
    .btn, .btn--sm { min-height: 44px; }
    .link-arrow { min-height: 44px; display: inline-flex; align-items: center; }
    .faq__item summary { padding: 1.25rem 0; }

    /* The rest of what the second measurement pass turned up. Each of these is a
       link a thumb is genuinely expected to hit: the burger at 42px was two pixels
       short, and the source links under a `checked` stamp are the ones a sceptical
       reader taps to check a figure — the exact reader worth keeping. */
    .nav-toggle { width: 44px; height: 44px; }
    .checked__list { gap: 0 1.1rem; }
    .checked__list a { display: inline-flex; align-items: center; min-height: 44px; }
    .mapbox__link a { display: inline-flex; align-items: center; min-height: 44px; }
    .credit-list a { display: inline-flex; align-items: center; min-height: 44px; }
    a.site-foot__credits { padding: .75rem 0; min-height: 44px; box-sizing: border-box; }
}
