/* ══════════════════════════════════════════════════════════════
   ZoneScout — the zoning search page only (loaded by search.html alone, after styles.css and
   home.css). 9 Nov 2026: the page brought into the newer design of the homepage and the state
   hubs: one typeface, ink and greys, the one emerald accent, white space and hairlines, labels
   in sentence case, ONE pill shape for a verdict and colour only where it carries meaning.

   It restyles what styles.css lays out; the answer logic and its wording (the coverage contract:
   "not mapped" never reads as clear, every source named) are untouched in search.html.
   Classes new to this page are `sx-`; the hubs' own `hx-` pieces (crumbs, the search box) are
   reused from home.css rather than copied.
   ══════════════════════════════════════════════════════════════ */

#tab-search { background: #fff }
.sx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }

/* ── The page head ──────────────────────────────────────────── */
.sx-hero { padding: 36px 0 40px; border-bottom: 1px solid var(--border-light) }
.sx-h1 {
  margin-top: 28px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -.04em;
  color: var(--ink);
  max-width: 18ch;
  text-wrap: balance;
}
.sx-h1 span { color: var(--accent) }
.sx-sub { margin-top: 18px; font-size: 1.075rem; line-height: 1.6; color: var(--ink3); max-width: 46em }
.sx-search { margin-top: 28px; max-width: 680px }
.sx-search button:disabled { opacity: .5; cursor: not-allowed }
.sx-hero .limit-pill { margin-top: 12px }

/* The head never changes size during a search: anything above the map that moves when results
   land reads as the page jumping (owner, 9 Nov 2026). */

/* ── The property header ────────────────────────────────────── */
/* It opens once, as the first search starts, and then stays put. Opening rather than appearing:
   the one movement on the page is one the reader caused, and it eases rather than jumps. */
.sx-prop { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s cubic-bezier(.2,.7,.2,1) }
.sx-prop.on { grid-template-rows: 1fr }
.sx-prop > .sx-prop-in { width: 100%; min-height: 0; overflow: hidden; padding-top: 28px }
.sx-prop:not(.on) > .sx-prop-in { visibility: hidden; padding-top: 0 }
@media (prefers-reduced-motion: reduce) { .sx-prop { transition: none } }
.sx-prop-in { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px }
.sx-prop-id { min-width: 0; flex: 1 1 420px }
.sx-prop-id h2 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.2; color: var(--ink) }
.sx-prop-id p { margin-top: 4px; font-size: 15px; color: var(--ink3) }
.sx-prop-id p:empty { display: none }
.sx-prop-act { display: flex; flex-wrap: wrap; gap: 8px; min-height: 38px }
/* While the answer loads, the buttons keep their row (so it does not open up when they appear)
   and the council line is a quiet placeholder. */
.sx-loading .sx-prop-act { visibility: hidden }
.sx-loading .sx-prop-id p { color: var(--ink4) }
.sx-btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 14px;
  border-radius: 10px; border: 1px solid var(--border);
  background: #fff; color: var(--ink);
  font: 500 14px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: border-color .15s, background .15s, color .15s;
}
.sx-btn:hover { border-color: var(--ink3) }
.sx-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }
.sx-btn:disabled { opacity: .55; cursor: progress }
.sx-btn svg { flex: none; color: var(--ink3) }
.sx-btn-primary { background: var(--accent); border-color: var(--accent); color: #fff }
.sx-btn-primary svg { color: #fff }
.sx-btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover) }
.sx-btn[hidden] { display: none }
@media (max-width: 640px) {
  .sx-prop-act { width: 100% }
  .sx-btn { flex: 1 1 auto; justify-content: center }
}

/* ── The map, the lot and the panel ─────────────────────────── */
.content-area { padding-top: 22px }
.content-grid { gap: 24px }
.map-wrap { border-radius: 16px; box-shadow: none }

.lot-strip { border-radius: 16px; box-shadow: none; padding: 16px 18px }
.lot-strip-head { font-size: 14px; font-weight: 600; letter-spacing: -.01em; text-transform: none; color: var(--ink); margin-bottom: 12px }
.lot-strip-label { font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink3) }
.lot-strip-val { font-size: 18px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums }

.features-panel { border-radius: 16px; box-shadow: none }
.fp-sec, .zone-hero { padding: 20px 22px }
.fp-sec-label, .zh-label {
  font-size: 14px; font-weight: 600; letter-spacing: -.01em; text-transform: none; color: var(--ink);
  margin-bottom: 10px;
}
.fp-sec-label span { font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--ink3) }
.zh-tag { text-transform: none; letter-spacing: 0 }
.zh-name { letter-spacing: -.02em }

/* Overlays: the label plain, the answer quiet unless something is mapped; the reason for a gap
   stays on screen (the coverage contract) but reads as a note, not a wall. */
.overlay-row { padding: 10px 0; font-size: 14px }
.overlay-row-label { color: var(--ink); font-weight: 500 }
.overlay-yn { font-size: 13px }
.state-note {
  margin-top: 10px; padding: 11px 13px;
  border-radius: 10px; background: var(--paper); border: 0;
  font-size: 13.5px; line-height: 1.55; color: var(--ink2);
}

.fp-feedback { padding: 14px 22px 0; font-size: 13.5px }
.planning-disclaimer { padding: 8px 22px 20px; font-size: 12.5px; line-height: 1.55; color: var(--ink4) }

/* The empty and loading states: quieter. */
.fp-empty h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em }
.fp-empty-mark { background: var(--accent-light); color: var(--accent) }

/* ── Development applications ───────────────────────────────── */
.da-section { margin-top: 24px; border-radius: 16px; box-shadow: none; border: 1px solid var(--border) }
.da-head { padding: 16px 20px }
.da-head-title { font-size: 15px; font-weight: 600; letter-spacing: -.01em; text-transform: none; color: var(--ink) }
.da-toggle-btn { font-size: 14px; font-weight: 500; color: var(--accent); text-transform: none; letter-spacing: 0 }
.da-group { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; color: var(--ink) }

/* ── What can I do here? ────────────────────────────────────── */
.dev-analysis { padding-top: 56px }
.cando-head .dev-analysis-title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -.035em; line-height: 1.1 }
.cando-sub { margin-top: 10px; font-size: 1rem; color: var(--ink3) }
.cando-head { margin-bottom: 24px }
.dev-grid { gap: 14px }

/* One card shape: no coloured edge (the verdict pill says it), one hairline, room to breathe. */
.dev-item, .dev-item.g, .dev-item.r, .dev-item.a, .dev-item.p, .dev-item.n {
  border: 1px solid var(--border); border-left: 1px solid var(--border);
  border-radius: 16px; box-shadow: none; padding: 20px 22px;
}
.dev-item:hover { box-shadow: none; border-color: #cfd6d1 }
.dev-header { margin-bottom: 8px; gap: 12px; align-items: flex-start }
.dev-label { font-size: 16px; font-weight: 600; letter-spacing: -.015em }
/* The verdict, in the hubs' pill: sentence case, soft fill, no outline. */
.dev-status {
  display: inline-block; flex: none;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: lowercase;
  box-shadow: none;
}
.dev-status::first-letter { text-transform: uppercase }
.dev-status.g, .dev-status.p { background: rgba(13,122,86,.1); color: var(--accent-hover); box-shadow: none }
.dev-status.a { background: rgba(192,125,22,.12); color: #8a5208 }
.dev-status.r { background: rgba(195,54,54,.1); color: #a12a2a }
.dev-status.n { background: var(--paper); color: var(--ink3) }
.feas-head { font-size: 15px; line-height: 1.55; color: var(--ink2); margin-bottom: 10px }

/* The council's table: a plain line, not another chip. */
.feas-table { font-size: 14px; gap: 2px 6px; margin: 0 0 8px }
.feas-table-k { font-size: 14px; font-weight: 400; color: var(--ink3) }
.feas-table-k::after { content: ':' }
.feas-table-v, .feas-table .feas-table-v { padding: 0; border: 0; background: none; font-size: 14px; font-weight: 600 }
.feas-table-why { flex-basis: 100%; font-size: 13.5px; color: var(--ink3) }

/* What the answer rests on: always shown (it qualifies the verdict), but as quiet text. */
.feas-basis {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0; border: 0; background: none;
  font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink3);
}
.feas-basis::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ink4) }
.feas-more > summary { font-size: 13.5px; font-weight: 500; color: var(--accent) }
/* The one line naming anything not fully checked, under the cards. */
.feas-gaps { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 8px; margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--ink2) }
.feas-gaps-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); transform: translateY(-1px) }
/* What the land carries, inside each card's workings. */
.feas-land { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-light) }
.feas-land > span { display: block; margin-bottom: 4px; font-size: 13.5px; font-weight: 600; color: var(--ink) }
.feas-land p { font-size: 13.5px; line-height: 1.55; color: var(--ink2) }
.feas-land p + p { margin-top: 6px }

