/* UPSHIFT Somalia Platform: the public website (header, menu, footer, pages).

   Built on tokens.css and base.css with the same rule: every colour and size is a
   token or a base.css measure. Phone first. Three widths: 641 px (tokens.css steps
   the titles up), 1024 px (pages open into two columns) and 1180 px (the laptop
   menu, where the canvas puts it).

   Order: frame, header, laptop menu, phone menu, page top, opening, parts, prose,
   figures, offers, quotation, table, photograph, mark composition, prepared, home, locations,
   contact, policy, partners, footer, errors. */

/* --- Frame ----------------------------------------------------------------------- */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

main:focus {
  outline: none;
}

/* --- The line: one content width for every public page ------------------------------ */
/* The approved design's 1240 px of content with 24 px padding at every width. The
   header, every section of every page and the footer sit on it, so the left edge is
   one straight line. Text blocks keep their own shorter maximum width inside it. */

.site-line {
  width: 100%;
  max-width: calc(1240px + 2 * var(--space-6));
  margin-inline: auto;
  padding-inline: var(--space-6);
}

/* --- Header, as the approved page design draws it ----------------------------------- */
/* Values the tokens do not hold are the design's own: the 1240 px width, 14 px
   padding (a 72 px bar with the 44 px controls), 28 px gap, 36 px logo, 15 px weight
   500 links with 24 px gaps and 10 px padding, the 16 px chevron with a 4 px gap,
   the 6 px gap of the tools, the 10 px and 16 px padding of the language and Sign in,
   20 px icons with 6 px and 8 px gaps, and the menu button's -10 px edge. */

.site-nav__list,
.site-nav__panel,
.language__panel,
.phone-languages,
.phone-menu__list,
.phone-menu__sub,
.subnav__list,
.partners__list,
.site-foot__list,
.site-foot__policies,
.hero__places,
.place-list,
.version-list,
.figure-list,
.offer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-head {
  position: relative;
  z-index: 5;
  background: var(--paper);
  border-block-end: var(--line-width) solid rgba(29, 33, 82, 0.1);
}

.site-head__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) 28px;
  max-width: calc(1240px + 2 * var(--space-6)); /* the design's 1240 px of content */
  margin-inline: auto;
  padding: 14px var(--space-6);
}

.site-head__logo {
  display: flex;
  align-items: center;
  border-radius: var(--radius-s);
}

.site-head__logo img {
  display: block;
  height: 36px;
  width: auto;
}

/* --- Laptop menu (from 1180 px) ------------------------------------------------------ */

.site-nav,
.site-tools {
  display: none;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px var(--space-6);
}

.site-nav__item {
  position: relative;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding-block: 10px;
  border-radius: var(--radius-s);
  color: var(--night);
  font-size: 15px;
  line-height: normal;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.site-nav__link:hover {
  color: var(--clay);
}

/* The current page, and the group that holds it: a sun line under the words. */
.site-nav__link[aria-current="page"],
.site-nav__link.is-current {
  box-shadow: inset 0 calc(var(--focus-width) * -1) 0 var(--sun);
}

summary.site-nav__link,
.language__button,
.phone-menu__button {
  list-style: none;
}

summary.site-nav__link::-webkit-details-marker,
.language__button::-webkit-details-marker,
.phone-menu__button::-webkit-details-marker {
  display: none;
}

.site-nav__chevron {
  width: var(--space-4);
  height: var(--space-4);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--motion-fast) ease-out;
}

.site-nav__group[open] .site-nav__chevron {
  transform: rotate(180deg);
}

/* The design draws no open menu; it opens as a white panel in the design's type. */
.site-nav__panel,
.language__panel {
  position: absolute;
  inset-block-start: calc(100% + var(--space-2));
  inset-inline-start: calc(var(--space-3) * -1);
  min-width: calc(var(--space-18) * 3);
  padding: var(--space-2);
  background: var(--white);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card), inset 0 0 0 var(--line-width) var(--line);
}

.site-nav__panel-link,
.language__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--control-height-compact);
  padding-inline: var(--space-3);
  border-radius: var(--radius-m);
  color: var(--night);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

a.site-nav__panel-link:hover,
a.language__item:hover {
  background: var(--paper);
}

.site-nav__panel-link[aria-current="page"],
.language__item[aria-current="true"] {
  background: var(--dawn);
}

/* --- Language and Sign in ------------------------------------------------------------ */

.site-tools {
  align-items: center;
  gap: 6px;
}

.language {
  position: relative;
}

.language__button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: var(--control-height-compact);
  padding-inline: 10px;
  border-radius: var(--radius-m);
  color: var(--night);
  font-size: var(--label-size);
  font-weight: var(--label-weight);
  cursor: pointer;
}

.language__button svg,
.sign-in svg,
.phone-menu__button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--night);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.language__panel {
  inset-inline-start: auto;
  inset-inline-end: 0;
  min-width: calc(var(--space-18) * 2 + var(--space-6));
}

.language__item--coming {
  color: var(--ink-muted);
}

.language__coming {
  color: var(--ink-muted);
  font-size: var(--small-size);
  font-weight: var(--body-weight);
}

.sign-in {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: var(--control-height-compact);
  padding-inline: var(--space-4);
  border-radius: var(--radius-m);
  box-shadow: inset 0 0 0 var(--edge-width) var(--line-strong);
  color: var(--night);
  font-size: var(--label-size);
  font-weight: var(--label-weight);
  text-decoration: none;
  white-space: nowrap;
  transition: box-shadow var(--motion-fast) ease-out;
}

.sign-in:hover {
  box-shadow: inset 0 0 0 var(--edge-width) var(--night);
}

.sign-in .sign-in__head {
  fill: var(--clay);
  stroke: none;
}

@media (min-width: 1181px) {
  .site-nav {
    display: block;
  }

  .site-tools {
    display: flex;
  }

  .phone-menu {
    display: none;
  }
}

/* --- Phone menu (to 1180 px): the design's menu button, a details element ------------- */

.phone-menu__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--control-height-compact);
  height: var(--control-height-compact);
  margin-inline-end: -10px;
  border-radius: var(--radius-m);
  cursor: pointer;
}

.phone-menu__button svg {
  width: var(--icon-size);
  height: var(--icon-size);
}

.phone-menu__open,
.phone-menu[open] .phone-menu__closed {
  display: none;
}

.phone-menu[open] .phone-menu__open {
  display: block;
}

.phone-menu__panel {
  position: absolute;
  inset-inline: 0;
  inset-block-start: 100%;
  max-height: calc(100vh - var(--space-18));
  overflow-y: auto;
  padding: var(--space-3) var(--space-4) var(--space-6);
  background: var(--white);
  border-block-end: var(--line-width) solid var(--line);
  box-shadow: var(--shadow-card);
}

.phone-menu__list,
.phone-menu__tools {
  display: grid;
  max-width: var(--text-width);
  margin-inline: auto;
}

.phone-menu__list > li + li {
  border-block-start: var(--line-width) solid var(--line);
}

.phone-menu__link {
  display: flex;
  align-items: center;
  min-height: var(--control-height);
  padding-inline: var(--space-2);
  border-radius: var(--radius-m);
  color: var(--night);
  font-size: var(--body-size);
  font-weight: var(--label-weight);
  text-decoration: none;
}

.phone-menu__link--sub {
  min-height: var(--control-height-compact);
  padding-inline-start: var(--space-6);
  color: var(--ink-soft);
  font-size: var(--label-size);
}

.phone-menu__sub {
  padding-block-end: var(--space-2);
}

.phone-menu__link[aria-current="page"] {
  background: var(--dawn);
  box-shadow: inset var(--space-1) 0 0 var(--sun);
}

