/* Digital Jungle — section layouts
   Built from v2/*.dc.html. Each block here carries the layout archetype of one
   approved section (V2-PLAN §4); the editable content stays in Gutenberg blocks.

   Rule of thumb used throughout: if an editor would ever want to change it, it
   is a block; if it is scaffolding — the Sweep, the diamonds, the scroll cue,
   the parallax layers — it lives here and never appears in the editor. */

/* ══════════════════════════════════════════════════ shared section furniture */

.dj-section {
  position: relative;
  overflow: hidden;
  /* Kadence's own layout-flow rule (`.wp-block-group-is-layout-flow > *`)
     gives every top-level wp:group a block-spacing margin (32px) and beats
     a plain .dj-section rule on specificity. Sections are meant to butt
     edge-to-edge as solid colour bands — any gap shows raw page bg as a
     stripe — so this one has to win outright. */
  margin-block: 0 !important;
}

/* Every section lays its children out with `gap`. Kadence also gives headings
   and paragraphs their own block margins, and the two add up rather than one
   replacing the other — the hero shipped with 172px between the eyebrow and the
   headline instead of the 22px the design asks for. Spacing inside a section
   comes from its container, and only from its container. */
.dj-section :is(h1, h2, h3, h4, h5, h6, p, figure, ul, ol, blockquote),
.dj-section .wp-block-buttons,
.dj-section .wp-block-image {
  margin-block: 0;
}

.dj-section > .wp-block-group__inner-container,
.dj-section__inner {
  /* width:100% is load-bearing. Several sections make .dj-section a flex
     container to centre their content vertically, which turns this element
     into a flex item — and a flex item sizes to its content, so max-width
     alone left the hero column collapsed to about 770px inside a 1128px
     section and then centred it. */
  width: 100%;
  max-width: var(--dj-measure);
  margin-inline: auto;
  padding-inline: var(--dj-space-5);
  position: relative;
  z-index: 2;
  /* Vertical rhythm between a section's direct children (heading, raw HTML
     blocks, paragraphs) comes from here and only from here — see the file
     header. Every section-specific class that also sets display/gap on this
     same element (dj-pagehero__grid, dj-about__grid, …) is declared further
     down the file and wins on cascade order, so this is purely the default. */
  display: flex;
  flex-direction: column;
  gap: var(--dj-space-5);
}

/* Section eyebrow — the small coloured label above every section heading.
   Carries the Hero Element diamond as a marker (design-system rule: the
   diamond is the bullet, never a bullet character). */
.dj-eyebrow {
  font-family: var(--dj-font-body);
  font-size: var(--dj-text-small);
  font-weight: var(--dj-weight-emphasis);
  color: var(--dj-green);
  display: flex;
  align-items: center;
  gap: var(--dj-space-2);
  margin: 0;
}

.dj-eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  background: currentColor;
  transform: rotate(45deg);
}

.dj-on-dark .dj-eyebrow { color: var(--dj-bright-green); }
.dj-on-purple .dj-eyebrow { color: var(--dj-yellow); }

.dj-on-dark, .dj-on-dark p, .dj-on-purple, .dj-on-purple p { color: var(--dj-white); }
.dj-on-dark :is(h1,h2,h3,h4), .dj-on-purple :is(h1,h2,h3,h4) { color: var(--dj-white); }

/* ═══════════════════════════════════════════════════════════ 4.1 · Hero */

.dj-hero {
  min-height: 90svh;
  display: flex;
  align-items: center;
  background: var(--dj-white);
  padding-block: 48px;
}

/* Back layer: an oversized Sweep in Natural Green, anchored bottom-right and
   bleeding off-canvas. Corner-anchored, never floating — design-system rule. */
.dj-hero::before {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -18%;
  width: 62%;
  aspect-ratio: var(--dj-sweep-aspect);
  background: var(--dj-green);
  opacity: 0.18;
  -webkit-mask-image: var(--dj-sweep);
  mask-image: var(--dj-sweep);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  pointer-events: none;
}

/* Front layer: the headline column. */
.dj-hero__content {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 900px;
}

.dj-hero__title {
  font-size: var(--dj-text-display-xl);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0;
  /* Sweep-shaped wipe, once on load (V2-PLAN §4.1). */
  animation: dj-wipe var(--dj-duration-hero) var(--dj-ease-enter) both;
}

.dj-hero__subline {
  font-family: var(--dj-font-display);
  font-weight: var(--dj-weight-emphasis);
  font-size: clamp(1.1875rem, 2.4vw, 1.75rem);
  color: var(--dj-purple);
  max-width: 620px;
  margin: 0;
}

.dj-hero__lede {
  font-weight: var(--dj-weight-light);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  max-width: 540px;
  margin: 0;
}

/* Mid layer: the cover visual, bottom-right, moving slower than the page. */
.dj-hero__visual {
  position: absolute;
  right: 6%;
  bottom: 6%;
  /* Sized by height, not width: a fixed width overflowed a short viewport's
     hero (the section is min-height-based, so its real height varies) and
     got clipped by the section's overflow:hidden. 753px is the target +40%
     size; min() lets it shrink to fit shorter screens instead of cropping. */
  height: min(88%, 753px);
  width: auto;
  max-width: 73%;
  margin: 0;
  z-index: 1;
  pointer-events: none;
}

.dj-hero__visual img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

/* Scroll cue. Decorative, so it is built here rather than as a block, and it
   is hidden from assistive tech by being generated content. */
.dj-hero::after {
  content: "Scroll to explore";
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--dj-font-body);
  font-size: 0.6875rem;
  color: rgba(0, 0, 0, 0.55);
  animation: dj-pulse-y 2.4s ease-in-out infinite;
}

/* ═══════════════════════════════════════════ EU funding block (compliance) */

.dj-eu {
  display: flex;
  align-items: center;
  gap: var(--dj-space-3);
  margin: 0;
}

/* Footer: logo above the funding line, not beside it, with a white plate
   behind the mark so it reads on the footer's purple fill. */
.dj-eu--stacked { flex-direction: column; align-items: flex-start; gap: 10px; }
.dj-eu__plate { background: var(--dj-white); border-radius: 6px; padding: 8px 12px; display: inline-flex; }

/* The Creative Europe logo file supplied for this — a wide wordmark, not a
   square badge — so this sizes by height only and lets width follow the
   image's own ratio, rather than the fixed navy placeholder box it replaced. */
.dj-eu__emblem {
  height: 32px;
  width: auto;
  flex: none;
  display: block;
}

.dj-eu__text {
  font-family: var(--dj-font-body);
  font-size: var(--dj-text-small);
  line-height: 1.45;
  margin: 0;
}

.dj-eu__text small {
  display: block;
  color: rgba(0, 0, 0, 0.55);
  font-size: inherit;
}

.dj-on-purple .dj-eu__text small,
.dj-on-dark .dj-eu__text small { color: rgba(255, 255, 255, 0.7); }

/* ══════════════════════════════════════════════ 4.2 · Snapshot marquee */

.dj-marquee {
  background: var(--dj-purple);
  padding-block: 22px;
  overflow: hidden;
}

.dj-marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.dj-marquee__track > * {
  display: inline-flex;
  align-items: center;
  gap: var(--dj-space-3);
  font-family: var(--dj-font-display);
  font-size: 0.9375rem;
  font-weight: var(--dj-weight-emphasis);
  color: var(--dj-white);
  white-space: nowrap;
  padding-inline: 22px;
  margin: 0;
}

.dj-marquee__track > *::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--dj-yellow);
  transform: rotate(45deg);
}

/* ═══════════════════════════════════════════════════════════ 4.3 · About */

.dj-about {
  background: var(--dj-off-white);
  padding-block: var(--dj-space-section);
}

.dj-about__grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--dj-space-7);
}

/* 7:5 asymmetric split, sticky heading on the left (V2-PLAN §4.3). */
.dj-about__lead {
  flex: 1 1 420px;
  min-width: 300px;
}

.dj-about__sticky {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: var(--dj-space-4);
}

.dj-about__sticky p:not(.dj-eyebrow) {
  font-weight: var(--dj-weight-light);
  font-size: var(--dj-text-body-lg);
  line-height: 1.6;
  color: #1a1a1a;
  margin: 0;
}

.dj-about__body {
  flex: 1 1 420px;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: var(--dj-space-5);
}

.dj-about__body p {
  font-weight: var(--dj-weight-light);
  font-size: var(--dj-text-body-lg);
  line-height: 1.6;
  margin: 0;
}

/* The illustration sits in front of a thin green outline offset behind it. */
.dj-about__figure {
  position: relative;
  margin: 0;
  width: 90%;
}

.dj-about__figure::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 16px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--dj-green);
  border-radius: var(--dj-radius-photo);
}

.dj-about__figure img {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--dj-radius-photo);
}

.dj-about__figure figcaption {
  font-size: var(--dj-text-small);
  color: rgba(0, 0, 0, 0.55);
  margin-top: var(--dj-space-2);
}

/* ═══════════════════════════════════════════════════════════ responsive */

@media (max-width: 900px) {
  .dj-about__sticky { position: static; }
}

@media (max-width: 768px) {
  /* The hero visual moves below the text rather than behind it (V2-PLAN §8). */
  .dj-hero {
    min-height: 0;
    padding-block: var(--dj-space-7) 0;
  }

  .dj-hero__visual {
    position: static;
    height: auto;
    width: 100%;
    max-width: none;
    margin-top: var(--dj-space-6);
  }

  .dj-hero__visual img { height: auto; width: 100%; }

  .dj-hero::after { display: none; }
  .dj-hero::before { width: 120%; right: -30%; }
}

/* ═════════════════════════════════════════════════ 4.4 · The challenge */
/* Horizontal scroll-snap slider. Five panels, arrows + diamond dots, keyboard
   arrows. Never scroll-hijacks: the page keeps moving normally past it. */

.dj-challenge { background: var(--dj-forest); padding-block: clamp(56px, 7vw, 96px); }

