/* The live street page (/live). Loaded after marketing.css, which supplies
   the tokens (--ink, --dim, --line, --accent, --panel, --paper), the fonts,
   the nav and the footer. This file styles the page's own parts: the pixel
   band, its overlays, and the cards under it. The scene inside the canvas is
   drawn by static/js/street.js. */

/* minmax(0, 1fr): without it the one column takes the width of its widest
   child (the row of region buttons) and the page scrolls sideways. */
.street-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-block: 34px 56px; }
.street-band [hidden] { display: none; }
.street-kicker { font: 500 11.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); display: inline-flex; align-items: center; gap: 8px; }
.street-kicker::before { content: ""; width: 8px; height: 8px; background: var(--accent); border: 1.5px solid var(--ink); animation: street-blink 1.6s steps(2, start) infinite; }
@keyframes street-blink { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .street-kicker::before { animation: none; } }
.street-head h1 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.02; letter-spacing: -0.03em; margin: 6px 0 0; text-wrap: balance; }
.street-lede { margin: 10px 0 0; color: var(--ink2); max-width: 66ch; font-size: 17px; line-height: 1.5; }

.street-band { position: relative; height: clamp(330px, 44vw, 430px); border-radius: 12px; overflow: hidden; border: 1px solid var(--line-strong); background: #0a1024; cursor: grab; touch-action: pan-y; }
.street-band.dragging { cursor: grabbing; }
.street-band canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.street-hud { position: absolute; background: rgba(13, 20, 16, 0.84); color: #eef2ea; font: 500 12px/1.35 var(--mono); padding: 6px 10px; border-radius: 6px; pointer-events: none; font-variant-numeric: tabular-nums; }
.street-hud b { color: var(--accent); font-weight: 700; }
.street-clock { left: 10px; top: 10px; letter-spacing: .04em; }
.street-totals { right: 10px; top: 10px; }
.street-lag { left: 10px; top: 42px; font-size: 11px; }
.street-caption { left: 10px; bottom: 10px; max-width: calc(100% - 20px); display: flex; gap: 8px; align-items: center; }
.street-caption::before { content: ""; width: 8px; height: 8px; background: var(--accent); flex: none; }
@media (max-width: 760px) {
  .street-totals { left: 10px; right: auto; top: 42px; font-size: 11px; max-width: calc(100% - 20px); }
  .street-lag { top: 92px; }
}

.street-tip { position: absolute; z-index: 5; max-width: 260px; background: var(--panel); color: var(--ink); border: 2px solid var(--ink); border-radius: 4px; padding: 8px 10px; font-size: 13px; line-height: 1.35; box-shadow: 4px 4px 0 rgba(0, 0, 0, .35); cursor: default; }
.street-tip b { display: block; font: 700 14px var(--display); }
.street-tip .meta { color: var(--dim); margin-top: 2px; }
.street-tip .val { margin-top: 6px; font: 500 12px var(--mono); }
.street-tip .chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.street-tip a { display: inline-block; margin-top: 8px; color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

.street-bar { display: flex; gap: 10px; align-items: flex-start; }
.street-regions { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; flex: 1 1 auto; min-width: 0; }
.street-bar button { font: 600 13px var(--sans); color: var(--ink); background: var(--panel); border: 1px solid var(--line-strong); border-radius: 6px; padding: 6px 10px; cursor: pointer; flex: none; display: inline-flex; gap: 7px; align-items: center; white-space: nowrap; }
.street-bar button:hover { border-color: var(--dim); }
.street-bar button:focus-visible, .street-feed a:focus-visible, .street-feed button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.street-bar button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.street-bar .n { font: 500 11px var(--mono); color: var(--dim); min-width: 2ch; text-align: right; font-variant-numeric: tabular-nums; }
.street-bar button[aria-pressed="true"] .n { color: var(--accent-ink); }

.street-below { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 980px) { .street-below { grid-template-columns: minmax(0, 1fr); } }
.street-card { background: var(--panel); border: 1px solid var(--line-strong); border-radius: 12px; padding: 16px 18px; min-width: 0; }
.street-card h2 { font: 500 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 10px; color: var(--dim); }
.street-card p { margin: 8px 0 0; color: var(--dim); font-size: 13.5px; line-height: 1.5; }

.s-chip { display: inline-flex; align-items: center; justify-content: center; font: 700 10.5px/1 var(--mono); padding: 4px 6px; border: 1.5px solid var(--ink); border-radius: 2px; white-space: nowrap; }
.s-chip.m { background: #f2c14e; color: #2a1d05; }
.s-chip.s { background: #f6dc9a; color: #3a2a08; }
.s-chip.a { background: #a9d1f5; color: #0f2236; }
.s-chip.n { background: #ffffff; color: #16181b; }
.s-chip.o { background: #59657a; color: #eef1f6; }

.street-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
/* Two lines a row, so a company's name gets the full width of the card. */
.street-feed li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "when chip find" "who who who"; gap: 3px 8px; align-items: center; padding: 6px 4px; border-radius: 4px; }
.street-feed .when { grid-area: when; }
.street-feed .s-chip { grid-area: chip; justify-self: start; }
.street-feed .who { grid-area: who; }
.street-feed button { grid-area: find; }
.street-feed li:hover { background: var(--bg2); }
.street-feed .when { font: 500 11.5px var(--mono); color: var(--dim); white-space: nowrap; }
.street-feed .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.street-feed .who a { color: var(--ink); font-weight: 600; text-decoration: none; }
.street-feed .who a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.street-feed .who span { color: var(--dim); }
.street-feed button { font: 500 11px var(--mono); color: var(--dim); background: transparent; border: 1px solid var(--line-strong); border-radius: 4px; padding: 2px 6px; cursor: pointer; }
.street-feed button:hover { color: var(--ink); border-color: var(--dim); }
.street-feed .empty { display: block; color: var(--dim); font-size: 13.5px; }

.street-sizes { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: flex-end; }
.street-sizes figure { margin: 0; display: grid; justify-items: center; gap: 4px; font: 500 11px var(--mono); color: var(--dim); }
.street-sizes canvas { image-rendering: pixelated; }
.street-rows { display: grid; gap: 7px; font-size: 13.5px; }
.street-rows div { display: flex; align-items: center; gap: 9px; }
.street-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 10px; font-size: 13.5px; margin-top: 12px; }
.street-swatches span { display: inline-flex; align-items: center; gap: 7px; }
.street-swatches i, .street-lime { width: 12px; height: 12px; border: 1.5px solid var(--ink); display: inline-block; flex: none; }
.street-lime { background: var(--accent); }

.street-notes { color: var(--dim); font-size: 14px; line-height: 1.55; max-width: 92ch; }
.street-notes h2 { font: 500 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 8px; color: var(--dim); }
.street-notes ul { margin: 0; padding-left: 18px; display: grid; gap: 5px; }
.street-notes strong { color: var(--ink); font-weight: 700; }

.street-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; background: var(--ink); color: #eef2ea; border-radius: 12px; padding: 20px 22px; }
.street-cta strong { font: 700 19px var(--display); letter-spacing: -0.01em; display: block; }
.street-cta span { color: #b8c2b6; font-size: 14.5px; }
