/* Argus data site. One dark surface, the Remote Desk's ink and gold, the system sans throughout.
   Chart colours are three fixed slots, checked against this surface for colour-blind separation
   and contrast; status colours are a separate set and always come with a mark and a word. */

:root {
  color-scheme: dark;
  --surface: #14130f;
  --surface-raised: #1c1b16;
  --ink: #f0efec;
  --ink-2: #c3c2b7;
  --muted: #898781;
  --line: #2c2c2a;
  --baseline: #383835;
  --gold: #edc77e;
  --series-1: #3987e5;
  --series-2: #d95926;
  --series-3: #199e70;
  --good: #0ca30c;
  --warning: #fab219;
  --serious: #ec835a;
  --critical: #d03b3b;
}

* { box-sizing: border-box; }
html { background: var(--surface); }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--gold); }
[hidden] { display: none !important; }

.site-header {
  align-items: center; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 18px;
  justify-content: space-between; padding: 14px max(18px, calc((100vw - 860px) / 2));
}
.brand { align-items: center; color: inherit; display: flex; gap: 11px; text-decoration: none; }
.brand-mark {
  background: #0d0d0a url("/argus-mark.svg") center / cover no-repeat; border: 1px solid rgba(237, 199, 126, .55);
  border-radius: 50%; display: block; height: 34px; width: 34px;
}
.brand b, .brand small { display: block; }
.brand b { font-size: 13px; letter-spacing: .2em; }
.brand small { color: var(--gold); font-size: 9px; letter-spacing: .18em; margin-top: 2px; }
.heard { color: var(--ink-2); font-size: 13px; margin: 0; }
.heard.late { color: var(--warning); }

.column { margin: 0 auto; max-width: 860px; padding: 8px 18px 64px; }
section { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 6px; }
section:first-of-type { border-top: 0; margin-top: 8px; }
h2 { color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .16em; margin: 18px 0 12px; text-transform: uppercase; }
h3 { font-size: 14px; font-weight: 600; margin: 20px 0 8px; }
p { margin: 0 0 10px; }
.section-note, .fine { color: var(--muted); font-size: 12px; }

.notice {
  background: rgba(250, 178, 25, .08); border: 1px solid rgba(250, 178, 25, .4); border-radius: 6px;
  color: var(--ink); font-size: 14px; margin-top: 16px; padding: 10px 12px;
}

