/* ===========================================================================
   OPERATOR TACTICS — MASTER PRINT STYLESHEET
   Splice Punk Canonical with hybrid serif/sans body type
   Target: A5 perfect-bound, WeasyPrint render
   =========================================================================== */

/* Canonical fonts via Google Fonts. WeasyPrint will fall back to the system
   alternates listed in each font-family stack if these fail to load. */
@import url("https://fonts.googleapis.com/css2?family=Archivo+Narrow:wght@400;500;700&family=IBM+Plex+Sans:wght@400;500;700&family=IBM+Plex+Sans+Condensed:wght@400;500;700&family=IBM+Plex+Mono:wght@400;500;700&family=Newsreader:ital,wght@0,400;0,500;1,400;1,500&display=swap");

/* --- Font stack (system fallback for sandbox proof; swap to canonical fonts in production) ---
   Canonical canon (when external fonts available):
     "Archivo Narrow" — display, headers
     "IBM Plex Sans" — body
     "IBM Plex Sans Condensed" — table headers, condensed UI
     "IBM Plex Mono" — codes, mono
     "Newsreader" — italic serif (tuning forks only)
   Sandbox proof uses Liberation/DejaVu/Lato as visual approximations.
*/

/* ===========================================================================
   PAGE GEOMETRY — A5 with bleed and margins per OT_RPG_Layout_Spec
   Trim: 148 × 210mm
   Bleed: 3mm
   Margins: top 15mm, bottom 18mm, inside 16mm, outside 12mm
   =========================================================================== */

@page {
  size: 148mm 210mm;
  margin: 16mm 11mm 18mm 17mm; /* recto: top / outside / bottom / inside (gutter)
                                   148 − 11 − 17 = 120mm content column */
  background: #F0EEE9; /* paper color applied to the whole page so text has
                          margin breathing room visible on every side */

  @top-left {
    content: string(chapter-name);
    font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
    font-size: 7pt;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #1A1A1A;
    border-bottom: 0.5pt solid #1A1A1A;
    padding-bottom: 1mm;
    width: 100%;
  }

  @bottom-right {
    content: counter(page);
    font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
    font-size: 8pt;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: #1A1A1A;
    padding-top: 2mm;
  }

  @bottom-left {
    content: "" string(book-section);
    font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
    font-size: 7pt;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #1A1A1A;
    padding-top: 2mm;
  }
}

/* Left page (verso) — mirrored margins */
@page :left {
  margin: 16mm 17mm 18mm 11mm; /* verso: top / inside (gutter) / bottom / outside
                                   148 − 17 − 11 = 120mm content column */

  @top-left {
    content: "" string(book-section);
    font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
    font-size: 7pt;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #1A1A1A;
    border-bottom: 0.5pt solid #1A1A1A;
    padding-bottom: 1mm;
    width: 100%;
  }

  @top-right {
    content: none;
  }

  @bottom-left {
    content: counter(page);
    font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
    font-size: 8pt;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: #1A1A1A;
    padding-top: 2mm;
  }

  @bottom-right {
    content: string(chapter-name);
    font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
    font-size: 7pt;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #1A1A1A;
    padding-top: 2mm;
  }
}

/* Right page (recto) — already defined as default */
@page :right {
  /* Uses default @page rules above */
}

/* Chapter opener page — full bleed art treatment, no running heads */
@page chapter-opener {
  margin: 0;
  background: #0A0E12;
  @top-left { content: none; }
  @top-right { content: none; }
  @bottom-left { content: none; }
  @bottom-right { content: none; }
}

/* First page of chapter — no running head (folio still shows) */
@page :first {
  @top-left { content: none; }
  @top-right { content: none; }
}

/* ===========================================================================
   ROOT + COLOR SYSTEM
   =========================================================================== */