/* v1: off-white section, five bordered-top cards — no slider, no dark bg. */
.dj-challenge--v1 { background: #EEF6F6; }
.dj-challenge-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1100px) { .dj-challenge-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .dj-challenge-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .dj-challenge-grid { grid-template-columns: 1fr; } }
.dj-challenge-card {
  background: var(--dj-white); border-radius: var(--dj-radius-card);
  padding: 26px 22px; display: flex; flex-direction: column; gap: 12px;
  border-top: 6px solid var(--dj-purple);
}
.dj-challenge-card__num { font-family: var(--dj-font-display); font-size: 0.8125rem; font-weight: 700; }
.dj-challenge-card h3 { font-size: 1.1875rem; font-weight: var(--dj-weight-emphasis); line-height: 1.25; color: #000000; }
.dj-challenge-card p { font-size: var(--dj-text-small); font-weight: var(--dj-weight-light); line-height: 1.55; color: #1a1a1a; margin: 0; }

/* Option 2a from Home-Block-Options.dc.html: photo fills the card, a tinted
   gradient wash sits over the bottom, number + title read directly on it. */
/* Break out of the section's padded reading column so the photo row runs
   edge-to-edge — the grid spills past where the heading/lede text above it
   stops. */
.dj-challenge-photos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-inline: calc(-1 * var(--dj-space-5)); }
@media (max-width: 1100px) { .dj-challenge-photos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .dj-challenge-photos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .dj-challenge-photos { grid-template-columns: 1fr; } }
.dj-challenge-photo { position: relative; aspect-ratio: 3/4; border-radius: 12px; overflow: hidden; }
.dj-challenge-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.dj-challenge-photo__wash { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, var(--wash, rgba(138,102,176,0.85)) 100%); pointer-events: none; }
.dj-challenge-photo__caption { position: absolute; left: 12px; bottom: 12px; right: 12px; pointer-events: none; }
.dj-challenge-photo__num { display: block; font-family: var(--dj-font-display); font-weight: 700; font-size: 0.9375rem; color: var(--num, #FECB00); }
.dj-challenge-photo__title { display: block; font-family: var(--dj-font-display); font-weight: var(--dj-weight-emphasis); font-size: 0.8125rem; line-height: 1.3; color: var(--title, #FFFFFF); }

.dj-challenge__head {
  display: flex; flex-wrap: wrap; gap: var(--dj-space-4);
  align-items: flex-end; justify-content: space-between;
  margin-bottom: var(--dj-space-6);
}
.dj-challenge__head > div { display: flex; flex-direction: column; gap: var(--dj-space-3); max-width: 620px; }
.dj-challenge__lede { font-weight: var(--dj-weight-light); font-size: 1rem; line-height: 1.6; color: rgba(255,255,255,0.8); margin: 0; }
.dj-challenge--v1 .dj-challenge__lede { color: #1a1a1a; }

.dj-slider__nav { display: flex; gap: 10px; }
.dj-slider__nav button {
  width: 44px; height: 44px; border-radius: var(--dj-radius-pill);
  border: 1px solid rgba(255,255,255,0.4); background: none;
  color: var(--dj-white); cursor: pointer; font-family: 'Material Symbols Outlined';
  font-size: 20px; line-height: 1; padding: 0;
}
.dj-slider__nav button:hover:not(:disabled) { background: rgba(255,255,255,0.12); }
.dj-slider__nav button:disabled { opacity: 0.35; cursor: default; }

.dj-challenge__track {
  display: flex; gap: var(--dj-space-5);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 0 12px; max-width: var(--dj-measure); margin-inline: auto;
}
.dj-challenge__track > * {
  flex: 0 0 min(560px, 84vw); scroll-snap-align: start;
  background: rgba(255,255,255,0.05); border-radius: var(--dj-radius-card);
  padding: 36px 32px; display: flex; flex-direction: column; gap: var(--dj-space-4);
}
.dj-challenge__num {
  font-family: var(--dj-font-display); font-size: 60px; font-weight: 700;
  color: rgba(255,255,255,0.18); line-height: 1;
}
.dj-challenge__track h3 { font-size: 1.5rem; font-weight: var(--dj-weight-emphasis); color: var(--dj-white); }
.dj-challenge__track p { font-weight: var(--dj-weight-light); line-height: 1.6; color: rgba(255,255,255,0.8); max-width: 440px; }

.dj-dots { display: flex; gap: var(--dj-space-2); justify-content: center; margin-top: var(--dj-space-5); }
/* The diamond stays 9px because that is the design; the button around it is
   44x44 because §8 of the brief requires it. Painting the diamond as a
   pseudo-element separates what is seen from what is pressed. */
.dj-dots button {
  width: 44px; height: 44px; padding: 0; border: none; cursor: pointer;
  background: none; border-radius: 0; position: relative;
  display: inline-flex; align-items: center; justify-content: center;
}
.dj-dots button::before {
  content: ""; width: 9px; height: 9px; transform: rotate(45deg);
  background: rgba(255,255,255,0.35);
  transition: background var(--dj-duration-micro) var(--dj-ease-state);
}
.dj-dots button.is-active::before { background: var(--dj-yellow); }
.dj-dots { gap: 0; }

/* ═══════════════════════════════════════════════════ 4.5 · Methodology */
/* A staggered "toolbelt" — each item offset from its neighbour so the row
   reads as a hand-drawn shelf rather than a grid. */

.dj-method { background: var(--dj-white); padding-block: var(--dj-space-section); }
.dj-method__head { display: flex; flex-direction: column; gap: var(--dj-space-3); max-width: 640px; margin-bottom: 44px; }
.dj-method__belt { display: flex; flex-wrap: wrap; gap: 32px 28px; align-items: flex-start; }
.dj-method__belt > * {
  flex: 1 1 190px; min-width: 170px; max-width: 240px;
  display: flex; flex-direction: column; gap: var(--dj-space-3);
  transition: transform var(--dj-duration-micro) var(--dj-ease-state);
}
/* Every item starts at the same baseline — icon, then title, then text, all
   level with their neighbours (the v2 staggered "toolbelt" offsets are gone). */
.dj-method__belt > *:hover { transform: translateY(-4px) scale(1.04); }
.dj-method__belt img { width: 96px; height: auto; }
.dj-method__belt h3 { font-size: 1.0625rem; font-weight: var(--dj-weight-emphasis); }
/* The v2 markup sets 13.5px here. The brief's §8 floor — body text never below
   16px — is an accessibility commitment on an EU-funded project and outranks a
   size copied from the mockup, so the floor wins. Same call as the type scale. */
.dj-method__belt p { font-size: var(--dj-text-body); font-weight: var(--dj-weight-light); line-height: 1.55; }

/* ══════════════════════════════════════════════════════ 4.6 · Pathways */
/* Four panels, one open at a time. Details/summary carries the state so it
   works with no JavaScript and is keyboard-operable for free. */

.dj-pathways { background: var(--dj-gradient-120); padding-block: clamp(56px, 7vw, 96px); }
.dj-pathways__head { display: flex; flex-direction: column; gap: var(--dj-space-3); max-width: 640px; margin-bottom: var(--dj-space-6); }

/* v1: a plain paper section, four colour cards instead of the v2 accordion. */
.dj-pathways--v1 { background: var(--dj-off-white); }
.dj-pathway-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.dj-pathway-card {
  border-radius: var(--dj-radius-card); padding: 30px 26px; min-height: 280px;
  display: flex; flex-direction: column; gap: 14px;
}
.dj-pathway-card__label { font-size: 0.75rem; font-weight: var(--dj-weight-emphasis); }
.dj-pathway-card h3 { font-size: 1.3125rem; font-weight: var(--dj-weight-emphasis); line-height: 1.25; }
.dj-pathway-card p { font-size: var(--dj-text-small); font-weight: var(--dj-weight-light); line-height: 1.55; flex: 1; margin: 0; }
.dj-pathway-card a { font-size: var(--dj-text-small); font-weight: var(--dj-weight-emphasis); display: inline-flex; align-items: center; gap: 6px; }
.dj-pathway-card .material-symbols-outlined { font-size: 17px; }

.dj-pathway-card:nth-child(1) { background: var(--dj-purple); }
.dj-pathway-card:nth-child(1) h3, .dj-pathway-card:nth-child(1) a { color: var(--dj-white); }
.dj-pathway-card:nth-child(1) p { color: rgba(255,255,255,0.9); }
.dj-pathway-card:nth-child(1) .dj-pathway-card__label { color: var(--dj-yellow); }

.dj-pathway-card:nth-child(2) { background: var(--dj-green); }
.dj-pathway-card:nth-child(2) h3, .dj-pathway-card:nth-child(2) a { color: var(--dj-white); }
.dj-pathway-card:nth-child(2) p { color: rgba(255,255,255,0.92); }
.dj-pathway-card:nth-child(2) .dj-pathway-card__label { color: var(--dj-forest); }

.dj-pathway-card:nth-child(3) { background: var(--dj-white); }
.dj-pathway-card:nth-child(3) h3, .dj-pathway-card:nth-child(3) a { color: #000000; }
.dj-pathway-card:nth-child(3) p { color: #1a1a1a; }
.dj-pathway-card:nth-child(3) .dj-pathway-card__label { color: var(--dj-purple); }

.dj-pathway-card:nth-child(4) { background: var(--dj-forest); }
.dj-pathway-card:nth-child(4) h3, .dj-pathway-card:nth-child(4) a { color: var(--dj-white); }
.dj-pathway-card:nth-child(4) p { color: rgba(255,255,255,0.88); }
.dj-pathway-card:nth-child(4) .dj-pathway-card__label { color: var(--dj-bright-green); }
.dj-pathways__list { display: flex; flex-direction: column; gap: 2px; border-radius: var(--dj-radius-card); overflow: hidden; }

.dj-pathway { background: rgba(0,0,0,0.14); }
.dj-pathway:nth-child(1) { background: var(--dj-purple); }
.dj-pathway:nth-child(2) { background: var(--dj-forest); }
.dj-pathway:nth-child(3) { background: var(--dj-green); }
.dj-pathway:nth-child(4) { background: var(--dj-orchid); }

.dj-pathway > summary {
  list-style: none; cursor: pointer; padding: 22px 26px;
  display: flex; align-items: center; justify-content: space-between; gap: var(--dj-space-4);
  min-height: 44px;
}
.dj-pathway > summary::-webkit-details-marker { display: none; }
.dj-pathway > summary::after {
  content: "\e5cf"; font-family: 'Material Symbols Outlined'; font-size: 24px;
  color: var(--dj-white); flex: none;
  transition: transform var(--dj-duration-micro) var(--dj-ease-state);
}
.dj-pathway[open] > summary::after { transform: rotate(180deg); }
.dj-pathway__label { font-size: 0.8125rem; font-weight: var(--dj-weight-emphasis); color: var(--dj-yellow); display: block; }
.dj-pathway__title { font-family: var(--dj-font-display); font-size: var(--dj-text-title); font-weight: var(--dj-weight-emphasis); color: var(--dj-white); }
.dj-pathway__body { padding: 0 26px 26px; display: flex; flex-direction: column; gap: var(--dj-space-4); align-items: flex-start; }
.dj-pathway__body p { color: rgba(255,255,255,0.9); font-weight: var(--dj-weight-light); max-width: 640px; }
.dj-pathway__body a { color: var(--dj-white); font-weight: var(--dj-weight-emphasis); border-bottom: 2px solid var(--dj-yellow); }

/* ════════════════════════════════════════════════════ 4.7 · Activities */
/* Diagonal trail: a dashed spine with stops alternating left and right.
   Collapses to a single left-hand trail below 900px. */

.dj-trail { background: var(--dj-off-white); padding-block: var(--dj-space-section); }
.dj-trail__head { display: flex; flex-wrap: wrap; gap: var(--dj-space-4); align-items: flex-end; justify-content: space-between; margin-bottom: 56px; }

/* Option 2g from Home-Block-Options.dc.html: all activities as square photo
   tiles, a small coloured tag naming the format, the title in plain text
   underneath — the picture leads, the label is secondary. */
.dj-jungle-grid { background: var(--dj-white); padding-block: var(--dj-space-section); }
.dj-jungle-grid__head { display: flex; flex-direction: column; gap: var(--dj-space-3); max-width: 640px; margin-bottom: var(--dj-space-6); }
.dj-jungle-grid__items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .dj-jungle-grid__items { grid-template-columns: repeat(2, 1fr); } }
.dj-jungle-grid__item { display: flex; flex-direction: column; gap: 8px; }
.dj-jungle-grid__photo { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.dj-jungle-grid__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.dj-jungle-grid__tag {
  position: absolute; left: 8px; top: 8px;
  font-family: var(--dj-font-display); font-size: 0.6875rem; font-weight: var(--dj-weight-emphasis);
  padding: 2px 9px; border-radius: var(--dj-radius-pill);
}
.dj-jungle-grid__title { font-family: var(--dj-font-display); font-size: 0.8125rem; font-weight: var(--dj-weight-emphasis); color: #000000; line-height: 1.3; }
.dj-trail__list { position: relative; display: flex; flex-direction: column; gap: 40px; }
.dj-trail__list::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 0;
  border-left: 2px dashed var(--dj-green); opacity: 0.55; transform: translateX(-50%);
}
.dj-trail__stop { position: relative; width: 50%; padding-inline: 40px; display: flex; flex-direction: column; gap: 6px; }
.dj-trail__stop:nth-child(odd) { align-self: flex-start; text-align: right; align-items: flex-end; }
.dj-trail__stop:nth-child(even) { align-self: flex-end; }
.dj-trail__stop::before {
  content: ""; position: absolute; top: 6px; width: 14px; height: 14px;
  background: var(--dj-green); transform: rotate(45deg);
}
.dj-trail__stop:nth-child(odd)::before { right: -7px; }
.dj-trail__stop:nth-child(even)::before { left: -7px; }
.dj-trail__when { font-size: var(--dj-text-small); font-weight: var(--dj-weight-emphasis); color: var(--dj-purple); white-space: nowrap; }
.dj-trail__stop h3 { font-size: var(--dj-text-title); font-weight: var(--dj-weight-emphasis); }

/* ══════════════════════════════════════════════════════ 4.8 · Toolkit */

.dj-toolkit { background: linear-gradient(135deg, var(--dj-green), var(--dj-purple)); padding-block: clamp(56px, 8vw, 96px); }
.dj-toolkit__grid { display: flex; flex-wrap: wrap; gap: var(--dj-space-7); align-items: center; }
.dj-toolkit__text { flex: 1 1 420px; display: flex; flex-direction: column; gap: var(--dj-space-4); align-items: flex-start; }
.dj-pill {
  display: inline-block; border-radius: var(--dj-radius-pill);
  background: rgba(255,255,255,0.16); color: var(--dj-white);
  font-size: var(--dj-text-small); font-weight: var(--dj-weight-emphasis);
  padding: 7px 16px;
}
/* This badge reads "in development" on a purple cover — yellow-on-black-tint,
   not the translucent-white .dj-pill used for status badges elsewhere. */
.dj-toolkit .dj-pill { background: rgba(0,0,0,0.25); color: var(--dj-yellow); }

/* Both CTAs sit directly on the purple fill, so neither can be purple itself:
   filled yellow for the primary, a white outline for the secondary — the
   Kadence button defaults (purple-on-purple) are invisible here. */
.dj-toolkit .wp-block-button:not(.is-style-outline) .wp-block-button__link {
  background: var(--dj-yellow); color: var(--dj-black); border: none;
}
.dj-toolkit .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { background: var(--dj-white); }
.dj-toolkit .wp-block-button.is-style-outline .wp-block-button__link {
  background: none; color: var(--dj-white); border: 2px solid rgba(255,255,255,0.6);
}
.dj-toolkit .wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: var(--dj-white); }

/* v1: plain centred toolbox, no rotating orbit ring (that was a v2-only flourish). */
.dj-toolkit__art { flex: 1 1 300px; min-width: 260px; display: flex; justify-content: center; }
.dj-toolkit__art img { width: min(300px, 100%); height: auto; display: block; }

/* ═════════════════════════════════════════════════ 4.9 · Youth works */
/* Corkboard: tiles pinned at slight angles, dragged horizontally. */

.dj-cork { background: var(--dj-white); padding-block: var(--dj-space-section); }
.dj-cork__head { display: flex; flex-direction: column; gap: var(--dj-space-3); max-width: 640px; margin-bottom: var(--dj-space-6); }

/* Option 2d from Home-Block-Options.dc.html: a photo mosaic (one tall lead
   tile + four small ones), each corner-tagged by medium, with the section's
   own title living in a dark card that overlaps the mosaic's bottom-left. */
.dj-rangers-mosaic { background: var(--dj-white); padding-block: var(--dj-space-section); }
.dj-rangers-mosaic__wrap { position: relative; }
.dj-rangers-mosaic__grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: repeat(2, 190px); gap: 12px;
}
.dj-rangers-mosaic__cell { position: relative; border-radius: 12px; overflow: hidden; }
.dj-rangers-mosaic__cell--main { grid-row: span 2; }
.dj-rangers-mosaic__cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.dj-rangers-mosaic__tag {
  position: absolute; left: 10px; top: 10px; color: var(--dj-white);
  font-family: var(--dj-font-display); font-size: 0.75rem; font-weight: var(--dj-weight-emphasis);
  padding: 3px 10px; border-radius: var(--dj-radius-pill);
}
.dj-rangers-mosaic__caption {
  position: absolute; left: -14px; bottom: -18px; background: #101014;
  border-radius: 4px 18px 4px 18px; padding: 18px 26px; max-width: 340px;
}
.dj-rangers-mosaic__caption h3 { margin: 0 0 4px; font-size: 1.25rem; font-weight: 700; color: var(--dj-white); }
.dj-rangers-mosaic__caption a { font-size: var(--dj-text-small); font-weight: var(--dj-weight-emphasis); color: var(--dj-yellow); display: inline-flex; align-items: center; gap: 4px; }
@media (max-width: 700px) {
  .dj-rangers-mosaic__grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 140px); }
  .dj-rangers-mosaic__cell--main { grid-column: span 2; grid-row: span 1; }
  .dj-rangers-mosaic__caption { position: static; margin-top: 20px; border-radius: 4px 18px 4px 18px; }
}
.dj-cork__board { display: flex; gap: 26px; overflow-x: auto; padding: 16px 4px 30px; scroll-snap-type: x proximity; cursor: grab; }
.dj-cork__board.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }

/* Each tile is a snapshot card, not a flat colour block: a coloured 4:3 media
   area (icon + placeholder caption) sits over a white body (tag, title, meta),
   pinned at a slight hand-set tilt (V2-PLAN §4.9). */
.dj-cork__tile {
  flex: 0 0 250px; scroll-snap-align: center;
  background: var(--dj-white);
  border-radius: var(--dj-radius-card);
  overflow: hidden;
  user-select: none;
}
.dj-cork__media {
  aspect-ratio: 4 / 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
}
.dj-cork__caption { font-size: 0.6875rem; font-weight: var(--dj-weight-emphasis); color: rgba(255,255,255,0.85); }
.dj-cork__body { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.dj-cork__tag {
  align-self: flex-start;
  font-size: 0.65625rem; font-weight: var(--dj-weight-emphasis); color: var(--dj-forest);
  background: rgba(103,172,172,0.22); border-radius: 999px; padding: 3px 10px;
}
.dj-cork__tile h3 { font-size: 0.9375rem; font-weight: var(--dj-weight-emphasis); color: #000000; }
.dj-cork__meta { font-size: 0.75rem; color: rgba(0,0,0,0.55); }
.dj-cork__empty {
  flex: 0 0 240px; border: 2px dashed rgba(0,0,0,0.2); border-radius: var(--dj-radius-card);
  padding: 22px; display: flex; align-items: center; text-align: center;
  font-weight: var(--dj-weight-light); color: rgba(0,0,0,0.55);
}

/* ═══════════════════════════════════════════════════════ 4.10 · Impact */

.dj-impact { background: var(--dj-forest); padding-block: var(--dj-space-section); }
.dj-impact__head { display: flex; flex-direction: column; gap: var(--dj-space-3); max-width: 640px; margin-bottom: 44px; }
.dj-impact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 36px 28px; }
.dj-impact__item { display: flex; flex-direction: column; gap: var(--dj-space-2); padding-left: var(--dj-space-4); border-left: 2px solid rgba(255,255,255,0.25); }
.dj-impact__value { font-family: var(--dj-font-display); font-weight: 700; font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1; }
.dj-impact__item:nth-child(3n+1) .dj-impact__value { color: var(--dj-bright-green); }
.dj-impact__item:nth-child(3n+2) .dj-impact__value { color: var(--dj-yellow); }
.dj-impact__item:nth-child(3n+3) .dj-impact__value { color: var(--dj-white); }
.dj-impact__label { color: rgba(255,255,255,0.85); font-weight: var(--dj-weight-light); }
.dj-impact__note { margin-top: var(--dj-space-6); font-size: var(--dj-text-small); color: rgba(255,255,255,0.6); }

/* ════════════════════════════════════════════════════ 4.11 · Partners */
/* Three wide rows, not cards. The accent bar grows on hover — width only. */

.dj-partners { background: var(--dj-off-white); padding-block: var(--dj-space-section); }
.dj-partners__head { display: flex; flex-wrap: wrap; gap: var(--dj-space-4); align-items: flex-end; justify-content: space-between; margin-bottom: var(--dj-space-6); }
.dj-partners__list { display: flex; flex-direction: column; gap: var(--dj-space-4); }

/* Home "Consortium" strip — v1: bordered cards, a small logo box (never the
   full-size official file), name + role. .dj-partners--v1 sits on white,
   not the off-white .dj-partners default. */
.dj-partners--v1 { background: var(--dj-white); }
.dj-pstrip__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.dj-pstrip__card {
  border: 1px solid rgba(0,0,0,0.1); border-radius: var(--dj-radius-card);
  padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; color: #000000;
}
.dj-pstrip__card:hover { border-color: var(--dj-purple); }
/* The logo sits in a fixed, modest-height box — this is what keeps a supplied
   file (any native size) from ever dominating the card. */
.dj-pstrip__logo { height: 40px; display: flex; align-items: center; }
.dj-pstrip__logo img { max-width: 140px; max-height: 40px; width: auto; height: auto; object-fit: contain; }
.dj-pstrip__initials {
  background: rgba(138,102,176,0.12); border-radius: 8px; padding: 8px 16px;
  font-family: var(--dj-font-display); font-size: var(--dj-text-small); font-weight: 700; color: var(--dj-purple);
}
.dj-pstrip__name-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.dj-pstrip__name { font-family: var(--dj-font-display); font-size: 1.125rem; font-weight: var(--dj-weight-emphasis); }
.dj-pstrip__badge {
  font-size: 0.6875rem; font-weight: var(--dj-weight-emphasis); color: var(--dj-forest);
  background: rgba(103,172,172,0.25); border-radius: var(--dj-radius-pill); padding: 3px 10px;
}
.dj-pstrip__badge--partner { color: rgba(0,0,0,0.5); background: rgba(0,0,0,0.06); }
.dj-pstrip__country { font-size: var(--dj-text-small); color: rgba(0,0,0,0.55); }
.dj-pstrip__card p { font-size: var(--dj-text-small); font-weight: var(--dj-weight-light); line-height: 1.55; color: #1a1a1a; margin: 0; }
.dj-partner {
  display: flex; align-items: center; gap: var(--dj-space-5);
  background: var(--dj-white); border-radius: var(--dj-radius-card);
  padding: 26px 28px; position: relative; overflow: hidden;
}
.dj-partner::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px;
  transition: width var(--dj-duration-micro) var(--dj-ease-state);
}
.dj-partner:hover::before { width: 14px; }
.dj-partner:nth-child(1)::before { background: var(--dj-purple); }
.dj-partner:nth-child(2)::before { background: var(--dj-green); }
.dj-partner:nth-child(3)::before { background: var(--dj-forest); }
.dj-partner__name { font-family: var(--dj-font-display); font-size: var(--dj-text-title); font-weight: var(--dj-weight-emphasis); }
.dj-partner__country { font-size: var(--dj-text-small); color: rgba(0,0,0,0.55); }

/* ══════════════════════════════════════════════════════ 4.12 · Closing */
/* Bookend to the hero: the Sweep anchors bottom-LEFT here, bottom-right there. */

.dj-closing { background: var(--dj-green); padding-block: var(--dj-space-section); }
.dj-closing::before {
  content: ""; position: absolute; left: -14%; bottom: -22%; width: 58%;
  aspect-ratio: var(--dj-sweep-aspect); background: var(--dj-forest); opacity: 0.2;
  -webkit-mask-image: var(--dj-sweep); mask-image: var(--dj-sweep);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; pointer-events: none;
}
.dj-closing__inner { display: flex; flex-direction: column; gap: var(--dj-space-5); align-items: flex-start; max-width: 820px; }
.dj-closing h2 { font-size: var(--dj-text-display); }
.dj-closing .wp-block-button.is-style-outline .wp-block-button__link {
  background: none; color: var(--dj-white); border: 2px solid var(--dj-white);
}
.dj-closing .wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--dj-white); color: var(--dj-black); }

/* ══════════════════════════════════════════════════════════ responsive */

@media (max-width: 900px) {
  .dj-trail__list::before { left: 7px; transform: none; }
  .dj-trail__stop { width: 100%; padding-inline: 32px 0; }
  .dj-trail__stop:nth-child(odd),
  .dj-trail__stop:nth-child(even) { align-self: flex-start; text-align: left; align-items: flex-start; }
  .dj-trail__stop:nth-child(odd)::before,
  .dj-trail__stop:nth-child(even)::before { left: 0; right: auto; }
}

@media (max-width: 768px) {
  .dj-method__belt > * { margin-top: 0 !important; max-width: none; flex-basis: 45%; }
  .dj-impact__grid { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════ INNER PAGES (V2-PLAN §5) */

/* Shared page hero. Smaller than the home hero by design: only the home page
   uses display-xl — see the note on --dj-text-page-title. */
.dj-pagehero { padding-block: clamp(56px, 7vw, 96px); }
.dj-pagehero__inner { display: flex; flex-direction: column; gap: var(--dj-space-4); max-width: 820px; align-items: flex-start; }
.dj-pagehero h1 { font-size: var(--dj-text-page-title); line-height: 1.06; }
.dj-pagehero--purple { background: var(--dj-purple); }
.dj-pagehero--gradient { background: var(--dj-gradient); }

/* Status pill under a hero lede — "Coming soon", "Registration soon" etc. */
.dj-badge {
  font-size: var(--dj-text-small); font-weight: var(--dj-weight-emphasis);
  border-radius: var(--dj-radius-pill); padding: 6px 14px; align-self: flex-start;
}
.dj-badge--purple { color: var(--dj-purple); background: rgba(138,102,176,0.12); }
.dj-pagehero--white { background: var(--dj-white); }
.dj-pagehero--purple::before, .dj-pagehero--gradient::before {
  content: ""; position: absolute; right: -10%; bottom: -30%; width: 48%;
  aspect-ratio: var(--dj-sweep-aspect); background: var(--dj-white); opacity: 0.12;
  -webkit-mask-image: var(--dj-sweep); mask-image: var(--dj-sweep);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; pointer-events: none;
}
/* About hero specifically: teal Sweep, larger and more visible — root spec. */
.dj-pagehero--purple::before {
  right: -80px; bottom: -50px; width: 460px; background: var(--dj-green); opacity: 0.5;
}

.dj-plain { padding-block: var(--dj-space-section-md); }
.dj-plain--white { background: var(--dj-white); }
.dj-plain--paper { background: var(--dj-off-white); }
.dj-plain--forest { background: var(--dj-forest); }

/* ── About: narrative with a sticky project-snapshot rail ─────────────── */
.dj-narrative__grid { display: flex; flex-wrap: wrap; gap: var(--dj-space-7); align-items: flex-start; }
.dj-narrative__body { flex: 1 1 460px; display: flex; flex-direction: column; gap: var(--dj-space-5); }
.dj-narrative__body p { font-weight: var(--dj-weight-light); font-size: var(--dj-text-body-lg); line-height: 1.6; }
/* Measured against the approved panel: 526px wide, 32/28 padding, 18px between
   rows, each row a 3px-gap pair with a 14px-deep hairline under it. Building it
   at 340px made every value wrap and the section 36 % taller than the design. */
.dj-snapshot {
  flex: 0 1 526px; min-width: 300px; align-self: flex-start;
  position: sticky; top: 100px;
  background: var(--dj-off-white); border-radius: var(--dj-radius-card);
  padding: 32px 28px;
}
/* No flex gap here on purpose. A gap applies between every child, and dt/dd
   alternate — so an 18px gap put 18px inside each label/value pair as well as
   between pairs, adding about 160px to the panel. The design separates pairs
   with a top margin on the label instead, and keeps 3px inside the pair. */
.dj-snapshot dl { margin: 0; display: block; }
.dj-snapshot dt {
  font-size: var(--dj-text-small); color: rgba(0, 0, 0, 0.55);
  font-weight: var(--dj-weight-body); margin: 18px 0 3px;
}
.dj-snapshot dt:first-child { margin-top: 0; }
.dj-snapshot dd {
  margin: 0; padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: var(--dj-text-small); font-weight: var(--dj-weight-body);
  line-height: 1.45;
}
.dj-snapshot dl > *:last-child { border-bottom: none; padding-bottom: 0; }

/* Tag cloud — sizes are assigned by prominence, never at random. */
.dj-cloud { display: flex; flex-wrap: wrap; gap: var(--dj-space-3); }
.dj-cloud span { border-radius: var(--dj-radius-pill); padding: 11px 22px; color: var(--dj-white); font-family: var(--dj-font-display); font-weight: var(--dj-weight-emphasis); }

/* Audience bands — five stacked full-width strips, each its own colour. */
.dj-bands { display: flex; flex-direction: column; }
.dj-band { padding-block: clamp(40px, 5vw, 64px); }
.dj-band__inner { max-width: var(--dj-measure); margin-inline: auto; padding-inline: var(--dj-space-5); display: flex; flex-direction: column; gap: var(--dj-space-3); }
.dj-band h3 { font-size: var(--dj-text-headline); }
.dj-band p { font-weight: var(--dj-weight-light); max-width: 780px; }
.dj-band blockquote { margin: 0; font-family: var(--dj-font-display); font-weight: var(--dj-weight-emphasis); font-size: var(--dj-text-title); }

/* ── Activities: calendar trail with sticky season labels ─────────────── */
.dj-chips { display: flex; flex-wrap: wrap; gap: var(--dj-space-2); }
.dj-chip { border-radius: var(--dj-radius-pill); padding: 9px 18px; font-size: var(--dj-text-small); font-weight: var(--dj-weight-emphasis); border: 1px solid var(--dj-purple); color: var(--dj-purple); background: none; }
.dj-chip--on { background: var(--dj-purple); color: var(--dj-white); }
.dj-chip--off { border-color: rgba(0,0,0,0.2); color: rgba(0,0,0,0.55); cursor: not-allowed; }

.dj-season { display: flex; flex-wrap: wrap; gap: var(--dj-space-5); align-items: flex-start; padding-block: var(--dj-space-5); border-top: 1px solid rgba(0,0,0,0.1); }
.dj-season__label { flex: 0 0 180px; position: sticky; top: 100px; font-family: var(--dj-font-display); font-size: var(--dj-text-title); font-weight: var(--dj-weight-emphasis); color: var(--dj-purple); }
.dj-season__items { flex: 1 1 420px; display: flex; flex-direction: column; gap: var(--dj-space-4); }
.dj-event { background: var(--dj-white); border-radius: var(--dj-radius-card); padding: 20px 22px; display: flex; flex-direction: column; gap: var(--dj-space-2); }
.dj-event__top { display: flex; flex-wrap: wrap; gap: var(--dj-space-3); align-items: baseline; justify-content: space-between; }

/* Events list — v1 card variant: one article per event, a season/year badge,
   four fixed metadata icons and a per-event CTA (V2-PLAN root "Events list"). */
.dj-eventcard__count { font-size: var(--dj-text-small); color: rgba(0,0,0,0.55); display: block; margin-bottom: var(--dj-space-5); }
.dj-eventcard__list { display: flex; flex-direction: column; gap: var(--dj-space-4); }
.dj-eventcard {
  background: var(--dj-white); border-radius: var(--dj-radius-card);
  padding: 26px 28px; display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center;
}
.dj-eventcard__badge {
  flex: none; width: 108px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: rgba(138,102,176,0.1); border-radius: var(--dj-radius-card); padding: 14px 8px;
}
.dj-eventcard__season { font-family: var(--dj-font-display); font-size: 1.1875rem; font-weight: var(--dj-weight-emphasis); color: var(--dj-purple); line-height: 1; white-space: nowrap; }
.dj-eventcard__year { font-size: 0.75rem; color: rgba(0,0,0,0.6); }
.dj-eventcard__body { flex: 1 1 340px; min-width: 260px; display: flex; flex-direction: column; gap: var(--dj-space-2); }
.dj-eventcard__head { display: flex; flex-wrap: wrap; gap: var(--dj-space-2); align-items: center; }
.dj-eventcard__head h2 { font-size: 1.25rem; font-weight: var(--dj-weight-emphasis); line-height: 1.25; }
.dj-eventcard__body p { font-size: 0.875rem; font-weight: var(--dj-weight-light); line-height: 1.55; max-width: 620px; }
.dj-eventcard__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 4px; }
.dj-eventcard__meta-item { font-size: var(--dj-text-small); color: rgba(0,0,0,0.6); display: inline-flex; align-items: center; gap: 5px; }
.dj-eventcard__meta-icon { font-size: 16px; color: var(--dj-green); }
.dj-eventcard__cta {
  flex: none; font-family: var(--dj-font-display); font-size: 0.875rem; font-weight: var(--dj-weight-emphasis);
  color: var(--dj-purple); border: 2px solid var(--dj-purple); border-radius: var(--dj-radius-pill); padding: 10px 22px;
}
.dj-eventcard__cta:hover { color: var(--dj-green); border-color: var(--dj-green); }
.dj-status { border-radius: var(--dj-radius-pill); padding: 4px 12px; font-size: 0.75rem; font-weight: var(--dj-weight-emphasis); background: rgba(0,0,0,0.07); color: rgba(0,0,0,0.6); white-space: nowrap; }
.dj-status--dev { background: rgba(138,102,176,0.15); color: var(--dj-purple); }
.dj-status--live { background: rgba(1,91,55,0.12); color: var(--dj-forest); }
.dj-status--soon { background: rgba(108,181,139,0.25); color: var(--dj-forest); }
.dj-status--archived { background: rgba(0,187,225,0.15); color: #00758D; }

/* Results hero legend — same four status colours, sized for a standalone row. */
.dj-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.dj-legend .dj-status { padding: 6px 14px; font-size: 0.75rem; }

/* ── Toolkit: deliberately uneven tile sizes, tinted per category ─────── */
/* True masonry via CSS columns, which is what the approved component uses:
   `columns: 3 260px`. A grid with span tricks gives an even, blocky rhythm —
   the design's uneven one comes from cards simply flowing down each column. */
/* Grid, not CSS-column masonry: every tile in a row stretches to the row's
   tallest neighbour, and the description clamps to two lines, so the twelve
   cards read as one even brick pattern rather than a ragged waterfall. */
.dj-masonry { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.dj-tile {
  border-radius: var(--dj-radius-card); padding: 30px 26px;
  display: flex; flex-direction: column; gap: var(--dj-space-2);
}
.dj-tile h3 { font-size: var(--dj-text-title); font-weight: var(--dj-weight-emphasis); }
.dj-tile p {
  font-weight: var(--dj-weight-light); font-size: 0.9375rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ── Youth works: 9-format grid + safeguarding band ───────────────────── */
.dj-formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.dj-format {
  background: var(--dj-off-white); border-radius: var(--dj-radius-card);
  padding: 18px 20px; display: flex; align-items: center; gap: 14px;
}
.dj-format__icon { font-family: 'Material Symbols Outlined'; font-size: 22px; color: var(--dj-purple); flex: none; }
.dj-format strong { font-family: var(--dj-font-display); font-size: 0.90625rem; font-weight: var(--dj-weight-emphasis); }

/* Theme tags under the format grid — solid teal-tinted pills, same family as
   the corkboard tag but with real horizontal air between them. Distinct from
   .dj-chip, which is the outlined filter-toggle used on Activities/Toolkit. */
.dj-theme-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.dj-theme-tag {
  font-size: var(--dj-text-small); font-weight: var(--dj-weight-emphasis);
  color: var(--dj-forest); background: rgba(103,172,172,0.22);
  border-radius: var(--dj-radius-pill); padding: 6px 14px;
}

/* Consent comes first: v2's dark-forest band — yellow icon and link on
   Natural Forest green, white heading and body text via .dj-on-dark. */
.dj-safeguard { display: flex; gap: var(--dj-space-5); align-items: flex-start; }
.dj-safeguard__icon { font-family: 'Material Symbols Outlined'; font-size: 40px; color: var(--dj-purple); flex: none; }
.dj-on-dark .dj-safeguard__icon { color: var(--dj-yellow); }
.dj-safeguard p { font-weight: var(--dj-weight-light); line-height: 1.65; max-width: 760px; }
.dj-safeguard a { font-weight: var(--dj-weight-emphasis); }
.dj-on-dark .dj-safeguard a { color: var(--dj-yellow); }

/* ── Results: horizontal timeline + status-first archive ──────────────── */
.dj-timeline { display: flex; flex-wrap: wrap; gap: var(--dj-space-4); }
.dj-timeline__step { flex: 1 1 200px; border-top: 2px solid var(--dj-green); padding-top: var(--dj-space-3); display: flex; flex-direction: column; gap: 4px; }
.dj-timeline__when { font-family: var(--dj-font-display); font-weight: var(--dj-weight-emphasis); color: var(--dj-purple); }

.dj-archive__group { display: flex; flex-direction: column; gap: 14px; }
.dj-archive__head { font-family: var(--dj-font-display); font-size: 1.3125rem; font-weight: var(--dj-weight-emphasis); color: #000000; margin: 0; }
.dj-archive__panel { background: var(--dj-white); border-radius: var(--dj-radius-card); overflow: hidden; display: flex; flex-direction: column; }
.dj-archive__row { display: flex; flex-wrap: wrap; gap: var(--dj-space-3); align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid rgba(0,0,0,0.06); }
.dj-archive__row:last-child { border-bottom: none; }
.dj-archive__item { display: flex; flex-direction: column; gap: 2px; flex: 1 1 300px; min-width: 240px; }
.dj-archive__item > span:first-child { font-size: 0.9375rem; font-weight: var(--dj-weight-normal, 400); color: #000000; }
.dj-archive__when { font-size: var(--dj-text-small); color: rgba(0,0,0,0.5); }

/* ── Partners: one full-height panel per partner, own identity colour ─── */
.dj-ppanel { min-height: 60vh; display: flex; align-items: center; padding-block: 56px; }
.dj-ppanel:nth-of-type(1) { background: var(--dj-purple); }
.dj-ppanel:nth-of-type(2) { background: var(--dj-off-white); }
.dj-ppanel:nth-of-type(3) { background: var(--dj-forest); }
.dj-ppanel__inner { display: flex; flex-wrap: wrap; gap: var(--dj-space-7); align-items: center; max-width: var(--dj-measure); margin-inline: auto; padding-inline: var(--dj-space-5); width: 100%; }

.dj-ppanel__aside { flex: none; width: 190px; display: flex; flex-direction: column; gap: 14px; }
.dj-ppanel__logo {
  width: 170px; height: 84px; border-radius: 8px;
  background: rgba(255,255,255,0.15); color: var(--dj-white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--dj-font-display); font-size: 1.125rem; font-weight: 700;
}
.dj-ppanel__country { font-size: var(--dj-text-small); color: rgba(255,255,255,0.9); display: inline-flex; align-items: center; gap: 5px; }

.dj-ppanel__body { flex: 1 1 420px; min-width: 280px; display: flex; flex-direction: column; gap: var(--dj-space-3); align-items: flex-start; }
.dj-ppanel__head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dj-ppanel__body h2 { font-size: 1.875rem; font-weight: 700; color: var(--dj-white); }
.dj-ppanel__role { font-size: var(--dj-text-small); font-weight: var(--dj-weight-emphasis); color: var(--dj-white); }
.dj-ppanel__body p { color: rgba(255,255,255,0.9); font-weight: var(--dj-weight-light); max-width: 640px; font-size: 1rem; }
.dj-ppanel__body a { color: var(--dj-white); font-weight: var(--dj-weight-emphasis); text-decoration: underline; }

/* Second panel (SEGNI) sits on off-white, not a colour fill — every white-on-dark
   value above flips to the design's dark-on-light set for this one partner. */
.dj-ppanel:nth-of-type(2) .dj-ppanel__logo { background: rgba(255,255,255,0.7); color: var(--dj-green); }
.dj-ppanel:nth-of-type(2) .dj-ppanel__country,
.dj-ppanel:nth-of-type(2) .dj-ppanel__body p { color: #1a1a1a; }
.dj-ppanel:nth-of-type(2) .dj-ppanel__body h2,
.dj-ppanel:nth-of-type(2) .dj-ppanel__role,
.dj-ppanel:nth-of-type(2) .dj-ppanel__body a { color: var(--dj-green); }
.dj-ppanel:nth-of-type(2) .dj-flag { color: #1a1a1a; }

/* Coordinator badge: bg/fg swap of the panel's own colour, not the
   translucent .dj-pill used on the Toolkit hero. */
.dj-ppanel .dj-pill { background: var(--dj-white); color: var(--dj-purple); }

/* ── Partners — v1 card variant: white cards on paper, left accent border ── */
.dj-pcards { display: flex; flex-direction: column; gap: var(--dj-space-5); }
.dj-pcard {
  background: var(--dj-white); border-radius: var(--dj-radius-card);
  padding: 36px 32px; display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: flex-start;
  border-left: 8px solid var(--dj-purple);
}
.dj-pcard:nth-of-type(1) { border-left-color: var(--dj-purple); }
.dj-pcard:nth-of-type(2) { border-left-color: var(--dj-green); }
.dj-pcard:nth-of-type(3) { border-left-color: var(--dj-forest); }

.dj-pcard__aside { flex: none; width: 180px; display: flex; flex-direction: column; gap: 14px; }
.dj-pcard__logo {
  width: 160px; height: 76px; border-radius: 8px;
  background: rgba(138,102,176,0.12); color: var(--dj-purple);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--dj-font-display); font-size: 1.125rem; font-weight: 700;
}
.dj-pcard:nth-of-type(2) .dj-pcard__logo { background: rgba(103,172,172,0.15); color: var(--dj-green); }
.dj-pcard:nth-of-type(3) .dj-pcard__logo { background: rgba(1,91,55,0.1); color: var(--dj-forest); }
.dj-pcard__logo img { max-width: 120px; max-height: 48px; width: auto; height: auto; object-fit: contain; }

.dj-pcard__country { font-size: var(--dj-text-small); color: rgba(0,0,0,0.6); display: inline-flex; align-items: center; gap: 5px; }
.dj-pcard__flag { color: var(--dj-purple); }
.dj-pcard:nth-of-type(2) .dj-pcard__flag { color: var(--dj-green); }
.dj-pcard:nth-of-type(3) .dj-pcard__flag { color: var(--dj-forest); }

.dj-pcard__body { flex: 1 1 380px; min-width: 260px; display: flex; flex-direction: column; gap: 10px; }
.dj-pcard__head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dj-pcard__head h2 { font-size: 1.5rem; font-weight: 700; line-height: 1.2; color: #000000; }
.dj-pcard__badge {
  font-size: var(--dj-text-small); font-weight: var(--dj-weight-emphasis); color: var(--dj-white);
  background: var(--dj-purple); border-radius: var(--dj-radius-pill); padding: 5px 14px;
}
.dj-pcard__role { font-size: var(--dj-text-small); font-weight: var(--dj-weight-emphasis); color: var(--dj-purple); }
.dj-pcard:nth-of-type(2) .dj-pcard__role { color: var(--dj-green); }
.dj-pcard:nth-of-type(3) .dj-pcard__role { color: var(--dj-forest); }
.dj-pcard__body p { font-size: 0.9375rem; font-weight: var(--dj-weight-light); line-height: 1.6; color: #1a1a1a; max-width: 680px; }
.dj-pcard__link {
  font-family: var(--dj-font-display); font-size: var(--dj-text-small); font-weight: var(--dj-weight-emphasis);
  color: var(--dj-purple); display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
}
.dj-pcard__link .material-symbols-outlined { font-size: 16px; }
.dj-pcard:nth-of-type(2) .dj-pcard__link { color: var(--dj-green); }
.dj-pcard:nth-of-type(3) .dj-pcard__link { color: var(--dj-forest); }

/* ── Contact: form left (offset-shadow card), rail right ──────────────── */
.dj-contact__grid { display: flex; flex-wrap: wrap; gap: var(--dj-space-7); align-items: flex-start; }
.dj-contact__panel { flex: 1 1 520px; min-width: 300px; position: relative; }
.dj-contact__panel::before {
  content: ""; position: absolute; left: 14px; top: 14px; width: 100%; height: 100%;
  background: var(--dj-green); opacity: 0.15; border-radius: var(--dj-radius-card);
}
.dj-contact__form {
  position: relative; background: var(--dj-white); border-radius: var(--dj-radius-card);
  padding: 36px 32px; display: flex; flex-direction: column; gap: var(--dj-space-4);
}
.dj-contact__form h2 { font-size: 1.5rem; font-weight: var(--dj-weight-emphasis); }

.dj-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--dj-space-4); }
.dj-form-field { display: flex; flex-direction: column; gap: 6px; }
.dj-form-field > span { font-size: var(--dj-text-small); font-weight: var(--dj-weight-emphasis); color: #000000; }
.dj-form-field > span em { font-weight: var(--dj-weight-light); font-style: normal; color: rgba(0,0,0,0.45); }
.dj-form-field input, .dj-form-field textarea {
  font-family: var(--dj-font-body); font-size: 0.9375rem; padding: 12px 14px;
  border: 1px solid rgba(0,0,0,0.2); border-radius: 8px; color: #000000; background: var(--dj-white);
}
.dj-form-field textarea { resize: vertical; }
.dj-form-field input:focus, .dj-form-field textarea:focus { border-color: var(--dj-purple); outline: none; }

.dj-form-interests { display: flex; flex-direction: column; gap: 8px; }
.dj-form-interests > span { font-size: var(--dj-text-small); font-weight: var(--dj-weight-emphasis); color: #000000; }
.dj-form-interests__row { display: flex; flex-wrap: wrap; gap: 8px; }
.dj-form-chip {
  font-family: var(--dj-font-body); font-size: var(--dj-text-small); font-weight: var(--dj-weight-emphasis);
  color: #1a1a1a; background: var(--dj-white); border: 1px solid rgba(0,0,0,0.15);
  border-radius: var(--dj-radius-pill); padding: 8px 16px; cursor: pointer;
}
.dj-form-chip.is-active { color: var(--dj-white); background: var(--dj-green); border-color: var(--dj-green); }

.dj-form-consent { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.dj-form-consent input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--dj-purple); flex: none; }
.dj-form-consent span { font-size: var(--dj-text-small); font-weight: var(--dj-weight-light); line-height: 1.5; color: #1a1a1a; }
.dj-form-consent a { font-weight: var(--dj-weight-emphasis); }

.dj-form-error { font-size: var(--dj-text-small); font-weight: var(--dj-weight-emphasis); color: #D20069; display: none; }
.dj-form-error.is-visible { display: block; }

.dj-form-submit {
  font-family: var(--dj-font-display); font-size: 0.9375rem; font-weight: var(--dj-weight-emphasis);
  color: var(--dj-white); background: var(--dj-purple); border: none; border-radius: var(--dj-radius-pill);
  padding: 14px 30px; cursor: pointer; align-self: flex-start;
}
.dj-form-submit:hover { background: var(--dj-green); }
.dj-form-submit:disabled { opacity: 0.6; cursor: wait; }

.dj-contact__form.is-sent .dj-contact__form-body { display: none; }
.dj-contact__form-success { display: none; flex-direction: column; gap: 14px; align-items: flex-start; padding: 24px 0; }
.dj-contact__form.is-sent .dj-contact__form-success { display: flex; animation: dj-burst 400ms cubic-bezier(.2,.8,.2,1) both; }
.dj-contact__form-success__mark { width: 20px; height: 20px; background: var(--dj-green); transform: rotate(45deg); display: block; }
.dj-contact__form-success h2 { font-size: 1.5rem; font-weight: var(--dj-weight-emphasis); }
.dj-contact__form-success p { font-size: var(--dj-text-small); font-weight: var(--dj-weight-light); line-height: 1.6; }
.dj-contact__form-success button {
  font-family: var(--dj-font-display); font-size: var(--dj-text-small); font-weight: var(--dj-weight-emphasis);
  color: var(--dj-purple); background: none; border: 2px solid var(--dj-purple);
  border-radius: var(--dj-radius-pill); padding: 10px 22px; cursor: pointer;
}
@keyframes dj-burst { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.dj-contact__rail { flex: 1 1 300px; min-width: 260px; display: flex; flex-direction: column; gap: var(--dj-space-5); }
.dj-contact__card { border-radius: var(--dj-radius-card); padding: 28px 26px; display: flex; flex-direction: column; gap: var(--dj-space-3); }
.dj-contact__card h2 { font-size: 1.1875rem; font-weight: var(--dj-weight-emphasis); }
.dj-contact__card--purple { background: var(--dj-purple); }
.dj-contact__card--purple h2 { color: var(--dj-white); }
.dj-contact__card--purple span { font-size: var(--dj-text-small); line-height: 1.6; color: rgba(255,255,255,0.9); }
.dj-contact__card--purple a { font-size: var(--dj-text-small); font-weight: var(--dj-weight-emphasis); color: var(--dj-yellow); }
.dj-contact__card--white { background: var(--dj-white); }
.dj-contact__social { display: flex; gap: 10px; }
.dj-contact__social a {
  width: 44px; height: 44px; border: 1px solid rgba(0,0,0,0.15); border-radius: 999px;
  display: flex; align-items: center; justify-content: center; color: var(--dj-purple);
}
.dj-contact__social .material-symbols-outlined { font-size: 20px; }

/* ── Legal: the calmest page. One column, 68ch, sticky in-page nav ────── */
.dj-legal { background: var(--dj-off-white); padding-block: var(--dj-space-section); }
.dj-legal__grid { display: flex; flex-wrap: wrap; gap: var(--dj-space-7); align-items: flex-start; }
.dj-legal__nav { flex: 0 0 220px; position: sticky; top: 100px; display: flex; flex-direction: column; gap: var(--dj-space-2); }
.dj-legal__body { flex: 1 1 520px; max-width: 68ch; display: flex; flex-direction: column; gap: var(--dj-space-6); }
.dj-legal__body h2 { font-size: var(--dj-text-headline); display: flex; align-items: center; gap: var(--dj-space-3); }
.dj-legal__body h2::before { content: ""; width: 10px; height: 10px; background: var(--dj-green); transform: rotate(45deg); flex: none; }
.dj-legal__body p { font-weight: var(--dj-weight-light); line-height: 1.65; }

@media (max-width: 900px) {
  .dj-snapshot, .dj-season__label, .dj-legal__nav, .dj-archive__head { position: static; }
  .dj-masonry { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .dj-masonry { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════ HEADER (V2-PLAN §4, Nav.dc.html) */

/* Trail progress. Sits above everything, including the sticky header. Width is
   driven by dj.js; with no JavaScript it simply stays at zero and is invisible,
   which is the correct degradation for a purely decorative indicator. */
.dj-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  background: rgba(0, 0, 0, 0.08);
  z-index: 9999;
  pointer-events: none;
}

/* Driven by transform, not width: scaleX runs on the compositor, so a scroll
   handler firing every frame never triggers layout. It also sidesteps the
   percentage-width resolution that made this element measure 0 no matter what
   was set on it. */
.dj-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--dj-gradient);
  transition: transform 80ms linear;
  will-change: transform;
}

/* ── desktop header ───────────────────────────────────────────────────── */

.site-header-wrap,
#masthead {
  background: var(--dj-white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

#masthead .site-container {
  max-width: var(--dj-measure);
}

.site-branding .brand img { max-height: 38px; width: auto; }

.header-menu-container .menu > .menu-item:not(.dj-header-extras) > a {
  font-family: var(--dj-font-body);
  font-size: 0.875rem;
  font-weight: var(--dj-weight-body);
  color: #1a1a1a;
  border-bottom: 2px solid transparent;
  padding-block: 6px;
}

.header-menu-container .menu > .menu-item:not(.dj-header-extras) > a:hover,
.header-menu-container .menu > .current-menu-item:not(.dj-header-extras) > a {
  color: var(--dj-purple);
  border-bottom-color: var(--dj-purple);
}

/* ── mobile: the jungle map ───────────────────────────────────────────── */
/* Kadence renders a side panel. The design asks for a full-screen map on Dark
   Forest with the items as trail stops down a dashed path, so the panel is
   taken to full width and repainted rather than replaced — replacing it would
   throw away Kadence's focus trapping and toggle wiring, which are correct. */

#mobile-drawer .drawer-inner {
  background: var(--dj-forest);
  width: 100%;
  max-width: none;
}

#mobile-drawer .drawer-header { padding: 20px 24px; }
#mobile-drawer .toggle-close-bar { background: var(--dj-white); }

#mobile-drawer .menu-toggle-close {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--dj-radius-pill);
}

#mobile-drawer .drawer-content {
  display: flex;
  align-items: center;
  min-height: 70svh;
  padding: 8px 40px 40px;
}

#mobile-drawer .mobile-menu-container { width: 100%; position: relative; }

/* The dashed trail the stops hang off. */
#mobile-drawer #mobile-menu {
  position: relative;
  padding-left: 56px;
}

#mobile-drawer #mobile-menu::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  border-left: 2px dashed rgba(255, 255, 255, 0.35);
}

#mobile-drawer #mobile-menu .menu-item { border: none; }

#mobile-drawer #mobile-menu .menu-item > a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  min-height: 44px;
  color: var(--dj-white);
  font-family: var(--dj-font-display);
  font-size: 1.375rem;
  font-weight: var(--dj-weight-emphasis);
  border: none;
}

/* Each stop carries the Hero Element diamond, in Lantern Yellow. */
#mobile-drawer #mobile-menu .menu-item > a::before {
  content: "";
  position: absolute;
  left: -56px;
  width: 12px;
  height: 12px;
  background: var(--dj-yellow);
  transform: rotate(45deg);
}

#mobile-drawer #mobile-menu .menu-item > a:hover { color: var(--dj-yellow); }

/* ── header extras: the EN chip and the CTA pill ──────────────────────── */

.dj-header-extras {
  display: flex;
  align-items: center;
  gap: var(--dj-space-4);
}

.dj-lang-chip {
  font-family: var(--dj-font-body);
  font-size: 0.75rem;
  font-weight: var(--dj-weight-emphasis);
  color: var(--dj-purple);
  border: 1px solid rgba(138, 102, 176, 0.4);
  border-radius: var(--dj-radius-pill);
  padding: 5px 12px;
  white-space: nowrap;
}

.dj-header-cta {
  font-family: var(--dj-font-display);
  font-size: 0.875rem;
  font-weight: var(--dj-weight-emphasis);
  color: var(--dj-white);
  background: var(--dj-purple);
  border-radius: var(--dj-radius-pill);
  padding: 11px 22px;
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.dj-header-cta:hover { background: var(--dj-green); color: var(--dj-white); }

/* Inside the drawer the CTA becomes the yellow one from the design. */
#mobile-drawer .dj-header-extras {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--dj-space-4);
  padding: 24px 0 0 56px;
}

#mobile-drawer .dj-header-cta {
  background: var(--dj-yellow);
  color: var(--dj-black);
}

#mobile-drawer .dj-lang-chip {
  color: var(--dj-white);
  border-color: rgba(255, 255, 255, 0.4);
}

/* The CTA sits inside the menu list so it lands in the header row — which means
   Kadence's menu-link rule applies to it. That selector carries three classes
   and two elements, so a bare .dj-header-cta lost and the button rendered with
   80 % black text on purple. Matching the same structure plus the class is what
   wins; !important would too, but would then have to be re-fought on hover. */
.main-navigation .primary-menu-container > ul > li.menu-item > a.dj-header-cta,
.header-navigation li.menu-item > a.dj-header-cta,
.drawer-navigation li.menu-item > a.dj-header-cta,
#mobile-drawer #mobile-menu .menu-item > a.dj-header-cta {
  color: var(--dj-white);
  background: var(--dj-purple);
  border: none;
}

.main-navigation .primary-menu-container > ul > li.menu-item > a.dj-header-cta:hover,
.header-navigation li.menu-item > a.dj-header-cta:hover,
.drawer-navigation li.menu-item > a.dj-header-cta:hover {
  color: var(--dj-white);
  background: var(--dj-green);
}

/* In the drawer it is the yellow button from the design, on Dark Forest. */
#mobile-drawer #mobile-menu .menu-item > a.dj-header-cta {
  background: var(--dj-yellow);
  color: var(--dj-black);
}

#mobile-drawer #mobile-menu .menu-item > a.dj-header-cta::before { content: none; }

/* The extras row carries no trail diamond and no menu underline. */
#mobile-drawer #mobile-menu .dj-header-extras > a::before { content: none; }

/* ── resource cards: icon + status on top, per the approved component ──── */


.dj-tile {
  background: var(--dj-white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  gap: var(--dj-space-3);
}

.dj-tile__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--dj-space-3);
}

