/* Components – one block per component, flat single-class selectors.
   Breakpoints (Bricks defaults): 991 tablet portrait, 767 mobile landscape,
   478 mobile portrait. Desktop-first. */

/* =============================================================================
   Layout: section, container, backgrounds, grids
   ============================================================================= */

.section {
  padding-block: var(--space-section);
  background-color: var(--color-bg);
  color: var(--color-text);
}
.section-tight-top { padding-top: 0; }
.container {
  width: 100%;
  max-width: calc(var(--container-width) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Background classes: switch the background AND the colour variables, so
   headings, text, links and buttons inside follow. No class = page tint. */
.bg-white { --color-bg: var(--white); --color-surface-alt: var(--sand); }
.bg-tint { --color-bg: var(--sand-dark); --color-surface-alt: var(--white); }
.bg-dark {
  --color-bg: var(--green);
  --color-surface-alt: var(--white);
  --color-text: var(--white);
  --color-text-light: rgba(255, 255, 255, 0.75);
  --color-heading: var(--white);
  --color-link: var(--white);
  --color-link-hover: var(--sand);
  --color-line: rgba(255, 255, 255, 0.3);
  --btn-bg: var(--white);
  --btn-color: var(--green);
  --btn-bg-hover: var(--sand);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  max-width: var(--text-width);
  margin-bottom: var(--space-head);
}
.section-title { margin-top: 0; }
.section-intro { margin-top: 0; }

.stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-text);
}
.stack-s { gap: var(--space-s); }
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  margin-top: var(--space-xl);
}

.grid-2, .grid-3, .grid-4, .grid-2-1, .grid-1-2 {
  display: grid;
  gap: var(--grid-gap);
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--column-gap); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); column-gap: var(--column-gap); }
.grid-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: var(--column-gap); }
.grid-layout-gap { column-gap: var(--column-gap); row-gap: var(--space-xl); }
.align-center { align-items: center; }
.loop-item { display: flex; min-width: 0; }
.loop-item > * { flex: 1; }

@media (max-width: 991px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } /* three cards stay three: no orphan */
  .grid-2-1, .grid-1-2 { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xl); }
}
@media (max-width: 767px) {
  .grid-2, .grid-cards-3 { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xl); }
  .actions { justify-content: center; }
}
@media (max-width: 478px) {
  .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
}

/* Horizontal scroll on mobile for card rows (Figma S-Home: participants, news).
   In Bricks: the same grid with a scroll-snap style at the mobile breakpoint. */
@media (max-width: 767px) {
  .scroller {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    grid-template-columns: none;
    gap: var(--space-s);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter));
    padding: var(--space-m) var(--gutter) var(--space-l);
    scroll-padding-inline: var(--gutter);
    scrollbar-color: var(--green) var(--line);
    scrollbar-width: thin;
  }
  .scroller > * { scroll-snap-align: start; }
}

/* =============================================================================
   Typography helpers
   ============================================================================= */

.intro {
  font-size: var(--text-m);
  line-height: var(--leading-body);
  max-width: var(--text-width);
}
.text-light { color: var(--color-text-light); }
.heading-s {
  font-family: var(--font-serif);
  font-size: var(--text-h4);
  margin-top: 0;
}
.card-title {
  font-family: var(--font-sans);
  font-size: var(--text-m);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  letter-spacing: 0;
  color: var(--color-heading);
  margin-top: 0;
}

/* Text link with a chevron in front (red), e.g. 'Bekijk de plantinstructies' */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-s);
  color: var(--color-link);
  text-decoration: none;
}
.link-arrow::before {
  content: '';
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  background: url('../img/icons/chevron-right-red.svg') center / contain no-repeat;
}
.link-arrow:hover { color: var(--color-link-hover); text-decoration: underline; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-s);
  color: var(--color-link);
  text-decoration: none;
}
.back-link::before {
  content: '';
  width: 2.4rem;
  height: 2.4rem;
  background: url('../img/icons/chevron-left-red.svg') center / contain no-repeat;
}
.back-link:hover { color: var(--color-link-hover); text-decoration: underline; }

