﻿body {
  padding-top: 72px;
  background-color: #b7e4e9;
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
  color: #112030;
}

.left-aligned {
  margin-left: auto;
}

.bg-dark {
  background-color: #343a40 !important;
}

.bg-hero {
  background: url("https://static.igem.wiki/teams/5733/wiki/headerv2.avif") no-repeat center center;
  background-size: cover;
  background-color: #000;
  margin-top: -72px;
  padding: calc(72px + clamp(2rem, 5vh, 4rem)) 0 clamp(2rem, 5vh, 4rem);
  min-height: clamp(260px, 45vh, 520px);
  display: flex;
  align-items: center;
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #0d47a1;
  transition: color 0.2s ease;
}

.navbar-brand:hover,
.navbar-brand:focus {
  color: #0b3778;
}

.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(17, 32, 48, 0.08);
  box-shadow: 0 8px 24px rgba(17, 32, 48, 0.1);
  transition: background 0.2s ease, box-shadow 0.2s ease;
  z-index: 1050;
}

.navbar .navbar-nav .nav-link {
  font-weight: 600;
  color: #112030;
  padding: 0.85rem 1.1rem;
  position: relative;
  transition: color 0.2s ease;
}

.navbar .navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 0.35rem;
  height: 3px;
  border-radius: 999px;
  background: #0d6efd;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:focus {
  color: #0d47a1;
}

.navbar .navbar-nav .nav-link:hover::after,
.navbar .navbar-nav .nav-link:focus::after,
.navbar .navbar-nav .nav-link.active::after {
  transform: scaleX(1);
  opacity: 1;
}

.navbar .navbar-nav .nav-link.active {
  color: #0d47a1;
}

.navbar .dropdown-menu {
  border-radius: 12px;
  border: 1px solid rgba(17, 32, 48, 0.08);
  box-shadow: 0 16px 40px rgba(17, 32, 48, 0.12);
  padding: 0.5rem;
}

