/* ── Variables (BS3 Jammin' brand guidelines 2026) ── */
:root {
  --forest: #175429;
  --apple: #7dde63;
  --cream: #f2e8cc;
  --lemon: #ffc926;
  --tomato: #d62617; /* with cream text, use at large sizes only */
  --color-bg: var(--forest);
  --color-text: var(--cream);
  --color-accent: var(--apple);
  --color-panel: var(--cream);
  --color-on-panel: var(--forest);
  --line: color-mix(in srgb, currentColor 25%, transparent);
  --font-display: "Clash Grotesk", system-ui, sans-serif;
  --font-body: "Clash Grotesk", system-ui, sans-serif;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --max-width: 1200px;
  --radius: 12px;
  --forest-dark: #0b2a15;
  --paper: #fbf7ea;
  --white: #fff;
  --shade: rgb(0 0 0 / 0.25);
  --forest-dark-veil: rgb(11 42 21 / 0.8);
  /* Pick your own map: one colour per food group (pins, calendar, filters). */
  --map-berries: #6d2a8a;
  --map-apples: var(--apple);
  --map-plums: var(--tomato);
  --map-figs: #ff8a1f;
  --map-nuts: #8a5a2b;
  --map-herbs: #1f9e8f;
  --map-greens: #b8d43a;
  --map-veg: var(--lemon);
  --map-other: #9a9a8a;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.55;
}
a { color: var(--color-accent); }
a:hover { color: var(--color-text); }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
img { max-width: 100%; height: auto; }

.skip-link { position: absolute; inset-block-start: -100%; inset-inline-start: 0; padding: var(--space-sm) var(--space-md); background: var(--lemon); color: var(--forest); z-index: 100; }
.skip-link:focus { inset-block-start: 0; }

.container { max-width: var(--max-width); margin-inline: auto; padding-inline: var(--space-lg); }

/* ── Banner, header, nav ── */
.banner { margin: 0; padding: var(--space-sm) var(--space-lg); background: var(--apple); color: var(--forest); text-align: center; font-weight: 500; }
/* The header sticks to the top while scrolling. Once the page has moved, it shrinks at once (no animation) and gets a thin line
   (nav.js adds .header--scrolled and --banner-height). The space it gives up becomes a bottom margin, so the page itself never
   moves: moving the page is what made the header flicker. */
html { scroll-padding-top: 6rem; }
.header { position: sticky; inset-block-start: calc(-1 * var(--banner-height, 0px)); /* the green notice scrolls away, the menu stays */ z-index: 50; background: var(--color-bg); border-block-end: 1px solid transparent; }
.header { --header-pad: var(--space-lg); --header-pad-small: 0.75rem; }
.header--scrolled { border-block-end-color: var(--line); margin-block-end: calc(2 * (var(--header-pad) - var(--header-pad-small))); }
.header--scrolled .header__inner { padding-block: var(--header-pad-small); }
.header__inner { display: flex; flex-wrap: wrap; gap: var(--space-md) var(--space-lg); align-items: center; justify-content: space-between; padding-block: var(--header-pad); }
.header__logo { display: flex; align-items: center; gap: 0.6rem; color: var(--color-text); }
.logo__tree { height: 2.6rem; aspect-ratio: 248.3 / 158.9; }
.logo__wordmark { height: 1.5rem; aspect-ratio: 698.5 / 77.1; }
.nav__list { display: flex; flex-wrap: wrap; gap: var(--space-sm) 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav__link { color: var(--color-text); text-decoration: none; font-weight: 500; font-size: 1rem; }
.nav__link:hover, .nav__link[aria-current="page"], .nav__link--active { color: var(--color-accent); }
.nav__group { position: relative; }
.nav__list { align-items: baseline; }
.nav__group summary { cursor: pointer; list-style: none; }
.nav__group summary::-webkit-details-marker { display: none; }
.nav__group summary::after { content: ""; display: inline-block; width: 0.4em; height: 0.4em; margin-inline-start: 0.5em; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-0.2em) rotate(45deg); }
.nav__group[open] summary::after { transform: translateY(0.05em) rotate(225deg); }
.nav__sub { position: absolute; z-index: 10; inset-block-start: calc(100% + 0.75rem); inset-inline-end: 0; min-width: 12rem; margin: 0; padding: var(--space-sm) var(--space-md); list-style: none; border-radius: var(--radius); background: var(--cream); }
.nav__sub .nav__link { display: block; padding-block: var(--space-sm); color: var(--forest); }
.nav__sub .nav__link:hover, .nav__sub .nav__link[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; }
.nav__sub :focus-visible { outline-color: var(--forest); }

