/* SocialCaution Blog — aligned with www design tokens (variables.css + home surfaces). */

:root {
  --primary: #0a2342;
  --primary-soft: #e8f1f9;
  --bg: #ffffff;
  --bg-secondary: #f9fafb;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --muted-strong: #4b5563;
  --line: #e5e7eb;
  --line-soft: #f3f4f6;
  --accent: #ff6b35;
  --accent-dark: #e55a29;
  --accent-soft: rgba(255, 107, 53, 0.12);
  --caution-gold: #eab308;
  --success-soft: #ecfdf5;
  --success-line: #a7f3d0;
  --warning-soft: #fffbeb;
  --warning-line: #fde68a;
  --info-soft: #eff6ff;
  --info-line: #bfdbfe;
  --radius: 1rem;
  --radius-sm: 0.5rem;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 5%);
  --shadow: 0 1px 3px rgb(0 0 0 / 10%), 0 1px 2px -1px rgb(0 0 0 / 10%);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 10%), 0 2px 4px -2px rgb(0 0 0 / 10%);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 10%), 0 4px 6px -4px rgb(0 0 0 / 10%);
  --shadow-accent: 0 10px 28px -8px rgba(255, 107, 53, 0.28);
  --font: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-display: "Bricolage Grotesque", "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --max: 42rem; /* ~672px — readable measure inside article column */
  --wide: 1120px;
  --article-rail: 15.5rem;
  --header-h: 52px;
  --concern-bar-h: 40px;
  --chrome-h: var(--header-h);
  /* Concern palette (lane / cover / pill accents) */
  --concern-general: #0a2342;
  --concern-general-soft: #e8f1f9;
  --concern-parental: #7c3aed;
  --concern-parental-soft: #f3e8ff;
  --concern-employee: #0369a1;
  --concern-employee-soft: #e0f2fe;
  --concern-student: #0f766e;
  --concern-student-soft: #ccfbf1;
  --concern-professional: #c2410c;
  --concern-professional-soft: #ffedd5;
  --concern-health: #be123c;
  --concern-health-soft: #ffe4e6;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --concern-general-soft: #1e293b;
  --concern-parental-soft: #2e1065;
  --concern-employee-soft: #0c4a6e;
  --concern-student-soft: #134e4a;
  --concern-professional-soft: #7c2d12;
  --concern-health-soft: #881337;
}

/* Dark tokens: explicit toggle or OS preference (when not forced light) */
:root[data-theme="dark"] {
  --primary: #f1f5f9;
  --primary-soft: #1e293b;
  --bg: #0f172a;
  --bg-secondary: #1e293b;
  --surface: #1e293b;
  --ink: #f1f5f9;
  --muted: #a8b4c4;
  --muted-strong: #d0d7e2;
  --line: #334155;
  --line-soft: #1e293b;
  --accent: #ff6b35;
  --accent-dark: #ff8a5b;
  --accent-soft: rgba(255, 107, 53, 0.18);
  --caution-gold: #facc15;
  --success-soft: #14532d;
  --success-line: #166534;
  --warning-soft: #422006;
  --warning-line: #854d0e;
  --info-soft: #1e3a5f;
  --info-line: #1e40af;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 30%);
  --shadow: 0 1px 3px rgb(0 0 0 / 40%);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 40%);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 40%);
  --shadow-accent: 0 10px 28px -8px rgba(255, 107, 53, 0.22);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --primary: #f1f5f9;
    --primary-soft: #1e293b;
    --bg: #0f172a;
    --bg-secondary: #1e293b;
    --surface: #1e293b;
    --ink: #f1f5f9;
    --muted: #a8b4c4;
    --muted-strong: #d0d7e2;
    --line: #334155;
    --line-soft: #1e293b;
    --accent: #ff6b35;
    --accent-dark: #ff8a5b;
    --accent-soft: rgba(255, 107, 53, 0.18);
    --caution-gold: #facc15;
    --success-soft: #14532d;
    --success-line: #166534;
    --warning-soft: #422006;
    --warning-line: #854d0e;
    --info-soft: #1e3a5f;
    --info-line: #1e40af;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 30%);
    --shadow: 0 1px 3px rgb(0 0 0 / 40%);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 40%);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 40%);
    --shadow-accent: 0 10px 28px -8px rgba(255, 107, 53, 0.22);
    --concern-general-soft: #1e293b;
    --concern-parental-soft: #2e1065;
    --concern-employee-soft: #0c4a6e;
    --concern-student-soft: #134e4a;
    --concern-professional-soft: #7c2d12;
    --concern-health-soft: #881337;
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wrap {
  width: min(100% - 2rem, var(--wide));
  margin-inline: auto;
}

/* —— Header (www brand chrome) —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.25rem 0;
}

/* Index-only: one compact sticky row of concern chips */
.page-index {
  --chrome-h: calc(var(--header-h) + var(--concern-bar-h));
}

.concern-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 45;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.concern-bar-inner {
  display: flex;
  align-items: center;
  min-height: var(--concern-bar-h);
  padding: 0.3rem 0;
}

.concern-bar .filter-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  width: 100%;
  margin: 0;
  overflow: visible;
}

.concern-bar .filter {
  display: inline-flex;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
  height: 1.7rem;
  padding: 0 0.2rem;
  font-size: 0.68rem;
  line-height: 1;
  white-space: nowrap;
  justify-content: center;
  overflow: hidden;
  text-overflow: ellipsis;
  gap: 0.2rem;
}

