/*
 * 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: calc(var(--type-base) * 1.0625);
  line-height: var(--leading-body);
  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: var(--leading-heading);
  margin: 1.6em 0 0.5em;
}
h1,
h2,
h3,
h4 {
  letter-spacing: var(--tracking-heading);
}
h1 {
  font-family: var(--h1-font);
  font-size: var(--h1-size);
  color: var(--h1-color);
}
h2 {
  font-family: var(--h2-font);
  font-size: var(--h2-size);
  color: var(--h2-color);
}
h3 {
  font-family: var(--h3-font);
  font-size: var(--h3-size);
  color: var(--h3-color);
}
h4 {
  font-family: var(--h4-font);
  font-size: var(--h4-size);
  color: var(--h4-color);
}

a {
  color: var(--link);
  text-underline-offset: var(--link-offset);
  text-decoration-thickness: var(--link-thickness);
  font-weight: var(--link-weight);
}
/* 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: var(--focus-width, 3px) solid var(--focus-color, var(--accent));
  outline-offset: var(--focus-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: calc(var(--space) * 0.5) calc(var(--space) * 0.75);
  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 var(--gutter);
}

/* Banner */
.banner {
  padding: calc(var(--space) * 0.6) calc(var(--space) * 1);
  text-align: center;
  font-size: calc(var(--type-base) * 0.95);
  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: calc(var(--space) * 1.5) auto;
  padding: 0 var(--gutter);
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: calc(var(--type-base) * 0.95);
}
.table caption {
  text-align: left;
  font-weight: 600;
  padding-bottom: calc(var(--space) * 0.4);
}
.table th,
.table td {
  text-align: left;
  vertical-align: top;
  padding: calc(var(--space) * 0.5) calc(var(--space) * 0.75);
  border-bottom: var(--line) solid var(--line, rgb(0 0 0 / 12%));
}
.table thead th {
  border-bottom: var(--line-strong) 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: calc(var(--space) * 1.5) auto;
  padding: 0 var(--gutter);
}
.code__caption {
  font-size: calc(var(--type-base) * 0.85);
  margin-bottom: calc(var(--space) * 0.3);
  opacity: 0.85;
}
.code__language {
  font-family: var(--font-mono);
}
.code pre {
  margin: 0;
  padding: calc(var(--space) * 0.9) calc(var(--space) * 1);
  overflow-x: auto;
  background: var(--surface, rgb(0 0 0 / 5%));
  border: var(--line) solid var(--line, rgb(0 0 0 / 12%));
  border-radius: var(--radius);
  font: calc(var(--type-base) * 0.9) / 1.5 var(--font-mono);
  tab-size: 4;
}
.code code {
  font: inherit;
  white-space: pre;
}

.tabs {
  max-width: var(--content-max-width);
  margin: calc(var(--space) * 1.5) auto;
  padding: 0 var(--gutter);
}
.tabs__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.tabs__bar {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--space) * 0.25);
  border-bottom: var(--line-strong) solid var(--line, rgb(0 0 0 / 15%));
}
.tabs__bar label {
  cursor: pointer;
  padding: calc(var(--space) * 0.55) calc(var(--space) * 1);
  font-weight: 600;
  border-radius: var(--radius) var(--radius) 0 0;
  margin-bottom: -2px;
  border-bottom: var(--line-strong) solid transparent;
}
.tabs__bar label:hover {
  background: var(--surface, rgb(0 0 0 / 5%));
}
.tabs__panel {
  display: none;
  padding-top: calc(var(--space) * 1);
}
.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: calc(var(--space) * 1.5) auto;
  padding: 0 var(--gutter);
}
.accordion__item {
  border-bottom: var(--line) solid var(--line, rgb(0 0 0 / 12%));
}
.accordion__item:first-child {
  border-top: var(--line) solid var(--line, rgb(0 0 0 / 12%));
}
.accordion__item summary {
  cursor: pointer;
  font-weight: 600;
  padding: calc(var(--space) * 0.85) 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: calc(var(--space) * 1);
}
.accordion__item summary::-webkit-details-marker {
  display: none;
}
.accordion__item summary::after {
  content: '+';
  font-weight: 400;
  font-size: calc(var(--type-base) * 1.25);
  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: calc(var(--space) * 0.75);
  margin: 0;
}

.quote {
  max-width: var(--content-max-width);
  margin: calc(var(--space) * 1.75) auto;
  padding: 0 var(--gutter);
}
.quote blockquote {
  margin: 0;
  padding: calc(var(--space) * 0.25) 0 calc(var(--space) * 0.25) calc(var(--space) * 1.25);
  border-left: var(--line-bar) solid var(--primary, currentColor);
  font-size: calc(var(--type-base) * 1.2);
  line-height: var(--leading-normal);
  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: calc(var(--space) * 0.75);
  margin: calc(var(--space) * 0.75) 0 0 calc(var(--space) * 1.25);
  font-size: calc(var(--type-base) * 0.95);
}
.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: calc(var(--space) * 1.25);
  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;
}
/* on a dark band the card is a veil of the band's own ink, so the words (which take the band's ink) read on it */
.section--dark .quote--card {
  background: color-mix(in srgb, var(--on-primary, #ffffff) 12%, transparent);
  color: var(--on-primary, #ffffff);
}

.toc {
  max-width: var(--content-max-width);
  margin: calc(var(--space) * 1.5) auto;
  padding: calc(var(--space) * 0.75) calc(var(--space) * 1);
  background: var(--surface, rgb(0 0 0 / 4%));
  border-radius: var(--radius);
}
.toc__title {
  margin: 0 0 calc(var(--space) * 0.4);
  font-weight: 700;
}
.toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: calc(var(--space) * 0.25);
}
.toc__item--3 {
  padding-left: calc(var(--space) * 1.25);
  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: calc(var(--space) * 0.6) calc(var(--space) * 1);
  text-align: center;
  font-size: calc(var(--type-base) * 0.95);
  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 {
  position: var(--header-position);
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  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: calc(var(--space) * 0.5) calc(var(--space) * 1.5);
  padding-top: var(--header-pad);
  padding-bottom: var(--header-pad);
}
.site-header--centered .wrap {
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.nav-open {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}
.nav-burger {
  display: none;
  cursor: pointer;
  margin-inline-start: auto;
  padding: calc(var(--space) * 0.35) calc(var(--space) * 1);
  border: var(--line-strong) solid currentColor;
  border-radius: var(--radius-pill);
  color: var(--text);
  font-weight: 600;
  font-size: calc(var(--type-base) * 0.9);
  user-select: none;
}
.hero .nav-burger {
  color: #ffffff;
}
.nav-open:focus-visible + .nav-burger {
  outline: var(--focus-width, 3px) solid var(--focus-color, var(--accent));
  outline-offset: var(--focus-offset, 2px);
}
.nav-open:checked + .nav-burger {
  background: var(--text);
  color: var(--background);
}
.hero .nav-open:checked + .nav-burger {
  background: #ffffff;
  color: #111111;
}
@media (max-width: 720px) {
  .site-header .nav-burger {
    display: inline-block;
  }
  .site-header .nav-open ~ nav {
    display: none;
    flex-basis: 100%;
  }
  .site-header .nav-open:checked ~ nav {
    display: block;
  }
}
@media print {
  .nav-burger,
  .nav-open {
    display: none;
  }
}
.site-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: calc(var(--type-base) * 1.25);
  color: var(--text);
  text-decoration: none;
}
.site-title {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--space) * 0.6);
}
.site-title img {
  max-height: 3rem;
  width: auto;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--space) * 0.25) calc(var(--space) * 1.25);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  color: var(--text);
  text-decoration: none;
  padding: calc(var(--space) * 0.35) 0;
  border-bottom: var(--line-strong) 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: calc(var(--space) * 0.4);
}
.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: calc(var(--space) * 0.4) 0;
  list-style: none;
  background: var(--background);
  border: var(--line) solid color-mix(in srgb, var(--text) 20%, var(--background));
  border-radius: var(--radius);
  box-shadow: var(--shadow-3);
}
.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: calc(var(--space) * 0.4) calc(var(--space) * 1);
  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: var(--line-strong) solid currentColor;
    border-bottom: var(--line-strong) 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 calc(var(--space) * 1);
    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: calc(var(--space) * 0.4) 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: calc(var(--space) * 2) auto 0;
  padding: 0 var(--gutter);
}
.block > * {
  max-width: var(--content-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.block--hero > *,
.block--section > *,
.block--notice > *,
.block--timeline > *,
.block--columns > *,
.block--cardGrid > *,
.block--imageText > *,
.block--spacer > *,
.block--divider > * {
  max-width: none;
}

/* Text blocks keep to a reading column when the theme asks for one. */
.block--text .prose > * {
  max-width: var(--text-measure, none);
}
.prose--quiet {
  font-size: calc(var(--type-base) * 0.92);
  color: var(--c-muted);
}
.prose > :first-child {
  margin-top: calc(var(--space) * 1);
}
.prose blockquote {
  margin: calc(var(--space) * 1) 0;
  padding: calc(var(--space) * 0.25) calc(var(--space) * 1);
  border-left: var(--line-bar) solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Hero */
.hero {
  position: relative;
  background: var(--surface);
  text-align: var(--hero-align);
  overflow: hidden;
}
.hero__inner {
  position: relative;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: calc(var(--space) * 4 * var(--hero-scale)) calc(var(--space) * 1);
}
.hero__title {
  margin: 0 0 calc(var(--space) * 0.5);
  font-size: clamp(calc(var(--type-base) * 2), 6vw, calc(var(--type-base) * 3.25));
}
.hero__subtitle {
  margin: 0 0 calc(var(--space) * 1.5);
  font-size: calc(var(--type-base) * 1.25);
}
.hero--image {
  color: #ffffff;
  background: #111111;
}
/* How much of the picture shows through, and the colour behind it, for one banner */
.hero.hero--image.hero--veil-none .hero__bg {
  opacity: 1;
}
.hero.hero--image.hero--veil-light .hero__bg {
  opacity: 0.8;
}
.hero.hero--image.hero--veil-medium .hero__bg {
  opacity: 0.55;
}
.hero.hero--image.hero--veil-strong .hero__bg {
  opacity: 0.3;
}
.hero--image.hero--veil-main {
  background: var(--primary);
}
/* A floor of shade over the picture in both sets of colours, and more of it in the dark ones, so the words keep reading
   whatever picture is chosen (a banner with dark words on a faded picture is left as it is). */
.hero--image .hero__bg {
  filter: brightness(var(--in-dark, 0.75) var(--in-light, 0.55));
}
.hero--image.hero--light .hero__bg {
  filter: none;
}
.hero--image .hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: var(--hero-image-opacity);
}

.hero--left {
  text-align: left;
}
.hero--left .hero__inner {
  max-width: var(--content-max-width);
}
.hero--compact .hero__inner {
  padding-top: calc(var(--space) * 2 * var(--hero-scale));
  padding-bottom: calc(var(--space) * 2 * var(--hero-scale));
}
.hero--tall .hero__inner {
  padding-top: calc(var(--space) * 8 * var(--hero-scale));
  padding-bottom: calc(var(--space) * 8 * var(--hero-scale));
}
/* 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: calc(var(--space) * -1);
  margin-right: calc(var(--space) * -1);
}
.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: calc(var(--space) * 3);
}
.hero--header-top.hero--compact .hero__inner {
  padding-top: calc(var(--space) * 1.5);
}

/* Buttons */
.button {
  display: inline-block;
  padding: var(--button-pad);
  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: var(--button-weight);
  border: var(--line-strong) solid var(--button-bg);
  box-shadow: var(--button-shadow, none);
}
.button:hover {
  filter: var(--button-hover);
}
.button--secondary {
  background: transparent;
  color: var(--button-secondary-ink);
  border-color: currentColor;
}
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--space) * 0.75);
  padding-top: calc(var(--space) * 1);
  padding-bottom: calc(var(--space) * 1);
}
.buttons--center {
  justify-content: center;
}
.hero .button {
  margin-top: calc(var(--space) * 0.5);
}
.hero--image .button {
  background: #ffffff;
  color: #111111;
  border-color: #ffffff;
}