/* =============================================================================
   Buttons: btn (green), btn-focus (red), btn-info (white with border)
   ============================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-s);
  min-height: 6rem;
  padding: 1.5rem 2rem;
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius-s);
  background-color: var(--btn-bg);
  color: var(--btn-color);
  font-family: var(--font-sans);
  font-size: 1.8rem;
  font-weight: var(--weight-semibold);
  line-height: var(--leading-body);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition-property: background-color, border-color, box-shadow, color, opacity, transform;
  transition-duration: var(--duration), var(--duration), var(--duration), var(--duration), 0.4s, 0.4s;
  transition-delay: 0ms, 0ms, 0ms, 0ms, var(--reveal-delay, 0ms), var(--reveal-delay, 0ms);
}
.btn:hover {
  background-color: var(--btn-bg-hover);
  border-color: var(--btn-bg-hover);
  color: var(--btn-color);
  box-shadow: var(--shadow-hover);
}
.btn:focus-visible { background-color: var(--btn-bg-hover); border-color: var(--btn-bg-hover); }
.btn-focus {
  --btn-bg: var(--btn-focus-bg);
  --btn-bg-hover: var(--btn-focus-bg-hover);
  --btn-color: var(--white);
}
.btn-info {
  --btn-bg: var(--white);
  --btn-bg-hover: var(--white);
  --btn-color: var(--green);
  border-color: var(--line);
}
.btn-info:hover, .btn-info:focus-visible { border-color: var(--line); }
.btn-block { width: 100%; }
.btn-icon::after {
  content: '';
  width: 2.6rem;
  height: 2.6rem;
  background: url('../img/icons/play-green.svg') center / contain no-repeat;
}

@media (max-width: 478px) {
  .btn { font-size: 1.6rem; padding-inline: 1.6rem; }
}

/* =============================================================================
   Header + navigation
   ============================================================================= */

.site-header {
  position: relative;
  z-index: 20;
  background-color: var(--white);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-l);
  height: var(--header-height);
}
.header-logo { display: block; flex: none; }
.header-logo-img { width: clamp(20rem, 4rem + 18vw, 30.4rem); height: auto; }
.nav {
  display: flex;
  align-items: center;
  gap: clamp(2rem, -2rem + 4.4vw, 4rem);
  margin-left: auto;
}
.nav-list {
  display: flex;
  gap: clamp(1.6rem, -1rem + 2.8vw, 3rem);
  list-style: none;
  padding: 0;
}
.nav-link {
  font-weight: var(--weight-semibold);
  color: var(--green);
  text-decoration: none;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--red); }
.nav-buttons { display: flex; gap: 1.2rem; }
.menu-toggle {
  display: none;
  margin-left: auto;
  width: 4.8rem;
  height: 4.8rem;
  padding: 0;
  border: 0;
  background: url('../img/icons/menu.svg') center / 3.2rem no-repeat;
  cursor: pointer;
}
.menu-toggle[aria-expanded="true"] { background-image: url('../img/icons/close.svg'); }
.nav-item-mobile { display: none; }

/* Tablet + mobile: Bricks Nav Menu with mobile toggle (native); the preview
   toggle lives in site.js. Figma: S-Menu mobile. */
@media (max-width: 991px) {
  .menu-toggle { display: block; }
  .nav-item-mobile { display: list-item; }
  .nav {
    display: none;
    position: fixed;
    inset: var(--header-height) 0 0 0;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: var(--space-xl);
    padding: var(--space-xl) var(--gutter);
    background-color: var(--white);
    overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: center; gap: var(--space-l); }
  .nav-link { font-size: 2rem; }
  .nav-buttons { flex-direction: column-reverse; width: 100%; max-width: 22rem; }
}
@media (max-width: 767px) {
  .header-logo-img { width: 15rem; }
}

/* =============================================================================
   Footer
   ============================================================================= */

.site-footer {
  padding-top: var(--space-3xl);
  background-color: var(--white);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--grid-gap);
}
.footer-logo-img { width: 21.2rem; height: auto; }
.footer-title {
  font-size: var(--text-h4);
  margin-bottom: var(--space-s);
}
.footer-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.footer-link {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--black);
  text-decoration: none;
}
.footer-link::before {
  content: '';
  width: 2.4rem;
  height: 2.4rem;
  flex: none;
  background: url('../img/icons/chevron-right-red.svg') center / contain no-repeat;
}
.footer-link:hover { color: var(--green); text-decoration: underline; }
.footer-partner-logo { width: 20.6rem; height: auto; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-s);
  margin-top: var(--space-3xl);
  padding-block: var(--space-xl);
}
.footer-legal-link { color: var(--green); }

@media (max-width: 991px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-xl); }
}
@media (max-width: 767px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-brand { display: none; } /* Figma S-Home: no logo in the mobile footer */
  .footer-bottom { margin-top: var(--space-xl); border-top: 1px solid var(--line); }
}

