/* =====================================================================
   Buttons
   ===================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  margin: 0.4rem var(--space-xs);
  padding: var(--space-sm) var(--space-xl);
  border: var(--border-button) solid transparent;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--letter-spacing-button);
  text-align: center;
  cursor: pointer;
  transition: all var(--duration-base) var(--easing);
}

.btn--sm {
  padding: 0.4rem 1.5rem;
  line-height: 1;
}

.btn--lg {
  font-size: var(--font-size-subtitle);
}

.btn--primary {
  background-color: var(--color-fill);
  border-color: var(--color-fill);
  color: var(--color-text-inverse);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: var(--color-fill-hover);
  border-color: var(--color-fill-hover);
  box-shadow: var(--shadow-button);
  color: var(--color-text-inverse);
}

.btn--ghost {
  background-color: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-text);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background-color: var(--color-surface-muted);
  color: var(--color-text);
}

.btn--uppercase {
  text-transform: uppercase;
}

.btn-row {
  margin-inline: -0.25rem;
  text-align: center;
}

/* =====================================================================
   Site header / navigation
   ===================================================================== */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: var(--z-navbar);
  background-color: var(--color-surface);
}

.nav {
  display: flex;
  align-items: center;
  min-height: 77px;
  padding-block: var(--space-2xs);
  transition: min-height var(--duration-fast) var(--easing);
}

.nav__panel {
  min-width: 0;
}

.nav__brand {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  margin-right: auto;
  margin-left: var(--space-sm);
  color: var(--color-text-strong);
}

.nav__brand:hover,
.nav__brand:focus-visible {
  color: var(--color-text-strong);
}

.nav__logo {
  width: auto;
  height: 3.8rem;
  margin-right: var(--space-xs);
  transition: height var(--duration-base) var(--easing);
}

.nav__title {
  padding-right: var(--space-md);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
}

/* 44x44 pointer target (WCAG 2.5.8); the offsets keep the 31x18 bar stack
   at the exact position the design places it. */
.nav__toggle {
  position: absolute;
  top: calc(1.5rem - 13px);
  right: calc(var(--space-sm) - 6.5px);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav__bars {
  position: relative;
  display: block;
  width: 31px;
  height: 18px;
}

.nav__bars span {
  position: absolute;
  right: 0;
  width: 30px;
  height: 2px;
  background-color: var(--color-text);
  transition: all var(--duration-fast) var(--easing);
}

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

.nav__bars span:nth-child(2),
.nav__bars span:nth-child(3) {
  top: 8px;
  transition-duration: 0.15s;
}

.nav__bars span:nth-child(4) {
  top: 16px;
}

.nav__toggle[aria-expanded="true"] .nav__bars span:nth-child(1),
.nav__toggle[aria-expanded="true"] .nav__bars span:nth-child(4) {
  top: 8px;
  right: 50%;
  width: 0;
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] .nav__bars span:nth-child(2) {
  transform: rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__bars span:nth-child(3) {
  transform: rotate(-45deg);
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0.65rem;
  padding: 0.7rem 0;
  color: var(--color-text-strong);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  transition: color var(--duration-fast) var(--easing);
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--color-nav-hover);
}

.nav__cta {
  flex-shrink: 0;
}

/* Theme toggle (shared pattern with the SoCraTes Family site). */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  margin: 0.4rem 0.8rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius-circle);
  background: none;
  color: var(--color-text-strong);
  cursor: pointer;
  transition: color var(--duration-fast) var(--easing);
}

.theme-toggle:hover,
.theme-toggle:focus {
  color: var(--color-nav-hover);
}

.theme-toggle__icon {
  width: 1.4rem;
  height: 1.4rem;
  fill: currentcolor;
}

/* Moon shown in light mode (switches to dark), sun in dark mode. */
.theme-toggle__icon--sun {
  display: none;
}

[data-theme="dark"] .theme-toggle__icon--sun {
  display: block;
}

[data-theme="dark"] .theme-toggle__icon--moon {
  display: none;
}

