/* ============================================================
   SBZ Real Estate — 2026-11 revamp
   ------------------------------------------------------------
   The current design. Loaded after legacy.css, which holds the
   older sheets inside `@layer legacy`; nothing in this file is
   layered, so every rule here wins over the old one it replaces.

   Direction: photo first, white pages, one clay accent, a bold
   sans for headlines with a serif italic kept for a few accent
   words, and a lead form in view on the pages that sell.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Neutral ramp: white page, cooler and cleaner than the old paper beige. */
  --warm-50:  #FFFFFF;
  --warm-100: #F6F4F1;
  --warm-150: #F0EDE9;
  --warm-200: #E7E3DE;
  --warm-300: #D6D0C9;
  --warm-400: #A9A29A;
  --warm-500: #7B746C;
  --warm-600: #5F5952;
  --warm-700: #413C36;
  --warm-800: #27231F;
  --warm-900: #161311;
  --card-white: #FFFFFF;
  --clay-50: #FAF3EE;

  --text-on-ink: #F6F3EF;
  --text-on-ink-muted: #C2BBB2;
  --text-on-ink-faint: #8F887F;
  --border-ink: rgba(246, 243, 239, 0.16);

  /* Type: Satoshi carries headlines; Instrument Serif italic is the accent voice. */
  --font-accent: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-display: 'Satoshi', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: var(--font-sans);

  --display-lg:  clamp(2.5rem, 1.75rem + 3.3vw, 4.25rem);   /* page h1 */
  --display-2xl: var(--display-lg);
  --display-xl:  clamp(2.25rem, 1.6rem + 2.7vw, 3.6rem);
  --display-h2:  clamp(1.9rem, 1.45rem + 1.9vw, 2.9rem);    /* section h2 */
  --display-md:  clamp(1.4rem, 1.22rem + 0.8vw, 1.85rem);
  --display-sm:  clamp(1.15rem, 1.08rem + 0.3vw, 1.3rem);
  --text-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.2rem);
  --text-xl: var(--text-lead);

  --leading-tight: 1.06;
  --leading-snug: 1.22;
  --tracking-tight: -0.03em;
  --eyebrow-size: 0.78rem;
  --tracking-eyebrow: 0.11em;
  --eyebrow-tracking: 0.11em;

  --section-y: clamp(3.5rem, 2.6rem + 4vw, 6.5rem);
  --section-y-tight: clamp(2.5rem, 2rem + 2.4vw, 4rem);
  --container: 1240px;
  --container-wide: 1240px;

  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 22px;

  --shadow-xs: 0 1px 2px rgba(22, 19, 17, 0.05);
  --shadow-sm: 0 1px 2px rgba(22, 19, 17, 0.05), 0 4px 14px -6px rgba(22, 19, 17, 0.10);
  --shadow-md: 0 2px 6px rgba(22, 19, 17, 0.05), 0 14px 32px -14px rgba(22, 19, 17, 0.20);
  --shadow-lg: 0 4px 12px rgba(22, 19, 17, 0.06), 0 30px 70px -26px rgba(22, 19, 17, 0.38);

  --header-h: 76px;
}

/* ---------- 2. Base type ---------- */
body { color: var(--text-body); font-variant-numeric: tabular-nums; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  text-wrap: balance;
}
h3, h4 { font-weight: 650; letter-spacing: -0.018em; line-height: var(--leading-snug); }

/* The accent voice: an <em> inside a headline switches to the serif italic. */
h1 em, h2 em, .display-lg em, .display-xl em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.012em;
  font-size: 1.08em;
  color: var(--accent);
}

p { text-wrap: pretty; }
.lead { font-size: var(--text-lead); line-height: 1.6; color: var(--text-muted); }
.section--ink .lead { color: var(--text-on-ink-muted); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--eyebrow-size);
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--accent-strong);
}
.eyebrow::before, .eyebrow--center::after { display: none; }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.section-head h2 { margin-top: var(--space-3); }
.section-head--split { max-width: none; display: grid; gap: var(--space-4) var(--space-7); align-items: end; }
.section-head--split .lead { margin-top: 0; max-width: 34rem; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .section-head--split > .link-arrow { justify-self: end; }
}

