:root {
  color-scheme: light dark;
  --bg: #f4f7f9;
  --surface: #ffffff;
  --surface-soft: #eaf0f4;
  --surface-muted: #dde7ed;
  --ink: #17232d;
  --muted: #526370;
  --line: #cbd6dd;
  --line-strong: #aebdc7;
  --brand: #1b4a68;
  --brand-dark: #12364e;
  --brand-soft: #dfeaf0;
  --accent: #d2ad58;
  --accent-soft: #f5ecd7;
  --danger: #8a3030;
  --success: #276447;
  --focus: #006edc;
  --shadow: 0 12px 34px rgba(18, 54, 78, .09);
  --shadow-small: 0 5px 18px rgba(18, 54, 78, .08);
  --radius-sm: .35rem;
  --radius: .65rem;
  --radius-lg: .9rem;
  --max: 78rem;
  --reading: 48rem;
  --font-size: 100%;
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    --bg: #10171c;
    --surface: #172127;
    --surface-soft: #1e2b33;
    --surface-muted: #263640;
    --ink: #f3f6f7;
    --muted: #c1ccd2;
    --line: #43545f;
    --line-strong: #657681;
    --brand: #86bad5;
    --brand-dark: #0c2636;
    --brand-soft: #223946;
    --accent: #e2c06c;
    --accent-soft: #3b3423;
    --focus: #83c1ff;
    --shadow: 0 14px 38px rgba(0, 0, 0, .28);
    --shadow-small: 0 6px 20px rgba(0, 0, 0, .24);
  }
}

html[data-theme="dark"] {
  --bg: #10171c;
  --surface: #172127;
  --surface-soft: #1e2b33;
  --surface-muted: #263640;
  --ink: #f3f6f7;
  --muted: #c1ccd2;
  --line: #43545f;
  --line-strong: #657681;
  --brand: #86bad5;
  --brand-dark: #0c2636;
  --brand-soft: #223946;
  --accent: #e2c06c;
  --accent-soft: #3b3423;
  --focus: #83c1ff;
  --shadow: 0 14px 38px rgba(0, 0, 0, .28);
  --shadow-small: 0 6px 20px rgba(0, 0, 0, .24);
}

html[data-contrast="high"] {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #ffffff;
  --surface-muted: #f2f2f2;
  --ink: #000000;
  --muted: #111111;
  --line: #000000;
  --line-strong: #000000;
  --brand: #000000;
  --brand-dark: #000000;
  --brand-soft: #ffffff;
  --accent: #ffdf00;
  --accent-soft: #fff6a0;
  --focus: #005fcc;
  --heading-accent: #000000;
  --shadow: none;
  --shadow-small: none;
}

html[data-theme="dark"][data-contrast="high"],
html[data-theme="system"][data-contrast="high"] {
  --bg: #000000;
  --surface: #000000;
  --surface-soft: #000000;
  --surface-muted: #111111;
  --ink: #ffffff;
  --muted: #ffffff;
  --line: #ffffff;
  --line-strong: #ffffff;
  --brand: #ffffff;
  --brand-dark: #000000;
  --brand-soft: #000000;
  --accent: #ffdf00;
  --accent-soft: #332d00;
  --focus: #00ffff;
  --shadow: none;
  --shadow-small: none;
}

html[data-text="large"] { --font-size: 116%; }

* { box-sizing: border-box; }
html {
  font-size: var(--font-size);
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a {
  color: inherit;
  text-decoration-color: currentColor;
  text-decoration-thickness: .08em;
  text-underline-offset: .2em;
}
a:hover { text-decoration-thickness: .14em; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: .75rem;
  left: .75rem;
  transform: translateY(-180%);
  background: var(--ink);
  color: var(--bg);
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
}
.skip-link:focus { transform: none; }
.screen-reader-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.container {
  width: min(calc(100% - 2.5rem), var(--max));
  margin-inline: auto;
}
.container--narrow { max-width: 60rem; }
.section { padding: clamp(4rem, 7vw, 6.5rem) 0; }
.section--tight { padding: 2.75rem 0; }
.section--surface {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.section--strong {
  background: var(--brand-dark);
  color: #ffffff;
}
.section--accent {
  background: var(--accent-soft);
  color: var(--ink);
}
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(19rem, .85fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.split--top { align-items: start; }
.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}

h1, h2, h3, h4 {
  line-height: 1.15;
  letter-spacing: -.025em;
  margin: 0 0 .7em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.55rem, 5.8vw, 4.85rem); max-width: 16ch; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); max-width: 24ch; }
