@charset "utf-8";
/* =====================================================================
   column-pnx-wamnet2026 — remake layout
   Ledger-paper look (ink / navy / red pen on squared paper).
   This sheet replaces column.css for this page only. site-chapters.css
   loads before it and supplies the article bar, contents band and chapter
   bands (.site-*); this sheet keeps the article's own parts and adjustments.
   site-common.css still loads after it and supplies the shared masthead,
   loader, back-to-top button, tooltip and image dialog.
   ===================================================================== */

/* Article aliases read the opt-in ledger theme in site-common.css.
   Keep site-* definitions there; do not create aliases in both directions. */
html.wr-remake {
  --ink: var(--site-ink);
  --ink-2: var(--site-ink-soft);
  --muted: var(--site-muted);
  --paper: var(--site-ground);
  --paper-2: var(--site-tint);
  --card: var(--site-sheet);
  --navy: var(--site-accent);
  --navy-dark: var(--site-accent-dark);
  --navy-tint: var(--site-accent-tint);
  --slate: var(--site-slate);
  --pen: var(--site-pen);
  --pen-soft: var(--site-pen-soft);
  --pen-tint: var(--site-pen-tint);
  --brown: var(--site-brown);
  --green: var(--site-green);
  --on-dark: var(--site-on-dark);
  --on-dark-2: var(--site-on-dark-muted);
  --ghost: var(--site-ghost);
  --line: var(--site-line);
  --line-soft: var(--site-line-soft);
  --grid: var(--site-grid);
  --f-sans: var(--site-sans);
  --f-serif: var(--site-serif);
  --f-mono: var(--site-mono);
  --gutter: var(--site-gutter);

  /* Height of this article's bar; site-chapters.css reads it for the bar, progress line and marks. */
  --site-chapterbar-h: 58px;
  scroll-padding-top: calc(var(--site-chapterbar-h) + 16px);
}

.wr-remake :is(h1, h2, h3) { word-break: auto-phrase; text-wrap: balance; }
.wr-remake p { text-wrap: pretty; }
.wr-remake a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: .22em; }
.wr-remake a:hover { color: var(--navy-dark); }
.wr-remake button { font: inherit; }
.wr-remake img { max-width: 100%; height: auto; }

