/* System fonts only; see the tokens. css/fonts.css is no longer linked. */

/* ============================================================
   SITEWIRE — refined dark.
   Near-black, hairlines, one accent. Amber is a strike, not a
   fill: it marks the live thing, the number that matters, the
   one button you are meant to press. Everything else is quiet.
   Numbers are monospace and tabular so columns line up.
   ============================================================ */

:root {
  --bg: #0e1013;
  --bg-elev: #151920;
  --bg-2: #1c2129;
  --paper: #f4f1ea;
  --ink: #14181d;

  --line: #232932;
  --line-2: #2f3742;

  --text: #eef2f6;
  --text-dim: #97a2b0;
  --muted: #6d7987;

  --hi: #ffb000;
  --hi-dim: #a97400;
  --ok: #3fa06a;
  --warn: #d1743a;
  --bad: #d1553a;

  --r: 8px;
  --r-sm: 6px;
  --shadow: none;

  /* System fonts only (4 Sep 2026). Nothing to download, nothing to swap,
     nothing to render differently from one phone to the next. */
  --font-display: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg); color: var(--text);
  font-family: var(--font-ui); min-height: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body { font-size: 15px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--hi); color: var(--ink); }

.wrap { width: min(1140px, calc(100% - 40px)); margin-inline: auto; }

