/* ═══════════════════════════════════════════════════════════════
   BFTB — COMPONENT PRIMITIVES
   ───────────────────────────────────────────────────────────────
   The 12 primitives every screen is assembled from. See BRAND.md.

   Depends on tokens.css + base.css. Contains NO colour values —
   every value here resolves through a var(). Do not one-off style
   anything: if a screen needs something not in here, it is almost
   always a SectionPanel with different contents.

   Load order: fonts.css → tokens.css → base.css → components.css
═══════════════════════════════════════════════════════════════ */


/* ═══ ICON ══════════════════════════════════════════════════════
   Monoline, stroke-only, inherits text colour. See ui-icons.js. */

.bftb-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: block;
  stroke: currentColor;
  fill: none;
}
.bftb-icon--sm { width: 14px; height: 14px; }
.bftb-icon--lg { width: 24px; height: 24px; }


/* ═══ 1. SCREENHEADER ═══════════════════════════════════════════
   eyebrow → display title → right-aligned count badge. Logo top-right. */

.bftb-screenhead {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "eyebrow logo"
    "title   badge";
  align-items: end;
  gap: var(--bftb-space-2) var(--bftb-space-4);
  padding: var(--bftb-space-5) var(--bftb-edge) var(--bftb-space-4);
}

.bftb-screenhead__eyebrow {
  grid-area: eyebrow;
  color: var(--bftb-accent);
  letter-spacing: var(--bftb-track-label-w);
}

.bftb-screenhead__title {
  grid-area: title;
  /* Fill comes from .bftb-display--lime or --outline. Never both. */
}

.bftb-screenhead__logo {
  grid-area: logo;
  justify-self: end;
  height: 28px;
  width: auto;
}

/* The logo ships as a <picture> so the mobile lockup can swap in, which makes
   the <picture> the grid item rather than the <img>. */
.bftb-screenhead__logo img {
  display: block;
  height: 100%;
  width: auto;
}

.bftb-screenhead__badge {
  grid-area: badge;
  justify-self: end;
  text-align: right;
  line-height: var(--bftb-lh-display);
}

.bftb-screenhead__count {
  display: block;
  font-family: var(--bftb-font-display);
  font-size: var(--bftb-display-sm);
  line-height: var(--bftb-lh-display);
  letter-spacing: var(--bftb-track-display);
  color: var(--bftb-accent);
}

.bftb-screenhead__unit {
  display: block;
  margin-top: var(--bftb-space-1);
  color: var(--bftb-mute);
}


/* ═══ 2. PICKROW — the workhorse ════════════════════════════════
   An APP list row, not a carousel slide. The brand supplies the
   palette, the faces, the zero radius, the hard border and the lime
   spine; the layout is whatever reads fastest in a scrolling list.

   The carousel composes one fixture to fill a square: two columns
   either side of a divider, the pick centred as a hero. That is
   right for a single image and wrong for a list — it buries the
   pick in a narrow column and gives the eye two scan lines to
   track instead of one.

   So: four full-width bands, everything left-aligned on one axis,
   numbers hard right where the eye expects to find them.

     ┃ 20:45  ⚽ SERIE A                      LIVE 67'
     ┃ Venezia vs Lazio                          2 : 1
     ┃ DOUBLE CHANCE  ·  LAZIO / DRAW
     ┃ 👍3  👎1  64% ON                      [RESEARCH]

   The spine is a ::before, not a border-left, so the pressed state
   can widen it without nudging the contents. */

.bftb-pickrow {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--bftb-space-2);
  background: var(--bftb-surface);
  border: var(--bftb-border) solid var(--bftb-line);
  border-left: 0;
  padding: var(--bftb-space-3) var(--bftb-space-4) var(--bftb-space-3)
           calc(var(--bftb-spine) + var(--bftb-space-4));
  width: 100%;
  text-align: left;
}

.bftb-pickrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--bftb-spine);
  background: var(--bftb-lime);
  transition: width var(--bftb-dur-fast) var(--bftb-ease);
}

.bftb-pickrow:active,
.bftb-pickrow.is-pressed { background: var(--bftb-surface-2); }
.bftb-pickrow:active::before,
.bftb-pickrow.is-pressed::before { width: var(--bftb-spine-pressed); }

/* ── band 1: kickoff · competition ........ state ── */
.bftb-pickrow__head {
  display: flex;
  align-items: center;
  gap: var(--bftb-space-2);
  min-width: 0;
}

