/**
 * Basisopmaak schoolsites: lettertype, koppen, tekst, links, lijsten en
 * knoppen. Geldt op de site en in de editor (.editor-styles-wrapper).
 * Maten uit Sketch "Webdesign de Leeuw" (zie SCHOOL.md).
 */

/* ============================================================
   1. TEKST EN ACHTERGROND
   ============================================================ */
body,
.editor-styles-wrapper {
    font-family: var(--cw-font);
    font-size: var(--cw-tekst-size);
    line-height: var(--cw-tekst-lh);
    color: var(--cw-tekst);
    background-color: var(--cw-achtergrond);
    -webkit-font-smoothing: antialiased;
}

.intro,
.intro p,
.has-intro-font-size {
    font-size: var(--cw-intro-size);
}

.entry-content,
.editor-styles-wrapper {
    overflow-wrap: break-word;
}

/* ============================================================
   2. KOPPEN
   Comfortaa Bold; H2 32/38 oranje (Ons onderwijs) of groen
   (Missie / Visie, Ons team: klasse of blokinstelling).
   ============================================================ */
h1, h2, h3, h4, h5, h6,
.editor-styles-wrapper :is(h1, h2, h3, h4, h5, h6) {
    font-family: var(--cw-font);
    font-weight: 700;
    margin-top: 0;
}

h1, .h1,
.editor-styles-wrapper h1,
.editor-styles-wrapper .editor-post-title {
    font-size: var(--cw-h1);
    line-height: var(--cw-h1-lh);
    letter-spacing: var(--cw-kop-ls);
    color: var(--cw-tekst);
}

h2, .h2,
.editor-styles-wrapper h2 {
    font-size: var(--cw-h2);
    line-height: var(--cw-h2-lh);
    letter-spacing: var(--cw-kop-ls);
    color: var(--cw-kleur-kop);
}

h3, .h3,
.editor-styles-wrapper h3 {
    font-size: var(--cw-h3);
    line-height: var(--cw-h3-lh);
    letter-spacing: -0.19px;
    color: var(--cw-kleur-subkop);
}

h4, h5, h6,
.editor-styles-wrapper :is(h4, h5, h6) {
    font-size: var(--cw-h4);
    line-height: var(--cw-h4-lh);
    color: var(--cw-kleur-kop);
}

/* Kop in de knopkleur (groen), zoals "Missie / Visie" en "Ons team" */
.kop-groen,
h2.kop-groen,
.editor-styles-wrapper .kop-groen {
    color: var(--cw-knop);
}

/* ============================================================
   3. LINKS
   ============================================================ */
.entry-content a:not(.wp-block-button__link):not(.kb-button):not(.button),
.editor-styles-wrapper a:not(.wp-block-button__link):not(.kb-button) {
    color: var(--cw-kleur-link);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .2s ease;
}

.entry-content a:not(.wp-block-button__link):not(.kb-button):not(.button):hover {
    color: var(--cw-kleur-link-hover);
}

/* ============================================================
   4. LIJSTEN
   Organische bolletjes uit het design (images/bullet-1 t/m -6.svg,
   13 × 14), als masker: de kleur komt uit het palet (accent).
   Elk punt een andere vorm, zoals in Sketch.
   ============================================================ */
.entry-content ul:not([class*="wp-block-kadence"]):not(.menu),
.editor-styles-wrapper ul.wp-block-list {
    list-style: none;
    padding-left: 0;
}

.entry-content ul:not([class*="wp-block-kadence"]):not(.menu) > li,
.editor-styles-wrapper ul.wp-block-list > li {
    position: relative;
    padding-left: 22px;
}

.entry-content ul:not([class*="wp-block-kadence"]):not(.menu) > li::before,
.editor-styles-wrapper ul.wp-block-list > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: calc(var(--cw-tekst-lh) / 2 - 7px);
    width: 13px;
    height: 14px;
    background: var(--cw-accent);
    -webkit-mask: url("../images/bullet-1.svg") center / contain no-repeat;
    mask: url("../images/bullet-1.svg") center / contain no-repeat;
}

