/* rd-hp-light.css - the look of every /house-prices page on the light design (hp-light stream, 18 Nov 2026).
   Linked ONLY by propertyPagesService.shell(), after css/redesign.css, on <body class="rd hpl">. It replaces the old
   dark css/house-prices.css, which no page loads any more.

   Decisions (owner, 14 Nov 2026, as css/redesign.css): light theme; Inter only; ink #051036 for headings and figures,
   text #1F2A44, helper #5B6780, ONE action colour #0B6FA4, sky #1B95D1 for charts only, gold only in the logo.
   Corners 8 (inputs, buttons) and 10 (cards). No gradients, no glow, no shadows on cards.

   Phone first: the answer ("what is a home worth here") is the first thing under the heading, and the rules for a
   narrow screen are the ones written first. Rules that keep the section honest are unchanged from the dark version:
   colour never encodes good or bad (no green or red for a change; a change is ink with a sign), and "too few sales"
   and "still registering" are HATCHED, a texture and never a colour that could be read as a value.

   The charts are drawn by js/house-price-charts.js with fixed dark-theme colours (the embeddable charts keep them);
   the attribute rules at the end of the chart section re-colour those drawings here, so the same drawing code serves
   both. Inter only: the chart text inherits it. */

:root { --hp-text: var(--font); --hp-display: var(--font); }

