/* src/public/css/league_page_kit.css
 *
 * LD (24 Oct 2026): the league home page (league_detail_preline.pug) and the Gold page designer's live
 * preview (listing_editor_preline.pug) share this one sheet, so the preview is the page. Every colour,
 * face and size reads a token: kit tokens (--color-k-*) or --ld-* values. A Gold league's own values
 * arrive as server-composed declarations on the .ld-page wrapper (listing_flare_custom.ts); nothing here
 * changes for any other page.
 */
.ld-page {
  --ld-accent: var(--color-k-brand); --ld-accent-wash: color-mix(in srgb, var(--color-k-brand) 14%, transparent);
  --ld-heading: var(--color-k-text); --ld-link: var(--color-k-brand);
  --ld-pill: color-mix(in srgb, var(--color-k-brand) 16%, transparent); --ld-pill-ink: var(--color-k-text);
  --ld-card-bw: 1px; --ld-card-r: 14px;
  --ld-heading-font: var(--font-k-display), var(--font-k-heading); --ld-heading-weight: 800; --ld-heading-style: italic;
  --ld-heading-transform: none; --ld-heading-spacing: 0;
  --ld-hero-ink: #f0f3f8; --ld-hero-heading: #ffffff;
  --ld-overlay: rgba(12,15,20,.55); --ld-overlay-soft: rgba(12,15,20,.2); --ld-banner-h: 280px;
  --ld-page-bg: transparent;
  display: flex; flex-direction: column; gap: 16px; min-width: 0;
  color: var(--color-k-text);
}
.ld-page.is-custom { background: var(--ld-page-bg); border-radius: 18px; padding: 12px; }
@media (min-width: 760px) { .ld-page.is-custom { padding: 20px; } }
.ld-page .k-card { border-width: var(--ld-card-bw); border-radius: var(--ld-card-r); margin-bottom: 0; }
.ld-page .k-card-h5 { font-family: var(--ld-heading-font); font-weight: var(--ld-heading-weight); font-style: var(--ld-heading-style); text-transform: var(--ld-heading-transform); letter-spacing: var(--ld-heading-spacing); color: var(--ld-heading); }
.ld-page .k-card-tile { color: var(--ld-accent); }
.ld-page a.ld-link, .ld-page .ld-prose a { color: var(--ld-link); }

/* ── Hero ─────────────────────────────────────────────── */
.ld-hero { position: relative; overflow: hidden; border-radius: var(--ld-card-r); min-height: min(var(--ld-banner-h), 78vw); display: flex; align-items: flex-end;
  background-color: #0c0f14; background-size: cover; background-position: center; color: var(--ld-hero-ink); isolation: isolate; }
.ld-hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--ld-overlay-soft) 0%, var(--ld-overlay) 62%, var(--ld-overlay) 100%); }
.ld-hero.no-banner { background-image:
  radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--ld-accent) 46%, transparent) 0%, transparent 55%),
  repeating-linear-gradient(118deg, rgba(255,255,255,.035) 0 2px, transparent 2px 22px),
  linear-gradient(160deg, #161b23 0%, #0c0f14 100%); }
.ld-hero-in { width: 100%; padding: 20px 16px 16px; display: grid; gap: 14px; }
@media (min-width: 760px) { .ld-hero-in { padding: 28px 28px 22px; grid-template-columns: auto minmax(0,1fr) auto; align-items: end; column-gap: 22px; } }
.ld-crests { display: flex; align-items: center; }
.ld-crest { width: 76px; height: 76px; border-radius: 20px; object-fit: cover; background: #1d232c; border: 2px solid rgba(255,255,255,.28); box-shadow: 0 8px 28px rgba(0,0,0,.45); flex: none; }
@media (min-width: 760px) { .ld-crest { width: 104px; height: 104px; border-radius: 26px; } }
.ld-crest-mono { display: grid; place-items: center; font-family: var(--font-k-display), var(--font-k-heading); font-style: italic; font-weight: 800; font-size: 32px; color: #fff; background: linear-gradient(140deg, var(--ld-accent), #161b23); }
.ld-crest--team { width: 48px; height: 48px; border-radius: 50%; margin-left: -16px; object-fit: contain; padding: 4px; background: rgba(12,15,20,.85); }
@media (min-width: 760px) { .ld-crest--team { width: 60px; height: 60px; } }
.ld-hero-id { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ld-kicker { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ld-hero-ink); opacity: .9; }
.ld-onair { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: var(--ld-accent); color: #0b0e13; letter-spacing: .08em; }
.ld-onair::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ld-tag { padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); letter-spacing: .04em; text-transform: none; }
.ld-name { margin: 0; font-family: var(--ld-heading-font); font-weight: var(--ld-heading-weight); font-style: var(--ld-heading-style); text-transform: var(--ld-heading-transform); letter-spacing: var(--ld-heading-spacing);
  font-size: clamp(28px, 7vw, 56px); line-height: 1.02; color: var(--ld-hero-heading); overflow-wrap: anywhere; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.ld-headline { margin: 0; font-size: 16px; line-height: 1.45; color: var(--ld-hero-ink); max-width: 60ch; }
.ld-hero-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
.ld-hero-pills li { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.12); color: var(--ld-hero-ink); border: 1px solid rgba(255,255,255,.18); }
.ld-hero-pills li.is-on { background: color-mix(in srgb, var(--ld-accent) 30%, transparent); border-color: color-mix(in srgb, var(--ld-accent) 60%, transparent); }
.ld-hero-side { display: flex; flex-direction: column; gap: 12px; }
.ld-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.16); }
.ld-stat { padding: 8px 12px; background: rgba(12,15,20,.62); text-align: center; min-width: 76px; }
.ld-stat-v { display: block; font-family: var(--font-k-display), var(--font-k-heading); font-style: italic; font-weight: 800; font-size: 24px; line-height: 1.1; color: var(--ld-hero-heading); }
.ld-stat-k { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ld-hero-ink); opacity: .85; }
.ld-hero .k-btnset { margin: 0; }
.ld-hero .k-btn--secondary { background: rgba(255,255,255,.1); color: var(--ld-hero-ink); border-color: rgba(255,255,255,.3); }