.dj-tile__icon { font-size: 28px; color: inherit; }

.dj-tile .dj-status { background: rgba(0, 0, 0, 0.06); }

/* ── page hero with a supporting illustration ─────────────────────────── */

.dj-pagehero__grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--dj-space-7);
  align-items: center;
  justify-content: space-between;
}

.dj-pagehero__grid > .dj-pagehero__inner { flex: 1 1 480px; }

.dj-pagehero__art {
  flex: 0 1 340px;
  margin: 0;
  display: flex;
  justify-content: center;
}

.dj-pagehero__art img { width: min(320px, 80%); height: auto; }

/* A real photo instead of a watercolour illustration: square, cropped, card-radius. */
.dj-pagehero__art--photo { flex: 0 1 380px; }
.dj-pagehero__art--photo img { width: 100%; max-width: none; aspect-ratio: 1; object-fit: cover; border-radius: var(--dj-radius-card); }

/* A round crop for the compass-style art slot, sized to sit beside wide text. */
.dj-pagehero__art--round img { width: min(260px, 70%); aspect-ratio: 1; object-fit: cover; border-radius: 50%; }

/* No supporting art: let the heading/paragraph column run wider than the 820px default. */
.dj-pagehero--wide .dj-pagehero__inner { max-width: 980px; }

