:root {
  --ink: var(--mf-ink, #262626);
  --muted: var(--mf-muted, #808080);
  --accent: var(--mf-blue, #4472C4);
  --line: var(--mf-gridline, #D9D9D9);
  --panel: color-mix(in srgb, var(--mf-ink, #262626) 3%, var(--mf-bg, #fff));
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--mf-bg, #fff); color: var(--ink); font-family: var(--mf-font, Literata, Georgia, serif); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 28px 16px 80px; }
a { color: var(--accent); }
.crumb { font-size: 14px; margin: 0 0 22px; }
h1 { font-size: 34px; line-height: 1.15; margin: 0 0 6px; letter-spacing: -0.01em; }
h2 { font-size: 22px; margin: 40px 0 6px; }
h3 { font-size: 16px; margin: 0 0 6px; text-align: center; }
.sub { color: var(--muted); font-size: 17px; margin: 0 0 22px; max-width: 860px; line-height: 1.5; }
.note { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 0 0 12px; max-width: 900px; }
.note.fine { font-size: 12.5px; }
.note p { margin: 0 0 10px; }
.note b { color: var(--ink); }
.methods p { max-width: 900px; }

/* the hero: the expected prints, one tile each, centered both ways */
.hero { border: 1px solid var(--line); border-left: 5px solid var(--accent); background: var(--panel); border-radius: 6px; padding: 18px 20px 12px; min-width: 0; }
.kicker { text-transform: uppercase; letter-spacing: .09em; font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.lede { font-size: 18px; line-height: 1.45; margin: 0 0 14px; max-width: 980px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 0 0 6px; }
.tile { border: 1px solid var(--line); border-radius: 6px; background: var(--mf-bg, #fff); min-height: 124px; padding: 10px 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.tile .k { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.tile .v { font-size: 34px; font-weight: 700; line-height: 1.15; margin: 4px 0 4px; font-variant-numeric: tabular-nums; color: var(--accent); }
.tile .s { font-size: 12px; color: var(--muted); line-height: 1.35; }

/* controls: every button the same fixed size */
.ctl-row { display: flex; flex-wrap: wrap; gap: 0 28px; margin: 14px 0 4px; }
.ctl { margin: 10px 0 12px; }
.ctl label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.seg { display: grid; grid-template-columns: repeat(auto-fill, 150px); gap: 6px; }
.seg button { font-family: inherit; font-size: 13px; width: 150px; height: 44px; border: 1px solid var(--line); border-radius: 5px;
  background: var(--mf-bg, #fff); color: var(--ink); cursor: pointer; padding: 0 6px; white-space: normal; line-height: 1.15; overflow: hidden; }
.seg button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--mf-bg, #fff); font-weight: 600; }
.seg.narrow { grid-template-columns: repeat(auto-fill, 92px); }
.seg.narrow button { width: 92px; }
.ctl.off { opacity: .4; }

/* tables: every column centered, headers and values alike */
.tablewrap { overflow-x: auto; margin: 0 0 8px; }
table.t { border-collapse: collapse; width: 100%; font-size: 14px; }
table.t th, table.t td { text-align: center; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; height: 40px; }
table.t th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; line-height: 1.3; }
table.t th .sub { display: block; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 11px; color: var(--muted); margin: 0; }
table.t td.strong { font-weight: 700; color: var(--accent); font-size: 16px; font-variant-numeric: tabular-nums; }
table.t td.num { font-variant-numeric: tabular-nums; }
table.t td.muted { color: var(--muted); font-size: 12.5px; }
table.t td.dash { color: var(--muted); }
table.t th.year { text-transform: none; letter-spacing: 0; color: var(--ink); font-size: 13px; border-bottom: 1px solid var(--line); }
table.t th.group { border-bottom: none; height: 34px; }
table.t th.group.col { border-left: 1px solid var(--line); }
table.t td.col { border-left: 1px solid var(--line); }
table.t td.basis { font-size: 12px; color: var(--muted); white-space: normal; max-width: 220px; }
table.t th.rowh { text-align: center; text-transform: none; letter-spacing: 0; color: var(--ink); font-size: 14px; font-weight: 600; white-space: normal; }
sup.n { font-size: 10px; color: var(--accent); margin-left: 2px; }

/* the per-release chart cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; margin: 6px 0 4px; }
.card { border: 1px solid var(--line); border-radius: 6px; background: var(--panel); padding: 12px 12px 6px; min-width: 0; }
.card .chart { min-height: 200px; }
.card .cnote { font-size: 12px; color: var(--muted); line-height: 1.4; margin: 4px 0 4px; text-align: center; }

/* the definitions under the annual table */
.defs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin: 10px 0 0; }
.def { border: 1px solid var(--line); border-radius: 6px; background: var(--panel); padding: 10px 12px; font-size: 12.5px; line-height: 1.45; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.def b { color: var(--ink); font-size: 13.5px; }
.notes { margin: 8px 0 0; }

@media (max-width: 520px) {
  h1 { font-size: 28px; }
  .hero { padding: 14px; }
  .lede { font-size: 16px; }
  .tile .v { font-size: 28px; }
  .seg { grid-template-columns: repeat(auto-fill, 136px); }
  .seg button { width: 136px; font-size: 12px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  table.t { font-size: 13px; }
  table.t th, table.t td { padding: 6px 6px; }
}
