:root {
  /* Farver: skift disse variabler, hvis du senere vil ændre hele portalens udtryk. */
  --ink: #102927;
  --ink-soft: #365956;
  --muted: #607471;
  --paper: #f6faf7;
  --surface: #ffffff;
  --surface-soft: #eef7f2;
  --line: #d5e5de;
  --green: #1f7a55;
  --green-dark: #14543f;
  --blue: #176b8e;
  --blue-dark: #103e5c;
  --amber: #d89a38;
  --coral: #c86b56;
  --mint: #dff2e8;
  --sky: #dceef6;
  --shadow-soft: 0 18px 45px rgba(16, 41, 39, 0.12);
  --shadow-strong: 0 24px 80px rgba(13, 52, 49, 0.18);
  --font-body: "Segoe UI", Arial, Helvetica, sans-serif;
  --font-heading: "Segoe UI", Arial, Helvetica, sans-serif;
  --color-primary: #14543f;
  --color-accent: #d89a38;
  --color-button: #103e5c;
  --radius-card: 8px;
  --shadow-card: 0 18px 45px rgba(16, 41, 39, 0.12);
  --pen-line: rgba(27, 32, 30, 0.48);
  --radius: 8px;
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  background-color: var(--paper);
  overflow-wrap: break-word;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: #fffdf7;
  background: var(--blue-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  font-weight: 850;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    radial-gradient(ellipse at center, rgba(248, 253, 250, 0.82) 0%, rgba(248, 253, 250, 0.68) 48%, rgba(248, 253, 250, 0.54) 100%),
    rgba(248, 253, 250, 0.48);
  pointer-events: none;
}

body[data-current-page="biologi"]::before {
  background:
    radial-gradient(ellipse at center, rgba(241, 253, 247, 0.84) 0%, rgba(211, 239, 224, 0.68) 48%, rgba(190, 226, 207, 0.48) 100%),
    rgba(226, 247, 235, 0.46);
}

body[data-current-page="naturgeografi"]::before {
  background:
    radial-gradient(ellipse at center, rgba(244, 251, 255, 0.84) 0%, rgba(210, 234, 247, 0.68) 48%, rgba(184, 216, 235, 0.5) 100%),
    rgba(225, 242, 251, 0.46);
}

body[data-current-page="ordbog"]::before {
  background:
    radial-gradient(ellipse at center, rgba(252, 250, 255, 0.86) 0%, rgba(237, 231, 249, 0.62) 48%, rgba(225, 218, 244, 0.44) 100%),
    rgba(246, 242, 253, 0.42);
}

body[data-current-page="om-mark"]::before {
  background:
    radial-gradient(ellipse at center, rgba(255, 253, 248, 0.86) 0%, rgba(249, 238, 221, 0.62) 50%, rgba(241, 224, 202, 0.42) 100%),
    rgba(252, 244, 232, 0.4);
}

.page-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #edf3ee;
  pointer-events: none;
}

.page-background img {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: center 72%;
  opacity: 0.9;
  filter: saturate(0.96) contrast(1);
}

button,
a,
input,
textarea {
  font: inherit;
}

button,
a {
  color: inherit;
}

button {
  border: 0;
}

/* Topnavigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(100% - 32px, var(--max-width));
  min-height: 84px;
  margin: 0 auto;
  padding: 14px 0;
}

.site-header::before {
  position: absolute;
  inset: 8px -12px;
  z-index: -1;
  content: "";
  background: rgba(246, 250, 247, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: var(--radius);
  box-shadow: 0 14px 42px rgba(16, 41, 39, 0.11);
  backdrop-filter: blur(22px) saturate(1.12);
}

.logo {
  display: inline-flex;
  align-items: center;
  min-width: fit-content;
  gap: 11px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.logo-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  overflow: hidden;
  background: transparent;
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(23, 107, 142, 0.18);
}

.logo-mark img {
  display: block;
  width: 116%;
  height: 116%;
  object-fit: cover;
  transform: scale(1.03);
}

.logo-text {
  display: block;
  color: var(--ink);
  font-size: 1.16rem;
  font-weight: 900;
  line-height: 1;
}

.logo-copy {
  display: grid;
  gap: 4px;
  line-height: 1;
}

.logo-tagline {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.1;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
}

.resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  min-width: 92px;
  padding: 9px 14px;
  color: var(--ink-soft);
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
  transition: color 200ms ease, background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.nav-button::after {
  position: absolute;
  right: 14px;
  bottom: 5px;
  left: 14px;
  height: 3px;
  content: "";
  background: var(--color-accent);
  border-radius: 999px;
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-button:hover,
.nav-button:focus-visible {
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.46);
  box-shadow: 0 8px 20px rgba(16, 41, 39, 0.06);
  transform: translateY(-1px);
}

.nav-button.is-active {
  color: #fffdf7;
  background: linear-gradient(135deg, var(--green-dark), var(--blue-dark));
  box-shadow: 0 10px 24px rgba(16, 62, 92, 0.22);
}

.nav-button.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

main,
.site-footer {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

.page {
  display: none;
  padding: 24px 0 58px;
}

.page.is-active {
  display: block;
}

/* Forsidens hero-sektion */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(380px, 0.9fr) minmax(460px, 1.1fr);
  grid-template-rows: auto auto;
  gap: 0 clamp(24px, 4vw, 64px);
  align-items: end;
  min-height: 650px;
  padding: 30px 0 22px;
  isolation: isolate;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  z-index: 2;
  height: 9px;
  content: "";
  background: linear-gradient(90deg, #0a2924 0%, #1f7a55 48%, #236d8f 84%, #d89a38 100%);
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(15, 71, 53, 0.2);
}

.hero-heading {
  position: relative;
  z-index: 5;
  grid-column: 1 / -1;
  grid-row: 1;
  width: 100%;
  max-width: none;
  margin: 0 0 -24px;
  text-align: left;
}

.hero-content {
  position: relative;
  z-index: 4;
  grid-column: 1;
  grid-row: 2;
  max-width: 590px;
  align-self: center;
  padding: 24px 0 88px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  margin-top: 0;
  line-height: 1.08;
}

h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: 5.3rem;
}

.hero h1 {
  display: block;
  max-width: none;
  margin: 0;
  padding-bottom: 0.12em;
  color: transparent;
  background: linear-gradient(100deg, #061f1d 0%, #14543f 48%, #176b8e 86%, #d89a38 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 16px 28px rgba(8, 45, 39, 0.11));
  font-size: clamp(7.25rem, 15vw, 12.8rem);
  font-weight: 950;
  line-height: 0.82;
  overflow-wrap: normal;
  word-break: normal;
  white-space: nowrap;
  letter-spacing: 0;
}

.hero-copy-panel {
  position: relative;
  display: grid;
  gap: 13px;
  padding: 26px 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(242, 250, 246, 0.82));
  border: 1px solid rgba(199, 223, 214, 0.8);
  border-radius: 8px;
  box-shadow: 0 22px 56px rgba(23, 66, 57, 0.12);
  backdrop-filter: blur(16px);
}

.hero-copy-panel::before {
  display: none;
}

h2 {
  margin-bottom: 16px;
  font-size: 2.45rem;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.hero-subtitle {
  margin: 0;
  color: var(--green-dark);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 850;
  line-height: 1.18;
}

.hero-text {
  max-width: 650px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.04rem, 1.15vw, 1.18rem);
  line-height: 1.68;
}

.hero-note {
  max-width: 620px;
  margin: 0;
  padding-top: 10px;
  color: #285d51;
  border-top: 1px solid rgba(31, 122, 85, 0.16);
  font-size: 0.96rem;
  font-weight: 760;
  line-height: 1.55;
}

.primary-button,
.card-button,
.resource-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease, border-color 200ms ease;
}

.primary-button,
.card-button {
  color: #fffdf7;
  background: linear-gradient(135deg, var(--color-primary), var(--color-button));
  box-shadow: 0 14px 28px rgba(20, 84, 63, 0.22);
}

.resource-actions a {
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--line);
}

.primary-button:hover,
.primary-button:focus-visible,
.card-button:hover,
.card-button:focus-visible,
.resource-actions a:hover,
.resource-actions a:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(16, 62, 92, 0.18);
}

.primary-button:hover,
.primary-button:focus-visible,
.card-button:hover,
.card-button:focus-visible {
  background: linear-gradient(135deg, #0f4735, #0d334c);
}

.hero-visual {
  position: relative;
  justify-self: end;
  grid-column: 2;
  grid-row: 2;
  z-index: 3;
  align-self: start;
  width: min(100%, 730px);
  margin-right: -12px;
  margin-top: -74px;
  isolation: isolate;
}

.hero-visual::before {
  position: absolute;
  inset: 16% 3% 8% 5%;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 53% 56%, rgba(255, 255, 255, 0.72), transparent 52%),
    radial-gradient(circle at 76% 43%, rgba(216, 154, 56, 0.16), transparent 45%),
    radial-gradient(circle at 70% 52%, rgba(47, 125, 92, 0.22), transparent 48%),
    radial-gradient(circle at 32% 70%, rgba(35, 109, 143, 0.18), transparent 46%);
  filter: blur(12px);
}

.hero-visual::after {
  display: none;
}

.science-panel {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 610px;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.science-panel::before,
.science-panel::after {
  display: none;
}

.profile-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: none;
  height: clamp(590px, 51vw, 720px);
  margin: 0 auto;
  object-fit: contain;
  object-position: center bottom;
  /* Bevar hele figuren og lad kun T-shirtens nederste kant fade roligt ud. */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 82%, rgba(0, 0, 0, 0.96) 88%, rgba(0, 0, 0, 0.5) 96%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 82%, rgba(0, 0, 0, 0.96) 88%, rgba(0, 0, 0, 0.5) 96%, transparent 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  filter:
    drop-shadow(0 34px 44px rgba(10, 37, 42, 0.22))
    drop-shadow(0 10px 18px rgba(47, 125, 92, 0.13));
}

/* Store sektioner på forsiden */
.front-section {
  padding: 42px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 24px;
}

.section-heading p,
.page-intro p,
.category-card p,
.resource-card p,
.comment-intro p {
  margin: 0;
  color: var(--muted);
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.55fr);
  gap: 28px;
  align-items: end;
  max-width: 100%;
}

/* Fagkort */
.subject-hub-section {
  padding-top: 18px;
}

.subject-hub {
  position: relative;
  padding: clamp(16px, 2vw, 24px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(240, 249, 245, 0.54)),
    rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(199, 223, 214, 0.58);
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(13, 52, 49, 0.1);
}

.subject-hub::before {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, var(--green), var(--blue), var(--amber));
}

.subject-hub::after {
  display: none;
}

.subject-grid,
.resource-grid {
  display: grid;
  gap: 16px;
}

.subject-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resource-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.subject-card,
.testimonial-card,
.category-card,
.resource-card {
  border: 1px solid rgba(213, 229, 222, 0.92);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.subject-card {
  position: relative;
  display: flex;
  min-height: 286px;
  flex-direction: column;
  padding: clamp(24px, 2.4vw, 32px);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.92), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(250, 253, 251, 0.9));
  text-align: center;
  color: inherit;
  text-decoration: none;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.subject-card:focus-visible {
  outline: 3px solid rgba(216, 154, 56, 0.9);
  outline-offset: 4px;
}

.subject-overview-card {
  position: relative;
  z-index: 1;
  margin: 0 auto 20px;
  padding: 16px clamp(14px, 2vw, 24px) 18px;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(31, 122, 85, 0.16);
  border-radius: 0;
  box-shadow: none;
}

.subject-overview-card::before {
  display: none;
}

.subject-overview-card p {
  max-width: 970px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  font-weight: 700;
  line-height: 1.62;
  letter-spacing: 0;
  text-align: center;
}

.subject-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 7px;
  content: "";
}

.subject-biology::before {
  background: linear-gradient(90deg, var(--green), #6aa879);
}

.subject-geography::before {
  background: linear-gradient(90deg, var(--blue), #6ea7bd);
}

.subject-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(13, 52, 49, 0.14);
}

.testimonial-card,
.category-card,
.resource-card {
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.testimonial-card:hover,
.category-card:hover,
.resource-card:hover {
  border-color: rgba(31, 122, 85, 0.18);
  box-shadow: 0 18px 44px rgba(13, 52, 49, 0.12);
  transform: translateY(-3px);
}

.subject-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  color: var(--ink);
  font-size: clamp(2.15rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.subject-mascot {
  position: relative;
  display: grid;
  min-height: 292px;
  place-items: end center;
  margin: 20px 0 24px;
  overflow: hidden;
  border: 1px solid rgba(213, 229, 222, 0.78);
  border-radius: 8px;
  isolation: isolate;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 18px 38px rgba(16, 41, 39, 0.08);
}

.subject-mascot::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.98), transparent 34%),
    radial-gradient(circle at 18% 82%, rgba(216, 154, 56, 0.16), transparent 24%),
    linear-gradient(145deg, rgba(223, 242, 232, 0.82), rgba(255, 255, 255, 0.92));
}

.subject-mascot::after {
  position: absolute;
  right: 12%;
  bottom: 24px;
  left: 12%;
  z-index: -1;
  height: 34px;
  content: "";
  background:
    radial-gradient(ellipse at center, rgba(16, 41, 39, 0.2), rgba(16, 41, 39, 0.08) 48%, transparent 70%),
    linear-gradient(90deg, transparent, rgba(31, 122, 85, 0.12), transparent);
  border-radius: 50%;
  filter: blur(14px);
}

.subject-mascot img {
  display: block;
  width: min(86%, 312px);
  max-height: 286px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 20px 22px rgba(10, 37, 42, 0.18));
  transform: translateY(10px);
  transition: transform 220ms ease, filter 220ms ease;
}

.subject-card:hover .subject-mascot img {
  filter: drop-shadow(0 24px 26px rgba(10, 37, 42, 0.22));
  transform: translateY(4px) scale(1.02);
}

.subject-mascot-biology::before {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.98), transparent 34%),
    radial-gradient(circle at 80% 82%, rgba(31, 122, 85, 0.16), transparent 24%),
    linear-gradient(145deg, rgba(216, 242, 229, 0.94), rgba(249, 253, 251, 0.95));
}

.subject-mascot-geography::before {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.98), transparent 34%),
    radial-gradient(circle at 20% 82%, rgba(23, 107, 142, 0.15), transparent 24%),
    linear-gradient(145deg, rgba(214, 236, 247, 0.95), rgba(249, 253, 251, 0.95));
}

.subject-mascot-geography img {
  width: min(82%, 300px);
}

.subject-card p {
  max-width: 680px;
  margin: 0 auto 22px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.65;
}

.subject-card .subject-level {
  display: flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: -2px auto 24px;
  padding: 7px 10px 7px 14px;
  color: var(--green-dark);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(223, 242, 232, 0.9));
  border: 1px solid rgba(31, 122, 85, 0.16);
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(16, 41, 39, 0.07);
  font-size: 0.9rem;
  font-weight: 850;
}

.subject-card .subject-level span {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.subject-card .subject-level strong {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 4px 12px;
  color: inherit;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.subject-geography .subject-level {
  color: var(--blue-dark);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(220, 238, 246, 0.92));
  border-color: rgba(23, 107, 142, 0.16);
}

.subject-card ul {
  display: grid;
  gap: 9px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.subject-card li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-weight: 700;
}

.subject-card li::before {
  width: 8px;
  height: 8px;
  content: "";
  background: var(--amber);
  border-radius: 50%;
}

.card-button {
  margin-top: auto;
}

.subject-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
}

.subject-tag.biology {
  color: #15563b;
  background: var(--mint);
}

.subject-tag.geography {
  color: #175a75;
  background: var(--sky);
}

/* Hilsner-karusel */
.testimonial-section {
  padding-top: 54px;
  padding-bottom: 20px;
}

.carousel-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  max-width: 100%;
  margin-bottom: 14px;
}

#testimonial-heading {
  margin-bottom: 0;
  font-size: clamp(2.25rem, 4vw, 3.4rem);
  letter-spacing: 0;
}

.carousel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.comment-jump-button {
  min-width: 210px;
}

.carousel-controls {
  display: flex;
  gap: 10px;
}

.carousel-arrow {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(16, 41, 39, 0.1);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.carousel-arrow span {
  display: block;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-1px);
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 16px 34px rgba(16, 62, 92, 0.16);
  transform: translateY(-2px);
}

.testimonial-carousel {
  position: relative;
}

.testimonial-viewport {
  overflow: hidden;
  padding: 4px 2px 12px;
}

.testimonial-track {
  display: flex;
  gap: 14px;
  transition: transform 520ms ease;
  will-change: transform;
}

.testimonial-card {
  display: flex;
  flex: 0 0 calc((100% - 42px) / 4);
  min-height: 184px;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  padding: 20px;
  background:
    radial-gradient(circle at 90% 12%, rgba(216, 154, 56, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 250, 0.9));
  border-color: rgba(213, 229, 222, 0.98);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(16, 41, 39, 0.08);
}

.testimonial-card blockquote {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 740;
  line-height: 1.5;
}

.testimonial-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 16px;
}

.testimonial-person {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.testimonial-avatar {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow: 0 12px 24px rgba(16, 41, 39, 0.12);
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
}

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

.testimonial-user {
  display: block;
  color: var(--blue-dark);
  font-size: 0.94rem;
  font-weight: 850;
  line-height: 1.15;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-top: 2px;
}

.carousel-dot {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  background: transparent;
  cursor: pointer;
}

.carousel-dot::before {
  width: 10px;
  height: 10px;
  content: "";
  background: rgba(16, 41, 39, 0.24);
  border-radius: 50%;
  transition: width 180ms ease, background 180ms ease;
}

.carousel-dot.is-active::before {
  width: 28px;
  background: var(--green-dark);
  border-radius: 999px;
}

.carousel-dot:focus-visible {
  outline: 3px solid rgba(23, 107, 142, 0.72);
  outline-offset: -4px;
  border-radius: 999px;
}

.testimonial-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-top: 18px;
  padding: clamp(17px, 2vw, 22px) clamp(18px, 2.4vw, 28px);
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 88% 18%, rgba(216, 154, 56, 0.17), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(223, 242, 232, 0.58) 62%, rgba(220, 238, 246, 0.5)),
    rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(16, 41, 39, 0.09);
  backdrop-filter: blur(14px);
}

.testimonial-cta::before {
  width: 5px;
  height: auto;
  content: "";
  background: linear-gradient(180deg, var(--green-dark), var(--blue), var(--amber));
  border-radius: 0 999px 999px 0;
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 0;
}

.testimonial-cta p {
  margin: 0;
}

.testimonial-cta-title {
  color: var(--ink);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 900;
  line-height: 1.2;
}

.testimonial-cta-text {
  max-width: 760px;
  margin-top: 6px !important;
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 720;
  line-height: 1.55;
}

/* Kommentarformular uden database */
.comment-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 1fr);
  gap: 32px;
  align-items: start;
  margin-top: 58px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.comment-form {
  display: grid;
  gap: 14px;
}

.form-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field-group {
  display: grid;
  gap: 7px;
}

.field-help {
  color: var(--muted);
  font-size: 0.88rem;
}

.field-group-wide {
  grid-column: 1 / -1;
}

.comment-form label {
  color: var(--ink-soft);
  font-weight: 800;
}

.comment-form input,
.comment-form select,
.comment-form textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfdfc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.comment-form select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--green-dark) 50%) calc(100% - 18px) 55% / 7px 7px no-repeat,
    linear-gradient(135deg, var(--green-dark) 50%, transparent 50%) calc(100% - 13px) 55% / 7px 7px no-repeat,
    #fbfdfc;
  cursor: pointer;
}

.comment-form input:focus,
.comment-form select:focus,
.comment-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(23, 107, 142, 0.12);
}

.comment-form textarea {
  resize: vertical;
}

.form-privacy-note {
  margin: 0;
  padding: 13px 14px;
  color: var(--ink-soft);
  background: rgba(220, 238, 246, 0.5);
  border: 1px solid rgba(23, 107, 142, 0.18);
  border-radius: var(--radius);
  font-size: 0.94rem;
}

.form-privacy-note a {
  color: var(--blue-dark);
  font-weight: 850;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.form-actions .primary-button {
  margin: 0;
}

.greeting-page {
  padding: 34px 0 76px;
}

.greeting-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(360px, 0.78fr);
  gap: clamp(24px, 4.5vw, 56px);
  align-items: center;
  max-width: 1160px;
  margin-bottom: 28px;
  padding: clamp(24px, 3.6vw, 38px);
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 12%, rgba(216, 154, 56, 0.18), transparent 27%),
    radial-gradient(circle at 14% 84%, rgba(31, 122, 85, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(220, 238, 246, 0.54)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 26px 70px rgba(16, 41, 39, 0.12);
}

.greeting-hero-copy {
  position: relative;
  z-index: 1;
}

.greeting-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(2.65rem, 5vw, 5.15rem);
  line-height: 0.96;
}

.greeting-hero-copy p:last-child {
  max-width: 700px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.12rem;
  line-height: 1.7;
}

.greeting-lars-figure {
  position: relative;
  display: grid;
  min-height: 0;
  margin: 0;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(223, 242, 232, 0.56)),
    var(--surface);
  border: 1px solid rgba(213, 229, 222, 0.82);
  border-radius: 28px;
  box-shadow: 0 24px 58px rgba(16, 41, 39, 0.12);
  isolation: isolate;
}

.greeting-lars-figure::before {
  content: none;
}

.greeting-lars-figure img {
  display: block;
  width: 100%;
  height: clamp(320px, 34vw, 430px);
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.greeting-form-section {
  display: block;
  max-width: 1160px;
  margin-top: 0;
  padding: clamp(22px, 3vw, 34px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(248, 253, 250, 0.84)),
    rgba(255, 255, 255, 0.78);
  border-radius: 26px;
}

.greeting-form-section .comment-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.36fr);
  gap: 22px;
  align-items: end;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(213, 229, 222, 0.88);
}

.greeting-form-section .comment-intro h2 {
  margin-bottom: 8px;
}

.greeting-form-section .comment-intro > p {
  max-width: 680px;
}

.approval-note {
  display: grid;
  gap: 4px;
  margin-top: 0;
  padding: 14px 15px;
  background: rgba(223, 242, 232, 0.72);
  border: 1px solid rgba(31, 122, 85, 0.2);
  border-radius: var(--radius);
}

.approval-note strong {
  color: var(--green-dark);
}

.approval-note span {
  color: var(--muted);
}

.avatar-fieldset {
  display: grid;
  grid-column: 1 / -1;
  gap: 14px;
  margin: 4px 0 6px;
  padding: 16px;
  background:
    radial-gradient(circle at 92% 8%, rgba(216, 154, 56, 0.1), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(223, 242, 232, 0.42));
  border: 1px solid var(--line);
  border-radius: 18px;
}

.avatar-fieldset legend {
  color: var(--ink-soft);
  font-weight: 850;
}

.avatar-fieldset > p {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.avatar-preview {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  overflow: hidden;
  background: var(--mint);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 12px 26px rgba(16, 41, 39, 0.12);
}

.avatar-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-preview svg {
  width: 100%;
  height: 100%;
}

.avatar-choice-heading {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 0;
}

.avatar-choice-heading h3,
.avatar-choice-heading p {
  margin: 0;
}

.avatar-choice-heading p {
  color: var(--green-dark);
  font-weight: 850;
}

.standard-avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 9px;
}

.avatar-option {
  display: grid;
  min-height: 108px;
  place-items: center;
  gap: 6px;
  padding: 9px 7px;
  color: var(--ink-soft);
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.78), transparent 42%),
    rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.avatar-option:hover,
.avatar-option:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 12px 26px rgba(16, 62, 92, 0.12);
  transform: translateY(-2px);
}

.avatar-option.is-selected {
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.86), transparent 42%),
    #fffdf7;
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(31, 122, 85, 0.16), 0 14px 28px rgba(16, 41, 39, 0.1);
}

.avatar-art {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  overflow: hidden;
  padding: 0;
  background: rgba(255, 255, 255, 0.72);
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 20px rgba(16, 41, 39, 0.1);
}

.avatar-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-label {
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-align: center;
}

.form-message {
  min-height: 28px;
  margin: 4px 0 0;
  color: var(--green-dark);
  font-weight: 800;
}

.submitted-greetings-section {
  max-width: 1160px;
  margin-top: 28px;
  padding: clamp(22px, 3vw, 34px);
  background:
    radial-gradient(circle at 8% 14%, rgba(31, 122, 85, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(248, 253, 250, 0.82)),
    rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
}

.submitted-greetings-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.5fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.submitted-greetings-heading h2,
.submitted-greetings-heading p {
  margin: 0;
}

.submitted-greetings-heading > p {
  color: var(--muted);
  font-weight: 720;
  line-height: 1.55;
}

.submitted-greetings-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.submitted-greeting-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  background:
    radial-gradient(circle at 92% 12%, rgba(216, 154, 56, 0.1), transparent 34%),
    rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(213, 229, 222, 0.94);
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(16, 41, 39, 0.07);
}

.submitted-greeting-card blockquote {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 760;
  line-height: 1.55;
}

.submitted-greeting-meta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.submitted-greeting-avatar {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(16, 41, 39, 0.11);
}

.submitted-greeting-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.submitted-greeting-name {
  display: block;
  color: var(--blue-dark);
  font-size: 0.94rem;
  font-weight: 900;
  line-height: 1.15;
}

.submitted-greeting-relation {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.submitted-greetings-empty {
  margin: 0;
  padding: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed rgba(31, 122, 85, 0.18);
  border-radius: 16px;
  font-weight: 750;
}

.local-clear-button {
  min-height: 44px;
  margin-top: 16px;
  padding: 9px 14px;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 850;
}

.local-clear-button:hover,
.local-clear-button:focus-visible {
  border-color: rgba(23, 107, 142, 0.38);
  box-shadow: 0 8px 20px rgba(16, 62, 92, 0.1);
}

/* Undersiderne: Biologi og Naturgeografi */
.page-intro {
  max-width: 820px;
  padding: 52px 0 34px;
}

.category-section,
.materials-section {
  margin-top: 22px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.category-card,
.resource-card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.88);
}

body[data-current-page="biologi"] .category-card,
body[data-current-page="biologi"] .resource-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(238, 250, 244, 0.78)),
    rgba(255, 255, 255, 0.86);
  border-color: rgba(175, 219, 197, 0.72);
}

body[data-current-page="naturgeografi"] .category-card,
body[data-current-page="naturgeografi"] .resource-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(235, 247, 253, 0.78)),
    rgba(255, 255, 255, 0.86);
  border-color: rgba(174, 211, 231, 0.72);
}

.resource-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
}

.resource-card p {
  margin-bottom: 22px;
}

.resource-actions {
  margin-top: auto;
}

.resource-actions a {
  min-height: 38px;
  padding: 8px 12px;
}

.construction-section {
  padding: 8px 0 78px;
}

.construction-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(239, 248, 251, 0.82)),
    var(--surface);
  border: 1px solid rgba(213, 229, 222, 0.86);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

body[data-current-page="naturgeografi"] .construction-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(229, 244, 252, 0.84)),
    var(--surface);
  border-color: rgba(174, 211, 231, 0.78);
}

.construction-copy {
  max-width: 720px;
}

.construction-copy h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
}

.construction-copy p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.construction-copy .eyebrow {
  margin-bottom: 10px;
  color: var(--blue-dark);
}

.construction-note {
  display: inline-block;
  margin-top: 8px !important;
  padding: 12px 14px;
  color: var(--green-dark) !important;
  background: rgba(223, 242, 232, 0.7);
  border: 1px solid rgba(31, 122, 85, 0.18);
  border-radius: var(--radius);
  font-weight: 800;
}

.construction-visual {
  position: relative;
  display: grid;
  place-items: end center;
  min-height: 420px;
}

.construction-visual::before {
  position: absolute;
  right: 8%;
  bottom: 18px;
  left: 8%;
  height: 34px;
  content: "";
  background: radial-gradient(ellipse at center, rgba(16, 41, 39, 0.2), rgba(16, 41, 39, 0.08) 54%, rgba(16, 41, 39, 0) 72%);
  border-radius: 999px;
  filter: blur(10px);
}

.construction-visual img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 360px);
  max-height: 480px;
  object-fit: contain;
  filter: drop-shadow(0 22px 24px rgba(16, 41, 39, 0.16));
}

/* Eksamensside */
.exam-page {
  padding-bottom: 72px;
}

.exam-intro {
  max-width: 900px;
}

.exam-subject-section {
  padding: 8px 0 34px;
}

.exam-subject-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.exam-subject-card {
  --exam-accent: var(--green);
  --exam-tint: rgba(238, 250, 244, 0.78);
  display: flex;
  min-height: 470px;
  flex-direction: column;
  padding: clamp(24px, 3vw, 34px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), var(--exam-tint)),
    var(--surface);
  border: 1px solid rgba(213, 229, 222, 0.92);
  border-top: 6px solid var(--exam-accent);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.exam-subject-card:hover,
.exam-subject-card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(16, 41, 39, 0.15);
}

.exam-biology-card {
  --exam-accent: var(--green);
  --exam-tint: rgba(238, 250, 244, 0.82);
  border-color: rgba(175, 219, 197, 0.78);
}

.exam-geography-card {
  --exam-accent: var(--blue);
  --exam-tint: rgba(235, 247, 253, 0.84);
  border-color: rgba(174, 211, 231, 0.78);
}

.exam-card-header {
  max-width: 680px;
}

.exam-card-header .eyebrow {
  margin-bottom: 7px;
  color: var(--exam-accent);
}

.exam-card-header h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3.3vw, 3rem);
  line-height: 1.08;
}

.exam-card-header p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.exam-level-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
}

.exam-level-label {
  margin-right: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.exam-level-pill {
  display: inline-grid;
  min-width: 38px;
  min-height: 34px;
  place-items: center;
  padding: 5px 10px;
  color: var(--exam-accent);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid color-mix(in srgb, var(--exam-accent) 26%, white);
  border-radius: 999px;
  font-weight: 900;
}

.exam-support-list,
.exam-how-list {
  display: grid;
  gap: 9px;
  margin: 26px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid color-mix(in srgb, var(--exam-accent) 20%, white);
  list-style: none;
}

.exam-support-list {
  margin-top: auto;
}

.exam-support-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 38px;
  color: var(--ink-soft);
  font-weight: 760;
}

.exam-biology-forms {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid color-mix(in srgb, var(--exam-accent) 20%, white);
}

.exam-biology-forms h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 1.08rem;
}

.exam-biology-forms dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.exam-biology-forms dl > div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--exam-accent) 14%, white);
}

.exam-biology-forms dl > div:first-child {
  padding-top: 0;
  border-top: 0;
}

.exam-biology-forms dt {
  color: var(--exam-accent);
  font-weight: 900;
}

.exam-biology-forms dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.52;
}

.exam-biology-forms dd strong {
  color: var(--ink);
}

.exam-form-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.exam-status {
  flex: 0 0 auto;
  padding: 4px 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(96, 116, 113, 0.18);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 850;
}

.exam-how-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.38fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  margin-top: 18px;
  padding: clamp(24px, 3vw, 34px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(246, 250, 247, 0.86)),
    var(--surface);
  border: 1px solid rgba(213, 229, 222, 0.9);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.exam-how-copy {
  max-width: 760px;
}

.exam-how-copy h2 {
  margin: 0 0 12px;
}

.exam-how-copy > p:not(.eyebrow) {
  margin: 0;
  color: var(--ink-soft);
}

.exam-how-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
  padding-top: 16px;
  border-top-color: rgba(31, 122, 85, 0.18);
}

.exam-how-list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-soft);
  font-weight: 700;
}

.exam-how-list li::before {
  position: absolute;
  top: 0.65em;
  left: 2px;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--amber);
  border-radius: 50%;
  transform: translateY(-50%);
}

.exam-future-note {
  padding: 20px;
  background: rgba(223, 242, 232, 0.68);
  border: 1px solid rgba(31, 122, 85, 0.16);
  border-radius: var(--radius);
}

.exam-future-note strong {
  display: block;
  margin-bottom: 7px;
  color: var(--green-dark);
}

.exam-future-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Diskret henvisning fra de enkelte fagsider til den samlede eksamensside. */
.exam-referral-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 28px;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(213, 229, 222, 0.86);
  border-left: 5px solid var(--green);
  border-radius: var(--radius-card);
  box-shadow: 0 14px 30px rgba(16, 41, 39, 0.08);
}

.exam-referral-copy {
  min-width: 0;
}

.exam-referral-copy h2 {
  margin: 0 0 5px;
  font-size: 1.35rem;
}

.exam-referral-copy p {
  max-width: 720px;
  margin: 0;
  color: var(--ink-soft);
}

body[data-current-page="naturgeografi"] .exam-referral-card {
  border-left-color: var(--blue);
  background: rgba(244, 251, 255, 0.86);
}

body[data-current-page="naturgeografi"] .exam-referral-card .primary-button {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
}

/* Biologi-kompendium */
.biology-page {
  padding-bottom: 72px;
}

.biology-view {
  counter-reset: biology-figure;
}

.biology-view[hidden] {
  display: none !important;
}

.biology-workspace {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 24px 0 72px;
}

.biology-main-column {
  min-width: 0;
}

.biology-hero {
  padding: 34px 0 28px;
  border-bottom: 1px solid rgba(31, 122, 85, 0.14);
}

.biology-hero-copy {
  max-width: 850px;
}

.biology-hero h1,
.biology-course-cover h1,
.chapter-document h1 {
  font-size: clamp(2.8rem, 7vw, 5.15rem);
  letter-spacing: 0;
}

.biology-hero p:not(.eyebrow),
.biology-course-intro,
.chapter-lead {
  max-width: 760px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.06rem, 1.35vw, 1.22rem);
  line-height: 1.75;
}

.biology-writing-panel {
  margin-top: 24px;
  padding: clamp(24px, 4vw, 38px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 253, 250, 0.88)),
    rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(213, 229, 222, 0.88);
  border-radius: var(--radius-card);
  box-shadow: 0 18px 46px rgba(13, 52, 49, 0.1);
}

.biology-writing-panel h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.biology-writing-panel p:not(.eyebrow) {
  max-width: 780px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.biology-home-document {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(213, 229, 222, 0.92);
  border-radius: var(--radius-card);
  box-shadow: 0 18px 46px rgba(13, 52, 49, 0.1);
}

.biology-home-document .biology-hero {
  padding: clamp(32px, 4.5vw, 50px) clamp(24px, 5vw, 56px) clamp(28px, 4vw, 42px);
}

.biology-overview-hero .biology-hero-copy {
  max-width: 900px;
}

.biology-overview-hero .biology-hero-copy::after {
  display: block;
  clear: both;
  content: "";
}

.biology-overview-hero h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.65rem, 4.4vw, 3.75rem);
  line-height: 1.04;
}

.biology-overview-hero .biology-overview-lead {
  color: var(--ink);
  font-size: clamp(1.18rem, 1.7vw, 1.42rem);
  line-height: 1.68;
}

.biology-overview-hero .biology-overview-lead strong {
  color: var(--green-dark);
}

.biology-overview-hero p + p {
  margin-top: 16px;
}

.biology-home-content {
  padding: 0 clamp(24px, 5vw, 56px) clamp(34px, 5vw, 56px);
}

.biology-home-section {
  padding: clamp(32px, 4.2vw, 48px) 0;
  border-top: 1px solid rgba(31, 122, 85, 0.16);
}

.biology-section-heading {
  max-width: 820px;
}

.biology-section-label {
  margin: 0 0 9px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.biology-home-section h2 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(1.9rem, 3.7vw, 2.75rem);
}

.biology-home-section h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1.38rem;
}

.biology-home-section p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.75;
}

.biology-section-heading > p:last-child {
  margin-bottom: 0;
}

.figure-block {
  counter-increment: biology-figure;
  margin: 30px 0 0;
}

.figure-media {
  display: block;
  overflow: hidden;
  background: #fbfaf7;
  border: 1px solid rgba(31, 122, 85, 0.16);
  border-radius: var(--radius-card);
}

.figure-media-button {
  position: relative;
  width: 100%;
  padding: 0;
  color: inherit;
  text-align: left;
  cursor: zoom-in;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.figure-media-button:focus-visible {
  outline: 3px solid rgba(23, 107, 142, 0.42);
  outline-offset: 4px;
}

.figure-image,
.figure-media img,
.figure-media svg {
  display: block;
  width: 100%;
  height: auto;
}

.figure-media-button .figure-image {
  transition: transform 200ms ease;
}

.figure-media-button:hover,
.figure-media-button:focus-visible {
  border-color: rgba(31, 122, 85, 0.34);
  box-shadow: 0 18px 40px rgba(13, 52, 49, 0.12);
}

.figure-media-button:hover .figure-image,
.figure-media-button:focus-visible .figure-image {
  transform: scale(1.015);
}

.figure-caption {
  display: grid;
  gap: 0;
  max-width: 860px;
  padding: 14px 2px 0;
}

.figure-title {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.45;
}

.figure-title::before {
  content: attr(data-figure-prefix);
}

.figure-caption > .figure-description {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.55;
}

.figure-caption > .figure-source {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.55;
}

.figure-source-label {
  color: var(--ink-soft);
  font-weight: 750;
}

/* Fælles lightbox: bruges udelukkende af figurer markeret med data-figure="academic". */
body.figure-dialog-open {
  overflow: hidden;
}

.figure-dialog[hidden] {
  display: none;
}

.figure-dialog {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  padding: 18px;
  overflow-y: auto;
  place-items: center;
  background: rgba(7, 28, 25, 0.76);
  backdrop-filter: blur(7px);
  overscroll-behavior: contain;
}

.figure-dialog-panel {
  position: relative;
  display: grid;
  width: min(95vw, 1480px);
  max-height: calc(100vh - 36px);
  grid-template-rows: auto auto;
  margin: auto;
  overflow: auto;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 4%, rgba(220, 238, 246, 0.4), transparent 24%),
    linear-gradient(180deg, #fbfdfc, #f4faf6);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 12px;
  box-shadow: 0 38px 110px rgba(2, 18, 16, 0.46);
  outline: 0;
}

.figure-dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(31, 122, 85, 0.2);
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(16, 41, 39, 0.14);
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.figure-dialog-close span {
  display: block;
  font-size: 1.75rem;
  line-height: 1;
  transform: translateY(-1px);
}

.figure-dialog-close:hover,
.figure-dialog-close:focus-visible {
  border-color: rgba(31, 122, 85, 0.48);
  box-shadow: 0 16px 34px rgba(16, 41, 39, 0.2);
  transform: translateY(-2px);
}

.figure-dialog-media {
  display: grid;
  min-height: 0;
  padding: clamp(18px, 3vw, 42px);
  place-items: center;
  overflow: visible;
  background:
    linear-gradient(135deg, rgba(223, 242, 232, 0.34), rgba(220, 238, 246, 0.28)),
    #f8fbf9;
}

.figure-dialog-media img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(calc(100vh - 320px), 820px);
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(16, 41, 39, 0.1));
}

