html {
  scroll-padding-top: 170px;
}
.timeline {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.public-header .header-inner {
  height: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 24px;
  padding-top: 14px;
}
.public-header .brand {
  min-width: 0;
}
.public-header .header-actions {
  justify-self: end;
}
.public-header #navigation {
  flex-wrap: wrap;
  grid-column: 1/-1;
  position: static;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 0 0;
  border: 0;
  box-shadow: none;
  background: white;
}
.public-header #navigation > a,
.public-header .nav-group > button {
  color: var(--navy);
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  padding: 12px 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.public-header #navigation > a:hover,
.public-header .nav-group > button:hover,
.public-header .nav-group > button[aria-expanded='true'] {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
}
.public-header .nav-group {
  position: relative;
}
.public-header .nav-group > button::after {
  content: '⌄';
  margin-left: 8px;
}
.public-header .nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  max-width: min(340px, 90vw);
  border: 1px solid #dce3e9;
  border-top: 3px solid var(--accent);
  background: #fff;
  box-shadow: 0 16px 30px #102d4620;
  padding: 8px;
  border-radius: 0 0 8px 8px;
  z-index: 40;
}
.public-header .nav-dropdown a {
  display: block;
  padding: 12px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--navy);
  border-radius: 4px;
}
.public-header .nav-group:nth-last-child(-n + 2) .nav-dropdown {
  left: auto;
  right: 0;
}
.public-header .nav-dropdown a:hover,
.public-header .nav-dropdown a:focus-visible {
  background: #f0f4f7;
}
.public-header a:focus-visible,
.public-header button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.hero .hero-visual {
  min-width: 0;
}
.congress-poster {
  display: block;
  padding: 12px;
  border: 1px solid #ffffff40;
  border-radius: 12px;
  background: #ffffff10;
  transform: rotate(-2deg);
}
.congress-poster img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.poster-caption {
  color: white;
  font-size: 12px;
  display: block;
  margin: 14px 0 0;
  text-align: center;
}
.congress-facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.congress-facts div {
  padding: 12px 20px;
  border-right: 1px solid var(--line);
}
.congress-facts div:last-child {
  border: 0;
}
.congress-facts strong {
  display: block;
  color: var(--navy);
  font-size: 17px;
  margin-bottom: 6px;
}
.congress-facts span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.scientific-themes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.scientific-theme {
  background: #fff;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.scientific-theme summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: start;
  gap: 16px;
}
.scientific-theme summary::-webkit-details-marker {
  display: none;
}
.scientific-theme summary::after {
  content: '+';
  margin-left: auto;
  color: var(--accent);
  font-size: 22px;
}
.scientific-theme[open] summary::after {
  content: '−';
}
.scientific-theme .theme-number {
  color: var(--accent);
  font-size: 15px;
  padding-top: 3px;
}
.scientific-theme h3 {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: normal;
  line-height: 1.3;
  margin-bottom: 10px;
}
.scientific-theme p,
.scientific-theme li {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.scientific-theme ul {
  padding: 16px 0 0 38px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
.congress-resources {
  background: #f4f6f9;
  padding: 64px 0;
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.resource-card {
  padding: 26px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
}
.resource-card h3 {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: normal;
  margin-bottom: 15px;
}
.resource-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.resource-card a {
  color: var(--accent-dark);
  font-size: 13px;
  text-decoration: underline;
}
.standalone-page {
  max-width: 1100px;
}
.standalone-page h1 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.2;
  margin-bottom: 28px;
}
.standalone-page h2 {
  font-family: var(--serif);
  font-size: 25px;
  color: var(--navy);
  margin: 32px 0 16px;
}
.standalone-page p,
.standalone-page li {
  line-height: 1.85;
  margin-bottom: 12px;
  font-size: 16px;
}
.standalone-page ul {
  padding-left: 24px;
}
.standalone-page a {
  color: var(--accent-dark);
  text-decoration: underline;
}
.page-language[hidden],
[hidden] {
  display: none !important;
}
.tracking-form {
  max-width: 600px;
  margin: 30px auto;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.tracking-form label {
  display: block;
  margin: 18px 0 8px;
  font-size: 14px;
}
.tracking-form input {
  width: 100%;
  padding: 14px;
  border: 1px solid #bfcbd5;
  border-radius: 5px;
  font: inherit;
}
.tracking-form .button {
  margin-top: 20px;
}
@media (max-width: 1100px) {
  .public-header .header-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    min-height: 85px;
    padding: 10px 0;
    gap: 12px;
  }
  .public-header .brand-name {
    font-size: 8px;
  }
  .public-header .brand-name strong {
    font-size: 10px;
  }
  .public-header .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 34px;
    height: 38px;
    border: 0;
    background: none;
    padding: 6px;
    order: 3;
  }
  .public-header .menu-toggle span {
    height: 2px;
    width: 22px;
    background: var(--navy);
  }
  .public-header #navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 12px 4%;
    max-height: calc(100dvh - 95px);
    overflow: auto;
    box-shadow: 0 16px 25px #102d4620;
  }
  .public-header #navigation.is-open {
    flex-wrap: nowrap;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .public-header #navigation > a,
  .public-header .nav-group > button {
    width: 100%;
    text-align: left;
    font-size: 14px;
    padding: 14px 8px;
  }
  .public-header .nav-dropdown {
    position: static;
    min-width: 0;
    max-width: none;
    box-shadow: none;
    margin: 0 0 12px 8px;
    border: 0;
    border-left: 2px solid var(--accent);
  }
  .public-header .header-actions .small {
    display: inline-flex;
    font-size: 10px;
    padding: 10px;
    gap: 6px;
  }
  .public-header .header-actions {
    display: flex;
    gap: 10px;
    margin: 0;
  }
  .congress-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .timeline {
    grid-template-columns: minmax(0, 1fr);
  }
  html {
    scroll-padding-top: 110px;
  }
  .public-header .brand-name {
    display: none;
  }
  .public-header .brand-divider {
    display: none;
  }
  .public-header .brand > svg {
    width: 68px;
    height: 48px;
  }
  .public-header .header-actions {
    gap: 8px;
  }
  .public-header .languages {
    gap: 0;
  }
  .scientific-themes,
  .resource-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .scientific-theme {
    padding: 20px;
  }
  .congress-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .congress-facts div {
    padding: 12px;
  }
  .congress-facts strong {
    font-size: 15px;
  }
  .tracking-form {
    padding: 20px;
  }
  .congress-poster {
    transform: none;
  }
}

