:root {
  --bg-page: #f4f8f2;
  --bg-surface: rgba(255, 255, 255, 0.9);
  --bg-panel: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 241, 0.94));
  --bg-accent: linear-gradient(135deg, #0f5132, #1f7a57);
  --text-main: #183126;
  --text-muted: #54695d;
  --green-900: #0d3b2a;
  --green-800: #145239;
  --green-700: #1d6a49;
  --green-600: #2c845e;
  --green-500: #49a26f;
  --green-100: #dff1e4;
  --gold-400: #c9ab58;
  --border-soft: rgba(21, 82, 55, 0.12);
  --shadow-soft: 0 18px 40px rgba(17, 53, 35, 0.08);
  --shadow-card: 0 22px 48px rgba(10, 38, 24, 0.14);
  --shadow-strong: 0 30px 70px rgba(8, 32, 20, 0.2);
  --radius-md: 1.2rem;
  --radius-lg: 1.7rem;
  --radius-xl: 2.4rem;
  --content-width: 1180px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-top: 92px;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(97, 164, 119, 0.18), transparent 30%),
    linear-gradient(180deg, #f8fbf7 0%, var(--bg-page) 55%, #edf4ee 100%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6, .navbar-brand-text, .section-title, .hero-kicker, .hero-metric-value {
  font-family: Georgia, "Times New Roman", serif;
}

a { color: var(--green-700); text-decoration: none; transition: 0.2s ease; }
a:hover, a:focus { color: var(--green-900); }
img { max-width: 100%; }
code { color: inherit; }

.site-shell { position: relative; }
.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(16, 68, 46, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 68, 46, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 90%);
}

.page-wrapper {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
  padding: 0 0 4rem;
}

.page-wrapper > .container { max-width: 100%; padding-left: 0; padding-right: 0; }
.left-aligned { margin-left: auto; }
.names { margin: 0; padding: 0; }

.content-panel,
.quick-link-card,
.data-highlight,
.figure-card,
.graph-card {
  border: 2px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.content-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(1.4rem, 2vw, 2rem);
  background: var(--bg-panel);
  backdrop-filter: blur(10px);
}

.content-panel::after {
  content: "";
  position: absolute;
  right: -4rem;
  bottom: -5rem;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(73, 162, 111, 0.16), transparent 70%);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  color: var(--green-700);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-label::before {
  content: "";
  width: 2.7rem;
  height: 1px;
  opacity: 0.55;
  background: currentColor;
}

.section-shell {
  margin-bottom: 2rem;
}

.section-shell:last-of-type {
  margin-bottom: 0;
}

.section-heading {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.section-heading .section-label,
.section-heading .section-title {
  margin-bottom: 0;
}

.section-title {
  margin-bottom: 1rem;
  color: var(--green-900);
  font-size: clamp(1.5rem, 2.3vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-title::after {
  content: "";
  display: block;
  width: 88px;
  height: 4px;
  margin-top: 0.85rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green-700), rgba(73, 162, 111, 0.2));
}

.small-title {
  margin-top: 1.15rem;
}

.small-title::after {
  content: "";
  display: block;
  width: 88px;
  height: 4px;
  margin-top: 0.85rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green-700), rgba(73, 162, 111, 0.2));
}

.lead-copy { color: var(--text-muted); font-size: 1.05rem; }

.hero-home, .hero-entrepreneurship {
  position: relative;
  overflow: hidden;
  
  border: 2px solid rgba(211, 230, 217, 0.6);
  border-radius: var(--radius-xl);
  
  box-shadow: var(--shadow-strong);
}

.hero-home {
  margin: 0.5rem 0 1.25rem;
  background: var(--green-900);
}

.hero-photo-collage {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  pointer-events: none;
}
.hero-photo-collage > span { display: block; min-width: 0; background-size: cover; background-repeat: no-repeat; }
.hero-photo-lab { background-image: url("https://static.igem.wiki/teams/5759/labphotos/lab-p1.webp"); background-position: 50% 40%; }
.hero-photo-team { background-image: url("https://static.igem.wiki/teams/6189/wiki/team-photo.avif"); background-position: 50% 42%; }
.hero-photo-symposium { background-image: url("https://static.igem.wiki/teams/6189/wiki/symposium-compressed.avif"); background-position: 50% 34%; }
.hero-home .hero-overlay {
  z-index: 1;
  background: linear-gradient(90deg, rgba(7, 35, 24, 0.62), rgba(7, 43, 29, 0.8) 50%, rgba(10, 55, 36, 0.62));
  pointer-events: none;
}

.hero-entrepreneurship {
    background:
    linear-gradient(125deg, rgba(7, 30, 20, 0.8), rgba(18, 83, 57, 0.65)),
    /*Maybe photo of us presenting at Model Organism if we have one?*/
    url("https://static.igem.wiki/teams/6189/wiki/symposium-compressed.avif") center/cover;
  
  margin: 1rem 0 2rem;
  padding: clamp(1.6rem, 3vw, 2.5rem);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(155, 218, 182, 0.22), transparent 32%),
    radial-gradient(circle at 82% 22%, rgba(214, 184, 102, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(4, 18, 12, 0.08), rgba(4, 18, 12, 0.3));
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
  gap: 1.7rem;
  align-items: end;
  padding: clamp(2rem, 4vw, 4rem);
}

.hero-copy {
  max-width: 46rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
  color: #e4f4e8;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-kicker::before { content: ""; width: 3rem; height: 1px; background: rgba(228, 244, 232, 0.75); }

.hero-home h1, .hero-entrepreneurship h1 {
  margin-bottom: 1rem;
  color: #fff;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  line-height: 1.02; /*Making this bigger since we have some overlaps*/
  letter-spacing: -0.045em;
}

.hero-entrepreneurship h1 {
  position: relative;
}

.hero-entrepreneurship h2 {
  position: relative;
  font-size: clamp(1.5rem, 2.3vw, 2.35rem);
  margin-bottom: 0.9rem;
  color: #fff;
}

.hero-entrepreneurship h3 {
  position: relative;
  margin-bottom: 0.9rem;
  color: #fff;
  font-size: 1.35rem; 
}

.hero-home p, .hero-entrepreneurship p { color: rgba(245, 251, 247, 0.9); font-size: 1.04rem; }

.hero-entrepreneurship p {
  position: relative;
}

.hero-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.button-primary,
.button-secondary,
.nav-pill,
.metric-card,
.quick-link-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.85rem 1.25rem;
  border-radius: 0.85rem;
  font-weight: 700;
}