.figure-dialog-caption {
  display: grid;
  gap: 8px;
  padding: clamp(20px, 2.6vw, 32px) clamp(22px, 3.4vw, 46px);
  background: rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(31, 122, 85, 0.16);
}

.figure-dialog-caption h2 {
  max-width: 1050px;
  margin: 0;
  padding-right: 44px;
  color: var(--ink);
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  line-height: 1.3;
}

.figure-dialog-caption p {
  max-width: 1050px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
}

.figure-dialog-caption .figure-dialog-source {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.84rem;
}

.figure-dialog-source > span:first-child {
  color: var(--ink-soft);
  font-weight: 800;
}

@media (prefers-reduced-motion: no-preference) {
  .figure-dialog:not([hidden]) {
    animation: figureDialogFade 180ms ease both;
  }

  .figure-dialog:not([hidden]) .figure-dialog-panel {
    animation: figureDialogEnter 220ms ease both;
  }
}

@keyframes figureDialogFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes figureDialogEnter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.biology-scale-explanation {
  max-width: 900px;
  margin-top: 24px;
}

.biology-scale-explanation p {
  margin-top: 0;
}

.biology-scale-connections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(26px, 4vw, 42px);
}

.biology-scale-connections p {
  margin-bottom: 0;
}

.biology-scale-living {
  margin-top: 28px !important;
  padding-top: 24px;
  border-top: 1px solid rgba(31, 122, 85, 0.16);
}

.biology-scale-living strong {
  color: var(--ink);
}

.biology-scale-explanation p:last-child {
  margin-bottom: 0;
}

.biology-perspective-explanation {
  max-width: 880px;
  margin-top: 24px;
}

.biology-perspective-explanation p {
  margin-top: 0;
}

.biology-perspective-explanation .biology-stx-note {
  margin: 26px 0 0;
  padding-top: 22px;
  color: var(--ink);
  border-top: 1px solid rgba(31, 122, 85, 0.18);
}

.biology-method-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(270px, 0.85fr);
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}

.biology-method-copy p:last-child {
  margin-bottom: 0;
}

.biology-method-list {
  display: grid;
  gap: 0;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(31, 122, 85, 0.2);
}

.biology-method-list li {
  display: grid;
  gap: 2px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(31, 122, 85, 0.16);
}

.biology-method-list strong {
  color: var(--green-dark);
}

.biology-method-list span {
  color: var(--ink-soft);
  line-height: 1.55;
}

.biology-home-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 30px;
  border-top: 1px solid rgba(31, 122, 85, 0.2);
  border-bottom: 1px solid rgba(31, 122, 85, 0.2);
}

.biology-home-paths > .biology-core-path,
.biology-home-paths > .biology-case-path {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 22px;
  color: inherit;
  text-decoration: none;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.biology-home-paths > .biology-case-path {
  padding-left: 30px;
  border-left: 1px solid rgba(31, 122, 85, 0.2);
}

.biology-home-paths > .biology-core-path > h3,
.biology-home-paths > .biology-case-path > h3 {
  width: 100%;
  text-align: left;
}

.biology-home-paths p {
  margin-top: 0;
}

.biology-home-paths > .biology-core-path:hover,
.biology-home-paths > .biology-core-path:focus-visible,
.biology-case-path:hover,
.biology-case-path:focus-visible {
  background: rgba(223, 242, 232, 0.44);
  box-shadow: inset 0 0 0 1px rgba(31, 122, 85, 0.14);
  outline: 0;
}

.biology-level-list {
  margin-top: 28px;
  border-top: 1px solid rgba(31, 122, 85, 0.2);
}

.biology-level-list > .biology-level-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.28fr) minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  padding: 22px 0;
  color: inherit;
  border-bottom: 1px solid rgba(31, 122, 85, 0.18);
  text-decoration: none;
  transition: background 180ms ease;
}

.biology-level-list > .biology-level-row:hover,
.biology-level-list > .biology-level-row:focus-visible {
  background: rgba(223, 242, 232, 0.44);
  outline: 0;
}

.biology-level-list h3 {
  margin-bottom: 4px;
}

.biology-level-list p {
  margin: 0;
}

.biology-level-list > .biology-level-row > div:first-child p {
  color: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.biology-level-description {
  min-width: 0;
}

.biology-level-list .biology-level-exam {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.biology-level-exam strong {
  color: var(--ink-soft);
}

.biology-types-section .biology-section-heading,
.biology-careers-section .biology-section-heading {
  max-width: 860px;
}

.biology-biologist-types {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 30px;
  border-top: 1px solid rgba(31, 122, 85, 0.2);
  border-bottom: 1px solid rgba(31, 122, 85, 0.2);
}

.biology-biologist-types > section {
  min-width: 0;
  padding: 30px 32px 30px 0;
}

.biology-biologist-types > section + section {
  padding-right: 0;
  padding-left: 32px;
  border-left: 1px solid rgba(31, 122, 85, 0.2);
}

.biology-biologist-types .biology-type-label {
  margin: 0 0 8px;
  color: #9a651c;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.biology-biologist-types > section + section .biology-type-label {
  color: var(--blue);
}

.biology-biologist-types p {
  margin-top: 0;
}

.biology-biologist-types ul {
  display: grid;
  gap: 9px;
  margin: 0 0 20px;
  padding-left: 20px;
  color: var(--ink-soft);
}

.biology-biologist-types li {
  padding-left: 4px;
  line-height: 1.58;
}

.biology-biologist-types li::marker {
  color: var(--amber);
}

.biology-biologist-types > section + section li::marker {
  color: var(--blue);
}

.biology-biologist-types .biology-type-closing {
  margin-bottom: 0;
  color: var(--ink);
  font-weight: 650;
}

.biology-types-bridge {
  max-width: 880px;
  margin: 28px 0 0;
  color: var(--ink);
}

.biology-career-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 34px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(31, 122, 85, 0.2);
}

.biology-career-list li {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 18px 0;
  border-bottom: 1px solid rgba(31, 122, 85, 0.18);
}

.biology-career-list li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.biology-career-list strong {
  color: var(--green-dark);
  font-size: 1.05rem;
}

.biology-career-list span {
  color: var(--ink-soft);
  line-height: 1.6;
}

.biology-admission-note {
  max-width: 900px;
  margin: 30px 0 0;
  padding: 24px 26px;
  background: rgba(240, 249, 245, 0.72);
  border: 1px solid rgba(31, 122, 85, 0.18);
  border-radius: 6px;
}

.biology-admission-note .biology-section-label {
  margin-bottom: 5px;
}

.biology-admission-note h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}

.biology-admission-note p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.biology-admission-note p + p {
  margin-top: 12px;
}

.biology-admission-note .biology-admission-links {
  color: var(--ink);
  font-size: 0.92rem;
}

.biology-admission-links a {
  color: var(--green-dark);
  font-weight: 750;
}

.biology-careers-note {
  max-width: 860px;
  margin: 30px 0 0;
  padding-top: 22px;
  color: var(--ink) !important;
  border-top: 1px solid rgba(31, 122, 85, 0.16);
  font-weight: 650;
}

.biology-world-section {
  max-width: 850px;
}

.biology-world-section p:last-child {
  margin-bottom: 0;
  color: var(--ink);
  font-weight: 650;
}

.biology-home-note {
  padding: 24px 0 0;
  border-top: 1px solid rgba(31, 122, 85, 0.16);
}

.biology-home-note strong {
  color: var(--green-dark);
}

.biology-home-note p {
  max-width: 820px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.biology-home-note a {
  color: var(--green-dark);
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.biology-course-menu,
.biology-sidebar {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 128px);
  padding: 14px;
  overflow: auto;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(213, 229, 222, 0.86);
  border-radius: var(--radius-card);
  box-shadow: 0 14px 34px rgba(16, 41, 39, 0.09);
}

.biology-menu-section {
  display: grid;
  gap: 8px;
}

.biology-menu-section + .biology-menu-section {
  padding-top: 14px;
  border-top: 1px solid rgba(31, 122, 85, 0.14);
}

.biology-course-card {
  --course-accent: var(--green);
  --course-accent-dark: var(--green-dark);
  --course-tint: rgba(223, 242, 232, 0.78);
  position: relative;
  display: flex;
  min-height: 265px;
  flex-direction: column;
  padding: 22px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), var(--course-tint)),
    rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(213, 229, 222, 0.86);
  border-top: 6px solid var(--course-accent);
  border-radius: var(--radius-card);
  box-shadow: 0 16px 38px rgba(16, 41, 39, 0.1);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.biology-course-card[data-accent="blue"],
.biology-chapter-link[data-accent="blue"],
.biology-course-menu-link[data-accent="blue"] {
  --course-accent: var(--blue);
  --course-accent-dark: var(--blue-dark);
  --course-tint: rgba(220, 238, 246, 0.78);
}

.biology-course-card[data-accent="amber"],
.biology-chapter-link[data-accent="amber"],
.biology-course-menu-link[data-accent="amber"] {
  --course-accent: var(--amber);
  --course-accent-dark: #7f5418;
  --course-tint: rgba(252, 239, 210, 0.82);
}

.biology-course-card[data-accent="coral"],
.biology-chapter-link[data-accent="coral"],
.biology-course-menu-link[data-accent="coral"] {
  --course-accent: var(--coral);
  --course-accent-dark: #854236;
  --course-tint: rgba(250, 226, 220, 0.78);
}

.biology-course-card[data-accent="teal"],
.biology-chapter-link[data-accent="teal"],
.biology-course-menu-link[data-accent="teal"] {
  --course-accent: #238a8d;
  --course-accent-dark: #165b5d;
  --course-tint: rgba(220, 245, 244, 0.78);
}

.biology-course-card[data-accent="violet"],
.biology-chapter-link[data-accent="violet"],
.biology-course-menu-link[data-accent="violet"] {
  --course-accent: #7461b8;
  --course-accent-dark: #4e3f82;
  --course-tint: rgba(235, 232, 250, 0.78);
}

.biology-course-card:hover,
.biology-course-card:focus-within {
  border-color: rgba(31, 122, 85, 0.18);
  box-shadow: 0 22px 48px rgba(13, 52, 49, 0.14);
  transform: translateY(-3px);
}

.biology-course-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1.12;
}

.biology-course-card p {
  margin: 0 0 18px;
  color: var(--ink-soft);
}

.biology-course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.biology-course-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  color: var(--course-accent-dark);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
}

.biology-course-card .card-button {
  align-self: flex-start;
  margin-top: auto;
}

.biology-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin: 28px 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 820;
}

.biology-breadcrumb a {
  color: var(--green-dark);
  text-decoration: none;
}

.biology-breadcrumb a:hover,
.biology-breadcrumb a:focus-visible {
  text-decoration: underline;
}

.biology-breadcrumb span {
  color: var(--muted);
}

.biology-course-cover {
  padding: 10px 0 68px;
}

.biology-c-page { display: grid; gap: clamp(44px, 7vw, 82px); }
.biology-c-hero { position: relative; max-width: 950px; padding: clamp(30px, 6vw, 68px); overflow: hidden; background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(223,242,232,.88)); border: 1px solid rgba(31,122,85,.16); border-radius: 28px; box-shadow: 0 22px 55px rgba(13,52,49,.12); }
.biology-c-hero::after { position: absolute; right: -70px; bottom: -100px; width: 280px; height: 280px; content: ""; background: radial-gradient(circle, rgba(31,122,85,.18), transparent 68%); border-radius: 50%; }
.biology-c-hero h1 { margin: 6px 0 4px; font-size: clamp(3.4rem, 9vw, 7rem); line-height: .95; }
.biology-c-hero > p:last-child { max-width: 760px; margin: 20px 0 0; color: var(--ink-soft); font-size: 1.06rem; line-height: 1.7; }
.biology-c-tagline { color: var(--green-dark); font-family: var(--font-heading); font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 850; }
.biology-b-page .biology-c-hero { background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(220,238,246,.86)); }
.biology-b-progression { display:inline-flex; margin-top:22px; padding:7px 13px; color:var(--blue-dark); background:rgba(255,255,255,.72); border:1px solid rgba(46,112,137,.18); border-radius:999px; font-size:.82rem; font-weight:900; }
.biology-a-page .biology-c-hero { background:linear-gradient(135deg,rgba(255,255,255,.97),rgba(235,232,250,.82)); }
.biology-a-page .biology-c-topic-icon { background:linear-gradient(135deg,var(--green-dark),#4e3f82); }
.biology-a-progression { color:#4e3f82; border-color:rgba(116,97,184,.22); }
.biology-c-facts { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-top: -58px; padding: 0 clamp(12px,3vw,34px); position: relative; z-index: 2; }
.biology-c-facts article { padding: 18px; background: rgba(255,255,255,.94); border: 1px solid rgba(213,229,222,.9); border-radius: 18px; box-shadow: 0 12px 28px rgba(16,41,39,.09); }
.biology-c-facts strong,.biology-c-facts span { display:block; }.biology-c-facts strong { margin-bottom: 6px; color: var(--green-dark); }.biology-c-facts span { color: var(--muted); font-size:.9rem; line-height:1.45; }
.biology-c-section { scroll-margin-top: 110px; }.biology-c-section h2 { font-size: clamp(2rem,5vw,3.3rem); }.biology-c-about,.biology-c-work { display:grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px,5vw,70px); align-items:start; }.biology-c-about p,.biology-c-work p { color:var(--ink-soft); line-height:1.7; }
.biology-c-topic-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-top:24px; }
.biology-c-topic-card { display:grid; grid-template-columns:50px minmax(0,1fr) auto; gap:14px; align-items:center; min-height:142px; padding:18px; color:var(--ink); background:linear-gradient(145deg,rgba(255,255,255,.95),rgba(239,249,244,.84)); border:1px solid rgba(213,229,222,.9); border-radius:20px; box-shadow:0 12px 28px rgba(16,41,39,.08); text-decoration:none; transition:transform 180ms ease,box-shadow 180ms ease,border-color 180ms ease; }
.biology-c-topic-card:hover,.biology-c-topic-card:focus-visible { border-color:rgba(31,122,85,.36); box-shadow:0 18px 38px rgba(13,52,49,.13); transform:translateY(-3px); }.biology-c-topic-card strong,.biology-c-topic-card small { display:block; }.biology-c-topic-card strong { margin-bottom:6px; font-size:1.08rem; }.biology-c-topic-card small { color:var(--muted); line-height:1.45; }.biology-c-topic-icon { display:grid; width:50px; height:50px; place-items:center; color:#fff; background:linear-gradient(135deg,var(--green),var(--blue-dark)); border-radius:16px; font-size:1.55rem; }.biology-c-topic-arrow { color:var(--green); font-size:1.3rem; }
.biology-c-path-section { padding:clamp(26px,5vw,52px); background:rgba(239,249,244,.72); border:1px solid rgba(31,122,85,.14); border-radius:26px; }.biology-c-paths { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-top:26px; }.biology-c-paths>a { display:flex; min-height:250px; flex-direction:column; padding:26px; color:var(--ink); background:rgba(255,255,255,.9); border:1px solid rgba(213,229,222,.92); border-top:5px solid var(--green); border-radius:20px; text-decoration:none; transition:transform 180ms ease,box-shadow 180ms ease; }.biology-c-paths>a:nth-child(2){border-top-color:var(--blue)}.biology-c-paths>a:hover,.biology-c-paths>a:focus-visible{transform:translateY(-3px);box-shadow:0 18px 36px rgba(13,52,49,.12)}.biology-c-paths strong{margin:8px 0;font-size:1.8rem}.biology-c-paths p{color:var(--ink-soft);line-height:1.6}.biology-c-path-label{color:var(--muted);font-size:.78rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.biology-c-path-action{margin-top:auto;color:var(--green-dark);font-weight:900}.biology-c-case-tags{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 12px}.biology-c-case-tags i{padding:4px 9px;color:var(--blue-dark);background:rgba(220,238,246,.7);border-radius:999px;font-size:.75rem;font-style:normal;font-weight:850}.biology-c-path-result{display:grid;justify-items:center;gap:3px;margin-top:18px;text-align:center}.biology-c-path-result>span{color:var(--green);font-size:1.6rem}.biology-c-path-result strong{padding:12px 22px;color:#fff;background:linear-gradient(135deg,var(--green-dark),var(--blue-dark));border-radius:999px}.biology-c-path-result small{margin-top:5px;color:var(--muted)}
.biology-c-skill-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:24px; }.biology-c-skill-grid article{position:relative;padding:24px 24px 24px 72px;background:rgba(255,255,255,.88);border:1px solid rgba(213,229,222,.88);border-radius:18px}.biology-c-skill-grid article>span{position:absolute;top:24px;left:22px;color:var(--green);font-weight:950}.biology-c-skill-grid h3{margin:0 0 7px}.biology-c-skill-grid p{margin:0;color:var(--ink-soft);line-height:1.55}.biology-c-work ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0;padding:0;list-style:none}.biology-c-work li{padding:13px 14px 13px 38px;background:rgba(255,255,255,.86);border:1px solid rgba(213,229,222,.86);border-radius:14px;position:relative}.biology-c-work li::before{position:absolute;left:15px;content:"✓";color:var(--green);font-weight:950}
.biology-c-process{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:24px 0 0;padding:0;counter-reset:bio-process;list-style:none}.biology-c-process li{position:relative;display:grid;min-height:100px;place-items:center;padding:16px 8px;color:var(--green-dark);background:rgba(255,255,255,.9);border:1px solid rgba(31,122,85,.2);border-radius:16px;text-align:center;font-weight:850;counter-increment:bio-process}.biology-c-process li::before{display:block;content:counter(bio-process);color:var(--green);font-size:.8rem}.biology-c-process li:not(:last-child)::after{position:absolute;right:-10px;z-index:2;content:"→";color:var(--amber);font-size:1.1rem}
.biology-c-exam{background:rgba(255,253,247,.92);border:1px solid rgba(229,213,171,.9);border-radius:22px;box-shadow:0 14px 34px rgba(71,61,35,.08)}.biology-c-exam summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:24px;cursor:pointer;list-style:none}.biology-c-exam summary small,.biology-c-exam summary strong{display:block}.biology-c-exam summary small{margin-bottom:4px;color:#7f5418;font-weight:900;text-transform:uppercase}.biology-c-exam summary strong{font-size:1.3rem}.biology-c-exam summary i{font-size:1.8rem;font-style:normal;transition:transform 180ms ease}.biology-c-exam[open] summary i{transform:rotate(45deg)}.biology-c-exam>div{padding:0 24px 24px;color:var(--ink-soft);line-height:1.65}.biology-c-closing{padding:clamp(28px,6vw,60px);text-align:center;background:linear-gradient(135deg,rgba(223,242,232,.92),rgba(220,238,246,.8));border-radius:26px}.biology-c-closing p{max-width:700px;margin:0 auto 22px;color:var(--ink-soft);line-height:1.65}
.biology-b-process { grid-template-columns:repeat(4,minmax(0,1fr)); }
.biology-b-process li:nth-child(4)::after { display:none; }
.biology-b-details-grid { display:grid; grid-template-columns:minmax(260px,.72fr) minmax(0,1.28fr); gap:16px; align-items:start; }
.biology-b-framework { background:rgba(239,249,244,.9); border-color:rgba(31,122,85,.2); }
.biology-a-process { grid-template-columns:repeat(3,minmax(0,1fr)); }
.biology-a-process li:nth-child(3n)::after { display:none; }
.biology-a-details-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; align-items:start; }
.biology-a-written { background:rgba(235,232,250,.72); border-color:rgba(116,97,184,.24); }
.biology-a-written summary small { color:#4e3f82; }
@media (max-width: 900px){.biology-c-facts{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:-42px}.biology-c-topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.biology-c-process{grid-template-columns:repeat(3,minmax(0,1fr))}.biology-c-process li:nth-child(3)::after{display:none}}
@media (max-width: 620px){.biology-c-page{gap:44px}.biology-c-hero{padding:28px 22px}.biology-c-facts{grid-template-columns:1fr;margin-top:-22px;padding:0 10px}.biology-c-about,.biology-c-work,.biology-c-paths{grid-template-columns:1fr}.biology-c-topic-grid,.biology-c-skill-grid{grid-template-columns:1fr}.biology-c-topic-card{min-height:120px}.biology-c-work ul{grid-template-columns:1fr}.biology-c-process{grid-template-columns:1fr}.biology-c-process li{min-height:72px}.biology-c-process li:not(:last-child)::after{right:auto;bottom:-14px;transform:rotate(90deg)}.biology-c-process li:nth-child(3)::after{display:block}.biology-c-path-result strong{border-radius:18px}.biology-c-exam summary{padding:20px}}
@media (max-width: 900px) {
  .biology-b-process { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .biology-b-process li:nth-child(2n)::after { display:none; }
  .biology-b-process li:nth-child(3)::after { display:block; }
  .biology-b-details-grid { grid-template-columns:1fr; }
  .biology-a-details-grid { grid-template-columns:1fr; }
}
@media (max-width: 620px) {
  .biology-b-process { grid-template-columns:1fr; }
  .biology-b-process li:not(:last-child)::after { display:block; right:auto; bottom:-14px; transform:rotate(90deg); }
  .biology-a-process { grid-template-columns:1fr; }
  .biology-a-process li:not(:last-child)::after { display:block; right:auto; bottom:-14px; transform:rotate(90deg); }
}

.biology-core-unified {
  display: grid;
  gap: clamp(30px, 5vw, 56px);
  padding: 8px 0 68px;
}

.biology-core-unified-hero {
  max-width: 960px;
  margin-inline: auto;
  padding: clamp(28px, 5vw, 58px);
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 255, 255, 0.72), transparent 24%),
    linear-gradient(135deg, rgba(223, 242, 232, 0.95), rgba(220, 238, 246, 0.82));
  border: 1px solid rgba(31, 122, 85, 0.17);
  border-radius: 28px;
  box-shadow: 0 20px 48px rgba(13, 52, 49, 0.1);
  text-align: center;
}

.biology-core-unified-hero h1 {
  margin: 6px 0 14px;
  font-size: clamp(2.7rem, 7vw, 5.6rem);
  line-height: 0.98;
}

.biology-core-unified-hero > p:last-child {
  max-width: 790px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.72;
}

.biology-core-level-choice {
  padding: clamp(22px, 4vw, 38px);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(213, 229, 222, 0.9);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(16, 41, 39, 0.07);
}

.biology-core-level-selector {
  margin-top: 22px;
}

.biology-core-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 8px;
  background: rgba(238, 247, 242, 0.9);
  border: 1px solid rgba(31, 122, 85, 0.14);
  border-radius: 19px;
}

.biology-core-tab {
  display: grid;
  min-height: 72px;
  place-content: center;
  gap: 2px;
  padding: 11px 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(213, 229, 222, 0.95);
  border-radius: 13px;
  cursor: pointer;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.biology-core-tab strong,
.biology-core-tab span {
  display: block;
}

.biology-core-tab strong {
  font-size: 1rem;
}

.biology-core-tab span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.03em;
}

.biology-core-tab:hover {
  border-color: rgba(31, 122, 85, 0.32);
  transform: translateY(-1px);
}

.biology-core-tab.is-active {
  color: #fffdf7;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(20, 84, 63, 0.22);
}

.biology-core-tab.is-active span {
  color: rgba(255, 255, 255, 0.82);
}

.biology-core-tab:focus-visible,
.biology-core-topic-card:focus-within,
.biology-core-subtopic-list a:focus-visible,
.biology-core-work-further a:focus-visible {
  outline: 3px solid rgba(216, 154, 56, 0.72);
  outline-offset: 3px;
}

.biology-core-tabpanels {
  margin-top: 26px;
}

.biology-core-tabpanel[hidden] {
  display: none !important;
}

.biology-core-tabpanel {
  min-width: 0;
}

.biology-core-tabpanel:focus-visible {
  outline: 3px solid rgba(216, 154, 56, 0.72);
  outline-offset: 6px;
  border-radius: 18px;
}

.biology-core-topic-choice > .biology-section-heading {
  margin-bottom: 20px;
}

.biology-core-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.biology-core-topic-card {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  padding: 22px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(239, 249, 244, 0.86));
  border: 1px solid rgba(213, 229, 222, 0.92);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(16, 41, 39, 0.075);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.biology-core-topic-card:hover {
  border-color: rgba(31, 122, 85, 0.3);
  box-shadow: 0 18px 38px rgba(13, 52, 49, 0.12);
  transform: translateY(-3px);
}

.biology-core-area-card {
  min-height: 205px;
}

.biology-core-area-card > .biology-core-topic-icon {
  margin-bottom: 20px;
}

.biology-core-topic-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.biology-core-topic-icon {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  color: #fffdf7;
  background: linear-gradient(135deg, var(--green), var(--blue-dark));
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(20, 84, 63, 0.17);
  font-size: 1.45rem;
}

.biology-core-level-chip {
  padding: 5px 9px;
  color: var(--green-dark);
  background: rgba(223, 242, 232, 0.76);
  border: 1px solid rgba(31, 122, 85, 0.13);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  text-align: right;
}

.biology-core-topic-card h3 {
  margin: 0 0 9px;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.2;
}

.biology-core-topic-card p {
  margin: 0 0 20px;
  color: var(--ink-soft);
  line-height: 1.58;
}

.biology-core-open-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  border-radius: 13px;
}

.biology-core-topic-hero {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(223, 242, 232, 0.82));
  border: 1px solid rgba(31, 122, 85, 0.16);
  border-radius: 24px;
}

.biology-core-topic-hero .biology-core-topic-icon {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  font-size: 1.9rem;
}

.biology-core-topic-hero h1 {
  margin: 0 0 7px;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.02;
}

.biology-core-topic-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.58;
}

.biology-core-unified-topic > .biology-core-level-selector {
  margin-top: -20px;
}

.biology-core-topic-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.34fr);
  gap: 18px;
  align-items: start;
}

.biology-core-topic-main {
  display: grid;
  gap: 24px;
}

.biology-core-goals,
.biology-core-subtopics,
.biology-core-work-further,
.biology-core-existing-content {
  padding: clamp(20px, 3vw, 30px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(213, 229, 222, 0.9);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(16, 41, 39, 0.065);
}

.biology-core-goals h2,
.biology-core-subtopics h2,
.biology-core-work-further h2,
.biology-core-existing-content h2 {
  margin-bottom: 13px;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.biology-core-work-further {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 9px;
}

.biology-core-work-further a,
.biology-core-subtopic-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  background: rgba(247, 252, 249, 0.9);
  border: 1px solid rgba(213, 229, 222, 0.86);
  border-radius: 13px;
  text-decoration: none;
  transition: transform 170ms ease, background 170ms ease, border-color 170ms ease;
}

.biology-core-work-further a {
  padding: 13px 14px;
  font-weight: 820;
}

.biology-core-work-further a:hover,
.biology-core-subtopic-list a:hover,
.biology-core-subtopic-list a.is-active {
  color: var(--green-dark);
  background: rgba(223, 242, 232, 0.72);
  border-color: rgba(31, 122, 85, 0.24);
  transform: translateX(2px);
}

.biology-core-subtopic-list a.is-active {
  box-shadow: inset 4px 0 0 var(--green), 0 8px 18px rgba(16, 41, 39, 0.07);
}

.biology-core-subtopic-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.biology-core-subtopic-list a {
  min-height: 72px;
  padding: 12px 14px;
}

.biology-core-subtopic-list strong,
.biology-core-subtopic-list small {
  display: block;
}

.biology-core-subtopic-list small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
}

.biology-core-empty-note {
  margin: 16px 0 0;
  padding: 14px;
  color: var(--ink-soft);
  background: rgba(238, 247, 242, 0.72);
  border-radius: 13px;
}

.biology-core-area-placeholder {
  padding: clamp(22px, 4vw, 34px);
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(213, 229, 222, 0.9);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(16, 41, 39, 0.065);
}

.biology-core-area-placeholder p {
  margin: 0;
  line-height: 1.65;
}

.biology-core-area-continue {
  padding-top: clamp(28px, 4vw, 42px);
  border-top: 1px solid rgba(31, 122, 85, 0.17);
}

.biology-core-area-continue h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
}

.biology-core-area-path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.biology-core-area-path-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 168px;
  flex-direction: column;
  padding: 34px 24px 23px;
  overflow: hidden;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(31, 122, 85, 0.2);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(13, 52, 49, 0.09);
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.biology-core-area-path-card::before {
  position: absolute;
  top: 20px;
  left: 24px;
  width: 38px;
  height: 3px;
  background: var(--amber);
  border-radius: 2px;
  content: "";
}

.biology-core-area-path-card strong {
  color: var(--green-dark);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  line-height: 1.25;
}

.biology-core-area-path-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.biology-core-area-path-card:hover {
  background: rgba(247, 253, 249, 0.96);
  border-color: rgba(31, 122, 85, 0.42);
  box-shadow: 0 17px 32px rgba(13, 52, 49, 0.14);
}

.biology-core-area-path-card:focus-visible {
  outline: 3px solid #f2bd62;
  outline-offset: 4px;
}

.biology-core-area-subpage-placeholder {
  padding-top: 24px;
  color: var(--muted);
  border-top: 1px solid rgba(31, 122, 85, 0.16);
}

.biology-core-area-subpage-placeholder p {
  margin: 0;
  line-height: 1.65;
}

@media (max-width: 760px) {
  .biology-core-area-path-grid {
    grid-template-columns: 1fr;
  }

  .biology-core-area-path-card {
    min-height: 0;
  }
}

/* Eukaryote cell: shared ground plan, cell-type tabs and long-form explanation. */
.biology-eukaryote-page {
  display: block;
  padding-top: clamp(8px, 2vw, 18px);
}

.biology-eukaryote-hero,
.biology-eukaryote-reading-copy,
.biology-eukaryote-opening-quote {
  width: 100%;
  max-width: 800px;
}

.biology-eukaryote-hero h1 {
  max-width: 900px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.8rem, 6.6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.biology-eukaryote-subtitle {
  margin: 18px 0 28px;
  color: var(--green-dark);
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.25;
}

.biology-eukaryote-reading-copy p,
.biology-eukaryote-type-copy p,
.biology-eukaryote-type-intro p {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.025rem, 1.15vw, 1.1rem);
  line-height: 1.74;
}

.biology-eukaryote-reading-copy p + p,
.biology-eukaryote-type-copy p + p,
.biology-eukaryote-type-intro p + p {
  margin-top: 19px;
}

.biology-eukaryote-opening-quote {
  margin-top: clamp(30px, 4vw, 42px);
}

.biology-eukaryote-section,
.biology-eukaryote-checks {
  margin-top: clamp(64px, 8vw, 96px);
  padding-top: clamp(38px, 5vw, 56px);
  border-top: 1px solid rgba(100, 112, 105, 0.22);
}