/* Kickoff: the fixture's own treatment, scaled down. Still driven off
   --bftb-head-lg with a calc rather than a literal, so the time tracks the
   fixture size if that ever moves. The divisor was 2 — an exact half — and
   is 1.6 now because a half left the time too quiet for the first thing on
   the row.

   No font-variant-numeric here: Anton ships no tnum table and its digits are
   proportional (677 units for "1" against 1012 for the rest), so the
   declaration was decorative. Times are short and left-aligned, so the
   jitter is not worth giving up the face for. */
.bftb-pickrow__kickoff {
  flex: 0 0 auto;
  font-family: var(--bftb-font-display);
  font-weight: 400;
  font-size: calc(var(--bftb-head-lg) / 1.6);
  line-height: var(--bftb-lh-head);
  letter-spacing: var(--bftb-track-display);
  text-transform: uppercase;
  color: var(--bftb-white);
}

/* The competition. Same face as every other label now; it keeps 500 rather
   than the 600 default because it is muted supporting meta, not a control. */
/* Overrides the --xs the markup carries: 10px is too small for a condensed
   face, and this line names the competition, which is the main orienting
   detail on the row after the teams. */
.bftb-pickrow__comp {
  font-weight: 500;
  /* A step down from --bftb-label. Competition names run long — "World:
     Friendly International Women" is 35 characters — and at 15px they hit
     the ellipsis on a phone. The ellipsis stays as the backstop for names
     longer than any size can fit. */
  font-size: var(--bftb-label-sm);
  color: var(--bftb-mute);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* pushes whatever follows to the right edge of the band */
.bftb-pickrow__head > :last-child:not(:first-child) { margin-left: auto; }

/* ── band 2: the fixture .................. score ── */
.bftb-pickrow__fixture {
  display: flex;
  align-items: baseline;
  gap: var(--bftb-space-3);
}

/* The fixture, in the display face. Anton ships one weight (400), so the
   old 800 would have asked the browser to synthesise a bold and smeared the
   letterforms. It is condensed, so it needs more size than a grotesque would to
   hold the same presence, and it wants uppercase and tight tracking —
   that is the face doing what it is for. */
.bftb-pickrow__teams {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--bftb-font-display);
  font-weight: 400;
  font-size: var(--bftb-head-lg);
  line-height: var(--bftb-lh-head);
  letter-spacing: var(--bftb-track-display);
  text-transform: uppercase;
  color: var(--bftb-white);
  overflow-wrap: anywhere;
}

/* The score is a headline, not a data point: Anton, and it carries the
   result's colour so a glance down the list reads won/lost without
   needing the spine. Pending and void stay ink. */
.bftb-pickrow__score {
  flex: 0 0 auto;
  font-family: var(--bftb-font-display);
  font-weight: 400;
  font-size: var(--bftb-head-lg);
  line-height: var(--bftb-lh-head);
  letter-spacing: var(--bftb-track-display);
  color: var(--bftb-white);
  white-space: nowrap;
}
.bftb-pickrow--win  .bftb-pickrow__score { color: var(--bftb-win-bar);  }
.bftb-pickrow--loss .bftb-pickrow__score { color: var(--bftb-loss-bar); }

/* The pick block carries the result, so a row reads by colour alone without
   checking the spine or the score:

     pending  lime   — the call stands
     won      green
     lost     red
     void     grey   — settled, but it never ran

   Lime therefore means "live", not "live or landed", which is what it meant
   while only losses were recoloured. */
.bftb-pickrow--win .bftb-pickrow__selection {
  background: var(--bftb-win-bar);
  color: var(--bftb-result-ink);
}
.bftb-pickrow--loss .bftb-pickrow__selection {
  background: var(--bftb-loss-bar);
  color: var(--bftb-result-ink);
}
.bftb-pickrow--void .bftb-pickrow__selection {
  background: var(--bftb-void-bar);
  color: var(--bftb-result-ink);
}

/* ── band 3: the call ──────────────────────────────
   Market label and selection on one line. Lime text rather than a
   filled block: with twenty of these in a list, twenty filled lime
   bands would be a wall of lime and none of them would read. */
/* Centred in the card. The call is the point of the row, and sitting it on
   the centre line makes it read as the conclusion of the two bands above
   rather than as another left-aligned field in a list. */
.bftb-pickrow__call {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--bftb-space-1) var(--bftb-space-3);
  padding-top: var(--bftb-space-2);
  border-top: var(--bftb-hairline) solid var(--bftb-faint);
  text-align: center;
}

