/* ============================================================================
   ATLAS OF THE FOUR QUADRANTS — PRINCE PRINT STYLESHEET
   Split from atlas.css for PDF production tuning only
   Load after atlas.css
   v3.8.0-prince — Prince margin-box running heads
   ============================================================================ */

/* ============================================================================
   15. PRINT / PDF / KDP REFINEMENTS
   ============================================================================ */

@media print {

  /* ------------------------------------------------------------------------
     PAGE MODEL — clean rebuilt foundation
     - one authoritative page stack only
     - fixed-height running-head boxes
     - Prince margin-box running heads restored
     - left pages: static book title in @top-left
     - right pages: dynamic chapter title in @top-right
     - fixed-header hack disabled
     ------------------------------------------------------------------------ */

  @page {
    size: 8.5in 11in;
    margin: 0.791in 0.68in 0.78in 0.68in;
    @top-left { content: none; border: 0; }
    @top-center { content: none; border: 0; }
    @top-right { content: none; border: 0; }
    @bottom-center { content: none; }
    @bottom-left { content: none; }
    @bottom-right { content: none; }
  }

  @page :left {
    margin: 0.791in 0.625in 0.78in 0.68in;
  }

  @page :right {
    margin: 0.791in 0.68in 0.78in 0.625in;
  }

  @page :blank {
    @top-left { content: none; border: 0; }
    @top-center { content: none; border: 0; }
    @top-right { content: none; border: 0; }
    @bottom-center { content: none; }
    @bottom-left { content: none; }
    @bottom-right { content: none; }
  }

  @page body:blank {
    @top-left { content: none; border: 0; }
    @top-center { content: none; border: 0; }
    @top-right { content: none; border: 0; }
    @bottom-center { content: none; }
    @bottom-left { content: none; }
    @bottom-right { content: none; }
  }

  @page appendix-body:blank {
    @top-left { content: none; border: 0; }
    @top-center { content: none; border: 0; }
    @top-right { content: none; border: 0; }
    @bottom-center { content: none; }
    @bottom-left { content: none; }
    @bottom-right { content: none; }
  }

  @page body-part-01:blank {
    @top-left { content: none; border: 0; }
    @top-center { content: none; border: 0; }
    @top-right { content: none; border: 0; }
    @bottom-center { content: none; }
    @bottom-left { content: none; }
    @bottom-right { content: none; }
  }

  @page body-part-02:blank {
    @top-left { content: none; border: 0; }
    @top-center { content: none; border: 0; }
    @top-right { content: none; border: 0; }
    @bottom-center { content: none; }
    @bottom-left { content: none; }
    @bottom-right { content: none; }
  }

  @page body-part-03:blank {
    @top-left { content: none; border: 0; }
    @top-center { content: none; border: 0; }
    @top-right { content: none; border: 0; }
    @bottom-center { content: none; }
    @bottom-left { content: none; }
    @bottom-right { content: none; }
  }

  @page body-part-04:blank {
    @top-left { content: none; border: 0; }
    @top-center { content: none; border: 0; }
    @top-right { content: none; border: 0; }
    @bottom-center { content: none; }
    @bottom-left { content: none; }
    @bottom-right { content: none; }
  }

  @page body-part-05:blank {
    @top-left { content: none; border: 0; }
    @top-center { content: none; border: 0; }
    @top-right { content: none; border: 0; }
    @bottom-center { content: none; }
    @bottom-left { content: none; }
    @bottom-right { content: none; }
  }

  @page nofolio:left {
    size: 8.5in 11in;
    margin: 0.791in 0.625in 0.78in 0.68in;
    @top-left { content: none; border: 0; }
    @top-center { content: none; border: 0; }
    @top-right { content: none; border: 0; }
    @bottom-center { content: none; }
    @bottom-left { content: none; }
    @bottom-right { content: none; }
  }

  @page nofolio:right {
    size: 8.5in 11in;
    margin: 0.791in 0.68in 0.78in 0.625in;
    @top-left { content: none; border: 0; }
    @top-center { content: none; border: 0; }
    @top-right { content: none; border: 0; }
    @bottom-center { content: none; }
    @bottom-left { content: none; }
    @bottom-right { content: none; }
  }

  @page imageplate:left {
    size: 8.5in 11in;
    margin: 0.791in 0.625in 0.78in 0.68in;
    @top-left { content: none; border: 0; }
    @top-center { content: none; border: 0; }
    @top-right { content: none; border: 0; }
    @bottom-center { content: none; }
    @bottom-left { content: none; }
    @bottom-right { content: none; }
  }

  @page imageplate:right {
    size: 8.5in 11in;
    margin: 0.791in 0.68in 0.78in 0.625in;
    @top-left { content: none; border: 0; }
    @top-center { content: none; border: 0; }
    @top-right { content: none; border: 0; }
    @bottom-center { content: none; }
    @bottom-left { content: none; }
    @bottom-right { content: none; }
  }

  @page body:left {
    margin: 0.791in 0.625in 0.78in 0.68in;
    @top-left {
      content: "ATLAS OF THE FOUR QUADRANTS";
      font-family: var(--font-sans);
      font-size: 8pt;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
      line-height: 1;
      height: 0.22in;
      vertical-align: middle;
      padding: 0;
      border-bottom: 0.5px solid var(--rule-light);
    }
    @top-center { content: none; border: 0; }
    @top-right { content: none; border: 0; }
    @bottom-center {
      content: counter(page);
      font-family: var(--font-sans);
      font-size: 9pt;
      font-weight: 600;
      color: var(--ink);
      vertical-align: top;
      padding-top: 0.04in;
    }
  }

  @page body:right {
    margin: 0.791in 0.68in 0.78in 0.625in;
    @top-left { content: none; border: 0; }
    @top-center { content: none; border: 0; }
    @top-right {
      content: string(chapter-title);
      font-family: var(--font-sans);
      font-size: 8pt;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
      line-height: 1;
      height: 0.22in;
      vertical-align: middle;
      padding: 0;
      border-bottom: 0.5px solid var(--rule-light);
    }
    @bottom-center {
      content: counter(page);
      font-family: var(--font-sans);
      font-size: 9pt;
      font-weight: 600;
      color: var(--ink);
      vertical-align: top;
      padding-top: 0.04in;
    }
  }

  @page appendix-body:left {
    margin: 0.791in 0.625in 0.78in 0.68in;
    @top-left {
      content: "ATLAS OF THE FOUR QUADRANTS";
      font-family: var(--font-sans);
      font-size: 8pt;
      font-weight: 700;
      letter-spacing: 0.10em;
      text-transform: uppercase;
      color: #3c3c3c;
      line-height: 1;
      height: 0.22in;
      vertical-align: middle;
      padding: 0;
      border-bottom: 1px solid #9aa3b1;
    }
    @top-center { content: none; border: 0; }
    @top-right { content: none; border: 0; }
    @bottom-center {
      content: counter(page);
      font-family: var(--font-sans);
      font-size: 9pt;
      font-weight: 700;
      color: #333333;
      vertical-align: top;
      padding-top: 0.07in;
      border-top: 0.6px solid #c7cfdb;
    }
  }

  @page appendix-body:right {
    margin: 0.791in 0.68in 0.78in 0.625in;
    @top-left { content: none; border: 0; }
    @top-center { content: none; border: 0; }
    @top-right {
      content: string(chapter-title);
      font-family: var(--font-sans);
      font-size: 8pt;
      font-weight: 700;
      letter-spacing: 0.10em;
      text-transform: uppercase;
      color: #3c3c3c;
      line-height: 1;
      height: 0.22in;
      vertical-align: middle;
      padding: 0;
      border-bottom: 1px solid #9aa3b1;
    }
    @bottom-center {
      content: counter(page);
      font-family: var(--font-sans);
      font-size: 9pt;
      font-weight: 700;
      color: #333333;
      vertical-align: top;
      padding-top: 0.07in;
      border-top: 0.6px solid #c7cfdb;
    }
  }

  @page body-part-01:left {
    margin: 0.791in 0.625in 0.78in 0.68in;
    @top-left {
      content: "ATLAS OF THE FOUR QUADRANTS";
      font-family: var(--font-sans);
      font-size: 8pt;
      font-weight: 700;
      letter-spacing: 0.10em;
      text-transform: uppercase;
      color: #3c3c3c;
      line-height: 1;
      height: 0.22in;
      vertical-align: middle;
      padding: 0;
      border-bottom: 1px solid var(--part1-color);
    }
    @top-center { content: none; border: 0; }
    @top-right { content: none; border: 0; }
    @bottom-center {
      content: counter(page);
      font-family: var(--font-sans);
      font-size: 9pt;
      font-weight: 700;
      color: #333333;
      vertical-align: top;
      padding-top: 0.07in;
      border-top: 0.6px solid #c7cfdb;
    }
  }

  @page body-part-01:right {
    margin: 0.791in 0.68in 0.78in 0.625in;
    @top-left { content: none; border: 0; }
    @top-center { content: none; border: 0; }
    @top-right {
      content: string(chapter-title);
      font-family: var(--font-sans);
      font-size: 8pt;
      font-weight: 700;
      letter-spacing: 0.10em;
      text-transform: uppercase;
      color: #3c3c3c;
      line-height: 1;
      height: 0.22in;
      vertical-align: middle;
      padding: 0;
      border-bottom: 1px solid var(--part1-color);
    }
    @bottom-center {
      content: counter(page);
      font-family: var(--font-sans);
      font-size: 9pt;
      font-weight: 700;
      color: #333333;
      vertical-align: top;
      padding-top: 0.07in;
      border-top: 0.6px solid #c7cfdb;
    }
  }

  @page body-part-02:left {
    margin: 0.791in 0.625in 0.78in 0.68in;
    @top-left {
      content: "ATLAS OF THE FOUR QUADRANTS";
      font-family: var(--font-sans);
      font-size: 8pt;
      font-weight: 700;
      letter-spacing: 0.10em;
      text-transform: uppercase;
      color: #3c3c3c;
      line-height: 1;
      height: 0.22in;
      vertical-align: middle;
      padding: 0;
      border-bottom: 1px solid var(--part2-color);
    }
    @top-center { content: none; border: 0; }
    @top-right { content: none; border: 0; }
    @bottom-center {
      content: counter(page);
      font-family: var(--font-sans);
      font-size: 9pt;
      font-weight: 700;
      color: #333333;
      vertical-align: top;
      padding-top: 0.07in;
      border-top: 0.6px solid #c7cfdb;
    }
  }

  @page body-part-02:right {
    margin: 0.791in 0.68in 0.78in 0.625in;
    @top-left { content: none; border: 0; }
    @top-center { content: none; border: 0; }
    @top-right {
      content: string(chapter-title);
      font-family: var(--font-sans);
      font-size: 8pt;
      font-weight: 700;
      letter-spacing: 0.10em;
      text-transform: uppercase;
      color: #3c3c3c;
      line-height: 1;
      height: 0.22in;
      vertical-align: middle;
      padding: 0;
      border-bottom: 1px solid var(--part2-color);
    }
    @bottom-center {
      content: counter(page);
      font-family: var(--font-sans);
      font-size: 9pt;
      font-weight: 700;
      color: #333333;
      vertical-align: top;
      padding-top: 0.07in;
      border-top: 0.6px solid #c7cfdb;
    }
  }

  @page body-part-03:left {
    margin: 0.791in 0.625in 0.78in 0.68in;
    @top-left {
      content: "ATLAS OF THE FOUR QUADRANTS";
      font-family: var(--font-sans);
      font-size: 8pt;
      font-weight: 700;
      letter-spacing: 0.10em;
      text-transform: uppercase;
      color: #3c3c3c;
      line-height: 1;
      height: 0.22in;
      vertical-align: middle;
      padding: 0;
      border-bottom: 1px solid var(--part3-color);
    }
    @top-center { content: none; border: 0; }
    @top-right { content: none; border: 0; }
    @bottom-center {
      content: counter(page);
      font-family: var(--font-sans);
      font-size: 9pt;
      font-weight: 700;
      color: #333333;
      vertical-align: top;
      padding-top: 0.07in;
      border-top: 0.6px solid #c7cfdb;
    }
  }

  @page body-part-03:right {
    margin: 0.791in 0.68in 0.78in 0.625in;
    @top-left { content: none; border: 0; }
    @top-center { content: none; border: 0; }
    @top-right {
      content: string(chapter-title);
      font-family: var(--font-sans);
      font-size: 8pt;
      font-weight: 700;
      letter-spacing: 0.10em;
      text-transform: uppercase;
      color: #3c3c3c;
      line-height: 1;
      height: 0.22in;
      vertical-align: middle;
      padding: 0;
      border-bottom: 1px solid var(--part3-color);
    }
    @bottom-center {
      content: counter(page);
      font-family: var(--font-sans);
      font-size: 9pt;
      font-weight: 700;
      color: #333333;
      vertical-align: top;
      padding-top: 0.07in;
      border-top: 0.6px solid #c7cfdb;
    }
  }

  @page body-part-04:left {
    margin: 0.791in 0.625in 0.78in 0.68in;
    @top-left {
      content: "ATLAS OF THE FOUR QUADRANTS";
      font-family: var(--font-sans);
      font-size: 8pt;
      font-weight: 700;
      letter-spacing: 0.10em;
      text-transform: uppercase;
      color: #3c3c3c;
      line-height: 1;
      height: 0.22in;
      vertical-align: middle;
      padding: 0;
      border-bottom: 1px solid var(--part4-color);
    }
    @top-center { content: none; border: 0; }
    @top-right { content: none; border: 0; }
    @bottom-center {
      content: counter(page);
      font-family: var(--font-sans);
      font-size: 9pt;
      font-weight: 700;
      color: #333333;
      vertical-align: top;
      padding-top: 0.07in;
      border-top: 0.6px solid #c7cfdb;
    }
  }

  @page body-part-04:right {
    margin: 0.791in 0.68in 0.78in 0.625in;
    @top-left { content: none; border: 0; }
    @top-center { content: none; border: 0; }
    @top-right {
      content: string(chapter-title);
      font-family: var(--font-sans);
      font-size: 8pt;
      font-weight: 700;
      letter-spacing: 0.10em;
      text-transform: uppercase;
      color: #3c3c3c;
      line-height: 1;
      height: 0.22in;
      vertical-align: middle;
      padding: 0;
      border-bottom: 1px solid var(--part4-color);
    }
    @bottom-center {
      content: counter(page);
      font-family: var(--font-sans);
      font-size: 9pt;
      font-weight: 700;
      color: #333333;
      vertical-align: top;
      padding-top: 0.07in;
      border-top: 0.6px solid #c7cfdb;
    }
  }

  @page body-part-05:left {
    margin: 0.791in 0.625in 0.78in 0.68in;
    @top-left {
      content: "ATLAS OF THE FOUR QUADRANTS";
      font-family: var(--font-sans);
      font-size: 8pt;
      font-weight: 700;
      letter-spacing: 0.10em;
      text-transform: uppercase;
      color: #3c3c3c;
      line-height: 1;
      height: 0.22in;
      vertical-align: middle;
      padding: 0;
      border-bottom: 1px solid var(--part5-color);
    }
    @top-center { content: none; border: 0; }
    @top-right { content: none; border: 0; }
    @bottom-center {
      content: counter(page);
      font-family: var(--font-sans);
      font-size: 9pt;
      font-weight: 700;
      color: #333333;
      vertical-align: top;
      padding-top: 0.07in;
      border-top: 0.6px solid #c7cfdb;
    }
  }

  @page body-part-05:right {
    margin: 0.791in 0.68in 0.78in 0.625in;
    @top-left { content: none; border: 0; }
    @top-center { content: none; border: 0; }
    @top-right {
      content: string(chapter-title);
      font-family: var(--font-sans);
      font-size: 8pt;
      font-weight: 700;
      letter-spacing: 0.10em;
      text-transform: uppercase;
      color: #3c3c3c;
      line-height: 1;
      height: 0.22in;
      vertical-align: middle;
      padding: 0;
      border-bottom: 1px solid var(--part5-color);
    }
    @bottom-center {
      content: counter(page);
      font-family: var(--font-sans);
      font-size: 9pt;
      font-weight: 700;
      color: #333333;
      vertical-align: top;
      padding-top: 0.07in;
      border-top: 0.6px solid #c7cfdb;
    }
  }

  @page body:first {
    @top-left { content: none; border: 0; }
    @top-center { content: none; border: 0; }
    @top-right { content: none; border: 0; }
    @bottom-center { content: none; }
  }

  @page appendix-body:first {
    @top-left { content: none; border: 0; }
    @top-center { content: none; border: 0; }
    @top-right { content: none; border: 0; }
    @bottom-center { content: none; }
  }

  @page body-part-01:first {
    @top-left { content: none; border: 0; }
    @top-center { content: none; border: 0; }
    @top-right { content: none; border: 0; }
    @bottom-center { content: none; }
  }

  @page body-part-02:first {
    @top-left { content: none; border: 0; }
    @top-center { content: none; border: 0; }
    @top-right { content: none; border: 0; }
    @bottom-center { content: none; }
  }

  @page body-part-03:first {
    @top-left { content: none; border: 0; }
    @top-center { content: none; border: 0; }
    @top-right { content: none; border: 0; }
    @bottom-center { content: none; }
  }

  @page body-part-04:first {
    @top-left { content: none; border: 0; }
    @top-center { content: none; border: 0; }
    @top-right { content: none; border: 0; }
    @bottom-center { content: none; }
  }

  @page body-part-05:first {
    @top-left { content: none; border: 0; }
    @top-center { content: none; border: 0; }
    @top-right { content: none; border: 0; }
    @bottom-center { content: none; }
  }
  /* ------------------------------------------------------------------------
     WeasyPrint paged-media production spec
     - chapter openers on recto/right-hand pages
     - bottom outer page numbers / folios
     - running heads: current Part on verso, Chapter/Appendix number + title on recto
     - no folios on title page, epigraph, part opener pages, or blanks
     ------------------------------------------------------------------------ */

  

  

    

  

    

  

  

    

    

    

    

    

    

    

    

    

    

    

    

    

  .frontmatter--ceremonial {
    min-height: auto;
    display: block;
  }

  :root {
    --paper: #ffffff;
    --accent: #000000;
    --part1-color: #8c6a2d;
    --part2-color: #314c7e;
    --part3-color: #7d3232;
    --part4-color: #356c69;
    --part5-color: #6a4a7d;
  }

  body {
    background: #ffffff !important;
    color: #111111 !important;
  }

  .book {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }
  .fixed-running-head,
  .fixed-running-head__inner,
  .fixed-running-head__left,
  .fixed-running-head__right {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }


  .part-title {
    string-set: part-title content();
  }

  .part-page .part-title::before,
  .part-page .part-title::after {
    color: var(--part-color, var(--ink)) !important;
  }

  .part-page .part-title::before {
    margin-bottom: 0.10in;
  }

  .part-page .part-title::after {
    font-size: 30pt !important;
    line-height: 1.04 !important;
    letter-spacing: 0.035em !important;
  }

  .chapter-number {
    string-set: chapter-number content();
  }

  .chapter-title {
    string-set: chapter-title content();
  }

  .appendix > h1 {
    string-set: part-title "Appendix", chapter-number "Appendix", chapter-title content();
  }

  .frontmatter,
  .toc-matter,
  #title-page,
  #copyright,
  #dedication,
  #epigraph,
  .part-page,
  .map-page {
    page: nofolio;
  }

  .chapter[data-part="01"] {
    page: body-part-01;
  }

  .chapter[data-part="02"] {
    page: body-part-02;
  }

  .chapter[data-part="03"] {
    page: body-part-03;
  }

  .chapter[data-part="04"] {
    page: body-part-04;
  }

  .chapter[data-part="05"] {
    page: body-part-05;
  }

  .appendix {
    page: appendix-body;
  }

  .chapter {
    break-before: page;
    page-break-before: always;
  }

  .part-page + .chapter {
    break-before: right;
    page-break-before: right;
  }

  .part-page {
    min-height: calc(100vh - 1.65in);
    page-break-after: always;
  }

  .part-title,
  .part-deck,
  .toc-title,
  .chapter-number,
  .chapter-title,
  .chapter-title-divider,
  .frontmatter-essay > h1,
  .frontmatter-essay > h2,
  .frontmatter-essay > h3,
  .section-title,
  .subsection-title,
  .chapter-body > h2,
  .section-body > h2,
  .subsection-body > h2,
  .chapter-body > h3,
  .section-body > h3,
  .subsection-body > h3,
  h4 {
    break-after: avoid;
    page-break-after: avoid;
  }

  p {
    orphans: 2;
    widows: 2;
  }

  img,
  figure,
  table,
  blockquote,
  .appendix,
  .appendix-entry {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .toc-entry {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .toc-part {
    break-inside: auto;
    page-break-inside: auto;
    page-break-after: avoid;
  }

  .toc-header,
  .toc-part-link {
    break-after: avoid;
    page-break-after: avoid;
  }

  .toc-matter {
    string-set: part-title "Contents", chapter-number "Contents", chapter-title "Table of Contents";
  }

  .toc-link,
  .toc-part-link {
    color: inherit !important;
    text-decoration: none !important;
  }

  /* Long-table pagination hardening for print */
  .chapter .section-body > table,
  .chapter .subsection-body > table,
  .appendix table,
  .frontmatter--reference table {
    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  .chapter .section-body > table thead,
  .chapter .subsection-body > table thead,
  .appendix table thead,
  .frontmatter--reference table thead {
    display: table-header-group;
  }

  .chapter .section-body > table tfoot,
  .chapter .subsection-body > table tfoot,
  .appendix table tfoot,
  .frontmatter--reference table tfoot {
    display: table-footer-group;
  }

  .chapter .section-body > table tr,
  .chapter .subsection-body > table tr,
  .appendix table tr,
  .frontmatter--reference table tr {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .appendix > h1 + table,
  .appendix > h2 + table,
  .appendix > h3 + table,
  .appendix p + table,
  .chapter .section-body > p + table,
  .chapter .subsection-body > p + table {
    break-before: avoid;
    page-break-before: avoid;
  }
}

  /* Map frontispiece refinement */
  .map-page {
    min-height: calc(100vh - 1.65in);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    break-before: page;
    page-break-before: always;
    break-after: page;
    page-break-after: always;
  }

  .map-page .plate-frame {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .map-page img {
    display: block;
    width: 7.6in;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }

  .map-page--left .plate-frame {
    padding-right: 0.08in;
  }

  .map-page--right .plate-frame {
    padding-left: 0.08in;
  }
/* ============================================================================
   16. KDP PREFLIGHT CONSOLIDATION + TITLE-PAGE REDESIGN
   Assumption: 8.5" × 11" non-bleed interior.
   Goals:
   - lock trim and margin model for KDP
   - keep front matter / TOC / plates folio-free
   - improve TOC flow
   - constrain full-page maps to the live area for non-bleed output
   ============================================================================ */

  :root {
    --kdp-trim-width: 8.5in;
    --kdp-trim-height: 11in;
    --kdp-top-margin: 0.68in;
    --kdp-bottom-margin: 0.78in;
    --kdp-outside-margin: 0.68in;
    --kdp-gutter: 0.625in;
    --kdp-live-width: 7.14in;
    --kdp-live-height: 9.54in;
  }

  

  

  

  

  

  /* Title page: ceremonial composition, no folio */
  #title-page {
    page: nofolio;
    min-height: 9.35in;
  }

  #title-page .frontmatter-essay.title-page {
    max-width: 5.95in !important;
    transform: translateY(-0.48in) !important;
  }

  #title-page .frontmatter-essay.title-page > p:last-of-type {
    display: inline-block !important;
    width: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    text-indent: 0 !important;
  }

  #title-page hr {
    border-top: 0.85px solid #95a4b8;
  }

  #closing-epigraph,
  #dedication {
    page: nofolio;
    min-height: 9.35in;
  }

  #closing-epigraph {
    break-before: page;
    page-break-before: always;
  }

  #epigraph .frontmatter-essay,
  #closing-epigraph .frontmatter-essay {
    max-width: 4.6in !important;
    margin: 0 auto !important;
    text-align: center !important;
  }

  #epigraph .frontmatter-essay > h1,
  #closing-epigraph .frontmatter-essay > h1 {
    margin: 0 0 0.18in 0 !important;
    padding: 0 !important;
    border: 0 !important;
    font-family: var(--font-display) !important;
    font-size: 17.8pt !important;
    line-height: 1.08 !important;
    font-weight: 500 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    color: var(--ink) !important;
    text-align: center !important;
  }

  #epigraph .frontmatter-essay > h1::after,
  #closing-epigraph .frontmatter-essay > h1::after {
    content: none !important;
  }

  #epigraph .frontmatter-essay > p:first-of-type,
  #closing-epigraph .frontmatter-essay > p:first-of-type {
    max-width: 4.2in !important;
    margin: 0 auto 0.20in !important;
    text-align: center !important;
    text-indent: 0 !important;
    line-height: 1.42 !important;
  }

  #closing-epigraph .frontmatter-essay p,
  #closing-epigraph .frontmatter-essay li,
  #closing-epigraph .frontmatter-essay blockquote p,
  #epigraph .frontmatter-essay p,
  #epigraph .frontmatter-essay li,
  #epigraph .frontmatter-essay blockquote p {
    text-align: center !important;
    text-indent: 0 !important;
  }

  #epigraph .frontmatter-essay blockquote,
  #closing-epigraph .frontmatter-essay blockquote {
    max-width: 3.55in !important;
    margin: 0 auto !important;
    border: 0;
    padding: 0;
  }

  #dedication .frontmatter-essay {
    max-width: 4.9in !important;
    margin: 0 auto !important;
    text-align: center !important;
  }

  #dedication .frontmatter-essay > h1 {
    display: block !important;
    margin: 0 0 0.30in 0 !important;
    padding: 0 !important;
    border: 0 !important;
    font-family: var(--font-sans) !important;
    font-size: 9.4pt !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    color: var(--muted) !important;
    text-align: center !important;
  }

  #dedication .frontmatter-essay > h1::after {
    content: none !important;
  }

  #dedication .frontmatter-essay p,
  #dedication .frontmatter-essay li {
    text-align: left !important;
    text-indent: 0 !important;
    font-family: var(--font-serif) !important;
    font-size: 10.25pt !important;
    line-height: 1.52 !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: var(--ink) !important;
    max-width: 4.7in !important;
    margin: 0 auto 0.16in !important;
  }

  #dedication .frontmatter-essay p:first-of-type {
    margin-bottom: 0.20in !important;
  }

  #dedication .frontmatter-essay ul,
  #dedication .frontmatter-essay ol {
    list-style: none !important;
    margin: 0.22in 0 0 !important;
    padding: 0 !important;
  }

  #dedication .frontmatter-essay li,
  #dedication .frontmatter-essay > p:last-of-type {
    margin-top: 0.22in !important;
    margin-bottom: 0 !important;
    font-size: 10.1pt !important;
    line-height: 1.35 !important;
    font-style: italic !important;
    text-align: center !important;
  }

  #dedication .frontmatter-essay li {
    list-style: none !important;
  }

  /* Front matter, TOC, part openers, image plates: suppress folios */
  .frontmatter,
  .toc-matter,
  #title-page,
  #copyright,
  #dedication,
  #epigraph,
  #closing-epigraph,
  .part-page,
  .map-page {
    page: nofolio;
  }

  /* TOC: prevent a stranded title page while allowing natural multi-page flow */
  .toc-matter {
    string-set: part-title "Contents", chapter-number "Contents", chapter-title "Table of Contents";
    padding-top: 0.46in !important;
    padding-bottom: 0.52in !important;
  }

  .toc-header {
    margin-bottom: 0.24in !important;
    break-after: avoid;
    page-break-after: avoid;
  }

  .toc-body,
  .toc-list,
  .toc-part {
    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  .toc-list--parts > .toc-part {
    margin-top: 0.14in !important;
    padding-top: 0.10in !important;
  }

  .toc-part-link,
  .toc-link,
  .toc-entry {
    color: inherit !important;
    text-decoration: none !important;
  }

  .toc-entry {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  /* Edition Notes print-table refinement */
  #edition-notes table {
    width: 100% !important;
    table-layout: fixed;
    border-collapse: collapse;
  }

  #edition-notes th,
  #edition-notes td {
    text-align: left;
    vertical-align: top;
  }

  #edition-notes table th:first-child,
  #edition-notes table td:first-child {
    width: 0.44in !important;
    padding-right: 0.10in !important;
  }

  #edition-notes table:last-of-type th:first-child,
  #edition-notes table:last-of-type td:first-child {
    width: 2.05in !important;
    padding-right: 0.14in !important;
  }

  #edition-notes table:last-of-type th:last-child,
  #edition-notes table:last-of-type td:last-child {
    width: auto !important;
  }

  /* Running text stability */
  p {
    orphans: 3;
    widows: 3;
  }

  blockquote,
  figure,
  figcaption,
  table,
  .chapter-header,
  .section-title,
  .subsection-title {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  /* Non-bleed image/map plates: stay safely inside the live area */
  .map-page {
    page: imageplate;
    min-height: 9.35in;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    break-before: page;
    page-break-before: always;
    break-after: page;
    page-break-after: always;
  }

  .map-page .plate-frame {
    width: 100%;
    max-width: var(--kdp-live-width);
    min-height: 9.35in;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .map-page img {
    display: block;
    width: auto;
    max-width: 7.10in;
    max-height: 9.42in;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
  }

  .map-page--left .plate-frame {
    padding-right: 0.02in;
  }

  .map-page--right .plate-frame {
    padding-left: 0.02in;
  }

  /* Hybrid recto policy stays in force: only first chapter after a part starts recto */
  .chapter {
    break-before: page;
    page-break-before: always;
  }

  .part-page + .chapter {
    break-before: right;
    page-break-before: right;
  }

  /* === FINAL LOCK PASS: MUST-CHANGE IMPLEMENTATION ================================= */
  /* Header-bar policy and special pages */
  .frontmatter,
  .toc-matter,
  #title-page,
  #copyright,
  #dedication,
  #epigraph,
  #closing-epigraph,
  .part-page,
  .map-page {
    page: nofolio !important;
  }

  /* TOC lock */
  .toc-matter {
    break-before: right !important;
    page-break-before: right !important;
    padding-top: 0.40in !important;
    padding-bottom: 0.48in !important;
  }

  .toc.toc--hero {
    padding-top: 0.08in !important;
  }

  .toc-header {
    margin-bottom: 0.20in !important;
    break-after: avoid !important;
    page-break-after: avoid !important;
  }

  .toc-header::after {
    width: 1.55in !important;
    margin-top: 0.13in !important;
  }

  .toc-body,
  .toc-list,
  .toc-part {
    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  .toc-list--parts > .toc-part {
    margin-top: 0.11in !important;
    padding-top: 0.09in !important;
    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  .toc-list--chapters,
  .toc-list--appendix {
    margin-top: 0.07in !important;
  }

  .toc-part-link,
  .toc-part-title {
    break-after: avoid !important;
    page-break-after: avoid !important;
  }

  .toc-entry {
    grid-template-columns: 0.54in minmax(0, 1fr) !important;
    gap: 0.08in !important;
    padding: 0.03in 0 0.035in !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .toc-entry--chapter .toc-title-text,
  .toc-entry--appendix .toc-title-text {
    max-width: none !important;
  }

  .toc-part--appendix {
    margin-top: 0.20in !important;
    padding-top: 0.10in !important;
  }

  .toc-link::after,
  .toc-part-link::after {
    content: none !important;
  }

  /* Page-break rhythm */
  p,
  li,
  blockquote p {
    orphans: 4 !important;
    widows: 4 !important;
  }

  .chapter-header,
  .section-title,
  .subsection-title,
  .frontmatter-essay > h1,
  .frontmatter-essay > h2,
  .frontmatter-essay > h3,
  .toc-header,
  .toc-part-title,
  figure,
  figcaption,
  table,
  blockquote {
    break-after: avoid !important;
    page-break-after: avoid !important;
  }

  .chapter-body,
  .section-body,
  .subsection-body,
  .chapter-section,
  .chapter-subsection,
  .frontmatter-essay,
  .appendix,
  .part-page-body {
    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  /* Dedication / epigraph family */
  #epigraph .frontmatter-essay,
  #closing-epigraph .frontmatter-essay {
    max-width: 4.5in !important;
  }

  #dedication .frontmatter-essay {
    max-width: 4.8in !important;
  }

  #dedication .frontmatter-essay > h1,
  #epigraph .frontmatter-essay > h1,
  #closing-epigraph .frontmatter-essay > h1 {
    letter-spacing: 0.16em !important;
  }

  /* Chapter opener rhythm */
  .chapter-header {
    margin-bottom: 0.20in !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .chapter-number {
    margin-bottom: 0.06in !important;
  }

  .chapter-title-divider {
    margin-bottom: 0.14in !important;
  }

  .section-title {
    margin-top: 0.28in !important;
    margin-bottom: 0.09in !important;
  }

  .subsection-title {
    margin-top: 0.19in !important;
    margin-bottom: 0.07in !important;
  }

  .chapter-body > p:first-of-type,
  .section-body > p:first-of-type,
  .subsection-body > p:first-of-type {
    text-indent: 0 !important;
  }

  /* Edition Notes lock */
  #edition-notes .frontmatter-essay {
    max-width: 5.65in !important;
  }

  #edition-notes table {
    margin: 0.07in 0 0.15in !important;
  }

  #edition-notes th {
    padding-bottom: 0.045in !important;
  }

  #edition-notes td {
    padding-top: 0.022in !important;
    padding-bottom: 0.03in !important;
  }

  #edition-notes table th:first-child,
  #edition-notes table td:first-child {
    width: 0.42in !important;
  }

  #edition-notes table:last-of-type th:first-child,
  #edition-notes table:last-of-type td:first-child {
    width: 2.10in !important;
  }

  /* Map / plate fit */
  .map-page {
    min-height: 9.35in !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .map-page .plate-frame {
    width: 100% !important;
    max-width: var(--kdp-live-width) !important;
    min-height: 9.35in !important;
    margin: 0 auto !important;
  }

  .map-page img {
    max-width: 7.08in !important;
    max-height: 9.38in !important;
    margin: 0 auto !important;
  }

  .map-page--left .plate-frame {
    padding-right: 0.015in !important;
  }

  .map-page--right .plate-frame {
    padding-left: 0.015in !important;
  }

  /* === PRE-INDEX CLEANUP PASS ======================================================= */
  /* Stronger anti-runt pressure without destabilizing chapter flow */
  p,
  li,
  blockquote p {
    orphans: 5 !important;
    widows: 5 !important;
  }

  .chapter-header,
  .section-title,
  .subsection-title,
  .frontmatter-essay > h1,
  .frontmatter-essay > h2,
  .frontmatter-essay > h3,
  .toc-header,
  .toc-part-title,
  blockquote,
  figure,
  figcaption,
  table {
    break-after: avoid-page !important;
    page-break-after: avoid !important;
  }

  /* Blockquote polish */
  blockquote {
    max-width: 4.45in !important;
    margin: 0.22in auto 0.24in !important;
    line-height: 1.46 !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  blockquote p {
    margin: 0 0 0.10em 0 !important;
  }

  blockquote p:last-child {
    margin-bottom: 0 !important;
  }

  p + blockquote,
  ul + blockquote,
  ol + blockquote {
    margin-top: 0.20in !important;
  }

  blockquote + p,
  blockquote + ul,
  blockquote + ol {
    margin-top: 0.18in !important;
  }

  .chapter-body p,
  .section-body p,
  .subsection-body p,
  .frontmatter-essay p,
  .appendix p {
    margin-bottom: 0.50em !important;
  }

  .chapter-section + .chapter-section {
    margin-top: 0.28in !important;
  }

  .chapter-subsection + .chapter-subsection {
    margin-top: 0.16in !important;
  }

  /* Major section divider pages: selective recto policy only for major openers */
  .toc-matter,
  #dedication,
  #epigraph,
  #closing-epigraph,
  #preface,
  #introduction,
  #opening-lens,
  .part-page,
  .appendix,
  #bibliography,
  #references,
  #index {
    break-before: right !important;
    page-break-before: right !important;
  }

  /* Functional front matter should flow without forced blank versos */
  #edition-notes,
  #acknowledgements,
  #how-to-read,
  #scope-of-the-atlas,
  #canon-and-interpretation,
  #atlas-vocabulary,
  #timeline-of-star-trek,
  #author-bio {
    break-before: auto !important;
    page-break-before: auto !important;
  }

  /* TOC grouping fix: avoid orphaning a final single chapter entry before the next part */
  .toc-list--chapters .toc-entry:nth-last-child(2),
  .toc-list--appendix .toc-entry:nth-last-child(2) {
    break-after: avoid-page !important;
    page-break-after: avoid !important;
  }

  .toc-list--chapters .toc-entry:last-child,
  .toc-list--appendix .toc-entry:last-child {
    break-before: avoid-page !important;
    page-break-before: avoid !important;
  }

  .toc-part + .toc-part {
    break-before: auto !important;
    page-break-before: auto !important;
  }

  /* === DIVIDER PDF VISIBILITY FIX =================================================== */
  .chapter-title-divider {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.14in !important;
    width: 100% !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .chapter-title-divider::before,
  .chapter-title-divider::after {
    content: "" !important;
    display: block !important;
    flex: 0 0 1.05in !important;
    width: 1.05in !important;
    max-width: 1.05in !important;
    min-width: 1.05in !important;
    height: 0 !important;
    border-top: 1px solid var(--rule-strong) !important;
  }

  .chapter-title-divider-symbol {
    display: inline-block !important;
    flex: 0 0 auto !important;
    line-height: 1 !important;
    color: var(--muted) !important;
  }

  /* === HEADER BREATHING ROOM + DIVIDER PRINT FALLBACK ============================= */
  /* Add ~8pt more breathing room below running headers on body-bearing pages */
  

  

  

  

  

  

  /* Reliable print divider fallback: avoid WeasyPrint background-position calc bug */
  .chapter-title-divider {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    width: 100% !important;
    background-image: linear-gradient(
      to right,
      transparent 0%,
      transparent 31%,
      var(--rule-strong) 31%,
      var(--rule-strong) 44%,
      transparent 44%,
      transparent 56%,
      var(--rule-strong) 56%,
      var(--rule-strong) 69%,
      transparent 69%,
      transparent 100%
    );
    background-repeat: no-repeat;
    background-size: 100% 1px;
    background-position: center center;
  }

  .chapter-title-divider::before,
  .chapter-title-divider::after {
    content: none !important;
    display: none !important;
    border: 0 !important;
  }

  .chapter-title-divider-symbol {
    display: inline-block !important;
    padding: 0 0.20in !important;
    background: #fff !important;
    line-height: 1 !important;
    position: relative;
    z-index: 1;
    color: var(--muted) !important;
  }

  /* === FINAL HEADER CORRECTION + TOC CLEANUP PASS ================================== */
  /* Keep the extra body-text breathing room, but anchor running heads back to the rule */
  

  

  

  

  

  

  /* Full TOC cleanup: denser spacing, better keep-with-next behavior, no orphaned finals */
  .toc-matter {
    padding-top: 0.56in !important;
    padding-bottom: 0.62in !important;
    break-before: right !important;
    page-break-before: right !important;
  }

  .toc.toc--hero {
    padding-top: 0.08in !important;
  }

  .toc-header {
    margin-bottom: 0.24in !important;
    break-after: avoid !important;
    page-break-after: avoid !important;
  }

  .toc-header::after {
    width: 1.55in !important;
    margin-top: 0.13in !important;
  }

  .toc-body,
  .toc-list,
  .toc-part {
    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  .toc-list--parts > .toc-part {
    margin: 0.12in 0 0 !important;
    padding: 0.10in 0 0 !important;
    border-top: 1px solid var(--rule-light) !important;
    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  .toc-list--parts > .toc-part:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: 0 !important;
  }

  .toc-part-link,
  .toc-part-title,
  .toc-part > .toc-list--chapters,
  .toc-part > .toc-list--appendix {
    break-after: avoid !important;
    page-break-after: avoid !important;
    break-before: avoid-page !important;
    page-break-before: avoid !important;
  }

  .toc-list--chapters,
  .toc-list--appendix {
    margin-top: 0.07in !important;
  }

  .toc-entry {
    grid-template-columns: 0.56in minmax(0, 1fr) !important;
    gap: 0.09in !important;
    padding: 0.032in 0 0.038in !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .toc-list--chapters .toc-entry + .toc-entry,
  .toc-list--appendix .toc-entry + .toc-entry {
    margin-top: 0 !important;
  }

  .toc-entry--chapter .toc-title-text,
  .toc-entry--appendix .toc-title-text {
    max-width: none !important;
  }

  .toc-list--chapters .toc-entry:first-child,
  .toc-list--appendix .toc-entry:first-child,
  .toc-list--chapters .toc-entry:nth-last-child(2),
  .toc-list--appendix .toc-entry:nth-last-child(2) {
    break-after: avoid-page !important;
    page-break-after: avoid !important;
  }

  .toc-list--chapters .toc-entry:last-child,
  .toc-list--appendix .toc-entry:last-child {
    break-before: avoid-page !important;
    page-break-before: avoid !important;
  }

  .toc-part + .toc-part {
    break-before: auto !important;
    page-break-before: auto !important;
  }

  .toc-link::after,
  .toc-part-link::after {
    content: none !important;
  }

  /* Final chapter divider stability fix */
  .chapter-number {
    margin-bottom: 0.10in !important;
  }

  .chapter-title-divider {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.14in !important;
    width: 100% !important;
    min-height: 0.16in !important;
    margin: 0.02in 0 0.18in !important;
    padding: 0 !important;
    text-align: center !important;
    line-height: 1 !important;
    border: 0 !important;
    background: none !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .chapter-title-divider::before,
  .chapter-title-divider::after {
    content: "" !important;
    display: block !important;
    flex: 1 1 0 !important;
    height: 0 !important;
    border-top: 1px solid var(--rule-strong) !important;
  }

  .chapter-title-divider-symbol {
    display: inline-block !important;
    flex: 0 0 auto !important;
    padding: 0 !important;
    background: transparent !important;
    line-height: 1 !important;
    color: var(--muted) !important;
  }

  /* Table body normalization: only header cells should be bold. */
  .chapter .section-body > table tbody td:first-child,
  .chapter .subsection-body > table tbody td:first-child,
  .appendix table tbody td:first-child {
    font-weight: 400 !important;
    color: var(--ink) !important;
  }
  /* ========================================================================
     TOC / INDEX PRINCE PATCH — FINAL WITH REAL SUBTITLE COPY
     ======================================================================== */

  .toc-matter,
  .toc,
  .toc-body {
    background: transparent !important;
  }

  .toc-part--index {
    margin-top: 0.18in !important;
    padding-top: 0.10in !important;
    border-top: 1px solid var(--rule-light) !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .toc-part--index .toc-part-link {
    display: block !important;
    padding-left: 0 !important;
    text-decoration: none !important;
    color: inherit !important;
  }

  .toc-part--index .toc-part-title {
    display: block !important;
    font-size: 0.98em !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
    line-height: 1.15 !important;
    margin: 0 !important;
  }

  .toc-part--index .toc-part-subtitle {
    display: block !important;
    margin-top: 0.045in !important;
    max-width: 5.1in;
    font-size: 0.66em !important;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: 0.02em !important;
    color: var(--muted) !important;
    line-height: 1.3 !important;
  }

  .index {
    page-break-before: always;
    break-before: page;
    background: transparent;
    color: #111;
    margin: 0;
    padding: 0;
  }

  .index-header {
    margin: 0 0 0.22in 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .index-title {
    margin: 0 0 0.12in 0;
    font-size: 1.45rem;
    line-height: 1.1;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    color: #111;
  }

  .index-deck {
    max-width: 5.05in;
    margin: 0 0 0.18in 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--muted);
  }

  .index-body {
    margin: 0;
    padding: 0;
  }

  .index-group {
    margin: 0 0 0.12in 0;
    padding: 0;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .index-letter {
    margin: 0.08in 0 0.03in 0;
    padding: 0;
    font-size: 1rem;
    line-height: 1.1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #111;
  }

  .index-entry {
    margin: 0 0 0.02in 0;
    padding: 0 0 0 0.16in;
    text-indent: -0.16in;
    font-size: 0.95rem;
    line-height: 1.3;
    color: #111;
  }

  .index-term {
    font-weight: 400;
  }

  .index-entry--see .index-term::after {
    content: ". ";
  }

  .index-see,
  .index-see-target {
    font-style: normal;
  }

  .index-pages {
    display: inline;
  }

  .index-pages::before {
    content: ", ";
  }

  .index-loc {
    color: inherit;
    text-decoration: none;
  }

  .index-loc::after {
    content: target-counter(attr(href), page);
  }

  .index-sep {
    white-space: pre;
  }

/* =========================================================
   FINAL TOC INDEX ALIGNMENT PATCH — Prince / PDF
   ========================================================= */
.toc-part--index {
  margin-top: 0.18in !important;
  padding-top: 0.10in !important;
  border-top: 1px solid var(--rule-light) !important;
  break-inside: avoid !important;
  page-break-inside: avoid !important;
}

.toc-part--index .toc-part-link {
  display: block !important;
  padding-left: 0 !important;
  text-decoration: none !important;
  color: inherit !important;
}

.toc-part--index .toc-part-title {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 1em !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
}

.toc-part--index .toc-part-subtitle {
  display: block !important;
  margin-top: 0.055in !important;
  margin-left: 0.56in !important;
  max-width: 5.15in !important;
  font-size: 0.78em !important;
  font-weight: 500 !important;
  line-height: 1.28 !important;
  letter-spacing: 0.025em !important;
  text-transform: uppercase !important;
  color: var(--muted) !important;
}

.toc-part--index .toc-part-subtitle p,
.toc-part--index .toc-part-subtitle span {
  margin: 0 !important;
  padding: 0 !important;
}

/* =========================================================
   FINAL TOC INDEX TYPOGRAPHY + INDENT FIX — Prince / PDF
   Why: match APPENDICES title size exactly and align subtitle
   with appendix title text block (num column + gap = 0.65in).
   ========================================================= */
.toc-part--index .toc-part-title {
  font-family: var(--font-display) !important;
  font-size: 14.5pt !important;
  line-height: 1.12 !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  color: var(--ink) !important;
}

.toc-part--index .toc-part-subtitle {
  margin-left: 0.65in !important;
  max-width: 5.05in !important;
  font-size: 9.5pt !important;
  line-height: 1.22 !important;
  font-weight: 500 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  color: var(--muted) !important;
}

/* =========================================================
   FINAL TOC INDEX SUBTITLE — one-line tag, same style family
   as TOC links; keep index deck as a separate paragraph.
   ========================================================= */
.toc-part--index .toc-part-subtitle {
  display: block !important;
  margin-top: 0.055in !important;
  margin-left: 0.65in !important;
  max-width: none !important;
  white-space: nowrap !important;
  font-family: var(--font-serif) !important;
  font-size: 10.8pt !important;
  line-height: 1.34 !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--muted) !important;
}

.index-deck {
  display: block !important;
  white-space: normal !important;
}

/* =========================================================
   FINAL TOC INDEX TAG — match appendix link styling exactly
   Same family/size/weight as A15; uppercase forced by CSS.
   ========================================================= */
.toc-part--index .toc-part-subtitle {
  display: block !important;
  margin-top: 0.055in !important;
  margin-left: 0.65in !important;
  max-width: none !important;
  white-space: nowrap !important;
  font-family: var(--font-serif) !important;
  font-size: 10.8pt !important;
  line-height: 1.34 !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
  color: var(--ink) !important;
}

/* =========================================================
   INDEX INTRO FILE SUPPORT — Prince / PDF
   Allows .index-deck to contain rendered markdown block(s)
   from Index/00_index_intro.txt instead of a single hardcoded <p>.
   ========================================================= */
.index-deck {
  display: block !important;
  white-space: normal !important;
}

.index-deck > :first-child {
  margin-top: 0 !important;
}

.index-deck > :last-child {
  margin-bottom: 0 !important;
}

.index-deck p {
  margin: 0 0 0.18in 0;
}

/* =========================================================
   INDEX INTRO — match normal chapter paragraph styling
   Remove narrow measure / muted styling so the intro reads
   like regular Atlas body copy.
   ========================================================= */
.index-deck {
  max-width: none !important;
  width: auto !important;
  margin: 0 0 0.22in 0 !important;
  font-family: var(--font-serif) !important;
  font-size: var(--size-body) !important;
  line-height: var(--line-body) !important;
  font-weight: 400 !important;
  color: var(--ink) !important;
}

.index-deck p {
  margin: 0 0 0.50em 0 !important;
  font-family: var(--font-serif) !important;
  font-size: var(--size-body) !important;
  line-height: var(--line-body) !important;
  font-weight: 400 !important;
  color: var(--ink) !important;
}

/* =========================================================
   TITLE PAGE — Volume marker
   Supports ### VOLUME I between subtitle and author.
   ========================================================= */
.title-page h3,
#title-page h3 {
  display: block;
  margin: 0.16in auto 0.20in;
  font-family: var(--font-sans);
  font-size: 9pt;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #617188;
}


/* =========================================================
   TITLE PAGE DIVIDER FIX
   - remove stray h3 rule under VOLUME I
   - explicitly center the subtitle divider
   ========================================================= */
#title-page h2::after,
#title-page .frontmatter-essay.title-page > p:first-of-type::after {
  width: 3.85in !important;
  max-width: 82% !important;
  margin: var(--h2-rule-gap) auto 0 !important;
}

#title-page h3,
.title-page h3 {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0.16in auto 0.20in !important;
  text-align: center !important;
}

#title-page h3::after,
.title-page h3::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
  width: 0 !important;
  margin: 0 !important;
}


/* =========================================================
   INDEX — two-column editorial layout
   ========================================================= */
.index-body {
  column-count: 2;
  column-gap: 0.38in;
  column-fill: balance;
}

.index-group {
  break-inside: auto !important;
  page-break-inside: auto !important;
  margin: 0 0 0.10in 0;
}

.index-letter {
  break-after: avoid !important;
  page-break-after: avoid !important;
  margin: 0.06in 0 0.025in 0;
}

.index-entry {
  break-inside: avoid !important;
  page-break-inside: avoid !important;
}


/* =========================================================
   INDEX PRINT / PRINCE REFINEMENT
   - enforce two columns in Prince
   - keep letter groups intact
   - improve narrow-column wrapping for see references
   ========================================================= */
.index-body {
  display: block !important;
  columns: 2;
  column-count: 2;
  column-gap: 0.34in;
  column-fill: balance;
}

.index-group {
  break-inside: avoid-column !important;
  page-break-inside: avoid !important;
  margin: 0 0 0.09in 0 !important;
}

.index-letter {
  break-after: avoid !important;
  page-break-after: avoid !important;
  margin: 0.05in 0 0.02in 0 !important;
}

.index-entry {
  margin: 0 0 0.018in 0 !important;
  padding: 0 0 0 0.13in !important;
  text-indent: -0.13in !important;
  font-size: 9.35pt !important;
  line-height: 1.22 !important;
}

.index-entry--see .index-term::after {
  content: '' !important;
}

.index-entry--see .index-see {
  display: block !important;
  margin-left: 0.13in !important;
  line-height: 1.18 !important;
}

.index-pages {
  white-space: nowrap !important;
}


/* =========================================================
   INDEX SEE-REFERENCE + PAGE-LOCATOR FIX
   - keep see references inline: "Borg Collective. See Borg"
   - restore explicit comma before page numbers
   ========================================================= */
.index-entry--see .index-term::after {
  content: '. ' !important;
}

.index-entry--see .index-see {
  display: inline !important;
  margin-left: 0 !important;
}

.index-see,
.index-see-target {
  font-style: normal !important;
}

.index-pages::before {
  content: ', ' !important;
}


/* ============================================================================
   CLEANUP PASS — authoritative structural hooks + generated index polish
   ============================================================================ */
@media print {
  .front-matter,
  .main-matter,
  .appendix-matter,
  .back-matter,
  .book-part,
  .printer-guard {
    display: block;
    width: 100%;
  }

  .index-letter {
    display: block !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  .index-entry {
    display: block !important;
  }

  .index-term {
    display: inline !important;
  }

  .index-pages {
    display: inline !important;
    flex: none !important;
    white-space: nowrap !important;
  }

  .index-pages::before {
    content: ', ' !important;
    border: 0 !important;
    margin: 0 !important;
    transform: none !important;
  }

  .index-loc {
    display: inline !important;
    text-decoration: none !important;
  }

  .index-loc::after {
    content: target-counter(attr(href), page) !important;
  }

  .index-sep {
    display: inline !important;
    white-space: pre !important;
  }
}

/* FINAL TABLE BODY OVERRIDE — Prince/PDF output.
   Only header cells should be bold; first-column data cells stay regular. */
.chapter table tbody td:first-child,
.appendix table tbody td:first-child {
  font-weight: 400 !important;
  color: var(--ink) !important;
}

/* GLOBAL CHAPTER TABLE SPACING — Prince/PDF output */
.chapter .section-body > table tbody td,
.chapter .subsection-body > table:not(:first-child) tbody td,
.appendix table tbody td {
  padding: 0.055in 0.07in !important;
}

.chapter .section-body > table thead th:first-child:nth-last-child(4),
.chapter .subsection-body > table:not(:first-child) thead th:first-child:nth-last-child(4),
.chapter .section-body > table tbody td:first-child:nth-last-child(4),
.chapter .subsection-body > table:not(:first-child) tbody td:first-child:nth-last-child(4) {
  width: 8% !important;
  padding-right: 0.12in !important;
}

.chapter .section-body > table thead th:nth-child(2):nth-last-child(3),
.chapter .subsection-body > table:not(:first-child) thead th:nth-child(2):nth-last-child(3),
.chapter .section-body > table tbody td:nth-child(2):nth-last-child(3),
.chapter .subsection-body > table:not(:first-child) tbody td:nth-child(2):nth-last-child(3) {
  width: 16% !important;
  padding-left: 0.03in !important;
  padding-right: 0.10in !important;
}

.chapter .section-body > table thead th:nth-child(3):nth-last-child(2),
.chapter .subsection-body > table:not(:first-child) thead th:nth-child(3):nth-last-child(2),
.chapter .section-body > table tbody td:nth-child(3):nth-last-child(2),
.chapter .subsection-body > table:not(:first-child) tbody td:nth-child(3):nth-last-child(2) {
  width: 22% !important;
  padding-left: 0.03in !important;
  padding-right: 0.10in !important;
}

.chapter .section-body > table thead th:last-child:nth-child(4),
.chapter .subsection-body > table:not(:first-child) thead th:last-child:nth-child(4),
.chapter .section-body > table tbody td:last-child:nth-child(4),
.chapter .subsection-body > table:not(:first-child) tbody td:last-child:nth-child(4) {
  width: 54% !important;
  padding-left: 0.05in !important;
}

/* PART-INTRO TABLE FIXES — Prince/PDF output */
.part-page-body > table {
  width: 100% !important;
  max-width: 26em !important;
  table-layout: fixed !important;
  margin-top: 0.12in !important;
  margin-bottom: 0.26in !important;
  border-top: 1px solid var(--table-rule-strong) !important;
  border-bottom: 1px solid var(--table-rule-strong) !important;
}

.part-page-body > table thead th {
  border-top: 0 !important;
  border-bottom: 1px solid var(--table-rule-strong) !important;
  padding: 0.055in 0.085in !important;
  font-size: 8pt !important;
  letter-spacing: 0.06em !important;
  color: var(--table-header-color) !important;
  background: none !important;
}

.part-page-body > table tbody td {
  padding: 0.075in 0.06in !important;
  border-bottom: 1px solid var(--table-rule-light) !important;
}

.part-page-body > table tbody tr:last-child td {
  border-bottom: 1px solid var(--table-rule-strong) !important;
}

.part-page-body > table tbody td:first-child {
  font-weight: 400 !important;
  color: var(--ink) !important;
}

.part-page-body > table thead th:first-child:nth-last-child(2),
.part-page-body > table tbody td:first-child:nth-last-child(2) {
  width: 32% !important;
  padding-right: 0.18in !important;
}

.part-page-body > table thead th:last-child:nth-child(2),
.part-page-body > table tbody td:last-child:nth-child(2) {
  width: 68% !important;
}
/* GLOBAL ATLAS TABLE SYSTEM — authoritative cross-part override
   Goal: one visual table language across part intros, chapters, and appendices.
   Policy:
   - full text-column width by default
   - fixed column grid for consistent rhythm
   - unified vertical spacing and cell padding
   - strong top/header/bottom rules, light internal row rules
   - no special narrow first-table treatment in subsections or part intros
   - body cells remain regular weight unless explicitly styled elsewhere */

.chapter .section-body > table,
.chapter .subsection-body > table,
.appendix table,
.part-page-body > table,
.frontmatter--reference table {
  width: 100% !important;
  max-width: none !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  margin-top: 0.14in !important;
  margin-bottom: 0.28in !important;
  border-top: 1px solid var(--table-rule-strong) !important;
  border-bottom: 1px solid var(--table-rule-strong) !important;
}

.chapter .section-body > table thead th,
.chapter .subsection-body > table thead th,
.appendix table thead th,
.part-page-body > table thead th,
.frontmatter--reference table thead th {
  border-top: 0 !important;
  border-bottom: 1px solid var(--table-rule-strong) !important;
  padding: 0.058in 0.10in 0.060in !important;
  font-size: 8pt !important;
  letter-spacing: 0.06em !important;
  text-align: left !important;
  vertical-align: bottom !important;
  background: none !important;
}

.chapter .section-body > table tbody td,
.chapter .subsection-body > table tbody td,
.appendix table tbody td,
.part-page-body > table tbody td,
.frontmatter--reference table tbody td {
  padding: 0.072in 0.10in !important;
  border-bottom: 1px solid var(--table-rule-light) !important;
  vertical-align: top !important;
  font-weight: 400 !important;
  color: var(--ink) !important;
}

.chapter .section-body > table tbody tr:last-child td,
.chapter .subsection-body > table tbody tr:last-child td,
.appendix table tbody tr:last-child td,
.part-page-body > table tbody tr:last-child td,
.frontmatter--reference table tbody tr:last-child td {
  border-bottom: 1px solid var(--table-rule-strong) !important;
}

.chapter table tbody td:first-child,
.appendix table tbody td:first-child,
.part-page-body > table tbody td:first-child,
.frontmatter--reference table tbody td:first-child {
  font-weight: 400 !important;
  color: var(--ink) !important;
}

/* Two-column atlas tables */
.chapter .section-body > table thead th:first-child:nth-last-child(2),
.chapter .section-body > table tbody td:first-child:nth-last-child(2),
.chapter .subsection-body > table thead th:first-child:nth-last-child(2),
.chapter .subsection-body > table tbody td:first-child:nth-last-child(2),
.appendix table thead th:first-child:nth-last-child(2),
.appendix table tbody td:first-child:nth-last-child(2),
.part-page-body > table thead th:first-child:nth-last-child(2),
.part-page-body > table tbody td:first-child:nth-last-child(2),
.frontmatter--reference table thead th:first-child:nth-last-child(2),
.frontmatter--reference table tbody td:first-child:nth-last-child(2) {
  width: 32% !important;
  padding-right: 0.14in !important;
}

.chapter .section-body > table thead th:last-child:nth-child(2),
.chapter .section-body > table tbody td:last-child:nth-child(2),
.chapter .subsection-body > table thead th:last-child:nth-child(2),
.chapter .subsection-body > table tbody td:last-child:nth-child(2),
.appendix table thead th:last-child:nth-child(2),
.appendix table tbody td:last-child:nth-child(2),
.part-page-body > table thead th:last-child:nth-child(2),
.part-page-body > table tbody td:last-child:nth-child(2),
.frontmatter--reference table thead th:last-child:nth-child(2),
.frontmatter--reference table tbody td:last-child:nth-child(2) {
  width: 68% !important;
  padding-left: 0.05in !important;
}

/* Three-column atlas tables */
.chapter .section-body > table thead th:first-child:nth-last-child(3),
.chapter .section-body > table tbody td:first-child:nth-last-child(3),
.chapter .subsection-body > table thead th:first-child:nth-last-child(3),
.chapter .subsection-body > table tbody td:first-child:nth-last-child(3),
.appendix table thead th:first-child:nth-last-child(3),
.appendix table tbody td:first-child:nth-last-child(3),
.part-page-body > table thead th:first-child:nth-last-child(3),
.part-page-body > table tbody td:first-child:nth-last-child(3),
.frontmatter--reference table thead th:first-child:nth-last-child(3),
.frontmatter--reference table tbody td:first-child:nth-last-child(3) {
  width: 22% !important;
  padding-right: 0.12in !important;
}

.chapter .section-body > table thead th:nth-child(2):nth-last-child(2),
.chapter .section-body > table tbody td:nth-child(2):nth-last-child(2),
.chapter .subsection-body > table thead th:nth-child(2):nth-last-child(2),
.chapter .subsection-body > table tbody td:nth-child(2):nth-last-child(2),
.appendix table thead th:nth-child(2):nth-last-child(2),
.appendix table tbody td:nth-child(2):nth-last-child(2),
.part-page-body > table thead th:nth-child(2):nth-last-child(2),
.part-page-body > table tbody td:nth-child(2):nth-last-child(2),
.frontmatter--reference table thead th:nth-child(2):nth-last-child(2),
.frontmatter--reference table tbody td:nth-child(2):nth-last-child(2) {
  width: 30% !important;
  padding-left: 0.03in !important;
  padding-right: 0.10in !important;
}

.chapter .section-body > table thead th:last-child:nth-child(3),
.chapter .section-body > table tbody td:last-child:nth-child(3),
.chapter .subsection-body > table thead th:last-child:nth-child(3),
.chapter .subsection-body > table tbody td:last-child:nth-child(3),
.appendix table thead th:last-child:nth-child(3),
.appendix table tbody td:last-child:nth-child(3),
.part-page-body > table thead th:last-child:nth-child(3),
.part-page-body > table tbody td:last-child:nth-child(3),
.frontmatter--reference table thead th:last-child:nth-child(3),
.frontmatter--reference table tbody td:last-child:nth-child(3) {
  width: 48% !important;
  padding-left: 0.05in !important;
}

/* Four-column atlas tables */
.chapter .section-body > table thead th:first-child:nth-last-child(4),
.chapter .section-body > table tbody td:first-child:nth-last-child(4),
.chapter .subsection-body > table thead th:first-child:nth-last-child(4),
.chapter .subsection-body > table tbody td:first-child:nth-last-child(4),
.appendix table thead th:first-child:nth-last-child(4),
.appendix table tbody td:first-child:nth-last-child(4),
.part-page-body > table thead th:first-child:nth-last-child(4),
.part-page-body > table tbody td:first-child:nth-last-child(4),
.frontmatter--reference table thead th:first-child:nth-last-child(4),
.frontmatter--reference table tbody td:first-child:nth-last-child(4) {
  width: 12% !important;
  padding-right: 0.11in !important;
}

.chapter .section-body > table thead th:nth-child(2):nth-last-child(3),
.chapter .section-body > table tbody td:nth-child(2):nth-last-child(3),
.chapter .subsection-body > table thead th:nth-child(2):nth-last-child(3),
.chapter .subsection-body > table tbody td:nth-child(2):nth-last-child(3),
.appendix table thead th:nth-child(2):nth-last-child(3),
.appendix table tbody td:nth-child(2):nth-last-child(3),
.part-page-body > table thead th:nth-child(2):nth-last-child(3),
.part-page-body > table tbody td:nth-child(2):nth-last-child(3),
.frontmatter--reference table thead th:nth-child(2):nth-last-child(3),
.frontmatter--reference table tbody td:nth-child(2):nth-last-child(3) {
  width: 18% !important;
  padding-left: 0.03in !important;
  padding-right: 0.09in !important;
}

.chapter .section-body > table thead th:nth-child(3):nth-last-child(2),
.chapter .section-body > table tbody td:nth-child(3):nth-last-child(2),
.chapter .subsection-body > table thead th:nth-child(3):nth-last-child(2),
.chapter .subsection-body > table tbody td:nth-child(3):nth-last-child(2),
.appendix table thead th:nth-child(3):nth-last-child(2),
.appendix table tbody td:nth-child(3):nth-last-child(2),
.part-page-body > table thead th:nth-child(3):nth-last-child(2),
.part-page-body > table tbody td:nth-child(3):nth-last-child(2),
.frontmatter--reference table thead th:nth-child(3):nth-last-child(2),
.frontmatter--reference table tbody td:nth-child(3):nth-last-child(2) {
  width: 22% !important;
  padding-left: 0.03in !important;
  padding-right: 0.09in !important;
}

.chapter .section-body > table thead th:last-child:nth-child(4),
.chapter .section-body > table tbody td:last-child:nth-child(4),
.chapter .subsection-body > table thead th:last-child:nth-child(4),
.chapter .subsection-body > table tbody td:last-child:nth-child(4),
.appendix table thead th:last-child:nth-child(4),
.appendix table tbody td:last-child:nth-child(4),
.part-page-body > table thead th:last-child:nth-child(4),
.part-page-body > table tbody td:last-child:nth-child(4),
.frontmatter--reference table thead th:last-child:nth-child(4),
.frontmatter--reference table tbody td:last-child:nth-child(4) {
  width: 48% !important;
  padding-left: 0.05in !important;
}


/* FINAL TABLE BODY TYPOGRAPHY NORMALIZATION */
.chapter .section-body > table tbody th,
.chapter .subsection-body > table tbody th,
.appendix table tbody th,
.part-page-body > table tbody th,
.frontmatter--reference table tbody th,
.chapter .section-body > table tbody td,
.chapter .subsection-body > table tbody td,
.appendix table tbody td,
.part-page-body > table tbody td,
.frontmatter--reference table tbody td {
  font-weight: 400 !important;
  font-style: normal !important;
}

.chapter .section-body > table tbody td strong,
.chapter .section-body > table tbody td b,
.chapter .section-body > table tbody th strong,
.chapter .section-body > table tbody th b,
.chapter .subsection-body > table tbody td strong,
.chapter .subsection-body > table tbody td b,
.chapter .subsection-body > table tbody th strong,
.chapter .subsection-body > table tbody th b,
.appendix table tbody td strong,
.appendix table tbody td b,
.appendix table tbody th strong,
.appendix table tbody th b,
.part-page-body > table tbody td strong,
.part-page-body > table tbody td b,
.part-page-body > table tbody th strong,
.part-page-body > table tbody th b,
.frontmatter--reference table tbody td strong,
.frontmatter--reference table tbody td b,
.frontmatter--reference table tbody th strong,
.frontmatter--reference table tbody th b {
  font-weight: inherit !important;
}

.chapter .section-body > table tbody td em,
.chapter .section-body > table tbody td i,
.chapter .section-body > table tbody td cite,
.chapter .section-body > table tbody th em,
.chapter .section-body > table tbody th i,
.chapter .section-body > table tbody th cite,
.chapter .subsection-body > table tbody td em,
.chapter .subsection-body > table tbody td i,
.chapter .subsection-body > table tbody td cite,
.chapter .subsection-body > table tbody th em,
.chapter .subsection-body > table tbody th i,
.chapter .subsection-body > table tbody th cite,
.appendix table tbody td em,
.appendix table tbody td i,
.appendix table tbody td cite,
.appendix table tbody th em,
.appendix table tbody th i,
.appendix table tbody th cite,
.part-page-body > table tbody td em,
.part-page-body > table tbody td i,
.part-page-body > table tbody td cite,
.part-page-body > table tbody th em,
.part-page-body > table tbody th i,
.part-page-body > table tbody th cite,
.frontmatter--reference table tbody td em,
.frontmatter--reference table tbody td i,
.frontmatter--reference table tbody td cite,
.frontmatter--reference table tbody th em,
.frontmatter--reference table tbody th i,
.frontmatter--reference table tbody th cite {
  font-style: inherit !important;
}

/* FINAL APPENDIX TABLE BODY FIRST-COLUMN RESET */
.appendix table tbody td,
.appendix table tbody th,
.appendix table tbody td:first-child,
.appendix table tbody td:nth-child(2),
.appendix table tbody td:nth-child(3),
.appendix table tbody td:nth-child(4) {
  font-weight: 400 !important;
  font-style: normal !important;
  color: var(--ink) !important;
}

.appendix table tbody td strong,
.appendix table tbody td b,
.appendix table tbody th strong,
.appendix table tbody th b {
  font-weight: 400 !important;
}

.appendix table tbody td em,
.appendix table tbody td i,
.appendix table tbody td cite,
.appendix table tbody th em,
.appendix table tbody th i,
.appendix table tbody th cite {
  font-style: italic !important;
  font-weight: 400 !important;
}


/* FINAL FRONT MATTER GLOBAL TABLE ADOPTION
   Fix: frontmatter--essay sections were not included in the atlas-wide table system,
   so their tables fell back to generic front-matter styling instead of the global atlas table language.
*/
.frontmatter table,
.frontmatter-essay table {
  width: 100% !important;
  max-width: none !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
  margin: 0.14in 0 0.28in !important;
  border-top: 1px solid var(--table-rule-strong) !important;
  border-bottom: 1px solid var(--table-rule-strong) !important;
  break-inside: auto !important;
  page-break-inside: auto !important;
}

.frontmatter table thead,
.frontmatter-essay table thead {
  display: table-header-group !important;
}

.frontmatter table tfoot,
.frontmatter-essay table tfoot {
  display: table-footer-group !important;
}

.frontmatter table tr,
.frontmatter-essay table tr {
  break-inside: avoid !important;
  page-break-inside: avoid !important;
}

.frontmatter table thead th,
.frontmatter-essay table thead th {
  border-bottom: 1px solid var(--table-rule-strong) !important;
  padding: 0.058in 0.10in 0.060in !important;
  font-family: var(--font-sans) !important;
  font-size: 8pt !important;
  line-height: 1.25 !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: var(--table-header-color) !important;
  text-align: left !important;
  vertical-align: bottom !important;
}

.frontmatter table tbody td,
.frontmatter table tbody th,
.frontmatter-essay table tbody td,
.frontmatter-essay table tbody th {
  padding: 0.072in 0.10in !important;
  border-bottom: 1px solid var(--table-rule-light) !important;
  font-weight: 400 !important;
  font-style: normal !important;
  color: var(--ink) !important;
  vertical-align: top !important;
}

.frontmatter table tbody tr:last-child td,
.frontmatter table tbody tr:last-child th,
.frontmatter-essay table tbody tr:last-child td,
.frontmatter-essay table tbody tr:last-child th {
  border-bottom: 1px solid var(--table-rule-strong) !important;
}

.frontmatter table tbody td strong,
.frontmatter table tbody td b,
.frontmatter table tbody th strong,
.frontmatter table tbody th b,
.frontmatter-essay table tbody td strong,
.frontmatter-essay table tbody td b,
.frontmatter-essay table tbody th strong,
.frontmatter-essay table tbody th b {
  font-weight: 400 !important;
}

.frontmatter table tbody td em,
.frontmatter table tbody td i,
.frontmatter table tbody td cite,
.frontmatter table tbody th em,
.frontmatter table tbody th i,
.frontmatter table tbody th cite,
.frontmatter-essay table tbody td em,
.frontmatter-essay table tbody td i,
.frontmatter-essay table tbody td cite,
.frontmatter-essay table tbody th em,
.frontmatter-essay table tbody th i,
.frontmatter-essay table tbody th cite {
  font-style: italic !important;
  font-weight: 400 !important;
}

/* Two-column front matter tables */
.frontmatter table thead th:first-child:nth-last-child(2),
.frontmatter table tbody td:first-child:nth-last-child(2),
.frontmatter-essay table thead th:first-child:nth-last-child(2),
.frontmatter-essay table tbody td:first-child:nth-last-child(2) {
  width: 32% !important;
  padding-right: 0.14in !important;
}

.frontmatter table thead th:last-child:nth-child(2),
.frontmatter table tbody td:last-child:nth-child(2),
.frontmatter-essay table thead th:last-child:nth-child(2),
.frontmatter-essay table tbody td:last-child:nth-child(2) {
  width: 68% !important;
  padding-left: 0.05in !important;
}

/* Three-column front matter tables */
.frontmatter table thead th:first-child:nth-last-child(3),
.frontmatter table tbody td:first-child:nth-last-child(3),
.frontmatter-essay table thead th:first-child:nth-last-child(3),
.frontmatter-essay table tbody td:first-child:nth-last-child(3) {
  width: 22% !important;
  padding-right: 0.12in !important;
}

.frontmatter table thead th:nth-child(2):nth-last-child(2),
.frontmatter table tbody td:nth-child(2):nth-last-child(2),
.frontmatter-essay table thead th:nth-child(2):nth-last-child(2),
.frontmatter-essay table tbody td:nth-child(2):nth-last-child(2) {
  width: 30% !important;
  padding-left: 0.03in !important;
  padding-right: 0.10in !important;
}

.frontmatter table thead th:last-child:nth-child(3),
.frontmatter table tbody td:last-child:nth-child(3),
.frontmatter-essay table thead th:last-child:nth-child(3),
.frontmatter-essay table tbody td:last-child:nth-child(3) {
  width: 48% !important;
  padding-left: 0.05in !important;
}

/* Four-column front matter tables */
.frontmatter table thead th:first-child:nth-last-child(4),
.frontmatter table tbody td:first-child:nth-last-child(4),
.frontmatter-essay table thead th:first-child:nth-last-child(4),
.frontmatter-essay table tbody td:first-child:nth-last-child(4) {
  width: 12% !important;
}

.frontmatter table thead th:nth-child(2):nth-last-child(3),
.frontmatter table tbody td:nth-child(2):nth-last-child(3),
.frontmatter-essay table thead th:nth-child(2):nth-last-child(3),
.frontmatter-essay table tbody td:nth-child(2):nth-last-child(3) {
  width: 18% !important;
}

.frontmatter table thead th:nth-child(3):nth-last-child(2),
.frontmatter table tbody td:nth-child(3):nth-last-child(2),
.frontmatter-essay table thead th:nth-child(3):nth-last-child(2),
.frontmatter-essay table tbody td:nth-child(3):nth-last-child(2) {
  width: 22% !important;
}

.frontmatter table thead th:last-child:nth-child(4),
.frontmatter table tbody td:last-child:nth-child(4),
.frontmatter-essay table thead th:last-child:nth-child(4),
.frontmatter-essay table tbody td:last-child:nth-child(4) {
  width: 48% !important;
  padding-left: 0.05in !important;
}

/* APPENDIX HYBRID COMPRESSION REBUILD
   Biggest gain: stop forcing every appendix to begin on a fresh recto page.
   Preserve the styled look with a lighter separator and tighter appendix rhythm. */
.appendix {
  break-before: auto !important;
  page-break-before: auto !important;
}

.appendix-intro,
#appendix-matter {
  break-before: right !important;
  page-break-before: right !important;
}

.appendix + .appendix {
  margin-top: 0.30in !important;
  padding-top: 0.10in !important;
  border-top: 0.75px solid var(--appendix-rule) !important;
}

.appendix > h1 {
  margin-bottom: 0.18in !important;
  break-after: avoid-page !important;
  page-break-after: avoid !important;
}

.appendix > h2 {
  margin-top: 0.24in !important;
  margin-bottom: 0.10in !important;
}

.appendix > h3 {
  margin-top: 0.16in !important;
  margin-bottom: 0.06in !important;
}

.appendix p,
.appendix li {
  margin-bottom: 0.38em !important;
  line-height: 1.36 !important;
}

.appendix table {
  margin-top: 0.09in !important;
  margin-bottom: 0.18in !important;
}

.appendix table thead th {
  padding: 0.046in 0.085in 0.048in !important;
}

.appendix table tbody td,
.appendix table tbody th {
  padding: 0.056in 0.085in !important;
}

.appendix blockquote {
  margin: 0.18in auto !important;
}

/* RULES OF ACQUISITION quote emphasis */
#appendix-A01 blockquote {
  display: block !important;
  width: 100% !important;
  max-width: 4.9in !important;
  margin: 0.18in auto 0.20in !important;
  text-align: center !important;
  font-family: var(--font-display) !important;
  color: var(--ink) !important;
}

#appendix-A01 blockquote p {
  margin: 0 auto !important;
  text-align: center !important;
  text-indent: 0 !important;
  font-family: var(--font-display) !important;
  font-size: 12.4pt !important;
  line-height: 1.30 !important;
  font-style: italic !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
}