.nav-toggle { display: none; padding: 0.625rem 1.25rem; border: 2px solid var(--color-text); border-radius: 999px; background: none; color: inherit; font: 600 1rem var(--font-body); cursor: pointer; }
.nav-toggle:hover { border-color: var(--color-accent); color: var(--color-accent); }
@media (max-width: 56rem) {
  .header { --header-pad: 1.25rem; --header-pad-small: 0.5rem; }
  .header__inner { gap: 0.5rem; }
  .header__logo { gap: 0.4rem; }
  .logo__tree { height: 1.8rem; }
  .logo__wordmark { height: 1rem; }
  .js .nav-toggle { display: block; }
  .js .nav { display: none; flex-basis: 100%; }
  .js .nav--open { display: block; max-height: calc(100dvh - 5rem); overflow-y: auto; }
  .js .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .js .nav__list li { border-block-start: 1px solid var(--line); }
  .js .nav__link { display: block; padding-block: 0.875rem; font-size: 1.125rem; }
  .nav__sub { position: static; padding: 0 0 0 var(--space-md); background: none; }
  .nav__sub .nav__link { color: var(--color-text); }
  .nav__sub :focus-visible { outline-color: var(--color-accent); }
}

@media (max-width: 23rem) {
  .logo__tree { height: 1.4rem; }
  .logo__wordmark { height: 0.8rem; }
  .nav-toggle { padding: 0.5rem 1rem; }
}

/* ── Type ── */
.heading { margin: 0 0 var(--space-lg); font-family: var(--font-display); font-weight: 700; font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1; text-transform: uppercase; }
.heading--sub { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-block: var(--space-xl) var(--space-md); }
.meta { font-size: 0.9rem; }

/* ── Hero ── */
.hero { padding-block: var(--space-xl); display: flex; flex-direction: column; gap: var(--space-lg); }
.hero__title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(3.5rem, 11vw, 9.5rem); line-height: 0.92; letter-spacing: -0.03em; text-transform: uppercase; }
.accent { color: var(--color-accent); }
.hero__row { display: flex; flex-wrap: wrap; gap: var(--space-lg) 3.5rem; align-items: flex-start; }
.hero__lead { flex: 1 1 420px; margin: 0; font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.35; font-weight: 500; }
.hero__lead p { margin: 0; }
.hero__lead a { color: inherit; }
.hero__lead strong { color: var(--color-accent); }
.hero__actions { flex: 0 1 340px; display: flex; flex-direction: column; gap: 0.75rem; }

/* ── Buttons ── */
.button { display: inline-block; padding: 1rem 1.75rem; border-radius: var(--radius); font-weight: 600; text-align: center; text-decoration: none; }
.button--primary { background: var(--lemon); color: var(--forest); }
.button--primary:hover { background: var(--apple); color: var(--forest); }
.button--outline { border: 2px solid var(--color-text); color: var(--color-text); }
.button--outline:hover { border-color: var(--color-accent); color: var(--color-accent); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ── Facts strip ── */
.facts { background: var(--lemon); color: var(--forest); }
.facts__inner { display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem; justify-content: space-between; padding-block: 1.5rem; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 1.75vw, 1.4rem); text-transform: uppercase; }

/* ── Sections ── */
.section { padding-block: var(--space-xl) 0; }
.steps { list-style: none; margin: 0; padding: 0; border-block-start: 2px solid var(--color-text); }
.steps__item { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; align-items: baseline; padding-block: 1.5rem; border-block-end: 2px solid var(--color-text); }
.steps__label { flex: 0 0 160px; font-family: var(--font-display); font-weight: 700; font-size: 2.25rem; color: var(--color-accent); text-transform: uppercase; }
.steps__text { flex: 1 1 360px; font-size: 1.375rem; }

/* ── Recipe pages ── */
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: var(--space-md); list-style: none; margin: 0; padding: 0; }
.recipe-card__link { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: var(--radius); color: var(--forest); text-decoration: none; }
.recipe-card__picture { display: block; padding: 1.5rem; background: var(--cream); }
.recipe-card__photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; mix-blend-mode: multiply; /* white backgrounds blend into the cream */ transition: transform 0.3s; }
.recipe-card__link:hover .recipe-card__photo, .recipe-card__link:focus-visible .recipe-card__photo { transform: scale(1.06) rotate(-2deg); }
.recipe-card__text { display: flex; flex: 1; flex-direction: column; gap: 0.5rem; padding: 1.5rem; background: var(--lemon); }
.recipe-card:nth-child(3n + 2) .recipe-card__text { background: var(--apple); }
.recipe-card:nth-child(3n) .recipe-card__text { background: var(--tomato); color: var(--white); }
.recipe-card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; line-height: 1.05; }
.recipe-card__link:hover .recipe-card__title { text-decoration: underline; text-decoration-thickness: 3px; }
.recipe-card__link:hover { color: var(--forest); }
@media (min-width: 56rem) {
  .recipe-card:first-child { grid-column: 1 / -1; }
  .recipe-card:first-child .recipe-card__link { flex-direction: row; }
  .recipe-card:first-child .recipe-card__picture, .recipe-card:first-child .recipe-card__text { flex: 1 1 50%; }
  .recipe-card:first-child .recipe-card__text { justify-content: center; padding: 3rem; }
  .recipe-card:first-child .recipe-card__title { font-size: clamp(3rem, 5.5vw, 4.5rem); line-height: 0.95; }
}

