/* ────────────────────────────────────────────────────────────
   Sunnyvale Realtor Rankings — 2026
   Design language: editorial, flat, square-cornered. Light
   geometric display face for headings, Montserrat for body,
   DIN-style condensed uppercase for labels. Charcoal / gold /
   off-white with a single deep-blue accent block.
   ──────────────────────────────────────────────────────────── */

:root {
  --charcoal: #2D2D2D;
  --black: #000000;
  --white: #FFFFFF;
  --gold: #B28E59;
  --gold-dark: #97794C;
  --gold-light: #D9C7AC;
  --blue: #154A69;
  --grey: #FAFAFA;
  --grey-2: #F4F4F4;
  --mouse: #ABABAB;
  --line: rgba(45, 45, 45, 0.10);
  --line-strong: rgba(45, 45, 45, 0.20);
  --tint: rgba(45, 45, 45, 0.05);
  --muted: rgba(45, 45, 45, 0.70);
  --faint: rgba(45, 45, 45, 0.50);

  --f-head: 'Albert Sans', 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'Montserrat', Helvetica, Arial, sans-serif;
  --f-label: 'Barlow', 'Helvetica Neue', Arial, sans-serif;

  --page: 1440px;
  --margin: 48px;
  --main-col: 720px;
  --side-col: 380px;
  --topbar-h: 46px;
  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.08px;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; }

[id] { scroll-margin-top: calc(var(--topbar-h) + var(--header-h) + 24px); }

/* ── Type scale ── */
.h-md, h1, h2 {
  font-family: var(--f-head);
  font-weight: 300;
  font-size: 36px;
  line-height: 40px;
  letter-spacing: -1.6px;
  color: var(--charcoal);
}
.h-lg {
  font-family: var(--f-head);
  font-weight: 300;
  font-size: 48px;
  line-height: 48px;
  letter-spacing: -2.2px;
  color: var(--charcoal);
}
.h-sm, h3 {
  font-family: var(--f-head);
  font-weight: 300;
  font-size: 25px;
  line-height: 28px;
  letter-spacing: -0.8px;
  color: var(--charcoal);
}
.h-xs, h4 {
  font-family: var(--f-head);
  font-weight: 400;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: -0.4px;
  color: var(--charcoal);
}

.label,
.label-md,
.label-sm,
.label-lg {
  font-family: var(--f-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  line-height: 1.1;
}
.label-lg { font-size: 16px; font-weight: 700; }
.label-md { font-size: 14px; }
.label-sm { font-size: 12px; }
.label.gold, .gold { color: var(--gold); }

.body-lg { font-size: 17px; line-height: 26px; }
.body-md { font-size: 14px; line-height: 24px; }
.body-sm { font-size: 12px; line-height: 22px; }

.muted { color: var(--muted); }

p a, .textlink {
  color: var(--gold);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
p a:hover, .textlink:hover { color: var(--gold-dark); }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--margin);
}

.content-sidebar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}

.content-sidebar > main {
  width: var(--main-col);
  max-width: 100%;
  flex-shrink: 0;
}

.content-sidebar > aside {
  width: var(--side-col);
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--topbar-h) + var(--header-h) + 16px);
  max-height: calc(100vh - var(--topbar-h) - var(--header-h) - 32px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  padding-right: 4px;
}

.section { padding: 120px 0; }
.section-slim { padding: 64px 0; }
.section-grey { background: var(--grey); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 20px;
  font-family: var(--f-label);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  background: var(--gold);
  color: var(--white);
  border: 0;
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .25s ease, color .25s ease;
}
.btn:hover { background: var(--gold-dark); }

.btn-secondary { background: var(--tint); color: var(--charcoal); }
.btn-secondary:hover { background: rgba(45,45,45,0.10); }

.btn-ghost { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.5); }
.btn-ghost:hover { background: rgba(255,255,255,0.10); }

