/* Workshop navigation bar */

.workshop-subnav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.workshop-subnav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.35rem;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.workshop-subnav a:hover {
  color: var(--control-blue);
  background: rgba(29, 78, 216, 0.06);
  text-decoration: none;
}

.workshop-subnav a[aria-current="page"] {
  color: var(--control-blue);
  border-bottom-color: var(--control-blue);
  background: rgba(29, 78, 216, 0.08);
}

/* Workshop home page */

.workshop-home {
  max-width: none;
  padding: 0 0 3rem;
}

.loc-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  background-image:
    linear-gradient(
      rgba(15, 23, 42, 0.24),
      rgba(15, 23, 42, 0.32)
    ),
    url("../assets/CopenhagenBack4.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.loc-hero-content {
  position: relative;
  z-index: 3;
  padding: 2rem;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.55);
}

.loc-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.loc-subtitle {
  margin: 1.2rem 0 0;
  color: #ffffff;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.3;
  font-weight: 500;
}

.loc-date-line {
  margin: 0.45rem 0 0;
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 500;
}

/* iLQR pendulum */

.workshop-hero-plot {
  position: absolute;
  left: 50%;
  bottom: clamp(0.5rem, 2.5vw, 1.2rem);
  transform: translateX(-50%);
  z-index: 2;
  width: clamp(260px, 42vw, 560px);
  height: clamp(95px, 12vw, 150px);
  border-radius: 18px;
  cursor: pointer;
  opacity: 0.68;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.22));
  touch-action: none;
  pointer-events: auto;
}

.loc-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: 3rem;
  max-width: 1040px;
  margin: 3.5rem auto 1.5rem;
  padding: 0 1.5rem;
  align-items: start;
}

.loc-home-content {
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.7;
}

.loc-home-content p {
  margin: 0 0 1.5rem;
}

/* Workshop information list */

.loc-details {
  background: transparent;
}

.loc-details h2 {
  margin: 0 0 1rem;
  color: var(--ink);
}

.loc-details .plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.loc-details .plain-list li {
  position: relative;
  display: block;
  padding: 0.85rem 0;
  padding-left: 0 !important;
  border-bottom: 1px solid var(--line);
}

.loc-details .plain-list li::before {
  content: none !important;
  display: none !important;
}

.loc-details .plain-list li:last-child {
  border-bottom: 0;
}

.loc-details .plain-list strong {
  font-weight: 800;
}

.loc-note-section {
  max-width: 1040px;
  margin: 1rem auto 0;
  padding: 0 1.5rem;
  text-align: center;
}

.loc-workshop-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Sponsors */

.loc-sponsors {
  max-width: 1040px;
  margin: 3.5rem auto 0;
  padding: 2.5rem 1.5rem 0;
  text-align: center;
  border-top: 1px solid var(--line);
}

.loc-sponsors h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.sponsor-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(2.5rem, 8vw, 6rem);
  margin-top: 2rem;
}

.sponsor-logo {
  display: block;
  width: auto;
  max-width: min(320px, 80vw);
  object-fit: contain;
}

.sponsor-logo-pioneer {
  max-height: 85px;
}

.sponsor-logo-ddsa {
  max-height: 75px;
}

/* Program page */

.program-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-card);
}

.program-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: #ffffff;
}

.program-table th,
.program-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.program-table th {
  color: var(--ink);
  background: var(--surface-soft);
  font-weight: 850;
}

.program-table th:first-child,
.program-table td:first-child {
  width: 190px;
}

.program-table td:first-child {
  font-weight: 800;
  color: var(--ink);
}

.program-table tbody tr:last-child td {
  border-bottom: 0;
}

/* Speakers page */

.speakers-announcement {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 700;
}

.speaker-list {
  display: grid;
  gap: 2.5rem;
  margin-top: 1.2rem;
}

.speaker-profile {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  align-items: start;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.speaker-photo {
  display: block;
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 7px;
  border: 0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
}

.speaker-info h3 {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.35rem;
  color: var(--ink);
  font-size: 1.65rem;
  line-height: 1.2;
}

.speaker-website {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 1.1rem;
  text-decoration: none;
  line-height: 1;
}

.speaker-website:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.speaker-affiliation {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.1rem;
  font-style: italic;
}

.speaker-talk-title {
  margin: 0 0 0.9rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
}

.speaker-abstract {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 760px;
}

/* Venue and travel page */

.venue-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 3rem;
}

.venue-content {
  width: min(var(--content-width), calc(100% - 2rem));
  margin: 0 auto;
}

.venue-hero {
  min-height: 520px;
  cursor: crosshair;
  background-image:
    linear-gradient(
      rgba(15, 23, 42, 0.42),
      rgba(15, 23, 42, 0.58)
    ),
    url("../assets/NBAV.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.venue-hero.is-attracting {
  cursor: grabbing;
}

.venue-hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
}

.venue-hero .loc-hero-content {
  pointer-events: none;
}

.venue-agent-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.58;
  pointer-events: none;
}

.map-frame {
  margin-top: 1.4rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-card);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

.hotel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.info-card {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  padding: 1.1rem;
  box-shadow: var(--shadow-card);
}

.info-card h3 {
  margin: 0 0 0.4rem;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.25;
}

.info-card p {
  margin: 0;
  color: var(--muted);
}

/* Accessibility helper */

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

/* Responsive styles */

@media (prefers-reduced-motion: reduce) {
  .workshop-hero-plot,
  .venue-agent-canvas {
    opacity: 0.5;
  }
}

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

  .loc-home-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 800px) {
  .speaker-profile {
    grid-template-columns: 1fr;
  }

  .speaker-photo {
    width: 260px;
    height: 260px;
  }
}

@media (max-width: 640px) {
  .workshop-subnav {
    justify-content: flex-start;
  }

  .workshop-subnav a {
    min-height: 48px;
    padding: 0 1rem;
    font-size: 0.95rem;
  }

  .loc-hero {
    min-height: 380px;
  }

  .venue-hero {
    min-height: 430px;
  }

  .workshop-hero-plot {
    width: 240px;
    height: 82px;
    bottom: 0.45rem;
    opacity: 0.6;
  }

  .loc-home-content {
    font-size: 1.05rem;
  }

  .loc-date-line {
    font-size: 0.88rem;
  }

  .loc-sponsors {
    margin-top: 2.5rem;
    padding-top: 2rem;
  }

  .sponsor-logos {
    flex-direction: column;
    gap: 2rem;
  }

  .sponsor-logo-pioneer {
    max-height: 72px;
  }

  .sponsor-logo-ddsa {
    max-height: 62px;
  }
}

@media (max-width: 560px) {
  .venue-content {
    width: min(100% - 1rem, var(--content-width));
  }

  .program-table {
    min-width: 620px;
  }

  .program-table th:first-child,
  .program-table td:first-child {
    width: 120px;
  }

  .speaker-photo {
    width: 100%;
    max-width: 260px;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .map-frame iframe {
    height: 300px;
  }
}