/*
Theme Name: IMT Sohna Guide
Theme URI: https://imtsohna.in
Author: Dhingra Properties
Description: Information-first guide to IMT Sohna with articles, gated map downloads and lead capture.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: imtsohna
*/
/* Layout: info-portal. Sticky nav → hero with key facts panel → schematic map + connectivity → plot sizes table → HSIIDC transfer steps → guides grid → gated downloads → FAQ → quiet expert contact band */
:root {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --ink: #142033;
  --muted: #56637a;
  --line: #d9dfe8;
  --navy: #1b3352;
  --on-navy: #f3f5f8;
  --signal: #e2a21a;
  --signal-ink: #1a1408;
  --signal-soft: #fbf0d6;
  --map-land: #e4e9f0;
  --map-road: #8796ab;
  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d141f; --surface: #141e2c; --ink: #e5eaf2; --muted: #9aa8bd; --line: #263347;
    --navy: #1a2d47; --on-navy: #e5eaf2; --signal: #f0b43a; --signal-ink: #1a1408; --signal-soft: #2e2511;
    --map-land: #1b2738; --map-road: #6c7d96; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d141f; --surface: #141e2c; --ink: #e5eaf2; --muted: #9aa8bd; --line: #263347;
  --navy: #1a2d47; --on-navy: #e5eaf2; --signal: #f0b43a; --signal-ink: #1a1408; --signal-soft: #2e2511;
  --map-land: #1b2738; --map-road: #6c7d96; color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.65; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; }
.wrap { max-width: 1140px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
section { padding-block: 4rem; }
.section-head { max-width: 44rem; margin-bottom: 2rem; display: grid; gap: .6rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.section-head p { color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 0; border-radius: 6px; padding: .8rem 1.25rem; font: 600 .95rem var(--font-body); cursor: pointer; text-decoration: none; }
.btn-signal { background: var(--signal); color: var(--signal-ink); }
.btn-line { background: transparent; color: inherit; border: 1px solid currentColor; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }

/* Nav */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .8rem; }
.brand { display: flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; text-decoration: none; }
.brand small { font-family: var(--font-mono); font-weight: 500; font-size: .72rem; color: var(--muted); }
.nav nav { display: flex; gap: 1.4rem; align-items: center; font-weight: 500; }
.nav nav a { text-decoration: none; color: var(--muted); }
.nav nav a:hover { color: var(--ink); }
@media (max-width: 820px) { .nav nav a.opt { display: none; } }

/* Hero */
.hero { background: var(--navy); color: var(--on-navy); padding-block: 0; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; padding-block: 4rem; align-items: center; }
.hero .eyebrow { color: var(--signal); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; margin-block: .8rem 1.2rem; }
.hero p.lead { font-size: 1.1rem; opacity: .85; max-width: 36rem; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.facts { border: 1px solid rgba(255,255,255,.18); border-radius: 8px; overflow: hidden; min-width: 0; }
.facts h2 { font-size: .8rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; padding: .8rem 1.1rem; background: rgba(255,255,255,.06); }
.facts dl { margin: 0; display: grid; }
.facts dl div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .75rem 1.1rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .93rem; }
.facts dt { opacity: .65; }
.facts dd { margin: 0; font-weight: 500; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; padding-block: 3rem; } }
@media (max-width: 420px) { .facts dl div { grid-template-columns: 1fr; gap: 0; } }

/* Map + connectivity */
.map-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: start; }
.map-grid > * { min-width: 0; }
.map { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1rem; }
.map svg { width: 100%; height: auto; display: block; }
.map figcaption { font-size: .8rem; color: var(--muted); margin-top: .6rem; }
.conn { width: 100%; border-collapse: collapse; font-size: .95rem; }
.conn th, .conn td { text-align: left; padding: .75rem .4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.conn th { font-family: var(--font-mono); font-weight: 500; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.conn td:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.conn small { color: var(--muted); display: block; }
@media (max-width: 880px) { .map-grid { grid-template-columns: 1fr; } }

/* Plots */
.band { background: var(--surface); border-block: 1px solid var(--line); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.plots { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .95rem; }
.plots th, .plots td { text-align: left; padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
.plots thead th { background: var(--bg); font-family: var(--font-mono); font-weight: 500; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.plots tbody tr:last-child td { border-bottom: 0; }
.plots td:first-child { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plots .sqyd { color: var(--muted); font-family: var(--font-body); font-weight: 400; font-size: .82rem; display: block; }
.note { font-size: .85rem; color: var(--muted); margin-top: .8rem; }

/* Transfer steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; counter-reset: s; }
.steps li { counter-increment: s; border-top: 3px solid var(--signal); padding-top: 1rem; display: grid; gap: .4rem; align-content: start; }
.steps li::before { content: "Step " counter(s); font-family: var(--font-mono); font-size: .75rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.steps h3 { font-size: 1.05rem; }
.steps p { font-size: .9rem; color: var(--muted); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Guides */
.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.guide { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1.4rem; display: grid; gap: .6rem; align-content: start; text-decoration: none; transition: border-color .15s; }
.guide:hover { border-color: var(--navy); }
.guide .tag { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.guide h3 { font-size: 1.15rem; }
.guide p { color: var(--muted); font-size: .92rem; }
.guide .more { font-weight: 600; font-size: .9rem; margin-top: .3rem; }
.guide.update { background: var(--signal-soft); border-color: transparent; }
@media (max-width: 900px) { .guides { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .guides { grid-template-columns: 1fr; } }

/* Downloads */
.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.dl { border: 1px solid var(--line); border-radius: 8px; padding: 1.2rem; display: flex; gap: 1rem; align-items: center; background: var(--surface); }
.dl .ico { flex: none; width: 44px; height: 52px; border: 2px solid var(--navy); border-radius: 4px; display: grid; place-items: end center; padding-bottom: 4px; font-family: var(--font-mono); font-size: .6rem; font-weight: 500; color: var(--navy); }
.dl > div { min-width: 0; flex: 1; }
.dl h3 { font-size: 1rem; }
.dl p { font-size: .82rem; color: var(--muted); }
.dl button { flex: none; }
@media (max-width: 900px) { .downloads { grid-template-columns: 1fr; } }
:root[data-theme="dark"] .dl .ico { border-color: var(--muted); color: var(--muted); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dl .ico { border-color: var(--muted); color: var(--muted); } }

/* FAQ */
.faq { display: grid; gap: .6rem; max-width: 50rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.2rem; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin-top: .6rem; }

/* Expert band */
.expert { background: var(--navy); color: var(--on-navy); }
.expert .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; align-items: center; }
.expert h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.expert p { opacity: .85; max-width: 36rem; margin-top: .6rem; }
.phone { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; letter-spacing: .02em; font-variant-numeric: tabular-nums; user-select: all; }
.expert .contact { display: grid; gap: .5rem; justify-items: start; }
.expert .contact small { opacity: .7; }
footer { color: var(--muted); font-size: .85rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.6rem; }

/* Lead gate */
.gate { position: fixed; inset: 0; z-index: 20; background: rgba(8, 14, 24, .6); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.gate-box { background: var(--surface); color: var(--ink); border-radius: 10px; padding: 1.6rem; width: min(420px, 100%); display: grid; gap: 1rem; }
.gate-box h2 { font-size: 1.3rem; }
.gate-box p { color: var(--muted); font-size: .92rem; }
label { display: grid; gap: .3rem; font-size: .85rem; font-weight: 500; }
input { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: .7rem .8rem; width: 100%; }
.gate-actions { display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; }
.err { color: #c0392b; font-size: .85rem; }
.ok { color: var(--ink); background: var(--signal-soft); padding: .8rem; border-radius: 6px; font-size: .92rem; }
@media (prefers-reduced-motion: reduce) { .guide { transition: none; } }

/* Articles */
body { margin: 0; }
.page-hero { background: var(--navy); color: var(--on-navy); padding-block: 3rem; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-top: .5rem; }
.page-hero .eyebrow { color: var(--signal); }
.page-hero .meta { opacity: .75; margin-top: .8rem; font-size: .9rem; }
.article { max-width: 46rem; margin: 0 auto; padding-block: 3rem; }
.article > * + * { margin-top: 1.1rem; }
.article h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.article h3 { font-size: 1.25rem; margin-top: 1.8rem; }
.article img { height: auto; border-radius: 8px; }
.article figure { margin-inline: 0; }
.article figcaption { font-size: .85rem; color: var(--muted); }
.article table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.article th, .article td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; }
.article a { color: var(--navy); text-underline-offset: 3px; }
:root[data-theme="dark"] .article a { color: var(--signal); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .article a { color: var(--signal); } }
.featured { margin: 0 0 1.5rem; }
.featured img { width: 100%; height: auto; border-radius: 8px; }
.cta-box { background: var(--signal-soft); border-radius: 8px; padding: 1.4rem; display: grid; gap: .6rem; margin-top: 2.5rem; }
.cta-box strong { font-family: var(--font-display); font-size: 1.2rem; }
.pagination { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 2rem; }
.pagination .page-numbers { padding: .4rem .8rem; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.pagination .current { background: var(--navy); color: var(--on-navy); }
.guide img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; }
.wa-float { position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 15; background: #1f9d55; color: #fff; border-radius: 999px; padding: .75rem 1.1rem; font-weight: 600; text-decoration: none; box-shadow: 0 8px 24px -8px rgba(0,0,0,.4); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.alignwide, .alignfull { max-width: 100%; }

/* Plot listings */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: .45rem .95rem; font: 500 .88rem var(--font-body); text-decoration: none; cursor: pointer; font-variant-numeric: tabular-nums; }
.chip[aria-current="true"] { background: var(--navy); color: var(--on-navy); border-color: var(--navy); }
.plot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 900px) { .plot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .plot-grid { grid-template-columns: 1fr; } }
.plot-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1.2rem; display: grid; gap: .45rem; align-content: start; text-decoration: none; transition: border-color .15s; }
.plot-card:hover { border-color: var(--navy); }
.plot-top { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.plot-size { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; font-variant-numeric: tabular-nums; line-height: 1; }
.plot-size small { font-size: .85rem; font-weight: 600; color: var(--muted); }
.pill { font-size: .72rem; font-weight: 600; border-radius: 999px; padding: .2rem .6rem; background: var(--signal-soft); color: var(--ink); white-space: nowrap; }
.status-offer .pill { background: var(--line); }
.status-sold { opacity: .6; }
.status-sold .pill { background: var(--line); text-decoration: line-through; }
.plot-card h3 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; }
.plot-meta { font-size: .85rem; color: var(--muted); }
.plot-hl { font-size: .9rem; }
.plot-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: .7rem; margin-top: .3rem; }
.plot-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.plot-foot .more { font-size: .85rem; font-weight: 600; }
.plot-single { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; padding-block: 3rem; align-items: start; }
.plot-single > * { min-width: 0; }
@media (max-width: 880px) { .plot-single { grid-template-columns: 1fr; } }
.plot-facts { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 80px); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1.2rem; display: grid; gap: .8rem; }
.plot-facts dl { margin: 0; display: grid; }
.plot-facts dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.plot-facts dt { color: var(--muted); }
.plot-facts dd { margin: 0; font-weight: 600; text-align: right; }

/* WhatsApp rate buttons */
.btn-wa { background: #1f9d55; color: #fff; }
.btn-wa-line { background: transparent; color: #1f9d55; border: 2px solid #1f9d55; }
.rates-cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: 2rem; }
.rates-cta img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rates-body { padding: 1.5rem; display: grid; gap: .6rem; align-content: center; }
.rates-body strong { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.2; }
.rates-body p { color: var(--muted); }
.rates-btns { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .4rem; }
@media (max-width: 760px) { .rates-cta { grid-template-columns: 1fr; } .rates-cta img { aspect-ratio: 1200 / 630; height: auto; } }

/* Major investments */
.inv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 900px) { .inv-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .inv-grid { grid-template-columns: 1fr; } }
.inv { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1.3rem; display: grid; gap: .5rem; align-content: start; }
.inv-logo { height: 64px; display: flex; align-items: center; }
.inv-logo img { max-height: 56px; width: auto; max-width: 180px; object-fit: contain; }
.inv-word { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: .02em; color: var(--navy); border: 2px solid var(--navy); border-radius: 6px; padding: .3rem .7rem; }
:root[data-theme="dark"] .inv-word { color: var(--ink); border-color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .inv-word { color: var(--ink); border-color: var(--ink); } }
.inv h3 { font-size: 1.05rem; }
.inv p { color: var(--muted); font-size: .9rem; }
.inv dl { margin: .3rem 0 0; display: grid; }
.inv dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-top: 1px solid var(--line); font-size: .88rem; }
.inv dt { color: var(--muted); }
.inv dd { margin: 0; font-weight: 600; text-align: right; }
.inv-src { font-size: .8rem; color: var(--muted); }

/* Calculators */
.calcs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 900px) { .calcs { grid-template-columns: 1fr; } }
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1.3rem; display: grid; gap: .8rem; align-content: start; }
.calc h3 { font-size: 1.1rem; }
.calc select { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: .7rem .8rem; width: 100%; }
.calc-out { display: grid; background: var(--bg); border-radius: 6px; padding: .4rem .9rem; font-variant-numeric: tabular-nums; }
.calc-out div { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.calc-out div:last-child { border-bottom: 0; }
.calc-out span { color: var(--muted); }
.calc-out .total b { font-size: 1.05rem; }
.calc-out small { font-weight: 500; color: var(--muted); }

/* Estates */
.estates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 1000px) { .estates { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .estates { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .estates { grid-template-columns: 1fr; } }
.estate { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--signal); border-radius: 8px; padding: 1.1rem; display: grid; gap: .4rem; align-content: start; text-decoration: none; }
.estate:hover { border-color: var(--navy); border-top-color: var(--signal); }
.estate h3 { font-size: 1.05rem; }
.estate p { font-size: .85rem; color: var(--muted); }
.estate .tag { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* Long-scroll homepage: sticky section bar + timeline */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
section[id] { scroll-margin-top: calc(env(safe-area-inset-top, 0px) + var(--navh, 57px) + 64px); }
[hidden] { display: none !important; }
.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--navh, 57px)); z-index: 4; background: var(--surface); border-bottom: 1px solid var(--line); }
.toc .wrap { display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: none; padding-block: .45rem; }
.toc .wrap::-webkit-scrollbar { display: none; }
.toc a { flex: none; text-decoration: none; color: var(--muted); font-size: .86rem; font-weight: 500; padding: .35rem .75rem; border-radius: 999px; white-space: nowrap; }
.toc a:hover { color: var(--ink); }
.toc a[aria-current="true"] { background: var(--navy); color: var(--on-navy); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 52rem; }
.timeline li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.5rem; padding: 0 0 1.6rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(7.5rem + .75rem - 6px); top: .35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--signal); }
.timeline li::after { content: ""; position: absolute; left: calc(7.5rem + .75rem - 1px); top: 1.2rem; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.build::before { background: var(--surface); border: 3px solid var(--signal); }
.timeline li.plan::before { background: var(--surface); border: 2px dashed var(--muted); }
.timeline .when { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); text-align: right; padding-top: .15rem; font-variant-numeric: tabular-nums; }
.timeline li > div { padding-left: 1rem; min-width: 0; display: grid; gap: .3rem; }
.timeline h3 { font-size: 1.1rem; }
.timeline p { color: var(--muted); font-size: .95rem; }
@media (max-width: 560px) {
  .timeline li { grid-template-columns: 1fr; gap: .2rem; padding-left: 1.6rem; }
  .timeline li::before { left: 0; }
  .timeline li::after { left: 5px; }
  .timeline .when { text-align: left; }
  .timeline li > div { padding-left: 0; }
}
.legend { display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: .82rem; color: var(--muted); margin-top: .4rem; }
.legend span { display: inline-flex; align-items: center; gap: .4rem; }
.legend span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--signal); }
.legend .build::before { background: var(--surface); border: 3px solid var(--signal); }
.legend .plan::before { background: var(--surface); border: 2px dashed var(--muted); }
.sources { margin: 0; padding-left: 1.2rem; display: grid; gap: .45rem; max-width: 52rem; }
.sources a { color: var(--ink); text-underline-offset: 3px; }

