/* ============================================================
   ARTICLE TEMPLATE v2.0  —  Presentation-layer enhancement
   ------------------------------------------------------------
   Carries the Homepage v2 experience into every educational
   article. This file is purely ADDITIVE. It restyles existing
   template class names only — no DOM, content, schema, FAQ,
   breadcrumb, search, navigation or CTA-destination changes.

   Load order: linked immediately before </head>, AFTER each
   article's inline <style> and /search.css, so these rules win
   at equal specificity without needing !important.

   Design language: unchanged tokens (navy / gold / cream,
   Cormorant Garamond + DM Sans). Calm, premium, attorney- and
   family-friendly. No gimmicks, no heavy animation.
   ============================================================ */

:root{
  /* Homepage v2 easing + elevation, mirrored for articles */
  --ease-out:cubic-bezier(.16,1,.3,1);
  --ease-soft:cubic-bezier(.4,0,.2,1);
  --shadow-xl:0 20px 60px rgba(15,31,56,.18);
  --shadow-hover:0 18px 50px rgba(15,31,56,.14),0 6px 18px rgba(0,0,0,.08);
  /* Comfortable reading measure */
  --read-measure:720px;
}

/* ============================================================
   1 · HERO EXPERIENCE
   More air, clearer hierarchy, calm reassurance.
   ============================================================ */
.blog-hero::after{
  /* soft premium glow, calm — mirrors homepage navy depth */
  content:'';position:absolute;right:-8%;top:-30%;width:60%;height:120%;
  background:radial-gradient(closest-side,rgba(184,156,106,.14),rgba(184,156,106,0) 70%);
  z-index:1;pointer-events:none;
}
.blog-hero-inner{
  padding:6.25rem 4rem 3rem;
  gap:3.5rem;
  align-items:center;
}
.blog-hero .eyebrow{margin-bottom:1.4rem;letter-spacing:.24em}
.blog-hero h1{
  font-size:clamp(2.15rem,4.2vw,3rem);
  line-height:1.12;
  letter-spacing:-.01em;
  margin-bottom:1rem;
}
.blog-hero .meta{
  font-size:.76rem;letter-spacing:.05em;
  color:rgba(255,255,255,.5);
  margin-bottom:.9rem;
}
.blog-hero .breadcrumb{
  font-size:.75rem;line-height:1.6;
  padding-top:.9rem;
  border-top:1px solid rgba(184,156,106,.18);
  color:rgba(255,255,255,.55);
}
.blog-hero .breadcrumb a{color:rgba(255,255,255,.68);transition:color .2s var(--ease-soft)}
.blog-hero .breadcrumb a:hover{color:var(--goldl)}

/* ============================================================
   2 · QUICK ANSWER  —  premium key-facts card
   Wording untouched; presentation, hierarchy & readability up.
   ============================================================ */
