/* The Young Farmers Learning Award
   Mobile-first. Colours, tints, typefaces and shape roles follow the TYFLA Brand Guidelines (final);
   the layout follows the Award brochure: one strong photo, flat colour panels, one large shape per composition. */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Zilla Slab";
  src: url("../fonts/zillaslab-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand palette (3.1) */
  --violet: #4e3a9d;
  --green-dark: #045147;
  --green: #6bc75c;
  --orange: #f26108;
  --ochre: #ad7c16;
  --cream: #f6f0e4;
  --white: #fff;
  --ink: #1d1d1b;
  /* Approved 20% tints (3.2) */
  --green-tint: #e1f4de;
  --green-dark-tint: #cddcda;

  --font-sans: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-slab: "Zilla Slab", Georgia, "Times New Roman", serif;

  --gutter: 1rem;
  --maxw: 72rem;
  --radius: 1.25rem;
  --header-h: 4.5rem;
  /* Distance from the container's content edge to the viewport edge, used to bleed panels and photos */
  --bleed: calc((100vw - min(100vw, var(--maxw))) / 2 + var(--gutter));
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
/* Shapes and panels may bleed past the page edges without causing horizontal scroll */
main { overflow-x: hidden; overflow-x: clip; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
p, ul, ol, h1, h2, h3, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
p + p { margin-top: 1em; }

a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-weight: 700; line-height: 1.15; }
/* Section titles in Zilla Slab Bold, as in the brochure */
h2 {
  font-family: var(--font-slab);
  font-size: clamp(2rem, 1.35rem + 2.8vw, 3.25rem);
  line-height: 1.05;
  color: var(--green-dark);
  margin-bottom: 1.25rem;
}
.h-orange { color: var(--orange); } /* only on white: 3.2:1, large text */
.h-violet { color: var(--violet); }
h3 { font-size: 1.25rem; }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: .5rem; top: -4rem; z-index: 100;
  background: var(--green-dark); color: var(--white); padding: .75rem 1rem; border-radius: .5rem;
}
.skip-link:focus { top: .5rem; }

/* Shared text styles */
.label {
  font-family: var(--font-sans);
  font-size: .875rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: .75rem;
}
.lead, .intro { font-size: 1.1875rem; line-height: 1.55; }
/* Second level of hierarchy (4.2): Zilla Slab key statements */
.statement {
  font-family: var(--font-slab);
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.3;
  color: var(--green-dark);
}
.statement-lg { font-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.25rem); margin-bottom: 1.25rem; }
.text-link { font-weight: 600; color: var(--violet); }

.c-green { color: var(--green); }
.c-violet { color: var(--violet); }
.c-orange { color: var(--orange); }
.c-ochre { color: var(--ochre); }
svg use { fill: currentColor; }

/* Buttons. Orange buttons use 19px bold text: white on #f26108 meets WCAG AA for large text. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 3rem;
  padding: .625rem 1.375rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: #d95607; }
.btn-secondary { background: transparent; color: var(--green-dark); border-color: var(--green-dark); }
.btn-secondary:hover { background: var(--green-dark); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--green-dark); }
.btn-white { background: var(--white); color: var(--green-dark); }
.btn-white:hover { background: var(--cream); }
.btn-light { background: var(--white); color: var(--violet); flex-wrap: wrap; }
.btn-light:hover { background: var(--cream); }
.btn-sub { font-weight: 500; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid rgba(4, 81, 71, .12);
}
.header-inner {
  display: flex; align-items: center; gap: .5rem;
  min-height: var(--header-h);
}
/* Clear space around the logo is at least X (height of the T), i.e. ~15% of logo height */
.brand { display: block; padding-block: .625rem; margin-right: auto; flex-shrink: 0; }
.brand img { height: 3.25rem; width: auto; }