.navbar .dropdown-item {
  font-weight: 500;
  border-radius: 8px;
  padding: 0.55rem 0.95rem;
  color: #112030;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus,
.navbar .dropdown-item.active,
.navbar .dropdown-item:active {
  background: rgba(13, 110, 253, 0.12);
  color: #0d47a1;
}

/* Callouts */
.bd-callout {
  padding: 1.25rem;
  margin: 1.25rem 0;
  border: 1px solid #e9ecef;
  border-left-width: 0.3rem;
  border-radius: 0.4rem;
  background-color: rgba(255, 255, 255, 0.7);
}

.bd-callout h4 {
  margin-bottom: 1rem;
}

.bd-callout p:last-child {
  margin-bottom: 0;
}

.bd-callout code {
  border-radius: 0.25rem;
}

.bd-callout + .bd-callout {
  margin-top: -0.25rem;
}

.bd-callout-info {
  border-left-color: #5bc0de;
}

.bd-callout-warning {
  border-left-color: #f0ad4e;
}

.bd-callout-danger {
  border-left-color: #d9534f;
}

/* Footer */
.site-footer {
  margin-top: clamp(3rem, 6vw, 6rem);
  background: radial-gradient(120% 140% at 12% 8%, rgba(46, 62, 120, 0.6) 0%, rgba(17, 28, 46, 0.96) 45%, rgba(8, 12, 28, 1) 100%);
  color: #f5f7ff;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 60%;
  background: radial-gradient(60% 60% at 20% 20%, rgba(255, 226, 138, 0.35) 0%, rgba(255, 226, 138, 0) 70%);
  opacity: 0.55;
  pointer-events: none;
}

.footer-upper {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: clamp(1.75rem, 4vw, 3rem);
}

.footer-sponsors {
  flex: 1 1 380px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.footer-kicker {
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: rgba(245, 247, 255, 0.6);
  margin: 0;
}

.footer-title {
  font-size: clamp(1.6rem, 2vw + 1rem, 2.2rem);
  font-weight: 700;
  margin: 0;
}

.footer-text {
  color: rgba(245, 247, 255, 0.78);
  max-width: 520px;
  margin: 0;
  line-height: 1.55;
}

.sponsor-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 1.25rem 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.sponsor-carousel::before,
.sponsor-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  pointer-events: none;
  z-index: 2;
}

.sponsor-carousel::before {
  left: 0;
  background: linear-gradient(90deg, rgba(12, 20, 36, 0.95) 0%, rgba(12, 20, 36, 0) 100%);
}

.sponsor-carousel::after {
  right: 0;
  background: linear-gradient(270deg, rgba(12, 20, 36, 0.95) 0%, rgba(12, 20, 36, 0) 100%);
}

.sponsor-track {
  display: inline-flex;
  align-items: center;
  gap: clamp(1.75rem, 3.5vw, 2.5rem);
  width: max-content;
  animation: sponsor-scroll 10s ease-in-out infinite alternate;
  will-change: transform;
}

.sponsor-card {
  flex: 0 0 clamp(120px, 18vw, 160px);
  display: grid;
  place-items: center;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  min-height: 90px;
}

.sponsor-card img {
  max-width: clamp(90px, 14vw, 130px);
  max-height: 64px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

.footer-contact {
  flex: 1 1 320px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-logo-mark {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo-mark img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.6rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.footer-logo-text {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(245, 247, 255, 0.85);
}

.footer-contact p {
  margin: 0;
  color: rgba(245, 247, 255, 0.75);
  line-height: 1.5;
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}

.footer-contact-list a {
  color: #ffe28a;
  font-weight: 500;
  text-decoration: none;
}

.footer-contact-list a:hover {
  text-decoration: underline;
}

.footer-bottom {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(17, 28, 46, 0) 0%, rgba(9, 14, 26, 0.7) 100%);
  padding: 1.5rem 0 2rem;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-bottom small {
  color: rgba(245, 247, 255, 0.68);
}

.footer-bottom a {
  color: #ffe28a;
  font-weight: 500;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffe28a;
  color: #112030;
  display: grid;
  place-items: center;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 20;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.35);
}

/* Home page overlays */
body.home {
  background: none;
  margin: 0;
  padding: 0;
}

.home-background {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin: 0;
  gap: 0;
}

.home-background .bg-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.cloud-text,
.tooltip-box {
  position: absolute;
  top: var(--bubble-top, 18.6%);
  left: var(--bubble-left, 40%);
  transform: translate(-50%, -50%);
  width: min(var(--bubble-width, 26rem), 90vw);
  font-size: var(--bubble-font-size, clamp(1.25rem, 1.2vw + 1rem, 2rem));
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  z-index: 2;
  color: var(--bubble-color, #000);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cloud-text-inner {
  width: 100%;
  padding: var(--bubble-padding, clamp(0.8rem, 1.4vw + 0.5rem, 1.4rem) clamp(1.1rem, 2.6vw, 2.5rem));
  border-radius: var(--bubble-radius, 28px);
  background: var(--bubble-background, rgba(17, 32, 48, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(var(--bubble-blur, 20px));
  -webkit-backdrop-filter: blur(var(--bubble-blur, 20px));
  box-shadow: 0 10px 20px rgba(17, 32, 48, 0.12);
  color: inherit;
  text-align: inherit;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.cloud-text:hover .cloud-text-inner,
.tooltip-box:hover .cloud-text-inner {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(17, 32, 48, 0.24);
}

.tooltip-box {
  color: var(--bubble-color, #fff);
  cursor: help;
}

.tooltip-box .cloud-text-inner {
  background: var(--bubble-background, rgba(17, 32, 48, 0.08));
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 24px rgba(17, 32, 48, 0.18);
}

.tooltip-box .tooltip-content {
  visibility: hidden;
  opacity: 0;
  width: min(var(--tooltip-width, 13.75rem), 90vw);
  font-size: var(--tooltip-font-size, 1rem);
  background-color: rgba(0, 0, 0, 0.85);
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px 12px;
  position: absolute;
  left: var(--tooltip-left, 50%);
  top: calc(100% + var(--tooltip-offset, 0.5rem));
  transform: translate(-50%, 0);
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 10;
}

.tooltip-box:hover .tooltip-content,
.tooltip-box:focus-within .tooltip-content {
  visibility: visible;
  opacity: 1;
}

.quick-link-overlay {
  position: absolute;
  top: var(--quick-link-top, 20%);
  left: var(--quick-link-left, 20%);
  transform: translate(-50%, -50%);
  color: var(--quick-link-color, #fff);
  font-weight: 700;
  text-decoration: none;
  z-index: 10;
}

.quick-link-overlay:hover {
  color: #ffe28a;
}

.quick-link-card {
  padding: 0;
  width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  color: inherit;
  background: none !important;
  border-radius: 0;
  cursor: pointer;
  transition: color 0.3s ease;
}

.quick-link-overlay.quick-link-card {
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.quick-link-overlay.quick-link-card:hover {
  text-decoration: none;
}

.quick-link-card .quick-link-label {
  display: block;
  width: 400px;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  transition: color 0.3s ease;
}

.quick-link-image {
  display: inline-block;
  width: 240px;
  height: 240px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quick-link-card:hover .quick-link-image {
  transform: scale(1.08);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.quick-link-card:hover .quick-link-label {
  color: #ffe28a;
}

/* Fixed missing keyframes & removed stray \n and braces */
@keyframes quick-link-ping {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.45;
  }
  70% {
    transform: translate(-50%, -50%) scale(2.6);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.8);
    opacity: 0;
  }
}

/* Responsive fix */
@media (max-width: 1200px) {
  .quick-link-image {
    width: clamp(200px, 22vw, 240px);
    height: clamp(200px, 22vw, 240px);
  }
}


@media (max-width: 992px) {
  .home-background {
    padding: 0 1.5rem 4rem;
    gap: 1.5rem;
  }

  .cloud-text,
  .tooltip-box {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100%;
    margin: 1.25rem 0;
    font-size: clamp(1.05rem, 2vw + 0.85rem, 1.55rem);
    text-align: center;
    line-height: 1.5;
  }

  .cloud-text-inner {
    padding: var(--bubble-padding, clamp(0.9rem, 3vw, 1.5rem));
    border-radius: 24px;
    background: var(--bubble-background, rgba(255, 255, 255, 0.7));
    box-shadow: 0 14px 28px rgba(17, 32, 48, 0.16);
  }

  .tooltip-box {
    cursor: default;
  }

  .tooltip-box .tooltip-content {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin-top: 0.65rem;
    opacity: 1;
    visibility: visible;
    width: 100% !important;
  }

  .quick-link-cluster {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.25rem;
    width: 100%;
    justify-items: center;
  }

  .quick-link-overlay {
    position: static !important;
    transform: none !important;
    width: 100%;
    margin: 0;
  }

  .quick-link-overlay.quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .quick-link-card {
    width: 100%;
    max-width: 220px;
  }

  .quick-link-image {
    width: clamp(140px, 42vw, 200px);
    height: clamp(140px, 42vw, 200px);
  }

  .quick-link-card .quick-link-label {
    font-size: clamp(1.1rem, 3.5vw, 1.45rem);
    text-shadow: none;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1.75rem;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 768px) {
  .footer-logo-mark img {
    width: 64px;
    height: 64px;
  }

  .quick-link-cluster {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .back-to-top {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 576px) {
  .home-background {
    padding: 0 1rem 3rem;
  }

  .cloud-text-inner {
    padding: var(--bubble-padding, clamp(0.8rem, 5vw, 1.25rem));
  }

  .quick-link-cluster {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 1rem;
  }

  .quick-link-image {
    width: clamp(120px, 60vw, 160px);
    height: clamp(120px, 60vw, 160px);
  }

  .footer-title {
    font-size: 1.65rem;
  }

  .sponsor-card {
    flex: 0 0 120px;
  }

  .sponsor-card img {
    max-width: 100px;
  }
}


@media (prefers-reduced-motion: reduce) {
  .sponsor-track {
    animation: sponsor-scroll 10s ease-in-out infinite alternate;
  }
}

@keyframes sponsor-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
/* Description page layout */
body.description-page {
  background-color: #f1f6f8;
}

.description-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  padding: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 6vw, 4.5rem);
  isolation: isolate;
}

.description-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.92))
      center/cover,
    url("https://static.igem.wiki/teams/5733/wiki/generalbackgroundv2.avif") center/cover fixed;
  opacity: 0.32;
  filter: saturate(110%);
  z-index: 0;
  pointer-events: none;
}

.description-outline {
  position: sticky;
  top: 120px;
  align-self: flex-start;
  z-index: 1;
}

.outline-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 36px rgba(17, 32, 48, 0.14);
  border: 1px solid rgba(17, 32, 48, 0.08);
}

.outline-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0d47a1;
  margin: 0;
}

.outline-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.outline-link {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: 0.65rem;
  line-height: 1.4;
  padding: 0.4rem 0;
  color: #1a2f45;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
  
}

.outline-link:hover {
  color: #0d47a1;
}

.outline-link-active {
  color: #0d47a1;
}

.outline-link-active::before {
  transform: scale(1.8);
  background: #0d47a1;
}

.description-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 6vw, 4rem);
  z-index: 1;
}

.description-section {  
  scroll-margin-top: 120px;
  position: relative;
}

.section-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(17, 32, 48, 0.08);
  box-shadow: 0 24px 40px rgba(17, 32, 48, 0.16);
}

.section-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: #112030;
}

.section-eyebrow {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0d47a1;
  margin: 0;
}

.section-heading {
  font-size: clamp(1.75rem, 2.2vw + 1rem, 2.4rem);
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
}

.section-text p {
  margin: 0;
  font-size: clamp(1.05rem, 0.4vw + 1rem, 1.2rem);
  line-height: 1.7;
}

.section-figure {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  align-self: stretch;
  box-shadow: 0 20px 40px rgba(17, 32, 48, 0.18);
}

.section-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reference-tag {
  font-weight: 600;
  color: #0d47a1;
}

.references-section .section-inner {
  grid-template-columns: minmax(0, 1fr);
}

.description-references {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  row-gap: 0.85rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.description-references li::marker {
  color: #0d47a1;
  font-weight: 700;
}

/* Added missing keyframes and removed stray \n and braces */
@keyframes description-ping {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.45;
  }
  70% {
    transform: translate(-50%, -50%) scale(2.6);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.8);
    opacity: 0;
  }
}

/* Responsive layout fixes */
@media (max-width: 1200px) {
  .section-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 992px) {
  .description-wrapper {
    grid-template-columns: 1fr;
  }

  .description-outline {
    position: static;
  }

  .outline-inner {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
  }

  .outline-title {
    flex-basis: 100%;
    margin-bottom: 0.25rem;
  }

  .outline-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
  }

  .outline-link {
    padding: 0;
  }
}