/* =============================================================================
   Page intro (white) – h1 + intro, optional back link
   ============================================================================= */

.page-intro {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-3xl);
  background-color: var(--white);
}
.page-intro-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-m);
}
.page-title { margin-top: 0; max-width: var(--text-width); }
.page-title-wide { max-width: none; }
.page-intro-text { max-width: var(--text-width); }
.page-intro-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: var(--column-gap);
  align-items: center;
}

@media (max-width: 767px) {
  .page-intro-split { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xl); }
}

/* =============================================================================
   Home hero (photo/video background + tree counter)
   ============================================================================= */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 70rem;
  padding-block: var(--space-2xl);
  background-color: var(--green);
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: rgba(17, 86, 47, 0.1);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34.5rem;
  column-gap: var(--column-gap);
  align-items: center;
}
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2xl);
}
.hero-title {
  margin-top: 0;
  max-width: 72rem;
  color: var(--white);
  text-shadow: 0 0 40px rgba(0, 0, 0, 0.25);
}
.hero-title-accent { color: var(--sand-dark); }

.counter-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 3.4rem;
  border-radius: 0 var(--radius-m) 0 var(--radius-m);
  background-color: var(--white);
  box-shadow: var(--shadow-card);
}
.counter-label { margin-bottom: var(--space-s); }
.counter-number {
  font-size: var(--text-number);
  font-weight: var(--weight-semibold);
  line-height: 1;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
.counter-sub { color: var(--green); }
.progress {
  height: 1.2rem;
  margin-top: var(--space-s);
  margin-bottom: var(--space-xl);
  border-radius: var(--radius-s);
  background-color: var(--sand);
  overflow: hidden;
}
.progress-bar {
  display: block;
  height: 100%;
  border-radius: var(--radius-s);
  background-color: var(--green);
}

@media (max-width: 991px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xl); }
  .counter-card { max-width: 40rem; }
}
/* Mobile (Figma S-Home): centred title and button on the photo, the counter
   card overlaps the bottom edge of the photo. */
@media (max-width: 767px) {
  .hero {
    display: block;
    min-height: 0;
    padding: 0;
    background-color: var(--white);
  }
  .hero-media { height: 50rem; }
  .hero::before { bottom: auto; height: 50rem; }
  .hero-content {
    align-items: center;
    gap: var(--space-l);
    min-height: 40.5rem;
    justify-content: center;
    text-align: center;
  }
  .hero-title { font-size: 3.6rem; }
  .counter-card { max-width: none; }
  .hero-inner { row-gap: 0; padding-bottom: var(--space-l); }
}

/* =============================================================================
   Media: photos with leaf corners (top-right + bottom-left)
   ============================================================================= */

.media-leaf {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 var(--radius-l) 0 var(--radius-l);
}
.ratio-3-4 { aspect-ratio: 3 / 4; }
.ratio-wide { aspect-ratio: 55 / 28; }
.figure-caption { margin-top: var(--space-xs); font-size: var(--text-s); color: var(--color-text-light); }

/* =============================================================================
   Divider with ribbon ('Scheidingslijn met lint')
   ============================================================================= */

.divider-ribbon {
  position: relative;
  height: 6.4rem;
  margin-block: var(--space-2xl);
}
.divider-ribbon::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid var(--line);
}
.divider-ribbon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 10rem;
  height: 6.4rem;
  transform: translateX(-50%);
  background: url('../img/ribbon.svg') center / contain no-repeat;
}

/* =============================================================================
   Cards
   ============================================================================= */

/* Participant (Deelnemer) */
.card-participant {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 28rem;
  padding: 2.8rem;
  border-radius: 0 var(--radius-m) 0 var(--radius-m);
  background-color: var(--white);
  box-shadow: var(--shadow-card);
}
.card-participant-group { font-size: var(--text-s); color: var(--green); }
.card-participant-name { overflow-wrap: break-word; hyphens: auto; }
.card-participant-place { color: var(--grey); }
.card-participant-count {
  display: flex;
  justify-content: space-between;
  gap: var(--space-s);
  margin-top: auto;
  padding-top: var(--space-m);
  color: var(--green);
}
.card-participant-number { font-weight: var(--weight-semibold); color: var(--red); }

