/* f1gures - page styles, stage 3 group h) Fantasy (/fantasy/ and its sub-pages).
   Linked only on the fantasy pages (BaseLayout pageCss={['fantasy']}). Layout
   only: every surface, row, field, note and number is a Sharp component
   (src/components/sharp/), so this file only places them. Tokens, no hex.
   Replaces the old `.fx-*` block in app.css and the scoped `.rb-*` / `.ft-*`
   styles on the rules and tiers pages. */

/* ============================================================
   SHARED  (every fantasy page)
   ============================================================ */
.fx-page { display: grid; gap: 22px; align-content: start; }
.fx-page > .s-ph { margin-bottom: 0; }

/* Vertical rhythm inside islands. */
.fx-stack { display: grid; gap: 16px; min-width: 0; }
.fx-stack--s { gap: 10px; }
.fx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.fx-note { margin: 0; color: var(--fg-3); font-size: 13px; line-height: 1.55; }
.fx-section { display: grid; gap: 14px; margin-top: 12px; }
.fx-card-title {
  margin: 0 0 4px; font-family: var(--f-display); font-weight: 800; font-size: 18px;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-1);
}

/* ============================================================
   LOCK BAR  (ui.jsx LockBar: accent Card + Countdown)
   ============================================================ */
.fx-lock .s-card-body { display: grid; gap: 12px; }
.fx-lock-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.fx-lock-head .s-eyebrow { flex-basis: 100%; }
.fx-lock-name {
  margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 30px; line-height: 1;
  text-transform: uppercase; color: var(--fg-1);
}
.fx-lock-at { margin: 0; font-family: var(--f-mono); font-size: 12px; color: var(--fg-3); }
.fx-lock-note { margin: 0; color: var(--fg-2); font-size: 14px; }

/* ============================================================
   TIERS  (TierTable and the pick board: four tier Cards side by side)
   ============================================================ */
.fx-tiergrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
.fx-tiergrid .s-choices-grid { grid-template-columns: 1fr; }
.s-chips.fx-teams { flex-wrap: wrap; overflow: visible; }
.fx-tiergrid .s-choice-box b { display: inline-flex; align-items: center; gap: 8px; }
/* /fantasy/tiers/ puts the live table in the reading column, too narrow for four across. */
[data-fantasy-tiers] .fx-tiergrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1080px) {
  .fx-tiergrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .fx-tiergrid,
  [data-fantasy-tiers] .fx-tiergrid { grid-template-columns: 1fr; }
  .fx-tiergrid .s-choices-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============================================================
   FORMS  (account, auth, leagues, round picker)
   ============================================================ */
.fx-auth { max-width: 560px; }
.fx-field-narrow { max-width: 360px; }
.fx-code-field .s-input { font-family: var(--f-mono); letter-spacing: 0.2em; text-transform: uppercase; max-width: 12ch; }
.fx-facts dd b { overflow-wrap: anywhere; font-size: var(--fs-num-s); }

/* ============================================================
   RULES AND TIERS EXPLAINERS  (/fantasy/rules/, /fantasy/tiers/)
   Contents rail + reading column, the same shape as the guide article.
   ============================================================ */
.fx-art { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; }
.fx-rail { display: grid; gap: 22px; position: sticky; top: calc(var(--nav-h) + 16px); }
.fx-rail .s-toc--sticky { position: static; }
.fx-body { min-width: 0; max-width: var(--w-read); }
.fx-num { font-family: var(--f-mono); font-weight: 500; font-size: 0.6em; color: var(--fg-3); vertical-align: 0.2em; margin-right: 4px; }
.fx-plus { color: var(--pos); font-weight: 600; }
.fx-body dl { margin-bottom: 0; }
.fx-body dt { margin-top: 14px; font-family: var(--f-display); font-weight: 700; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-1); }
.fx-body dd { margin: 2px 0 0; color: var(--fg-2); font-size: 15px; line-height: 1.55; }
.fx-colophon { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line-1); color: var(--fg-3); font-size: 13px; line-height: 1.55; }
@media (max-width: 900px) {
  .fx-art { grid-template-columns: 1fr; gap: 0; }
  .fx-rail { position: static; order: 2; margin-top: 28px; }
}
/* Phone: the meta strip sits under the title and Contents opens a sheet
   (rules.astro, tiers.astro); the rail, which stacked at the end, is hidden. */
.fx-phone { display: none; }
.fx-toc-in .s-toc ol { margin: 0; }
.fx-toc-in .s-toc a { display: flex; align-items: center; min-height: 44px; }
@media (max-width: 720px) {
  .fx-rail { display: none; }
  .fx-phone { display: grid; gap: 12px; justify-items: start; margin: 0 0 20px; }
  .fx-phone-meta { width: 100%; }
}
