/* ==========================================================================
   VVHL — "Broadcast" preview
   --------------------------------------------------------------------------
   A second design direction for the league site, laid out like a major sports
   portal: sticky scoreboard strip, dark utility nav with an angled brand block,
   and a three-column front page (left rail / lead story / headlines rail).

   Unlike the rest of the preview this sheet is STANDALONE — it does not load
   styles.css. The portal look is light-on-white, and the donor sheet's dark
   surfaces would fight every rule here rather than cascade with them.

   League colors:
     Primary Teal  #00B3C9
     Secondary     #FFFFFF
     Dark Navy     #00264C
   ========================================================================== */

:root {
  /* Position colors — same standard as AGL (LW green, C red, RW blue,
     LD cyan, RD amber, G violet). Use these anywhere a position is shown. */
  --es-pos-lw: #4ade80;
  --es-pos-c: #f87171;
  --es-pos-rw: #60a5fa;
  --es-pos-ld: #22d3ee;
  --es-pos-rd: #fbbf24;
  --es-pos-g: #c084fc;

  --es-navy: #00264c;
  --es-navy-deep: #001b36;
  --es-teal: #00b3c9;
  --es-teal-dark: #008699;
  --es-teal-pale: #e6f7fa;

  --es-page: #f2f4f6;
  --es-card: #ffffff;
  --es-line: #dfe3e8;
  --es-line-soft: #eceef1;

  --es-ink: #16202b;
  --es-ink-soft: #445162;
  --es-muted: #78849a;

  --es-table-head: #f7f8fa;

  --es-shadow: 0 1px 3px rgba(0, 38, 76, 0.12);
  --es-rail: 300px;

  /* Type. Barlow for running text; its condensed cut for headlines, nav, and
     figures — the broadcast-graphics register. Both load from Google Fonts in
     each page's <head>; the fallbacks keep the layout honest if that fails. */
  --es-font-body: "Barlow", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto,
    Helvetica, Arial, sans-serif;
  --es-font-display: "Barlow Condensed", "Arial Narrow", "Segoe UI", -apple-system,
    Roboto, Helvetica, Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   Navy variant
   --------------------------------------------------------------------------
   The same layout with the light surfaces swapped for league navy. Every light
   value above is a token, so this block is a straight palette substitution —
   no component rules are repeated.

   Two things are NOT inverted, on purpose: the elements that were already dark
   (nav, banner, signup and promo cards, lead story, footer) keep their white
   text, and .es-btn-light stays white since it only ever sits on those.
   -------------------------------------------------------------------------- */

body.es-page.is-navy {
  --es-page: #000f1f;
  --es-card: #00264c;
  --es-line: #0d3a68;
  --es-line-soft: #073257;
  --es-table-head: #002f5c;

  --es-ink: #ffffff;
  --es-ink-soft: #b9d3e6;
  --es-muted: #7fa0bd;

  /* Hover tint has to darken rather than brighten, or every hover flashes. */
  --es-teal-pale: #013f57;

  --es-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

/* The scorebar and cards now share the nav's navy, so the chrome drops a shade
   to keep the header reading as a separate band. */
body.es-page.is-navy .es-nav { background: var(--es-navy-deep); }

/* Story art and the promo gradients were tuned against white; on navy they need
   a touch more lift to separate from the card behind them. */
body.es-page.is-navy .es-story-art {
  background:
    radial-gradient(circle at 70% 30%, rgba(53, 217, 236, 0.55), transparent 55%),
    linear-gradient(150deg, #0a4f80, #002348);
}

*,
*::before,
*::after { box-sizing: border-box; }

/* Author-origin display rules (flex, grid, inline-flex) beat the UA's
   [hidden]{display:none} regardless of specificity, so every component that
   sets display would silently ignore the attribute. One guard covers them. */
.es-page [hidden] { display: none !important; }

body.es-page {
  margin: 0;
  min-width: 320px;
  background: var(--es-page);
  color: var(--es-ink);
  font-family: var(--es-font-body);
  font-size: 15.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Wrapped in :where() so it contributes zero specificity. Written plainly as
   `.es-page a` it outranks every single-class component rule (0,1,1 beats
   0,1,0), which silently repainted .es-btn-light white-on-white and dropped the
   lead headline to body ink on a dark card. */
:where(.es-page a) { color: inherit; text-decoration: none; }

/* Headlines take the condensed cut. It is narrower than the body face, so
   they run a size up from where the system font sat and drop the negative
   tracking — condensed faces do not need tightening. */
.es-page h1,
.es-page h2,
.es-page h3 {
  margin: 0;
  font-family: var(--es-font-display);
  letter-spacing: 0.01em;
  line-height: 1.1;
  font-weight: 600;
}

/* Everything that reads as a label, a score, or a nav item gets the condensed
   cut too — one register for all the broadcast-graphic elements. */
.es-nav-links a,
.es-tool,
.es-events-pill,
.es-scorebar-league,
.es-game-top,
.es-game-row,
.es-brand span,
.es-banner-mark b,
.es-banner-title,
.es-kicker,
.es-head-tag,
.es-card-head h2,
.es-card-more,
.es-tab,
.es-table,
.es-pill,
.es-rank,
.es-fixture-time,
.es-fixture-score,
.es-list-mark,
.es-chip,
.es-btn,
.es-field > span {
  font-family: var(--es-font-display);
}

.es-shell {
  width: min(1320px, 100% - 2rem);
  margin: 0 auto;
}

/* ==========================================================================
   Scoreboard strip
   ========================================================================== */

.es-scorebar {
  position: relative;
  display: flex;
  align-items: stretch;
  background: var(--es-card);
  border-bottom: 1px solid var(--es-line);
}

.es-scorebar-lead {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0 1rem;
  border-right: 1px solid var(--es-line);
}

.es-events-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--es-line);
  border-radius: 4px;
  background: var(--es-card);
  color: var(--es-ink);
  font: inherit;
  font-family: var(--es-font-display);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.es-events-pill::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--es-ink-soft);
}

.es-scorebar-league {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--es-ink);
}

/* The rail scrolls horizontally; its own scrollbar would read as an artifact
   in a band this thin, so the chevron is the affordance instead. */
.es-scorebar-rail {
  flex: 1;
  min-width: 0;
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.es-scorebar-rail::-webkit-scrollbar { display: none; }

.es-game {
  flex: 0 0 auto;
  width: 168px;
  padding: 0.5rem 0.9rem 0.55rem;
  border-right: 1px solid var(--es-line-soft);
  display: block;
}

.es-game:hover { background: var(--es-teal-pale); }

.es-game-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--es-ink-soft);
  white-space: nowrap;
}

.es-game-net { color: var(--es-muted); font-weight: 500; }

.es-game-live {
  color: #d7263d;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.es-game-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d7263d;
}

.es-game-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  line-height: 1.6;
}

.es-game-row .es-abbr {
  font-weight: 500;
  letter-spacing: 0.02em;
}

.es-game-row .es-score {
  margin-left: auto;
  font-weight: 500;
  color: var(--es-ink-soft);
  font-variant-numeric: tabular-nums;
}

.es-game-row.is-winner .es-score,
.es-game-row.is-winner .es-abbr { color: var(--es-ink); }

.es-game-row.is-loser .es-abbr,
.es-game-row.is-loser .es-score { color: var(--es-muted); }

/* Team mark: a tinted square carrying the club initial, standing in for logo
   art the preview does not have. The tint is set per club from vvhl-espn.js. */