/* The yellow call to action the design uses on dark and gradient heroes. */
.dj-cta-yellow {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 14px 28px;
  border-radius: var(--dj-radius-pill);
  background: var(--dj-yellow);
  color: var(--dj-black);
  font-family: var(--dj-font-display);
  font-weight: var(--dj-weight-emphasis);
  font-size: 0.9375rem;
}

.dj-cta-yellow:hover { background: var(--dj-white); color: var(--dj-black); }

@media (max-width: 768px) {
  .dj-pagehero__art { order: -1; flex-basis: 100%; }
}

/* ── read-more links, icons in repeated rows ──────────────────────────── */

.dj-more { display: inline-flex; align-items: center; gap: 6px; font-weight: var(--dj-weight-emphasis); }
.dj-arrow { font-size: 18px; }

.dj-trail__icon { font-size: 26px; color: var(--dj-purple); }
.dj-event__icon { font-size: 20px; color: var(--dj-purple); margin-right: 8px; vertical-align: -3px; }
.dj-cork__icon  { font-size: 38px; color: rgba(255,255,255,0.9); }

.dj-partner { justify-content: space-between; }
.dj-partner__arrow { font-size: 22px; color: var(--dj-purple); flex: none; }

/* The funding statement with a heading, as About and Partners present it. */
.dj-eu--titled { align-items: flex-start; gap: var(--dj-space-5); }
.dj-eu__title { font-size: var(--dj-text-title); margin: 0 0 4px; }
.dj-eu--titled .dj-eu__emblem { width: auto; height: 40px; }