.nav { order: 4; }
/* EN / FR switch */
.lang-switch {
  order: 2; display: inline-grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem;
  font-weight: 700; font-size: .9375rem; color: var(--green-dark); text-decoration: none;
  border-radius: 999px;
}
.lang-switch:hover { background: rgba(4, 81, 71, .08); }
.btn-header { order: 3; min-height: 2.75rem; padding: .5rem 1.125rem; }
.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 2.75rem; padding: .5rem .75rem;
  background: none; border: 2px solid var(--green-dark); border-radius: 999px;
  color: var(--green-dark); font: 600 1rem var(--font-sans); cursor: pointer;
}
.nav-toggle-icon, .nav-toggle-icon::before, .nav-toggle-icon::after {
  display: block; width: 1.125rem; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .2s, background-color .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.is-open .nav-toggle-icon { background: transparent; }
.nav.is-open .nav-toggle-icon::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav-toggle-icon::after { transform: translateY(-6px) rotate(-45deg); }

.nav-list a {
  display: block; padding: .75rem var(--gutter);
  font-weight: 500; text-decoration: none; color: var(--green-dark);
}
.nav-list a:hover { text-decoration: underline; }

/* Without JS the menu is a simple wrapped list under the header */
html:not(.js) .nav-toggle { display: none; }
html:not(.js) .header-inner { flex-wrap: wrap; }
html:not(.js) .nav { order: 4; width: 100%; }
html:not(.js) .nav-list { display: flex; flex-wrap: wrap; }
html:not(.js) .nav-list a { padding: .5rem .75rem .5rem 0; }

/* The menu button opens the full list at every width; the language switch and Apply stay outside it */
.js .nav-list {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--cream);
  border-bottom: 1px solid rgba(4, 81, 71, .12);
  box-shadow: 0 12px 24px rgba(4, 81, 71, .08);
  padding-block: .5rem;
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.js .nav.is-open .nav-list { display: block; }

/* Phones: the menu button shows its icon only, to leave room for the language switch */
@media (max-width: 29.99em) {
  .header-inner { gap: .375rem; }
  .brand img { height: 3rem; }
  .btn-header { padding-inline: .75rem; }
  .lang-switch { min-width: 2.25rem; }
  .nav-toggle { gap: 0; padding: .5rem .75rem; }
  .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* Small phones: the header still fits on one line with the longer French label (Candidater).
   The Apply label keeps its 19px bold size (contrast on orange). */
@media (max-width: 24.99em) {
  .header-inner { gap: .25rem; }
  .brand img { height: 2.625rem; }
  .btn-header { padding-inline: .625rem; }
  .lang-switch { min-width: 2rem; }
}
@media (max-width: 359px) {
  .site-header .container { padding-inline: .75rem; }
  .brand img { height: 2.25rem; }
  .btn-header { padding-inline: .5rem; }
  .nav-toggle { padding: .5rem; }
}

/* Hero: full-bleed photo with white text on it (brochure cover) */
.hero-banner {
  position: relative; isolation: isolate;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex; align-items: flex-end;
  color: var(--white);
}
.hero-banner picture, .hero-photo {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 22% 0;
}
/* Dark veil from the brochure cover (#0e0f0e at 43%), reinforced where the text sits */
.hero-banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(14, 15, 14, 0) 25%, rgba(14, 15, 14, .55) 60%, rgba(14, 15, 14, .7) 100%),
    rgba(14, 15, 14, .3);
}
/* Mobile: the top of the photo (her face) stays clear, the text sits on the darker lower part */
.hero-content { padding-block: 14rem 3rem; padding-block: max(14rem, 34svh) 3rem; }
/* The Foundation line, the Award name and the headline form one block */
.hero-kicker { display: flex; flex-direction: column; gap: .25rem; margin-bottom: 1rem; }
.hero-name { font-size: 1.375rem; font-weight: 700; line-height: 1.2; }
.hero-initiative {
  align-self: flex-start;
  font-size: .875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: inherit; text-decoration: underline; text-decoration-thickness: 1px;
  text-decoration-color: rgba(255, 255, 255, .55); text-underline-offset: .3em;
}
.hero-initiative:hover { text-decoration-color: currentColor; }
.display {
  font-family: var(--font-slab);
  font-weight: 700;
  font-size: clamp(2.125rem, 1.25rem + 4.2vw, 4rem);
  line-height: 1.08;
}
.hero .btn-row { margin-top: 1.5rem; }
/* Dates line just below the photo */
.dates-line {
  display: flex; flex-direction: column; gap: .375rem 2rem;
  padding-block: 1.25rem;
  font-size: 1rem; color: var(--green-dark);
}
.dates-line span::before {
  content: ""; display: inline-block; width: .5rem; height: .5rem; margin-right: .5rem;
  border-radius: 50%; background: var(--orange); vertical-align: .12em;
}
.dates-line strong { font-weight: 700; }

