:root {
  --term-bg: #040a06;
  --term-fg: #35d960;
  --term-dim: #1e7d3c;
  --term-cyan: #4fd6be;
  --term-white: #d8ffe3;
  --mono: 'Cascadia Code', 'IBM Plex Mono', Consolas, 'Courier New', monospace;
  font-family: var(--mono);
}
* { box-sizing: border-box; }
html { zoom: 1.15; }  /* default read size — board reads best at 125-150% */
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 50% -20%, rgba(53,217,96,.10), transparent 60%),
    var(--term-bg);
  color: var(--term-fg);
  min-height: 100vh;
  position: relative;
}
body::after {
  content: '';
  position: fixed; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
  z-index: 99;
}
/* CRT toggle (crt.js): kills the scanline + glow, theme otherwise identical */
html.crt-off body::after { display: none; }
html.crt-off body { background: var(--term-bg); }
#crt-toggle {
  position: fixed; right: 10px; bottom: 10px; z-index: 100;
  font-family: var(--mono); font-size: 11px;
  background: transparent; color: var(--term-dim);
  border: 1px solid var(--term-dim); border-radius: 2px;
  padding: 2px 8px; cursor: pointer;
}
#crt-toggle:hover { color: var(--term-fg); border-color: var(--term-fg); }
.screen { max-width: 900px; margin: 0 auto; padding: 0 14px 60px; }

.sysline { font-size: 12px; color: var(--term-white); padding: 10px 2px 4px; letter-spacing: .02em; }
.sysline .lbl { color: var(--term-dim); }
.sysline .load { color: var(--term-cyan); }
.meter { display:inline-block; width: 90px; height: 8px; border: 1px solid var(--term-dim); vertical-align: middle; margin: 0 4px; position: relative; overflow: hidden; }
.meter i { position:absolute; left:0; top:0; bottom:0; background: repeating-linear-gradient(90deg, var(--term-fg) 0 3px, transparent 3px 5px); }
.meter b { position:absolute; left:0; top:0; bottom:0; background: repeating-linear-gradient(90deg, var(--term-cyan) 0 3px, transparent 3px 5px); }

