/*
 * Base stylesheet for public pages. All colours, fonts and sizes come from the per-site
 * theme (custom properties set in the theme stylesheet), so this file is the same for
 * every site. No inline styles are used anywhere (the CSP forbids them).
 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight, 700);
  color: var(--heading-color, inherit);
  line-height: 1.2;
  margin: 1.6em 0 0.5em;
}
h1 {
  font-size: 2.25rem;
}
h2 {
  font-size: 1.75rem;
}
h3 {
  font-size: 1.35rem;
}
h4 {
  font-size: 1.1rem;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}
/* Links in running text: underlined, or only under the pointer (a theme choice). */
.prose a {
  text-decoration: var(--link-decoration, underline);
}
.prose a:hover {
  text-decoration: underline;
}
a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  background: var(--background);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  z-index: 10;
}
.skip-link:focus {
  top: 0.5rem;
}

.wrap {
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Banner */
.banner {
  padding: 0.6rem 1rem;
  text-align: center;
  font-size: 0.95rem;
  background: var(--primary);
  color: var(--button-text);
}
.banner--notice {
  background: var(--text);
  color: var(--background);
}
.banner a {
  color: inherit;
  font-weight: 700;
}

/* Tables, code and tabs. */
.table-wrap {
  max-width: var(--content-max-width);
  margin: 1.5rem auto;
  padding: 0 1rem;
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.table caption {
  text-align: left;
  font-weight: 600;
  padding-bottom: 0.4rem;
}
.table th,
.table td {
  text-align: left;
  vertical-align: top;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--line, rgb(0 0 0 / 12%));
}
.table thead th {
  border-bottom: 2px solid var(--primary, currentColor);
}
.table-wrap--striped tbody tr:nth-child(even) {
  background: var(--surface, rgb(0 0 0 / 4%));
}
.table-wrap:focus-visible,
.code pre:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.code {
  max-width: var(--content-max-width);
  margin: 1.5rem auto;
  padding: 0 1rem;
}
.code__caption {
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  opacity: 0.85;
}
.code__language {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.code pre {
  margin: 0;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  background: var(--surface, rgb(0 0 0 / 5%));
  border: 1px solid var(--line, rgb(0 0 0 / 12%));
  border-radius: var(--radius);
  font:
    0.9rem/1.5 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  tab-size: 4;
}
.code code {
  font: inherit;
  white-space: pre;
}

.tabs {
  max-width: var(--content-max-width);
  margin: 1.5rem auto;
  padding: 0 1rem;
}
.tabs__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.tabs__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  border-bottom: 2px solid var(--line, rgb(0 0 0 / 15%));
}
.tabs__bar label {
  cursor: pointer;
  padding: 0.55rem 1rem;
  font-weight: 600;
  border-radius: var(--radius) var(--radius) 0 0;
  margin-bottom: -2px;
  border-bottom: 2px solid transparent;
}
.tabs__bar label:hover {
  background: var(--surface, rgb(0 0 0 / 5%));
}
.tabs__panel {
  display: none;
  padding-top: 1rem;
}
.tabs__input:nth-of-type(1):checked ~ .tabs__panel:nth-of-type(1) {
  display: block;
}
.tabs__input:nth-of-type(1):checked ~ .tabs__bar label:nth-child(1) {
  border-bottom-color: var(--primary, currentColor);
  background: var(--surface, rgb(0 0 0 / 5%));
}
.tabs__input:nth-of-type(1):focus-visible ~ .tabs__bar label:nth-child(1) {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}
.tabs__input:nth-of-type(2):checked ~ .tabs__panel:nth-of-type(2) {
  display: block;
}
.tabs__input:nth-of-type(2):checked ~ .tabs__bar label:nth-child(2) {
  border-bottom-color: var(--primary, currentColor);
  background: var(--surface, rgb(0 0 0 / 5%));
}
.tabs__input:nth-of-type(2):focus-visible ~ .tabs__bar label:nth-child(2) {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}
.tabs__input:nth-of-type(3):checked ~ .tabs__panel:nth-of-type(3) {
  display: block;
}
.tabs__input:nth-of-type(3):checked ~ .tabs__bar label:nth-child(3) {
  border-bottom-color: var(--primary, currentColor);
  background: var(--surface, rgb(0 0 0 / 5%));
}
.tabs__input:nth-of-type(3):focus-visible ~ .tabs__bar label:nth-child(3) {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}
.tabs__input:nth-of-type(4):checked ~ .tabs__panel:nth-of-type(4) {
  display: block;
}
.tabs__input:nth-of-type(4):checked ~ .tabs__bar label:nth-child(4) {
  border-bottom-color: var(--primary, currentColor);
  background: var(--surface, rgb(0 0 0 / 5%));
}
.tabs__input:nth-of-type(4):focus-visible ~ .tabs__bar label:nth-child(4) {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}
.tabs__input:nth-of-type(5):checked ~ .tabs__panel:nth-of-type(5) {
  display: block;
}
.tabs__input:nth-of-type(5):checked ~ .tabs__bar label:nth-child(5) {
  border-bottom-color: var(--primary, currentColor);
  background: var(--surface, rgb(0 0 0 / 5%));
}
.tabs__input:nth-of-type(5):focus-visible ~ .tabs__bar label:nth-child(5) {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}
.tabs__input:nth-of-type(6):checked ~ .tabs__panel:nth-of-type(6) {
  display: block;
}
.tabs__input:nth-of-type(6):checked ~ .tabs__bar label:nth-child(6) {
  border-bottom-color: var(--primary, currentColor);
  background: var(--surface, rgb(0 0 0 / 5%));
}
.tabs__input:nth-of-type(6):focus-visible ~ .tabs__bar label:nth-child(6) {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}
.tabs__input:nth-of-type(7):checked ~ .tabs__panel:nth-of-type(7) {
  display: block;
}
.tabs__input:nth-of-type(7):checked ~ .tabs__bar label:nth-child(7) {
  border-bottom-color: var(--primary, currentColor);
  background: var(--surface, rgb(0 0 0 / 5%));
}
.tabs__input:nth-of-type(7):focus-visible ~ .tabs__bar label:nth-child(7) {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}
.tabs__input:nth-of-type(8):checked ~ .tabs__panel:nth-of-type(8) {
  display: block;
}
.tabs__input:nth-of-type(8):checked ~ .tabs__bar label:nth-child(8) {
  border-bottom-color: var(--primary, currentColor);
  background: var(--surface, rgb(0 0 0 / 5%));
}
.tabs__input:nth-of-type(8):focus-visible ~ .tabs__bar label:nth-child(8) {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

/* Questions and answers (native <details>), quotations and the table of contents. */
.accordion {
  max-width: var(--content-max-width);
  margin: 1.5rem auto;
  padding: 0 1rem;
}
.accordion__item {
  border-bottom: 1px solid var(--line, rgb(0 0 0 / 12%));
}
.accordion__item:first-child {
  border-top: 1px solid var(--line, rgb(0 0 0 / 12%));
}
.accordion__item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.85rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.accordion__item summary::-webkit-details-marker {
  display: none;
}
.accordion__item summary::after {
  content: '+';
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1;
}
.accordion__item[open] summary::after {
  content: '\2212';
}
.accordion__item summary:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}
.accordion__item > .prose {
  padding-bottom: 0.75rem;
  margin: 0;
}

.quote {
  max-width: var(--content-max-width);
  margin: 1.75rem auto;
  padding: 0 1rem;
}
.quote blockquote {
  margin: 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 4px solid var(--primary, currentColor);
  font-size: 1.2rem;
  line-height: 1.5;
  font-style: italic;
}
.quote blockquote p {
  margin: 0;
}
.quote blockquote p::before {
  content: '\201C';
}
.quote blockquote p::after {
  content: '\201D';
}
.quote__by {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 0 0 1.25rem;
  font-size: 0.95rem;
}
.quote__by > span {
  display: grid;
}
.quote__role {
  opacity: 0.75;
}
.quote__picture {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
}
.quote--card {
  padding: 1.25rem;
  background: var(--surface, rgb(0 0 0 / 4%));
  border-radius: var(--radius);
}
.quote--card blockquote {
  border-left: 0;
  padding-left: 0;
}
.quote--card .quote__by {
  margin-left: 0;
}

.toc {
  max-width: var(--content-max-width);
  margin: 1.5rem auto;
  padding: 0.75rem 1rem;
  background: var(--surface, rgb(0 0 0 / 4%));
  border-radius: var(--radius);
}
.toc__title {
  margin: 0 0 0.4rem;
  font-weight: 700;
}
.toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}
.toc__item--3 {
  padding-left: 1.25rem;
  font-size: 0.95em;
}

