/* Cayweb Stijl: opmaak van blogartikels. Geldt voor het Post Content-widget met klasse cw-artikel én in de WordPress-editor. */
@font-face { font-family: 'Space Grotesk'; src: url('fonts/spacegrotesk.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('fonts/spacemono-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('fonts/spacemono-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Caveat'; src: url('fonts/caveat.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }
:root {
  --cw-zwart: #0A0A0A; --cw-creme: #FAF5EB; --cw-lime: #CAEB47; --cw-rood: #DD4238; --cw-donkerrood: #B8352C; --cw-zand: #F1EADC; --cw-wit: #FFFFFF;
  --cw-kool: #24231F; --cw-rand-donker: #34322D; --cw-steen: #4A4740; --cw-gedempt: #8E8A80; --cw-zilver: #B9B4A9; --cw-lijn: #D8D0BF;
  --cw-font: 'Space Grotesk', system-ui, sans-serif; --cw-mono: 'Space Mono', ui-monospace, monospace; --cw-stift: 'Caveat', cursive;
  --cw-ease: cubic-bezier(.2, .8, .2, 1);
}
.editor-styles-wrapper { background: var(--cw-creme) !important; }
.editor-styles-wrapper .editor-post-title, .editor-styles-wrapper .wp-block-post-title { font-family: var(--cw-font) !important; font-weight: 700; letter-spacing: -0.04em; color: var(--cw-zwart); }

/* ---------- Basistekst ---------- */
:is(.cw-artikel, .editor-styles-wrapper) { font-family: var(--cw-font); font-size: 19px; line-height: 1.7; color: #2A2926; }
:is(.cw-artikel, .editor-styles-wrapper) p { margin: 0 0 22px; }
:is(.cw-artikel, .editor-styles-wrapper) strong, :is(.cw-artikel, .editor-styles-wrapper) b { font-weight: 700; color: var(--cw-zwart); }
:is(.cw-artikel, .editor-styles-wrapper) h2 { font-family: var(--cw-font) !important; font-size: clamp(30px, 3vw, 40px) !important; line-height: 1.1 !important; letter-spacing: -0.03em; font-weight: 700 !important; color: var(--cw-zwart) !important; margin: 56px 0 18px; scroll-margin-top: 24px; }
:is(.cw-artikel, .editor-styles-wrapper) h3 { font-family: var(--cw-font) !important; font-size: 23px !important; line-height: 1.25 !important; letter-spacing: -0.02em; font-weight: 700 !important; color: var(--cw-zwart) !important; margin: 30px 0 10px; display: flex; align-items: center; gap: 10px; scroll-margin-top: 24px; }
:is(.cw-artikel, .editor-styles-wrapper) h3::before { content: ""; flex: 0 0 auto; width: 10px; height: 10px; background: var(--cw-rood); }
:is(.cw-artikel, .editor-styles-wrapper) h4 { font-family: var(--cw-font) !important; font-size: 19px !important; font-weight: 700 !important; color: var(--cw-zwart) !important; margin: 26px 0 8px; }
:is(.cw-artikel, .editor-styles-wrapper) > :first-child, :is(.cw-artikel, .editor-styles-wrapper) > .elementor-widget-container > :first-child { margin-top: 0; }
/* Markeren: selecteer tekst → pijltje → Markeren (elke kleur wordt de lime markering) */
:is(.cw-artikel, .editor-styles-wrapper) mark { background: linear-gradient(transparent 62%, var(--cw-lime) 62%) !important; color: inherit !important; padding: 0 2px; font-weight: 700; }
/* Links */
:is(.cw-artikel, .editor-styles-wrapper) a { color: var(--cw-zwart); font-weight: 700; text-decoration: underline; text-decoration-color: var(--cw-lime); text-decoration-thickness: 3px; text-underline-offset: 4px; transition: background-color .2s ease; }
:is(.cw-artikel, .editor-styles-wrapper) a:hover { background: var(--cw-lime); }

/* ---------- Lijsten: handgetekende vinkjes, genummerd met rode cijfers ---------- */
.cw-artikel ul:not([class*="elementor"]), .editor-styles-wrapper ul.wp-block-list { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cw-artikel ul:not([class*="elementor"]) > li, .editor-styles-wrapper ul.wp-block-list > li { position: relative; margin: 0; padding-left: 34px; line-height: 1.6; }
.cw-artikel ul:not([class*="elementor"]) > li::before, .editor-styles-wrapper ul.wp-block-list > li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 22px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 26'%3E%3Cpath d='M3 14 C 7 17, 9 20, 11 23 C 15 14, 21 7, 27 3' fill='none' stroke='%230A0A0A' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
:is(.cw-artikel, .editor-styles-wrapper) ol { margin: 0 0 22px; padding-left: 26px; }
:is(.cw-artikel, .editor-styles-wrapper) ol > li { margin-bottom: 10px; padding-left: 4px; }
:is(.cw-artikel, .editor-styles-wrapper) ol > li::marker { color: var(--cw-rood); font-family: var(--cw-mono); font-weight: 700; }

/* ---------- Quote: lime blok met tape ---------- */
:is(.cw-artikel, .editor-styles-wrapper) blockquote, :is(.cw-artikel, .editor-styles-wrapper) .wp-block-quote { position: relative; margin: 36px 0 !important; padding: 28px 30px !important; background: var(--cw-lime) !important; border: 2px solid var(--cw-zwart) !important; box-shadow: 8px 8px 0 var(--cw-zwart); color: var(--cw-zwart); font-style: normal; quotes: none; }
:is(.cw-artikel, .editor-styles-wrapper) blockquote::before, :is(.cw-artikel, .editor-styles-wrapper) .wp-block-quote::before { content: ""; position: absolute; top: -16px; left: 28px; width: 96px; height: 28px; background: var(--cw-creme); opacity: .9; transform: rotate(-4deg); pointer-events: none; }
:is(.cw-artikel, .editor-styles-wrapper) blockquote p { margin: 0 0 12px; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; color: var(--cw-zwart); }
:is(.cw-artikel, .editor-styles-wrapper) blockquote p:last-of-type { margin-bottom: 0; }
:is(.cw-artikel, .editor-styles-wrapper) blockquote cite { display: block; margin-top: 14px; font-family: var(--cw-mono); font-size: 13px; font-style: normal; font-weight: 700; color: var(--cw-zwart); }

/* ---------- Afbeeldingen: rand en schaduw, onderschrift in handschrift ---------- */
:is(.cw-artikel, .editor-styles-wrapper) .wp-block-image { margin: 8px 0 32px; }
:is(.cw-artikel, .editor-styles-wrapper) .wp-block-image img { display: block; width: 100%; height: auto; border: 2px solid var(--cw-zwart) !important; box-shadow: 6px 6px 0 var(--cw-zwart) !important; }
:is(.cw-artikel, .editor-styles-wrapper) .wp-block-image figcaption, :is(.cw-artikel, .editor-styles-wrapper) .wp-block-image .wp-element-caption { margin: 12px 0 0; text-align: left; font-family: var(--cw-stift) !important; font-size: 26px; font-weight: 700; line-height: 1.15; color: var(--cw-donkerrood); }

/* ---------- Tabel ---------- */
:is(.cw-artikel, .editor-styles-wrapper) .wp-block-table { margin: 28px 0; overflow-x: auto; }
:is(.cw-artikel, .editor-styles-wrapper) table { width: 100%; border-collapse: collapse; border: 2px solid var(--cw-zwart); background: var(--cw-wit); font-size: 15px; line-height: 1.45; }
:is(.cw-artikel, .editor-styles-wrapper) .wp-block-table thead { border-bottom: 0; }
:is(.cw-artikel, .editor-styles-wrapper) th { padding: 12px; text-align: left; border: 0; background: var(--cw-zwart); color: var(--cw-creme); font-family: var(--cw-mono); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
:is(.cw-artikel, .editor-styles-wrapper) td { padding: 12px; border: 0; border-top: 1px solid var(--cw-lijn); vertical-align: top; }
:is(.cw-artikel, .editor-styles-wrapper) .wp-block-table figcaption { font-family: var(--cw-mono); font-size: 12px; color: var(--cw-steen); margin-top: 8px; text-align: left; }
/* Vergelijkingstabel (klasse cw-vergelijk): 1e kolom vet, 2e kolom lime, 3e kolom rood */
:is(.cw-artikel, .editor-styles-wrapper) .cw-vergelijk th { color: var(--cw-zwart); background: var(--cw-wit); }
:is(.cw-artikel, .editor-styles-wrapper) .cw-vergelijk th:nth-child(2) { background: var(--cw-lime); }
:is(.cw-artikel, .editor-styles-wrapper) .cw-vergelijk th:nth-child(3) { background: var(--cw-rood); }
:is(.cw-artikel, .editor-styles-wrapper) .cw-vergelijk td:first-child { font-weight: 700; color: var(--cw-zwart); width: 22%; }
:is(.cw-artikel, .editor-styles-wrapper) .cw-vergelijk td:nth-child(2) { background: #F6F9E8; }
:is(.cw-artikel, .editor-styles-wrapper) .cw-vergelijk td:nth-child(3) { background: #FCEDEB; }

/* ---------- Keuzekaarten (groep cw-keuze): 1e kaart rood, 2e lime, 3e zand ---------- */
:is(.cw-artikel, .editor-styles-wrapper) .cw-keuze { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 8px 0 26px; }
:is(.cw-artikel, .editor-styles-wrapper) .cw-keuze > * { margin: 0 !important; max-width: none !important; padding: 22px; border: 2px solid var(--cw-zwart); color: var(--cw-zwart); background: var(--cw-rood); }
:is(.cw-artikel, .editor-styles-wrapper) .cw-keuze > :nth-child(2) { background: var(--cw-lime); }
:is(.cw-artikel, .editor-styles-wrapper) .cw-keuze > :nth-child(3) { background: var(--cw-zand); }
:is(.cw-artikel, .editor-styles-wrapper) .cw-keuze p { margin: 0 !important; font-size: 21px; font-weight: 700; line-height: 1.3; color: var(--cw-zwart); }
:is(.cw-artikel, .editor-styles-wrapper) .cw-keuze p:first-child { margin-bottom: 8px !important; font-family: var(--cw-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Casekaarten (groep cw-cases): label, titel (met link), uitleg, cijfer ---------- */
:is(.cw-artikel, .editor-styles-wrapper) .cw-cases { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 8px 0 26px; }
:is(.cw-artikel, .editor-styles-wrapper) .cw-cases > * { position: relative; display: flex !important; flex-direction: column; gap: 10px; margin: 0 !important; max-width: none !important; padding: 22px; background: var(--cw-wit); border: 2px solid var(--cw-zwart); box-shadow: 5px 5px 0 var(--cw-zwart); transition: translate .28s var(--cw-ease); }
:is(.cw-artikel, .editor-styles-wrapper) .cw-cases > :has(a):hover { translate: -3px -3px; }
:is(.cw-artikel, .editor-styles-wrapper) .cw-cases p { margin: 0 !important; font-size: 16px; line-height: 1.55; color: #3A3832; }
:is(.cw-artikel, .editor-styles-wrapper) .cw-cases > * > p:first-child { align-self: flex-start; padding: 3px 8px; background: var(--cw-rood); color: var(--cw-zwart); font-family: var(--cw-mono); font-size: 11px; font-weight: 700; line-height: 1.4; }
:is(.cw-artikel, .editor-styles-wrapper) .cw-cases > :nth-child(2n) > p:first-child { background: var(--cw-lime); }
:is(.cw-artikel, .editor-styles-wrapper) .cw-cases > * > p:nth-child(2) { font-size: 22px; font-weight: 700; line-height: 1.2; color: var(--cw-zwart); }
:is(.cw-artikel, .editor-styles-wrapper) .cw-cases > * > p:last-child:not(:nth-child(-n+3)) { margin-top: auto !important; padding-top: 10px; border-top: 1px dashed var(--cw-zwart); font-family: var(--cw-mono); font-size: 15px; font-weight: 700; color: var(--cw-zwart); }
:is(.cw-artikel, .editor-styles-wrapper) .cw-cases a { color: var(--cw-zwart); text-decoration: none; background: none !important; }
.cw-artikel .cw-cases a::after { content: ""; position: absolute; inset: 0; }

/* ---------- Balken (groep cw-balken): bv. de opbouw van een Google-resultatenpagina ---------- */
:is(.cw-artikel, .editor-styles-wrapper) .cw-balken { display: flex !important; flex-direction: column; gap: 6px; margin: 8px 0 26px; }
:is(.cw-artikel, .editor-styles-wrapper) .cw-balken p { margin: 0 !important; padding: 12px 14px; background: var(--cw-rood); color: var(--cw-zwart); font-family: var(--cw-mono); font-size: 13px; font-weight: 700; line-height: 1.4; }
:is(.cw-artikel, .editor-styles-wrapper) .cw-balken p:nth-child(2) { background: var(--cw-zand); border: 2px dashed var(--cw-zwart); padding: 10px 14px; }
:is(.cw-artikel, .editor-styles-wrapper) .cw-balken p:nth-child(3) { background: var(--cw-lime); }
:is(.cw-artikel, .editor-styles-wrapper) .cw-balken p:nth-child(4) { background: var(--cw-zwart); color: var(--cw-creme); }

/* ---------- Kader (groep cw-kader): zwart blok met lime schaduw, voor een tip of samenvatting ---------- */
:is(.cw-artikel, .editor-styles-wrapper) .cw-kader { margin: 32px 0 !important; padding: 24px 26px; background: var(--cw-zwart); color: var(--cw-creme); box-shadow: 8px 8px 0 var(--cw-lime); }
:is(.cw-artikel, .editor-styles-wrapper) .cw-kader p, :is(.cw-artikel, .editor-styles-wrapper) .cw-kader li { color: #D9D4CA; font-size: 17px; }
:is(.cw-artikel, .editor-styles-wrapper) .cw-kader p:first-child { margin-bottom: 10px; color: var(--cw-lime); font-family: var(--cw-mono); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
:is(.cw-artikel, .editor-styles-wrapper) .cw-kader p:last-child { margin-bottom: 0; }
:is(.cw-artikel, .editor-styles-wrapper) .cw-kader strong { color: var(--cw-creme); }
:is(.cw-artikel, .editor-styles-wrapper) .cw-kader a { color: var(--cw-lime); }
.cw-artikel .cw-kader ul:not([class*="elementor"]) > li::before, .editor-styles-wrapper .cw-kader ul.wp-block-list > li::before { filter: invert(1); }

/* ---------- Veelgestelde vragen (groep cw-faq-artikel met Details-blokken) ---------- */
:is(.cw-artikel, .editor-styles-wrapper) .cw-faq-artikel { margin: 0 0 22px !important; border-top: 2px solid var(--cw-zwart); }
:is(.cw-artikel, .editor-styles-wrapper) .cw-faq-artikel details { margin: 0 !important; border-bottom: 2px solid var(--cw-zwart); }
:is(.cw-artikel, .editor-styles-wrapper) .cw-faq-artikel summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 60px; padding: 16px 0; cursor: pointer; font-size: 18px; font-weight: 700; line-height: 1.35; color: var(--cw-zwart); }
:is(.cw-artikel, .editor-styles-wrapper) .cw-faq-artikel summary::-webkit-details-marker { display: none; }
:is(.cw-artikel, .editor-styles-wrapper) .cw-faq-artikel summary::marker { content: ""; }
:is(.cw-artikel, .editor-styles-wrapper) .cw-faq-artikel summary::after { content: "+"; flex: 0 0 34px; height: 34px; display: flex; align-items: center; justify-content: center; background: var(--cw-zwart); color: var(--cw-creme); font-size: 22px; font-weight: 400; line-height: 1; transition: rotate .3s ease, background-color .3s ease, color .3s ease; }
:is(.cw-artikel, .editor-styles-wrapper) .cw-faq-artikel details[open] > summary::after { rotate: 45deg; background: var(--cw-lime); color: var(--cw-zwart); }
:is(.cw-artikel, .editor-styles-wrapper) .cw-faq-artikel details > :not(summary) { padding-right: 44px; font-size: 17px; line-height: 1.6; color: #3A3832; }
:is(.cw-artikel, .editor-styles-wrapper) .cw-faq-artikel details > p:last-child { margin-bottom: 20px; }

/* ---------- Grafiek SEO tegenover SEA (HTML-blok, het script tekent de lijnen) ---------- */
:is(.cw-artikel, .editor-styles-wrapper) .cw-grafiek { margin: 36px 0; padding: clamp(20px, 3vw, 30px); background: var(--cw-zwart); color: var(--cw-creme); box-shadow: 8px 8px 0 var(--cw-lime); }
:is(.cw-artikel, .editor-styles-wrapper) .cw-grafiek__kop { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 14px; }
:is(.cw-artikel, .editor-styles-wrapper) .cw-grafiek__titel { font-family: var(--cw-font); font-size: 20px; font-weight: 700; color: var(--cw-creme); }
:is(.cw-artikel, .editor-styles-wrapper) .cw-grafiek__noot { font-family: var(--cw-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--cw-gedempt); }
:is(.cw-artikel, .editor-styles-wrapper) .cw-grafiek__legende { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 10px; font-family: var(--cw-mono); font-size: 13px; }
:is(.cw-artikel, .editor-styles-wrapper) .cw-grafiek__legende span { display: inline-flex; align-items: center; gap: 8px; }
:is(.cw-artikel, .editor-styles-wrapper) .cw-grafiek__legende span::before { content: ""; width: 22px; height: 4px; background: var(--cw-lime); }
:is(.cw-artikel, .editor-styles-wrapper) .cw-grafiek__legende .cw-grafiek__sea::before { background: var(--cw-rood); }
:is(.cw-artikel, .editor-styles-wrapper) .cw-grafiek svg { display: block; width: 100%; height: auto; overflow: visible; }
:is(.cw-artikel, .editor-styles-wrapper) .cw-grafiek label { display: block; margin-top: 16px; font-weight: 700; color: var(--cw-creme); }
:is(.cw-artikel, .editor-styles-wrapper) .cw-grafiek label span { font-family: var(--cw-mono); color: var(--cw-lime); }
:is(.cw-artikel, .editor-styles-wrapper) .cw-grafiek input[type="range"] { width: 100%; height: 32px; margin: 0; padding: 0; border: 0; background: transparent; accent-color: var(--cw-rood); cursor: pointer; }
:is(.cw-artikel, .editor-styles-wrapper) .cw-grafiek p { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--cw-zilver); }
