/* TriAthy 2026 External Results Page */

:root {
  --bg: #f6f8fc;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: rgba(15, 23, 42, .12);
  --accent: #0ea5e9;
  --accent2: #3b82f6;
  --shadow: 0 18px 50px rgba(2, 6, 23, .10);
  --shadow2: 0 24px 80px rgba(2, 6, 23, .16);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(700px 280px at 10% 0%, rgba(14, 165, 233, .16), transparent 60%),
    radial-gradient(650px 320px at 90% 10%, rgba(59, 130, 246, .12), transparent 65%),
    var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

.page-shell {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 28px 0;
}

.card,
.hero-card {
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
}

.hero-card {
  padding: 30px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: center;
}

.brand-panel {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-panel img {
  max-width: 170px;
  max-height: 92px;
  object-fit: contain;
}

.kicker {
  color: var(--accent2);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  margin-bottom: 8px;
}

h1,
h2 {
  letter-spacing: -.04em;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.02;
}

h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08;
}

.hero-copy {
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.58;
  max-width: 820px;
}

.partner-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(14, 165, 233, .10);
  color: #075985;
  font-weight: 900;
  font-size: 13px;
  border: 1px solid rgba(14, 165, 233, .18);
  margin-top: 16px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 950;
  border: 1px solid var(--line);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-color: transparent;
  box-shadow: 0 14px 36px rgba(14, 165, 233, .24);
}

.btn-primary:hover {
  box-shadow: 0 18px 48px rgba(14, 165, 233, .30);
}

.btn-ghost {
  background: #fff;
  color: var(--text);
}

.event-banner {
  width: 100%;
  height: 260px;
  object-fit: contain;
  object-position: center center;
  border-radius: 16px;
  border: 1px solid var(--line);
  margin-top: 24px;
  display: block;
  background: #020617;
}

.section-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.section-title-row p {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

.photo-card {
  overflow: hidden;
}

/* Slideshow */

.slideshow {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #020617;
  box-shadow: var(--shadow);
}

.slideshow-track {
  position: relative;
  min-height: 430px;
}

.slide {
  display: none;
  width: 100%;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  height: 430px;
  object-fit: contain;
  object-position: center center;
  display: block;
  background: #020617;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, .68);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .20);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 20px;
  font-weight: 950;
  z-index: 3;
  display: grid;
  place-items: center;
  transition: background .18s ease, transform .18s ease;
}

.slide-btn:hover {
  background: rgba(15, 23, 42, .88);
}

.slide-btn.prev {
  left: 16px;
}

.slide-btn.next {
  right: 16px;
}

.slide-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .38);
  backdrop-filter: blur(6px);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, .52);
  cursor: pointer;
  padding: 0;
}

.dot.active {
  background: #fff;
}

.empty-gallery {
  padding: 40px 24px;
  color: #cbd5e1;
  text-align: center;
  font-weight: 800;
}

/* Results CTA */

.results-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 28px;
  background: linear-gradient(135deg, #020617, #0f172a);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
  border: 1px solid rgba(14, 165, 233, .25);
  margin-bottom: 20px;
}

.results-cta h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 38px);
}

.results-cta p {
  margin: 0;
  color: rgba(226, 232, 240, .86);
  line-height: 1.55;
}

.small-note {
  margin-top: 12px !important;
  color: rgba(226, 232, 240, .72) !important;
  font-size: 14px;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 650;
}

.footer {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 14px 0 28px;
}

/* Responsive */

@media (max-width: 800px) {
  .page-shell {
    width: min(100% - 28px, 1120px);
    padding: 14px 0;
  }

  .hero-card,
  .card {
    padding: 18px;
  }

  .hero-grid,
  .results-cta {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    justify-content: flex-start;
  }

  .brand-panel img {
    max-width: 150px;
  }

  .event-banner {
    height: 190px;
  }

  .slideshow-track {
    min-height: 240px;
  }

  .slide img {
    height: 240px;
  }

  .slide-btn {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .slide-btn.prev {
    left: 10px;
  }

  .slide-btn.next {
    right: 10px;
  }

  .slide-dots {
    bottom: 10px;
  }
}


/* Face-safe image display override */
.event-banner {
  object-fit: contain !important;
  object-position: center center !important;
  background: #020617 !important;
}

.slide img {
  object-fit: contain !important;
  object-position: center center !important;
  background: #020617 !important;
}