/* ── Score ticker (lower third) ───────────────────────── */
.ld-ticker { position: relative; display: flex; align-items: stretch; border-radius: 12px; overflow: hidden; background: var(--color-k-panel); border: var(--ld-card-bw) solid var(--color-k-border); }
.ld-ticker-label { flex: none; display: flex; align-items: center; padding: 0 12px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: var(--ld-accent); color: #0b0e13; }
.ld-ticker-track { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.ld-ticker-track::-webkit-scrollbar { display: none; }
.ld-ticker-row { display: flex; width: max-content; }
.ld-tick { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 14px; font-weight: 700; white-space: nowrap; border-right: 1px solid var(--color-k-border); color: var(--color-k-text); }
.ld-tick img { width: 20px; height: 20px; object-fit: contain; }
.ld-tick b { font-variant-numeric: tabular-nums; }
.ld-tick .is-win { color: var(--ld-accent); }
@media (prefers-reduced-motion: no-preference) {
  .ld-ticker.is-moving .ld-ticker-track { overflow: hidden; }
  .ld-ticker.is-moving .ld-ticker-row { animation: ld-marquee var(--ld-marquee-s, 40s) linear infinite; }
  .ld-ticker.is-moving:hover .ld-ticker-row, .ld-ticker.is-moving:focus-within .ld-ticker-row { animation-play-state: paused; }
}
@keyframes ld-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Section grid ─────────────────────────────────────── */
.ld-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; grid-auto-flow: row dense; }
@media (min-width: 760px) { .ld-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .ld-span-2, .ld-span-3 { grid-column: span 2; } }
@media (min-width: 1180px) { .ld-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } .ld-span-3 { grid-column: span 3; } }
.ld-grid > * { min-width: 0; }
/* 25 Oct (owner): no stretched rows. Below 1180 px each cell keeps its own height; at 1180 px and up the page
 * script packs the grid into two independent columns (2/3 for the wide sections, 1/3 for the narrow ones). */
.ld-grid { align-items: start; }
.ld-grid > .ld-reveal > .k-card, .ld-grid > .k-card { height: auto; }
@media (min-width: 1180px) { .ld-grid.is-packed { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-auto-rows: 4px; row-gap: 0; } }
.ld-list { list-style: none; margin: 0; padding: 0; }
.ld-row { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 0; border-bottom: 1px solid var(--color-k-border); color: var(--color-k-text); text-decoration: none; }
.ld-list > li:last-child .ld-row, .ld-row:last-child { border-bottom: 0; }
.ld-row img { width: 32px; height: 32px; object-fit: contain; flex: none; }
.ld-main { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 600; font-size: 14px; }
.ld-sub { display: block; font-weight: 400; font-size: 12px; color: var(--color-k-muted); }
.ld-right { flex: none; font-size: 14px; font-weight: 700; color: var(--color-k-text); display: inline-flex; gap: 8px; align-items: center; font-variant-numeric: tabular-nums; }
.ld-pill { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--ld-pill); color: var(--ld-pill-ink); }
.ld-sect { margin: 14px 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-k-muted); }
.ld-sect:first-of-type { margin-top: 4px; }
.ld-prose { margin: 0; white-space: pre-wrap; font-size: 14px; line-height: 1.65; color: var(--color-k-text); overflow-wrap: anywhere; }
.ld-intro { font-size: 16px; line-height: 1.65; color: var(--color-k-text); }
.ld-intro p { margin: 0 0 10px; } .ld-intro p:last-child { margin-bottom: 0; }
.ld-intro ul { margin: 0 0 10px; padding-left: 20px; list-style: disc; } .ld-intro strong { color: var(--ld-heading); }

