/* =============================================================================
   streamers.css — /fantasy/streamers/, the weekly streamer and waiver desk.

   Layered on hub.css (the .fh-* shell) and extra.css (the .fx-* crests and
   mugs). Everything new here is scoped to .fs-scope.

   House rules, unchanged:
     * Upright Newsreader. No slanted type anywhere on the page.
     * Ink and blue are the whole accent grammar. No gold value is declared.
     * mint = the second half was better, coral = worse. Nothing else coloured.
     * The board scrolls inside its own container above 760px and becomes
       cards below it, so the page itself never scrolls sideways.
   ============================================================================= */

.fs-scope .is-mono { font-family: var(--fw-mono); }

/* --- the 28-week strip ---------------------------------------------------- */
.fs-weeks {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  overflow-x: auto;
  padding: 0.9rem 0.8rem 0.7rem;
  background: var(--fw-card);
  border: 1px solid var(--fw-line);
  border-radius: 12px;
}
.fs-scope .fs-week {
  flex: 1 1 0;
  min-width: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 4px 2px 5px;
  background: none;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  color: var(--fw-muted);
}
.fs-scope .fs-week:hover { border-color: var(--fw-blue-line); color: var(--fw-ink); }
.fs-scope .fs-week .bar {
  width: 100%;
  height: 46px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.fs-scope .fs-week .bar i {
  display: block;
  width: 100%;
  max-width: 16px;
  background: var(--fw-track);
  border-top: 2px solid var(--fw-line);
  border-radius: 2px 2px 0 0;
}
.fs-scope .fs-week .n {
  font-family: var(--fw-mono);
  font-size: var(--fw-t-micro);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.fs-scope .fs-week .pw {
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: var(--fw-blue-line);
  opacity: 0.55;
}
.fs-scope .fs-week .pw.is-off { background: transparent; }
.fs-scope .fs-week[aria-pressed="true"] {
  background: var(--fw-blue-soft);
  border-color: var(--fw-blue-line);
  color: var(--fw-blue);
}
.fs-scope .fs-week[aria-pressed="true"] .bar i {
  background: var(--fw-blue-2);
  border-top-color: var(--fw-blue);
}
.fs-wkline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: baseline;
  margin: 0.75rem 0 0;
  font-size: var(--fw-t-s);
  color: var(--fw-ink-2);
  line-height: 1.6;
}
.fs-wkline b { color: var(--fw-ink); font-weight: 700; }
.fs-wkline .dt { font-family: var(--fw-mono); color: var(--fw-muted); }

/* --- the no-ownership statement ------------------------------------------- */
.fs-nownership {
  margin: 0 0 1.1rem;
  padding: 0.85rem 1rem;
  background: var(--fw-card2);
  border: 1px solid var(--fw-line);
  border-left: 3px solid var(--fw-blue-line);
  border-radius: 0 10px 10px 0;
}
.fs-nownership p { margin: 0; font-size: var(--fw-t-s); line-height: 1.65; color: var(--fw-ink-2); }
.fs-nownership .tag {
  display: inline-block;
  margin-right: 9px;
  font-family: var(--fw-mono);
  font-size: var(--fw-t-meta);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fw-blue);
}

/* --- the board ------------------------------------------------------------ */
.fs-scope .fh-table td.c-fig,
.fs-scope .fh-table th.c-fig {
  font-family: var(--fw-mono);
  text-align: right;
  white-space: nowrap;
}
.fs-scope .fh-table td.c-fig b { font-weight: 700; color: var(--fw-ink); }
.fs-scope .fh-table td.c-fig .u {
  display: block;
  font-size: var(--fw-t-micro);
  font-weight: 600;
  color: var(--fw-muted);
  letter-spacing: 0.02em;
}
.fs-scope .fh-table td.c-form.is-up b { color: var(--fw-up); }
.fs-scope .fh-table td.c-form.is-down b { color: var(--fw-down); }
.fs-scope .fh-table td.c-form .none {
  font-family: var(--fw-mono);
  font-size: var(--fw-t-micro);
  color: var(--fw-muted);
  letter-spacing: 0.02em;
}
.fs-scope .fh-table td.c-gm .ticks {
  display: inline-flex;
  gap: 3px;
  margin-left: 8px;
  vertical-align: middle;
}
.fs-tick {
  width: 6px;
  height: 14px;
  border-radius: 2px;
  border: 1px solid var(--fw-line);
  background: transparent;
  display: inline-block;
}
.fs-tick.is-off { background: var(--fw-ink-2); border-color: var(--fw-ink-2); }

/* flag chips: ink for everything that is not a direction */
.fs-flag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 2px 5px 2px 0;
  padding: 2px 7px;
  border: 1px solid var(--fw-line);
  border-radius: 999px;
  background: var(--fw-card2);
  font-family: var(--fw-mono);
  font-size: var(--fw-t-micro);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--fw-ink-2);
  white-space: nowrap;
}
.fs-flag.is-blue { color: var(--fw-blue); border-color: var(--fw-blue-line); background: var(--fw-blue-soft); }

.fs-none { font-family: var(--fw-mono); color: var(--fw-muted); }

