/* Case Notes uses the same page edges for the paper sheets and the dark replay. */
.hood {
  --hood-gap: clamp(2.5rem, 5.2vw, 5.75rem);
  --hood-gutter: clamp(1.15rem, 2.25vw, 2.65rem);
  --hood-fine: color-mix(in srgb, var(--cn-ink) 24%, var(--cn-sheet));
  scroll-margin-top: 1rem;
}
.hood :where(h2, h3, h4, p, dl, dt, dd, ol, ul, blockquote) { margin: 0; }
.hood [hidden] { display: none; }
.hood .cn-dark { --cn-fg: var(--cn-sheet); }
.hood-opening, .hood-subhead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 7rem);
}
.hood-opening { margin-block: clamp(1.5rem, 3.2vw, 3.5rem) clamp(1.65rem, 2.8vw, 3rem); }
.hood-opening h2 {
  font: 710 clamp(2.6rem, 4.9vw, 5.5rem)/.96 var(--cn-sans);
  letter-spacing: -.055em;
  text-wrap: balance;
}
.hood-opening > p {
  max-width: 49ch;
  font-size: clamp(1.1rem, 1.54vw, 1.64rem);
  line-height: 1.4;
  letter-spacing: -.014em;
  text-wrap: pretty;
}
.hood-opening .cn-mark { display: inline-block; max-width: 100%; line-height: 1.15; }
.hood-figures, .score-strip { display: grid; }
.hood-figures { grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--cn-stone); color: var(--cn-ink); }
.hood-figures > div, .score-strip > div { display: flex; flex-direction: column; min-width: 0; }
.hood-figures > div {
  position: relative;
  padding: clamp(1.1rem, 2vw, 2.25rem) var(--hood-gutter);
  border-top: 2px solid var(--cn-ink);
}
.hood-figures > div + div::before {
  content: "";
  position: absolute;
  inset: 1.25rem auto 1.25rem 0;
  border-left: 1px solid color-mix(in srgb, var(--cn-ink) 32%, var(--cn-stone));
}
.hood-figures dt, .score-strip dt {
  max-width: 29ch;
  font-size: clamp(.9rem, 1.13vw, 1.1rem);
  line-height: 1.4;
  text-wrap: pretty;
}
.hood-figures dd, .score-strip dd {
  order: -1;
  margin-bottom: .6rem;
  font: 590 clamp(2.5rem, 4vw, 4.5rem)/1 var(--cn-sans);
  letter-spacing: -.055em;
  font-variant-numeric: lining-nums tabular-nums;
}
.hood-provenance { margin-block: .5rem 1.5rem; color: var(--cn-muted); font-size: .82rem; }
.hood-heading {
  font: 680 clamp(1.9rem, 3.1vw, 3.55rem)/1.03 var(--cn-sans);
  letter-spacing: -.045em;
  text-wrap: balance;
}
.hood-principles, .hood-example { margin-top: var(--hood-gap); }
.principle-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(1.35rem, 2vw, 2.35rem);
  border-top: 1px solid var(--cn-rule);
}
.principle { padding: clamp(1.25rem, 2vw, 2rem) var(--hood-gutter) 0; }
.principle:first-child { padding-inline-start: 0; }
.principle:last-child { padding-inline-end: 0; }
.principle + .principle { border-left: 1px solid var(--hood-fine); }
.principle h4, .audit-ledger h4, .audit-misses h4 {
  font: 650 clamp(1.3rem, 1.85vw, 2.15rem)/1.12 var(--cn-sans);
  letter-spacing: -.035em;
  text-wrap: balance;
}
.principle p, .rule-topics, .hood-subhead p, .audit-ledger dd:last-child, .audit-misses p, .audit-misses li, .audit-detail p {
  font-size: clamp(1rem, 1.13vw, 1.14rem);
  line-height: 1.5;
}
.principle p { max-width: 47ch; margin-top: .7rem; }
.principle-note { color: var(--cn-muted); }
.principle-note::before {
  content: ""; display: block; width: 2rem; margin-block: 1rem .75rem; border-top: 1px solid var(--cn-rule);
}
.rule-topics { margin-block: 1rem; }
.rule-topics > div {
  display: grid; grid-template-columns: 7.1em minmax(0, 1fr); gap: .65rem;
  padding-block: .45rem; border-top: 1px solid var(--hood-fine);
}
.rule-topics dt { font-weight: 650; }
.principle .cn-source-link { display: inline-block; margin-top: .85rem; }
.rule-labels { display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin-top: .9rem; list-style: none; }
.rule-labels li { display: flex; align-items: center; }

