/* COSMAS – site styles. Mobile first; no external resources. */

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
}

:root {
  --green: #398a2e;        /* logo green – large type and accents */
  --green-strong: #2f7a26; /* links, buttons (5.3:1 on white) */
  --green-dark: #1f5418;
  --green-tint: #eef5ec;
  --ink: #1f2a1d;
  --ink-soft: #4a5547;
  --line: #dde4da;
  --paper: #ffffff;
  --paper-warm: #f7f8f5;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 0.5rem;
  --gutter: 1rem;
  --wide: 72rem;
  --narrow: 44rem;
}

@media (min-width: 48rem) {
  :root { --gutter: 2rem; }
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 7.5rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a { color: var(--green-strong); text-underline-offset: 0.15em; }
a:hover { color: var(--green-dark); }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}

.container {
  width: 100%;
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: #fff;
}
.skip-link:focus { top: 1rem; }

/* --- Buttons & links ------------------------------------------------------ */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.7em 1.3em;
  border: 2px solid var(--green-strong);
  border-radius: 999px;
  background: var(--green-strong);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.button:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }

.button--small { padding: 0.5em 1em; font-size: 1rem; }
.button--ghost { background: transparent; color: var(--green-strong); }
.button--ghost:hover { background: var(--green-tint); color: var(--green-dark); }
.button--light { background: #fff; border-color: #fff; color: var(--green-dark); }
.button--light:hover { background: var(--green-tint); border-color: var(--green-tint); color: var(--green-dark); }

.link-arrow,
.link-back {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
}
.link-arrow::after { content: " →"; }
.link-back::before { content: "← "; }
.link-back { display: inline-block; margin-bottom: 1rem; font-size: 1rem; }

/* --- Header & navigation -------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4.5rem;
}

.site-header__logo { margin-right: auto; flex-shrink: 0; }
.site-header__logo img { width: 9.5rem; height: auto; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 1.4rem;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle__icon { position: relative; }
.nav-toggle__icon::before,
.nav-toggle__icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle__icon::before { top: -6px; }
.nav-toggle__icon::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 0.5rem var(--gutter) 1.5rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 24px -12px rgb(0 0 0 / 0.15);
}
.site-nav.is-open { display: block; }

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

.site-nav__link {
  display: block;
  padding: 0.6rem 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
}
.site-nav__link:hover,
.site-nav__link[aria-current] { color: var(--green-strong); }

.site-nav__sub { padding-left: 1rem !important; border-left: 2px solid var(--green-tint); }
.site-nav__sub .site-nav__link { font-size: 1.15rem; padding: 0.35rem 0; }

/* "Unterstützen" and the Portuguese button for colleagues in Cabo Verde, side by side */
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.header-actions .button { white-space: nowrap; }

/* the donate button lives in the header bar on small screens */
.site-nav__item--support { display: none; }

.lang-switch { display: flex; gap: 0.25rem; margin-top: 1rem !important; }
.lang-switch a {
  display: block;
  padding: 0.3rem 0.55rem;
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.lang-switch a:hover { color: var(--green-strong); }
.lang-switch a[aria-current] { background: var(--green-tint); color: var(--green-dark); }

/* phones and tablets: both buttons in a second row under logo and menu */
@media (max-width: 61.99rem) {
  .site-header--request .site-header__inner { flex-wrap: wrap; row-gap: 0.5rem; min-height: 0; padding-top: 0.75rem; padding-bottom: 0.75rem; }
  .site-header--request .site-header__donate { order: 1; flex-basis: 100%; max-width: 30rem; }
  .site-header--request .site-header__donate .button { flex: 1; justify-content: center; }
}

/* narrow phones: icon-only menu button so the donate button fits */
@media (max-width: 26rem) {
  .nav-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .site-header__inner { gap: 0.5rem; }
  .site-header__logo img { width: 8.5rem; }
}

@media (min-width: 62rem) {
  .site-header__inner { min-height: 5.5rem; }
  .site-header__logo img { width: 12rem; }
  .nav-toggle,
  .site-header__donate { display: none; }

  .site-nav {
    display: flex !important;
    position: static;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: none;
  }

  .site-nav__list { display: flex; align-items: center; gap: 1.75rem; }
  .site-nav__link { font-size: 1.25rem; padding: 0.5rem 0; white-space: nowrap; }
  .site-nav__item--support { display: block; }

  .site-nav__item--parent { position: relative; }
  .site-nav__item--parent > .site-nav__link::after { content: " ▾"; font-size: 0.8em; }
  .site-nav__sub {
    display: none;
    position: absolute;
    top: 100%;
    left: -1rem;
    min-width: 12rem;
    padding: 0.5rem 1rem !important;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 24px -12px rgb(0 0 0 / 0.2);
  }
  .site-nav__item--parent:hover .site-nav__sub,
  .site-nav__item--parent:focus-within .site-nav__sub { display: block; }

  .lang-switch { margin: 0 !important; padding-left: 1.25rem !important; border-left: 1px solid var(--line); }
}

/* small desktops: two buttons next to the menu, so tighten the spacing */
@media (min-width: 62rem) and (max-width: 74.99rem) {
  .site-header--request .site-header__logo img { width: 10rem; }
  .site-header--request .site-nav { gap: 1rem; }
  .site-header--request .site-nav__list { gap: 1.1rem; }
  .site-header--request .site-nav__link { font-size: 1.15rem; }
  .site-header--request .lang-switch { padding-left: 0.75rem !important; }
}

/* --- Home ----------------------------------------------------------------- */

.news { padding-top: 1.25rem; }
.news__grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}
.news__item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  background: var(--green-tint);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.15s;
}
.news__item:hover { background: #e2eedf; color: var(--ink); }
.news__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.news__kicker { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.news__title { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; line-height: 1.15; margin: 0.1rem 0 0.2rem; }
.news__text { font-size: 0.95rem; color: var(--ink-soft); }
.news__arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: #fff;
  color: var(--green-strong);
  transition: transform 0.15s;
}
.news__item:hover .news__arrow { transform: translateX(3px); }
.news__more { margin-top: 0.5rem; text-align: right; font-size: 0.9rem; }
.news__more .link-arrow { font-size: 1rem; }
@media (max-width: 39.99rem) {
  .news__text { display: none; }
  .news__arrow { width: 2.25rem; height: 2.25rem; }
}

.hero { padding: 2.5rem 0 3rem; }
.hero__inner { display: grid; gap: 2rem; align-items: center; }
.hero__title { font-size: clamp(2.4rem, 7vw, 3.75rem); color: var(--green); }
.hero__lead { font-size: 1.2rem; color: var(--ink-soft); }
.hero__lead p { margin: 0 0 1.5rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__image img { width: 100%; height: auto; border-radius: calc(var(--radius) * 2); }

@media (min-width: 60rem) {
  .hero { padding: 4rem 0 4.5rem; }
  .hero__inner { grid-template-columns: 1.1fr 1fr; gap: 4rem; }
}

.section { padding: 3rem 0; background: var(--paper-warm); }
.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1.5rem;
}
.section__title { font-size: 2.2rem; margin: 0; }

.cta { padding: 3rem 0; background: var(--green-strong); color: #fff; }
.cta__inner { display: grid; gap: 1.5rem; align-items: center; }
.cta__title { font-size: 2.2rem; }
.cta__text p { margin: 0; max-width: 40rem; font-size: 1.15rem; }
@media (min-width: 48rem) {
  .cta__inner { grid-template-columns: 1fr auto; gap: 3rem; }
}

/* --- Featured report (home) -------------------------------------------- */

.feature {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 2);
  background: var(--paper);
}
@media (min-width: 52rem) { .feature { grid-template-columns: 1.1fr 1fr; } }
.feature__image img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.feature__body { display: flex; flex-direction: column; align-items: flex-start; padding: 1.5rem 1.5rem 1.75rem; }
@media (min-width: 52rem) { .feature__body { justify-content: center; padding: 2.5rem; } }
.feature__title { font-size: clamp(1.75rem, 3.5vw, 2.4rem); margin: 0 0 0.75rem; }
.feature__title a { color: var(--ink); text-decoration: none; }
.feature__title a:hover { color: var(--green-strong); }
.feature__text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
}
@media (min-width: 52rem) { .feature__text { -webkit-line-clamp: 6; line-clamp: 6; } }