.btn .arrow { font-size: 14px; transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.header-actions .btn .short { display: none; }
@media (max-width: 760px) { .header-actions .btn .short { display: inline; } }

/* ── Top bar ── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--topbar-h);
  background: var(--blue);
  color: var(--white);
}
.topbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar .label-sm { font-size: 12px; font-weight: 500; letter-spacing: 1px; opacity: .92; }
.topbar a { text-decoration: none; color: var(--white); }
.topbar a:hover { text-decoration: underline; text-underline-offset: 3px; }
.topbar .sep { margin: 0 12px; opacity: .55; }

/* ── Header ── */
.site-header {
  position: fixed;
  top: var(--topbar-h);
  left: 0; right: 0;
  z-index: 999;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.wordmark {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--charcoal);
  flex-shrink: 0;
}
.wordmark .mark {
  font-family: var(--f-head);
  font-weight: 300;
  font-size: 21px;
  line-height: 1;
  letter-spacing: 4.5px;
  text-transform: uppercase;
  color: var(--charcoal);
}
.wordmark .mark strong { font-weight: 500; }
.wordmark .place {
  margin-top: 6px;
  font-family: var(--f-label);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--gold);
}

.main-nav { display: flex; align-items: stretch; height: 100%; flex: 1; justify-content: center; }
.main-nav a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 16px;
  font-family: var(--f-label);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px; bottom: -1px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

.header-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ── Hero ── */
.post-hero {
  padding-top: calc(var(--topbar-h) + var(--header-h) + 64px);
  padding-bottom: 48px;
}
.post-hero .container {
  display: flex;
  align-items: flex-end;
  gap: 48px;
}
.hero-visual {
  flex: 1;
  min-width: 0;
  aspect-ratio: 1.3 / 1;
  max-height: 720px;
  background: var(--blue);
  position: relative;
  overflow: hidden;
  color: var(--white);
}
.hero-visual .grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 96px 96px;
}
.hero-visual .glow {
  position: absolute;
  width: 70%; aspect-ratio: 1;
  right: -20%; top: -20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(178,142,89,0.35), transparent 65%);
}
.hero-seal {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
}
.seal-ring {
  width: min(420px, 62%);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 6px;
}
.seal-ring::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid var(--gold);
  border-radius: 50%;
}
.seal-ring .seal-label {
  font-family: var(--f-label);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-light);
}
.seal-ring .seal-year {
  font-family: var(--f-head);
  font-weight: 200;
  font-size: clamp(64px, 8vw, 112px);
  line-height: 0.95;
  letter-spacing: -5px;
  color: var(--white);
}
.seal-ring .seal-sub {
  font-family: var(--f-head);
  font-weight: 300;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--white);
}
.seal-ring .seal-place {
  margin-top: 10px;
  font-family: var(--f-label);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}
.hero-corner {
  position: absolute;
  font-family: var(--f-label);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.hero-corner.tl { top: 28px; left: 32px; }
.hero-corner.tr { top: 28px; right: 32px; }
.hero-corner.bl { bottom: 28px; left: 32px; }
.hero-corner.br { bottom: 28px; right: 32px; }

.hero-text {
  width: var(--side-col);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 8px;
}
.hero-text .eyebrow { margin-bottom: 20px; color: var(--gold); }
.hero-text h1 { margin-bottom: 20px; }
.hero-text .lede { color: var(--charcoal); margin-bottom: 28px; }

.hero-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin-bottom: 32px;
}
.hero-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--f-label);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--charcoal);
  line-height: 1.35;
}
.hero-checklist li::before {
  content: '';
  width: 7px; height: 7px;
  margin-top: 4px;
  background: var(--gold);
  flex-shrink: 0;
}

