/* Below The Show — single design system
   Cream paper. Ink type. Clay stitch. Locked ice/fire frames.
   No dark theme. No scoreboard chrome. No pill soup. */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Source+Sans+3:wght@400;600;700&family=IBM+Plex+Mono:wght@400;600&display=swap");

:root {
  --paper: #F4EFE6;
  --surface: #FFFAF3;
  --ink: #1A1A1A;
  --mute: #6B645C;
  --hairline: #D9D1C5;
  --stitch: #9C3B2D;
  --ember: #E03512;
  --ember-deep: #7A1A08;
  --ice: #1E6FD0;
  --ice-pale: #8EC4F0;
  --ice-deep: #0B3A7A;
  --official: #2C6B3F;
  --amber: #A15C12;
  --error: #8B1E1E;
  --focus: 2px solid var(--stitch);
  --max: 1120px;
  --radius: 0;
  --font-display: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --font-sans: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html { color-scheme: light only; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--stitch); }
:focus-visible { outline: var(--focus); outline-offset: 2px; }
.visually-hidden, .header-search label {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}

.skip-link {
  position: absolute; left: 16px; top: -80px;
  background: var(--stitch); color: var(--paper);
  padding: 8px 12px; z-index: 200; font-weight: 700;
}
.skip-link:focus { top: 8px; }

.kill-banner {
  background: var(--paper);
  color: var(--error);
  border-bottom: 1px solid var(--hairline);
  text-align: center;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.kill-banner[hidden] { display: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
}
.wordmark {
  display: flex; flex-direction: column; gap: 6px;
  align-items: flex-start;
  text-decoration: none; color: var(--ink);
}
.wordmark .masthead-logo { height: 52px; width: auto; }
.wordmark .stitch { width: 36px; height: 2px; background: var(--stitch); }
/* A11 bat-T mark + typeset: row for mark+type; stitch stays below via column */
.wordmark-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.wordmark-mark {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}
.wordmark-type {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.primary-nav ul {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  list-style: none; margin: 0; padding: 0; justify-content: center;
}
.primary-nav a {
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}
.primary-nav a[aria-current="page"],
.primary-nav a:hover { color: var(--stitch); border-bottom-color: var(--stitch); }

.search-wrap { position: relative; min-width: 220px; }
.search-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--ink);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  padding: 10px 12px;
  min-height: 44px;
}
.search-input:focus { border-color: var(--stitch); outline: none; box-shadow: 0 0 0 1px var(--stitch); }
.search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px);
  background: var(--surface); border: 1px solid var(--ink);
  list-style: none; margin: 0; padding: 0; z-index: 90; max-height: 360px; overflow: auto;
}
.search-results[hidden] { display: none; }
.search-results a { display: block; padding: 10px 12px; text-decoration: none; }
.search-results a:hover, .search-results a[aria-selected="true"] { background: var(--paper); color: var(--stitch); }
.search-results .meta { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--mute); }

.site-main { max-width: var(--max); margin: 0 auto; padding: 32px 20px 80px; }
.site-footer {
  max-width: var(--max); margin: 0 auto;
  padding: 32px 20px 48px;
  border-top: 1px solid var(--hairline);
  color: var(--mute); font-size: 0.88rem;
}
.legal-nav { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.legal-nav a { color: var(--mute); }

.page-title, .wire-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  margin: 0;
}
.tagline, .wire-sub { color: var(--mute); margin: 8px 0 28px; }
.staging-note, .staging-mark, .mode-chip {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--amber);
}
.wire-heading-row { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.wire-date {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--stitch);
}

/* Wire */
.wire-toolbar {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px;
}
.wire-toolbar button {
  background: transparent; border: 1px solid var(--hairline);
  font: inherit; font-size: 0.75rem; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 6px 10px; cursor: pointer; color: var(--mute);
}
.wire-toolbar button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
.wire-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.wire-table th, .wire-table td {
  text-align: left; vertical-align: top;
  padding: 12px 10px 12px 0;
  border-bottom: 1px solid var(--hairline);
}
.wire-table thead th {
  position: sticky; top: 72px;
  background: var(--paper);
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mute); border-bottom: 1px solid var(--ink);
}
.wire-table .col-time, .wire-table .col-org, .wire-table .col-from, .wire-table .col-to {
  font-family: var(--font-mono); font-size: 0.8rem; white-space: nowrap;
}
.wire-table .col-player { font-weight: 700; }
.wire-table .col-player a { text-decoration: none; }
.wire-table tbody tr:hover td { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.section-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); }

/* Locked player card */
.player-folder {
  background: var(--surface);
  padding: 28px;
  border: 1px solid var(--ink);
  position: relative;
}
.player-folder.is-hot,
.player-folder.is-cold {
  border: 10px solid transparent;
  background:
     linear-gradient(var(--surface), var(--surface)) padding-box,
     var(--frame) border-box;
  box-shadow: 0 18px 40px rgba(26, 26, 26, 0.08);
}
.player-folder.is-hot {
  --frame: repeating-conic-gradient(
     from 12deg,
     #7A1A08 0 8deg,
     #E03512 8deg 14deg,
     #FF6A3D 14deg 18deg,
     #C43A12 18deg 24deg
  );
}
.player-folder.is-cold {
  --frame: repeating-conic-gradient(
     from 8deg,
     #0B3A7A 0 7deg,
     #1E6FD0 7deg 12deg,
     #8EC4F0 12deg 16deg,
     #4A9BE0 16deg 22deg
  );
}
.player-folder.is-hot { filter: drop-shadow(0 0 0.5px #E03512); }
.player-folder.is-cold { filter: drop-shadow(0 0 0.5px #1E6FD0); }

.dossier {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  align-items: start;
}
.dossier-photo {
  width: 140px; height: 176px;
  border: 1px solid var(--ink);
  background: var(--paper);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.dossier-photo img { width: 100%; height: 100%; object-fit: cover; }
.monogram {
  font-family: var(--font-display); font-weight: 700; font-size: 2rem; letter-spacing: 0.04em;
}
.player-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em; margin: 0 0 6px; line-height: 1.05;
}
.player-meta {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mute); margin: 0 0 16px;
}
.heat-mark { margin-left: 0.2em; font-style: normal; }
.heat-hot { color: var(--ember); }
.heat-cold { color: var(--ice); }

.rates-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rates-table th, .rates-table td { padding: 8px 12px 8px 0; text-align: left; border-bottom: 1px solid var(--hairline); }
.rates-table thead th {
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute);
}
.rates-table tbody th { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); width: 4.5rem; }
.rates-table td { font-family: var(--font-mono); }
.rates-table td.is-empty { color: var(--mute); }

.savant-row {
  margin-top: 16px; padding-top: 12px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono); font-size: 0.88rem;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.savant-caption { color: var(--mute); letter-spacing: 0.04em; }

.dossier-below { margin-top: 32px; }
.tx-list { list-style: none; margin: 0; padding: 0; }
.tx-row {
  display: grid; grid-template-columns: 110px 1fr auto auto;
  gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hairline);
  font-size: 0.92rem;
}
.tx-date { font-family: var(--font-mono); font-size: 0.8rem; color: var(--mute); }
.conf-official { color: var(--official); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; }
.n-of-5 { font-family: var(--font-mono); font-size: 11px; color: var(--mute); }

