/* The Defect Ledger (woodcock.top) — "Issue Tracker" visual.
   Cool tracker grey (#eceff2) + teal accent (#0f766e) + near-black ink (#191c22).
   Motif: severity chips (red/orange/yellow/blue), flat one-per-row list, monospace chrome,
   faint vertical column rules like a tracker board. Squared corners only. */

:root {
  --bg: #eceff2;
  --panel: #ffffff;
  --ink: #191c22;
  --muted: #5c6470;
  --line: #d5dae0;
  --accent: #0f766e;
  --accent-d: #0b5d56;
  --rule: rgba(25, 28, 34, .05);
  --crit: #c8342b;
  --high: #d9741a;
  --med: #b8912a;
  --low: #2a63c4;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-d); text-decoration: underline; }

/* ---- header: teal rail over a white bar; mono brand block ---- */
.tk-header { background: var(--panel); border-bottom: 1px solid var(--line); }
.tk-header::before { content: ""; display: block; height: 4px; background: var(--accent); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.tk-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.tk-mark { display: inline-flex; color: var(--accent); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-family: var(--mono); font-weight: 700; letter-spacing: -.2px; font-size: 16px; }
.brand-tag { font-size: 10.5px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; font-family: var(--mono); }
.tk-nav { display: flex; gap: 22px; }
.tk-nav a {
  color: var(--ink); font-size: 13px; font-weight: 600; padding: 3px 0;
  font-family: var(--mono); border-bottom: 2px solid transparent;
}
.tk-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); text-decoration: none; }

/* ---- hero: faint vertical column rules, like a tracker board ---- */
.tk-hero {
  background:
    repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px 41px),
    var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 44px 0;
}
.hero-tag { color: var(--accent); font-family: var(--mono); font-size: 11px; letter-spacing: 2.5px; font-weight: 700; margin-bottom: 12px; }
.tk-hero h1 { font-family: var(--mono); font-size: 32px; line-height: 1.18; font-weight: 700; margin-bottom: 14px; max-width: 780px; letter-spacing: -.5px; }
.hero-lede { max-width: 700px; color: var(--muted); font-size: 17px; }

/* ---- sections ---- */
section { padding: 26px 0; }
.band-label { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 12px; }
.lane-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.lane-head h2 { font-family: var(--mono); font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 10px; letter-spacing: -.3px; }
.lane-bar { display: inline-block; width: 12px; height: 12px; background: var(--crit); }
.lane-bar.c-high { background: var(--high); }
.lane-bar.c-med { background: var(--med); }
.lane-bar.c-low { background: var(--low); }
.lane-more { font-family: var(--mono); font-size: 12px; font-weight: 600; }