.section--sunken, .section--tint { background: var(--surface-sunken); }
.section--ink { background: var(--surface-ink); }

/* ---------- 3. Buttons ---------- */
.btn {
  font-weight: 650;
  letter-spacing: -0.005em;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-sm);
  min-height: 46px;
}
.btn::before { display: none; }
.btn--lg { padding: 1rem 1.6rem; min-height: 54px; font-size: 1.0625rem; border-radius: var(--radius-md); }
.btn--sm { padding: 0.6rem 1rem; min-height: 40px; }
.btn--primary { box-shadow: 0 1px 2px rgba(113, 52, 26, 0.3), 0 8px 20px -10px rgba(168, 81, 43, 0.55); }
.btn--primary:hover { box-shadow: 0 1px 2px rgba(113, 52, 26, 0.3), 0 12px 26px -10px rgba(168, 81, 43, 0.7); }
.btn--ghost { --btn-bg: #fff; --btn-bd: var(--warm-300); }
.btn--ghost:hover { --btn-bg: var(--warm-100); --btn-bd: var(--warm-400); }
.btn--on-ink { --btn-bd: rgba(246, 243, 239, 0.4); }
.btn--on-ink:hover { --btn-bg: rgba(246, 243, 239, 0.1); --btn-bd: rgba(246, 243, 239, 0.7); }
.btn--glass { --btn-bg: rgba(255, 255, 255, 0.1); --btn-bd: rgba(255, 255, 255, 0.5); }
.link-arrow { font-weight: 650; }

/* ---------- 4. Header ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header.is-scrolled { background: rgba(255, 255, 255, 0.97); box-shadow: 0 10px 30px -20px rgba(22, 19, 17, 0.35); }
.site-header__inner { display: flex; align-items: center; gap: var(--space-5); height: var(--header-h); }
.brand img, .brand__logo { height: 50px; width: auto; }
.nav { gap: clamp(1.1rem, 0.4rem + 1.4vw, 2.1rem); margin-left: clamp(0.5rem, -1rem + 3vw, 2.5rem); margin-right: auto; }
.nav a { font-size: 0.95rem; font-weight: 550; color: var(--warm-700); padding-block: 6px; }
.nav a::after { bottom: -1px; height: 2px; }
.header-cta { margin-left: auto; gap: var(--space-4); }
.nav + .header-cta { margin-left: 0; }
.header-phone, .header-portal { display: none; font-size: 0.92rem; font-weight: 600; color: var(--warm-700); white-space: nowrap; }
.header-phone { align-items: center; gap: 0.45rem; color: var(--text-strong); }
.header-phone svg { color: var(--accent); }
.header-phone:hover, .header-portal:hover { color: var(--accent-strong); }
.menu-toggle { background: #fff; border-color: var(--warm-300); min-height: 44px; padding-inline: 1rem; }

@media (max-width: 640px) {
  .site-header__inner { height: 66px; }
  .brand img, .brand__logo { height: 44px; }
}
@media (min-width: 1100px) {
  .nav { display: flex; }
  .menu-toggle { display: none; }
  .header-phone { display: inline-flex; }
  .site-header__inner { height: var(--header-h); }
}
@media (min-width: 1240px) { .header-portal { display: inline; } }
@media (max-width: 1099px) { .header-cta { margin-left: auto; } }

/* Mobile menu */
.mobile-menu { background: #fff; padding: var(--space-3) 0 var(--space-6); max-height: calc(100dvh - 66px); overflow-y: auto; }
.mobile-menu a.m-link { font-family: var(--font-sans); font-size: 1.2rem; font-weight: 650; letter-spacing: -0.015em; padding: 0.95rem 0; }
.mobile-menu .m-group { margin-top: var(--space-5); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; color: var(--text-faint); }
.mobile-menu a.m-link--minor { font-size: 1rem; font-weight: 550; color: var(--warm-700); padding: 0.7rem 0; }
@media (min-width: 1100px) { .mobile-menu, .mobile-menu.open { display: none; } }

/* ---------- 5. Hero with lead card (home, sell, buy) ---------- */
.hero-x { position: relative; isolation: isolate; overflow: clip; background: var(--warm-900); color: #fff; }
.hero-x__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero-x__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(18, 14, 11, 0.86) 0%, rgba(18, 14, 11, 0.62) 40%, rgba(18, 14, 11, 0.12) 78%, rgba(18, 14, 11, 0.05) 100%),
    linear-gradient(180deg, rgba(18, 14, 11, 0.1) 0%, rgba(18, 14, 11, 0.38) 100%);
}
.hero-x__inner { display: grid; gap: clamp(2rem, 1rem + 4vw, 3rem); align-items: center; padding-block: clamp(2.25rem, 1.5rem + 4vw, 5rem); }
.hero-x__copy { display: grid; gap: var(--space-5); max-width: 40rem; }
.hero-x__eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; color: var(--clay-200); }
.hero-x h1 { color: #fff; font-size: clamp(2.4rem, 1.55rem + 3.9vw, 4.6rem); letter-spacing: -0.038em; line-height: 1; }
.hero-x--page h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.75rem); line-height: 1.03; }
.hero-x h1 em { color: var(--clay-200); }
.hero-x__sub { max-width: 34rem; font-size: var(--text-lead); line-height: 1.6; color: rgba(255, 255, 255, 0.84); }
.hero-x__facts { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; margin-top: var(--space-2); font-size: 0.95rem; font-weight: 600; color: rgba(255, 255, 255, 0.92); }
.hero-x__facts li { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-x__facts svg { flex: none; color: var(--clay-300); }
@media (min-width: 1000px) {
  .hero-x__inner { grid-template-columns: minmax(0, 1.08fr) minmax(0, 470px); gap: clamp(2.5rem, 5vw, 5.5rem); min-height: min(740px, calc(100dvh - var(--header-h))); }
  .hero-x--page .hero-x__inner { min-height: min(660px, calc(100dvh - var(--header-h))); }
}

@media (max-width: 999px) {
  .hero-x__scrim { background: linear-gradient(180deg, rgba(18, 14, 11, 0.82) 0%, rgba(18, 14, 11, 0.7) 45%, rgba(18, 14, 11, 0.5) 100%); }
  .hero-x__facts { display: none; }
  .hero-x__copy { gap: var(--space-4); }
}

/* Lead card: the walkthrough form, sized for a hero column */
.lead-card { background: #fff; color: var(--text-body); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); overflow: hidden; scroll-margin-top: calc(var(--header-h) + 16px); }
.lead-card .lead-walkthrough { max-width: none; border: 0; border-radius: 0; box-shadow: none; background: transparent; overflow: visible; }
.lead-card .lead-walkthrough__topline { padding: 1.1rem 1.5rem 0; border: 0; background: transparent; display: block; }
.lead-card .lead-walkthrough__topline > p { display: none; }
.lead-card .lead-progress { width: 100%; min-width: 0; justify-content: space-between; }
.lead-card .lead-progress__track { flex: 1; width: auto; height: 4px; border-radius: 4px; }
.lead-card .lead-walkthrough__body { min-height: 0; padding: 1.1rem 1.5rem 1.5rem; }
.lead-card .lead-step > h2, .lead-card .lead-done > h2 { font-size: clamp(1.5rem, 1.35rem + 0.7vw, 1.85rem); margin-top: var(--space-2); max-width: none; letter-spacing: -0.028em; line-height: 1.1; }
.lead-card .lead-step__intro { margin-top: var(--space-2); font-size: 0.95rem; color: var(--text-muted); }
.lead-card .lead-choices { grid-template-columns: 1fr; gap: 0.6rem; margin-top: var(--space-4); }
.lead-card .lead-choices--two { grid-template-columns: 1fr 1fr; }
.lead-card .lead-choice { min-height: 64px; padding: 0.8rem 1rem; }
.lead-card .lead-choices--two .lead-choice > span:last-child { display: none; }
.lead-card .lead-fields { gap: var(--space-4); margin-top: var(--space-4); }
.lead-card .lead-fields--two { grid-template-columns: 1fr; }
.lead-card .lead-fields input, .lead-card .lead-fields select, .lead-card .lead-fields textarea { padding: 0.8rem 0.9rem; }
.lead-card .lead-fields textarea { min-height: 76px; }
.lead-card .lead-intent-fields { margin-top: var(--space-4); padding-top: var(--space-4); }
.lead-card .lead-back { margin-bottom: var(--space-3); }
.lead-card .lead-next { width: 100%; margin-top: var(--space-5); }
.lead-card .lead-done { min-height: 0; padding-block: var(--space-4); }
.lead-card .lead-done > p:not(.eyebrow) { font-size: 1rem; }
.lead-card .lead-error { margin-top: var(--space-4); }
.lead-card__alt { padding: 0.9rem 1.5rem 1.1rem; border-top: 1px solid var(--border); background: var(--warm-100); font-size: 0.9rem; color: var(--text-muted); }
.lead-card__alt a { color: var(--accent-strong); font-weight: 650; text-decoration: underline; text-underline-offset: 0.18em; }
/* RealScout's home-value widget draws its own card with a fixed 72px gutter on each
   side on desktop (closed shadow root, so it cannot be restyled). The wrapper goes
   transparent and the widget is shifted over that gutter so its card fills the hero
   column. Below 1000px the widget lays itself out and is left alone. */
.lead-card--widget { background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
.lead-card--widget realscout-home-value { display: block; --rs-hvw-background-color: #fff; --rs-hvw-secondary-button-color: #fff; }
@media (min-width: 1000px) {
  .lead-card--widget realscout-home-value { width: calc(100% + 72px); margin-left: -72px; --rs-hvw-widget-width: calc(100% - 144px); }
}

/* Walkthrough pieces, wherever the form sits */
.lead-walkthrough { border-color: var(--border); border-radius: var(--radius-xl); }
.lead-step > h2, .lead-done > h2 { max-width: 22ch; }
.lead-choice { border-width: 1.5px; border-color: var(--warm-300); border-radius: var(--radius-md); }
.lead-choice strong { font-family: var(--font-sans); font-size: 1.08rem; font-weight: 700; letter-spacing: -0.015em; }
.lead-choice small { font-size: 0.86rem; }
.lead-choice:hover { border-color: var(--accent); background: var(--clay-50); }
.lead-progress__label { font-size: 0.78rem; font-weight: 650; letter-spacing: 0.02em; }
.lead-intent-fields h3 { font-size: 1.05rem; }
.lead-ac { border-color: var(--border); box-shadow: var(--shadow-md); }
.lead-ac button:hover, .lead-ac button:focus-visible { background: var(--clay-50); }
.lead-walkthrough-section { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ---------- 6. Proof strip ---------- */
.proof-strip { border-bottom: 1px solid var(--border); background: #fff; }
.proof-strip__list { display: grid; grid-template-columns: 1fr 1fr; }
.proof-strip__list li { display: grid; gap: 0.2rem; padding: 1.25rem 1rem 1.25rem 0; }
.proof-strip__list li:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--border); }
.proof-strip__list li:nth-child(n+3) { border-top: 1px solid var(--border); }
.proof-strip__list strong { font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem); font-weight: 750; letter-spacing: -0.02em; color: var(--text-strong); }
.proof-strip__list span { font-size: 0.86rem; color: var(--text-muted); }
@media (min-width: 900px) {
  .proof-strip__list { grid-template-columns: repeat(4, 1fr); }
  .proof-strip__list li, .proof-strip__list li:nth-child(even) { padding: 1.6rem 1.75rem; border-left: 1px solid var(--border); border-top: 0; }
  .proof-strip__list li:first-child { padding-left: 0; border-left: 0; }
}

/* ---------- 7. Path cards (sell / buy) ---------- */
.path-grid { display: grid; gap: var(--space-5); }
@media (min-width: 820px) { .path-grid { grid-template-columns: 1fr 1fr; } }
.path-card { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: clamp(380px, 30vw + 180px, 520px); border-radius: var(--radius-xl); overflow: hidden; color: #fff; background: var(--warm-900); }
.path-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.path-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18, 14, 11, 0) 30%, rgba(18, 14, 11, 0.86) 100%); }
.path-card:hover img { transform: scale(1.04); }
.path-card__body { display: grid; gap: 0.6rem; padding: clamp(1.4rem, 1rem + 1.6vw, 2.25rem); max-width: 34rem; }
.path-card__kicker { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; color: var(--clay-200); }
.path-card__title { font-size: clamp(1.5rem, 1.25rem + 1vw, 2.1rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; }
.path-card__text { color: rgba(255, 255, 255, 0.82); font-size: 1rem; line-height: 1.55; }
.path-card__cta { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.4rem; font-weight: 650; }
.path-card__cta .arrow { transition: transform var(--dur-base) var(--ease-out); }
.path-card:hover .path-card__cta .arrow { transform: translateX(4px); }

/* ---------- 8. Community cards ---------- */
.place-grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr 1fr; }
.place-card { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 210px; border-radius: var(--radius-lg); overflow: hidden; color: #fff; background: var(--warm-900); }
.place-card--lead { grid-column: 1 / -1; min-height: 300px; }
.place-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.place-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18, 14, 11, 0.05) 35%, rgba(18, 14, 11, 0.82) 100%); }
.place-card:hover img { transform: scale(1.05); }
.place-card__body { display: grid; gap: 0.2rem; padding: 1.1rem 1.2rem; }
.place-card__name { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
.place-card--lead .place-card__name { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem); }
.place-card__stat { font-size: 0.86rem; color: rgba(255, 255, 255, 0.82); }
.place-card__stat strong { font-weight: 700; color: #fff; }
.place-grid__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-6); }
.place-grid__foot p { font-size: 0.82rem; color: var(--text-faint); }
@media (min-width: 900px) {
  .place-grid { grid-template-columns: 1.5fr 1fr 1fr; grid-auto-rows: 250px; }
  .place-card { min-height: 0; }
  .place-card--lead { grid-column: auto; grid-row: span 2; }
}