.recipe-hero { display: grid; }
.recipe-hero__text { padding: var(--space-xl) clamp(2rem, 5vw, 4.5rem); align-self: center; }
.recipe-hero__text .page-header__eyebrow a { color: inherit; }
.recipe-hero__title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.75rem, 1rem + 5vw, 5rem); line-height: 0.95; letter-spacing: -0.02em; text-transform: uppercase; overflow-wrap: break-word; }
.recipe-hero__meta { margin: 1.5rem 0 0; font-weight: 600; }
.recipe-hero__picture { display: flex; align-items: center; justify-content: center; padding: var(--space-lg); background: var(--cream); }
.recipe-hero__picture .recipe-card__photo { max-height: 440px; }
@media (min-width: 56rem) { .recipe-hero { grid-template-columns: 1fr 1fr; } }
.recipe__body { padding: var(--space-xl) var(--space-lg); background: var(--paper); color: var(--forest); --color-accent: var(--forest); }
.recipe__body > * { max-width: 760px; margin-inline: auto; }
.recipe__body > ul, .recipe__body > ol { padding-inline-start: 1.5rem; }
.recipe__body li { padding-block: 0.25rem; }
.recipe__body li::marker { color: var(--tomato); font-weight: 700; }
.recipe__body h2 { margin-block: 3rem var(--space-md); font-family: var(--font-display); font-weight: 700; font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1; text-transform: uppercase; color: var(--tomato); }
.recipe__body > :first-child { margin-block-start: 0; }
.recipe__body h3 { margin-block: 2rem 0.5rem; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.15; }
main:has(> .recipe) + .footer { margin-block-start: 0; border-block-start: 0; }

/* ── Homepage quote slider ── */
.quotes { margin-block-start: var(--space-xl); padding-block: var(--space-xl); background: var(--tomato); color: var(--cream); }
.quotes__heading { margin-block: 0 var(--space-lg); }
.quotes__row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; list-style: none; margin: 0; padding: 0; }
.quotes__row::-webkit-scrollbar { display: none; }
.quotes__item { flex: none; display: flex; align-items: center; width: 100%; scroll-snap-align: start; }
.quote { margin: 0; padding-inline-end: var(--space-md); }
.quote__text { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.75rem, 4vw, 3.25rem); line-height: 1.12; letter-spacing: -0.01em; }
.quote__text::before { content: "\201C"; }
.quote__text::after { content: "\201D"; }
.quote__who { margin-block-start: 1.5rem; font-size: 1.25rem; font-weight: 700; }
.slider__controls { display: flex; align-items: center; justify-content: flex-end; margin-block-start: var(--space-lg); }
.slider__controls[hidden] { display: none; }
.slider__arrows { display: flex; gap: 0.75rem; }
.slider__arrow { width: 52px; height: 52px; border: 2px solid currentColor; border-radius: 999px; background: none; color: inherit; font: 600 1.25rem var(--font-body); cursor: pointer; }
.slider__arrow:hover { background: var(--cream); border-color: var(--cream); color: var(--tomato); }
.quotes :focus-visible { outline-color: var(--cream); }

/* ── Gallery and photo viewer ── */
.gallery__grid { display: flex; flex-wrap: wrap; gap: 0.75rem; list-style: none; margin: 0; padding: 0; }
.gallery__grid:not(.gallery__grid--collapsed)::after { content: ""; flex: 10 1 0; }
.gallery__item { flex: var(--ratio) 1 calc(var(--ratio) * 230px); min-width: 0; aspect-ratio: var(--ratio); }
.gallery__item[hidden] { display: none; }
.gallery__link { display: block; height: 100%; overflow: hidden; border-radius: var(--radius); background: var(--shade); }
.gallery__image { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery__link:hover .gallery__image, .gallery__link:focus-visible .gallery__image { transform: scale(1.04); }
.gallery__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md) var(--space-lg); margin-block-start: 1.5rem; }
.gallery__more { background: none; font: 600 1.125rem var(--font-body); cursor: pointer; }
.gallery__more[hidden] { display: none; }
@media (max-width: 40rem) {
  .gallery__grid { gap: 0.5rem; }
  .gallery__item { flex-basis: calc(var(--ratio) * 150px); }
}

body:has(.viewer[open]) { overflow: hidden; }
.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: var(--space-md); border: 0; background: var(--forest-dark); color: var(--cream); }
.viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 0.75rem; }
.viewer::backdrop { background: var(--forest-dark); }
.viewer__bar { display: flex; align-items: center; justify-content: space-between; }
.viewer__count, .viewer__caption { margin: 0; }
.viewer__caption { text-align: center; }
.viewer__stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; touch-action: pan-y pinch-zoom; }
.viewer__image { width: auto; height: auto; max-width: 100%; max-height: 100%; border-radius: var(--radius); view-transition-name: gallery-photo; }
.viewer__button { width: 52px; height: 52px; border: 2px solid var(--cream); border-radius: 999px; background: var(--forest-dark-veil); color: var(--cream); font: 600 1.25rem var(--font-body); cursor: pointer; }
.viewer__button:hover { background: var(--lemon); border-color: var(--lemon); color: var(--forest); }
.viewer__previous, .viewer__next { position: absolute; z-index: 1; inset-block-start: calc(50% - 26px); }
.viewer__previous { inset-inline-start: 0; }
.viewer__next { inset-inline-end: 0; }
.viewer__film { display: flex; gap: 0.5rem; overflow-x: auto; padding: 4px; scrollbar-width: thin; }
.viewer__thumb { flex: none; width: 76px; height: 58px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: none; opacity: 0.55; cursor: pointer; }
.viewer__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.viewer__thumb:hover, .viewer__thumb:focus-visible, .viewer__thumb[aria-current="true"] { opacity: 1; }
.viewer__thumb[aria-current="true"] { outline: 3px solid var(--lemon); }

