@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --un-blue: #009edb;
  --un-blue-dark: #007aaa;
  --text: #1a1a1a;
  --muted: #555555;
  --border: #d0d0d0;
  --bg: #ffffff;
  --bg-light: #f5f5f5;
  /* Track colors */
  --track-1: #059669;
  --track-2: #d97706;
  --track-3: #2563eb;
  --track-4: #7c3aed;
}

body {
  font-family: 'Inter', "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

/* ── Dev Warning Banner ─────────────────────────────── */
.dev-banner {
  background: #fff3cd;
  border-bottom: 3px solid #f0ad4e;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}
.dev-banner .icon { font-size: 1.1rem; flex-shrink: 0; }
.dev-banner strong { color: #7d4e00; }
.dev-banner p { color: #5a3e00; margin: 0; }

/* ── Nav ────────────────────────────────────────────── */
nav {
  background: var(--bg-light);
  border-bottom: 3px solid var(--un-blue);
  padding: 0 24px;
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  justify-content: flex-end;
}
nav a {
  color: #222;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 13px 16px;
  display: block;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  transition: color 0.15s, background 0.15s;
}
nav a:hover { color: var(--un-blue); background: #ebebeb; }
nav a.home { font-weight: 700; margin-right: auto; }
nav a.active { color: var(--un-blue); border-bottom-color: var(--un-blue); font-weight: 600; }

/* ── Index Page Header ──────────────────────────────── */
header {
  background-color: #1a2a3a;
  background-image: linear-gradient(rgba(0,0,0,0.58), rgba(0,0,0,0.58)), url('img/campus-aerial.jpg');
  background-size: cover;
  background-position: center 40%;
  padding: 80px 24px 72px;
  border-bottom: 4px solid var(--un-blue);
}
.header-inner {
  max-width: 900px;
  margin: 0 auto;
}
.un-tag {
  display: inline-block;
  background: var(--un-blue);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 20px;
}
header h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
header h1 span { color: var(--un-blue); }
header .subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
  max-width: 580px;
  margin-bottom: 32px;
  line-height: 1.6;
  font-weight: 400;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}
.btn-hero {
  display: inline-block;
  background: var(--un-blue);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.15s;
  letter-spacing: 0.01em;
}
.btn-hero:hover { background: var(--un-blue-dark); color: white; text-decoration: none; }
.btn-hero-outline {
  display: inline-block;
  background: transparent;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 28px;
  border-radius: 2px;
  border: 2px solid rgba(255,255,255,0.5);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.btn-hero-outline:hover { border-color: white; background: rgba(255,255,255,0.1); color: white; text-decoration: none; }
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.event-meta .pill {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 2px;
  padding: 7px 14px;
  font-size: 0.83rem;
  color: white;
}
.event-meta .pill strong {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
}

/* ── Inner Page Hero ────────────────────────────────── */
.page-hero {
  background: white;
  padding: 36px 24px 28px;
  border-bottom: 1px solid var(--border);
}
.page-hero-inner {
  max-width: 900px;
  margin: 0 auto;
}
.page-hero h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.page-hero p { font-size: 1rem; color: var(--muted); max-width: 600px; margin: 0; }

/* ── Main Content ────────────────────────────────────── */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px;
}

section { margin-bottom: 52px; }

h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--un-blue);
  display: inline-block;
  letter-spacing: -0.01em;
}

p { margin-bottom: 12px; color: var(--text); }

a { color: var(--un-blue); }
a:hover { text-decoration: underline; }

/* ── Info / Warn Boxes ──────────────────────────────── */
.info-box {
  background: #e8f5fb;
  border-left: 4px solid var(--un-blue);
  padding: 16px 20px;
  margin-top: 16px;
  font-size: 0.92rem;
  color: #003d5c;
}
.info-box strong { display: block; margin-bottom: 4px; }

.warn-box {
  background: #fff3cd;
  border-left: 4px solid #f0ad4e;
  padding: 16px 20px;
  margin-top: 16px;
  font-size: 0.92rem;
  color: #5a3e00;
}
.warn-box strong { display: block; margin-bottom: 4px; }

/* ── Section Bands (full-width tinted sections) ─────── */
.section-band {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 52px 24px;
}
.section-band-inner {
  max-width: 900px;
  margin: 0 auto;
}
/* Remove default section margin-bottom when inside a band */
.section-band section { margin-bottom: 0; }

/* ── About Grid ─────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.about-card {
  background: white;
  border: 1px solid var(--border);
  border-top: 4px solid var(--un-blue);
  padding: 28px 20px 24px;
  text-align: center;
}
.about-card .num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--un-blue);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.about-card .label { font-size: 0.82rem; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }

/* ── Schools ────────────────────────────────────────── */
.schools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.school-tag {
  background: white;
  border: 2px solid var(--un-blue);
  border-radius: 2px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--un-blue);
}

/* ── Tracks ─────────────────────────────────────────── */
.tracks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.track-card {
  background: white;
  border: 1px solid var(--border);
  border-top: 4px solid var(--un-blue);
  padding: 22px 20px 20px;
}
.track-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 8px;
}
.track-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.track-card p { font-size: 0.85rem; color: var(--muted); margin: 0; line-height: 1.55; }