.button-primary { color: #0d3b2a; background: linear-gradient(135deg, #dfedcc, #a8c9a0); box-shadow: 0 14px 35px rgba(24, 91, 60, 0.14); }
.button-primary:hover, .button-primary:focus { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 38px rgba(24, 91, 60, 0.34); }
.button-secondary { color: #eef8f1; border: 2px solid rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(10px); }
.button-secondary:hover, .button-secondary:focus { color: #fff; transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.48); background: rgba(255, 255, 255, 0.14); }

.hero-side-panel,
.metric-card {
  border: 2px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-side-panel {
  padding: 1.5rem;
  border-radius: calc(var(--radius-lg) - 0.1rem);
  backdrop-filter: blur(14px);
  align-self: start;
}

.hero-side-panel h2 { margin-bottom: 0.9rem; color: #f6fbf7; font-size: 1.35rem; }
.hero-side-panel p, .hero-side-panel li { color: rgba(242, 249, 244, 0.84); font-size: 0.97rem; }
.hero-list { margin: 0; padding-left: 1.15rem; }

.hero-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.metric-card { padding: 1rem 1.1rem; border-radius: var(--radius-md); }
.metric-card:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.12); }
.hero-metric-value { display: block; color: #fff; font-size: 1.8rem; line-height: 1; }
.hero-metric-value sup {vertical-align: calc(super - 0.15rem); font-size: smaller; }
.hero-metric-label { display: block; margin-top: 0.4rem; color: rgba(240, 249, 243, 0.76); font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }

.quick-links-grid,
.card-grid { display: grid; gap: 1.25rem; }
.quick-links-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid.two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid.three-column { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-column { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.front-summary-grid,
.module-grid,
.module-route-grid,
.module-stack,
.project-path-grid,
.timeline-grid,
.stakeholder-grid,
.engineering-cycle-grid { display: grid; gap: 1.25rem; }
.front-summary-grid { grid-template-columns: 1fr; }
.module-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.module-route-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-path-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.timeline-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stakeholder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.engineering-cycle-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.quick-link-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 100%;
  padding: 1.4rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 247, 242, 0.92));
}

.quick-link-card:hover, .quick-link-card:focus { transform: translateY(-4px); border-color: rgba(28, 106, 73, 0.24); box-shadow: var(--shadow-card); }
.quick-link-icon { width: 3rem; height: 3rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 1rem; color: #fff; background: var(--bg-accent); font-size: 1.15rem; font-weight: 700; }
.quick-link-card h3 { margin: 0; color: var(--green-900); font-size: 1.2rem; }
.quick-link-card p { margin: 0; color: var(--text-muted); }
.quick-link-meta { margin-top: auto; color: var(--green-700); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

.module-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100%;
  padding: 1.55rem;
  border: 2px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(238, 247, 241, 0.95));
  box-shadow: var(--shadow-soft);
}

.module-card-number {
  display: inline-flex;
  width: fit-content;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(31, 122, 87, 0.1);
  color: var(--green-700);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.module-card h3 {
  margin: 0;
  color: var(--green-900);
  font-size: 1.2rem;
}

.module-card p,
.module-card li { color: var(--text-muted); }

.module-card-list {
  margin: 0;
  padding-left: 1.1rem;
}

.module-card-link,
.module-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  margin-top: auto;
  color: var(--green-800);
  font-weight: 700;
}

.module-card-link::after,
.module-inline-link::after {
  content: "->";
  font-size: 0.95rem;
}

.data-highlight {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  justify-content: space-between;
  padding: 1.45rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.93), rgba(221, 242, 227, 0.88)),
    radial-gradient(circle at top right, rgba(73, 162, 111, 0.2), transparent 40%);
}

.data-highlight-label { color: var(--green-700); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.data-highlight-value { color: var(--green-900); font-family: "IBM Plex Serif", Georgia, serif; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1; }
.data-highlight-copy { color: var(--text-muted); font-size: 0.96rem; }

.figure-card,
.graph-card {
  height: 100%;
  padding: 1.3rem;
  background: #fff;
}

.figure-card { display: flex; flex-direction: column; gap: 1rem; }
.figure-card-media { overflow: hidden; border-radius: 1.35rem; background: linear-gradient(135deg, rgba(15, 81, 50, 0.1), rgba(73, 162, 111, 0.16)), #f2f8f3; }
.figure-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }

.graph-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 248, 244, 0.96));
}

.graph-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(27, 94, 66, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 94, 66, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}

.graph-header, .caption-box, .figure-card-copy { position: relative; z-index: 1; }
.graph-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.graph-title { margin: 0; color: var(--green-900); font-size: 1.1rem; }
.graph-badge { display: inline-flex; align-items: center; padding: 0.35rem 0.7rem; border-radius: 999px; background: rgba(31, 122, 87, 0.1); color: var(--green-700); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.graph-plot {
  position: relative;
  height: 250px;
  margin-bottom: 1rem;
  border: 2px solid rgba(18, 83, 57, 0.08);
  border-radius: 1.2rem;
  background: linear-gradient(180deg, rgba(233, 244, 236, 0.95), rgba(248, 251, 248, 0.95));
}

.graph-line,
.graph-line-secondary,
.graph-line-tertiary { position: absolute; border-radius: 999px; }
.graph-line { inset: auto 8% 18% 8%; height: 55%; border-bottom: 3px solid rgba(28, 106, 73, 0.95); transform: skewY(-9deg); }
.graph-line-secondary { inset: auto 12% 28% 12%; height: 40%; border-bottom: 3px dashed rgba(201, 171, 88, 0.9); transform: skewY(-4deg); }
.graph-line-tertiary { inset: auto 20% 12% 20%; height: 25%; border-bottom: 3px solid rgba(73, 162, 111, 0.82); transform: skewY(-12deg); }

.platform-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  margin-bottom: 1rem;
  padding: 1rem 0;
}

.platform-step {
  flex: 1;
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  border: 2px solid rgba(18, 83, 57, 0.1);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.platform-step strong {
  color: var(--green-900);
  font-size: 1.3rem;
}

.platform-step span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.platform-arrow {
  color: var(--green-700);
  font-size: 1.4rem;
  font-weight: 700;
}

.caption-box {
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--green-600);
  border-radius: 1rem;
  background: rgba(223, 241, 228, 0.72);
  color: var(--text-muted);
}