.es-chip {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 3px;
  background: var(--es-navy);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Uploaded club logo in place of the initial chip. */
.es-chip-logo {
  background: none;
  object-fit: contain;
  width: 22px;
  height: 22px;
}

/* Clubs page tiles: a band in the club's own colors. */
.es-club-tile {
  border-top: 3px solid var(--club, var(--es-teal));
}

.es-club-tile-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.es-club-tile-head .es-chip { width: 44px; height: 44px; font-size: 1.3rem; border-radius: 6px; }
.es-club-tile-head .es-chip-logo { width: 44px; height: 44px; }
.es-club-tile-head h3 { font-size: 1.25rem; }
.es-club-tile-head .es-kicker { margin: 0.15rem 0 0; }

/* Date separators inside the scores lists. */
.es-sched-date {
  padding: 0.7rem 1rem 0.3rem;
  border-top: 1px solid var(--es-line);
  font-family: var(--es-font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--es-ink);
}

.es-sched-date:first-child { border-top: 0; }

.es-scorebar-next {
  flex: 0 0 auto;
  width: 46px;
  border: 0;
  border-left: 1px solid var(--es-line);
  background: var(--es-card);
  color: var(--es-ink-soft);
  cursor: pointer;
  font-size: 1.1rem;
}

.es-scorebar-next:hover { background: var(--es-teal-pale); color: var(--es-teal-dark); }

/* ==========================================================================
   Utility nav
   ========================================================================== */

.es-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--es-navy);
  color: #ffffff;
}

/* Full-bleed, unlike the content shell: the brand block anchors to the left
   edge of the viewport and the links run from it. */
.es-nav-inner {
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
  width: 100%;
  padding-right: 1rem;
  min-height: 56px;
}

/* Angled brand block, echoing the slanted network bug a sports portal wears. */
.es-brand {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 2.4rem 0 1.5rem;
  margin-right: 0.6rem;
  color: #ffffff;
}

.es-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, var(--es-teal-dark), var(--es-teal));
  clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 100%, 0 100%);
}

.es-brand img { width: 34px; height: 34px; object-fit: contain; }

.es-brand span {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* flex: 1 1 0 matters — with the tools pinned right via margin-left: auto, a
   plain min-width: 0 item gets squeezed to zero on phones and the site loses
   its navigation. Growing into the leftover space keeps a scrollable strip. */
.es-nav-links {
  display: flex;
  flex: 1 1 0;
  align-items: stretch;
  gap: 0.15rem;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.es-nav-links::-webkit-scrollbar { display: none; }

.es-nav-links a {
  display: flex;
  align-items: center;
  padding: 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.es-nav-links a:hover { color: #ffffff; background: rgba(255, 255, 255, 0.07); }

.es-nav-links a.is-active {
  color: #ffffff;
  font-weight: 500;
  border-bottom-color: var(--es-teal);
}

.es-nav-tools {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Used on both <a> and <button>, so it carries the button resets — without
   them the toggle renders with the UA's grey fill and black border. */
.es-tool {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.6rem;
  border: 0;
  border-radius: 4px;
  background: none;
  font: inherit;
  font-family: var(--es-font-display);
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  cursor: pointer;
}

.es-tool:hover { background: rgba(255, 255, 255, 0.1); color: #ffffff; }

.es-tool svg { width: 17px; height: 17px; fill: currentColor; }

.es-tool-icon { padding: 0.5rem; }

/* --- dropdown menus ------------------------------------------------------
   A trigger carrying data-es-menu="name" toggles the sibling panel with
   data-es-menu-panel="name". Panels use the hidden attribute; the script
   closes them on outside click and Escape. */

.es-menu-wrap {
  position: relative;
  display: inline-flex;
}

.es-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  min-width: 170px;
  padding: 0.35rem;
  border: 1px solid var(--es-line);
  border-radius: 6px;
  background: var(--es-card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.es-menu a {
  display: block;
  padding: 0.55rem 0.8rem;
  border-radius: 4px;
  font-family: var(--es-font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--es-ink);
}

.es-menu a:hover { background: var(--es-teal-pale); color: var(--es-teal-dark); }

body.es-page.is-navy .es-menu a:hover { color: var(--es-teal); }

/* A small caret on buttons that open a menu. */
.es-btn-caret::after {
  content: "";
  margin-left: 0.55rem;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

@media (max-width: 900px) {
  .es-tool-label { display: none; }
}

/* Phones: brand and tools alone fill a row, so the links strip drops to its
   own scrollable row beneath them instead of being squeezed to nothing. */
@media (max-width: 600px) {
  .es-nav-inner { flex-wrap: wrap; }
  .es-brand { min-height: 52px; }
  .es-nav-links {
    order: 3;
    flex-basis: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .es-nav-links a { padding: 0.55rem 0.7rem; font-size: 0.82rem; }
}

/* ==========================================================================
   Promo banner
   ========================================================================== */

.es-banner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  margin: 1rem auto 0;
  padding: 1.15rem clamp(1rem, 3vw, 2rem);
  border-radius: 4px;
  background:
    radial-gradient(circle at 88% 50%, rgba(0, 179, 201, 0.45), transparent 55%),
    linear-gradient(100deg, var(--es-navy-deep), var(--es-navy) 60%, #0b4a76);
  color: #ffffff;
  /* No overflow: hidden — the Join dropdown hangs below this box. The
     gradient is a background and clips to the border-box on its own. */
}

.es-banner-mark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-right: clamp(1rem, 3vw, 2rem);
  border-right: 1px solid rgba(255, 255, 255, 0.28);
}

.es-banner-mark img { width: 40px; height: 40px; object-fit: contain; }

.es-banner-mark b { font-size: 1.4rem; font-weight: 500; letter-spacing: 0.02em; }

.es-banner-title {
  flex: 1;
  min-width: 0;
  font-size: clamp(1.3rem, 3vw, 2.3rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.es-banner-title small {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--es-teal);
}

.es-banner .es-btn { flex: 0 0 auto; }

/* Stack rather than wrap: wrapping let the button share a row with the title
   and squeeze it to one word per line. */
@media (max-width: 720px) {
  .es-banner { flex-direction: column; align-items: flex-start; gap: 0.9rem; }
  .es-banner-mark { border-right: 0; padding-right: 0; }
  .es-banner-title { width: 100%; }
}

/* Phones: the Top Events dropdown is a desktop affordance; dropping it gives
   the scoreboard rail the width back. */
@media (max-width: 600px) {
  .es-events-pill { display: none; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.es-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--es-teal);
  color: #00202c;
  font: inherit;
  font-family: var(--es-font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s ease;
}

.es-btn:hover { background: #2fd0e4; }

.es-btn-light { background: #ffffff; color: var(--es-navy); }
.es-btn-light:hover { background: var(--es-teal-pale); }

.es-btn-block { width: 100%; }

/* ==========================================================================
   Front page grid
   ========================================================================== */

.es-main {
  display: grid;
  grid-template-columns: var(--es-rail) minmax(0, 1fr) var(--es-rail);
  gap: 1rem;
  align-items: start;
  padding: 1rem 0 3rem;
}

@media (max-width: 1180px) {
  .es-main { grid-template-columns: minmax(0, 1fr) var(--es-rail); }
  .es-rail-left { display: none; }
}

@media (max-width: 860px) {
  .es-main { grid-template-columns: minmax(0, 1fr); }
  .es-rail-right { order: 3; }
}

.es-card {
  background: var(--es-card);
  border: 1px solid var(--es-line);
  border-radius: 6px;
  box-shadow: var(--es-shadow);
  overflow: hidden;
}

.es-card + .es-card { margin-top: 1rem; }

.es-card-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--es-line-soft);
}

.es-card-head h2 {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.es-card-head svg { width: 18px; height: 18px; fill: var(--es-teal-dark); }

.es-card-more {
  margin-left: auto;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--es-teal-dark);
}

.es-card-more:hover { text-decoration: underline; }

/* --- left rail --------------------------------------------------------- */

.es-signup {
  padding: 1.4rem 1.2rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 179, 201, 0.4), transparent 60%),
    linear-gradient(160deg, var(--es-navy) 0%, var(--es-navy-deep) 100%);
  color: #ffffff;
  text-align: center;
}

.es-signup h2 {
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.es-signup h2 em {
  display: block;
  font-style: normal;
  color: var(--es-teal);
}

.es-signup p {
  margin: 0.5rem 0 1.1rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
}

.es-list { list-style: none; margin: 0; padding: 0.35rem 0; }

.es-list li + li { border-top: 1px solid var(--es-line-soft); }

.es-list a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.62rem 1rem;
  font-size: 0.86rem;
  font-weight: 500;
}

.es-list a:hover { background: var(--es-teal-pale); color: var(--es-teal-dark); }

.es-list-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 3px;
  background: var(--es-navy);
  color: #ffffff;
  font-size: 0.58rem;
  font-weight: 500;
}

.es-list-mark.is-live { background: #d7263d; }
.es-list-mark.is-teal { background: var(--es-teal-dark); }

/* --- lead story -------------------------------------------------------- */

.es-lead {
  position: relative;
  display: block;
  min-height: clamp(320px, 42vw, 470px);
  border-radius: 6px;
  border: 1px solid var(--es-line);
  overflow: hidden;
  color: #ffffff;
  /* Stands in for a photo: rink lighting behind the crest. */
  background:
    radial-gradient(circle at 62% 34%, rgba(53, 217, 236, 0.55), transparent 46%),
    radial-gradient(circle at 20% 90%, rgba(0, 88, 150, 0.6), transparent 55%),
    linear-gradient(160deg, #01345f 0%, #001b36 55%, #000d1c 100%);
}

.es-lead::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.05) 0 2px,
    transparent 2px 46px
  );
}

.es-lead-crest {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(300px, 52%);
  transform: translate(-50%, -62%);
  filter: drop-shadow(0 18px 44px rgba(0, 179, 201, 0.45));
}

.es-lead-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(1.2rem, 3vw, 2.2rem);
  background: linear-gradient(to top, rgba(0, 9, 20, 0.95) 32%, transparent);
}

.es-lead-body h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  font-weight: 600;
  max-width: 22ch;
}

.es-lead-meta {
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
}

.es-lead:hover h1 { color: var(--es-teal); }

/* --- story modules ----------------------------------------------------- */

.es-stories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--es-line-soft);
}

.es-story {
  display: block;
  padding: 1rem;
  background: var(--es-card);
}

.es-story:hover { background: var(--es-teal-pale); }

.es-story-art {
  height: 118px;
  border-radius: 4px;
  margin-bottom: 0.7rem;
  background:
    radial-gradient(circle at 70% 30%, rgba(53, 217, 236, 0.5), transparent 55%),
    linear-gradient(150deg, #023a68, #001b36);
}

.es-story h3 { font-size: 1.2rem; font-weight: 500; }

.es-story p {
  margin: 0.4rem 0 0;
  font-size: 0.84rem;
  color: var(--es-ink-soft);
}

.es-kicker {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--es-teal-dark);
}

/* --- standings table --------------------------------------------------- */

.es-table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }

.es-table thead th {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--es-line);
  background: var(--es-table-head);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--es-muted);
  text-align: right;
}

