/* Editorial theme — bright paper, serif display, one accent. Design tokens
   (colours, fonts, radius) are set on :root so the whole look is adjustable. */
:root{
  --paper:      #faf8f4;
  --paper-2:    #f3efe8;
  --paper-3:    #ece6db;
  --ink:        #1a1714;
  --ink-2:      #4a443d;
  --muted:      #8b8378;
  --muted-2:    #a8a094;
  --line:       rgba(26,23,20,.09);
  --line-soft:  rgba(26,23,20,.055);
  --accent:     #b8894a;
  --accent-2:   #cfa063;
  --accent-3:   #e7cf9f;
  --accent-ink: #4a3416;
  --accent-dim: rgba(184,137,74,.10);
  --accent-line:rgba(184,137,74,.30);
  --secondary:  #2f6b52;
  --radius:     16px;
  --radius-lg:  26px;
  --radius-sm:  10px;
  --container:  1160px;
  --measure:    68ch;
  --font-display:"Fraunces","Playfair Display",Georgia,serif;
  --font-body:  "Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  --shadow-sm:  0 1px 2px rgba(26,23,20,.05), 0 4px 14px -8px rgba(26,23,20,.16);
  --shadow:     0 8px 20px -6px rgba(26,23,20,.10), 0 24px 60px -24px rgba(26,23,20,.22);
  --shadow-lift:0 16px 40px -12px rgba(26,23,20,.20);
  --ease:       cubic-bezier(.22,.61,.36,1);
}
*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
/* overflow-x on BOTH html and body: iOS Safari ignores it on body alone,
   which let overflowing descendants open a horizontal pan on real phones. */
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; overflow-x:hidden; }
body{
  font-family:var(--font-body); background:var(--paper); color:var(--ink);
  line-height:1.7; font-size:17.5px; letter-spacing:.005em; overflow-x:hidden;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
/* Warm paper grain + a whisper of accent light at the top. */
body::before{
  content:""; position:fixed; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(120% 60% at 50% -8%, var(--accent-dim), transparent 60%),
    radial-gradient(80% 50% at 100% 0%, rgba(47,107,82,.05), transparent 55%);
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; color:inherit; }
ul{ list-style:none; }
::selection{ background:var(--accent-3); color:var(--ink); }
.container{ max-width:var(--container); margin-inline:auto; padding-inline:clamp(20px,5vw,44px); position:relative; z-index:1; }

/* --- Type scale --- */
.display{ font-family:var(--font-display); font-weight:340; letter-spacing:-.015em; line-height:1.06; }
h1,h2,h3{ font-family:var(--font-display); font-weight:380; letter-spacing:-.01em; line-height:1.14; color:var(--ink); }
.eyebrow{
  display:inline-flex; align-items:center; gap:.6em; font-size:.7rem; font-weight:700;
  text-transform:uppercase; letter-spacing:.18em; color:var(--accent); font-family:var(--font-body);
}
.eyebrow::before{ content:""; width:22px; height:1px; background:var(--accent-line); }
.lead{ font-size:1.18rem; line-height:1.62; color:var(--ink-2); max-width:var(--measure); }
.muted{ color:var(--muted); }
.accent{ color:var(--accent); font-style:normal; }

/* --- Buttons --- */
.btn{
  display:inline-flex; align-items:center; gap:.5rem; padding:.85rem 1.5rem; border-radius:999px;
  font-weight:600; font-size:.95rem; letter-spacing:.01em; transition:transform .25s var(--ease), box-shadow .25s, background .25s, color .25s;
}
.btn svg{ width:16px; height:16px; }
.btn--accent{ background:var(--ink); color:var(--paper); box-shadow:var(--shadow-sm); }
.btn--accent:hover{ transform:translateY(-2px); box-shadow:var(--shadow-lift); background:var(--accent); color:#fff; }
.btn--ghost{ border:1px solid var(--line); color:var(--ink); }
.btn--ghost:hover{ border-color:var(--accent); color:var(--accent); transform:translateY(-2px); }
.btn--lg{ padding:1rem 1.9rem; font-size:1rem; }
.btn-row{ display:flex; flex-wrap:wrap; gap:14px; align-items:center; }

/* =======================================================
   Header
   ======================================================= */
.site-header{ position:sticky; top:0; z-index:50; background:color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter:blur(14px) saturate(140%); -webkit-backdrop-filter:blur(14px) saturate(140%); border-bottom:1px solid var(--line-soft); }
.site-header .nav{ display:flex; align-items:center; justify-content:space-between; gap:1.5rem; padding-block:1.05rem; }
.nav-brand{ display:flex; align-items:center; gap:.6rem; font-family:var(--font-display); font-weight:420; font-size:1.35rem; letter-spacing:-.01em; }
.nav-brand img{ height:34px; width:auto; border-radius:8px; }
.nav-brand i{ font-style:normal; color:var(--accent); }
.nav-links{ display:flex; gap:1.6rem; align-items:center; }
.nav-link{ font-size:.92rem; font-weight:500; color:var(--ink-2); position:relative; padding-block:4px; transition:color .2s; }
.nav-link::after{ content:""; position:absolute; left:0; bottom:0; width:0; height:1.5px; background:var(--accent); transition:width .3s var(--ease); }
.nav-link:hover{ color:var(--ink); } .nav-link:hover::after{ width:100%; }

/* =======================================================
   HERO — 7 styles via .hero.style-*
   ======================================================= */
.hero{ position:relative; overflow:hidden; }
.hero .container{ padding-block:clamp(56px,9vw,120px); }
.hero-eyebrow{ margin-bottom:1.4rem; }
.hero h1{ font-size:clamp(2.6rem,3vw+2rem,4.6rem); margin-bottom:1.3rem; text-wrap:balance; }
.hero .lead{ margin-bottom:2.1rem; }
.hero .btn-row{ margin-top:.4rem; }
.hero-media{ border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow); }
.hero-media img{ width:100%; height:100%; object-fit:cover; }
.hero-trust{ display:flex; flex-wrap:wrap; gap:1.6rem; margin-top:2.4rem; padding-top:1.6rem; border-top:1px solid var(--line-soft); }
.hero-trust .ht{ font-size:.9rem; color:var(--muted); display:flex; align-items:center; gap:.5rem; }
.hero-trust .ht::before{ content:""; width:5px; height:5px; border-radius:50%; background:var(--accent); }

/* style: centered — big serif, centered, roomy */
.hero.style-centered .container{ max-width:900px; text-align:center; }
.hero.style-centered .hero-eyebrow, .hero.style-centered .btn-row, .hero.style-centered .hero-trust{ justify-content:center; }
.hero.style-centered .lead{ margin-inline:auto; }

/* style: split-image — copy left, framed image right */
.hero.style-split-image .hero-inner{ display:grid; grid-template-columns:1.05fr .95fr; gap:clamp(32px,5vw,72px); align-items:center; }
.hero.style-split-image .hero-media{ aspect-ratio:4/5; max-height:560px; }
.hero.style-split-image .hero-copy{ align-self:center; }

/* style: full-image — image bleeds full width, copy overlaid */
.hero.style-full-image{ color:#fff; }
.hero.style-full-image .hero-bg{ position:absolute; inset:0; z-index:0; }
.hero.style-full-image .hero-bg img{ width:100%; height:100%; object-fit:cover; }
.hero.style-full-image .hero-bg::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(20,17,14,.30), rgba(20,17,14,.72)); }
.hero.style-full-image .container{ position:relative; z-index:1; max-width:820px; }
.hero.style-full-image h1, .hero.style-full-image .lead{ color:#fff; }
.hero.style-full-image .lead{ color:rgba(255,255,255,.85); }
.hero.style-full-image .btn--accent{ background:#fff; color:var(--ink); }
.hero.style-full-image .hero-trust{ border-top-color:rgba(255,255,255,.2); }
.hero.style-full-image .hero-trust .ht{ color:rgba(255,255,255,.8); }

/* style: minimal — tight, no frills, left aligned */
.hero.style-minimal .container{ padding-block:clamp(44px,6vw,84px); max-width:760px; }
.hero.style-minimal h1{ font-size:clamp(2.2rem,2vw+1.8rem,3.6rem); }

/* style: editorial — asymmetric, oversized index number feel */
.hero.style-editorial .hero-inner{ display:grid; grid-template-columns:1fr auto; gap:2rem; align-items:end; }
.hero.style-editorial::before{ content:""; position:absolute; left:0; right:0; bottom:0; height:1px; background:var(--line); }
.hero.style-editorial .hero-media{ width:min(38vw,420px); aspect-ratio:1/1; align-self:center; }
.hero.style-editorial h1{ font-size:clamp(2.8rem,4vw+1.5rem,5.4rem); }

/* style: magazine — enormous type, hairline rules, dateline */
.hero.style-magazine .container{ max-width:1000px; }
.hero.style-magazine .hero-eyebrow{ padding-bottom:1.2rem; border-bottom:1px solid var(--ink); display:flex; width:100%; justify-content:space-between; }
.hero.style-magazine h1{ font-size:clamp(3rem,5vw+1rem,6rem); font-weight:300; margin-top:1.6rem; }

/* style: boxed — everything inside a framed paper card */
.hero.style-boxed .container{ padding-block:clamp(40px,6vw,72px); }
.hero.style-boxed .hero-inner{ background:var(--paper-2); border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:clamp(36px,5vw,72px); box-shadow:var(--shadow-sm); position:relative; overflow:hidden; }
.hero.style-boxed .hero-inner::before{ content:""; position:absolute; top:0; left:0; right:0; height:3px; background:linear-gradient(90deg,var(--accent),var(--accent-3),transparent); }

/* =======================================================
   SECTIONS — configurable slots via .section.sec-*
   ======================================================= */
.section{ padding-block:clamp(52px,7vw,96px); position:relative; }
.section + .section{ padding-top:0; }
.section-head{ max-width:var(--measure); margin-bottom:2.6rem; }
.section-head.center{ text-align:center; margin-inline:auto; }
.section-head .eyebrow{ margin-bottom:1rem; }
.section-head h2{ font-size:clamp(1.9rem,1.4vw+1.4rem,2.9rem); margin-bottom:.7rem; }
.section-head p{ color:var(--ink-2); }

/* sec-feature-image — big split with image */
.sec-feature-image .feat{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(28px,4vw,64px); align-items:center; }
.sec-feature-image.flip .feat{ direction:rtl; } .sec-feature-image.flip .feat > *{ direction:ltr; }
.sec-feature-image .feat-media{ border-radius:var(--radius-lg); overflow:hidden; aspect-ratio:5/4; box-shadow:var(--shadow); }
.sec-feature-image .feat-media img{ width:100%; height:100%; object-fit:cover; }

/* sec-split — two columns of text, a hairline between */
.sec-split .split{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(32px,5vw,80px); }
.sec-split .split > div{ padding-left:2rem; border-left:2px solid var(--accent-line); }

/* sec-title-desc — clean centered statement */
.sec-title-desc .td{ max-width:760px; margin-inline:auto; text-align:center; }
.sec-title-desc h2{ font-size:clamp(2rem,2vw+1.5rem,3.2rem); }
.sec-title-desc p{ font-size:1.15rem; color:var(--ink-2); margin-top:1rem; }

/* sec-stat-band — trust stats on a raised band */
.sec-stat-band .stats{ display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:1px; background:var(--line);
  border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.sec-stat-band .stat{ background:var(--paper); padding:2.2rem 1.6rem; text-align:center; }
.sec-stat-band .stat .n{ font-family:var(--font-display); font-size:2.8rem; font-weight:500; color:var(--ink); line-height:1; }
.sec-stat-band .stat .n::first-letter{ color:var(--accent); }
.sec-stat-band .stat .l{ font-size:.8rem; color:var(--muted); margin-top:.7rem; text-transform:uppercase; letter-spacing:.1em; }

/* sec-quote — pull quote / testimonial */
.sec-quote blockquote{ max-width:860px; margin-inline:auto; text-align:center; font-family:var(--font-display);
  font-size:clamp(1.6rem,2vw+1.2rem,2.5rem); font-weight:340; line-height:1.35; letter-spacing:-.01em; }
.sec-quote blockquote::before{ content:"“"; display:block; font-size:3.2rem; color:var(--accent); line-height:.6; margin-bottom:.4rem; }
.sec-quote .cite{ margin-top:1.6rem; font-size:.92rem; color:var(--muted); letter-spacing:.04em; }

/* sec-cta-band — conversion band */
.sec-cta-band .cta{ position:relative; overflow:hidden; border-radius:var(--radius-lg); padding:clamp(40px,6vw,72px);
  text-align:center; background:var(--ink); color:var(--paper); }
.sec-cta-band .cta::before{ content:""; position:absolute; inset:0; background:radial-gradient(90% 120% at 50% 0%, rgba(207,160,99,.28), transparent 60%); }
.sec-cta-band .cta > *{ position:relative; }
.sec-cta-band .cta h2{ color:var(--paper); font-size:clamp(1.8rem,2vw+1.4rem,3rem); }
.sec-cta-band .cta p{ color:rgba(255,255,255,.78); max-width:56ch; margin:1rem auto 1.8rem; }
.sec-cta-band .cta .btn--accent{ background:#fff; color:var(--ink); }

/* =======================================================
   Topic (pillar) grid + Article cards
   ======================================================= */
.pillar-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:1.4rem; }
.pillar-card{ position:relative; display:block; padding:1.9rem; border:1px solid var(--line); border-radius:var(--radius);
  background:var(--paper); transition:transform .3s var(--ease), box-shadow .3s, border-color .3s; overflow:hidden; }
.pillar-card::before{ content:""; position:absolute; top:0; left:0; width:0; height:3px; background:var(--accent); transition:width .35s var(--ease); }
.pillar-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-lift); border-color:var(--accent-line); }
.pillar-card:hover::before{ width:100%; }
.pillar-card .pc-tag{ font-size:.68rem; font-weight:700; text-transform:uppercase; letter-spacing:.14em; color:var(--accent); }
.pillar-card h3{ font-size:1.4rem; margin-top:.7rem; }
.pillar-card .pc-arrow{ margin-top:1.4rem; color:var(--accent); font-size:1.2rem; transition:transform .3s var(--ease); display:inline-block; }
.pillar-card:hover .pc-arrow{ transform:translateX(6px); }

.post-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:1.8rem 1.6rem; }
.post-card{ display:flex; flex-direction:column; }
.post-card .post-card-body{ padding-top:.4rem; }
.post-card .post-cat{ font-size:.68rem; font-weight:700; text-transform:uppercase; letter-spacing:.14em; color:var(--accent); }
.post-card .post-card-title{ font-family:var(--font-display); font-size:1.42rem; margin:.5rem 0 .5rem; line-height:1.2; }
.post-card .post-card-title a{ background-image:linear-gradient(var(--accent),var(--accent)); background-size:0 1.5px; background-position:0 100%;
  background-repeat:no-repeat; transition:background-size .3s var(--ease); padding-bottom:2px; }
