/* schil.css — gedeelde basis voor alle sites in het abonnement.
   Per site overschrijf je variabelen in site.php ('stijl') of in een eigen site.css.
   Variabelen: --papier, --inkt, --grijs, --lijn, --accent, --letter, --maat, --breedte, --plaat, --plaat-mobiel */

:root {
  --papier: #fbfaf7;
  --inkt: #1d1c1a;
  --grijs: #6f6c66;
  --lijn: #ddd9d1;
  --accent: #8a6d2b;
  --markeer: #fff3a0;
  --letter: 'Fraunces', Georgia, serif;
  --maat: 18px;
  --breedte: 46rem;
  --plaat: 256px;
  --plaat-mobiel: 128px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--inkt);
  font-family: var(--letter);
  font-size: var(--maat);
  line-height: 1.55;
  font-optical-sizing: auto;
}
main { max-width: var(--breedte); margin: 0 auto; padding: 1.5rem 1rem 4rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-weight: 400; line-height: 1.15; margin: 2.4em 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: calc(2.2rem * var(--kopschaal, 1)); margin-top: 0.5em; }
h2 { font-size: calc(1.5rem * var(--kopschaal, 1)); }
h3 { font-size: calc(1.15rem * var(--kopschaal, 1)); }
p { margin: 0 0 1em; hyphens: auto; }
em { font-style: italic; }
hr { border: 0; border-top: 1px solid var(--lijn); margin: 2.5rem 0; }
.grijs, small { color: var(--grijs); }
.klein { font-size: 0.9rem; }
.onder { color: var(--grijs); font-size: 1.05rem; margin-top: -0.4em; }
.nummer { color: var(--grijs); font-variant-numeric: tabular-nums; margin-right: 0.5em; }
mark.invul { background: var(--markeer); color: inherit; padding: 0 0.2em; }

/* kop */
.schil-kop {
  max-width: var(--breedte); margin: 0 auto; padding: 1.2rem 1rem 0;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem 1.4rem;
}
.schil-naam a { color: var(--inkt); font-size: 1.15rem; letter-spacing: 0.02em; }
.schil-menu { display: flex; flex-wrap: wrap; gap: 0 1.2rem; font-size: 0.95rem; }
.schil-menu a { color: var(--grijs); }
.schil-taal { margin-left: auto; font-size: 0.8rem; letter-spacing: 0.08em; display: flex; gap: 0.7rem; }
.schil-taal a { color: var(--grijs); }
.schil-taal a.actief { color: var(--inkt); border-bottom: 1px solid var(--inkt); }

/* voet */
.schil-voet {
  max-width: var(--breedte); margin: 0 auto; padding: 1rem 1rem 3rem;
  border-top: 1px solid var(--lijn); color: var(--grijs); font-size: 0.9rem; position: relative;
}
.schil-buro { margin: 0.4em 0 0; }
.schil-potlood {
  position: fixed; right: 1rem; bottom: 1rem; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  border: 1px solid var(--lijn); background: var(--papier); color: var(--grijs); font-size: 1.1rem;
  cursor: pointer; opacity: 0.75; transition: opacity 0.2s;
}
.schil-potlood:hover, body.bewerkt .schil-potlood { opacity: 1; }
body.bewerkt .schil-potlood { background: var(--inkt); color: var(--papier); }

/* platen: runaround, ook op mobiel */
figure.plaat { margin: 0.3em 0 1em; width: var(--plaat); font-size: 0.82rem; color: var(--grijs); line-height: 1.35; }
figure.plaat.rechts { float: right; margin-left: 1.4rem; }
figure.plaat.links { float: left; margin-right: 1.4rem; }
figure.plaat.breed { float: none; width: 100%; margin: 1.5em 0; }
figure.plaat img { display: block; width: 100%; height: auto; }
figure.plaat figcaption { margin-top: 0.4em; }
figure.plaat a { display: block; }
.klaar::after, section::after { content: ""; display: block; clear: both; }
@media (max-width: 640px) {
  :root { --maat: 17px; }
  figure.plaat { width: var(--plaat-mobiel); }
  figure.plaat.rechts { margin-left: 1rem; }
  figure.plaat.links { margin-right: 1rem; }
  figure.plaat.breed { width: 100%; }
  .schil-taal { margin-left: 0; }
}

