@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-wdth-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-wdth-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-wdth-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-wdth-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #ffffff;
  --ink: #111418;
  --ink-2: #3a4048;
  --lead: #5c6470;
  --rule: #dadee4;
  --blue: #2f6bff;
  --blue-ink: #1d4fd6;
  --green: #16a865;
  --red: #e5392f;
  --code: #f1f3f5;
  --scroll-thumb: #c3c8cf;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(20px, 5vw, 64px);
  --mantine-color-body: var(--paper);
  --mantine-color-text: var(--ink);
  --mantine-font-family: var(--sans);
  --mantine-font-family-headings: var(--sans);
  color-scheme: light;
  scrollbar-color: var(--scroll-thumb) var(--paper);
}

/* Dark theme: follows the system unless the visitor picked light; the header toggle sets data-theme. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --paper: #0f1216;
    --ink: #e9ecf0;
    --ink-2: #b9c0c9;
    --lead: #8d96a2;
    --rule: #2b313a;
    --blue: #5c8dff;
    --blue-ink: #8fb0ff;
    --green: #2ec27e;
    --red: #ff5d52;
    --code: #1a1f25;
    --scroll-thumb: #3a414b;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #0f1216;
  --ink: #e9ecf0;
  --ink-2: #b9c0c9;
  --lead: #8d96a2;
  --rule: #2b313a;
  --blue: #5c8dff;
  --blue-ink: #8fb0ff;
  --green: #2ec27e;
  --red: #ff5d52;
  --code: #1a1f25;
  --scroll-thumb: #3a414b;
  color-scheme: dark;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}

h1, h2, h3, p, ul, ol, dl, dd, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

p, li, dd {
  text-wrap: pretty;
}

::selection {
  background: var(--blue);
  color: var(--paper);
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent);
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}

a:hover {
  text-decoration-color: var(--blue);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

code, .mono {
  font-family: var(--mono);
  font-size: 0.82em;
  letter-spacing: 0;
}

strong {
  font-weight: 700;
}

.nowrap {
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.site-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.wordmark.wordmark {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: clamp(16px, 3vw, 36px);
  margin-left: auto;
}

/* Theme toggle: names the theme it switches to; shown only when JavaScript runs. */
.theme-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--lead);
  font: 500 14px/1 var(--sans);
  cursor: pointer;
  transition: color 0.15s ease;
}

.js .theme-toggle {
  display: inline-flex;
}

.theme-toggle:hover {
  color: var(--ink);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.theme-glyph {
  width: 12px;
  height: 12px;
  border: 1.5px solid currentColor;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}

.theme-to-light {
  display: none;
}

:root[data-theme="dark"] .theme-to-dark {
  display: none;
}

:root[data-theme="dark"] .theme-to-light {
  display: inline;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-to-dark {
    display: none;
  }
  :root:not([data-theme="light"]) .theme-to-light {
    display: inline;
  }
}

.site-nav .nav-link {
  width: auto;
  padding: 6px 0;
  background: none;
  color: var(--ink);
  border-radius: 0;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 3px;
  text-underline-offset: 10px;
}

.site-nav .nav-link:hover {
  background: none;
  text-decoration-color: var(--rule);
}

.site-nav .nav-link[data-active],
.site-nav .nav-link[data-active]:hover {
  background: none;
  color: var(--ink);
  text-decoration-color: var(--blue);
}

.site-nav .mantine-NavLink-label {
  font-size: 16px;
  font-weight: 500;
}

.site-nav .mantine-NavLink-body {
  overflow: visible;
}

.site-main {
  display: block;
  min-height: 60vh;
}

/* The last section's own bottom padding plus the footer margin end the page. */
.page {
  padding-bottom: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 24px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.button:hover {
  background: var(--blue-ink);
  color: var(--paper);
  text-decoration: none;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}

.page-head {
  padding: clamp(48px, 8vw, 88px) 0 clamp(36px, 5vw, 56px);
  display: grid;
  gap: 24px;
}

.page-title {
  font-size: clamp(52px, 7.5vw, 96px);
  font-weight: 800;
  font-stretch: 70%;
  line-height: 0.9;
  letter-spacing: -0.015em;
}

.page-lede {
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.45;
  max-width: 38em;
  color: var(--ink-2);
}

.page-lede strong {
  color: var(--ink);
  font-weight: 800;
}

.section {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 16px 48px;
  padding-block: 36px 44px;
  border-top: 3px solid var(--ink);
}

.section-title {
  font-size: 24px;
  font-weight: 800;
  font-stretch: 75%;
  line-height: 1.1;
}

.section-title .mono {
  font-size: 15px;
  font-weight: 600;
}

.section-body {
  min-width: 0;
}

.prose {
  max-width: 68ch;
}

.prose p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-2);
}