.post-card .post-card-title a:hover{ background-size:100% 1.5px; }
.post-card .post-card-excerpt{ color:var(--ink-2); font-size:.98rem; }
.post-card .post-card-meta{ margin-top:.7rem; font-size:.82rem; color:var(--muted); }

.section-cap{ display:flex; align-items:end; justify-content:space-between; gap:1rem; margin-bottom:2rem; flex-wrap:wrap; }
.section-cap h2{ font-size:clamp(1.7rem,1.4vw+1.3rem,2.5rem); }
.link-more{ font-size:.9rem; font-weight:600; color:var(--accent); display:inline-flex; gap:.35rem; align-items:center; }
.link-more:hover{ gap:.6rem; }

/* =======================================================
   Article page
   ======================================================= */
.article{ padding-block:clamp(32px,4vw,56px); }
.breadcrumb{ display:flex; flex-wrap:wrap; gap:.5rem; font-size:.84rem; color:var(--muted); margin-bottom:1.6rem; }
.breadcrumb a{ color:var(--ink-2); } .breadcrumb a:hover{ color:var(--accent); }
.article-hero{ max-width:var(--container); margin-inline:auto; margin-bottom:clamp(24px,4vw,44px); }
/* minmax(0,…) + min-width:0 kill the replaced-element blowout: the hero card
   is an intrinsically 1080px <img>; with plain fr tracks WebKit lets its
   min-content widen the track past the viewport (Chromium caps it), which
   broke the whole article column on real phones. */
