/* ==========================================================================
   KI:EZ custom components
   Geometry and rhythm transcribed from wcg.htm; colour comes from tokens.css.

   SPECIFICITY CONTRACT — read before editing.
   Confera and GoodLayers Core ship rules at specificity (0,1,1) that target
   bare elements inside the page builder, e.g.

       .confera-body h3        { font-size: … }     (typography options)
       img[src$=".svg"]        { width: 100% }      (page-builder.css)
       .gdlr-core-page-builder-body img { max-width: 100% }

   A single component class scores only (0,1,0) and therefore LOSES to all of
   them. Every rule below is scoped under `.confera-body`, giving (0,2,0)+ so
   component styling reliably wins. Do not add an unscoped `.kiez-*` rule.
   ========================================================================== */

/* Shared container + section rhythm ------------------------------------- */
.confera-body .kiez-hero-content,
.confera-body .kiez-mission-inner,
.confera-body .kiez-consortium-inner,
.confera-body .kiez-news-inner,
.confera-body .kiez-events-inner,
.confera-body .kiez-fields-inner,
.confera-body .kiez-cta-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

.confera-body .kiez-mission,
.confera-body .kiez-consortium,
.confera-body .kiez-news,
.confera-body .kiez-events,
.confera-body .kiez-fields { padding: clamp(64px, 9vw, 120px) 0; }

.confera-body .kiez-mission,
.confera-body .kiez-consortium { background: var(--kiez-purple); }
.confera-body .kiez-news,
.confera-body .kiez-events,
.confera-body .kiez-fields { background: var(--kiez-white); }

.confera-body .kiez-mission-title,
.confera-body .kiez-consortium-title,
.confera-body .kiez-news-title,
.confera-body .kiez-events-title,
.confera-body .kiez-fields-title {
  font-family: var(--kiez-display);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.1;
  color: var(--kiez-violet);
  margin: 0 0 40px;
}
.confera-body .kiez-on-dark .kiez-mission-title,
.confera-body .kiez-on-dark .kiez-consortium-title { color: var(--kiez-text-on-dark); }

.confera-body .kiez-eyebrow { margin-bottom: 8px; }

/* Images inside our components must beat img[src$=".svg"]{width:100%} ---- */
.confera-body .kiez-mission-illustration,
.confera-body .kiez-logo-pill img,
.confera-body .kiez-partner-logo img,
.confera-body .kiez-news-media img { width: auto; max-width: 100%; }

/* Buttons ---------------------------------------------------------------- *
   .kiez-btn-fill and .kiez-btn-ghost use --kiez-orange, which measures
   3.29:1 against white. Below WCAG AA (4.5:1) and a documented, accepted
   deviation — see the accessibility register in REDESIGN-PLAN.md. Do not
   "fix" it silently. Ghost links keep their underline so the affordance
   never depends on colour alone.                                           */

.confera-body .kiez-btn {
  font-family: var(--kiez-display);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: var(--kiez-r);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: .01em;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: all .3s;
}
.confera-body .kiez-btn-fill { background: var(--kiez-orange); color: var(--kiez-white); }
.confera-body .kiez-btn-fill:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(236, 99, 41, .3); color: var(--kiez-white); }
.confera-body .kiez-btn-outline { border-color: var(--kiez-violet); color: var(--kiez-violet); background: transparent; }
.confera-body .kiez-btn-outline:hover { background: var(--kiez-violet-06); color: var(--kiez-violet); }
.confera-body .kiez-btn-outline-light { border-color: rgba(255, 255, 255, .72); color: var(--kiez-white); background: rgba(255, 255, 255, .04); }
.confera-body .kiez-btn-outline-light:hover { background: rgba(255, 255, 255, .12); color: var(--kiez-white); }

.confera-body .kiez-btn-ghost {
  font-family: var(--kiez-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--kiez-orange);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: underline;
  text-underline-offset: .22em;
  text-decoration-thickness: 2px;
}
.confera-body .kiez-btn-ghost .kiez-arr { transition: transform .2s; }
.confera-body .kiez-btn-ghost:hover .kiez-arr,
.confera-body .kiez-btn-ghost:focus-visible .kiez-arr { transform: translateX(4px); }