.quick-answer{
  margin-top:1.85rem;
  border:1px solid var(--border-gold);
  border-radius:14px;
  box-shadow:var(--shadow-card);
}
.quick-answer-header{
  background:linear-gradient(135deg,var(--navy),var(--navy-light,#162847));
  padding:1rem 1.6rem;
}
.quick-answer-header h2{font-size:1.4rem;letter-spacing:.005em}
.quick-answer-body{padding:1.4rem 1.6rem 1.5rem}
.quick-answer-body p{
  font-size:.95rem;line-height:1.78;color:var(--tm);
}
/* Lead sentence of the answer reads a touch larger for quick understanding */
.quick-answer-body>p:first-child{
  font-size:1.02rem;line-height:1.72;color:var(--td);
}
.quick-answer-facts-title{
  margin-top:.35rem;margin-bottom:.75rem;
  padding-top:1rem;border-top:1px solid rgba(184,156,106,.22);
  letter-spacing:.14em;
}
.quick-answer-facts{gap:.6rem}
.quick-answer-facts li{
  font-size:.88rem;line-height:1.6;gap:.65rem;
  padding-left:0;
}
.quick-answer-facts li::before{
  content:'\2713';color:var(--gold);font-weight:700;
  line-height:1.5;flex-shrink:0;
}
.quick-answer-facts li a{color:var(--navy);font-weight:600;text-underline-offset:2px}
.quick-answer-facts li a:hover{color:var(--gold)}

/* ============================================================
   3 · ARTICLE READABILITY  —  rhythm & breathing room
   No content changes; spacing, measure & typography only.
   ============================================================ */
.article{
  padding-top:2.75rem;padding-bottom:3.75rem;
  line-height:1.85;
}
.article p{
  font-size:.97rem;line-height:1.9;color:var(--tm);
  margin-bottom:1.4rem;
  max-width:var(--read-measure);
}
/* Opening paragraph sets a calm, confident tone */
.article>p:first-of-type{
  font-size:1.08rem;line-height:1.8;color:var(--td);
}
.article h2{
  font-size:clamp(1.65rem,2.4vw,1.95rem);
  margin:3.25rem 0 1.1rem;line-height:1.25;letter-spacing:.005em;
  padding-top:.4rem;
}
/* Quiet gold accent above section headings aids scanning & progression */
.article h2::before{
  content:'';display:block;width:34px;height:2px;
  background:linear-gradient(90deg,var(--gold),var(--goldl));
  margin-bottom:1rem;border-radius:2px;opacity:.9;
}
.article h3{
  font-size:1.32rem;margin:2.75rem 0 .9rem;line-height:1.3;
}
.article ul,.article ol{margin:1.1rem 0 1.6rem 1.4rem;max-width:var(--read-measure)}
.article li{font-size:.96rem;line-height:1.75;margin-bottom:.55rem}
.article ul li{list-style:none;position:relative;padding-left:1.4rem}
.article ul li::before{
  content:'';position:absolute;left:.1rem;top:.7rem;
  width:6px;height:6px;border-radius:50%;
  background:var(--gold);
}
.article a{text-underline-offset:3px;text-decoration-thickness:1px;transition:color .2s var(--ease-soft)}
.article hr{margin:3rem 0}
.article figure{margin:2.5rem 0}
.article figure img{border-radius:var(--radius-lg,12px)}

/* Tables — calmer, more premium */
.table-wrap{
  margin:1.75rem 0 2.25rem;border:1px solid var(--border);
  border-radius:var(--radius-lg,12px);overflow:hidden;
  box-shadow:var(--shadow-sm);
}
.article table{font-size:.89rem}
.article thead th{padding:.85rem 1rem;font-weight:500;letter-spacing:.05em}
.article tbody td{padding:.8rem 1rem}
.article tbody tr:last-child td{border-bottom:none}

/* ============================================================
   4 · REUSABLE EXPERIENCE COMPONENTS
   Presentational treatments for the structures already present
   in every article: callouts ("What this means"), CTA blocks
   ("Next best step" / "Talk With Ray"), related situations,
   explore-related and official resources.
   ============================================================ */

/* "What this means" — the existing .callout, elevated */
.callout{
  background:linear-gradient(180deg,rgba(184,156,106,.10),rgba(184,156,106,.05));
  border:1px solid rgba(184,156,106,.28);
  border-left:3px solid var(--gold);
  border-radius:0 var(--radius-lg,12px) var(--radius-lg,12px) 0;
  padding:1.6rem 2rem;margin:2.25rem 0;
  box-shadow:var(--shadow-sm);max-width:var(--read-measure);
}
.callout p{font-size:.94rem;line-height:1.8;color:var(--tm)}
.callout p strong{color:var(--navy)}

/* "Next best step" / "Talk With Ray" — the existing .county-cta,
   aligned to the homepage talk-ray card. */
.county-cta{
  background:var(--cream);
  border:1px solid var(--border-gold);
  border-left:none;
  border-radius:var(--radius-lg,12px);
  padding:1.85rem 2.15rem;margin:2.75rem 0;
  gap:1.85rem;position:relative;overflow:hidden;
  box-shadow:var(--shadow-md);
}
.county-cta::before{
  content:'';position:absolute;left:0;top:0;bottom:0;width:4px;
  background:linear-gradient(180deg,var(--gold),var(--goldl));
}
.county-cta-text h3{font-size:1.45rem;line-height:1.28;margin-bottom:.45rem}
.county-cta-text p{font-size:.9rem;line-height:1.7}
.county-cta-btn{
  padding:.9rem 2rem;border-radius:var(--radius);
  letter-spacing:.07em;
  transition:transform .25s var(--ease-out),box-shadow .25s var(--ease-out),background .25s;
}
.county-cta-btn:hover{
  background:var(--goldl);border-color:var(--goldl);
  transform:translateY(-2px);
  box-shadow:0 8px 22px rgba(184,156,106,.32);
}

/* Related situations — homepage situation-card feel */
.related-situations h2{margin-bottom:1.4rem}
.rs-grid{gap:1.1rem}
.rs-card{
  padding:1.35rem 1.5rem;border-radius:var(--radius-lg,12px);
  border:1px solid var(--border);
  transition:transform .3s var(--ease-out),box-shadow .3s var(--ease-out),border-color .3s;
}
.rs-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-hover);
  border-color:var(--border-gold);
}
.rs-card h3{font-size:.95rem;line-height:1.4;margin-bottom:.35rem}
.rs-card p{font-size:.82rem;line-height:1.6}