.fs-empty {
  padding: 1rem 1.1rem;
  background: var(--fw-card);
  border: 1px dashed var(--fw-line);
  border-radius: 10px;
  font-size: var(--fw-t-s);
  color: var(--fw-muted);
  line-height: 1.6;
}

/* --- the shelves ---------------------------------------------------------- */
.fs-shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}
.fs-card {
  padding: 0.85rem 0.95rem 0.9rem;
  background: var(--fw-card);
  border: 1px solid var(--fw-line);
  border-radius: 12px;
  box-shadow: inset 3px 0 0 var(--tint-ring, var(--fw-line));
}
.fs-card .head { display: flex; align-items: center; gap: 10px; }
.fs-card .head .who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fs-card .head .tri {
  font-family: var(--fw-mono);
  font-weight: 700;
  font-size: var(--fw-t-b);
  letter-spacing: 0.04em;
  color: var(--fw-ink);
}
.fs-card .head .nm {
  font-size: var(--fw-t-micro);
  color: var(--fw-muted);
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fs-card .ticks { display: flex; gap: 4px; margin: 0.7rem 0 0.45rem; }
.fs-card .ticks .fs-tick { width: 9px; height: 20px; }
.fs-card .line {
  font-size: var(--fw-t-s);
  line-height: 1.55;
  color: var(--fw-ink-2);
  margin: 0;
}
.fs-card .line b { color: var(--fw-ink); font-weight: 700; }
.fs-card .fig {
  font-family: var(--fw-mono);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  color: var(--fw-ink);
  margin: 0.55rem 0 0.2rem;
}
.fs-card .fig span {
  font-family: var(--fw-sans, inherit);
  font-size: var(--fw-t-meta);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fw-muted);
  margin-left: 7px;
  font-weight: 600;
}
.fs-tandem { list-style: none; margin: 0.6rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fs-tandem li { display: flex; align-items: center; gap: 8px; font-size: var(--fw-t-s); color: var(--fw-ink-2); }
.fs-tandem li .nm { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-tandem li .sh { font-family: var(--fw-mono); font-weight: 700; color: var(--fw-ink); }
.fs-tandem li .bar {
  flex: 0 0 46px;
  height: 5px;
  border-radius: 3px;
  background: var(--fw-track);
  overflow: hidden;
}
.fs-tandem li .bar i { display: block; height: 100%; background: var(--fw-ink-2); }

/* --- mobile: the board becomes cards, and the page never scrolls sideways -- */
@media (max-width: 760px) {
  .fs-scope .fh-tablewrap { overflow: visible; border: 0; background: none; }
  .fs-scope .fh-table { display: block; min-width: 0; width: 100%; }
  .fs-scope .fh-table caption { display: block; width: auto; }
  .fs-scope .fh-table thead { display: none; }
  .fs-scope .fh-table tbody { display: block; }
  .fs-scope .fh-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px 10px;
    padding: 0.75rem 0.85rem;
    margin: 0 0 10px;
    background: var(--fw-card);
    border: 1px solid var(--fw-line);
    border-radius: 12px;
  }
  .fs-scope .fh-table td {
    display: block;
    border: 0;
    padding: 0;
    white-space: normal;
    text-align: left;
  }
  .fs-scope .fh-table td.c-rank { grid-column: 1 / -1; font-size: var(--fw-t-micro); color: var(--fw-muted); }
  .fs-scope .fh-table td.c-name { grid-column: 1 / -1; min-width: 0; }
  .fs-scope .fh-table td.c-fig { text-align: left; white-space: normal; }
  .fs-scope .fh-table td.c-fig::before {
    content: attr(data-lbl);
    display: block;
    font-family: var(--fw-sans, inherit);
    font-size: var(--fw-t-meta);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fw-muted);
    margin-bottom: 2px;
    white-space: normal;
  }
  .fs-scope .fh-table td.c-flag { grid-column: 1 / -1; }
  .fs-scope .fh-table td.c-gm .ticks { margin-left: 0; }
  .fs-shelf { grid-template-columns: 1fr; }
  .fs-scope .fs-week { min-width: 30px; }
}
/* Narrow the existing pool without guessing waiver availability. */
.fs-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 18px 0 8px; }
.fs-filters label { display: grid; gap: 5px; font-size: .85rem; color: var(--hi-ink-2); }
.fs-filters label:first-child { flex: 1 1 240px; }
.fs-filters input, .fs-filters select, .fs-filters button, #fsShowMore {
  min-height: 42px; max-width: 100%; padding: 8px 12px; border: 1px solid var(--hi-line);
  border-radius: var(--rad-sm, 6px); background: var(--hi-surface-1); color: var(--hi-ink); font: inherit;
}
.fs-filters input { width: 100%; box-sizing: border-box; }
.fs-filters button, #fsShowMore { cursor: pointer; }
#fsShowMore { margin-top: 14px; }
#fsShowMore[hidden] { display: none; }
.fs-filters :focus-visible, #fsShowMore:focus-visible { outline: 2px solid var(--hi-blue); outline-offset: 3px; }