/* Images */
.image {
  margin: calc(var(--space) * 1.5) auto;
}
.image--small {
  max-width: 20rem;
}
.image--medium {
  max-width: 36rem;
}
.image figcaption {
  font-size: calc(var(--type-base) * 0.9);
  margin-top: calc(var(--space) * 0.4);
  opacity: 0.85;
}
.image img {
  border-radius: var(--picture-radius);
}
.image--portrait {
  overflow: hidden;
  border-radius: var(--picture-radius);
}
.image--portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 15%;
}
.image--grade-warm img {
  filter: saturate(0.85) sepia(0.12) contrast(0.94) brightness(1.04);
}

.image-text {
  display: grid;
  gap: calc(var(--space) * 1.5);
  align-items: center;
  max-width: var(--content-max-width);
  margin: calc(var(--space) * 1.5) auto;
  padding: 0 var(--gutter);
  grid-template-columns: 1fr;
}
.image-text img {
  border-radius: var(--picture-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: calc(var(--space) * 1.5);
  max-width: var(--content-max-width);
  margin: calc(var(--space) * 1.5) auto;
  padding: 0 var(--gutter);
  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);
  }
  .columns--4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .columns--5 {
    grid-template-columns: repeat(5, 1fr);
  }
  .columns--6 {
    grid-template-columns: repeat(6, 1fr);
  }
}

.columns--stretch {
  align-items: stretch;
}
.columns--stretch > .columns__item > .block,
.columns--stretch
  > .columns__item
  > .block
  > :is(.container__box, .container__panel, .section, .card) {
  height: 100%;
}

/* Cells: a grid where a block can cover several columns or rows (a style says how many); tiles in a row are as tall as the tallest
   when stretched. On phones every cell is one column wide. */
