/* Signals hub: an arcade radar station. A retro site, not a retro theme:
   the hero is copy on the open night with the radar in a btop-style terminal
   window beside it (as on /about/), the feed sits in an open 2px frame (no fill,
   the title on the border), the page name is an echo sign, the feed reads like a
   high-score table with a 1P cursor, filters are arcade toggles, and verdicts
   are pixel chips. Tokens only; every rule is scoped to .sig-hub so post
   pages that load this file are untouched.
   One continuous night: no colour bands; a quiet dotted seam between the
   sections below the feed (.seam, drawn in qs.css). Rhythm, shared
   with the other inner pages: sections pad var(--sec-y); the close h2 never
   outweighs the page h1 (both 44px, stepping down together). */

/* ---------- 0. Terminal windows ---------- */
.sig-hub .swin { position: relative; border: 2px solid var(--line-2); background: transparent; }
.sig-hub .swin__t, .sig-hub .swin__r { position: absolute; z-index: 2; top: -8px; margin: 0; padding: 0 8px; font: 400 11px/14px var(--pixel); letter-spacing: .06em; text-transform: none; background: var(--bg-0); white-space: nowrap; }
.sig-hub .swin__t { left: 16px; color: var(--fg-1); }
.sig-hub .swin__t::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: var(--rose, var(--accent)); vertical-align: 0; animation: pulse 2.4s steps(2) infinite; }
.sig-hub .swin__r { right: 16px; display: inline-flex; align-items: center; gap: 8px; color: var(--accent); }
.sig-hub .swin__led { width: 7px; height: 7px; background: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 22%, transparent); }
[data-theme="paper"] .sig-hub .swin { background: transparent; }

/* ---------- 1. Hero: the copy on the night, the radar in signals.exe ---------- */
.sig-hub .shero { padding: clamp(56px, 7vw, 104px) 0 clamp(56px, 6vw, 88px); }
.sig-hub .shero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 612px); gap: clamp(32px, 4vw, 56px); align-items: center; }
.sig-hub .shero__copy { position: relative; z-index: 1; display: grid; gap: 18px; justify-items: start; }
/* the page name as an echo sign, beside the Signals power-up */
.sig-hub .shero__sign { display: flex; align-items: center; gap: 18px; margin: 0 0 4px; font: 400 55px/1 var(--pixel); letter-spacing: -.01em; color: var(--fg-0); }
/* whole-pixel steps keep the layers crisp; on load the sign pops out of the screen and settles */
.sig-hub .shero__sign .echo { --es: 1px; padding-bottom: 6px; animation: sig-pop .6s steps(1) .25s both; }
@keyframes sig-pop { 0% { --es: 0px; } 25% { --es: 2px; } 50% { --es: 3px; } 75%, 100% { --es: 1px; } }
.sig-hub .shero__pu { width: 64px; height: 64px; flex: none; image-rendering: pixelated; margin-top: -6px; }
.sig-hub .shero__h { font: 400 44px/1.14 var(--pixel); letter-spacing: -.01em; color: var(--fg-0); max-width: 18ch; text-wrap: balance; }
.sig-hub .shero .lede { max-width: 54ch; font-size: 17.5px; }
.sig-hub .shero__why { max-width: 54ch; font-size: 17px; line-height: 1.55; color: var(--fg-0); }
.sig-hub .shero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 6px; }
.sig-hub .shero__cta .link { position: relative; }
.sig-hub .shero__cta .link::before { content: ""; position: absolute; inset: -12px -4px; }
.sig-hub .shero__fine { font-size: 14.5px; line-height: 1.55; color: var(--fg-2); max-width: 56ch; }
.sig-hub .shero__fine a { color: var(--fg-1); }
.sig-hub .shero__fine a:hover { color: var(--accent); }
/* the stage window (.pxwin, signals-post.css): scene pips on the top border, pause on the bottom
   border at the right, and the live count on the bottom border at the left */
.sig-hub .shero__art { position: static; width: 100%; }
.sig-hub .shero__count { position: absolute; z-index: 2; bottom: -8px; left: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 0 8px; font: 400 11px/14px var(--pixel); letter-spacing: .06em; color: var(--accent); background: var(--bg-0); white-space: nowrap; }