/* Scrim behind the open mobile menu. */
.nav-scrim {
  position: fixed;
  inset: var(--navbar-height) 0 0;
  z-index: var(--z-menu-backdrop);
  background-color: var(--color-scrim-soft);
  border: 0;
  cursor: pointer;
}

/* Lock background scrolling while the mobile menu is open. */
.has-open-menu {
  overflow: hidden;
}

/* --- Desktop navigation (>= 992px) --- */
@media (min-width: 992px) {
  .nav__brand {
    margin-left: var(--space-2xl);
  }

  .nav__logo {
    height: 4rem;
  }

  .nav__panel-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: var(--space-2xl);
  }

  .nav__toggle,
  .nav-scrim {
    display: none;
  }

  /* Compact state once the page is scrolled. */
  .site-header.is-compact .nav {
    min-height: 60px;
  }

  .site-header.is-compact .nav__logo {
    height: 3rem;
  }
}

/* Tighten the horizontal rhythm on narrower desktops so the bar stays one row. */
@media (min-width: 992px) and (max-width: 1399.98px) {
  .nav__brand {
    margin-left: var(--space-sm);
  }

  .nav__panel-inner {
    padding-right: var(--space-sm);
  }

  .nav__link {
    margin: 0 0.45rem;
  }

  .nav__title {
    padding-right: var(--space-sm);
  }
}

/* Below 1200px the brand wraps to two lines, which keeps the bar a single row. */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .nav__title {
    max-width: 14rem;
  }

  .nav__link {
    margin: 0 0.35rem;
  }
}

/* --- Mobile navigation (< 992px) --- */
@media (max-width: 991.98px) {
  .nav {
    flex-direction: column;
    align-items: stretch;
  }

  .nav__brand {
    margin-right: 0;
    /* Clears the hamburger + theme toggle (two 44px buttons) so a long
       title wraps instead of running underneath them. */
    padding-right: 6.5rem;
  }

  /* The toggle lives in the bar itself, next to the hamburger — it must
     stay reachable while the menu is closed. */
  .nav > .theme-toggle {
    position: absolute;
    top: calc(1.5rem - 13px);
    right: calc(var(--space-sm) - 6.5px + 44px);
    width: 44px;
    height: 44px;
    margin: 0;
  }

  .nav__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--duration-fast) ease-out;
  }

  .nav__panel-inner {
    overflow: hidden;
    text-align: center;
  }

  .nav__panel.is-open {
    grid-template-rows: 1fr;
  }

  .nav__list {
    display: block;
    padding-top: var(--space-2xs);
  }

  .nav__link {
    display: block;
  }

  .nav__cta {
    margin-bottom: var(--space-sm);
  }
}

/* Without JavaScript the menu cannot be toggled, so show it permanently. */
@media (scripting: none) and (max-width: 991.98px) {
  .nav__panel {
    grid-template-rows: 1fr;
  }

  .nav__toggle {
    display: none;
  }
}

/* =====================================================================
   Hero
   ===================================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  /* Padding equals the fixed header height so tall content can never slide
     underneath it. Symmetric, so the centred position is unchanged. */
  padding-block: var(--navbar-height);
  overflow: hidden;
  background-color: var(--color-hero-fallback);
  color: var(--color-text-inverse);
  text-align: center;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: transform;
}

/* The backdrop photo is a real <img> so it can ship AVIF/WebP variants and
   act as the preloadable LCP element; cover keeps the old background-size
   behaviour. */
.hero__backdrop picture,
.hero__backdrop-image {
  width: 100%;
  height: 100%;
}

.hero__backdrop-image {
  max-width: none;
  object-fit: cover;
  object-position: 50% 50%;
}

.hero__content {
  position: relative;
  z-index: 1;
  margin-inline: auto;
}

.hero__title {
  margin-bottom: 0.5rem;
  padding-bottom: var(--space-sm);
  font-size: var(--font-size-hero);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-title);
}