.dj-snapshot__title { font-size: var(--dj-text-title); margin: 0 0 var(--dj-space-4); }

.dj-band__head { display: flex; align-items: center; gap: var(--dj-space-3); }
.dj-band__icon { font-size: 32px; flex: none; }
.dj-band__head h3 { color: inherit; }

/* ── page-hero eyebrow is a pill, not a diamond label ─────────────────── */
/* On the coloured heroes the design sets the status as a translucent pill;
   the diamond marker belongs to section eyebrows inside the page body. */

.dj-pagehero .dj-eyebrow {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.16);
  border-radius: var(--dj-radius-pill);
  padding: 7px 16px;
  color: var(--dj-yellow);
}

.dj-pagehero--white .dj-eyebrow {
  background: rgba(138, 102, 176, 0.12);
  color: var(--dj-purple);
}

.dj-pagehero .dj-eyebrow::before { content: none; }

/* Buttons never carry the link underline Kadence gives inline anchors. */
.dj-cta-yellow,
.dj-header-cta,
.dj-more { text-decoration: none; }

.dj-cta-yellow:hover,
.dj-header-cta:hover { text-decoration: none; }

/* The logo, once custom_logo is set. */
.site-branding .custom-logo { max-height: 40px; width: auto; }

/* Kadence prints the site title next to the logo. The logo image already
   carries "Digital Jungle" as its alt text, so the words appear twice — once
   drawn, once typed. Hide the typed one; screen readers still get the alt. */