.biology-eukaryote-section h2,
.biology-eukaryote-checks > h2 {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: clamp(2rem, 4.3vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.biology-eukaryote-reading-copy > h3 {
  margin: clamp(40px, 5vw, 52px) 0 16px;
  color: var(--green-dark);
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  line-height: 1.2;
}

.biology-eukaryote-cell-explorer {
  margin-top: clamp(30px, 5vw, 46px);
  padding: clamp(12px, 2vw, 18px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.biology-eukaryote-cell-image-wrap {
  position: relative;
  overflow: hidden;
  background: #fbfcf9;
  border-radius: 7px;
}

.biology-eukaryote-cell-image {
  display: block;
  width: 100%;
  height: auto;
}

.biology-eukaryote-hotspot-nav {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.biology-eukaryote-hotspot {
  position: absolute;
  top: var(--hotspot-y);
  left: var(--hotspot-x);
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #fffdf7;
  background: rgba(50, 61, 92, 0.92);
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(30, 42, 68, 0.25);
  cursor: pointer;
  pointer-events: auto;
  place-items: center;
  transform: translate(-50%, -50%);
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.biology-eukaryote-hotspot-number {
  font: 800 0.88rem/1 system-ui, sans-serif;
}

.biology-eukaryote-hotspot-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.biology-eukaryote-hotspot:hover,
.biology-eukaryote-hotspot:focus-visible,
.biology-eukaryote-hotspot.is-active {
  color: #263b32;
  background: #f2bd62;
  box-shadow: 0 0 0 4px rgba(242, 189, 98, 0.24), 0 5px 16px rgba(30, 42, 68, 0.24);
  transform: translate(-50%, -50%) scale(1.08);
}

.biology-eukaryote-hotspot:focus-visible,
.biology-eukaryote-tab:focus-visible {
  outline: 3px solid rgba(20, 84, 63, 0.38);
  outline-offset: 3px;
}

.biology-eukaryote-cell-instruction {
  margin: 14px 3px 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.biology-eukaryote-instruction-narrow {
  display: none;
}

.biology-eukaryote-structure-details {
  margin-top: 13px;
  padding: clamp(18px, 3vw, 26px);
  background: rgba(232, 242, 235, 0.65);
  border-left: 3px solid var(--green);
  border-radius: 6px;
}

.biology-eukaryote-structure-details article[hidden] {
  display: none;
}

.biology-eukaryote-structure-details h3 {
  margin: 0 0 11px;
  color: var(--green-dark);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.25;
}

.biology-eukaryote-structure-details p {
  max-width: 800px;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.68;
}

.biology-eukaryote-structure-details p + p {
  margin-top: 13px;
}

.biology-eukaryote-model-note {
  margin: 14px 3px 2px;
  color: #68756e;
  font-size: 0.85rem;
  line-height: 1.58;
}

.biology-eukaryote-organelles-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-top: 18px;
  padding: 19px 21px;
  color: var(--ink-soft);
  background: #f7faf7;
  border: 1px solid rgba(31, 122, 85, 0.22);
  border-radius: 8px;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.biology-eukaryote-organelles-link > span:first-child,
.biology-eukaryote-organelles-link-title {
  display: block;
}

.biology-eukaryote-organelles-link-title {
  margin-bottom: 5px;
  color: var(--green-dark);
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.25;
}

.biology-eukaryote-organelles-link > span:first-child > span:last-child {
  font-size: 0.92rem;
  line-height: 1.55;
}

.biology-eukaryote-organelles-link-arrow {
  color: var(--green-dark);
  font-size: 1.7rem;
}

.biology-eukaryote-organelles-link:hover,
.biology-eukaryote-organelles-link:focus-visible {
  background: #edf5ef;
  border-color: rgba(31, 122, 85, 0.38);
  transform: translateY(-1px);
}

.biology-eukaryote-organelles-link:focus-visible {
  outline: 3px solid rgba(31, 122, 85, 0.48);
  outline-offset: 3px;
}

.biology-eukaryote-type-tabs {
  margin-top: clamp(30px, 5vw, 46px);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.biology-eukaryote-tablist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 8px;
  background: #edf3ef;
  border-bottom: 1px solid var(--line);
}

.biology-eukaryote-tab {
  min-height: 52px;
  padding: 10px 14px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font: 760 clamp(0.92rem, 1.5vw, 1.04rem)/1.3 system-ui, sans-serif;
  cursor: pointer;
}

.biology-eukaryote-tab:hover {
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.58);
}

.biology-eukaryote-tab.is-active {
  color: #fffdf7;
  background: var(--green-dark);
}

.biology-eukaryote-tabpanel {
  padding: clamp(22px, 4vw, 38px);
}

.biology-eukaryote-tabpanel[hidden] {
  display: none;
}

.biology-eukaryote-type-lead {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 46px);
  align-items: center;
}

.biology-eukaryote-type-figure {
  margin: 0;
}

.biology-eukaryote-type-figure figcaption {
  margin-top: 11px;
  color: #68756e;
  font-size: 0.82rem;
  line-height: 1.52;
}

.biology-eukaryote-type-model {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f4f8f6;
  border: 1px solid rgba(75, 103, 91, 0.18);
  border-radius: 7px;
}

.biology-eukaryote-type-micrograph {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.biology-eukaryote-type-cell {
  position: relative;
  width: min(78%, 285px);
  aspect-ratio: 1.26;
  overflow: hidden;
  background: #cfeae7;
  border: 5px solid #4b8e91;
}

.biology-eukaryote-type-model--animal .biology-eukaryote-type-cell {
  border-radius: 47% 42% 51% 44% / 43% 52% 45% 55%;
  transform: rotate(-2deg);
}

.biology-eukaryote-type-model--plant .biology-eukaryote-type-cell {
  width: min(80%, 292px);
  aspect-ratio: 1.28;
  background: #d9efe4;
  border: 10px solid #64854d;
  border-radius: 13px;
  box-shadow: inset 0 0 0 3px #408b85;
}

.biology-eukaryote-type-model--fungus .biology-eukaryote-type-cell {
  width: min(75%, 270px);
  aspect-ratio: 1.08;
  background: #e6ead7;
  border: 9px solid #927651;
  border-radius: 49% 46% 48% 44%;
  box-shadow: inset 0 0 0 3px #5f8a7b;
}

.biology-eukaryote-type-nucleus {
  position: absolute;
  top: 25%;
  left: 51%;
  width: 29%;
  aspect-ratio: 1;
  background: #9272ad;
  border: 4px solid #62477c;
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px rgba(223, 202, 237, 0.55);
}

.biology-eukaryote-type-nucleus > span {
  position: absolute;
  top: 34%;
  left: 35%;
  width: 30%;
  aspect-ratio: 1;
  background: #5a3a75;
  border-radius: 50%;
}

.biology-eukaryote-type-er {
  position: absolute;
  top: 14%;
  left: 27%;
  width: 30%;
  height: 24%;
  background: repeating-linear-gradient(0deg, transparent 0 7px, #5b91b5 7px 11px);
  border-radius: 42% 56% 40% 53%;
  transform: rotate(-8deg);
}

.biology-eukaryote-type-golgi {
  position: absolute;
  bottom: 22%;
  left: 34%;
  width: 25%;
  height: 8%;
  border-top: 5px solid #d8914e;
  border-bottom: 5px solid #d8914e;
  border-radius: 50%;
  box-shadow: 0 8px 0 -2px #e2ad62, 0 -8px 0 -2px #e2ad62;
  transform: rotate(-7deg);
}

.biology-eukaryote-type-mito {
  position: absolute;
  width: 18%;
  height: 10%;
  background: #e58a43;
  border: 3px solid #a85e2b;
  border-radius: 999px;
  transform: rotate(-18deg);
}

.biology-eukaryote-type-mito::after {
  position: absolute;
  inset: 26% 15%;
  content: "";
  border-top: 2px solid #fff0c9;
  border-bottom: 2px solid #fff0c9;
  border-radius: 50%;
}

.biology-eukaryote-type-mito--one {
  top: 23%;
  left: 9%;
}

.biology-eukaryote-type-mito--two {
  right: 9%;
  bottom: 17%;
  transform: rotate(14deg);
}

.biology-eukaryote-type-vesicle {
  position: absolute;
  width: 7%;
  aspect-ratio: 1;
  background: #e3b553;
  border: 2px solid #b77c28;
  border-radius: 50%;
}

.biology-eukaryote-type-vesicle--one {
  right: 15%;
  bottom: 40%;
}

.biology-eukaryote-type-vesicle--two {
  bottom: 15%;
  left: 20%;
  background: #76a9bd;
  border-color: #4f7e94;
}

.biology-eukaryote-type-vacuole,
.biology-eukaryote-type-chloroplast {
  display: none;
}

.biology-eukaryote-type-model--plant .biology-eukaryote-type-vacuole {
  position: absolute;
  top: 15%;
  left: 16%;
  z-index: 0;
  display: block;
  width: 55%;
  height: 70%;
  background: rgba(192, 225, 235, 0.88);
  border: 3px solid #77aeba;
  border-radius: 18% 22% 16% 24%;
}

.biology-eukaryote-type-model--plant .biology-eukaryote-type-nucleus {
  top: 48%;
  left: 68%;
  z-index: 2;
  width: 22%;
}

.biology-eukaryote-type-model--plant .biology-eukaryote-type-er {
  top: 34%;
  left: 64%;
  z-index: 1;
  width: 27%;
}

.biology-eukaryote-type-model--plant .biology-eukaryote-type-golgi {
  bottom: 13%;
  left: 57%;
  z-index: 2;
}

.biology-eukaryote-type-model--plant .biology-eukaryote-type-mito--one {
  top: 15%;
  left: 69%;
  z-index: 2;
}

.biology-eukaryote-type-model--plant .biology-eukaryote-type-mito--two {
  right: 8%;
  bottom: 8%;
  z-index: 2;
}

.biology-eukaryote-type-model--plant .biology-eukaryote-type-chloroplast {
  position: absolute;
  z-index: 2;
  display: block;
  width: 19%;
  height: 11%;
  background: repeating-linear-gradient(90deg, #4e8f3c 0 5px, #8fbd54 5px 9px);
  border: 3px solid #3b722f;
  border-radius: 999px;
}

.biology-eukaryote-type-chloroplast--one {
  top: 10%;
  left: 13%;
  transform: rotate(15deg);
}

.biology-eukaryote-type-chloroplast--two {
  right: 6%;
  bottom: 34%;
  transform: rotate(-12deg);
}

.biology-eukaryote-type-model--fungus .biology-eukaryote-type-vacuole {
  position: absolute;
  top: 49%;
  left: 16%;
  display: block;
  width: 34%;
  height: 32%;
  background: rgba(185, 213, 219, 0.88);
  border: 3px solid #759da5;
  border-radius: 48% 43% 52% 46%;
}

.biology-eukaryote-type-model--fungus .biology-eukaryote-type-nucleus {
  top: 22%;
  left: 52%;
  width: 27%;
}

.biology-eukaryote-type-model--fungus .biology-eukaryote-type-er {
  top: 15%;
  left: 25%;
}

.biology-eukaryote-type-model--fungus .biology-eukaryote-type-golgi {
  right: 12%;
  bottom: 20%;
  left: auto;
}

.biology-eukaryote-type-intro h3 {
  margin: 0 0 15px;
  color: var(--green-dark);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.16;
}

.biology-eukaryote-type-copy {
  max-width: 800px;
  margin-top: clamp(34px, 5vw, 48px);
}

.biology-eukaryote-type-copy h3 {
  margin: clamp(34px, 5vw, 46px) 0 12px;
  color: var(--green-dark);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  line-height: 1.25;
}

.biology-eukaryote-table-wrap {
  margin-top: 28px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.biology-eukaryote-table-wrap:focus-visible {
  outline: 3px solid rgba(31, 122, 85, 0.44);
  outline-offset: 3px;
}

.biology-eukaryote-comparison-table {
  min-width: 780px;
}

.biology-eukaryote-comparison-table caption {
  font-size: 1rem;
}

.biology-eukaryote-table-note {
  max-width: 800px;
  margin: 13px 0 0;
  color: #68756e;
  font-size: 0.84rem;
  line-height: 1.55;
}

.biology-eukaryote-organisation-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  margin: clamp(30px, 5vw, 44px) 0;
  padding: 22px 0;
  border-block: 1px solid rgba(31, 122, 85, 0.17);
  list-style: none;
}

.biology-eukaryote-organisation-flow li {
  position: relative;
  min-width: 0;
  text-align: center;
}

.biology-eukaryote-organisation-flow li:not(:last-child)::after {
  position: absolute;
  top: 4px;
  right: -16px;
  color: #829087;
  content: "→";
  font-size: 1.1rem;
}

.biology-eukaryote-organisation-flow span {
  color: var(--green-dark);
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.biology-eukaryote-organisation-flow p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.biology-eukaryote-differentiation {
  margin-top: 30px;
  background: rgba(251, 253, 250, 0.96);
  border-color: rgba(31, 122, 85, 0.28);
  border-radius: 9px;
}

.biology-eukaryote-differentiation > summary {
  padding: clamp(20px, 3vw, 27px);
  color: #fffdf7;
  background: var(--green-dark);
}

.biology-eukaryote-differentiation-title {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.7vw, 1.9rem);
  line-height: 1.22;
}

.biology-eukaryote-differentiation > .biology-eukaryote-differentiation-body {
  padding: clamp(26px, 5vw, 48px);
}

.biology-eukaryote-differentiation-body > p,
.biology-eukaryote-differentiation-body > h3,
.biology-eukaryote-differentiation-body > figure {
  max-width: 800px;
}

.biology-eukaryote-differentiation-body > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.72;
}

.biology-eukaryote-differentiation-body > p + p {
  margin-top: 16px;
}

.biology-eukaryote-differentiation-body > h3 {
  margin: clamp(34px, 5vw, 46px) 0 12px;
  color: var(--green-dark);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  line-height: 1.25;
}

.biology-eukaryote-differentiation-quote {
  margin-top: 40px;
}

.biology-eukaryote-checks {
  max-width: 800px;
}

.biology-eukaryote-check {
  margin-top: 10px;
  overflow: hidden;
  background: rgba(255, 253, 247, 0.92);
  border: 1px solid rgba(216, 154, 56, 0.34);
  border-radius: 8px;
}

.biology-eukaryote-check > summary,
.biology-eukaryote-learning-goals > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 18px 20px;
  color: var(--ink);
  font-weight: 750;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}

.biology-eukaryote-check > summary::-webkit-details-marker,
.biology-eukaryote-learning-goals > summary::-webkit-details-marker {
  display: none;
}

.biology-eukaryote-check > summary::marker,
.biology-eukaryote-learning-goals > summary::marker {
  content: "";
}

.biology-eukaryote-check > summary:focus-visible,
.biology-eukaryote-learning-goals > summary:focus-visible {
  outline: 3px solid #f2bd62;
  outline-offset: -4px;
}

.biology-eukaryote-check[open] > summary .biology-endosymbiosis-chevron,
.biology-eukaryote-learning-goals[open] > summary .biology-endosymbiosis-chevron {
  transform: rotate(225deg);
}

.biology-eukaryote-check > div {
  padding: 0 20px 19px;
}

.biology-eukaryote-check > div p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.68;
}

.biology-eukaryote-learning-goals {
  margin-top: clamp(64px, 8vw, 92px);
  overflow: hidden;
  background: #f4f8f5;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.biology-eukaryote-learning-goals > summary {
  padding: 21px 22px;
  color: var(--green-dark);
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
}

.biology-eukaryote-learning-goals > div {
  padding: 0 22px 24px;
}

.biology-eukaryote-learning-goals ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 30px;
  margin: 0;
  padding-left: 1.25rem;
  color: var(--ink-soft);
  line-height: 1.58;
}

.biology-eukaryote-learning-goals li::marker {
  color: var(--green);
}

.biology-eukaryote-sources {
  max-width: 800px;
  margin-top: 28px;
  padding-top: 17px;
  border-top: 1px solid rgba(31, 122, 85, 0.14);
}

.biology-eukaryote-sources p {
  margin: 0;
  color: #748078;
  font-size: 0.78rem;
  line-height: 1.65;
}

.biology-eukaryote-sources a {
  color: var(--green-dark);
  font-weight: 680;
}

@media (prefers-reduced-motion: no-preference) {
  .biology-eukaryote-structure-details article:not([hidden]),
  .biology-eukaryote-tabpanel:not([hidden]),
  .biology-eukaryote-check[open] > div,
  .biology-eukaryote-learning-goals[open] > div {
    animation: biologyEndosymbiosisReveal 180ms ease both;
  }
}

@media (max-width: 860px) {
  .biology-eukaryote-type-lead {
    grid-template-columns: 1fr;
  }

  .biology-eukaryote-type-figure {
    max-width: 520px;
  }

  .biology-eukaryote-organisation-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 20px;
  }

  .biology-eukaryote-organisation-flow li:nth-child(3)::after {
    display: none;
  }

  .biology-eukaryote-learning-goals ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .biology-eukaryote-table-wrap {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .biology-eukaryote-comparison-table {
    display: table;
    width: 100%;
    min-width: 780px;
    background: rgba(255, 255, 255, 0.94);
  }

  .biology-eukaryote-comparison-table thead {
    position: static;
    display: table-header-group;
    width: auto;
    height: auto;
    padding: 0;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
  }

  .biology-eukaryote-comparison-table tbody {
    display: table-row-group;
  }

  .biology-eukaryote-comparison-table tr,
  .biology-eukaryote-comparison-table tbody tr {
    display: table-row;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .biology-eukaryote-comparison-table th,
  .biology-eukaryote-comparison-table td,
  .biology-eukaryote-comparison-table tbody th,
  .biology-eukaryote-comparison-table tbody td {
    display: table-cell;
    width: auto;
    border-right: 1px solid rgba(31, 122, 85, 0.13);
  }

  .biology-eukaryote-comparison-table tbody th {
    color: var(--ink);
    background: rgba(238, 247, 242, 0.58);
  }

  .biology-eukaryote-comparison-table tbody td::before {
    display: none;
  }
}


/* Ordbogens detaljevisning bruger samme rolige fagkode som oversigtskortene. */
body[data-current-page="ordbog"] .dictionary-dialog-panel::before {
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #2fba70, #177d4a);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

body[data-current-page="ordbog"] .dictionary-dialog-panel[data-subjects~="naturgeografi"]::before {
  background: linear-gradient(90deg, #38a8dc, #176b8e);
}

body[data-current-page="ordbog"] .dictionary-dialog-panel[data-subjects~="videnskabsteori"]::before {
  background: linear-gradient(90deg, #8d6be2, #4d3a82);
}

body[data-current-page="ordbog"] .dictionary-dialog-panel[data-subjects~="biologi"][data-subjects~="naturgeografi"]::before {
  height: 6px;
  background: linear-gradient(to bottom, #2fba70 0 3px, #278fbd 3px 6px);
}

body[data-current-page="ordbog"] .dictionary-dialog-panel[data-subjects~="biologi"][data-subjects~="videnskabsteori"]::before {
  height: 6px;
  background: linear-gradient(to bottom, #2fba70 0 3px, #6b4fba 3px 6px);
}

body[data-current-page="ordbog"] .dictionary-dialog-panel[data-subjects~="naturgeografi"][data-subjects~="videnskabsteori"]::before {
  height: 6px;
  background: linear-gradient(to bottom, #278fbd 0 3px, #6b4fba 3px 6px);
}

body[data-current-page="ordbog"] .dictionary-dialog-panel[data-subjects~="biologi"][data-subjects~="naturgeografi"][data-subjects~="videnskabsteori"]::before {
  height: 9px;
  background: linear-gradient(to bottom, #2fba70 0 3px, #278fbd 3px 6px, #6b4fba 6px 9px);
}

body[data-current-page="ordbog"] .dictionary-dialog-header {
  padding: 8px 58px 0;
}

body[data-current-page="ordbog"] .dictionary-dialog-header h2 {
  width: 100%;
  text-align: center;
}

body[data-current-page="ordbog"] .dictionary-dialog-header p {
  text-align: left;
}

body[data-current-page="ordbog"] .dictionary-dialog-visual svg {
  overflow: hidden;
}

@media (max-width: 640px) {
  body[data-current-page="ordbog"] .dictionary-dialog-header {
    padding: 8px 44px 0;
  }

  body[data-current-page="ordbog"] .dictionary-dialog-header h2 {
    overflow-wrap: anywhere;
    font-size: clamp(1.75rem, 8vw, 2rem);
  }
}


/* Final biology width pass: long-form copy follows the full reading surface. */
body[data-current-page="biologi"] .biology-core-area-opening > .article-subtitle,
body[data-current-page="biologi"] .article-section > .biology-prokaryote-gram-intro,
body[data-current-page="biologi"] .article-section > .biology-eukaryote-table-note,
body[data-current-page="biologi"] .biology-eukaryote-type-copy,
body[data-current-page="biologi"] .biology-eukaryote-sources {
  width: 100%;
  max-width: var(--article-reading-width);
}

body[data-current-page="biologi"] details.accordion > .accordion-content > p,
body[data-current-page="biologi"] .biology-prokaryote-phase-details article > p,
body[data-current-page="biologi"] .biology-eukaryote-structure-details article > p,
body[data-current-page="biologi"] .biology-eukaryote-type-copy > p,
body[data-current-page="biologi"] .biology-eukaryote-sources > p {
  width: 100%;
  max-width: none;
}

/* Sidste normalisering: oversigten bruger samme læsekolonne som kapitlerne. */
body[data-current-page="biologi"] .biology-home-document .biology-hero-copy > p {
  width: 100%;
  max-width: var(--article-reading-width);
  color: var(--article-copy);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.72;
}

body[data-current-page="biologi"] .biology-home-document .biology-hero-copy > p + p {
  margin-top: var(--space-5);
}

@media (max-width: 640px) {
  body[data-current-page="biologi"] .biology-home-document .biology-hero-copy > p {
    font-size: 16.5px;
    line-height: 1.7;
  }
}

/* ================================================================
   BIOLOGI: FÆLLES INDHOLDSDESIGN
   Dette lag er bevidst afgrænset til biologisiden. Ordbogens visuelle
   system ligger urørt og arver ingen af reglerne nedenfor.
   ================================================================ */

body[data-current-page="biologi"] {
  --article-background: #ffffff;
  --page-background: #f4f7f4;
  --article-ink: #17251e;
  --article-copy: #4f5e56;
  --article-muted: #68766e;
  --article-line: #e1e7e2;
  --article-line-strong: #cbd8d0;
  --article-accent: #285f49;
  --article-accent-soft: #eaf2ed;
  --article-note: #f7faf8;
  --article-reading-width: 900px;
  --article-wide-width: 1040px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 88px;
  --space-10: 112px;
  color: var(--article-copy);
  background-color: var(--page-background);
  font-family: var(--font-body);
}

body[data-current-page="biologi"] :where(.article-page, .article-page *) {
  box-sizing: border-box;
}

body[data-current-page="biologi"] .subject-layout {
  display: grid;
  width: min(100% - 40px, 1510px);
  max-width: none;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  margin-inline: auto;
  padding: 10px 0 var(--space-9);
}

body[data-current-page="biologi"] .article-column {
  width: 100%;
  max-width: none;
  min-width: 0;
}

body[data-current-page="biologi"] .article-surface {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: clamp(36px, 4vw, 56px);
  overflow: hidden;
  color: var(--article-copy);
  background: var(--article-background);
  border: 1px solid var(--article-line);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(22, 48, 36, 0.04);
}

/* Give the interactive proteinsynthesis game a little more room than a reading chapter. */
body[data-current-page="biologi"] .article-surface:has(.biology-resource-game) {
  padding-inline: clamp(18px, 2.4vw, 38px);
}

body[data-current-page="biologi"] .article-surface :where(p, li, dd) {
  color: var(--article-copy);
}

body[data-current-page="biologi"] .article-header {
  width: 100%;
  max-width: var(--article-reading-width);
  margin: 0 auto;
  padding: 0 0 clamp(32px, 5vw, 40px);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--article-line);
  border-radius: 0;
  box-shadow: none;
}

body[data-current-page="biologi"] .biology-core-overview-simple.article-surface {
  display: block;
}

body[data-current-page="biologi"] .article-header .biology-core-overview-intro {
  max-width: var(--article-reading-width);
  margin: var(--space-6) auto 0;
  color: var(--article-copy);
  font-size: 18px;
  line-height: 1.72;
  text-align: center;
}

body[data-current-page="biologi"] .article-eyebrow,
body[data-current-page="biologi"] .article-header > .eyebrow {
  display: none;
}

body[data-current-page="biologi"] .article-page .article-title,
body[data-current-page="biologi"] .article-page > header h1 {
  max-width: 920px;
  margin: 0 auto;
  color: var(--article-ink);
  font-family: inherit;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0;
  text-align: center;
  text-wrap: balance;
}

body[data-current-page="biologi"] .article-subtitle,
body[data-current-page="biologi"] .biology-prokaryote-subtitle,
body[data-current-page="biologi"] .biology-eukaryote-subtitle {
  width: 100%;
  max-width: var(--article-reading-width);
  margin: var(--space-4) auto 0;
  color: var(--article-accent);
  font-family: inherit;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
  text-align: center;
  text-wrap: balance;
}

body[data-current-page="biologi"] .article-lead,
body[data-current-page="biologi"] .article-header .chapter-lead,
body[data-current-page="biologi"] .article-header .biology-course-intro {
  width: 100%;
  max-width: var(--article-reading-width);
  margin: var(--space-6) 0 0;
  color: var(--article-copy);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.72;
}

body[data-current-page="biologi"] .article-header .article-content {
  margin-top: var(--space-6);
}

body[data-current-page="biologi"] .article-content,
body[data-current-page="biologi"] .biology-core-existing-copy,
body[data-current-page="biologi"] .biology-prokaryote-reading-copy,
body[data-current-page="biologi"] .biology-prokaryote-section-copy,
body[data-current-page="biologi"] .biology-eukaryote-reading-copy,
body[data-current-page="biologi"] .biology-tree-of-life-copy,
body[data-current-page="biologi"] .biology-tree-of-life-part,
body[data-current-page="biologi"] .biology-section-heading {
  width: 100%;
  max-width: var(--article-reading-width);
}

body[data-current-page="biologi"] .article-page :where(.article-content, .chapter-section, .biology-core-existing-copy, .biology-prokaryote-reading-copy, .biology-prokaryote-section-copy, .biology-eukaryote-reading-copy, .biology-tree-of-life-copy, .biology-tree-of-life-part) > p,
body[data-current-page="biologi"] .article-page .biology-home-section p,
body[data-current-page="biologi"] .article-page .biology-section-heading > p {
  width: 100%;
  max-width: var(--article-reading-width);
  margin: 0;
  color: var(--article-copy);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.72;
}

body[data-current-page="biologi"] .article-page :where(.article-content, .chapter-section, .biology-core-existing-copy, .biology-prokaryote-reading-copy, .biology-prokaryote-section-copy, .biology-eukaryote-reading-copy, .biology-tree-of-life-copy, .biology-tree-of-life-part) > p + p,
body[data-current-page="biologi"] .article-page .biology-home-section p + p,
body[data-current-page="biologi"] .article-page .biology-section-heading > p + p {
  margin-top: var(--space-5);
}

body[data-current-page="biologi"] .article-page h2 {
  max-width: var(--article-reading-width);
  margin: 0 0 var(--space-5);
  color: #18251f;
  font-family: inherit;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: 0;
  text-wrap: balance;
}

body[data-current-page="biologi"] .article-page h3 {
  max-width: var(--article-reading-width);
  margin: var(--space-7) 0 var(--space-4);
  color: #22332a;
  font-family: inherit;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: 0;
}

body[data-current-page="biologi"] .article-page h4 {
  max-width: var(--article-reading-width);
  color: #26382f;
  font-size: 1.2rem;
  font-weight: 650;
  line-height: 1.35;
}

body[data-current-page="biologi"] .article-section,
body[data-current-page="biologi"] .biology-prokaryote-section,
body[data-current-page="biologi"] .biology-eukaryote-section,
body[data-current-page="biologi"] .biology-core-overview-section,
body[data-current-page="biologi"] .biology-core-area-continue,
body[data-current-page="biologi"] .biology-core-existing-content,
body[data-current-page="biologi"] .biology-tree-of-life {
  position: relative;
  width: 100%;
  max-width: none;
  margin: var(--space-9) 0 0;
  padding: var(--space-7) 0 0;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(23, 37, 30, 0.18);
  border-radius: 0;
  box-shadow: none;
}

body[data-current-page="biologi"] .article-section::before,
body[data-current-page="biologi"] .biology-prokaryote-section::before,
body[data-current-page="biologi"] .biology-eukaryote-section::before,
body[data-current-page="biologi"] .biology-core-overview-section::before,
body[data-current-page="biologi"] .biology-core-area-continue::before,
body[data-current-page="biologi"] .biology-core-existing-content::before,
body[data-current-page="biologi"] .biology-tree-of-life::before {
  display: none;
}

body[data-current-page="biologi"] .article-header + .article-section,
body[data-current-page="biologi"] .biology-core-area-opening + .biology-topic-hero-shot,
body[data-current-page="biologi"] .biology-prokaryote-hero + .teacher-note,
body[data-current-page="biologi"] .biology-eukaryote-hero + .teacher-note {
  margin-top: var(--space-7);
}

body[data-current-page="biologi"] .article-header + .article-section {
  padding-top: 0;
  border-top: 0;
}

body[data-current-page="biologi"] .article-breadcrumbs,
body[data-current-page="biologi"] .biology-breadcrumb {
  display: flex;
  width: 100%;
  min-height: 22px;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0 0 var(--space-4);
  padding-inline: 2px;
  color: #728078;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

body[data-current-page="biologi"] .article-breadcrumbs a,
body[data-current-page="biologi"] .biology-breadcrumb a {
  color: #285f49;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body[data-current-page="biologi"] .article-breadcrumbs [aria-current="page"],
body[data-current-page="biologi"] .biology-breadcrumb [aria-current="page"] {
  color: #758079;
}

/* En fælles venstremenu på alle biologisider. */
body[data-current-page="biologi"] .subject-sidebar,
body[data-current-page="biologi"] .biology-course-menu {
  position: sticky;
  top: 90px;
  width: 180px;
  max-height: calc(100vh - 112px);
  margin: 0;
  padding: 8px;
  overflow-y: auto;
  color: var(--article-copy);
  background: #ffffff;
  border: 1px solid #dfe6e1;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(22, 48, 36, 0.035);
  scrollbar-width: thin;
}

body[data-current-page="biologi"] .subject-sidebar .biology-course-menu-link,
body[data-current-page="biologi"] .subject-sidebar .biology-core-toggle,
body[data-current-page="biologi"] .subject-sidebar .biology-core-area-subpage-link,
body[data-current-page="biologi"] .subject-sidebar .biology-subtopic-link {
  padding: 7px 8px;
  font-size: 0.84rem;
  line-height: 1.3;
}

body[data-current-page="biologi"] .subject-sidebar .biology-core-levels-menu,
body[data-current-page="biologi"] .subject-sidebar .biology-core-area-submenu,
body[data-current-page="biologi"] .subject-sidebar .biology-subtopic-menu {
  margin-left: 6px;
  padding-left: 6px;
}

body[data-current-page="biologi"] .biology-menu-section,
body[data-current-page="biologi"] .biology-menu-section > nav {
  display: grid;
  gap: 3px;
}

body[data-current-page="biologi"] .biology-course-menu-link,
body[data-current-page="biologi"] .biology-core-area-subpage-link,
body[data-current-page="biologi"] .biology-subtopic-link {
  min-height: 0;
  padding: 10px 12px;
  color: #43554c;
  background: transparent;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

body[data-current-page="biologi"] .biology-course-menu-link:hover,
body[data-current-page="biologi"] .biology-course-menu-link:focus-visible,
body[data-current-page="biologi"] .biology-core-area-subpage-link:hover,
body[data-current-page="biologi"] .biology-core-area-subpage-link:focus-visible,
body[data-current-page="biologi"] .biology-subtopic-link:hover,
body[data-current-page="biologi"] .biology-subtopic-link:focus-visible {
  color: #245b45;
  background: #f3f7f4;
}

body[data-current-page="biologi"] .biology-course-menu-link.is-active,
body[data-current-page="biologi"] .biology-course-menu-link[aria-current="page"],
body[data-current-page="biologi"] .biology-core-area-subpage-link.is-active,
body[data-current-page="biologi"] .biology-subtopic-link.is-active {
  color: #245b45;
  background: #eaf2ed;
  box-shadow: inset 3px 0 0 #3c7358;
  font-weight: 650;
}

body[data-current-page="biologi"] .biology-core-toggle.is-parent-active,
body[data-current-page="biologi"] .biology-core-area-menu-group > .biology-course-menu-link.is-parent-active {
  color: #245b45;
  background: #f3f7f4;
}

body[data-current-page="biologi"] .biology-core-levels-menu,
body[data-current-page="biologi"] .biology-core-area-submenu,
body[data-current-page="biologi"] .biology-subtopic-menu {
  margin: 2px 0 6px 10px;
  padding: 2px 0 2px 9px;
  border-left: 1px solid transparent;
}

body[data-current-page="biologi"] .biology-mobile-menu {
  display: none;
}

/* En fælles accordion. */
body[data-current-page="biologi"] details.accordion {
  width: 100%;
  max-width: var(--article-wide-width);
  margin: var(--space-6) 0 0;
  overflow: hidden;
  color: var(--article-copy);
  background: #ffffff;
  border: 1px solid #dce4df;
  border-radius: 10px;
  box-shadow: none;
}

body[data-current-page="biologi"] details.accordion > .accordion-trigger {
  display: grid;
  width: 100%;
  min-height: 64px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-4);
  margin: 0;
  padding: 18px 20px;
  color: #1d3026;
  background: #ffffff;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  list-style: none;
  transition: background-color 180ms ease, border-color 180ms ease;
}

body[data-current-page="biologi"] details.accordion > .accordion-trigger::-webkit-details-marker {
  display: none;
}

body[data-current-page="biologi"] details.accordion > .accordion-trigger::marker {
  content: "";
}

body[data-current-page="biologi"] details.accordion > .accordion-trigger:hover {
  background: #f8faf8;
}

body[data-current-page="biologi"] details.accordion > .accordion-trigger:focus-visible {
  outline: 3px solid rgba(40, 95, 73, 0.28);
  outline-offset: -3px;
}

body[data-current-page="biologi"] .accordion-title,
body[data-current-page="biologi"] details.accordion > .accordion-trigger strong,
body[data-current-page="biologi"] details.accordion > .accordion-trigger > span:first-child {
  color: #1d3026;
  font-size: 19px;
  font-weight: 650;
  line-height: 1.35;
}

body[data-current-page="biologi"] .accordion-subtitle,
body[data-current-page="biologi"] details.accordion > .accordion-trigger small {
  display: block;
  margin-bottom: 3px;
  color: #68766e;
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.45;
}

body[data-current-page="biologi"] .accordion-icon,
body[data-current-page="biologi"] details.accordion .biology-endosymbiosis-chevron {
  flex: 0 0 auto;
  transition: transform 180ms ease;
}

body[data-current-page="biologi"] details.accordion[open] .accordion-icon,
body[data-current-page="biologi"] details.accordion[open] > summary .biology-endosymbiosis-chevron {
  transform: rotate(180deg);
}

body[data-current-page="biologi"] details.accordion > .accordion-content {
  width: auto;
  max-width: none;
  margin: 0 20px 20px;
  padding: 22px 0 0;
  color: var(--article-copy);
  background: #ffffff;
  border: 0;
  border-top: 1px solid #e3e9e5;
  border-radius: 0;
  box-shadow: none;
}

body[data-current-page="biologi"] details.accordion > .accordion-content > :first-child {
  margin-top: 0;
}

body[data-current-page="biologi"] details.accordion > .accordion-content > :last-child {
  margin-bottom: 0;
}

body[data-current-page="biologi"] details.accordion > .accordion-content p,
body[data-current-page="biologi"] details.accordion > .accordion-content li {
  color: var(--article-copy);
  font-size: 17px;
  line-height: 1.7;
}

/* Faglige nøgler og lærerens note er de eneste særlige tekstflader. */
body[data-current-page="biologi"] .key-point,
body[data-current-page="biologi"] .biology-term,
body[data-current-page="biologi"] .biology-known-questions,
body[data-current-page="biologi"] .biology-prokaryote-structure-details,
body[data-current-page="biologi"] .biology-prokaryote-phase-details,
body[data-current-page="biologi"] .biology-prokaryote-gram-result {
  width: 100%;
  max-width: var(--article-reading-width);
  margin: var(--space-5) 0 0;
  padding: 20px 22px;
  color: var(--article-copy);
  background: #f7faf8;
  border: 1px solid #dbe5df;
  border-left: 4px solid #3c7358;
  border-radius: 8px;
  box-shadow: none;
}

body[data-current-page="biologi"] .teacher-note,
body[data-current-page="biologi"] .biology-lars-quote {
  position: relative;
  width: 100%;
  max-width: var(--article-reading-width);
  margin: var(--space-7) 0 0;
  padding: 22px 24px;
  color: #29473a;
  background: #f3f8f4;
  border: 1px solid #d8e5dd;
  border-radius: 10px;
  box-shadow: none;
}

body[data-current-page="biologi"] .teacher-note:not(.biology-lars-inline-quote):not(.biology-lars-quote)::after {
  position: absolute;
  bottom: -9px;
  left: 34px;
  width: 16px;
  height: 16px;
  content: "";
  background: #f3f8f4;
  border-right: 1px solid #d8e5dd;
  border-bottom: 1px solid #d8e5dd;
  transform: rotate(45deg);
}

body[data-current-page="biologi"] .biology-lars-inline-quote.teacher-note {
  display: grid;
  max-width: var(--article-reading-width);
  grid-template-columns: minmax(0, 1fr) minmax(110px, 150px);
  align-items: end;
  gap: var(--space-5);
  padding: 0 18px 0 24px;
}

body[data-current-page="biologi"] .teacher-note-content,
body[data-current-page="biologi"] .biology-lars-inline-quote figcaption {
  align-self: center;
  padding: 22px 0;
  color: #29473a;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body[data-current-page="biologi"] .biology-lars-inline-quote figcaption::after {
  display: none;
}

body[data-current-page="biologi"] .teacher-note blockquote,
body[data-current-page="biologi"] .biology-lars-quote blockquote,
body[data-current-page="biologi"] .biology-lars-inline-quote blockquote {
  margin: 0;
  color: #29473a;
  font-family: inherit;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.62;
}

body[data-current-page="biologi"] .teacher-note figcaption:not(.teacher-note-content),
body[data-current-page="biologi"] .biology-lars-quote > figcaption {
  display: none;
}

body[data-current-page="biologi"] .teacher-note-character,
body[data-current-page="biologi"] .biology-lars-inline-quote img {
  display: block;
  width: 100%;
  max-width: 150px;
  height: auto;
  align-self: end;
  filter: none;
}

/* Fælles figur og figurtekst. */
body[data-current-page="biologi"] .article-figure,
body[data-current-page="biologi"] .figure-block[data-figure="academic"] {
  width: 100%;
  max-width: var(--article-wide-width);
  margin: var(--space-7) 0 0;
}

body[data-current-page="biologi"] .figure-normal {
  max-width: var(--article-reading-width);
}

body[data-current-page="biologi"] .figure-wide {
  max-width: var(--article-wide-width);
}

body[data-current-page="biologi"] .figure-full {
  max-width: none;
}

body[data-current-page="biologi"] .article-figure .figure-media,
body[data-current-page="biologi"] .figure-block[data-figure="academic"] .figure-media {
  display: block;
  width: 100%;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e1e7e3;
  border-radius: 10px;
  box-shadow: none;
}

body[data-current-page="biologi"] .article-figure img,
body[data-current-page="biologi"] .figure-block[data-figure="academic"] img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

body[data-current-page="biologi"] .article-figure-caption,
body[data-current-page="biologi"] .article-figure .figure-caption,
body[data-current-page="biologi"] .figure-block[data-figure="academic"] .figure-caption {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 18px 0 0;
  color: var(--article-muted);
  background: #ffffff;
  border-top: 1px solid #e3e8e4;
}

body[data-current-page="biologi"] .figure-caption-title,
body[data-current-page="biologi"] .figure-title {
  display: block;
  margin: 0 0 10px;
  color: #1d2923;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

body[data-current-page="biologi"] .figure-caption-text,
body[data-current-page="biologi"] .figure-caption > .figure-description {
  width: 100%;
  max-width: none;
  margin: 0 0 12px;
  color: #68756e;
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.65;
}

body[data-current-page="biologi"] .figure-caption-source,
body[data-current-page="biologi"] .figure-caption > .figure-source {
  width: 100%;
  max-width: none;
  margin: 0;
  color: #7b8780;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}

body[data-current-page="biologi"] .figure-source-label {
  color: #536158;
  font-weight: 650;
}

body[data-current-page="biologi"] :where(.biology-prokaryote-cell-figure, .biology-prokaryote-shape-figure, .biology-prokaryote-gram-figure, .biology-prokaryote-fission-figure, .biology-prokaryote-growth-figure) > figcaption {
  margin-top: 0;
  padding-top: 16px;
  color: #68756e;
  background: #ffffff;
  border-top: 1px solid #e3e8e4;
  font-size: 16px;
  line-height: 1.62;
}

body[data-current-page="biologi"] .biology-topic-hero-shot {
  width: 100%;
  max-width: var(--article-wide-width);
  margin: var(--space-7) 0 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e1e7e3;
  border-radius: 10px;
  box-shadow: none;
}

body[data-current-page="biologi"] .biology-topic-hero-shot img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

body[data-current-page="biologi"] .biology-core-area-page--editorial > .biology-topic-hero-shot,
body[data-current-page="biologi"] .biology-core-area-page--editorial .biology-core-area-existing-content,
body[data-current-page="biologi"] .biology-core-area-page--editorial .biology-core-existing-copy {
  width: 100%;
  max-width: var(--article-wide-width);
}

body[data-current-page="biologi"] .biology-core-area-page--editorial .biology-core-existing-copy {
  max-width: var(--article-reading-width);
}

body[data-current-page="biologi"] .biology-core-topic-hero.article-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: var(--space-4);
}

body[data-current-page="biologi"] .biology-core-topic-hero.article-header .biology-core-topic-icon {
  margin-top: var(--space-1);
}

body[data-current-page="biologi"] .biology-core-topic-hero.article-header > div {
  min-width: 0;
}

body[data-current-page="biologi"] .biology-core-topic-hero.article-header > div > :last-child {
  margin-bottom: 0;
}

body[data-current-page="biologi"] .biology-core-table-wrap,
body[data-current-page="biologi"] .biology-eukaryote-table-wrap,
body[data-current-page="biologi"] .biology-prokaryote-gram-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

body[data-current-page="biologi"] :where(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid rgba(40, 95, 73, 0.32);
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  body[data-current-page="biologi"] .subject-layout {
    width: min(100% - 32px, 1180px);
    grid-template-columns: 176px minmax(0, 1fr);
    gap: 12px;
  }

  body[data-current-page="biologi"] .subject-sidebar,
  body[data-current-page="biologi"] .biology-course-menu {
    width: 176px;
  }
}

@media (max-width: 980px) {
  body[data-current-page="biologi"] .subject-layout {
    display: block;
    width: min(100% - 32px, 900px);
    padding-top: 10px;
  }

  body[data-current-page="biologi"] .subject-sidebar,
  body[data-current-page="biologi"] .biology-workspace > .biology-course-menu {
    display: none;
  }

  body[data-current-page="biologi"] .biology-mobile-menu {
    display: block;
    width: min(100% - 32px, 900px);
    margin: 10px auto 0;
    padding: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dfe6e1;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(22, 48, 36, 0.035);
  }

  body[data-current-page="biologi"] .biology-mobile-menu > summary {
    padding: 15px 18px;
    color: #245b45;
    background: #ffffff;
    font-size: 1rem;
    font-weight: 650;
    cursor: pointer;
  }

  body[data-current-page="biologi"] .biology-mobile-menu > .biology-menu-section {
    padding: 0 10px 12px;
    border-top: 1px solid var(--article-line);
  }

  body[data-current-page="biologi"] .article-column {
    max-width: none;
  }
}

@media (max-width: 640px) {
  body[data-current-page="biologi"] .subject-layout,
  body[data-current-page="biologi"] .biology-mobile-menu {
    width: calc(100% - 36px);
  }

  body[data-current-page="biologi"] .subject-layout {
    padding-bottom: var(--space-8);
  }

  body[data-current-page="biologi"] .article-surface {
    padding: 30px 20px 42px;
    border-radius: 12px;
  }

  body[data-current-page="biologi"] .article-page .article-title,
  body[data-current-page="biologi"] .article-page > header h1 {
    font-size: clamp(2.25rem, 11vw, 2.65rem);
    line-height: 1.06;
  }

  body[data-current-page="biologi"] .article-subtitle,
  body[data-current-page="biologi"] .biology-prokaryote-subtitle,
  body[data-current-page="biologi"] .biology-eukaryote-subtitle {
    font-size: 1.32rem;
  }

  body[data-current-page="biologi"] .article-page :where(.article-content, .chapter-section, .biology-core-existing-copy, .biology-prokaryote-reading-copy, .biology-prokaryote-section-copy, .biology-eukaryote-reading-copy, .biology-tree-of-life-copy, .biology-tree-of-life-part) > p,
  body[data-current-page="biologi"] .article-page .biology-home-section p,
  body[data-current-page="biologi"] .article-page .biology-section-heading > p,
  body[data-current-page="biologi"] .article-lead {
    font-size: 16.5px;
    line-height: 1.7;
  }

  body[data-current-page="biologi"] .article-page h2 {
    font-size: clamp(1.72rem, 8vw, 2.05rem);
  }

  body[data-current-page="biologi"] .article-page h3 {
    font-size: clamp(1.28rem, 6vw, 1.5rem);
  }

  body[data-current-page="biologi"] .article-section,
  body[data-current-page="biologi"] .biology-prokaryote-section,
  body[data-current-page="biologi"] .biology-eukaryote-section,
  body[data-current-page="biologi"] .biology-core-overview-section,
  body[data-current-page="biologi"] .biology-core-area-continue,
  body[data-current-page="biologi"] .biology-core-existing-content,
  body[data-current-page="biologi"] .biology-tree-of-life {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
  }

  body[data-current-page="biologi"] .biology-core-topic-hero.article-header {
    grid-template-columns: 1fr;
  }

  body[data-current-page="biologi"] .biology-core-topic-hero.article-header .biology-core-topic-icon {
    display: none;
  }

  body[data-current-page="biologi"] .biology-lars-inline-quote.teacher-note {
    grid-template-columns: 1fr;
    padding: 20px 20px 0;
  }

  body[data-current-page="biologi"] .teacher-note-character,
  body[data-current-page="biologi"] .biology-lars-inline-quote img {
    width: min(145px, 48%);
    justify-self: end;
  }

  body[data-current-page="biologi"] details.accordion > .accordion-trigger {
    min-height: 58px;
    padding: 16px;
  }

  body[data-current-page="biologi"] .accordion-title,
  body[data-current-page="biologi"] details.accordion > .accordion-trigger strong,
  body[data-current-page="biologi"] details.accordion > .accordion-trigger > span:first-child {
    font-size: 17px;
  }

  body[data-current-page="biologi"] details.accordion > .accordion-content {
    margin: 0 16px 16px;
    padding-top: 18px;
  }

  body[data-current-page="biologi"] details.accordion > .accordion-content p,
  body[data-current-page="biologi"] details.accordion > .accordion-content li {
    font-size: 16.5px;
  }

  body[data-current-page="biologi"] .figure-caption-title,
  body[data-current-page="biologi"] .figure-title {
    font-size: 17px;
  }

  body[data-current-page="biologi"] .figure-caption-text,
  body[data-current-page="biologi"] .figure-caption > .figure-description {
    font-size: 15.5px;
  }

  body[data-current-page="biologi"] .figure-caption-source,
  body[data-current-page="biologi"] .figure-caption > .figure-source {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-current-page="biologi"] details.accordion > .accordion-trigger,
  body[data-current-page="biologi"] .accordion-icon,
  body[data-current-page="biologi"] details.accordion .biology-endosymbiosis-chevron {
    transition: none;
  }
}

body[data-current-page="biologi"] .biology-home-document.article-surface {
  padding: clamp(36px, 4vw, 56px);
}

body[data-current-page="biologi"] .biology-home-document > .article-header {
  max-width: var(--article-reading-width);
  border-bottom: 1px solid var(--article-line);
}

body[data-current-page="biologi"] .biology-home-document > .biology-overview-hero.article-header {
  margin-inline: auto;
  padding: 0 0 clamp(32px, 5vw, 40px);
}

body[data-current-page="biologi"] .biology-overview-hero .biology-hero-copy {
  width: 100%;
  max-width: none;
}

body[data-current-page="biologi"] .biology-overview-hero .article-title {
  max-width: 920px;
  margin: 0 auto;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.02;
  text-align: center;
}

body[data-current-page="biologi"] .biology-overview-introduction.article-section {
  margin-top: var(--space-7);
  padding-top: 0;
  border-top: 0;
}

body[data-current-page="biologi"] .biology-overview-introduction > .article-content,
body[data-current-page="biologi"] .biology-home-content {
  width: 100%;
  max-width: none;
  padding: 0;
}

/* Biologioversigtens sidste tekstafsnit følger den fælles læsekolonne. */
body[data-current-page="biologi"] .biology-hero-copy > p,
body[data-current-page="biologi"] .biology-lars-fact-layout,
body[data-current-page="biologi"] .biology-lars-fact-copy,
body[data-current-page="biologi"] .biology-lars-fact-copy > p {
  width: 100%;
  max-width: var(--article-reading-width);
}

body[data-current-page="biologi"] .biology-lars-fact-layout {
  display: block;
  margin-top: var(--space-5);
  padding-top: 0;
  border-top: 0;
}

body[data-current-page="biologi"] .biology-lars-fact-copy {
  display: block;
}

body[data-current-page="biologi"] .biology-lars-fact-layout .teacher-note {
  width: 100%;
  max-width: var(--article-reading-width);
  margin-top: var(--space-7);
}

@media (max-width: 680px) {
  body[data-current-page="biologi"] .biology-home-document.article-surface {
    padding: 30px 20px 42px;
  }

  .biology-eukaryote-page {
    padding-top: 2px;
  }

  .biology-eukaryote-hero h1 {
    font-size: clamp(2.5rem, 14vw, 3.6rem);
  }

  .biology-eukaryote-subtitle {
    margin-top: 13px;
  }

  .biology-eukaryote-section,
  .biology-eukaryote-checks {
    margin-top: 56px;
    padding-top: 34px;
  }

  .biology-eukaryote-cell-explorer {
    margin-right: -8px;
    margin-left: -8px;
    padding: 8px;
  }

  .biology-eukaryote-hotspot-nav {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 3px 3px;
    pointer-events: auto;
  }

  .biology-eukaryote-hotspot {
    position: relative;
    top: auto;
    left: auto;
    display: flex;
    width: 100%;
    height: auto;
    min-height: 46px;
    justify-content: flex-start;
    gap: 9px;
    padding: 9px 11px;
    color: var(--ink-soft);
    background: #f7faf7;
    border: 1px solid rgba(31, 122, 85, 0.16);
    border-radius: 7px;
    box-shadow: none;
    transform: none;
  }

  .biology-eukaryote-hotspot:hover,
  .biology-eukaryote-hotspot:focus-visible,
  .biology-eukaryote-hotspot.is-active {
    color: var(--green-dark);
    background: #ebf4ee;
    border-color: rgba(31, 122, 85, 0.35);
    box-shadow: none;
    transform: none;
  }

  .biology-eukaryote-hotspot-number {
    display: grid;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    color: #fffdf7;
    background: var(--green-dark);
    border-radius: 50%;
    font-size: 0.76rem;
    place-items: center;
  }

  .biology-eukaryote-hotspot.is-active .biology-eukaryote-hotspot-number {
    color: #263b32;
    background: #f2bd62;
  }

  .biology-eukaryote-hotspot-label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    clip-path: none;
    font: 700 0.88rem/1.3 system-ui, sans-serif;
    white-space: normal;
  }

  .biology-eukaryote-instruction-wide {
    display: none;
  }

  .biology-eukaryote-instruction-narrow {
    display: inline;
  }

  .biology-eukaryote-tabpanel {
    padding: 22px 16px 28px;
  }

  .biology-eukaryote-organisation-flow {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .biology-eukaryote-organisation-flow li:not(:last-child)::after,
  .biology-eukaryote-organisation-flow li:nth-child(3)::after {
    top: auto;
    right: 50%;
    bottom: -25px;
    display: block;
    content: "↓";
    transform: translateX(50%);
  }

  .biology-eukaryote-differentiation > .biology-eukaryote-differentiation-body {
    padding: 24px 17px 30px;
  }

  .biology-eukaryote-differentiation > summary,
  .biology-eukaryote-check > summary,
  .biology-eukaryote-learning-goals > summary {
    gap: 14px;
    padding-right: 17px;
    padding-left: 17px;
  }

  .biology-eukaryote-check > div,
  .biology-eukaryote-learning-goals > div {
    padding-right: 17px;
    padding-left: 17px;
  }
}

@media (max-width: 430px) {
  .biology-eukaryote-hotspot-nav {
    grid-template-columns: 1fr;
  }

  .biology-eukaryote-tablist {
    padding: 6px;
  }

  .biology-eukaryote-tab {
    padding-inline: 6px;
    font-size: 0.84rem;
  }
}

.biology-core-definition {
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 0.62fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: start;
  padding: clamp(24px, 4vw, 40px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(223, 242, 232, 0.82));
  border: 1px solid rgba(31, 122, 85, 0.17);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(16, 41, 39, 0.075);
}

.biology-core-definition-simple {
  display: block;
}

.biology-core-definition-simple > h2 {
  margin-bottom: 18px;
}

.biology-core-definition-intro {
  display: grid;
  gap: 16px;
  align-content: start;
  position: sticky;
  top: 106px;
}

.biology-core-definition-intro .eyebrow {
  margin: 0;
}

.biology-core-definition h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.02;
}

.biology-core-definition-lede {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  font-weight: 760;
  line-height: 1.55;
}

.biology-core-definition-points {
  display: grid;
  gap: 10px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.biology-core-definition-points li {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(31, 122, 85, 0.16);
}

.biology-core-definition-points strong {
  color: var(--green-dark);
  white-space: nowrap;
}

.biology-core-definition-points span {
  color: var(--ink-soft);
}

.biology-core-definition-copy {
  max-width: 760px;
}

.biology-core-definition p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.72;
}

.biology-core-definition p + p {
  margin-top: 14px;
}

.biology-core-jump-nav {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding-top: 4px;
  border-top: 1px solid rgba(31, 122, 85, 0.14);
}

.biology-core-jump-nav > span {
  margin-right: 4px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.biology-core-jump-nav a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 13px;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(31, 122, 85, 0.18);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.biology-core-jump-nav a:hover,
.biology-core-jump-nav a:focus-visible {
  background: rgba(223, 242, 232, 0.92);
  border-color: rgba(31, 122, 85, 0.38);
  transform: translateY(-1px);
}

.biology-core-overview-section {
  display: grid;
  gap: 22px;
}

.biology-core-skill-levels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.biology-core-skill-card {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(213, 229, 222, 0.92);
  border-top: 5px solid var(--green);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(16, 41, 39, 0.07);
}

.biology-core-skill-card[data-level="b"] {
  border-top-color: var(--blue-dark);
}

.biology-core-skill-card[data-level="a"] {
  border-top-color: var(--amber);
}

.biology-core-skill-card-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 6px 12px;
  text-align: center;
}

.biology-core-skill-card-heading span {
  color: var(--ink);
  font-size: 1.28rem;
  font-weight: 900;
}

.biology-core-skill-card > p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.biology-core-table-wrap {
  min-width: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(213, 229, 222, 0.92);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(16, 41, 39, 0.075);
}

.biology-core-comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.biology-core-comparison-table caption {
  padding: 18px 20px;
  color: var(--ink);
  background: rgba(238, 247, 242, 0.72);
  font-size: 1rem;
  font-weight: 900;
  text-align: left;
}

.biology-core-comparison-table th,
.biology-core-comparison-table td {
  padding: 15px 14px;
  vertical-align: top;
  border-right: 1px solid rgba(31, 122, 85, 0.13);
  border-bottom: 1px solid rgba(31, 122, 85, 0.13);
  overflow-wrap: anywhere;
}

.biology-core-comparison-table tr > :last-child {
  border-right: 0;
}

.biology-core-comparison-table tbody tr:last-child > * {
  border-bottom: 0;
}

.biology-core-comparison-table thead th {
  color: #fffdf7;
  background: var(--green-dark);
  font-size: 0.9rem;
  text-align: left;
}

.biology-core-comparison-table thead th:first-child,
.biology-core-comparison-table tbody th {
  width: 19%;
}

.biology-core-comparison-table tbody th {
  color: var(--ink);
  background: rgba(238, 247, 242, 0.58);
  font-weight: 900;
  text-align: left;
}

.biology-core-comparison-table tbody th a,
.biology-core-progression-table .biology-progression-term {
  color: var(--green-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.biology-core-progression-table tbody a {
  text-decoration: none;
}

.biology-core-progression-table tbody a:hover {
  color: var(--green);
}

.biology-core-progression-table tbody a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

#kernestof-progression {
  scroll-margin-top: 112px;
}

.biology-core-progression-table tbody td.is-not-separate-core {
  background: #edf0ef;
  box-shadow: none;
}

.biology-core-progression-table tbody td.is-highlighted-level {
  background: rgba(232, 245, 238, 0.88);
  box-shadow: inset 2px 0 0 rgba(213, 153, 45, 0.82);
}

.biology-core-progression-table thead th.is-highlighted-level {
  background: #174f3e;
  box-shadow: inset 0 -4px 0 var(--amber);
}

.biology-competency-table tbody + tbody tr:first-child > * {
  border-top: 1px solid rgba(31, 122, 85, 0.17);
}

.biology-competency-table {
  background: #fffdf9;
}

.biology-competency-table tbody th {
  vertical-align: middle;
  background: #f4f9f6;
}

.biology-competency-shared {
  color: var(--ink-soft);
  background: #f4f9f6;
  font-weight: 650;
}

.biology-competency-shared::before {
  display: none;
}

.biology-competency-level-row td {
  background: #fffdf9;
}

.biology-core-source-note {
  max-width: 820px;
  margin-top: 28px;
  padding: 16px 0 0;
  color: #748078;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(31, 122, 85, 0.16);
  border-radius: 0;
}

.biology-core-source-note strong {
  color: var(--green-dark);
}

.biology-core-source-note p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.65;
}

.biology-core-source-note a {
  color: var(--green-dark);
  font-weight: 680;
}

.biology-core-existing-content {
  overflow: hidden;
}

.biology-core-inline-chapter,
.biology-core-inline-chapter .chapter-document {
  min-width: 0;
}

.biology-core-inline-chapter {
  scroll-margin-top: 104px;
}

.biology-core-inline-document {
  border-color: rgba(31, 122, 85, 0.22);
  box-shadow: 0 22px 52px rgba(13, 52, 49, 0.13);
}

.biology-core-inline-document > header > h2 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
}

.biology-core-inline-document .chapter-section h3 {
  margin-bottom: 12px;
  font-size: 1.6rem;
}

.biology-core-inline-document > header > h2:focus-visible {
  outline: 3px solid rgba(216, 154, 56, 0.72);
  outline-offset: 6px;
  border-radius: 8px;
}

.biology-core-chapter-level-context {
  max-width: 760px;
  margin: 0 0 12px;
  padding: 11px 13px;
  color: var(--ink-soft);
  background: rgba(223, 242, 232, 0.62);
  border: 1px solid rgba(31, 122, 85, 0.13);
  border-radius: 12px;
}

.biology-core-chapter-level-note {
  margin: 0;
  padding: 18px 20px;
  color: var(--ink-soft);
  background: rgba(255, 253, 247, 0.94);
  border: 1px solid rgba(229, 213, 171, 0.9);
  border-radius: 16px;
}

.biology-core-existing-content .biology-topic-hero-shot {
  margin-top: 20px;
}

.biology-core-existing-copy {
  margin-top: 22px;
  color: var(--ink-soft);
  line-height: 1.68;
}

.biology-intro-question-list {
  margin: 12px 0 0;
  padding-left: 1.35rem;
}

.biology-intro-question-list li + li {
  margin-top: 5px;
}

.biology-core-area-page--editorial {
  gap: clamp(24px, 3.5vw, 38px);
}

.biology-core-area-opening {
  max-width: 940px;
  padding: 12px 6px 0;
}

.biology-core-area-opening h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.98;
}

.biology-core-area-opening > p:last-child {
  max-width: 780px;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.55;
}

.biology-core-area-page--editorial > .biology-topic-hero-shot {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: clamp(6px, 0.8vw, 10px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(232, 245, 238, 0.92));
  border: 1px solid rgba(31, 122, 85, 0.2);
  border-radius: 12px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 18px 38px rgba(13, 52, 49, 0.14);
}

.biology-core-area-page--editorial > .biology-topic-hero-shot img {
  border-radius: 6px;
}

.biology-core-area-page--editorial .biology-core-area-existing-content {
  max-width: 980px;
}

.biology-core-area-page--editorial .biology-core-existing-copy {
  margin-top: 0;
}

.biology-endosymbiosis {
  margin-top: clamp(32px, 5vw, 54px);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(31, 122, 85, 0.25);
  border-top: 4px solid var(--amber);
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(13, 52, 49, 0.13);
}

.biology-endosymbiosis > summary,
.biology-endosymbiosis-check > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.biology-endosymbiosis > summary {
  padding: clamp(22px, 3.5vw, 32px);
  color: #fffdf7;
  background: linear-gradient(135deg, var(--green-dark), var(--blue-dark));
}

.biology-endosymbiosis > summary::-webkit-details-marker,
.biology-endosymbiosis-check > summary::-webkit-details-marker {
  display: none;
}

.biology-endosymbiosis > summary::marker,
.biology-endosymbiosis-check > summary::marker {
  content: "";
}

.biology-endosymbiosis > summary:focus-visible,
.biology-endosymbiosis-check > summary:focus-visible {
  outline: 3px solid #f2bd62;
  outline-offset: -5px;
}

.biology-endosymbiosis-summary-copy,
.biology-endosymbiosis-summary-copy > * {
  display: block;
}

.biology-endosymbiosis-summary-copy small {
  margin-bottom: 7px;
  color: #f2bd62;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.biology-endosymbiosis-summary-copy strong {
  color: #fffdf7;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.18;
}

.biology-endosymbiosis-summary-copy > span:last-child {
  max-width: 780px;
  margin-top: 9px;
  color: rgba(255, 253, 247, 0.8);
  font-size: 0.94rem;
  line-height: 1.55;
}

.biology-endosymbiosis-chevron {
  width: 16px;
  height: 16px;
  margin-right: 5px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(45deg);
  transition: transform 200ms ease;
}

.biology-endosymbiosis[open] > summary .biology-endosymbiosis-chevron,
.biology-endosymbiosis-check[open] > summary .biology-endosymbiosis-chevron {
  transform: rotate(225deg);
}

.biology-endosymbiosis-body {
  background:
    radial-gradient(circle at 100% 0, rgba(220, 238, 246, 0.4), transparent 28%),
    linear-gradient(180deg, rgba(249, 253, 251, 0.98), rgba(244, 250, 246, 0.96));
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.biology-endosymbiosis-content {
  width: 100%;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) clamp(20px, 4.5vw, 46px);
}

.biology-endosymbiosis-header {
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(31, 122, 85, 0.17);
}

.biology-endosymbiosis-header h2 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.15rem);
  line-height: 1.06;
}

.biology-endosymbiosis-header p {
  width: 100%;
  max-width: none;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.72;
}

.biology-endosymbiosis-content > section {
  margin-top: clamp(34px, 5vw, 50px);
}

.biology-endosymbiosis-content h3 {
  margin: 0 0 15px;
  color: var(--green-dark);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.2;
}

.biology-endosymbiosis-content h4 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1.08rem;
}

.biology-endosymbiosis-content section > p,
.biology-endosymbiosis-depth p,
.biology-endosymbiosis-sources p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.72;
}

.biology-endosymbiosis-content section > p + p {
  margin-top: 14px;
}

.biology-endosymbiosis-depth {
  margin-top: 22px;
}

.biology-endosymbiosis-depth .biology-endosymbiosis-level {
  margin-bottom: 7px;
  color: #7f5418;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.biology-endosymbiosis-evidence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.biology-endosymbiosis-evidence li {
  position: relative;
  min-width: 0;
  padding: 20px 18px 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(31, 122, 85, 0.17);
  border-radius: 14px;
  box-shadow: 0 9px 22px rgba(13, 52, 49, 0.07);
}

.biology-endosymbiosis-evidence li > span {
  display: grid;
  width: 30px;
  height: 30px;
  margin-bottom: 13px;
  place-items: center;
  color: #fffdf7;
  background: var(--green-dark);
  border: 3px solid rgba(242, 189, 98, 0.82);
  border-radius: 50%;
  font-size: 0.76rem;
  font-weight: 900;
}

.biology-endosymbiosis-evidence li > strong {
  display: block;
  color: var(--ink);
  line-height: 1.3;
}

.biology-endosymbiosis-evidence li > p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.biology-endosymbiosis-evidence li:last-child {
  grid-column: 1 / -1;
}

.biology-endosymbiosis-flow-figure {
  margin-top: clamp(36px, 6vw, 56px);
}

.biology-endosymbiosis-lars {
  max-width: 680px;
  margin-top: clamp(34px, 5vw, 48px);
}

.biology-endosymbiosis-check {
  margin-top: clamp(30px, 5vw, 44px);
  overflow: hidden;
  background: rgba(255, 253, 247, 0.96);
  border: 1px solid rgba(216, 154, 56, 0.38);
  border-radius: 14px;
}

.biology-endosymbiosis-check > summary {
  padding: 19px 20px;
  color: var(--ink);
}

.biology-endosymbiosis-check > summary small,
.biology-endosymbiosis-check > summary strong {
  display: block;
}

.biology-endosymbiosis-check > summary small {
  margin-bottom: 5px;
  color: #7f5418;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.biology-endosymbiosis-check > summary strong {
  line-height: 1.45;
}

.biology-endosymbiosis-check > div {
  padding: 0 20px 20px;
  color: var(--ink-soft);
  line-height: 1.68;
}

.biology-endosymbiosis-check > div p {
  margin: 0;
}

.biology-depth-disclosure {
  margin-top: clamp(30px, 5vw, 44px);
  overflow: hidden;
  background: rgba(255, 253, 247, 0.96);
  border: 1px solid rgba(216, 154, 56, 0.38);
  border-radius: 14px;
}

.biology-depth-disclosure > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 19px 20px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.biology-depth-disclosure > summary::-webkit-details-marker {
  display: none;
}

.biology-depth-disclosure > summary::marker {
  content: "";
}

.biology-depth-disclosure > summary:focus-visible {
  outline: 3px solid #f2bd62;
  outline-offset: -5px;
}

.biology-depth-disclosure > summary small,
.biology-depth-disclosure > summary strong {
  display: block;
}

.biology-depth-disclosure > summary small {
  margin-bottom: 5px;
  color: #7f5418;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.biology-depth-disclosure > summary strong {
  color: var(--ink);
  line-height: 1.45;
}

.biology-depth-disclosure > div {
  padding: 0 20px 20px;
  color: var(--ink-soft);
  line-height: 1.68;
}

.biology-depth-disclosure[open] > summary .biology-endosymbiosis-chevron {
  transform: rotate(225deg);
}

.biology-endosymbiosis-depth-disclosure > .biology-endosymbiosis-body {
  padding: 0;
  border-top: 1px solid rgba(31, 122, 85, 0.12);
}

.biology-endosymbiosis-sources {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(31, 122, 85, 0.15);
}

.biology-endosymbiosis-sources p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.biology-endosymbiosis-sources a {
  color: var(--green-dark);
  font-weight: 760;
}

@media (prefers-reduced-motion: no-preference) {
  .biology-endosymbiosis[open] > .biology-endosymbiosis-body,
  .biology-endosymbiosis-check[open] > div,
  .biology-depth-disclosure[open] > div {
    animation: biologyEndosymbiosisReveal 220ms ease both;
  }
}

@keyframes biologyEndosymbiosisReveal {
  from {
    opacity: 0;
    transform: translateY(-7px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .biology-core-area-opening {
    padding-inline: 0;
  }

  .biology-core-area-page--editorial > .biology-topic-hero-shot {
    padding: 5px;
    border-radius: 9px;
  }

  .biology-core-area-page--editorial > .biology-topic-hero-shot img {
    border-radius: 5px;
  }

  .biology-endosymbiosis > summary {
    gap: 16px;
    padding: 20px 17px;
  }

  .biology-endosymbiosis-summary-copy strong {
    font-size: 1.32rem;
  }

  .biology-endosymbiosis-content {
    padding: 28px 17px 34px;
  }

  .biology-endosymbiosis-evidence {
    grid-template-columns: 1fr;
  }

  .biology-endosymbiosis-evidence li:last-child {
    grid-column: auto;
  }

}

@media (max-width: 900px) {
  .biology-core-topic-grid,
  .biology-core-subtopic-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .biology-core-topic-layout {
    grid-template-columns: 1fr;
  }

  .biology-core-work-further {
    position: static;
  }

  .biology-core-definition,
  .biology-core-skill-levels {
    grid-template-columns: 1fr;
  }

  .biology-core-definition-intro {
    position: static;
  }
}

@media (max-width: 760px) {
  .biology-core-table-wrap {
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .biology-core-comparison-table,
  .biology-core-comparison-table tbody,
  .biology-core-comparison-table tr,
  .biology-core-comparison-table th,
  .biology-core-comparison-table td {
    display: block;
    width: 100%;
  }

  .biology-core-comparison-table {
    background: transparent;
  }

  .biology-core-comparison-table caption {
    display: block;
    margin-bottom: 12px;
    border: 1px solid rgba(213, 229, 222, 0.92);
    border-radius: 14px;
  }

  .biology-core-comparison-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .biology-core-comparison-table tbody {
    display: grid;
    gap: 14px;
  }

  .biology-core-comparison-table tbody tr {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(213, 229, 222, 0.92);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(16, 41, 39, 0.065);
  }

  .biology-core-comparison-table tbody th,
  .biology-core-comparison-table tbody td {
    width: 100%;
    border-right: 0;
  }

  .biology-core-comparison-table tbody th {
    color: #fffdf7;
    background: var(--green-dark);
  }

  .biology-core-comparison-table tbody th a {
    color: #fffdf7;
  }

  .biology-core-comparison-table tbody td::before {
    display: block;
    margin-bottom: 5px;
    content: attr(data-label);
    color: var(--green-dark);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .biology-core-progression-table tbody td.is-highlighted-level {
    background: rgba(232, 245, 238, 0.92);
    box-shadow: inset 4px 0 0 var(--amber);
  }

  .biology-competency-table tbody {
    gap: 0;
    margin: 0 0 14px;
  }

  .biology-competency-table tbody tr {
    border-radius: 0;
    box-shadow: none;
  }

  .biology-competency-table tbody tr:first-child {
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
  }

  .biology-competency-table tbody tr:last-child {
    border-radius: 0 0 16px 16px;
  }

  .biology-competency-table tbody + tbody tr:first-child > * {
    border-top: 0;
  }

}

@media (max-width: 620px) {
  .biology-core-unified {
    gap: 34px;
  }

  .biology-core-unified-hero,
  .biology-core-level-choice,
  .biology-core-topic-hero {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .biology-core-tabs {
    grid-template-columns: 1fr;
  }

  .biology-core-tab {
    min-height: 58px;
    grid-template-columns: auto auto;
    gap: 8px;
    align-items: baseline;
  }

  .biology-core-topic-grid,
  .biology-core-subtopic-list {
    grid-template-columns: 1fr;
  }

  .biology-core-topic-card {
    min-height: 0;
  }

  .biology-core-topic-hero {
    grid-template-columns: 1fr;
  }

  .biology-core-topic-hero .biology-core-topic-icon {
    width: 58px;
    height: 58px;
  }

  .biology-core-unified-topic > .biology-core-level-selector {
    margin-top: -10px;
  }
}

.biology-course-header {
  display: grid;
  gap: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(31, 122, 85, 0.14);
}

.biology-course-header h1,
.chapter-document h1 {
  margin-bottom: 8px;
}

.biology-course-content {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(300px, 0.38fr);
  gap: 22px;
  align-items: start;
  margin-top: 24px;
}

.biology-exam-course {
  display: grid;
  gap: 0;
}

.biology-exam-course > .biology-course-header {
  padding-bottom: clamp(26px, 4vw, 38px);
}

.biology-known-questions {
  margin-top: 30px;
  padding: clamp(20px, 3vw, 28px);
  background: rgba(239, 249, 244, 0.86);
  border: 1px solid rgba(31, 122, 85, 0.2);
  border-radius: var(--radius-card);
  box-shadow: 0 12px 28px rgba(16, 41, 39, 0.07);
}

.biology-known-questions strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green-dark);
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
}

.biology-known-questions p {
  max-width: 900px;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.biology-exam-section {
  padding: clamp(34px, 5vw, 54px) 0;
  border-top: 1px solid rgba(31, 122, 85, 0.16);
}

.biology-known-questions + .biology-exam-section {
  margin-top: 30px;
}

.biology-exam-section h2 {
  margin-bottom: 12px;
  font-size: clamp(1.9rem, 3.7vw, 2.75rem);
}

.biology-exam-section p {
  color: var(--ink-soft);
  line-height: 1.7;
}

.biology-exam-level-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.biology-exam-level-grid article {
  min-height: 230px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(213, 229, 222, 0.9);
  border-radius: var(--radius-card);
  box-shadow: 0 10px 26px rgba(16, 41, 39, 0.06);
}

.biology-exam-level-grid h3 {
  margin: 0 0 18px;
  font-size: 1.5rem;
}

.biology-exam-level-grid dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.biology-exam-level-grid dl > div {
  display: grid;
  grid-template-columns: minmax(90px, 0.42fr) minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid rgba(31, 122, 85, 0.12);
}

.biology-exam-level-grid dt {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.biology-exam-level-grid dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1.45;
}

.biology-exam-level-switcher {
  margin-top: 26px;
  overflow: hidden;
  background: #fffdf9;
  border: 1px solid rgba(213, 229, 222, 0.94);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(16, 41, 39, 0.08);
}

.biology-exam-level-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  background: rgba(231, 245, 237, 0.9);
  border-bottom: 1px solid rgba(31, 122, 85, 0.14);
}

.biology-exam-level-tabs button {
  min-height: 50px;
  padding: 10px 16px;
  color: var(--green-dark);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
}

.biology-exam-level-tabs button:hover {
  background: rgba(255, 255, 255, 0.7);
}

.biology-exam-level-tabs button[aria-selected="true"] {
  color: #fffdf7;
  background: var(--green-dark);
  box-shadow: 0 7px 16px rgba(16, 71, 60, 0.18);
}

.biology-exam-level-tabs button:focus-visible {
  outline: 3px solid rgba(216, 154, 56, 0.8);
  outline-offset: 2px;
}

.biology-exam-level-panel {
  padding: clamp(24px, 4vw, 42px);
}

.biology-exam-level-panel-header {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: start;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(31, 122, 85, 0.14);
}

.biology-exam-level-panel h3 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
}

.biology-exam-level-panel p {
  color: var(--ink-soft);
  line-height: 1.7;
}

.biology-exam-level-panel-header p {
  margin: 0;
}

.biology-exam-talking-note {
  margin: 22px 0 0;
  padding: 15px 18px;
  color: var(--ink-soft);
  background: rgba(255, 248, 227, 0.68);
  border: 1px solid rgba(216, 154, 56, 0.3);
  border-radius: 14px;
}

.biology-exam-talking-note strong {
  color: #7f5418;
}

.biology-exam-level-facts {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 2px 18px;
  background: #f4f9f6;
  border: 1px solid rgba(31, 122, 85, 0.14);
  border-radius: 16px;
}

.biology-exam-level-fact-groups {
  display: grid;
  gap: 12px;
}

.biology-exam-level-fact-group {
  padding: 16px 18px 4px;
  border: 1px solid rgba(31, 122, 85, 0.16);
  border-radius: 16px;
}

.biology-exam-level-fact-group h4 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 0.98rem;
}

.biology-exam-level-fact-group .biology-exam-level-facts {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.biology-exam-level-fact-group--oral {
  border-top: 4px solid var(--green);
  background: rgba(242, 250, 246, 0.9);
}

.biology-exam-level-fact-group--written {
  border-top: 4px solid var(--amber);
  background: rgba(255, 250, 238, 0.86);
}

.biology-exam-level-facts > div {
  display: grid;
  grid-template-columns: minmax(108px, 0.45fr) minmax(0, 1fr);
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid rgba(31, 122, 85, 0.12);
}

.biology-exam-level-facts > div:first-child {
  border-top: 0;
}

.biology-exam-level-facts dt {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.biology-exam-level-facts dd {
  margin: 0;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.45;
}

.biology-exam-level-flow {
  margin-top: 28px;
  padding: 22px 0 26px;
  border-bottom: 1px solid rgba(31, 122, 85, 0.14);
}

.biology-exam-level-flow h4 {
  margin: 0;
  color: var(--ink);
  font-size: 1.1rem;
}

.biology-exam-level-flow .biology-exam-step-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.biology-exam-level-flow .biology-exam-step-list li {
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
}

.biology-exam-level-flow .biology-exam-step-list li > span {
  width: 36px;
  height: 36px;
  font-size: 0.95rem;
}

.biology-exam-level-flow--written {
  margin-top: 34px;
  padding: 22px;
  background: rgba(255, 250, 238, 0.68);
  border: 1px solid rgba(216, 154, 56, 0.28);
  border-radius: 16px;
}

.biology-exam-level-flow--written .biology-exam-step-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.biology-exam-level-flow--written .biology-exam-step-list li > span {
  color: #fffaf0;
  background: #9a681c;
}

.biology-exam-level-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.biology-exam-level-details > :only-child {
  grid-column: 1 / -1;
}

.biology-exam-level-details--written {
  margin-top: 16px;
}

.biology-exam-level-detail {
  padding: 20px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(213, 229, 222, 0.9);
  border-radius: 16px;
}

.biology-exam-level-detail h4 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.05rem;
}

.biology-exam-level-detail p {
  margin: 10px 0 0;
}

.biology-exam-level-detail p:first-of-type {
  margin-top: 0;
}

.biology-exam-level-detail--written {
  border-top: 4px solid var(--amber);
  background: rgba(255, 250, 238, 0.86);
}

.biology-exam-level-detail--oral {
  border-top: 4px solid var(--green);
  background: rgba(242, 250, 246, 0.9);
}

.biology-exam-assessment {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(31, 122, 85, 0.16);
}

.biology-exam-assessment h4 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.18rem;
}

.biology-exam-assessment > p {
  max-width: 880px;
  margin: 0;
}

.biology-exam-assessment ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(31, 122, 85, 0.14);
}

.biology-exam-assessment li {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 17px 18px;
  border-left: 1px solid rgba(31, 122, 85, 0.14);
}

.biology-exam-assessment li:first-child {
  padding-left: 0;
  border-left: 0;
}

.biology-exam-assessment strong {
  color: var(--green-dark);
}

.biology-exam-assessment span {
  color: var(--ink-soft);
  line-height: 1.6;
}

.biology-exam-step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.biology-exam-step-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.biology-exam-step-list li > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--green-dark);
  border-radius: 50%;
  font-weight: 900;
}

.biology-exam-step-list strong,
.biology-exam-step-list p {
  display: block;
}

.biology-exam-step-list strong {
  margin-bottom: 5px;
  color: var(--ink);
}

.biology-exam-step-list p {
  margin: 0;
  font-size: 0.95rem;
}

.biology-exam-focus {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(260px, 1.15fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: start;
}

.biology-assessment-list,
.biology-terms-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.biology-assessment-list li,
.biology-terms-list li {
  padding: 14px 0;
  border-top: 1px solid rgba(31, 122, 85, 0.14);
}

.biology-assessment-list strong,
.biology-assessment-list span,
.biology-terms-list strong,
.biology-terms-list span {
  display: block;
}

.biology-assessment-list strong,
.biology-terms-list strong {
  margin-bottom: 4px;
  color: var(--ink);
}

.biology-assessment-list span,
.biology-terms-list span {
  color: var(--ink-soft);
  line-height: 1.55;
}

.biology-exam-written .biology-section-heading {
  max-width: 880px;
}

.biology-terms-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.biology-exam-note {
  max-width: 820px;
  margin: 0;
  padding-top: 18px;
  color: var(--muted);
  border-top: 1px solid rgba(31, 122, 85, 0.16);
  font-size: 0.92rem;
  line-height: 1.6;
}

.biology-exam-note a {
  color: var(--green-dark);
  font-weight: 800;
}

@media (max-width: 860px) {
  .biology-exam-focus,
  .biology-exam-level-panel-header,
  .biology-exam-level-details,
  .biology-exam-assessment ul,
  .biology-exam-step-list,
  .biology-terms-list {
    grid-template-columns: 1fr;
  }

  .biology-exam-assessment li,
  .biology-exam-assessment li:first-child {
    padding: 16px 0;
    border-top: 1px solid rgba(31, 122, 85, 0.14);
    border-left: 0;
  }

  .biology-exam-assessment li:first-child {
    border-top: 0;
  }
}

@media (max-width: 1120px) and (min-width: 861px) {
  .biology-exam-level-flow .biology-exam-step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .biology-exam-level-grid {
    grid-template-columns: 1fr;
  }

  .biology-exam-level-tabs {
    gap: 5px;
    padding: 7px;
  }

  .biology-exam-level-tabs button {
    padding-inline: 8px;
    font-size: 0.92rem;
  }

  .biology-exam-level-panel {
    padding: 20px 16px;
  }

  .biology-exam-level-facts {
    padding-inline: 14px;
  }

  .biology-exam-level-facts > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .biology-exam-level-grid article {
    min-height: 0;
  }

  .biology-exam-level-grid dl > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

.biology-panel {
  padding: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(213, 229, 222, 0.86);
  border-radius: var(--radius-card);
  box-shadow: 0 14px 34px rgba(16, 41, 39, 0.08);
}

.biology-panel h2 {
  margin-bottom: 12px;
  font-size: 1.55rem;
}

.biology-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.biology-placeholder-card {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 253, 250, 0.82)),
    rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(213, 229, 222, 0.86);
  border-radius: var(--radius-card);
  box-shadow: 0 14px 34px rgba(16, 41, 39, 0.08);
}

.biology-placeholder-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1.35rem;
}

.biology-placeholder-card p {
  margin: 0 0 18px;
  color: var(--ink-soft);
}

.biology-placeholder-card .card-button,
.biology-disabled-button {
  align-self: flex-start;
  margin-top: auto;
}

.biology-resource-grid {
  margin-top: 30px;
}

.biology-resource-card {
  min-height: 220px;
}

.biology-materials-grid {
  margin-top: 30px;
}

.biology-materials-card {
  color: inherit;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.biology-materials-card:hover,
.biology-materials-card:focus-visible {
  border-color: rgba(31, 122, 85, 0.3);
  box-shadow: 0 18px 40px rgba(16, 41, 39, 0.12);
  transform: translateY(-3px);
}

.biology-materials-card-action {
  margin-top: auto;
  color: var(--green-dark);
  font-weight: 850;
}

.biology-material-category-group {
  display: grid;
}

.biology-material-item-menu {
  display: grid;
  min-width: 0;
  gap: 1px;
  margin: 1px 0 5px 11px;
  padding-left: 7px;
  border-left: 1px solid rgba(31, 122, 85, 0.22);
}

.biology-material-item-link {
  display: block;
  min-width: 0;
  padding: 3px 5px;
  overflow-wrap: anywhere;
  color: #526963;
  border-radius: 6px;
  font-size: 0.66rem;
  font-weight: 450;
  line-height: 1.25;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.biology-material-item-link:hover,
.biology-material-item-link:focus-visible {
  color: var(--green-dark);
  background: rgba(229, 241, 235, 0.72);
}

.biology-material-item-link:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.biology-material-item-link.is-active {
  color: #153f31;
  background: #e5f0ea;
  box-shadow: inset 2px 0 0 #277157;
  font-weight: 650;
}

.biology-course-menu .biology-material-item-link,
.biology-sidebar .biology-material-item-link,
.biology-mobile-menu .biology-material-item-link {
  padding: 3px 5px;
  font-size: 0.8rem;
  font-weight: 450;
  line-height: 1.25;
}

.biology-game-library {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.biology-game-library-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "main action"
    "meta action";
  gap: 17px 28px;
  align-items: center;
  padding: 20px 22px 18px;
  overflow: hidden;
  color: inherit;
  background:
    linear-gradient(120deg, rgba(231, 243, 237, 0.96), rgba(250, 252, 251, 0.96) 72%),
    #f5faf7;
  border: 1px solid rgba(40, 105, 82, 0.22);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(16, 41, 39, 0.07);
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.biology-game-library-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, #277157, #3e7d92, #d89a38);
}

.biology-game-library-card:hover,
.biology-game-library-card:focus-visible {
  background:
    linear-gradient(120deg, rgba(222, 239, 230, 0.98), rgba(250, 252, 251, 0.98) 74%),
    #f5faf7;
  border-color: rgba(40, 105, 82, 0.42);
  box-shadow: 0 12px 28px rgba(16, 41, 39, 0.11);
}

.biology-game-library-card:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.biology-game-card-main {
  grid-area: main;
  min-width: 0;
}

.biology-game-card-kind {
  display: block;
  margin-bottom: 5px;
  color: #37695a;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.biology-game-library-card h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 1.5rem;
}

.biology-game-library-card p {
  max-width: 560px;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.48;
}

.biology-game-card-meta {
  grid-area: meta;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  gap: 14px 28px;
  margin: 0;
  padding-top: 13px;
  border-top: 1px solid rgba(40, 105, 82, 0.16);
}

.biology-game-card-meta div {
  min-width: 0;
}

.biology-game-card-meta dt {
  margin-bottom: 2px;
  color: #6a7d77;
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
}

.biology-game-card-meta dd {
  margin: 0;
  color: #29483f;
  font-size: 0.9rem;
  font-weight: 750;
}

.biology-game-card-action {
  grid-area: action;
  width: fit-content;
  padding: 9px 14px;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(40, 105, 82, 0.24);
  border-radius: 6px;
  font-weight: 850;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .biology-game-library-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "main"
      "meta"
      "action";
    gap: 14px;
    padding: 19px;
  }

  .biology-game-card-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
  }

  .biology-game-card-action {
    justify-self: start;
  }
}

.biology-subtopic-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.biology-subtopic-card {
  min-height: 150px;
}

.biology-intro-goals {
  margin-top: 18px;
  padding: 16px;
  background: rgba(247, 252, 249, 0.86);
  border: 1px solid rgba(213, 229, 222, 0.86);
  border-radius: var(--radius-card);
}

.biology-intro-goals h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.08rem;
}

.biology-lars-quote {
  margin: 22px 0 0;
  padding: 18px 20px;
  background: rgba(255, 253, 247, 0.9);
  border: 1px solid rgba(229, 213, 171, 0.78);
  border-radius: var(--radius-card);
}

.biology-lars-quote blockquote {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 820;
  line-height: 1.55;
}

.biology-lars-quote figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 820;
}

.biology-lars-inline-quote {
  position: relative;
  float: right;
  width: min(258px, 38%);
  margin: 2px 0 18px 30px;
  padding: 0;
  text-align: left;
}

.biology-lars-inline-quote img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(190px, 78%);
  height: auto;
  margin: 10px auto 0;
}

.biology-lars-inline-quote figcaption {
  position: relative;
  z-index: 2;
  padding: 15px 16px 13px;
  background: rgba(255, 253, 247, 0.96);
  border: 1px solid rgba(229, 213, 171, 0.82);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(71, 61, 35, 0.08);
}

.biology-lars-inline-quote figcaption::after {
  position: absolute;
  right: 31%;
  bottom: -9px;
  width: 17px;
  height: 17px;
  content: "";
  background: rgba(255, 253, 247, 0.96);
  border-right: 1px solid rgba(229, 213, 171, 0.82);
  border-bottom: 1px solid rgba(229, 213, 171, 0.82);
  transform: rotate(45deg);
}

.biology-lars-inline-quote blockquote {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 850;
  line-height: 1.48;
}

.biology-lars-inline-quote figcaption span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 820;
}