/* News (Bericht) – the whole card is the link */
.card-news {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 41.2rem;
  border-radius: 0 var(--radius-m) 0 var(--radius-m);
  background-color: var(--white);
  box-shadow: var(--shadow-card);
  color: var(--green);
  text-decoration: none;
  transition-property: box-shadow, opacity, transform;
  transition-duration: var(--duration), 0.4s, 0.4s;
  transition-delay: 0ms, var(--reveal-delay, 0ms), var(--reveal-delay, 0ms);
}
.card-news:hover { color: var(--green); box-shadow: 0 0 30px rgba(0, 0, 0, 0.16); }
.card-news-media { position: relative; }
.card-news-img {
  width: 100%;
  height: 21.8rem;
  object-fit: cover;
  border-radius: 0 var(--radius-m) 0 0;
}
.date-label {
  position: absolute;
  left: 3.2rem;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  height: 3rem;
  padding-inline: 1rem;
  background-color: var(--red);
  color: var(--white);
  font-size: var(--text-s);
}
.card-news-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 2rem 3.2rem 2.8rem;
}
.card-news-title { margin-bottom: var(--space-m); }
.card-news:hover .card-news-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.card-news-arrow {
  align-self: flex-end;
  margin-top: auto;
  width: 2.4rem;
  height: 2.4rem;
}

/* Video (Testimonial video) */
.card-video {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}
.card-video-media {
  position: relative;
  border-radius: 0 var(--radius-m) 0 var(--radius-m);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background-color: var(--green);
}
.card-video-poster { width: 100%; height: 100%; object-fit: cover; }
.card-video-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6rem;
  height: 6rem;
  border: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--red) url('../img/icons/play-white.svg') center / 2.6rem no-repeat;
  cursor: pointer;
  transition: background-color var(--duration), transform var(--duration);
}
.play-button:hover { background-color: var(--red-light); transform: translate(-50%, -50%) scale(1.06); }
.card-video-text { margin-top: calc(-1 * var(--space-xs)); }

/* Willow species (Wilgsoort) */
.card-willow {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 0 var(--radius-m) 0 var(--radius-m);
  background-color: var(--white);
  overflow: hidden;
}
.card-willow-img { width: 100%; height: 21.8rem; object-fit: cover; border-radius: 0 var(--radius-m) 0 0; }
.card-willow-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  padding: 2.4rem 2.7rem 3.2rem;
}
.card-willow-latin { font-size: var(--text-s); font-weight: var(--weight-semibold); color: var(--green); }
.card-willow-note {
  padding: 1.2rem 1.6rem;
  border-radius: var(--radius-s);
  background-color: var(--sand);
  color: var(--green);
}
.card-willow-specs { display: flex; flex-direction: column; gap: var(--space-s); }
.spec-label { color: var(--green); }
.spec-value { margin: 0; }

/* Stat tiles: big number + label (Wie doet mee?, Deze actie, Tien wilgen) */
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 20.3rem;
  padding: var(--space-l);
  border: 1px solid var(--line);
  border-radius: 0 var(--radius-m) 0 var(--radius-m);
  background-color: var(--white);
  text-align: center;
  color: var(--green);
}
.stat-card-tint { border-color: var(--sand); background-color: var(--sand); }
.stat-card-small { min-height: 13rem; padding: var(--space-m); }
.stat-number {
  font-size: var(--text-h2);
  font-weight: var(--weight-semibold);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-label { max-width: 24rem; }

/* =============================================================================
   Check list ('Wat ga jij doen?')
   ============================================================================= */

.panel {
  padding: clamp(2.4rem, 1.8rem + 1.6vw, 4.7rem);
  border-radius: 0 var(--radius-m) 0 var(--radius-m);
  background-color: var(--white);
}
.panel-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  column-gap: var(--column-gap);
  row-gap: var(--space-l);
}
.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--space-xl);
  row-gap: var(--space-l);
  list-style: none;
  padding: 0;
}
.checklist-item {
  display: flex;
  gap: var(--space-m);
  font-weight: var(--weight-semibold);
}
.checklist-item::before {
  content: '';
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  margin-top: 0.3rem;
  background: url('../img/icons/check.svg') center / contain no-repeat;
}

@media (max-width: 991px) {
  .panel-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 478px) {
  .checklist { grid-template-columns: minmax(0, 1fr); }
}

/* 'Doe ook mee!' head with the willow sprig on the right */
.sprig-head {
  display: grid;
  grid-template-columns: minmax(0, 72rem) minmax(0, 1fr);
  column-gap: var(--column-gap);
  align-items: end;
}
.sprig {
  justify-self: center;
  width: 24rem;
  margin-bottom: -0.8rem;
}
@media (max-width: 767px) {
  .sprig-head { grid-template-columns: minmax(0, 1fr); }
  .sprig { display: none; }
}

