/* Fletiomare communicatieplatform — follows styleguide.md.
   Fixed brand palette + semantic tokens that flip between light & dark themes.
   Light blue is an accent/fill only (never text on white); navy is the only dark
   surface; brown is reserved for the logo/small accents and is not a UI colour. */

@font-face { font-family:"Profile"; font-weight:300; font-style:normal; font-display:swap;
  src:url("/fonts/profile-light.woff2") format("woff2"); }
@font-face { font-family:"Profile"; font-weight:400; font-style:normal; font-display:swap;
  src:url("/fonts/profile-regular.woff2") format("woff2"); }
@font-face { font-family:"Profile"; font-weight:700; font-style:normal; font-display:swap;
  src:url("/fonts/profile-bold.woff2") format("woff2"); }

:root {
  /* Brand palette — fixed, never themed. Brown = logo/small accent only. */
  --flet-blue:#98CAEC; --flet-brown:#653818; --flet-navy:#2C313D; --flet-navy-deep:#23272F;
  --flet-red:#E1261C; --flet-orange:#F28B00; --flet-green:#00953B;
  --on-accent:#1B2733;            /* dark text used on a light-blue fill (both themes) */

  --font:"Profile","Profile Pro",system-ui,"Segoe UI",Arial,sans-serif;
  --radius:8px; --radius-sm:6px; --radius-pill:999px;
  --container:1180px; --gutter:16px; --header-h:50px;
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px;
  --space-5:24px; --space-6:32px; --space-7:48px;
}

/* Light theme (default) */
:root, [data-theme="light"] {
  --color-bg:#ffffff; --color-canvas:#F4F8FC; --color-surface:#ffffff;
  --color-text:#1D1D1B; --color-heading:#2C313D; --color-muted:#8A7B6F;
  --color-border:#DCE2EA; --color-accent:#98CAEC; --color-link:#2C313D;
  --color-wash:#EAF4FB;
  --btn-bg:#2C313D; --btn-fg:#ffffff; --btn-bg-hover:#23272F;
  --warn-bg:#FFF6E8; --warn-line:#F0D9B0;
  --shadow-card:0 1px 2px rgba(44,49,61,.06); --shadow-pop:0 4px 14px rgba(0,0,0,.18);
  --ok:#00953B; --warn:#E1261C;
}

/* Dark theme */
[data-theme="dark"] {
  --color-bg:#2C313D; --color-canvas:#262B36; --color-surface:#23272F;
  --color-text:#EAF0F6; --color-heading:#ffffff; --color-muted:#9AA4B2;
  --color-border:#4A5160; --color-accent:#98CAEC; --color-link:#98CAEC;
  --color-wash:#33414E;
  --btn-bg:#98CAEC; --btn-fg:#1B2733; --btn-bg-hover:#B9DCF3;
  --warn-bg:#3A3327; --warn-line:#5E5334;
  --shadow-card:0 1px 3px rgba(0,0,0,.45); --shadow-pop:0 6px 18px rgba(0,0,0,.55);
  --ok:#3FBF6B; --warn:#F2705F;
}

/* Follow the OS when the user hasn't explicitly chosen */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg:#2C313D; --color-canvas:#262B36; --color-surface:#23272F;
    --color-text:#EAF0F6; --color-heading:#ffffff; --color-muted:#9AA4B2;
    --color-border:#4A5160; --color-accent:#98CAEC; --color-link:#98CAEC;
    --color-wash:#33414E;
    --btn-bg:#98CAEC; --btn-fg:#1B2733; --btn-bg-hover:#B9DCF3;
    --warn-bg:#3A3327; --warn-line:#5E5334;
    --shadow-card:0 1px 3px rgba(0,0,0,.45); --shadow-pop:0 6px 18px rgba(0,0,0,.55);
    --ok:#3FBF6B; --warn:#F2705F;
  }
}

* { box-sizing:border-box; }
body { margin:0; min-height:100vh; display:flex; flex-direction:column;
  font:400 14.5px/1.45 var(--font); background:var(--color-canvas); color:var(--color-text); }

/* top bar — flat navy chrome in both themes */
.topbar { background:var(--flet-navy); color:#fff;
  padding:0 14px; min-height:var(--header-h); display:flex; justify-content:space-between; align-items:center;
  border-bottom:1px solid rgba(0,0,0,.25); position:sticky; top:0; z-index:100; }
