/* ============================================
   Empire Sports Group LLC — Shared Stylesheet
   Black & Gold brand system
   ============================================ */

:root {
  --black: #0a0a0a;
  --black-soft: #141414;
  --black-card: #1b1b1b;
  --gold: #d4af37;
  --gold-light: #e8cc6e;
  --gold-dim: #8a7024;
  --white: #f5f4f0;
  --gray: #a8a8a2;
  --gray-dim: #6b6b66;
  --border: rgba(212, 175, 55, 0.25);
  --radius: 10px;
  --max-width: 1180px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

/* scroll-padding keeps #section jumps clear of the sticky site header */
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }

h1, h2, h3, h4 { margin: 0 0 16px; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 16px; color: var(--gray); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
}

.gold { color: var(--gold); }

.section-header { max-width: 720px; margin: 0 0 56px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary { background: var(--gold); color: var(--black); }
.btn-primary:hover { background: var(--gold-light); }
.btn-outline { border-color: var(--border); color: var(--white); background: transparent; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- Nav ---------- */
header.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.02em; }
.nav-logo .crest {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo .crest img { width: 100%; height: 100%; object-fit: contain; }
.nav-logo .sub { font-size: 0.7rem; color: var(--gray-dim); display: block; font-weight: 400; letter-spacing: 0.08em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 0.92rem; color: var(--gray); transition: color 0.2s; }
.nav-links a:hover { color: var(--gold); }
.nav-cta { background: var(--gold); color: var(--black) !important; padding: 10px 20px; border-radius: var(--radius); font-weight: 600; }
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }

@media (max-width: 860px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--black-soft); flex-direction: column; align-items: flex-start;
    padding: 20px 24px; gap: 18px; border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* Series dropdown menus (site header on every page). Full-width panels under the header,
   opened by hover / keyboard focus on desktop or the arrow button. */
.nav-item { display: flex; align-items: center; gap: 4px; padding: 16px 0; margin: -16px 0; }
.nav-caret {
  background: none; border: none; color: var(--gray); cursor: pointer;
  width: 20px; height: 20px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
}
.nav-caret::before {
  content: ''; width: 6px; height: 6px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform 0.25s ease;
}
.has-menu.open .nav-caret, .has-menu.open .nav-top { color: var(--gold); }
.has-menu.open .nav-caret::before { transform: translateY(2px) rotate(225deg); }
.nav-menu {
  position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(10, 10, 10, 0.97); border-bottom: 1px solid var(--border);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  padding: 28px max(24px, calc((100% - var(--max-width)) / 2 + 24px)) 32px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 260px)); gap: 16px 56px; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.22s;
}
.has-menu.open .nav-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (hover: hover) and (min-width: 861px) {
  .has-menu:hover .nav-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .has-menu:hover .nav-caret, .has-menu:hover .nav-top { color: var(--gold); }
  .has-menu:hover .nav-caret::before { transform: translateY(2px) rotate(225deg); }
}
.nav-menu-head {
  margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
  color: var(--gold); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.nav-links .nav-menu a { display: block; padding: 8px 0; color: var(--white); font-size: 0.95rem; font-weight: 600; }
.nav-links .nav-menu a:hover, .nav-links .nav-menu a:focus-visible { color: var(--gold-light); }
.nav-menu a small { display: block; margin-top: 2px; color: var(--gray-dim); font-size: 0.78rem; font-weight: 400; }
/* Apply Now button doubles as a menu of every application across the series. */
.nav-apply .nav-caret { color: var(--gold); }
.has-menu.nav-apply.open .nav-top { color: var(--black); }

@media (max-width: 860px) {
  .nav-links { max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav-item { flex-wrap: wrap; width: 100%; padding: 0; margin: 0; }
  .nav-caret { width: 32px; height: 32px; margin-left: auto; }
  .nav-menu {
    position: static; display: none; width: 100%; grid-template-columns: 1fr; gap: 12px;
    margin-top: 10px; padding: 4px 0 4px 14px; border: none; border-left: 1px solid var(--border);
    background: none; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .has-menu.open .nav-menu { display: grid; }
}

/* ---------- Hero ---------- */
.hero { padding: 120px 0 100px; text-align: center; }
.hero .crest-lg {
  width: 140px; height: 140px; margin: 0 auto 28px;
  display: flex; align-items: center; justify-content: center;
}
.hero .crest-lg img { width: 100%; height: 100%; object-fit: contain; }
.hero .tagline { color: var(--gold); letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 20px; font-weight: 600; }
.hero p.lead { max-width: 640px; margin: 24px auto; font-size: 1.1rem; }
.hero .btn-row { justify-content: center; }

.series-pills { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 48px; }
.series-pills a {
  border: 1px solid var(--border); padding: 10px 20px; border-radius: 999px;
  font-size: 0.85rem; color: var(--gray); transition: all 0.2s;
}
.series-pills a:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Status banner ---------- */
.status-banner {
  background: var(--black-soft);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 14px 24px;
  font-size: 0.92rem;
  color: var(--gray);
}
.status-banner strong { color: var(--gold); }

/* ---------- Stats row ---------- */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; }
.stat { text-align: center; }
.stat .num { font-size: 2.2rem; font-weight: 700; color: var(--gold); display: block; }
.stat .label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-dim); }
@media (max-width: 700px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Quote ---------- */
blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--white);
  border-left: 3px solid var(--gold);
  padding-left: 24px;
  margin: 32px 0;
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--gold); transform: translateY(-3px); }
.card .icon { font-size: 1.6rem; margin-bottom: 14px; display: block; }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; font-size: 0.94rem; }
.card .tag {
  display: inline-block; margin-top: 12px; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold-dim);
  border: 1px solid var(--gold-dim); border-radius: 4px; padding: 3px 8px;
}

.card.dimmed { opacity: 0.55; }
.card.active-badge, .status-pill { position: relative; }
.status-pill {
  display: inline-block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; font-weight: 700;
}
.status-pill.active { background: rgba(212,175,55,0.15); color: var(--gold); border: 1px solid var(--gold-dim); }
.status-pill.pending { background: rgba(168,168,162,0.1); color: var(--gray); border: 1px solid var(--gray-dim); }