/* Games */
.ld-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ld-game { position: relative; display: grid; gap: 6px; padding: 12px 12px 10px; border-radius: calc(var(--ld-card-r) - 4px); background: var(--color-k-surface-2, var(--color-k-surface)); border: 1px solid var(--color-k-border); overflow: hidden; }
.ld-game::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--ld-away, var(--ld-accent)) 0 50%, var(--ld-home, var(--ld-accent)) 50% 100%); }
.ld-side { display: flex; align-items: center; gap: 10px; min-height: 36px; font-weight: 700; font-size: 16px; }
.ld-side img { width: 30px; height: 30px; object-fit: contain; flex: none; }
.ld-side .ld-abbr { flex: 1; min-width: 0; }
.ld-side .ld-score { font-family: var(--font-k-display), var(--font-k-heading); font-style: italic; font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; }
.ld-side.is-lose { color: var(--color-k-muted); }
.ld-game-foot { display: grid; gap: 2px; min-width: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-k-muted); }
.ld-game-foot > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-game-foot > span + span { font-weight: 600; letter-spacing: .04em; opacity: .85; }

/* Standings */
.ld-st-row { display: grid; grid-template-columns: 26px 32px minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 44px; padding: 6px 8px 6px 10px; border-bottom: 1px solid var(--color-k-border); color: var(--color-k-text); text-decoration: none; position: relative; }
.ld-st-row::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; border-radius: 4px; background: var(--ld-team, var(--color-k-border)); }
.ld-st-rank { font-weight: 800; font-size: 12px; color: var(--color-k-muted); text-align: right; font-variant-numeric: tabular-nums; }
.ld-st-row img { width: 32px; height: 32px; object-fit: contain; }
.ld-st-name { min-width: 0; overflow-wrap: anywhere; font-weight: 600; font-size: 14px; }
.ld-st-rec { display: inline-flex; gap: 8px; align-items: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.ld-st-diff { font-size: 12px; font-weight: 700; color: var(--color-k-muted); min-width: 34px; text-align: right; }
.ld-st-more > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--ld-link); }
.ld-st-more > summary::-webkit-details-marker { display: none; }
.ld-st-more[open] > summary { display: none; }

/* Leaders */
.ld-leaders { display: grid; gap: 14px; }
.ld-ldr-top { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 12px; align-items: center; text-decoration: none; color: var(--color-k-text); padding: 10px; border-radius: calc(var(--ld-card-r) - 4px); background: var(--ld-accent-wash); }
.ld-face { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top center; background: var(--color-k-surface-2, var(--color-k-surface)); border: 2px solid var(--ld-accent); }
.ld-face--logo { object-fit: contain; padding: 8px; }
.ld-ldr-name { display: block; font-weight: 800; font-size: 16px; overflow-wrap: anywhere; }
.ld-ldr-stat { display: block; font-family: var(--font-k-display), var(--font-k-heading); font-style: italic; font-weight: 800; font-size: 24px; color: var(--ld-heading); font-variant-numeric: tabular-nums; }
.ld-ldr-row img { border-radius: 50%; }