/* Same: the market is what the call actually is, so it should not be the
   smallest thing in the row. */
.bftb-pickrow__market {
  flex: 0 0 auto;
  font-size: var(--bftb-label);
  color: var(--bftb-mute);
}

.bftb-pickrow__selection {
  font-family: var(--bftb-font-display);
  font-weight: 400;
  font-size: var(--bftb-head);
  line-height: var(--bftb-lh-head);
  letter-spacing: var(--bftb-track-display);
  text-transform: uppercase;
  background: var(--bftb-lime);
  color: var(--bftb-lime-ink);
  padding: 1px var(--bftb-space-2);
  overflow-wrap: anywhere;
}

/* ── band 4: votes, weather, research ── */
.bftb-pickrow__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--bftb-space-2);
}

.bftb-pickrow__meta:empty { display: none; }
.bftb-pickrow__meta > .bftb-pickrow__research { margin-left: auto; }

/* Research links collapse behind a disclosure. Six per row across a
   twenty-fixture card is ~120 chips competing with the call.
   Native <details>: no JS, keyboard-works, no motion to reconcile. */
.bftb-pickrow__research summary {
  display: inline-flex;
  align-items: center;
  gap: var(--bftb-space-1);
  min-height: var(--bftb-tap);
  cursor: pointer;
  list-style: none;
}
.bftb-pickrow__research summary::-webkit-details-marker { display: none; }
.bftb-pickrow__research summary::marker { content: ''; }
.bftb-pickrow__research[open] summary { color: var(--bftb-accent); }

.bftb-pickrow__research-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bftb-space-2);
  padding-top: var(--bftb-space-2);
}

/* ── VOTE CONTROL ────────────────────────────────────────────────
   The boys backing or fading a call. Not in the carousel — the posts
   are one-way — so it is built from the system rather than copied.
   Icons, never emoji; mono counts so columns of them align. */
.bftb-vote {
  display: inline-flex;
  align-items: center;
  gap: var(--bftb-space-2);
}

.bftb-vote__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--bftb-space-1);
  min-height: var(--bftb-tap);
  padding: var(--bftb-space-1) var(--bftb-space-2);
  border: var(--bftb-hairline) solid var(--bftb-faint);
  background: transparent;
  color: var(--bftb-mute);
  font-family: var(--bftb-font-num);
  font-weight: 400;
  font-size: var(--bftb-num-sm);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: color        var(--bftb-dur-fast) var(--bftb-ease),
              border-color var(--bftb-dur-fast) var(--bftb-ease);
}

.bftb-vote__btn:hover       { color: var(--bftb-white); border-color: var(--bftb-line); }
.bftb-vote__btn:active      { background: var(--bftb-surface-2); }
.bftb-vote__btn--up.is-on   { color: var(--bftb-win-bar);  border-color: var(--bftb-win-bar);  }
.bftb-vote__btn--down.is-on { color: var(--bftb-loss-bar); border-color: var(--bftb-loss-bar); }

.bftb-vote__pct         { color: var(--bftb-mute); }
.bftb-vote__pct.is-hot  { color: var(--bftb-win-bar);  }
.bftb-vote__pct.is-cold { color: var(--bftb-loss-bar); }


/* ═══ 3. RESULTROW ══════════════════════════════════════════════
   IDENTICAL skeleton to PickRow — only the colours change. The
   brand rule is that a resulted graphic keeps the layout and
   recolours; nothing here moves. */

.bftb-pickrow--win  { background: var(--bftb-win-bg);  }
.bftb-pickrow--loss { background: var(--bftb-loss-bg); }
.bftb-pickrow--void { background: var(--bftb-void-bg); }

.bftb-pickrow--win::before  { background: var(--bftb-win-bar);  }
.bftb-pickrow--loss::before { background: var(--bftb-loss-bar); }
.bftb-pickrow--void::before { background: var(--bftb-void-bar); }

/* The call stays lime on a resulted row; the spine carries the result. */



/* ═══ 4. STATTILE ═══════════════════════════════════════════════
   Enormous lime numeral flush-left against body copy, in a box. */

.bftb-stat {
  display: flex;
  align-items: center;
  gap: var(--bftb-space-4);
  background: var(--bftb-surface);
  border: var(--bftb-border) solid var(--bftb-line);
  padding: var(--bftb-space-4);
}