.cells {
  display: grid;
  gap: calc(var(--space) * 1.25);
  max-width: var(--content-max-width);
  margin: calc(var(--space) * 1.5) auto;
  padding: 0 var(--gutter);
  grid-template-columns: 1fr;
  grid-auto-flow: dense;
  grid-auto-columns: 0;
  align-items: start;
}
.cells--center {
  align-items: center;
}
.cells--stretch {
  align-items: stretch;
}
.cells > .block > * {
  padding-left: 0;
  padding-right: 0;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
.cells--stretch > .block,
.cells--stretch > .block > :is(.container__box, .container__panel, .section, .card) {
  height: 100%;
}
@media (min-width: 720px) {
  .cells--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .cells--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .cells--4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .cells--5 {
    grid-template-columns: repeat(5, 1fr);
  }
  .cells--6 {
    grid-template-columns: repeat(6, 1fr);
  }
}
@media (max-width: 719px) {
  .cells > .block {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

/* Cards */
.cards {
  list-style: none;
  display: grid;
  gap: calc(var(--space) * 1.25);
  margin: calc(var(--space) * 1.5) auto;
  padding: 0 var(--gutter);
  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: var(--card-pad);
  transition: transform 0.15s ease;
}
.card:hover {
  transform: var(--card-hover);
}
.card__image {
  width: 100%;
}
.card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: calc(var(--type-base) * 1.15);
  margin: var(--card-pad) var(--card-pad) calc(var(--space) * 0.25);
}
.card__text {
  padding: 0 var(--card-pad);
}
.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: calc(var(--space) * 0.875);
}
.cards--white .card {
  background: #ffffff;
  border: var(--line) solid var(--c-line);
  border-radius: var(--radius-sm);
  padding: calc(var(--space) * 1);
  overflow: visible;
}
.cards--white .card__title,
.cards--framed .card__title,
.section--dark .card__title {
  line-height: var(--leading-tight);
}
.cards--white .card__text,
.cards--framed .card__text,
.section--dark .card__text {
  line-height: var(--leading-relaxed);
}
.cards--white .card__title {
  margin: 0;
  font-family: inherit;
  font-size: calc(var(--type-base) * 1);
  color: var(--primary);
}
.cards--white .card__text {
  padding: 0;
  font-size: calc(var(--type-base) * 0.85);
  color: var(--c-muted);
}
/* White, framed in the soft colour, roomy (a step with its picture) */
.cards--framed .card {
  background: #ffffff;
  border: var(--line-strong) solid var(--c-blush);
  border-radius: var(--radius-lg);
  padding: calc(var(--space) * 1.375) calc(var(--space) * 1);
  overflow: visible;
}
.cards--framed .card__title {
  margin: 0 0 calc(var(--space) * 0.25);
  font-size: calc(var(--type-base) * 1);
  color: var(--primary);
}
.cards--framed .card__text {
  padding: 0;
  font-size: calc(var(--type-base) * 0.85);
  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 calc(var(--space) * 0.75);
  border-radius: 50%;
  background: var(--surface);
  display: grid;
  place-items: center;
}
.cards--badge:not(.cards--framed):not(.cards--white) .card__badge {
  margin-top: calc(var(--space) * 1.4);
}
/* (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;
}

/* Picture shapes of cards: rounded corners, and a round photo (people) */
.cards.cards--shape-rounded .card .card__image {
  width: calc(100% - 1.5rem);
  margin: calc(var(--space) * 0.75) calc(var(--space) * 0.75) 0;
  border-radius: var(--radius-md);
}
.cards.cards--shape-round .card .card__image {
  display: block;
  width: 7.5rem;
  height: 7.5rem;
  aspect-ratio: 1 / 1;
  margin: calc(var(--space) * 1.25) auto 0;
  border-radius: 50%;
  object-fit: cover;
}

/* Sections: full-width bands that hold other blocks */
.section {
  padding: var(--section-space) 0;
  border-bottom: var(--line) solid var(--c-line);
}
.section--tight {
  padding: calc(var(--section-space) * var(--section-tight)) 0;
}
.section--tint {
  background: var(--surface);
}
/* On a dark band, and over a picture, the soft inks of a style (quiet, soft, accent) must read on it (see render/styles.ts) */
.section--dark,
.hero--image,
.hero--brand {
  --here-quiet: color-mix(in srgb, var(--on-primary, #ffffff) 82%, transparent);
  --here-soft: color-mix(in srgb, var(--on-primary, #ffffff) 92%, transparent);
  --here-accent: var(--on-primary-soft, var(--c-salmon));
}
.section--dark {
  background: var(--primary);
  color: var(--on-primary, #ffffff);
  border-bottom: var(--line-heavy) solid var(--accent);
}
.section .cards,
.section .stats {
  margin-bottom: 0;
}
.section .stats--rings {
  margin-bottom: calc(var(--space) * 1.75);
}
.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: var(--on-primary, #ffffff);
}
.section--dark .section-heading__eyebrow {
  color: var(--on-primary-soft, var(--c-salmon));
}
.section--dark .prose a,
.section--dark .section-heading__lead a {
  color: var(--on-primary, #ffffff);
  text-decoration: underline;
}
.section--dark .section-heading__lead {
  color: var(--c-blush);
}
.section--dark .cards {
  gap: calc(var(--space) * 0.875);
  margin: calc(var(--space) * 1.875) auto;
}
.section--dark .card {
  background: #ffffff;
  color: var(--text);
  border-color: transparent;
  border-radius: var(--radius-lg);
  padding: calc(var(--space) * 1.375) calc(var(--space) * 1.25);
}
.section--dark .card__title,
.section--dark .card__title a {
  margin: 0 0 calc(var(--space) * 0.4);
  font-size: calc(var(--type-base) * 1.05);
  color: var(--primary);
}
.section--dark .card__text {
  padding: 0;
  font-size: calc(var(--type-base) * 0.92);
}
.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 var(--label-gap);
  font-size: var(--label-size);
  font-weight: var(--label-weight);
  line-height: var(--label-leading);
  letter-spacing: var(--tracking-label);
  text-transform: var(--label-case);
  color: var(--label-color);
}
.section-heading__title {
  margin: 0 0 var(--title-gap);
  font-size: var(--title-size);
  line-height: var(--leading-tight);
}
.text-heading--3 {
  font-size: var(--title3-size);
}
.text-heading--4 {
  font-size: var(--title4-size);
}
.section-heading__lead {
  max-width: var(--measure-reading);
  font-size: var(--lead-size);
  color: var(--lead-color);
}
/* the size, and only the size, outranks a design's own rule for text (the colour must stay beneath the dark band's) */
.section-heading .section-heading__lead.prose {
  font-size: var(--lead-size);
}
.section-heading__lead > :first-child {
  margin-top: 0;
}

/* Key figures: tiles or rings */
.stats {
  list-style: none;
  display: grid;
  gap: calc(var(--space) * 0.875);
  margin: calc(var(--space) * 1.75) auto 0;
  padding: 0 var(--gutter);
  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: calc(var(--space) * 1.75);
  margin: calc(var(--space) * 2.125) auto calc(var(--space) * 1.75);
}
.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: var(--radius-lg);
  padding: calc(var(--space) * 1.5) calc(var(--space) * 1.125);
}
.stat__value {
  font-weight: 800;
  color: var(--primary);
}
.stats--tiles .stat__value {
  display: block;
  margin: 0;
  font-size: calc(var(--type-base) * 2.1);
  letter-spacing: var(--tracking-snug);
  line-height: var(--leading-relaxed);
}
.stats--tiles .stat__text {
  font-size: calc(var(--type-base) * 0.9);
}
/* 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 calc(var(--space) * 0.875);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(
    circle closest-side,
    var(--ring-gap, #ffffff) 0 50.667%,
    var(--ring-inner) 50.667% 70.667%,
    var(--ring-gap, #ffffff) 70.667% 82.667%,
    var(--ring-outer) 82.667% 100%
  );
}
.stat__ring .stat__value {
  font-size: calc(var(--type-base) * 1.1);
  color: var(--text);
}
.stat__title {
  margin: 0;
  font-weight: 700;
  font-size: calc(var(--type-base) * 1.3);
  line-height: var(--leading-tight);
  color: var(--primary);
}
.stats__note {
  max-width: var(--content-max-width);
  margin: calc(var(--space) * 0.875) auto 0;
  padding: 0 var(--gutter);
  font-size: calc(var(--type-base) * 0.8);
  color: var(--c-muted);
}
.stat__text {
  margin: calc(var(--space) * 0.25) auto 0;
  max-width: 26ch;
  font-size: calc(var(--type-base) * 0.95);
}
.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: var(--on-primary, #ffffff);
  border-bottom: var(--line-heavy) solid var(--accent);
}
.hero--brand .hero__title {
  font-size: clamp(calc(var(--type-base) * 2), 6.5vw, calc(var(--type-base) * 3.6));
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  max-width: 16ch;
}
.hero--brand .hero__subtitle {
  max-width: 40ch;
  margin: calc(var(--space) * 1) 0 calc(var(--space) * 1.875);
  font-size: clamp(calc(var(--type-base) * 1.05), 2.6vw, calc(var(--type-base) * 1.4));
  line-height: var(--leading-relaxed);
  color: var(--on-primary-soft, var(--c-salmon));
}
.hero--brand .hero__inner {
  position: static;
  padding-top: calc(var(--space) * 1.75);
  padding-bottom: calc(var(--space) * 3);
}
.hero--brand .site-header {
  background: none;
  padding-top: calc(var(--space) * 1.375);
}
.hero--brand .site-title img {
  max-height: clamp(84px, 16vw, 128px);
  padding: calc(var(--space) * 0.625) calc(var(--space) * 1.5);
  border-radius: var(--radius-xl);
  background: #ffffff;
}
.hero--brand .button {
  padding: calc(var(--space) * 0.875) calc(var(--space) * 1.625);
}
.hero--brand .button--secondary {
  background: transparent;
  color: var(--on-primary, #ffffff);
  border-color: var(--on-primary-soft, var(--c-salmon));
}
/* A secondary button on a dark band reads in the band's own ink, not the link colour (which is dark on the band). */
.section--dark .button--secondary {
  color: var(--on-primary, #ffffff);
}
.hero .button + .button {
  margin-left: calc(var(--space) * 0.75);
}
.hero__meta {
  display: grid;
  margin: 0 0 calc(var(--space) * 1);
  font-size: calc(var(--type-base) * 0.85);
  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: var(--line) solid color-mix(in srgb, var(--text) 20%, var(--background));
  max-width: var(--content-max-width);
  margin: calc(var(--space) * 2) auto;
}

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

/* Footer */
.site-footer {
  margin-top: var(--footer-gap, calc(var(--space) * 3));
  padding: var(--footer-pad, calc(var(--space) * 1.5) 0);
  background: var(--footer-bg, var(--surface));
  border-top: var(--footer-border, none);
  color: var(--footer-ink, inherit);
  text-align: var(--footer-align);
  font-size: var(--footer-size, calc(var(--type-base) * 0.95));
}
.site-footer p {
  margin: calc(var(--space) * 0.25) 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: calc(var(--space) * 1.5) auto;
  padding: 0 var(--gutter);
}
.collection-group__heading {
  margin-top: calc(var(--space) * 1.75);
}
.collection-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.collection-list--list > .collection-item {
  padding: calc(var(--space) * 0.6) 0;
  border-bottom: var(--row-border);
}
.collection-list--list > .collection-item:nth-child(even) {
  background: var(--row-stripe);
}
.collection-list--grid {
  display: grid;
  gap: calc(var(--space) * 1.25);
  grid-template-columns: repeat(auto-fill, minmax(min(14rem, 100%), 1fr));
}
/* a very long word in a title or a name breaks at the edge instead of running the page wide */
.collection-item,
.entry__title,
.entry__fields dd,
.entry-nav a {
  overflow-wrap: anywhere;
}
.collection-list--grid > .collection-item {
  min-width: 0;
  background: var(--surface);
  border-radius: var(--radius);
  padding: calc(var(--space) * 1);
}
.collection-item__title {
  font-weight: 700;
}
.collection-item__summary {
  margin: calc(var(--space) * 0.25) 0 0;
}
.collection-list__empty {
  max-width: var(--content-max-width);
  margin: calc(var(--space) * 1) auto;
  padding: 0 var(--gutter);
}

.entry {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.entry__title {
  margin-top: calc(var(--space) * 2);
}
.entry__fields > div {
  margin-bottom: calc(var(--space) * 1);
}
.entry__fields dt {
  font-weight: 700;
  font-size: calc(var(--type-base) * 0.9);
}
.entry__fields dd {
  margin: calc(var(--space) * 0.1) 0 0;
}
.entry__items {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(14rem, 100%), 1fr));
  gap: calc(var(--space) * 1.25);
}
.entry__items img {
  width: 100%;
  height: auto;
}
.prose table {
  display: block; /* wider than the screen: it scrolls in its own box, the page does not */
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 0 0 1em;
}
.prose th,
.prose td {
  padding: calc(var(--space) * 0.35) calc(var(--space) * 0.75);
  border-bottom: var(--line) solid var(--color-line);
  text-align: start;
}
.prose th {
  font-weight: 700;
}
.entry code,
.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}
.entry-nav > * {
  min-width: 0;
  max-width: 100%;
}
.entry-nav {
  display: flex;
  justify-content: space-between;
  gap: calc(var(--space) * 1);
  flex-wrap: wrap;
  margin: calc(var(--space) * 2) 0;
}

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

/* 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: calc(var(--type-base) * 0.92);
}

/* 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: calc(var(--space) * 0.6);
}
.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: calc(var(--type-base) * 0.9);
}
/* 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 calc(var(--space) * 1.5);
  padding: calc(var(--space) * 1) 0;
  border-bottom: var(--line) solid color-mix(in srgb, var(--text) 15%, var(--background));
}
.collection--headings-beside .collection-group__heading {
  margin: calc(var(--space) * 0.2) 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(calc(var(--type-base) * 2.4), 7vw, calc(var(--type-base) * 4));
  font-weight: 800;
  letter-spacing: var(--tracking-tight);
}
.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: calc(var(--space) * 2.4);
  margin: calc(var(--space) * 0.7) 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: calc(var(--type-base) * 0.8);
  font-weight: 700;
}

/* Timeline block: cards on alternating sides of a line. */
.timeline {
  position: relative;
  list-style: none;
  margin: calc(var(--space) * 1.5) 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: calc(var(--space) * 1.4) 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: calc(var(--type-base) * 2.3);
  font-weight: 800;
}
.timeline__card {
  grid-row: 1;
  padding: calc(var(--space) * 1) calc(var(--space) * 1.2);
  background: var(--color-panel, #ffffff);
  color: var(--color-ink, inherit);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  border-right: var(--line-bar) solid var(--primary);
}
.timeline__item--left .timeline__card {
  grid-column: 1;
  margin-right: calc(var(--space) * 0.5);
}
.timeline__item--left .timeline__year {
  grid-column: 3;
  text-align: left;
}
.timeline__item--right .timeline__card {
  grid-column: 3;
  margin-left: calc(var(--space) * 0.5);
  border-right: 0;
  border-left: var(--line-bar) solid var(--primary);
}
.timeline__item--right .timeline__year {
  grid-column: 1;
  text-align: right;
}
.timeline__title {
  margin: 0 0 calc(var(--space) * 0.5);
  font-size: calc(var(--type-base) * 1.5);
  line-height: var(--leading-snug);
}
.timeline__logo {
  float: right;
  width: 100px;
  height: auto;
  margin: 0 0 calc(var(--space) * 0.5) calc(var(--space) * 0.75);
}
.timeline__authors,
.timeline__link {
  margin: calc(var(--space) * 0.4) 0 0;
  font-size: calc(var(--type-base) * 0.92);
}
@media (max-width: 720px) {
  .timeline::before {
    left: 0.7rem;
  }
  .timeline__item {
    grid-template-columns: 1.4rem 1fr;
    column-gap: calc(var(--space) * 1);
    align-items: start;
  }
  .timeline__dot {
    grid-column: 1;
    grid-row: 1 / span 2;
    justify-self: start;
    margin-top: calc(var(--space) * 0.3);
  }
  .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: var(--line-bar) 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 calc(var(--space) * 3);
  align-items: start;
}
.collection--headings-columns .collection-group__heading {
  font-size: calc(var(--type-base) * 1.15);
}
/* A plain list looks like an ordinary bulleted list. */
.collection--plain .collection-list--list {
  list-style: disc;
  padding-left: calc(var(--space) * 1.4);
}
.collection--plain .collection-list--list > .collection-item {
  border-bottom: 0;
  padding: calc(var(--space) * 0.12) 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: calc(var(--space) * 1);
  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: calc(var(--type-base) * 0.85);
  color: inherit;
  margin-left: calc(var(--space) * 0.8);
  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: calc(var(--space) * 0.8);
}
.image-text__under p {
  margin: calc(var(--space) * 0.2) 0;
}
.image-text__under-picture {
  display: block;
  margin: calc(var(--space) * 0.8) 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: calc(var(--type-base) * 1.4);
  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: calc(var(--space) * 1.25) calc(var(--space) * 2.5);
  margin: calc(var(--space) * 1.5) 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: calc(var(--space) * 2) calc(var(--space) * 1.5);
  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 {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
}
.section--veil-light::after {
  /* the page's own colour (white on a white page, dark on a dark one), so text on it keeps reading in both colour sets */
  background: color-mix(in srgb, var(--background) 60%, transparent);
}
.section--veil-dark::after {
  background: rgba(0, 0, 0, 0.5);
}
/* The page background: a veil in each set of colours (the light one, and the dark one the visitor may choose). On the page
   background the picture is not positioned, so the veil needs the next level up to lie over it. */
.page-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--in-dark, var(--pb-veil-light)) var(--in-light, var(--pb-veil-dark));
}
.page-bg--l-none {
  --pb-veil-light: transparent;
}
.page-bg--l-light {
  --pb-veil-light: color-mix(in srgb, var(--background) 60%, transparent);
}
.page-bg--l-dark {
  --pb-veil-light: rgba(0, 0, 0, 0.5);
}
.page-bg--d-none {
  --pb-veil-dark: transparent;
}
.page-bg--d-light {
  --pb-veil-dark: color-mix(in srgb, var(--background) 60%, transparent);
}
.page-bg--d-dark {
  --pb-veil-dark: 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 (it is a child of a block, which would keep it to the content column: it takes the whole window). */
.block--pageBackground > .page-bg {
  max-width: none;
  margin: 0;
  padding: 0;
}
.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;
}

/* Embedded sites (Embed block) */
.embed {
  margin: calc(var(--space) * 1.5) 0;
}
.embed iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  background: rgba(127, 127, 127, 0.1);
}
.embed-video iframe {
  aspect-ratio: 16 / 9;
}
.embed-wide iframe {
  aspect-ratio: 4 / 3;
}
.embed-square iframe {
  aspect-ratio: 1 / 1;
}
.embed-tall iframe {
  height: 640px;
  max-height: 85vh;
}
.embed figcaption {
  margin-top: calc(var(--space) * 0.5);
  font-size: 0.9em;
  opacity: 0.8;
}

/* Focal point of a picture (see focusClass in the SDK): which part stays in view when it is cropped. */
img.fp-0-0,
.fit-crop img.fp-0-0 {
  object-position: 0% 0%;
}
img.fp-0-25,
.fit-crop img.fp-0-25 {
  object-position: 0% 25%;
}
img.fp-0-50,
.fit-crop img.fp-0-50 {
  object-position: 0% 50%;
}
img.fp-0-75,
.fit-crop img.fp-0-75 {
  object-position: 0% 75%;
}
img.fp-0-100,
.fit-crop img.fp-0-100 {
  object-position: 0% 100%;
}
img.fp-25-0,
.fit-crop img.fp-25-0 {
  object-position: 25% 0%;
}
img.fp-25-25,
.fit-crop img.fp-25-25 {
  object-position: 25% 25%;
}
img.fp-25-50,
.fit-crop img.fp-25-50 {
  object-position: 25% 50%;
}
img.fp-25-75,
.fit-crop img.fp-25-75 {
  object-position: 25% 75%;
}
img.fp-25-100,
.fit-crop img.fp-25-100 {
  object-position: 25% 100%;
}
img.fp-50-0,
.fit-crop img.fp-50-0 {
  object-position: 50% 0%;
}
img.fp-50-25,
.fit-crop img.fp-50-25 {
  object-position: 50% 25%;
}
img.fp-50-75,
.fit-crop img.fp-50-75 {
  object-position: 50% 75%;
}
img.fp-50-100,
.fit-crop img.fp-50-100 {
  object-position: 50% 100%;
}
img.fp-75-0,
.fit-crop img.fp-75-0 {
  object-position: 75% 0%;
}
img.fp-75-25,
.fit-crop img.fp-75-25 {
  object-position: 75% 25%;
}
img.fp-75-50,
.fit-crop img.fp-75-50 {
  object-position: 75% 50%;
}
img.fp-75-75,
.fit-crop img.fp-75-75 {
  object-position: 75% 75%;
}
img.fp-75-100,
.fit-crop img.fp-75-100 {
  object-position: 75% 100%;
}
img.fp-100-0,
.fit-crop img.fp-100-0 {
  object-position: 100% 0%;
}
img.fp-100-25,
.fit-crop img.fp-100-25 {
  object-position: 100% 25%;
}
img.fp-100-50,
.fit-crop img.fp-100-50 {
  object-position: 100% 50%;
}
img.fp-100-75,
.fit-crop img.fp-100-75 {
  object-position: 100% 75%;
}
img.fp-100-100,
.fit-crop img.fp-100-100 {
  object-position: 100% 100%;
}

.collection-list--cols-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
@media (max-width: 800px) {
  .collection-list--cols-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* A static folder shown under the site's header. */
.static-frame {
  display: block;
  width: 100%;
  height: 85vh;
  height: 85dvh;
  min-height: 30rem;
  border: 0;
}

/* The page that asks for a download's password. */
.dl-gate form {
  display: grid;
  gap: calc(var(--space) * 0.5);
  max-width: 22rem;
  margin-top: calc(var(--space) * 1);
}
.dl-gate input {
  font: inherit;
  padding: calc(var(--space) * 0.5) calc(var(--space) * 0.6);
  border: var(--line) solid var(--line, rgb(0 0 0 / 30%));
  border-radius: var(--radius);
}
.dl-gate__error {
  color: #a5301c;
  font-weight: 600;
}

/* Reveal on scroll (the script adds js-reveal to the page; without it everything is simply shown) */
.js-reveal .reveal {
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.js-reveal .reveal:not(.is-visible) {
  opacity: 0;
}
.js-reveal .reveal--rise:not(.is-visible) {
  transform: translateY(28px);
}

/* A Container drawn as a box (a panel that styles dress): the blocks inside it sit in the box, not in a second set of the
   page's side margins. */
.container__panel .block > * {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}
.container__panel > :last-child,
.container__panel > .block:last-child > * > :last-child {
  margin-bottom: 0;
}

/* A picture's own shape and fill (the image and image-and-text blocks): the shape is a theme variable, set per block here. */
.shape--square {
  --picture-radius: var(--shape-square);
}
.shape--rounded {
  --picture-radius: var(--shape-rounded);
}
.shape--circle {
  --picture-radius: var(--shape-circle);
}
.shape--arch {
  --picture-radius: var(--shape-arch);
}
/* A picture's shadow, in the theme's own three shadows (so a theme with softer shadows changes it). */
.shadow--soft {
  --picture-shadow: var(--shadow-1);
}
.shadow--medium {
  --picture-shadow: var(--shadow-2);
}
.shadow--strong {
  --picture-shadow: var(--shadow-3);
}
.image img,
.image--portrait,
.image-text img,
.ll-picture,
.gallery img {
  box-shadow: var(--picture-shadow, none);
}
.fill--fill-1,
.fill--fill-2,
.fill--fill-3,
.fill--fill-4 {
  overflow: hidden;
  border-radius: var(--picture-radius);
}
.fill--fill-1 {
  background: var(--color-fill-1);
}
.fill--fill-2 {
  background: var(--color-fill-2);
}
.fill--fill-3 {
  background: var(--color-fill-3);
}
.fill--fill-4 {
  background: var(--color-fill-4);
}
/* A narrow side column and the rest (a section's title beside its text, a portrait beside a person's text) */
.columns--2.columns--ratio-aside {
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  margin-block: 0;
}
.columns--ratio-aside .prose > :first-child {
  margin-top: 0;
}
.columns--ratio-aside .image {
  margin-block: 0;
}
/* Two columns that share the width unevenly (a container's "width of two columns") */
@media (min-width: 720px) {
  .columns--2.columns--ratio-1-2 {
    grid-template-columns: 1fr 2fr;
  }
  .columns--2.columns--ratio-2-1 {
    grid-template-columns: 2fr 1fr;
  }
  .columns--2.columns--ratio-3-2 {
    grid-template-columns: 3fr 2fr;
  }
  .columns--2.columns--ratio-2-3 {
    grid-template-columns: 2fr 3fr;
  }
  .columns--2.columns--ratio-11-9 {
    grid-template-columns: 11fr 9fr;
  }
  .columns--2.columns--ratio-9-11 {
    grid-template-columns: 9fr 11fr;
  }
  .columns--3.columns--ratio-2-1-1 {
    grid-template-columns: 2fr 1fr 1fr;
  }
  .columns--2.columns--ratio-aside {
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  }
}

/* A band with a height of its own, its content centred */
.section--h-medium,
.section--h-tall {
  display: flex;
  align-items: center;
}
.section--h-medium {
  min-height: var(--band-h-medium);
}
.section--h-tall {
  min-height: var(--band-h-tall);
}
.section--h-medium > .section__inner,
.section--h-tall > .section__inner {
  width: 100%;
}

/* The veil that fades from the left, and the film (grey, or grey washed with the veil colour) */
.section--tone-page {
  --veil-color: var(--color-page);
}
.section--tone-fill-1 {
  --veil-color: var(--color-fill-1);
}
.section--tone-fill-2 {
  --veil-color: var(--color-fill-2);
}
.section--tone-fill-3 {
  --veil-color: var(--color-fill-3);
}
.section--tone-fill-4 {
  --veil-color: var(--color-fill-4);
}
.section--tone-ink {
  --veil-color: var(--color-ink);
}
.section--veil-side::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--veil-color) var(--veil-start), transparent) 0%,
    color-mix(in srgb, var(--veil-color) var(--veil-mid), transparent) 45%,
    color-mix(in srgb, var(--veil-color) var(--veil-end), transparent) 100%
  );
}
@media (max-width: 760px) {
  .section--veil-side::after {
    background: color-mix(in srgb, var(--veil-color) var(--veil-phone), transparent);
  }
}
.section--film .section__bg {
  filter: grayscale(1);
}
.section__film {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--veil-color);
  mix-blend-mode: multiply;
  opacity: calc(var(--veil-film) / 100%);
}