/* ── Press and Media ── */
.press-band { --color-text: var(--forest); margin-block-start: var(--space-xl); padding-block: var(--space-xl); background: var(--cream); color: var(--forest); }
.press-band + .footer, main:has(> .press-band:last-child) + .footer { margin-block-start: 0; border-block-start: 0; }
.press-band :focus-visible { outline-color: var(--forest); }
.press { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 2.5rem 2rem; list-style: none; margin: 0; padding: 0; }
.press__photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-radius: var(--radius); }
.press__item { display: flex; flex-direction: column; }
.press__source { margin: var(--space-md) 0 0.25rem; font-size: 0.9rem; }
.press__title { margin: 0 0 var(--space-md); font-size: 1.25rem; font-weight: 700; line-height: 1.25; }
.press__more { margin: auto 0 0; }
.press__button { padding: 0.75rem 1.5rem; background: var(--forest); color: var(--cream); font-size: 1rem; }
.press__button:hover { background: var(--tomato); color: var(--white); }

/* ── Page header, colour cards, bands and photo splits ── */
.page-header { padding-block: var(--space-lg); }
.page-header__eyebrow { margin: 0 0 0.75rem; font-weight: 700; font-size: 1.25rem; color: var(--lemon); }
.page-header__title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 8.5vw, 7rem); line-height: 0.95; letter-spacing: -0.02em; text-transform: uppercase; }
.figures { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-md); list-style: none; margin: 0 0 var(--space-lg); padding: 0; }
.figure { grid-column: span 2; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-lg); min-height: 230px; padding: 1.75rem; border-radius: var(--radius); background: var(--cream); color: var(--forest); }
.figure:nth-child(-n + 2) { grid-column: span 3; min-height: 300px; }
.figure:nth-child(1) { background: var(--lemon); }
.figure:nth-child(2) { background: var(--apple); }
.figure:nth-child(3) { background: var(--tomato); color: var(--white); }
.figure__value { font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 6vw, 5rem); line-height: 0.95; letter-spacing: -0.02em; }
.figure:nth-child(-n + 2) .figure__value { font-size: clamp(3.5rem, 11vw, 9rem); }
.figure__label { max-width: 26rem; font-weight: 600; font-size: 1.125rem; line-height: 1.35; }
@media (max-width: 48rem) {
  .figure, .figure:nth-child(-n + 2) { grid-column: 1 / -1; min-height: 0; gap: var(--space-md); }
}

.band { margin-block-start: var(--space-xl); padding-block: var(--space-xl); }
.band--cream { background: var(--cream); color: var(--forest); }
.numbered { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 2rem 1.5rem; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.numbered__step { counter-increment: step; padding-block-start: var(--space-md); border-block-start: 6px solid var(--forest); }
.numbered__step::before { content: counter(step); font-family: var(--font-display); font-weight: 700; font-size: 3.5rem; line-height: 1; color: var(--tomato); }
.numbered__title { margin: 0.5rem 0; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.1; }
.numbered__step p { margin: 0; }

.split { display: grid; background: var(--lemon); color: var(--forest); }
.split__photo { display: block; width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.split__text { align-self: center; padding: var(--space-xl) clamp(2rem, 5vw, 5rem); }
.split__quote { margin: var(--space-lg) 0 var(--space-md); font-family: var(--font-display); font-weight: 700; font-size: clamp(1.375rem, 2.4vw, 2rem); line-height: 1.2; }
.split__quote::before { content: "\201C"; }
.split__quote::after { content: "\201D"; }
.split__label { margin: 0; font-weight: 700; }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1fr; } }

.split--focus-right .split__photo { object-position: 85% center; }
.split--stacked .split__photo { height: auto; min-height: 0; }
.split--stacked .split__text { max-width: 64rem; }
@media (min-width: 56rem) { .split.split--stacked { grid-template-columns: 1fr; } }
.page-header__lead { max-width: 46rem; margin: 1.5rem 0 0; font-weight: 500; font-size: clamp(1.125rem, 1.8vw, 1.5rem); line-height: 1.4; }
.page-header__lead a { color: inherit; }
.band--lemon { background: var(--lemon); color: var(--forest); }
.band--lemon :focus-visible { outline-color: var(--forest); }
.band--lemon + .band--cream { margin-block-start: 0; }
.facts + .band { margin-block-start: 0; }

/* Full-screen sections: a .screen wrapper makes what is inside at least one screen tall (below the sticky header),
   with the content centred. On small screens a section that needs more room simply grows. */