.biology-lars-fact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 54px);
  align-items: center;
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid rgba(31, 122, 85, 0.14);
}

.biology-lars-fact-copy p {
  max-width: none;
}

.biology-lars-fact-copy {
  grid-column: 2;
  grid-row: 1;
}

.biology-lars-fact-copy p:first-child {
  margin-top: 0;
}

.biology-overview-hero .biology-lars-inline-quote {
  display: flex;
  flex-direction: column;
  float: none;
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  margin: 0;
}

.biology-overview-hero .biology-lars-inline-quote img {
  width: 100%;
  max-width: 340px;
  margin: 14px auto 0;
  filter: drop-shadow(0 20px 18px rgba(10, 37, 42, 0.24));
}

.biology-overview-hero .biology-lars-inline-quote figcaption {
  padding: 18px 20px 16px;
  box-shadow: 0 16px 34px rgba(71, 61, 35, 0.13);
}

.biology-overview-hero .biology-lars-inline-quote blockquote {
  font-size: 0.96rem;
  font-weight: 750;
  line-height: 1.55;
}

.biology-topic-hero-shot {
  margin: 24px 0 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(213, 229, 222, 0.9);
  border-radius: var(--radius-card);
  box-shadow: 0 18px 44px rgba(16, 41, 39, 0.12);
}