/* ---- queue rail (category tabs) ---- */
.queue-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.queue-tab {
  display: flex; flex-direction: column; gap: 3px; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--crit);
  padding: 12px 14px;
}
.queue-tab:hover { text-decoration: none; border-color: var(--accent); border-top-color: var(--accent); }
.queue-tab .tab-count { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.queue-tab .tab-name { font-family: var(--mono); font-weight: 700; font-size: 14px; }
.queue-tab.c-high { border-top-color: var(--high); }
.queue-tab.c-med { border-top-color: var(--med); }
.queue-tab.c-low { border-top-color: var(--low); }
.queue-inline { padding-top: 4px; }

/* ---- the board: flat one-row-per-report list ---- */
.board { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.bug-tile {
  display: grid; grid-template-columns: 128px 1fr; gap: 16px;
  color: var(--ink); background: var(--panel);
  border-bottom: 1px solid var(--line); padding: 14px 16px;
}
.bug-tile:hover { background: #f6f8f9; text-decoration: none; }
.tile-chip {
  align-self: start; justify-self: start;
  font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; color: #fff; padding: 3px 7px;
  background: var(--crit); white-space: nowrap;
}
.c-high { background: var(--high); }
.c-med { background: var(--med); }
.c-low { background: var(--low); }
.tile-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tile-title { font-weight: 700; font-size: 16px; line-height: 1.32; }
.tile-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; border-top: 1px dashed var(--line); padding-top: 8px; }
.frow { display: flex; align-items: baseline; gap: 6px; font-size: 12.5px; }
.frow .fk { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); }
.frow .fv { color: var(--ink); }
.tile-note { font-size: 13px; color: var(--muted); }

/* ---- page head ---- */
.page-head { padding: 32px 0 10px; }
.crumb { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.crumb a { color: var(--muted); }
.page-head h1 { font-family: var(--mono); font-size: 27px; line-height: 1.22; font-weight: 700; letter-spacing: -.4px; }
.lede { color: var(--muted); margin-top: 8px; font-family: var(--mono); font-size: 13px; }

/* ---- entry layout: report card doc + log ---- */
.report { display: grid; grid-template-columns: 320px 1fr; gap: 26px; padding-top: 22px; padding-bottom: 40px; }
.bug-doc { align-self: start; background: var(--panel); border: 1px solid var(--line); }
.doc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.doc-title { font-family: var(--mono); font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.doc-spec { font-variant-numeric: tabular-nums; }
.doc-row { display: flex; border-bottom: 1px solid var(--line); font-size: 14px; }
.doc-row:last-child { border-bottom: 0; }
.doc-key {
  flex: 0 0 44%; padding: 9px 14px; color: var(--muted); border-right: 1px solid var(--line);
  font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
}
.doc-val { flex: 1; padding: 9px 14px; }
.doc-row.is-legend { background: rgba(15, 118, 110, .08); box-shadow: inset 4px 0 0 var(--accent); }
.doc-row.is-legend .doc-val { font-weight: 600; }

.log { background: var(--panel); border: 1px solid var(--line); padding: 26px 30px; }
.log-legal h2 { font-family: var(--mono); font-size: 16px; font-weight: 700; margin: 18px 0 8px; }
.log-legal p { margin-bottom: 12px; }
.step { margin-bottom: 24px; }
.step:last-child { margin-bottom: 0; }
.step h2 { display: flex; align-items: baseline; gap: 12px; font-family: var(--mono); font-size: 17px; font-weight: 700; margin-bottom: 10px; letter-spacing: -.3px; }
.step-num { font-size: 11px; font-weight: 700; color: #fff; background: var(--accent); padding: 2px 6px; font-family: var(--mono); }
.log p { margin-bottom: 12px; color: #333944; }
.log p:last-child { margin-bottom: 0; }
.related-list { list-style: none; }
.related-list li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.related-list li:last-child { border-bottom: 0; }

/* ---- footer ---- */
.tk-footer { background: var(--panel); border-top: 1px solid var(--line); margin-top: 24px; }
.tk-footer::before { content: ""; display: block; height: 4px; background: var(--accent); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; padding: 26px 20px; }
.footer-brand { flex: 1 1 340px; }
.footer-brand .brand-name { font-family: var(--mono); font-weight: 700; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.footer-nav { display: flex; gap: 16px; }
.footer-nav a { color: var(--ink); font-size: 13px; font-weight: 600; font-family: var(--mono); }
.copyright { flex: 1 1 100%; font-size: 12px; color: var(--muted); margin-top: 8px; font-family: var(--mono); }

/* ---- responsive ---- */
@media (max-width: 880px) {
  .queue-rail { grid-template-columns: repeat(2, 1fr); }
  .report { grid-template-columns: 1fr; }
  .bug-tile { grid-template-columns: 110px 1fr; }
}
@media (max-width: 560px) {
  .queue-rail { grid-template-columns: 1fr; }
  .bug-tile { grid-template-columns: 1fr; gap: 8px; }
  .header-inner { flex-direction: column; gap: 10px; align-items: flex-start; }
  .tk-nav { gap: 14px; }
  .tk-hero h1 { font-size: 25px; }
  .log { padding: 20px 18px; }
}