.article-hero-grid{ display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); gap:clamp(28px,4vw,56px); align-items:center; }
.article-hero-grid > *{ min-width:0; }
.article-hero-grid.solo{ grid-template-columns:minmax(0,1fr); max-width:820px; }
.article-hero h1{ font-size:clamp(2rem,2.4vw+1.4rem,3.4rem); margin-bottom:1rem; text-wrap:balance; }
.article-lead{ font-size:1.2rem; color:var(--ink-2); max-width:62ch; }
.article-hero .post-meta{ display:flex; flex-wrap:wrap; gap:.6rem; color:var(--muted); font-size:.9rem; margin-bottom:1.3rem; }
.article-hero .post-meta strong{ color:var(--ink-2); font-weight:600; }
.article-hero-media{ border-radius:var(--radius-lg); overflow:hidden; aspect-ratio:1/1; box-shadow:var(--shadow); }
.article-hero-media img{ width:100%; height:100%; object-fit:cover; }

.article-shell{ display:grid; grid-template-columns:220px minmax(0,1fr); gap:clamp(28px,4vw,64px); max-width:var(--container); margin-inline:auto; align-items:start; }
/* Legal / about / contact pages have no TOC — single centered column so the
   copy isn't squished into the article's narrow left content track. width:100%
   is REQUIRED: a display:grid box with only max-width shrinks to its content's
   min size, collapsing the column to ~1 word wide. */
