/* ============================================================================
   ice-bucket-classic skin — SummerFrost · Fundraiser · split-sticky archetype
   ============================================================================ */
:root {
  --rs-primary:             0  88 191;  /* #0058BF cobalt */
  --rs-primary-strong:      0  67 150;  /* #004396 deep cobalt */
  --rs-on-primary:        255 255 255;
  --rs-secondary:           0 102 134;  /* #006686 cobalt-teal */
  --rs-on-secondary:      255 255 255;
  --rs-accent:            126 212 253;  /* #7ED4FD sky-cyan */
  --rs-on-accent:           0  91 120;  /* #005B78 */

  --rs-surface:           249 249 249;  /* #F9F9F9 cream */
  --rs-surface-sunken:    243 243 244;  /* #F3F3F4 */
  --rs-surface-elevated:  255 255 255;
  --rs-surface-overlay:   232 232 232;
  --rs-on-surface:         26  28  28;  /* #1A1C1C */
  --rs-on-surface-muted:   65  71  85;  /* #414755 */

  --rs-secondary-soft:    216 226 255;  /* #D8E2FF primary-fixed */
  --rs-accent-soft:       193 198 215;
  --rs-tag-bg:            216 226 255;
  --rs-tag-text:            0  67 150;

  --rs-hairline:          193 198 215;
  --rs-hairline-strong:   114 119 134;

  --rs-danger:            186  26  26;
  --rs-on-danger:         255 255 255;

  --rs-medal-gold:        202 138   4;
  --rs-medal-gold-soft:   254 249 195;
  --rs-medal-silver:      120 130 145;
  --rs-medal-silver-soft: 226 230 234;
  --rs-medal-bronze:      154  72  28;
  --rs-medal-bronze-soft: 254 215 170;

  /* Typography — Outfit display (300/400 weight signature) + Inter body */
  --rs-font-headline:     "Outfit", "Manrope", ui-sans-serif, system-ui, sans-serif;
  --rs-font-body:         "Inter", ui-sans-serif, system-ui, sans-serif;
  --rs-font-label:        "Inter", ui-sans-serif, system-ui, sans-serif;
}

/* ============================================================================
   Body — cream + subtle ice-grain motif
   ============================================================================ */
body {
  background-color: rgb(var(--rs-surface));
  background-image: radial-gradient(circle at 20% 10%, rgba(126, 212, 253, 0.06) 0%, transparent 35%),
                    radial-gradient(circle at 85% 70%, rgba(0, 88, 191, 0.04) 0%, transparent 30%);
}

/* ============================================================================
   SHELL — split-sticky layout
   Mobile: single column, left becomes top
   Desktop: 2-col grid, left fixed sticky, right scrolls
   ============================================================================ */
.ic-shell {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}
@media (min-width: 1024px) {
  .ic-shell {
    grid-template-columns: 420px 1fr;
  }
}
@media (min-width: 1280px) {
  .ic-shell {
    grid-template-columns: 480px 1fr;
  }
}

/* ----- LEFT PANEL: the persistent fundraising story ----- */
.ic-left-panel {
  background-color: rgb(var(--rs-primary));
  color: rgb(var(--rs-on-primary));
  padding: 2.5rem 1.5rem 3rem;
  position: relative;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .ic-left-panel {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 3rem 2.5rem 3rem;
    overflow-y: auto;
  }
}
@media (min-width: 1280px) {
  .ic-left-panel { padding: 3.5rem 3rem 3rem; }
}

