/* =====================================================================
   Hilary Kilgore — Blog Post Stylesheet
   Loaded by /blog/[slug]/index.html in addition to /assets/css/site.css.
   Contains: post hero, byline, article prose, pull quote, Hilary's note,
             image full, info cards, stat strip, checklist, divider,
             post CTA + form, related posts.
   ===================================================================== */

/* Blog posts use slightly larger body type for long-form readability */
body { font-size: 17px; line-height: 1.7; }

/* ─── POST HERO ─── */
.post-hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: flex-end;
  background: var(--hk-ink);
  overflow: hidden;
}
.post-hero-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.post-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(27,80,78,0.15) 0%, rgba(27,80,78,0.55) 60%, rgba(27,80,78,0.92) 100%);
}
.post-hero-content {
  position: relative; z-index: 2;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 96px 32px 56px;
  color: var(--hk-paper);
}
.post-hero-eyebrow {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--hk-lime);
  margin-bottom: 18px;
  display: inline-block;
}
.post-hero-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: var(--hk-paper);
  margin-bottom: 24px;
  max-width: 880px;
}
.post-hero-title em { font-style: italic; color: var(--hk-lime); }

/* ─── BYLINE ─── */
.post-byline {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: rgba(227, 222, 210, 0.82);
  font-size: 13px;
  font-family: var(--body);
}
.post-byline-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(193, 249, 170, 0.55);
}
.post-byline strong { color: var(--hk-paper); font-weight: 600; }
.post-byline-sep { color: rgba(227, 222, 210, 0.4); }
/* Optional second line under the byline — REALTOR® · brokerage · license #.
   Surfaces E-E-A-T signals on every blog post, not just the bio page. */
.post-byline-credentials {
  width: 100%;
  margin-top: 6px;
  margin-left: 58px;
  font-family: var(--body);
  font-size: 12px;
  color: rgba(227, 222, 210, 0.62);
  letter-spacing: 0.02em;
  line-height: 1.5;
}
@media (max-width: 640px) {
  .post-byline-credentials { margin-left: 0; }
}

/* ─── ARTICLE BODY ─── */
.article {
  background: var(--hk-paper);
  padding: 64px 0 96px;
}
.article-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hk-accent);
  margin-bottom: 32px;
}
.back-link::before { content: '\2190'; }

/* ─── PROSE ─── */
.prose p {
  font-size: 17px;
  color: var(--hk-ink);
  margin-bottom: 22px;
  line-height: 1.75;
}
.prose p.lead {
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.55;
  color: var(--hk-ink);
  margin-bottom: 36px;
  border-left: 2px solid var(--hk-accent);
  padding-left: 22px;
}
.prose h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.2;
  color: var(--hk-ink);
  margin: 48px 0 18px;
  letter-spacing: -0.005em;
}
.prose h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  color: var(--hk-ink);
  margin: 32px 0 14px;
}
.prose ul, .prose ol { margin: 12px 0 24px 22px; }
.prose li {
  font-size: 17px;
  color: var(--hk-ink);
  margin-bottom: 8px;
  line-height: 1.7;
}
.prose a {
  color: var(--hk-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.prose a:hover { color: var(--hk-ink); }
.prose strong { color: var(--hk-ink); font-weight: 600; }

/* ─── PULL QUOTE ─── */
.pull-quote {
  margin: 44px 0;
  padding: 8px 0 8px 28px;
  border-left: 3px solid var(--hk-accent);
}
.pull-quote p {
  font-family: var(--display);
  font-style: italic;
  font-size: 26px;
  line-height: 1.4;
  color: var(--hk-ink);
  margin: 0 !important;
}
.pull-quote cite {
  display: block;
  font-family: var(--body);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hk-sage);
  margin-top: 14px;
  font-weight: 600;
}

/* ─── HILARY'S NOTE ─── */
.hk-note {
  background: var(--hk-lavender);
  color: var(--hk-ink);
  border-radius: 4px;
  padding: 28px 32px;
  margin: 40px 0;
}
.hk-note-label {
  font-family: var(--body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--hk-ink);
  margin-bottom: 10px;
  opacity: 0.7;
}
.hk-note-body {
  font-family: var(--display);
  font-style: italic;
  font-size: 19px;
  line-height: 1.55;
  color: var(--hk-ink);
  margin: 0;
}

/* ─── HILARY'S QUICK TAKE ─── */
/* Top-of-post summary block. Semantic <aside role="doc-abstract"> so screen
   readers and AI extractors recognize this as the article's summary/abstract.
   Same lavender as .hk-note (design family) but with bullets in Work Sans for
   scan/extract quality. Sits as the first element inside .prose, above .lead. */
.quick-take {
  background: var(--hk-lavender);
  color: var(--hk-ink);
  border-radius: 4px;
  padding: 28px 32px;
  margin: 0 0 36px 0;
}
.quick-take-label {
  font-family: var(--body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--hk-ink);
  margin-bottom: 12px;
  opacity: 0.7;
}
.quick-take-lede {
  font-family: var(--display);
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: var(--hk-ink);
  margin: 0 0 14px 0;
}
.quick-take-points {
  margin: 0;
  padding-left: 22px;
  list-style: disc;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--hk-ink);
}
.quick-take-points li {
  margin: 0 0 6px 0;
}
.quick-take-points li:last-child {
  margin-bottom: 0;
}
@media (max-width: 760px) {
  .quick-take {
    padding: 22px 22px;
    margin-bottom: 28px;
  }
  .quick-take-lede {
    font-size: 17px;
  }
  .quick-take-points {
    font-size: 15px;
  }
}