.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.25rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--muted-strong);
  font-size: 0.62rem;
  font-weight: 700;
}

.filter.is-active .filter-count {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--accent-dark);
}

@media (min-width: 480px) {
  .concern-bar .filter {
    font-size: 0.72rem;
    padding: 0 0.35rem;
    height: 1.8rem;
  }
}

@media (min-width: 720px) {
  .concern-bar .filter-bar {
    justify-content: center;
    gap: 0.35rem;
  }

  .concern-bar .filter {
    flex: 0 0 auto;
    min-width: 4.75rem;
    padding: 0 0.7rem;
    font-size: 0.75rem;
    height: 2rem;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.brand:hover .brand-social,
.brand:hover .brand-tm {
  color: var(--accent);
}

.brand-logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  object-fit: contain;
  filter: brightness(1.05) contrast(1.05) saturate(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  line-height: 1.15;
}

.brand-title {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.brand-social,
.brand-tm {
  color: var(--ink);
  transition: color 0.2s ease;
}

.brand-caution {
  color: var(--caution-gold);
}

.brand-sub {
  font-size: 0.9rem;
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.nav-utils {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.nav-approach {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted-strong);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-approach:hover,
.nav-approach[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}

@media (max-width: 420px) {
  .nav-approach {
    padding: 0.3rem 0.4rem;
    font-size: 0.75rem;
  }
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted-strong);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.lang-switch:hover {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
}

.theme-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  margin: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted-strong);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.theme-toggle:hover {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
}

.theme-toggle .theme-icon {
  width: 1.1rem;
  height: 1.1rem;
}

.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: block;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .theme-toggle .icon-sun {
    display: block;
  }

  :root:not([data-theme="light"]):not([data-theme="dark"]) .theme-toggle .icon-moon {
    display: none;
  }
}

/* —— Blog index intro (compact, editorial — not a www marketing hero) —— */
.hero {
  padding: 1rem max(1rem, calc(50% - var(--wide) / 2)) 0.85rem;
  text-align: center;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--primary-soft) 55%, var(--bg)) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.hero-eyebrow,
.eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 auto;
  max-width: 28rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--primary);
  text-wrap: balance;
}

.lede {
  margin: 0.4rem auto 0;
  max-width: 36rem;
  color: var(--muted-strong);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.hero-links {
  margin: 0.35rem auto 0;
  font-size: 0.8125rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0;
}

.text-link {
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  white-space: nowrap;
}

.text-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.hero-sep {
  margin: 0 0.55rem;
  color: var(--muted);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem;
  margin-top: 0.55rem;
}

.filter {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted-strong);
  border-radius: var(--radius-pill);
  padding: 0.28rem 0.7rem;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease,
    box-shadow 0.15s ease;
}

.filter.is-active,
.filter:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  color: var(--accent-dark);
  background: var(--accent-soft);
  box-shadow: var(--shadow);
}

.filter.is-active {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent), var(--shadow-sm);
}

/* —— Featured product strip (outside concern lanes) —— */
.featured-strip {
  margin: 0 0 1.1rem;
}

.featured-card {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.featured-card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: var(--shadow);
}

.featured-card .cover--card {
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
}

.featured-card-body {
  padding: 0.85rem 1rem 1rem;
}

.featured-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.featured-card-body h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.25;
  color: var(--primary);
  text-wrap: balance;
}

.featured-card-body > p {
  margin: 0 0 0.55rem;
  color: var(--muted-strong);
  font-size: 0.88rem;
  line-height: 1.45;
}

@media (min-width: 720px) {
  .featured-card {
    grid-template-columns: minmax(12rem, 38%) 1fr;
    align-items: stretch;
  }

  .featured-card .cover--card {
    border-bottom: none;
    border-right: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
    min-height: 100%;
    aspect-ratio: auto;
  }

  .featured-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.1rem 1.25rem;
  }

  .featured-card-body h2 {
    font-size: 1.2rem;
  }
}

/* —— Story lanes —— */
.story-lanes {
  padding: 1.25rem 0 2rem;
  background: var(--bg-secondary);
  scroll-margin-top: calc(var(--chrome-h) + 0.5rem);
}

.story-lane {
  margin: 0 0 0.75rem;
  padding: 0.7rem 0.8rem 0.8rem;
  scroll-margin-top: calc(var(--chrome-h) + 0.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}

.lane-header {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.55rem;
  row-gap: 0.1rem;
  align-items: start;
  margin-bottom: 0.55rem;
  max-width: none;
}

.lane-label {
  grid-column: 2;
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  align-self: end;
}

.lane-header h2 {
  grid-column: 2;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--primary);
  text-wrap: balance;
}

.lane-trend {
  grid-column: 1 / -1;
  margin: 0.3rem 0 0;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.lane-narrative {
  grid-column: 1 / -1;
  margin: 0.15rem 0 0;
  color: var(--muted-strong);
  font-size: 0.82rem;
  line-height: 1.4;
}

:root[data-theme="dark"] .lane-narrative,
:root[data-theme="dark"] .insight-body,
:root[data-theme="dark"] .page-article .deck,
:root[data-theme="dark"] .prose .lead {
  color: var(--ink);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .lane-narrative,
  :root:not([data-theme="light"]):not([data-theme="dark"]) .insight-body,
  :root:not([data-theme="light"]):not([data-theme="dark"]) .page-article .deck,
  :root:not([data-theme="light"]):not([data-theme="dark"]) .prose .lead {
    color: var(--ink);
  }
}

.lane-empty {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: var(--bg-secondary);
  max-width: 40rem;
  font-size: 0.9rem;
}

.post-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}