/* lijstvormen zonder kaders: cv, exposities */
dl.lijst { margin: 0 0 1.5em; }
dl.lijst div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0 1rem; padding: 0.25em 0; }
dl.lijst dt { color: var(--grijs); font-variant-numeric: tabular-nums; margin: 0; }
dl.lijst dd { margin: 0; }
@media (max-width: 480px) { dl.lijst div { grid-template-columns: 4.5rem 1fr; } }

/* bewerkstand */
body.bewerkt [data-t] { outline: 1px dashed color-mix(in srgb, var(--accent) 50%, transparent); outline-offset: 2px; cursor: text; }
body.bewerkt [data-t]:focus { outline: 2px solid var(--accent); background: color-mix(in srgb, var(--markeer) 40%, transparent); }
body.bewerkt [data-t].bewaard { outline-color: #4a9; }
body.bewerkt [data-t].mislukt { outline-color: #c33; }
.schil-login { position: fixed; inset: 0; background: rgba(0,0,0,0.35); display: grid; place-items: center; z-index: 60; }
.schil-login form { background: var(--papier); padding: 1.5rem; border-radius: 0.4rem; display: grid; gap: 0.6rem; min-width: 16rem; }
.schil-login input { font: inherit; padding: 0.4em 0.6em; border: 1px solid var(--lijn); }
.schil-login button { font: inherit; padding: 0.4em 0.8em; background: var(--inkt); color: var(--papier); border: 0; cursor: pointer; }
/* tentoonstellingen: overzicht, expositielijst, beheer (alleen in bewerkstand) */
.tt-overzicht { margin-top: 2rem; }
.tt-item { overflow: hidden; padding: 1rem 0; border-top: 1px solid var(--lijn); }
.tt-item:last-child { border-bottom: 1px solid var(--lijn); }
.tt-item figure.plaat { margin-top: 0.2em; margin-bottom: 0.2em; }
.tt-jaar { color: var(--grijs); font-variant-numeric: tabular-nums; margin: 0 0 0.2em; }
.tt-wat { margin: 0; }
a.tt-meer { white-space: nowrap; }
.tt-lijst a.tt-meer { color: var(--grijs); }
.tt-terug { margin-top: 3rem; }
.tt-beheer, form.tt-nieuw { display: none; }
body.bewerkt .tt-beheer { display: flex; gap: 0.3rem; align-items: center; margin-top: 0.5rem; font-size: 0.8rem; }
body.bewerkt form.tt-nieuw { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 2rem 0; padding: 1rem; border: 1px dashed var(--grijs); font-size: 0.9rem; }
.tt-beheer button, form.tt-nieuw button { font: inherit; padding: 0.2em 0.6em; border: 1px solid var(--lijn); background: var(--papier); cursor: pointer; }
form.tt-nieuw input { font: inherit; padding: 0.3em 0.5em; border: 1px solid var(--lijn); flex: 1 1 10rem; }
form.tt-nieuw button { background: var(--inkt); color: var(--papier); border-color: var(--inkt); }

/* bewerkpaneel (bewerk.js) — linksonder, blijft staan zolang de bewerkstand aan is */
.schil-paneel { display: none; position: fixed; left: 1rem; bottom: 1rem; z-index: 80; width: min(24rem, calc(100vw - 5rem)); max-height: calc(100vh - 2rem); overflow: auto;
  background: #1d1c1a; color: #ece6da; font: 13px/1.45 system-ui, 'Segoe UI', sans-serif; padding: .7rem .8rem; border-radius: .6rem; box-shadow: 0 10px 34px rgba(0,0,0,.35); }
.schil-paneel.zichtbaar { display: block; }
.schil-paneel .bp-kop { font-weight: 700; display: flex; gap: .5rem; align-items: baseline; }
.schil-paneel .bp-taal { color: #cdb46b; letter-spacing: .08em; }
.schil-paneel .bp-stil { font-weight: 400; opacity: .6; }
.schil-paneel .bp-teller { margin-left: auto; font-weight: 400; opacity: .6; }
.schil-paneel .bp-sleutel { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; opacity: .7; margin: .25rem 0; word-break: break-all; }
.schil-paneel .bp-stand { margin: .2rem 0 .4rem; }
.schil-paneel .bp-stand.ok { color: #b5d8a8; }
.schil-paneel .bp-stand.fout { color: #ffb4a8; }
.schil-paneel .bp-mee { display: flex; align-items: center; gap: .35rem; margin: .2rem 0 .5rem; cursor: pointer; }
.schil-paneel .bp-mee input { margin: 0; accent-color: #cdb46b; }
.schil-paneel .bp-vstatus { opacity: .7; }
.schil-paneel .bp-vstatus.fout { opacity: 1; color: #ffb4a8; }
.schil-paneel .bp-knoppen { display: flex; flex-wrap: wrap; gap: .3rem; }
.schil-paneel .bp-knoppen button, .schil-paneel .bp-knoppen a { font: inherit; color: inherit; background: rgba(255,255,255,.1); border: 0; border-radius: .35rem; padding: .35rem .6rem; cursor: pointer; text-decoration: none; }
.schil-paneel .bp-knoppen button:hover, .schil-paneel .bp-knoppen a:hover { background: rgba(255,255,255,.2); }
.schil-paneel .bp-knoppen button:disabled { opacity: .5; cursor: default; }
.schil-paneel .bp-klaar { background: #ece6da !important; color: #1d1c1a !important; font-weight: 600 !important; }
.schil-paneel .bp-vak { display: none; margin-top: .6rem; padding-top: .5rem; border-top: 1px solid rgba(255,255,255,.15); }
.schil-paneel .bp-vak.zichtbaar { display: block; }
.schil-paneel .bp-vak h5 { margin: .5rem 0 .3rem; font: 700 10px/1 system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #cdb46b; }
.schil-paneel .bp-rij { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin: .25rem 0; }
.schil-paneel .bp-rij b { font-weight: 400; opacity: .7; margin-left: .3em; }
.schil-paneel .bp-rij input[type=color] { width: 2.4rem; height: 1.6rem; border: 0; padding: 0; background: none; cursor: pointer; }
.schil-paneel .bp-rij input[type=range] { width: 9rem; accent-color: #cdb46b; }
.schil-paneel .bp-rij select { font: inherit; background: #2b2825; color: inherit; border: 1px solid rgba(255,255,255,.2); border-radius: .3rem; padding: .15rem .3rem; }
.schil-paneel .bp-vak .bp-knoppen { margin-top: .6rem; }
.schil-paneel .bp-log { display: none; margin-top: .5rem; white-space: pre-wrap; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; max-height: 9rem; overflow: auto; background: rgba(255,255,255,.06); padding: .4rem .5rem; border-radius: .3rem; }
.schil-paneel .bp-log.zichtbaar { display: block; }

/* opmaakbalk boven een selectie */
.schil-opmaak { display: none; position: absolute; z-index: 90; transform: translate(-50%, calc(-100% - 8px)); background: #1d1c1a; border-radius: .45rem; padding: 3px; gap: 2px; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.schil-opmaak.zichtbaar { display: flex; }
.schil-opmaak button { font: 14px/1 system-ui, sans-serif; color: #ece6da; background: none; border: 0; border-radius: .3rem; min-width: 2rem; height: 2rem; cursor: pointer; }
.schil-opmaak button:hover { background: rgba(255,255,255,.15); }
.schil-paneel .bp-inklap { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; opacity: .7; padding: 0 .2rem; }
.schil-paneel.klein .bp-sleutel, .schil-paneel.klein .bp-mee, .schil-paneel.klein .bp-vak, .schil-paneel.klein .bp-log { display: none !important; }
.schil-paneel.klein .bp-stand { margin-bottom: .3rem; }