/* ---------- Series overview (home) ---------- */
.series-block { padding: 90px 0; border-top: 1px solid var(--border); }
.series-num { color: var(--gold-dim); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.1em; }
.series-block .btn-outline { margin-top: 8px; }

/* ---------- Pillar cards (hero-adjacent series picker) ---------- */
.pillar-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--black-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 32px 28px; text-decoration: none; transition: border-color 0.2s ease, transform 0.2s ease;
}
.pillar-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.pillar-verb {
  color: var(--gold); font-weight: 700; text-transform: uppercase;
  font-size: 0.78rem; letter-spacing: 0.12em; margin-bottom: 2px;
}
.pillar-card h3 { margin: 0 0 6px; }
.pillar-card p { color: var(--gray); font-size: 0.92rem; margin: 0 0 6px; }
.pillar-card .status-pill { align-self: flex-start; margin-bottom: 6px; }
.pillar-link { color: var(--gold-light); font-weight: 600; font-size: 0.9rem; margin-top: auto; }

/* ---------- Embedded Stripe Checkout modal ---------- */
.checkout-modal {
  position: fixed; inset: 0; background: rgba(10,10,10,0.85);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.checkout-modal-inner {
  background: var(--black-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; max-width: 480px; width: 100%;
  max-height: 90vh; overflow-y: auto; position: relative;
}
.checkout-modal-close {
  position: absolute; top: 14px; right: 14px; background: none; border: none;
  color: var(--gray); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.checkout-modal-close:hover { color: var(--gold); }

/* ---------- Ready-to-start CTA band ---------- */
.ready-band { padding: 72px 0; border-top: 1px solid var(--border); text-align: center; }
.ready-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* ---------- Blog/article feed (Barstool-style headline feed) ---------- */
.feed-layout { display: grid; grid-template-columns: 2.2fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .feed-layout { grid-template-columns: 1fr; } }

.feed-list { display: flex; flex-direction: column; }
.feed-item {
  display: flex; gap: 18px; padding: 20px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
}
.feed-item:first-child { padding-top: 0; }
.feed-item .feed-thumb {
  flex-shrink: 0; width: 120px; height: 90px; border-radius: 8px;
  background: var(--black-card); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: var(--gold-dim);
}
.feed-item .feed-thumb img { width: 100%; height: 100%; object-fit: cover; }
.feed-category {
  display: inline-block; font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--gold); font-weight: 700; margin-bottom: 4px;
}
.feed-headline {
  font-family: var(--font-serif); font-weight: 700; font-size: 1.08rem;
  line-height: 1.3; color: var(--white); margin: 0 0 8px;
  transition: color 0.15s ease;
}
.feed-item:hover .feed-headline { color: var(--gold-light); }
.feed-meta { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; color: var(--gray-dim); }
.feed-meta .feed-author { color: var(--gold-dim); font-weight: 600; }
.feed-meta .feed-comments { display: inline-flex; align-items: center; gap: 4px; }

.trending-box {
  background: var(--black-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 24px;
}
.trending-box h3 {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--gold); margin: 0 0 16px;
}
.trending-list { list-style: none; margin: 0; padding: 0; counter-reset: trend; }
.trending-list li { counter-increment: trend; display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.trending-list li:last-child { border-bottom: none; padding-bottom: 0; }
.trending-list li::before {
  content: counter(trend); font-family: var(--font-serif); font-weight: 700;
  font-size: 1.3rem; color: var(--gold-dim); flex-shrink: 0; width: 20px;
}
.trending-list a { font-size: 0.9rem; font-weight: 600; color: var(--white); line-height: 1.35; }
.trending-list a:hover { color: var(--gold-light); }

.feed-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.feed-tabs a {
  padding: 10px 2px; font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--gray-dim); border-bottom: 2px solid transparent;
}
.feed-tabs a.active { color: var(--gold); border-bottom-color: var(--gold); }

/* Media Hub library (browse by sport / creator) */
.library-toggle {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr;
  padding: 4px; border-radius: 999px; background: var(--black-card);
  border: 1px solid var(--border); margin-bottom: 28px; --active: 0;
}
.library-toggle-pill {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: 999px; background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.28);
  transform: translateX(calc(var(--active) * 100%));
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.library-toggle button {
  position: relative; z-index: 1; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gray); padding: 10px 26px; border-radius: 999px; transition: color 0.3s ease;
}
.library-toggle button:hover { color: var(--white); }
.library-toggle button.active { color: var(--black); }
.library-toggle button:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }

.library-tree { display: flex; flex-direction: column; gap: 12px; }
.library-tree[hidden] { display: none; }
.btn[hidden], .notice-box[hidden] { display: none; }
.library-tree.is-entering { animation: library-in 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes library-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Shared row */
.library-head {
  display: block; list-style: none;
  padding: 14px 16px; border-radius: 8px; color: var(--white);
  transition: background-color 0.25s ease, color 0.25s ease;
}
summary.library-head { cursor: pointer; user-select: none; }
summary.library-head::-webkit-details-marker { display: none; }
summary.library-head::marker { content: ""; }
.library-row { display: flex; align-items: center; gap: 14px; }
summary.library-head:hover { background: rgba(212, 175, 55, 0.06); }
summary.library-head:focus-visible { outline: 2px solid var(--gold-dim); outline-offset: -2px; }
.library-head-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.library-label { font-weight: 600; font-size: 0.95rem; transition: color 0.25s ease; }
summary.library-head:hover .library-label, details[open] > summary.library-head .library-label { color: var(--gold-light); }
.library-sub { font-size: 0.78rem; color: var(--gray-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.library-count {
  flex-shrink: 0; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--gold); background: rgba(212, 175, 55, 0.1); border-radius: 999px; padding: 4px 11px;
}
.library-count.empty { color: var(--gray-dim); background: rgba(255, 255, 255, 0.04); font-weight: 600; }
/* Placeholder count while creator content loads on a first visit */
.library-count.is-loading {
  color: transparent; min-width: 64px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(212, 175, 55, 0.14) 50%, rgba(255, 255, 255, 0.04) 75%);
  background-size: 200% 100%; animation: library-count-shimmer 1.2s ease-in-out infinite;
}
@keyframes library-count-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .library-count.is-loading { animation: none; } }
.library-chevron {
  flex-shrink: 0; width: 8px; height: 8px; margin: 0 4px 3px 2px;
  border-right: 2px solid var(--gold-dim); border-bottom: 2px solid var(--gold-dim);
  transform: rotate(45deg); transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease;
}
details[open]:not(.is-closing) > summary .library-chevron { transform: translateY(3px) rotate(-135deg); border-color: var(--gold); }
.library-node.is-empty .library-head { opacity: 0.55; }