/* ─── FULL-WIDTH IMAGE + CAPTION ─── */
.img-full {
  margin: 44px 0;
  border-radius: 4px;
  overflow: hidden;
}
.img-full img { width: 100%; height: auto; display: block; }
.img-caption {
  font-family: var(--body);
  font-size: 13px;
  color: var(--hk-ink-64);
  text-align: center;
  margin-top: 12px;
  font-style: italic;
}

/* ─── IMAGE GRID (2-up) ─── */
.img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 44px 0;
}
.img-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  aspect-ratio: 3 / 2;
}

/* ─── INFO CARDS (3-up data tiles) ─── */
.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 44px 0;
}
.info-card {
  background: var(--hk-paper-soft);
  border: 1px solid var(--hk-ink-12);
  border-radius: 4px;
  padding: 20px 22px;
}
.info-card-label {
  font-family: var(--body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hk-sage);
  margin-bottom: 6px;
}
.info-card-value {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  color: var(--hk-ink);
  line-height: 1.2;
}
.info-card-note {
  font-size: 13px;
  color: var(--hk-ink-64);
  margin-top: 6px;
  line-height: 1.5;
}

/* ─── STAT STRIP (dark 3-up inside article) ─── */
.stat-strip {
  background: var(--hk-ink);
  color: var(--hk-paper);
  border-radius: 4px;
  padding: 36px 28px;
  margin: 48px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-strip .stat-num {
  font-family: var(--display);
  font-weight: 600;
  font-size: 36px;
  color: var(--hk-lime);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-strip .stat-label {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(227, 222, 210, 0.7);
}

/* ─── CHECKLIST ─── */
.checklist {
  background: var(--hk-paper-soft);
  border-left: 3px solid var(--hk-sage);
  border-radius: 0 4px 4px 0;
  padding: 28px 32px;
  margin: 40px 0;
}
.checklist-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  color: var(--hk-ink);
  margin-bottom: 14px;
}
.checklist-list {
  list-style: none;
  margin: 0 !important;
}
.checklist-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 16px;
  line-height: 1.55;
  color: var(--hk-ink);
  border-bottom: 1px solid var(--hk-ink-08);
}
.checklist-list li:last-child { border-bottom: none; }
.checklist-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--hk-accent);
  font-weight: 700;
}

/* ─── HOWTO STEPS ─── */
/* Numbered playbook used when a post is structured as a how-to. Paired with
   the HowTo JSON-LD schema in <head>. Visual lineage matches .checklist
   (paper-soft fill + sage left rule) but renders as an explicit numbered
   sequence with named-step headings. */