/* ---------- 2. The feed: a high-score table ---------- */
.sig-hub .slist { padding: clamp(24px, 3vw, 40px) 0 var(--sec-y); scroll-margin-top: 24px; }
.sig-hub .slist__win { padding: 34px 0 10px; }
/* the filters sit on the open night: a line and a lamp each, no filled key */
.sig-hub .slist__h { top: -13px; font: 400 22px/22px var(--pixel); letter-spacing: 0; color: var(--fg-0); }
.sig-hub .slist__h::before { width: 8px; height: 8px; margin-right: 12px; vertical-align: 3px; }
.sig-hub .slist__win .swin__r { color: var(--fg-1); }
.sig-hub .slist__win [data-sig-shown] { color: var(--accent); }
.sig-hub .slist__tools { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 0 20px 26px; }

/* filters: a bank of arcade toggles, each with its own lamp */
.sig-hub .sig-filter { gap: 8px 10px; }
.sig-hub .sig-filter button { --k: var(--accent); position: relative; display: inline-flex; align-items: center; gap: 9px; min-height: 40px; margin-bottom: 4px; padding: 0 13px; color: var(--fg-1); background: transparent; border: 2px solid var(--line-2); border-radius: 0; box-shadow: 0 4px 0 var(--line); transition: transform .06s, box-shadow .06s, color .12s, border-color .12s; }
.sig-hub .sig-filter button::before { content: ""; width: 7px; height: 7px; flex: none; background: color-mix(in srgb, var(--k) 28%, transparent); }
.sig-hub .sig-filter button:hover { color: var(--fg-0); border-color: var(--fg-2); background: var(--bg-2); }
.sig-hub .sig-filter button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.sig-hub .sig-filter button[aria-pressed="true"] { color: var(--fg-0); background: var(--bg-2); border-color: var(--k); transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.sig-hub .sig-filter button[aria-pressed="true"]::before { background: var(--k); box-shadow: 0 0 0 2px color-mix(in srgb, var(--k) 25%, transparent); }
.sig-hub .sig-filter [data-filter="reported"] { --k: var(--warn); }
.sig-hub .sig-filter [data-filter="confirmed"], .sig-hub .sig-filter [data-filter="available"] { --k: var(--info); }
.sig-hub .sig-filter [data-filter="insight"] { --k: var(--fg-1); }
.sig-hub .sig-filter button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* search: a pixel magnifier in the field */
.sig-hub .sig-find { position: relative; flex: 0 1 260px; }
.sig-hub .sig-find::before { content: ""; position: absolute; left: 14px; top: 50%; width: 11px; height: 11px; margin-top: -6px; background: var(--fg-2); pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 11'%3E%3Cpath d='M2 0h4v1H2zM1 1h1v1H1zM6 1h1v1H6zM0 2h1v4H0zM7 2h1v4H7zM1 6h1v1H1zM6 6h1v1H6zM2 7h4v1H2zM7 7h2v2H7zM9 9h2v2H9z'/%3E%3C/svg%3E") center / 11px 11px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 11'%3E%3Cpath d='M2 0h4v1H2zM1 1h1v1H1zM6 1h1v1H6zM0 2h1v4H0zM7 2h1v4H7zM1 6h1v1H1zM6 6h1v1H6zM2 7h4v1H2zM7 7h2v2H7zM9 9h2v2H9z'/%3E%3C/svg%3E") center / 11px 11px no-repeat; }
.sig-hub .sig-find:focus-within::before { background: var(--accent); }
.sig-hub .sig-q { width: 100%; padding-left: 36px; border-width: 2px; border-radius: 0; background: transparent; }
[data-theme="paper"] .sig-hub .sig-q { background: transparent; }

/* the table: rank, date, signal, status, verdict */
.sig-hub .slist__win { --cols: 40px 118px minmax(0, 1fr) 208px 116px; --gx: 24px; }
.sig-hub .sighead { position: relative; z-index: 1; display: grid; grid-template-columns: var(--cols); gap: var(--gx); padding: 0 20px 10px; font: 400 11px/1.4 var(--pixel); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); border-bottom: 2px solid var(--line-2); }
.sig-hub .sigtable { position: relative; z-index: 1; counter-reset: sig; border-top: 0; }
.sig-hub .sigtable > li { counter-increment: sig; border-bottom: 0; background: linear-gradient(90deg, var(--line) 50%, transparent 0) left bottom / 6px 1px repeat-x; }
.sig-hub .sigtable > li:last-child { background: none; }
.sig-hub .sigtable a { position: relative; grid-template-columns: var(--cols); gap: 10px var(--gx); align-items: start; padding: 18px 20px; transition: background-color .12s, box-shadow .12s; }
.sig-hub .sigtable a::before { content: counter(sig, decimal-leading-zero); content: counter(sig, decimal-leading-zero) / ""; font: 400 22px/1.3 var(--pixel); color: var(--fg-2); transition: color .12s; }
.sig-hub .sigtable a:hover, .sig-hub .sigtable a:focus-visible { background: color-mix(in srgb, var(--accent) 7%, transparent); box-shadow: inset 3px 0 0 var(--accent); }
.sig-hub .sigtable a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.sig-hub .sigtable a:hover::before, .sig-hub .sigtable a:focus-visible::before { color: var(--accent); }
.sig-hub .sig__date { padding-top: 7px; font: 400 11px/1.4 var(--pixel); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); white-space: nowrap; }
.sig-hub .sig__t { position: relative; font: 400 22px/1.3 var(--pixel); letter-spacing: 0; color: var(--fg-0); max-width: 44ch; }
/* the 1P cursor: a pixel arrow that blinks beside the row you're on */
.sig-hub .sig__t::before { content: ""; position: absolute; left: calc(var(--gx) * -1 + 6px); top: 8px; width: 8px; height: 12px; background: var(--accent); clip-path: polygon(0 0, 100% 50%, 0 100%); opacity: 0; }
.sig-hub .sigtable a:hover .sig__t::before, .sig-hub .sigtable a:focus-visible .sig__t::before { opacity: 1; animation: sig-cursor 1s steps(2) infinite; }
@keyframes sig-cursor { 50% { opacity: 0; } }
.sig-hub .sigtable a:hover .sig__t, .sig-hub .sigtable a:focus-visible .sig__t { color: var(--accent); }
.sig-hub .sig__d { margin-top: 8px; font-size: 15.5px; line-height: 1.5; color: var(--fg-1); max-width: 64ch; }
/* the latest three carry their summary; the rest read as a clean index */
.sig-hub .sigtable > li:nth-child(n+4) .sig__d { display: none; }
.sig-hub .sigtable > li:nth-child(-n+3) a { padding-block: 22px; }
.sig-hub .sig__cell { padding-top: 5px; min-width: 0; }
.sig-hub .sig__cell .label { display: none; }
.sig-hub .sig__cell .chip { white-space: normal; line-height: 1.5; align-items: baseline; }
.sig-hub .sig__cell .chip::before { flex: none; }
/* insights and weekly roundups are our own analysis, so they carry no verdict */
.sig-hub .sigtable li[data-kind="insight"] .sig__cell--v, .sig-hub .sigtable .verdict:empty { display: none; }
.sig-hub .slist__empty { position: relative; z-index: 1; padding: 28px 20px; font: 400 16.5px/1.4 var(--pixel); color: var(--fg-2); }

