@font-face{font-family:'Geist';font-style:normal;font-weight:400 600;font-display:swap;src:url(/lot/assets/fonts/geist-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 700;font-display:swap;src:url(/lot/assets/fonts/jetbrains-mono-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:500 700;font-display:swap;src:url(/lot/assets/fonts/space-grotesk-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

/*
 * PropertyPulse lot-page tokens  (V9 /lot/ template)
 *
 * Scoped theme `.lot-theme`, same pattern as `.distress-theme`
 * (app/pied-a-terre-radar/distress-theme.css) and in shadcn HSL-triplet format,
 * so Button / Badge / Accordion / Dialog work unchanged under it.
 *
 * Relation to the site: every surface / ink / border value below is the site's
 * existing `.dark` token (app/globals.css) or the distress hex palette
 * (#0a0d10 bg, #14181d card, #222a31 border...). The only lot-page decisions are:
 *   --primary  amber (the accent shown in the approved hybrid screenshots)
 *   --ring     cobalt (the site's brand colour, kept for keyboard focus + links)
 *   --radius   2px  (terminal-report frame; the site default is 0.5rem)
 * Dark only. No light variant (same precedent as /pied-a-terre-radar).
 */

.lot-theme {
  color-scheme: dark;

  /* --- shadcn semantic tokens (HSL triplets, same names as app/globals.css) --- */
  --background: 210 23% 5%;            /* #0a0d10  = .dark --background */
  --foreground: 210 24% 93%;           /* #eaeef2  = .dark --foreground */
  --card: 213 18% 10%;                 /* #14181d  = .dark --card */
  --card-foreground: 210 24% 93%;
  --popover: 213 18% 10%;
  --popover-foreground: 210 24% 93%;
  --secondary: 215 19% 13%;            /* #1a1f26 */
  --secondary-foreground: 210 24% 93%;
  --muted: 215 19% 13%;
  --muted-foreground: 210 11% 64%;     /* #9aa4ae  7.6:1 on bg  -> all readable secondary text */
  --accent: 215 19% 16%;
  --accent-foreground: 210 24% 93%;
  --border: 208 18% 16%;               /* #222a31 */
  --input: 208 18% 16%;
  --destructive: 8 100% 67%;           /* #ff6b57 */
  --destructive-foreground: 210 23% 5%;

  --primary: 38 91% 55%;               /* #f5a623  amber */
  --primary-foreground: 210 23% 5%;    /* #0a0d10  on amber: 9.9:1 */
  --ring: 221 100% 62%;                /* cobalt, = .dark --ring */

  --radius: 2px;

  /* --- lot-page extras --- */
  --ink2: 210 22% 7%;                  /* #0e1216  inset wells */
  --line2: 208 17% 21%;                /* #2c353d  stronger hairline */
  --faint: 210 9% 40%;                 /* #5c656e  DECOR ONLY (rules, dashes). Never text: 3.3:1 */
  --link: 220 100% 74%;                /* #7aa5ff  cobalt tint for text links, 7.7:1 */
  --ok: 154 50% 54%;                   /* #4cc38a */
  --amber-soft: hsl(var(--primary) / 0.12);
  --amber-line: hsl(var(--primary) / 0.38);
  --ok-soft: hsl(var(--ok) / 0.12);
  --ok-line: hsl(var(--ok) / 0.4);
  --err-soft: hsl(var(--destructive) / 0.12);
  --err-line: hsl(var(--destructive) / 0.45);

  /* --- type (the site's three families, loaded in app/layout.tsx) --- */
  --font-heading: "Space Grotesk", system-ui, sans-serif;
  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --fs-micro: 11px;                    /* labels, sources, dates. 11px floor (was 10px) */
  --fs-small: 13px;
  --fs-body: 15px;
  --fs-h2: 22px;
  --fs-h1: clamp(30px, 6.2vw, 46px);
  --fs-figure: clamp(32px, 7vw, 48px);
  --tracking-micro: 0.14em;

  /* --- space scale --- */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 36px; --s7: 52px; --s8: 70px;

  --col: 780px;                        /* report column */
  --rail: 190px;                       /* desktop section rail */
}

/* PropertyPulse lot page: component styles. Tokens live in tokens.css.
   Rules: no `filter: blur` / `backdrop-filter` anywhere (open model: nothing is ever blurred);
   min 11px text; every table collapses to labelled rows at <=720px (no horizontal scroll). */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.lot-theme {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  overflow-x: clip;
}
img, svg { max-width: 100%; display: block; }
a { color: hsl(var(--link)); text-underline-offset: 3px; }
a:hover { color: hsl(var(--foreground)); }
:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }
b, strong { font-weight: 600; color: hsl(var(--foreground)); }
.num, .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- micro-label + source chip ---------- */
.micro {
  font-family: var(--font-mono); font-size: var(--fs-micro); font-weight: 600;
  letter-spacing: var(--tracking-micro); text-transform: uppercase; color: hsl(var(--muted-foreground));
}
.eyebrow { font-family: var(--font-mono); font-size: var(--fs-micro); font-weight: 600; letter-spacing: var(--tracking-micro); text-transform: uppercase; color: hsl(var(--primary)); }
.src {
  font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: .02em;
  color: hsl(var(--muted-foreground)); overflow-wrap: anywhere;
}
.src .asof { color: hsl(var(--muted-foreground)); opacity: .85; }
.ok { color: hsl(var(--ok)); }

/* ---------- buttons (shadcn Button anatomy: default / outline / ghost) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: var(--radius);
  font: 600 12px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid hsl(var(--line2)); background: transparent; color: hsl(var(--foreground));
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: hsl(var(--primary)); color: hsl(var(--primary)); }
.btn-primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-color: hsl(var(--primary)); }
.btn-primary:hover { background: hsl(var(--primary) / .88); color: hsl(var(--primary-foreground)); }
.btn-lg { height: 44px; padding: 0 20px; font-size: 13px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: hsl(var(--background)); border-bottom: 1px solid hsl(var(--border)); }
.topbar-in { max-width: 1080px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 20px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand img { height: 34px; width: auto; }
.brand-tag { font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: var(--tracking-micro); text-transform: uppercase; color: hsl(var(--muted-foreground)); border-left: 1px solid hsl(var(--line2)); padding-left: 10px; }
.search { flex: 1 1 auto; display: flex; min-width: 0; max-width: 520px; margin-left: auto; }
.search input {
  flex: 1; min-width: 0; height: 38px; padding: 0 12px; border-radius: var(--radius) 0 0 var(--radius);
  border: 1px solid hsl(var(--line2)); border-right: 0; background: hsl(var(--card)); color: hsl(var(--foreground));
  font: 400 14px var(--font-sans);
}
.search input::placeholder { color: hsl(var(--muted-foreground)); }
.search button { height: 38px; padding: 0 14px; border-radius: 0 var(--radius) var(--radius) 0; border: 1px solid hsl(var(--line2)); background: hsl(var(--secondary)); color: hsl(var(--primary)); font: 600 12px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.search button:hover { background: hsl(var(--accent)); }
.topnav { display: flex; align-items: center; gap: 18px; flex: none; }
.topnav a.link { color: hsl(var(--muted-foreground)); text-decoration: none; font: 600 12px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.topnav a.link:hover { color: hsl(var(--foreground)); }

/* mobile summary ticker: single line, sticky, shown <=720px only */
.ticker { display: none; }

/* ---------- breadcrumb ---------- */
.crumbs { max-width: 1080px; margin: 0 auto; padding: 14px 24px 0; font: 400 12px var(--font-mono); color: hsl(var(--muted-foreground)); letter-spacing: .03em; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li + li::before { content: "\203A"; margin-right: 8px; color: hsl(var(--faint)); }
.crumbs a { color: hsl(var(--muted-foreground)); text-decoration: none; }
.crumbs a:hover { color: hsl(var(--foreground)); }
.crumbs [aria-current] { color: hsl(var(--foreground)); }

/* ---------- page grid: section rail + report column ---------- */
.page { max-width: 1080px; margin: 0 auto; padding: 0 24px 96px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 56px; }
.rail { display: none; }
@media (min-width: 1100px) {
  .page { grid-template-columns: var(--rail) minmax(0, var(--col)); }
  .rail { display: block; position: sticky; top: 92px; align-self: start; padding-top: 48px; }
  .rail ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid hsl(var(--border)); }
  .rail a { display: flex; gap: 10px; padding: 7px 0 7px 14px; margin-left: -1px; border-left: 2px solid transparent; color: hsl(var(--muted-foreground)); text-decoration: none; font-size: 13px; }
  .rail a .n { font-family: var(--font-mono); font-size: var(--fs-micro); color: hsl(var(--primary)); padding-top: 2px; }
  .rail a:hover { color: hsl(var(--foreground)); }
  .rail a[aria-current="true"] { color: hsl(var(--foreground)); border-left-color: hsl(var(--primary)); }
}
main.report { min-width: 0; padding-top: 28px; }

/* ---------- masthead ---------- */
.masthead h1 { font: 600 var(--fs-h1)/1.08 var(--font-heading); letter-spacing: -0.02em; margin: 10px 0 8px; overflow-wrap: anywhere; }
.subline { color: hsl(var(--muted-foreground)); margin: 0; }
.subline b { font-family: var(--font-mono); font-weight: 500; white-space: nowrap; }
.notice { margin: 18px 0 0; padding: 12px 14px; border: 1px dashed var(--amber-line); background: var(--amber-soft); border-radius: var(--radius); font-size: var(--fs-small); color: hsl(var(--foreground)); }
.notice b { color: hsl(var(--primary)); }

/* ---------- five-number band ---------- */
.band { margin: 24px 0 0; display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr 1fr; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); border-radius: var(--radius); }
.band > div { padding: 14px 14px 12px; border-right: 1px solid hsl(var(--border)); min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.band > div:last-child { border-right: 0; }
.band .hot { background: var(--amber-soft); }
.band .val { font: 600 var(--fs-figure)/1 var(--font-mono); font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.02em; margin-top: 2px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.band .hot .val { color: hsl(var(--primary)); }
.band .val small { font-size: 12px; font-weight: 400; color: hsl(var(--muted-foreground)); letter-spacing: 0; margin-left: 4px; }
.band .unit-below .val small { display: block; margin: 4px 0 0; }
.band .val2 { display: flex; flex-direction: column; gap: 3px; font-size: clamp(20px, 2.2vw, 24px); }
.band .val2 small { font-size: 11px; margin-left: 6px; font-family: var(--font-mono); }
.band .status .val { font: 700 15px/1.25 var(--font-heading); letter-spacing: .02em; text-transform: uppercase; color: hsl(var(--primary)); margin-top: 4px; }
.band .sub { font-size: 12px; color: hsl(var(--muted-foreground)); line-height: 1.35; }

/* ---------- utility actions (analytics-instrumented, no gate) ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }

/* ---------- verdict ---------- */
.verdict { margin: 22px 0 0; padding: 16px 18px; background: var(--amber-soft); border: 1px solid var(--amber-line); border-left: 3px solid hsl(var(--primary)); border-radius: var(--radius); }
.verdict h2 { margin: 0 0 6px; font: 600 13px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: hsl(var(--primary)); }
.verdict p { margin: 0; }

/* ---------- hero: Fig. 1 map + Fig. 2 concept sketch ---------- */
.hero { margin: 32px 0 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; align-items: start; }
.fig { margin: 0; min-width: 0; }
.fig-frame { position: relative; border: 1px solid hsl(var(--border)); background: hsl(var(--ink2)); border-radius: var(--radius); overflow: hidden; }
.fig-cap { margin: 10px 0 0; }
.fig-cap .t { font: 600 var(--fs-micro) var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: hsl(var(--muted-foreground)); margin: 0 0 6px; }
.fig-cap p { margin: 0 0 6px; font-size: var(--fs-small); color: hsl(var(--muted-foreground)); line-height: 1.5; }
.fig-cap p b { color: hsl(var(--foreground)); }
.badge-concept { position: absolute; top: 10px; left: 10px; padding: 5px 9px; border-radius: var(--radius); background: hsl(var(--background)); border: 1px solid var(--amber-line); color: hsl(var(--primary)); font: 600 var(--fs-micro) var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.sketch img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: #e8e6e1; }
.map-frame svg { width: 100%; height: 100%; }
.map-frame { aspect-ratio: 4 / 3; transition: aspect-ratio .25s ease; }
.hero.map-open { grid-template-columns: minmax(0, 1fr); }
.hero.map-open .map-frame { aspect-ratio: 16 / 8; }
.map-toggle { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 0; padding: 0; list-style: none; font: 400 12px var(--font-mono); color: hsl(var(--muted-foreground)); }
.legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; border: 1px solid hsl(var(--line2)); }
.legend i.lot { background: var(--amber-soft); border-color: hsl(var(--primary)); }
.legend i.park { background: hsl(var(--ok) / .18); border-color: hsl(var(--ok) / .5); }
.legend i.sub { border-radius: 50%; background: hsl(var(--primary)); border-color: hsl(var(--primary)); }
.callouts { margin: 8px 0 0; padding: 0; list-style: none; font: 400 12px var(--font-mono); color: hsl(var(--foreground)); display: grid; gap: 3px; }
.callouts li { display: flex; gap: 8px; align-items: baseline; }
.callouts .n { flex: none; width: 18px; height: 18px; border-radius: 50%; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); font-weight: 700; font-size: 11px; display: inline-grid; place-items: center; }

/* ---------- numbered sections ---------- */
section.sec { margin-top: var(--s7); scroll-margin-top: 80px; }
.sec-h { display: flex; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid hsl(var(--border)); margin-bottom: 18px; flex-wrap: wrap; }
.sec-h .n { font: 600 var(--fs-micro) var(--font-mono); letter-spacing: var(--tracking-micro); color: hsl(var(--primary)); }
.sec-h h2 { margin: 0; font: 600 var(--fs-h2)/1.2 var(--font-heading); letter-spacing: -0.01em; }
.sec-h .aside { margin-left: auto; font: 400 12px var(--font-mono); color: hsl(var(--muted-foreground)); text-align: right; }
.lede { margin: 0 0 20px; max-width: 62ch; }
.lede b.num { font-weight: 600; }

/* big numbers */
.bigs { display: grid; grid-template-columns: repeat(2, minmax(0, auto)); justify-content: start; gap: 12px 48px; margin: 0 0 22px; }
.big .v { font: 600 var(--fs-figure)/1 var(--font-mono); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.big .v small { font-size: 16px; font-weight: 400; color: hsl(var(--muted-foreground)); letter-spacing: 0; margin-left: 6px; }
.big .l { margin-top: 8px; }
.big .d { margin: 6px 0 0; font-size: var(--fs-small); color: hsl(var(--muted-foreground)); max-width: 34ch; }
.big .src { display: block; margin-top: 4px; }

/* ---------- data tables: real <table>, labelled rows on mobile ---------- */
table.dt { width: 100%; border-collapse: collapse; font-size: 14px; }
table.dt th { text-align: left; padding: 8px 10px 8px 0; font: 600 var(--fs-micro) var(--font-mono); letter-spacing: var(--tracking-micro); text-transform: uppercase; color: hsl(var(--muted-foreground)); border-bottom: 1px solid hsl(var(--border)); white-space: nowrap; }
table.dt td { padding: 11px 10px 11px 0; border-bottom: 1px solid hsl(var(--border)); vertical-align: top; }
table.dt .r { text-align: right; }
table.dt td.numc { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
table.dt tr.hot td { background: var(--amber-soft); }
table.dt tr.hot td:first-child { box-shadow: inset 3px 0 0 hsl(var(--primary)); padding-left: 10px; }
table.dt tr.indent td:first-child { padding-left: 14px; color: hsl(var(--muted-foreground)); }
table.dt td.srcc { width: 24%; }
table.dt td.srcc .asof { display: block; }
table.dt td.finding .fs { display: block; margin-top: 3px; }

.note { margin: 18px 0 0; padding: 12px 14px; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); font-size: var(--fs-small); color: hsl(var(--muted-foreground)); }
.note b { color: hsl(var(--foreground)); }
.note .src { display: block; margin-top: 6px; }

/* chips */
.chip { display: inline-block; padding: 2px 8px; border-radius: var(--radius); font: 600 var(--fs-micro) var(--font-mono); letter-spacing: .04em; border: 1px solid hsl(var(--line2)); color: hsl(var(--muted-foreground)); background: hsl(var(--ink2)); white-space: nowrap; }
.chip.flag { color: hsl(var(--destructive)); border-color: var(--err-line); background: var(--err-soft); }
.chip.info { color: hsl(var(--ok)); border-color: var(--ok-line); background: var(--ok-soft); }
.chip.pass { color: hsl(var(--ok)); border-color: var(--ok-line); background: var(--ok-soft); }
.chip.answered { color: hsl(var(--ok)); border-color: var(--ok-line); background: var(--ok-soft); }
.id { font-family: var(--font-mono); font-size: var(--fs-micro); color: hsl(var(--muted-foreground)); margin-left: 6px; }

/* ---------- Fig. 3 massing ---------- */
.massing { margin-top: 28px; }
.massing .fig-frame { padding: 8px 8px 4px; background: hsl(var(--ink2)); }
.massing svg { width: 100%; height: auto; }
.mass-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 10px 12px 12px; font: 400 12px var(--font-mono); color: hsl(var(--foreground)); border-top: 1px solid hsl(var(--border)); }
.mass-legend span { display: inline-flex; align-items: center; gap: 8px; }
.mass-legend i { width: 22px; height: 0; border-top: 2px dashed hsl(var(--primary)); }
.mass-legend i.ex { border-top: 6px solid hsl(var(--line2)); }
.mass-legend i.lot { border-top: 2px solid hsl(var(--faint)); }

/* ---------- sources table ---------- */
table.dt .asofc { font-family: var(--font-mono); font-size: 13px; text-align: right; }

/* ---------- FAQ (details/summary = shadcn Accordion behaviour) ---------- */
.faq { border-top: 1px solid hsl(var(--border)); }
.faq details { border-bottom: 1px solid hsl(var(--border)); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 14px; padding: 16px 0; font: 600 16px var(--font-heading); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q { font: 600 var(--fs-micro) var(--font-mono); color: hsl(var(--primary)); letter-spacing: .06em; }
.faq summary .pm { margin-left: auto; font: 400 18px var(--font-mono); color: hsl(var(--muted-foreground)); }
.faq details[open] summary .pm::before { content: "\2212"; }
.faq details:not([open]) summary .pm::before { content: "+"; }
.faq .ans { padding: 0 0 18px 36px; color: hsl(var(--muted-foreground)); max-width: 64ch; }

/* ---------- similar lots strip ---------- */
.similar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; min-width: 0; }
.card:hover { border-color: var(--amber-line); }
.card .thumb { aspect-ratio: 3 / 2; background: hsl(var(--ink2)); border-bottom: 1px solid hsl(var(--border)); }
.card .thumb img, .card .thumb svg { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font: 600 16px/1.25 var(--font-heading); color: hsl(var(--foreground)); }
.card h3 small { font: 400 14px var(--font-sans); color: hsl(var(--muted-foreground)); }
.card .meta { font-size: 13px; color: hsl(var(--muted-foreground)); }
.card .price { margin-top: auto; font: 600 20px var(--font-mono); color: hsl(var(--primary)); }
.card .price small { font: 400 12px var(--font-mono); color: hsl(var(--muted-foreground)); margin-left: 6px; }
.card.hub { justify-content: center; align-items: center; text-align: center; padding: 28px 18px; gap: 6px; }
.card.hub h3 { font-size: 17px; }

/* ---------- discover banner (hides nothing) ---------- */
.discover { margin-top: 36px; padding: 22px 24px; border: 1px solid var(--amber-line); background: var(--amber-soft); border-radius: var(--radius); }
.discover h2 { margin: 6px 0 8px; font: 600 20px var(--font-heading); }
.discover p { margin: 0 0 16px; max-width: 62ch; color: hsl(var(--muted-foreground)); font-size: 14px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid hsl(var(--border)); background: hsl(var(--ink2)); }
.foot-in { max-width: 1080px; margin: 0 auto; padding: 32px 24px 40px; display: grid; gap: 14px; font-size: 13px; color: hsl(var(--muted-foreground)); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { font: 600 12px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: hsl(var(--foreground)); text-decoration: none; }
.foot nav a:hover { color: hsl(var(--primary)); }
.foot p { margin: 0; max-width: 78ch; }

/* ---------- sign-up dialog (shadcn Dialog anatomy; opens ONLY on search submit) ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(5, 6, 8, .84); }
.overlay.on { display: flex; }
.dialog { position: relative; width: 100%; max-width: 452px; max-height: calc(100vh - 32px); overflow: auto; background: hsl(var(--card)); border: 1px solid hsl(var(--line2)); border-top: 3px solid hsl(var(--primary)); border-radius: var(--radius); padding: 28px 28px 24px; }
.dialog .x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; background: transparent; color: hsl(var(--muted-foreground)); font-size: 20px; cursor: pointer; border-radius: var(--radius); }
.dialog .x:hover { color: hsl(var(--foreground)); background: hsl(var(--accent)); }
.dialog h2 { margin: 8px 0 10px; font: 600 24px/1.2 var(--font-heading); }
.dialog p.lead { margin: 0 0 16px; color: hsl(var(--muted-foreground)); font-size: 14px; }
.dialog p.lead q, .dialog p.lead .query { font-family: var(--font-mono); font-size: 13px; color: hsl(var(--foreground)); quotes: "\201C" "\201D"; overflow-wrap: anywhere; }
.perks { list-style: none; margin: 0 0 18px; padding: 12px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; border: 1px solid hsl(var(--border)); background: hsl(var(--ink2)); border-radius: var(--radius); font: 400 12px var(--font-mono); color: hsl(var(--muted-foreground)); }
.perks li::before { content: "\2192"; color: hsl(var(--primary)); margin-right: 8px; }


/* ================= mobile ================= */
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .map-frame { aspect-ratio: 16 / 9; }
  .hero.map-open .map-frame { aspect-ratio: 4 / 3; }
  .similar { grid-template-columns: minmax(0, 1fr); }
  .card.lotcard { flex-direction: row; }
  .card.lotcard .thumb { width: 38%; flex: none; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid hsl(var(--border)); }
  .card.hub { padding: 18px; }
}

@media (max-width: 720px) {
  .topbar { position: static; }
  .topbar-in { flex-wrap: wrap; padding: 10px 16px; gap: 10px; }
  .brand-tag, .topnav a.link { display: none; }
  .topnav { margin-left: auto; }
  .search { order: 3; flex: 1 0 100%; max-width: none; margin-left: 0; }
  .crumbs { padding: 12px 16px 0; }
  .page { padding: 0 16px 72px; }
  main.report { padding-top: 16px; }
  .ticker { display: block; position: sticky; top: 0; z-index: 30; background: hsl(var(--background)); border-bottom: 1px solid hsl(var(--border)); padding: 9px 16px; font: 600 var(--fs-micro) var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: hsl(var(--primary)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band > div { border-right: 0; border-bottom: 1px solid hsl(var(--border)); }
  .band > div:nth-child(2n+3) { border-left: 1px solid hsl(var(--border)); }
  .band .status { grid-column: 1 / -1; }
  .band > div:nth-child(n+4) { border-bottom: 0; }
  .band .val { font-size: 26px; }

  .sec-h .aside { margin-left: 0; text-align: left; flex-basis: 100%; }
  .bigs { grid-template-columns: minmax(0, 1fr); }

  /* tables -> labelled rows */
  table.dt, table.dt tbody, table.dt tr, table.dt td { display: block; width: 100%; }
  table.dt thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.dt tr { padding: 12px 0; border-bottom: 1px solid hsl(var(--border)); }
  table.dt td { padding: 2px 0; border: 0; text-align: left !important; white-space: normal !important; display: flex; justify-content: space-between; gap: 16px; }
  table.dt td::before { content: attr(data-label); flex: none; font: 600 var(--fs-micro) var(--font-mono); letter-spacing: var(--tracking-micro); text-transform: uppercase; color: hsl(var(--muted-foreground)); padding-top: 3px; }
  table.dt td.numc:empty { display: none; }
  table.dt td.first { display: block; font-weight: 500; padding-bottom: 4px; }
  table.dt td.first::before { display: none; }
  table.dt td.srcc { width: 100%; }
  table.dt td.srcc .srcv { text-align: right; }
  table.dt td.srcc .asof { display: inline; }
  table.dt td.srcc .asof::before { content: " \00b7\00a0"; }
  table.dt td.finding { display: block; }
  table.dt td.finding::before { display: none; }
  table.dt tr.hot { background: var(--amber-soft); box-shadow: inset 3px 0 0 hsl(var(--primary)); padding-left: 12px; padding-right: 8px; }
  table.dt tr.hot td { background: none; box-shadow: none; padding-left: 0; }
  table.dt tr.indent td.first { padding-left: 14px; }
  table.dt td.asofc { text-align: left; }
  .gates td.chipc { display: block; }
  .gates td.chipc::before { display: none; }

  .dialog { padding: 24px 18px 20px; }
  .perks { grid-template-columns: 1fr; }
  .faq .ans { padding-left: 0; }
  .discover { padding: 18px; }
}

@media print {
  .topbar, .ticker, .rail, .actions, .overlay, .discover, .skip { display: none !important; }
  body.lot-theme { background: #fff; color: #000; }
}

/* ================= generator additions (V9 build) ================= */
[hidden] { display: none !important; }
html.modal-open { overflow: hidden; }
.skip { position: absolute; left: 8px; top: -48px; z-index: 200; padding: 8px 12px; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); font: 600 12px var(--font-mono); text-decoration: none; border-radius: var(--radius); }
.skip:focus { top: 8px; }
.hot { color: hsl(var(--primary)); }
.textlink { font-family: var(--font-mono); font-size: 12px; }
.src a { color: hsl(var(--link)); }

/* text-valued tables (lot facts): left-aligned value column */
table.dt td.valc { text-align: left; }
table.dt .sub { display: block; margin-top: 2px; font: 400 12px var(--font-mono); color: hsl(var(--muted-foreground)); }
table.dt td.first { font-weight: 500; }
table.dt tr.total td { font-weight: 500; }
table.dt.facts td.first { width: 22%; }
table.dt.comps { margin-top: 10px; }
.band .val small { white-space: nowrap; }

/* hero figures */
.map-frame { aspect-ratio: 4 / 3; }
.map-frame svg { width: 100%; height: 100%; }
.mass2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 34px; }
.mass-panel { min-width: 0; padding: 0 6px 6px; }
.mass-panel + .mass-panel { border-left: 1px solid hsl(var(--border)); }
.mass-panel .micro { margin: 0 0 2px 6px; min-height: 2.8em; line-height: 1.4; }
.mass-panel svg { width: 100%; height: auto; aspect-ratio: 1 / 1; }
.legend i.edge { border: 0; border-top: 2px solid hsl(var(--primary)); height: 0; width: 14px; vertical-align: 3px; }
.legend i.grid { border-color: hsl(var(--line2)); background: transparent; }
.legend i.ex { border: 1px dotted hsl(var(--faint)); background: transparent; }
.legend i.std { background: #343d47; border-color: #56626e; }
.legend i.max { background: var(--amber-soft); border: 1px dashed hsl(var(--primary)); }
.fig-cap .legend { margin-top: 6px; }

/* records, comparable sales: collapsible lists (content stays in the HTML) */
.records { margin-top: 22px; }
.records h3 { margin: 0 0 8px; }
details.more { border-top: 1px solid hsl(var(--border)); margin: 0 0 12px; }
details.more > summary { cursor: pointer; padding: 10px 0; font: 600 var(--fs-micro) var(--font-mono); letter-spacing: var(--tracking-micro); text-transform: uppercase; color: hsl(var(--foreground)); }
details.more ul { margin: 0 0 8px; padding-left: 18px; font-size: 13px; color: hsl(var(--muted-foreground)); }
details.more li { margin: 4px 0; overflow-wrap: anywhere; }
.records .src { margin: 8px 0 0; }
.records .note { margin-top: 10px; }

/* hubs */
.page-hub { grid-template-columns: minmax(0, 1fr) !important; }
.hoods { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hoods a { display: flex; flex-direction: column; gap: 2px; padding: 14px; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); border-radius: var(--radius); text-decoration: none; color: hsl(var(--foreground)); }
.hoods a:hover { border-color: var(--amber-line); }
.hoods a span { font: 400 12px var(--font-mono); color: hsl(var(--muted-foreground)); }
table.lot-table td.first a { font-weight: 500; }
@media (max-width: 960px) { .hoods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .hoods { grid-template-columns: minmax(0, 1fr); }
  .mass2 { padding-top: 36px; }
  .mass-panel .micro { min-height: 0; }
  table.dt td.valc { display: block; }
  table.dt td.valc::before { display: none; }
  table.dt.facts td.first { width: 100%; }
}
@media print {
  .hero .fig-frame, .skip { break-inside: avoid; }
  .similar, .faq details:not([open]) .ans { display: block; }
  a { color: #000; }
}

.band .val .nw { white-space: nowrap; font-size: .86em; }

/* ---------- sign-up form in the dialog (registration: name, email, phone, terms, then the emailed code) ---------- */
.view { display: none; }
.view.on { display: block; }
.field { margin: 0 0 14px; }
.field > label.micro { display: block; margin-bottom: 6px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"] { width: 100%; height: 44px; padding: 0 12px; background: hsl(var(--background)); border: 1px solid hsl(var(--line2)); border-radius: var(--radius); color: hsl(var(--foreground)); font: 400 15px var(--font-sans); }
.field input::placeholder { color: hsl(var(--muted-foreground)); }
.field.err input[type="text"], .field.err input[type="email"], .field.err input[type="tel"] { border-color: hsl(var(--destructive)); }
.field.err input:focus-visible { outline-color: hsl(var(--destructive)); }
.field .msg { margin: 6px 0 0; min-height: 16px; font: 400 12px var(--font-mono); color: hsl(var(--muted-foreground)); }
.field.err .msg { color: hsl(var(--destructive)); }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.field.check label { display: flex; gap: 10px; align-items: flex-start; margin: 0; font: 400 13px var(--font-sans); color: hsl(var(--muted-foreground)); cursor: pointer; }
.field.check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: hsl(var(--primary)); }
.field.check .msg { min-height: 16px; }
#code { text-align: center; letter-spacing: .4em; font: 600 24px var(--font-mono); padding-left: .4em; }
.form-error, .form-note { margin: 0 0 12px; padding: 10px 12px; border-radius: var(--radius); font-size: 13px; color: hsl(var(--foreground)); }
.form-error { border: 1px solid var(--err-line); background: var(--err-soft); }
.form-note { border: 1px solid var(--ok-line); background: var(--ok-soft); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: hsl(var(--link)); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkbtn[disabled] { color: hsl(var(--muted-foreground)); text-decoration: none; cursor: default; }
.success-mark { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); border: 1px solid var(--ok-line); color: hsl(var(--ok)); font-size: 22px; margin-bottom: 10px; }
.dialog a.btn { width: 100%; }
@media (max-width: 460px) { .row2 { grid-template-columns: minmax(0, 1fr); } }
