/* LongCovidNieuws — publieke site: rustige, redactionele opmaak */
:root {
    --bg: #f7f6f3;
    --panel: #ffffff;
    --ink: #23211e;
    --muted: #6c6862;
    --faint: #928d86;
    --line: #e7e4dd;
    --line-soft: #efece5;
    --link: #275077;
    --accent: #7a2e2e;
    --up: #4a7a2e;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(30,25,20,.04), 0 1px 10px rgba(30,25,20,.03);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    background: var(--bg);
    color: var(--ink);
    font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
          "Noto Sans", "Noto Sans CJK JP", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.muted { color: var(--muted); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px 56px; }

/* ---------- Kop ---------- */
.site-head {
    display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap;
    gap: 4px 20px; padding: 20px 2px 14px; margin-bottom: 22px; border-bottom: 1px solid var(--line);
}
.site-head .brand { font-weight: 700; font-size: 20px; letter-spacing: -.01em; color: var(--accent); }
.site-head .brand:hover { text-decoration: none; }
.site-head .tagline { color: var(--faint); font-size: 12.5px; order: 3; flex-basis: 100%; margin-top: 1px; }
.site-head nav { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.site-head nav a { color: var(--muted); font-size: 13px; }
.site-head nav a:hover { color: var(--ink); }
.site-head nav a.account {
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px;
    border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
}
.site-head nav a.account:hover { border-color: var(--muted); text-decoration: none; }
.site-head nav a.account .flag-img { box-shadow: 0 0 0 1px rgba(0,0,0,.12); }

/* ---------- 2-koloms layout ---------- */
.layout { display: grid; gap: 22px; }
.content { order: 2; min-width: 0; }
.sidebar { order: 1; display: flex; flex-direction: column; gap: 12px; }

@media (min-width: 901px) {
    .layout { grid-template-columns: minmax(0, 1fr) 296px; gap: 36px; align-items: start; }
    .content { order: 1; }
    .sidebar {
        order: 2; position: sticky; top: 16px; gap: 16px;
        max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain;
    }
}

/* ---------- Zijbalk ---------- */
.sb-block {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 14px 16px; box-shadow: var(--shadow);
}
.sb-block h2 {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    color: var(--faint); margin: 0 0 10px;
}
.sb-nav { display: flex; flex-direction: column; gap: 1px; }
.sb-nav a {
    display: block; padding: 5px 8px; border-radius: 6px; color: var(--muted); font-size: 13.5px;
}
.sb-nav a:hover { background: var(--line-soft); color: var(--ink); text-decoration: none; }
.sb-nav a.active { background: #f5ecec; color: var(--accent); font-weight: 600; }

.sb-langs { display: flex; flex-wrap: wrap; gap: 6px; }
.sb-langs a {
    display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 3px 9px;
    border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--panel);
}
.sb-langs a:hover { border-color: var(--muted); color: var(--ink); text-decoration: none; }
.sb-langs a.active { border-color: var(--accent); color: var(--accent); font-weight: 600; }

.sb-account .who { font-size: 14px; font-weight: 600; }
.sb-account .sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }

.sb-dossiers a {
    display: block; padding: 7px 0; font-size: 13px; line-height: 1.4;
    border-top: 1px solid var(--line-soft); color: var(--ink);
}
.sb-dossiers a:first-of-type { border-top: 0; padding-top: 0; }
.sb-dossiers a:hover { color: var(--accent); text-decoration: none; }
.sb-dossiers .d-meta { display: block; color: var(--faint); font-size: 11.5px; margin-top: 1px; }

.sb-cta { padding: 0; border: 0; box-shadow: none; background: transparent; }
.sb-cta .cta {
    display: block; text-align: center; padding: 10px; border: 1px solid var(--line);
    border-radius: var(--radius); color: var(--link); font-size: 13px; background: var(--panel);
}
.sb-cta .cta:hover { border-color: var(--link); text-decoration: none; }

/* ---------- Vlag ---------- */
.flag-img {
    width: 17px; height: 12px; flex: none; border-radius: 2px; object-fit: cover;
    vertical-align: middle; box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}

/* ---------- Lijstweergave ---------- */
.list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.list-head h1 { font-size: 17px; margin: 0; letter-spacing: -.01em; }
.list-head a { font-size: 12.5px; color: var(--muted); }
.section-label {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    color: var(--faint); margin: 22px 0 10px;
}
.section-label:first-child { margin-top: 4px; }
.crumb { margin: 0 0 12px; font-size: 13px; }
.crumb a { color: var(--muted); }

/* ---------- Dossierkaarten ---------- */
.dossier-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(256px, 1fr)); gap: 12px; margin-bottom: 8px; }
.dossier-card {
    display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line);
    border-left: 3px solid var(--link); border-radius: var(--radius); color: var(--ink);
    overflow: hidden; box-shadow: var(--shadow);
}
.dossier-card:hover { text-decoration: none; border-color: var(--link); }
.dossier-card.is-actueel { border-left-color: var(--accent); }
.dossier-card .dc-cover { display: block; width: 100%; height: 108px; object-fit: cover; }
.dossier-card .dc-body { display: block; padding: 12px 14px; }
.dossier-card .dc-title { display: block; font-weight: 650; font-size: 14.5px; line-height: 1.35; margin: 6px 0 4px; }
.dossier-card .dc-summary { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.5; }