.es-table thead th:first-child { text-align: left; }

.es-table td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--es-line-soft);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.es-table td:first-child { text-align: left; }

.es-table tbody tr:last-child td { border-bottom: 0; }
.es-table tbody tr:hover { background: var(--es-teal-pale); }

.es-team-cell {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
}

.es-seed {
  width: 1.15rem;
  color: var(--es-muted);
  font-size: 0.78rem;
  font-weight: 500;
}

/* --- headlines rail ---------------------------------------------------- */

.es-heads { list-style: none; margin: 0; padding: 0; }

.es-heads li + li { border-top: 1px solid var(--es-line-soft); }

.es-heads a {
  display: block;
  padding: 0.72rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
}

.es-heads a:hover { color: var(--es-teal-dark); text-decoration: underline; }

.es-head-tag {
  display: inline-block;
  margin-right: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--es-teal-dark);
}

.es-promo-card {
  padding: 1.5rem 1.2rem;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 179, 201, 0.35), transparent 65%),
    linear-gradient(160deg, var(--es-navy), var(--es-navy-deep));
  color: #ffffff;
}

.es-promo-card img { width: 96px; margin-bottom: 0.8rem; }

.es-promo-card h3 { font-size: 1.3rem; font-weight: 500; text-transform: uppercase; }

.es-promo-card p {
  margin: 0.45rem 0 1.1rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ==========================================================================
   Interior pages
   --------------------------------------------------------------------------
   Standings, clubs, schedule, stats, media, transactions, rulebook, join.
   Same chrome as the front page; content sits in a main column with the
   headlines rail beside it on wide screens.
   ========================================================================== */

.es-main-2col {
  grid-template-columns: minmax(0, 1fr) var(--es-rail);
}

@media (max-width: 860px) {
  .es-main-2col { grid-template-columns: minmax(0, 1fr); }
}

.es-page-head {
  padding: 0.4rem 0 1.2rem;
}

.es-page-head h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
}

.es-lede {
  margin: 0.5rem 0 0;
  max-width: 68ch;
  font-size: 0.95rem;
  color: var(--es-ink-soft);
}

.es-note {
  margin: 0;
  padding: 0.85rem 1rem;
  font-size: 0.84rem;
  color: var(--es-muted);
  border-top: 1px solid var(--es-line-soft);
}

/* Empty state for any card whose data has not arrived yet. */
.es-empty {
  margin: 0;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--es-muted);
}

.es-scorebar-empty {
  display: flex;
  align-items: center;
  padding: 0 1.2rem;
  font-size: 0.82rem;
  color: var(--es-muted);
}

.es-card-head span:not(.es-card-more) {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--es-muted);
}

/* --- tabs: the portal's underline sub-nav --------------------------------- */

.es-tabs {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--es-line);
  overflow-x: auto;
  scrollbar-width: none;
}

.es-tabs::-webkit-scrollbar { display: none; }

.es-tab {
  padding: 0.6rem 0.95rem;
  margin-bottom: -2px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: var(--es-ink-soft);
  font: inherit;
  font-family: var(--es-font-display);
  font-size: 1rem;
  letter-spacing: 0.03em;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.es-tab:hover { color: var(--es-ink); }

.es-tab.is-active {
  color: var(--es-ink);
  border-bottom-color: var(--es-teal);
}

/* --- tables ------------------------------------------------------------- */

.es-table-wrap {
  overflow-x: auto;
}

.es-table td.es-td-text,
.es-table th.es-th-text {
  text-align: left;
}

.es-table td.es-td-text {
  font-variant-numeric: normal;
  white-space: normal;
}

.es-table td strong { color: var(--es-ink); }

.es-rank {
  display: inline-grid;
  place-items: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.3rem;
  border-radius: 3px;
  background: var(--es-teal-pale);
  color: var(--es-teal-dark);
  font-size: 0.85rem;
  font-weight: 500;
}

body.es-page.is-navy .es-rank { color: var(--es-teal); }

.es-pill {
  display: inline-block;
  padding: 0.14rem 0.5rem;
  border-radius: 3px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--es-teal-pale);
  color: var(--es-teal-dark);
  white-space: nowrap;
}

body.es-page.is-navy .es-pill { color: var(--es-teal); }

.es-pill.is-win { background: rgba(22, 163, 74, 0.14); color: #15803d; }
.es-pill.is-loss { background: rgba(215, 38, 61, 0.12); color: #b91c1c; }
.es-pill.is-live { background: rgba(215, 38, 61, 0.12); color: #d7263d; }

body.es-page.is-navy .es-pill.is-win { background: rgba(22, 163, 74, 0.22); color: #6ee7a0; }
body.es-page.is-navy .es-pill.is-loss { background: rgba(215, 38, 61, 0.22); color: #ff8b9c; }
body.es-page.is-navy .es-pill.is-live { background: rgba(215, 38, 61, 0.22); color: #ff8b9c; }

/* --- tile grid: clubs, records, rules, steps ----------------------------- */

.es-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--es-line-soft);
}

.es-tile {
  padding: 1rem 1.1rem;
  background: var(--es-card);
}

.es-tile h3 {
  font-size: 1.2rem;
}

.es-tile p {
  margin: 0.4rem 0 0;
  font-size: 0.86rem;
  color: var(--es-ink-soft);
}

.es-tile .es-kicker { margin-bottom: 0.35rem; }

/* --- fixtures: schedule rows -------------------------------------------- */

.es-fixture {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--es-line-soft);
  font-size: 1rem;
}

.es-fixture:first-of-type { border-top: 0; }

.es-fixture-time {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--es-teal-dark);
}

body.es-page.is-navy .es-fixture-time { color: var(--es-teal); }

.es-fixture-teams {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-weight: 500;
}

.es-fixture-teams .es-vs {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--es-muted);
}

.es-fixture-score {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.es-fixture-score small {
  margin-left: 0.3rem;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--es-muted);
}

@media (max-width: 560px) {
  .es-fixture { grid-template-columns: 4.5rem minmax(0, 1fr); }
  .es-fixture > :last-child { grid-column: 2; justify-self: start; }
}

/* --- form: join page ---------------------------------------------------- */

.es-form {
  display: grid;
  gap: 1rem;
  max-width: 560px;
  padding: 1rem;
}

.es-field {
  display: grid;
  gap: 0.35rem;
}

.es-field > span {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--es-muted);
}

