/* Link Lot Checker
   Brief: transit wayfinding signage / departure board. Glanceable from a car.
   Type: Atkinson Hyperlegible Next (built for low-vision legibility).
   Color: ink + muted signal yellow band, Link line colors (1 Line green, 2 Line blue)
   sampled from Sound Transit's line map for line badges and the header stripe.
   Status colors are semantic only. */

:root {
  --ink: #141414;
  --ink-2: #4a4a4a;
  --ink-3: #767676;
  --paper: #ffffff;
  --panel: #f2f2f0;
  --rule: #d9d9d6;
  --signal: #efc94c;
  --line1: #39a448;
  --line2: #1895d0;
  --signal-ink: #141414;
  --full: #b3121f;
  --filling: #b85c00;
  --open: #0a6e38;
  --unknown: #6b6b6b;
  --full-bg: #fbe9ea;
  --filling-bg: #fdf0e1;
  --open-bg: #e5f3eb;
  --unknown-bg: #efefed;
  --focus: #1895d0;
  --radius: 6px;
  --maxw: 760px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f1f1ef;
    --ink-2: #c3c3c0;
    --ink-3: #9a9a97;
    --paper: #111111;
    --panel: #1c1c1c;
    --rule: #333333;
    --full: #ff6b73;
    --filling: #ffae4d;
    --open: #4fd08a;
    --unknown: #a3a3a3;
    --full-bg: #3a1417;
    --filling-bg: #3a2610;
    --open-bg: #0f2e1d;
    --unknown-bg: #232323;
    --focus: #6cc2ec;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible Next", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}

a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

/* Signal band header */
.band {
  background: var(--signal);
  color: var(--signal-ink);
}
/* Two-tone stripe under the header: 1 Line green, 2 Line blue */
.stripe {
  height: 5px;
  background: linear-gradient(90deg, var(--line1) 0 50%, var(--line2) 50% 100%);
}
.band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.brand .mark {
  width: 30px;
  height: 30px;
  border-radius: 5px;
  background: #141414;
  color: var(--signal);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 19px;
}
.unofficial {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 2px solid #141414;
  border-radius: 4px;
  padding: 1px 6px;
  white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: 16px; font-size: 15px; font-weight: 700; }
.nav a { text-decoration: none; white-space: nowrap; }
.nav a:hover { text-decoration: underline; }

main.wrap { padding-top: 24px; padding-bottom: 48px; }

h1 { font-size: 30px; line-height: 1.15; margin: 8px 0 6px; letter-spacing: -0.015em; }
h2 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); margin: 32px 0 8px; }
h3 { font-size: 19px; margin: 0 0 4px; }
p { margin: 0 0 12px; }
.lede { color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }

/* Board (home) */
.board-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-3);
  border-bottom: 2px solid var(--ink);
  padding-bottom: 6px;
  margin-top: 20px;
}
.board { list-style: none; margin: 0; padding: 0; }
.board li { border-bottom: 1px solid var(--rule); }
.board a.row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
  padding: 12px 2px;
  text-decoration: none;
}
.board a.row:hover .st-name { text-decoration: underline; }
.st-name { font-weight: 700; font-size: 18px; }
.st-sub { grid-column: 1 / -1; font-size: 14px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.lines { display: inline-flex; gap: 4px; margin-left: 8px; vertical-align: 2px; }
.line {
  font-size: 12px;
  font-weight: 800;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: var(--ink-3);
}
.line.l1 { background: var(--line1); }
.line.l2 { background: var(--line2); }
h1 .lines { vertical-align: 6px; margin-left: 10px; }
h1 .line { width: 28px; height: 28px; font-size: 15px; }

/* Corridor headings carry the colors of the lines that serve them */
.corridor::before {
  content: "";
  display: inline-block;
  vertical-align: -3px;
  margin-right: 10px;
  width: 6px;
  height: 18px;
  border-radius: 2px;
  background: var(--ink-3);
}
.corridor.c-north::before { background: linear-gradient(90deg, var(--line1) 0 50%, var(--line2) 50% 100%); }
.corridor.c-south::before { background: var(--line1); }
.corridor.c-east::before { background: var(--line2); }

/* Status chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 15px;
  padding: 4px 10px;
  border-radius: 999px; /* unslop-ignore: status chips only, reads as a signal lamp */
  white-space: nowrap;
  border: 2px solid currentColor;
}
.chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.s-full { color: var(--full); background: var(--full-bg); }
.s-filling { color: var(--filling); background: var(--filling-bg); }
.s-open { color: var(--open); background: var(--open-bg); }
.s-unknown { color: var(--unknown); background: var(--unknown-bg); border-style: dashed; }
.is-stale { opacity: 0.72; }
.is-stale.chip { border-style: dashed; }