/* --- Cards ---------------------------------------------------------------- */

.cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
}

.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.5);
  background: var(--paper);
  transition: box-shadow 0.15s, transform 0.15s;
}
.card:hover { box-shadow: 0 12px 28px -14px rgb(0 0 0 / 0.25); transform: translateY(-2px); }
.card__link { display: block; height: 100%; color: inherit; text-decoration: none; }
.card__image { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.card__image--empty { background: var(--green-tint); }
.card__body { padding: 1rem 1.25rem 1.25rem; }
.card__date { margin: 0 0 0.25rem; color: var(--ink-soft); font-size: 0.9rem; }
.card__title { font-size: 1.5rem; margin: 0 0 0.5rem; color: var(--ink); }
.card__link:hover .card__title { color: var(--green-strong); }
.card__text { margin: 0; color: var(--ink-soft); font-size: 0.975rem; }

/* --- Pages ---------------------------------------------------------------- */

.page { padding-block: 2.5rem 4rem; }
.page--narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }
.page__header { margin-bottom: 2rem; }
.page__header--narrow { max-width: var(--narrow); }
.page__title { font-size: clamp(2.3rem, 6vw, 3.25rem); color: var(--green); margin: 0; }
.page__meta { margin: 0 0 0.25rem; color: var(--ink-soft); }
.page__intro { margin-top: 1rem; font-size: 1.15rem; color: var(--ink-soft); }
.page__intro p { margin: 0; }