/* Explore-related list */
.explore-related{
  border:1px solid var(--border-gold);
  border-radius:var(--radius-lg,12px);
  padding:2.4rem 2.6rem;margin:2.75rem 0 2.25rem;
}
.explore-related h4{font-size:1.35rem;margin-bottom:1.4rem}
.explore-related-grid a{
  padding:.7rem .5rem;font-size:.9rem;
  transition:color .2s var(--ease-soft),padding-left .2s var(--ease-soft);
}
.explore-related-grid a:hover{padding-left:.85rem}

/* Official resources cards */
.resources-grid{gap:1.1rem}
.resource-card{
  border-radius:0 var(--radius-lg,12px) var(--radius-lg,12px) 0;
  padding:1.35rem 1.5rem;
  transition:transform .3s var(--ease-out),box-shadow .3s var(--ease-out);
}
.resource-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-hover)}
.resource-card .rc-cat{letter-spacing:.12em}

/* ============================================================
   5 · RIGHT-SIDE LEAD FORM  —  aligned to the homepage hero card
   Reassurance, trust and focus states brought into line.
   ============================================================ */
.blog-form-card{
  border-radius:16px;
  box-shadow:var(--shadow-card);
  border:1px solid rgba(184,156,106,.16);
}
.bfc-header{
  background:linear-gradient(135deg,var(--navy),var(--navy-light,#162847));
  padding:1.15rem 1.6rem 1rem;
  border-bottom:2px solid var(--gold);
}
.bfc-header h3{font-size:1.3rem;line-height:1.3;margin-bottom:.4rem}
.bfc-header p{font-size:.8rem;line-height:1.55;color:rgba(255,255,255,.62)}
.bfc-form{padding:1.15rem 1.6rem 1.35rem}
.bfc-field input,.bfc-field select{
  border-radius:8px;padding:.62rem .8rem;
  transition:border-color .2s var(--ease-soft),box-shadow .2s var(--ease-soft),background .2s;
}
.bfc-field input:focus,.bfc-field select:focus{
  border-color:var(--gold);
  box-shadow:0 0 0 3px rgba(184,156,106,.16);
  background:#fffdf9;
}
.bfc-submit{
  padding:.85rem;letter-spacing:.09em;border-radius:var(--radius);
  transition:transform .25s var(--ease-out),box-shadow .25s var(--ease-out),background .25s;
}
.bfc-submit:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 22px rgba(184,156,106,.34);
}
.bfc-reassurance{margin-top:.85rem;font-size:.72rem;line-height:1.5}

/* ============================================================
   6 · CTA CONSISTENCY
   One calm, gold, confident button treatment across every CTA
   surface (destinations & labels unchanged).
   ============================================================ */
.bfc-cta-btn,.cta-box .btn{
  border-radius:var(--radius);letter-spacing:.08em;
  transition:transform .25s var(--ease-out),box-shadow .25s var(--ease-out),background .25s,border-color .25s;
}
.bfc-cta-btn:hover,.cta-box .btn:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 22px rgba(184,156,106,.32);
}
.blog-final-cta{padding:3rem 2rem}
.blog-final-cta h3{font-size:1.7rem}
.blog-final-cta p{font-size:.92rem;line-height:1.8}

/* ============================================================
   7 · PROGRESSION & SECTION RHYTHM
   Gentle, consistent breathing room so readers move naturally:
   Quick Answer → content → FAQ → next step → Talk With Ray.
   ============================================================ */
.blog-search-section{padding-top:2.5rem;padding-bottom:2.5rem}
.resources-section,.related-situations{margin-top:3rem}

