/* Onderdelen die in meerdere blokken terugkomen: intro, citaatblok, swipe-rij, voetnoot, ballon en bronnen. */
.blok-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  max-width: 720px;
  text-align: center;
}
.blok-intro .tekst-groot { margin-top: var(--space-1); }

@media (max-width: 640px) {
  .blok-intro {
    align-items: flex-start;
    gap: var(--space-4);
    max-width: none;
    text-align: left;
  }
  .blok-intro .tekst-groot {
    margin-top: 0;
    font: var(--text-tekst);
  }
}

.ballon {
  padding: 11px var(--space-4);
  font-size: 14px;
  line-height: 20px;
  border-radius: 20px;
}
.ballon--client {
  color: var(--on-terracotta);
  background: var(--chat-client);
  border-bottom-right-radius: 6px;
}
.ballon--ai {
  color: var(--on-terracotta);
  background: var(--chat-ai);
  border-bottom-left-radius: 6px;
}
.ballon--genai {
  color: var(--ink);
  background: var(--chat-genai);
  border-bottom-left-radius: 6px;
}
.ballon ul {
  margin: 6px 0;
  padding-left: 18px;
}
.ballon .sterretje {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin: 0 6px -2px -2px;
}

/* Hulpbron in een chatballon: beeld, titel en ronde knop */
.hulpbron {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--space-2);
  padding: var(--space-2);
  color: var(--ink);
  background: var(--surface);
  border-radius: 14px;
}
.hulpbron img {
  flex: none;
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
}
.hulpbron span {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.hulpbron b {
  overflow: hidden;
  font-size: 14px;
  line-height: 19px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.hulpbron small {
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-muted);
}
.hulpbron i {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--on-terracotta);
  background: var(--terracotta);
  border-radius: 50%;
}

/* Vel papier dat over het vorige blok schuift: na de header, en 06 over 05 */
.blad {
  position: relative;
  z-index: 1;
  background: var(--canvas);
  border-radius: var(--space-6) var(--space-6) 0 0;
  box-shadow: 0 -14px 36px color-mix(in srgb, var(--ink) 14%, transparent);
  /* De schaduw alleen naar boven; aan de onderkant zou hij als randje boven het volgende blok blijven hangen */
  clip-path: inset(-60px -100vw 0 -100vw);
}

/* Een blok dat blijft staan zodra zijn onderkant onderin beeld is; --blijft-top zet blijft.js */
@media (prefers-reduced-motion: no-preference) {
  [data-blijft-staan] {
    position: sticky;
    top: var(--blijft-top, 0px);
    transform-origin: 50% 100%; /* Zakt weg vanaf de onderkant, het deel dat in beeld is */
  }
}

.voetnoot {
  position: relative;
  top: -1px;
  display: inline-block;
  min-width: 16px;
  height: 16px;
  margin-left: 2px;
  padding: 0 var(--space-1);
  font-size: 10.5px;
  line-height: 16px;
  font-weight: 600;
  text-align: center;
  vertical-align: super;
  color: var(--clay);
  background: var(--sunken);
  border-radius: var(--radius-pill);
}