/* Color-code challenge tracks (not FAQ cards) */
.challenge-tracks > .track-card:nth-child(1) { border-top-color: var(--track-1); }
.challenge-tracks > .track-card:nth-child(1) .track-label { color: var(--track-1); }
.challenge-tracks > .track-card:nth-child(2) { border-top-color: var(--track-2); }
.challenge-tracks > .track-card:nth-child(2) .track-label { color: var(--track-2); }
.challenge-tracks > .track-card:nth-child(3) { border-top-color: var(--track-3); }
.challenge-tracks > .track-card:nth-child(3) .track-label { color: var(--track-3); }
.challenge-tracks > .track-card:nth-child(4) { border-top-color: var(--track-4); }
.challenge-tracks > .track-card:nth-child(4) .track-label { color: var(--track-4); }

/* ── CTA Box ─────────────────────────────────────────── */
.cta-box {
  background: #0f1f2e;
  padding: 52px 40px;
  text-align: center;
}
.cta-box h2 { color: white; border-color: var(--un-blue); }
.cta-box p { color: rgba(255,255,255,0.75); max-width: 520px; margin: 12px auto 28px; font-size: 1.05rem; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--un-blue);
  color: white;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 2px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.15s;
}
.btn:hover { background: var(--un-blue-dark); color: white; text-decoration: none; }
.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.5);
  color: white;
  margin-left: 12px;
}
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.1); color: white; text-decoration: none; }

/* ── Footer ─────────────────────────────────────────── */
footer {
  background: #2d2d2d;
  color: rgba(255,255,255,0.65);
  text-align: center;
  padding: 28px 24px;
  font-size: 0.85rem;
}
footer p + p { margin-top: 6px; }
footer a { color: var(--un-blue); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── Photos ──────────────────────────────────────────── */
.hero-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: center 60%;
  display: block;
  border-bottom: 3px solid var(--un-blue);
}
.page-image {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  margin-bottom: 32px;
  border-bottom: 3px solid var(--un-blue);
}

/* ── Checklist (teams page) ─────────────────────────── */
.checklist {
  list-style: none;
  margin-top: 16px;
  display: grid;
  gap: 8px;
}
.checklist li {
  background: white;
  border: 1px solid var(--border);
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
}
.checklist li .check { color: var(--un-blue); font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.checklist li .detail { color: var(--muted); font-size: 0.85rem; display: block; margin-top: 2px; }

/* ── Timeline (teams page) ──────────────────────────── */
.timeline { margin-top: 16px; }
.timeline-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-item .time { font-weight: 700; color: var(--un-blue); font-size: 0.9rem; padding-top: 2px; }
.timeline-item .event-title { font-weight: 700; margin-bottom: 2px; font-size: 0.95rem; }
.timeline-item .event-desc { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* ── Role Grid (teams page) ─────────────────────────── */
.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.role-card {
  background: white;
  border: 1px solid var(--border);
  border-top: 3px solid var(--un-blue);
  padding: 16px 18px;
}
.role-card h3 { font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.role-card p { font-size: 0.83rem; color: var(--muted); margin: 0; }

/* ── Prize / Winners list ───────────────────────────── */
.prize-list {
  list-style: none;
  margin-top: 16px;
  display: grid;
  gap: 8px;
}
.prize-list li {
  background: white;
  border: 1px solid var(--border);
  border-left: 4px solid var(--un-blue);
  padding: 14px 18px;
  font-size: 0.95rem;
}
.prize-list li strong { display: block; font-weight: 700; margin-bottom: 2px; }
.prize-list li span { font-size: 0.85rem; color: var(--muted); }

/* ── About page ─────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
@media (max-width: 600px) { .two-col { grid-template-columns: 1fr; } }

.card {
  background: white;
  border: 1px solid var(--border);
  padding: 20px;
}
.card h3 { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.card p { font-size: 0.88rem; color: var(--muted); margin: 0; }

.person-card {
  background: white;
  border: 1px solid var(--border);
  border-left: 4px solid var(--un-blue);
  padding: 18px 20px;
}
.person-card .name { font-weight: 700; font-size: 1rem; color: var(--text); }
.person-card .role { font-size: 0.82rem; color: var(--un-blue); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.person-card .org { font-size: 0.85rem; color: var(--muted); }
.person-card a { color: var(--un-blue); font-size: 0.85rem; text-decoration: none; }
.person-card a:hover { text-decoration: underline; }

.org-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0;
  margin-top: 16px;
  border: 1px solid var(--border);
  background: var(--border);
}
.org-card {
  background: white;
  padding: 18px 16px;
  text-align: center;
}
.org-card .org-name { font-weight: 700; color: var(--text); margin-bottom: 4px; font-size: 0.95rem; }
.org-card .org-role { font-size: 0.82rem; color: var(--muted); }

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

/* ── Locations list ─────────────────────────────────── */
.locations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 16px;
  border: 1px solid var(--border);
}
.locations-grid li {
  list-style: none;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.locations-grid li:nth-child(odd) { border-right: 1px solid var(--border); }
@media (max-width: 500px) {
  .locations-grid { grid-template-columns: 1fr; }
  .locations-grid li:nth-child(odd) { border-right: none; }
}

/* ── Resources page ─────────────────────────────────── */
.resource-group { margin-bottom: 36px; }
.resource-group h3 {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.resource-list { display: grid; gap: 6px; }
.resource-card {
  background: white;
  border: 1px solid var(--border);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
  border-left: 3px solid transparent;
}
.resource-card:hover { border-left-color: var(--un-blue); text-decoration: none; }
.resource-card .icon { font-size: 1.2rem; flex-shrink: 0; }
.resource-card .title { font-weight: 700; font-size: 0.9rem; color: var(--un-blue); }
.resource-card .desc { font-size: 0.83rem; color: var(--muted); margin-top: 2px; }
