/* ============================================================
   Fair Key Homes - public site
   Shares the palette defined in app.css; everything here is
   scoped under .pub or to public-only components so the staff
   hub's styles are untouched.
   ============================================================ */

.pub { --pub-gutter: 20px; display: flex; flex-direction: column; min-height: 100vh; background: var(--surface); }
/* Deliberately low-key staff entry point in the footer fineprint. */
.pub-staff-link { color: inherit; opacity: .55; font-size: .92em; margin-left: .6em; }
.pub-staff-link:hover { opacity: 1; }
.pub-main { flex: 1; }

/* Every 1140px column on the public site reads ONE gutter token, declared on
   .pub above. Before this the hero padded 20px inside the column while the
   bands, the poster and the footer each chose their own inset, so at 1440px
   the page had three left edges (143 / 163 / 177px). Nothing inside a
   container adds a left inset of its own. */
.pub-main > .hero {
    max-width: 1140px;
    margin-inline: auto;
    padding-inline: var(--pub-gutter);
}

/* ---------- Header ---------- */
.pub-header { background: var(--fk-surface); color: var(--fk-ink); border-bottom: 2px solid var(--fk-rule-strong); position: sticky; top: 0; z-index: 20; }
.pub-header-inner {
    max-width: 1140px; margin: 0 auto; padding: .85rem var(--pub-gutter);
    display: flex; align-items: center; justify-content: flex-start; gap: 1.25rem; flex-wrap: wrap;
}
.pub-brand { display: flex; align-items: center; gap: .65rem; color: var(--fk-ink); }
.pub-brand:hover { text-decoration: none; }
.pub-logo { width: 40px; height: 40px; flex: 0 0 auto; }
.pub-brand-text strong { display: block; font-size: 1.05rem; letter-spacing: -.01em; color: var(--fk-ink); }

/* .pub-nav grows to fill the header row so .pub-nav-cta's auto margin has
   room to push it to the far right, past the flush-left nav links. */
.pub-nav { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; flex: 1 1 auto; }
.pub-nav-link {
    color: var(--fk-ink); padding: .45rem .7rem;
    border-bottom: 3px solid transparent;
    font-size: .9rem; font-weight: 600;
}
.pub-nav-link:hover { color: var(--fk-teal); text-decoration: none; }
.pub-nav-link.active { border-bottom-color: var(--fk-teal); color: var(--fk-teal); }
.pub-nav-cta { margin-left: auto; white-space: nowrap; }

/* ---------- Hero ---------- */
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }

.btn-solid {
    display: inline-flex; align-items: center; justify-content: center;
    padding: .72rem 1.4rem; border: 1px solid var(--gold); border-radius: 0;
    background: var(--gold); color: #FFFFFF; font-weight: 700; font-size: .95rem; cursor: pointer;
}
.btn-solid:hover { text-decoration: none; filter: brightness(1.06); }
.btn-solid:disabled { opacity: .6; cursor: default; filter: none; }
.btn-sm { padding: .48rem 1rem; font-size: .86rem; }

/* Sits beside .btn-solid in .hero-actions, and every place it renders is a
   light surface — the empty states on /vacancies and /vacancies/{id}, and the
   alert-action card. It was white-on-transparent with a translucent white
   border, written for a dark hero that no longer exists, so the link was
   invisible against the page. On the not-found page the invisible one was the
   link offering the senior waitlist. */
.btn-ghost {
    display: inline-flex; align-items: center; justify-content: center;
    padding: .72rem 1.4rem; border: 1px solid var(--fk-border-card); border-radius: 0;
    background: transparent; color: var(--fk-teal); font-weight: 700; font-size: .95rem;
}
.btn-ghost:hover { background: var(--fk-teal-wash); border-color: var(--fk-teal); text-decoration: none; }

/* ---------- Bands ---------- */
.band {
    padding-block: var(--fk-space-8);
    border-top: 2px solid var(--fk-rule-strong); border-bottom: 1px solid var(--fk-rule);
}
.band-tint { background: var(--fk-teal-wash); }
.band-inner { max-width: 1140px; margin: 0 auto; padding-inline: var(--pub-gutter); }
.band-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.band-head h2 { font-size: 1.5rem; }

