/* Argus dashboards — shared theme, matched to news.jechua.com (paper/ink editorial). */

@font-face {
  font-family: "Playfair Display";
  font-weight: 700;
  font-display: swap;
  src: url("fonts/playfair-700.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-weight: 400;
  font-display: swap;
  src: url("fonts/sourceserif-400.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-weight: 600;
  font-display: swap;
  src: url("fonts/sourceserif-600.woff2") format("woff2");
}

:root {
  --paper: #fbfaf5;
  --ink: #1a1a1a;
  --ink-soft: #3a3a3a;
  --ink-mute: #777;
  --rule: #1a1a1a;
  --rule-dot: #c9c2b2;
  --accent: #9b1c1c;
  --up: #1d6b3a;
  --down: #9b1c1c;
  --surface: #f4f2ea;
  --display: "Playfair Display", "Times New Roman", Times, serif;
  --body: "Source Serif 4", Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16140f;
    --ink: #ece7da;
    --ink-soft: #b9b3a4;
    --ink-mute: #8a8475;
    --rule: #ece7da;
    --rule-dot: #3a352b;
    --accent: #d2674f;
    --up: #5fa777;
    --down: #d2674f;
    --surface: #1f1c15;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--body);
}
.sheet { max-width: 1280px; margin: 0 auto; padding: 28px 32px 80px; }

/* ---- masthead ---- */
.masthead { text-align: center; padding-top: 8px; }
.masthead .dateline {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-mute);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 6px;
}
.masthead h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 64px);
  letter-spacing: .02em;
  margin: 18px 0 10px;
}
.masthead h1 a { color: inherit; text-decoration: none; }
.masthead .tagline {
  font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 14px;
}
.double-rule { border: 0; border-top: 3px solid var(--rule); height: 3px; position: relative; margin: 0; }
.double-rule::after { content: ""; display: block; border-top: 1px solid var(--rule); margin-top: 2px; }

/* ---- kicker / section heads ---- */
.kicker {
  font-family: var(--body); font-weight: 600;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
}
h2.section {
  font-family: var(--display); font-weight: 700;
  font-size: 26px; margin: 44px 0 6px;
}
h2.section .kicker { display: block; margin-bottom: 4px; }
.section-rule { border: 0; border-top: 1px solid var(--rule); margin: 10px 0 16px; }
.standfirst { color: var(--ink-soft); font-size: 15px; max-width: 70ch; margin: 0 0 14px; }

/* ---- meta / notes ---- */
.meta { font-size: 12.5px; color: var(--ink-mute); letter-spacing: .04em; }
.meta.warn { color: var(--accent); }

/* ---- financial tables: horizontal rules only, newspaper style ---- */
.tablewrap { overflow-x: auto; }
table {
  border-collapse: collapse; width: 100%;
  font-size: 13.5px; line-height: 1.4;
  font-variant-numeric: tabular-nums lining-nums;
}
thead th {
  font-weight: 600; font-size: 11.5px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft);
  border-top: 2px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 7px 12px 6px;
  text-align: right; white-space: nowrap;
  cursor: pointer; user-select: none;
}
thead th:hover { color: var(--accent); }
tbody td {
  padding: 7px 12px;
  border-bottom: 1px dotted var(--rule-dot);
  text-align: right; white-space: nowrap;
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: 1px solid var(--rule); }
tbody tr:hover td { background: var(--surface); }
th:first-child, td:first-child, .lt { text-align: left !important; }
td.wrap { white-space: normal; min-width: 280px; max-width: 480px; text-align: left; color: var(--ink-soft); font-size: 13px; }
.tick { font-family: var(--mono); font-weight: 600; font-size: 12.5px; letter-spacing: .03em; }
.pos { color: var(--up); }
.neg { color: var(--down); }
.dim { color: var(--ink-mute); }

/* ---- flags as newspaper labels ---- */
.badge {
  display: inline-block;
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 2px 8px 1px;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.flag-short { color: #fff; background: var(--accent); border-color: var(--accent); }
.flag-wait  { color: var(--accent); }
.flag-avoid { color: var(--ink-mute); }
.flag-pair  { color: var(--up); }
.flag-watch { color: var(--ink-soft); }

/* ---- score bar ---- */
.scorebar {
  display: inline-block; width: 64px; height: 7px;
  background: var(--surface); border: 1px solid var(--rule-dot);
  vertical-align: middle; margin-left: 8px;
}
.scorebar i { display: block; height: 100%; background: var(--accent); }

/* ---- hub index ---- */
.hub-list { list-style: none; margin: 0; padding: 0; }
.hub-list li { border-bottom: 1px dotted var(--rule-dot); padding: 26px 0; }
.hub-list li:last-child { border-bottom: 1px solid var(--rule); }
.hub-list .headline {
  font-family: var(--display); font-weight: 700; font-size: 28px;
  margin: 6px 0 8px;
}
.hub-list .headline a { color: inherit; text-decoration: none; }
.hub-list .headline a:hover { color: var(--accent); }
.hub-list .summary { color: var(--ink-soft); max-width: 75ch; margin: 0 0 8px; }

/* ---- footer ---- */
.foot {
  margin-top: 56px; padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-size: 12.5px; color: var(--ink-mute);
}
.foot a { color: inherit; }

/* ---- back link ---- */
.crumb {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-mute); text-decoration: none;
}
.crumb:hover { color: var(--accent); }