.article-shell.solo{ display:block; max-width:760px; width:100%; }
.article-shell.solo .article-main{ max-width:100%; width:100%; margin-inline:auto; }
/* contain:inline-size is the load-bearing guard: during grid track sizing a
   <table>'s min-content width is measured BEFORE percentage max-widths exist,
   so one wide generated table silently widened the whole article column past
   the viewport (measured live: 521px column on a 375px phone). Containment
   makes the column's width independent of its content, always.
   width:100% MUST accompany it — with a zero content contribution, the mobile
   margin-inline:auto would otherwise resolve the box to fit-content ≈ 0. */
.article-main{ min-width:0; max-width:720px; width:100%; overflow-wrap:break-word; contain:inline-size; }
/* Generated content can carry wide tables / long URLs — the page itself must
   never scroll on the x axis. Tables are wrapped at render time in a
   .table-wrap touch scroller (Renderer::enhanceTables), and on phones the
   rows stack into label/value cards — no horizontal movement at all. */
.table-wrap{ max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch;
  margin:0 0 1.6rem; border:1px solid var(--line); border-radius:var(--radius); background:var(--paper); }
.table-wrap table{ margin:0; min-width:560px; }
.breadcrumb{ overflow-wrap:anywhere; }
.toc{ position:sticky; top:96px; padding-left:18px; border-left:1px solid var(--line); font-size:.9rem; }
.toc-h{ text-transform:uppercase; letter-spacing:.14em; font-size:.68rem; color:var(--muted); margin-bottom:1rem; }
.toc ol{ list-style:none; display:flex; flex-direction:column; gap:.7rem; }
.toc a{ color:var(--ink-2); line-height:1.4; display:block; transition:color .2s; }
.toc a:hover{ color:var(--accent); }