/* Notice block: a strip across the page (news, hiring), usually in a module shown at the top of every page. */
.notice {
  padding: 0.6rem 1rem;
  text-align: center;
  font-size: 0.95rem;
  background: var(--primary);
  color: var(--button-text);
}
.notice--dark {
  background: var(--text);
  color: var(--background);
}
.notice--soft {
  background: var(--surface);
  color: var(--text);
}
.notice p {
  margin: 0;
}
.notice a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

/* Header and navigation */
.site-header {
  border-bottom: var(
    --header-border,
    1px solid color-mix(in srgb, var(--text) 15%, var(--background))
  );
  box-shadow: var(--header-shadow, none);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.site-header--centered .wrap {
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.site-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}
.site-title {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.site-title img {
  max-height: 3rem;
  width: auto;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  color: var(--text);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  display: inline-block;
}
.nav a:hover {
  border-bottom-color: var(--accent);
}
.nav a[aria-current='page'] {
  border-bottom-color: var(--primary);
  font-weight: 700;
}
.nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}
.icon--stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--fill {
  fill: currentColor;
}

/* Drop-down menus: open on hover or keyboard focus; on touch screens an arrow beside the name opens them. */
.nav > li {
  position: relative;
}
.nav__sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20;
  min-width: 12rem;
  margin: 0;
  padding: 0.4rem 0;
  list-style: none;
  background: var(--background);
  border: 1px solid color-mix(in srgb, var(--text) 20%, var(--background));
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.nav > li:hover > .nav__sub,
.nav > li:focus-within > .nav__sub {
  display: block;
}
/* The tap-to-open toggle exists only where there is no hover (see the touch rules below). */
.nav__toggle,
.nav__chevron {
  display: none;
}
.nav__sub a {
  display: flex;
  padding: 0.4rem 1rem;
  border-bottom: 0;
  color: var(--text);
  white-space: nowrap;
}
.nav__sub a:hover,
.nav__sub a:focus-visible {
  background: var(--surface);
}
@media (max-width: 720px), (hover: none) {
  /* The menu fills the width and flows over as few lines as it needs (no forced line per drop-down). */
  .site-header .wrap > nav {
    flex: 1 1 100%;
  }
  .site-header .nav {
    justify-content: space-between;
  }
  .nav > li.has-sub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
  /* An opened drop-down takes a whole line for its entries. */
  .nav > li.has-sub:has(> .nav__toggle:checked) {
    flex-basis: 100%;
  }
  /* The arrow beside the name opens the entries; the name itself still goes to its page. */
  .nav__toggle {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    margin: 0;
  }
  .nav__chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0;
    cursor: pointer;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
  }
  .nav__chevron::before {
    content: '';
    width: 0.6rem;
    height: 0.6rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 0.15s;
  }
  .nav__toggle:checked + .nav__chevron::before {
    transform: rotate(-135deg) translate(-2px, -2px);
  }
  .nav__toggle:focus-visible + .nav__chevron {
    outline: 3px solid currentColor;
    outline-offset: -3px;
    border-radius: var(--radius);
  }
  .nav__sub {
    display: none;
    position: static;
    flex-basis: 100%;
    min-width: 0;
    padding: 0 0 0 1rem;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  /* Touch makes :hover and :focus-within stick: only the arrow decides here. */
  .nav > li:hover > .nav__sub,
  .nav > li:focus-within > .nav__sub {
    display: none;
  }
  .nav > li > .nav__toggle:checked ~ .nav__sub {
    display: block;
  }
  .nav__sub a {
    padding: 0.4rem 0;
    white-space: normal;
  }
  .nav__sub a:hover,
  .nav__sub a:focus-visible {
    background: transparent;
  }
}

/* Main content */
main {
  flex: 1;
  width: 100%;
}
.block {
  margin: 0;
}
.page-title {
  max-width: var(--content-max-width);
  margin: 2rem auto 0;
  padding: 0 1rem;
}
.block > * {
  max-width: var(--content-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
.block--hero > *,
.block--section > *,
.block--notice > *,
.block--timeline > *,
.block--columns > *,
.block--cardGrid > *,
.block--imageText > *,
.block--spacer > *,
.block--divider > * {
  max-width: none;
}

.prose--quiet {
  font-size: 0.92rem;
  color: var(--c-muted);
}
.prose > :first-child {
  margin-top: 1rem;
}
.prose blockquote {
  margin: 1rem 0;
  padding: 0.25rem 1rem;
  border-left: 4px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Hero */
.hero {
  position: relative;
  background: var(--surface);
  text-align: center;
  overflow: hidden;
}
.hero__inner {
  position: relative;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 4rem 1rem;
}
.hero__title {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 6vw, 3.25rem);
}
.hero__subtitle {
  margin: 0 0 1.5rem;
  font-size: 1.25rem;
}
.hero--image {
  color: #ffffff;
  background: #111111;
}
.hero--image .hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero--left {
  text-align: left;
}
.hero--left .hero__inner {
  max-width: var(--content-max-width);
}
.hero--compact .hero__inner {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.hero--tall .hero__inner {
  padding-top: 8rem;
  padding-bottom: 8rem;
}
/* The site header sits INSIDE the first hero (above its title), on top of the picture. */
.hero .site-header {
  position: relative;
  border-bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
  text-align: left;
  /* The hero section has 1rem side padding (like every block); the fade should reach the edges. */
  margin-left: -1rem;
  margin-right: -1rem;
}
.hero .site-title,
.hero .nav a {
  color: #ffffff;
}
.hero .nav a:hover,
.hero .nav a[aria-current='page'] {
  border-bottom-color: #ffffff;
}
.hero--header-top {
  overflow: visible; /* a drop-down may reach below the picture */
}
.hero .site-header {
  z-index: 3;
}
.hero .nav__sub a {
  color: var(--text);
}
@media (max-width: 720px), (hover: none) {
  .hero .nav__sub a {
    color: #ffffff;
  }
}
.hero--header-top .hero__inner {
  padding-top: 3rem;
}
.hero--header-top.hero--compact .hero__inner {
  padding-top: 1.5rem;
}

/* Buttons */
.button {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: var(--button-radius, var(--radius));
  background: var(--button-fill, var(--button-bg));
  color: var(--button-ink, var(--button-text));
  text-decoration: none;
  text-transform: var(--button-case, none);
  font-weight: 700;
  border: 2px solid var(--button-bg);
  box-shadow: var(--button-shadow, none);
}
.button:hover {
  filter: brightness(1.1);
}
.button--secondary {
  background: transparent;
  color: var(--link);
  border-color: currentColor;
}
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.buttons--center {
  justify-content: center;
}
.hero .button {
  margin-top: 0.5rem;
}
.hero--image .button {
  background: #ffffff;
  color: #111111;
  border-color: #ffffff;
}

/* Images */
.image {
  margin: 1.5rem auto;
}
.image--small {
  max-width: 20rem;
}
.image--medium {
  max-width: 36rem;
}
.image figcaption {
  font-size: 0.9rem;
  margin-top: 0.4rem;
  opacity: 0.85;
}
.image img {
  border-radius: var(--radius);
}

.image-text {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  max-width: var(--content-max-width);
  margin: 1.5rem auto;
  padding: 0 1rem;
  grid-template-columns: 1fr;
}
.image-text img {
  border-radius: var(--radius);
}
@media (min-width: 720px) {
  .image-text {
    grid-template-columns: 1fr 1fr;
  }
  .image-text--right .image-text__media {
    order: 2;
  }
  .image-text--third {
    grid-template-columns: 1fr 2fr;
    align-items: start;
  }
  .image-text--third.image-text--right {
    grid-template-columns: 2fr 1fr;
  }
}

/* A block inside a column must not add the page-level side padding a second time. */
.columns__item .block > * {
  padding-left: 0;
  padding-right: 0;
  max-width: none;
}

/* Columns stack on phones */
.columns {
  display: grid;
  gap: 1.5rem;
  max-width: var(--content-max-width);
  margin: 1.5rem auto;
  padding: 0 1rem;
  grid-template-columns: 1fr;
}
.columns--center {
  align-items: center;
}
@media (min-width: 720px) {
  .columns--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .columns--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Cards */
.cards {
  list-style: none;
  display: grid;
  gap: 1.25rem;
  margin: 1.5rem auto;
  padding: 0 1rem;
  max-width: var(--content-max-width);
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}
.card {
  background: var(--surface);
  border: var(--card-border, 1px solid transparent);
  box-shadow: var(--card-shadow, none);
  border-radius: var(--radius);
  overflow: hidden;
  padding-bottom: 1rem;
}
.card__image {
  width: 100%;
}
.card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 1rem 1rem 0.25rem;
}
.card__text {
  padding: 0 1rem;
}
.card__text > :first-child {
  margin-top: 0;
}

/* Card variants: columns, centred text, plain or framed cards, round badges for icons */
.cards--cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.cards--cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.cards--cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
.cards--cols-5 {
  grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 860px) {
  .cards--cols-3,
  .cards--cols-4,
  .cards--cols-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .cards--cols-2,
  .cards--cols-3,
  .cards--cols-4,
  .cards--cols-5 {
    grid-template-columns: 1fr;
  }
}
.cards--center {
  text-align: center;
}
/* White, thin line, compact (a person, a short fact) */
.cards--white,
.cards--framed {
  gap: 0.875rem;
}
.cards--white .card {
  background: #ffffff;
  border: 1px solid var(--c-line);
  border-radius: 14px;
  padding: 1rem;
  overflow: visible;
}
.cards--white .card__title,
.cards--framed .card__title,
.section--dark .card__title {
  line-height: 1.15;
}
.cards--white .card__text,
.cards--framed .card__text,
.section--dark .card__text {
  line-height: 1.55;
}
.cards--white .card__title {
  margin: 0;
  font-family: inherit;
  font-size: 1rem;
  color: var(--primary);
}
.cards--white .card__text {
  padding: 0;
  font-size: 0.85rem;
  color: var(--c-muted);
}
/* White, framed in the soft colour, roomy (a step with its picture) */
.cards--framed .card {
  background: #ffffff;
  border: 2px solid var(--c-blush);
  border-radius: 18px;
  padding: 1.375rem 1rem;
  overflow: visible;
}
.cards--framed .card__title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: var(--primary);
}
.cards--framed .card__text {
  padding: 0;
  font-size: 0.85rem;
  color: var(--c-muted);
}
.cards--white .card__text > :last-child,
.cards--framed .card__text > :last-child {
  margin-bottom: 0;
}
.cards--badge .card__badge {
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: var(--surface);
  display: grid;
  place-items: center;
}
.cards--badge:not(.cards--framed):not(.cards--white) .card__badge {
  margin-top: 1.4rem;
}
/* (one more class than the picture-fit rules, which would otherwise force a box shape) */
.cards--badge .card__badge .card__image {
  width: auto;
  height: auto;
  max-width: 3.5rem;
  max-height: 3.375rem;
  aspect-ratio: auto;
  object-fit: contain;
}

/* Sections: full-width bands that hold other blocks */
.section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--c-line);
}
.section--tint {
  background: var(--surface);
}
.section--dark {
  background: var(--primary);
  color: #ffffff;
  border-bottom: 8px solid var(--accent);
}
.section .cards,
.section .stats {
  margin-bottom: 0;
}
.section .stats--rings {
  margin-bottom: 1.75rem;
}
.block--section:last-child > .section {
  border-bottom: 0; /* the footer has its own line */
}
.section__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark .section-heading__title {
  color: #ffffff;
}
.section--dark .section-heading__eyebrow {
  color: var(--c-salmon);
}
.section--dark .prose a,
.section--dark .section-heading__lead a {
  color: #ffffff;
  text-decoration: underline;
}
.section--dark .section-heading__lead {
  color: var(--c-blush);
}
.section--dark .cards {
  gap: 0.875rem;
  margin: 1.875rem auto;
}
.section--dark .card {
  background: #ffffff;
  color: var(--text);
  border-color: transparent;
  border-radius: 18px;
  padding: 1.375rem 1.25rem;
}
.section--dark .card__title,
.section--dark .card__title a {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--primary);
}
.section--dark .card__text {
  padding: 0;
  font-size: 0.92rem;
}
.section--dark .card__text > :last-child {
  margin-bottom: 0;
}
.section--dark .card a {
  color: var(--link);
}

