:root {
  --accent: #2f7d5b;
  --accent-ink: #fff;
  --ink: #1f2420;
  --muted: #5f6862;
  --line: #e2e5e1;
  --card: #ffffff;
  --soft: #f4f6f3;
  --danger: #b3261e;
  --radius: 12px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.5;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: transparent; }
body { padding: 4px; }
main { max-width: 960px; margin: 0 auto; }
h1, h2, h3 { line-height: 1.25; margin: 0; }
a { color: var(--accent); }
.muted { color: var(--muted); }
button, .btn {
  font: inherit; cursor: pointer; border-radius: 8px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); padding: 9px 14px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px;
}
button:hover, .btn:hover { border-color: var(--accent); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn-primary:hover { filter: brightness(1.08); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }

/* Losse pagina (niet ingesloten) */
body.standalone { background: var(--soft); padding: 0 16px 48px; }
header.site { background: var(--card); border-bottom: 1px solid var(--line); margin: 0 -16px 24px; }
header.site .in { max-width: 960px; margin: 0 auto; padding: 0 16px; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
header.site .org { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
header.site a.muted { text-decoration: none; }

/* Kop en filters */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.toolbar h1 { font-size: 1.35rem; }
.intro { margin: 0 0 14px; color: var(--muted); }
.intro p { margin: 0 0 6px; }
.search { max-width: 260px; }
input[type=search] {
  font: inherit; width: 100%; padding: 9px 12px; border: 1px solid #c9cec8; border-radius: 8px; background: #fff; color: var(--ink); min-height: 42px;
}
input[type=search]:focus { border-color: var(--accent); outline: 3px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { border-radius: 999px; padding: 5px 12px; min-height: 34px; font-size: .9rem; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* Kaarten */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.card .thumb { aspect-ratio: 16 / 9; background: var(--soft); overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .thumb.empty { display: grid; place-items: center; font-size: 2rem; color: color-mix(in srgb, var(--accent) 55%, #fff);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, #fff), color-mix(in srgb, var(--accent) 22%, #fff)); }
.card .c-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h2 { font-size: 1.08rem; }
.card p { margin: 0; color: var(--muted); font-size: .94rem; }
.card .more { margin-top: auto; padding-top: 6px; color: var(--accent); font-weight: 600; font-size: .92rem; }
/* Eerste (vastgezette of nieuwste) bericht groot */
.grid .card.featured { grid-column: 1 / -1; flex-direction: row; }
.grid .card.featured .thumb { flex: 0 0 55%; aspect-ratio: auto; min-height: 260px; }
.grid .card.featured h2 { font-size: 1.4rem; }
.grid .card.featured .c-body { padding: 22px; justify-content: center; }

.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .82rem; color: var(--muted); }
.cat { background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--accent); border-radius: 999px; padding: 2px 9px; font-weight: 600; }
.pin { font-weight: 600; color: var(--ink); }
.empty { text-align: center; padding: 40px 10px; background: var(--soft); border-radius: var(--radius); }
.load-more { display: flex; justify-content: center; margin-top: 18px; }

/* Compacte widget ("laatste nieuws") */
.compact { display: grid; gap: 10px; }
.row {
  display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; text-decoration: none; color: inherit;
}
.row:hover { border-color: var(--accent); }
.row .thumb { width: 96px; height: 72px; border-radius: 8px; overflow: hidden; background: var(--soft); display: grid; place-items: center; font-size: 1.5rem; }
.row .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.row h3 { font-size: 1rem; }
.row p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.all-link { display: inline-block; margin-top: 10px; font-weight: 600; }

/* Artikel */
.back { margin-bottom: 14px; }
.detail { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.detail img.hero { width: 100%; max-height: 420px; object-fit: cover; display: block; }
.detail .body { padding: 24px 28px 28px; max-width: 760px; }
.detail h1 { font-size: 1.75rem; margin: 8px 0 10px; }
.lead { font-size: 1.12rem; color: var(--muted); margin: 0 0 18px; }
.prose { font-size: 1.03rem; }
.prose p { margin: 0 0 14px; }
.prose h3 { font-size: 1.2rem; margin: 22px 0 8px; }
.prose h4 { font-size: 1.05rem; margin: 18px 0 6px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 1.4em; }
.prose li { margin: 3px 0; }
.prose blockquote { margin: 0 0 14px; padding: 8px 16px; border-left: 4px solid var(--accent); background: var(--soft); border-radius: 0 8px 8px 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.files { margin: 22px 0 6px; }
.files h2 { font-size: 1rem; margin-bottom: 8px; }
.file { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; text-decoration: none; color: var(--ink); }
.file:hover { border-color: var(--accent); }
.file span:nth-child(2) { flex: 1; word-break: break-word; }
.file small { color: var(--muted); white-space: nowrap; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.share .btn { min-height: 38px; padding: 6px 12px; font-size: .92rem; }

@media (max-width: 640px) {
  .grid .card.featured { flex-direction: column; }
  .grid .card.featured .thumb { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .grid .card.featured .c-body { padding: 14px 16px 16px; }
  .grid .card.featured h2 { font-size: 1.15rem; }
  .search { max-width: none; flex: 1 1 100%; }
  .detail .body { padding: 18px 16px 20px; }
  .detail h1 { font-size: 1.4rem; }
  .row { grid-template-columns: 76px 1fr; }
  .row .thumb { width: 76px; height: 60px; }
}