/* ---------- 9. Split (photo + copy) ---------- */
.split { display: grid; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.split__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-xl); }
.split__copy { display: grid; gap: var(--space-5); justify-items: start; }
.split__copy h2 { margin-top: calc(var(--space-2) * -1); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr); }
  .split__photo { aspect-ratio: 4 / 5; max-height: 620px; }
}
.check-list { display: grid; gap: var(--space-4); }
.check-list li { display: grid; grid-template-columns: auto 1fr; gap: 0.85rem; align-items: start; color: var(--text-muted); line-height: 1.55; }
.check-list svg { margin-top: 0.15rem; padding: 3px; border-radius: 50%; background: var(--clay-50); color: var(--accent); width: 24px; height: 24px; }
.check-list strong { color: var(--text-strong); font-weight: 700; }
.btn-row { align-items: center; gap: var(--space-3) var(--space-5); }

/* ---------- 10. Closing band ---------- */
.closing { position: relative; isolation: isolate; overflow: clip; background: var(--warm-900); color: var(--text-on-ink); }
.closing__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.closing__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18, 14, 11, 0.94) 0%, rgba(18, 14, 11, 0.86) 55%, rgba(18, 14, 11, 0.7) 100%); }
.closing__inner { display: grid; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; padding-block: var(--section-y); }
.closing__copy { display: grid; gap: var(--space-5); justify-items: start; max-width: 38rem; }
.closing h2 { color: #fff; }
.closing .eyebrow { color: var(--clay-200); }
.closing .lead { color: var(--text-on-ink-muted); }
.closing__points { display: grid; }
.closing__points li { display: grid; gap: 0.3rem; padding: 1.25rem 0; border-top: 1px solid var(--border-ink); }
.closing__points li:last-child { border-bottom: 1px solid var(--border-ink); }
.closing__points strong { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.closing__points span { color: var(--text-on-ink-muted); line-height: 1.55; }
@media (min-width: 960px) { .closing__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }

/* ---------- 11. Cards, chips, journal ---------- */
.card { border-radius: var(--radius-lg); border-color: var(--border); box-shadow: var(--shadow-xs); }
.chip { font-family: var(--font-sans); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.08em; border-color: transparent; background: var(--clay-50); }
.post-card { border-radius: var(--radius-lg); border-color: var(--border); box-shadow: none; }
.post-card::after { display: none; }
.post-card:hover { box-shadow: var(--shadow-md); border-color: var(--warm-300); }
.post-card h3 { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem); line-height: 1.22; letter-spacing: -0.02em; }
.post-card p { font-size: 0.98rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 0 1 auto; }
.post-card img { border: 0 !important; border-radius: 0 !important; }
.post-card__meta { font-size: 0.82rem; color: var(--text-faint); }
.rs-alerts .container { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); }