/* Sections */
.section { position: relative; padding-block: 3.5rem; }
.section-white { background: var(--white); }
.section-dark { background: var(--green-dark); color: var(--white); }
.section-violet { background: var(--violet); color: var(--white); }
.section-dark h2, .section-violet h2, .section-violet .statement { color: var(--white); }
.section-dark .label, .section-violet .label { color: var(--green); }
.section > .container { z-index: 2; }

.two-col { display: grid; gap: 1.5rem; }

/* Lists with thin rules, no boxes (Who can apply, Launch edition, What we look for) */
.rule-list { display: grid; column-gap: 2rem; border-top: 1px solid var(--green-dark-tint); }
.rule-list > li { padding: .625rem 0; border-bottom: 1px solid var(--green-dark-tint); font-weight: 500; color: var(--green-dark); }

/* 1. The Award: three columns of plain text with the same weight. The green shape (5.2.1 Compose) sits
   on the edge with Mission and vision, half in each section, inside their paddings: it never covers text. */
.award { padding-bottom: 5.5rem; }
.award-shape { position: absolute; z-index: 1; width: 8rem; height: 8rem; left: var(--gutter); bottom: -4rem; pointer-events: none; }
.pillars { display: grid; gap: 1.75rem; margin-top: 2.75rem; }
.pillars h3 { font-size: 1.75rem; color: var(--green-dark); margin-bottom: .375rem; }
.pillars p { max-width: 22rem; }

/* 2. Mission and vision: same weight for both, one larger framed photo */
.section-dark#mission { padding-block: 7rem 6rem; }
.mv-grid { display: grid; gap: 3rem; align-items: center; }
.mv-text { display: grid; gap: 2.5rem; }
.mv-title { font-family: var(--font-slab); font-weight: 700; font-size: 2rem; color: var(--green); margin-bottom: .5rem; }
.mv-statement { font-size: 1.3125rem; font-weight: 500; line-height: 1.45; }

/* Photo frames (5.2.1 Frame) */
.framed { position: relative; }
.framed img { width: 100%; object-fit: cover; background: var(--green-dark-tint); }
.framed-wavy img {
  aspect-ratio: 1;
  -webkit-mask: url("../img/shapes/frame-wavy.svg") center / 100% 100% no-repeat;
  mask: url("../img/shapes/frame-wavy.svg") center / 100% 100% no-repeat;
}
.mv-photo { max-width: 24rem; width: 100%; margin-inline: auto; }

/* 3. Why it matters: the star crosses the edge with Mission and vision and ends above the text,
   so the title and the quote (top-aligned from 64rem) always sit on violet */
.why { padding-top: 8rem; }
.why-shape { position: absolute; z-index: 1; width: 11rem; height: 11rem; right: -1.5rem; top: -4rem; pointer-events: none; }
.why-grid { display: grid; gap: 2.5rem; }
.pullquote p {
  font-family: var(--font-slab); font-weight: 700;
  font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); line-height: 1.1;
}
.pullquote span { display: block; color: var(--green); }

/* 4–5. Launch edition: Africa, and Who can apply, on one grid. From 64rem the photo fills the right
   column from under the countries list down to the statement box, across the two sections. */
.aw-grid { display: grid; gap: 2rem; }
.aw-who { padding-top: 2rem; }
.countries { grid-template-columns: repeat(2, 1fr); }
.countries > li { font-size: 1.125rem; font-weight: 600; }
.org-list { margin-top: 1.5rem; }
.org-list li::first-letter { text-transform: uppercase; }
/* 5.2.1 Compose: the shape crosses the edge of the photo, partly outside the frame */
.who-photo { position: relative; }
.who-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2rem; background: var(--green-dark-tint); }
/* Low on the left edge of the photo (chair and legs), so the faces and the notebook stay visible */
.who-photo-shape { position: absolute; z-index: 1; left: -1rem; bottom: 1.5rem; width: 7.5rem; height: auto; aspect-ratio: 100.71 / 109.71; }
.highlight {
  font-family: var(--font-slab); font-weight: 700;
  font-size: 1.375rem; line-height: 1.3; color: var(--white);
  background: var(--green-dark); border-radius: var(--radius);
  padding: 1.5rem;
}