.entry-content ul:not([class*="wp-block-kadence"]):not(.menu) > li:nth-child(6n+2)::before,
.editor-styles-wrapper ul.wp-block-list > li:nth-child(6n+2)::before {
    -webkit-mask-image: url("../images/bullet-2.svg");
    mask-image: url("../images/bullet-2.svg");
}

.entry-content ul:not([class*="wp-block-kadence"]):not(.menu) > li:nth-child(6n+3)::before,
.editor-styles-wrapper ul.wp-block-list > li:nth-child(6n+3)::before {
    -webkit-mask-image: url("../images/bullet-3.svg");
    mask-image: url("../images/bullet-3.svg");
}

.entry-content ul:not([class*="wp-block-kadence"]):not(.menu) > li:nth-child(6n+4)::before,
.editor-styles-wrapper ul.wp-block-list > li:nth-child(6n+4)::before {
    -webkit-mask-image: url("../images/bullet-4.svg");
    mask-image: url("../images/bullet-4.svg");
}

.entry-content ul:not([class*="wp-block-kadence"]):not(.menu) > li:nth-child(6n+5)::before,
.editor-styles-wrapper ul.wp-block-list > li:nth-child(6n+5)::before {
    -webkit-mask-image: url("../images/bullet-5.svg");
    mask-image: url("../images/bullet-5.svg");
}

.entry-content ul:not([class*="wp-block-kadence"]):not(.menu) > li:nth-child(6n)::before,
.editor-styles-wrapper ul.wp-block-list > li:nth-child(6n)::before {
    -webkit-mask-image: url("../images/bullet-6.svg");
    mask-image: url("../images/bullet-6.svg");
}

/* ============================================================
   5. KNOPPEN
   CTA uit Sketch: groen, Comfortaa Bold 13/16 wit, 40 px hoog,
   afgerond met een scherpe hoek rechtsboven.
   Varianten: "Actie" (magenta, zoals Kennismaken) en "Omlijnd"
   (groene rand, zoals "Lees meer" in de nieuwskaarten).
   ============================================================ */
.wp-block-button__link,
.kb-button,
.button,
button.kb-forms-submit,
input[type="submit"],
.editor-styles-wrapper .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--cw-knop-hoogte);
    padding: var(--cw-knop-padding);
    border: 0;
    border-radius: var(--cw-knop-radius);
    background: var(--cw-knop);
    color: var(--cw-wit);
    font-family: var(--cw-font);
    font-size: var(--cw-knop-size);
    font-weight: 700;
    line-height: 16px;
    text-decoration: none;
    box-shadow: none;
    transition: background-color .2s ease, color .2s ease;
}

.wp-block-button__link:hover,
.kb-button:hover,
.button:hover,
button.kb-forms-submit:hover,
input[type="submit"]:hover {
    background: var(--cw-accent);
    color: var(--cw-wit);
}

.wp-block-button__link:focus-visible,
.kb-button:focus-visible,
.button:focus-visible {
    outline: 3px solid var(--cw-accent);
    outline-offset: 3px;
}

/* Actie (magenta) */
.is-style-actie .wp-block-button__link,
.knop-actie .wp-block-button__link,
.kb-button.knop-actie {
    background: var(--cw-actie);
}

.is-style-actie .wp-block-button__link:hover,
.knop-actie .wp-block-button__link:hover,
.kb-button.knop-actie:hover {
    background: var(--cw-accent);
}

/* Omlijnd: groene rand, groene tekst */
.is-style-rand .wp-block-button__link,
.knop-rand .wp-block-button__link,
.kb-button.knop-rand {
    background: transparent;
    color: var(--cw-knop);
    box-shadow: inset 0 0 0 2px var(--cw-knop);
}

.is-style-rand .wp-block-button__link:hover,
.knop-rand .wp-block-button__link:hover,
.kb-button.knop-rand:hover {
    background: var(--cw-knop);
    color: var(--cw-wit);
}

/* ============================================================
   6. TOEGANKELIJKHEID
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}