/* Round 4: plot photos, highlights, map notes, transfer detail */
.plot-card { padding: 0; overflow: hidden; gap: 0; }
.plot-photo { position: relative; display: block; aspect-ratio: 16 / 10; max-width: 100%; background: var(--map-land); overflow: hidden; }
.plot-photo img, .plot-photo svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.plot-photo .pill { position: absolute; top: .7rem; left: .7rem; }
.photo-count { position: absolute; right: .7rem; bottom: .7rem; background: rgba(10, 18, 30, .72); color: #fff; font-size: .75rem; padding: .2rem .55rem; border-radius: 999px; }
.plot-body { padding: 1.1rem 1.2rem 1.2rem; display: grid; gap: .5rem; align-content: start; }
.plot-card h3 a { text-decoration: none; }
.plot-card h3 a:hover { text-decoration: underline; }
.hl-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.hl-chips li { font-size: .75rem; font-weight: 600; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .6rem; }
.plot-wa { width: 100%; margin-top: .3rem; }
.plot-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-bottom: 1.5rem; }
.plot-gallery a { display: block; border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; }
.plot-gallery a.main { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.plot-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hl-list { columns: 2; padding-left: 1.1rem; }
@media (max-width: 520px) { .hl-list { columns: 1; } .plot-gallery { grid-template-columns: repeat(3, 1fr); } }

.map-big { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .8rem; margin: 0 0 1.5rem; }
.map-big svg { width: 100%; height: auto; display: block; }
.map-big figcaption { font-size: .8rem; color: var(--muted); padding: .5rem .3rem 0; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }
.why { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1.1rem 1.2rem; display: grid; grid-template-columns: 2rem 1fr; gap: .2rem .8rem; align-content: start; }
.why .num { grid-row: span 3; width: 2rem; height: 2rem; border-radius: 50%; background: var(--navy); color: var(--on-navy); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: .95rem; }
.why.rail .num { background: var(--signal); color: var(--signal-ink); }
.why.plan .num { background: var(--surface); color: var(--ink); border: 2px dashed var(--muted); }
.why h3 { font-size: 1rem; }
.why .st { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.why p { font-size: .9rem; color: var(--muted); }

.transfer-detail { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; margin-top: 2.5rem; align-items: start; }
.transfer-detail > * { min-width: 0; }
@media (max-width: 880px) { .transfer-detail { grid-template-columns: 1fr; } }
.transfer-detail h3 { font-size: 1.15rem; margin-bottom: .7rem; }
.fee-table { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.fee-table th, .fee-table td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.fee-table th { background: var(--bg); font-family: var(--font-mono); font-weight: 500; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fee-table td:last-child { font-weight: 600; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.checklist li { display: grid; grid-template-columns: 1.2rem 1fr; gap: .6rem; font-size: .93rem; }
.checklist li::before { content: ""; width: 1rem; height: 1rem; margin-top: .25rem; border: 2px solid var(--signal); border-radius: 3px; }
.rules { margin: 1.5rem 0 0; padding-left: 1.1rem; display: grid; gap: .45rem; font-size: .93rem; color: var(--muted); }
.rules b { color: var(--ink); }
.liaison { background: var(--signal-soft); border-radius: 8px; padding: 1.2rem 1.3rem; margin-top: 1.5rem; display: grid; gap: .6rem; }
.liaison strong { font-family: var(--font-display); font-size: 1.15rem; }
.inv .note-line { font-size: .88rem; color: var(--ink); }
.inv .verified { font-size: .78rem; color: var(--muted); }

.nav-cta .sm { display: none; }
@media (max-width: 560px) { .nav-cta .lg { display: none; } .nav-cta .sm { display: inline; } .nav-cta { padding: .65rem 1rem; } }

@media (max-width: 700px) { .map-big { overflow-x: auto; } .map-big svg { min-width: 680px; } .map-big figcaption { position: sticky; left: 0; max-width: calc(100vw - 60px); } }

.inc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 900px) { .inc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .inc-grid { grid-template-columns: 1fr; } }
.inc { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1.2rem; display: grid; gap: .35rem; align-content: start; }
.inc-big { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; color: var(--navy); line-height: 1.1; font-variant-numeric: tabular-nums; }
:root[data-theme="dark"] .inc-big { color: var(--signal); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .inc-big { color: var(--signal); } }
.inc h3 { font-size: 1.02rem; }
.inc p { font-size: .9rem; color: var(--muted); }
.inc-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.inc-notes > div { display: grid; gap: .4rem; align-content: start; min-width: 0; }
.inc-notes h3 { font-size: 1.05rem; }
.inc-notes p { font-size: .93rem; color: var(--muted); }
@media (max-width: 880px) { .inc-notes { grid-template-columns: 1fr; } }
.transfer-detail.slim { grid-template-columns: 1fr 1fr; }
@media (max-width: 880px) { .transfer-detail.slim { grid-template-columns: 1fr; } }
