/*
  BUMDA showcase site stylesheet.

  Editorial, institution-style layout: real photographs, typographic hierarchy,
  neutral hairlines. Colour is kept for the logo, the primary button and the dark
  sections only; no coloured borders, glows or background patterns.

  Themes: every colour is a token on :root. The dark values apply when the system
  asks for a dark scheme (unless the visitor chose light) and when the visitor
  chose dark with the header switch, which stores its choice in localStorage and
  sets data-theme on <html>.

  Mobile first from 320 px. Breakpoints: 720 px (two columns), 1080 px (wide
  splits) and 1200 px (desktop navigation). Content column capped at 1180 px.
*/

/* Self-hosted fonts (SIL Open Font License, see assets/fonts/OFL-*.txt) */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

/* Light theme (default) */
:root {
  color-scheme: light;

  --bg: #ffffff;
  --bg-alt: #f6f3ec;
  --bg-dark: #0d2340;
  --text: #14202e;
  --text-muted: #586473;
  --heading: #0d2340;
  --line: #e2dfd8;
  --link: #1f5fa8;
  --link-hover: #0d2340;
  --button-bg: #0d2340;
  --button-bg-hover: #183a63;
  --button-fg: #ffffff;
  --focus: #1f5fa8;
  --on-dark: rgba(255, 255, 255, 0.82);
  --on-dark-muted: rgba(255, 255, 255, 0.62);
  --on-dark-line: rgba(255, 255, 255, 0.16);
  --switch-track: #efebe3;
  --switch-thumb: #ffffff;
  --switch-shadow: 0 1px 3px rgba(13, 35, 64, 0.18), 0 1px 1px rgba(13, 35, 64, 0.08);
  --gold: #f5b800;

  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  --radius: 6px;
  --container: 1180px;
  --gutter: 16px;
  --section-space: clamp(3.5rem, 8vw, 7rem);
}

/* Dark theme: system preference, unless the visitor chose light */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;

    --bg: #101b28;
    --bg-alt: #16232f;
    --bg-dark: #070f1a;
    --text: #e3e8ee;
    --text-muted: #a0acba;
    --heading: #f4f6f9;
    --line: #2b3a4b;
    --link: #8ab8ec;
    --link-hover: #ffffff;
    --button-bg: #e9edf2;
    --button-bg-hover: #ffffff;
    --button-fg: #0d2340;
    --focus: #8ab8ec;
    --on-dark: rgba(255, 255, 255, 0.82);
    --on-dark-muted: rgba(255, 255, 255, 0.62);
    --on-dark-line: rgba(255, 255, 255, 0.14);
    --switch-track: #0b1520;
    --switch-thumb: #263649;
    --switch-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  }
}

/* Dark theme: explicit choice with the header switch */
:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #101b28;
  --bg-alt: #16232f;
  --bg-dark: #070f1a;
  --text: #e3e8ee;
  --text-muted: #a0acba;
  --heading: #f4f6f9;
  --line: #2b3a4b;
  --link: #8ab8ec;
  --link-hover: #ffffff;
  --button-bg: #e9edf2;
  --button-bg-hover: #ffffff;
  --button-fg: #0d2340;
  --focus: #8ab8ec;
  --on-dark: rgba(255, 255, 255, 0.82);
  --on-dark-muted: rgba(255, 255, 255, 0.62);
  --on-dark-line: rgba(255, 255, 255, 0.14);
  --switch-track: #0b1520;
  --switch-thumb: #263649;
  --switch-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

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

h1,
h2,
h3 {
  margin: 0 0 0.55em;
  color: var(--heading);
  line-height: 1.12;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.15rem, 1.3rem + 3.4vw, 4rem);
}

h2 {
  font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.75rem);
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

p {
  margin: 0 0 1em;
}

/* Links are never underlined: colour, weight and the hover colour change carry them. */
a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
}

main p a:not(.button):not(.text-link),
main address a {
  font-weight: 600;
}

/* An e-mail address has no break opportunity: allow it to wrap anywhere inside
   the flex rows of the address blocks rather than widening the page at 320 px. */
address p > * {
  min-width: 0;
}

address a {
  overflow-wrap: anywhere;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

li + li {
  margin-top: 0.35em;
}

li::marker {
  color: var(--text-muted);
}

address {
  font-style: normal;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--button-bg);
  color: var(--button-fg);
}