@media (max-width: 768px) {
  .description-wrapper {
    padding: clamp(1.5rem, 8vw, 2.5rem) clamp(1rem, 6vw, 1.75rem);
  }

  .section-inner {
    padding: clamp(1.5rem, 6vw, 2.25rem);
  }

  .section-figure {
    max-height: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .outline-link,
  .outline-link::before {
    transition: none;
  }
}

.section-figure.section-figure-contain {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 2vw, 1.25rem);
  background: rgba(255, 255, 255, 0.95);
}

.section-figure.section-figure-contain img {
  object-fit: contain;
  width: 100%;
  height: auto;
  max-height: 420px;
}

@media (max-width: 768px) {
  .bg-hero {
    margin-top: -64px;
    padding: calc(64px + clamp(1.5rem, 5vh, 3rem)) 0 clamp(1.5rem, 5vh, 3rem);
  }
}


.team-card-image {
  aspect-ratio: 1 / 1;
}

.team-card-overlay {
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  overflow: hidden;
}

.team-card-overlay-content {
  max-height: 100%;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  padding-right: 0.4rem;
}

.team-card-overlay-content::-webkit-scrollbar {
  width: 6px;
}

.team-card-overlay-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.38);
  border-radius: 999px;
}

.team-card:hover .team-card-overlay,
.team-card:focus-within .team-card-overlay {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.team-card:hover .team-card-overlay p,
.team-card:focus-within .team-card-overlay p {
  opacity: 1;
  transform: translateY(0);
}

.team-card-overlay.waiting {
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.team-card-overlay.waiting p {
  opacity: 1;
  transform: none;
  transition: none;
}





/* Team page */
body.team-page {
  padding-top: 72px;
  background: radial-gradient(circle at top, rgba(197, 230, 242, 0.65) 0%, rgba(215, 237, 246, 0.35) 45%, #e7f3f8 100%);
}

body.team-page header {
  display: none;
}

body.team-page .container-fluid {
  padding: 0;
}

.team-page-wrapper {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  padding: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 6vw, 4rem);
}

.team-hero {
  position: relative;
  border-radius: clamp(28px, 6vw, 44px);
  background: url("https://static.igem.wiki/teams/5733/wiki/teammemberbg.avif") no-repeat center top;
  background-size: 50% auto;
  min-height: clamp(380px, 65vw, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 10vw, 8.5rem);
  box-shadow: 0 28px 48px rgba(17, 32, 48, 0.16);
  overflow: hidden;
}

.team-hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10.25rem, 3vw, 2.25rem);
  text-align: center;
  margin-top:20rem;
}

.team-hero-photo {
  background: rgba(255, 255, 255, 0.82);
  padding: clamp(2rem, 3.5vw, 2.25rem);
  border-radius: clamp(24px, 5vw, 32px);
  box-shadow: 0 24px 48px rgba(17, 32, 48, 0.18);
  max-width: clamp(500px, 70vw, 720px);
  width: 100%;
}

.team-hero-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: clamp(18px, 4vw, 26px);
}

.team-hero-label {
  font-size: clamp(1.8rem, 3vw + 1rem, 3rem);
  font-weight: 800;
  color: #0d47a1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: clamp(0.6rem, 2vw, 1rem) clamp(1.5rem, 4vw, 3rem);
  background: rgba(255, 255, 255, 0.92);
  border-radius: clamp(20px, 4vw, 30px);
  box-shadow: inset 0 0 0 2px rgba(13, 71, 161, 0.28), 0 16px 32px rgba(17, 32, 48, 0.12);
}

.team-section {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 4vw, 2.75rem);
}

.team-section-header {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.team-section-title {
  margin: 0;
  font-size: clamp(2rem, 3vw + 1rem, 2.8rem);
  font-weight: 800;
  color: #0d47a1;
}

.team-section-subtitle {
  margin: 0;
  font-size: clamp(1.05rem, 0.6vw + 1rem, 1.25rem);
  color: rgba(17, 32, 48, 0.72);
  max-width: 56ch;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.team-card-image {
  position: relative;
  border-radius: clamp(18px, 4vw, 26px);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(17, 32, 48, 0.18);
  aspect-ratio: 1 / 1;
}

.team-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 71, 161, 0.82);
  color: #fff;
  padding: clamp(1.2rem, 4vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.team-card-overlay-content {
  max-height: 100%;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  padding-right: 0.35rem;
}

.team-card-overlay-content::-webkit-scrollbar {
  width: 4px;
}

.team-card-overlay-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.38);
  border-radius: 999px;
}

.team-card-overlay p {
  margin: 0;
  line-height: 1.55;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease 0.05s, transform 0.3s ease 0.05s;
}

.team-card-signature {
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.team-card:hover .team-card-overlay,
.team-card:focus-within .team-card-overlay {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.team-card:hover .team-card-overlay p,
.team-card:focus-within .team-card-overlay p {
  opacity: 1;
  transform: translateY(0);
}

.team-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-left: 0.5rem;
}

.team-card-role {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(17, 32, 48, 0.7);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.team-card-name {
  margin: 0;
  font-size: clamp(1.2rem, 1vw + 1rem, 1.6rem);
  font-weight: 700;
  color: #112030;
}

.team-grid-members {
  grid-template-columns: repeat(4, minmax(240px, 1fr));
}

@media (max-width: 1400px) {
  .team-grid-members {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }
}

@media (max-width: 992px) {
  .team-grid-members {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 640px) {
  .team-grid-members {
    grid-template-columns: repeat(1, minmax(220px, 1fr));
  }
}

@media (max-width: 420px) {
  .team-grid-members {
    grid-template-columns: 1fr;
  }
}

.team-card-overlay.waiting {
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.team-card-overlay.waiting p {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (max-width: 768px) {
  body.team-page {
    padding-top: 64px;
  }

  .team-page-wrapper {
    padding: clamp(1.5rem, 6vw, 2.5rem) clamp(1.25rem, 6vw, 2rem);
  }

  .team-hero {
    padding: clamp(1.5rem, 7vw, 3rem);
    min-height: clamp(360px, 70vw, 520px);
    background-size: 180% auto;
  }

  .team-card-overlay {
    padding: clamp(1rem, 5vw, 1.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-card-overlay,
  .team-card-overlay p {
    transition: none !important;
    transform: none !important;
  }
}


/* Engineering page */
body.engineering-page {
  background: radial-gradient(circle at top, rgba(197, 228, 244, 0.6) 0%, rgba(227, 242, 249, 0.35) 50%, #eef5f9 100%);
}

body.engineering-page header {
  display: none;
}

body.engineering-page .container-fluid {
  padding: 0;
}

.engineering-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  padding: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 6vw, 4.5rem);
  isolation: isolate;
}

.engineering-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.92))
      center/cover,
    url("https://static.igem.wiki/teams/5733/wiki/engineering-bg.webp") center/cover fixed;
  opacity: 0.28;
  filter: saturate(110%);
  z-index: 0;
  pointer-events: none;
}

.engineering-outline {
  position: sticky;
  top: 120px;
  align-self: flex-start;
  z-index: 1;
}

.engineering-outline-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 36px rgba(17, 32, 48, 0.14);
  border: 1px solid rgba(17, 32, 48, 0.08);
}

.engineering-outline-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0d47a1;
  margin: 0;
}

.engineering-outline-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.engineering-outline-link {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.35rem 0;
  color: #15324a;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.engineering {
  align-self: center;
  transition: transform 0.2s ease, background 0.2s ease;
}


.engineering-outline-link:hover {
  color: #0d47a1;
}

.engineering-outline-link-active {
  color: #0d47a1;
}

.engineering-outline-link-active::before {
  transform: scale(1.8);
  background: #0d47a1;
}

.engineering-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 6vw, 3.75rem);
  z-index: 1;
}

