.site-header {
  position: fixed;
  top: var(--nav-top-gap);
  left: 50%;
  z-index: 20;
  display: flex;
  width: calc(100% - 20px);
  max-width: 1040px;
  min-height: 58px;
  min-width: 0;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  padding: 10px 16px;
  transform: translateX(-50%);
}

.site-nav {
  display: flex;
  width: auto;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.header-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  flex: 0 0 auto;
  border-radius: 8px;
  padding: 9px 11px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--accent-soft);
  color: var(--ink);
}

.language-toggle {
  flex: 0 0 auto;
  border: 0;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--muted);
  padding: 9px 11px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease;
}

.language-toggle:hover {
  color: var(--ink);
}

.context-tabs {
  position: fixed;
  top: 74px;
  left: 50%;
  z-index: 19;
  width: calc(100% - 20px);
  max-width: 1040px;
  min-width: 0;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.context-tabs.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.context-tabs-shell {
  display: flex;
  min-width: 0;
  align-items: center;
  border: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  padding: 7px 8px;
}

.context-tabs-list {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.context-tabs-list::-webkit-scrollbar {
  display: none;
}

.context-tab-button {
  flex: 0 0 auto;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  padding: 7px 10px 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: border-color 160ms ease, color 160ms ease;
}

.context-tab-button:hover,
.context-tab-button.active {
  color: var(--ink);
}

.context-tab-button.active {
  border-bottom-color: var(--ink);
}

.panel-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.dossier-hero > .panel-pagination,
.case-study-card > .panel-pagination {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.dossier-hero:has(.dossier-panel.active .accordion-list) > .panel-pagination {
  border-top: 0;
  padding-top: 8px;
}

.panel-pagination-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.panel-pagination-arrow,
.panel-pagination-dot {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  transition: background 160ms ease, color 160ms ease, opacity 160ms ease;
}

.panel-pagination-arrow {
  width: 34px;
  height: 34px;
  font-size: 0.92rem;
  line-height: 1;
}

.panel-pagination-dot {
  width: 18px;
  height: 34px;
}

.panel-pagination-dot::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-strong);
  content: "";
  transition: background 160ms ease, transform 160ms ease;
}

.panel-pagination-arrow:hover:not(:disabled),
.panel-pagination-dot:hover,
.panel-pagination-dot.active {
  color: var(--ink);
}

.panel-pagination-arrow:hover:not(:disabled) {
  background: var(--panel);
}

.panel-pagination-dot.active::before {
  background: var(--ink);
  transform: scale(1.45);
}

.panel-pagination-arrow:disabled {
  cursor: default;
  opacity: 0.28;
}

.page-section {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 34px 10px;
  overflow-x: hidden;
  overflow-x: clip;
  scroll-margin-top: var(--scroll-clearance);
}

.hero-section {
  display: grid;
  min-height: 94vh;
  align-items: center;
  padding-top: 168px;
}

.hero-copy,
.section-shell,
.lab-shell {
  padding: 22px;
}

.site-footer {
  padding-top: 28px;
  padding-bottom: 15px;
}

.site-footer-shell {
  display: grid;
  min-height: 58px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  padding: 10px 16px;
}

.site-footer-copy {
  min-width: 0;
}

.site-footer-shell p {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-footer-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-footer-meta a {
  color: var(--ink);
  text-decoration: none;
}

.site-footer-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
}

.site-footer-mark img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.section-heading {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
}

@media (min-width: 641px) {
  .site-header {
    width: calc(100% - 32px);
    max-width: 1040px;
  }

  .context-tabs {
    width: calc(100% - 32px);
  }

  .context-tabs-shell {
    padding: 7px 10px;
  }

  .page-section {
    width: calc(100% - 32px);
    max-width: 1040px;
    padding: 44px 0;
  }

  .hero-copy,
  .section-shell,
  .lab-shell {
    padding: 42px;
  }

  .site-footer {
    padding-top: 32px;
    padding-bottom: 15px;
  }
}

@media (min-width: 981px) {
  .site-header {
    gap: 24px;
  }

  .page-section {
    padding-right: 0;
    padding-left: 0;
  }

  .hero-section {
    padding-top: 126px;
  }

  .hero-copy,
  .section-shell,
  .lab-shell {
    padding: 58px;
  }

  .site-footer {
    padding-top: 36px;
    padding-bottom: 15px;
  }

  .section-heading {
    align-items: end;
    flex-direction: row;
    justify-content: space-between;
  }
}
