/* ==========================================================================
   GOODWIN APPRAISALS — site stylesheet
   --------------------------------------------------------------------------
   Contents
     0. Fonts (self-hosted)
     1. Tokens (color, type, spacing)
     2. Base + typography
     3. Layout helpers (wrap, band, grid)
     4. Buttons + links
     5. Header + navigation
     6. Hero + contour motif
     7. Components (cards, steps, tables, chips, CTA, placeholders)
     8. Blog (post layout, prose, sidebar)
     9. Forms
    10. Footer
    11. Utilities + motion
   ========================================================================== */

/* 0. FONTS (self-hosted, SIL Open Font License — see assets/fonts/OFL-*.txt)
   Besley: display serif, a Clarendon revival.
   Atkinson Hyperlegible Next / Mono: body and labels, designed by the Braille
   Institute for low-vision legibility. Latin subset, variable weight. */
@font-face { font-family: "Besley"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/besley-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Besley"; font-style: italic; font-weight: 400 900; font-display: swap; src: url("../fonts/besley-latin-wght-italic.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: italic; font-weight: 200 800; font-display: swap; src: url("../fonts/atkinson-hyperlegible-next-latin-wght-italic.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible Mono"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/atkinson-hyperlegible-mono-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* 1. TOKENS ================================================================ */
:root {
  /* Brand palette: dark walnut, logo gold, cream */
  --walnut: #2b1f17;
  --walnut-2: #3a2a1f;
  --walnut-3: #1f1610;
  --walnut-line: #4a3628;
  --gold: #b8922a;          /* brand gold — fills, rules, accents */
  --gold-hover: #cca341;
  --gold-text: #7a5f14;     /* gold for TEXT on light grounds (≥5:1) */
  --gold-soft: #dcc48f;     /* gold for TEXT on dark grounds */
  --cream: #f6f0e4;
  --paper: #fffcf6;
  --sand: #ecdfc4;
  --ink: #2b1f17;
  --ink-2: #57483b;         /* secondary text on light (≈7:1) */
  --on-dark: #f6f0e4;
  --on-dark-2: #ddd1bd;
  --line: #e2d6c2;
  --line-strong: #cbbba2;
  --focus: #b8922a;

  /* Type */
  --font-display: "Besley", "Georgia", "Times New Roman", serif;
  --font-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Atkinson Hyperlegible Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: 0.9rem;
  --step-0: 1.125rem;                               /* 18px body */
  --step-1: clamp(1.25rem, 1.1rem + 0.6vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.25rem + 1vw, 1.95rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.8vw, 2.65rem);
  --step-4: clamp(2.3rem, 1.7rem + 3vw, 3.75rem);

  /* Space + shape */
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 0 rgba(43, 31, 23, 0.04), 0 8px 24px -12px rgba(43, 31, 23, 0.18);
}

/* 2. BASE + TYPOGRAPHY ===================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4,
.h1, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.012em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1, .h1 { font-size: var(--step-4); font-weight: 800; }
h2, .h2 { font-size: var(--step-3); }
h3, .h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-text); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.lede { font-size: var(--step-1); line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.muted { color: var(--ink-2); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin: 0 0 0.9rem;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--walnut); padding: 10px 16px; border-radius: 6px; font-weight: 700;
}
.skip:focus { top: 12px; }

/* 3. LAYOUT ================================================================ */
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 820px; }

.band { padding-block: clamp(56px, 8vw, 104px); }
.band--tight { padding-block: clamp(40px, 5vw, 64px); }
.band--cream { background: var(--cream); }
.band--sand { background: var(--sand); }
.band--line { border-top: 1px solid var(--line); }
.band--dark { background: var(--walnut); color: var(--on-dark); position: relative; overflow: hidden; }
.band--dark .eyebrow { color: var(--gold-soft); }
.band--dark .lede, .band--dark .muted { color: var(--on-dark-2); }
.band--dark a:not(.btn) { color: var(--gold-soft); }
.band--dark a:not(.btn):hover { color: var(--on-dark); }

.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: end; justify-content: space-between; }
.section-head--row > div { max-width: 720px; }

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.split--top { align-items: start; }
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .split, .split--even { grid-template-columns: minmax(0, 1fr); } }