.engineering-section {
  scroll-margin-top: 120px;
}

.engineering-section-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(17, 32, 48, 0.08);
  box-shadow: 0 24px 40px rgba(17, 32, 48, 0.16);
}

.engineering-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: #112030;
  font-size: 1.2rem;
  line-height: 1.75;
}

.engineering-eyebrow {
  font-size: 1.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0d47a1;
  margin: 0;
}

.engineering-heading {
  margin: 0;
  font-size: clamp(1.8rem, 2.2vw + 1rem, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
}

.engineering-stage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.engineering-stage-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  padding: clamp(1.2rem, 3vw, 1.8rem);
  border-radius: 22px;
  background: rgba(13, 71, 161, 0.06);
  border: 1px solid rgba(13, 71, 161, 0.12);
  box-shadow: 0 12px 28px rgba(17, 32, 48, 0.12);
}

.engineering-stage-card h3 {
  margin: 0;
  font-size: clamp(1.35rem, 3.4vw, 2.3rem);
  font-weight: 100;
  color: #0d47a1;
}

.engineering-stage-card p {
  margin: 0;
  line-height: 1.6;
}

.engineering-note {
  margin: 0;
  padding: 1rem 1.25rem;
  border-radius: 18px;
  background: rgba(255, 207, 145, 0.18);
  border: 1px solid rgba(255, 176, 67, 0.18);
}


.engineering-figure img {
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: 0;
  display: block;
}

.engineering-figure figcaption {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.75rem 1rem;
  color: rgba(17, 32, 48, 0.72);
  background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 992px) {
  .engineering-wrapper {
    grid-template-columns: 1fr;
  }

  .engineering-outline {
    position: static;
  }

  .engineering-outline-inner {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
  }

  .engineering-outline-title {
    flex-basis: 100%;
  }

  .engineering-outline-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
  }
}

@media (max-width: 768px) {
  .engineering-wrapper {
    padding: clamp(1.5rem, 8vw, 2.5rem) clamp(1rem, 6vw, 1.75rem);
  }

  .engineering-section-inner {
    padding: clamp(1.5rem, 6vw, 2.25rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .engineering-outline-link,
  .engineering-outline-link::before {
    transition: none;
  }

  .engineering-stage-card,
  .engineering-figure {
    transition: none;
  }
}


@media (max-width: 992px) {
  .engineering-stage-grid {
    flex-wrap: wrap;
  }
}




.engineering-stage-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.engineering-stage-card > .engineering-figure {
  align-self: stretch;
  margin-top: clamp(0.75rem, 2vw, 1.25rem);
}

@media (max-width: 768px) {
  .engineering-stage-card {
    grid-template-columns: 1fr;
  }
}



/* Modeling page */
body.modeling-page {
  background: radial-gradient(circle at top, rgba(208, 233, 244, 0.6) 0%, rgba(236, 245, 249, 0.4) 50%, #f4f9fb 100%);
}

body.modeling-page header {
  display: none;
}

body.modeling-page .container-fluid {
  padding: 0;
}

.modeling-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  padding: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 6vw, 4.5rem);
  isolation: isolate;
}

.modeling-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.94));
  opacity: 0.32;
  z-index: 0;
  pointer-events: none;
}

.modeling-outline {
  position: sticky;
  top: 120px;
  align-self: flex-start;
  z-index: 1;
}

.modeling-outline-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(17, 32, 48, 0.08);
  box-shadow: 0 18px 36px rgba(17, 32, 48, 0.12);
}

.modeling-outline-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0d47a1;
  margin: 0;
}

.modeling-outline-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modeling-outline-link {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.35rem 0;
  color: #17324a;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.modeling-outline-link::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(13, 71, 161, 0.25);
  transition: transform 0.2s ease, background 0.2s ease;
}

.modeling-outline-link:hover,
.modeling-outline-link-active {
  color: #0d47a1;
}

.modeling-outline-link-active::before {
  transform: scale(1.8);
  background: #0d47a1;
}

.modeling-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 6vw, 4rem);
  z-index: 1;
}

.modeling-section {
  scroll-margin-top: 120px;
}

.math-display {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 1.05em;
}

.math-operator {
  font-weight: 600;
}

.math-fraction {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: max-content;
}

.math-numerator,
.math-denominator {
  padding: 0.1rem 0.35rem;
  text-align: center;
}

.math-bar {
  display: block;
  width: 100%;
  border-top: 2px solid currentColor;
}

.math-group {
  display: inline-block;
  font-weight: 600;
  padding: 0 0.15rem;
}

.modeling-section-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(17, 32, 48, 0.08);
  box-shadow: 0 24px 40px rgba(17, 32, 48, 0.12);
}

.modeling-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: #112030;
}

.modeling-eyebrow {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0d47a1;
  margin: 0;
}

.modeling-bullet {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
}

.modeling-ordered {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.5rem;
}

.modeling-equation {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.01em;
  background: rgba(13, 71, 161, 0.08);
  border-radius: 18px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(13, 71, 161, 0.16);
}

.modeling-table-wrapper {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(17, 32, 48, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 24px rgba(17, 32, 48, 0.1);
}

.modeling-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.modeling-table caption {
  caption-side: top;
  font-weight: 700;
  padding: 0.75rem 1rem;
}

.modeling-table th,
.modeling-table td {
  padding: 0.65rem 0.75rem;
  text-align: center;
  border-bottom: 1px solid rgba(17, 32, 48, 0.08);
}

.modeling-table th {
  background: rgba(13, 71, 161, 0.1);
  font-weight: 700;
}

.modeling-figure {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 32px rgba(17, 32, 48, 0.16);
}

.modeling-figure-wide img {
  max-width: 560px;
}

.modeling-figure img {
  width: 100%;
  height: auto;
  max-width: 320px;
  display: block;
  margin: 0 auto;
}

.modeling-figure figcaption {
  font-size: 0.9rem;
  padding: 0.65rem 1rem;
  color: rgba(17, 32, 48, 0.7);
}

@media (max-width: 992px) {
  .modeling-wrapper {
    grid-template-columns: 1fr;
  }

  .modeling-outline {
    position: static;
  }

  .modeling-outline-inner {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
  }

  .modeling-outline-title {
    flex-basis: 100%;
  }

  .modeling-outline-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
  }
}

@media (max-width: 768px) {
  .modeling-wrapper {
    padding: clamp(1.5rem, 8vw, 2.5rem) clamp(1rem, 6vw, 1.75rem);
  }

  .modeling-section-inner {
    padding: clamp(1.5rem, 6vw, 2.25rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .modeling-outline-link,
  .modeling-outline-link::before {
    transition: none;
  }
}

.math-equation {
  display: flex;
  justify-content: center;
  padding: 0.75rem 0;
}

.math-equation img {
  max-width: 100%;
  height: auto;
}


/* Experiments page */
body.experiments-page {
  background: radial-gradient(circle at top, rgba(236, 245, 255, 0.6) 0%, rgba(223, 237, 249, 0.4) 50%, #f6f9fc 100%);
}

body.experiments-page header {
  display: none;
}

body.experiments-page .container-fluid {
  padding: 0;
}

.experiments-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  padding: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 6vw, 4.5rem);
  isolation: isolate;
}

.experiments-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.94));
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}

.experiments-outline {
  position: sticky;
  top: 120px;
  align-self: flex-start;
  z-index: 1;
}

.experiments-outline-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(17, 32, 48, 0.08);
  box-shadow: 0 18px 36px rgba(17, 32, 48, 0.12);
}