/* Hero ------------------------------------------------------------------- */
.confera-body .kiez-hero {
  min-height: min(100vh, 820px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--kiez-purple);
  padding: clamp(80px, 12vw, 140px) 0;
}
.confera-body .kiez-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  z-index: 0;
}
.confera-body .kiez-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(134, 53, 246, .35), transparent),
    linear-gradient(90deg, rgba(60, 31, 102, .92) 0%, rgba(60, 31, 102, .6) 60%, rgba(60, 31, 102, .35) 100%);
}
.confera-body .kiez-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  will-change: transform, opacity;
}
.confera-body .kiez-hero-h1 {
  font-family: var(--kiez-display);
  font-size: clamp(40px, 6.5vw, 78px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.04em;
  margin: 0 0 28px;
  color: var(--kiez-text-on-dark);
  max-width: 16ch;
}
/* Both lines solid white. wcg.htm gradient-clips line 2; the live build's
   solid treatment wins because clipped text has no computable contrast. */
.confera-body .kiez-hero-line1,
.confera-body .kiez-hero-line2 { display: block; color: var(--kiez-text-on-dark); }

.confera-body .kiez-hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--kiez-text-on-dark-soft);
  max-width: 56ch;
  line-height: 1.6;
  margin: 0 0 40px;
}
.confera-body .kiez-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Nav wordmark ----------------------------------------------------------- */
.confera-body .kiez-nav-wordmark {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  vertical-align: middle;
  margin-left: 10px;
  font-family: var(--kiez-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.confera-body .kiez-wm-accent { color: var(--kiez-orange); }
.confera-body .kiez-wm-stem { color: var(--kiez-text-on-dark); }

.confera-body .kiez-wm-row {
  position: relative;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  height: 1.25em;
}
.confera-body .kiez-wm-text { display: inline-block; }
.confera-body .kiez-wm-cursor {
  position: absolute;
  top: .1em;
  bottom: .1em;
  width: 3px;
  background: var(--kiez-orange);
  opacity: 0;
  left: 0;
}
.confera-body .kiez-wm-cursor-on { opacity: 1; animation: kiezBlink 1.2s step-end infinite; }
@keyframes kiezBlink { 0%, 100% { opacity: 1 } 50% { opacity: 0 } }

/* News cards ------------------------------------------------------------- */
.confera-body .kiez-news-track { display: flex; gap: 24px; align-items: stretch; }
.confera-body .kiez-news-scroller {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.confera-body .kiez-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.confera-body .kiez-news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--kiez-white);
  border: 1.5px solid var(--kiez-violet-10);
  border-radius: var(--kiez-r);
  overflow: hidden;
  scroll-snap-align: start;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.confera-body .kiez-news-scroller .kiez-news-card { flex: 0 0 320px; }
.confera-body .kiez-news-card:hover,
.confera-body .kiez-news-card:focus-within {
  border-color: var(--kiez-violet);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(60, 31, 102, .10);
}

.confera-body .kiez-news-media { height: 170px; overflow: hidden; flex-shrink: 0; }
.confera-body .kiez-news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
.confera-body .kiez-news-card:hover .kiez-news-media img { transform: scale(1.06); }

.confera-body .kiez-news-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.confera-body .kiez-news-date {
  font-family: var(--kiez-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--kiez-orange);
  letter-spacing: .04em;
  margin-bottom: 12px;
}
.confera-body .kiez-news-headline {
  font-family: var(--kiez-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
  margin: 0 0 10px;
}
.confera-body .kiez-news-headline a { color: var(--kiez-violet); text-decoration: none; }
.confera-body .kiez-news-anchor::after { content: ""; position: absolute; inset: 0; }
.confera-body .kiez-news-excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: var(--kiez-text-on-light-soft);
  margin: 0 0 16px;
  flex: 1;
}
.confera-body .kiez-news-link {
  font-family: var(--kiez-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--kiez-orange);
  display: inline-flex;
  gap: 5px;
  margin-top: auto;
  text-decoration: underline;
  text-underline-offset: .22em;
  text-decoration-thickness: 2px;
  text-decoration-color: transparent;
  transition: gap .2s, text-decoration-color .2s;
}
.confera-body .kiez-news-card:hover .kiez-news-link,
.confera-body .kiez-news-card:focus-within .kiez-news-link { gap: 9px; text-decoration-color: currentColor; }

/* Mission ---------------------------------------------------------------- */
.confera-body .kiez-mission-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  padding: clamp(24px, 3vw, 40px) 20px;
  border: 1.5px solid transparent;
  border-radius: var(--kiez-r);
  transition: border-color .4s ease, transform .4s cubic-bezier(.22, 1, .36, 1);
}
.confera-body .kiez-mission-row:hover { border-color: rgba(255, 255, 255, .35); transform: translateX(10px); }
.confera-body .kiez-mission-num {
  font-family: var(--kiez-display);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--kiez-text-on-dark-soft), var(--kiez-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.confera-body .kiez-mission-body { min-width: 0; }
.confera-body .kiez-mission-row-title {
  font-family: var(--kiez-display);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  color: var(--kiez-text-on-dark);
  margin: 0 0 10px;
  letter-spacing: -.015em;
}
.confera-body .kiez-mission-text { font-size: 15px; color: var(--kiez-text-on-dark-soft); line-height: 1.6; max-width: 62ch; }
.confera-body .kiez-mission-text p { margin: 0; color: inherit; }
/* Width is asserted above, in the SVG block, to beat img[src$=".svg"]. */
.confera-body .kiez-mission-illustration {
  width: clamp(88px, 11vw, 150px);
  height: auto;
  display: block;
  flex-shrink: 0;
}
.confera-body .kiez-mission-divider { height: 1px; background: rgba(255, 255, 255, .15); }
.confera-body .kiez-mission-rows > .kiez-mission-divider:last-child { display: none; }

/* Consortium ------------------------------------------------------------- */
.confera-body .kiez-consortium-intro { font-size: clamp(15px, 1.4vw, 17px); line-height: 1.6; color: var(--kiez-text-on-dark-soft); max-width: 70ch; margin: 0 0 48px; }
.confera-body .kiez-consortium-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.confera-body .kiez-logo-pill {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--kiez-r);
  padding: 24px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 150px;
  text-decoration: none;
  color: var(--kiez-text-on-dark);
  transition: transform .3s, box-shadow .3s, background .3s, color .3s;
}
.confera-body .kiez-logo-pill img {
  height: 56px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: filter .3s;
}
.confera-body .kiez-logo-pill span { font-family: var(--kiez-display); font-size: 12px; font-weight: 500; text-align: center; line-height: 1.3; }
.confera-body .kiez-logo-pill:hover,
.confera-body .kiez-logo-pill:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
  color: var(--kiez-purple);
}
.confera-body .kiez-logo-pill:hover img,
.confera-body .kiez-logo-pill:focus-visible img { filter: none; }