/* Steps and FAQ */
.step__num { font-family: var(--font-sans); font-weight: 750; font-size: 1.05rem; letter-spacing: 0; color: var(--accent); min-width: 2.4ch; padding-top: 0.2rem; }
.step h3 { font-size: 1.2rem; }
.faq summary { font-family: var(--font-sans); font-size: 1.12rem; font-weight: 650; letter-spacing: -0.015em; line-height: 1.35; }
.faq__a { color: var(--text-muted); }
.stat__num { font-family: var(--font-sans); font-weight: 750; letter-spacing: -0.03em; }
.stat__label { font-family: var(--font-sans); letter-spacing: 0.02em; }
.lead-compact { border-radius: var(--radius-xl); box-shadow: none; border-color: var(--border); }
.lead-compact-section { background: var(--surface-sunken); }
.contact-method { border-radius: var(--radius-lg); }
.contact-method .big { font-family: var(--font-sans); font-weight: 750; letter-spacing: -0.025em; }
.photo, .sbz-photo { border-radius: var(--radius-xl); }

/* ---------- 12. Footer ---------- */
.site-footer { background: var(--warm-900); padding-block: clamp(3rem, 2rem + 4vw, 5rem) var(--space-6); }
.footer-grid { gap: var(--space-7) var(--space-6); grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; display: grid; gap: var(--space-4); justify-items: start; }
.footer-brand p { max-width: 36ch; font-size: var(--text-sm); line-height: 1.6; color: var(--text-on-ink-muted); }
.footer-logo { height: 62px; }
.footer-col h4 { font-family: var(--font-sans); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.11em; color: var(--text-on-ink-faint); }
.footer-col a { font-size: 0.94rem; padding-block: 0.4rem; }
.footer-legal { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.footer-legal__links { display: inline-flex; gap: var(--space-4); }
.footer-legal__links a { text-decoration: underline; text-underline-offset: 0.2em; }
.footer-legal__links a:hover { color: var(--text-on-ink); }
.dre { font-family: var(--font-sans); letter-spacing: 0.01em; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) {
  .footer-grid { grid-template-columns: 1.7fr repeat(4, 1fr); }
  .footer-brand { grid-column: auto; }
}

/* Sticky mobile bar */
.sticky-cta { background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--border); box-shadow: 0 -10px 30px -18px rgba(22, 19, 17, 0.4); }
@media (min-width: 1100px) { .sticky-cta { display: none; } }
@media (max-width: 1099px) { body { padding-bottom: 76px; } }