@media (min-width: 960px) {
  .post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

.post-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.post-card a:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.post-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.8rem 0.9rem 0.95rem;
  min-height: 0;
  gap: 0.3rem;
}

.post-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--primary);
}

.post-card p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.84rem;
  line-height: 1.45;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.focus-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.empty-filter {
  color: var(--muted);
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.9rem;
}

/* —— Article pages —— */
.article {
  max-width: none; /* use .wrap (--wide); main+rail fill horizontal space */
  padding: 1.1rem 0 2rem;
}

.article-layout {
  display: grid;
  gap: 1.15rem;
  align-items: start;
}

.article-main {
  min-width: 0;
}

.article-header {
  max-width: none;
}

.article-rail {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

@media (min-width: 960px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) var(--article-rail);
    column-gap: 1.75rem;
  }

  .article-rail {
    position: sticky;
    top: calc(var(--chrome-h) + 0.85rem);
  }

  .article-rail .toc,
  .article-rail .related-links,
  .article-rail .soft-handoff {
    margin-top: 0;
    margin-bottom: 0;
  }

  .article-main .prose {
    max-width: 42rem;
  }
}

/* Approach (no rail): keep a comfortable reading measure, still wider than old 720 */
.article.approach {
  max-width: min(100%, 46rem);
}

.crumb {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.crumb a {
  color: var(--muted-strong);
  font-weight: 600;
  text-decoration: none;
}

.crumb a:hover {
  color: var(--accent);
}

.article-header h1 {
  margin: 0.2rem 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--primary);
  text-wrap: balance;
}

.deck {
  margin: 0;
  color: var(--muted-strong);
  font-size: 1rem;
  line-height: 1.5;
}

.meta,
.byline {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.story-context {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--lane-accent, var(--accent)) 22%, var(--line));
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--lane-accent, var(--accent)) 10%, transparent),
      transparent 55%
    ),
    var(--bg-secondary);
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted-strong);
}

.story-context-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  background: color-mix(in srgb, var(--lane-accent, var(--accent)) 16%, var(--surface));
  color: var(--lane-accent, var(--accent));
}

.story-context-icon .cover-icon {
  width: 1.1rem;
  height: 1.1rem;
  filter: none;
  opacity: 1;
}

.story-context-body {
  min-width: 0;
}

.story-context a {
  font-weight: 600;
  text-decoration: none;
}

.story-context a:hover {
  text-decoration: underline;
}

.approach .eyebrow {
  margin-bottom: 0.35rem;
}

.prose {
  margin-top: 0.75rem;
  min-width: 0;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink);
}

/* Single-column (mobile / approach): cap line length for readability */
@media (max-width: 959px) {
  .article:not(.approach) .prose,
  .article:not(.approach) .deck {
    max-width: var(--max);
  }
}

.prose .lead {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.8rem 0.65rem 0.85rem;
  border-left: 3px solid var(--lane-accent, var(--accent));
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: color-mix(in srgb, var(--lane-accent, var(--accent)) 7%, var(--bg-secondary));
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.5;
  font-weight: 400;
}

.prose h2,
.prose h2.section-head {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 0.45rem 0.55rem;
  margin: 1.25rem 0 0.5rem;
  padding: 0.55rem 0 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--primary);
  scroll-margin-top: calc(var(--chrome-h) + 0.85rem);
  position: relative;
}

.prose h2::before,
.prose h2.section-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 2.5rem;
  height: 3px;
  border-radius: 2px;
  background: var(--lane-accent, var(--accent));
}

.prose > h2:first-of-type,
.prose > h2.section-head:first-of-type {
  margin-top: 0.35rem;
  padding-top: 0;
  border-top: none;
}

.prose > h2:first-of-type::before,
.prose > h2.section-head:first-of-type::before {
  display: none;
}

.section-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.7rem;
  height: 1.7rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--lane-accent, var(--accent)) 12%, var(--bg-secondary));
  color: var(--lane-accent, var(--accent-dark));
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.7rem;
  background: color-mix(in srgb, var(--lane-accent, var(--accent)) 14%, var(--surface));
  color: var(--lane-accent, var(--accent));
  border: 1px solid color-mix(in srgb, var(--lane-accent, var(--accent)) 22%, var(--line));
}

.section-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.section-label {
  min-width: 0;
  text-wrap: balance;
}

.insight-list {
  list-style: none;
  margin: 0.7rem 0 0.9rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.insight-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: start;
  margin: 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.insight-item + .insight-item {
  margin-top: 0;
}

.insight-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--accent) 16%, var(--bg-secondary));
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
}

