/* A public dashboard of Thermite's runs: the blocks of a run's Overview in Thermite's own dashboard,
   in usethermite.com's light theme (its tokens, Geist, its logo and header). Light only. The accent
   marks the champion's line and what the judge confirmed. */
@font-face {
  font-family: "Geist Variable";
  src: url("/fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono Variable";
  src: url("/fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #fbf8f4;
  --bg-2: #f5efe8;
  --panel: #ffffff;
  --panel-2: #f3ece5;
  --ink: #1d1612;
  --ink-2: #3e342d;
  --muted: #6c6058;
  --dim: #9a8f86;
  --rule: #ebe2d9;
  --rule-2: #dbcfc3;
  --bar: #cdbfb2;
  --accent: #b9450f;
  --accent-ink: #ffffff;
  --accent-soft: rgba(185, 69, 15, 0.09);
  --good: #0f8a75;
  --good-soft: rgba(15, 138, 117, 0.1);
  --warn: #a86a00;
  --warn-soft: rgba(168, 106, 0, 0.1);
  --bad: #c8322a;
  --bad-soft: rgba(200, 50, 42, 0.09);
  --sans: "Geist Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono Variable", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
h1,
h2,
p,
ul,
dl,
dd,
figure {
  margin: 0;
  padding: 0;
}
img,
svg {
  display: block;
  max-width: 100%;
}
button {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip {
  position: absolute;
  left: -999px;
  z-index: 60;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
}
.skip:focus {
  left: 1rem;
  top: 0.6rem;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12.5px;
}
.fig {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* The site's header, at a dashboard's height. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 79rem;
  height: 3.25rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
}
.logo {
  flex: none;
  width: 28px;
  height: 28px;
}
.word {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-left: auto;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  white-space: nowrap;
}
.nav a:hover {
  color: var(--ink);
}
.icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  color: var(--ink-2);
}
.icon:hover {
  background: var(--panel-2);
}
.icon svg {
  width: 18px;
  height: 18px;
}

main {
  min-width: 0;
  padding: 1.25rem 1.5rem 2rem;
}
.page {
  max-width: 76rem;
  margin-inline: auto;
}

#message {
  max-width: 34rem;
  padding: 14vh 0;
}
#message h1 {
  font-size: 1.5rem;
  font-weight: 640;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
#message p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 15px;
}

.run-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
}
.run-head h1 {
  min-width: 0;
  font-size: 1.5rem;
  font-weight: 640;
  letter-spacing: -0.022em;
  line-height: 1.2;
}
.run-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  color: var(--muted);
  font-size: 12.5px;
}
.run-tools a:hover {
  color: var(--ink);
}
.crumb {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}
.crumb:hover {
  color: var(--ink);
}
.clock {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 13px;
}
.said {
  margin-top: 0.15rem;
  color: var(--ink-2);
  font-size: 14.5px;
}
.notice {
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--rule));
  border-radius: 8px;
  background: var(--warn-soft);
  color: var(--ink-2);
  font-size: 13px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.05rem 0.45rem;
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 540;
  white-space: nowrap;
}
.chip.ok {
  background: var(--good-soft);
  color: var(--good);
}
.chip.warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.chip.bad {
  background: var(--bad-soft);
  color: var(--bad);
}
.chip.info {
  background: var(--accent-soft);
  color: var(--accent);
}

.card {
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--panel);
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.fact {
  padding: 0.75rem 1rem;
}
.fact .k {
  color: var(--muted);
  font-size: 12.5px;
}
.fact .v {
  margin-top: 0.1rem;
  font-size: 1.5rem;
  font-weight: 640;
  letter-spacing: -0.02em;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}
.fact .v .u {
  color: var(--muted);
  font-size: 13px;
  font-weight: 450;
  letter-spacing: 0;
}
.fact .s {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 12.5px;
}
.split-bar {
  display: flex;
  gap: 2px;
  height: 6px;
  margin-top: 0.4rem;
}
.split-bar i {
  border-radius: 2px;
  background: var(--bar);
}
.split-bar i:first-child {
  background: var(--accent);
}

