@import url("https://fonts.googleapis.com/css2?family=Oxanium:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;700&display=swap");

:root {
  --steam-cyan: #0F9FBE;
  --steam-cyan-line: #5ECBE3;
  --steam-ice: #DDF3F8;
  --steam-navy: #25365E;
  --steam-charcoal: #353233;
  --steam-magenta: #E60F8A;
  --steam-violet: #6B4CC2;
  --steam-white: #FFFFFF;
  --steam-shell: #F7FBFC;
  --steam-shadow: 0 30px 80px rgba(37, 54, 94, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--steam-charcoal);
  background:
    radial-gradient(circle at top left, rgba(15, 159, 190, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fcfd 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(94, 203, 227, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 203, 227, 0.11) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 65%);
  z-index: -2;
}

.font-display {
  font-family: "Oxanium", sans-serif;
}

.site-shell {
  position: relative;
  overflow-x: clip;
}

.site-shell::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 36rem;
  height: 36rem;
  background: radial-gradient(circle, rgba(230, 15, 138, 0.12), transparent 60%);
  z-index: -1;
  transform: translate(-35%, -10%);
}

.panel-cut {
  clip-path: polygon(0 0, calc(100% - 2.5rem) 0, 100% 2.5rem, 100% 100%, 0 100%);
}

.panel-outline {
  position: relative;
  border: 1px solid rgba(94, 203, 227, 0.7);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--steam-shadow);
}

.panel-outline::before {
  content: "";
  position: absolute;
  inset: 1rem 1rem auto auto;
  width: 4.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--steam-magenta), var(--steam-cyan));
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--steam-magenta);
}

.section-kicker::before {
  content: "";
  width: 2.5rem;
  height: 2px;
  background: var(--steam-cyan);
}

.hero-glow {
  background:
    radial-gradient(circle at top right, rgba(107, 76, 194, 0.18), transparent 32%),
    radial-gradient(circle at bottom left, rgba(15, 159, 190, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(221, 243, 248, 0.9));
}

.nav-link {
  position: relative;
}

.site-brand {
  display: inline-flex;
  align-items: center;
}

.site-brand__logo {
  display: block;
  width: auto;
  height: clamp(2.75rem, 4vw, 3.5rem);
}

.site-header__inner {
  position: relative;
}

.site-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.site-nav {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 1.5rem;
  right: 1.5rem;
  z-index: 60;
  display: none;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid rgba(94, 203, 227, 0.25);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 55px rgba(37, 54, 94, 0.12);
  padding: 1rem 1.1rem 1.2rem;
}

.site-nav.is-open {
  display: flex;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--steam-cyan), var(--steam-magenta));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 250ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.blueprint-frame {
  position: relative;
  isolation: isolate;
}

.hero-feature-card {
  position: relative;
  display: grid;
  gap: 1rem;
}

.hero-feature-card__stage {
  position: relative;
  min-height: 30rem;
}

.hero-feature-card__visual {
  width: 100%;
  height: 100%;
  border-radius: 2.5rem;
  display: block;
  background: transparent;
  padding: 0;
  object-fit: cover;
  box-shadow: 0 40px 100px rgba(94, 203, 227, 0.15);
  mix-blend-mode: multiply; /* Blends white background with the grid */
}

.hero-feature-card__details {
  position: absolute;
  bottom: -1.5rem;
  left: -2rem;
  z-index: 20;
}

.hero-feature-card__overlay {
  width: min(17rem, 100%);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 45px rgba(37, 54, 94, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.programme-hero-card {
  position: relative;
}

.programme-hero-card__stage {
  min-height: 26rem;
}

.programme-hero-card__visual {
  width: 100%;
  height: 100%;
  border-radius: 2.5rem;
  display: block;
  background: transparent;
  padding: 0;
  object-fit: cover;
  box-shadow: 0 40px 100px rgba(94, 203, 227, 0.15);
  mix-blend-mode: multiply;
}

.sponsors-hero-card {
  position: relative;
}

.sponsors-hero-card__stage {
  min-height: 28rem;
}

.sponsors-hero-card__visual {
  width: 100%;
  height: 100%;
  border-radius: 2.5rem;
  display: block;
  background: transparent;
  padding: 0;
  object-fit: cover;
  box-shadow: 0 40px 100px rgba(94, 203, 227, 0.15);
  mix-blend-mode: multiply;
}

.blueprint-frame::before {
  content: "";
  position: absolute;
  inset: -1.5rem;
  border: 1px dashed rgba(94, 203, 227, 0.3);
  border-radius: 3.5rem;
  z-index: -1;
  pointer-events: none;
}

.blueprint-frame::after {
  content: "";
  position: absolute;
  top: -2rem;
  right: -2rem;
  width: 5rem;
  height: 5rem;
  border-top: 2px solid var(--steam-magenta);
  border-right: 2px solid var(--steam-magenta);
  border-radius: 0 1.5rem 0 0;
  opacity: 0.4;
  z-index: -1;
}

.perspective-box {
  perspective: 1500px;
}

.tilt-card {
  transform: rotateY(-7deg) rotateX(4deg);
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-style: preserve-3d;
}

.tilt-card:hover {
  transform: rotateY(-2deg) rotateX(1deg);
}

.scanline-effect {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(94, 203, 227, 0.05) 50%,
    transparent 50.5%
  );
  background-size: 100% 4px;
  pointer-events: none;
  border-radius: inherit;
  z-index: 5;
}

.metric-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(94, 203, 227, 0.7);
  backdrop-filter: blur(14px);
}