.library-panel { overflow: hidden; }
.library-children { display: flex; flex-direction: column; gap: 2px; padding: 0 12px 12px 30px; position: relative; }
.library-children::before {
  content: ""; position: absolute; left: 22px; top: 2px; bottom: 16px; width: 1px;
  background: linear-gradient(to bottom, var(--border), transparent);
}

/* Top level: sport / creator cards */
.library-node.depth-0 {
  background: linear-gradient(180deg, var(--black-card), rgba(27, 27, 27, 0.6));
  border: 1px solid rgba(212, 175, 55, 0.14); border-radius: 14px;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}
.library-node.depth-0:hover { border-color: var(--border); }
details.library-node.depth-0[open]:not(.is-closing) {
  border-color: var(--gold-dim); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(212, 175, 55, 0.08);
}
.library-node.depth-0 > .library-head { padding: 18px 22px; border-radius: 14px; }
.library-node.depth-0 > summary.library-head:hover { background: transparent; }
.library-node.depth-0 .library-label { font-family: var(--font-serif); font-size: 1.2rem; }
.library-node.depth-0 > .library-panel > .library-children { padding: 0 18px 18px 46px; }
.library-node.depth-0 > .library-panel > .library-children::before { left: 42px; }
.library-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 700; color: var(--gold); letter-spacing: 0.02em;
  background: radial-gradient(circle at 30% 30%, rgba(232, 204, 110, 0.18), rgba(212, 175, 55, 0.05));
  border: 1px solid rgba(212, 175, 55, 0.22);
}
.library-node:not(.depth-0) > .library-head .library-icon { width: 32px; height: 32px; font-size: 1rem; }
.library-node.depth-2 .library-label, .library-node.depth-3 .library-label, .library-node.depth-4 .library-label { font-size: 0.9rem; }
.library-node.is-breaking > .library-head .library-label { color: #e24b4a; letter-spacing: 0.02em; }
.library-node.is-breaking > .library-head .library-count { color: #e24b4a; background: rgba(226, 75, 74, 0.12); }
.library-node.is-breaking > .library-head .library-icon { border-color: rgba(226, 75, 74, 0.35); background: rgba(226, 75, 74, 0.08); }

/* Content cards */
.library-items { display: flex; flex-direction: column; gap: 10px; padding: 6px 0 8px 8px; }
.library-item {
  display: flex; align-items: center; gap: 16px; padding: 14px 18px;
  background: var(--black); border: 1px solid rgba(212, 175, 55, 0.14); border-radius: 12px;
  transition: border-color 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}
.library-item:hover { border-color: var(--gold-dim); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4); }
.library-item-thumb {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 10px; font-size: 1.3rem;
  display: inline-flex; align-items: center; justify-content: center; background: var(--black-card);
}
.library-item-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.library-item .feed-category { margin-bottom: 2px; }
.library-item-title { font-family: var(--font-serif); font-weight: 700; color: var(--white); line-height: 1.3; margin-bottom: 4px; transition: color 0.25s ease; }
.library-item:hover .library-item-title { color: var(--gold-light); }
.library-item-meta { font-size: 0.78rem; color: var(--gray-dim); }
.library-item-meta .feed-author { color: var(--gold-dim); font-weight: 600; }
.library-item-arrow { flex-shrink: 0; color: var(--gold-dim); transition: transform 0.3s ease, color 0.3s ease; }
.library-item:hover .library-item-arrow { color: var(--gold); transform: translateX(4px); }

/* Standings: a small button on league rows opens a slide-out panel */
.standings-open {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 8px;
  font: inherit; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gray); background: transparent; border: 1px solid rgba(212, 175, 55, 0.2); border-radius: 999px;
  cursor: pointer; opacity: 0.75; transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}
.library-head:hover .standings-open, details[open] > .library-head .standings-open { opacity: 1; }
.standings-open:hover { color: var(--gold-light); border-color: var(--gold-dim); background: rgba(212, 175, 55, 0.08); }
.standings-open:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; opacity: 1; }
.library-node.is-empty .library-head .standings-open { opacity: 1; }
.library-node.is-empty .library-head:has(.standings-open) { opacity: 1; }
.library-node.is-empty .library-head:has(.standings-open) .library-head-text,
.library-node.is-empty .library-head:has(.standings-open) .library-count { opacity: 0.55; }
/* Three rising bars */
.standings-open-icon {
  width: 11px; height: 10px; flex-shrink: 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 3px 50% no-repeat,
              linear-gradient(currentColor, currentColor) 4px 100% / 3px 100% no-repeat,
              linear-gradient(currentColor, currentColor) 8px 100% / 3px 70% no-repeat;
}