/* 4. BUTTONS + LINKS ======================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 50px; padding: 0.7em 1.35em;
  border: 1.5px solid transparent; border-radius: 8px;
  font: 700 1rem/1.2 var(--font-body); letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--sm { min-height: 44px; padding: 0.55em 1.05em; font-size: 0.95rem; }
.btn--block { display: flex; width: 100%; }
.btn--gold { background: var(--gold); color: var(--walnut); }
.btn--gold:hover { background: var(--gold-hover); color: var(--walnut); }
.btn--dark { background: var(--walnut); color: var(--on-dark); }
.btn--dark:hover { background: var(--walnut-2); color: var(--on-dark); }
.btn--outline { border-color: var(--walnut); color: var(--walnut); background: transparent; }
.btn--outline:hover { background: var(--walnut); color: var(--on-dark); }
.btn--ghost { border-color: var(--gold-soft); color: var(--on-dark); background: transparent; }
.btn--ghost:hover { background: rgba(220, 196, 143, 0.12); color: var(--on-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.textlink { display: inline-flex; align-items: center; gap: 0.35em; font-weight: 700; text-decoration: none; padding-block: 8px; }
.textlink:hover { text-decoration: underline; }
.ico { width: 1.1em; height: 1.1em; flex: none; }

/* 5. HEADER + NAV ========================================================== */
.site-header { background: var(--walnut); color: var(--on-dark); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--walnut-line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--on-dark); }
.brand:hover { color: var(--on-dark); }
.brand__mark {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none;
  border: 1.5px solid var(--gold); border-radius: 50%;
  font: 800 1.35rem/1 var(--font-display); color: var(--gold-soft);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font: 700 1.25rem/1.15 var(--font-display); letter-spacing: -0.005em; }