:root[data-theme="dark"] .insight-icon,
:root[data-theme="dark"] .section-icon {
  background: color-mix(in srgb, var(--accent) 22%, #0f172a);
  color: color-mix(in srgb, var(--accent) 70%, white);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .insight-icon,
  :root:not([data-theme="light"]):not([data-theme="dark"]) .section-icon {
    background: color-mix(in srgb, var(--accent) 22%, #0f172a);
    color: color-mix(in srgb, var(--accent) 70%, white);
    border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  }
}

.insight-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.insight-body {
  min-width: 0;
  font-family: var(--font);
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--ink);
}

.insight-body strong {
  display: inline;
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
}

@media (min-width: 720px) {
  .insight-list {
    grid-template-columns: 1fr 1fr;
  }

  .insight-list:has(> .insight-item:nth-child(odd):last-child) .insight-item:last-child {
    grid-column: 1 / -1;
  }
}

.prose h3 {
  margin: 1.15rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.prose h4 {
  margin: 1rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 0.65rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.28rem;
}

.prose li::marker {
  color: var(--accent);
}

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

.callout {
  margin: 0.75rem 0;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  border-left-width: 3px;
  background: var(--surface);
  box-shadow: none;
  font-family: var(--font);
  font-size: 0.9rem;
  line-height: 1.5;
  position: relative;
}

.callout.info {
  border-color: var(--info-line);
  border-left-color: #3b82f6;
  background: var(--info-soft);
}

.callout.warning {
  border-color: var(--warning-line);
  border-left-color: #eab308;
  background: var(--warning-soft);
}

.callout h3,
.callout h4 {
  margin-top: 0;
  font-family: var(--font-display);
  padding-left: 1.65rem;
  position: relative;
}

.callout.info h3::before,
.callout.info h4::before,
.callout.warning h3::before,
.callout.warning h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E")
    center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.callout.warning h3::before,
.callout.warning h4::before {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E")
    center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.callout-grid {
  display: grid;
  gap: 0.85rem;
  margin: 1.25rem 0;
}

@media (min-width: 720px) {
  .callout-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.callout.tip {
  border-color: var(--success-line);
  border-left-color: #10b981;
  background: var(--success-soft);
}

.callout.tip h3,
.callout.tip h4 {
  padding-left: 1.65rem;
  position: relative;
}

.callout.tip h3::before,
.callout.tip h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.15rem;
  height: 1.15rem;
  background: currentColor;
  opacity: 0.85;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'%3E%3Cpath d='M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5'/%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 22h4'/%3E%3C/svg%3E")
    center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'%3E%3Cpath d='M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5'/%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 22h4'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.pullquote {
  margin: 1rem 0;
  padding: 0.75rem 0.9rem 0.75rem 1rem;
  border-left: 4px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--bg));
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--ink);
}

.pullquote p {
  margin: 0;
}

.scan-grid {
  display: grid;
  gap: 0.85rem;
  margin: 1.35rem 0;
}

@media (min-width: 640px) {
  .scan-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .scan-grid.scan-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .scan-grid.scan-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.scan-card {
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-sm);
}

.scan-card h3,
.scan-card h4 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
}

.scan-card ul {
  margin: 0;
  padding-left: 1.1rem;
  font-family: var(--font);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted-strong);
}

.scan-card li + li {
  margin-top: 0.3rem;
}

.prose .data-table-wrap {
  margin: 1.35rem 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.prose .data-table-wrap > h3,
.prose .data-table-caption {
  margin: 0;
  padding: 0.85rem 1rem 0.55rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.prose table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font);
  font-size: 0.9rem;
  line-height: 1.45;
}

.prose table.data-table th,
.prose table.data-table td {
  padding: 0.7rem 1rem;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
}

.prose table.data-table thead th {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  border-top: none;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.prose table.data-table tbody tr:nth-child(even) {
  background: var(--bg-secondary);
}

.prose table.data-table th:first-child,
.prose table.data-table td:first-child {
  font-weight: 650;
  color: var(--ink);
  white-space: nowrap;
}

.visual-panel {
  margin: 1.35rem 0;
  padding: 1.15rem 1.2rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 60% 70% at 20% 30%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 55%),
    radial-gradient(ellipse 50% 60% at 85% 70%, color-mix(in srgb, var(--primary) 10%, transparent), transparent 50%),
    var(--bg-secondary);
  box-shadow: var(--shadow-sm);
}

.visual-panel-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
}

.visual-orbit {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: 1;
  margin: 0 auto;
}

.visual-orbit-ring {
  position: absolute;
  inset: 12%;
  border: 1.5px dashed color-mix(in srgb, var(--primary) 28%, transparent);
  border-radius: 50%;
}

.visual-orbit-core {
  position: absolute;
  inset: 36%;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 88%, black);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.visual-orbit-core svg {
  width: 42%;
  height: 42%;
}

.visual-orbit-node {
  position: absolute;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.visual-orbit-node svg {
  width: 1.05rem;
  height: 1.05rem;
}

.visual-orbit-node:nth-child(3) { top: 4%; left: 50%; transform: translateX(-50%); }
.visual-orbit-node:nth-child(4) { top: 22%; right: 6%; }
.visual-orbit-node:nth-child(5) { bottom: 18%; right: 10%; }
.visual-orbit-node:nth-child(6) { bottom: 4%; left: 50%; transform: translateX(-50%); }
.visual-orbit-node:nth-child(7) { bottom: 18%; left: 10%; }
.visual-orbit-node:nth-child(8) { top: 22%; left: 6%; }

.visual-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  max-width: 320px;
  margin: 0 auto;
}

.visual-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 0.4rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--primary);
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 650;
  text-align: center;
  line-height: 1.25;
}

.visual-method svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent-dark);
}

@media (max-width: 480px) {
  .prose table.data-table th:first-child,
  .prose table.data-table td:first-child {
    white-space: normal;
  }
}