/* ============================================================
   ACCESSIBILITY
   Visible keyboard focus + honour reduced-motion preferences.
   ============================================================ */
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,
.rs-card:focus-visible,.resource-card:focus-visible{
  outline:2px solid var(--gold);
  outline-offset:2px;
  border-radius:4px;
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{
    transition-duration:.01ms !important;
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    scroll-behavior:auto !important;
  }
  .rs-card:hover,.resource-card:hover,.county-cta-btn:hover,
  .bfc-submit:hover,.bfc-cta-btn:hover,.cta-box .btn:hover{transform:none}
}

/* ============================================================
   RESPONSIVE  —  mirror existing breakpoints; keep mobile intact
   ============================================================ */
@media(max-width:1024px){
  .blog-hero-inner{padding:5rem 3rem 1.5rem;gap:2rem}
}
@media(max-width:768px){
  .blog-hero::after{display:none}
  .blog-hero-inner{padding:4.25rem 1.25rem 1.75rem;gap:1.5rem}
  .article{padding-top:2rem;padding-bottom:2.75rem}
  .article p,.article>p:first-of-type{font-size:1rem}
  .article h2{margin-top:2.6rem}
  .callout{padding:1.35rem 1.35rem}
  .county-cta{padding:1.6rem 1.35rem}
  .county-cta-btn{width:100%;text-align:center}
  .explore-related{padding:1.8rem 1.5rem}
  .quick-answer-body{padding:1.2rem 1.35rem 1.35rem}
  .blog-final-cta{padding:2.5rem 1.25rem}
}

/* ── Talk With Ray — reusable human trust component ──────────────────────
   Additive trust module for the shared article template. Mirrors the
   homepage v2 talk-ray card: cream panel, gold accent bar, serif heading,
   round portrait, and the site's consistent gold CTA button (.county-cta-btn).
   Markup is single-sourced in /talk-with-ray.js so future templates
   (guides, authority hubs, county & city pages) reuse the same component. */
.twr{
  background:var(--cream);
  border:1px solid var(--border-gold);
  border-radius:var(--radius-lg,12px);
  padding:2.25rem 2.5rem;margin:3rem 0;
  position:relative;overflow:hidden;
  box-shadow:var(--shadow-md);
}
.twr::before{
  content:'';position:absolute;left:0;top:0;bottom:0;width:4px;
  background:linear-gradient(180deg,var(--gold),var(--goldl));
}
.twr-inner{display:flex;align-items:flex-start;gap:1.85rem}
.twr-photo{
  width:96px;height:96px;border-radius:50%;object-fit:cover;
  flex-shrink:0;border:2px solid var(--gold);box-shadow:var(--shadow-sm);
}
.twr-body{flex:1 1 auto;min-width:0}
.twr-eyebrow{
  font-size:.72rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;
  color:var(--gold);margin:0 0 .5rem;
}
.twr-heading{
  font-family:'Cormorant Garamond',serif;font-weight:400;
  font-size:clamp(1.5rem,2.4vw,2rem);line-height:1.2;color:var(--navy);
  margin:0 0 .85rem;
}
.twr-heading span{display:block}
.twr-adaptive{font-size:.98rem;line-height:1.6;color:var(--navy);font-weight:600;margin:0 0 .95rem}
.twr-intro{font-size:.92rem;line-height:1.78;color:var(--tm);margin:0 0 1.15rem}
.twr-intro strong{color:var(--td)}
.twr-points{
  list-style:none;margin:0 0 1.5rem;padding:0;
  display:grid;grid-template-columns:1fr 1fr;gap:.55rem 1.5rem;
}
.twr-points li{position:relative;padding-left:1.6rem;font-size:.88rem;line-height:1.5;color:var(--td)}
.twr-points li::before{content:'\2713';position:absolute;left:0;top:0;color:var(--gold);font-weight:700}
.twr .county-cta-btn{white-space:nowrap}

@media(max-width:768px){
  .twr{padding:1.65rem 1.35rem;margin:2.5rem 0}
  .twr-inner{flex-direction:column;align-items:center;text-align:center;gap:1.2rem}
  .twr-points{grid-template-columns:1fr;gap:.6rem;text-align:left;display:inline-grid}
  .twr-photo{width:88px;height:88px}
  .twr .county-cta-btn{width:100%;text-align:center}
}
