:root {
  --ink: #16150F;
  --ink-soft: #57534733;
  --paper: #F3EFE4;
  --paper-2: #EAE4D4;
  --lime: #CBF23C;
  --lime-deep: #A6CB1F;
  --coral: #FF4D2E;
  --card: #FBF9F2;
  --line: #16150F;
  --hard: 4px 4px 0 var(--ink);
  --radius: 14px;
  --maxw: 1180px;   /* one shared container width for every section */
  --gutter: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; max-width: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Syne", sans-serif; margin: 0; letter-spacing: -.01em; }
a { color: inherit; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px);
  transition: opacity .6s ease var(--d, 0s), transform .7s cubic-bezier(.2,.7,.2,1) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  /* Align nav content to the same column as every section. */
  padding-block: 14px;
  padding-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
  background: var(--ink); color: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.nav-mark { font-family: "Syne", sans-serif; font-weight: 800; font-size: 20px; letter-spacing: .02em; text-decoration: none; color: var(--paper); }
.nav-mark span { color: var(--lime); }
.nav-links { display: flex; align-items: center; gap: 20px; font-size: 14px; font-weight: 600; }
.nav-links a { text-decoration: none; color: var(--paper); }
.nav-links a:hover { color: var(--lime); }
.nav-cta { background: var(--lime); color: var(--ink) !important; padding: 8px 16px; border-radius: 999px; white-space: nowrap; }
.nav-cta:hover { background: var(--paper); }
.cta-short { display: none; }

/* ---------- Tag pill ---------- */
.tag-pill, .tag.light {
  display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; padding: 6px 12px; border-radius: 999px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--ink); color: var(--paper);
  padding: 104px 0 56px; overflow: hidden;
  min-height: 100svh; display: flex; align-items: center;
}
.hero-grain {
  position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background:
    radial-gradient(120% 80% at 85% -10%, rgba(203,242,60,.22), transparent 60%),
    radial-gradient(90% 70% at 0% 110%, rgba(255,77,46,.20), transparent 55%);
}
.hero-inner { position: relative; max-width: var(--maxw); margin: 0 auto; width: 100%; padding: 0 var(--gutter); }
.hero .tag {
  background: transparent; border: 1.5px solid rgba(243,239,228,.35); color: var(--paper);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: 7px 14px; border-radius: 999px; display: inline-block;
}
.hero-h1 {
  font-weight: 800; font-size: clamp(38px, 7.2vw, 104px); line-height: .94;
  margin: 18px 0 0; text-transform: uppercase;
}
.hero-h1 span { display: block; }
.hero-h1 .hl { color: var(--lime); }
.hero-sub {
  max-width: 600px; margin: 20px 0 0; font-size: clamp(15px, 1.7vw, 19px);
  line-height: 1.5; color: #D9D4C6;
}
.hero-cta { display: flex; align-items: center; gap: 16px; margin-top: 26px; flex-wrap: wrap; }
.hero-note { font-size: 13px; color: #A8A392; }

/* ---------- Big buttons ---------- */
/* Primary action = coral, so it reads as THE button against the lime headline. */
.btn-big {
  display: inline-block; background: var(--coral); color: #fff;
  font-family: "Syne", sans-serif; font-weight: 800; font-size: 18px;
  text-decoration: none; padding: 16px 30px; border-radius: 999px;
  border: 2px solid var(--ink); box-shadow: var(--hard);
  transition: transform .12s, box-shadow .12s, background .15s;
}
.btn-big:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.btn-big:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-big.lime { background: var(--lime); color: var(--ink); }

/* ---------- Ticker ---------- */
.ticker { background: var(--lime); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); overflow: hidden; padding: 12px 0; }
/* GPU-composited to stop Safari re-rasterising the text each frame (caused shimmer / unreadable words). */
.ticker-row { display: inline-flex; align-items: center; gap: 26px; white-space: nowrap; animation: marquee 34s linear infinite; will-change: transform; transform: translateZ(0); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.ticker-row span { font-family: "Syne", sans-serif; font-weight: 800; font-size: 18px; text-transform: uppercase; letter-spacing: .02em; color: var(--ink); -webkit-transform: translateZ(0); transform: translateZ(0); }
.ticker-row .dot { font-size: 10px; color: var(--coral); }
@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@media (prefers-reduced-motion: reduce) { .ticker-row { animation: none; } }

/* ---------- How it works ---------- */
.how { max-width: var(--maxw); margin: 0 auto; padding: 84px var(--gutter) 40px; }
.section-kicker { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--coral); margin-bottom: 26px; font-family: "Space Grotesk", sans-serif; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--hard); padding: 24px 22px 26px; }
.step-no { font-family: "Syne", sans-serif; font-weight: 800; font-size: 40px; color: var(--lime-deep); -webkit-text-stroke: 1px var(--ink); }
.step h3 { font-size: 22px; font-weight: 700; margin: 10px 0 8px; line-height: 1.1; }
.step p { font-size: 15px; line-height: 1.55; color: #4a463b; margin: 0; }

/* ---------- Finder ---------- */
.finder { max-width: var(--maxw); margin: 0 auto; padding: 60px var(--gutter) 40px; }
.finder-head { margin-bottom: 22px; }
.finder-head h2 { font-size: clamp(30px, 5vw, 52px); font-weight: 800; text-transform: uppercase; line-height: .98; }
.finder-head p { font-size: 15px; color: #4a463b; margin: 10px 0 0; max-width: 60ch; }
.finder-head b { color: var(--ink); }

.app {
  display: grid; grid-template-columns: minmax(360px, 460px) 1fr;
  height: 78vh; min-height: 560px;
  border: 2px solid var(--ink); border-radius: 18px; overflow: hidden; box-shadow: var(--hard);
}

/* ---------- Panel ---------- */
.panel { display: flex; flex-direction: column; padding: 22px 22px 0; overflow-y: auto; background: var(--paper); border-right: 2px solid var(--ink); }

.ask-label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin-bottom: 8px; }
.ask-input {
  width: 100%; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--card);
  padding: 13px 15px; font: inherit; font-size: 15px; line-height: 1.5; color: var(--ink); resize: vertical;
}
.ask-input:focus { outline: none; box-shadow: var(--hard); }
.ask-input::placeholder { color: #9a9482; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 16px; }
.chip { border: 2px solid var(--ink); background: transparent; color: var(--ink); border-radius: 999px; padding: 6px 13px; font: inherit; font-weight: 600; font-size: 12.5px; cursor: pointer; transition: all .12s; }
.chip:hover { background: var(--lime); }
.chip.on { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.chip.on:hover { background: var(--ink); }

.ask-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.postcode-input { flex: 1 1 130px; min-width: 120px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); padding: 9px 15px; font: inherit; font-size: 13.5px; color: var(--ink); }
.postcode-input:focus { outline: none; box-shadow: 3px 3px 0 var(--ink); }
.postcode-input::placeholder { color: #9a9482; }
.btn-primary { background: var(--ink); color: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: 11px 20px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; transition: all .12s; }
.btn-primary:hover { background: var(--lime); color: var(--ink); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: transparent; border: 2px solid var(--ink); color: var(--ink); border-radius: 999px; padding: 9px 14px; font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; transition: all .12s; }
.btn-ghost:hover { background: var(--lime); }
.btn-ghost.active { background: var(--ink); color: var(--lime); }

.toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; margin-left: auto; }
.toggle input { accent-color: var(--coral); width: 15px; height: 15px; }

.engine-note { font-size: 12px; color: #4a463b; margin: 10px 0 4px; }
.engine-note b { color: var(--coral); }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 2px solid var(--ink); }
.filter-group { display: inline-flex; align-items: center; gap: 6px; }
.filter-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #4a463b; }
.fchip { border: 2px solid var(--ink); background: transparent; color: var(--ink); border-radius: 8px; padding: 4px 10px; font: inherit; font-weight: 600; font-size: 12.5px; cursor: pointer; transition: all .12s; }
.fchip:hover { background: var(--paper-2); }
.fchip.on { background: var(--ink); color: var(--lime); }
.fcount { display: inline-block; margin-left: 5px; font-size: 11px; font-weight: 700; opacity: .55; }
.fchip.on .fcount { opacity: .8; }
.fchip.off { opacity: .34; cursor: not-allowed; text-decoration: line-through; }
.fchip.off:hover { background: transparent; }
.fclear { border: none; background: transparent; color: var(--coral); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; margin-left: auto; }
.fclear:hover { text-decoration: underline; }

/* ---------- Capture ---------- */
.capture { margin-top: 16px; padding: 16px; border-radius: var(--radius); background: var(--lime); border: 2px solid var(--ink); }
.capture-head { font-family: "Syne", sans-serif; font-size: 17px; font-weight: 800; margin-bottom: 10px; }
.capture-row { display: flex; gap: 8px; flex-wrap: wrap; }
.capture-row input { flex: 1; min-width: 120px; border: 2px solid var(--ink); border-radius: 10px; background: var(--card); padding: 10px 12px; font: inherit; font-size: 14px; color: var(--ink); }
.capture-row input:focus { outline: none; box-shadow: 3px 3px 0 var(--ink); }
.capture-row .btn-primary { flex: 0 0 auto; }
.capture-consent { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 4px; font-size: 12.5px; line-height: 1.4; color: #3a372e; cursor: pointer; }
.capture-consent input { margin-top: 1px; width: 15px; height: 15px; accent-color: var(--coral); flex: 0 0 auto; }
.capture-fine { font-size: 11.5px; color: #3a372e; margin: 6px 0 0; }
.capture-fine a { color: var(--ink); font-weight: 600; }
.capture-done { font-family: "Syne", sans-serif; font-size: 15px; font-weight: 800; color: var(--ink); padding: 6px 0; }

/* ---------- Results ---------- */
.results { margin-top: 16px; flex: 1; display: flex; flex-direction: column; gap: 14px; }
.results-head { font-size: 12.5px; font-weight: 600; color: #4a463b; padding-bottom: 4px; border-bottom: 2px solid var(--ink); display: flex; justify-content: space-between; align-items: baseline; }
.results-head b { color: var(--ink); font-weight: 700; }

/* Sort control — makes the ranking explicit instead of a hidden blend. */
.sort-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: -4px 0 2px; }
.sort-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #4a463b; margin-right: 2px; }
.sortchip {
  border: 2px solid var(--ink); background: transparent; color: var(--ink);
  border-radius: 999px; padding: 4px 11px; font: inherit; font-weight: 600; font-size: 12.5px;
  cursor: pointer; transition: all .12s;
}
.sortchip:hover { background: var(--paper-2); }
.sortchip.on { background: var(--ink); color: var(--lime); }
.sort-hint { flex: 1 1 100%; font-size: 11.5px; color: #6b6555; line-height: 1.35; }

.empty { text-align: center; padding: 40px 10px; color: #4a463b; }
.empty p { margin: 4px 0; }
.empty-sub { font-size: 13px; color: #9a9482; }

.card { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); padding: 16px 16px 14px; box-shadow: var(--hard); cursor: pointer; transition: transform .12s, box-shadow .12s; position: relative; }
.card:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.card.active { box-shadow: 6px 6px 0 var(--coral); }
.card-rank { position: absolute; top: -11px; left: 14px; background: var(--coral); color: var(--paper); font-family: "Syne", sans-serif; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 2px 10px; border: 2px solid var(--ink); }
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.card-name { font-family: "Syne", sans-serif; font-size: 20px; font-weight: 700; line-height: 1.1; margin: 2px 0 0; }
.card-area { font-size: 12.5px; color: #4a463b; margin-top: 3px; }
.card-dist { font-size: 12px; font-weight: 700; color: var(--ink); white-space: nowrap; }

.card-why { font-size: 13.5px; line-height: 1.5; color: var(--ink); margin: 10px 0 10px; padding-left: 10px; border-left: 3px solid var(--lime); }

.card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tag { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--paper-2); color: #3a372e; border: 1.5px solid var(--ink); }
.tag.mod { background: var(--lime); color: var(--ink); }
.tag.price { background: var(--ink); color: var(--paper); }
.tag.open { background: var(--coral); color: var(--paper); border-color: var(--ink); }

.card-actions { display: flex; gap: 8px; }
.card-actions a { flex: 1; text-align: center; text-decoration: none; font-size: 12.5px; font-weight: 700; padding: 9px 10px; border-radius: 10px; border: 2px solid var(--ink); transition: all .12s; }
.reach { background: var(--ink); color: var(--paper); }
.reach:hover { background: var(--lime); color: var(--ink); }
.info { background: transparent; color: var(--ink); }
.info:hover { background: var(--paper-2); }

.foot { font-size: 11px; color: #9a9482; padding: 18px 0 20px; text-align: center; }

/* ---------- Site footer ---------- */
.site-foot { background: var(--ink); color: var(--paper); border-top: 2px solid var(--ink); }
.site-foot-inner { max-width: var(--maxw); margin: 0 auto; padding: 52px var(--gutter) 44px; }
.site-foot-top { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.site-foot-mark { font-family: "Syne", sans-serif; font-weight: 800; font-size: 21px; letter-spacing: .02em; text-decoration: none; color: var(--paper); }
.site-foot-mark span { color: var(--lime); }
.site-foot-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.site-foot-links a { text-decoration: none; color: #C7C2B2; font-size: 14px; font-weight: 500; transition: color .15s ease; }
.site-foot-links a:hover { color: var(--lime); }
.site-foot-note { margin: 28px 0 0; max-width: 580px; font-size: 12.5px; line-height: 1.55; color: #8f8a7b; }
.site-foot-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; align-items: center; margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(243,239,228,.13); font-size: 12px; color: #7d7869; }
.site-foot-ver { font-variant-numeric: tabular-nums; letter-spacing: .03em; color: #b4af9f; }
.site-foot-ver:empty { display: none; }
.site-foot-ver::before { content: "●"; color: var(--lime-deep); font-size: 7px; vertical-align: middle; margin-right: 7px; position: relative; top: -1px; }
@media (max-width: 560px) {
  .site-foot-inner { padding: 40px var(--gutter) 36px; }
  .site-foot-top { gap: 16px; }
}

/* ---------- Map ---------- */
.map-wrap { position: relative; }
#map { height: 100%; width: 100%; background: var(--paper-2); }
.map-badge { position: absolute; top: 16px; left: 16px; z-index: 500; background: var(--ink); color: var(--paper); border-radius: 999px; padding: 6px 14px; font-size: 12.5px; font-weight: 700; }
.pin { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--ink); border: 2px solid var(--paper); display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(0,0,0,.3); }
.pin span { transform: rotate(45deg); color: var(--lime); font-size: 12px; font-weight: 700; }
.pin.top { background: var(--coral); width: 36px; height: 36px; }
.pin.top span { color: var(--paper); }
.pin.dim { background: #8f8a79; opacity: .85; }
.pin.dim span { color: var(--paper); }
.leaflet-popup-content-wrapper { border-radius: 12px; border: 2px solid var(--ink); }
.leaflet-popup-content { font-family: "Space Grotesk", sans-serif; margin: 12px 14px; }
.pop-name { font-family: "Syne", sans-serif; font-size: 16px; font-weight: 700; }
.pop-area { font-size: 12px; color: #4a463b; margin: 2px 0 6px; }
.pop-why { font-size: 12.5px; line-height: 1.45; }

/* ---------- Detail modal ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(22,21,15,.55); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 24px; animation: fade .15s ease; }
.modal-overlay[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { position: relative; width: min(520px, 100%); max-height: 88vh; overflow-y: auto; background: var(--card); border: 2px solid var(--ink); border-radius: 18px; padding: 30px 28px 26px; box-shadow: 8px 8px 0 var(--ink); animation: pop .18s ease; }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close { position: absolute; top: 14px; right: 16px; border: none; background: transparent; font-size: 28px; line-height: 1; color: var(--ink); cursor: pointer; }
.d-eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--coral); font-weight: 700; }
.d-name { font-family: "Syne", sans-serif; font-size: 28px; font-weight: 800; margin: 4px 0 2px; line-height: 1.05; }
.d-area { margin-bottom: 12px; }
.d-addr { font-size: 13px; color: #4a463b; margin: 0 0 14px; }
.d-blurb { font-size: 14.5px; line-height: 1.6; margin: 0 0 16px; }
.d-highlight { background: var(--lime); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; line-height: 1.5; color: var(--ink); margin-bottom: 18px; border: 2px solid var(--ink); }
.d-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-bottom: 18px; }
.d-cell .k { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #9a9482; font-weight: 600; }
.d-cell .v { font-size: 14px; color: var(--ink); margin-top: 2px; font-weight: 500; }
.d-section-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--coral); margin: 0 0 8px; }
.d-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.d-reviews { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.d-review { margin: 0; padding: 10px 12px; background: var(--paper); border-radius: 10px; border: 1.5px solid var(--ink); font-size: 13px; line-height: 1.5; color: #3a372e; }
.d-review-star { color: var(--coral); font-weight: 700; }
.d-outreach { border: 2px solid var(--ink); border-radius: 12px; padding: 14px; margin-bottom: 16px; background: var(--paper); }
.d-outreach textarea { width: 100%; border: none; background: transparent; resize: vertical; font: inherit; font-size: 13.5px; line-height: 1.55; color: var(--ink); min-height: 120px; }
.d-outreach textarea:focus { outline: none; }
.d-copy { margin-top: 8px; border: 2px solid var(--ink); background: transparent; color: var(--ink); border-radius: 8px; padding: 7px 12px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: all .12s; }
.d-copy:hover, .d-copy.done { background: var(--ink); color: var(--lime); }
.d-actions { display: flex; gap: 10px; }
.d-actions a { flex: 1; text-align: center; text-decoration: none; font-size: 13.5px; font-weight: 700; padding: 12px; border-radius: 12px; border: 2px solid var(--ink); transition: all .12s; }
.no-match { text-align: center; padding: 28px 10px; color: #4a463b; font-size: 14px; }
.no-match button { margin-top: 8px; }

.spinner { display: inline-block; width: 14px; height: 14px; margin-right: 6px; border: 2px solid rgba(243,239,228,.4); border-top-color: var(--paper); border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Showcase ---------- */
.showcase { background: var(--coral); color: var(--paper); border-top: 2px solid var(--ink); margin-top: 50px; padding: 90px 0; }
.showcase-inner { max-width: var(--maxw); margin: 0 auto; text-align: center; padding: 0 var(--gutter); }
.showcase .tag.light { background: rgba(22,21,15,.18); color: var(--paper); }
.showcase-h2 { font-size: clamp(34px, 7vw, 88px); font-weight: 800; text-transform: uppercase; line-height: .95; margin: 20px 0 0; }
.showcase-p { max-width: 620px; margin: 22px auto 0; font-size: clamp(15px,2vw,19px); line-height: 1.55; color: #FFE7E0; }
.showcase .btn-big { margin-top: 32px; }
.showcase-foot { display: flex; flex-direction: column; gap: 4px; margin-top: 40px; font-size: 13px; color: #FFE0D8; }
.showcase-foot a { font-weight: 700; color: var(--paper); }

/* ---------- Guides (articles) ---------- */
.guide-wrap { max-width: 760px; margin: 0 auto; padding: 120px var(--gutter) 40px; }
.guide-back { display: inline-block; font-size: 13px; font-weight: 600; color: var(--coral); text-decoration: none; margin-bottom: 18px; }
.guide-back:hover { text-decoration: underline; }
.guide-h1 { font-size: clamp(32px, 5.4vw, 56px); font-weight: 800; line-height: 1.02; text-transform: uppercase; }
.guide-meta { font-size: 12.5px; color: #6b6555; margin: 14px 0 26px; }
.guide-answer {
  background: var(--lime); border: 2px solid var(--ink); border-radius: 14px;
  padding: 18px 20px; font-size: 16px; line-height: 1.55; margin-bottom: 30px; box-shadow: var(--hard);
}
.guide-answer b { font-weight: 700; }
.guide-body { font-size: 16.5px; line-height: 1.65; color: #26241c; }
.guide-body h2 { font-size: clamp(22px, 3.2vw, 30px); font-weight: 800; margin: 38px 0 12px; line-height: 1.12; }
.guide-body h3 { font-size: 18px; font-weight: 700; margin: 26px 0 8px; font-family: "Space Grotesk", sans-serif; }
.guide-body p { margin: 0 0 16px; }
.guide-body ul, .guide-body ol { margin: 0 0 18px; padding-left: 22px; }
.guide-body li { margin-bottom: 8px; }
.guide-body a { color: var(--ink); text-decoration-color: var(--coral); text-underline-offset: 3px; }
.guide-table { width: 100%; border-collapse: collapse; margin: 8px 0 22px; font-size: 15px; }
.guide-table th, .guide-table td { border: 2px solid var(--ink); padding: 9px 12px; text-align: left; }
.guide-table th { background: var(--ink); color: var(--paper); font-weight: 700; font-size: 13.5px; text-transform: uppercase; letter-spacing: .04em; }
.guide-note { background: var(--card); border: 2px solid var(--ink); border-radius: 12px; padding: 14px 16px; font-size: 14.5px; line-height: 1.55; margin: 0 0 22px; }
.guide-cta {
  background: var(--ink); color: var(--paper); border-radius: 18px; padding: 30px 26px;
  margin: 44px 0 10px; text-align: center;
}
.guide-cta h3 { font-family: "Syne", sans-serif; font-size: clamp(22px,3.4vw,30px); font-weight: 800; text-transform: uppercase; margin: 0 0 8px; line-height: 1.1; }
.guide-cta p { font-size: 14.5px; color: #D9D4C6; margin: 0 0 18px; }
.guide-next { border-top: 2px solid var(--ink); margin-top: 40px; padding-top: 22px; }
.guide-next h4 { font-family: "Space Grotesk", sans-serif; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--coral); margin: 0 0 12px; }
.guide-next ul { list-style: none; padding: 0; margin: 0; }
.guide-next li { margin-bottom: 8px; }
.guide-next a { font-weight: 600; font-size: 15px; }

/* Guides hub */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 8px; }
.hub-card { display: block; background: var(--card); border: 2px solid var(--ink); border-radius: 14px; padding: 20px; box-shadow: var(--hard); text-decoration: none; transition: transform .12s, box-shadow .12s; }
.hub-card:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.hub-card h3 { font-size: 19px; font-weight: 700; line-height: 1.18; margin: 0 0 8px; }
.hub-card p { font-size: 14px; line-height: 1.5; color: #4a463b; margin: 0; }
.hub-heading { font-size: clamp(22px, 3.2vw, 32px); font-weight: 800; text-transform: uppercase; line-height: 1.05; margin: 46px 0 4px; }
.hub-consumer { margin-top: 26px; font-size: 14px; color: #6b6555; }
.hub-consumer a { color: var(--ink); font-weight: 600; text-decoration-color: var(--coral); text-underline-offset: 3px; }

/* ---------- Cookie banner ---------- */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1200;
  max-width: 640px; margin: 0 auto;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--ink); color: var(--paper);
  border: 2px solid var(--ink); border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.35);
  padding: 14px 16px;
}
.cookie-text { font-size: 13px; line-height: 1.45; flex: 1 1 240px; color: #D9D4C6; }
.cookie-text a { color: var(--lime); font-weight: 600; }
.cookie-actions { display: flex; gap: 8px; margin-left: auto; }
.cookie-decline { background: transparent; border: 2px solid rgba(243,239,228,.4); color: var(--paper); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.cookie-decline:hover { border-color: var(--paper); }
.cookie-accept { background: var(--lime); border: 2px solid var(--lime); color: var(--ink); border-radius: 999px; padding: 8px 18px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.cookie-accept:hover { background: var(--paper); border-color: var(--paper); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  :root { --gutter: 18px; }
  .nav { padding-block: 11px; }
  .hero { padding: 96px 0 52px; }
  .showcase { padding: 64px 0; }
  .nav-mark { font-size: 13px; white-space: nowrap; letter-spacing: .01em; }
  .nav-cta { padding: 7px 14px; font-size: 13px; }
  .cta-full { display: none; }
  .cta-short { display: inline; }
  .nav-links a:not(.nav-cta) { display: none; }
  .steps { grid-template-columns: 1fr; }

  /* The finder must read as part of the page — not an embedded widget with its own
     scrollbar. Drop the frame, let the panel flow, and give the map its own block. */
  .app {
    grid-template-columns: 1fr; height: auto; min-height: 0;
    border: none; border-radius: 0; box-shadow: none; overflow: visible;
  }
  .panel {
    border-right: none; max-height: none; overflow: visible; padding: 0;
  }
  .map-wrap {
    height: 320px; margin-top: 22px;
    border: 2px solid var(--ink); border-radius: 14px; overflow: hidden;
  }

  .hero { min-height: 0; }
  .how { padding-top: 60px; }

  /* Controls stack cleanly instead of cramming three items on one line. */
  .postcode-input { flex: 1 1 100%; }
  .ask-controls .btn-ghost, .ask-controls .btn-primary { flex: 1 1 auto; }
  .capture-row input { flex: 1 1 100%; }
  .capture-row .btn-primary { flex: 1 1 100%; }
  .card-actions { flex-wrap: wrap; }

  /* Cookie bar: stack so nothing sits half off-screen. */
  .cookie-bar { left: 10px; right: 10px; bottom: 10px; padding: 14px; gap: 10px; }
  .cookie-actions { margin-left: 0; width: 100%; }
  .cookie-actions button { flex: 1 1 auto; }
}