/* "Applies to this property": one calm list. A gap is said in words with an amber dot, not
   painted orange. */
.cando .feas-prop, .cando .feas-split { border: 1px solid var(--border); border-radius: 16px; background: #fff; padding: 18px 22px 8px }
.cando .feas-prop > span, .cando .feas-split > span {
  display: block; margin-bottom: 4px;
  font-size: 15px; font-weight: 600; letter-spacing: -.01em; text-transform: none; color: var(--ink);
}
.cando .feas-prop .prop-row > summary { padding: 11px 0 }
/* One chevron for everything that opens, drawn rather than a ▾ glyph (which set as a dot). */
.cando .feas-prop .prop-row > summary::after, .cando-all > summary::after {
  content: ''; width: 7px; height: 7px; margin: 0 4px 3px auto;
  border-right: 1.5px solid var(--ink3); border-bottom: 1.5px solid var(--ink3);
  transform: rotate(45deg); transition: transform .15s; font-size: 0;
}
.cando .feas-prop .prop-row[open] > summary::after, .cando-all[open] > summary::after { transform: rotate(225deg); margin-bottom: -2px }
.prop-k { font-size: 14.5px; font-weight: 500; color: var(--ink) }
.prop-v, .prop-row.gap .prop-v { font-size: 14px; color: var(--ink3) }
.prop-row.gap .prop-v::before {
  content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%;
  background: var(--amber); vertical-align: 1px;
}
.cando .feas-lead, .cando .feas-rev { font-size: 13.5px; color: var(--ink3) }
.cando .feas-lead { margin-top: 6px }

/* Planning something else? — the hubs' search box. */
.cando .lu-ask { margin-top: 28px; padding: 22px; border: 1px solid var(--border); border-radius: 16px; background: #fff }
.cando .lu-ask .cando-ask-label { font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--ink) }
.cando .lu-ask-row input { height: 48px; padding: 0 16px; border-radius: 12px; font-size: 15px }
.cando .lu-ask-note { font-size: 13px; color: var(--ink3) }

/* Everything the zone allows. */
.cando .lu-section { margin-top: 14px }
.cando-all { border-color: var(--border); box-shadow: none }
.cando-all-title { font-size: 15px; font-weight: 600; letter-spacing: -.01em }
.lu-basis { padding: 0; border: 0; background: none; font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink3) }

.cando-cta { border-top: 1px solid var(--border-light); padding-top: 28px }

.overlay-yn { text-align: left }
.da-toggle-btn { white-space: nowrap }

/* ── Phones ─────────────────────────────────────────────────── */
@media (max-width: 560px) {
  /* The lot's figures in an even three-up grid: the desktop's dividing rules, wrapped onto
     two rows, set the second row's figures off at odd indents. */
  .lot-strip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px }
  .lot-strip-item, .lot-strip-item:first-child { padding: 0 8px 0 0; border-left: 0 }
  /* A long overlay answer takes the full width under its label, not a squeezed two-line pill. */
  .overlay-row { flex-wrap: wrap; gap: 6px }
  .overlay-yn { flex: 0 1 auto; border-radius: 10px }
  .sx-hero { padding: 24px 0 28px }
  .sx-h1 { margin-top: 18px }
  .sx-prop { padding-top: 22px }
  .fp-sec, .zone-hero { padding: 18px }
  .dev-item, .dev-item.g, .dev-item.r, .dev-item.a, .dev-item.p, .dev-item.n { padding: 18px }
}

/* ══ The printed report (#reportDoc, built by buildReport()) ═════════════════
   9 Nov 2026: a planning summary in the same design as the page: Geist only (the serif is
   gone), a white masthead on a hairline, sentence-case labels, plain-case names, figures without
   boxes, colour only where a constraint is mapped. Sizes stay small: this is A4 at 96 dpi. */