.caption-box strong { display: block; margin-bottom: 0.35rem; color: var(--green-900); }
.stat-list { display: grid; gap: 0.85rem; }
.stat-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: 0.85rem; border-bottom: 1px solid rgba(18, 83, 57, 0.1); }
.stat-row:last-child { padding-bottom: 0; border-bottom: 0; }
.stat-label { color: var(--text-muted); }
.stat-value { color: var(--green-900); font-weight: 700; }
.list-clean { margin: 0; padding-left: 1.1rem; }
.list-clean li + li { margin-top: 0.5rem; }

.module-page-hero {
  margin: 1rem 0 2rem;
  padding: clamp(1.6rem, 3vw, 2.5rem);
  border: 2px solid var(--border-soft);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(73, 162, 111, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(236, 246, 239, 0.96));
  box-shadow: var(--shadow-card);
}

.project-page-hero {
  position: relative;
  overflow: hidden;
  margin: 1rem 0 2rem;
  padding: clamp(1.8rem, 3vw, 2.8rem);
  border: 2px solid rgba(29, 106, 73, 0.12);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(73, 162, 111, 0.18), transparent 30%),
    radial-gradient(circle at bottom left, rgba(201, 171, 88, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(235, 246, 239, 0.96));
  box-shadow: var(--shadow-card);
}

.project-page-hero::after {
  content: "";
  position: absolute;
  right: -3rem;
  top: -3rem;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(73, 162, 111, 0.16), transparent 70%);
}

.project-page-hero > * {
  position: relative;
  z-index: 1;
}

.project-page-hero--calm {
  padding: clamp(1.7rem, 3vw, 2.45rem);
  margin-bottom: 2.1rem;
}

.project-page-hero--calm::after {
  opacity: 0.65;
}

.reading-page {
  display: block;
}

.report-panel {
  padding: clamp(1.45rem, 2.4vw, 2.1rem);
  border: 2px solid rgba(21, 82, 55, 0.08);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 247, 0.96));
  box-shadow: var(--shadow-soft);
}

.reading-section {
  margin-bottom: 2rem;
}

.reading-section:last-child {
  margin-bottom: 0;
}

.reading-section > .section-heading,
.text-column {
  width: 100%;
  max-width: 1050px;
  line-height: 1.8;
}

.text-column p {
  margin-bottom: 1.1rem;
}

.text-column p:last-child {
  margin-bottom: 0;
}

.reading-section .section-heading {
  margin-bottom: 1.15rem;
}

.reading-section .section-title {
  margin-bottom: 0.1rem;
}

.simple-callout {
  margin-top: 1.35rem;
  width: 100%;
  max-width: 1050px;
  padding: 0.95rem 1rem;
  border-left: 3px solid var(--green-600);
  border-radius: 0.25rem;
  background: rgba(223, 241, 228, 0.14);
  color: var(--text-muted);
}

.simple-callout strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--green-900);
}

.simple-figure {
  margin-top: 1.45rem;
  width: 100%;
  max-width: 1050px;
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 1.35rem;
  border: 2px dashed rgba(29, 106, 73, 0.12);
  border-radius: 0.35rem;
  background: rgba(248, 251, 248, 0.2);
  color: var(--green-800);
  text-align: center;
}

.simple-figure strong {
  display: block;
  color: var(--green-900);
  margin-bottom: 0.3rem;
}

.workflow-list {
  max-width: 1050px;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.workflow-step {
  position: relative;
  padding: 0 0 1.15rem 1.4rem;
  color: var(--text-muted);
}

.workflow-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--green-600);
}

.workflow-step::after {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 1.15rem;
  bottom: 0;
  width: 1px;
  background: rgba(29, 106, 73, 0.18);
}

.workflow-step:last-child {
  padding-bottom: 0;
}

.workflow-step:last-child::after {
  display: none;
}

.workflow-step strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--green-900);
}

.software-figure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1050px;
  margin-top: 1.3rem;
}

.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  max-width: 1050px;
  margin: 0;
}

.anchor-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.45rem 0.8rem;
  border: 2px solid rgba(29, 106, 73, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--green-800);
  font-size: 0.92rem;
  font-weight: 600;
}

.anchor-nav a:hover,
.anchor-nav a:focus {
  background: rgba(223, 241, 228, 0.5);
  color: var(--green-900);
}

.module-overview-list {
  max-width: 1050px;
  display: grid;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.module-overview-item {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(21, 82, 55, 0.1);
  color: var(--text-muted);
}

.module-overview-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.module-overview-item strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--green-900);
}

.module-overview-item p {
  margin: 0.45rem 0 0;
  color: var(--text-muted);
}

.module-overview-item p span {
  color: var(--green-900);
  font-weight: 700;
}

.module-overview-item--emphasis strong {
  color: var(--green-800);
}

.module-overview-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 0.1rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: rgba(29, 106, 73, 0.12);
  color: var(--green-800);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.engineering-module {
  scroll-margin-top: 110px;
}

.engineering-module--primary {
  padding-left: 1rem;
  border-left: 3px solid rgba(29, 106, 73, 0.18);
}

.dbtl-block {
  max-width: 1050px;
  margin-top: 1.1rem;
}

.dbtl-block h3 {
  margin: 1.05rem 0 0.35rem;
  color: var(--green-900);
  font-size: 1.03rem;
}

.dbtl-block h3:first-child {
  margin-top: 0;
}

.dbtl-block p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.75;
}

.dbtl-block p:not(:last-child) {
  margin-bottom: 1.1rem;
}

.dbtl-block--primary h3 {
  color: var(--green-800);
}

.simple-callout--primary {
  border-left-color: var(--green-700);
  background: rgba(223, 241, 228, 0.22);
}

.simple-figure--primary {
  border-color: rgba(29, 106, 73, 0.22);
  background: rgba(248, 251, 248, 0.32);
}

.engineering-table-wrap {
  max-width: 1050px;
  margin-top: 1.2rem;
  overflow-x: auto;
}

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

.engineering-summary-table th,
.engineering-summary-table td {
  padding: 0.85rem 0.8rem;
  border-bottom: 1px solid rgba(21, 82, 55, 0.1);
  text-align: left;
  vertical-align: top;
}