.principle-figure {
  display: block; width: clamp(6.5rem, 9vw, 8.25rem); height: auto;
  margin: 0 0 1.1rem; mix-blend-mode: multiply;
}

.hood-subhead { align-items: end; gap: 1rem 3rem; margin-bottom: clamp(1.25rem, 2vw, 2.1rem); }
.hood-subhead p { max-width: 50ch; color: var(--cn-muted); }
.hood-example { padding-bottom: var(--hood-gap); }
.hood-example .hood-subhead { grid-template-columns: minmax(0, 1fr); }
.claim-fold { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); border: 1px solid var(--cn-ink); }
.claim-face { display: flex; flex-direction: column; padding: clamp(1.25rem, 2.7vw, 3rem); }
.claim-meta { padding: .45rem .75rem; color: var(--cn-muted); font-size: .85rem; line-height: 1.7; }
.claim-meta .sw-claim-label { margin-inline-end: .3rem; }
.claim-text {
  max-width: 29ch;
  margin-block: clamp(1.35rem, 2.5vw, 2.8rem);
  font: 550 clamp(1.42rem, 2.15vw, 2.5rem)/1.12 var(--cn-sans);
  letter-spacing: -.033em;
  text-wrap: pretty;
}
.claim-credit {
  width: fit-content; margin-top: auto;
  color: var(--cn-muted); font-size: .87rem; text-decoration-thickness: 1px; text-underline-offset: .25em;
}
.claim-credit:hover { color: var(--cn-fg); }
.claim-inspection { min-width: 0; }
.claim-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--cn-rule); }
.claim-tabs button {
  position: relative; flex: 1; min-height: 3.4rem; padding: .65rem .3rem; border: 0;
  background: transparent; color: var(--cn-muted); font-weight: 590; cursor: pointer;
}
.claim-tabs button[aria-selected="true"] { color: var(--cn-ink); }
.claim-tabs button[aria-selected="true"]::after {
  content: ""; position: absolute; inset: auto 0 -1px; height: 4px; background: var(--cn-coral);
}
.claim-tabs button:focus-visible { z-index: 1; outline-offset: -5px; }
.claim-tabs button:hover { background: color-mix(in srgb, var(--cn-stone) 18%, var(--cn-sheet)); }
.claim-pane { padding: clamp(1.25rem, 2.6vw, 2.8rem); }
.claim-pane:focus-visible { outline: 2px solid var(--cn-focus); outline-offset: -4px; }
.claim-pane h4 { margin-bottom: .7rem; }
.claim-quote {
  max-width: 39ch; padding-inline-start: clamp(.9rem, 1.4vw, 1.55rem); border-left: 2px solid var(--cn-coral);
  font: 400 clamp(1.35rem, 1.95vw, 2.25rem)/1.36 var(--cn-serif); letter-spacing: -.014em;
}
/* A 540 × 80 window starting at (120, 340) on the original 770 px paper.
   The marked words span two printed lines near the end of the abstract. */