.page-band { background: var(--bg); padding-block: 2.5rem 2rem; border-bottom: 1px solid var(--border); }
.page-band h1 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); }
.page-lead { margin: .6rem 0 0; color: var(--muted); max-width: 46rem; line-height: 1.55; }

/* Ruled three-cell band, same technique as .listing-facts below: the 1px
   background shows through the grid gap as the rule between cells.
   The outer cells lose their outer-edge padding so the copy lines up flush
   with the band's own container gutter, same as .hero-copy above it.
   The gutter is padding on this same element, so the background is clipped
   to the content box; otherwise the rule colour would paint in the gutters. */
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--fk-rule); background-clip: content-box; }
.info-card {
    background: var(--fk-ground); border: 0; border-radius: 0; box-shadow: none;
    padding: 1.75rem 1.6rem 1.6rem;
}
.info-card:first-child { padding-left: 0; }
.info-card:last-child { padding-right: 0; }
.info-card h2 { font-family: var(--fk-serif); font-weight: 400; font-size: 1.5rem; margin: 0 0 .6rem; }
.info-card p { margin: 0 0 .9rem; color: var(--fk-ink-soft); line-height: 1.65; font-size: .875rem; }

.link-arrow { font-weight: 700; font-size: .92rem; }

/* ---------- Listings ---------- */
.listing-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.listing-card {
    position: relative; display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--border); border-radius: 0;
}

/* Photo-or-map slot at the top of a card. Height fixed so a grid of cards
   lines up whether a card shows a map, a photograph or (unplaced) nothing. */
.listing-photo { position: relative; height: 160px; background: var(--bg); border-bottom: 1px solid var(--fk-rule-light); overflow: hidden; }
.listing-photo .map-thumb { border-bottom: 0; }
/* Must sit above the card's stretched link (.listing-card-link::after, z-index 1), same reason as .tag and .listing-foot. */
.listing-photo .map-thumb-attribution { z-index: 2; }

.listing-body { padding: 1.25rem; flex: 1 1 auto; }
.listing-eyebrow { margin: 0 0 var(--fk-space-2); color: var(--fk-slate-400); }
.listing-card h3 { font-size: 1.0625rem; margin: 0 0 .3rem; line-height: 1.25; }
.listing-address { margin: 0 0 .85rem; color: var(--muted); font-size: .88rem; line-height: 1.45; }

/* Stretched-link: the address is real, visible link text, and its ::after
   is what actually stretches the click target over the whole card — so the
   accessible name for "the whole card" is the address, not an empty overlay.
   .listing-foot below is raised above it (position + z-index) so the
   Apply / Join the waitlist button keeps working as its own target. */
.listing-card-link { color: inherit; }
.listing-card-link:hover { color: var(--fk-teal); text-decoration: none; }
.listing-card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }

.tag {
    position: absolute; top: .65rem; left: .65rem; z-index: 2;
    padding: .18rem .55rem; border-radius: 0;
    font-size: .68rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
}
.tag-lihtc { background: var(--fk-ink); color: #FFFFFF; }

/* Ruled three-cell strip: the 1px background shows through the grid gap as
   the rule between cells, same technique as .cards-3 above. */
.listing-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--fk-rule-light); margin: 0 0 .9rem; }
.listing-facts > div { background: var(--surface); padding: .45rem .1rem; }
.listing-facts > div span { font-size: .8rem; font-weight: 600; color: var(--text); white-space: nowrap; }
.listing-available { margin: 0; font-size: .8rem; color: var(--muted); }

.listing-foot {
    position: relative; z-index: 2;
    padding: .9rem 1.25rem; border-top: 1px solid var(--border); background: var(--fk-surface-alt);
    display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap;
}
/* The rent is a figure: serif, tabular, so a column of cards lines up. */
.listing-rent {
    font-family: var(--fk-serif); font-size: 1.875rem; font-weight: 500;
    line-height: 1.1; font-variant-numeric: tabular-nums;
    color: var(--fk-ink-900); white-space: nowrap;
}
.listing-rent small { font-family: var(--fk-sans); font-size: .8rem; font-weight: 600; color: var(--fk-slate-400); }

/* ---------- Poster ---------- */
/* Full-column teal block. Zero outer margin: it butts the trust strip above
   and the footer below, and the footer's own top rule is the separator. The
   text lands on the column edge like every other band. */