/* Recap, open teams, commissioner */
.ld-video { display: block; width: 100%; max-height: 640px; border-radius: 10px; background: #000; }
.ld-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ld-chip { min-height: 44px; padding: 6px 12px; border: 1px solid var(--color-k-border); border-radius: 10px; background: var(--color-k-surface); color: var(--color-k-text); font-size: 14px; cursor: pointer; }
.ld-chip.is-on { border-color: var(--ld-accent); box-shadow: 0 0 0 2px var(--ld-accent-wash); }
.ld-open-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.ld-open { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; min-height: 44px; border-radius: 12px; border: 1px dashed color-mix(in srgb, var(--ld-accent) 60%, var(--color-k-border)); text-align: center; text-decoration: none; color: var(--color-k-text); font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.ld-open img { width: 40px; height: 40px; object-fit: contain; }
.ld-open-big { font-family: var(--font-k-display), var(--font-k-heading); font-style: italic; font-weight: 800; font-size: 44px; line-height: 1; color: var(--ld-heading); }
.ld-commish { display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 12px; align-items: center; }
.ld-commish-av { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 20px; background: var(--ld-accent-wash); color: var(--ld-heading); border: 2px solid var(--ld-accent); }

/* Motion on scroll (1602 WO-10, R7 and R19): the kit's rise, 320 ms and 8 px, and it plays under reduced motion too (the 7 Nov ruling: only the full-screen effects are skipped). */
.ld-js .ld-reveal { opacity: 0; transform: translate3d(0, 8px, 0); transition: opacity 320ms cubic-bezier(.2, .8, .2, 1), transform 320ms cubic-bezier(.2, .8, .2, 1); }
.ld-js .ld-reveal.is-in { opacity: 1; transform: none; }
.ld-hero .ld-name { animation: k-rise 320ms cubic-bezier(.2, .8, .2, 1) backwards; }

/* ── Gold page designer (listing editor, mixins/flare_designer.pug) ───────────── */
.ld-dz { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; align-items: start; }
@media (min-width: 1024px) {
  .ld-dz { grid-template-columns: minmax(0,1fr) minmax(320px, 440px); gap: 24px; }
  .ld-dz-prev-wrap { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; }
}
.ld-dz.is-locked { grid-template-columns: minmax(0,1fr); }
.ld-dz-controls { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.ld-dz-form { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ld-dz-group { border: 1px solid var(--color-k-border); border-radius: 12px; background: var(--color-k-surface); }
.ld-dz-group > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 14px; font-weight: 700; font-size: 16px; color: var(--color-k-text); }
.ld-dz-group > summary::-webkit-details-marker { display: none; }
.ld-dz-group > summary::after { content: "+"; font-size: 20px; color: var(--color-k-muted); }
.ld-dz-group[open] > summary::after { content: "\2212"; }
.ld-dz-group > :not(summary) { margin: 0 14px 12px; }
.ld-dz-label { margin: 4px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-k-muted); }
.ld-dz-help { display: block; font-size: 12px; font-weight: 400; color: var(--color-k-muted); line-height: 1.4; }
.ld-dz-color { display: grid; grid-template-columns: minmax(0,1fr); gap: 6px; padding: 8px 0; border-top: 1px solid var(--color-k-border); }
@media (min-width: 560px) { .ld-dz-color { grid-template-columns: minmax(0,1fr) auto; align-items: center; } }
.ld-dz-color-l { display: flex; flex-direction: column; gap: 2px; font-size: 14px; font-weight: 600; color: var(--color-k-text); }
.ld-dz-color-c { display: flex; align-items: center; gap: 8px; }
.ld-dz-pick { width: 44px; height: 44px; padding: 2px; border: 1px solid var(--color-k-border); border-radius: 10px; background: var(--color-k-surface); cursor: pointer; flex: none; }
.ld-dz-hex { width: 112px; min-height: 44px; font-family: ui-monospace, Menlo, Consolas, monospace; text-transform: lowercase; }
.ld-dz-clear { min-height: 44px; }
.ld-dz-range { display: grid; gap: 4px; padding: 8px 0; border-top: 1px solid var(--color-k-border); }
.ld-dz-range label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; color: var(--color-k-text); }
.ld-dz-range input[type=range] { width: 100%; min-height: 44px; accent-color: var(--color-k-brand); }
.ld-dz-out { font-variant-numeric: tabular-nums; color: var(--color-k-muted); }
.ld-dz-seg { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0 8px; }
.ld-dz-seg label, .ld-dz-font { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 6px 12px; border: 1px solid var(--color-k-border); border-radius: 10px; background: var(--color-k-panel); color: var(--color-k-text); cursor: pointer; font-size: 16px; }
.ld-dz-seg input, .ld-dz-font input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.ld-dz-seg label:has(input:checked), .ld-dz-font:has(input:checked) { border-color: var(--color-k-brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-k-brand) 30%, transparent); }
.ld-dz-seg label:has(input:focus-visible), .ld-dz-font:has(input:focus-visible) { outline: 2px solid var(--color-k-brand); outline-offset: 2px; }
.ld-dz-fonts { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 8px; }
.ld-dz-sections { list-style: none; margin: 0; padding: 0; counter-reset: ldsec; }
.ld-dz-sec { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; border-top: 1px solid var(--color-k-border); }
.ld-dz-sec label { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--color-k-text); cursor: pointer; flex: 1; min-width: 0; }
.ld-dz-sec label::before { counter-increment: ldsec; content: counter(ldsec); width: 22px; text-align: right; font-size: 12px; font-weight: 800; color: var(--color-k-muted); }
.ld-dz-sec input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--color-k-brand); }
.ld-dz-move { display: inline-flex; gap: 4px; flex: none; }
/* deploy 9: drag handle on each section row, the row lifts while it is dragged. */
.ld-dz-grip { display: inline-flex; align-items: center; justify-content: center; width: 28px; min-height: 44px; flex: none; color: var(--color-k-muted); cursor: grab; touch-action: none; user-select: none; }
.ld-dz-grip:hover { color: var(--color-k-text); }
.ld-dz-sec.is-dragging { background: var(--color-k-raised, rgba(127,127,127,.12)); box-shadow: 0 6px 18px rgba(0,0,0,.25); border-radius: 8px; }
.ld-dz-sec.is-dragging .ld-dz-grip { cursor: grabbing; }
.ld-dz-move .k-btn { min-height: 44px; padding: 0 10px; }
.ld-dz-warn:empty { display: none; }
.ld-dz-warn { display: grid; gap: 8px; margin-bottom: 12px; }
.ld-dz-prev-wrap { min-width: 0; }
.ld-dz-prev { gap: 12px; padding: 10px; border-radius: 16px; border: 1px dashed var(--color-k-border); }
.ld-dz-prev .ld-hero { min-height: min(var(--ld-banner-h), 220px); }
.ld-dz-prev .ld-name { font-size: clamp(24px, 3vw, 34px); }
.ld-dz-prev .k-card { padding: 16px; }
.ld-dz-reset { margin-top: 4px; }

