/* testnet5.orange.surf. Palette from the testnet5 logo; layout lineage from testnet4.com
   (tracker on the left, content on the right). No JavaScript, no web fonts. */
:root {
  --bg: #0e0f1a;
  --panel: #161827;
  --panel-2: #1c1f33;
  --rule: #2b2f48;
  --rule-strong: #3d4266;
  --text: #e8e9f3;
  --muted: #a3a7c2;
  --link: #ffb36b;          /* the logo's orange, lightened for contrast on --bg */
  --link-hover: #ffd34e;
  --accent-1: #ffc24b;
  --accent-2: #ff7a3d;
  --accent-3: #ff3d8b;
  --ok: #4fe39a;
  --wip: #ffc24b;
  --no: #8a8fae;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}

a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }

code, pre { font-family: var(--mono); font-size: 0.86em; }
code { color: #f2f3fa; overflow-wrap: anywhere; }
code.hash { word-break: break-all; }

/* Masthead: logo plus the one-line status, attached to the gradient rule below */
.masthead {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 24px 32px 20px;
  border-bottom: 3px solid;
  border-image: linear-gradient(90deg, var(--accent-1), var(--accent-2) 55%, var(--accent-3)) 1;
}
.logo { width: 300px; height: auto; flex: none; }
.tagline { margin: 0 0 6px; font-size: 1.15rem; max-width: 46rem; }
.asof { margin: 0; color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }

/* Two columns: tracker | content */
.layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  min-height: calc(100vh - 160px);
}

.tracker {
  background: var(--panel);
  border-right: 1px solid var(--rule-strong);
  padding: 20px 20px 28px;
}
.tracker h2 { margin-top: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 12px; font-size: 0.85rem; }
.tracker table { width: 100%; border-collapse: collapse; font-size: 0.9rem; border: 1px solid var(--rule-strong); }
.tracker th, .tracker td { padding: 6px 8px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.tracker td:last-child { white-space: nowrap; }
.tracker thead th { background: var(--panel-2); color: var(--muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.tracker tr.group th {
  background: var(--panel-2);
  color: var(--text);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-top: 1px solid var(--rule-strong);
}
.tracker-note { color: var(--muted); font-size: 0.85rem; margin-top: 12px; }

/* Status: colour plus shape (● ◐ ○) so it survives colour blindness */
.st { font-weight: 600; font-size: 0.85rem; }
.st-ok { color: var(--ok); }
.st-wip { color: var(--wip); }
.st-no { color: var(--no); }

main { padding: 8px 32px 40px; min-width: 0; }
main section { max-width: 60rem; border-bottom: 1px solid var(--rule); padding: 18px 0 22px; }
main section:last-child { border-bottom: 0; }

h2 { font-size: 1.15rem; margin: 0 0 10px; letter-spacing: 0.01em; }
p { margin: 0 0 12px; }

/* Bordered data tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule-strong); }
table.grid { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.grid th, table.grid td { padding: 7px 10px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
table.grid tr:last-child th, table.grid tr:last-child td { border-bottom: 0; }
table.grid thead th { background: var(--panel-2); color: var(--muted); font-size: 0.8rem; font-weight: 600; }
table.grid tbody th { font-weight: 600; color: var(--muted); width: 32%; background: var(--panel); }
table.grid td + td, table.grid th + td { border-left: 1px solid var(--rule); }
table.grid strong { color: var(--accent-1); }
table.kv tbody th { width: 26%; }

pre {
  background: var(--panel);
  border: 1px solid var(--rule-strong);
  border-left: 3px solid var(--accent-2);
  padding: 12px 14px;
  overflow-x: auto;
  line-height: 1.5;
  margin: 0 0 12px;
}

/* Link cards, attached to a ruled frame */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.card {
  display: block;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--rule-strong);
  border-top: 3px solid var(--accent-2);
  text-decoration: none;
  color: var(--text);
}
.card:hover { background: var(--panel-2); border-top-color: var(--accent-3); color: var(--text); }
.card-title { display: block; font-weight: 700; color: var(--link); margin-bottom: 4px; }
.card-sub { display: block; color: var(--muted); font-size: 0.9rem; }

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding: 14px 32px;
  border-top: 1px solid var(--rule-strong);
  color: var(--muted);
  font-size: 0.85rem;
}

/* Phone and narrow tablet: content first, tracker after, 16px gutters */
@media (max-width: 860px) {
  .masthead { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 16px 16px; }
  .logo { width: 220px; }
  .tagline { font-size: 1.02rem; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  main { order: 1; padding: 4px 16px 24px; }
  .tracker { order: 2; border-right: 0; border-top: 1px solid var(--rule-strong); padding: 18px 16px 24px; }
  table.grid tbody th, table.kv tbody th { width: 38%; }
  .foot { padding: 14px 16px; }
}