/* 6. What we look for: same list treatment as Who can apply; the photo is cut by the page edge */
.criteria-grid { display: grid; gap: 2.5rem; }
.eligibility { font-weight: 600; font-size: 1.125rem; color: var(--green-dark); }
.criteria { margin-block: 1.25rem 2rem; }
.criteria > li { padding: 1.125rem 0; font-weight: 400; color: var(--ink); }
.criteria h3 { font-size: 1.25rem; color: var(--green-dark); margin-bottom: .25rem; }
.criteria-photo { margin-inline: calc(-1 * var(--gutter)); }
.criteria-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; background: var(--green-dark-tint); }

/* 7. How to apply: numbered timeline, flat ochre panel (brochure p.6) with the deadline and the buttons */
.section.apply { padding-block: 3.5rem 0; }
.apply-grid { display: grid; }
.apply-steps { padding-bottom: 3rem; }
.steps { counter-reset: step; display: grid; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 2rem 3.75rem;
}
.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: -.125rem;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green-dark); color: var(--white);
  font-weight: 700; font-size: 1.125rem;
}
.steps > li:not(:last-child)::after {
  content: ""; position: absolute; left: 1.25rem; top: 2.75rem; bottom: .375rem;
  border-left: 2px dashed var(--green-dark-tint);
}
.steps > li:last-child { padding-bottom: 0; }
.steps h3 { color: var(--green-dark); font-size: 1.375rem; margin-bottom: .25rem; }
.steps a { font-weight: 600; color: var(--violet); overflow-wrap: anywhere; }
.steps p + p.subject { margin-top: .375rem; }
.subject-line {
  display: block; margin-top: .5rem;
  background: var(--white); border-radius: .5rem; padding: .5rem .75rem;
  font-weight: 600; color: var(--green-dark); overflow-wrap: anywhere;
}

.apply-panel {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  background: var(--ochre); color: var(--white);
  margin-inline: calc(-1 * var(--gutter));
  padding: 3rem var(--gutter) 3.5rem;
}
/* 5.2.1 Badge: the deadline in the scalloped badge */
.deadline {
  position: relative;
  width: 12.5rem; height: 12.5rem; display: grid; place-items: center;
  margin-bottom: 2rem;
}
.deadline-shape { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--violet); }
.deadline-text {
  position: relative; max-width: 10.5rem; color: var(--white); text-align: center;
  font-size: 1.0625rem; font-weight: 600; line-height: 1.2;
}
.deadline-text strong { display: block; font-family: var(--font-slab); font-size: 1.75rem; line-height: 1.05; margin-top: .25rem; }
.apply-actions { display: grid; gap: .75rem; width: 100%; max-width: 24rem; }
/* White on ochre is 3.7:1, so this line is set large and bold */
.reassurance { margin-top: 1.5rem; max-width: 24rem; font-size: 1.1875rem; font-weight: 700; line-height: 1.35; text-align: center; }