/* Station page panels */
.panel {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 16px;
  margin: 12px 0;
}
.panel.s-full, .panel.s-filling, .panel.s-open, .panel.s-unknown { border-color: currentColor; }
.panel .label { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--ink-2); }
.panel .big { font-size: 34px; font-weight: 800; line-height: 1.1; margin: 4px 0; }
.panel .detail { color: var(--ink); font-size: 15px; }
.panel.s-unknown .big { color: var(--unknown); }

.callout {
  background: var(--panel);
  border-left: 5px solid var(--signal);
  padding: 10px 12px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 15px;
  margin: 10px 0;
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 800;
  font-size: 17px;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  cursor: pointer;
}
.btn.secondary { background: transparent; color: var(--ink); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }

.timeline { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.timeline li { display: flex; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--rule); align-items: center; }
.timeline time { width: 72px; color: var(--ink-2); font-weight: 700; }

/* Report page */
.report-grid { display: grid; gap: 12px; margin: 16px 0; }
.rbtn {
  appearance: none;
  font: inherit;
  font-weight: 800;
  font-size: 24px;
  min-height: 84px;
  border-radius: 10px;
  border: 3px solid currentColor;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  text-align: left;
}
.rbtn small { font-size: 14px; font-weight: 700; opacity: 0.85; }
.rbtn.s-full { color: var(--full); }
.rbtn.s-filling { color: var(--filling); }
.rbtn.s-open { color: var(--open); }
.rbtn:active { transform: translateY(1px); }
.rbtn[disabled] { opacity: 0.45; }
.permit-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.permit-row .rbtn { font-size: 18px; min-height: 64px; padding: 0 14px; }
.drive-note { font-size: 14px; font-weight: 700; display: flex; gap: 8px; align-items: center; color: var(--ink-2); }

.done { text-align: center; padding: 28px 0; }
.done .big { font-size: 30px; font-weight: 800; margin-bottom: 8px; }

/* Forms */
.field { display: grid; gap: 4px; margin: 10px 0; font-size: 15px; font-weight: 700; }
select, input[type="text"] {
  font: inherit;
  font-weight: 400;
  min-height: 44px;
  padding: 8px 10px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  width: 100%;
}
.check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.check input { width: 20px; height: 20px; }

.copyrow { display: flex; gap: 8px; }
.copyrow input { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14px; }

ol.steps { padding-left: 22px; }
ol.steps li { margin-bottom: 10px; }
code, kbd {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  background: var(--panel);
  padding: 1px 5px;
  border-radius: 4px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  max-width: calc(100vw - 32px);
  z-index: 10;
}

footer {
  border-top: 2px solid var(--ink);
  padding: 18px 0 40px;
  font-size: 14px;
  color: var(--ink-2);
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }

.hidden { display: none !important; }

@media (max-width: 420px) {
  .brand .mark { display: none; }
}

@media (max-width: 520px) {
  .band .wrap { gap: 8px; }
  .brand { gap: 8px; }
  .nav { gap: 10px; }
  .brand span:last-child { font-size: 16px; }
  h1 { font-size: 26px; }
  .nav { gap: 12px; font-size: 14px; }
  .unofficial { display: none; }
  .panel .big { font-size: 30px; }
}