.article-body{ font-size:1.12rem; line-height:1.85; color:var(--ink-2); }
.article-body :where(h2,h3)[id]{ scroll-margin-top:96px; }
.article-body h2{ font-family:var(--font-display); font-size:1.85rem; color:var(--ink); margin:2.4rem 0 1rem; }
.article-body h3{ font-size:1.35rem; color:var(--ink); margin:1.8rem 0 .7rem; }
.article-body p{ margin-bottom:1.3rem; }
.article-body a{ color:var(--accent); text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:1px; }
.article-body ul,.article-body ol{ list-style:revert; margin:0 0 1.4rem 1.5rem; }
.article-body li{ margin-bottom:.5rem; }
.article-body li::marker{ color:var(--accent); }
.article-body strong{ color:var(--ink); font-weight:650; }
.article-body blockquote{ margin:1.8rem 0; padding:.4rem 0 .4rem 1.6rem; border-left:3px solid var(--accent);
  font-family:var(--font-display); font-size:1.3rem; color:var(--ink); }
.article-body img{ border-radius:var(--radius); margin:1.6rem 0; box-shadow:var(--shadow-sm); }
.article-body table{ width:100%; border-collapse:collapse; margin:0 0 1.6rem; font-size:.98rem;
  border-radius:var(--radius); overflow:hidden; box-shadow:0 0 0 1px var(--line); }