.notice {
  margin: 1rem 0 0;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius);
  background: var(--green-tint);
  font-size: 0.95rem;
}

.prose :where(p, ul, ol) { margin-block: 0; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 1.9rem; margin: 1.6em 0 0.4em; }
.prose h3 { font-size: 1.5rem; margin: 1.4em 0 0.3em; }
.prose blockquote {
  margin: 1.5em 0;
  padding-left: 1.25rem;
  border-left: 4px solid var(--green);
  font-size: 1.15rem;
  color: var(--ink-soft);
}
.prose :is(ul, ol):not(.gallery__grid) > li + li { margin-top: 0.4em; }

.figure { margin: 1.5em 0; }
.figure a:hover img { opacity: 0.85; }
.figure img {
  /* small like a gallery photo; the lightbox shows it big */
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 20rem;
  border-radius: var(--radius);
}
@media (max-width: 39.99rem) {
  .figure img { max-height: 13rem; }
}
figcaption { margin-top: 0.5rem; color: var(--ink-soft); font-size: 0.9rem; }

.gallery { margin: 1.5em 0; }
.gallery__grid {
  /* justified rows: photos keep their proportions and share a row height */
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.gallery__grid li {
  flex: var(--ratio) 1 calc(var(--ratio) * 9rem);
  /* a photo alone in the last row must not grow into a giant */
  max-width: calc(var(--ratio) * 20rem);
}
@media (max-width: 39.99rem) {
  .gallery__grid li { flex-basis: calc(var(--ratio) * 5.5rem); }
}
.gallery__grid img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--radius) / 2); }
.gallery__grid a { display: block; height: 100%; }
.gallery__grid a:hover img { opacity: 0.85; }

.pager {
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
@media (min-width: 40rem) { .pager { grid-template-columns: 1fr 1fr; } }
.pager__link { display: block; text-decoration: none; }
.pager__link--next { text-align: right; grid-column: 2; }
.pager__label { display: block; color: var(--ink-soft); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.pager__title { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; }
@media (max-width: 39.99rem) { .pager__link--next { grid-column: auto; } }

/* --- Reports overview ----------------------------------------------------- */

.year-group + .year-group { margin-top: 3rem; }
.year-group__title {
  font-size: 2rem;
  color: var(--ink-soft);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--green-tint);
}

/* --- About ---------------------------------------------------------------- */

.mission {
  margin-bottom: 2.5rem;
  padding: 1.5rem 1.75rem;
  border-radius: calc(var(--radius) * 2);
  background: var(--green-tint);
  color: var(--green-dark);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.3;
}
.mission p { margin: 0; }

/* first photo full width, the rest two per row */
.photo-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
}
.photo-band li:first-child { grid-column: 1 / -1; }
.photo-band a { display: block; height: 100%; }
.photo-band img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.photo-band li:first-child img { aspect-ratio: auto; }
.photo-band a:hover img { opacity: 0.9; }

.subpages { display: grid; gap: 1rem; margin-top: 3rem; }
@media (min-width: 40rem) { .subpages { grid-template-columns: 1fr 1fr; } }
.subpage {
  display: block;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.5);
  color: inherit;
  text-decoration: none;
}
.subpage:hover { border-color: var(--green); }
.subpage__title { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--green-strong); }
.subpage__title::after { content: " →"; }
.subpage__text { color: var(--ink-soft); font-size: 0.95rem; }

