/* Verified Theory Publishing — shared flagship stylesheet.
   Source of truth for all book index.html CSS rules.
   Grid-specific rules (pillar-grid, mechanism-grid) live in the same
   file. Unused rules are harmless; inclusion is driven by HTML classes.
*/

    /* ---- Layout ---- */
    body {
      overflow-y: auto;
      min-height: 100vh;
      line-height: 1.6;
    }

    main {
      max-width: 860px;
      margin: 0 auto;
      padding: 48px 32px 96px;
    }

    /* ---- Skip link (a11y) ---- */
    .skip-link {
      position: absolute;
      top: -100px;
      left: 16px;
      background: var(--bg-card);
      color: var(--text);
      padding: 10px 20px;
      border-radius: var(--radius-md);
      border: 2px solid var(--text-accent);
      text-decoration: none;
      font-weight: 600;
      z-index: 1000;
      transition: top 0.15s;
    }
    .skip-link:focus { top: 16px; outline: none; }

    /* ---- Focus states (a11y) ---- */
    a:focus-visible,
    button:focus-visible {
      outline: 2px solid var(--text-accent);
      outline-offset: 3px;
      border-radius: 3px;
    }

    /* ---- Header ---- */
    .flagship-header {
      text-align: center;
      padding: 80px 32px 48px;
      background: radial-gradient(ellipse at 50% 30%, var(--bg-accent) 0%, var(--bg-dark) 70%);
      border-bottom: 1px solid var(--border);
    }
    .hub-backlink {
      display: inline-flex; align-items: center; gap: 6px;
      font-size: 12px; color: var(--text-muted); text-decoration: none;
      margin-bottom: 20px; opacity: 0.75; transition: opacity 0.15s;
    }
    .hub-backlink:hover { opacity: 1; color: var(--text); }
    .hub-backlink::before { content: "←"; font-size: 13px; }
    .flagship-header .logo {
      display: inline-block;
      margin-bottom: 36px;
      opacity: 0.92;
    }
    .flagship-header .logo img {
      height: 32px;
      width: auto;
      display: block;
    }
    .flagship-header .eyebrow {
      font-size: 12px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.15em;
      color: var(--text-accent);
      margin-bottom: 16px;
    }
    .flagship-header h1 {
      font-size: clamp(32px, 5vw, 52px);
      font-weight: 700;
      color: #fff;
      line-height: 1.15;
      letter-spacing: -1px;
      max-width: 900px;
      margin: 0 auto 20px;
    }
    .flagship-header h1 .accent {
      background: var(--brand-gradient);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }
    .flagship-header .subtitle {
      font-size: clamp(16px, 2vw, 19px);
      color: var(--text-muted);
      max-width: 720px;
      margin: 0 auto 36px;
      line-height: 1.6;
    }
    .flagship-header .verification-stat {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      padding: 14px 24px;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      font-size: 14px;
      color: var(--text);
    }
    .flagship-header .verification-stat strong {
      color: var(--green-accent);
      font-weight: 600;
    }
    .flagship-header .verification-stat .dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--green);
    }

    /* ---- Intro / About the research ---- */
    .intro-block {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 32px;
      margin-bottom: 48px;
      box-shadow: var(--shadow-card);
    }
    .intro-block .eyebrow {
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--text-accent);
      margin-bottom: 12px;
    }
    .intro-block h2 {
      font-size: 22px;
      font-weight: 600;
      color: #fff;
      margin-bottom: 16px;
    }
    .intro-block p {
      font-size: 15px;
      color: var(--text-dim);
      margin-bottom: 12px;
    }
    .intro-block p:last-child { margin-bottom: 0; }

    /* ---- Credibility stat card (Item 5) ---- */
    .credibility-card {
      background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-accent) 100%);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 32px;
      margin-bottom: 48px;
      box-shadow: var(--shadow-elevated);
      position: relative;
      overflow: hidden;
    }
    .credibility-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 2px;
      background: var(--brand-gradient);
    }
    .credibility-card .eyebrow {
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--text-accent);
      margin-bottom: 20px;
    }
    .credibility-card .stats-row {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
      gap: 24px;
      margin-bottom: 20px;
    }
    .credibility-card .stat {
      text-align: left;
    }
    .credibility-card .stat .number {
      font-size: clamp(28px, 4vw, 38px);
      font-weight: 700;
      color: #fff;
      line-height: 1;
      margin-bottom: 6px;
      background: var(--brand-gradient);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }
    .credibility-card .stat .label {
      font-size: 12px;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      font-weight: 500;
    }
    .credibility-card .model-info {
      font-size: 12px;
      color: var(--text-muted);
      padding-top: 16px;
      border-top: 1px solid var(--border-subtle);
      font-family: 'SF Mono', Monaco, monospace;
    }
    .credibility-card .model-info strong { color: var(--text-dim); font-weight: 500; }

    /* ---- Per-pillar verification grid (Item 1) ---- */
    .pillar-grid {
      margin-bottom: 56px;
    }
    .pillar-grid .section-header {
      text-align: center;
      margin-bottom: 32px;
    }
    .pillar-grid .section-header .eyebrow {
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--text-accent);
      margin-bottom: 8px;
    }
    .pillar-grid .section-header h2 {
      font-size: 26px;
      font-weight: 700;
      color: #fff;
    }
    .pillar-grid .pillar-tiles {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 12px;
    }
    .pillar-tile {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 20px;
      text-decoration: none;
      color: inherit;
      transition: border-color 0.15s, transform 0.15s;
      display: block;
    }
    .pillar-tile:hover {
      border-color: var(--text-accent);
      transform: translateY(-2px);
    }
    .pillar-tile .pillar-tile-label {
      font-size: 10px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--text-accent);
      margin-bottom: 6px;
    }
    .pillar-tile h3 {
      font-size: 16px !important;
      font-weight: 600 !important;
      color: #fff;
      margin: 0 0 12px 0 !important;
      line-height: 1.3 !important;
    }
    .pillar-tile .verification-bars {
      display: flex;
      gap: 3px;
      margin-bottom: 10px;
      height: 6px;
      border-radius: 3px;
      overflow: hidden;
      background: var(--bg-weak);
    }
    .pillar-tile .verification-bars .bar-confirmed { background: var(--green); }
    .pillar-tile .verification-bars .bar-partial { background: var(--yellow); }
    .pillar-tile .verification-bars .bar-na { background: var(--text-muted); }
    .pillar-tile .verification-counts {
      display: flex;
      gap: 10px;
      font-size: 11px;
      color: var(--text-muted);
    }
    .pillar-tile .verification-counts .count-confirmed { color: var(--green-accent); }
    .pillar-tile .verification-counts .count-partial { color: var(--yellow); }
    .pillar-tile .verification-counts .count-na { color: var(--text-muted); }
    .pillar-tile .verification-counts .dot {
      display: inline-block;
      width: 6px;
      height: 6px;
      border-radius: 50%;
      margin-right: 4px;
      vertical-align: middle;
    }
    .pillar-tile .verification-counts .dot.dot-confirmed { background: var(--green); }
    .pillar-tile .verification-counts .dot.dot-partial { background: var(--yellow); }
    .pillar-tile .verification-counts .dot.dot-na { background: var(--text-muted); }
    .pillar-tile.pillar-tile-available {
      border-color: rgba(81, 162, 255, 0.3);
    }
    .pillar-tile.pillar-tile-available::after {
      content: 'Published';
      display: inline-block;
      font-size: 9px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--green-accent);
      background: rgba(42, 156, 29, 0.15);
      padding: 2px 8px;
      border-radius: var(--radius-full);
      margin-top: 8px;
    }

    /* ---- Chart containers (Items 2, 3, 4) ---- */
    .data-figure {
      margin: 28px 0;
    }
    .chart-container {
      position: relative;
      height: 320px;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 24px 20px 16px;
      box-shadow: var(--shadow-card);
    }
    @media (max-width: 640px) {
      .chart-container { height: 280px; padding: 20px 12px 12px; }
    }
    /* Canvas fallback — shown only if Chart.js fails to load and the browser renders child text */
    .chart-container canvas .chart-fallback {
      display: block;
      padding: 24px;
      text-align: center;
      color: var(--text-dim);
      font-size: 14px;
      line-height: 1.5;
    }

    /* ---- Table of Contents ---- */
    .toc {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 32px;
      margin-bottom: 56px;
      box-shadow: var(--shadow-card);
    }
    .toc .eyebrow {
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--text-accent);
      margin-bottom: 16px;
    }
    .toc h2 {
      font-size: 22px;
      font-weight: 600;
      color: #fff;
      margin-bottom: 24px;
    }
    .toc ol {
      list-style: none;
      counter-reset: pillar;
    }
    .toc li {
      counter-increment: pillar;
      border-top: 1px solid var(--border-subtle);
      padding: 16px 0;
      display: flex;
      align-items: center;
      gap: 16px;
    }
    .toc li:first-child { border-top: none; padding-top: 0; }
    .toc li::before {
      content: counter(pillar);
      display: flex;
      align-items: center;
      justify-content: center;
      min-width: 32px;
      height: 32px;
      background: var(--bg-weak);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      font-size: 13px;
      font-weight: 600;
      color: var(--text-accent);
    }
    .toc li a {
      color: var(--text);
      text-decoration: none;
      font-size: 15px;
      font-weight: 500;
      flex: 1;
    }
    .toc li a:hover { color: var(--text-accent); }
    .toc li .status {
      font-size: 11px;
      font-weight: 500;
      color: var(--text-muted);
      padding: 4px 10px;
      background: var(--bg-weak);
      border-radius: var(--radius-full);
    }
    .toc li .status.available {
      color: var(--green-accent);
      background: rgba(42, 156, 29, 0.12);
    }

    /* ---- Chapter strip (jump to another chapter of this book) ---- */
    .chapter-strip {
      display: flex;
      flex-wrap: nowrap;
      gap: 6px;
      overflow-x: auto;
      padding: 10px 12px;
      margin: 0 0 10px;
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-md);
      -webkit-overflow-scrolling: touch;
      scrollbar-width: thin;
      scrollbar-color: var(--border-subtle) transparent;
    }
    .chapter-strip::-webkit-scrollbar { height: 4px; }
    .chapter-strip::-webkit-scrollbar-track { background: transparent; }
    .chapter-strip::-webkit-scrollbar-thumb {
      background: var(--border-subtle); border-radius: 2px;
    }
    .chapter-strip a {
      flex: 0 0 auto;
      padding: 5px 11px;
      border-radius: 6px;
      font-size: 12px;
      font-weight: 500;
      color: var(--text-muted);
      text-decoration: none;
      white-space: nowrap;
      border: 1px solid transparent;
      transition: color 0.12s, background 0.12s, border-color 0.12s;
    }
    .chapter-strip a:hover {
      color: var(--text-accent);
      background: var(--bg-weak);
    }
    .chapter-strip a[aria-current="page"] {
      color: var(--text-accent);
      background: rgba(81, 162, 255, 0.1);
      border-color: rgba(81, 162, 255, 0.3);
      font-weight: 600;
      cursor: default;
    }
    .chapter-strip a[aria-current="page"]:hover {
      background: rgba(81, 162, 255, 0.1);
    }
    .chapter-strip a.all-chapters-link {
      margin-left: auto;
      color: var(--text-dim);
      border-color: var(--border-subtle);
    }
    .chapter-strip a.all-chapters-link::before {
      content: "↑ ";
      opacity: 0.7;
    }
    .chapter-strip a.all-chapters-link:hover {
      color: var(--text-accent);
      background: var(--bg-weak);
      border-color: var(--text-accent);
    }

    @media (max-width: 640px) {
      .chapter-strip { padding: 8px 10px; }
      .chapter-strip a { font-size: 11px; padding: 4px 9px; }
    }

    /* ---- In-section TOC (per chapter/pillar) ---- */
    .section-toc {
      background: var(--bg-weak);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-md);
      padding: 18px 22px;
      margin: 0 0 32px;
    }
    .section-toc-label {
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--text-accent);
      margin-bottom: 10px;
    }
    .section-toc ol {
      list-style: none;
      padding: 0;
      margin: 0;
      counter-reset: section-toc-item;
    }
    .section-toc li {
      counter-increment: section-toc-item;
      padding: 4px 0;
      display: flex;
      align-items: baseline;
      gap: 10px;
      border: none;
    }
    .section-toc li::before {
      content: counter(section-toc-item) ".";
      min-width: 20px;
      font-size: 12px;
      font-weight: 600;
      color: var(--text-muted);
      background: none;
      border: none;
      height: auto;
      padding: 0;
    }
    .section-toc li a {
      color: var(--text-dim);
      text-decoration: none;
      font-size: 14px;
      line-height: 1.5;
      flex: 1;
      transition: color 0.12s;
    }
    .section-toc li a:hover,
    .section-toc li a:focus-visible { color: var(--text-accent); }

    @media (max-width: 640px) {
      .section-toc { padding: 14px 16px; }
      .section-toc li a { font-size: 13px; }
    }

    /* ---- Pillar sections ---- */
    .pillar {
      margin-bottom: 64px;
      scroll-margin-top: 32px;
    }
    .pillar-header {
      border-top: 2px solid var(--border);
      padding-top: 32px;
      margin-bottom: 24px;
    }
    .pillar-header .pillar-label {
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.15em;
      color: var(--text-accent);
      margin-bottom: 8px;
    }
    .pillar-header h2 {
      font-size: clamp(26px, 4vw, 34px);
      font-weight: 700;
      color: #fff;
      line-height: 1.2;
      margin-bottom: 12px;
    }
    .pillar-header .pillar-status {
      font-size: 13px;
      color: var(--text-muted);
      font-weight: 500;
    }
    .pillar-header .pillar-status strong { color: var(--text); }

    .pillar h3 {
      font-size: clamp(20px, 2.8vw, 25px);
      font-weight: 600;
      color: #fff;
      line-height: 1.3;
      margin: 40px 0 12px;
    }
    .pillar p {
      font-size: 15px;
      color: var(--text-dim);
      margin-bottom: 16px;
    }
    .pillar ul, .pillar ol {
      margin: 0 0 20px 20px;
      color: var(--text-dim);
      font-size: 15px;
    }
    .pillar ul li, .pillar ol li { margin-bottom: 8px; }
    .pillar ul li strong, .pillar ol li strong { color: var(--text); }

    /* ---- Stub pillar content ---- */
    .pillar.stub .pillar-body {
      background: var(--bg-card);
      border: 1px dashed var(--border);
      border-radius: var(--radius-lg);
      padding: 40px 32px;
      text-align: center;
    }
    .pillar.stub .pillar-body p {
      margin-bottom: 12px;
      color: var(--text-muted);
    }
    .pillar.stub .stub-label {
      display: inline-block;
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--text-accent);
      padding: 4px 12px;
      background: rgba(81, 162, 255, 0.12);
      border: 1px solid rgba(81, 162, 255, 0.25);
      border-radius: var(--radius-full);
      margin-bottom: 16px;
    }

    /* ---- Badges ---- */
    .badge-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin: -4px 0 20px;
    }
    .confidence-badge, .verification-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 12px;
      font-size: 12px;
      font-weight: 500;
      border-radius: var(--radius-full);
      border: 1px solid transparent;
      white-space: nowrap;
    }
    .confidence-badge::before, .verification-badge::before {
      content: '';
      width: 6px;
      height: 6px;
      border-radius: 50%;
    }
    .confidence-badge.confidence-high {
      color: var(--green-accent);
      background: rgba(42, 156, 29, 0.1);
      border-color: rgba(148, 234, 139, 0.25);
    }
    .confidence-badge.confidence-high::before { background: var(--green-accent); }
    .confidence-badge.confidence-med {
      color: var(--yellow);
      background: rgba(255, 210, 104, 0.1);
      border-color: rgba(255, 210, 104, 0.25);
    }
    .confidence-badge.confidence-med::before { background: var(--yellow); }
    .confidence-badge.confidence-low {
      color: var(--orange-accent);
      background: rgba(233, 113, 53, 0.1);
      border-color: rgba(255, 154, 104, 0.25);
    }
    .confidence-badge.confidence-low::before { background: var(--orange-accent); }

    .verification-badge.verification-confirmed {
      color: var(--text-accent);
      background: rgba(81, 162, 255, 0.1);
      border-color: rgba(81, 162, 255, 0.25);
    }
    .verification-badge.verification-confirmed::before { background: var(--text-accent); }
    .verification-badge.verification-partial {
      color: var(--yellow);
      background: rgba(255, 210, 104, 0.08);
      border-color: rgba(255, 210, 104, 0.22);
    }
    .verification-badge.verification-partial::before { background: var(--yellow); }
    .verification-badge.verification-na {
      color: var(--text-muted);
      background: rgba(157, 159, 164, 0.08);
      border-color: rgba(157, 159, 164, 0.2);
    }
    .verification-badge.verification-na::before { background: var(--text-muted); }

    /* ---- Data tables ---- */
    .data-table-wrap {
      margin: 24px 0 28px;
      overflow-x: auto;
      border-radius: var(--radius-lg);
      border: 1px solid var(--border);
    }
    .data-table-caption {
      font-size: 13px;
      color: var(--text-muted);
      font-style: italic;
      margin-bottom: 12px;
    }
    table.data-table {
      width: 100%;
      min-width: 480px;
      border-collapse: collapse;
      font-size: 14px;
    }
    table.data-table thead th {
      background: var(--bg-accent);
      color: var(--text);
      font-weight: 600;
      text-align: left;
      padding: 12px 16px;
      border-bottom: 1px solid var(--border);
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
    table.data-table tbody td {
      padding: 11px 16px;
      border-bottom: 1px solid var(--border-subtle);
      color: var(--text-dim);
    }
    table.data-table tbody tr:last-child td { border-bottom: none; }
    table.data-table code {
      font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
      font-size: 13px;
      color: var(--text);
      background: var(--bg-weak);
      padding: 2px 6px;
      border-radius: 4px;
    }
    .data-table-provenance {
      font-size: 12px;
      color: var(--text-muted);
      font-style: italic;
      margin-top: 10px;
    }
    .measurement-conditions {
      font-size: 12px; color: var(--text-muted); font-style: italic;
      border-left: 2px solid var(--border); padding-left: 10px; margin-bottom: 14px;
    }
    .measurement-tag {
      display: inline-block; font-size: 11px; color: var(--text-muted);
      background: var(--bg-weak); border-radius: 4px;
      padding: 1px 6px; margin-left: 6px; font-style: normal; white-space: nowrap;
    }

    /* ---- Callouts ---- */
    .interpretation-callout {
      background: rgba(81, 162, 255, 0.06);
      border-left: 3px solid var(--text-accent);
      border-radius: var(--radius-md);
      padding: 16px 20px;
      margin: 24px 0;
      font-size: 14px;
      color: var(--text-dim);
    }
    .interpretation-callout .label {
      display: block;
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--text-accent);
      margin-bottom: 6px;
    }

    .rule-of-thumb {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-left: 3px solid var(--green-accent);
      border-radius: var(--radius-md);
      padding: 18px 22px;
      margin: 24px 0;
      font-size: 15px;
      color: var(--text);
    }
    .rule-of-thumb .label {
      display: block;
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--green-accent);
      margin-bottom: 6px;
    }
    .rule-of-thumb strong { color: #fff; }

    .product-cta {
      font-size: 14px;
      color: var(--text-muted);
      font-style: italic;
      padding: 14px 18px;
      border: 1px dashed var(--border);
      border-radius: var(--radius-md);
      margin: 20px 0 0;
    }

    .inline-provenance {
      font-size: 12px;
      color: var(--text-muted);
      font-style: italic;
      margin-top: -12px;
      margin-bottom: 20px;
      display: block;
    }

    /* ---- "What we couldn't verify" section ---- */
    .honest-disclosure {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 32px;
      margin-top: 48px;
      box-shadow: var(--shadow-card);
    }
    .honest-disclosure h3 {
      margin-top: 0 !important;
      font-size: 20px !important;
    }
    .honest-disclosure ul { margin-top: 16px; }

    /* ---- Further reading ---- */
    .further-reading {
      margin-top: 80px;
      padding-top: 56px;
      border-top: 2px solid var(--border);
    }
    .further-reading h2 {
      font-size: clamp(26px, 4vw, 32px);
      font-weight: 700;
      color: #fff;
      margin-bottom: 16px;
    }
    .further-reading > p {
      font-size: 15px;
      color: var(--text-dim);
      margin-bottom: 32px;
    }
    .further-reading h3 {
      font-size: 14px !important;
      font-weight: 600 !important;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--text-accent);
      margin: 32px 0 16px !important;
    }
    .reading-list {
      list-style: none;
      margin: 0;
    }
    .reading-list li {
      padding: 16px 0;
      border-top: 1px solid var(--border-subtle);
      font-size: 14px;
      color: var(--text-dim);
      margin-bottom: 0 !important;
    }
    .reading-list li:first-child { border-top: none; padding-top: 0; }
    .reading-list li strong { color: var(--text); font-weight: 600; }
    .reading-list li em { color: var(--text); font-style: italic; }

    /* ---- Footer ---- */
    footer {
      max-width: 860px;
      margin: 80px auto 0;
      padding: 40px 32px;
      border-top: 1px solid var(--border);
      text-align: center;
      font-size: 13px;
      color: var(--text-muted);
    }
    footer .logo-footer {
      display: inline-block;
      margin-bottom: 16px;
      opacity: 0.7;
    }
    footer .logo-footer img { height: 24px; width: auto; }

    /* Cross-flagship "also in this series" nav */
    .flagship-nav {
      max-width: 860px;
      margin: 0 auto 48px;
      padding: 28px 32px;
      background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-accent) 100%);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-card);
    }
    .flagship-nav .label {
      font-size: 11px; font-weight: 600; text-transform: uppercase;
      letter-spacing: 0.12em; color: var(--text-accent); margin-bottom: 12px;
    }
    .flagship-nav h3 {
      font-size: 18px; font-weight: 600; color: #fff;
      margin: 0 0 8px;
    }
    .flagship-nav p {
      font-size: 14px; color: var(--text-dim);
      margin: 0 0 16px; line-height: 1.65;
    }
    .flagship-nav .nav-links {
      display: flex; flex-wrap: wrap; gap: 12px;
    }
    .flagship-nav a {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 10px 18px;
      background: var(--bg-dark); border: 1px solid var(--border);
      border-radius: var(--radius-md);
      color: var(--text); font-size: 14px; font-weight: 500;
      text-decoration: none;
      transition: border-color 0.15s, color 0.15s;
    }
    .flagship-nav a:hover {
      border-color: var(--text-accent);
      color: var(--text-accent);
    }
    .flagship-nav a::after { content: '→'; font-size: 14px; opacity: 0.6; }

    /* ---- Mobile ---- */
    @media (max-width: 640px) {
      .flagship-header { padding: 56px 20px 36px; }
      main { padding: 32px 20px 64px; }
      .intro-block, .toc, .pillar.stub .pillar-body, .honest-disclosure { padding: 24px 20px; }
      .toc li { flex-wrap: wrap; }
      .badge-row { flex-direction: column; align-items: flex-start; }
      table.data-table { font-size: 13px; }
      table.data-table thead th, table.data-table tbody td { padding: 10px 12px; }
    }

