/* Bill Temple, Realtor: shared site styles.
   Look: black and white with a soft ocean-blue accent (chosen by Bill, 2026-11-06).
   Headings and prices use Cormorant Garamond; everything else uses Jost.
   Other parts of the site (forms/, listings) read these variables, so keep the names. */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=Jost:wght@300;400;500&display=swap");

:root {
  --bg: #000000;        /* page background */
  --alt: #0c0c0c;       /* every other section, cards */
  --card: #0c0c0c;
  --text: #f5f5f3;      /* main text */
  --muted: #9a9a9a;     /* small print, labels */
  --border: #262626;    /* thin lines */
  --brand: #9cc9e2;     /* ocean blue: links, prices, labels */
  --brand-dark: #f5f5f3;
  --accent: #9cc9e2;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 0px;
  --max: 1150px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; font-family: var(--sans); font-weight: 300; color: var(--text); background: var(--bg); line-height: 1.6; }
a { color: var(--brand); }
img, video { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-top: 0; }
.container { max-width: var(--max); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* Small uppercase label above a heading */
.eyebrow { color: var(--brand); letter-spacing: .3em; text-transform: uppercase; font-size: .75rem; font-weight: 400; margin: 0 0 8px; }

/* Header */
.site-header { background: var(--bg); color: var(--text); border-bottom: 1px solid var(--border); position: relative; z-index: 5; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
.logo { color: var(--text); text-decoration: none; font-family: var(--serif); font-weight: 500; font-size: 1.5rem; letter-spacing: .28em; text-transform: uppercase; }
.logo span { display: none; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a { color: var(--text); text-decoration: none; letter-spacing: .16em; text-transform: uppercase; font-size: .75rem; font-weight: 400; opacity: .85; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
/* On the home page the header floats over the video */
.home .site-header { position: absolute; top: 0; left: 0; right: 0; background: linear-gradient(rgba(0,0,0,.6), transparent); border-bottom: 0; }

/* Hero: full-width video with text on top */
.hero { position: relative; min-height: clamp(480px, 88vh, 860px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #050505; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.15) 30%, rgba(0,0,0,.92)); }
.hero .container { position: relative; z-index: 1; width: 100%; padding-top: 140px; padding-bottom: 48px; }
.hero h1 { margin: 0 0 10px; max-width: 16ch; }
.hero p { font-size: 1.1rem; margin: 0 0 26px; color: #d8d8d6; max-width: 52ch; }
.hero .eyebrow { color: #fff; font-size: .75rem; margin-bottom: 8px; }
.hero-search { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 10px; background: rgba(0,0,0,.6); border: 1px solid #333; padding: 10px; max-width: 900px; }
.hero-search input, .hero-search select { font: inherit; font-weight: 300; color: var(--text); background: transparent; border: 0; border-bottom: 1px solid #555; padding: 10px 4px; min-width: 0; width: 100%; }
.hero-search select option { color: #000; }
@media (max-width: 640px) { .hero-search { grid-template-columns: 1fr 1fr; } .hero-search input, .hero-search .btn { grid-column: 1 / -1; } }

/* Buttons */
.btn { display: inline-block; background: #fff; color: #000; border: 1px solid #fff; padding: 12px 26px; border-radius: 0; font: inherit; font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--brand); border-color: var(--brand); }
.btn.secondary { background: transparent; color: #fff; border-color: #fff; }
.btn.secondary:hover { background: #fff; color: #000; }

section { padding: 64px 0; }
.alt { background: var(--alt); }

/* Big numbers strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--border); }
.stats div { padding: 28px 12px; text-align: center; border-right: 1px solid var(--border); }
.stats div:last-child { border-right: 0; }
.stats strong { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 4.5vw, 3.3rem); line-height: 1; color: #fff; }
.stats span { font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stats div:nth-child(2) { border-right: 0; } .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--border); } }

/* Meet Bill */
.meet { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.meet .portrait { aspect-ratio: 4/5; background: #111 center/cover; border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; }
.meet p { color: #c8c8c8; max-width: 56ch; }
@media (max-width: 760px) { .meet { grid-template-columns: 1fr; } .meet .portrait { max-width: 300px; } }

/* Search / filters */
.filters { background: var(--card); border: 1px solid var(--border); padding: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 24px; }
.filters label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.filters input, .filters select { padding: 9px; border: 1px solid #333; border-radius: 0; font: inherit; font-size: 1rem; text-transform: none; letter-spacing: 0; background: #000; color: var(--text); }

/* Listing cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.card { background: transparent; border: 0; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; background: #111; transition: transform .4s, opacity .2s; }
.card:hover img { opacity: .85; }
.card-body { padding: 14px 0 6px; border-bottom: 1px solid var(--border); }
.price { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; color: var(--brand); font-variant-numeric: lining-nums tabular-nums; }
.facts { color: var(--muted); margin: 2px 0; font-size: .9rem; letter-spacing: .05em; }
.address { margin: 0; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: #c8c8c8; }
.badge { display: inline-block; font-size: .65rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; background: transparent; color: #fff; border: 1px solid #555; padding: 2px 8px; border-radius: 0; margin-bottom: 8px; }
.badge.pending { color: var(--muted); }
.result-count { color: var(--muted); margin-bottom: 12px; }

/* Neighborhood tiles */
.hoods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.hood { position: relative; aspect-ratio: 3/4; overflow: hidden; display: block; text-decoration: none; color: #fff; background: #111 center/cover; }
.hood span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 16px; background: linear-gradient(transparent, rgba(0,0,0,.9)); font-family: var(--serif); font-size: 1.5rem; }
@media (max-width: 760px) { .hoods { grid-template-columns: 1fr 1fr; } }

/* Recently sold table */
.sold { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sold td { padding: 14px 8px; border-bottom: 1px solid var(--border); }
.sold td:last-child { text-align: right; color: var(--brand); font-family: var(--serif); font-size: 1.3rem; }
.sold .note { font-size: .7rem; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }

/* Client forms row on the home page */
.form-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 1px solid var(--border); }
.form-links a { display: flex; flex-direction: column; gap: 6px; padding: 22px 20px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text); }
.form-links strong { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; }
.form-links span { color: var(--muted); font-size: .9rem; }
.form-links b { color: var(--brand); font-weight: 400; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }
.form-links a:hover { background: var(--alt); }

.quote { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); max-width: 30ch; line-height: 1.3; margin: 0 0 12px; }
.quote-by { color: var(--muted); letter-spacing: .14em; font-size: .78rem; text-transform: uppercase; }

/* Contact block */
.connect { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); }
.connect form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.connect input, .connect textarea { font: inherit; font-weight: 300; background: transparent; color: var(--text); border: 0; border-bottom: 1px solid #444; padding: 10px 0; min-width: 0; width: 100%; }
.connect .full, .connect textarea, .connect .btn { grid-column: 1 / -1; }
@media (max-width: 760px) { .connect { grid-template-columns: 1fr; } }

/* Listing detail */
.detail { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.gallery > img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.gallery .thumbs img { width: 90px; aspect-ratio: 4/3; object-fit: cover; cursor: pointer; opacity: .7; }
.thumbs img:hover { opacity: 1; }
.panel { background: var(--card); border: 1px solid var(--border); padding: 20px; }
.panel form { display: flex; flex-direction: column; gap: 10px; }
.panel input, .panel textarea { padding: 10px; border: 1px solid #333; border-radius: 0; font: inherit; background: #000; color: var(--text); }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; padding: 0; list-style: none; }
.specs li { background: var(--card); border: 1px solid var(--border); padding: 10px 12px; }
.specs strong { display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 400; }

.notice { background: #0b1720; border: 1px solid #1f3a4d; color: #cfe3ef; padding: 10px 14px; font-size: .9rem; }

/* Footer */
.site-footer { background: var(--bg); color: var(--muted); padding: 36px 0; font-size: .85rem; border-top: 1px solid var(--border); }
.site-footer a { color: #ddd; }
.mls-disclaimer { margin-top: 12px; font-size: .75rem; color: #777; }

@media (max-width: 800px) {
  .detail { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media { display: none; }
  .hero { background: #050505 url("../media/hero-poster.jpg") center/cover; }
}
@media (max-width: 520px) {
  .nav { gap: 10px 16px; }
  .nav a { font-size: .68rem; letter-spacing: .12em; }
  .logo { font-size: 1.25rem; }
}
.stats.stats-3 { grid-template-columns: repeat(3, 1fr); }
.stats.stats-3 strong { font-size: clamp(2rem, 4vw, 3rem); }
img.portrait { width: 100%; height: auto; object-fit: cover; }
@media (max-width: 760px) { .stats.stats-3 { grid-template-columns: 1fr; } .stats.stats-3 div { border-right: 0; border-bottom: 1px solid var(--border); } .stats.stats-3 div:last-child { border-bottom: 0; } }
.brokerage-logo { height: 44px; width: auto; margin-bottom: 14px; }
.live-listings .sample-only { display: none; }

/* Market update page (market.html) and home page market snapshot */
.market-top { padding: 48px 0 32px; }
.market-top h1 { margin: 0 0 12px; max-width: 20ch; }
.market-lede { color: #c8c8c8; max-width: 62ch; margin: 0 0 8px; }
.market-updated { color: var(--muted); font-size: .85rem; margin: 0; }
.stats em { display: block; font-style: normal; color: var(--muted); font-size: .85rem; margin-top: 6px; }
.market-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.market-headlines { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.market-headlines li { padding: 14px 0; border-bottom: 1px solid var(--border); color: #d8d8d6; }
.market-take { font-family: var(--serif); font-size: 1.35rem; line-height: 1.4; margin: 24px 0 0; }
.market-take:empty { display: none; }
.market-cta { border: 1px solid var(--border); background: var(--card); padding: 28px; }
.market-cta h3 { font-size: 1.6rem; margin: 0 0 10px; }
.market-cta p:not(.eyebrow) { color: #c8c8c8; }
@media (max-width: 860px) { .market-cols { grid-template-columns: 1fr; } }

.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.chart { margin: 0; min-width: 0; }
.chart figcaption h3 { font-size: 1.35rem; margin: 0; }
.chart figcaption p { color: var(--muted); font-size: .85rem; margin: 2px 0 10px; }
.chart-plot { position: relative; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; touch-action: pan-y; }
.chart svg:focus-visible { outline: 1px solid var(--brand); outline-offset: 4px; }
.chart .grid { stroke: #222; stroke-width: 1; }
.chart .tick { fill: var(--muted); font-family: var(--sans); font-size: 14px; font-variant-numeric: tabular-nums; }
.chart .line { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: var(--brand); stroke: var(--bg); stroke-width: 2; }
.chart .hair { stroke: #666; stroke-width: 1; }
.chart-tip { position: absolute; pointer-events: none; background: #111; border: 1px solid #333; padding: 6px 10px; white-space: nowrap; font-size: .8rem; }
.chart-tip strong { display: block; font-weight: 500; font-size: .95rem; color: var(--text); font-variant-numeric: tabular-nums; }
.chart-tip span { color: var(--muted); }
.chart details { margin-top: 8px; font-size: .85rem; color: var(--muted); }
.chart summary { cursor: pointer; color: var(--brand); }

.table-wrap { overflow-x: auto; }
.mk-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.mk-table th, .mk-table td { padding: 12px 10px; border-bottom: 1px solid var(--border); text-align: right; white-space: nowrap; }
.mk-table th:first-child { text-align: left; }
.mk-table thead th { font-size: .7rem; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.mk-table tbody th { font-weight: 400; color: var(--text); }
.mk-table.small th, .mk-table.small td { padding: 4px 8px; }
.market-sources p, .market-sources li { color: var(--muted); font-size: .9rem; max-width: 75ch; }
.market-sources h2 { font-size: 1.5rem; }

/* Home value form (home-value.html) */
.hv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.hv-row-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 640px) { .hv-row-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .hv-row { grid-template-columns: 1fr; } .hv-row-4 { grid-template-columns: 1fr 1fr; } }
.hv-market { border-left: 2px solid var(--brand); padding-left: 14px; color: #d8d8d6 !important; }
.hv-fine { color: var(--muted); font-size: .85rem; }

/* Home page: home value + market snapshot */
.value-band { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.value-band .snapshot { border-top: 1px solid var(--border); margin: 0; padding: 0; list-style: none; }
.value-band .snapshot li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.value-band .snapshot span { color: var(--muted); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.value-band .snapshot strong { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; color: var(--text); font-variant-numeric: lining-nums tabular-nums; }
.value-band .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (max-width: 760px) { .value-band { grid-template-columns: 1fr; } }

/* Neighborhood guides (neighborhoods.html and neighborhoods/*.html, built by scripts/update-neighborhoods.mjs) */
.map-land { fill: #151515; stroke: #3a3a3a; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.map-water { fill: #03080b; }
.map-dot { fill: #5d7f92; }
.map-dot.on { fill: var(--brand); }
.map-ring { fill: none; stroke: var(--brand); stroke-width: 1.5; opacity: .6; }
.map-label { fill: #c8c8c8; font-family: var(--sans); font-size: 20px; font-weight: 400; letter-spacing: .04em; }
.map-label.on { fill: #fff; font-family: var(--serif); font-size: 28px; }
.coast-map { border-block: 1px solid var(--border); background: #000; }
.coast-map svg { width: 100%; height: auto; display: block; }
.coast-map a { cursor: pointer; }
.coast-map a:hover .map-dot, .coast-map a:focus-visible .map-dot { fill: var(--brand); }
.coast-map a:hover .map-label, .coast-map a:focus-visible .map-label { fill: #fff; text-decoration: underline; }
.coast-map a:focus-visible { outline: none; }

.town-hero { min-height: clamp(440px, 72vh, 720px); }
.town-hero.is-map { background: #000; }
.town-hero.is-map::after { background: linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.1)), linear-gradient(transparent 55%, rgba(0,0,0,.9)); }
.town-hero img.hero-media { object-fit: cover; }
.town-hero .eyebrow { max-width: none; }
.town-hero .eyebrow a { color: inherit; text-decoration: none; }
.town-hero .eyebrow a:hover { text-decoration: underline; }
.town-hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
.town-hero .actions, .town .actions, .market .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.town-hero .actions { margin-top: 0; }
.media-credit { font-size: .75rem !important; color: #9a9a9a !important; margin: 18px 0 0 !important; letter-spacing: .08em; }
@media (prefers-reduced-motion: reduce) { .town-hero video.hero-media { display: none; } }

.town-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .town-cols { grid-template-columns: 1fr; } }
.town-intro p:not(.eyebrow), .town-text { color: #c8c8c8; max-width: 60ch; }
.glance { border: 1px solid var(--border); background: var(--card); padding: 24px 24px 12px; }
.glance dl { margin: 0; }
.glance dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.glance dt { color: var(--muted); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.glance dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.glance dd em { display: block; font-style: normal; color: var(--muted); font-size: .78rem; }

.places { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border-top: 1px solid var(--border); }
.places li { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.places strong { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; line-height: 1.2; }
.places span { color: #b8b8b8; font-size: .95rem; }

.zip-table tbody th span { color: var(--muted); font-size: .85rem; margin-left: 6px; }
.schools { list-style: none; margin: 0 0 16px; padding: 0; border-top: 1px solid var(--border); }
.schools li { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.schools strong { display: block; font-weight: 400; }
.schools span:not(.grade) { color: var(--muted); font-size: .88rem; }
.grade { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--brand); color: var(--brand); font-family: var(--serif); font-size: 1.5rem; }

.nearby { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.nearby li { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--border); }
.nearby a { color: var(--text); font-family: var(--serif); font-size: 1.5rem; text-decoration: none; }
.nearby a:hover { color: var(--brand); }
.nearby span { color: var(--muted); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }

.town-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.town-card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--border); }
.town-card-img { display: block; aspect-ratio: 4/3; background: #000 center/cover; border: 1px solid var(--border); transition: opacity .2s; }
.town-card:hover .town-card-img { opacity: .8; }
.town-card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 0 18px; }
.town-card small { color: var(--brand); letter-spacing: .24em; text-transform: uppercase; font-size: .68rem; }
.town-card strong { font-family: var(--serif); font-weight: 500; font-size: 1.9rem; line-height: 1.1; }
.town-card span { color: #b8b8b8; font-size: .95rem; }
.town-card em { font-style: normal; color: var(--muted); font-size: .82rem; letter-spacing: .04em; margin-top: 4px; }
.fair-housing { color: #777 !important; font-size: .8rem !important; margin-top: 16px; }
@media (max-width: 760px) {
  .town-map .map-label { display: none; }
  .town-hero .container { padding-top: 190px; }
}

/* Buyer and seller guides (guides.html and guides/*.html, built by scripts/build-guides.mjs) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.guide .market-top .eyebrow a { color: inherit; text-decoration: none; }
.guide .market-top .eyebrow a:hover { text-decoration: underline; }
.guide-take { margin: 28px 0 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--brand); max-width: 62ch; }
.guide-take p { font-family: var(--serif); font-size: clamp(1.2rem, 2.4vw, 1.45rem); line-height: 1.4; margin: 0 0 8px; color: var(--text); }
.guide-take footer { color: var(--muted); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }

.guide-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding-top: 24px; padding-bottom: 64px; }
.guide-toc { position: sticky; top: 24px; border-top: 1px solid var(--border); padding-top: 18px; }
.guide-toc ol { list-style: none; margin: 0; padding: 0; }
.guide-toc li { border-bottom: 1px solid var(--border); }
.guide-toc a { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; color: #c8c8c8; text-decoration: none; font-size: .92rem; line-height: 1.35; }
.guide-toc a span { color: var(--brand); font-family: var(--serif); font-size: 1.05rem; min-width: 1.6em; }
.guide-toc a:hover { color: #fff; }
@media (max-width: 860px) {
  .guide-layout { grid-template-columns: 1fr; padding-top: 0; }
  .guide-toc { position: static; }
  .guide-toc ol { columns: 2; column-gap: 24px; }
  .guide-toc li { break-inside: avoid; }
}
@media (max-width: 520px) { .guide-toc ol { columns: 1; } }

.guide-step { position: relative; padding: 36px 0 40px; border-top: 1px solid var(--border); scroll-margin-top: 16px; }
.guide-step:first-child { border-top: 0; padding-top: 8px; }
.guide-num { display: block; font-family: var(--serif); font-size: 3.2rem; line-height: 1; color: var(--brand); margin-bottom: 6px; font-variant-numeric: lining-nums; }
.guide-step h2 { margin: 0 0 10px; }
.guide-step > p { color: #c8c8c8; max-width: 66ch; }
.guide-step > .guide-summary { color: var(--text); font-size: 1.1rem; margin-top: 0; }
.guide-check { list-style: none; margin: 18px 0; padding: 0; border-top: 1px solid var(--border); max-width: 66ch; columns: 2; column-gap: 32px; }
.guide-check li { break-inside: avoid; padding: 10px 0 10px 26px; border-bottom: 1px solid var(--border); position: relative; color: #d8d8d6; }
.guide-check li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 10px; height: 10px; border: 1px solid var(--brand); }
@media (max-width: 640px) { .guide-check { columns: 1; } }
.guide-local { margin: 22px 0 0; padding: 16px 20px; background: #07131b; border-left: 2px solid var(--brand); max-width: 66ch; }
.guide-local .eyebrow { margin-bottom: 4px; }
.guide-local p:not(.eyebrow) { margin: 0; color: #d8e6ee; }
.guide-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 18px 0 0; }
.guide-links a { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.guide-links a:hover { color: #fff; }
.guide-fine { border-top: 1px solid var(--border); padding-top: 24px; }

.guide-hub { padding-top: 8px; }
.guide-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.guide-card { display: flex; flex-direction: column; gap: 8px; padding: 32px; border: 1px solid var(--border); background: var(--card); color: var(--text); text-decoration: none; transition: border-color .2s; }
.guide-card:hover { border-color: var(--brand); }
.guide-card small { color: var(--brand); letter-spacing: .24em; text-transform: uppercase; font-size: .68rem; }
.guide-card strong { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 3.4vw, 2.4rem); line-height: 1.1; }
.guide-card > span { color: #b8b8b8; }
.guide-card ol { margin: 8px 0 4px; padding-left: 1.3em; color: #c8c8c8; font-size: .92rem; }
.guide-card ol li:last-child { list-style: none; color: var(--muted); margin-left: -1.3em; }
.guide-card em { font-style: normal; color: var(--brand); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; margin-top: auto; padding-top: 8px; }
.guide-essentials li a { margin-top: 8px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.guide-related { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 8px; }

.ask-ways { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--border); }
.ask-ways li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.ask-ways span { color: var(--muted); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.ask-ways a { font-family: var(--serif); font-size: 1.4rem; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.ask-ways a:hover { color: var(--brand); }
.connect .ask-form { display: block; }
.connect .ask-form .btn { width: auto; }
.ask-form select, .ask-form input, .ask-form textarea { color-scheme: dark; }
.ask-done { border: 1px solid var(--border); background: var(--card); padding: 28px; }
.ask-done h3 { font-size: 1.6rem; margin: 0 0 8px; }
.ask-done p { color: #c8c8c8; margin: 0; }