.screen { display: flex; flex-direction: column; min-height: calc(100svh - var(--header-height, 6rem)); }
.screen > * { flex: 1; display: flex; flex-direction: column; justify-content: center; margin-block: 0; }
.screen > .container, .screen > * > .container { width: 100%; }
.screen--hero > .hero { flex: 1; }
.screen--hero > .facts { flex: none; }
/* Optional background photo behind the homepage headline (homePage.heroPhoto). The yellow facts bar stays solid. */
.screen--hero { position: relative; isolation: isolate; }
.screen > .screen__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
main:has(> .screen:last-child) + .footer { margin-block-start: 0; border-block-start: 0; }
.band .event { background: var(--forest); color: var(--cream); --color-accent: var(--apple); --color-text: var(--cream); padding: 0; gap: 0; overflow: hidden; }
.band .event__image { width: min(420px, calc(100% - 3rem)); height: auto; align-self: center; margin: 1.5rem 0 1.5rem 1.5rem; border-radius: var(--radius); }
.band .event__body { justify-content: center; padding: clamp(1.5rem, 4vw, 3rem); }
.band .event__title { font-size: clamp(2.25rem, 4.5vw, 3.75rem); line-height: 0.98; letter-spacing: -0.01em; }
.band .event__row dd { font-weight: 600; }
.band .event .button--outline { border-color: var(--cream); color: var(--cream); }
.band .event .button--outline:hover { background: var(--apple); border-color: var(--apple); color: var(--forest); }
.figures.jump.contact-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.contact-links .jump__link { min-height: 220px; }
.contact-links .figure .figure__label { overflow-wrap: anywhere; font-size: clamp(0.85rem, 4vw, 1.125rem); }
@media (max-width: 48rem) { .figures.jump.contact-links { grid-template-columns: 1fr; } .contact-links .jump__link { min-height: 130px; } }
.band--cream + .band--lemon { margin-block-start: 0; }
main:has(> .split:last-child) + .footer { margin-block-start: 0; border-block-start: 0; }
.figures.facts-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.figures--compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.figures--compact .figure, .figures--compact .figure:nth-child(-n + 2) { grid-column: auto; min-height: 190px; }
.figures--compact .figure .figure__value, .figures--compact .figure:nth-child(-n + 2) .figure__value { font-size: clamp(2.25rem, 5vw, 4.5rem); }
.figures--compact .figure:nth-child(4) { background: var(--cream); color: var(--forest); }
@media (max-width: 48rem) { .figures--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; } .figures--compact .figure, .figures--compact .figure:nth-child(-n + 2) { grid-column: auto; min-height: 0; padding: 1.25rem; gap: var(--space-sm); } .figures--compact .figure__label { font-size: 1rem; } }
.facts-grid .figure, .facts-grid .figure:nth-child(-n + 2) { grid-column: auto; min-height: 200px; justify-content: flex-start; gap: 0.75rem; }
.facts-grid .figure .figure__value, .facts-grid .figure:nth-child(-n + 2) .figure__value { font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.05; overflow-wrap: break-word; }
.facts-grid .figure:nth-child(3) { background: var(--cream); color: var(--forest); }
.facts-grid .figure:nth-child(4) { background: var(--tomato); color: var(--white); }
.facts-grid .figure:nth-child(4) .figure__value { font-size: clamp(2.5rem, 5vw, 4rem); }
@media (max-width: 56rem) { .figures.facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; } .facts-grid .figure, .facts-grid .figure:nth-child(-n + 2) { min-height: 150px; padding: 1.25rem; } .facts-grid .figure .figure__value, .facts-grid .figure:nth-child(-n + 2) .figure__value { font-size: clamp(1.1rem, 5vw, 1.75rem); } .facts-grid .figure__label { font-size: 1rem; } }
.split--apple { background: var(--apple); }
.split--lemon .split__label, .split--apple .split__label { margin-block-end: 0.5rem; }
.split .heading { margin-block-end: var(--space-md); }
.band--tomato { margin-block-start: 0; background: var(--tomato); color: var(--white); }
.band--tomato + .band--cream { margin-block-start: 0; }
.band__lead { max-width: 52rem; margin: 0 0 var(--space-lg); font-weight: 600; font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.35; }
.band--cream a:not(.button) { color: var(--forest); }
main:has(> .band:last-child) + .footer { margin-block-start: 0; border-block-start: 0; }
.give__text { max-width: 46rem; margin-block: var(--space-lg); }
.ruled-list { display: grid; gap: 0.5rem; list-style: none; margin: 0 0 var(--space-lg); padding: 0; }
.ruled-list li { padding-block-start: 0.5rem; border-block-start: 2px solid var(--forest); font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.2; }
.button--dark { background: var(--forest); color: var(--cream); }
.button--dark:hover { background: var(--forest-dark); color: var(--white); }
.button--dark-outline { border: 2px solid var(--forest); color: var(--forest); }
.button--dark-outline:hover { background: var(--forest); color: var(--cream); }
.button--cream { background: var(--cream); color: var(--forest); }
.button--cream:hover { background: var(--white); color: var(--forest); }
.split :focus-visible, .band--cream :focus-visible { outline-color: var(--forest); }
.band--tomato :focus-visible { outline-color: var(--white); }
.figures.jump { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.jump .figure, .jump .figure:nth-child(-n + 2) { grid-column: auto; min-height: 190px; padding: 0; }
.jump__link { display: flex; flex: 1; flex-direction: column; justify-content: space-between; gap: var(--space-md); padding: 1.5rem; border-radius: var(--radius); color: inherit; text-decoration: none; }
.jump__link:hover { color: inherit; text-decoration: underline; text-decoration-thickness: 3px; }
.jump .figure .figure__value, .jump .figure:nth-child(-n + 2) .figure__value { font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
@media (min-width: 56rem) { .split--flip .split__photo { order: 1; } }
@media (max-width: 48rem) {
  .figures.jump { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .jump .figure, .jump .figure:nth-child(-n + 2) { min-height: 130px; }
  .jump__link { padding: 1rem; }
  .jump .figure .figure__value, .jump .figure:nth-child(-n + 2) .figure__value { font-size: 1.6rem; }
}

.years { list-style: none; margin: 0; padding: 0; }
.year { display: grid; gap: var(--space-md) var(--space-lg); align-items: start; padding-block: 2rem; border-block-start: 2px solid var(--color-text); }
.year__title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1; color: var(--color-accent); }
.year__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 1.25rem; margin: 0; }
.year__stat dt { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.15; }
.year__stat dd { margin: 0.25rem 0 0; font-size: 1rem; line-height: 1.4; }
.year__button { justify-self: start; padding: 0.75rem 1.25rem; font-size: 1rem; }
@media (min-width: 64rem) { .year { grid-template-columns: 10rem 1fr auto; } }

/* ── Supporters ── */
.supporters { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, calc(50% - var(--space-md) / 2)), 1fr)); gap: var(--space-md); list-style: none; margin: 0; padding: 0; }
.supporter__link { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: var(--radius); background: var(--forest); color: var(--cream); text-align: center; font-weight: 700; text-decoration: none; }
.band--cream .supporter__link:not(.button) { color: var(--cream); }
.supporter__logo { display: block; width: 100%; height: 170px; padding: 1.25rem; object-fit: contain; background: var(--white); }
.supporter__name { display: flex; flex: 1; align-items: center; justify-content: center; padding: 0.875rem; line-height: 1.2; }
a.supporter__link:hover { background: var(--tomato); }
.band--cream a.supporter__link:not(.button):hover { color: var(--white); }
a.supporter__link .supporter__name { text-decoration: underline; text-underline-offset: 3px; }