.brand__sub { font: 600 0.7rem/1.4 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-soft); }

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav ul { display: flex; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.site-nav a:not(.btn) {
  display: inline-block; padding: 12px 0; color: var(--on-dark); text-decoration: none; font-size: 0.98rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { color: var(--gold-soft); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }

.nav-toggle {
  display: none; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px;
  background: transparent; color: var(--on-dark); border: 1.5px solid var(--walnut-line); border-radius: 8px;
  font: 700 0.95rem var(--font-body); cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

@media (max-width: 1120px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 12px var(--gutter) 24px; background: var(--walnut); border-bottom: 1px solid var(--walnut-line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a:not(.btn) { display: block; padding: 13px 0; border-bottom: 1px solid var(--walnut-line); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--walnut-line); color: var(--gold-soft); }
}
@media (max-width: 420px) { .brand__sub { display: none; } }

/* 6. HERO + CONTOURS ======================================================= */
.hero { background: var(--walnut); color: var(--on-dark); position: relative; overflow: hidden; }
.hero__inner { position: relative; z-index: 1; padding-block: clamp(56px, 9vw, 120px); display: grid; gap: clamp(32px, 5vw, 64px); grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: center; }
.hero h1 { max-width: 15ch; }
.hero .lede { color: var(--on-dark-2); max-width: 52ch; }
.hero .eyebrow { color: var(--gold-soft); }
.hero a:not(.btn) { color: var(--gold-soft); }
.hero a:not(.btn):hover { color: var(--on-dark); }
@media (max-width: 900px) { .hero__figure { max-width: 380px; } }
.hero--page .hero__inner { grid-template-columns: minmax(0, 1fr); padding-block: clamp(48px, 7vw, 88px); }
.hero--page h1 { max-width: 22ch; }
@media (max-width: 900px) { .hero__inner { grid-template-columns: minmax(0, 1fr); } }

.contours { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.contours path { fill: none; stroke: var(--gold); }
.contours .minor { stroke-opacity: 0.10; stroke-width: 1; }
.contours .major { stroke-opacity: 0.22; stroke-width: 1.4; }

.hero__figure { margin: 0; display: grid; gap: 12px; }
.hero__figure figcaption { font-size: 0.92rem; color: var(--on-dark-2); }

/* Credential strip under the hero */
.creds { background: var(--walnut-3); color: var(--on-dark-2); border-top: 1px solid var(--walnut-line); }
.creds ul { display: flex; flex-wrap: wrap; gap: 10px 36px; margin: 0; padding: 18px 0; list-style: none; font: 600 0.82rem/1.4 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.creds li { display: inline-flex; align-items: center; gap: 10px; }
.creds li::before { content: ""; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); flex: none; }

/* Announcement bar (UAD 3.6) */
.notice { display: block; background: var(--sand); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.notice:hover { color: var(--ink); background: #e6d6b6; }
.notice .wrap { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding-block: 14px; font-size: 1rem; }
.notice__tag { font: 600 0.78rem var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-text); }

/* 7. COMPONENTS ============================================================ */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.band--cream .card, .band--sand .card { background: var(--paper); }
.card--pad { padding: clamp(22px, 3vw, 34px); }
.card h3 { font-size: var(--step-1); margin-bottom: 0.45em; }
.card p { color: var(--ink-2); }
.card--dark { background: var(--walnut-2); border-color: var(--walnut-line); color: var(--on-dark); }
.card--dark p { color: var(--on-dark-2); }

/* Audience cards with a numbered rule */
.aud { display: flex; flex-direction: column; gap: 6px; padding: clamp(24px, 3vw, 36px); border-top: 3px solid var(--gold); }
.aud__num { font: 600 0.8rem var(--font-mono); letter-spacing: 0.1em; color: var(--gold-text); }
.aud .textlink { margin-top: auto; }

/* Property-type tiles */
.ptype { display: flex; flex-direction: column; overflow: hidden; }
.ptype .ph { border-radius: 0; border-width: 0 0 1px; }
.ptype__body { padding: 22px 24px 26px; }
.ptype__body h3 { font-size: 1.3rem; }
.ptype__body p { margin: 0; font-size: 1.02rem; }

/* Feature list with diamond bullets */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }

/* Numbered steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(20px, 3vw, 32px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); counter-reset: step; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 8px; }
.steps li::before { content: counter(step, decimal-leading-zero); font: 800 2.4rem/1 var(--font-display); color: var(--gold); }
.steps strong { font-size: 1.15rem; }
/* Three across (title full-width above, numbered items in rows of 3) */
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: clamp(28px, 4vw, 40px); }
@media (max-width: 820px) { .steps--3 { grid-template-columns: minmax(0, 1fr); } }
.steps span { color: var(--ink-2); }
.band--dark .steps span { color: var(--on-dark-2); }

/* Key-dates table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 600 0.8rem var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); background: var(--cream); }
tr:last-child td { border-bottom: 0; }
td:first-child { white-space: nowrap; font-weight: 700; }

/* Topic chips (blog filter) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink);
  font: 600 0.95rem var(--font-body); cursor: pointer;
}
.chip:hover { border-color: var(--walnut); }
.chip[aria-pressed="true"] { background: var(--walnut); border-color: var(--walnut); color: var(--on-dark); }

.tag { font: 600 0.76rem var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 8px; }

/* County cards */
.county { padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 100px; }
.county h2 { font-size: var(--step-2); margin-bottom: 0.2em; }
.county__towns { font-size: 1rem; color: var(--ink-2); }
.county__label { font: 600 0.76rem var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-text); margin: 10px 0 0; }

/* Pull quote */
.pull { margin: 0; padding-left: clamp(18px, 3vw, 28px); border-left: 3px solid var(--gold); font: 500 var(--step-2)/1.3 var(--font-display); font-style: italic; }
.band--dark .pull { color: var(--on-dark); }

/* Call-to-action panel */
.cta-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-panel h2 { margin: 0 0 0.25em; }
.cta-box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 24px;
  background: var(--walnut); color: var(--on-dark); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 34px); margin: 2.5rem 0 1.5rem;
}
.cta-box > div { flex: 1 1 320px; }
.cta-box p { color: var(--on-dark-2); margin: 0; }
.cta-box__title { font: 700 var(--step-1)/1.25 var(--font-display); color: var(--on-dark) !important; margin-bottom: 6px !important; }