.experiments-outline-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0d47a1;
  margin: 0;
}

.experiments-outline-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.experiments-outline-link {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.35rem 0;
  color: #17324a;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.experiments-outline-link::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(13, 71, 161, 0.25);
  transition: transform 0.2s ease, background 0.2s ease;
}

.experiments-outline-link:hover,
.experiments-outline-link-active {
  color: #0d47a1;
}

.experiments-outline-link-active::before {
  transform: scale(1.8);
  background: #0d47a1;
}

.experiments-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 6vw, 4rem);
  z-index: 1;
}

.experiments-section {
  scroll-margin-top: 120px;
}

.experiments-section-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(17, 32, 48, 0.08);
  box-shadow: 0 24px 38px rgba(17, 32, 48, 0.14);
}

.experiments-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: #112030;
}

.experiments-eyebrow {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0d47a1;
  margin: 0;
}

.experiments-table-wrapper {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid rgba(17, 32, 48, 0.08);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 24px rgba(17, 32, 48, 0.1);
}

.experiments-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.experiments-table th,
.experiments-table td {
  padding: 0.6rem 0.75rem;
  text-align: center;
  border-bottom: 1px solid rgba(17, 32, 48, 0.08);
}

.experiments-table thead th {
  background: rgba(13, 71, 161, 0.12);
  font-weight: 700;
}

.experiments-steps {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.5rem;
}

@media (max-width: 992px) {
  .experiments-wrapper {
    grid-template-columns: 1fr;
  }

  .experiments-outline {
    position: static;
  }

  .experiments-outline-inner {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
  }

  .experiments-outline-title {
    flex-basis: 100%;
  }

  .experiments-outline-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
  }
}

@media (max-width: 768px) {
  .experiments-wrapper {
    padding: clamp(1.5rem, 8vw, 2.5rem) clamp(1rem, 6vw, 1.75rem);
  }

  .experiments-section-inner {
    padding: clamp(1.5rem, 6vw, 2.25rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .experiments-outline-link,
  .experiments-outline-link::before {
    transition: none;
  }
}
/* Human Practices page */
body.human-practices-page {
  background-color: #f1f6fb;
}

.human-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  padding: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 6vw, 4.5rem);
  isolation: isolate;
}

.human-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.95)) center/cover,
    url("https://static.igem.wiki/teams/5733/wiki/generalbackgroundv2.avif") center/cover fixed;
  opacity: 0.35;
  filter: saturate(110%);
  z-index: 0;
  pointer-events: none;
}

.human-outline {
  position: sticky;
  top: 120px;
  align-self: flex-start;
  z-index: 1;
}

.human-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(2.25rem, 5vw, 3.5rem);
  z-index: 1;
}

.human-section {
  scroll-margin-top: 120px;
}

.human-section-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(17, 32, 48, 0.08);
  box-shadow: 0 24px 40px rgba(17, 32, 48, 0.16);
}

.human-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: #112030;
}

.human-text h3 {
  margin: 0;
  font-size: clamp(2rem, 2vw + 1.3rem, 2.6rem);
  font-weight: 750;
  color: #0d47a1;
}

.human-text h4 {
  margin: 0;
  font-size: clamp(1.35rem, 1.5vw + 1rem, 1.85rem);
  font-weight: 650;
  color: #15457a;
}

.human-text h5 {
  margin: 0;
  font-size: clamp(1.12rem, 1.2vw + 0.9rem, 1.45rem);
  font-weight: 600;
  color: #1f3f60;
}

.human-text p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.75;
}

.human-text p + p {
  margin-top: -0.15rem;
}

.human-figure {
  margin: 0;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(13, 71, 161, 0.14);
  box-shadow: 0 18px 36px rgba(17, 32, 48, 0.12);
  overflow: hidden;
}

.human-figure img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.human-figure figcaption {
  margin: 0;
  padding: 1rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(17, 32, 48, 0.72);
  background: rgba(255, 255, 255, 0.92);
}

.human-figure-duo {
  padding: 1.2rem 1.35rem 1.35rem;
}

.human-figure-duo-grid {
  display: grid;
  gap: 1rem;
}

.human-figure-duo-grid img {
  border-radius: 18px;
}

.human-figure-duo figcaption {
  margin-top: 1rem;
  padding: 0;
  background: transparent;
}

.human-figure-column {
  display: grid;
  gap: 1.25rem;
}

.human-references {
  padding: 1.75rem 2rem;
  border-radius: 22px;
  background: rgba(13, 71, 161, 0.06);
  border: 1px solid rgba(13, 71, 161, 0.18);
  box-shadow: 0 14px 28px rgba(17, 32, 48, 0.12);
  display: grid;
  gap: 0.75rem;
}

.human-references p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
}

.human-outline-link.outline-link {
  position: relative;
}

.human-outline-link.outline-link::before {
  content: '';
  position: absolute;
  left: -0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(13, 71, 161, 0.25);
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 1;
}

.human-outline-link.outline-link::after {
  content: '';
  position: absolute;
  left: -0.9rem;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(13, 71, 161, 0.25);
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}

.human-outline-link.outline-link:hover::before,
.human-outline-link.outline-link.outline-link-active::before {
  transform: translateY(-50%) scale(1.8);
  background: #0d47a1;
}

.human-outline-link.outline-link.outline-link-active {
  color: #0d47a1;
  font-weight: 700;
}




  .human-section-inner {
    padding: clamp(1.75rem, 6vw, 2.5rem);
  }

  .human-figure-column {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }


@media (max-width: 992px) {
  .human-wrapper {
    padding: clamp(1.5rem, 8vw, 2.5rem) clamp(1rem, 6vw, 1.75rem);
  }

  .human-section-inner {
    padding: clamp(1.5rem, 6vw, 2.25rem);
  }

  .human-figure-duo {
    padding: 1rem 1.1rem 1.2rem;
  }

  .human-text p {
    font-size: 1.02rem;
  }
}

@media (max-width: 640px) {
  .human-figure-duo-grid {
    grid-template-columns: 1fr;
  }

  .human-figure-column {
    grid-template-columns: 1fr;
  }

  .human-references {
    padding: 1.5rem 1.35rem;
  }
}
.human-block {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.6rem);
}

.human-block-text {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.human-block-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: flex-start;
}

.human-figure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.human-list {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.5rem;
}

/* Corrected and complete @keyframes animation */
@keyframes human-outline-ping {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.45;
  }
  70% {
    transform: translate(-50%, -50%) scale(2.6);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.8);
    opacity: 0;
  }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .human-block-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .human-block-text {
    gap: 0.8rem;
  }

  .human-list {
    padding-left: 1rem;
  }
}


.human-content {
  overflow: visible;
}

.outline-link-active {
  font-weight: 700;
  color: #007acc !important;
  border-left: 3px solid #007acc;
  padding-left: 6px;
  transition: all 0.25s ease-in-out;
}

/* Notebook page */
body.notebook-page {
  background-color: #f4f7fb;
}

.notebook-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  padding: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 6vw, 4.5rem);
  isolation: isolate;
}

.notebook-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.96)) center/cover,
    url("https://static.igem.wiki/teams/5733/wiki/generalbackgroundv2.avif") center/cover fixed;
  opacity: 0.25;
  filter: saturate(105%);
  z-index: 0;
  pointer-events: none;
}

.notebook-outline {
  position: sticky;
  top: 120px;
  align-self: flex-start;
  z-index: 1;
}

.notebook-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 3.25rem);
  z-index: 1;
}

.notebook-section {
  scroll-margin-top: 120px;
}