.dark-module {
  background: linear-gradient(180deg, rgba(37, 54, 94, 0.96), rgba(53, 50, 51, 0.98));
  color: white;
}

.dark-module .section-kicker {
  color: #9ae7ff;
}

.dark-module .section-kicker::before {
  background: #9ae7ff;
}

.reveal {
  transition:
    opacity 450ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 450ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.js-ready .reveal {
  opacity: 0;
  transform: translateY(20px);
}

body.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.field-note {
  min-height: 1.25rem;
}

.contact-section,
.contact-section * {
  min-width: 0;
}

.contact-section .section-kicker {
  max-width: 100%;
  flex-wrap: wrap;
}

.contact-turnstile {
  overflow: hidden;
}

.contact-turnstile .cf-turnstile {
  max-width: 100%;
}

.focus-ring:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(230, 15, 138, 0.35);
  outline-offset: 3px;
}

.sponsor-table th,
.sponsor-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(94, 203, 227, 0.2);
  text-align: left;
}

.sponsor-logo-tile {
  min-height: 6rem;
  border: 1px dashed rgba(94, 203, 227, 0.8);
  background: rgba(255, 255, 255, 0.8);
}

.sponsor-logo-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
}

.sponsor-logo-list--dense {
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
}

.sponsor-logo-card,
.sponsor-logo-empty {
  min-height: 8rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.82);
}

.sponsor-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1rem;
  border: 1px solid rgba(15, 159, 190, 0.18);
}

.sponsor-logo-card img {
  width: 100%;
  height: 100%;
  max-height: 8rem;
  object-fit: contain;
}

.sponsor-logo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(53, 50, 51, 0.18);
  color: rgba(53, 50, 51, 0.58);
  font-size: 0.85rem;
  font-weight: 700;
}