.related-links {
  margin: 0.75rem 0 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  box-shadow: none;
}

.related-links h2 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  color: var(--primary);
}

.related-links > p {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.related-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.related-links-list a {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.35;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding: 0.35rem 0.2rem;
  border-radius: var(--radius-sm);
}

.related-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.55rem;
  height: 1.55rem;
  margin-top: 0.05rem;
  border-radius: 0.45rem;
  background: color-mix(in srgb, var(--accent) 12%, var(--bg-secondary));
  color: var(--accent);
}

.related-icon svg {
  width: 0.9rem;
  height: 0.9rem;
}

.related-links-list a:hover {
  color: var(--accent-dark);
  border-bottom-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}

.soft-handoff {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  background: var(--accent-soft);
  box-shadow: none;
}

@media (max-width: 959px) {
  .soft-handoff {
    margin-top: 0.5rem;
  }
}

.soft-handoff p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.84rem;
  line-height: 1.45;
}

.soft-handoff a {
  font-weight: 700;
  color: var(--accent-dark);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}

.soft-handoff a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.back {
  margin: 0;
  font-size: 0.9rem;
}

.back a {
  font-weight: 600;
  text-decoration: none;
}

.back a:hover {
  text-decoration: underline;
}

/* —— Footer (one compact bar: brand · links · ©) —— */
.site-footer {
  margin-top: auto;
  flex-shrink: 0;
  border-top: 1px solid var(--line);
  padding: 0.65rem 0 0.7rem;
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 1rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.footer-logo:hover .brand-social,
.footer-logo:hover .brand-tm {
  color: var(--accent);
}

.footer-logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
}

.footer-logo-text {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  line-height: 1;
}

.footer-wordmark {
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
}

.footer-tag {
  font-size: 0.7rem;
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.55rem;
  min-width: 0;
  flex: 1 1 auto;
}

.footer-nav a {
  font-weight: 500;
  font-size: 0.75rem;
  line-height: 1.2;
  text-decoration: none;
  color: var(--muted-strong);
  padding: 0.15rem 0;
  white-space: nowrap;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-sep {
  display: inline-block;
  width: 1px;
  height: 0.85rem;
  margin: 0 0.15rem;
  background: var(--line);
  flex-shrink: 0;
}

.footer-copy {
  margin: 0;
  margin-left: auto;
  font-size: 0.6875rem;
  color: var(--muted);
  white-space: nowrap;
}

@media (max-width: 520px) {
  .footer-inner {
    gap: 0.4rem 0.65rem;
  }

  .footer-nav {
    flex: 1 1 100%;
    order: 3;
  }

  .footer-copy {
    margin-left: 0;
    order: 2;
  }

  .footer-sep {
    display: none;
  }
}

@media (max-width: 720px) {
  .brand-title {
    font-size: 1rem;
    letter-spacing: 0.03em;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
  }

  .brand-sub {
    font-size: 0.82rem;
  }

  .story-lane {
    padding: 0.85rem 0.8rem 0.9rem;
  }

  .hero {
    padding-block: 0.5rem 0.45rem;
  }

  .page-index .hero h1 {
    font-size: 1.15rem;
  }

  .lane-header {
    grid-template-columns: auto 1fr;
  }

  .lane-badge {
    width: 1.9rem;
    height: 1.9rem;
  }
}

@media (min-width: 640px) {
  .brand-logo {
    width: 52px;
    height: 52px;
  }

  .brand-title {
    font-size: 1.25rem;
    letter-spacing: 0.08em;
  }

  .brand-sub {
    font-size: 1rem;
  }
}

/* —— Visual engagement: covers, TOC, progress, concern colors —— */

.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: 3px;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--caution-gold));
  pointer-events: none;
  will-change: transform;
}

.meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--bg-secondary);
  border: 1px solid var(--line);
  color: var(--muted-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.article-header .meta-chips {
  margin: 0 0 0.35rem;
}

/* Covers — topic photos when available; CSS motif fallback otherwise */
.cover {
  --cover-ink: var(--concern-general);
  --cover-soft: var(--concern-general-soft);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 80% at 20% 20%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 55%),
    radial-gradient(ellipse 60% 70% at 85% 75%, color-mix(in srgb, var(--cover-ink) 22%, transparent), transparent 50%),
    linear-gradient(145deg, var(--cover-soft) 0%, color-mix(in srgb, var(--cover-ink) 12%, var(--bg)) 55%, color-mix(in srgb, var(--accent) 10%, var(--bg)) 100%);
  color: var(--cover-ink);
}

.cover--card {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-bottom: 1px solid color-mix(in srgb, var(--cover-ink) 12%, var(--line));
}

.cover--hero {
  aspect-ratio: 21 / 9;
  width: 100%;
  max-height: 220px;
  margin: 0 0 0.75rem;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--cover-ink) 14%, var(--line));
  box-shadow: none;
}

.cover--photo {
  background: color-mix(in srgb, var(--cover-ink) 18%, #0a2342);
  color: transparent;
}

.cover-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.cover-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      160deg,
      color-mix(in srgb, var(--primary) 28%, transparent) 0%,
      transparent 45%,
      color-mix(in srgb, var(--cover-ink) 22%, transparent) 100%
    ),
    linear-gradient(
      to top,
      color-mix(in srgb, var(--primary) 18%, transparent) 0%,
      transparent 42%
    );
}

