@font-face {
  font-family: 'Big Shoulders Display';
  src: url('/fonts/big-shoulders-display-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Petrona';
  src: url('/fonts/petrona-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Petrona';
  src: url('/fonts/petrona-latin-wght-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #FFFFFF;
  --slate: #1E2A32;
  --ink-soft: #56636D;
  --panel: #EDF1F3;
  --rule: #C9D2D8;
  --signal: #C2410C;
  --on-slate: #FFFFFF;
  --on-slate-soft: #C9D2D8;
  --display: 'Big Shoulders Display', 'Petrona', Georgia, serif;
  --text: 'Petrona', Georgia, serif;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--slate);
  font-family: var(--text);
  font-size: 19px;
  line-height: 1.6;
  font-optical-sizing: auto;
}
img, svg { max-width: 100%; }
a { color: var(--slate); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover, a:focus-visible, a[aria-current="page"] { color: var(--signal); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: 8px 12px; z-index: 5; }
.skip:focus { left: 8px; }

h1, h2, h3, h4, .disp {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0.005em;
  margin: 0;
}
h1 { font-size: clamp(44px, 7vw, 84px); }
h2 { font-size: clamp(32px, 4.2vw, 46px); margin-top: 1.6em; margin-bottom: 0.35em; }
h3 { font-size: 27px; font-weight: 700; margin-top: 1.3em; margin-bottom: 0.3em; }
p { margin: 0 0 0.9em; }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
li { margin-bottom: 0.35em; }
.prose p, .prose li { max-width: 68ch; }
.prose a, .prose p, .prose li { overflow-wrap: anywhere; }
.lede { font-size: 22px; line-height: 1.5; max-width: 60ch; }
.soft { color: var(--ink-soft); }
small, .small { font-size: 16px; }

/* Header strip */
.strip { background: var(--slate); color: var(--on-slate); }
.strip-in { max-width: 1280px; margin: 0 auto; padding: 10px var(--gutter); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px; }
.mark { font-family: var(--display); font-weight: 800; font-size: 26px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--on-slate); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.mark svg { width: 22px; height: 22px; }
.mark:hover { color: var(--on-slate); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; font-size: 17px; }
.nav li { margin: 0; }
.nav a { color: var(--on-slate); text-decoration: none; border-bottom: 2px solid transparent; padding-bottom: 1px; }
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="page"] { color: var(--on-slate); border-bottom-color: var(--signal); }

/* Page frame */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.crumbs { font-size: 16px; color: var(--ink-soft); padding-top: 18px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0 6px; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--rule); }
.crumbs a { color: var(--ink-soft); }
.pagehead { padding: 22px 0 18px; border-bottom: 1px solid var(--rule); margin-bottom: 8px; }
.pagehead h1 { margin-bottom: 14px; max-width: 18ch; }
.pagehead.wide h1 { max-width: none; }
.grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 56px; padding-bottom: 64px; }
.grid > aside { padding-top: 32px; }
.aside-box { position: sticky; top: 16px; }
.box { background: var(--panel); padding: 18px 20px; margin-bottom: 22px; }
.box h2, .box h3 { font-size: 24px; margin: 0 0 8px; }
.box ul { list-style: none; padding: 0; margin: 0; font-size: 17px; }
.box li { margin: 0 0 6px; }
.box p { font-size: 17px; }
.single { max-width: 860px; padding-bottom: 64px; }