.hero__lead {
  /* The extra bottom margin reproduces the blank line the original left here. */
  margin-bottom: 1.3em;
  padding-bottom: 1.5rem;
  font-size: var(--font-size-title);
  font-weight: var(--font-weight-light);
  line-height: var(--line-height-subtitle);
}

.hero__note {
  margin-top: var(--space-sm);
  font-size: var(--font-size-subtitle);
  font-weight: var(--font-weight-bold);
}

.hero__scroll-hint {
  position: absolute;
  bottom: 45px;
  left: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: var(--color-scrim);
  border-radius: var(--radius-circle);
  color: var(--color-text-inverse);
  transform: translateX(-50%);
  animation: hero-bob 1.7s var(--easing) infinite;
}

.hero__scroll-hint:hover,
.hero__scroll-hint:focus-visible {
  color: var(--color-text-inverse);
}

.hero__scroll-hint svg {
  width: 2rem;
  height: 2rem;
}

@keyframes hero-bob {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@media (min-width: 768px) {
  /* Wide enough to clear the scroll hint (60px tall, 45px from the bottom)
     so the call-to-action can never sit on top of it. */
  .hero {
    padding-block: 7rem;
  }

  .hero__content {
    max-width: 83.3333%;
  }

  .hero__title {
    line-height: 1.2;
  }
}

@media (max-width: 767.98px) {
  .hero__scroll-hint {
    display: none;
  }

  .hero__title,
  .hero__lead {
    line-height: 1.4;
  }
}

/* =====================================================================
   Pull quote
   ===================================================================== */

.pull-quote {
  text-align: center;
}

.pull-quote__rule {
  width: 42%;
  height: 2px;
  margin-inline: auto;
  background-color: var(--color-primary);
  border: 0;
}

.pull-quote__text {
  padding-block: var(--space-md);
  color: var(--color-text);
  font-size: var(--font-size-title);
  font-weight: var(--font-weight-light);
  line-height: 1.2;
}

/* =====================================================================
   Sponsor slider
   ===================================================================== */

.sponsors__header {
  margin-bottom: var(--space-xl);
}

.sponsors__viewport {
  overflow: hidden;
}

.sponsors__track {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sponsors__slide {
  display: flex;
  flex: 0 0 100%;
  align-items: center;
  justify-content: center;
  padding-inline: var(--container-gutter);
}

/* Size comes from each img's width/height attributes (the SVGs have no
   intrinsic pixel size); the cap only guards against viewport overflow. */
.sponsors__logo {
  max-width: 100%;
  height: auto;
  max-height: 150px;
}

/* Theme-specific artwork: the light theme shows the dark logo and vice versa. */
.sponsors__logo--dark {
  display: none;
}

[data-theme="dark"] .sponsors__logo--light {
  display: none;
}

[data-theme="dark"] .sponsors__logo--dark {
  display: block;
}

/* Dark-on-transparent logos without a white variant stay legible in dark mode. */
[data-theme="dark"] .sponsors__logo--invert {
  filter: invert(1) hue-rotate(180deg);
}

.sponsors__controls {
  display: flex;
  justify-content: center;
  margin-top: var(--space-md);
  gap: 20px;
}

.sponsors__control {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background-color: var(--color-control-solid);
  border: 0;
  border-radius: var(--radius-circle);
  /* Surface color always contrasts with the control disc in both themes. */
  color: var(--color-surface);
  opacity: 0.5;
  cursor: pointer;
  transition: opacity var(--duration-fast) var(--easing);
}

.sponsors__control:hover,
.sponsors__control:focus-visible {
  opacity: 0.9;
}

.sponsors__control svg {
  width: 1rem;
  height: 1rem;
}

@media (min-width: 992px) {
  .sponsors__slide {
    /* Four per view; the JS step size follows this automatically. */
    flex-basis: 25%;
  }
}

/* Without JavaScript the slider cannot move, so lay the logos out as a grid. */
@media (scripting: none) {
  .sponsors__viewport {
    overflow: visible;
  }

  .sponsors__track {
    flex-wrap: wrap;
    justify-content: center;
  }

  .sponsors__controls {
    display: none;
  }
}

/* =====================================================================
   Timeline
   ===================================================================== */

.timeline {
  margin: var(--space-md) 0 0;
  padding: 0;
  list-style: none;
  content-visibility: auto;
  contain-intrinsic-size: auto 830px;
}

.timeline__item {
  position: relative;
  display: grid;
  margin-bottom: 50px;
}

.timeline__item::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  width: 2px;
  height: calc(100% + 4rem);
  background-color: var(--color-surface);
}

.timeline__item:last-child::before {
  display: none;
}

.timeline__marker {
  position: absolute;
  top: 20px;
  left: 0;
  width: 20px;
  height: 20px;
  background-color: var(--color-surface);
  border-radius: var(--radius-circle);
  transform: translateX(-50%);
}

.timeline__date,
.timeline__body {
  padding: var(--space-md) var(--space-lg);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--duration-slow) var(--easing);
}

