/* ── Lijntekeningen (zie includes/illustrations.php) ─────────────────────────────
   Eén kleur per tekening. Standaard oranje; .illo--ink geeft zwart (op oranje),
   .illo--on-dark zet de oranje tekening op een zwarte achtergrond. */

.illo {
  --illo-color: #D75217;
  display: block;
  width: 140px;
  max-width: 100%;
  height: auto;
  color: var(--illo-color);
  overflow: visible;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
.illo--ink { --illo-color: #0d0d0d; }

/* Slinger: vaste hoogte, loopt over de volle breedte */
.illo.illo-lights {
  width: 100%;
  height: 56px;
  max-width: none;
}

/* Maatvarianten */
.illo--sm { width: 96px; }
.illo--lg { width: 200px; }

@media (max-width: 640px) {
  .illo { width: 108px; }
  .illo--lg { width: 150px; }
}

/* Tekeningen mogen aan de rand van een sectie staan en eruit lopen */
.illo-anchor { position: relative; overflow: hidden; }
.illo-abs { position: absolute; z-index: 0; }

@media print { .illo { display: none; } }

/* ── Plaatsing ───────────────────────────────────────────────────────────────── */

/* Lichtslinger langs de bovenrand van een sectie (de sectie krijgt position: relative) */
.illo-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 0;
  line-height: 0;
  pointer-events: none;
}

/* Tekening naast een sectiekop (altijd naast de kop, nooit los eronder):
   desktop/tablet rechts naast de kop, telefoon klein rechtsboven op de rij van het label */
.illo-header { position: relative; }
.illo-side { position: absolute; right: 0; top: 50%; transform: translateY(-50%); line-height: 0; }
@media (min-width: 901px) {
  .illo-header { padding-right: 15rem; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .illo-header { padding-right: 10rem; }
  .illo-side .illo { width: 120px; }
}
@media (max-width: 640px) {
  .illo-side { top: -6px; transform: none; }
  .illo-side .illo { width: 68px; }
}

/* Tekening onderaan een sectie: de grondlijn valt samen met de onderrand van de sectie */
@media (min-width: 901px) {
  .illo-foot { position: absolute; right: 0; bottom: -0.55rem; line-height: 0; }
  .illo-foot .illo { width: 230px; }
}
@media (max-width: 900px) {
  .illo-foot { display: flex; justify-content: flex-end; margin: 1.25rem -2rem -6px 0; line-height: 0; }
  .illo-foot .illo { width: 108px; }
}