.block {
  margin-top: 1.5rem;
}
.block > .head {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.block h2 {
  font-size: 14px;
  font-weight: 620;
}
.block .n {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.block .right {
  margin-left: auto;
  color: var(--muted);
  font-size: 12.5px;
}

/* The list of runs: `/`. The gain leads, because it is what a reader picks a run by. */
.live-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
  gap: 0.75rem;
}
.live-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 14rem);
  gap: 0.35rem 1rem;
  padding: 0.875rem 1rem;
  color: inherit;
  text-decoration: none;
}
.live-card:hover {
  border-color: var(--bar);
}
.lc-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}
.lc-head h3 {
  min-width: 0;
  margin: 0;
  font-size: 15px;
  font-weight: 620;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.lc-gain {
  font-size: 2rem;
  font-weight: 640;
  letter-spacing: -0.025em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.lc-trail {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 3.5rem;
}
.lc-trail .spark {
  width: 100%;
}
.lc-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 12.5px;
}

.past {
  width: 100%;
  border-collapse: collapse;
}
.past th {
  padding: 0.5rem 1rem;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 450;
  text-align: left;
  white-space: nowrap;
}
.past td {
  padding: 0.55rem 1rem;
  border-top: 1px solid var(--rule);
  vertical-align: middle;
}
.past tbody tr {
  position: relative;
}
.past tbody tr:hover {
  background: var(--bg);
}
.past .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.past-link {
  font-weight: 560;
  text-decoration: none;
}
.past-link::after {
  content: "";
  position: absolute;
  inset: 0;
}
.past-climb {
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.past-gain {
  font-family: var(--mono);
  font-size: 13px;
  white-space: nowrap;
}

.ms-top {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 0.75rem;
}
.ms-top.alone {
  grid-template-columns: minmax(0, 1fr);
}
.ms-lower-col {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}
.ms-primary {
  position: relative;
  padding: 0.85rem 1rem;
}
.ms-lower {
  padding: 0.85rem 1rem;
}
.ms-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
}
.ms-head b {
  font-weight: 620;
}
.ms-big {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.6rem;
  margin-top: 0.35rem;
}
.ms-big .fig-big {
  font-size: 1.6rem;
  font-weight: 640;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.ms-big .up {
  color: var(--good);
}
/* The primary's figures sit in .ms-big's row beside the switch, in an element of their own: each
   poll replaces them, and the switch must stay in the page. */
.ms-figures {
  display: contents;
}
.ms-switch {
  display: inline-flex;
  margin-left: auto;
  overflow: hidden;
  border: 1px solid var(--rule-2);
  border-radius: 8px;
}
.ms-switch button {
  padding: 0.15rem 0.6rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
}
.ms-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}
.plot {
  position: relative;
  height: 16rem;
  margin-top: 0.5rem;
}
.plot.empty {
  height: auto;
}
.plot svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  touch-action: pan-y;
}
.plot text {
  fill: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.plot text.end {
  fill: var(--ink);
  font-weight: 600;
}
.grid-line {
  stroke: var(--rule);
  stroke-width: 1;
  shape-rendering: crispEdges;
}
.area {
  fill: var(--accent);
  opacity: 0.07;
}
.line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.pt {
  fill: var(--panel);
  stroke: var(--accent);
  stroke-width: 1.5;
}
.mark {
  fill: var(--accent);
  stroke: var(--panel);
  stroke-width: 2;
}
.cross {
  stroke: var(--dim);
  stroke-width: 1;
  shape-rendering: crispEdges;
}
.tip {
  position: absolute;
  z-index: 2;
  display: grid;
  min-width: 9rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--rule-2);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  pointer-events: none;
}
.tip strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
}