.biology-topic-hero-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.biology-topic-figure-block {
  clear: both;
  margin: 0;
}

.biology-topic-figure {
  margin-top: 24px;
}

.biology-figure-explanation p {
  margin: 0 0 12px;
  color: var(--ink-soft);
  line-height: 1.68;
}

.biology-figure-explanation {
  max-width: 860px;
  margin-top: 20px;
  padding: 0 2px;
}

.biology-disabled-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  color: var(--muted);
  background: rgba(238, 247, 242, 0.78);
  border: 1px solid rgba(213, 229, 222, 0.88);
  border-radius: var(--radius);
  font-weight: 850;
}

.biology-goal-list,
.chapter-goal-list,
.biology-check-list,
.biology-task-list,
.biology-example-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.biology-goal-list li,
.chapter-goal-list li,
.biology-check-list li,
.biology-task-list li,
.biology-example-list li {
  position: relative;
  padding-left: 24px;
  color: var(--ink-soft);
}

.biology-goal-list li::before,
.chapter-goal-list li::before,
.biology-check-list li::before,
.biology-task-list li::before,
.biology-example-list li::before {
  position: absolute;
  top: 0.62em;
  left: 2px;
  width: 9px;
  height: 9px;
  content: "";
  background: var(--amber);
  border-radius: 50%;
}

.biology-chapter-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.biology-chapter-link {
  --course-accent: var(--green);
  --course-accent-dark: var(--green-dark);
  --course-tint: rgba(223, 242, 232, 0.68);
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 74px;
  padding: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(213, 229, 222, 0.86);
  border-radius: var(--radius-card);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.biology-chapter-link:hover,
.biology-chapter-link:focus-visible {
  background: var(--course-tint);
  border-color: rgba(31, 122, 85, 0.24);
  box-shadow: 0 12px 26px rgba(16, 41, 39, 0.1);
  transform: translateY(-2px);
}

.biology-chapter-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fffdf7;
  background: var(--course-accent-dark);
  border-radius: 50%;
  font-weight: 900;
}

.biology-chapter-link strong {
  display: block;
  color: var(--ink);
  line-height: 1.2;
}

.biology-chapter-copy {
  display: block;
  min-width: 0;
}

.biology-chapter-summary {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.92rem;
}

.biology-sidebar {
  position: sticky;
  top: 104px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(213, 229, 222, 0.86);
  border-radius: var(--radius-card);
  box-shadow: 0 14px 34px rgba(16, 41, 39, 0.09);
}

.biology-sidebar-title {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
}

.biology-course-menu nav,
.biology-sidebar nav,
.biology-mobile-menu nav {
  display: grid;
  gap: 5px;
}

.biology-course-menu a,
.biology-course-menu button,
.biology-sidebar a,
.biology-mobile-menu a,
.biology-mobile-menu button {
  display: block;
  padding: 9px 10px;
  color: var(--ink-soft);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 760;
  line-height: 1.25;
  text-decoration: none;
}

.biology-course-menu button,
.biology-mobile-menu button {
  width: 100%;
  appearance: none;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.biology-course-menu-link {
  --course-accent: var(--green);
  --course-accent-dark: var(--green-dark);
  --course-tint: rgba(223, 242, 232, 0.68);
  padding-top: 7px !important;
  padding-bottom: 7px !important;
  border-left: 4px solid transparent;
}

.biology-course-menu-link span,
.biology-course-menu-link small {
  display: block;
}

.biology-course-menu-link span {
  color: inherit;
  font-weight: 850;
}

.biology-core-toggle {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.biology-core-toggle.is-parent-active {
  color: var(--green-dark);
  background: rgba(223, 242, 232, 0.72);
}

.biology-core-menu > summary,
.biology-materials-menu > summary {
  list-style: none;
}

.biology-core-menu > summary::-webkit-details-marker,
.biology-materials-menu > summary::-webkit-details-marker {
  display: none;
}

.biology-core-menu > summary::marker,
.biology-materials-menu > summary::marker {
  content: "";
}

.biology-core-area-menu > summary {
  list-style: none;
}

.biology-core-area-menu > summary::-webkit-details-marker {
  display: none;
}

.biology-core-area-menu > summary::marker {
  content: "";
}

.biology-core-area-toggle {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body[data-current-page="biologi"] .biology-core-area-toggle span {
  font-weight: 600;
}

body[data-current-page="biologi"] .biology-core-area-toggle.is-parent-active {
  color: #245b45;
  background: #f3f7f4;
  border-left-color: var(--amber);
}

.biology-core-menu .biology-core-levels-menu {
  margin-top: 3px;
}

.biology-core-levels-menu {
  display: grid;
  gap: 3px;
  margin: 3px 0 5px 12px;
  padding: 5px 0 3px 10px;
  border-left: 2px solid rgba(31, 122, 85, 0.22);
}

.biology-core-levels-menu[hidden] {
  display: none;
}

.biology-core-levels-menu .biology-course-menu-link {
  padding: 7px 9px !important;
  font-size: 0.9rem;
}

.biology-course-menu-link small {
  display: none;
}

.biology-course-menu-link:hover,
.biology-course-menu-link:focus-visible {
  border-left-color: var(--course-accent);
}

.biology-course-menu-link.is-active {
  border-left-color: var(--amber);
}

.biology-course-menu-link.is-active small {
  color: rgba(255, 253, 247, 0.82);
}

.biology-topic-menu-group {
  display: grid;
  gap: 4px;
}

.biology-topic-menu-link.is-parent-active {
  color: var(--green-dark);
  background: rgba(223, 242, 232, 0.72);
}

.biology-core-area-menu-group {
  display: grid;
  gap: 3px;
}

.biology-core-area-menu-group > .biology-course-menu-link.is-parent-active {
  color: var(--green-dark);
  background: rgba(223, 242, 232, 0.72);
  border-left-color: var(--amber);
}

.biology-core-area-submenu {
  display: grid;
  gap: 4px;
  margin: 0 0 7px 14px;
  padding: 4px 0 3px 11px;
  border-left: 2px solid rgba(216, 154, 56, 0.42);
}

.biology-course-menu .biology-core-area-subpage-link,
.biology-mobile-menu .biology-core-area-subpage-link {
  padding: 7px 9px;
  color: rgba(47, 82, 77, 0.88);
  font-size: 0.84rem;
  font-weight: 720;
}

.biology-subtopic-menu {
  display: grid;
  gap: 3px;
  margin: 0 0 6px 12px;
  padding: 5px 0 3px 10px;
  border-left: 2px solid rgba(31, 122, 85, 0.22);
}

.biology-course-menu .biology-subtopic-link,
.biology-mobile-menu .biology-subtopic-link {
  padding: 7px 9px;
  color: rgba(47, 82, 77, 0.86);
  font-size: 0.88rem;
  font-weight: 720;
}

.biology-course-menu a:hover,
.biology-course-menu a:focus-visible,
.biology-course-menu button:hover,
.biology-course-menu button:focus-visible,
.biology-sidebar a:hover,
.biology-sidebar a:focus-visible,
.biology-mobile-menu a:hover,
.biology-mobile-menu a:focus-visible,
.biology-mobile-menu button:hover,
.biology-mobile-menu button:focus-visible {
  color: var(--green-dark);
  background: rgba(223, 242, 232, 0.72);
}

.biology-course-menu a.is-active,
.biology-sidebar a.is-active,
.biology-mobile-menu a.is-active {
  color: #fffdf7;
  background: linear-gradient(135deg, var(--green-dark), var(--blue-dark));
}

.biology-mobile-menu {
  display: none;
  margin: 10px 0 18px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(213, 229, 222, 0.86);
  border-radius: var(--radius-card);
}

.biology-mobile-menu summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 7px 8px;
  cursor: pointer;
  color: var(--green-dark);
  font-weight: 900;
}

.biology-mobile-menu a {
  display: flex;
  min-height: 44px;
  align-items: center;
}

.biology-mobile-menu button {
  min-height: 44px;
}

.biology-mobile-menu nav {
  margin-top: 10px;
}

.chapter-document {
  width: 100%;
  min-width: 0;
  padding: clamp(24px, 4vw, 42px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 253, 250, 0.9)),
    rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(213, 229, 222, 0.88);
  border-radius: var(--radius-card);
  box-shadow: 0 18px 46px rgba(13, 52, 49, 0.11);
}

.chapter-document header {
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(31, 122, 85, 0.14);
}

.chapter-section {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid rgba(31, 122, 85, 0.13);
}

.chapter-section h2 {
  margin-bottom: 12px;
  font-size: 1.6rem;
}

.chapter-section p {
  margin: 0 0 14px;
  color: var(--ink-soft);
}

.biology-figure {
  margin: 18px 0 0;
}

.biology-figure svg {
  display: block;
  width: 100%;
  height: auto;
}

.biology-term-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.biology-term {
  padding: 12px 12px 12px 14px;
  background: rgba(246, 250, 247, 0.86);
  border: 1px solid rgba(213, 229, 222, 0.78);
  border-left: 5px solid var(--green);
  border-radius: var(--radius-card);
}

.biology-term dt {
  margin: 0 0 4px;
  color: var(--ink);
  font-weight: 900;
}

.biology-term dd {
  margin: 0;
  color: var(--ink-soft);
}

.biology-chapter-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.biology-prev-next {
  display: grid;
  gap: 3px;
  min-height: 70px;
  padding: 12px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(213, 229, 222, 0.86);
  border-radius: var(--radius-card);
  text-decoration: none;
}

.biology-prev-next:hover,
.biology-prev-next:focus-visible {
  color: var(--green-dark);
  border-color: rgba(31, 122, 85, 0.24);
  box-shadow: 0 12px 26px rgba(16, 41, 39, 0.09);
}

.biology-prev-next[aria-disabled="true"] {
  color: var(--muted);
  background: rgba(238, 247, 242, 0.5);
  pointer-events: none;
  opacity: 0.68;
}

.biology-prev-next span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.biology-prev-next strong {
  line-height: 1.25;
}

/* Ordbog */
.dictionary-page {
  padding-bottom: 72px;
}

.dictionary-intro {
  display: grid;
  justify-items: start;
  gap: 12px;
  max-width: 860px;
}

.dictionary-intro p {
  max-width: 680px;
  font-size: 1.08rem;
  line-height: 1.62;
}

.dictionary-tools {
  position: relative;
  display: grid;
  gap: 13px;
  margin: 28px 0 28px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(245, 250, 247, 0.62)),
    rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(213, 229, 222, 0.6);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(16, 41, 39, 0.055);
  backdrop-filter: blur(18px);
}

body[data-current-page="ordbog"] .dictionary-tools {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(246, 242, 253, 0.54)),
    rgba(255, 255, 255, 0.6);
  border-color: rgba(211, 201, 235, 0.58);
}

.dictionary-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 5px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(213, 229, 222, 0.78);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.dictionary-search-row:focus-within {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(31, 122, 85, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 0 0 4px rgba(31, 122, 85, 0.08);
}

.dictionary-search-field {
  position: relative;
  display: grid;
  color: var(--ink-soft);
  font-weight: 850;
}

.dictionary-search-field span {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.dictionary-search-field::before {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 16px;
  height: 16px;
  content: "";
  border: 2px solid rgba(47, 82, 77, 0.56);
  border-radius: 50%;
  transform: translateY(-55%);
  pointer-events: none;
}

.dictionary-search-field::after {
  position: absolute;
  top: calc(50% + 6px);
  left: 28px;
  width: 8px;
  height: 2px;
  content: "";
  background: rgba(47, 82, 77, 0.56);
  border-radius: 999px;
  transform: rotate(45deg);
  transform-origin: left center;
  pointer-events: none;
}

.dictionary-search-field input {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px 9px 42px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 12px;
  outline: none;
  font-size: 0.96rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.dictionary-search-field input:focus {
  background: transparent;
  box-shadow: none;
}

.dictionary-clear-button,
.dictionary-chip,
.dictionary-letter-button {
  min-height: 34px;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(213, 229, 222, 0.78);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 850;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.dictionary-clear-button {
  min-width: 58px;
  min-height: 34px;
  padding: 7px 12px;
  color: rgba(18, 52, 47, 0.76);
  background: rgba(246, 250, 247, 0.82);
  font-size: 0.82rem;
}

.dictionary-filter-group {
  display: grid;
  gap: 7px;
  min-width: min(100%, 430px);
  margin: 0;
  padding: 0;
  border: 0;
}

.dictionary-filter-group legend {
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-weight: 850;
}

.dictionary-letter-button {
  min-width: 34px;
  min-height: 34px;
}

.dictionary-subject-tabs {
  width: auto;
  min-width: 0;
}

.dictionary-subject-tabs legend {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.dictionary-subject-tabs .dictionary-filter-options {
  gap: 7px;
  align-items: center;
}

.dictionary-topic-group {
  width: 100%;
  margin-top: 0;
  padding-top: 0;
  animation: dictionaryTopicReveal 220ms ease both;
}

.dictionary-topic-group[hidden] {
  display: none;
}

.dictionary-topic-group legend {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.dictionary-topic-options.dictionary-filter-options {
  display: flex;
  gap: 6px;
  align-items: center;
}

.dictionary-filter-options,
.dictionary-alphabet {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dictionary-alphabet {
  gap: 5px;
  padding-top: 2px;
}

.dictionary-chip {
  padding: 7px 11px;
}

.dictionary-subject-tab {
  --subject-color: #1f9b62;
  --subject-strong: #126941;
  --subject-soft: rgba(224, 248, 233, 0.94);
  --subject-line: rgba(31, 155, 98, 0.24);
  --subject-shadow: rgba(20, 91, 63, 0.14);
  position: relative;
  display: inline-flex;
  min-width: 0;
  min-height: 36px;
  flex: 0 1 auto;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  color: var(--subject-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), var(--subject-soft)),
    #fff;
  border-color: var(--subject-line);
  border-radius: 999px;
  box-shadow: 0 7px 18px var(--subject-shadow);
  font-size: 0.86rem;
  line-height: 1;
  white-space: nowrap;
}

.dictionary-subject-tab::after {
  position: absolute;
  inset: auto 11px 5px;
  height: 3px;
  content: "";
  background: var(--subject-color);
  border-radius: 999px;
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 180ms ease, transform 180ms ease;
}

.dictionary-subject-tab[data-dictionary-filter="naturgeografi"] {
  --subject-color: #177da0;
  --subject-strong: #0f536f;
  --subject-soft: rgba(224, 244, 249, 0.94);
  --subject-line: rgba(23, 125, 160, 0.24);
  --subject-shadow: rgba(15, 83, 111, 0.13);
}

.dictionary-subject-tab[data-dictionary-filter="videnskabsteori"] {
  --subject-color: #7c5cc4;
  --subject-strong: #4d3a82;
  --subject-soft: rgba(238, 233, 252, 0.94);
  --subject-line: rgba(124, 92, 196, 0.26);
  --subject-shadow: rgba(77, 58, 130, 0.13);
}

.dictionary-topic-chip {
  position: relative;
  display: inline-flex;
  min-height: 30px;
  flex: 0 1 auto;
  align-items: center;
  gap: 0;
  padding: 6px 10px;
  color: var(--topic-ink, var(--green-dark));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), var(--topic-soft, rgba(223, 242, 232, 0.62))),
    #fff;
  border-color: rgba(16, 41, 39, 0.09);
  border-radius: 999px;
  box-shadow:
    inset 0 -2px 0 var(--topic-color, var(--green-dark)),
    0 5px 14px rgba(16, 41, 39, 0.045);
  font-size: 0.8rem;
  text-align: left;
}

.dictionary-topic-chip::before {
  display: none;
}

.dictionary-topic-chip span {
  display: block;
  font-weight: 850;
  line-height: 1.05;
}

.dictionary-letter-button {
  min-width: 34px;
  min-height: 34px;
  padding: 5px 7px;
  border-radius: 10px;
  font-size: 0.8rem;
}

.dictionary-clear-button:hover,
.dictionary-clear-button:focus-visible,
.dictionary-chip:hover,
.dictionary-chip:focus-visible,
.dictionary-letter-button:hover,
.dictionary-letter-button:focus-visible {
  border-color: rgba(31, 122, 85, 0.34);
  box-shadow: 0 9px 20px rgba(16, 41, 39, 0.08);
  transform: translateY(-1px);
}

.dictionary-chip.is-active,
.dictionary-letter-button.is-active {
  color: #fffdf7;
  background: linear-gradient(135deg, var(--green-dark), var(--blue-dark));
  border-color: transparent;
}

.dictionary-subject-tab:hover,
.dictionary-subject-tab:focus-visible {
  border-color: var(--subject-line);
  box-shadow: 0 10px 22px var(--subject-shadow);
  transform: translateY(-1px);
}

.dictionary-subject-tab.is-active {
  color: #fffdf7;
  background: linear-gradient(135deg, var(--subject-color), var(--subject-strong));
  border-color: transparent;
  box-shadow: 0 10px 24px var(--subject-shadow);
  transform: none;
}

.dictionary-subject-tab.is-active::after {
  opacity: 1;
  background: rgba(255, 255, 255, 0.82);
  transform: scaleX(1);
}

.dictionary-subject-tab.is-active:hover,
.dictionary-subject-tab.is-active:focus-visible {
  transform: none;
}

.dictionary-topic-chip.is-active {
  color: #fffdf7;
  background: linear-gradient(135deg, var(--topic-color, var(--green-dark)), var(--topic-strong, var(--blue-dark)));
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(16, 41, 39, 0.12);
}

.dictionary-topic-chip.is-active::before {
  display: none;
}

.dictionary-topic-chip[data-dictionary-topic="cellebiologi"],
.dictionary-topic-tag[data-dictionary-topic-tag="cellebiologi"] {
  --topic-color: #1f7a55;
  --topic-strong: #14543f;
  --topic-soft: #dff2e8;
  --topic-ink: #15563b;
  --topic-muted: #3f6f5d;
}

.dictionary-topic-chip[data-dictionary-topic="mikrobiologi"],
.dictionary-topic-tag[data-dictionary-topic-tag="mikrobiologi"] {
  --topic-color: #0f7f78;
  --topic-strong: #0e5551;
  --topic-soft: #d8f1ee;
  --topic-ink: #115d58;
  --topic-muted: #40746f;
}

.dictionary-topic-chip[data-dictionary-topic="makromolekyler"],
.dictionary-topic-tag[data-dictionary-topic-tag="makromolekyler"] {
  --topic-color: #8a5a18;
  --topic-strong: #5f4314;
  --topic-soft: #fff1d6;
  --topic-ink: #674411;
  --topic-muted: #7a6140;
}

.dictionary-topic-chip[data-dictionary-topic="enzymer"],
.dictionary-topic-tag[data-dictionary-topic-tag="enzymer"] {
  --topic-color: #b75c34;
  --topic-strong: #823f25;
  --topic-soft: #ffe5d8;
  --topic-ink: #854021;
  --topic-muted: #8d604c;
}

.dictionary-topic-chip[data-dictionary-topic="biokemiske_processer"],
.dictionary-topic-tag[data-dictionary-topic-tag="biokemiske_processer"] {
  --topic-color: #bd8b1f;
  --topic-strong: #856014;
  --topic-soft: #fff4cf;
  --topic-ink: #765610;
  --topic-muted: #806b37;
}

.dictionary-topic-chip[data-dictionary-topic="genetik"],
.dictionary-topic-tag[data-dictionary-topic-tag="genetik"] {
  --topic-color: #6f5bb8;
  --topic-strong: #4b3d86;
  --topic-soft: #ece7ff;
  --topic-ink: #4d3d86;
  --topic-muted: #62598b;
}

.dictionary-topic-chip[data-dictionary-topic="molekylaerbiologi"],
.dictionary-topic-tag[data-dictionary-topic-tag="molekylaerbiologi"] {
  --topic-color: #9461a8;
  --topic-strong: #653f77;
  --topic-soft: #f2e3f7;
  --topic-ink: #663b78;
  --topic-muted: #765983;
}

.dictionary-topic-chip[data-dictionary-topic="evolutionsbiologi"],
.dictionary-topic-tag[data-dictionary-topic-tag="evolutionsbiologi"] {
  --topic-color: #547337;
  --topic-strong: #385125;
  --topic-soft: #e8f2dc;
  --topic-ink: #3f5a2b;
  --topic-muted: #5e704f;
}

.dictionary-topic-chip[data-dictionary-topic="fysiologi"],
.dictionary-topic-tag[data-dictionary-topic-tag="fysiologi"] {
  --topic-color: #b24f6f;
  --topic-strong: #7c334c;
  --topic-soft: #ffe1eb;
  --topic-ink: #81384f;
  --topic-muted: #8d5b6b;
}

.dictionary-topic-chip[data-dictionary-topic="populationsbiologi"],
.dictionary-topic-tag[data-dictionary-topic-tag="populationsbiologi"] {
  --topic-color: #2b7a8d;
  --topic-strong: #1b5362;
  --topic-soft: #dff1f5;
  --topic-ink: #1d5f70;
  --topic-muted: #4d717a;
}

.dictionary-topic-chip[data-dictionary-topic="oekologi"],
.dictionary-topic-tag[data-dictionary-topic-tag="oekologi"] {
  --topic-color: #3f7a2f;
  --topic-strong: #29551f;
  --topic-soft: #e4f3dc;
  --topic-ink: #315f26;
  --topic-muted: #58764f;
}

.dictionary-topic-chip[data-dictionary-topic="eksperimentelle_metoder"],
.dictionary-topic-tag[data-dictionary-topic-tag="eksperimentelle_metoder"] {
  --topic-color: #176b8e;
  --topic-strong: #103e5c;
  --topic-soft: #dceef6;
  --topic-ink: #175a75;
  --topic-muted: #4f7180;
}

.dictionary-topic-chip[data-dictionary-topic="klima"],
.dictionary-topic-tag[data-dictionary-topic-tag="klima"] {
  --topic-color: #2f7fb8;
  --topic-strong: #1f557b;
  --topic-soft: #dceffd;
  --topic-ink: #1e5e87;
  --topic-muted: #52768d;
}

.dictionary-topic-chip[data-dictionary-topic="vejr_atmosfaere"],
.dictionary-topic-tag[data-dictionary-topic-tag="vejr_atmosfaere"] {
  --topic-color: #1f9ab0;
  --topic-strong: #146777;
  --topic-soft: #d9f3f6;
  --topic-ink: #176f80;
  --topic-muted: #4c7c84;
}

.dictionary-topic-chip[data-dictionary-topic="vand_hydrologi"],
.dictionary-topic-tag[data-dictionary-topic-tag="vand_hydrologi"] {
  --topic-color: #2674c4;
  --topic-strong: #174f88;
  --topic-soft: #deedff;
  --topic-ink: #1d5c98;
  --topic-muted: #527394;
}

.dictionary-topic-chip[data-dictionary-topic="geologi_pladetektonik"],
.dictionary-topic-tag[data-dictionary-topic-tag="geologi_pladetektonik"] {
  --topic-color: #8a6642;
  --topic-strong: #60462e;
  --topic-soft: #f2e7da;
  --topic-ink: #664a2f;
  --topic-muted: #786654;
}

.dictionary-topic-chip[data-dictionary-topic="landskaber_jordbund"],
.dictionary-topic-tag[data-dictionary-topic-tag="landskaber_jordbund"] {
  --topic-color: #6d7d3d;
  --topic-strong: #465629;
  --topic-soft: #eaf0db;
  --topic-ink: #506029;
  --topic-muted: #6a7450;
}

.dictionary-topic-chip[data-dictionary-topic="naturkatastrofer"],
.dictionary-topic-tag[data-dictionary-topic-tag="naturkatastrofer"] {
  --topic-color: #b85d3b;
  --topic-strong: #7c3f28;
  --topic-soft: #ffe4d8;
  --topic-ink: #824126;
  --topic-muted: #8c634f;
}

.dictionary-topic-chip[data-dictionary-topic="energi_ressourcer"],
.dictionary-topic-tag[data-dictionary-topic-tag="energi_ressourcer"] {
  --topic-color: #c08a21;
  --topic-strong: #7d5b17;
  --topic-soft: #fff1cf;
  --topic-ink: #76540f;
  --topic-muted: #806a36;
}

.dictionary-topic-chip[data-dictionary-topic="baeredygtighed_miljoe"],
.dictionary-topic-tag[data-dictionary-topic-tag="baeredygtighed_miljoe"] {
  --topic-color: #33845c;
  --topic-strong: #225b40;
  --topic-soft: #e0f2e9;
  --topic-ink: #276343;
  --topic-muted: #577767;
}

.dictionary-topic-chip[data-dictionary-topic="byer_befolkning"],
.dictionary-topic-tag[data-dictionary-topic-tag="byer_befolkning"] {
  --topic-color: #7b6db4;
  --topic-strong: #51477d;
  --topic-soft: #ece9fb;
  --topic-ink: #554b82;
  --topic-muted: #6c6687;
}

.dictionary-topic-chip[data-dictionary-topic="globalisering"],
.dictionary-topic-tag[data-dictionary-topic-tag="globalisering"] {
  --topic-color: #9a5a88;
  --topic-strong: #693d5e;
  --topic-soft: #f5e3f0;
  --topic-ink: #704063;
  --topic-muted: #806378;
}

.dictionary-topic-chip[data-dictionary-topic="feltarbejde_gis"],
.dictionary-topic-tag[data-dictionary-topic-tag="feltarbejde_gis"] {
  --topic-color: #4f7892;
  --topic-strong: #344f62;
  --topic-soft: #e0edf3;
  --topic-ink: #3a5d72;
  --topic-muted: #607680;
}

.dictionary-results {
  display: grid;
  gap: 22px;
}

.dictionary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.dictionary-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 0;
  padding: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(213, 229, 222, 0.92);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

body[data-current-page="ordbog"] .dictionary-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 245, 253, 0.72)),
    rgba(255, 255, 255, 0.88);
  border-color: rgba(215, 206, 238, 0.68);
}

.dictionary-card::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, #2fba70, #177d4a);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  pointer-events: none;
}

.dictionary-card[data-subject="naturgeografi"]::before,
.dictionary-card[data-subjects~="naturgeografi"]::before {
  background: linear-gradient(90deg, #38a8dc, #176b8e);
}

.dictionary-card[data-subject="videnskabsteori"]::before,
.dictionary-card[data-subjects~="videnskabsteori"]::before {
  background: linear-gradient(90deg, #8d6be2, #4d3a82);
}

.dictionary-card[data-subjects~="biologi"][data-subjects~="naturgeografi"]::before {
  height: 8px;
  background: linear-gradient(to bottom, #2fba70 0 4px, #176b8e 4px 8px);
}

.dictionary-card[data-subjects~="biologi"][data-subjects~="videnskabsteori"]::before {
  height: 8px;
  background: linear-gradient(to bottom, #2fba70 0 4px, #6b4fba 4px 8px);
}

.dictionary-card[data-subjects~="naturgeografi"][data-subjects~="videnskabsteori"]::before {
  height: 8px;
  background: linear-gradient(to bottom, #176b8e 0 4px, #6b4fba 4px 8px);
}

.dictionary-card[data-subjects~="biologi"][data-subjects~="naturgeografi"][data-subjects~="videnskabsteori"]::before {
  height: 12px;
  background: linear-gradient(to bottom, #2fba70 0 4px, #176b8e 4px 8px, #6b4fba 8px 12px);
}

.dictionary-card[hidden] {
  display: none;
}

.dictionary-card:hover {
  border-color: rgba(31, 122, 85, 0.18);
  box-shadow: 0 18px 44px rgba(13, 52, 49, 0.12);
  transform: translateY(-3px);
}

.dictionary-card:focus-visible {
  border-color: rgba(31, 122, 85, 0.48);
  box-shadow: 0 0 0 4px rgba(31, 122, 85, 0.13), 0 18px 44px rgba(13, 52, 49, 0.12);
  outline: 0;
}

.dictionary-card.is-jump-target {
  border-color: rgba(31, 122, 85, 0.5);
  box-shadow: 0 0 0 5px rgba(31, 122, 85, 0.14), 0 22px 52px rgba(13, 52, 49, 0.16);
}

.dictionary-dialog-topic-tags,
.dictionary-related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.dictionary-related-groups {
  display: grid;
  gap: 10px;
}

.dictionary-related-group {
  display: grid;
  gap: 7px;
  padding: 10px 12px;
  background: rgba(246, 250, 247, 0.72);
  border: 1px solid rgba(213, 229, 222, 0.74);
  border-radius: 12px;
}

.dictionary-related-group-label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dictionary-topic-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  color: var(--topic-ink, #5f4513);
  background: var(--topic-soft, #fff5e4);
  border: 1px solid rgba(16, 41, 39, 0.08);
  border-radius: 999px;
  box-shadow: inset 3px 0 0 var(--topic-color, var(--amber));
  font-size: 0.74rem;
  font-weight: 850;
}

.dictionary-card h2 {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 7px;
  text-align: center;
  font-size: 1.42rem;
}

.dictionary-card h2::after {
  width: min(140px, 52%);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(16, 82, 70, 0.34), transparent);
  border-radius: 999px;
}

.dictionary-card > p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.48;
  text-align: center;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.dictionary-card-teaser-line {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-width: 0;
}

.dictionary-card-teaser-icon {
  --teaser-color: var(--green-dark);

  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  margin-top: 1px;
  background: rgba(31, 122, 85, 0.08);
  border: 1px solid rgba(31, 122, 85, 0.13);
  border-radius: 999px;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.64);
}

.dictionary-card-teaser-icon::before,
.dictionary-card-teaser-icon::after {
  position: absolute;
  content: "";
}

.dictionary-card-teaser-icon[data-teaser-icon="kort-sagt"]::before {
  top: 7px;
  left: 6px;
  width: 10px;
  height: 2px;
  background: var(--teaser-color);
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--teaser-color);
}

.dictionary-card-teaser-icon[data-teaser-icon="eksempel"]::before {
  top: 5px;
  left: 5px;
  width: 10px;
  height: 10px;
  background: transparent;
  border: 2px solid var(--teaser-color);
  border-radius: 999px;
}

.dictionary-card-teaser-icon[data-teaser-icon="eksempel"]::after {
  top: 9px;
  left: 9px;
  width: 4px;
  height: 4px;
  background: var(--teaser-color);
  border-radius: 999px;
}

.dictionary-card[data-subject="naturgeografi"] .dictionary-card-teaser-icon,
.dictionary-card[data-subjects~="naturgeografi"] .dictionary-card-teaser-icon {
  --teaser-color: #0f536f;

  background: rgba(56, 168, 220, 0.1);
  border-color: rgba(23, 107, 142, 0.12);
}

.dictionary-card[data-subject="videnskabsteori"] .dictionary-card-teaser-icon,
.dictionary-card[data-subjects~="videnskabsteori"] .dictionary-card-teaser-icon {
  --teaser-color: #4d3a82;

  background: rgba(141, 107, 226, 0.1);
  border-color: rgba(77, 58, 130, 0.12);
}

.dictionary-card[data-subjects~="biologi"][data-subjects~="naturgeografi"] .dictionary-card-teaser-icon {
  --teaser-color: #12342f;

  background: linear-gradient(90deg, rgba(47, 186, 112, 0.12), rgba(56, 168, 220, 0.12));
  border-color: rgba(22, 105, 92, 0.12);
}

.dictionary-card-teaser-text {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 760;
  line-height: 1.36;
  text-align: left;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.dictionary-card-short .dictionary-card-teaser-text {
  -webkit-line-clamp: 1;
}

.dictionary-card-equation {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 7px 10px;
  color: var(--green-dark);
  background: rgba(255, 248, 235, 0.72);
  border: 1px solid rgba(216, 154, 56, 0.22);
  border-radius: 12px;
}

.dictionary-card-equation-label {
  color: #785514;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.055em;
  line-height: 1.1;
  text-transform: uppercase;
}

.dictionary-card-equation-formula {
  margin: 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.32;
  overflow-wrap: anywhere;
  text-align: center;
}

.dictionary-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
}

.dictionary-card dl div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  align-content: start;
  min-height: 86px;
  padding: 11px 12px;
  background:
    linear-gradient(180deg, rgba(246, 250, 247, 0.88), rgba(255, 255, 255, 0.76)),
    rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(213, 229, 222, 0.78);
  border-radius: 14px;
}

.dictionary-card dt {
  width: fit-content;
  max-width: 100%;
  padding: 3px 7px;
  color: var(--green-dark);
  background: rgba(31, 122, 85, 0.08);
  border: 1px solid rgba(31, 122, 85, 0.1);
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.055em;
  line-height: 1.1;
  text-transform: uppercase;
}

.dictionary-card dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.91rem;
  font-weight: 720;
  line-height: 1.5;
}

.dictionary-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(16, 82, 70, 0.08);
}

.dictionary-card-badges {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  min-width: 0;
}

.dictionary-card .dictionary-topic-tag-compact {
  min-height: 20px;
  padding: 2px 7px;
  box-shadow: none;
  font-size: 0.6rem;
  line-height: 1.1;
}

.dictionary-topic-more {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  color: var(--muted);
  background: rgba(246, 250, 247, 0.78);
  border: 1px solid rgba(16, 41, 39, 0.08);
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 850;
}

.dictionary-card-footer-section {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.dictionary-card-footer-label {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dictionary-related-link {
  min-height: 28px;
  padding: 5px 9px;
  color: var(--green-dark);
  background: rgba(246, 250, 247, 0.94);
  border: 1px solid rgba(31, 122, 85, 0.16);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 850;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.dictionary-related-link:hover,
.dictionary-related-link:focus-visible {
  background: #fff;
  border-color: rgba(31, 122, 85, 0.34);
  box-shadow: 0 10px 22px rgba(16, 41, 39, 0.1);
  outline: 0;
  transform: translateY(-2px);
}

.dictionary-empty {
  margin: 0;
  padding: 18px 20px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  font-weight: 800;
}

.dictionary-more-button {
  justify-self: center;
  min-height: 44px;
  padding: 11px 18px;
  color: #fffdf7;
  background: linear-gradient(135deg, var(--green-dark), var(--blue-dark));
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-shadow: 0 14px 28px rgba(20, 84, 63, 0.18);
  cursor: pointer;
  font-weight: 850;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.dictionary-more-button:hover,
.dictionary-more-button:focus-visible {
  box-shadow: 0 16px 34px rgba(16, 62, 92, 0.2);
  transform: translateY(-2px);
}

body.dictionary-dialog-open {
  overflow: hidden;
}

body.dictionary-dialog-open main {
  z-index: 90;
}

.dictionary-dialog {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(9, 31, 29, 0.42);
  backdrop-filter: blur(10px);
}

.dictionary-dialog[hidden] {
  display: none;
}

.dictionary-dialog-panel {
  position: relative;
  display: grid;
  gap: 18px;
  width: min(100%, 760px);
  max-height: min(82vh, 760px);
  padding: 28px;
  overflow: auto;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 247, 0.94)),
    var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-card);
  box-shadow: 0 28px 90px rgba(8, 31, 29, 0.3);
  outline: 0;
}

.dictionary-dialog-panel::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  content: "";
  background: linear-gradient(90deg, #2fba70, #177d4a);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  pointer-events: none;
}

.dictionary-dialog-panel[data-subjects~="naturgeografi"]::before {
  background: linear-gradient(90deg, #38a8dc, #176b8e);
}

.dictionary-dialog-panel[data-subjects~="videnskabsteori"]::before {
  background: linear-gradient(90deg, #8d6be2, #4d3a82);
}

.dictionary-dialog-panel[data-subjects~="biologi"][data-subjects~="naturgeografi"]::before {
  height: 10px;
  background: linear-gradient(to bottom, #2fba70 0 5px, #176b8e 5px 10px);
}

.dictionary-dialog-panel[data-subjects~="biologi"][data-subjects~="videnskabsteori"]::before {
  height: 10px;
  background: linear-gradient(to bottom, #2fba70 0 5px, #6b4fba 5px 10px);
}

.dictionary-dialog-panel[data-subjects~="naturgeografi"][data-subjects~="videnskabsteori"]::before {
  height: 10px;
  background: linear-gradient(to bottom, #176b8e 0 5px, #6b4fba 5px 10px);
}

.dictionary-dialog-panel[data-subjects~="biologi"][data-subjects~="naturgeografi"][data-subjects~="videnskabsteori"]::before {
  height: 15px;
  background: linear-gradient(to bottom, #2fba70 0 5px, #176b8e 5px 10px, #6b4fba 10px 15px);
}

.dictionary-dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.dictionary-dialog-close span {
  font-size: 1.7rem;
  line-height: 1;
}

.dictionary-dialog-close:hover,
.dictionary-dialog-close:focus-visible {
  border-color: rgba(31, 122, 85, 0.36);
  box-shadow: 0 12px 26px rgba(16, 41, 39, 0.12);
  transform: translateY(-2px);
}

.dictionary-dialog-header {
  display: grid;
  gap: 10px;
  padding-right: 48px;
}

.dictionary-dialog-header h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.25rem);
}

.dictionary-dialog-header p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
  font-weight: 760;
}

.dictionary-dialog-body {
  display: grid;
  gap: 14px;
}

.dictionary-dialog-visual {
  margin: 0;
  overflow: hidden;
  background: rgba(246, 250, 247, 0.92);
  border: 1px solid rgba(213, 229, 222, 0.92);
  border-radius: var(--radius-card);
}

.dictionary-dialog-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.dictionary-dialog-visual svg {
  display: block;
  width: 100%;
  height: auto;
}

.dictionary-dialog-visual svg text {
  font-family: var(--font-display);
}

.dictionary-dialog-visual figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.dictionary-dialog-section {
  padding-top: 14px;
  border-top: 1px solid rgba(213, 229, 222, 0.86);
}

.dictionary-dialog-section h3 {
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 0.96rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dictionary-dialog-section p {
  margin: 0;
  color: var(--ink-soft);
}

.dictionary-equation-section {
  padding: 14px;
  background: rgba(223, 242, 232, 0.58);
  border: 1px solid rgba(31, 122, 85, 0.18);
  border-radius: var(--radius-card);
}

.dictionary-misconception-section {
  padding: 14px 16px;
  background:
    linear-gradient(135deg, rgba(255, 247, 224, 0.9), rgba(255, 255, 255, 0.88)),
    #fff;
  border: 1px solid rgba(207, 149, 43, 0.22);
  border-radius: var(--radius-card);
  box-shadow: inset 4px 0 0 rgba(207, 149, 43, 0.72);
}

.dictionary-misconception-section h3 {
  color: #7a5014;
}

.dictionary-equation-section h3 {
  margin-bottom: 6px;
}

.chemical-equation {
  color: #0e352b;
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  font-weight: 900;
  line-height: 1.55;
}

.dictionary-equation-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.94rem;
}

/* Om siden */
#om-mark {
  position: relative;
  isolation: isolate;
}

#om-mark::before {
  content: none;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr);
  gap: clamp(22px, 3vw, 34px);
  align-items: start;
  padding: 44px 0 24px;
}

.about-copy {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 4.2vw, 50px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(249, 244, 233, 0.82) 58%, rgba(223, 242, 232, 0.42)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 22px 54px rgba(16, 41, 39, 0.12);
}

body[data-current-page="om-mark"] .about-copy {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(252, 244, 232, 0.78) 56%, rgba(226, 242, 232, 0.48)),
    var(--surface);
  border-color: rgba(229, 204, 166, 0.58);
}

.about-copy::before {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, rgba(20, 84, 63, 0.88), rgba(216, 154, 56, 0.76));
}