.bftb-stat__num {
  font-family: var(--bftb-font-display);
  font-size: var(--bftb-stat);
  line-height: var(--bftb-lh-display);
  letter-spacing: var(--bftb-track-display);
  color: var(--bftb-accent);
  flex: 0 0 auto;
}
.bftb-stat__num--xl { font-size: var(--bftb-stat-xl); }

.bftb-stat__body {
  display: flex;
  flex-direction: column;
  gap: var(--bftb-space-1);
  min-width: 0;
}

.bftb-stat__label { color: var(--bftb-mute); }

.bftb-stat__copy {
  font-family: var(--bftb-font-body);
  font-weight: 600;
  font-size: var(--bftb-body-sm);
  line-height: var(--bftb-lh-body);
  color: var(--bftb-white);
}


/* ═══ 5. METERBAR ═══════════════════════════════════════════════
   6px track, lime fill, zero radius, mono value at the right. */

.bftb-meter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--bftb-space-2) var(--bftb-space-3);
  align-items: center;
}

.bftb-meter__label {
  color: var(--bftb-mute);
  grid-column: 1;
}

.bftb-meter__value {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-family: var(--bftb-font-num);
  font-weight: 400;
  font-size: var(--bftb-num-sm);
  font-variant-numeric: tabular-nums;
  color: var(--bftb-white);
  text-align: right;
}

.bftb-meter__track {
  grid-column: 1;
  height: var(--bftb-meter-track);
  background: var(--bftb-meter-fill);
  width: 100%;
}

.bftb-meter__fill {
  height: 100%;
  background: var(--bftb-lime);
  /* Reveal timing, not interaction timing — at --bftb-dur (160ms) the bar
     snapped to its value instead of travelling to it. */
  transition: width var(--bftb-dur-reveal) var(--bftb-ease);
}
.bftb-meter__fill--win  { background: var(--bftb-win-bar);  }
.bftb-meter__fill--loss { background: var(--bftb-loss-bar); }


/* ═══ 6. FORMLINE — the W/L grid ════════════════════════════════ */

.bftb-formline {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bftb-space-1);
}

.bftb-formline__sq {
  width: var(--bftb-form-square);
  height: var(--bftb-form-square);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--bftb-font-label);
  font-weight: 600;
  font-size: var(--bftb-label);
  letter-spacing: 0;
  text-transform: uppercase;
  flex: 0 0 auto;
}

/* Banked. The ink border matters on a light ground: lime against white is
   about 1.2:1, so without an edge the square has no defined shape and the
   row of results looks like it is floating. It also squares it up with the
   bottled and void states, which were already outlined. */
.bftb-formline__sq--w {
  background: var(--bftb-lime);
  color: var(--bftb-lime-ink);
  border: var(--bftb-hairline) solid var(--bftb-white);
}

.bftb-formline__sq--l {
  background: transparent;
  border: var(--bftb-hairline) solid var(--bftb-white);
  color: var(--bftb-white);
}

/* Pending extends it again: a call that has not run yet is not a result,
   so it reads as an empty slot rather than competing with banked/bottled. */
.bftb-formline__sq--p {
  background: transparent;
  border: var(--bftb-hairline) dashed var(--bftb-white);
  color: transparent;
}

/* Void extends the carousel pair — this app tracks pushes, the slides don't. */
.bftb-formline__sq--v {
  background: transparent;
  border: var(--bftb-hairline) solid var(--bftb-white);
  color: var(--bftb-mute);
}


/* ═══ 7. CHIP / PILL / BUTTON ═══════════════════════════════════
   Square. Always. Wide-tracked caps. */

.bftb-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--bftb-space-1);
  padding: var(--bftb-space-1) var(--bftb-space-2);
  font-family: var(--bftb-font-label);
  font-weight: 600;
  font-size: var(--bftb-label-sm);
  line-height: var(--bftb-lh-label);
  letter-spacing: var(--bftb-track-label-n);
  text-transform: uppercase;
  white-space: nowrap;
}

.bftb-chip--lime {
  background: var(--bftb-lime);
  color: var(--bftb-lime-ink);
}

.bftb-chip--outline {
  background: transparent;
  border: var(--bftb-hairline) solid var(--bftb-line);
  color: var(--bftb-white);
}

.bftb-chip--win  { background: var(--bftb-win-bar);  color: var(--bftb-lime-ink); }
.bftb-chip--loss { background: var(--bftb-loss-bar); color: var(--bftb-white);    }
.bftb-chip--void { background: var(--bftb-void-bg);  color: var(--bftb-mute);
                   border: var(--bftb-hairline) solid var(--bftb-faint); }