/* ── Event listings ── */
.page { padding-block: var(--space-lg) 0; }
/* Text on cream blocks: green links and buttons */
:is(.event, .supporter) { --color-accent: var(--forest); --color-text: var(--forest); }
:is(.event, .supporter) a:not(.button):hover { text-decoration-thickness: 3px; }
:is(.event, .supporter) .button--outline:hover { background: var(--forest); color: var(--cream); }

.event { display: flex; flex-wrap: wrap; gap: var(--space-lg); padding: 1.5rem; margin-block-end: var(--space-md); background: var(--color-panel); color: var(--color-on-panel); border-radius: var(--radius); }
.event__image { flex: 0 0 auto; width: 340px; max-width: 100%; height: auto; align-self: flex-start; border-radius: 8px; }
.event__body { flex: 1 1 320px; display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.event__title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; }
.event__description { margin: 0; }
.event__details { align-self: stretch; margin: 0; font-size: 1rem; }
.event__row { display: grid; grid-template-columns: 6rem 1fr; gap: var(--space-md); padding-block: 0.75rem; border-block-start: 1px solid var(--line); }
.event__row dt { font-weight: 700; color: var(--color-accent); }
.event__row dd { margin: 0; }

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

/* ── Photos ── */
.photo { margin: 0; }
.photo__image { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.photo__credit { margin-block-start: 0.375rem; font-size: 0.8rem; opacity: 0.8; }

.slider__title { margin: var(--space-md) 0 0.25rem; font-family: var(--font-display); font-size: 1.5rem; color: var(--color-accent); }
.slider__text { margin: 0; }

/* ── Footer ── */
.footer { margin-block-start: var(--space-xl); border-block-start: 2px solid var(--cream); }
.footer__inner { display: flex; flex-wrap: wrap; gap: var(--space-lg) 3rem; justify-content: space-between; padding-block: var(--space-xl); }
.footer a { overflow-wrap: anywhere; font-size: clamp(0.95rem, 4.4vw, 1.125rem); }
.footer__heading { margin: 0 0 var(--space-sm); font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--color-accent); }

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

/* Sections fade up as they scroll into view (reveal.js). Only below-the-fold sections are hidden first,
   and nothing is hidden without JavaScript, with reduced motion, or when printing. */
.reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal--in { opacity: 1; transform: none; }
@media print { .reveal { opacity: 1; transform: none; } }

/* Contact form */
#contact-form { margin-block-start: 0; }
.form-layout { display: grid; gap: var(--space-lg); }
.form-layout .heading { margin: 0; }
.form { display: grid; gap: var(--space-md); align-content: start; max-width: 40rem; }
.form p { margin: 0; }
.form__field { display: grid; gap: 0.375rem; font-weight: 600; }
.form__field :is(input, select, textarea) { width: 100%; padding: 0.625rem 0.875rem; border: 2px solid var(--forest); border-radius: var(--radius); background: var(--white); color: var(--forest); font: inherit; font-weight: 400; }
.form__field textarea { resize: vertical; }
.form__button { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.form__status { font-weight: 700; }
/* The robot check and the Send button share a row. The check is a fixed-size box from hCaptcha (303 x 78px). */
.form__send { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-md); }
.form__send .h-captcha { line-height: 0; border: 2px solid var(--forest); border-radius: var(--radius); overflow: hidden; }
.form__send .h-captcha:empty { display: none; }
.form__send .h-captcha iframe { display: block; margin: -1px; }
@media (min-width: 40rem) { .form { grid-template-columns: 1fr 1fr; } .form > :not(.form__field:nth-of-type(2), .form__field:nth-of-type(3)) { grid-column: 1 / -1; } }
@media (min-width: 56rem) { .form-layout { grid-template-columns: 2fr 3fr; } }
.form__fake { padding: var(--space-md); border-radius: var(--radius); background: var(--tomato); color: var(--white); text-align: center; font-size: 1.75rem; }

