/* Teams — AFC/NFC landing → conference list → selected team */

.tm-page {
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3.5rem;
}

.tm-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

.tm-title {
  margin: 0 0 0.4rem;
  font-family: var(--cc-display, "Sora", system-ui, sans-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
  text-align: center;
}

.tm-sub {
  margin: 0 auto 1.75rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  max-width: 26rem;
  line-height: 1.45;
}

/* Landing: AFC / NFC */
.tm-conf-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 28rem;
  margin: 0 auto 1.5rem;
}

.tm-conf-btn {
  appearance: none;
  cursor: pointer;
  border-radius: 1rem;
  padding: 1.6rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-family: var(--cc-display, "Sora", system-ui, sans-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.tm-conf-btn:hover,
.tm-conf-btn:focus-visible {
  border-color: rgba(196, 181, 253, 0.45);
  background: rgba(167, 139, 250, 0.1);
  box-shadow: 0 0 28px rgba(167, 139, 250, 0.2);
  outline: none;
  transform: translateY(-2px);
}

.tm-conf-btn.is-on {
  border-color: rgba(196, 181, 253, 0.55);
  background:
    radial-gradient(ellipse 90% 80% at 50% 0%, rgba(167, 139, 250, 0.18), transparent 60%),
    rgba(255, 255, 255, 0.05);
  box-shadow:
    0 0 36px rgba(167, 139, 250, 0.28),
    0 0 0 1px rgba(167, 139, 250, 0.12) inset;
}

.tm-conf-btn span {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.tm-back {
  display: inline-block;
  margin: 0 0 1rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45) !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.tm-back:hover {
  color: #fff !important;
  border-bottom-color: rgba(196, 181, 253, 0.6);
}

.tm-panel {
  display: none;
}

.tm-panel.is-open {
  display: block;
}

.tm-conf-heading {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(196, 181, 253, 0.55);
  text-align: center;
}

/* All teams listed */
.tm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.5rem;
  margin: 0 0 1.75rem;
}

.tm-team-btn {
  appearance: none;
  cursor: pointer;
  text-align: left;
  border-radius: 0.7rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.25;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.tm-team-btn:hover,
.tm-team-btn:focus-visible {
  border-color: rgba(167, 139, 250, 0.35);
  background: rgba(167, 139, 250, 0.08);
  outline: none;
}

.tm-team-btn.is-on {
  border-color: rgba(196, 181, 253, 0.55);
  background:
    linear-gradient(135deg, rgba(167, 139, 250, 0.16), rgba(255, 255, 255, 0.03));
  box-shadow: 0 0 22px rgba(167, 139, 250, 0.22);
  color: #fff;
}

.tm-team-btn small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.4);
}

/* Selected team section */
.tm-detail {
  --tm-c1: #a78bfa;
  --tm-c2: #000000;
  border-radius: 1rem;
  padding: 1.35rem 1.25rem 1.4rem;
  border: 1px solid rgba(196, 181, 253, 0.28);
  background:
    radial-gradient(ellipse 90% 70% at 10% 0%, rgba(167, 139, 250, 0.12), transparent 55%),
    rgba(255, 255, 255, 0.035);
  box-shadow:
    0 0 32px rgba(167, 139, 250, 0.12),
    0 12px 32px rgba(0, 0, 0, 0.28);
  text-align: left;
}

/* Team primary/secondary color wash on selected + full team page */
.tm-detail--colored {
  border-color: color-mix(in srgb, var(--tm-c1) 55%, rgba(255, 255, 255, 0.2));
  background:
    radial-gradient(
      ellipse 95% 80% at 12% 0%,
      color-mix(in srgb, var(--tm-c1) 38%, transparent),
      transparent 58%
    ),
    radial-gradient(
      ellipse 70% 60% at 100% 100%,
      color-mix(in srgb, var(--tm-c2) 28%, transparent),
      transparent 55%
    ),
    rgba(8, 8, 10, 0.55);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--tm-c1) 25%, transparent) inset,
    0 0 40px color-mix(in srgb, var(--tm-c1) 35%, transparent),
    0 0 72px color-mix(in srgb, var(--tm-c1) 18%, transparent),
    0 14px 36px rgba(0, 0, 0, 0.4);
}

.tm-detail--full.tm-detail--colored {
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--tm-c1) 30%, transparent) inset,
    0 0 48px color-mix(in srgb, var(--tm-c1) 40%, transparent),
    0 0 90px color-mix(in srgb, var(--tm-c1) 16%, transparent),
    0 16px 40px rgba(0, 0, 0, 0.42);
}

.tm-block {
  margin: 0 0 1.15rem;
}

.tm-block h3 {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--tm-c1) 70%, #fff);
  font-weight: 600;
}

.tm-block p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.tm-chant {
  font-family: var(--cc-display, "Sora", system-ui, sans-serif);
  font-size: 1.15rem !important;
  font-weight: 600;
  color: #fff !important;
  letter-spacing: 0.02em;
}

.tm-rival-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tm-rival-list li {
  margin: 0.35rem 0;
  font-size: 0.95rem;
}

.tm-rival-list a {
  color: rgba(255, 255, 255, 0.88) !important;
  text-decoration: none !important;
  border-bottom: 1px solid color-mix(in srgb, var(--tm-c1) 50%, rgba(255, 255, 255, 0.25));
}

.tm-rival-list a:hover,
.tm-rival-list a:focus-visible {
  color: #fff !important;
  border-bottom-color: #fff;
  outline: none;
}

.tm-detail-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(196, 181, 253, 0.55);
}

.tm-detail h2 {
  margin: 0 0 0.35rem;
  font-family: var(--cc-display, "Sora", system-ui, sans-serif);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  color: #fff;
}

.tm-detail-meta {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.45;
}

.tm-detail-body {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.tm-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tm-link {
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.05);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tm-link:hover,
.tm-link:focus-visible {
  border-color: rgba(196, 181, 253, 0.55);
  background: rgba(167, 139, 250, 0.14);
  box-shadow: 0 0 18px rgba(167, 139, 250, 0.25);
  outline: none;
}

.tm-soft {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.9rem;
  text-align: center;
}

/* Standalone team page */
.tm-solo {
  max-width: 36rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.tm-solo .tm-detail {
  margin-top: 0.5rem;
}