.article-body th,.article-body td{ border:0; border-bottom:1px solid var(--line); padding:.75rem 1rem; text-align:left; }
.article-body th{ background:var(--paper-2); font-weight:650; color:var(--ink); font-size:.9rem;
  text-transform:uppercase; letter-spacing:.04em; }
.article-body tbody tr:nth-child(even){ background:color-mix(in srgb, var(--paper-2) 55%, transparent); }
.article-body tbody tr:last-child td{ border-bottom:0; }

/* Generated-content components: the engine's writers emit these classes
   (key-takeaways after the direct answer, pro-tip callouts, sibling links). */
.article-body ul.key-takeaways{ list-style:none; margin:0 0 1.8rem; padding:1.3rem 1.5rem;
  background:var(--paper-2); border:1px solid var(--line); border-left:3px solid var(--accent);
  border-radius:var(--radius); }
.article-body ul.key-takeaways li{ position:relative; margin-bottom:.55rem; padding-left:1.6rem; color:var(--ink-2); }
.article-body ul.key-takeaways li:last-child{ margin-bottom:0; }
.article-body ul.key-takeaways li::before{ content:"✓"; position:absolute; left:0; top:0;
  color:var(--accent); font-weight:700; }
.article-body p.pro-tip{ margin:1.8rem 0; padding:1.1rem 1.4rem 1.1rem 3.1rem; position:relative;
  background:color-mix(in srgb, var(--accent) 7%, var(--paper)); border:1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
  border-radius:var(--radius); color:var(--ink); }
.article-body p.pro-tip::before{ content:"★"; position:absolute; left:1.15rem; top:1.05rem;
  color:var(--accent); font-size:1.05rem; }
.article-body p.related-inline-link{ margin:1.6rem 0; padding:.75rem 1.1rem; background:var(--paper-2);
  border:1px solid var(--line); border-radius:var(--radius); font-size:1rem; }
.article-body p.related-inline-link a{ font-weight:600; }

.inline-cta{ display:flex; flex-wrap:wrap; gap:1rem 1.5rem; align-items:center; justify-content:space-between;
  margin:2.2rem 0; padding:1.6rem 1.9rem; border-radius:var(--radius); background:var(--paper-2); border:1px solid var(--line); }
.inline-cta-body{ display:flex; flex-direction:column; gap:.25rem; max-width:52ch; }
.inline-cta-body strong{ font-family:var(--font-display); font-size:1.25rem; color:var(--ink); font-weight:420; }
.inline-cta-body span{ color:var(--ink-2); font-size:.96rem; }