/* Section heading: a small label, a heading, an introduction */
.section-heading__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-heading__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  line-height: 1.15;
}
.section-heading__lead {
  max-width: 62ch;
  font-size: 1.1rem;
}
.section-heading__lead > :first-child {
  margin-top: 0;
}

/* Key figures: tiles or rings */
.stats {
  list-style: none;
  display: grid;
  gap: 0.875rem;
  margin: 1.75rem auto 0;
  padding: 0 1rem;
  max-width: var(--content-max-width);
}
.stats--tiles {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.stats--rings {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
  margin: 2.125rem auto 1.75rem;
}
.stat {
  text-align: center;
}
.stat--primary {
  --ring-outer: var(--primary);
  --ring-inner: var(--c-mauve);
}
.stat--accent {
  --ring-outer: var(--accent);
  --ring-inner: var(--c-salmon);
}
.stat--mid {
  --ring-outer: var(--c-rose);
  --ring-inner: var(--c-blush);
}
.stats--tiles .stat {
  background: var(--surface);
  border-radius: 18px;
  padding: 1.5rem 1.125rem;
}
.stat__value {
  font-weight: 800;
  color: var(--primary);
}
.stats--tiles .stat__value {
  display: block;
  margin: 0;
  font-size: 2.1rem;
  letter-spacing: -0.01em;
  line-height: 1.55;
}
.stats--tiles .stat__text {
  font-size: 0.9rem;
}
/* Four rings, from the outside: the strong colour, white, the soft colour, white (the number sits in the middle). */
.stat__ring {
  width: 150px;
  height: 150px;
  margin: 0 auto 0.875rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(
    circle closest-side,
    #ffffff 0 50.667%,
    var(--ring-inner) 50.667% 70.667%,
    #ffffff 70.667% 82.667%,
    var(--ring-outer) 82.667% 100%
  );
}
.stat__ring .stat__value {
  font-size: 1.1rem;
  color: var(--text);
}
.stat__title {
  margin: 0;
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.15;
  color: var(--primary);
}
.stats__note {
  max-width: var(--content-max-width);
  margin: 0.875rem auto 0;
  padding: 0 1rem;
  font-size: 0.8rem;
  color: var(--c-muted);
}
.stat__text {
  margin: 0.25rem auto 0;
  max-width: 26ch;
  font-size: 0.95rem;
}
.stats--tiles .stat__text {
  max-width: none;
}

/* Hero in the main colour (no picture): accent line below, logo in a white badge, a small text in the corner */
.hero__title {
  color: inherit;
}
.hero--brand {
  background: var(--primary);
  color: #ffffff;
  border-bottom: 8px solid var(--accent);
}
.hero--brand .hero__title {
  font-size: clamp(2rem, 6.5vw, 3.6rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 16ch;
}
.hero--brand .hero__subtitle {
  max-width: 40ch;
  margin: 1rem 0 1.875rem;
  font-size: clamp(1.05rem, 2.6vw, 1.4rem);
  line-height: 1.55;
  color: var(--c-salmon);
}
.hero--brand .hero__inner {
  position: static;
  padding-top: 1.75rem;
  padding-bottom: 3rem;
}
.hero--brand .site-header {
  background: none;
  padding-top: 1.375rem;
}
.hero--brand .site-title img {
  max-height: clamp(84px, 16vw, 128px);
  padding: 10px 24px;
  border-radius: 20px;
  background: #ffffff;
}
.hero--brand .button {
  padding: 0.875rem 1.625rem;
}
.hero--brand .button--secondary {
  background: transparent;
  color: #ffffff;
  border-color: var(--c-salmon);
}
.hero .button + .button {
  margin-left: 0.75rem;
}
.hero__meta {
  display: grid;
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--c-salmon);
}
@media (min-width: 721px) {
  .hero--brand .hero__meta {
    position: absolute;
    top: 4.9rem;
    right: max(1rem, calc((100% - var(--content-max-width)) / 2 + 1rem));
    margin: 0;
    text-align: right;
  }
}
:target {
  scroll-margin-top: 1rem;
}

/* Spacing and rules */
.spacer--small {
  height: 1rem;
}
.spacer--medium {
  height: 2.5rem;
}
.spacer--large {
  height: 5rem;
}
.divider {
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--text) 20%, var(--background));
  max-width: var(--content-max-width);
  margin: 2rem auto;
}