/* =============================================================================
   CTA band (newsletter, 'Zet jouw wilg op de kaart', contact)
   ============================================================================= */

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: var(--column-gap);
  row-gap: var(--space-l);
  align-items: center;
}
.cta-band-text { display: flex; flex-direction: column; gap: var(--space-s); max-width: 72rem; }
.cta-band-title { margin-top: 0; }

@media (max-width: 767px) {
  .cta-band { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .cta-band-text { align-items: center; }
}

/* =============================================================================
   Agenda rows (Agenda)
   ============================================================================= */

.agenda-list {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line);
}
.agenda-row {
  position: relative;
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr) 2.4rem;
  gap: 3.1rem;
  align-items: center;
  padding-block: 2.5rem;
  border-bottom: 1px solid var(--line);
}
.date-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 10rem;
  height: 10rem;
  border-radius: var(--radius-s);
  background-color: var(--green);
  color: var(--white);
  line-height: 1;
}
.date-tile-day { font-size: 4.8rem; font-weight: var(--weight-semibold); }
.date-tile-month { margin-top: 0.6rem; font-size: var(--text-s); text-transform: uppercase; }
.agenda-title {
  font-family: var(--font-sans);
  font-size: var(--text-m);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  letter-spacing: -0.03em;
  color: var(--green);
  margin-top: 0;
}
.agenda-link { color: inherit; text-decoration: none; }
.agenda-link::after { content: ''; position: absolute; inset: 0; } /* whole row clickable */
.agenda-row:hover .agenda-link { text-decoration: underline; text-decoration-thickness: 1px; }
.meta-list {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--space-l);
  row-gap: var(--space-2xs);
  margin-top: var(--space-2xs);
  list-style: none;
  padding: 0;
}
.meta-item { display: inline-flex; align-items: center; gap: 1.2rem; }
.meta-item::before { content: ''; flex: none; width: 2rem; height: 2rem; background: center / contain no-repeat; }
.meta-time::before { background-image: url('../img/icons/clock.svg'); }
.meta-place::before { background-image: url('../img/icons/pin.svg'); }
.meta-organiser::before { background-image: url('../img/icons/users.svg'); width: 2.4rem; }
.meta-date::before { background-image: url('../img/icons/calendar.svg'); }
.agenda-arrow { width: 2.4rem; height: 2.4rem; }

@media (max-width: 767px) {
  .agenda-row { grid-template-columns: 7.2rem minmax(0, 1fr); gap: var(--space-m); align-items: start; }
  .date-tile { width: 7.2rem; height: 7.2rem; }
  .date-tile-day { font-size: 3.2rem; }
  .agenda-arrow { display: none; }
}

/* Agenda item details (single) */
.details-card {
  padding: var(--space-l);
  border: 1px solid var(--line);
  border-radius: 0 var(--radius-m) 0 var(--radius-m);
  background-color: var(--white);
}
.details-list { display: flex; flex-direction: column; gap: var(--space-m); }
.details-label { font-weight: var(--weight-semibold); color: var(--green); }
.details-value { margin: 0; }

/* =============================================================================
   Accordion ('Dit kun jij doen') – Bricks Accordion (nestable) native
   ============================================================================= */

.accordion {
  padding: 1.8rem 4.1rem;
  border-radius: 0 var(--radius-m) 0 var(--radius-m);
  background-color: var(--white);
}
.accordion-item + .accordion-item { border-top: 1px solid var(--line); }
.accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  padding-block: 2.8rem;
  font-size: var(--text-m);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  color: var(--green);
  cursor: pointer;
  list-style: none;
}
.accordion-summary::-webkit-details-marker { display: none; }
.accordion-summary::after {
  content: '';
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  background: url('../img/icons/chevron-down-red.svg') center / contain no-repeat;
  transition: transform var(--duration);
}
.accordion-item[open] > .accordion-summary::after { transform: rotate(180deg); }
.accordion-summary:hover { color: var(--red); }
.accordion-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-s);
  padding-bottom: 2.8rem;
}

@media (max-width: 767px) {
  .accordion { padding: 0.8rem 2.4rem; }
}

/* =============================================================================
   Map (Wie doet mee?) – JetEngine Map Listing in Bricks; static preview here
   ============================================================================= */