/* ---------- 13. Cookie notice: small, out of the way of the form ---------- */
body .cookie-consent {
  right: auto;
  left: max(1rem, env(safe-area-inset-left));
  bottom: max(1rem, env(safe-area-inset-bottom));
  grid-template-columns: 1fr;
  gap: 0.75rem;
  width: min(360px, calc(100vw - 2rem));
  min-height: 0;
  margin: 0;
  padding: 1rem;
  border-radius: 16px;
}
body .cookie-consent__copy h2 { font-family: var(--font-sans); font-size: 0.98rem; font-weight: 700; letter-spacing: -0.01em; }
body .cookie-consent__copy p { font-size: 0.84rem; line-height: 1.45; }
body .cookie-consent__actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
body .cookie-consent__button { min-height: 40px; padding: 0.5rem 0.6rem; font-size: 0.84rem; }
@media (max-width: 1099px) {
  /* sits above the sticky call bar on phones and tablets */
  body .cookie-consent { left: 0.75rem; right: 0.75rem; bottom: calc(84px + env(safe-area-inset-bottom)); width: auto; padding: 0.75rem 0.85rem; gap: 0.55rem; }
  body .cookie-consent__copy h2 { display: none; }
  body .cookie-consent__copy p { font-size: 0.8rem; line-height: 1.4; margin: 0; }
  body .cookie-consent__button { min-height: 38px; }
}

