.chapter {
  --reader-ink: #30253a;
  --reader-muted: #625a63;
  --reader-rust: #943a2d;
  --reader-rule: #d9d2c7;
  --reader-sheet: #fffdf8;
  --reader-tint: #f0eae0;
  --reader-display: Georgia, "Times New Roman", serif;
  container: strategy-chapter / inline-size;
  color: var(--reader-ink);
  max-inline-size: 100%;
  min-inline-size: 0;
}
.chapter + .chapter {
  border-block-start: 1px solid var(--reader-rule);
  margin-block-start: clamp(3.25rem, 7vw, 6rem);
  padding-block-start: clamp(2.25rem, 4vw, 3.5rem);
}
.chapter :is(h2, h3, h4, p, ul, ol) { margin: 0; }
.chapter :is(h2, h3, h4) {
  color: var(--reader-ink);
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}
.chapter h2 {
  max-inline-size: 23ch;
  margin-block-end: clamp(1.8rem, 4vw, 3.1rem);
  font: normal 500 clamp(2.1rem, 4vw, 3.7rem) / 1.02 var(--reader-display);
  letter-spacing: -.045em;
}
.chapter h3 {
  max-inline-size: 35ch;
  margin-block-end: 1.3rem;
  font-family: inherit;
  font-size: clamp(1.45rem, 2.3vw, 2.1rem);
  font-weight: 650;
  line-height: 1.13;
  letter-spacing: -.035em;
}
.chapter h4 {
  margin-block: 1.9rem .65rem;
  font-size: 1.125rem;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -.019em;
}
.chapter p, .chapter li {
  font-size: clamp(1rem, .97rem + .19vw, 1.09rem);
  line-height: 1.65;
  overflow-wrap: break-word;
}
.chapter p + p { margin-block-start: .95rem; }
.chapter-part > :is(p, ul, ol) { max-inline-size: 75ch; }
.chapter .part-label {
  margin: 0 0 .62rem;
  color: var(--reader-rust);
  font-size: .79rem;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: .07em;
}
.chapter-part + .chapter-part {
  margin-block-start: clamp(2.75rem, 4vw, 4rem);
  border-block-start: 1px solid var(--reader-rule);
  padding-block-start: clamp(1.85rem, 3vw, 2.75rem);
}
.chapter :is(ol, ul) { padding-inline-start: 1.45rem; }
.chapter li { padding-inline-start: .18rem; }
.chapter li + li { margin-block-start: .54rem; }
.chapter li::marker { font-weight: 700; color: var(--reader-rust); }
.chapter :is(ol, ul) + p { margin-block-start: 1.1rem; }
.chapter strong { font-weight: 700; }
.chapter .callout {
  box-sizing: border-box;
  margin-block: 1.35rem;
  padding: 1.05rem 1.35rem;
  border-inline-start: 3px solid #b36e32;
  background: #f3ebdb;
  color: #433428;
  font-family: var(--reader-display);
  font-size: clamp(1.15rem, 1.65vw, 1.4rem);
  line-height: 1.43;
}
.chapter a {
  color: var(--reader-rust);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: #b68e7a;
  text-underline-offset: .19em;
  overflow-wrap: anywhere;
}
.chapter a:hover { text-decoration-color: currentColor; }
.chapter :is(a, .table-wrap):focus-visible {
  outline: 2px solid var(--reader-rust);
  outline-offset: 3px;
}
.chapter .source-note {
  max-inline-size: none;
  border-block-start: 1px dashed var(--reader-rule);
  margin-block-start: 1.5rem;
  padding-block-start: .65rem;
  color: var(--reader-muted);
  font-size: .875rem;
  line-height: 1.7;
}
.chapter .source-note a { color: inherit; }
.chapter .table-wrap {
  box-sizing: border-box;
  position: relative;
  margin-block: 1.05rem 1.55rem;
  max-inline-size: 100%;
  min-inline-size: 0;
  overflow-x: auto;
  border: 1px solid var(--reader-rule);
  border-radius: .55rem;
  background: var(--reader-sheet);
}
.chapter table {
  border-collapse: separate;
  border-spacing: 0;
  inline-size: 100%;
  color: var(--reader-ink);
  font-family: inherit;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.48;
}
.chapter table :is(th, td) {
  padding: .8rem .85rem;
  text-align: start;
  vertical-align: top;
  overflow-wrap: break-word;
  hyphens: auto;
}
.chapter thead th {
  color: #3e333b;
  background: var(--reader-tint);
  font-weight: 700;
  font-size: .9rem;
  line-height: 1.33;
  border-block-end: 1px solid var(--reader-rule);
}
.chapter tbody th { font-weight: 650; }
.chapter tbody tr + tr > * { border-block-start: 1px solid #e4ded4; }
.chapter table tr > * + * { border-inline-start: 1px solid #e8e2d8; }
.chapter [data-cols="2"] thead th:first-child { width: 29%; }
.chapter [data-cols="3"] thead th:first-child { width: 24%; }
.chapter [data-cols="4"] thead th:first-child { width: 21%; }
.chapter [data-table="portfolio"] thead th:nth-child(2) { width: 14%; }
.chapter [data-table="portfolio"] thead th:nth-child(3) { width: 19%; }
.chapter [data-table^="weeks-"] thead th:first-child,
.chapter [data-table="action-plan"] thead th:first-child { width: 12%; }
.chapter [data-table="action-plan"] thead th:nth-child(2) { width: 20%; }
.chapter :is([data-table="budget"], [data-table="channel-limits"]) thead th:first-child {
  width: 40%;
}
.chapter :is([data-table="budget"], [data-table="channel-limits"]) td {
  white-space: nowrap;
}
.chapter [data-table="budget"] tbody tr:first-child > * { background: #faf0d9; }
.chapter [data-table="economics"] tbody tr:last-child > * { background: #f6efe0; }

/* Keep the native header row available to assistive technology. Body cells
   repeat its labels visually when a comparison becomes a stack of records. */
@container strategy-chapter (max-width: 41rem) {
  .chapter .table-wrap { border: 0; border-radius: 0; overflow: visible; background: none; }
  .chapter table, .chapter tbody { display: block; }
  .chapter thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .chapter tbody tr {
    display: block;
    overflow: hidden;
    border: 1px solid var(--reader-rule);
    border-radius: .55rem;
    background: var(--reader-sheet);
  }
  .chapter tbody tr + tr { margin-block-start: .68rem; }
  .chapter tbody tr :is(th, td) {
    box-sizing: border-box;
    display: block;
    border: 0;
    padding: .7rem .9rem;
    width: auto;
  }
  .chapter tbody th {
    background: var(--reader-tint);
    color: #3e333b;
    font-weight: 700;
  }
  .chapter tbody td + td { border-block-start: 1px solid #eee8dd; }
  .chapter tbody td::before {
    content: attr(data-label);
    display: block;
    margin-block-end: .13rem;
    color: var(--reader-muted);
    font-size: .85rem;
    line-height: 1.4;
    font-weight: 650;
  }
  .chapter :is([data-table="budget"], [data-table="channel-limits"]) tbody tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .chapter :is([data-table="budget"], [data-table="channel-limits"]) tbody th { grid-column: 1 / -1; }
  .chapter :is([data-table="budget"], [data-table="channel-limits"]) tbody td {
    padding-inline: clamp(.35rem, 1.8cqi, .8rem);
    border: 0;
    white-space: normal;
  }
  .chapter :is([data-table="budget"], [data-table="channel-limits"]) tbody td + td {
    border-inline-start: 1px solid var(--reader-rule);
  }
  .chapter :is([data-table="budget"], [data-table="channel-limits"]) tbody td::before {
    font-size: .8rem;
    overflow-wrap: anywhere;
  }
}
@media print {
  .chapter { container-type: normal; }
  .chapter + .chapter { break-before: page; margin: 0; padding: 0; border: 0; }
  .chapter h2 { font-size: 24pt; margin-block-end: 14pt; }
  .chapter h3 { font-size: 17pt; }
  .chapter h4 { font-size: 12pt; }
  .chapter :is(h2, h3, h4, .part-label) { break-after: avoid; }
  .chapter p, .chapter li { font-size: 10.5pt; line-height: 1.4; }
  .chapter .table-wrap { overflow: visible; border-radius: 0; }
  .chapter table, .chapter thead th { font-size: 9pt; }
  .chapter tr { break-inside: avoid; }
  .chapter .callout, .chapter .source-note { break-inside: avoid; }
  .chapter .source-note { font-size: 8.5pt; }
  .chapter-part + .chapter-part { margin-block-start: 16pt; padding-block-start: 12pt; }
}