/* A band whose content keeps to a narrow reading column, at the start (a heading, a lead and buttons beside a picture) */
.section--narrow .section__inner .block > * {
  max-width: calc(var(--measure-narrow) + 2 * var(--gutter));
  margin-left: 0;
  margin-right: auto;
}

/* List looks: the entries of a collection drawn from data (render/list-looks.ts) */
.ll-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ll-grid {
  display: grid;
  gap: calc(var(--space) * 2) calc(var(--space) * 1.5);
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
}
.ll-grid > * {
  min-width: 0;
}
.ll-grid--1 {
  --cols: 1;
}
.ll-grid--2 {
  --cols: 2;
}
.ll-grid--3 {
  --cols: 3;
}
.ll-grid--4 {
  --cols: 4;
}
.ll-grid--5 {
  --cols: 5;
}
.ll-grid--6 {
  --cols: 6;
}
.ll-grid--7 {
  --cols: 7;
}
.ll-grid--8 {
  --cols: 8;
}
.ll-columns {
  columns: 3 12rem;
  column-gap: calc(var(--space) * 2);
  font-size: calc(var(--type-base) * 0.95);
  color: var(--color-ink-soft);
}
.ll-columns > li {
  break-inside: avoid;
  padding: calc(var(--space) * 0.15) 0;
}
.ll--center .ll-item {
  text-align: center;
}
.ll-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
a.ll-link:hover h3 {
  color: var(--color-link);
}
.ll-link--inline {
  display: inline;
  /* a link shows it is one before it is hovered, when the theme underlines its links (its own setting) */
  text-decoration: var(--link-decoration, underline);
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 0.18em;
}
.ll-link--inline:hover {
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-color: currentColor;
}
.ll-item h3,
.ll-item p {
  margin: 0;
}
/* text in a right-to-left script (Arabic, Hebrew) reads from the right, whatever direction the page has */
.ll-item :is(h2, h3, h4, p, li, dd, dt, div) {
  unicode-bidi: plaintext;
}
.ll-item .ll-above-0_25 {
  margin-top: calc(var(--space) * 0.25);
}
.ll-item .ll-below-0_25 {
  margin-bottom: calc(var(--space) * 0.25);
}
.ll-item .ll-above-0_5 {
  margin-top: calc(var(--space) * 0.5);
}
.ll-item .ll-below-0_5 {
  margin-bottom: calc(var(--space) * 0.5);
}
.ll-item .ll-above-0_75 {
  margin-top: calc(var(--space) * 0.75);
}
.ll-item .ll-below-0_75 {
  margin-bottom: calc(var(--space) * 0.75);
}
.ll-item .ll-above-1 {
  margin-top: calc(var(--space) * 1);
}
.ll-item .ll-below-1 {
  margin-bottom: calc(var(--space) * 1);
}
.ll-item .ll-above-1_5 {
  margin-top: calc(var(--space) * 1.5);
}
.ll-item .ll-below-1_5 {
  margin-bottom: calc(var(--space) * 1.5);
}
.ll-item .ll-above-2 {
  margin-top: calc(var(--space) * 2);
}
.ll-item .ll-below-2 {
  margin-bottom: calc(var(--space) * 2);
}
.ll-item .ll-above-3 {
  margin-top: calc(var(--space) * 3);
}
.ll-item .ll-below-3 {
  margin-bottom: calc(var(--space) * 3);
}
.ll-item .ll-above-em0_3 {
  margin-top: 0.3em;
}
.ll-item .ll-below-em0_3 {
  margin-bottom: 0.3em;
}
.ll-item .ll-above-em0_6 {
  margin-top: 0.6em;
}
.ll-item .ll-below-em0_6 {
  margin-bottom: 0.6em;
}
.ll-size-tiny {
  font-size: calc(var(--type-base) * 0.8);
}
.ll-mono {
  font-family: var(--font-mono);
}
.ll-medium {
  font-weight: 500;
}
.ll-bold {
  font-weight: 700;
}
.ll-loose {
  letter-spacing: var(--tracking-loose);
}
.ll-leading-compact {
  line-height: var(--leading-compact);
}
.ll-leading-snug {
  line-height: var(--leading-snug);
}
.ll-link--plain {
  display: inline;
  color: inherit;
  text-decoration: none;
}
.ll-link--plain:hover {
  color: var(--color-link);
}
.ll-pic-xs {
  max-width: 3rem;
}
.ll-pic-sm {
  max-width: 6rem;
}
.ll-pic-md {
  max-width: 12rem;
}
.ll-pic-lg {
  max-width: 20rem;
}
.ll-picture--code {
  font-weight: 700;
  font-size: calc(var(--type-base) * 1.4);
  color: var(--color-ink);
}
.ll-size-small {
  font-size: var(--step--1);
}
.ll-size-large {
  font-size: var(--step-1);
}
.ll-size-xlarge {
  font-size: var(--step-2);
}
.ll-color-soft {
  color: var(--color-ink-soft);
}
.ll-color-quiet {
  color: var(--color-ink-quiet);
}
.ll-color-accent {
  color: var(--color-accent);
}
.ll-color-link {
  color: var(--color-link);
}
.ll-align-end {
  text-align: end;
}
.ll-align-center {
  text-align: center;
}
.ll-italic {
  font-style: italic;
}
.ll-leading-normal {
  line-height: var(--leading-normal);
}
.ll-leading-heading {
  line-height: var(--leading-heading);
}
.ll-leading-tight {
  line-height: var(--leading-tight);
}
.ll-measure {
  max-width: var(--measure-reading);
}
.ll-item {
  overflow-wrap: break-word; /* a long unbroken word breaks instead of running the page wide */
}
.ll-stack,
.ll-row > * {
  min-width: 0;
}
.ll-facts {
  overflow-wrap: anywhere;
}
.ll-row {
  display: grid;
  gap: calc(var(--space) * 1.5);
}
.ll-row--main-aside {
  /* the picture column never takes more than a third, so the text beside it keeps room for whole words */
  grid-template-columns: minmax(0, 1fr) minmax(0, min(11rem, 34%));
}
.ll-row--aside-main {
  grid-template-columns: minmax(0, min(11rem, 34%)) minmax(0, 1fr);
}
.ll-row--equal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
/* Table and run-on layouts of a list look */
.ll-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}
.ll-table {
  width: 100%;
  border-collapse: collapse;
}
@media (max-width: 40rem) {
  /* a table scrolls in its box on a phone instead of squeezing its columns */
  .ll-table th,
  .ll-table td {
    min-width: 7rem;
  }
}
/* A table that becomes a list of small cards on a phone (the look says "onPhone: cards") */
@media (max-width: 40rem) {
  .ll-table--cards,
  .ll-table--cards tbody,
  .ll-table--cards tr,
  .ll-table--cards td {
    display: block;
    width: 100%;
  }
  .ll-table--cards thead {
    /* the words above the columns are in front of each value instead; kept for screen readers */
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .ll-table--cards tr {
    border: var(--line) solid var(--color-line);
    border-radius: var(--radius);
    padding: calc(var(--space) * 0.5) calc(var(--space) * 0.75);
    margin-bottom: calc(var(--space) * 0.75);
  }
  .ll-table--cards td {
    min-width: 0;
    padding: calc(var(--space) * 0.2) 0;
    border: 0;
  }
  .ll-table--cards caption {
    display: block;
    width: 100%;
  }
  .ll-table--cards td:empty {
    display: none;
  }
  .ll-table--cards td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: calc(var(--type-base) * 0.8);
    color: var(--color-ink-quiet);
  }
}
.ll-table caption {
  caption-side: top;
  text-align: start;
  font-weight: 600;
  padding-bottom: calc(var(--space) * 0.5);
}
.ll-table--zebra:not([data-striped]) tbody tr:nth-child(even),
.ll-table--zebra[data-striped] tbody tr.ll-stripe {
  background: var(--color-fill-2); /* lighter than a chip, so chips stay visible on every row */
}
.ll-table--zebra:not([data-striped]) tbody tr:nth-child(even) .ll-chip,
.ll-table--zebra[data-striped] tbody tr.ll-stripe .ll-chip {
  background: var(--color-panel);
  box-shadow: inset 0 0 0 1px var(--color-line);
}
.ll-table--zebra th,
.ll-table--zebra td {
  padding-inline-start: calc(var(--space) * 0.5);
}
.ll-table--dense th,
.ll-table--dense td {
  padding-block: calc(var(--space) * 0.2);
  font-size: calc(var(--type-base) * 0.9);
}
.ll-table--roomy th,
.ll-table--roomy td {
  padding-block: calc(var(--space) * 1);
}
.ll-table th {
  text-align: start;
  font-weight: 500;
  font-size: calc(var(--type-base) * 0.85);
  color: var(--color-ink-soft);
}
.ll-table th,
.ll-table td {
  padding: calc(var(--space) * 0.5) calc(var(--space) * 0.75) calc(var(--space) * 0.5) 0;
  border-bottom: var(--line) solid var(--color-line);
  vertical-align: top;
}
.ll-inline > li {
  display: inline;
}
.ll-inline > li + li::before {
  content: '·';
  margin-inline: calc(var(--space) * 0.5);
  color: var(--color-ink-soft);
}
/* Facts, gallery, related entries (render/list-looks.ts) */
.ll-facts dl {
  margin: 0;
}
.ll-facts__row {
  display: grid;
  grid-template-columns: minmax(6rem, 11rem) minmax(0, 1fr);
  gap: calc(var(--space) * 1);
  padding-block: calc(var(--space) * 0.5);
  border-top: var(--line) solid var(--color-line);
}
.ll-facts__row dt {
  color: var(--color-ink-soft);
  font-size: calc(var(--type-base) * 0.9);
}
.ll-facts__row dd {
  margin: 0;
}
.ll-gallery__item {
  margin: 0;
}
.ll-gallery__caption {
  margin: calc(var(--space) * 0.4) 0 0;
  font-size: calc(var(--type-base) * 0.85);
  color: var(--color-ink-soft);
}
.ll-related {
  margin-top: calc(var(--space) * 2);
}
@media (max-width: 40rem) {
  .ll-facts__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}