/* Mechanism grid */
    .mechanism-grid {
      margin-bottom: 56px;
    }
    .mechanism-grid .section-header {
      text-align: center;
      margin-bottom: 32px;
    }
    .mechanism-grid .section-header .eyebrow {
      font-size: 11px; font-weight: 600; text-transform: uppercase;
      letter-spacing: 0.12em; color: var(--text-accent); margin-bottom: 8px;
    }
    .mechanism-grid .section-header h2 {
      font-size: 26px; font-weight: 700; color: #fff;
    }
    .mechanism-tiles {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 12px;
    }
    .mechanism-tile {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 20px;
      transition: border-color 0.15s, transform 0.15s;
    }
    .mechanism-tile:hover {
      border-color: var(--text-accent);
      transform: translateY(-2px);
    }
    .mechanism-tile .mech-id {
      font-size: 10px; font-weight: 600; text-transform: uppercase;
      letter-spacing: 0.12em; color: var(--text-accent); margin-bottom: 6px;
    }
    .mechanism-tile h3 {
      font-size: 15px !important;
      font-weight: 600 !important;
      color: #fff;
      margin: 0 0 12px 0 !important;
      line-height: 1.3 !important;
    }
    .mechanism-tile .mech-scope {
      font-size: 12px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.5;
    }