/* Matrix band */
.band { background: var(--slate); color: var(--on-slate); }
.band a { color: var(--on-slate); }
.band a:hover, .band a:focus-visible { color: var(--on-slate); text-decoration-color: var(--signal); }
.band-in { max-width: 1280px; margin: 0 auto; padding: 36px var(--gutter) 34px; }
.band h1 { font-size: clamp(40px, 6.4vw, 80px); max-width: 16ch; margin-bottom: 14px; }
.band .lede { color: var(--on-slate-soft); }
.band .soft { color: var(--on-slate-soft); }
.mx-scroll { overflow-x: auto; margin: 22px 0 10px; position: relative; }
.tscroll { position: relative; }
table.mx { border-collapse: collapse; width: 100%; min-width: 980px; font-variant-numeric: tabular-nums; }
.mx th, .mx td { padding: 6px 4px; text-align: center; vertical-align: middle; }
.mx thead th { font-family: var(--display); font-weight: 700; font-size: 16px; line-height: 1.05; vertical-align: bottom; padding-bottom: 10px; }
.mx tbody th { position: sticky; left: 0; background: var(--slate); z-index: 1; text-align: left; font-family: var(--display); font-weight: 700; font-size: 21px; white-space: nowrap; padding-right: 14px; }
.mx tbody tr { border-top: 1px solid rgba(201, 210, 216, 0.35); }
.mx td a { display: inline-flex; padding: 4px; text-decoration: none; }
.mx .g { width: 22px; height: 22px; }
.mx-light { color: var(--slate); }
.mx-light tbody th { background: var(--paper); }
.mx-light tbody tr { border-top: 1px solid var(--rule); }
.mx-hint { display: none; font-size: 15px; }
@media (max-width: 1000px) { .mx-hint { display: block; } }
.legend { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 16px; margin: 6px 0 0; padding: 0; list-style: none; }
.legend li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.legend .g { width: 18px; height: 18px; }
.g { display: inline-block; vertical-align: middle; fill: currentColor; width: 18px; height: 18px; flex: none; }
.box .g { width: 16px; height: 16px; margin-right: 4px; }
.g-win { color: var(--signal); }

/* Home sections */
.home-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 56px; padding: 8px 0 56px; }
.pairs { list-style: none; padding: 0; margin: 0; }
.pairs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.pairs a.pt { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1.05; text-decoration: none; }
.pairs p { grid-column: 1 / -1; margin: 0; font-size: 17px; color: var(--ink-soft); max-width: 70ch; }
.strip-chart { display: block; }
.dated { list-style: none; padding: 0; margin: 0; }
.dated li { padding: 10px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.dated time { display: block; font-size: 15px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.dated a { font-weight: 600; }
.linkgroups { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px 36px; font-size: 16px; }
.linkgroups h3 { font-size: 22px; margin-top: 18px; }
.linkgroups ul { list-style: none; padding: 0; }
.linkgroups li { margin: 0 0 3px; }

/* Diff blocks */
.diff { border-top: 2px solid var(--slate); margin: 14px 0 26px; }
.diff-head { display: grid; grid-template-columns: 1fr 1fr; gap: 0; position: sticky; top: 0; background: var(--paper); z-index: 1; border-bottom: 1px solid var(--rule); }
.diff-head div { font-family: var(--display); font-weight: 800; font-size: 24px; padding: 8px 14px; }
.drow { border-bottom: 1px solid var(--rule); }
.dlabel { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 21px; padding: 10px 0 2px; }
.dtag { font-family: var(--text); font-weight: 600; font-size: 15px; color: var(--slate); background: var(--panel); padding: 0 8px; }
.dcells { display: grid; grid-template-columns: 1fr 1fr; }
.dcell { padding: 6px 14px 12px; font-size: 16px; line-height: 1.5; border-left: 6px solid transparent; }
.dcell .st { font-weight: 600; display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.dcell .g { width: 18px; height: 18px; flex: none; }
.dcell.win { border-left-color: var(--slate); }
.dcell.lose { color: var(--ink-soft); }
.dcell.lose a { color: var(--ink-soft); }
.dcell .src { font-size: 14px; }
.drow.same .dlabel { color: var(--ink-soft); }

/* Verdicts */
.verdicts { margin: 10px 0 20px; }
.verdict { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 8px 24px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.verdict h3 { margin: 0; font-size: 26px; }
.verdict .pick { display: block; font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--ink-soft); margin-top: 4px; }
.verdict p { margin: 0; }

/* Tables */
table.t { border-collapse: collapse; width: 100%; font-size: 16px; line-height: 1.45; font-variant-numeric: tabular-nums; margin: 10px 0 22px; }
.t th, .t td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--rule); }
.t thead th { font-family: var(--display); font-weight: 700; font-size: 19px; border-bottom: 2px solid var(--slate); }
.t td.num, .t th.num { text-align: right; white-space: nowrap; }
.t .g { width: 18px; height: 18px; }
.tscroll { overflow-x: auto; }
.vh { left: 0; top: 0; }

/* Coverage rows on profiles */
.cov { list-style: none; padding: 0; margin: 10px 0 20px; border-top: 2px solid var(--slate); }
.cov li { display: grid; grid-template-columns: 30px 210px minmax(0, 1fr); gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); margin: 0; font-size: 17px; scroll-margin-top: 12px; }
.cov li:target { background: var(--panel); }
.cov .g { width: 20px; height: 20px; margin-top: 4px; }
.cov b { font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.2; }
.cov .src { display: block; font-size: 14px; }