.site-branding:has(.custom-logo) .site-title { display: none; }

/* ══════════════════════════════════════════════ FOOTER (v2/Footer.dc.html) */

.dj-footer { background: var(--dj-purple); color: var(--dj-white); width: 100%; }
.dj-footer__inner {
  max-width: var(--dj-measure); margin-inline: auto;
  padding: 64px var(--dj-space-5) 32px;
  display: flex; flex-direction: column; gap: var(--dj-space-7);
}
.dj-footer__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 40px; align-items: start;
}
.dj-footer__brand { display: flex; flex-direction: column; gap: var(--dj-space-5); }
.dj-footer__logo { height: 44px; width: auto; align-self: flex-start; }
.dj-footer__brand p {
  font-weight: var(--dj-weight-light); font-size: var(--dj-text-small);
  line-height: 1.55; color: rgba(255,255,255,0.85); max-width: 300px; margin: 0;
}
.dj-footer__col { display: flex; flex-direction: column; gap: 10px; }
.dj-footer__heading {
  font-family: var(--dj-font-display); font-size: 0.9375rem;
  font-weight: var(--dj-weight-emphasis); color: var(--dj-white); margin-bottom: 6px;
}
.dj-footer__col a, .dj-footer__col span:not(.dj-footer__heading) {
  font-size: var(--dj-text-small); color: rgba(255,255,255,0.85); text-decoration: none;
}
.dj-footer__col a { min-height: 24px; display: inline-flex; align-items: center; }
.dj-footer__col a:hover { color: var(--dj-white); }
.dj-footer__meta { color: rgba(255,255,255,0.6) !important; margin-top: var(--dj-space-2); }