.es-field input,
.es-field textarea,
.es-field select {
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--es-line);
  border-radius: 4px;
  background: var(--es-page);
  color: var(--es-ink);
  font: inherit;
  font-size: 0.92rem;
}

.es-field input:focus,
.es-field textarea:focus,
.es-field select:focus {
  outline: 2px solid var(--es-teal);
  outline-offset: 1px;
}

.es-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.es-form-tight { padding-top: 0; }

.es-field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.es-req {
  margin-left: 0.4rem;
  font-style: normal;
  font-weight: 500;
  color: var(--es-teal);
}

/* Discord's blurple, kept as-is: the button is recognisable because of it. */
.es-btn-discord {
  gap: 0.55rem;
  background: #5865f2;
  color: #ffffff;
  justify-self: start;
}

.es-btn-discord:hover { background: #4752c4; }

.es-btn-discord svg { width: 20px; height: 20px; fill: currentColor; }

.es-discord-linked {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--es-line);
  border-radius: 4px;
  background: var(--es-page);
  font-size: 0.92rem;
}

.es-discord-linked strong { color: var(--es-teal); }

.es-link-btn {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.85rem;
  color: var(--es-muted);
  text-decoration: underline;
  cursor: pointer;
}

.es-link-btn:hover { color: var(--es-ink); }

.es-form-status {
  margin: 0;
  padding: 0.7rem 0.9rem;
  border-radius: 4px;
  font-size: 0.9rem;
  background: var(--es-page);
  color: var(--es-ink-soft);
}

.es-form-status.is-error { background: rgba(215, 38, 61, 0.14); color: #ff8b9c; }
.es-form-status.is-ok    { background: rgba(22, 163, 74, 0.16); color: #6ee7a0; }

body.es-page:not(.is-navy) .es-form-status.is-error { color: #b91c1c; }
body.es-page:not(.is-navy) .es-form-status.is-ok    { color: #15803d; }

.es-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--es-muted);
}

.es-divider::before,
.es-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--es-line);
}

.es-note a { color: var(--es-teal); }

/* The hCaptcha iframe is a fixed 303px wide; keep it from overflowing narrow
   phones by letting the host scroll rather than the page. */
#join-captcha { max-width: 100%; overflow-x: auto; }

/* --- nav account menu, signed-in state -------------------------------- */

.es-menu-user {
  padding: 0.55rem 0.8rem 0.4rem;
  border-bottom: 1px solid var(--es-line-soft);
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
  color: var(--es-muted);
}

.es-menu-user strong {
  display: block;
  font-family: var(--es-font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--es-ink);
}

.es-menu button {
  display: block;
  width: 100%;
  padding: 0.55rem 0.8rem;
  border: 0;
  border-radius: 4px;
  background: none;
  text-align: left;
  font-family: var(--es-font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--es-ink);
  cursor: pointer;
}

.es-menu button:hover { background: var(--es-teal-pale); color: var(--es-teal-dark); }

body.es-page.is-navy .es-menu button:hover { color: var(--es-teal); }

/* Header button that only admin-role members receive (injected by script). */
.es-tool-admin {
  padding: 0.35rem 0.75rem;
  border-radius: 3px;
  background: var(--es-teal);
  color: #00202c;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.es-tool-admin:hover { background: #2fd0e4; color: #00202c; }

.es-tool-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--es-teal);
}

/* ==========================================================================
   Admin portal
   ========================================================================== */

.es-admin-badge {
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  background: var(--es-teal);
  color: #00202c;
  font-family: var(--es-font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.es-admin-gate {
  display: grid;
  place-items: start center;
  padding: clamp(2rem, 8vh, 5rem) 0 3rem;
}

.es-admin-gate-card { width: min(440px, 100%); }

.es-admin-main { padding: 1rem 0 3rem; }

.es-admin-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.es-admin-toolbar .es-tabs { margin-bottom: 0; flex: 1 1 auto; }

.es-admin-search {
  flex: 0 1 280px;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--es-line);
  border-radius: 4px;
  background: var(--es-card);
  color: var(--es-ink);
  font: inherit;
  font-size: 0.92rem;
}

.es-admin-search:focus { outline: 2px solid var(--es-teal); outline-offset: 1px; }

.es-admin-table td { vertical-align: middle; }

.es-admin-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.es-admin-actions {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.es-admin-action {
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--es-line);
  border-radius: 3px;
  background: none;
  color: var(--es-ink-soft);
  font-family: var(--es-font-display);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  white-space: nowrap;
}

.es-admin-action:hover { border-color: var(--es-teal); color: var(--es-ink); }
.es-admin-action.is-approve { border-color: rgba(22, 163, 74, 0.5); color: #6ee7a0; }
.es-admin-action.is-approve:hover { background: rgba(22, 163, 74, 0.18); }
.es-admin-action.is-danger { border-color: rgba(215, 38, 61, 0.45); color: #ff8b9c; }
.es-admin-action.is-danger:hover { background: rgba(215, 38, 61, 0.18); }

body.es-page:not(.is-navy) .es-admin-action.is-approve { color: #15803d; }
body.es-page:not(.is-navy) .es-admin-action.is-danger  { color: #b91c1c; }

.es-admin-role {
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--es-line);
  border-radius: 3px;
  background: var(--es-page);
  color: var(--es-ink);
  font-family: var(--es-font-display);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.es-admin-role.is-admin { border-color: var(--es-teal); color: var(--es-teal); }
.es-admin-role.is-media { border-color: #a78bfa; color: #c4b5fd; }

.es-admin-toggle {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--es-ink-soft);
  cursor: pointer;
}

.es-admin-toggle input { margin-top: 0.3rem; width: 18px; height: 18px; accent-color: var(--es-teal); }
.es-admin-toggle strong { color: var(--es-ink); }

/* --- tool pages: list + editor split ------------------------------------ */

.es-admin-split {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 1.3fr);
  gap: 1rem;
  align-items: start;
}

.es-admin-split-wide { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); }

.es-admin-split > div > .es-card + .es-card { margin-top: 1rem; }

@media (max-width: 900px) {
  .es-admin-split, .es-admin-split-wide { grid-template-columns: minmax(0, 1fr); }
}

.es-admin-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.es-admin-btn-row .es-admin-action { padding: 0.55rem 0.9rem; }

.es-admin-toolbar-note {
  font-size: 0.86rem;
  color: var(--es-muted);
  align-self: center;
}

.es-admin-picker { min-width: 260px; }

/* Selectable rows in the left list. */
.es-admin-rows { list-style: none; margin: 0; padding: 0; }

.es-admin-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-top: 1px solid var(--es-line-soft);
  box-shadow: inset 0 0 0 0 var(--es-teal);
  transition: background 0.15s ease, box-shadow 0.2s ease;
}

.es-admin-row:first-child { border-top: 0; }
.es-admin-row:hover { background: var(--es-teal-pale); }
.es-admin-row.is-selected { background: var(--es-teal-pale); box-shadow: inset 4px 0 0 0 var(--es-teal); }

.es-admin-row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 0;
  background: none;
  text-align: left;
  font: inherit;
  color: var(--es-ink);
  cursor: pointer;
}

.es-admin-row-main > span { display: flex; flex-direction: column; min-width: 0; }
.es-admin-row-main strong { font-family: var(--es-font-display); font-size: 1.1rem; font-weight: 600; }
.es-admin-row-meta { font-size: 0.8rem; color: var(--es-muted); font-weight: 400; }

.es-admin-row-pills { display: flex; gap: 0.3rem; padding-right: 1rem; }

.es-admin-row-logo { width: 32px; height: 32px; object-fit: contain; flex: 0 0 auto; }

.es-admin-swatches { display: flex; gap: 3px; margin-left: auto; }
.es-admin-swatches i { width: 14px; height: 14px; border-radius: 3px; border: 1px solid rgba(255, 255, 255, 0.2); }

/* Color field: native picker + hex text side by side. */
.es-admin-color { display: flex; gap: 0.5rem; align-items: center; }
.es-admin-color input[type="color"] { width: 44px; height: 38px; padding: 2px; border: 1px solid var(--es-line); border-radius: 4px; background: var(--es-page); cursor: pointer; }
.es-admin-color input[type="text"] { flex: 1; font-family: monospace; }

.es-admin-logo-row { display: flex; align-items: center; gap: 1rem; }
.es-admin-logo-preview { width: 64px; height: 64px; object-fit: contain; border-radius: 6px; background: var(--es-page); padding: 4px; }
.es-field input[type="file"] { color: var(--es-ink-soft); font-size: 0.86rem; }

/* Clubs-in-event checklist. */
.es-admin-checklist { padding: 0.4rem 0; }

.es-admin-check {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 1rem;
  border-top: 1px solid var(--es-line-soft);
  cursor: pointer;
}

.es-admin-check:first-child { border-top: 0; }
.es-admin-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--es-teal); }
.es-admin-check-name { flex: 1; font-weight: 500; }
.es-admin-seed { width: 4.5rem; padding: 0.3rem 0.5rem; border: 1px solid var(--es-line); border-radius: 3px; background: var(--es-page); color: var(--es-ink); font: inherit; font-size: 0.86rem; }
.es-admin-seed:disabled { opacity: 0.4; }