.phone-menu__tools {
  gap: var(--space-4);
  justify-items: start;
  margin-block-start: var(--space-4);
  padding-block-start: var(--space-4);
  border-block-start: var(--line-width) solid var(--line-strong);
}

.phone-languages {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  padding-inline: var(--space-2);
  font-size: var(--label-size);
  font-weight: var(--label-weight);
}

.phone-languages__item {
  color: var(--night);
}

.phone-languages__item[aria-current="true"] {
  text-decoration: underline;
  text-decoration-color: var(--sun);
  text-decoration-thickness: var(--focus-width);
  text-underline-offset: var(--space-1);
}

.phone-languages__item--coming {
  color: var(--ink-muted);
  font-weight: var(--body-weight);
}

/* --- Page top: back link and the programme's row of pages ---------------------------- */

.page-top {
  padding-block-start: var(--space-6);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--control-height-compact);
  border-radius: var(--radius-s);
  color: var(--clay);
  font-size: var(--label-size);
  font-weight: var(--label-weight);
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.subnav {
  margin-block-start: var(--space-2);
  margin-inline: calc(var(--space-6) * -1);
  overflow-x: auto;
  scrollbar-width: none;
}

.subnav__list {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-6);
  width: max-content;
}

.subnav__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--control-height-compact);
  padding-inline: var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--white);
  box-shadow: inset 0 0 0 var(--line-width) var(--line-strong);
  color: var(--night);
  font-size: var(--label-size);
  font-weight: var(--label-weight);
  text-decoration: none;
  white-space: nowrap;
  transition: box-shadow var(--motion-fast) ease-out;
}

.subnav__link:hover {
  box-shadow: inset 0 0 0 var(--edge-width) var(--night);
}

.subnav__link[aria-current="page"] {
  background: var(--night);
  color: var(--white);
  box-shadow: none;
}


/* --- Opening: the page's main heading, its first part and the photo ground ----------- */

.opening {
  display: grid;
  gap: var(--space-8);
  align-items: center;
  padding-block: var(--space-6) var(--space-12);
}

.opening__text {
  display: grid;
  gap: var(--space-4);
  max-width: var(--text-width);
}

.eyebrow {
  color: var(--ink-muted);
  font-size: var(--label-size);
  line-height: var(--label-line);
  font-weight: var(--label-weight);
}

.opening__parts {
  display: grid;
  gap: var(--space-6);
}

.opening__parts .prose > p:first-child {
  font-size: var(--lead-size);
  line-height: var(--lead-line);
  color: var(--ink-soft);
}

@media (min-width: 1024px) {
  .opening--photo {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: var(--space-18);
  }
}

/* --- Parts: each headed part in a row, the heading beside its text ------------------- */

.part-row {
  display: grid;
  gap: var(--space-4);
  padding-block: var(--space-12);
  /* The rule between parts spans the line, not the padding around it. */
  background: linear-gradient(var(--line), var(--line)) var(--space-6) 0 /
    calc(100% - 2 * var(--space-6)) var(--line-width) no-repeat;
}

.part-row__body {
  display: grid;
  gap: var(--space-6);
  min-width: 0;
}

@media (min-width: 641px) {
  .part-row {
    padding-block: var(--space-18);
  }
}

@media (min-width: 1024px) {
  .part-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: var(--space-18);
    align-items: start;
  }
}

.part-source {
  color: var(--ink-muted);
  font-size: var(--small-size);
  line-height: var(--small-line);
}

/* --- Prose ----------------------------------------------------------------------- */

.prose {
  max-width: var(--text-width);
}

.prose > * + * {
  margin-block-start: var(--space-4);
}

.prose ul:not([class]) {
  padding-inline-start: var(--space-6);
}

.prose ul:not([class]) li + li {
  margin-block-start: var(--space-2);
}

.prose h2,
.prose h3,
.prose h4 {
  color: var(--night);
  font-size: var(--h3-size);
  line-height: var(--h3-line);
  font-weight: var(--h3-weight);
  text-wrap: balance;
}

.prose * + h2,
.prose * + h3 {
  margin-block-start: var(--space-8);
}

.prose strong {
  color: var(--night);
  font-weight: var(--label-weight);
}

/* --- Figures: a survey's results, each figure with its words -------------------------- */

.prose .figure-list {
  display: grid;
  gap: var(--space-3);
  margin-block-start: var(--space-6);
  max-width: none;
}

.figure-list__item {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-6);
  background: var(--white);
  border-radius: var(--radius-l);
  box-shadow: inset 0 0 0 var(--line-width) var(--line);
}

.figure__number {
  color: var(--night);
  font-size: var(--figure-size);
  line-height: var(--figure-line);
  font-weight: var(--figure-weight);
  letter-spacing: var(--figure-tracking);
  font-variant-numeric: tabular-nums;
}

.figure__lead {
  font-size: var(--lead-size);
  letter-spacing: 0;
}

.figure__words {
  color: var(--ink-soft);
}

@media (min-width: 641px) {
  .prose .figure-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* --- Offers: ways to take part, each with a short title ------------------------------- */

.prose .offer-list {
  display: grid;
  gap: var(--space-3);
  margin-block-start: var(--space-6);
}

.offer-list__item {
  display: grid;
  gap: var(--space-2);
  align-content: start;
  padding: var(--space-6);
  background: var(--white);
  border-radius: var(--radius-l);
  box-shadow: inset 0 0 0 var(--line-width) var(--line);
  border-block-start: var(--space-1) solid var(--sun);
}

.offer-list__title {
  color: var(--night);
  font-size: var(--h3-size);
  line-height: var(--h3-line);
  font-weight: var(--h3-weight);
}

.offer-list__text {
  color: var(--ink-soft);
}

@media (min-width: 641px) {
  .prose .offer-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* The offers on a page of their own use the whole width. */
.opening .prose:has(.offer-list) {
  max-width: none;
}

@media (min-width: 1024px) {
  .opening:has(.offer-list) .opening__text {
    max-width: none;
  }

  .opening:has(.offer-list) .opening__parts .prose > p {
    max-width: var(--text-width);
  }

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

/* --- Quotation ------------------------------------------------------------------- */

.quote {
  display: grid;
  gap: var(--space-3);
  max-width: var(--text-width);
  padding-inline-start: var(--space-6);
  border-inline-start: var(--space-1) solid var(--sun);
}

.quote__text {
  margin: 0;
}

.quote__text p {
  color: var(--night);
  font-size: var(--h2-size);
  line-height: var(--h2-line);
  font-weight: var(--h2-weight);
  letter-spacing: var(--h2-tracking);
  text-wrap: balance;
}

.quote__text p::before {
  content: open-quote;
}

.quote__text p::after {
  content: close-quote;
}

.quote__source {
  color: var(--ink-muted);
  font-size: var(--small-size);
  line-height: var(--small-line);
}

/* --- Table: lines and columns on a laptop, one card per row on a phone --------------- */

.data-table table {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
}

.data-table thead {
  position: absolute;
  width: var(--line-width);
  height: var(--line-width);
  overflow: hidden;
  clip-path: inset(50%);
}

.data-table tbody {
  display: grid;
  gap: var(--space-3);
}

.data-table tr {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-6);
  background: var(--white);
  border-radius: var(--radius-l);
  box-shadow: inset 0 0 0 var(--line-width) var(--line);
}

.data-table th,
.data-table td {
  display: grid;
  gap: var(--space-1);
  padding: 0;
  text-align: start;
  vertical-align: top;
}

.data-table tbody th {
  color: var(--night);
  font-size: var(--lead-size);
  line-height: var(--h3-line);
  font-weight: var(--h3-weight);
}

.data-table td {
  color: var(--ink-soft);
}

.data-table td::before {
  content: attr(data-label);
  color: var(--ink-muted);
  font-size: var(--small-size);
  line-height: var(--small-line);
  font-weight: var(--label-weight);
}

@media (min-width: 641px) {
  .data-table thead {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
  }

  .data-table tbody {
    display: table-row-group;
  }

  .data-table tr {
    display: table-row;
    background: none;
    box-shadow: none;
  }

  .data-table th,
  .data-table td {
    display: table-cell;
    padding: var(--space-4) var(--space-6) var(--space-4) 0;
    border-block-end: var(--line-width) solid var(--line);
  }

  .data-table thead th {
    color: var(--ink-muted);
    font-size: var(--small-size);
    line-height: var(--small-line);
    font-weight: var(--label-weight);
    border-block-end-color: var(--line-strong);
  }

  .data-table tbody th {
    font-size: var(--body-size);
    line-height: var(--body-line);
  }

  .data-table td::before {
    content: none;
  }
}

/* --- Photograph: a published photo in the U crop, with its caption ------------------- */

.page-photo {
  display: grid;
  gap: var(--space-2);
  margin: 0;
}

.page-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  background: var(--photo-ground);
  border-radius: 0 0 var(--radius-u) var(--radius-u);
}

.page-photo--hero img {
  aspect-ratio: 1;
}

.page-photo__caption {
  color: var(--ink-muted);
  font-size: var(--small-size);
  line-height: var(--small-line);
}

/* --- The mark's composition: Home's opening until a photograph is published ---------- */
/* One sun slab (the one bright field of the page), the clay head, the night block
   with the U cut from it, a dawn block and a row of heads (the sample page). */

.mark-art {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--paper);
}

