/* DizBiz + Big Chunk coaching report
   Heraldic playbook: azure for DizBiz (France), gules for Big Chunk (England),
   and the gold both coats of arms share for the joint plan and "do this" actions. */

@font-face {
  font-family: "Vollkorn";
  src: url("../fonts/vollkorn-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --stone: #EDEFEA;
  --vellum: #FBFBF8;
  --ink: #1B2026;
  --ink-2: #454E58;
  --ink-3: #5F6871;
  --rule: #D3D8D0;
  --rule-strong: #AEB4AC;
  --grid: #E1E4DE;

  --azure: #2453A6;
  --azure-deep: #1E4690;
  --azure-tint: #E2E9F5;
  --gules: #B12631;
  --gules-deep: #9E1F2A;
  --gules-tint: #F5E3E4;
  --or: #C8962A;
  --or-ink: #8C6A1C;
  --or-text: #6E4F0E;
  --or-tint: #F4EBD3;
  --or-wash: #F8F1E0;
  --vert: #2A6545;
  --iron: #7D838A;
  --iron-2: #A3A8AE;

  --food: #E0602F;
  --wood: #1F8A70;
  --gold: #D4A000;

  --font-display: "Vollkorn", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-text: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Sans", "Noto Sans CJK JP", "Noto Sans", sans-serif;

  --measure: 68ch;
  --wrap: 1160px;
  --gutter: clamp(1rem, 3.5vw, 2rem);
  --radius: 6px;
  --topbar-h: 58px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--topbar-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  overflow-wrap: break-word;
}
@media (min-width: 960px) { body { font-size: 1.125rem; } }

h1, h2, h3, h4, h5 { margin: 0; text-wrap: balance; }
p, ul, ol, dl { margin: 0 0 1rem; }
p { text-wrap: pretty; }
ul, ol { padding-left: 1.25rem; }
li + li { margin-top: .3rem; }
b, strong { font-weight: 700; }
a { color: var(--azure-deep); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
button { font: inherit; color: inherit; }
img, svg { max-width: 100%; }
table { border-collapse: collapse; width: 100%; }
caption { text-align: left; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nowrap { white-space: nowrap; }
.print-only { display: none; }
html:not(.js) [data-js-only] { display: none !important; }
html:not(.js) .tabs { display: none; }
html:not(.js) .tabpanel + .tabpanel { margin-top: 3rem; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: .75rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- player view filter ---------- */
html[data-view="dizbiz"] [data-for="chunk"],
html[data-view="chunk"] [data-for="dizbiz"] { display: none !important; }

/* ---------- shields ---------- */
.shield { width: 1em; height: 1.2em; flex: none; vertical-align: -0.22em; }
.shield--lg { width: 22px; height: 26px; }
.shield--xl { width: 34px; height: 41px; }
.fill-azure { fill: var(--shield-a, #2453A6); }
.fill-gules { fill: var(--shield-b, #B12631); }
.fill-iron { fill: var(--shield-o, #7D838A); }
.stroke-or { stroke: var(--shield-c, #C8962A); }

.tag {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 700; font-size: .95rem; line-height: 1.3;
}
.tag--dizbiz { color: var(--azure-deep); }
.tag--chunk { color: var(--gules-deep); }
.tag--team { color: var(--or-text); }
.tag--opp { color: var(--ink-2); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(237, 239, 234, .95);
  border-bottom: 1px solid var(--rule);
}
@supports (backdrop-filter: blur(6px)) {
  .topbar { background: rgba(237, 239, 234, .86); backdrop-filter: saturate(1.3) blur(8px); }
}
.topbar__inner {
  max-width: var(--wrap); margin: 0 auto; min-height: var(--topbar-h);
  padding: .45rem var(--gutter);
  display: flex; align-items: center; gap: .75rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--ink); text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -.005em;
  white-space: nowrap;
}
.brand__text { display: none; }
@media (min-width: 560px) { .brand__text { display: inline; } }

.sections { position: relative; margin-left: auto; }
.sections__toggle {
  border: 1px solid var(--rule-strong); background: var(--vellum); border-radius: 999px;
  padding: .32rem .85rem; font-size: .92rem; font-weight: 700; cursor: pointer;
}
.sections__list {
  list-style: none; margin: 0; padding: .4rem;
  position: absolute; right: 0; top: calc(100% + .5rem); min-width: 13rem;
  background: var(--vellum); border: 1px solid var(--rule-strong); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(27, 32, 38, .14);
  display: none;
}
.sections__list li + li { margin-top: 0; }
.sections__list a {
  display: block; padding: .5rem .7rem; color: var(--ink); text-decoration: none; border-radius: 4px; font-weight: 600;
}
.sections__list a:hover { background: var(--stone); }
.sections[data-open="true"] .sections__list { display: block; }
html:not(.js) .sections__toggle { display: none; }
html:not(.js) .sections__list { position: static; display: flex; flex-wrap: wrap; box-shadow: none; border: 0; background: none; }

@media (min-width: 1120px) {
  .sections__toggle { display: none; }
  .sections__list {
    position: static; display: flex; gap: .1rem; padding: 0; min-width: 0;
    background: none; border: 0; box-shadow: none;
  }
  .sections__list a { padding: .35rem .55rem; font-size: .92rem; color: var(--ink-2); }
  .sections__list a:hover { color: var(--ink); background: rgba(27, 32, 38, .06); }
}

.viewswitch { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; align-items: center; }
.viewswitch__legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.viewswitch__options {
  display: inline-flex; background: var(--vellum); border: 1px solid var(--rule-strong);
  border-radius: 999px; padding: 2px;
}
.viewswitch__opt { position: relative; display: inline-flex; }
.viewswitch__opt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.viewswitch__opt span {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .28rem .62rem; border-radius: 999px;
  font-size: .88rem; font-weight: 700; color: var(--ink-2); white-space: nowrap;
}
.viewswitch__opt input:hover + span { color: var(--ink); background: rgba(27, 32, 38, .06); }
.viewswitch__opt input:checked + span { background: var(--ink); color: #fff; }
.viewswitch__opt--dizbiz input:checked + span { background: var(--azure); }
.viewswitch__opt--chunk input:checked + span { background: var(--gules); }
.viewswitch__opt input:checked + span .shield { --shield-a: #fff; --shield-b: #fff; }
.viewswitch__opt input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
@media (max-width: 380px) {
  .viewswitch__opt span { padding: .28rem .5rem; font-size: .84rem; }
  .viewswitch__opt .shield { display: none; }
}

/* ---------- hero ---------- */
.hero { padding-top: clamp(2.25rem, 6vw, 4.5rem); padding-bottom: 1rem; }
.hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.35rem, 1.2rem + 4.6vw, 4.4rem);
  line-height: 1.02; letter-spacing: -.018em;
  max-width: 17ch; margin-bottom: 1.1rem;
}
.hero__sub { color: var(--ink-2); font-size: 1.08rem; max-width: 58ch; margin-bottom: .9rem; }
.lede { font-size: clamp(1.14rem, 1rem + .55vw, 1.32rem); line-height: 1.5; max-width: 54ch; }
.viewnote {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem;
  max-width: 62ch; padding: .6rem .9rem; border-radius: var(--radius);
  background: var(--vellum); border: 1px solid var(--rule); font-size: .98rem;
}
.viewnote[hidden] { display: none; }

.priorities__heading {
  font-family: var(--font-display); font-weight: 650;
  font-size: clamp(1.4rem, 1.15rem + .9vw, 1.85rem); margin: 2.6rem 0 .9rem;
}
.priorities { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.priority {
  display: grid; grid-template-columns: 2.3rem minmax(0, 1fr); gap: .25rem .8rem;
  padding: 1.35rem 0 1.25rem; border-bottom: 1px solid var(--rule); margin: 0;
}
.priority + .priority { margin-top: 0; }
@media (min-width: 720px) { .priority { grid-template-columns: 5rem minmax(0, 1fr); gap: .25rem 1.5rem; } }
.priority__num {
  font-family: var(--font-display); font-weight: 800; font-size: 2.7rem; line-height: .9;
  color: var(--or-ink); font-variant-numeric: lining-nums;
}
@media (min-width: 720px) { .priority__num { font-size: 4.4rem; } }
.priority__title {
  font-family: var(--font-display); font-weight: 650;
  font-size: clamp(1.32rem, 1.08rem + 1vw, 1.82rem); line-height: 1.16;
  max-width: 32ch; margin-bottom: .45rem;
}
.priority__body p { max-width: var(--measure); }
.priority__body .who { margin-bottom: .45rem; }
.priority__link { margin-bottom: 0; font-weight: 700; }
.aside-note { color: var(--ink-2); font-size: .98rem; margin-top: 1rem; max-width: var(--measure); }


/* per-pale band: France and England side by side, joined by a gold seam */
.perpale {
  display: grid; grid-template-columns: 1fr; margin-top: 2.25rem;
  border-radius: 10px; overflow: hidden; background: var(--or);
  gap: 4px;
}
@media (min-width: 720px) { .perpale { grid-template-columns: 1fr 1fr; } }
.perpale__half {
  display: flex; flex-direction: column; gap: .35rem;
  padding: 1.4rem 1.4rem 1.5rem; color: #fff; text-decoration: none;
}
.perpale__half--dizbiz { background: var(--azure); }
.perpale__half--chunk { background: var(--gules); }
.perpale__name { font-family: var(--font-display); font-size: clamp(1.75rem, 1.4rem + 1.3vw, 2.3rem); font-weight: 700; line-height: 1.05; }
.perpale__civ { font-size: .95rem; font-weight: 600; color: rgba(255, 255, 255, .86); }
.perpale__first { font-size: 1.02rem; line-height: 1.45; max-width: 40ch; margin-top: .25rem; }
.perpale__cta {
  margin-top: .75rem; align-self: flex-start;
  border: 1.5px solid #fff; border-radius: 999px; padding: .38rem 1rem;
  font-weight: 700; font-size: .95rem;
}
.perpale__half:hover .perpale__cta { background: #fff; }
.perpale__half--dizbiz:hover .perpale__cta { color: var(--azure-deep); }
.perpale__half--chunk:hover .perpale__cta { color: var(--gules-deep); }
.perpale__half:focus-visible { outline: 3px solid #fff; outline-offset: -8px; border-radius: 8px; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: 1rem; }
.share__text { margin: 0; color: var(--ink-2); font-size: .95rem; }
.share__buttons { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.share__status { font-size: .92rem; color: var(--vert); font-weight: 700; }

@media (min-width: 1100px) {
  .hero {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto 1fr;
    column-gap: clamp(2.5rem, 4vw, 4.5rem); align-items: start; padding-top: 3rem;
  }
  .hero__intro { grid-column: 1; grid-row: 1; }
  .hero__plan { grid-column: 2; grid-row: 1 / span 3; }
  .hero__title { font-size: clamp(3rem, 1.6rem + 2.6vw, 4.1rem); max-width: 12ch; }
  .hero .lede { font-size: 1.2rem; margin-bottom: 0; }
  .priorities__heading { margin-top: .35rem; }
  .priority { grid-template-columns: 3.6rem minmax(0, 1fr); gap: .2rem 1.1rem; padding: 1rem 0 1rem; }
  .priority__num { font-size: 3.4rem; }
  .priority__title { font-size: 1.45rem; }
  .priority__body p { font-size: 1rem; margin-bottom: .6rem; }
  .priority__body .who { margin-bottom: .35rem; }
  .perpale { grid-column: 1; grid-row: 2; grid-template-columns: 1fr; margin-top: 1.75rem; }
  .perpale__half { padding: 1rem 1.2rem 1.1rem; gap: .2rem; }
  .perpale__name { font-size: 1.75rem; }
  .perpale__first { font-size: .98rem; }
  .perpale__cta { margin-top: .5rem; }
  .share { grid-column: 1; grid-row: 3; }
}

.btn {
  display: inline-flex; align-items: center; gap: .4rem; cursor: pointer;
  border-radius: 999px; padding: .38rem .95rem; font-weight: 700; font-size: .92rem;
  border: 1px solid var(--ink); background: var(--ink); color: #fff;
}
.btn--quiet { background: var(--vellum); color: var(--ink); border-color: var(--rule-strong); }
.btn--quiet:hover { border-color: var(--ink); }
.btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- sections ---------- */
.section { padding-top: clamp(3rem, 7vw, 5.5rem); }
.section__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.85rem); line-height: 1.08; letter-spacing: -.012em;
  margin-bottom: .75rem; max-width: 24ch;
}
.section__intro { color: var(--ink-2); max-width: var(--measure); }
.subsection__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.45rem, 1.2rem + 1vw, 1.95rem); line-height: 1.12; margin-bottom: .6rem; }
.note { color: var(--ink-2); font-size: .98rem; max-width: var(--measure); }
.callout {
  max-width: var(--measure); background: var(--vellum); border-left: 4px solid var(--ink);
  padding: .8rem 1rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1rem 0;
}
.figure .callout { background: var(--stone); }

/* ---------- plans ---------- */
.plans { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); margin-top: 1.5rem; }
@media (min-width: 980px) {
  .plans { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .plan--team { grid-column: 1 / -1; }
  html[data-view="dizbiz"] .plan--dizbiz, html[data-view="chunk"] .plan--chunk { grid-column: 1 / -1; }
}
.plan {
  background: var(--vellum); border-radius: var(--radius); border: 1px solid var(--rule);
  border-top: 6px solid var(--azure); padding: 1.25rem clamp(1rem, 2.5vw, 1.6rem) 1.4rem;
  scroll-margin-top: calc(var(--topbar-h) + 16px);
}
.plan--chunk { border-top-color: var(--gules); }
.plan--team { border-top-color: var(--or); }
.plan__head { display: flex; align-items: center; gap: .8rem; margin-bottom: .4rem; }
.plan__name { font-family: var(--font-display); font-weight: 700; font-size: 1.95rem; line-height: 1.05; }
.plan__civ { margin: 0; color: var(--ink-2); font-size: .98rem; }
.plan__label { font-size: 1rem; font-weight: 800; margin: 1.3rem 0 .5rem; }
.plan__actions { padding-left: 1.6rem; max-width: 72ch; }
.plan__actions li { padding-left: .2rem; }
.plan__actions li + li { margin-top: .7rem; }
.plan__actions li::marker { font-family: var(--font-text); font-weight: 800; color: var(--or-ink); }
.plan__actions--team { margin-top: 1rem; }
@media (min-width: 980px) {
  .plan__actions--team { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 2.5rem; max-width: none; }
  .plan__actions--team li + li { margin-top: 0; }
}
.plan__keep { list-style: none; padding: 0; }
.plan__keep li { position: relative; padding-left: 1.3rem; }
.plan__keep li::before {
  content: ""; position: absolute; left: .1rem; top: .55em; width: .55rem; height: .55rem;
  border-radius: 50%; background: var(--vert);
}
.was { color: var(--ink-3); font-size: .95em; }
.targets { font-size: .95rem; max-width: 40rem; }
.targets th, .targets td { text-align: left; padding: .42rem .6rem .42rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.targets thead th { font-size: .85rem; color: var(--ink-3); font-weight: 700; }
.targets tbody th { font-weight: 600; }
.targets td { font-variant-numeric: tabular-nums; }
.targets td:nth-child(2) { font-weight: 700; }
.plan__more { margin: 1rem 0 0; font-size: .95rem; color: var(--ink-2); }

/* ---------- practice ---------- */
.checklist { margin-top: 1.25rem; }
.checklist__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; }
.checklist__grid { display: grid; gap: 1rem; margin-top: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) {
  .checklist__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .checkgroup--wide { grid-column: 1 / -1; }
  html[data-view="dizbiz"] .checkgroup--dizbiz, html[data-view="chunk"] .checkgroup--chunk { grid-column: 1 / -1; }
  .checkgroup--wide .checkgroup__items { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0 1.75rem; }
}
.checkgroup {
  margin: 0; min-width: 0; border: 1px solid var(--rule); border-left: 5px solid var(--or);
  background: var(--vellum); border-radius: 0 var(--radius) var(--radius) 0; padding: .9rem 1rem 1rem;
}
.checkgroup--dizbiz { border-left-color: var(--azure); }
.checkgroup--chunk { border-left-color: var(--gules); }
.checkgroup legend {
  display: inline-flex; align-items: center; gap: .4rem; float: left; width: 100%;
  font-weight: 800; font-size: 1rem; margin-bottom: .55rem; padding: 0;
}
.checkgroup legend + * { clear: both; }
.checkgroup__items { display: block; }
.checkgroup label {
  display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: .55rem; align-items: start;
  font-size: .98rem; line-height: 1.45; padding: .3rem 0; cursor: pointer;
}
.checkgroup input[type="checkbox"] { width: 1.1rem; height: 1.1rem; margin: .18rem 0 0; accent-color: var(--ink); cursor: pointer; }
.checkgroup--dizbiz input[type="checkbox"] { accent-color: var(--azure); }
.checkgroup--chunk input[type="checkbox"] { accent-color: var(--gules); }
.checkgroup label:has(input:checked) { color: var(--ink-3); }

.routines { display: grid; gap: 1rem 2rem; margin-top: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.routine { border-top: 2px solid var(--ink); padding-top: .75rem; }
.routine__title { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin-bottom: .5rem; }
.routine p { font-size: 1rem; }
.routine__note { color: var(--ink-2); font-size: .95rem !important; }
.loop { list-style: none; padding: 0; margin: 0 0 .8rem; counter-reset: loop; display: grid; gap: .35rem; }
.loop li { counter-increment: loop; display: flex; align-items: center; gap: .6rem; margin: 0; font-weight: 700; font-size: 1rem; }
.loop li::before {
  content: counter(loop); flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  display: inline-grid; place-items: center; background: var(--or-tint); color: var(--or-text);
  font-family: var(--font-text); font-weight: 800; font-size: .9rem;
}

.fivegames { margin-top: 3.25rem; }
.steps { list-style: none; padding: 0; margin: 1.25rem 0 0; counter-reset: step; }
.step {
  counter-increment: step; position: relative; margin: 0;
  display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 0 1rem;
  padding: 1rem 0 .4rem; border-top: 1px solid var(--rule);
}
.step::before {
  content: counter(step); grid-row: span 2;
  font-family: var(--font-display); font-weight: 800; font-size: 2.3rem; line-height: 1; color: var(--or-ink);
}
.step__title { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; line-height: 1.2; margin-bottom: .35rem; }
.step p { max-width: var(--measure); }

.table-title { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin: 2rem 0 .6rem; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.scorecard { font-size: .95rem; min-width: 20rem; }
.scorecard th, .scorecard td { padding: .5rem .55rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.scorecard thead th { font-size: .82rem; color: var(--ink-2); font-weight: 800; border-bottom: 2px solid var(--ink); }
.scorecard thead th.col-dizbiz { box-shadow: inset 0 3px 0 var(--azure); }
.scorecard thead th.col-chunk { box-shadow: inset 0 3px 0 var(--gules); }
.scorecard tbody th { font-weight: 600; }
.scorecard td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cell-note { display: block; font-size: .78rem; color: var(--ink-3); white-space: normal; }
@media (max-width: 520px) {
  .scorecard { font-size: .85rem; }
  .scorecard th, .scorecard td { padding: .45rem .35rem; }
  .scorecard td { white-space: normal; }
}

/* ---------- progress table ---------- */
.progress { font-size: .98rem; margin-top: 1rem; }
.progress th, .progress td { padding: .55rem .7rem .55rem 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.progress thead th { font-size: .85rem; color: var(--ink-2); font-weight: 800; border-bottom: 2px solid var(--ink); }
.progress tbody th { font-weight: 600; }
.progress .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-right: 1.2rem; }
.progress td:nth-child(3) { font-weight: 800; }
.progress__group th { padding-top: 1.1rem; border-bottom: 1px solid var(--rule-strong); }
@media (max-width: 639px) {
  .progress thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .progress tr { display: grid; grid-template-columns: auto auto 1fr; gap: 0 1rem; padding: .7rem 0; border-bottom: 1px solid var(--rule); }
  .progress th, .progress td { display: block; border: 0; padding: 0; }
  .progress tbody th[scope="row"] { grid-column: 1 / -1; margin-bottom: .2rem; }
  .progress .num { text-align: left; padding: 0; }
  .progress .num::before { content: attr(data-label) " "; font-weight: 600; color: var(--ink-3); font-size: .85rem; }
  .progress td:last-child { grid-column: 1 / -1; margin-top: .25rem; color: var(--ink-2); }
  .progress__group { display: block !important; border-bottom: 0 !important; padding-bottom: 0 !important; }
}

/* ---------- figures and charts ---------- */
.figure {
  margin: 2.25rem 0 0; padding: clamp(1rem, 2.5vw, 1.5rem);
  background: var(--vellum); border: 1px solid var(--rule); border-radius: var(--radius);
  scroll-margin-top: calc(var(--topbar-h) + 16px);
}
.figure--flush { margin-top: 1.75rem; }
.figure__head { margin-bottom: .5rem; }
.figure__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); line-height: 1.15; margin-bottom: .45rem; }
.figure__num { display: block; font-family: var(--font-text); font-size: .88rem; font-weight: 800; color: var(--or-text); letter-spacing: 0; margin-bottom: .2rem; }
.figure__desc { color: var(--ink-2); max-width: var(--measure); font-size: 1rem; }

.chart { position: relative; margin-top: .75rem; min-height: 4rem; }
.chart svg:not(.shield) { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font-text); }
.readout__panel-title .shield, .lc-panel .shield { width: 1em; height: 1.2em; display: inline-block; }
.chart:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; border-radius: 4px; }
.chart-help { font-size: .88rem; color: var(--ink-3); margin: .4rem 0 0; }
.chart-error { color: var(--ink-2); font-size: .95rem; padding: 1rem; border: 1px dashed var(--rule-strong); border-radius: var(--radius); }

.controls { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; margin-top: .25rem; }
.controls:empty { display: none; }
.seg { display: inline-flex; flex-wrap: wrap; border: 0; margin: 0; padding: 0; gap: .35rem; min-width: 0; }
.seg legend { font-size: .85rem; font-weight: 800; color: var(--ink-2); margin-bottom: .3rem; float: left; width: 100%; }
.seg legend + * { clear: both; }
.seg label { position: relative; display: inline-flex; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span {
  display: inline-block; padding: .3rem .75rem; border-radius: 999px;
  border: 1px solid var(--rule-strong); background: var(--vellum);
  font-size: .9rem; font-weight: 700; color: var(--ink-2);
}
.seg input:hover + span { border-color: var(--ink); color: var(--ink); }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.chips__label { font-size: .85rem; font-weight: 800; color: var(--ink-2); width: 100%; }
.chip {
  border: 1px solid var(--rule-strong); background: var(--vellum); border-radius: 999px;
  padding: .26rem .7rem; font-size: .86rem; font-weight: 700; color: var(--ink-2); cursor: pointer;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--or-tint); border-color: var(--or); color: var(--or-text); }
.ctrl-block { display: flex; flex-direction: column; gap: .3rem; }

.legend { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; list-style: none; padding: 0; margin: .75rem 0 0; font-size: .9rem; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: .45rem; margin: 0; }
.key-line { display: inline-block; width: 18px; height: 0; border-top: 2px solid currentColor; }
.key-sq { display: inline-block; width: 9px; height: 9px; border-radius: 1px; }
.key-tick { display: inline-block; width: 2px; height: 12px; }

.scrub { display: flex; align-items: center; gap: .75rem; margin-top: .6rem; flex-wrap: wrap; }
.scrub:empty { display: none; }
.scrub label { font-size: .88rem; font-weight: 800; color: var(--ink-2); }
.scrub input[type="range"] { flex: 1 1 14rem; min-width: 10rem; accent-color: var(--ink); height: 1.75rem; cursor: pointer; }
.scrub output { font-variant-numeric: tabular-nums; font-weight: 800; min-width: 3.4rem; }
.scrub .btn { padding: .3rem .8rem; }

.readout {
  margin-top: .6rem; font-size: .95rem; background: var(--stone);
  border-radius: var(--radius); padding: .7rem .9rem; min-height: 3rem;
}
.readout:empty { display: none; }
.readout__title { font-weight: 800; margin: 0 0 .35rem; font-size: .95rem; }
.readout__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem .9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.readout__rows li { margin: 0; min-width: 0; }
.readout__rows li > * + * { margin-left: .35rem; }
.readout__rows .key-line { vertical-align: .3em; }
.readout__val { font-weight: 800; font-variant-numeric: tabular-nums; }
.readout__name { color: var(--ink-2); }
.readout__note { color: var(--ink-3); font-size: .88rem; margin: .4rem 0 0; }
.readout__panel + .readout__panel { margin-top: .6rem; }
.readout__panel-title { font-weight: 700; font-size: .9rem; margin: 0 0 .2rem; display: flex; align-items: center; gap: .35rem; }
.readout__list { margin: 0; padding-left: 1.1rem; }
.readout__list li { margin: 0; }

.table-view { margin-top: .9rem; }
.table-view summary { cursor: pointer; font-weight: 700; font-size: .95rem; color: var(--ink); }
.table-view[open] summary { margin-bottom: .6rem; }
.datatable-wrap { max-height: 26rem; overflow: auto; border: 1px solid var(--rule); border-radius: var(--radius); }
.datatable { font-size: .86rem; font-variant-numeric: tabular-nums; }
.datatable caption { padding: .5rem .7rem; color: var(--ink-2); font-size: .85rem; }
.datatable th, .datatable td { padding: .32rem .7rem; border-bottom: 1px solid var(--grid); text-align: right; white-space: nowrap; }
.datatable th:first-child, .datatable td:first-child { text-align: left; }
.datatable td.text, .datatable th.text { text-align: left; white-space: normal; }
.datatable thead th { position: sticky; top: 0; background: var(--vellum); font-weight: 800; color: var(--ink-2); z-index: 1; box-shadow: 0 1px 0 var(--rule); }

.barsets { display: grid; gap: 1.25rem 2rem; margin-top: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.barsets--compact { gap: 1rem 1.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.barsets__title { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin-top: 2rem; }
.barset__title { font-size: 1rem; font-weight: 800; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin-bottom: .5rem; }
.barset__count { font-weight: 600; color: var(--ink-3); font-size: .92rem; }
.barset__note { font-size: .88rem; color: var(--ink-2); margin: .45rem 0 0; }
.bars { list-style: none; margin: 0; padding: 0; }
.bar { display: grid; grid-template-columns: minmax(7.5rem, 11rem) minmax(0, 1fr) 2.2rem; gap: .5rem; align-items: center; margin: 0; padding: .18rem 0; font-size: .9rem; }
.bar + .bar { margin-top: 0; }
.bar__label { line-height: 1.25; }
.bar__owner { display: block; font-size: .78rem; color: var(--ink-3); }
.bar__tag { display: inline-block; font-size: .72rem; font-weight: 800; color: var(--ink-2); border: 1px solid var(--rule-strong); border-radius: 999px; padding: 0 .4rem; margin-left: .25rem; vertical-align: .1em; }
.bar__track { height: 12px; background: var(--grid); border-radius: 0 3px 3px 0; position: relative; }
.bar__fill { display: block; height: 100%; border-radius: 0 3px 3px 0; min-width: 3px; }
.bar__val { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.barset--dizbiz .bar__fill { background: var(--azure); }
.barset--chunk .bar__fill { background: var(--gules); }
@media (max-width: 400px) { .bar { grid-template-columns: minmax(6.5rem, 9rem) minmax(0, 1fr) 2rem; } }

/* ---------- game film ---------- */
.tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: 1.75rem;
  position: sticky; top: var(--topbar-h); z-index: 20; background: var(--stone); padding: .5rem 0;
}
@media (max-height: 640px), (max-width: 719px) { .tabs { position: static; } }
.tab {
  display: flex; flex-direction: column; align-items: flex-start; gap: .05rem; text-align: left;
  padding: .5rem .85rem; border-radius: var(--radius); cursor: pointer;
  background: transparent; border: 1px solid var(--rule-strong); border-bottom-width: 3px;
}
.tab__label { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1.1; }
@media (min-width: 960px) { .tab { flex-direction: row; align-items: baseline; gap: .7rem; } }
.tab__sub { font-size: .85rem; color: var(--ink-2); line-height: 1.3; }
.tab:hover { border-color: var(--ink-2); }
.tab[aria-selected="true"] { background: var(--vellum); border-color: var(--ink); border-bottom-color: var(--or); }
.tabpanel { padding-top: 1.25rem; }
@media (min-width: 720px) and (min-height: 641px) { .tabpanel [id] { scroll-margin-top: calc(var(--topbar-h) + 84px); } }
.tabpanel:focus-visible { outline: none; }

.game__head > p, .game__head > h3 { max-width: 72ch; }
.game__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.15rem); line-height: 1.1; margin-bottom: .5rem; }
.game__matchup { font-size: 1.08rem; }
.game__summary { color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); gap: .5rem 1.5rem; margin: 1.1rem 0; }
.facts div { border-top: 1px solid var(--rule-strong); padding-top: .4rem; }
.facts dt { font-size: .82rem; font-weight: 800; color: var(--ink-3); }
.facts dd { margin: 0; font-size: .98rem; font-variant-numeric: tabular-nums; }
.game__source { font-size: .95rem; }

.stages { list-style: none; padding: 0; margin: 2.25rem 0 0; }
.stage {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: .3rem;
  padding: 1.75rem 0 1rem; border-top: 2px solid var(--ink); margin: 0;
  scroll-margin-top: calc(var(--topbar-h) + 12px);
}
.stage + .stage { margin-top: 1.5rem; }
@media (min-width: 900px) {
  .stage { grid-template-columns: 7.75rem minmax(0, 1fr); gap: 1.5rem; scroll-margin-top: calc(var(--topbar-h) + 96px); }
}
.stage__clock { display: flex; align-items: baseline; gap: .4rem; font-family: var(--font-display); font-variant-numeric: lining-nums tabular-nums; font-weight: 700; }
@media (min-width: 900px) {
  .stage__clock { flex-direction: column; gap: 0; position: sticky; top: calc(var(--topbar-h) + 100px); align-self: start; }
}
.clock { font-size: 1.5rem; line-height: 1.15; }
.clock__to { font-family: var(--font-text); font-size: .82rem; font-weight: 600; color: var(--ink-3); }
.stage__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 1.15rem + .9vw, 1.8rem); line-height: 1.12; margin-bottom: .75rem; max-width: 34ch; }

.beat {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem 1.5rem;
  padding: 1.1rem 0; border-top: 1px solid var(--rule); font-size: 1rem;
}
.stage__title + .beat { border-top: 0; padding-top: .25rem; }
@media (min-width: 760px) {
  .beat { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .beat__who { grid-column: 1 / -1; }
  .beat__facts--wide, .beat__next--wide { grid-column: 1 / -1; }
}
@media (min-width: 1180px) {
  .beat { grid-template-columns: 8.5rem minmax(0, 1.05fr) minmax(0, 1fr); }
  .beat__who { grid-column: auto; }
  .beat__facts--wide, .beat__next--wide { grid-column: 2 / -1; }
}
.beat__who { margin: 0; padding-top: .15rem; }
.beat ul { margin: .2rem 0 .8rem; padding-left: 1.1rem; list-style: disc; }
.beat li + li { margin-top: .35rem; }
.beat p { margin-bottom: .8rem; }
.beat__facts > :last-child, .beat__next > :last-child { margin-bottom: 0; }
.label { font-size: .84rem; font-weight: 800; color: var(--ink-2); margin: 0 0 .15rem !important; }
.beat__next {
  background: var(--or-tint); border-left: 4px solid var(--or);
  padding: .8rem 1rem .85rem; border-radius: 0 var(--radius) var(--radius) 0; align-self: start;
}
.beat__next .label { color: var(--or-text); }
.beat__next li::marker { color: var(--or-ink); }
.beat--context .beat__facts { background: rgba(125, 131, 138, .1); border-left: 4px solid var(--iron); padding: .75rem 1rem; border-radius: 0 var(--radius) var(--radius) 0; }

.result { margin: 1.5rem 0 0; padding: 1.1rem 1.25rem; background: var(--vellum); border: 1px solid var(--rule); border-radius: var(--radius); max-width: 80ch; }
.result__title { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin-bottom: .4rem; }
.result p { margin: 0; }

.fights, .mapsec { margin-top: 2.5rem; padding: clamp(1rem, 2.5vw, 1.5rem); background: var(--vellum); border: 1px solid var(--rule); border-radius: var(--radius); }
.fights__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); margin-bottom: .45rem; }
.map { margin-top: .75rem; }
.map > svg { display: block; width: 100%; height: auto; font-family: var(--font-text); }
.map:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 4px; }

/* ---------- answers ---------- */
.answer { padding: 2rem 0 1rem; border-top: 2px solid var(--ink); margin-top: 1.75rem; scroll-margin-top: calc(var(--topbar-h) + 12px); }
.answer:first-of-type { margin-top: 1rem; }
.answer__q { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.45rem, 1.2rem + 1vw, 1.95rem); line-height: 1.12; margin-bottom: .6rem; max-width: 32ch; }
.answer__a { font-size: clamp(1.12rem, 1.02rem + .4vw, 1.28rem); font-weight: 700; max-width: 56ch; line-height: 1.4; }
.answer > p { max-width: var(--measure); }
.answer__list { max-width: var(--measure); }
.answer__list li + li { margin-top: .55rem; }
.rec-flag { font-size: .98rem; color: var(--ink-2); }
.rec {
  display: inline-block; margin-right: .45rem; padding: .05rem .55rem; border-radius: 999px;
  border: 1.5px solid var(--or); background: var(--or-wash); color: var(--or-text); font-size: .8rem; font-weight: 800;
}
.counters { font-size: .97rem; margin: 1rem 0; }
.counters caption { font-weight: 800; font-size: .95rem; margin-bottom: .4rem; }
.counters th, .counters td { text-align: left; vertical-align: top; padding: .65rem .8rem .65rem 0; border-bottom: 1px solid var(--rule); }
.counters thead th { font-size: .85rem; color: var(--ink-2); font-weight: 800; border-bottom: 2px solid var(--ink); }
.counters tbody th { font-weight: 700; width: 28%; }
.counters td:last-child { color: var(--ink-2); }
@media (max-width: 639px) {
  .counters thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .counters tr { display: block; padding: .7rem 0; border-bottom: 1px solid var(--rule); }
  .counters th, .counters td { display: block; width: auto !important; border: 0; padding: .1rem 0; }
  .counters td::before { content: attr(data-label); display: block; font-size: .8rem; font-weight: 800; color: var(--ink-3); margin-top: .35rem; }
}
.splits { display: grid; gap: 1rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); margin: 1rem 0; }
.split { font-size: .97rem; font-variant-numeric: tabular-nums; }
.split caption { font-weight: 800; font-size: .95rem; padding-bottom: .4rem; }
.split caption .shield { margin-right: .35rem; }
.split th, .split td { padding: .45rem .5rem; border-bottom: 1px solid var(--rule); text-align: right; }
.split th:first-child { text-align: left; }
.split thead th { font-size: .82rem; color: var(--ink-2); font-weight: 800; border-bottom: 2px solid var(--ink); }
.split--dizbiz thead th { border-bottom-color: var(--azure); }
.split--chunk thead th { border-bottom-color: var(--gules); }

.ages { margin: 1rem 0 0; max-width: 80ch; }
.ages__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: .2rem 1.5rem; padding: .9rem 0; border-top: 1px solid var(--rule); }
@media (min-width: 760px) { .ages__row { grid-template-columns: 11rem minmax(0, 1fr); } }
.ages dt { font-weight: 800; }
.ages dd { margin: 0; }

/* ---------- glossary ---------- */
.glossary { margin-top: 1.25rem; display: grid; gap: 0 2.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .glossary { grid-template-columns: 1fr 1fr; } }
.glossary div { padding: .75rem 0; border-top: 1px solid var(--rule); break-inside: avoid; }
.glossary dt { font-weight: 800; }
.glossary dd { margin: .15rem 0 0; color: var(--ink-2); }

/* ---------- sources ---------- */
.drawer { border-top: 1px solid var(--rule); padding: .8rem 0; max-width: 80ch; }
.drawer:last-of-type { border-bottom: 1px solid var(--rule); }
.drawer summary { cursor: pointer; font-weight: 800; font-size: 1.05rem; }
.drawer[open] summary { margin-bottom: .6rem; }
.drawer ul { margin-bottom: .4rem; }
.drawer li + li { margin-top: .45rem; }
#sources .subsection__title { margin-top: 2.25rem; }
.sources { max-width: 80ch; }
.sources li + li { margin-top: .55rem; }

/* ---------- footer ---------- */
.footer { margin-top: 5rem; padding: 2rem 0 3rem; border-top: 1px solid var(--rule); color: var(--ink-3); font-size: .9rem; }
.footer p { max-width: 80ch; margin-bottom: .4rem; }
.footer a { color: var(--ink-2); }

/* ---------- forced colors ---------- */
@media (forced-colors: active) {
  .perpale__half, .beat__next, .plan, .figure, .checkgroup { border: 1px solid CanvasText; }
  .viewswitch__opt input:checked + span, .seg input:checked + span { outline: 2px solid Highlight; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- print ---------- */
@media print {
  @page { margin: 14mm 12mm; }
  html { scroll-padding-top: 0; }
  body { background: #fff; font-size: 10.5pt; line-height: 1.45; }
  .topbar, .skip, .share, .viewnote, [data-js-only], .controls, .scrub, .chart-help, .tabs, .perpale__cta { display: none !important; }
  .tabpanel[hidden] { display: block !important; }
  .tabpanel + .tabpanel { break-before: page; }
  .section { padding-top: 1.5rem; }
  .hero { padding-top: 0; }
  .perpale { gap: 0; border: 1px solid #000; background: #fff; }
  .perpale__half { background: #fff !important; color: #000; border-top: 6px solid; padding: .8rem 1rem; }
  .perpale__half--dizbiz { border-top-color: var(--azure); }
  .perpale__half--chunk { border-top-color: var(--gules); }
  .perpale__civ { color: #333; }
  .plan, .figure, .fights, .mapsec, .result, .checkgroup, .readout { background: #fff !important; }
  .checkgroup, .step, .answer__list li, .glossary div, .bar, .priority, .beat__next, .beat li, .plan__actions li,
  .plan__keep, .targets, .routine, .lc-panel, .barset, .chart > svg, .map > svg, .result, .facts, .ages__row, .counters tr { break-inside: avoid; }
  .section__title, .subsection__title, .stage__title, .stage__clock, .figure__head, .game__title, .answer__q, .plan__label, .label, .beat__who { break-after: avoid; }
  details.table-view { display: none !important; }
  details.table-view.describe { display: block !important; }
  .print-only { display: block !important; }
  .print-title { font-family: var(--font-display); font-weight: 700; font-size: 16pt; margin: 0 0 4pt; }
  .stage__clock { position: static; }
  .datatable-wrap { max-height: none; overflow: visible; border: 0; }
  a { color: inherit; }
  .sources a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8.5pt; color: #444; word-break: break-all; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html.print-checklist main > section:not(#practice), html.print-checklist .hero, html.print-checklist .footer, html.print-checklist #five-games { display: none !important; }
  html.print-checklist #practice { padding-top: 0; }
  html.print-checklist #practice > .section__title { display: none; }
  html.print-checklist body { font-size: 9.5pt; }
  html.print-checklist .checklist__grid { gap: 6pt; }
  html.print-checklist .checkgroup { padding: 6pt 9pt; }
  html.print-checklist .checkgroup label { padding: 1.5pt 0; font-size: 9.5pt; }
  html.print-checklist .routines { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8pt 14pt; margin-top: 10pt; }
  html.print-checklist .routine p, html.print-checklist .loop li { font-size: 9.5pt !important; }
}