/* Generator day picker. */
.es-admin-days { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.es-admin-days label {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.35rem 0.7rem; border: 1px solid var(--es-line); border-radius: 3px;
  font-family: var(--es-font-display); font-size: 0.95rem; cursor: pointer;
}
.es-admin-days label:has(input:checked) { border-color: var(--es-teal); background: var(--es-teal-pale); color: var(--es-teal); }
.es-admin-days input { accent-color: var(--es-teal); }

/* Schedule list. */
.es-admin-date {
  display: flex; align-items: baseline; gap: 0.7rem;
  padding: 0.7rem 1rem 0.4rem;
  border-top: 1px solid var(--es-line);
  font-family: var(--es-font-display);
}
.es-admin-date:first-child { border-top: 0; }
.es-admin-date strong { font-size: 1.05rem; font-weight: 600; }
.es-admin-date span { font-size: 0.82rem; color: var(--es-muted); }

.es-admin-game {
  display: grid;
  grid-template-columns: 5.2rem minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem 1rem;
  border-top: 1px solid var(--es-line-soft);
}

.es-admin-game.is-final { background: rgba(0, 179, 201, 0.05); }
.es-admin-game-time { font-family: var(--es-font-display); font-size: 0.9rem; color: var(--es-teal); }
.es-admin-game-teams { display: flex; align-items: center; gap: 0.4rem; font-family: var(--es-font-display); font-size: 1.05rem; }
.es-admin-game-teams b { font-weight: 600; }

.es-admin-result { display: flex; align-items: center; gap: 0.35rem; }
.es-admin-score { width: 3rem; padding: 0.3rem 0.4rem; text-align: center; border: 1px solid var(--es-line); border-radius: 3px; background: var(--es-page); color: var(--es-ink); font-family: var(--es-font-display); font-size: 1rem; }
.es-admin-dash { color: var(--es-muted); }
.es-admin-result .es-admin-role { padding: 0.3rem 0.35rem; font-size: 0.85rem; }

@media (max-width: 760px) {
  .es-admin-game { grid-template-columns: 5rem minmax(0, 1fr); }
  .es-admin-result, .es-admin-game .es-admin-actions { grid-column: 2; }
}

/* --- dashboard ---------------------------------------------------------- */

/* Hero band: crest watermark bleeding off the right, date + View Site. */
.es-admin-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin: 1rem 0 1.25rem;
  padding: 1.5rem clamp(1.2rem, 3vw, 2.2rem);
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 50%, rgba(0, 179, 201, 0.4), transparent 45%),
    linear-gradient(100deg, #001b36 0%, #00264c 55%, #0a4a78 100%);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.es-admin-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 46px);
  pointer-events: none;
}

.es-admin-hero > * { position: relative; }

.es-admin-hero-crest {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0, 179, 201, 0.5));
}

.es-admin-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.es-admin-hero .es-lede { color: rgba(255, 255, 255, 0.78); margin-top: 0.3rem; }

.es-admin-hero-side {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  flex: 0 0 auto;
}

.es-admin-hero-date {
  font-family: var(--es-font-display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--es-teal);
}

@media (max-width: 720px) {
  .es-admin-hero { flex-wrap: wrap; }
  .es-admin-hero-side { margin-left: 0; align-items: flex-start; flex-direction: row; width: 100%; justify-content: space-between; }
}

.es-admin-main > .es-card + .es-card,
.es-admin-main > .es-admin-boards + .es-card,
.es-admin-main > .es-card + .es-admin-boards { margin-top: 1rem; }

.es-admin-main .es-card { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25); }

.es-admin-main .es-card-head {
  border-bottom: 2px solid rgba(0, 179, 201, 0.35);
}

.es-admin-refresh {
  width: 30px;
  height: 30px;
  border: 1px solid var(--es-line);
  border-radius: 4px;
  background: none;
  color: var(--es-ink-soft);
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.es-admin-refresh:hover { border-color: var(--es-teal); color: var(--es-ink); transform: rotate(180deg); }

/* Members tab badge. */
.es-admin-tab-badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  margin-left: 0.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--es-teal);
  color: #00202c;
  font-size: 0.78rem;
  font-weight: 600;
  vertical-align: middle;
}

/* --- glance tiles --- */

.es-admin-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: var(--es-line-soft);
}

/* Horizontal: icon disc on the left, figure and caption stacked beside it.
   Deliberately not the stacked label-over-number box the AGL admin uses, and
   nothing lifts on hover — the accent bar widens instead. */
.es-admin-status-tile {
  --tile: var(--es-teal);
  --tile-rgb: 0, 179, 201;
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-areas:
    "icon value"
    "icon label"
    "icon hint";
  column-gap: 1rem;
  row-gap: 0.15rem;
  align-content: center;
  padding: 1.15rem 1.2rem;
  background: var(--es-card);
  box-shadow: inset 3px 0 0 rgba(var(--tile-rgb), 0.5);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.es-admin-status-tile:hover {
  background: var(--es-teal-pale);
  box-shadow: inset 7px 0 0 var(--tile);
}

.es-admin-status-tile.is-teal   { --tile: #00b3c9; --tile-rgb: 0, 179, 201; }
.es-admin-status-tile.is-green  { --tile: #22c55e; --tile-rgb: 34, 197, 94; }
.es-admin-status-tile.is-amber  { --tile: #f59e0b; --tile-rgb: 245, 158, 11; }
.es-admin-status-tile.is-violet { --tile: #a78bfa; --tile-rgb: 167, 139, 250; }
.es-admin-status-tile.is-blue   { --tile: #60a5fa; --tile-rgb: 96, 165, 250; }
.es-admin-status-tile.is-slate  { --tile: #94a3b8; --tile-rgb: 148, 163, 184; }

.es-admin-status-tile.is-attention { box-shadow: inset 5px 0 0 var(--tile); }
.es-admin-status-tile.is-attention .es-admin-status-icon { background: var(--tile); color: #00131f; }

.es-admin-status-tile.is-muted { opacity: 0.7; }
.es-admin-status-tile.is-muted .es-admin-status-value { color: var(--es-muted); font-size: 1.6rem; }

.es-admin-status-icon {
  grid-area: icon;
  align-self: center;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(var(--tile-rgb), 0.16);
  color: var(--tile);
}

.es-admin-status-icon svg { width: 24px; height: 24px; fill: currentColor; }

/* Sentence case in the body face — the AGL board is uppercase throughout. */
.es-admin-status-label {
  grid-area: label;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--es-ink);
}

.es-admin-status-value {
  grid-area: value;
  font-family: var(--es-font-display);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
  color: var(--tile);
}

.es-admin-status-hint {
  grid-area: hint;
  font-size: 0.82rem;
  color: var(--es-muted);
}

/* --- boards --- */

.es-admin-boards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}

.es-admin-boards .es-card + .es-card { margin-top: 0; }

.es-admin-recent-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 400;
  color: var(--es-ink-soft);
}

.es-admin-recent-text strong { color: var(--es-ink); font-weight: 600; }

.es-empty small { display: block; margin-top: 0.4rem; font-size: 0.8rem; opacity: 0.8; }

/* --- tool rows ---
   A two-column list of rows with hairline dividers — not AGL's gapped grid of
   bordered boxes. The kicker (Events, Clubs…) is dropped visually: the row
   title already says it, and the eyebrow-over-heading pairing is AGL's tell. */

.es-admin-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--es-line-soft);
}

.es-admin-card-link {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  grid-template-areas:
    "icon strong arrow"
    "icon small arrow";
  column-gap: 1rem;
  align-items: center;
  padding: 1rem 1.2rem;
  background: var(--es-card);
  box-shadow: inset 0 0 0 0 var(--es-teal);
  transition: background 0.16s ease, box-shadow 0.2s ease;
}

.es-admin-card-link::after {
  content: "\203A";
  grid-area: arrow;
  font-family: var(--es-font-display);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--es-muted);
  transition: color 0.16s ease, transform 0.16s ease;
}

.es-admin-card-link:hover {
  background: var(--es-teal-pale);
  box-shadow: inset 4px 0 0 0 var(--es-teal);
}

.es-admin-card-link:hover::after { color: var(--es-teal); transform: translateX(3px); }

.es-admin-card-icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 179, 201, 0.14);
  color: var(--es-teal);
}