/* FAQ */
.faq dt { font-weight: 700; margin-top: 16px; }
.faq dd { margin: 4px 0 0; max-width: 68ch; }

/* Planner */
.planner { background: var(--panel); padding: 20px; margin: 18px 0 26px; }
.planner fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.planner legend { font-family: var(--display); font-weight: 700; font-size: 22px; margin-bottom: 6px; }
.planner label { display: block; font-size: 17px; margin-bottom: 8px; }
.planner input[type=number] { font: inherit; font-size: 17px; width: 110px; padding: 4px 6px; border: 1px solid var(--ink-soft); background: var(--paper); color: var(--slate); border-radius: 0; }
.planner .checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.planner .checks label { display: flex; gap: 8px; align-items: center; }
.plan-out { border-top: 2px solid var(--slate); padding-top: 12px; }

/* Footer */
.foot { background: var(--slate); color: var(--on-slate); margin-top: 24px; }
.foot-in { max-width: 1280px; margin: 0 auto; padding: 30px var(--gutter) 36px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px 40px; font-size: 16px; }
.foot a { color: var(--on-slate); }
.foot a:hover, .foot a:focus-visible { color: var(--on-slate); text-decoration-color: var(--signal); }
.foot h2 { font-size: 22px; margin: 0 0 8px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 0 0 4px; }
.foot .note { color: var(--on-slate-soft); max-width: 60ch; }

.mt0 { margin-top: 0; }
.kicker-list { columns: 2; column-gap: 32px; font-size: 17px; }

@media (max-width: 900px) {
  .grid, .home-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .grid > aside { padding-top: 0; order: -1; }
  .aside-box { position: static; }
  .foot-in { grid-template-columns: 1fr; }
  .verdict { grid-template-columns: minmax(0, 1fr); }
  .mob-hide { display: none; }
  .cov li { grid-template-columns: 26px minmax(0, 1fr); }
  .cov li span.n { grid-column: 2; }
  .kicker-list { columns: 1; }
}
@media (max-width: 520px) {
  body { font-size: 18px; }
  .lede { font-size: 20px; }
  .dcell { padding: 6px 8px 10px; font-size: 15px; border-left-width: 4px; }
  .diff-head div { font-size: 19px; padding: 8px; }
  .pairs a.pt { font-size: 26px; }
  .t td.num, .t th.num { white-space: normal; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none; animation: none; }
}
@media print {
  .strip, .foot, .crumbs, .grid > aside, .skip { display: none; }
  .grid { display: block; }
  .band { background: none; color: #000; }
  body { font-size: 12pt; }
  a { color: #000; }
}
@media (max-width: 520px) {
  .mx tbody th { white-space: normal; font-size: 17px; line-height: 1.1; min-width: 118px; max-width: 128px; }
}