.mark-art svg {
  width: 100%;
  height: auto;
}

.mark-art__sun { fill: var(--sun); }
.mark-art__night { fill: var(--night); }
.mark-art__clay { fill: var(--clay); }
.mark-art__dawn { fill: var(--dawn); }
.mark-art__paper { fill: var(--paper); }

/* --- Prepared: the one plain line that the rest of a page is coming ------------------- */

.page-end {
  padding-block: 0 var(--space-12);
}

.prepared {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  max-width: var(--text-width);
  padding: var(--space-4) var(--space-6);
  background: var(--dawn);
  border-radius: var(--radius-l);
  color: var(--ink);
}

.prepared img {
  width: var(--icon-size);
  height: var(--icon-size);
  flex: none;
}

.prepared--note {
  display: block;
}

.related {
  padding-block: 0 var(--space-12);
}

.related__link {
  display: grid;
  gap: var(--space-1);
  max-width: var(--text-width);
  padding: var(--space-6);
  background: var(--white);
  border-radius: var(--radius-l);
  box-shadow: inset 0 0 0 var(--line-width) var(--line);
  color: inherit;
  text-decoration: none;
  transition: box-shadow var(--motion-fast) ease-out;
}

.related__link:hover {
  box-shadow: inset 0 0 0 var(--edge-width) var(--night);
}

.related__label {
  color: var(--night);
  font-size: var(--h3-size);
  line-height: var(--h3-line);
  font-weight: var(--h3-weight);
}

.related__label::after {
  content: " →";
  color: var(--clay);
}

.related__text {
  color: var(--ink-soft);
}

@media (min-width: 641px) {
  .page-end,
  .related {
    padding-block-end: var(--space-18);
  }
}

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

/* The opening, as the approved page design draws it (canvas "Platform pages", home).
   Values the tokens do not hold are the design's own, and are listed here:
   the 1240 px width, the clamp() sizes and gaps, the 54 px button and its 26 px
   padding, the 26 px gap of the words, the 34rem line, the 470 px column, the
   photograph's proportions (20.4 / 23.4 and the percentages that place the head,
   the U and the arrow), the card's 300 px width, 14 px corner, 20/22 px padding,
   11 px gap, 28 px figures, 13 px and 12 px text. */
.hero {
  --design-width: calc(1240px + 2 * var(--space-6)); /* the design's 1240 px of content */
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 470px), 1fr));
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  max-width: var(--design-width);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 76px) var(--space-6) clamp(56px, 7vw, 96px);
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-width: 0;
  /* The design sets no line height on the links and the places: the browser's own. */
  line-height: normal;
}

.hero__title {
  color: var(--night);
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  line-height: var(--display-line);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  text-wrap: balance;
}

.hero__lead {
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: clamp(1.06rem, 1.4vw, 1.25rem);
  line-height: var(--lead-line);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.hero__main {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  height: 54px;
  padding-inline: 26px;
  border-radius: var(--radius-m);
  background: var(--sun);
  box-shadow: var(--shadow-sun);
  color: var(--ink);
  font-size: var(--body-size);
  font-weight: var(--label-weight);
  text-decoration: none;
  transition: background-color var(--motion-fast) ease-out;
}

.hero__main:hover {
  background: var(--sun-hover);
}

.hero__second {
  min-height: 54px;
  padding-inline: 26px;
  font-size: var(--body-size);
}

.hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) 28px;
}

.hero__link {
  padding-block: 10px;
  border-radius: var(--radius-s);
  color: var(--night);
  font-size: var(--body-size);
  font-weight: var(--label-weight);
  text-underline-offset: 5px;
}

.hero__places {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) 18px;
}

.hero__places li {
  display: flex;
}

.hero__place {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-s);
  color: var(--ink-muted);
  font-size: var(--label-size);
  text-decoration: none;
}

.hero__place:hover {
  color: var(--night);
  text-decoration: underline;
}

.hero__place img {
  width: 18px;
  height: 18px;
}

.hero__art {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.hero__art .mark-art {
  width: min(100%, 480px);
}

.hero__figure {
  position: relative;
  width: min(100%, 480px);
}

.hero__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 20.4 / 23.4;
}

.hero__head {
  position: absolute;
  inset-inline-start: 26.2%;
  inset-block-start: 5.56%;
  width: 23.53%;
  aspect-ratio: 1;
  border-radius: var(--radius-pill);
  background: var(--clay);
}

.hero__photo {
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 27.35%;
  width: 93.14%;
  height: 72.65%;
  margin: 0;
  overflow: hidden;
  border-radius: 0 0 var(--radius-u) var(--radius-u);
  background: var(--photo-ground);
}

.hero__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 0%;
}

.hero__tag {
  position: absolute;
  inset-inline-start: var(--space-3);
  inset-block-start: var(--space-3);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  color: var(--ink-muted);
  font-size: 11.5px;
  line-height: 1.4;
  font-weight: 500;
}

.hero__arrow {
  position: absolute;
  inset-inline-start: 60.29%;
  inset-block-start: 0;
  width: 41.18%;
  height: auto;
  fill: var(--sun);
}

.hero-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 11px;
  width: min(300px, 76%);
  margin: -36% 0 0 -3%;
  padding: 20px 22px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-lift);
}

.hero-card__label,
.hero-card__story-label {
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.4;
}

.hero-card__row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.hero-card__number {
  min-width: 56px;
  color: var(--night);
  font-size: 28px;
  line-height: 1;
  font-weight: var(--h1-weight);
  font-variant-numeric: tabular-nums;
}

.hero-card__words {
  color: var(--ink-soft);
  font-size: var(--small-size);
  line-height: 1.35;
}

.hero-card__rule {
  height: var(--line-width);
  background: var(--line);
}

.hero-card__story-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hero-card__story-label::before {
  content: "";
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: var(--radius-pill);
  background: var(--sun);
}