.es-admin-card-icon svg { width: 22px; height: 22px; fill: currentColor; }

.es-admin-card-link strong {
  grid-area: strong;
  font-family: var(--es-font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--es-ink);
}

.es-admin-card-link small {
  grid-area: small;
  font-size: 0.84rem;
  color: var(--es-ink-soft);
}

.es-admin-card-link .es-kicker { display: none; }

/* ==========================================================================
   Footer
   ========================================================================== */

.es-footer {
  background: var(--es-navy-deep);
  color: rgba(255, 255, 255, 0.72);
  padding: 2rem 0;
  font-size: 0.84rem;
}

.es-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.es-footer a { color: rgba(255, 255, 255, 0.72); }
.es-footer a:hover { color: var(--es-teal); }

/* --- admin: event portal ------------------------------------------------ */

.es-ep-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.es-ep-picker-field { flex: 1 1 260px; margin: 0; }
.es-ep-picker .es-admin-toolbar-note { flex: 2 1 260px; }
.es-ep-picker .es-admin-action { align-self: flex-end; margin-bottom: 0.15rem; }

.es-ep-head {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 1.25rem 1.75rem;
  align-items: start;
  padding: 1.25rem;
  margin-bottom: 1rem;
  background:
    linear-gradient(115deg, rgba(0, 179, 201, 0.16), transparent 55%),
    var(--es-card);
}

.es-ep-logo-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.es-ep-logo, .es-ep-logo-empty {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--es-page);
  padding: 6px;
}
.es-ep-logo-empty {
  display: grid;
  place-items: center;
  border: 1px dashed var(--es-line);
  color: var(--es-muted);
  font-size: 0.82rem;
}
.es-ep-logo-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: center; }
.es-ep-logo-actions label { cursor: pointer; }

.es-ep-head-main h2 {
  margin: 0.1rem 0 0.4rem;
  font-family: var(--es-font-display);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.05;
}

.es-ep-meta { display: flex; flex-wrap: wrap; gap: 0.35rem 0.5rem; align-items: center; margin-bottom: 0.6rem; }
.es-ep-meta .es-pill.is-off { opacity: 0.6; }
.es-ep-meta code { font-size: 0.78rem; color: var(--es-muted); }
.es-ep-meta a { color: var(--es-teal); }
.es-ep-desc { margin: 0 0 0.75rem; color: var(--es-ink-soft); font-size: 0.92rem; max-width: 60ch; }
.es-ep-links { margin-top: 0.25rem; }

.es-ep-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(96px, auto));
  gap: 0.5rem;
}
.es-ep-stat {
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--es-line-soft);
  border-radius: 6px;
  background: rgba(0, 179, 201, 0.06);
}
.es-ep-stat strong { display: block; font-family: var(--es-font-display); font-size: 1.6rem; font-weight: 600; line-height: 1; color: var(--es-teal); }
.es-ep-stat span { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--es-muted); }

.es-ep-times { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.5rem; }
.es-ep-time {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.4rem 0.3rem 0.7rem;
  border: 1px solid var(--es-teal);
  border-radius: 3px;
  background: var(--es-teal-pale);
  color: var(--es-teal);
  font-family: var(--es-font-display);
  font-size: 0.95rem;
}
.es-ep-time button {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
}
.es-ep-time button:hover { opacity: 1; }
.es-ep-time-add { display: flex; gap: 0.5rem; align-items: center; }
.es-ep-time-add input {
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--es-line);
  border-radius: 4px;
  background: var(--es-page);
  color: var(--es-ink);
  font: inherit;
}
.es-field small { font-weight: 400; letter-spacing: 0; text-transform: none; }

.es-ep-add-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.6rem 1rem;
  background: var(--es-teal-pale);
  border-bottom: 1px solid var(--es-line-soft);
}
.es-ep-add-row select {
  flex: 1;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--es-line);
  border-radius: 4px;
  background: var(--es-page);
  color: var(--es-ink);
  font: inherit;
}

.es-ep-record { font-size: 0.82rem; color: var(--es-muted); white-space: nowrap; padding-right: 0.5rem; }

.es-ep-counts { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.4rem 1rem 0.8rem; }
.es-ep-count {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--es-line-soft);
  border-radius: 3px;
  font-family: var(--es-font-display);
  font-size: 0.95rem;
}
.es-ep-count strong { font-weight: 600; color: var(--es-teal); }