.about-copy h1 {
  margin-bottom: 14px;
  font-size: clamp(2.7rem, 5vw, 3.65rem);
  line-height: 1.08;
}

.about-copy p {
  max-width: 820px;
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 1.07rem;
  line-height: 1.66;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-copy .about-lede {
  max-width: 780px;
  color: var(--ink);
  font-size: clamp(1.16rem, 2vw, 1.34rem);
  font-weight: 760;
  line-height: 1.5;
}

.about-copy .about-signoff {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(229, 204, 166, 0.72);
  color: var(--ink);
  font-weight: 740;
}

.about-quote {
  margin: 0;
  padding-left: 16px;
  color: var(--ink);
  border-left: 5px solid var(--amber);
  font-size: 1.22rem;
  font-weight: 850;
}

.about-profile {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 22px;
  padding: 20px 12px 12px;
  background:
    radial-gradient(circle at 18% 10%, rgba(216, 154, 56, 0.12), transparent 28%),
    radial-gradient(circle at 92% 82%, rgba(31, 122, 85, 0.1), transparent 32%);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.about-profile::before {
  content: none;
}

body[data-current-page="om-mark"] .about-profile {
  border-color: transparent;
}

.about-profile-shot {
  position: relative;
  margin: 0;
  padding: 13px 13px 18px;
  background:
    linear-gradient(180deg, #fffdf8, #f9f2e7),
    var(--surface);
  border: 1px solid rgba(229, 204, 166, 0.5);
  border-radius: 5px;
  box-shadow:
    0 18px 36px rgba(16, 41, 39, 0.16),
    0 2px 0 rgba(255, 255, 255, 0.86) inset;
  transform: rotate(-1.6deg);
  transform-origin: center;
}

.about-profile-shot + .about-profile-shot {
  margin-top: -4px;
  padding-top: 13px;
  border-top: 1px solid rgba(229, 204, 166, 0.5);
  transform: rotate(1.3deg);
}

.about-profile-shot::before {
  position: absolute;
  top: -13px;
  left: 52%;
  z-index: 2;
  width: 88px;
  height: 26px;
  content: "";
  background:
    repeating-linear-gradient(105deg, rgba(255, 255, 255, 0.16) 0 2px, transparent 2px 7px),
    linear-gradient(90deg, rgba(210, 183, 126, 0.66), rgba(246, 231, 194, 0.78) 48%, rgba(205, 177, 119, 0.62));
  border: 1px solid rgba(151, 117, 61, 0.14);
  box-shadow:
    0 5px 10px rgba(16, 41, 39, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  clip-path: polygon(0 12%, 5% 3%, 10% 12%, 16% 2%, 100% 8%, 96% 96%, 91% 87%, 85% 98%, 0 92%);
  opacity: 0.88;
  transform: translateX(-50%) rotate(2.6deg);
}

.about-profile-shot:nth-child(2)::before {
  left: 44%;
  width: 96px;
  height: 25px;
  background:
    repeating-linear-gradient(78deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 6px),
    linear-gradient(90deg, rgba(187, 209, 191, 0.66), rgba(226, 231, 202, 0.82) 52%, rgba(173, 199, 182, 0.64));
  border-color: rgba(73, 119, 91, 0.14);
  clip-path: polygon(0 7%, 6% 14%, 11% 3%, 18% 10%, 100% 2%, 97% 91%, 91% 98%, 84% 89%, 0 96%);
  transform: translateX(-50%) rotate(-4.2deg);
}

.about-profile-image {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  object-position: center;
  border-radius: 3px;
  box-shadow:
    inset 0 0 0 1px rgba(16, 41, 39, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.75);
}

.about-profile-image-square {
  aspect-ratio: 1 / 1;
}

.about-profile-caption {
  display: grid;
  gap: 2px;
  padding: 17px 7px 1px;
  font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  transform: rotate(-0.35deg);
}

.about-profile-caption strong {
  color: #173b34;
  font-size: 1.01rem;
  font-weight: 700;
  line-height: 1.45;
}

.about-profile-caption span {
  color: #596e69;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
}

.about-profile-shot:nth-child(2) .about-profile-caption {
  transform: rotate(0.45deg);
}

.about-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 24px);
  align-items: start;
  margin-bottom: 24px;
}

.about-feature-grid > .about-section-card {
  margin-bottom: 0;
}

.about-section-card,
.about-ai-note {
  padding: clamp(26px, 3vw, 36px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 253, 250, 0.84)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(16, 41, 39, 0.1);
}

.about-section-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.about-section-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, rgba(20, 84, 63, 0.82), rgba(216, 154, 56, 0.68));
}

.about-section-card:hover {
  border-color: rgba(31, 122, 85, 0.18);
  box-shadow: 0 18px 44px rgba(13, 52, 49, 0.12);
  transform: translateY(-3px);
}

.about-section-card h2 {
  position: relative;
  max-width: 780px;
  margin-bottom: 16px;
  padding-bottom: 0;
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  line-height: 1.12;
}

.about-section-card h2::after {
  content: none;
}

.about-section-card h3 {
  margin-bottom: 12px;
  color: var(--green-dark);
}

.about-section-card p {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 1.04rem;
  line-height: 1.64;
}

.about-section-card > p:last-child,
.about-text-flow p:last-child {
  margin: 0;
}

.about-wide-card {
  padding: clamp(28px, 3.4vw, 40px);
}

.about-reality-card {
  background:
    radial-gradient(circle at 88% 78%, rgba(31, 122, 85, 0.09), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(252, 244, 232, 0.72) 64%, rgba(223, 242, 232, 0.34)),
    var(--surface);
  padding-bottom: clamp(24px, 3vw, 34px);
}

body[data-current-page="om-mark"] .about-reality-card,
body[data-current-page="om-mark"] .about-section-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(252, 244, 232, 0.7)),
    var(--surface);
  border-color: rgba(229, 204, 166, 0.54);
}

body[data-current-page="om-mark"] .about-reality-card {
  background:
    radial-gradient(circle at 88% 78%, rgba(31, 122, 85, 0.09), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(252, 244, 232, 0.72) 64%, rgba(223, 242, 232, 0.34)),
    var(--surface);
}

.about-reality-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.34fr);
  gap: clamp(22px, 4vw, 52px);
  align-items: end;
}

.about-reality-figure {
  position: relative;
  display: flex;
  align-items: flex-end;
  align-self: stretch;
  justify-content: center;
  min-height: 310px;
  margin: 0;
  padding: 18px 0 0;
  overflow: hidden;
}

.about-reality-figure::before {
  position: absolute;
  right: 2%;
  bottom: 4px;
  left: 10%;
  z-index: 0;
  height: 34px;
  content: "";
  background: radial-gradient(ellipse at center, rgba(16, 41, 39, 0.24), rgba(16, 41, 39, 0.08) 56%, rgba(16, 41, 39, 0) 74%);
  border-radius: 999px;
  filter: blur(12px);
}

.about-reality-figure::after {
  position: absolute;
  right: -10%;
  bottom: -20%;
  z-index: 0;
  width: 260px;
  height: 260px;
  content: "";
  background: radial-gradient(circle, rgba(223, 242, 232, 0.9), rgba(223, 242, 232, 0) 68%);
  border-radius: 50%;
}

.about-reality-lars {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 280px);
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 20px 22px rgba(16, 41, 39, 0.18));
}

.about-disclaimer-card {
  padding-bottom: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(248, 253, 250, 0.9) 58%, rgba(255, 246, 231, 0.34)),
    var(--surface);
}

.about-disclaimer-figure {
  position: relative;
  float: right;
  width: clamp(360px, 44vw, 600px);
  margin: 4px -4px -14px clamp(30px, 4vw, 58px);
  shape-margin: 24px;
  shape-outside: inset(0);
  transform: translateY(0);
}

.about-disclaimer-figure::before {
  position: absolute;
  right: 5%;
  bottom: 8px;
  left: 7%;
  z-index: 0;
  height: 22px;
  content: "";
  background: rgba(16, 41, 39, 0.16);
  border-radius: 999px;
  filter: blur(12px);
}

.about-disclaimer-lars {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(16, 41, 39, 0.12));
}

.about-feature-grid .about-section-card:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(239, 247, 251, 0.86)),
    var(--surface);
}

.about-text-flow {
  max-width: 900px;
}

[data-section="about.reality"] .about-text-flow {
  max-width: none;
}

[data-section="about.disclaimer"] .about-text-flow {
  max-width: none;
}

[data-section="about.ai"] .about-text-flow::after,
[data-section="about.reality"] .about-text-flow::after,
[data-section="about.disclaimer"] .about-text-flow::after {
  display: block;
  clear: both;
  content: "";
}

.about-text-flow p {
  margin: 0 0 10px;
}

.about-ai-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(220, 238, 246, 0.7)),
    var(--surface);
}

.about-ai-heading {
  max-width: 820px;
}

.about-ai-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 34px;
  align-items: start;
}

.about-ai-figure {
  position: relative;
  float: left;
  width: min(52%, 390px);
  min-width: 270px;
  margin: 0 clamp(22px, 3.4vw, 34px) 2px 0;
  shape-image-threshold: 0.14;
  shape-margin: 16px;
  shape-outside: url("assets/lars-lunde-ai-rock-trimmed.webp");
  transform: translateY(8px);
}

.about-ai-figure::before {
  position: absolute;
  right: 7%;
  bottom: 8px;
  left: 10%;
  z-index: 0;
  height: 28px;
  content: "";
  background: radial-gradient(ellipse at center, rgba(16, 62, 92, 0.22), rgba(16, 62, 92, 0.08) 54%, rgba(16, 62, 92, 0) 74%);
  border-radius: 999px;
  filter: blur(11px);
}

.about-ai-speech {
  position: relative;
  z-index: 2;
  max-width: 360px;
  margin: 0 0 10px;
  padding: 15px 17px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(229, 243, 249, 0.94)),
    var(--surface);
  border: 1px solid rgba(23, 107, 142, 0.22);
  border-radius: var(--radius);
  box-shadow: 0 16px 30px rgba(16, 62, 92, 0.12);
  font-size: 0.98rem;
  font-weight: 850;
  line-height: 1.48;
}

.about-ai-speech::after {
  position: absolute;
  bottom: -12px;
  left: 58px;
  width: 22px;
  height: 22px;
  content: "";
  background: rgba(236, 246, 250, 0.98);
  border-right: 1px solid rgba(23, 107, 142, 0.18);
  border-bottom: 1px solid rgba(23, 107, 142, 0.18);
  transform: rotate(45deg);
}

.about-ai-lars {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(16, 41, 39, 0.16));
}

.about-ai-points {
  padding-left: 22px;
  border-left: 5px solid var(--blue);
}

.about-ai-points h4 {
  margin: 18px 0 10px;
  color: var(--blue-dark);
  font-size: 1rem;
}

.about-ai-points ul {
  display: grid;
  gap: 9px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.about-ai-points li {
  display: flex;
  gap: 10px;
  color: var(--ink-soft);
  font-weight: 760;
}

.about-ai-points li::before {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin-top: 10px;
  content: "";
  background: var(--amber);
  border-radius: 50%;
}

.about-mascot-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(231, 245, 237, 0.88)),
    var(--surface);
}

.about-mascot-card p {
  position: relative;
  z-index: 2;
}

.lunde-scene {
  position: relative;
  aspect-ratio: 1.32 / 1;
  margin: 2px 0 18px;
  padding: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(223, 242, 232, 0.5)),
    var(--surface);
  border: 1px solid rgba(177, 213, 197, 0.82);
  border-radius: var(--radius);
  box-shadow:
    0 18px 38px rgba(16, 41, 39, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.lunde-scene::before {
  position: absolute;
  inset: 8px;
  z-index: 2;
  content: "";
  background:
    linear-gradient(180deg, rgba(16, 41, 39, 0) 58%, rgba(16, 41, 39, 0.18) 100%),
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0) 48%, rgba(16, 41, 39, 0.16) 100%);
  border-radius: 6px;
  pointer-events: none;
}

.lunde-scene::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: var(--radius);
  pointer-events: none;
}

.lunde-reference-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  filter: saturate(0.96) contrast(0.98);
}

.about-ai-note {
  max-width: 1080px;
  margin: 8px auto 32px;
  padding: 18px 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 235, 0.58)),
    var(--surface);
  border-color: rgba(216, 154, 56, 0.32);
  box-shadow: 0 12px 28px rgba(16, 41, 39, 0.06);
}

.about-ai-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--green-dark);
  font-size: 0.92rem;
  letter-spacing: 0;
}

.about-ai-note p {
  max-width: none;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.65;
}

.home-ai-note {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto 38px;
  border-color: rgba(213, 229, 222, 0.92);
  border-left: 1px solid rgba(213, 229, 222, 0.92);
}

.site-footer {
  display: grid;
  gap: 7px;
  padding: 30px 0 38px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
}

.site-footer p:first-child {
  color: var(--ink-soft);
  font-weight: 750;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.footer-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
  transition: color 200ms ease, opacity 200ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--blue-dark);
  opacity: 0.82;
}

[data-content="home.hero.title"],
[data-content="home.testimonials.cta.text"] {
  white-space: pre-line;
}

.editor-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 11px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 41, 39, 0.12);
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(16, 41, 39, 0.1);
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
  opacity: 0.38;
  backdrop-filter: blur(14px);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.editor-launcher:hover,
.editor-launcher:focus-visible {
  opacity: 1;
  background: rgba(255, 255, 255, 0.94);
  transform: translateY(-2px);
}

.editor-section-hidden,
.editor-section-deleted {
  display: none !important;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-content,
  .hero-visual,
  .front-section,
  .comment-section,
  .about-section-card,
  .about-ai-note {
    animation: fadeUp 520ms ease both;
  }

  .hero-visual {
    animation-delay: 90ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dictionaryTopicReveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .testimonial-card {
    flex-basis: calc((100% - 28px) / 3);
  }

  .dictionary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    width: 100%;
  }

  .nav-button {
    flex: 1 1 150px;
  }

  .hero,
  .split-heading,
  .about-hero,
  .about-ai-content,
  .construction-card,
  .comment-section,
  .exam-how-section {
    grid-template-columns: 1fr;
  }

  .greeting-hero {
    grid-template-columns: 1fr;
  }

  .greeting-lars-figure {
    min-height: 0;
  }

  .hero {
    min-height: auto;
    gap: 18px;
    padding: 30px 0 50px;
  }

  .hero::after {
    bottom: 28px;
    height: 8px;
  }

  .hero-heading {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
  }

  .hero-content {
    grid-column: 1;
    grid-row: 3;
    max-width: 680px;
    padding: 0;
  }

  .hero-visual {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    width: min(100%, 600px);
    max-width: none;
    margin: -18px 0 0;
  }

  .science-panel {
    min-height: 0;
  }

  .profile-image {
    max-width: none;
    height: min(62vh, 560px);
  }

  .subject-grid,
  .category-grid,
  .resource-grid,
  .biology-placeholder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-feature-grid {
    grid-template-columns: 1fr;
  }

  .biology-workspace,
  .biology-course-content {
    grid-template-columns: 1fr;
  }

  .biology-hero {
    padding-top: 34px;
  }

  .biology-course-menu,
  .biology-sidebar {
    display: none;
  }

  .biology-lars-inline-quote {
    float: none;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 18px 0;
    text-align: left;
  }

  .biology-lars-inline-quote img {
    width: 132px;
    margin: 0;
    align-self: center;
  }

  .biology-lars-fact-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .biology-lars-fact-copy {
    grid-column: 1;
    grid-row: 1;
  }

  .biology-overview-hero .biology-lars-inline-quote {
    grid-column: 1;
    grid-row: 2;
    width: min(100%, 520px);
    margin: 22px auto 26px;
  }

  .biology-overview-hero .biology-lars-inline-quote img {
    width: min(100%, 420px);
    max-width: none;
  }

  .biology-mobile-menu {
    display: block;
  }

  .about-copy h1 {
    font-size: clamp(2.55rem, 8vw, 3.05rem);
  }

  .about-profile {
    position: static;
    max-width: 460px;
    justify-self: center;
  }

  .about-profile-shot {
    transform: rotate(-0.8deg);
  }

  .about-profile-shot + .about-profile-shot {
    transform: rotate(0.8deg);
  }

  .about-ai-points {
    padding-top: 22px;
    padding-left: 0;
    border-top: 5px solid var(--blue);
    border-left: 0;
  }

  .construction-visual {
    min-height: 300px;
    place-items: center;
  }

  .testimonial-cta {
    grid-template-columns: 1fr;
  }

  .testimonial-cta .comment-jump-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .testimonial-card {
    flex-basis: calc((100% - 20px) / 2);
  }

  .standard-avatar-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .dictionary-topic-options {
    gap: 8px;
  }

  h1 {
    font-size: 3.6rem;
  }

  .hero h1 {
    font-size: clamp(5.2rem, 16vw, 8rem);
    line-height: 0.86;
    white-space: nowrap;
  }

  h2 {
    font-size: 2rem;
  }
}