.ll-item--divided {
  padding-bottom: calc(var(--space) * 1.5);
}
.ll-item--divided + .ll-item--divided {
  padding-top: calc(var(--space) * 1.5);
  border-top: var(--line) solid var(--color-line);
}
.ll-jump ul {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--space) * 0.25) calc(var(--space) * 0.75);
  list-style: none;
  margin: 0 0 calc(var(--space) * 1.5);
  padding: 0;
}
.ll-jump a {
  display: inline-block;
  min-width: 1.75rem;
  padding: calc(var(--space) * 0.2) calc(var(--space) * 0.4);
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius);
  border: var(--line) solid var(--color-line);
}
.ll-jump a:hover {
  border-color: currentColor;
}
.ll-group--side {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: calc(var(--space) * 1.5);
  padding-block: calc(var(--space) * 1.5);
  border-top: var(--line) solid var(--color-line);
}
.ll-heading--side {
  overflow-wrap: break-word;
  font: italic var(--step-2) / 1 var(--font-heading);
  color: var(--color-accent);
  margin: 0;
}
.ll-heading {
  font-size: var(--step-2);
}
/* month names and other long words must fit the 7rem column whole */
.ll-heading--side.ll-heading--long {
  font-size: calc(var(--type-base) * 1.3);
  line-height: var(--leading-snug);
}
.ll-picture {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin: 0;
  border-radius: var(--picture-radius);
}
.ll-ratio-1-1 {
  aspect-ratio: 1/1;
}
.ll-ratio-4-5 {
  aspect-ratio: 4/5;
}
.ll-ratio-3-2 {
  aspect-ratio: 3/2;
}
.ll-ratio-16-9 {
  aspect-ratio: 16/9;
}
.ll-picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
}
.ll-picture--contain > img {
  width: 72%;
  height: auto;
  object-fit: contain;
}
.ll-picture--warm > img {
  filter: saturate(0.85) sepia(0.12) contrast(0.94) brightness(1.04);
}
.ll-picture--initials {
  font: 400 clamp(calc(var(--type-base) * 2), 6cqi, calc(var(--type-base) * 3.25)) / 1
    var(--font-heading);
  color: var(--color-ink);
}
.ll-accordion details {
  border-top: var(--line) solid var(--color-line);
  padding-block: calc(var(--space) * 1);
}
.ll-accordion summary {
  cursor: pointer;
  font: 400 var(--step-1) / var(--leading-heading) var(--font-heading);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: calc(var(--space) * 1);
}
.ll-accordion summary::-webkit-details-marker {
  display: none;
}
.ll-accordion summary::after {
  content: '+';
  font: 400 calc(var(--type-base) * 1.5) / 1 var(--font-body);
  color: var(--color-link);
}
.ll-accordion details[open] summary::after {
  content: '−';
}
.ll-accordion .ll-list {
  margin-top: calc(var(--space) * 1);
}
@media (max-width: 960px) {
  .ll-grid--8,
  .ll-grid--7,
  .ll-grid--6,
  .ll-grid--5,
  .ll-grid--4 {
    --cols: 3;
  }
  /* cards with text or facts need room: two across on a tablet, one on a phone (grids of plain pictures keep theirs) */
  .ll-grid:has(.ll-facts, .ll-row) {
    --cols: 2;
  }
}
@media (max-width: 520px) {
  .ll-grid:has(.ll-facts, .ll-row) {
    --cols: 1;
  }
}
@media (max-width: 760px) {
  .ll-group--side {
    grid-template-columns: 1fr;
    gap: calc(var(--space) * 0.5);
  }
  .ll-row {
    grid-template-columns: 1fr;
    gap: calc(var(--space) * 0.5);
  }
  /* a tile or logo beside text becomes a small one above it, not a block as wide as the screen */
  .ll-row > figure,
  .ll-row > [class*='ll-picture'] {
    max-width: 6rem;
  }
  .ll-row--main-aside .ll-align-end {
    text-align: start;
  }
  .ll-grid--2,
  .ll-grid--3,
  .ll-grid--4,
  .ll-grid--5,
  .ll-grid--6,
  .ll-grid--7,
  .ll-grid--8 {
    --cols: 2;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .ll-picture {
    transition: transform 0.25s ease;
  }
  .ll-picture > img {
    transition: transform 0.45s ease;
  }
  a.ll-link:hover .ll-picture > img {
    transform: scale(1.03);
  }
  a.ll-link:hover .ll-picture {
    transform: translateY(-3px);
  }
}
.ll-chip {
  display: inline-block;
  margin: 0 calc(var(--space) * 0.25) calc(var(--space) * 0.25) 0;
  padding: 0.1em 0.6em;
  border-radius: var(--radius-xl);
  background: var(--color-fill-1);
  color: var(--color-ink);
  font-size: calc(var(--type-base) * 0.85);
  line-height: var(--leading-snug);
}
.ll-zoom {
  max-width: min(96vw, 80rem);
  max-height: 96vh;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: visible;
}
.ll-zoom::backdrop {
  background: rgba(0, 0, 0, 0.82);
}
.ll-zoom img {
  max-width: 100%;
  max-height: 86vh;
  margin: 0 auto;
}
.ll-zoom__caption {
  margin: 0.5rem 0 0;
  text-align: center;
}
.ll-zoom__close {
  position: absolute;
  top: -2.25rem;
  right: 0;
  font-size: calc(var(--type-base) * 1.75);
  line-height: 1;
  padding: 0 0.5rem;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
}
.ll-gallery a[data-zoom] {
  display: block;
  cursor: zoom-in;
}
.ll-chip--filter {
  cursor: pointer;
}
.ll-chip--filter:hover {
  box-shadow: inset 0 0 0 1px currentColor;
}
.ll-chip--filter:focus-visible {
  outline: var(--focus-width, 3px) solid var(--focus-color, var(--accent));
  outline-offset: 2px;
}
.ll-bar {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-xs);
}
.ll-bar--h {
  width: 100%;
  min-width: 3rem;
}
.ll-bar--h.ll-bar--t-thin {
  height: 0.35rem;
}
.ll-bar--h.ll-bar--t-normal {
  height: 0.7rem;
}
.ll-bar--h.ll-bar--t-thick {
  height: 1.1rem;
}
.ll-bar--v.ll-bar--t-thin {
  width: 0.5rem;
}
.ll-bar--v.ll-bar--t-normal {
  width: 1rem;
}
.ll-bar--v.ll-bar--t-thick {
  width: 1.6rem;
}
.ll-bar--v.ll-bar--l-short {
  height: 3rem;
}
.ll-bar--v.ll-bar--l-normal {
  height: 5rem;
}
.ll-bar--v.ll-bar--l-tall {
  height: 8rem;
}
.ll-bar__track {
  fill: var(--color-fill-1);
}
.ll-bar--accent .ll-bar__fill {
  fill: var(--color-accent);
}
.ll-bar--ink .ll-bar__fill {
  fill: var(--color-ink);
}
.ll-bar--soft .ll-bar__fill {
  fill: var(--color-ink-quiet);
}
.ll-more-hidden {
  display: none;
}
.ll-count {
  color: var(--color-ink-quiet);
  font-size: 0.6em;
  font-style: normal;
  font-weight: 400;
  white-space: nowrap;
}
.ll-sort {
  all: inherit;
  display: inline-block;
  padding: 0;
  cursor: pointer;
}
.ll-table th[aria-sort='ascending'] .ll-sort::after {
  content: ' \25B2';
  font-size: 0.7em;
}
.ll-table th[aria-sort='descending'] .ll-sort::after {
  content: ' \25BC';
  font-size: 0.7em;
}
.ll-sort:focus-visible {
  outline: var(--focus-width, 3px) solid var(--focus-color, var(--accent));
  outline-offset: 2px;
}
.ll-plot {
  margin: 0 0 calc(var(--space) * 1.5);
}
.ll-plot figcaption {
  font-weight: 700;
  margin-bottom: calc(var(--space) * 0.5);
}
.ll-plot svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 44rem;
  overflow: visible;
}
.ll-plot__grid {
  stroke: var(--color-line);
  stroke-width: 1;
}
.ll-plot__axis {
  stroke: var(--color-ink-quiet);
  stroke-width: 1.5;
}
.ll-plot__tick,
.ll-plot__name {
  fill: var(--color-ink-soft);
  font-size: calc(var(--type-base) * 0.78);
}
.ll-plot__dot {
  fill: var(--color-accent);
  fill-opacity: 0.8;
  stroke: var(--color-page);
  stroke-width: 1.5;
}
.ll-plot--ink .ll-plot__dot {
  fill: var(--color-ink);
}
.ll-plot--soft .ll-plot__dot {
  fill: var(--color-ink-quiet);
}
.ll-plot a:hover .ll-plot__dot,
.ll-plot a:focus-visible .ll-plot__dot {
  fill-opacity: 1;
  stroke: currentColor;
}
.ll-plot a:focus-visible {
  outline: none;
}
.ll-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: calc(var(--space) * 1);
  margin-top: calc(var(--space) * 1.5);
}
.ll-pager a {
  padding: var(--button-pad);
  border: var(--line-strong) solid currentColor;
  border-radius: var(--button-radius, var(--radius));
  text-decoration: none;
}
@media print {
  .ll-pager {
    display: none;
  }
}
.ll-more-row {
  margin-top: calc(var(--space) * 0.75);
}
.ll-more {
  font: inherit;
  cursor: pointer;
  padding: var(--button-pad);
  border-radius: var(--button-radius, var(--radius));
  background: transparent;
  color: var(--button-secondary-ink, var(--color-link));
  border: var(--line-strong) solid currentColor;
}
.ll-more:hover {
  filter: var(--button-hover, none);
}
.ll-more:focus-visible {
  outline: var(--focus-width, 3px) solid var(--focus-color, var(--accent));
  outline-offset: var(--focus-offset, 2px);
}

