/* Onderdelen uit de editor (afbeelding, knop, video, kader, kolommen, tabel, scheidingslijn): blog, nieuwsbrief, het voorbeeld in de editor
   en de video's op /zzp/. Ze komen uit scripts/markdown.mjs. */

.comp-afbeelding, .comp-video, .comp-kader, .comp-kolommen, .comp-tabel { margin: 1.8em 0; }
.comp-afbeelding img { width: 100%; height: auto; border-radius: 2px; }
.comp-afbeelding figcaption, .comp-video figcaption { margin-top: 10px; font-size: .92rem; line-height: 1.5; color: var(--creme-zacht); }
.comp-afbeelding--midden { width: min(100%, 420px); margin-inline: auto; }
@media (min-width: 701px) {
  .comp-afbeelding--links, .comp-afbeelding--rechts { width: 46%; margin-top: .35em; margin-bottom: 1em; }
  .comp-afbeelding--links { float: left; margin-right: 28px; }
  .comp-afbeelding--rechts { float: right; margin-left: 28px; }
}
.comp-knop { margin: 1.6em 0; }
.comp-scheiding { margin: 2.4em 0; border: 0; border-top: 1px solid var(--lijn-groen); }
.comp-kader { padding: 20px 24px; background: var(--groen-diep); border: 1px solid var(--lijn-groen); border-left: 3px solid var(--goud); border-radius: 2px; }
.comp-kader > * + * { margin-top: .9em; }
.comp-kader-titel { margin-bottom: .5em; color: var(--goud); font-weight: 750; font-size: 1.1rem; line-height: 1.3; }
.comp-kolommen { display: grid; gap: 24px 32px; }
.comp-kolommen--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.comp-kolommen--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.comp-kolom > * + * { margin-top: 1em; }
.comp-kolom > :first-child { margin-top: 0; }
.comp-tabel table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.4; }
.comp-tabel th, .comp-tabel td { padding: 10px 14px 10px 0; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.comp-tabel th { color: var(--goud); font-weight: 700; border-bottom: 1px solid var(--goud); }
.comp-tabel td { color: var(--creme-zacht); border-bottom: 1px solid var(--lijn-groen); }
.comp-video-start { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; padding: 0; overflow: hidden; background: var(--groen-diep); border: 1px solid var(--lijn-groen); border-radius: 2px; color: var(--creme); }
.comp-video-start img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.comp-video-knop { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px 14px 18px; background: var(--creme); color: var(--groen); border-radius: 2px; font-weight: 700; transition: background-color .2s; }
.comp-video-knop::before { content: ''; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent currentColor; }
.comp-video-start:hover .comp-video-knop { background: var(--goud); }
.comp-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 2px; background: #000; }
.comp-kader, .comp-kolommen, .comp-tabel, .comp-video, .comp-knop, .comp-scheiding { clear: both; }
@media (max-width: 700px) {
  .comp-kolommen { grid-template-columns: minmax(0, 1fr); }
}