/* Admin preview only: a block that is not finished yet */
.block--invalid {
  margin: 1rem auto;
  max-width: var(--content-max-width);
  padding: 0.75rem 1rem;
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
}
.block--invalid p {
  margin: 0;
}

/* Footer */
.site-footer {
  margin-top: var(--footer-gap, 3rem);
  padding: var(--footer-pad, 1.5rem 0);
  background: var(--footer-bg, var(--surface));
  border-top: var(--footer-border, none);
  color: var(--footer-ink, inherit);
  font-size: var(--footer-size, 0.95rem);
}
.site-footer p {
  margin: 0.25rem 0;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* ---- Collections: lists of entries and entry pages ---- */
.collection {
  max-width: var(--content-max-width);
  margin: 1.5rem auto;
  padding: 0 1rem;
}
.collection-group__heading {
  margin-top: 1.75rem;
}
.collection-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.collection-list--list > .collection-item {
  padding: 0.6rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--text) 15%, var(--background));
}
.collection-list--grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
}
.collection-list--grid > .collection-item {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem;
}
.collection-item__title {
  font-weight: 700;
}
.collection-item__summary {
  margin: 0.25rem 0 0;
}
.collection-list__empty {
  max-width: var(--content-max-width);
  margin: 1rem auto;
  padding: 0 1rem;
}

