/* ============================================================================
   SYHF 2026 — Competitions (competitions.html)

   Brief was explicit: not bland, not white, as vivid as the Stage and Surgical
   pages. Both competitions are on screen from the first frame — the complaint
   about the rest of the site was having to scroll to discover the options.

   Two colour identities, both from locked tokens: the Olympiad reads as the
   quiz arena (mint/green), MEDATHON as the build arena (violet/sky).
   ========================================================================== */
.arena-body { background: var(--syhs-ground); color: #fff; }

/* --- Hero ---------------------------------------------------------------- */
.arena-hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 9vw, 7rem); }
.arena-hero__glow { position: absolute; inset: -30%; pointer-events: none; filter: blur(70px); }
.arena-hero__glow span { position: absolute; display: block; border-radius: 50%; opacity: 0.55; }
.arena-hero__glow span:nth-child(1) { width: 46vw; height: 46vw; left: -6%; top: 4%;
  background: radial-gradient(circle, rgba(var(--syhs-tint-mint-rgb), 0.75), transparent 68%); }
.arena-hero__glow span:nth-child(2) { width: 44vw; height: 44vw; right: -8%; top: 18%;
  background: radial-gradient(circle, rgba(var(--syhs-tint-violet-rgb), 0.7), transparent 68%); }
.arena-hero .wrap { position: relative; z-index: 1; }

.arena-eyebrow { margin: 0 0 var(--space-3); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--syhs-tint-mint); }
.arena-hero__title { margin: 0 0 var(--space-4); font-weight: 800;
  font-size: clamp(2.8rem, 1.6rem + 6vw, 6rem); line-height: 0.98;
  letter-spacing: var(--tracking-tighter); text-transform: uppercase; color: #fff; }
.arena-hero__title em { font-family: var(--font-serif); font-style: italic; font-weight: 500;
  text-transform: none; letter-spacing: var(--tracking-tight);
  background: linear-gradient(100deg, var(--syhs-tint-mint), var(--syhs-tint-violet));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.arena-hero__lede { margin: 0 0 var(--space-5); max-width: 46ch;
  font-size: var(--fs-body-lg); line-height: 1.55; color: rgba(255,255,255,0.86); }
.arena-hero__stats { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 5vw, 4rem); }
.arena-hero__stats strong { display: block; font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.arena-hero__stats span { display: block; margin-top: 0.35rem; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.14em; color: rgba(255,255,255,0.8); }
.arena-hero__count { margin: 1.4rem 0 0; font-size: 0.85rem; font-weight: 700; color: var(--syhs-tint-mint, #66d3a1); }

/* --- The two arenas ------------------------------------------------------ */
.arenas { padding-block: clamp(1rem, 3vw, 2rem) clamp(3rem, 7vw, 5rem); }
/* Three equal cards, explicit breakpoints rather than auto-fit — auto-fit's
   column count is computed by treating any percentage in the track's
   minimum as zero (CSS Grid §11.8), which made the old
   `minmax(min(100%, 26rem), 1fr)` size unpredictably once a third item
   joined. One column until there's clearly room for three abreast. */
.arenas__grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); grid-template-columns: 1fr; }
@media (min-width: 56rem) { .arenas__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 78rem) { .arenas__grid { grid-template-columns: repeat(3, 1fr); } }

.arena { position: relative; overflow: hidden; border-radius: var(--radius-md);
  display: flex; flex-direction: column;
  border: 1px solid rgba(255,255,255,0.2);
  background: linear-gradient(168deg, color-mix(in srgb, var(--syhs-ink) 36%, transparent),
                                      color-mix(in srgb, var(--syhs-ink) 58%, transparent));
  box-shadow: 0 40px 80px -44px rgba(0,0,0,0.85);
  transition: transform 280ms var(--ease-editorial), border-color 280ms; }
.arena:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--a1) 60%, transparent); }
.arena--quiz  { --a1: var(--syhs-tint-mint);   --a2: var(--syhs-signal);      --a-rgb: var(--syhs-tint-mint-rgb); }
.arena--build { --a1: var(--syhs-tint-violet); --a2: var(--syhs-deep-violet); --a-rgb: var(--syhs-tint-violet-rgb); }
/* Same sky→navy pairing research.html already uses for its oral-format card
   — not a new hue, a reused one, since this is the same "delegates come to
   you and look at what you've made" idea as a poster session, just for a
   different kind of work. */
