/* FONTS: self-hosted Montserrat weights. */
@font-face {
  font-family: 'Montserrat';
  src: url('https://static.igem.wiki/teams/6078/wiki/fonts/montserrat-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('https://static.igem.wiki/teams/6078/wiki/fonts/montserrat-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('https://static.igem.wiki/teams/6078/wiki/fonts/montserrat-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  /* Use Montserrat site-wide. */
  --bs-font-sans-serif: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Booklet font. */
  --font-booklet: var(--bs-font-sans-serif);
}

body {
  padding-top: 73px;
  /* Faint green-tinted page background. */
  background-color: #fbfcf8;
}

/* Brand green links. */
:root {
  --bs-link-color-rgb: 47, 125, 79;         /* #2f7d4f */
  --bs-link-hover-color-rgb: 36, 95, 60;    /* #245f3c */
}

/* Unclassed section headings. */
h2:not([class]),
h3:not([class]) {
  color: #37481f;
}
/* the `<h2>` + `<hr />` pair every page uses as a section divider */
h2:not([class]) + hr {
  color: #45b06c;
  opacity: .45;
  border-top-width: 2px;
}

/* BODY COPY: paragraph spacing and justification. */
p {
  line-height: 1.7;
  letter-spacing: .01em;
  margin-bottom: 1.15rem;
  text-align: justify;
  hyphens: auto;
}
li,
td,
th,
figcaption { text-align: justify; hyphens: auto; }

strong,
b { color: #2f7d4f; }

.left-aligned { margin-left: auto; }
.bg-dark { background-color: #343a40 !important; }
.bg-hero { background-color: #455C2F; position: relative; overflow: hidden; }

/* HERO BANNER */
.has-hero-photo {
  min-height: 460px;          /* tall enough to show a good part of the photo (260px on narrower screens, below) */
  display: flex;
  align-items: center;        /* vertically center the title over the photo */
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
/* Human Practices banner: frame the two speakers (low in the photo) in the band */
.hero-photo[src$="/hu-pra-banner.avif"] { object-position: 30% 75%; }
/* Banner clip, faded in once playing. */
.hero-video {
  pointer-events: none;
  opacity: 0;
  transition: opacity .9s ease;
}
.hero-video.is-playing { opacity: 1; }
/* Embedded player sized to cover the banner. */
.hero-embed {
  inset: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 0;
}
/* Banner slideshow layers. */
.hero-slide {
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.is-active { opacity: 1; }
/* visitors who ask for reduced motion keep the poster still instead */
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }

/* dark scrim for legibility; stronger on the left where the text sits */
.has-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(29,38,20,.85) 0%, rgba(29,38,20,.55) 45%, rgba(29,38,20,.20) 100%),
    linear-gradient(0deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 55%);
  z-index: 1;
}
.bg-hero .container { position: relative; z-index: 2; }   /* text above photo+scrim */

/* "cool" title treatment over the photo */
/* Banner title size. */
.bg-hero h1 {
  font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.75rem);
  line-height: 1.08;
}
.has-hero-photo h1 {
  margin-top: 0 !important;   /* neutralize the shared .mt-5 for clean centering */
  font-weight: 700;
  letter-spacing: .5px;
  text-shadow: 0 2px 14px rgba(0,0,0,.55);
}
.has-hero-photo h1::after {   /* short accent bar under the title */
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-top: .6rem;
  background: #A8C686;        /* light-green accent on the dark-green brand */
  border-radius: 2px;
}
/* Banner subtitle. */
.bg-hero .hero-lead { color: rgba(255, 255, 255, .92); }
.has-hero-photo .lead {
  margin-bottom: 0 !important;
  /* Text shadow for legibility over photos. */
  text-shadow: 0 1px 2px rgba(0, 0, 0, .55), 0 2px 12px rgba(0, 0, 0, .6);
}
/* Banner text entrance animation. */
@media (prefers-reduced-motion: no-preference) {
  .bg-hero h1 {
    animation: banner-rise .8s cubic-bezier(.2, .7, .2, 1) .1s both;
  }
  .has-hero-photo h1::after {
    transform-origin: left center;
    animation: banner-bar .7s cubic-bezier(.2, .7, .2, 1) .45s both;
  }
  .bg-hero .lead {
    animation: banner-rise .8s cubic-bezier(.2, .7, .2, 1) .3s both;
  }
}
@keyframes banner-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@keyframes banner-bar {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@media (max-width: 991.98px) { .has-hero-photo { min-height: 260px; } }
/* Banner photo credit. */
.hero-credit {
  position: absolute;
  right: 1rem;
  bottom: .6rem;
  left: 1rem;
  z-index: 2;
  margin: 0;
  font-size: .72rem;
  line-height: 1.35;
  text-align: right;
  color: rgba(255, 255, 255, .78);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
  pointer-events: none;
}
.hero-credit a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .5);
  text-underline-offset: 2px;
  pointer-events: auto;
}
.hero-credit a:hover,
.hero-credit a:focus-visible { text-decoration-color: currentColor; }
/* Clip credit, shown only while the clip plays. */
.hero-credit--video,
.home-hero__credit {
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s ease, visibility 0s linear .9s;
}
.hero-video.is-playing ~ .hero-credit--video,
.hero-video.is-playing ~ .home-hero__credit {
  opacity: 1;
  visibility: visible;
  transition: opacity .9s ease, visibility 0s linear 0s;
}

/* CALLOUT */
.bd-callout { padding:1.25rem; margin-top:1.25rem; margin-bottom:1.25rem; border:1px solid #e9ecef; border-left-width:.25rem; border-radius:.25rem }
.bd-callout h4 { margin-bottom: 1.25rem }
.bd-callout p:last-child { margin-bottom:0 }
.bd-callout code { border-radius:.25rem }
.bd-callout+.bd-callout { margin-top:-.25rem }
.bd-callout-info { border-left-color:#5bc0de }
.bd-callout-warning { border-left-color:#f0ad4e }
.bd-callout-danger { border-left-color:#d9534f }
.bd-callout-success { border-left-color:#45b06c }

/* FOOTER */
.site-footer {
  /* the band the closing wordmark shows in, at the very bottom */
  --wordmark-band: clamp(3.5rem, 12vw, 14rem);
  position: relative;
  isolation: isolate;          /* the wordmark sits behind, inside the footer */
  overflow-x: clip;            /* a link sliding forward never widens the page */
  /* room for the fade below (see ::before) - keep larger than that height */
  margin-top: 9rem;
  background-color: #e5eeda;   /* same sage as .navbar.bg-brand */
  color: #4a5c33;
  padding: 3.5rem 0 calc(var(--wordmark-band) + 1.5rem);
}
/* Smaller gap after the education field. */
.edu-field ~ .site-footer { margin-top: 7rem; }
/* the page background melts into the footer sage instead of a hard edge */
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 7rem;
  background: linear-gradient(to bottom,
    rgba(229, 238, 218, 0)    0%,
    rgba(229, 238, 218, .16) 25%,
    rgba(229, 238, 218, .5)  50%,
    rgba(229, 238, 218, .84) 75%,
    #e5eeda                 100%);
  pointer-events: none;
  z-index: -1;
}
.site-footer a {
  color: #3f5228;
  text-decoration: none;
  transition: color .2s ease;
}
.site-footer a:hover { color: #245f3c; }

/* the grid */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 3vw, 3rem);
  row-gap: clamp(2.5rem, 5vh, 3.25rem);
}

/* section headings - small uppercase labels, identical in every group */
.footer-heading {
  margin: 0 0 .85rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: left;
  color: #37481f;
}

/* Footer section 1: sponsor thank-you. */
.footer-thanks {
  grid-column: 1 / 4;
  min-width: 0;
}
.footer-thanks-title {
  margin: 0 0 1.15rem;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: #37481f;
  text-align: left;                 /* past the site-wide justify rule on <p> */
}
/* Sheen across "sponsors". */
.footer-shine {
  color: #37481f;
  background-image: linear-gradient(100deg,
    #37481f 0%, #37481f 40%, #7aa657 50%, #37481f 60%, #37481f 100%);
  background-size: 220% auto;
  background-position: 110% center;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: footer-shine 4s linear infinite;
}
@keyframes footer-shine {
  0%   { background-position: 110% center; }
  70%  { background-position: -10% center; }
  100% { background-position: -10% center; }
}
.footer-thanks-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .65rem 1.5rem;
  border: 1.5px solid #37481f;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  /* Button fill that wipes in on hover. */
  background-image: linear-gradient(#2f7d4f, #2f7d4f);
  background-repeat: no-repeat;
  /* Start the fill under the border to avoid seams. */
  background-origin: border-box;
  background-position: right center;
  background-size: 0% 100%;
}
/* Footer thank-you button. */
.site-footer .footer-thanks-link {
  transition: background-size .4s cubic-bezier(.22, 1, .36, 1),
              border-color .3s ease, color .25s ease,
              background-color 0s;
}
/* Button hover and focus state. */
.site-footer .footer-thanks-link:hover,
.site-footer .footer-thanks-link:focus-visible {
  border-color: #2f7d4f;
  color: #fff;
  background-position: left center;
  background-size: 100% 100%;
  /* Solid fill once the wipe finishes. */
  background-color: #2f7d4f;
  transition: background-size .4s cubic-bezier(.22, 1, .36, 1),
              border-color .3s ease, color .25s ease,
              background-color 0s linear .4s;
}
.footer-thanks-link:hover svg,
.footer-thanks-link:focus-visible svg {
  animation: footer-arrow-through .5s cubic-bezier(.22, 1, .36, 1);
}
@keyframes footer-arrow-through {
  0%   { transform: translateX(0);     opacity: 1; }
  40%  { transform: translateX(14px);  opacity: 0; }
  41%  { transform: translateX(-14px); opacity: 0; }
  100% { transform: translateX(0);     opacity: 1; }
}
.footer-thanks-link:focus-visible { outline: 2px solid #45b06c; outline-offset: 3px; }

/* Footer logo and label. */
.footer-identity {
  grid-column: 4;
  grid-row: 1 / span 2;
  justify-self: end;
  align-self: end;
  margin-bottom: 2.6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
}
.footer-logo {
  display: block;
  width: auto;
  height: 172px;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1),
              filter .35s cubic-bezier(.22, 1, .36, 1);
}
/* Logo hover lift and glow. */
@media (hover: hover) and (pointer: fine) {
  .footer-logo:hover {
    transform: translateY(-3px) scale(1.015);
    filter: drop-shadow(0 6px 10px rgba(47, 125, 79, .16));
  }
}
.footer-brand-sub {
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #26331a;                   /* a shade darker than the headings' #37481f */
  text-decoration: none;            /* links to the Team page */
}
.footer-brand-sub:hover,
.footer-brand-sub:focus-visible { text-decoration: underline; text-underline-offset: .2em; }

/* Easter egg sprout beside the logo. */
.footer-identity { position: relative; }
.footer-sprout {
  position: absolute;
  left: calc(50% - 56px);
  bottom: calc(.9rem * 1.5 + .4rem);
  width: 28px;
  height: 42px;
  overflow: visible;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}
.footer-sprout-stem {
  fill: none;
  stroke: #5a6b45;
  stroke-width: 2.4;
  stroke-linecap: round;
  transform: scaleY(0);
  transform-origin: 20px 59px;
  transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}
.footer-sprout-leaf {
  fill: #2f7d4f;
  transform: scale(0);
  transition: transform .5s cubic-bezier(.22, 1, .36, 1) .45s;
}
.footer-sprout-leaf--l { transform-origin: 19.5px 33px; }
.footer-sprout-leaf--r { transform-origin: 20px 27px; transition-delay: .6s; }
.is-sprouted .footer-sprout { opacity: 1; }
.is-sprouted .footer-sprout-stem,
.is-sprouted .footer-sprout-leaf { transform: none; }

/* SECTION 2 - links, in three groups */
.footer-group { min-width: 0; }
.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links li {
  margin: 0;
  text-align: left;
}
/* Footer links slide forward on hover. */
.footer-links { gap: 0; }
.footer-links a {
  display: block;
  margin-left: -.6rem;            /* the span's padding: text on the column's edge */
  padding: .15rem 0;
  font-size: .92rem;
}
.footer-links a span {
  display: inline-block;
  padding: .2rem 1.1rem .2rem .6rem;
  border-radius: .35rem;
  transition: color .2s ease, background-color .2s ease,
              transform .28s cubic-bezier(.22, 1, .36, 1);
}
.site-footer .footer-links a:focus-visible { outline: none; }
.site-footer .footer-links a:focus-visible span {
  color: #2f7d4f;
  background-color: rgba(255, 255, 255, .7);
  outline: 2px solid #45b06c;
  outline-offset: 2px;
}
.footer-links:focus-within a span { transform: translateX(-3px); }
.footer-links:focus-within a:focus-visible span { transform: translateX(24px); }
@media (hover: hover) and (pointer: fine) {
  .site-footer .footer-links a:hover span {
    color: #2f7d4f;
    background-color: rgba(255, 255, 255, .7);
  }
  .footer-links:hover a span { transform: translateX(-3px); }
  .footer-links:hover a:hover span { transform: translateX(24px); }
}

/* Social icons with dock magnification. */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: .5rem;
  margin: 24px 0 0 -10px;
  padding: 0;
  list-style: none;
}
.footer-social li {
  margin: 0;
  /* Reserve the magnified height. */
  display: flex;
  align-items: center;
  min-height: 72px;
}
.footer-social a {
  position: relative;            /* anchors the dock label below */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: .6rem;
  color: #3f5228;
  text-decoration: none;
  /* Size is animated by footer-dock.js, not transitioned. */
  transition: color .2s ease, background-color .2s ease;
}

/* Dock tooltip. */
@media (hover: hover) and (pointer: fine) {
  .footer-social a[data-label]::after {
    content: attr(data-label);
    position: absolute;
    bottom: calc(100% + .3rem);
    left: 50%;
    z-index: 2;
    padding: .12rem .5rem;
    border-radius: .375rem;
    background-color: #37481f;
    color: #f1f5ea;
    font-size: .72rem;
    line-height: 1.5;
    white-space: pre;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-50%) translateY(6px);
    transition: opacity .2s ease, transform .2s ease;
  }
  .footer-social a[data-label]:hover::after,
  .footer-social a[data-label]:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
.footer-social a:hover {
  color: #245f3c;
  background-color: rgba(55, 72, 31, .09);
}
/* the brand icons, shown in their own colours (no filter or tint) */
.footer-social-icon { display: block; width: 28px; height: 28px; object-fit: contain; }
/* the mail glyph has no brand colour of its own, so it takes the site green */
.footer-social-icon--mail { color: #2f7d4f; }
.footer-social a:hover .footer-social-icon--mail { color: #245f3c; }

/* Footer section 3: licence and repository lines. */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .35rem 2rem;
  margin-top: clamp(2.5rem, 5vh, 3.25rem);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(55, 72, 31, .16);
  color: #5a6b45;
  overflow-wrap: break-word;
}
.footer-bottom p {
  margin: 0;
  font-size: .78rem;
  line-height: 1.6;
  text-align: left;
}
.footer-bottom small { font-size: inherit; }
.footer-bottom a {
  color: #5a6b45;
  text-decoration: underline;
  text-decoration-color: rgba(90, 107, 69, .45);
  text-underline-offset: .2em;
}
.footer-bottom a:hover { color: #245f3c; text-decoration-color: currentColor; }
.footer-repo { flex-basis: 100%; }
/* Easter egg line, faded in on hover. */
.footer-egg {
  align-self: center;
  font-size: .72rem;
  font-style: italic;
  color: #5a6b45;
  opacity: 0;
  transition: opacity .7s ease;
}
.footer-egg:hover { opacity: .55; }
/* Move the hidden line last when space is tight. */
@media (max-width: 1199.98px) {
  .footer-egg { order: 1; align-self: flex-start; }
}

/* Closing wordmark behind the footer. */
.footer-wordmark {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  display: flex;
  justify-content: center;
  height: var(--wordmark-band);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}
.footer-wordmark span {
  flex: none;
  font-size: 21vw;
  font-weight: 700;
  line-height: .78;
  letter-spacing: -.05em;
  text-transform: uppercase;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(55, 72, 31, .11) 0%, rgba(55, 72, 31, .03) 70%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: rgba(55, 72, 31, .08);     /* where clipped text isn't supported */
}

/* footer: back-to-top button */
.back-to-top {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(55, 72, 31, .25);
  border-radius: .5rem;
  background-color: rgba(55, 72, 31, .06);
  color: #37481f;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
/* Back-to-top hover colour. */
.back-to-top:hover {
  background-color: #2f7d4f;
  border-color: #2f7d4f;
  color: #fff;
}

/* tablets: a smaller logo */
@media (max-width: 991.98px) {
  .footer-logo { height: 136px; }
  .footer-sprout { left: calc(50% - 46px); }
}
/* Phones: two-column footer. */
@media (max-width: 767.98px) {
  .site-footer { padding-top: 3rem; }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 2.25rem;
  }
  .footer-thanks {
    grid-column: 1 / -1;
    grid-row: 1;
    padding-right: calc(96px + 1rem);
  }
  /* the button keeps to one line however narrow the screen */
  .footer-thanks-link { padding: .6rem 1.15rem; white-space: nowrap; }
  .footer-identity { grid-column: 2; grid-row: 1; align-self: start; }
  .footer-logo { height: 96px; margin-top: .4rem; }
  .footer-brand-sub { font-size: .7rem; letter-spacing: .08em; }
  .footer-sprout { bottom: calc(.7rem * 1.5 + .4rem); width: 22px; height: 33px; left: calc(50% - 36px); }
  .footer-connect { grid-column: 1 / -1; }
  .footer-social { margin-top: -.6rem; }
  .footer-identity { margin-bottom: 0; }
  .footer-bottom { flex-direction: column; }
  /* Room for the back-to-top button. */
  .site-footer { --wordmark-band: 5.25rem; }
}

/* Smallest phones: smaller logo and button. */
@media (max-width: 359.98px) {
  .footer-thanks { padding-right: calc(80px + 1rem); }
  .footer-logo { height: 80px; }
  .footer-brand-sub { font-size: .62rem; letter-spacing: .06em; }
  .footer-sprout { bottom: calc(.62rem * 1.5 + .4rem); left: calc(50% - 33px); }
  .footer-thanks-link { padding: .55rem .9rem; font-size: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  .footer-logo { transition: none; }
  .footer-logo:hover { transform: none; }      /* the glow alone */
  .footer-sprout-stem,
  .footer-sprout-leaf { transform: none; transition: none; }  /* just fades in */
  .footer-thanks-link svg,
  .footer-social a[data-label]::after,
  .footer-egg { transition: none; }
  .footer-shine { animation: none; }
  .site-footer .footer-thanks-link,
  .site-footer .footer-thanks-link:hover,
  .site-footer .footer-thanks-link:focus-visible { transition: border-color .3s ease, color .25s ease; }
  .footer-thanks-link:hover svg,
  .footer-thanks-link:focus-visible svg { animation: none; }
  .footer-links a span { transition: color .2s ease, background-color .2s ease; }
  .footer-links:hover a span,
  .footer-links:hover a:hover span,
  .footer-links:focus-within a span,
  .footer-links:focus-within a:focus-visible span { transform: none; }
}

/* SPONSORS PAGE */
.sponsors-hero {
  padding: clamp(3.5rem, 10vh, 6rem) 0 clamp(2.5rem, 6vh, 4rem);
  text-align: center;
}
/* Title sheen clipped to the text. */
.sponsors-title {
  display: inline-block;
  margin: 0;
  padding-left: .1em;               /* balances the spacing after the last letter */
  font-size: clamp(3rem, 11vw, 8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #37481f;
  background-image: linear-gradient(100deg,
    #37481f 0%, #37481f 40%, #7aa657 50%, #37481f 60%, #37481f 100%);
  background-size: 220% auto;
  background-position: 160% center;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: sponsor-shine 6s linear infinite;
}
@keyframes sponsor-shine {
  from { background-position: 160% center; }
  to   { background-position: -60% center; }
}
@media (prefers-reduced-motion: reduce) {
  .sponsors-title { animation: none; }
}

.sponsors-section + .sponsors-section { margin-top: clamp(3.5rem, 9vh, 5.5rem); }
/* Section labels. */
.sponsors-label {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #37481f;
}
.sponsors-label + .team-heading-rule { margin: .75rem 0 0; }
/* introduction: the label on top, the text below it */
.sponsors-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}
.sponsors-intro__text p {
  margin: 0;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.75;
  color: #3f4838;
}
.sponsors-intro__text p + p { margin-top: 1.25rem; }
/* key phrases in the intro: brand green, a touch heavier */
.sponsors-intro__text strong {
  font-weight: 600;
  color: #2f7d4f;
}
/* text still to come: muted, so it never reads as finished copy */
.sponsors-tbw {
  color: #8a9479 !important;
  font-style: italic;
}

/* Sponsor card grid. */
.sponsors-grid {
  --sponsors-cols: 3;
  --sponsors-gap: 1.25rem;
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sponsors-gap);
}
.sponsors-grid > li {
  display: flex;
  width: calc((100% - (var(--sponsors-cols) - 1) * var(--sponsors-gap)) / var(--sponsors-cols));
}
.sponsors-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 1.75rem 1.5rem 1.5rem;
  background: #fff;
  border: 1px solid rgba(55, 72, 31, .12);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(55, 72, 31, .05);
  color: inherit;
  text-align: center;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.sponsors-card:hover,
.sponsors-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(69, 176, 108, .45);
  box-shadow: 0 10px 24px -12px rgba(55, 72, 31, .3);
}
.sponsors-card:focus-visible { outline: 2px solid #2f7d4f; outline-offset: 3px; }
/* every logo gets the same slot, so the text below starts at the same height */
.sponsors-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 100%;
  max-width: 220px;
  height: 90px;
}
.sponsors-logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
/* the contribution, under a short rule that separates it from the logo */
.sponsors-contribution {
  position: relative;
  padding-top: 1.1rem;
  font-size: .95rem;
  line-height: 1.6;
  color: #3f4838;
  hyphens: manual;
}
.sponsors-contribution::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 32px;
  height: 2px;
  margin-left: -16px;
  border-radius: 2px;
  background: #7aa657;
}
/* Per-logo tweaks. */
.sponsors-logo--center { justify-content: center; }
.sponsors-logo--small img { max-width: 75%; max-height: 75%; }
@media (prefers-reduced-motion: reduce) {
  .sponsors-card { transition: none; }
  .sponsors-card:hover,
  .sponsors-card:focus-visible { transform: none; }
}
@media (max-width: 991.98px) {
  .sponsors-grid { --sponsors-cols: 2; }
}
@media (max-width: 575.98px) {
  .sponsors-grid { --sponsors-cols: 1; --sponsors-gap: 1rem; }
  .sponsors-card { padding: 1.5rem 1.25rem 1.25rem; }
  .sponsors-logo { height: 70px; }
}

/* Footer layout without the thank-you. */
.site-footer--no-thanks .footer-identity { grid-row: 1; }
@media (max-width: 767.98px) {
  .site-footer--no-thanks .footer-identity { grid-column: 2; grid-row: 2; align-self: end; }
  .site-footer--no-thanks .footer-connect { grid-column: 1; grid-row: 2; }
}

/* TEAM SECTION */
.team-section + .team-section { margin-top: 1rem; }
.team-heading {
  font-weight: 600;
  color: #343a40;
  margin-bottom: .5rem;
}
.team-heading-rule {
  width: 48px;
  height: 3px;
  background-color: #45b06c;
  border: none;
  border-radius: 2px;
  margin: 0 0 2rem;
}
/* Team grid with a centred last row. */
.team-grid {
  --team-cols: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  max-width: 1140px;
  margin: 0 auto 3.5rem;
}
.team-grid > .team-card {
  width: calc((100% - (var(--team-cols) - 1) * 2.5rem) / var(--team-cols));
}
/* 2 columns on tablets, 1 on phones */
@media (max-width: 800px) {
  .team-grid { --team-cols: 2; }
}
@media (max-width: 520px) {
  .team-grid { --team-cols: 1; max-width: 380px; }
}
/* Team page intro. */
.team-intro-lead {
  max-width: 44rem;
  margin: 1rem auto 0;
  text-align: center;
  font-size: 1.1rem;
  color: #6b7a5a;
}
.team-card {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  text-align: center;
  outline: none;
  /* same gentle lift as .team-card-static below and .nb-card (:2011) */
  transition: transform .22s cubic-bezier(.4, 0, .2, 1);
}
/* Focus opens the card. */
.team-card:focus-within {
  transform: translateY(-4px);
}
/* Hover opens the card on real pointers. */
@media (hover: hover) and (pointer: fine) {
  .team-card:hover {
    transform: translateY(-4px);
  }
}
/* Static advisor card with hover lift. */
.team-card-static {
  position: relative;
  transition: transform .22s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
.team-card-static:hover,
.team-card-static:focus-within {
  transform: translateY(-4px);
}
.team-card-static .team-card-face {
  transition: box-shadow .22s cubic-bezier(.4, 0, .2, 1);
}
.team-card-static:hover .team-card-face,
.team-card-static:focus-within .team-card-face {
  box-shadow: 0 .6rem 1.2rem rgba(0, 0, 0, .12);
}
.team-card-linkedin-sm {
  width: 30px;
  height: 30px;
  margin-top: .55rem;
}
/* The card's single face (photo + white panel), shared by both card kinds */
.team-card-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bs-body-bg, #fff);
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: .75rem;
  overflow: hidden;
  box-shadow: var(--bs-box-shadow-sm, 0 .125rem .25rem rgba(0, 0, 0, .075));
}
.team-card-photo,
.team-card-photo-placeholder {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  object-fit: cover;
  display: block;
}
.team-card-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #eaf6ee;
  color: #2f7d4f;
  font-size: 2rem;
  font-weight: 600;
}
.team-card-body {
  padding: 1.1rem 1rem 1.4rem;
  text-align: center;
}
/* Sliding panel that rises over the photo on hover. */
.team-card-spacer {
  flex: none;
  visibility: hidden;
}
.team-card-panel {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr 0fr auto minmax(0, auto) 0fr;
  /* the file's standard strong ease-out (see .root-timeline-card:1135) */
  transition: grid-template-rows .45s cubic-bezier(.22, 1, .36, 1);
}
.team-card-panel::before,
.team-card-panel::after {
  content: "";
  min-height: 0;
}
.team-card-pad,
.team-card-panel::after,
.team-card-panel .team-card-body,
.team-card-more {
  min-height: 0;
  background: var(--bs-body-bg, #fff);
}
/* White shadows to hide seams at fractional zoom. */
.team-card-pad {
  box-shadow: 0 1px 0 var(--bs-body-bg, #fff);
  transition: box-shadow .45s cubic-bezier(.22, 1, .36, 1);
}
.team-card-panel .team-card-body,
.team-card-more {
  box-shadow: 0 1px 0 var(--bs-body-bg, #fff);
}
.team-card-panel .team-card-body {
  transition: padding-bottom .45s cubic-bezier(.22, 1, .36, 1);
}
/* the details open from 0 to their own height (0fr -> 1fr) */
.team-card-more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s cubic-bezier(.22, 1, .36, 1);
}
.team-card-more-inner {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 0 1.1rem;
  opacity: 0;
  transition: opacity .3s ease, padding .45s cubic-bezier(.22, 1, .36, 1);
  scrollbar-width: thin;
}
/* Allow scrolling once the panel has fully opened. */
.team-card:hover .team-card-more-inner,
.team-card:focus-within .team-card-more-inner {
  transition: opacity .3s ease .1s, padding .45s cubic-bezier(.22, 1, .36, 1), overflow-y 0s .45s;
  transition-behavior: allow-discrete;
}
.team-card:focus-within .team-card-panel { grid-template-rows: 0fr 1fr auto minmax(0, auto) 1fr; }
.team-card:focus-within .team-card-pad { box-shadow: 0 1px 0 var(--bs-body-bg, #fff), 0 -.4rem 1rem rgba(0, 0, 0, .08); }
/* once open, the role pill's own margin is enough space above the details */
.team-card:focus-within .team-card-panel .team-card-body { padding-bottom: 0; }
.team-card:focus-within .team-card-more { grid-template-rows: 1fr; }
.team-card:focus-within .team-card-more-inner {
  opacity: 1;
  overflow-y: auto;
  padding: .4rem 1.1rem 1.2rem;
}
@media (hover: hover) and (pointer: fine) {
  .team-card:hover .team-card-panel { grid-template-rows: 0fr 1fr auto minmax(0, auto) 1fr; }
  .team-card:hover .team-card-pad { box-shadow: 0 1px 0 var(--bs-body-bg, #fff), 0 -.4rem 1rem rgba(0, 0, 0, .08); }
  .team-card:hover .team-card-panel .team-card-body { padding-bottom: 0; }
  .team-card:hover .team-card-more { grid-template-rows: 1fr; }
  .team-card:hover .team-card-more-inner {
    opacity: 1;
    overflow-y: auto;
    padding: .4rem 1.1rem 1.2rem;
  }
}
.team-card-study {
  font-size: .82rem;
  font-weight: 600;
  color: #2f7d4f;
  margin: 0;
}
.team-card-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-top: .4rem;
  border-radius: 50%;
  color: #fff;
  background-color: #0a66c2;
  transition: transform .15s ease, background-color .15s ease;
}
.team-card-linkedin:hover,
.team-card-linkedin:focus-visible {
  background-color: #084b91;
  transform: translateY(-2px);
  color: #fff;
}
.team-card-name {
  font-weight: 600;
  font-size: 1.05rem;
  color: #212529;
  margin-bottom: .35rem;
  text-align: center;
}
.team-card-role {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #2f7d4f;
  background-color: #eaf6ee;
  padding: .2rem .65rem;
  border-radius: 999px;
  margin-bottom: .65rem;
}
.team-card-bio {
  font-size: .85rem;
  color: #6c757d;
  margin: 0;
  line-height: 1.4;
}

/* Advisor photo zoom on hover. */
.team-card-static .team-card-photo {
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}
@media (hover: hover) and (pointer: fine) {
  .team-card-static:hover .team-card-photo {
    transform: scale(1.03);
  }
}
.team-card-static:focus-within .team-card-photo {
  transform: scale(1.03);
}

/* Scroll reveal, armed by team.js. */
.team-grid-js .team-card {
  opacity: 0;
  transform: translateY(16px) scale(.97);
  transition: opacity .5s cubic-bezier(.22, 1, .36, 1),
              transform .5s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}
.team-grid-js .team-card.is-visible {
  opacity: 1;
  transform: none;
}
/* Keep the hover lift during the reveal cascade. */
@media (hover: hover) and (pointer: fine) {
  .team-grid-js .team-card.is-visible:hover { transform: translateY(-4px); }
}
.team-grid-js .team-card.is-visible:focus-within { transform: translateY(-4px); }


/* Reduced motion: open the panel without sliding. */
@media (prefers-reduced-motion: reduce) {
  .team-card-more,
  .team-card-panel,
  .team-card-pad,
  .team-card-panel .team-card-body {
    transition: none;
  }
  .team-card,
  .team-card-static {
    transition: none;
  }
  .team-card:hover,
  .team-card:focus-within,
  .team-card-static:hover,
  .team-card-static:focus-within {
    transform: none;
  }
  .team-card-static:hover .team-card-photo,
  .team-card-static:focus-within .team-card-photo {
    transform: none;
  }
  .team-card:hover .team-card-more-inner,
  .team-card:focus-within .team-card-more-inner {
    transition: opacity .3s ease, overflow-y 0s;
  }
}

/* NAVBAR */
.navbar.bg-brand {
  /* Keep the bar about 73px tall. */
  padding-top: .5rem;
  padding-bottom: .5rem;
  background-color: #e5eeda !important;   /* beats bootstrap's .bg-* !important */
  border-bottom: 1px solid #cfdec0;
}
/* Brand lockup: logo and wordmark. */
.navbar-brand {
  display: flex;
  align-items: center;
  height: 56px;
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
}
.navbar-logo {
  height: 54px;
  width: auto;
  max-width: none;
  flex-shrink: 0;
}
.navbar-brand-name {
  margin-left: .25rem;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.005em;
  color: #37481f;                  /* the dark green of the nav links and footer title */
  white-space: nowrap;
  /* Nudge the wordmark down to align with the grapes. */
  transform: translateY(3px);
}
/* Lockup hover: logo tilt and letter wave. */
.navbar-logo {
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1);
  transform-origin: 50% 85%;
}
.navbar-brand:hover .navbar-logo,
.navbar-brand:focus-visible .navbar-logo { transform: rotate(-8deg); }
.navbar-brand-name > span { display: inline-block; }
.navbar-brand:hover .navbar-brand-name > span,
.navbar-brand:focus-visible .navbar-brand-name > span {
  animation: brand-wave .6s ease-in-out both;
  animation-delay: calc(var(--i) * 45ms);
}
@keyframes brand-wave {
  0%, 100% { transform: translateY(0); }
  40%      { transform: translateY(-4px); }
  70%      { transform: translateY(1px); }
}
@media (prefers-reduced-motion: reduce) {
  .navbar-logo { transition: none; }
  .navbar-brand:hover .navbar-logo,
  .navbar-brand:focus-visible .navbar-logo { transform: none; }
  .navbar-brand:hover .navbar-brand-name > span,
  .navbar-brand:focus-visible .navbar-brand-name > span { animation: none; }
}
.navbar-nav .nav-link {
  padding: .6rem 1.25rem;
  color: #37481f;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: .5rem;
  transition: background-color .22s cubic-bezier(.4, 0, .2, 1),
              color .22s cubic-bezier(.4, 0, .2, 1),
              transform .22s cubic-bezier(.4, 0, .2, 1),
              box-shadow .22s cubic-bezier(.4, 0, .2, 1);
}
@media (min-width: 992px) {
  /* Spacing between top-level groups. */
  .navbar-nav {
    gap: .75rem;
  }
  /* Even-width top-level items. */
  .navbar-nav .dropdown-toggle {
    min-width: 6rem;
    text-align: center;
  }
}
.navbar-nav .nav-link:focus-visible {
  background-color: #fff;
  color: #2f7d4f;
  transform: translateY(-1px);
}
/* Hover style for real mice only. */
@media (hover: hover) and (pointer: fine) {
  .navbar-nav .nav-link:hover {
    background-color: #fff;
    color: #2f7d4f;
    transform: translateY(-1px);
  }
}
/* Active group style. */
.navbar-nav .nav-link.show {
  background-color: #fff;
  color: #2f7d4f;
  box-shadow: inset 0 -2px 0 #45b06c;
  transform: translateY(-1px);
}

/* Hide Bootstrap's dropdown caret. */
.navbar-nav .dropdown-toggle::after {
  display: none;
}

/* NAVBAR: mega menu (full-width horizontal dropdown panel) */
@media (min-width: 992px) {
  /* Full-width mega-menu panel with animated open and close. */
  .navbar-nav .dropdown-menu.mega-menu {
    display: grid;
    position: fixed;
    top: 73px;
    left: 0;
    width: 100%;
    margin: 0;
    gap: .5rem 2.5rem;
    /* Centre the panel content in a 960px column. */
    padding: 1.6rem max(6vw, calc((100% - 960px) / 2));
    background-color: #f3f8ec;   /* lighter sage: continues the navbar downward */
    border: none;
    border-radius: 0;
    box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .12);
    transform-origin: top;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scaleY(.97) translateY(-6px);
    transition: opacity .22s cubic-bezier(.4, 0, .2, 1),
                transform .22s cubic-bezier(.4, 0, .2, 1),
                visibility 0s linear .22s;
  }
  .dropdown-menu.mega-menu.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scaleY(1) translateY(0);
    transition: opacity .22s cubic-bezier(.4, 0, .2, 1),
                transform .22s cubic-bezier(.4, 0, .2, 1),
                visibility 0s linear 0s;
  }
  .dropdown-menu.mega-menu[aria-labelledby="navbar-project"] { grid-template-columns: repeat(3, minmax(160px, 1fr)); }
  .dropdown-menu.mega-menu[aria-labelledby="navbar-wet-lab"] { grid-template-columns: repeat(3, minmax(160px, 1fr)); }
  .dropdown-menu.mega-menu[aria-labelledby="navbar-dry-lab"] { grid-template-columns: repeat(3, minmax(160px, 1fr)); }
  .dropdown-menu.mega-menu[aria-labelledby="navbar-engagement"] { grid-template-columns: repeat(3, minmax(160px, 1fr)); }
  .dropdown-menu.mega-menu[aria-labelledby="navbar-team"] { grid-template-columns: repeat(3, minmax(160px, 1fr)); }
}
.dropdown-menu.mega-menu .dropdown-item {
  border-radius: .5rem;
  padding: .7rem 1.1rem;
  font-size: 1.08rem;
  font-weight: 600;
  white-space: normal;
  text-align: center;
  transition: background-color .22s cubic-bezier(.4, 0, .2, 1),
              color .22s cubic-bezier(.4, 0, .2, 1),
              transform .22s cubic-bezier(.4, 0, .2, 1),
              box-shadow .22s cubic-bezier(.4, 0, .2, 1);
}
.dropdown-menu.mega-menu .dropdown-item:focus-visible {
  background-color: #fff;
  color: #2f7d4f;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 .3rem .75rem rgba(69, 176, 108, .25);
}
/* Item lift on hover for real mice only. */
@media (hover: hover) and (pointer: fine) {
  .dropdown-menu.mega-menu .dropdown-item:hover {
    background-color: #fff;
    color: #2f7d4f;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 .3rem .75rem rgba(69, 176, 108, .25);
  }
}
/* On-palette pressed and hover colours. */
.dropdown-menu.mega-menu {
  --bs-dropdown-link-active-bg: #fff;
  --bs-dropdown-link-active-color: #2f7d4f;
}
@media (min-width: 992px) {
  .dropdown-menu.mega-menu .submenu { --bs-dropdown-link-active-bg: #f3f8ec; }
}
@media (hover: none) {
  .dropdown-menu.mega-menu { --bs-dropdown-link-hover-bg: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .navbar-nav .dropdown-menu.mega-menu,
  .dropdown-menu.mega-menu.show,
  .dropdown-menu.mega-menu .dropdown-item:hover,
  .dropdown-menu.mega-menu .dropdown-item:focus-visible {
    transform: none;
  }
}

/* Submenus inside the mega-menu. */
.dropdown-submenu {
  position: relative;
}
.submenu {
  list-style: none;
  margin: 0;
  padding: 0;
}
/* Keep the label highlighted while its submenu is open. */
.dropdown-menu.mega-menu .dropdown-submenu.is-open > .submenu-toggle {
  background-color: #fff;
  color: #2f7d4f;
  box-shadow: inset 0 -2px 0 #45b06c;
}
@media (max-width: 991.98px) {
  .submenu {
    display: none;
    margin: .15rem .75rem .35rem;
    padding: .25rem;
    background-color: #f3f8ec;
    border-radius: .5rem;
  }
  .dropdown-submenu.is-open > .submenu {
    display: block;
  }
  /* Let the open mobile menu scroll. */
  .navbar.fixed-top .navbar-collapse {
    max-height: calc(100vh - 73px);
    max-height: calc(100dvh - 73px);
  }
  .navbar.fixed-top .navbar-collapse.show {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0 -.25rem;
    padding: .25rem;
  }
  /* in the one-column menu an item's lift can't grow sideways out of it */
  .dropdown-menu.mega-menu .dropdown-item:hover,
  .dropdown-menu.mega-menu .dropdown-item:focus-visible {
    transform: none;
  }
}
@media (min-width: 992px) {
  .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1;           /* over the grid row beneath it */
    margin-top: .35rem;
    padding: .35rem;
    background-color: #fff;
    border-radius: .75rem;
    box-shadow: 0 .5rem 1.25rem rgba(0, 0, 0, .12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity .18s cubic-bezier(.4, 0, .2, 1),
                transform .18s cubic-bezier(.4, 0, .2, 1),
                visibility 0s linear .18s;
  }
  /* Hover bridge between label and submenu. */
  .submenu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: .35rem;
  }
  /* Show the submenu only inside an open panel. */
  .dropdown-menu.mega-menu.show .dropdown-submenu.is-open > .submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: opacity .18s cubic-bezier(.4, 0, .2, 1),
                transform .18s cubic-bezier(.4, 0, .2, 1),
                visibility 0s linear 0s;
  }
  /* the card is already white, so its items light up in the panel's sage */
  .dropdown-menu.mega-menu .submenu .dropdown-item:hover,
  .dropdown-menu.mega-menu .submenu .dropdown-item:focus-visible {
    background-color: #f3f8ec;
  }
}
@media (prefers-reduced-motion: reduce) {
  .submenu {
    transform: none;
  }
}

/* Labeled Q&A facts on the card back */
.team-card-facts {
  width: 100%;
  margin: 0;
  text-align: left;
}
.team-card-facts dt {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #2f7d4f;
  margin-top: .55rem;
}
.team-card-facts dt:first-child { margin-top: 0; }
.team-card-facts dd {
  font-size: .8rem;
  color: #495057;
  line-height: 1.35;
  margin: .1rem 0 0;
}

/* EDUCATION: THE FIELD */
/* Page title on the page background. */
.edu-intro {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.75rem 1.25rem 2.25rem;
  text-align: center;
}
.edu-title {
  margin: 0 0 .55rem;
  font-size: clamp(2rem, 4.4vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -.01em;
  color: #37481f;                  /* the same green the section headings use */
}
.edu-subtitle {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: #6c757d;
  text-align: center;
}
@media (max-width: 575.98px) {
  .edu-intro { padding: 1.75rem 1.25rem 1.75rem; }
  .edu-subtitle { font-size: .95rem; }
}

.edu-field {
  --edu-corridor: 50%;
  position: relative;
}
/* Gap before the field after the overview. */
.container + .edu-field { --edu-sky-lead: 4.5rem; }

/* Pale sky behind the title. */
.edu-sky {
  position: relative;
  isolation: isolate;
  padding-top: var(--edu-sky-lead, 0px);
  /* extra stops ease in and out of the bluest point, so no seam shows there */
  background: linear-gradient(180deg, #fbfcf8 0, #edf2f2 3rem, #dce7ed 7rem, #d4e2ea 10rem, #d7e4eb 14rem, #e0eaee 60%, #e8f0ec 100%);
}
/* The sun. */
.edu-sky::before {
  content: "";
  position: absolute;
  top: calc(var(--edu-sky-lead, 0px) + 1.7rem);
  right: max(6%, 1.5rem);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fbefbb;
  box-shadow: 0 0 0 9px rgba(251, 239, 187, .38), 0 0 0 20px rgba(251, 239, 187, .16);
  z-index: -1;
  pointer-events: none;
}
/* Distant hills on the soil line. */
.edu-hills {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 230px;
  z-index: -1;
  pointer-events: none;
}
.edu-hill--far  { fill: #cbd6c2; }
.edu-hill--mid  { fill: #b7c4a3; }
.edu-hill--near { fill: #a8b58d; }
.edu-hill-rows path { fill: none; stroke-linecap: round; }
.edu-hill-rows--mid path  { stroke: #a9b695; stroke-width: 1.4; stroke-dasharray: 4 4; }
.edu-hill-rows--near path { stroke: #8f9d72; stroke-width: 1.6; stroke-dasharray: 6 5; opacity: .7; }
@media (max-width: 991.98px) {
  /* the vine band is 20px shorter here (--vine-h), so the hills are too */
  .edu-hills { height: 184px; }
}
@media (max-width: 575.98px) {
  .edu-sky::before {
    top: calc(var(--edu-sky-lead, 0px) + .9rem);
    right: 1rem;
    width: 30px;
    height: 30px;
    box-shadow: 0 0 0 6px rgba(251, 239, 187, .38), 0 0 0 13px rgba(251, 239, 187, .16);
  }
}

/* Vine row, with one trunk aligned over the root's start. */
.root-timeline-ground {
  position: relative;
  overflow: hidden; /* crop the row to the band at both edges */
}
.root-timeline-vine {
  --vine-h: 135px;                                /* rendered height = the scale */
  --vine-trunk: calc(var(--vine-h) / 405 * 3976); /* anchor trunk, from the box's left edge */
  display: block;
  height: var(--vine-h);
  margin-left: calc(var(--edu-corridor) - var(--vine-trunk));          /* trunk on the corridor */
  width: calc(100% - var(--edu-corridor) + var(--vine-trunk) + 2px);   /* ...still reaching the right edge */
  margin-bottom: -2px;
  overflow: hidden; /* required: "slice" only crops if the SVG clips */
}

/* Drifting light over the vine row. */
.vine-row-light {
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.vine-fall {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.vine-fall-leaf {
  position: absolute;
  left: var(--x);
  top: 36%;
  width: 13px;
  height: 13px;
  opacity: 0;
  animation: vine-fall var(--dur) ease-in-out var(--delay) infinite;
}
.root-timeline-ground.is-paused .vine-fall-leaf { animation-play-state: paused; }
/* Falling leaf animation. */
@keyframes vine-fall {
  0%       { opacity: 0; transform: translate(0, 0) rotate(0deg); }
  2%       { opacity: 1; }
  7%       { transform: translate(var(--drift), 16px) rotate(65deg); }
  12%      { transform: translate(calc(var(--drift) * -.35), 34px) rotate(140deg); }
  17%      { transform: translate(var(--drift), 52px) rotate(215deg); opacity: 1; }
  23%      { transform: translate(calc(var(--drift) * .4), 70px) rotate(275deg); opacity: 0; }
  23.1%, 100% { opacity: 0; transform: translate(0, 0) rotate(0deg); }
}

/* Soil: layered gradients and fine grain. */
.root-timeline {
  /* Wavy soil surface cut by a mask. */
  --terrain-h: 12px;
  --terrain-w: 1200px;
  --terrain-x: 0px;
  position: relative;
  margin-top: calc(-1 * var(--terrain-h));
  padding: calc(3.5rem + var(--terrain-h)) 0 20rem;
  background-color: #9e7c58;
  background-image:
    /* the surface line */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 12' preserveAspectRatio='none'%3E%3Cpath d='M0 9.2 l2 0 2 -.5 2 -.3 2 0 2 0 2 -.1 2 0 2 0 2 -.1 2 -.2 2 -.1 2 -.4 2 -.8 2 -.9 2 -.1 2 .9 2 1.3 2 .3 2 0 2 .1 2 -.2 2 -.2 2 0 2 .4 2 .1 2 -.3 2 -1.2 2 -.9 2 .5 2 .7 2 .3 2 -.3 2 -.5 2 -.4 2 .1 2 .5 2 .3 2 .1 2 .1 2 .3 2 .2 2 0 2 -.1 2 -.5 2 -.8 2 -1 2 -.3 2 .2 2 .4 2 .2 2 .4 2 .6 2 .4 2 .3 2 .2 2 .3 2 -.2 2 -.3 2 -.3 2 -.2 2 0 2 .4 2 .3 2 0 2 -.2 2 -.1 2 .2 2 .3 2 -.1 2 -.3 2 -.1 2 .2 2 -.1 2 -.5 2 -.3 2 -.1 2 -.1 2 -.2 2 0 2 -.2 2 -.5 2 -.5 2 0 2 .4 2 .6 2 .6 2 .7 2 .4 2 -.3 2 -.2 2 .2 2 .3 2 0 2 -.2 2 .3 2 .6 2 .4 2 .1 2 -.4 2 -.6 2 -.4 2 -.2 2 .1 2 .3 2 .1 2 -.2 2 0 2 0 2 -.1 2 0 2 .3 2 -.2 2 -1 2 -1 2 -.4 2 .2 2 .8 2 1.1 2 .4 2 -.5 2 -.7 2 -.5 2 .2 2 .3 2 .4 2 .3 2 .5 2 .4 2 .4 2 .3 2 .3 2 .1 2 -.3 2 -.4 2 -.2 2 -.1 2 -.2 2 -.3 2 0 2 .1 2 0 2 .1 2 0 2 -1.2 2 -.6 2 .3 2 1.1 2 .7 2 -.3 2 -.5 2 -.5 2 -.4 2 -.2 2 .1 2 .5 2 .4 2 .1 2 .2 2 .3 2 .2 2 0 2 -.1 2 0 2 -.1 2 -.1 2 .1 2 .3 2 -.2 2 -1.4 2 -1.1 2 .1 2 .7 2 .9 2 .7 2 .1 2 -.1 2 -.2 2 .3 2 .8 2 .1 2 -.4 2 -.7 2 -.7 2 -.6 2 -.4 2 -.3 2 .1 2 .4 2 .7 2 .7 2 .3 2 .1 2 -.2 2 -.6 2 -1.3 2 -.3 2 1 2 1.2 2 .1 2 -.2 2 -.5 2 -.6 2 -.3 2 .1 2 .1 2 .4 2 .5 2 .1 2 -.1 2 .2 2 .2 2 -.9 2 -1.3 2 -.1 2 .6 2 .7 2 .5 2 .1 2 0 2 -.1 2 -.1 2 .2 2 .2 2 -.1 2 -.4 2 0 2 .2 2 .4 2 .3 2 .4 2 .3 2 -.2 2 -.5 2 -.5 2 -.1 2 -.1 2 -.4 2 -.5 2 -.4 2 -.5 2 -.5 2 -.3 2 0 2 .1 2 .5 2 1.1 2 .8 2 -.1 2 -.3 2 0 2 0 2 0 2 0 2 0 2 -.1 2 -.5 2 -.4 2 .1 2 .2 2 0 2 -.1 2 .2 2 .2 2 .2 2 0 2 .3 2 0 2 -.3 2 -.2 2 .1 2 .3 2 0 2 -.1 2 -.5 2 -1.5 2 -1.1 2 .5 2 1.6 2 1.2 2 -1 2 -1.4 2 -.8 2 0 2 .8 2 1.3 2 .9 2 -.1 2 -.2 2 0 2 .3 2 .2 2 -.3 2 -.2 2 -.1 2 -.3 2 -.3 2 0 2 .6 2 .3 2 -.3 2 0 2 .4 2 .1 2 -.1 2 -.2 2 -.5 2 -.7 2 -.8 2 -.3 2 0 2 -.1 2 -.2 2 -.2 2 -.1 2 .1 2 .1 2 .4 2 .8 2 .8 2 .5 2 .4 2 .2 2 0 2 -.9 2 -1.2 2 -.4 2 .4 2 .6 2 .8 2 .5 2 -.7 2 -1 2 -.2 2 .5 2 .5 2 .4 2 .3 2 .2 2 .2 2 0 2 -.1 2 -.5 2 -.8 2 -.8 2 -.1 2 .4 2 .3 2 .2 2 .5 2 .6 2 -.2 2 -.6 2 .2 2 1.1 2 -.2 2 -.3 2 .2 2 .3 2 .1 2 -.3 2 -.1 2 .1 2 -.1 2 -.2 2 -.1 2 -.2 2 -.5 2 -.5 2 0 2 .3 2 .3 2 .2 2 .4 2 .2 2 -.7 2 -.6 2 .5 2 .9 2 .3 2 -.4 2 .1 2 .3 2 .1 2 -.1 2 -.1 2 0 2 -.2 2 0 2 .3 2 .2 2 -.2 2 -.6 2 -.8 2 -.3 2 .3 2 1 2 .4 2 -.1 2 -.2 2 -.1 2 .3 2 .2 2 -.1 2 -.3 2 -.1 2 .2 2 0 2 0 2 -.3 2 -.8 2 -1.1 2 -.6 2 .1 2 .7 2 .9 2 .7 2 .2 2 .1 2 -.1 2 .1 2 .2 2 0 2 -.3 2 -.5 2 -.6 2 -.6 2 -.9 2 -.8 2 -.2 2 .2 2 .5 2 .9 2 1.2 2 .8 2 -.1 2 -.3 2 -.4 2 -.6 2 -.8 2 -.6 2 -.1 2 .3 2 .7 2 1 2 1 2 .1 2 -.3 2 -.3 2 -.1 2 -.1 2 -.2 2 0 2 .5 2 .4 2 .2 2 .3 2 .5 2 .3 2 -.2 2 -.3 2 -.1 2 -.1 2 -.2 2 -.3 2 -.1 2 -.2 2 -.3 2 0 2 .3 2 .1 2 -.7 2 -.7 2 -.3 2 .2 2 .3 2 .6 2 .6 2 -.3 2 -1.1 2 -.9 2 -.5 2 -.2 2 -.1 2 .4 2 1 2 1 2 .4 2 .2 2 .3 2 -.1 2 -.3 2 -.5 2 -.6 2 -.7 2 -.5 2 0 2 .6 2 .7 2 .7 2 .7 2 .6 2 .3 2 0 2 .1 2 .3 2 .1 2 -.3 2 -.3 2 -.3 2 -.7 2 -1.4 2 -1.1 2 -.3 2 .1 2 .3 2 .8 2 1 2 .8 2 .1 2 .2 2 .2 2 0 2 .1 2 .4 2 .4 2 .1 2 -.3 2 -.3 2 -.2 2 -.2 2 -.2 2 .2 2 .1 2 -.3 2 -.2 2 .3 2 .6 2 .3 2 0 2 0 2 0 2 -.2 2 -.1 2 0 2 0 2 -.4 2 -.3 2 .1 2 .2 2 -.4 2 -.9 2 -.8 2 -.8 2 -.7 2 -.2 2 .5 2 1 2 .8 2 .8 2 .6 2 .3 2 0 2 0 2 .1 2 0 2 -.3 2 -1.9 2 -.5 2 1.6 2 1.2 2 -.3 2 0 2 0 2 -.8 2 -.9 2 -.5 2 -.4 2 -.1 2 .3 2 1 2 1 2 .5 2 .1 2 -.1 2 .1 2 -.1 2 .1 2 .2 2 0 2 -.4 2 -.6 2 0 2 .4 2 .6 2 .1 2 .2 2 0 2 0 2 .2 2 .3' fill='none' stroke='%235e4430' stroke-width='2.4' stroke-opacity='.5' stroke-linejoin='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E"),
    /* crumb */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='e'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23e)' opacity='.5'/%3E%3C/svg%3E"),
    /* large-scale variation - element-sized, so none of it repeats */
    radial-gradient(70% 14% at 14% 5%,  rgba(255, 244, 224, .10), transparent 70%),
    radial-gradient(52% 11% at 80% 16%, rgba(74, 52, 30, .16),    transparent 72%),
    radial-gradient(64% 13% at 26% 31%, rgba(74, 52, 30, .12),    transparent 70%),
    radial-gradient(58% 10% at 88% 44%, rgba(255, 244, 224, .08), transparent 72%),
    radial-gradient(72% 15% at 38% 57%, rgba(74, 52, 30, .13),    transparent 74%),
    /* the damp shadow that sits just under the surface */
    linear-gradient(180deg, rgba(74, 52, 30, .34) 0, rgba(74, 52, 30, .09) 4.5rem, rgba(74, 52, 30, 0) 10rem),
    /* topsoil into subsoil */
    linear-gradient(180deg, #bd9a6e 0%, #b08d64 20%, #a07f58 58%, #8c6d4a 100%);
  background-size: var(--terrain-w) var(--terrain-h), 300px 300px, auto, auto, auto, auto, auto, auto, auto;
  background-position: var(--terrain-x) 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
  background-repeat: repeat-x, repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-blend-mode: normal, soft-light, normal, normal, normal, normal, normal, normal, normal;
  /* Terrain mask along the top edge. */
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 12' preserveAspectRatio='none'%3E%3Cpath d='M0 9.2 l2 0 2 -.5 2 -.3 2 0 2 0 2 -.1 2 0 2 0 2 -.1 2 -.2 2 -.1 2 -.4 2 -.8 2 -.9 2 -.1 2 .9 2 1.3 2 .3 2 0 2 .1 2 -.2 2 -.2 2 0 2 .4 2 .1 2 -.3 2 -1.2 2 -.9 2 .5 2 .7 2 .3 2 -.3 2 -.5 2 -.4 2 .1 2 .5 2 .3 2 .1 2 .1 2 .3 2 .2 2 0 2 -.1 2 -.5 2 -.8 2 -1 2 -.3 2 .2 2 .4 2 .2 2 .4 2 .6 2 .4 2 .3 2 .2 2 .3 2 -.2 2 -.3 2 -.3 2 -.2 2 0 2 .4 2 .3 2 0 2 -.2 2 -.1 2 .2 2 .3 2 -.1 2 -.3 2 -.1 2 .2 2 -.1 2 -.5 2 -.3 2 -.1 2 -.1 2 -.2 2 0 2 -.2 2 -.5 2 -.5 2 0 2 .4 2 .6 2 .6 2 .7 2 .4 2 -.3 2 -.2 2 .2 2 .3 2 0 2 -.2 2 .3 2 .6 2 .4 2 .1 2 -.4 2 -.6 2 -.4 2 -.2 2 .1 2 .3 2 .1 2 -.2 2 0 2 0 2 -.1 2 0 2 .3 2 -.2 2 -1 2 -1 2 -.4 2 .2 2 .8 2 1.1 2 .4 2 -.5 2 -.7 2 -.5 2 .2 2 .3 2 .4 2 .3 2 .5 2 .4 2 .4 2 .3 2 .3 2 .1 2 -.3 2 -.4 2 -.2 2 -.1 2 -.2 2 -.3 2 0 2 .1 2 0 2 .1 2 0 2 -1.2 2 -.6 2 .3 2 1.1 2 .7 2 -.3 2 -.5 2 -.5 2 -.4 2 -.2 2 .1 2 .5 2 .4 2 .1 2 .2 2 .3 2 .2 2 0 2 -.1 2 0 2 -.1 2 -.1 2 .1 2 .3 2 -.2 2 -1.4 2 -1.1 2 .1 2 .7 2 .9 2 .7 2 .1 2 -.1 2 -.2 2 .3 2 .8 2 .1 2 -.4 2 -.7 2 -.7 2 -.6 2 -.4 2 -.3 2 .1 2 .4 2 .7 2 .7 2 .3 2 .1 2 -.2 2 -.6 2 -1.3 2 -.3 2 1 2 1.2 2 .1 2 -.2 2 -.5 2 -.6 2 -.3 2 .1 2 .1 2 .4 2 .5 2 .1 2 -.1 2 .2 2 .2 2 -.9 2 -1.3 2 -.1 2 .6 2 .7 2 .5 2 .1 2 0 2 -.1 2 -.1 2 .2 2 .2 2 -.1 2 -.4 2 0 2 .2 2 .4 2 .3 2 .4 2 .3 2 -.2 2 -.5 2 -.5 2 -.1 2 -.1 2 -.4 2 -.5 2 -.4 2 -.5 2 -.5 2 -.3 2 0 2 .1 2 .5 2 1.1 2 .8 2 -.1 2 -.3 2 0 2 0 2 0 2 0 2 0 2 -.1 2 -.5 2 -.4 2 .1 2 .2 2 0 2 -.1 2 .2 2 .2 2 .2 2 0 2 .3 2 0 2 -.3 2 -.2 2 .1 2 .3 2 0 2 -.1 2 -.5 2 -1.5 2 -1.1 2 .5 2 1.6 2 1.2 2 -1 2 -1.4 2 -.8 2 0 2 .8 2 1.3 2 .9 2 -.1 2 -.2 2 0 2 .3 2 .2 2 -.3 2 -.2 2 -.1 2 -.3 2 -.3 2 0 2 .6 2 .3 2 -.3 2 0 2 .4 2 .1 2 -.1 2 -.2 2 -.5 2 -.7 2 -.8 2 -.3 2 0 2 -.1 2 -.2 2 -.2 2 -.1 2 .1 2 .1 2 .4 2 .8 2 .8 2 .5 2 .4 2 .2 2 0 2 -.9 2 -1.2 2 -.4 2 .4 2 .6 2 .8 2 .5 2 -.7 2 -1 2 -.2 2 .5 2 .5 2 .4 2 .3 2 .2 2 .2 2 0 2 -.1 2 -.5 2 -.8 2 -.8 2 -.1 2 .4 2 .3 2 .2 2 .5 2 .6 2 -.2 2 -.6 2 .2 2 1.1 2 -.2 2 -.3 2 .2 2 .3 2 .1 2 -.3 2 -.1 2 .1 2 -.1 2 -.2 2 -.1 2 -.2 2 -.5 2 -.5 2 0 2 .3 2 .3 2 .2 2 .4 2 .2 2 -.7 2 -.6 2 .5 2 .9 2 .3 2 -.4 2 .1 2 .3 2 .1 2 -.1 2 -.1 2 0 2 -.2 2 0 2 .3 2 .2 2 -.2 2 -.6 2 -.8 2 -.3 2 .3 2 1 2 .4 2 -.1 2 -.2 2 -.1 2 .3 2 .2 2 -.1 2 -.3 2 -.1 2 .2 2 0 2 0 2 -.3 2 -.8 2 -1.1 2 -.6 2 .1 2 .7 2 .9 2 .7 2 .2 2 .1 2 -.1 2 .1 2 .2 2 0 2 -.3 2 -.5 2 -.6 2 -.6 2 -.9 2 -.8 2 -.2 2 .2 2 .5 2 .9 2 1.2 2 .8 2 -.1 2 -.3 2 -.4 2 -.6 2 -.8 2 -.6 2 -.1 2 .3 2 .7 2 1 2 1 2 .1 2 -.3 2 -.3 2 -.1 2 -.1 2 -.2 2 0 2 .5 2 .4 2 .2 2 .3 2 .5 2 .3 2 -.2 2 -.3 2 -.1 2 -.1 2 -.2 2 -.3 2 -.1 2 -.2 2 -.3 2 0 2 .3 2 .1 2 -.7 2 -.7 2 -.3 2 .2 2 .3 2 .6 2 .6 2 -.3 2 -1.1 2 -.9 2 -.5 2 -.2 2 -.1 2 .4 2 1 2 1 2 .4 2 .2 2 .3 2 -.1 2 -.3 2 -.5 2 -.6 2 -.7 2 -.5 2 0 2 .6 2 .7 2 .7 2 .7 2 .6 2 .3 2 0 2 .1 2 .3 2 .1 2 -.3 2 -.3 2 -.3 2 -.7 2 -1.4 2 -1.1 2 -.3 2 .1 2 .3 2 .8 2 1 2 .8 2 .1 2 .2 2 .2 2 0 2 .1 2 .4 2 .4 2 .1 2 -.3 2 -.3 2 -.2 2 -.2 2 -.2 2 .2 2 .1 2 -.3 2 -.2 2 .3 2 .6 2 .3 2 0 2 0 2 0 2 -.2 2 -.1 2 0 2 0 2 -.4 2 -.3 2 .1 2 .2 2 -.4 2 -.9 2 -.8 2 -.8 2 -.7 2 -.2 2 .5 2 1 2 .8 2 .8 2 .6 2 .3 2 0 2 0 2 .1 2 0 2 -.3 2 -1.9 2 -.5 2 1.6 2 1.2 2 -.3 2 0 2 0 2 -.8 2 -.9 2 -.5 2 -.4 2 -.1 2 .3 2 1 2 1 2 .5 2 .1 2 -.1 2 .1 2 -.1 2 .1 2 .2 2 0 2 -.4 2 -.6 2 0 2 .4 2 .6 2 .1 2 .2 2 0 2 0 2 .2 2 .3 V12 H0 Z'/%3E%3C/svg%3E"),
    linear-gradient(transparent calc(var(--terrain-h) - 1px), #000 calc(var(--terrain-h) - 1px));
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 12' preserveAspectRatio='none'%3E%3Cpath d='M0 9.2 l2 0 2 -.5 2 -.3 2 0 2 0 2 -.1 2 0 2 0 2 -.1 2 -.2 2 -.1 2 -.4 2 -.8 2 -.9 2 -.1 2 .9 2 1.3 2 .3 2 0 2 .1 2 -.2 2 -.2 2 0 2 .4 2 .1 2 -.3 2 -1.2 2 -.9 2 .5 2 .7 2 .3 2 -.3 2 -.5 2 -.4 2 .1 2 .5 2 .3 2 .1 2 .1 2 .3 2 .2 2 0 2 -.1 2 -.5 2 -.8 2 -1 2 -.3 2 .2 2 .4 2 .2 2 .4 2 .6 2 .4 2 .3 2 .2 2 .3 2 -.2 2 -.3 2 -.3 2 -.2 2 0 2 .4 2 .3 2 0 2 -.2 2 -.1 2 .2 2 .3 2 -.1 2 -.3 2 -.1 2 .2 2 -.1 2 -.5 2 -.3 2 -.1 2 -.1 2 -.2 2 0 2 -.2 2 -.5 2 -.5 2 0 2 .4 2 .6 2 .6 2 .7 2 .4 2 -.3 2 -.2 2 .2 2 .3 2 0 2 -.2 2 .3 2 .6 2 .4 2 .1 2 -.4 2 -.6 2 -.4 2 -.2 2 .1 2 .3 2 .1 2 -.2 2 0 2 0 2 -.1 2 0 2 .3 2 -.2 2 -1 2 -1 2 -.4 2 .2 2 .8 2 1.1 2 .4 2 -.5 2 -.7 2 -.5 2 .2 2 .3 2 .4 2 .3 2 .5 2 .4 2 .4 2 .3 2 .3 2 .1 2 -.3 2 -.4 2 -.2 2 -.1 2 -.2 2 -.3 2 0 2 .1 2 0 2 .1 2 0 2 -1.2 2 -.6 2 .3 2 1.1 2 .7 2 -.3 2 -.5 2 -.5 2 -.4 2 -.2 2 .1 2 .5 2 .4 2 .1 2 .2 2 .3 2 .2 2 0 2 -.1 2 0 2 -.1 2 -.1 2 .1 2 .3 2 -.2 2 -1.4 2 -1.1 2 .1 2 .7 2 .9 2 .7 2 .1 2 -.1 2 -.2 2 .3 2 .8 2 .1 2 -.4 2 -.7 2 -.7 2 -.6 2 -.4 2 -.3 2 .1 2 .4 2 .7 2 .7 2 .3 2 .1 2 -.2 2 -.6 2 -1.3 2 -.3 2 1 2 1.2 2 .1 2 -.2 2 -.5 2 -.6 2 -.3 2 .1 2 .1 2 .4 2 .5 2 .1 2 -.1 2 .2 2 .2 2 -.9 2 -1.3 2 -.1 2 .6 2 .7 2 .5 2 .1 2 0 2 -.1 2 -.1 2 .2 2 .2 2 -.1 2 -.4 2 0 2 .2 2 .4 2 .3 2 .4 2 .3 2 -.2 2 -.5 2 -.5 2 -.1 2 -.1 2 -.4 2 -.5 2 -.4 2 -.5 2 -.5 2 -.3 2 0 2 .1 2 .5 2 1.1 2 .8 2 -.1 2 -.3 2 0 2 0 2 0 2 0 2 0 2 -.1 2 -.5 2 -.4 2 .1 2 .2 2 0 2 -.1 2 .2 2 .2 2 .2 2 0 2 .3 2 0 2 -.3 2 -.2 2 .1 2 .3 2 0 2 -.1 2 -.5 2 -1.5 2 -1.1 2 .5 2 1.6 2 1.2 2 -1 2 -1.4 2 -.8 2 0 2 .8 2 1.3 2 .9 2 -.1 2 -.2 2 0 2 .3 2 .2 2 -.3 2 -.2 2 -.1 2 -.3 2 -.3 2 0 2 .6 2 .3 2 -.3 2 0 2 .4 2 .1 2 -.1 2 -.2 2 -.5 2 -.7 2 -.8 2 -.3 2 0 2 -.1 2 -.2 2 -.2 2 -.1 2 .1 2 .1 2 .4 2 .8 2 .8 2 .5 2 .4 2 .2 2 0 2 -.9 2 -1.2 2 -.4 2 .4 2 .6 2 .8 2 .5 2 -.7 2 -1 2 -.2 2 .5 2 .5 2 .4 2 .3 2 .2 2 .2 2 0 2 -.1 2 -.5 2 -.8 2 -.8 2 -.1 2 .4 2 .3 2 .2 2 .5 2 .6 2 -.2 2 -.6 2 .2 2 1.1 2 -.2 2 -.3 2 .2 2 .3 2 .1 2 -.3 2 -.1 2 .1 2 -.1 2 -.2 2 -.1 2 -.2 2 -.5 2 -.5 2 0 2 .3 2 .3 2 .2 2 .4 2 .2 2 -.7 2 -.6 2 .5 2 .9 2 .3 2 -.4 2 .1 2 .3 2 .1 2 -.1 2 -.1 2 0 2 -.2 2 0 2 .3 2 .2 2 -.2 2 -.6 2 -.8 2 -.3 2 .3 2 1 2 .4 2 -.1 2 -.2 2 -.1 2 .3 2 .2 2 -.1 2 -.3 2 -.1 2 .2 2 0 2 0 2 -.3 2 -.8 2 -1.1 2 -.6 2 .1 2 .7 2 .9 2 .7 2 .2 2 .1 2 -.1 2 .1 2 .2 2 0 2 -.3 2 -.5 2 -.6 2 -.6 2 -.9 2 -.8 2 -.2 2 .2 2 .5 2 .9 2 1.2 2 .8 2 -.1 2 -.3 2 -.4 2 -.6 2 -.8 2 -.6 2 -.1 2 .3 2 .7 2 1 2 1 2 .1 2 -.3 2 -.3 2 -.1 2 -.1 2 -.2 2 0 2 .5 2 .4 2 .2 2 .3 2 .5 2 .3 2 -.2 2 -.3 2 -.1 2 -.1 2 -.2 2 -.3 2 -.1 2 -.2 2 -.3 2 0 2 .3 2 .1 2 -.7 2 -.7 2 -.3 2 .2 2 .3 2 .6 2 .6 2 -.3 2 -1.1 2 -.9 2 -.5 2 -.2 2 -.1 2 .4 2 1 2 1 2 .4 2 .2 2 .3 2 -.1 2 -.3 2 -.5 2 -.6 2 -.7 2 -.5 2 0 2 .6 2 .7 2 .7 2 .7 2 .6 2 .3 2 0 2 .1 2 .3 2 .1 2 -.3 2 -.3 2 -.3 2 -.7 2 -1.4 2 -1.1 2 -.3 2 .1 2 .3 2 .8 2 1 2 .8 2 .1 2 .2 2 .2 2 0 2 .1 2 .4 2 .4 2 .1 2 -.3 2 -.3 2 -.2 2 -.2 2 -.2 2 .2 2 .1 2 -.3 2 -.2 2 .3 2 .6 2 .3 2 0 2 0 2 0 2 -.2 2 -.1 2 0 2 0 2 -.4 2 -.3 2 .1 2 .2 2 -.4 2 -.9 2 -.8 2 -.8 2 -.7 2 -.2 2 .5 2 1 2 .8 2 .8 2 .6 2 .3 2 0 2 0 2 .1 2 0 2 -.3 2 -1.9 2 -.5 2 1.6 2 1.2 2 -.3 2 0 2 0 2 -.8 2 -.9 2 -.5 2 -.4 2 -.1 2 .3 2 1 2 1 2 .5 2 .1 2 -.1 2 .1 2 -.1 2 .1 2 .2 2 0 2 -.4 2 -.6 2 0 2 .4 2 .6 2 .1 2 .2 2 0 2 0 2 .2 2 .3 V12 H0 Z'/%3E%3C/svg%3E"),
    linear-gradient(transparent calc(var(--terrain-h) - 1px), #000 calc(var(--terrain-h) - 1px));
  -webkit-mask-size: var(--terrain-w) var(--terrain-h), 100% 100%;
          mask-size: var(--terrain-w) var(--terrain-h), 100% 100%;
  -webkit-mask-position: var(--terrain-x) 0, 0 0;
          mask-position: var(--terrain-x) 0, 0 0;
  -webkit-mask-repeat: repeat-x, no-repeat;
          mask-repeat: repeat-x, no-repeat;
}
/* Fossil deep in the soil. */
.edu-fossil {
  position: absolute;
  right: 4%;
  bottom: 23rem;
  width: clamp(240px, 29vw, 475px);
  height: auto;
  z-index: 0;
  opacity: .5;
  transform: rotate(-5deg);
  pointer-events: none;
  user-select: none;
}
/* Buried finds beside the cards. */
.edu-find {
  grid-row: 1;
  align-self: start;
  height: auto;
  opacity: .6;
  transform: rotate(var(--find-tilt, 0deg));
  pointer-events: none;
}
.root-timeline-item-left .edu-find  { grid-column: 3; justify-self: end; margin-right: var(--find-edge, 15%); }
.root-timeline-item-right .edu-find { grid-column: 1; justify-self: start; margin-left: var(--find-edge, 15%); }
/* Clay pieces need more opacity. */
.edu-find--vase     { width: 84px;  margin-top: 13rem; --find-tilt: -72deg; --find-edge: 22%; opacity: .72; }
.edu-find--chest    { width: 140px; margin-top: 16rem; --find-tilt: -4deg; }
.edu-find--amphora  { width: 125px; margin-top: 10rem; --find-tilt: 8deg;  --find-edge: 20%; opacity: .72; }
.edu-find--bones    { width: 210px; margin-top: 12rem; --find-tilt: -6deg; --find-edge: 8%; }
.edu-find--ammonite { width: 70px;  margin-top: 2.5rem; --find-tilt: 20deg; --find-edge: 58%; }
@media (max-width: 991.98px) {
  .edu-find { display: none; }
}

@media (max-width: 991.98px) {
  /* Narrow screens: deeper soil for the fossil. */
  .root-timeline { padding-bottom: 26rem; }
  .edu-fossil {
    left: 4%;
    right: auto;
    bottom: 15rem;
    width: clamp(200px, 62vw, 300px);
    opacity: .4;
  }
}

/* Bottom fade into the page background. */
.root-timeline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 16rem;
  background: linear-gradient(180deg,
    rgba(251, 252, 248, 0)    0%,
    rgba(251, 252, 248, .34) 40%,
    rgba(251, 252, 248, .76) 72%,
    #fbfcf8                 100%);
  pointer-events: none;
  z-index: 1;
}
/* Static spine fallback - replaced by the SVG root once JS boots */
.root-timeline::before {
  content: "";
  position: absolute;
  left: var(--edu-corridor);
  top: 0;
  bottom: 2.5rem;
  width: 4px;
  margin-left: -2px;
  background-color: #7a5c43;
  border-radius: 2px;
}
.root-timeline-js::before { display: none; }
/* Soil detail drawn by education.js. */
.root-timeline-soil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.root-timeline-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}
.root-glow-layer path { transition: none; }
.root-branch {
  transition: stroke-dashoffset .5s cubic-bezier(.22, 1, .36, 1);
}
.root-branch-hair {
  opacity: 0;
  transform: scale(.4);
  transform-box: fill-box;
  transform-origin: center;
  transition: stroke-dashoffset .4s ease, opacity .5s ease, transform .5s cubic-bezier(.22, 1, .36, 1);
}
.root-branch-hair.is-grown {
  opacity: .8;
  transform: scale(1);
}
/* Tip glow toggled by .is-active. */
.root-tip-glow {
  fill: #bdeec4;
  filter: drop-shadow(0 0 5px rgba(69, 176, 108, .85));
  opacity: 0;
  transition: opacity .35s ease;
}
.root-tip-glow.is-active {
  opacity: .85;
  animation: edu-tip-pulse 1.7s ease-in-out infinite;
}
@keyframes edu-tip-pulse {
  0%, 100% { opacity: .7; }
  50% { opacity: 1; }
}
.root-timeline-list {
  position: relative;
  z-index: 2;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Each entry: card | 72px root corridor | card (alternating) */
.root-timeline-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
  column-gap: .5rem;
  margin-bottom: 3rem;
}
.root-timeline-item:last-child { margin-bottom: 0; }
.root-timeline-item-left .root-timeline-card {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
}
.root-timeline-item-right .root-timeline-card {
  grid-column: 3;
  grid-row: 1;
  justify-self: start;
}
.root-timeline-node {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  align-self: start;
  margin-top: 1.4rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #fff;
  border: 3px solid #7a5c43;
  transition: background-color .35s cubic-bezier(.22, 1, .36, 1),
              border-color .35s cubic-bezier(.22, 1, .36, 1),
              transform .35s cubic-bezier(.22, 1, .36, 1);
}
/* Node buds green when the root arrives. */
.root-timeline-node.is-passed {
  background-color: #45b06c;
  border-color: #2f7d4f;
  transform: scale(1.15);
}
.root-timeline-node.is-passed::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid #45b06c;
  animation: edu-node-bloom .7s cubic-bezier(.22, 1, .36, 1);
}
@keyframes edu-node-bloom {
  0% { opacity: .65; transform: scale(.6); }
  100% { opacity: 0; transform: scale(2.1); }
}

/* Timeline card. */
.root-timeline-card {
  width: 100%;
  max-width: 460px;
  background-color: #fbf8f1;
  border: 3px solid #6b4a2c;       /* the root's brown (its gradient starts here in education.js) */
  border-radius: .75rem;
  overflow: hidden;
  box-shadow: 0 .1rem .2rem rgba(47, 70, 30, .06),
              0 .4rem 1.2rem -.8rem rgba(47, 70, 30, .16);
  transition: transform .2s ease, box-shadow .2s ease;
}
.root-timeline-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
}
.root-timeline-card-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.root-timeline-card-body {
  padding: 1rem 1.25rem 1.25rem;
}
.root-timeline-date {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #2f7d4f;
  background-color: #eaf6ee;
  padding: .2rem .65rem;
  border-radius: 999px;
  margin-bottom: .55rem;
}
.root-timeline-title {
  font-weight: 600;
  font-size: 1.15rem;
  color: #212529;
  overflow-wrap: break-word;
  margin-bottom: .4rem;
}
.root-timeline-summary {
  font-size: .9rem;
  color: #6c757d;
  line-height: 1.45;
  margin-bottom: .85rem;
  text-align: justify;
  hyphens: auto;
}
.root-timeline-btn {
  font-size: .85rem;
  font-weight: 600;
  color: #2f7d4f;
  background-color: #fff;
  border: 1px solid #45b06c;
  border-radius: .5rem;
  padding: .35rem .9rem;
  transition: background-color .2s ease, color .2s ease;
}
.root-timeline-btn:hover,
.root-timeline-btn:focus-visible {
  background-color: #45b06c;
  color: #fff;
  border-color: #45b06c;
}
/* Activity popup styled like its card. */
.activity-modal .modal-content {
  background-color: #fbf8f1;
  border: 3px solid #6b4a2c;
  border-radius: .75rem;
}
.activity-modal .modal-header {
  align-items: flex-start;
  border-bottom-color: #eaf6ee;
  padding: 1.1rem 1.5rem .9rem;
}
.activity-modal .modal-title { margin-bottom: 0; font-size: 1.35rem; }
.activity-modal .modal-body { padding: 1.25rem 1.5rem 1.5rem; }
.activity-modal-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: .5rem;
  margin-bottom: 1.1rem;
}
/* credit line under a timeline photo that isn't ours (photo_credit macro) */
.root-timeline-credit {
  margin: 0;
  padding: .35rem 1.25rem 0;
  font-size: .68rem;
  line-height: 1.4;
  text-align: left;
  color: #6c757d;
}
.activity-modal-img + .root-timeline-credit { margin: -.8rem 0 1rem; padding: 0; }
/* URV event photo: keep its bottom in the 16:9 crop */
.root-timeline-card-img[src$="/urv.avif"],
.activity-modal-img[src$="/urv.avif"] { object-position: center bottom; }
.root-timeline-details {
  font-size: .95rem;
  color: #495057;
  line-height: 1.5;
  text-align: justify;
  hyphens: auto;
}
/* Keep small labels left-aligned. */
.root-timeline-details h4 { text-align: left; hyphens: none; }
.root-timeline-details h4 {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #2f7d4f;
  margin: .75rem 0 .25rem;
}
.root-timeline-details p { margin-bottom: 0; }
.root-timeline-details p + p { margin-top: .6rem; }
.root-timeline-details p + h4 { margin-top: .9rem; }

/* Card reveal once the root arrives. */
.root-timeline-js .root-timeline-card {
  opacity: 0;
  transform: translateY(20px) scale(.96);
  transition: opacity .65s cubic-bezier(.22, 1, .36, 1),
              transform .65s cubic-bezier(.22, 1, .36, 1),
              box-shadow .2s ease;
}
.root-timeline-js .root-timeline-card.is-visible {
  opacity: 1;
  transform: none;
}
.root-timeline-js .root-timeline-card.is-visible:hover { transform: translateY(-3px); }

/* Single column on tablets/phones: root corridor on the left */
@media (max-width: 991.98px) {
  /* Narrow screens: move the corridor to the left edge. */
  .edu-field { --edu-corridor: calc(.75rem + 24px); }
  .root-timeline-vine { --vine-h: 115px; }
  .root-timeline-item {
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: .75rem;
  }
  .root-timeline-node { grid-column: 1; }
  .root-timeline-item-left .root-timeline-card,
  .root-timeline-item-right .root-timeline-card {
    grid-column: 2;
    grid-row: 1;
    justify-self: stretch;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  /* Reduced motion: still vine row. */
  .vine-row-light,
  .vine-fall { display: none; }
  .root-tip-glow,
  .root-tip-glow.is-active,
  .root-timeline-node::after {
    animation: none;
  }
  .root-tip-glow,
  .root-tip-glow.is-active {
    display: none;
  }
  .root-timeline-node,
  .root-timeline-card,
  .root-branch,
  .root-branch-hair,
  .root-timeline-js .root-timeline-card {
    transition: none;
  }
  .root-timeline-js .root-timeline-card {
    opacity: 1;
    transform: none;
  }
}

/* BOOKLET */
/* Spacing below the navbar. */
.booklet-section { padding-top: 1.5rem; margin-bottom: 3.5rem; }
.booklet {
  /* Booklet palette. */
  --bk-page: #fbf6ea;                  /* cream page */
  --bk-page-2: #f4ecd9;                /* ...its lower gradient stop */
  --bk-dot: rgba(150, 115, 70, .2);     /* dotted grid */
  --bk-ink: #46392c;                   /* body text, 10:1 */
  --bk-grape: #5e3a86;                 /* titles, 7.6:1 */
  --bk-mauve: #86497a;                 /* page number + counter, 5.6:1 */
  --bk-leaf: #35612a;                  /* tag text on --bk-leaf-soft, 5.9:1 */
  --bk-leaf-soft: #dcefc9;
  --bk-board: #8b5e3c;                 /* cover + end page board, 5.5:1 */
  --bk-board-2: #6b4329;               /* ...its darker gradient stop */

  /* Puffy sticker shapes. */
  --bk-sticker-leaf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M9,39C7,23 19,8 40,8C41,28 28,41 9,39Z' fill='%23a8d68c' stroke='%23fff' stroke-width='6' stroke-linejoin='round' paint-order='stroke'/%3E%3Cpath d='M11,37C19,27 27,19 36,12' fill='none' stroke='%236aa24f' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  --bk-sticker-drop: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24,5C24,5 38,21 38,30A14,14 0 0 1 10,30C10,21 24,5 24,5Z' fill='%238fd0f0' stroke='%23fff' stroke-width='6' stroke-linejoin='round' paint-order='stroke'/%3E%3Cpath d='M16.5,30.5A7.5,7.5 0 0 0 21,37' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
  --bk-sticker-grapes: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cg fill='%23fff'%3E%3Ccircle cx='12' cy='17' r='9.2'/%3E%3Ccircle cx='24' cy='17' r='9.2'/%3E%3Ccircle cx='36' cy='17' r='9.2'/%3E%3Ccircle cx='18' cy='27.4' r='9.2'/%3E%3Ccircle cx='30' cy='27.4' r='9.2'/%3E%3Ccircle cx='24' cy='37.8' r='9.2'/%3E%3C/g%3E%3Cpath d='M24,10C27,3 35,2 39,5C35,10 29,11 24,10Z' fill='%238cc26b' stroke='%23fff' stroke-width='4' stroke-linejoin='round' paint-order='stroke'/%3E%3Cg fill='%23a98bd6' stroke='%238a6bbd' stroke-width='1.2'%3E%3Ccircle cx='12' cy='17' r='6.2'/%3E%3Ccircle cx='24' cy='17' r='6.2'/%3E%3Ccircle cx='36' cy='17' r='6.2'/%3E%3Ccircle cx='18' cy='27.4' r='6.2'/%3E%3Ccircle cx='30' cy='27.4' r='6.2'/%3E%3Ccircle cx='24' cy='37.8' r='6.2'/%3E%3C/g%3E%3Cg fill='%23fff' fill-opacity='.7'%3E%3Ccircle cx='9.8' cy='14.8' r='1.5'/%3E%3Ccircle cx='21.8' cy='14.8' r='1.5'/%3E%3Ccircle cx='33.8' cy='14.8' r='1.5'/%3E%3Ccircle cx='15.8' cy='25.2' r='1.5'/%3E%3Ccircle cx='27.8' cy='25.2' r='1.5'/%3E%3Ccircle cx='21.8' cy='35.6' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
  --bk-sticker-sparkle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24,4C26,17 31,22 44,24C31,26 26,31 24,44C22,31 17,26 4,24C17,22 22,17 24,4Z' fill='%23f7d56e' stroke='%23fff' stroke-width='5' stroke-linejoin='round' paint-order='stroke'/%3E%3Cpath d='M39,5C39.6,8.4 40.6,9.4 44,10C40.6,10.6 39.6,11.6 39,15C38.4,11.6 37.4,10.6 34,10C37.4,9.4 38.4,8.4 39,5Z' fill='%23f7d56e' stroke='%23fff' stroke-width='3' stroke-linejoin='round' paint-order='stroke'/%3E%3C/svg%3E");

  --bk-squiggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='10'%3E%3Cpath d='M3,5Q13,0 23,5T43,5T63,5T83,5T103,5T123,5T143,5T157,5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");

  max-width: 640px;
  margin: 0 auto;
}

/* Section colour themes. */
.bk-theme-green {
  --sec: #5f9a45; --sec-soft: #dcefc9; --sec-ink: #35612a;
  --sec-board: #4a8236; --sec-board-2: #335c25;
  --bk-page: #f8f8e7; --bk-page-2: #eef0d8;
}
.bk-theme-blue {
  --sec: #4f8db0; --sec-soft: #d6ecf7; --sec-ink: #23587a;
  --sec-board: #3b7698; --sec-board-2: #2a5571;
  --bk-page: #f2f6f4; --bk-page-2: #e2ecec;
}
.bk-theme-rose {
  --sec: #c25a7c; --sec-soft: #f8dbe5; --sec-ink: #8a2f50;
  --sec-board: #a84a6b; --sec-board-2: #833650;
  --bk-page: #fcf3f0; --bk-page-2: #f5e4df;
}
/* tip pages: a band of the section colour along the outer edge */
.booklet-leaf[class*="bk-theme-"]:not(.booklet-divider) .booklet-leaf-face {
  border-right: 7px solid var(--sec);
}
/* index entries: a matching stripe on the left */
.booklet-toc li[class*="bk-theme-"] a { box-shadow: inset 5px 0 0 var(--sec); }

/* Section covers: a board in the section colour */
.booklet-divider .booklet-leaf-face {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.4rem 1.6rem;
  color: #fff;
  border-color: var(--sec-board-2);
  background-color: var(--sec-board);
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, .1) 2px, transparent 2.6px),
    linear-gradient(160deg, var(--sec-board), var(--sec-board-2));
  background-size: 26px 26px, auto;
  background-position: 13px 13px, 0 0;
}
.booklet-divider-kicker {
  font-family: var(--font-booklet);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--sec-ink);
  background: var(--sec-soft);
  padding: .3rem 1rem;
  border-radius: 999px;
  box-shadow: 0 0 0 3px #fff;
  transform: rotate(-2deg);
}
/* the drawing sits on a round cream sticker with a white die-cut edge */
.booklet-divider-badge {
  display: grid;
  place-items: center;
  width: 10rem;
  height: 10rem;
  margin: 1.6rem 0 1.2rem;
  border-radius: 50%;
  background: #fffaf3;
  box-shadow: 0 0 0 6px #fff, 0 .7rem 1.4rem rgba(40, 22, 10, .3);
  transform: rotate(-3deg);
}
.booklet-divider-badge .bk-art { width: 8.6rem; margin: 0; }
.booklet-divider-title {
  font-family: var(--font-booklet);
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
  max-width: 24rem;
  margin: 0 0 .5rem;
}
.booklet-divider-range {
  font-family: var(--font-booklet);
  font-weight: 600;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, .9);
  margin: 0;
}

/* Fallback (no JS): plain stacked cards */
.booklet-leaf { margin-bottom: 1.25rem; }
.booklet-leaf-back { display: none; }   /* decorative page-back, JS only */
.booklet-controls { display: none; }    /* buttons do nothing without JS */

/* Dotted journal page. */
.booklet-leaf-face {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.1rem 2.1rem 0 2.3rem;
  color: var(--bk-ink);
  background-color: var(--bk-page);
  background-image:
    radial-gradient(circle, var(--bk-dot) 1.3px, transparent 1.8px),
    linear-gradient(180deg, var(--bk-page), var(--bk-page-2));
  background-size: 22px 22px, auto;
  background-position: 11px 11px, 0 0;
  border: 1px solid #eadcc3;
  border-radius: 1.1rem;
  box-shadow: 0 .45rem 1rem rgba(90, 60, 30, .14);
}

.booklet-leaf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1rem;
}
/* category tag: a puffy leaf-green sticker label with a white die-cut edge */
.booklet-tagpill {
  display: inline-block;
  font-family: var(--font-booklet);
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .02em;
  color: var(--sec-ink, var(--bk-leaf));
  background-color: var(--sec-soft, var(--bk-leaf-soft));
  padding: .25rem .85rem;
  border-radius: 999px;
  box-shadow: 0 0 0 3px #fff, 0 3px 6px rgba(90, 60, 30, .18);
  transform: rotate(-2deg);
}
.booklet-pageno {
  font-family: var(--font-booklet);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--bk-mauve);
}
.booklet-tip-title {
  font-family: var(--font-booklet);
  font-size: clamp(1.6rem, 4.5vw, 2.2rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--bk-grape);
  margin: .2rem 0 1rem;
}
/* Squiggle under the tip title. */
.booklet-tip-title::after {
  content: "";
  display: block;
  width: 10rem;
  max-width: 60%;
  height: 10px;
  margin-top: .45rem;
  background-color: var(--sec, #8cc26b);
  -webkit-mask: no-repeat left center/contain var(--bk-squiggle);
  mask: no-repeat left center/contain var(--bk-squiggle);
}
/* Tip body text. */
.booklet-tip-body {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--bk-ink);
  text-align: left;
  hyphens: manual;
  margin: 0;
}

/* Centre the tip content. */
.booklet-tip-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.booklet-tip-main .booklet-tip-title::after { margin-left: auto; margin-right: auto; }
.booklet-tip-main .booklet-tip-body {
  max-width: 32rem;
  font-size: 1.2rem;
  line-height: 1.7;
  text-align: center;
}

/* Foot row: sticker and peeking grape. */
.booklet-leaf-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1.2rem;
}
.booklet-sticker {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.1rem;
  background-image: var(--bk-sticker-leaf);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 2px 2px rgba(80, 52, 28, .22));
  transform: rotate(-10deg);
}
/* a different sticker page to page (the cover is child 1, so tip 1 is child 2) */
.booklet-leaf:nth-child(4n+3) .booklet-sticker { background-image: var(--bk-sticker-drop); transform: rotate(8deg); }
.booklet-leaf:nth-child(4n+4) .booklet-sticker { background-image: var(--bk-sticker-grapes); transform: rotate(-6deg); }
.booklet-leaf:nth-child(4n+5) .booklet-sticker { background-image: var(--bk-sticker-sparkle); transform: rotate(12deg); }

/* Grape mascot. */
.booklet-grape {
  display: block;
  height: auto;
  overflow: hidden;
}
.booklet-grape--peek {
  width: 6.2rem;
  margin-right: -.4rem;
}
/* on the purple board the grape gets a white die-cut edge, like the stickers */
.booklet-grape--sit,
.booklet-grape--wave {
  filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff)
          drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff)
          drop-shadow(0 4px 6px rgba(40, 22, 10, .3));
}
/* Grape ducks down until its page has landed. */
@media (prefers-reduced-motion: no-preference) {
  .booklet-js .booklet-leaf:not(.is-current) .booklet-grape--peek .booklet-grape-body {
    transform: translateY(108px);
  }
  .booklet-js .booklet-leaf.is-current .booklet-grape--peek .booklet-grape-body {
    transition: transform .45s cubic-bezier(.34, 1.56, .64, 1) .7s;
  }
}

/* Front and back covers. */
.booklet-cover .booklet-leaf-face,
.booklet-end .booklet-leaf-face {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.6rem 1.6rem 2.2rem;
  color: #fff;
  border-color: #55341d;
  background-color: var(--bk-board);
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, .09) 2px, transparent 2.6px),
    linear-gradient(160deg, var(--bk-board), var(--bk-board-2));
  background-size: 26px 26px, auto;
  background-position: 13px 13px, 0 0;
}
.booklet-cover .booklet-leaf-face::before,
.booklet-cover .booklet-leaf-face::after,
.booklet-end .booklet-leaf-face::before,
.booklet-end .booklet-leaf-face::after {
  content: "";
  position: absolute;
  top: 1.1rem;
  width: 3.4rem;
  height: 3.4rem;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 2px 3px rgba(40, 22, 10, .3));
  pointer-events: none;
}
.booklet-cover .booklet-leaf-face::before,
.booklet-end .booklet-leaf-face::before { left: 1.2rem; transform: rotate(-14deg); }
.booklet-cover .booklet-leaf-face::after,
.booklet-end .booklet-leaf-face::after { right: 1.2rem; transform: rotate(10deg); }
.booklet-cover .booklet-leaf-face::before { background-image: var(--bk-sticker-leaf); }
.booklet-cover .booklet-leaf-face::after { background-image: var(--bk-sticker-sparkle); }
.booklet-end .booklet-leaf-face::before { background-image: var(--bk-sticker-drop); }
.booklet-end .booklet-leaf-face::after { background-image: var(--bk-sticker-grapes); }

.booklet-cover-kicker {
  font-family: var(--font-booklet);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: #f6e8d3;
}
/* the title sits on a cream sticker label with a thick white die-cut edge */
.booklet-cover-title {
  font-family: var(--font-booklet);
  font-size: clamp(1.9rem, 6.5vw, 2.7rem);
  font-weight: 600;
  line-height: 1.08;
  color: var(--bk-grape);
  margin: 1.1rem 0 0;
  padding: .8rem 1.5rem;
  background: #fffaf3;
  border-radius: 1.1rem;
  box-shadow: 0 0 0 5px #fff, 0 .7rem 1.4rem rgba(40, 22, 10, .35);
  transform: rotate(-2deg);
}
/* the grape stands in front of the label's bottom edge */
.booklet-grape--sit {
  position: relative;
  width: 7rem;
  margin: -1.4rem 0 .5rem;
  transform: rotate(5deg);
}
.booklet-grape--wave {
  width: 7.5rem;
  margin: 0 0 .6rem;
}
.booklet-cover-sub,
.booklet-end-sub {
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .92);
  text-align: center;
  max-width: 22rem;
  margin: 0;
}
.booklet-end-title {
  font-family: var(--font-booklet);
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  font-weight: 600;
  color: #fff7ec;
  margin: 0 0 .8rem;
}

/* Index page: a numbered list of sticker-label links */
.booklet-toc {
  list-style: none;
  margin: .6rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}
.booklet-toc a {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .55rem .8rem;
  border-radius: .9rem;
  font-family: var(--font-booklet);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--bk-grape);
  text-decoration: none;
  background-color: rgba(255, 255, 255, .55);
  transition: background-color .2s ease, transform .2s ease;
}
.booklet-toc a:hover,
.booklet-toc a:focus-visible {
  background-color: #fff;
  transform: translateX(4px);
}
.booklet-toc a:focus-visible {
  outline: 3px solid #c9a46a;
  outline-offset: 2px;
}
.booklet-toc-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: var(--sec-ink, var(--bk-leaf));
  background-color: var(--sec-soft, var(--bk-leaf-soft));
  box-shadow: 0 0 0 3px #fff;
}
.booklet-toc-name { flex: 1; line-height: 1.3; text-align: left; }
.booklet-toc-pages {
  flex: none;
  font-size: .85rem;
  color: var(--bk-mauve);
}

/* Introduction + Special thanks: longer text, a touch smaller */
.booklet-prose .booklet-tip-body {
  font-size: 1.08rem;
  line-height: 1.65;
  margin-bottom: .8rem;
}
.booklet-signature {
  font-family: var(--font-booklet);
  font-weight: 600;
  color: var(--bk-grape);
  text-align: right;
  margin: .4rem 0 1.6rem;
}

/* Tip drawings with one-off animations. */
.bk-art {
  display: block;
  width: 10rem;
  height: auto;
  margin: 0 0 1rem;
  overflow: visible;
}
/* Animated parts pivot on their own box. */
.bk-dip, .bk-twinkle, .bk-arc, .bk-lid, .bk-rise, .bk-pencil, .bk-move,
.bk-flicker, .bk-pop, .bk-turn, .bk-burst, .bk-poke, .bk-mercury, .bk-drop, .bk-fill,
.bk-cell, .bk-touch, .bk-speck, .bk-level, .bk-slide-l, .bk-slide-r, .bk-spin, .bk-heat,
.bk-leafl, .bk-leafr, .bk-heart, .bk-press, .bk-drip, .bk-wiggle, .bk-bob,
.bk-stack { transform-box: fill-box; }
@media (prefers-reduced-motion: no-preference) {
  .booklet-js .booklet-leaf.is-current .bk-art {
    --bk-delay: .75s;   /* wait for the page turn to land */
  }
  .is-current .bk-draw,
  .is-current .bk-write,
  .is-current .bk-streak,
  .is-current .bk-ring,
  .is-current .bk-grow { stroke-dasharray: 1; }

  .booklet-js .is-current .bk-draw {
    animation: bk-draw .35s ease-out calc(var(--bk-delay) + var(--i) * .35s) both;
  }
  .booklet-js .is-current .bk-dip {
    transform-origin: 50% 100%;
    animation: bk-dip .9s cubic-bezier(.34, 1.4, .64, 1) var(--bk-delay) both;
  }
  .booklet-js .is-current .bk-twinkle,
  .booklet-js .is-current .bk-arc {
    transform-origin: center;
    animation: bk-twinkle .6s ease-out calc(var(--bk-delay) + .7s) both;
  }
  .booklet-js .is-current .bk-lid {
    transform-origin: 0% 100%;
    animation: bk-lid 1.2s ease-in-out var(--bk-delay) both;
  }
  .booklet-js .is-current .bk-rise {
    animation: bk-rise 1.2s ease-in-out var(--bk-delay) both;
  }
  .booklet-js .is-current .bk-write {
    animation: bk-draw 1.1s linear var(--bk-delay) both;
  }
  .booklet-js .is-current .bk-pencil {
    animation: bk-pencil 1.1s linear var(--bk-delay) both;
  }
  .booklet-js .is-current .bk-move {
    animation: bk-move .45s cubic-bezier(.34, 1.3, .64, 1) calc(var(--bk-delay) + var(--i) * .4s) both;
  }
  .booklet-js .is-current .bk-flicker {
    transform-origin: 50% 100%;
    animation: bk-flicker .5s ease-in-out var(--bk-delay) 4 alternate;
  }
  .booklet-js .is-current .bk-streak {
    animation: bk-draw 1.2s ease-in-out var(--bk-delay) both;
  }
  .booklet-js .is-current .bk-pop {
    transform-origin: center;
    animation: bk-pop .35s cubic-bezier(.34, 1.6, .64, 1) calc(var(--bk-delay) + 1.1s + var(--i) * .15s) both;
  }
  .booklet-js .is-current .bk-turn {
    transform-origin: center;
    animation: bk-turn 1s cubic-bezier(.65, 0, .35, 1) var(--bk-delay) both;
  }
  .booklet-js .is-current .bk-burst {
    transform-origin: center;
    animation: bk-burst .3s ease-in calc(var(--bk-delay) + .3s + var(--i) * .3s) both;
  }
  .booklet-js .is-current .bk-poke {
    animation: bk-poke 1.9s ease-in-out var(--bk-delay) both;
  }
  .booklet-js .is-current .bk-drop {
    animation: bk-drop .45s ease-in calc(var(--bk-delay) + var(--i) * .3s) both;
  }
  .booklet-js .is-current .bk-fill {
    transform-origin: 50% 100%;
    animation: bk-grow-y .35s ease-out calc(var(--bk-delay) + .3s + var(--i) * .3s) both;
  }
  .booklet-js .is-current .bk-cell {
    transform-origin: center;
    animation: bk-pop .3s cubic-bezier(.34, 1.6, .64, 1) calc(var(--bk-delay) + var(--i) * .05s) both;
  }
  .booklet-js .is-current .bk-ring {
    animation: bk-draw .5s ease-out calc(var(--bk-delay) + .85s) both;
  }
  .booklet-js .is-current .bk-touch {
    animation: bk-touch 1.3s ease-in-out var(--bk-delay) both;
  }
  .booklet-js .is-current .bk-speck {
    animation: bk-speck 1.3s linear var(--bk-delay) both;
  }
  .booklet-js .is-current .bk-level {
    transform-origin: 50% 100%;
    animation: bk-grow-y 1s ease-out calc(var(--bk-delay) + .7s) both;
  }
  .booklet-js .is-current .bk-slide-l {
    animation: bk-slide-l .6s cubic-bezier(.34, 1.3, .64, 1) var(--bk-delay) both;
  }
  .booklet-js .is-current .bk-slide-r {
    animation: bk-slide-r .6s cubic-bezier(.34, 1.3, .64, 1) calc(var(--bk-delay) + .25s) both;
  }
  .booklet-js .is-current .bk-spin {
    transform-origin: center;
    animation: bk-spin .9s cubic-bezier(.34, 1.3, .64, 1) var(--bk-delay) both;
  }
  .booklet-js .is-current .bk-heat {
    animation: bk-heat .8s ease-out calc(var(--bk-delay) + var(--i) * .25s) both;
  }
  .booklet-js .is-current .bk-grow {
    animation: bk-draw .7s ease-out var(--bk-delay) both;
  }
  .booklet-js .is-current .bk-leafl,
  .booklet-js .is-current .bk-leafr {
    animation: bk-pop .4s cubic-bezier(.34, 1.6, .64, 1) calc(var(--bk-delay) + .55s) both;
  }
  .booklet-js .is-current .bk-leafl { transform-origin: 100% 100%; }
  .booklet-js .is-current .bk-leafr { transform-origin: 0% 100%; animation-delay: calc(var(--bk-delay) + .75s); }
  .booklet-js .is-current .bk-heart {
    transform-origin: center;
    animation: bk-pop .45s cubic-bezier(.34, 1.8, .64, 1) calc(var(--bk-delay) + 1.1s) both;
  }
  .booklet-js .is-current .bk-press {
    animation: bk-press .8s ease-in-out var(--bk-delay) 2 both;
  }
  .booklet-js .is-current .bk-drip {
    transform-origin: 50% 0%;
    animation: bk-pop .4s cubic-bezier(.34, 1.6, .64, 1) calc(var(--bk-delay) + .35s) both;
  }
  .booklet-js .is-current .bk-wiggle {
    transform-origin: 0% 50%;
    animation: bk-wiggle .35s ease-in-out var(--bk-delay) 6 alternate;
  }
  .booklet-js .is-current .bk-bob {
    animation: bk-bob .7s ease-in-out var(--bk-delay) 3 alternate;
  }
  .booklet-js .is-current .bk-stack {
    animation: bk-land .45s cubic-bezier(.34, 1.3, .64, 1) calc(var(--bk-delay) + var(--i) * .25s) both;
  }
  .booklet-js .is-current .bk-mercury {
    transform-origin: 50% 100%;
    animation: bk-cool 1.4s ease-out var(--bk-delay) both;
  }
}
@keyframes bk-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes bk-dip { from { transform: translateY(-16px); } to { transform: none; } }
@keyframes bk-twinkle {
  from { opacity: 0; transform: scale(.4); }
  to { opacity: 1; transform: none; }
}
@keyframes bk-lid {
  0%, 100% { transform: none; }
  30%, 70% { transform: translateY(-4px) rotate(-18deg); }
}
@keyframes bk-rise {
  0%, 100% { transform: none; }
  35%, 70% { transform: translateY(-14px) rotate(-6deg); }
}
@keyframes bk-pencil {
  from { transform: translate(-24px, 0); }
  to { transform: none; }
}
@keyframes bk-move { from { transform: translateY(-26px); } to { transform: none; } }
@keyframes bk-flicker {
  from { transform: scale(1, 1); }
  to { transform: scale(.9, 1.12); }
}
@keyframes bk-pop { from { transform: scale(0); } to { transform: none; } }
@keyframes bk-turn { from { transform: rotate(-180deg); } to { transform: none; } }
@keyframes bk-burst {
  0% { opacity: 1; transform: none; }
  60% { opacity: 1; transform: scale(1.35); }
  100% { opacity: 0; transform: scale(1.6); }
}
/* the tip visits each bubble just as it bursts (.bk-burst delays) */
@keyframes bk-poke {
  0%, 100% { transform: none; }
  21% { transform: translate(-52px, 12px); }
  37% { transform: translate(-24px, 8px); }
  53% { transform: translate(-38px, 32px); }
  68% { transform: translate(-16px, 34px); }
  84% { transform: translate(-58px, 36px); }
}
@keyframes bk-drop {
  0% { opacity: 0; transform: translateY(-16px); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}
@keyframes bk-grow-y { from { transform: scaleY(0); } to { transform: none; } }
@keyframes bk-touch {
  0% { transform: translateY(-14px); }
  45% { transform: translateY(18px); }
  100% { transform: none; }
}
@keyframes bk-speck { 0%, 44% { opacity: 0; } 46%, 100% { opacity: 1; } }
@keyframes bk-slide-l { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: none; } }
@keyframes bk-slide-r { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes bk-spin {
  from { opacity: 0; transform: rotate(-120deg) scale(.3); }
  to { opacity: 1; transform: none; }
}
@keyframes bk-heat { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes bk-press { 0%, 100% { transform: none; } 45% { transform: translateY(6px); } }
@keyframes bk-wiggle { from { transform: scaleY(1); } to { transform: scaleY(-.6); } }
@keyframes bk-bob { from { transform: translateY(0); } to { transform: translateY(-4px); } }
@keyframes bk-land { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
@keyframes bk-cool { from { transform: scaleY(1.8); } to { transform: none; } }

/* Enhanced flip view (added by booklet.js) */
.booklet-js .booklet-stage {
  position: relative;
  perspective: 1600px;
  /* fills the window below the navbar, leaving room for the buttons */
  height: clamp(440px, calc(100vh - 175px), 640px);
}
/* faux stack of page edges peeking on the right, to imply thickness */
.booklet-js .booklet-stage::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 10px;
  bottom: 10px;
  right: -7px;
  width: 14px;
  border-radius: 0 1rem 1rem 0;
  background: linear-gradient(90deg, #f4ecda, #e3d4b6);
  box-shadow: 3px 0 0 -1px #ece1c9, 6px 0 0 -2px #dccaa6;
}
.booklet-js .booklet-leaf {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.45, .05, .25, 1);
  will-change: transform;
}
/* Same transform list in every state so pages flip cleanly. */
.booklet-js .booklet-leaf { transform: rotateY(0deg) translateY(0) rotate(0deg); }
.booklet-js .booklet-leaf.is-flipped { transform: rotateY(-180deg) translateY(0) rotate(0deg); }
.booklet-js .booklet-leaf.is-buried { visibility: hidden; }

/* Two faces per leaf; squarer at the spine (left), rounded on the outer edge */
.booklet-js .booklet-leaf-face,
.booklet-js .booklet-leaf-back {
  position: absolute;
  inset: 0;
  border-radius: .35rem 1.2rem 1.2rem .35rem;
  overflow-y: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.booklet-js .booklet-leaf-face {
  justify-content: flex-start;
  box-shadow: 0 .6rem 1.4rem rgba(80, 52, 28, .16),
              inset 14px 0 22px -18px rgba(80, 52, 28, .35);
}
.booklet-js .booklet-cover .booklet-leaf-face,
.booklet-js .booklet-end .booklet-leaf-face,
.booklet-js .booklet-divider .booklet-leaf-face { justify-content: center; }
/* the paler dotted back of a page (seen once a leaf is turned) */
.booklet-js .booklet-leaf-back {
  display: block;
  transform: rotateY(180deg);
  background-color: #f4ecdb;
  background-image:
    radial-gradient(circle, rgba(150, 115, 70, .14) 1.3px, transparent 1.8px),
    linear-gradient(180deg, #f4ecdb, #ece1c9);
  background-size: 22px 22px, auto;
  background-position: 11px 11px, 0 0;
  border: 1px solid #e4d5b9;
  box-shadow: 0 .6rem 1.4rem rgba(80, 52, 28, .16),
              inset -14px 0 22px -18px rgba(80, 52, 28, .3);
}

/* Compact layout for pages that overflow. */
.booklet-leaf.is-tight .booklet-leaf-face { padding-top: 1.3rem; }
.booklet-leaf.is-tight .booklet-leaf-head { margin-bottom: .3rem; }
.booklet-leaf.is-tight .bk-art { width: 6.5rem; margin-bottom: .4rem; }
.booklet-leaf.is-tight .booklet-tip-title { font-size: 1.5rem; margin-bottom: .6rem; }
.booklet-leaf.is-tight .booklet-tip-main .booklet-tip-body,
.booklet-leaf.is-tight.booklet-prose .booklet-tip-body { font-size: 1rem; line-height: 1.55; }
.booklet-leaf.is-tight .booklet-leaf-foot { padding-top: .3rem; }
.booklet-leaf.is-tight .booklet-grape--peek { width: 4.6rem; }
.booklet-leaf.is-tight .booklet-sticker { width: 2.3rem; height: 2.3rem; margin-bottom: .7rem; }

/* Hover lift on the current page. */
@media (hover: hover) {
  .booklet-js .booklet-stage:hover .booklet-leaf:not(.is-flipped) {
    transform: rotateY(0deg) translateY(-5px) rotate(-.35deg);
  }
  .booklet-js .booklet-stage:hover .booklet-leaf:not(.is-flipped) .booklet-leaf-face {
    box-shadow: 0 1rem 2rem rgba(80, 52, 28, .22),
                inset 14px 0 22px -18px rgba(80, 52, 28, .35);
  }
}

/* Controls: puffy pill buttons */
.booklet-js .booklet-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.6rem;
}
.booklet-btn {
  font-family: var(--font-booklet);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--bk-grape);
  background-color: var(--bk-page);
  border: 2px solid #dcc6a2;
  border-radius: 999px;
  padding: .4rem 1.2rem;
  box-shadow: 0 3px 0 #dcc6a2;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease,
              box-shadow .2s ease, transform .15s ease;
}
.booklet-btn:hover:not(:disabled),
.booklet-btn:focus-visible:not(:disabled) {
  background-color: var(--bk-board);
  color: #fff;
  border-color: var(--bk-board);
  box-shadow: 0 3px 0 var(--bk-board-2);
  transform: translateY(-1px);
}
.booklet-btn:active:not(:disabled) {
  box-shadow: 0 1px 0 var(--bk-board-2);
  transform: translateY(1px);
}
.booklet-btn:focus-visible {
  outline: 3px solid #c9a46a;
  outline-offset: 3px;
}
.booklet-btn:disabled {
  opacity: .45;
  cursor: default;
}
.booklet-counter {
  min-width: 5.5rem;
  text-align: center;
  font-family: var(--font-booklet);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--bk-mauve);
}

@media (max-width: 575.98px) {
  .booklet-js .booklet-stage { height: clamp(460px, calc(100vh - 170px), 680px); }
  .booklet-prose .booklet-tip-body { font-size: .95rem; line-height: 1.6; }
  .booklet-leaf-face { padding: 1.7rem 1.3rem 0 1.4rem; }
  .booklet-tip-body { font-size: 1rem; }
  .booklet-sticker { width: 2.5rem; height: 2.5rem; margin-bottom: .9rem; }
  .booklet-grape--peek { width: 5rem; }
  .bk-art { width: 7rem; margin-bottom: .6rem; }
  .booklet-divider-badge { width: 8rem; height: 8rem; }
  .booklet-divider-badge .bk-art { width: 6.9rem; }
  .booklet-tip-main .booklet-tip-body { font-size: 1.05rem; line-height: 1.6; }
  .booklet-toc-pages { display: none; }
  .booklet-grape--sit { width: 5.6rem; }
  .booklet-grape--wave { width: 6rem; }
  .booklet-cover .booklet-leaf-face::before,
  .booklet-cover .booklet-leaf-face::after,
  .booklet-end .booklet-leaf-face::before,
  .booklet-end .booklet-leaf-face::after { top: .9rem; width: 2.7rem; height: 2.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .booklet-js .booklet-leaf { transition: none; }
  .booklet-js .booklet-stage:hover .booklet-leaf:not(.is-flipped) { transform: rotateY(0deg) translateY(0) rotate(0deg); }
  .booklet-btn { transition: none; }
}

/* Edition badge on both covers (lab-tips.html = wet, dry-tips.html = dry) */
.booklet-edition {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-booklet);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ed-ink);
  background-color: var(--ed-soft);
  padding: .3rem 1rem .3rem .75rem;
  border-radius: 999px;
  box-shadow: 0 0 0 3px #fff, 0 .35rem .8rem rgba(40, 22, 10, .3);
  transform: rotate(2deg);
  margin: 0 0 .9rem;
}
.booklet-edition svg { flex: none; width: 1.3rem; height: 1.3rem; }
.booklet-edition--wet { --ed-ink: #35612a; --ed-soft: #dcefc9; }   /* 5.9:1 */
.booklet-edition--dry { --ed-ink: #23587a; --ed-soft: #d6ecf7; }   /* 6.4:1 */

/* BOOKLET: DRY LAB EDITION */
.booklet--dry {
  --bk-board: #3e6178;                 /* cover + end board, white 6.8:1 */
  --bk-board-2: #2c475a;
  --bk-grid: rgba(79, 141, 176, .13);  /* graph-paper lines */
  --bk-sticker-drop: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Crect x='7' y='9' width='34' height='30' rx='7' fill='%238fd0f0' stroke='%23fff' stroke-width='6' paint-order='stroke'/%3E%3Cpath d='M19,18L13,24L19,30M29,18L35,24L29,30M26,15L22,33' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.booklet--dry .booklet-cover .booklet-leaf-face,
.booklet--dry .booklet-end .booklet-leaf-face { border-color: #243b4b; }
/* cover corner stickers: a terminal window (left) and a molecule (right) */
.booklet--dry .booklet-cover .booklet-leaf-face::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Crect x='6' y='9' width='36' height='30' rx='6' fill='%232f3b4a' stroke='%23fff' stroke-width='6' paint-order='stroke'/%3E%3Cg fill='%23f2668b'%3E%3Ccircle cx='12' cy='14.5' r='1.6'/%3E%3C/g%3E%3Ccircle cx='17' cy='14.5' r='1.6' fill='%23f7d56e'/%3E%3Ccircle cx='22' cy='14.5' r='1.6' fill='%238cc26b'/%3E%3Cpath d='M13,22L19,27L13,32' fill='none' stroke='%238cc26b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M23,32H33' stroke='%23f7d56e' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}
.booklet--dry .booklet-cover .booklet-leaf-face::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cg fill='%23fff'%3E%3Ccircle cx='24' cy='25' r='10.5'/%3E%3Ccircle cx='11' cy='13' r='8.5'/%3E%3Ccircle cx='37' cy='13' r='8.5'/%3E%3Ccircle cx='24' cy='39' r='9'/%3E%3C/g%3E%3Cpath d='M24,25L11,13M24,25L37,13M24,25V39' stroke='%23fff' stroke-width='9' stroke-linecap='round'/%3E%3Cpath d='M24,25L11,13M24,25L37,13M24,25V39' stroke='%235f6670' stroke-width='3' stroke-linecap='round'/%3E%3Ccircle cx='24' cy='25' r='7.5' fill='%23f2668b'/%3E%3Ccircle cx='11' cy='13' r='5.5' fill='%238fd0f0'/%3E%3Ccircle cx='37' cy='13' r='5.5' fill='%238fd0f0'/%3E%3Ccircle cx='24' cy='39' r='6' fill='%238cc26b'/%3E%3Cg fill='%23fff' fill-opacity='.7'%3E%3Ccircle cx='21.5' cy='22.5' r='2'/%3E%3Ccircle cx='9.3' cy='11.3' r='1.5'/%3E%3Ccircle cx='35.3' cy='11.3' r='1.5'/%3E%3Ccircle cx='22.3' cy='37.3' r='1.6'/%3E%3C/g%3E%3C/svg%3E");
}
.booklet--dry .booklet-leaf:not(.booklet-cover):not(.booklet-end):not(.booklet-divider) .booklet-leaf-face {
  background-image:
    linear-gradient(var(--bk-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bk-grid) 1px, transparent 1px),
    linear-gradient(180deg, var(--bk-page), var(--bk-page-2));
  background-size: 22px 22px, 22px 22px, auto;
  background-position: 10px 10px, 10px 10px, 0 0;
}
.bk-theme-violet {
  --sec: #8a6bbd; --sec-soft: #ece3f7; --sec-ink: #5e3a86;
  --sec-board: #7454a6; --sec-board-2: #563c80;
  --bk-page: #f8f5fb; --bk-page-2: #ede6f3;
}

/* the grape typing at its laptop (cover pose), white die-cut edge like 'sit' */
.booklet-grape--laptop {
  position: relative;
  width: 7.4rem;
  margin: -1.4rem 0 .6rem;
  filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff)
          drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff)
          drop-shadow(0 4px 6px rgba(40, 22, 10, .3));
}

/* a link button under a tip's text (the 'link' field in dry-tips.html) */
.booklet-tip-link {
  display: inline-block;
  margin-top: 1.1rem;
  font-family: var(--font-booklet);
  font-size: .95rem;
  font-weight: 600;
  color: var(--sec-ink, var(--bk-grape));
  background-color: var(--sec-soft, #fff);
  padding: .4rem 1.1rem;
  border-radius: 999px;
  box-shadow: 0 0 0 3px #fff, 0 3px 6px rgba(90, 60, 30, .18);
  text-decoration: none;
  transition: transform .2s ease;
}
.booklet-tip-link:hover,
.booklet-tip-link:focus-visible { transform: translateY(-2px); color: var(--sec-ink, var(--bk-grape)); }
.booklet-tip-link:focus-visible { outline: 3px solid #c9a46a; outline-offset: 3px; }

/* Dry lab drawing animations. */
.bk-type, .bk-blink, .bk-jiggle, .bk-atom, .bk-bar, .bk-bubble, .bk-handoff,
.bk-fly, .bk-sweep, .bk-sand-top, .bk-stream, .bk-sand-pile, .bk-shackle,
.bk-knob, .bk-stamp, .bk-snap, .bk-guard, .bk-cursor, .bk-tap { transform-box: fill-box; }
@media (prefers-reduced-motion: no-preference) {
  .is-current .bk-trace,
  .is-current .bk-check { stroke-dasharray: 1; }

  .booklet-js .is-current .bk-type {
    transform-origin: 0% 50%;
    animation: bk-grow-x .3s ease-out calc(var(--bk-delay) + var(--i) * .3s) both;
  }
  .booklet-js .is-current .bk-blink {
    animation: bk-blink .5s steps(1) calc(var(--bk-delay) + 1.2s) 4;
  }
  .booklet-js .is-current .bk-atom {
    transform-origin: center;
    animation: bk-pop .35s cubic-bezier(.34, 1.6, .64, 1) calc(var(--bk-delay) + var(--i) * .1s) both;
  }
  .booklet-js .is-current .bk-jiggle {
    transform-origin: center;
    animation: bk-jiggle .4s ease-in-out calc(var(--bk-delay) + .7s) 4 alternate;
  }
  .booklet-js .is-current .bk-bar {
    transform-origin: 0% 50%;
    animation: bk-grow-x .45s ease-out calc(var(--bk-delay) + var(--i) * .4s) both;
  }
  .booklet-js .is-current .bk-bubble {
    transform-origin: 50% 100%;
    animation: bk-pop .4s cubic-bezier(.34, 1.6, .64, 1) calc(var(--bk-delay) + var(--i) * .45s) both;
  }
  .booklet-js .is-current .bk-handoff {
    animation: bk-handoff 1.1s cubic-bezier(.45, .05, .25, 1) var(--bk-delay) both;
  }
  .booklet-js .is-current .bk-fly {
    animation: bk-fly .55s cubic-bezier(.5, 0, .75, 0) var(--bk-delay) both;
  }
  .booklet-js .is-current .bk-sweep {
    animation: bk-sweep 1.8s ease-in-out var(--bk-delay) both;
  }
  .booklet-js .is-current .bk-sand-top {
    transform-origin: 50% 100%;
    animation: bk-drain 1.6s ease-in var(--bk-delay) both;
  }
  .booklet-js .is-current .bk-sand-pile {
    transform-origin: 50% 100%;
    animation: bk-grow-y 1.6s ease-out var(--bk-delay) both;
  }
  .booklet-js .is-current .bk-stream {
    animation: bk-blink .2s steps(1) var(--bk-delay) 8;
  }
  .booklet-js .is-current .bk-shackle {
    animation: bk-shackle .9s cubic-bezier(.34, 1.4, .64, 1) var(--bk-delay) both;
  }
  .booklet-js .is-current .bk-trace {
    animation: bk-draw .8s ease-in-out calc(var(--bk-delay) + var(--i) * .4s) both;
  }
  .booklet-js .is-current .bk-knob {
    animation: bk-knob .7s cubic-bezier(.34, 1.3, .64, 1) calc(var(--bk-delay) + var(--i) * .3s) both;
  }
  .booklet-js .is-current .bk-hand {
    transform-box: view-box;
    transform-origin: 60px 54px;
    animation: bk-sweep-hand 1s ease-out var(--bk-delay) both;
  }
  .booklet-js .is-current .bk-stamp {
    transform-origin: center;
    animation: bk-stamp .45s cubic-bezier(.5, 0, .75, 0) calc(var(--bk-delay) + .5s) both;
  }
  .booklet-js .is-current .bk-snap {
    animation: bk-snap .7s cubic-bezier(.34, 1.4, .64, 1) var(--bk-delay) both;
  }
  .booklet-js .is-current .bk-guard {
    transform-origin: 50% 100%;
    animation: bk-guard .5s cubic-bezier(.34, 1.6, .64, 1) calc(var(--bk-delay) + 1s) both;
  }
  .booklet-js .is-current .bk-cursor {
    animation: bk-cursor 1.2s ease-in-out var(--bk-delay) both;
  }
  .booklet-js .is-current .bk-check {
    animation: bk-draw .3s ease-out calc(var(--bk-delay) + 1s) both;
  }
  .booklet-js .is-current .bk-tap {
    animation: bk-tap .16s ease-in-out calc(var(--bk-delay) + var(--i) * .16s) 10 alternate;
  }
}
@keyframes bk-grow-x { from { transform: scaleX(0); } to { transform: none; } }
@keyframes bk-blink { 50% { opacity: 0; } }
@keyframes bk-jiggle { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
@keyframes bk-handoff {
  0%, 20% { transform: translate(-32px, 30px); }
  55% { transform: translate(-14px, 4px) rotate(-6deg); }
  100% { transform: none; }
}
@keyframes bk-fly { from { opacity: 0; transform: translate(34px, -22px); } to { opacity: 1; transform: none; } }
@keyframes bk-sweep {
  0% { transform: translate(-24px, -14px); }
  35% { transform: translate(4px, -14px); }
  65% { transform: translate(-20px, 8px); }
  100% { transform: none; }
}
@keyframes bk-drain { from { transform: scale(1.6, 2.6); } to { transform: none; } }
@keyframes bk-shackle { 0%, 45% { transform: translateY(-8px); } 100% { transform: none; } }
@keyframes bk-knob { from { transform: translateX(var(--from)); } to { transform: none; } }
@keyframes bk-sweep-hand { from { transform: rotate(-60deg); } to { transform: none; } }
@keyframes bk-stamp { from { opacity: 0; transform: scale(1.7); } to { opacity: 1; transform: none; } }
@keyframes bk-snap {
  0%, 15% { transform: translate(18px, -14px) rotate(14deg); }
  100% { transform: none; }
}
@keyframes bk-guard { from { opacity: 0; transform: translateY(12px) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes bk-cursor {
  0% { transform: translate(56px, 22px); }
  65% { transform: none; }
  78% { transform: scale(.85); }
  100% { transform: none; }
}
@keyframes bk-tap { from { transform: none; } to { transform: translateY(-3px); } }

@media (max-width: 575.98px) {
  .booklet-grape--laptop { width: 5.9rem; }
}

/* SEARCH */
.search-toggle {
  display: flex;
  align-items: center;
}

/* SEARCH: modal dialog */
.search-modal .modal-dialog {
  max-width: 620px;
  margin-top: 9vh;
}
.search-modal .modal-header {
  border-bottom: 1px solid #eef1ee;
  gap: .75rem;
}
.search-modal .search-input {
  font-size: 1.05rem;
  border-radius: .5rem;
}
.search-modal .search-input:focus {
  border-color: #45b06c;
  box-shadow: 0 0 0 .25rem rgba(69, 176, 108, .2);
}
.search-status {
  margin: 0 0 .5rem;
  font-size: .85rem;
  color: #6c757d;
}
.search-status:empty {
  display: none;
}

/* SEARCH: result links */
.search-result {
  display: block;
  padding: .55rem .75rem;
  border-radius: .5rem;
  color: #495057;
  text-decoration: none;
}
.search-result:hover,
.search-result:focus-visible {
  background-color: #eaf6ee;
  color: #495057;
}
.search-result:hover .search-result-path,
.search-result:focus-visible .search-result-path {
  color: #2f7d4f;
}
.search-result-path {
  font-size: .85rem;
  font-weight: 600;
  color: #6c757d;
}
.search-result-snippet {
  font-size: .95rem;
}
/* highlighted match - override Bootstrap's yellow mark */
.search-results mark {
  background-color: #eaf6ee;
  color: #2f7d4f;
  font-weight: 600;
  padding: 0;
}

/* Keep linked headings clear of the fixed navbar. */
h2[id] {
  scroll-margin-top: 90px;
}

/* PROTEIN ENGINEERING: long-form article layout (.pe-*) */
.pe-article {
  max-width: 900px;      /* comfortable measure for body text */
  margin: 0 auto;
}
.pe-article p {
  line-height: 1.7;
  color: #343a40;
}
/* first section heading sits right under the eyebrow, so drop its top margin */
.pe-article > h2:first-of-type { margin-top: .35rem; }
.pe-article h2 { margin-top: 2.75rem; }

/* Eyebrow / kicker pill above the article (same recipe as .team-card-role) */
.pe-eyebrow {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #2f7d4f;
  background-color: #eaf6ee;
  padding: .25rem .7rem;
  border-radius: 999px;
  margin-bottom: .5rem;
}

/* Figures - centered, with a placeholder box until a real image is dropped in */
.pe-figure {
  margin: 2rem auto;
  text-align: center;
}
/* Narrower figure. */
.pe-figure--narrow { max-width: 680px; }
/* Small image, full-width caption. */
.pe-figure--small .pe-figure-img { max-width: 260px; margin-inline: auto; }
/* Medium image, full-width caption. */
.pe-figure--medium .pe-figure-img { max-width: 400px; margin-inline: auto; }
.pe-figure-img {          /* used once real <img>s replace the placeholders */
  display: block;
  width: 100%;
  height: auto;
  border-radius: .75rem;
  border: 1px solid #dee2e6;
}
/* Stacked panels sharing one caption. */
.pe-figure-img + .pe-figure-img { margin-top: .6rem; }
/* Side-by-side panels sharing one caption. */
.pe-figure--pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
}
.pe-figure--pair > figcaption { grid-column: 1 / -1; }
.pe-figure--pair .pe-figure-img + .pe-figure-img { margin-top: 0; }
@media (max-width: 575.98px) {
  .pe-figure--pair { grid-template-columns: 1fr; }
}
/* Placeholder note for unfinished content. */
.pe-pending {
  margin: 1.25rem 0;
  padding: .85rem 1.1rem;
  color: #2f7d4f;
  font-size: .9rem;
  font-style: italic;
  background-color: #f4faf6;
  border: 2px dashed #cfe9d8;
  border-radius: .75rem;
}
.pe-pending::before {
  content: "To add";
  display: block;
  margin-bottom: .15rem;
  font-size: .75rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .75;
}

.pe-figure-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  padding: 1.5rem;
  color: #2f7d4f;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-align: center;
  background-color: #f4faf6;
  border: 2px dashed #cfe9d8;
  border-radius: .75rem;
}
.pe-figcaption {
  margin-top: .75rem;
  font-size: .85rem;
  line-height: 1.5;
  color: #6c757d;
  text-align: left;
}
.pe-fignum { font-weight: 700; color: #2f7d4f; }

/* Inline citation markers: superscript links into the references list */
.pe-cite {
  color: #2f7d4f;
  font-weight: 600;
  text-decoration: none;
}
.pe-cite:hover,
.pe-cite:focus-visible {
  text-decoration: underline;
  text-underline-offset: .15em;
}

/* Numbered references list */
.pe-refs {
  padding-left: 2.1rem;      /* hanging indent; fits a two-digit marker */
  font-size: .85rem;
  line-height: 1.55;
  color: #495057;
}
.pe-refs li {
  margin-bottom: .55rem;
  scroll-margin-top: 90px;   /* clear the fixed navbar when jumped to */
  text-align: left;
  hyphens: manual;
}
.pe-refs a {
  color: #2f7d4f;
  word-break: break-word;    /* let long DOIs/URLs wrap instead of overflowing */
}
/* highlight the reference you jumped to via an inline citation */
.pe-refs li:target {
  background-color: #eaf6ee;
  border-radius: .35rem;
  box-shadow: 0 0 0 .35rem #eaf6ee;   /* pad the highlight without shifting layout */
}

/* Marker-pen highlight for a key finding. */
.pe-hl {
  /* the stroke sits from 52% down, leaving the x-height mostly clear */
  background-image: linear-gradient(to top, #d9eee1 52%, transparent 52%);
  padding: 0 .16em .04em;
  /* a highlighter run should break with the text, not be boxed per fragment */
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
/* Problem page: bold green instead of a highlight. */
.ent-page .pe-hl {
  background-image: none;
  padding: 0;
  font-weight: 700;
  color: #2f7d4f;
}

/* Print: underline instead of the highlight. */
@media print {
  .pe-hl { background-image: none; border-bottom: 1.5pt solid #2f7d4f; padding: 0; }
  .ent-page .pe-hl { border-bottom: 0; }
}

/* Collapsed references (keep in sync with refs.js). */
.pe-refs.is-collapsed > li:nth-child(n + 4) { display: none; }

/* Animated reference list open and close. */
.pe-refs.is-animating {
  overflow: hidden;
  transition: height .45s cubic-bezier(.22, 1, .36, 1);
}
.pe-refs.is-animating > li:nth-child(n + 4) {
  display: list-item;        /* override .is-collapsed while animating */
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s cubic-bezier(.22, 1, .36, 1);
}
.pe-refs.is-animating.is-revealing > li:nth-child(n + 4) {
  opacity: 1;
  transform: none;
}

.pe-refs-toggle {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: .1rem 0 .25rem;
  padding: .3rem .1rem;
  background: none;
  border: none;
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  color: #2f7d4f;
  cursor: pointer;
}
.pe-refs-toggle:hover,
.pe-refs-toggle:focus-visible {
  text-decoration: underline;
  text-underline-offset: .15em;
}
/* chevron: points down for "show more", flips up when the list is expanded */
.pe-refs-toggle::after {
  content: "";
  width: .45rem;
  height: .45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.pe-refs-toggle[aria-expanded="true"]::after { transform: rotate(-135deg); }

/* "Next page" button. */
.pe-next {
  display: flex;
  justify-content: center;
  margin: 4.5rem 0 5.5rem;
}
/* the same card used mid-article (e.g. a PDF link on Biocontainment) */
.pe-next.pe-next--inline { margin: 1.75rem 0 2.5rem; }
.pe-next--inline .pe-next-btn { column-gap: 1.25rem; padding: 1rem 1.75rem; border-radius: .8rem; }
.pe-next--inline .pe-next-label { font-size: .72rem; }
.pe-next--inline .pe-next-title { font-size: 1.3rem; }
.pe-next--inline .pe-next-btn::after { font-size: 1.6rem; }
.pe-next-btn {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 2rem;
  padding: 1.5rem 2.75rem;
  border: 2px solid #2f7d4f;
  border-radius: 1rem;
  color: #2f7d4f;
  text-decoration: none;
  text-align: left;
  transition: background-color .2s ease, color .2s ease;
}
.pe-next-label {
  grid-column: 1;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .8;
}
.pe-next-title {
  grid-column: 1;
  font-size: clamp(1.45rem, 1.2rem + .9vw, 1.9rem);
  font-weight: 700;
  line-height: 1.15;
}
.pe-next-btn::after {
  content: "\2192";
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 2.2rem;
  line-height: 1;
  transition: transform .2s ease;
}
.pe-next-btn:hover,
.pe-next-btn:focus-visible {
  background-color: #2f7d4f;
  color: #fff;
}
.pe-next-btn:hover::after,
.pe-next-btn:focus-visible::after { transform: translateX(.25rem); }
@media (prefers-reduced-motion: reduce) {
  .pe-next-btn, .pe-next-btn::after { transition: none; }
}
/* a phone: the same card, kept inside the column */
@media (max-width: 575.98px) {
  .pe-next { margin: 3.5rem 0 4rem; }
  .pe-next-btn { column-gap: 1.25rem; padding: 1.15rem 1.5rem; }
  .pe-next-btn::after { font-size: 1.8rem; }
}

@media (max-width: 575.98px) {
  .pe-figure-placeholder { padding: 1rem; }
  .pe-article h2 { margin-top: 2.25rem; }
}

/* Intein splicing stepped diagram. */
.splice {
  --splice-extein: #2f7d4f;    /* N-extein - site brand green */
  --splice-extein-c: #63a37d;  /* C-extein - same hue, lighter, so the two read as a pair */
  --splice-intein: #c1662f;    /* intein, while still part of the precursor */
  --splice-react: #a5303f;     /* the bond or residue currently reacting */
  --splice-spent: #adb5bd;     /* intein once excised, and its leaving arrow */
  margin: 2rem auto;
}

.splice-scroll { overflow-x: auto; }
.splice-scroll:focus-visible { outline: 2px solid var(--splice-extein); outline-offset: 3px; }

.splice-stage {
  position: relative;
  min-width: 520px;     /* under this the labels inside the drawing stop being legible */
  aspect-ratio: 680 / 250;
}
.splice-stage svg { display: block; width: 100%; height: 100%; }

/* Palette as classes, since var() is unreliable in SVG attributes. */
.splice-ribbon { fill: none; stroke-width: 18; stroke-linecap: round; }
.splice .s-nx { stroke: var(--splice-extein); }
.splice .s-cx { stroke: var(--splice-extein-c); }
.splice .s-in { stroke: var(--splice-intein); }
.splice .s-rx { stroke: var(--splice-react); }
.splice .s-sp { stroke: var(--splice-spent); }
.splice .f-nx { fill: var(--splice-extein); }
.splice .f-cx { fill: var(--splice-extein-c); }
.splice .f-in { fill: var(--splice-intein); }
.splice .f-rx { fill: var(--splice-react); }
.splice .f-sp { fill: var(--splice-spent); }
.splice .f-ink { fill: #212529; }
.splice .f-mute { fill: #6c757d; }

.splice-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .55s ease;
}
.splice-layer.is-on { opacity: 1; }

.splice-dom { font-size: 16px; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; }
.splice-res { font-size: 15px; font-weight: 600; }

/* Step caption. Sized in rem, so it stays readable however wide the drawing is. */
.splice-caption {
  margin: 1.1rem 0 0;
  font-size: .9rem;
  line-height: 1.55;
  color: #343a40;
  text-align: left;
  hyphens: manual;
}
/* Step label colour by stage. */
.splice-step { font-weight: 600; color: var(--splice-react); }
.splice-step::after { content: " \00b7\00a0"; }
.splice[data-current="0"] .splice-step { color: #212529; }
.splice[data-current="4"] .splice-step { color: var(--splice-extein); }

/* Controls shown only with JS. */
.splice-controls { display: none; }
.splice.is-live .splice-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 1.1rem;
}
.splice-btn {
  padding: .25rem .1rem;
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  font: inherit;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #6c757d;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.splice-btn:hover { color: #212529; border-bottom-color: #adb5bd; }
.splice-btn:focus-visible { outline: 2px solid var(--splice-extein); outline-offset: 2px; }
.splice-btn--play { color: var(--splice-extein); }
.splice-btn--play:hover { color: var(--splice-extein); border-bottom-color: var(--splice-extein); }
.splice-btn[disabled] { opacity: .3; cursor: default; }
.splice-btn[disabled]:hover { color: #6c757d; border-bottom-color: transparent; }

.splice-dots { display: flex; align-items: center; gap: .4rem; }
.splice-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #dee2e6;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.splice-dot.is-on { background: var(--splice-extein); transform: scale(1.6); }
.splice-dot:focus-visible { outline: 2px solid var(--splice-extein); outline-offset: 3px; }

.splice-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.4rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}
.splice-legend li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .03em;
  color: #6c757d;
  text-align: left;
  hyphens: manual;
}
.splice-key { width: 12px; height: 2px; flex: none; }

@media (prefers-reduced-motion: reduce) {
  .splice-layer { transition: none; }
  .splice-dot { transition: none; }
}

/* ON-THIS-PAGE TABLE OF CONTENTS */
.pe-toc { display: none; }        /* revealed by .pe-layout.has-toc (JS) */

.pe-toc-details {
  background-color: #f4faf6;
  border: 1px solid #cfe9d8;
  border-radius: .75rem;
  padding: .35rem .5rem;
}
/* Summary doubles as the collapse toggle on mobile and a label on desktop */
.pe-toc-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .65rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #2f7d4f;
  cursor: pointer;
  list-style: none;                              /* hide the default disclosure triangle (Firefox) */
}
.pe-toc-title::-webkit-details-marker { display: none; }   /* …and WebKit */
/* chevron that flips when the box is open */
.pe-toc-title::after {
  content: "";
  width: .5rem;
  height: .5rem;
  margin-left: auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.pe-toc-details[open] .pe-toc-title::after { transform: rotate(-135deg); }

.pe-toc-list {
  list-style: none;
  margin: .25rem 0 .35rem;
  padding: 0;
}
.pe-toc-list li {
  margin: 0;
  text-align: left;
  hyphens: none;
}
.pe-toc-link {
  display: block;
  /* Room for the hover slide. */
  padding: .35rem 2rem .35rem .65rem;
  border-left: 2px solid transparent;
  border-radius: 0 .35rem .35rem 0;
  font-size: .85rem;
  line-height: 1.35;
  color: #6c757d;
  text-decoration: none;
  transform: translateX(0);
  will-change: transform;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease,
              transform .28s cubic-bezier(.22, 1, .36, 1);
}
.pe-toc-link:hover,
.pe-toc-link:focus-visible {
  color: #2f7d4f;
  background-color: #eaf6ee;
}
/* Hovered item slides forward, others step back. */
.pe-toc-list:hover .pe-toc-link,
.pe-toc-list:focus-within .pe-toc-link {
  transform: translateX(-3px);
}
.pe-toc-list:hover .pe-toc-link:hover,
.pe-toc-list:focus-within .pe-toc-link:focus-visible {
  transform: translateX(24px);
}
/* the section currently in view (set by the scroll-spy in toc.js) */
.pe-toc-link.is-active {
  color: #2f7d4f;
  font-weight: 600;
  border-left-color: #45b06c;
  background-color: #eaf6ee;
}
/* Grouped TOC entries. */
.pe-toc-group-link { font-weight: 600; color: #37481f; }
.pe-toc-group.is-open > .pe-toc-group-link { color: #2f7d4f; }
.pe-toc-sublist {
  display: none;
  list-style: none;
  margin: .1rem 0 .4rem .65rem;
  padding: 0 0 0 .1rem;
  border-left: 1px solid #d6e2cc;
}
.pe-toc-group.is-open > .pe-toc-sublist { display: block; }
.pe-toc-sublist .pe-toc-link { font-size: .8rem; padding-top: .28rem; padding-bottom: .28rem; }

/* Mobile: full-width collapsible box stacked above the article */
.pe-layout.has-toc .pe-toc {
  display: block;
  margin-bottom: 1.75rem;
}

/* Desktop: sticky TOC on the left, article centred in the remaining space. */
@media (min-width: 992px) {
  .pe-layout.has-toc {
    display: grid;
    grid-template-columns: 240px 4rem minmax(1.5rem, 1fr) minmax(0, 900px) minmax(1.5rem, 1fr);
    align-items: start;
    /* Break out of the container's centring. */
    margin-left: calc(50% - 50vw);
    padding-left: clamp(1.5rem, 4vw, 4rem);
  }
  .pe-layout.has-toc .pe-article {
    grid-column: 4;                /* skips the fixed gutter + left spacer columns */
    margin: 0;                     /* drop the auto-centering; sit in the grid cell */
  }
  /* The aside is a track; the sticky box lives inside it. */
  .pe-layout.has-toc .pe-toc {
    grid-column: 1;
    align-self: stretch;
    margin-bottom: 0;
  }
  /* forced open by JS here, so present it as a plain heading, not a card/toggle */
  .pe-layout.has-toc .pe-toc-details {
    background-color: transparent;
    border: none;
    padding: 0;
    position: sticky;
    top: 90px;                     /* clear the 73px fixed navbar, matching h2 scroll-margin */
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    overflow-x: hidden;
  }
  .pe-layout.has-toc .pe-toc-title {
    cursor: default;
    padding: 0 .65rem .5rem;
    margin-bottom: .5rem;
    border-bottom: 2px solid #eaf6ee;
  }
  .pe-layout.has-toc .pe-toc-title::after { display: none; }
}

/* Blocks that escape the reading width. */

/* Borrow the gutter and right spacer. */
@media (min-width: 992px) {
  .pe-layout.has-toc .pe-article .pe-bleed {
    margin-left: -4rem;
    margin-right: -1.5rem;
  }
}

/* Full-width sibling of the article. */
@media (min-width: 992px) {
  .pe-layout.has-toc .pe-full {
    grid-column: 1 / -1;
    width: calc(100vw - 2 * clamp(1.5rem, 4vw, 4rem));   /* gutter = the layout's padding-left */
  }
}

@media (prefers-reduced-motion: reduce) {
  .pe-toc-link,
  .pe-toc-title::after,
  .pe-refs-toggle::after { transition: none; }
  /* the animated references reveal collapses to an instant show/hide */
  .pe-refs.is-animating,
  .pe-refs.is-animating > li:nth-child(n + 4) { transition: none; }
  .pe-refs.is-animating > li:nth-child(n + 4) { opacity: 1; transform: none; }
  .pe-toc-list:hover .pe-toc-link,
  .pe-toc-list:focus-within .pe-toc-link,
  .pe-toc-list:hover .pe-toc-link:hover,
  .pe-toc-list:focus-within .pe-toc-link:focus-visible { transform: none; }
}

/* NOTEBOOK */
.nb-section + .nb-section { margin-top: 3rem; }
.nb-heading {
  font-weight: 600;
  color: #343a40;
  margin-bottom: .5rem;
}
.nb-heading-rule {
  width: 48px;
  height: 3px;
  background-color: #45b06c;
  border: none;
  border-radius: 2px;
  margin: 0 0 1rem;
  opacity: 1;
}
.nb-section-intro {
  color: #6c757d;
  margin-bottom: 1.5rem;
}

/* Spiral-bound notebook button. */
.nb-book-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 3rem 0 1rem;
}
.nb-book {
  position: relative;
  width: min(250px, 66vw);
  aspect-ratio: 5 / 7;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  perspective: 1400px;
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}
.nb-book:hover,
.nb-book:focus-visible { transform: translateY(-4px); outline: none; }
.nb-book:focus-visible .nb-book-cover { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #45b06c; }
/* soft ground shadow */
.nb-book::after {
  content: "";
  position: absolute;
  left: 4%;
  right: -2%;
  bottom: -16px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .2), transparent);
  z-index: -1;
}

/* ruled paper with a red margin line; the stacked shadows are the page edges */
.nb-book-pages {
  position: absolute;
  inset: 1.5% 0 1.5% 0;
  border-radius: 3px 8px 8px 3px;
  background:
    linear-gradient(90deg, transparent 22%, #eaa9a9 22%, #eaa9a9 calc(22% + 1px), transparent calc(22% + 1px)),
    repeating-linear-gradient(#fdfcf8 0 17px, #d5e1ec 17px 18px) 0 28px / 100% calc(100% - 40px) no-repeat,
    #fdfcf8;
  box-shadow: 2px 2px 0 #f1ede3, 4px 4px 0 #e6e0d2, 6px 6px 0 #dcd5c4;
}

.nb-book-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px 10px 10px 3px;
  /* punched holes for the spiral, then the team's printed cover artwork */
  background:
    radial-gradient(circle at 13px 50%, #13291e 3px, transparent 3.6px) 0 0 / 26px 18px repeat-y,
    linear-gradient(135deg, rgba(255, 255, 255, .08), transparent 45%),
    url("https://static.igem.wiki/teams/6078/wiki/wetlab/notebook/notebook-cover.avif") center / cover no-repeat,
    #afbd6f;
  box-shadow: inset -2px 0 0 rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .12),
              0 6px 18px rgba(0, 0, 0, .18);
  transform-origin: 0 50%;
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.3, 1.2, .5, 1), box-shadow .2s ease;
}
/* back of the cover, seen once it swings past 90deg */
.nb-book-inside {
  position: absolute;
  inset: 0;
  border-radius: 10px 3px 3px 10px;
  background: #ece5d2;
  transform: rotateY(180deg) translateZ(1px);
  backface-visibility: hidden;
}

/* Metal coil along the hinge. */
.nb-book-spiral {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -9px;
  width: 22px;
  background: repeating-linear-gradient(
    transparent 0 7px,
    #7d858c 7px 8px, #d9dde1 8px 10px, #8f979e 10px 11px,
    transparent 11px 18px);
  border-radius: 4px;
  pointer-events: none;
}

.nb-book:hover .nb-book-cover,
.nb-book:focus-visible .nb-book-cover { transform: rotateY(-24deg); }
.nb-book.is-open .nb-book-cover { transform: rotateY(-155deg); }

.nb-book-hint {
  margin: 1.8rem 0 0;
  font-size: .85rem;
  color: #6c757d;
}

@media (prefers-reduced-motion: reduce) {
  .nb-book,
  .nb-book-cover { transition: none; }
}

.nb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1rem;
}

/* Card: reset button chrome, then style as an elevated card */
.nb-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .3rem;
  width: 100%;
  padding: 1.5rem 1.4rem 1.3rem;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: .75rem;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
  transition: transform .22s cubic-bezier(.4, 0, .2, 1),
              box-shadow .22s cubic-bezier(.4, 0, .2, 1),
              border-color .22s cubic-bezier(.4, 0, .2, 1);
}
.nb-card:hover,
.nb-card:focus-visible {
  transform: translateY(-4px);
  border-color: #45b06c;
  box-shadow: 0 .6rem 1.4rem rgba(69, 176, 108, .28);
  outline: none;
}
.nb-card:active {
  transform: translateY(-1px);
}

.nb-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: .5rem;
  border-radius: .6rem;
  color: #2f7d4f;
  background-color: #eaf6ee;
  transition: background-color .22s ease, color .22s ease, transform .22s ease;
}
.nb-card:hover .nb-card-icon,
.nb-card:focus-visible .nb-card-icon {
  background-color: #45b06c;
  color: #fff;
  transform: scale(1.06);
}

.nb-card-title {
  font-weight: 600;
  font-size: 1.05rem;
  color: #212529;
}
.nb-card-sub {
  font-size: .85rem;
  color: #6c757d;
  margin-bottom: .5rem;
}
.nb-card-open {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: #2f7d4f;
}
.nb-card-arrow {
  display: inline-block;
  font-size: 1.1rem;
  line-height: 1;
  margin-left: .15rem;
  transition: transform .22s ease;
}
.nb-card:hover .nb-card-arrow,
.nb-card:focus-visible .nb-card-arrow {
  transform: translateX(4px);
}

/* PDF viewer modal */
.nb-pdf-body {
  padding: 0;
  background-color: #f4faf6;
}
.nb-pdf-frame {
  display: block;
  width: 100%;
  height: 75vh;
  border: 0;
}
.nb-pdf-empty {
  margin: 0;
  padding: 3.5rem 1.5rem;
  text-align: center;
  color: #6c757d;
  font-size: .95rem;
}
.nb-pdf-open {
  color: #2f7d4f;
  border: 1px solid #45b06c;
  background-color: #fff;
}
.nb-pdf-open:hover {
  background-color: #45b06c;
  color: #fff;
}

@media (max-width: 575.98px) {
  .nb-pdf-frame { height: 65vh; }
}

@media (prefers-reduced-motion: reduce) {
  .nb-card,
  .nb-card-icon,
  .nb-card-arrow { transition: none; }
  .nb-card:hover,
  .nb-card:focus-visible { transform: none; }
}

/* WELLNESS PAGE */
.wellness-head,
.wellness-lede,
.wellness-note { max-width: 720px; margin-left: auto; margin-right: auto; }

.wellness-head { padding-top: 3rem; margin-bottom: 1.75rem; }
.wellness-title {
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -.01em;
  color: #37481f;
}
/* Green rule under the title. */
.wellness-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 1.1rem;
  border-radius: 2px;
  background-color: #45b06c;
}

.wellness-lede { margin-bottom: 2.5rem; }
.wellness-lede p { font-size: 1.05rem; color: #495057; text-align: justify; hyphens: auto; }
.wellness-lede p:last-child { margin-bottom: 0; }
.wellness-lede p.wellness-lede-note { font-size: .9rem; color: #868e96; }

/* Folded disclaimer note. */
.wellness-note { margin-bottom: 3rem; }
.wellness-note-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .25rem 0;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #2f7d4f;
  cursor: pointer;
  list-style: none;                /* Firefox's marker */
  transition: color .2s ease;
}
.wellness-note-toggle::-webkit-details-marker { display: none; }
.wellness-note-toggle:hover { color: #245f3c; }
.wellness-note-toggle:focus-visible {
  outline: 2px solid #45b06c;
  outline-offset: 3px;
  border-radius: 2px;
}
.wellness-note-dash { color: #ced4da; }
.wellness-note-chevron {
  width: 10px;
  height: 6px;
  flex: 0 0 auto;
  transition: transform .3s ease;
}
.wellness-note-box[open] .wellness-note-chevron { transform: rotate(180deg); }
/* one label at a time: "Read more" when it is shut, "Close" when it is open */
.wellness-note-box:not([open]) .wellness-note-close,
.wellness-note-box[open] .wellness-note-open { display: none; }

.wellness-note-panel {
  margin: .7rem 0 0;
  padding-left: 1.25rem;
  border-left: 2px solid #cfe8d8;
  font-size: .95rem;
  color: #6c757d;
  text-align: justify;
  hyphens: auto;
}
.wellness-note-box[open] .wellness-note-panel { animation: wellness-note-in .3s ease both; }
@keyframes wellness-note-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
@supports (interpolate-size: allow-keywords) {
  .wellness-note-box { interpolate-size: allow-keywords; }
  .wellness-note-box::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size .3s ease, content-visibility .3s allow-discrete;
  }
  .wellness-note-box[open]::details-content { block-size: auto; }
}

@media (max-width: 620px) {
  .wellness-head { padding-top: 2rem; }
  .wellness-note { padding-left: 1rem; }
}

/* WELLNESS QUIZ */
.quiz-section {
  /* Quiz colour tokens. */
  --quiz-sans: var(--bs-font-sans-serif);
  --quiz-green: #45b06c;
  --quiz-green-dark: #2f7d4f;
  --quiz-green-deep: #357a4c;
  --quiz-green-light: #7dc98f;
  --quiz-tint: #eaf6ee;
  --quiz-tint-soft: #f4fbf6;
  --quiz-rule: #cfe8d8;
  --quiz-ink: #343a40;
  --quiz-ink-soft: #495057;

  margin: 3rem 0 3.5rem;
}
/* Definitions only - nothing here paints. */
.quiz-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.quiz { max-width: 720px; margin: 0 auto; scroll-margin-top: 90px; }

/* Progress bar: a growing vine cane. */
.quiz-progress {
  display: flex;
  align-items: center;             /* the crop is centred on the cane's right-hand end */
  gap: 1rem;
  /* clear above for the leaves that stand up, below for the ones that hang */
  margin: 3.25rem 0 1.5rem;
}
.quiz-progress-track {
  position: relative;
  flex: 1 1 auto;
  aspect-ratio: 2014 / 164;        /* the crop, in photograph pixels */
  margin: 0 20px;
}
.quiz-branch-lit {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  background-image: url("https://static.igem.wiki/teams/6078/wiki/wellness/branch.avif");
  background-repeat: no-repeat;
  /* Crop the cane out of the photo. */
  background-size: 102.234% 465.854%;
  background-position: 33.333% 53.5%;
  filter: url(#quiz-leaf-cutout);
  aspect-ratio: 2014 / 164;
}
.quiz-progress-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 9px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 9px), transparent);
  transition: width .45s ease;
}
/* Keep the cane's natural end on the last question. */
.quiz-progress-fill.is-complete {
  -webkit-mask-image: none;
  mask-image: none;
}
/* Step counter. */
.quiz-progress-count {
  flex: 0 0 auto;
  min-width: 3.8rem;
  margin: 0;
  text-align: right;
  font-family: var(--quiz-sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.quiz-progress-current { color: var(--quiz-green-dark); }
.quiz-progress-total { color: #b3bcae; }

/* Leaves and grapes cropped from photos and hung from the buds. */
.quiz-vine-nodes { position: absolute; inset: 0; }
.quiz-vine-node {
  --leaf-size: 38px;
  --tilt: 0deg;
  --flip: 0deg;
  position: absolute;              /* `left` / `top` are per question, from the template */
  width: calc(var(--w) * var(--leaf-size));
  height: calc(var(--h) * var(--leaf-size));
  margin-left: calc(var(--ox) * var(--leaf-size) * -1);
  margin-top: calc(var(--oy) * var(--leaf-size) * -1);
  background-repeat: no-repeat;
  background-size: calc(var(--bw) * var(--leaf-size)) calc(var(--bh) * var(--leaf-size));
  background-position: calc(var(--bx) * var(--leaf-size) * -1)
                       calc(var(--by) * var(--leaf-size) * -1);
  filter: url(#quiz-leaf-cutout);
  transform-origin: calc(var(--ox) * var(--leaf-size)) calc(var(--oy) * var(--leaf-size));
  /* not yet out: still furled back against the cane it holds on to */
  transform: rotate(calc(var(--rot) * 1deg + var(--flip) + var(--tilt) - 7deg)) scale(.72);
  opacity: 0;
  transition: opacity .4s ease, transform .55s cubic-bezier(.22, .68, .3, 1);
}
.quiz-vine-node.is-grown {
  opacity: 1;
  transform: rotate(calc(var(--rot) * 1deg + var(--flip) + var(--tilt))) scale(1);
}
/* Upright leaves above the bud. */
.quiz-vine-node.is-upright { --flip: 180deg; }

/* The three leaves off the sheet, and the bunch. */
.quiz-leaf-a,
.quiz-leaf-b,
.quiz-leaf-c {
  background-image: url("https://static.igem.wiki/teams/6078/wiki/wellness/grape-leafs-nobackground.avif");
}
.quiz-leaf-a { --w: .961; --h: 1;    --bw: 3.279; --bh: 2.187; --bx: .087;  --by: .119;  --ox: .760; --oy: .818; --rot: -141.6; }
.quiz-leaf-b { --w: .972; --h: 1;    --bw: 3.421; --bh: 2.282; --bx: 1.184; --by: .123;  --ox: .429; --oy: .999; --rot: 173.4; }
.quiz-leaf-c { --w: 1;    --h: .890; --bw: 3.091; --bh: 2.061; --bx: 1.043; --by: 1.102; --ox: .856; --oy: .363; --rot: -77.9; }
.quiz-grape {
  --leaf-size: 46px;
  --w: .576; --h: 1; --bw: 1.628; --bh: 1.086; --bx: .526; --by: .041; --ox: .294; --oy: .110; --rot: -.4;
  background-image: url("https://static.igem.wiki/teams/6078/wiki/wellness/cluster-grapes-nobg.avif");
}

/* Alternate leaf tilt; bunches hang straight. */
.quiz-vine-node:nth-child(odd) { --tilt: 9deg; }
.quiz-vine-node:nth-child(even) { --tilt: -9deg; }
.quiz-vine-node:nth-child(3n) { --tilt: 5deg; }
.quiz-vine-node:nth-child(4n) { --tilt: -6deg; }
.quiz-vine-node.quiz-grape { --tilt: 0deg; }

.quiz-step { border: 0; padding: 0; margin: 0; }
.quiz-step.is-active { animation: quiz-step-in .35s ease; }
@keyframes quiz-step-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.quiz-question {
  display: block;
  width: 100%;
  padding: 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--quiz-ink);
  margin-bottom: 1.5rem;
}
.quiz-options { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 2rem; }

/* Visually hide the native radio but keep it keyboard/screen-reader operable */
.quiz-option-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  opacity: 0;
}
.quiz-option {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .85rem 1.1rem;
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-left-width: 3px;
  border-radius: .6rem;
  background-color: #fff;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
/* Option bullet marker. */
.quiz-option::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #cfe0d5;
  transition: background-color .2s ease;
}
.quiz-option:hover {
  border-color: var(--quiz-green);
  background-color: var(--quiz-tint-soft);
  transform: translateX(2px);
}
.quiz-option-input:checked + .quiz-option {
  background-color: var(--quiz-tint);
  border-color: var(--quiz-green);
  color: var(--quiz-green-dark);
  font-weight: 600;
}
.quiz-option-input:checked + .quiz-option::before {
  background-color: var(--quiz-green-dark);
}
.quiz-option-input:focus-visible + .quiz-option { outline: 2px solid var(--quiz-green); outline-offset: 2px; }

.quiz-nav { display: flex; gap: 1rem; }
.quiz-btn { font-weight: 600; border-radius: .5rem; padding: .55rem 1.4rem; transition: background-color .2s ease, border-color .2s ease, opacity .2s ease; }
.quiz-btn-back { color: var(--quiz-green-dark); background-color: #fff; border: 1px solid var(--quiz-green); }
.quiz-btn-back:hover:not(:disabled) { background-color: var(--quiz-tint); }
.quiz-btn-next { color: #fff; background-color: var(--quiz-green); border: 1px solid var(--quiz-green); margin-left: auto; }
.quiz-btn-next:hover:not(:disabled) { background-color: var(--quiz-green-dark); border-color: var(--quiz-green-dark); }
.quiz-btn:disabled { opacity: .5; cursor: not-allowed; }

/* Result card. */
.quiz-results { margin-top: 1rem; }
.quiz-result {
  --quiz-accent: var(--quiz-green-dark);
  --quiz-accent-soft: var(--quiz-tint);
  display: none;                   /* shown via .is-revealed once a result is computed */
  position: relative;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  grid-template-areas:
    "media head"
    "media body";
  grid-template-rows: auto 1fr;
  gap: 0 2rem;
  max-width: 1000px;
  margin: 0 auto 2rem;
  padding: 1.5rem;
  border: 1px solid #dee2e6;
  border-top: 3px solid var(--quiz-accent);
  border-radius: .75rem;
  background-color: #fff;
  box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075), 0 .6rem 1.4rem rgba(47, 125, 79, .08);
}
/* Mental recovery badge colour. */
.quiz-result:has(.quiz-badge--mental) {
  --quiz-accent: #2e6f8e;
  --quiz-accent-soft: #e3f0f6;
}
.quiz-result.is-revealed { display: grid; animation: quiz-label-in .45s ease both; }
/* Clear the navbar when scrolled to. */
.quiz-result { scroll-margin-top: 90px; }
@keyframes quiz-label-in {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: none; }
}
.quiz-result-head {
  grid-area: head;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .75rem;
  margin-bottom: .75rem;
  font-family: var(--quiz-sans);
}
.quiz-result-name {
  font-family: var(--quiz-sans);
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 600;
  color: #212529;
  margin: 0;
}

/* A pill, like the role tag on the Team cards (.team-card-role) */
.quiz-badge {
  display: inline-block;
  font-family: var(--quiz-sans);
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .2rem .65rem;
  border-radius: 999px;
  color: var(--quiz-accent);
  background-color: var(--quiz-accent-soft);
}

.quiz-result-media { grid-area: media; align-self: center; }
.quiz-result-body { grid-area: body; }

.quiz-result-photo,
.quiz-result-photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: .6rem;
  display: block;
}
/* Photo placeholder. */
.quiz-result-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  text-align: center;
  padding: 1rem;
  border: 1px solid var(--quiz-rule);
  background-color: var(--quiz-tint);
  color: var(--quiz-green-dark);
  font-family: var(--quiz-sans);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .18em;
}
.quiz-result-photo-mark { width: 44px; height: 44px; opacity: .45; overflow: visible; }

.quiz-result-blurb {
  font-family: var(--quiz-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--quiz-ink-soft);
  margin-bottom: 0;
}

/* "Why we matched you" list (class names used by wellness.js). */
.quiz-result-why[hidden] { display: none; }
.quiz-result-why {
  margin: 1.25rem 0 0;
  padding-left: .9rem;
  border-left: 2px solid var(--quiz-accent-soft);
}
/* Both small caps labels follow .ent-tag: accent colour, light tracking */
.quiz-result-why-title {
  font-family: var(--quiz-sans);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--quiz-accent);
  margin-bottom: .5rem;
}
.quiz-result-why-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--quiz-sans);
  font-size: .95rem;
  color: var(--quiz-ink-soft);
}
.quiz-result-why-list li + li { margin-top: .35rem; }

/* Recommended activity. */
.quiz-result-pairing-label {
  font-family: var(--quiz-sans);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--quiz-accent);
  margin: 1.25rem 0 .3rem;
  padding-top: 1.1rem;
  border-top: 1px dashed #dee2e6;
}
.quiz-result-activity {
  font-family: var(--quiz-sans);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: .35rem;
  color: #212529;
}
.quiz-result-activity-desc {
  font-family: var(--quiz-sans);
  font-size: .95rem;
  color: var(--quiz-ink-soft);
  margin-bottom: 0;
}

.quiz-retake-wrap { text-align: center; margin-top: 1rem; }
.quiz-btn-retake { color: #fff; background-color: var(--quiz-green); border: 1px solid var(--quiz-green); }
.quiz-btn-retake:hover { background-color: var(--quiz-green-dark); border-color: var(--quiz-green-dark); }

@media (max-width: 620px) {
  .quiz-result {
    grid-template-columns: 1fr;
    grid-template-areas: "head" "media" "body";
    grid-template-rows: none;
    padding: 1.25rem 1.15rem 1.4rem;
  }
  .quiz-result-media { margin-bottom: 1.1rem; }
  .quiz-nav { flex-wrap: wrap; }
  /* ten leaves still have to fit a ~285px cane; the cane itself just scales */
  .quiz-progress { gap: .5rem; }
  .quiz-progress-track { margin-left: 12px; margin-right: 14px; }
  .quiz-progress-count { min-width: 3.2rem; font-size: .72rem; }
  .quiz-vine-node { --leaf-size: 24px; }
  .quiz-vine-node.quiz-grape { --leaf-size: 29px; }
}

@media (prefers-reduced-motion: reduce) {
  .wellness-note-chevron { transition: none; }
  .wellness-note-box::details-content { transition: none; }
  .wellness-note-box[open] .wellness-note-panel { animation: none; }
  .quiz-step.is-active { animation: none; }
  .quiz-progress-fill { transition: none; }
  .quiz-option, .quiz-option::before, .quiz-btn { transition: none; }
  .quiz-option:hover { transform: none; }
  .quiz-vine-node { transition: none; }
  .quiz-result.is-revealed { animation: none; }
}

/* OUR MISSION */
.mission-lead {
  margin: 1.5rem 0 3rem;
  max-width: 780px;
  font-size: 1.15rem;
  line-height: 1.6;
  color: #343a40;
}

/* Hand-annotated mission sentence. */
.ma {
  position: relative;
  margin: 2rem 0 1.5rem;
}
.pe-article .ma p,
.pe-article .ma li { hyphens: manual; -webkit-hyphens: manual; }
.ma-ink {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}
.pe-article .ma-sentence {
  position: relative;          /* paints the words above the ink */
  margin: 0;
  font-size: clamp(1.35rem, 1rem + 1.5vw, 1.9rem);
  font-weight: 600;
  line-height: 1.55;
  text-align: justify;
  color: #212529;
}
.ma-phrase { color: inherit; }
/* No-JS fallback mark: a plain underline in the phrase's colour. */
.ma:not(.is-inked) .ma-phrase {
  text-decoration: underline;
  text-decoration-color: var(--tone);
  text-decoration-thickness: .1em;
  text-underline-offset: .2em;
}
.ma-num {
  margin-left: .1em;
  font-size: .55em;
  font-weight: 700;
  color: var(--tone);
}

.ma-notes {
  position: relative;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: ma;
}
.pe-article .ma-note {
  position: relative;
  margin: 0 0 1rem;
  padding-left: 1.6rem;
  font-size: .95rem;
  line-height: 1.55;
  text-align: justify;
  color: #495057;
  counter-increment: ma;
}
.ma-note::before {
  content: counter(ma);
  position: absolute;
  left: 0;
  top: 0;
  font-size: .8rem;
  font-weight: 700;
  color: var(--tone);
}
.ma-note b { font-weight: 700; color: var(--tone); }

/* Margin layout: sentence left, notes right, positioned by mission.js. */
.ma.is-margin {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 14.5rem;
  column-gap: 4.5rem;
  align-items: start;
}
.ma.is-margin .ma-num { display: none; }
.ma.is-margin .ma-notes { margin: 0; }
.pe-article .ma.is-margin .ma-note {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0;
  padding-left: 0;
  font-size: .9rem;
}
.ma.is-margin .ma-note::before { content: none; }

/* Ink */
.ma-stroke {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset .7s cubic-bezier(.45, .05, .3, 1);
}
.ma-swipe { opacity: .22; stroke-linecap: butt; transition-duration: .55s; }
.ma-arrow { transition-duration: .5s; }
.ma.is-drawn .ma-stroke { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
  .ma-stroke { stroke-dashoffset: 0; transition: none; }
}

/* RESERVOIR GLOBE */
.rg-root {
  --rg-panel: #f4faf6;
  --rg-line: #dee2e6;
  --rg-ink: #212529;
  --rg-dim: #6c757d;
  --rg-faint: #9aa1a8;
  --rg-critical: #c0405c;   /* matches the JS colour scale's low-level stop */
  --rg-healthy: #45b06c;    /* matches the JS colour scale's full stop */
  /* Globe left, readout and chips right. */
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "globe readout" "globe list";
  gap: 1.25rem 2rem;
  align-items: start;
  margin: 1.5rem 0 1rem;
}
@media (max-width: 880px) {
  .rg-root {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: "globe" "readout" "list";
    gap: 1.5rem;
  }
}

/* Globe stage. */
.rg-stage { grid-area: globe; position: relative; align-self: center; }
.rg-stage #globe {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin-inline: auto;
  touch-action: none;
  cursor: grab;
}
.rg-stage #globe:active { cursor: grabbing; }
.rg-hint {
  text-align: center;
  margin-top: -.25rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--rg-faint);
}
.rg-tooltip {
  position: absolute;
  pointer-events: none;
  transform: translate(-50%, -140%);
  background: #fff;
  border: 1px solid var(--rg-line);
  border-radius: .5rem;
  padding: .35rem .65rem;
  box-shadow: 0 .4rem 1rem rgba(0, 0, 0, .12);
  font-size: .8rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .12s ease;
  z-index: 5;
}
.rg-tooltip b { color: var(--rg-ink); }
.rg-tooltip span { color: var(--rg-faint); font-size: .72rem; margin-left: .3rem; }

/* Readout box doubling as a water gauge. */
.rg-readout {
  grid-area: readout;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 15rem;
  padding: 1.6rem 1.25rem 1.25rem;
  background: #fff;
  border: 1px solid var(--rg-line);
  border-radius: 1rem;
}
.rg-water { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.rg-full {
  position: absolute;
  top: .45rem;
  right: .9rem;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rg-faint);
}
.rg-pct { font-weight: 700; font-size: 2rem; line-height: 1; flex: none; font-variant-numeric: tabular-nums; }
.rg-readout .rg-country { color: #495057; }
.rg-readout .rg-metric { color: #495057; }
.rg-readout .rg-note { color: var(--rg-ink); }

.rg-info-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem 1rem;
}
.rg-place { font-weight: 700; font-size: 1.35rem; line-height: 1.15; color: var(--rg-ink); }
/* Smaller place names in the two-column layout. */
@media (min-width: 881px) { .rg-place { font-size: 1.12rem; } }
.rg-country { color: var(--rg-dim); font-size: .92rem; margin-top: .1rem; }
.rg-status {
  display: inline-block;
  margin-top: .7rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, .85);   /* stays legible on the water */
}
.rg-metric { color: var(--rg-faint); font-size: .74rem; letter-spacing: .02em; margin-top: .8rem; }
.rg-note { color: var(--rg-dim); font-size: .88rem; margin-top: .5rem; max-width: 60ch; }

/* Reservoir chips, sorted low -> high by the JS. */
.rg-list-wrap { grid-area: list; }
.rg-list-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .6rem; }
.rg-list-eyebrow { margin-bottom: 0; }
.rg-list-order { font-size: .7rem; color: var(--rg-faint); }
#rg-list { display: flex; flex-wrap: wrap; gap: .45rem; }

.rg-root .rg-ritem {
  display: inline-flex;
  gap: .45rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--rg-line);
  border-radius: 999px;
  padding: .3rem .75rem .3rem .6rem;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  transition: background-color .15s ease, border-color .15s ease;
}
.rg-root .rg-ritem:hover { background-color: var(--rg-panel); }
.rg-root .rg-ritem.rg-active { background-color: var(--rg-panel); border-color: var(--rg-healthy); box-shadow: 0 0 0 1px var(--rg-healthy); }
.rg-root .rg-ritem:focus-visible { outline: 2px solid var(--rg-healthy); outline-offset: 2px; }
.rg-root .rg-dot { width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); flex: none; }
.rg-root .rg-nm { font-size: .82rem; white-space: nowrap; }
.rg-root .rg-pc { font-size: .78rem; color: var(--rg-dim); font-weight: 600; }

.rg-lead { color: var(--rg-dim); }
.rg-swatch { font-weight: 600; }
.rg-swatch-low { color: var(--rg-critical); }
.rg-swatch-high { color: var(--rg-healthy); }
.rg-foot { color: var(--rg-faint); font-size: .82rem; line-height: 1.5; margin-top: .5rem; text-align: justify; }
/* Globe credit and sources. */
.rg-refs { margin-top: 1.25rem; }
.rg-refs .rg-foot { color: #6c757d; }

@media (prefers-reduced-motion: reduce) {
  .rg-tooltip { transition: none; }
  .rg-root .rg-ritem { transition: none; }
}

/* ENT FIGURES: vine figures (partly unused, kept for reuse) */
.ent-page {
  --ent-water: #2e6f8e;     /* research & validation */
  --ent-vine: #8fb37a;      /* sector network (kept distinct from the brand green) */
  --ent-gold: #b8862f;      /* public institutions */
  --ent-primary: #2f7d4f;   /* wineries & companies - site brand green */
  --ent-drought: #c1662f;   /* material suppliers */
  --ent-plum: #7a4b6e;      /* funders & foundations */
  --ent-ink-soft: #6c757d;
  --ent-line: #dee2e6;
  --ent-card: #fff;
  --ent-panel: #f4faf6;
  /* Warm figure background. */
  --ent-paper: #f4f1ea;
  --ent-paper-line: #d6cfc1;
  --ent-mono: var(--bs-font-sans-serif);          /* Montserrat, like the rest of the wiki */
}
.ent-page h3 { font-size: 1.15rem; color: #212529; margin-top: 2.1rem; }
.ent-page h4 {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ent-ink-soft);
  margin: 1.4rem 0 .6rem;
}
.ent-page .pe-article > h2:not(:first-of-type) { margin-top: 3rem; }

/* Key-numbers strip, standing in for the source page's hero stat band */
.ent-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 2rem;
}
.ent-stat {
  padding: .9rem 0 0;
  border-top: 2px solid var(--ent-line);
}
.ent-stat .ent-stat-num {
  display: block;
  font-weight: 700;
  font-size: 1.55rem;
  color: var(--ent-primary);
}
.ent-stat .ent-stat-label {
  font-size: .76rem;
  color: var(--ent-ink-soft);
  line-height: 1.35;
}
@media (max-width: 700px) {
  .ent-stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Colour key, shared by every diagram/legend below it */
.ent-color-key {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.3rem;
  margin: 1rem 0 1.5rem;
  padding: .75rem 1rem;
  background-color: var(--ent-panel);
  border: 1px solid var(--ent-line);
  border-radius: .6rem;
  font-size: .82rem;
  color: var(--ent-ink-soft);
}
.ent-color-key span { display: inline-flex; align-items: center; gap: .45rem; }
.ent-color-key .ent-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }

/* Text-free SVG figures with HTML labels. */
.ent-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ent-fig { margin: 1.6rem 0 1.9rem; }
.ent-fig-panel {
  background-color: var(--ent-paper);
  border: 1px solid var(--ent-paper-line);
  border-radius: .75rem;
  padding: 1.35rem 1.5rem 1.5rem;
}
.ent-vine-bar,
.ent-bunch-art,
.ent-network-art { display: block; width: 100%; height: auto; }
.ent-figcaption {
  font-family: var(--ent-mono);
  font-size: .74rem;
  line-height: 1.45;
  color: var(--ent-ink-soft);
  margin-top: .65rem;
}

/* Shared reveal primitives. */
.ent-draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  stroke-linecap: round;
  transition: stroke-dashoffset .95s cubic-bezier(.32, .72, .3, 1), opacity .25s ease;
  transition-delay: calc(var(--i, 0) * .085s), 0s;
}
.ent-fig.in-view .ent-draw { stroke-dashoffset: 0; }
.ent-pop {
  opacity: 0;
  transform: scale(.35);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity .4s ease, transform .55s cubic-bezier(.34, 1.56, .64, 1);
  transition-delay: calc(var(--i, 0) * .085s + .28s);
}
.ent-fig.in-view .ent-pop { opacity: 1; transform: scale(1); }
.ent-fig.is-linked .ent-pop { transition: opacity .2s ease; transition-delay: 0s; }

/* Dim unrelated marks while linking. */
.ent-fig.is-linked .ent-draw[data-key]:not(.is-lit),
.ent-fig.is-linked .ent-pop[data-key]:not(.is-lit) { opacity: .22; }
.ent-fig.is-linked .ent-legend-row:not(.is-lit) { opacity: .4; }

/* Gauge (used once, for the reservoir figure in the Executive Summary) */
.ent-gauge-row { display: flex; align-items: center; gap: 1.5rem; margin: 1.1rem 0; flex-wrap: wrap; }
.ent-gauge { width: 108px; flex: none; }
.ent-gauge-year { font-family: var(--ent-mono); font-size: 13px; fill: #212529; }
.ent-gauge-caption { max-width: 46ch; }
.ent-gauge-caption .ent-big {
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--ent-drought);
  display: block;
}
.ent-gauge-caption p { margin: .2rem 0 0; }

/* Figures 1 and 2: cards along a vine stem. */
.ent-vine-bar { margin-bottom: -4px; }
.ent-vine-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.ent-vine-card {
  display: flex;
  flex-direction: column;
  background-color: var(--ent-card);
  border: 1px solid var(--ent-paper-line);
  border-top: 3px solid var(--ent-accent, var(--ent-primary));
  border-radius: .6rem;
  padding: 1rem 1.1rem 1.15rem;
}
.ent-tag {
  display: block;
  font-family: var(--ent-mono);
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ent-accent, var(--ent-primary));
  margin-bottom: .35rem;
}
.ent-vine-card h4 {
  margin: 0 0 .4rem;
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
  color: #212529;
  font-weight: 600;
}
.ent-vine-card p { font-size: .89rem; color: var(--ent-ink-soft); margin: 0; }
/* The one-line "what came of it", which used to be 9px text inside the SVG */
.ent-outcome {
  display: block;
  margin-top: auto;
  padding-top: .7rem;
  border-top: 1px dashed var(--ent-paper-line);
  font-family: var(--ent-mono);
  font-size: .7rem;
  letter-spacing: .03em;
  color: var(--ent-ink-soft);
}
@media (max-width: 700px) {
  .ent-vine-bar { display: none; }
  .ent-vine-row {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    padding-left: 1.5rem;
    border-left: 2px solid var(--ent-vine);
  }
  .ent-vine-card { position: relative; }
  .ent-vine-card::before {
    content: "";
    position: absolute;
    left: -1.97rem;
    top: 1.05rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--ent-accent, var(--ent-primary));
    border: 2px solid var(--ent-paper);
  }
}

/* Figure 3: two branches of buds. */
.ent-branch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 2.25rem; }
.ent-branch-head {
  font-family: var(--ent-mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ent-branch, var(--ent-primary));
  margin: 0 0 .8rem;
}
.ent-branch-list { list-style: none; margin: 0; padding: 0 0 0 1.65rem; position: relative; }
.ent-branch-list::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5rem;
  bottom: .5rem;
  width: 2px;
  border-radius: 2px;
  background-color: var(--ent-branch, var(--ent-primary));
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform .85s cubic-bezier(.32, .72, .3, 1);
}
.ent-fig.in-view .ent-branch-list::before { transform: scaleY(1); }
.ent-branch-item { position: relative; padding: .55rem 0; font-size: .86rem; color: var(--ent-ink-soft); }
.ent-branch-item + .ent-branch-item { border-top: 1px solid var(--ent-paper-line); }
.ent-branch-item b { display: block; color: #212529; font-weight: 600; font-size: .92rem; }
.ent-bud {
  position: absolute;
  left: -2.13rem;
  top: .6rem;
  width: 17px;
  height: 17px;
  color: var(--ent-branch, var(--ent-primary));
}
@media (max-width: 700px) { .ent-branch-grid { grid-template-columns: 1fr; } }

/* Figure 4: sponsors as a grape bunch. */
.ent-bunch-fig { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 1.9rem; align-items: center; }
@media (max-width: 700px) {
  .ent-bunch-fig { grid-template-columns: 1fr; gap: 1.25rem; }
  .ent-bunch-art { max-width: 185px; margin: 0 auto; }
}

/* Legend rows, linked to the figure's marks by data-key */
.ent-legend-rows { list-style: none; margin: 0; padding: 0; }
.ent-legend-row {
  display: flex;
  align-items: baseline;
  gap: .7rem;
  padding: .5rem .55rem;
  font-size: .88rem;
  color: var(--ent-ink-soft);
  transition: opacity .2s ease, background-color .2s ease;
}
.ent-legend-row + .ent-legend-row { border-top: 1px solid var(--ent-paper-line); }
.ent-legend-row .ent-swatch {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex: none;
  transform: translateY(1px);
  background-color: var(--ent-accent, var(--ent-primary));
}
.ent-legend-row b { color: #212529; font-weight: 600; }
.ent-legend-row .ent-note { display: block; font-size: .8rem; margin-top: .1rem; }
.ent-fig .ent-legend-row.is-lit { background-color: #fff; border-radius: .35rem; }

/* Figure 5: stakeholder map. */
.ent-network-art { max-width: 400px; margin: 0 auto 1.5rem; }
.ent-network-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.ent-network-card {
  background-color: var(--ent-card);
  border: 1px solid var(--ent-paper-line);
  border-top: 3px solid var(--ent-accent, var(--ent-primary));
  border-radius: .5rem;
  padding: .75rem .85rem;
  transition: opacity .2s ease, box-shadow .2s ease;
}
.ent-network-card h4 { margin: 0 0 .2rem; font-size: .86rem; text-transform: none; letter-spacing: 0; color: #212529; font-weight: 600; }
.ent-network-card .ent-who { font-size: .73rem; color: var(--ent-accent, var(--ent-primary)); margin-bottom: .35rem; }
.ent-network-card p { margin: 0; font-size: .8rem; color: var(--ent-ink-soft); }
.ent-fig.is-linked .ent-network-card:not(.is-lit) { opacity: .4; }
.ent-network-card.is-lit { box-shadow: 0 2px 10px rgba(0, 0, 0, .09); }
@media (max-width: 900px) { .ent-network-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ent-network-cards { grid-template-columns: 1fr; } }

.ent-badge {
  display: inline-block;
  font-family: var(--ent-mono);
  font-size: .62rem;
  padding: .15rem .5rem;
  border-radius: 999px;
  background-color: #f1e1b8;
  color: #7a5a10;
  margin-left: .4rem;
  white-space: nowrap;
}

/* Tables */
.ent-table-wrap { overflow-x: auto; margin: 1.1rem 0 1.5rem; }
.ent-table { width: 100%; border-collapse: collapse; font-size: .86rem; background-color: var(--ent-card); }
.ent-table caption {
  text-align: left;
  font-family: var(--ent-mono);
  font-size: .74rem;
  color: var(--ent-ink-soft);
  margin-bottom: .5rem;
}
.ent-table th, .ent-table td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--ent-line); vertical-align: top; }
.ent-table thead th {
  font-family: var(--ent-mono);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #2f7d4f;
  background-color: var(--ent-panel);
  border-bottom: 2px solid var(--ent-primary);
}
.ent-table tbody tr:hover { background-color: var(--ent-panel); }
.ent-table .ent-mono-cell { font-family: var(--ent-mono); }

/* Go-to-market: four lanes */
.ent-pipeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin: 1.25rem 0; }
.ent-pipe-col { background-color: var(--ent-card); border: 1px solid var(--ent-line); border-radius: .6rem; padding: .9rem; }
.ent-pipe-col h4 { margin-top: 0; font-size: .74rem; border-bottom: 1px dashed var(--ent-line); padding-bottom: .5rem; }
.ent-pipe-col ul { list-style: none; margin: 0; padding: 0; font-size: .8rem; }
.ent-pipe-col li { padding: .4rem 0; border-bottom: 1px solid var(--ent-line); color: var(--ent-ink-soft); }
.ent-pipe-col li:last-child { border-bottom: none; }
.ent-pipe-col li b { display: block; color: #212529; font-weight: 600; }
@media (max-width: 900px) { .ent-pipeline { grid-template-columns: 1fr 1fr; } }

/* Business Model Canvas - classic 9-block layout via named grid areas */
.ent-bmc {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-areas:
    "partners activities value relationships segments"
    "partners resources  value channels      segments"
    "cost     cost        revenue revenue    revenue";
  gap: .6rem;
  margin: 1.25rem 0;
}
.ent-bmc .ent-cell { background-color: var(--ent-card); border: 1px solid var(--ent-line); border-radius: .6rem; padding: .8rem .9rem; font-size: .82rem; }
.ent-bmc .ent-cell h4 { margin: 0 0 .4rem; font-size: .7rem; letter-spacing: .05em; color: var(--ent-primary); }
.ent-bmc .ent-cell ul { margin: 0; padding-left: 1rem; }
.ent-bmc .ent-cell li { margin-bottom: .25rem; color: var(--ent-ink-soft); }
.ent-bmc .ent-cell--partners { grid-area: partners; }
.ent-bmc .ent-cell--activities { grid-area: activities; }
.ent-bmc .ent-cell--value { grid-area: value; }
.ent-bmc .ent-cell--relationships { grid-area: relationships; }
.ent-bmc .ent-cell--segments { grid-area: segments; }
.ent-bmc .ent-cell--resources { grid-area: resources; }
.ent-bmc .ent-cell--channels { grid-area: channels; }
.ent-bmc .ent-cell--cost { grid-area: cost; }
.ent-bmc .ent-cell--revenue { grid-area: revenue; }
/* Collapse the canvas below 1120px. */
@media (max-width: 1120px) {
  .ent-bmc {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "partners partners"
      "activities resources"
      "value value"
      "relationships channels"
      "segments segments"
      "cost cost"
      "revenue revenue";
  }
}
@media (max-width: 560px) {
  .ent-bmc {
    grid-template-columns: 1fr;
    grid-template-areas:
      "partners" "activities" "resources" "value"
      "relationships" "channels" "segments" "cost" "revenue";
  }
}

/* Budget bars */
.ent-budget-bars { margin: 1.25rem 0 .5rem; }
.ent-bar-row { display: grid; grid-template-columns: 160px 1fr 84px; align-items: center; gap: .6rem; margin-bottom: .6rem; font-size: .84rem; }
.ent-bar-track { background-color: var(--ent-line); border-radius: .3rem; height: 12px; overflow: hidden; }
.ent-bar-fill { height: 100%; border-radius: .3rem 0 0 .3rem; background-color: var(--ent-primary); }
.ent-bar-amt { font-family: var(--ent-mono); font-size: .78rem; text-align: right; color: var(--ent-ink-soft); }
@media (max-width: 575.98px) { .ent-bar-row { grid-template-columns: 108px 1fr 70px; } }

/* Timeline (distinct from the Education page's root timeline - plain rail) */
.ent-timeline { position: relative; margin: 1.5rem 0 1rem; padding-left: 1.5rem; border-left: 2px solid var(--ent-vine); }
.ent-tl-item { position: relative; margin-bottom: 1.5rem; }
.ent-tl-item:last-child { margin-bottom: 0; }
.ent-tl-item::before {
  content: "";
  position: absolute;
  left: -1.95rem;
  top: .15rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background-color: #fff;
  border: 2px solid var(--ent-vine);
}
.ent-tl-item.ent-now::before { background-color: var(--ent-vine); }
.ent-tl-date {
  font-family: var(--ent-mono);
  font-size: .72rem;
  color: var(--ent-primary);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ent-tl-item h4 { margin: .15rem 0 .25rem; text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 1.02rem; color: #212529; }
.ent-tl-item p { font-size: .88rem; color: var(--ent-ink-soft); margin: 0; }

/* Risk level dots, reused in the Risk Management table */
.ent-riskband { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .4rem; }
.ent-risk-hi { background-color: #a5303f; }
.ent-risk-med { background-color: var(--ent-drought); }
.ent-risk-lo { background-color: var(--ent-vine); }

/* Stakeholder relationships, spelled out under the Figure 5 map */
.ent-relationship-list { margin: .9rem 0 0; padding: 0; list-style: none; font-size: .85rem; }
.ent-relationship-list li { display: flex; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--ent-line); color: var(--ent-ink-soft); }
.ent-relationship-list li:last-child { border-bottom: none; }
.ent-relationship-list .ent-rel-dash { color: var(--ent-gold); flex: none; }
.ent-links-intro {
  margin: 1.4rem 0 .1rem;
  font-size: .82rem;
  color: var(--ent-ink-soft);
}
.ent-fig .ent-relationship-list li { padding-left: .55rem; border-radius: .35rem; }
.ent-fig.is-linked .ent-relationship-list li:not(.is-lit) { opacity: .4; }
.ent-fig .ent-relationship-list li.is-lit { background-color: #fff; }

/* Focus ring for linked marks. */
.ent-fig [data-key][tabindex]:focus-visible {
  outline: 2px solid var(--ent-primary);
  outline-offset: 2px;
  border-radius: .35rem;
}

@media (prefers-reduced-motion: reduce) {
  .ent-draw, .ent-pop, .ent-legend-row,
  .ent-network-card, .ent-branch-list::before { transition: none; }
}


/* ENTREPRENEURSHIP: editorial component system (.biz-*) */
.biz-page {
  --biz-ink: #212529;
  --biz-ink-soft: #6c757d;
  --biz-rule: #dee2e6;        /* hairline between rows */
  --biz-rule-strong: #adb5bd; /* hairline that closes a group */
  --biz-accent: #2f7d4f;      /* site brand green */
  --biz-accent-soft: #eaf6ee;
  --biz-signal: #c1662f;      /* funding gaps, medium risk */
  --biz-signal-hi: #a5303f;   /* high risk */
  --biz-mono: var(--bs-font-sans-serif);          /* Montserrat, like the rest of the wiki */
}
.biz-page > h2:not(:first-of-type) { margin-top: 3.25rem; }
.biz-page h3 { font-size: 1.12rem; color: var(--biz-ink); margin-top: 2.4rem; }
/* Bare h4 headings. */
.biz-page h4:not([class]) {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--biz-ink-soft);
  margin: 1.4rem 0 .6rem;
}

/* Ragged-right text inside components. */
.biz-page [class*="biz-"] p,
.biz-page [class*="biz-"] li,
.biz-page [class*="biz-"] td,
.biz-page [class*="biz-"] th {
  text-align: left;
  hyphens: manual;
}

/* Key figures: numeral, rule, caption. The Problem, Outreach, the MiniGEM survey. */
.biz-figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem 1.35rem;
  margin: 1.9rem 0 2.1rem;
}
.biz-figure-num {
  display: block;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--biz-accent);
  padding-bottom: .55rem;
  margin-bottom: .55rem;
  border-bottom: 1px solid var(--biz-rule-strong);
}
.biz-figure-num sup { font-size: .4em; top: -1em; }
.biz-figure-label { display: block; font-size: .72rem; line-height: 1.45; color: var(--biz-ink-soft); }
/* Two columns below 1120px. */
@media (max-width: 1120px) { .biz-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Definition rows: the at-a-glance facts and TAM/SAM/SOM. */
.biz-defs { margin: 1.5rem 0 1.7rem; }
.biz-def {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  gap: 0 1.6rem;
  padding: .9rem 0;
  border-top: 1px solid var(--biz-rule);
}
.biz-def:last-child { border-bottom: 1px solid var(--biz-rule); }
.biz-def-term {
  font-family: var(--biz-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--biz-accent);
  padding-top: .2rem;
}
/* The expanded name under an acronym, e.g. "Total Addressable Market" */
.biz-def-term span {
  display: block;
  margin-top: .3rem;
  font-family: var(--bs-font-sans-serif);
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.4;
  color: var(--biz-ink-soft);
}
.biz-def-desc { font-size: .89rem; line-height: 1.62; color: var(--biz-ink-soft); }
.biz-def-desc p { margin: 0; font-size: inherit; line-height: inherit; color: inherit; }
/* as a <dl>: Bootstrap's dd margin would open a gap under the row */
dd.biz-def-desc,
dd.biz-field-val { margin: 0; }
@media (max-width: 575.98px) {
  .biz-def { grid-template-columns: minmax(0, 1fr); gap: .45rem; }
}

/* Comparison entries. */
.biz-entries { margin: 1.5rem 0 1.7rem; }
.biz-entry { padding: 1.15rem 0 1.2rem; border-top: 1px solid var(--biz-rule); }
.biz-entry:last-child { border-bottom: 1px solid var(--biz-rule); }
.biz-entry-name { margin: 0 0 .7rem; font-size: .98rem; font-weight: 600; color: var(--biz-ink); }
.biz-fields { display: grid; grid-template-columns: 106px minmax(0, 1fr); gap: .45rem 1.3rem; }
.biz-field-label {
  font-family: var(--biz-mono);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--biz-ink-soft);
  padding-top: .18rem;
}
.biz-field-val { font-size: .87rem; line-height: 1.6; color: var(--biz-ink-soft); }
/* Our own entry. */
.biz-entry--ours { padding-left: 1.2rem; border-left: 3px solid var(--biz-accent); }
.biz-entry--ours .biz-entry-name { color: var(--biz-accent); }
.biz-entry--ours .biz-field-val { color: var(--biz-ink); }
@media (max-width: 575.98px) {
  .biz-fields { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
  .biz-field-val { margin-bottom: .55rem; }
  .biz-field-val:last-child { margin-bottom: 0; }
}
/* Four yes/no traits side by side, then a full-width field. */
.biz-fields--traits { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem 1.3rem; }
.biz-fields--traits .biz-field-label { display: block; padding-top: 0; margin-bottom: .3rem; }
.biz-fields--traits .biz-field-val { margin-bottom: 0; }
.biz-fields--traits .biz-level { white-space: normal; align-items: baseline; }
.biz-fields--traits .biz-level::before { transform: translateY(-.28em); }
.biz-fields--traits .biz-trait:last-child { grid-column: 1 / -1; padding-top: .7rem; border-top: 1px solid var(--biz-rule); }
@media (max-width: 1120px) { .biz-fields--traits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Meeting profiles: the three organisations we have already met. */
.biz-profiles { margin: 1.6rem 0 1.8rem; }
.biz-profile { padding: 1.3rem 0 1.4rem; border-top: 1px solid var(--biz-rule); }
.biz-profile:last-child { border-bottom: 1px solid var(--biz-rule); }
.biz-profile-kind {
  display: block;
  font-family: var(--biz-mono);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--biz-accent);
  margin-bottom: .35rem;
}
.biz-profile-name { margin: 0 0 .55rem; font-size: 1.02rem; font-weight: 600; color: var(--biz-ink); }
.biz-profile p { margin: 0; font-size: .89rem; line-height: 1.65; color: var(--biz-ink-soft); }
/* "What came of it" - a short accent rule, then the outcome, quiet and mono. */
.biz-outcome {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  margin-top: .9rem;
  font-family: var(--biz-mono);
  font-size: .69rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--biz-ink-soft);
}
.biz-outcome::before {
  content: "";
  flex: none;
  width: 26px;
  height: 2px;
  background-color: var(--biz-accent);
  transform: translateY(-.24em);
}
.biz-outcome b { color: var(--biz-ink); font-weight: 700; }

/* Rosters: grouped name lists (wineries, funders, suppliers). */
.biz-rosters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.1rem 2.6rem;
  margin: 1.6rem 0 1.8rem;
}
.biz-roster-head {
  margin: 0;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--biz-accent);
  font-family: var(--biz-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--biz-accent);
}
.biz-roster-list { list-style: none; margin: 0; padding: 0; }
.biz-roster-item {
  padding: .65rem 0;
  border-bottom: 1px solid var(--biz-rule);
  font-size: .85rem;
  line-height: 1.55;
  color: var(--biz-ink-soft);
}
.biz-roster-item b { display: block; color: var(--biz-ink); font-weight: 600; font-size: .91rem; }
/* one quiet line between the head and the list */
.biz-page .biz-roster-note { margin: .55rem 0 0; font-size: .82rem; line-height: 1.5; color: var(--biz-ink-soft); }
/* The official sponsor is marked with a rule under the words, not a pill. */
.biz-mark {
  display: inline-block;
  margin-left: .55rem;
  padding-bottom: .1rem;
  border-bottom: 2px solid var(--biz-signal);
  font-family: var(--biz-mono);
  font-size: .59rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--biz-signal);
  vertical-align: .18em;
}
/* ours rather than a sponsor's: the affirmative green */
.biz-mark--ours { border-bottom-color: var(--biz-accent); color: var(--biz-accent); }
@media (max-width: 700px) { .biz-rosters { grid-template-columns: minmax(0, 1fr); } }

/* Lessons: the editorial stand-in for a callout box. */
.biz-lessons { margin: 1.6rem 0 1.8rem; }
.biz-lesson { padding: .1rem 0 .1rem 1.3rem; border-left: 2px solid var(--biz-accent); margin-bottom: 1.5rem; }
.biz-lesson:last-child { margin-bottom: 0; }
.biz-lesson-head { display: block; margin-bottom: .4rem; font-size: .95rem; font-weight: 600; color: var(--biz-ink); }
.biz-lesson p { margin: 0; font-size: .88rem; line-height: 1.65; color: var(--biz-ink-soft); }
/* Unfinished-section note. */
.biz-page .biz-lesson--wip { border-left-color: var(--biz-signal); }
.biz-page .biz-lesson--wip .biz-lesson-head { color: var(--biz-signal); }

/* Business model canvas as a hairline grid. */
.biz-canvas {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-areas:
    "partners activities value relationships segments"
    "partners resources  value channels      segments"
    "cost     cost       revenue revenue     revenue";
  gap: 1px;
  margin: 1.6rem 0 1.8rem;
  background-color: var(--biz-rule);
  border: 1px solid var(--biz-rule);
}
.biz-cell { background-color: #fff; padding: .9rem .95rem 1rem; }
.biz-cell h4 {
  margin: 0 0 .55rem;
  font-family: var(--biz-mono);
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--biz-accent);
}
.biz-cell ul { list-style: none; margin: 0; padding: 0; }
.biz-cell li {
  position: relative;
  padding-left: .85rem;
  margin-bottom: .45rem;
  font-size: .78rem;
  line-height: 1.5;
  color: var(--biz-ink-soft);
}
.biz-cell li:last-child { margin-bottom: 0; }
/* A short dash instead of a bullet, to stay in the hairline language. */
.biz-cell li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 5px;
  height: 1px;
  background-color: var(--biz-rule-strong);
}
.biz-cell--partners { grid-area: partners; }
.biz-cell--activities { grid-area: activities; }
.biz-cell--value { grid-area: value; }
.biz-cell--relationships { grid-area: relationships; }
.biz-cell--segments { grid-area: segments; }
.biz-cell--resources { grid-area: resources; }
.biz-cell--channels { grid-area: channels; }
.biz-cell--cost { grid-area: cost; }
.biz-cell--revenue { grid-area: revenue; }
/* Collapse the canvas below 1120px. */
@media (max-width: 1120px) {
  .biz-canvas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "partners      partners"
      "activities    resources"
      "value         value"
      "relationships channels"
      "segments      segments"
      "cost          cost"
      "revenue       revenue";
  }
}
@media (max-width: 560px) {
  .biz-canvas {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "partners" "activities" "resources" "value"
      "relationships" "channels" "segments" "cost" "revenue";
  }
}

/* Ledger: income, expenses, balance. */
.biz-ledger { margin: 1.6rem 0 1.9rem; max-width: 430px; }
.biz-ledger-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: .65rem 0;
  border-top: 1px solid var(--biz-rule);
  font-size: .88rem;
  color: var(--biz-ink-soft);
}
.biz-ledger-amt { font-family: var(--biz-mono); font-size: .88rem; color: var(--biz-ink); white-space: nowrap; }
.biz-ledger-row--total {
  border-top: 2px solid var(--biz-ink);
  margin-top: .15rem;
  padding-top: .75rem;
  font-weight: 600;
  color: var(--biz-ink);
}
.biz-ledger-row--total .biz-ledger-amt { font-weight: 700; color: var(--biz-signal); }

/* Budget bars. */
.biz-bars { margin: 1.5rem 0 .6rem; }
.biz-bar {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr) 78px;
  align-items: center;
  gap: .95rem;
  margin-bottom: .8rem;
  font-size: .82rem;
  color: var(--biz-ink-soft);
}
.biz-bar:last-child { margin-bottom: 0; }
.biz-bar-track { height: 6px; background-color: var(--biz-rule); }
.biz-bar-fill { height: 100%; background-color: var(--biz-accent); transform-origin: left center; }
.biz-bar-amt { font-family: var(--biz-mono); font-size: .78rem; text-align: right; color: var(--biz-ink); }
@media (max-width: 575.98px) {
  .biz-bar { grid-template-columns: 96px minmax(0, 1fr) 66px; gap: .65rem; font-size: .76rem; }
}

/* Stages timeline. */
.biz-stages { margin: 1.7rem 0 1.1rem; padding-left: 1.6rem; border-left: 1px solid var(--biz-rule-strong); }
.biz-stage { position: relative; padding-bottom: 1.7rem; }
.biz-stage:last-child { padding-bottom: 0; }
.biz-stage::before {
  content: "";
  position: absolute;
  left: -1.98rem;
  top: .3rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #fbfcf8;   /* the page ground, so the rail is masked behind it */
  border: 1px solid var(--biz-rule-strong);
}
.biz-stage--now::before,
.biz-stage--final::before {
  background-color: var(--biz-accent);
  border-color: var(--biz-accent);
  box-shadow: 0 0 0 3px var(--biz-accent-soft);
}
.biz-stage-date {
  display: block;
  font-family: var(--biz-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--biz-ink-soft);
}
.biz-stage--now .biz-stage-date { color: var(--biz-accent); }
.biz-stage-title { margin: .28rem 0 .32rem; font-size: .98rem; font-weight: 600; color: var(--biz-ink); }
.biz-stage--now .biz-stage-title { font-weight: 700; }
.biz-stage p { margin: 0; font-size: .87rem; line-height: 1.62; color: var(--biz-ink-soft); }

/* Tables. */
.biz-table-wrap { overflow-x: auto; margin: 1.6rem 0 1.8rem; }
.biz-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.biz-table caption {
  caption-side: top;
  text-align: left;
  hyphens: manual;
  font-family: var(--biz-mono);
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--biz-ink-soft);
  padding-bottom: .75rem;
}
.biz-table th,
.biz-table td { padding: .75rem .9rem .75rem 0; border-bottom: 1px solid var(--biz-rule); vertical-align: top; }
.biz-table thead th {
  font-family: var(--biz-mono);
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--biz-ink-soft);
  border-bottom: 2px solid var(--biz-rule-strong);
  padding-bottom: .55rem;
}
.biz-table td { color: var(--biz-ink-soft); line-height: 1.6; }
/* First column as row header. */
.biz-table td:first-child,
.pe-article .biz-table tbody th { color: var(--biz-ink); padding-right: 1.3rem; }
.pe-article .biz-table tbody th { font-weight: 500; line-height: 1.6; }
.biz-table tbody tr:last-child td,
.pe-article .biz-table tbody tr:last-child th { border-bottom: none; }
/* Risk level: a short rule in the level's colour, rather than another dot. */
.biz-level { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; color: var(--biz-ink); }
.biz-level::before { content: ""; flex: none; width: 16px; height: 2px; background-color: currentColor; }
.biz-level--hi { color: var(--biz-signal-hi); }
.biz-level--med { color: var(--biz-signal); }
.biz-level--lo { color: var(--biz-accent); }
/* Status colours: green yes, orange partly, grey open. */
.biz-level--open { color: var(--biz-ink-soft); }
/* longer statuses wrap; the rule stays on the first line */
.biz-level--wrap { white-space: normal; align-items: baseline; }
.biz-level--wrap::before { transform: translateY(-.28em); }
.biz-page .biz-level::before { content: none; }
/* inline in running text, e.g. after a canvas bullet */
.biz-level--sm {
  gap: .3rem;
  margin-left: .3rem;
  font-family: var(--biz-mono);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  vertical-align: .08em;
}
.biz-level--sm::before { width: 10px; }
/* Caption under the table. */
.biz-table caption.pe-figcaption {
  caption-side: bottom;
  padding: .75rem 0 0;
  font-family: inherit;
  font-size: .85rem;
  letter-spacing: normal;
  text-transform: none;
  color: #6c757d;
}
.biz-table td .biz-level--wrap { font-weight: 600; }
/* Phones: stack table rows as blocks. */
@media (max-width: 575.98px) {
  .biz-table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .biz-table--stack,
  .biz-table--stack tbody,
  .biz-table--stack tr,
  .biz-table--stack tbody th,
  .biz-table--stack td { display: block; width: 100%; }
  /* as a block, the table ignores caption-side: flex order keeps it below */
  .biz-table--stack { display: flex; flex-direction: column; }
  .biz-table--stack caption { display: block; order: 1; }
  .biz-table--stack tr { padding: .8rem 0; border-bottom: 1px solid var(--biz-rule); }
  .biz-table--stack tbody tr:last-child { border-bottom: none; }
  .biz-table--stack td,
  .biz-table--stack tbody th,
  .biz-table--stack tbody tr:last-child td,
  .biz-table--stack tbody tr:last-child th { padding: .2rem 0; border-bottom: none; }
}
/* Phones: tighten table gutters. */
@media (max-width: 575.98px) {
  .biz-table { font-size: .8rem; }
  .biz-table th,
  .biz-table td { padding-right: .55rem; }
  .biz-table td:first-child,
  .pe-article .biz-table tbody th { padding-right: .8rem; }
  .biz-level { gap: .35rem; }
  .biz-level::before { width: 10px; }
}

/* Stakeholder groups, and the links between them. */
.biz-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2.6rem;
  margin: 1.6rem 0 1.8rem;
}
.biz-group { padding: 1.05rem 0 1.15rem; border-top: 1px solid var(--biz-rule); }
.biz-group-name { margin: 0 0 .25rem; font-size: .92rem; font-weight: 600; color: var(--biz-ink); }
.biz-group-who {
  display: block;
  margin-bottom: .5rem;
  font-family: var(--biz-mono);
  font-size: .67rem;
  line-height: 1.45;
  letter-spacing: .03em;
  color: var(--biz-accent);
}
.biz-group p { margin: 0; font-size: .84rem; line-height: 1.6; color: var(--biz-ink-soft); }
@media (max-width: 700px) { .biz-groups { grid-template-columns: minmax(0, 1fr); } }

.biz-sublabel {
  margin: 1.9rem 0 .25rem;
  font-family: var(--biz-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--biz-ink-soft);
}
/* Results page phase subheadings. */
.res-phase {
  margin: 2.1rem 0 .55rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.005em;
  color: #37481f;
}
/* First phase after the section rule doesn't need the full gap above. */
.pe-article hr + .res-phase { margin-top: 1.5rem; }

.biz-links { list-style: none; margin: 0; padding: 0; }
.biz-link {
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1fr);
  gap: .5rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--biz-rule);
  font-size: .85rem;
  line-height: 1.6;
  color: var(--biz-ink-soft);
}
.biz-link:first-child { border-top: 1px solid var(--biz-rule); }
.biz-link-arrow { color: var(--biz-accent); font-weight: 700; }
.biz-link b { color: var(--biz-ink); font-weight: 600; }

/* Row hover highlight. */
.biz-defs--hover .biz-def,
.biz-links--hover .biz-link { position: relative; isolation: isolate; }
.biz-defs--hover .biz-def::before,
.biz-links--hover .biz-link::before {
  content: "";
  position: absolute;
  inset: 0 -.75rem;
  z-index: -1;
  border-left: 2px solid var(--biz-accent);
  border-radius: 0 6px 6px 0;
  background: var(--biz-accent-soft);
  opacity: 0;
  transform: scaleX(.97);
  transform-origin: left center;
  transition: opacity .25s ease, transform .25s ease;
}
.biz-defs--hover .biz-def > *,
.biz-links--hover .biz-link > * { transition: transform .25s ease, color .25s ease; }
.biz-defs--hover .biz-def:hover::before,
.biz-links--hover .biz-link:hover::before { opacity: 1; transform: none; }
.biz-defs--hover .biz-def:hover > *,
.biz-links--hover .biz-link:hover > * { transform: translateX(.3rem); }
.biz-defs--hover .biz-def:hover .biz-def-desc,
.biz-links--hover .biz-link:hover > span:last-child { color: var(--biz-ink); }
@media (prefers-reduced-motion: reduce) {
  .biz-defs--hover .biz-def::before,
  .biz-links--hover .biz-link::before { transform: none; }
  .biz-defs--hover .biz-def:hover > *,
  .biz-links--hover .biz-link:hover > * { transform: none; }
}

/* Quotes with a drawn opening mark. */
.biz-quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem 2.4rem;
  margin: 1.4rem 0 1.9rem;
}
.biz-quote {
  margin: 0;
  padding-top: .85rem;
  border-top: 2px solid var(--biz-accent);
}
.biz-quote::before {
  content: "\201C";
  content: "\201C" / "";
  display: block;
  height: 1.7rem;
  font-family: var(--bs-font-sans-serif);
  font-size: 3rem;
  line-height: 1;
  color: var(--biz-accent);
}
.biz-quote p {
  margin: 0;
  font-size: 1rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--biz-ink);
}
@media (max-width: 700px) { .biz-quotes { grid-template-columns: minmax(0, 1fr); } }

/* Download button and its pending state. */
.biz-download-wrap { margin: 1.6rem 0 0; }
.biz-download {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem 1.25rem .7rem 1.05rem;
  border: 1px solid transparent;
  border-radius: .5rem;
  background-color: var(--biz-accent);
  color: #fff;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  box-shadow: 0 .2rem .6rem rgba(47, 125, 79, .18);
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
a.biz-download:hover,
a.biz-download:focus-visible {
  background-color: #245f3c;
  color: #fff;
  box-shadow: 0 .35rem .9rem rgba(47, 125, 79, .28);
  transform: translateY(-1px);
}
a.biz-download:focus-visible { outline: 2px solid #45b06c; outline-offset: 3px; }
.biz-download-icon { flex: none; }
.biz-download.is-pending {
  background-color: var(--biz-accent-soft);
  border: 1px dashed #b5dcc3;
  color: var(--biz-accent);
  box-shadow: none;
  cursor: default;
}
.biz-download-note { font-weight: 400; }
@media (prefers-reduced-motion: reduce) {
  .biz-download { transition: none; }
  a.biz-download:hover,
  a.biz-download:focus-visible { transform: none; }
}

/* "Read more" drawers. */
.biz-more { margin: 1rem 0 1.4rem; }
.biz-more > summary {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .25rem .1rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--biz-accent);
  list-style: none;
  cursor: pointer;
}
.biz-more > summary::-webkit-details-marker { display: none; }
.biz-more > summary::marker { content: ""; }
.biz-more > summary::after {
  content: "";
  width: .45rem;
  height: .45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}
.biz-more[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.biz-more > summary:hover,
.biz-more > summary:focus-visible { text-decoration: underline; text-underline-offset: .15em; }
.biz-more > summary:focus-visible { outline: 2px solid #45b06c; outline-offset: 2px; }
.biz-more-body { margin-top: .6rem; padding-left: 1.3rem; border-left: 1px solid var(--biz-rule-strong); }

/* SDG icons and colours. */
.sdg-tile--3,  [data-sdg="3"], [data-sdg="3"] + hr { --sdg: #4c9f38; --sdg-logo: url("https://static.igem.wiki/teams/6078/wiki/engagement/sustainability/good-health-well.avif"); }
.sdg-tile--4,  [data-sdg="4"], [data-sdg="4"] + hr { --sdg: #c5192d; --sdg-logo: url("https://static.igem.wiki/teams/6078/wiki/engagement/sustainability/logo4.avif"); }
.sdg-tile--5,  [data-sdg="5"], [data-sdg="5"] + hr { --sdg: #ff3a21; --sdg-logo: url("https://static.igem.wiki/teams/6078/wiki/engagement/sustainability/logo5.avif"); }
.sdg-tile--8,  [data-sdg="8"], [data-sdg="8"] + hr { --sdg: #a21942; --sdg-logo: url("https://static.igem.wiki/teams/6078/wiki/engagement/sustainability/sustainable-development-goal-8.avif"); }
.sdg-tile--12, [data-sdg="12"], [data-sdg="12"] + hr { --sdg: #bf8b2e; --sdg-logo: url("https://static.igem.wiki/teams/6078/wiki/engagement/sustainability/sustainable-development-goal-12.avif"); }
.sdg-tile--13, [data-sdg="13"], [data-sdg="13"] + hr { --sdg: #3f7e44; --sdg-logo: url("https://static.igem.wiki/teams/6078/wiki/engagement/sustainability/logo13.avif"); }.sdg-tile,
.sdg-h2::before {
  display: block;
  flex: none;
  border-radius: 6px;
  background: var(--sdg) var(--sdg-logo) center / cover no-repeat;
}

/* Goal headings with icon and coloured rule. */
.sdg-h2 { display: flex; align-items: center; gap: 1.1rem; }
.sdg-h2::before {
  content: "";
  width: 4.5rem;
  height: 4.5rem;
  box-shadow: 0 6px 16px -8px var(--sdg);
}
.sdg-h2 + hr { color: var(--sdg); opacity: .7; border-top-width: 2px; }

/* SDG overview grid. */
.sdg-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .9rem;
  margin: 1.8rem 0 2rem;
}
.sdg-card { display: block; border-radius: 6px; text-decoration: none; }
.sdg-tile {
  aspect-ratio: 1;
  width: 100%;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1),
              box-shadow .35s cubic-bezier(.22, 1, .36, 1),
              opacity .35s ease;
}
.sdg-card:hover .sdg-tile,
.sdg-card:focus-visible .sdg-tile {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 14px 24px -12px var(--sdg);
}
.sdg-grid:has(.sdg-card:hover) .sdg-card:not(:hover) .sdg-tile { opacity: .45; }
.sdg-card:focus-visible { outline: 2px solid #45b06c; outline-offset: 4px; }
@media (max-width: 700px) {
  .sdg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
  .sdg-h2::before { width: 3.5rem; height: 3.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sdg-tile { transition: opacity .2s ease; }
  .sdg-card:hover .sdg-tile,
  .sdg-card:focus-visible .sdg-tile { transform: none; }
}

.sdg-pending { font-style: italic; color: var(--biz-ink-soft); }

/* UN target band. */
.biz-page h3.sdg-target {
  margin: 2.6rem 0 1.1rem;
  padding: .95rem 1.1rem 1rem 1.2rem;
  border-left: 4px solid var(--sdg);
  border-radius: 0 4px 4px 0;
  background: color-mix(in srgb, var(--sdg) 8%, #fff);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
}
/* Two targets answered by the same text: stack the bands. */
.biz-page h3.sdg-target + h3.sdg-target { margin-top: -.6rem; }
.sdg-target-num {
  display: block;
  margin-bottom: .3rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--sdg) 75%, #000);
}

/* Joint section panel. */
.sdg-joint {
  margin: 1.8rem 0 2rem;
  padding: 1.1rem 1.25rem 1.2rem;
  border: 1px solid color-mix(in srgb, var(--sdg) 35%, #fff);
  border-radius: 6px;
}
.biz-page .sdg-joint-title { margin: 0 0 .2rem; font-size: 1rem; font-weight: 600; color: var(--biz-ink); }
.sdg-joint-by {
  margin: 0 0 .9rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--sdg) 75%, #000);
}
.sdg-joint p:last-child { margin-bottom: 0; }
.sdg-joint-note { font-size: .85rem; font-style: italic; color: var(--biz-ink-soft); }

/* Brundtland definition quote. */
.biz-quote.sdg-definition { margin: 1.4rem 0 1.7rem; }
.biz-page .sdg-definition p { font-size: 1.2rem; line-height: 1.55; }
/* A closing mark to match the opening one, set at the right under the text. */
.biz-quote.sdg-definition::after {
  content: "\201D";
  content: "\201D" / "";
  display: block;
  height: 1.7rem;
  margin-top: .35rem;
  text-align: right;
  font-family: var(--bs-font-sans-serif);
  font-size: 3rem;
  line-height: 1;
  color: var(--biz-accent);
}

/* Pillars of sustainable development. */
.sdg-pillars { max-width: 460px; margin: 1.6rem auto 1.9rem; }
.sdg-pillars svg { display: block; width: 100%; height: auto; font-family: var(--bs-font-sans-serif); }
.sdg-pillars-roof { fill: url(#sdg-pillars-marble); stroke: #a9aeb3; stroke-width: 1.25; stroke-linejoin: round; }
.sdg-pillars-tympanum { fill: none; stroke: #a9aeb3; stroke-width: 1; stroke-linejoin: round; opacity: .55; }
.sdg-pillars-frieze { fill: #fff; stroke: #a9aeb3; stroke-width: 1.25; }
.sdg-pillars-head { font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; fill: #245f3c; }
.sdg-pillars-architrave { fill: #e3e6e8; }
.sdg-pillars-step { fill: #fff; stroke: #a9aeb3; stroke-width: 1; }
.sdg-pillars-step--2 { fill: #f4f5f6; }
.sdg-pillars-step--3 { fill: #e9ebed; }
.sdg-pillar--eco { --pillar: #b8642f; --pillar-ink: #8f4a20; }
.sdg-pillar--soc { --pillar: #3a7ca5; --pillar-ink: #2c6283; }
.sdg-pillar--env { --pillar: #2f7d4f; --pillar-ink: #245f3c; }
.sdg-pillar-cap { fill: var(--pillar); }
.sdg-pillar-shaft { fill: color-mix(in srgb, var(--pillar) 12%, #fff); stroke: var(--pillar); stroke-width: 1.25; stroke-linejoin: round; }
.sdg-pillar-flute { fill: none; stroke: var(--pillar); stroke-width: 1; stroke-linecap: round; opacity: .35; }
.sdg-pillar-k { font-size: 16px; font-weight: 700; fill: var(--pillar-ink); }
.sdg-pillar-v { font-size: 13px; letter-spacing: .02em; fill: #5c636a; }

/* The UN SDG icon notice that closes the page, above the references. */
.biz-page .sdg-notice { margin: 3rem 0 0; padding-top: 1rem; border-top: 1px solid var(--biz-rule); }

/* A lesson that states a limit rather than a result: the warning orange. */
.biz-lesson--limit { border-left-color: var(--biz-signal); }
.biz-page .biz-more-body p { font-size: .95rem; line-height: 1.7; color: #343a40; text-align: justify; hyphens: auto; }
.biz-page .biz-more-body p:last-child { margin-bottom: 0; }
/* inside a component, the drawer takes the component's smaller type */
.biz-profile .biz-more-body p,
.biz-entry .biz-more-body p { font-size: .88rem; line-height: 1.65; color: var(--biz-ink-soft); }
.biz-profile .biz-more,
.biz-entry .biz-more { margin: .6rem 0 0; }
/* where the browser can, the drawer eases open instead of snapping */
@supports (interpolate-size: allow-keywords) {
  .biz-more { interpolate-size: allow-keywords; }
  .biz-more::details-content {
    height: 0;
    overflow: clip;
    transition: height .35s cubic-bezier(.22, 1, .36, 1), content-visibility .35s allow-discrete;
  }
  .biz-more[open]::details-content { height: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .biz-more > summary::after { transition: none; }
  .biz-more::details-content { transition: none; }
}

/* Entry summary line. */
.biz-entry > p { margin: 0; font-size: .89rem; line-height: 1.6; color: var(--biz-ink-soft); }
.biz-entry > p + .biz-fields { margin-top: .75rem; }

/* Past stages and compact rail. */
ol.biz-stages { list-style: none; }
.biz-stage--done::before { background-color: #b5dcc3; border-color: #b5dcc3; }
span.biz-stage-title { display: block; }
.biz-stages--compact .biz-stage { padding-bottom: 1rem; }

/* Bars with an average line. */
.biz-bars--avg .biz-bar-track { position: relative; }
.biz-bars--avg .biz-bar-track::after {
  content: "";
  position: absolute;
  top: -6px;
  bottom: -6px;
  left: calc(var(--avg) * 1%);
  border-left: 1px dashed var(--biz-ink);
}
.biz-page .biz-note { margin: .75rem 0 0; font-size: .8rem; line-height: 1.5; color: var(--biz-ink-soft); }
.biz-note--avg::before {
  content: "";
  display: inline-block;
  height: 1em;
  margin-right: .5rem;
  border-left: 1px dashed var(--biz-ink);
  vertical-align: -.15em;
}

/* Components inside a figure. */
.biz-page .pe-figure > [class*="biz-"],
.biz-page .pe-figure > [class*="pk-"] { text-align: left; }
.biz-page .pe-figure > :first-child { margin-top: 0; }
.biz-page .pe-figure > :has(+ figcaption) { margin-bottom: 0; }

/* Scroll reveal, armed by reveal.js. */
.biz-page .reveal-armed[data-reveal] > *,
.biz-page .reveal-armed[data-reveal="block"] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s cubic-bezier(.22, 1, .36, 1),
              transform .5s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--biz-step, 0s);
}
.biz-page .reveal-armed[data-reveal].reveal-in > *,
.biz-page .reveal-armed[data-reveal="block"].reveal-in { opacity: 1; transform: none; }

/* "block" reveals move as one. */
.biz-page .reveal-armed[data-reveal="block"] > * { opacity: 1; transform: none; transition: none; }

.biz-page [data-reveal] > :nth-child(2) { --biz-step: .06s; }
.biz-page [data-reveal] > :nth-child(3) { --biz-step: .12s; }
.biz-page [data-reveal] > :nth-child(4) { --biz-step: .18s; }
.biz-page [data-reveal] > :nth-child(5) { --biz-step: .24s; }
.biz-page [data-reveal] > :nth-child(n + 6) { --biz-step: .3s; }

/* Bars grow from the left. */
.biz-page .reveal-armed[data-reveal] .biz-bar-fill {
  transform: scaleX(0);
  transition: transform .7s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--biz-step, 0s);
}
.biz-page .reveal-armed[data-reveal].reveal-in .biz-bar-fill { transform: scaleX(1); }

/* Interactive figures (biz-page.js). */

/* shared frame: the .pe-figure-img hairline */
.biz-page .pk-map,
.biz-page .pk-pos,
.biz-page .pk-vpc,
.biz-page .pk-bmc,
.biz-page .pk-bmc-summary {
  border: 1px solid var(--biz-rule);
  border-radius: .75rem;
  background: #fff;
}

/* Stakeholder map artboard. */
.biz-page .pk-map { overflow: hidden; }
.biz-page .pk-map-fit { position: relative; width: 1920px; transform-origin: top left; }

/* Stakeholder nodes. */
.biz-page .pk-node {
  --node: var(--biz-ink-soft);
  position: absolute; box-sizing: border-box; padding: 6px 10px;
  display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center;
  text-align: center; cursor: default;
  font-size: 19px; line-height: 22px; color: var(--biz-ink);
  background: color-mix(in srgb, var(--node) 13%, #fff);
  border: 2px solid color-mix(in srgb, var(--node) 60%, #fff);
  border-radius: 22px;
  transition: opacity .2s;
}
.biz-page .pk-node:focus-visible { outline: 4px solid #45b06c; outline-offset: 5px; }
.biz-page .pk-node--policy   { --node: #b8862f; }  /* ent-gold */
.biz-page .pk-node--funding  { --node: #7a4b6e; }  /* ent-plum */
.biz-page .pk-node--research { --node: #2e6f8e; }  /* ent-water */
.biz-page .pk-node--tech     { --node: #c1662f; }  /* ent-drought */
.biz-page .pk-node--wine     { --node: #8fb37a; }  /* ent-vine */
.biz-page .pk-node--users    { --node: #2f7d4f; }  /* ent-primary */
.biz-page .pk-node--core {
  background: var(--biz-accent); border-color: var(--biz-accent); color: #fff;
  font-size: 30px; font-weight: 700; line-height: 1.1;
  box-shadow: 0 0 0 7px var(--biz-accent-soft);
}
.biz-page .pk-node-sub { font-size: 15px; color: var(--biz-ink-soft); }
.biz-page .pk-node-cap { font-size: 16px; line-height: 18px; }
/* legend swatch: the node's tint and rule in miniature */
.biz-page .pk-swatch {
  display: inline-block; width: 16px; height: 16px; border-radius: 5px;
  background: color-mix(in srgb, var(--node) 13%, #fff);
  border: 2px solid color-mix(in srgb, var(--node) 60%, #fff);
}

/* business model canvas (Figure 5) */
.biz-page .pk-bmc-wide { width: 100%; margin: 1.9rem 0 .5rem; }
.biz-page .pk-bmc { position: relative; overflow: hidden; color: var(--biz-ink); }
.biz-page .pk-bmc-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem 1.4rem;
  padding: .85rem 1.1rem; background: var(--biz-accent-soft); border-bottom: 1px solid var(--biz-rule);
}
.biz-page .pk-bmc-title { margin: 0; font-weight: 700; font-size: 1.02rem; line-height: 1.2; color: var(--biz-ink); text-align: left; }
.biz-page .pk-bmc-filter { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; border: 0; }
.biz-page .pk-bmc-filter legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* pills: the .pe-eyebrow recipe as a button; pressed = solid green */
.biz-page .pk-bmc-filter button,
.biz-page .pk-bmc-zoom {
  font: inherit; font-size: .72rem; font-weight: 600; letter-spacing: .03em; line-height: 1.4; cursor: pointer;
  padding: .3rem .8rem; color: var(--biz-accent); background: #fff;
  border: 1px solid #b5dcc3; border-radius: 999px;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.biz-page .pk-bmc-filter button:hover,
.biz-page .pk-bmc-zoom:hover { background: var(--biz-accent-soft); }
.biz-page .pk-bmc-filter button[aria-pressed="true"] {
  background: var(--biz-accent); border-color: var(--biz-accent); color: #fff;
}
.biz-page .pk-bmc-filter button:focus-visible,
.biz-page .pk-bmc-zoom:focus-visible { outline: 2px solid #45b06c; outline-offset: 2px; }

/* Canvas grid. */
.biz-page .pk-bmc-grid {
  display: grid; gap: 1px; background: var(--biz-rule);
  grid-template-columns: repeat(10, minmax(0, 1fr));
  grid-template-areas:
    "kp kp ka ka vp vp cr cr cs cs"
    "kp kp kr kr vp vp ch ch cs cs"
    "co co co co co rv rv rv rv rv";
}
.biz-page .pk-blk { background: #fff; padding: .95rem 1rem 1.05rem; min-width: 0; }
.biz-page .pk-blk[data-a="kp"] { grid-area: kp; }
.biz-page .pk-blk[data-a="ka"] { grid-area: ka; }
.biz-page .pk-blk[data-a="kr"] { grid-area: kr; }
.biz-page .pk-blk[data-a="vp"] { grid-area: vp; background: #f4faf6; }
.biz-page .pk-blk[data-a="cr"] { grid-area: cr; }
.biz-page .pk-blk[data-a="ch"] { grid-area: ch; }
.biz-page .pk-blk[data-a="cs"] { grid-area: cs; }
.biz-page .pk-blk[data-a="co"] { grid-area: co; }
.biz-page .pk-blk[data-a="rv"] { grid-area: rv; }
/* block names: the mono label of .biz-cell h4 */
.biz-page .pk-blk h3 {
  margin: 0; font-family: var(--biz-mono); font-size: .66rem; font-weight: 700; line-height: 1.35;
  letter-spacing: .08em; text-transform: uppercase; color: var(--biz-accent);
}
.biz-page .pk-blk .q { display: block; margin: .2rem 0 .7rem; font-size: .75rem; line-height: 1.4; color: var(--biz-ink-soft); }
.biz-page .pk-blk ul { list-style: none; margin: 0; padding: 0; }
.biz-page .pk-blk li {
  position: relative; padding-left: .95rem; margin: 0 0 .5rem; font-size: .8rem; line-height: 1.5;
  color: var(--biz-ink-soft); text-align: left; hyphens: manual; transition: opacity .25s ease;
}
.biz-page .pk-blk li:last-child { margin-bottom: 0; }
/* horizon marker: filled green = the project today, outlined orange = a future product */
.biz-page .pk-blk li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; border-radius: 1px;
}
.biz-page .pk-blk li[data-h="now"]::before { background: var(--biz-accent); }
.biz-page .pk-blk li[data-h="later"]::before { border: 1.5px solid var(--biz-signal); }
.biz-page .pk-blk li b { font-weight: 600; color: var(--biz-ink); }

/* filtering */
.biz-page .pk-bmc[data-show="now"] li[data-h="later"],
.biz-page .pk-bmc[data-show="later"] li[data-h="now"] { opacity: .22; }

/* legend */
.biz-page .pk-bmc-key {
  display: flex; flex-wrap: wrap; gap: .45rem 1.3rem; align-items: center; margin: 0;
  padding: .75rem 1.1rem .85rem; border-top: 1px solid var(--biz-rule); font-size: .75rem; line-height: 1.5;
  color: var(--biz-ink-soft); text-align: left;
}
.biz-page .pk-bmc-key > span { display: inline-flex; align-items: center; gap: .45rem; }
.biz-page .pk-bmc-key i { display: inline-block; width: 8px; height: 8px; border-radius: 1px; }
.biz-page .pk-bmc-key i.now { background: var(--biz-accent); }
.biz-page .pk-bmc-key i.later { border: 1.5px solid var(--biz-signal); }
.biz-page .pk-bmc-key .biz-level--sm { margin-left: 0; }

/* Canvas responds to its container width. */
.biz-page .pk-bmc-fold { border: 0; margin: 0; container-type: inline-size; container-name: bmc; }
@container bmc (max-width: 1020px) {
  .biz-page .pk-bmc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "vp cs" "ch cr" "rv rv" "ka kr" "kp kp" "co co";
  }
}
@container bmc (max-width: 640px) {
  .biz-page .pk-bmc-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "cs" "vp" "ch" "cr" "rv" "ka" "kr" "kp" "co";
  }
  .biz-page .pk-bmc-head { padding: .75rem .9rem; }
  .biz-page .pk-blk { padding: .85rem .9rem .95rem; }
}

/* Collapsed canvas bar. */
.biz-page .pk-bmc-summary {
  list-style: none; cursor: pointer; display: grid;
  grid-template-columns: 120px 1fr auto; align-items: center; gap: 0 1.2rem;
  padding: .85rem 1.1rem; transition: background-color .2s ease;
}
.biz-page .pk-bmc-summary::-webkit-details-marker { display: none; }
.biz-page .pk-bmc-summary::marker { content: ""; }
.biz-page .pk-bmc-summary:hover { background: #f4faf6; }
.biz-page .pk-bmc-summary:focus-visible { outline: 2px solid #45b06c; outline-offset: 3px; }
.biz-page .pk-bmc-mini {
  display: grid; gap: 2px; height: 52px; grid-template-columns: repeat(10, 1fr);
  grid-template-areas:
    "kp kp ka ka vp vp cr cr cs cs"
    "kp kp kr kr vp vp ch ch cs cs"
    "co co co co co rv rv rv rv rv";
}
.biz-page .pk-bmc-mini span { border-radius: 2px; background: var(--biz-accent-soft); border: 1px solid #b5dcc3; }
.biz-page .pk-bmc-mini span[data-a="kp"] { grid-area: kp; }
.biz-page .pk-bmc-mini span[data-a="ka"] { grid-area: ka; }
.biz-page .pk-bmc-mini span[data-a="kr"] { grid-area: kr; }
.biz-page .pk-bmc-mini span[data-a="vp"] { grid-area: vp; background: var(--biz-accent); border-color: var(--biz-accent); }
.biz-page .pk-bmc-mini span[data-a="cr"] { grid-area: cr; }
.biz-page .pk-bmc-mini span[data-a="ch"] { grid-area: ch; }
.biz-page .pk-bmc-mini span[data-a="cs"] { grid-area: cs; }
.biz-page .pk-bmc-mini span[data-a="co"] { grid-area: co; }
.biz-page .pk-bmc-mini span[data-a="rv"] { grid-area: rv; }
.biz-page .pk-bmc-summary-txt b { display: block; font-weight: 700; font-size: 1rem; line-height: 1.25; color: var(--biz-ink); }
.biz-page .pk-bmc-summary-txt > span { display: block; margin-top: .2rem; font-size: .8rem; line-height: 1.45; color: var(--biz-ink-soft); }
/* the cue: the solid .biz-download button, with a chevron */
.biz-page .pk-bmc-cue {
  display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap;
  padding: .5rem 1rem; border-radius: 999px;
  background: var(--biz-accent); color: #fff;
  font-size: .8rem; font-weight: 600; line-height: 1.2;
  box-shadow: 0 .2rem .6rem rgba(47, 125, 79, .18);
  transition: background-color .2s ease, box-shadow .2s ease;
}
.biz-page .pk-bmc-cue::after {
  content: ""; width: 7px; height: 7px; flex: none;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .2s ease;
}
.biz-page .pk-bmc-summary:hover .pk-bmc-cue { background: #245f3c; box-shadow: 0 .35rem .9rem rgba(47, 125, 79, .28); }
.biz-page .pk-bmc-fold[open] .pk-bmc-cue::after { transform: translateY(2px) rotate(-135deg); }
.biz-page .pk-bmc-cue .shut { display: none; }
.biz-page .pk-bmc-fold[open] .pk-bmc-cue .open { display: none; }
.biz-page .pk-bmc-fold[open] .pk-bmc-cue .shut { display: inline; }
.biz-page .pk-bmc-fold[open] .pk-bmc-summary { margin-bottom: 1rem; }
@media (max-width: 620px) {
  .biz-page .pk-bmc-summary { grid-template-columns: 1fr; gap: .7rem; padding: .8rem .9rem; }
  .biz-page .pk-bmc-mini { display: none; }
  .biz-page .pk-bmc-cue { justify-self: start; }
}

/* Full-screen canvas. */
.biz-page .pk-bmc-fold.is-full {
  position: fixed; inset: 0; z-index: 9999; margin: 0; padding: 14px;
  overflow: auto; background: #fff; -webkit-overflow-scrolling: touch;
}
.biz-page .pk-bmc-fold.is-full .pk-bmc-summary { display: none; }
body.pk-no-scroll { overflow: hidden; }

/* positioning map (Figure 8) */
.biz-page .pk-pos { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: .6rem .75rem; }
.biz-page .pk-pos svg { display: block; width: 100%; min-width: 560px; height: auto; font-family: inherit; }
.biz-page .pk-pos-zone { fill: var(--biz-accent-soft); }
.biz-page .pk-pos-guide { fill: none; stroke: var(--biz-rule-strong); stroke-width: 1.2; stroke-dasharray: 4 6; }
.biz-page .pk-pos-axis { fill: none; stroke: var(--biz-ink); stroke-width: 1.6; stroke-linecap: round; }
.biz-page .pk-pos-arrow { fill: var(--biz-ink); }
.biz-page .pk-pos-axis-t { font-size: 16px; font-weight: 600; fill: var(--biz-ink); }
.biz-page .pk-pos-quad {
  font-family: var(--biz-mono); font-size: 12px; font-weight: 700; fill: var(--biz-ink-soft);
  letter-spacing: .08em; text-transform: uppercase;
}
.biz-page .pk-pos-note { font-size: 16px; font-weight: 700; fill: var(--biz-accent); }
.biz-page .pk-pos-pt circle { fill: #fff; stroke: var(--biz-ink-soft); stroke-width: 2; }
.biz-page .pk-pos-pt text { font-size: 14.5px; fill: var(--biz-ink); }
.biz-page .pk-pos-pt.is-us circle { fill: var(--biz-accent); stroke: #fff; stroke-width: 3; }
.biz-page .pk-pos-pt.is-us text { font-weight: 700; font-size: 17px; fill: var(--biz-accent); }
.biz-page .pk-pos-pt.is-us text.sub { font-size: 13.5px; font-weight: 400; font-style: italic; fill: var(--biz-ink-soft); }

/* Value proposition canvas. */
.biz-page .pk-vpc { display: grid; gap: .55rem; padding: 1rem 1.1rem 1.1rem; }
.biz-page .pk-vpc__heads,
.biz-page .pk-vpc__row { display: grid; grid-template-columns: minmax(0, 1fr) 3.25rem minmax(0, 1fr); }
.biz-page .pk-vpc__head {
  display: flex; align-items: center; gap: .6rem; margin: 0 0 .35rem;
  font-family: var(--biz-mono); font-size: .68rem; font-weight: 700; line-height: 1.35;
  letter-spacing: .08em; text-transform: uppercase; color: var(--biz-ink); text-align: left;
}
.biz-page .pk-vpc__head small {
  display: block; margin-top: .15rem; font-family: var(--bs-font-sans-serif); font-size: .75rem;
  font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--biz-ink-soft);
}
.biz-page .pk-vpc__head--profile { grid-column: 3; }
.biz-page .pk-glyph { flex: none; display: inline-block; width: .9rem; height: .9rem; border: 2px solid currentColor; }
.biz-page .pk-glyph--square { border-radius: 2px; color: var(--biz-accent); }
.biz-page .pk-glyph--circle { border-radius: 50%; color: var(--biz-ink-soft); }
.biz-page .pk-vpc__row { border-radius: .5rem; }
.biz-page .pk-vpc__row:focus-visible { outline: 2px solid #45b06c; outline-offset: 4px; }
.biz-page .pk-vpc__cell {
  padding: .9rem 1rem 1rem; border: 1px solid var(--biz-rule);
  transition: border-color .25s ease, box-shadow .25s ease, opacity .25s ease;
}
.biz-page .pk-vpc__cell--map { border-radius: 4px; background: #f4faf6; }
.biz-page .pk-vpc__cell--profile { border-radius: 1.5rem; background: #f8f9fa; }
.biz-page .pk-vpc__title {
  display: flex; align-items: center; gap: .5rem; margin: 0 0 .55rem;
  font-family: var(--biz-mono); font-size: .66rem; font-weight: 700; line-height: 1.35;
  letter-spacing: .08em; text-transform: uppercase; color: var(--biz-accent); text-align: left;
}
.biz-page .pk-vpc__cell--profile .pk-vpc__title { color: var(--biz-ink); }
.biz-page .pk-vpc__title .pk-glyph { width: .7rem; height: .7rem; }
.biz-page .pk-vpc__cell ul { margin: 0; padding: 0; list-style: none; }
.biz-page .pk-vpc__cell li {
  position: relative; margin: 0 0 .4rem; padding-left: .95rem;
  font-size: .82rem; line-height: 1.5; color: var(--biz-ink-soft); text-align: left; hyphens: manual;
}
.biz-page .pk-vpc__cell li:last-child { margin-bottom: 0; }
.biz-page .pk-vpc__cell li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; }
.biz-page .pk-vpc__cell--map li::before { border-radius: 1px; background: var(--biz-accent); }
.biz-page .pk-vpc__cell--profile li::before { border-radius: 50%; border: 1.5px solid var(--biz-ink-soft); }
.biz-page .pk-vpc__fit {
  position: relative; align-self: center; height: 1px; margin: 0 .3rem;
  background: var(--biz-rule-strong); transition: background-color .25s ease;
}
.biz-page .pk-vpc__fit::before,
.biz-page .pk-vpc__fit::after {
  content: ""; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -3.5px;
  border-radius: 50%; background: inherit;
}
.biz-page .pk-vpc__fit::before { left: -3px; }
.biz-page .pk-vpc__fit::after { right: -3px; }
.biz-page .pk-vpc__row:hover .pk-vpc__cell,
.biz-page .pk-vpc__row:focus-visible .pk-vpc__cell { border-color: var(--biz-accent); box-shadow: 0 0 0 3px var(--biz-accent-soft); }
.biz-page .pk-vpc__row:hover .pk-vpc__fit,
.biz-page .pk-vpc__row:focus-visible .pk-vpc__fit { background: var(--biz-accent); }
.biz-page .pk-vpc:has(.pk-vpc__row:hover) .pk-vpc__row:not(:hover) .pk-vpc__cell,
.biz-page .pk-vpc:has(.pk-vpc__row:focus-visible) .pk-vpc__row:not(:focus-visible) .pk-vpc__cell { opacity: .45; }
@media (max-width: 767.98px) {
  .biz-page .pk-vpc { gap: 1.1rem; }
  .biz-page .pk-vpc__heads { display: none; }
  .biz-page .pk-vpc__row { grid-template-columns: minmax(0, 1fr); }
  .biz-page .pk-vpc__fit { justify-self: center; width: 1px; height: 1.1rem; margin: 0; }
  .biz-page .pk-vpc__fit::before { top: -3px; left: 50%; margin: 0 0 0 -3.5px; }
  .biz-page .pk-vpc__fit::after { top: auto; bottom: -3px; left: 50%; right: auto; margin: 0 0 0 -3.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .biz-page .pk-node,
  .biz-page .pk-blk li,
  .biz-page .pk-bmc-filter button,
  .biz-page .pk-bmc-zoom,
  .biz-page .pk-bmc-summary,
  .biz-page .pk-bmc-cue,
  .biz-page .pk-bmc-cue::after,
  .biz-page .pk-vpc__cell,
  .biz-page .pk-vpc__fit { transition: none; }
}
@media print {
  .biz-page .pk-bmc-filter,
  .biz-page .pk-bmc-zoom { display: none; }
  .biz-page .pk-bmc li { opacity: 1 !important; }
}

/* EDUCATION: JUMP CARDS */
.edu-jump {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 56rem;
  margin: 2.75rem auto .5rem;
}
.edu-jump-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: 1.35rem 3rem 1.35rem 1.5rem;
  border: 1px solid #d6e2cc;
  border-radius: 14px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(55, 72, 31, .06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
/* a downward chevron on the right: "this takes you further down the page" */
.edu-jump-card::after {
  content: "";
  position: absolute;
  right: 1.4rem;
  top: 50%;
  width: .6rem;
  height: .6rem;
  border-right: 2px solid #2f7d4f;
  border-bottom: 2px solid #2f7d4f;
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
.edu-jump-card:hover,
.edu-jump-card:focus-visible {
  border-color: #9cc39f;
  box-shadow: 0 6px 18px rgba(55, 72, 31, .1);
  transform: translateY(-2px);
  color: inherit;
}
.edu-jump-card:hover::after,
.edu-jump-card:focus-visible::after { transform: translateY(-40%) rotate(45deg); }
.edu-jump-card:focus-visible { outline: 2px solid #45b06c; outline-offset: 3px; }
.edu-jump-kicker {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #2f7d4f;
}
.edu-jump-title { font-size: 1.3rem; font-weight: 700; line-height: 1.2; color: #37481f; }
.edu-jump-text { font-size: .9rem; line-height: 1.5; color: #6c757d; }
/* the overview's anchor clears the fixed navbar, like h2[id] does */
#edu-overview { scroll-margin-top: 90px; }
/* the cards glide to their section rather than jumping */
html:has(.edu-jump) { scroll-behavior: smooth; }
@media (max-width: 575.98px) {
  .edu-jump { grid-template-columns: minmax(0, 1fr); gap: .9rem; margin-top: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.edu-jump) { scroll-behavior: auto; }
  .edu-jump-card,
  .edu-jump-card::after { transition: none; }
  .edu-jump-card:hover,
  .edu-jump-card:focus-visible { transform: none; }
}

/* MODEL: PART DIVIDER */
#protein-engineering,
#biocontainment { scroll-margin-top: 90px; }
/* Last entry of each part's Contents sidebar: a jump to the other part */
.model-toc-part {
  display: block;
  margin: .25rem 0 .35rem;
  padding: .6rem .65rem .35rem;
  border-top: 2px solid #eaf6ee;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.35;
  color: #37481f;
  text-decoration: none;
}
.model-toc-part span {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #2f7d4f;
}
.model-toc-part::after { content: " \2192"; }
/* Part 2's sidebar puts the way back to Part 1 above its own list */
.model-toc-part--top {
  margin: 0 0 .25rem;
  padding: .35rem .65rem .6rem;
  border-top: none;
  border-bottom: 2px solid #eaf6ee;
}
.model-toc-part--top::after { content: " \2191"; }   /* Part 1 is above */
.model-toc-part:hover,
.model-toc-part:focus-visible { color: #2f7d4f; }
.model-part {
  max-width: 72rem;
  margin: 5rem auto 1rem;
  padding-top: 3rem;
  border-top: 1px solid #d6e2cc;
  text-align: center;
}
.model-part-banner {
  display: block;
  width: 100%;
  height: clamp(140px, 22vw, 240px);
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 1.75rem;
}
.model-part-text { max-width: 46rem; margin: 0 auto; }
.model-part-text p { text-align: center; hyphens: manual; }   /* the global p rule justifies */
.model-part-kicker {
  margin: 0 0 .35rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #2f7d4f;
}
.model-part-title {
  margin: 0 0 .6rem;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  color: #37481f;
}
.model-part-lead { margin: 0; font-size: 1.05rem; line-height: 1.6; color: #6c757d; }
@media (max-width: 575.98px) {
  .model-part { margin-top: 3.5rem; padding-top: 2rem; }
}

/* EDUCATION OVERVIEW: activity chapters */
.edu-act { margin-top: 2.6rem; }
/* Heavier rule between activities. */
.edu-act + .edu-act {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 2px solid var(--biz-rule-strong);
}
.edu-act-head { margin-bottom: 1.9rem; }
/* in the site's own Montserrat, not the .biz-* monospace */
.edu-act-kicker {
  display: block;
  margin-bottom: .35rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--biz-accent);
}
/* Activity title. */
.edu-act .edu-act-title {
  margin: 0 0 1.1rem;
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: #37481f;
}
.edu-act-facts {
  margin: 0;
  padding: .7rem 0;
  border-top: 1px solid var(--biz-rule-strong);
  border-bottom: 1px solid var(--biz-rule);
}
.edu-act-fact {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 0 1.4rem;
  padding: .3rem 0;
}
/* Montserrat too, like the kicker above, not the .biz-* monospace */
.edu-act-fact dt {
  padding-top: .2rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--biz-ink-soft);
}
.edu-act-fact dd { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--biz-ink); }
@media (max-width: 575.98px) {
  .edu-act-fact { grid-template-columns: minmax(0, 1fr); gap: .1rem; padding: .4rem 0; }
}

/* "Read more" as an outlined button. */
.edu-act .biz-more { margin: 1.6rem 0 2rem; }
.edu-act .biz-more > summary {
  gap: .75rem;
  padding: .85rem 1.4rem;
  border: 2px solid var(--biz-accent);
  border-radius: 999px;
  background: #eef6ef;
  font-size: 1.02rem;
  line-height: 1.35;
  transition: background-color .2s ease, color .2s ease;
}
.edu-act .biz-more > summary::after { width: .55rem; height: .55rem; flex: none; }
.edu-act .biz-more > summary:hover,
.edu-act .biz-more > summary:focus-visible {
  background: var(--biz-accent);
  color: #fff;
  text-decoration: none;
}
.edu-act .biz-more > summary:focus-visible { outline-offset: 3px; }
.edu-act .biz-more[open] > summary { margin-bottom: 1.2rem; }
@media (max-width: 575.98px) {
  .edu-act .biz-more > summary { padding: .75rem 1.1rem; font-size: .95rem; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .edu-act .biz-more > summary { transition: none; }
}

/* Stage titles in an activity. */
.edu-act .biz-stage-title {
  margin: 0 0 .32rem;
  font-size: .98rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  color: var(--biz-ink);
}
.edu-act .biz-stage--final .biz-stage-title { font-weight: 700; }

/* Activity subheadings. */
.edu-act h3 { font-weight: 700; }

/* Narrower activity photos. */
.edu-act .pe-figure { max-width: 680px; }

/* Row of same-height photos. */
.edu-photos {
  display: flex;
  gap: .6rem;
  margin: 1.6rem auto 1.8rem;
}
.edu-photos img {
  flex: var(--ar) 1 0;
  min-width: 0;
  width: 0;
  aspect-ratio: var(--ar);
  height: auto;
  object-fit: cover;
  border-radius: .6rem;
  background: var(--biz-rule);
}
.edu-photos:has(> img:only-child) { max-width: 680px; }
@media (max-width: 575.98px) {
  .edu-photos { flex-direction: column; }
  .edu-photos img { flex: none; width: 100%; }
}

/* Objectives table. */
.edu-obj { margin: 1.6rem 0 2rem; }
.edu-obj .biz-lessons { margin-bottom: 1rem; }
.edu-obj .biz-lesson p { font-size: .95rem; color: var(--biz-ink); }
.edu-obj-table th[scope="row"] { width: 34%; }
.edu-obj-table .edu-obj-result { font-weight: 600; color: var(--biz-accent); }

/* EDUCATION: WONDER */
.edu-wonder {
  --wonder-ease: cubic-bezier(.2, .8, .2, 1);
  container: wonder / inline-size;
  position: relative;
  margin: 2rem 0 2.4rem;
  padding: 1.8rem clamp(1rem, 3vw, 2rem) 1.6rem;
  border-radius: 1.25rem;
  background:
    radial-gradient(120% 80% at 50% 0%, #e3f2e6 0%, rgba(227, 242, 230, 0) 70%),
    #f4f9f2;
  border: 1px solid #d8e9da;
}
/* Override the generic reveal; this block runs its own sequence. */
.biz-page .edu-wonder.reveal-armed[data-reveal] > * { opacity: 1; transform: none; transition: none; }

/* the six steps; stacked and all open until education.js takes over */
.edu-wonder-steps {
  --c: 4.6rem;
  --g: .5rem;
  display: flex;
  flex-direction: column;
  gap: var(--g);
  margin: 0;
  padding: 0;
  list-style: none;
  container-type: inline-size;
}
.edu-wonder-step {
  position: relative;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--biz-rule);
  border-radius: 1rem;
  overflow: hidden;
  scroll-margin-top: 110px;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.edu-wonder .edu-wonder-name { margin: 0; font-size: inherit; }
.edu-wonder-tab {
  display: flex;
  align-items: center;
  gap: .9rem;
  width: 100%;
  padding: .8rem 1.2rem;
  font: inherit;
  text-align: left;
  color: inherit;
  background: none;
  border: 0;
  border-radius: inherit;
  cursor: pointer;
}
.edu-wonder-tab:focus-visible { outline: 2px solid var(--biz-accent); outline-offset: -4px; }
.edu-wonder-glyph {
  flex: none;
  width: 2.6rem;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  background: linear-gradient(175deg, #5cc183 0%, #2f7d4f 55%, #37481f 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  transition: transform .35s var(--wonder-ease);
}
.edu-wonder-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: #37481f;
  white-space: nowrap;
}
.edu-wonder-text { padding: 0 1.2rem 1.1rem; }
.edu-wonder-text p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.6;
  text-align: left;
  hyphens: manual;
}
.edu-wonder-step.is-open,
.edu-wonder-step:target {
  border-color: var(--biz-accent);
  box-shadow: 0 12px 28px -16px rgba(47, 125, 79, .6);
}
.edu-wonder-tab:hover .edu-wonder-glyph { transform: translateY(-.08em) scale(1.06); }

/* narrow blocks: an accordion */
.edu-wonder.is-ready .edu-wonder-step:not(.is-open) .edu-wonder-text { display: none; }

/* wide blocks: strips side by side, the open one takes the spare width */
@container wonder (min-width: 700px) {
  .edu-wonder.is-ready .edu-wonder-steps { flex-direction: row; }
  .edu-wonder.is-ready .edu-wonder-step {
    flex: 0 0 var(--c);
    transition: flex-grow .55s var(--wonder-ease), border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
  }
  .edu-wonder.is-ready .edu-wonder-step.is-open { flex-grow: 1; }
  .edu-wonder.is-ready .edu-wonder-step:not(.is-open):hover { background: #fbfdf9; border-color: #b9dcc2; }
  .edu-wonder.is-ready .edu-wonder-tab {
    flex-direction: column;
    gap: .8rem;
    padding: 1.3rem 0 1rem;
  }
  .edu-wonder.is-ready .edu-wonder-glyph { width: var(--c); font-size: 3.4rem; }
  .edu-wonder.is-ready .edu-wonder-label {
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--biz-ink-soft);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
  }
  .edu-wonder.is-ready .edu-wonder-step.is-open .edu-wonder-tab {
    flex-direction: row;
    gap: .4rem;
    padding-right: 1.2rem;
  }
  .edu-wonder.is-ready .edu-wonder-step.is-open .edu-wonder-label {
    font-size: 1.25rem;
    letter-spacing: 0;
    text-transform: none;
    color: #37481f;
    writing-mode: horizontal-tb;
    transform: none;
  }
  /* Fixed width so the text never reflows while the strip grows. */
  .edu-wonder.is-ready .edu-wonder-step:not(.is-open) .edu-wonder-text { display: block; }
  .edu-wonder.is-ready .edu-wonder-text {
    width: calc(100cqw - 5 * (var(--c) + var(--g)) - 2px);
    padding: 0 1.4rem 1.3rem;
    visibility: hidden;
    opacity: 0;
    transition: opacity .2s ease, visibility 0s linear .2s;
  }
  .edu-wonder.is-ready .edu-wonder-step.is-open .edu-wonder-text {
    visibility: visible;
    opacity: 1;
    transition: opacity .35s ease .2s, visibility 0s;
  }
}

@container wonder (min-width: 700px) and (max-width: 840px) {
  .edu-wonder-steps { --c: 3.9rem; }
  .edu-wonder.is-ready .edu-wonder-glyph { font-size: 2.9rem; }
}

/* Loop from R back to W, under the strips. */
.edu-wonder-loop { display: none; }
@container wonder (min-width: 700px) {
  .edu-wonder.is-ready .edu-wonder-loop {
    display: block;
    width: 100%;
    height: 2.2rem;
    margin-top: .2rem;
    overflow: visible;
    pointer-events: none;
  }
}
.edu-wonder-loop path {
  fill: none;
  stroke: var(--biz-accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.edu-wonder-loop-line { stroke-dasharray: .012 .018; opacity: .85; }

.edu-wonder .edu-wonder-back {
  margin: 1rem 0 0;
  font-size: .95rem;
  text-align: center;
  color: var(--biz-ink);
}
.edu-wonder-back-arrow { display: inline-block; margin-right: .25rem; font-size: 1.15em; color: var(--biz-accent); }

/* the intro, once, when it scrolls into view */
.edu-wonder.reveal-armed .edu-wonder-step {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .6s var(--wonder-ease), flex-grow .55s var(--wonder-ease), border-color .25s ease, box-shadow .25s ease;
  transition-delay: calc(var(--i) * 100ms), calc(var(--i) * 100ms), 0s, 0s, 0s;
}
.edu-wonder.reveal-armed .edu-wonder-loop-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.1s cubic-bezier(.6, 0, .3, 1) .7s;
}
.edu-wonder.reveal-armed .edu-wonder-loop-head {
  opacity: 0;
  transition: opacity .3s ease 1.7s;
}
.edu-wonder.reveal-armed .edu-wonder-back {
  opacity: 0;
  transition: opacity .6s ease 1.75s;
}
.edu-wonder.reveal-in .edu-wonder-step { opacity: 1; transform: none; }
.edu-wonder.reveal-in .edu-wonder-loop-line { stroke-dashoffset: 0; }
.edu-wonder.reveal-in .edu-wonder-loop-head,
.edu-wonder.reveal-in .edu-wonder-back { opacity: 1; }
/* once the dash has drawn, it settles into the dotted loop */
.edu-wonder.reveal-in.is-settled .edu-wonder-loop-line { stroke-dasharray: .012 .018; transition: none; }
/* the cycle lands on W */
.edu-wonder.reveal-in .edu-wonder-step:first-child .edu-wonder-glyph {
  animation: edu-wonder-land .7s var(--wonder-ease) 1.8s 1;
}
@keyframes edu-wonder-land {
  0%   { transform: none; }
  40%  { transform: translateY(-.18em) scale(1.1); }
  70%  { transform: translateY(.02em) scale(.98); }
  100% { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .edu-wonder-glyph,
  .edu-wonder .edu-wonder-step,
  .edu-wonder .edu-wonder-text { transition: none !important; }
}

/* EDUCATION: AUDIENCE MAP */
.edu-reach { margin: 2.4rem 0 1rem; text-align: left; hyphens: manual; }
/* li and figcaption are justified site-wide; chips must not be. */
.edu-reach li,
.edu-reach figcaption { text-align: left; hyphens: manual; }
.edu-reach-grid {
  display: grid;
  grid-template-columns: minmax(7.5rem, .8fr) repeat(4, minmax(0, 1fr));
  gap: .5rem;
}
.edu-reach-col { display: contents; }
.edu-reach-axis-x,
.edu-reach-age { grid-row: 1; }
.edu-reach-axis-x {
  grid-column: 1;
  align-self: end;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--biz-ink-soft);
}
.biz-page .edu-reach-age {
  grid-column: var(--col);
  margin: 0;
  padding: .55rem .5rem;
  font-size: .85rem;
  text-align: center;
  color: #fff;
  background: var(--biz-accent);
  border-radius: .6rem;
}
.edu-reach-rowhead {
  grid-column: 1;
  display: flex;
  align-items: center;
  padding: .5rem .6rem;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--biz-accent);
  border-left: 3px solid var(--biz-accent);
}
.edu-reach-row-exp { grid-row: 2; }
.edu-reach-row-new { grid-row: 3; }
.edu-reach-cell {
  grid-column: var(--col);
  padding: .55rem;
  background: #f4f9f2;
  border: 1px solid #d8e9da;
  border-radius: .6rem;
}
/* Only for screen readers on wide screens: the row heads say it there. */
.edu-reach-celllabel {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.edu-reach-list {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.edu-reach-chip,
.edu-reach-swatch {
  border: 1.5px solid var(--biz-accent);
  border-radius: 999px;
}
.edu-reach-chip {
  display: inline-block;
  padding: .28rem .7rem;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  text-decoration: none;
  background: var(--biz-accent);
  transition: background-color .2s ease, color .2s ease;
}
.edu-reach-chip:hover,
.edu-reach-chip:focus-visible { color: #fff; background: #245f3c; border-color: #245f3c; }
.edu-reach-chip.is-timeline { color: var(--biz-accent); background: #fff; }
.edu-reach-chip.is-timeline:hover,
.edu-reach-chip.is-timeline:focus-visible { color: #245f3c; background: var(--biz-accent-soft); }
.edu-reach-none { font-size: .78rem; color: var(--biz-ink-soft); }
.edu-reach-key {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.4rem;
  margin-top: .8rem;
  font-size: .75rem;
  color: var(--biz-ink-soft);
}
.edu-reach-key > span { display: inline-flex; align-items: center; gap: .4rem; }
.edu-reach-swatch {
  display: inline-block;
  width: 1.6rem;
  height: .8rem;
  background: var(--biz-accent);
}
.edu-reach-swatch.is-timeline { background: #fff; }

@media (max-width: 767.98px) {
  .edu-reach-grid { display: block; }
  .edu-reach-axis-x,
  .edu-reach-rowhead { display: none; }
  .edu-reach-col {
    display: block;
    margin-bottom: .8rem;
  }
  .biz-page .edu-reach-age { text-align: left; border-radius: .6rem .6rem 0 0; }
  .edu-reach-cell { border-radius: 0; border-top: 0; }
  .edu-reach-cell:last-child { border-radius: 0 0 .6rem .6rem; }
  .edu-reach-celllabel {
    position: static;
    display: block;
    width: auto;
    height: auto;
    margin-bottom: .35rem;
    overflow: visible;
    clip: auto;
    white-space: normal;
    font-size: .72rem;
    font-weight: 700;
    color: var(--biz-accent);
  }
}

/* Divider between intro and activities. */
.edu-divide {
  margin: 4.5rem 0 1rem;
  padding: 2.3rem 1.5rem 2.1rem;
  text-align: center;
  background: #eef6ef;
  border-radius: 1rem;
}
.edu-divide::before {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 0 auto 1.1rem;
  border-radius: 2px;
  background: var(--biz-accent);
}
.edu-divide-kicker {
  display: block;
  margin-bottom: .35rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--biz-accent);
}
.edu-divide .edu-divide-title {
  margin: 0 0 .5rem;
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
  font-weight: 700;
  line-height: 1.15;
  color: #37481f;
}
.edu-divide .edu-divide-text { margin: 0; text-align: center; hyphens: manual; color: var(--biz-ink-soft); }
/* the first activity right after the band needs no extra gap */
.edu-divide + .edu-act { margin-top: 2.4rem; }

/* Several download buttons side by side, wrapping on narrow screens */
.edu-downloads { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Inline placeholder gap. */
.edu-gap {
  padding: 0 .3rem;
  color: #2f7d4f;
  font-style: italic;
  background-color: #f4faf6;
  border: 1px dashed #b5dcc3;
  border-radius: .3rem;
}

/* EXPERIMENTS: protocol drawers */
.proto-toolbar { display: flex; justify-content: flex-end; margin: 0 0 .25rem; }
.protos { margin: 1.4rem 0 2rem; }
.proto { border-top: 1px solid var(--biz-rule); }
.proto:last-child { border-bottom: 1px solid var(--biz-rule); }

/* text on the left, the chevron centred on the right across both lines */
.proto-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1rem;
  align-items: center;
  padding: 1.05rem 0 1.1rem;
  cursor: pointer;
  list-style: none;
}
.proto-summary::-webkit-details-marker { display: none; }
.proto-summary::marker { content: ""; }
.proto-summary::after {
  content: "";
  grid-column: 2;
  grid-row: 1 / span 2;
  width: .55rem;
  height: .55rem;
  margin-right: .35rem;
  border-right: 2px solid var(--biz-accent);
  border-bottom: 2px solid var(--biz-accent);
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}
.proto[open] > .proto-summary::after { transform: translateY(2px) rotate(-135deg); }
.proto-summary:focus-visible { outline: 2px solid #45b06c; outline-offset: 2px; }

/* the .edu-act-kicker recipe, a step smaller */
.proto-kicker {
  grid-column: 1;
  display: block;
  margin-bottom: .25rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--biz-accent);
}
.proto-title {
  grid-column: 1;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--biz-ink);
  transition: color .15s ease;
}
.proto-summary:hover .proto-title,
.proto-summary:focus-visible .proto-title { color: var(--biz-accent); }

.proto-body {
  margin: 0 0 1.5rem;
  padding: .1rem 0 .1rem 1.3rem;
  border-left: 1px solid var(--biz-rule-strong);
}
.proto-body > :last-child { margin-bottom: 0; }
.biz-page .proto-body p { font-size: .95rem; }
/* the first label sits right under the title (or the facts), not 1.4rem down */
.biz-page .proto-body > h4:first-child,
.biz-page .proto-body > .proto-facts + h4 { margin-top: .2rem; }
.proto-facts { margin: 0 0 1.1rem; }
/* Left-aligned steps and materials. */
.proto-body li { text-align: left; hyphens: manual; }

/* Protocol variant heading. */
.biz-page .proto-variant {
  margin: 1.9rem 0 .9rem;
  padding-bottom: .4rem;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--biz-accent);
  border-bottom: 1px solid var(--biz-rule);
}
.biz-page .proto-body > .proto-variant:first-child { margin-top: .2rem; }

/* Pending protocol note. */
.biz-page .proto-pending { color: var(--biz-signal); font-size: .9rem; }

.proto-body .biz-table-wrap { margin: .9rem 0 1.1rem; }
.proto-steps .biz-table-wrap { margin: .7rem 0 .2rem; }
.proto-body .biz-table caption { margin-bottom: .5rem; }

/* Protocol tables. */
.proto-body .biz-table {
  font-size: .9rem;
  border: 1px solid var(--biz-rule-strong);
}
.proto-body .biz-table th,
.proto-body .biz-table td { padding: .55rem .8rem; }
.proto-body .biz-table td:first-child { padding-right: .8rem; }
.proto-body .biz-table thead th {
  background: var(--biz-accent-soft);
  color: var(--biz-accent);
  font-size: .68rem;
  border-bottom: 2px solid var(--biz-accent);
  padding: .6rem .8rem;
}
.proto-body .biz-table td { color: var(--biz-ink); }
.proto-body .biz-table tbody tr:nth-child(even) td { background: #f3f6f4; }
.proto-body .biz-table caption { color: var(--biz-ink); font-weight: 700; }

/* Numbered procedure steps. */
.proto-steps {
  counter-reset: proto-step;
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
}
.proto-steps > li {
  counter-increment: proto-step;
  position: relative;
  padding-left: 2.1rem;
  margin-bottom: .6rem;
  font-size: .95rem;
  line-height: 1.65;
  color: #343a40;
}
.proto-steps > li::before {
  content: counter(proto-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  line-height: calc(.95rem * 1.65);   /* the step's first line, so the two share a baseline */
  font-size: .8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--biz-accent);
}
.proto-steps ol,
.proto-steps ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.proto-steps ol { list-style-type: lower-alpha; }
.proto-steps li li { margin-bottom: .25rem; }

/* Materials: a short dash instead of a bullet, to stay in the hairline language */
.proto-items { list-style: none; margin: 0 0 1.15rem; padding: 0; }
.proto-items > li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: .35rem;
  font-size: .95rem;
  line-height: 1.6;
  color: #343a40;
}
.proto-items > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .8em;
  width: 7px;
  height: 1px;
  background-color: var(--biz-ink-soft);
}

@media (max-width: 575.98px) {
  .proto-body { padding-left: 1rem; }
}

/* Animated drawer opening, off during bulk toggles. */
@supports (interpolate-size: allow-keywords) {
  .proto { interpolate-size: allow-keywords; }
  .proto::details-content {
    height: 0;
    overflow: clip;
    transition: height .35s cubic-bezier(.22, 1, .36, 1), content-visibility .35s allow-discrete;
  }
  .proto[open]::details-content { height: auto; }
  .is-bulk .proto::details-content { transition: none; }
}
@media (prefers-reduced-motion: reduce) {
  .proto-summary::after,
  .proto-title { transition: none; }
  .proto::details-content { transition: none; }
}

/* MODEL GUIDED TOUR */

#tour {
  /* Every value here is already somewhere in the page; none are new. */
  --tour-sage: #e5eeda;       /* the navbar and footer ground */
  --tour-sage-line: #cfdec0;  /* the navbar's own bottom hairline */
  --tour-sage-ink: #4a5c33;   /* the footer's body colour */
  --tour-leaf: #a8c686;       /* the hero's light-green accent bar - idle dots */

  --tour-card: #fdfcf8;
  --tour-rule: #e8e4d8;
  --tour-ink: #212529;
  --tour-ink-soft: #495057;
  --tour-head: #37481f;       /* the olive the page uses for h2/h3 */
  --tour-green: #2f7d4f;      /* the site's brand green, and its hover */
  --tour-green-dark: #245f3c;

  --tour-mono: var(--bs-font-sans-serif);         /* Montserrat, like the rest of the wiki */
  --tour-gap: 20px;
  --tour-peek: clamp(14px, 4vw, 52px);
  --tour-ease: cubic-bezier(.22, 1, .36, 1);

  /* Set by tour.js. */
  --tour-i: 0;
  --tour-step: 0px;
  --tour-origin: 50%;

  display: block;
  margin: 2.5rem 0 2rem;
}

/* Closed state. */

#tour .tour-summary {
  display: flex;
  width: fit-content;
  margin-inline: auto;
  align-items: center;
  gap: 9px;
  padding: .6rem 1.1rem .6rem .95rem;
  border-radius: 999px;
  background: var(--tour-green);
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;                     /* Firefox */
  transition: background 140ms ease;
}

#tour .tour-summary::-webkit-details-marker { display: none; }

#tour .tour-summary:hover { background: var(--tour-green-dark); }

#tour .tour-summary:focus-visible {
  outline: 2px solid var(--tour-green);
  outline-offset: 3px;
}

#tour .tour-icon { flex: none; }

#tour .tour-summary-meta {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  font-size: .78rem;
  letter-spacing: .03em;
}

#tour .tour-chevron {
  flex: none;
  transition: transform 160ms ease;
}

#tour[open] .tour-chevron { transform: rotate(180deg); }

/* Open panel frame. */
#tour .tour-body {
  margin-top: clamp(16px, 2vw, 22px);
  background: var(--tour-sage);
  border: 1px solid var(--tour-sage-line);
  border-radius: 6px;
  padding: clamp(18px, 3vw, 30px) clamp(14px, 3vw, 32px);
}

/* The deck. */

#tour .tour-viewport {
  position: relative;
  overflow: hidden;
  touch-action: pan-y;                  /* horizontal is ours, vertical scrolls */
}

#tour.tour-js .tour-viewport {
  height: var(--tour-h, auto);
  transition: height 520ms var(--tour-ease);
}

#tour .tour-track {
  list-style: none;
  margin: 0;
  padding: 0;
}

#tour.tour-js .tour-track {
  display: flex;
  /* All cards share the tallest height. */
  align-items: stretch;
  gap: var(--tour-gap);
  perspective: 1400px;
  perspective-origin: var(--tour-origin) 50%;
  transform: translate3d(calc(var(--tour-peek) - var(--tour-i) * var(--tour-step)), 0, 0);
  transition: transform 520ms var(--tour-ease);
  will-change: transform;
}

/* No transition while dragging. */
#tour.is-dragging .tour-viewport,
#tour.is-dragging .tour-track,
#tour.is-dragging .tour-card { transition: none; }

#tour .tour-card {
  background: var(--tour-card);
  color: var(--tour-ink);
  border-radius: .45rem;
  padding: clamp(20px, 3vw, 32px) clamp(20px, 3.2vw, 38px);
}

#tour:not(.tour-js) .tour-card + .tour-card { margin-top: var(--tour-gap); }

#tour.tour-js .tour-card {
  flex: 0 0 calc(100% - 2 * var(--tour-peek));
  transform: rotateY(var(--tour-rot, 0deg));
  transition: transform 520ms var(--tour-ease);
  cursor: grab;
}

#tour.tour-js .tour-card:active { cursor: grabbing; }
#tour.is-dragging .tour-card { cursor: grabbing; user-select: none; }

/* Card contents */

#tour .tour-title {
  margin: 0 0 4px;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--tour-head);
}

#tour .tour-kicker {
  margin: 0 0 1.15rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--tour-rule);
  font-size: .95rem;
  color: var(--tour-ink-soft);
}

#tour .tour-prose > :first-child { margin-top: 0; }
#tour .tour-prose > :last-child { margin-bottom: 0; }

#tour .tour-prose ul {
  margin: 0 0 1.15rem;
  padding-left: 1.2rem;
}

#tour .tour-prose li {
  margin-bottom: .6rem;
  line-height: 1.7;
  letter-spacing: .01em;
}

/* Interface schematic figure. */

.tour-mock {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #dee2e6;
  border-radius: .5rem;
  background-color: #fff;
}
.tour-mock .tm-chrome { fill: #e9ecef; }
.tour-mock .tm-area { fill: #f8f9fa; stroke: #ced4da; stroke-width: 1.2; }
.tour-mock .tm-board { fill: #fff; }
.tour-mock .tm-row, .tour-mock .tm-pill { fill: #e9ecef; }
.tour-mock .tm-bar { fill: #ced4da; }
.tour-mock .tm-cell { fill: #2f7d4f; }
.tour-mock .tm-trace { fill: none; stroke: #adb5bd; stroke-width: 1.6; stroke-linejoin: round; }
.tour-mock .tm-badge circle { fill: #2f7d4f; }
.tour-mock .tm-badge text { fill: #fff; font-size: 15px; font-weight: 700; }
.tour-mock .tm-badge--sm text { font-size: 12px; }

/* Navigation, shown only with JS. */

#tour .tour-nav { display: none; }

#tour.tour-js .tour-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(14px, 2vw, 22px);
}

#tour .tour-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--tour-sage-line);
  border-radius: 999px;
  background: #fff;
  color: var(--tour-sage-ink);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}

#tour .tour-btn:hover:not(:disabled) {
  background: var(--tour-green);
  color: #fff;
  border-color: var(--tour-green);
}

#tour .tour-btn:disabled { opacity: .3; cursor: default; }

#tour .tour-btn:focus-visible {
  outline: 2px solid var(--tour-green);
  outline-offset: 2px;
}

#tour .tour-dots {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* A 20px hit target around an 8px dot: eleven of these have to be tappable. */
#tour .tour-dot {
  position: relative;
  appearance: none;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}

#tour .tour-dot::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--tour-leaf);
  transition: background 150ms ease, transform 150ms ease;
}

#tour .tour-dot[aria-current="true"]::before {
  background: var(--tour-green);
  transform: scale(1.35);
}

#tour .tour-dot:focus-visible {
  outline: 2px solid var(--tour-green);
  outline-offset: -2px;
}

#tour .tour-counter {
  position: absolute;
  right: 0;
  margin: 0;
  font-family: var(--tour-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--tour-sage-ink);
}

/* Narrow screens: smaller peek, no tilt. */

@media (max-width: 720px) {
  #tour {
    --tour-peek: 10px;
    --tour-gap: 12px;
  }
  #tour.tour-js .tour-card { transform: none; }
}

@media (max-width: 620px) {
  #tour.tour-js .tour-nav { flex-wrap: wrap; }
  #tour .tour-counter {
    position: static;
    order: 9;
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  #tour .tour-chevron,
  #tour .tour-btn,
  #tour .tour-dot::before,
  #tour.tour-js .tour-viewport,
  #tour.tour-js .tour-track,
  #tour.tour-js .tour-card { transition: none; }
  #tour.tour-js .tour-card { transform: none; }
}


/* BIOCONTAINMENT SANDBOX */

/* Neutralise the site-wide paragraph rule. */
#bcs p { line-height: inherit; letter-spacing: normal; margin-bottom: 0; text-align: left; }

/* Sandbox component styles, scoped to #bcs. */

#bcs {
  /* Ink colours. */
  --ink-900: #241d14;
  --ink-800: #332a1d;
  --ink-700: #46392a;
  --ink: #3a3024;
  --ink-mid: #5c4e3a;   /* 8.1:1 on white */
  --ink-dim: #7e6d55;   /* 5.0:1 on white - AA for the 10.5px hint text */

  /* Paper and panels. */
  --paper: #faf6ed;
  --surface: #fffdf8;
  --sand-50: #f4ecda;
  --sand-100: #e8dabd;

  --line: rgba(58, 48, 36, 0.14);
  --line-strong: rgba(58, 48, 36, 0.28);

  /* Accent colours. */
  --pine: #2e7d63;
  --pine-dk: #23614d;

  --terra: #a84f2a;     /* 5.5:1 - removal and lysis, the one hot control */
  --agar: #c08a2e;      /* registration marks on the plate */

  --r-sm: 8px;
  --r-md: 14px;
  --gap: 18px;

  --ui: 'Montserrat', 'Avenir Next', 'Segoe UI', system-ui, -apple-system,
        'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas,
          'Liberation Mono', monospace;

  font-family: var(--ui);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  padding: clamp(18px, 4vw, 40px);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  -webkit-font-smoothing: antialiased;
}

#bcs *,
#bcs *::before,
#bcs *::after { box-sizing: border-box; }

/* Reset host-page styles on details, summary and output. */
#bcs details { margin: 0; padding: 0; border: 0; background: none; }
#bcs summary { margin: 0; padding: 0; }
#bcs output { margin: 0; padding: 0; }

/* Header */

#bcs .bcs-head { max-width: 62ch; margin-bottom: clamp(20px, 3vw, 34px); }

#bcs .bcs-eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pine);
}

#bcs .bcs-version {
  margin-left: 10px;
  padding: 2px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
}

#bcs .bcs-head h1 {
  margin: 0;
  font-family: var(--ui);
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink-900);
}

/* Tab bar. */

#bcs .bcs-tabbar {
  margin-bottom: 2px;
  border-bottom: 1px solid var(--line);
}

#bcs .bcs-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: -1px;
}

#bcs .bcs-tab {
  appearance: none;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-bottom-color: transparent;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  background: transparent;
  color: var(--ink-mid);
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

#bcs .bcs-tab:hover { background: var(--sand-50); color: var(--ink-900); }
#bcs .bcs-tab:focus-visible { outline: 2px solid var(--pine); outline-offset: -2px; }

#bcs .bcs-tab[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink-900);
  border-color: var(--line);
  border-bottom-color: var(--surface);
}

/* Pine rule on top of the active tab: the only strong colour signal. */
#bcs .bcs-tab[aria-selected="true"]::before {
  content: "";
  display: block;
  height: 3px;
  margin: -10px -18px 7px;
  background: var(--pine);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
}

#bcs .bcs-panel[hidden] { display: none; }

@media (max-width: 560px) {
  #bcs .bcs-tab { flex: 1 1 auto; padding: 10px 8px; text-align: center; }
}

/* Overall grid */

#bcs .bcs-layout {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr) minmax(220px, 260px);
  gap: var(--gap);
  align-items: start;
  padding-top: var(--gap);
}

@media (max-width: 1100px) {
  #bcs .bcs-layout { grid-template-columns: minmax(0, 1fr) minmax(230px, 300px); }
  #bcs .bcs-stage { order: -1; grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  #bcs .bcs-layout { grid-template-columns: minmax(0, 1fr); }
  #bcs .bcs-stage { grid-column: auto; }
}

#bcs .bcs-rail {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
}

#bcs .bcs-rail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

#bcs .bcs-rail h2 {
  margin: 0;
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mid);
}

#bcs .bcs-note {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.55;
  color: var(--ink-dim);
}

/* The plate. */

#bcs .bcs-stage { display: flex; flex-direction: column; gap: 12px; }

#bcs .bcs-plate-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
}

#bcs .bcs-plate {
  position: relative;
  display: flex;
  justify-content: center;
  /* Registration marks. */
  padding: 12px 0 0 12px;
  background:
    linear-gradient(to right, var(--agar) 0 18px, transparent 18px) 12px 2px / 100% 2px no-repeat,
    linear-gradient(to bottom, var(--agar) 0 18px, transparent 18px) 2px 12px / 2px 100% no-repeat;
}

#bcs .bcs-canvas {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--r-sm);
  background: var(--sand-50);
  box-shadow: 0 0 0 1px var(--line-strong), 0 16px 34px -22px rgba(58, 48, 36, 0.4);
  cursor: crosshair;
  touch-action: none;
  image-rendering: pixelated;
}

#bcs .bcs-canvas:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; }

#bcs .bcs-empty {
  position: absolute;
  inset: 10px 0 0 10px;
  display: grid;
  place-items: center;
  pointer-events: none;
  transition: opacity 220ms ease;
}

#bcs .bcs-empty.is-hidden { opacity: 0; }

#bcs .bcs-empty span {
  padding: 8px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 4px 14px -6px rgba(58, 48, 36, 0.45);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mid);
}

#bcs .bcs-crosshair {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mid);
  font-variant-numeric: tabular-nums;
}

#bcs .bcs-xh-val { color: var(--pine); font-weight: 600; }

/* Transport controls and toolbar */

#bcs .bcs-transport,
#bcs .bcs-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px;
}

#bcs .bcs-spacer { flex: 1 1 auto; }

#bcs .bcs-clock {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mid);
  font-variant-numeric: tabular-nums;
}

#bcs .bcs-btn {
  appearance: none;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

#bcs .bcs-btn:hover:not(:disabled) {
  background: var(--sand-50);
  border-color: var(--pine);
  color: var(--pine-dk);
}
#bcs .bcs-btn:focus-visible { outline: 2px solid var(--pine); outline-offset: 2px; }
#bcs .bcs-btn:disabled { opacity: 0.45; cursor: not-allowed; }

#bcs .bcs-btn-primary {
  background: var(--pine);
  border-color: var(--pine);
  color: #ffffff;
}
#bcs .bcs-btn-primary:hover:not(:disabled) {
  background: var(--pine-dk);
  border-color: var(--pine-dk);
  color: #ffffff;
}

#bcs .bcs-btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ink-mid);
  font-size: 11px;
  padding: 5px 10px;
}
#bcs .bcs-btn-ghost:hover:not(:disabled) { background: var(--sand-50); border-color: transparent; }

@media (prefers-reduced-motion: reduce) {
  #bcs * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

#bcs .bcs-field {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-mid);
}

#bcs .bcs-field select {
  font: inherit;
  font-weight: 500;
  font-size: 12px;
  padding: 6px 8px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
}
#bcs .bcs-field select:focus-visible { outline: 2px solid var(--pine); outline-offset: 1px; }

#bcs .bcs-field-range input { width: 92px; }
#bcs .bcs-field b { color: var(--pine); font-weight: 700; font-family: var(--mono); }

/* Generated controls */

#bcs .bcs-group { border-bottom: 1px solid var(--line); }
#bcs .bcs-group:last-child { border-bottom: 0; }

#bcs .bcs-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 2px;
  cursor: pointer;
  list-style: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mid);
}

#bcs .bcs-group summary::-webkit-details-marker { display: none; }
#bcs .bcs-group summary:hover { color: var(--ink-900); }
#bcs .bcs-group[open] summary { color: var(--pine); }
#bcs .bcs-group summary:focus-visible { outline: 2px solid var(--pine); outline-offset: 2px; }

#bcs .bcs-group-count {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mid);
  background: var(--sand-50);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 8px;
}

#bcs .bcs-group[open] .bcs-group-count {
  background: var(--pine);
  border-color: var(--pine);
  color: #ffffff;
}

#bcs .bcs-group-body { padding: 2px 2px 14px; }

#bcs .bcs-ctrl + .bcs-ctrl { margin-top: 14px; }

#bcs .bcs-ctrl-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

#bcs .bcs-ctrl-label { font-size: 12px; font-weight: 500; color: var(--ink); }

#bcs .bcs-ctrl-value {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--pine);
  font-variant-numeric: tabular-nums;
}

#bcs .bcs-hint {
  margin: 5px 0 0;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--ink-dim);
}

#bcs input[type="range"] {
  appearance: none;
  width: 100%;
  height: 18px;
  background: transparent;
  cursor: pointer;
}

#bcs input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: var(--sand-100);
  border-radius: 999px;
}
#bcs input[type="range"]::-moz-range-track {
  height: 4px;
  background: var(--sand-100);
  border-radius: 999px;
}

#bcs input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border-radius: 999px;
  background: var(--pine);
  border: 2px solid var(--surface);
  box-shadow: 0 1px 3px rgba(58, 48, 36, 0.3);
}
#bcs input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--pine);
  border: 2px solid var(--surface);
  box-shadow: 0 1px 3px rgba(58, 48, 36, 0.3);
}

#bcs input[type="range"]:focus-visible { outline: 2px solid var(--pine); outline-offset: 2px; }

#bcs .bcs-segmented {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  overflow: hidden;
}

#bcs .bcs-seg {
  appearance: none;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 13px;
  border: 0;
  background: var(--surface);
  color: var(--ink-mid);
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

#bcs .bcs-seg:hover { background: var(--sand-50); }
#bcs .bcs-seg + .bcs-seg { border-left: 1px solid var(--line); }
#bcs .bcs-seg[aria-pressed="true"] { background: var(--pine); color: #ffffff; }
#bcs .bcs-paintmode .bcs-seg[data-mode="erase"][aria-pressed="true"] { background: var(--terra); }
#bcs .bcs-seg:focus-visible { outline: 2px solid var(--pine); outline-offset: -2px; }

#bcs .bcs-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-mid);
  cursor: pointer;
}

#bcs .bcs-check input { accent-color: var(--pine); margin: 0; }

/* Readouts */

#bcs .bcs-readouts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}

#bcs .bcs-readout {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 11px;
  background: var(--surface);
}

#bcs .bcs-readout-hero {
  grid-column: 1 / -1;
  background: var(--sand-50);
}

#bcs .bcs-r-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

#bcs .bcs-r-value {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
}

#bcs .bcs-readout-hero .bcs-r-value {
  font-size: 30px;
  color: var(--pine);
  letter-spacing: -0.02em;
}

#bcs .bcs-legend { margin-top: 16px; }

#bcs .bcs-legend-head,
#bcs .bcs-legend-scale {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--ink-dim);
}

#bcs .bcs-legend-head {
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--ink-mid);
}
#bcs .bcs-legend-scale {
  margin-top: 4px;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

#bcs .bcs-colorbar {
  display: block;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--line);
}

#bcs .bcs-chartbox { margin-top: 18px; }

#bcs .bcs-chart-head {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 7px;
}

#bcs .bcs-chart {
  display: block;
  width: 100%;
  height: 110px;
  background: var(--sand-50);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

#bcs .bcs-chart-key {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-mid);
}

#bcs .bcs-chart-key li { display: inline-flex; align-items: center; gap: 5px; }
#bcs .bcs-chart-key i { width: 10px; height: 3px; border-radius: 999px; }

/* Species plots under the plate */

#bcs .bcs-plots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

#bcs .bcs-plot {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px 12px 12px;
  min-width: 0;
}

#bcs .bcs-plot-head { position: relative; }

#bcs .bcs-plot-pick > summary {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  list-style: none;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-mid);
  padding: 2px 0 8px;
}

#bcs .bcs-plot-pick > summary::-webkit-details-marker { display: none; }
#bcs .bcs-plot-pick > summary::after { content: "▾"; margin-left: auto; opacity: 0.55; }
#bcs .bcs-plot-pick[open] > summary::after { content: "▴"; }
#bcs .bcs-plot-pick > summary:hover { color: var(--pine); }
#bcs .bcs-plot-pick > summary:focus-visible { outline: 2px solid var(--pine); outline-offset: 2px; }

#bcs .bcs-plot-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The list floats above the plot: opening it must not move anything else. */
#bcs .bcs-plot-list {
  position: absolute;
  z-index: 5;
  top: 100%;
  left: -6px;
  right: -6px;
  max-height: 220px;
  overflow-y: auto;
  padding: 7px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  box-shadow: 0 14px 30px -14px rgba(58, 48, 36, 0.45);
}

#bcs .bcs-plot-opt {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 5px;
  border-radius: 5px;
  font-size: 11px;
  color: var(--ink-mid);
  cursor: pointer;
}

#bcs .bcs-plot-opt:hover { background: var(--sand-50); color: var(--ink-900); }
#bcs .bcs-plot-opt input { accent-color: var(--pine); margin: 0; }
#bcs .bcs-plot-opt i { width: 10px; height: 3px; border-radius: 999px; flex: none; }

#bcs .bcs-plot-canvas {
  display: block;
  width: 100%;
  height: 96px;
  background: var(--sand-50);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

/* GALLERY: dome of team photos */
.dome-gallery {
  --dome-bg: #fbfcf8;                /* the site's body background, see top of file */
  --radius: 600px;                   /* overwritten by gallery.js on every resize */
  --viewer-pad: 72px;
  --segments-x: 35;
  --segments-y: 35;
  --circ: calc(var(--radius) * 3.14);
  --rot-y: calc((360deg / var(--segments-x)) / 2);
  --rot-x: calc((360deg / var(--segments-y)) / 2);
  --item-width: calc(var(--circ) / var(--segments-x));
  --item-height: calc(var(--circ) / var(--segments-y));

  position: relative;
  background: var(--dome-bg);
}
.dome-gallery * { box-sizing: border-box; }

/* Full-bleed band once the dome is built. */
.dome-gallery.is-ready {
  margin-left: calc(50% - var(--dome-vw, 100vw) / 2);
  width: var(--dome-vw, 100vw);
  height: min(88vh, 880px);
  overflow: hidden;
}

/* Vignette and edge fades. */
.dome-gallery.is-ready::before,
.dome-gallery.is-ready::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.dome-gallery.is-ready::before {
  background-image: radial-gradient(rgba(251, 252, 248, 0) 62%, var(--dome-bg) 100%);
}
.dome-gallery.is-ready::after {
  background-image:
    linear-gradient(to bottom, var(--dome-bg), rgba(251, 252, 248, 0) 120px),
    linear-gradient(to top, var(--dome-bg), rgba(251, 252, 248, 0) 120px);
}

.dome-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  perspective: calc(var(--radius) * 2);
  perspective-origin: 50% 50%;
  contain: layout paint size;
  touch-action: none;                /* the drag handler owns the gestures */
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.dome-gallery.is-dragging .dome-stage { cursor: grabbing; }

.dome-sphere,
.dome-item,
.dome-tile { transform-style: preserve-3d; }

.dome-sphere {
  transform: translateZ(calc(var(--radius) * -1));
  will-change: transform;
}

.dome-item {
  position: absolute;
  top: -999px; bottom: -999px; left: -999px; right: -999px;
  margin: auto;                      /* centres the tile before it is rotated out */
  width: calc(var(--item-width) * 2);
  height: calc(var(--item-height) * 2);
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  transform:
    rotateY(calc(var(--rot-y) * (var(--offset-x) + 0.5)))
    rotateX(calc(var(--rot-x) * (var(--offset-y) - 0.5)))
    translateZ(var(--radius));
}

.dome-tile {
  position: absolute;
  inset: 10px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--dome-bg);
  backface-visibility: hidden;
  cursor: pointer;
  transform: translateZ(0);
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 2px 10px rgba(55, 72, 31, .10);
}
.dome-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  backface-visibility: hidden;
}
.dome-tile:focus-visible {
  outline: 3px solid #2f7d4f;
  outline-offset: 2px;
}

/* Enlarged photo. */
.dome-viewer {
  position: fixed;
  inset: 0;
  z-index: 1050;
  pointer-events: none;
}
.dome-scrim {
  position: absolute;
  inset: 0;
  background: rgba(251, 252, 248, .96);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms ease;
}
.dome-gallery[data-enlarging="true"] .dome-scrim {
  opacity: 1;
  pointer-events: auto;
  cursor: zoom-out;
}
.dome-opened {
  position: absolute;
  z-index: 30;
  border-radius: 18px;
  overflow: hidden;
  transform-origin: top left;
  box-shadow: 0 18px 50px rgba(55, 72, 31, .28);
  pointer-events: none;
}
.dome-opened img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Locked while a photo is open, so the page behind doesn't scroll away. */
body.dome-scroll-lock { overflow: hidden; }

/* Fallback grid. */
.dome-fallback {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 2rem clamp(1rem, 5vw, 4rem);
}
.dome-fallback img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(55, 72, 31, .12);
}

/* Title and caption. */
.dome-intro {
  text-align: center;
  padding-top: 3rem;
  margin-bottom: 2.5rem;
}
.dome-title {
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 700;
  color: #37481f;
  letter-spacing: -.01em;
}
.dome-caption {
  max-width: 40rem;
  margin: 2.5rem auto 3rem;
  text-align: center;
  font-size: 1.05rem;
  color: #6b7a5a;
}

@media (max-width: 767.98px) {
  .dome-intro { padding-top: 2rem; margin-bottom: 1.5rem; }
  .dome-gallery.is-ready {
    height: min(78vh, 640px);
    height: min(78svh, 640px);
  }
  /* A wide oval vignette eats most of a narrow portrait band - keep it to the rim. */
  .dome-gallery.is-ready::before {
    background-image: radial-gradient(rgba(251, 252, 248, 0) 75%, var(--dome-bg) 100%);
  }
  .dome-gallery.is-ready::after {
    background-image:
      linear-gradient(to bottom, var(--dome-bg), rgba(251, 252, 248, 0) 50px),
      linear-gradient(to top, var(--dome-bg), rgba(251, 252, 248, 0) 50px);
  }
  /* Vertical swipes scroll the page; gallery.js only spins on horizontal ones. */
  .dome-stage { touch-action: pan-y; }
  .dome-tile { inset: 6px; border-radius: 10px; }
  .dome-caption { margin-top: 1.5rem; margin-bottom: 2rem; font-size: 1rem; }
}

/* Reduced motion: no coasting or flight. */
@media (prefers-reduced-motion: reduce) {
  .dome-opened { transition: none !important; }
  .dome-scrim { transition: none; }
}

/* HOME */

/* Hero. */
.home-hero {
  --hero-ink: #1f3a1d;                     /* the brand's dark green (buttons' text) */
  --hero-leaf: #a8c686;                    /* the brand's light green (label, primary button) */
  --paper: #fbfcf8;                        /* the page's background (body) */
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: calc(100vh - 73px);          /* 73px: the fixed navbar */
  min-height: calc(100svh - 73px);         /* phones: the smallest viewport, so it never jumps */
  overflow: hidden;
  isolation: isolate;
  background-color: #2b3a22;               /* a deep leaf green until the clip plays */
}
/* Shade behind the text. */
.home-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(0deg, rgba(14, 22, 10, .82) 0%, rgba(14, 22, 10, .55) 34%, rgba(14, 22, 10, .22) 58%, rgba(14, 22, 10, 0) 78%),
    linear-gradient(90deg, rgba(14, 22, 10, .5) 0%, rgba(14, 22, 10, .2) 45%, rgba(14, 22, 10, 0) 70%);
  pointer-events: none;
}
/* Curtain effect as the story slides over the hero. */
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #0e160a;
  opacity: calc(var(--curtain, 0) * .6);
  pointer-events: none;
}
.home-hero .hero-photo { transform: scale(calc(1 + var(--curtain, 0) * .08)); }
.home-hero .hero-embed { transform: translate(-50%, -50%) scale(calc(1 + var(--curtain, 0) * .08)); }
.home-hero.is-curtained .home-hero__content,
.home-hero.is-curtained .home-hero__cue { opacity: calc(1 - var(--curtain, 0) * 1.6); }
.home-hero__content {
  position: relative;
  z-index: 2;
  padding-top: 6rem;
  padding-bottom: clamp(3.5rem, 15vh, 9rem);   /* lifts the statement off the bottom edge */
  color: #fff;
}
/* the headline: two lines, large and tight, in white */
.home-hero__title {
  margin: 0;
  max-width: 13em;
  font-size: clamp(2.5rem, 1rem + 5.4vw, 6.25rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.025em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
}
.home-hero__line { display: block; }
.home-hero__word { display: inline-block; white-space: nowrap; }
/* Letters lift on hover. */
.home-hero__letter,
.home-hero__letter > span { display: inline-block; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .home-hero__letter > span {
    transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);   /* a small overshoot, then settles */
    pointer-events: none;   /* the moving letter never takes the pointer: only its still box does */
  }
  .home-hero__letter:hover > span {
    transform: translateY(-.1em);
    transition-duration: .25s;
  }
}
.home-hero__subtitle {
  max-width: 34ch;
  margin: clamp(1rem, 2.6vh, 1.6rem) 0 0;
  font-size: clamp(1.05rem, .8rem + .8vw, 1.4rem);
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, .9);
  text-align: left;
  hyphens: manual;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}
/* two ways in */
.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin-top: clamp(1.5rem, 4vh, 2.25rem);
}
.home-hero__btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 1.5rem;
  border: 1.5px solid rgba(255, 255, 255, .7);
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0);
  /* only colours change: the buttons never move under the pointer */
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.home-hero__btn:hover {
  color: var(--hero-ink);
  background-color: #fff;
  border-color: #fff;
}
.home-hero__btn--primary {
  color: var(--hero-ink);
  background-color: var(--hero-leaf);
  border-color: var(--hero-leaf);
}
.home-hero__btn--primary:hover {
  color: var(--hero-ink);
  background-color: #fff;
  border-color: #fff;
}
.home-hero__btn:focus-visible,
.home-hero__cue:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
/* Scroll cue. */
.home-hero__cue {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 1.25rem;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto;
  border: 1.5px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  color: #fff;
  transition: background-color .25s ease, border-color .25s ease;
  animation: home-hero-bob 2.4s ease-in-out infinite;
}
.home-hero__cue:hover { background-color: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .8); }
/* Clip credit. */
.home-hero__credit {
  position: absolute;
  z-index: 2;
  right: 1rem;
  bottom: .75rem;
  max-width: calc(50% - 24px - 1.75rem);   /* stays right of the centred cue; wraps if it must */
  margin: 0;
  padding: .2rem .6rem;
  border-radius: 1rem;                     /* a pill on one line, still tidy if it wraps */
  background-color: rgba(14, 22, 10, .45);
  font-size: .72rem;
  line-height: 1.35;
  text-align: right;
}
.home-hero__credit a {
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
  transition: color .2s ease;
}
.home-hero__credit a:hover,
.home-hero__credit a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.home-hero__credit a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 2px;
}
@keyframes home-hero-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}
/* as the page opens: the lines rise into place one after another */
@keyframes home-hero-line {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .home-hero__title,
  .home-hero__subtitle,
  .home-hero__actions {
    animation: home-hero-line .9s cubic-bezier(.2, .7, .2, 1) both;
  }
  .home-hero__title { animation-delay: .1s; }
  .home-hero__subtitle { animation-delay: .3s; }
  .home-hero__actions { animation-delay: .45s; }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero__cue { animation: none; }
}
/* a short, wide window (a phone on its side): less room above and below */
@media (max-height: 500px) and (orientation: landscape) {
  .home-hero__content { padding-top: 3.5rem; padding-bottom: 1.25rem; }
  /* the words fill most of the height here, so the shade covers it all */
  .home-hero__shade {
    background: linear-gradient(0deg, rgba(14, 22, 10, .85) 0%, rgba(14, 22, 10, .62) 55%, rgba(14, 22, 10, .42) 100%);
  }
  .home-hero__title { font-size: clamp(2rem, 7vh + 1rem, 3.25rem); }
  .home-hero__subtitle { margin-top: .6rem; font-size: 1rem; }
  .home-hero__actions { margin-top: 1rem; }
  .home-hero__cue { display: none; }   /* no room under the buttons here */
  .home-hero__credit { max-width: calc(100% - 2rem); }
}
/* phones: the buttons share the row; the cue gives way to them */
@media (max-width: 575.98px) {
  .home-hero__btn { flex: 1 1 auto; justify-content: center; padding: 0 1.1rem; }
  .home-hero__cue { display: none; }
  .home-hero__credit { max-width: calc(100% - 2rem); }
}
/* the story on white */
.home-story {
  /* Story sheet above the hero. */
  position: relative;
  z-index: 1;
  box-shadow: 0 -18px 40px rgba(14, 22, 10, .22);
  /* Top-edge shadow only. */
  clip-path: inset(-80px 0 0 0);
  padding: calc(clamp(2.5rem, 7vh, 5rem) + clamp(5rem, 14vh, 9rem)) 0 clamp(6rem, 14vh, 9rem);
  background: linear-gradient(180deg,
    #fbfcf8 0, #fff 7rem, #fff calc(100% - 9rem), #fbfcf8 100%);
}
.home-story p {
  text-align: left;                    /* not the site's justified prose */
  hyphens: manual;
}
.home-chapter + .home-chapter {
  margin-top: clamp(8rem, 20vh, 13rem);
}
/* the proposal answers the problem's closing question, so it sits closer */
.home-chapter + .home-proposal {
  margin-top: clamp(4rem, 10vh, 6.5rem);
}
/* Block fade-up on arrival. */
.home-story .reveal-armed[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.23, 1, .32, 1);
}
.home-story .reveal-armed[data-reveal].reveal-in {
  opacity: 1;
  transform: none;
}

/* 1 - Vinesys (its kicker and heading are the hero's second frame) */
.home-kicker {
  margin: 0 0 1.75rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #2f7d4f;
}
/* the paragraph on the left, a photograph on the right */
.home-about__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2.5rem clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.home-story .home-about__text {
  margin: 0;
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  line-height: 1.8;
  color: #3f4838;
  text-align: justify;                 /* as the team asked; hyphens keep the gaps even */
  hyphens: auto;
}
/* Key phrase marker. */
.home-mark {
  hyphens: manual;
  padding: 0 .15em;
  font-weight: 700;
  color: #2d3a1e;
  background: linear-gradient(#a8c686, #a8c686) no-repeat 0 0 / 100% 100%;
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}
/* Highlight sweep. */
.bh-armed .home-mark { background-size: 0% 100%; }
.bh-live .home-mark { transition: background-size 1s cubic-bezier(.4, 0, .2, 1); }
.bh-armed.bh-in .home-mark {
  background-size: 100% 100%;
  transition-delay: .4s;
}
/* small and quiet under an image: its licence (from data/credits.json) */
.home-licence {
  margin: .45rem 0 0;
  font-size: .72rem;
  line-height: 1.4;
  color: #6c757d;
  text-align: left;               /* past the site-wide justify rule on <p> */
}
.home-about__photo {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
}
.home-about__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* until the photograph is chosen: a quiet frame holding its place */
.home-about__photo--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  background-color: #eef3e6;
  border: 1px dashed #c3d3ad;
  color: #7d8d68;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* each chapter opens on a statement (the chapter titles are visually hidden) */
.home-statement {
  max-width: 34ch;
  margin: 0 0 clamp(2.5rem, 6vh, 4rem);
  font-size: clamp(1.45rem, 2.6vw, 2.35rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -.012em;
  color: #2d3a1e;
}
.home-problem .home-statement {
  max-width: none;
  font-size: clamp(1.7rem, 3.6vw, 3.25rem);
  line-height: 1.16;
  letter-spacing: -.02em;
  color: #2f7d4f;
}
/* the proposal's sentence is longer: a size down, and a wider measure */
.home-proposal .home-statement {
  max-width: 62ch;
  margin-bottom: clamp(5rem, 13vh, 8.5rem);
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
  line-height: 1.5;
}

/* 2 - The problem: chained steps. */
.home-problem__steps {
  --chain-row-gap: clamp(2.25rem, 5vh, 3rem);   /* between the rows; the line spans it */
  --chain-dot: 10px;
  --chain-line: 1.5px;
  --chain-top: .45rem;                     /* the dot's offset from the row's top: level with the title */
  display: grid;
  gap: var(--chain-row-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-problem__step {
  position: relative;
  padding-left: 2.25rem;
}
/* the line, from this step's dot down to the next one's */
.home-problem__step::before {
  content: "";
  position: absolute;
  top: calc(var(--chain-top) + var(--chain-dot) / 2);
  left: calc((var(--chain-dot) - var(--chain-line)) / 2);
  width: var(--chain-line);
  height: calc(100% + var(--chain-row-gap));
  background-color: #a8c686;
  transform-origin: center top;
}
.home-problem__step:last-child::before { content: none; }
/* the dot, with a ring of the page's white so the line stops just short of it */
.home-problem__step::after {
  content: "";
  position: absolute;
  top: var(--chain-top);
  left: 0;
  width: var(--chain-dot);
  height: var(--chain-dot);
  border-radius: 50%;
  background-color: #2f7d4f;
  box-shadow: 0 0 0 5px #fff;
}
.home-problem__step h3 {
  margin: 0 0 .6rem;
  font-size: clamp(1.1rem, 1.4vw, 1.25rem);
  font-weight: 700;
  color: #37481f;
}
/* Chain draw-in delays. */
.home-problem__step:nth-child(1) { --dot-delay: .15s; --line-delay: .3s; }
.home-problem__step:nth-child(2) { --dot-delay: .9s; --line-delay: 1.05s; }
.home-problem__step:nth-child(3) { --dot-delay: 1.65s; }
.home-problem__steps.reveal-armed .home-problem__step::after {
  transition: transform .45s cubic-bezier(.23, 1, .32, 1) var(--dot-delay, 0s);
}
.home-problem__steps.reveal-armed .home-problem__step::before {
  transition: transform .7s cubic-bezier(.65, 0, .35, 1) var(--line-delay, 0s);
}
.home-problem__steps.reveal-armed:not(.reveal-in) .home-problem__step::after {
  transform: scale(0);
}
.home-problem__steps.reveal-armed:not(.reveal-in) .home-problem__step::before {
  transform: scaleY(0);
}
.home-story .home-problem__step p {
  margin: 0;                               /* full width: ends where the photographs below end */
  font-size: 1.05rem;
  line-height: 1.7;
  color: #444d3c;
  text-align: justify;                     /* as the team asked; hyphens keep the gaps even */
  hyphens: auto;
}
/* Wide screens: title left, text right. */
@media (min-width: 992px) {
  .home-problem__step {
    display: grid;
    grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);   /* the longest title fits */
    column-gap: clamp(2rem, 4vw, 3.5rem);
    align-items: baseline;
  }
  .home-problem__step h3 { margin: 0; }
  /* Centre titles between the chain and the text. */
  @supports (grid-template-columns: subgrid) {
    .home-problem__steps {
      grid-template-columns: var(--chain-dot) minmax(0, 1fr) max-content minmax(0, 1fr) minmax(0, 10fr);
      column-gap: 0;
    }
    .home-problem__step {
      grid-column: 1 / -1;
      grid-template-columns: subgrid;
      column-gap: 0;
      padding-left: 0;
    }
    .home-problem__step h3 { grid-column: 3; }
    .home-problem__step p { grid-column: 5; }
  }
}
/* the figures, now photographs: see ACCORDION GALLERY below */
.home-problem .accordion-gallery {
  margin-top: clamp(2.25rem, 5vh, 3.25rem);
}
/* Claim linked to its reference. */
.home-problem .home-claim {
  font-weight: 700;
  color: #2d3a1e;
  text-decoration: underline dotted rgba(47, 125, 79, .55);
  text-underline-offset: .2em;
  transition: color .2s ease, text-decoration-color .2s ease;
}
.home-problem .home-claim:hover,
.home-problem .home-claim:focus-visible {
  color: #2f7d4f;
  text-decoration-color: currentColor;
}
/* 11. the question runs the whole width of the page */
.home-question {
  max-width: none;
  margin: clamp(3.5rem, 9vh, 5.5rem) 0 0;
  font-size: clamp(1.7rem, 3.6vw, 3.25rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.02em;
  color: #2f7d4f;
}

/* 3 - Our proposal */
.home-proposal__scrolly {
  display: grid;
  gap: 3rem;
}
.home-proposal__figure {
  margin: 0;
}
.home-diagram {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: 0 auto;
}
.home-proposal__caption {
  display: grid;
  justify-items: center;
  margin-top: 1rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #5b6650;
}
/* Painter's credit under the diagram. */
.home-proposal__figure .home-proposal__credit {
  margin: .35rem 0 0;
  text-align: center;
  font-size: .72rem;
  line-height: 1.3;
}
.home-proposal__credit a {
  color: #6b7a5a;
  text-decoration: underline;
  text-decoration-color: rgba(107, 122, 90, .4);
  text-underline-offset: 2px;
  transition: color .2s ease, text-decoration-color .2s ease;
}
.home-proposal__credit a:hover,
.home-proposal__credit a:focus-visible {
  color: #37481f;
  text-decoration-color: currentColor;
}
/* Credit shown only with the last stage. */
.home-proposal__figure .home-proposal__credit { transition: opacity .5s ease, visibility 0s linear 0s; }
.home-proposal__figure[data-step]:not([data-step="4"]) .home-proposal__credit {
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease, visibility 0s linear .5s;
}
.home-proposal__caption > span {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity .5s ease;
}
.home-proposal__figure:not([data-step]) [data-caption="4"],
.home-proposal__figure[data-step="1"] [data-caption="1"],
.home-proposal__figure[data-step="2"] [data-caption="2"],
.home-proposal__figure[data-step="3"] [data-caption="3"],
.home-proposal__figure[data-step="4"] [data-caption="4"] {
  opacity: 1;
}
.home-proposal__steps {
  display: grid;
  gap: 2.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-proposal__index {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1.5px solid #2f7d4f;
  border-radius: 50%;
  font-size: .85rem;
  font-weight: 600;
  color: #2f7d4f;
}
.home-proposal__step h3 {
  margin: .9rem 0 .6rem;
  font-size: clamp(1.35rem, 1.8vw, 1.6rem);
  font-weight: 700;
  color: #37481f;
}
.home-proposal__step p {
  max-width: 34rem;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.75;
  color: #444d3c;
  text-align: justify;
  hyphens: auto;
}

/* Diagram stage layers. */
.hd-layer { transition: opacity .9s ease; }
.hd-dry, .hd-glow { opacity: 0; }
.hd-moist, .hd-water { opacity: 1; }
.hd-cell {
  transition: opacity .5s ease;
  transition-delay: calc(var(--d) * 45ms);
}
.home-proposal__figure[data-step="1"] .hd-dry,
.home-proposal__figure[data-step="2"] .hd-dry { opacity: 1; }
.home-proposal__figure[data-step="3"] .hd-dry { opacity: .45; }
.home-proposal__figure[data-step="2"] .hd-glow { opacity: .6; }
.home-proposal__figure[data-step="3"] .hd-glow { opacity: .22; }
.home-proposal__figure[data-step="1"] .hd-moist,
.home-proposal__figure[data-step="2"] .hd-moist,
.home-proposal__figure[data-step="3"] .hd-moist,
.home-proposal__figure[data-step="1"] .hd-water,
.home-proposal__figure[data-step="2"] .hd-water,
.home-proposal__figure[data-step="3"] .hd-water { opacity: 0; }
.home-proposal__figure[data-step="1"] .hd-cell,
.home-proposal__figure[data-step="2"] .hd-cell {
  opacity: 0;
  transition-delay: 0s;
}
/* Cells wiggle while visible. */
.home-proposal__figure.is-alive[data-step="3"] .hd-cell image,
.home-proposal__figure.is-alive[data-step="4"] .hd-cell image {
  transform-box: fill-box;
  transform-origin: center;
  animation: hd-wiggle calc(2.2s + var(--w) * .35s) ease-in-out infinite;
  animation-delay: calc(var(--d) * -.37s);
}
.hd-cell:nth-child(3n) image { animation-direction: reverse; }
@keyframes hd-wiggle {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25%      { transform: translate(3px, -2px) rotate(5deg); }
  50%      { transform: translate(-2px, 2px) rotate(-4deg); }
  75%      { transform: translate(2px, 3px) rotate(3deg); }
}

/* Wide screens: pinned diagram and text. */
@media (min-width: 992px) {
  .home-proposal__scrolly {
    --stick-top: calc(73px + max(1.5rem, (100vh - 73px - var(--fig-h, 36rem)) / 2));
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 4.5rem;
    align-items: start;
  }
  .home-proposal__steps { order: -1; }
  .home-proposal__figure {
    position: sticky;
    top: var(--stick-top);
  }
  /* the scroll distance: about 60% of a window per step */
  .home-proposal__scrolly.is-scrolly {
    min-height: calc(var(--fig-h, 36rem) + 4 * 60vh);
  }
  .home-proposal__scrolly.is-scrolly .home-proposal__steps {
    position: sticky;
    top: var(--stick-top);
    height: var(--fig-h, auto);
    gap: 0;
    align-items: center;
  }
  /* Stack all steps in one cell. */
  .home-proposal__scrolly.is-scrolly .home-proposal__step {
    grid-area: 1 / 1;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
  }
  .home-proposal__scrolly.is-scrolly .home-proposal__step.is-active {
    pointer-events: auto;
  }
  /* the marker sweeps in under the key phrases as their step arrives */
  .home-proposal__scrolly.is-scrolly .home-mark {
    background-size: 0% 100%;
    transition: background-size .9s cubic-bezier(.4, 0, .2, 1);
  }
  .home-proposal__scrolly.is-scrolly .is-active .home-mark {
    background-size: 100% 100%;
    transition-delay: .25s;
  }
}

/* 3b - Teasers: overlapping photo and panel. */
.home-teaser + .home-teaser { margin-top: clamp(4rem, 10vh, 6.5rem); }
.home-teaser__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
}
.home-teaser__media,
.home-teaser__panel { grid-row: 1; }
.home-teaser--hp .home-teaser__media { grid-column: 1 / 8; }
.home-teaser--hp .home-teaser__panel { grid-column: 7 / 13; }
/* Lab teaser photo column. */
.home-teaser--lab .home-teaser__media { grid-column: 7 / 13; }
.home-teaser--lab .home-teaser__photo {
  padding-left: calc(100% / 6);
  background-color: #eceff4;
}
.home-teaser--lab .home-teaser__panel { grid-column: 1 / 8; }
.home-teaser--lab .home-licence { text-align: right; }

.home-teaser__photo {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
}
.home-teaser--hp .home-teaser__photo { aspect-ratio: 4 / 3; }
.home-teaser__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s cubic-bezier(.23, 1, .32, 1);
}
.home-teaser--lab .home-teaser__photo img { height: auto; }   /* shown whole */

.home-teaser__panel {
  position: relative;
  z-index: 1;
  padding: clamp(1.75rem, 3.5vw, 3rem);
  background-color: #f3f7ec;
  border-radius: 6px;
  box-shadow: 0 28px 56px -36px rgba(45, 58, 30, .45);
  transition: box-shadow .3s ease;
}
.home-teaser__panel:hover,
.home-teaser__panel:focus-visible {
  box-shadow: 0 32px 64px -32px rgba(45, 58, 30, .55);
}
/* hovering the panel: the photo leans in a touch and the arrow nudges on */
.home-teaser__grid:has(.home-teaser__panel:hover, .home-teaser__panel:focus-visible) .home-teaser__photo img {
  transform: scale(1.04);
}
.home-teaser__arrow {
  display: inline-block;
  transition: transform .25s ease;
}
.home-teaser__panel:hover .home-teaser__arrow,
.home-teaser__panel:focus-visible .home-teaser__arrow { transform: translateX(5px); }

/* the "42": a figure, counted up once by home.js ("count-up") */
.home-teaser__stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.25rem;
  text-align: left;
}
.home-teaser__num {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  color: #2f7d4f;
}
.home-teaser__label {
  max-width: 14rem;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #5b6650;
}

/* the three lab results, as plain text: status in bold, then the result */
.home-teaser__results {
  display: grid;
  gap: .5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}
.home-teaser__results li {
  font-size: .95rem;
  line-height: 1.55;
  color: #3f4838;
  text-align: left;                /* past the site-wide justify on li */
  hyphens: manual;
}
.home-teaser__status {
  font-weight: 600;
  color: #2c3326;
}
.home-teaser__status::after { content: ": "; }

/* Teaser reveal motion. */
.home-story .home-teaser__photo.reveal-armed[data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}
.home-teaser__photo.reveal-armed img {
  transition: clip-path 1.3s cubic-bezier(.65, 0, .35, 1), transform 1.6s cubic-bezier(.23, 1, .32, 1);
}
.home-teaser--hp .home-teaser__photo.reveal-armed img { clip-path: inset(0 100% 0 0); }
.home-teaser--hp .home-teaser__photo.reveal-in img    { clip-path: inset(0 0 0 0); }
.home-teaser--lab .home-teaser__photo.reveal-armed img { clip-path: circle(0% at 50% 47%); }
.home-teaser--lab .home-teaser__photo.reveal-in img    { clip-path: circle(80% at 50% 47%); }
.home-teaser__photo.reveal-armed:not(.reveal-in) img { transform: scale(1.12); }
.home-story .home-teaser__panel.reveal-armed[data-reveal] {
  transition: opacity .8s ease .3s, transform .8s cubic-bezier(.23, 1, .32, 1) .3s, box-shadow .3s ease;
}
.home-story .home-teaser__results.reveal-armed[data-reveal] {
  opacity: 1;
  transform: none;
}
.home-teaser__results.reveal-armed > li {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.23, 1, .32, 1);
}
.home-teaser__results.reveal-in > li { opacity: 1; transform: none; }
.home-teaser__results.reveal-in > li:nth-child(1) { transition-delay: .5s; }
.home-teaser__results.reveal-in > li:nth-child(2) { transition-delay: .65s; }
.home-teaser__results.reveal-in > li:nth-child(3) { transition-delay: .8s; }

@media (prefers-reduced-motion: reduce) {
  .home-teaser__photo img,
  .home-teaser__arrow { transition: none; }
  .home-teaser__grid:has(.home-teaser__panel:hover) .home-teaser__photo img { transform: none; }
}
/* Tablet and phone: photo on top, panel overlapping. */
@media (max-width: 991.98px) {
  .home-teaser__grid { grid-template-columns: minmax(0, 1fr); }
  .home-teaser__media { display: contents; }
  .home-teaser .home-teaser__photo { grid-row: 1; grid-column: 1; }
  .home-teaser .home-teaser__panel {
    grid-row: 2;
    grid-column: 1;
    margin: -3rem clamp(.75rem, 4vw, 2rem) 0;
  }
  .home-teaser .home-licence { grid-row: 3; grid-column: 1; text-align: left; }
  .home-teaser--lab .home-teaser__photo {
    max-width: 30rem;
    width: 100%;
    padding-left: 0;
    justify-self: center;
  }
}

/* shared by both panels: the link, its title, text and "more" line */
.home-hp__link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.home-hp__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.02em;
  color: #2d3a1e;
}
/* the paragraph a step smaller than the About block's (it is longer) */
.home-story .home-hp .home-about__text {
  font-size: clamp(.95rem, 1vw, 1rem);
  line-height: 1.7;
}
/* its key phrases: brand green, a touch heavier (as in the Sponsors intro) */
.home-hp .home-about__text strong {
  font-weight: 600;
  color: #2f7d4f;
}
.home-hp__more {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #2f7d4f;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.home-hp__link:hover .home-hp__more,
.home-hp__link:focus-visible .home-hp__more {
  border-bottom-color: currentColor;
}
.home-hp__link:focus-visible {
  outline: 2px solid #2f7d4f;
  outline-offset: 6px;
  border-radius: 2px;
}

/* 3c - Special prize cards. */
.home-prizes__title {
  margin: 0 0 clamp(1.5rem, 4vh, 2.25rem);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.02em;
  color: #2d3a1e;
}
.home-prizes__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-prizes__card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  color: inherit;
  cursor: pointer;
}
.home-prizes__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  background-color: #eef3e6;            /* the placeholder until a photo is set */
}
/* a photo's credit in its pop-up, under the photo */
.home-prizes__credit {
  margin: .5rem 1.5rem 0;
  font-size: .72rem;
  line-height: 1.35;
  text-align: right;
  color: #6b7a5a;
}
.home-prizes__credit a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(107, 122, 90, .45);
  text-underline-offset: 2px;
}
.home-prizes__credit a:hover,
.home-prizes__credit a:focus-visible { color: #37481f; text-decoration-color: currentColor; }
/* Reminder text on an empty photo frame. */
.home-prizes__reminder {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 1rem;
  font-size: .9rem;
  font-weight: 600;
  text-align: center;
  color: #6b7a5a;
}
.home-prizes__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.23, 1, .32, 1);
}
.home-prizes__card:hover .home-prizes__media img,
.home-prizes__card:focus-visible .home-prizes__media img {
  transform: scale(1.04);
}
.home-prizes__name {
  display: block;
  margin-top: .85rem;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
  color: #2d3a1e;
  /* grows with the photo on hover; a transform, so nothing below it moves */
  transform-origin: center top;
  transition: transform .6s cubic-bezier(.23, 1, .32, 1), color .2s ease;
}
.home-prizes__card:hover .home-prizes__name,
.home-prizes__card:focus-visible .home-prizes__name {
  color: #2f7d4f;
  transform: scale(1.1);
}
.home-prizes__card:focus-visible {
  outline: 2px solid #2f7d4f;
  outline-offset: 6px;
  border-radius: 4px;
}

.home-prizes__modal {
  width: min(44rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: #3f4838;
  box-shadow: 0 24px 60px rgba(30, 40, 20, .25);
  overflow: auto;
}
.home-prizes__modal::backdrop {
  background: rgba(30, 40, 20, .45);
}
.home-prizes__modal[open] {
  animation: home-prize-in .35s cubic-bezier(.23, 1, .32, 1);
}
.home-prizes__modal[open]::backdrop {
  animation: home-prize-fade .35s ease;
}
@keyframes home-prize-in {
  from { opacity: 0; transform: translateY(12px) scale(.96); }
}
@keyframes home-prize-fade {
  from { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .home-prizes__modal[open],
  .home-prizes__modal[open]::backdrop { animation: none; }
  .home-prizes__media img,
  .home-prizes__name { transition: none; }
}
.home-prizes__sheet { position: relative; }
.home-prizes__media--wide {
  aspect-ratio: 16 / 9;
  border-radius: 0;
}
.home-prizes__close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #2d3a1e;
  cursor: pointer;
}
.home-prizes__close:focus-visible {
  outline: 2px solid #2f7d4f;
  outline-offset: 2px;
}
.home-prizes__body {
  padding: clamp(1.25rem, 3vw, 2rem);
}
.home-prizes__body h3 {
  margin: 0 0 .75rem;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 600;
  color: #2d3a1e;
}
.home-story .home-prizes__body p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}
.home-prizes__body .home-hp__more { text-decoration: none; }
.home-prizes__body .home-hp__more:hover,
.home-prizes__body .home-hp__more:focus-visible { border-bottom-color: currentColor; }

@media (max-width: 767.98px) {
  .home-prizes__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 991.98px) {
  .home-about__grid { grid-template-columns: minmax(0, 1fr); }
}

/* 4 - the presentation video: a centred 16:9 player */
.home-video .container {
  text-align: center;
}
.home-video__title {
  margin: 0 0 clamp(1.5rem, 4vh, 2.25rem);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.02em;
  color: #2d3a1e;
}
.home-video__figure {
  max-width: 960px;
  margin: 0 auto;
}
.home-story .home-video__caption {
  margin-top: 1rem;
  text-align: center;
  hyphens: manual;
  font-size: .95rem;
  line-height: 1.5;
  color: #5b6650;
}
.home-video__frame {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #1f2a17;                 /* shown until the player loads */
  box-shadow: 0 18px 40px -24px rgba(31, 42, 23, .45);
}
.home-video__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ACCORDION GALLERY */
.accordion-gallery {
  --ag-accent: #a8c686;                    /* the light green of the brand: focus ring */
  --ag-gap: 10px;
  --ag-radius: 16px;                       /* rounded corners */
  --ag-height: 430px;
  --ag-media-size: 320px;
  --ag-dur: .6s;
  --ag-ease: cubic-bezier(.215, .61, .355, 1);   /* GSAP's power3.out */
  display: flex;
  gap: var(--ag-gap);
  height: var(--ag-height);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ag-panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--ag-radius);
  background-color: #1c2616;
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6);
}
.ag-ready .ag-panel {
  transition: flex-grow var(--ag-dur) var(--ag-ease);
}
/* the whole panel is the button that opens it */
.ag-panel__hit {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: none;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ag-panel__hit:focus-visible {
  outline: 2px solid var(--ag-accent);
  outline-offset: -4px;
}
/* Picture wider than a closed panel. */
.ag-panel__media {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100%, var(--ag-media-size));
  height: 100%;
  transform: translate(calc(-50% + var(--ag-shift, 0px)), -50%);
}
.ag-panel__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
/* no photograph yet: the panel's own colour, lit a little from the top */
.ag-panel__media--empty {
  background:
    radial-gradient(120% 80% at 30% 10%, rgba(255, 255, 255, .14), transparent 60%),
    var(--ag-fill, #37481f);
}
.ag-panel__pending {
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  white-space: nowrap;
  pointer-events: none;
}
/* Bottom shade and dimming. */
.ag-panel__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(12, 18, 9, .8) 100%);
  pointer-events: none;
}
.ag-panel__shade::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(12, 18, 9, .38);
  opacity: 0;
}
.ag-live .ag-panel:not(.is-active) .ag-panel__media { filter: grayscale(1); }
.ag-live .ag-panel:not(.is-active) .ag-panel__shade::after { opacity: 1; }
.ag-live .ag-panel:not(.is-active) .ag-panel__pending { opacity: 0; }
.ag-ready .ag-panel__media {
  transition: transform var(--ag-dur) var(--ag-ease), filter var(--ag-dur) var(--ag-ease);
}
.ag-ready .ag-panel__shade::after,
.ag-ready .ag-panel__pending {
  transition: opacity var(--ag-dur) var(--ag-ease);
}

/* Caption over the panel. */
.ag-panel__caption {
  position: absolute;
  color: #fff;
  text-align: left;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
  pointer-events: none;
}
.ag-panel__num {
  font-size: clamp(2.4rem, 3.6vw, 3.5rem);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.03em;
  white-space: nowrap;
  transform-origin: 0 100%;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}
.ag-panel__unit {
  margin-left: .12em;
  font-size: .42em;
  font-weight: 600;
  letter-spacing: 0;
}
.ag-panel__label {
  max-height: 6.5em;
  margin-top: .5rem;
  overflow: hidden;
  font-size: .95rem;
  line-height: 1.4;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .55);
}
/* Closed and open caption states. */
.ag-live .ag-panel:not(.is-active) .ag-panel__num { transform: scale(.5); }
.ag-panel__licence {
  display: block;
  margin-top: .3rem;
  font-size: .68rem;
  line-height: 1.3;
  opacity: .8;
}
/* Licence link, active on the open panel only. */
a.ag-panel__licence {
  width: fit-content;                     /* clickable on its words only, not the whole line */
  max-width: 100%;
  color: inherit;
  text-decoration: underline dotted rgba(255, 255, 255, .55);
  text-underline-offset: 2px;
  pointer-events: auto;
  transition: opacity .2s ease;
}
a.ag-panel__licence:hover,
a.ag-panel__licence:focus-visible {
  opacity: 1;
  text-decoration: underline solid currentColor;
}
a.ag-panel__licence:focus-visible {
  outline: 2px solid var(--ag-accent);
  outline-offset: 2px;
  border-radius: 2px;
}
.ag-live .ag-panel:not(.is-active) a.ag-panel__licence {
  visibility: hidden;
  pointer-events: none;
}
/* Source citation after the caption. */
.ag-panel__cite { margin-left: .2em; font-size: .7em; }
.ag-panel__cite a {
  color: inherit;
  text-decoration: underline dotted rgba(255, 255, 255, .55);
  text-underline-offset: 2px;
  pointer-events: auto;
}
.ag-panel__cite a:hover,
.ag-panel__cite a:focus-visible { text-decoration: underline solid currentColor; }
.ag-panel__cite a:focus-visible {
  outline: 2px solid var(--ag-accent);
  outline-offset: 2px;
  border-radius: 2px;
}
.ag-live .ag-panel:not(.is-active) .ag-panel__cite a {
  visibility: hidden;
  pointer-events: none;
}
.ag-live .ag-panel:not(.is-active) .ag-panel__label {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  transform: translateX(-14px);
}
.ag-ready .ag-panel__label {
  transition: opacity calc(var(--ag-dur) * .6) var(--ag-ease), transform calc(var(--ag-dur) * .6) var(--ag-ease),
              max-height var(--ag-dur) var(--ag-ease), margin-top var(--ag-dur) var(--ag-ease);
}
.ag-ready .ag-panel__num {
  transition: transform var(--ag-dur) var(--ag-ease);
}
.ag-ready .ag-panel.is-active .ag-panel__label {
  transition-duration: var(--ag-dur);
  transition-delay: .06s;
}

/* narrower screens: a column, the open panel taking about half its height */
@media (max-width: 991.98px) {
  .accordion-gallery {
    --ag-height: 520px;
    flex-direction: column;
  }
  .ag-panel__media {
    width: 100%;
    height: max(100%, var(--ag-media-size));
    transform: translate(-50%, calc(-50% + var(--ag-shift, 0px)));
  }
  .ag-panel__caption {
    left: 1rem;
    right: 1rem;
    bottom: .9rem;
  }
  .ag-panel__pending { top: .75rem; left: 1rem; }
}
@media (max-width: 575.98px) {
  .accordion-gallery { --ag-height: 500px; }
  .ag-panel__num { font-size: 2.3rem; }
  .ag-panel__label { font-size: .88rem; }
}
/* reduced motion: panels still open and close, but at once */
@media (prefers-reduced-motion: reduce) {
  .accordion-gallery { --ag-dur: 0s; }
  .ag-ready .ag-panel.is-active .ag-panel__label { transition-delay: 0s; }
}

/* CREDITS */
.page-credits {
  margin-top: 3rem;
  margin-bottom: -5rem;           /* sits in the gap the footer's fade leaves */
  position: relative;
  z-index: 1;
}
.page-credits p {
  margin: 0;
  font-size: .78rem;
  line-height: 1.6;
  color: #5a6b45;
  text-align: left;               /* past the site-wide justify rule on <p> */
  hyphens: manual;
}
.page-credits-label {
  margin-right: .5rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .7rem;
}
.page-credit + .page-credit::before {
  content: "\00b7";
  margin: 0 .45rem;
}
.credit-num a {
  text-decoration: none;
  color: #2f7d4f;
}
.credit-num a:hover { text-decoration: underline; }

/* AI usage list. */
.credit-list--ai > li { margin-bottom: 1.6rem; }
.credit-list--ai .ai-tool { display: block; font-size: 1.02rem; }
.credit-list--ai .ai-models {
  display: block;
  margin-bottom: .5rem;
  font-size: .85rem;
  color: #5a6b45;
}
.credit-list--ai p { margin-bottom: .6rem; }
.credit-list--ai p:last-child { margin-bottom: 0; }

/* Attributions page */
.credits-page h2 { margin-top: 2.5rem; }
.credits-intro {
  color: #5a6b45;
  text-align: left;
}
/* Wiki requirements drawer. */
.credits-req {
  margin: 0 0 1.5rem;
  background-color: #f4faf6;
  border: 1px solid #cfe9d8;
  border-radius: .75rem;
}
.credits-req__title {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.1rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #2f7d4f;
  cursor: pointer;
  list-style: none;
}
.credits-req__title::-webkit-details-marker { display: none; }
.credits-req__title::after {
  content: "";
  width: .5rem;
  height: .5rem;
  margin-left: auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.credits-req[open] .credits-req__title::after { transform: rotate(-135deg); }
.credits-req__title:focus-visible {
  outline: 2px solid #2f7d4f;
  outline-offset: 2px;
  border-radius: .75rem;
}
.credits-req__body {
  padding: 0 1.1rem 1rem;
  color: #3f4838;
  line-height: 1.6;
}
/* left-aligned: justified text leaves wide gaps in a box this narrow on phones */
.credits-req__body p,
.credits-req__body li { text-align: left; hyphens: none; }
.credits-req__body ul { padding-left: 1.2rem; margin-bottom: .75rem; }
.credits-req__body li { margin-bottom: .45rem; }
.credits-req__short { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) {
  .credits-req__title::after { transition: none; }
}
.credit-list {
  padding-left: 2.2rem;
  overflow-wrap: anywhere;   /* long source URLs wrap instead of pushing the page sideways on phones */
}
.credit-list li {
  margin-bottom: .55rem;
  line-height: 1.55;
  text-align: left;
  hyphens: manual;
  scroll-margin-top: 90px;        /* clear of the fixed navbar when linked to */
}
.credit-list li:target {
  background-color: #eaf6ee;
  border-radius: .35rem;
  box-shadow: 0 0 0 .35rem #eaf6ee;
}
.credit-title { font-weight: 600; color: #37481f; }
/* Linked credit title. */
a.credit-title { text-decoration: none; }
a.credit-title:hover,
a.credit-title:focus-visible {
  color: #245f3c;
  text-decoration: underline;
  text-decoration-color: #45b06c;
  text-underline-offset: .2em;
}
.credit-pending { color: #8a9378; font-style: italic; }
/* Flagged credit entry. */
.credit-flag,
.credit-flag .credit-title,
.credit-flag a { color: #b3261e !important; }

/* AI image credit line. */
.ai-credit {
  margin: 0;
  font-size: .7rem;
  line-height: 1.4;
  color: #8a9479;
  text-align: right;
}
.ai-credit a { color: inherit; text-decoration: underline; text-underline-offset: .15em; }
/* Credit placed on the soil. */
.ai-credit--soil {
  position: absolute;
  z-index: 1;
  top: calc(var(--terrain-h) + .55rem);
  right: 1rem;
  left: 1rem;
  color: rgba(255, 248, 236, .62);
}
/* on the Wellness quiz: under the progress bar */
.ai-credit--quiz { margin: -.9rem 0 1rem; }

/* Highlight ring for a linked asset. */
.credit-spotlight {
  outline: 3px solid #45b06c !important;
  outline-offset: 6px;
  border-radius: 6px;
  transition: outline-color 1.2s ease;
}
.credit-spotlight.is-fading { outline-color: rgba(69, 176, 108, 0) !important; }
.credit-source { display: block; margin-top: .2rem; }
/* the claim on the wiki that a cited source supports */
.credit-claim {
  display: block;
  margin-top: .2rem;
  font-style: italic;
  color: #4a5c33;
}
.credit-used {
  display: block;
  font-size: .85rem;
  color: #6c757d;
}

/* iGEMforge eval comparator */
.igf {
  --igf-bg: #f6f7f1;
  --igf-card: #fff;
  --igf-ink: #2b3320;
  --igf-muted: #6b7360;
  --igf-line: #e0e2d6;
  --igf-accent: #37481f;
  --igf-bare: #a65a33;
  --igf-skill: #2f7d4f;
  color: var(--igf-ink);
  background: var(--igf-bg);
  /* the article centres figure contents; the transcripts must stay ranged left */
  text-align: left;
  padding: 18px;
  border: 1px solid var(--igf-line);
  border-radius: 14px;
  line-height: 1.5;
}
.igf *, .igf *::before, .igf *::after { box-sizing: border-box; }
/* Left-align transcripts. */
.igf p, .igf li, .igf td, .igf th { text-align: left; }
.igf p { margin: 0; }

.igf-prompt {
  background: var(--igf-card);
  border: 1px solid var(--igf-line);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.igf-prompt .igf-tag {
  display: block;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--igf-accent);
  margin-bottom: 6px;
}
.igf-prompt p { font-size: .9rem; }

.igf-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.igf-btn {
  font: inherit;
  font-size: .84rem;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid var(--igf-accent);
  background: var(--igf-accent);
  color: #fff;
}
.igf-btn.igf-ghost { background: transparent; color: var(--igf-accent); }
.igf-btn:hover { opacity: .82; }
.igf-pick {
  margin-left: auto;
  font-size: .79rem;
  color: var(--igf-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.igf-controls .igf-pick + .igf-pick { margin-left: 0; }
.igf select {
  font: inherit;
  font-size: .79rem;
  padding: 4px 7px;
  border: 1px solid var(--igf-line);
  border-radius: 6px;
  background: var(--igf-card);
  color: var(--igf-ink);
}

.igf-panes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .igf-panes { grid-template-columns: 1fr; } }

.igf-pane {
  background: var(--igf-card);
  border: 1px solid var(--igf-line);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.igf-pane > header {
  padding: 10px 14px;
  border-bottom: 1px solid var(--igf-line);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.igf-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.igf-pane--bare .igf-dot { background: var(--igf-bare); }
.igf-pane--skill .igf-dot { background: var(--igf-skill); }
.igf-pane header strong { font-size: .85rem; font-weight: 600; }
.igf-pane header .igf-run { font-size: .72rem; color: var(--igf-muted); margin-left: auto; }

.igf-stream { padding: 12px 14px; display: flex; flex-direction: column; gap: 9px; }
.igf-bubble {
  font-size: .86rem;
  background: #faf9f5;
  border: 1px solid var(--igf-line);
  border-radius: 8px;
  padding: 9px 11px;
  white-space: pre-wrap;
}
.igf-caret {
  display: inline-block;
  width: 7px;
  height: 1em;
  background: var(--igf-ink);
  vertical-align: -2px;
  animation: igf-blink .9s steps(1) infinite;
}
@keyframes igf-blink { 50% { opacity: 0; } }

.igf-more { margin: 0 14px 12px; font-size: .84rem; }
.igf-more summary { cursor: pointer; color: var(--igf-accent); font-size: .8rem; padding: 4px 0; }
.igf-body {
  border-left: 2px solid var(--igf-line);
  padding: 4px 0 4px 11px;
  margin-top: 6px;
  max-height: 340px;
  overflow: auto;
}
.igf-body h4 { font-size: .82rem; margin: 11px 0 4px; }
.igf-body p, .igf-body li { font-size: .81rem; margin: 5px 0; }
.igf-body table { border-collapse: collapse; width: 100%; font-size: .73rem; margin: 7px 0; }
.igf-body th, .igf-body td { border: 1px solid var(--igf-line); padding: 3px 6px; text-align: left; }
.igf-body pre {
  background: #faf9f5;
  border: 1px solid var(--igf-line);
  border-radius: 6px;
  padding: 7px;
  font-size: .72rem;
  overflow: auto;
}
.igf-trim { color: var(--igf-muted); font-style: italic; font-size: .76rem; }

.igf-score { border-top: 1px solid var(--igf-line); padding: 11px 14px; margin-top: auto; }
.igf-score .igf-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: .76rem;
  color: var(--igf-muted);
  margin-bottom: 7px;
}
.igf-score .igf-head b { font-size: 1.05rem; }
.igf-pane--bare .igf-score .igf-head b { color: var(--igf-bare); }
.igf-pane--skill .igf-score .igf-head b { color: var(--igf-skill); }
.igf-crit { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.igf-crit li {
  font-size: .79rem;
  display: flex;
  gap: 7px;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity .3s, transform .3s;
}
.igf-crit li.in { opacity: 1; transform: none; }
.igf-mark { font-weight: 700; flex: none; width: 1em; text-align: center; }
.igf-pass .igf-mark { color: var(--igf-skill); }
.igf-fail .igf-mark { color: var(--igf-bare); }
.igf-fail .igf-txt { color: var(--igf-muted); }

.igf-agg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
@media (max-width: 560px) { .igf-agg { grid-template-columns: 1fr; } }
.igf-agg div {
  background: var(--igf-card);
  border: 1px solid var(--igf-line);
  border-radius: 8px;
  padding: 10px 12px;
}
.igf-agg span { display: block; font-size: .72rem; color: var(--igf-muted); }
.igf-agg b { font-size: .92rem; font-weight: 600; }

.igf-caveats {
  margin-top: 14px;
  background: var(--igf-card);
  border: 1px solid var(--igf-line);
  border-radius: 10px;
  padding: 12px 16px;
}
.igf-caveats summary { cursor: pointer; font-size: .82rem; font-weight: 600; }
.igf-caveats ul { margin: 8px 0 0; padding-left: 18px; }
.igf-caveats li { font-size: .8rem; color: var(--igf-muted); margin: 4px 0; }

/* Reduced motion: no blinking caret. */
@media (prefers-reduced-motion: reduce) {
  .igf-caret { animation: none; }
  .igf-crit li { transition: none; }
}

/* ENGINEERING PAGE */
.eng-page {
  --eng-design: #2f7d4f;   /* brand green */
  --eng-build:  #2f6f94;
  --eng-test:   #c1662f;   /* = --biz-signal */
  --eng-learn:  #7a3e6e;   /* grape */
  --eng-track:  #e9ecef;
}
.eng-phase--design, .eng-seg--design, .eng-legend--design { --eng-c: var(--eng-design); }
.eng-phase--build,  .eng-seg--build,  .eng-legend--build  { --eng-c: var(--eng-build); }
.eng-phase--test,   .eng-seg--test,   .eng-legend--test   { --eng-c: var(--eng-test); }
.eng-phase--learn,  .eng-seg--learn,  .eng-legend--learn  { --eng-c: var(--eng-learn); }

/* Series label above a group of cycles (Wet lab / Dry lab) */
.eng-page .eng-series {
  margin: 3.2rem 0 -.4rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--biz-accent);
}
.eng-page .eng-series:first-of-type { margin-top: 2.4rem; }

/* Wet lab / Dry lab part divider. */
.eng-page h2.eng-part {
  margin-top: 5rem;
  margin-bottom: 0;
  padding: 1.1rem 0 .2rem;
  border-top: 3px solid var(--biz-accent);
  font-size: 2.7rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--biz-accent);
}
.eng-page h2.eng-part + hr { display: none; }
.eng-page h2.eng-part:first-of-type { margin-top: 3rem; }
@media (max-width: 575.98px) {
  .eng-page h2.eng-part { margin-top: 3.2rem; font-size: 1.55rem; }
}

/* Design subsection titles. */
.eng-page .eng-design h3 {
  margin: 2.75rem 0 .9rem;
  padding-top: .9rem;
  font-size: clamp(1.35rem, 1.1rem + .7vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -.01em;
  color: #37481f;
  border-top: 2px solid var(--biz-accent);
}
.eng-page .eng-design > p:first-of-type + h3 { margin-top: 2rem; }

/* Panelled figures. */
.eng-page .eng-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
  align-items: start;
  margin-bottom: .9rem;
}
.eng-page .eng-panel-tag {
  display: block;
  margin-bottom: .3rem;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ink-dim);
}
.eng-page .eng-panel-sq { margin-inline: auto; }

/* Crop the top strip off one figure. */
.eng-page .eng-crop-top,
.fz-img.eng-crop-top {
  aspect-ratio: 812 / 475;
  object-fit: cover;
  object-position: bottom;
}

/* Tiny source images at their own size. */
.eng-page .eng-figure-tiny .pe-figure-img { max-width: 180px; margin-inline: auto; }

/* Redesign: the bridge out of an iteration, after its four phases */
.eng-redesign {
  margin-top: 2rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--biz-rule);
  border-left: 3px solid var(--eng-design);
  border-radius: 4px;
}
.eng-redesign-title {
  margin: 0 0 .5rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--eng-design);
}
.eng-redesign p:last-child { margin-bottom: 0; }

/* Cycle goal */
.eng-page .eng-goal {
  margin: 1.2rem 0 1.6rem;
  padding: 0;
  font-size: 1.02rem;
}
.eng-goal-label {
  display: block;
  margin-bottom: .2rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--biz-accent);
}

/* Iteration track: the cycle's iterations in a row, linked */
.eng-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 2.2rem;
  margin: 0 0 2.4rem;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.eng-track li { position: relative; }
/* arrow from one iteration to the next */
.eng-track li + li::before {
  content: "";
  position: absolute;
  left: -1.6rem;
  top: 50%;
  width: 1rem;
  height: 1rem;
  border-top: 2px solid var(--biz-rule-strong);
  border-right: 2px solid var(--biz-rule-strong);
  transform: translateY(-50%) rotate(45deg) scale(.6);
}
.eng-track a {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  height: 100%;
  padding: .85rem 1rem .9rem;
  background: #fff;
  border: 1px solid var(--biz-rule);
  border-radius: .6rem;
  color: var(--biz-ink);
  text-decoration: none;
  transition: border-color .2s ease;
}
.eng-track a:hover,
.eng-track a:focus-visible,
.eng-track a.is-current { border-color: var(--biz-accent); }
.eng-track-num {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--biz-accent);
}
.eng-track-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

/* Iteration */
.eng-iter { scroll-margin-top: 90px; }
.eng-iter-head { margin-bottom: 1.2rem; }
.eng-iter-num {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #2f7d4f;
  background-color: #eaf6ee;
  padding: .25rem .7rem;
  border-radius: 999px;
}
.eng-page .eng-iter-head h3 { margin: .5rem 0 0; }
.eng-iter-body {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

/* Wheel */
.eng-wheel-col { position: sticky; top: 96px; }
.eng-wheel svg { display: block; width: 100%; height: auto; overflow: visible; }
.eng-seg path { fill: none; stroke-width: 16; }
.eng-seg-track { stroke: var(--eng-track); }
.eng-seg-fill {
  stroke: var(--eng-c);
  stroke-dasharray: 1 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset .55s ease;
}
.eng-seg text {
  fill: #fff;
  font-size: 9px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: central;
  transition: fill .3s ease;
}
.eng-wheel-num {
  fill: var(--biz-ink);
  font-size: 19px;
  font-weight: 700;
  text-anchor: middle;
}
.eng-wheel-phase {
  fill: var(--biz-ink-soft);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-anchor: middle;
}
.eng-iter.is-live .eng-seg-fill { stroke-dashoffset: 1; }
.eng-iter.is-live .eng-seg.is-done .eng-seg-fill { stroke-dashoffset: 0; }
.eng-iter.is-live .eng-seg text { fill: #adb5bd; }
.eng-iter.is-live .eng-seg.is-done text { fill: #fff; }

.eng-legend {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.eng-legend li { margin: 0; }
.eng-legend a {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .2rem 0;
  font-size: .82rem;
  color: var(--biz-ink-soft);
  text-decoration: none;
}
.eng-legend a::before {
  content: "";
  flex: none;
  width: .6rem;
  height: .6rem;
  border-radius: 50%;
  background: var(--eng-c);
  transition: background-color .3s ease;
}
.eng-legend a:hover { color: var(--biz-ink); }
.eng-iter.is-live .eng-legend li:not(.is-done) a::before { background: var(--eng-track); }
.eng-legend li.is-current a { color: var(--biz-ink); font-weight: 600; }

/* Phases */
.eng-phase {
  position: relative;
  padding-left: 1.3rem;
  border-left: 2px solid var(--eng-c);
  scroll-margin-top: 96px;
}
.eng-phase + .eng-phase { margin-top: 1.8rem; }
.eng-page .eng-phase-title {
  margin: 0 0 .55rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--eng-c);
}
.eng-phase .pe-figure { margin: 1.6rem 0; }

/* Hand-off between iterations of the same cycle */
.eng-handoff {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  margin: 2.4rem 0;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.eng-handoff span:first-child { color: var(--eng-learn); }
.eng-handoff span:last-child  { color: var(--eng-design); }
.eng-handoff-arrow {
  position: relative;
  width: 3rem;
  height: 2px;
  background: var(--biz-rule-strong);
}
.eng-handoff-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: .5rem;
  height: .5rem;
  border-top: 2px solid var(--biz-rule-strong);
  border-right: 2px solid var(--biz-rule-strong);
  transform: translateY(-50%) rotate(45deg);
}

/* Small screens: wheel beside the iteration title, not sticky */
@media (max-width: 767.98px) {
  .eng-track { grid-auto-flow: row; gap: 1.6rem; }
  .eng-track li + li::before {
    left: 50%;
    top: -1.25rem;
    transform: translateX(-50%) rotate(135deg) scale(.6);
  }
  .eng-iter-body { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .eng-wheel-col {
    position: static;
    display: flex;
    align-items: center;
    gap: 1.2rem;
  }
  .eng-wheel { width: 110px; flex: none; }
  .eng-legend { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .eng-seg-fill,
  .eng-seg text,
  .eng-legend a::before { transition: none; }
}

/* FIGURE ZOOM */
.fz-thumb { cursor: zoom-in; }
.fz-thumb:focus-visible {
  outline: 2px solid var(--biz-accent, #2f7d4f);
  outline-offset: 3px;
}

/* Lock page scroll while zoomed. */
html.fz-open { overflow: hidden; }
html.fz-open body { padding-right: var(--fz-bar, 0px); }

.fz-dialog {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;            /* the picture is sized to fit, so this never scrolls */
  background: rgba(16, 24, 12, .92);
  cursor: zoom-out;
}
.fz-dialog[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fz-in .2s cubic-bezier(.23, 1, .32, 1);
}
.fz-dialog.is-closing { animation: fz-in .16s ease reverse; }
.fz-dialog::backdrop { background: rgba(16, 24, 12, .92); }

/* Zoomed image fills the window. */
.fz-img {
  display: block;
  width: 96vw;
  height: 94dvh;
  object-fit: contain;
  -webkit-user-select: none;
  user-select: none;
}
/* Keep the crop when zoomed. */
.fz-img.eng-crop-top {
  width: min(96vw, calc(94dvh * 812 / 475));
  height: auto;
}

@keyframes fz-in {
  from { opacity: 0; transform: scale(.985); }
}
@media (prefers-reduced-motion: reduce) {
  .fz-dialog[open],
  .fz-dialog.is-closing { animation: none; }
}

/* PROJECT DESCRIPTION */
.desc-page {
  /* Card swatches. */
  --ent-card: #fff;
  --ent-paper-line: #d6cfc1;
  --ent-primary: #2f7d4f;
  --ent-water: #2e6f8e;
  --ent-gold: #b8862f;
  --ent-drought: #c1662f;
  --ent-mono: var(--bs-font-sans-serif);
  /* Table colours. */
  --biz-ink: #212529;
  --biz-ink-soft: #6c757d;
  --biz-rule: #dee2e6;
  --biz-rule-strong: #adb5bd;
  --biz-accent: #2f7d4f;
  --biz-mono: var(--bs-font-sans-serif);
}

/* Section spacing. */
.desc-page h2,
.desc-page h3 { margin-top: 3.6rem; }
.desc-page > h2:first-of-type { margin-top: .35rem; }
.desc-page h2 { margin-bottom: .55rem; }
.desc-page h2 + hr { margin: 0 0 2.1rem; }
.desc-page h3 { margin-bottom: 2.75rem; }
.desc-page h2 + hr + h3 { margin-top: 0; }
@media (max-width: 575.98px) {
  .desc-page h2,
  .desc-page h3 { margin-top: 2.8rem; }
}

/* Limitation callout. */
.desc-limit {
  margin: 1.8rem 0;
  padding: 1.1rem 1.35rem 1.2rem;
  background-color: #f4faf6;
  border: 1px solid #cfe9d8;
  border-radius: .75rem;
}
.desc-limit::before {
  content: attr(data-label);
  display: block;
  margin-bottom: .45rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #2f7d4f;
}
.desc-limit p { margin-bottom: .9rem; font-size: .92rem; }
.desc-limit p:last-child { margin-bottom: 0; }

/* "At a glance" cards. */
.desc-cards {
  display: grid;
  /* Two columns of cards. */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem 2rem;
  margin: 1.8rem 0 2.2rem;
}
a.desc-card {
  display: flex;
  flex-direction: column;
  padding-top: .85rem;
  border-top: 1px solid #d6cfc1;
  text-decoration: none;
  color: inherit;
  transition: border-color .25s ease;
}
a.desc-card:hover,
a.desc-card:focus-visible { border-top-color: #2f7d4f; }
/* the small label that used to be .ent-tag */
.desc-card-tag {
  display: block;
  margin-bottom: .4rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6c757d;
}
.desc-card h4 {
  margin: 0 0 .45rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #37481f;
}
.desc-card p {
  margin: 0;
  font-size: .85rem;
  line-height: 1.5;
  color: #6c757d;
  text-align: justify;
  hyphens: auto;
}
/* the arrow that marks the card as a jump link */
.desc-card-go {
  margin-top: auto;
  padding-top: .6rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: #2f7d4f;
}
.desc-card-go::after {
  content: "\2192";
  display: inline-block;
  margin-left: .3rem;
  transition: transform .25s ease;
}
a.desc-card:hover .desc-card-go::after,
a.desc-card:focus-visible .desc-card-go::after { transform: translateX(.25rem); }

/* The vine's year as a month grid. */
.desc-cycle {
  --desc-cyc-cols: repeat(12, minmax(0, 1fr));
  margin: 1.8rem 0 2rem;
  padding: 1.35rem 1.5rem 1.5rem;
  background-color: #f4f1ea;              /* same warm figure ground as .ent-fig-panel */
  border: 1px solid #d6cfc1;
  border-radius: .75rem;
}
.desc-cycle-title {
  margin: 0 0 1rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #2f7d4f;
}
.desc-cyc-row {
  display: grid;
  grid-template-columns: var(--desc-cyc-cols);
  gap: .25rem;
}
.desc-cyc-row + .desc-cyc-row { margin-top: .4rem; }

/* month letters */
.desc-cyc-months { gap: 0; }
.desc-cyc-month {
  font-size: .68rem;
  font-weight: 600;
  text-align: center;
  color: #8a8375;
  border-left: 1px solid rgba(138, 131, 117, .22);
  padding-bottom: .3rem;
}
.desc-cyc-month:first-child { border-left: none; }

/* stage bars: --from/--to are month numbers (1-12, inclusive) */
.desc-cyc-stage {
  grid-column: var(--from) / calc(var(--to) + 1);
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .55rem .6rem .6rem;
  background-color: #fff;
  border: 1px solid #d6cfc1;
  border-top: 3px solid var(--desc-accent, #2f7d4f);
  border-radius: .45rem;
  transition: transform .25s cubic-bezier(.22, 1, .36, 1), box-shadow .25s ease;
}
.desc-cyc-stage-name {
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.25;
  color: #37481f;
}
.desc-cyc-stage-note {
  font-size: .68rem;
  line-height: 1.35;
  color: #6c757d;
}
/* Hovered stage lifts, others fade. */
.desc-cyc-stages:hover .desc-cyc-stage,
.desc-cyc-stages:focus-within .desc-cyc-stage { opacity: .5; }
.desc-cyc-stages .desc-cyc-stage:hover,
.desc-cyc-stages .desc-cyc-stage:focus-visible {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 .4rem 1rem rgba(55, 72, 31, .12);
  outline: none;
}

/* water demand band: a segment per phase, coloured by level */
.desc-cyc-band {
  gap: 2px;
  margin-top: .55rem;
}
.desc-cyc-seg {
  grid-column: var(--from) / calc(var(--to) + 1);
  height: 1.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-align: center;
  color: #fff;
  background-color: var(--desc-seg, #8a8375);
  border-radius: .2rem;
}
.desc-cyc-seg--lo { --desc-seg: #8fb37a; }
.desc-cyc-seg--mid { --desc-seg: #b8862f; }   /* the deliberate, controlled deficit */
.desc-cyc-seg--hi { --desc-seg: #c1662f; }
.desc-cyc-band-label {
  grid-column: 1 / -1;
  margin-top: .3rem;
  font-size: .64rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #8a8375;
}

/* the two called-out windows, pinned over their own months */
.desc-cyc-mark {
  grid-column: var(--from) / calc(var(--to) + 1);
  padding: .3rem .5rem;
  font-size: .66rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  border-radius: .3rem;
}
.desc-cyc-mark--apply {
  color: #2f7d4f;
  background-color: #eaf6ee;
  border: 1px dashed #8fb37a;
}
.desc-cyc-mark--critical {
  color: #9c4b1f;
  background-color: #fdf1e8;
  border: 1px dashed #c1662f;
}

/* Phones: single-column bands with month labels. */
@media (max-width: 767.98px) {
  .desc-cycle { padding: 1.1rem 1.15rem 1.25rem; }
  .desc-cyc-months { display: none; }
  .desc-cyc-row { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .desc-cyc-stage,
  .desc-cyc-seg,
  .desc-cyc-mark { grid-column: 1; }
  .desc-cyc-stage::before,
  .desc-cyc-seg::before,
  .desc-cyc-mark::before {
    content: attr(data-months);
    display: block;
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    opacity: .75;
  }
  .desc-cyc-seg {
    height: auto;
    padding: .35rem .5rem;
    gap: .4rem;
  }
}

/* Section reference list inside the drawer. */
.desc-subrefs {
  margin: 0;
  padding-left: 1.3rem;
  font-size: .86rem;
  line-height: 1.6;
  color: var(--biz-ink-soft, #495057);
}
.desc-subrefs li { margin-bottom: .5rem; }
.desc-subrefs li:last-child { margin-bottom: 0; }
/* Same arrival highlight .pe-refs li gets when a citation jumps to it. */
.desc-subrefs li:target {
  background: #f2f6ec;
  box-shadow: 0 0 0 .35rem #f2f6ec;
  border-radius: 2px;
}

/* Future steps timeline. */
.desc-steps {
  position: relative;
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0 0 0 .25rem;
}
/* Timeline spine. */
.desc-steps::before {
  content: "";
  position: absolute;
  left: calc(.25rem + 1.05rem);
  top: 1.05rem;
  bottom: 1.05rem;
  width: 2px;
  background: linear-gradient(180deg, #2f7d4f, #8fb37a 85%, rgba(143, 179, 122, 0));
  border-radius: 2px;
}
.desc-step {
  position: relative;
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr);
  column-gap: 1rem;
  align-items: start;
  padding-bottom: 1.5rem;
}
.desc-step:last-child { padding-bottom: 0; }
.desc-step-num {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #2f7d4f;
  color: #2f7d4f;
  font-weight: 700;
  font-size: .9rem;
  line-height: 1;
  /* lifts the node off the spine running behind it */
  box-shadow: 0 0 0 .3rem var(--desc-step-halo, #fff);
}
.desc-step-name {
  grid-column: 2;
  margin: .2rem 0 .3rem;
  font-size: 1rem;
  font-weight: 700;
  color: #37481f;
}
.desc-step-text {
  grid-column: 2;
  margin: 0;
  font-size: .93rem;
  line-height: 1.65;
}

/* Closing link. */
.desc-steps-end {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .6rem;
  margin: 2.6rem 0 2.8rem calc(.25rem + 3.1rem);
  padding: .95rem 1.2rem;
  border: 1px solid var(--ent-paper-line, #d6cfc1);
  border-left: 3px solid #2f7d4f;
  border-radius: 8px;
  background: #f7f9f3;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.desc-steps-end:hover,
.desc-steps-end:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(47, 125, 79, .14);
  background: #f2f6ec;
  text-decoration: none;
}
.desc-steps-end:focus-visible { outline: 2px solid #45b06c; outline-offset: 2px; }
.desc-steps-end-q { font-weight: 700; color: #37481f; font-size: .97rem; }
.desc-steps-end-go {
  font-size: .9rem;
  font-weight: 600;
  color: #2f7d4f;
}
.desc-steps-end-go::after {
  content: "\2192";
  margin-left: .35rem;
  display: inline-block;
  transition: transform .2s ease;
}
.desc-steps-end:hover .desc-steps-end-go::after { transform: translateX(3px); }

/* Phones: number above each phase, no spine. */
@media (max-width: 575.98px) {
  .desc-steps::before { display: none; }
  .desc-steps { padding-left: 0; }
  .desc-step {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
    padding-bottom: 1.3rem;
  }
  .desc-step-num {
    grid-column: 1;
    grid-row: auto;
    margin-bottom: .45rem;
    box-shadow: none;
  }
  .desc-step-name,
  .desc-step-text { grid-column: 1; }
  .desc-steps-end { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  a.desc-card,
  .desc-card-go::after,
  .desc-steps-end,
  .desc-steps-end-go::after,
  .desc-cyc-stage { transition: none; }
}

/* Scroll reveal. */
.desc-page .reveal-armed[data-reveal] > *,
.desc-page .reveal-armed[data-reveal="block"] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s cubic-bezier(.22, 1, .36, 1),
              transform .5s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--desc-step, 0s);
}
.desc-page .reveal-armed[data-reveal].reveal-in > *,
.desc-page .reveal-armed[data-reveal="block"].reveal-in { opacity: 1; transform: none; }
/* children of a "block" reveal move with their parent, not on their own */
.desc-page .reveal-armed[data-reveal="block"] > * { opacity: 1; transform: none; transition: none; }

.desc-page [data-reveal] > :nth-child(2) { --desc-step: .07s; }
.desc-page [data-reveal] > :nth-child(3) { --desc-step: .14s; }
.desc-page [data-reveal] > :nth-child(4) { --desc-step: .21s; }
/* the Future-steps timeline is eight items long, so the stagger runs on */
.desc-page [data-reveal] > :nth-child(5) { --desc-step: .28s; }
.desc-page [data-reveal] > :nth-child(6) { --desc-step: .35s; }
.desc-page [data-reveal] > :nth-child(7) { --desc-step: .42s; }
.desc-page [data-reveal] > :nth-child(8) { --desc-step: .49s; }

/* SOFTWARE PAGE */
.sw-page {
  --sw-a: #2b6cb0;
  --sw-a-soft: #e8f0fa;
  --sw-b: #c1662f;
  --sw-b-soft: #fbefe6;
  --sw-c: #2f7d4f;
  --sw-c-soft: #eaf6ee;
  --sw-node-bg: #353331;
  --sw-node-head: #7a4535;
  --sw-node-field: #232221;
  --sw-node-ink: #e9e6e1;
  --sw-node-mute: #8c8883;
  --sw-pin-rep: #e05d5d;
  --sw-pin-act: #5fb760;
  --sw-pin-sp: #8c9cf0;
  --sw-pin-fn: #e6a53c;
  --sw-pin-ext: #4fb3d9;
}
.sw-a { color: var(--sw-a); }
.sw-b { color: var(--sw-b); }
.sw-c { color: var(--sw-c); }
.sw-page i.sw-a, .sw-page i.sw-b, .sw-page i.sw-c { font-weight: 600; }

/* inline and display maths, set in the body font */
.sw-m { white-space: nowrap; }
.sw-page .sw-eq {
  margin: 1rem 0 1.2rem;
  padding: .7rem 1rem;
  text-align: center;
  hyphens: manual;
  line-height: 2;
  background-color: #f8f9fa;
  border-radius: .5rem;
  overflow-x: auto;
}

/* sideways scroll for wide tables and drawings on phones */
.sw-scroll { overflow-x: auto; }
.sw-scroll:focus-visible { outline: 2px solid var(--sw-c); outline-offset: 3px; }

/* Intro card: logo, name, tagline, buttons */
.sw-intro {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin: .5rem 0 1rem;
}
.sw-logo { flex: none; width: 112px; height: 112px; border-radius: 1.2rem; object-fit: contain; }
.sw-logo--placeholder {
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; letter-spacing: .05em; color: #2f7d4f;
  background-color: #f4faf6; border: 2px dashed #cfe9d8;
}
.sw-page .sw-intro-name { margin: 0 0 .2rem; font-size: 1.5rem; font-weight: 700; color: #212529; }
.sw-page .sw-intro-tag { margin: 0 0 1rem; text-align: left; hyphens: manual; }
.sw-buttons { display: flex; flex-wrap: wrap; gap: .6rem; }
.sw-btn {
  display: inline-block;
  padding: .45rem 1.05rem;
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  text-decoration: none;
  background-color: var(--sw-c);
  border: 1.5px solid var(--sw-c);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.sw-btn:hover, .sw-btn:focus-visible { color: #fff; background-color: #24613d; border-color: #24613d; }
.sw-btn--ghost { color: var(--sw-c); background-color: transparent; }
.sw-btn--ghost:hover, .sw-btn--ghost:focus-visible { color: #fff; }
.sw-btn:disabled { opacity: .4; cursor: default; }
.sw-btn--ghost:disabled:hover { color: var(--sw-c); background-color: transparent; border-color: var(--sw-c); }
.sw-btn:not(.sw-btn--ghost):disabled:hover { color: #fff; background-color: var(--sw-c); border-color: var(--sw-c); }
@media (max-width: 575.98px) {
  .sw-intro { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .sw-logo { width: 84px; height: 84px; }
}

/* Comparison table: ours highlighted, sideways scroll on phones */
.sw-compare { min-width: 760px; }
.sw-compare .sw-ours th,
.sw-compare .sw-ours td { background-color: var(--sw-c-soft); color: #1d4d31; }
.pe-article .sw-compare .sw-ours th { box-shadow: inset 3px 0 0 var(--sw-c); padding-left: .8rem; font-weight: 700; }

/* Feature cards: 3 x 2, one column on phones */
.sw-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 1.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.sw-feature {
  padding: 1.15rem 1.1rem 1.2rem;
  border: 1px solid var(--biz-rule);
  border-radius: .8rem;
  background-color: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.sw-feature:hover { border-color: #cfe9d8; box-shadow: 0 6px 18px rgba(47, 125, 79, .08); }
.sw-feature-icon {
  width: 30px; height: 30px; margin-bottom: .6rem;
  fill: none; stroke: var(--sw-c); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.sw-page .sw-feature-title { margin: 0 0 .35rem; font-size: .98rem; font-weight: 700; color: #212529; }
.sw-page .sw-feature p { margin: 0; font-size: .87rem; line-height: 1.55; color: var(--biz-ink-soft); text-align: left; hyphens: manual; }
@media (max-width: 991.98px) { .sw-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .sw-features { grid-template-columns: 1fr; } }

/* Architecture diagram */
.sw-flow { display: block; width: 100%; min-width: 640px; height: auto; font-family: var(--bs-font-sans-serif); }
.sw-flow-box { fill: #fff; stroke: var(--biz-rule-strong); stroke-width: 1.5; }
.sw-flow-box--main { fill: var(--sw-c-soft); stroke: var(--sw-c); }
.sw-flow-box--soft { fill: #f8f9fa; }
.sw-flow-box--tab { fill: #fff; stroke-dasharray: 4 3; }
.sw-flow-title { font-size: 17px; font-weight: 700; fill: #212529; }
.sw-flow-sub { font-size: 12.5px; fill: #6c757d; }
.sw-flow-label { font-size: 13.5px; font-weight: 600; fill: #212529; }
.sw-flow-group { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; fill: #6c757d; }
.sw-flow-note { font-size: 12.5px; font-style: italic; fill: var(--sw-c); }
.sw-flow-line { fill: none; stroke: #868e96; stroke-width: 1.6; }
.sw-flow-line--acc { stroke: var(--sw-c); stroke-dasharray: 5 4; }
.sw-flow-head { fill: #868e96; }
.sw-flow-head--acc { fill: var(--sw-c); }
.sw-flow-link { cursor: pointer; text-decoration: none; }
.sw-flow-link text { text-decoration: none; }
.sw-flow-link rect { transition: fill .2s; }
.sw-flow-link:hover rect,
.sw-flow-link:focus-visible rect { fill: #d3ecdc; }
.sw-flow-link:focus-visible { outline: none; }
.sw-flow-link:focus-visible rect { stroke-width: 3; }
.sw-page h3[id^="sw-"] { scroll-margin-top: 90px; }

/* Block anatomy figure */
.sw-anatomy { display: block; width: 100%; min-width: 600px; height: auto; font-family: var(--bs-font-sans-serif); }
.sw-node-body { fill: var(--sw-node-bg); }
.sw-node-head { fill: var(--sw-node-head); }
.sw-node-title { font-size: 17px; fill: #f3ece6; }
.sw-node-in { font-size: 15px; fill: var(--sw-pin-sp); }
.sw-node-out { font-size: 15px; fill: var(--sw-pin-fn); }
.sw-node-deg { font-size: 15px; fill: var(--sw-pin-act); }
.sw-node-txt { font-size: 14px; fill: var(--sw-node-ink); }
.sw-node-param { font-size: 14px; fill: var(--sw-node-mute); }
.sw-node-field { fill: var(--sw-node-field); }
.sw-node-caret { fill: var(--sw-node-ink); }
.sw-node-glyph { fill: none; stroke: var(--sw-node-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sw-pin--in { fill: var(--sw-pin-sp); }
.sw-pin--out { fill: var(--sw-pin-fn); }
.sw-pin--deg { fill: var(--sw-pin-act); }
.sw-anat-lead { fill: none; stroke: #adb5bd; stroke-width: 1.2; }
.sw-anat-dot { fill: #212529; }
.sw-anat-label { font-size: 14px; font-weight: 700; fill: #212529; }
.sw-anat-sub { font-size: 12px; fill: #6c757d; }
.sw-anat-flow { fill: none; stroke: var(--sw-c); stroke-width: 2.2; stroke-dasharray: 6 4; }
.sw-anat-flowhead { fill: var(--sw-c); }
.sw-anat-flowtxt { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; fill: var(--sw-c); }

/* Block gallery */
.sw-gallery { margin: 1.5rem 0 2rem; }
.sw-gallery-row {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: .45rem;
}
.sw-gallery-row[hidden] { display: none; }
.sw-gallery-btn {
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  padding: .7rem .3rem .55rem;
  font: inherit; font-size: .72rem; font-weight: 600; line-height: 1.2;
  color: #495057;
  background-color: #fff;
  border: 1px solid var(--biz-rule);
  border-radius: .7rem;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s, transform .2s;
}
.sw-gallery-btn svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sw-gallery-btn .sw-fill, .sw-node .sw-fill { fill: currentColor; stroke: none; }
.sw-gallery-btn em { display: block; font-style: normal; font-weight: 500; font-size: .64rem; color: #868e96; }
.sw-gallery-btn kbd, .sw-card-title kbd {
  padding: .05rem .35rem; font-size: .66rem; font-family: var(--bs-font-monospace);
  color: #495057; background-color: #f1f3f5; border: 1px solid #dee2e6; border-radius: .3rem; box-shadow: none;
}
.sw-gallery-btn:hover { border-color: var(--sw-c); color: var(--sw-c); transform: translateY(-2px); }
.sw-gallery-btn:focus-visible { outline: 2px solid var(--sw-c); outline-offset: 2px; }
.sw-gallery-btn.is-on { color: #fff; background-color: var(--sw-c); border-color: var(--sw-c); }
.sw-gallery-btn.is-on kbd { color: var(--sw-c); background-color: #fff; border-color: #fff; }
.sw-gallery-btn.is-on em { color: #d3ecdc; }
.sw-gallery-btn.is-soon:not(.is-on) { opacity: .55; border-style: dashed; }
.sw-page .sw-gallery-key { margin: .6rem 0 0; font-size: .75rem; color: #868e96; text-align: right; }
.sw-page .sw-gallery:not(.is-js) .sw-gallery-key { text-align: left; }
@media (max-width: 991.98px) { .sw-gallery-row { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .sw-gallery-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.sw-card {
  display: flex;
  gap: 1.6rem;
  align-items: flex-start;
  margin-top: 1rem;
  padding: 1.3rem;
  border: 1px solid var(--biz-rule);
  border-radius: .9rem;
  background-color: #fff;
}
.sw-card[hidden] { display: none; }
.sw-gallery.is-js .sw-card { animation: sw-card-in .35s cubic-bezier(.22, 1, .36, 1); }
@keyframes sw-card-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sw-card--soon { border-style: dashed; }
.sw-card-text { flex: 1; min-width: 0; }
.sw-card-text p, .sw-card-text li { font-size: .92rem; }
.sw-card-text ul { margin-bottom: 0; }
.sw-page .sw-card-title { margin: 0 0 .6rem; font-size: 1.05rem; font-weight: 700; color: #212529; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.sw-soon { font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #868e96; }
@media (max-width: 575.98px) { .sw-card { flex-direction: column; align-items: stretch; } .sw-node { align-self: center; } }

/* the app's block, redrawn in HTML */
.sw-node {
  flex: none;
  width: 200px;
  padding-bottom: .45rem;
  font-size: .82rem;
  line-height: 1.25;
  color: var(--sw-node-ink);
  background-color: var(--sw-node-bg);
  border-radius: .45rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
}
.sw-node-h { padding: .45rem .7rem; margin-bottom: .35rem; color: #f3ece6; background-color: var(--sw-node-head); border-radius: .45rem .45rem 0 0; }
.sw-r { position: relative; padding: .17rem .7rem; }
.sw-in::before, .sw-out::after {
  content: ""; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; background-color: currentColor;
}
.sw-in::before { left: -3.5px; }
.sw-out { text-align: right; }
.sw-out::after { right: -3.5px; }
.sw-c-rep { color: var(--sw-pin-rep); }
.sw-c-act, .sw-c-deg { color: var(--sw-pin-act); }
.sw-c-sp { color: var(--sw-pin-sp); }
.sw-c-fn { color: var(--sw-pin-fn); }
.sw-c-ext { color: var(--sw-pin-ext); }
.sw-c-probe { color: var(--sw-node-mute); }
.sw-param { color: var(--sw-node-mute); }
.sw-field { display: inline-block; min-width: 88px; margin-right: .3rem; padding: .1rem .4rem; background-color: var(--sw-node-field); border-radius: .2rem; }
.sw-drop { position: relative; padding-right: 1.1rem; max-width: 110px; overflow: hidden; white-space: nowrap; vertical-align: bottom; }
.sw-drop::after { content: "\25BC"; position: absolute; right: .3rem; font-size: .6rem; top: .3rem; }
.sw-glyph svg { width: 34px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sw-node--probe { width: 110px; }
.sw-node--probe .sw-glyph { text-align: center; }

/* Collapsible examples and validation tables */
.sw-example {
  margin: 1.2rem 0 1.4rem;
  border: 1px solid var(--biz-rule);
  border-left: 3px solid var(--sw-c);
  border-radius: .6rem;
  background-color: #fff;
}
.sw-example > summary {
  position: relative;
  padding: .85rem 2.6rem .85rem 1.1rem;
  cursor: pointer;
  list-style: none;
  font-size: .93rem;
  line-height: 1.5;
}
.sw-example > summary::-webkit-details-marker { display: none; }
.sw-example > summary::after {
  content: ""; position: absolute; right: 1.1rem; top: 1.15rem;
  width: .55rem; height: .55rem;
  border-right: 2px solid #868e96; border-bottom: 2px solid #868e96;
  transform: rotate(45deg); transition: transform .25s;
}
.sw-example[open] > summary::after { transform: rotate(-135deg); top: 1.35rem; }
.sw-example > summary:hover { background-color: #f8f9fa; }
.sw-example > summary:focus-visible { outline: 2px solid var(--sw-c); outline-offset: -2px; }
.sw-example-body { padding: .2rem 1.1rem 1rem; }
.sw-example-body .biz-table-wrap { margin: .6rem 0 1rem; }

.sw-page .sw-num td:not(:first-child),
.sw-page .sw-num th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.sw-num .sw-flag td { color: var(--sw-b); }
.sw-num .sw-total td { background-color: var(--sw-c-soft); color: #1d4d31; }

/* species-coloured rows and chips (Example 3) */
.sw-contrib tr td:first-child { box-shadow: inset 3px 0 0 transparent; padding-left: .7rem; }
.sw-contrib .sw-row--a td:first-child { box-shadow: inset 3px 0 0 var(--sw-a); }
.sw-contrib .sw-row--b td:first-child { box-shadow: inset 3px 0 0 var(--sw-b); }
.sw-contrib .sw-row--c td:first-child { box-shadow: inset 3px 0 0 var(--sw-c); }
.sw-chip { display: inline-block; min-width: 1.6rem; padding: .05rem .5rem; font-weight: 700; text-align: center; border-radius: 999px; }
.sw-chip--a { color: var(--sw-a); background-color: var(--sw-a-soft); }
.sw-chip--b { color: var(--sw-b); background-color: var(--sw-b-soft); }
.sw-chip--c { color: var(--sw-c); background-color: var(--sw-c-soft); }

/* before / after (Example 2) */
.sw-sort { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin: 1rem 0 .5rem; flex-wrap: wrap; }
.sw-sort-col { display: flex; flex-direction: column; gap: .4rem; min-width: 170px; }
.sw-sort-arrow { width: 48px; height: 24px; fill: none; stroke: #868e96; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sw-term { padding: .35rem .7rem; font-size: .86rem; font-weight: 600; border-radius: .4rem; border-left: 3px solid; }
.sw-term--a { color: var(--sw-a); background-color: var(--sw-a-soft); border-color: var(--sw-a); }
.sw-term--b { color: var(--sw-b); background-color: var(--sw-b-soft); border-color: var(--sw-b); }
@media (max-width: 575.98px) { .sw-sort-arrow { transform: rotate(90deg); } }

/* Animated operator stack (Example 1) */
.sw-stack {
  margin: 1rem 0 1.2rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: .7rem;
}
.sw-stack[hidden] { display: none; }
.sw-stack-cols { display: grid; grid-template-columns: 1fr 1.2fr 1.2fr; gap: 1rem; }
.sw-stack-head { display: block; margin-bottom: .5rem; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6c757d; }
.sw-stack-ops { margin: 0; padding-left: 1.4rem; font-family: var(--bs-font-monospace); font-size: .8rem; }
.sw-page .sw-stack-ops li { padding: .12rem .4rem; border-radius: .3rem; color: #495057; text-align: left; transition: background-color .2s, color .2s; }
.sw-page .sw-stack-ops li.is-done { color: #adb5bd; }
.sw-page .sw-stack-ops li.is-on { color: #fff; background-color: var(--sw-a); }
.sw-page .sw-stack-ops li.sw-op-method { margin-top: .35rem; font-family: var(--bs-font-sans-serif); font-style: italic; }
.sw-stack-pile {
  display: flex; flex-direction: column-reverse; justify-content: flex-start; gap: .35rem;
  min-height: 9.5rem; padding: .5rem;
  border: 2px solid #ced4da; border-top: none; border-radius: 0 0 .5rem .5rem;
  background-color: #fff;
}
.sw-box {
  display: block; padding: .35rem .6rem;
  font-size: .82rem; font-weight: 600; text-align: center; white-space: nowrap;
  border-radius: .35rem; border: 1.5px solid var(--sw-a);
  transition: opacity .2s, transform .2s;
}
.sw-box--par { color: var(--sw-a); background-color: #fff; border-style: dashed; }
.sw-box--state { color: #fff; background-color: var(--sw-a); }
.sw-box--mid { color: var(--sw-a); background-color: var(--sw-a-soft); }
.sw-box.is-new { animation: sw-push .3s cubic-bezier(.22, 1, .36, 1); }
.sw-box.is-leaving { opacity: 0; transform: scale(.85); }
@keyframes sw-push { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.sw-box--ghost { position: fixed; z-index: 1050; margin: 0; transition: transform .55s cubic-bezier(.65, 0, .35, 1); pointer-events: none; }
.sw-stack-store { display: flex; flex-direction: column; gap: .4rem; }
.sw-slot { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); align-items: center; gap: .5rem; padding: .3rem .4rem; background-color: #fff; border: 1.5px solid var(--sw-a); border-radius: .45rem; transition: box-shadow .3s; }
.sw-slot-name { font-size: .78rem; font-weight: 700; color: var(--sw-a); }
.sw-slot-val { min-height: 1.7rem; padding: .25rem .45rem; font-size: .8rem; font-weight: 600; color: var(--sw-a); background-color: var(--sw-a-soft); border-radius: .3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-slot.is-hit { box-shadow: 0 0 0 4px rgba(43, 108, 176, .25); }
.sw-page .sw-stack-status { min-height: 3em; margin: .9rem 0 .6rem; font-size: .9rem; text-align: left; }
.sw-stack-controls { display: flex; gap: .5rem; flex-wrap: wrap; }
.sw-steps tr.is-on td { background-color: var(--sw-a-soft); color: #1c4673; }
.sw-steps td { transition: background-color .2s; }
@media (max-width: 767.98px) {
  .sw-stack-cols { grid-template-columns: 1fr 1fr; }
  .sw-stack-cols > :last-child { grid-column: 1 / -1; }
}

/* Euler vs RK4 plot */
.sw-ode-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.2rem; margin-bottom: .6rem; font-size: .85rem; }
.sw-ode-controls[hidden], .sw-ode-plot[hidden] { display: none; }
.sw-ode-key { display: inline-flex; align-items: center; gap: .4rem; color: #495057; }
.sw-sw { display: inline-block; width: 22px; height: 0; border-top: 2.5px solid; }
.sw-sw--exact { border-color: #adb5bd; border-top-style: dashed; }
.sw-sw--euler { border-color: var(--sw-b); }
.sw-sw--rk4 { border-color: var(--sw-c); }
.sw-ode-pick { margin-left: auto; margin-bottom: 0; display: inline-flex; align-items: center; gap: .4rem; color: #495057; }
.sw-ode-pick select { padding: .2rem .4rem; font-size: .85rem; border: 1px solid #ced4da; border-radius: .35rem; }
.sw-ode-plot { display: block; width: 100%; height: auto; font-family: var(--bs-font-sans-serif); }
.sw-ode-grid { stroke: #e9ecef; stroke-width: 1; }
.sw-ode-zero { stroke: #ced4da; }
.sw-ode-tick { font-size: 12px; fill: #868e96; }
.sw-ode-exact { fill: none; stroke: #adb5bd; stroke-width: 2; stroke-dasharray: 5 4; }
.sw-ode-euler { fill: none; stroke: var(--sw-b); stroke-width: 2.2; }
.sw-ode-rk4 { fill: none; stroke: var(--sw-c); stroke-width: 2.2; }
.sw-ode-dot { fill: var(--sw-c); }

/* Roadmap: horizontal timeline, vertical on phones */
.sw-roadmap {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 1.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  position: relative;
}
.sw-roadmap::before {
  content: ""; position: absolute; left: 0; right: 0; top: .55rem;
  height: 2px; background: linear-gradient(90deg, var(--sw-c), #cfe9d8);
}
.sw-stage { position: relative; padding-top: 1.7rem; }
.sw-stage::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background-color: #fff; border: 3px solid var(--sw-c);
}
.sw-stage-name { display: block; margin-bottom: .6rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sw-c); }
.sw-stage > ul {
  margin: 0; padding: 1rem 1rem 1rem 1.9rem;
  border: 1px solid var(--biz-rule); border-radius: .8rem; background-color: #fff;
}
.sw-page .sw-stage li { font-size: .87rem; line-height: 1.55; margin-bottom: .45rem; text-align: left; hyphens: manual; }
.sw-stage ul ul { padding-left: 1.1rem; margin-top: .35rem; }
.sw-subcards { display: grid; gap: .4rem; margin-top: .5rem; }
.sw-subcard { padding: .5rem .65rem; font-size: .8rem; line-height: 1.45; background-color: var(--sw-c-soft); border-radius: .45rem; }
.sw-subcard strong { display: block; color: #1d4d31; }
.sw-subcard span { color: #495057; }
@media (max-width: 767.98px) {
  .sw-roadmap { grid-template-columns: 1fr; padding-left: 1.8rem; }
  .sw-roadmap::before { left: .5rem; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--sw-c), #cfe9d8); }
  .sw-stage { padding-top: 0; }
  .sw-stage::before { left: -1.82rem; top: .05rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sw-gallery.is-js .sw-card,
  .sw-box.is-new { animation: none; }
  .sw-box--ghost, .sw-gallery-btn, .sw-feature { transition: none; }
}

/* MEDAL CRITERIA */
.mc-page {
  --mc-ink: #212529;
  --mc-ink-soft: #6c757d;
  --mc-rule: #dee2e6;
  max-width: 980px;
  margin: 0 auto;
}
.mc-tier--bronze, .mc-section--bronze { --mc-hi: #e6a46a; --mc-lo: #9a5a2a; --mc-ink: #7a4520; }
.mc-tier--silver, .mc-section--silver { --mc-hi: #eef1f3; --mc-lo: #8d969d; --mc-ink: #535c63; }
.mc-tier--gold,   .mc-section--gold   { --mc-hi: #f8dd7a; --mc-lo: #b8891c; --mc-ink: #7d5c0c; }

.mc-page li { text-align: left; hyphens: manual; }

/* Vine with the three medals as grape bunches. */
.mc-vine {
  position: relative;
  aspect-ratio: 1000 / 400;
  margin: 1rem 0 1.25rem;
}
.mc-vine-art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* Stem stroke. */
.mc-vine-stem { fill: none; stroke: #6b5636; stroke-width: 6.5; stroke-linecap: round; }
/* Leaves and tendrils. */
.mc-leaf { --leaf: #7a9a4c; --leaf-edge: #52702f; }
.mc-leaf--dark { --leaf: #64843d; --leaf-edge: #44602a; }
.mc-leaf--young { --leaf: #9cb865; --leaf-edge: #6c8a3e; }
.mc-leaf use { transform-origin: 0 0; }
.mc-leaf-blade { fill: var(--leaf); stroke: var(--leaf-edge); stroke-width: 1.1; stroke-linejoin: round; }
.mc-leaf-stalk { fill: none; stroke: #66663a; stroke-width: 2; stroke-linecap: round; }
.mc-leaf-vein { fill: none; stroke: var(--leaf-edge); stroke-width: .8; stroke-linecap: round; opacity: .7; }
.mc-tendril { fill: none; stroke: #7a7a42; stroke-width: 1.6; stroke-linecap: round; }

.mc-bunch {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: flex;
  gap: .6rem;
  margin-left: -25px;               /* put the bunch's stalk on the node */
}
.mc-grapes { flex-shrink: 0; width: 48px; height: 62px; overflow: visible; }
.mc-grapes circle:not(.mc-grape-hi) { stroke: rgba(0, 0, 0, .14); stroke-width: .7; }
.mc-grape-stalk { fill: none; stroke: #66663a; stroke-width: 2.2; stroke-linecap: round; }
.mc-grape-hi { fill: #fff; opacity: .5; }
.mc-bunch-text { padding-top: .45rem; }
.mc-bunch-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--mc-ink);
  text-decoration: none;
}
.mc-bunch-name:hover { color: var(--mc-ink); text-decoration: underline; text-underline-offset: .25em; }
.mc-bunch ul {
  list-style: none;
  margin: .2rem 0 0;
  padding: 0;
}
.mc-bunch li {
  padding: .1rem 0;
  font-size: .9rem;
  line-height: 1.45;
  white-space: nowrap;
}
.mc-bunch li a { color: #343a40; text-decoration: none; }
.mc-bunch li a:hover { color: #2f7d4f; text-decoration: underline; text-underline-offset: .2em; }

/* Draw the vine on scroll. */
.mc-page .mc-vine.reveal-armed > .mc-vine-art { opacity: 1; transform: none; transition: none; }
.mc-page .mc-vine.reveal-armed .mc-vine-stem { stroke-dasharray: 1; stroke-dashoffset: 1; }
/* segment timings follow their lengths (about 560, 360 and 215 units) */
.mc-vine-stem--old { --mc-draw: 1s;   --mc-draw-at: 0s;    --mc-ease: cubic-bezier(.45, 0, .7, 1); }
.mc-vine-stem--mid { --mc-draw: .62s; --mc-draw-at: 1s;    --mc-ease: linear; }
.mc-vine-stem--new { --mc-draw: .55s; --mc-draw-at: 1.62s; --mc-ease: cubic-bezier(.3, 0, .3, 1); }
.mc-page .mc-vine.reveal-armed .mc-leaf use { transform: scale(0); }
.mc-page .mc-vine.reveal-armed .mc-tendril { stroke-dasharray: 1; stroke-dashoffset: 1; }
.mc-page .mc-vine.reveal-in .mc-leaf use {
  transform: none;
  transition: transform .5s cubic-bezier(.34, 1.4, .64, 1) var(--at);
}
.mc-page .mc-vine.reveal-in .mc-tendril {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset .4s ease-out var(--at);
}
.mc-page .mc-vine.reveal-armed > .mc-bunch { opacity: 0; transform: translateY(-8px); transition: none; }
.mc-page .mc-vine.reveal-in .mc-vine-stem {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset var(--mc-draw) var(--mc-ease) var(--mc-draw-at);
}
.mc-page .mc-vine.reveal-armed.reveal-in > .mc-bunch {
  opacity: 1;
  transform: none;
  transition: opacity .6s ease, transform .6s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--d);
}

/* tablets and phones: a vertical vine, bunches stacked bronze to gold */
@media (max-width: 991.98px) {
  .mc-vine {
    aspect-ratio: auto;
    display: grid;
    gap: 1.1rem;
    padding-left: 1.4rem;
    border-left: 3px solid #6b5636;    /* the old wood of the desktop stem */
    border-radius: 2px;
  }
  .mc-vine-art { display: none; }
  .mc-bunch { position: relative; left: auto; top: auto; margin-left: 0; }
  .mc-bunch::before {               /* a short shoot from the stem to the bunch */
    content: "";
    position: absolute;
    left: -1.4rem;
    top: .2rem;
    width: calc(1.4rem + 25px);
    height: 2px;
    background-color: #6b5636;
  }
  .mc-bunch li { white-space: normal; }
}
.mc-official { font-size: .85rem; color: var(--mc-ink-soft); text-align: center; }

/* Sections */
.mc-section { margin-top: 3.5rem; }
.mc-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: .9rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--mc-lo);
}
.mc-head h2 { margin: 0; color: var(--mc-ink); }

/* Metallic gradient medal titles. */
.mc-section--bronze { --mc-shine-a: #8a4f24; --mc-shine-b: #b8743c; --mc-shine-c: #e3a96e; }
.mc-section--silver { --mc-shine-a: #5c656c; --mc-shine-b: #8a949b; --mc-shine-c: #c3cacf; }
.mc-tier--gold, .mc-section--gold { --mc-shine-a: #8a6510; --mc-shine-b: #bf8f1c; --mc-shine-c: #e9c048; }

.mc-title { position: relative; display: inline-block; }
.mc-head h2.mc-shine {
  font-size: clamp(2rem, 1.4rem + 1.8vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.15;
  padding-bottom: .05em;            /* keeps descenders inside the clipped gradient */
  /* a metal base with one narrow highlight band that sweeps across */
  background-image: linear-gradient(100deg,
    var(--mc-shine-a) 0%, var(--mc-shine-a) 38%, var(--mc-shine-b) 44%, var(--mc-shine-c) 50%,
    var(--mc-shine-b) 56%, var(--mc-shine-a) 62%, var(--mc-shine-a) 100%);
  background-size: 250% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: mc-shine 5s ease-in-out infinite alternate;
}
@keyframes mc-shine { to { background-position: 100% 50%; } }

/* Sparkles. */
.mc-sparkles { position: absolute; inset: -.1em -.25em .05em -.1em; pointer-events: none; }
.mc-sparkles i {
  position: absolute;
  width: calc(var(--s, .25em) * 1.3);     /* s below, scaled up a little */
  height: calc(var(--s, .25em) * 1.3);
  background: linear-gradient(135deg, var(--mc-shine-c) 0%, var(--mc-shine-b) 60%, var(--mc-shine-a) 100%);
  clip-path: polygon(50% 14%, 53.8% 40.8%, 85.4% 14.6%, 59.2% 46.2%, 86% 50%, 59.2% 53.8%, 85.4% 85.4%, 53.8% 59.2%, 50% 86%, 46.2% 59.2%, 14.6% 85.4%, 40.8% 53.8%, 14% 50%, 40.8% 46.2%, 14.6% 14.6%, 46.2% 40.8%);
  opacity: 0;
  transform: scale(.2) rotate(0deg);
  animation: mc-twinkle 3.2s ease-in-out infinite;
}
.mc-head .mc-sparkles { font-size: clamp(2rem, 1.4rem + 1.8vw, 2.75rem); }
/* Sparkle positions and timing. */
.mc-sparkles i:nth-child(1)  { left: 0;    top: 2%;   --s: .3em;  animation-delay: 0s; }
.mc-sparkles i:nth-child(2)  { left: 14%;  top: 74%;  --s: .2em;  animation-delay: 1.4s; animation-duration: 3.6s; }
.mc-sparkles i:nth-child(3)  { left: 27%;  top: -4%;  --s: .24em; animation-delay: .7s;  animation-duration: 2.9s; }
.mc-sparkles i:nth-child(4)  { left: 41%;  top: 70%;  --s: .18em; animation-delay: 2.2s; }
.mc-sparkles i:nth-child(5)  { left: 51%;  top: 0;    --s: .28em; animation-delay: 1.8s; animation-duration: 3.4s; }
.mc-sparkles i:nth-child(6)  { left: 62%;  top: 76%;  --s: .22em; animation-delay: .3s;  animation-duration: 2.7s; }
.mc-sparkles i:nth-child(7)  { left: 73%;  top: -2%;  --s: .2em;  animation-delay: 2.6s; animation-duration: 3.8s; }
.mc-sparkles i:nth-child(8)  { left: 84%;  top: 66%;  --s: .26em; animation-delay: 1s; }
.mc-sparkles i:nth-child(9)  { right: 0;   top: 6%;   --s: .3em;  animation-delay: .5s;  animation-duration: 2.8s; }
.mc-sparkles i:nth-child(10) { right: 2%;  top: 44%;  --s: .18em; animation-delay: 2s;   animation-duration: 3.3s; }
@keyframes mc-twinkle {
  0%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); }
  45%      { opacity: 1; transform: scale(1) rotate(45deg); }
  75%      { opacity: 0; transform: scale(.4) rotate(90deg); }
}

/* Page title cycling through the three metals. */
.mc-intro { text-align: center; padding-top: 3rem; margin-bottom: 2.5rem; }
.mc-intro h1.mc-shine {
  display: inline-block;            /* the gradient spans the word, not the row */
  margin: 0;
  font-size: clamp(2.6rem, 1.6rem + 4vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
  padding: 0 .08em .06em;           /* keeps the outer letters inside the clip */
  background-image: linear-gradient(90deg,
    #8a4f24 0%,  #b8743c 12.5%, #8a4f24 24.5%,     /* bronze */
    #5c656c 25.5%, #8a949b 37.5%, #5c656c 49.5%,   /* silver */
    #8a6510 50.5%, #bf8f1c 62.5%, #8a6510 74.5%,   /* gold */
    #8a4f24 75.5%, #b8743c 87.5%, #8a4f24 100%);   /* bronze, for the loop */
  background-size: 400% 100%;
  background-position: 0% 50%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: mc-intro-metals 9s infinite;
}
/* 0% / 33.33% / 66.67% / 100% = bronze / silver / gold / bronze */
@keyframes mc-intro-metals {
  0%, 22%     { background-position: 0% 50%;      animation-timing-function: ease-in-out; }
  33.33%, 55% { background-position: 33.333% 50%; animation-timing-function: ease-in-out; }
  66.67%, 88% { background-position: 66.667% 50%; animation-timing-function: ease-in-out; }
  100%        { background-position: 100% 50%; }
}
.mc-intro-lead {
  max-width: 40rem;
  margin: 1.1rem auto 0;
  text-align: center;
  font-size: 1.1rem;
  color: var(--mc-ink-soft);
}
@media (max-width: 767.98px) {
  .mc-intro { padding-top: 2rem; margin-bottom: 1.5rem; }
}

/* off-screen (static/medal-criteria.js): hold everything still */
.mc-intro.is-idle .mc-shine,
.mc-head.is-idle .mc-shine,
.mc-head.is-idle .mc-sparkles i { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .mc-head h2.mc-shine { animation: none; background-position: 50% 50%; }
  .mc-intro h1.mc-shine { animation: none; background-position: 66.667% 50%; }   /* still, in gold */
  .mc-sparkles i { animation: none; opacity: .8; transform: scale(.7) rotate(45deg); }
  .mc-sparkles i:nth-child(n + 4) { display: none; }

}
/* targets of the index links: clear the fixed navbar, like h2[id] */
.mc-item[id], .mc-spot-item[id] { scroll-margin-top: 90px; }

/* Criterion rows: numeral on a rail in the medal's colour */
.mc-list { list-style: none; padding: 0; margin: 0; }
.mc-item {
  position: relative;
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  gap: 0 1.1rem;
  padding-bottom: 2rem;
}
/* the rail joining one numeral to the next */
.mc-list > .mc-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 1.7rem;
  top: 3.6rem;
  bottom: .4rem;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(180deg, var(--mc-lo), transparent);
  opacity: .5;
}
.mc-num {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  /* Metal ball marker. */
  background: radial-gradient(circle at 35% 30%, var(--mc-hi) 0%, var(--mc-lo) 72%);
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .18), 0 2px 6px rgba(0, 0, 0, .12);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}
.mc-page .mc-name {
  margin: .75rem 0 .65rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #37481f;
}
.mc-item--flat { padding-bottom: 1rem; }
.mc-body > p:last-of-type { margin-bottom: .9rem; }

/* Link chips */
.mc-links {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.mc-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .8rem;
  border: 1px solid #b9dcc6;
  border-radius: 999px;
  background-color: #eaf6ee;
  font-size: .8rem;
  font-weight: 600;
  color: #245f3c;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
a.mc-link::after {
  content: "\2192";
  transition: transform .25s cubic-bezier(.22, 1, .36, 1);
}
a.mc-link:hover,
a.mc-link:focus-visible { background-color: #2f7d4f; border-color: #2f7d4f; color: #fff; }
a.mc-link:hover::after,
a.mc-link:focus-visible::after { transform: translateX(3px); }
/* not a link: the Judging Form (no public URL) and links still to come */
.mc-link--pending { background-color: #fff; border-style: dashed; border-color: #adb5bd; color: var(--mc-ink-soft); }

/* Special prizes spotlight. */
.mc-spot {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: 2.5rem;
  margin-left: 4.5rem;            /* line up with the text column above */
}
.mc-spot-nav { position: sticky; top: 100px; align-self: start; }
.mc-spot-nav ol {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.4rem;
}
/* the track the markers sit on */
.mc-spot-nav ol::before {
  content: "";
  position: absolute;
  left: 5px;
  top: .9rem;
  bottom: .9rem;
  width: 2px;
  background-color: rgba(184, 137, 28, .25);
}
.mc-spot-nav li { position: relative; }
.mc-spot-nav a {
  display: flex;
  align-items: baseline;
  gap: .65rem;
  padding: .55rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--mc-ink-soft);
  text-decoration: none;
  transition: color .3s ease;
}
/* marker: hollow ring, filled gold when active */
.mc-spot-nav a::before {
  content: "";
  position: absolute;
  left: -1.4rem;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  border: 2px solid rgba(184, 137, 28, .55);
  background-color: #fbfcf8;
  transition: background-color .3s ease, transform .3s ease;
}
.mc-spot-label { position: relative; display: inline-block; }
.mc-spot-nav a:hover { color: var(--mc-ink); }
.mc-spot-nav a.is-active { color: var(--mc-ink); font-weight: 700; }
.mc-spot-nav a.is-active::before {
  background: radial-gradient(circle at 35% 30%, var(--mc-hi), var(--mc-lo) 80%);
  border-color: var(--mc-lo);
  transform: scale(1.2);
}
/* sparkles only on the active entry */
.mc-spot-nav .mc-sparkles { font-size: 2.3rem; }
.mc-spot-nav a:not(.is-active) .mc-sparkles { display: none; }

/* the texts */
.mc-spot-item { padding: .2rem 0 2.2rem; }
.mc-spot-item + .mc-spot-item { padding-top: 2.2rem; border-top: 1px solid var(--mc-rule); }
.mc-spot-kind {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mc-lo);
}
.mc-page .mc-spot-name {
  margin: .35rem 0 .9rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: #37481f;
  transition: color .3s ease;
}
.mc-spot-item.is-active .mc-spot-name { color: var(--mc-ink); }

/* small screens: the list sits on top as plain links, not sticky */
@media (max-width: 991.98px) {
  .mc-spot { grid-template-columns: 1fr; gap: 1.25rem; }
  .mc-spot-nav { position: static; }
}
@media (max-width: 767.98px) {
  .mc-spot { margin-left: 0; }
  .mc-item { grid-template-columns: 2.6rem minmax(0, 1fr); gap: 0 .8rem; }
  .mc-num { width: 2.6rem; height: 2.6rem; font-size: .9rem; }
  .mc-list > .mc-item:not(:last-child)::before { left: 1.3rem; top: 2.8rem; }
  .mc-page .mc-name { margin-top: .35rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mc-spot-nav a, .mc-spot-nav a::before, .mc-spot-name { transition: none; }
}

/* Scroll reveal (static/reveal.js): stagger the direct children */
.mc-page .reveal-armed[data-reveal] > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s cubic-bezier(.22, 1, .36, 1),
              transform .55s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--mc-step, 0s);
}
.mc-page .reveal-armed[data-reveal].reveal-in > * { opacity: 1; transform: none; }
.mc-page [data-reveal] > :nth-child(2) { --mc-step: .08s; }
.mc-page [data-reveal] > :nth-child(3) { --mc-step: .16s; }

@media (prefers-reduced-motion: reduce) {
  .mc-link, a.mc-link::after { transition: none; }
}

/* Prize photo to banner view transition. */
::view-transition-group(prize-education),
::view-transition-group(prize-model),
::view-transition-group(prize-software) {
  animation-duration: .7s;
  animation-timing-function: cubic-bezier(.3, .7, .2, 1);
}
::view-transition-old(prize-education), ::view-transition-new(prize-education),
::view-transition-old(prize-model),     ::view-transition-new(prize-model),
::view-transition-old(prize-software),  ::view-transition-new(prize-software) {
  height: 100%;
  object-fit: cover;
  overflow: clip;
  mix-blend-mode: normal;     /* plain layering, not the default additive blend */
  animation-duration: .7s;
  animation-fill-mode: both;
}
/* the photo stays fully visible underneath the whole way */
::view-transition-old(prize-education),
::view-transition-old(prize-model),
::view-transition-old(prize-software) { animation-name: prize-photo-hold; }
/* the banner arrives on top once the box is nearly banner-shaped */
::view-transition-new(prize-education),
::view-transition-new(prize-model),
::view-transition-new(prize-software) {
  animation-name: prize-banner-in;
  animation-timing-function: ease-out;
}
@keyframes prize-photo-hold { from, to { opacity: 1; } }
@keyframes prize-banner-in {
  0%, 55% { opacity: 0; }
  100%    { opacity: 1; }
}
/* Fade the old page out quickly. */
::view-transition-old(root) { animation-duration: .18s; }
::view-transition-new(root) { animation-duration: .35s; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* CONTRIBUTION PAGE */
.ct-page .ct-intro {
  font-size: 1.1rem;
  line-height: 1.75;
  color: #37481f;
}

/* Alternating contribution stops. */
.ct-flow {
  --ct-gap: 2rem;
  margin: 2.5rem 0 1rem;
}
.ct-stop {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 2fr) var(--ct-gap) minmax(0, 3fr);   /* the card gets the wider side */
  grid-template-areas: "meta . card";
  align-items: start;
  margin-bottom: 2.25rem;
}
.ct-stop--flip {
  grid-template-columns: minmax(0, 3fr) var(--ct-gap) minmax(0, 2fr);
  grid-template-areas: "card . meta";
}
.ct-meta { grid-area: meta; padding: .35rem 0 0; text-align: right; }
.ct-stop--flip .ct-meta { text-align: left; }
.ct-card { grid-area: card; }

.ct-num {
  display: block;
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  color: #cfe7d7;
}
.ct-page .ct-title {
  margin: .35rem 0 0;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.25;
  color: #37481f;
}

.ct-card {
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1.5rem 1.3rem;
  background-color: #fff;
  border: 1px solid #e3eee6;
  border-radius: .9rem;
  box-shadow: 0 .15rem .5rem rgba(55, 72, 31, .05);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.ct-card:hover,
.ct-card:focus-within {
  border-color: #b5dcc3;
  box-shadow: 0 .5rem 1.4rem rgba(47, 125, 79, .1);
}
.ct-card p { font-size: .97rem; }
.ct-card > p:last-of-type { margin-bottom: 1.1rem; }

/* Group markers: a pill between two thin rules */
.ct-page .ct-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 2.25rem;
}
.ct-page .ct-group:not(:first-of-type) { margin-top: 3rem; }
.ct-group::before,
.ct-group::after {
  content: "";
  flex: 1;
  height: 2px;
  background-color: #cfe7d7;
}
.ct-group span {
  padding: .5rem 1.2rem;
  border-radius: 999px;
  background-color: #2f7d4f;
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Text link with an arrow that steps forward on hover */
.ct-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  color: #2f7d4f;
}
.ct-link::after {
  content: "";
  width: .45rem;
  height: .45rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.ct-link:hover,
.ct-link:focus-visible { color: #245f3c; text-decoration: underline; text-underline-offset: .2em; }
.ct-link:hover::after,
.ct-link:focus-visible::after { transform: translateX(.2rem) rotate(45deg); }
.ct-links {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.75rem;
}

/* Parts: the two counts under the title */
.ct-stats {
  display: inline-flex;
  gap: 1.75rem;
  margin-top: 1rem;
  text-align: left;
}
.ct-page .ct-stat { margin: 0; line-height: 1; }
.ct-stat-num {
  display: block;
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #2f7d4f;
}
.ct-stat-label {
  display: block;
  margin-top: .3rem;
  font-size: .8rem;
  font-weight: 600;
  color: #5c6b4a;
  white-space: nowrap;
}

/* Education: the kit's contents as pills */
.ct-kit {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
.ct-kit li {
  padding: .35rem .85rem;
  border-radius: 999px;
  background-color: #eaf6ee;
  color: #2f7d4f;
  font-size: .85rem;
  font-weight: 600;
}

/* The verse */
.ct-verse {
  position: relative;
  margin: 2rem 0 2.25rem;
  padding: 3rem 1.5rem 4.5rem;
  text-align: center;
  border-radius: 1rem;
  background: linear-gradient(180deg, #f3f9f3 0%, #e6f2ea 100%);
  overflow: hidden;
}
.ct-river {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 3.75rem;
}
.ct-river-line {
  fill: none;
  stroke: #9fd1b0;
  stroke-width: 2.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  opacity: .7;
}
.ct-river-line--thin { stroke-width: 1.5; opacity: .45; }
.ct-verse-text,
.ct-verse-cite { position: relative; }    /* above the river */
.ct-verse-text { margin: 0 0 1.1rem; }
.ct-page .ct-verse-text p {
  margin: 0;
  font-size: clamp(1.4rem, 3.2vw, 2.1rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  hyphens: none;
  color: #37481f;
}
.ct-verse-text p::before,
.ct-verse-text p::after { color: #45b06c; font-style: normal; }
.ct-verse-text p::before { content: "\201C"; margin-right: .1em; }
.ct-verse-text p::after { content: "\201D"; margin-left: .05em; }
.ct-page .ct-verse-cite {
  text-align: center;
  font-size: .9rem;
  font-weight: 600;
  color: #5c6b4a;
}
.ct-verse-cite::before { content: ""; display: inline-block; width: 1.5rem; height: 2px; margin-right: .6rem; vertical-align: middle; background-color: #45b06c; }

/* River draws in on reveal. */
.biz-page .ct-verse.reveal-armed .ct-river {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 2.2s cubic-bezier(.33, 1, .68, 1) .2s;
}
.biz-page .ct-verse.reveal-in .ct-river { clip-path: inset(0 0 0 0); }

/* Looping sea waves. */
.ct-sea {
  position: absolute;
  inset: auto 0 0 0;
  height: 3rem;
  overflow: hidden;
  pointer-events: none;
}
.ct-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
  animation: ct-wave-drift 22s linear infinite;
  will-change: transform;
}
.ct-wave path { fill: #9fd1b0; }
.ct-wave--back { opacity: .32; animation-duration: 34s; animation-direction: reverse; }
.ct-wave--front { opacity: .45; }
@keyframes ct-wave-drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* The sea rises in with the reveal */
.biz-page .ct-verse.reveal-armed .ct-sea {
  opacity: 0;
  transform: translateY(.6rem);
  transition: opacity 1.4s ease .5s, transform 1.4s cubic-bezier(.33, 1, .68, 1) .5s;
}
.biz-page .ct-verse.reveal-in .ct-sea { opacity: 1; transform: none; }

.ct-page .ct-turn {
  font-size: 1.08rem;
  font-weight: 600;
  color: #37481f;
}

/* Closing hand-off */
.ct-handoff {
  margin: 2.25rem 0 1rem;
  padding: 2rem 2.25rem;
  border-radius: 1rem;
  background-color: #2f7d4f;
  box-shadow: 0 .6rem 1.6rem rgba(47, 125, 79, .22);
}
.ct-page .ct-handoff p {
  margin: 0;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.6;
  color: #f3f9f3;
}
.ct-handoff strong { color: #fff; }

@media (max-width: 767.98px) {
  /* Phone: one column, meta above each card */
  .ct-stop,
  .ct-stop--flip {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "meta" "card";
    margin-bottom: 1.75rem;
  }
  .ct-meta,
  .ct-stop--flip .ct-meta { text-align: left; padding: 0 0 .85rem; }
  .ct-card { padding: 1.2rem 1.1rem 1.1rem; }
  .ct-num { font-size: 2.4rem; }
  .ct-page .ct-title { font-size: 1.25rem; }
  .ct-verse { padding: 2.25rem 1rem 3.75rem; }
  .ct-river { height: 3rem; }
  .ct-handoff { padding: 1.5rem 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-card, .ct-link::after { transition: none; }
  .ct-wave { animation: none; }
}

/* Model pipeline */
.mpipe {
  /* Same tokens as the .biz-* article system, so the figure reads as part of the wiki. */
  --c-wt: #2f7d4f;          /* steps already passed: site brand green */
  --c-accent: #2f7d4f;      /* active step */
  --c-soft: #eaf6ee;        /* active disc, "why" band */
  --ink: #212529; --muted: #6c757d; --rule: #dee2e6; --rule-strong: #adb5bd; --panel: #fbfcfb;
  margin-top: 0;
  text-align: left;
  color: var(--ink);
  font-size: .85rem;
  line-height: 1.5;
}
.mpipe-sub { color: var(--muted); font-size: .8rem; margin: 0 0 16px; }
/* Scroll sideways on narrow screens. */
.mpipe-scroll { overflow-x: auto; }
.mpipe-svg { display: block; width: 100%; min-width: 620px; height: auto; }
.mpipe-svg text { font-family: inherit; text-rendering: geometricPrecision; }
.mpipe-track { stroke: var(--rule); stroke-width: 2; stroke-linecap: round; }
.mpipe-done { stroke: var(--c-wt); stroke-width: 2; stroke-linecap: round; transition: stroke-dashoffset .6s cubic-bezier(.4, 0, .2, 1); }
.mpipe-node { cursor: pointer; }
.mpipe-node:focus { outline: none; }
.mpipe-node:focus-visible .mpipe-disc { stroke: var(--c-accent); stroke-width: 2.5; }
.mpipe-disc { fill: #fff; stroke: var(--rule-strong); stroke-width: 1.2; transition: fill .3s ease, stroke .3s ease, stroke-width .3s ease; }
.mpipe-num { font-size: 12px; font-weight: 700; fill: var(--muted); text-anchor: middle; transition: fill .3s ease; }
.mpipe-name { font-size: 11.5px; font-weight: 700; fill: var(--ink); text-anchor: middle; transition: fill .3s ease; }
.mpipe-tool { font-size: 10px; fill: var(--muted); text-anchor: middle; }
.mpipe-node:hover .mpipe-disc { stroke: var(--c-accent); }
.mpipe-node.is-past .mpipe-disc { fill: var(--c-wt); stroke: var(--c-wt); }
.mpipe-node.is-past .mpipe-num { fill: #fff; }
/* Dashed outline for the pending step. */
.mpipe-node.is-next .mpipe-disc { stroke: var(--rule-strong); stroke-dasharray: 4 3; }
.mpipe-node.is-active .mpipe-disc { stroke: var(--c-accent); stroke-width: 2.5; fill: var(--c-soft); }
.mpipe-node.is-active .mpipe-num,
.mpipe-node.is-active .mpipe-name { fill: var(--c-accent); }
.mpipe-hit { fill: transparent; }
/* "Why" band under the schematic. */
.mpipe .mpipe-why {   /* .mpipe prefix outranks .pe-article p */
  display: flex;
  align-items: center;
  min-height: 56px;
  margin: 10px 0 0;
  padding: 10px 14px;
  color: var(--ink);
  font-size: .8rem;
  line-height: 1.5;
  background: var(--c-soft);
  border-left: 3px solid var(--c-accent);
  border-radius: 0 8px 8px 0;
}
.mpipe .mpipe-why b { color: var(--c-accent); margin-right: 6px; }
.mpipe-card {
  min-height: 104px;
  margin: 10px 0 0;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 8px;
}
.mpipe-card h3 { margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); font-size: .95rem; font-weight: 700; color: var(--ink); }
.mpipe-card dl { display: grid; grid-template-columns: 6.5em 1fr; gap: 4px 10px; margin: 0; }
.mpipe-card dt { color: var(--muted); font-size: .8rem; font-weight: 400; }
.mpipe-card dd { margin: 0; max-width: 70ch; }
.mpipe-go { display: inline-block; margin-top: 10px; font-size: .8rem; font-weight: 600; color: var(--c-accent); text-decoration: none; }
.mpipe-go:hover, .mpipe-go:focus-visible { text-decoration: underline; }
.mpipe .pe-figcaption { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) {
  .mpipe-done, .mpipe-disc, .mpipe-num, .mpipe-name { transition: none; }
}
@media (max-width: 520px) {
  .mpipe-card dl { grid-template-columns: 1fr; }
}

/* ALCOHOL & HEALTH */

/* Three key-figure tiles per row. */
.biz-figures.ah-figures { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: .6rem; }
@media (max-width: 575.98px) { .biz-figures.ah-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Claim panel. */
.biz-page .ah-claim {
  margin: 1.3rem 0 1.6rem;
  padding: 1.15rem 1.4rem;
  background: var(--biz-accent-soft);
  border-left: 3px solid var(--biz-accent);
  border-radius: 0 .5rem .5rem 0;
}
.biz-page .ah-claim p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--biz-ink);
  text-align: left;
  hyphens: manual;
}

/* Hairline list: the reasons customers give. */
.biz-page .ah-list { list-style: none; padding: 0; margin: .4rem 0 1.7rem; }
.biz-page .ah-list li {
  position: relative;
  padding: .6rem 0 .6rem 1.4rem;
  border-top: 1px solid var(--biz-rule);
  font-size: .9rem;
  line-height: 1.55;
  color: var(--biz-ink-soft);
  text-align: left;
  hyphens: manual;
}
.biz-page .ah-list li:last-child { border-bottom: 1px solid var(--biz-rule); }
.biz-page .ah-list li::before {
  content: "";
  position: absolute;
  left: .2rem;
  top: 1.15rem;
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--biz-accent);
}

/* The crop's four end uses, as a row of outlined chips. */
.biz-page .ah-uses {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  list-style: none;
  padding: 0;
  margin: .2rem 0 1.8rem;
}
.biz-page .ah-uses li {
  padding: .4rem .95rem;
  border: 1px solid var(--biz-accent);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--biz-accent);
  background: var(--biz-accent-soft);
  text-align: left;
}
.biz-page .biz-note.ah-source { margin-bottom: 1.6rem; }

/* HUMAN PRACTICES */

/* "Part one" / "Part two", above the <h2> that opens each half of the page. */
.biz-page .hp-part {
  margin: 3.2rem 0 -0.4rem;
  font-family: var(--biz-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--biz-accent);
}
.biz-page .hp-part:first-child { margin-top: 0; }

/* The phase line under an act's <h2> ("Phases 1–3 · from … to …"). */
.biz-page .hp-act-kicker {
  margin: -0.4rem 0 1.1rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--biz-ink-soft);
}

/* The three acts, side by side on wide screens and stacked on a phone. */
.hp-acts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
  margin: 1.8rem 0 2.2rem;
}
.hp-act {
  position: relative;
  padding: 1rem 1.1rem 1.1rem;
  border: 1px solid var(--biz-rule);
  border-radius: 8px;
  background: #fbfcfb;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
/* Whole act card is a link. */
.hp-act:hover { border-color: var(--biz-accent); box-shadow: 0 6px 18px rgba(47, 125, 79, .1); transform: translateY(-2px); }
.hp-act:focus-within { border-color: var(--biz-accent); }
@media (prefers-reduced-motion: reduce) { .hp-act, .hp-act:hover { transition: none; transform: none; } }
.hp-act-head { border-bottom: 1px solid var(--biz-rule); padding-bottom: .75rem; margin-bottom: .7rem; }
.biz-page .hp-act-name { margin: 0; font-size: .98rem; }
.biz-page .hp-act-name a { color: var(--biz-ink); text-decoration: none; }
.hp-act:hover .hp-act-name a { color: var(--biz-accent); }
.biz-page .hp-act-name a::after { content: ""; position: absolute; inset: 0; border-radius: 8px; }
.biz-page .hp-act-name a:focus-visible { outline: none; }
.biz-page .hp-act-name a:focus-visible::after { outline: 2px solid var(--biz-accent); outline-offset: 2px; }
.biz-page .hp-act-name a::before { content: "\2193"; content: "\2193" / ""; float: right; margin-left: .5rem; opacity: .5; transition: opacity .2s ease, transform .2s ease; }
.hp-act:hover .hp-act-name a::before { opacity: 1; transform: translateY(2px); }
/* Phase numbers from the list's start value. */
.hp-phases { list-style: none; counter-reset: none; padding: 0; margin: 0; }
.hp-phases > li {
  position: relative;
  padding: .3rem 0 .3rem 2rem;
  font-size: .85rem;
  line-height: 1.45;
  color: var(--biz-ink);
  text-align: left;
  counter-increment: list-item;
}
.hp-phases > li::before {
  content: counter(list-item);
  position: absolute;
  left: 0;
  top: .3rem;
  width: 1.35rem;
  height: 1.35rem;
  border: 1px solid var(--biz-rule-strong);
  border-radius: 50%;
  font-family: var(--biz-mono);
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.3rem;
  text-align: center;
  color: var(--biz-ink-soft);
}
.hp-phases > li > span { font-weight: 600; }
/* A phase with no stakeholder input, printed rather than hidden. */
.hp-phases > li.is-internal { color: var(--biz-ink-soft); }

/* Part two: the old topic sections, now subheadings inside each stakeholder group. */
.biz-page hr + .hp-subgroup { margin-top: 1.2rem; }

/* "What we still cannot say" and "Shaped by", which close every act. */
.biz-page .hp-open {
  padding: .8rem 1rem;
  border-left: 2px solid var(--biz-signal);
  background: #fdf7f2;
  font-size: .92rem;
}
.biz-page .hp-shaped {
  margin-bottom: 2.2rem;
  font-size: .85rem;
  color: var(--biz-ink-soft);
}
/* The one sentence the project repeats everywhere it publishes. */
.biz-page .hp-claim {
  margin: 1.4rem 0;
  padding: .9rem 1.1rem;
  border-left: 2px solid var(--biz-accent);
  background: var(--biz-accent-soft);
}

/* "In numbers" figures. */
.hp-numbers .biz-def-term { font-size: 1.15rem; letter-spacing: 0; }

/* An interview's kicker is a role, not a code, so it keeps its own casing. */
.hp-person .proto-kicker { text-transform: none; letter-spacing: .04em; }

/* The decision table: four columns, with the decision given the room. */
.hp-decisions td:first-child { width: 3.5rem; text-align: center; }
.hp-decisions td:nth-child(3) { width: 9rem; }
.hp-decisions td:last-child { width: 11rem; }

/* "Where this shows up in the project". */
.biz-page .hp-shows { margin: 1.1rem 0 2rem; }
.biz-page .hp-shows li { margin-bottom: .55rem; }

/* Phones: table scrolls sideways. */
@media (max-width: 575.98px) {
  .hp-decisions { min-width: 34rem; }
  .hp-decisions td:nth-child(3) { width: 7rem; }
  .hp-decisions td:last-child { width: 9rem; }
}

/* ROOT-CONTAINMENT WALKTHROUGH */
.rcw {
  --rcw-signal: #2f7d4f;        /* signal + living cell */
  --rcw-signal-soft: #eaf6ee;
  --rcw-sensor: #7a4fa3;        /* sensor + circuit gene */
  --rcw-sensor-soft: #f1eaf8;
  --rcw-stop: #c0392b;          /* repression + containment */
  --rcw-dead: #adb5bd;          /* inviable cell */
  --rcw-dead-soft: #e9ecef;
  --rcw-ink: #495057;
  --rcw-rule: #dee2e6;
  --rcw-panel: #fbfcfb;
  /* how far the signal dots have faded, driven by the distance slider */
  --rcw-signal-op: 1;
}

/* The figure's own short title, which the spec asks for alongside the caption. */
.rcw-title {
  margin: 0 0 .5rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--rcw-ink);
  text-align: left;
}

.rcw-stage {
  border: 1px solid var(--rcw-rule);
  border-radius: .75rem;
  background-color: var(--rcw-panel);
  padding: .5rem;
}
.rcw-stage:focus-visible { outline: 2px solid var(--rcw-signal); outline-offset: 2px; }
/* Scroll sideways on narrow screens. */
.rcw-stage { overflow-x: auto; }
.rcw-scene { display: block; width: 100%; min-width: 780px; height: auto; }

/* the drawing */
/* Invisible hit target per zone. */
.rcw-hit { fill: transparent; pointer-events: all; }

.rcw-link {
  fill: none;
  stroke: var(--rcw-rule);
  stroke-width: 1.6;
}
.rcw-rhizo {
  fill: var(--rcw-signal-soft);
  stroke: var(--rcw-signal);
  stroke-width: 1.4;
  stroke-dasharray: 5 6;
  opacity: .75;
}
.rcw-stem, .rcw-root {
  fill: none;
  stroke: var(--rcw-ink);
  stroke-width: 2;
  stroke-linecap: round;
}
.rcw-root { stroke-width: 1.6; }
.rcw-leaf { fill: var(--rcw-signal); opacity: .8; }
.rcw-dot { fill: var(--rcw-signal); opacity: var(--rcw-signal-op); }
.rcw-dot--bound { opacity: 1; }
.rcw-cell {
  fill: var(--rcw-signal-soft);
  stroke: var(--rcw-signal);
  stroke-width: 2;
}
.rcw-cell--dead, .rcw-cell.is-dead {
  fill: var(--rcw-dead-soft);
  stroke: var(--rcw-dead);
}
.rcw-receptor { fill: var(--rcw-sensor); }
.rcw-frame {
  fill: none;
  stroke: var(--rcw-rule);
  stroke-width: 1.4;
}
.rcw-gene {
  fill: var(--rcw-sensor-soft);
  stroke: var(--rcw-sensor);
  stroke-width: 1.8;
}
.rcw-promoter, .rcw-wire {
  fill: none;
  stroke: var(--rcw-ink);
  stroke-width: 1.8;
  stroke-linecap: round;
}
.rcw-arrowhead { fill: var(--rcw-ink); }
.rcw-wire--live { stroke: var(--rcw-signal); }
.rcw-arrowhead--live { fill: var(--rcw-signal); }
.rcw-feedback {
  fill: none;
  stroke: var(--rcw-ink);
  stroke-width: 1.4;
  stroke-dasharray: 4 4;
  opacity: .7;
}
.rcw-repress {
  fill: none;
  stroke: var(--rcw-stop);
  stroke-width: 2.2;
  stroke-linecap: round;
}
.rcw-label {
  fill: var(--rcw-ink);
  font-size: 15px;
  font-weight: 600;
}
.rcw-label--frame { fill: var(--rcw-sensor); font-size: 13px; }
.rcw-out { font-size: 15px; font-weight: 600; }
.rcw-out--live { fill: var(--rcw-signal); }
.rcw-out--dead { fill: var(--rcw-stop); }
.rcw-out-sub { fill: var(--rcw-ink); font-size: 13px; }

/* Step numbers, shown only with JS. */
.rcw-badge { display: none; }
.rcw-live .rcw-badge { display: block; }
.rcw-badge circle { fill: #fff; stroke: var(--rcw-rule); stroke-width: 1.4; }
.rcw-badge text { fill: var(--rcw-ink); font-size: 13px; font-weight: 700; }
.rcw-live .rcw-zone.is-on .rcw-badge circle { fill: var(--rcw-signal); stroke: var(--rcw-signal); }
.rcw-live .rcw-zone.is-on .rcw-badge text { fill: #fff; }

/* Dim inactive zones. */
.rcw-live .rcw-zone { cursor: pointer; transition: opacity .25s ease; }
.rcw-live.is-picked .rcw-zone { opacity: .22; }
.rcw-live.is-picked .rcw-zone.is-on { opacity: 1; }

/* controls */
.rcw-controls { display: none; }
.rcw-live .rcw-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-top: .75rem;
}
.rcw-index { display: flex; flex-wrap: wrap; gap: .35rem; }
.rcw-step-btn {
  min-width: 2rem;
  padding: .3rem .55rem;
  border: 1px solid var(--rcw-rule);
  border-radius: .4rem;
  background-color: #fff;
  color: var(--rcw-ink);
  font-size: .85rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.rcw-step-btn:hover { border-color: var(--rcw-signal); color: var(--rcw-signal); }
.rcw-step-btn:focus-visible,
.rcw-play:focus-visible { outline: 2px solid var(--rcw-signal); outline-offset: 2px; }
.rcw-step-btn[aria-pressed="true"] {
  background-color: var(--rcw-signal);
  border-color: var(--rcw-signal);
  color: #fff;
}
.rcw-play {
  margin-left: auto;
  padding: .35rem .8rem;
  border: 1px solid var(--rcw-signal);
  border-radius: .4rem;
  background-color: #fff;
  color: var(--rcw-signal);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
}
.rcw-play[aria-pressed="true"] { background-color: var(--rcw-signal); color: #fff; }

.rcw-distance { display: none; }
.rcw-live .rcw-distance {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: .7rem;
  padding-top: .7rem;
  border-top: 1px solid var(--rcw-rule);
  font-size: .85rem;
  color: var(--rcw-ink);
}
.rcw-distance label { font-weight: 600; margin: 0; }
.rcw-range { flex: 1 1 8rem; max-width: 18rem; accent-color: var(--rcw-signal); }
.rcw-readout { font-variant-numeric: tabular-nums; color: var(--rcw-ink); }
.rcw-readout.is-out { color: var(--rcw-stop); font-weight: 600; }

/* the step text */
.rcw-steps {
  margin: .9rem 0 0;
  padding-left: 1.2rem;
  text-align: left;
  font-size: .9rem;
  line-height: 1.6;
  color: var(--rcw-ink);
}
.rcw-steps li { margin-bottom: .5rem; }
.rcw-steps strong { color: var(--rcw-ink); }
/* Show one step at a time. */
.rcw-live .rcw-steps {
  list-style: none;
  margin-top: .7rem;
  padding: .75rem .9rem;
  min-height: 5.2rem;
  border: 1px solid var(--rcw-rule);
  border-radius: .5rem;
  background-color: var(--rcw-panel);
}
.rcw-live .rcw-steps li { display: none; margin-bottom: 0; }
.rcw-live .rcw-steps li.is-on { display: block; }

@media (max-width: 575.98px) {
  .rcw-live .rcw-steps { min-height: 7rem; }
  .rcw-play { margin-left: 0; }
}

/* Reduced motion: no transitions. */
@media (prefers-reduced-motion: reduce) {
  .rcw-live .rcw-zone { transition: none; }
}

/* CIRCUIT DIAGRAMS */
.cir {
  --cir-resv: #d79a06;
  --cir-ttgr: #c0392b;
  --cir-toxin: #7a4fa3;
  --cir-anti: #2f7d4f;
  --cir-ink: #495057;
  --cir-rule: #dee2e6;
  --cir-panel: #fbfcfb;
}

.cir-stage {
  overflow-x: auto;
  border: 1px solid var(--cir-rule);
  border-radius: .75rem;
  background-color: var(--cir-panel);
  padding: .5rem;
}
.cir-scene { display: block; width: 100%; min-width: 720px; height: auto; }

/* shared drawing parts */
.cir-membrane { fill: none; stroke: var(--cir-ink); stroke-width: 1.8; }
.cir-wire { fill: none; stroke: var(--cir-ink); stroke-width: 1.7; stroke-linecap: round; }
.cir-wire--dash { stroke-dasharray: 5 4; }
.cir-head { fill: var(--cir-ink); }
.cir-gene {
  fill: #fff;
  stroke: var(--cir-ink);
  stroke-width: 1.6;
}
.cir-gene-name { fill: var(--cir-ink); font-size: 15px; font-style: italic; font-weight: 600; }
.cir-label { fill: var(--cir-ink); font-size: 14px; }
.cir-label--em { font-weight: 600; }
.cir-repress { fill: none; stroke: var(--cir-ttgr); stroke-width: 2.2; stroke-linecap: round; }

.cir-resv { fill: var(--cir-resv); }
.cir-ttgr { fill: var(--cir-ttgr); }
.cir-toxin { fill: var(--cir-toxin); }
.cir-anti { fill: var(--cir-anti); }
.cir-void { fill: var(--cir-ink); font-size: 18px; opacity: .8; }

/* The outcome captions at the right-hand end. */
.cir-out { font-size: 15px; font-weight: 600; }
.cir-out--bad { fill: var(--cir-toxin); }
.cir-out--good { fill: var(--cir-anti); }

/* Resveratrol absent / present states. */
.cir .cir-on, .cir .cir-off { opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.cir[data-signal="on"] .cir-on { opacity: 1; }
.cir[data-signal="off"] .cir-off { opacity: 1; }

/* The resveratrol that starts the chain: the thing to point at. */
.cir-trigger { cursor: pointer; }
/* Invisible hit target. */
.cir-hit { fill: transparent; pointer-events: all; }
.cir-trigger:focus-visible .cir-trigger-ring { opacity: 1; stroke-width: 2.4; }
.cir-trigger-ring {
  fill: none;
  stroke: var(--cir-resv);
  stroke-width: 1.6;
  stroke-dasharray: 3 3;
  opacity: .9;
}
.cir[data-signal="on"] .cir-trigger-ring { opacity: 0; }

/* State toggle button. */
.cir-switch { display: none; }
.cir-live .cir-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-top: .7rem;
  font-size: .85rem;
  color: var(--cir-ink);
}
.cir-btn {
  padding: .35rem .8rem;
  border: 1px solid var(--cir-rule);
  border-radius: .4rem;
  background-color: #fff;
  color: var(--cir-ink);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
}
.cir-btn:hover { border-color: var(--cir-anti); color: var(--cir-anti); }
.cir-btn:focus-visible { outline: 2px solid var(--cir-anti); outline-offset: 2px; }
.cir-btn[aria-pressed="true"] { background-color: var(--cir-anti); border-color: var(--cir-anti); color: #fff; }
.cir-state {
  font-weight: 600;
}
.cir[data-signal="off"] .cir-state { color: var(--cir-toxin); }
.cir[data-signal="on"] .cir-state { color: var(--cir-anti); }

/* The caption under the drawing that says what the current state means. */
.cir-say {
  margin: .7rem 0 0;
  padding: .7rem .9rem;
  border: 1px solid var(--cir-rule);
  border-radius: .5rem;
  background-color: var(--cir-panel);
  font-size: .9rem;
  line-height: 1.6;
  text-align: left;
  color: var(--cir-ink);
}
.cir-say p { margin: 0; }
.cir-live .cir-say p { display: none; }
.cir-live .cir-say p.is-on { display: block; }

@media (prefers-reduced-motion: reduce) {
  .cir .cir-on, .cir .cir-off { transition: none; }
}

/* RESVERATROL 3D MODEL */
.res3d {
  --el-C: #3a434c;
  --el-O: #d6453d;
  --el-H: #f2f2f2;
  --el-Hb: #d4d4d4;
}
.res3d-scene {
  display: block;
  width: 100%;
  height: auto;
  max-width: 760px;
  margin: 0 auto;
  cursor: grab;
  user-select: none;
  /* Allow vertical page scroll. */
  touch-action: pan-y;
}
.res3d-scene.is-dragging { cursor: grabbing; }
.res3d-scene:focus-visible { outline: 2px solid var(--biz-accent); outline-offset: 3px; }
.res3d .bond { stroke-linecap: round; }
.res3d .ar2 { stroke-dasharray: 3 3; }
.res3d .s { stroke: #1f2933; stroke-opacity: .35; stroke-width: .6; }

.res3d-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin: .4rem 0 .3rem;
  font-size: .8rem;
  color: #495057;
}
.res3d-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.res3d-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: .6px solid rgba(0, 0, 0, .35);
  display: inline-block;
}
.res3d-dot--c { background-color: var(--el-C); }
.res3d-dot--o { background-color: var(--el-O); }
.res3d-dot--h { background-color: var(--el-H); }

/* Drag hint, shown only with JS. */
.res3d-hint { display: none; }
.res3d-live .res3d-hint {
  display: block;
  margin: 0;
  font-size: .78rem;
  text-align: center;
  color: #6c757d;
}

/* ATTRIBUTIONS: member drawers */
.attr-members {
  --biz-ink: #212529;
  --biz-ink-soft: #6c757d;
  --biz-rule: #dee2e6;
  --biz-rule-strong: #adb5bd;
  --biz-accent: #2f7d4f;
}
.attr-members .edu-act-fact { grid-template-columns: 170px minmax(0, 1fr); }
.attr-members .edu-act-fact dd { text-align: left; }
@media (max-width: 575.98px) {
  .attr-members .edu-act-fact { grid-template-columns: minmax(0, 1fr); }
}