.fbar {
  display: flex; justify-content: space-between; gap: 2px;
  background: var(--term-dim);
  padding: 5px 8px; margin: 8px -14px 0; font-size: 13px;
  border-top: 1px solid var(--term-fg);
  border-bottom: 1px solid var(--term-fg);
  position: sticky; top: 0; z-index: 50;
}
.fbar a { color: #02110a; text-decoration: none; font-weight: 700; white-space: nowrap; padding: 0 6px; }
.fbar a .k { color: #06320f; background: var(--term-white); border-radius: 2px; padding: 0 4px; margin-right: 4px; font-weight: 700; }
.fbar a:hover { background: var(--term-fg); }
.fbar a.on { background: var(--term-bg); color: var(--term-fg); outline: 1px solid var(--term-bg); }
.fbar a.on .k { background: var(--term-fg); color: var(--term-bg); }

/* claim tracker */
.row.claims, .colhdr.claims { grid-template-columns: 64px 1fr 110px 96px; }
.who.st-fulfilled   { color: var(--term-fg); }
.who.st-missed      { color: #ff6b6b; }
.who.st-contradicted { color: #ffb347; }
.who.st-pending     { color: var(--term-dim); }
.grade { border: 1px solid var(--term-dim); padding: 0 3px; font-size: 11px; }
.grade.gS { color: var(--term-fg); border-color: var(--term-fg); }
.grade.gM { color: var(--term-cyan); border-color: var(--term-cyan); }
.grade.gW { color: #ff6b6b; border-color: #ff6b6b; }
.srcs { display: block; margin-top: 4px; font-size: 11px; }
.srcs a { color: var(--term-cyan); text-decoration: none; margin-right: 6px; }
.srcs a:hover { text-decoration: underline; }
.nosrc { color: #ff6b6b; }
.cp { display: block; margin-top: 4px; font-size: 12px; color: var(--term-dim); }
details.grp { margin-top: 26px; }
details.grp summary {
  list-style: none; cursor: pointer;
  font-size: 12px; margin: 0; padding: 3px 8px;
  background: var(--term-dim); color: var(--term-white);
  letter-spacing: .05em;
}
details.grp summary::-webkit-details-marker { display: none; }
details.grp summary .cnt { float: right; opacity: .8; }
details.grp summary .caret { display: inline-block; width: 0; height: 0; margin-right: 6px;
  border-left: 6px solid var(--term-white); border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
details.grp[open] summary .caret { transform: rotate(90deg); }
details.grp summary:hover { background: var(--term-fg); color: var(--term-bg); }
.grpsub { font-size: 12px; color: var(--term-dim); padding: 6px 8px 2px; }
.grptabs { margin: 12px 0 0; font-size: 12px; color: var(--term-dim); }
.grptabs a { color: var(--term-cyan); text-decoration: none; margin-right: 10px; }

h2.bar {
  font-size: 13px; font-weight: 400; margin: 34px 0 0;
  padding: 3px 8px;
  background: var(--term-fg); color: var(--term-bg);
  letter-spacing: .04em;
}
h2.bar .cnt { float: right; opacity: .75; }
.colhdr {
  display: grid; grid-template-columns: 70px 1fr 90px 70px;
  gap: 8px; font-size: 11px; color: var(--term-dim);
  padding: 4px 8px; border-bottom: 1px solid var(--term-dim);
  text-transform: uppercase; letter-spacing: .06em;
}

.row {
  display: grid; grid-template-columns: 70px 1fr 90px 70px; gap: 8px;
  padding: 9px 8px 9px 2px; font-size: 13px; align-items: baseline;
  border-bottom: 1px dotted #0c2413;
}
.row:hover { background: #071609; }
.row:hover .title { text-decoration: underline; }
.who { color: var(--term-cyan); font-size: 12px; text-align: right; }
.who.developer { color: var(--term-fg); }
.who.ceo { color: var(--term-white); }
.title { color: var(--term-white); cursor: pointer; }
.title a { color: inherit; text-decoration: none; }
.title .sub { display:block; color: var(--term-dim); font-size: 12px; margin-top: 2px; }
.when { color: var(--term-dim); font-size: 12px; text-align: right; }
.pid { color: var(--term-dim); font-size: 12px; }
.tag { font-size: 11px; text-align: right; color: var(--term-cyan); }

/* board members — ps aux style */
.board { grid-template-columns: 56px 90px 1fr; }
.colhdr.board { grid-template-columns: 56px 90px 1fr; }
.stat { font-size: 11px; color: var(--term-dim); text-align: right; }
.uid { font-size: 12px; color: var(--term-cyan); }
.ent { border: 1px solid var(--term-white); background: var(--term-white); color: var(--term-bg); }
.ent:hover { background: var(--term-white); }
.ent .uid, .ent .stat { color: #3d5c46; }
.ent .title { color: var(--term-bg); font-weight: 700; }
.ent .title .sub { color: #24402c; }

.panel {
  margin: 10px 0 0; padding: 14px 16px; font-size: 13px;
  border: 1px solid var(--term-dim);
  background: #060f08;
}
.panel .cmd { color: var(--term-white); }
.panel .out { color: var(--term-dim); }
.panel .out strong { color: var(--term-fg); font-weight: 400; }
.cursor { display:inline-block; width: 8px; height: 15px; background: var(--term-fg); vertical-align: text-bottom; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.go {
  display:inline-block; margin-top: 10px; padding: 3px 14px;
  border: 1px solid var(--term-fg); color: var(--term-fg); text-decoration: none;
}
.go:hover { background: var(--term-fg); color: var(--term-bg); }

.bars { margin-top: 10px; font-size: 12px; }
.bars .lbl { display:inline-block; width: 120px; color: var(--term-white); }
.statbar { display:inline-block; width: 420px; max-width: 55vw; height: 9px; border: 1px solid var(--term-dim); position: relative; vertical-align: middle; overflow:hidden; margin-right: 8px; }
.statbar i { position:absolute; left:0; top:0; bottom:0; background: repeating-linear-gradient(90deg, var(--term-fg) 0 2px, var(--term-bg) 2px 4px); }
.statbar b { position:absolute; left:0; top:0; bottom:0; background: repeating-linear-gradient(90deg, var(--term-cyan) 0 2px, transparent 2px 4px); }

/* post pages */
article.post { color: var(--term-white); line-height: 1.65; }
article.post h1 { color: var(--term-fg); font-size: 18px; font-weight: 400; border-bottom: 1px solid var(--term-dim); padding-bottom: 6px; }
article.post h2 { color: var(--term-fg); font-size: 15px; font-weight: 400; }
article.post strong { color: var(--term-fg); font-weight: 700; }
article.post code { color: var(--term-cyan); }
article.post a { color: var(--term-cyan); }
article.post blockquote { border-left: 2px solid var(--term-dim); margin: 0; padding-left: 12px; color: var(--term-dim); }
.backlink { font-size: 12px; }
.backlink a { color: var(--term-cyan); }
footer.sig { margin-top: 40px; font-size: 11px; color: var(--term-dim); text-align: center; }