h3 { font-size: clamp(1.2rem, 2.1vw, 1.55rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.25rem; }
li + li { margin-top: .55rem; }
.lead {
  font-size: clamp(1.12rem, 1.85vw, 1.38rem);
  line-height: 1.55;
  max-width: 48rem;
  color: var(--muted);
}
.section--strong .lead,
.section--strong .muted { color: #e5edf2; }
.eyebrow {
  display: inline-block;
  margin-bottom: .8rem;
  color: var(--brand);
  font-weight: 850;
  font-size: .77rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.section--strong .eyebrow,
.statement-section .eyebrow { color: #f1d58e; }
.muted { color: var(--muted); }
.small { font-size: .91rem; }
.kicker-number {
  display: block;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 850;
  line-height: 1;
  color: var(--brand);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.05rem;
  padding: .72rem 1.05rem;
  border: 2px solid var(--brand-dark);
  border-radius: var(--radius-sm);
  background: var(--brand-dark);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}
.button:hover {
  background: var(--brand);
  border-color: var(--brand);
  text-decoration: none;
  transform: translateY(-1px);
}
.button--secondary {
  background: transparent;
  color: var(--brand-dark);
}
.button--secondary:hover { color: #ffffff; }
.button--light {
  background: #ffffff;
  color: #183e59;
  border-color: #ffffff;
}
.button--light:hover {
  background: #eef4f7;
  color: #183e59;
  border-color: #eef4f7;
}
.section--strong .button:not(.button--light) {
  background: #ffffff;
  border-color: #ffffff;
  color: #183e59;
}
.text-link {
  color: var(--brand);
  font-weight: 800;
}
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.95rem;
  padding: .2rem .6rem;
  border: 1px solid var(--line-strong);
  border-radius: 99rem;
  font-weight: 750;
  font-size: .82rem;
}
.icon { display: none !important; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 2.2vw, 1.75rem);
  box-shadow: var(--shadow-small);
}
.card--flat { box-shadow: none; }
.card--accent {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.card h3 { margin-bottom: .5rem; }
.card-link {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  text-decoration: none;
  border-top: 4px solid var(--brand);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.card-link:hover {
  border-top-color: var(--accent);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.card-link .text-link { margin-top: auto; padding-top: 1rem; }
.note {
  border-left: .35rem solid var(--brand);
  background: var(--surface-soft);
  padding: 1.15rem 1.3rem;
  margin: 1.75rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.note strong {
  display: block;
  margin-bottom: .3rem;
  font-size: 1.02rem;
}
.note--warning { border-left-color: var(--danger); }
.note--success { border-left-color: var(--success); }
.source-ref {
  font-size: .65em;
  vertical-align: super;
  line-height: 0;
  margin-left: .1em;
}
.source-ref a { font-weight: 800; text-decoration: none; }

/* Header and dropdown navigation */
.site-header {
  position: relative;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.utility-bar {
  background: var(--brand-dark);
  color: #ffffff;
  font-size: .82rem;
}
.utility-shell {
  width: min(calc(100% - 2.5rem), 86rem);
  min-height: 2.25rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.utility-copy { opacity: .92; }
.utility-actions { display: flex; align-items: center; gap: .35rem; }
.utility-button,
.display-settings > summary {
  min-height: 2rem;
  padding: .25rem .55rem;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: .2em;
}
.utility-button:hover,
.display-settings > summary:hover { text-decoration-color: currentColor; }
.display-settings { position: relative; }
.display-settings > summary::-webkit-details-marker { display: none; }
.display-panel {
  position: absolute;
  right: 0;
  top: calc(100% + .5rem);
  width: min(23rem, calc(100vw - 2rem));
  padding: 1.15rem;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 300;
}
.panel-title { font-weight: 850; margin-bottom: .7rem; }
.setting-group,
.setting-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .4rem;
  margin: .45rem 0 .65rem;
}
.setting-row { grid-template-columns: 1fr 1fr; }
.setting-group button,
.setting-row button {
  min-height: 2.65rem;
  padding: .4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  cursor: pointer;
  font-weight: 720;
}
.setting-group button[aria-pressed="true"],
.setting-row button[aria-pressed="true"] {
  background: var(--brand-dark);
  color: #ffffff;
  border-color: var(--brand-dark);
}
.text-button,
.link-button {
  border: 0;
  background: none;
  padding: .35rem 0;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.masthead { background: var(--surface); }
.masthead-shell {
  width: min(calc(100% - 2.5rem), 86rem);
  min-height: 6.25rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  flex-direction: column;
  gap: .12rem;
  text-decoration: none;
}
.brand-copy {
  display: flex;
  align-items: baseline;
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
  line-height: 1;
  letter-spacing: -.04em;
}
.brand-copy strong { color: var(--brand-dark); font-weight: 900; }
.brand-copy span { color: var(--brand); font-weight: 560; }
.brand-tagline {
  color: var(--muted);
  font-size: .83rem;
  letter-spacing: .035em;
}
.header-claim {
  margin: 0;
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
  text-align: right;
  line-height: 1.25;
}
.header-claim span { display: block; color: var(--muted); font-size: .83rem; }
.header-claim strong { display: block; font-size: 1.15rem; color: var(--brand-dark); }
.nav-toggle {
  display: none;
  min-height: 2.8rem;
  padding: .5rem .75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  align-items: center;
  gap: .55rem;
  cursor: pointer;
  font-weight: 800;
}
.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 1.2rem;
  height: 2px;
  background: currentColor;
}
.nav-toggle-lines { position: relative; }
.nav-toggle-lines::before,
.nav-toggle-lines::after { content: ""; position: absolute; left: 0; }
.nav-toggle-lines::before { top: -.38rem; }
.nav-toggle-lines::after { top: .38rem; }
.nav-band {
  background: var(--brand-dark);
  color: #ffffff;
  border-top: 1px solid rgba(255,255,255,.12);
}
.nav-shell {
  width: min(calc(100% - 2.5rem), 86rem);
  margin-inline: auto;
}
.main-nav {
  display: flex;
  align-items: stretch;
  min-height: 3.5rem;
}
.nav-link,
.nav-parent {
  display: flex;
  align-items: center;
  min-height: 3.5rem;
  padding: .65rem .8rem;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-weight: 760;
  font-size: .91rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.nav-parent::after {
  content: "";
  width: .42rem;
  height: .42rem;
  margin-left: .48rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-.13rem) rotate(45deg);
}
.nav-link:hover,
.nav-parent:hover,
.nav-link.is-active,
.nav-parent.is-active,
.nav-item.is-open > .nav-parent {
  background: rgba(255,255,255,.14);
  text-decoration: none;
}
.nav-item { position: relative; }
.submenu {
  position: absolute;
  z-index: 250;
  left: 0;
  top: 100%;
  width: 19rem;
  display: none;
  padding: .55rem 0;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  box-shadow: var(--shadow);
}
.submenu a {
  display: block;
  padding: .62rem 1rem;
  color: var(--ink);
  font-size: .93rem;
  text-decoration: none;
  border-left: 4px solid transparent;
}
.submenu a + a { border-top: 1px solid var(--line); }
.submenu a:hover,
.submenu a.is-active {
  background: var(--surface-soft);
  border-left-color: var(--brand);
  text-decoration: none;
}
.nav-item.is-open > .submenu { display: block; }

/* Homepage */
.hero {
  padding: clamp(4rem, 7vw, 6.75rem) 0;
  background:
    linear-gradient(90deg, var(--surface) 0%, var(--surface) 62%, var(--surface-soft) 62%, var(--surface-soft) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(22rem, .8fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.hero h1 { max-width: 13.5ch; }
.hero .lead { max-width: 43rem; }
.hero-intro { max-width: 43rem; color: var(--muted); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.6rem;
}
.hero-fact-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 5px solid var(--brand);
  box-shadow: var(--shadow);
}
.fact-panel-label {
  margin: 0;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.fact-panel-list { list-style: none; margin: 0; padding: 0; }
.fact-panel-list li {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: .9rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--line);
}
.fact-panel-list li:first-child { border-top: 0; }
.fact-panel-list > li > span {
  color: var(--brand);
  font-weight: 900;
  font-size: .82rem;
  letter-spacing: .06em;
}
.fact-panel-list strong { display: block; margin-bottom: .15rem; }
.fact-panel-list p { color: var(--muted); font-size: .91rem; line-height: 1.48; }
.key-facts {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  padding: 1.45rem;
}
.key-facts h3 { font-size: 1.15rem; margin-bottom: .8rem; }
.key-facts dl { margin: 0 0 1rem; }
.key-facts dl > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding: .65rem 0;
  border-top: 1px solid var(--line);
}
.key-facts dl > div:first-child { border-top: 0; }
.key-facts dt { font-weight: 800; }
.key-facts dd { margin: 0; color: var(--muted); }
.statement-section {
  background: var(--brand-dark);
  color: #ffffff;
}
.statement-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
}
.statement-grid h2 { max-width: 17ch; }
.statement-copy {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.5;
  color: #e7eef2;
}
.section-heading { max-width: 52rem; margin-bottom: 2.3rem; }
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.25rem 2rem;
}
.topic-teaser {
  padding-top: 1.15rem;
  border-top: 3px solid var(--brand);
}
.topic-teaser h3 { margin-bottom: .55rem; }
.topic-teaser p { color: var(--muted); }
.topic-kicker {
  margin-bottom: .45rem !important;
  color: var(--brand) !important;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.project-section { background: var(--accent-soft); }
.project-panel {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
}
.project-panel blockquote {
  margin: 0;
  padding-left: 1.4rem;
  border-left: 4px solid var(--brand);
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  line-height: 1.42;
  font-weight: 680;
}
.project-cite { margin-top: 1rem; color: var(--muted); font-weight: 750; }
.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, .7fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
}
.final-cta p { color: #e7eef2; }

/* Interior pages */
.inner-hero {
  padding: clamp(3.25rem, 6vw, 5.25rem) 0;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
}
.inner-hero h1 { max-width: 18ch; }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  margin-bottom: 1.6rem;
  color: var(--muted);
  font-size: .85rem;
}
.breadcrumbs a { font-weight: 700; }
.quick-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 2.25rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}
.quick-nav a {
  background: var(--surface);
  padding: 1rem;
  font-weight: 800;
  text-decoration: none;
}
.quick-nav a:hover { background: var(--surface-soft); }
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17rem;
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}
.prose { min-width: 0; }
.prose > * { max-width: var(--reading); }
.prose > .grid,
.prose > .compare,
.prose > .anatomy,
.prose > .inheritance,
.prose > .dayline,
.prose > .do-dont,
.prose > .evidence-scale,
.prose > .timeline,
.prose > table,
.prose > .copy-box,
.prose > .share-grid { max-width: none; }
.prose h2 {
  margin-top: 3.5rem;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 5rem;
}
.prose h3 { margin-top: 2rem; }
.prose > :first-child { margin-top: 0; }
.table-scroll {
  max-width: 100%;
  margin: 1.75rem 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid var(--line);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
.table-scroll:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.prose .table-scroll table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
  margin: 0;
  background: var(--surface);
}
.prose th,
.prose td {
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  padding: .8rem;
}
.prose th { background: var(--surface-soft); }
.toc {
  position: sticky;
  top: 1.5rem;
  padding: 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  box-shadow: var(--shadow-small);
}
.toc strong { display: block; margin-bottom: .55rem; }
.toc a {
  display: block;
  padding: .38rem 0;
  color: var(--muted);
  font-size: .9rem;
  text-decoration: none;
}
.toc a + a { border-top: 1px solid var(--line); }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.aspect-card { border-left: 4px solid var(--brand); box-shadow: none; }
.audience-card { min-height: 0; }
.personal-panel {
  display: block;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  background: var(--surface);
}
.personal-copy { padding: clamp(1.5rem, 4vw, 3rem); }
.personal-copy blockquote {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.9rem);
  line-height: 1.42;
  font-weight: 700;
}
.personal-copy cite { display: block; margin-top: 1rem; color: var(--muted); font-style: normal; }
.feature-list { list-style: none; padding: 0; display: grid; gap: .75rem; }
.feature-list li {
  position: relative;
  padding-left: 1.25rem;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: .45rem;
  height: .45rem;
  background: var(--brand);
}
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.75rem 0;
}
.compare > div {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.35rem;
}
.compare .not { border-top: 4px solid var(--danger); }
.compare .yes { border-top: 4px solid var(--success); }
.statement {
  font-size: clamp(1.65rem, 3.6vw, 3rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.03em;
  max-width: 28ch;
}
.strike {
  text-decoration: line-through;
  text-decoration-color: var(--danger);
  text-decoration-thickness: .1em;
}
.anatomy { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.anatomy-card { border-top: 4px solid var(--brand); box-shadow: none; }
.inheritance {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
  margin: 1.75rem 0;
}
.inheritance > div {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1rem;
  text-align: center;
}
.inheritance strong { display: block; margin-bottom: .35rem; font-size: 1.8rem; color: var(--brand); }
.myth {
  display: grid;
  grid-template-columns: minmax(7rem, .28fr) 1fr;
  gap: 1.3rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}
.myth > span {
  color: var(--brand);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dayline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}
.dayline > div { background: var(--surface); padding: 1.1rem; }
.dayline time { display: block; font-size: 1.75rem; font-weight: 850; color: var(--brand); }
.do-dont { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.do-dont > div { padding: 1.35rem; border: 1px solid var(--line); background: var(--surface); }
.do-dont .do { border-top: 4px solid var(--success); }
.do-dont .dont { border-top: 4px solid var(--danger); }

.simulation {
  overflow: hidden;
  margin-top: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-small);
}
.simulation-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 3;
  background: #d8dde0;
}
.simulation-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter .25s ease, transform .25s ease;
}
.simulation-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 78% 15%, rgba(255,255,255,.98) 0 4%, rgba(255,255,255,.8) 10%, rgba(255,255,255,.25) 28%, transparent 58%), linear-gradient(rgba(255,255,255,.28), rgba(255,255,255,.28));
  transition: opacity .25s ease;
}
.simulation[data-mode="mono"] img { filter: grayscale(1); }
.simulation[data-mode="acuity"] img { filter: grayscale(1) blur(7px) contrast(.88); transform: scale(1.035); }
.simulation[data-mode="glare"] img { filter: grayscale(1) blur(4px) contrast(.72) brightness(1.45); transform: scale(1.025); }
.simulation[data-mode="glare"] .simulation-glare { opacity: 1; }
.sim-controls {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 1rem;
  border-top: 1px solid var(--line);
}
.sim-controls button {
  min-height: 2.7rem;
  padding: .5rem .75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  cursor: pointer;
  font-weight: 750;
}
.sim-controls button[aria-pressed="true"] {
  background: var(--brand-dark);
  color: #ffffff;
  border-color: var(--brand-dark);
}
.sim-copy { padding: 0 1.1rem 1.1rem; }
.sim-copy strong { display: block; }

/* Checklists, research and share materials */
.checklist-wrap { width: min(calc(100% - 2rem), 70rem); margin: 0 auto; }
.checklist-toolbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background: var(--brand-dark);
  color: #ffffff;
  box-shadow: var(--shadow);
}
.progress-copy strong { font-size: 1.2rem; }
.progress-track {
  width: min(20rem, 55vw);
  height: .55rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.7);
  background: rgba(255,255,255,.2);
}
.progress-track span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s ease; }
.checklist-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 2rem 0; }
.form-field { display: grid; gap: .35rem; font-weight: 700; }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: .7rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
}
.check-group { margin: 3rem 0; }
.check-group > h2 { font-size: 1.8rem; }
.check-items { display: grid; gap: .6rem; }
.check-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .85rem;
  align-items: start;
  padding: .95rem;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
}
.check-item:hover { background: var(--surface-soft); }
.check-item:has(input:checked) { border-left: 5px solid var(--brand); background: var(--surface-soft); }
.check-item input { width: 1.4rem; height: 1.4rem; margin-top: .12rem; accent-color: var(--brand-dark); }
.check-item strong { display: block; }
.check-item span { color: var(--muted); font-size: .92rem; }
.status-message { min-height: 1.5rem; font-weight: 750; }
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: .45rem; top: .6rem; bottom: .6rem; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding: 0 0 2.3rem 1.2rem; }
.timeline-item::before { content: ""; position: absolute; left: -1.82rem; top: .25rem; width: .85rem; height: .85rem; background: var(--brand); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--brand); }
.timeline-item time { display: block; margin-bottom: .3rem; color: var(--muted); font-weight: 850; }
.evidence-scale { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 1.75rem 0; }
.evidence-scale > div { padding: 1rem; border: 1px solid var(--line); background: var(--surface); }
.evidence-scale span { display: block; width: 2.5rem; height: .4rem; margin-bottom: .75rem; background: var(--brand); }
.evidence-scale > div:nth-child(2) span { width: 1.65rem; }
.evidence-scale > div:nth-child(3) span { width: .85rem; }
.copy-box { overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.copy-box-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.copy-box-head strong { font-size: .84rem; letter-spacing: .06em; text-transform: uppercase; }
.copy-box button { min-height: 2.4rem; padding: .35rem .65rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; font-weight: 750; }
.copy-content { padding: 1.15rem; }
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.share-card { padding: 1rem; border: 1px solid var(--line); background: var(--surface); }
.share-card img { width: 100%; border: 1px solid var(--line); }
.share-actions { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-top: .75rem; }
.source-list { counter-reset: sources; list-style: none; padding: 0; }
.source-list li { counter-increment: sources; display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.source-list li::before { content: counter(sources); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; background: var(--brand-dark); color: #ffffff; font-weight: 850; }
.source-list cite { display: block; font-style: normal; font-weight: 800; }
.source-list a { overflow-wrap: anywhere; }
.legal-placeholder { margin: 1.75rem 0; padding: 1.35rem; border: 3px solid var(--danger); background: var(--surface); }
.legal-placeholder strong { display: block; color: var(--danger); font-size: 1.15rem; }

/* Footer, search and utility controls */
.site-footer {
  background: var(--surface);
  border-top: 5px solid var(--brand-dark);
}
.footer-shell {
  width: min(calc(100% - 2.5rem), var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.05fr 1.95fr;
  gap: 4rem;
  padding: 3.75rem 0;
}
.footer-brand {
  display: inline-block;
  margin-bottom: .9rem;
  color: var(--brand-dark);
  font-size: 1.35rem;
  font-weight: 900;
  text-decoration: none;
}
.footer-lead p { max-width: 31rem; color: var(--muted); }
.footer-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-columns h2 { margin-bottom: .7rem; color: var(--brand); font-size: .84rem; letter-spacing: .09em; text-transform: uppercase; }
.footer-columns a,
.footer-columns .link-button { display: block; margin: .42rem 0; color: var(--muted); font-size: .93rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem max(1.25rem, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
}
.search-dialog {
  width: min(42rem, calc(100% - 2rem));
  max-height: 80vh;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-top: 5px solid var(--brand);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.search-dialog::backdrop { background: rgba(0,0,0,.62); }
.search-head { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.search-head h2 { font-size: 1.8rem; }
.dialog-close {
  min-height: 2.5rem;
  padding: .4rem .65rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  font-weight: 750;
}
.search-field { display: grid; gap: .4rem; font-weight: 800; }
.search-field input { width: 100%; min-height: 3.1rem; padding: .65rem .8rem; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); }
.search-results { margin-top: 1rem; max-height: 45vh; overflow: auto; }
.search-result { display: block; padding: .9rem 0; border-top: 1px solid var(--line); text-decoration: none; }
.search-result strong { display: block; }
.search-result span { color: var(--muted); font-size: .9rem; }
.back-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  min-height: 2.75rem;
  padding: .55rem .8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--brand-dark);
  color: #ffffff;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(1rem);
  transition: .2s ease;
  font-weight: 750;
}
.back-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.site-notice { padding: .55rem 1rem; background: var(--accent); color: #17232d; text-align: center; font-weight: 750; font-size: .9rem; }
.site-notice a { font-weight: 900; }

@media (max-width: 1180px) {
  .nav-toggle { display: flex; }
  .header-claim { margin-left: auto; }
  .nav-band { background: var(--brand-dark); }
  .nav-shell { width: 100%; }
  .main-nav {
    display: none;
    width: min(calc(100% - 2.5rem), 86rem);
    min-height: 0;
    margin-inline: auto;
    padding: .7rem 0 1rem;
  }
  .main-nav.is-open { display: block; }
  .nav-link,
  .nav-parent {
    width: 100%;
    min-height: 3rem;
    justify-content: space-between;
    padding: .65rem .9rem;
    border-bottom: 1px solid rgba(255,255,255,.16);
    text-align: left;
  }
  .nav-item { width: 100%; }
  .nav-item.is-open > .submenu { display: block; }
  .submenu {
    position: static;
    width: 100%;
    padding: 0;
    border: 0;
    border-left: 4px solid var(--accent);
    box-shadow: none;
  }
  .submenu a { padding: .65rem 1rem .65rem 1.25rem; }
}

@media (max-width: 900px) {
  .grid--4,
  .grid--3,
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split,
  .hero-grid,
  .statement-grid,
  .project-panel,
  .final-cta,
  .footer-shell,
  .content-layout { grid-template-columns: 1fr; }
  .hero { background: var(--surface); }
  .hero-fact-panel { max-width: 38rem; }
  .toc {
    position: static;
    order: -1;
    display: flex;
    flex-wrap: wrap;
    gap: .25rem .8rem;
  }
  .toc strong { width: 100%; }
  .toc a { display: inline-block; border-top: 0 !important; }
  .quick-nav { grid-template-columns: 1fr; }
  .dayline,
  .inheritance { grid-template-columns: repeat(2, 1fr); }
  .checklist-meta { grid-template-columns: repeat(2, 1fr); }
  .share-grid { grid-template-columns: 1fr; max-width: 36rem; }
  .footer-columns { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container,
  .utility-shell,
  .masthead-shell { width: min(calc(100% - 1.25rem), var(--max)); }
  .utility-copy { display: none; }
  .utility-shell { justify-content: flex-end; }
  .masthead-shell { min-height: 5rem; gap: .75rem; }
  .brand-copy { font-size: 1.55rem; }
  .brand-tagline { font-size: .72rem; }
  .header-claim { display: none; }
  .nav-toggle { margin-left: auto; }
  .grid--4,
  .grid--3,
  .grid--2,
  .topic-grid,
  .anatomy,
  .compare,
  .do-dont,
  .evidence-scale { grid-template-columns: 1fr; }
  .hero { padding-top: 3.25rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .fact-panel-list li { grid-template-columns: 2.2rem 1fr; padding: .9rem 1rem; }
  .key-facts dl > div { grid-template-columns: 1fr; gap: .1rem; }
  .dayline,
  .inheritance,
  .checklist-meta { grid-template-columns: 1fr; }
  .myth { grid-template-columns: 1fr; gap: .35rem; }
  .footer-columns { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .progress-track { width: 100%; }
  .share-actions { align-items: flex-start; flex-direction: column; }
  .search-head { align-items: center; }
}


@media (max-width: 360px) {
  h1, h2, h3, h4 {
    hyphens: auto;
    overflow-wrap: anywhere;
  }
  .masthead-shell { gap: .35rem; }
  .brand-copy { font-size: 1.25rem; }
  .brand-tagline { display: none; }
  .nav-toggle {
    padding: .45rem .55rem;
    gap: .4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
}
html[data-motion="reduced"] *,
html[data-motion="reduced"] *::before,
html[data-motion="reduced"] *::after {
  scroll-behavior: auto !important;
  transition-duration: .001ms !important;
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
}

@media print {
  .site-header,
  .site-footer,
  .back-top,
  .checklist-toolbar,
  .no-print,
  .breadcrumbs { display: none !important; }
  :root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-soft: #ffffff;
    --ink: #000000;
    --muted: #222222;
    --line: #888888;
    --shadow: none;
    --shadow-small: none;
  }
  body { font-size: 11pt; }
  .section,
  .inner-hero { padding: 1rem 0; }
  .card,
  .check-item { break-inside: avoid; box-shadow: none; }
}


/* ===== achromatopsie.info Reboot extensions · 20.08.2026 ===== */
:root {
  --evidence-strong: #1f6a50;
  --evidence-medium: #775f18;
  --experience: #6d477d;
  --manufacturer: #465f78;
  --border-strong: color-mix(in srgb, var(--text) 24%, transparent);
}

.utility-copy { max-width: 66ch; }
.main-nav { align-items: stretch; }
.main-nav > * { min-width: 0; }
.nav-parent, .nav-link.top-link { white-space: nowrap; padding-inline: clamp(.62rem, 1.05vw, 1rem); }
.submenu { min-width: min(24rem, calc(100vw - 2rem)); max-height: min(70vh, 42rem); overflow-y: auto; }
.submenu a { line-height: 1.25; }

.source-box {
  margin-top: 2.25rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--border);
  border-left: .38rem solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
}
.source-box h2 { margin: 0 0 .6rem; font-size: 1.08rem; }
.source-box p { margin: 0 0 .75rem; }
.source-box ul { margin: 0; padding-left: 1.2rem; }
.source-box li + li { margin-top: .45rem; }
.source-box a { font-weight: 700; }

.review-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin: 1.5rem 0 2.25rem;
  padding: .9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--surface);
}
.review-box > div { display: flex; flex-direction: column; gap: .15rem; }
.review-box strong { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.review-box span { font-weight: 700; }

.label-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: .85rem; }
.evidence-label {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: .3rem .68rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.evidence-label--evidence { color: var(--evidence-strong); }
.evidence-label--research { color: var(--evidence-medium); }
.evidence-label--experience { color: var(--experience); }
.evidence-label--manufacturer { color: var(--manufacturer); }

.hero-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.hero-trust > div {
  padding: 1rem;
  border: 1px solid color-mix(in srgb, #fff 35%, transparent);
  border-radius: var(--radius-small);
  background: color-mix(in srgb, #fff 10%, transparent);
}
.hero-trust strong { display:block; margin-bottom:.22rem; }
.hero-trust span { font-size:.94rem; }

.quick-paths { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; }
.quick-path {
  display:flex; flex-direction:column; gap:.55rem; min-height:100%;
  padding:1.25rem; border:1px solid var(--border); border-radius:var(--radius);
  background:var(--surface); text-decoration:none; color:inherit;
}
.quick-path:hover { border-color:var(--accent); transform:translateY(-2px); }
.quick-path strong { font-size:1.12rem; color:var(--heading); }
.quick-path span { color:var(--muted); }
.quick-path em { margin-top:auto; font-style:normal; font-weight:800; color:var(--link); }

key-data, .key-data { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; }
.key-data > div {
  padding:1.1rem; border-top:.28rem solid var(--accent);
  background:var(--surface); border-radius:0 0 var(--radius-small) var(--radius-small);
  box-shadow:var(--shadow-soft);
}
.key-data strong { display:block; font-size:1.5rem; color:var(--heading); }
.key-data span { color:var(--muted); font-size:.94rem; }

.gene-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
.gene-card {
  display:flex; flex-direction:column; gap:.6rem;
  padding:1.3rem; border:1px solid var(--border); border-radius:var(--radius);
  background:var(--surface);
}
.gene-card h2, .gene-card h3 { margin:0; }
.gene-card .gene-code { font: 800 1.1rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; color:var(--accent); }
.gene-card a { margin-top:auto; font-weight:800; }

.fact-table th[scope=row] { width:28%; }
.table-note { margin-top:.65rem; font-size:.92rem; color:var(--muted); }

.study-card {
  padding:1.35rem; border:1px solid var(--border); border-radius:var(--radius);
  background:var(--surface);
}
.study-card + .study-card { margin-top:1rem; }
.study-card h2, .study-card h3 { margin-top:0; }
.study-meta { display:flex; flex-wrap:wrap; gap:.45rem; margin:.6rem 0 1rem; }
.study-meta span { padding:.27rem .58rem; border-radius:999px; background:var(--surface-soft); font-size:.82rem; font-weight:800; }
.study-conclusion { padding:.85rem 1rem; border-left:.3rem solid var(--accent); background:var(--surface-soft); }

.publication-toolbar {
  display:flex; flex-wrap:wrap; gap:.65rem; align-items:end; margin:1rem 0 1.5rem;
}
.publication-toolbar label { display:flex; flex-direction:column; gap:.3rem; font-weight:800; }
.publication-toolbar input, .publication-toolbar select {
  min-height:2.8rem; padding:.55rem .75rem; border:1px solid var(--border-strong);
  border-radius:.45rem; background:var(--surface); color:var(--text);
}
.publication-list { display:grid; gap:1rem; }
.publication {
  padding:1.25rem; border:1px solid var(--border); border-radius:var(--radius);
  background:var(--surface);
}
.publication[hidden] { display:none !important; }
.publication h2, .publication h3 { margin:0 0 .4rem; font-size:1.12rem; }
.publication-meta { display:flex; flex-wrap:wrap; gap:.4rem; margin:.5rem 0 .75rem; }
.publication-meta span { padding:.2rem .5rem; border-radius:999px; background:var(--surface-soft); font-size:.8rem; font-weight:800; }

.vision-gallery { display:grid; gap:2rem; }
.vision-example {
  border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; background:var(--surface);
}
.vision-example > header { padding:1.2rem 1.3rem .3rem; }
.vision-example > header h2 { margin:0 0 .4rem; }
.vision-example > header p { margin:.2rem 0 0; }
.vision-pair { display:grid; grid-template-columns:1fr 1fr; gap:0; margin:0; }
.vision-panel { margin:0; border-top:1px solid var(--border); }
.vision-panel + .vision-panel { border-left:1px solid var(--border); }
.vision-panel img { display:block; width:100%; aspect-ratio:1200/760; object-fit:cover; background:#e8eef2; }
.vision-panel figcaption { padding:.8rem 1rem 1rem; }
.vision-panel figcaption strong { display:block; margin-bottom:.2rem; }
.vision-panel--approx { position:relative; overflow:hidden; }
.vision-panel--approx::after {
  content:""; position:absolute; inset:0 0 4.2rem; pointer-events:none;
  background:linear-gradient(122deg,rgba(255,255,255,.48),rgba(255,255,255,0) 55%);
  mix-blend-mode:screen;
}
.vision-panel--approx img {
  filter:grayscale(1) saturate(0) contrast(.78) brightness(1.12) blur(1.25px);
  transform:scale(1.008);
}
.vision-explanation { padding:1rem 1.3rem 1.35rem; border-top:1px solid var(--border); }
.vision-explanation h3 { margin:.15rem 0 .45rem; font-size:1rem; }
.sim-disclaimer {
  padding:1.25rem 1.35rem; border:.15rem solid var(--accent);
  border-radius:var(--radius); background:var(--surface);
}
.sim-disclaimer strong { display:block; font-size:1.08rem; margin-bottom:.35rem; }

.product-evaluation { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.product-evaluation > div { padding:1.1rem; border:1px solid var(--border); border-radius:var(--radius-small); }
.product-evaluation h3 { margin-top:0; }

.partner-list { display:grid; gap:1rem; }
.partner-entry {
  display:grid; grid-template-columns:minmax(13rem,.8fr) 2fr; gap:1.2rem;
  padding:1.2rem; border:1px solid var(--border); border-radius:var(--radius); background:var(--surface);
}
.partner-entry h2, .partner-entry h3 { margin:0 0 .35rem; }
.partner-status { font-size:.82rem; font-weight:800; color:var(--muted); text-transform:uppercase; letter-spacing:.06em; }

.personal-story {
  padding:1.4rem; border:1px solid color-mix(in srgb, var(--experience) 50%, var(--border));
  border-left:.42rem solid var(--experience); border-radius:var(--radius); background:var(--surface);
}
.personal-story .label { display:inline-block; margin-bottom:.65rem; color:var(--experience); font-weight:900; text-transform:uppercase; letter-spacing:.07em; font-size:.82rem; }

.legal-step { display:grid; grid-template-columns:3rem 1fr; gap:1rem; padding:1rem 0; border-bottom:1px solid var(--border); }
.legal-step:last-child { border-bottom:0; }
.legal-step .step-number { display:grid; place-items:center; width:2.6rem; height:2.6rem; border-radius:50%; background:var(--accent); color:#fff; font-weight:900; }
.legal-step h2, .legal-step h3 { margin:.1rem 0 .35rem; }

.forum-status {
  padding:1.5rem; border:.16rem dashed var(--accent); border-radius:var(--radius); background:var(--surface);
}
.forum-categories { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
.forum-category { padding:1rem; border:1px solid var(--border); border-radius:var(--radius-small); background:var(--surface); }
.forum-category h3 { margin-top:0; }

.glossary-list { display:grid; gap:.8rem; }
.glossary-entry { padding:1rem 1.15rem; border:1px solid var(--border); border-radius:var(--radius-small); background:var(--surface); }
.glossary-entry dt { font-weight:900; color:var(--heading); }
.glossary-entry dd { margin:.3rem 0 0; }

.disclosure-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
.disclosure-card { padding:1rem; border:1px solid var(--border); border-radius:var(--radius-small); background:var(--surface); }
.disclosure-card h3 { margin-top:0; }

.checklist-callout { display:flex; flex-wrap:wrap; gap:1rem; align-items:center; justify-content:space-between; padding:1.25rem; border-radius:var(--radius); background:var(--strong); color:#fff; }
.checklist-callout h2 { margin:0; color:#fff; }
.checklist-callout p { margin:.3rem 0 0; max-width:62ch; }

@media (max-width: 1180px) {
  .submenu { min-width:0; max-height:none; }
}
@media (max-width: 900px) {
  .hero-trust, .quick-paths, .key-data, .gene-grid, .forum-categories, .disclosure-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .partner-entry { grid-template-columns:1fr; }
}
@media (max-width: 700px) {
  .review-box, .hero-trust, .quick-paths, .key-data, .gene-grid, .product-evaluation, .forum-categories, .disclosure-grid { grid-template-columns:1fr; }
  .vision-pair { grid-template-columns:1fr; }
  .vision-panel + .vision-panel { border-left:0; }
  .legal-step { grid-template-columns:2.6rem 1fr; }
}
@media print {
  .review-box { break-inside:avoid; }
  .vision-example, .study-card, .publication { break-inside:avoid; }
}


/* ===== Feinschliff v1.1 · eindeutige Textabstände und robuste Metadaten ===== */
.review-box > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  row-gap: .35rem;
  min-width: 0;
}
.review-box strong,
.review-box span {
  display: block;
  max-width: 100%;
}
.review-box span {
  line-height: 1.48;
}

.note > strong:first-child,
.note--success > strong:first-child,
.study-conclusion > strong:first-child,
.table-note > strong:first-child,
.vision-panel figcaption > strong:first-child {
  display: block;
  margin-bottom: .35rem;
}

.check-item > span > strong,
.check-item > span > span,
.vision-panel figcaption > strong,
.vision-panel figcaption > span,
.quick-path > strong,
.quick-path > span {
  display: block;
}

.check-item > span > strong + span,
.vision-panel figcaption > strong + span,
.quick-path > strong + span {
  margin-top: .25rem;
}

@media (max-width: 700px) {
  .review-box > div { row-gap: .3rem; }
}


/* ===== Feinschliff v1.2 · hoher Kontrast, Aufbauhinweis und neue Bildserien ===== */
:root {
  --bg: #f3f6fa;
  --surface: #ffffff;
  --surface-soft: #e7eef6;
  --surface-muted: #d6e1eb;
  --ink: #071b2d;
  --muted: #294359;
  --line: #9fb2c3;
  --line-strong: #607b91;
  --brand: #005b9f;
  --brand-dark: #071b2d;
  --brand-soft: #dceaf6;
  --accent: #ffd84d;
  --accent-soft: #fff4bd;
  --focus: #005fcc;
  --danger: #8d1515;
  --success: #155d3f;
  --border: var(--line);
  --text: var(--ink);
  --heading: var(--ink);
  --strong: var(--brand-dark);
  --radius-small: var(--radius-sm);
  --evidence-strong: #0b5e42;
  --evidence-medium: #6a4e00;
  --experience: #5d2d72;
  --manufacturer: #244e70;
}
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    --bg: #070d13;
    --surface: #0f1a24;
    --surface-soft: #162737;
    --surface-muted: #20364a;
    --ink: #ffffff;
    --muted: #d5e2ed;
    --line: #607b91;
    --line-strong: #94abc0;
    --brand: #8bd2ff;
    --brand-dark: #071b2d;
    --brand-soft: #183348;
    --accent: #ffdc57;
    --accent-soft: #3f3510;
    --focus: #63c7ff;
    --evidence-strong: #8ee7c2;
    --evidence-medium: #ffe080;
    --experience: #e0adf1;
    --manufacturer: #a9d8ff;
  }
}
html[data-theme="dark"] {
  --bg: #070d13;
  --surface: #0f1a24;
  --surface-soft: #162737;
  --surface-muted: #20364a;
  --ink: #ffffff;
  --muted: #d5e2ed;
  --line: #607b91;
  --line-strong: #94abc0;
  --brand: #8bd2ff;
  --brand-dark: #071b2d;
  --brand-soft: #183348;
  --accent: #ffdc57;
  --accent-soft: #3f3510;
  --focus: #63c7ff;
  --evidence-strong: #8ee7c2;
  --evidence-medium: #ffe080;
  --experience: #e0adf1;
  --manufacturer: #a9d8ff;
}
html[data-contrast="high"] {
  --bg: #ffffff; --surface:#ffffff; --surface-soft:#ffffff; --surface-muted:#f2f2f2;
  --ink:#000000; --muted:#000000; --line:#000000; --line-strong:#000000;
  --brand:#000000; --brand-dark:#000000; --brand-soft:#ffffff; --accent:#ffdf00; --accent-soft:#fff6a0; --focus:#005fcc;
  --evidence-strong:#000000; --evidence-medium:#000000; --experience:#000000; --manufacturer:#000000;
}
html[data-theme="dark"][data-contrast="high"],
html[data-theme="system"][data-contrast="high"] {
  --bg:#000000; --surface:#000000; --surface-soft:#000000; --surface-muted:#111111;
  --ink:#ffffff; --muted:#ffffff; --line:#ffffff; --line-strong:#ffffff;
  --brand:#ffffff; --brand-dark:#000000; --brand-soft:#000000; --accent:#ffdf00; --accent-soft:#332d00; --focus:#00ffff;
  --evidence-strong:#ffffff; --evidence-medium:#ffffff; --experience:#ffffff; --manufacturer:#ffffff;
}
body { font-weight: 450; }
h1, h2, h3, h4 { color: var(--ink); }
.section--strong h1, .section--strong h2, .section--strong h3, .statement-section h1, .statement-section h2, .statement-section h3 { color:#ffffff; }
.lead, .hero-intro, .muted { color: var(--muted); }
.masthead { background:#071b2d; color:#ffffff; border-bottom:1px solid #39546a; }
.brand-copy strong { color:#ffffff; }
.brand-copy span { color:#8bd2ff; font-weight:700; }
.brand-tagline { color:#d7e5f0; }
.header-claim { border-left-color:#6e879a; }
.header-claim span { color:#d7e5f0; font-size:.9rem; }
.header-claim strong { color:#ffffff; font-size:1.22rem; }
.nav-toggle { background:#ffffff; color:#071b2d; border-color:#ffffff; }
.utility-bar { background:#02080e; }
.nav-band { background:#004477; }
.nav-link:hover, .nav-parent:hover, .nav-link.is-active, .nav-parent.is-active, .nav-link[aria-current="page"] { background:#ffffff; color:#071b2d; }
.submenu { border-color:#607b91; border-top-color:#ffd84d; }
.submenu a { color:var(--ink); }
.hero { background:linear-gradient(90deg,var(--surface) 0%,var(--surface) 62%,var(--surface-soft) 62%,var(--surface-soft) 100%); }
.review-box { border-color:var(--line-strong); background:var(--surface-soft); }
.review-box strong { color:var(--ink); font-weight:900; }
.review-box span { color:var(--ink); }
.source-box { border-color:var(--line-strong); }
.card, .publication, .study-card, .partner-entry, .glossary-entry { border-color:var(--line); }
.evidence-label { background:var(--surface); font-weight:900; }
.button { box-shadow:0 1px 0 rgba(255,255,255,.15) inset; }
.site-notice {
  display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:.35rem .55rem;
  padding:.72rem 1rem; background:#ffd84d; color:#071b2d; border-bottom:2px solid #071b2d;
  text-align:center; font-size:.94rem; font-weight:750;
}
.site-notice strong { font-weight:950; }
.site-notice a { color:#071b2d; font-weight:950; text-decoration-thickness:.12em; }
html[data-theme="dark"] .site-notice { background:#ffd84d; color:#071b2d; }
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .site-notice { background:#ffd84d; color:#071b2d; }
}
.sim-disclaimer--strong { border-width:3px; border-color:#071b2d; background:#fff8d8; color:#071b2d; }
html[data-theme="dark"] .sim-disclaimer--strong { border-color:#ffd84d; background:#17232d; color:#ffffff; }
.simulation-limits { margin:1.5rem 0; }
.simulation-limits h2 { font-size:1.35rem; }
.vision-series { display:grid; gap:2.2rem; margin-top:2rem; }
.vision-scenario { overflow:hidden; border:2px solid var(--line-strong); border-radius:var(--radius-lg); background:var(--surface); box-shadow:var(--shadow-small); }
.vision-scenario > header { padding:1.25rem 1.35rem 1rem; border-bottom:1px solid var(--line); background:var(--surface-soft); }
.vision-scenario > header h3 { margin:0 0 .4rem; font-size:clamp(1.35rem,2.2vw,1.85rem); }
.vision-scenario > header p { margin:0; color:var(--muted); }
.vision-grid { display:grid; background:var(--line); gap:1px; }
.vision-grid--3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
.vision-grid--4 { grid-template-columns:repeat(4,minmax(0,1fr)); }
.vision-shot { margin:0; background:var(--surface); min-width:0; }
.vision-image-wrap { position:relative; overflow:hidden; background:#dfe7ed; }
.vision-shot img { display:block; width:100%; height:auto; aspect-ratio:1400/886; object-fit:cover; }
.vision-badge { position:absolute; top:.7rem; left:.7rem; max-width:calc(100% - 1.4rem); padding:.35rem .55rem; border:2px solid #071b2d; border-radius:.3rem; background:#ffffff; color:#071b2d; font-size:.76rem; line-height:1.15; font-weight:950; letter-spacing:.02em; }
.vision-shot figcaption { padding:.9rem 1rem 1.05rem; }
.vision-shot figcaption strong, .vision-shot figcaption span { display:block; }
.vision-shot figcaption strong { margin-bottom:.35rem; color:var(--ink); }
.vision-shot figcaption span { color:var(--muted); font-size:.9rem; line-height:1.5; }
.vision-why { padding:1rem 1.35rem 1.25rem; border-top:1px solid var(--line); }
.vision-why strong { display:block; margin-bottom:.28rem; color:var(--ink); }
.vision-why p { margin:0; }
.legal-placeholder { border-width:3px; }
@media (max-width:1050px) { .vision-grid--4 { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:820px) { .vision-grid--3, .vision-grid--4, .simulation-limits { grid-template-columns:1fr; } .vision-badge{font-size:.8rem;} }
@media print { .site-notice{display:none;} .vision-scenario{break-inside:avoid;} }

html[data-contrast="high"] .masthead, html[data-contrast="high"] .nav-band, html[data-contrast="high"] .utility-bar { background:#000000; color:#ffffff; }
html[data-contrast="high"] .brand-copy strong, html[data-contrast="high"] .brand-copy span, html[data-contrast="high"] .brand-tagline, html[data-contrast="high"] .header-claim span, html[data-contrast="high"] .header-claim strong { color:#ffffff; }

/* =====================================================================
   achromatopsie.info · Version 1.2 · Kontrast, Transparenz, Simulation
   ===================================================================== */

:root,
html[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #edf4f8;
  --surface-muted: #dce8f0;
  --ink: #061522;
  --muted: #294153;
  --line: #9cb0bf;
  --line-strong: #60798c;
  --brand: #075486;
  --brand-dark: #061a2d;
  --brand-soft: #dcecf6;
  --accent: #e0b01f;
  --accent-soft: #fff4c7;
  --danger: #8b1e2d;
  --success: #145c3a;
  --focus: #006ac3;
  --link: #004c78;
  --text: var(--ink);
  --heading: #061a2d;
  --border: var(--line);
  --border-strong: var(--line-strong);
  --radius-small: var(--radius-sm);
  --shadow-soft: var(--shadow-small);
  --evidence-strong: #0f5a3f;
  --evidence-medium: #6e5200;
  --experience: #67347a;
  --manufacturer: #2f526e;
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    color-scheme: dark;
    --bg: #000000;
    --surface: #07131e;
    --surface-soft: #0d2538;
    --surface-muted: #17364d;
    --ink: #ffffff;
    --muted: #e0ebf3;
    --line: #7890a3;
    --line-strong: #b6c7d4;
    --brand: #8fd3ff;
    --brand-dark: #020a11;
    --brand-soft: #0b2d45;
    --accent: #ffd23f;
    --accent-soft: #3b3000;
    --danger: #ff9eab;
    --success: #8edbb4;
    --focus: #65c8ff;
    --link: #a7ddff;
    --text: var(--ink);
    --heading: #ffffff;
    --border: var(--line);
    --border-strong: var(--line-strong);
    --radius-small: var(--radius-sm);
    --shadow-soft: var(--shadow-small);
    --evidence-strong: #a1e8c4;
    --evidence-medium: #ffe083;
    --experience: #e6b6f4;
    --manufacturer: #b8d9ed;
  }
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --surface: #07131e;
  --surface-soft: #0d2538;
  --surface-muted: #17364d;
  --ink: #ffffff;
  --muted: #e0ebf3;
  --line: #7890a3;
  --line-strong: #b6c7d4;
  --brand: #8fd3ff;
  --brand-dark: #020a11;
  --brand-soft: #0b2d45;
  --accent: #ffd23f;
  --accent-soft: #3b3000;
  --danger: #ff9eab;
  --success: #8edbb4;
  --focus: #65c8ff;
  --link: #a7ddff;
  --text: var(--ink);
  --heading: #ffffff;
  --border: var(--line);
  --border-strong: var(--line-strong);
  --radius-small: var(--radius-sm);
  --shadow-soft: var(--shadow-small);
  --evidence-strong: #a1e8c4;
  --evidence-medium: #ffe083;
  --experience: #e6b6f4;
  --manufacturer: #b8d9ed;
}

html[data-contrast="high"] {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #ffffff;
  --surface-muted: #eeeeee;
  --ink: #000000;
  --muted: #000000;
  --line: #000000;
  --line-strong: #000000;
  --brand: #000000;
  --brand-dark: #000000;
  --brand-soft: #ffffff;
  --accent: #ffdf00;
  --accent-soft: #fff4a3;
  --focus: #005fcc;
  --link: #000000;
  --text: #000000;
  --heading: #000000;
  --border: #000000;
  --border-strong: #000000;
  --shadow: none;
  --shadow-small: none;
  --shadow-soft: none;
}

html[data-theme="dark"][data-contrast="high"],
html[data-theme="system"][data-contrast="high"] {
  --bg: #000000;
  --surface: #000000;
  --surface-soft: #000000;
  --surface-muted: #111111;
  --ink: #ffffff;
  --muted: #ffffff;
  --line: #ffffff;
  --line-strong: #ffffff;
  --brand: #ffffff;
  --brand-dark: #000000;
  --brand-soft: #000000;
  --accent: #ffdf00;
  --accent-soft: #332d00;
  --focus: #00ffff;
  --link: #ffffff;
  --text: #ffffff;
  --heading: #ffffff;
  --border: #ffffff;
  --border-strong: #ffffff;
}

body {
  background: var(--bg);
  color: var(--ink);
}

p, li, td, th, label, figcaption, .small, .muted {
  color: inherit;
}

.muted,
.small.muted,
.lead,
.hero-intro,
.table-note,
.quick-path span,
.key-data span,
.partner-status,
.review-box strong,
.footer-lead p,
.footer-columns a,
.footer-columns .link-button,
.footer-bottom,
.fact-panel-label,
.fact-panel-list p,
.check-item span {
  color: var(--muted);
}

a:not(.button):not(.nav-link):not(.brand):not(.footer-brand):not(.quick-path) {
  color: var(--link);
}

.utility-bar {
  background: #020b13;
  color: #ffffff;
  border-bottom: 1px solid #5f7280;
}
.utility-copy,
.utility-button,
.display-settings > summary { color: #ffffff; opacity: 1; }

.masthead {
  background: #061a2d;
  color: #ffffff;
  border-bottom: 1px solid #6b7f8e;
}
.brand-copy strong,
.brand-copy span,
.brand-tagline,
.header-claim span,
.header-claim strong { color: #ffffff; }
.brand-tagline { opacity: .9; }
.header-claim { border-left-color: #8ca0af; }
.header-claim span { color: #e4edf4; }
.header-claim strong { color: #ffffff; text-shadow: none; }
.nav-toggle {
  background: #ffffff;
  color: #061a2d;
  border-color: #ffffff;
}

.nav-band { background: #0a3c68; border-top: 0; }
.nav-link:hover,
.nav-parent:hover,
.nav-link.is-active,
.nav-parent.is-active,
.nav-item.is-open > .nav-parent { background: #ffffff; color: #061a2d; }
.submenu {
  background: #ffffff;
  color: #061522;
  border-color: #61788a;
  border-top-color: #e0b01f;
  box-shadow: 0 14px 34px rgba(0,0,0,.24);
}
.submenu a { color: #061522; }
.submenu a:hover,
.submenu a.is-active { background: #dfeef7; color: #061522; border-left-color: #075486; }

.build-notice {
  background: #ffdf3f;
  color: #07111b;
  border-bottom: 2px solid #07111b;
}
.build-notice__inner {
  width: min(calc(100% - 2.5rem), 86rem);
  min-height: 3rem;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .8rem;
  padding: .55rem 0;
  line-height: 1.35;
}
.build-notice strong { font-weight: 900; }
.build-notice span { flex: 1 1 30rem; }
.build-notice a { color: #07111b !important; font-weight: 900; white-space: nowrap; }

.hero {
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 62%, #e8f2f8 62%, #e8f2f8 100%);
}
html[data-theme="dark"] .hero,
html[data-theme="system"] .hero { background: linear-gradient(90deg, var(--surface) 0%, var(--surface) 62%, var(--surface-soft) 62%, var(--surface-soft) 100%); }
.hero h1, .inner-hero h1, h1, h2, h3, h4 { color: var(--heading); }
.section--strong h1,
.section--strong h2,
.section--strong h3,
.section--strong h4,
.section--strong p,
.section--strong label,
.section--strong .lead,
.section--strong .small { color: #ffffff; }

.button {
  background: #075486;
  color: #ffffff;
  border-color: #075486;
}
.button:hover { background: #061a2d; border-color: #061a2d; }
.button--secondary {
  background: #ffffff;
  color: #061a2d;
  border-color: #061a2d;
}
.button--secondary:hover { background: #e5eef4; color: #061a2d; }
.section--strong .button { background: #ffffff; color: #061a2d; border-color: #ffffff; }
.section--strong .button:hover { background: #ffdf3f; border-color: #ffdf3f; }

.card,
.quick-path,
.review-box,
.source-box,
.study-card,
.publication,
.gene-card,
.partner-entry,
.personal-story,
.vision-example,
.sim-card,
.distance-case,
.upload-lab {
  border-color: var(--line-strong);
}

.review-box {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.review-box > div {
  padding: .4rem .55rem;
  border-left: .28rem solid #075486;
  background: var(--surface-soft);
  row-gap: .35rem;
}
.review-box strong { color: var(--ink); font-size: .84rem; }
.review-box span { color: var(--ink); line-height: 1.45; }

.site-footer {
  background: #061a2d;
  color: #ffffff;
  border-top-color: #ffdf3f;
}
.site-footer .footer-brand,
.site-footer .footer-columns h2,
.site-footer .footer-columns a,
.site-footer .footer-columns .link-button,
.site-footer .footer-lead p,
.site-footer .footer-bottom { color: #ffffff; }
.site-footer .footer-columns a { text-decoration-color: rgba(255,255,255,.55); }
.site-footer .footer-bottom { border-top-color: #8295a3; }

.status-panel {
  padding: 1.35rem 1.5rem;
  margin: 0 0 2rem;
  border: 2px solid var(--line-strong);
  border-left-width: .55rem;
  border-radius: var(--radius);
  background: var(--surface-soft);
}
.status-panel strong { display: block; margin-bottom: .4rem; font-size: 1.1rem; }
.status-panel--build { border-left-color: #c69200; }
.quote-panel {
  margin: 1.8rem 0;
  padding: 1.25rem 1.45rem;
  border-left: .5rem solid #075486;
  background: var(--surface-soft);
  font-size: 1.13rem;
  font-weight: 750;
}

.sim-disclaimer {
  border-color: #075486;
  background: #eef6fb;
  color: #061522;
}
.sim-disclaimer a { color: #003f67 !important; }
.sim-disclaimer--strong {
  border-width: 3px;
  border-left-width: .75rem;
  border-color: #0a3c68;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(6,26,45,.12);
}
.sim-disclaimer--dark {
  margin-top: 1.25rem;
  background: #020b13;
  border-color: #ffdf3f;
  color: #ffffff;
}
.sim-disclaimer--dark p,
.sim-disclaimer--dark strong { color: #ffffff; }

.section-head { max-width: 62rem; margin-bottom: 2rem; }
.section-head > p { max-width: 54rem; color: var(--muted); }

.distance-series { display: grid; gap: 2.5rem; }
.distance-case {
  overflow: hidden;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-small);
}
.distance-case > header { padding: 1.25rem 1.35rem 1rem; }
.distance-case > header h3 { margin-bottom: .35rem; }
.distance-case > header p { color: var(--muted); }
.simulation-triptych,
.summer-comparison {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}
.simulation-triptych figure,
.summer-comparison figure {
  margin: 0;
  background: var(--surface);
}
.simulation-triptych figure + figure,
.summer-comparison figure + figure { border-left: 1px solid var(--line-strong); }
.simulation-triptych img,
.summer-comparison img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #dbe5eb;
}
.simulation-triptych figcaption,
.summer-comparison figcaption {
  min-height: 7rem;
  padding: .9rem 1rem 1rem;
  border-top: 1px solid var(--line);
}
.simulation-triptych figcaption strong,
.summer-comparison figcaption strong,
.lab-canvases figcaption strong { display: block; margin-bottom: .2rem; }
.simulation-triptych figcaption span,
.summer-comparison figcaption span,
.lab-canvases figcaption span { display: block; color: var(--muted); font-size: .91rem; line-height: 1.45; }

.sim-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.25rem;
}
.sim-card {
  overflow: hidden;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-small);
}
.sim-card__image { background: #dbe5eb; }
.sim-card__image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.sim-card__body { padding: 1rem 1.05rem 1.15rem; }
.sim-card__body h3 { margin-bottom: .4rem; }
.sim-card__body > p { color: var(--muted); }
.sim-toggle {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: .35rem;
  margin: .9rem 0 .55rem;
}
.sim-toggle button {
  min-height: 2.8rem;
  padding: .42rem .45rem;
  border: 1px solid var(--line-strong);
  border-radius: .35rem;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: .82rem;
  font-weight: 850;
  line-height: 1.25;
}
.sim-toggle button[aria-pressed="true"] {
  background: #061a2d;
  color: #ffffff;
  border-color: #061a2d;
}
.sim-mode-note { min-height: 3.1rem; margin: 0; font-size: .88rem; color: var(--muted); }

.upload-lab {
  padding: 1.4rem;
  border: 2px solid #ffffff;
  border-radius: var(--radius-lg);
  background: #0a2840;
  color: #ffffff;
}
.upload-lab__controls {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr auto;
  gap: 1rem;
  align-items: end;
}
.upload-lab__controls label { display: flex; flex-direction: column; gap: .35rem; font-weight: 850; }
.upload-lab__controls input,
.upload-lab__controls select {
  width: 100%;
  min-height: 3rem;
  padding: .55rem .65rem;
  border: 2px solid #ffffff;
  border-radius: .4rem;
  background: #ffffff;
  color: #061522;
}
.upload-lab__controls .small { grid-column: 1 / -1; margin: 0; color: #ffffff; }
.lab-canvases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.lab-canvases figure { margin: 0; overflow: hidden; border: 2px solid #ffffff; background: #ffffff; color: #061522; }
.lab-canvases canvas { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; background: #d9e2e8; }
.lab-canvases figcaption { padding: .8rem 1rem 1rem; }

html[data-contrast="high"] .build-notice { background: #ffdf00; color: #000000; border-color: #000000; }
html[data-contrast="high"] .build-notice a { color: #000000 !important; }
html[data-contrast="high"] .masthead,
html[data-contrast="high"] .utility-bar,
html[data-contrast="high"] .nav-band,
html[data-contrast="high"] .site-footer { background: #000000; color: #ffffff; }
html[data-contrast="high"] .nav-link:hover,
html[data-contrast="high"] .nav-parent:hover,
html[data-contrast="high"] .nav-link.is-active,
html[data-contrast="high"] .nav-parent.is-active,
html[data-contrast="high"] .nav-item.is-open > .nav-parent { background: #ffffff; color: #000000; }

@media (max-width: 1180px) {
  .build-notice__inner { width: min(calc(100% - 1.5rem), 86rem); }
  .sim-card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .upload-lab__controls { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .upload-lab__controls .button { width: 100%; }
}

@media (max-width: 820px) {
  .simulation-triptych,
  .summer-comparison,
  .lab-canvases { grid-template-columns: 1fr; }
  .simulation-triptych figure + figure,
  .summer-comparison figure + figure { border-left: 0; border-top: 1px solid var(--line-strong); }
  .simulation-triptych figcaption,
  .summer-comparison figcaption { min-height: 0; }
  .sim-card-grid { grid-template-columns: 1fr; }
  .upload-lab__controls { grid-template-columns: 1fr; }
  .build-notice__inner { display: block; padding: .7rem 0; }
  .build-notice__inner strong,
  .build-notice__inner span,
  .build-notice__inner a { display: block; }
  .build-notice__inner span { margin: .2rem 0; }
}

@media (max-width: 620px) {
  .review-box { grid-template-columns: 1fr; }
  .sim-toggle { grid-template-columns: 1fr; }
  .sim-toggle button { min-height: 2.9rem; }
  .upload-lab { padding: 1rem; }
}

@media print {
  .build-notice,
  .upload-lab,
  .sim-toggle { display: none !important; }
}

/* Vier Ansichten für die Sommer-/Filterbrillen-Serie: Original, normales Licht, Blendung, Filter. */
.summer-comparison--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.summer-comparison--4 figure:nth-child(3),
.summer-comparison--4 figure:nth-child(4) { border-top: 1px solid var(--line-strong); }
.summer-comparison--4 figure:nth-child(3) { border-left: 0; }
@media (max-width: 820px) {
  .summer-comparison--4 { grid-template-columns: 1fr; }
  .summer-comparison--4 figure:nth-child(2),
  .summer-comparison--4 figure:nth-child(3),
  .summer-comparison--4 figure:nth-child(4) { border-left: 0; border-top: 1px solid var(--line-strong); }
}


/* =====================================================================
   achromatopsie.info · Version 1.4 · Layout- und Kontrast-Finishing
   Diese Regeln stehen bewusst am Dateiende und haben Vorrang.
   ===================================================================== */

:root,
html[data-theme="light"] {
  color-scheme: light;
  --max: 90rem;
  --bg: #f2f5f7;
  --surface: #ffffff;
  --surface-soft: #e8eff4;
  --surface-muted: #d9e4eb;
  --ink: #071b2d;
  --text: #071b2d;
  --heading: #061a2d;
  --muted: #243b53;
  --line: #a5b6c3;
  --line-strong: #738a9a;
  --border: #a5b6c3;
  --border-strong: #738a9a;
  --brand: #0b527f;
  --brand-dark: #061f34;
  --brand-soft: #dbeaf3;
  --accent: #d3a400;
  --accent-soft: #f6e7af;
  --link: #064f7d;
  --focus: #005eb8;
}

html[data-theme="dark"] {
  --max: 90rem;
  --bg: #05090d;
  --surface: #0b1620;
  --surface-soft: #122536;
  --surface-muted: #19354b;
  --ink: #ffffff;
  --text: #ffffff;
  --heading: #ffffff;
  --muted: #d8e4ec;
  --line: #5f7c91;
  --line-strong: #9bb2c2;
  --border: #5f7c91;
  --border-strong: #9bb2c2;
  --brand: #91d7ff;
  --brand-dark: #020a11;
  --brand-soft: #0c2e46;
  --accent: #ffd84d;
  --accent-soft: #3a3000;
  --link: #aee1ff;
  --focus: #65c8ff;
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    --max: 90rem;
    --bg: #05090d;
    --surface: #0b1620;
    --surface-soft: #122536;
    --surface-muted: #19354b;
    --ink: #ffffff;
    --text: #ffffff;
    --heading: #ffffff;
    --muted: #d8e4ec;
    --line: #5f7c91;
    --line-strong: #9bb2c2;
    --border: #5f7c91;
    --border-strong: #9bb2c2;
    --brand: #91d7ff;
    --brand-dark: #020a11;
    --brand-soft: #0c2e46;
    --accent: #ffd84d;
    --accent-soft: #3a3000;
    --link: #aee1ff;
    --focus: #65c8ff;
  }
}

/* More usable page width without sacrificing reading width in prose. */
.container { width: min(calc(100% - 2.5rem), var(--max)); }
.container--narrow { max-width: 76rem; }
.prose > * { max-width: var(--reading); }

/* Headlines may use the available canvas instead of being forced into columns. */
h1, h2, h3, h4 {
  color: var(--heading);
  overflow-wrap: normal;
  hyphens: auto;
  text-wrap: pretty;
}
h1 { max-width: none; }
h2 { max-width: none; }
.hero h1 { max-width: 15.5ch; }
.inner-hero h1 {
  max-width: 32ch;
  font-size: clamp(2.45rem, 4.75vw, 4.25rem);
  line-height: 1.08;
}
.section-heading,
.section-head { max-width: 72rem; }
.section-heading h2,
.section-head h2 { max-width: none; }
.statement-grid h2 { max-width: 23ch; }

/* Wider, less cramped major layouts. */
.hero-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(23rem, .88fr);
  gap: clamp(2.5rem, 5vw, 5rem);
}
.statement-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.statement-copy { color: var(--muted); }
.statement-copy p { color: var(--muted); }
.project-panel,
.final-cta { gap: clamp(2rem, 5vw, 5rem); }
.final-cta p { color: var(--muted); }

/* Flexible card grids: no squeezed four-column cards and no text overflow. */
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.quick-paths { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.topic-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 2rem 1.5rem; }
.key-data { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.key-data > div { min-width: 0; min-height: 100%; }
.card,
.quick-path,
.topic-teaser,
.key-data > div,
.review-box > div,
.study-card,
.publication,
.gene-card,
.partner-entry {
  min-width: 0;
}
.card *,
.quick-path *,
.topic-teaser *,
.key-data *,
.review-box *,
.study-card *,
.publication *,
.gene-card *,
.partner-entry * {
  overflow-wrap: anywhere;
  hyphens: auto;
}
.key-data strong { font-size: clamp(1.45rem, 2.2vw, 2rem); line-height: 1.12; }
.key-data span { color: var(--muted); line-height: 1.55; }

/* Light-mode contrast fixes for previously washed-out sections. */
.section--accent {
  background: #f6e7af;
  color: #071b2d;
}
.section--accent h1,
.section--accent h2,
.section--accent h3,
.section--accent h4 { color: #061a2d; }
.section--accent p,
.section--accent li,
.section--accent .small,
.section--accent .muted { color: #243b53; }
.section--accent .eyebrow { color: #064f7d; }
.section--accent .button--secondary {
  background: #ffffff;
  color: #061a2d;
  border-color: #061a2d;
}
.section--accent .button--secondary:hover {
  background: #e5eef4;
  color: #061a2d;
}

/* Cards inside a dark section must not inherit white text on a white card. */
.section--strong .card,
.section--strong .visual-teaser {
  background: #ffffff;
  color: #071b2d;
  border-color: #ffffff;
}
.section--strong .card h3,
.section--strong .visual-teaser h3 { color: #061a2d; }
.section--strong .card p,
.section--strong .visual-teaser p { color: #243b53; }

html[data-theme="dark"] .section--strong .card,
html[data-theme="dark"] .section--strong .visual-teaser {
  background: #0b1620;
  color: #ffffff;
  border-color: #5f7c91;
}
html[data-theme="dark"] .section--strong .card h3,
html[data-theme="dark"] .section--strong .visual-teaser h3 { color: #ffffff; }
html[data-theme="dark"] .section--strong .card p,
html[data-theme="dark"] .section--strong .visual-teaser p { color: #d8e4ec; }

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .section--strong .card,
  html[data-theme="system"] .section--strong .visual-teaser {
    background: #0b1620;
    color: #ffffff;
    border-color: #5f7c91;
  }
  html[data-theme="system"] .section--strong .card h3,
  html[data-theme="system"] .section--strong .visual-teaser h3 { color: #ffffff; }
  html[data-theme="system"] .section--strong .card p,
  html[data-theme="system"] .section--strong .visual-teaser p { color: #d8e4ec; }
}

/* Homepage image teasers. */
.visual-teaser { overflow: hidden; padding: 0; }
.visual-teaser img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #dce6ed;
}
.visual-teaser__body { padding: 1.2rem 1.25rem 1.35rem; }
.visual-teaser__body h3 { margin-bottom: .45rem; }
.visual-teaser__body p { margin: 0; }

/* Dropdown menus: dedicated coherent dark mode instead of white-on-white states. */
html[data-theme="dark"] .submenu,
html[data-theme="dark"] .display-panel,
html[data-theme="dark"] .search-dialog {
  background: #0b1620;
  color: #ffffff;
  border-color: #6f899b;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .48);
}
html[data-theme="dark"] .submenu { border-top-color: #ffd84d; }
html[data-theme="dark"] .submenu a {
  color: #ffffff;
  border-top-color: #365166;
}
html[data-theme="dark"] .submenu a:hover,
html[data-theme="dark"] .submenu a.is-active {
  background: #19354b;
  color: #ffffff;
  border-left-color: #91d7ff;
}
html[data-theme="dark"] .setting-group button,
html[data-theme="dark"] .setting-row button,
html[data-theme="dark"] .dialog-close {
  background: #122536;
  color: #ffffff;
  border-color: #6f899b;
}
html[data-theme="dark"] .setting-group button[aria-pressed="true"],
html[data-theme="dark"] .setting-row button[aria-pressed="true"] {
  background: #91d7ff;
  color: #041522;
  border-color: #91d7ff;
}
html[data-theme="dark"] .search-field input {
  background: #05090d;
  color: #ffffff;
  border-color: #6f899b;
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .submenu,
  html[data-theme="system"] .display-panel,
  html[data-theme="system"] .search-dialog {
    background: #0b1620;
    color: #ffffff;
    border-color: #6f899b;
    box-shadow: 0 16px 38px rgba(0, 0, 0, .48);
  }
  html[data-theme="system"] .submenu { border-top-color: #ffd84d; }
  html[data-theme="system"] .submenu a {
    color: #ffffff;
    border-top-color: #365166;
  }
  html[data-theme="system"] .submenu a:hover,
  html[data-theme="system"] .submenu a.is-active {
    background: #19354b;
    color: #ffffff;
    border-left-color: #91d7ff;
  }
  html[data-theme="system"] .setting-group button,
  html[data-theme="system"] .setting-row button,
  html[data-theme="system"] .dialog-close {
    background: #122536;
    color: #ffffff;
    border-color: #6f899b;
  }
  html[data-theme="system"] .setting-group button[aria-pressed="true"],
  html[data-theme="system"] .setting-row button[aria-pressed="true"] {
    background: #91d7ff;
    color: #041522;
    border-color: #91d7ff;
  }
  html[data-theme="system"] .search-field input {
    background: #05090d;
    color: #ffffff;
    border-color: #6f899b;
  }
}

/* Preserve true black/white in explicit high contrast mode. */
html[data-contrast="high"] .section--accent {
  background: var(--accent-soft);
  color: var(--ink);
}
html[data-contrast="high"] .section--accent p,
html[data-contrast="high"] .section--accent li { color: var(--ink); }
html[data-contrast="high"] .submenu,
html[data-contrast="high"] .display-panel,
html[data-contrast="high"] .search-dialog {
  border-width: 2px;
  box-shadow: none;
}

@media (max-width: 1180px) {
  .hero-grid,
  .statement-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 18ch; }
  .key-data { max-width: none; }
}

@media (max-width: 820px) {
  .container { width: min(calc(100% - 1.4rem), var(--max)); }
  .inner-hero h1 { font-size: clamp(2.15rem, 10vw, 3.35rem); }
  .section { padding: 3.5rem 0; }
}


/* v2.0: coherent editorial components and responsive, keyboard-friendly controls. */
:root { --v2-text: #102639; --v2-muted: #304a5c; --v2-surface: #ffffff; --v2-soft: #e9f1f6; --v2-link: #07517d; --v2-border: #647e91; }
html[data-theme="dark"] { --v2-text: #f6f9fc; --v2-muted: #d6e4ee; --v2-surface: #0d2232; --v2-soft: #132f43; --v2-link: #a8deff; --v2-border: #8da8bb; }
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] { --v2-text: #f6f9fc; --v2-muted: #d6e4ee; --v2-surface: #0d2232; --v2-soft: #132f43; --v2-link: #a8deff; --v2-border: #8da8bb; }
}
html[data-contrast="high"] { --v2-text: #000; --v2-muted: #000; --v2-surface: #fff; --v2-soft: #fff; --v2-link: #003d75; --v2-border: #000; }
html[data-theme="dark"][data-contrast="high"] { --v2-text: #fff; --v2-muted: #fff; --v2-surface: #000; --v2-soft: #000; --v2-link: #b7e4ff; --v2-border: #fff; }
@media (prefers-color-scheme: dark) { html[data-theme="system"][data-contrast="high"] { --v2-text:#fff; --v2-muted:#fff; --v2-surface:#000; --v2-soft:#000; --v2-link:#b7e4ff; --v2-border:#fff; } }
[hidden] { display:none !important; }
.editorial-layout { max-width: 76rem; }
.editorial-content { min-width:0; width:100%; }
.editorial-content p, .editorial-content li, .editorial-content dd { line-height:1.72; }
.editorial-content > p, .editorial-block > p, .editorial-content > .note p { max-width:78ch; }
.editorial-block { margin:2.6rem 0; }
.editorial-block:first-child { margin-top:0; }
.editorial-block h2, .editorial-content h2 { max-width:none; font-size:clamp(1.55rem,2.7vw,2.35rem); line-height:1.23; text-wrap:pretty; }
.inner-hero h1 { max-width:none; font-size:clamp(2.1rem,4.1vw,3.8rem); line-height:1.15; text-wrap:pretty; }
.inner-hero .lead { max-width:76ch; }
.editorial-content .review-box { margin-bottom:2.4rem; }
.review-box strong, .review-box span { display:block; }
.review-box strong { margin-bottom:.25rem; }
.association-feature { padding:clamp(1.25rem,3vw,2.4rem); border:1px solid var(--v2-border); border-left:5px solid var(--v2-link); border-radius:.6rem; background:var(--v2-soft); color:var(--v2-text); }
.association-feature h2 { color:var(--v2-text); max-width:none; }
.association-feature p { color:var(--v2-text); max-width:82ch; }
.association-feature a:not(.button) { color:var(--v2-link); }
.resource-kicker { font-size:.81rem; font-weight:800; letter-spacing:.07em; text-transform:uppercase; color:var(--v2-link); margin:0 0 .6rem; }
.resource-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,20rem),1fr)); gap:1.25rem; margin:1.6rem 0; }
.resource-card { display:flex; flex-direction:column; min-width:0; padding:1.5rem; border:1px solid var(--v2-border); border-radius:.65rem; background:var(--v2-surface); color:var(--v2-text); }
.resource-card h3 { color:var(--v2-text); font-size:1.3rem; line-height:1.3; margin:0 0 .7rem; }
.resource-card p { color:var(--v2-muted); }
.resource-card a { margin-top:auto; color:var(--v2-link) !important; text-underline-offset:.18em; font-weight:750; }
.resource-card *, .practice-item *, .association-feature * { overflow-wrap:anywhere; hyphens:auto; }
.button-row, .material-actions { display:flex; flex-wrap:wrap; align-items:center; gap:.8rem 1.2rem; margin:1.1rem 0 0; }
.button-row > a:not(.button) { padding:.4rem 0; }
.external-label { font-size:.83em; font-weight:500; }
.definition-list dt { font-size:1.2rem; font-weight:800; margin:1.25rem 0 .4rem; }
.definition-list dd { margin:0; max-width:78ch; }
.content-label { display:inline-block; padding:.3rem .6rem; border:1px solid var(--v2-border); background:var(--v2-soft); color:var(--v2-text); font-weight:700; font-size:.83rem; border-radius:.25rem; }
.news-list .editorial-block { border-bottom:1px solid var(--v2-border); padding-bottom:2rem; }
.practice-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,25rem),1fr)); gap:1.2rem; }
.practice-item { padding:1.5rem; border:1px solid var(--v2-border); border-radius:.6rem; background:var(--v2-surface); color:var(--v2-text); min-width:0; }
.practice-item h2 { color:var(--v2-text); font-size:1.35rem; margin-bottom:.8rem; }
.practice-item p { color:var(--v2-text); }
.practice-item a { color:var(--v2-link) !important; font-weight:750; }
.filter-bar { display:flex; flex-wrap:wrap; gap:1rem; align-items:flex-end; padding:1.25rem; background:var(--v2-soft); border:1px solid var(--v2-border); border-radius:.6rem; margin:1.8rem 0; color:var(--v2-text); }
.filter-bar label { display:flex; flex-direction:column; gap:.35rem; flex:1 1 14rem; font-weight:750; }
.filter-bar input,.filter-bar select { width:100%; min-height:2.8rem; padding:.55rem .65rem; border:1px solid var(--v2-border); background:var(--v2-surface); color:var(--v2-text); border-radius:.3rem; }
.filter-bar p { margin:0 0 .5rem; color:var(--v2-text); }
.footer-columns { grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr)); }
.footer-bottom { flex-wrap:wrap; gap:.8rem; }
.footer-bottom a { color:inherit !important; }
.submenu { max-height:min(70vh,38rem); overflow-y:auto; }
.submenu a { padding:.65rem .9rem; }
html .submenu a:focus-visible { outline:3px solid currentColor; outline-offset:-4px; }
html[data-theme="dark"] .display-panel .small,html[data-theme="dark"] .display-panel .panel-title { color:#f3f8fc; }
@media (prefers-color-scheme: dark) { html[data-theme="system"] .display-panel .small, html[data-theme="system"] .display-panel .panel-title { color:#f3f8fc; } }
/* Keep faces and evidence in view; do not silently crop comparison images. */
.simulation-triptych img, .simulation-grid img { width:100%; height:auto !important; aspect-ratio:auto !important; object-fit:contain !important; }
.simulation-triptych { align-items:start; }
.sim-card__image img { object-fit:contain; }
html .sim-toggle button[aria-pressed="true"] { outline:2px solid var(--v2-link); outline-offset:2px; }
.sim-toggle { flex-wrap:wrap; gap:.55rem; }
.sim-toggle button { min-height:2.7rem; min-width:0; }
.upload-lab__controls label { min-width:0; }
.upload-lab__controls input,.upload-lab__controls select { max-width:100%; }
.upload-lab__controls button { white-space:normal; }
html .section--strong .section-head p { color:#eef6fc; }
html .section--accent .final-cta p { color:#203a4c; }
html[data-theme="dark"] .section--accent .final-cta p { color:var(--ink); }
@media (prefers-color-scheme:dark) { html[data-theme="system"] .section--accent .final-cta p { color:var(--ink); } }
@media (max-width:820px) {
  .inner-hero { padding:2.6rem 0; }
  .review-box { grid-template-columns:1fr; }
  .editorial-block { margin:2rem 0; }
  .resource-card,.practice-item { padding:1.1rem; }
  .button-row { align-items:stretch; }
  .button-row .button { flex:1 1 14rem; }
  .section-head h2 { max-width:none; }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { animation-duration:0.01ms !important; transition-duration:0.01ms !important; } }
@media print {
 .site-header,.site-footer,.back-top,.skip-link,.search-dialog,.material-actions,.filter-bar,.build-notice { display:none !important; }
 html,body,main,.section,.inner-hero,.editorial-content,.editorial-block,.source-box { color:#000 !important; background:#fff !important; }
 .container,.editorial-layout { width:auto !important; max-width:none !important; }
 .section,.inner-hero { padding:.5rem 0 !important; }
 .review-box { display:none; }
 .editorial-block { margin:1rem 0; break-inside:avoid; }
 h1,h2,h3 { color:#000 !important; }
 h1 { font-size:24pt !important; }
 h2 { font-size:15pt !important; }
 p,li,dd { font-size:11pt !important; }
 a { color:#000 !important; }
 .resource-grid,.practice-list { display:block; }
}
/* Long German headings and footer links must stay usable at 320px. */
h1,h2,h3,h4 { overflow-wrap:anywhere; hyphens:auto; }
html .site-footer a:not(.button),html .site-footer .link-button { color:#e3f2ff !important; text-decoration-color:currentColor; }
html .site-footer a:hover,html .site-footer a:focus-visible { color:#fff !important; text-decoration:underline; }
html .site-footer p,html .site-footer .footer-bottom { color:#d6e4ee; }
.editorial-content .resource-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
@media(max-width:700px) { .editorial-content .resource-grid { grid-template-columns:1fr; } }
/* Explicit foreground/background pairs where legacy dark-section styles clash. */
html a.skip-link { background:#071b2d !important; color:#fff !important; }
html .section--accent .final-cta p { color:#203a4c !important; }
html .lab-canvases figcaption { background:var(--v2-surface); color:var(--v2-text); }
html .lab-canvases figcaption strong,html .lab-canvases figcaption span { color:var(--v2-text) !important; }
html[data-theme="dark"] .sim-disclaimer a { color:#b7e4ff !important; }
@media(prefers-color-scheme:dark) { html[data-theme="system"] .sim-disclaimer a { color:#b7e4ff !important; } }
html .legal-step .step-number { background:#ffd84d; color:#071b2d; }
html .gene-card .gene-code { color:var(--v2-link); }
html .sim-disclaimer { background:var(--v2-soft); color:var(--v2-text); border-color:var(--v2-border); }
html .sim-disclaimer p,html .sim-disclaimer strong { color:var(--v2-text); }
html[data-theme] .sim-disclaimer a { color:var(--v2-link) !important; }
html[data-theme="dark"][data-contrast="high"] .section--accent { background:#000; color:#fff; }
html[data-theme="dark"][data-contrast="high"] .section--accent h2,
html[data-theme="dark"][data-contrast="high"] .section--accent .eyebrow,
html[data-theme="dark"][data-contrast="high"] .section--accent .final-cta p { color:#fff !important; }
@media(prefers-color-scheme:dark) {
 html[data-theme="system"][data-contrast="high"] .section--accent { background:#000; color:#fff; }
 html[data-theme="system"][data-contrast="high"] .section--accent h2,
 html[data-theme="system"][data-contrast="high"] .section--accent .eyebrow,
 html[data-theme="system"][data-contrast="high"] .section--accent .final-cta p { color:#fff !important; }
}
/* Legacy system/high mode incorrectly forced dark variables even with a light OS. */
@media (prefers-color-scheme:light) {
 html[data-theme="system"][data-contrast="high"] {
  --bg:#fff; --surface:#fff; --surface-soft:#fff; --surface-muted:#eee;
  --ink:#000; --muted:#000; --line:#000; --line-strong:#000;
  --brand:#000; --brand-dark:#000; --brand-soft:#fff; --accent:#ffdf00;
  --accent-soft:#fff4a3; --focus:#005fcc; --link:#000; --text:#000;
  --heading:#000; --border:#000; --border-strong:#000;
 }
}
html[data-contrast="high"] .evidence-label,
html[data-contrast="high"] .personal-story .label { color:var(--ink) !important; background:var(--surface); border-color:var(--line); }


/* === v2.2: deutschlandweite Ausrichtung, Sprache und Bildmodule === */
.language-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: .45rem;
  overflow: hidden;
  background: rgba(255,255,255,.06);
}
.language-switch a {
  min-width: 2.5rem;
  padding: .43rem .55rem;
  color: #fff !important;
  text-decoration: none;
  text-align: center;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .035em;
}
.language-switch a + a { border-left: 1px solid rgba(255,255,255,.35); }
.language-switch a:hover,
.language-switch a:focus-visible,
.language-switch a.is-active { background: #fff; color: #061a2d !important; }
.language-switch a[aria-current="true"] { background:#fff; color:#061a2d !important; }

.portal-scope {
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(18rem,.85fr);
  gap:clamp(1.5rem,4vw,4rem);
  align-items:start;
}
.portal-scope__facts {
  display:grid;
  gap:.85rem;
}
.portal-scope__facts > div {
  padding:1rem 1.1rem;
  border-left:4px solid var(--accent);
  background:var(--surface);
  border-radius:var(--radius-sm);
}
.portal-scope__facts strong { display:block; margin-bottom:.25rem; }
.portal-scope__facts span { color:var(--muted); }

.visual-story-grid,
.tool-visual-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:1.15rem;
  margin:1.5rem 0 2.25rem;
}
.visual-story,
.tool-visual {
  overflow:hidden;
  min-width:0;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface);
  box-shadow:var(--shadow-small);
}
.visual-story img,
.tool-visual img {
  display:block;
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  background:var(--surface-muted);
}
.tool-visual img { aspect-ratio:1/1; }
.visual-story__body,
.tool-visual__body { padding:1rem 1.05rem 1.1rem; }
.visual-story__body h3,
.tool-visual__body h3 { margin:0 0 .35rem; font-size:1.05rem; }
.visual-story__body p,
.tool-visual__body p { margin:0; color:var(--muted); font-size:.93rem; }
.image-disclaimer {
  margin-top:-1rem;
  margin-bottom:2rem;
  color:var(--muted);
  font-size:.88rem;
}

.scope-split {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1rem;
  margin:1.35rem 0 2rem;
}
.scope-panel {
  padding:1.2rem 1.25rem;
  border:1px solid var(--line);
  border-top:4px solid var(--brand);
  border-radius:var(--radius);
  background:var(--surface);
}
.scope-panel--land { border-top-color:var(--accent); }
.scope-panel h2,.scope-panel h3 { margin-top:0; }
.scope-panel ul { margin-bottom:0; }

.state-finder {
  padding:1.25rem;
  margin:1.5rem 0 2rem;
  border:1px solid var(--line-strong);
  border-radius:var(--radius);
  background:var(--surface-soft);
}
.state-finder label { display:block; font-weight:900; margin-bottom:.5rem; }
.state-finder select {
  width:min(100%,32rem);
  min-height:3rem;
  padding:.6rem .75rem;
  border:2px solid var(--line-strong);
  border-radius:.45rem;
  background:var(--surface);
  color:var(--ink);
  font:inherit;
}
.state-result {
  margin-top:1rem;
  padding:1.1rem 1.2rem;
  border-left:4px solid var(--brand);
  background:var(--surface);
  border-radius:var(--radius-sm);
}
.state-result[hidden] { display:none !important; }
.state-result h3 { margin:.05rem 0 .45rem; }
.state-result ul { margin-bottom:.35rem; }
.state-actions {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1rem;
  margin-top:1.5rem;
}
.state-action {
  padding:1.1rem 1.2rem;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface);
}
.state-action h3 { margin-top:0; }

.language-roadmap {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1rem;
  margin:1.2rem 0 0;
}
.language-roadmap > div { padding:1.1rem 1.2rem; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); }
.language-roadmap strong { display:block; margin-bottom:.25rem; }

@media (max-width: 1040px) {
  .visual-story-grid,.tool-visual-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .portal-scope { grid-template-columns:1fr; }
}
@media (max-width: 720px) {
  .visual-story-grid,.tool-visual-grid,.scope-split,.state-actions,.language-roadmap { grid-template-columns:1fr; }
  .language-switch a { min-width:2.35rem; padding:.4rem .5rem; }
}

html[data-contrast="high"] .language-switch { border-color:currentColor; }
html[data-contrast="high"] .state-finder select { border-color:currentColor; }

/* === v2.3: Themenbilder, Flyer und integrierte Sehhilfen === */
html[data-text="xlarge"] { --font-size: 132%; }

/* Visueller Einstieg für Themenseiten. */
.topic-banner {
  position: relative;
  width: 100%;
  height: clamp(6.5rem, 14vw, 10.5rem);
  margin: 0;
  overflow: hidden;
  background: #dce6ed;
  border-bottom: 1px solid var(--line);
}
.topic-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.topic-banner::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  pointer-events: none;
  background: linear-gradient(to top, rgba(2,11,19,.28), rgba(2,11,19,0));
}
.topic-banner figcaption {
  position: absolute;
  z-index: 2;
  right: max(1rem, calc((100vw - 86rem) / 2));
  bottom: .75rem;
  max-width: calc(100% - 2rem);
  padding: .32rem .58rem;
  border: 1px solid rgba(255,255,255,.66);
  border-radius: .35rem;
  background: rgba(2,11,19,.78);
  color: #fff;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .01em;
}

/* Das Bedienfeld bleibt Zusatzhilfe, nicht Ersatz für zugängliche Grundstruktur. */
.display-panel {
  width: min(32rem, calc(100vw - 2rem));
  max-height: min(80vh, 48rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.display-panel .panel-intro { margin: -.25rem 0 .85rem; }
.setting-label {
  display: block;
  margin-top: .75rem;
  color: var(--ink);
  font-size: .79rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.speech-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: .4rem;
  margin: .45rem 0 .45rem;
}
.speech-controls button {
  min-height: 2.65rem;
  padding: .45rem .5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 760;
}
.speech-controls button:hover,
.speech-controls button:focus-visible { border-color: var(--brand); background: var(--surface-soft); }
.speech-status { margin: .3rem 0 .8rem; }
.reset-appearance { margin-top: .25rem; }

/* Mehr Leseabstand */
html[data-spacing="relaxed"] p,
html[data-spacing="relaxed"] li,
html[data-spacing="relaxed"] dd,
html[data-spacing="relaxed"] figcaption,
html[data-spacing="relaxed"] .lead,
html[data-spacing="relaxed"] .editorial-content p,
html[data-spacing="relaxed"] .editorial-content li {
  line-height: 1.92 !important;
}
html[data-spacing="relaxed"] body { letter-spacing: .012em; }

/* Links deutlicher hervorheben */
html[data-links="strong"] main a:not(.button),
html[data-links="strong"] .site-footer a,
html[data-links="strong"] .breadcrumbs a {
  text-decoration: underline !important;
  text-decoration-thickness: .16em !important;
  text-underline-offset: .2em !important;
}

/* Blendung reduzieren: helle Flächen entschärfen und Bilder dezent abdunkeln. */
html[data-glare="reduced"][data-theme="light"] {
  --bg: #dfe6ea;
  --surface: #edf1f3;
  --surface-soft: #d8e1e6;
  --surface-muted: #cfdbe1;
}
@media (prefers-color-scheme: light) {
  html[data-glare="reduced"][data-theme="system"] {
    --bg: #dfe6ea;
    --surface: #edf1f3;
    --surface-soft: #d8e1e6;
    --surface-muted: #cfdbe1;
  }
}
html[data-glare="reduced"] main img,
html[data-glare="reduced"] .topic-banner img {
  filter: brightness(.80) contrast(.96);
}

/* Bilder abdunkeln oder ausblenden. */
html[data-images="dim"] main img,
html[data-images="dim"] .topic-banner img {
  filter: brightness(.64) contrast(.93);
}
html[data-images="hidden"] .topic-banner,
html[data-images="hidden"] main img,
html[data-images="hidden"] main canvas,
html[data-images="hidden"] main picture {
  display: none !important;
}
html[data-images="hidden"] .sim-card__image,
html[data-images="hidden"] .vision-image-wrap { min-height: 0 !important; background: transparent !important; }

/* High contrast wins over glare surface colors. */
html[data-contrast="high"][data-glare="reduced"] {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #ffffff;
  --surface-muted: #f2f2f2;
}
html[data-theme="dark"][data-contrast="high"][data-glare="reduced"],
html[data-theme="system"][data-contrast="high"][data-glare="reduced"] {
  --bg: #000000;
  --surface: #000000;
  --surface-soft: #000000;
  --surface-muted: #111111;
}

/* Flyer- und Downloaddarstellung */
.flyer-preview,
.flyer-mini-grid {
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(18rem,.95fr);
  gap: clamp(1.3rem,4vw,3rem);
  align-items: center;
  margin: 1.4rem 0 2rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.flyer-preview img,
.flyer-mini-grid img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-small);
}
.flyer-mini-grid { margin: 0; }
.flyer-download-feature { padding: 0 !important; border: 0 !important; background: transparent !important; }

@media (max-width: 760px) {
  .display-panel { right: -4.2rem; width: min(31rem, calc(100vw - 1rem)); max-height: 76vh; }
  .speech-controls { grid-template-columns: 1fr; }
  .flyer-preview,.flyer-mini-grid { grid-template-columns: 1fr; padding: .9rem; }
  .topic-banner { height: 7.25rem; }
  .topic-banner figcaption { right: .55rem; bottom: .45rem; font-size: .64rem; }
}

@media print {
  .topic-banner { display: none !important; }
}