/* On paper: the page without its menu, banner, forms, moving things and buttons; the address of each outside link shown. */
@media print {
  /* A printed list shows every row (also those kept back by "Show more") and every folded year */
  /* (but not the rows a search or choice took out: they stay out) */
  .ll-more-hidden:not([hidden]) {
    display: revert !important;
  }
  .ll-accordion details::details-content {
    content-visibility: visible;
    display: block;
  }
  .skip-link,
  .site-header,
  .banner,
  .notice,
  .page-bg,
  .collection-filters,
  .contact-form-wrap,
  .bg-video__toggle,
  .slider__controls,
  .ll-more-row,
  .ll-jump,
  .side-menu,
  .toc,
  .buttons,
  .theme-toggle-row,
  .theme-toggle,
  .hero .nav,
  video,
  iframe {
    display: none;
  }
  body {
    background: #ffffff;
    color: #000000;
  }
  /* Black on white whatever the screen was showing (a dark scheme must not print dark boxes with dark words) */
  :root {
    color-scheme: light;
  }
  main *:not(img, svg, svg *, picture, video) {
    background: transparent !important;
    color: #000000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  .prose a[href^='http']::after {
    content: ' (' attr(href) ')';
    word-break: break-all;
  }
  .card,
  .collection-item,
  .ll-item,
  figure,
  blockquote,
  tr {
    break-inside: avoid;
  }
  h2,
  h3,
  h4 {
    break-after: avoid;
  }
}