.entry {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}
.entry__title {
  margin-top: 2rem;
}
.entry__fields > div {
  margin-bottom: 1rem;
}
.entry__fields dt {
  font-weight: 700;
  font-size: 0.9rem;
}
.entry__fields dd {
  margin: 0.1rem 0 0;
}
.entry__items {
  list-style: none;
  padding: 0;
}
.entry-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

/* ---- Downloads, gallery, video ---- */
.downloads {
  list-style: none;
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.downloads li {
  padding: 0.3rem 0;
}
.downloads__note {
  opacity: 0.8;
  font-size: 0.9rem;
}
.gallery {
  list-style: none;
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  grid-template-columns: 1fr 1fr;
}
.gallery figure {
  margin: 0;
}
.gallery img {
  width: 100%;
  border-radius: var(--radius);
}
.gallery figcaption {
  font-size: 0.9rem;
  margin-top: 0.3rem;
}
@media (min-width: 720px) {
  .gallery--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}
.video {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}
.video video {
  width: 100%;
  height: auto;
  background: #000;
  border-radius: var(--radius);
}
.video figcaption {
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

/* Text that is only for screen readers and search engines (for example a page title the editor hid). */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Picture options for card grids and galleries (see imageFitSchema): classes on the list. */
.fit-crop img,
.fit-whole img {
  width: 100%;
  height: auto;
}
.fit-crop img {
  object-fit: cover;
}
.fit-whole img {
  object-fit: contain;
}
.fit-natural img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
}
.fit-crop.ratio-1-1 img,
.fit-whole.ratio-1-1 img {
  aspect-ratio: 1 / 1;
}
.fit-crop.ratio-4-3 img,
.fit-whole.ratio-4-3 img {
  aspect-ratio: 4 / 3;
}
.fit-crop.ratio-3-2 img,
.fit-whole.ratio-3-2 img {
  aspect-ratio: 3 / 2;
}
.fit-crop.ratio-16-9 img,
.fit-whole.ratio-16-9 img {
  aspect-ratio: 16 / 9;
}
.fit-crop.ratio-3-4 img,
.fit-whole.ratio-3-4 img {
  aspect-ratio: 3 / 4;
}
.fit-crop.focus-center img {
  object-position: center;
}
.fit-crop.focus-top img {
  object-position: center top;
}
.fit-crop.focus-bottom img {
  object-position: center bottom;
}
.fit-crop.focus-left img {
  object-position: left center;
}
.fit-crop.focus-right img {
  object-position: right center;
}

/* A person's role under the name in lists and grids. */
.collection-item__role {
  display: block;
  font-size: 0.92rem;
}

/* Collection list options: columns, plain / pictures-only looks, headings beside the group. */
.collection-list--cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.collection-list--cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.collection-list--cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 720px) {
  .collection-list--cols-3,
  .collection-list--cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
.collection--plain .collection-list--grid > .collection-item,
.collection--pictures .collection-list--grid > .collection-item {
  background: transparent;
  padding: 0;
}
.collection--plain .collection-list--grid {
  text-align: center;
}
.collection--plain .collection-item__image,
.collection--pictures .collection-item__image {
  display: block;
  width: 100%;
  margin-bottom: 0.6rem;
}
.collection--plain .collection-item__title {
  display: block;
  color: var(--text);
  text-decoration: none;
}
.collection--plain .collection-item__year,
.collection--plain .collection-item__role {
  display: block;
  opacity: 0.6;
  font-size: 0.9rem;
}
/* Pictures only: the names stay in the page for screen readers (and as the link's name). */
.collection--pictures .collection-item__title,
.collection--pictures .collection-item__year,
.collection--pictures .collection-item__role {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.collection--headings-beside .collection-group {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--text) 15%, var(--background));
}
.collection--headings-beside .collection-group__heading {
  margin: 0.2rem 0 0;
}
.collection--headings-beside .collection-list--list > .collection-item {
  border-bottom: 0;
}
@media (max-width: 720px) {
  .collection--headings-beside .collection-group {
    display: block;
  }
}