html.has-standings-open { overflow: hidden; }
.standings-drawer {
  --zone-qualify: #3fae6a; --zone-playoff: #4a8fe0; --zone-relegate: #e24b4a;
  position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0; border: 0; background: transparent;
  width: min(920px, 100vw); max-width: 100vw; height: 100%; max-height: 100dvh; color: var(--white);
}
.standings-drawer::backdrop { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(3px); animation: standings-fade 0.3s ease; }
.standings-drawer[open] .standings-sheet { animation: standings-in 0.38s cubic-bezier(0.22, 1, 0.36, 1); }
.standings-drawer.is-closing .standings-sheet { animation: standings-out 0.26s ease forwards; }
.standings-drawer.is-closing::backdrop { animation: standings-fade 0.26s ease reverse forwards; }
@keyframes standings-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes standings-out { to { transform: translateX(40px); opacity: 0; } }
@keyframes standings-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .standings-drawer[open] .standings-sheet, .standings-drawer::backdrop { animation: none; }
}
.standings-sheet {
  height: 100%; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--black-card), var(--black-soft) 40%);
  border-left: 1px solid var(--border); box-shadow: -24px 0 60px rgba(0, 0, 0, 0.5);
}
.standings-top { display: flex; align-items: flex-start; gap: 16px; padding: 24px 26px 14px; }
.standings-titles { flex: 1; min-width: 0; }
.standings-kicker { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.standings-title { font-family: var(--font-serif); font-size: 1.5rem; margin: 4px 0 6px; color: var(--white); }
.standings-meta { font-size: 0.78rem; color: var(--gray-dim); margin: 0; }
.standings-close {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; font-size: 1.4rem; line-height: 1; cursor: pointer;
  color: var(--gray); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(212, 175, 55, 0.18);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.standings-close:hover { color: var(--gold-light); border-color: var(--gold-dim); }
.standings-close:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.standings-tabs {
  display: flex; gap: 6px; padding: 0 26px 14px; overflow-x: auto; scrollbar-width: thin;
  border-bottom: 1px solid rgba(212, 175, 55, 0.14);
}
.standings-tabs[hidden] { display: none; }
.standings-tab {
  flex-shrink: 0; font: inherit; font-size: 0.78rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  color: var(--gray); background: transparent; border: 1px solid rgba(212, 175, 55, 0.16); transition: all 0.2s ease;
}
.standings-tab:hover { color: var(--white); border-color: var(--gold-dim); }
.standings-tab.active { color: var(--black); background: var(--gold); border-color: var(--gold); }
.standings-tab:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.standings-body { flex: 1; overflow-y: auto; padding: 18px 26px 22px; overscroll-behavior: contain; }
/* Groups sit side by side in reading order (Group 1, Group 2 across),
   each only as tall as its own rows. Wide soccer and hockey tables need
   more room per group so no column is cut off. */
.standings-grid { display: grid; gap: 10px; align-items: start; }
.standings-grid.is-groups { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.standings-grid.is-groups.kind-soccer, .standings-grid.is-groups.kind-hockey { grid-template-columns: repeat(auto-fill, minmax(min(100%, 410px), 1fr)); }
/* A single table with only a few columns doesn't stretch across the panel */
.standings-grid.kind-college:not(.is-groups), .standings-grid.kind-winpct:not(.is-groups) { max-width: 520px; }
.standings-group { background: var(--black); border: 1px solid rgba(212, 175, 55, 0.14); border-radius: 10px; overflow: hidden; }
.standings-scroll { overflow-x: auto; }
.standings-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.standings-table th, .standings-table td { padding: 6px 6px; text-align: center; white-space: nowrap; }
.standings-table thead th {
  padding-top: 8px; padding-bottom: 8px;
  font-size: 0.64rem; font-weight: 600; letter-spacing: 0.04em; color: var(--gray-dim); cursor: default;
  background: rgba(212, 175, 55, 0.06); border-bottom: 1px solid rgba(212, 175, 55, 0.14);
}
.standings-table thead th.is-title {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold);
}
.standings-table tbody tr { border-bottom: 1px solid rgba(255, 255, 255, 0.04); transition: background 0.2s ease; }
.standings-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.015); }
.standings-table tbody tr:last-child { border-bottom: 0; }
.standings-table tbody tr:hover { background: rgba(212, 175, 55, 0.05); }
.standings-table tbody tr.zone-end { border-bottom: 1px solid rgba(212, 175, 55, 0.28); }
.standings-table .col-pos { width: 30px; color: var(--gray); font-weight: 600; box-shadow: inset 3px 0 0 transparent; }
.standings-table tr.zone-qualify .col-pos { box-shadow: inset 3px 0 0 var(--zone-qualify); }
.standings-table tr.zone-playoff .col-pos { box-shadow: inset 3px 0 0 var(--zone-playoff); }
.standings-table tr.zone-relegate .col-pos { box-shadow: inset 3px 0 0 var(--zone-relegate); }
.standings-table .col-team { text-align: left; width: 100%; font-weight: 600; color: var(--white); white-space: normal; min-width: 120px; line-height: 1.3; }
.standings-table thead .col-team:not(.is-title) { color: var(--gray-dim); }
.standings-team { display: inline; }
.standings-country { display: inline; margin-left: 8px; font-size: 0.7rem; font-weight: 400; color: var(--gray-dim); }
.standings-table td.col-num { color: var(--gray); }
.standings-table td.is-key { color: var(--gold-light); font-weight: 700; }
.standings-table thead .is-key { color: var(--gold); }
.standings-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 0; padding: 0; font-size: 0.74rem; color: var(--gray); }
.standings-legend li { display: inline-flex; align-items: center; gap: 7px; }
.standings-swatch { width: 10px; height: 10px; border-radius: 3px; }
.standings-legend .zone-qualify .standings-swatch { background: var(--zone-qualify); }
.standings-legend .zone-playoff .standings-swatch { background: var(--zone-playoff); }
.standings-legend .zone-relegate .standings-swatch { background: var(--zone-relegate); }
.standings-foot { margin-top: 18px; padding: 14px 0 0; border-top: 1px solid rgba(212, 175, 55, 0.14); font-size: 0.7rem; line-height: 1.5; color: var(--gray-dim); }
.standings-foot p { margin: 0 0 6px; }
.standings-credit { color: var(--gray); font-weight: 600; }
.standings-license a { color: var(--gray); text-decoration: underline; text-underline-offset: 2px; }
.standings-license a:hover { color: var(--gold-light); }
.standings-source { display: inline-block; margin-top: 4px; font-size: 0.76rem; font-weight: 600; color: var(--gold); }
.standings-source:hover { color: var(--gold-light); }
@media (max-width: 600px) {
  .standings-open { padding: 0 8px; }
  .standings-open-text { display: none; }
  .standings-top { padding: 18px 16px 12px; }
  .standings-tabs { padding: 0 16px 12px; }
  .standings-body { padding: 14px 12px 18px; }
  .standings-foot { padding: 12px 0 0; }
  .standings-table th, .standings-table td { padding: 6px 4px; }
  .standings-table .is-minor { display: none; }
}