.tiny {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.display { font-family: var(--font-display); font-weight: 650; letter-spacing: -.02em; line-height: 1.1; }
.serif { font-family: var(--font-serif); }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 24px;
  background: rgba(14,16,19,.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; }
.mark {
  width: 26px; height: 26px; border: 1px solid var(--hi); border-radius: var(--r-sm);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 10px; color: var(--hi); font-weight: 600;
}
.brand b { font-family: var(--font-display); font-size: 17px; letter-spacing: -.02em; font-weight: 600; }
.nav-links { display: flex; gap: 26px; align-items: center; font-size: 14px; color: var(--text-dim); }
.nav-links a { transition: color .15s; }
.nav-links a:hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--r-sm); border: 1px solid var(--line-2);
  background: transparent; color: var(--text);
  padding: 10px 16px; font-size: 14px; font-weight: 500; letter-spacing: -.01em;
  transition: border-color .15s, background .15s, color .15s;
}
.btn:hover { border-color: var(--line-2); background: var(--bg-2); }
.btn-hi { background: var(--hi); border-color: var(--hi); color: var(--ink); font-weight: 600; }
.btn-hi:hover { background: #ffbe2e; border-color: #ffbe2e; color: var(--ink); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text-dim); }
.btn-ghost:hover { color: var(--text); border-color: var(--muted); background: transparent; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.paper-cell { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.btn-line { background: transparent; border-color: rgba(20,24,29,.25); color: var(--ink); }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .4; pointer-events: none; }

/* ---------- LANDING ---------- */
.hero { padding: 96px 0 72px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6vw, 72px); max-width: 15ch; }
.hero p.lead {
  font-size: 19px; color: var(--text-dim); margin: 24px 0 32px; max-width: 50ch; line-height: 1.6;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-card {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px;
}
.hero-card img { height: 190px; width: 100%; object-fit: cover; border-radius: var(--r-sm); margin-bottom: 18px; filter: saturate(.7) contrast(1.02) brightness(.85); }
.meta { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

.band { padding: 88px 0; border-top: 1px solid var(--line); }
.band h2 { font-size: clamp(30px, 4vw, 44px); margin: 10px 0 12px; }
.band .band-lead { color: var(--text-dim); max-width: 58ch; margin-bottom: 40px; font-size: 17px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.card {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px 22px; position: relative; transition: border-color .15s;
}
.card:hover { border-color: var(--line-2); }
.card:before { content: none; }
.card .tiny { color: var(--hi); }
.card h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -.02em; margin: 10px 0 8px; }
.card p { color: var(--text-dim); font-size: 14.5px; line-height: 1.6; }

.list { list-style: none; color: var(--text-dim); font-size: 15px; line-height: 1.9; }
.list li { padding-left: 18px; position: relative; }
.list li::before { content: ""; position: absolute; left: 0; top: .82em; width: 8px; height: 1px; background: var(--hi); }

/* clock strip — the fast pay numbers */
.clocks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.clocks > div { background: var(--bg-elev); padding: 22px 20px; }
.clocks .d { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 38px; color: var(--hi); letter-spacing: -.03em; line-height: 1; }
.clocks .k { font-size: 14px; color: var(--text-dim); margin-top: 10px; line-height: 1.45; }

.paper { background: var(--paper); color: var(--ink); padding: 88px 0; }
.paper .tiny { color: var(--hi-dim); }
.paper h2 { color: var(--ink); }
.paper .band-lead, .paper p { color: #4a5058; }
.quote { font-family: var(--font-serif); font-size: 26px; line-height: 1.45; max-width: 34ch; color: var(--ink); }

footer.site {
  border-top: 1px solid var(--line); padding: 32px 0 48px;
  display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 13px;
}

/* ---------- AUTH / DEMO ---------- */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: .85fr 1.15fr; }
.auth-side {
  padding: 40px; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(180deg, rgba(14,16,19,.55), rgba(14,16,19,.94)),
    url("../img/site-150430765125.jpg?v=2") center/cover;
}
.form-pane { padding: 56px 60px; max-width: 620px; }
/* A phone on a bad cell does not download a photograph to sign in. */
@media (max-width: 700px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-side { background: var(--bg-2); border-right: 0; border-bottom: 1px solid var(--line); padding: 24px; }
  .form-pane { padding: 24px 20px; }
}
.form-pane h1 { font-size: 36px; margin: 6px 0 10px; }
.form-pane .sub { color: var(--text-dim); margin-bottom: 32px; }

label { display: block; font-size: 12px; color: var(--muted); margin: 16px 0 6px; letter-spacing: .04em; }
input, select, textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 11px 12px; outline: none;
  transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--hi); }
input::placeholder, textarea::placeholder { color: #5c6673; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 8px; line-height: 1.5; }

/* ---------- APP SHELL ----------
   One column under a thin top bar. Each menu is a button that opens a list
   of the same .navbtn[data-view] buttons the router and the role code have
   always driven, so nothing behind the nav changed — only where it sits. */
.app { min-height: 100vh; display: block; }
.side { display: none; }

.top {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 6px;
  height: 52px; padding: 0 14px;
  background: #0b0d10; border-bottom: 1px solid var(--line);
}
.top .brand { margin-right: 10px; }
.top .brand b { font-size: 15px; }
.menus { display: flex; align-items: center; gap: 2px; flex: 1; }
.menu { position: relative; }
.menu-btn {
  background: none; border: 0; color: var(--text-dim); font-size: 14px;
  padding: 8px 12px; border-radius: var(--r-sm); display: inline-flex; align-items: center; gap: 6px;
}
.menu-btn::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .7; }
.menu-btn:hover, .menu.open .menu-btn, .menu.here .menu-btn { color: var(--text); background: var(--bg-2); }
.menu.here .menu-btn { box-shadow: inset 0 -2px 0 var(--hi); border-radius: var(--r-sm) var(--r-sm) 0 0; }
.menu-list {
  display: none; position: absolute; top: calc(100% + 4px); left: 0; min-width: 220px;
  background: var(--bg-elev); border: 1px solid var(--line-2); border-radius: var(--r); padding: 6px;
  z-index: 70;
}
.menu.open .menu-list { display: block; }
.menu-list .navbtn, .menu-list a {
  display: block; width: 100%; text-align: left; background: none; border: 0;
  padding: 9px 12px; color: var(--text-dim); font-size: 14px; border-radius: var(--r-sm);
}
.menu-list .navbtn:hover, .menu-list a:hover { background: var(--bg-2); color: var(--text); }
.menu-list .navbtn.active { color: var(--text); box-shadow: inset 2px 0 0 var(--hi); }
.menu-list .navbtn[hidden] { display: none; }
.top-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.top-right .clock { font-size: 15px; }
.top-link { color: var(--text-dim); font-size: 13px; padding: 8px 10px; border-radius: var(--r-sm); background: none; border: 0; }
.top-link:hover { color: var(--text); background: var(--bg-2); }
.top-link.here { color: var(--text); box-shadow: inset 0 -2px 0 var(--hi); }
.menu-toggle { display: none; }
.only-phone { display: none; }

.main { padding: 22px 24px 72px; max-width: 1240px; margin: 0 auto; }
.topbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 26px; }
.topbar h1 { font-size: 30px; }

.focal { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 14px; margin-bottom: 22px; }
.focal .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 42px; letter-spacing: -.04em; color: var(--hi); line-height: 1; }

.panel {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px; margin-bottom: 16px;
}
.panel h2 { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 6px; }
.panel h3 { font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: -.01em; margin: 18px 0 8px; color: var(--text); }
.view { display: none; }
.view.on { display: block; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  text-align: left; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); font-weight: 500;
  padding: 10px 8px; border-bottom: 1px solid var(--line);
}
td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td .num, .num { font-variant-numeric: tabular-nums; }

.rail { display: inline-block; width: 2px; height: 13px; background: var(--hi); margin-right: 9px; vertical-align: -2px; border-radius: 2px; }
.rail.warn { background: var(--warn); }
.rail.ok { background: var(--ok); }
.rail.bad { background: var(--bad); }