.notebook-section-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 3vw, 1.8rem);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(17, 32, 48, 0.08);
  box-shadow: 0 20px 32px rgba(17, 32, 48, 0.14);
}

.notebook-section-inner h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  color: #0d47a1;
}

.notebook-list {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.6rem;
  color: #112030;
  list-style: disc;
}

.notebook-list > li {
  line-height: 1.6;
}

.notebook-sublist {
  margin-top: 0.45rem;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
  list-style: circle;
}

.notebook-sublist li {
  line-height: 1.55;
}

@media (max-width: 1200px) {
  .notebook-wrapper {
    grid-template-columns: 1fr;
  }

  .notebook-outline {
    position: static;
  }
}

@media (max-width: 992px) {
  .notebook-wrapper {
    padding: clamp(1.5rem, 8vw, 2.5rem) clamp(1.1rem, 7vw, 2rem);
  }

  .notebook-section-inner {
    padding: clamp(1.5rem, 6vw, 2.25rem);
  }
}

@media (max-width: 640px) {
  .notebook-list {
    padding-left: 1rem;
  }

  .notebook-sublist {
    padding-left: 0.9rem;
  }
}


/* Results page */
body.results-page {
  background-color: #eef3f9;
}

.results-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  padding: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 6vw, 4.5rem);
  isolation: isolate;
}

.results-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.97)) center/cover,
    url("https://static.igem.wiki/teams/5733/wiki/generalbackgroundv2.avif") center/cover fixed;
  opacity: 0.3;
  filter: saturate(108%);
  z-index: 0;
  pointer-events: none;
}

.results-outline {
  position: sticky;
  top: 120px;
  align-self: flex-start;
  z-index: 1;
}

.results-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 3.25rem);
  z-index: 1;
}

.results-section {
  scroll-margin-top: 120px;
}

.results-section-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(1.1rem, 3vw, 1.9rem);
  padding: clamp(1.85rem, 4vw, 2.85rem);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(17, 32, 48, 0.08);
  box-shadow: 0 20px 34px rgba(17, 32, 48, 0.14);
}

.results-section-inner h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2.7vw, 2rem);
  color: #0d47a1;
}

.results-block {
  display: grid;
  gap: 0.75rem;
  color: #112030;
}

.results-figure {
  margin: clamp(1.2rem, 3vw, 1.8rem) 0 0;
  display: grid;
  gap: 0.75rem;
}

.results-figure img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 18px 32px rgba(17, 32, 48, 0.18);
}

.results-figure figcaption {
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  background: rgba(13, 71, 161, 0.08);
  color: #0d47a1;
  font-size: 0.95rem;
  line-height: 1.55;
}

.results-table-wrapper {
  overflow-x: auto;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(17, 32, 48, 0.12);
}

.results-table th,
.results-table td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(17, 32, 48, 0.08);
  text-align: left;
  font-size: 0.98rem;
}

.results-table th {
  background: rgba(13, 71, 161, 0.12);
  color: #0d47a1;
  font-weight: 700;
}

.results-table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 1200px) {
  .results-wrapper {
    grid-template-columns: 1fr;
  }

  .results-outline {
    position: static;
  }
}

@media (max-width: 992px) {
  .results-wrapper {
    padding: clamp(1.5rem, 8vw, 2.5rem) clamp(1.1rem, 7vw, 2rem);
  }

  .results-section-inner {
    padding: clamp(1.6rem, 6vw, 2.35rem);
  }
}

@media (max-width: 640px) {
  .results-figure figcaption {
    font-size: 0.9rem;
  }

  .results-table th,
  .results-table td {
    padding: 0.75rem;
  }
}


/* Parts page */
body.parts-page {
  background-color: #f2f6fb;
}

.parts-wrapper {
  position: relative;
  padding: clamp(2.25rem, 6vw, 4.25rem) clamp(1.75rem, 6vw, 4.75rem);
  isolation: isolate;
}

.parts-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.98)) center/cover,
    url("https://static.igem.wiki/teams/5733/wiki/generalbackgroundv2.avif") center/cover fixed;
  opacity: 0.28;
  filter: saturate(108%);
  z-index: 0;
  pointer-events: none;
}

.parts-section {
  position: relative;
  z-index: 1;
}

.parts-section-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 3vw, 2rem);
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(17, 32, 48, 0.08);
  box-shadow: 0 22px 36px rgba(17, 32, 48, 0.14);
}

.parts-heading {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: #0d47a1;
}

.parts-table-wrapper {
  overflow-x: auto;
}

.parts-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(17, 32, 48, 0.12);
}

.parts-table th,
.parts-table td {
  padding: clamp(0.85rem, 2vw, 1.1rem) clamp(0.9rem, 2vw, 1.4rem);
  border-bottom: 1px solid rgba(17, 32, 48, 0.08);
  text-align: left;
  font-size: 0.98rem;
}

.parts-table th {
  background: rgba(13, 71, 161, 0.14);
  color: #0d47a1;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.parts-table tr:last-child td {
  border-bottom: none;
}

.parts-table a {
  color: #0d47a1;
  font-weight: 600;
  text-decoration: none;
}

.parts-table a:hover,
.parts-table a:focus {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .parts-table th,
  .parts-table td {
    font-size: 0.94rem;
  }
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 0.95rem;
  text-align: center;
  background: #fff;
  border: 1px solid #ddd;
}

.data-table th, .data-table td {
  border: 1px solid #ccc;
  padding: 8px 12px;
}

.data-table th {
  background-color: #f3f4f6;
  font-weight: 600;
}

.data-table tr:nth-child(even) {
  background-color: #fafafa;
}

.data-table caption {
  caption-side: top;
  font-weight: bold;
  margin-bottom: 8px;
}


/* Education page */
body.education-page {
  background-color: #f6f7fc;
}

.education-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  padding: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 6vw, 4.5rem);
  isolation: isolate;
}

.education-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.96)) center/cover,
    url("https://static.igem.wiki/teams/5733/wiki/generalbackgroundv2.avif") center/cover fixed;
  opacity: 0.28;
  filter: saturate(110%);
  z-index: 0;
  pointer-events: none;
}

.education-outline {
  position: sticky;
  top: 120px;
  align-self: flex-start;
  z-index: 1;
}

.education-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 3.25rem);
  z-index: 1;
}

.education-section {
  scroll-margin-top: 120px;
}

.education-section-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(1.1rem, 3vw, 1.9rem);
  padding: clamp(1.85rem, 4vw, 2.9rem);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(17, 32, 48, 0.08);
  box-shadow: 0 20px 32px rgba(17, 32, 48, 0.14);
}

.education-section-inner h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  color: #0d47a1;
}

.education-block {
  display: grid;
  gap: 0.8rem;
  color: #112030;
  font-size: 1.05rem;
  line-height: 1.7;
}

.education-figure {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 30px rgba(17, 32, 48, 0.16);
}

.education-figure img {
  width: 100%;
  height: auto;
  display: block;
  
}

.education-figure figcaption {
  margin: 0;
  padding: 0.7rem 1rem;
  color: rgba(17, 32, 48, 0.76);
  background: rgba(255, 255, 255, 0.94);
  font-size: 0.95rem;
}

.education-figure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

@media (max-width: 1200px) {
  .education-wrapper {
    grid-template-columns: 1fr;
  }

  .education-outline {
    position: static;
  }
}

@media (max-width: 992px) {
  .education-wrapper {
    padding: clamp(1.6rem, 8vw, 2.6rem) clamp(1.1rem, 7vw, 2.1rem);
  }

  .education-section-inner {
    padding: clamp(1.6rem, 6vw, 2.3rem);
  }
}