.coauthor-card {
  border: 1px solid #ccd3db;
  border-radius: 12px;
  padding: 24px;
  margin: 20px 0;
  background: #f7f9fb;
}
.coauthor-card h3 {
  margin: 0 0 8px;
}
.coauthor-card > .text-link {
  margin-bottom: 18px;
}
.committee-section {
  margin: 36px 0;
}
.committee-section h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

/* Poster presets keep the original image ratio and share the published CMS setting. */
.hero[data-poster-size='wide'] .hero-visual,
.hero[data-poster-size='full'] .hero-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  min-height: 0;
  margin: 0;
  min-width: 0;
}
.hero[data-poster-size='wide'] .congress-poster,
.hero[data-poster-size='full'] .congress-poster {
  transform: none;
  padding: 6px;
}
.hero[data-poster-size='full'] .hero-inner {
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}
.hero[data-poster-size='full'] .hero-copy {
  max-width: 850px;
}
@media (min-width: 1001px) {
  .hero[data-poster-size='wide'] .hero-inner {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
    gap: 32px;
  }
  .hero[data-poster-size='wide'] h1 {
    font-size: clamp(40px, 4.2vw, 60px);
  }
}
@media (max-width: 1000px) {
  .hero[data-poster-size='wide'] .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

.hero[data-poster-size='poster'] .hero-inner {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 0;
  padding: 0;
  margin: 0;
}
.hero[data-poster-size='poster'] .hero-visual {
  display: block;
  min-height: 0;
  margin: 0;
}
.hero[data-poster-size='poster'] .congress-poster {
  transform: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}
.hero[data-poster-size='poster'] .congress-poster img {
  border-radius: 0;
  width: 100%;
  height: auto;
}
.screen-reader-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.poster-slider {
  width: 100%;
  min-width: 0;
  background: var(--navy);
}
.poster-slides {
  display: grid;
  touch-action: pan-y;
}
.poster-slide {
  grid-area: 1/1;
  aspect-ratio: 16/9;
  min-width: 0;
  overflow: hidden;
}
.poster-slide[hidden] {
  display: none;
}
.poster-slide .congress-poster {
  height: 100%;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  transform: none;
}
.hero .poster-slide .congress-poster img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  border-radius: 0;
}
.poster-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: #fff;
  flex-wrap: wrap;
}
.poster-controls[hidden] {
  display: none;
}
.poster-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 4px;
  border: 1px solid #ffffff80;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  line-height: 1;
}
.poster-controls button:hover {
  background: #ffffff20;
}
.poster-controls button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.poster-controls [data-slide-prev],
.poster-controls [data-slide-next] {
  font-size: 0;
}
.poster-controls [data-slide-prev]::before {
  content: '←';
  font-size: 23px;
}
.poster-controls [data-slide-next]::before {
  content: '→';
  font-size: 23px;
}
.poster-controls [data-slide-play] {
  font-size: 20px;
}
.poster-dots {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.poster-dots button {
  min-width: 32px;
  min-height: 32px;
  font-size: 12px;
}
.poster-dots button[aria-current='true'] {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}
@media (max-width: 480px) {
  .poster-controls {
    gap: 8px;
    padding: 8px;
  }
  .poster-dots {
    gap: 4px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .poster-slide:not([hidden]) {
    animation: poster-reveal 0.3s ease-out;
  }
}
@keyframes poster-reveal {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}