/* a quick row-by-row draw when the table first shows and on each filter */
.sig-hub .sigtable.is-drawn > li { animation: sig-row .2s steps(5) backwards; animation-delay: calc(var(--i, 0) * 30ms); }
@keyframes sig-row { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------- Verdict chips: pixel keys in the verdict palette ---------- */
.sig-hub .verdict { --v: var(--fg-1); display: inline-flex; align-items: center; gap: 8px; padding: 6px 9px 6px 8px; font: 400 11px/1 var(--pixel); letter-spacing: .08em; text-transform: uppercase; color: var(--v); background: color-mix(in srgb, var(--v) 10%, transparent); border: 0; border-radius: 0; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--v) 65%, transparent); white-space: nowrap; }
.sig-hub .verdict::before { content: ""; flex: none; width: 7px; height: 7px; background: currentColor; }
.sig-hub .verdict[data-v="act"] { --v: var(--accent); }
.sig-hub .verdict[data-v="act"]::before { width: 6px; height: 8px; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.sig-hub .verdict[data-v="prep"] { --v: var(--warn); }
[data-theme="paper"] .sig-hub .verdict[data-v="prep"] { --v: #7a4e0c; }
.sig-hub .verdict[data-v="prep"]::before { background: none; box-shadow: inset 0 0 0 2px currentColor; }
.sig-hub .verdict[data-v="wait"] { --v: var(--info); }
.sig-hub .verdict[data-v="wait"]::before { width: 7px; height: 8px; background: linear-gradient(90deg, currentColor 0 2px, transparent 2px 5px, currentColor 5px); }
.sig-hub .verdict[data-v="ign"] { --v: var(--fg-1); }
.sig-hub .verdict[data-v="ign"]::before { height: 2px; }

/* ---------- 3. Reading a Signal ---------- */
.sig-hub .slegend { padding: var(--sec-y) 0; }
.sig-hub .slegend__kick { margin-bottom: 14px; }
.sig-hub .slegend__h { font: 400 44px/1.14 var(--pixel); letter-spacing: -.01em; max-width: 30ch; text-wrap: balance; }
.sig-hub .slegend__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); margin-top: clamp(40px, 5vw, 64px); }
.sig-hub .slegend__k { font: 400 11px/1.4 var(--pixel); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-1); margin-bottom: 18px; }
.sig-hub .slegend__labels, .sig-hub .slegend__verdicts { margin: 0; border-top: 2px solid color-mix(in srgb, var(--fg-0) 16%, transparent); }
.sig-hub .slegend__labels div, .sig-hub .slegend__verdicts div { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: baseline; padding: 15px 0; background: linear-gradient(90deg, color-mix(in srgb, var(--fg-0) 16%, transparent) 50%, transparent 0) left bottom / 6px 1px repeat-x; }
.sig-hub .slegend__labels dd, .sig-hub .slegend__verdicts dd { margin: 0; color: var(--fg-1); font-size: 16px; }
.sig-hub .slegend__verdicts div { grid-template-columns: 150px 1fr; align-items: center; }
.sig-hub .slegend__verdicts dt { line-height: 1; }
.sig-hub .slegend__note { margin-top: 20px; color: var(--fg-1); font-size: 16px; }
.sig-hub .slegend__note + .slegend__note { margin-top: 8px; }
/* the chips sit on a dark key fill, so the small labels keep AA in every theme */
.sig-hub .slegend .verdict { background: color-mix(in srgb, var(--v) 10%, var(--bg-1)); }
[data-theme="paper"] .sig-hub .slegend .verdict { background: var(--bg-1); }
.v-act { color: var(--accent); }
.v-prep { color: var(--warn); }
.v-wait { color: var(--info); }
.v-ign { color: var(--fg-1); }