/* The button with which a visitor chooses dark or light colours (it appears only with the small script): an icon alone,
   a sun while light colours are on and a moon while dark ones are. */
.theme-toggle-row {
  max-width: var(--content-max-width);
  margin: calc(var(--space) * 1) auto;
  padding: 0 var(--gutter);
}
.theme-toggle-row--footer {
  max-width: none;
  margin: calc(var(--space) * 0.8) 0 0;
  padding: 0;
  text-align: end;
}
.theme-toggle {
  display: inline-grid;
  place-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  font: inherit;
  color: inherit;
  background: transparent;
  border: var(--line) solid currentColor;
  border-radius: var(--radius-xl);
  cursor: pointer;
}
.theme-toggle[hidden] {
  display: none;
}
.theme-toggle svg {
  width: 1.35rem;
  height: 1.35rem;
}
.theme-toggle__moon,
.theme-toggle[aria-pressed='true'] .theme-toggle__sun {
  display: none;
}
.theme-toggle[aria-pressed='true'] .theme-toggle__moon {
  display: block;
}
.theme-toggle--header {
  margin-inline-start: calc(var(--space) * 0.8);
}
.theme-toggle--floating {
  position: fixed;
  inset-block-end: calc(var(--space) * 1);
  inset-inline-end: calc(var(--space) * 1);
  z-index: 30;
  color: var(--text);
  background: var(--background);
}