/* IMAGE PLACEHOLDERS — search the HTML for "IMG-REPLACE" to find each one */
.ph {
  position: relative; display: grid; place-items: center; width: 100%;
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(135deg, rgba(184, 146, 42, 0.07) 0 12px, transparent 12px 24px),
    var(--cream);
  color: var(--ink-2); text-align: center;
}
.ph__label { max-width: 86%; overflow-wrap: anywhere; font: 600 0.78rem/1.5 var(--font-mono); letter-spacing: 0.05em; padding: 10px 14px; background: rgba(255, 252, 246, 0.86); border-radius: 6px; }
.hero .ph, .band--dark .ph { border-color: var(--walnut-line); background: repeating-linear-gradient(135deg, rgba(184, 146, 42, 0.12) 0 12px, transparent 12px 24px), var(--walnut-2); }
.hero .ph__label, .band--dark .ph__label { background: rgba(31, 22, 16, 0.75); color: var(--gold-soft); }

/* Real images that replace placeholders (same box, cropped to fit) */
/* Eleventy Image wraps each <img> in <picture>; make the wrapper invisible to layout
   (its <source> lines still choose the file, they just take no space in grids) */
picture { display: contents; }
picture > source { display: none; }
.ph-img { display: block; width: 100%; max-width: 100%; height: auto; object-fit: cover; border-radius: var(--radius-lg); background: var(--cream); }
.ptype .ph-img, .post-card .ph-img { border-radius: 0; }
.featured .ph-img { border-radius: 0; height: 100%; min-height: 300px; }
.brand__logo { display: block; height: 48px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
/* Horizontal logo is ~270px wide: keep menu labels on one line so the full menu fits down to 1121px */
.site-nav a { white-space: nowrap; }

/* 8. BLOG ================================================================== */
.post-card { overflow: hidden; display: flex; flex-direction: column; }
.post-card[hidden] { display: none; }
.post-card .ph { border-radius: 0; border-width: 0 0 1px; }
.post-card__media { display: block; }
.post-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card__title { font-size: 1.3rem; margin: 0 0 8px; line-height: 1.25; }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a:hover { text-decoration: underline; }
.post-card__dek { font-size: 1rem; color: var(--ink-2); }
.post-card__meta { margin-top: auto; padding-top: 10px; font-size: 0.9rem; color: var(--ink-2); }

.featured { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; }
.featured .ph { border-radius: 0; border-width: 0 1px 0 0; height: 100%; min-height: 300px; }
.featured__body { padding: clamp(26px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.featured__body h3 { font-size: var(--step-2); }
.featured__body h3 a { color: var(--ink); text-decoration: none; }
@media (max-width: 820px) { .featured { grid-template-columns: minmax(0, 1fr); } .featured .ph { border-width: 0 0 1px; min-height: 0; } }

.post-shell { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 64px); padding-block: clamp(32px, 5vw, 56px) clamp(56px, 7vw, 88px); align-items: start; }
@media (max-width: 980px) { .post-shell { grid-template-columns: minmax(0, 1fr); } }
.post { max-width: 760px; min-width: 0; }
.crumbs { font-size: 0.95rem; color: var(--ink-2); margin-bottom: 22px; }
.post__head h1 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem); }
.post__dek { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); }
.byline { display: flex; align-items: center; gap: 14px; margin: 22px 0 30px; }
.byline p { margin: 0; font-size: 0.98rem; line-height: 1.45; }
.byline__avatar { width: 56px; height: 56px; border-radius: 50%; flex: none; aspect-ratio: 1; }

.post__lead { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 24px; margin-bottom: 36px; align-items: start; }
@media (max-width: 640px) { .post__lead { grid-template-columns: minmax(0, 1fr); } .post__video { max-width: 300px; } }
.takeaways { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius-lg); padding: 24px 26px; }
.takeaways ul { margin: 0; padding-left: 1.1em; display: grid; gap: 10px; font-size: 1.02rem; }