/* ---------- 4. Close ---------- */
.sig-hub .scloser { padding: var(--sec-y) 0; }
.sig-hub .scloser__grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.sig-hub .scloser__main { display: grid; gap: 24px; justify-items: start; }
.sig-hub .scloser__k { display: grid; gap: 16px; justify-items: start; }
/* the power-ups are 16x16 flat sprites at 4x, so the bob is one whole art pixel (4px) */
.sig-hub .scloser__pu { width: 64px; height: 64px; image-rendering: pixelated; animation: sig-bob 1.2s steps(1, end) infinite; }
@keyframes sig-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.sig-hub .scloser__h { font: 400 44px/1.14 var(--pixel); letter-spacing: -.01em; max-width: 20ch; text-wrap: balance; }
.sig-hub .scloser__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 6px; }
.sig-hub .scloser__cta .link { position: relative; align-self: center; }
.sig-hub .scloser__cta .link::before { content: ""; position: absolute; inset: -12px -4px; }
.sig-hub .scloser__form { display: grid; gap: 12px; padding: 34px clamp(20px, 2.4vw, 32px) 24px; scroll-margin-top: 100px; }
.sig-hub .scloser__form > * { position: relative; z-index: 1; }
.sig-hub .scloser__form > .swin__t, .sig-hub .scloser__form > .swin__r { position: absolute; z-index: 2; }
.sig-hub .scloser__fh { font: 400 22px/1.25 var(--pixel); color: var(--fg-0); }
.sig-hub .scloser__form .muted { font-size: 15px; }
.sig-hub .scloser__form .input { border-width: 2px; border-radius: 0; }
.sig-hub .scloser__form .btn { border-radius: 0; font: 400 16.5px/1 var(--pixel); }
.sig-hub .scloser__form .field .btn { flex: 1 1 auto; justify-content: center; }
/* the status line takes no room until it has something to say */
.sig-hub .scloser__form [data-form-status] { margin-top: 0; min-height: 0; }
.sig-hub .scloser__form [data-form-status]:empty { margin-top: -12px; }