.prose p + p {
  margin-top: 1em;
}

.more {
  display: inline-block;
  margin-top: 24px;
  font-weight: 600;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  grid-template-areas: "diagram copy";
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(56px, 7vw, 96px);
}

.hero-copy {
  grid-area: copy;
  display: grid;
  gap: 28px;
  min-width: 0;
}

.display {
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 860;
  font-stretch: 64%;
  line-height: 0.87;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-role {
  font-size: clamp(19px, 1.9vw, 23px);
  line-height: 1.4;
  color: var(--ink-2);
  max-width: 30em;
}

.hero-role strong,
.hero-role span {
  display: block;
}

.hero-role strong {
  color: var(--ink);
}

.methods {
  display: grid;
  gap: 8px;
}

.methods li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
}

.key {
  display: block;
  width: 26px;
  height: 4px;
}

.key--blue { background: var(--blue); }
.key--green { background: var(--green); }
.key--red { background: var(--red); }

.proof {
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.4;
  padding-top: 22px;
  border-top: 3px solid var(--ink);
  max-width: 28em;
}

.proof strong {
  font-weight: 800;
  font-stretch: 82%;
}

.diagram {
  grid-area: diagram;
  position: relative;
  height: clamp(480px, 48vw, 640px);
  padding: 64px 72px 28px 44px;
}

.axis {
  position: absolute;
  left: 8px;
  top: 16px;
  bottom: 28px;
  width: 2px;
  background: var(--ink);
}

.axis::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -5px;
  border: 6px solid transparent;
  border-top-width: 0;
  border-bottom: 11px solid var(--ink);
}

.axis-label {
  position: absolute;
  left: 14px;
  top: -6px;
  font-size: 13px;
  color: var(--lead);
}

.plot {
  position: relative;
  height: 100%;
}

.levels {
  position: absolute;
  inset: 0;
}

.level {
  position: absolute;
  top: var(--y);
  left: 0;
  right: 0;
  border-top: 3px solid var(--ink);
}

.level-label {
  position: absolute;
  left: 44px;
  bottom: 6px;
  display: flex;
  flex-direction: column;
  font-size: 14px;
  line-height: 1.2;
}

.level-label strong {
  font-weight: 700;
}

.level-place {
  color: var(--lead);
}

.level-year {
  position: absolute;
  left: calc(100% + 10px);
  top: -9px;
  font-size: 12px;
  color: var(--lead);
  white-space: nowrap;
}