.howto-steps {
  list-style: none;
  counter-reset: howto;
  background: var(--hk-paper-soft);
  border-left: 3px solid var(--hk-sage);
  border-radius: 0 4px 4px 0;
  padding: 28px 32px;
  margin: 40px 0;
}
.howto-steps > li {
  counter-increment: howto;
  position: relative;
  padding: 12px 0 16px 56px;
  border-bottom: 1px solid var(--hk-ink-08);
}
.howto-steps > li:last-child { border-bottom: none; padding-bottom: 4px; }
.howto-steps > li::before {
  content: counter(howto);
  position: absolute;
  left: 0;
  top: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--hk-ink);
  color: var(--hk-paper);
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.howto-step-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  color: var(--hk-ink);
  margin: 0 0 6px 0;
  line-height: 1.25;
}
.howto-step-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--hk-ink);
  margin: 0;
}
@media (max-width: 640px) {
  .howto-steps { padding: 22px 20px; }
  .howto-steps > li { padding-left: 48px; }
  .howto-steps > li::before { width: 32px; height: 32px; font-size: 16px; }
  .howto-step-name { font-size: 19px; }
}

/* ─── SECTION DIVIDER ─── */
.divider {
  text-align: center;
  margin: 48px 0;
  font-family: var(--display);
  font-style: italic;
  color: var(--hk-sage);
  font-size: 22px;
  opacity: 0.6;
  letter-spacing: 0.4em;
}

/* ─── POST CTA (dark with inline form) ─── */
.post-cta {
  background: var(--hk-ink);
  color: var(--hk-paper);
  border-radius: 6px;
  padding: 48px 44px;
  margin: 64px 0 0;
  text-align: center;
}
.post-cta-eyebrow {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--hk-lime);
  margin-bottom: 14px;
  display: inline-block;
}
.post-cta h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.15;
  color: var(--hk-paper);
  margin-bottom: 14px;
}
.post-cta h3 em { font-style: italic; color: var(--hk-lime); }
.post-cta p {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(227, 222, 210, 0.75);
  max-width: 460px;
  margin: 0 auto 28px;
}

/* Blog-post .btn overrides: scoped to .post-cta so site.css buttons
   elsewhere on the page render normally. */
.post-cta .btn-primary { background: var(--hk-lime); color: var(--hk-ink); border-color: var(--hk-lime); }
.post-cta .btn-primary:hover { background: var(--hk-paper); border-color: var(--hk-paper); color: var(--hk-ink); }
.post-cta .btn-outline-light { background: transparent; color: var(--hk-paper); border-color: var(--hk-paper); margin-left: 12px; }
.post-cta .btn-outline-light:hover { background: var(--hk-paper); color: var(--hk-ink); }

/* ─── INLINE FORM INSIDE POST CTA ─── */
/* Form styles (.cta-form, .cta-form-grid, .cta-thanks, .cta-alt, .hp-field)
   moved to site.css so home / about / neighborhoods can reuse them.
   Blog-post-specific tweaks (lime button border) live below. */
.post-cta .cta-form button[type="submit"] {
  border: 1.5px solid var(--hk-lime);
}

/* ─── RELATED POSTS (bottom of blog post) ─── */
.related {
  background: var(--hk-paper-soft);
  padding: 80px 0;
  border-top: 1px solid var(--hk-ink-08);
}
.related h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 40px);
  color: var(--hk-ink);
  margin-bottom: 8px;
  text-align: center;
}
.related h2 em { font-style: italic; color: var(--hk-accent); }
.related-eyebrow {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--hk-accent);
  margin-bottom: 12px;
  display: block;
  text-align: center;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.related-card {
  background: var(--hk-paper);
  border-top: 4px solid var(--hk-accent);
  padding: 24px 24px 28px;
  border-radius: 0 0 4px 4px;
  border-left: 1px solid var(--hk-ink-12);
  border-right: 1px solid var(--hk-ink-12);
  border-bottom: 1px solid var(--hk-ink-12);
  transition: transform 0.25s;
}
.related-card.var-2 { border-top-color: var(--hk-sage); }
.related-card.var-3 { border-top-color: var(--hk-lavender); }
.related-card:hover { transform: translateY(-3px); }
.related-meta {
  font-family: var(--body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hk-sage);
  margin-bottom: 10px;
}
.related-card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.25;
  color: var(--hk-ink);
  margin-bottom: 14px;
}
.related-card h3 a { color: inherit; }
.related-card h3 a:hover { color: var(--hk-accent); }
.related-link {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hk-accent);
}
.related-link::after { content: ' \2192'; }