.confera-body .kiez-consortium-partners { margin-top: 56px; }
.confera-body .kiez-consortium-partner-label { color: var(--kiez-text-on-dark-soft); margin-bottom: 20px; }
.confera-body .kiez-consortium-partner-row { display: flex; gap: 48px; flex-wrap: wrap; align-items: center; }
.confera-body .kiez-partner-logo img {
  height: 56px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .85;
  transition: opacity .3s;
}
.confera-body .kiez-partner-logo:hover img,
.confera-body .kiez-partner-logo:focus-visible img { opacity: 1; }

/* Events ----------------------------------------------------------------- */
.confera-body .kiez-events-list { list-style: none; margin: 0; padding: 0; }
.confera-body .kiez-event { border-top: 1px solid var(--kiez-violet-10); }
.confera-body .kiez-event:last-child { border-bottom: 1px solid var(--kiez-violet-10); }
.confera-body .kiez-event-link {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 22px 12px;
  text-decoration: none;
  transition: background .25s, padding-left .25s;
}
.confera-body .kiez-event-link:hover { background: var(--kiez-violet-06); padding-left: 20px; }
.confera-body .kiez-event-date { text-align: center; }
.confera-body .kiez-event-day {
  display: block;
  font-family: var(--kiez-display);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  color: var(--kiez-violet);
}
.confera-body .kiez-event-month {
  display: block;
  font-family: var(--kiez-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--kiez-orange);
}
.confera-body .kiez-event-name { display: block; font-family: var(--kiez-display); font-size: 16px; font-weight: 700; color: var(--kiez-violet); margin-bottom: 3px; }
.confera-body .kiez-event-meta { display: block; font-size: 13px; color: var(--kiez-text-on-light-soft); }
.confera-body .kiez-event-cta {
  font-family: var(--kiez-display);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--kiez-r);
  border: 2px solid var(--kiez-violet-25);
  color: var(--kiez-violet);
  white-space: nowrap;
}
.confera-body .kiez-events-empty { color: var(--kiez-text-on-light-soft); }
.confera-body .kiez-events .kiez-btn,
.confera-body .kiez-news .kiez-btn { margin-top: 32px; }