/* LD2: Copy team link under a standings row and under an open-team tile. Light, never wider than its cell. */
.ld-st-share { padding: 0 8px 6px 78px; border-bottom: 1px solid var(--color-k-border); margin-top: -1px; }
.ld-list > li:has(> .ld-st-share) > .ld-st-row { border-bottom: 0; }
.ld-open-cell { display: grid; gap: 8px; justify-items: stretch; align-content: start; min-width: 0; }
.ld-open-cell .ld-share, .ld-st-share .ld-share { max-width: 100%; }
.ld-open-cell .ld-share { justify-self: center; padding-inline: .5rem; font-size: .75rem; }
.ld-st-share { padding: 0 8px 4px 78px; }
.ld-st-share .ld-share { min-height: 28px; padding: .15rem .55rem; font-size: .75rem; border-color: transparent; background: transparent; color: var(--ld-link, var(--color-k-muted)); }

/* ══ FL (25 Oct 2026): premium league page ═══════════════════════════════════════════════════════════
 * Hero in two boxes (the league, and a "Join this league" card), a Featured leagues strip, a 40px ticker,
 * compact This Week, one-line standings with a 28px share icon, equal-height open-team tiles. Text sits in
 * bordered boxes, every size is 12px or more, and nothing is wider than the phone. */
.ld-page > * { min-width: 0; max-width: 100%; }
.ld-hero { min-height: 0; align-items: stretch; }
.ld-hero-blur { position: absolute; z-index: -2; left: 50%; top: 50%; width: 140%; height: 140%; max-width: none; object-fit: cover;
  transform: translate(-50%, -50%) scale(1.15); filter: blur(46px) saturate(1.3); opacity: .5; pointer-events: none; }
.ld-hero-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px; align-items: stretch; }
.ld-hero-main, .ld-join { min-width: 0; border: 1px solid rgba(255,255,255,.22); border-radius: calc(var(--ld-card-r) - 2px); background: rgba(12,15,20,.5); backdrop-filter: blur(6px); }
.ld-hero-main { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 12px; padding: 18px 14px; }
.ld-hero-id { align-items: center; }
.ld-crests { justify-content: center; }
.ld-crest { width: 96px; height: 96px; border-radius: 24px; }
.ld-crest--team { width: 44px; height: 44px; margin-left: -14px; border-radius: 50%; }
.ld-ribbon { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: #1c1400; background: linear-gradient(135deg, #ffe08a 0%, #f2b632 55%, #c98a0b 100%); border: 1px solid rgba(255,255,255,.45); box-shadow: 0 2px 14px rgba(242,182,50,.35); }
.ld-kicker { justify-content: center; }
.ld-name { font-size: clamp(28px, 8vw, 48px); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ld-headline { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ld-hero-pills { justify-content: center; }
.ld-join { display: grid; gap: 12px; padding: 14px; align-content: start; }
.ld-join-h { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ld-hero-ink); }
.ld-join .ld-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid rgba(255,255,255,.18); }
.ld-join .ld-stat { min-width: 0; padding: 8px 6px; }
.ld-join-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ld-join-chips li { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 4px; border-radius: 10px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08); }
.ld-join-chips img { width: 28px; height: 28px; object-fit: contain; }
.ld-join-more { font-size: 12px; font-weight: 800; color: var(--ld-hero-ink); padding: 0 8px !important; }
.ld-join .k-btnset { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 0; }
.ld-join .k-btn { width: 100%; min-height: 48px; justify-content: center; }
@media (min-width: 900px) {
  .ld-hero { min-height: 320px; }
  .ld-hero-in { grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 16px; padding: 20px; }
  .ld-hero-main { grid-template-columns: auto minmax(0, 1fr); justify-items: start; text-align: left; align-items: center; column-gap: 24px; padding: 24px; }
  .ld-hero-id { align-items: flex-start; }
  .ld-crests { justify-content: flex-start; }
  .ld-crest { width: 160px; height: 160px; border-radius: 36px; }
  .ld-crest--team { width: 64px; height: 64px; margin-left: -22px; }
  .ld-kicker, .ld-hero-pills { justify-content: flex-start; }
  .ld-hero-pills li { padding: 0 12px; line-height: 26px; height: 28px; }
  .ld-join { align-self: center; padding: 18px; }
}