/* A menu item shown as a button: it keeps the button's own look, not the link's, over a hero and on its own page too. */
.nav a.nav__button.button,
.hw-nav a.nav__button.button,
.hero .nav a.nav__button.button,
.nav a.nav__button.button[aria-current='page'],
.hw-nav a.nav__button.button[aria-current='page'] {
  border-bottom: 0;
  padding: calc(var(--space) * 0.45) calc(var(--space) * 1);
  /* the button's own ink: white on a solid button, the button colour on an outline one (never white on nothing) */
  color: var(--button-ink, var(--button-text));
  text-decoration: none;
}
/* over a picture it is a light button with dark words, like every button there (the rule above must not turn them white) */
.hero--image .nav a.nav__button.button,
.hero--image .nav a.nav__button.button[aria-current='page'] {
  background: #ffffff;
  color: #111111;
  border-color: #ffffff;
}

/* The menu as a list down the side of a page; on a phone it folds behind a button */
.side-menu__open {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}
.side-menu__burger {
  display: none;
  cursor: pointer;
  padding: calc(var(--space) * 0.35) calc(var(--space) * 1);
  border: var(--line-strong) solid currentColor;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: calc(var(--type-base) * 0.9);
  user-select: none;
}
.side-menu__open:focus-visible + .side-menu__burger {
  outline: var(--focus-width, 3px) solid var(--focus-color, var(--accent));
  outline-offset: var(--focus-offset, 2px);
}
@media (max-width: 720px) {
  .side-menu__burger {
    display: inline-block;
  }
  .side-menu__open ~ ul,
  .side-menu__open ~ .side-menu__title {
    display: none;
  }
  .side-menu__open:checked ~ ul {
    display: block;
  }
}
.side-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.side-menu ul ul {
  padding-inline-start: calc(var(--space) * 1);
}
.side-menu a {
  display: block;
  padding: calc(var(--space) * 0.3) 0;
  text-decoration: none;
  color: var(--text);
}
.side-menu a:hover {
  color: var(--link);
}
.side-menu a[aria-current='page'] {
  color: var(--link);
  font-weight: 700;
}
.side-menu__title {
  margin: 0 0 calc(var(--space) * 0.5);
  font-weight: 700;
}

/* The narrow side column stays in view while the page scrolls past it (only where there is room). */
@media (min-width: 720px) {
  .columns--sticky > .columns__item:first-child {
    position: sticky;
    top: calc(var(--header-pad, 1rem) * 2 + 4rem);
    align-self: start;
  }
}

/* Space between the header and a first block that is not a band (the theme's page top space; nothing by default). */
main
  > .block:first-child:not(
    .block--hero,
    .block--section,
    .block--videoHero,
    .block--pageBackground,
    .block--archSplit,
    .block--notice
  ) {
  padding-top: var(--page-top-space, 0);
}

/* A wide line of code (or anything that will not wrap) inside a column or a cell scrolls in its own box, not the page. */
.columns__item,
.cells > .block {
  min-width: 0;
}

/* The admin's preview draws a block that needs a script, or an outside frame, as a labelled box */
.editor-placeholder {
  display: grid;
  place-content: center;
  gap: 0.25rem;
  min-height: 9rem;
  padding: 1rem;
  border: 2px dashed var(--color-line, #9aa5a0);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgb(0 0 0 / 4%) 14px 28px), var(--surface);
  color: var(--color-ink);
  text-align: center;
}
.editor-placeholder--tall {
  min-height: 18rem;
}
.editor-placeholder span {
  color: var(--color-ink-quiet);
}
.editor-placeholder small {
  color: var(--color-ink-quiet);
}

/* the colour button is never printed (this comes after its own rules, which would otherwise win) */
@media print {
  .theme-toggle,
  .theme-toggle-row {
    display: none !important;
  }
}

/* Room under the page for the floating colour button, so it does not cover the last lines and the controls there */
body:has(.theme-toggle--floating) {
  padding-bottom: 4.5rem;
}

/* A paged list is printed whole (a copy that only paper shows), or its page with a note that says where the rest is. */
.ll-print-all,
.ll-print-note {
  display: none;
}
@media print {
  .ll-paged,
  .ll-pager {
    display: none !important;
  }
  .ll-print-all {
    display: block;
  }
  .ll-print-note {
    display: block;
    font-size: 0.85em;
  }
}
.ll-sort {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
th[aria-sort='ascending'] .ll-sort::after {
  content: ' ▲';
  font-size: 0.7em;
}
th[aria-sort='descending'] .ll-sort::after {
  content: ' ▼';
  font-size: 0.7em;
}