@media (max-width: 640px) {
  .education-block {
    font-size: 1rem;
  }
}

/* Safety page */
body.safety-page {
  background-color: #f4f7fa;
}

.safety-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  padding: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 6vw, 4.5rem);
  isolation: isolate;
}

.safety-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.96)) center/cover,
    url("https://static.igem.wiki/teams/5733/wiki/generalbackgroundv2.avif") center/cover fixed;
  opacity: 0.26;
  filter: saturate(112%);
  z-index: 0;
  pointer-events: none;
}

.safety-outline {
  position: sticky;
  top: 120px;
  align-self: flex-start;
  z-index: 1;
}

.safety-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 3.25rem);
  z-index: 1;
}

.safety-section {
  scroll-margin-top: 120px;
}

.safety-section-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(1.05rem, 2.8vw, 1.8rem);
  padding: clamp(1.9rem, 4vw, 2.9rem);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(17, 32, 48, 0.08);
  box-shadow: 0 20px 32px rgba(17, 32, 48, 0.14);
}

.safety-section-inner h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  color: #0d47a1;
}

.safety-block {
  display: grid;
  gap: 0.8rem;
  color: #112030;
  font-size: 1.05rem;
  line-height: 1.7;
}

.safety-list {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.55rem;
}

.safety-list li {
  line-height: 1.65;
}

@media (max-width: 1200px) {
  .safety-wrapper {
    grid-template-columns: 1fr;
  }

  .safety-outline {
    position: static;
  }
}

@media (max-width: 992px) {
  .safety-wrapper {
    padding: clamp(1.6rem, 8vw, 2.6rem) clamp(1.1rem, 7vw, 2.1rem);
  }

  .safety-section-inner {
    padding: clamp(1.6rem, 6vw, 2.3rem);
  }
}

@media (max-width: 640px) {
  .safety-block {
    font-size: 1rem;
  }
}

/* Contribution page */
body.contribution-page {
  background-color: #f3f6fb;
}

.contribution-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  padding: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 6vw, 4.5rem);
  isolation: isolate;
}

.contribution-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.96)) center/cover,
    url("https://static.igem.wiki/teams/5733/wiki/generalbackgroundv2.avif") center/cover fixed;
  opacity: 0.28;
  filter: saturate(108%);
  z-index: 0;
  pointer-events: none;
}

.contribution-outline {
  position: sticky;
  top: 120px;
  align-self: flex-start;
  z-index: 1;
}

.contribution-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 3.25rem);
  z-index: 1;
}

.contribution-section {
  scroll-margin-top: 120px;
}

.contribution-section-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(1.1rem, 3vw, 1.9rem);
  padding: clamp(1.85rem, 4vw, 2.9rem);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(17, 32, 48, 0.08);
  box-shadow: 0 20px 32px rgba(17, 32, 48, 0.14);
}

.contribution-section-inner h2,
.contribution-section-inner h3,
.contribution-section-inner h4 {
  margin: 0;
  color: #0d47a1;
}

.contribution-section-inner h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.contribution-section-inner h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
}

.contribution-section-inner h4 {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
}

.contribution-block {
  display: grid;
  gap: 0.8rem;
  color: #112030;
  font-size: 1.05rem;
  line-height: 1.7;
}

.contribution-figure {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 30px rgba(17, 32, 48, 0.16);
}

.contribution-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.contribution-figure figcaption {
  margin: 0;
  padding: 0.7rem 1rem;
  color: rgba(17, 32, 48, 0.76);
  background: rgba(255, 255, 255, 0.94);
  font-size: 0.95rem;
}

.contribution-figure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}
.contribution-subgroup {
  display: grid;
  gap: clamp(1.25rem, 3vw, 1.85rem);
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: 24px;
  background: rgba(13, 71, 161, 0.08);
  border: 1px solid rgba(13, 71, 161, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.contribution-subsection {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(13, 71, 161, 0.1);
  box-shadow: 0 12px 24px rgba(17, 32, 48, 0.12);
}

.contribution-subsection h4 {
  margin: 0;
}

.contribution-subsection .contribution-block {
  margin-top: 0;
}


.contribution-references {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.65rem;
  color: #112030;
  font-size: 1.02rem;
  line-height: 1.65;
}

@media (max-width: 1200px) {
  .contribution-wrapper {
    grid-template-columns: 1fr;
  }

  .contribution-outline {
    position: static;
  }

  .contribution-subgroup {
    padding: clamp(1.2rem, 4vw, 1.6rem);
  }
}

@media (max-width: 992px) {
  .contribution-wrapper {
    padding: clamp(1.6rem, 8vw, 2.6rem) clamp(1.1rem, 7vw, 2.1rem);
  }

  .contribution-section-inner {
    padding: clamp(1.6rem, 6vw, 2.3rem);
  }
}

@media (max-width: 640px) {
  .contribution-block {
    font-size: 1rem;
  }

  .contribution-subgroup {
    gap: 1rem;
  }
}
.contribution-citation {
  color: #0d47a1;
  font-weight: 600;
}

/* Responsive layout for description text sections */
.description-wrapper .section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr; /* text | image */
  align-items: center;
  gap: 2rem;
  padding: 2rem 6%;
}

.section-text {
  font-size: clamp(0.95rem, 1.2vw + 0.6rem, 1.2rem);
  line-height: 1.6;
  max-width: 700px;
}

/* Headings automatically resize with screen */
.section-heading {
  font-size: clamp(1.6rem, 2vw + 1rem, 2.4rem);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.section-eyebrow {
  font-size: clamp(0.85rem, 0.8vw + 0.5rem, 1rem);
  letter-spacing: 0.05em;
  color: #004aad;
  text-transform: uppercase;
}

/* Images stay proportional */
.section-figure img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}

/* For narrower screens */
@media (max-width: 992px) {
  .description-wrapper .section-inner {
    grid-template-columns: 1fr; /* Stack vertically */
    gap: 1.5rem;
    padding: 1.5rem 5%;
  }

  .section-text {
    text-align: left;
  }
}

/* For very small mobile screens */
@media (max-width: 576px) {
  .section-heading {
    font-size: clamp(1.3rem, 4vw + 0.5rem, 1.8rem);
  }

  .section-text {
    font-size: clamp(0.9rem, 2.5vw + 0.3rem, 1rem);
  }
}

.home-background {
  position: relative;
  margin: 0;
  padding: 0;
  overflow: hidden; /* prevents floating whitespace if images overflow */
}

body, html {
  height: 100%;
  margin: 0;
  padding: 0;
  margin-bottom: 0;
}

footer {
  margin-top: -25 !important;
}
img {
  display: block;
  margin: 0;
  padding: 0;
 
}
.home-background .bg-img:nth-of-type(2) {
  margin-top: -10px; /* adjust this value until the overlap looks good */
}


/* Sustainability page */
body.sustainability-page {
  background-color: #f2f6fb;
}

.sustainability-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  padding: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 6vw, 4.5rem);
  isolation: isolate;
}

.sustainability-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.97)) center/cover,
    url("https://static.igem.wiki/teams/5733/wiki/generalbackgroundv2.avif") center/cover fixed;
  opacity: 0.28;
  filter: saturate(105%);
  z-index: 0;
  pointer-events: none;
}

.sustainability-outline {
  position: sticky;
  top: 120px;
  align-self: flex-start;
  z-index: 1;
}

.sustainability-content {
   position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 3.25rem);
  z-index: 1;

}