@media (max-width: 640px) {
  main,
  .site-header,
  .site-footer {
    width: min(100% - 24px, var(--max-width));
  }

  .site-header {
    position: relative;
    top: auto;
    gap: 8px;
    min-height: 0;
    padding: 8px 0 4px;
  }

  .site-header::before {
    inset: 4px -8px;
    background: rgba(246, 250, 247, 0.76);
    box-shadow: 0 10px 26px rgba(16, 41, 39, 0.08);
  }

  .logo {
    gap: 9px;
  }

  .logo-mark {
    width: 40px;
    height: 40px;
  }

  .logo-text {
    font-size: 1rem;
  }

  .logo-copy {
    gap: 3px;
  }

  .logo-tagline {
    font-size: 0.64rem;
  }

  .main-nav {
    gap: 7px;
    width: 100%;
    margin-top: 2px;
    padding: 0 2px 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

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

  .nav-button {
    flex: 0 0 auto;
    height: 44px;
    min-width: 0;
    padding: 7px 10px;
    font-size: 0.82rem;
    scroll-snap-align: center;
    white-space: nowrap;
  }

  .nav-button::after {
    right: 10px;
    bottom: 3px;
    left: 10px;
    height: 2px;
  }

  .page {
    padding-top: 18px;
  }

  .hero h1 {
    font-size: clamp(3.75rem, 19vw, 5.5rem);
  }

  .hero-heading {
    margin-bottom: 0;
  }

  .hero-copy-panel {
    padding: 18px;
    border-bottom-width: 1px;
    border-radius: 8px;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .hero-text {
    font-size: 1.02rem;
    line-height: 1.72;
  }

  .hero-note {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .resource-actions {
    flex-direction: column;
  }

  .primary-button,
  .card-button,
  .resource-actions a {
    width: 100%;
  }

  .science-panel {
    min-height: 0;
    padding: 0;
  }

  .profile-image {
    width: 100%;
    max-width: none;
    height: min(56vh, 460px);
  }

  .subject-grid,
  .about-feature-grid,
  .category-grid,
  .resource-grid,
  .biology-placeholder-grid,
  .dictionary-grid,
  .exam-subject-grid {
    grid-template-columns: 1fr;
  }

  .exam-how-list {
    grid-template-columns: 1fr;
  }

  .biology-course-card,
  .biology-panel,
  .biology-writing-panel,
  .chapter-document {
    padding: 22px;
  }

  .biology-home-document .biology-hero,
  .biology-home-content {
    padding-right: 22px;
    padding-left: 22px;
  }

  .biology-overview-hero h1 {
    font-size: clamp(2.55rem, 11vw, 3.55rem);
  }

  .biology-method-section,
  .biology-home-paths,
  .biology-scale-connections,
  .biology-level-list > .biology-level-row,
  .biology-biologist-types,
  .biology-career-list {
    grid-template-columns: 1fr;
  }

  .biology-method-section {
    gap: 26px;
  }

  .biology-home-paths > .biology-core-path,
  .biology-home-paths > .biology-case-path {
    padding: 24px 0;
    border-left: 0;
  }

  .biology-home-paths > .biology-case-path {
    border-top: 1px solid rgba(31, 122, 85, 0.2);
  }

  .biology-level-list > .biology-level-row {
    position: relative;
    gap: 8px;
    padding-right: 0;
  }

  .biology-admission-note {
    padding: 18px;
  }

  .biology-biologist-types > section,
  .biology-biologist-types > section + section {
    padding: 24px 0;
    border-left: 0;
  }

  .biology-biologist-types > section + section {
    border-top: 1px solid rgba(31, 122, 85, 0.2);
  }

  .biology-term-grid,
  .biology-chapter-nav {
    grid-template-columns: 1fr;
  }

  .biology-chapter-link {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .biology-chapter-number {
    width: 38px;
    height: 38px;
  }

  .dictionary-search-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .dictionary-clear-button {
    width: auto;
  }

  .dictionary-filter-group {
    width: 100%;
  }

  .dictionary-tools {
    margin-top: 14px;
    padding: 12px;
    border-radius: 16px;
  }

  .dictionary-subject-tabs {
    position: static;
    width: 100%;
  }

  .dictionary-subject-tabs .dictionary-filter-options {
    flex-wrap: wrap;
    width: 100%;
  }

  .dictionary-chip {
    flex: 1 1 128px;
  }

  .dictionary-subject-tab {
    min-width: 0;
    min-height: 38px;
    flex: 1 1 calc(50% - 8px);
    border-radius: 999px;
    box-shadow: 0 7px 18px var(--subject-shadow);
    transform: none;
  }

  .dictionary-subject-tab::after {
    display: block;
  }

  .dictionary-subject-tab:hover,
  .dictionary-subject-tab:focus-visible,
  .dictionary-subject-tab.is-active,
  .dictionary-subject-tab.is-active:hover,
  .dictionary-subject-tab.is-active:focus-visible {
    transform: none;
  }

  .dictionary-topic-options {
    align-items: stretch;
  }

  .dictionary-topic-chip {
    min-height: 34px;
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
    text-align: center;
  }

  .dictionary-letter-button {
    flex: 0 1 34px;
  }

  .dictionary-card dl div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .dictionary-card dl {
    grid-template-columns: 1fr;
  }

  .dictionary-more-button {
    width: 100%;
  }

  .dictionary-dialog {
    align-items: end;
    padding: 14px;
  }

  .dictionary-dialog-panel {
    width: 100%;
    max-height: 88vh;
    padding: 22px;
  }

  .figure-dialog {
    padding: 12px;
  }

  .figure-dialog-panel {
    width: 100%;
    max-height: calc(100vh - 24px);
    border-radius: 8px;
  }

  .figure-dialog-close {
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
  }

  .figure-dialog-media {
    min-height: 180px;
    padding: 14px;
  }

  .figure-dialog-media img {
    max-height: min(calc(100vh - 290px), 62vh);
  }

  .figure-dialog-caption {
    gap: 7px;
    padding: 18px;
  }

  .figure-dialog-caption h2 {
    padding-right: 34px;
    font-size: 1.2rem;
  }

  .dictionary-dialog-header {
    padding-right: 40px;
  }

  .carousel-heading {
    grid-template-columns: 1fr;
  }

  .carousel-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .carousel-controls {
    justify-content: flex-start;
  }

  .comment-jump-button {
    width: 100%;
  }

  .greeting-page {
    padding-top: 34px;
  }

  .greeting-hero {
    padding: 28px;
  }

  .greeting-form-section .comment-intro,
  .form-two-col {
    grid-template-columns: 1fr;
  }

  .greeting-lars-figure {
    min-height: 0;
  }

  .greeting-lars-figure img {
    width: 100%;
    height: clamp(230px, 58vw, 330px);
    border-radius: 0;
  }

  .avatar-choice-heading {
    justify-content: center;
  }

  .testimonial-card {
    flex-basis: 100%;
  }

  .testimonial-cta {
    gap: 12px;
    padding: 14px;
  }

  .submitted-greetings-heading {
    grid-template-columns: 1fr;
  }

  .submitted-greetings-list {
    grid-template-columns: 1fr;
  }

  .subject-hub {
    padding: 12px;
    border-radius: 8px;
  }

  .subject-overview-card {
    margin-bottom: 12px;
    padding: 12px;
  }

  .subject-overview-card p {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .subject-mascot {
    min-height: 245px;
    margin: 16px 0 22px;
    border-radius: 8px;
  }

  .subject-mascot img {
    width: min(82%, 248px);
    max-height: 238px;
  }

  .subject-mascot-geography img {
    width: min(78%, 240px);
  }

  .construction-section {
    padding-bottom: 46px;
  }

  .construction-card {
    padding: 22px;
  }

  .exam-subject-card,
  .exam-how-section {
    padding: 22px;
  }

  .exam-referral-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .exam-referral-card .primary-button {
    width: 100%;
  }

  .construction-copy h2 {
    font-size: 2rem;
  }

  .construction-visual {
    min-height: 250px;
  }

  .construction-visual img {
    width: min(88%, 280px);
    max-height: 340px;
  }

  .standard-avatar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .front-section {
    padding: 34px 0;
  }

  .subject-card,
  .about-copy,
  .about-section-card,
  .about-wide-card,
  .about-ai-note,
  .comment-section,
  .greeting-hero {
    padding: 22px;
  }

  .about-copy h1 {
    font-size: 2.25rem;
  }

  .about-section-card h2 {
    font-size: 1.68rem;
  }

  .about-reality-layout {
    display: grid;
    grid-template-columns: 1fr;
  }

  .about-reality-figure {
    width: 100%;
    min-height: 230px;
    margin: 6px auto 0;
    padding-bottom: 28px;
    transform: none;
  }

  .about-reality-lars {
    width: min(66%, 220px);
    margin: 0 auto;
  }

  .about-ai-figure {
    float: none;
    width: min(100%, 360px);
    min-width: 0;
    margin: 10px auto 18px;
    shape-outside: none;
    transform: none;
  }

  .about-disclaimer-figure {
    float: none;
    width: min(100%, 560px);
    margin: 12px auto 18px;
    shape-outside: none;
    transform: none;
  }

  .lunde-reference-image {
    width: 100%;
  }

  .lunde-scene {
    min-height: 0;
    padding: 6px;
  }

  .about-profile {
    max-width: none;
  }

  h1 {
    font-size: 2.7rem;
  }

  h2 {
    font-size: 1.68rem;
  }

  .hero-subtitle {
    font-size: 1.24rem;
  }

  .site-footer {
    justify-items: center;
    padding: 26px 0 32px;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

/* =========================================================
   Modern notebook design system
   Shared refinement across every public page.
   ========================================================= */

:root {
  --ink: #18231e;
  --ink-soft: #45534c;
  --muted: #647069;
  --paper: #f7f8f4;
  --surface: #ffffff;
  --surface-soft: #eaf1ec;
  --line: #dde3de;
  --green: #285f49;
  --green-dark: #214d3c;
  --blue: #3e6f70;
  --blue-dark: #31595a;
  --amber: #c79443;
  --font-body: Inter, Manrope, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: Inter, Manrope, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 7px;
  --radius-card: 9px;
  --shadow-soft: 0 8px 24px rgba(24, 35, 30, 0.06);
  --shadow-strong: 0 14px 36px rgba(24, 35, 30, 0.09);
  --shadow-card: 0 7px 22px rgba(24, 35, 30, 0.055);
}

html,
body {
  overflow-x: clip;
}

body {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  background-color: var(--paper);
}

body::before {
  background:
    radial-gradient(ellipse at center, rgba(247, 248, 244, 0.92) 0%, rgba(247, 248, 244, 0.82) 54%, rgba(247, 248, 244, 0.72) 100%),
    rgba(247, 248, 244, 0.64);
}

body[data-current-page="biologi"]::before {
  background:
    radial-gradient(ellipse at center, rgba(247, 250, 246, 0.93) 0%, rgba(237, 245, 239, 0.83) 56%, rgba(226, 238, 229, 0.72) 100%),
    rgba(239, 246, 240, 0.64);
}

body[data-current-page="naturgeografi"]::before {
  background:
    radial-gradient(ellipse at center, rgba(247, 250, 250, 0.93) 0%, rgba(235, 244, 245, 0.83) 56%, rgba(222, 235, 237, 0.72) 100%),
    rgba(237, 245, 246, 0.64);
}

body[data-current-page="ordbog"]::before {
  background:
    radial-gradient(ellipse at center, rgba(250, 249, 251, 0.94) 0%, rgba(244, 241, 247, 0.84) 56%, rgba(235, 230, 241, 0.72) 100%),
    rgba(247, 244, 249, 0.65);
}

.page-background {
  background: #eef1eb;
}

.page-background img {
  opacity: 0.79;
  filter: saturate(0.82) contrast(0.95);
}

/* Keep the notebook illustration equally visible through every page tint. */
body::before {
  opacity: 0.92;
}

/* Compact, quiet top navigation. */
.site-header {
  width: 100%;
  min-height: 60px;
  gap: 18px;
  padding: 6px max(20px, calc((100vw - var(--max-width)) / 2));
}

.site-header::before {
  inset: 0;
  background: rgba(250, 251, 248, 0.88);
  border: 0;
  border-bottom: 1px solid rgba(113, 128, 118, 0.2);
  border-radius: 0;
  box-shadow: 0 2px 10px rgba(24, 35, 30, 0.035);
  backdrop-filter: blur(16px) saturate(1.04);
}

.logo {
  gap: 9px;
}

.logo-mark {
  width: 40px;
  height: 40px;
  box-shadow: 0 4px 12px rgba(49, 89, 90, 0.11);
}

.logo-text {
  font-size: 1rem;
  font-weight: 850;
}

.logo-copy {
  gap: 2px;
}

.logo-tagline {
  font-size: 0.64rem;
  font-weight: 650;
}

.main-nav {
  gap: 3px;
  min-width: 0;
}

.nav-button {
  height: 38px;
  min-width: 0;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 0.91rem;
  font-weight: 720;
  transition: color 180ms ease, background 180ms ease;
}

.nav-button::after {
  right: 10px;
  bottom: 2px;
  left: 10px;
  height: 1px;
  background: var(--green);
  border-radius: 0;
}

.nav-button:hover,
.nav-button:focus-visible {
  color: var(--green-dark);
  background: rgba(234, 241, 236, 0.68);
  box-shadow: none;
  transform: none;
}

.nav-button.is-active {
  color: var(--green-dark);
  background: rgba(226, 238, 229, 0.88);
  box-shadow: none;
}

.nav-button.is-active::after {
  background: var(--green-dark);
}

/* Editorial type rhythm. */
h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 820;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 22px;
}

h3 {
  margin-bottom: 12px;
}

main p,
main li,
main dd {
  line-height: 1.7;
}

.page {
  padding-top: 18px;
  padding-bottom: 64px;
}

.eyebrow,
.biology-section-label,
.biology-type-label,
.biology-c-path-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.045em;
}

.biology-hero p:not(.eyebrow),
.biology-course-intro,
.chapter-lead,
.chapter-section p,
.biology-home-section p,
.biology-exam-section p,
.biology-figure-explanation p {
  max-width: 760px;
  color: var(--ink-soft);
  font-size: clamp(1.025rem, 1.15vw, 1.1rem);
  line-height: 1.72;
}

.chapter-section h2,
.biology-home-section h2,
.biology-exam-section h2 {
  max-width: 760px;
  margin: 0 0 24px;
  font-size: clamp(1.8rem, 3.2vw, 2.45rem);
  line-height: 1.16;
}

.chapter-section > h3 {
  max-width: 760px;
  margin-top: 44px;
  margin-bottom: 14px;
}

.chapter-section > ul,
.chapter-section > ol {
  max-width: 760px;
}

.chapter-section p,
.biology-home-section p,
.biology-exam-section p {
  margin-top: 0;
  margin-bottom: 19px;
}

.chapter-section p:last-child,
.biology-home-section p:last-child,
.biology-exam-section p:last-child {
  margin-bottom: 0;
}

/* Thin, slightly irregular editorial pen rules. */
.hero::after {
  right: auto;
  bottom: 24px;
  left: 0;
  width: min(420px, 38vw);
  height: 2px;
  background:
    linear-gradient(90deg, rgba(40, 95, 73, 0.72), rgba(62, 111, 112, 0.32) 76%, transparent);
  border-radius: 0;
  box-shadow: none;
  clip-path: polygon(0 32%, 18% 18%, 38% 42%, 61% 28%, 81% 48%, 100% 34%, 100% 72%, 78% 62%, 56% 78%, 31% 58%, 12% 76%, 0 64%);
  transform: rotate(-0.18deg);
}

.biology-home-section,
.biology-exam-section,
.chapter-section {
  position: relative;
  margin-top: clamp(58px, 7vw, 84px);
  padding-top: 32px;
  border-top: 0;
}

.biology-home-section::before,
.biology-exam-section::before,
.chapter-section::before {
  position: absolute;
  top: 0;
  left: 0;
  width: min(280px, 42%);
  height: 2px;
  content: "";
  background: linear-gradient(90deg, rgba(40, 95, 73, 0.58), rgba(62, 111, 112, 0.2), transparent);
  clip-path: polygon(0 30%, 16% 15%, 34% 42%, 56% 22%, 77% 48%, 100% 28%, 100% 70%, 79% 62%, 55% 78%, 31% 58%, 12% 74%, 0 62%);
  transform: rotate(-0.22deg);
}

.biology-home-content > .biology-home-section:first-child {
  margin-top: 0;
}

.subject-hub::before,
.subject-card::before {
  top: 0;
  right: auto;
  left: 20px;
  width: min(260px, 42%);
  height: 2px;
  background: linear-gradient(90deg, rgba(40, 95, 73, 0.58), rgba(62, 111, 112, 0.18), transparent);
  border-radius: 0;
  box-shadow: none;
}

.subject-geography::before {
  background: linear-gradient(90deg, rgba(62, 111, 112, 0.65), rgba(62, 111, 112, 0.16), transparent);
}

/* Reading surfaces instead of stacked dashboard cards. */
.biology-workspace {
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 32px;
  padding-top: 20px;
  padding-bottom: 88px;
}

.biology-main-column {
  width: 100%;
  max-width: 970px;
}

.biology-home-document,
.chapter-document {
  background: rgba(255, 255, 255, 0.91);
  border: 1px solid rgba(221, 227, 222, 0.92);
  border-radius: 9px;
  box-shadow: 0 10px 30px rgba(24, 35, 30, 0.055);
}

.chapter-document {
  padding: clamp(28px, 5vw, 56px);
}

.chapter-document header {
  max-width: 820px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(100, 112, 105, 0.2);
}

.biology-home-document {
  overflow: visible;
}

.biology-home-document .biology-hero {
  padding: clamp(34px, 5vw, 56px);
}

.biology-home-content {
  padding: 0 clamp(34px, 5vw, 56px) clamp(42px, 6vw, 68px);
}

.biology-home-section {
  padding-bottom: 0;
}

.biology-course-cover {
  padding-bottom: 76px;
}

.biology-course-header {
  max-width: 860px;
  padding-bottom: 30px;
  border-bottom-color: rgba(100, 112, 105, 0.2);
}

.biology-writing-panel,
.biology-panel,
.biology-placeholder-card,
.biology-intro-goals,
.biology-known-questions,
.biology-exam-level-grid article,
.biology-exam-level-detail,
.biology-exam-level-facts,
.biology-exam-level-switcher,
.biology-c-exam,
.biology-admission-note,
.exam-referral-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
}

.greeting-hero,
.greeting-form-section,
.construction-card,
.exam-how-section,
.about-copy,
.about-section-card,
.about-ai-note,
.dictionary-tools,
.dictionary-dialog-panel {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: var(--shadow-card);
}

.about-copy,
.about-section-card,
.about-ai-note {
  box-shadow: none;
}

.about-copy::before {
  right: auto;
  left: 24px;
  width: min(280px, 42%);
  height: 2px;
  background: linear-gradient(90deg, rgba(40, 95, 73, 0.58), rgba(199, 148, 67, 0.18), transparent);
}

.about-section-card::before {
  opacity: 0.55;
}

.about-ai-points {
  border-left-width: 2px;
}

.biology-panel,
.biology-placeholder-card {
  padding: 20px;
}

.biology-course-card,
.exam-subject-card {
  border-top-width: 1px;
  border-radius: 9px;
  box-shadow: var(--shadow-card);
}

.biology-core-skill-card,
.biology-c-paths > a,
.biology-endosymbiosis,
.biology-exam-level-detail--written,
.biology-exam-level-detail--oral {
  border-top-width: 1px;
  border-radius: 9px;
  box-shadow: none;
}

.biology-core-skill-card {
  background: rgba(255, 255, 255, 0.82);
}

.biology-endosymbiosis > summary {
  color: #fff;
  background: var(--green-dark);
}

.biology-core-area-page--editorial {
  gap: clamp(30px, 4vw, 48px);
}

body[data-current-page="biologi"] .biology-core-area-page.article-surface {
  --core-area-gutter-x: clamp(36px, 4vw, 56px);
  --core-area-gutter-top: clamp(36px, 4vw, 56px);
  --core-area-accent: #276a51;
  --core-area-header-color: #dceee3;
  --core-area-header-fade: #f5faf7;
  --core-area-header-border: color-mix(in srgb, var(--core-area-accent) 24%, transparent);
  padding: var(--core-area-gutter-top) var(--core-area-gutter-x) clamp(40px, 5vw, 64px);
  border-color: rgba(17, 39, 31, 0.18);
  overflow: hidden;
}

body[data-current-page="biologi"] .biology-core-area-page[data-core-area="cellebiologi"] {
  --core-area-accent: #277157;
  --core-area-header-color: #d9ede3;
  --core-area-header-fade: #f4faf7;
}

body[data-current-page="biologi"] .biology-core-area-page[data-core-area="mikrobiologi"] {
  --core-area-accent: #1f716d;
  --core-area-header-color: #d8ece9;
  --core-area-header-fade: #f3f9f8;
}

body[data-current-page="biologi"] .biology-core-area-page[data-core-area="makromolekyler"] {
  --core-area-accent: #9a6a19;
  --core-area-header-color: #f2e7ca;
  --core-area-header-fade: #fcfaf3;
}

body[data-current-page="biologi"] .biology-core-area-page[data-core-area="enzymer"] {
  --core-area-accent: #66752a;
  --core-area-header-color: #e5edcf;
  --core-area-header-fade: #f8faf2;
}

body[data-current-page="biologi"] .biology-core-area-page[data-core-area="biokemiske-processer"] {
  --core-area-accent: #a55740;
  --core-area-header-color: #f0ddd5;
  --core-area-header-fade: #fcf7f4;
}

body[data-current-page="biologi"] .biology-core-area-page[data-core-area="genetik-og-molekylaerbiologi"] {
  --core-area-accent: #6d5a92;
  --core-area-header-color: #e7e2ef;
  --core-area-header-fade: #f8f6fb;
}

body[data-current-page="biologi"] .biology-core-area-page[data-core-area="evolutionsbiologi"] {
  --core-area-accent: #5c7433;
  --core-area-header-color: #e1ead2;
  --core-area-header-fade: #f7f9f2;
}

body[data-current-page="biologi"] .biology-core-area-page[data-core-area="fysiologi"] {
  --core-area-accent: #955260;
  --core-area-header-color: #efdcdf;
  --core-area-header-fade: #fcf6f7;
}

body[data-current-page="biologi"] .biology-core-area-page[data-core-area="oekologi"] {
  --core-area-accent: #3b7148;
  --core-area-header-color: #d8ead7;
  --core-area-header-fade: #f4f9f4;
}

body[data-current-page="biologi"] .biology-core-area-page[data-core-area="populationsbiologi"] {
  --core-area-accent: #3c7084;
  --core-area-header-color: #d9e9ee;
  --core-area-header-fade: #f4f9fa;
}

body[data-current-page="biologi"] .biology-core-area-page[data-core-area="eksperimentelle-metoder"] {
  --core-area-accent: #506f76;
  --core-area-header-color: #dce8e8;
  --core-area-header-fade: #f5f9f9;
}

body[data-current-page="biologi"] .biology-core-area-opening {
  position: relative;
  isolation: isolate;
  width: auto;
  max-width: none;
  margin: calc(-1 * var(--core-area-gutter-top)) calc(-1 * var(--core-area-gutter-x)) 0;
  padding: clamp(42px, 4.6vw, 56px) var(--core-area-gutter-x) clamp(40px, 4.3vw, 52px);
  overflow: hidden;
  text-align: left;
  background:
    linear-gradient(105deg, var(--core-area-header-color) 0%, var(--core-area-header-fade) 72%, #fbfcfa 100%);
  border: 0;
  border-bottom: 1px solid var(--core-area-header-border);
  border-radius: 0;
  box-shadow: inset 0 -12px 30px rgba(255, 255, 255, 0.18);
}

body[data-current-page="biologi"] .biology-core-area-opening::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: var(--core-area-gutter-x);
  left: var(--core-area-gutter-x);
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--core-area-accent) 68%, transparent) 22%,
    var(--core-area-accent) 50%,
    color-mix(in srgb, var(--core-area-accent) 68%, transparent) 78%,
    transparent 100%
  );
}

body[data-current-page="biologi"] .biology-core-area-opening::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: min(42%, 480px);
  opacity: 0.72;
  background: repeating-linear-gradient(
    135deg,
    transparent 0 27px,
    color-mix(in srgb, var(--core-area-accent) 9%, transparent) 27px 28px
  );
  mask-image: linear-gradient(to left, #000 10%, transparent 100%);
}

body[data-current-page="biologi"] .article-page .biology-core-area-opening h1 {
  position: relative;
  z-index: 1;
  max-width: 940px;
  margin: 0;
  color: color-mix(in srgb, var(--core-area-accent) 26%, #10241d);
  font-size: clamp(2.7rem, 4.25vw, 3.8rem);
  line-height: 1.04;
  text-align: center;
  text-wrap: balance;
}

body[data-current-page="biologi"] .biology-core-area-opening > p:last-child {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 14px auto 0;
  color: color-mix(in srgb, var(--core-area-accent) 30%, #42584f);
  font-size: clamp(1.04rem, 1.3vw, 1.16rem);
  line-height: 1.58;
  text-align: center;
}

@media (max-width: 960px) {
  body[data-current-page="biologi"] .biology-core-area-page.article-surface {
    --core-area-gutter-x: 20px;
    --core-area-gutter-top: 30px;
    padding: var(--core-area-gutter-top) var(--core-area-gutter-x) 42px;
  }

  body[data-current-page="biologi"] .biology-core-area-opening {
    padding: 38px 24px 36px;
  }

  body[data-current-page="biologi"] .article-page .biology-core-area-opening h1 {
    font-size: clamp(2.4rem, 6vw, 3.1rem);
  }
}

@media (max-width: 600px) {
  body[data-current-page="biologi"] .biology-core-area-opening {
    padding: 32px 20px 30px;
  }

  body[data-current-page="biologi"] .article-page .biology-core-area-opening h1 {
    font-size: clamp(1.95rem, 8.6vw, 2.3rem);
    line-height: 1.08;
    hyphens: auto;
    overflow-wrap: normal;
    word-break: normal;
  }

  body[data-current-page="biologi"] .biology-core-area-page[data-core-area="genetik-og-molekylaerbiologi"] .biology-core-area-opening h1 {
    font-size: clamp(1.68rem, 7.3vw, 1.82rem);
  }

  body[data-current-page="biologi"] .biology-core-area-opening > p:last-child {
    margin-top: 12px;
    font-size: 1rem;
    line-height: 1.5;
  }
}

.biology-core-area-page--editorial > .biology-topic-hero-shot {
  width: 100%;
  margin: 0;
  padding: 0;
  background: #fbfcf9;
  border-color: var(--line);
  border-radius: 8px;
  box-shadow: none;
}

.biology-core-area-page--editorial .biology-core-area-existing-content {
  width: 100%;
  max-width: none;
}

.biology-core-area-page--editorial .biology-core-existing-copy {
  width: 100%;
  max-width: 900px;
}

.biology-core-existing-copy {
  color: var(--ink-soft);
  font-size: clamp(1.025rem, 1.15vw, 1.1rem);
  line-height: 1.72;
}

.biology-core-existing-copy p {
  margin-top: 0;
  margin-bottom: 19px;
}

.biology-tree-of-life {
  clear: both;
  margin-top: clamp(56px, 7vw, 82px);
  padding-top: clamp(38px, 5vw, 58px);
  border-top: 1px solid rgba(100, 112, 105, 0.22);
}

.biology-tree-of-life-header,
.biology-tree-of-life-copy,
.biology-tree-of-life-part {
  max-width: 760px;
}

.biology-tree-of-life-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.08;
}

.biology-tree-of-life-copy {
  margin-top: 24px;
}

.biology-tree-of-life-copy p,
.biology-tree-of-life-part p {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.025rem, 1.15vw, 1.1rem);
  line-height: 1.72;
}

.biology-tree-of-life-copy p + p,
.biology-tree-of-life-part p + p {
  margin-top: 19px;
}

.biology-tree-of-life-part {
  margin-top: clamp(42px, 5.5vw, 62px);
}

.biology-tree-of-life-part h3 {
  margin: 0 0 17px;
  color: var(--green-dark);
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  line-height: 1.2;
}

.biology-tree-of-life-list {
  margin: 17px 0 22px;
  padding-left: 1.35rem;
  color: var(--ink-soft);
  font-size: clamp(1.01rem, 1.1vw, 1.08rem);
  line-height: 1.65;
}

.biology-tree-of-life-list li + li {
  margin-top: 7px;
}

.biology-tree-of-life-list li::marker {
  color: var(--green);
}

.biology-tree-of-life .biology-topic-figure-block {
  margin-top: clamp(42px, 6vw, 66px);
}

.biology-tree-of-life .biology-topic-figure {
  margin-top: 0;
}

.biology-tree-of-life-figure-note {
  margin: 15px 0 0;
  padding: 13px 15px;
  color: #5f6d65;
  background: rgba(246, 249, 246, 0.92);
  border-left: 3px solid rgba(40, 95, 73, 0.42);
  font-size: 0.9rem;
  line-height: 1.58;
}

.biology-tree-of-life-depth {
  margin-top: clamp(38px, 5vw, 54px);
}

.biology-tree-of-life-depth > div p + p {
  margin-top: 14px;
}

.biology-tree-of-life-depth-spotlight {
  margin-top: 22px;
  padding: 20px 20px 21px;
  background: linear-gradient(135deg, rgba(230, 243, 236, 0.82), rgba(238, 246, 243, 0.58));
  border-left: 4px solid rgba(40, 95, 73, 0.62);
  border-radius: 7px;
}

.biology-tree-of-life-depth-spotlight h4 {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 1.18rem;
  line-height: 1.3;
}

.biology-tree-of-life-depth-spotlight p {
  color: var(--ink-soft);
  line-height: 1.68;
}

.biology-tree-of-life-depth > div .biology-tree-of-life-depth-source {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(31, 122, 85, 0.14);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.biology-tree-of-life-depth-source a {
  color: var(--green-dark);
  font-weight: 700;
}

.biology-tree-of-life-lars {
  max-width: 700px;
  margin-top: clamp(30px, 4vw, 42px);
}

.biology-tree-of-life-lars blockquote {
  font-weight: 620;
}

.biology-core-area-continue {
  position: relative;
  margin-top: clamp(58px, 7vw, 84px);
  padding-top: 32px;
  border-top: 0;
}

.biology-core-area-continue::before {
  position: absolute;
  top: 0;
  left: 0;
  width: min(280px, 42%);
  height: 2px;
  content: "";
  background: linear-gradient(90deg, rgba(40, 95, 73, 0.58), rgba(62, 111, 112, 0.2), transparent);
  clip-path: polygon(0 30%, 16% 15%, 34% 42%, 56% 22%, 77% 48%, 100% 28%, 100% 70%, 79% 62%, 55% 78%, 31% 58%, 12% 74%, 0 62%);
  transform: rotate(-0.22deg);
}

.biology-core-area-path-card {
  min-height: 150px;
  padding: 30px 20px 20px;
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--line);
  border-radius: 8px;
  box-shadow: none;
}

.biology-core-area-path-card::before {
  top: 17px;
  left: 20px;
  width: 34px;
  height: 2px;
  border-radius: 0;
}

.biology-core-area-path-card:hover {
  background: rgba(250, 252, 249, 0.96);
  border-color: rgba(40, 95, 73, 0.32);
  box-shadow: 0 8px 22px rgba(24, 35, 30, 0.07);
}

.biology-core-chapter-level-note,
.biology-endosymbiosis-evidence li,
.biology-core-area-placeholder {
  border-radius: 8px;
  box-shadow: none;
}

.biology-endosymbiosis-content {
  width: 100%;
  max-width: none;
}

.biology-endosymbiosis-content > section {
  margin-top: clamp(44px, 6vw, 64px);
}

.biology-endosymbiosis-content section > p + p {
  margin-top: 18px;
}

.biology-course-card:hover,
.biology-course-card:focus-within,
.exam-subject-card:hover,
.exam-subject-card:focus-within {
  box-shadow: 0 10px 28px rgba(24, 35, 30, 0.08);
  transform: translateY(-2px);
}

.subject-hub {
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.subject-overview-card {
  max-width: 980px;
  margin-bottom: 26px;
  padding: 0 0 20px;
  border-bottom-color: rgba(100, 112, 105, 0.2);
}

.subject-card,
.testimonial-card,
.category-card,
.resource-card,
.testimonial-cta {
  background: rgba(255, 255, 255, 0.86);
  border-color: var(--line);
  border-radius: 9px;
  box-shadow: var(--shadow-card);
}

.dictionary-card {
  background: rgba(255, 255, 255, 0.86);
  border-color: var(--line);
  border-radius: 9px;
  box-shadow: var(--shadow-card);
}

body[data-current-page="ordbog"] .dictionary-card {
  background: rgba(255, 255, 255, 0.87);
  border-color: rgba(221, 216, 231, 0.86);
}

.dictionary-card::before,
.dictionary-card[data-subjects~="biologi"][data-subjects~="naturgeografi"]::before,
.dictionary-card[data-subjects~="biologi"][data-subjects~="videnskabsteori"]::before,
.dictionary-card[data-subjects~="naturgeografi"][data-subjects~="videnskabsteori"]::before,
.dictionary-card[data-subjects~="biologi"][data-subjects~="naturgeografi"][data-subjects~="videnskabsteori"]::before {
  right: auto;
  left: 18px;
  width: min(170px, 44%);
  height: 2px;
  background: linear-gradient(90deg, rgba(40, 95, 73, 0.68), rgba(62, 111, 112, 0.18), transparent);
  border-radius: 0;
}

.dictionary-card[data-subject="naturgeografi"]::before,
.dictionary-card[data-subjects~="naturgeografi"]::before {
  background: linear-gradient(90deg, rgba(62, 111, 112, 0.7), rgba(62, 111, 112, 0.16), transparent);
}

.dictionary-card[data-subject="videnskabsteori"]::before,
.dictionary-card[data-subjects~="videnskabsteori"]::before {
  background: linear-gradient(90deg, rgba(103, 83, 139, 0.58), rgba(103, 83, 139, 0.14), transparent);
}

.dictionary-card:hover {
  box-shadow: 0 10px 28px rgba(24, 35, 30, 0.08);
  transform: translateY(-2px);
}

.dictionary-dialog-panel::before,
.dictionary-dialog-panel[data-subjects~="biologi"][data-subjects~="naturgeografi"]::before,
.dictionary-dialog-panel[data-subjects~="biologi"][data-subjects~="videnskabsteori"]::before,
.dictionary-dialog-panel[data-subjects~="naturgeografi"][data-subjects~="videnskabsteori"]::before {
  right: auto;
  left: 28px;
  width: min(220px, 42%);
  height: 2px;
  background: linear-gradient(90deg, rgba(40, 95, 73, 0.62), rgba(62, 111, 112, 0.16), transparent);
  border-radius: 0;
}

.subject-card {
  padding: clamp(22px, 2.4vw, 30px);
}

.subject-card:hover,
.testimonial-card:hover,
.category-card:hover,
.resource-card:hover {
  box-shadow: 0 10px 28px rgba(24, 35, 30, 0.08);
  transform: translateY(-2px);
}

.subject-mascot {
  border-color: rgba(221, 227, 222, 0.82);
  border-radius: 8px;
  box-shadow: none;
}

.subject-card .subject-level {
  box-shadow: none;
}

.testimonial-cta::before {
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: var(--green);
  border-radius: 0;
}

/* Quiet controls and navigation surfaces. */
.primary-button,
.card-button {
  background: var(--green-dark);
  border-radius: 7px;
  box-shadow: 0 5px 14px rgba(33, 77, 60, 0.14);
}

.primary-button:hover,
.primary-button:focus-visible,
.card-button:hover,
.card-button:focus-visible {
  background: #183f30;
  box-shadow: 0 7px 18px rgba(33, 77, 60, 0.18);
  transform: translateY(-1px);
}

.biology-course-menu,
.biology-sidebar,
.biology-mobile-menu {
  background: rgba(252, 253, 250, 0.9);
  border-color: rgba(221, 227, 222, 0.95);
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(24, 35, 30, 0.045);
}

.biology-course-menu,
.biology-sidebar {
  top: 76px;
  max-height: calc(100vh - 92px);
  padding: 12px;
}

.biology-course-menu-link {
  border-left-width: 2px;
}

.biology-core-levels-menu,
.biology-subtopic-menu {
  border-left-width: 1px;
}

.biology-course-menu a.is-active,
.biology-sidebar a.is-active,
.biology-mobile-menu a.is-active {
  color: var(--green-dark);
  background: #e8f0ea;
  box-shadow: inset 2px 0 0 var(--green);
}

.biology-core-toggle.is-parent-active,
.biology-topic-menu-link.is-parent-active,
.biology-core-area-menu-group > .biology-course-menu-link.is-parent-active {
  background: rgba(234, 241, 236, 0.8);
}

/* Academic figures and captions. */
.figure-block {
  margin-top: 34px;
}

.figure-media,
.biology-topic-hero-shot {
  background: #fbfcf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
}

.figure-media-button:hover,
.figure-media-button:focus-visible {
  border-color: rgba(40, 95, 73, 0.34);
  box-shadow: 0 8px 22px rgba(24, 35, 30, 0.07);
}

.figure-caption {
  gap: 3px;
  max-width: 760px;
  padding-top: 12px;
}

.figure-title {
  font-size: 0.96rem;
  font-weight: 760;
}

.figure-caption > .figure-description {
  margin-top: 2px;
  font-size: 0.88rem;
  line-height: 1.55;
}

.figure-caption > .figure-source {
  margin-top: 4px;
  color: #78827c;
  font-size: 0.76rem;
}

.figure-dialog-panel {
  height: calc(100vh - 36px);
  height: calc(100dvh - 36px);
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  background: #f8faf7;
  border-radius: 9px;
}

.figure-dialog-media {
  position: relative;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #f8faf7;
}

.figure-dialog-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  padding: clamp(18px, 3vw, 42px);
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
  filter: none;
}

.figure-dialog-caption {
  max-height: 220px;
  overflow-y: auto;
  background: #ffffff;
}

/* Notebook-like functional callouts. */
.biology-term,
.biology-exam-talking-note,
.biology-admission-note,
.biology-known-questions,
.exam-referral-card {
  border-left: 2px solid var(--green);
  border-radius: 7px;
}

.biology-term {
  padding: 12px 14px;
}

.biology-lars-inline-quote figcaption,
.biology-lars-quote {
  border-radius: 8px;
  box-shadow: none;
}

.site-footer {
  border-top-color: rgba(100, 112, 105, 0.22);
}

/* Tablet: keep the header on one compact line and let nav scroll. */
@media (max-width: 980px) {
  .site-header {
    align-items: center;
    flex-direction: row;
    min-height: 56px;
    gap: 12px;
    padding-block: 5px;
  }

  .main-nav {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

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

  .nav-button {
    flex: 0 0 auto;
  }

  .biology-workspace {
    display: block;
    padding-top: 14px;
  }

  .biology-main-column {
    max-width: none;
  }

  .about-ai-points {
    padding-top: 20px;
    padding-left: 0;
    border-top: 1px solid rgba(62, 111, 112, 0.35);
    border-left: 0;
  }
}

/* Mobile notebook rhythm. */
@media (max-width: 640px) {
  main,
  .site-footer {
    width: min(100% - 40px, var(--max-width));
  }

  .site-header {
    position: sticky;
    top: 0;
    width: 100%;
    min-height: 50px;
    padding: 4px 12px;
  }

  .site-header::before {
    inset: 0;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
  }

  .logo-copy {
    display: none;
  }

  .main-nav {
    margin: 0;
    padding: 0;
  }

  .nav-button {
    height: 38px;
    padding: 6px 9px;
    font-size: 0.8rem;
  }

  .page {
    padding-top: 14px;
    padding-bottom: 48px;
  }

  .biology-mobile-menu {
    margin: 6px 0 14px;
    padding: 7px;
  }

  .biology-mobile-menu > summary {
    min-height: 40px;
  }

  .biology-home-document,
  .chapter-document {
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(24, 35, 30, 0.045);
  }

  .chapter-document,
  .biology-course-card,
  .biology-panel,
  .biology-writing-panel {
    padding: 20px;
  }

  .biology-home-document .biology-hero,
  .biology-home-content {
    padding-right: 20px;
    padding-left: 20px;
  }

  .biology-home-document .biology-hero {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .biology-home-section,
  .biology-exam-section,
  .chapter-section {
    margin-top: 48px;
    padding-top: 25px;
  }

  .biology-home-content > .biology-home-section:first-child {
    margin-top: 0;
  }

  .biology-hero p:not(.eyebrow),
  .biology-course-intro,
  .chapter-lead,
  .chapter-section p,
  .biology-home-section p,
  .biology-exam-section p,
  .biology-figure-explanation p {
    font-size: 1rem;
    line-height: 1.7;
  }

  .figure-block {
    margin-top: 28px;
  }

  /* The game route needs more of the narrow screen than a reading article. */
  body[data-current-page="biologi"] .subject-layout:has(.biology-resource-game) {
    width: 100%;
  }

  body[data-current-page="biologi"] .article-surface:has(.biology-resource-game) {
    padding: 24px 10px 34px;
  }

  body[data-current-page="biologi"] .article-surface:has(.biology-resource-game) .article-title {
    overflow-wrap: normal;
    font-size: clamp(1.55rem, 7vw, 1.85rem);
    line-height: 1.04;
    white-space: nowrap;
  }

  .figure-dialog {
    padding: 8px;
  }

  .figure-dialog-panel {
    height: auto;
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    grid-template-rows: auto auto;
    overflow-y: auto;
  }

  .figure-dialog-media {
    padding: 14px;
    overflow: visible;
  }

  .figure-dialog-media img {
    position: static;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 50vh;
    max-height: 50dvh;
    padding: 0;
  }

  .figure-dialog-caption {
    max-height: none;
    padding: 16px;
    overflow: visible;
  }

  .subject-hub {
    padding: 0;
  }

  .subject-overview-card {
    padding: 0 0 18px;
  }

  .front-section {
    padding: 30px 0;
  }
}

/* Simple editorial rules: a thin, dark pen line without fade effects. */
.hero::after,
.biology-home-section::before,
.biology-exam-section::before,
.chapter-section::before,
.biology-core-area-continue::before,
.biology-core-area-path-card::before,
.subject-hub::before,
.subject-card::before,
.about-copy::before,
.about-section-card::before,
.dictionary-card::before,
.dictionary-card[data-subjects~="biologi"][data-subjects~="naturgeografi"]::before,
.dictionary-card[data-subjects~="biologi"][data-subjects~="videnskabsteori"]::before,
.dictionary-card[data-subjects~="naturgeografi"][data-subjects~="videnskabsteori"]::before,
.dictionary-card[data-subjects~="biologi"][data-subjects~="naturgeografi"][data-subjects~="videnskabsteori"]::before,
.dictionary-dialog-panel::before,
.dictionary-dialog-panel[data-subjects~="biologi"][data-subjects~="naturgeografi"]::before,
.dictionary-dialog-panel[data-subjects~="biologi"][data-subjects~="videnskabsteori"]::before,
.dictionary-dialog-panel[data-subjects~="naturgeografi"][data-subjects~="videnskabsteori"]::before {
  height: 1px;
  background: var(--pen-line);
  border-radius: 0;
  clip-path: none;
  box-shadow: none;
  opacity: 1;
  transform: none;
}

.subject-geography::before,
.dictionary-card[data-subject="naturgeografi"]::before,
.dictionary-card[data-subjects~="naturgeografi"]::before {
  background: var(--pen-line);
}

.dictionary-card[data-subject="videnskabsteori"]::before,
.dictionary-card[data-subjects~="videnskabsteori"]::before {
  background: var(--pen-line);
}

.testimonial-cta::before {
  width: 1px;
  background: var(--pen-line);
  border-radius: 0;
}

/* Ordbog: hele kortets kant viser fagområdet. */
body[data-current-page="ordbog"] .dictionary-card {
  border: 2px solid rgba(42, 126, 82, 0.4);
}

body[data-current-page="ordbog"] .dictionary-card[data-subject="naturgeografi"] {
  border-color: rgba(42, 127, 164, 0.42);
}

body[data-current-page="ordbog"] .dictionary-card[data-subject="videnskabsteori"] {
  border-color: rgba(111, 83, 157, 0.38);
}

body[data-current-page="ordbog"] .dictionary-card::before {
  display: none;
}

/* Floating glass navigation shared by every page. */
.site-header {
  top: 10px;
  width: min(calc(100% - 32px), var(--max-width));
  min-height: 62px;
  margin: 10px auto 0;
  padding: 7px 14px;
  isolation: isolate;
}

.site-header::before {
  inset: 0;
  background: rgba(248, 250, 247, 0.76);
  border: 1px solid rgba(27, 32, 30, 0.17);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(24, 35, 30, 0.09);
  backdrop-filter: blur(18px) saturate(1.06);
  -webkit-backdrop-filter: blur(18px) saturate(1.06);
}

@media (max-width: 980px) {
  .site-header {
    top: 8px;
    width: calc(100% - 24px);
    min-height: 56px;
    margin-top: 8px;
    padding: 6px 10px;
  }

  .site-header::before {
    border-radius: 14px;
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 6px;
    width: calc(100% - 16px);
    min-height: 50px;
    margin-top: 6px;
    padding: 5px 8px;
  }

  .site-header::before {
    background: rgba(248, 250, 247, 0.8);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(24, 35, 30, 0.08);
  }
}

/* Align editorial rules with their modules instead of using uneven fragments. */
.hero::after,
.biology-home-section::before,
.biology-exam-section::before,
.chapter-section::before,
.biology-core-area-continue::before,
.subject-card::before,
.about-copy::before,
.about-section-card::before,
.dictionary-dialog-panel::before,
.dictionary-dialog-panel[data-subjects~="biologi"][data-subjects~="naturgeografi"]::before,
.dictionary-dialog-panel[data-subjects~="biologi"][data-subjects~="videnskabsteori"]::before,
.dictionary-dialog-panel[data-subjects~="naturgeografi"][data-subjects~="videnskabsteori"]::before {
  right: 0;
  left: 0;
  width: 100%;
}

.biology-core-area-path-card::before {
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
}

/* The hero rule already separates these two front-page sections. */
.subject-hub::before {
  display: none;
}

.subject-overview-card {
  border-bottom: 0;
}

/* Let text fill the available reading surface instead of stopping at arbitrary widths. */
.biology-main-column .biology-section-heading,
.biology-main-column .chapter-document > header,
.biology-main-column .biology-course-header,
.biology-main-column .biology-core-area-opening,
.biology-main-column .biology-core-area-existing-content,
.biology-main-column .biology-core-existing-copy,
.biology-main-column .biology-tree-of-life-header,
.biology-main-column .biology-tree-of-life-copy,
.biology-main-column .biology-tree-of-life-part,
.biology-main-column .biology-known-questions p,
.biology-main-column .biology-hero p:not(.eyebrow),
.biology-main-column .biology-course-intro,
.biology-main-column .chapter-lead,
.biology-main-column .chapter-section p,
.biology-main-column .biology-home-section p,
.biology-main-column .biology-exam-section p,
.biology-main-column .biology-figure-explanation p,
.biology-main-column .chapter-section > h3,
.biology-main-column .chapter-section > ul,
.biology-main-column .chapter-section > ol,
.biology-main-column .figure-caption {
  width: 100%;
  max-width: none;
}

/* Prokaryote cell: long-form teaching page with a few purposeful interactions. */
.biology-prokaryote-page {
  display: block;
  padding-top: clamp(8px, 2vw, 18px);
}

.biology-prokaryote-hero,
.biology-prokaryote-reading-copy,
.biology-prokaryote-opening-quote {
  width: 100%;
  max-width: 800px;
}

.biology-prokaryote-hero h1 {
  max-width: 900px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.8rem, 6.6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.biology-prokaryote-subtitle {
  margin: 18px 0 28px;
  color: var(--green-dark);
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.25;
}

.biology-prokaryote-reading-copy p,
.biology-prokaryote-section-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.025rem, 1.15vw, 1.1rem);
  line-height: 1.74;
}

.biology-prokaryote-reading-copy p + p,
.biology-prokaryote-section-copy p + p {
  margin-top: 19px;
}

.biology-prokaryote-opening-quote {
  margin-top: clamp(30px, 4vw, 42px);
}

.biology-prokaryote-section {
  margin-top: clamp(64px, 8vw, 96px);
  padding-top: clamp(38px, 5vw, 56px);
  border-top: 1px solid rgba(100, 112, 105, 0.22);
}

.biology-prokaryote-section h2 {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: clamp(2rem, 4.3vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.biology-prokaryote-section-copy {
  width: 100%;
  max-width: 800px;
}

.biology-prokaryote-cell-explorer {
  margin-top: clamp(30px, 5vw, 46px);
  padding: clamp(12px, 2vw, 18px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.biology-prokaryote-cell-figure {
  margin: 0;
}

.biology-prokaryote-cell-image-wrap {
  position: relative;
  overflow: hidden;
  background: #fbfcf9;
  border-radius: 7px;
}

.biology-prokaryote-cell-image {
  display: block;
  width: 100%;
  height: auto;
  transition: filter 180ms ease;
}

.biology-prokaryote-cell-image-wrap.has-prokaryote-highlight .biology-prokaryote-cell-image {
  filter: brightness(0.965) saturate(0.92);
}

.biology-prokaryote-cell-overlay {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.biology-prokaryote-highlight {
  color: #d99b26;
  opacity: 0;
  filter: drop-shadow(0 0 8px rgba(242, 189, 98, 0.58));
  transition: opacity 130ms ease;
}

.biology-prokaryote-highlight.is-visible {
  opacity: 1;
}

.biology-prokaryote-highlight.is-preview {
  opacity: 0.72;
}

.biology-prokaryote-highlight.is-pulsing {
  animation: biology-prokaryote-highlight-pulse 360ms ease-out 1;
}

.biology-prokaryote-highlight-area {
  fill: rgba(242, 189, 98, 0.16);
  stroke: currentColor;
  stroke-width: 5;
  stroke-linejoin: round;
}

.biology-prokaryote-highlight-line {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.biology-prokaryote-highlight--ribosomes circle {
  fill: rgba(242, 189, 98, 0.22);
  stroke: currentColor;
  stroke-width: 3;
}

@keyframes biology-prokaryote-highlight-pulse {
  0% { opacity: 0.42; }
  58% { opacity: 1; }
  100% { opacity: 1; }
}

.biology-prokaryote-structure-button:focus-visible,
.biology-prokaryote-phase-button:focus-visible {
  outline: 3px solid rgba(20, 84, 63, 0.35);
  outline-offset: 3px;
}

.biology-prokaryote-cell-caption {
  padding: 15px 3px 0;
}

.biology-prokaryote-cell-caption > p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.biology-prokaryote-structure-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.biology-prokaryote-structure-button,
.biology-prokaryote-phase-button {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  color: var(--ink-soft);
  background: #f7faf7;
  border: 1px solid rgba(31, 122, 85, 0.16);
  border-radius: 7px;
  font: 700 0.88rem/1.3 system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.biology-prokaryote-structure-button {
  justify-content: center;
  text-align: center;
}

.biology-prokaryote-phase-button > span {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  color: #fffdf7;
  background: var(--green-dark);
  border-radius: 50%;
  font-size: 0.76rem;
  place-items: center;
}

.biology-prokaryote-structure-button:hover,
.biology-prokaryote-structure-button.is-active,
.biology-prokaryote-phase-button:hover,
.biology-prokaryote-phase-button.is-active {
  color: var(--green-dark);
  background: #ebf4ee;
  border-color: rgba(31, 122, 85, 0.35);
}

.biology-prokaryote-phase-button.is-active > span {
  color: #263b32;
  background: #f2bd62;
}

.biology-prokaryote-structure-button.is-active {
  box-shadow: inset 0 0 0 1px rgba(31, 122, 85, 0.48);
}

.biology-prokaryote-structure-details,
.biology-prokaryote-phase-details {
  margin-top: 14px;
  padding: clamp(18px, 3vw, 26px);
  background: rgba(232, 242, 235, 0.65);
  border-left: 3px solid var(--green);
  border-radius: 6px;
}

.biology-prokaryote-structure-details article[hidden],
.biology-prokaryote-phase-details article[hidden] {
  display: none;
}

.biology-prokaryote-structure-details h3,
.biology-prokaryote-phase-details h3 {
  margin: 0 0 11px;
  color: var(--green-dark);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.25;
}

.biology-prokaryote-structure-details p,
.biology-prokaryote-phase-details p {
  max-width: 800px;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.68;
}

.biology-prokaryote-structure-details p + p,
.biology-prokaryote-phase-details p + p {
  margin-top: 13px;
}

.biology-prokaryote-shape-figure {
  margin: clamp(30px, 5vw, 44px) 0 0;
}

.biology-prokaryote-shape-carousel {
  position: relative;
}

.biology-prokaryote-shape-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.biology-prokaryote-shape-counter {
  color: #60726a;
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.biology-prokaryote-shape-arrows {
  display: flex;
  gap: 8px;
}

.biology-prokaryote-shape-arrows button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  color: #f8fbf8;
  font-size: 1.15rem;
  line-height: 1;
  background: var(--green-dark);
  border: 1px solid var(--green-dark);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 150ms ease, background-color 150ms ease, opacity 150ms ease;
}

.biology-prokaryote-shape-arrows button:hover:not(:disabled) {
  background: #163f34;
  transform: translateY(-1px);
}

.biology-prokaryote-shape-arrows button:focus-visible,
.biology-prokaryote-shape-dots button:focus-visible,
.biology-prokaryote-shape-grid:focus-visible {
  outline: 3px solid rgba(199, 145, 52, 0.62);
  outline-offset: 3px;
}

.biology-prokaryote-shape-arrows button:disabled {
  color: #82928b;
  background: #eef3ef;
  border-color: #d7e0da;
  cursor: default;
  opacity: 0.78;
}

.biology-prokaryote-shape-grid {
  display: flex;
  align-items: flex-start;
  gap: clamp(16px, 2.4vw, 24px);
  margin: 0;
  padding: 3px 7% 20px 3px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  transition: height 180ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .biology-prokaryote-shape-grid {
    transition: none;
  }
}

.biology-prokaryote-shape-grid::-webkit-scrollbar {
  display: none;
}

.biology-prokaryote-shape-card {
  --bacteria-shape-header: rgba(218, 237, 228, 0.96);
  --bacteria-shape-accent: #245d4a;
  display: flex;
  flex-direction: column;
  flex: 0 0 min(96%, 1080px);
  min-width: 0;
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: rgba(251, 253, 251, 0.99);
  border: 1px solid rgba(62, 103, 85, 0.2);
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(24, 57, 46, 0.09);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.biology-prokaryote-shape-card[data-bacteria-shape="kokker"] {
  --bacteria-shape-header: rgba(232, 224, 241, 0.96);
  --bacteria-shape-accent: #654879;
}

.biology-prokaryote-shape-card[data-bacteria-shape="stavbakterier"] {
  --bacteria-shape-header: rgba(210, 235, 229, 0.96);
  --bacteria-shape-accent: #176452;
}

.biology-prokaryote-shape-card[data-bacteria-shape="vibrioner"] {
  --bacteria-shape-header: rgba(211, 235, 238, 0.96);
  --bacteria-shape-accent: #246473;
}

.biology-prokaryote-shape-card[data-bacteria-shape="spiriller"] {
  --bacteria-shape-header: rgba(218, 229, 239, 0.96);
  --bacteria-shape-accent: #315f7b;
}

.biology-prokaryote-shape-card[data-bacteria-shape="spirokaeter"] {
  --bacteria-shape-header: rgba(229, 222, 241, 0.96);
  --bacteria-shape-accent: #674d86;
}

.biology-prokaryote-shape-card[data-bacteria-shape="filamentoese-pleomorfe"] {
  --bacteria-shape-header: rgba(222, 234, 211, 0.96);
  --bacteria-shape-accent: #49683a;
}

.biology-prokaryote-shape-heading {
  padding: clamp(18px, 2.2vw, 24px) clamp(24px, 3vw, 34px);
  text-align: center;
  background: var(--bacteria-shape-header);
  border-bottom: 1px solid rgba(52, 78, 66, 0.13);
}

.biology-prokaryote-page .biology-prokaryote-shape-card .biology-prokaryote-shape-heading h3 {
  max-width: none;
  margin: 0;
  color: var(--bacteria-shape-accent);
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
}

.biology-prokaryote-shape-heading p {
  margin: 6px 0 0;
  color: color-mix(in srgb, var(--bacteria-shape-accent) 76%, #5e6c65);
  font-size: 0.98rem;
  line-height: 1.35;
}

.biology-prokaryote-shape-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  margin-top: clamp(18px, 2.4vw, 24px);
  padding: 0 clamp(20px, 2.8vw, 30px);
  gap: clamp(12px, 1.8vw, 18px);
}

.biology-prokaryote-shape-image {
  min-width: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(67, 105, 91, 0.13);
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(30, 62, 51, 0.06);
}

.biology-prokaryote-shape-image img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: #faf9f5;
}

.biology-prokaryote-shape-image--dark img {
  background: #07100f;
}

.biology-prokaryote-shape-content {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: clamp(24px, 3.4vw, 40px);
  align-items: start;
  padding: clamp(20px, 2.8vw, 30px);
}

.biology-prokaryote-shape-narrative,
.biology-prokaryote-shape-examples {
  min-width: 0;
}

.biology-prokaryote-shape-description {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.45vw, 1.08rem);
  line-height: 1.72;
}

.biology-prokaryote-shape-examples {
  padding-left: clamp(22px, 3vw, 34px);
  border-left: 1px solid rgba(63, 112, 92, 0.2);
}

.biology-prokaryote-shape-examples h4 {
  margin: 0 0 10px;
  color: var(--bacteria-shape-accent);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.25;
}

.biology-prokaryote-shape-examples ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.biology-prokaryote-shape-examples li {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.48;
  border-top: 1px solid rgba(63, 112, 92, 0.14);
}

.biology-prokaryote-shape-examples li:first-child {
  padding-top: 0;
  border-top: 0;
}

.biology-prokaryote-shape-examples li:last-child {
  padding-bottom: 0;
}

.biology-prokaryote-shape-example-name {
  color: var(--bacteria-shape-accent);
  font-weight: 680;
}

.biology-prokaryote-shape-example-impact {
  margin-top: 2px;
  color: #465a51;
}

.biology-prokaryote-shape-example-impact strong {
  color: var(--bacteria-shape-accent);
}

.biology-prokaryote-shape-story {
  margin-top: clamp(18px, 2.5vw, 24px);
  padding-top: clamp(16px, 2.2vw, 21px);
  border-top: 1px solid rgba(63, 112, 92, 0.2);
}

.biology-prokaryote-shape-story h4 {
  margin: 0 0 9px;
  color: var(--bacteria-shape-accent);
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  line-height: 1.25;
}

.biology-prokaryote-shape-story p {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(0.98rem, 1.4vw, 1.06rem);
  line-height: 1.68;
}

.biology-prokaryote-shape-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 28px;
  margin-top: 2px;
}

.biology-prokaryote-shape-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  background: #b8c8c0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: width 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.biology-prokaryote-shape-dots button:hover {
  background: #78988a;
  transform: scale(1.08);
}

.biology-prokaryote-shape-dots button[aria-current="true"] {
  width: 28px;
  background: var(--green-dark);
}

.biology-prokaryote-shape-figure figcaption {
  margin-top: 18px;
  color: #68756e;
  font-size: 0.9rem;
  line-height: 1.62;
}

.biology-prokaryote-shape-copy {
  margin-top: clamp(28px, 4vw, 38px);
}

.biology-prokaryote-shape-copy h3,
.biology-prokaryote-role-story h3 {
  margin: clamp(30px, 4vw, 40px) 0 11px;
  color: var(--green-dark);
  font-size: clamp(1.3rem, 2.3vw, 1.65rem);
  line-height: 1.3;
}

.biology-prokaryote-shape-copy h3:first-child,
.biology-prokaryote-role-story h3:first-child {
  margin-top: 0;
}

.biology-prokaryote-gram-figure {
  margin: clamp(30px, 5vw, 44px) 0 0;
}

.biology-prokaryote-envelope-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.biology-prokaryote-envelope {
  padding: clamp(18px, 3vw, 26px);
  background: #fbfcf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.biology-prokaryote-envelope h3 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
}

.biology-prokaryote-envelope p {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.biology-prokaryote-envelope-drawing {
  display: flex;
  min-height: 122px;
  overflow: hidden;
  flex-direction: column;
  justify-content: flex-end;
  background: #e6f5f2;
  border: 1px solid rgba(41, 99, 79, 0.22);
  border-radius: 7px;
}

.biology-prokaryote-envelope-drawing span {
  display: block;
  width: 100%;
}

.biology-prokaryote-envelope--positive .biology-prokaryote-envelope-wall {
  height: 58px;
  background: repeating-linear-gradient(0deg, #74569a 0 5px, #8f73b1 5px 9px);
}

.biology-prokaryote-envelope--negative .biology-prokaryote-envelope-outer {
  height: 20px;
  background: repeating-linear-gradient(90deg, #397d83 0 10px, #5c999d 10px 15px);
}

.biology-prokaryote-envelope--negative .biology-prokaryote-envelope-wall {
  height: 10px;
  margin-block: 16px;
  background: #8f73b1;
}

.biology-prokaryote-envelope-inner {
  height: 16px;
  background: repeating-linear-gradient(90deg, #d4a32f 0 8px, #edc65f 8px 13px);
}

.biology-prokaryote-envelope-cytoplasm {
  height: 36px;
  background: #cdebe7;
}

.biology-prokaryote-cell-figure figcaption,
.biology-prokaryote-gram-figure figcaption,
.biology-prokaryote-fission-figure figcaption,
.biology-prokaryote-growth-figure figcaption {
  margin-top: 11px;
  color: #68756e;
  font-size: 0.84rem;
  line-height: 1.55;
}

.biology-prokaryote-gram-table-wrap {
  margin-top: 26px;
}

.biology-prokaryote-gram-table caption {
  font-size: 1rem;
}

.biology-prokaryote-process-heading {
  margin: clamp(36px, 5vw, 52px) 0 18px;
  color: var(--ink);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
}

.biology-prokaryote-gram-intro,
.biology-prokaryote-gram-result {
  max-width: 800px;
  color: var(--ink-soft);
  line-height: 1.68;
}

.biology-prokaryote-gram-intro {
  margin: -7px 0 20px;
}

.biology-prokaryote-gram-result {
  margin: 22px 0 0;
  padding: 16px 18px;
  background: rgba(232, 242, 235, 0.65);
  border-left: 3px solid var(--green);
}

.biology-prokaryote-gram-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.biology-prokaryote-gram-steps li {
  position: relative;
  padding: 16px 14px;
  background: #fbfcf9;
  border-top: 2px solid rgba(31, 122, 85, 0.45);
}

.biology-prokaryote-gram-steps li > span {
  display: grid;
  width: 30px;
  height: 30px;
  margin-bottom: 11px;
  color: #fffdf7;
  background: var(--green-dark);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
  place-items: center;
}

.biology-prokaryote-gram-steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.biology-prokaryote-check {
  margin-top: 24px;
  overflow: hidden;
  background: rgba(255, 253, 247, 0.92);
  border: 1px solid rgba(216, 154, 56, 0.34);
  border-radius: 8px;
}

.biology-prokaryote-check > summary,
.biology-prokaryote-learning-goals > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 18px 20px;
  color: var(--ink);
  font-weight: 750;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}

.biology-prokaryote-check > summary::-webkit-details-marker,
.biology-prokaryote-learning-goals > summary::-webkit-details-marker {
  display: none;
}

.biology-prokaryote-check > summary::marker,
.biology-prokaryote-learning-goals > summary::marker {
  content: "";
}

.biology-prokaryote-check > summary:focus-visible,
.biology-prokaryote-learning-goals > summary:focus-visible {
  outline: 3px solid #f2bd62;
  outline-offset: -4px;
}

.biology-prokaryote-check[open] > summary .biology-endosymbiosis-chevron,
.biology-prokaryote-learning-goals[open] > summary .biology-endosymbiosis-chevron {
  transform: rotate(225deg);
}

.biology-prokaryote-check > div {
  padding: 0 20px 19px;
}

.biology-prokaryote-check > div p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.68;
}

.biology-prokaryote-fission-figure {
  margin: clamp(30px, 5vw, 44px) 0 0;
  padding: clamp(20px, 3vw, 28px);
  background: #fbfcf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.biology-prokaryote-fission-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.biology-prokaryote-fission-flow li {
  position: relative;
  display: grid;
  min-width: 0;
  align-content: start;
  justify-items: center;
}

.biology-prokaryote-fission-flow li:not(:last-child)::after {
  position: absolute;
  top: 31px;
  right: -18px;
  color: #8a9a92;
  content: "→";
  font-size: 1.25rem;
}

.biology-prokaryote-fission-flow p {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.45;
  text-align: center;
}

.biology-prokaryote-fission-cell,
.biology-prokaryote-fission-daughters > span {
  position: relative;
  width: min(100%, 128px);
  height: 64px;
  overflow: hidden;
  background: #cdebe7;
  border: 5px solid #4b9388;
  border-radius: 999px;
  box-shadow: inset 0 0 0 3px #e8bf53;
}

.biology-prokaryote-fission-cell--long,
.biology-prokaryote-fission-cell--septum {
  width: min(100%, 154px);
}

.biology-prokaryote-fission-cell > span {
  position: absolute;
  top: 20px;
  left: 29%;
  width: 38%;
  height: 19px;
  border: 3px solid #77569c;
  border-radius: 48% 55% 44% 58%;
  transform: rotate(-10deg);
}

.biology-prokaryote-fission-cell--long > span:first-child,
.biology-prokaryote-fission-cell--septum > span:first-child {
  left: 15%;
  width: 27%;
}

.biology-prokaryote-fission-cell--long > span:nth-child(2),
.biology-prokaryote-fission-cell--septum > span:nth-child(2) {
  right: 15%;
  left: auto;
  width: 27%;
  transform: rotate(11deg);
}

.biology-prokaryote-fission-cell--septum::after {
  position: absolute;
  top: -3px;
  bottom: -3px;
  left: 50%;
  width: 5px;
  content: "";
  background: #4b9388;
  box-shadow: 0 0 0 3px #e8bf53;
  transform: translateX(-50%);
}

.biology-prokaryote-fission-daughters {
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 5px;
}

.biology-prokaryote-fission-daughters > span {
  width: 66px;
}

.biology-prokaryote-fission-daughters > span::after {
  position: absolute;
  top: 20px;
  left: 18px;
  width: 25px;
  height: 18px;
  border: 3px solid #77569c;
  border-radius: 50%;
  content: "";
}

.biology-prokaryote-growth-explorer {
  margin-top: clamp(30px, 5vw, 44px);
}

.biology-prokaryote-growth-figure {
  margin: 0;
  padding: clamp(10px, 2vw, 16px);
  background: #fbfcf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.biology-prokaryote-growth-figure canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.biology-prokaryote-phase-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.biology-prokaryote-phase-button {
  justify-content: center;
  text-align: center;
}

.biology-prokaryote-equation {
  padding-block: 3px;
  color: var(--green-dark) !important;
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: 0.01em;
}

.biology-prokaryote-model-limit {
  margin-top: 22px;
  padding: 18px 20px;
  background: rgba(244, 247, 244, 0.9);
  border-left: 3px solid rgba(79, 103, 91, 0.56);
}

.biology-prokaryote-model-limit h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.18rem;
}

.biology-prokaryote-model-limit p {
  font-size: 0.98rem;
}

.biology-prokaryote-context-formula {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 12px;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  padding: clamp(18px, 3vw, 24px);
  color: #7b877f;
  background: rgba(255, 253, 247, 0.9);
  border: 1px solid rgba(216, 154, 56, 0.32);
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1.45;
  text-align: center;
}

.biology-prokaryote-context-formula span:nth-child(odd) {
  color: var(--ink);
  font-weight: 760;
}

.biology-prokaryote-role-story {
  margin-top: clamp(34px, 5vw, 46px);
}

.biology-prokaryote-plasmid-body > p,
.biology-prokaryote-plasmid-body > h3,
.biology-prokaryote-plasmid-body > .biology-prokaryote-plasmid-flow,
.biology-prokaryote-plasmid-body > .biology-prokaryote-plasmid-types {
  max-width: 880px;
}

.biology-prokaryote-plasmid-body > h3 {
  margin: clamp(34px, 5vw, 48px) 0 12px;
  color: var(--green-dark);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.25;
}

.biology-prokaryote-plasmid-body > p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.72;
}

.biology-prokaryote-plasmid-body > p + p {
  margin-top: 16px;
}

.biology-prokaryote-plasmid-body > p:first-child,
.biology-prokaryote-resistance-body > p:first-child {
  margin-top: 20px;
}

.biology-prokaryote-plasmid-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.biology-prokaryote-plasmid-flow li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 14px;
  background: #f7faf7;
  border: 1px solid rgba(31, 122, 85, 0.17);
  border-radius: 7px;
}

.biology-prokaryote-plasmid-flow li > span {
  display: grid;
  width: 28px;
  height: 28px;
  color: #fffdf7;
  background: var(--green-dark);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 800;
  place-items: center;
}

.biology-prokaryote-plasmid-flow p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

.biology-prokaryote-plasmid-types {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 28px;
  margin: 22px 0 0;
}

.biology-prokaryote-plasmid-types > div {
  padding-top: 15px;
  border-top: 2px solid rgba(31, 122, 85, 0.28);
}

.biology-prokaryote-plasmid-types dt {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.4;
}

.biology-prokaryote-plasmid-types dd {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.6;
}

.biology-prokaryote-plasmid-note {
  margin-top: 24px !important;
  padding: 16px 18px;
  background: rgba(232, 242, 235, 0.65);
  border-left: 3px solid var(--green);
}

.biology-prokaryote-resistance-body > p,
.biology-prokaryote-resistance-body > h3,
.biology-prokaryote-resistance-body > figure,
.biology-prokaryote-resistance-body > .biology-prokaryote-checks {
  max-width: 800px;
}

.biology-prokaryote-resistance-body > h3,
.biology-prokaryote-transfer-grid h3,
.biology-prokaryote-checks > h3 {
  margin: clamp(34px, 5vw, 48px) 0 12px;
  color: var(--green-dark);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.25;
}

.biology-prokaryote-resistance-body > p,
.biology-prokaryote-transfer-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.72;
}

.biology-prokaryote-resistance-body > p + p {
  margin-top: 16px;
}

.biology-prokaryote-transfer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 42px;
}

.biology-prokaryote-transfer-grid section {
  padding-top: 18px;
  border-top: 2px solid rgba(31, 122, 85, 0.3);
}

.biology-prokaryote-transfer-grid h3 {
  margin-top: 0;
}

.biology-prokaryote-resistance-quote {
  margin-top: 42px;
}

.biology-prokaryote-checks {
  margin-top: 48px;
  padding-top: 1px;
  border-top: 1px solid rgba(31, 122, 85, 0.18);
}

.biology-prokaryote-checks > h3 {
  margin-top: 30px;
}

.biology-prokaryote-checks .biology-prokaryote-check + .biology-prokaryote-check {
  margin-top: 10px;
}

.biology-prokaryote-learning-goals {
  margin-top: clamp(64px, 8vw, 92px);
  overflow: hidden;
  background: #f4f8f5;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.biology-prokaryote-learning-goals > summary {
  padding: 21px 22px;
  color: var(--green-dark);
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
}

.biology-prokaryote-learning-goals > div {
  padding: 0 22px 24px;
}

.biology-prokaryote-level-intro,
.biology-prokaryote-level-note {
  max-width: 800px;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.biology-prokaryote-level-goals {
  margin-top: 22px;
}

.biology-prokaryote-learning-goals .biology-core-skill-card {
  gap: 13px;
  padding: 19px;
  border-radius: 10px;
  box-shadow: none;
}

.biology-prokaryote-learning-goals .biology-core-skill-card-heading {
  margin: 0;
}

.biology-prokaryote-learning-goals .biology-core-skill-card > p {
  font-size: 0.9rem;
}

.biology-prokaryote-learning-goals .chapter-goal-list {
  display: block;
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

.biology-prokaryote-learning-goals .chapter-goal-list li + li {
  margin-top: 8px;
}

.biology-prokaryote-level-note {
  margin-top: 18px;
  color: #748078;
  font-size: 0.82rem;
}

.biology-prokaryote-learning-goals li::marker {
  color: var(--green);
}

.biology-prokaryote-sources {
  max-width: 800px;
  margin-top: 28px;
  padding-top: 17px;
  border-top: 1px solid rgba(31, 122, 85, 0.14);
}

.biology-prokaryote-sources p {
  margin: 0;
  color: #748078;
  font-size: 0.78rem;
  line-height: 1.65;
}

.biology-prokaryote-sources a {
  color: var(--green-dark);
  font-weight: 680;
}

@media (prefers-reduced-motion: no-preference) {
  .biology-prokaryote-structure-details article:not([hidden]),
  .biology-prokaryote-phase-details article:not([hidden]),
  .biology-prokaryote-check[open] > div,
  .biology-prokaryote-learning-goals[open] > div {
    animation: biologyEndosymbiosisReveal 180ms ease both;
  }
}

@media (max-width: 820px) {
  .biology-prokaryote-structure-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .biology-prokaryote-shape-card {
    flex-basis: 96%;
  }

  .biology-prokaryote-shape-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .biology-prokaryote-shape-examples {
    padding: 18px 0 0;
    border-top: 1px solid rgba(63, 112, 92, 0.2);
    border-left: 0;
  }

  .biology-prokaryote-shape-grid,
  .biology-prokaryote-plasmid-types {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .biology-prokaryote-gram-steps,
  .biology-prokaryote-fission-flow,
  .biology-prokaryote-plasmid-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .biology-prokaryote-fission-flow li:nth-child(2)::after {
    display: none;
  }

  .biology-prokaryote-transfer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

}

@media (max-width: 620px) {
  .biology-prokaryote-page {
    padding-top: 2px;
  }

  .biology-prokaryote-hero h1 {
    font-size: clamp(2.5rem, 14vw, 3.6rem);
  }

  .biology-prokaryote-subtitle {
    margin-top: 13px;
  }

  .biology-prokaryote-section {
    margin-top: 56px;
    padding-top: 34px;
  }

  .biology-prokaryote-cell-explorer {
    margin-right: -8px;
    margin-left: -8px;
    padding: 8px;
  }

  .biology-prokaryote-cell-caption > p {
    margin-top: 3px;
  }

  .biology-prokaryote-shape-controls {
    margin-bottom: 10px;
  }

  .biology-prokaryote-shape-arrows button {
    width: 42px;
    height: 42px;
  }

  .biology-prokaryote-shape-grid {
    gap: 12px;
    padding-right: 8%;
    padding-bottom: 16px;
  }

  .biology-prokaryote-shape-card {
    gap: 0;
    padding: 0;
    border-radius: 8px;
  }

  .biology-prokaryote-shape-heading {
    padding: 20px 18px;
  }

  .biology-prokaryote-shape-images {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-top: 16px;
    padding: 0 16px;
  }

  .biology-prokaryote-shape-content {
    padding: 18px 16px 20px;
  }

  .biology-prokaryote-shape-image {
    border-radius: 6px;
  }

  .biology-prokaryote-shape-examples {
    padding: 16px 0 0;
  }

  .biology-prokaryote-shape-story {
    margin-top: 18px;
    padding: 16px 0 0;
  }

  .biology-prokaryote-structure-nav,
  .biology-prokaryote-shape-grid,
  .biology-prokaryote-envelope-pair,
  .biology-prokaryote-gram-steps,
  .biology-prokaryote-fission-flow,
  .biology-prokaryote-phase-nav,
  .biology-prokaryote-plasmid-flow,
  .biology-prokaryote-plasmid-types {
    grid-template-columns: 1fr;
  }

  .biology-prokaryote-phase-button {
    justify-content: flex-start;
    text-align: left;
  }

  .biology-prokaryote-fission-flow {
    gap: 38px;
  }

  .biology-prokaryote-fission-flow li:not(:last-child)::after,
  .biology-prokaryote-fission-flow li:nth-child(2)::after {
    top: auto;
    right: 50%;
    bottom: -32px;
    display: block;
    content: "↓";
    transform: translateX(50%);
  }

  .biology-prokaryote-gram-table-wrap {
    overflow: visible;
  }

  .biology-prokaryote-check > summary,
  .biology-prokaryote-learning-goals > summary {
    gap: 14px;
    padding-right: 17px;
    padding-left: 17px;
  }

  .biology-prokaryote-check > div,
  .biology-prokaryote-learning-goals > div {
    padding-right: 17px;
    padding-left: 17px;
  }
}

/* Eksamen og prøver: rolig læseflade med faste niveau-farver. */
.biology-exam-course > .biology-course-header {
  max-width: 820px;
  padding-bottom: clamp(28px, 4vw, 38px);
}

.biology-exam-section {
  margin-top: 24px;
  padding-top: 0;
  padding-bottom: 0;
}

.biology-exam-course .biology-exam-section::before {
  display: none;
}

.biology-exam-section > .biology-section-heading {
  max-width: 820px;
  margin-top: 28px;
}

.biology-exam-talking-note {
  max-width: 880px;
  margin: 30px 0 0;
  padding: 2px 0 2px 22px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-left: 3px solid var(--amber);
  border-radius: 0;
}

.biology-exam-talking-note strong {
  display: block;
  margin-bottom: 8px;
  color: #76501c;
  font-family: var(--font-heading);
  font-size: 1.08rem;
}

.biology-exam-talking-note p {
  margin: 0;
  font-size: 1rem;
}

.biology-exam-talking-note p + p {
  margin-top: 10px;
}

.biology-exam-level-switcher {
  margin-top: clamp(26px, 4vw, 36px);
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.biology-exam-level-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  background: transparent;
  border-bottom: 1px solid var(--line);
}

.biology-exam-level-tabs button {
  --exam-level-accent: var(--green);
  --exam-level-marker: var(--green);
  --exam-level-soft: rgba(31, 122, 85, 0.09);
  min-height: 62px;
  padding: 13px 18px 11px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-bottom: 4px solid transparent;
  border-radius: 0;
  box-shadow: none;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 850;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.biology-exam-level-tabs button[data-exam-level="b"] {
  --exam-level-accent: var(--blue-dark);
  --exam-level-marker: var(--blue-dark);
  --exam-level-soft: rgba(31, 93, 118, 0.09);
}

.biology-exam-level-tabs button[data-exam-level="a"] {
  --exam-level-accent: #76501c;
  --exam-level-marker: var(--amber);
  --exam-level-soft: rgba(216, 154, 56, 0.12);
}

.biology-exam-level-tabs button:hover {
  color: var(--exam-level-accent);
  background: var(--exam-level-soft);
}

.biology-exam-level-tabs button[aria-selected="true"] {
  color: var(--exam-level-accent);
  background: var(--exam-level-soft);
  border-bottom-color: var(--exam-level-marker);
  box-shadow: none;
}

.biology-exam-level-tabs button:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid rgba(216, 154, 56, 0.78);
  outline-offset: 3px;
}

.biology-exam-level-panel {
  --exam-level-accent: var(--green);
  --exam-level-soft: rgba(31, 122, 85, 0.08);
  padding: clamp(28px, 4vw, 38px) 0 0;
}

.biology-exam-level-panel[data-exam-level="b"] {
  --exam-level-accent: var(--blue-dark);
  --exam-level-soft: rgba(31, 93, 118, 0.08);
}

.biology-exam-level-panel[data-exam-level="a"] {
  --exam-level-accent: #76501c;
  --exam-level-soft: rgba(216, 154, 56, 0.1);
}

.biology-exam-level-panel:focus-visible {
  outline: 3px solid rgba(216, 154, 56, 0.65);
  outline-offset: 6px;
}

.biology-exam-level-panel-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  gap: clamp(30px, 6vw, 64px);
  align-items: start;
  padding-bottom: clamp(22px, 3vw, 30px);
  border-bottom: 1px solid var(--line);
}

.biology-exam-level-panel h2 {
  margin: 0 0 12px;
  color: var(--exam-level-accent);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.08;
}

.biology-exam-level-panel h3 {
  color: var(--ink);
}

.biology-exam-level-panel-header p {
  margin: 0;
}

.biology-exam-level-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-width: 1px 0;
  border-radius: 0;
}

.biology-exam-level-facts > div {
  display: block;
  min-width: 0;
  padding: 14px 16px;
  border-top: 0;
  border-left: 1px solid var(--line);
}

.biology-exam-level-facts > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.biology-exam-level-facts dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.biology-exam-level-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 850;
  line-height: 1.4;
}

.biology-exam-level-fact-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.biology-exam-level-fact-group {
  padding: 14px 0 0;
  background: transparent;
  border: 0;
  border-top: 3px solid var(--green);
  border-radius: 0;
}

.biology-exam-level-fact-group--written {
  border-top-color: var(--amber);
}

.biology-exam-level-fact-group h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.biology-exam-level-fact-group .biology-exam-level-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
  background: transparent;
  border: 0;
}

.biology-exam-level-flow {
  margin-top: 0;
  padding: clamp(24px, 3vw, 30px) 0;
  border-bottom: 1px solid var(--line);
}

.biology-exam-level-flow h3,
.biology-exam-assessment h3,
.biology-exam-level-detail h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.biology-exam-level-flow .biology-exam-step-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 36px;
  margin: 18px 0 0;
}

.biology-exam-level-flow .biology-exam-step-list li {
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 13px;
}

.biology-exam-level-flow .biology-exam-step-list li > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: var(--exam-level-accent);
  border-radius: 50%;
  font-size: 0.93rem;
  font-weight: 900;
}