.dj-footer .dj-eu__text { color: var(--dj-white); }
.dj-footer .dj-eu__emblem { width: auto; height: 36px; }

.dj-footer__disclaimer {
  font-weight: var(--dj-weight-light); font-size: 0.75rem; line-height: 1.6;
  color: rgba(255,255,255,0.7); max-width: 900px; margin: 0;
}
.dj-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.2); padding-top: var(--dj-space-4);
  font-size: 0.75rem; color: rgba(255,255,255,0.7);
}

/* Kadence's own credits row would print a second, unrelated footer under ours. */
#colophon .site-bottom-footer-wrap,
#colophon .site-footer-row-container-inner { display: none; }

/* The About hero states its label as plain type, not a pill — the pill belongs
   to the status heroes (Toolkit, Youth works) where it carries a state. */
.dj-pagehero--purple .dj-eyebrow { background: none; padding: 0; }

.dj-narrative__note { font-size: var(--dj-text-small); color: rgba(0,0,0,0.55); }

.dj-archive__head { display: flex; align-items: center; gap: var(--dj-space-3); }
.dj-archive__icon { font-size: 22px; color: var(--dj-purple); }
.dj-ppanel__country { display: flex; align-items: center; gap: var(--dj-space-2); }
.dj-flag { font-size: 20px; }
.dj-cta-purple { background: var(--dj-purple); color: var(--dj-white); }
.dj-cta-purple:hover { background: var(--dj-green); color: var(--dj-white); }