.timeline-stripe {
  background:
    linear-gradient(180deg, rgba(15, 159, 190, 0.12), rgba(15, 159, 190, 0)),
    linear-gradient(90deg, rgba(15, 159, 190, 0.55), rgba(230, 15, 138, 0.5));
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.mobile-benefit-card {
  border: 1px solid rgba(94, 203, 227, 0.2);
  background: rgba(255, 255, 255, 0.92);
}

.letter-library {
  display: grid;
  grid-template-columns: minmax(15rem, 18rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.letter-library__index,
.letter-viewer {
  min-width: 0;
  border-radius: 1.65rem;
}

.letter-library__index {
  align-self: start;
  position: sticky;
  top: 7rem;
  border: 1px solid rgba(15, 159, 190, 0.18);
  background: linear-gradient(180deg, #f4fbfd, #e5f6fa);
  box-shadow: 0 18px 45px rgba(37, 54, 94, 0.1);
  padding: 1.35rem;
}

.letter-library__index-header {
  padding: 0.35rem 0.25rem 1.15rem;
}

.letter-library__eyebrow {
  color: var(--steam-magenta);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.letter-selector-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.letter-selector {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  width: 100%;
  min-height: 5.75rem;
  border: 1px solid rgba(15, 159, 190, 0.18);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.9rem;
  color: var(--steam-charcoal);
  text-align: left;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.letter-selector:hover {
  border-color: rgba(15, 159, 190, 0.65);
  transform: translateY(-1px);
}

.letter-selector[aria-pressed="true"] {
  border-color: var(--steam-cyan-line);
  background: var(--steam-navy);
  color: white;
  box-shadow: 0 12px 28px rgba(37, 54, 94, 0.18);
}

.letter-selector__number {
  align-self: start;
  color: var(--steam-magenta);
  font-family: "Oxanium", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
}

.letter-selector__content {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.letter-selector__title {
  font-family: "Oxanium", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
}

.letter-selector__meta,
.letter-selector__reference {
  overflow-wrap: anywhere;
  color: currentColor;
  font-size: 0.7rem;
  line-height: 1.35;
  opacity: 0.65;
}

.letter-selector__arrow {
  font-size: 1rem;
  opacity: 0.55;
}

.letter-selector[aria-pressed="true"] .letter-selector__arrow {
  color: var(--steam-cyan-line);
  opacity: 1;
}

.letter-viewer {
  overflow: hidden;
  border: 1px solid rgba(37, 54, 94, 0.12);
  background: white;
  box-shadow: 0 24px 65px rgba(37, 54, 94, 0.13);
}

.letter-viewer__header {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: 2rem 2rem 1.6rem;
}

.letter-viewer__copy {
  min-width: 0;
}

.letter-viewer__copy h3 {
  margin-top: 0.55rem;
  color: var(--steam-charcoal);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.08;
}

.letter-viewer__copy > p:last-child {
  max-width: 48rem;
  margin-top: 0.8rem;
  color: rgba(53, 50, 51, 0.7);
  font-size: 0.92rem;
  line-height: 1.65;
}

.letter-open-action {
  display: inline-flex;
  flex: none;
  gap: 0.55rem;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border-radius: 999px;
  background: var(--steam-cyan);
  padding: 0.75rem 1.1rem;
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background-color 180ms ease, transform 180ms ease;
}

.letter-open-action:hover {
  background: var(--steam-navy);
  transform: translateY(-1px);
}

.letter-viewer__meta {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr) minmax(0, 0.6fr);
  border-top: 1px solid rgba(37, 54, 94, 0.1);
  border-bottom: 1px solid rgba(37, 54, 94, 0.1);
  background: var(--steam-shell);
}

.letter-viewer__meta > div {
  min-width: 0;
  padding: 1rem 1.25rem;
}

.letter-viewer__meta > div + div {
  border-left: 1px solid rgba(37, 54, 94, 0.1);
}

.letter-viewer__meta dt {
  color: var(--steam-magenta);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.letter-viewer__meta dd {
  margin-top: 0.4rem;
  overflow-wrap: anywhere;
  color: var(--steam-charcoal);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
}

.letter-document-stage {
  background: #2d3033;
  padding: 0.75rem;
}

.letter-document-object {
  display: block;
  width: 100%;
  height: clamp(38rem, 72vw, 54rem);
  border: 0;
  border-radius: 0.8rem;
  background: white;
}

.letter-object-fallback {
  display: grid;
  min-height: 20rem;
  place-items: center;
  padding: 2rem;
  color: var(--steam-charcoal);
  text-align: center;
}

@media (max-width: 900px) {
  .letter-library {
    grid-template-columns: 1fr;
  }

  .letter-library__index {
    position: static;
  }

  .letter-selector-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .nav-link::after {
    transition: none;
  }

  body.js-ready .reveal,
  body.js-ready .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 1024px) {
  .site-nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    z-index: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }
}

@media (max-width: 640px) {
  .site-brand {
    max-width: 100%;
  }

  .site-nav {
    left: 1rem;
    right: 1rem;
  }

  .hero-feature-card__visual {
    min-height: 18rem;
  }

  .hero-feature-card__stage {
    min-height: 20rem;
  }

  .programme-hero-card__stage {
    min-height: 20rem;
  }

  .sponsors-hero-card__stage {
    min-height: 20rem;
  }

  .hero-feature-card__details {
    position: static;
    margin-top: 1.5rem;
  }

  .hero-feature-card__overlay {
    width: 100%;
  }

  .letter-library {
    gap: 0.75rem;
  }

  .letter-library__index,
  .letter-viewer {
    border-radius: 1.15rem;
  }

  .letter-library__index {
    padding: 1rem;
  }

  .letter-selector-list {
    grid-template-columns: 1fr;
  }

  .letter-selector {
    min-height: 5rem;
  }

  .letter-viewer__header {
    flex-direction: column;
    gap: 1.1rem;
    padding: 1.35rem 1.2rem 1.25rem;
  }

  .letter-open-action {
    width: 100%;
  }

  .letter-viewer__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .letter-viewer__meta > div {
    padding: 0.85rem 1rem;
  }

  .letter-viewer__meta > div:nth-child(2) {
    grid-column: 1 / -1;
    order: 3;
    border-top: 1px solid rgba(37, 54, 94, 0.1);
    border-left: 0;
  }

  .letter-viewer__meta > div:nth-child(3) {
    border-left: 1px solid rgba(37, 54, 94, 0.1);
  }

  .letter-document-stage {
    padding: 0.5rem;
  }

  .letter-document-object {
    height: min(68vh, 36rem);
  }
}

@media (max-width: 400px) {
  .contact-card {
    border-radius: 1.5rem;
  }

  .contact-section .section-kicker {
    gap: 0.5rem;
    letter-spacing: 0.14em;
  }

  .contact-section .section-kicker::before {
    width: 1.75rem;
  }
}

/* Lightbox Styles */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(37, 54, 94, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1.5rem;
  cursor: zoom-out;
}

.lightbox-backdrop.is-active {
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: default;
}

.lightbox-backdrop.is-active .lightbox-content {
  transform: scale(1);
}

.lightbox-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 1.5rem;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1010;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.lightbox-close:hover {
  background: var(--steam-magenta);
  border-color: var(--steam-magenta);
  transform: scale(1.1);
}

.lightbox-close svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
}

/* Hover effects for trigger posters */
.lightbox-trigger {
  cursor: zoom-in;
  position: relative;
}

.lightbox-trigger-overlay {
  position: absolute;
  inset: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 54, 94, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  border-radius: 1.6rem;
  pointer-events: none;
  z-index: 10;
}

.lightbox-trigger:hover .lightbox-trigger-overlay {
  opacity: 1;
}

.lightbox-trigger-btn {
  background: rgba(255, 255, 255, 0.95);
  color: var(--steam-navy);
  border-radius: 9999px;
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 25px -5px rgba(37, 54, 94, 0.3);
  transform: translateY(10px);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-transform: uppercase;
}

.lightbox-trigger:hover .lightbox-trigger-btn {
  transform: translateY(0);
}

/* Event catalogue: hover and keyboard-focus descriptions. */
.event-list {
  display: grid;
  gap: 0.85rem;
}

.event-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(7.5rem, 0.36fr) minmax(0, 1fr) minmax(8rem, 0.42fr);
  gap: 1.25rem;
  align-items: center;
  border: 1px solid rgba(94, 203, 227, 0.42);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.92);
  padding: 1rem 1.15rem;
  box-shadow: 0 12px 30px rgba(37, 54, 94, 0.06);
}

.event-title-wrap {
  position: relative;
  min-width: 0;
}

.event-name {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.6rem;
  color: var(--steam-navy);
  font-family: "Oxanium", sans-serif;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(15, 159, 190, 0.45);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.28rem;
  cursor: help;
}

.event-name::after {
  content: "?";
  display: inline-grid;
  flex: 0 0 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
  place-items: center;
  border-radius: 999px;
  background: var(--steam-ice);
  color: var(--steam-cyan);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
}

.event-name:focus-visible {
  outline: 3px solid rgba(230, 15, 138, 0.35);
  outline-offset: 0.3rem;
}

.event-tooltip {
  position: absolute;
  display: block;
  left: 0;
  top: calc(100% + 0.75rem);
  z-index: 40;
  width: min(24rem, 80vw);
  border: 1px solid rgba(94, 203, 227, 0.45);
  border-radius: 1rem;
  background: var(--steam-navy);
  color: white;
  padding: 0.9rem 1rem;
  box-shadow: 0 18px 45px rgba(37, 54, 94, 0.26);
  font-size: 0.88rem;
  line-height: 1.6;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.35rem);
  transition: opacity 160ms ease, transform 160ms ease;
}

.event-tooltip::before {
  content: "";
  position: absolute;
  left: 1.25rem;
  top: -0.45rem;
  width: 0.85rem;
  height: 0.85rem;
  background: var(--steam-navy);
  transform: rotate(45deg);
}

.event-name:hover + .event-tooltip,
.event-name:focus + .event-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.event-fit {
  color: rgba(53, 50, 51, 0.7);
  font-size: 0.82rem;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .event-row {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .event-tooltip {
    position: static;
    width: auto;
    margin-top: 0.75rem;
    background: var(--steam-ice);
    color: var(--steam-charcoal);
    box-shadow: none;
    opacity: 1;
    transform: none;
  }

  .event-tooltip::before {
    display: none;
  }

  .event-name::after {
    content: "Info";
    width: auto;
    padding-inline: 0.55rem;
  }
}