/* ---------- Responsive ---------- */
/* laptops: a 3x stage beside the copy */
@media (max-width: 1279px) {
  .sig-hub .shero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 468px); }
  .sig-hub .shero__sign { font-size: 44px; }
  .sig-hub .shero__pu { width: 64px; height: 64px; }
  .sig-hub .shero__h, .sig-hub .scloser__h { font-size: 33px; }
}
/* tablets: the status moves under the title */
@media (max-width: 1100px) {
  .sig-hub .slist__win { --cols: 36px 104px minmax(0, 1fr) 116px; --gx: 20px; }
  .sig-hub .sighead span:nth-child(4) { display: none; }
  .sig-hub .sigtable .sig__cell--a { display: flex; grid-column: 3; grid-row: 2; padding-top: 0; }
  .sig-hub .sigtable .sig__cell--v { grid-column: 4; grid-row: 1; }
  .sig-hub .sigtable a::before, .sig-hub .sig__date { grid-row: 1 / span 2; }
  /* pixel type stays on its 11px grid between breakpoints */
  .sig-hub .slegend__h { font-size: 38.5px; }
}
@media (max-width: 900px) {
  .sig-hub .shero__grid { grid-template-columns: minmax(0, 1fr); }
  .sig-hub .shero__win { order: -1; justify-self: center; width: 100%; max-width: 612px; }
  .sig-hub .shero__sign { font-size: 44px; }
  .sig-hub .slegend__grid, .sig-hub .scloser__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sig-hub .shero { padding: 32px 0 48px; }
  .sig-hub .shero__grid { gap: 22px; }
  .sig-hub .shero__copy { gap: 18px; }
  .sig-hub .shero__sign { gap: 14px; font-size: 44px; }
  .sig-hub .shero__sign .echo { padding-bottom: 10px; }
  .sig-hub .shero__h { font-size: 27.5px; line-height: 1.18; }
  .sig-hub .shero .lede { font-size: 16.5px; }
  .sig-hub .shero__why { font-size: 16px; }
  .sig-hub .shero__cta { width: 100%; }
  .sig-hub .shero__cta .btn--arcade, .sig-hub .scloser__cta .btn--arcade { width: 100%; justify-content: center; font-size: 16.5px; padding-inline: 14px; }
  .sig-hub .swin__t { left: 10px; }
  .sig-hub .swin__r { right: 10px; }
  .sig-hub .slist { padding-top: 12px; }
  .sig-hub .slist__win { --gx: 12px; padding-top: 30px; }
  .sig-hub .slist__h { font-size: 22px; }
  .sig-hub .slist__tools { padding: 0 12px 18px; }
  .sig-hub .sig-filter { gap: 6px 6px; }
  .sig-hub .sig-filter button { min-height: 44px; padding: 0 10px; gap: 7px; }
  .sig-hub .sig-find { flex: 1 1 100%; }
  .sig-hub .sighead { display: none; }
  .sig-hub .sigtable { border-top: 2px solid var(--line-2); }
  .sig-hub .sigtable a { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px 12px; padding: 18px 12px 18px 12px; }
  .sig-hub .sigtable > li:nth-child(-n+3) a { padding-block: 20px; }
  .sig-hub .sigtable a::before { grid-column: 1; grid-row: 1 / span 3; font-size: 16.5px; line-height: 1.2; padding-top: 1px; }
  .sig-hub .sig__date { grid-column: 2 / -1; grid-row: 1; padding-top: 2px; }
  .sig-hub .sigtable a > span:nth-child(2) { grid-column: 2 / -1; grid-row: 2; }
  .sig-hub .sigtable .sig__cell--a { display: flex; grid-column: 2; grid-row: 3; align-self: center; padding-top: 4px; }
  .sig-hub .sigtable .sig__cell--v { grid-column: 3; grid-row: 3; align-self: center; padding-top: 4px; }
  .sig-hub .sig__t { font-size: 16.5px; line-height: 1.36; }
  .sig-hub .slegend__h { font-size: 33px; }
  .sig-hub .sig__t::before { display: none; }
  .sig-hub .sig__d { font-size: 15px; }
  .sig-hub .slegend__labels div, .sig-hub .slegend__verdicts div { grid-template-columns: 1fr; gap: 8px; }
  .sig-hub .slegend__verdicts dt { justify-self: start; }
  .sig-hub .scloser__h { font-size: 27.5px; line-height: 1.18; }
  .sig-hub .scloser__cta .btn--xl { min-height: 56px; }
  .sig-hub .scloser__form { padding: 30px 16px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .sig-hub .swin__t::before, .sig-hub .shero__sign .echo, .sig-hub .scloser__pu, .sig-hub .sigtable.is-drawn > li { animation: none; }
  .sig-hub .sigtable a:hover .sig__t::before, .sig-hub .sigtable a:focus-visible .sig__t::before { animation: none; }
  .sig-hub .sig-filter button, .sig-hub .sigtable a { transition: none; }
}
