/* Brand Studio · hoort bij js/brandstudio.js
   De gids kleurt mee met het merk: --bs-papier, --bs-inkt, --bs-accent en de letters komen uit het merk. */
.bs {
  --bs-papier: #F4F1EA; --bs-inkt: #151515; --bs-accent: #0B0B0B;
  --bs-kop: 'Archivo Black'; --bs-body: 'Archivo'; --bs-kopgewicht: 700; --bs-kopcaps: none; --bs-kopspatie: 0em; --bs-kopstijl: normal;
  --bs-vak: color-mix(in srgb, var(--bs-inkt) 6%, var(--bs-papier));
  --bs-lijn: color-mix(in srgb, var(--bs-inkt) 16%, var(--bs-papier));
  --bs-zacht: color-mix(in srgb, var(--bs-inkt) 68%, var(--bs-papier));
  background: var(--bs-papier); color: var(--bs-inkt);
  font-family: var(--bs-body), 'Helvetica Neue', Arial, sans-serif; font-size: 16px; line-height: 1.55;
  border-radius: 20px; position: relative; text-align: left;
}
.bs *, .bs *::before { box-sizing: border-box; }
.bs h1, .bs h2, .bs h3 { font-style: var(--bs-kopstijl); font-family: var(--bs-kop), Georgia, serif; font-weight: var(--bs-kopgewicht); text-transform: var(--bs-kopcaps); letter-spacing: var(--bs-kopspatie); margin: 0; line-height: 1.1; color: var(--bs-inkt); }
.bs h1 { font-size: clamp(34px, 5.4vw, 68px); max-width: 16ch; }
.bs h2 { font-size: clamp(30px, 4vw, 50px); }
.bs h3 { font-size: 21px; }
.bs p { margin: 8px 0 0; color: var(--bs-zacht); max-width: 68ch; }
.bs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bs-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bs-zacht); margin: 18px 0 8px; font-family: var(--bs-body), sans-serif; }
.bs-knop { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--bs-lijn); background: transparent; color: var(--bs-inkt); font: 600 14px/1 var(--bs-body), sans-serif; cursor: pointer; text-decoration: none; white-space: nowrap; }
.bs-knop:hover { border-color: var(--bs-inkt); }
.bs-knop.vol { background: var(--bs-inkt); color: var(--bs-papier); border-color: var(--bs-inkt); }
.bs-knop.vol:hover { opacity: .88; }
.bs-knop.klein { min-height: 34px; padding: 6px 12px; font-size: 13px; }
.bs-knop.groot { min-height: 52px; padding: 12px 28px; font-size: 16px; }
.bs-knop:disabled { opacity: .4; cursor: default; }
.bs-knoppen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.bs :focus-visible { outline: 2px solid var(--bs-accent); outline-offset: 2px; }

/* ---------- balk bovenaan */
.bs-balk { position: sticky; top: var(--bs-top, 0px); z-index: 5; display: flex; align-items: center; gap: 14px; padding: 10px 20px; background: color-mix(in srgb, var(--bs-papier) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--bs-lijn); border-radius: 20px 20px 0 0; }
.bs-balknaam { font: 700 12px/1 var(--bs-body), sans-serif; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.bs-balk nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; justify-content: flex-end; }
.bs-balk nav a { padding: 8px 10px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--bs-zacht); text-decoration: none; white-space: nowrap; border-radius: 8px; }
.bs-balk nav a:hover { color: var(--bs-inkt); background: var(--bs-vak); }