.cover--card.cover--photo {
  border-bottom-color: color-mix(in srgb, var(--cover-ink) 18%, var(--line));
}

.cover--hero.cover--photo {
  max-height: 240px;
  aspect-ratio: 16 / 9;
}

/* Solid light chip + concern ink: readable on any photo in light & dark */
.cover-badge {
  position: absolute;
  z-index: 2;
  left: 0.7rem;
  bottom: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.8rem;
  background: #ffffff;
  color: var(--cover-ink, #0a2342);
  border: 1px solid rgb(255 255 255 / 92%);
  box-shadow:
    0 1px 2px rgb(0 0 0 / 18%),
    0 6px 16px rgb(0 0 0 / 22%);
}

.cover-badge .cover-icon {
  width: 1.2rem;
  height: 1.2rem;
  filter: none;
  opacity: 1;
  stroke: currentColor;
}

.cover--card .cover-badge {
  width: 2rem;
  height: 2rem;
  left: 0.55rem;
  bottom: 0.55rem;
  border-radius: 0.65rem;
}

.cover--card .cover-badge .cover-icon {
  width: 1.05rem;
  height: 1.05rem;
}

.cover--general .cover-badge {
  color: #0a2342;
}

.cover--parental .cover-badge {
  color: #7c3aed;
}

.cover--employee .cover-badge {
  color: #0369a1;
}

.cover--student .cover-badge {
  color: #0f766e;
}

.cover--professional .cover-badge {
  color: #c2410c;
}

.cover--health .cover-badge {
  color: #be123c;
}

.cover-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 30% 40%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 45%);
  pointer-events: none;
}

.cover-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(color-mix(in srgb, var(--cover-ink) 8%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--cover-ink) 8%, transparent) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
  pointer-events: none;
}

.cover-icon {
  position: relative;
  z-index: 1;
  width: 2.75rem;
  height: 2.75rem;
  opacity: 0.92;
  filter: drop-shadow(0 4px 12px color-mix(in srgb, var(--cover-ink) 25%, transparent));
}

.cover--hero .cover-icon {
  width: 3.5rem;
  height: 3.5rem;
}

.cover-motif-2 .cover-grid {
  background-size: 16px 16px;
  transform: rotate(8deg) scale(1.2);
}

.cover-motif-3 .cover-glow {
  background: radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 50%);
}

.cover-motif-4 .cover-icon {
  transform: scale(1.08) rotate(-6deg);
}

.cover--general {
  --cover-ink: var(--concern-general);
  --cover-soft: var(--concern-general-soft);
}

.cover--parental {
  --cover-ink: var(--concern-parental);
  --cover-soft: var(--concern-parental-soft);
}

.cover--employee {
  --cover-ink: var(--concern-employee);
  --cover-soft: var(--concern-employee-soft);
}

.cover--student {
  --cover-ink: var(--concern-student);
  --cover-soft: var(--concern-student-soft);
}

.cover--professional {
  --cover-ink: var(--concern-professional);
  --cover-soft: var(--concern-professional-soft);
}

.cover--health {
  --cover-ink: var(--concern-health);
  --cover-soft: var(--concern-health-soft);
}

:root[data-theme="dark"] .cover {
  color: color-mix(in srgb, var(--cover-ink) 55%, white);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .cover {
    color: color-mix(in srgb, var(--cover-ink) 55%, white);
  }
}

/* Concern-colored lanes, pills, filters */
.story-lane {
  border-left: 4px solid var(--lane-accent, var(--accent));
}

.story-lane[data-profile="general"] {
  --lane-accent: var(--concern-general);
}

.story-lane[data-profile="parental"] {
  --lane-accent: var(--concern-parental);
}

.story-lane[data-profile="employee"] {
  --lane-accent: var(--concern-employee);
}

.story-lane[data-profile="student"] {
  --lane-accent: var(--concern-student);
}

.story-lane[data-profile="professional"] {
  --lane-accent: var(--concern-professional);
}

.story-lane[data-profile="health"] {
  --lane-accent: var(--concern-health);
}

.story-lane[data-profile="general"] .lane-label {
  color: var(--concern-general);
}

.story-lane[data-profile="parental"] .lane-label {
  color: var(--concern-parental);
}

.story-lane[data-profile="employee"] .lane-label {
  color: var(--concern-employee);
}

.story-lane[data-profile="student"] .lane-label {
  color: var(--concern-student);
}

.story-lane[data-profile="professional"] .lane-label {
  color: var(--concern-professional);
}

.story-lane[data-profile="health"] .lane-label {
  color: var(--concern-health);
}

/* Dark: brand concern inks are too dim on slate — lift labels for AA contrast */
:root[data-theme="dark"] .story-lane[data-profile="general"] .lane-label {
  color: #7dd3fc;
}
:root[data-theme="dark"] .story-lane[data-profile="parental"] .lane-label {
  color: #c4b5fd;
}
:root[data-theme="dark"] .story-lane[data-profile="employee"] .lane-label {
  color: #7dd3fc;
}
:root[data-theme="dark"] .story-lane[data-profile="student"] .lane-label {
  color: #5eead4;
}
:root[data-theme="dark"] .story-lane[data-profile="professional"] .lane-label {
  color: #fdba74;
}
:root[data-theme="dark"] .story-lane[data-profile="health"] .lane-label {
  color: #fda4af;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .story-lane[data-profile="general"] .lane-label {
    color: #7dd3fc;
  }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .story-lane[data-profile="parental"] .lane-label {
    color: #c4b5fd;
  }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .story-lane[data-profile="employee"] .lane-label {
    color: #7dd3fc;
  }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .story-lane[data-profile="student"] .lane-label {
    color: #5eead4;
  }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .story-lane[data-profile="professional"] .lane-label {
    color: #fdba74;
  }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .story-lane[data-profile="health"] .lane-label {
    color: #fda4af;
  }
}