.fk-poster { background: var(--fk-teal); color: #FFFFFF; padding: var(--fk-space-8) var(--pub-gutter); margin: 0 auto; max-width: 1140px; }
.fk-poster h2 { color: #FFFFFF; }
.fk-poster .btn-light-accent { background: #FFFFFF; color: var(--fk-teal); border-color: #FFFFFF; }

/* ---------- Filters and map ---------- */
.fk-filter-strip { border-top: 2px solid var(--fk-rule-strong); border-bottom: 1px solid var(--fk-rule); padding: 12px 0; flex-wrap: wrap; }
.chip-clear { border: 0; background: transparent; color: inherit; padding: 0 0 0 4px; cursor: pointer; font: inherit; line-height: 1; }

.vacancy-map {
    height: 380px; border-radius: 0;
    border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden;
}
.map-note { margin: .55rem 0 0; font-size: .78rem; color: var(--muted); }

.map-pin-wrap { background: none; border: 0; }
.map-pin {
    display: grid; place-items: center; width: 30px; height: 30px;
    border-radius: 0; transform: rotate(-45deg);
    background: var(--teal); color: #fff; border: 2px solid #fff;
    font-size: .78rem; font-weight: 800; box-shadow: none;
}
.map-pin-lihtc { background: var(--ok); }

.map-popup { min-width: 12rem; font-family: inherit; }
.map-popup strong { display: block; font-size: .95rem; color: var(--fk-ink); }
.map-popup-address { font-size: .8rem; color: var(--fk-muted); margin: .15rem 0 .35rem; }
.map-popup-count { font-size: .82rem; font-weight: 700; margin-bottom: .45rem; }

/* ---------- Forms ---------- */
.form-layout { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; }
.form-main { max-width: 40rem; }
.form-aside {
    background: var(--bg); border: 1px solid var(--border); border-radius: 0; padding: 1.35rem;
}
.form-aside h2 { font-size: 1.02rem; margin-bottom: .5rem; }
.form-aside p { margin: 0 0 .8rem; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.form-aside hr { border: 0; border-top: 1px solid var(--border); margin: 1.1rem 0; }

.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1.05rem; }
.field .optional { font-weight: 500; color: var(--muted); }
.field-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.validation-message { color: var(--bad); font-size: .82rem; font-weight: 600; }

.form-fineprint { margin: 1rem 0 0; font-size: .8rem; color: var(--muted); line-height: 1.5; }

/* Ruled summary strip: a full border rather than the notices' left accent,
   with the label, name and facts on one wrapping baseline row. */
.applying-for {
    background: var(--fk-surface); border: 1px solid var(--border); border-radius: 0;
    padding: .85rem 1.1rem; margin-bottom: 1.5rem;
    display: flex; align-items: baseline; gap: 1.1rem; flex-wrap: wrap;
}
.applying-label {
    font-size: .7rem; font-weight: 800; letter-spacing: .07em;
    text-transform: uppercase; color: var(--muted);
}
.applying-for strong { font-size: 1.02rem; color: var(--navy); }
.applying-for .muted { font-size: .86rem; }

/* A field group's head: 2px ink rule under the group title, echoing
   .fk-section-head's page-level treatment at form scale. */
.form-section-head {
    display: flex; align-items: baseline; gap: .7rem;
    border-bottom: 2px solid var(--fk-rule-strong);
    padding-bottom: .5rem; margin: 1.75rem 0 1.15rem;
}
.form-section-head h2 { margin: 0; font-size: 1.3rem; }
.form-section-head:first-of-type { margin-top: 0; }

/* Ruled three-cell explainer, same rule-through-the-gap technique as
   .cards-3 — but a set of short facts about the signup rather than three
   separate offers, so the cell head is a small uppercase label, not a
   serif h2. Sits above the "Your details" head it precedes. */
.explain-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--fk-rule); border: 1px solid var(--fk-rule); margin-bottom: 1.5rem; }
.explain-card { background: var(--fk-surface); padding: 1.1rem 1.15rem; }
.explain-label { display: block; font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--fk-teal); }
.explain-card p { margin: .5rem 0 0; font-size: .875rem; line-height: 1.65; color: var(--fk-ink-soft); }

