/* ===== V4 PUBLICATION DESIGN ===== */
/* Inspired by Aschenbrenner's Situational Awareness */
<style>
  /* ===== V4 PUBLICATION DESIGN ===== */
  /* Inspired by Aschenbrenner's Situational Awareness — with a darker, more authoritative twist */

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

  html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  body {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 18px;
    line-height: 1.85;
    max-width: 720px;
    margin: 0 auto;
    padding: 80px 24px 60px 24px;
    color: #1a1a1a;
    background-color: #fafaf8;
    text-align: left;
  }

  /* ===== STICKY NAVIGATION ===== */
  .nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 250, 248, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0;
    transition: box-shadow 0.3s ease;
  }
  .nav-bar.scrolled {
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
  }
  .nav-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px 20px;
    gap: 4px 0;
  }
  .nav-bar a {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 12.5px;
    color: #555;
    text-decoration: none;
    padding: 4px 10px;
    letter-spacing: 0.3px;
    transition: color 0.2s ease;
    white-space: nowrap;
  }
  .nav-bar a:hover {
    color: #111;
  }
  .nav-bar a.active {
    color: #111;
    font-weight: 600;
  }
  .nav-separator {
    color: #ccc;
    font-size: 11px;
    padding: 0 2px;
    user-select: none;
  }

  /* ===== PAGE BREAK ===== */
  .page-break {
    page-break-after: always;
    margin-bottom: 100px;
    padding-bottom: 50px;
  }

  /* ===== TITLE PAGE ===== */
  .title-page {
    text-align: center;
    padding-top: 160px;
    padding-bottom: 80px;
    border-bottom: none;
  }
  .title {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 28px;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: #111;
    line-height: 1.2;
  }
  .epigraph {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 17px;
    font-style: italic;
    margin-bottom: 24px;
    color: #444;
    line-height: 1.6;
  }
  .formula-title {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 20px;
    font-weight: bold;
    margin: 36px 0;
    letter-spacing: 3px;
    color: #111;
  }
  .hook {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 16px;
    max-width: 560px;
    margin: 50px auto 0 auto;
    text-align: justify;
    border-top: 1px solid #333;
    padding-top: 30px;
    line-height: 1.9;
    color: #333;
  }
  .author-block {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 15px;
    margin-top: 100px;
    color: #333;
  }
  .author-name {
    font-weight: bold;
    font-size: 17px;
    color: #111;
    letter-spacing: 0.5px;
  }
  .author-org {
    font-size: 15px;
    margin-top: 6px;
    color: #444;
  }
  .author-email {
    font-size: 14px;
    margin-top: 6px;
  }
  .author-email a {
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #ccc;
    transition: border-color 0.2s;
  }
  .author-email a:hover {
    border-color: #111;
  }
  .author-date {
    font-size: 14px;
    margin-top: 8px;
    color: #666;
  }

  /* ===== SOURCES ===== */
  .source-tier {
    margin-bottom: 18px;
  }
  .source-tier-label {
    font-weight: bold;
    color: #111;
  }
  .note-closing {
    margin-top: 24px;
    font-style: normal;
  }
  .appendix-ref {
    margin-top: 14px;
    font-style: italic;
    font-size: 15px;
    color: #555;
  }

  /* ===== HEADINGS ===== */
  .chapter-label {
    text-align: center;
    font-size: 12px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 4px;
    padding-top: 80px;
  }
  h1 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-top: 16px;
    margin-bottom: 8px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #111;
    line-height: 1.3;
  }
  .subtitle {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 16px;
    font-style: italic;
    text-align: center;
    margin-bottom: 44px;
    color: #555;
    line-height: 1.6;
  }
  h2 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 22px;
    font-weight: bold;
    margin-top: 56px;
    margin-bottom: 22px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #333;
    padding-bottom: 8px;
    text-transform: uppercase;
    color: #111;
  }
  h3 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 19px;
    font-weight: bold;
    margin-top: 36px;
    margin-bottom: 14px;
    color: #1a1a1a;
  }

  /* ===== BODY ===== */
  p {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 18px;
    margin-bottom: 18px;
    text-align: justify;
    color: #1a1a1a;
    line-height: 1.85;
  }

  a {
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #ccc;
    transition: border-color 0.2s ease, color 0.2s ease;
  }
  a:hover {
    color: #111;
    border-bottom-color: #111;
  }

  /* ===== MODEL SECTION HEADINGS ===== */
  .model-section h2 {
    font-size: 28px;
    text-align: center;
    border-bottom: none;
    text-transform: none;
    padding-bottom: 0;
    margin-bottom: 36px;
    color: #111;
  }
  .model-section h3 {
    font-size: 20px;
    font-weight: bold;
    margin-top: 42px;
    margin-bottom: 18px;
  }

  /* ===== FORMULA STYLES ===== */
  .formula {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin: 30px 0;
    color: #111;
    letter-spacing: 1px;
  }
  .formula-inline {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin: 30px 0;
    color: #111;
    letter-spacing: 1px;
  }
  .formula-description {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 16px;
    text-align: center;
    margin-bottom: 28px;
    color: #444;
  }

  /* ===== FORMULA BOX ===== */
  .formula-box {
    font-family: Georgia, 'Times New Roman', Times, serif;
    border: 1.5px solid #111;
    padding: 22px 32px;
    margin: 36px auto;
    max-width: 520px;
    background-color: #f5f5f3;
    border-radius: 2px;
  }
  .formula-box p {
    margin-bottom: 8px;
    text-align: left;
  }
  .formula-main {
    font-size: 19px;
    font-weight: bold;
    color: #111;
  }
  .formula-desc {
    font-size: 15px;
    font-style: italic;
    color: #444;
  }

  /* ===== THESIS BOX ===== */
  .thesis-box {
    font-family: Georgia, 'Times New Roman', Times, serif;
    border-left: 4px solid #111;
    border-top: none;
    border-bottom: none;
    border-right: none;
    padding: 24px 32px;
    margin: 38px 0;
    background-color: #f7f7f5;
  }
  .thesis-box-label, .thesis-label {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 12px;
  }
  .thesis-box-text, .thesis-text {
    font-size: 17px;
    line-height: 1.75;
    font-style: italic;
    margin: 0;
    text-align: left;
    color: #222;
  }

  /* ===== CALLOUT BOX ===== */
  .callout {
    font-family: Georgia, 'Times New Roman', Times, serif;
    border-top: 2px solid #111;
    border-bottom: 2px solid #111;
    padding: 24px 36px;
    margin: 44px 0;
    background-color: transparent;
    text-align: center;
  }
  .callout-text {
    font-size: 19px;
    font-weight: bold;
    line-height: 1.55;
    margin: 0;
    letter-spacing: 0.2px;
    color: #111;
  }
  .callout-sub {
    font-size: 14px;
    font-style: italic;
    color: #555;
    margin-top: 10px;
    margin-bottom: 0;
  }

  /* ===== KNOCKOUT LINE ===== */
  .knockout {
    font-size: 18px;
    font-weight: bold;
    display: block;
    margin: 24px 0;
    text-align: left;
    color: #111;
  }

  /* ===== STAT EMPHASIS ===== */
  .stat {
    font-weight: bold;
    color: #111;
  }

  /* ===== ESCALATION ===== */
  .escalation {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 17px;
    margin: 10px 0 10px 44px;
  }

  /* ===== SECTION BREAK (CSS hr) ===== */
  hr.section-break {
    border: none;
    border-top: 1px solid #d0d0d0;
    width: 40%;
    margin: 40px auto;
  }

  /* ===== DECLARATION ===== */
  .declaration {
    font-size: 18px;
    line-height: 1.75;
    margin-bottom: 20px;
    text-align: justify;
  }

  /* ===== CITATION ===== */
  .citation {
    font-size: 14px;
    font-style: italic;
    color: #555;
  }

  /* ===== DIAGRAM CONTAINER ===== */
  .diagram-container {
    margin: 38px 0;
    font-family: Georgia, 'Times New Roman', Times, serif;
  }
  .diagram-label {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 8px;
    text-align: left;
    margin-top: 36px;
  }
  .diagram-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 16px;
    text-align: center;
    color: #111;
  }

  /* ===== TABLES (modern minimal) ===== */
  table {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 15px;
    border-collapse: collapse;
    width: 100%;
    margin: 28px 0;
    line-height: 1.5;
  }
  th {
    background: transparent;
    color: #111;
    font-weight: bold;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 12px 14px;
    text-align: left;
    border-top: 2px solid #111;
    border-bottom: 2px solid #111;
  }
  td {
    padding: 11px 14px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: top;
    line-height: 1.55;
    color: #1a1a1a;
  }
  tr:nth-child(even) td { background: #f7f7f5; }
  tr:nth-child(odd) td { background: transparent; }
  tr:last-child td { border-bottom: 2px solid #111; }

  /* ===== MODEL SECTION TABLE OVERRIDES ===== */
  .model-section table th {
    font-weight: bold;
    text-align: left;
    border-bottom: 2px solid #111;
    border-top: 2px solid #111;
    padding: 10px 14px;
    background: transparent;
    color: #111;
    text-transform: none;
    letter-spacing: 0;
    font-size: 16px;
  }
  .model-section table td {
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 14px;
    vertical-align: top;
    background: transparent;
  }
  .model-section table tr:last-child td {
    border-bottom: 2px solid #111;
  }

  /* ===== TABLE VARIANTS ===== */
  td.step-num { font-weight: bold; text-align: center; width: 40px; }
  td.rule-name { font-weight: bold; }
  tr.step-last td { background: #f5d8d8; font-weight: bold; }
  td.q-label { font-weight: bold; width: 35%; }
  td.domain-name { font-weight: bold; background: #f5f5f3 !important; }
  td.collapse-fast { color: #900; font-weight: bold; }
  td.green-cell { background: #e8f0e8 !important; font-weight: bold; }
  td.red-cell { background: #f5e0e0 !important; }
  td.yellow-cell { background: #f5f5e0 !important; }
  tr.reader-row td { border: 2px dashed #bbb; background: #fdf8e8 !important; color: #777; font-style: italic; }

  /* ===== TABLE NOTES ===== */
  .table-note {
    font-size: 13px;
    font-style: italic;
    color: #777;
    text-align: center;
    margin-top: -22px;
    margin-bottom: 34px;
  }

  /* ===== CH1 SPECTRUM TABLE ===== */
  .spectrum-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 10px;
  }
  .spectrum-table td {
    padding: 12px 12px;
    vertical-align: top;
    border: 1px solid #e0e0e0;
    line-height: 1.45;
  }
  .spectrum-label {
    font-weight: bold;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 4px;
    color: #333;
  }
  .cell-raw { background-color: #e8f0e8; }
  .cell-expanded { background-color: #eef5ee; }
  .cell-aspirational { background-color: #f5f5e0; }
  .cell-exaggeration { background-color: #f5e0e0; }
  .cell-lie { background-color: #e8a0a0; }
  .divider-row td {
    background-color: #111;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    padding: 6px;
    border: none;
  }

  /* ===== CH1 COMPOUNDING CURVES TABLE ===== */
  .compound-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
  }
  .compound-table th {
    background-color: transparent;
    color: #111;
    padding: 10px 14px;
    font-size: 13px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-weight: bold;
    text-align: center;
    border-top: 2px solid #111;
    border-bottom: 2px solid #111;
  }
  .compound-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
    vertical-align: middle;
    line-height: 1.45;
  }
  .equity-cell { background-color: #e8f0e8; font-weight: bold; }
  .debt-cell { background-color: #f5e0e0; font-weight: bold; }
  .time-cell { background-color: #f5f5f3; font-size: 13px; font-style: italic; color: #666; font-weight: normal; }
  .axis-label { font-size: 12px; font-style: italic; color: #666; text-align: right; margin-top: 6px; }

  /* ===== CH1 COLLAPSE TIMELINE TABLE ===== */
  .collapse-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
  }
  .collapse-table th {
    background-color: transparent;
    color: #111;
    padding: 10px 14px;
    font-size: 13px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-weight: bold;
    text-align: left;
    border-top: 2px solid #111;
    border-bottom: 2px solid #111;
  }
  .collapse-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
    line-height: 1.45;
  }
  .collapse-table tr:nth-child(even) td { background-color: #f7f7f5; }
  .collapse-table .ratio-cell { font-weight: bold; color: #900; text-align: right; }
  .collapse-table .company-cell { font-weight: bold; }

  /* ===== CH1 COMPLEXITY TABLE ===== */
  .complexity-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
  }
  .complexity-table th {
    background-color: transparent;
    color: #111;
    padding: 10px 12px;
    font-size: 13px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-weight: bold;
    text-align: center;
    border-top: 2px solid #111;
    border-bottom: 2px solid #111;
  }
  .complexity-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
    vertical-align: middle;
    line-height: 1.45;
  }
  .complexity-table .row-label {
    text-align: left;
    font-weight: bold;
    background-color: #f5f5f3;
    font-size: 14px;
  }
  .cost-low { background-color: #e8f0e8; }
  .cost-medium { background-color: #f5f5e0; }
  .cost-high { background-color: #f5e0e0; }
  .cost-extreme { background-color: #e8a0a0; font-weight: bold; }
  .cost-impossible { background-color: #c00; color: #fff; font-weight: bold; }

  /* ===== CH1 THREE-FIELD SYNTHESIS ===== */
  .synthesis-wrapper {
    display: table;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
  }
  .synthesis-fields { display: table-row; }
  .synthesis-field {
    display: table-cell;
    width: 30%;
    border: 1px solid #333;
    padding: 14px 12px;
    text-align: center;
    vertical-align: middle;
    background-color: #f5f5f3;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.45;
    color: #1a1a1a;
  }
  .synthesis-arrow {
    display: table-cell;
    width: 5%;
    text-align: center;
    vertical-align: middle;
    font-size: 18px;
    font-weight: bold;
    color: #666;
    padding: 0 4px;
  }
  .synthesis-conclusion {
    border: 2px solid #111;
    background-color: #111;
    color: #fff;
    padding: 18px 24px;
    text-align: center;
    margin-top: 14px;
    font-size: 15px;
    font-weight: bold;
    line-height: 1.55;
    letter-spacing: 0.3px;
  }
  .synthesis-conclusion-label {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #aaa;
    display: block;
    margin-bottom: 8px;
    font-weight: normal;
  }
  .synthesis-down-arrow {
    text-align: center;
    font-size: 20px;
    color: #666;
    margin: 8px 0;
    line-height: 1;
  }

  /* ===== CH2 TABLE CLASSES ===== */
  .ch2-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
  }
  .ch2-table th {
    background-color: transparent;
    color: #111;
    padding: 10px 14px;
    font-size: 13px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-weight: bold;
    text-align: center;
    border-top: 2px solid #111;
    border-bottom: 2px solid #111;
  }
  .ch2-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
    vertical-align: middle;
    line-height: 1.45;
  }
  .ch2-table .row-label {
    text-align: left;
    font-weight: bold;
    background-color: #f5f5f3;
    font-size: 14px;
  }
  .cell-green { background-color: #eef5ee; }
  .cell-green-dk { background-color: #e8f0e8; }
  .cell-yellow { background-color: #f5f5e0; }
  .cell-red { background-color: #f5e0e0; }
  .cell-red-dk { background-color: #e8a0a0; }
  .cell-gray { background-color: #f5f5f3; }
  .cell-white { background-color: #fff; }

  /* ===== PLACEHOLDER SECTIONS ===== */
  .placeholder-section {
    border-left: 3px solid #ddd;
    padding-left: 24px;
    margin: 24px 0;
    color: #666;
  }
  .placeholder-section h2 {
    color: #444;
    border-bottom: none;
    text-transform: none;
    font-size: 18px;
  }
  .placeholder-section p {
    color: #666;
    font-style: italic;
    font-size: 15px;
  }

  /* ===== QUICK START BOX ===== */
  .quick-start-box {
    border: 1.5px solid #111;
    background: #f7f7f5;
    padding: 28px 32px;
    margin: 44px 0;
    border-radius: 2px;
  }
  .quick-start-box .qs-header {
    font-size: 17px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 18px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    color: #111;
  }
  .quick-start-box p {
    font-size: 15px;
    margin-bottom: 12px;
    text-align: left;
  }
  .quick-start-box .qs-total {
    font-weight: bold;
    margin-top: 16px;
    border-top: 1px solid #ddd;
    padding-top: 12px;
  }

  /* ===== S-SCORE DIAGNOSTIC ===== */
  .diagnostic-box {
    border: 1.5px solid #111;
    background: #f5f5f3;
    padding: 24px 32px;
    margin: 36px 0;
    border-radius: 2px;
  }
  .diagnostic-box .diag-header {
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    color: #111;
  }
  .diagnostic-box p {
    font-size: 15px;
    margin-bottom: 12px;
    text-align: left;
  }

  /* ===== REFERENCES ===== */
  #references + p,
  #references ~ p {
    font-size: 14px;
  }

  /* ===== RESPONSIVE ===== */
  @media (max-width: 768px) {
    body {
      font-size: 16px;
      padding: 70px 16px 40px 16px;
      max-width: 100%;
    }
    .title {
      font-size: 30px;
      letter-spacing: 3px;
    }
    .title-page {
      padding-top: 100px;
    }
    h1 {
      font-size: 26px;
      letter-spacing: 2px;
    }
    h2 {
      font-size: 19px;
    }
    .chapter-label {
      padding-top: 60px;
    }
    .nav-bar a {
      font-size: 11px;
      padding: 3px 6px;
    }
    .nav-inner {
      padding: 8px 12px;
    }
    .callout {
      padding: 18px 20px;
    }
    .callout-text {
      font-size: 16px;
    }
    .formula-box {
      padding: 18px 20px;
      max-width: 100%;
    }
    .thesis-box {
      padding: 18px 20px;
    }
    table {
      font-size: 13px;
    }
    th, td {
      padding: 8px 8px;
    }
    .quick-start-box,
    .diagnostic-box {
      padding: 18px 18px;
    }
    .hook {
      max-width: 100%;
    }
  }

  @media (max-width: 480px) {
    body {
      font-size: 15px;
      padding: 64px 12px 32px 12px;
    }
    .title {
      font-size: 24px;
      letter-spacing: 2px;
    }
    h1 {
      font-size: 22px;
    }
    .nav-inner {
      justify-content: flex-start;
      overflow-x: auto;
      flex-wrap: nowrap;
      -webkit-overflow-scrolling: touch;
    }
    .nav-bar a {
      font-size: 10.5px;
      padding: 3px 5px;
    }
  }

  /* ===== PRINT ===== */
  @media print {
    .nav-bar { display: none; }
    body { padding-top: 0; }
    .chapter-label { padding-top: 40px; }
  }


/* ===== SITE-SPECIFIC ADDITIONS ===== */

/* Chapter navigation footer */
.chapter-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 80px;
  padding-top: 28px;
  border-top: 1px solid #d0d0d0;
  padding-bottom: 60px;
}
.ch-nav-prev,
.ch-nav-next {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 14px;
  color: #555;
  text-decoration: none;
  border-bottom: none;
  letter-spacing: 0.2px;
  transition: color 0.2s ease;
  padding: 6px 0;
}
.ch-nav-prev:hover,
.ch-nav-next:hover {
  color: #111;
  border-bottom: none;
}
.ch-nav-next {
  margin-left: auto;
}
.ch-nav-prev + .ch-nav-next {
  margin-left: auto;
}

/* TOC link styling */
.toc-link {
  color: #111;
  text-decoration: none;
  border-bottom: none;
}
.toc-link:hover {
  color: #333;
  border-bottom: none;
}
.toc-link b {
  border-bottom: 1px solid #ccc;
  transition: border-color 0.2s;
}
.toc-link:hover b {
  border-bottom-color: #111;
}

/* TOC block container */
.toc-block {
  margin-bottom: 0;
}

/* Main content wrapper */
main {
  min-height: 100vh;
}

@media (max-width: 480px) {
  .chapter-nav {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .ch-nav-next {
    margin-left: 0;
  }
}