.skip-link:focus {
  top: var(--gutter);
}

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

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  flex-shrink: 0;
  vertical-align: -0.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lede {
  max-width: 60ch;
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.55;
  color: var(--text-muted);
}

.muted {
  color: var(--text-muted);
}

/* Buttons and links */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--button-bg);
  color: var(--button-fg);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--button-bg-hover);
  color: var(--button-fg);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  font-weight: 700;
  color: var(--heading);
  text-decoration: none;
}

.text-link:hover {
  color: var(--link);
}

.text-link--light {
  color: #fff;
}

.text-link--light:hover {
  color: var(--gold);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 2rem;
}

/* Header, navigation and theme switch */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  max-width: 1320px;
  padding-inline: clamp(16px, 3vw, 40px);
}

.site-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  min-height: 76px;
  padding-block: 0.6rem;
}

.brand {
  display: flex;
  align-items: center;
  min-height: 44px;
  flex-shrink: 0;
  order: 1;
}

.brand img {
  width: auto;
  height: 50px;
}

/* Icon-only menu button: three bars that turn into a cross when the menu opens.
   Its accessible name comes from aria-label, its state from aria-expanded. */
.nav-toggle {
  order: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--heading);
  cursor: pointer;
}

.nav-toggle:hover {
  background: var(--bg-alt);
}

.nav-toggle__bars {
  position: relative;
  width: 22px;
  height: 14px;
}

.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.15s ease;
}

.nav-toggle__bars span:nth-child(1) {
  top: 0;
}

.nav-toggle__bars span:nth-child(2) {
  top: 6px;
}

.nav-toggle__bars span:nth-child(3) {
  top: 12px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle__bars span {
    transition: none;
  }
}

/* Theme switch: three native radios drawn as a segmented control. A thumb slides
   under the checked option; arrow keys move between options natively. */
.theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.theme-row__label {
  font-weight: 600;
  color: var(--text-muted);
}

/* The switch needs JavaScript to act: hidden when scripts are off. */
.no-js .theme-row {
  display: none;
}

.theme-switch {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.theme-switch__track {
  position: relative;
  display: flex;
  padding: 0;
  border-radius: 999px;
  background: var(--switch-track);
}

.theme-switch__track::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--switch-thumb);
  box-shadow: var(--switch-shadow);
  transition: transform 0.22s ease;
}

.theme-switch__track:has(input[value="light"]:checked)::before {
  transform: translateX(44px);
}

.theme-switch__track:has(input[value="dark"]:checked)::before {
  transform: translateX(88px);
}

.theme-switch label {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: var(--text-muted);
  cursor: pointer;
}

.theme-switch label:hover,
.theme-switch label:has(input:checked) {
  color: var(--heading);
}

.theme-switch label:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: -2px;
}

.theme-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.theme-switch .icon {
  width: 18px;
  height: 18px;
}

@media (prefers-reduced-motion: reduce) {
  .theme-switch__track::before {
    transition: none;
  }
}

.site-nav {
  display: none;
  flex-basis: 100%;
  order: 3;
  padding-bottom: 1rem;
}

.no-js .site-nav,
.site-nav.is-open {
  display: block;
}

.no-js .nav-toggle {
  display: none;
}

.site-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li + li {
  margin-top: 0;
  border-top: 1px solid var(--line);
}

.site-nav a:not(.button) {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--heading);
  font-weight: 800;
}

.site-nav .button {
  margin-top: 0.75rem;
}

/* Sections */
.section {
  padding-block: var(--section-space);
}

.section--ivory {
  background: var(--bg-alt);
}

.section--navy {
  background: var(--bg-dark);
  color: var(--on-dark);
}

.section--navy h2,
.section--navy h3 {
  color: #fff;
}

.section-intro {
  max-width: 62ch;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section-intro p {
  color: var(--text-muted);
}

.section--navy .section-intro p {
  color: var(--on-dark-muted);
}

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
}

/* Grid children may shrink below their content width, so a wide table or a long
   word scrolls inside its own wrapper instead of widening the whole page. */
.split > *,
.columns-2 > *,
.feature > *,
.media-split > *,
.audiences > *,
.hero__grid > *,
.page-header__grid > * {
  min-width: 0;
}

/* Home hero */
.hero {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 {
  max-width: 15ch;
}

.hero__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 55% 30%;
  border-radius: var(--radius);
}