.biology-exam-level-flow .biology-exam-step-list p {
  font-size: 0.96rem;
}

.biology-exam-level-flow--written {
  margin-top: 0;
  padding: clamp(24px, 3vw, 30px) 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.biology-exam-written-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  gap: clamp(30px, 6vw, 64px);
  align-items: start;
  margin-top: clamp(30px, 4vw, 42px);
  padding: clamp(24px, 3vw, 30px) 0;
  border-top: 4px solid var(--amber);
  border-bottom: 1px solid var(--line);
}

.biology-exam-written-header h3 {
  margin: 0 0 10px;
  color: #76501c;
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.biology-exam-written-header p {
  margin: 0;
}

.biology-exam-written-header .biology-exam-level-facts {
  border-color: rgba(216, 154, 56, 0.34);
}

.biology-exam-level-flow--written h3 {
  color: #76501c;
}

.biology-exam-level-flow--written .biology-exam-step-list li > span {
  color: #fffaf0;
  background: #9a681c;
}

.biology-exam-level-details,
.biology-exam-level-details--written {
  display: block;
  margin-top: 0;
}

.biology-exam-level-detail,
.biology-exam-level-detail--oral,
.biology-exam-level-detail--written {
  padding: clamp(20px, 3vw, 26px) 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.biology-exam-level-detail--written h3 {
  color: #76501c;
}

.biology-exam-level-detail p {
  max-width: 860px;
  margin: 10px 0 0;
}

.biology-exam-assessment {
  margin-top: 0;
  padding-top: clamp(20px, 3vw, 26px);
  border-top: 0;
}

.biology-exam-assessment > p {
  max-width: 860px;
  margin: 0;
}

.biology-exam-assessment ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 16px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.biology-exam-assessment li {
  padding: 18px 20px;
  border-left: 1px solid var(--line);
}

.biology-exam-assessment li:first-child {
  padding-left: 0;
  border-left: 0;
}

.biology-exam-assessment strong {
  color: var(--exam-level-accent);
}

.biology-exam-term-note {
  margin: 0;
  padding: 0 0 28px;
  border-bottom: 1px solid var(--line);
}

.biology-exam-term-note h2 {
  margin: 0 0 14px;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
}

.biology-exam-term-note p {
  max-width: 860px;
  margin: 0;
}

.biology-exam-term-note p + p {
  margin-top: 14px;
}

@media (max-width: 860px) {
  .biology-exam-level-panel-header,
  .biology-exam-written-header,
  .biology-exam-level-fact-groups,
  .biology-exam-level-flow .biology-exam-step-list,
  .biology-exam-assessment ul {
    grid-template-columns: 1fr;
  }

  .biology-exam-level-panel-header {
    gap: 22px;
  }

  .biology-exam-written-header {
    gap: 22px;
  }

  .biology-exam-assessment li,
  .biology-exam-assessment li:first-child {
    padding: 17px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .biology-exam-assessment li:first-child {
    border-top: 0;
  }
}

@media (max-width: 560px) {
  .biology-exam-section {
    margin-top: 18px;
  }

  .biology-exam-talking-note {
    padding-left: 16px;
  }

  .biology-exam-level-tabs button {
    min-height: 54px;
    padding-inline: 7px;
    font-size: 0.9rem;
  }

  .biology-exam-level-panel {
    padding-top: 24px;
  }

  .biology-exam-level-facts,
  .biology-exam-level-fact-group .biology-exam-level-facts {
    grid-template-columns: 1fr;
  }

  .biology-exam-level-facts > div,
  .biology-exam-level-facts > div:first-child {
    padding: 12px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .biology-exam-level-facts > div:first-child {
    border-top: 0;
  }
}

/* Keep Eukaryote-specific disclosure and table rules after shared legacy styles. */
.biology-eukaryote-opening-quote {
  margin-top: clamp(30px, 4vw, 42px);
}

.biology-eukaryote-differentiation {
  margin-top: 30px;
  background: rgba(251, 253, 250, 0.96);
  border-color: rgba(31, 122, 85, 0.28);
  border-radius: 9px;
}

.biology-eukaryote-differentiation > summary {
  padding: clamp(20px, 3vw, 27px);
  color: #fffdf7;
  background: var(--green-dark);
}

@media (max-width: 760px) {
  .biology-eukaryote-table-wrap {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(213, 229, 222, 0.92);
  }

  .biology-eukaryote-comparison-table {
    display: table;
    width: 100%;
    min-width: 780px;
    background: rgba(255, 255, 255, 0.94);
  }

  .biology-eukaryote-comparison-table caption {
    display: table-caption;
    margin-bottom: 0;
    border: 0;
    border-radius: 0;
  }

  .biology-eukaryote-comparison-table thead {
    position: static;
    display: table-header-group;
    width: auto;
    height: auto;
    padding: 0;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
  }

  .biology-eukaryote-comparison-table tbody {
    display: table-row-group;
  }

  .biology-eukaryote-comparison-table tr,
  .biology-eukaryote-comparison-table tbody tr {
    display: table-row;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .biology-eukaryote-comparison-table th,
  .biology-eukaryote-comparison-table td,
  .biology-eukaryote-comparison-table tbody th,
  .biology-eukaryote-comparison-table tbody td {
    display: table-cell;
    width: auto;
    border-right: 1px solid rgba(31, 122, 85, 0.13);
  }

  .biology-eukaryote-comparison-table tbody th {
    color: var(--ink);
    background: rgba(238, 247, 242, 0.58);
  }

  .biology-eukaryote-comparison-table tbody td::before {
    display: none;
  }
}

/* Faglige kapitelundersider genbruger portalens artikel- og figurkomponenter. */
body[data-current-page="biologi"] .biology-evolution-intro { margin-block: 2rem; }
body[data-current-page="biologi"] .biology-evolution-page .article-section { margin-block: 2.5rem; }
body[data-current-page="biologi"] .biology-evolution-level { display:inline-grid; place-items:center; width:1.65em; height:1.65em; margin-right:.4em; border:1px solid #739682; border-radius:50%; color:#315d46; font-size:.75em; vertical-align:middle; }
body[data-current-page="biologi"] .biology-evolution-table-scroll { max-width:100%; overflow-x:auto; margin-block:1.5rem; }
body[data-current-page="biologi"] .biology-evolution-comparison { width:100%; min-width:580px; border-collapse:collapse; text-align:left; font-size:.95rem; line-height:1.6; }
body[data-current-page="biologi"] .biology-evolution-comparison caption { text-align:left; font-weight:600; margin-bottom:1rem; color:#253f37; }
body[data-current-page="biologi"] .biology-evolution-comparison th,
body[data-current-page="biologi"] .biology-evolution-comparison td { padding:1rem; border-bottom:1px solid #dbe5de; vertical-align:top; }
body[data-current-page="biologi"] .biology-evolution-comparison thead { background:#eef4ef; color:#253f37; }
body[data-current-page="biologi"] .biology-evolution-comparison th[scope="row"] { width:22%; font-weight:600; }
body[data-current-page="biologi"] .biology-evolution-table-scroll:focus-visible { outline:2px solid #416e5c; outline-offset:4px; }
body[data-current-page="biologi"] .biology-evolution-page .figure-image { width:100%; height:auto; aspect-ratio:auto; object-fit:contain; }
body[data-current-page="biologi"] .biology-core-area-subpage-link.biology-chapter-child { padding-left:1.4rem; font-size:.8rem; font-weight:450; }
body[data-current-page="biologi"] .biology-evolution-page .biology-core-area-path-card:focus-visible { outline:2px solid #416e5c; outline-offset:4px; }

/* Fordybelsesafsnit bruger hele artiklens indholdsbredde. */
body[data-current-page="biologi"] .biology-evolution-overview .biology-evolution-next { display:grid; gap:14px; margin-top:22px; }
body[data-current-page="biologi"] .biology-evolution-overview .biology-topic-figure-block { margin-block:2rem; }
body[data-current-page="biologi"] .biology-main-column .biology-depth-disclosure { width:100%; max-width:none; box-sizing:border-box; margin-inline:0; }
.biology-evolution-page .teacher-note-character[src$="lars-mendel-v1.webp"] {
  mix-blend-mode: multiply;
}
.biology-evolution-overview .article-section > .article-content {
  display: flow-root;
}
@media (max-width: 1099px) {
  .biology-evolution-overview .article-content:has(> .biology-evolution-small-figure) {
    display: flex;
    flex-direction: column;
  }
  .biology-evolution-overview .article-content:has(> .biology-evolution-small-figure) > * { order: 3; }
  .biology-evolution-overview .article-content:has(> .biology-evolution-small-figure) > h2 { order: 0; }
  .biology-evolution-overview .article-content:has(> .biology-evolution-small-figure) > p:first-of-type { order: 1; }
  .biology-evolution-overview .article-content:has(> .biology-evolution-small-figure) > .biology-evolution-small-figure { order: 2; }
}
body[data-current-page="biologi"] .biology-evolution-small-figure {
  max-width: 360px;
  margin: 1.25rem auto;
}
body[data-current-page="biologi"] .biology-evolution-small-figure .biology-topic-figure-block {
  margin: 0;
}
@media (min-width: 1100px) {
  body[data-current-page="biologi"] .biology-evolution-small-figure {
    float: right;
    width: 37%;
    margin: .35rem 0 1.25rem 1.75rem;
  }
}
.biology-evolution-mendel-photo {
  max-width: 460px;
  margin: 1.25rem auto;
}
.biology-evolution-mendel-model {
  clear: both;
  padding-top: .5rem;
}
.biology-evolution-mendel-model .biology-topic-figure-block {
  max-width: 650px;
  margin-inline: auto;
}
@media (min-width: 1100px) {
  .biology-evolution-mendel-photo {
    float: right;
    width: 40%;
    margin: 0 0 1.25rem 1.75rem;
  }
}
/* Nedarvning: afgrænset øvelse i den fælles artikelskal. */
.inheritance-lab { padding:clamp(16px,3vw,28px); border:1px solid #cad8d2; border-radius:16px; background:#f4f8f5; }
.inheritance-controls,.inheritance-actions { display:flex; flex-wrap:wrap; gap:14px; }
.inheritance-controls label { display:grid; gap:6px; font-weight:600; flex:1 1 150px; }
.inheritance-lab select,.inheritance-lab input,.inheritance-lab button { font:inherit; border:1px solid #77998c; border-radius:7px; padding:10px; background:#fff; color:#234e40; }
.inheritance-lab button { cursor:pointer; min-height:44px; }
.inheritance-lab :focus-visible { outline:3px solid #99711c; outline-offset:3px; }
.inheritance-scroll { overflow-x:auto; margin:18px 0; }
.inheritance-scroll table { width:100%; border-collapse:collapse; background:white; }
.inheritance-scroll caption { text-align:left; padding:10px 0; }
.inheritance-scroll th,.inheritance-scroll td { padding:10px; text-align:center; border:1px solid #cad8d2; }
.inheritance-scroll th { background:#e5eee8; }
.inheritance-scroll small { display:block; font-weight:400; }
.inheritance-scroll input { width:78px; max-width:100%; text-align:center; box-sizing:border-box; }
.inheritance-scroll input[aria-invalid="true"] { border:2px solid #a33728; background:#fff0ec; }
.inheritance-lab [role="status"] { min-height:3em; }
.biology-inheritance-page [data-figure="academic"] { max-width:760px; margin-left:auto; margin-right:auto; }
