/* ═══════════════════════════════════════════════════════════
   The Loop — blog-detail.css  (page-specific only)
   ═══════════════════════════════════════════════════════════ */

/* ─── BREADCRUMB ─── */
.breadcrumb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--ink-4); margin-bottom: 20px; }
.breadcrumb a { color: var(--ink-4); transition: color 0.12s; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb-sep { color: var(--border-md); font-size: 10px; }
.breadcrumb-current { color: var(--ink-3); }

/* ─── BYLINE ─── */
.byline { display: flex; align-items: center; gap: 13px; padding: 18px 0 16px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 40px; flex-wrap: wrap; row-gap: 12px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: #1A6B5A; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 600; flex: none; letter-spacing: 0.04em; }
.byline-name { font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 1px; }
.byline-role { font-size: 12px; color: var(--ink-4); }
.byline-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.byline-meta { font-size: 12.5px; color: var(--ink-4); text-align: right; line-height: 1.5; }
.follow-pill { font-size: 12px; font-weight: 500; color: var(--blue); border: 1px solid var(--blue); border-radius: 100px; padding: 5px 14px; white-space: nowrap; transition: all 0.15s; }
.follow-pill:hover { background: var(--blue); color: #fff; }

/* ─── ENGAGEMENT BAR ─── */
.eng-bar { display: flex; align-items: center; gap: 18px; padding: 12px 0 0; margin-bottom: 40px; }
.eng-btn { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); cursor: pointer; background: none; border: none; padding: 0; transition: color 0.12s; }
.eng-btn:hover { color: var(--ink); }
.eng-btn svg { opacity: 0.55; transition: opacity 0.12s; }
.eng-btn:hover svg { opacity: 1; }
.eng-sep { width: 1px; height: 16px; background: var(--border); }
.eng-share { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.eng-share-btn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); background: none; display: flex; align-items: center; justify-content: center; color: var(--ink-3); cursor: pointer; transition: border-color 0.15s, color 0.15s; }
.eng-share-btn:hover { border-color: var(--ink-3); color: var(--ink); }

/* ─── COVER IMAGE ─── */
.cover { width: 100%; aspect-ratio: 16/8; border-radius: var(--r); overflow: hidden; background: linear-gradient(135deg, #e8e4dc 0%, #d8d3c8 100%); margin-bottom: 48px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-family: var(--mono); color: var(--ink-4); letter-spacing: 0.04em; }

/* ─── VIDEO BLOCK ─── */
.video-block { margin: 0 0 1.8em; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border); }
.video-thumb { width: 100%; aspect-ratio: 16/9; background: #1a1a18; display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative; overflow: hidden; }
.video-bg-word { position: absolute; font-family: var(--serif); font-size: 100px; color: rgba(255,255,255,0.035); font-weight: 600; letter-spacing: -0.05em; user-select: none; }
.play-btn { width: 60px; height: 60px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; box-shadow: 0 4px 24px rgba(0,0,0,0.4); transition: transform 0.2s cubic-bezier(.34,1.56,.64,1), box-shadow 0.2s; }
.video-thumb:hover .play-btn { transform: scale(1.08); box-shadow: 0 8px 40px rgba(0,0,0,0.5); }
.play-btn svg { margin-left: 4px; }
.video-cap { background: #222220; border-top: 1px solid #2e2e2c; padding: 10px 16px; font-size: 12px; color: #777; font-family: var(--mono); }

/* ─── IN-CONTENT CTAs ─── */
.cta-band { margin: 0 0 1.8em; background: var(--surface); border: 1px solid var(--border-md); border-radius: var(--r-md); padding: 22px 26px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.cta-band-text { flex: 1; min-width: 200px; }
.cta-band-eye { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 5px; }
.cta-band-title { font-family: var(--serif); font-size: 17px; color: var(--ink); line-height: 1.4; margin-bottom: 3px; font-weight: 600; }
.cta-band-sub { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.cta-band-form { display: flex; gap: 7px; align-items: center; }
.cta-band-input { flex: 1; min-width: 160px; padding: 9px 13px; border-radius: var(--r); border: 1.5px solid var(--border-md); background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 13px; outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.cta-band-input::placeholder { color: var(--ink-4); }
.cta-band-input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(44,43,40,0.07); }
.cta-band-btn { padding: 9px 18px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 600; border-radius: var(--r); border: none; cursor: pointer; white-space: nowrap; font-family: var(--sans); transition: background 0.15s; }
.cta-band-btn:hover { background: #444240; }

.cta-download { margin: 0 0 1.8em; border: 1px solid var(--border); border-radius: var(--r-md); padding: 20px 22px; display: flex; gap: 18px; align-items: center; background: var(--bg); }
.cta-dl-icon { width: 48px; height: 48px; flex: none; border-radius: 8px; background: #eee9e0; border: 1px solid #d8d1c6; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.cta-dl-body { flex: 1; }
.cta-dl-eye { font-size: 10px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 3px; }
.cta-dl-title { font-size: 14.5px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.cta-dl-desc { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.cta-dl-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 600; border-radius: var(--r); transition: background 0.15s; white-space: nowrap; }
.cta-dl-btn:hover { background: #444240; color: #fff; }

.cta-readnext { margin: 0 0 1.8em; border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px 20px; display: flex; gap: 16px; align-items: center; background: var(--surface); transition: border-color 0.15s; }
.cta-readnext:hover { border-color: var(--border-md); }
.crn-thumb { width: 64px; height: 44px; border-radius: 4px; flex: none; background: linear-gradient(135deg, #e2ddd5, #d0cbc0); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.crn-eye { font-size: 10px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 4px; }
.crn-title { font-family: var(--serif); font-size: 15.5px; color: var(--ink); line-height: 1.35; margin-bottom: 4px; }
.crn-link { font-size: 12.5px; font-weight: 500; color: var(--blue); display: inline-flex; align-items: center; gap: 3px; }

/* ─── TAGS ─── */
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 40px; }
.tag { font-size: 12px; font-weight: 500; color: var(--ink-3); background: var(--surface); border: 1px solid var(--border); padding: 5px 12px; border-radius: 100px; transition: all 0.12s; }
.tag:hover { border-color: var(--border-md); color: var(--ink); }

/* ─── AUTHOR CARD ─── */
.author-card { border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; margin-top: 40px; }
.author-card-top { padding: 14px 22px 12px; border-bottom: 1px solid var(--border); font-size: 10.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-4); }
.author-card-body { padding: 24px 22px; }
.author-top { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.author-av-lg { width: 64px; height: 64px; border-radius: 9px; background: #1A6B5A; color: #fff; flex: none; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 600; letter-spacing: 0.04em; box-shadow: 0 2px 12px rgba(26,107,90,0.28); }
.author-name { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 2px; display: block; transition: color 0.12s; }
.author-name:hover { color: var(--blue); }
.author-role { font-size: 12.5px; color: var(--ink-4); }
.author-follow { font-size: 12.5px; font-weight: 500; color: var(--blue); border: 1.5px solid var(--blue); border-radius: 100px; padding: 5px 16px; margin-left: auto; white-space: nowrap; flex: none; transition: all 0.15s; }
.author-follow:hover { background: var(--blue); color: #fff; }
.author-bio { font-family: var(--sans); font-size: 15px; line-height: 1.72; color: var(--ink-2); margin-bottom: 16px; }
.author-links { display: flex; gap: 16px; align-items: center; }
.author-links a { font-size: 13px; font-weight: 500; color: var(--ink-3); display: flex; align-items: center; gap: 5px; transition: color 0.12s; }
.author-links a:hover { color: var(--blue); }
.author-links .dot { color: var(--border-md); }

/* ─── DOWNLOAD DROPDOWN (right share bar) ─── */
.dl-wrap { position: relative; }
.dl-panel { position: absolute; right: calc(100% + 8px); top: 50%; transform: translateY(-50%) translateX(-4px); background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-md); padding: 5px; min-width: 168px; box-shadow: 0 8px 32px rgba(0,0,0,0.1); opacity: 0; pointer-events: none; transition: opacity 0.15s, transform 0.15s; z-index: 60; }
.dl-wrap.open .dl-panel { opacity: 1; pointer-events: all; transform: translateY(-50%) translateX(0); }
.dl-item { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: var(--r); font-size: 13px; color: var(--ink-2); cursor: pointer; transition: background 0.1s, color 0.1s; }
.dl-item:hover { background: var(--surface); color: var(--ink); }
.dl-item svg { color: var(--ink-4); flex: none; }
.dl-item:hover svg { color: var(--blue); }

/* ─── LEAD CAPTURE POPUP ─── */
.popup-overlay { position: fixed; inset: 0; z-index: 800; background: rgba(30,28,26,0.5); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity 0.22s; }
.popup-overlay.open { opacity: 1; pointer-events: all; }
.popup { background: var(--bg); border-radius: var(--r-lg); width: 100%; max-width: 420px; box-shadow: 0 28px 80px rgba(0,0,0,0.22); transform: scale(0.96) translateY(10px); transition: transform 0.26s cubic-bezier(.34,1.4,.64,1); overflow: hidden; }
.popup-overlay.open .popup { transform: scale(1) translateY(0); }
.popup-head { background: linear-gradient(135deg, #1e2d3a 0%, #243d52 55%, #162e20 100%); padding: 26px 26px 22px; position: relative; overflow: hidden; }
.popup-head::before { content: ''; position: absolute; top: -32px; right: -32px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, rgba(26,137,23,0.32) 0%, transparent 70%); pointer-events: none; }
.popup-close { position: absolute; top: 13px; right: 13px; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.1); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.55); transition: background 0.15s, color 0.15s; }
.popup-close:hover { background: rgba(255,255,255,0.2); color: #fff; }
.popup-icon { font-size: 28px; margin-bottom: 12px; display: block; }
.popup-h { font-family: var(--serif); font-size: 19px; font-weight: 600; color: #fff; line-height: 1.3; margin-bottom: 6px; }
.popup-sub { font-family: var(--sans); font-size: 13px; color: rgba(255,255,255,0.52); line-height: 1.55; }
.popup-body { padding: 22px 26px 26px; }
.popup-perks { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.popup-perk { display: flex; align-items: flex-start; gap: 9px; font-family: var(--sans); font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.perk-check { width: 17px; height: 17px; border-radius: 50%; flex: none; margin-top: 2px; background: rgba(26,137,23,0.1); border: 1.5px solid rgba(26,137,23,0.3); display: flex; align-items: center; justify-content: center; }
.popup-form { display: flex; flex-direction: column; gap: 10px; }
.popup-field { display: flex; flex-direction: column; gap: 5px; }
.popup-lbl { font-family: var(--sans); font-size: 11.5px; font-weight: 600; color: var(--ink-3); letter-spacing: 0.02em; }
.popup-input { padding: 10px 13px; border-radius: var(--r); border: 1.5px solid var(--border); background: var(--bg); font-family: var(--sans); font-size: 14px; color: var(--ink); outline: none; width: 100%; transition: border-color 0.15s, box-shadow 0.15s; }
.popup-input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(44,43,40,0.08); }
.popup-input::placeholder { color: var(--ink-4); }
.popup-submit { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; background: var(--ink); color: #fff; font-family: var(--sans); font-size: 14px; font-weight: 600; border: none; border-radius: var(--r); cursor: pointer; margin-top: 4px; transition: background 0.15s, transform 0.1s; }
.popup-submit:hover { background: #444240; transform: translateY(-1px); }
.popup-note { font-family: var(--sans); text-align: center; font-size: 11px; color: var(--ink-4); margin-top: 10px; }
.popup-success { display: none; padding: 44px 28px; text-align: center; }
.ps-icon { width: 52px; height: 52px; border-radius: 50%; background: rgba(26,137,23,0.1); border: 2px solid rgba(26,137,23,0.28); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 22px; }
.ps-h { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.ps-p { font-family: var(--sans); font-size: 13.5px; color: var(--ink-3); line-height: 1.65; }

/* ─── RESPONSIVE ─── */
@media (max-width: 600px) {
  .byline-right { display: none; }
  .cta-band { flex-direction: column; }
  .cta-download { flex-direction: column; align-items: flex-start; }
  .cta-dl-btn { width: 100%; justify-content: center; }
}


/* ═══════════════════════════════════════════════════════════
   blog-detail.css — PATCH
   Only two changes from the reference static HTML:
   1. Table — match reference exactly, no class dependency
   2. FAQ   — Yoast SEO schema block selectors replace custom classes
   All other CSS in this file stays untouched.
   ═══════════════════════════════════════════════════════════ */


/* ─── 1. TABLE ───────────────────────────────────────────────
   Reference static HTML uses these exact rules.
   Target: .prose table and its descendants only —
   zero additional class dependency required.
   ─────────────────────────────────────────────────────────── */

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0 0 1.8em;
  overflow-x: auto;
  display: block;
}

.prose thead th {
  text-align: left;
  padding: 10px 15px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--surface);
  border-bottom: 1.5px solid var(--border-md);
  border-top: 1px solid var(--border-md);
}

.prose tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.08s;
}

.prose tbody tr:last-child {
  border-bottom: none;
}

.prose tbody tr:hover {
  background: #fafaf9;
}

.prose tbody td {
  padding: 13px 15px;
  vertical-align: top;
  color: var(--ink-2);
  line-height: 1.55;
}

.prose tbody td strong {
  font-weight: 600;
  color: var(--ink);
}

/* WordPress caption / WP block caption */
.prose caption,
.prose .wp-element-caption {
  font-size: 12.5px;
  color: var(--ink-4);
  font-style: italic;
  text-align: left;
  margin-bottom: 10px;
  caption-side: top;
  line-height: 1.5;
}


/* ─── 2. FAQ — Yoast SEO schema block ───────────────────────
   Yoast outputs:
     .schema-faq                    → wrapper
     .schema-faq-section            → one Q&A pair
     .schema-faq-section--open      → toggled open state
     .schema-faq-question           → the <span> question
     .schema-faq-answer             → the answer div

   The reference static HTML accordion behaviour (toggle open/close,
   rotating plus icon, max-height reveal) is replicated here
   entirely through CSS, matching the reference visual exactly.
   The JS toggle in blog-detail.js should add/remove
   .schema-faq-section--open on each .schema-faq-section.
   ─────────────────────────────────────────────────────────── */

/* Container */
.prose .schema-faq {
  margin: 2em 0 1.8em;
  border-top: 1px solid var(--border);
  /* padding-top: 2em; */
}

/* Optional heading above the FAQ block */
.prose .schema-faq > h2,
.prose .schema-faq > h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 27px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 20px;
}

/* Each Q&A pair */
.prose .schema-faq-section {
  border-bottom: 1px solid var(--border);
}

/* Question row — acts like the reference .faq-q button */
.prose .schema-faq-section .schema-faq-question {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px 0;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  transition: color 0.12s;
  /* Yoast renders question as a <span> inside a <dt>;
     make it behave as a full-width row */
  box-sizing: border-box;
}

.prose .schema-faq-section .schema-faq-question:hover {
  color: var(--ink-2);
}

/* Plus/× icon — injected via ::after so no markup change needed */
.prose .schema-faq-section .schema-faq-question::after {
  content: '';
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--border-md);
  background-image:
    /* horizontal bar */
    linear-gradient(var(--ink-3), var(--ink-3)),
    /* vertical bar */
    linear-gradient(var(--ink-3), var(--ink-3));
  background-repeat: no-repeat;
  background-size: 8px 1.5px, 1.5px 8px;
  background-position: center, center;
  margin-top: 2px;
  transition: border-color 0.15s, background-color 0.15s, transform 0.2s;
}

/* Open state — rotate 45° turns + into × */
.prose .schema-faq-section--open .schema-faq-question::after {
  background-color: var(--ink);
  border-color: var(--ink);
  background-image:
    linear-gradient(#fff, #fff),
    linear-gradient(#fff, #fff);
  transform: rotate(45deg);
}

/* Answer — hidden until open */
.prose .schema-faq-section .schema-faq-answer {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.72;
  color: var(--ink-2);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease, padding-bottom 0.32s;
}

.prose .schema-faq-section--open .schema-faq-answer {
  max-height: 600px;
  padding-bottom: 18px;
}

/* Yoast wraps question in <dt> and answer in <dd> inside a <dl>.
   Neutralise the browser's default <dl>/<dt>/<dd> indentation. */
.prose .schema-faq dl {
  margin: 0;
  padding: 0;
}
.prose .schema-faq dt {
  margin: 0;
  padding: 0;
}
.prose .schema-faq dd {
  margin: 0;
  padding: 0;
}

/* Any <p> inside the answer */
.prose .schema-faq-answer p {
  margin: 0 0 0.8em;
}
.prose .schema-faq-answer p:last-child {
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════
   blog-detail.css — PATCH
   Only two changes from the reference static HTML:
   1. Table — match reference exactly, no class dependency
   2. FAQ   — Yoast SEO schema block selectors replace custom classes
   All other CSS in this file stays untouched.
   ═══════════════════════════════════════════════════════════ */


/* ─── 1. TABLE ───────────────────────────────────────────────
   WordPress Gutenberg outputs ALL rows inside <tbody> with <td>
   — there is no <thead> or <th> in the DOM. The first <tr> is
   the header row visually, targeted via :first-child.

   Reference design:
   - No outer border, no vertical column lines anywhere
   - First row: var(--surface) bg, uppercase 10.5px labels,
     hairline top + heavier bottom
   - Body rows: single horizontal hairline only between rows
   - Last row: no bottom border
   ─────────────────────────────────────────────────────────── */

/* ── Table shell ── */
.prose table,
.prose .wp-block-table table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-family: var(--sans) !important;
  font-size: 13.5px !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  border: none !important;
  outline: none !important;
}

/* Figure wrapper */
.prose .wp-block-table {
  border: none !important;
  margin: 0 0 1.8em !important;
  overflow-x: auto;
  display: block;
}

/* ── Nuclear reset: kill every border on every cell ── */
.prose table tr,
.prose table td,
.prose table th {
  border: none !important;
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
  border-left: none !important;
  outline: none !important;
}

/* ── First row = header row (no <thead> in WP DOM) ── */
.prose table tbody tr:first-child td {
  padding: 10px 15px !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--ink-3) !important;
  background: var(--surface) !important;
  /* hairline above */
  border-top: 1px solid var(--border-md) !important;
  /* heavier divider below header */
  border-bottom: 1.5px solid var(--border-md) !important;
  vertical-align: middle !important;
  line-height: 1.4 !important;
}

/* ── Body rows: hairline between each row only ── */
.prose table tbody tr {
  border-bottom: 1px solid var(--border) !important;
  transition: background 0.08s;
}

.prose table tbody tr:last-child {
  border-bottom: none !important;
}

.prose table tbody tr:hover {
  background: #fafaf9;
}

/* ── Body cells (all rows except first) ── */
.prose table tbody tr:not(:first-child) td {
  padding: 13px 15px !important;
  vertical-align: top !important;
  color: var(--ink-2) !important;
  line-height: 1.55 !important;
}

/* Col 1 in body rows — bold ink (WP wraps in <strong>) */
.prose table tbody tr:not(:first-child) td:first-child {
  color: var(--ink) !important;
}

.prose table tbody td strong {
  font-weight: 600 !important;
  color: var(--ink) !important;
}

/* ── WordPress caption ── */
.prose caption,
.prose .wp-element-caption {
  font-size: 12.5px;
  color: var(--ink-4);
  font-style: italic;
  text-align: left;
  margin-bottom: 10px;
  caption-side: top;
  line-height: 1.5;
}


/* ─── 2. FAQ — Yoast SEO schema block ───────────────────────
   Yoast outputs:
     .schema-faq                    → wrapper
     .schema-faq-section            → one Q&A pair
     .schema-faq-section--open      → toggled open state
     .schema-faq-question           → the <span> question
     .schema-faq-answer             → the answer div

   The reference static HTML accordion behaviour (toggle open/close,
   rotating plus icon, max-height reveal) is replicated here
   entirely through CSS, matching the reference visual exactly.
   The JS toggle in blog-detail.js should add/remove
   .schema-faq-section--open on each .schema-faq-section.
   ─────────────────────────────────────────────────────────── */

/* Container */
.prose .schema-faq {
  margin: 2em 0 1.8em;
  border-top: 1px solid var(--border);
  /* padding-top: 2em; */
}

/* Optional heading above the FAQ block */
.prose .schema-faq > h2,
.prose .schema-faq > h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 27px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 20px;
}

/* Each Q&A pair */
.prose .schema-faq-section {
  border-bottom: 1px solid var(--border);
}

/* Question row — acts like the reference .faq-q button */
.prose .schema-faq-section .schema-faq-question {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px 0;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  transition: color 0.12s;
  /* Yoast renders question as a <span> inside a <dt>;
     make it behave as a full-width row */
  box-sizing: border-box;
}

.prose .schema-faq-section .schema-faq-question:hover {
  color: var(--ink-2);
}

/* Plus/× icon — injected via ::after so no markup change needed */
.prose .schema-faq-section .schema-faq-question::after {
  content: '';
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--border-md);
  background-image:
    /* horizontal bar */
    linear-gradient(var(--ink-3), var(--ink-3)),
    /* vertical bar */
    linear-gradient(var(--ink-3), var(--ink-3));
  background-repeat: no-repeat;
  background-size: 8px 1.5px, 1.5px 8px;
  background-position: center, center;
  margin-top: 2px;
  transition: border-color 0.15s, background-color 0.15s, transform 0.2s;
}

/* Open state — rotate 45° turns + into × */
.prose .schema-faq-section--open .schema-faq-question::after {
  background-color: var(--ink);
  border-color: var(--ink);
  background-image:
    linear-gradient(#fff, #fff),
    linear-gradient(#fff, #fff);
  transform: rotate(45deg);
}

/* Answer — hidden until open */
.prose .schema-faq-section .schema-faq-answer {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.72;
  color: var(--ink-2);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease, padding-bottom 0.32s;
}

.prose .schema-faq-section--open .schema-faq-answer {
  max-height: 600px;
  padding-bottom: 18px;
}

/* Yoast wraps question in <dt> and answer in <dd> inside a <dl>.
   Neutralise the browser's default <dl>/<dt>/<dd> indentation. */
.prose .schema-faq dl {
  margin: 0;
  padding: 0;
}
.prose .schema-faq dt {
  margin: 0;
  padding: 0;
}
.prose .schema-faq dd {
  margin: 0;
  padding: 0;
}

/* Any <p> inside the answer */
.prose .schema-faq-answer p {
  margin: 0 0 0.8em;
}
.prose .schema-faq-answer p:last-child {
  margin-bottom: 0;
}