:root {
  --paper: #F0EEE9;
  --ink: #1A1A1A;
  --ink-soft: #4A4A4A;
  --signal: #E0A028; /* amber — TDR system layer */
  --orange: #C7491D; /* hot orange — emphasis */
  --teal: #00838F;
  --rule: #BCB7A8;
  --tint: rgba(224, 160, 40, 0.12);
  --tint-warn: rgba(224, 160, 40, 0.18);
  --tint-danger: rgba(199, 73, 29, 0.14);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  /* No background here — paper color is on @page so margins are visible whitespace
     on every side of the text block, not part of a colored rectangle around the text. */
  color: var(--ink);
  font-family: "IBM Plex Sans", "Lato", sans-serif;
  font-size: 9.5pt;
  line-height: 13pt; /* baseline grid — slightly looser for comfortable reading */
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
  text-align: justify;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ===========================================================================
   CHAPTER STRUCTURE — page breaks, named pages, running head strings
   =========================================================================== */

.chapter {
  page-break-before: always;
  string-set: chapter-name attr(data-chapter-name);
}

.chapter[data-section] {
  string-set: chapter-name attr(data-chapter-name), book-section attr(data-section);
}

/* Chapter opener — full-bleed dark page */
.chapter-opener {
  page: chapter-opener;
  page-break-before: always;
  page-break-after: always;
  width: 148mm;
  height: 210mm;
  margin: 0;
  padding: 22mm 18mm;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(199,73,29,.18), transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(224,160,40,.10), transparent 50%),
    linear-gradient(170deg, #1A1F25 0%, #0A0E12 60%, #050709 100%);
  color: #F0EEE9;
  position: relative;
  display: flex;
  flex-direction: column;
}

.chapter-opener .op-num {
  font-family: "Archivo Narrow", "Liberation Sans Narrow", sans-serif;
  font-size: 96pt;
  font-weight: 700;
  line-height: 0.85;
  color: #F0EEE9;
  letter-spacing: -0.02em;
  margin-top: 12mm;
}
.chapter-opener .op-num .slash { color: var(--orange); font-weight: 400; }

.chapter-opener .op-title {
  font-family: "Archivo Narrow", "Liberation Sans Narrow", sans-serif;
  font-size: 28pt;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #F0EEE9;
  margin-top: 4mm;
  line-height: 1;
  text-align: left;
  text-align-last: left;
  hyphens: none;
  overflow-wrap: normal;
  word-spacing: normal;
}

.chapter-opener .op-sub {
  font-family: "IBM Plex Sans Condensed", "Liberation Sans Narrow", sans-serif;
  font-size: 11pt;
  letter-spacing: 0.04em;
  color: #BCB7A8;
  margin-top: 4mm;
  max-width: 80%;
  line-height: 1.35;
  text-align: left;
}

.chapter-opener .op-stamp {
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  font-size: 6.4pt;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
  border-bottom: 0.5pt solid rgba(224,160,40,.4);
  padding-bottom: 2mm;
  margin-bottom: 3mm;
  display: flex;
  justify-content: space-between;
  gap: 4mm;
}

.chapter-opener .op-stamp span {
  white-space: nowrap;
}

.chapter-opener .op-tuning {
  margin-top: auto;
  font-family: "Newsreader", "DejaVu Serif", Georgia, serif;
  font-style: italic;
  font-size: 11pt;
  line-height: 16pt;
  color: #E5E8EC;
  max-width: 88%;
  text-align: left;
}

/* ===========================================================================
   SECTION HEADERS (h2 within chapter body)
   =========================================================================== */

h1 {
  font-family: "Archivo Narrow", "Liberation Sans Narrow", sans-serif;
  font-size: 17pt;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 4mm 0;
  page-break-after: avoid;
  text-align: left;
  hyphens: none;
}

h2 {
  font-family: "Archivo Narrow", "Liberation Sans Narrow", sans-serif;
  font-size: 14pt;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 6mm 0 3mm 0;
  padding-bottom: 1.5mm;
  border-bottom: 1pt solid var(--ink);
  page-break-after: avoid;
  text-align: left;
  hyphens: none;
}

h3 {
  font-family: "IBM Plex Sans Condensed", "Liberation Sans Narrow", sans-serif;
  font-size: 10.5pt;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 4mm 0 2mm 0;
  page-break-after: avoid;
  text-align: left;
  hyphens: none;
}

h4 {
  font-family: "IBM Plex Sans Condensed", "Liberation Sans Narrow", sans-serif;
  font-size: 9pt;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 3mm 0 1.5mm 0;
  page-break-after: avoid;
  text-align: left;
  hyphens: none;
}

/* ===========================================================================
   BODY PROSE
   =========================================================================== */

p {
  margin: 0 0 2.5mm 0;
  orphans: 3;
  widows: 3;
}

p strong, p b {
  font-family: "IBM Plex Sans Condensed", "Liberation Sans Narrow", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Tuning fork — italic serif at section opener */
em.tuning-fork, p.tuning-fork {
  font-family: "Newsreader", "DejaVu Serif", Georgia, serif;
  font-style: italic;
  font-size: 10.5pt;
  line-height: 14pt;
  color: var(--ink);
  margin: 2mm 0 5mm 0;
  text-align: left;
  hyphens: none;
}

blockquote {
  font-family: "IBM Plex Sans", "Lato", sans-serif;
  font-size: 8.5pt;
  line-height: 12pt;
  background: var(--tint);
  border-left: 2pt solid var(--signal);
  padding: 3mm 4mm;
  margin: 3mm 0;
  page-break-inside: avoid;
}
blockquote p { margin: 0 0 1.5mm 0; }
blockquote p:last-child { margin: 0; }
blockquote strong { color: var(--orange); }

/* ===========================================================================
   TABLES
   =========================================================================== */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2.5mm 0;
  page-break-inside: avoid;
  font-size: 8pt;
}

tr {
  page-break-inside: avoid;
  break-inside: avoid;
}

th {
  background: var(--ink);
  color: var(--signal);
  font-family: "IBM Plex Sans Condensed", "Liberation Sans Narrow", sans-serif;
  font-weight: 700;
  font-size: 7.5pt;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  padding: 1.8mm 2.2mm;
}

td {
  padding: 1.5mm 2.2mm;
  font-family: "IBM Plex Sans", "Lato", sans-serif;
  font-size: 8.5pt;
  line-height: 11.5pt;
  border-bottom: 0.4pt solid var(--rule);
  color: var(--ink);
  vertical-align: top;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

td:first-child {
  font-family: "IBM Plex Sans Condensed", "Liberation Sans Narrow", sans-serif;
  font-weight: 600;
  white-space: nowrap;
}

td strong, td b {
  font-family: "IBM Plex Sans Condensed", "Liberation Sans Narrow", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

tbody tr:nth-child(odd) td {
  background: rgba(26, 26, 26, 0.025);
}

/* Numeric tables — mono numerals */
table.numeric td:not(:first-child) {
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  font-size: 7.5pt;
  text-align: center;
  font-weight: 500;
}

/* ===========================================================================
   STATBLOCK
   =========================================================================== */

.statblock {
  background: #FFFFFF;
  border: 0.5pt solid var(--ink);
  margin: 3mm 0;
  page-break-inside: avoid;
}

.statblock .sb-head {
  background: var(--ink);
  color: var(--paper);
  padding: 1.5mm 3mm;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.statblock .sb-name {
  font-family: "Archivo Narrow", "Liberation Sans Narrow", sans-serif;
  font-size: 11pt;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.statblock .sb-type {
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  font-size: 6.5pt;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
}

.statblock .sb-body {
  padding: 2mm 3mm 2.5mm 3mm;
}

.statblock .sb-line {
  font-family: "IBM Plex Sans", "Lato", sans-serif;
  font-size: 8pt;
  line-height: 11pt;
  margin: 0.6mm 0;
}

.statblock .sb-line strong {
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  font-size: 7pt;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.04em;
  margin-right: 1mm;
  text-transform: uppercase;
}

/* ===========================================================================
   CALLOUTS
   =========================================================================== */

.callout {
  background: rgba(26, 26, 26, 0.04);
  border-left: 2pt solid var(--signal);
  padding: 3mm 4mm;
  margin: 3mm 0;
  page-break-inside: avoid;
}

.callout .label {
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  font-size: 6.5pt;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--ink);
  color: var(--signal);
  padding: 0.5mm 2mm;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 1mm;
}

.callout .title {
  font-family: "Archivo Narrow", "Liberation Sans Narrow", sans-serif;
  font-size: 10pt;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 1mm 0;
}

.callout p { font-size: 8pt; line-height: 11pt; margin: 0.8mm 0; }

.callout.warn { border-left-color: var(--orange); }
.callout.danger { border-left-color: #6E1818; }

/* GM Note callout (>blockquote in markdown) */
.gm-note {
  background: rgba(0,131,143,.06);
  border-left: 2pt solid var(--teal);
  padding: 3mm 4mm;
  margin: 3mm 0;
  page-break-inside: avoid;
  font-size: 8.5pt;
  line-height: 11.5pt;
}
.gm-note strong:first-child { color: var(--teal); }

/* ===========================================================================
   LISTS
   =========================================================================== */

ul, ol {
  margin: 1.5mm 0 2.5mm 0;
  padding-left: 6mm;
  padding-right: 3mm; /* balance the inset so list items don't bleed to right edge */
}

li {
  margin: 0.5mm 0;
  font-size: 8.5pt;
  line-height: 12pt;
}

/* Numbered loop list — used for OT's "The Loop" type sequences */
ol.ot-loop {
  list-style: none;
  counter-reset: beat;
  padding-left: 0;
}

ol.ot-loop li {
  position: relative;
  padding-left: 8mm;
  margin: 1.5mm 0;
}

ol.ot-loop li::before {
  counter-increment: beat;
  content: counter(beat);
  position: absolute;
  left: 0;
  top: 0.3mm;
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  font-size: 7pt;
  font-weight: 700;
  color: var(--signal);
  background: var(--ink);
  padding: 0.5mm 1.5mm;
  letter-spacing: 0.04em;
  min-width: 5mm;
  text-align: center;
}

/* ===========================================================================
   PAGE BREAK CONTROLS — keep section heads attached to their content
   =========================================================================== */

.statblock,
.callout,
.gm-note,
table,
ol.ot-loop,
.no-break {
  page-break-inside: avoid;
  break-inside: avoid;
}

h1, h2, h3, h4 {
  page-break-after: avoid !important;
  break-after: avoid-page !important;
}

/* Element directly following a heading — pull back to stay with header */
h2 + *, h3 + *, h4 + * {
  page-break-before: avoid !important;
  break-before: avoid-page !important;
}

/* Two-step: heading + intro paragraph + table/statblock/callout — chain them */
h2 + p + table, h3 + p + table, h4 + p + table,
h2 + p + .statblock, h3 + p + .statblock, h4 + p + .statblock,
h2 + p + .callout, h3 + p + .callout, h4 + p + .callout,
h2 + p + .gm-note, h3 + p + .gm-note, h4 + p + .gm-note,
h2 + p + ul, h3 + p + ul, h4 + p + ul,
h2 + p + ol, h3 + p + ol, h4 + p + ol,
/* Two-paragraph section pattern: keep h2 + p + p together so a short trailing
   paragraph doesn't widow onto the next page (Operator's Edge case). */
h2 + p + p, h3 + p + p, h4 + p + p {
  page-break-before: avoid !important;
  break-before: avoid-page !important;
}

/* Strong widows/orphans — fewer than four lines of paragraph won't be split across pages */
body, p {
  widows: 4;
  orphans: 4;
}

/* Tables get an extra-strong inside-avoid */
table {
  page-break-inside: avoid;
  break-inside: avoid;
}

/* ===========================================================================
   FIELD OPERATIONS BATTLE MAPS
   =========================================================================== */

.field-map {
  margin: 3.5mm 0 4mm 0;
  page-break-inside: avoid;
  break-inside: avoid-page;
  border: 0.8pt solid var(--ink);
  background: #101318;
  color: #F0EEE9;
}

.field-map-head {
  display: flex;
  justify-content: space-between;
  gap: 3mm;
  align-items: baseline;
  padding: 2mm 2.5mm 1.3mm 2.5mm;
  border-bottom: 0.5pt solid rgba(240,238,233,0.28);
}

.field-map-title {
  font-family: "IBM Plex Sans Condensed", "Liberation Sans Narrow", sans-serif;
  font-size: 8.6pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #F0EEE9;
  text-align: left;
  hyphens: none;
}

.field-map-scale {
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  font-size: 6.2pt;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--signal);
  white-space: nowrap;
}

.field-map svg {
  display: block;
  width: 100%;
  height: auto;
  background: #101318;
}

.field-map .grid-line {
  stroke: rgba(240,238,233,0.13);
  stroke-width: 0.7;
}

.field-map .board {
  fill: #101318;
  stroke: #F0EEE9;
  stroke-width: 2;
}

.field-map .deploy {
  fill: #C7491D;
  opacity: 0.28;
}

.field-map .deploy-alt {
  fill: #E0A028;
  opacity: 0.2;
}

.field-map .building {
  fill: #E8E4D8;
  stroke: #F0EEE9;
  stroke-width: 1.4;
}

.field-map .interior {
  fill: rgba(0,0,0,0.12);
  stroke: #101318;
  stroke-width: 0.9;
}

.field-map .blocking {
  fill: #F0EEE9;
  stroke: #F0EEE9;
  stroke-width: 1;
}

.field-map .rough {
  fill: #2A2E34;
  stroke: #777C84;
  stroke-width: 1;
}

.field-map .hazard {
  fill: rgba(199,73,29,0.2);
  stroke: #C7491D;
  stroke-width: 1.2;
  stroke-dasharray: 6 5;
}

.field-map .route {
  fill: none;
  stroke: #E0A028;
  stroke-width: 2.2;
  stroke-dasharray: 7 5;
}

.field-map .route-cold {
  fill: none;
  stroke: #28B8C7;
  stroke-width: 2;
  stroke-dasharray: 5 4;
}

.field-map .objective {
  fill: #E0A028;
  stroke: #F0EEE9;
  stroke-width: 1.5;
}

.field-map .objective-cyan {
  fill: #28B8C7;
  stroke: #F0EEE9;
  stroke-width: 1.5;
}

.field-map .hvt {
  fill: #C7491D;
  stroke: #F0EEE9;
  stroke-width: 1.5;
}

.field-map text {
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  fill: #F0EEE9;
  font-size: 9px;
  letter-spacing: 0.04em;
  text-anchor: middle;
  dominant-baseline: middle;
  hyphens: none;
}

.field-map .label-dark {
  fill: #101318;
  font-weight: 700;
}

.field-map .edge-label {
  font-size: 8px;
  fill: #E0A028;
  text-transform: uppercase;
}

.field-map-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 0.5pt solid rgba(240,238,233,0.28);
}

.field-map-note {
  padding: 1.7mm 2.3mm 2mm 2.3mm;
  border-right: 0.5pt solid rgba(240,238,233,0.2);
  font-size: 6.8pt;
  line-height: 9pt;
  text-align: left;
  color: #D8D4CA;
}

.field-map-note:last-child {
  border-right: 0;
}

.field-map-note strong {
  display: block;
  margin-bottom: 0.5mm;
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  font-size: 5.9pt;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
}

/* Statblock head + body — never split */
.statblock {
  page-break-inside: avoid !important;
  break-inside: avoid-page !important;
}

/* ===========================================================================
   CROSS-REFERENCES (target-counter for "see page X")
   =========================================================================== */

a[href^="#"]::after {
  content: " (p. " target-counter(attr(href), page) ")";
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  font-size: 7pt;
  color: var(--ink-soft);
}

a[href^="#"] {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

/* No page reference for inline TOC links */
nav.toc a[href^="#"]::after {
  content: " " leader('. ') target-counter(attr(href), page);
  color: var(--ink);
}

/* ===========================================================================
   TABLE OF CONTENTS
   =========================================================================== */

nav.toc {
  font-family: "IBM Plex Sans", "Lato", sans-serif;
  font-size: 9.5pt;
}

nav.toc ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

nav.toc li {
  margin: 1.5mm 0;
}

nav.toc a {
  display: flex;
  align-items: baseline;
  text-decoration: none;
  color: var(--ink);
}

/* TOC link page numbers — use target-counter on the <a> itself.
   Hide the empty .toc-fill span (we use the leader from ::after) and
   suppress the .toc-page span (it has no href so attr(href) returns empty). */
nav.toc .toc-name {
  font-family: "IBM Plex Sans Condensed", "Liberation Sans Narrow", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

nav.toc .toc-fill { display: none; }
nav.toc .toc-page { display: none; }

/* Leader + page number injected after the toc-name */
nav.toc a[href^="#"]::after {
  content: " " leader('. ') target-counter(attr(href), page);
  color: var(--ink);
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  font-size: 8pt;
  letter-spacing: 0.04em;
  flex: 1;
  margin-left: 2mm;
}

/* ===========================================================================
   FRONT MATTER
   =========================================================================== */

.title-page {
  page-break-after: always;
  text-align: center;
  padding: 30mm 15mm;
  height: 200mm;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.title-page h1.title {
  font-family: "Archivo Narrow", "Liberation Sans Narrow", sans-serif;
  font-size: 40pt;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  border: none;
  padding: 0;
  text-align: center;
  margin: 0;
  line-height: 1.0;
  white-space: nowrap;
}
.title-page h1.title .word {
  display: block;
  line-height: 0.95;
}

.title-page .sub {
  font-family: "IBM Plex Sans Condensed", "Liberation Sans Narrow", sans-serif;
  font-size: 14pt;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  margin-top: 4mm;
  text-align: center;
}

.title-page .author {
  font-family: "IBM Plex Sans", "Lato", sans-serif;
  font-size: 11pt;
  color: var(--ink);
  text-align: center;
}

.title-page .stamp {
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  font-size: 8pt;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
}

/* ===========================================================================
   BACK MATTER
   =========================================================================== */

.colophon {
  font-family: "IBM Plex Sans", "Lato", sans-serif;
  font-size: 8.5pt;
  line-height: 12pt;
  text-align: left;
  padding: 12mm 4mm;
}

.colophon h2 {
  border: none;
  margin-bottom: 4mm;
}

/* ===========================================================================
   UTILITIES
   =========================================================================== */

.signal { color: var(--signal); }
.orange { color: var(--orange); }
.muted { color: var(--ink-soft); }
.mono { font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace; font-size: 8pt; }
.condensed { font-family: "IBM Plex Sans Condensed", "Liberation Sans Narrow", sans-serif; }
.serif { font-family: "Newsreader", "DejaVu Serif", Georgia, serif; }

.divider {
  border: none;
  border-top: 1.5pt solid var(--ink);
  margin: 4mm 0 2mm 0;
  position: relative;
}
.divider::after {
  content: "";
  display: block;
  width: 18mm;
  height: 0.4pt;
  background: var(--signal);
  margin-top: 1mm;
}

/* Initial drop-cap — WeasyPrint-safe (no float on ::first-letter) */
.drop-cap::first-letter {
  font-family: "Archivo Narrow", "Liberation Sans Narrow", sans-serif;
  font-weight: 700;
  font-size: 28pt;
  line-height: 1;
  color: var(--orange);
  padding-right: 1mm;
}

/* Hide voice-pass artifacts (rules ledger, voice notes) — these don't print */
.no-print { display: none; }

/* ===========================================================================
   OPERATOR LOOP — front matter cycle diagram
   =========================================================================== */

.operator-loop .loop-grid {
  display: table;
  width: 100%;
  border-collapse: separate;
  border-spacing: 4mm 0;
  margin-top: 5mm;
  page-break-inside: avoid;
}

.operator-loop .loop-col {
  display: table-cell;
  width: 50%;
  border: 0.6pt solid var(--ink);
  padding: 3mm 4mm 3mm 4mm;
  background: rgba(255,255,255,0.35);
  page-break-inside: avoid;
  vertical-align: top;
}

.operator-loop .loop-col-head {
  font-family: "Archivo Narrow", "Liberation Sans Narrow", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 8pt;
  color: var(--orange);
  border-bottom: 0.5pt solid var(--ink);
  padding-bottom: 1.2mm;
  margin-bottom: 2.5mm;
}

.operator-loop .loop-steps {
  list-style: decimal;
  padding-left: 5mm;
  margin: 0;
}

.operator-loop .loop-steps li {
  margin-bottom: 1.8mm;
  font-size: 8pt;
  line-height: 11pt;
}

.operator-loop .loop-step-name {
  font-weight: 700;
  font-family: "Archivo Narrow", "Liberation Sans Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 8pt;
}

.operator-loop .loop-cycle-note {
  text-align: center;
  font-style: italic;
  font-family: "Newsreader", "DejaVu Serif", serif;
  font-size: 9pt;
  margin-top: 5mm;
  color: var(--ink);
}

/* ===========================================================================
   QUICK REFERENCE TABLES — back matter player & GM spreads
   =========================================================================== */

/* Quick-ref body — natural flow. Content streams over 1-2 pages as a spread. */
.quick-ref-body,
.gm-tables-body {
  margin-top: 3mm;
}

/* qr-col panels render as plain blocks (side-by-side abandoned for stability) */
.qr-col {
  display: block;
}

/* Tighter typography for back-matter quick refs so they pack tightly */
.quick-ref h1,
.gm-tables h1 {
  margin-bottom: 2mm;
  padding-bottom: 1.5mm;
  font-size: 18pt;
}

.quick-ref .tuning-fork,
.gm-tables .tuning-fork {
  font-size: 9pt;
  line-height: 12pt;
  margin-bottom: 3mm;
}

.quick-ref table.qr-table,
.gm-tables table.qr-table {
  font-size: 7pt;
  line-height: 9pt;
}

.quick-ref table.qr-table th,
.gm-tables table.qr-table th {
  font-size: 6.5pt;
  padding: 0.6mm 1mm;
}

.quick-ref table.qr-table td,
.gm-tables table.qr-table td {
  padding: 0.4mm 1mm;
}

.quick-ref h2,
.gm-tables h2 {
  font-family: "Archivo Narrow", "Liberation Sans Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 9pt;
  color: var(--ink);
  border-bottom: 0.5pt solid var(--ink);
  padding-bottom: 0.5mm;
  margin: 3mm 0 1.5mm 0;
  page-break-after: avoid;
}

.qr-col h2:first-of-type {
  margin-top: 0;
}

.quick-ref table.qr-table,
.gm-tables table.qr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 7.5pt;
  line-height: 9.5pt;
  margin: 0 0 1mm 0;
}

.quick-ref table.qr-table th,
.gm-tables table.qr-table th {
  font-family: "IBM Plex Sans Condensed", "Liberation Sans Narrow", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 7pt;
  text-align: left;
  border-bottom: 0.6pt solid var(--ink);
  padding: 0.5mm 1mm;
}

.quick-ref table.qr-table td,
.gm-tables table.qr-table td {
  padding: 0.35mm 1mm;
  border-bottom: 0.3pt solid #c0bbb0;
  vertical-align: top;
}

.quick-ref p,
.gm-tables p {
  font-size: 8.5pt;
  line-height: 11pt;
  margin: 0 0 1.2mm 0;
}

.quick-ref table.qr-table td:first-child,
.gm-tables table.qr-table td:first-child {
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  font-weight: 600;
  white-space: nowrap;
}

/* ===========================================================================
   COVER PAGES — full-bleed front and back cover
   =========================================================================== */

@page cover-page {
  margin: 0;
  background: #1A1A1A;
  @top-left { content: none; }
  @top-right { content: none; }
  @bottom-left { content: none; }
  @bottom-right { content: none; }
}

.cover-page {
  page: cover-page;
  page-break-before: always;
  page-break-after: always;
  width: 148mm;
  height: 210mm;
  margin: 0;
  padding: 18mm 16mm;
  background: #1A1A1A;
  color: #F0EEE9;
  position: relative;
  box-sizing: border-box;
  hyphens: none;
  -webkit-hyphens: none;
}

.cover-page > .cover-stamp-top {
  display: block;
}
.cover-page > .cover-title-block {
  display: block;
  margin-top: 35mm;
  margin-bottom: 35mm;
}
.cover-page > .cover-stamp-bottom {
  display: block;
  position: absolute;
  bottom: 18mm;
  left: 16mm;
  right: 16mm;
}

.cover-stamp-top,
.cover-stamp-bottom {
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  font-size: 7pt;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C45D2E;
}

.cover-stamp-bottom {
  text-align: right;
  border-top: 0.5pt solid #C45D2E;
  padding-top: 2mm;
  font-size: 5.8pt;
  letter-spacing: 0.13em;
  white-space: nowrap;
}

.cover-title-block {
  text-align: left;
  margin-top: 30mm;
}

.cover-title {
  font-family: "Archivo Narrow", "Liberation Sans Narrow", sans-serif;
  font-size: 64pt;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #F0EEE9;
  border: none;
  padding: 0;
  margin: 0;
  line-height: 0.92;
}

.cover-title .word {
  display: block;
}

.cover-title .word:first-child {
  color: #C45D2E;
}

.cover-sub {
  font-family: "Newsreader", "DejaVu Serif", serif;
  font-style: italic;
  font-size: 14pt;
  letter-spacing: 0.04em;
  color: #F0EEE9;
  margin-top: 6mm;
  padding-top: 3mm;
  border-top: 0.7pt solid #C45D2E;
  width: 82mm;
  hyphens: none;
  -webkit-hyphens: none;
}

.cover-tagline {
  font-family: "Archivo Narrow", "Liberation Sans Narrow", sans-serif;
  font-size: 11pt;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #F0EEE9;
  margin-top: 12mm;
  max-width: 90mm;
  line-height: 1.3;
}

@page back-cover-page {
  margin: 0;
  background: #1A1A1A;
  @top-left { content: none; }
  @top-right { content: none; }
  @bottom-left { content: none; }
  @bottom-right { content: none; }
}

.back-cover-page {
  page: back-cover-page;
  page-break-before: always;
  width: 148mm;
  height: 210mm;
  margin: 0;
  padding: 14mm 14mm;
  background: #1A1A1A;
  color: #F0EEE9;
  box-sizing: border-box;
}

.back-cover-stamp-top,
.back-cover-stamp-bottom {
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  font-size: 7pt;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C45D2E;
}

.back-cover-stamp-bottom {
  text-align: right;
  border-top: 0.5pt solid #C45D2E;
  padding-top: 2mm;
}

.back-cover-blurb {
  margin-top: 4mm;
}

.back-cover-pull {
  font-family: "Archivo Narrow", "Liberation Sans Narrow", sans-serif;
  font-weight: 700;
  font-size: 14pt;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #C45D2E;
  margin: 0 0 6mm 0;
  line-height: 1.15;
}

.back-cover-blurb p {
  font-family: "IBM Plex Sans", "Lato", sans-serif;
  font-size: 8.5pt;
  line-height: 11.5pt;
  color: #F0EEE9;
  margin: 0 0 2.5mm 0;
}

.back-cover-features {
  margin-top: 4mm;
  padding-top: 3mm;
  border-top: 0.5pt solid #C45D2E;
}

.back-cover-feature {
  font-family: "IBM Plex Sans", "Lato", sans-serif;
  font-size: 8.5pt;
  line-height: 11.5pt;
  color: #F0EEE9;
  margin-bottom: 2mm;
}

.back-cover-feature strong {
  font-family: "Archivo Narrow", "Liberation Sans Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #C45D2E;
}

/* ===========================================================================
   OPERATOR ROSTER — back-matter pre-built cast
   =========================================================================== */

.operator-roster .roster-grid {
  margin-top: 3mm;
  font-size: 0; /* eliminate inline-block whitespace */
}

.operator-roster .roster-grid::after {
  content: "";
  display: block;
  clear: both;
}

.operator-roster .roster-card {
  display: inline-block;
  width: 49%;
  border: 0.5pt solid var(--ink);
  padding: 2mm 3mm 2.5mm 3mm;
  vertical-align: top;
  background: rgba(255,255,255,0.35);
  box-sizing: border-box;
  margin-bottom: 2mm;
  page-break-inside: avoid;
  font-size: 9pt; /* reset from font-size:0 wrapper */
}

.operator-roster .roster-card:nth-child(odd) {
  margin-right: 2%;
}

/* Tighter back-matter h1 to leave room for roster cards on the same page */
.operator-roster h1 {
  font-size: 16pt;
  margin-bottom: 1mm;
  padding-bottom: 1mm;
}

.operator-roster .tuning-fork {
  font-size: 9pt;
  line-height: 12pt;
  margin-bottom: 2mm;
}

.operator-roster .roster-callsign {
  font-family: "Archivo Narrow", "Liberation Sans Narrow", sans-serif;
  font-size: 14pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orange);
  margin-bottom: 0.5mm;
  line-height: 1;
}

.operator-roster .roster-class {
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  font-size: 6.5pt;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.5mm;
  padding-bottom: 1mm;
  border-bottom: 0.4pt solid var(--ink);
}

.operator-roster .roster-stats {
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  font-size: 6.5pt;
  line-height: 9pt;
  letter-spacing: 0.02em;
  margin-bottom: 1mm;
}

.operator-roster .roster-armor {
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  font-size: 6.5pt;
  line-height: 9pt;
  letter-spacing: 0.02em;
  margin-bottom: 1.5mm;
  color: #2a2a2a;
}

.operator-roster .roster-sig {
  font-size: 7.5pt;
  line-height: 10pt;
  margin-bottom: 1.5mm;
}

.operator-roster .roster-load {
  font-size: 7pt;
  line-height: 9.5pt;
}

.operator-roster .roster-note {
  text-align: center;
  font-style: italic;
  font-family: "Newsreader", "DejaVu Serif", serif;
  font-size: 9pt;
  margin-top: 5mm;
  color: var(--ink);
}

/* ===========================================================================
   CHARACTER SHEET — back matter, fillable
   =========================================================================== */

.character-sheet h2 {
  font-family: "Archivo Narrow", "Liberation Sans Narrow", sans-serif;
  font-size: 9pt;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  border-bottom: 0.5pt solid var(--ink);
  padding-bottom: 0.5mm;
  margin: 4mm 0 1.5mm 0;
}

.character-sheet .cs-grid {
  margin-top: 3mm;
}

.character-sheet .cs-row {
  display: table;
  width: 100%;
  border-collapse: separate;
  border-spacing: 2mm 0;
  margin-bottom: 2mm;
}

.character-sheet .cs-field {
  display: table-cell;
  vertical-align: top;
  border: 0.4pt solid var(--ink);
  padding: 1mm 2mm 2mm 2mm;
}

.character-sheet .cs-field-wide { width: 60%; }
.character-sheet .cs-field-narrow { width: 25%; }

.character-sheet .cs-label {
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  font-size: 6.5pt;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #555;
}

.character-sheet .cs-input {
  height: 5mm;
  border-bottom: 0.3pt dotted var(--ink);
}

.character-sheet table.cs-attrs {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2mm;
}

.character-sheet table.cs-attrs th {
  font-family: "Archivo Narrow", "Liberation Sans Narrow", sans-serif;
  font-size: 7.5pt;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  border: 0.4pt solid var(--ink);
  padding: 1mm;
  background: rgba(196,93,46,0.1);
}

.character-sheet table.cs-attrs td.cs-blank {
  height: 9mm;
  border: 0.4pt solid var(--ink);
}

.character-sheet .cs-wounds {
  border: 0.4pt solid var(--ink);
  padding: 2mm 3mm;
}

.character-sheet .cs-wounds-row {
  display: table;
  width: 100%;
  margin-bottom: 1mm;
}

.character-sheet .cs-wounds-label {
  display: table-cell;
  width: 60%;
  font-size: 8pt;
}

.character-sheet .cs-wounds-boxes {
  display: table-cell;
  width: 40%;
  font-size: 14pt;
  letter-spacing: 0.4em;
}

.character-sheet .cs-block {
  border: 0.4pt solid var(--ink);
  height: 14mm;
  padding: 1mm;
}

.character-sheet .cs-block-narrow {
  border: 0.4pt solid var(--ink);
  height: 8mm;
  padding: 1mm;
}

.character-sheet .cs-block-large {
  border: 0.4pt solid var(--ink);
  height: 24mm;
  padding: 1mm;
}

.character-sheet .cs-loadout {
  border: 0.4pt solid var(--ink);
  padding: 2mm;
}

.character-sheet .cs-loadout .cs-row {
  border-spacing: 2mm 1mm;
  margin: 0;
}

.character-sheet .cs-loadout .cs-field {
  border: 0.3pt solid #888;
}

/* ===========================================================================
   ROLL TABLES — uses .quick-ref body but with the custom h1 stamp
   =========================================================================== */

.roll-tables h1 {
  font-size: 16pt;
  margin-bottom: 1mm;
  padding-bottom: 1mm;
}

.roll-tables .tuning-fork {
  font-size: 8.5pt;
  line-height: 11pt;
  margin-bottom: 3mm;
}

.roll-tables h2 {
  font-family: "Archivo Narrow", "Liberation Sans Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10pt;
  color: var(--orange);
  border-bottom: 0.5pt solid var(--ink);
  padding-bottom: 0.8mm;
  margin: 0 0 1.5mm 0;
  page-break-after: avoid;
}

.roll-tables .rt-grid {
  margin: 0;
}

.roll-tables .rt-col {
  display: block;
  width: 100%;
  margin-bottom: 4mm;
  page-break-inside: avoid;
}

.roll-tables .rt-col table.qr-table {
  width: 100%;
}

.roll-tables table.qr-table td:first-child {
  width: 8mm;
}

.roll-tables .rt-intro {
  font-size: 8pt;
  line-height: 11pt;
  margin: 0 0 2mm 0;
  font-style: italic;
  color: #2a2a2a;
}

.roll-tables table.qr-table {
  font-size: 8pt;
  line-height: 11pt;
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.roll-tables table.qr-table td {
  padding: 0.6mm 1.5mm;
  border-bottom: 0.3pt solid #c0bbb0;
  vertical-align: top;
}

.roll-tables table.qr-table td:first-child {
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  font-weight: 600;
  white-space: nowrap;
  width: 8mm;
}

.roll-tables .rt-using {
  margin-top: 4mm;
  padding-top: 2mm;
  border-top: 0.5pt solid var(--ink);
}

.roll-tables .rt-using h2 {
  margin-top: 0;
}

.roll-tables .rt-using p {
  font-size: 8pt;
  line-height: 11pt;
  margin: 0;
}

/* ===========================================================================
   RAID RACERS additions: TOC section dividers, race-specific table styling
   =========================================================================== */

nav.toc li.toc-section {
  list-style: none;
  margin-top: 4mm;
  margin-bottom: 1.5mm;
  padding-bottom: 1mm;
  border-bottom: 0.4pt solid #C45D2E;
}
nav.toc li.toc-section .toc-section-label {
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  font-size: 7pt;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #C45D2E;
}

/* Raid scene marker (■ RAID RACER SCENE) — used by callouts that are full-scene blocks */
.callout.warn .label {
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  font-size: 7pt;
  letter-spacing: 0.2em;
  color: #C45D2E;
  display: inline-block;
  padding: 1mm 2mm;
  border: 0.4pt solid #C45D2E;
  margin-bottom: 2mm;
}

/* Tighter rule lists for stat blocks and bold-term entries */
.first-read p strong:first-child {
  /* Bold Term Format: keep the punch */
}

/* Vehicle stat line — used in CH03 and CH11 */
.vehicle-stats {
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  font-size: 8.5pt;
  background: #F0EEE9;
  border: 0.4pt solid #1A1A1A;
  border-left: 2pt solid #C45D2E;
  padding: 2mm 3mm;
  margin: 2mm 0;
  line-height: 1.4;
}

/* District signature image — italic pull */
.district-signature {
  font-family: "Newsreader", "DejaVu Serif", serif;
  font-style: italic;
  font-size: 9.5pt;
  border-left: 2pt solid #C45D2E;
  padding-left: 3mm;
  margin: 3mm 0;
  color: #1A1A1A;
}
/* ===========================================================================
   OT-STYLE COVER SYSTEM — matches OperatorTactics_v1 visual language
   Cream background, TDR data layers, Archivo Narrow mega-title, yellow-lime
   =========================================================================== */

/* TDR yellow — not in :root above, add here */
.ot-cover, .ot-back-cover { --tdr-yellow: #D4E228; }

/* Named page overrides — light background for new covers */
@page cover-page {
  background: #F0EEE9;
}
@page back-cover-page {
  background: #F0EEE9;
}

/* ── COVER SHELL ── */
.ot-cover {
  page: cover-page;
  page-break-before: always;
  page-break-after: always;
  width: 148mm;
  height: 210mm;
  background: #F0EEE9;
  color: #1A1A1A;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.ot-back-cover {
  page: back-cover-page;
  page-break-before: always;
  page-break-after: always;
  width: 148mm;
  height: 210mm;
  background: #F0EEE9;
  color: #1A1A1A;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── STATUS BAR ── */
.ot-cvr-status {
  background: #1A1A1A;
  color: #F0EEE9;
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  font-size: 5.5pt;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 2.5mm 5mm;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 9mm;
  flex-shrink: 0;
  box-sizing: border-box;
}

.ot-cvr-status-l { color: #C45D2E; }
.ot-cvr-status-r { color: #BCB7A8; }
.ot-cvr-dot { color: #C45D2E; }

/* ── BODY ── */
.ot-cvr-body {
  flex: 1;
  padding: 3mm 6mm 2mm 6mm;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
}

/* ── CORNER BRACKETS ── */
.ot-cvr-brackets {
  display: flex;
  justify-content: space-between;
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  font-size: 10pt;
  color: #1A1A1A;
  line-height: 1;
  margin-bottom: 0.5mm;
}

/* ── DATA ROW ── */
.ot-cvr-data-row {
  display: flex;
  align-items: center;
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  font-size: 6pt;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1A1A1A;
  border-top: 0.5pt solid #1A1A1A;
  border-bottom: 0.5pt solid #1A1A1A;
  padding: 1.5mm 0;
  margin-bottom: 1.5mm;
  gap: 2mm;
}

.ot-cvr-dr-left  { flex-shrink: 0; }
.ot-cvr-dr-sep   { color: #BCB7A8; flex-shrink: 0; }
.ot-cvr-dr-mid   { flex: 1; text-align: center; font-weight: 700; }
.ot-cvr-dr-right { flex-shrink: 0; }
.ot-cvr-bars     { color: #C45D2E; letter-spacing: -0.06em; }

/* ── TAG ROW ── */
.ot-cvr-tag-row {
  display: flex;
  align-items: center;
  gap: 3mm;
  margin-bottom: 1.5mm;
}

.ot-cvr-tag {
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  font-size: 6pt;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1mm 2mm;
  flex-shrink: 0;
}

.ot-cvr-tag-dark   { background: #1A1A1A; color: #F0EEE9; }
.ot-cvr-tag-yellow { background: #D4E228; color: #1A1A1A; font-weight: 700; }

.ot-cvr-tag-plain {
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  font-size: 6pt;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1A1A1A;
}

/* ── VOLUME LINE ── */
.ot-cvr-vol-line {
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  font-size: 5.5pt;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4A4A4A;
  margin-bottom: 1mm;
  display: flex;
  align-items: center;
  gap: 2mm;
}

.ot-cvr-vol-box {
  background: #1A1A1A;
  color: #F0EEE9;
  padding: 0.5mm 2mm;
  flex-shrink: 0;
}

.ot-cvr-vol-type {
  border: 0.4pt solid #1A1A1A;
  padding: 0.5mm 2mm;
  flex-shrink: 0;
}

.ot-cvr-vol-ref { color: #4A4A4A; }

/* ── MEGA TITLE ── */
.ot-cvr-title-block { margin: 0.5mm 0 1mm 0; }

.ot-cvr-title-line {
  font-family: "Archivo Narrow", "Liberation Sans Narrow", sans-serif;
  font-weight: 700;
  color: #1A1A1A;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 0.9;
  hyphens: none;
  text-align: left;
}

.ot-cvr-title-lg { font-size: 61pt; }
.ot-cvr-title-md { font-size: 84pt; }

.ot-cvr-title-year-row {
  display: flex;
  align-items: center;
  margin-top: 0.5mm;
  gap: 3mm;
}

.ot-cvr-title-year {
  font-family: "Archivo Narrow", "Liberation Sans Narrow", sans-serif;
  font-size: 38pt;
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1;
  letter-spacing: 0.04em;
  hyphens: none;
  flex-shrink: 0;
}

.ot-cvr-year-rule {
  flex: 1;
  display: block;
  height: 3.5mm;
  background: #D4E228;
}

/* ── EARTH / UPHEAVAL LINE ── */
.ot-cvr-earth-line {
  display: flex;
  align-items: center;
  gap: 3mm;
  font-family: "Archivo Narrow", "Liberation Sans Narrow", sans-serif;
  font-size: 7.5pt;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #1A1A1A;
  margin: 2mm 0 1.5mm 0;
}

.ot-cvr-earth-word { flex-shrink: 0; white-space: nowrap; }
.ot-cvr-earth-rule { flex: 1; height: 0.5pt; background: #1A1A1A; }

/* ── TAGLINE BOX ── */
.ot-cvr-tagbox {
  background: #1A1A1A;
  padding: 3mm 4mm;
  margin-bottom: 2mm;
}

.ot-cvr-tagbox-headline {
  font-family: "Archivo Narrow", "Liberation Sans Narrow", sans-serif;
  font-size: 12pt;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #F0EEE9;
  line-height: 1.2;
  margin-bottom: 1.5mm;
}

.ot-cvr-tagbox-line {
  display: block;
}

.ot-cvr-tagbox-hl {
  background: #D4E228;
  color: #1A1A1A;
  padding: 0 1mm;
}

/* Dark-context headline (back cover, headline is on cream) */
.ot-cvr-tagbox-hl-dark {
  background: #D4E228;
  color: #1A1A1A;
  padding: 0 1mm;
}

.ot-cvr-tagbox-sub {
  font-family: "Archivo Narrow", "Liberation Sans Narrow", sans-serif;
  font-size: 10pt;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #F0EEE9;
  margin-bottom: 1.5mm;
  line-height: 1.2;
}

.ot-cvr-tagbox-attrs {
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  font-size: 5.5pt;
  letter-spacing: 0.1em;
  color: #BCB7A8;
  text-transform: uppercase;
}

/* ── MIDDLE ROW ── */
.ot-cvr-mid-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2mm;
}

.ot-cvr-stamp-box {
  border: 1.2pt solid #C45D2E;
  padding: 2mm 4mm;
  display: inline-block;
}

.ot-cvr-stamp-main {
  font-family: "Archivo Narrow", "Liberation Sans Narrow", sans-serif;
  font-size: 9pt;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C45D2E;
  line-height: 1.2;
}

.ot-cvr-stamp-sub {
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  font-size: 6pt;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #C45D2E;
}

.ot-cvr-crosshair { line-height: 0; }

/* ── PART COLUMNS ── */
.ot-cvr-cols {
  display: flex;
  border-top: 0.5pt solid #1A1A1A;
  padding-top: 2mm;
  margin-top: auto;
}

.ot-cvr-col {
  flex: 1;
  padding: 0 2mm;
  border-right: 0.4pt solid #BCB7A8;
}

.ot-cvr-col:first-child { padding-left: 0; }
.ot-cvr-col:last-child  { border-right: none; padding-right: 0; }

.ot-cvr-col-hl {
  background: #1A1A1A;
  margin-top: -2mm;
  padding-top: 2mm;
  padding-bottom: 1mm;
}

.ot-cvr-col-hl .ot-cvr-col-num,
.ot-cvr-col-hl .ot-cvr-col-name,
.ot-cvr-col-hl .ot-cvr-col-sub { color: #F0EEE9; }

.ot-cvr-col-num {
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  font-size: 5pt;
  letter-spacing: 0.06em;
  color: #C45D2E;
  text-transform: uppercase;
  margin-bottom: 0.5mm;
}

.ot-cvr-col-name {
  font-family: "Archivo Narrow", "Liberation Sans Narrow", sans-serif;
  font-size: 7pt;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1A1A1A;
  line-height: 1.1;
}

.ot-cvr-col-sub {
  font-family: "IBM Plex Sans", "Lato", sans-serif;
  font-size: 5pt;
  color: #4A4A4A;
  line-height: 1.3;
  margin-top: 0.5mm;
}

/* ── BOTTOM BAR ── */
.ot-cvr-bottom {
  background: #1A1A1A;
  color: #F0EEE9;
  padding: 2.5mm 5mm;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 11mm;
  flex-shrink: 0;
  box-sizing: border-box;
}

.ot-cvr-barcode {
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  letter-spacing: -0.16em;
  font-size: 16pt;
  line-height: 1;
  color: #F0EEE9;
}

.ot-cvr-author {
  font-family: "Archivo Narrow", "Liberation Sans Narrow", sans-serif;
  font-size: 9pt;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #F0EEE9;
}

.ot-cvr-bottom-r {
  display: flex;
  align-items: center;
  gap: 3mm;
}

.ot-cvr-edition {
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  font-size: 6.5pt;
  letter-spacing: 0.08em;
  color: #BCB7A8;
  text-transform: uppercase;
}

.ot-cvr-codebox {
  background: #C45D2E;
  color: #F0EEE9;
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  font-size: 6.5pt;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 1.2mm 2.5mm;
  text-transform: uppercase;
  white-space: nowrap;
}

.ot-cvr-front-footer {
  min-height: 12mm;
  padding-top: 2.2mm;
  padding-bottom: 2.2mm;
  gap: 3mm;
}

.ot-cvr-front-footer .ot-cvr-bottom-r {
  flex-shrink: 0;
  gap: 2mm;
}

.ot-cvr-front-footer .ot-cvr-edition {
  font-size: 5.6pt;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.ot-cvr-front-req {
  display: flex;
  align-items: center;
  gap: 2mm;
  min-width: 0;
  flex: 1;
}

.ot-cvr-front-chip {
  background: #C45D2E;
  color: #F0EEE9;
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  font-size: 5.8pt;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 1.1mm 2.2mm;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.ot-cvr-front-title {
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  font-size: 6.4pt;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #F0EEE9;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ============================================================
   BACK COVER SPECIFICS
   ============================================================ */

.ot-bc-section {
  display: flex;
  align-items: center;
  gap: 2mm;
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  font-size: 6pt;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #1A1A1A;
  color: #F0EEE9;
  padding: 1.5mm 2.5mm;
  margin: 2mm 0 1.5mm 0;
}

.ot-bc-sec-num {
  background: #D4E228;
  color: #1A1A1A;
  font-weight: 700;
  padding: 0.3mm 1.5mm;
  margin-right: 1mm;
  font-size: 7pt;
  flex-shrink: 0;
}

.ot-bc-sec-label { font-weight: 700; }
.ot-bc-sec-rule  { flex: 1; height: 0.4pt; background: #4A4A4A; }
.ot-bc-sec-right { color: #BCB7A8; }

.ot-bc-headline {
  font-family: "Archivo Narrow", "Liberation Sans Narrow", sans-serif;
  font-size: 11pt;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #1A1A1A;
  line-height: 1.4;
  margin-bottom: 0;
}

.ot-bc-body { margin-bottom: 1mm; padding-top: 2mm; }

.ot-bc-body p {
  font-family: "IBM Plex Sans", "Lato", sans-serif;
  font-size: 7.5pt;
  line-height: 10.5pt;
  margin: 0 0 1.5mm 0;
  color: #1A1A1A;
}

.ot-bc-body p strong {
  font-family: "IBM Plex Sans Condensed", "Liberation Sans Narrow", sans-serif;
  font-weight: 700;
}

/* Specs grid */
.ot-bc-specs {
  display: flex;
  border: 0.5pt solid #BCB7A8;
  margin-bottom: 0.5mm;
}

.ot-bc-spec {
  flex: 1;
  padding: 2mm 2.5mm;
  border-right: 0.5pt solid #BCB7A8;
}

.ot-bc-spec:last-child { border-right: none; }

.ot-bc-spec-label {
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  font-size: 5pt;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4A4A4A;
}

.ot-bc-spec-val {
  font-family: "Archivo Narrow", "Liberation Sans Narrow", sans-serif;
  font-size: 20pt;
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.1;
}

.ot-bc-spec-sub {
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  font-size: 5pt;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4A4A4A;
}

/* Chapter listing */
.ot-bc-ch-wrap {
  display: flex;
  align-items: flex-start;
  gap: 4mm;
}

.ot-bc-ch-cols {
  display: flex;
  gap: 4mm;
  flex: 1;
}

.ot-bc-ch-col { flex: 1; }

.ot-bc-ch {
  display: flex;
  align-items: baseline;
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  font-size: 6pt;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.2mm;
  color: #1A1A1A;
  gap: 1.5mm;
}

.ot-bc-ch-num  { color: #C45D2E; font-weight: 700; flex-shrink: 0; }
.ot-bc-ch-dots { flex: 1; border-bottom: 0.4pt dotted #BCB7A8; margin: 0 0.5mm 1.2mm; }
.ot-bc-ch-name { flex-shrink: 0; }

/* Lumicite stamp */
.ot-bc-lumicite-stamp {
  border: 1.2pt solid #C45D2E;
  padding: 1.5mm 2.5mm;
  text-align: center;
  flex-shrink: 0;
  align-self: flex-end;
}

.ot-bc-stamp-main {
  font-family: "Archivo Narrow", "Liberation Sans Narrow", sans-serif;
  font-size: 7.5pt;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #C45D2E;
  line-height: 1.2;
}

.ot-bc-stamp-sub {
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  font-size: 5.5pt;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #C45D2E;
}

/* Faction strip */
.ot-bc-faction-strip {
  background: #1A1A1A;
  color: #F0EEE9;
  padding: 2mm 5mm;
  display: flex;
  align-items: center;
  gap: 2.5mm;
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  font-size: 6pt;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
  overflow: hidden;
}

.ot-bc-fac-label {
  background: #F0EEE9;
  color: #1A1A1A;
  padding: 0.5mm 2mm;
  font-weight: 700;
  font-size: 6pt;
  margin-right: 1.5mm;
  flex-shrink: 0;
}

.ot-bc-fac-dot { color: #F0EEE9; flex-shrink: 0; }
.ot-bc-fac-hl  { color: #D4E228; }

/* URL band */
.ot-bc-url-band {
  background: #1A1A1A;
  color: #F0EEE9;
  font-family: "Archivo Narrow", "Liberation Sans Narrow", sans-serif;
  font-size: 18pt;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3mm 5mm;
  display: flex;
  align-items: center;
  gap: 2mm;
  flex-shrink: 0;
}

.ot-bc-url-dot { color: #D4E228; font-size: 14pt; flex-shrink: 0; }

/* Back cover bottom bar */
.ot-bc-bottom-bar {
  min-height: 9mm;
  flex-shrink: 0;
}

.ot-bc-bottom-l {
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  font-size: 6pt;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #BCB7A8;
}

/* ── BACK COVER OVERFLOW FIXES ── */

/* Prevent the cover div from splitting across pages */
.ot-back-cover {
  page-break-inside: avoid;
  break-inside: avoid;
}

/* URL band — no hyphenation, no wrapping, smaller to guarantee single line */
.ot-bc-url-band {
  hyphens: none !important;
  word-break: keep-all;
  white-space: nowrap;
  font-size: 15pt;
  overflow: hidden;
}

/* Inherit the hyphens: none to all cover children */
.ot-cover, .ot-back-cover {
  hyphens: none;
}

/* === PLAYER AIDS PRINTABLE PAGES === */

.aid-page {
  page-break-after: always;
  break-after: page;
}

.aid-page-break {
  page-break-after: always;
  break-after: page;
}

/* Case Index Card */
.aid-card-wrap {
  margin: 0 0 2mm 0;
}

.aid-card {
  border: 1pt solid var(--ink);
  padding: 4mm 4mm;
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  font-size: 8pt;
  line-height: 14pt;
}

.aid-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 0.5pt solid var(--ink);
  padding-bottom: 1mm;
  margin-bottom: 2mm;
}

.aid-card-title {
  font-family: "Archivo Narrow", "Liberation Sans Narrow", sans-serif;
  font-size: 10pt;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.aid-card-num {
  font-size: 7.5pt;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.aid-card-row {
  display: flex;
  align-items: baseline;
  gap: 1mm;
  margin-bottom: 1.5mm;
  flex-wrap: nowrap;
}

.aid-card-label {
  font-size: 7.5pt;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

.aid-card-line {
  flex: 1;
  border-bottom: 0.4pt solid var(--rule);
  height: 4mm;
}

.aid-card-line-md {
  flex: 1.6;
  border-bottom: 0.4pt solid var(--rule);
  height: 4mm;
}

.aid-card-line-sm {
  flex: 1;
  border-bottom: 0.4pt solid var(--rule);
  height: 4mm;
}

.aid-card-line-xs {
  flex: 0.5;
  border-bottom: 0.4pt solid var(--rule);
  height: 4mm;
}

.aid-card-anat {
  flex: 1;
  border-bottom: 0.4pt solid var(--rule);
  height: 4mm;
}

.aid-card-track {
  display: flex;
  gap: 2mm;
  align-items: center;
  margin: 2mm 0;
  padding: 1.5mm 2mm;
  border: 0.4pt solid var(--rule);
  background: var(--tint);
  flex-wrap: wrap;
}

.aid-track-label {
  font-size: 7pt;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--orange);
}

.aid-track-cell {
  font-size: 8pt;
  display: inline-flex;
  align-items: baseline;
  gap: 1mm;
}

.aid-track-blank {
  display: inline-block;
  width: 6mm;
  border-bottom: 0.4pt solid var(--ink);
  height: 3mm;
}

.aid-card-foot {
  display: flex;
  gap: 2mm;
  align-items: baseline;
  margin: 2mm 0 1mm 0;
}

.aid-card-foot-label {
  font-size: 7.5pt;
  font-weight: 700;
}

.aid-card-foot-opts {
  font-size: 8pt;
}

.aid-card-divider {
  text-align: center;
  margin: 3mm 0;
  font-size: 7pt;
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
}

.aid-divider-text {
  border-top: 0.5pt dashed var(--rule);
  padding-top: 1mm;
  display: inline-block;
  width: 100%;
}

/* Investigator Sheet */
.aid-sheet {
  border: 1pt solid var(--ink);
  padding: 4mm 5mm;
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  font-size: 8pt;
  line-height: 14pt;
}

.aid-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1pt solid var(--ink);
  padding-bottom: 1.5mm;
  margin-bottom: 3mm;
}

.aid-sheet-title {
  font-family: "Archivo Narrow", "Liberation Sans Narrow", sans-serif;
  font-size: 12pt;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.aid-sheet-stamp {
  font-size: 7pt;
  letter-spacing: 0.15em;
  color: var(--orange);
}

.aid-sheet-section {
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  font-size: 7.5pt;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--orange);
  border-bottom: 0.4pt solid var(--orange);
  padding: 2mm 0 0.5mm 0;
  margin-bottom: 1.5mm;
}

.aid-sheet-row {
  display: flex;
  align-items: baseline;
  gap: 2mm;
  margin-bottom: 1.5mm;
}

.aid-sheet-label {
  font-size: 7.5pt;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.aid-sheet-line {
  flex: 1;
  border-bottom: 0.4pt solid var(--rule);
  height: 4mm;
}

.aid-sheet-line-sm {
  flex: 0.6;
  border-bottom: 0.4pt solid var(--rule);
  height: 4mm;
}

.aid-sheet-opts {
  font-size: 8pt;
  flex: 1;
}

.aid-sheet-quote {
  font-size: 8pt;
  font-style: italic;
  flex: 1;
}

.aid-sheet-attrs {
  display: flex;
  gap: 2mm;
  margin-bottom: 2mm;
}

.aid-attr-cell {
  flex: 1;
  border: 0.5pt solid var(--rule);
  padding: 2mm 1mm;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1mm;
}

.aid-attr-name {
  font-size: 8pt;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.aid-attr-val {
  font-size: 9pt;
  font-family: "Archivo Narrow", "Liberation Sans Narrow", sans-serif;
  font-weight: 700;
}

.aid-log-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 7.5pt;
  margin: 1mm 0 2mm 0;
}

.aid-log-table th,
.aid-log-table td {
  border: 0.4pt solid var(--rule);
  padding: 1.2mm 1.5mm;
  text-align: left;
  vertical-align: top;
}

.aid-log-table th {
  background: var(--tint);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 7pt;
}

.aid-log-table td {
  height: 5mm;
}

/* Quick Reference card */
.aid-quickref {
  border: 1pt solid var(--ink);
  padding: 4mm 5mm;
}

.aid-qr-grid {
  column-count: 2;
  column-gap: 4mm;
  font-size: 8pt;
  line-height: 12pt;
}

.aid-qr-block {
  break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 3mm;
}

.aid-qr-title {
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  font-size: 7.5pt;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--orange);
  border-bottom: 0.4pt solid var(--orange);
  padding-bottom: 0.5mm;
  margin-bottom: 1.5mm;
  text-transform: uppercase;
}

.aid-qr-block ul {
  margin: 0;
  padding-left: 3.5mm;
  list-style-type: square;
}

.aid-qr-block li {
  margin-bottom: 0.7mm;
  font-size: 7.8pt;
}


/* Player aid refinements */
.aid-code-prefix {
  font-style: italic;
  font-size: 9pt;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 700;
}

.aid-code-suffix {
  font-style: italic;
  font-size: 9pt;
  flex-shrink: 0;
  font-weight: 700;
}

.aid-sheet-row .aid-sheet-opts {
  font-size: 7.8pt;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Live track: tighter cells */
.aid-card-track {
  flex-wrap: nowrap;
  font-size: 7.5pt;
}

.aid-card-track .aid-track-cell {
  font-size: 7.5pt;
  flex-shrink: 0;
}

.aid-track-blank {
  width: 5mm;
}

.aid-card-track .aid-track-label {
  font-size: 6.5pt;
  flex-shrink: 0;
}


/* Player aid pagination tightening */
.aid-card {
  padding: 3mm 4mm;
  font-size: 7.5pt;
  line-height: 13pt;
}

.aid-card-row {
  margin-bottom: 1mm;
}

.aid-card-track {
  margin: 1.5mm 0;
  padding: 1.2mm 2mm;
}

.aid-card-foot {
  margin: 1.5mm 0 0.5mm 0;
}

.aid-card-divider {
  margin: 2mm 0;
}

.aid-qr-block {
  margin-bottom: 2mm;
}

.aid-qr-block ul {
  padding-left: 3mm;
}

.aid-qr-block li {
  margin-bottom: 0.4mm;
  font-size: 7.5pt;
  line-height: 10.5pt;
}

.aid-qr-title {
  margin-bottom: 1mm;
  padding-bottom: 0.3mm;
}


/* Final aid-card squeeze for two-per-page layout */
.aid-card {
  padding: 2.5mm 4mm 2mm 4mm;
}
.aid-card-row {
  margin-bottom: 0.7mm;
}
.aid-card-line, .aid-card-line-md, .aid-card-line-sm, .aid-card-line-xs, .aid-card-anat {
  height: 3.5mm;
}
.aid-card-track {
  margin: 1mm 0;
  padding: 1mm 2mm;
}
.aid-card-foot {
  margin: 1mm 0 0.3mm 0;
}
.aid-card-divider {
  margin: 1.5mm 0;
}
.aid-card-head {
  padding-bottom: 0.7mm;
  margin-bottom: 1.2mm;
}


.aid-track-note {
  font-size: 6.5pt;
  font-style: italic;
  color: var(--ink-soft);
  margin-left: auto;
  white-space: nowrap;
}