.hero-stats {
  display: flex;
  gap: 32px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.hero-stats strong {
  display: block;
  font-family: var(--f-head);
  font-weight: 300;
  font-size: 30px;
  line-height: 32px;
  letter-spacing: -1.2px;
  color: var(--charcoal);
}
.hero-stats span {
  display: block;
  margin-top: 6px;
  font-family: var(--f-label);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Article body ── */
.article-intro { margin-bottom: 64px; }
.article-intro p { max-width: 670px; margin-bottom: 24px; }
.article-intro p.body-lg { color: var(--charcoal); }

.section-head { margin-bottom: 32px; }
.section-head .eyebrow { display: block; margin-bottom: 14px; color: var(--gold); }
.section-head h2 { margin-bottom: 16px; }
.section-head p { max-width: 670px; color: var(--muted); }

/* Criteria list */
.criteria { border-top: 1px solid var(--line); margin-bottom: 24px; }
.criteria li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.criteria .num {
  font-family: var(--f-head);
  font-weight: 300;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -1.5px;
  color: var(--gold);
}
.criteria h3 { margin-bottom: 8px; font-size: 21px; line-height: 26px; letter-spacing: -0.6px; }
.criteria p { color: var(--muted); font-size: 15px; line-height: 24px; }

.note { font-size: 13px; line-height: 22px; color: var(--faint); }

/* Blue CTA block */
.cta-block {
  background: var(--blue);
  color: var(--white);
  padding: 40px 32px;
  margin: 64px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.cta-block .cta-title {
  font-family: var(--f-head);
  font-weight: 300;
  font-size: 30px;
  line-height: 38px;
  letter-spacing: -1.4px;
  max-width: 520px;
}
.cta-block p { font-size: 14px; line-height: 24px; max-width: 520px; opacity: .9; }
.cta-block .btn { margin-top: 8px; }

/* ── Rankings ── */
.rankings-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 8px;
}
.rankings-head .count {
  font-family: var(--f-label);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
  padding-bottom: 6px;
}

.agent {
  border-top: 1px solid var(--line);
  padding: 48px 0;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 32px;
  position: relative;
}
.agent:last-of-type { border-bottom: 1px solid var(--line); }

.agent.rank-1 { border-top: 2px solid var(--gold); }

.agent-media { position: relative; }
.agent-avatar,
.avatar-placeholder {
  width: 112px;
  height: 112px;
  object-fit: cover;
  background: var(--grey-2);
  display: block;
}
.avatar-placeholder {
  position: relative;
  overflow: hidden;
  background: #BFBFBF;
}
.avatar-placeholder::after {
  content: '';
  position: absolute;
  inset: 12px 12px 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600' fill='white'%3E%3Cdefs%3E%3CclipPath id='cp'%3E%3Crect x='0' y='0' width='600' height='600'/%3E%3C/clipPath%3E%3C/defs%3E%3Ccircle cx='300' cy='210' r='120'/%3E%3Ccircle cx='300' cy='580' r='230' clip-path='url(%23cp)'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom center;
}
.agent-rank-tag {
  position: absolute;
  left: 0;
  top: -1px;
  transform: translateY(-100%);
  padding: 0 0 10px;
  font-family: var(--f-label);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold);
}

.agent-body { min-width: 0; }

.agent h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.agent h3 .rank {
  font-family: var(--f-head);
  font-weight: 300;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.agent h3 .top-badge {
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--gold);
  padding: 5px 8px 4px;
  line-height: 1;
  align-self: center;
}

.agent-title {
  font-size: 14px;
  line-height: 22px;
  color: var(--muted);
  margin-bottom: 4px;
}
.agent-brokerage {
  font-family: var(--f-label);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 14px;
}

.agent-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin-bottom: 18px;
}

.stars-wrap { position: relative; display: inline-flex; align-items: center; outline: none; }
.stars { display: flex; align-items: center; gap: 8px; }
.star-icons { color: var(--gold); font-size: 14px; letter-spacing: 2px; line-height: 1; }
.star-score {
  font-family: var(--f-head);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: -0.3px;
  color: var(--charcoal);
}
.review-count { font-size: 13px; color: var(--muted); }

.star-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--f-label);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
  z-index: 20;
}
.star-tooltip::after {
  content: '';
  position: absolute;
  top: 100%; left: 14px;
  border: 5px solid transparent;
  border-top-color: var(--charcoal);
}
.stars-wrap:hover .star-tooltip,
.stars-wrap:focus-within .star-tooltip,
.stars-wrap:focus .star-tooltip { opacity: 1; }

.fact {
  font-size: 13px;
  color: var(--muted);
}
.fact strong { font-weight: 600; color: var(--charcoal); }

.agent-bio {
  color: var(--charcoal);
  font-size: 15px;
  line-height: 25px;
  margin-bottom: 20px;
  max-width: 600px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.tag-row .tag-label {
  font-family: var(--f-label);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--faint);
  margin-right: 6px;
  min-width: 78px;
}
.tag {
  font-family: var(--f-label);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  line-height: 1;
  padding: 7px 10px 6px;
  border: 1px solid var(--line);
  color: var(--charcoal);
  background: var(--white);
}
.tag.specialty { background: var(--tint); border-color: transparent; }
.tag.quality { color: var(--gold-dark); border-color: var(--gold-light); }
.tag.bonus { color: var(--blue); border-color: rgba(21,74,105,0.35); }