.timeline__item:hover .timeline__date,
.timeline__item:hover .timeline__body {
  box-shadow: var(--shadow-card);
}

.timeline__date {
  /* Accent top border ties the card to the explainer's contrast cards. */
  border-top: 4px solid var(--color-primary);
  margin-bottom: var(--space-sm);
  font-size: var(--font-size-subtitle);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-base);
  text-align: center;
}

.timeline__title {
  padding-bottom: var(--space-sm);
  font-size: var(--font-size-subtitle);
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
  text-align: center;
}

.timeline__text {
  margin-bottom: 0;
  text-align: center;
}

@media (min-width: 768px) {
  .timeline__item {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .timeline__item::before,
  .timeline__marker {
    left: 50%;
  }

  .timeline__item::before {
    transform: translateX(-1px);
  }

  .timeline__date {
    display: inline-block;
    margin-bottom: 0;
    text-align: left;
  }

  .timeline__title,
  .timeline__text {
    text-align: left;
  }

  /* Odd items: date on the right, description on the left. */
  .timeline__item:nth-child(odd) .timeline__date-panel {
    grid-column: 2;
    justify-self: start;
    padding-left: var(--space-md);
  }

  .timeline__item:nth-child(odd) .timeline__body {
    grid-column: 1;
    grid-row: 1;
    margin-right: var(--space-md);
    text-align: right;
  }

  .timeline__item:nth-child(odd) .timeline__title,
  .timeline__item:nth-child(odd) .timeline__text {
    text-align: right;
  }

  /* Even items: date on the left, description on the right. */
  .timeline__item:nth-child(even) .timeline__date-panel {
    grid-column: 1;
    justify-self: end;
    padding-right: var(--space-md);
    text-align: right;
  }

  .timeline__item:nth-child(even) .timeline__body {
    grid-column: 2;
    grid-row: 1;
    margin-left: var(--space-md);
  }
}

/* =====================================================================
   Gallery
   ===================================================================== */

/* content-visibility skips layout/paint until the section nears the
   viewport; the intrinsic size hint keeps the scrollbar stable. */
.gallery {
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: auto 450px;
}

.gallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery__item {
  padding: 0.8rem;
}

.gallery__link {
  position: relative;
  display: block;
  background-color: var(--color-surface);
}

.gallery__link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--gradient-tile);
  opacity: 0;
  transition: opacity var(--duration-fast) var(--easing);
}

.gallery__link:hover::before,
.gallery__link:focus-visible::before {
  opacity: 0.7;
}

.gallery__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 3rem;
  height: 3rem;
  color: var(--color-text-inverse);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity var(--duration-fast) var(--easing);
}

.gallery__link:hover .gallery__icon,
.gallery__link:focus-visible .gallery__icon {
  opacity: 1;
}

.gallery__image {
  width: 100%;
}

@media (min-width: 401px) {
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 993px) {
  .gallery__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .gallery__item {
    padding: var(--space-sm);
  }
}

/* =====================================================================
   Lightbox
   ===================================================================== */

.lightbox {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  overflow: hidden;
}

.lightbox::backdrop {
  background-color: var(--color-backdrop);
}

.lightbox__figure {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
}