/* Ranks */
.ranks-board { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ranks-board th, .ranks-board td { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--hairline); text-align: left; }
.ranks-board thead th {
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute);
  border-bottom: 1px solid var(--ink);
}
.ranks-board .rk { font-family: var(--font-mono); width: 3rem; color: var(--mute); }
.ranks-board .nm { font-weight: 700; }
.fev { font-family: var(--font-mono); }

.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--hairline); margin: 0 0 20px; }
.tabs button {
  background: none; border: 0; border-bottom: 2px solid transparent;
  font: inherit; font-weight: 600; color: var(--mute); padding: 10px 4px; cursor: pointer;
}
.tabs button[aria-selected="true"] { color: var(--stitch); border-bottom-color: var(--stitch); }
.tab-panel[hidden] { display: none; }

/* Watch + compare */
.bts-watch-list { list-style: none; margin: 0; padding: 0; }
.bts-watch-list li {
  display: grid; grid-template-columns: 28px 1fr auto auto;
  gap: 12px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--hairline);
}
.grip { cursor: grab; color: var(--mute); font-size: 1.1rem; user-select: none; }
.compare-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.compare-slot {
  min-height: 280px; border: 1px dashed var(--hairline); padding: 16px; background: var(--surface);
}

.bts-watch-btn, .ghost-btn {
  background: var(--surface); border: 1px solid var(--ink);
  font: inherit; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 10px 14px; min-height: 44px; cursor: pointer;
}
.bts-watch-btn[aria-pressed="true"] { border-color: var(--stitch); color: var(--stitch); }

.org-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.org-grid a {
  display: grid; place-items: center; min-height: 64px;
  border: 1px solid var(--hairline); text-decoration: none;
  font-family: var(--font-mono); font-weight: 600;
}
.org-grid a:hover { border-color: var(--ink); color: var(--stitch); }

.bts-bottom-nav { display: none; }
.kbar-hint { font-family: var(--font-mono); font-size: 11px; color: var(--mute); }

@media (max-width: 800px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .primary-nav { display: none; }
  .dossier { grid-template-columns: 88px 1fr; gap: 16px; }
  .dossier-photo { width: 88px; height: 110px; }
  .tx-row { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr 1fr; }
  .wire-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .wire-table, .wire-table tbody, .wire-table tr, .wire-table td { display: block; width: 100%; }
  .wire-table tr { padding: 14px 0; border-bottom: 1px solid var(--ink); }
  .wire-table .col-from::after { content: " → "; color: var(--mute); }
  .bts-bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: var(--surface); border-top: 1px solid var(--hairline);
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
    justify-content: space-around;
  }
  .bts-bottom-nav a {
    flex: 1; text-align: center; text-decoration: none;
    font-size: 0.55rem; letter-spacing: 0.06em; text-transform: uppercase;
    font-weight: 700; color: var(--mute); padding: 8px 2px;
  }
  .bts-bottom-nav a.is-active { color: var(--ink); }
  body { padding-bottom: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Forbidden: dark inversion */
@media (prefers-color-scheme: dark) {
  html, body { background: var(--paper); color: var(--ink); }
}


/* List-first (website-source-v4.3 / Addendum O) */
.list-hero { display: grid; gap: 8px; margin-bottom: 28px; }
.list-hero .lede { font-size: 1.15rem; max-width: 40rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0 28px; }
.cta-primary {
  background: var(--stitch); color: var(--paper); border: 1px solid var(--stitch);
  font: inherit; font-weight: 700; letter-spacing: 0.04em;
  padding: 12px 18px; min-height: 44px; text-decoration: none; cursor: pointer;
}
.cta-primary:hover { color: var(--paper); filter: brightness(1.05); }
.insert-form {
  display: grid; grid-template-columns: 2fr 1fr 6rem auto;
  gap: 8px; margin: 0 0 20px;
}
.insert-form input {
  border: 1px solid var(--ink); background: var(--surface);
  font: inherit; padding: 10px 12px; min-height: 44px;
}
.list-board { list-style: none; margin: 0; padding: 0; }
.list-row {
  display: grid;
  grid-template-columns: 28px 3rem minmax(8rem, 1.4fr) minmax(5rem, 0.8fr) minmax(12rem, 1.4fr) auto;
  gap: 10px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--hairline);
}
.list-row.is-dragging { opacity: 0.45; }
.list-row .rk { font-family: var(--font-mono); color: var(--mute); }
.list-row .nm { font-weight: 700; text-decoration: none; }
.list-row .meta { font-family: var(--font-mono); font-size: 0.75rem; color: var(--mute); }
.mirrors { display: flex; flex-wrap: wrap; gap: 6px; }
.delta {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em;
  text-transform: uppercase; border: 1px solid var(--hairline); padding: 3px 6px;
}
.delta.is-up { color: var(--official); border-color: var(--official); }
.delta.is-down { color: var(--stitch); border-color: var(--stitch); }
.delta.is-even, .delta.is-mute { color: var(--mute); }
.bts-live {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--paper); padding: 8px 14px;
  font-size: 0.85rem; z-index: 120; pointer-events: none;
}
html[data-sub="0"] .sub-only { opacity: 0.55; }
.subscribe-note { font-size: 0.95rem; color: var(--mute); max-width: 36rem; }

.print-crest { display: none; text-align: center; }
@media print {
  .site-header, .kill-banner, .cta-row, .insert-form, .no-print, .bts-bottom-nav, .ghost-btn, .grip { display: none !important; }
  .print-crest { display: block; margin-bottom: 24px; }
  .print-crest .wordmark-type { font-family: var(--font-display); font-size: 2rem; }
  .print-crest .dom { letter-spacing: 0.18em; text-transform: uppercase; font-size: 11px; color: var(--mute); }
  .list-row { grid-template-columns: 3rem 1fr 6rem; }
  .mirrors { display: none; }
}

@media (max-width: 800px) {
  .list-row {
    grid-template-columns: 28px 2.2rem 1fr;
    grid-template-areas: "grip rk nm" ". meta meta" ". mirrors mirrors";
  }
  .list-row .nm { grid-area: nm; }
  .list-row .meta { grid-area: meta; }
  .list-row .mirrors { grid-area: mirrors; }
  .insert-form { grid-template-columns: 1fr; }
}

