/* Vanilla overrides on top of ./assets/index-CtISnLiV.css (Tailwind build) */

@font-face {
  font-family: Eurostile;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/Eurostar Regular-DXG3XHGp.ttf") format("truetype");
}

@font-face {
  font-family: Eurostile;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./assets/Eurostar Black-ClfkKSmR.ttf") format("truetype");
}

/* Brand heading face (Eurostar TTFs registered as Eurostile) — headings + opt-in display only */
h1,
h2,
h3,
h4,
h5,
h6,
.font-eurostile-heading {
  font-family: Eurostile, "Arial Narrow", "Helvetica Neue", sans-serif !important;
}

:root {
  /* Pattern strip (h-28/md:h-32) + nav row — used for hero offset + scroll-margin */
  --site-header-h: 12rem;
}

@media (min-width: 768px) {
  :root {
    --site-header-h: 13rem;
  }
}

/* Top strip uses PNG pattern (see index inline style + tcu-logo-banner.svg) */
.site-header-strip {
  background-repeat: repeat;
}

.site-hero {
  padding-top: calc(var(--site-header-h) + 3.25rem);
}

@media (min-width: 768px) {
  .site-hero {
    padding-top: calc(var(--site-header-h) + 3.75rem);
  }
}

/* Anchor offset below fixed two-row header */
#keynote,
#about,
#agenda,
#speakers,
#register,
#venue,
#partners {
  scroll-margin-top: calc(var(--site-header-h) + 0.5rem);
}

/* Navbar row: transparent over hero → solid when .site-header--scrolled */
.site-header-nav-row {
  background-color: transparent;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.site-header--scrolled .site-header-nav-row {
  background-color: rgb(255 255 255 / 0.95);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  padding-top: 1rem;
  padding-bottom: 1rem;
  backdrop-filter: blur(12px);
}

.navbar-link {
  font-size: 1.125rem;
  font-weight: 500;
  transition: color 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0;
}

#site-header:not(.site-header--scrolled) .navbar-link {
  color: rgb(77 25 121 / 0.85);
}

#site-header:not(.site-header--scrolled) .navbar-link:hover {
  color: #4d1979;
}

#site-header.site-header--scrolled .navbar-link {
  color: rgb(15 23 42 / 0.85);
}

#site-header.site-header--scrolled .navbar-link:hover {
  color: #4d1979;
}

#site-header:not(.site-header--scrolled) .navbar-menu-btn {
  color: #4d1979;
}

#site-header.site-header--scrolled .navbar-menu-btn {
  color: rgb(15 23 42);
}

.nav-mobile-panel {
  display: none;
}

.nav-mobile-panel.is-open {
  display: block;
}

body.nav-menu-open {
  overflow: hidden;
}

/* Agenda accordion (replaces Radix) */
.agenda-acc-panel[hidden] {
  display: none !important;
}

.agenda-acc-trigger .agenda-chevron {
  transition: transform 0.2s ease;
}

.agenda-acc-item.is-open .agenda-chevron {
  transform: rotate(180deg);
}

/* Native dialog — viewport-centered (fixes top-left default) + motion */
#bio-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  max-width: 40rem;
  width: min(40rem, calc(100vw - 1.5rem));
  max-height: min(88vh, 820px);
  padding: 0;
  border: none;
  border-radius: 1rem;
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 0.06),
    0 25px 50px -12px rgb(0 0 0 / 0.28),
    0 12px 24px -8px rgb(77 25 121 / 0.12);
  background: #fff;
  overflow: hidden;
}

#bio-dialog[open]:not(.bio-dialog--closing) {
  animation: bio-dialog-in 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#bio-dialog.bio-dialog--closing {
  animation: bio-dialog-out 0.22s ease-in forwards !important;
}

@keyframes bio-dialog-in {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes bio-dialog-out {
  from {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.96);
  }
}

#bio-dialog::backdrop {
  background: rgb(0 0 0 / 0.55);
  animation: bio-backdrop-in 0.28s ease-out forwards;
}

#bio-dialog.bio-dialog--closing::backdrop {
  animation: bio-backdrop-out 0.22s ease-in forwards;
}

@keyframes bio-backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes bio-backdrop-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  #bio-dialog[open]:not(.bio-dialog--closing),
  #bio-dialog.bio-dialog--closing {
    animation: none !important;
  }

  #bio-dialog::backdrop,
  #bio-dialog.bio-dialog--closing::backdrop {
    animation: none !important;
  }
}

/* Flex column: fixed header + scrollable body (close/title always visible) */
#bio-dialog .bio-dialog-inner {
  display: flex;
  flex-direction: column;
  max-height: min(88vh, 820px);
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

#bio-dialog .bio-dialog-header {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem 1rem;
  background: linear-gradient(180deg, rgb(250 250 252) 0%, #fff 100%);
  border-bottom: 1px solid rgb(226 232 240);
  box-shadow: 0 4px 14px -6px rgb(0 0 0 / 0.08);
}

#bio-dialog .bio-dialog-header-text {
  min-width: 0;
  flex: 1;
  padding-right: 0.5rem;
}

#bio-dialog .bio-dialog-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(77 25 121 / 0.75);
}

#bio-dialog .bio-dialog-heading {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
  color: #4d1979;
}

#bio-dialog .bio-dialog-close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: -0.25rem -0.25rem 0 0;
  padding: 0;
  border: none;
  border-radius: 0.5rem;
  color: rgb(71 85 105);
  background: transparent;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

#bio-dialog .bio-dialog-close:hover {
  background: rgb(241 245 249);
  color: #4d1979;
}

#bio-dialog .bio-dialog-close:focus-visible {
  outline: 2px solid #4d1979;
  outline-offset: 2px;
}

#bio-dialog .bio-dialog-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.25rem 1.5rem 1.75rem;
  -webkit-overflow-scrolling: touch;
}

#bio-dialog .bio-dialog-subtitle {
  margin: 0 0 1.25rem;
  padding-left: 0.85rem;
  border-left: 3px solid rgb(77 25 121 / 0.35);
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgb(51 65 85);
}

#bio-dialog .bio-dialog-body {
  color: rgb(30 41 59);
}

.bio-dialog-p {
  margin: 0 0 1.1rem;
  font-size: 1rem;
  line-height: 1.7;
  color: rgb(51 65 85);
}

.bio-dialog-p:last-child {
  margin-bottom: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 0.5rem 0.75rem;
  background: #fff;
  color: var(--primary, #4d1979);
  border-radius: 0.25rem;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.15);
}

.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  outline: 2px solid currentColor;
}