.sustainability-section {
  scroll-margin-top: 120px;
}

.sustainability-section-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(1.1rem, 3vw, 1.9rem);
  padding: clamp(1.85rem, 4vw, 2.9rem);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(17, 32, 48, 0.08);
  box-shadow: 0 20px 34px rgba(17, 32, 48, 0.14);
}

.sustainability-section-inner h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  color: #0d47a1;
}

.sustainability-block {
  display: grid;
  gap: 0.8rem;
  color: #112030;
  font-size: 1.05rem;
  line-height: 1.7;
}

.sustainability-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 320px);
  gap: clamp(1.4rem, 3vw, 2rem);
  align-items: center;
}

.sustainability-figure {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(13, 71, 161, 0.08);
  border: 1px solid rgba(13, 71, 161, 0.12);
}

.sustainability-figure img {
  max-width: min(220px, 100%);
  height: auto;
}

.sustainability-references {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.65rem;
  color: #112030;
  font-size: 1.02rem;
  line-height: 1.65;
}

@media (max-width: 1200px) {
  .sustainability-wrapper {
    grid-template-columns: 1fr;
  }

  .sustainability-outline {
    position: static;
  }
}

@media (max-width: 992px) {
  .sustainability-wrapper {
    padding: clamp(1.6rem, 8vw, 2.6rem) clamp(1.1rem, 7vw, 2.1rem);
  }

  .sustainability-section-inner {
    padding: clamp(1.6rem, 6vw, 2.3rem);
  }

  .sustainability-content-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .sustainability-figure {
    order: -1;
    margin: 0 auto;
    max-width: 260px;
  }
}

@media (max-width: 640px) {
  .sustainability-block {
    font-size: 1rem;
  }
}




.references-section .section-inner {
  grid-template-columns: minmax(0, 1fr);
}


.references-section .section-text {
  max-width: none;
}


.human-references li::marker,
.sustainability-references li::marker,
.contribution-references li::marker {
  color: #0d47a1;
  font-weight: 700;
}



body.attributions-page .bg-hero .display-4 {
  color: #112030 !important;
}


body.description-page .section-inner {
  grid-template-columns: minmax(0, 1fr);
}

body.description-page .section-figure {
  order: 0;
  margin-top: 1.5rem;
  justify-self: stretch;
}

body.description-page .section-text {
  max-width: none;
}


body.with-banner header .display-4 {
  color: #ffffff;
}
body.engineering-page.with-banner header,
body.modeling-page.with-banner header {
  display: block;
}

body.engineering-page.with-banner .container-fluid,
body.modeling-page.with-banner .container-fluid {
  padding: 0 0 4rem 0;
}
body.engineering-page.with-banner header.bg-hero,
body.modeling-page.with-banner header.bg-hero {
  padding: clamp(0.75rem, 2vh, 1.5rem) clamp(0.75rem, 4vw, 3rem);
  padding-top: calc(72px + clamp(0.65rem, 2vh, 1.25rem)) !important;
  min-height: clamp(150px, 560px);
  max-height: 460px;
  background-size: cover;
  background-position: center;
  margin-top: 0;
}

body.engineering-page.with-banner header.bg-hero .display-4,
body.modeling-page.with-banner header.bg-hero .display-4 {
  font-size: clamp(2rem, 3vw, 2.8rem);

}
body.engineering-page header.bg-hero .display-4,
body.modeling-page header.bg-hero .display-4 {
  text-shadow: 0 6px 18px rgba(17, 50, 74, 0.22);
position: absolute;
      text-align: center;
  top:15%;
  left: 45%;
}

body.engineering-page header.bg-hero .row,
body.modeling-page header.bg-hero .row {
  justify-content: center;
}

body.engineering-page header.bg-hero .col-lg-12,
body.modeling-page header.bg-hero .col-lg-12 {
  text-align: center;
}

body.engineering-page header.bg-hero .display-4,
body.modeling-page header.bg-hero .display-4 {
  color: black !important;
  text-shadow: 0 6px 18px rgba(17, 50, 74, 0.22);
 
}

body.engineering-page header.bg-hero .lead,
body.modeling-page header.bg-hero .lead {
  color: rgba(17, 50, 74, 0.75) !important;
}

body.attributions-page header.bg-hero .row {
  justify-content: center;
}

body.attributions-page header.bg-hero .col-lg-12 {
  text-align: center;
}

body.attributions-page header.bg-hero .display-4 {
  color: black !important;
  text-shadow: 0 6px 18px rgba(17, 50, 74, 0.22);
}

body.attributions-page header.bg-hero .lead {
  color: rgba(17, 50, 74, 0.75) !important;
}

body.attributions-page header.bg-hero {
  margin-top: 0;
  padding: clamp(0.75rem, 2vh, 1.5rem) clamp(0.75rem, 4vw, 3rem);
  padding-top: calc(72px + clamp(0.65rem, 2vh, 1.25rem)) !important;
}

/* Main outline links */
.outline-link {
  display: block;
  font-weight: 600;
  color: #1a2f45;
  margin: 0.25rem 0;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Nested subsection container */
.outline-subnav {
  margin-left: 1.2rem; /* indentation */
  border-left: 2px solid rgba(0,0,0,0.1);
  padding-left: 0.75rem;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

/* Subsection links */
.outline-sublink {
  display: block;
  font-size: 0.95rem;
  color: #3b4d5c;
  margin: 0.2rem 0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.outline-sublink:hover {
  color: #0056b3;
}

/* Optional: active state if using JS scroll tracking */
.outline-link.active, .outline-sublink.active {
  color: #0d47a1;
  font-weight: 700;
}
/* Main outline links */
.human-outline-nav .outline-link {
  display: block;
  font-weight: 600;
  color: #142f43;
  margin: 0.4rem 0;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Container for nested subsections */
.human-outline-nav .outline-subnav {
  margin-left: 1.3rem; /* indent the subsection block */
  border-left: 2px solid rgba(0, 0, 0, 0.1);
  padding-left: 0.7rem;
  margin-bottom: 0.3rem;
}

/* Subsection links */
.human-outline-nav .outline-sublink {
  display: block;
  font-size: 0.95rem;
  color: #44576c;
  margin: 0.25rem 0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.human-outline-nav .outline-sublink:hover {
  color: #0056b3;
}

/* Optional active states */
.outline-link-active,
.human-outline-nav .outline-link.active,
.human-outline-nav .outline-sublink.active {
  color: #0d47a1;
  font-weight: 700;
}
/* Sub-outline styling */
.outline-sublist {
  display: flex;
  flex-direction: column;
  margin-left: 1.2rem;
  margin-top: 0.3rem;
}

.outline-sublist .sub-link {
  font-size: 0.95em;
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease;
}

.outline-sublist .sub-link:hover {
  color: #000;
}

.education-outline-nav .outline-sublist {
  margin-left: 1.25rem;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(0, 0, 0, 0.1);
  gap: 0.35rem;
}

.education-outline-nav .outline-sublist .outline-link {
  font-size: 0.95rem;
  color: #3b4d5c;
  margin: 0.2rem 0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.education-outline-nav .outline-sublist .outline-link:hover {
  color: #0056b3;
}

@media (min-width: 992px) {
  [class*="outline-inner"] {
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    padding-right: 0.45rem;
  }

  [class*="outline-inner"]::-webkit-scrollbar {
    width: 6px;
  }

  [class*="outline-inner"]::-webkit-scrollbar-thumb {
    background: rgba(13, 71, 161, 0.25);
    border-radius: 999px;
  }
}