/* Outbound card strip (Addendum P / website-source-v4.3) */
.outbound {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.outbound a { text-decoration: none; }
.outbound a:hover { text-decoration: underline; }


/* Addendum Q — 1st Bowman Chrome comps block */
.comp-block { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--hairline); }
.comp-kicker { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); margin: 0 0 4px; }
.comp-avg { font-family: var(--font-display); font-size: 2rem; margin: 0; letter-spacing: -0.03em; }
.comp-line { color: var(--mute); font-size: 0.9rem; margin: 4px 0 0; }

/* OWNER hero title link */
.list-hero .page-title a {
  color: inherit;
  text-decoration: none;
}
.list-hero .page-title a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}


/* Addendum R — All Players census directory */
.census-tools { display: flex; gap: 16px; align-items: baseline; margin: 12px 0 20px; flex-wrap: wrap; }
.census-tools .search-input { flex: 1; min-height: 44px; }
.table-wrap { overflow-x: auto; }
.census-table { width: 100%; border-collapse: collapse; }
.census-table th, .census-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--hairline); }
.census-table .mono, .mono { font-family: var(--font-mono); font-size: 0.85rem; color: var(--mute); }
.sort-btn {
  background: none; border: 0; font: inherit; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.68rem;
  color: var(--mute); cursor: pointer; padding: 0;
}
.sort-btn[aria-pressed="true"] { color: var(--ink); }
.star-btn {
  width: 44px; height: 44px; border: 0; background: transparent;
  font-size: 1.25rem; color: var(--mute); cursor: pointer; line-height: 1;
}
.star-btn[aria-pressed="true"] { color: var(--stitch); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}



/* Account / Sign in (staging client auth) */
.header-inner {
  grid-template-columns: auto 1fr auto auto;
}
.header-account {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 8px 12px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  align-self: center;
}
.header-account:hover { color: var(--stitch); border-color: var(--stitch); }
.header-account.is-signed-in {
  border-color: var(--stitch);
  color: var(--stitch);
}
.header-account.is-monthly {
  background: var(--stitch);
  color: var(--paper);
  border-color: var(--stitch);
}
.header-account.is-monthly:hover { color: var(--paper); filter: brightness(1.05); }

.account-main { max-width: 40rem; }
.account-lede { color: var(--mute); max-width: 36rem; }
.account-panel { margin-top: 24px; }
.auth-form { display: grid; gap: 16px; max-width: 28rem; }
.auth-form .field { display: grid; gap: 6px; }
.auth-form label { font-weight: 700; font-size: 0.9rem; }
.auth-form input {
  border: 1px solid var(--ink);
  background: var(--surface);
  font: inherit;
  padding: 10px 12px;
  min-height: 44px;
}
.field-hint { font-size: 0.82rem; color: var(--mute); margin: 0; }
.form-error {
  color: var(--error);
  font-weight: 600;
  margin: 0;
  font-size: 0.92rem;
}
.account-card {
  border: 1px solid var(--hairline);
  background: var(--surface);
  padding: 24px;
  display: grid;
  gap: 12px;
}
.account-email {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}
.plan-badge {
  display: inline-flex;
  width: fit-content;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--hairline);
  padding: 4px 10px;
  color: var(--mute);
}
.plan-badge.is-monthly {
  border-color: var(--stitch);
  color: var(--stitch);
}
.plan-badge.is-free { color: var(--mute); }
.staging-toggles { margin-top: 4px; }
.ghost-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.form-error[hidden] { display: none !important; }
.ghost-btn[aria-pressed="true"] {
  border-color: var(--stitch);
  color: var(--stitch);
}
.account-card .cta-row { flex-wrap: wrap; gap: 10px; }
.account-success {
  margin: 0 0 12px;
  color: var(--official);
  font-weight: 600;
  font-size: 0.95rem;
}

@media (max-width: 800px) {
  .header-inner { grid-template-columns: 1fr auto auto; }
  .header-account { justify-self: end; }
  .header-account:not(.is-signed-in) { font-size: 0.7rem; padding: 8px 10px; }
}

/* —— Baseball seam page breaks (OWNER redo+thick 2026-09-28 evening)
   STRAIGHT full-width dual groove + THICK clay-red V-stitches (~2.5×).
   Full width of main column / site-main — not a short centered strip. */
.seam-break {
  display: block;
  width: 100%;
  max-width: none;
  height: 48px;
  margin: var(--space-5, 40px) 0;
  border: 0;
  padding: 0;
  background: transparent url("../img/seam-break.svg?v=seam3") center / 100% 48px no-repeat;
  color: transparent;
  overflow: hidden;
}
.seam-break--wide { width: 100%; }
/* Full-bleed within .site-main padding box (edge to edge of content column) */
.site-main > .seam-break {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}
/* Auto seam above footer — full footer content width */
.site-footer {
  position: relative;
  padding-top: calc(var(--space-5, 40px) + 48px);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 48px;
  background: transparent url("../img/seam-break.svg?v=seam3") center / 100% 48px no-repeat;
  pointer-events: none;
}
/* Player cards */
.dossier + .dossier-below {
  margin-top: var(--space-4, 24px);
  padding-top: calc(var(--space-4, 24px) + 40px);
  position: relative;
}
.dossier + .dossier-below::before,
.dossier-below > section + section::before {
  content: "";
  display: block;
  width: 100%;
  height: 40px;
  margin: 0 0 var(--space-3, 16px);
  background: transparent url("../img/seam-break.svg?v=seam3") center / 100% 40px no-repeat;
  pointer-events: none;
}
.dossier-below > section + section {
  margin-top: var(--space-4, 24px);
  padding-top: 4px;
}
.dossier-below > section + section::before {
  margin-bottom: var(--space-3, 16px);
}


/* ==========================================================================
   PHONE REBUILD 2026-09-28 — phone-first ≤430 / tablet ≤800; desktop >800 unbroken
   Bottom tab bar, table UX, account taps, seams scale, empty states, PWA pad
   ========================================================================== */

/* Empty / unfinished — cream paper, never a blank void */
.bts-empty,
.empty-state {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--stitch);
  padding: 20px 18px;
  margin: 16px 0 24px;
  max-width: 36rem;
}
.bts-empty h2,
.bts-empty .bts-empty-title,
.empty-state .bts-empty-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--ink);
}
.bts-empty p,
.empty-state p,
.bts-empty-copy {
  margin: 0 0 14px;
  color: var(--mute);
  font-size: 0.98rem;
  line-height: 1.45;
}
.bts-empty .cta-row,
.empty-state .cta-row { margin: 0; }

/* Bottom nav: hidden on desktop; phone rules below */
.bts-bottom-nav { display: none; }

