/* Neftprom: de donkere stand. Geladen na alle andere opmaak; werkt alleen als <html data-thema="donker"> staat
   (dat zet gedeeld.js: je eigen keuze in het menu, of anders de stand van je apparaat).
   Regels uit de ontwerpregels: op donker doet een schaduw weinig, dus wat hoger ligt is een tint lichter;
   het blauw wordt lichter, anders zakt het weg in de achtergrond. Het inlogscherm blijft licht. */
:root[data-thema=donker] {
  --accent: #6c93f5; --accent-donker: #88a8f8; --accent-zacht: #1c2947;
  --pagina: #0e1014; --kaart: #181b22;
  --inkt: #f1f2f4; --inkt-zacht: #c0c5cf; --grijs: #8e96a4;
  --vul: #232731; --vul-donker: #2c313c; --waas: #1e222a; --lijn: #2a2f3a; --lijn-donker: #3d4453;
  --rood: #ff7389; --rood-zacht: #3a1b22; --geel-zacht: #352d14;
  --zweef: 0 0 0 1px rgba(255, 255, 255, .06), 0 12px 32px rgba(0, 0, 0, .5);
  color-scheme: dark;
}
/* het inlogscherm en de andere smalle schermen houden hun lichte kleuren */
:root[data-thema=donker] body:has(main.smal) {
  --accent: #2452c9; --accent-donker: #1c44ab; --accent-zacht: #e8eefc; --pagina: #f5f5f7; --kaart: #ffffff;
  --inkt: #111318; --inkt-zacht: #4a4f5a; --grijs: #6b7280; --vul: #eef0f3; --vul-donker: #e3e6ea; --waas: #f5f6f8;
  --lijn: #e6e8ec; --lijn-donker: #cfd3da; --rood: #de1135; --rood-zacht: #fff0ee; --geel-zacht: #fff7e0; color-scheme: light;
}
:root[data-thema=donker] body:not(:has(main.smal)) { background: var(--pagina); color: var(--inkt); }
:root[data-thema=donker] body:not(:has(main.smal)) .kop { background: rgba(24, 27, 34, .88); }
:root[data-thema=donker] body:not(:has(main.smal)) .merk.klein .merknaam { background-image: url('/naam-wit.svg'); }
:root[data-thema=donker] .tabbalk { background: rgba(24, 27, 34, .97); }
:root[data-thema=donker] body:not(:has(main.smal)) :is(.venster, .menu, .wiemenu) { background: #20242d; }
:root[data-thema=donker] body:not(:has(main.smal)) :is(input, select, textarea):focus { background: var(--kaart); }
:root[data-thema=donker] body:not(:has(main.smal)) .zoekveld input[type=search]:focus { background: var(--kaart); }
:root[data-thema=donker] .wissel a.aan { background: #3a4150; color: var(--inkt); box-shadow: none; }
:root[data-thema=donker] button.hoofd, :root[data-thema=donker] button.rond.hoofd { color: #0e1014; }
:root[data-thema=donker] .k-tegel.aan { color: #0e1014; }
:root[data-thema=donker] .k-tegel.aan .k-rond { background: rgba(14, 16, 20, .16); color: #0e1014; }
:root[data-thema=donker] .k-tegel.aan .k-naam { color: rgba(14, 16, 20, .8); }
:root[data-thema=donker] .k-rij.aan .letter { color: #0e1014; }
:root[data-thema=donker] :is(.kopnieuw, .gr-nieuw) { color: #0e1014; }
:root[data-thema=donker] .bericht.eigen .bel { background: #3d63c9; color: #fff; }
:root[data-thema=donker] .bericht.eigen .spraak-knop { color: #3d63c9 !important; }
:root[data-thema=donker] .beeld { background: var(--vul); }
:root[data-thema=donker] .tegel .steen { filter: brightness(.8) saturate(1.05); }
:root[data-thema=donker] .tegel .open { background: var(--accent-zacht); }
:root[data-thema=donker] .onder button.link { background: var(--kaart); }
:root[data-thema=donker] #melding { background: #2c313c; }
:root[data-thema=donker] .let-op { color: #f0d98a; }
:root[data-thema=donker] .let-op.rood-vlak { color: var(--rood); }
:root[data-thema=donker] .demo .hint { color: #f0d98a; }
:root[data-thema=donker] .demoknop { background: var(--vul); }
:root[data-thema=donker] .schakel { background: #4a5263; }
:root[data-thema=donker] .schakel.aan { background: var(--accent); }
:root[data-thema=donker] .dbalk { background: rgba(14, 16, 20, .9); }
:root[data-thema=donker] .gesprek-kop { background: var(--kaart); }
:root[data-thema=donker] .sterkte i.stand3 { background: #4fc463; }
:root[data-thema=donker] .sterkte i.stand4 { background: #2fb360; }
:root[data-thema=donker] .twee input[type=date]:focus { background: var(--kaart); }
:root[data-thema=donker] .generator, :root[data-thema=donker] .ledenlijst, :root[data-thema=donker] .instelkaart { background: var(--vul); }
:root[data-thema=donker] button:disabled { background: var(--waas); color: #5d6472; }

/* het inlogscherm blijft licht, ook als je apparaat op donker staat: de knop wit op zwart, meldingen donker op licht */
:root[data-thema=donker] main.smal button.hoofd { background: #000; color: #fff; }
:root[data-thema=donker] main.smal button:not(.hoofd):not(.link) { background: #eef0f3; color: #111318; }
:root[data-thema=donker] main.smal .let-op, :root[data-thema=donker] main.smal .demo .hint { color: #5c4400; }
:root[data-thema=donker] main.smal .demoknop { background: #fff; color: #111318; }
:root[data-thema=donker] main.smal :is(input, select, textarea) { background: #eef0f3; color: #111318; }
:root[data-thema=donker] main.smal :is(input, select, textarea):focus { background: #fff; }
:root[data-thema=donker] main.smal, :root[data-thema=donker] main.smal h1, :root[data-thema=donker] main.smal label { color: #111318; }
:root[data-thema=donker] main.smal .code { background: #eef0f3; color: #111318; }