/* Fields / bento --------------------------------------------------------- */
.confera-body .kiez-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.confera-body .kiez-bento-card {
  position: relative;
  background: var(--kiez-white);
  border: 1.5px solid var(--kiez-violet-10);
  border-radius: var(--kiez-r);
  padding: 36px 32px;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.confera-body .kiez-bento-card:hover { border-color: var(--kiez-violet); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(60, 31, 102, .10); }
.confera-body .kiez-bento-featured { background: var(--kiez-purple); border-color: transparent; grid-column: span 3; }

.confera-body .kiez-bento-title { font-family: var(--kiez-display); font-size: 24px; font-weight: 700; color: var(--kiez-violet); margin: 0 0 10px; }
.confera-body .kiez-bento-featured .kiez-bento-title { color: var(--kiez-text-on-dark); }
.confera-body .kiez-bento-tagline { font-family: var(--kiez-display); font-size: 13px; font-weight: 500; color: var(--kiez-text-on-light-soft); margin-bottom: 20px; }
.confera-body .kiez-bento-featured .kiez-bento-tagline { color: var(--kiez-text-on-dark-soft); }
.confera-body .kiez-bento-text { font-size: 15px; line-height: 1.6; color: var(--kiez-text-on-light); margin-bottom: 20px; max-width: 62ch; }
.confera-body .kiez-bento-featured .kiez-bento-text { color: var(--kiez-text-on-dark-soft); }

/* Masked icons ----------------------------------------------------------- */
.confera-body .kiez-field-icon,
.confera-body .kiez-icon-mask {
  display: block;
  width: 56px;
  height: 56px;
  background-color: var(--kiez-fi-color, var(--kiez-violet));
  mask-image: var(--kiez-fi-mask);
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-image: var(--kiez-fi-mask);
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  transition: background-color .3s;
}
.confera-body .kiez-field-icon { position: absolute; top: 28px; right: 28px; width: 44px; height: 44px; }
.confera-body .kiez-bento-featured .kiez-field-icon { background-color: var(--kiez-orange); }
.confera-body .kiez-bento-card:hover .kiez-field-icon { background-color: var(--kiez-orange); }

.confera-body .kiez-icon-row { display: flex; gap: 20px; flex-wrap: wrap; }
.confera-body .kiez-icon-card {
  background: var(--kiez-white);
  border: 1.5px solid var(--kiez-violet-15);
  border-radius: var(--kiez-r);
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-width: 170px;
  flex: 1;
  text-decoration: none;
}
.confera-body .kiez-icon-dark .kiez-icon-card { background: var(--kiez-purple); border-color: transparent; }
.confera-body .kiez-icon-label { font-family: var(--kiez-display); font-size: 14px; font-weight: 700; color: var(--kiez-text-on-light); }
.confera-body .kiez-icon-dark .kiez-icon-label { color: var(--kiez-text-on-dark); }

/* Highlight boxes -------------------------------------------------------- */
.confera-body .kiez-highlight { border-radius: var(--kiez-r); padding: 28px; position: relative; }
.confera-body .kiez-highlight-light { background: var(--kiez-off-white); border: 1.5px solid var(--kiez-violet-10); }
.confera-body .kiez-highlight-note { background: var(--kiez-white); border: 1.5px solid rgba(240, 200, 8, .55); }
.confera-body .kiez-highlight-dark { background: var(--kiez-purple); }
.confera-body .kiez-highlight-pullquote {
  background: var(--kiez-off-white);
  border: 1.5px solid var(--kiez-violet-10);
  padding-left: 44px;
  font-family: var(--kiez-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.015em;
  color: var(--kiez-violet);
}
.confera-body .kiez-highlight-bar {
  position: absolute;
  left: 28px;
  top: 26px;
  bottom: 26px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--kiez-violet), var(--kiez-orange));
}
.confera-body .kiez-highlight-title { font-family: var(--kiez-display); font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.confera-body .kiez-highlight-number {
  font-family: var(--kiez-display);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--kiez-orange), var(--kiez-text-on-dark-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.confera-body .kiez-highlight-text { font-size: 14px; line-height: 1.5; }
.confera-body .kiez-highlight-text p:last-child { margin-bottom: 0; }

/* CTA -------------------------------------------------------------------- */
.confera-body .kiez-cta {
  position: relative;
  overflow: hidden;
  background: var(--kiez-purple);
  padding: clamp(48px, 7vw, 88px) 0;
}
.confera-body .kiez-cta-video-el { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; z-index: 0; opacity: .18; }
.confera-body .kiez-cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.confera-body .kiez-cta-title { font-family: var(--kiez-display); font-size: clamp(24px, 3vw, 34px); font-weight: 700; color: var(--kiez-text-on-dark); letter-spacing: -.02em; margin: 0 0 10px; }
.confera-body .kiez-cta-text { font-size: 15px; color: var(--kiez-text-on-dark-soft); line-height: 1.6; margin: 0; max-width: 56ch; }

/* Tabs + accordion ------------------------------------------------------- */
.confera-body .kiez-tabs-list { display: flex; flex-wrap: wrap; border-bottom: 1.5px solid var(--kiez-violet-15); }
.confera-body .kiez-tab {
  font-family: var(--kiez-display);
  font-size: 14px;
  font-weight: 700;
  padding: 18px 26px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--kiez-text-on-light-soft);
  cursor: pointer;
  transition: color .25s, border-color .25s, background .25s;
}
.confera-body .kiez-tab-active { color: var(--kiez-violet); border-bottom-color: var(--kiez-orange); background: var(--kiez-violet-06); }

.confera-body .kiez-faq-item { border-top: 1px solid var(--kiez-violet-15); }
.confera-body .kiez-faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 4px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--kiez-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--kiez-text-on-light);
}
.confera-body .kiez-faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 2px solid var(--kiez-violet-25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kiez-violet);
  transition: transform .3s;
}
.confera-body .kiez-open .kiez-faq-icon { transform: rotate(45deg); }
.confera-body .kiez-faq-panel { display: grid; grid-template-rows: 0fr; overflow: hidden; transition: grid-template-rows .35s ease; }
.confera-body .kiez-faq-panel > * { min-height: 0; }