.brand { display:flex; align-items:center; gap:10px; }
.brand img { height:28px; width:28px; object-fit:contain; background:#fff; border-radius:6px; padding:2px; }
.brand-text { display:flex; flex-direction:column; line-height:1.12; }
.brand-text b { font-weight:700; letter-spacing:.2px; }
.brand-text small { opacity:.8; font-size:12px; }
.userbox { display:flex; align-items:center; gap:6px; font-size:14px; }
.userbox a { color:#fff; text-decoration:underline; margin-left:6px; }

/* theme toggle */
.theme-toggle { background:rgba(255,255,255,.14); border:0; color:#fff; cursor:pointer; margin:0;
  width:34px; height:34px; border-radius:50%; font-size:16px; line-height:1; padding:0;
  display:inline-flex; align-items:center; justify-content:center; }
.theme-toggle:hover { background:rgba(255,255,255,.26); }

/* layout: sidebar + content */
/* app shell: full-width, sidebar fixed to the left edge, content fills the rest */
.layout { display:flex; width:100%; gap:0; padding:0; align-items:stretch; flex:1 0 auto; }
.vd-main { flex:1 0 auto; }
.nav { flex:0 0 220px; position:sticky; top:var(--header-h); align-self:flex-start; height:calc(100vh - var(--header-h));
  overflow-y:auto; display:flex; flex-direction:column; gap:1px;
  background:var(--color-surface); border-right:1px solid var(--color-border); padding:12px 8px; }
/* menu: app-style. Main items = icon + label; sub items = smaller, indented on a guide line */
.nav { --nav-accent:#2f7fb8; gap:2px; }
.nav-item { display:flex; align-items:center; gap:10px; width:100%; min-height:36px; margin:0; padding:7px 10px;
  border:0; border-radius:8px; background:none; color:var(--color-text); text-decoration:none; cursor:pointer;
  font:500 14px/1.2 var(--font); text-align:left; }
.nav-item span { flex:1 1 auto; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.nav-item:hover { background:var(--color-wash); color:var(--color-heading); }
.nav-ico { flex:0 0 18px; width:18px; height:18px; color:var(--color-muted); }
.nav-item:hover .nav-ico { color:var(--color-heading); }
.nav-item.active { background:var(--color-wash); color:var(--color-heading); font-weight:600; }
.nav-item.active .nav-ico, .nav-parent.has-active .nav-ico { color:var(--nav-accent); }
.nav-parent.has-active { color:var(--color-heading); font-weight:600; }
.nav-chev { flex:0 0 14px; width:14px; height:14px; color:var(--color-muted); transition:transform .15s ease; }
.nav-group.open .nav-chev { transform:rotate(90deg); }
.nav-ext { flex:0 0 13px; width:13px; height:13px; color:var(--color-muted); }
.nav-group { display:flex; flex-direction:column; }
.nav-group:not(.open) .nav-sub { display:none; }
.nav-sub { display:flex; flex-direction:column; gap:1px; margin:2px 0 6px 19px; padding-left:10px; border-left:1px solid var(--color-border); }
.nav-subitem { position:relative; display:block; padding:6px 10px; border-radius:6px; color:var(--color-muted);
  text-decoration:none; font-size:13.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.nav-subitem:hover { background:var(--color-wash); color:var(--color-heading); }
.nav-subitem.active { color:var(--color-heading); font-weight:600; background:var(--color-wash); }
.nav-subitem.active::before { content:""; position:absolute; left:-11px; top:6px; bottom:6px; width:2px; border-radius:2px; background:var(--nav-accent); }
main { flex:1 1 auto; min-width:0; padding:20px 28px 28px; }
.prose { max-width:900px; }  /* long reads keep a comfortable line length */

/* cards & text */
.card { background:var(--color-surface); border:1px solid var(--color-border); border-radius:var(--radius); padding:15px;
  margin-bottom:12px; }
h1 { font-weight:600; font-size:20px; color:var(--color-heading); margin:0 0 12px; letter-spacing:0; }
h2 { font-weight:700; color:var(--color-heading); margin:0 0 10px; font-size:15.5px; }
.lead { color:var(--color-muted); margin:-2px 0 14px; font-size:14px; }
.muted { color:var(--color-muted); font-size:14px; }
.err { color:var(--warn); }
.hidden { display:none !important; }
a { color:var(--color-link); }

/* forms */
label { display:block; font-weight:600; margin:12px 0 4px; font-size:14px; color:var(--color-heading); }
input, textarea, select { width:100%; padding:8px 10px; border:1px solid var(--color-border); border-radius:var(--radius-sm); font:inherit; background:var(--color-surface); color:var(--color-text); }
input:focus, textarea:focus, select:focus { outline:none; border-color:var(--color-accent); box-shadow:0 0 0 3px rgba(152,202,236,.45); }
textarea { min-height:120px; resize:vertical; }
.row { display:flex; gap:14px; flex-wrap:wrap; }
.row > div { flex:1; min-width:160px; }
.channels { display:flex; gap:18px; margin-top:6px; flex-wrap:wrap; }
.channels label { display:flex; align-items:center; gap:6px; font-weight:500; margin:0; color:var(--color-text); }
.channels input { width:auto; }
button { background:var(--btn-bg); color:var(--btn-fg); border:0; padding:8px 14px; border-radius:var(--radius-sm); font:600 14.5px var(--font); cursor:pointer; margin-top:12px; min-height:36px; }
button:hover { background:var(--btn-bg-hover); }
button.secondary { background:var(--color-surface); color:var(--color-heading); border:1px solid var(--color-border); }
button.secondary:hover { background:var(--color-wash); }
button:disabled { opacity:.55; cursor:default; }

/* article content (rendered markdown) */
.prose h2 { margin:18px 0 8px; font-size:18px; }
.prose h3 { margin:14px 0 6px; font-size:16px; color:var(--color-heading); }
.prose p { margin:0 0 10px; }
.prose ul { margin:0 0 10px; padding-left:22px; }
.prose code { background:var(--color-wash); padding:1px 6px; border-radius:4px; font-size:14px; }
.prose a { word-break:break-word; }
.prose img { display:block; max-width:100%; height:auto; margin:12px 0; border:1px solid var(--color-border); border-radius:10px; background:var(--color-surface); }

/* draft preview (content view) */
.tabs { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px; }
.tab { background:var(--color-surface); color:var(--color-heading); border:1px solid var(--color-border); padding:6px 14px; border-radius:20px; font-weight:600; cursor:pointer; }
.tab.active { background:var(--color-accent); color:var(--on-accent); border-color:var(--color-accent); }
.tab-x { margin-left:8px; padding:0 2px; font-weight:400; opacity:.65; }
.tab-x:hover { opacity:1; }
.pv-body p { margin:0 0 10px; }
/* news preview: fixed site colours/fonts (fletiomare.nl is always light) */
.ns { font-family:"Profile", "Source Sans Pro", sans-serif; container-type:inline-size; }
.ns-label { margin:4px 0 8px; font-weight:700; color:var(--color-heading); }
.ns-caption { margin:10px 0 8px; font-size:13px; color:var(--color-muted); }
.ns-list { display:grid; grid-template-columns:1fr 1fr; gap:14px; background:#eee; padding:14px; border-radius:8px; margin-bottom:6px; }
.ns-list.ns-cols3 { grid-template-columns:repeat(3, 1fr); }
.ns-card { color:#333; min-width:0; }
.ns-img { aspect-ratio:16/9; background:#d9d9d9; overflow:hidden; display:flex; align-items:center; justify-content:center; }
.ns-img img, .ns-photo img, .ns-bg img { width:100%; height:100%; object-fit:cover; display:block; }
.ns-nophoto { color:#777; font-size:12px; padding:8px; text-align:center; }
.ns-title { font-weight:400; font-size:16px; line-height:1.2; margin:10px 0 8px; color:#333; }
.ns-date { display:block; font-size:14px; line-height:2; }
.ns-desc { font-size:16px; line-height:1.5; margin:4px 0 0; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
/* featured tile: photo fills the tile, which grows with its text if needed */
.ns-featured { position:relative; display:flex; align-items:flex-end; min-width:0; overflow:hidden;
  min-height:max(200px, 28cqw); }  /* ~16:9 of a half-width tile, never too short for its text */
.ns-featured .ns-img { position:absolute; inset:0; aspect-ratio:auto; align-items:flex-start; padding-top:10px; }
.ns-overlay { position:relative; width:100%; padding:14px 18px; color:#fff;
  background:linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.35) 70%, transparent); }
.ns-overlay .ns-title { color:#fff; margin-top:0; }
.ns-overlay > * { opacity:.75; }  /* the site shows featured-tile text at 75% */
.ns-other { opacity:.35; }
.ns-page { position:relative; overflow:hidden; background:#1b1b1b; padding:36px 28px; border-radius:8px; }
.ns-bg { position:absolute; inset:-20px; filter:blur(14px) brightness(.45); }
.ns-sheet { position:relative; background:#fff; display:grid; grid-template-columns:1fr 1fr; gap:28px; padding:22px 22px 26px; }
.ns-text h2 { text-transform:uppercase; text-align:center; color:#653818; font-weight:400; font-size:26px; line-height:1.2; margin:6px 0 0; }
.ns-text hr { width:33%; border:0; border-top:3px solid #653818; margin:18px auto 22px; }
.ns-body { color:#333; font-size:16px; line-height:2; }
.ns-body p { margin:0 0 18px; }
.ns-photo { aspect-ratio:1; background:#d9d9d9; overflow:hidden; display:flex; align-items:center; justify-content:center; }
.ns-aside u { display:block; margin-top:8px; color:#333; font-size:15px; }
/* follow the preview's own width (it can sit beside the editor) */
@container (max-width:560px) {
  .ns-list, .ns-list.ns-cols3 { grid-template-columns:1fr; }
  .ns-other { display:none; }
}
@container (max-width:440px) {
  .ns-sheet { grid-template-columns:1fr; }
  .ns-aside { order:-1; }
}
.pv-li { max-width:555px; border:1px solid var(--color-border); border-radius:10px; background:var(--color-surface); padding:12px 16px; }
.pv-li-top { display:flex; flex-direction:column; margin-bottom:10px; color:var(--color-heading); }
.pv-li-top .muted { font-size:12px; }
.pv-li-text { white-space:pre-wrap; }
.pv-li-tags { margin-top:10px; color:var(--color-link); font-weight:600; }
/* Instagram post mock-up (follows the app's own light/dark look via the theme colours) */
.pv-ig { max-width:400px; border:1px solid var(--color-border); border-radius:14px; overflow:hidden; background:var(--color-surface); color:var(--color-heading); font-size:14px; }
.pv-ig-head { display:flex; align-items:center; gap:10px; padding:10px 12px; }
.pv-ig-avatar { width:36px; height:36px; border-radius:50%; object-fit:cover; border:1px solid var(--color-border); }
.pv-ig-who { display:flex; flex-direction:column; line-height:1.25; min-width:0; }
.pv-ig-who span { font-size:12px; color:var(--color-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pv-ig-menu { margin-left:auto; font-size:20px; color:var(--color-muted); }
.pv-ig-media { aspect-ratio:4/5; background:var(--color-wash); display:flex; align-items:center; justify-content:center; color:var(--color-muted); }
.pv-ig-media img { width:100%; height:100%; object-fit:cover; display:block; }
.pv-ig-actions { display:flex; gap:14px; padding:10px 12px 4px; }
.pv-ig-save { margin-left:auto; display:flex; }
.pv-ig-cap { white-space:pre-wrap; margin:0; padding:6px 12px 0; }
.pv-ig-cap.folded { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.pv-ig-tags { color:var(--color-link); }
.pv-ig-more { background:none; border:0; padding:2px 12px 0; margin:0; min-height:0; color:var(--color-muted); font-weight:400; font-size:14px; cursor:pointer; }
.pv-ig-when { padding:4px 12px 12px; font-size:12px; color:var(--color-muted); }
/* newsletter: a Fifomail news block; fixed e-mail colours (the mail is always light) */
.pv-fifo-mail { max-width:655px; background:#f0f0f0; padding:10px; border-radius:8px; }
.pv-fifo-row { display:grid; grid-template-columns:1fr 1fr; background:#fff; }
.pv-fifo-block { padding:10px 20px 20px; font-family:Arial,"Helvetica Neue",Helvetica,sans-serif; }
.pv-fifo-thumb { width:108px; height:72px; margin:0 auto 10px; display:flex; align-items:center; justify-content:center; background:#e6e6e6; overflow:hidden; }
.pv-fifo-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.pv-fifo-noimg { color:#999; font-size:12px; }
.pv-fifo-title { color:#60aeff; font-size:18px; font-weight:700; line-height:1.2; padding-top:5px; margin-bottom:5px; word-break:break-word; }
.pv-fifo-text { color:#555; font-size:12px; line-height:1.5; word-break:break-word; }
.pv-fifo-more { color:#60aeff; font-size:12px; line-height:1.5; text-decoration:underline; }
.pv-fifo-other { opacity:.55; }
.pv-fifo-ghost { height:10px; background:#e6e6e6; border-radius:3px; margin:8px 0; }
.pv-fifo-ghost.short { width:55%; }
.pv-fifo-note { font-size:13px; margin:8px 0 0; }
@media (max-width:675px) { .pv-fifo-row { grid-template-columns:1fr; } .pv-fifo-other { display:none; } }
.copybar { display:flex; gap:8px; flex-wrap:wrap; margin-top:14px; }
.copy { background:var(--color-surface); color:var(--color-heading); border:1px solid var(--color-border); padding:6px 12px; border-radius:6px; font-weight:600; font-size:14px; cursor:pointer; margin-top:0; min-height:0; }
.copy:hover { background:var(--color-wash); }
.media-list { margin-top:12px; font-size:14px; word-break:break-all; }
.photo-list { display:flex; flex-wrap:wrap; gap:8px; margin:6px 0; }
.photo-thumb { position:relative; width:84px; height:84px; border-radius:8px; overflow:hidden; border:1px solid var(--color-border); background:var(--color-wash); }
.photo-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.photo-thumb.busy img { opacity:.45; }
.video-tile { display:flex; width:100%; height:100%; align-items:center; justify-content:center; background:#1d2733; color:#fff; font-size:14px; font-weight:600; }
.photo-thumb button { position:absolute; top:3px; right:3px; margin:0; min-height:0; width:22px; height:22px; padding:0; border-radius:50%; border:0; background:rgba(0,0,0,.6); color:#fff; font-size:15px; line-height:22px; cursor:pointer; }
.pv-news-img { margin:0 0 14px; aspect-ratio:16/9; border-radius:10px; overflow:hidden; background:var(--color-wash); display:flex; align-items:center; justify-content:center; color:var(--color-muted); font-size:14px; text-align:center; padding:0; }
.pv-news-img img { width:100%; height:100%; object-fit:cover; display:block; }
.pager { display:flex; justify-content:space-between; align-items:center; margin-top:12px; }
.pager button { margin-top:0; padding:6px 14px; }

/* lists, items, badges */
.item { border-top:1px solid var(--color-border); padding:12px 0; }
.item:first-child { border-top:0; }
.item.clickable { cursor:pointer; }
.item.clickable:hover { background:var(--color-wash); }
.badge { font-size:12px; padding:2px 9px; border-radius:11px; background:var(--color-wash); color:var(--color-heading); white-space:nowrap; font-weight:600; }
.badge.drafted, .badge.resolved, .badge.closed, .badge.granted { background:#d6f0dd; color:#1d6b34; }
.badge.draft_failed, .badge.denied { background:#f7d7d3; color:#a3342a; }
.badge.pending, .badge.open { background:#ffe7c4; color:#9a5b12; }
.badge.in_progress, .badge.requested { background:#cfeafb; color:#0a5871; }
.right { float:right; }
.search { margin-bottom:12px; }

/* ticket thread */
.thread { display:flex; flex-direction:column; gap:10px; margin:12px 0; }
.msg { padding:10px 13px; border-radius:12px; background:var(--color-wash); max-width:85%; }
.msg.me { align-self:flex-end; background:var(--color-accent); color:var(--on-accent); }
.msg.admin { align-self:flex-start; background:var(--color-wash); border-left:3px solid var(--color-accent); }
.msg .meta { font-size:12px; color:var(--color-muted); margin-bottom:3px; }
.statusbar { display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-top:6px; }

/* beeldbank */
.bb-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:14px; }
.bb-card { position:relative; margin:0; cursor:pointer; border:1px solid var(--color-border); border-radius:10px; overflow:hidden; background:var(--color-surface); }
.bb-card:hover { border-color:var(--color-accent); }
.bb-img { position:relative; aspect-ratio:4/3; background:var(--color-wash); display:flex; align-items:center; justify-content:center; }
.bb-card img { width:100%; height:100%; object-fit:cover; display:block; opacity:0; transition:opacity .25s; }
.bb-card.bb-ready img { opacity:1; }
@keyframes bbspin { to { transform:rotate(360deg); } }
.bb-img::after { content:""; position:absolute; width:22px; height:22px; border:3px solid var(--color-border); border-top-color:var(--color-accent); border-radius:50%; animation:bbspin .8s linear infinite; }
.bb-card.bb-ready .bb-img::after { content:none; }
.bb-card.bb-failed .bb-img::after { content:"⟲ opnieuw"; border:0; width:auto; height:auto; animation:none; color:var(--color-muted); font-size:13px; }
.bb-card figcaption { padding:8px 10px; font-size:13px; color:var(--color-muted); line-height:1.35;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.bb-modal { position:fixed; inset:0; background:rgba(13,16,22,.85); display:flex; align-items:center; justify-content:center; padding:20px; z-index:300; cursor:zoom-out; }
.bb-modal-inner { max-width:min(1100px,95vw); max-height:92vh; text-align:center; }
.bb-modal-inner img { max-width:100%; max-height:84vh; border-radius:10px; }
.bb-modal-inner p { color:#dfe7ea; font-size:14px; margin:10px 0 0; }
.bb-add { position:absolute; top:6px; right:6px; margin:0; padding:4px 9px; font-size:12px; min-height:0;
  border-radius:14px; background:rgba(35,39,47,.88); color:#fff; border:0; cursor:pointer; }
.bb-add:hover { background:var(--flet-navy); }

/* wishlist chooser popover */
.chooser { background:var(--color-surface); color:var(--color-text); border-radius:12px; padding:20px; width:min(440px,92vw); cursor:auto; text-align:left; }
.chpick { display:flex; flex-direction:column; gap:6px; margin-bottom:6px; }
.chpick .chPick { margin-top:0; text-align:left; }

/* toast */
.toast { position:fixed; left:50%; bottom:24px; transform:translateX(-50%); z-index:320;
  background:var(--flet-navy-deep); color:#fff; padding:10px 16px; border-radius:8px; font-size:14px;
  box-shadow:0 4px 14px rgba(0,0,0,.35); }

/* velddienst */
.vd-main { max-width:780px; margin:0 auto; padding:22px 16px; }
.vd-main h1 { font-size:24px; }
.vd-rules { background:var(--warn-bg); border-color:var(--warn-line); font-size:14.5px; }
.vd-spray { display:flex; gap:10px; flex-wrap:wrap; }
.vd-spray-btn { margin-top:0; }
.vd-photos { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px; }
.vd-photos figure { margin:0; }
.vd-photos img { width:100%; border-radius:10px; border:1px solid var(--color-border); display:block; }
.vd-photos figcaption { font-size:13px; color:var(--color-muted); margin-top:6px; }
.vd-check { display:flex; align-items:center; gap:9px; font-weight:500; margin:0; padding:8px 0; border-top:1px solid var(--color-border); color:var(--color-text); }
.vd-check:first-of-type { border-top:0; }
.vd-check input { width:auto; }
.vd-check .vd-by { margin-left:auto; }
.item.vd-mine { background:var(--color-wash); border-radius:8px; }
.vd-rrow { align-items:flex-start; margin-bottom:6px; }
.vd-rrow .vd-rrm { margin-top:0; align-self:center; }

/* velddienst volunteer app: hamburger + drawer */
.vd-topbar { gap:12px; }
.hamburger { background:none; border:0; color:#fff; font-size:24px; line-height:1; cursor:pointer; padding:4px 8px; margin:0; min-height:0; }
.hamburger:hover { background:rgba(255,255,255,.12); border-radius:8px; }
.drawer { position:fixed; top:0; left:0; bottom:0; width:250px; background:var(--flet-navy-deep); color:#fff; z-index:200;
  transform:translateX(-100%); transition:transform .22s ease; padding:54px 14px 14px; display:flex; flex-direction:column; gap:4px; }
.drawer.open { transform:translateX(0); }
.drawer a { color:#fff; text-decoration:none; padding:12px 14px; border-radius:9px; font-weight:600; }
.drawer a:hover { background:rgba(255,255,255,.1); }
.drawer a.active { background:var(--color-accent); color:var(--on-accent); }
.drawer-close { position:absolute; top:10px; right:10px; background:none; border:0; color:#fff; font-size:26px; cursor:pointer; margin:0; min-height:0; }
.scrim { position:fixed; inset:0; background:rgba(13,16,22,.5); z-index:190; }

/* velddienst timeline */
.timeline { position:relative; padding:6px 0 10px; }
.timeline::before { content:""; position:absolute; left:50%; top:0; bottom:0; width:3px; background:var(--color-accent); transform:translateX(-50%); border-radius:2px; }
.tl-node { position:relative; max-width:580px; margin:0 auto 20px; padding-top:26px; }
.tl-dot { position:absolute; left:50%; top:6px; width:16px; height:16px; border-radius:50%; background:var(--color-surface); border:3px solid var(--color-accent); transform:translateX(-50%); z-index:1; }
.tl-time { position:absolute; top:4px; left:50%; transform:translateX(22px); font-size:12px; font-weight:700; color:var(--color-heading); background:var(--color-canvas); padding:0 4px; }
.tl-card b { color:var(--color-heading); }
.tl-card .muted { margin:4px 0 0; }
.tl-task.done .tl-dot { background:var(--ok); border-color:var(--ok); }
.tl-task.done .tl-card { border-left:4px solid var(--ok); }
.tl-task.denied .tl-dot { background:var(--warn); border-color:var(--warn); }
.tl-task.denied .tl-card { border-left:4px solid var(--warn); opacity:.75; }
.tl-actions { display:flex; gap:8px; margin-top:12px; }
.tl-actions button { margin-top:0; padding:7px 12px; font-size:14px; background:var(--color-surface); border:1px solid var(--color-border); color:var(--color-text); }
.tl-done.on { background:var(--ok); border-color:var(--ok); color:#fff; }
.tl-deny.on { background:var(--warn); border-color:var(--warn); color:#fff; }
.tl-by { font-size:13px; margin-top:8px; }
.tl-photos { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.tl-photo { margin:0; padding:6px 11px; font-size:13px; background:var(--color-wash); color:var(--color-heading); border:1px solid var(--color-border); border-radius:16px; cursor:pointer; min-height:0; }
.tl-photo:hover { background:var(--color-accent); color:var(--on-accent); }
.tl-now .tl-dot { width:20px; height:20px; border-color:var(--color-heading); background:var(--color-accent); box-shadow:0 0 0 5px rgba(152,202,236,.28); }
.tl-now .tl-time { color:var(--on-accent); background:var(--color-accent); border-radius:10px; padding:1px 8px; }
.tl-sproei { border:2px solid var(--color-accent); }
.tl-sproei .vd-rules { display:block; padding:9px 11px; border-radius:8px; margin:6px 0 10px; }
.roster-row.other { opacity:.4; }
.roster-row.mine { background:var(--color-wash); border-radius:8px; margin:2px 0; padding:10px 8px; font-weight:600; }

/* sproeischema reference grid */
.schema-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; }
.schema { border-collapse:collapse; font-size:12px; width:100%; }
.schema th, .schema td { border:1px solid var(--color-border); padding:5px 7px; white-space:nowrap; text-align:left; vertical-align:top; }
.schema th { background:var(--color-wash); position:sticky; top:0; font-weight:700; color:var(--color-heading); }
.schema tr:nth-child(even) td { background:var(--color-canvas); }
.schema td.sp { background:var(--color-accent); color:var(--on-accent); font-weight:600; }

/* footer */
.sitefoot { background:var(--flet-navy-deep); color:#fff; }
.sitefoot-in { margin:0; padding:var(--space-5) 28px;
  display:flex; flex-wrap:wrap; gap:var(--space-5) var(--space-7); align-items:flex-start; }
.sitefoot b { display:block; font-size:15px; }
.sitefoot small, .sitefoot a { color:rgba(255,255,255,.78); font-size:13px; }
.sitefoot a { text-decoration:underline; }
.sitefoot .foot-copy { width:100%; border-top:1px solid rgba(255,255,255,.16); padding-top:14px;
  color:rgba(255,255,255,.6); font-size:12px; }

/* login */
.login-wrap { max-width:460px; margin:6vh auto; }

/* small screens: nav becomes a top strip */
@media (max-width:720px) {
  .layout { flex-direction:column; }
  .nav { position:static; width:100%; height:auto; border-right:0; border-bottom:1px solid var(--color-border); }
  main { padding:16px var(--gutter); }
  .sitefoot-in { gap:var(--space-4) var(--space-6); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition:none !important; animation-duration:.001ms !important; }
}

/* content card: header with "Nieuw", manual editor per channel */
.card-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.card-head h2 { margin:0; display:flex; align-items:center; gap:10px; }
.head-actions { display:flex; gap:8px; }
.state-text { margin:4px 0 6px; }
.small-btn { margin-top:0; padding:5px 12px; min-height:0; font-size:14px; }
#modeTabs { margin:6px 0 12px; }
.ed-ch { border:1px solid var(--color-border); border-radius:10px; padding:4px 14px 12px; margin:0 0 12px; }
.ed-ch legend { font-weight:700; color:var(--color-heading); padding:0 6px; }
.ed-ch textarea { min-height:0; }

/* wide screens: editor and live preview side by side, preview stays in view */
@media (min-width:1240px) {
  .content-grid { display:grid; grid-template-columns:minmax(510px,2fr) minmax(0,3fr); gap:20px; align-items:start; }
  .content-grid > .card { margin-bottom:0; }
  .content-grid #resultCard { position:sticky; top:calc(var(--header-h) + 12px);
    max-height:calc(100vh - var(--header-h) - 24px); overflow:auto; }
}

/* submit flow */
.submit-bar { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:16px; padding-top:14px; border-top:1px solid var(--color-border); }
.submit-bar #handInBtn { margin:0 0 0 auto; }
.badge.concept { background:#ffe7c4; color:#9a5b12; }
.badge.ingediend { background:#d6f0dd; color:#1d6b34; }

/* content tabs: main content first, then one tab per channel (checkbox = include) */
.ctabs { display:flex; flex-wrap:nowrap; gap:2px; overflow-x:auto; overflow-y:hidden; scrollbar-width:none;
  border-bottom:1px solid var(--color-border); margin:4px 0 16px; }
.ctabs::-webkit-scrollbar { display:none; }
.ctab { display:inline-flex; flex:0 0 auto; white-space:nowrap; align-items:center; gap:5px; margin:0 0 -1px; padding:9px 6px; min-height:0;
  background:none; border:1px solid transparent; border-bottom:0; border-radius:8px 8px 0 0;
  color:var(--color-text); font-weight:600; font-size:14px; cursor:pointer; }
.ctab:hover { background:var(--color-wash); }
.ctab.active { background:var(--color-surface); border-color:var(--color-border); color:var(--color-heading);
  box-shadow:inset 0 3px 0 var(--color-accent); }
.ctab.off span { opacity:.65; }
.ctab.locked { cursor:not-allowed; opacity:.45; }
.ctab input { margin:0; }
.spin { display:inline-block; width:12px; height:12px; border:2px solid var(--color-border); border-top-color:var(--color-accent);
  border-radius:50%; animation:bbspin .8s linear infinite; vertical-align:-1px; }
.vbar { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:10px; }
.vbar #regen { margin-left:auto; }
.hint { background:#fff4d6; color:#7a5300; border-radius:6px; padding:8px 10px; font-size:14px; }
.ed-ch.ed-ch { border:0; padding:0; margin:0 0 12px; }

/* modal dialog */
.modal-backdrop { position:fixed; inset:0; z-index:500; background:rgba(13,16,22,.55); display:flex; align-items:center; justify-content:center; padding:16px; animation:fadein .12s ease; }
.modal { background:var(--color-surface); color:var(--color-text); border-radius:12px; width:min(480px,100%); padding:20px 22px 18px; box-shadow:0 18px 50px rgba(0,0,0,.3); }
.modal h3 { margin:0 0 10px; font-size:19px; color:var(--color-heading); }
.modal-body p { margin:0 0 10px; line-height:1.5; }
.modal-warn { background:#fff4d6; color:#7a5300; border-radius:8px; padding:9px 11px; }
.modal-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:14px; }
.modal-actions button { margin:0; }
button.danger { background:#b3372b; border-color:#b3372b; color:#fff; }
@keyframes fadein { from { opacity:0; } to { opacity:1; } }

/* Beeldbank picker */
.modal.modal-wide { width:min(720px,100%); max-height:94vh; display:flex; flex-direction:column; overflow-y:auto; }
.bb-pick { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:10px; margin:8px 0 0; flex:0 0 auto; }
.bb-pick .bb-img { aspect-ratio:1; }  /* always square, never squeezed by the dialog height */
.bb-pager { display:flex; align-items:center; justify-content:space-between; margin-top:10px; }
.bb-pager button { margin:0; }
.bb-pick .bb-card { cursor:pointer; }
.bb-pick .bb-card.picked { outline:3px solid var(--color-accent); outline-offset:-3px; }
.bb-check { position:absolute; top:6px; left:6px; width:24px; height:24px; border-radius:50%; background:rgba(0,0,0,.45);
  color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:14px; }
.bb-card.picked .bb-check { background:var(--color-accent); color:var(--on-accent); }
.bb-zoom { position:absolute; top:6px; right:6px; margin:0; min-height:0; padding:3px 7px; font-size:13px;
  background:rgba(0,0,0,.5); border:0; color:#fff; border-radius:6px; cursor:zoom-in; }
.modal-actions .muted { margin-right:auto; align-self:center; }
.bb-pick-btn { margin:8px 0 2px; }
.bb-tag { position:absolute; left:3px; bottom:3px; font-size:10px; padding:1px 5px; border-radius:4px; background:rgba(0,0,0,.6); color:#fff; }
.bb-modal { z-index:600; }

/* menu accent on dark backgrounds: the club's light blue reads well there */
[data-theme="dark"] .nav { --nav-accent:#98CAEC; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav { --nav-accent:#98CAEC; } }

/* Beheer: aangeleverde content */
.adm-filters { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-bottom:10px; }
.adm-filters .tabs { margin:0; }
.adm-filters #admQ { flex:1 1 220px; max-width:320px; margin:0; }
.tab .count { margin-left:4px; font-weight:400; opacity:.7; }
.adm-row { display:flex; align-items:center; gap:12px; padding:11px 8px; border-top:1px solid var(--color-border);
  color:var(--color-text); text-decoration:none; border-radius:6px; }
.adm-row:first-child { border-top:0; }
.adm-row:hover { background:var(--color-wash); }
.adm-title { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:2px; }
.adm-title .muted { font-size:13px; }
.adm-when { font-size:13px; white-space:nowrap; }
.adm-meta { border-collapse:collapse; font-size:14px; margin:6px 0 12px; }
.adm-meta td { padding:3px 16px 3px 0; vertical-align:top; }
.adm-meta td:first-child { color:var(--color-muted); white-space:nowrap; }
.adm-photo img { cursor:zoom-in; }
.adm-orig { margin-top:10px; }
.adm-orig summary { cursor:pointer; color:var(--color-heading); font-weight:600; }
.crumbs { margin:0 0 10px; }
.crumbs a { color:var(--color-muted); text-decoration:none; }
.crumbs a:hover { color:var(--color-heading); }
a.btn { display:inline-flex; align-items:center; text-decoration:none; border-radius:var(--radius-sm); border:1px solid var(--color-border);
  padding:5px 12px; font-weight:600; color:var(--color-heading); background:var(--color-surface); }
.badge.gepubliceerd { background:#cfe9d6; color:#155c2a; }
.badge.afgewezen { background:#f7d7d3; color:#a3342a; }
.modal-input { width:100%; margin-top:6px; }
.modal-input.invalid { border-color:#b3372b; }

/* 'Pin bovenaan' for news */
.md-bar { display:flex; gap:4px; flex-wrap:wrap; margin:0 0 4px; }
.md-bar button { background:var(--color-surface); color:var(--color-text); border:1px solid var(--color-border);
  padding:3px 10px; font-size:13px; font-weight:500; border-radius:var(--radius-sm); min-width:32px; }
.md-bar button:hover { border-color:var(--color-accent); }
.md-sep { width:1px; background:var(--color-border); margin:3px 4px; }
.link-form > label { margin-top:12px; }
.seg { display:flex; border:1px solid var(--color-border); border-radius:var(--radius-sm); overflow:hidden; }
.seg label { flex:1; margin:0; font-weight:500; cursor:pointer; }
.seg input { position:absolute; opacity:0; pointer-events:none; }
.seg span { display:block; text-align:center; padding:7px 6px; font-size:14px; color:var(--color-text); }
.seg label + label span { border-left:1px solid var(--color-border); }
.seg input:checked + span { background:var(--color-accent); color:#1f2633; font-weight:600; }
.seg input:focus-visible + span { outline:2px solid var(--color-accent); outline-offset:-3px; }
.ns-body h2 { font-size:1.15em; margin:1.2em 0 .4em; text-transform:none; text-align:left; color:#333; font-weight:700; }
/* the site's blue button (e.g. 'Aanmelden' on /business-club) */
.ns-btn-row { text-align:center; }
.ns-btn { display:inline-block; width:min(280px,100%); box-sizing:border-box; background:#98CAEC; color:#fff !important; font-weight:700;
  font-size:16px; line-height:1.2; padding:10px 7px; text-align:center; text-decoration:none !important; font-family:Almarai, Arial, sans-serif; }
.ns-btn:hover { filter:brightness(.95); }
.lk-btn-check { margin-top:14px; }
.lk-sample { background:#fff; border:1px dashed var(--color-border); border-radius:var(--radius-sm); padding:14px; text-align:center; margin-top:8px; }
.ns-body ul { margin:0 0 1em; padding-left:1.4em; }
.ch-photos { margin-top:14px; }
.ch-photos .photo-list { margin-top:8px; }
.sched-row { display:flex; gap:12px; flex-wrap:wrap; }
.sched-row > div { flex:1 1 160px; }
.pin-check { display:flex; align-items:center; gap:8px; cursor:pointer; }
.pin-check input { width:auto; margin:0; }
.pin-box .req { color:#a3342a; font-weight:400; }
.ns-pin { position:absolute; top:10px; left:10px; z-index:1; background:rgba(0,0,0,.6); color:#fff; font-size:12px; padding:3px 8px; border-radius:4px; }
