/* Leagues landing page - reuses tokens/components from styles.css
   (--ink, --paper, --accent, .pill-btn, .hero, .kicker, .wrap, etc.)
   and adds the row/card layout specific to this page. */

nav.site-nav a.current {
  color: var(--ink);
}

.lg-features {
  padding: 8px 0 24px;
}

.lg-row {
  display: flex;
  gap: 56px;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid var(--hairline);
  flex-wrap: wrap;
}

.lg-row--reverse {
  flex-direction: row-reverse;
}

.lg-text {
  width: 320px;
  flex: none;
}

/* flex:1 lets this grow to fill the row's remaining space, but the card
   inside stays flush to this box's own start edge (default justify-content) -
   that's what pushes the card to the row's far left on reversed rows,
   leaving open space between it and the text column, matching the handoff. */
.lg-visual {
  flex: 1;
  min-width: 260px;
  display: flex;
}

.lg-eyebrow {
  font-family: "SF Mono", "Menlo", "Courier New", monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-ink);
  margin: 0;
}

.lg-eyebrow--tight {
  margin-bottom: 14px;
}

.lg-text h3 {
  margin: 10px 0 0;
  font-size: 24px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.lg-note {
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

.lg-note--tight {
  margin-top: 14px;
}

.lg-card {
  background: #FFFDF7;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 22px 24px;
  max-width: 420px;
  width: 100%;
}

.lg-card--ink {
  background: var(--ink);
  border-color: transparent;
}

.lg-tag {
  display: inline-block;
  font-family: "SF Mono", "Menlo", "Courier New", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--accent2);
  border-radius: 999px;
  padding: 5px 11px;
}

.lg-tag--accent {
  color: var(--accent-ink);
  background: rgba(10, 115, 85, 0.12);
}

.lg-msg {
  margin: 14px 0 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--paper);
}

.lg-meta {
  margin-top: 12px;
  font-family: "SF Mono", "Menlo", "Courier New", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.lg-table {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 13px;
  font-weight: 600;
  align-items: center;
}

.lg-table--head {
  font-family: "SF Mono", "Menlo", "Courier New", monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--faint);
}

.lg-table--last {
  border-bottom: none;
  padding-bottom: 0;
}

.lg-col {
  flex: 1;
}

.lg-col--muted {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.lg-col--status {
  flex: none;
  width: 60px;
}

.lg-status {
  font-family: "SF Mono", "Menlo", "Courier New", monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lg-status--ready { color: var(--accent-ink); }
.lg-status--fix { color: var(--gold); }

.lg-standings {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 13.5px;
  font-weight: 600;
  align-items: center;
}

.lg-standings--head {
  font-family: "SF Mono", "Menlo", "Courier New", monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--faint);
}

.lg-standings--last {
  border-bottom: none;
  padding-bottom: 0;
}

.lg-rank {
  width: 18px;
  font-family: "SF Mono", "Menlo", "Courier New", monospace;
  color: var(--faint);
}

.lg-rank--top {
  color: var(--accent-ink);
}

.lg-wlt {
  width: 52px;
  text-align: right;
  font-family: "SF Mono", "Menlo", "Courier New", monospace;
  font-size: 12px;
  font-weight: 500;
}

.lg-pts {
  width: 36px;
  text-align: right;
  font-family: "SF Mono", "Menlo", "Courier New", monospace;
  font-weight: 700;
}

.lg-card--bracket {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lg-divisions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lg-chip {
  font-family: "SF Mono", "Menlo", "Courier New", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: rgba(21, 22, 26, 0.08);
  border-radius: 999px;
  padding: 6px 12px;
}

.lg-bracket {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.lg-bracket__col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lg-bracket__col--center {
  justify-content: center;
}

.lg-bracket__seed {
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  padding: 6px 10px;
}

.lg-bracket__seed--winner {
  font-weight: 700;
  color: var(--ink);
  background: var(--accent);
  border-color: transparent;
}

.lg-bracket__arrow {
  font-size: 12px;
  color: var(--faint);
}

.lg-bracket__final {
  font-family: "SF Mono", "Menlo", "Courier New", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-ink);
}

.lg-manager-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lg-manager-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 13px;
  font-weight: 600;
}

.lg-manager-row--last {
  border-bottom: none;
  padding-bottom: 0;
}

.lg-manager-status {
  font-family: "SF Mono", "Menlo", "Courier New", monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lg-manager-status--managed { color: var(--accent-ink); }
.lg-manager-status--overseen { color: var(--gold); }

.lg-rollover {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lg-rollover__row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--faint);
}

.lg-rollover__row--on {
  color: var(--ink);
}

.lg-rollover__check {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--paper);
  font-family: "Material Symbols Outlined";
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lg-rollover__box {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid var(--hairline-strong);
  flex-shrink: 0;
}

.lg-dues-total {
  font-family: "SF Mono", "Menlo", "Courier New", monospace;
  font-size: 34px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.lg-dues-label {
  font-family: "SF Mono", "Menlo", "Courier New", monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2px 0 0;
}

.lg-dues-rows {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lg-dues-row__top {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
}

.lg-bar {
  margin-top: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--hairline);
  overflow: hidden;
}

.lg-bar__in {
  display: block;
  height: 100%;
  background: var(--accent);
}

.lg-bar__in--gold {
  background: var(--gold);
}

.lg-tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 10px;
  margin-top: 16px;
}

.lg-tab {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--faint);
  padding-bottom: 8px;
}

.lg-tab--active {
  color: var(--ink);
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
}

.lg-cta {
  padding: 72px 0;
  background: var(--ink);
  text-align: center;
  margin-top: 8px;
}

.lg-cta .wrap {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.lg-cta h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.lg-cta p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--faint);
}

.lg-cta__row {
  margin-top: 6px;
  justify-content: center;
}

/* .pill-btn's default fill is var(--ink) - invisible against this section's
   own var(--ink) background, so the primary CTA here needs the accent fill
   instead (matches the handoff's dark-section CTA). */
.lg-cta__row .pill-btn:not(.ghost) {
  background: var(--accent);
  color: #0B1F18;
  box-shadow: none;
}

.lg-cta__row .pill-btn:not(.ghost):hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Specificity note: base .pill-btn.ghost (two classes) would otherwise win
   over a single-class .lg-cta__ghost override regardless of source order,
   reverting this back to invisible ink-on-ink text/border. */
.pill-btn.ghost.lg-cta__ghost {
  color: var(--paper);
  border-color: rgba(245, 241, 230, 0.24);
}

.pill-btn.ghost.lg-cta__ghost:hover {
  border-color: var(--paper);
}

@media (max-width: 720px) {
  .lg-row,
  .lg-row--reverse {
    flex-direction: column !important;
    padding: 32px 0;
  }

  .lg-text {
    width: 100%;
  }

  .lg-row--reverse .lg-visual {
    justify-content: flex-start;
  }
}