.level:not(.level--top) .level-label {
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.level-short {
  position: absolute;
  left: 44px;
  bottom: 5px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.level--top .level-short {
  display: none;
}

.level--top {
  border-top: 6px solid var(--blue);
}

.level--top .level-label {
  bottom: 10px;
  font-size: 17px;
}

.level--top .level-label strong {
  font-size: 19px;
  font-weight: 800;
}

.level--top .level-place {
  color: var(--ink-2);
}

.level--top .level-year {
  top: -11px;
  color: var(--blue-ink);
  font-weight: 600;
}

.excitation {
  position: absolute;
  left: 16px;
  top: calc(var(--to) + 7px);
  bottom: 0;
  width: 2px;
  background: var(--ink);
  transform-origin: 50% 100%;
}

.excitation::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -5px;
  border: 6px solid transparent;
  border-top-width: 0;
  border-bottom: 11px solid var(--ink);
}

.emission {
  position: absolute;
  top: calc(var(--from) + 7px);
  height: calc(var(--to) - var(--from) - 10px);
  width: 12px;
  margin-left: -4.5px;
  transform-origin: 50% 0;
  /* Paper behind the wave breaks the levels it passes through. */
  background: var(--paper);
  box-shadow: -3px 0 var(--paper), 3px 0 var(--paper);
}

/* The shaft is a wave; its period follows the colour's wavelength (red longest). */
.emission::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 24' preserveAspectRatio='none'%3E%3Cpath d='M6 0C11 6 11 6 6 12S1 18 6 24' fill='none' stroke='black' stroke-width='2.5'/%3E%3C/svg%3E") 50% 100% / 12px var(--period) repeat-y;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 24' preserveAspectRatio='none'%3E%3Cpath d='M6 0C11 6 11 6 6 12S1 18 6 24' fill='none' stroke='black' stroke-width='2.5'/%3E%3C/svg%3E") 50% 100% / 12px var(--period) repeat-y;
}

.emission::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: -1px;
  border: 7px solid transparent;
  border-bottom-width: 0;
  border-top: 11px solid currentColor;
}

/* Arrows start right of the lower level labels, which end about 196 px in. */
.emission--blue { color: var(--blue); left: max(58%, 212px); --period: 18px; }
.emission--green { color: var(--green); left: calc(max(58%, 212px) + 30px); --period: 20.5px; }
.emission--red { color: var(--red); left: calc(max(58%, 212px) + 60px); --period: 24px; }

@keyframes rise {
  from { transform: scaleY(0); }
}

@keyframes fall {
  from { transform: scaleY(0); }
}

@keyframes charge {
  from { border-top-color: var(--ink); }
}

@media (prefers-reduced-motion: no-preference) {
  .excitation {
    animation: rise 0.6s var(--ease-out) 0.15s both;
  }
  .level--top {
    animation: charge 0.4s ease-out 0.6s both;
  }
  .emission {
    animation: fall 0.55s var(--ease-out) calc(0.8s + var(--i) * 0.16s) both;
  }
}

.recent li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

.recent li:first-child {
  padding-top: 4px;
}

.recent-year {
  grid-row: span 2;
  color: var(--lead);
  padding-top: 4px;
}

.recent a {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
}

.recent-journal {
  font-style: italic;
  color: var(--lead);
  font-size: 15px;
  margin-top: 4px;
}

.records > li + li {
  border-top: 1px solid var(--rule);
}

.record {
  display: grid;
  gap: 6px;
  padding: 20px 0 22px;
  max-width: 44rem;
}

.records > .record:first-child {
  padding-top: 2px;
}

.record-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 2px;
}

.record-id {
  font-size: 13px;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

.tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--lead);
}

.tag--strong {
  color: var(--ink);
  font-weight: 800;
}

.record-years .section {
  display: block;
  padding-block: 28px 36px;
  border-top: 0;
}

.record-years .section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.record-years .section-title::before {
  content: "";
  flex: 1;
  height: 3px;
  background: var(--ink);
}

.record-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  font-stretch: 92%;
}

.record-authors {
  font-size: 15px;
  line-height: 1.5;
  color: var(--lead);
  max-width: 34rem;
}

.record-authors strong {
  color: var(--ink);
}

.record-venue {
  font-size: 15px;
  color: var(--ink-2);
}

.record-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-size: 15px;
  font-weight: 600;
  margin-top: 4px;
}

.entry {
  padding: 22px 0 24px;
  max-width: 46rem;
}

.section-body > .entry:first-child {
  padding-top: 2px;
}

.entry-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.entry-head .entry-org {
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
}