/* --- Page frame --------------------------------------------------------- */
.hp { max-width: 1120px; margin: 0 auto; padding: 0 16px 8px; font-size: 16px; line-height: 1.55; color: var(--text); container-type: inline-size; }
.hp h1 { font-size: 26px; line-height: 1.15; letter-spacing: -.02em; margin: 6px 0 8px; }
.hp h2 { font-size: 20px; line-height: 1.25; margin: 0 0 6px; }
.hp h3 { font-size: 16px; line-height: 1.3; }
.hp p { margin: 0 0 10px; }
.hp a { color: var(--action); }
.hp a:hover { color: var(--action-dark); }
.hp [hidden] { display: none !important; }
.hp svg { max-width: 100%; }
html:not(.js) .jsonly { display: none !important; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted, .cap { color: var(--muted); }
.cap { font-size: 13px; line-height: 1.5; }
.sec { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.sec > header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 12px; }
.sec > header > * { min-width: 0; max-width: 100%; }
.sec > header p { margin: 0; max-width: 720px; }
.scrollx { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.crumbs { font-size: 13px; color: var(--muted); padding: 12px 0 0; margin: 0; overflow-wrap: anywhere; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span { margin: 0 5px; color: var(--muted); }

/* --- Buttons: the filled one is the action; the rest are outlines ---------- */
.hp .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; box-sizing: border-box; min-height: 44px; padding: 0 16px; border-radius: var(--r-input); border: 1px solid var(--action); background: var(--action); color: #fff; font: 600 15px/1.2 var(--font); text-decoration: none; cursor: pointer; text-align: center; }
.hp .btn:hover { background: var(--action-dark); border-color: var(--action-dark); color: #fff; }
.hp .btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.hp .btn-ghost:hover { background: #fff; border-color: var(--muted); color: var(--ink); }
.hp .btn[disabled] { opacity: .6; cursor: default; }

/* --- Header ----------------------------------------------------------- */
.top { padding: 4px 0 0; }
.eyebrow { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 4px 0 0; }
.def { color: var(--muted); margin: 0 0 4px; max-width: 780px; font-size: 14px; line-height: 1.45; }
.stamps { display: block; margin: 10px 0 0; padding: 0; list-style: none; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.stamps li { display: inline; margin: 0; }
.stamps li:not(:last-child)::after { content: " ·"; margin: 0 4px 0 0; }
.lede { margin: 20px 0 0; max-width: 820px; }
.lede p { font-size: 16px; line-height: 1.6; color: var(--text); }
.lede p:first-child { color: var(--ink); }

/* --- Search and typeahead ----------------------------------------------- */
.srch { position: relative; max-width: 640px; margin: 12px 0 0; }
.sec .srch { margin-top: 0; }
.srch form { display: flex; gap: 8px; }
.srch input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: var(--r-input); border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font: 400 16px var(--font); }
.srch input::placeholder { color: var(--muted); }
.srch input:focus { outline: 3px solid rgba(27,149,209,.35); border-color: var(--action); }
.ta { position: absolute; left: 0; right: 0; top: 100%; margin: 6px 0 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); z-index: 30; box-shadow: 0 12px 28px rgba(5,16,54,.14); max-height: 360px; overflow: auto; }
.ta li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 12px; border-radius: var(--r-input); cursor: pointer; min-height: 40px; }
.ta li[aria-selected=true], .ta li:hover { background: var(--page); }
.ta small { color: var(--muted); font-size: 13px; white-space: nowrap; }

/* --- THE ANSWER: the first thing under the heading ------------------------ */
.ans { margin-top: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px 16px 12px; }
.ans h2 { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin: 0 0 4px; }
.ans-fig { margin: 0; display: block; }
.ans-fig b { display: block; font-size: 44px; line-height: 1.05; letter-spacing: -.03em; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.ans-fig b.few { font-size: 26px; color: var(--muted); }
.ans-fig span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.ans-move { margin: 12px 0 0; padding: 8px 12px; background: var(--tint); border: 1px solid var(--tint-line); border-radius: var(--r-input); font-size: 14px; line-height: 1.4; color: var(--text); }
.ans-move b { font-size: 18px; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; margin-right: 4px; }
.ans-move.none { background: var(--page); border-color: var(--line); color: var(--muted); }
.ans-facts { list-style: none; margin: 10px 0 0; padding: 0; font-size: 14px; line-height: 1.45; color: var(--text); }
.ans-facts li { margin: 0 0 3px; }
.ans-facts b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.ans-types { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ans-types li { background: var(--page); border-radius: var(--r-input); padding: 7px 10px; min-width: 0; }
.ans-types span { display: block; font-size: 12px; color: var(--muted); }
.ans-types b { display: block; font-size: 17px; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.ans-cap { margin: 10px 0 0; }
.ans .badge { margin-left: 4px; }

/* The estimate, set apart from the sold facts so it is never read as one. */
.est { margin-top: 12px; background: #fff; border: 1px dashed var(--line-strong); border-radius: var(--r-card); padding: 14px 16px; }
.est h2 { font-size: 20px; color: var(--ink); }
.est-tag { display: inline-block; margin: 2px 0 8px; padding: 3px 10px; border-radius: var(--r-input); line-height: 1.35; background: var(--warn-tint); color: var(--warn); font-size: 12.5px; font-weight: 600; }
.est.none { background: var(--page); border-style: solid; border-color: var(--line); }
.est.none h2 { font-size: 17px; color: var(--text); }
.est p { font-size: 14px; }

/* --- Calculators: prominent, straight under the answer ---------------------- */
.deal { margin-top: 16px; padding: 14px 16px; background: var(--tint); border: 1px solid var(--tint-line); border-radius: var(--r-card); }
.deal h2 { font-size: 18px; margin-bottom: 4px; }
.deal > p { font-size: 14px; }
.prostrip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; padding: 0; background: none; border: 0; }
.prostrip a { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 6px 10px; text-align: center; text-decoration: none; background: #fff; border: 1px solid var(--action); border-radius: var(--r-input); color: var(--action); font-weight: 600; font-size: 14px; line-height: 1.25; }
.prostrip a:hover { background: var(--action); color: #fff; }
.prostrip a:first-child { background: var(--action); color: #fff; }
.prostrip a:first-child:hover { background: var(--action-dark); }
.prostrip a:last-child:nth-child(odd) { grid-column: 1 / -1; }
.deal .guides { margin: 10px 0 0; }
.cta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0 0; }
.cta .btn { min-height: 46px; }
.deal .cta { margin-top: 10px; }
.deal .cta + .prostrip { margin-top: 8px; }
.deal .cta + .prostrip a:first-child { background: #fff; color: var(--action); }
.deal .cta + .prostrip a:first-child:hover { background: var(--action); color: #fff; }

/* --- Email alert box ------------------------------------------------------- */
.alertbox { margin-top: 16px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); }
.alertbox h2 { font-size: 18px; margin-bottom: 4px; }
.alertform { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 10px 0 0; }
.alertform input[type=email], .alertform select { width: 100%; height: 44px; box-sizing: border-box; border: 1px solid var(--line-strong); border-radius: var(--r-input); background: #fff; color: var(--ink); font: 400 16px var(--font); padding: 0 12px; }
.alertform input[type=email]:focus, .alertform select:focus { outline: 3px solid rgba(27,149,209,.35); border-color: var(--action); }
.alertform .alsel { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: -4px; }
.alertform .hpot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.alertform .btn { width: 100%; }
.alertcheck:empty { display: none; }
.alertmsg { margin: 0; min-height: 0; font-size: 14px; line-height: 1.4; }
.alertmsg:empty { display: none; }
.alertmsg.ok { color: var(--good); font-weight: 600; }
.alertmsg.bad { color: var(--bad); font-weight: 600; }
.alertbox .acct { margin: 12px 0 0; }
@media (min-width: 700px) {
  .alertform { grid-template-columns: minmax(0, 1fr) auto auto; align-items: start; }
  .alertform .alsel, .alertform select { grid-column: 1 / -1; }
  .alertform select { max-width: 240px; }
  .alertform .btn { width: auto; }
  .alertform .alertcheck, .alertform .alertmsg { grid-column: 1 / -1; }
}

/* --- Explore bar: buttons only, never links, never sticky --------------- */
.xb { display: grid; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 12px; margin: 12px 0 0; }
.xg { display: flex; align-items: center; gap: 10px; min-width: 0; }
.xl { flex: none; width: 56px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.xr { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; padding: 2px; }
.xr::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-strong); background: #fff; color: var(--text); font: 400 14px var(--font); cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--muted); color: var(--ink); }
.chip[aria-pressed=true] { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; }
.chip.vs { display: inline-flex; align-items: center; gap: 8px; padding-right: 6px; }
.chip.vs i { width: 10px; height: 10px; border-radius: 3px; }
.chip.vs b { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 600; }
.chip.vs b:hover { background: var(--page); }
.xa { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.xa .cap { margin-left: auto; }
.xnote { margin: 0; font-size: 13px; color: var(--warn); }
.addbox { position: relative; flex: 1; min-width: 200px; max-width: 320px; }
.addbox input { width: 100%; height: 40px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--action); background: #fff; color: var(--ink); font: inherit; font-size: 14px; }

/* --- Readout ------------------------------------------------------------ */
.ro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0 0; }
@container (min-width: 760px) { .ro { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
@container (min-width: 1000px) { .ro { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.tl { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 10px 12px; min-width: 0; }
.tk { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.tv { font-size: 24px; line-height: 1.2; font-weight: 600; color: var(--ink); margin: 4px 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.tl.mid .tv { font-size: 16px; line-height: 1.35; padding: 4px 0 2px; }
.tc { font-size: 12px; line-height: 1.4; color: var(--muted); }
.few { font-size: 15px; font-weight: 600; color: var(--muted); }
.cmp { width: 100%; border-collapse: collapse; font-size: 14px; margin: 14px 0 0; min-width: 640px; }
.cmp caption { text-align: left; font-size: 13px; color: var(--muted); padding: 0 0 8px; }
.cmp th, .cmp td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 400; }
.cmp th:first-child, .cmp thead th:first-child { text-align: left; }
.cmp thead th { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: 0; }

/* --- Charts --------------------------------------------------------------- */
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--font); font-size: 12px; }
.chart .lbl { font-weight: 600; }
.chart:focus-visible { outline: 3px solid rgba(27,149,209,.45); outline-offset: 4px; border-radius: 6px; }
.cw { position: relative; }
.cw .n { display: none; }
@media (max-width: 699px) { .cw .w { display: none; } .cw .n { display: block; } }
.duo { display: grid; gap: 28px; }
@container (min-width: 1000px) { .duo { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.bud { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 0 0; }
.bud label { font-size: 13px; color: var(--muted); }
.bud input[type=range] { flex: 1; min-width: 160px; height: 40px; accent-color: var(--action); background: none; }
.bud output { font: 600 15px var(--font); min-width: 88px; font-variant-numeric: tabular-nums; color: var(--ink); }
.bsent { margin: 10px 0 0; font-size: 15px; min-height: 1.6em; }
details.tbl { margin: 12px 0 0; }
details.tbl summary, .more { display: inline-flex; align-items: center; min-height: 40px; cursor: pointer; color: var(--action); font-size: 14px; font-weight: 600; }
.more { background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-input); padding: 0 16px; font-family: var(--font); margin: 12px 0 0; }
.more:hover { border-color: var(--muted); }
.dt { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 0; }
.dt caption { text-align: left; color: var(--muted); font-size: 13px; padding-bottom: 6px; }
.dt th, .dt td { padding: 7px 12px 7px 0; border-bottom: 1px solid var(--line); text-align: left; font-variant-numeric: tabular-nums; font-weight: 400; }
.dt th { font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.dt tbody th { font-size: 14px; color: var(--text); text-transform: none; letter-spacing: 0; }
.tip { position: absolute; z-index: 25; min-width: 190px; max-width: 300px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 10px 12px; font-size: 13px; line-height: 1.5; box-shadow: 0 12px 28px rgba(5,16,54,.16); pointer-events: none; color: var(--text); }
.tip b { font-family: var(--font); color: var(--ink); }
.tip .r { display: flex; justify-content: space-between; gap: 14px; }
.tip .r span { color: var(--muted); }
.tip.pin { pointer-events: auto; }
.tip a { display: inline-block; margin: 6px 12px 0 0; }
.tip .x { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border: 0; background: none; color: var(--muted); font-size: 18px; cursor: pointer; }
.xh { position: absolute; top: 0; width: 1px; background: rgba(5,16,54,.45); pointer-events: none; }
@media (max-width: 699px) { .tip { left: 0 !important; right: 0; top: 0 !important; max-width: none; } }
.tip.dcard { white-space: normal; text-align: left; }
@media (max-width: 699px) { .lr > .tip.dcard { position: static; grid-column: 1 / -1; margin: 8px 0 4px; box-shadow: none; } }

/* Chart colours. The drawing code writes dark-theme colours into the SVG; these rules re-colour them for the light page
   (a CSS rule beats a presentation attribute). Series: sky, ink, slate. */
.hp svg [stroke="#1E2A45"] { stroke: var(--line); }
.hp svg [fill="#8A96AC"] { fill: var(--muted); }
.hp svg [fill="#F2F5FA"] { fill: var(--ink); }
.hp svg [stroke="#F2F5FA"] { stroke: var(--ink); }
.hp svg [stroke="#8A96AC"] { stroke: var(--muted); }
.hp svg [fill="#2A3A5E"] { fill: var(--line-strong); }
.hp svg [fill="#070B14"] { fill: #fff; }
.hp svg [stroke="#F0DBA8"] { stroke: var(--action); }
.hp svg [fill="#F0DBA8"] { fill: var(--action); }
.hp svg [fill="rgba(138,150,172,.22)"] { fill: rgba(91,103,128,.2); }
.hp svg [stroke="#BD8B2C"] { stroke: var(--sky); }
.hp svg [fill="#BD8B2C"] { fill: var(--sky); }
.hp svg [stroke="#3B82DD"] { stroke: var(--ink); }
.hp svg [fill="#3B82DD"] { fill: var(--ink); }
.hp svg [stroke="#C45296"] { stroke: #7A8CA8; }
.hp svg [fill="#C45296"] { fill: #7A8CA8; }
.hp [style*="#BD8B2C"] { background: var(--sky) !important; }
.hp [style*="#3B82DD"] { background: var(--ink) !important; }
.hp [style*="#C45296"] { background: #7A8CA8 !important; }
/* The mix bar and its key (what sells here): a blue ramp, darker for the type with the more expensive homes. */
.hp [style*="#E2C68A"] { background: #8DC8E8 !important; }
.hp [style*="#8C6A2A"] { background: var(--action) !important; }
.hp [style*="#5E6B84"] { background: var(--ink) !important; }
.hp [style*="#2A3A5E"] { background: #B9C3D1 !important; }
.hp svg [fill="#E2C68A"] { fill: #8DC8E8; }
.hp svg [fill="#8C6A2A"] { fill: var(--action); }
.hp svg [fill="#5E6B84"] { fill: var(--ink); }

/* --- The district ladder -------------------------------------------------- */
.lctl { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0 0 12px; }
.lctl .xr { flex-wrap: nowrap; }
.lad { position: relative; list-style: none; margin: 0; padding: 0; }
.lr, .la { display: grid; grid-template-columns: 62px minmax(0, 1.3fr) minmax(0, 2fr) 100px 60px; align-items: center; gap: 0 12px; min-height: 42px; border-bottom: 1px solid var(--line); padding: 0 6px 0 8px; border-left: 2px solid transparent; }
.la { min-height: 30px; font-size: 11.5px; color: var(--muted); border-bottom-color: var(--line-strong); }
.la .lv, .la .ln { font: 600 11.5px var(--font); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.lr > a, .lr > .lc { font: 600 15px var(--font); text-decoration: none; padding: 9px 0; }
.ll { font-size: 14px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ll small { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.lt { position: relative; align-self: stretch; min-height: 22px; }
.lt i { position: absolute; top: 50%; height: 10px; margin-top: -5px; border-radius: 5px; background: rgba(27,149,209,.45); transition: left .2s, width .2s; }
.lt i.z { background: #7A8CA8; }
.lt b { position: absolute; top: 50%; width: 2px; height: 18px; margin: -9px 0 0 -1px; border-radius: 1px; background: var(--ink); transition: left .2s; }
.lt em { position: absolute; top: 50%; transform: translate(-50%, -50%); font-style: normal; white-space: nowrap; }
.la .lt em:first-child { transform: translate(0, -50%); }
.la .lt em:last-child { transform: translate(-100%, -50%); }
.lv { text-align: right; font-size: 15px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.ln { text-align: right; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lr.sh { border-left: 2px dashed var(--muted); }
.lr.few { background: repeating-linear-gradient(45deg, rgba(91,103,128,.14) 0 1.5px, transparent 1.5px 7px); }
.lr.few .lv { font: 400 13px var(--font); color: var(--muted); }
.lr.dim > :not(.lt), .lr.dim .lt i, .lr.dim .lt b { opacity: .35; }
.lr.hl { background: var(--tint); outline: 2px solid var(--action); outline-offset: -2px; }
.lad.bud .lt::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--bx); width: 2px; margin-left: -1px; background: var(--action); }
.lr:hover { background-color: var(--page); }
details.lg { border-top: 1px solid var(--line); }
details.lg[open] { content-visibility: auto; contain-intrinsic-size: auto 420px; }
details.lg.tipon[open] { content-visibility: visible; }
details.lg summary { cursor: pointer; padding: 12px 0; font: 600 15px var(--font); min-height: 44px; color: var(--ink); }
details.lg summary small { font: 400 13px var(--font); color: var(--muted); margin-left: 6px; }
@media (max-width: 699px) {
  .lr, .la { grid-template-columns: 50px minmax(0, 1fr) 90px; grid-template-areas: "c t v" "c l n"; padding: 6px 4px 6px 6px; }
  .lr > a, .lr > .lc { grid-area: c; } .lt { grid-area: t; } .lv { grid-area: v; } .ll { grid-area: l; font-size: 12px; } .ln { grid-area: n; font-size: 12px; }
  .la { grid-template-areas: "c t v"; } .la .ll, .la .ln { display: none; }
  .la .lt em:not(:first-child):not(:last-child) { display: none; }
  .js .lad:not(.open) .lx { display: none; }
}

/* --- The district map (services/hexTileMap.js) ------------------------------
   Equal hexagons, one per district. Colour tells levels apart, never good from bad: price runs pale to deep blue,
   change runs blue (lower) through grey to orange (higher), and "too few" is HATCHED. */
.hx { position: relative; }
.hxsw { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; border: 0; margin: 0 0 10px; padding: 0; }
.hxsw legend { float: left; margin-right: 6px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.hxsw label { position: relative; cursor: pointer; }
.hxsw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hxsw span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-strong); background: #fff; font: 400 14px var(--font); }
.hxsw input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; }
.hxsw input:focus-visible + span { outline: 3px solid rgba(27,149,209,.45); outline-offset: 2px; }
.hxbox { margin: 8px 0 0; padding: 2px 0; }
.hxs { display: block; margin: 0 auto; height: auto; }
.hxhint { display: none; }
@media (max-width: 699px) { .hx.wide .hxhint { display: block; } }
.hxs a { outline: none; }
.hxs use { stroke: #fff; stroke-width: 1.5; }
.hxs a.sh use { stroke: var(--muted); stroke-dasharray: 4 3; }
.hxs a:hover use, .hxs a:focus-visible use { stroke: var(--action) !important; stroke-width: 3 !important; stroke-dasharray: none !important; }
.hxs text { text-anchor: middle; font-family: var(--font); pointer-events: none; fill: var(--ink); }
.hxs .k { font: 600 12.5px var(--font); }
.hxs .v { font-size: 10.5px; }
.hx .vc, .hx .hxcap-c, .hx .hxl-c { display: none; }
.hx:is(.chg, :has(.hxm[value=change]:checked)) .vp, .hx:is(.chg, :has(.hxm[value=change]:checked)) .hxcap-p, .hx:is(.chg, :has(.hxm[value=change]:checked)) .hxl-p { display: none; }
.hx:is(.chg, :has(.hxm[value=change]:checked)) .vc { display: inline; }
.hx:is(.chg, :has(.hxm[value=change]:checked)) .hxl-c { display: flex; }
.hx:is(.chg, :has(.hxm[value=change]:checked)) .hxcap-c { display: block; }
.hxs .p0 use, .hxw.p0 { fill: #E8F0F7; background: #E8F0F7; }
.hxs .p1 use, .hxw.p1 { fill: #BFDDF0; background: #BFDDF0; }
.hxs .p2 use, .hxw.p2 { fill: #7FBCE0; background: #7FBCE0; }
.hxs .p3 use, .hxw.p3 { fill: #1B95D1; background: #1B95D1; }
.hxs .p4 use, .hxw.p4 { fill: #0B6FA4; background: #0B6FA4; }
.hxs .pn use { fill: url(#hpHatch); }
.hxs .pn:not(.sh) use { stroke: var(--line-strong); }
.hxs .pn text { fill: var(--ink); }
.hxw.pn, .hxw.cn { background: repeating-linear-gradient(45deg, rgba(91,103,128,.35) 0 1.5px, transparent 1.5px 7px); }
.hxs .p3 text, .hxs .p4 text { fill: #fff; }
.hx:is(.chg, :has(.hxm[value=change]:checked)) .hxs .c0 use { fill: #0B6FA4; }
.hx:is(.chg, :has(.hxm[value=change]:checked)) .hxs .c1 use { fill: #7FBCE0; }
.hx:is(.chg, :has(.hxm[value=change]:checked)) .hxs .c2 use { fill: #E3E8EF; }
.hx:is(.chg, :has(.hxm[value=change]:checked)) .hxs .c3 use { fill: #F0B27A; }
.hx:is(.chg, :has(.hxm[value=change]:checked)) .hxs .c4 use { fill: #C8621B; }
.hx:is(.chg, :has(.hxm[value=change]:checked)) .hxs .cn use { fill: url(#hpHatch); }
.hx:is(.chg, :has(.hxm[value=change]:checked)) .hxs .cn:not(.sh) use { stroke: var(--line-strong); }
.hx:is(.chg, :has(.hxm[value=change]:checked)) .hxs a text { fill: var(--ink); }
.hx:is(.chg, :has(.hxm[value=change]:checked)) .hxs .c0 text, .hx:is(.chg, :has(.hxm[value=change]:checked)) .hxs .c4 text { fill: #fff; }
.hxw.c0 { background: #0B6FA4; } .hxw.c1 { background: #7FBCE0; } .hxw.c2 { background: #E3E8EF; } .hxw.c3 { background: #F0B27A; } .hxw.c4 { background: #C8621B; }
.hxl { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; padding: 0; margin: 12px 0 4px; font-size: 13px; }
.hxl li { display: inline-flex; align-items: center; gap: 6px; }
.hxw { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--line-strong); }

/* --- "Embed this chart" ---------------------------------------------------- */
details.emb { margin: 12px 0 0; }
details.emb summary { display: inline-flex; align-items: center; min-height: 40px; cursor: pointer; color: var(--action); font-size: 14px; font-weight: 600; }
details.emb textarea { display: block; width: 100%; max-width: 760px; margin: 6px 0 8px; padding: 10px 12px; border-radius: var(--r-input); border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; }
.lrsrc { margin-top: 10px; }

/* --- Mix, facts, latest sales --------------------------------------------- */
.mix { display: flex; height: 16px; border-radius: 8px; overflow: hidden; gap: 2px; margin: 12px 0 14px; }
.mixl { list-style: none; padding: 0; margin: 0 0 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; font-size: 14px; }
.mixl small { color: var(--muted); }
.facts { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.facts li { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 8px 12px; }
.facts b { display: block; font: 600 20px var(--font); color: var(--ink); }
.facts span { font-size: 13px; color: var(--muted); }
.sales { width: 100%; border-collapse: collapse; font-size: 14px; }
.sales th { text-align: left; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; padding: 0 12px 8px 0; border-bottom: 1px solid var(--line-strong); }
.sales td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.sales td:last-child, .sales th:last-child { text-align: right; white-space: nowrap; }
.sales.latest td:first-child, .sales.hist td:first-child { white-space: nowrap; color: var(--muted); }
.sales td a { color: var(--action); }
.sales .pr { font: 600 15px var(--font); font-variant-numeric: tabular-nums; color: var(--ink); }
.sales .ch { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sales tr[hidden] { display: none; }
.badge { display: inline-block; border: 1px solid var(--line-strong); border-radius: 99px; padding: 1px 8px; font-size: 12px; line-height: 1.5; color: var(--muted); margin: 3px 4px 0 0; white-space: nowrap; font-weight: 400; }
.badge.pro { border-color: var(--action); color: var(--action); font-weight: 600; letter-spacing: .04em; }
/* The "PRO" tag on a link to a paid screen is written for a visitor whose plan the cached page cannot know;
   js/plan-badges.js puts what it learns on <html> and these rules do the rest (DEF_164). A signed-in visitor's
   tag is invisible, but keeps its room, until the plan is settled, so a Free account sees nothing jump in;
   an account that holds the capability, or pricing not being live, takes the tag out before first paint
   once a previous visit has remembered the plan. One line per capability a page names (data-plan-feature):
   devReport5Hp.test.js fails if a page names one with no rule here. */
html.da-in:not(.plan-known) .badge[data-plan-feature] { visibility: hidden; }
html.plan-off .badge[data-plan-feature] { display: none; }
html.pf-marketIntel .badge[data-plan-feature="marketIntel"] { display: none; }
/* The same rule for a sentence that says what a plan adds ("The address and price of each sale are in the email
   with Pro", under the alert box): data-plan-note, not data-plan-feature, because plan-badges.js rewrites the text
   of every data-plan-feature element to the plan's name. */
html.plan-off [data-plan-note] { display: none; }
html.pf-marketIntel [data-plan-note="marketIntel"] { display: none; }
/* On a phone the latest-sales table becomes compact cards: address and
   price on the first line, date, type and badges on the second. */
@media (max-width: 699px) {
  .latest thead { display: none; }
  .latest tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "a a p" "d t t"; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .latest td { border: 0; padding: 0; font-size: 13px; }
  .latest td:nth-child(1) { grid-area: d; }
  .latest td:nth-child(2) { grid-area: a; font-size: 14px; }
  .latest td:nth-child(3) { grid-area: t; color: var(--muted); }
  .latest td:nth-child(3) br, .latest td:nth-child(2) br { display: none; }
  .latest td:nth-child(2) small { margin-left: 6px; }
  .latest td:nth-child(4) { grid-area: p; }
  .latest .badge { margin: 0 0 0 6px; }
  .js .latest:not(.open) tbody tr.past { display: none; }
}

/* A postcode's addresses on a phone: the address and the price on the first line, the date, the type and the tenure on the second. */
@media (max-width: 699px) {
  .addrs thead { display: none; }
  .addrs tr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "a a p" "d t u"; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .addrs td { border: 0; padding: 0; font-size: 13px; text-align: left; white-space: normal; }
  .addrs td:nth-child(1) { grid-area: a; font-size: 15px; }
  .addrs td:nth-child(2) { grid-area: d; color: var(--muted); white-space: nowrap; }
  .addrs td:nth-child(3) { grid-area: t; color: var(--muted); }
  .addrs td:nth-child(4) { grid-area: u; color: var(--muted); }
  .addrs td:nth-child(5) { grid-area: p; text-align: right; font-size: 15px; }
  .addrs td:nth-child(5) br { display: none; }
  .addrs td:nth-child(5) .badge { display: inline-block; margin: 2px 0 0; }
  .sales.hist td { padding-right: 8px; font-size: 13px; }
  .sales.hist td.ch { white-space: normal; }
}

/* --- Around, method, attribution ------------------------------------------ */
.links { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 8px 0 16px; }
.links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: var(--text); text-decoration: none; font-size: 14px; }
.links a:hover { border-color: var(--action); color: var(--action); }
.links small { color: var(--muted); margin-left: 6px; }
.prostrip.go { display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 8px 16px; }
.prostrip.go a { display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--action); font-weight: 400; font-size: 15px; text-align: left; text-decoration: none; }
.prostrip.go a:hover { background: none; color: var(--action-dark); text-decoration: underline; }
.prostrip.go a:first-child { background: none; color: var(--action); }
details.meth summary { cursor: pointer; font: 600 17px var(--font); min-height: 44px; display: flex; align-items: center; color: var(--ink); }
details.meth ul { padding-left: 20px; color: var(--text); max-width: 820px; }
details.meth li { margin: 0 0 8px; font-size: 15px; }
.attr { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin: 32px 0 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.lcf { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.lcf li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }

/* --- Landing: cards, shelves, districts ----------------------------------- */
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 12px; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
@container (max-width: 900px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { position: relative; display: grid; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 12px 12px 10px; transition: border-color .15s; }
.card:hover { border-color: var(--action); }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-card); }
.card .reg { font-size: 12px; color: var(--muted); }
.card .fig { font-size: 24px; font-weight: 600; line-height: 1.2; margin-top: 6px; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.card .spark { width: 100%; height: 34px; margin: 4px 0 2px; }
.card .spark path { stroke: var(--sky); }
.card .qs { margin: 6px 0 4px; }
.card label { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: 13px; color: var(--muted); cursor: pointer; justify-self: start; }
.card input { width: 18px; height: 18px; accent-color: var(--action); }
@container (max-width: 520px) {
  .cards { grid-template-columns: 1fr; gap: 6px; }
  .card { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "k n f" "k q q"; align-items: center; gap: 2px 10px; padding: 8px 12px 8px 6px; }
  .card h3 { grid-area: n; font-size: 16px; }
  .card .fig { grid-area: f; font-size: 19px; margin: 0; text-align: right; }
  .card .qs { grid-area: q; margin: 0; }
  .card label { grid-area: k; min-width: 40px; justify-content: center; }
  .card label span, .card .reg, .card .spark, .card .cap { display: none; }
}
@media (max-width: 699px) { .js .cards:not(.open) .card:nth-child(n+9) { display: none; } }
.qs { position: relative; display: block; height: 14px; min-width: 70px; }
.qs::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line-strong); }
.qs i { position: absolute; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px; background: rgba(27,149,209,.5); }
.qs b { position: absolute; top: 50%; width: 2px; height: 12px; margin: -6px 0 0 -1px; border-radius: 1px; background: var(--ink); }
.qs.cl::after, .qs.cr::after { content: ""; position: absolute; top: 50%; margin-top: -4px; border: 4px solid transparent; }
.qs.cl::after { left: -6px; border-right-color: var(--sky); }
.qs.cr::after { right: -6px; border-left-color: var(--sky); }
.qsax { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); max-width: 320px; }
.shelf { border-top: 1px solid var(--line); }
.shelf > summary { display: flex; align-items: baseline; gap: 10px; padding: 14px 0; cursor: pointer; min-height: 48px; }
.shelf > summary h3 { display: inline; font-size: 17px; }
.shelf > summary small { color: var(--muted); font-size: 13px; }
.st { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0 0 12px; table-layout: fixed; }
.st th:nth-child(1) { width: 50%; } .st th:nth-child(2) { width: 25%; } .st th:nth-child(3) { width: 25%; }
.st td:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st th { text-align: left; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; padding: 0 12px 8px 0; border-bottom: 1px solid var(--line-strong); white-space: normal; line-height: 1.3; }
.st td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); }
.st td:nth-child(2), .st td:nth-child(3), .st th:nth-child(2), .st th:nth-child(3) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.st th:nth-child(2), .st th:nth-child(3) { white-space: normal; }
.st a { color: var(--ink); text-decoration: none; }
.st a:hover { color: var(--action); text-decoration: underline; }
.js .shelf:not(.all) tr.more { display: none; }
.st tr[hidden] { display: none; }
.letters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.letters a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; border: 1px solid var(--line); border-radius: var(--r-input); text-decoration: none; color: var(--ink); background: #fff; }
.filter { height: 44px; min-width: 0; width: 100%; max-width: 360px; padding: 0 14px; border-radius: var(--r-input); border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font: 400 16px var(--font); }
.dgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; list-style: none; padding: 0; margin: 10px 0 0; }
.dgrid a { display: flex; flex-direction: column; justify-content: center; min-height: 44px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r-input); background: #fff; text-decoration: none; color: var(--ink); font-size: 13px; }
.dgrid a:hover { border-color: var(--action); }
.dgrid small { color: var(--muted); font-size: 12px; }
.area > summary { cursor: pointer; padding: 12px 0; border-top: 1px solid var(--line); min-height: 48px; }
.area > summary b { font: 600 17px var(--font); color: var(--ink); }
.area > summary small { color: var(--muted); margin-left: 8px; }
.area .dgrid { margin-bottom: 16px; }
.sibs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 10px 0 0; }
.sibs a { display: inline-flex; gap: 8px; align-items: center; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; color: var(--ink); font-size: 14px; background: #fff; }
.sibs a:hover { border-color: var(--action); }
.sibs small { color: var(--muted); }
.note404 { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; margin: 20px 0 0; }
.note404 h2 { margin-top: 24px; }

@media (min-width: 900px) {
  /* The answer on a wide screen: the figure and its movement on the left, the facts and the types on the right. */
  .ans { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 40px; align-items: start; }
  .ans h2, .ans .ans-cap { grid-column: 1 / -1; }
  .ans-fig { grid-column: 1; grid-row: 2; }
  .ans-move { grid-column: 1; grid-row: 3; align-self: start; }
  .ans-facts { grid-column: 2; grid-row: 2; margin-top: 8px; }
  .ans-types { grid-column: 2; grid-row: 3; margin-top: 12px; }
  .ans-cap { grid-row: 4; }
}
@media (min-width: 700px) {
  .hp { padding: 0 24px 8px; }
  .hp h1 { font-size: 32px; }
  .ans { padding: 18px 22px 16px; }
  .ans-fig b { font-size: 52px; }
  .ans-types { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .prostrip { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .prostrip a:last-child:nth-child(odd) { grid-column: auto; }
  .dgrid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
  .dgrid a { font-size: 14px; padding: 8px 12px; }
  .st th:nth-child(1) { width: 40%; }
  .sec { margin-top: 36px; padding-top: 28px; }
  .xl { width: 70px; font-size: 12px; }
}
/* One disclosure chevron for every <details> in the section: a flex
   summary loses the browser's own triangle, and a shelf that does not
   look openable is a shelf nobody opens. */
.shelf > summary, .area > summary, details.lg > summary, details.meth > summary { display: flex; align-items: center; gap: 10px; list-style: none; }
.shelf > summary::-webkit-details-marker, .area > summary::-webkit-details-marker, details.lg > summary::-webkit-details-marker, details.meth > summary::-webkit-details-marker { display: none; }
.shelf > summary::after, .area > summary::after, details.lg > summary::after, details.meth > summary::after { content: ""; flex: none; width: 8px; height: 8px; margin: 0 6px 4px auto; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
.shelf[open] > summary::after, .area[open] > summary::after, details.lg[open] > summary::after, details.meth[open] > summary::after { transform: rotate(-135deg); margin-bottom: -4px; }
@media (min-width: 700px) { [data-phone-only] { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .hp *, .hp *::before, .hp *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .alertbox, .srch { display: none; } }

/* Inside a frame that gives the page the whole width (Freedom Property Academy's member area): the column fills it
   instead of stopping at 1120px. services/frameMarker.js puts in-fpa-frame on <html>; a page in a tab of its own never
   has it, so it is drawn as before. The measure is a container, so the tiles and the card columns above follow the new
   width by themselves, and the paragraph limits above (720 to 860px) keep the text readable. */
html.in-fpa-frame .hp { max-width: none; }

/* The filter box above a long list of places (DEF_ID_016). */
.listfilter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0 4px; }
.listfilter .filter { max-width: 320px; }
.listfilter .cap { margin: 0; font-size: 13px; color: var(--muted); }