.map {
  position: relative;
  aspect-ratio: 110 / 64;
  overflow: hidden;
  background-color: var(--sand-dark);
}
.map-img { width: 100%; height: 100%; object-fit: cover; }
.map-marker {
  position: absolute;
  width: 2.4rem;
  height: 3.2rem;
  padding: 0;
  border: 0;
  transform: translate(-50%, -100%);
  background: url('../img/icons/map-pin.svg') center / contain no-repeat;
  cursor: pointer;
}
.map-marker[aria-expanded="true"] { filter: hue-rotate(205deg) saturate(2.4) brightness(1.4); }
.map-popup {
  position: absolute;
  z-index: 2;
  width: 34.9rem;
  max-width: calc(100% - 2rem);
  padding: 1.5rem 2.3rem 1.8rem;
  border-radius: var(--radius-s);
  background-color: var(--white);
  box-shadow: var(--shadow-card);
  transform: translate(-50%, calc(-100% - 4.4rem));
}
.map-popup::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -1rem;
  width: 2rem;
  height: 1rem;
  transform: translateX(-50%);
  background: url('../img/icons/popup-tip.svg') center / contain no-repeat;
}
.map-popup-close {
  position: absolute;
  right: 0.6rem;
  top: 0.6rem;
  width: 3.2rem;
  height: 3.2rem;
  border: 0;
  background: url('../img/icons/close-small.svg') center / 1.6rem no-repeat;
  cursor: pointer;
}
.map-popup-title { margin-bottom: var(--space-xs); }
.map-popup-row { display: flex; justify-content: space-between; gap: var(--space-s); color: var(--green); }
.map-popup-value { font-weight: var(--weight-semibold); color: var(--red); }

@media (max-width: 767px) {
  .map { aspect-ratio: 4 / 5; }
  .map-img { object-position: 30% 50%; }
}

/* =============================================================================
   Doe mee hero slider – Bricks Slider (nestable) native; preview in site.js
   ============================================================================= */

.slider-slide[hidden] { display: none; }
.slider-nav { display: flex; gap: 1rem; margin-top: var(--space-2xl); }
.slider-button {
  width: 6rem;
  height: 6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--white) url('../img/icons/chevron-right-green.svg') center / 2.4rem no-repeat;
  cursor: pointer;
  transition: box-shadow var(--duration);
}
.slider-button:hover { box-shadow: var(--shadow-hover); }
.slider-prev { background-image: url('../img/icons/chevron-left-green.svg'); }
.slider-media { min-height: 40rem; }

/* =============================================================================
   Forms (JetFormBuilder / Mollie Forms get these through base styles)
   ============================================================================= */

.form-card {
  padding: clamp(2.4rem, 1.8rem + 1.6vw, 4.2rem);
  border-radius: 0 var(--radius-m) 0 var(--radius-m);
  background-color: var(--white);
}
.form { display: flex; flex-direction: column; gap: var(--space-xl); }
.form-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-m);
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.form-legend {
  float: left; /* lets the legend take part in the grid gap */
  width: 100%;
  grid-column: 1 / -1;
  margin-bottom: var(--space-m);
  padding: 0;
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--green);
}
.field { display: flex; flex-direction: column; gap: 0.6rem; grid-column: 1 / -1; min-width: 0; }
.field-half { grid-column: auto; }
.field-label { font-weight: var(--weight-semibold); color: var(--green); }
.field-required { color: var(--red); }
.input {
  width: 100%;
  min-height: 6rem;
  padding: 1.2rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background-color: var(--white);
  transition: border-color var(--duration), box-shadow var(--duration);
}
.input:hover { border-color: var(--grey); }
.input:focus-visible { outline: none; border-color: var(--green); box-shadow: 0 0 0 2px var(--green); }
.input[aria-invalid="true"] { border-color: var(--red); }
.input-short { max-width: 15rem; }
.textarea { min-height: 16rem; resize: vertical; }
.select { appearance: none; padding-right: 4.8rem; background: var(--white) url('../img/icons/chevron-down-red.svg') right 1.6rem center / 2rem no-repeat; }
.field-hint { font-size: var(--text-s); color: var(--grey); }
.field-error { font-size: var(--text-s); color: var(--red); }
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem var(--space-m);
}
.choice { display: flex; align-items: flex-start; gap: 2rem; cursor: pointer; }
.choice-input {
  flex: none;
  appearance: none;
  width: 2.4rem;
  height: 2.4rem;
  margin: 0.3rem 0 0;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background-color: var(--white);
  cursor: pointer;
  transition: border-color var(--duration), background-color var(--duration);
}
.choice-input[type="radio"] { border-radius: 50%; }
.choice-input:hover { border-color: var(--grey); }
.choice-input:checked { border-color: var(--green); background: var(--green) url('../img/icons/check.svg') center / 2.4rem no-repeat; }
.choice-input[type="radio"]:checked { background: var(--white); box-shadow: inset 0 0 0 0.6rem var(--green); }
.choice-input:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.amount-options { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.amount-option { position: relative; }
.amount-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.amount-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 9.6rem;
  min-height: 6rem;
  padding: 0 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--white);
  font-weight: var(--weight-semibold);
  color: var(--green);
  cursor: pointer;
}
.amount-input:checked + .amount-label { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); background-color: var(--sand); }
.amount-input:focus-visible + .amount-label { outline: 2px solid var(--red); outline-offset: 3px; }
.form-message {
  padding: var(--space-m);
  border-radius: var(--radius-s);
  background-color: var(--sand);
  color: var(--green);
  font-weight: var(--weight-semibold);
}
.form-message[hidden] { display: none; }