@media (max-width: 600px) {
  .library-node.depth-0 > .library-head { padding: 16px; }
  .library-row { gap: 10px; }
  .library-head { padding: 12px 10px; }
  .library-node.depth-0 > .library-panel > .library-children { padding: 0 10px 12px 14px; }
  .library-node.depth-0 > .library-panel > .library-children::before { left: 10px; }
  .library-children { padding: 0 0 10px 8px; }
  .library-children::before { left: 2px; }
  .library-icon { width: 38px; height: 38px; font-size: 1.05rem; }
  .library-items { padding-left: 0; }
  .library-item { padding: 12px 14px; gap: 12px; }
  .library-item-thumb { width: 36px; height: 36px; font-size: 1.05rem; }
  .library-item-title { font-size: 0.98rem; }
  .library-item-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .library-toggle-pill, .library-chevron, .library-item { transition: none; }
  .library-tree.is-entering { animation: none; }
}

/* Single article page */
.ghost {
  opacity: 0; transform: translateY(-14px); filter: blur(6px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.7s ease;
}
.ghost.ghost-in { opacity: 1; transform: none; filter: none; }
.article-header { max-width: 760px; margin: 0 auto; text-align: left; }
.article-header h1 { font-family: var(--font-serif); font-size: 2.1rem; line-height: 1.2; }
.article-byline { display: flex; align-items: center; gap: 14px; font-size: 0.88rem; color: var(--gray-dim); margin: 16px 0 28px; }
.article-byline .feed-author { color: var(--gold-dim); font-weight: 700; }
.article-share { display: flex; gap: 10px; }
.article-share a {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 0.95rem;
}
.article-share a:hover { border-color: var(--gold); color: var(--gold); }
.article-body { max-width: 760px; margin: 0 auto; font-size: 1.05rem; }
.article-body p { margin-bottom: 22px; }
/* Indent body paragraphs so readers can see where each one starts */
.article-body p:not([class]) { text-indent: 2em; }
.article-body ol, .article-body ul { margin: 0 0 26px; padding-left: 22px; }
.article-body li { margin-bottom: 10px; }
.article-body img { border-radius: var(--radius); margin: 28px 0; }

/* ---------- Pricing ---------- */
.tier-card {
  background: var(--black-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 26px; display: flex; flex-direction: column; gap: 10px;
}
.tier-card h3 { color: var(--gold-light); margin-bottom: 2px; }
.tier-card .who { font-size: 0.8rem; color: var(--gray-dim); text-transform: uppercase; letter-spacing: 0.05em; }
.tier-card .price { font-size: 1.4rem; font-weight: 700; color: var(--white); margin-top: 10px; }
.tier-card .onboarding { font-size: 0.82rem; color: var(--gray-dim); }

table.rate-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
table.rate-table th, table.rate-table td {
  text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 0.92rem;
}
table.rate-table th { color: var(--gold); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.06em; }
table.rate-table td { color: var(--gray); }
.disclaimer-box {
  background: var(--black-soft); border: 1px solid var(--border); border-radius: 10px;
  padding: 20px 24px; font-size: 0.88rem; color: var(--gray); margin-top: 24px;
}

/* ---------- Notice / clarification boxes ---------- */
.notice-box {
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid var(--gold-dim);
  border-radius: 10px;
  padding: 24px 28px;
  margin: 32px 0;
}
.notice-box h3 { color: var(--gold); }
.notice-box ul { margin: 0; padding-left: 20px; color: var(--gray); }
.notice-box li { margin-bottom: 8px; }

.exclude-box {
  border: 1px solid var(--gray-dim);
  border-radius: 10px;
  padding: 22px 26px;
  margin: 24px 0;
  background: var(--black-soft);
}
.exclude-box h3 { color: var(--white); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { display: flex; gap: 20px; margin-bottom: 32px; }
.step .step-icon {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%;
  background: var(--black-card); border: 1px solid var(--gold-dim);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.step .step-num { color: var(--gold-dim); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; }

/* ---------- Accordion / FAQ ---------- */
.faq-group { margin-bottom: 48px; }
.faq-group h3.faq-heading {
  color: var(--gold); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 8px;
}
details.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
details.faq-item summary {
  cursor: pointer; font-weight: 600; font-size: 1rem; color: var(--white);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; margin-left: 12px; }
details.faq-item[open] summary::after { content: "\2212"; }
details.faq-item .faq-body { padding-top: 14px; color: var(--gray); font-size: 0.95rem; }
details.faq-item .faq-body ul { padding-left: 20px; }
details.faq-item .faq-body li { margin-bottom: 6px; }

/* ---------- Contact form ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; }
@media (max-width: 860px) { .contact-wrap { grid-template-columns: 1fr; } }
.contact-info .row { margin-bottom: 20px; }
.contact-info .row .label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold-dim); margin-bottom: 4px; }
.contact-info .row a { color: var(--white); }

form.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form.contact-form .full { grid-column: 1 / -1; }
form.contact-form label { display: block; font-size: 0.78rem; color: var(--gray-dim); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em; }
form.contact-form input, form.contact-form select, form.contact-form textarea {
  width: 100%; background: var(--black-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 14px; color: var(--white); font-family: inherit; font-size: 0.95rem;
}
form.contact-form input:focus, form.contact-form select:focus, form.contact-form textarea:focus {
  outline: none; border-color: var(--gold);
}
form.contact-form button { grid-column: 1 / -1; justify-self: start; }
.form-success { display: none; color: var(--gold); margin-top: 16px; font-weight: 600; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  text-align: center;
  color: var(--gray-dim);
  font-size: 0.85rem;
}
footer .crest { margin: 0 auto 16px; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; }
footer .crest img { width: 100%; height: 100%; object-fit: contain; }
footer .foot-links { display: flex; gap: 24px; justify-content: center; margin: 20px 0; flex-wrap: wrap; }
footer .foot-links a { color: var(--gray); font-size: 0.85rem; }
footer .foot-links a:hover { color: var(--gold); }
footer .foot-logins { display: flex; gap: 20px; justify-content: center; margin: 0 0 16px; flex-wrap: wrap; }
footer .foot-logins a { color: var(--gray-dim); font-size: 0.78rem; }
footer .foot-logins a:hover { color: var(--gold); }

footer .media-disclaimer {
  max-width: 720px; margin: 8px auto 20px; padding: 16px 20px;
  border: 1px solid var(--border); border-left: 3px solid var(--gold);
  border-radius: 6px; text-align: left; font-size: 0.78rem; line-height: 1.6;
}
footer .media-disclaimer strong {
  display: block; color: var(--gold); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px;
}
footer .media-disclaimer p { margin: 0; color: var(--gray-dim); }

/* ---------- Footer (multi-column, home page) ---------- */
footer .footer-top {
  display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px;
  text-align: left; margin-bottom: 40px;
}
@media (max-width: 860px) { footer .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { footer .footer-top { grid-template-columns: 1fr; text-align: center; } }
footer .footer-brand .crest { margin: 0 0 16px; }
@media (max-width: 540px) { footer .footer-brand .crest { margin: 0 auto 16px; } }
footer .footer-col h4 {
  color: var(--gold); font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 14px;
}
footer .footer-col a { display: block; color: var(--gray); font-size: 0.85rem; margin-bottom: 10px; }
footer .footer-col a:hover { color: var(--gold); }
footer .footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Apply / Multi-step intake ---------- */
.apply-wrap { max-width: 760px; margin: 0 auto; }

.apply-progress { display: flex; align-items: center; justify-content: center; margin-bottom: 56px; }
.apply-progress .dot-wrap { display: flex; align-items: center; }
.apply-progress .step-dot {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--black-card);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; color: var(--gray-dim);
  flex-shrink: 0; transition: all 0.25s ease;
}
.apply-progress .step-dot.active { border-color: var(--gold); color: var(--gold); background: rgba(212,175,55,0.08); }
.apply-progress .step-dot.done { border-color: var(--gold); color: var(--black); background: var(--gold); }
.apply-progress .step-label {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-dim);
  margin-top: 8px; text-align: center; width: 90px;
}
.apply-progress .step-label.active { color: var(--gold); }
.apply-progress .step-item { display: flex; flex-direction: column; align-items: center; }
.apply-progress .connector { width: 40px; height: 1px; background: var(--border); margin: 0 4px; align-self: flex-start; margin-top: 18px; }
.apply-progress .connector.done { background: var(--gold); }
@media (max-width: 700px) {
  .apply-progress .step-label { display: none; }
  .apply-progress .connector { width: 20px; }
}

.apply-step { display: none; }
.apply-step.current { display: block; animation: stepIn 0.35s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.apply-step h2 { margin-bottom: 6px; }
.apply-step .step-hint { color: var(--gray-dim); font-size: 0.92rem; margin-bottom: 32px; }

.field-subhead {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold);
  border-bottom: 1px solid var(--border); padding-bottom: 10px; margin: 32px 0 18px;
}
.field-subhead:first-of-type { margin-top: 0; }
.field-hint-inline { font-size: 0.8rem; color: var(--gray-dim); margin: -10px 0 18px; }
.optional-tag { color: var(--gray-dim); font-weight: 400; text-transform: none; letter-spacing: 0; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .field-grid { grid-template-columns: 1fr; } }

.field-grid label, .checkbox-list legend {
  display: block; font-size: 0.78rem; color: var(--gray-dim); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.field-grid input, .field-grid select, .field-grid textarea {
  width: 100%; background: var(--black-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 14px; color: var(--white); font-family: inherit; font-size: 0.95rem;
}
.field-grid input:focus, .field-grid select:focus, .field-grid textarea:focus { outline: none; border-color: var(--gold); }
.field-grid .team-other { margin-top: 8px; }
.field-grid .team-other[hidden] { display: none; }
.field-grid .field-label {
  display: block; font-size: 0.78rem; color: var(--gray-dim); margin-bottom: 10px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.field-grid .field-label .optional-tag { text-transform: none; letter-spacing: 0; }

/* Sport / league / team tags — a piece can have several */
.tag-rows { display: grid; gap: 12px; }
.tag-row {
  display: grid; grid-template-columns: 1fr 1fr 1.3fr auto; gap: 12px; align-items: start;
}
.tag-picker.has-many .tag-row {
  padding: 12px; border: 1px solid var(--border); border-radius: 10px;
}
.tag-remove {
  margin-top: 22px; width: 44px; height: 44px; border-radius: 8px;
  background: transparent; border: 1px solid var(--border); color: var(--gray-dim);
  font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.tag-picker:not(.has-many) .tag-remove { visibility: hidden; }
.tag-remove:hover:not(:disabled), .tag-remove:focus-visible { color: var(--gold); border-color: var(--gold); outline: none; }
.tag-add {
  margin-top: 12px; background: transparent; border: 1px dashed var(--border); border-radius: 8px;
  color: var(--gold); padding: 10px 14px; font: inherit; font-size: 0.88rem; cursor: pointer;
}
.tag-add:hover:not(:disabled), .tag-add:focus-visible { border-color: var(--gold); outline: none; }
.tag-add[hidden] { display: none; }
.tag-add:disabled, .tag-remove:disabled { opacity: 0.5; cursor: not-allowed; }
@media (max-width: 700px) {
  .tag-row { grid-template-columns: 1fr; }
  .tag-remove { margin-top: 0; justify-self: end; }
  .tag-picker:not(.has-many) .tag-remove { display: none; }
}
.password-field { position: relative; }
.password-field input { padding-right: 72px; }
.password-toggle {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  background: none; border: 0; padding: 6px 8px; cursor: pointer;
  color: var(--gold); font-family: inherit; font-size: 0.8rem; font-weight: 600;
}
.password-toggle:hover, .password-toggle:focus-visible { color: var(--white); }

.checkbox-list { border: none; padding: 0; margin: 0 0 8px; }
.checkbox-list .option {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: 8px; margin-bottom: 10px; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.checkbox-list .option:hover { border-color: var(--gold-dim); }
.checkbox-list .option input { margin-top: 3px; accent-color: var(--gold); width: 16px; height: 16px; flex-shrink: 0; }
.checkbox-list .option .opt-title { font-weight: 600; color: var(--white); font-size: 0.95rem; }
.checkbox-list .option .opt-sub { font-size: 0.82rem; color: var(--gray-dim); margin-top: 2px; }
.checkbox-list .option:has(input:checked) { border-color: var(--gold); background: rgba(212,175,55,0.06); }

.tier-suggest {
  background: rgba(212, 175, 55, 0.06); border: 1px solid var(--gold-dim); border-radius: 10px;
  padding: 16px 20px; margin-top: 8px; font-size: 0.9rem; color: var(--gray); display: none;
}
.tier-suggest.show { display: block; }
.tier-suggest strong { color: var(--gold); }

.review-grid { display: grid; gap: 14px; margin-bottom: 32px; }
.review-row {
  display: flex; justify-content: space-between; gap: 20px; padding: 14px 18px;
  background: var(--black-card); border: 1px solid var(--border); border-radius: 8px; font-size: 0.9rem;
}
.review-row .rk { color: var(--gray-dim); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.75rem; flex-shrink: 0; }
.review-row .rv { color: var(--white); text-align: right; }

.step-nav { display: flex; justify-content: space-between; margin-top: 40px; }
.step-nav .spacer { flex: 1; }

.apply-success { display: none; text-align: center; padding: 60px 0; }
.apply-success.show { display: block; }
.apply-success .icon-big { font-size: 3rem; color: var(--gold); margin-bottom: 16px; }

/* ---------- Internal payment tool ---------- */
.internal-banner {
  background: rgba(226, 75, 74, 0.08); border-bottom: 1px solid rgba(226, 75, 74, 0.4);
  text-align: center; padding: 12px 24px; font-size: 0.85rem; color: var(--gray);
}
.internal-banner strong { color: #e24b4a; }

.payment-result {
  display: none; margin-top: 28px; background: rgba(212,175,55,0.06);
  border: 1px solid var(--gold-dim); border-radius: 10px; padding: 22px 24px;
}
.payment-result.show { display: block; }
.payment-result .link-row { display: flex; gap: 10px; margin-top: 12px; }
.payment-result .link-row input {
  flex: 1; background: var(--black-card); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; color: var(--white); font-family: var(--font-sans); font-size: 0.85rem;
}
.payment-error {
  display: none; margin-top: 20px; background: rgba(226,75,74,0.08);
  border: 1px solid #e24b4a; border-radius: 10px; padding: 16px 20px; color: #e24b4a; font-size: 0.9rem;
}
.payment-error.show, .payment-error:not(:empty) { display: block; }
.payment-result textarea {
  background: var(--black-card); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; color: var(--white); font-family: var(--font-sans); font-size: 0.85rem; resize: vertical;
}

/* ---------- Staff application review (esg-creator-onboarding.html) ---------- */
.applications-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.applications-filter { display: flex; gap: 8px; }
.applications-filter .btn { padding: 8px 14px; font-size: 0.8rem; }
.applications-filter .btn.is-active { background: var(--gold); color: var(--black); border-color: var(--gold); }
.applications-status { color: var(--gray-dim); font-size: 0.9rem; }
.roster-heading { margin: 28px 0 6px; font-size: 1.05rem; color: var(--gold); }
.roster-intro { margin: 0 0 16px; font-size: 0.88rem; color: var(--gray-dim); }
.roster-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.roster-actions .btn { padding: 8px 14px; font-size: 0.8rem; }
.roster-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.roster-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.roster-table th { text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-dim); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.roster-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--gray); }
.roster-table tr:last-child td { border-bottom: 0; }
.roster-table td:first-child { color: var(--white); }
.roster-sub { display: block; font-size: 0.78rem; color: var(--gray-dim); margin-top: 2px; }
.roster-series { background: var(--black-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 16px; }
.roster-series h3 { margin: 0 0 10px; font-size: 1.05rem; }
.roster-count { display: inline-block; min-width: 22px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--border); font-size: 0.72rem; color: var(--gray); text-align: center; font-weight: 600; }
.roster-group { border-top: 1px solid var(--border); padding: 10px 0; }
.roster-group summary { cursor: pointer; color: var(--gold); font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.roster-group[open] summary { margin-bottom: 12px; }
.roster-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.roster-people li { display: grid; gap: 2px; font-size: 0.88rem; }
.roster-name { color: var(--white); font-weight: 600; }
.roster-people .roster-reject { justify-self: start; margin-top: 4px; padding: 5px 12px; font-size: 0.75rem; }
.roster-empty { margin: 0; font-size: 0.85rem; color: var(--gray-dim); }
.applications-list { display: grid; gap: 16px; }
.application-card {
  background: var(--black-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px;
}
.application-card.is-accepted { opacity: 0.8; }
.application-card.is-rejected { opacity: 0.7; }
.application-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.application-card h3 { margin: 0 0 2px; font-size: 1.1rem; }
.application-email { color: var(--gold); font-size: 0.88rem; word-break: break-all; }
.application-badge {
  flex-shrink: 0; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600;
  padding: 5px 10px; border-radius: 999px; border: 1px solid var(--gold-dim); color: var(--gold);
}
.application-card.is-accepted .application-badge { background: rgba(212,175,55,0.12); }
.application-meta { margin: 10px 0 0; font-size: 0.85rem; color: var(--gray); }
.application-card details { margin-top: 14px; }
.application-card summary { cursor: pointer; color: var(--gold); font-size: 0.85rem; }
.application-card .review-grid { margin: 12px 0 0; gap: 8px; }
.application-card .review-row .rv { white-space: pre-wrap; word-break: break-word; }
.application-actions { display: flex; justify-content: flex-end; margin-top: 16px; }

/* ---------- Sub-hero (inner pages) ---------- */
.sub-hero { padding: 90px 0 70px; text-align: center; border-bottom: 1px solid var(--border); }
.sub-hero .eyebrow { display: block; }
.breadcrumb-nav {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.breadcrumb-nav .container { display: flex; align-items: center; justify-content: space-between; }
.breadcrumb-nav a.back { color: var(--gray); font-size: 0.9rem; }
.breadcrumb-nav a.back:hover { color: var(--gold); }

/* ---- Article comments ---- */
.comments-section { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--border); padding-top: 36px; }
.comments-section h2 { font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: 6px; }
.comments-section .comment-note { font-size: 0.85rem; color: var(--gray-dim); margin-bottom: 24px; }
.comment-list { list-style: none; margin: 0 0 32px; padding: 0; }
.comment { background: var(--black-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 14px; }
.comment-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.8rem; color: var(--gray-dim); margin-bottom: 6px; }
.comment-meta .comment-name { color: var(--gold-dim); font-weight: 700; }
.comment-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-empty { color: var(--gray-dim); font-size: 0.9rem; margin-bottom: 28px; }
form.comment-form { display: grid; gap: 14px; }
form.comment-form label { display: block; font-size: 0.78rem; color: var(--gray-dim); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em; }
form.comment-form input, form.comment-form textarea {
  width: 100%; background: var(--black-card); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--white); padding: 12px 14px; font: inherit;
}
form.comment-form input:focus, form.comment-form textarea:focus { outline: none; border-color: var(--gold); }
form.comment-form button { justify-self: start; }
form.comment-form .hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.comment-status { font-size: 0.88rem; color: var(--gold); min-height: 1.2em; margin: 0; }
.comment-status.error { color: #e57373; }

/* ---------- Creator Portal (esg-creator-portal.html) ---------- */
.upload-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 0.85rem; color: var(--gray); }
.upload-list li { padding: 8px 12px; background: var(--black-card); border: 1px solid var(--border); border-radius: 8px; }
.upload-list li.is-done { color: var(--gold); }
.upload-list li.is-error { color: #e24b4a; border-color: #e24b4a; }
.destination-options { display: grid; gap: 8px; }
.destination-option {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; cursor: pointer;
  background: var(--black-card); border: 1px solid var(--border); border-radius: 8px;
  text-transform: none; letter-spacing: 0; font-size: 0.9rem; color: var(--white);
}
.destination-option input { width: auto; margin-top: 3px; }
/* Creator Portal: fill the title & text from a Word document */
.word-import { padding: 16px; border: 1px dashed var(--border); border-radius: 10px; background: var(--black-card); }
.word-import-hint { margin: 8px 0 0; font-size: 0.82rem; color: var(--gray-dim); }
.word-import-status { margin: 8px 0 0; font-size: 0.85rem; color: var(--gold); }
.word-import-status:empty { display: none; }
.word-import-status.is-error { color: #e24b4a; }
.revision-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.revision-actions .btn { padding: 8px 16px; font-size: 0.85rem; }
.revision-status { font-size: 0.85rem; color: var(--gray); }
.revision-status.is-error { color: #e24b4a; }
.review-revision { margin: 12px 0; padding: 14px 16px; border: 1px solid var(--gold); border-radius: 10px; }
.review-revision h4 { margin: 0 0 6px; font-size: 0.95rem; color: var(--gold); }
.review-revision-text { max-height: 280px; overflow: auto; margin: 8px 0; padding: 10px 12px; background: var(--black-card); border-radius: 8px; font-size: 0.88rem; color: var(--gray); white-space: pre-wrap; }
.breaking-option { margin-top: 10px; }
.breaking-option input { accent-color: var(--gold); }
.application-badge.status-pending { color: var(--gray); border-color: var(--border); }
.application-badge.status-rejected { color: #e24b4a; border-color: #e24b4a; }
.application-badge.status-scheduled { color: var(--gold); border-color: var(--gold); }
.application-note { margin: 10px 0 0; font-size: 0.88rem; color: var(--gray); white-space: pre-wrap; }

/* ---------- Content review queue (esg-creator-onboarding.html) ---------- */
.review-card .review-form { margin-top: 16px; }
.review-card .review-form [hidden] { display: none; }
.review-links { display: grid; gap: 4px; margin-top: 8px; font-size: 0.85rem; word-break: break-all; }
.review-files { display: grid; gap: 12px; }
.review-file { display: grid; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 0.88rem; color: var(--white); }
.review-file-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.review-file-head input { width: auto; }
.review-file img, .review-file video { max-width: 100%; max-height: 320px; border-radius: 8px; border: 1px solid var(--border); }
.review-file audio { width: 100%; }
.review-hint { margin: 0; font-size: 0.82rem; color: var(--gray-dim); }
.review-actions { gap: 10px; flex-wrap: wrap; }

/* ---------- Creator content viewer (esg-content.html) ---------- */
.content-byline { color: var(--gold-dim); font-size: 0.9rem; margin: 8px 0 0; }
.content-view #content-media { display: grid; gap: 20px; margin-bottom: 28px; }
.content-embed { position: relative; padding-top: 56.25%; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.content-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.content-file { margin: 0; }
.content-file img, .content-file video { width: 100%; border-radius: 10px; border: 1px solid var(--border); background: var(--black-card); }
.content-file audio { width: 100%; }
.content-body p { font-size: 1.05rem; line-height: 1.75; margin: 0 0 1.2em; color: var(--white); text-indent: 2em; }
.content-body a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.content-body a:hover { color: var(--gold-light); }
.content-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.notice-box[hidden] { display: none; }

/* ---------- Members-only creator pieces (esg-media-exclusive.html) ---------- */
.members-list { display: grid; gap: 16px; margin-bottom: 16px; }
.members-item { display: block; color: inherit; text-decoration: none; transition: border-color 0.2s; }
.members-item:hover { border-color: var(--gold); }

/* Staff page: Standings Updates */
.standings-admin-card {
  padding: 14px 16px; margin-bottom: 10px; border-radius: 10px;
  background: var(--black-card); border: 1px solid rgba(212, 175, 55, 0.14);
}
.standings-admin-card.is-held { border-color: rgba(226, 75, 74, 0.45); }
.standings-admin-row { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.standings-admin-pill {
  flex-shrink: 0; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; padding: 4px 10px; border-radius: 999px;
  color: #3fae6a; background: rgba(63, 174, 106, 0.12);
}
.standings-admin-pill.is-held { color: #e24b4a; background: rgba(226, 75, 74, 0.12); }
.standings-admin-meta { margin: 6px 0 0; font-size: 0.8rem; color: var(--gray-dim); }
.standings-admin-problem { margin: 10px 0 0; font-size: 0.88rem; color: var(--white); }
.standings-admin-card .roster-actions { margin-top: 12px; }
.review-word { display: inline; margin: 0; font: inherit; color: var(--gold); cursor: pointer; text-decoration: underline; }
.review-word input { display: block; margin-top: 6px; color: var(--gray-dim); }