/* Key figures */
.hero .figures {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

.figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 1.5rem;
  margin: 0;
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}

.figures div {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.35rem;
}

.figures dt {
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.figures dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem);
  font-weight: 600;
  line-height: 1;
  color: var(--heading);
}

/* Stacked entries separated by hairlines (missions, roles, organs) */
.entries {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.entries > li,
.entries > div {
  margin: 0;
  padding-block: 1.4rem;
  border-top: 1px solid var(--line);
}

.entries h3 {
  margin-bottom: 0.35rem;
}

.entries p {
  margin: 0;
  color: var(--text-muted);
}

.entries--with-icon > li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 1rem;
}

.entries--with-icon .icon {
  width: 28px;
  height: 28px;
  margin-top: 0.1rem;
  color: var(--heading);
}

.section--navy .entries,
.section--navy .entries > li,
.section--navy .entries > div {
  border-color: var(--on-dark-line);
}

.section--navy .entries p {
  color: var(--on-dark-muted);
}

/* Feature: photograph beside a quotation */
.feature {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.feature img {
  width: 100%;
  border-radius: var(--radius);
}

.section--navy figcaption {
  color: var(--on-dark-muted);
}

.quote {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.6rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.2;
  color: #fff;
}

.quote-source {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: var(--on-dark-muted);
}

/* Two audiences side by side */
.audiences {
  display: grid;
  gap: 3rem;
}

.audiences > div {
  display: flex;
  flex-direction: column;
}

.audiences .actions {
  margin-top: auto;
  padding-top: 1rem;
}

/* Photo beside a list */
.media-split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.media-split img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 40% 30%;
  border-radius: var(--radius);
}

.roles {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.roles li {
  margin: 0;
  padding-block: 1rem;
  border-top: 1px solid var(--line);
}

.roles strong {
  display: block;
  color: var(--heading);
}

.roles span {
  color: var(--text-muted);
}

/* Numbered steps */
.steps {
  display: grid;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.steps__number {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
  color: var(--heading);
}

.steps p {
  margin: 0;
  color: var(--text-muted);
}

/* News */
.news-grid {
  display: grid;
  gap: 2.5rem;
}

.news-item time {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
}

.news-item h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.2;
}

.news-item p {
  color: var(--text-muted);
}

.news-source {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  font-size: 0.95rem;
  font-weight: 700;
}

.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.news-list > li {
  display: grid;
  gap: 0.5rem 2.5rem;
  margin: 0;
  padding-block: 2rem;
  border-top: 1px solid var(--line);
}

.news-list img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
}

.news-list .news-item p:last-child {
  margin-bottom: 0;
}

.news-list time {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
}

.news-list h2 {
  font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
  line-height: 1.2;
}

/* Page header for inner pages */
.page-header {
  padding-block: clamp(2.25rem, 5vw, 4rem);
  background: var(--bg-alt);
}

.page-header__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.page-header h1 {
  max-width: 18ch;
}

.page-header .lede {
  margin-bottom: 0;
}

.page-header img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.breadcrumb li + li {
  margin-top: 0;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.4rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

/* Prose and inner-page blocks */
.prose {
  max-width: 68ch;
}

.prose > h2:not(:first-child) {
  margin-top: 2.5rem;
}

.prose > h3 {
  margin-top: 1.8rem;
}

.years {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.years li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  margin: 0;
  padding-block: 0.9rem;
  border-top: 1px solid var(--line);
}

.years strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--heading);
}

.years span {
  color: var(--text-muted);
}

.columns-2 {
  display: grid;
  gap: clamp(3rem, 7vw, 4rem) 3rem;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 1rem 1rem 1rem 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th:last-child,
td:last-child {
  padding-right: 0;
}

th {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom-color: var(--heading);
}

td.amount {
  font-weight: 700;
  color: var(--heading);
  text-align: right;
}

th.amount {
  text-align: right;
}

.map-frame {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: var(--radius);
}

@media (min-width: 720px) {
  .map-frame {
    aspect-ratio: 16 / 7;
  }
}

.contact-list p {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin: 0 0 1rem;
}

.contact-list .icon {
  margin-top: 0.2rem;
  color: var(--heading);
}

.contact-list strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 700;
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: var(--on-dark);
}

.site-footer a {
  color: #fff;
}

.site-footer a:hover {
  color: var(--gold);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
}