.wr-label {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- hero ---------- */
.wr-hero { padding: clamp(48px, 7vw, 96px) 0 56px; }
.wr-hero__grid {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 40px 64px;
}
.wr-hero__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.wr-hero__main > * { margin: 0; }
.wr-hero__eyebrow { font-size: 13px; letter-spacing: .12em; color: var(--muted); }
.wr-hero__kicker { font-size: clamp(15px, 1.5vw, 17px); color: var(--ink-2); letter-spacing: .04em; }
.wr-hero__title {
  color: var(--site-heading);
  font-family: var(--f-serif);
  font-weight: 800;
  font-size: clamp(34px, 6vw, 80px);
  line-height: 1.22;
  letter-spacing: .01em;
}
.wr-hero__line { display: block; white-space: nowrap; }
.wr-hero__lead { font-size: clamp(16px, 1.6vw, 18px); max-width: 42em; color: var(--ink-2); line-height: 1.9; }
.wr-hero__lead strong { color: var(--ink); }
.wr-hero__meta {
  display: flex; flex-wrap: wrap; gap: 6px 20px;
  font-family: var(--f-mono); font-size: 12.5px; color: var(--muted); line-height: 1.7;
}
.wr-hero__meta span { white-space: nowrap; }
.wr-hero__meta [data-reading-time] { color: var(--ink); }

.wr-slip {
  flex: 1 1 320px; min-width: 0;
  background: var(--card);
  border: var(--site-border-width) solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 24px 26px;
  display: flex; flex-direction: column; gap: 14px;
}
.wr-slip__head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px dashed rgba(24, 32, 46, .35); padding-bottom: 10px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .18em;
}
.wr-slip__head span + span { color: var(--muted); letter-spacing: 0; }
.wr-slip__q { margin: 0; font-family: var(--f-serif); font-weight: 800; font-size: 23px; line-height: 1.55; }
.wr-slip__points { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.wr-slip__points div { border-top: 1px dashed rgba(24, 32, 46, .35); padding-top: 10px; }
.wr-slip__points dt { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .16em; color: var(--muted); }
.wr-slip__points dd { margin: 2px 0 0; font-size: 14.5px; line-height: 1.7; font-weight: 700; }

/* ---------- tally strip ---------- */
.wr-tally { background: var(--ink); color: var(--on-dark); border-block: 2px solid var(--ink); }
.wr-tally__list {
  list-style: none; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
}
.wr-tally__item {
  padding: 26px 20px 24px 0;
  display: flex; flex-direction: column; gap: 8px;
  border-right: 1px solid rgba(245, 243, 236, .18);
}
.wr-tally__item + .wr-tally__item { padding-left: 20px; }
.wr-tally__num { display: flex; align-items: baseline; gap: 6px; font-family: var(--f-mono); }
.wr-tally__num b { font-weight: 700; font-size: 44px; line-height: 1; }
.wr-tally__num small { font-size: 15px; }
.wr-tally__item.is-alert .wr-tally__num b { color: var(--pen-soft); }
.wr-tally__label { font-size: 14px; line-height: 1.6; color: var(--on-dark-2); }

.wr-ch__title, .wr-band__title {
  color: var(--site-heading);
  margin: 0;
  font-family: var(--f-serif);
  font-weight: 800;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.4;
}

/* ---------- prose ---------- */
.wr-prose > * { margin-top: 0; margin-bottom: 0; }
.wr-prose > * + * { margin-top: calc(3 * var(--site-space-unit)); }
.wr-prose > .wr-ch__title + * { margin-top: calc(4 * var(--site-space-unit)); }
.wr-prose > h3 {
  color: var(--site-heading);
  margin-top: calc(7 * var(--site-space-unit));
  font-family: var(--f-serif);
  font-weight: 800;
  font-size: clamp(20px, 2.1vw, 24px);
  line-height: 1.5;
  display: flex; align-items: baseline; gap: 14px;
}
.wr-prose > h3::before {
  content: ""; flex: none; width: 22px; height: 2px; background: var(--ink); transform: translateY(-.35em);
}
:where(.wr-prose) p { margin: 0; }
.wr-prose strong { font-weight: 700; }
.wr-remake .u-marker-primary {
  background: linear-gradient(transparent 64%, rgba(184, 50, 28, .2) 64%);
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.wr-remake .wam-note, .wr-remake .reference-note { font-size: 14px; color: var(--muted); line-height: 1.8; }
.wr-remake .wam-fn { font-size: 14px; color: var(--ink-2); line-height: 1.8; }
.wr-remake .wam-fn strong { color: var(--ink); }
.wr-remake .wam-fn--error strong { color: var(--pen); }
.wr-remake code { font-family: var(--f-mono); font-size: .9em; background: var(--paper-2); padding: 0 .3em; }

.wr-remake .wam-source-link {
  font-size: .86em;
  text-decoration-style: dotted;
  white-space: nowrap;
}
.wr-remake .wam-ref {
  font-size: .78em; font-weight: 700; color: var(--pen); text-decoration: none;
  vertical-align: .25em; margin-left: 1px;
}

/* calculation link “式” */
.wr-remake .wam-calc-ref {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 24px; padding: 0 5px; margin-left: 4px;
  border: var(--site-border-width) solid var(--navy);
  color: var(--navy); background: var(--card);
  font-size: 12px; font-weight: 700; line-height: 1; text-decoration: none;
  vertical-align: .1em;
  transition: background .2s, color .2s, box-shadow .2s, transform .2s;
}
.wr-remake .wam-calc-ref:hover, .wr-remake .wam-calc-ref:focus-visible {
  background: var(--navy); color: #fff; box-shadow: 2px 2px 0 var(--ink); transform: translate(-1px, -1px);
}

/* ---------- boxes ---------- */
.wr-remake .scope-note,
.wr-remake .warning,
.wr-remake .wam-wrapup {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 22px 24px;
}
.wr-remake .scope-note h3 { color: var(--site-heading); margin: 0 0 8px; font-size: 17px; font-family: var(--f-sans); font-weight: 700; }
.wr-remake .scope-note p { font-size: 14.5px; color: var(--ink-2); line-height: 1.85; }
.wr-remake .warning > strong {
  display: block; margin-bottom: 6px;
  font-size: 12.5px; letter-spacing: .12em; color: var(--pen);
}
.wr-remake .warning p { font-size: var(--site-body-size); }
.wr-remake .wam-wrapup { border: var(--site-border-width) solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.wr-remake .wam-wrapup > strong { color: var(--site-heading); display: block; margin-bottom: 8px; font-family: var(--f-serif); font-size: 19px; }

.wr-remake .core {
  background: var(--ink); color: var(--on-dark);
  padding: 20px 24px;
  display: flex; flex-direction: column; gap: 6px;
}
.wr-prose > .core { margin-top: 40px; }
.wr-remake .core-label { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .16em; color: var(--on-dark-2); }
.wr-remake .core p { font-family: var(--f-serif); font-weight: 600; font-size: 18px; line-height: 1.75; }

/* formula ledger */
.wr-remake .wam-formula {
  background: var(--card);
  border: var(--site-border-width) solid var(--ink);
  padding: 22px 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.wr-remake .wam-formula > * { margin: 0; }
.wr-remake .wam-formula__label,
.wr-remake .wam-estimate__label { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em; color: var(--muted); margin: 0; }
.wr-remake .wam-formula__title,
.wr-remake .wam-estimate__title { color: var(--site-heading); margin: 0; font-family: var(--f-serif); font-weight: 800; font-size: 20px; line-height: 1.5; }
.wr-remake .wam-formula__expr {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  padding: 16px 18px;
  background: var(--paper);
  border-block: 1px dashed rgba(24, 32, 46, .35);
  font-size: 16.5px;
}
.wr-remake .wam-formula__lhs { font-weight: 700; }
.wr-remake .wam-formula__eq { font-family: var(--f-mono); font-weight: 700; }
.wr-remake .wam-formula__expr .wam-frac { font-size: 15px; }
.wr-remake .wam-formula__term { padding: 4px 10px; border: var(--site-border-width) solid var(--ink); background: var(--card); font-weight: 700; }
.wr-remake .wam-formula__notes { margin: 0; padding-left: 1.2em; font-size: 14.5px; line-height: 1.8; }
.wr-remake .wam-formula__quote { margin: 0; padding: 12px 0 0; border-top: 1px dashed var(--line); font-size: 14px; color: var(--ink-2); }
.wr-remake .wam-formula__quote p { margin: 0; }
.wr-remake .wam-formula__src { font-size: 13px; color: var(--muted); }

.wr-remake .wam-estimate {
  border: 1.5px dashed var(--ink);
  padding: 20px 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.wr-remake .wam-estimate > * { margin: 0; }
.wr-remake .wam-estimate p, .wr-remake .wam-estimate li { font-size: 15px; }
.wr-remake .wam-estimate ul { padding-left: 1.2em; }

/* fractions and worked calculations */
.wr-remake .wam-frac {
  display: inline-flex; flex-direction: column; align-items: stretch;
  vertical-align: middle; text-align: center; line-height: 1.45;
  margin: 0 .2em;
}
.wr-remake .wam-frac__num { padding: 0 .35em 2px; border-bottom: var(--site-border-width) solid currentColor; }
.wr-remake .wam-frac__den { padding: 2px .35em 0; }
.wr-remake .wam-u { font-size: .68em; vertical-align: baseline; margin-left: 1px; color: var(--muted); }

.wr-remake .wam-math {
  margin: 10px 0;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px dashed rgba(24, 32, 46, .35);
  font-family: var(--f-mono);
  font-size: 14px;
  overflow-x: auto;
}
.wr-remake .wam-math__line { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 4px 0; }
.wr-remake .wam-math__line + .wam-math__line { border-top: 1px dotted var(--line); }
.wr-remake .wam-math__label {
  flex: none; min-width: 3.4em;
  font-family: var(--f-sans); font-size: 12px; color: var(--muted);
}
.wr-remake .wam-math__expr { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.wr-remake .wam-math__raw { color: var(--muted); }
.wr-remake .wam-math__result { font-size: 1.1em; color: var(--ink); }
.wr-remake .wam-math-inline { font-family: var(--f-mono); font-size: .92em; white-space: nowrap; }

.wr-remake .wam-key { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 12.5px; }
.wr-remake .wam-key__title { color: var(--muted); }
.wr-remake .wam-v { font-weight: 700; }
.wr-remake .wam-v--move, .wr-remake .wam-v--bal { color: var(--navy); }
.wr-remake .wam-v--leave, .wr-remake .wam-v--add { color: var(--brown); }
.wr-remake .wam-v--est { color: var(--pen); text-decoration: underline dotted 1.5px; text-underline-offset: .22em; }
.wr-remake .wam-v--wage { text-decoration: underline 1.5px; text-underline-offset: .22em; }
.wr-remake .wam-v--co { color: var(--green); }

/* ---------- tables ---------- */
.wr-remake .table-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}
.wr-remake .table-wrap:focus-visible { outline-offset: 0; }
.wr-remake table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.6; }
.wr-remake caption {
  caption-side: top; text-align: left;
  padding: 12px 16px;
  border-bottom: var(--site-border-width) solid var(--ink);
  font-weight: 700; font-size: 14px;
}
.wr-remake :is(th, td) { padding: 9px 14px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: middle; }
.wr-remake thead th {
  font-weight: 400; font-size: 12.5px; color: var(--muted);
  background: var(--paper-2); border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.wr-remake tbody th { font-weight: 700; }
.wr-remake tbody td:first-child { font-weight: 700; white-space: nowrap; }
.wr-remake .wam-num { font-family: var(--f-mono); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wr-remake thead .wam-num { text-align: right; }
.wr-remake .wam-num small { font-family: var(--f-sans); color: var(--muted); }
.wr-remake .wam-total td { border-top: var(--site-border-width) solid var(--ink); font-weight: 700; }
.wr-remake .wam-hit { background: var(--navy); color: #fff; }
.wr-remake .wam-hit .wam-calc-ref { border-color: #fff; }
.wr-remake .wam-rep { font-weight: 700; }
.wr-remake .wam-flag { color: var(--pen); font-weight: 700; }
.wr-remake .wam-reason { font-size: 13.5px; min-width: 14em; }
.wr-remake .wam-na {
  display: inline-block; padding: 0 7px; line-height: 20px;
  border: 1px dashed rgba(24, 32, 46, .5);
  font-family: var(--f-sans); font-size: 12px; color: var(--muted); font-weight: 400;
}
.wr-remake .wam-zero { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.wr-remake .wam-monthly-table { min-width: 700px; }

.wr-remake .wam-barcell { width: 34%; min-width: 150px; }
.wr-remake .wam-bars { display: flex; flex-direction: column; gap: 3px; }
.wr-remake .wam-bar { display: block; height: 6px; background: var(--navy); }
.wr-remake .wam-bar--y2024 { background: #4F6A97; }
.wr-remake .wam-bar--y2023 { background: var(--slate); }
.wr-remake .wam-bar--zero { width: 2px !important; background: var(--ink); }
.wr-remake .wam-bar--missing { width: 22px; background: none; border: 1px dashed rgba(24, 32, 46, .55); }
html.wr-js .wam-bars .wam-bar:not(.wam-bar--zero):not(.wam-bar--missing) { transform-origin: left center; }
html.wr-js .table-wrap:not(.is-inview) .wam-bar:not(.wam-bar--zero):not(.wam-bar--missing) { transform: scaleX(0); }
html.wr-js .table-wrap.is-inview .wam-bar { transition: transform .8s cubic-bezier(.4, 0, .2, 1); }

.wr-remake .wam-pri {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; font-family: var(--f-mono); font-weight: 700;
  border: var(--site-border-width) solid var(--ink);
}
.wr-remake .wam-pri--1 { background: var(--ink); color: var(--on-dark); }
.wr-remake .wam-pri--3 { border-style: dashed; }

/* ---------- unit (dot) chart ---------- */
.wr-remake .wam-figure { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.wr-remake .wam-figure__key,
.wr-remake .wam-figure figcaption {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px;
  font-size: 13px; color: var(--ink-2); line-height: 1.7;
}
.wr-remake .wam-figure figcaption { color: var(--muted); }
.wr-remake .wam-legend { display: inline-flex; align-items: center; gap: 8px; }
.wr-remake .wam-unit { background: var(--card); border: 1px solid var(--line); overflow-x: auto; padding-bottom: 10px; }
.wr-remake .wam-unit__row {
  min-width: 560px;
  display: grid; grid-template-columns: 7.5em minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 16px; align-items: center;
  padding: 9px 20px;
  border-bottom: 1px solid var(--line-soft);
}
.wr-remake .wam-unit__row--head { font-size: 12.5px; color: var(--muted); border-bottom-color: var(--line); }
.wr-remake .wam-unit__name { font-weight: 700; font-size: 15px; display: flex; align-items: baseline; gap: 6px; }
.wr-remake .wam-unit__cell { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-height: 18px; }
.wr-remake .wam-unit__cell--span { grid-column: 2 / -1; }
.wr-remake .wam-unit__note { font-size: 12px; color: var(--muted); margin-left: 8px; }
.wr-remake .wam-unit__row--closed { border-bottom: 0; padding-block: 6px; }
.wr-remake .wam-unit__row--closed .wam-unit__name { color: var(--muted); }
.wr-remake #closed-chart { border-top: var(--site-border-width) solid var(--ink); margin-top: 6px; padding-top: 14px; }
.wr-remake .wam-unit__tag { font-size: 11.5px; font-weight: 700; color: var(--pen); }

.wr-remake .wam-dot { display: inline-block; flex: none; width: 13px; height: 13px; border-radius: 50%; }
.wr-remake .wam-dot--move { background: var(--navy); }
.wr-remake .wam-dot--leave { border: 2px solid var(--ink); }
.wr-remake .wam-dot--unknown { border: 1.5px dashed var(--pen); opacity: .45; }
@keyframes wr-fade-dots { 0% { opacity: .9; } 100% { opacity: .3; } }
html.wr-js .wam-figure.is-inview .wam-unit__row--closed .wam-dot--unknown { animation: wr-fade-dots 2.4s ease-in-out .6s both; }

/* money chart (ch.5) */
.wr-remake .wam-money { background: var(--card); border: 1px solid var(--line); padding: 14px 20px; overflow-x: auto; }
.wr-remake .wam-money__row {
  min-width: 520px;
  display: grid; grid-template-columns: 7.5em minmax(0, 1fr) 6.5em; gap: 14px; align-items: center;
  padding: 7px 0; border-bottom: 1px solid var(--line-soft);
}
.wr-remake .wam-money__track {
  position: relative; height: 22px;
  background: repeating-linear-gradient(90deg, rgba(24, 32, 46, .07) 0 1px, transparent 1px 11.111%);
}
.wr-remake .wam-money__adj, .wr-remake .wam-money__bal { position: absolute; left: 0; top: 3px; bottom: 3px; }
.wr-remake .wam-money__adj { background: var(--slate); }
.wr-remake .wam-money__bal { background: var(--navy); }
.wr-remake .wam-money__wage { position: absolute; top: -3px; bottom: -3px; width: 4px; margin-left: -2px; background: var(--pen); }
.wr-remake .wam-money__lab { font-size: 12.5px; color: var(--muted); }
.wr-remake .wam-money__lab.is-check { color: var(--pen); font-weight: 700; }
.wr-remake .wam-swatch { display: inline-block; width: 18px; height: 10px; }
.wr-remake .wam-swatch--bal { background: var(--navy); }
.wr-remake .wam-swatch--adj { background: var(--slate); }
.wr-remake .wam-swatch--wage { width: 4px; height: 16px; background: var(--pen); }
html.wr-js .wam-money .wam-money__adj,
html.wr-js .wam-money .wam-money__bal { transform-origin: left center; transition: transform .9s cubic-bezier(.4, 0, .2, 1); }
html.wr-js .wam-figure:not(.is-inview) .wam-money__adj,
html.wr-js .wam-figure:not(.is-inview) .wam-money__bal { transform: scaleX(0); }

/* ---------- remake figures ---------- */
.wr-fig { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.wr-prose > .wr-fig { margin-top: 40px; }
.wr-fig__head { display: flex; flex-direction: column; gap: 2px; }
.wr-fig__title { color: var(--site-heading); margin: 0; font-family: var(--f-serif); font-weight: 800; font-size: 21px; line-height: 1.5; }
.wr-fig__lead { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.wr-fallback { margin: 0; padding: 14px 16px; border: 1px dashed var(--line); font-size: 14px; color: var(--muted); }

/* segmented controls & case buttons */
.wr-seg { display: inline-flex; flex-wrap: wrap; align-self: flex-start; border: var(--site-border-width) solid var(--ink); }
.wr-seg button {
  min-height: 44px; padding: 8px 14px; border: 0; cursor: pointer;
  font-size: 13.5px; background: var(--card); color: var(--ink);
  transition: background .2s, color .2s;
}
.wr-seg button + button { border-left: var(--site-border-width) solid var(--ink); }
.wr-seg button[aria-pressed="true"] { background: var(--ink); color: var(--on-dark); }
.wr-seg button:hover:not([aria-pressed="true"]) { background: var(--paper-2); }

.wr-cases { display: flex; flex-wrap: wrap; gap: 8px; }
.wr-cases button {
  min-height: 44px; padding: 8px 14px; cursor: pointer;
  border: var(--site-border-width) solid var(--ink); background: var(--card); color: var(--ink);
  font-size: 14px;
  transition: background .2s, color .2s, box-shadow .2s, transform .2s;
}
.wr-cases button span { font-family: var(--f-mono); margin-left: 8px; opacity: .85; }
.wr-cases button[aria-pressed="true"] { background: var(--ink); color: var(--on-dark); }
.wr-cases button:hover:not([aria-pressed="true"]) { box-shadow: 3px 3px 0 var(--ink); transform: translate(-1px, -1px); }

.wr-denom__app { display: flex; flex-direction: column; gap: 18px; }
.wr-denom__mode { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.wr-denom__mode > span { font-size: 13px; color: var(--muted); }
.wr-readout { display: flex; flex-wrap: wrap; background: var(--card); border: var(--site-border-width) solid var(--ink); }
.wr-readout__rep {
  flex: 1 1 240px; min-width: 0; padding: 20px 22px;
  display: flex; flex-direction: column; gap: 4px;
  border-right: 1px dashed rgba(24, 32, 46, .35);
}
.wr-readout__calc { flex: 2 1 340px; min-width: 0; padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.wr-readout small { font-size: 12.5px; color: var(--muted); }
.wr-readout__case { font-family: var(--f-mono); font-size: 15px; }
.wr-readout__big { font-family: var(--f-mono); font-weight: 700; font-size: 52px; line-height: 1.1; }
.wr-readout__big span { font-size: 24px; }
.wr-readout__expr { font-family: var(--f-mono); font-size: clamp(15px, 1.6vw, 18px); }
.wr-readout__expr strong { font-size: 1.35em; display: inline-block; }
.wr-readout__verdict { font-weight: 700; font-size: 16px; color: var(--pen); }
.wr-readout__verdict.is-hit { color: var(--navy); }
@keyframes wr-pop { 0% { transform: scale(.86); opacity: .3; } 100% { transform: none; opacity: 1; } }
.wr-readout.is-bump .wr-readout__expr strong,
.wr-readout.is-bump .wr-readout__verdict { animation: wr-pop .32s cubic-bezier(.3, .7, .3, 1.2); }

.wr-cells__head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }
.wr-cells__head > span:last-child { display: flex; gap: 14px; }
.wr-cells__head i { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; }
.wr-cells__head .is-hit { background: var(--navy); }
.wr-cells__head .is-sel { border: var(--site-border-width) solid var(--ink); }
.wr-cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 4px; }
.wr-cell {
  min-height: 48px; padding: 2px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  line-height: 1.25; font-family: var(--f-mono); cursor: pointer;
  background: var(--card); color: var(--ink);
  border: 1px solid rgba(24, 32, 46, .18);
  transition: background .25s, color .25s, box-shadow .15s, transform .15s;
}
.wr-cell small { font-size: 11px; opacity: .8; }
.wr-cell b { font-size: 13px; }
.wr-cell.is-hit { background: var(--navy); color: #fff; }
.wr-cell[aria-pressed="true"] { border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); transform: translate(-1px, -1px); }
.wr-cell:hover:not([aria-pressed="true"]) { border-color: var(--ink); }

.wr-result { padding: 18px 22px; background: var(--ink); color: var(--on-dark); display: flex; flex-direction: column; gap: 6px; }
.wr-result p { margin: 0; font-size: 16px; line-height: 1.75; }
.wr-result .wr-result__hint { font-size: 14px; color: var(--on-dark-2); }
.wr-result .wr-label { color: var(--on-dark-2); }

/* retention staircase */
.wr-stairs__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.wr-stair { background: var(--card); border: 1px solid var(--line); padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.wr-stair__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.wr-stair__head strong { font-size: 20px; }
.wr-stair__head span { font-size: 13px; color: var(--pen); font-weight: 700; }
.wr-stair__chart {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
  height: 236px; align-items: end;
  border-bottom: var(--site-border-width) solid var(--ink);
  position: relative;
}
.wr-stair__col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; position: relative; }
.wr-stair__val { font-family: var(--f-mono); font-weight: 700; font-size: 18px; }
.wr-stair__bar { width: 70%; height: calc(var(--v, 0) * 38px); background: var(--navy); transform-origin: bottom center; }
.wr-stair__lab { position: absolute; bottom: -30px; font-size: 13px; color: var(--muted); }
.wr-stair__col.is-bad .wr-stair__val { color: var(--pen); }
.wr-stair__col.is-bad .wr-stair__bar { background: repeating-linear-gradient(135deg, var(--pen) 0 6px, var(--pen-tint) 6px 11px); border: var(--site-border-width) solid var(--pen); }
.wr-stair__col.is-na .wr-stair__bar { height: 4px; background: none; border-top: 1.5px dashed rgba(24, 32, 46, .5); }
.wr-stair__col.is-na .wr-stair__val { color: var(--muted); }
.wr-stair p { margin: 22px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.75; }
html.wr-js .wr-stairs:not(.is-inview) .wr-stair__bar { transform: scaleY(0); }
html.wr-js .wr-stairs:not(.is-inview) .wr-stair__val { opacity: 0; }
html.wr-js .wr-stairs .wr-stair__bar { transition: transform .7s cubic-bezier(.4, 0, .2, 1); }
html.wr-js .wr-stairs .wr-stair__val { transition: opacity .4s ease; }
html.wr-js .wr-stairs .wr-stair__col:nth-child(2) :is(.wr-stair__bar, .wr-stair__val) { transition-delay: .15s; }
html.wr-js .wr-stairs .wr-stair__col:nth-child(3) :is(.wr-stair__bar, .wr-stair__val) { transition-delay: .3s; }
html.wr-js .wr-stairs .wr-stair__col:nth-child(4) :is(.wr-stair__bar, .wr-stair__val) { transition-delay: .6s; }

/* wage cover chart */
.wr-cover__card { background: var(--card); border: 1px solid var(--line); padding: 18px 22px 12px; overflow-x: auto; }
.wr-cover__head, .wr-cover__row {
  min-width: 600px;
  display: grid; grid-template-columns: 120px minmax(0, 1fr) 80px 176px; gap: 14px; align-items: center;
}
.wr-cover__head { font-size: 12.5px; color: var(--muted); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.wr-cover__head span:nth-child(3) { text-align: right; }
.wr-cover__list { list-style: none; margin: 0; padding: 0; }
.wr-cover__row { padding: 7px 0; border-bottom: 1px solid rgba(24, 32, 46, .08); }
.wr-cover__name { font-weight: 700; font-size: 15px; }
.wr-cover__track {
  position: relative; height: 22px;
  background: repeating-linear-gradient(90deg, rgba(24, 32, 46, .07) 0 1px, transparent 1px 20%);
}
.wr-cover__bar {
  position: absolute; left: 0; top: 3px; bottom: 3px;
  background: var(--navy);
  transition: width .5s cubic-bezier(.4, 0, .2, 1), background .3s;
}
.wr-cover__row.is-added .wr-cover__bar { background: var(--slate); }
.wr-cover__score { position: absolute; top: -3px; bottom: -3px; width: 4px; background: var(--pen); }
.wr-cover__one { position: absolute; left: 40%; top: -4px; bottom: -4px; width: 2px; background: var(--ink); }
.wr-cover__val { font-family: var(--f-mono); font-weight: 700; text-align: right; }
.wr-cover__val.is-low { color: var(--pen); }
.wr-cover__match { font-size: 13px; font-weight: 700; color: var(--pen); transition: color .3s; }
.wr-cover__match.is-ok { color: var(--navy); }
.wr-cover__key { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding-top: 10px; font-size: 12.5px; color: var(--muted); }
.wr-cover__key span { display: inline-flex; align-items: center; gap: 6px; }
.wr-sw { display: inline-block; width: 18px; height: 10px; }
.wr-sw--navy { background: var(--navy); }
.wr-sw--slate { background: var(--slate); }
.wr-sw--pen { width: 4px; height: 16px; background: var(--pen); }
.wr-cover__bar { transform-origin: left center; }
html.wr-js .wr-cover:not(.is-inview) .wr-cover__bar { transform: scaleX(0); }

.wr-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.wr-stat { padding: 20px 22px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.wr-stat__big { font-family: var(--f-mono); font-weight: 700; font-size: clamp(20px, 2.2vw, 26px); color: var(--ink); line-height: 1.3; }

/* hypotheses (ch.6) */
.wr-remake .wam-hyp {
  border-top: var(--site-border-width) solid var(--ink);
  padding: 22px 0 4px;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px;
}
.wr-remake .wam-hyp + .wam-hyp { margin-top: 0; border-top-width: 1px; border-top-color: var(--line); }
.wr-remake .wam-hyp > * { margin: 0; }
.wr-remake .wam-hyp__title { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-family: var(--f-sans); font-size: 17.5px; line-height: 1.55; }
.wr-remake .wam-hyp__name { color: var(--site-heading); font-weight: 700; }
.wr-remake .wam-hyp__lv {
  order: -1;
  font-family: var(--f-mono); font-size: 12px; font-weight: 700;
  padding: 2px 10px; border: var(--site-border-width) solid var(--ink);
}
.wr-remake .wam-hyp__lv--hi { background: var(--ink); color: var(--on-dark); }
.wr-remake .wam-hyp dl { margin: 0; display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 8px 18px; font-size: 14.5px; line-height: 1.8; }
.wr-remake .wam-hyp dt { font-size: 12.5px; font-weight: 700; color: var(--muted); padding-top: 2px; }
.wr-remake .wam-hyp dd { margin: 0; }
.wr-remake .wam-hyp > p { font-size: 14.5px; }

/* lists */
.wr-remake .wam-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.wr-remake .wam-list li { position: relative; padding-left: 22px; }
.wr-remake .wam-list li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 9px; height: 9px; background: var(--navy); }

/* epilogue rewrite band (full bleed inside the column) */
.wr-split--cont { padding-top: 64px; }
.wr-rewrite {
  background: var(--ink); color: var(--on-dark);
  border-block: 2px solid var(--ink);
}
.wr-rewrite__inner { max-width: var(--site-page-width); margin: 0 auto; padding: 88px var(--gutter); display: flex; flex-direction: column; gap: 22px; }
.wr-rewrite__inner > * { margin: 0; }
.wr-rewrite__label { font-family: var(--f-mono); font-size: 13px; letter-spacing: .16em; color: var(--on-dark-2); }
.wr-rewrite__h { display: inline; margin: 0; font: inherit; letter-spacing: inherit; }
.wr-rewrite__old, .wr-rewrite__new { display: flex; flex-direction: column; gap: 4px; }
.wr-rewrite__old small, .wr-rewrite__new small { font-size: 12.5px; letter-spacing: .1em; color: var(--on-dark-2); }
.wr-rewrite__old > span, .wr-rewrite__new > span {
  font-family: var(--f-serif); font-weight: 800; font-size: clamp(28px, 4.4vw, 56px); line-height: 1.35;
}
.wr-rewrite__strike { position: relative; align-self: flex-start; color: var(--ghost); }
.wr-rewrite__line {
  position: absolute; left: -4px; right: -4px; top: 52%;
  height: 5px; border-radius: 2px; background: var(--pen);
  transform-origin: left center;
}
.wr-rewrite__new em { font-style: normal; border-bottom: 5px solid var(--pen); }
.wr-ph { display: inline-block; }
.wr-rewrite__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; margin-top: 18px !important; }
.wr-rewrite__cards > div { border: 1px solid rgba(245, 243, 236, .3); padding: 24px 26px; display: flex; flex-direction: column; gap: 12px; }
.wr-rewrite__cards .wr-label { color: var(--on-dark-2); }
.wr-rewrite__cards p { margin: 0; font-size: 15.5px; line-height: 1.8; }
@keyframes wr-strike { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes wr-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
html.wr-js .wr-rewrite:not(.is-inview) .wr-rewrite__line { transform: scaleX(0); }
html.wr-js .wr-rewrite:not(.is-inview) .wr-rewrite__new { opacity: 0; }
html.wr-js .wr-rewrite.is-inview .wr-rewrite__line { animation: wr-strike .9s cubic-bezier(.6, 0, .2, 1) .4s both; }
html.wr-js .wr-rewrite.is-inview .wr-rewrite__new { animation: wr-rise .6s ease-out 1.1s both; }

/* checklist */
.wr-checklist { background: var(--card); border: var(--site-border-width) solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.wr-checklist__head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px;
  padding: 18px 22px 14px; border-bottom: var(--site-border-width) solid var(--ink);
}
.wr-checklist__head strong { color: var(--site-heading); font-family: var(--f-serif); font-weight: 800; font-size: 20px; flex: 1 1 auto; }
.wr-checklist__count { font-family: var(--f-mono); font-size: 14px; color: var(--muted); }
.wr-checklist__count b { color: var(--ink); font-size: 18px; }
.wr-checklist__list { list-style: none; margin: 0; padding: 0; }
.wr-checklist__list label {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: start;
  padding: 16px 22px; border-bottom: 1px dashed rgba(24, 32, 46, .3); cursor: pointer;
  transition: background .2s;
}
.wr-checklist__list label:hover { background: var(--paper); }
.wr-checklist__list input { width: 24px; height: 24px; margin: 3px 0 0; accent-color: var(--navy); cursor: pointer; }
.wr-checklist__list label > span { display: flex; flex-direction: column; gap: 2px; }
.wr-checklist__list strong { font-size: 16.5px; line-height: 1.6; transition: color .2s; }
.wr-checklist__list strong + span { font-size: 14px; color: var(--muted); line-height: 1.7; }
.wr-checklist__list input:checked + span strong { color: var(--muted); text-decoration: line-through 2px var(--pen); }
.wr-checklist__foot { margin: 0; padding: 14px 22px 16px; font-size: 13.5px; color: var(--muted); line-height: 1.75; }

/* details: calculation folds and evidence */
.wr-remake .wam-calc-group, .wr-remake .wam-evidence { background: transparent; }
.wr-remake .wam-calc-group > summary,
.wr-remake .wam-evidence > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 10px 16px;
  border: var(--site-border-width) solid var(--ink); background: var(--card);
  font-weight: 700; font-size: 14.5px;
  transition: box-shadow .2s, transform .2s;
}
.wr-remake .wam-calc-group > summary::-webkit-details-marker,
.wr-remake .wam-evidence > summary::-webkit-details-marker,
.wr-remake .wam-calc-detail > summary::-webkit-details-marker { display: none; }
.wr-remake .wam-calc-group > summary::before,
.wr-remake .wam-evidence > summary::before { content: "＋"; font-family: var(--f-mono); color: var(--pen); }
.wr-remake .wam-calc-group[open] > summary::before,
.wr-remake .wam-evidence[open] > summary::before { content: "－"; }
.wr-remake .wam-calc-group > summary:hover,
.wr-remake .wam-evidence > summary:hover { box-shadow: 3px 3px 0 var(--ink); transform: translate(-1px, -1px); }
.wr-remake .wam-calc-group[open],
.wr-remake .wam-evidence[open] { background: var(--card); border: 1px solid var(--line); }
.wr-remake .wam-calc-group[open] > summary,
.wr-remake .wam-evidence[open] > summary { border-width: 0 0 1.5px; }
.wr-remake .wam-calc-group > :not(summary),
.wr-remake .wam-evidence > :not(summary) { margin: 0; padding: 12px 16px; font-size: 14.5px; }
.wr-remake .wam-evidence > .table-wrap { margin: 0 16px 16px; padding: 0; }
.wr-remake .wam-calc-detail { border-bottom: 1px dashed var(--line); padding: 0 !important; }
.wr-remake .wam-calc-detail > summary {
  list-style: none; cursor: pointer;
  padding: 10px 16px; font-size: 14px; font-weight: 700;
  display: flex; gap: 8px;
}
.wr-remake .wam-calc-detail > summary::before { content: "›"; font-family: var(--f-mono); color: var(--muted); transition: transform .2s; }
.wr-remake .wam-calc-detail[open] > summary::before { transform: rotate(90deg); }
.wr-remake .wam-calc-detail:target > summary { background: var(--navy-tint); }
.wr-remake .wam-calc-content { padding: 4px 16px 16px; font-size: 14.5px; line-height: 1.8; }
.wr-remake .wam-calc-content > * { margin: 8px 0 0; }

/* evidence screenshots */
.wr-remake .wamnet26-evidence-figure { margin: 24px 0 0; display: flex; flex-direction: column; gap: 10px; }
.wr-remake .wamnet26-evidence-figure img { display: block; border: 1px solid var(--line); background: var(--card); }
.wr-remake .wamnet26-evidence-figure figcaption { font-size: 13px; color: var(--muted); line-height: 1.7; }
.wr-remake .site-image-button { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; }
.wr-remake .wamnet26-closed > * + *,
.wr-remake .wamnet26-closure-evidence > * + * { margin-top: 18px; }
.wr-remake .wamnet26-closed h3,
.wr-remake .wamnet26-closure-evidence h3 { color: var(--site-heading); margin: 0; font-family: var(--f-serif); font-weight: 800; font-size: 21px; line-height: 1.5; }

/* references */
.wr-remake .reference-list { padding-left: 1.6em; font-size: 14px; line-height: 1.8; display: flex; flex-direction: column; gap: 8px; }
.wr-remake .reference-list li::marker { font-family: var(--f-mono); color: var(--muted); }

/* ---------- prologue: dialogue card (remake quote) ---------- */
.wr-quote > summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px 22px;
  padding: 26px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: border-color .2s, box-shadow .25s, transform .25s;
}
.wr-quote > summary::-webkit-details-marker { display: none; }
.wr-quote > summary:hover { border-color: var(--ink); box-shadow: 6px 6px 0 var(--ink); transform: translate(-2px, -2px); }
.wr-remake .wam-dialogue__faces { display: flex; }
.wr-remake .wam-dialogue__faces .wam-avatar + .wam-avatar { margin-left: -12px; box-shadow: 0 0 0 3px var(--card); }
.wr-remake .wam-dialogue__label { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wr-remake .wam-dialogue__kicker { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em; color: var(--muted); }
.wr-remake .wam-dialogue__name { font-family: var(--f-serif); font-weight: 600; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.5; }
.wr-remake .wam-dialogue__desc { font-size: 14px; color: var(--muted); line-height: 1.7; }
.wr-remake .wam-dialogue__cta {
  padding: 10px 16px; border: var(--site-border-width) solid var(--ink);
  font-size: 14px; font-weight: 700; white-space: nowrap;
  transition: background .2s, color .2s;
}
.wr-quote > summary:hover .wam-dialogue__cta { background: var(--ink); color: var(--on-dark); }
.wr-quote[open] > .wam-dialogue__body { padding: 24px 0 0; }

.wr-remake .wam-avatar {
  display: inline-block; flex: none;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--paper-2) center / cover no-repeat;
  border: var(--site-border-width) solid var(--ink);
}
.wr-remake .wam-avatar--yuki { background-image: url("../img/wamnet/avatar-yuki.webp"); }
.wr-remake .wam-avatar--analyst { background-image: url("../img/wamnet/avatar-analyst.webp"); }

.wr-remake .wam-cast { margin: 0 0 28px; }
.wr-remake .wam-cast__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.wr-remake .wam-cast__person { display: flex; gap: 14px; align-items: flex-start; }
.wr-remake .wam-cast__person p { margin: 0; font-size: 14.5px; line-height: 1.75; }
.wr-remake .wam-cast__person strong { display: block; }
.wr-remake .wam-cast__note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }

.wr-remake .wam-video { margin: 0 0 32px; }
.wr-remake .wam-video-frame { aspect-ratio: 16 / 9; border: var(--site-border-width) solid var(--ink); background: var(--ink); }
.wr-remake .wam-video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.wr-remake .wam-video figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); line-height: 1.75; }
.wr-remake .wam-video figcaption strong { display: block; color: var(--ink); }
.wr-remake .wam-video figcaption a { margin-left: .6em; }

.wr-remake .wam-chat { margin-top: 36px; display: flex; flex-direction: column; gap: 14px; }
.wr-remake .wam-chat__title { color: var(--site-heading); margin: 0 0 6px; display: flex; align-items: baseline; gap: 12px; font-family: var(--f-serif); font-weight: 800; font-size: 19px; line-height: 1.5; }
.wr-remake .wam-chat__no {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; background: var(--ink); color: var(--on-dark);
  font-family: var(--f-mono); font-size: 14px;
}
.wr-remake .wam-msg { display: flex; align-items: flex-start; gap: 12px; }
.wr-remake .wam-msg--analyst { flex-direction: row-reverse; }
.wr-remake .wam-msg__bubble {
  max-width: min(86%, 620px);
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--line);
}
.wr-remake .wam-msg--analyst .wam-msg__bubble { background: var(--navy-tint); border-color: rgba(29, 59, 110, .3); }
.wr-remake .wam-msg__bubble p { margin: 0; font-size: 15px; line-height: 1.85; }
.wr-remake .wam-msg__bubble p + p { margin-top: 8px; }
.wr-remake .wam-msg__who { font-size: 12px !important; font-weight: 700; color: var(--muted); }
.wr-remake .wam-msg__card { margin: 10px 0 2px; padding: 10px 14px; background: var(--card); border: 1px dashed rgba(24, 32, 46, .4); }
.wr-remake .wam-msg__card ul { margin: 0; padding-left: 1.2em; font-size: 14px; line-height: 1.75; }
.wr-remake .wam-msg__card-title { font-size: 13.5px !important; font-weight: 700; margin-bottom: 4px !important; }
.wr-remake .wam-msg__card-note { font-size: 12.5px !important; color: var(--muted); margin-top: 6px !important; }
html.wr-js dialog .wam-msg.is-pending { opacity: 0; transform: translateY(8px); }
html.wr-js dialog .wam-msg { transition: opacity .45s ease, transform .45s ease; }

/* ---------- slides band ---------- */
.wr-band--slides { border-top: 1px solid var(--line); }
.wr-split--head { padding-bottom: 28px; align-items: end; }
.wr-split--head .site-chapter__mark { position: static; }
.wr-split--head .wr-band__title { margin: 0; }
.wr-slides { margin: 0 0 88px; background: var(--card); border: var(--site-border-width) solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.wr-slides iframe { display: block; width: 100%; height: 620px; border: 0; }
.wr-slides figcaption {
  padding: 12px 20px; border-top: var(--site-border-width) solid var(--ink);
  font-size: 13.5px; color: var(--muted); line-height: 1.8;
}
.wr-slides figcaption strong { display: block; color: var(--ink); }
.wr-slides figcaption a { margin-left: .8em; white-space: nowrap; }
html.wam-slides-on-screen .site-backtop { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------- dialogs (calculation & dialogue) ---------- */
.wr-remake .wamnet26-dialog {
  width: min(880px, calc(100vw - 32px));
  max-height: min(88vh, 900px);
  padding: 0;
  border: var(--site-border-width) solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  overflow: auto;
  overscroll-behavior: contain;
}
.wr-remake .wamnet26-dialog::backdrop { background: rgba(24, 32, 46, .55); }
.wr-remake .wamnet26-dialog[open] { animation: wr-dialog-in .28s cubic-bezier(.2, .7, .2, 1); }
.wr-remake .wamnet26-dialog[open]::backdrop { animation: wr-fade-in .28s ease; }
@keyframes wr-dialog-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes wr-fade-in { from { opacity: 0; } to { opacity: 1; } }
.wr-remake .wamnet26-dialog__header {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 18px 12px 22px;
  background: var(--ink); color: var(--on-dark);
}
.wr-remake .wamnet26-dialog__title { margin: 0; font-family: var(--f-sans); font-size: 15px; font-weight: 700; line-height: 1.5; }
.wr-remake .wamnet26-dialog__close {
  flex: none; min-height: 40px; padding: 6px 14px;
  border: var(--site-border-width) solid var(--on-dark); background: transparent; color: var(--on-dark);
  cursor: pointer; font-size: 13.5px;
}
.wr-remake .wamnet26-dialog__close:hover { background: var(--on-dark); color: var(--ink); }
.wr-remake .wamnet26-dialog__body { padding: 18px 24px 26px; }
.wr-remake .wamnet26-dialog__body.wam-calc-content > * { margin: 10px 0 0; }
.wr-remake .wam-dialogue-dialog .wamnet26-dialog__body { padding-top: 24px; }
html.wamnet26-modal-open { overflow: hidden; }

/* ---------- footer ---------- */
.wr-footer { border-top: 2px solid var(--ink); }
.wr-footer__grid {
  padding-block: 48px 72px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 32px 56px;
  font-size: 13.5px; color: var(--muted); line-height: 1.8;
}
.wr-footer__col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.wr-footer__col > p { margin: 0; }
.wr-footer .wr-label { color: var(--ink); }
.wr-footer .related-links__title { display: block; color: var(--ink); font-size: 12.5px; margin-top: 6px; }
.wr-footer .footer-nav__list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.wr-footer .footer-nav__list a { display: inline-block; padding: 6px 0; font-weight: 700; }
.wr-footer .site-inline-image {
  padding: 0; border: 0; background: none; color: var(--navy);
  text-decoration: underline; text-underline-offset: .22em; cursor: zoom-in;
}
.wr-footer .wam-evidence > :not(summary) { font-size: 13.5px; }

/* ---------- responsive ---------- */
/* The bar, contents band and chapter bands switch in site-chapters.css. */
@media (max-width: 960px) {
  .wr-split--head { padding-bottom: 64px; }
  .wr-slides iframe { height: min(1000px, calc(100vh - 96px)); height: min(1000px, calc(100svh - 96px)); }
  .wr-slides { margin-bottom: 64px; }
}
@media (max-width: 640px) {
  html.wr-remake { --site-chapterbar-h: 52px; }
  .wr-tally__item { padding: 18px 0; border-right: 0; border-bottom: 1px solid rgba(245, 243, 236, .18); }
  .wr-tally__item + .wr-tally__item { padding-left: 0; }
  .wr-tally__num b { font-size: 36px; }
  .wr-quote > summary { grid-template-columns: auto minmax(0, 1fr); padding: 20px; }
  .wr-remake .wam-dialogue__cta { grid-column: 1 / -1; text-align: center; }
  .wr-remake .wam-hyp dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .wr-remake .wam-hyp dd { margin-bottom: 10px; }
  .wr-readout__rep { border-right: 0; border-bottom: 1px dashed rgba(24, 32, 46, .35); }
  .wr-readout__big { font-size: 44px; }
  .wr-remake .wam-msg__bubble { max-width: 100%; }
  .wr-remake .wam-msg .wam-avatar { width: 38px; height: 38px; }
  .wr-remake .wamnet26-dialog { width: calc(100vw - 16px); max-height: 92vh; box-shadow: 4px 4px 0 var(--ink); }
  .wr-remake .wamnet26-dialog__body { padding: 14px 16px 20px; }
  .wr-stair__chart { height: 200px; }
  .wr-stair__bar { height: calc(var(--v, 0) * 32px); }
}

@media (prefers-reduced-motion: reduce) {
  .wr-remake *, .wr-remake *::before, .wr-remake *::after {
    animation-duration: .01ms !important; animation-delay: 0s !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
  html.wr-js .wr-rewrite .wr-rewrite__new { opacity: 1 !important; }
  html.wr-js .wr-rewrite .wr-rewrite__line { transform: none !important; }
}

@media print {
  html.wr-remake body.site-theme { background: #fff; }
  .wr-band--slides, .wr-denom__app, .wr-seg { display: none !important; }
  .wr-split--cont { padding-top: 24px; }
  .wr-split--head { padding-bottom: 24px; }
  .wr-remake .table-wrap { overflow: visible; }
  html.wr-js .wr-stairs .wr-stair__bar, html.wr-js .wam-figure .wam-money__adj, html.wr-js .wam-figure .wam-money__bal,
  html.wr-js .table-wrap .wam-bar, html.wr-js .wr-cover .wr-cover__bar,
  html.wr-js .wr-rewrite .wr-rewrite__line { transform: none !important; }
  html.wr-js .wr-stairs .wr-stair__val, html.wr-js .wr-rewrite .wr-rewrite__new { opacity: 1 !important; }
}

/* Integration with the existing shared footer, scoped to this article. */
.wr-remake .wr-footer__grid > .site-share { grid-column: 1 / -1; margin-bottom: 0; }

/* Keep static information usable before enhancement and in narrow layouts. */
html.wr-remake:not(.wr-js) :is(.wr-denom__app, .wr-seg, .wr-checklist__count, .wr-checklist__storage) { display: none; }
@media (max-width: 360px) {
  .wr-hero__title { font-size: 30px; }
}

@media (max-width: 640px) {
  .wr-cover > .wr-seg { display: flex; flex-direction: column; align-self: stretch; }
  .wr-cover > .wr-seg button + button { border-left: 0; border-top: var(--site-border-width) solid var(--ink); }
}

@media print {
  html.wr-remake { --gutter: 0px; }
  .wr-remake .site-wrap { max-width: none; padding-inline: 0; }
  .wr-remake .wam-monthly-table { min-width: 0; }
  .wr-remake table { font-size: 9pt; }
  .wr-remake :is(th, td) { padding: 5px; }
  .wr-remake thead th, .wr-remake tbody td:first-child { white-space: normal; }
  .wr-remake .wam-reason, .wr-remake .wam-barcell { min-width: 0; }
  .wr-remake .wr-cover__card { padding: 12px; overflow: visible; }
  .wr-remake .wr-cover__head, .wr-remake .wr-cover__row {
    min-width: 0;
    grid-template-columns: 105px minmax(0, 1fr) 65px 160px;
    gap: 10px;
  }
  .wr-remake .wam-hit { color: var(--ink); background: var(--paper-2); font-weight: 700; }
  .wr-remake .wam-hit .wam-calc-ref { border-color: var(--ink); }
}