.lane-badge {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  margin: 0.1rem 0 0;
  border-radius: 0.55rem;
  background: color-mix(in srgb, var(--lane-accent, var(--accent)) 12%, var(--surface));
  color: var(--lane-accent, var(--accent));
  border: 1px solid color-mix(in srgb, var(--lane-accent, var(--accent)) 28%, var(--line));
}

.lane-badge .cover-icon {
  width: 1.25rem;
  height: 1.25rem;
  filter: none;
  opacity: 1;
}

/* Dark theme: navy concern ink is too close to surfaces — brighten badge icons */
:root[data-theme="dark"] .lane-badge {
  background: color-mix(in srgb, var(--lane-accent, var(--accent)) 24%, #0f172a);
  color: color-mix(in srgb, var(--lane-accent, var(--accent)) 48%, #ffffff);
  border-color: color-mix(in srgb, var(--lane-accent, var(--accent)) 42%, var(--line));
}

:root[data-theme="dark"] .story-lane[data-profile="general"] .lane-badge {
  color: #7dd3fc;
  background: color-mix(in srgb, #38bdf8 18%, #0f172a);
  border-color: color-mix(in srgb, #38bdf8 35%, var(--line));
}

:root[data-theme="dark"] .story-context-icon {
  color: color-mix(in srgb, var(--lane-accent, var(--accent)) 48%, #ffffff);
  background: color-mix(in srgb, var(--lane-accent, var(--accent)) 22%, #0f172a);
}

:root[data-theme="dark"] .page-article[data-profile="general"] .story-context-icon {
  color: #7dd3fc;
  background: color-mix(in srgb, #38bdf8 18%, #0f172a);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .lane-badge {
    background: color-mix(in srgb, var(--lane-accent, var(--accent)) 24%, #0f172a);
    color: color-mix(in srgb, var(--lane-accent, var(--accent)) 48%, #ffffff);
    border-color: color-mix(in srgb, var(--lane-accent, var(--accent)) 42%, var(--line));
  }

  :root:not([data-theme="light"]):not([data-theme="dark"]) .story-lane[data-profile="general"] .lane-badge {
    color: #7dd3fc;
    background: color-mix(in srgb, #38bdf8 18%, #0f172a);
    border-color: color-mix(in srgb, #38bdf8 35%, var(--line));
  }

  :root:not([data-theme="light"]):not([data-theme="dark"]) .story-context-icon {
    color: color-mix(in srgb, var(--lane-accent, var(--accent)) 48%, #ffffff);
    background: color-mix(in srgb, var(--lane-accent, var(--accent)) 22%, #0f172a);
  }

  :root:not([data-theme="light"]):not([data-theme="dark"]) .page-article[data-profile="general"] .story-context-icon {
    color: #7dd3fc;
    background: color-mix(in srgb, #38bdf8 18%, #0f172a);
  }
}

.focus-pill[data-concern="general"] {
  background: var(--concern-general-soft);
  color: var(--concern-general);
}

.focus-pill[data-concern="parental"] {
  background: var(--concern-parental-soft);
  color: var(--concern-parental);
}

.focus-pill[data-concern="employee"] {
  background: var(--concern-employee-soft);
  color: var(--concern-employee);
}

.focus-pill[data-concern="student"] {
  background: var(--concern-student-soft);
  color: var(--concern-student);
}

.focus-pill[data-concern="professional"] {
  background: var(--concern-professional-soft);
  color: var(--concern-professional);
}

.focus-pill[data-concern="health"] {
  background: var(--concern-health-soft);
  color: var(--concern-health);
}

.post-card[data-profile="general"] a:hover {
  border-color: color-mix(in srgb, var(--concern-general) 40%, var(--line));
}

.post-card[data-profile="parental"] a:hover {
  border-color: color-mix(in srgb, var(--concern-parental) 40%, var(--line));
}

.post-card[data-profile="employee"] a:hover {
  border-color: color-mix(in srgb, var(--concern-employee) 40%, var(--line));
}

.post-card[data-profile="student"] a:hover {
  border-color: color-mix(in srgb, var(--concern-student) 40%, var(--line));
}

.post-card[data-profile="professional"] a:hover {
  border-color: color-mix(in srgb, var(--concern-professional) 40%, var(--line));
}

.post-card[data-profile="health"] a:hover {
  border-color: color-mix(in srgb, var(--concern-health) 40%, var(--line));
}

.page-article[data-profile] .prose h2::before {
  background: var(--lane-accent, var(--accent));
}

.page-article[data-profile="general"] {
  --lane-accent: var(--concern-general);
}

.page-article[data-profile="parental"] {
  --lane-accent: var(--concern-parental);
}

.page-article[data-profile="employee"] {
  --lane-accent: var(--concern-employee);
}

.page-article[data-profile="student"] {
  --lane-accent: var(--concern-student);
}

.page-article[data-profile="professional"] {
  --lane-accent: var(--concern-professional);
}

.page-article[data-profile="health"] {
  --lane-accent: var(--concern-health);
}

/* TOC */
.toc {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: none;
  border-left: 3px solid var(--lane-accent, var(--accent));
}

.toc-heading {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
  counter-reset: toc;
}

.toc-nav li {
  counter-increment: toc;
}

.toc-nav a {
  display: block;
  padding: 0.35rem 0.4rem 0.35rem 0;
  color: var(--muted-strong);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 0.65rem;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  border-radius: 0 0.35rem 0.35rem 0;
}

.toc-nav a:hover,
.toc-nav a.is-active {
  color: var(--accent-dark);
  border-left-color: var(--accent);
  background: var(--accent-soft);
}

/* Mobile: TOC under header; desktop: sticky rail */
.toc-inline {
  display: block;
  margin: 0.75rem 0 0;
  max-width: var(--max);
}

.toc-rail {
  display: none;
}

@media (min-width: 960px) {
  .toc-inline {
    display: none;
  }

  .toc-rail {
    display: block;
  }
}

@media (max-width: 959px) {
  .toc {
    margin-bottom: 0.25rem;
  }

  .cover--hero {
    aspect-ratio: 16 / 9;
    max-height: 180px;
  }

  .cover--hero.cover--photo {
    max-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .post-card a {
    transition: none;
  }

  .post-card a:hover {
    transform: none;
  }

  .read-progress {
    transition: none;
  }

  .carousel-btn,
  .carousel-dot,
  .carousel-slide-link {
    transition: none;
  }
}

/* —— Utility —— */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Editorial featured carousel —— */
.editorial-carousel {
  margin: 0 0 1.35rem;
  outline: none;
}

.carousel-viewport {
  position: relative;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  touch-action: pan-y;
}

.carousel-track {
  position: relative;
}

.carousel-slide[hidden] {
  display: none;
}

.carousel-slide-link {
  display: grid;
  grid-template-columns: 1fr;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
}

.carousel-slide-link:hover .carousel-title,
.carousel-slide-link:focus-visible .carousel-title {
  color: var(--accent-dark);
}

.carousel-media {
  background: var(--primary-soft);
}

.carousel-media-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  background: color-mix(in srgb, var(--primary) 8%, var(--bg-secondary));
}

.carousel-media-frame .cover,
.carousel-media-frame .cover--hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  border-radius: 0;
}

.carousel-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-copy {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.05rem 1.15rem;
}

.carousel-kicker {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.carousel-category {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--muted-strong);
}

.carousel-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.8vw, 1.55rem);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--primary);
  text-wrap: balance;
  transition: color 0.15s ease;
}

.carousel-summary {
  margin: 0.15rem 0 0;
  color: var(--muted-strong);
  font-size: 0.92rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-meta {
  margin: 0.35rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.15rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.carousel-meta-sep {
  margin: 0 0.2rem;
  color: var(--line);
}

.carousel-cta {
  margin-top: 0.55rem;
  align-self: flex-start;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent-dark);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}

.carousel-controls {
  position: absolute;
  inset: auto 0.65rem 0.65rem auto;
  display: flex;
  gap: 0.35rem;
  z-index: 2;
}

.carousel-btn {
  appearance: none;
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--primary);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.carousel-btn svg {
  width: 1.15rem;
  height: 1.15rem;
}

.carousel-btn:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  color: var(--accent-dark);
  background: var(--surface);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.7rem 0 0;
}

.carousel-dot {
  appearance: none;
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border-radius: 999px;
  border: 0;
  background: color-mix(in srgb, var(--muted) 45%, transparent);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, width 0.15s ease;
}

.carousel-dot.is-active {
  width: 1.15rem;
  background: var(--accent);
}

.carousel-dot:hover {
  background: var(--accent-dark);
}

.lane-count {
  margin: 0;
  grid-column: 2 / -1;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}

.article-dates {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 600;
}

.page-article .prose {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.55;
}

.page-article .prose h2,
.page-article .prose h3,
.page-article .prose .section-head {
  font-family: var(--font-display);
}

.page-article .article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.6vw, 2.05rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.page-article .deck {
  font-size: 1rem;
  line-height: 1.45;
  color: var(--muted-strong);
  max-width: 40rem;
}

@media (min-width: 720px) {
  .carousel-slide-link {
    grid-template-columns: minmax(16rem, 46%) minmax(0, 1fr);
    align-items: stretch;
    min-height: 17.5rem;
  }

  .carousel-media-frame {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
    height: 100%;
  }

  .carousel-media {
    position: relative;
    min-height: 17.5rem;
  }

  .carousel-copy {
    justify-content: center;
    padding: 1.35rem 1.5rem 1.45rem;
  }

  .carousel-summary {
    -webkit-line-clamp: 3;
  }

  .carousel-controls {
    inset: auto 1rem 1rem auto;
  }
}

@media (min-width: 960px) {
  .carousel-slide-link {
    min-height: 19rem;
  }

  .carousel-media {
    min-height: 19rem;
  }

  .carousel-title {
    font-size: 1.7rem;
  }
}

@media (max-width: 719px) {
  .carousel-controls {
    inset: 0.65rem 0.65rem auto auto;
  }

  .carousel-btn {
    width: 2.15rem;
    height: 2.15rem;
    background: color-mix(in srgb, var(--surface) 86%, transparent);
  }
}