.engineering-summary-table thead th {
  color: var(--green-900);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.engineering-summary-table tbody th {
  color: var(--green-900);
  font-weight: 700;
}

.engineering-summary-table tbody td {
  color: var(--text-muted);
}

.engineering-summary-table__highlight {
  background: rgba(223, 241, 228, 0.2);
}

.entrepreneurship-page [id] {
  scroll-margin-top: 110px;
}

.entrepreneurship-page .hero-entrepreneurship .hero-overlay {
  pointer-events: none;
}

.entrepreneurship-page .hero-entrepreneurship a {
  color: #f1f8f3;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.entrepreneurship-page .hero-entrepreneurship a:hover,
.entrepreneurship-page .hero-entrepreneurship a:focus {
  color: #fff;
}

.entrepreneurship-page .dbtl-block h3 {
  font-size: 1.25rem;
}

.entrepreneurship-page .dbtl-block h4 {
  margin: 1.2rem 0 0.7rem;
  color: var(--green-900);
  font-size: 1.1rem;
  font-weight: 700;
}

.entrepreneurship-page .engineering-summary-table {
  min-width: 640px;
}

.entrepreneurship-page .engineering-summary-table caption {
  caption-side: top;
  padding-bottom: 0.75rem;
  color: var(--text-muted);
  text-align: left;
}

.reference-list,
.entrepreneurship-references {
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.reference-list > li,
.reference-list > p,
.entrepreneurship-references > li {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
  text-indent: -1.5rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
  scroll-margin-top: 110px;
}

.reference-url {
  overflow-wrap: anywhere;
}

.bd-callout {
  overflow-wrap: anywhere;
}

.human-practices-page [id] {
  scroll-margin-top: 110px;
}

.human-practices-page .text-column + .text-column,
.human-practices-page .hp-table-wrap + .text-column {
  margin-top: 1.1rem;
}

.human-practices-page .hp-featured {
  padding-left: 1rem;
  border-left: 3px solid rgba(29, 106, 73, 0.18);
}

.hp-subsection {
  max-width: 1050px;
  margin-top: 1.5rem;
}

.hp-subsection + .hp-subsection {
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border-soft);
}

.hp-subsection h3 {
  margin-bottom: 0.75rem;
  color: var(--green-900);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.4;
}

.hp-table {
  min-width: 640px;
}

.hp-table caption {
  caption-side: top;
  padding: 0 0 0.65rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hp-figure {
  max-width: 1050px;
  margin: 1.5rem 0 1.8rem;
}

.hp-figure .hp-figure-slot {
  min-height: 190px;
  margin-top: 0;
}

.hp-figure-kind {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--green-700);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hp-figure figcaption {
  margin-top: 0.65rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.human-practices-page a:focus-visible,
.hp-table-wrap:focus-visible {
  outline: 2px solid var(--green-700);
  outline-offset: 3px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  background: rgba(29, 106, 73, 0.09);
  color: var(--green-800);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.status-pill--primary {
  background: rgba(29, 106, 73, 0.18);
  color: var(--green-900);
}

.module-page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.module-page-secondary {
  color: var(--green-800);
  border-color: rgba(29, 106, 73, 0.15);
  background: rgba(255, 255, 255, 0.85);
}

.module-page-secondary:hover,
.module-page-secondary:focus {
  color: var(--green-900);
  border-color: rgba(29, 106, 73, 0.3);
  background: rgba(255, 255, 255, 0.95);
}

.placeholder-panel {
  padding: 1rem 1.1rem;
  border: 2px dashed rgba(29, 106, 73, 0.28);
  border-radius: 1rem;
  background: rgba(223, 241, 228, 0.38);
  color: var(--text-muted);
}

.placeholder-panel strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--green-900);
}

.module-report .reading-section {
  margin-bottom: 2.6rem;
}

.module-report .reading-section:last-child {
  margin-bottom: 0;
}

.module-figure {
  width: 100%;
  max-width: 960px;
  margin: 2rem auto 2.25rem;
}

.module-figure-heading {
  margin-bottom: 0.75rem;
}

.module-figure-heading span {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--green-700);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.module-figure-heading h3 {
  margin: 0;
  color: var(--green-900);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.module-figure-placeholder {
  min-height: clamp(280px, 44vw, 500px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border: 2px dashed rgba(29, 106, 73, 0.2);
  border-radius: 0.75rem;
  background: rgba(244, 249, 245, 0.72);
  color: var(--green-700);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
}

.module-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
}

.module-figure figcaption {
  margin-top: 0.8rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.module-figure figcaption strong {
  color: var(--text-main);
  font-weight: 700;
}

.module-explore {
  padding-top: 0.25rem;
  border-top: 1px solid rgba(21, 82, 55, 0.1);
}

.site-nav {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 39, 27, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 35px rgba(5, 18, 12, 0.16);
}

.site-nav .container,
.site-footer .container { max-width: var(--content-width); }

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: #fff !important;
}

.navbar-brand img {
  width: 2.7rem;
  height: 2.7rem;
  object-fit: contain;
  padding: 0.28rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.08);
}

.navbar-brand-text { font-size: 1.18rem; font-weight: 700; letter-spacing: 0.02em; }
.navbar-brand-subtitle { display: block; color: rgba(228, 242, 233, 0.72); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }
.navbar-toggler { border-color: rgba(255, 255, 255, 0.18); }
.navbar-toggler:focus { box-shadow: 0 0 0 0.2rem rgba(130, 204, 157, 0.22); }
.navbar-nav { align-items: center; gap: 0.2rem; }

.nav-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.7rem;
  padding: 0.6rem 0.95rem !important;
  border-radius: 999px;
  color: rgba(244, 250, 246, 0.86) !important;
  font-weight: 600;
}

.nav-pill:hover, .nav-pill:focus, .show > .nav-pill { color: #fff !important; background: rgba(255, 255, 255, 0.1); }

.dropdown-menu {
  margin-top: 0.8rem !important;
  padding: 0.75rem;
  border: 2px solid rgba(21, 89, 60, 0.12);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-card);
}

.dropdown-item { padding: 0.6rem 0.8rem; border-radius: 0.8rem; color: var(--text-main); font-weight: 500; }
.dropdown-item:hover, .dropdown-item:focus { background: rgba(223, 241, 228, 0.8); color: var(--green-900); }

.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: 4rem;
  padding: 3.2rem 0 2rem;
  color: rgba(239, 247, 241, 0.88);
  background: radial-gradient(circle at top left, rgba(79, 163, 112, 0.18), transparent 30%), linear-gradient(135deg, #0d3626, #124831 50%, #145239 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
}

.site-footer .container { position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 2rem; align-items: start; }
.footer-brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer-brand img { width: 3.4rem; height: 3.4rem; object-fit: contain; padding: 0.4rem; border-radius: 1rem; background: rgba(255, 255, 255, 0.08); }
.footer-brand h2 { margin: 0 0 0.35rem; color: #fff; font-size: 1.45rem; }
.footer-meta { display: grid; gap: 0.8rem; }
.footer-panel { padding: 1.2rem; border: 2px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.06); }
.footer-panel h3 { margin-bottom: 0.7rem; color: #fff; font-size: 1rem; }
footer a { color: #f1f8f3; font-weight: 600; }
footer a:hover, footer a:focus { color: #fff; text-decoration: underline; }
.footer-note { margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, 0.12); color: rgba(234, 244, 237, 0.84); font-size: 0.94rem; }
.footer-note p:last-child { margin-bottom: 0; }

.centered-figure { display: block; width: min(100%, 900px); margin: 0 auto; }
.centered-figure.large { width: min(100%, 700px); }

/* Lab notebook: one cohesive, reading-first experimental record. */
.notebook-hero .lead-copy {
  max-width: 760px;
  margin-bottom: 0;
}

.notebook-page {
  width: 100%;
  margin: 0 auto;
  color: var(--text-main);
}

.notebook-tabs {
  max-width: 1080px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: -0.6rem auto 1rem;
  padding: 0.5rem;
  border: 2px solid rgba(29, 106, 73, 0.12);
  border-radius: 1.2rem;
  background: rgba(235, 246, 239, 0.82);
}

.notebook-tab {
  flex: 1 1 280px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3.25rem;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 0.85rem;
  background: transparent;
  color: var(--green-900);
  font-weight: 700;
  text-align: center;
  transition: background-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.notebook-tab:hover,
.notebook-tab:focus-visible {
  background: rgba(255, 255, 255, 0.6);
  color: var(--green-900);
}

.notebook-tab:focus-visible {
  outline: 3px solid rgba(73, 162, 111, 0.28);
  outline-offset: 2px;
}

.notebook-tab.is-active {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 22px rgba(11, 52, 34, 0.1);
}

.notebook-tab span {
  color: var(--text-muted);
  font-weight: 600;
}

.notebook-index {
  scroll-margin-top: 7rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  margin: 0 0 1.2rem;
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid rgba(29, 106, 73, 0.16);
  border-radius: var(--radius-xl);
  background: rgba(247, 251, 248, 0.96);
  box-shadow: none;
}

.notebook-index h2 {
  margin: 0 0 0.75rem;
  color: var(--green-900);
  font-size: clamp(1.4rem, 2.3vw, 1.75rem);
}

.notebook-index-heading {
  display: grid;
  grid-template-columns: minmax(210px, 0.45fr) minmax(0, 1fr);
  column-gap: 2rem;
  align-items: center;
}

.notebook-index-heading .section-label,
.notebook-index-heading h2 { grid-column: 1; }
.notebook-index-heading h2 { margin-bottom: 0; }
.notebook-index-heading p {
  grid-column: 2;
  grid-row: 1 / span 2;
  max-width: 40rem;
  margin: 0;
}

.notebook-index-groups {
  width: 100%;
  min-width: 0;
  justify-self: start;
}

.notebook-index-group {
  display: grid;
  grid-template-columns: minmax(190px, 0.36fr) minmax(0, 1fr);
  gap: 0.75rem 2rem;
  align-items: baseline;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(29, 106, 73, 0.14);
}
.notebook-index-group + .notebook-index-group { margin-top: 1.15rem; }
.notebook-index-group h3 {
  margin: 0;
  color: var(--green-900);
  font-size: 1.1rem;
}


.notebook-index ol {
  margin: 0;
  padding-left: 1.25rem;
}

.notebook-protocol-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  column-gap: clamp(1.5rem, 3vw, 2rem);
  row-gap: 0.25rem;
  padding-left: 0 !important;
  list-style: none;
  counter-reset: notebook-protocol;
}

.notebook-protocol-grid--two-rows { grid-template-rows: repeat(2, auto); }

.notebook-index li { break-inside: avoid; }
.notebook-index li + li { margin-top: 0.45rem; }
.notebook-protocol-grid li {
  display: grid;
  grid-template-columns: 1.35rem minmax(0, 1fr);
  align-items: start;
  column-gap: 0.2rem;
  margin-top: 0 !important;
  line-height: 1.45;
}

.notebook-protocol-grid li::before {
  counter-increment: notebook-protocol;
  content: counter(notebook-protocol) ".";
  color: var(--text-main);
}
.notebook-index a { color: var(--green-800); }
.notebook-index a:hover,
.notebook-index a:focus { color: var(--green-900); text-decoration: underline; }

.notebook-module-panel {
  max-width: 1080px;
  scroll-margin-top: 7rem;
  margin: 0 auto 3rem;
  padding: clamp(1.4rem, 3vw, 2.7rem);
  border: 2px solid rgba(29, 106, 73, 0.12);
  border-radius: var(--radius-xl);
  background-color: #f7fbf8;
  background-image: none;
  box-shadow: var(--shadow-soft);
  opacity: 1;
  filter: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: none;
}

.notebook-module-panel::before,
.notebook-module-panel::after { content: none; }

.notebook-module-panel[hidden] { display: none; }

.notebook-module-heading {
  margin-bottom: 1.8rem;
  padding-bottom: 1.1rem;
  border-bottom: 2px solid rgba(29, 106, 73, 0.16);
}

.notebook-module-heading h2 {
  margin: 0;
  color: var(--green-900);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}

.notebook-entry {
  scroll-margin-top: 7rem;
  padding: 2.4rem 0 2.65rem;
  border-bottom: 1px solid rgba(21, 82, 55, 0.12);
}

.notebook-entry:first-of-type { padding-top: 0.6rem; }
.notebook-entry:last-child { border-bottom: 0; padding-bottom: 0; }

.notebook-entry-header { margin-bottom: 1.35rem; }

.notebook-entry-number {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--green-700);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.notebook-entry-header h3 {
  max-width: 900px;
  margin: 0;
  color: var(--green-900);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  line-height: 1.25;
}

.notebook-entry-body {
  max-width: 940px;
  font-size: 1rem;
  line-height: 1.8;
}

.notebook-entry-body p { margin: 0 0 1rem; }
.notebook-entry-body ul,
.notebook-entry-body ol { margin: 0.4rem 0 1.35rem; padding-left: 1.5rem; }
.notebook-entry-body li { padding-left: 0.25rem; }
.notebook-entry-body li + li { margin-top: 0.48rem; }
.notebook-entry-body ol li::marker { color: var(--green-700); font-weight: 700; }

.notebook-experiment-split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  max-width: none;
  align-items: start;
}

.notebook-procedure-column,
.notebook-details-column,
.notebook-image-column {
  min-width: 0;
}

.notebook-module-one-layout { max-width: none; }

.notebook-system {
  max-width: 940px;
  margin-bottom: 1.5rem !important;
}

.notebook-image-column .notebook-figure { margin: 0; }

.notebook-modifications { margin-top: 1.75rem; }

.notebook-trial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: 1.5rem !important;
  padding-left: 0 !important;
  list-style: none;
}

.notebook-trial-grid li {
  margin: 0 !important;
  padding: 0.85rem 0 0 !important;
  border-top: 2px solid rgba(29, 106, 73, 0.16);
}

.notebook-conclusion { margin-bottom: 0 !important; }

.notebook-observation {
  margin: 1.35rem 0 1.6rem !important;
  padding: 0.85rem 0 0.85rem 1rem;
  border-left: 3px solid var(--green-600);
  color: var(--text-muted);
}

.module-observations { display: grid; }

.module-observation-row {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  column-gap: 1.1rem;
  padding: 1.3rem 0;
  border-top: 1px solid rgba(21, 82, 55, 0.14);
}

.module-observation-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.module-observation-row:last-child { padding-bottom: 0; }

.module-observation-number {
  color: var(--green-700);
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.module-observation-number::after {
  content: "";
  display: block;
  width: 2rem;
  height: 3px;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: var(--green-600);
}

.module-observation-copy h4 {
  margin: 0 0 0.4rem;
  color: var(--green-900);
  font-size: 1.08rem;
}

.module-observation-copy p {
  margin: 0;
  color: var(--text-muted);
}

.notebook-figure {
  width: min(100%, 900px);
  margin: 1.75rem 0 2rem;
}

.notebook-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.55rem;
}

.notebook-figure figcaption {
  margin-top: 0.7rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.notebook-figure figcaption span { display: block; }
.notebook-figure figcaption span + span { margin-top: 0.35rem; }

.notebook-module-figure {
  width: 100%;
  margin: 1.4rem 0 1.7rem;
}

.notebook-image-placeholder {
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border: 2px dashed rgba(29, 106, 73, 0.25);
  border-radius: 0.7rem;
  background: rgba(244, 249, 245, 0.7);
  color: var(--green-700);
  font-weight: 700;
  text-align: center;
}

.notebook-module-figure figcaption {
  margin-top: 0.65rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.notebook-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.4rem);
  margin: 1.75rem 0 2rem;
}

.notebook-photo { min-width: 0; margin: 0; }

.notebook-photo-placeholder {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  border: 2px dashed rgba(29, 106, 73, 0.25);
  border-radius: 0.7rem;
  background: rgba(244, 249, 245, 0.7);
  color: var(--green-700);
  font-weight: 700;
  text-align: center;
}

.notebook-photo figcaption {
  margin-top: 0.7rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.hero {
  min-height: 340px;
  border-radius: var(--radius-xl);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: var(--shadow-card);
}

.svg-shadow {
  filter: drop-shadow(10px 10px 8px rgba(73, 162, 111, 0.8));
}

.module-2-section .two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.module-2-section .notebook-image-placeholder {
  min-height: 0;
  padding: 1.5rem;
}

.module-2-section .notebook-image-placeholder img {
  width: 100%;
  height: auto;
  display: block;
}

.module-2-section .module-links {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  align-self: start;
}

.module-2-section .module-links .section-title { margin-bottom: 0.75rem; }

.module-2-section .part-index-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.25rem 0.6rem;
  min-width: 0;
  min-height: 3rem;
  padding: 0.55rem 0.8rem;
  border-top: 1px solid rgba(21, 82, 55, 0.16);
  background: transparent;
  color: var(--green-900);
  line-height: 1.35;
  text-decoration: none;
  transition: background-color 0.18s ease;
}

.module-2-section .part-index-link:last-child { border-bottom: 1px solid rgba(21, 82, 55, 0.16); }
.module-2-section .part-index-name { font-size: 1rem; font-weight: 600; }
.module-2-section .part-index-id {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: right;
  overflow-wrap: anywhere;
}

.module-2-section .part-index-link:hover,
.module-2-section .part-index-link:focus-visible {
  background-color: rgba(73, 162, 111, 0.08);
  color: var(--green-900);
}

.module-2-section .part-index-link:focus-visible { outline: 3px solid var(--green-600); outline-offset: 2px; }

@media (max-width: 767.98px) {
  .module-2-section .two-column { grid-template-columns: minmax(0, 1fr); }
}

.portrait-limit-size {
  max-width: 535px;
  max-height: 535px;
  overflow: hidden;
}

.hero.attributions { 
  background:
    linear-gradient(to bottom, rgba(7, 30, 20, 0.001), 70%, rgba(244, 248, 242, 0.99)),
    url(https://static.igem.wiki/teams/6189/wiki/team-photo.avif) center/cover;
  max-height: 70%;
  width: auto;
}
.hero.members { background-image: url(https://static.igem.wiki/teams/5759/logos/training/members/group-photo.webp); }
.hero.description { background-image: url(https://static.igem.wiki/teams/5759/labphotos/lab-p1.webp); }
.hero.engineering { background-image: url(https://static.igem.wiki/teams/5759/labphotos/lab-p6.webp); }
.hero.software { background-image: url(https://static.igem.wiki/teams/5759/other/code-snippet.webp); }
.hero.nsf-poster { background-image: url(https://static.igem.wiki/teams/5759/labphotos/lab-p7.webp); }
.hero.entrepreneurship { background-image: url(https://static.igem.wiki/teams/5759/labphotos/lab-p8.webp); }
.hero.human-practices { background-image: url(https://static.igem.wiki/teams/5759/other/landscape1.webp); }
.hero.education { background-image: url(https://static.igem.wiki/teams/5759/labphotos/lab-p9.webp); }
.hero.inclusivity { background-image: url(https://static.igem.wiki/teams/5759/team/2024-top-down-1.webp); }
.hero.sustainability { background-image: url(https://static.igem.wiki/teams/5759/other/earth-on-white-bg-2.webp); }
.hero.pulse-check { background-image: url(https://static.igem.wiki/teams/5759/team/thumbnail-image.webp); }
.hero.mining-integration { background-image: url(https://static.igem.wiki/teams/5759/other/unnamed.webp); }
.hero.contributions { background-image: url(https://static.igem.wiki/teams/5759/labphotos/lab-p7.webp); }
.hero.home { background-image: url(https://static.igem.wiki/teams/5759/logos/training/training.webp); }
.hero.results { background-image: url(https://static.igem.wiki/teams/5759/labphotos/lab-p1.webp); }
.hero.critical_mineral_conference { background-image: url(https://static.igem.wiki/teams/5759/labphotos/lab-p2.webp); }

@import url('https://db.onlinewebfonts.com/c/ef6bdf5ef216552c7e9869841e891ca0?family=Arial+Rounded+MT+Bold');

@font-face {
    font-family: 'Arial Rounded MT Bold';
    src: url('path/to/ArialRoundedMTBold.woff2') format('woff2'),
         url('path/to/ArialRoundedMTBold.woff') format('woff'),
         url('path/to/ArialRoundedMTBold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@media (max-width: 1199.98px) {
  .quick-links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-grid { grid-template-columns: 1fr; }
}

@media (max-width: 991.98px) {
  body { padding-top: 82px; }
  .hero-grid, .footer-grid, .card-grid.two-column, .card-grid.three-column { grid-template-columns: 1fr; }
  .two-column, .three-column { grid-template-columns: 1fr; }
  .hero-metrics { grid-template-columns: 1fr; }
  .module-route-grid, .project-path-grid, .stakeholder-grid, .engineering-cycle-grid, .timeline-grid { grid-template-columns: 1fr; }
  .navbar-collapse { margin-top: 1rem; padding: 1rem; border: 2px solid rgba(255, 255, 255, 0.08); border-radius: 1rem; background: rgba(255, 255, 255, 0.06); }
  .navbar-nav { align-items: stretch; }
  .nav-pill { width: 100%; }
  .platform-flow { flex-direction: column; }
  .platform-arrow { transform: rotate(90deg); }
  .notebook-experiment-split { grid-template-columns: 1fr; }
  .notebook-trial-grid,
  .notebook-photo-grid { grid-template-columns: 1fr; }
  .notebook-index-group { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
  .page-wrapper { width: min(calc(100% - 1rem), var(--content-width)); }
  .hero-grid { padding: 1.35rem; }
  .quick-links-grid, .card-grid.three-column { grid-template-columns: 1fr; }
  .content-panel, .quick-link-card, .data-highlight, .figure-card, .graph-card { padding: 1.1rem; }
  .reading-page { gap: 1.5rem; }
  .report-panel { padding: 1.2rem; }
  .reading-section .section-heading { margin-bottom: 1rem; }
  .software-figure-grid { grid-template-columns: 1fr; }
  .anchor-nav { gap: 0.5rem; }
  .anchor-nav a { font-size: 0.88rem; }
  .engineering-module--primary { padding-left: 0.75rem; }
  .simple-callout,
  .simple-figure { margin-top: 1.15rem; }
  .module-report .reading-section { margin-bottom: 2rem; }
  .module-figure { margin: 1.5rem auto 1.8rem; }
  .module-figure-placeholder { min-height: 230px; }
  .notebook-tabs { align-items: stretch; }
  .notebook-tab { flex-basis: 100%; width: 100%; }
  .notebook-index { grid-template-columns: 1fr; }
  .notebook-index-heading { display: block; }
  .notebook-index-heading h2 { margin-bottom: 0.75rem; }
  .notebook-index-groups { width: 100%; }
  .notebook-index-group { display: block; }
  .notebook-index-group h3 { margin-bottom: 0.65rem; }
  .notebook-protocol-grid { display: block; }
  .notebook-protocol-grid li + li { margin-top: 0.45rem !important; }
  .notebook-module-panel { margin-bottom: 2.5rem; padding: 1.25rem; }
  .notebook-entry { padding: 1.9rem 0 2.1rem; }
  .notebook-entry-body { line-height: 1.72; }
  .notebook-figure { margin: 1.4rem 0 1.7rem; }
  .notebook-image-placeholder { min-height: 190px; }
}

/* Home page and shared horizontal navigation. */
body { padding-top: 0; }
.page-wrapper { padding-top: 0.75rem; }
.site-nav {
  background: rgba(249, 252, 245, 0.97);
  border-bottom: 1px solid rgba(21, 82, 55, 0.12);
  box-shadow: 0 8px 24px rgba(17, 53, 35, 0.06);
}
.site-nav > .container { position: relative; flex-wrap: wrap; gap: 0.6rem 1.25rem; }
.site-nav .header-navigation { min-width: 0; margin-left: auto; }
.navbar-brand { color: var(--green-900) !important; }
.navbar-brand img { background: transparent; padding: 0; }
.navbar-brand-subtitle { color: var(--green-700); }
.site-nav .navbar-nav { flex-direction: row; align-items: center; gap: 0.65rem; }
.site-nav .nav-pill {
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.55rem 1rem !important;
  border-radius: 0.85rem;
  background: #dfedcc;
  color: var(--green-900) !important;
  font-size: 0.9rem;
  font-weight: 500;
  width: auto;
  white-space: nowrap;
}
.site-nav .nav-pill:hover,
.site-nav .nav-pill:focus,
.site-nav .show > .nav-pill { background: #cce0b3; color: var(--green-900) !important; }
.site-nav .nav-pill[aria-current="page"] { background: var(--green-800); color: #fff !important; }
.site-nav .nav-pill:focus-visible,
.site-nav .dropdown-item:focus-visible { outline: 3px solid var(--green-600); outline-offset: 3px; }
.site-nav .dropdown-menu { margin-top: 0.55rem !important; min-width: min(24rem, calc(100vw - 2rem)); max-width: calc(100vw - 2rem); }
.site-nav .dropdown-item { white-space: normal; overflow-wrap: break-word; }
.site-nav #navbar-dry-lab + .dropdown-menu,
.site-nav #navbar-resources + .dropdown-menu,
.site-nav #navbar-team + .dropdown-menu { right: 0; left: auto; }
.hero-centered { min-height: 0; }
.centered-brand {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-areas: "logo kicker" "logo title" "logo tagline";
  grid-template-columns: 92px minmax(0, auto);
  justify-content: center;
  align-content: center;
  align-items: center;
  gap: 3px 22px;
  min-height: 144px;
  padding: 14px 24px;
  text-align: left;
  color: #fff;
}
.centered-brand .hero-kicker { grid-area: kicker; margin: 0; font-size: 0.65rem; }
.centered-brand .hero-kicker::before { content: none; }
.original-logo-badge {
  grid-area: logo;
  width: 92px;
  height: 92px;
  flex: none;
  padding: 8px;
  border-radius: 50%;
  background: #f4f8ed;
  box-shadow: 0 0 65px rgba(190, 222, 160, 0.12);
}
.original-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.centered-brand h1 {
  grid-area: title;
  margin: 0;
  font-size: clamp(2rem, 3.1vw, 2.75rem);
  line-height: 1.06;
  letter-spacing: 0.045em;
  font-weight: 700;
  color: #fff;
}
.centered-brand .centered-tagline {
  grid-area: tagline;
  margin: 0;
  max-width: 690px;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  line-height: 1.45;
  color: rgba(242, 249, 238, 0.92);
}
.home-introduction-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; }
.home-introduction p { color: var(--text-muted); }
.home-introduction .section-title { margin-bottom: 1.25rem; }
.home-context { border-left: 1px solid var(--border-soft); padding-left: 2rem; }
.home-context h2 { color: var(--green-900); font-size: 1.45rem; margin-bottom: 1rem; }
.home-context .hero-list { color: var(--text-main); margin-bottom: 0; }
#modules { scroll-margin-top: 110px; }
@media (max-width: 1199.98px) {
  .site-nav .navbar-nav { gap: 0.4rem; }
  .site-nav .nav-pill { padding: 0.5rem 0.7rem !important; font-size: 0.84rem; }
}
@media (max-width: 991.98px) {
  .site-nav .header-navigation { flex-basis: 100%; }
  .site-nav .navbar-nav { justify-content: space-between; width: 100%; }
  .site-nav .nav-item { flex: 1 1 auto; }
  .site-nav .nav-item.dropdown { position: static; }
  .site-nav .nav-pill { width: 100%; }
  .site-nav .dropdown-menu,
  .site-nav #navbar-dry-lab + .dropdown-menu,
  .site-nav #navbar-resources + .dropdown-menu,
  .site-nav #navbar-team + .dropdown-menu {
    top: 100%; right: 0; left: 0; width: auto; min-width: 0; max-width: 100%;
    max-height: calc(100svh - 160px); overflow-y: auto;
  }
  body .page-wrapper [id] { scroll-margin-top: 150px; }
  #modules { scroll-margin-top: 150px; }
}
@media (max-width: 575.98px) {
  .site-nav .navbar-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-nav .nav-pill { min-height: 2.5rem; padding: 0.45rem 0.4rem !important; font-size: 0.78rem; }
  .site-nav .dropdown-menu { max-height: calc(100svh - 205px); }
  body .page-wrapper [id] { scroll-margin-top: 195px; }
  #modules { scroll-margin-top: 195px; }
}
@media (max-width: 700px) {
  .centered-brand { grid-template-columns: 68px minmax(0, auto); gap: 3px 12px; padding: 14px 16px; }
  .original-logo-badge { width: 68px; height: 68px; padding: 6px; }
  .centered-brand .hero-kicker { font-size: 0.6rem; letter-spacing: 0.12em; }
  .centered-brand h1 { font-size: clamp(1.7rem, 6vw, 2.2rem); }
  .centered-brand .centered-tagline { font-size: 0.82rem; }
  .home-introduction-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .home-context { border-left: 0; border-top: 1px solid var(--border-soft); padding: 1.4rem 0 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Module cards: user-confirmed names and one horizontal row at every width. */
#modules .module-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
#modules .module-grid:focus-visible { outline: 3px solid var(--green-600); outline-offset: 4px; }
.module-scroll-hint { display: none; }
.module-card-refreshed {
  min-width: 0;
  gap: 1.1rem;
  border-width: 1px;
  box-shadow: 0 9px 24px rgba(17, 53, 35, 0.07);
}
.module-card-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.3rem;
}
.module-card-refreshed .module-card-number { font-size: 0.73rem; }
.module-status {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.55rem;
  border: 1px solid rgba(21, 82, 55, 0.16);
  border-radius: 0.5rem;
  background: rgba(244, 248, 239, 0.85);
  color: #4c604d;
  font-size: 0.69rem;
  line-height: 1.4;
  font-weight: 500;
}
.module-card-refreshed h3 {
  min-height: 3.5rem;
  font-size: 1.24rem;
  line-height: 1.3;
  text-wrap: balance;
}
.module-card-refreshed p { margin: 0 0 0.25rem; font-size: 0.94rem; line-height: 1.7; }
.module-card-refreshed .module-card-link {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding-top: 1rem;
  border-top: 1px solid var(--border-soft);
  font-size: 0.88rem;
}
.module-card-refreshed .module-card-link::after { content: "↗"; font-size: 1.1rem; }
.module-card-refreshed .module-card-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.module-card-refreshed .module-card-link:focus-visible { outline: 3px solid var(--green-600); outline-offset: 4px; }
@media (min-width: 768px) and (max-width: 1199.98px) {
  #modules .module-grid { gap: 0.75rem; }
  #modules .module-card { padding: 1rem; }
}
@media (max-width: 991px) {
  .module-card-heading { min-height: 0; }
  .module-card-refreshed h3 { min-height: 0; }
}
@media (max-width: 767.98px) {
  .module-scroll-hint { display: block; margin-bottom: 0.75rem; color: var(--green-700); font-size: 0.85rem; }
  #modules .module-grid {
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    scroll-snap-type: x proximity;
  }
  #modules .module-card { padding: 1rem; scroll-snap-align: start; }
}