/* Cyan accent corner decorations on the panel */
.ic-left-panel::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(126, 212, 253, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.ic-panel-logo {
  width: 96px; height: 96px;
  background-color: #ffffff;
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 1024px) {
  .ic-panel-logo { width: 112px; height: 112px; padding: 1.25rem; }
}
.ic-panel-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

.ic-panel-edition {
  font-family: var(--rs-font-label);
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgb(var(--rs-accent));
  margin-bottom: 0.65rem;
}

.ic-panel-name {
  font-family: var(--rs-font-headline);
  font-weight: 300;
  font-size: 44px;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: rgb(var(--rs-on-primary));
  margin-bottom: 0.85rem;
}
@media (min-width: 1024px) {
  .ic-panel-name { font-size: 52px; }
}

.ic-panel-tagline {
  font-family: var(--rs-font-body);
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
}

/* ----- IMPACT BLOCK (the lead visual) ----- */
.ic-impact-label {
  font-family: var(--rs-font-label);
  font-size: 10px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgb(var(--rs-accent));
  margin-bottom: 0.55rem;
}
.ic-impact-num {
  font-family: var(--rs-font-headline);
  font-weight: 300;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: rgb(var(--rs-on-primary));
}
@media (min-width: 1024px) {
  .ic-impact-num { font-size: 68px; }
}
.ic-impact-target {
  font-family: var(--rs-font-label);
  font-size: 12px;
  letter-spacing: 0.10em;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.55rem;
  margin-bottom: 1rem;
}

/* The hero progress bar — cyan fill on cobalt panel */
.ic-impact-bar {
  height: 12px;
  background-color: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.ic-impact-bar-fill {
  height: 100%;
  background-image: linear-gradient(90deg, rgb(var(--rs-accent)) 0%, rgb(126 212 253 / 0.85) 100%);
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(126, 212, 253, 0.5);
}
.ic-impact-pct {
  font-family: var(--rs-font-headline);
  font-weight: 400;
  font-size: 14px;
  color: rgb(var(--rs-accent));
  margin-top: 0.6rem;
  letter-spacing: 0.02em;
}

/* Goal-exceeded inline tag */
.ic-goal-tag {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.18rem 0.5rem;
  background-color: rgb(var(--rs-accent));
  color: rgb(var(--rs-on-accent));
  font-family: var(--rs-font-label);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  border-radius: 999px;
  vertical-align: 2px;
}

/* ----- Breakdown rows (teams + fundraiser totals under main bar) ----- */
.ic-breakdown {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ic-breakdown-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.ic-breakdown-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ic-breakdown-label {
  font-family: var(--rs-font-label);
  font-size: 10px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.ic-breakdown-pct {
  font-family: var(--rs-font-headline);
  font-weight: 500;
  font-size: 13px;
  color: rgb(var(--rs-accent));
  letter-spacing: 0.02em;
}
.ic-breakdown-bar {
  height: 5px;
  background-color: rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  overflow: hidden;
}
.ic-breakdown-bar-fill {
  height: 100%;
  background-color: rgb(var(--rs-accent));
  border-radius: 999px;
}
.ic-breakdown-amount {
  font-family: var(--rs-font-body);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.1rem;
}
.ic-breakdown-target {
  color: rgba(255, 255, 255, 0.55);
  margin-left: 0.2rem;
}

/* ----- CTA button ----- */
.ic-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 1rem 1.5rem;
  background-color: rgb(var(--rs-accent));
  color: rgb(var(--rs-on-accent));
  font-family: var(--rs-font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 12px;
  text-decoration: none;
  margin-top: 1.75rem;
  transition: transform 200ms, box-shadow 200ms;
}
.ic-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(126, 212, 253, 0.35);
}

.ic-panel-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.ic-panel-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  background-color: rgba(255, 255, 255, 0.08);
  color: rgb(var(--rs-on-primary));
  font-family: var(--rs-font-label);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
}

/* ----- RIGHT COLUMN: scrolling content ----- */
.ic-right-col {
  background-color: rgb(var(--rs-surface));
  padding: 2rem 1.25rem 1.5rem;
}
@media (min-width: 1024px) {
  .ic-right-col { padding: 3rem 2.5rem 1.5rem; }
}
@media (min-width: 1280px) {
  .ic-right-col { padding: 4rem 4rem 2rem; }
}

/* Footer (also .ic-dossier) — tighter than other dossier sections; no need for the full row breathing */
.ic-right-col > footer.ic-dossier {
  padding-top: 2rem;
  padding-bottom: 1rem;
}
@media (min-width: 768px) {
  .ic-right-col > footer.ic-dossier {
    padding-top: 2.5rem;
    padding-bottom: 1rem;
  }
}

/* ============================================================================
   DOSSIER row pattern — numbered editorial sections in the right column
   ============================================================================ */
.ic-dossier {
  padding-top: 3rem;
  padding-bottom: 3rem;
  border-top: 1px solid rgb(var(--rs-hairline));
}
.ic-dossier:first-of-type {
  border-top: 0;
  padding-top: 0;
}
@media (min-width: 768px) {
  .ic-dossier { padding-top: 4rem; padding-bottom: 4rem; }
}

.ic-dossier-num {
  font-family: var(--rs-font-headline);
  font-weight: 200;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgb(var(--rs-primary));
  display: block;
  margin-bottom: 0.5rem;
}
@media (min-width: 768px) {
  .ic-dossier-num { font-size: 64px; }
}

.ic-dossier-eyebrow {
  font-family: var(--rs-font-label);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgb(var(--rs-primary));
  margin-bottom: 0.45rem;
}

.ic-dossier-title {
  font-family: var(--rs-font-headline);
  font-weight: 300;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: rgb(var(--rs-on-surface));
}
@media (min-width: 768px) {
  .ic-dossier-title { font-size: 44px; }
}

.ic-dossier-header {
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .ic-dossier-header { margin-bottom: 2.5rem; }
}

/* ============================================================================
   PODIUM tiles
   ============================================================================ */
.ic-podium-tile {
  background-color: rgb(var(--rs-surface-elevated));
  border: 1px solid rgb(var(--rs-hairline));
  border-radius: 16px;
  padding: 1.5rem 1rem 1.75rem;
  text-align: center;
}
.ic-podium-tile.gold   { border-top: 4px solid rgb(var(--rs-medal-gold)); }
.ic-podium-tile.silver { border-top: 4px solid rgb(var(--rs-medal-silver)); }
.ic-podium-tile.bronze { border-top: 4px solid rgb(var(--rs-medal-bronze)); }

.ic-podium-letter {
  font-family: var(--rs-font-label);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.ic-podium-letter.gold   { color: rgb(var(--rs-medal-gold)); }
.ic-podium-letter.silver { color: rgb(var(--rs-medal-silver)); }
.ic-podium-letter.bronze { color: rgb(var(--rs-medal-bronze)); }

.ic-podium-logo {
  width: 80px; height: 80px;
  background-color: rgb(var(--rs-surface-sunken));
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.85rem;
  padding: 0.85rem;
}
.ic-podium-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

.ic-podium-name {
  font-family: var(--rs-font-headline);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: rgb(var(--rs-on-surface));
}
@media (min-width: 768px) {
  .ic-podium-name { font-size: 19px; }
}

/* ============================================================================
   STANDINGS grid — Pool A + Pool B side-by-side on desktop, stacked on mobile
   ============================================================================ */
.ic-stand-pool-title {
  font-family: var(--rs-font-label);
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgb(var(--rs-primary));
  margin-bottom: 0.5rem;
}
.ic-stand-row {
  display: grid;
  grid-template-columns: 28px 1fr 28px 28px 28px 28px 36px;
  column-gap: 6px;
  align-items: center;
  padding: 0.7rem 0.5rem;
  border-top: 1px solid rgb(var(--rs-hairline));
}
@media (min-width: 768px) {
  .ic-stand-row {
    grid-template-columns: 32px 1fr 32px 32px 32px 32px 44px;
    column-gap: 8px;
    padding: 0.85rem 0.65rem;
  }
}
.ic-stand-row.ic-stand-header {
  border-top: 0;
  border-bottom: 2px solid rgb(var(--rs-primary));
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}
.ic-stand-row.ic-stand-rank-1 {
  background-color: rgb(var(--rs-secondary-soft) / 0.5);
  box-shadow: inset 3px 0 0 0 rgb(var(--rs-primary));
}
.ic-stand-rank-num {
  font-family: var(--rs-font-headline);
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  color: rgb(var(--rs-on-surface));
}
.ic-stand-row.ic-stand-rank-1 .ic-stand-rank-num { color: rgb(var(--rs-primary)); }
.ic-stand-team-name {
  font-family: var(--rs-font-headline);
  font-weight: 500;
  font-size: 14px;
  color: rgb(var(--rs-on-surface));
}
@media (min-width: 768px) {
  .ic-stand-team-name { font-size: 15px; }
}
.ic-stand-num {
  font-family: var(--rs-font-body);
  font-size: 13px;
  text-align: center;
  color: rgb(var(--rs-on-surface-muted));
}
.ic-stand-pts {
  font-family: var(--rs-font-headline);
  font-weight: 700;
  font-size: 16px;
  text-align: right;
  color: rgb(var(--rs-on-surface));
}
.ic-stand-row.ic-stand-rank-1 .ic-stand-pts { color: rgb(var(--rs-primary)); }

/* ============================================================================
   TEAMS — 8-up logo wall
   ============================================================================ */
.ic-team-card {
  background-color: rgb(var(--rs-surface-elevated));
  border: 1px solid rgb(var(--rs-hairline));
  border-radius: 12px;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: border-color 200ms, transform 200ms;
}
.ic-team-card:hover {
  border-color: rgb(var(--rs-primary) / 0.5);
  transform: translateY(-2px);
}
.ic-team-card-logo {
  width: 64px; height: 64px;
  margin: 0 auto 0.65rem;
  background-color: rgb(var(--rs-surface-sunken));
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0.65rem;
}
.ic-team-card-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

.ic-team-card-name {
  font-family: var(--rs-font-headline);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: rgb(var(--rs-on-surface));
  margin-bottom: 0.4rem;
}
.ic-team-card-track {
  font-family: var(--rs-font-label);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgb(var(--rs-primary));
}

/* Per-team fundraising contribution shown in the roster card */
.ic-team-card-raised-row {
  margin-top: 0.85rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgb(var(--rs-hairline));
}
.ic-team-card-raised-num {
  font-family: var(--rs-font-headline);
  font-weight: 600;
  font-size: 18px;
  color: rgb(var(--rs-primary));
  letter-spacing: -0.01em;
  line-height: 1;
}
.ic-team-card-raised-label {
  font-family: var(--rs-font-label);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgb(var(--rs-on-surface-muted));
  margin-top: 0.25rem;
}
.ic-team-card-raised-pct {
  font-family: var(--rs-font-label);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: rgb(var(--rs-primary));
  font-weight: 600;
  margin-top: 0.15rem;
}

/* ============================================================================
   GAMES — fixture cards grouped by day
   ============================================================================ */
.ic-day-header {
  font-family: var(--rs-font-label);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgb(var(--rs-primary));
  padding-bottom: 0.6rem;
  border-bottom: 2px solid rgb(var(--rs-primary));
  margin-top: 1.75rem;
  margin-bottom: 1rem;
}
.ic-day-header:first-of-type { margin-top: 0; }

.ic-game {
  background-color: rgb(var(--rs-surface-elevated));
  border: 1px solid rgb(var(--rs-hairline));
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.6rem;
}
.ic-game.medal-gold   { border-color: rgb(var(--rs-medal-gold) / 0.6); background-color: rgb(254 249 195 / 0.45); }
.ic-game.medal-bronze { border-color: rgb(var(--rs-medal-bronze) / 0.5); background-color: rgb(254 215 170 / 0.35); }
.ic-game.has-label    { border-color: rgb(var(--rs-primary) / 0.4); background-color: rgb(var(--rs-secondary-soft) / 0.3); }

.ic-game-grid {
  display: grid;
  grid-template-columns: 1fr 76px 1fr 56px;
  column-gap: 0.5rem;
  align-items: center;
}
@media (min-width: 768px) {
  .ic-game-grid {
    grid-template-columns: 44px 1fr 96px 1fr 72px;
    column-gap: 0.85rem;
  }
}
.ic-game-num {
  font-family: var(--rs-font-label);
  font-size: 10px;
  letter-spacing: 0.10em;
  color: rgb(var(--rs-primary));
  display: none;
}
@media (min-width: 768px) {
  .ic-game-num { display: block; }
}
.ic-game-team {
  font-family: var(--rs-font-headline);
  font-weight: 500;
  font-size: 14px;
  color: rgb(var(--rs-on-surface));
}
.ic-game-team.right { text-align: right; }
@media (min-width: 768px) {
  .ic-game-team { font-size: 15px; }
}
.ic-game-score {
  font-family: var(--rs-font-headline);
  font-weight: 700;
  font-size: 20px;
  text-align: center;
  color: rgb(var(--rs-primary));
  letter-spacing: 0.02em;
}
.ic-game.medal-gold   .ic-game-score { color: rgb(var(--rs-medal-gold)); }
.ic-game.medal-bronze .ic-game-score { color: rgb(var(--rs-medal-bronze)); }
.ic-game-time {
  font-family: var(--rs-font-label);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgb(var(--rs-on-surface-muted));
  text-align: right;
}
.ic-game-label {
  font-family: var(--rs-font-label);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(var(--rs-primary));
  margin-top: 0.3rem;
  display: block;
}
.ic-game.medal-gold   .ic-game-label { color: rgb(var(--rs-medal-gold)); }
.ic-game.medal-bronze .ic-game-label { color: rgb(var(--rs-medal-bronze)); }

/* ============================================================================
   FUNDRAISER cards — progress bars (Fundraiser-category default)
   ============================================================================ */
.ic-fund-card {
  background-color: rgb(var(--rs-surface-elevated));
  border: 1px solid rgb(var(--rs-hairline));
  border-radius: 14px;
  padding: 1.5rem;
  transition: border-color 200ms, transform 200ms;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.ic-fund-card:hover {
  border-color: rgb(var(--rs-primary) / 0.5);
  transform: translateY(-2px);
}
.ic-fund-kicker {
  font-family: var(--rs-font-label);
  font-size: 10px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgb(var(--rs-primary));
  margin-bottom: 0.5rem;
}
.ic-fund-title {
  font-family: var(--rs-font-headline);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: rgb(var(--rs-on-surface));
  margin-bottom: 0.55rem;
}
.ic-fund-desc {
  font-family: var(--rs-font-body);
  font-size: 13px;
  line-height: 1.55;
  color: rgb(var(--rs-on-surface-muted));
  flex: 1;
  margin-bottom: 1rem;
}
.ic-fund-raised {
  font-family: var(--rs-font-headline);
  font-weight: 300;
  font-size: 26px;
  color: rgb(var(--rs-primary));
  letter-spacing: -0.01em;
  line-height: 1;
}
.ic-fund-target {
  font-family: var(--rs-font-label);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(var(--rs-on-surface-muted));
  padding-bottom: 4px;
}
.ic-fund-bar {
  height: 6px;
  background-color: rgb(var(--rs-secondary-soft));
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.5rem;
}
.ic-fund-bar-fill {
  height: 100%;
  background-color: rgb(var(--rs-primary));
  border-radius: 999px;
}
.ic-fund-pct {
  font-family: var(--rs-font-label);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgb(var(--rs-primary));
  text-transform: uppercase;
  margin-top: 0.4rem;
  font-weight: 600;
}

/* ============================================================================
   Whole-card link wrapper
   ============================================================================ */
.ic-link { display: block; text-decoration: none; }
