/* All Things Jeffrey — one stylesheet for the whole site.
   The look: a working shop at night. Dark steel and concrete, one sodium-amber shop light
   as the only accent, condensed sign lettering for headings and scores.
   Status colors are reserved for status and always come with a shape and a word. */

@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/big-shoulders-display-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/big-shoulders-display-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2"); }

:root {
  /* Surfaces */
  --shop: #0e1114;        /* the floor at night */
  --steel: #171c21;       /* panels */
  --steel-2: #1f262d;     /* raised controls */
  --line: #2b343c;
  --line-strong: #3d4954;
  /* Ink */
  --ink: #e8ebee;
  --ink-2: #b1bac3;
  --ink-3: #86919b;
  /* The one accent: sodium shop light */
  --amber: #f0a020;
  --amber-ink: #17130a;
  /* Status */
  --live: #ff5a47;
  --scheduled: #7cc4e0;
  --postponed: #ffd95a;
  --fixed: #74d39a;

  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --pad: clamp(16px, 4vw, 40px);
  --gap: clamp(16px, 2.2vw, 28px);
  --tap: 44px;
  --radius: 4px;
  --rail: 0px;
  --rail-h: 0px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 520px at 68% -120px, rgba(240, 160, 32, 0.10), transparent 70%),
    linear-gradient(#11151a, var(--shop) 520px);
  background-color: var(--shop);
  background-repeat: no-repeat;
  color: var(--ink);
  font: 400 1rem/1.55 var(--body);
  min-height: 100vh;
  padding-left: var(--rail);
  padding-bottom: var(--rail-h);
}
img, video, canvas, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--ink); text-decoration-color: var(--amber); text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
a:hover { color: #fff; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; letter-spacing: 0.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 7vw, 4.75rem); font-weight: 900; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.5rem; }
p { margin: 0; }
p + p { margin-top: 0.75em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #fff; outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--amber); color: var(--amber-ink); }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--amber); color: var(--amber-ink); padding: 12px 16px; font-weight: 600; border-radius: var(--radius); }
.skip:focus { top: 12px; }
.muted, .hint { color: var(--ink-2); }
.hint, .source, .fine { font-size: 0.875rem; }
.source { color: var(--ink-2); }
.source a { color: var(--ink-2); }
.empty { color: var(--ink-2); padding: 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.notice { margin: var(--pad); padding: 16px; border: 1px solid var(--line-strong); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* ───────── Controls ───────── */
.btn, .chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--steel-2); color: var(--ink);
  font: 600 0.9375rem/1 var(--body); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.12s, border-color 0.12s;
}
.btn:hover, .chip:hover { background: #29323a; border-color: #566370; color: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.55; cursor: default; }
.btn-primary { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }
.btn-primary:hover { background: #ffb83d; border-color: #ffb83d; color: var(--amber-ink); }
.btn-quiet { background: transparent; }
.btn-icon { width: var(--tap); padding: 0; }
.btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn[aria-pressed="true"], .chip[aria-pressed="true"], .chip[aria-current] { border-color: var(--amber); box-shadow: inset 0 -3px 0 var(--amber); color: #fff; }
.chip { background: transparent; font-weight: 500; }
.chip span { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.fields { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 16px; margin: 16px 0; }
.inline-field { display: grid; gap: 4px; min-width: min(100%, 220px); }
.inline-field.grow { flex: 1 1 260px; }
.inline-field label, fieldset legend { font-size: 0.875rem; color: var(--ink-2); }
input[type="search"], input[type="text"], select, textarea {
  min-height: var(--tap); width: 100%; padding: 8px 12px;
  background: #0b0e11; border: 1px solid var(--line-strong); border-radius: var(--radius);
}
input::placeholder, textarea::placeholder { color: var(--ink-3); }
textarea { resize: vertical; line-height: 1.5; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 4px 10px; align-items: start; padding: 10px 0; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--amber); }
.check .hint { grid-column: 2; }
fieldset { border: 0; margin: 8px 0 0; padding: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 0 20px; }
.checks .check { grid-template-columns: 24px auto; }
details > summary { cursor: pointer; min-height: var(--tap); display: flex; align-items: center; gap: 8px; font-weight: 600; }
details > summary::marker { content: ""; }
details > summary::before { content: ""; width: 9px; height: 9px; border-right: 2.5px solid var(--amber); border-bottom: 2.5px solid var(--amber); transform: rotate(-45deg); transition: transform 0.15s; flex: none; }
details[open] > summary::before { transform: rotate(45deg); }

/* ───────── Masthead ───────── */
.masthead { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; padding: 10px var(--pad); max-width: 1400px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); font: 800 1.375rem/1 var(--display); letter-spacing: 0.02em; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.brand svg { color: var(--amber); flex: none; }
/* The nav never wraps or hides: when space is tight it scrolls sideways. */
.mainnav { flex: 1 1 20rem; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.mainnav::-webkit-scrollbar { display: none; }
.mainnav ul { display: flex; gap: 2px; width: max-content; }
.mainnav a { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 0 12px; text-decoration: none; font-weight: 500; color: var(--ink-2); border-bottom: 3px solid transparent; white-space: nowrap; }
.mainnav a:hover { color: #fff; }
.mainnav a:focus-visible { outline-offset: -3px; }
.mainnav a[aria-current="page"] { color: #fff; border-bottom-color: var(--amber); }
.nav-live { font: 600 0.6875rem/1 var(--body); letter-spacing: 0.04em; text-transform: uppercase; background: var(--live); color: #1a0705; padding: 3px 6px; border-radius: 2px; }
.find { display: flex; gap: 8px; margin-left: auto; min-width: 0; flex: 0 1 auto; }
.find input { width: clamp(7rem, 20vw, 18rem); min-width: 0; }
@media (max-width: 1099px) {
  .mainnav { order: 3; flex-basis: 100%; margin: 0 calc(var(--pad) * -1); padding: 0 calc(var(--pad) - 12px); border-bottom: 1px solid var(--line); }
  .find input { width: clamp(7rem, 34vw, 15rem); }
}
@media (max-width: 559px) {
  .brand { font-size: 1.125rem; }
  .find button { display: none; }
}

.preview-banner { background: var(--postponed); color: #1c1600; font-weight: 600; text-align: center; padding: 8px var(--pad); }

/* ───────── Panels ───────── */
main { max-width: 1400px; margin: 0 auto; padding: 0 var(--pad) 48px; outline: none; }
.panel { display: grid; gap: clamp(28px, 4vw, 48px); padding-top: clamp(12px, 2vw, 24px); }
.panel-head { display: grid; gap: 10px; padding-top: clamp(8px, 2vw, 24px); }
.panel-head p { max-width: 68ch; color: var(--ink-2); font-size: 1.0625rem; }
.block { display: grid; gap: 14px; min-width: 0; }
.block-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 20px; padding-bottom: 10px; border-bottom: 1px solid var(--line-strong); }
.block-head h2 .muted { font: 500 1rem/1 var(--body); letter-spacing: 0; margin-left: 8px; }
.block-head p { flex-basis: 100%; }
.duo { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.duo:not(:has(> :not([hidden]))) { display: none; }

/* ───────── Home: Today beside the bay ───────── */
.shopfront { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) {
  .shopfront { grid-template-columns: minmax(min(330px, 40%), 28%) minmax(0, 1fr); align-items: stretch; }
  /* The bay takes whatever height Today needs, so the two always finish level. */
  .bay { grid-template-rows: minmax(0, 1fr) auto auto; }
  .bay .bay-stage { aspect-ratio: auto; min-height: 420px; height: 100%; }
}

/* Today reserves its usual height before the scores arrive, so the C8 below (phone) or beside
   (desktop) does not jump when they do. */
.today { background: var(--steel); border: 1px solid var(--line); border-top: 4px solid var(--amber); border-radius: var(--radius); padding: clamp(16px, 2vw, 24px); display: flex; flex-direction: column; gap: 14px; min-width: 0; min-height: 37rem; }
.today .jump { margin-top: auto; }
.today-head { display: grid; gap: 2px; }
.today-head h2 { display: grid; }
.today-weekday { font: 800 1.25rem/1.1 var(--display); letter-spacing: 0.04em; color: var(--ink-2); text-transform: uppercase; }
.today-day { font: 900 clamp(2.75rem, 5vw, 4rem)/0.95 var(--display); text-transform: uppercase; }
.today-zone { font-size: 0.875rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.today-lead { font-size: 1.125rem; font-weight: 500; line-height: 1.35; padding: 12px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.today-lead[data-kind="live"] { color: #fff; }
.today-lead[data-kind="unavailable"] { color: var(--ink-2); }
.today-new h3 { font-size: 1.375rem; display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.count { font: 600 0.75rem/1 var(--body); background: var(--amber); color: var(--amber-ink); padding: 4px 7px; border-radius: 2px; letter-spacing: 0; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; }
.jump .btn { flex: 1 1 auto; }

@media (max-width: 999px) {
  /* Phone and tablet: keep Today short so the C8 starts on the first screen. */
  .today { gap: 8px; padding: 14px 16px; min-height: 27.5rem; }
  .today-head h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; }
  .today-weekday { font-size: 1.125rem; }
  .today-day { font-size: 2.25rem; }
  .today-lead { padding: 8px 0; font-size: 1rem; }
  .today:has(.games li) .today-lead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }   /* the first game row already says it */
  .today:has(.games li) .nextup { display: none; }
  .today .games li { padding: 7px 0; }
  .today .game-line { font-size: 1.375rem; }
  .today-new h3 { font-size: 1.125rem; margin-bottom: 0; }
  .newlist li:nth-child(n+2) { display: none; }
  .newlist a { padding: 6px 0; }
  .jump .btn { padding: 0 10px; }
}

/* Game rows: status shape and word, the line, then when. Used on Today and on Sports. */
.games { display: grid; }
.games:empty { display: none; }
.games li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: center; }
.games li:last-child { border-bottom: 0; }
.game-line { font: 800 1.5rem/1.1 var(--display); letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.game-line a { text-decoration: none; }
.game-line a:hover { text-decoration: underline; text-decoration-color: var(--amber); }
.game-meta { grid-column: 2; font-size: 0.875rem; color: var(--ink-2); }
.games-wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.games-wide li { background: var(--steel); border: 1px solid var(--line); border-left: 4px solid var(--team, var(--line-strong)); border-radius: var(--radius); padding: 14px 16px; }
.games-wide li:last-child { border-bottom: 1px solid var(--line); }
.games-wide .game-line { font-size: 1.75rem; }

.st { display: inline-flex; align-items: center; gap: 7px; font: 600 0.75rem/1 var(--body); text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; min-width: 7.4em; }
.st::before { content: ""; width: 11px; height: 11px; flex: none; }
.st[data-status="live"] { color: var(--live); }
.st[data-status="live"]::before { background: var(--live); border-radius: 50%; animation: pulse 1.6s ease-in-out infinite; }
.st[data-status="was-live"] { color: var(--ink-2); }
.st[data-status="was-live"]::before { border: 2px dashed var(--live); border-radius: 50%; }
.st[data-status="scheduled"] { color: var(--scheduled); }
.st[data-status="scheduled"]::before { border: 2px solid var(--scheduled); border-radius: 50%; }
.st[data-status="final"] { color: var(--ink); }
.st[data-status="final"]::before { background: var(--ink); }
.st[data-status="postponed"], .st[data-status="delayed"], .st[data-status="suspended"], .st[data-status="canceled"] { color: var(--postponed); }
.st[data-status="postponed"]::before, .st[data-status="delayed"]::before, .st[data-status="suspended"]::before, .st[data-status="canceled"]::before { background: var(--postponed); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.st[data-status="unknown"] { color: var(--ink-2); }
.st[data-status="unknown"]::before { border: 2px dashed var(--ink-3); border-radius: 50%; }
@keyframes pulse { 50% { opacity: 0.35; } }

.nextup { display: grid; gap: 6px; font-size: 0.9375rem; }
.nextup li { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.nextup b { font-weight: 600; }
.nextup span { color: var(--ink-2); }
.fixture-flag { display: inline-block; background: var(--postponed); color: #1c1600; font-weight: 600; padding: 2px 8px; border-radius: 2px; margin-right: 6px; }

.newlist { display: grid; }
.newlist li { border-top: 1px solid var(--line); }
.newlist a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; padding: 10px 0; text-decoration: none; align-items: center; min-height: var(--tap); }
.newlist a:hover b { text-decoration: underline; text-decoration-color: var(--amber); }
.newlist a:not(:has(img)) { grid-template-columns: minmax(0, 1fr); }
.newlist img { grid-row: span 2; width: 56px; height: 42px; object-fit: cover; border-radius: 2px; }
.newlist time { font-size: 0.8125rem; color: var(--ink-2); grid-column: -2; }
.newlist b { font-weight: 500; grid-column: -2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.newlist .tagnew { color: var(--amber); font-weight: 600; }

/* The bay: the one place the page spends its drama. */
.bay { display: grid; gap: 12px; min-width: 0; }
.bay-stage { position: relative; aspect-ratio: 16 / 9; background: #090b0e; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.bay-stage > * { position: absolute; inset: 0; margin: 0; }
.bay-poster { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; touch-action: pan-y; }
.bay-stage[data-view="render"] .bay-poster { cursor: ew-resize; }
.bay-3d { width: 100%; height: 100%; }
.c8-canvas { display: block; width: 100%; height: 100%; cursor: grab; outline-offset: -4px; }
.c8-canvas:active { cursor: grabbing; }
.bay-photo { background: #06080a; }
.bay-photo img { width: 100%; height: 100%; object-fit: contain; }
.bay-tag, .bay-progress { inset: auto auto 12px 12px; max-width: calc(100% - 24px); background: rgba(9, 11, 14, 0.82); border: 1px solid var(--line-strong); padding: 6px 10px; font-size: 0.8125rem; border-radius: 2px; }
.bay-progress { inset: 12px 12px auto auto; border-color: var(--amber); }
@media (max-width: 999px) { .bay-stage { aspect-ratio: 4 / 3; } }
.pendant { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.pendant-row { display: flex; flex-wrap: wrap; gap: 8px; }
.bay-note { font-size: 0.875rem; color: var(--ink-2); min-height: 1.4em; }

/* Featured photos */
.strip { display: grid; gap: 14px; }
.strip-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line-strong); padding-bottom: 10px; }
.featured { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.featured a, .gallery a { position: relative; display: block; background: var(--steel); border-radius: var(--radius); overflow: hidden; text-decoration: none; }
.featured img, .gallery img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--steel-2); }
.featured figcaption, .gallery figcaption { padding: 10px 12px; font-size: 0.9375rem; }
.featured figure, .gallery figure { margin: 0; }
.featured a:hover img, .gallery a:hover img { filter: brightness(1.12); }
.archive, .events, .notes, .plate { background: var(--steel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 2vw, 24px); display: grid; gap: 12px; align-content: start; }
.archive a { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 16px; text-decoration: none; align-items: center; }
.archive img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; }
.eventlist li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 4px 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.eventlist .when { font: 800 1.375rem/1 var(--display); text-transform: uppercase; grid-row: span 2; }
.eventlist .when small { display: block; font: 500 0.8125rem/1.2 var(--body); color: var(--ink-2); text-transform: none; }

/* Directory: a plain index with one live fact per line. */
.directory { display: grid; gap: 4px; }
.dir { border-top: 1px solid var(--line-strong); }
.dir a { display: grid; grid-template-columns: minmax(8.5rem, 22%) minmax(0, 1fr); gap: 4px 20px; align-items: baseline; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; min-height: var(--tap); }
.dir a:hover { background: var(--steel); }
.dir b { font: 800 1.625rem/1 var(--display); letter-spacing: 0.01em; }
.dir a:hover b { color: var(--amber); }
.dir span { color: var(--ink-2); }
@media (max-width: 559px) { .dir a { grid-template-columns: 1fr; } }

.plate-lead { font: 600 1.5rem/1.2 var(--display); letter-spacing: 0.01em; max-width: 30ch; }
.plate details p { color: var(--ink-2); max-width: 66ch; }

/* ───────── Sports ───────── */
.teams { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 8px; }
.teams .chip { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; min-height: 60px; padding: 8px 14px; border-left: 4px solid var(--team, var(--line-strong)); background: var(--steel); }
.teams .chip b { font: 800 1.25rem/1 var(--display); }
.teams .chip small { color: var(--ink-2); font-size: 0.75rem; }
.teamrows { display: grid; }
.teamrow { display: grid; grid-template-columns: minmax(9rem, 1.1fr) minmax(0, 2fr) auto; gap: 6px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.teamrow h3 { font-size: 1.5rem; display: flex; align-items: center; gap: 10px; }
.teamrow h3::before { content: ""; width: 6px; height: 1.1em; background: var(--team, var(--line-strong)); }
.teamrow .rec { color: var(--ink-2); font-size: 0.9375rem; }
.teamrow .facts { display: grid; gap: 2px; font-size: 0.9375rem; }
.teamrow .facts b { font-weight: 600; }
.teamrow .links { display: flex; gap: 8px; }
@media (max-width: 799px) { .teamrow { grid-template-columns: 1fr; } }

.rundown { background: var(--steel); border-left: 4px solid var(--amber); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; display: grid; gap: 8px; }
.rundown h2 { font-size: 1.375rem; }
.rundown p { max-width: 72ch; }
.rundown small { color: var(--ink-2); }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs:empty { display: none; }
.feed { display: grid; }
.feed-item { display: grid; gap: 4px; padding: 14px 0 14px 14px; border-bottom: 1px solid var(--line); border-left: 3px solid var(--tick, transparent); text-decoration: none; }
a.feed-item:hover .feed-title-text { text-decoration: underline; text-decoration-color: var(--amber); }
.feed-title-text { font-weight: 500; font-size: 1.0625rem; line-height: 1.35; max-width: 80ch; }
.feed-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.8125rem; color: var(--ink-2); }
.skeleton { height: 58px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent) 0 0 / 200% 100%; }
.state { display: grid; gap: 12px; justify-items: start; padding: 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--ink-2); }

/* ───────── Corvettes ───────── */
.cars { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.car { background: var(--steel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; scroll-margin-top: 16px; }
.car-photo { margin: 0; position: relative; }
.car-photo img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.car-photo figcaption { position: absolute; left: 10px; bottom: 10px; background: rgba(9, 11, 14, 0.82); padding: 5px 9px; font-size: 0.8125rem; border-radius: 2px; }
.car-nophoto { aspect-ratio: 16 / 10; display: grid; place-content: center; text-align: center; gap: 6px; padding: 20px; color: var(--ink-2); background: repeating-linear-gradient(135deg, #12161a 0 14px, #151a1f 14px 28px); }
.car-nophoto b { font: 900 clamp(4rem, 10vw, 6.5rem)/0.9 var(--display); color: var(--line-strong); }
.car-body { padding: clamp(16px, 2vw, 24px); display: grid; gap: 10px; align-content: start; }
.car-body .yr { font: 900 3rem/0.9 var(--display); color: var(--amber); }
.specs { display: flex; flex-wrap: wrap; gap: 6px; }
.specs li { border: 1px solid var(--line-strong); padding: 3px 9px; font-size: 0.875rem; border-radius: 2px; }

/* Shop log: laid out like a maintenance form, one write-up per row. */
.log { border-top: 2px solid var(--ink-3); counter-reset: writeup; }
.log > li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) minmax(0, 1.2fr); gap: 6px 20px; padding: 16px 0; border-bottom: 1px solid var(--line-strong); scroll-margin-top: 16px; }
.log > li:target, .log > li.is-target { background: rgba(240, 160, 32, 0.08); box-shadow: -12px 0 0 rgba(240, 160, 32, 0.08), 12px 0 0 rgba(240, 160, 32, 0.08); }
.log .k { display: block; font-size: 0.8125rem; color: var(--ink-2); margin-bottom: 2px; }
.log b { font-weight: 600; font-size: 1.0625rem; }
.log .meta { grid-column: 2 / -1; font-size: 0.875rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.sym { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; align-self: start; }
.sym::before { content: ""; width: 26px; height: 26px; border: 2px solid currentColor; flex: none; background-repeat: no-repeat; background-position: center; }
.sym[data-status="open"] { color: var(--live); }
.sym[data-status="open"]::before { background-image: linear-gradient(to top right, transparent calc(50% - 2px), currentColor calc(50% - 2px), currentColor calc(50% + 2px), transparent calc(50% + 2px)); }
.sym[data-status="planned"] { color: var(--scheduled); }
.sym[data-status="planned"]::before { background-image: linear-gradient(currentColor, currentColor); background-size: 14px 3px; }
.sym[data-status="fixed"] { color: var(--fixed); }
.sym[data-status="fixed"]::before { background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor); background-size: 3px 14px, 8px 3px; background-position: 14px 4px, 5px 15px; transform: rotate(40deg) scale(0.85); border: 0; outline: 2px solid currentColor; outline-offset: 2px; border-radius: 50%; }
@media (max-width: 799px) { .log > li { grid-template-columns: 1fr; } .log .meta { grid-column: 1; } }

/* ───────── Photos ───────── */
.albums { display: flex; flex-wrap: wrap; gap: 8px; }
.albums:empty { display: none; }
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.gallery .kind, .featured .kind { position: absolute; left: 8px; top: 8px; background: rgba(9, 11, 14, 0.82); padding: 3px 8px; font-size: 0.75rem; border-radius: 2px; }
.gallery .draft { background: var(--postponed); color: #1c1600; font-weight: 600; }
.gallery figcaption small { display: block; color: var(--ink-2); font-size: 0.8125rem; margin-top: 2px; }

.lightbox { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: #06080a; color: var(--ink); }
.lightbox[open] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); }
.lightbox::backdrop { background: #06080a; }
.lb-frame { display: grid; place-items: center; min-height: 0; min-width: 0; padding: 12px; }
.lb-frame img { max-width: 100%; max-height: calc(100dvh - 24px); width: auto; height: auto; object-fit: contain; }
.lb-side { display: grid; align-content: start; gap: 12px; padding: 24px; background: var(--steel); border-left: 1px solid var(--line); overflow-y: auto; }
.lb-kind { font-size: 0.8125rem; color: var(--amber); font-weight: 600; }
.lb-caption { font: 600 1.375rem/1.25 var(--body); letter-spacing: 0; }
.lb-meta { color: var(--ink-2); font-size: 0.9375rem; }
.lb-links { display: grid; gap: 4px; }
.lb-links a { display: inline-flex; min-height: 36px; align-items: center; }
@media (max-width: 799px) {
  .lightbox[open] { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .lb-frame img { max-height: 100%; }
  .lb-side { border-left: 0; border-top: 1px solid var(--line); padding: 16px; max-height: 46dvh; }
}

/* ───────── AI & Me ───────── */
.journal { display: grid; gap: 16px; max-width: 980px; }
.journal > p { max-width: 70ch; }
.dateline { color: var(--ink-2); font-size: 0.9375rem; }
.projects { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.project { background: var(--steel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 2vw, 24px); display: grid; gap: 10px; align-content: start; scroll-margin-top: 16px; }
.project h3 { font-size: 1.875rem; }
.project ul { list-style: disc; padding-left: 1.2em; color: var(--ink-2); }
.status-line { color: var(--amber); font-weight: 600; font-size: 0.9375rem; }
.cycle { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; counter-reset: step; }
.cycle li { counter-increment: step; border-top: 3px solid var(--line-strong); padding-top: 8px; font-weight: 500; }
.cycle li::before { content: counter(step); font: 900 2rem/1 var(--display); color: var(--amber); display: block; }

/* ───────── Creative ───────── */
.reel { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.reel li { display: grid; gap: 6px; scroll-margin-top: 16px; }
.reel .playbtn { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--steel-2); cursor: pointer; }
.reel .playbtn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel .playbtn::after { content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px; border-radius: 50%; background: var(--amber); }
.reel .playbtn .tri { position: absolute; left: 50%; top: 50%; margin: -12px 0 0 -7px; border-left: 20px solid var(--amber-ink); border-top: 12px solid transparent; border-bottom: 12px solid transparent; z-index: 1; }
.reel .playbtn.no-thumb { background: repeating-linear-gradient(135deg, #12161a 0 14px, #151a1f 14px 28px); }
.reel iframe, .reel video { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); background: #000; display: block; }
.reel b { font-weight: 500; }
.reel .ext { font-size: 0.875rem; color: var(--ink-2); }
.kit { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.kit h3 { font-size: 1.375rem; padding-bottom: 6px; border-bottom: 1px solid var(--line-strong); margin-bottom: 6px; }
.kit li { padding: 5px 0; color: var(--ink-2); }

/* ───────── Social ───────── */
.channels { display: grid; gap: var(--gap); }
.channel-group { display: grid; gap: 10px; }
.channel-group > p { color: var(--ink-2); }
.channel-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.channel { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 14px 16px; background: var(--steel); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; min-height: 64px; }
.channel:hover { border-color: var(--amber); }
.channel b { font: 800 1.375rem/1 var(--display); }
.channel span { color: var(--ink-2); font-size: 0.9375rem; grid-column: 1; }
.channel i { grid-row: 1 / span 2; grid-column: 2; font-style: normal; color: var(--ink-2); font-size: 0.8125rem; }

/* ───────── Search results ───────── */
.results { display: grid; }
.results a { display: grid; grid-template-columns: 6.5rem 56px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); text-decoration: none; min-height: 60px; }
.results a:hover { background: var(--steel); }
.results .type { font-size: 0.8125rem; color: var(--amber); font-weight: 600; }
.results img { width: 56px; height: 42px; object-fit: cover; border-radius: 2px; }
.results b { font-weight: 500; }

/* ───────── Footer ───────── */
.foot { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line-strong); display: grid; gap: 10px; color: var(--ink-2); }
.foot .fine { max-width: 90ch; }
.prefs-body { padding: 4px 0 16px 17px; display: grid; gap: 2px; max-width: 640px; color: var(--ink); }

/* ───────── Motion ───────── */
.panel.is-entering { animation: enter 0.22s ease-out; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
body.efficient *, body.efficient *::before, body.efficient *::after { animation: none !important; transition: none !important; }