/* The lime pick block, standalone. */
.bftb-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--bftb-space-1);
  background: var(--bftb-lime);
  color: var(--bftb-lime-ink);
  padding: var(--bftb-space-2) var(--bftb-space-3);
}

/* The pill's own text. Inherits lime-ink from the pill, so it cannot reuse
   .bftb-pickrow__selection — that is lime, and lime on lime is nothing. */
.bftb-pill__call {
  font-family: var(--bftb-font-display);
  font-weight: 400;
  font-size: var(--bftb-head);
  line-height: var(--bftb-lh-head);
  letter-spacing: var(--bftb-track-display);
  text-transform: uppercase;
  color: var(--bftb-lime-ink);
}

/* Button — one lime primary per view, outline for everything else. */
.bftb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--bftb-space-2);
  min-height: var(--bftb-tap);
  padding: var(--bftb-space-3) var(--bftb-space-4);
  font-family: var(--bftb-font-label);
  font-weight: 600;
  font-size: var(--bftb-label);
  line-height: var(--bftb-lh-label);
  letter-spacing: var(--bftb-track-label);
  text-transform: uppercase;
  border: var(--bftb-border) solid var(--bftb-line);
  background: transparent;
  color: var(--bftb-white);
  transition: background-color var(--bftb-dur-fast) var(--bftb-ease),
              border-color     var(--bftb-dur-fast) var(--bftb-ease),
              opacity          var(--bftb-dur-fast) var(--bftb-ease);
}

/* Compact variant for toolbars, where three sit in a row on a phone. */
.bftb-btn--sm {
  padding: var(--bftb-space-2) var(--bftb-space-3);
  font-size: var(--bftb-label-sm);
}

.bftb-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.bftb-btn--lime {
  background: var(--bftb-lime);
  border-color: var(--bftb-accent);
  color: var(--bftb-lime-ink);
}

.bftb-btn:active           { background: var(--bftb-surface-2); }
.bftb-btn--lime:active     { background: var(--bftb-lime); opacity: 0.86; }

.bftb-btn:disabled,
.bftb-btn[aria-disabled="true"] {
  border-color: var(--bftb-faint);
  color: var(--bftb-faint);
  background: transparent;
}


/* A wrapping row of chips. Used for supporting stats that should read as
   context rather than compete with a StatTile's hero numeral. */
.bftb-chiprow {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bftb-space-2);
}

/* A chip carrying a label and a value, e.g. "This month  67%". */
.bftb-chip__label { color: var(--bftb-mute); }
.bftb-chip__value {
  font-family: var(--bftb-font-num);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: var(--bftb-white);
  margin-left: var(--bftb-space-2);
}

/* ── PERFORMANCE BANDS ───────────────────────────────────────────
   One place for the win/mid/loss thresholds, so a percentage reads
   the same on every surface. pctClass() in app.js picks the band. */
.is-win  { color: var(--bftb-win-bar);  }
.is-loss { color: var(--bftb-loss-bar); }
.is-mid  { color: var(--bftb-accent);     }

/* ═══ 8. SECTIONPANEL ═══════════════════════════════════════════
   2px bordered black box, lime left rule, wide-tracked caps title. */

.bftb-panel {
  position: relative;
  background: var(--bftb-black);
  border: var(--bftb-border) solid var(--bftb-line);
  border-left: 0;
  padding: var(--bftb-space-4) var(--bftb-space-4) var(--bftb-space-4)
           calc(var(--bftb-spine) + var(--bftb-space-4));
}

.bftb-panel::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--bftb-spine);
  background: var(--bftb-lime);
}

.bftb-panel__title {
  color: var(--bftb-white);
  letter-spacing: var(--bftb-track-label-w);
  margin-bottom: var(--bftb-space-3);
}

.bftb-panel__body {
  font-family: var(--bftb-font-body);
  font-weight: 600;
  font-size: var(--bftb-body-sm);
  line-height: var(--bftb-lh-body);
  color: var(--bftb-mute);
}


/* ═══ 9. COMPLIANCEFOOTER ═══════════════════════════════════════
   Persistent on EVERY screen. Legal requirement, not decoration.
   Never remove, truncate, or hide this behind a scroll. */