.dossier-badge {
    display: inline-block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    color: var(--link); background: #eef1f5; border: 1px solid #dce3ec; border-radius: 999px; padding: 1px 8px;
}
.dossier-badge.is-actueel { color: var(--accent); background: #f5ecec; border-color: #e6d3d3; }
.dossier-badge.muted { color: var(--muted); background: transparent; border-color: var(--line); }

/* ---------- Dossierdetail ---------- */
.dossier-detail { padding: 2px 0 16px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.dossier-detail .dossier-cover { display: block; width: 100%; max-height: 280px; object-fit: cover; border-radius: var(--radius); margin-bottom: 12px; }
.dossier-detail .badges { display: flex; flex-wrap: wrap; gap: 6px; }
.dossier-detail h1 { font-size: 24px; line-height: 1.3; margin: 10px 0 8px; letter-spacing: -.01em; }
.dossier-detail .dossier-summary { color: var(--ink); font-size: 15px; }

/* ---------- Artikellijst ---------- */
.stories { list-style: none; margin: 0; padding: 0; }
.story { display: flex; gap: 14px; align-items: flex-start; padding: 15px 4px; border-bottom: 1px solid var(--line-soft); }
.story:first-child { padding-top: 4px; }
.story:last-child { border-bottom: 0; }
.story .s-body { flex: 1; min-width: 0; }
.story .headline { line-height: 1.42; }
.story .headline .flag-img { display: inline-block; vertical-align: -2px; margin-right: 4px; }
.story .favicon { width: 15px; height: 15px; border-radius: 3px; background: #fff; display: inline-block; vertical-align: -3px; margin-right: 5px; }
.story .title { font-size: 15.5px; font-weight: 600; }
.story .title a { color: var(--ink); }
.story .title a:hover { color: var(--accent); }
.story .title a:visited { color: #5b5850; }
.story .trans-title { color: var(--muted); font-size: 13.5px; margin: 4px 0 0; }
.story .meta { color: var(--faint); font-size: 12px; margin-top: 7px; display: flex; flex-wrap: wrap; gap: 3px 12px; align-items: center; }
.story .meta .dom { font-weight: 600; color: var(--muted); }
.story .meta a { color: var(--faint); }
.story .meta a:hover { color: var(--ink); }
.story .dupes { color: var(--faint); font-size: 12px; margin-top: 7px; }
.story .dupes a { color: var(--muted); white-space: nowrap; }
.story .dupes a:hover { color: var(--ink); }
.story .dupes .favicon { width: 12px; height: 12px; border-radius: 2px; margin: 0 3px -2px 0; display: inline-block; vertical-align: baseline; }
.story.muted { display: block; color: var(--muted); font-size: 14px; padding: 22px 4px; }

.likebtn {
    flex: none; border: 1px solid var(--line); background: var(--panel); color: var(--muted);
    border-radius: 8px; padding: 4px 9px; cursor: pointer; font: inherit; font-size: 12px;
    line-height: 1.2; text-align: center; min-width: 46px;
}
.likebtn:hover { border-color: var(--muted); }
.likebtn.on { border-color: var(--up); color: var(--up); background: #f0f6ea; }
.likebtn[disabled] { cursor: default; }

.story .ds-move { margin-top: 8px; font-size: 12px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.story .ds-move input[type=number] { padding: 2px 6px; font: inherit; font-size: 12px; border: 1px solid var(--line); border-radius: 5px; }
.story .ds-move button { padding: 2px 8px; font: inherit; font-size: 12px; border: 1px solid var(--line); background: var(--panel); border-radius: 5px; cursor: pointer; }

/* ---------- Artikeldetail ---------- */
.article { max-width: 680px; }
.article h1 { font-size: 25px; line-height: 1.28; margin: 4px 0 8px; letter-spacing: -.01em; }
.article h1 a { color: var(--ink); }
.article h1 a:hover { color: var(--accent); }
.article .trans-title { color: var(--muted); font-size: 16px; font-style: italic; margin: 2px 0 14px; }
.article .lead-meta {
    color: var(--faint); font-size: 13px; margin-bottom: 20px; padding-bottom: 14px;
    border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center;
}
.article .lead-meta .favicon { width: 16px; height: 16px; border-radius: 3px; }
.article .lead-meta .dom { font-weight: 600; color: var(--muted); }
.article .lead-meta a { color: var(--faint); }
.article .lead-meta a:hover { color: var(--ink); }
.article .body { white-space: pre-wrap; font-size: 15.5px; line-height: 1.72; }
.article .orig { margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; word-break: break-word; }
.article .orig .lbl { color: var(--muted); }

/* ---------- Panels / formulieren (reader.php, submit.php) ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); max-width: 560px; }
.panel h1 { font-size: 19px; margin: 0 0 12px; }
.stack { display: flex; flex-direction: column; gap: 11px; max-width: 420px; }
.stack label { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--muted); }
.stack input, .stack select { padding: 8px 10px; border: 1px solid #cfccc4; border-radius: 6px; font: inherit; }
.stack button, button.primary {
    padding: 9px 16px; border: 0; border-radius: 6px; background: var(--accent); color: #fff;
    font: inherit; font-weight: 600; cursor: pointer; align-self: flex-start;
}
.stack button:hover, button.primary:hover { background: #6a2727; }

.flash { padding: 9px 13px; border-radius: 6px; font-size: 13px; margin-bottom: 12px; }
.flash.ok { background: #eaf6e6; color: #2f5d1f; }
.flash.error { background: #fbe9e7; color: #8a2a20; }

.pager { margin-top: 22px; display: flex; gap: 14px; justify-content: space-between; align-items: center; }
.pager a { font-size: 13px; color: var(--muted); }
.pager a:hover { color: var(--ink); }

/* ---------- Responsief ---------- */
@media (max-width: 900px) {
    .sidebar .sb-account, .sidebar .sb-cta { display: none; }
    .sb-block { padding: 11px 13px; }
    .sb-nav { flex-flow: row wrap; gap: 6px; }
    .sb-nav a { border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 12px; }
    .sb-nav a:hover { background: var(--panel); }
}
@media (max-width: 620px) {
    .site-head { gap: 6px 14px; padding-top: 16px; }
    .site-head nav { order: 4; flex-basis: 100%; justify-content: flex-start; margin-top: 2px; }
}
@media (max-width: 560px) {
    .wrap { padding: 0 14px 40px; }
    .article h1, .dossier-detail h1 { font-size: 21px; }
    .story { gap: 10px; padding: 14px 2px; }
    .dossier-cards { grid-template-columns: 1fr; }
}