/* 8. What can you win? The three colour panels carry the section */
.prizes-intro { max-width: 46rem; }
.prizes { display: grid; gap: 1.25rem; margin-top: 2rem; }
.prize { position: relative; border-radius: var(--radius); padding: 1.75rem 1.5rem; }
.prize-title { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.prize-amount {
  font-family: var(--font-slab); font-weight: 700;
  font-size: clamp(2.75rem, 2rem + 3vw, 4rem); line-height: 1.05;
  margin-block: .25rem .75rem;
}
.prize-winner { background: var(--green-dark); color: var(--white); }
.prize-winner .prize-title, .prize-winner .prize-amount { color: var(--green); }
.prize-second { background: var(--violet); color: var(--white); }
.prize-second .prize-title { color: var(--green); }
.prize-both { background: var(--cream); color: var(--ink); border-left: 6px solid var(--green); }
.prize-both .prize-title { color: var(--violet); margin-bottom: .5rem; }
.prize-both p { font-size: 1.125rem; font-weight: 500; }

/* 9. Jury */
.jury { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.juror { background: var(--white); border-radius: var(--radius); padding: 1.25rem; }
.juror-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: .875rem; margin-bottom: 1rem; background: var(--green-dark-tint); }
.juror-name { font-size: 1.125rem; font-weight: 700; color: var(--green-dark); }
.juror-role { font-size: .9375rem; }
.juror-country { font-size: .9375rem; color: var(--violet); font-weight: 600; }
/* Until the jury is confirmed: a plain line with the clover icon */
.jury-pending { display: flex; align-items: center; gap: .875rem; margin-top: 1.75rem; font-size: 1.125rem; font-weight: 700; color: var(--green-dark); }
.jury-pending-icon { width: 2.5rem; height: 2.5rem; flex-shrink: 0; }

/* 10. Join the movement: full-width violet band, shapes bleeding off the page edges, badge on the top edge */
.join { padding-block: 5.5rem 4.5rem; text-align: center; }
.join-inner { max-width: 44rem; }
.join .intro { margin: 0 auto 2.25rem; max-width: 36rem; }
.join-badge { position: absolute; z-index: 3; left: 50%; top: 0; transform: translate(-50%, -50%); width: 7rem; height: 7rem; }
.join-shape { position: absolute; z-index: 1; }
/* Phones: both shapes cross the section edges, clear of the title and the button */
.join-shape-a { width: 6rem; height: 6rem; left: -3.5rem; top: -2rem; }
.join-shape-b { width: 6rem; height: 6rem; right: -2.5rem; bottom: -2.5rem; }

/* 11. Footer: text and contact on top, the two logos below (2.1.7 co-branding: each logo keeps its clear space) */
.site-footer { background: var(--green-dark); color: var(--white); padding-block: 3rem 2rem; font-size: 1rem; }
.site-footer .label { color: var(--green); }
.footer-grid { display: grid; gap: 2rem; }
.footer-link { font-weight: 600; color: var(--green); }
.footer-logos {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2rem 2.5rem;
  padding-top: 2rem; margin-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, .2);
}
.footer-logo { height: 4rem; width: auto; }
.footer-logo-lf { height: 2.75rem; }
.credits { margin-top: 2rem; font-size: .875rem; opacity: .8; }

/* Confirmation before the questionnaire downloads (every Apply button) */
.apply-dialog {
  width: min(32rem, calc(100vw - 2rem)); max-width: none;
  border: 0; border-radius: var(--radius); padding: 2rem 1.5rem 1.75rem;
  background: var(--white); color: var(--ink);
  box-shadow: 0 24px 48px rgba(14, 15, 14, .25);
}
.apply-dialog::backdrop { background: rgba(14, 15, 14, .55); }
.apply-dialog h2 { font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.125rem); margin-bottom: .75rem; }
.apply-dialog-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ≥ 48rem (768px) */
@media (min-width: 48em) {
  :root { --gutter: 2rem; --header-h: 5.25rem; }
  body { font-size: 1.125rem; }
  .brand img { height: 4rem; }
  .section { padding-block: 5rem; }
  .hero-banner { min-height: min(calc(100vh - var(--header-h)), 48rem); align-items: center; }
  .hero-banner::before {
    background:
      linear-gradient(90deg, rgba(14, 15, 14, .1) 0%, rgba(14, 15, 14, .35) 45%, rgba(14, 15, 14, .6) 100%),
      rgba(14, 15, 14, .2);
  }
  .hero-photo { object-position: 50% 30%; }
  .hero-content { display: grid; grid-template-columns: 1fr minmax(0, 36rem); padding-block: 4rem; }
  .hero-content > * { grid-column: 2; }
  .hero-name { font-size: 1.625rem; }
  /* One line, three items on the same baseline, centred across the width */
  .dates-line { flex-direction: row; flex-wrap: wrap; justify-content: center; font-size: 1.125rem; padding-block: 1.5rem; }
  .two-col { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
  .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; margin-top: 3.5rem; }
  /* Aligned with the left edge of the text; 7rem in each section (Mission and vision has 9rem of top padding) */
  .award { padding-bottom: 9rem; }
  .award-shape { width: 14rem; height: 14rem; left: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); bottom: -7rem; }
  .countries { grid-template-columns: repeat(3, 1fr); }
  .criteria { grid-template-columns: 1fr 1fr; }
  .prizes { grid-template-columns: 1fr 1fr; }
  .prize { padding: 2rem; }
  .prize-both { grid-column: 1 / -1; }
  .org-list { grid-template-columns: 1fr 1fr; }
  .who-photo-shape { width: 10rem; left: max(-2.5rem, calc(-1 * var(--bleed) + .5rem)); bottom: 2rem; }
  .section-dark#mission { padding-block: 9rem 8.5rem; }
  /* The star crosses the edge, half in each section, right-aligned with the content; the text starts below it */
  .why { padding-top: 10rem; }
  .why-shape { width: 15rem; height: 15rem; top: -7rem; right: max(4%, calc((100vw - var(--maxw)) / 2 + var(--gutter))); }
  .apply-panel { padding: 4rem 2rem; }
  .join { padding-block: 7rem 6rem; }
  .join-badge { width: 9.5rem; height: 9.5rem; }
  .join-shape-a { width: 13rem; height: 13rem; left: -5.5rem; top: 2.5rem; }
  .join-shape-b { width: 11rem; height: 11rem; right: -4rem; bottom: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem 4rem; }
  .js .nav-list {
    left: auto; right: var(--gutter); width: 20rem;
    border: 1px solid rgba(4, 81, 71, .12); border-top: 0; border-radius: 0 0 var(--radius) var(--radius);
    padding-block: .75rem;
  }
  .nav-list a { padding: .625rem 1.5rem; }
  .footer-logo { height: 4.5rem; }
  .footer-logo-lf { height: 3rem; }
}