.citaatblok {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 154px;
  padding: 26px var(--space-6) 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
/* Aanhalingsteken als masker, zodat de kleur uit de token komt */
.citaatblok::before {
  content: "";
  position: absolute;
  top: -11px;
  left: var(--space-6);
  width: 30px;
  height: 22px;
  background: var(--terracotta);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 32'%3E%3Cpath d='M0 20.5C0 10.6 6.2 3.2 15.6 0l1.9 3.6C11.6 6.4 8.4 10.4 8 14.6c.7-.3 1.6-.5 2.6-.5 4.3 0 7.4 3.1 7.4 7.4 0 4.5-3.6 8-8.2 8C3.9 29.5 0 25.8 0 20.5Zm24.6 0c0-9.9 6.2-17.3 15.6-20.5l1.9 3.6c-5.9 2.8-9.1 6.8-9.5 11 .7-.3 1.6-.5 2.6-.5 4.3 0 7.4 3.1 7.4 7.4 0 4.5-3.6 8-8.2 8-5.9 0-9.8-3.7-9.8-9Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 32'%3E%3Cpath d='M0 20.5C0 10.6 6.2 3.2 15.6 0l1.9 3.6C11.6 6.4 8.4 10.4 8 14.6c.7-.3 1.6-.5 2.6-.5 4.3 0 7.4 3.1 7.4 7.4 0 4.5-3.6 8-8.2 8-5.9 0-9.8-3.7-9.8-9Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.citaatblok__label {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.citaatblok p {
  font-family: var(--font-serif);
  font-size: 19px;
  font-style: italic;
  line-height: 27px;
  color: var(--ink);
}
.citaatblok p b {
  font-family: var(--font-sans);
  font-size: 17px;
  font-style: normal;
  font-weight: 600;
  color: var(--terracotta);
}
.citaatblok__context {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--ink-muted);
}

/* Drie citaten naast elkaar, op smalle schermen een swipe-rij met stipjes */
.citaten__rij {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.stipjes {
  display: none;
  align-items: center;
  gap: 6px;
}
.stipjes i {
  width: 6px;
  height: 6px;
  background: var(--line);
  border-radius: var(--radius-pill);
  transition: width .2s ease, background-color .2s ease;
}
.stipjes i.aan {
  width: 18px;
  background: var(--terracotta);
}

.vinkjes {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.vinkjes li {
  position: relative;
  padding-left: 30px;
  font: var(--text-tekst);
  color: var(--ink-muted);
}
.vinkjes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  background: var(--clay-soft);
  border-radius: 50%;
}
.vinkjes li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 7px;
  width: 5px;
  height: 9px;
  border: solid var(--terracotta);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Citaatkaart: citaat van een deelnemer of professional, met naam eronder */
.citaatkaart {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 30px var(--space-6) var(--space-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.citaatkaart::before {
  content: "";
  position: absolute;
  top: -14px;
  left: var(--space-6);
  width: 40px;
  height: 29px;
  background: var(--terracotta);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 32'%3E%3Cpath d='M0 20.5C0 10.6 6.2 3.2 15.6 0l1.9 3.6C11.6 6.4 8.4 10.4 8 14.6c.7-.3 1.6-.5 2.6-.5 4.3 0 7.4 3.1 7.4 7.4 0 4.5-3.6 8-8.2 8C3.9 29.5 0 25.8 0 20.5Zm24.6 0c0-9.9 6.2-17.3 15.6-20.5l1.9 3.6c-5.9 2.8-9.1 6.8-9.5 11 .7-.3 1.6-.5 2.6-.5 4.3 0 7.4 3.1 7.4 7.4 0 4.5-3.6 8-8.2 8-5.9 0-9.8-3.7-9.8-9Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 32'%3E%3Cpath d='M0 20.5C0 10.6 6.2 3.2 15.6 0l1.9 3.6C11.6 6.4 8.4 10.4 8 14.6c.7-.3 1.6-.5 2.6-.5 4.3 0 7.4 3.1 7.4 7.4 0 4.5-3.6 8-8.2 8C3.9 29.5 0 25.8 0 20.5Zm24.6 0c0-9.9 6.2-17.3 15.6-20.5l1.9 3.6c-5.9 2.8-9.1 6.8-9.5 11 .7-.3 1.6-.5 2.6-.5 4.3 0 7.4 3.1 7.4 7.4 0 4.5-3.6 8-8.2 8-5.9 0-9.8-3.7-9.8-9Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.citaatkaart p { font: var(--text-citaat); color: var(--ink); }
.citaatkaart footer {
  margin-top: auto;
  font: var(--text-onderschrift);
  color: var(--ink-muted);
}
.citaatkaart footer b { font-weight: 600; color: var(--ink); }

/* Bouwsteenkaartje in de kleur van zijn bouwsteen */
.bouwsteen {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 212px;
  padding: var(--space-3) 14px;
  color: var(--ink);
  border: 2px solid;
  border-radius: var(--radius-md);
}
.bouwsteen small {
  font-size: 11px;
  line-height: 15px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .72;
}
.bouwsteen b { font-size: 17px; line-height: 22px; font-weight: 600; }
.bouwsteen span { font-size: 14px; line-height: 20px; }
.bouwsteen--2 { background: var(--bouwsteen-2-licht); border-color: var(--bouwsteen-2-donker); }
.bouwsteen--4 { background: var(--bouwsteen-4-licht); border-color: var(--bouwsteen-4-donker); }
.bouwsteen--5 { background: var(--bouwsteen-5-licht); border-color: var(--bouwsteen-5-donker); }
.bouwsteen--zwevend {
  position: absolute;
  box-shadow: var(--shadow-kaartje);
}

/* Foto met afgeronde hoeken en een pilotlabel */
.foto {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.foto img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pilotlabel {
  position: absolute;
  left: var(--space-4);
  bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px var(--space-3);
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-kaartje);
}
.pilotlabel i {
  width: 8px;
  height: 8px;
  background: var(--terracotta);
  border-radius: 50%;
}

.bronnen summary {
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  list-style: none;
  color: var(--ink-muted);
  cursor: pointer;
}
.bronnen summary::-webkit-details-marker { display: none; }
.bronnen ol {
  margin: var(--space-2) 0 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 20px;
  color: var(--ink-muted);
}

@media (max-width: 900px) {
  .citaten {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
  }
  .citaten__rij {
    display: flex;
    gap: var(--space-3);
    margin-inline: calc(-1 * var(--zijmarge));
    padding: var(--space-3) var(--zijmarge) 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--zijmarge);
    scrollbar-width: none;
  }
  .citaten__rij::-webkit-scrollbar { display: none; }
  .citaten__rij > * {
    flex: none;
    width: 318px;
    scroll-snap-align: start;
  }
  .citaatblok { min-height: 0; }
  .stipjes {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stipjes i { transition: none; }
}