/* Hero with a faded picture and dark text (the title is large and heavy). */
.hero--image.hero--light {
  color: var(--text);
  background: var(--background);
}
.hero--image.hero--light .hero__bg {
  opacity: 0.4;
}
.hero--light .hero__title {
  color: var(--text);
  font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero--light .site-header {
  background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
}
.hero--light .site-title,
.hero--light .nav a {
  color: var(--text);
}
.hero--light .nav a:hover,
.hero--light .nav a[aria-current='page'] {
  border-bottom-color: var(--primary);
}
.hero--light .nav > li > a:not(:hover) {
  color: var(--link);
}
.hero--image.hero--light .button {
  background: var(--button-bg);
  color: var(--button-text);
  border-color: var(--button-bg);
}

/* Numbered lists in round badges (text block option). */
.prose--circles ol {
  list-style: none;
  counter-reset: badge;
  padding-left: 0;
}
.prose--circles ol > li {
  counter-increment: badge;
  position: relative;
  padding-left: 2.4rem;
  margin: 0.7rem 0;
}
.prose--circles ol > li::before {
  content: counter(badge);
  position: absolute;
  left: 0;
  top: 0.15em;
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: var(--text);
  color: var(--background);
  font-size: 0.8rem;
  font-weight: 700;
}

/* Timeline block: cards on alternating sides of a line. */
.timeline {
  position: relative;
  list-style: none;
  margin: 1.5rem auto;
  padding: 0;
  max-width: var(--content-max-width);
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 7px;
  transform: translateX(-50%);
  background: color-mix(in srgb, var(--primary) 45%, var(--background));
}
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 3.5rem 1fr;
  align-items: center;
  margin: 1.4rem 0;
}
.timeline__dot {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--primary);
  position: relative;
}
.timeline__year {
  grid-row: 1;
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 800;
}
.timeline__card {
  grid-row: 1;
  padding: 1rem 1.2rem;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
  border-right: 4px solid var(--primary);
}
.timeline__item--left .timeline__card {
  grid-column: 1;
  margin-right: 0.5rem;
}
.timeline__item--left .timeline__year {
  grid-column: 3;
  text-align: left;
}
.timeline__item--right .timeline__card {
  grid-column: 3;
  margin-left: 0.5rem;
  border-right: 0;
  border-left: 4px solid var(--primary);
}
.timeline__item--right .timeline__year {
  grid-column: 1;
  text-align: right;
}
.timeline__title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  line-height: 1.25;
}
.timeline__logo {
  float: right;
  width: 100px;
  height: auto;
  margin: 0 0 0.5rem 0.75rem;
}
.timeline__authors,
.timeline__link {
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
}
@media (max-width: 720px) {
  .timeline::before {
    left: 0.7rem;
  }
  .timeline__item {
    grid-template-columns: 1.4rem 1fr;
    column-gap: 1rem;
    align-items: start;
  }
  .timeline__dot {
    grid-column: 1;
    grid-row: 1 / span 2;
    justify-self: start;
    margin-top: 0.3rem;
  }
  .timeline__item .timeline__year,
  .timeline__item--left .timeline__year,
  .timeline__item--right .timeline__year {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
  }
  .timeline__item .timeline__card,
  .timeline__item--left .timeline__card,
  .timeline__item--right .timeline__card {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    border-right: 0;
    border-left: 4px solid var(--primary);
  }
}