/* ---------- Apartment detail ---------- */
/* Same reserved, photo-less placeholder technique as .listing-photo (see the
   comment there and in VacancyCard.razor) at the larger scale this page
   needs. The frame stays position:relative so the LIHTC tag can sit as its
   sibling rather than nested inside the aria-hidden placeholder. */
.detail-photo-frame { position: relative; margin-top: 1.25rem; }
.detail-photo { height: 320px; background: var(--bg); border: 1px solid var(--fk-rule-light); }
.detail-photo-frame + .form-layout { margin-top: 2.25rem; }
.detail-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: .35rem 0 .3rem; }
.detail-head .listing-eyebrow { margin: 0; }
.detail-head .listing-address { margin: 0 0 1.5rem; }

/* ---------- Notices ---------- */
.notice {
    border: 1px solid var(--fk-rule); border-left: 3px solid var(--fk-blue-gray);
    background: var(--fk-surface); padding: 12px 16px;
}
.notice h1, .notice h2 { font-size: 1.25rem; margin-bottom: .55rem; }
.notice p { margin: 0 0 1rem; color: var(--text); line-height: 1.55; }
.notice p:last-child { margin-bottom: 0; }
.notice-ok { border-left: 3px solid var(--ok); background: var(--fk-signal-good-tint); }
.notice-info { border-left-color: var(--fk-teal); background: var(--fk-teal-wash); }
.notice-bad { border-left-color: var(--fk-danger-ink); background: var(--fk-danger-bg); color: var(--fk-danger-ink); }

/* AlertAction's confirm/unsubscribe result: a ruled card with a colour-coded
   top rule (teal for success, amber for an invalid link) rather than the
   centred .notice above. The heading and body copy already say which
   happened in words, so the rule reinforces that instead of being the only
   signal — colour is never the sole way to tell the two apart. */
.action-card {
    max-width: 42rem; margin: 2.5rem auto;
    border: 1px solid var(--fk-border-card); border-top: 3px solid var(--fk-blue-gray);
    background: var(--fk-surface); padding: 2.35rem 2.5rem;
}
.action-card h1 { font-size: clamp(1.7rem, 3vw, 2.125rem); line-height: 1.15; }
.action-card p { margin: .85rem 0 0; color: var(--fk-ink-soft); line-height: 1.7; max-width: 40rem; }
.action-card .hero-actions { margin-top: 1.6rem; }
.action-card-ok { border-top-color: var(--fk-teal); }
.action-card-bad { border-top-color: var(--fk-warn-border); }

.empty-state { text-align: center; padding: 2.5rem 1rem; }
.empty-state h2 { font-size: 1.3rem; margin-bottom: .5rem; }
.empty-state p { color: var(--muted); max-width: 34rem; margin: 0 auto 1.25rem; line-height: 1.55; }
.empty-state .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
/* Top row is the design's compact treatment: the equal-housing mark and
   statement plus the legal links. The LIHTC and reasonable-accommodation
   notices and the office contact details are compliance copy the design
   mock never carried but the page cannot drop — see EqualHousingFooter.razor
   — so they sit in a second, quieter row (.pub-footer-extra) beneath it. */
.pub-footer { background: var(--fk-paper); color: var(--fk-ink-900); border-top: var(--fk-rule-band); padding-top: 2rem; margin-top: auto; }
.pub-footer-inner {
    max-width: 1140px; margin: 0 auto; padding-inline: var(--pub-gutter);
    display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.pub-footer a { color: var(--fk-teal-500); }

.pub-footer-notice { flex: 1 1 420px; }
.eho { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; color: var(--fk-ink-900); }
.eho-mark { width: 30px; height: 30px; flex: 0 0 auto; }
.eho span { font-size: .82rem; letter-spacing: .02em; }
.pub-footer-statement { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--fk-ink-900); max-width: 62ch; }

.pub-footer-links { flex: 0 0 auto; display: flex; align-items: baseline; gap: 1.1rem; font-size: .8rem; color: var(--fk-muted); }