.es-pos {
  display: inline-block;
  min-width: 2.1em;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  text-align: center;
  font-family: var(--es-font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: #00131f;
  background: var(--es-teal);
}
.es-pos.is-LW { background: var(--es-pos-lw); }
.es-pos.is-C  { background: var(--es-pos-c); }
.es-pos.is-RW { background: var(--es-pos-rw); }
.es-pos.is-LD { background: var(--es-pos-ld); }
.es-pos.is-RD { background: var(--es-pos-rd); }
.es-pos.is-G  { background: var(--es-pos-g); }

/* Secondary position: outlined in the position color instead of filled. */
.es-pos.is-2 { background: transparent; border: 1px solid currentColor; }
.es-pos.is-2.is-LW { color: var(--es-pos-lw); }
.es-pos.is-2.is-C  { color: var(--es-pos-c); }
.es-pos.is-2.is-RW { color: var(--es-pos-rw); }
.es-pos.is-2.is-LD { color: var(--es-pos-ld); }
.es-pos.is-2.is-RD { color: var(--es-pos-rd); }
.es-pos.is-2.is-G  { color: var(--es-pos-g); }

.es-ep-avail { font-size: 0.8rem; color: var(--es-ink-soft); line-height: 1.4; }
.es-ep-avail b { font-weight: 500; color: var(--es-muted); }
.es-ep-avail i { font-style: normal; color: #ff8b9c; }
.es-ep-notes { max-width: 22ch; font-size: 0.82rem; color: var(--es-ink-soft); }

.es-ep-exp { display: inline-flex; border: 1px solid var(--es-line); border-radius: 3px; overflow: hidden; }
.es-ep-exp button {
  padding: 0.2rem 0.5rem;
  border: 0;
  background: none;
  color: var(--es-muted);
  font: inherit;
  font-family: var(--es-font-display);
  font-size: 0.82rem;
  cursor: pointer;
}
.es-ep-exp button + button { border-left: 1px solid var(--es-line); }
.es-ep-exp button.is-on { background: var(--es-teal); color: #00131f; }

.es-ep-sched { padding: 0.75rem 1rem 1rem; }
.es-ep-sched .es-admin-status-tile { padding: 0.9rem 1rem; grid-template-columns: minmax(0, 1fr); grid-template-areas: "value" "label"; }

.es-ep-standings td, .es-ep-standings th { text-align: center; }
.es-ep-standings .es-td-text { text-align: left; }
.es-ep-standings th:first-child { text-align: left; }

@media (max-width: 860px) {
  .es-ep-head { grid-template-columns: 110px minmax(0, 1fr); }
  .es-ep-stats { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .es-ep-logo, .es-ep-logo-empty { width: 96px; height: 96px; }
}

@media (max-width: 560px) {
  .es-ep-head { grid-template-columns: minmax(0, 1fr); }
  .es-ep-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --- public: season signups --------------------------------------------- */

.es-signup-events { display: grid; gap: 0.6rem; padding: 0.75rem 1rem 1rem; }

.es-signup-event {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--es-line);
  border-radius: 6px;
  background: var(--es-page);
  color: var(--es-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.es-signup-event:hover { border-color: var(--es-teal); }
.es-signup-event.is-selected { border-color: var(--es-teal); box-shadow: inset 4px 0 0 var(--es-teal); }
.es-signup-event img { width: 56px; height: 56px; object-fit: contain; }
.es-signup-event-text { display: flex; flex-direction: column; min-width: 0; }
.es-signup-event-text strong { font-family: var(--es-font-display); font-size: 1.25rem; font-weight: 600; }
.es-signup-event-meta { font-size: 0.82rem; color: var(--es-muted); }

.es-signup-head { display: flex; gap: 1rem; align-items: center; padding: 1rem 1rem 0.5rem; }
.es-signup-logo { width: 72px; height: 72px; object-fit: contain; border-radius: 6px; background: var(--es-page); padding: 4px; }
.es-signup-head-main h2 { margin: 0.1rem 0 0.35rem; font-family: var(--es-font-display); font-size: 1.7rem; font-weight: 600; line-height: 1.05; }
.es-signup-meta { display: flex; flex-wrap: wrap; gap: 0.35rem 0.8rem; align-items: center; font-size: 0.86rem; color: var(--es-muted); }
.es-signup-desc { margin: 0; padding: 0.25rem 1rem 0.75rem; color: var(--es-ink-soft); font-size: 0.92rem; }

.es-signup-prompt {
  margin: 0.5rem 1rem 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(0, 179, 201, 0.35);
  border-radius: 6px;
  background: var(--es-teal-pale);
  font-size: 0.92rem;
  line-height: 1.5;
}
.es-signup-prompt strong { display: block; font-family: var(--es-font-display); font-size: 1.1rem; font-weight: 600; }
.es-signup-prompt a { color: var(--es-teal); }

.es-signup-mine {
  padding: 0.6rem 0.9rem;
  border-left: 3px solid #22c55e;
  background: rgba(34, 197, 94, 0.1);
  font-size: 0.9rem;
}

.es-signup-avail { border: 1px solid var(--es-line-soft); border-radius: 6px; padding: 0.6rem 0.9rem 0.8rem; margin: 0; }
.es-signup-avail legend { padding: 0 0.3rem; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--es-muted); }
.es-signup-avail legend .es-req { margin-left: 0.3rem; }
.es-signup-avail-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.es-signup-avail-row label {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.7rem; border: 1px solid var(--es-line); border-radius: 3px;
  font-family: var(--es-font-display); font-size: 0.95rem; cursor: pointer;
}
.es-signup-avail-row label:has(input:checked) { border-color: var(--es-teal); background: var(--es-teal-pale); color: var(--es-teal); }
.es-signup-avail-row label.is-none:has(input:checked) { border-color: #ff8b9c; background: rgba(215, 38, 61, 0.12); color: #ff8b9c; }
.es-signup-avail-row input { accent-color: var(--es-teal); }

.es-signup-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.es-signup-list-wrap { border-top: 1px solid var(--es-line); margin-top: 0.5rem; }
.es-signup-list-wrap .es-card-head { flex-wrap: wrap; gap: 0.5rem; }
.es-signup-counts { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-left: auto; }
.es-signup-count { display: inline-flex; align-items: center; gap: 0.35rem; font-family: var(--es-font-display); font-size: 0.95rem; }
.es-signup-count strong { font-weight: 600; color: var(--es-teal); }

.es-signup-list { list-style: none; margin: 0; padding: 0.25rem 0 0.5rem; }
.es-signup-list li { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 1rem; border-top: 1px solid var(--es-line-soft); }
.es-signup-list li:first-child { border-top: 0; }
.es-signup-player { display: flex; flex-direction: column; min-width: 0; }
.es-signup-player strong { font-weight: 500; }
.es-signup-player-meta { font-size: 0.8rem; color: var(--es-muted); }

.es-signup-steps { margin: 0; padding: 0.5rem 1rem 1rem 2.2rem; font-size: 0.9rem; line-height: 1.6; color: var(--es-ink-soft); }
.es-signup-steps a { color: var(--es-teal); }

@media (max-width: 520px) {
  .es-signup-event { grid-template-columns: 44px minmax(0, 1fr); }
  .es-signup-event img { width: 44px; height: 44px; }
  .es-signup-event .es-pill { grid-column: 2; justify-self: start; }
}

/* --- public: media desk surfaces ---------------------------------------- */

.es-banner [data-es-banner-cta] { flex: 0 0 auto; }

.es-lead.has-image { background-size: cover; background-position: center; }
.es-lead.has-image::before { background: linear-gradient(to top, rgba(0, 9, 20, 0.6), rgba(0, 9, 20, 0.15)); }
.es-lead.has-image .es-lead-crest { opacity: 0.9; width: min(200px, 34%); transform: translate(-50%, -75%); }

.es-promo-card img.is-custom { width: 100%; max-height: 180px; object-fit: cover; border-radius: 4px; }
.es-promo-card .es-btn { display: inline-block; margin-top: 0.2rem; }

.es-story-art.has-image { background-size: cover; background-position: center; }
.es-story-meta { font-size: 0.76rem !important; color: var(--es-muted) !important; letter-spacing: 0.04em; }

.es-article { padding: 0 0 1rem; border-bottom: 1px solid var(--es-line); margin-bottom: 0.5rem; }
.es-article-art { height: clamp(180px, 34vw, 340px); background-size: cover; background-position: center; }
.es-article-body { padding: 1.1rem 1.25rem 0; }
.es-article-body h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 600; line-height: 1.1; margin: 0 0 0.4rem; }
.es-article-meta { margin: 0 0 0.9rem; font-size: 0.8rem; color: var(--es-muted); letter-spacing: 0.04em; text-transform: uppercase; }
.es-article-summary { font-size: 1.05rem; color: var(--es-ink-soft); margin: 0 0 1rem; }
.es-article-body p { line-height: 1.65; margin: 0 0 1rem; max-width: 70ch; }

.es-watch-live {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0.6rem 0.8rem;
  padding: 0.7rem 0.9rem;
  border-radius: 6px;
  background: rgba(215, 38, 61, 0.14);
  border: 1px solid rgba(215, 38, 61, 0.5);
}
.es-watch-live .es-list-mark { animation: es-pulse 1.4s ease-in-out infinite; }
.es-watch-live strong { display: block; font-weight: 500; }
.es-watch-live small { color: var(--es-muted); }
@keyframes es-pulse { 50% { opacity: 0.55; } }

.es-watch-list li { display: block; }
.es-watch-row { display: flex; gap: 0.8rem; align-items: center; padding: 0.55rem 1rem; }
a.es-watch-row:hover { background: var(--es-teal-pale); }
.es-watch-when { display: flex; flex-direction: column; min-width: 4.6rem; font-family: var(--es-font-display); line-height: 1.15; }
.es-watch-when b { font-weight: 600; font-size: 0.95rem; }
.es-watch-when i { font-style: normal; font-size: 0.8rem; color: var(--es-teal); }
.es-watch-row strong { display: block; font-weight: 500; font-size: 0.9rem; }
.es-watch-row small { color: var(--es-muted); }

.es-potw { display: flex; gap: 1rem; align-items: flex-start; padding: 0.9rem 1rem; }
.es-potw.is-full { padding: 1.1rem 1.25rem 1.2rem; }
.es-potw .es-chip { width: 48px; height: 48px; font-size: 1.4rem; border-radius: 6px; flex: 0 0 auto; }
.es-potw-img { width: 112px; height: 112px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; }
.es-potw:not(.is-full) .es-potw-img { width: 48px; height: 48px; }
.es-potw-body { min-width: 0; }
.es-potw-body h3 { margin: 0.1rem 0 0.25rem; font-family: var(--es-font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.1; }
.es-potw:not(.is-full) .es-potw-body h3 { font-size: 1.15rem; }
.es-potw-meta { margin: 0; font-size: 0.86rem; color: var(--es-ink-soft); }
.es-potw-blurb { margin-top: 0.7rem; font-size: 0.94rem; line-height: 1.6; }
.es-potw-blurb p { margin: 0 0 0.7rem; }
.es-potw-history { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--es-line); }
.es-potw-history li + li { border-top: 1px solid var(--es-line-soft); }

.es-rank-head { margin: 0; padding: 0.7rem 1rem 0; font-family: var(--es-font-display); font-size: 1rem; color: var(--es-muted); }
.es-rank-head b { font-weight: 600; color: var(--es-ink); }
.es-rank-intro { margin: 0.3rem 0 0; padding: 0 1rem; font-size: 0.9rem; color: var(--es-ink-soft); }
.es-rank-list { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.es-rank-list li { display: flex; align-items: center; gap: 0.8rem; padding: 0.55rem 1rem; border-top: 1px solid var(--es-line-soft); }
.es-rank-club { display: flex; align-items: center; gap: 0.7rem; flex: 1; min-width: 0; }
.es-rank-club:hover strong { color: var(--es-teal); }
.es-rank-club strong { display: block; font-weight: 500; }
.es-rank-club small { display: block; font-size: 0.8rem; color: var(--es-muted); }
.es-rank-move { font-family: var(--es-font-display); font-size: 0.9rem; min-width: 3rem; text-align: right; color: var(--es-muted); }
.es-rank-move.is-up { color: #22c55e; }
.es-rank-move.is-down { color: #ff8b9c; }
.es-rank-move.is-new { color: var(--es-teal); font-size: 0.75rem; letter-spacing: 0.08em; }

.es-gotn { padding: 0.9rem 1.25rem 1.2rem; }
.es-gotn-matchup { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin: 0.5rem 0 0.8rem; }
.es-gotn-side { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; flex: 1; text-align: center; }
.es-gotn-side .es-chip, .es-gotn-side .es-chip-logo { width: 56px; height: 56px; font-size: 1.6rem; border-radius: 8px; }
.es-gotn-side strong { font-family: var(--es-font-display); font-size: 1.1rem; font-weight: 600; }
.es-gotn-score { font-family: var(--es-font-display); font-size: 2rem; font-weight: 600; color: var(--es-teal); line-height: 1; }
.es-gotn-at { font-family: var(--es-font-display); font-size: 1.1rem; color: var(--es-muted); letter-spacing: 0.06em; }
.es-gotn h3 { margin: 0 0 0.4rem; font-family: var(--es-font-display); font-size: 1.4rem; font-weight: 600; }
.es-gotn-blurb { font-size: 0.94rem; line-height: 1.6; margin-bottom: 0.8rem; }
.es-gotn-blurb p { margin: 0 0 0.6rem; }

/* --- admin: media desk -------------------------------------------------- */

.es-media-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.es-media-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--es-line);
  border-radius: 4px;
  background: var(--es-card);
  color: var(--es-ink-soft);
  font: inherit;
  font-family: var(--es-font-display);
  font-size: 1rem;
  cursor: pointer;
}
.es-media-tabs button:hover { border-color: var(--es-teal); color: var(--es-ink); }
.es-media-tabs button.is-active { background: var(--es-teal); border-color: var(--es-teal); color: #00131f; }
.es-media-tabs button.is-active .es-admin-tab-badge { background: #00131f; color: var(--es-teal); }
.es-media-live-dot { width: 9px; height: 9px; border-radius: 50%; background: #d7263d; animation: es-pulse 1.4s ease-in-out infinite; }

.es-admin-help { margin: 0; padding: 0 1rem 0.6rem; font-size: 0.84rem; color: var(--es-muted); }
.es-form .es-admin-help { padding: 0; }
.es-field-narrow { flex: 0 0 9rem; }

.es-media-img {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.es-media-img img { width: 160px; height: 72px; object-fit: cover; border-radius: 4px; background: var(--es-page); }
.es-media-img.is-square img { width: 72px; height: 72px; }
.es-media-img em { font-style: normal; font-size: 0.84rem; color: var(--es-muted); }
.es-media-img label { cursor: pointer; }

.es-media-hl .es-admin-row-main strong { font-size: 1rem; font-weight: 500; }
.es-media-thumb { width: 44px; height: 30px; object-fit: cover; border-radius: 3px; }

.es-media-sched { padding: 0.4rem 1rem 0.6rem; display: flex; flex-direction: column; gap: 0.4rem; }
.es-media-sched-row { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.es-media-sched-row input {
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--es-line);
  border-radius: 4px;
  background: var(--es-page);
  color: var(--es-ink);
  font: inherit;
  font-size: 0.88rem;
  min-width: 0;
}
.es-media-sched-row input[type="date"] { flex: 0 0 9.2rem; }
.es-media-sched-row input[type="time"] { flex: 0 0 6.6rem; }
.es-media-sched-row input[type="text"] { flex: 1 1 8rem; }
.es-media-sched-row input.is-wide { flex: 2 1 12rem; }
.es-media-sched-row .es-admin-action { padding: 0.35rem 0.6rem; }

.es-media-rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.es-media-rank-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0.6rem; border: 1px solid var(--es-line-soft); border-radius: 4px; }
.es-media-rank-num { width: 1.6rem; text-align: center; font-family: var(--es-font-display); font-size: 1.1rem; font-weight: 600; color: var(--es-teal); }
.es-media-rank-row strong { min-width: 9rem; font-weight: 500; }
.es-media-rank-row input { flex: 1; min-width: 6rem; padding: 0.35rem 0.55rem; border: 1px solid var(--es-line); border-radius: 4px; background: var(--es-page); color: var(--es-ink); font: inherit; font-size: 0.86rem; }
.es-media-rank-row .es-admin-action { padding: 0.3rem 0.5rem; }

.es-pill.is-live { background: rgba(215, 38, 61, 0.18); color: #ff8b9c; }

/* --- lead scroller ------------------------------------------------------ */

.es-lead-scroller { position: relative; }
.es-scroller-track { position: relative; min-height: clamp(320px, 42vw, 470px); }
.es-scroller-track .es-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}
.es-scroller-track .es-slide.is-current { opacity: 1; pointer-events: auto; position: relative; }
.es-slide-kicker { color: var(--es-teal); margin-bottom: 0.4rem; }
.es-slide-title { font-size: clamp(1.7rem, 3.6vw, 2.9rem); font-weight: 600; max-width: 22ch; margin: 0; }
.es-slide:hover .es-slide-title { color: var(--es-teal); }
.es-slide-cta { display: inline-block; margin-top: 0.9rem; }

.es-scroller-arrow {
  position: absolute;
  top: 38%;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 13, 28, 0.55);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}
.es-scroller-arrow.is-prev { left: 0.75rem; }
.es-scroller-arrow.is-next { right: 0.75rem; }
.es-lead-scroller:hover .es-scroller-arrow, .es-scroller-arrow:focus-visible { opacity: 1; }
.es-scroller-arrow:hover { background: var(--es-teal); color: #00131f; }

.es-scroller-dots {
  position: absolute;
  right: 1rem;
  bottom: 0.9rem;
  z-index: 2;
  display: flex;
  gap: 0.4rem;
}
.es-scroller-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.es-scroller-dots button.is-current { background: var(--es-teal); transform: scale(1.25); }

@media (hover: none) { .es-scroller-arrow { opacity: 1; } }

/* admin: slide thumbnails */
.es-media-slide-thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 36px;
  border-radius: 3px;
  background: linear-gradient(150deg, #023a68, #001b36);
  background-size: cover;
  background-position: center;
}
.es-admin-row.is-off .es-admin-row-main { opacity: 0.55; }