/* Featured leagues strip: equal cards; on a phone it scrolls sideways inside itself with the next card peeking */
.ld-feat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.ld-feat-row > li { display: flex; min-width: 0; }
.ld-feat-card { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-height: 148px; padding: 14px 10px; border-radius: calc(var(--ld-card-r) - 2px);
  border: 1px solid color-mix(in srgb, #f2b632 55%, var(--color-k-border)); background: var(--color-k-surface-2, var(--color-k-surface)); color: var(--color-k-text); text-decoration: none; }
.ld-feat-card:hover { border-color: #f2b632; }
.ld-feat-ic { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; flex: none; background: #1d232c; border: 1px solid var(--color-k-border); }
.ld-feat-mono { display: grid; place-items: center; font-family: var(--font-k-display), var(--font-k-heading); font-style: italic; font-weight: 800; font-size: 20px; color: #fff; background: linear-gradient(140deg, var(--ld-accent), #161b23); }
.ld-feat-name { font-weight: 800; font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ld-feat-meta { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ld-tag-chip { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid var(--color-k-border); color: var(--color-k-muted); }
@media (max-width: 899px) {
  .ld-feat-row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-right: -4px; padding-right: 4px; }
  .ld-feat-row::-webkit-scrollbar { display: none; }
  .ld-feat-row > li { flex: 0 0 72%; scroll-snap-align: start; }
}

/* Ticker: one 40px bar, never wider than the page */
.ld-ticker { height: 40px; max-width: 100%; min-width: 0; overflow: hidden; }
.ld-ticker-track { min-width: 0; max-width: 100%; }
.ld-tick { padding: 0 14px; align-items: center; }

/* This Week: finals as tiles, everything unplayed as one row of chips */
.ld-more > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--ld-link); }
.ld-more > summary::-webkit-details-marker { display: none; }
.ld-more[open] > summary { display: none; }
.ld-gchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ld-gchip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--color-k-border); background: var(--color-k-surface-2, var(--color-k-surface)); font-size: 12px; font-weight: 700; color: var(--color-k-text); }
.ld-gchip img { width: 20px; height: 20px; object-fit: contain; }
.ld-gchip-at { font-weight: 400; color: var(--color-k-muted); }

/* Standings: one line per team, win percentage and streak, a 28px share icon at the end */
.ld-st-line { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--color-k-border); }
.ld-st-line > .ld-st-row { flex: 1; min-width: 0; border-bottom: 0; }
.ld-share-ico, .ld-share-gap { flex: none; width: 28px; height: 28px; }
.ld-share-ico { min-height: 28px !important; padding: 0 !important; border-radius: 8px; font-size: 0 !important; gap: 0 !important; border-color: transparent !important; background: transparent !important; color: var(--color-k-muted) !important; }
.ld-share-ico svg { width: 16px; height: 16px; }
.ld-share-ico .k-share-label, .ld-share-ico .k-share-done { display: none !important; }
.ld-share-ico.is-done { color: var(--ld-accent) !important; }
.ld-st-pct { font-size: 12px; font-weight: 700; color: var(--color-k-muted); min-width: 36px; text-align: right; }
.ld-st-streak { font-size: 12px; font-weight: 800; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--color-k-border); }
.ld-st-streak.is-w { color: var(--ld-accent); border-color: color-mix(in srgb, var(--ld-accent) 50%, var(--color-k-border)); }
.ld-st-streak.is-l { color: var(--color-k-muted); }
.ld-st-row { border-bottom: 0; }
.ld-st-rec { gap: 6px; }
@media (max-width: 559px) { .ld-st-pct, .ld-st-diff { display: none; } .ld-st-row { gap: 8px; } }

/* Open teams: equal-height tiles, the share button pinned to the bottom */
.ld-open-grid { grid-auto-rows: 1fr; }
.ld-open-cell { display: flex; flex-direction: column; gap: 8px; height: 100%; }
.ld-open-cell > .ld-open { flex: 1; align-content: center; }
.ld-open-cell > .ld-share { margin-top: auto; align-self: stretch; justify-content: center; }

/* Report / Block: text sits in a bordered box, the footer is one compact line */
.ld-box { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--color-k-border); border-radius: calc(var(--ld-card-r) - 4px); background: var(--color-k-surface-2, var(--color-k-surface)); }
.ld-foot { display: flex; justify-content: flex-end; margin-top: 8px; }
.ld-foot .k-btn { min-height: 36px; }
@media (max-width: 559px) { .ld-games { grid-template-columns: repeat(2, minmax(0, 1fr)); } }


