/* The paper: salmon newsprint, black serif, hairline rules. Shared by every page. */
:root {
  --paper: #fbeee2;
  --paper-2: #f4e1d0;
  --ink: #1c1916;
  --ink-2: #4a413a;
  --muted: #7a6c61;
  --rule: #d8c1ad;
  --rule-strong: #1c1916;
  --red: #a11d21;
  --up: #1f6b45;
  --down: #a11d21;
  --mast: "Playfair Display", "Times New Roman", serif;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Libre Franklin", "Franklin Gothic Medium", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background-color: var(--paper);
  /* faint newsprint grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .18 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "onum" 1;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
button { font: inherit; color: inherit; cursor: pointer; }
p { margin: 0; }

.page { max-width: 720px; margin: 0 auto; padding: 20px 20px 80px; }

/* ── Broadsheet: on wide screens the whole edition fits one screen, no page scroll ── */
.sheet { max-width: 1440px; margin: 0 auto; padding: 14px 28px 0; display: flex; flex-direction: column; min-height: 100vh; }
.sheet > header { flex: 0 0 auto; }
.sheet .masthead { font-size: clamp(52px, 6.2vw, 92px); margin: 2px 0 6px; }
.broad { flex: 1 1 auto; display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2.4fr) minmax(240px, 1.1fr); min-height: 0; }
.broad > * { padding: 18px 24px 18px; min-width: 0; }
.broad > * + * { border-left: 1px solid var(--rule); }
.broad > :first-child { padding-left: 0; }
.broad > :last-child { padding-right: 0; }
.col-h { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; border-bottom: 2px solid var(--ink); padding-bottom: 6px; margin: 0 0 4px; }
.sheet .footer { margin-top: 0; flex: 0 0 auto; padding: 8px 0 10px; }

@media (min-width: 1000px) and (min-height: 640px) {
  .sheet { height: 100vh; overflow: hidden; }
  .broad > * { overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }
}
@media (max-width: 999px) {
  .sheet { padding: 14px 18px 0; }
  .broad { grid-template-columns: 1fr; }
  .broad > * { padding: 16px 0; }
  .broad > * + * { border-left: 0; border-top: 1px solid var(--rule); }
}

/* ── Masthead ─────────────────────────────── */
.mast-top {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-family: var(--sans); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  padding-bottom: 8px;
}
.masthead {
  font-family: var(--mast); font-weight: 900; text-align: center; line-height: .9;
  font-size: clamp(56px, 14vw, 112px); letter-spacing: -.01em; margin: 6px 0 10px;
}
.masthead a { text-decoration: none; }
.masthead a:hover { color: inherit; }
.dateline {
  border-top: 3px double var(--rule-strong); border-bottom: 1px solid var(--rule-strong);
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 7px 0; font-family: var(--sans); font-size: 12.5px;
}
.dateline nav { display: flex; gap: 16px; flex-wrap: wrap; }
.dateline nav a { text-decoration: none; font-weight: 600; }
.dateline nav a[aria-current="page"] { border-bottom: 2px solid var(--ink); }
.dateline .soon { color: var(--muted); font-style: italic; font-weight: 400; }

/* ── Type ─────────────────────────────────── */
.kicker { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.headline {
  font-family: var(--mast); font-weight: 700; font-size: clamp(32px, 6.4vw, 50px); line-height: 1.06;
  letter-spacing: -.01em; margin: 8px 0 10px; text-wrap: balance;
}
.standfirst { font-size: 20px; font-style: italic; color: var(--ink-2); text-wrap: pretty; }
.label { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.num { font-family: var(--sans); font-variant-numeric: tabular-nums lining-nums; }
.up { color: var(--up); } .down { color: var(--down); }

/* ── Figures strip (Expected | Actual | Own move) ─── */
.figures { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); margin: 22px 0 6px; }
.figures > div { padding: 10px 12px 12px; }
.figures > div + div { border-left: 1px solid var(--rule); }
.figures .v { font-family: var(--sans); font-variant-numeric: tabular-nums lining-nums; font-size: 22px; font-weight: 600; margin-top: 2px; overflow-wrap: anywhere; }
.figures .v.sm { font-size: 16px; line-height: 1.3; }

/* ── Buttons ──────────────────────────────── */
.btn {
  font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: .02em;
  border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper);
  padding: 11px 18px; min-height: 46px; border-radius: 0;
}
.btn:hover { background: var(--red); border-color: var(--red); color: var(--paper); }
.btn.line { background: transparent; color: var(--ink); }
.btn.line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn:disabled { opacity: .5; cursor: default; }
.textbtn { background: none; border: 0; padding: 0; font-family: var(--sans); font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.textbtn:hover { color: var(--red); }

.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  background: var(--ink); color: var(--paper); font-family: var(--sans); font-size: 14px;
  padding: 10px 16px; max-width: calc(100% - 32px); z-index: 5;
}
.footer { margin-top: 48px; border-top: 1px solid var(--rule-strong); padding-top: 10px; font-family: var(--sans); font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

@media (max-width: 520px) {
  body { font-size: 17px; }
  .page { padding: 14px 16px 64px; }
  .figures .v { font-size: 18px; }
  .figures > div { padding: 8px 8px 10px; }
  .mast-top span:first-child { display: none; }
  .dateline { font-size: 12px; }
  .dateline nav { gap: 6px 12px; }
  .dateline .soon { font-size: 11px; }
}