.arena--exhibit { --a1: var(--syhs-tint-sky); --a2: var(--syhs-navy); --a-rgb: var(--syhs-navy-rgb); }

/* Same vertical card as the Olympiad and MEDATHON — three parallel ways in,
   read left to right as a set rather than two contestants plus a banner. */

.arena__bg { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(90% 70% at 15% 0%, rgba(var(--a-rgb), 0.45), transparent 70%); }
.arena::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5px;
  background: linear-gradient(90deg, var(--a1), var(--a2)); }
/* Side by side, the two cards carry different amounts of copy. Let the inner
   column stretch so both Enter buttons land on the same line. */
.arena__inner { position: relative; z-index: 1; padding: clamp(1.5rem, 4vw, 2.75rem);
  display: flex; flex-direction: column; flex: 1; }
.arena__cta { margin-top: auto; }

.arena__badge { display: inline-block; align-self: flex-start; margin-bottom: var(--space-3); padding: 0.35rem 0.85rem;
  border-radius: 999px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; background: var(--a1); color: var(--syhs-ground); }
.arena__name { margin: 0 0 0.6rem; font-weight: 800; line-height: 0.92;
  font-size: clamp(2.6rem, 1.4rem + 5vw, 4.4rem); letter-spacing: var(--tracking-tighter);
  text-transform: uppercase; color: #fff; }
.arena__tag { margin: 0 0 var(--space-3); font-weight: 600; font-size: 1.05rem; color: var(--a1); }
.arena__blurb { margin: 0 0 var(--space-4); line-height: 1.6; font-size: 1.0625rem;
  color: rgba(255,255,255,0.86); }

.arena__facts { list-style: none; margin: 0 0 var(--space-3); padding: 0; display: grid; gap: 0.6rem; }
.arena__facts li { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  padding-bottom: 0.6rem; border-bottom: 1px solid rgba(255,255,255,0.14); }
.arena__facts span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: rgba(255,255,255,0.72); }
.arena__facts strong { font-weight: 700; color: #fff; text-align: end; }
.arena__note { margin: 0 0 var(--space-4); font-size: 0.9rem; color: rgba(255,255,255,0.72); }
/* MedIQ's delegation note: important enough to stop on, not just another
   fact-list line — someone reading fast should not miss that this isn't a
   normal individual sign-up. */
.arena__flag { margin: 0 0 var(--space-4); padding: 0.7rem 0.9rem; border-radius: var(--radius-sm);
  font-size: 0.88rem; line-height: 1.5; color: #fff;
  background: color-mix(in srgb, var(--a1) 20%, transparent);
  border: 1px solid color-mix(in srgb, var(--a1) 45%, transparent); }

.arena__cta { display: inline-flex; align-items: center; gap: 0.5rem; width: 100%;
  justify-content: center; text-decoration: none; font-weight: 700; font-size: 1.05rem;
  min-height: 52px; padding: 0.9rem 1.6rem; border-radius: 999px;
  background: var(--a1); color: var(--syhs-ground);
  transition: transform 200ms, filter 200ms; }
.arena__cta:hover { transform: translateY(-2px); filter: brightness(1.08); }
.arena__cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Two actions per card now: entering, and reading the full detail — the
   second is a quiet text button, not a second CTA competing for the same
   attention. */
.arena__actions { display: flex; flex-direction: column; align-items: stretch; gap: 0.6rem; }
.arena__details-btn {
  appearance: none; background: none; border: none; cursor: pointer;
  font: inherit; font-size: 0.86rem; font-weight: 600; text-decoration: underline;
  text-underline-offset: 3px; color: rgba(255,255,255,0.72); padding: 0.3rem 0;
  align-self: center; transition: color 160ms ease;
}
.arena__details-btn:hover, .arena__details-btn:focus-visible { color: #fff; }
.arena__details-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ============================================================================
   Full details & FAQ dialog — dark, matching the arena pages rather than
   the light terms-dialog used on apply.html. All three competitions stacked
   inside one scrollable body; a click on a card's "Full details" button
   opens here scrolled to that competition's own section.
   ========================================================================== */
.details-dialog {
  border: none; border-radius: var(--radius-md); padding: 0;
  max-width: 46rem; width: calc(100% - 2rem);
  background: var(--syhs-ink);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.8);
}
.details-dialog::backdrop { background: rgba(8,4,16,0.72); backdrop-filter: blur(3px); }
.details-dialog__inner { display: flex; flex-direction: column; max-height: min(85vh, 780px); }
.details-dialog__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-4); border-bottom: 1px solid rgba(255,255,255,0.12);
  position: sticky; top: 0; background: var(--syhs-ink); z-index: 1;
}
.details-dialog__head h2 { margin: 0; font-size: 1.1rem; color: #fff; }
.details-dialog__close {
  border: none; background: none; cursor: pointer; line-height: 1;
  font-size: 1.7rem; color: rgba(255,255,255,0.6); padding: 0 0.3rem;
}
.details-dialog__close:hover, .details-dialog__close:focus-visible { color: #fff; }
.details-dialog__body { overflow-y: auto; padding: var(--space-4) var(--space-4) var(--space-5); }

.details-comp { padding-block: var(--space-4); }
.details-comp + .details-comp { border-top: 1px solid rgba(255,255,255,0.12); }
.details-comp__name {
  margin: 0 0 0.2rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: var(--tracking-tight); font-size: 1.5rem; color: #fff;
}
.details-comp__tag { margin: 0 0 var(--space-3); color: var(--syhs-tint-mint); font-weight: 600; font-size: 0.92rem; }
.details-comp h4 {
  margin: var(--space-3) 0 0.4rem; font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.55);
}
.details-comp p { margin: 0 0 0.4rem; color: rgba(255,255,255,0.88); line-height: 1.6; font-size: 0.94rem; }
.details-comp__tbd { font-style: italic; color: rgba(255,255,255,0.6); }
.details-comp ul { margin: 0; padding-left: 1.1rem; color: rgba(255,255,255,0.88); line-height: 1.55; font-size: 0.94rem; }
.details-comp ul li { margin-bottom: 0.35rem; }
.details-timeline { list-style: none; padding: 0; }
.details-timeline li { padding-left: 1rem; border-left: 2px solid var(--syhs-tint-mint); margin-bottom: 0.6rem; }
.details-timeline strong { display: block; color: #fff; font-size: 0.82rem; }

.details-faq details {
  border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem; margin-bottom: 0.5rem; background: rgba(255,255,255,0.03);
}
.details-faq summary {
  cursor: pointer; font-weight: 600; font-size: 0.92rem; color: #fff;
  list-style: none;
}
.details-faq summary::-webkit-details-marker { display: none; }
.details-faq summary::before { content: '+ '; color: var(--syhs-tint-mint); font-weight: 800; }
.details-faq details[open] summary::before { content: '\2212 '; }
.details-faq p { margin: 0.5rem 0 0; }
.details-faq a { color: var(--syhs-tint-mint); }

@media (prefers-reduced-motion: reduce) {
  .arena__details-btn { transition: none; }
}

/* --- How it works -------------------------------------------------------- */
.arena-how { padding-block: clamp(2rem, 6vw, 4rem) clamp(3rem, 8vw, 6rem);
  border-top: 1px solid rgba(255,255,255,0.12); }
.arena-how__title { margin: 0 0 var(--space-5); font-family: var(--font-serif); font-style: italic;
  font-weight: 500; font-size: var(--fs-h2); color: #fff; }
.arena-how__steps { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: grid;
  gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.arena-how__steps li { border-top: 2px solid var(--syhs-tint-mint); padding-top: var(--space-3); }
.arena-how__steps span { display: block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em;
  color: var(--syhs-tint-mint); margin-bottom: 0.5rem; }
.arena-how__steps h3 { margin: 0 0 0.4rem; font-size: 1.2rem; color: #fff; }
.arena-how__steps p { margin: 0; line-height: 1.6; color: rgba(255,255,255,0.8); }
.arena-how__flag { margin: 0; padding: 0.9rem 1.1rem; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.86); font-size: 0.95rem; }

@media (prefers-reduced-motion: reduce) {
  .arena, .arena__cta { transition: none; }
  .arena:hover, .arena__cta:hover { transform: none; }
}

/* ============================================================================
   RESEARCH (research.html) — same footing as Competitions and the Stage.
   It was white and flat; the brief was to stop that. The .info-* shell is
   reused so the markup did not have to change, but every surface is now dark
   and every section carries the navy/sky identity the component uses.
   ========================================================================== */
.rsrch-body .info-sec,
.rsrch-body .info-sec--alt { background: transparent; color: #fff; }
.rsrch-body .info-sec--alt { background: rgba(255,255,255,0.04); }
.rsrch-body .info-h { color: #fff; }
.rsrch-body .info-h__num { color: var(--syhs-tint-sky); }

/* Hero gets the same treated glow as the other two pages. */
.rsrch-body .info-hero { position: relative; overflow: hidden;
  background: linear-gradient(165deg, var(--syhs-navy), var(--syhs-ground) 70%); }
.rsrch-body .info-hero::before { content: ""; position: absolute; inset: -25%;
  pointer-events: none; filter: blur(70px);
  background: radial-gradient(38% 38% at 18% 12%, rgba(var(--syhs-navy-rgb), 0.9), transparent 70%),
              radial-gradient(34% 34% at 82% 26%, rgba(var(--syhs-tint-violet-rgb), 0.55), transparent 70%); }
.rsrch-body .info-hero__inner { position: relative; z-index: 1; }
.rsrch-body .info-hero__title { color: #fff; }
.rsrch-body .info-hero__title em {
  background: linear-gradient(100deg, var(--syhs-tint-sky), var(--syhs-tint-mint));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.rsrch-body .info-hero__lede { color: rgba(255,255,255,0.88); }
.rsrch-body .info-hero__facts strong { color: #fff; }
.rsrch-body .info-hero__facts span { color: var(--syhs-tint-sky); }

/* The two format cards carry their own colour, like the arenas. */
.rsrch-body .rsrch-card { position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-md);
  background: linear-gradient(168deg, color-mix(in srgb, var(--syhs-ink) 36%, transparent),
                                      color-mix(in srgb, var(--syhs-ink) 58%, transparent));
  box-shadow: 0 34px 70px -44px rgba(0,0,0,0.8);
  transition: transform 260ms var(--ease-editorial), border-color 260ms; }
.rsrch-body .rsrch-card::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(90% 70% at 12% 0%, rgba(var(--r-rgb), 0.42), transparent 72%); }
.rsrch-body .rsrch-card::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px;
  background: linear-gradient(90deg, var(--r1), var(--r2)); }
.rsrch-body .rsrch-card > * { position: relative; z-index: 1; }
.rsrch-body .rsrch-card:hover { transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--r1) 60%, transparent); }
/* Oral = sky, poster = violet, "no preference" = mint. */
.rsrch-body .rsrch-card:nth-of-type(1) { --r1: var(--syhs-tint-sky);    --r2: var(--syhs-navy);        --r-rgb: var(--syhs-navy-rgb); }
.rsrch-body .rsrch-card:nth-of-type(2) { --r1: var(--syhs-tint-violet); --r2: var(--syhs-deep-violet); --r-rgb: var(--syhs-tint-violet-rgb); }
.rsrch-body .rsrch-card--quiet          { --r1: var(--syhs-tint-mint);  --r2: var(--syhs-signal);      --r-rgb: var(--syhs-tint-mint-rgb);
  border-style: solid; }
.rsrch-body .rsrch-card__tag { color: var(--r1); font-weight: 800; letter-spacing: 0.12em; }
.rsrch-body .rsrch-card h3 { color: #fff; }
.rsrch-body .rsrch-card p { color: rgba(255,255,255,0.86); }

/* Timeline */
.rsrch-body .rsrch-steps li { border-inline-start-color: rgba(255,255,255,0.2); }
.rsrch-body .rsrch-steps li::before { background: var(--syhs-tint-sky);
  box-shadow: 0 0 0 4px rgba(var(--syhs-navy-rgb), 0.5); }
.rsrch-body .rsrch-steps__when { color: var(--syhs-tint-sky); }
.rsrch-body .rsrch-steps h3 { color: #fff; }
.rsrch-body .rsrch-steps p { color: rgba(255,255,255,0.82); }

/* Checklist + flag */
.rsrch-body .rsrch-need li { color: rgba(255,255,255,0.86); }
.rsrch-body .rsrch-need li::before { color: var(--syhs-tint-mint); }
.rsrch-body .rsrch-need strong { color: #fff; }
.rsrch-body .info-flag { background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.88); }

/* Closing CTA */
.rsrch-body .info-cta { background: linear-gradient(120deg, var(--syhs-navy), var(--syhs-deep-violet)); color: #fff; }
.rsrch-body .info-cta h2 { color: #fff; }
.rsrch-body .info-cta p { color: rgba(255,255,255,0.86); }

@media (prefers-reduced-motion: reduce) {
  .rsrch-body .rsrch-card { transition: none; }
  .rsrch-body .rsrch-card:hover { transform: none; }
}

/* The two format cards carry the section; the "not sure?" card is a footnote to
   them, so it runs the full width underneath instead of leaving a hole in the
   grid. */
.rsrch-body .rsrch-card--quiet { grid-column: 1 / -1; min-height: 0;
  display: grid; gap: 0.5rem 2.5rem; align-items: baseline;
  grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
  grid-template-areas: "tag body" "head body"; }
.rsrch-body .rsrch-card--quiet .rsrch-card__tag { grid-area: tag; }
/* A footnote to the two format cards, so it does not shout as loudly. */
.rsrch-body .rsrch-card--quiet h3 { grid-area: head;
  font-size: clamp(1.6rem, 1.1rem + 1.3vw, 2.2rem); }
.rsrch-body .rsrch-card--quiet p  { grid-area: body; align-self: center; }
@media (max-width: 47.99em) {
  .rsrch-body .rsrch-card--quiet { grid-template-columns: 1fr;
    grid-template-areas: "tag" "head" "body"; }
}

/* .btn--outline defaults to purple-on-white text, which disappeared against the
   dark closing panel on these pages. */
.arena-body .info-cta .btn--outline { border-color: rgba(255,255,255,0.5); color: #fff; }
.arena-body .info-cta .btn--outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

/* Sections 02 and 03 were set at the old body scale and read as small print
   next to the enlarged format cards. Bring them up to the same weight. */
.rsrch-body .rsrch-steps { gap: clamp(1.75rem, 4vw, 2.75rem); }
.rsrch-body .rsrch-steps li { padding-inline-start: clamp(1.25rem, 3vw, 2rem); border-inline-start-width: 3px; }
.rsrch-body .rsrch-steps__when { font-size: 0.95rem; }
.rsrch-body .rsrch-steps h3 { margin-bottom: 0.5rem; font-size: clamp(1.5rem, 1.05rem + 1.3vw, 2.1rem); }
.rsrch-body .rsrch-steps p { font-size: 1.15rem; max-width: 58ch; }
.rsrch-body .rsrch-need { gap: 1.1rem; }
.rsrch-body .rsrch-need li { font-size: 1.2rem; padding-inline-start: 2rem; }
.rsrch-body .rsrch-need li::before { font-size: 1.15rem; }
.rsrch-body .info-flag { font-size: 1.05rem; padding: clamp(1rem, 2.5vw, 1.5rem); }

/* The one MEDATHON rule people must not miss (committee, 30 Sep 2026).
   Reads as a warning line, not a second button: tighter radius than the
   pill CTA, an icon, and clear air before the actions. */
.arena__lock { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start;
  margin: 0 0 1.25rem; padding: 0.85rem 1rem;
  border-radius: 10px; background: rgba(255, 92, 80, 0.10); border: 1px solid rgba(255, 120, 108, 0.55);
  font-size: 0.88rem; line-height: 1.45; color: rgba(255, 255, 255, 0.78); }
.arena__lock svg { width: 1.15rem; height: 1.15rem; margin-top: 0.1rem; color: #ff8a7e; flex: none; }
.arena__lock strong { display: block; margin-bottom: 0.15rem; color: #ff9b90; font-size: 0.98rem; font-weight: 700; }
.arena__note:has(+ .arena__lock) { margin-bottom: 1rem; }