/* ───────── 1557 / 1575-1577 (owner 10 Nov): the dashboard league page against the approved picture c_league/league-page.html ─────────
   The summary bar on top (account_side_broadcast.css .bc-strip--league), the crest whole inside the banner, the banner's ambient motion layer,
   Still to play as equal boxes in a filled grid, Standings beside Open Teams at 8 / 4, About This League beside Report or Block. */
.bc--league .bc-lstage-fx { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; border-radius: inherit; }
/* 1575: the crest sits whole inside the banner (it used to run 24 px past the right edge and read as cut in half) */
.bc--v3.bc--league .bc-lstage-cw { right: 24px; }
@media (max-width: 639px) { .bc--v3.bc--league .bc-lstage-cw { right: 12px; } }
.bc--league .bc-lstage-tags .bc-badge svg { width: 12px; height: 12px; }
.bc--league .bc-lt3--stage .bc-lt3-acts .k-btn--sm { min-height: 36px; height: 36px; padding: 0 12px; border-radius: 8px; }
/* 1577: Still to play, equal boxes that fill the row (the count picks the columns with the smallest gap) */
.bc--v3.bc--league .bc-todo-k { display: flex; align-items: baseline; gap: 8px; }
.bc--v3.bc--league .bc-todo-k b { color: var(--color-k-text); font: 600 var(--text-20, 20px) / 1 var(--bc-num); letter-spacing: 0; }
.bc--v3.bc--league .bc-todo-l { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.bc--v3.bc--league .bc-todo-g { justify-content: center; min-width: 0; }
/* 1611 (spec 45 delta 6): 2 across on the phone, 3 from 640, the computed count at 1024 and up */
@media (min-width: 640px) { .bc--v3.bc--league .bc-todo-l { grid-template-columns: repeat(min(var(--tc-n, 3), 3), minmax(0, 1fr)); } }
@media (min-width: 1024px) { .bc--v3.bc--league .bc-todo-l { grid-template-columns: repeat(var(--tc-n, 6), minmax(0, 1fr)); } }
/* Open Teams: the record line under the name, and Show all in place */
.bc--league #bc-open .bc-orow-t b { min-width: 0; overflow-wrap: anywhere; }
.bc--league .bc-omore > summary { display: flex; justify-content: center; margin: 12px 16px; list-style: none; cursor: pointer; }
.bc--league .bc-omore > summary::-webkit-details-marker { display: none; }
.bc--league .bc-omore[open] > summary { display: none; }
@media (min-width: 1024px) {
  /* the Back button lives in the top bar's path on a desktop (Leagues > this league); the phone keeps it */
  .bc--league > .bc-backrow { display: none; }
  .bc--league .bc-split--top { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: start; }
  /* About This League beside Report or Block (6 / 6), when they follow each other */
  .bc--v3.bc--league { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--k-space-md, 16px); align-items: start; }
  .bc--v3.bc--league > * { grid-column: 1 / -1; min-width: 0; }
  .bc--v3.bc--league > section[aria-label="About This League"]:has(+ .bc-seg--report) { grid-column: 1; }
  .bc--v3.bc--league > section[aria-label="About This League"] + .bc-seg--report { grid-column: 2; }
  .bc--v3.bc--league > .bc-seg--report .bc-report { grid-template-columns: 1fr; }
}

/* ───────── 1611 (owner 10 Nov, spec 45): the league page confirmed to the 1605 design ─────────
   The phone summary strip is ONE card; the phone standings are five columns (# crest team record streak); the Teams wall is back (8 across at 1024, 4 at 640, 2 on the phone). */