.hero-card__story {
  color: var(--night);
  font-size: var(--label-size);
  line-height: 1.35;
  font-weight: var(--label-weight);
  text-underline-offset: 3px;
}

/* --- After the opening: the quotation and the three blocks (the approved design) ----- */
/* Values the tokens do not hold are the design's own: the 1240 px width, the clamp()
   padding, gap and sizes, the 920 px and 40rem lines, the 18 px gap, -0.03em, the
   300 px columns, the 20 px gap, 28 px padding, 14 px gap, 36 px icons, 15.5 px text,
   15 px links with a 4 px underline offset and 6 px above. */

.idea {
  background: var(--white);
}

.idea__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5vw, 64px);
  max-width: calc(1240px + 2 * var(--space-6)); /* the design's 1240 px of content */
  margin-inline: auto;
  padding: clamp(64px, 8vw, 112px) var(--space-6);
}

.idea__words {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 920px;
}

.idea__quotation {
  color: var(--night);
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: var(--h2-home-line);
  font-weight: var(--h1-weight);
  letter-spacing: -0.03em;
}

.idea__text {
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  line-height: var(--lead-line);
}

.idea__blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.idea__block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border-radius: var(--radius-l);
  background: var(--paper);
}

.idea__block img {
  width: 36px;
  height: 36px;
}

.idea__block-title {
  color: var(--night);
  font-size: var(--h3-size);
  line-height: var(--h3-line);
  font-weight: var(--h3-weight);
}

.idea__block-text {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: var(--body-line);
}

.idea__block-link {
  margin-block-start: auto;
  padding-block-start: 6px;
  border-radius: var(--radius-s);
  color: var(--night);
  font-size: 15px;
  font-weight: var(--label-weight);
  line-height: normal;
  text-underline-offset: 4px;
}

/* --- "The path of a young person", as the approved page design draws it ------------- */
/* Values the tokens do not hold are the design's own: the 1240 px width, the clamp()
   padding, gap and heading size, the 420 px columns, 18 px gap, 32rem lead, the 280 px
   drawing with its 14/6/-6 px margins and 5 px stroke, the 46 px link with 18 px
   padding, 48 px number column, 4/12 px gaps, 20 px step padding, 19 px titles,
   15.5 px text, 15 px numbers with 2 px above. */

.path__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
  max-width: calc(1240px + 2 * var(--space-6)); /* the design's 1240 px of content */
  margin-inline: auto;
  padding: clamp(64px, 8vw, 112px) var(--space-6);
}

.path__side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.path__title {
  color: var(--night);
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: var(--h2-home-line);
  font-weight: var(--h2-home-weight);
  letter-spacing: var(--h2-home-tracking);
  text-wrap: balance;
}

.path__lead {
  max-width: 32rem;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: var(--lead-line);
}

.path__art {
  width: 280px;
  height: 280px;
  max-width: 100%;
  margin: 14px 0 6px -6px;
}

.path__u path {
  fill: none;
  stroke: var(--night);
  stroke-width: 5;
  stroke-linecap: butt;
}

.path__arrow {
  fill: var(--sun);
}

.path__link {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  height: 46px;
  padding-inline: 18px;
  border-radius: var(--radius-m);
  box-shadow: inset 0 0 0 var(--edge-width) var(--line-strong);
  color: var(--night);
  font-size: 15px;
  font-weight: var(--label-weight);
  text-decoration: none;
  transition: box-shadow var(--motion-fast) ease-out;
}

.path__link:hover {
  box-shadow: inset 0 0 0 var(--edge-width) var(--night);
}

.path__steps {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.path__step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: var(--space-1) var(--space-3);
  padding-block: 20px;
  border-block-start: var(--line-width) solid var(--line);
}

.path__step:last-child {
  border-block-end: var(--line-width) solid var(--line);
}

.path__number {
  padding-block-start: 2px;
  color: var(--clay);
  font-size: 15px;
  font-weight: var(--h3-weight);
  font-variant-numeric: tabular-nums;
  line-height: normal;
}

.path__words {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.path__step-title {
  color: var(--night);
  font-size: 19px;
  line-height: 1.3;
  font-weight: var(--h3-weight);
}

.path__step-text {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: var(--body-line);
}

.home-prepared {
  display: grid;
  gap: var(--space-6);
  max-width: calc(1240px + 2 * var(--space-6)); /* the design's 1240 px of content */
  margin-inline: auto;
  /* The section above already ends with the design's bottom padding. */
  padding: 0 var(--space-6);
}

/* --- "Work with UPSHIFT Somalia", as the approved page design draws it --------------- */
/* Values the tokens do not hold are the design's own: the 1240 px width, the clamp()
   padding and heading size, the 36 px, 20/40 px, 14 px and 12/24 px gaps, the 660 px
   words, 17 px text and titles, the 52 px button, 15 px link and way text, the 300 px
   columns, the 32 px icon column with 28 px icons, 22 px item padding, 4/16 px gaps. */

.work-with__inner {
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: calc(1240px + 2 * var(--space-6)); /* the design's 1240 px of content */
  margin-inline: auto;
  padding: clamp(64px, 8vw, 112px) var(--space-6);
}

.work-with__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
}

.work-with__words {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 660px;
}

.work-with__title {
  color: var(--night);
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: var(--h2-home-line);
  font-weight: var(--h2-home-weight);
  letter-spacing: var(--h2-home-tracking);
  text-wrap: balance;
}

.work-with__text {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: var(--lead-line);
}

.work-with__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-6);
  line-height: normal;
}

.work-with__main {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  height: 52px;
  padding-inline: var(--space-6);
  border-radius: var(--radius-m);
  background: var(--sun);
  color: var(--ink);
  font-size: var(--body-size);
  font-weight: var(--label-weight);
  text-decoration: none;
  transition: background-color var(--motion-fast) ease-out;
}

.work-with__main:hover {
  background: var(--sun-hover);
}

.work-with__link {
  padding-block: 10px;
  border-radius: var(--radius-s);
  color: var(--night);
  font-size: 15px;
  font-weight: var(--label-weight);
  text-underline-offset: 5px;
}

.work-with__ways {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 0 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.work-with__way {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: var(--space-1) var(--space-4);
  padding-block: 22px;
  border-block-start: var(--line-width) solid var(--line);
}

.work-with__way img {
  width: 28px;
  height: 28px;
}

.work-with__way-words {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.work-with__way-title {
  color: var(--night);
  font-size: 17px;
  font-weight: var(--h3-weight);
  line-height: normal;
}

.work-with__way-text {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
}

/* --- Locations ------------------------------------------------------------------- */

.place-list {
  display: grid;
  gap: var(--space-4);
}

.place-card {
  display: grid;
  gap: var(--space-3);
  height: 100%;
  padding: var(--space-6);
  background: var(--white);
  border-radius: var(--radius-l);
  box-shadow: inset 0 0 0 var(--line-width) var(--line);
  color: inherit;
  text-decoration: none;
  transition: box-shadow var(--motion-fast) ease-out;
}

.place-card:hover {
  box-shadow: inset 0 0 0 var(--edge-width) var(--night);
}

.place-card__name {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--night);
}

.place-card__name img {
  width: var(--icon-size);
  height: var(--icon-size);
}

.place-card__text {
  color: var(--ink-soft);
}

.place-card__more {
  align-self: end;
  color: var(--clay);
  font-size: var(--label-size);
  font-weight: var(--label-weight);
}

@media (min-width: 641px) {
  .place-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* --- Get involved and Contact -------------------------------------------------------- */

.take-part {
  padding-block: 0 var(--space-12);
}

.take-part__panel {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--dawn);
  border-radius: var(--radius-xl);
}

.take-part__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.take-part__actions .button--main img {
  width: var(--space-6);
  height: var(--space-6);
}

@media (min-width: 641px) {
  .take-part {
    padding-block-end: var(--space-18);
  }

  .take-part__panel {
    padding: var(--space-8);
  }
}

.contact-ways {
  display: grid;
  gap: var(--space-4);
}

.contact-way {
  display: grid;
  gap: var(--space-3);
  align-content: start;
  padding: var(--space-6);
  background: var(--white);
  border-radius: var(--radius-l);
  box-shadow: inset 0 0 0 var(--line-width) var(--line);
}

.contact-way--main {
  border-block-start: var(--space-1) solid var(--sun);
}

.contact-way__icon {
  width: var(--icon-spot);
  height: var(--icon-spot);
}

.contact-way__email {
  font-size: var(--lead-size);
  font-weight: var(--label-weight);
  overflow-wrap: anywhere;
}

.contact-way__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-6);
}