#appendix-A01 blockquote strong,
#appendix-A01 blockquote b {
  font-weight: 700 !important;
  font-style: italic !important;
  color: var(--ink) !important;
}

/* =========================================================
   FINAL PRINT POLISH — TOP-OF-PAGE BREATHING ROOM (PASS 1)
   Goals:
   1) more top-of-page breathing room for headings
   2) a more ceremonial chapter-opener stack
   3) clearer separation between running header zone and section heads
   ========================================================= */
@media print {
  .chapter-header {
    padding-top: 0.12in !important;
    margin-bottom: 0.28in !important;
  }

  .chapter-number {
    margin: 0 0 0.10in !important;
  }

  .chapter-title-divider {
    margin: 0 0 0.19in !important;
  }

  .chapter-title {
    margin: 0 auto 0.34in !important;
  }

  .section-header,
  .subsection-header {
    margin-top: 0.05in !important;
    margin-bottom: 0.02in !important;
  }

  .section-title {
    margin: 0.40in 0 0.14in !important;
  }

  .subsection-title {
    margin: 0.28in 0 0.10in !important;
  }

  .chapter-body > h2,
  .section-body > h2,
  .subsection-body > h2 {
    margin: 0.44in 0 0.16in !important;
  }

  .chapter-body > h3,
  .section-body > h3,
  .subsection-body > h3 {
    margin: 0.28in 0 0.11in !important;
  }
}