/* Place autocomplete (PDOK) – preview only; the real list comes from the plugin */
.autocomplete {
  list-style: none;
  margin: 0;
  padding: 0.6rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background-color: var(--white);
  box-shadow: var(--shadow-card);
}
.autocomplete[hidden] { display: none; }
.autocomplete-option { padding: 1rem 1.6rem; cursor: pointer; }
.autocomplete-option:hover, .autocomplete-option[aria-selected="true"] { background-color: var(--sand); }

@media (max-width: 478px) {
  .form-group, .choice-grid { grid-template-columns: minmax(0, 1fr); }
  .field-half { grid-column: 1 / -1; }
}

/* Numbered steps ('Zo werkt het') */
.steps { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--space-m); counter-reset: step; }
.step { display: flex; gap: 2.6rem; counter-increment: step; }
.step::before {
  content: counter(step);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background-color: var(--green);
  color: var(--white);
  font-weight: var(--weight-semibold);
}

/* =============================================================================
   Single post (Nieuwsbericht) and timeline (Deze actie)
   ============================================================================= */

.post-meta { display: flex; align-items: center; gap: var(--space-s); color: var(--grey); }
.post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-m);
  max-width: var(--text-width);
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--line);
}
.post-nav-next { text-align: right; justify-self: end; }
.post-nav-label { display: block; font-size: var(--text-s); color: var(--grey); }
.post-nav-link { display: inline-flex; align-items: center; gap: var(--space-s); color: var(--green); text-decoration: none; }
.post-nav-link:hover { text-decoration: underline; color: var(--green); }
.post-nav-prev .post-nav-link::before,
.post-nav-next .post-nav-link::after {
  content: '';
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  background: url('../img/icons/chevron-left-red.svg') center / contain no-repeat;
}
.post-nav-next .post-nav-link::after { background-image: url('../img/icons/chevron-right-red.svg'); }

.pagination { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: var(--space-xl); list-style: none; padding: 0; }
.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.8rem;
  height: 4.8rem;
  padding-inline: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background-color: var(--white);
  font-weight: var(--weight-semibold);
  color: var(--green);
  text-decoration: none;
}
.pagination-link:hover { box-shadow: var(--shadow-hover); color: var(--green); }
.pagination-link[aria-current="page"] { background-color: var(--green); border-color: var(--green); color: var(--white); }

.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-m);
  list-style: none;
  padding: 0;
  border-top: 2px solid var(--line);
}
.timeline-step { position: relative; padding-top: var(--space-l); }
.timeline-step::before {
  content: '';
  position: absolute;
  left: 0;
  top: -1.1rem;
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--green);
  border-radius: 50%;
  background-color: var(--white);
}
.timeline-step-current::before { background-color: var(--red); border-color: var(--red); }
.timeline-number { display: block; font-size: var(--text-s); color: var(--color-text-light); }
.timeline-title { font-family: var(--font-sans); font-size: var(--text-base); font-weight: var(--weight-semibold); letter-spacing: 0; line-height: var(--leading-snug); margin-top: 0; }

@media (max-width: 767px) {
  .timeline { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 2px solid var(--line); padding-left: var(--space-l); gap: var(--space-m); }
  .timeline-step { padding-top: 0; }
  .timeline-step::before { left: calc(-1 * var(--space-l) - 1.1rem); top: 0.2rem; }
}