/* ── Sideways card sliders ── */
.band--deep { background: var(--forest-dark); }
.band + .quotes { margin-block-start: 0; }
.section--spaced-end { margin-block-end: var(--space-xl); }
.slider__row--cards { --per-view: 1.15; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--per-view) - 1) * 1.5rem) / var(--per-view)); gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; list-style: none; margin: 0; padding: 0; }
.slider__row--cards::-webkit-scrollbar { display: none; }
.slider__item { scroll-snap-align: start; position: relative; }
.slider__link { color: inherit; text-decoration: none; }
.slider__link::after { content: ""; position: absolute; inset: 0; }
.slider__link:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.slider__item:has(.slider__link) .slider__image { transition: transform 0.3s; }
.slider__item:has(.slider__link:hover) .slider__image { transform: scale(1.02); }
@media (min-width: 40rem) { .slider__row--cards { --per-view: 2; } }
@media (min-width: 60rem) { .slider__row--cards { --per-view: 3; } }
.slider .slider__arrow:hover { color: var(--forest); }
.slider__image { aspect-ratio: 4 / 5; }
.slider__image--top { object-position: center top; }

/* Mailing list sign-up (EmailOctopus form in the footer). Their form brings its own styles and spacing; this lines it up
   with the rest of the footer: no extra gaps, email box and button side by side at the same height, in our font and
   main button style. */
.footer__signup { flex: 0 1 32rem; }
.footer__signup [data-form], .footer__signup [data-form] .eo-form-wrapper, .footer__signup [data-form] .form-container,
.footer__signup [data-form] .emailoctopus-form-wrapper { margin: 0 !important; padding: 0 !important; }
.footer__signup [data-form] [eo-block-container]:empty { display: none; }
.footer__signup [data-form] .main-form { display: flex; flex-wrap: wrap; gap: var(--space-sm); max-width: 32rem; }
.footer__signup [data-form] [eo-form-fields-container] { flex: 1 1 14rem; }
.footer__signup [data-form] .emailoctopus-form, .footer__signup [data-form] .emailoctopus-form-row, .footer__signup [data-form] .mb-2 { margin: 0 !important; padding: 0; border: 0; }
.footer__signup [data-form] .emailoctopus-form input[type] { font-family: var(--font-body); font-size: 1rem; line-height: 1.5; }
.footer__signup [data-form] .emailoctopus-form .form-control { height: 3.5rem; padding: 0 1rem; border: 0; border-radius: var(--radius); color: var(--forest); }
.footer__signup [data-form] .emailoctopus-form input[type=submit] { width: auto; height: 3.5rem; padding: 0 1.75rem; border: 0; border-radius: var(--radius); background: var(--lemon); color: var(--forest); font-weight: 600; cursor: pointer; }
.footer__signup [data-form] .emailoctopus-form input[type=submit]:hover { background: var(--apple); }
.footer__signup [data-form] .text-center, .footer__signup [data-form] .mastfoot .inner { text-align: left; }
.footer__signup [data-form] .mastfoot { margin-block-start: var(--space-sm); }
.footer__signup [data-form] .mastfoot.no-bg p { margin: 0; background-color: var(--cream); }