/* ─── RESPONSIVE ─── */

@media (max-width: 980px) {
  .info-cards { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .post-hero { min-height: 460px; }
  .post-hero-content { padding: 80px 32px 48px; }
}
@media (max-width: 640px) {
  .info-cards { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr; gap: 20px; padding: 28px 24px; }
  .img-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .article-inner { padding: 0 22px; }
  .post-cta { padding: 36px 26px; }
  .post-cta .btn-outline-light { margin-left: 0; margin-top: 10px; }
}

/* =====================================================================
   DISCLAIMER BLOCKS
   High-visibility caveat boxes for posts that mention rates, payments,
   dollar figures, breakeven math, or tax / legal treatment. Inserted
   into the body of relevant posts by scripts/retrofit-disclaimers.py.

   Two variants:
     .disclaimer-block            → warm sand panel, clay left border
                                    (default; used for top + pre-table)
     .disclaimer-block.is-footer  → muted teal panel for the bottom-of-
                                    post legal-style footer block
   ===================================================================== */
.disclaimer-block {
  background: #f7efde;
  border-left: 4px solid #c89060;
  padding: 18px 22px;
  margin: 32px 0;
  border-radius: 2px;
}
.disclaimer-block-label {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8a5a30;
  margin-bottom: 10px;
  display: block;
}
.disclaimer-block p {
  font-family: var(--body);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--hk-ink);
  margin: 0;
}
.disclaimer-block p + p { margin-top: 10px; }
.disclaimer-block strong { color: #1b504e; }
.disclaimer-block.is-footer {
  background: rgba(27, 80, 78, 0.04);
  border-left-color: #1b504e;
}
.disclaimer-block.is-footer .disclaimer-block-label { color: #1b504e; }
.disclaimer-block.is-footer p { font-size: 13px; line-height: 1.6; color: var(--hk-ink-64); }
.disclaimer-block.is-footer strong { color: var(--hk-ink); }

/* ─── NEIGHBORHOOD CALLOUT (cluster link near bottom of post body) ─── */
/* Inserted by scripts/retrofit-neighborhood-callout.py on every post that
   has a non-empty neighborhoods[] tag in /data/posts.json. Bracketed by
   BUILD:NEIGHBORHOOD-CALLOUT markers for idempotent regeneration. */
.neighborhood-callout {
  margin: 56px 0 40px;
  padding: 32px 36px;
  background: var(--hk-paper);
  border-left: 4px solid var(--hk-accent);
  border-radius: 0 6px 6px 0;
  border-top: 1px solid var(--hk-ink-12);
  border-right: 1px solid var(--hk-ink-12);
  border-bottom: 1px solid var(--hk-ink-12);
}
.neighborhood-callout .callout-eyebrow {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hk-sage);
  margin: 0 0 6px;
}
.neighborhood-callout h3 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--hk-ink);
  margin: 0 0 10px;
}
.neighborhood-callout h3 em { font-style: italic; color: var(--hk-accent); }
.neighborhood-callout p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--hk-ink-64);
  margin: 0 0 16px;
}
.neighborhood-callout .callout-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.neighborhood-callout .callout-link {
  display: inline-block;
  padding: 10px 18px;
  background: var(--hk-ink);
  color: var(--hk-paper);
  border-radius: 4px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.2s;
}
.neighborhood-callout .callout-link:hover { background: var(--hk-accent); color: var(--hk-paper); }
.neighborhood-callout .callout-link.is-secondary {
  background: transparent;
  color: var(--hk-ink);
  border: 1px solid var(--hk-ink-32);
}
.neighborhood-callout .callout-link.is-secondary:hover { background: var(--hk-ink); color: var(--hk-paper); border-color: var(--hk-ink); }
@media (max-width: 600px) {
  .neighborhood-callout { padding: 24px 22px; margin: 40px 0 32px; }
  .neighborhood-callout h3 { font-size: 22px; }
}