/* In-page navigation chips (Wilgen, Privacy) */
.chip-list { display: flex; flex-wrap: wrap; gap: 1.2rem; list-style: none; padding: 0; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 4.4rem;
  padding: 0.4rem 1.8rem;
  border: 1px solid var(--line);
  border-radius: 99rem;
  background-color: var(--white);
  font-weight: var(--weight-semibold);
  color: var(--green);
  text-decoration: none;
}
.chip:hover { border-color: var(--green); color: var(--green); }

/* Tip box (Wilgen, Wilgenweetje) */
.callout {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  padding: var(--space-l);
  border-radius: 0 var(--radius-m) 0 var(--radius-m);
  background-color: var(--color-surface-alt);
  color: var(--black);
}

/* Data list (Doneer – Over Urgenda) */
.data-list { display: flex; flex-direction: column; gap: var(--space-s); }
.data-label { font-weight: var(--weight-semibold); color: var(--green); }
.data-value { margin: 0; }

/* Sticky aside (forms, privacy) */
.sticky { position: sticky; top: var(--space-l); align-self: start; }
@media (max-width: 991px) { .sticky { position: static; } }

/* 404 */
.not-found { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-m); }
.not-found-code { font-family: var(--font-serif); font-size: 16rem; line-height: 1; color: var(--sand-dark); letter-spacing: var(--tracking-tight); }

/* Style guide page only (not for Bricks) */
.sg-swatch { display: flex; flex-direction: column; gap: 0.8rem; font-size: var(--text-s); }
.sg-swatch-color { height: 8rem; border: 1px solid var(--line); border-radius: var(--radius-s); }
.sg-label { font-size: var(--text-s); color: var(--grey); }
.sg-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-m); }

/* =============================================================================
   Page-specific blocks
   ============================================================================= */

.grid-1 { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--grid-gap); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-s); }
.actions-center { justify-content: center; }

/* Home: second listing inside the videos section ('De nieuwste deelnemers') */
.section-head-sub { margin-top: var(--space-3xl); }
.heading-sub { font-size: var(--text-h3); margin-top: 0; }

/* Tien wilgen uit de tuin van Marjan: two tally tiles */
.tally { display: grid; grid-template-columns: repeat(2, minmax(0, 22rem)); gap: var(--space-m); }
@media (max-width: 478px) { .tally { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-s); } }

.ratio-wide-photo { aspect-ratio: 518 / 480; }
@media (max-width: 767px) { .ratio-wide-photo { aspect-ratio: 350 / 324; } }

/* Wie doet mee: map + stats inside the white intro */
.map-block { margin-top: var(--space-2xl); }
.stats { margin-top: var(--space-l); }

/* Deze actie: timeline under the stats */
.timeline-block { margin-top: var(--space-2xl); gap: var(--space-xl); }

/* Nieuwsbericht */
.post-figure { margin-top: var(--space-xl); }
.post-body { margin-top: var(--space-xl); }
.post-lead { font-size: var(--text-m); }
.single-body { margin-top: var(--space-xl); }

/* Doe mee: slider text column */
.slider-text { display: flex; flex-direction: column; justify-content: space-between; align-self: stretch; }
.slider-slides { display: flex; flex-direction: column; gap: var(--space-l); }
.slider-slide { display: flex; flex-direction: column; gap: var(--space-l); }
.slider-title {
  margin-top: 0;
  font-family: var(--font-serif);
  font-size: var(--text-h1);
  font-weight: var(--weight-bold);
  font-optical-sizing: auto;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-heading);
}
.slider-question { display: block; }
@media (max-width: 767px) { .slider-media { min-height: 0; aspect-ratio: 4 / 5; } }

/* Forms: a nested fieldset that only groups (radio group) */
.form-group-plain { margin: 0; padding: 0; border: 0; min-width: 0; }
.input-file { padding-top: 1.6rem; }
.field[hidden] { display: none; }

/* Photo above the text on mobile (Figma S-Home: Waarom wilgen?) */
@media (max-width: 767px) {
  .media-first-mobile { order: -1; }
}
.choice-input[aria-invalid="true"] { border-color: var(--red); }

/* Big video under the page title (Deze actie, Wilgen) – Bricks Video element */
.video-block {
  position: relative;
  width: 100%;
  margin-top: var(--space-m);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0 var(--radius-l) 0 var(--radius-l);
  background-color: var(--green);
}
.video-block-media { width: 100%; height: 100%; object-fit: cover; }
.play-button-l { width: 8.8rem; height: 8.8rem; background-size: 3.4rem; }
.intro-columns { width: 100%; margin-top: var(--space-xl); align-items: start; }