.prose { font-size: 1.15rem; line-height: 1.75; }
.prose h2 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.85rem); margin-top: 1.8em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: 8px; margin: 0 0 1.2em; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--gold); font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--ink); }
.prose table { font-size: 1rem; margin: 1.4em 0; border: 1px solid var(--line); }

.post__sources { margin-top: 2rem; font-size: 0.98rem; }
.post__sources ul { padding-left: 1.1em; margin: 0; display: grid; gap: 6px; }
.disclaimer { font-size: 0.92rem; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 18px; }

.post-side { display: grid; gap: 20px; position: sticky; top: 100px; }
@media (max-width: 980px) { .post-side { position: static; } }
.side-card { padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.side-card p { margin: 0; font-size: 1rem; }
.side-card__title { font: 700 1.2rem var(--font-display); color: var(--ink) !important; }
.side-card--sand { background: var(--sand); border-color: var(--line-strong); }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.side-list li:last-child a { border-bottom: 0; }
.side-list a:hover { color: var(--gold-text); }

/* 9. FORMS ================================================================= */
.form { display: grid; gap: 20px; }
.form-card { padding: clamp(22px, 3.5vw, 40px); }
.form-row { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.field { display: flex; flex-direction: column; gap: 7px; }
/* Stacked date pickers (Realtor session form): label left, picker right */
.date-stack { display: grid; gap: 12px; }
.date-stack .field { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); align-items: center; gap: 12px; }
@media (max-width: 420px) { .date-stack .field { grid-template-columns: minmax(0, 1fr); gap: 6px; } }
.field label, .field legend, .fieldset-label { font-weight: 700; font-size: 1rem; }
.field .hint { font-size: 0.9rem; color: var(--ink-2); font-weight: 400; }
.req { color: var(--gold-text); }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: 400 1.05rem/1.4 var(--font-body); color: var(--ink);
  background: #fff; border: 1.5px solid var(--line-strong); border-radius: 8px;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--walnut); outline: 3px solid rgba(184, 146, 42, 0.45); outline-offset: 1px; }
input[type="file"] { padding: 14px; border: 1.5px dashed var(--line-strong); border-radius: 8px; background: #fff; font: inherit; font-size: 1rem; width: 100%; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.check, .radio { display: flex; align-items: flex-start; gap: 12px; font-size: 1rem; line-height: 1.5; min-height: 44px; padding-top: 10px; }
.check input, .radio input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--walnut); }
.form-legal { border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 4px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; } /* spam honeypot */
.form-status { padding: 14px 18px; border-radius: 8px; font-weight: 700; }
.form-status:empty { display: none; }
.form-status[data-state="ok"] { background: #e7efdf; color: #2e4a1f; }
.form-status[data-state="error"] { background: #f6e1d9; color: #7a2e14; }
.form-status[data-state="info"] { background: var(--sand); color: var(--ink); }

/* 10. FOOTER =============================================================== */
.site-footer { background: var(--walnut-3); color: var(--on-dark-2); padding-block: 64px 36px; font-size: 1rem; }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer__grid { display: grid; gap: 36px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: minmax(0, 1fr); } }
.site-footer__name { font: 700 1.35rem var(--font-display); color: var(--on-dark); }
.site-footer__head { font: 600 0.78rem var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 12px; }
.site-footer__head--spaced { margin-top: 24px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.site-footer ul a { display: inline-block; padding: 6px 0; text-decoration: none; }
.site-footer .muted { color: var(--on-dark-2); font-size: 0.9rem; }
.site-footer__legal { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--walnut-line); display: grid; gap: 10px; font-size: 0.88rem; line-height: 1.6; max-width: 980px; }

/* 11. UTILITIES + MOTION =================================================== */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  .site-header, .site-footer, .cta-box, .post-side, .contours { display: none !important; }
  body { background: #fff; }
}