/* Second row: quieter and smaller than the row above, never absent. */
.pub-footer-extra {
    max-width: 1140px; margin: 1.5rem auto 0; padding: 1.25rem var(--pub-gutter) 1.5rem; border-top: 1px solid var(--fk-rule);
    display: flex; gap: 2rem; flex-wrap: wrap;
}
.pub-footer-brand { display: flex; gap: .65rem; flex: 1 1 260px; }
.pub-footer-logo { width: 34px; height: 34px; flex: 0 0 auto; }
.pub-footer-brand strong { display: block; color: var(--fk-ink-900); font-size: .88rem; }
.pub-footer-brand p { margin: .25rem 0 0; font-size: .78rem; line-height: 1.5; color: var(--fk-muted); }

.pub-footer-fineprint-group { flex: 2 1 420px; }
.pub-footer-fineprint-group p { margin: 0 0 .6rem; font-size: 12px; line-height: 1.6; color: var(--fk-muted); max-width: 62ch; }
.pub-footer-fineprint-group p:last-child { margin-bottom: 0; }

/* ---------- Enquiries page (staff) ---------- */
.status-select { padding: .28rem .5rem; border: 1px solid var(--border); border-radius: 0; font: inherit; }
.detail-cell { background: var(--fk-teal-050); }
.detail-cell strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: .2rem; }
.detail-cell p { margin: 0 0 .9rem; white-space: pre-wrap; }
.notes-box { width: 100%; padding: .5rem .65rem; border: 1px solid var(--border); border-radius: 0; font: inherit; }

@media (max-width: 900px) {
    .form-layout { grid-template-columns: 1fr; }
    .detail-photo { height: 220px; }
    .pub-footer-inner { flex-direction: column; }
    .band { padding-block: var(--fk-space-7); }
    .fk-poster { padding-block: var(--fk-space-7); }
    .pub-header-inner { justify-content: center; }
    .pub-nav { flex: 0 1 auto; justify-content: center; }
    .pub-nav-cta { margin-left: .35rem; }
    /* Single column: every row already sits inside .band-inner's own gutter, so
       drop the horizontal padding the desktop rule adds for the shared
       vertical rules and use the plain vertical rhythm the mobile mock
       shows instead. */
    .cards-3 { grid-template-columns: 1fr; }
    .info-card,
    .info-card:first-child,
    .info-card:last-child { padding: 1.15rem 0; }
    .explain-cards { grid-template-columns: 1fr; }
    .action-card { margin: 1.5rem 0; padding: 1.4rem 1.15rem; }
}

/* A building with nothing free still gets a pin: it shows where we operate.
   Muted and dotted so it reads as context rather than an offer. */
.map-pin-empty { background: var(--muted); opacity: .78; font-size: 1rem; }

/* ---------- Static map thumbnail (MapThumb.razor) ---------- */
/* A box of absolutely positioned tile images with pins on top. The tiles sit
   in their own layer so the grayscale filter (every image below the hero)
   never touches the pin or the attribution; the hero passes Colour and skips
   the filter. */
/* The frame holds the role="img" box and, beside it, the attribution link. */
.map-thumb-frame { position: relative; width: 100%; overflow: hidden; }
.map-thumb { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--bg); border-bottom: 1px solid var(--fk-rule-light); }
/* The fixed-size canvas the tile arithmetic was computed for, centred in
   whatever width the parent gives the box. */
.map-thumb-canvas { position: absolute; top: 0; left: 50%; transform: translateX(-50%); }
.map-thumb-tiles { position: absolute; inset: 0; }
.map-thumb-gray .map-thumb-tiles { filter: grayscale(1) contrast(1.04); }
.map-thumb-tile { position: absolute; width: 256px; height: 256px; display: block; max-width: none; }
/* The global photo rule (.hero-visual img, .fk-photo img) is (0,1,1) and would
   grayscale and resize the tiles wherever a MapThumb sits inside one; this is
   (0,2,0). The gray variant filters the .map-thumb-tiles layer instead. */
.map-thumb .map-thumb-tile { filter: none; max-width: none; height: 256px; }
/* The diamond is centred on its point and the label hangs below it, out of the
   wrapper's own height: a bottom-anchored wrapper that also held the label
   floated every diamond by the label's height above its town. */
.map-thumb-pin { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; z-index: 1; }
.map-thumb-pin .map-pin { transform: rotate(-45deg); }
/* The approximate variant: the wrapper carries .map-pin-empty for the tests
   and the vacancies map's existing rule would paint the whole wrapper muted,
   so reset it on the wrapper and apply the muted look to the dot only. */