/* --- Team ----------------------------------------------------------------- */

.team {
  display: grid;
  gap: 2rem 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
.team__member { text-align: center; }
.team__photo {
  width: 10rem;
  height: 10rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--green-tint);
}
.team__photo--empty { background: var(--green-tint); }
.team__name { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1.2; }
.team__role { margin: 0.25rem 0 0; color: var(--green-strong); font-size: 0.95rem; }

/* --- Chronicle ------------------------------------------------------------ */

.year-nav { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 2rem; }
.year-nav a {
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius);
  background: var(--paper-warm);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.9rem;
  text-decoration: none;
}
.year-nav a:hover { border-color: var(--green); color: var(--green-strong); }

.timeline__year { border-top: 1px solid var(--line); }
.timeline__year:last-child { border-bottom: 1px solid var(--line); }
.timeline__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--green);
  cursor: pointer;
  list-style: none;
}
.timeline__summary::-webkit-details-marker { display: none; }
.timeline__summary::after { content: "+"; font-size: 1.6rem; color: var(--ink-soft); }
.timeline__year[open] .timeline__summary::after { content: "–"; }
.timeline__body { padding-bottom: 1.5rem; }
.timeline .gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); }
.timeline .gallery__grid img { aspect-ratio: 1; }

/* --- Support -------------------------------------------------------------- */

.support { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 56rem) { .support { grid-template-columns: minmax(0, 1fr) 22rem; gap: 4rem; } }
.support__text { max-width: var(--narrow); }

.account {
  padding: 1.5rem;
  border-radius: calc(var(--radius) * 2);
  background: var(--green-tint);
}
@media (min-width: 56rem) { .account { position: sticky; top: 7rem; } }
.account__title { font-size: 1.7rem; color: var(--green-dark); }
.account__details { margin: 0; }
.account__details dt { margin-top: 0.75rem; color: var(--ink-soft); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.account__details dd { margin: 0; font-weight: 600; }
.account__iban { font-variant-numeric: tabular-nums; margin-right: 0.5rem; }
.copy {
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--green-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--green-strong);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}
.copy:hover { background: var(--green-strong); color: #fff; }
.account__qr { margin: 1.5rem 0 0; }
.account__qr img { width: 10rem; background: #fff; padding: 0.5rem; border-radius: var(--radius); }

/* --- Footer --------------------------------------------------------------- */

.site-footer { margin-top: 0; border-top: 1px solid var(--line); background: var(--paper); font-size: 0.95rem; }
.site-footer__inner { display: grid; gap: 2rem; padding-block: 2.5rem; }
@media (min-width: 48rem) { .site-footer__inner { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer__brand img { width: 14rem; }
.site-footer__heading { font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }
.site-footer address { font-style: normal; }
.site-footer__small { margin: 0.5rem 0 0; color: var(--ink-soft); font-size: 0.85rem; }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; }
.site-footer__nav li + li { margin-top: 0.35rem; }
.site-footer__nav a { color: var(--ink); text-decoration: none; }
.site-footer__nav a:hover { color: var(--green-strong); text-decoration: underline; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-block: 1rem 2rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
}
.site-footer__bottom a { color: inherit; }

/* --- Lightbox ------------------------------------------------------------- */

.lightbox {
  /* fast clicks on the arrows count as double-clicks; don't let them select the photo */
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  max-width: 95vw;
  max-height: 95vh;
  padding: 0;
  border: 0;
  background: transparent;
}
.lightbox::backdrop { background: rgb(0 0 0 / 0.85); }
.lightbox__image { -webkit-user-drag: none; max-width: 95vw; max-height: 90vh; width: auto; border-radius: var(--radius); }
.lightbox__nav {
  position: fixed;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.lightbox__nav:hover { background: var(--green-tint); }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }
.lightbox--single .lightbox__nav { display: none; }
.lightbox__count {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  translate: -50% 0;
  margin: 0;
  color: #fff;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.lightbox__close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* --- News archive --------------------------------------------------------- */

.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list__item { display: flex; flex-direction: column; padding: 1.1rem 0; color: var(--ink); text-decoration: none; }
.news-list__title { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1.15; margin: 0.15rem 0 0.25rem; }
.news-list__item:hover .news-list__title { color: var(--green-strong); }
.news-list__text { color: var(--ink-soft); }