/* Groups side by side (for example former members: PhD students | post-docs). */
.collection--headings-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0 3rem;
  align-items: start;
}
.collection--headings-columns .collection-group__heading {
  font-size: 1.15rem;
}
/* A plain list looks like an ordinary bulleted list. */
.collection--plain .collection-list--list {
  list-style: disc;
  padding-left: 1.4rem;
}
.collection--plain .collection-list--list > .collection-item {
  border-bottom: 0;
  padding: 0.12rem 0;
}

/* Logos in the footer line up with the text under them, whatever the width of the screen. */
.site-footer__blocks .logos {
  width: 100%;
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding-inline: 1rem;
  box-sizing: border-box;
}
/* Logos in the footer sit at the left, like the text under them. */
.site-footer__blocks .image {
  margin-left: 0;
}

/* Words after the site name in the header. */
.site-tagline {
  font-size: 0.85rem;
  color: inherit;
  margin-left: 0.8rem;
  align-self: center;
}
@media (max-width: 720px) {
  .site-tagline {
    display: none;
  }
}
.site-header .wrap > .site-title + .site-tagline {
  margin-right: auto;
}
.collection--plain .collection-list--list .collection-item__title {
  font-weight: 400;
}
.collection--pictures .collection-item__title--shown {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  white-space: normal;
}