/* Audio ------------------------------------------------------------------ */
.confera-body .kiez-audio { display: flex; align-items: center; gap: 16px; }
.confera-body .kiez-audio-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--kiez-orange);
  color: var(--kiez-white);
  border: none;
  flex-shrink: 0;
  cursor: pointer;
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.confera-body .kiez-audio-track { flex: 1; height: 6px; border-radius: 3px; background: var(--kiez-violet-15); position: relative; overflow: hidden; cursor: pointer; }
.confera-body .kiez-audio-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--kiez-orange), var(--kiez-violet)); border-radius: 3px; }

/* Screen-reader-only, matching the theme's own utility name */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Laptop ---------------------------------------------------------------- */
@media (max-width: 1200px) {
  .confera-body .kiez-hero-content,
  .confera-body .kiez-mission-inner,
  .confera-body .kiez-consortium-inner,
  .confera-body .kiez-news-inner,
  .confera-body .kiez-events-inner,
  .confera-body .kiez-fields-inner,
  .confera-body .kiez-cta-inner { padding: 0 32px; }

  .confera-body .kiez-bento { grid-template-columns: repeat(2, 1fr); }
  .confera-body .kiez-bento-featured { grid-column: span 2; }
}

/* Tablet ----------------------------------------------------------------- */
@media (max-width: 900px) {
  .confera-body .kiez-hero { min-height: 0; padding: clamp(72px, 16vw, 120px) 0; }
  .confera-body .kiez-hero-h1 { max-width: none; }
  .confera-body .kiez-hero-sub { margin-bottom: 32px; }

  /* Mission: number and copy side by side, illustration drops below. */
  .confera-body .kiez-mission-row { grid-template-columns: 56px 1fr; row-gap: 20px; }
  .confera-body .kiez-mission-illustration { grid-column: 2; width: clamp(80px, 18vw, 120px); }
  .confera-body .kiez-mission-row:hover { transform: none; }

  .confera-body .kiez-consortium-partner-row { gap: 32px; }
  .confera-body .kiez-cta-inner { grid-template-columns: 1fr; gap: 28px; }
}