/* ── Pick your own map (components/pyo-map.njk, js/pyo-map.js) ── */
.pyo { display: grid; grid-template-columns: minmax(18rem, 26rem) 1fr; min-height: calc(100svh - var(--header-height, 6rem)); margin-block-start: var(--space-xl); background: var(--cream); color: var(--forest); }
.pyo__panel { display: flex; flex-direction: column; gap: 1.25rem; padding: var(--space-lg); }
.pyo__panel p { margin: 0; }
.pyo__panel a { color: var(--forest); font-weight: 600; }
.pyo__missing { padding: var(--space-md); border-radius: var(--radius); background: var(--lemon); font-weight: 600; }
.pyo__heading { margin: 0 0 0.6rem; font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; }
.pyo__months { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.35rem; }
.pyo__month { position: relative; padding: 0.55rem 0; border: 2px solid var(--forest); border-radius: 999px; background: none; color: var(--forest); font: 700 1rem var(--font-body); cursor: pointer; }
.pyo__month[aria-pressed="true"] { background: var(--forest); color: var(--lemon); }
.pyo__month--now::after { content: ""; position: absolute; inset: auto 25% -0.5rem; height: 0.25rem; border-radius: 1rem; background: var(--tomato); }
.pyo__count { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1; text-transform: uppercase; }
.pyo__number { display: block; font-size: clamp(4rem, 8vw, 6.5rem); letter-spacing: -0.04em; color: var(--tomato); }
.pyo__chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pyo__chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.75rem; border: 2px solid var(--forest); border-radius: 999px; background: var(--white); color: var(--forest); font: 600 0.95rem var(--font-body); cursor: pointer; }
.pyo__chip[aria-pressed="true"] { background: var(--forest); color: var(--cream); }
.pyo__chip[aria-pressed="false"] .pyo__dot { opacity: 0.35; }
.pyo__n { font-weight: 700; }
.pyo__dot { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--map-other); }
.pyo__map { position: relative; isolation: isolate; min-height: 70svh; background: var(--paper); } /* isolation keeps the map's layers below the sticky header */
.pyo__map .leaflet-container { position: absolute; inset: 0; font: inherit; }
.pyo__map .leaflet-tile-pane { filter: saturate(0.55) sepia(0.2) brightness(1.03); }
.pyo--no-map .pyo__map { display: none; }
.pyo--no-map { grid-template-columns: 1fr; }
.pyo__pin { display: block; width: 16px; height: 16px; margin: 4px; border: 2px solid var(--white); border-radius: 50%; background: var(--map-other); box-shadow: 0 1px 4px var(--shade); transition: transform 0.25s, opacity 0.25s; }
.pyo__pin--ripe { animation: pyo-pulse 1.8s ease-out infinite; }
.pyo__pin--off { opacity: 0.28; filter: grayscale(1); transform: scale(0.6); }
@keyframes pyo-pulse { from { box-shadow: 0 0 0 0 var(--lemon); } to { box-shadow: 0 0 0 14px transparent; } }
@media (prefers-reduced-motion: reduce) { .pyo__pin--ripe { animation: none; } .pyo__pin { transition: none; } }
:is(.pyo__pin, .pyo__dot, .pyo-cal__cell--on)[data-group="berries"] { background: var(--map-berries); }
:is(.pyo__pin, .pyo__dot, .pyo-cal__cell--on)[data-group="apples"] { background: var(--map-apples); }
:is(.pyo__pin, .pyo__dot, .pyo-cal__cell--on)[data-group="plums"] { background: var(--map-plums); }
:is(.pyo__pin, .pyo__dot, .pyo-cal__cell--on)[data-group="figs"] { background: var(--map-figs); }
:is(.pyo__pin, .pyo__dot, .pyo-cal__cell--on)[data-group="nuts"] { background: var(--map-nuts); }
:is(.pyo__pin, .pyo__dot, .pyo-cal__cell--on)[data-group="herbs"] { background: var(--map-herbs); }
:is(.pyo__pin, .pyo__dot, .pyo-cal__cell--on)[data-group="greens"] { background: var(--map-greens); }
:is(.pyo__pin, .pyo__dot, .pyo-cal__cell--on)[data-group="veg"] { background: var(--map-veg); }
.pyo .leaflet-popup-content { margin: 14px 16px; color: var(--forest); font-family: var(--font-body); font-size: 0.95rem; }
.pyo .leaflet-popup-content p { margin: 0 0 0.5rem; }
.pyo .leaflet-popup-content a { color: var(--forest); font-weight: 700; }
.pyo__pop-title { margin: 0 0 0.3rem; font-size: 1.15rem; line-height: 1.2; }
.pyo__tag { display: inline-block; margin-block-start: 0.2rem; padding: 0.15rem 0.5rem; border-radius: 999px; background: var(--cream); font-size: 0.8rem; font-weight: 700; }
.pyo__tag--ripe { background: var(--apple); }
.pyo + .band { margin-block-start: 0; }
.pyo-cal__wrap { position: relative; overflow-x: auto; }
.pyo-cal { width: 100%; min-width: 40rem; border-collapse: separate; border-spacing: 3px; font-size: 0.95rem; }
.pyo-cal thead th { color: var(--apple); font-weight: 700; text-align: center; }
.pyo-cal tbody th { width: 12rem; text-align: left; }
.pyo-cal__food { padding: 0.15rem 0; border: 0; background: none; color: inherit; font: 600 1rem var(--font-body); text-align: left; cursor: pointer; }
.pyo-cal__food:hover { color: var(--lemon); }
.pyo-cal__n { color: var(--apple); }
.pyo-cal__cell { height: 1.6rem; border-radius: 4px; background: color-mix(in srgb, var(--cream) 8%, transparent); }
.pyo-cal__cell--now { outline: 2px solid var(--lemon); outline-offset: -2px; }
@media (max-width: 56rem) {
  .pyo { display: flex; flex-direction: column; gap: 1.25rem; padding-block: var(--space-lg); }
  .pyo__panel { display: contents; }
  .pyo__panel > * { padding-inline: var(--space-lg); }
  .pyo__panel > :nth-child(n + 3) { order: 2; }
  .pyo__map { order: 1; min-height: 65svh; }
  .pyo-cal tbody th { width: 8.5rem; font-size: 0.9rem; }
  .pyo-cal__food { font-size: 0.9rem; }
}
.pyo-cal tbody th, .pyo-cal thead td { position: sticky; left: 0; z-index: 1; background: var(--forest-dark); }
