/* Inter-House Results Styles */
:root {
  --brand-dark: #1a2332;
  --brand-yellow: #fecf07;
  --brand-muted: #6b7280;
  --surface: #ffffff;
  --bg: #f7f7fb;
  --ring: rgba(26, 35, 50, 0.12);
}

.ihr-main {
  background: var(--bg);
  padding-block: 2rem 3rem;
}

.container {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

.section {
  padding-block: 1.25rem 2rem;
}

.section-title,
.subheading {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand-dark);
  line-height: 1.2;
}

.section-title {
  font-size: clamp(1.5rem, 2vw + 1rem, 2rem);
  margin-bottom: 0.25rem;
}

.subheading {
  font-size: clamp(1.25rem, 1.6vw + 0.8rem, 1.5rem);
  margin-bottom: 1rem;
}

.lead {
  color: #111827;
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0.5rem 0 1.25rem;
}

.muted {
  color: var(--brand-muted);
}

/* Quick nav chips */
.ihr-quick-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.75rem 4vw 0;
}

.ihr-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: var(--surface);
  color: #111827;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease, border-color 180ms ease;
}
.ihr-chip:hover {
  background: #f9fafb;
  transform: translateY(-1px);
  border-color: #e5e7eb;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}
.stat {
  background: var(--surface);
  border: 1px solid #edeff3;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  text-align: center;
  box-shadow: 0 1px 2px rgba(3,7,18,0.04);
}
.stat-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-dark);
  line-height: 1.1;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--brand-muted);
}

/* Cards and grids */
.card {
  background: var(--surface);
  border: 1px solid #edeff3;
  border-radius: 16px;
  padding: 1rem;
  box-shadow:
    0px 2px 4px rgba(3, 7, 18, 0.04),
    0px 8px 8px rgba(3, 7, 18, 0.06),
    0px 16px 16px rgba(3, 7, 18, 0.08);
}
.card.stack {
    padding: 1.25rem;
    margin-bottom: 1rem;

}

.card-title {
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 0.5rem;
  border-bottom: 2px solid var(--brand-yellow);
  padding-bottom: 0.35rem;
}

/* Two-column grid that collapses on mobile */
.grid.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

/* Info blocks */
.info .info-main {
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 0.35rem;
  color: #111827;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}
.badge-gold {
  background: linear-gradient(180deg, #ffeaa7, #fecf07);
  color: #4a3b01;
  border-color: #facc15;
}
.badge-silver {
  background: linear-gradient(180deg, #eef2f7, #cfd8e3);
  color: #111827;
  border-color: #cbd5e1;
}

/* Sports cards */
.sports-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-block: 0.75rem 0.5rem;
}
.sport-card {
  background: var(--surface);
  border: 1px solid #edeff3;
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.sport-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(3, 7, 18, 0.08);
}
.sport-icon {
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.sport-name {
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 0.25rem;
}
.winner .label {
  color: var(--brand-muted);
  font-size: 0.85rem;
  margin-right: 0.25rem;
}
.winner .value { margin-left: 0.25rem; }

/* Highlights */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.highlight-card {
  background: var(--surface);
  border: 1px solid #edeff3;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 1px 2px rgba(3,7,18,0.04);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.highlight-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(3, 7, 18, 0.08);
}
.highlight-kicker {
  font-size: 0.8rem;
  color: var(--brand-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}
.highlight-title {
  font-weight: 800;
  color: var(--brand-dark);
  margin-bottom: 0.35rem;
}
.highlight-body {
  color: #111827;
  line-height: 1.7;
}

/* CTA */
.page-cta {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand-dark);
  background: var(--surface);
  border: 1px solid #e5e7eb;
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  transition: background 180ms ease, transform 180ms ease;
}
.btn-outline:hover { background: #f9fafb; transform: translateY(-2px); }

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(8px);
  animation: fadeInUp 500ms ease forwards;
}
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* A11y */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .sports-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .highlights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.two { grid-template-columns: 1fr; }
  .sports-grid { grid-template-columns: 1fr; }
  .highlights-grid { grid-template-columns: 1fr; }
  .ihr-quick-nav { justify-content: flex-start; }
}

/* Print */
@media print {
  .ihr-quick-nav,
  .page-cta { display: none !important; }

  .fade-in { opacity: 1 !important; transform: none !important; animation: none !important; }

  .card, .sport-card, .highlight-card {
    box-shadow: none !important;
    border-color: #cbd5e1;
  }
}