/* Figures */
.tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
.tile { background: var(--surface-raised); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.tile-label { color: var(--ink-2); font-size: 12px; }
.tile-value { font-size: 26px; font-weight: 600; line-height: 1.2; margin-top: 2px; }
.tile.hero .tile-value { font-size: 52px; line-height: 1.05; }
.tile-note { color: var(--muted); font-size: 12px; margin-top: 2px; }
.regime { color: var(--ink-2); font-size: 13px; margin: 12px 0 0; }

/* Filters: one row above the charts they scope */
.filter-row { align-items: center; display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0 0; }
.filter-label { color: var(--muted); font-size: 12px; margin-right: 4px; }
.filter-row button {
  background: none; border: 1px solid var(--baseline); border-radius: 999px; color: var(--ink-2); cursor: pointer;
  font: inherit; font-size: 12px; padding: 4px 12px;
}
.filter-row button:hover { background: rgba(255, 255, 255, .05); }
.filter-row button[aria-pressed="true"] { border-color: var(--gold); color: var(--ink); font-weight: 600; }

/* Charts */
.chart { margin: 0 0 6px; }
.chart.loading { opacity: .5; }
.chart-frame { position: relative; }
.chart svg { display: block; outline: none; touch-action: pan-y; }
.chart svg:focus-visible { outline: 1px solid var(--gold); outline-offset: 2px; }
.grid { stroke: var(--line); stroke-width: 1; }
.baseline { stroke: var(--baseline); stroke-width: 1; }
.axis-text { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.end-label { fill: var(--ink-2); font-size: 11px; font-variant-numeric: tabular-nums; }
.line { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.line-1 { stroke: var(--series-1); } .line-2 { stroke: var(--series-2); } .line-3 { stroke: var(--series-3); }
.dot { stroke: var(--surface); stroke-width: 2; }
.dot-1 { fill: var(--series-1); } .dot-2 { fill: var(--series-2); } .dot-3 { fill: var(--series-3); }
.crosshair { stroke: var(--muted); stroke-width: 1; }
.hit { fill: transparent; }
.key { border-radius: 1px; display: inline-block; flex: none; height: 2px; width: 14px; }
.key-1 { background: var(--series-1); } .key-2 { background: var(--series-2); } .key-3 { background: var(--series-3); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 6px; }
.chart-legend-item { align-items: center; display: inline-flex; font-size: 12px; gap: 7px; }
.chart-legend-name { color: var(--ink-2); }
.chart-legend-value { font-variant-numeric: tabular-nums; font-weight: 600; }
.chart-tooltip {
  background: #26251f; border: 1px solid var(--baseline); border-radius: 6px; font-size: 12px; min-width: 150px;
  padding: 7px 9px; pointer-events: none; position: absolute; top: 4px; transform: translateX(12px); z-index: 2;
}
.chart-tooltip.flip { transform: translateX(calc(-100% - 12px)); }
.chart-tooltip-time { color: var(--muted); margin-bottom: 3px; }
.chart-tooltip-row { align-items: center; display: flex; gap: 7px; }
.chart-tooltip-row b { font-variant-numeric: tabular-nums; }
.chart-tooltip-row span { color: var(--ink-2); }
.chart-empty { color: var(--muted); font-size: 13px; padding: 18px 0; }
.chart-table { color: var(--ink-2); font-size: 12px; margin-top: 4px; }
.chart-table summary { color: var(--muted); cursor: pointer; }
.chart-note { color: var(--muted); margin-top: 6px; }

/* Tables and lists */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; font-size: 13px; width: 100%; }
th, td { border-bottom: 1px solid var(--line); padding: 7px 10px 7px 0; text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .04em; }
td.num, th.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
tr.pick { cursor: pointer; }
tr.pick:hover td { background: rgba(255, 255, 255, .03); }
tr.pick.chosen td { background: rgba(237, 199, 126, .07); }
tr.pick button { background: none; border: 0; color: inherit; cursor: pointer; font: inherit; padding: 0; text-align: left; }
tr.pick button:focus-visible { outline: 1px solid var(--gold); outline-offset: 2px; }

.status { align-items: center; display: inline-flex; gap: 5px; white-space: nowrap; }
.status i { font-style: normal; }
.status-good i { color: var(--good); } .status-warning i { color: var(--warning); }
.status-serious i { color: var(--serious); } .status-critical i { color: var(--critical); }
.status-muted i { color: var(--muted); }

.meter { background: rgba(57, 135, 229, .22); border-radius: 4px; height: 8px; min-width: 60px; overflow: hidden; }
.meter i { background: var(--series-1); border-radius: 4px; display: block; height: 8px; }
.meter-cell { align-items: center; display: flex; gap: 8px; justify-content: flex-end; }
.meter-cell .meter { flex: 1; max-width: 120px; }

details.more > summary { color: var(--muted); cursor: pointer; font-size: 12px; margin-top: 8px; }
.asset-class { color: var(--ink-2); font-size: 12px; font-weight: 600; margin: 18px 0 2px; }

.call { border-bottom: 1px solid var(--line); padding: 10px 0; }
.call-head { align-items: baseline; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.call-action { border: 1px solid var(--baseline); border-radius: 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 1px 6px; text-transform: uppercase; }
.call-ticker { font-weight: 600; }
.call-meta { color: var(--muted); font-size: 12px; }
.call p { color: var(--ink-2); font-size: 13px; margin: 6px 0 0; }
.call ul { color: var(--muted); font-size: 12px; margin: 6px 0 0; padding-left: 18px; }
.prose p { color: var(--ink-2); max-width: 68ch; }
.prose h4 { color: var(--ink); font-size: 13px; margin: 14px 0 4px; }
.headline { border-bottom: 1px solid var(--line); padding: 8px 0; }
.headline-meta { color: var(--muted); font-size: 12px; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; margin-top: 36px; padding-top: 14px; }
.site-footer p { margin-bottom: 6px; }

/* On a phone the secondary columns step aside (a group's breadth and pack count, an instrument's
   symbol, a forecast kind's partly-correct and incorrect counts), and a group's or instrument's
   name may break inside a word when one word is wider than its column, so no table is wider than
   the screen. Only those names: applied to every cell it squeezes prose columns into fragments. */
@media (max-width: 520px) {
  .tile.hero { grid-column: 1 / -1; }
  th, td { padding-right: 8px; }
  tr.pick button { overflow-wrap: anywhere; }
  .wide { display: none; }
  .meter-cell .meter { max-width: 64px; }
}