.spark {
  display: block;
  max-width: 100%;
  height: auto;
}
.spark .s-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
}
.spark .s-pt {
  fill: var(--accent);
}
.spark .s-latest {
  fill: var(--panel);
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 2 1.5;
}
.spark .s-start {
  stroke: var(--dim);
  stroke-width: 1;
  stroke-dasharray: 2 3;
}
.spark .s-limit {
  fill: none;
  stroke: var(--bad);
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
}
.spark .s-band {
  fill: var(--good);
  opacity: 0.1;
}

.ms-guards {
  margin-top: 0.75rem;
  overflow: hidden;
}
.ms-guards-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.6rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--rule);
}
.ms-guards-head b {
  font-weight: 620;
}
.ms-guard {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr) minmax(0, 0.7fr) minmax(0, 0.7fr) minmax(0, 0.9fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 1rem;
}
.ms-guard + .ms-guard {
  border-top: 1px solid var(--rule);
}
.ms-guard-cols {
  padding-block: 0.3rem;
  background: var(--bg);
  color: var(--muted);
  font-size: 12.5px;
}
.ms-guard b {
  font-weight: 600;
}

.ms-info-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.6rem;
  margin-top: 1rem;
}
.ms-info-head b {
  font-weight: 620;
}
.ms-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.ms-tile {
  padding: 0.6rem 0.85rem;
}
.ms-tile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.1rem;
}

.cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 21rem;
  gap: 0.75rem 1rem;
  align-items: start;
}
.side {
  min-width: 0;
}
.ar {
  display: grid;
  grid-template-columns: 7.25rem minmax(0, 1fr) auto;
  gap: 0.15rem 0.75rem;
  align-items: start;
  padding: 0.5rem 0.85rem;
}
.ar + .ar {
  border-top: 1px solid var(--rule);
}
.ar-out {
  justify-self: start;
}
.ar-main b {
  font-weight: 600;
}
.ar-when {
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
}
.ar-figs {
  grid-column: 2 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.5rem;
}
.ag {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}
.ag.bad {
  color: var(--bad);
}
.ag.warn {
  color: var(--warn);
}
.more {
  display: block;
  width: 100%;
  padding: 0.45rem;
  border: 0;
  border-top: 1px solid var(--rule);
  border-radius: 0 0 12px 12px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}
.more:hover {
  background: var(--panel-2);
  color: var(--ink);
}

.br {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: baseline;
  padding: 0.4rem 0.85rem;
}
.br + .br {
  border-top: 1px solid var(--rule);
}
.br-who {
  font-weight: 560;
}
.br-when {
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
}
.lead {
  padding: 0.6rem 0.85rem;
  color: var(--muted);
}
.tally {
  display: grid;
  gap: 0.55rem;
  padding: 0.7rem 0.85rem;
  list-style: none;
}
.tally li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 0.75rem;
}
.tally .count {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.tally .track {
  grid-column: 1 / -1;
  height: 6px;
}
.tally .fill {
  display: block;
  min-width: 2px;
  height: 100%;
  border-radius: 0 3px 3px 0;
  background: var(--bar);
}
.tally li:first-child .fill {
  background: var(--accent);
}
.noise {
  padding: 0.4rem 0.85rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 12.5px;
}

.foot {
  margin-top: 2rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 12.5px;
}

@media (max-width: 75rem) {
  .cols {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 62rem) {
  .ms-top {
    grid-template-columns: minmax(0, 1fr);
  }
  .ms-guard {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .ms-guard-cols {
    display: none;
  }
  .ms-guard > :first-child,
  .ms-guard > .g-spark {
    grid-column: 1 / -1;
  }
}
@media (max-width: 50rem) {
  main {
    padding: 1rem 1rem 1.5rem;
  }
  .bar {
    padding-inline: 1rem;
  }
  .past-trail,
  .past-n {
    display: none;
  }
  .past th,
  .past td {
    padding-inline: 0.75rem;
  }
  .live-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 8rem);
  }
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .run-tools {
    width: 100%;
    margin-left: 0;
  }
  .nav .wide {
    display: none;
  }
  .plot {
    height: 13rem;
  }
  .ar {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .ar-out {
    grid-column: 1 / -1;
  }
  .ar-figs {
    grid-column: 1 / -1;
  }
}