/* Mobile ----------------------------------------------------------------- */
@media (max-width: 767px) {
  .confera-body .kiez-hero-content,
  .confera-body .kiez-mission-inner,
  .confera-body .kiez-consortium-inner,
  .confera-body .kiez-news-inner,
  .confera-body .kiez-events-inner,
  .confera-body .kiez-fields-inner,
  .confera-body .kiez-cta-inner { padding: 0 20px; }

  .confera-body .kiez-mission,
  .confera-body .kiez-consortium,
  .confera-body .kiez-news,
  .confera-body .kiez-events,
  .confera-body .kiez-fields { padding: 56px 0; }

  .confera-body .kiez-mission-title,
  .confera-body .kiez-consortium-title,
  .confera-body .kiez-news-title,
  .confera-body .kiez-events-title,
  .confera-body .kiez-fields-title { margin-bottom: 28px; }

  /* The nav wordmark would collide with the burger. */
  .confera-body .kiez-nav-wordmark { display: none; }

  .confera-body .kiez-hero-actions { gap: 10px; }
  .confera-body .kiez-hero-actions .kiez-btn { flex: 1 1 auto; justify-content: center; }

  /* Cards become a swipeable carousel rather than a cramped grid. */
  .confera-body .kiez-news-scroller { margin: 0 -20px; padding: 0 20px 8px; }
  .confera-body .kiez-news-scroller .kiez-news-card { flex: 0 0 82vw; }
  .confera-body .kiez-news-grid { grid-template-columns: 1fr; }

  .confera-body .kiez-bento,
  .confera-body .kiez-bento-featured { grid-template-columns: 1fr; grid-column: auto; }
  .confera-body .kiez-bento-card { padding: 28px 24px; }
  .confera-body .kiez-field-icon { top: 20px; right: 20px; width: 36px; height: 36px; }

  .confera-body .kiez-consortium-grid { grid-template-columns: repeat(2, 1fr); }
  .confera-body .kiez-logo-pill { min-height: 128px; padding: 20px 12px 14px; }
  .confera-body .kiez-logo-pill img { height: 44px; }
  .confera-body .kiez-partner-logo img { height: 44px; }

  /* Event rows: date + title stack, CTA drops under. */
  .confera-body .kiez-event-link { grid-template-columns: 56px 1fr; gap: 16px; padding: 18px 4px; }
  .confera-body .kiez-event-link:hover { padding-left: 4px; }
  .confera-body .kiez-event-cta { grid-column: 2; justify-self: start; margin-top: 10px; }
  .confera-body .kiez-event-day { font-size: 26px; }

  .confera-body .kiez-tab { padding: 14px 18px; font-size: 13px; }
}

/* Small mobile ----------------------------------------------------------- */
@media (max-width: 420px) {
  .confera-body .kiez-mission-row { grid-template-columns: 44px 1fr; gap: 14px; padding: 20px 8px; }
  .confera-body .kiez-mission-illustration { width: 96px; }
  .confera-body .kiez-consortium-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .confera-body .kiez-news-scroller .kiez-news-card { flex: 0 0 88vw; }
  .confera-body .kiez-hero-actions { flex-direction: column; align-items: stretch; }
}

/* Reduced motion --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .confera-body .kiez-wm-row { width: auto !important; overflow: visible; }
  .confera-body .kiez-wm-cursor { display: none; }
  .confera-body .kiez-mission-row:hover { transform: none; }
  .confera-body .kiez-news-card:hover { transform: none; }
  .confera-body .kiez-bento-card:hover { transform: none; }
}