.faq{ margin-top:3rem; }
.faq h2{ font-family:var(--font-display); font-size:1.85rem; margin-bottom:1.3rem; }
.faq-item{ border-bottom:1px solid var(--line); }
.faq-item summary{ padding:1.1rem 0; cursor:pointer; font-weight:600; font-size:1.06rem; color:var(--ink); list-style:none; display:flex; justify-content:space-between; gap:1rem; }
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{ content:"+"; color:var(--accent); font-size:1.4rem; line-height:1; transition:transform .25s; }
.faq-item[open] summary::after{ transform:rotate(45deg); }
.faq-a{ padding:0 0 1.2rem; color:var(--ink-2); }

.post-links{ margin-top:3rem; padding-top:2rem; border-top:1px solid var(--line); }
.post-links h2{ font-family:var(--font-display); font-size:1.5rem; margin-bottom:1.2rem; }
.pillar-link{ display:grid; grid-template-columns:1fr auto; align-items:center; gap:1rem; padding:1.3rem 1.6rem;
  border:1px solid var(--line); border-radius:var(--radius); background:var(--paper); transition:border-color .25s, transform .25s; margin-bottom:1rem; }
.pillar-link:hover{ border-color:var(--accent-line); transform:translateX(4px); }
.pillar-link .pl-eyebrow{ grid-column:1; font-size:.68rem; text-transform:uppercase; letter-spacing:.14em; color:var(--accent); }
.pillar-link .pl-title{ grid-column:1; grid-row:2; font-family:var(--font-display); font-size:1.25rem; color:var(--ink); }
.pillar-link .pl-arrow{ grid-column:2; grid-row:1/span 2; color:var(--accent); font-size:1.4rem; }
.chip-row{ display:flex; flex-wrap:wrap; gap:.7rem; margin-top:1rem; }
.chip{ padding:.5rem 1.1rem; border-radius:999px; font-size:.88rem; color:var(--ink-2); border:1px solid var(--line); background:var(--paper); transition:all .2s; }
.chip:hover{ border-color:var(--accent); color:var(--accent); }

/* =======================================================
   CTA band (footer) + footer
   ======================================================= */
.cta-band{ position:relative; overflow:hidden; border-radius:var(--radius-lg); padding:clamp(44px,6vw,80px); text-align:center;
  background:var(--ink); color:var(--paper); }