.claim-facsimile {
  display: block; position: relative; isolation: isolate; overflow: hidden;
  width: 100%; max-width: 33.75rem; aspect-ratio: 540 / 80; margin-top: 1.1rem;
  box-shadow: inset 0 1px var(--hood-fine), inset 0 -1px var(--hood-fine);
  background: color-mix(in srgb, var(--cn-stone) 23%, var(--cn-sheet));
}
.claim-facsimile img {
  position: absolute; left: calc(-100% * 120 / 540); top: calc(-100% * 340 / 80);
  width: calc(100% * 770 / 540); max-width: none; height: auto; mix-blend-mode: multiply;
}
.claim-facsimile::before, .claim-facsimile::after {
  content: ""; position: absolute; z-index: -1; height: 18%; background: var(--cn-coral);
}
.claim-facsimile::before { left: 68.3%; top: 41.25%; width: 25.6%; }
.claim-facsimile::after { left: 3.7%; top: 60%; width: 6.9%; }
.claim-pane .claim-foot { margin-top: 1.15rem; color: var(--cn-muted); font-size: .94rem; line-height: 1.45; }
.claim-facsimile + .claim-foot { margin-top: .6rem; }
.claim-limits { margin-top: .8rem; max-width: 37rem; }
.claim-limits > div { display: flex; justify-content: space-between; gap: 1rem; padding: .27rem 0; border-top: 1px solid var(--hood-fine); }
.claim-limits dd { font-weight: 600; text-align: end; }
.claim-history { list-style: none; padding: 0; }
.claim-history li { position: relative; padding: 0 0 1rem 1.15rem; border-inline-start: 1px solid var(--cn-rule); }
.claim-history li:last-child { padding-bottom: 0; border-color: transparent; }
.claim-history li::before {
  content: ""; position: absolute; top: .43rem; left: -.27rem; width: .5rem; height: .5rem;
  border: 1px solid var(--cn-ink); border-radius: 50%; background: var(--cn-sheet);
}
.claim-history li:last-child::before { background: var(--cn-coral); }