/* ---------- secties */
.bs-hero, .bs > section { padding: clamp(28px, 5vw, 64px) clamp(20px, 5vw, 64px); scroll-margin-top: calc(var(--bs-top, 0px) + 70px); }
.bs > section { border-top: 1px solid var(--bs-lijn); }
.bs-hero .bs-label { margin-top: 0; }
.bs-intro, .bs-lead { font-size: 18px; }
.bs-nr { font: 600 12px/1 var(--bs-body), sans-serif; letter-spacing: .14em; color: var(--bs-accent); display: block; margin-bottom: 10px; }
.bs-tussen { margin-top: 44px !important; }
.bs-starts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 32px 0 20px; }
.bs-starts > * { display: block; text-align: left; padding: 18px; border-radius: 14px; border: 1.5px solid var(--bs-lijn); background: transparent; color: inherit; text-decoration: none; cursor: pointer; font: inherit; }
.bs-starts > *:hover { border-color: var(--bs-inkt); }
.bs-starts b { display: block; font-size: 17px; }
.bs-starts span { font-size: 14px; color: var(--bs-zacht); }
.bs-starts button { background: var(--bs-inkt); border-color: var(--bs-inkt); color: var(--bs-papier); }
.bs-starts button span { color: inherit; opacity: .8; }
.bs-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 26px; }
.bs-raster.smal { grid-template-columns: repeat(auto-fill, minmax(220px, 300px)); }
.bs-raster.kleur { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

/* ---------- logo en beeldmerk */
.bs-logokaart, .bs-markkaart, .bs-kleurkaart { border: 1px solid var(--bs-lijn); border-radius: 14px; overflow: hidden; background: color-mix(in srgb, var(--bs-inkt) 3%, var(--bs-papier)); }
.bs-logovak, .bs-markvak { aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 12%; transition: background .25s; border-bottom: 1px solid var(--bs-lijn); }
.bs-logovak img, .bs-markvak img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bs-kaartlijf { padding: 16px 18px 18px; }
.bs-kaartlijf p { font-size: 14px; }
.bs-stalen { display: flex; flex-wrap: wrap; gap: 8px; }
.bs-staal { width: 30px; height: 30px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--bs-inkt) 30%, transparent); cursor: pointer; padding: 0; position: relative; }
.bs-staal[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bs-papier), 0 0 0 4px var(--bs-inkt); }
.bs-staal.niet { opacity: .45; cursor: not-allowed; }
.bs-staal.niet::after { content: ""; position: absolute; left: -2px; right: -2px; top: 50%; height: 2px; background: var(--bs-inkt); transform: rotate(-45deg); }
.bs-drie { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border: 1px solid var(--bs-lijn); border-radius: 14px; margin-top: 14px; overflow: hidden; }
.bs-drie > div { padding: 18px; border-right: 1px solid var(--bs-lijn); }
.bs-drie b { font-size: 17px; }
.bs-drie p { font-size: 14px; }
.bs-ruimte { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: 32px; align-items: center; margin-top: 40px; }
.bs-ruimtevak { background: var(--bs-vak); border-radius: 14px; padding: 24px; }
.bs-ruimtevak > div { border: 1px dashed var(--bs-zacht); padding: 15%; background: repeating-linear-gradient(45deg, transparent 0 6px, color-mix(in srgb, var(--bs-inkt) 7%, transparent) 6px 7px); }
.bs-ruimtevak img { width: 100%; background: var(--bs-vak); display: block; filter: var(--bs-logofilter, none); }
.bs-ruimte h3 + p { margin-bottom: 22px; }
.bs ul { margin: 12px 0 0; padding: 0; list-style: none; }
.bs-niet li, .bs-wel li { padding: 6px 0 6px 28px; position: relative; color: var(--bs-zacht); }
.bs-niet li::before { content: "×"; position: absolute; left: 4px; top: 4px; font-weight: 700; color: #C2402E; font-size: 18px; }
.bs-wel li::before { content: "✓"; position: absolute; left: 4px; color: #2E8B57; font-weight: 700; }

/* ---------- kleur */
.bs-kleurvlak { min-height: 120px; padding: 14px 16px; display: flex; flex-direction: column; justify-content: flex-end; }
.bs-kleurvlak small { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; opacity: .75; font-weight: 700; }
.bs-kleurvlak b { font-style: var(--bs-kopstijl); font-family: var(--bs-kop), serif; font-weight: var(--bs-kopgewicht); font-size: 20px; line-height: 1.15; }
.bs-code { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 9px 16px; background: transparent; border: 0; border-top: 1px solid var(--bs-lijn); color: var(--bs-inkt); font: 500 12px/1.2 ui-monospace, Menlo, monospace; cursor: pointer; }
.bs-code span { color: var(--bs-zacht); letter-spacing: .08em; }
.bs-code:hover, .bs-code.ok { background: var(--bs-vak); }
.bs-code.ok b::after { content: "  ✓"; }
.bs-recept { display: flex; height: 76px; border-radius: 14px; overflow: hidden; margin-top: 14px; border: 1px solid var(--bs-lijn); }
.bs-recept span { display: flex; align-items: flex-end; padding: 8px; font-size: 10px; font-weight: 600; min-width: 0; overflow: hidden; white-space: nowrap; }
.bs-paring { border-radius: 14px; padding: 18px; border: 1px solid var(--bs-lijn); }
.bs-paringkop { display: flex; justify-content: space-between; font: 700 10px/1 var(--bs-body), sans-serif; letter-spacing: .12em; text-transform: uppercase; opacity: .8; margin-bottom: 12px; }
.bs-pr { display: flex; align-items: baseline; gap: 12px; padding: 5px 0; font-size: 13px; }
.bs-pr b { font-size: 24px; width: 40px; line-height: 1; }
.bs-pr.groot b { font-size: 32px; }
.bs-pr strong { margin-right: 6px; }
.bs-nooit { margin-top: 12px; padding-top: 10px; border-top: 1px solid currentColor; font-size: 12px; }
.bs-nooit > span { font-weight: 700; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.bs-nooit div { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 6px; }
.bs-nooit i { font-style: normal; display: inline-flex; align-items: center; gap: 6px; }
.bs-nooit em { width: 12px; height: 12px; border-radius: 50%; border: 1px solid currentColor; display: inline-block; }

/* ---------- letters, foto's, stem */
.bs-typelijst { margin-top: 20px; }
.bs-type { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--bs-lijn); align-items: center; }
.bs-typevb { font-size: clamp(26px, 3.6vw, 46px); line-height: 1.12; overflow-wrap: anywhere; }
.bs-type .bs-label { margin-top: 0; }
.bs-link { display: inline-block; margin-top: 8px; font-size: 14px; color: var(--bs-inkt); text-underline-offset: 3px; }
.bs-galerij { columns: 4 180px; column-gap: 12px; margin-top: 24px; }
.bs-galerij.groot { columns: 3 240px; }
.bs-galerij img { width: 100%; border-radius: 12px; margin-bottom: 12px; display: block; break-inside: avoid; }
.bs-twee { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; margin-top: 26px; }
.bs-vb { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 14px; }
.bs-vb > div { border: 1px solid var(--bs-lijn); border-radius: 14px; padding: 6px 18px 16px; }
.bs-vb p { font-size: 16px; color: var(--bs-inkt); margin-top: 12px; }
.bs-vb p span { display: block; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.bs-vb .fout { opacity: .6; text-decoration: line-through; text-decoration-color: #C2402E; }
.bs-vb .fout span { text-decoration: none; display: block; color: #C2402E; }
.bs-vb .goed span { color: #2E8B57; }
.bs-vb .goed { font-style: var(--bs-kopstijl); font-family: var(--bs-kop), serif; font-size: 21px; line-height: 1.25; }
.bs-slot { text-align: center; }
.bs-slot p { margin: 10px auto 22px; }

/* ---------- lagen: formulier en editor */
html.bs-open { overflow: hidden; }
.bs-laag { position: fixed; inset: 0; z-index: 9000; background: rgba(8, 9, 12, .72); backdrop-filter: blur(6px); overflow: auto; padding: 4vh 16px; display: flex; justify-content: center; align-items: flex-start; }
.bs-laag-editor { padding: 0; }
.bs-x { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--bs-inkt); font-size: 28px; line-height: 1; cursor: pointer; }
.bs-x:hover { background: var(--bs-vak); }
.bs-form { --bs-papier: #FBF9F4; --bs-inkt: #151515; --bs-accent: #151515; --bs-kop: 'Archivo'; --bs-body: 'Archivo'; --bs-kopgewicht: 700; --bs-kopcaps: none; --bs-kopspatie: 0em; --bs-kopstijl: normal; width: min(940px, 100%); padding: 30px clamp(18px, 4vw, 40px) 34px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.bs-form h2 { font-size: 30px; padding-right: 40px; }
.bs-velden { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-top: 22px; }
.bs-velden label { display: block; font-size: 13px; font-weight: 600; }
.bs-velden label small { font-weight: 400; color: var(--bs-zacht); }
.bs-velden .breed { grid-column: 1 / -1; }
.bs-form input:not([type=file]), .bs-form textarea, .bs-form select, .bs-editor select, .bs-edrechts textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--bs-lijn); background: #fff; color: #151515; font: 400 15px/1.4 'Archivo', sans-serif; }
.bs-form input[type=file] { display: block; margin-top: 8px; font-size: 13px; max-width: 100%; }
.bs-fotokeus > div, .bs-tegels { display: flex; flex-wrap: wrap; gap: 6px; }
.bs-fotokeus button, .bs-tegels button { width: 56px; height: 56px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: var(--bs-vak); }
.bs-fotokeus button[aria-pressed="true"] { border-color: var(--bs-inkt); }
.bs-fotokeus img, .bs-tegels img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bs-voorstellen { margin-top: 26px; }
.bs-bezig { text-align: center; }
.bs-zes { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.bs-voorstel { padding: 0; border: 0; background: none; cursor: pointer; text-align: left; color: var(--bs-zacht); font: 600 12px/1 'Archivo', sans-serif; }
.bs-voorstel canvas { width: 100%; height: auto; display: block; border-radius: 10px; box-shadow: 0 6px 18px rgba(0, 0, 0, .16); transition: transform .15s; margin-bottom: 8px; }
.bs-voorstel:hover canvas { transform: translateY(-4px); }

.bs-editor { --bs-papier: #F4F1EA; --bs-inkt: #151515; --bs-accent: #151515; --bs-kop: 'Archivo'; --bs-body: 'Archivo'; --bs-kopgewicht: 700; --bs-kopcaps: none; --bs-kopspatie: 0em; --bs-kopstijl: normal; width: 100%; height: 100dvh; border-radius: 0; display: flex; flex-direction: column; background: #ECE8DF; }
.bs-edbalk { display: flex; align-items: center; gap: 10px; padding: 10px 60px 10px 16px; background: #FBF9F4; border-bottom: 1px solid var(--bs-lijn); flex-wrap: wrap; position: relative; }
.bs-ednaam { margin-right: auto; font-size: 15px; }
.bs-edbalk select { width: auto; margin: 0; padding: 6px 10px; font-size: 13px; border-radius: 999px; }
.bs-opmerk { font-size: 12px; font-weight: 700; padding: 8px 12px; border-radius: 999px; background: #DDF1E4; color: #17603A; white-space: nowrap; }
.bs-opmerk.letop { background: #FBE3C8; color: #8A4B00; }
.bs-edlijf { flex: 1; display: grid; grid-template-columns: 150px 1fr 300px; min-height: 0; }
.bs-edlinks, .bs-edrechts { background: #FBF9F4; padding: 6px 14px 20px; overflow-y: auto; }
.bs-edlinks { border-right: 1px solid var(--bs-lijn); }
.bs-edrechts { border-left: 1px solid var(--bs-lijn); }
.bs-toevoeg { display: block; width: 100%; text-align: left; padding: 9px 12px; margin-bottom: 6px; border-radius: 10px; border: 1.5px solid var(--bs-lijn); background: #fff; font: 600 13px/1.2 'Archivo', sans-serif; cursor: pointer; color: #151515; }
.bs-toevoeg:hover { border-color: #151515; }
.bs-doek { display: grid; place-items: center; padding: 16px; min-height: 0; min-width: 0; overflow: hidden; }
.bs-doekbinnen { position: relative; box-shadow: 0 16px 50px rgba(0, 0, 0, .22); touch-action: none; cursor: default; }
.bs-doekbinnen canvas { display: block; }
.bs-kader { position: absolute; border: 1.5px solid #3B6BFF; pointer-events: none; }
.bs-kader i { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid #3B6BFF; pointer-events: auto; }
.bs-kader i[data-greep="w"] { right: -8px; top: 50%; margin-top: -7px; cursor: ew-resize; }
.bs-kader i[data-greep="hoek"] { right: -8px; bottom: -8px; cursor: nwse-resize; }
.bs-kader[data-type="tekst"] i[data-greep="hoek"] { display: none; }
.bs-kader:not([data-type="tekst"]) i[data-greep="w"] { display: none; }
.bs-stijlen button { display: block; width: 100%; text-align: left; padding: 8px 12px; border-radius: 10px; border: 1.5px solid transparent; background: none; cursor: pointer; color: #151515; }
.bs-stijlen button[aria-pressed="true"] { border-color: #151515; background: #fff; }
.bs-stijlen b { display: block; font-size: 19px; line-height: 1.2; font-weight: 400; }
.bs-stijlen small { color: var(--bs-zacht); font-size: 12px; }
.bs-regel { background: #EEEADF; border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-top: 8px; color: #333; }
.bs-regel b { margin-right: 4px; }
.bs-regel.letop { background: #FBE3C8; color: #6B3A00; }
.bs-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bs-chips button { padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--bs-lijn); background: #fff; font: 500 13px/1 'Archivo', sans-serif; cursor: pointer; color: #151515; }
.bs-chips button[aria-pressed="true"] { background: #151515; color: #fff; border-color: #151515; }
.bs-schuif { display: grid; grid-template-columns: 96px 1fr 44px; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 6px; }
.bs-schuif input { width: 100%; accent-color: #151515; }
.bs-schuif output { text-align: right; font-variant-numeric: tabular-nums; color: var(--bs-zacht); }
.bs-rij { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.bs-tip { font-size: 13px; }

@media (max-width: 900px) {
  .bs-balk nav { display: none; }
  .bs-balk { justify-content: space-between; }
  .bs-ruimte, .bs-type { grid-template-columns: 1fr; gap: 16px; }
  .bs-velden { grid-template-columns: 1fr; }
  .bs-editor { height: auto; min-height: 100dvh; }
  .bs-edlijf { grid-template-columns: 1fr; }
  .bs-doek { height: 62vh; order: 1; }
  .bs-edrechts { order: 2; border: 0; border-top: 1px solid var(--bs-lijn); }
  .bs-edlinks { order: 3; border: 0; border-top: 1px solid var(--bs-lijn); }
  .bs-ednaam { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .bs * { transition: none !important; scroll-behavior: auto !important; } }

/* meldingen van het portal horen boven de studio-lagen */
html.bs-open .toasts, html.bs-open .xp-vlieg { z-index: 9500; }

/* in het portal staat de gele demobalk vast bovenaan */
html[data-demo="uit"] .inhoud .bs { --bs-top: var(--demobalk); }