.agent-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.agent-links a {
  font-family: var(--f-label);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--charcoal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.agent-links a:hover { color: var(--gold-dark); }
.agent-links a .arrow { color: var(--gold); transition: transform .25s ease; }
.agent-links a:hover .arrow { transform: translateX(3px); }
.zillow-mark {
  width: 16px; height: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue);
  color: var(--white);
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 10px;
  line-height: 1;
}

/* ── Sidebar ── */
.side-block { border-top: 1px solid var(--charcoal); padding-top: 16px; margin-bottom: 32px; }
.side-block .label-md { display: block; margin-bottom: 16px; color: var(--charcoal); }

.side-index li { border-bottom: 1px solid var(--line); }
.side-index a {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  text-decoration: none;
  color: var(--charcoal);
  font-size: 12.5px;
  transition: color .2s;
}
.side-index a:hover { color: var(--gold-dark); }
.side-index .n {
  font-family: var(--f-head);
  font-weight: 300;
  font-size: 14px;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.side-index .r { font-size: 12px; color: var(--faint); white-space: nowrap; }
.side-index .r b { font-weight: 600; color: var(--charcoal); }

.side-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.side-stats strong {
  display: block;
  font-family: var(--f-head);
  font-weight: 300;
  font-size: 28px;
  line-height: 30px;
  letter-spacing: -1.2px;
  color: var(--charcoal);
}
.side-stats span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 18px;
  color: var(--muted);
}