/* Sticky-col scroll helper (Consensus / All Players) */
.table-wrap,
.table-sticky {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin: 0 0 12px;
}

@media (max-width: 800px) {
  /* —— App shell —— */
  .bts-bottom-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: var(--surface);
    border-top: 1px solid var(--hairline);
    padding: 4px 2px calc(4px + env(safe-area-inset-bottom, 0px));
    justify-content: space-around;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-shadow: 0 -4px 16px rgba(26, 26, 26, 0.04);
  }
  .bts-bottom-nav a {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 2px;
    text-decoration: none;
    color: var(--mute);
    font-family: var(--font-sans);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    min-height: 52px;
    min-width: 0;
    -webkit-tap-highlight-color: transparent;
    line-height: 1.15;
    text-align: center;
  }
  .bts-bottom-nav a[aria-current="page"],
  .bts-bottom-nav a.is-active {
    color: var(--ink);
  }
  .bts-bottom-nav a[aria-current="page"] .bts-nav-mark,
  .bts-bottom-nav a.is-active .bts-nav-mark {
    background: var(--stitch);
  }
  .bts-nav-mark {
    width: 18px;
    height: 3px;
    background: transparent;
    border-radius: 0;
    flex-shrink: 0;
  }

  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    font-size: 17px;
    line-height: 1.45;
    -webkit-text-size-adjust: 100%;
  }
  .site-main {
    padding: 20px 16px calc(32px + env(safe-area-inset-bottom, 0px));
  }
  .site-footer {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }

  /* Hide desktop primary nav + header search on phone */
  .primary-nav { display: none !important; }
  .header-search,
  .site-header .search-wrap { display: none !important; }
  .header-inner {
    grid-template-columns: 1fr auto !important;
    gap: 12px;
    padding: 10px 14px;
  }
  .wordmark-mark { height: 40px; }
  .wordmark-type { font-size: 1rem; }
  .wordmark .masthead-logo { height: 44px; width: auto; }
  .header-account {
    font-size: 0.68rem;
    padding: 8px 10px;
    min-height: 40px;
  }

  /* Kill / staging banners — compact, don’t eat half the screen */
  .kill-banner {
    padding: 6px 12px;
    font-size: 11px;
    line-height: 1.3;
  }
  .staging-note, .staging-mark {
    font-size: 11px;
    margin-bottom: 10px;
  }

  /* Homepage hero + CTAs stack */
  .list-hero { gap: 6px; margin-bottom: 18px; }
  .list-hero .lede { font-size: 1.05rem; }
  .page-title, .wire-title {
    font-size: clamp(1.55rem, 7vw, 2.1rem);
  }
  .cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .cta-row .cta-primary,
  .cta-row .ghost-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
  }
  .wire-toolbar {
    gap: 6px;
  }
  .wire-toolbar button {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 0.72rem;
  }

  /* —— Seams: locked look, phone scale (no clip / no dominate) —— */
  .seam-break {
    height: 28px;
    margin: 24px 0;
    background-size: 100% 28px;
    max-width: 100%;
  }
  .site-footer {
    padding-top: calc(24px + 28px);
  }
  .site-footer::before {
    height: 28px;
    background-size: 100% 28px;
  }
  .dossier + .dossier-below {
    padding-top: calc(16px + 24px);
  }
  .dossier + .dossier-below::before,
  .dossier-below > section + section::before {
    height: 24px;
    background-size: 100% 24px;
  }

  /* —— Wire → stacked cards —— */
  .wire-table thead {
    position: absolute !important;
    width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
  }
  .wire-table,
  .wire-table tbody,
  .wire-table tr,
  .wire-table td {
    display: block;
    width: 100%;
  }
  .wire-table tr {
    border-bottom: 1px solid var(--ink);
    padding: 14px 0;
    margin: 0;
  }
  .wire-table tr:first-child {
    border-top: 1px solid var(--hairline);
  }
  .wire-table td {
    border: none;
    padding: 2px 0;
    white-space: normal;
  }
  .wire-table .col-time {
    font-size: 0.75rem;
    color: var(--mute);
  }
  .wire-table .col-org {
    display: inline;
    font-weight: 700;
    margin-right: 8px;
  }
  .wire-table .col-player {
    display: inline;
    font-size: 1.05rem;
    font-weight: 700;
  }
  .wire-table .col-from,
  .wire-table .col-to {
    display: inline;
    font-size: 0.9rem;
  }
  .wire-table .col-from::after {
    content: " → ";
    color: var(--mute);
  }
  .wire-table .col-note {
    margin-top: 6px;
    font-size: 0.95rem;
  }
  .wire-table tbody tr:hover td { background: transparent; }

  /* —— Consensus ranks: horizontal scroll + sticky name —— */
  .ranks-board {
    min-width: 560px;
    font-size: 0.9rem;
  }
  #fev-board .table-wrap,
  #fev-board {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .ranks-board th:nth-child(2),
  .ranks-board td:nth-child(2),
  .ranks-board .nm {
    position: sticky;
    left: 0;
    background: var(--paper);
    z-index: 2;
    width: 9.5rem;
    min-width: 9.5rem;
    max-width: 11rem;
    overflow: hidden;
    white-space: normal;
    box-shadow: 4px 0 8px -4px rgba(26, 26, 26, 0.12);
  }
  .ranks-board .nm a {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.25;
  }
  .ranks-board thead th:nth-child(2) {
    background: var(--paper);
    z-index: 3;
  }

  /* —— All Players census: scroll + sticky name (+ ★) —— */
  .census-table {
    min-width: 760px;
    font-size: 0.88rem;
  }
  .census-table th.col-name,
  .census-table td.col-name,
  .census-table th:nth-child(1),
  .census-table td:nth-child(1) {
    position: sticky;
    left: 0;
    background: var(--paper);
    z-index: 2;
    min-width: 11rem;
    box-shadow: 4px 0 8px -4px rgba(26, 26, 26, 0.12);
  }
  .census-table thead th.col-name,
  .census-table thead th:nth-child(1) {
    background: var(--paper);
    z-index: 3;
  }
  .census-tools {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .census-tools .search-input {
    width: 100%;
    font-size: 17px !important;
    min-height: 48px;
  }
  .star-btn { width: 44px; height: 44px; }

  /* —— Account: full-width taps —— */
  .account-main { max-width: none; }
  .auth-form {
    max-width: none;
    width: 100%;
    gap: 14px;
  }
  .auth-form input,
  .auth-form .cta-primary,
  .account-card .cta-primary,
  .account-card .ghost-btn {
    width: 100%;
    min-height: 48px;
    font-size: 17px;
  }
  .auth-form .cta-primary,
  .account-card .cta-row .cta-primary,
  .account-card .cta-row .ghost-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }
  .account-card { padding: 18px; }
  .account-card .cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
  }
  .tabs button {
    min-height: 44px;
    padding: 10px 6px;
    white-space: nowrap;
  }
  .form-error {
    font-size: 0.95rem;
    padding: 8px 0;
  }

  /* —— Player cards (when bts.css is linked) —— */
  .player-folder {
    padding: 16px;
    max-width: 100%;
    overflow: hidden;
  }
  .player-folder.is-hot,
  .player-folder.is-cold {
    border-width: 6px;
  }
  .dossier {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .dossier-photo {
    width: 96px;
    height: 120px;
  }
  .player-name {
    font-size: clamp(1.45rem, 6.5vw, 1.9rem);
    word-break: break-word;
  }
  .tx-row { grid-template-columns: 1fr; gap: 4px; }
  .rates-table { font-size: 0.88rem; }
  .rates-table th, .rates-table td { padding: 8px 6px 8px 0; }
  .compare-grid { grid-template-columns: 1fr; }
  .insert-form { grid-template-columns: 1fr; }
  .list-row {
    grid-template-columns: 28px 2.2rem 1fr;
    grid-template-areas: "grip rk nm" ". meta meta" ". mirrors mirrors";
  }
  .list-row .nm { grid-area: nm; }
  .list-row .meta { grid-area: meta; }
  .list-row .mirrors { grid-area: mirrors; }

  .search-input, .bts-search-focus {
    font-size: 17px !important;
    min-height: 48px;
  }

  .bts-a2hs {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 430px) {
  .bts-bottom-nav a {
    font-size: 0.52rem;
    letter-spacing: 0.04em;
    padding: 6px 1px;
  }
  .site-main { padding-left: 12px; padding-right: 12px; }
  .wordmark-type { font-size: 0.92rem; }
  .kill-banner { font-size: 10px; padding: 5px 8px; }
  .seam-break {
    height: 28px;
    background-size: 100% 28px;
    margin: 20px 0;
  }
  .site-footer { padding-top: calc(20px + 28px); }
  .site-footer::before {
    height: 28px;
    background-size: 100% 28px;
  }
  .dossier + .dossier-below { padding-top: calc(14px + 28px); }
  .dossier + .dossier-below::before,
  .dossier-below > section + section::before {
    height: 28px;
    background-size: 100% 28px;
  }
  .player-folder.is-hot,
  .player-folder.is-cold {
    border-width: 5px;
  }

  /* Consensus: same full-column horizontal-scroll treatment as All Players. */
  .ranks-board {
    min-width: 760px !important;
    width: max-content;
    font-size: 0.88rem;
  }
  .ranks-board,
  .ranks-board thead,
  .ranks-board tbody,
  .ranks-board tr,
  .ranks-board th,
  .ranks-board td {
    display: revert;
    width: auto;
  }
  .ranks-board thead {
    position: sticky !important;
    top: 0;
    clip: auto;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
  }
  #fev-board .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .ranks-board th:nth-child(2),
  .ranks-board td:nth-child(2),
  .ranks-board .nm {
    position: sticky;
    left: 0;
    background: var(--paper);
    z-index: 2;
    width: 9.5rem;
    min-width: 9.5rem;
    max-width: 11rem;
    overflow: hidden;
    white-space: normal;
    box-shadow: 4px 0 8px -4px rgba(26, 26, 26, 0.12);
    font-weight: 700;
  }
  .ranks-board thead th:nth-child(2) {
    z-index: 3;
    background: var(--paper);
  }

  /* All Players: full desktop columns + horizontal slide (OWNER live add-on) */
  .census-table {
    min-width: 760px !important;
    width: max-content;
    font-size: 0.88rem;
  }
  .census-table,
  .census-table thead,
  .census-table tbody,
  .census-table tr,
  .census-table th,
  .census-table td {
    display: revert;
    width: auto;
  }
  .census-table thead {
    position: sticky !important;
    top: 0;
    clip: auto;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
  }
  .site-main .table-wrap:has(#census),
  .site-main .table-wrap.table-sticky {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .census-table th.col-name,
  .census-table td.col-name {
    position: sticky;
    left: 0;
    background: var(--paper);
    z-index: 2;
    min-width: 11rem;
    box-shadow: 4px 0 8px -4px rgba(26, 26, 26, 0.12);
    font-weight: 700;
  }
  .census-table thead th.col-name {
    z-index: 3;
    background: var(--paper);
  }
  .census-table .nm-with-star {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
  }
  .census-table .nm-with-star a {
    white-space: nowrap;
  }
  .census-table .star-btn {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    font-size: 1.25rem;
    line-height: 1;
  }

}

/* OWNER All Players mobile columns — also reinforce ≤720 scroll path */
@media (max-width: 720px) {
  .site-main .table-wrap:has(#census),
  .site-main .table-wrap.table-sticky {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .census-table {
    min-width: 760px;
  }
  .census-table th.col-name,
  .census-table td.col-name {
    position: sticky;
    left: 0;
    background: var(--paper);
    z-index: 2;
  }
}



/* Desktop ≥721: bottom nav stays display:none; tables stay multi-column */
@media (min-width: 801px) {
  .bts-bottom-nav { display: none !important; }
}


/* HOME X + MOVES — home-moves-2026-09-29 */
.x-official { margin: 0 0 24px; }
.x-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0 8px;
}
.x-timeline-empty { padding: 12px 0; }
.x-post {
  background: var(--paper, #F4EFE6);
  border: 1px solid color-mix(in srgb, var(--ink, #1A1A1A) 14%, transparent);
  border-left: 3px solid var(--stitch, #9C3B2D);
  border-radius: 2px;
  padding: 12px 14px;
}
.x-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--mute, #5C584F);
}
.x-post-text {
  margin: 0;
  line-height: 1.45;
  color: var(--ink, #1A1A1A);
  white-space: pre-wrap;
}
.x-post-link { margin: 8px 0 0; font-size: 0.9rem; }
.x-handle {
  font-weight: 700;
  color: var(--ink, #1A1A1A);
  text-decoration: none;
}
.x-handle:hover { color: var(--stitch, #9C3B2D); text-decoration: underline; }
.x-org { color: var(--mute, #5C584F); font-size: 0.9rem; }
.x-roster { margin: 12px 0 24px; }
.x-roster-count { margin-bottom: 8px; }
.x-roster-toolbar { margin: 0 0 12px; }
.x-roster-filter {
  width: 100%;
  max-width: 28rem;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--ink, #1A1A1A) 22%, transparent);
  background: var(--paper, #F4EFE6);
  color: var(--ink, #1A1A1A);
  font: inherit;
  border-radius: 2px;
}
.x-roster-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px 12px;
}
.x-roster-item {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--paper, #F4EFE6) 88%, #fff);
  border: 1px solid color-mix(in srgb, var(--ink, #1A1A1A) 10%, transparent);
  border-radius: 2px;
}
.x-roster-item .x-tier {
  margin-left: auto;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--mute, #5C584F);
  border: 1px solid color-mix(in srgb, var(--stitch, #9C3B2D) 35%, transparent);
  padding: 1px 6px;
  border-radius: 999px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
@media (max-width: 720px) {
  .x-roster-list { grid-template-columns: 1fr; }
  .list-hero .cta-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .list-hero .cta-row > a { text-align: center; }
}


/* ---- HOME FEED LIVE 2026-09-29 — elite phone-first ---- */
.home-feed .feed-hero { margin-bottom: 8px; }
.home-feed .feed-hero .section-label {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute, #6B645C);
  margin: 0 0 6px;
}
.home-feed .feed-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 0 0 12px;
}
.home-feed .x-feed-honest {
  background: var(--paper, #F4EFE6);
  border: 1px solid color-mix(in srgb, var(--ink, #1A1A1A) 12%, transparent);
  border-left: 3px solid var(--stitch, #9C3B2D);
  border-radius: 2px;
  padding: 12px 14px;
  margin: 0 0 16px;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--ink, #1A1A1A) 4%, transparent);
}
.home-feed .x-timeline {
  margin: 0 0 8px;
}
.home-feed .x-timeline-empty {
  background: var(--paper, #F4EFE6);
  border: 1px dashed color-mix(in srgb, var(--ink, #1A1A1A) 18%, transparent);
  border-radius: 2px;
  padding: 20px 16px;
  text-align: left;
}
.home-feed .x-timeline-empty .bts-empty-title {
  font-size: 1.15rem;
  margin: 0 0 8px;
}
.home-feed #x-feed .x-account {
  background: var(--paper, #F4EFE6);
  border: 1px solid color-mix(in srgb, var(--ink, #1A1A1A) 10%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--ink, #1A1A1A) 10%, transparent);
  border-radius: 2px;
  padding: 14px 14px;
  margin: 0 0 8px;
  transition: border-color 0.15s ease;
}
.home-feed #x-feed .x-account:hover {
  border-color: color-mix(in srgb, var(--stitch, #9C3B2D) 45%, transparent);
}
.home-feed .x-feed-cta-row .ghost-btn {
  font-size: 0.82rem;
  padding: 6px 10px;
}
.home-feed .x-feed-toolbar {
  margin: 12px 0 14px;
}
.home-feed .x-feed-toolbar input[type="search"] {
  background: var(--paper, #F4EFE6);
  border-radius: 2px;
  padding: 10px 12px;
}
@media (max-width: 720px) {
  .home-feed .feed-hero .cta-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .home-feed .feed-hero .cta-row > a {
    text-align: center;
  }
  .home-feed .x-feed-cta-row {
    gap: 8px;
  }
}


/* PLAYERS-SCROLL-STARS-2026-09-29 — elite phone census */
@media (max-width: 800px) {
  body:has(#census) { overflow-x: hidden; }
  body:has(#census) .site-main { overflow: visible; }
  .table-wrap:has(#census),
  .table-wrap.table-sticky:has(#census) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
    scrollbar-width: thin;
  }
  .census-table .star-btn {
    appearance: none;
    -webkit-appearance: none;
    border-radius: 999px;
  }
  .census-table .star-btn:active { transform: scale(1.08); }
  .census-table .star-btn[aria-pressed="true"] { color: var(--stitch, #9C3B2D); }
}



/* Elite Home feed titles — www-elite-2026-09-29 */
.home-feed .feed-today-title {
  font-size: 1.75rem;
  margin: 0;
}
.home-feed .feed-writers-title {
  font-size: 1.5rem;
  margin-top: 8px;
}
.home-feed .feed-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
}
.home-feed .x-feed-meta { margin: 0; }

/* ---- Elite hamburger menu (mobile+desktop) — OWNER 2026-09-29 ---- */
.bts-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-left: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--ink, #1A1A1A) 16%, transparent);
  background: var(--paper, #F4EFE6);
  color: var(--ink, #1A1A1A);
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  z-index: 120;
}
.bts-menu-btn:hover,
.bts-menu-btn[aria-expanded="true"] {
  border-color: var(--stitch, #9C3B2D);
  color: var(--stitch, #9C3B2D);
}
.bts-menu-icon {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}
.bts-menu-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
}
.bts-menu-btn-label { line-height: 1; }
.bts-menu-scrim {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--ink, #1A1A1A) 42%, transparent);
  z-index: 200;
}
.bts-menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(22rem, 92vw);
  z-index: 210;
  pointer-events: none;
}
.bts-menu-drawer:not([hidden]) { pointer-events: auto; }
.bts-menu-panel {
  height: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--paper, #F4EFE6);
  border-left: 3px solid var(--stitch, #9C3B2D);
  box-shadow: -12px 0 40px color-mix(in srgb, var(--ink, #1A1A1A) 18%, transparent);
  padding: 18px 16px 96px;
}
.bts-menu-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: start;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--ink, #1A1A1A) 12%, transparent);
}
.bts-menu-kicker {
  grid-column: 1;
  margin: 0;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute, #6B645C);
}
.bts-menu-title {
  grid-column: 1;
  margin: 0;
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.6rem;
  color: var(--ink, #1A1A1A);
}
.bts-menu-close {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid color-mix(in srgb, var(--ink, #1A1A1A) 18%, transparent);
  background: transparent;
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--ink, #1A1A1A);
}
.bts-menu-close:hover { border-color: var(--stitch, #9C3B2D); color: var(--stitch, #9C3B2D); }
.bts-menu-section {
  margin: 18px 0 8px;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute, #6B645C);
}
.bts-menu-link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  min-height: 44px;
  padding: 12px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink, #1A1A1A) 10%, transparent);
  text-decoration: none;
  color: var(--ink, #1A1A1A);
}
.bts-menu-link:hover,
.bts-menu-link[aria-current="page"] {
  color: var(--stitch, #9C3B2D);
}
.bts-menu-link-label {
  font-weight: 700;
  font-size: 1.05rem;
}
.bts-menu-note {
  font-size: 0.78rem;
  color: var(--mute, #6B645C);
}
body.bts-menu-open { overflow: hidden; }
@media (min-width: 801px) {
  /* Desktop keeps primary-nav AND hamburger (Wire/overflow live here) */
  .bts-menu-btn { margin-left: 12px; }
  .header-inner { align-items: center; }
}
@media (max-width: 800px) {
  .bts-menu-btn-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .bts-menu-btn { padding: 10px; }
}
@media print {
  .bts-menu-btn, .bts-menu-drawer, .bts-menu-scrim { display: none !important; }
}

/* Drawer open state — cream paper panel */
.bts-menu-drawer[hidden],
.bts-menu-scrim[hidden] { display: none !important; }
.bts-menu-drawer:not([hidden]) .bts-menu-panel {
  animation: bts-menu-slide 160ms ease-out;
}
@keyframes bts-menu-slide {
  from { transform: translateX(12px); opacity: 0.6; }
  to { transform: translateX(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .bts-menu-drawer:not([hidden]) .bts-menu-panel { animation: none; }
}


/* ---- Home calm — OWNER FIX 2026-09-29 ---- */
.home-calm .home-build {
  margin: 8px 0 20px;
  text-align: left;
}
.home-calm .home-build .page-title {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
}
.home-calm .home-build .cta-row { margin: 0; }
.home-calm .feed-section-title {
  margin: 0 0 16px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}
.home-calm .x-feed-hero { margin: 0 0 32px; }
.home-calm .x-timeline { gap: 14px; }
.home-calm .x-timeline-empty {
  padding: 28px 0;
  border: none;
  background: transparent;
}
.home-calm .x-timeline-empty .bts-empty-copy {
  margin: 0;
  color: var(--mute, #6B645C);
  font-size: 1rem;
}
.home-calm .x-post {
  padding: 16px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink, #1A1A1A) 10%, transparent);
  background: transparent;
  box-shadow: none;
}
.home-calm .site-main { max-width: 40rem; }


/* ---- OWNER Home fix 2026-09-29 — Build My Rankings + Feed only ---- */
.home-feed .feed-hero {
  margin-bottom: 12px;
}
.home-feed .feed-hero .page-title {
  margin: 0 0 10px;
}
.home-feed .feed-hero .page-title a {
  color: inherit;
  text-decoration: none;
}
.home-feed .feed-hero .page-title a:hover {
  color: var(--stitch, #9C3B2D);
}
.home-feed .feed-section-title {
  font-size: 1.75rem;
  margin: 0 0 14px;
}
.home-feed .x-feed-hero {
  margin: 0 0 24px;
}
.home-feed .x-timeline {
  margin: 0;
}
.home-feed .x-timeline-empty {
  background: var(--paper, #F4EFE6);
  border: 1px dashed color-mix(in srgb, var(--ink, #1A1A1A) 18%, transparent);
  border-radius: 2px;
  padding: 20px 16px;
}
.home-feed .x-timeline-empty .bts-empty-title {
  font-size: 1.15rem;
  margin: 0 0 8px;
}
.home-feed .x-timeline-empty .bts-empty-copy {
  margin: 0;
  color: var(--mute, #6B645C);
}
@media (max-width: 720px) {
  .home-feed .feed-hero .cta-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .home-feed .feed-hero .cta-row > a {
    text-align: center;
  }
}


/* Home calm apply without .home-calm class too */
.home-feed .feed-hero .page-title { margin: 0 0 14px; font-size: clamp(1.75rem, 4vw, 2.35rem); }
.home-feed .feed-section-title { margin: 0 0 16px; font-size: clamp(1.35rem, 3vw, 1.75rem); }
.home-feed.home-calm .site-main,
.home-feed .site-main { max-width: 42rem; }



/* Organizational Depth grid */
.org-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; }
.org-grid a {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 10px; border: 1px solid var(--hairline); border-radius: 6px;
  text-decoration: none; color: var(--ink); background: var(--paper, #F4EFE6);
  min-height: 64px;
}
.org-grid a:hover { border-color: var(--ink); color: var(--stitch); }
.org-grid .org-code { font-family: var(--font-mono); font-size: 0.95rem; font-weight: 700; letter-spacing: 0.04em; }
.org-grid .org-name { font-size: 0.72rem; color: var(--mute); line-height: 1.25; }
@media (max-width: 640px) {
  .org-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
}


/* Organizational Depth tables — same sticky name+star / horizontal scroll as All Players */
@media (max-width: 900px) {
  body:has(#org-census) { overflow-x: hidden; }
  body:has(#org-census) .site-main { overflow: visible; }
  .table-wrap:has(#org-census),
  .table-wrap.table-sticky:has(#org-census) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}


/* Consensus board watchlist stars (OWNER 2026-09-29) */
.ranks-board .nm-with-star,
.ranks-board .col-name .nm-with-star {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
}
.ranks-board .star-btn {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--mute, #6b645a);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
}
.ranks-board .star-btn[aria-pressed="true"] { color: var(--stitch, #9C3B2D); }
.ranks-board .star-btn:active { transform: scale(1.08); }
.ranks-board .nm-with-star a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  min-width: 0;
}

/* ---- Header avatar + end cluster — OWNER users/avatar 2026-09-29 ---- */
.header-end {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  justify-self: end;
  min-width: 0;
}
.header-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--stitch, #9C3B2D);
  background: color-mix(in srgb, var(--paper, #F4EFE6) 88%, var(--stitch, #9C3B2D));
  text-decoration: none;
  color: var(--ink, #1A1A1A);
  flex-shrink: 0;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--paper, #F4EFE6) 70%, transparent);
}
.header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* retina-ready: source is ~224px for 32–64 CSS px */
}
.header-avatar-letter {
  font-family: var(--font-display, Georgia, serif);
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1;
  color: var(--stitch, #9C3B2D);
  user-select: none;
}
.header-avatar:hover,
.header-avatar:focus-visible {
  outline: 2px solid var(--stitch, #9C3B2D);
  outline-offset: 2px;
  border-color: var(--ink, #1A1A1A);
}
.header-avatar.is-fallback {
  border-style: solid;
}
/* When avatar present, calm the text Account chip on phone */
.header-account.has-avatar {
  /* keep available for a11y but compact */
}
@media (max-width: 800px) {
  .header-inner {
    grid-template-columns: 1fr auto !important;
    gap: 10px;
  }
  .header-end { gap: 6px; }
  .header-avatar {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
  }
  .header-avatar-letter { font-size: 0.75rem; }
  .header-account.has-avatar {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: -1px;
  }
  .bts-menu-btn { margin-left: 0; }
}
@media (min-width: 801px) {
  .header-inner {
    grid-template-columns: auto 1fr auto auto;
  }
  .header-end { margin-left: 4px; }
  .header-account.has-avatar {
    /* desktop: keep Account chip; avatar sits beside menu */
  }
}

/* Account profile photo section */
.profile-photo-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px 20px;
  align-items: center;
  margin: 8px 0 4px;
  padding: 16px;
  border: 1px solid var(--hairline);
  background: var(--paper, #F4EFE6);
}
.profile-photo-preview {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--stitch, #9C3B2D);
  background: color-mix(in srgb, var(--paper) 85%, var(--stitch));
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-photo-preview .profile-letter {
  font-family: var(--font-display, Georgia, serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--stitch);
}
.profile-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.profile-photo-actions input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.profile-fields {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  max-width: 28rem;
}
.profile-fields .field { display: grid; gap: 6px; }
.profile-fields input {
  border: 1px solid var(--ink);
  background: var(--surface);
  font: inherit;
  padding: 10px 12px;
  min-height: 44px;
}
.profile-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--mute);
}
@media (max-width: 520px) {
  .profile-photo-block {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

/* consensus-name-wide-marker 2026-09-29b */

/* Consensus phone: Name readable + Org/Lvl/Age still on screen (OWNER 2026-09-29) */
@media (max-width: 800px) {
  #fev-board .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  #fev-board .ranks-board {
    min-width: 520px !important;
    width: max-content;
  }
  #fev-board .ranks-board th:nth-child(1),
  #fev-board .ranks-board td:nth-child(1),
  #fev-board .ranks-board .rk {
    position: sticky;
    left: 0;
    z-index: 4;
    width: 2.25rem !important;
    min-width: 2.25rem !important;
    max-width: 2.25rem !important;
    padding-left: 0 !important;
    padding-right: 4px !important;
    background: var(--paper);
  }
  /* Name: enough for star + readable name, NOT full viewport */
  #fev-board .ranks-board th:nth-child(2),
  #fev-board .ranks-board td:nth-child(2),
  #fev-board .ranks-board .nm,
  #fev-board .ranks-board .col-name {
    position: sticky;
    left: 2.25rem !important;
    z-index: 3;
    width: 9.75rem !important;
    min-width: 9.75rem !important;
    max-width: 9.75rem !important;
    background: var(--paper);
    box-shadow: 4px 0 8px -4px rgba(26, 26, 26, 0.12);
  }
  #fev-board .ranks-board .nm-with-star {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    max-width: 100%;
  }
  #fev-board .ranks-board .star-btn {
    width: 36px !important;
    height: 36px !important;
    flex: 0 0 auto;
    font-size: 1rem;
  }
  #fev-board .ranks-board .nm a,
  #fev-board .ranks-board .nm-with-star a {
    display: -webkit-box !important;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.2;
    font-size: 0.88rem;
  }
  /* Org / Lvl / Age — shrink to content, NEVER disappear */
  #fev-board .ranks-board th:nth-child(3),
  #fev-board .ranks-board td:nth-child(3) {
    width: auto !important;
    min-width: 2.75rem !important;
    max-width: 3.5rem !important;
    white-space: nowrap !important;
    padding-left: 6px !important;
    padding-right: 4px !important;
  }
  #fev-board .ranks-board th:nth-child(4),
  #fev-board .ranks-board td:nth-child(4) {
    width: auto !important;
    min-width: 2.5rem !important;
    max-width: 3.25rem !important;
    white-space: nowrap !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }
  #fev-board .ranks-board th:nth-child(5),
  #fev-board .ranks-board td:nth-child(5) {
    width: auto !important;
    min-width: 2.25rem !important;
    max-width: 2.75rem !important;
    white-space: nowrap !important;
    padding-left: 4px !important;
    padding-right: 6px !important;
    font-variant-numeric: tabular-nums;
  }
}
/* consensus-phone-balance-marker 2026-09-29d */


/* consensus-pager-2026-09-29 */
.consensus-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 6px;
  margin: 0 0 16px;
  padding: 4px 0 10px;
  border-bottom: 1px solid var(--hairline);
}
.consensus-pager + .table-wrap + .consensus-page-meta + .consensus-pager,
#fev-board > .consensus-pager:last-child {
  margin: 16px 0 0;
  padding: 10px 0 4px;
  border-bottom: 0;
  border-top: 1px solid var(--hairline);
}
.consensus-pager[hidden] { display: none; }
.consensus-pager-nums {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 4px;
  margin: 0 4px;
}
.consensus-pager-btn {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  font: inherit;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--mute);
  padding: 8px 10px;
  min-width: 2.25rem;
  min-height: 44px;
  cursor: pointer;
  line-height: 1.2;
}
.consensus-pager-btn:hover:not(:disabled):not([aria-disabled="true"]) {
  color: var(--stitch);
}
.consensus-pager-btn:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}
.consensus-pager-btn.is-active,
.consensus-pager-btn[aria-current="page"] {
  color: var(--stitch);
  border-bottom-color: var(--stitch);
}
.consensus-pager-btn:disabled,
.consensus-pager-btn[aria-disabled="true"] {
  opacity: 0.35;
  cursor: not-allowed;
  color: var(--mute);
}
.consensus-pager-arrow {
  font-size: 1.15rem;
  letter-spacing: 0;
  padding-left: 12px;
  padding-right: 12px;
}
.consensus-page-meta {
  margin: 10px 0 0;
  text-align: center;
}
/* legacy letter/range tab strip no longer used on Consensus */
.tabs-scroll {
  overflow-x: auto;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.tabs-scroll button {
  flex: 0 0 auto;
  white-space: nowrap;
}
.bts-meta {
  color: var(--mute);
  font-size: 0.9rem;
  margin: 0.25rem 0 0;
}
.ranks-board .avg,
.ranks-board .lists {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--mute);
}
#fev-board .ranks-board th:nth-child(6),
#fev-board .ranks-board td:nth-child(6),
#fev-board .ranks-board th:nth-child(7),
#fev-board .ranks-board td:nth-child(7) {
  width: auto;
  min-width: 2.5rem;
  white-space: nowrap;
  padding-left: 4px;
  padding-right: 4px;
}

/* Sources page — cream-paper attributions. OWNER 2026-09-29 */
.sources-section {
  margin: 28px 0 8px;
}
.sources-section > h2 {
  font-family: var(--serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0 0 6px;
}
.sources-section > .section-lede {
  color: var(--mute);
  margin: 0 0 18px;
  max-width: 40rem;
  font-size: 0.95rem;
  line-height: 1.55;
}
.sources-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 42rem;
}
.source-card {
  padding: 14px 0 16px;
  border-top: 1px solid color-mix(in srgb, var(--stitch, #8b3a2a) 22%, transparent);
}
.source-card:first-child { border-top: none; padding-top: 0; }
.source-card .source-outlet {
  font-family: var(--serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
}
.source-card .source-list-name {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.45;
}
.source-card .source-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}
.source-card .source-use,
.source-card .source-note {
  margin: 0 0 6px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink);
  max-width: 40rem;
}
.source-card .source-note { color: var(--mute); }
.source-card .source-link {
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}
.source-card .source-link a { color: var(--stitch, #8b3a2a); }
.source-card .source-link a:hover,
.source-card .source-link a:focus { text-decoration: underline; }
.sources-footnote {
  margin-top: 32px;
  max-width: 40rem;
  color: var(--mute);
  font-size: 0.9rem;
  line-height: 1.55;
}