.cta-band::before{ content:""; position:absolute; inset:0; background:radial-gradient(90% 130% at 50% 0%, rgba(207,160,99,.30), transparent 60%); }
.cta-band > *{ position:relative; }
.cta-band h2{ color:var(--paper); font-size:clamp(1.9rem,2vw+1.5rem,3.2rem); margin-bottom:.9rem; }
.cta-band p{ color:rgba(255,255,255,.78); max-width:54ch; margin:0 auto 2rem; }
.cta-band .btn--accent{ background:#fff; color:var(--ink); }

.site-footer{ border-top:1px solid var(--line); padding-block:3rem; margin-top:clamp(48px,7vw,96px); }
.site-footer .container{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:1.5rem; align-items:center; }
.foot-brand{ font-family:var(--font-display); font-size:1.3rem; }
.site-footer nav{ display:flex; gap:1.4rem; flex-wrap:wrap; }
.site-footer nav a{ color:var(--muted); font-size:.9rem; } .site-footer nav a:hover{ color:var(--accent); }

/* =======================================================
   Scroll reveal + motion
   ======================================================= */
[data-reveal]{ opacity:0; transform:translateY(22px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in{ opacity:1; transform:none; }
@media (prefers-reduced-motion:reduce){ *{ animation:none!important; transition-duration:.01ms!important; } [data-reveal]{ opacity:1; transform:none; } }

/* =======================================================
   Responsive
   ======================================================= */
@media (max-width:900px){
  .hero.style-split-image .hero-inner,
  .hero.style-editorial .hero-inner,
  .sec-feature-image .feat,
  .sec-split .split,
  .article-hero-grid{ grid-template-columns:minmax(0,1fr); }
  .sec-feature-image.flip .feat{ direction:ltr; }
  .sec-split .split > div{ border-left:none; padding-left:0; }
  .hero.style-editorial .hero-media{ width:min(60vw,320px); }
  .article-shell{ grid-template-columns:1fr; } .toc{ display:none; } .article-main{ margin-inline:auto; }
}
@media (max-width:640px){
  .nav-links{ display:none; }
  .site-footer .container{ flex-direction:column; text-align:center; }
  .inline-cta{ flex-direction:column; align-items:flex-start; }

  /* Tables become stacked cards: each row is a bordered block, each cell
     shows its column label (data-label stamped by the engine) above its
     value. Nothing to scroll, readable at any width. */
  .table-wrap{ overflow:visible; border:0; background:none; }
  .table-wrap table{ min-width:0; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td{ display:block; width:100%; }
  .table-wrap thead{ display:none; }
  .table-wrap tr{ border:1px solid var(--line); border-radius:var(--radius); margin-bottom:.9rem; overflow:hidden; background:var(--paper); }
  .table-wrap td{ border-bottom:1px solid var(--line); padding:.6rem .9rem; }
  .table-wrap tr td:last-child{ border-bottom:0; }
  .table-wrap td::before{
    content:attr(data-label); display:block; font-size:.64rem; font-weight:700;
    letter-spacing:.09em; text-transform:uppercase; color:var(--accent); margin-bottom:.15rem;
  }
  .table-wrap td:first-child{ background:var(--paper-2); font-weight:650; }
}

/* =======================================================
   Builder blocks (Pages studio) — classes Blocks.php emits
   that the home-section styles above don't already cover
   ======================================================= */
/* width:100% is REQUIRED beside contain:inline-size: containment zeroes the
   content contribution, and auto margins would otherwise resolve the box to
   fit-content = collapse to zero (seen live: one-character-per-line headings).
   Filling the track keeps auto margins harmless at every breakpoint. */
.blk-prose{ max-width:820px; min-width:0; width:100%; overflow-wrap:break-word; contain:inline-size; }
.blk-prose table{ display:block; max-width:100%; overflow-x:auto; }
.blk-narrow .blk-prose{ max-width:680px; margin-inline:auto; }
.blk-prose h2{ font-size:clamp(1.6rem,1.4vw+1.2rem,2.3rem); margin-bottom:1rem; }
.blk-prose p{ color:var(--ink-2); font-size:1.05rem; line-height:1.75; margin-bottom:1.05rem; }
.cols{ display:grid; gap:clamp(20px,3vw,40px); }
.cols-2{ grid-template-columns:1fr 1fr; }
.cols-3{ grid-template-columns:repeat(3,1fr); }
.cols .col h3{ font-size:1.2rem; margin-bottom:.5rem; }
.cols .col p{ color:var(--ink-2); }
.blk-figure{ margin:0; }
.blk-figure img{ width:100%; border-radius:var(--radius-lg); box-shadow:var(--shadow); }
.blk-figure figcaption{ text-align:center; color:var(--muted); font-size:.86rem; margin-top:.7rem; }
.blk-divider hr{ border:0; border-top:1px solid var(--line); margin:0; }
.blk-divider.blk-space{ height:clamp(28px,5vw,64px); }
.blk-faq .faq h2{ font-size:clamp(1.6rem,1.4vw+1.2rem,2.3rem); margin-bottom:1.2rem; }
.blk-faq .faq-item{ border:1px solid var(--line); border-radius:var(--radius); padding:1rem 1.2rem; margin-bottom:.7rem; background:var(--paper); }
.blk-faq .faq-item summary{ font-weight:600; cursor:pointer; }
.blk-faq .faq-a p{ margin:.7rem 0 0; color:var(--ink-2); }
.blk-hero .display{ text-wrap:balance; }
.blk-notfound .display{ font-size:clamp(2rem,3vw+1.2rem,3.4rem); }
@media (max-width:860px){ .cols-2,.cols-3{ grid-template-columns:1fr; } }

/* Post-card media — the generated 1:1 thumbnails (or featured photos) */
.post-card-media{ display:block; border-radius:var(--radius); overflow:hidden; aspect-ratio:1/1; margin-bottom:1.1rem; box-shadow:var(--shadow); }
.post-card-media img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .5s var(--ease); }
.post-card:hover .post-card-media img{ transform:scale(1.04); }