.map-thumb-pin.map-pin-empty { background: none; opacity: 1; }
.map-thumb-pin.map-pin-empty .map-pin { background: var(--muted); opacity: .78; font-size: 1rem; }
.map-thumb-pin-label {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 8px;
    font-size: var(--fk-size-label); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--fk-ink); background: rgba(255, 255, 255, .85); padding: .1rem .35rem; white-space: nowrap;
}
.map-thumb-approx {
    position: absolute; top: .5rem; right: .5rem; z-index: 1;
    font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    color: var(--fk-ink); background: rgba(255, 255, 255, .9); padding: .15rem .4rem;
}
.map-thumb-attribution {
    position: absolute; right: 0; bottom: 0; z-index: 1;
    font-size: .62rem; line-height: 1.3; color: var(--fk-ink); background: rgba(255, 255, 255, .8); padding: 0 .3rem;
}
.map-thumb-attribution a { color: inherit; }

/* ---------- Home v2 bands ---------- */
.band-ground { background: var(--fk-ground); }
.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-visual .map-thumb-frame { max-width: 100%; }
/* No photograph and no geocoded town: the visual is not rendered at all, so the
   two-column grid would leave an empty column. */
.pub .hero.hero-solo { grid-template-columns: 1fr; }
.hero-visual img.hero-photo { filter: none; display: block; max-width: 100%; height: auto; }
.hero-door { margin: 1rem 0 0; font-size: var(--fk-size-label); letter-spacing: .04em; color: var(--fk-muted); }
.hero-door-link { font-weight: 700; color: var(--fk-teal); }

/* Four figures on one ruled row; Newsreader, tabular, so the columns line up
   whatever the digits. */
.stat-strip { padding-block: var(--fk-space-6); }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--fk-rule); margin: 0; }
/* The markup reads label then figure (a screen reader hears what the number
   is first); the design shows the figure above its label, so the cell is a
   reversed column. */
.stat-row > div { background: var(--fk-surface); padding: .35rem 1.25rem; display: flex; flex-direction: column-reverse; }
.stat-row > div:first-child { padding-left: 0; }
.stat-label { margin: 0; font-size: var(--fk-size-label); letter-spacing: .14em; text-transform: uppercase; color: var(--fk-muted); }
.stat-figure { margin: 0 0 .15rem; font-family: var(--fk-serif); font-size: 2.25rem; line-height: 1.05; font-variant-numeric: tabular-nums; color: var(--fk-ink-900); }

.product-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--fk-space-7); align-items: center; }
.product-figure { margin: 0; }
.product-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--fk-rule); filter: grayscale(1) contrast(1.04); }
.product-figure figcaption { margin: .4rem 0 0; font-size: var(--fk-size-label); color: var(--fk-muted); }
.product-copy h2 { font-family: var(--fk-serif); font-weight: 400; font-size: 1.75rem; margin: 0 0 .6rem; }
.product-copy p { color: var(--fk-ink-soft); line-height: 1.65; margin: 0 0 1rem; }

.trust-strip { padding-block: var(--fk-space-5); }
.trust-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--fk-space-5); align-items: center; }
.trust-row li { display: flex; align-items: center; gap: .55rem; font-size: .82rem; color: var(--fk-ink-900); }
.trust-mark { font-family: var(--fk-serif); font-size: 1.1rem; color: var(--fk-teal); letter-spacing: .02em; }

@media (max-width: 900px) {
    .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* Two columns: the left cell of each row sits on the gutter, like every
       other left edge on the page. */
    .stat-row > div:nth-child(odd) { padding-left: 0; }
    .product-inner { grid-template-columns: 1fr; }
    .trust-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phones: the 540px hero canvas is wider than the column, so the box clips it
   and Wilmington (x=100) falls off the left edge. Scale the canvas down about
   its top centre until all four towns fit, shrink the frame to match, and
   counter-scale the labels so they stay 11px. */
@media (max-width: 520px) {
    .hero-visual .map-thumb-frame { height: 272px !important; }
    .hero-visual .map-thumb-canvas { transform: translateX(-50%) scale(.68); transform-origin: 50% 0; }
    .hero-visual .map-thumb-pin-label { font-size: calc(var(--fk-size-label) / .68); }
}