.chip {
  font-family: var(--font-mono); font-size: 11px; padding: 3px 8px;
  border: 1px solid var(--line-2); border-radius: 20px; color: var(--text-dim);
}
.chip.ok { color: var(--ok); border-color: rgba(63,160,106,.35); }
.chip.warn { color: var(--warn); border-color: rgba(209,116,58,.35); }
.chip.bad { color: var(--bad); border-color: rgba(209,85,58,.35); }

.photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.photo-slot {
  border: 1px dashed var(--line-2); border-radius: var(--r-sm); min-height: 132px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: var(--bg-2); position: relative; overflow: hidden;
}
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-slot span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--hi); z-index: 1; }
.photo-slot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; }

.talks { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.talk {
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px;
  cursor: pointer; background: var(--bg-2); transition: border-color .15s;
}
.talk:hover { border-color: var(--line-2); }
.talk.on { border-color: var(--hi); box-shadow: inset 2px 0 0 var(--hi); }
.talk h3 { margin-top: 6px; }

.sign-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.sign-row:last-child { border-bottom: 0; }

.clock { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 32px; letter-spacing: -.02em; }

.q { margin: 14px 0; }
.q p { margin-bottom: 8px; }
.claude-box { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-2); padding: 16px; margin-top: 12px; }
.claude-box .who { font-family: var(--font-mono); font-size: 11px; color: var(--hi); letter-spacing: .08em; margin-bottom: 8px; }
.ok-note { color: var(--ok); font-size: 12.5px; }

/* ---------- SKIP + DRAFT REPORTS (kept from the server build) ---------- */
.claude-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.claude-box.is-skipped { border-left: 2px solid var(--warn); }
.claude-box.is-skipped .who { color: var(--warn); }
.skip-note { font-family: var(--font-mono); font-size: 12px; color: var(--warn); margin-top: 8px; }

.report-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.report-doc {
  background: var(--paper); color: var(--ink); border-radius: var(--r-sm);
  padding: 28px 30px; font-family: var(--font-serif); line-height: 1.6;
}
.report-doc h1, .report-doc h2, .report-doc h3 { font-family: var(--font-ui); letter-spacing: -.02em; color: var(--ink); }
.report-doc h1 { font-size: 22px; margin-bottom: 4px; }
.report-doc h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #6a7078; margin: 22px 0 8px; font-family: var(--font-mono); font-weight: 500; }
.report-doc table { font-family: var(--font-ui); }
.report-doc th { color: #6a7078; border-bottom-color: #d8d3c8; }
.report-doc td { border-bottom-color: #e6e2d8; }
.report-doc .not-stated { color: var(--bad); font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .hero, .auth-shell, .app, .grid-3, .grid-2, .grid-4, .focal, .photos, .talks, .clocks { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .form-pane { padding: 28px 20px; }
  .main { padding: 18px 16px 60px; }
  .hero { padding: 48px 0 40px; }
  .band { padding: 56px 0; }
}

/* Break glass banner is fixed, so the shell moves down instead of hiding
   behind it. It must never cover the thing you came in to change. */
body.break-glass { padding-top: 44px; }
body.break-glass .top { top: 44px; }

/* ============================================================
   WHERE AM I
   A trail that is a real trail: each crumb is a link, because
   every view has a URL. Plus a switch between the three
   surfaces, so the top of the hierarchy is never a guess.
   ============================================================ */

.crumbs {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .05em;
  color: var(--muted); margin-bottom: 6px; min-height: 18px;
}
.crumbs a { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; }
.crumbs a:hover { color: var(--text); border-bottom-color: var(--line-2); }
.crumbs span { color: var(--text); }
.crumbs i { color: var(--line-2); font-style: normal; }

/* the three surfaces */
.surfaces {
  display: flex; gap: 2px; padding: 3px; margin: 0 8px 14px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm);
}
.surfaces a {
  flex: 1; text-align: center; padding: 7px 6px; border-radius: 4px;
  font-size: 12.5px; color: var(--muted); text-decoration: none;
}
.surfaces a:hover { color: var(--text); }
.surfaces a.here { background: var(--bg-elev); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }

/* On a phone the menus stack under one Menu button. */
@media (max-width: 760px) {
  .top { flex-wrap: wrap; height: auto; min-height: 52px; padding: 6px 10px; }
  .menu-toggle { display: inline-flex; }
  .menus { display: none; width: 100%; flex-direction: column; align-items: stretch; order: 10; padding: 6px 0 8px; border-top: 1px solid var(--line); margin-top: 6px; }
  .top.menus-open .menus { display: flex; }
  .menu-list { position: static; display: block; border: 0; background: none; padding: 0 0 4px 10px; }
  .menu-btn { width: 100%; justify-content: space-between; }
  .menu-btn::after { display: none; }
  .only-phone { display: block; }
  .top-right .top-link:not(#nav-signout):not(#board-signout) { display: none; }
  .topbar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .topbar h1 { font-size: 24px; }
}