.bftb-compliance {
  padding: var(--bftb-space-5) var(--bftb-edge);
  text-align: center;
  color: var(--bftb-mute);
  font-family: var(--bftb-font-label);
  font-weight: 600;
  font-size: var(--bftb-label-xs);
  line-height: 1.7;
  letter-spacing: var(--bftb-track-label-n);
  text-transform: uppercase;
  border-top: var(--bftb-hairline) solid var(--bftb-faint);
}

.bftb-compliance a {
  color: var(--bftb-mute);
  text-decoration: underline;
}


/* ═══ 10. NAV ═══════════════════════════════════════════════════
   Black bar, 2px border, wide-tracked caps, lime active + 3px rule.
   Applied here to the app's existing TOP tab bar — the navigation
   pattern was deliberately not changed. See BRAND.md § Decisions.
     .bftb-nav      → bar mounted at the BOTTOM (indicator on top)
     .bftb-nav--top → bar mounted at the TOP    (indicator on bottom) */

.bftb-nav {
  display: flex;
  background: var(--bftb-black);
  border-top: var(--bftb-border) solid var(--bftb-line);
  overflow-x: auto;
  scrollbar-width: none;
}
.bftb-nav::-webkit-scrollbar { display: none; }

.bftb-nav--top {
  border-top: 0;
  border-bottom: var(--bftb-border) solid var(--bftb-line);
}

.bftb-nav__item {
  position: relative;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--bftb-space-1);
  min-height: var(--bftb-tap);
  padding: var(--bftb-space-2) var(--bftb-space-3);
  font-family: var(--bftb-font-label);
  font-weight: 600;
  font-size: var(--bftb-label-sm);
  line-height: var(--bftb-lh-label);
  letter-spacing: var(--bftb-track-label-n);
  text-transform: uppercase;
  color: var(--bftb-mute);
  background: transparent;
  white-space: nowrap;
  transition: color var(--bftb-dur-fast) var(--bftb-ease);
}

.bftb-nav__item.is-active { color: var(--bftb-accent); }

/* the 3px lime indicator */
.bftb-nav__item.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: var(--bftb-nav-indicator);
  background: var(--bftb-lime);
  top: 0;
}
.bftb-nav--top .bftb-nav__item.is-active::after {
  top: auto;
  bottom: 0;
}


/* ═══ 11. CTAROW ════════════════════════════════════════════════
   The carousel's SMAAK / CALL / TAG / STASH quad. */

.bftb-ctarow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--bftb-space-2);
}

.bftb-ctarow__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--bftb-space-1);
  min-height: var(--bftb-tap);
  padding: var(--bftb-space-3) var(--bftb-space-2);
  background: var(--bftb-lime);
  color: var(--bftb-lime-ink);
  font-family: var(--bftb-font-label);
  font-weight: 600;
  font-size: var(--bftb-label-xs);
  line-height: var(--bftb-lh-label);
  letter-spacing: var(--bftb-track-label-n);
  text-transform: uppercase;
  text-align: center;
}

.bftb-ctarow__btn:active { opacity: 0.86; }


/* ═══ 12. STATE PANELS — empty / loading / error ════════════════
   All three are the same bordered black panel with a wide-tracked
   caps line and one lime action. Skeletons are FLAT — no shimmer. */

.bftb-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--bftb-space-4);
  background: var(--bftb-surface);
  border: var(--bftb-border) solid var(--bftb-line);
  padding: var(--bftb-space-8) var(--bftb-space-5);
  text-align: center;
}

.bftb-state__line {
  color: var(--bftb-mute);
  letter-spacing: var(--bftb-track-label);
}

.bftb-state--error .bftb-state__line { color: var(--bftb-white); }

.bftb-skeleton {
  background: var(--bftb-surface-2);
  width: 100%;
  height: var(--bftb-space-4);
}
.bftb-skeleton--row { height: 76px; }

/* A loading state is a stack of flat blocks. No gradient, no pulse. */
.bftb-skeleton-stack {
  display: flex;
  flex-direction: column;
  gap: var(--bftb-gutter);
  width: 100%;
}


/* ═══ LAYOUT ════════════════════════════════════════════════════
   Single-column stack at all widths, centred on desktop. */

.bftb-stack {
  display: flex;
  flex-direction: column;
  gap: var(--bftb-gutter);
  padding: 0 var(--bftb-edge);
  max-width: var(--bftb-maxw);
  margin: 0 auto;
  width: 100%;
}

.bftb-section {
  max-width: var(--bftb-maxw);
  margin: 0 auto;
  padding: var(--bftb-space-6) var(--bftb-edge) 0;
  width: 100%;
}