@media (min-width: 641px) {
  .contact-ways {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-way {
    padding: var(--space-8);
  }
}

/* --- Policy pages ---------------------------------------------------------------- */

.policy {
  display: grid;
  gap: var(--space-8);
  padding-block: var(--space-6) var(--space-12);
}

.policy__head {
  display: grid;
  gap: var(--space-3);
  max-width: var(--text-width);
}

.policy__version {
  color: var(--ink-muted);
  font-size: var(--label-size);
  font-weight: var(--label-weight);
}

.version-list {
  display: grid;
  max-width: var(--text-width);
}

.version-list__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  min-height: var(--control-height);
  padding-block: var(--space-3);
  border-block-end: var(--line-width) solid var(--line);
}

.version-list__item a {
  font-weight: var(--label-weight);
}

.version-list__date {
  color: var(--ink-muted);
  font-size: var(--small-size);
}

@media (min-width: 641px) {
  .policy {
    padding-block-end: var(--space-18);
  }
}

/* --- Partners and footer, as the approved page design draws them -------------------- */
/* Values the tokens do not hold are the design's own: the 1240 px width, the 104 x 48
   tiles, the 20 px / 40 px gaps of the strip, the 28 px rule gap, the 200 px columns,
   the 420 px text block, 15 px text, 14.5 px links, 10 px link gap, 34 px logo, 22 px
   rule gap, and #C9CBE0 for the bottom row (on night). */

.partners__inner,
.site-foot__inner {
  max-width: calc(1240px + 2 * var(--space-6)); /* the design's 1240 px of content */
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.partners__inner {
  padding-block-end: var(--space-12);
}

.partners__row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  padding-block-start: 28px;
  border-block-start: var(--line-width) solid var(--line);
}

.partners__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  line-height: normal;
}

.partners__label {
  color: var(--ink-muted);
  font-size: var(--small-size);
  font-weight: var(--body-weight);
  line-height: normal;
}

.partners__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.partners__tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  max-width: 220px;
  height: 48px;
  padding-inline: var(--space-3);
  background: var(--white);
  border-radius: var(--radius-s);
  box-shadow: inset 0 0 0 var(--line-width) rgba(29, 33, 82, 0.1);
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
}

.site-foot {
  background: var(--night);
  color: var(--white);
}

.site-foot__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-block: clamp(48px, 6vw, 72px) var(--space-8);
}

.site-foot__top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: var(--space-8);
}

.site-foot__about {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  grid-column: span 2;
  min-width: 0;
  max-width: 420px;
}

.site-foot__logo {
  align-self: flex-start;
  border-radius: var(--radius-s);
}

.site-foot__logo img {
  display: block;
  height: 34px;
  width: auto;
}

.site-foot__text {
  color: var(--on-night);
  font-size: 15px;
  line-height: 1.6;
}

.site-foot__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
  line-height: normal;
}

.site-foot__title {
  color: var(--sun);
  font-size: var(--small-size);
  font-weight: var(--label-weight);
  line-height: normal;
}

.site-foot a {
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius-s);
}

.site-foot a:hover {
  text-decoration: underline;
  text-decoration-thickness: var(--line-width);
}

.site-foot a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--sun);
  text-decoration-thickness: var(--focus-width);
}

.site-foot :focus-visible {
  outline-color: var(--sun);
}

.site-foot__bottom,
.site-foot__last {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-6);
  color: #C9CBE0;
  font-size: var(--small-size);
  line-height: normal;
}

.site-foot__bottom {
  padding-block-start: 22px;
  border-block-start: var(--line-width) solid rgba(255, 255, 255, 0.16);
}

.site-foot__last {
  margin-block-start: calc(var(--space-6) * -1);
}

.site-foot__policies {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-6);
}

.site-foot__policies a,
.site-foot__last p {
  color: #C9CBE0;
}

.site-foot--plain .site-foot__inner {
  padding-block: var(--space-6);
}

/* --- Errors ---------------------------------------------------------------------- */

.error-page {
  padding-block: var(--space-12) var(--space-18);
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-block-start: var(--space-2);
}

/* --- Programme pages: UPSHIFT in Somalia, From donor to result, Results, Funders and
   partners, the location highlights and the home page's "What young people have
   achieved" (step 5.5 to 5.8), as the approved page design draws them -------------- */
/* Values the tokens do not hold are the design's own: the section spacing clamp(72px,
   9vw, 112px) and clamp(64px, 8vw, 96px), the 17 px / 1.65 lead, 15.5 px and 15 px
   card text, the 22 px card padding, the 260 px and 300 px card columns, the 44 px
   logo tile, the 14 px story mark and the 160 px label column. */

.opening--flush {
  padding-block-end: 0;
}

/* The programme pages open with the design's 46rem text, its title size at every
   width (clamp(2rem, 3.6vw, 2.75rem)) and its 17 px lead. */
.opening--flush .t-h1 {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
}

.opening--flush .opening__text {
  max-width: 46rem;
}

.opening--flush .opening__parts .prose {
  max-width: none;
}

.opening--flush .opening__parts .prose > p:first-child {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
}

.programme-section {
  display: grid;
  padding-block-start: clamp(72px, 9vw, 112px);
}

.programme-section > * + * {
  margin-block-start: 28px;
}

.programme-section > .t-h2 + .programme-lead {
  margin-block-start: var(--space-3);
}

/* The location highlights: under the opening, the same space as between the page's
   other parts (112px on a laptop, 72px on a phone). */
.programme-section--near {
  padding-block: clamp(24px, 4.45vw, 64px) var(--space-12);
}

.programme-section--end,
.programme-section:last-child {
  padding-block-end: clamp(64px, 8vw, 96px);
}

.programme-lead {
  max-width: 46rem;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
}

.programme-note {
  color: var(--ink-muted);
  font-size: var(--small-size);
  line-height: var(--small-line);
}

.programme-link {
  justify-self: start;
  padding-block: 10px;
  color: var(--night);
  font-size: 15px;
  font-weight: 600;
  text-underline-offset: 5px;
}

/* A heading beside its text (What young people have built, What supports both
   programmes, How communities benefit, Other organisations). */
.programme-split {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: var(--space-8) clamp(48px, 7vw, 104px);
  align-items: start;
}

.programme-section.programme-split > * + * {
  margin-block-start: 0;
}

.programme-split__body {
  display: grid;
  gap: var(--space-4);
  min-width: 0;
}

.programme-split__body .prose {
  font-size: 17px;
  line-height: 1.65;
}

/* Lines of the reports as cards: the number, then the words. */
.line-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: var(--space-4);
  /* No margin of its own: the base rule already clears it, and under a heading the
     section's space (28px) must hold (it was lost on the location highlights). */
  padding: 0;
  list-style: none;
}