.entry-org {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.entry-dates {
  color: var(--lead);
  white-space: nowrap;
}

.entry-head .entry-dates {
  padding-left: 10px;
  transform: translateY(50%);
  line-height: 1;
}

.entry-role {
  margin-top: 4px;
  color: var(--ink-2);
}

.entry-line {
  font-size: 15px;
  color: var(--lead);
  margin-top: 2px;
}

.bullets {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  max-width: 60ch;
}

.bullets li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-2);
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 14px;
  height: 2px;
  background: var(--ink);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px 48px;
}

.contact {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 6px 12px;
  margin-top: 10px;
}

.contact dt {
  color: var(--lead);
  font-size: 15px;
}

.contact dd {
  overflow-wrap: anywhere;
}

.dated-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

.dated-list li:first-child {
  padding-top: 2px;
}

.not-found {
  padding-top: clamp(48px, 8vw, 96px);
  display: grid;
  gap: 24px;
  justify-items: start;
}

.nf-figure {
  width: 220px;
  display: grid;
  gap: 0;
}

.nf-level {
  height: 0;
  border-top: 3px solid var(--ink);
}

.nf-level--high {
  border-top: 6px solid var(--blue);
}

.nf-gap {
  height: 72px;
  margin-left: 40px;
  border-left: 2px dashed var(--lead);
}

.not-found code {
  font-size: 0.9em;
  background: var(--code);
  padding: 1px 6px;
}

.site-footer {
  border-top: 3px solid var(--ink);
  margin-top: 24px;
}

.site-footer-inner {
  display: grid;
  gap: 14px;
  padding-top: 32px;
  padding-bottom: 48px;
}

.footer-name {
  font-size: 16px;
  color: var(--ink-2);
}

.footer-name strong {
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  font-size: 15px;
}

.footer-legal {
  font-size: 13px;
  color: var(--lead);
}

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "diagram";
  }
  .diagram {
    max-width: 560px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-top: 16px;
    padding-bottom: 10px;
  }
  .site-nav {
    gap: 20px;
    margin-left: 0;
  }
  .site-nav .mantine-NavLink-label {
    font-size: 15px;
  }
  .theme-toggle {
    position: absolute;
    top: 12px;
    right: var(--gutter);
  }
  .section {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding-block: 28px 36px;
  }
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding-top: 22px;
  }
  .display {
    font-size: 52px;
  }
  .proof {
    font-size: 19px;
  }
  .hero-copy {
    display: contents;
  }
  .display { order: 1; }
  .diagram { order: 2; }
  .hero-role { order: 3; }
  .proof { order: 4; }
  .hero .page-actions { order: 5; }
  .methods { order: 6; }
  .proof {
    padding-top: 16px;
  }
  .diagram {
    width: 100%;
    height: 282px;
    padding: 32px 60px 14px 40px;
  }
  .axis {
    bottom: 16px;
  }
  .level--top .level-label {
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .level-short {
    left: 40px;
    bottom: 7px; /* 4 px clear of the line */
    font-size: 11.5px;
    line-height: 1.1;
    /* On the narrowest phones the arrows pass behind the labels, not through them. */
    z-index: 1;
    padding-right: 3px;
    background: var(--paper);
  }
  .level--top .level-short {
    display: block;
    bottom: 10px; /* 4 px clear of the 6 px top line */
    font-size: 14px;
    font-weight: 800;
  }
  .emission--blue { left: calc(100% - 56px); }
  .emission--green { left: calc(100% - 38px); }
  .emission--red { left: calc(100% - 20px); }
  .page-actions {
    gap: 14px 22px;
  }
  .button {
    width: 100%;
    justify-content: center;
  }
}

/* The narrowest phones (320–360 px): tighten the nav and the diagram labels to fit. */
@media (max-width: 360px) {
  .site-nav {
    gap: 14px;
  }
  .site-nav .mantine-NavLink-label {
    font-size: 14px;
  }
  .level-short {
    left: 28px;
  }
  .level--top .level-short {
    font-size: 13px;
  }
}