/* Text and a picture under the main picture of an image-and-text block. */
.image-text__under {
  text-align: center;
  margin-top: 0.8rem;
}
.image-text__under p {
  margin: 0.2rem 0;
}
.image-text__under-picture {
  display: block;
  margin: 0.8rem auto 0;
  max-width: 100%;
  height: auto;
  border-radius: 0 !important;
}

/* A plain tile standing in for a structure's picture until one has been made. */
.structure-tile {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  width: 100%;
  background: #ffffff;
  color: var(--text);
  font-weight: 700;
  font-size: 1.4rem;
  opacity: 0.7;
}

/* Logos block: one picture per organisation, in a wrapping row. */
.logos {
  --logo-h: 3.25rem;
  --logo-w: 13rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2.5rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}
.logos--center {
  justify-content: center;
}
.logos--small {
  --logo-h: 2.25rem;
  --logo-w: 9rem;
}
.logos--large {
  --logo-h: 5rem;
  --logo-w: 18rem;
}
.logos li {
  margin: 0;
}
/* Tidy rows: equal cells, each logo centred in its own; fewer cells per row on narrower screens. */
.logos--rows-3 {
  --n: 3;
}
.logos--rows-4 {
  --n: 4;
}
.logos--rows-5 {
  --n: 5;
}
.logos--rows-6 {
  --n: 6;
}
.logos--rows-8 {
  --n: 8;
}
.logos[class*='logos--rows-']:not(.logos--rows-auto) {
  --cols: var(--n);
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 2rem 1.5rem;
  align-items: center;
  justify-items: center;
}
.logos[class*='logos--rows-']:not(.logos--rows-auto) .logos__image {
  /* In equal cells a tall logo may be taller than a wide one is allowed to be wide, so they look as big as each other. */
  max-width: 100%;
  max-height: calc(var(--logo-h) * 1.5);
}
.logos[class*='logos--rows-']:not(.logos--rows-auto) li {
  display: flex;
  justify-content: center;
  width: 100%;
}
@media (max-width: 52rem) {
  .logos[class*='logos--rows-']:not(.logos--rows-auto) {
    --cols: min(var(--n), 4);
  }
}
@media (max-width: 36rem) {
  .logos[class*='logos--rows-']:not(.logos--rows-auto) {
    --cols: min(var(--n), 2);
  }
}
.logos a {
  display: block;
}
.logos__image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, var(--logo-w));
  max-height: var(--logo-h);
}
.logos--gray .logos__image {
  filter: grayscale(1);
  opacity: 0.7;
  transition:
    filter 0.2s,
    opacity 0.2s;
}
.logos--gray li:hover .logos__image,
.logos--gray a:focus-visible .logos__image {
  filter: none;
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .logos--gray .logos__image {
    transition: none;
  }
}

/* Backgrounds: a picture or a video behind the hero, a section, or the whole page. */
.section--media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.section__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.section--media > .section__inner {
  position: relative;
}
.section--veil-light::after,
.section--veil-dark::after,
.page-bg--light::after,
.page-bg--dark::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
}
/* On the page background the picture is not positioned, so the veil needs the next level up to lie over it. */
.page-bg--light::after,
.page-bg--dark::after {
  z-index: 0;
}
.section--veil-light::after,
.page-bg--light::after {
  background: rgba(255, 255, 255, 0.6);
}
.section--veil-dark::after,
.page-bg--dark::after {
  background: rgba(0, 0, 0, 0.5);
}
.section--veil-dark,
.section--veil-dark h1,
.section--veil-dark h2,
.section--veil-dark h3,
.section--veil-dark .section-heading__title {
  color: #ffffff;
}
/* "Still": the picture or video stays in place, and the band or banner is a window onto it. */
.section--fixed,
.hero--fixed {
  clip-path: inset(0);
}
.section--fixed .section__bg,
.hero--fixed .hero__bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
}
/* A softened background, so a small picture or video does not look pixelated when it is enlarged. */
.bg-blur--soft {
  filter: blur(4px);
  transform: scale(1.08);
}
.bg-blur--strong {
  filter: blur(14px);
  transform: scale(1.25);
}
/* Behind the whole page. */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.page-bg__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bg-video__toggle {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 3;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  cursor: pointer;
  pointer-events: auto;
}
.bg-video__toggle--page {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
}
.bg-video__toggle:hover,
.bg-video__toggle:focus-visible {
  background: rgba(0, 0, 0, 0.8);
}
.bg-video__toggle::before {
  content: '';
  display: block;
  margin: auto;
  width: 0.8rem;
  height: 0.9rem;
  border-left: 0.28rem solid currentColor;
  border-right: 0.28rem solid currentColor;
  box-sizing: border-box;
}
.bg-video__toggle[data-state='paused']::before {
  width: 0;
  height: 0;
  border: 0;
  border-top: 0.5rem solid transparent;
  border-bottom: 0.5rem solid transparent;
  border-left: 0.85rem solid currentColor;
}
.video {
  position: relative;
}