/* ---------- 14. Community index ---------- */
.comm-index-hero { min-height: 0; display: block; padding-block: clamp(2.75rem, 2rem + 3.5vw, 5rem); background: var(--surface-sunken); }
.comm-index-hero__inner { gap: var(--space-5) clamp(2rem, 5vw, 5rem); }
.comm-index-hero h1 { max-width: none; font-size: var(--display-lg); line-height: 1.02; letter-spacing: -0.036em; font-weight: 700; }
.comm-index-hero h1 em { color: var(--accent); font-weight: 400; }
.comm-index-list { position: static; padding: 1.25rem 1.5rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.comm-index-list ul { column-gap: 2rem; }
.comm-index-list li { margin-bottom: 0.15rem; }
.comm-index-list a { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; color: var(--warm-800); padding-block: 0.3rem; }
.comm-index__num { font-family: var(--font-sans); font-weight: 700; letter-spacing: 0.04em; }
.comm-index-hero__foot { border-top: 0; padding-top: 0; grid-template-columns: 1fr; gap: 0.75rem; }
.comm-index-hero__foot p { font-size: var(--text-lead); line-height: 1.6; color: var(--text-muted); max-width: 34rem; }
.comm-index-hero__foot span { font-family: var(--font-sans); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; color: var(--text-faint); }
@media (min-width: 900px) {
  .comm-index-hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 25rem); grid-template-areas: "eyebrow list" "title list" "foot list"; align-items: start; }
  .comm-index-hero__inner > .eyebrow { grid-area: eyebrow; }
  .comm-index-hero__inner > h1 { grid-area: title; }
  .comm-index-hero__inner > .comm-index-list { grid-area: list; align-self: center; }
  .comm-index-hero__inner > .comm-index-hero__foot { grid-area: foot; }
}