/* ≥ 64rem (1024px) */
@media (min-width: 64em) {
  /* Photo on the left, mission and vision with the same weight on the right */
  .mv-grid { grid-template-columns: 1.05fr 1fr; gap: 5rem; }
  .mv-photo { order: -1; margin: 0; max-width: 34rem; }
  .mv-title { font-size: 2.25rem; }
  .mv-statement { font-size: 1.5rem; }
  /* Title and quote top-aligned, two parallel statements */
  .why-grid { grid-template-columns: 1.1fr 1fr; gap: 5rem; align-items: start; }
  /* The photo spans Launch edition and Who can apply: from under the countries list to the statement box */
  .aw-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 4rem; row-gap: 0;
    grid-template-areas: "africa countries" "africa photo" "who photo" "who highlight";
  }
  .aw-africa { grid-area: africa; }
  .countries { grid-area: countries; align-self: start; }
  .aw-who { grid-area: who; padding-top: 5rem; }
  .who-photo { grid-area: photo; margin-block: 2.5rem 1.5rem; min-height: 18rem; }
  .who-photo img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .highlight { grid-area: highlight; align-self: end; }
  /* What we look for and How to apply share one grid: the photo and the ochre panel have the same left edge */
  .criteria-grid, .apply-grid { grid-template-columns: minmax(0, 1fr) 26rem; column-gap: 4rem; }
  .criteria-section { padding-bottom: 0; }
  .criteria-grid > div { padding-bottom: 3rem; }
  /* The photo runs from the top edge to the bottom edge of the section and stops there; it bleeds off the right edge */
  .criteria-photo { position: relative; margin: -5rem calc(-1 * var(--bleed)) 0 0; }
  .criteria-photo img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  /* The ochre panel starts at the top edge of How to apply, so the photo and the panel meet exactly at the
     boundary between the two sections; its content starts at the height of the title */
  .section.apply { padding-block: 5rem 0; }
  .apply-grid { align-items: stretch; }
  .apply-steps { padding-bottom: 5rem; }
  .apply-panel { margin: -5rem calc(-1 * var(--bleed)) 0 0; padding: 5rem calc(var(--bleed) + 1rem) 4rem 3rem; }
  .prizes { grid-template-columns: 1fr 1fr 1fr; }
  .prize-both { grid-column: auto; }
  .footer-grid { grid-template-columns: 1.4fr 1.1fr .7fr; }
}

@media print {
  .site-header { position: static; }
  .nav, .btn-header, .join-shape, .award-shape, .why-shape, .apply-dialog { display: none !important; }
}