.bc--league .lv-tn-s { display: none; }
@media (max-width: 639px) {
  .bc--league .lv-tn-l { display: none; }
  .bc--league .lv-tn-s { display: inline; }
  /* the strip as one card: the league line across the row, ONE row of three figures (Week, Owners, Open), then the buttons */
  /* 11 Nov picture read: the base bar is a fixed 72 px row (account_side_broadcast.css .bc-strip), which clipped this card to a half-drawn strip: the height is released here */
  .bc--league .bc-strip--league { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; height: auto; min-height: 0; padding: 12px; border: 1px solid var(--color-k-border); border-top: 3px solid var(--tc, var(--color-k-brand)); border-radius: var(--k-radius, 12px); background: var(--color-k-surface); overflow: visible; }
  .bc--league .bc-strip--league .bc-cell { min-width: 0; height: auto; border: 0; background: none; box-shadow: none; }
  /* the phone bar rule .bc-strip>.bc-cell:not(...) sets this cell to 224 px: one more class and the element name out-rank it */
  .bc--league nav.bc-strip--league.bc-strip > .bc-cell.bc-cell--lbug { grid-column: 1 / -1; width: auto; max-width: none; flex: none; }
  .bc--league .bc-strip--league .bc-cell--fig:nth-child(3), .bc--league .bc-strip--league .bc-cell--fig:nth-child(4) { display: flex; }
  .bc--league .bc-strip--league .bc-cell--fig.bc-cell--teams { display: none; }
  .bc--league .bc-strip--league .bc-cell--fig b { font-size: var(--text-20, 20px); font-weight: 600; }
  /* LOOK-group_12-02 / 14-24 / 16-02: the label (Team Owners) wraps to a second line instead of being cut at 320 and 390 */
  .bc--league .bc-strip--league .bc-cell--fig > span { font-size: var(--text-14, 14px); white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
  /* LOOK-group_16-01 / 14-24: the buttons keep their words on the phone (the base phone rule hid them, leaving bare icons) */
  .bc--league .bc-strip--league .bc-cell--btns .bc-btxt, .bc--league .bc-strip--league .bc-cell--btns .bc-cl-t { display: inline; }
  .bc--league .bc-strip--league .bc-cell--btns .bc-cl { width: auto; padding: 0 var(--k-space-sm, 8px); }
  .bc--league .bc-strip--league .bc-cell--btns { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
  .bc--league .bc-strip--league .bc-cell--btns .k-btn { flex: 1 1 120px; min-height: 44px; }
  /* standings on the phone: one row of # crest team record streak; the name wraps, never ends in dots */
  .bc--league #bc-standings .bc-st { grid-template-columns: 24px 32px minmax(0, 1fr) auto auto; grid-template-rows: auto; column-gap: 8px; row-gap: 0; padding-top: 8px; padding-bottom: 8px; }
  .bc--league #bc-standings .bc-st > .bc-st-rk { grid-column: 1; grid-row: 1; }
  .bc--league #bc-standings .bc-st > :is(.bc-crest, .bc-lt-crest) { grid-column: 2; grid-row: 1; }
  .bc--league #bc-standings .bc-st > .bc-st-n { grid-column: 3; grid-row: 1; }
  .bc--league #bc-standings .bc-st > .bc-st-rec { grid-column: 4; grid-row: 1; font-size: var(--text-16, 16px); }
  .bc--league #bc-standings .bc-st > .bc-st-sk { grid-column: 5; grid-row: 1; min-width: 36px; text-align: right; }
  /* standings on the phone: # crest team record streak; Pct, Diff and Copy wait for the wider page */
  .bc--league #bc-standings .bc-st-pct, .bc--league #bc-standings .bc-st-d, .bc--league #bc-standings .bc-st > .bc-cl,
  .bc--league #bc-standings .bc-st-head span:nth-child(5), .bc--league #bc-standings .bc-st-head span:nth-child(7), .bc--league #bc-standings .bc-st-head span:nth-child(8) { display: none; }
}
.bc--league .bc-tts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 var(--k-space-md, 16px) var(--k-space-md, 16px); }
.bc--league .bc-tt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; text-align: center; border: 1px solid var(--color-k-border); border-radius: var(--k-radius, 12px); background: var(--color-k-surface); }
.bc--league .bc-tt-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.bc--league .bc-tt-n { font: 700 var(--text-14, 14px) / 1.25 var(--font-k-heading); color: var(--color-k-text); }
.bc--league .bc-tt-rec { font: 600 var(--text-14, 14px) / 1.2 var(--bc-num, var(--font-k-heading)); color: var(--color-k-muted); }
.bc--league .bc-tt .bc-cl { position: relative; z-index: 2; }
.bc--league .bc-tt.is-open { border-color: color-mix(in srgb, var(--k-hue-orange, #ff8a3d) 60%, var(--color-k-border)); }
@media (min-width: 640px) { .bc--league .bc-tts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* spec 45 delta 8: 8 across at 1440; a full team name needs about 150 px, so 4 under 1280 and 6 from 1280 (HUNT2 phone M2) */
@media (min-width: 1280px) { .bc--league .bc-tts { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 1440px) { .bc--league .bc-tts { grid-template-columns: repeat(8, minmax(0, 1fr)); } }

/* ───────── 11 Nov picture read: names are never cut (no ellipsis on a league or team name; they wrap) ───────── */
.bc--league .bc-lstage-t { max-width: 100%; }
.bc--league .bc-h1--xl { max-width: 100%; overflow-wrap: anywhere; hyphens: none; text-wrap: balance; }
@media (max-width: 429px) { .bc--league .bc-h1--xl { font-size: 26px; line-height: 1.08; } }
.bc--league .bc-lbug-n b { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.1; }
.bc--league .bc-strip--league { height: auto; min-height: 72px; }
.bc--league .bc-st { height: auto; min-height: 48px; }
.bc--league .bc-st-n { white-space: normal; overflow: visible; text-overflow: clip; flex-wrap: wrap; row-gap: 2px; }
.bc--league .bc-st-nt { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.bc--league .bc-tt-n, .bc--league #bc-open .bc-orow-t b, .bc--league .bc-ldr-n, .bc--league .bc-player-n { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }

