/* SafetyRatios theme */
:root {
  --canvas:        #f8f9fc;
  --surface:       #ffffff;
  --ink:           #0f1923;
  --ink-muted:     #64748b;
  --border:        #e2e8f0;
  --primary:       #0c6e84;
  --primary-light: #e0f4f8;
  --primary-dark:  #0a5a6d;
  --accent:        #8be1e1;
  --accent-light:  #f0fafa;
  --amber:         #ffd166;
  --amber-dark:    #d97706;
  --loss:          #ef4444;
  --gain:          #10b981;
  --font-sans:     system-ui, -apple-system, sans-serif;
  --font-mono:     ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --nav-h:         64px;
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px)  { .wrap { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .wrap { padding: 0 2rem; } }

/* ── Navbar (same shape as site-bundle.css) ──────────────────────────────── */
.navbar {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.navbar.scrolled { box-shadow: 0 1px 12px rgba(0,0,0,0.1); }
#nav-sentinel    { height: 0; }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.navbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
/* Brand donut SVG removed from nav .logo — see site-bundle.css for the
   full rationale. /icon.svg still ships as favicon + apple-touch. */
.logo-wordmark {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.nav-links { display: none; align-items: center; gap: 28px; list-style: none; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a { font-size: 0.875rem; color: var(--ink-muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--ink); }
.nav-auth { display: none; align-items: center; gap: 12px; }
@media (min-width: 768px) { .nav-auth { display: flex; } }
.nav-auth .btn-ghost { font-size: 0.875rem; color: var(--ink-muted); transition: color 0.15s; }
.nav-auth .btn-ghost:hover { color: var(--ink); }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500;
  background: var(--primary); color: #fff; border-radius: 6px;
  border: none; cursor: pointer; transition: background 0.15s;
}
.btn-primary:hover { background: var(--primary-dark); }

.menu-btn {
  display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 5px;
  width: 44px; height: 44px; background: none; border: none; cursor: pointer; padding: 8px;
  position: relative; z-index: 60;
  -webkit-appearance: none; appearance: none;
}
@media (min-width: 768px) { .menu-btn { display: none; } }
.menu-btn span {
  display: block; width: 100%; height: 2px; background: var(--ink); border-radius: 2px;
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.18s ease;
}
/* Bars stay dark when open — the button sits over the white navbar
   even while the drawer is showing, so a white X would be invisible. */
.menu-btn.open span:nth-child(1) { transform: translateY(7px)  rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%; right: 1rem;
  margin-top: 0.25rem;
  width: 220px;
  background: #293d3d;
  flex-direction: column;
  padding: 0.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  z-index: 49;
}
.mobile-nav.open { display: flex; }
@media (min-width: 768px) { .mobile-nav { display: none !important; } }
.mobile-nav a {
  font-size: 0.9375rem; font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

/* Transparent click-catcher; cursor: pointer is needed so iOS Safari
   actually dispatches the close click. */
.mobile-nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: transparent;
  cursor: pointer;
  z-index: 48;
}
.mobile-nav-overlay.open { display: block; }
@media (min-width: 768px) { .mobile-nav-overlay { display: none !important; } }

.mobile-nav-auth {
  display: flex; flex-direction: column; gap: 0.25rem;
  padding-top: 0.5rem; margin-top: 0.25rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.mobile-nav-auth a {
  text-align: center;
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
}
.mobile-nav-auth .btn-primary {
  background: #fff; color: #293d3d;
  border-radius: 0.375rem;
  font-size: 0.875rem;
}

/* ── Footer (same shape as site-bundle.css) ──────────────────────────────── */
footer {
  background: var(--surface); border-top: 1px solid var(--border); padding: 3.5rem 0;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem;
}
@media (min-width: 768px)  { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr repeat(5, 1fr); } }
.footer-brand-name {
  font-family: var(--font-mono); font-size: 0.875rem; font-weight: 600;
  letter-spacing: 0.04em; color: var(--ink); display: block; margin-bottom: 12px;
}
.footer-brand-desc { font-size: 0.75rem; color: var(--ink-muted); line-height: 1.6; max-width: 220px; }
.footer-col h3 {
  font-size: 0.625rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink); margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a  { font-size: 0.875rem; color: var(--ink-muted); transition: color 0.15s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 12px;
  font-size: 0.75rem; color: var(--ink-muted);
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}
.footer-bottom-links { display: flex; gap: 1rem; }
.footer-bottom-links a { color: var(--ink-muted); transition: color 0.15s; }
.footer-bottom-links a:hover { color: var(--ink); }

/* ── Article shell: article column + sticky marketing aside ──────────────── */
.article-wrap { max-width: 1200px; margin: 0 auto; padding: 3rem 1rem 6rem; }
@media (min-width: 640px) { .article-wrap { padding: 3rem 1.5rem 6rem; } }
.article-shell { display: block; }
@media (min-width: 1000px) {
  .article-shell {
    display: grid;
    grid-template-columns: 7fr 3fr;
    column-gap: 3rem;
    align-items: start;
  }
}
.article-column { min-width: 0; }

/* Soft-white reading panel — masks page background behind article body */
.article-panel {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
  border-radius: 0.85rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 14px rgba(0,0,0,0.04);
  padding: 1.75rem 1.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px) { .article-panel { padding: 2rem 2.5rem; } }
.article-panel-author {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--ink-muted);
}
.article-panel-author svg { flex-shrink: 0; color: var(--ink-muted); }
.article-panel-author .by-label { font-size: 0.6875rem; color: var(--ink-muted); }
.article-panel-author .by-name  { font-size: 0.6875rem; font-weight: 500; color: var(--ink); }

/* ── Sticky marketing aside ─ njs-sr behaviour: hidden < 1000px, never flows
   underneath. At ≥1000px it's the 3fr column in .article-shell, sticky. ── */
.article-aside { display: none; }
@media (min-width: 1000px) {
  .article-aside {
    display: flex; flex-direction: column; gap: 1rem;
    position: sticky; top: 5.5rem; align-self: start;
  }
}
.aside-card {
  border-radius: 0.85rem;
  padding: 1.1rem 1.25rem;
  color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.aside-card .aside-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.5625rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.20); color: #fff;
}
.aside-card .aside-headline { font-size: 0.875rem; font-weight: 600; margin: 0.5rem 0 0.25rem; }
.aside-card .aside-body     { font-size: 0.75rem; line-height: 1.55; opacity: 0.85; margin-bottom: 1rem; }
.aside-card .aside-btn {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700;
  background: #fff; color: var(--ink);
  border-radius: 0.55rem;
  padding: 0.45rem 0.85rem;
  transition: opacity 0.15s;
}
.aside-card .aside-btn:hover { opacity: 0.9; }
.aside-card.aside-card-block {
  width: 100%; text-align: center;
  display: block; padding: 0.65rem 0; font-size: 0.75rem;
}
/* Aside variants — match njs-sr gradient palette */
.aside-platform { background: linear-gradient(135deg, var(--primary), #0f766e); }
.aside-platform .aside-btn { color: var(--primary); }
.aside-section  { background: #fff; color: var(--ink); border: 1px solid var(--border); }
.aside-section .aside-label { background: rgba(0,0,0,0.06); color: var(--ink-muted); }
.aside-section .aside-headline { color: var(--ink); }
.aside-section .aside-body     { color: var(--ink-muted); opacity: 1; }
.aside-section .aside-link {
  font-size: 0.75rem; font-weight: 500; color: var(--primary);
  transition: opacity 0.15s;
}
.aside-section .aside-link:hover { opacity: 0.8; }
.aside-gloss { background: linear-gradient(135deg, #14b8a6, #0891b2); }
.aside-gloss .aside-btn { color: #0f766e; }
.aside-set   { background: linear-gradient(135deg, #3b82f6, #4f46e5); }
.aside-set   .aside-btn { color: #1d4ed8; }
.aside-scan  { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.aside-scan  .aside-btn { color: #6d28d9; }

/* ── Series subscribe CTA — between body and FAQ ─────────────────────────── */
.article-series-cta {
  margin: 2.5rem 0;
  border-radius: 1rem;
  padding: 1.5rem 1.5rem 1.4rem;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
.article-series-cta .series-pill {
  display: inline-block;
  font-size: 0.625rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
  margin-bottom: 0.65rem;
}
.article-series-cta .series-headline { font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; }
.article-series-cta .series-body     { font-size: 0.875rem; line-height: 1.55; opacity: 0.88; margin-bottom: 1rem; }
.article-series-cta .series-body strong { font-weight: 600; }
.article-series-cta .series-btn {
  display: inline-block;
  font-size: 0.875rem; font-weight: 700;
  background: #fff; border-radius: 0.75rem;
  padding: 0.55rem 1.1rem;
  transition: opacity 0.15s;
}
.article-series-cta .series-btn:hover { opacity: 0.9; }
.article-series-cta.series-m45  { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.article-series-cta.series-m45  .series-btn { color: #c2410c; }
.article-series-cta.series-papa { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.article-series-cta.series-papa .series-btn { color: #6d28d9; }
.article-series-cta.series-resf { background: linear-gradient(135deg, var(--primary), #0f766e); }
.article-series-cta.series-resf .series-btn { color: var(--primary); }
.article-series-cta.series-drift{ background: linear-gradient(135deg, #4f46e5, #1d4ed8); }
.article-series-cta.series-drift.series-btn  { color: #1d4ed8; }

/* ── Similar articles ────────────────────────────────────────────────────── */
.article-similar {
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.article-similar-eyebrow {
  font-family: var(--font-mono); font-size: 0.6875rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 1.1rem;
}
/* njs-sr similar-articles grid: 2-col cards with 64×64 thumb + meta column.
   Mirrors src/app/(marketing)/[...slug]/page.tsx similar-articles block:
   flex gap-3 bg-surface border rounded-xl p-4 + w-16 h-16 thumb. */
.similar-grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
@media (min-width: 640px) { .similar-grid { grid-template-columns: repeat(2, 1fr); } }
.similar-card {
  display: flex; gap: 0.75rem;            /* gap-3 */
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;                  /* rounded-xl */
  padding: 1rem;                           /* p-4 */
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.similar-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.10), 0 2px 4px -2px rgba(0,0,0,0.10);
}
.similar-thumb {
  position: relative;
  flex: 0 0 4rem;                          /* fixed 64px, no shrink/grow */
  width: 4rem; height: 4rem;
  border-radius: 0.5rem;                   /* rounded-lg */
  overflow: hidden;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}
.similar-thumb img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 0;                        /* defeat any global img rounding */
}
.similar-body {
  display: flex; flex-direction: column;
  min-width: 0;                            /* allow text truncation in flex parent */
  flex: 1;
}
.similar-pill {
  align-self: flex-start;
  font-size: 0.5625rem;                    /* text-[9px] */
  font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 1px 6px;                        /* px-1.5 py-0.5 */
  border-radius: 999px;
  margin-bottom: 0.375rem;                 /* mb-1.5 */
  background: #f1f5f9; color: #475569;
  line-height: 1.4;
}
.similar-pill-standards { background: #eff6ff; color: #1d4ed8; }
.similar-pill-culture   { background: #fffbeb; color: #b45309; }
.similar-pill-analytics { background: #f0fdfa; color: #0f766e; }
.similar-pill-norms     { background: #f5f3ff; color: #6d28d9; }
.similar-title {
  font-size: 0.75rem;                      /* text-xs */
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;                        /* leading-snug */
  margin-bottom: 0.25rem;                  /* mb-1 */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s;
}
.similar-card:hover .similar-title { color: var(--primary); }
.similar-meta {
  font-size: 0.625rem;                     /* text-[10px] */
  color: var(--ink-muted);
  margin-top: auto;
}

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.article-breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; color: var(--ink-muted); margin-bottom: 2.5rem;
}
.article-breadcrumb a { transition: color 0.15s; }
.article-breadcrumb a:hover { color: var(--ink); }
.article-breadcrumb-sep { color: var(--border); user-select: none; }
.article-breadcrumb-current {
  color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; max-width: 260px;
}

/* ── Article header ──────────────────────────────────────────────────────── */
.article-category {
  font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--primary); display: block; margin-bottom: 0.75rem;
}
.article-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 600; letter-spacing: -0.02em;
  line-height: 1.15; color: var(--ink); margin-bottom: 1rem;
}
.article-subtitle {
  font-size: 1.125rem; color: var(--ink-muted); line-height: 1.65; margin-bottom: 1.5rem;
}
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem;
  font-size: 0.75rem; color: var(--ink-muted);
  border-top: 1px solid var(--border); padding-top: 1.25rem; margin-bottom: 2.5rem;
}
.article-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--border); flex-shrink: 0; }

/* ── Image figure ────────────────────────────────────────────────────────── */
.article-figure { margin: 1.5rem 0; position: relative; }
.article-figure--full,
.article-figure--left,
.article-figure--right { width: 100%; clear: both; }
.article-figure--chart { /* marker class; same width treatment */ }
.article-figure-img {
  width: 100%; height: auto; max-height: 80vh;
  object-fit: contain; object-position: top center;
  border-radius: 10px; display: block; border: 1px solid var(--border);
}

/* ── Share buttons (per-figure, e-flagged images only) ───────────────────── */
.article-figure-share {
  display: flex; flex-direction: row; justify-content: flex-end;
  gap: 0.25rem; margin-top: 0.375rem; position: relative;
}
.share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.5rem; height: 1.5rem; border-radius: 0.25rem;
  color: var(--ink-muted); background: transparent;
  border: 1px solid var(--border);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  cursor: pointer; text-decoration: none;
}
.share-btn:hover {
  color: var(--ink); border-color: var(--ink-muted); background: var(--canvas);
}

/* ── End-of-article share bar (built by article-extras.js) ─────────────── */
.article-share {
  margin: 2.5rem 0 2rem;
  padding: 1.25rem 0;
  border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
}
.article-share-label {
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ink-muted); margin: 0;
}
.article-share-buttons {
  display: flex; flex-direction: row; gap: 0.5rem; flex-wrap: wrap; justify-content: center;
}
.share-btn.article-share-btn {
  width: 2.25rem; height: 2.25rem;
}
.share-btn.share-btn-copied {
  color: var(--primary); border-color: var(--primary);
}

/* ── Article prose body ──────────────────────────────────────────────────── */
.article-prose .para {
  font-size: 0.9375rem; color: var(--ink-muted); line-height: 1.8; margin-bottom: 1.375rem;
}
.article-prose .para strong { color: var(--ink); font-weight: 600; }
.article-prose .subheader {
  font-size: 1.0625rem; font-weight: 600; color: var(--ink); line-height: 1.35;
  margin: 2.5rem 0 0.875rem;
}
.article-prose h2 {
  font-size: 1.25rem; font-weight: 600; color: var(--ink); line-height: 1.3;
  margin: 2.75rem 0 1rem;
}
.article-prose h3 {
  font-size: 1.0625rem; font-weight: 600; color: var(--ink); line-height: 1.35;
  margin: 2.5rem 0 0.875rem;
}
.article-prose h4 {
  font-size: 0.9375rem; font-weight: 600; color: var(--ink); line-height: 1.4;
  margin: 2rem 0 0.625rem;
}
.article-prose p {
  font-size: 0.9375rem; color: var(--ink-muted); line-height: 1.8; margin-bottom: 1.375rem;
}
.article-prose p strong { color: var(--ink); font-weight: 600; }
.article-prose a {
  color: var(--primary); text-decoration: underline;
  text-underline-offset: 2px; text-decoration-thickness: 1px;
}
.article-prose a:hover { color: var(--primary-dark); }

/* ── Lists ───────────────────────────────────────────────────────────────── */
.article-prose ul, .article-prose .indented-list ul {
  list-style-type: disc; padding-left: 1.5rem; margin-bottom: 1.25rem;
  color: var(--ink-muted); font-size: 0.9375rem; line-height: 1.75;
}
.article-prose ol, .article-prose .indented-list ol {
  list-style-type: decimal; padding-left: 1.5rem; margin-bottom: 1.25rem;
  color: var(--ink-muted); font-size: 0.9375rem; line-height: 1.75;
}
.article-prose ul ul, .article-prose .indented-list ul ul {
  list-style-type: circle; padding-left: 1.25rem;
  margin-top: 0.25rem; margin-bottom: 0.25rem;
}
.article-prose ol ol, .article-prose .indented-list ol ol {
  list-style-type: lower-alpha; padding-left: 1.25rem;
  margin-top: 0.25rem; margin-bottom: 0.25rem;
}
.article-prose ul ul ul, .article-prose .indented-list ul ul ul {
  list-style-type: square; padding-left: 1.25rem;
}
.article-prose li, .article-prose .indented-list li {
  display: list-item; margin-bottom: 0.4rem; line-height: 1.75;
}
.article-prose .indented-list {
  margin-left: 1rem; margin-bottom: 1.25rem;
  color: var(--ink-muted); font-size: 0.9375rem;
}

/* ── Inline emphasis spans (preserved from JSON) ─────────────────────────── */
.article-prose .gen-strong { font-weight: 600; color: var(--ink); }

/* ── In-article accordion (preserved markup from JSON) ───────────────────── */
.article-prose .in-article-accordion {
  margin-top: 0.375rem; margin-bottom: 0.375rem;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
  border-radius: 0.5rem; overflow: hidden;
}
.article-prose .in-article-accordion > summary.accordion-trigger {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.65rem 1rem; cursor: pointer;
  font-size: 0.8125rem; font-weight: 600; color: var(--ink);
  background: color-mix(in srgb, var(--primary) 4%, transparent);
  list-style: none; user-select: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.article-prose .in-article-accordion > summary.accordion-trigger::-webkit-details-marker { display: none; }
.article-prose .in-article-accordion > summary.accordion-trigger::marker { display: none; }
.article-prose .in-article-accordion > summary.accordion-trigger::after {
  content: "›"; font-size: 1rem; line-height: 1;
  color: color-mix(in srgb, var(--primary) 70%, transparent);
  transition: transform 0.2s ease; flex-shrink: 0;
}
.article-prose .in-article-accordion[open] > summary.accordion-trigger {
  background: color-mix(in srgb, var(--primary) 9%, transparent);
  color: var(--primary);
}
.article-prose .in-article-accordion[open] > summary.accordion-trigger::after {
  transform: rotate(90deg); color: var(--primary);
}
.article-prose .accordion-body {
  padding: 0.75rem 1rem 1rem; border-top: 1px solid color-mix(in srgb, var(--primary) 12%, transparent);
  background: var(--surface); font-size: 0.875rem; color: var(--ink-muted); line-height: 1.7;
}

/* ── FAQ section (rendered visibly below article) ─────────────────────────── */
.faq-section { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--border); }
.faq-section-title {
  font-size: 1.125rem; font-weight: 600; color: var(--ink); margin-bottom: 1.25rem;
}
.faq-list { display: flex; flex-direction: column; gap: 0.5rem; }
details.faq-item {
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--canvas);
}
summary.faq-trigger {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; font-size: 0.875rem; font-weight: 500; color: var(--ink);
  cursor: pointer; list-style: none; gap: 1rem; transition: background 0.15s;
}
summary.faq-trigger:hover { background: var(--primary-light); }
summary.faq-trigger::-webkit-details-marker { display: none; }
summary.faq-trigger::after {
  content: "▾"; font-size: 0.875rem;
  color: var(--ink-muted); transition: transform 0.2s;
}
details[open] > summary.faq-trigger::after { transform: rotate(180deg); }
.faq-answer {
  padding: 0 1.25rem 1rem; font-size: 0.875rem; color: var(--ink-muted);
  line-height: 1.7; border-top: 1px solid var(--border); background: var(--surface);
}
.faq-answer p { padding-top: 1rem; }

/* ── Back link ───────────────────────────────────────────────────────────── */
.article-back-wrap { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.article-back { font-size: 0.875rem; font-weight: 500; color: var(--primary); transition: color 0.15s; }
.article-back:hover { color: var(--primary-dark); }

/* ── Legal/landing prose (looser than article-prose, for unclassed bodies) ── */
.legal-prose h2, .legal-prose h3 {
  font-size: 1.0625rem; font-weight: 600; color: var(--ink); margin: 2rem 0 0.75rem;
}
.legal-prose h2:first-child, .legal-prose h3:first-child { margin-top: 0; }
.legal-prose p { font-size: 0.9375rem; color: var(--ink-muted); line-height: 1.75; margin-bottom: 1rem; }
.legal-prose ul, .legal-prose ol { margin: 0 0 1rem 1.5rem; }
.legal-prose li { font-size: 0.9375rem; color: var(--ink-muted); line-height: 1.75; margin-bottom: 0.35rem; }
.legal-prose strong { color: var(--ink); font-weight: 600; }
.legal-prose a {
  color: var(--primary); text-decoration: underline; text-underline-offset: 2px;
}