.line-cards--wide {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.line-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
  padding: 22px 22px 20px;
  background: var(--white);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
}

/* The icon of a highlight's kind of activity (location pages), on a small tile in the
   tone of the result it serves: green skills, girls' leadership, the private sector. */
.line-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-block-end: var(--space-2);
  border-radius: var(--radius-m);
  background: rgba(29, 33, 82, 0.07);
}

.line-card__icon--green {
  background: rgba(44, 122, 75, 0.17);
}

.line-card__icon--sun {
  background: rgba(244, 166, 42, 0.18);
}

.line-card__icon--clay {
  background: rgba(185, 71, 42, 0.1);
}

.line-card__icon img {
  width: 28px;
  height: 28px;
}

/* On a laptop the highlights fill their rows: three or four cards in one row, six in
   two rows of three, so that no card is left alone on a row. */
@media (min-width: 1000px) {
  .line-cards--count-2,
  .line-cards--count-4 {
    grid-template-columns: repeat(var(--fit, 2), minmax(0, 1fr));
  }

  .line-cards--count-4 {
    --fit: 4;
  }

  .line-cards--count-3,
  .line-cards--count-5,
  .line-cards--count-6,
  .line-cards--count-9 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.line-card__number {
  color: var(--night);
  font-size: var(--figure-size);
  line-height: var(--figure-line);
  font-weight: var(--figure-weight);
  letter-spacing: var(--figure-tracking);
  font-variant-numeric: tabular-nums;
}

.line-card__words {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

.line-card__when {
  color: var(--ink-muted);
  font-size: 12.5px;
  line-height: var(--small-line);
}

/* Girls' leadership: a group as a line card; the facts in a row, then focus and
   advocacy, then its stories under a thin rule. */
.group-card__title {
  margin: 0;
  color: var(--night);
  font-size: var(--lead-size);
  line-height: var(--h3-line);
  font-weight: var(--h3-weight);
}

.group-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.group-card__text {
  display: grid;
  gap: 2px;
  margin-block-start: var(--space-1);
}

.group-card__text p,
.group-card__story p {
  margin: 0;
}

.group-card__stories {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-2) 0 0;
  padding: var(--space-3) 0 0;
  list-style: none;
  border-block-start: var(--line-width) solid var(--line);
}

.group-card__story {
  display: grid;
  gap: 2px;
}

.achieved-group {
  display: grid;
  gap: 20px;
}

/* The card's title opens the group's own page (step 6.5a). */
.group-card__link {
  color: inherit;
  text-decoration-thickness: var(--line-width);
  text-underline-offset: 3px;
}

/* A girls' group's own page: its facts in a row under the title, the photographs after
   the first in columns, as the cards are set out. */
.group-page__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
}

.group-page__photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: var(--space-6) var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The heading of the photographs and of the stories keeps the section's 28 px above
   what follows, which the lists' own margin: 0 would take away. */
.group-page__part > * + * {
  margin-block-start: 28px;
}

/* Results: the targets for the end of the year. */
.target-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-block-end: var(--line-width) solid var(--line);
}

.target-list__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-block: var(--space-4);
  border-block-start: var(--line-width) solid var(--line);
  color: var(--ink);
  font-size: 16.5px;
  line-height: 1.55;
}

.target-list__item img {
  flex-shrink: 0;
  margin-block-start: 1px;
}

/* Funders and partners: the two tables. */
.org-table {
  overflow-x: auto;
  background: var(--white);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
}

.org-table--first {
  margin-block-start: clamp(32px, 4vw, 48px);
}

.org-table table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.org-table th,
.org-table td {
  padding: var(--space-4);
  border-block-end: var(--line-width) solid rgba(29, 33, 82, 0.08);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  text-align: start;
  vertical-align: top;
}

.org-table thead th {
  padding: var(--space-3) var(--space-4);
  border-block-end: var(--line-width) solid var(--line);
  color: var(--ink-soft);
  font-size: var(--small-size);
  font-weight: 600;
}

.org-table tbody tr:last-child > * {
  border-block-end: 0;
}

.org-table__name {
  width: 36%;
  color: var(--night);
  font-weight: 700;
}

/* The design's 44 px logo tile beside the name: the logo once it is permitted, the
   organisation's initials until then. */
.org-table__org {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.org-table__tile {
  display: inline-grid;
  flex-shrink: 0;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  background: var(--paper);
  border-radius: var(--radius-s);
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 600;
}

.org-table__tile img {
  max-width: 40px;
  max-height: 40px;
  width: auto;
  height: auto;
}

.org-table__logo {
  max-width: 160px;
  max-height: 44px;
  width: auto;
  height: auto;
}

/* UPSHIFT in Somalia: the two programmes. */
.programme-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  margin-block-start: var(--space-1);
}

.programme-card {
  display: flex;
  flex: 1 1 380px;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
}

.programme-card__aim {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.6;
}

.programme-card__result {
  padding-block-start: 14px;
  border-block-start: var(--line-width) solid var(--line);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}

.programme-card__result strong {
  color: var(--night);
  font-size: 15.5px;
}

/* The story so far: a line of marks, this year's in the sun's colour. */
.story {
  max-width: 52rem;
  /* No margin of its own: under a heading the section's space (28px) holds. */
  margin-inline: 0;
  margin-block-end: 0;
  padding: 0;
  list-style: none;
}

.story__entry {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 0 20px;
}

.story__mark {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.story__mark::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-block-start: 6px;
  border-radius: 50%;
  background: var(--night);
}

.story__mark::after {
  content: "";
  flex: 1;
  width: 2px;
  margin-block-start: 6px;
  background: rgba(29, 33, 82, 0.16);
}

.story__entry--now .story__mark::before {
  background: var(--sun);
}

.story__entry:last-child .story__mark::after {
  display: none;
}

.story__words {
  padding-block-end: var(--space-8);
}

.story__label {
  color: var(--night);
  font-size: 17px;
}

.story__text {
  margin-block-start: var(--space-2);
  color: var(--ink);
  font-size: var(--body-size);
  line-height: 1.6;
}

/* UPSHIFT in Somalia: the programme in brief, on the night band. */
.in-brief {
  margin-block-start: clamp(72px, 9vw, 112px);
  background: var(--night);
  color: var(--white);
}

.in-brief__inner {
  padding-block: var(--space-18);
}

.in-brief .in-brief__title {
  color: var(--white);
}

.in-brief__columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 0 clamp(40px, 6vw, 88px);
  margin-block-start: var(--space-6);
}

.in-brief__list {
  margin: 0;
}

.in-brief__row {
  display: grid;
  grid-template-columns: minmax(0, 160px) minmax(0, 1fr);
  gap: 6px 20px;
  padding-block: var(--space-4);
  border-block-start: var(--line-width) solid rgba(255, 255, 255, 0.16);
}

.in-brief__row dt {
  color: var(--on-night);
  font-size: var(--label-size);
  font-weight: 600;
}

.in-brief__row dd {
  margin: 0;
  color: var(--white);
  font-size: var(--body-size);
  line-height: 1.55;
}

.in-brief__label {
  padding-block: var(--space-4) var(--space-1);
  color: var(--on-night);
  font-size: var(--label-size);
  font-weight: 600;
}

.in-brief__result {
  padding-block: var(--space-4);
  border-block-start: var(--line-width) solid rgba(255, 255, 255, 0.16);
  color: var(--on-night);
  font-size: 15.5px;
  line-height: 1.55;
}

.in-brief__result strong {
  color: var(--white);
  font-size: var(--body-size);
}

/* From donor to result: option A of the page design, chosen 4 Dec 2026. */

/* The chain: six links on one straight line, light to dark, the communities in sun,
   and the mark's arrow after the last. */