.hood-results { padding-block: var(--hood-gap); }
.score-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-block: 1px solid var(--cn-rule);
}
.score-strip > div { padding: 1.35rem var(--hood-gutter) 1.5rem; }
.score-strip > div:first-child { padding-inline-start: 0; }
.score-strip > div + div { border-left: 1px solid var(--hood-fine); }
.score-strip dd { font-size: clamp(1.95rem, 2.85vw, 3.4rem); white-space: nowrap; }
.score-strip progress, .score-zero { display: block; width: 100%; height: .28rem; margin: .8rem 0 .18rem; }
.score-strip progress { appearance: none; border: 0; background: var(--cn-stone); color: var(--cn-ink); }
.score-strip progress::-webkit-progress-bar { background: var(--cn-stone); }
.score-strip progress::-webkit-progress-value { background: var(--cn-ink); }
.score-strip progress::-moz-progress-bar { background: var(--cn-ink); }
.score-zero {
  background: linear-gradient(90deg, var(--cn-ink) 0 2px, transparent 2px),
    linear-gradient(var(--cn-stone), var(--cn-stone)) 0 50% / 100% 1px no-repeat;
}
.audit-ledger, .audit-misses {
  display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr);
  gap: clamp(1.3rem, 4vw, 4.5rem);
}
.audit-ledger { margin-block: clamp(2rem, 3.4vw, 3.85rem); }
.audit-ledger h4 { max-width: 16ch; }
.audit-ledger dl > div { display: grid; grid-template-columns: 7.5rem minmax(0,1fr); gap: .25rem 1.35rem; padding-block: .9rem; }
.audit-ledger dl > div:first-child { padding-top: 0; }
.audit-ledger dl > div + div { border-top: 1px solid var(--hood-fine); }
.audit-ledger dt { grid-column: 2; font-weight: 660; }
.audit-ledger .audit-delta { grid-column: 1; grid-row: 1 / span 2; }
.audit-delta {
  font: 580 clamp(1.5rem, 2.25vw, 2.4rem)/1.1 var(--cn-sans); letter-spacing: -.05em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.audit-ledger dd:last-child { grid-column: 2; color: var(--cn-muted); }
.audit-misses { padding: var(--hood-gutter); background: color-mix(in srgb, var(--cn-stone) 46%, var(--cn-sheet)); border-inline-start: 4px solid var(--cn-coral); }
.audit-misses h4 { margin-bottom: .7rem; }
.audit-misses ul { padding-inline-start: 1.2rem; }
.audit-misses li + li { margin-top: .65rem; }
.audit-method { margin-top: clamp(1.75rem, 2.8vw, 3.2rem); border-block: 1px solid var(--cn-rule); }
.audit-method > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0;
  list-style: none; font: 630 clamp(1.15rem, 1.6vw, 1.65rem)/1.2 var(--cn-sans); letter-spacing: -.025em; cursor: pointer;
}
.audit-method > summary::-webkit-details-marker { display: none; }
.audit-method > summary::after {
  content: ""; width: .85rem; height: .85rem; flex: none; margin-right: .35rem;
  background: linear-gradient(currentColor,currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor,currentColor) center / 1.5px 100% no-repeat;
}
.audit-method[open] > summary::after { background-size: 100% 1.5px, 0 0; }
.audit-method > summary:hover { text-decoration: underline; text-underline-offset: .2em; }
.audit-detail { padding-block: .8rem 1.75rem; }
.audit-criteria { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem var(--hood-gutter); }
.audit-criteria p { max-width: 60ch; }
.audit-table { width: 100%; margin-block: 1.4rem; border-collapse: collapse; }
.audit-table :is(th, td) { padding: .65rem .85rem .65rem 0; border-bottom: 1px solid var(--hood-fine); text-align: start; vertical-align: top; }
.audit-table thead th { border-block: 1px solid var(--cn-ink); color: var(--cn-muted); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.audit-table tbody th { width: 24%; font-weight: 600; }
.audit-table tbody td:last-child { width: 24%; font-weight: 580; }
.audit-qualification { display: inline-block; font-weight: 400; color: var(--cn-muted); }
.audit-miss { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--cn-coral); text-underline-offset: .21em; }
@media (45rem < width <= 64rem) {
  .rule-topics > div { grid-template-columns: 1fr; gap: .1rem; }
}
@media (max-width: 56rem) {
  .hood-opening, .hood-subhead { grid-template-columns: 1fr; gap: 1rem; }
  .hood-opening > p { max-width: 63ch; }
  .principle { padding-inline: 1rem; }
  .score-strip > div { padding-inline: .85rem; }
  .audit-ledger, .audit-misses { grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); gap: 1.25rem; }
  .audit-ledger dl > div { grid-template-columns: 5.8rem 1fr; gap: .2rem .8rem; }
}
@media (max-width: 45rem) {
  .hood-figures { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hood-figures > div:nth-child(n+3) { border-top: 1px solid var(--cn-rule); }
  .hood-figures > div:nth-child(3)::before { display: none; }
  .principle-columns, .claim-fold, .audit-ledger, .audit-misses, .audit-criteria { grid-template-columns: minmax(0,1fr); }
  .principle {
    display: grid; grid-template-columns: minmax(0, 1fr) clamp(4.8rem, 21vw, 7rem);
    column-gap: 1rem; align-items: center; padding: 1.25rem 0;
  }
  .principle h4 { grid-area: 1 / 1; }
  .principle > :is(p, dl, ul, a) { grid-column: 1 / -1; }
  .principle .cn-source-link { justify-self: start; }
  .principle + .principle { border-left: 0; border-top: 1px solid var(--hood-fine); }
  .principle:last-child { padding-bottom: 0; }
  .principle-figure { grid-area: 1 / 2; width: 100%; margin: 0; }
  .claim-face { padding: 1.4rem; }
  .claim-text { max-width: 34ch; }
  .score-strip { display: block; }
  .score-strip > div, .score-strip > div:first-child {
    display: grid; grid-template-columns: minmax(5.75rem, .7fr) minmax(0, 1.6fr); align-items: center; gap: 1.2rem; padding: .85rem .15rem;
  }
  .score-strip > div + div { border-left: 0; border-top: 1px solid var(--hood-fine); }
  .score-strip dd { margin: 0; }
  .score-strip progress, .score-zero { margin: .4rem 0 0; }
  .audit-ledger h4 { max-width: 24ch; }
  .audit-misses { gap: .9rem; }
  .audit-table { font-size: .91rem; line-height: 1.35; }
  .audit-table :is(th,td) { padding: .55rem .4rem .55rem 0; overflow-wrap: anywhere; }
  .audit-table tbody th { width: 25%; }
  .audit-table tbody td:last-child { width: 25%; }
}