.footer-about img {
  width: auto;
  height: 50px;
  margin-bottom: 1.25rem;
}

.footer-about p {
  max-width: 46ch;
  margin: 0;
}

.site-footer h2 {
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  color: #fff;
}

.footer-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav li + li {
  margin-top: 0;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.footer-contact p {
  display: flex;
  gap: 0.75rem;
  margin: 0 0 0.85rem;
}

.footer-contact .icon {
  margin-top: 0.25rem;
  color: var(--on-dark-muted);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 2rem;
  padding-block: 1rem 1.5rem;
  border-top: 1px solid var(--on-dark-line);
  font-size: 0.88rem;
  color: var(--on-dark-muted);
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-bottom li + li {
  margin-top: 0;
}

.footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-dark);
}

/* Two columns from 720 px */
@media (min-width: 720px) {
  :root {
    --gutter: 28px;
  }

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

  .audiences {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .roles {
    grid-template-columns: 1fr 1fr;
    column-gap: 2.5rem;
  }

  .steps {
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 2.5rem;
  }

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

  .columns-2 {
    grid-template-columns: 1fr 1fr;
  }

  .entries--grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2.5rem;
    border-bottom: 0;
  }

  .entries--grid > li,
  .entries--grid > div {
    border-bottom: 0;
  }

  .news-list > li {
    grid-template-columns: 9rem minmax(0, 1fr);
  }

  .news-list > li > figure {
    grid-column: 2;
  }
}

/* Wide layouts from 1080 px */
@media (min-width: 1080px) {
  :root {
    --gutter: 40px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }

  .hero__photo img {
    aspect-ratio: 5 / 6;
  }

  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .split__intro {
    position: sticky;
    top: 110px;
    align-self: start;
  }

  .feature {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .media-split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .page-header__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .news-list > li {
    grid-template-columns: 9rem minmax(0, 1fr) minmax(0, 22rem);
  }

  .news-list > li > figure {
    grid-column: 3;
    grid-row: 1;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}

/* Full navigation on one line. The script after the header adds .is-inline
   whenever the links, the button and the theme switch fit beside the logo, and
   removes it as soon as they would overflow: the compact menu only appears when
   space really runs out, whatever the screen width or the text size. */
.site-header.is-inline .site-header__bar {
  flex-wrap: nowrap;
  gap: 2rem;
}

.site-header.is-inline .nav-toggle {
  display: none;
}

.site-header.is-inline .site-nav {
  display: flex;
  flex: none;
  order: 2;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
  padding: 0;
}

.site-header.is-inline .site-nav ul {
  display: flex;
  gap: 1.3rem;
}

.site-header.is-inline .site-nav li + li {
  border-top: 0;
}

.site-header.is-inline .site-nav a:not(.button) {
  position: relative;
  min-height: 44px;
  font-size: 0.98rem;
  white-space: nowrap;
}

.site-header.is-inline .site-nav a:not(.button):hover {
  color: var(--link);
}

.site-header.is-inline .site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  background: var(--heading);
}

.site-header.is-inline .site-nav .button {
  margin-top: 0;
  white-space: nowrap;
}

.site-header.is-inline .theme-row {
  margin: 0;
  padding: 0;
  border-top: 0;
}

.site-header.is-inline .theme-row__label {
  display: none;
}

.site-header.is-inline .brand img {
  height: 56px;
}

/* Second level: tighter spacing, smaller logo and button. */
.site-header.is-tight .site-nav,
.site-header.is-tight .site-nav ul {
  gap: 0.9rem;
}

.site-header.is-tight .site-nav a:not(.button) {
  font-size: 0.94rem;
}

.site-header.is-tight .site-nav .button {
  padding-inline: 1rem;
}

.site-header.is-tight .brand img {
  height: 46px;
}

/* Third level, last before the menu button: compact logo and button. Every
   control keeps its 44 px touch target. */
.site-header.is-tighter .site-nav,
.site-header.is-tighter .site-nav ul {
  gap: 0.7rem;
}

.site-header.is-tighter .site-nav a:not(.button) {
  font-size: 0.9rem;
}

.site-header.is-tighter .site-nav .button {
  min-height: 44px;
  padding-inline: 0.8rem;
  font-size: 0.9rem;
}

.site-header.is-tighter .brand img {
  height: 40px;
}

@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .theme-row,
  .actions {
    display: none;
  }
}