.chain {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: clamp(40px, 5vw, 56px) 0 0;
  padding: 0;
  list-style: none;
}

.chain__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 10px;
  text-align: center;
}

.chain__link::after {
  content: "";
  position: absolute;
  top: 35px;
  left: calc(50% + 46px);
  right: calc(-50% + 46px);
  height: 3px;
  border-radius: 3px;
}

.chain__link:nth-child(1)::after { background: rgba(29, 33, 82, 0.14); }
.chain__link:nth-child(2)::after { background: rgba(29, 33, 82, 0.28); }
.chain__link:nth-child(3)::after { background: rgba(29, 33, 82, 0.5); }
.chain__link:nth-child(4)::after { background: rgba(29, 33, 82, 0.75); }
.chain__link:nth-child(5)::after { background: var(--night); }
.chain__link:nth-child(6)::after { display: none; }

.chain__dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
}

.chain__dot--1 { background: var(--white); box-shadow: var(--shadow-card); }
.chain__dot--2 { background: #E6E7F0; }
.chain__dot--3 { background: #C4C6DB; }
.chain__dot--4 { background: #5E6294; }
.chain__dot--5 { background: var(--night); }
.chain__dot--6 { background: var(--sun); box-shadow: 0 6px 16px rgba(244, 166, 42, 0.3); }

/* On the two dark links the icon turns white and its people's heads sun (never clay on night). */
.chain__dot--4 svg,
.chain__dot--5 svg { stroke: var(--white); }
.chain__dot--4 .chain__head,
.chain__dot--5 .chain__head { fill: var(--sun); }

.chain__number {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--night);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
}

.chain__dot--5 .chain__number { background: var(--sun); color: var(--ink); }

.chain__arrow {
  position: absolute;
  top: 26px;
  left: calc(50% + 50px);
  width: 22px;
  height: 20px;
  fill: var(--sun);
  transform: rotate(90deg);
}

.chain__link strong {
  margin-top: 18px;
  color: var(--night);
  font-size: 17px;
  line-height: 1.3;
}

.chain__words {
  max-width: 16ch;
  margin-top: 6px;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.45;
}

/* Each result, from funder to young people: a card in the tone of its result. */
.chains {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
  gap: var(--space-6);
}

.chain-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-l);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.chain-card__head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-6);
  background: rgba(29, 33, 82, 0.06);
}

.chain-card--green .chain-card__head { background: rgba(44, 122, 75, 0.12); }
.chain-card--sun .chain-card__head { background: rgba(244, 166, 42, 0.16); }
.chain-card--clay .chain-card__head { background: rgba(185, 71, 42, 0.08); }

.chain-card__tile {
  display: grid;
  flex: none;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-l);
  background: var(--white);
}

.chain-card__kicker {
  margin: 0 0 2px;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 600;
}

.chain-card__name {
  margin: 0;
  color: var(--night);
  font-size: 21px;
  line-height: 1.25;
}

.chain-card__list {
  margin: 0;
  padding: var(--space-2) var(--space-6) 0;
}

.chain-card__row {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: var(--space-4);
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.5;
}

.chain-card__row:first-child { border-top: 0; }

.chain-card__row dt {
  padding-top: 2px;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 600;
}

.chain-card__row dd { margin: 0; }

.chain-card__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin: var(--space-2) var(--space-6) var(--space-6);
}

.chain-card__box {
  padding: var(--space-4);
  border-radius: 10px;
  background: var(--paper);
  font-size: 14px;
  line-height: 1.5;
}

.chain-card__box--done { background: var(--dawn); }

.chain-card__box strong {
  display: block;
  margin-bottom: 6px;
  color: var(--night);
  font-size: 13px;
}

.chain-card__serves {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin: auto 0 0;
  padding: 18px var(--space-6);
  border-top: 1px solid var(--line);
  color: var(--night);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

/* What supports both programmes: the page's one dark band. */
.supports {
  margin-block-start: clamp(72px, 9vw, 112px);
  padding-block: clamp(56px, 7vw, 88px);
  background: var(--night);
  color: var(--on-night);
}

.supports__inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  align-items: start;
  gap: 56px;
}

.supports__title { color: var(--white); }

.supports__lead {
  margin: var(--space-4) 0 0;
  font-size: 18px;
  line-height: 1.55;
}

.supports__who {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 0;
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  background: var(--night-soft);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
}

.supports__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sun);
}

.supports__roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.supports__role {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius-l);
  background: var(--night-soft);
  font-size: 14px;
  line-height: 1.45;
}

.supports__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--white);
}

.supports__role strong,
.supports__event strong {
  display: block;
  margin-bottom: 4px;
  color: var(--white);
  font-size: 16px;
}

.supports__yearly {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  grid-column: 1 / -1;
  gap: var(--space-6);
  margin-top: var(--space-2);
  padding: var(--space-6) 28px;
  border: 1.5px solid var(--sun);
  border-radius: var(--radius-l);
  font-size: 15px;
}

.supports__figure {
  color: var(--sun);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.supports__event { flex: 1 1 320px; }
.supports__event strong { font-size: 18px; }

.supports__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.supports__chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
}

/* The year in the programme: one track that grows darker, the end in sun. */
.year-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  /* No margin of its own: under a heading the section's space (28px) holds. */
  margin-inline: 0;
  margin-block-end: 0;
  padding: 0;
  list-style: none;
}

.year-track::before {
  content: "";
  position: absolute;
  top: 62px;
  right: 0;
  left: 0;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    rgba(29, 33, 82, 0.15) 0 25%,
    rgba(29, 33, 82, 0.35) 25% 50%,
    rgba(29, 33, 82, 0.6) 50% 75%,
    var(--night) 75% 100%
  );
}

.year-track__part {
  display: flex;
  flex-direction: column;
  padding-right: 28px;
}

.year-track__when {
  height: 28px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 700;
}

.year-track__phase {
  height: 24px;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 600;
}

.year-track__pin {
  position: relative;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 4px solid var(--night);
  border-radius: 50%;
  background: var(--paper);
}

.year-track__part--last .year-track__pin {
  width: 24px;
  height: 24px;
  margin-top: 0;
  border-color: var(--sun);
  background: var(--sun);
}

.year-track__part p {
  margin: var(--space-6) 0 0;
  font-size: var(--body-size);
  line-height: 1.55;
}

/* The larger sun pin keeps its text on the same line as the others. */
.year-track__part--last p { margin-top: 22px; }

/* How communities benefit: one sentence, then three rows. */
.benefits.programme-section {
  grid-template-columns: 5fr 7fr;
  align-items: start;
  gap: 56px;
}

.benefits.programme-section > * + * { margin-block-start: 0; }

.benefits__statement {
  margin: var(--space-6) 0 0;
  color: var(--night);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.benefits__statement em {
  color: var(--clay);
  font-style: normal;
}

.benefits__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefits__row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: var(--space-6) 0;
  border-top: 1px solid var(--line);
}

.benefits__row:last-child { border-bottom: 1px solid var(--line); }

.benefits__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-l);
  background: rgba(29, 33, 82, 0.07);
}

.benefits__icon--green { background: rgba(44, 122, 75, 0.12); }
.benefits__icon--sun { background: rgba(244, 166, 42, 0.18); }

.benefits__row strong {
  display: block;
  margin-bottom: 6px;
  color: var(--night);
  font-size: 18px;
}

.benefits__words {
  display: block;
  color: var(--ink-soft);
  font-size: var(--body-size);
  line-height: 1.55;
}

.benefits__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

