/* ============================================================
   Scientific tracks sub-page. Reuses the registration system
   (.subhead masthead, .reg-page rhythm, .head). Scoped under
   .tracks-page so the rest of the site is untouched. The track
   list itself is reused from data/sections.ts (single source).
   ============================================================ */

/* ---- Masthead (matches the speakers / abstract sub-pages) ---- */
.trk-head { padding-block: clamp(40px, 5vw, 68px); }
.trk-head__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--gold-2);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 999px;
  margin: 0 0 16px;
}
.trk-head h1 { max-width: 20ch; }
.trk-head .subhead__sub { max-width: 64ch; }
.trk-head__glow { position: absolute; z-index: 1; pointer-events: none; border-radius: 50%; filter: blur(46px); mix-blend-mode: screen; }
.trk-head__glow--a { width: 480px; height: 380px; right: -120px; top: -150px; background: radial-gradient(circle, rgba(58, 138, 221, 0.45), transparent 64%); }
.trk-head__glow--b { width: 440px; height: 380px; left: -130px; bottom: -180px; background: radial-gradient(circle, rgba(14, 140, 122, 0.32), transparent 62%); }
.trk-head__grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0, #000, transparent 76%);
  mask-image: radial-gradient(120% 100% at 50% 0, #000, transparent 76%);
}
.trk-head .wrap { position: relative; z-index: 2; }
.trk-head__cta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 26px; }
.trk-head__stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.trk-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 12px 20px;
  min-width: 96px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.trk-stat b { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; color: #fff; line-height: 1; }
.trk-stat i { font-style: normal; font-family: var(--mono); font-weight: 600; font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.68); }

/* ---- Per-section accents + soft wash (colour, not all blue) ---- */
.tracks-page #tracks-groups { --acc: var(--blue); }
.tracks-page #formats { --acc: var(--teal); }
.reg-page.tracks-page .section { background: color-mix(in srgb, var(--acc) 7%, #fff); }

/* ---- Track groups: themed cards of numbered tracks ---- */
.trk-topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 18px; margin-top: 30px; align-items: start; }
.trk-topic { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--tc, var(--blue)); border-radius: var(--r-lg); padding: 22px 22px 24px; box-shadow: var(--shadow-sm); }
.trk-topic:nth-of-type(5n + 1) { --tc: var(--blue); }
.trk-topic:nth-of-type(5n + 2) { --tc: var(--teal); }
.trk-topic:nth-of-type(5n + 3) { --tc: var(--violet); }
.trk-topic:nth-of-type(5n + 4) { --tc: var(--amber); }
.trk-topic:nth-of-type(5n + 5) { --tc: var(--coral); }
.trk-topic__h { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; color: var(--ink); margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid color-mix(in srgb, var(--tc) 28%, var(--line)); }
.trk-topic__desc { font-size: 0.9rem; color: var(--ink-2); line-height: 1.5; margin: 0 0 16px; }
.trk-topic__list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.trk-topic__list li { display: flex; gap: 11px; align-items: baseline; font-size: 0.92rem; color: var(--ink-2); line-height: 1.4; }
.trk-topic__no { flex: none; font-family: var(--mono); font-weight: 700; font-size: 0.64rem; letter-spacing: 0.04em; color: color-mix(in srgb, var(--tc) 70%, #000); background: color-mix(in srgb, var(--tc) 13%, transparent); border-radius: 6px; padding: 2px 7px; }
.trk-topic__submit { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.88rem; color: color-mix(in srgb, var(--tc) 70%, #000); align-self: flex-start; }
.trk-topic__submit svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease-out); }
.trk-topic__submit:hover svg { transform: translateX(3px); }

/* ---- Submission guidelines link ---- */
.trk-guide { margin: 28px 0 0; text-align: center; }
.trk-guide__link { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 0.98rem; color: var(--acc); }
.trk-guide__link svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease-out); }
.trk-guide__link:hover svg { transform: translateX(3px); }

/* ---- Ways to present: format cards ---- */
.trk-fmt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); gap: 18px; margin-top: 30px; }
.trk-fmt { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 24px; box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s; }
.trk-fmt:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--acc) 40%, var(--line)); }
.trk-fmt__ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--acc) 12%, #fff); color: var(--acc); margin-bottom: 16px; }
.trk-fmt__ic svg { width: 24px; height: 24px; }
.trk-fmt__title { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--ink); margin: 0 0 8px; }
.trk-fmt__body { font-size: 0.95rem; color: var(--ink-2); line-height: 1.55; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .trk-fmt:hover { transform: none; }
}