/* The 18 guides as a card grid instead of 18 full-screen bands */
.community-bands { display: grid; gap: var(--space-5); padding: clamp(2rem, 1.5rem + 2.5vw, 4rem) var(--gutter) var(--section-y); background: var(--surface-sunken); max-width: calc(var(--container-wide) + 2 * var(--gutter)); margin-inline: auto; box-shadow: 0 0 0 100vmax var(--surface-sunken); clip-path: inset(0 -100vmax); }
@media (min-width: 720px) { .community-bands { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1120px) { .community-bands { grid-template-columns: repeat(3, 1fr); } }
.community-band, .community-band:nth-child(even) { min-height: 430px; border-bottom: 0; border-radius: var(--radius-xl); scroll-margin-top: calc(var(--header-h) + 16px); }
.community-band > img, .community-band:nth-child(even) > img { object-position: center; }
.community-band__scrim, .community-band:nth-child(even) .community-band__scrim { background: linear-gradient(180deg, rgba(18, 14, 11, 0.08) 12%, rgba(18, 14, 11, 0.9) 78%); }
.community-band__content, .community-band:nth-child(even) .community-band__content { width: 100%; max-width: none; padding: 1.4rem; grid-template-columns: 1fr; grid-template-areas: "name" "stats" "link" "period"; gap: 0.9rem; text-align: left; }
.community-band__name span { margin-bottom: 0.35rem; font-family: var(--font-sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; }
.community-band__name h2 { font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); line-height: 1.05; letter-spacing: -0.03em; }
.community-band__stats { gap: 0.35rem; padding-top: 0.8rem; border-top-color: rgba(246, 243, 239, 0.28); }
.community-band__stats dt { font-family: var(--font-sans); font-size: 0.8rem; letter-spacing: 0; text-transform: none; color: rgba(246, 243, 239, 0.78); }
.community-band__stats dd { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.community-band__link, .community-band:nth-child(even) .community-band__link { justify-self: start; border-bottom: 0; padding: 0.55rem 0.95rem; border-radius: var(--radius-sm); background: #fff; color: var(--text-strong); font-size: 0.92rem; }
.community-band__link:hover { color: var(--accent-strong); }
.community-band__period, .community-band:nth-child(even) .community-band__period { text-align: left; font-family: var(--font-sans); font-size: 0.72rem; letter-spacing: 0.02em; text-transform: none; }

/* ---------- 15. Community guide pages ---------- */
.community-hero { min-height: clamp(440px, 62dvh, 620px); }
.community-hero__inner { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.community-hero__back { margin-bottom: clamp(2rem, 6vh, 4rem); }
.community-hero h1 { margin: 0.5rem 0 1rem; font-size: clamp(3rem, 2rem + 5.5vw, 6.25rem); line-height: 0.96; letter-spacing: -0.045em; }
.community-hero__inner > p:last-child { font-size: var(--text-lead); line-height: 1.6; }
.market-report { padding-block: var(--section-y); }
.market-report__head { margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); gap: var(--space-5); }
.market-report__head h2 { max-width: none; margin-top: var(--space-3); font-size: var(--display-h2); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); }
.market-report__period strong { font-family: var(--font-sans); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.market-report__period span, .market-chart__head > span, .market-chart__axis { font-family: var(--font-sans); font-size: 0.74rem; letter-spacing: 0.04em; }
.market-ledger { margin-bottom: clamp(3rem, 2rem + 4vw, 5rem); border-top-color: var(--border); }
.market-ledger > div { padding: 1.25rem 1.25rem 1.5rem 0; }
.market-ledger > .market-ledger__primary { padding-block: 1.75rem; }
.market-ledger dt { min-height: 0; font-family: var(--font-sans); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.09em; }
.market-ledger dd { margin-block: 0.5rem 0.35rem; font-family: var(--font-sans); font-weight: 750; font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1; letter-spacing: -0.035em; }
.market-ledger__primary dd { font-size: clamp(2.6rem, 1.6rem + 4.2vw, 4.5rem); letter-spacing: -0.045em; }
.market-ledger span { font-size: 0.86rem; }
.market-chart { border-color: var(--border); }
.living-here { padding-block: var(--section-y); background: var(--surface-sunken); }
.living-here__grid { gap: clamp(2rem, 1rem + 5vw, 6rem); }
.living-here h2 { max-width: 18ch; margin-top: var(--space-3); font-size: var(--display-h2); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); }
.living-here__copy { padding-top: 0; }
.living-here__copy p { font-size: 1.1rem; line-height: 1.7; }
.living-here__copy p + p { margin-top: 1.25rem; }
.comm-outcome { padding-block: var(--section-y); }
.comm-outcome h2 { max-width: 18ch; font-size: var(--display-h2); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); }
.market-attribution { background: #fff; font-family: var(--font-sans); font-size: 0.76rem; letter-spacing: 0; }
@media (max-width: 600px) {
  .comm-index-hero { padding-block: 2.5rem; }
  .comm-index-hero h1 { font-size: var(--display-lg); line-height: 1.02; }
  .community-band { min-height: 400px; }
  .community-band__name h2 { font-size: 1.8rem; line-height: 1.05; }
  .community-band__stats dd { font-size: 1.05rem; }
  .community-hero { min-height: 420px; }
  .community-hero__back { margin-bottom: 2rem; }
  .community-hero h1 { font-size: clamp(2.8rem, 13vw, 4rem); line-height: 0.98; }
  .market-report, .living-here, .comm-outcome { padding-block: var(--section-y); }
  .market-report__head h2, .living-here h2, .comm-outcome h2 { font-size: var(--display-h2); }
  .market-ledger dd { font-size: 1.7rem; }
  .market-ledger__primary dd { font-size: clamp(2.5rem, 12vw, 3.4rem); }
}

/* Contact page walkthrough: no tall empty panel under short steps */
.lead-walkthrough__body { min-height: 0; padding: clamp(1.35rem, 1rem + 2.5vw, 3rem); }
.lead-walkthrough__topline { background: #fff; }
@media (max-width: 699px) { .lead-walkthrough__body { min-height: 0; } .lead-step > h2 { font-size: clamp(1.6rem, 7vw, 2.1rem); } }

/* Journal cards: the Read link sits on one line across a row, whatever the text length */
.post-card .link-arrow { margin-top: auto; }