.report { --serif: var(--sans) }
.rpt-mast { background: #fff; color: var(--ink); padding: 22px 46px 14px; border-bottom: 1px solid var(--border) }
.rpt-brand-name { font-size: 16px; font-weight: 600; letter-spacing: -.02em; color: var(--ink) }
.rpt-brand-name b { font-weight: 600; color: var(--accent) }
.rpt-mast-title { font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--ink) }
.rpt-mast-sub { color: var(--ink3) }

.rpt-eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink3) }
.rpt-sec {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 18px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--border);
  font-size: 13px; font-weight: 600; letter-spacing: -.01em; color: var(--ink);
}
.rpt-sec span { font-size: 9.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink3) }

.rpt-addr h1 { font-size: 22px; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; color: var(--ink) }
.rpt-addr p { font-size: 11px; color: var(--ink3); margin-top: 3px }

/* Zoning: a code chip in outline, the name in ink, the scheme beneath. No tinted band. */
.rpt-zone { margin-top: 14px; padding: 0; background: none; border: 0; border-radius: 0; gap: 12px; align-items: center }
.rpt-zone-code {
  background: none; color: var(--ink); border: 1.5px solid var(--ink);
  font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  padding: 6px 10px; border-radius: 8px; min-width: 0;
}
.rpt-zone-name { font-size: 16px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25 }
.rpt-zone-scheme { font-size: 10.5px }
.rpt-zone.is-split { padding: 12px 0 0 }
.rpt-zpart { background: #fff; border: 1px solid var(--border-light); border-radius: 8px }
.rpt-zpart-name { font-size: 12.5px; font-weight: 600 }

/* The lot: figures in a row, labels above, no boxes. */
.rpt-lot { gap: 10px 14px }
.rpt-lot-item { background: none; border: 0; border-radius: 0; padding: 0 }
.rpt-lot-label { font-size: 9.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink3) }
.rpt-lot-val { font-size: 15px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums }
.rpt-dl-row { border-bottom: 1px solid var(--border-light) }
.rpt-dl-k { font-size: 10.5px; color: var(--ink2) }
.rpt-dl-v { font-size: 11.5px; font-weight: 600 }
.rpt-dl-v.muted { font-size: 10px; font-weight: 400; font-style: normal; color: var(--ink3) }
.rpt-map { border-radius: 8px }

/* Overlays: white cards; a mapped constraint keeps its colour, a clear check reads in ink, a
   gap in amber words. */
.rpt-ovl-card, .rpt-ovl-card.clear { background: #fff; border: 1px solid var(--border-light); border-radius: 8px }
.rpt-ovl-card .rpt-eyebrow { color: var(--ink3) }
.rpt-ovl-card.clear .rpt-ovl-state { color: var(--ink) }
.rpt-ovl-state { font-size: 12px }
.rpt-ovl-more { margin-top: 8px; font-size: 10px; line-height: 1.5; color: var(--ink2) }

/* Notes about the land, title and the closing line. */
.rpt-land p { font-size: 10.5px; line-height: 1.55; color: var(--ink2) }
.rpt-land p + p { margin-top: 5px }
.rpt-notice { border-radius: 8px }
.rpt-table th { font-size: 9.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink3) }
.rpt-chip { font-size: 9.5px; font-weight: 600; letter-spacing: 0; text-transform: none }
.rpt-close { margin-top: 14px; font-size: 11px; color: var(--ink2) }
.rpt-close b { color: var(--accent) }
.rpt-disc { border-top-color: var(--border-light); color: var(--ink3) }
.rpt-foot { color: var(--ink4) }

/* What the zone permits: sentence-case headings, a calm answer box, the looked-up term marked
   in the accent rather than a highlighter. */
.rpt-lu-h { font-size: 10.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink) }
.rpt-lu-ans { border: 1px solid var(--border); border-radius: 8px }
.rpt-lu-term span { font-weight: 600; letter-spacing: 0; text-transform: none; border-radius: 999px }
.rpt-lu-terms li.hit { font-weight: 600; color: var(--accent-hover); background: var(--accent-light) }