@media (max-width: 899px) {
  .chain {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .chain__link {
    flex-direction: row;
    gap: 18px;
    text-align: left;
  }

  .chain__link::after {
    top: 76px;
    right: auto;
    bottom: -20px;
    left: 35px;
    width: 3px;
    height: auto;
  }

  .chain__arrow,
  .chain__words { display: none; }

  .chain__link strong { margin: 0; }

  .chain-card__row { grid-template-columns: 1fr; gap: 4px; }
  .chain-card__pair { grid-template-columns: 1fr; }

  .supports__inner,
  .benefits.programme-section { grid-template-columns: 1fr; gap: 32px; }
  .supports__roles { grid-template-columns: 1fr; }

  .year-track { grid-template-columns: 1fr; gap: 28px; }
  .year-track::before,
  .year-track__pin { display: none; }
  .year-track__when,
  .year-track__phase { height: auto; }
  .year-track__part p,
  .year-track__part--last p { margin-top: 6px; }
}

/* Home: what young people have achieved, on the night band. */
.achieved {
  background: var(--night);
  color: var(--white);
}

.achieved__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 5vw, 56px);
  padding-block: clamp(64px, 8vw, 104px);
}

.achieved__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4) 40px;
}

.achieved__words {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 640px;
}

.achieved__title {
  text-wrap: balance;
  color: var(--white);
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.achieved__lead {
  color: var(--on-night);
  font-size: 16.5px;
  line-height: 1.6;
}

.achieved__link {
  padding-block: 10px;
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  text-underline-offset: 5px;
}

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

.achieved__figure {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: 22px 28px 4px 0;
  border-block-start: var(--line-width) solid rgba(255, 255, 255, 0.18);
}

.achieved__number {
  color: var(--sun);
  font-size: clamp(3rem, 5.4vw, 4.4rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.achieved__words-line {
  color: var(--white);
  font-size: var(--body-size);
  line-height: 1.45;
}

.achieved + .home-prepared {
  padding-block-start: var(--space-12);
}

.achieved__place {
  color: #C9CBE0; /* the design's own, on the night band */
  font-size: var(--small-size);
}

.partners__tile--logo {
  padding: var(--space-1) var(--space-2);
}

.partners__tile--logo img {
  max-width: 100%;
  max-height: 40px;
  width: auto;
  height: auto;
}

/* --- News (step 6.3) ------------------------------------------------------------- */
/* The choices of type and of location are the row of page links of the About pages,
   the chosen one filled. Each post is the news item of the approved home page design:
   the 120 x 150 px photograph in the U crop, then the type, place and date in 13 px,
   the 20 px title and the 15 px summary, with an 18 px gap and a thin rule between
   posts. A post with no photograph is the same item without it. */

.news-list {
  display: grid;
  gap: var(--space-8);
  padding-block-end: var(--space-12);
}

.news-choices {
  display: grid;
  gap: var(--space-3);
}

/* Unlike the About row, the choices wrap on a phone, so every choice stays in view. */
.news-choice {
  display: grid;
  gap: var(--space-1);
}

.news-choice__list {
  flex-wrap: wrap;
  width: auto;
  padding-inline: 0;
}

.news-choice__label {
  color: var(--ink-muted);
  font-size: var(--small-size);
  line-height: var(--small-line);
}

.subnav__link[aria-current="true"] {
  background: var(--night);
  color: var(--white);
  box-shadow: none;
}

.news-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr));
  gap: 0 var(--space-12);
  /* No margin of its own, so that the section's space under a heading holds. */
  padding: 0;
  list-style: none;
}

.news-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding-block: 24px;
  border-block-start: var(--line-width) solid var(--line);
}

.news-card--photo {
  grid-template-columns: 120px minmax(0, 1fr);
}

.news-card__photo {
  width: 120px;
  height: 150px;
  object-fit: cover;
  background: var(--photo-ground);
  border-radius: 0 0 var(--radius-u) var(--radius-u);
}

.news-card__text {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.news-card__meta {
  margin: 0;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.4;
}

.news-card__kind {
  color: var(--night);
  font-weight: 700;
}

.news-card__title {
  margin: 0;
  color: var(--night);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
}

.news-card__link {
  color: inherit;
  text-decoration: none;
}

.news-card__link:hover {
  text-decoration: underline;
  text-decoration-thickness: var(--line-width);
  text-underline-offset: 3px;
}

.news-card__summary {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}

.news-none {
  margin: 0;
  color: var(--ink);
}

.news-pages {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
}

.news-pages__older {
  margin-inline-start: auto;
}

/* The post page: its type, place and date over the title, its text as a page's text. */
.news-post__meta {
  margin-block-end: var(--space-3);
}

.news-post__date {
  margin: var(--space-3) 0 0;
  color: var(--ink-muted);
  font-size: var(--small-size);
}

.news-post__lead {
  margin-block-start: var(--space-4);
}

.news-post__body {
  padding-block-end: var(--space-8);
}

.news-post__files,
.news-post__groups {
  display: grid;
  gap: var(--space-2);
  margin-inline: 0;
  padding: 0;
  list-style: none;
}

/* --- The lists of a location page (step 6.6) ---------------------------------------- */
/* A list's heading with the link to the whole list on its right, as the approved
   location design has it ("All girls' groups", "All news"). */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2) var(--space-6);
}

.section-head__link {
  color: var(--night);
  font-size: 15px;
  font-weight: 600;
  text-decoration-thickness: var(--line-width);
  text-underline-offset: 5px;
}

/* One even space between the parts of a location page, as the design has it: the
   highlights keep no space of their own under them when a list follows, and the last
   list keeps the highlights' space above the line still being prepared. */
.programme-section--near:has(+ .location-list) {
  padding-block-end: 0;
}

.location-list:has(+ .page-end) {
  padding-block-end: var(--space-12);
}

/* --- Results: what has been achieved (chosen 4 Dec 2026) ------------------------- */
/* More space between the periods than inside one. */
.achieved-group + .achieved-group,
.programme-section > .achieved-group + .achieved-group {
  margin-block-start: var(--space-12);
}

/* In each period one row per result, on a soft tint of its colour: its icon and name
   on the left, its figures on the right (above them on a phone). A result with one
   figure is a shorter row, not a gap. */
.result-table {
  display: grid;
  gap: var(--space-3);
}

.result-table__row {
  display: grid;
  gap: var(--space-2) var(--space-8);
  padding: var(--space-6);
  border-radius: var(--radius-l);
  background: rgba(29, 33, 82, 0.045);
}

.result-table__row--green {
  background: rgba(44, 122, 75, 0.12);
}

.result-table__row--sun {
  background: rgba(244, 166, 42, 0.12);
}

.result-table__row--clay {
  background: rgba(185, 71, 42, 0.07);
}

@media (min-width: 1000px) {
  .result-table__row {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}

.result-table__head {
  display: flex;
  align-items: center;
  align-self: start;
  gap: var(--space-3);
  margin: 0;
  padding-block-start: 6px;
  color: var(--night);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

/* A row without a result keeps its empty first column on a laptop, so its figures
   line up with the others; on a phone the empty cell takes no room. */
@media (max-width: 999px) {
  .result-table__head:empty {
    display: none;
  }
}

.result-table__head .line-card__icon {
  flex: none;
  width: 40px;
  height: 40px;
  margin: 0;
  background: var(--white);
}

.result-table__head .line-card__icon img {
  width: 24px;
  height: 24px;
}

/* A figure as one line: its number, then its words. */
.figure-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 1000px) {
  .figure-list--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-12);
  }
}

.figure-row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: var(--space-4);
  align-items: baseline;
  padding-block: 10px;
}

.figure-row__number {
  color: var(--night);
  font-size: 1.4rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.figure-row__words {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}