/* Toolkit "Find your tool in seconds" — real filter pills, distinct from the
   dashed disabled .dj-chip--planned strip: outlined, purple, with a leading
   icon, previewing what searching the library will feel like from Oct 2026. */
.dj-filter-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.dj-filter-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--dj-text-small); font-weight: var(--dj-weight-emphasis); color: var(--dj-purple);
  background: var(--dj-white); border: 1px solid rgba(138,102,176,0.35);
  border-radius: var(--dj-radius-pill); padding: 8px 18px;
}
.dj-filter-pill .material-symbols-outlined { font-size: 16px; }

/* "Be first on the trail" — early-access CTA band closing the Toolkit page. */
.dj-toolkit-cta {
  display: flex; flex-wrap: wrap; gap: var(--dj-space-7);
  align-items: center; justify-content: space-between;
}
.dj-toolkit-cta__copy { display: flex; flex-direction: column; gap: 10px; max-width: 620px; }

.dj-form-slot { border: 2px dashed rgba(138,102,176,0.4); border-radius: var(--dj-radius-card); padding: var(--dj-space-5); display: flex; flex-direction: column; gap: var(--dj-space-3); }
.dj-form-slot__fields { font-size: var(--dj-text-small); color: rgba(0,0,0,0.55); }
.dj-social { display: flex; flex-direction: column; gap: var(--dj-space-2); }
.dj-social a { display: inline-flex; align-items: center; gap: var(--dj-space-2); min-height: 44px; }
.dj-social .material-symbols-outlined { font-size: 22px; color: var(--dj-purple); }
.dj-contact__rail h2 { font-size: var(--dj-text-title); }

/* ── strips that are not full sections ────────────────────────────────── */
.dj-plain--tight { padding-block: 0; }
.dj-plain--tight > .dj-section__inner { padding-block: 22px; }

.dj-filterbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dj-filterbar__label { font-size: 0.78125rem; color: rgba(0,0,0,0.5); margin-right: 6px; }

/* Planned-but-not-live facets. The dashed border is the design's way of saying
   "this will be a control, it is not one yet" — an honest status, per the brief. */
.dj-chip--planned {
  font-size: 0.78125rem; font-weight: var(--dj-weight-emphasis);
  color: rgba(0,0,0,0.4); background: var(--dj-white);
  border: 1px dashed rgba(0,0,0,0.2); padding: 7px 16px; cursor: not-allowed;
}

/* Hero measure and art size, from the approved component. */
.dj-pagehero__inner { max-width: 600px; }
.dj-pagehero__art img { width: min(100%, 260px); }

/* Per-section rhythm, from the approved components. */
.dj-plain--sm { padding-block: var(--dj-space-section-sm); }
.dj-narrative { padding-block: var(--dj-space-section-md); }
.dj-narrative__grid { gap: 56px; }
.dj-narrative__body { flex: 1 1 500px; }
/* Core themes: uniform pill size — root has no size variance, unlike v2's
   "size cloud" reading of relative theme weight. */
.dj-cloud { gap: 12px; }
.dj-cloud span { padding: 10px 20px; font-size: 14px !important; }

/* "Who the jungle is for" — v1 audience grid: bordered white cards with an
   icon, title, body copy and a coloured pull-quote, replacing the v2 full-width
   coloured bands (.dj-band, kept below for reuse elsewhere if ever needed). */
.dj-audiences__intro { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.dj-audiences__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1100px) { .dj-audiences__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .dj-audiences__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .dj-audiences__grid { grid-template-columns: 1fr; } }
.dj-audience-card {
  border: 1px solid rgba(0,0,0,0.1); border-radius: var(--dj-radius-card);
  padding: 28px 24px; display: flex; flex-direction: column; gap: var(--dj-space-3);
}
.dj-audience-card__icon { font-size: 30px; }
.dj-audience-card h3 { font-size: 1.1875rem; font-weight: var(--dj-weight-emphasis); line-height: 1.25; }
.dj-audience-card p { font-size: var(--dj-text-small); font-weight: var(--dj-weight-light); line-height: 1.55; color: #1a1a1a; flex: 1; }
.dj-audience-card__quote { font-size: var(--dj-text-small) !important; font-weight: var(--dj-weight-emphasis) !important; font-style: normal; }

/* About "Funding & acknowledgement" — two columns: copy, then a boxed emblem
   card, not the single inline .dj-eu row used elsewhere (Partners, footer). */
.dj-funding { display: flex; flex-wrap: wrap; gap: var(--dj-space-7); align-items: center; }
.dj-funding__copy { flex: 1 1 420px; min-width: 300px; display: flex; flex-direction: column; gap: var(--dj-space-3); }
.dj-funding__copy p { max-width: 640px; font-weight: var(--dj-weight-light); }
.dj-funding__box {
  flex: none; display: flex; align-items: center; gap: var(--dj-space-4);
  background: var(--dj-white); border-radius: var(--dj-radius-card); padding: 24px 28px;
}
.dj-funding__box span:last-child { font-size: var(--dj-text-small); line-height: 1.5; color: #000000; }