.side-cta {
  background: var(--blue);
  color: var(--white);
  padding: 28px;
}
.side-cta .cta-title {
  font-family: var(--f-head);
  font-weight: 300;
  font-size: 24px;
  line-height: 30px;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.side-cta p { font-size: 13px; line-height: 22px; opacity: .9; margin-bottom: 20px; }

/* ── Neighborhoods ── */
.neighborhood-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.neighborhood {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.neighborhood .n {
  display: block;
  font-family: var(--f-label);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.neighborhood h3 { font-size: 22px; line-height: 26px; letter-spacing: -0.6px; margin-bottom: 10px; }
.neighborhood p { font-size: 14px; line-height: 23px; color: var(--muted); }

.chip-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip {
  font-family: var(--f-label);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  padding: 10px 14px 9px;
  border: 1px solid var(--line-strong);
  color: var(--charcoal);
  line-height: 1;
}

/* ── Market ── */
.market-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 32px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
  margin-bottom: 32px;
}
.market-stat .value {
  display: block;
  font-family: var(--f-head);
  font-weight: 300;
  font-size: 48px;
  line-height: 48px;
  letter-spacing: -2.2px;
  color: var(--charcoal);
  margin-bottom: 12px;
}
.market-stat .lbl {
  display: block;
  font-family: var(--f-label);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.market-stat p { font-size: 14px; line-height: 23px; color: var(--muted); }

/* ── Map ── */
.map-embed { border: 1px solid var(--line); line-height: 0; background: var(--grey-2); }
.map-embed iframe { display: block; width: 100%; height: 480px; border: 0; filter: grayscale(1) contrast(1.05); }

/* ── FAQ ── */
.faq-wrap { display: grid; grid-template-columns: var(--side-col) 1fr; gap: 48px; align-items: start; }
.faq-list { border-top: 1px solid var(--charcoal); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 0;
  font-family: var(--f-head);
  font-weight: 300;
  font-size: 22px;
  line-height: 28px;
  letter-spacing: -0.6px;
  color: var(--charcoal);
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  flex-shrink: 0;
  width: 28px; height: 28px;
  position: relative;
  margin-top: 0;
}
.faq-item summary .plus::before,
.faq-item summary .plus::after {
  content: '';
  position: absolute;
  background: var(--gold);
  transition: transform .25s ease;
}
.faq-item summary .plus::before { left: 6px; right: 6px; top: 13px; height: 1.5px; }
.faq-item summary .plus::after  { top: 6px; bottom: 6px; left: 13px; width: 1.5px; }
.faq-item[open] summary .plus::after { transform: scaleY(0); }
.faq-item summary:hover { color: var(--gold-dark); }
.faq-answer { padding: 0 60px 28px 0; }
.faq-answer p { font-size: 15px; line-height: 25px; color: var(--muted); }

/* ── About ── */
.about-card {
  border-left: 2px solid var(--gold);
  padding: 8px 0 8px 32px;
  max-width: 820px;
}
.about-card p { font-size: 15px; line-height: 26px; color: var(--charcoal); }

/* ── Footer ── */
.site-footer {
  background: var(--grey);
  padding: 80px 0 0;
  font-family: var(--f-label);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
}
.footer-brand .wordmark { margin-bottom: 20px; }
.footer-brand p {
  font-family: var(--f-body);
  font-size: 13px;
  line-height: 22px;
  color: var(--muted);
  max-width: 320px;
}
.footer-col .label-lg {
  display: block;
  color: var(--charcoal);
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  font-family: var(--f-label);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
  opacity: .75;
  transition: opacity .2s;
}
.footer-col a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 24px 0 32px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 12px;
  line-height: 22px;
  color: var(--charcoal);
}
.footer-bottom a { text-decoration: none; color: inherit; }
.footer-bottom a:hover { text-decoration: underline; }
.disclaimer {
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 11.5px;
  line-height: 20px;
  color: var(--faint);
  padding-bottom: 40px;
  max-width: 1100px;
}

/* ── Responsive ── */
@media (max-width: 1240px) {
  :root { --side-col: 320px; --main-col: 640px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1060px) {
  .main-nav { display: none; }
  .content-sidebar { flex-direction: column; }
  .content-sidebar > main, .content-sidebar > aside { width: 100%; position: static; max-height: none; overflow: visible; padding-right: 0; }
  .side-index, .side-block.side-market { display: none; }
  .content-sidebar > aside { display: block; max-width: 560px; margin-top: 48px; }
  .side-block { margin-bottom: 0; }
  .post-hero .container { flex-direction: column; align-items: stretch; }
  .hero-text { width: 100%; }
  .hero-visual { aspect-ratio: 16 / 10; }
  .faq-wrap { grid-template-columns: 1fr; gap: 24px; }
  .market-grid { grid-template-columns: repeat(2, 1fr); }
  .neighborhood-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  :root { --margin: 24px; --header-h: 64px; }
  .topbar .hide-sm { display: none; }
  .site-header .container { gap: 16px; }
  .header-actions .btn-secondary { display: none; }
  .header-actions .btn { height: 40px; padding: 0 14px; font-size: 12px; }
  .header-actions .btn .full { display: none; }
  .wordmark .mark { font-size: 16px; letter-spacing: 2.6px; }
  .wordmark .place { font-size: 9.5px; letter-spacing: 1.4px; }
  .hero-corner.bl, .hero-corner.br { display: none; }
  .seal-ring { width: 72%; }
  .seal-ring .seal-place { letter-spacing: 1.8px; }
  .section { padding: 72px 0; }
  .section-slim { padding: 48px 0; }
  h1, h2, .h-md { font-size: 30px; line-height: 34px; letter-spacing: -1.2px; }
  .hero-visual { aspect-ratio: 1 / 1; }
  .seal-ring .seal-year { font-size: 64px; letter-spacing: -3px; }
  .hero-checklist { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .agent { grid-template-columns: 1fr; gap: 20px; padding: 36px 0; }
  .agent-avatar, .avatar-placeholder { width: 96px; height: 96px; }
  .agent-rank-tag { position: static; transform: none; padding: 0 0 8px; display: block; }
  .agent h3 { font-size: 24px; }
  .neighborhood-grid { grid-template-columns: 1fr; }
  .market-grid { grid-template-columns: 1fr; gap: 32px; }
  .market-stat .value { font-size: 40px; line-height: 40px; }
  .faq-item summary { font-size: 19px; line-height: 25px; }
  .faq-answer { padding-right: 0; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .map-embed iframe { height: 340px; }
  .cta-block { padding: 32px 24px; }
}
