/* ══════════════════════════════════════════════════════════════════════
   LS PAGE SHELL
   /wp-content/themes/dt-the7-child/css/ls-page-shell.css

   The single source of truth for the page frame shared by Events,
   Leaderboard and Sires: full-bleed bands, container width, hero block and
   stats strip.

   WHY THIS EXISTS
   Each template previously carried its own copy of these rules, and they
   drifted: hero padding was 64px on Events but 56px on the other two, the
   h1 clamp differed, and Events still used an older full-bleed technique
   that pushed its content off-centre. Defining the frame once means the
   three pages align by construction rather than by remembering to make the
   same edit three times.

   FULL-BLEED
   Backgrounds are painted with a large box-shadow spread rather than
   negative viewport margins. `100vw` includes the scrollbar, so a
   vw-based bleed makes the document wider than the viewport — which tears
   the site header apart on resize, and clipping it to contain the overflow
   cuts content off the left edge. box-shadow does not affect layout, so
   nothing can overflow and there is nothing to clip.

   USAGE
   Enqueue after brand-overrides.css. Templates keep only their own
   component CSS (cards, tables, filters) and use these classes for the
   frame:

       <div class="ls-page">
         <div class="ls-page-hero">
           <div class="ls-page-inner"> … </div>
         </div>
         <div class="ls-page-body">
           <div class="ls-page-inner"> … </div>
         </div>
       </div>
   ══════════════════════════════════════════════════════════════════════ */

/* ── Bands ── */
.ls-page-hero,
.ls-page-body {
  box-sizing: border-box;
  clip-path: inset(0 -100vmax);
}
.ls-page-hero {
  background: var(--ls-ink-950);
  box-shadow: 0 0 0 100vmax var(--ls-ink-950);
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--ls-gold-line);

  /* Fixed band height so the three pages don't jump when navigating between
     them. Content is pinned to the top — so the eyebrow lands in the same
     place regardless of page — and any slack falls as dark space beneath.
     Sized off the Leaderboard, which is the tallest (it carries a status
     pill and a season switcher the others don't). Leaderboard's stack needs
     ~396px, so 400 leaves it just clear while trimming the empty space on
     the shorter pages. Tune with --ls-hero-min in tokens.css — no need to
     edit this file.

     NOTE: min-height alone is enough — a normal block box already places
     its content at the top and lets the slack fall below. Do NOT make this
     a flex container: .ls-page-inner would then shrink to fit its widest
     line instead of filling the container, and the hero would centre itself
     independently of the body below it. */
  min-height: var(--ls-hero-min, 400px);
}
.ls-page-body {
  background: var(--ls-bone-50);
  box-shadow: 0 0 0 100vmax var(--ls-bone-50);
  padding: 40px 0 72px;
}

/* ── Container ── */
.ls-page-inner {
  max-width: var(--ls-content-max, 1180px);
  margin: 0 auto;
  box-sizing: border-box;
  min-width: 0;
  text-align: left;
}

/* ── Hero ── */
.ls-page-eyebrow {
  font-family: var(--ls-font-cond);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  font-weight: 600;
  color: var(--ls-gold) !important;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ls-page-eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--ls-gold);
  display: inline-block;
  flex-shrink: 0;
}

.ls-page-hero h1 {
  font-family: var(--ls-font-display) !important;
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  text-align: left !important;
  text-transform: none !important;
  color: var(--ls-bone-50) !important;
  margin: 0 0 12px;
  overflow-wrap: break-word;
}
.ls-page-hero h1 em {
  color: var(--ls-gold-bright) !important;
  font-style: italic;
}

.ls-page-sub {
  font-family: var(--ls-font-sans) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.55;
  text-align: left !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: var(--ls-stone-300) !important;
  max-width: 600px;
  margin: 0;
}

/* Season / status pill */
.ls-page-note {
  font-family: var(--ls-font-cond);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11px;
  font-weight: 700;
  color: var(--ls-gold-deep) !important;
  background: var(--ls-gold-tint);
  border: 1px solid var(--ls-gold-line);
  border-radius: var(--ls-radius-pill);
  padding: 5px 14px;
  display: inline-block;
  margin: 0 0 14px;
}

/* ── Stats strip ── */
.ls-page-stats {
  display: flex;
  gap: 40px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.ls-page-stat-num {
  font-family: var(--ls-font-cond);
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  color: var(--ls-gold-bright) !important;
  font-variant-numeric: tabular-nums;
  display: block;
}
.ls-page-stat-lab {
  font-family: var(--ls-font-cond);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 11px;
  font-weight: 600;
  color: var(--ls-stone-400) !important;
  display: block;
  margin-top: 6px;
}

/* ── Section heading inside the light band ── */
.ls-page-sechead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.ls-page-sechead h2 {
  font-family: var(--ls-font-cond) !important;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 13px;
  font-weight: 700;
  color: var(--ls-ink-950) !important;
  margin: 0;
}
.ls-page-sechead p {
  font-family: var(--ls-font-sans);
  font-size: 13px;
  color: var(--ls-stone-500) !important;
  margin: 0;
}

/* ── Light-band text colours ──
   brand-overrides.css sets bone text globally for the dark site; the light
   band has to reassert ink locally or everything in it disappears. */
.ls-page-body,
.ls-page-body * { color: var(--ls-ink-900) !important; }
.ls-page-body h2,
.ls-page-body h3,
.ls-page-body .ls-page-sechead h2 { color: var(--ls-ink-950) !important; }
.ls-page-body .ls-page-sechead p { color: var(--ls-stone-500) !important; }

/* ── Responsive ── */
@media (max-width: 860px) {
  .ls-page-hero { padding: 44px 0 34px; min-height: 350px; }
  .ls-page-body { padding: 32px 0 56px; }
  .ls-page-stats { gap: 28px; }
}
@media (max-width: 560px) {
  /* No fixed height on phones — a stretched empty band wastes a whole screen */
  .ls-page-hero { padding: 36px 0 28px; min-height: 0; }
  .ls-page-body { padding: 26px 0 44px; }
  .ls-page-stats { gap: 20px 26px; }
  .ls-page-stat-num { font-size: 22px; }
  .ls-page-sechead { flex-direction: column; gap: 4px; }
}