.lightbox__image {
  max-width: 100%;
  max-height: 100vh;
  object-fit: contain;
}

.lightbox__control {
  position: fixed;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  padding: 0;
  background-color: var(--color-control);
  border: 0;
  border-radius: var(--radius-circle);
  color: var(--color-text-inverse);
  opacity: 0.5;
  cursor: pointer;
  transition: opacity var(--duration-base) var(--easing);
}

.lightbox__control:hover,
.lightbox__control:focus-visible {
  opacity: 1;
}

.lightbox__control svg {
  width: 35px;
  height: 35px;
}

.lightbox__control--prev,
.lightbox__control--next {
  top: 50%;
  margin-top: -35px;
}

.lightbox__control--prev {
  left: var(--space-lg);
}

.lightbox__control--next {
  right: var(--space-lg);
}

.lightbox__control--close {
  top: var(--space-lg);
  right: var(--space-lg);
}

@media (max-width: 991.98px) {
  .lightbox__control--prev,
  .lightbox__control--next {
    top: auto;
    bottom: var(--space-lg);
    margin-top: 0;
  }
}

/* =====================================================================
   FAQ accordion
   ===================================================================== */

.faq {
  margin: 0;
  content-visibility: auto;
  contain-intrinsic-size: auto 400px;
}

.faq__item + .faq__item {
  margin-top: -1px;
}

.faq__question {
  padding: 1.3rem var(--space-md);
  background-color: var(--color-surface-header);
  border: 1px solid var(--color-border);
  color: var(--color-text-strong);
  cursor: pointer;
  list-style: none;
  transition: background-color var(--duration-fast) var(--easing);
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question:hover {
  background-color: var(--color-surface-muted);
}

.faq__question-title {
  display: flex;
  align-items: center;
  font-size: var(--font-size-subtitle);
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
}

.faq__icon {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  margin-right: var(--space-sm);
  transition: transform var(--duration-base) var(--easing);
}

.faq__item[open] > .faq__question .faq__icon {
  transform: rotate(180deg);
}

.faq__panel {
  display: grid;
  grid-template-rows: 1fr;
}

.faq__panel-inner {
  overflow: hidden;
}

.faq__answer {
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-top: none;
  color: var(--color-text-muted);
}

.faq__answer p:last-child {
  margin-bottom: 0;
}

/* Animated open/close is driven by js/components/accordion.js. */
.faq__item.is-animating .faq__panel {
  transition: grid-template-rows var(--duration-base) var(--easing);
}

.faq__item.is-collapsed .faq__panel {
  grid-template-rows: 0fr;
}

/* =====================================================================
   Numbered benefit list
   ===================================================================== */

.perk-list {
  margin: 0;
  padding: 0;
  color: var(--color-text-muted);
  line-height: var(--line-height-text);
  counter-reset: perk;
  list-style: none;
  display: grid;
  gap: var(--space-sm);
}

.perk-list li {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 72px;
  padding: var(--space-sm) var(--space-sm) var(--space-sm) 72px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
}

.perk-list li::before {
  counter-increment: perk;
  content: counter(perk);
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  width: 40px;
  height: 40px;
  background-color: var(--color-fill);
  color: var(--color-text-inverse);
  font-weight: var(--font-weight-regular);
  line-height: 40px;
  text-align: center;
}

/* =====================================================================
   Unconference explainer: do/don't contrast cards
   ===================================================================== */

.contrast {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: var(--space-md);
  margin: var(--space-md) 0 0;
  padding: 0;
  list-style: none;
}

.contrast__card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-text-muted);
  box-shadow: var(--shadow-card);
  padding: var(--space-md);
}

.contrast__card--yes {
  border-top-color: var(--color-primary);
}

.contrast__title {
  margin: 0 0 var(--space-2xs);
  font-size: var(--font-size-subtitle);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-subtitle);
}

.contrast__text {
  margin: 0;
  color: var(--color-text-muted);
  line-height: var(--line-height-text);
}

/* =====================================================================
   Unconference explainer: numbered principle cards
   ===================================================================== */

.principles {
  margin: var(--space-md) 0 0;
  padding: 0;
  counter-reset: principle;
  list-style: none;
  display: grid;
  gap: var(--space-sm);
}

.principles li {
  counter-increment: principle;
  position: relative;
  padding: var(--space-sm) var(--space-sm) var(--space-sm) 72px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
}

.principles li::before {
  content: counter(principle);
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  width: 40px;
  height: 40px;
  background-color: var(--color-fill);
  color: var(--color-text-inverse);
  line-height: 40px;
  text-align: center;
}

.principles h3 {
  margin: 0 0 var(--space-2xs);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-subtitle);
}

.principles p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: var(--line-height-text);
}

/* =====================================================================
   Map
   ===================================================================== */

.map {
  position: relative;
  height: 25rem;
  background-color: var(--color-surface-muted);
}

.map__frame,
.map__placeholder {
  width: 100%;
  height: 100%;
  border: 0;
}

.map__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);
  text-align: center;
  gap: var(--space-2xs);
}

.map__placeholder p {
  max-width: 40rem;
  color: var(--color-text-muted);
}

/* =====================================================================
   Site footer
   ===================================================================== */

.site-footer {
  padding-block: var(--section-padding-md);
  background-color: var(--color-surface);
  color: var(--color-text);
}

.footer__columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.footer__heading {
  padding-bottom: var(--space-sm);
  color: var(--color-text);
  font-size: var(--font-size-footer-heading);
  font-weight: var(--font-weight-medium);
  line-height: 1;
}

.footer__text {
  line-height: var(--line-height-text);
}

.footer__text a {
  color: var(--color-link);
}

.footer__logo {
  width: auto;
  height: 6rem;
}

.footer__rule {
  border-top-color: var(--color-surface);
  opacity: 0.05;
}

.footer__legal {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: var(--space-sm);
}

.footer__social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__social li {
  margin: 0 0.4rem;
}

.footer__social a {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--color-text);
  opacity: 0.5;
  transition: opacity var(--duration-fast) linear;
}

.footer__social a:hover,
.footer__social a:focus-visible {
  color: var(--color-text);
  opacity: 1;
}

.footer__social svg {
  width: 1.3rem;
  height: 1.3rem;
}

@media (max-width: 767.98px) {
  .footer__columns,
  .footer__legal {
    text-align: center;
  }
}

@media (min-width: 768px) {
  .footer__columns {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }

  .footer__columns > * {
    padding-inline: var(--container-gutter);
  }

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

  .footer__social {
    justify-content: flex-end;
  }
}

/* =====================================================================
   Cookie consent
   ===================================================================== */

.consent {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: var(--z-consent);
  padding: var(--space-sm) var(--container-gutter);
  background-color: var(--color-surface);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
  color: var(--color-text);
  font-size: var(--font-size-fineprint);
  text-align: center;
}

.consent[hidden] {
  display: none;
}

.consent__text {
  margin-bottom: var(--space-2xs);
}

.consent__text a {
  color: var(--color-text);
  text-decoration: underline;
}

.consent__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2xs);
}

.consent .btn {
  margin: 0;
  font-size: var(--font-size-fineprint);
}

/* =====================================================================
   Inline links in running text
   ===================================================================== */

.prose a,
.section__subtitle a,
.pull-quote__text a,
.faq__answer a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.prose a:hover,
.section__subtitle a:hover,
.pull-quote__text a:hover,
.faq__answer a:hover {
  text-decoration-thickness: 2px;
}

/* =====================================================================
   Forced colors (Windows High Contrast)
   ===================================================================== */

/* Author background colours are replaced by Canvas, which would erase the
   hamburger bars and the round control discs entirely. */
@media (forced-colors: active) {
  .nav__bars span {
    forced-color-adjust: none;
    background-color: ButtonText;
  }

  .sponsors__control,
  .lightbox__control {
    border: 1px solid ButtonText;
    opacity: 1;
  }

  .timeline__marker {
    border: 2px solid CanvasText;
  }
}

