/* Rouw.com Core – stijl. Alles is gescoped onder .rouw zodat het thema ongemoeid blijft. */
.rouw {
	--rouw-bg: #f3f3ef;
	--rouw-surface: #ffffff;
	--rouw-ink: #1f2328;
	--rouw-ink-2: #33383e;
	--rouw-muted: #5b6168;
	--rouw-line: #e3e2dc;
	--rouw-line-2: #ecebe6;
	--rouw-field: #cfcdc5;
	--rouw-accent: #2f4a5c;
	--rouw-accent-dark: #1e3240;
	--rouw-soft: #e8ecee;
	--rouw-candle: #f2c77b;
	--rouw-danger: #a3262a;
	--rouw-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
	--rouw-sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-family: var(--rouw-sans);
	color: var(--rouw-ink);
	font-size: 16px;
	line-height: 1.55;
	box-sizing: border-box;
}
.rouw *, .rouw *::before, .rouw *::after { box-sizing: inherit; }
.rouw a { color: var(--rouw-accent); }
.rouw a:hover { color: var(--rouw-accent-dark); }
.rouw p { margin: 0; }
.rouw [hidden] { display: none !important; }

main.rouw { background: var(--rouw-bg); padding: 0 0 48px; }
.rouw-register, .rouw-narrow { max-width: 720px; margin: 0 auto; }
.rouw-wide { max-width: 1120px; margin: 0 auto; padding: 40px 20px 64px !important; }
.rouw-narrow { padding: 32px 16px 64px !important; }

/* Typografie */
.rouw-h1, .rouw-name { font-family: var(--rouw-serif); font-weight: 500; line-height: 1.15; margin: 0; }
.rouw-h1 { font-size: clamp(30px, 5vw, 44px); }
.rouw-name { font-size: clamp(32px, 6vw, 44px); }
.rouw-h2 { font-family: var(--rouw-serif); font-size: 24px; font-weight: 500; margin: 0 0 12px; line-height: 1.25; }
.rouw-h3 { font-size: 17px; font-weight: 600; margin: 20px 0 8px; }
.rouw-eyebrow { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--rouw-muted); }
.rouw-muted { color: var(--rouw-muted); }
.rouw-small { font-size: 13px; }
.rouw-strong { font-weight: 600; }
.rouw-label { font-size: 13px; color: var(--rouw-muted); }
.rouw-pad { padding: 20px; }
.rouw-page-head { margin-bottom: 28px; display: grid; gap: 10px; max-width: 720px; }

/* Hero */
.rouw-hero { background: var(--rouw-surface); text-align: center; padding: 40px 24px 28px; display: grid; gap: 10px; justify-items: center; }
.rouw-portrait { width: 144px; height: 144px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; }
.rouw-dates { display: grid; gap: 2px; margin-top: 4px; }
.rouw-text { font-family: var(--rouw-serif); font-size: 19px; line-height: 1.6; color: var(--rouw-ink-2); max-width: 560px; margin-top: 10px; }
.rouw-text p + p { margin-top: 10px; }
.rouw-counts { display: flex; gap: 20px; color: var(--rouw-muted); font-size: 14px; margin-top: 10px; }
.rouw-hero--bn { padding-top: 0; }
.rouw-bn-photo { margin: 0 -24px 12px; width: calc(100% + 48px); }
.rouw-bn-photo img { width: 100%; max-height: 460px; object-fit: cover; display: block; }
.rouw-bn-photo figcaption { text-align: left; padding: 6px 16px 0; }

/* Acties */
.rouw-actions { background: var(--rouw-surface); padding: 0 20px 24px; display: grid; gap: 10px; }
.rouw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 26px; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; text-decoration: none; border: 1.5px solid transparent; transition: background .15s, color .15s; }
.rouw-btn--primary { background: var(--rouw-accent); color: #fff !important; }
.rouw-btn--primary:hover { background: var(--rouw-accent-dark); }
.rouw-btn--secondary { background: var(--rouw-surface); color: var(--rouw-accent) !important; border-color: var(--rouw-accent); }
.rouw-btn--ghost { background: transparent; color: var(--rouw-ink) !important; border-color: #d6d4cc; border-radius: 12px; margin: 4px 20px 20px; width: calc(100% - 40px); }
.rouw-btn--small { min-height: 40px; font-size: 14px; padding: 0 14px; border-radius: 10px; }
.rouw-btn--danger { background: var(--rouw-danger); color: #fff !important; }
.rouw-btn--tile { flex: 1; border-radius: 12px; border-color: #d6d4cc; background: #f7f7f4; color: var(--rouw-ink) !important; font-size: 14px; font-weight: 500; min-height: 48px; padding: 0 10px; }
.rouw-actions .rouw-btn--primary .rouw-icon { color: var(--rouw-candle); }
.rouw-btn.is-lit { background: #3d3524; }
.rouw-btn:disabled { opacity: .6; cursor: wait; }
.rouw-share { display: flex; gap: 8px; margin-top: 6px; }
.rouw-share-more { font-size: 14px; text-align: center; color: var(--rouw-muted); }
.rouw-linkbtn { background: none; border: 0; padding: 6px 0; font: inherit; color: var(--rouw-muted); text-decoration: underline; cursor: pointer; }
.rouw-icon { flex: none; }

/* Kaarten */
.rouw-card { background: var(--rouw-surface); border: 1px solid var(--rouw-line); border-radius: 16px; padding: 22px 20px; margin: 16px 16px 0; }
.rouw-wide .rouw-card, .rouw-narrow .rouw-card, .rouw-manage .rouw-card, .rouw-create .rouw-card { margin: 16px 0 0; }
.rouw-card--flush { padding: 0; }
.rouw-card--plain { display: grid; gap: 6px; }
.rouw-detail { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--rouw-line-2); }
.rouw-card .rouw-h2 + .rouw-detail { border-top: 0; padding-top: 0; }
.rouw-partner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 16px; margin-top: 6px; border-radius: 12px; background: var(--rouw-bg); color: var(--rouw-ink) !important; text-decoration: none; font-weight: 500; }
.rouw-soft { background: var(--rouw-soft); border-radius: 16px; padding: 18px 20px; margin: 16px 16px 0; display: grid; gap: 6px; }
.rouw-manage .rouw-soft { margin: 16px 0 0; }
.rouw-register-footer { display: flex; gap: 20px; justify-content: center; padding: 28px 20px 0; font-size: 14px; }
.rouw-register-footer a { color: var(--rouw-muted); }

/* Tabs en berichten */
.rouw-tabs { display: flex; border-bottom: 1px solid var(--rouw-line-2); }
.rouw-tabs a { flex: 1; text-align: center; padding: 16px 8px 14px; font-weight: 500; color: var(--rouw-muted); text-decoration: none; border-bottom: 2px solid transparent; }
.rouw-tabs a.is-active { color: var(--rouw-ink); font-weight: 600; border-bottom-color: var(--rouw-accent); }
.rouw-message { padding: 18px 20px; border-top: 1px solid var(--rouw-line-2); display: grid; gap: 6px; }
.rouw-message header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rouw-message > p { color: var(--rouw-ink-2); }
.rouw-message .rouw-linkbtn { justify-self: start; padding: 0; }
.rouw-message-photo { width: 100%; height: auto; border-radius: 10px; margin-top: 6px; }
.rouw-card .rouw-message:first-child { border-top: 0; }

/* Formulieren */
.rouw-form { display: grid; gap: 10px; }
.rouw-form label, .rouw-form legend { font-size: 14px; font-weight: 600; }
.rouw-form input[type="text"], .rouw-form input[type="email"], .rouw-form input[type="url"], .rouw-form input[type="date"], .rouw-form input[type="time"], .rouw-form input[type="search"], .rouw-form select, .rouw-form textarea, .rouw-search input {
	width: 100%; min-height: 48px; font: inherit; font-size: 16px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--rouw-field); background: #fbfbf9; color: var(--rouw-ink);
}
.rouw-form textarea { resize: vertical; }
.rouw-form input:focus, .rouw-form select:focus, .rouw-form textarea:focus, .rouw-search input:focus { outline: 2px solid var(--rouw-accent); outline-offset: 1px; }
.rouw-form input[type="file"] { font-size: 14px; }
.rouw-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; min-width: 0; }
.rouw-form fieldset[data-rouw-step] { background: var(--rouw-surface); border: 1px solid var(--rouw-line); border-radius: 16px; padding: 22px 20px; }
.rouw-form fieldset[data-rouw-step] > legend { float: left; width: 100%; padding: 0; }
.rouw-choice { background: var(--rouw-bg) !important; border-radius: 12px !important; padding: 14px 16px !important; }
.rouw-choice label, .rouw-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 15px !important; line-height: 1.4; }
.rouw-choice input, .rouw-check input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.rouw-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.rouw-field { flex: 1 1 200px; display: grid; gap: 6px; }
.rouw-nav { justify-content: flex-end; margin-top: 8px; }
.rouw-space { margin: 16px 0 0; }
.rouw-inline { display: inline; }
.rouw-danger { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--rouw-line-2); }
.rouw-form legend.rouw-h2 { font-size: 24px; font-weight: 500; margin-bottom: 4px; }
.rouw-card > .rouw-h3:first-child { margin-top: 0; }
.rouw-register-footer { align-items: center; }
.rouw-register-footer .rouw-linkbtn { font-size: 14px; }
.rouw-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.rouw-progress { height: 4px; background: var(--rouw-line); border-radius: 2px; overflow: hidden; margin-bottom: 8px; }
.rouw-progress span { display: block; height: 100%; width: 33%; background: var(--rouw-accent); transition: width .3s; }
.rouw-create, .rouw-manage { max-width: 720px; }
.rouw-create .rouw-form { margin-top: 12px; }

/* Zoeken */
.rouw-search { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.rouw-search input { flex: 1 1 260px; border-radius: 28px; padding: 0 20px; min-height: 52px; }
.rouw-search .rouw-btn { min-height: 52px; }

/* Lijsten */
.rouw-grid { display: grid; gap: 12px; }
.rouw-grid--list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.rouw-grid--cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 20px; }
.rouw-item { display: flex; gap: 14px; align-items: center; padding: 14px; background: var(--rouw-surface); border: 1px solid var(--rouw-line); border-radius: 14px; color: var(--rouw-ink) !important; text-decoration: none; }
.rouw-item-text { display: grid; gap: 2px; }
.rouw-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.rouw-avatar--empty { display: inline-flex; align-items: center; justify-content: center; background: #dcdad2; color: var(--rouw-muted); }
.rouw-bn-card { display: flex; flex-direction: column; background: var(--rouw-surface); border: 1px solid var(--rouw-line); border-radius: 16px; overflow: hidden; color: var(--rouw-ink) !important; text-decoration: none; }
.rouw-bn-card-img { display: block; aspect-ratio: 3 / 2; background: #dcdad2; }
.rouw-bn-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rouw-bn-card-text { display: grid; gap: 4px; padding: 14px 16px 16px; }
.rouw-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.rouw-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 22px; background: var(--rouw-surface); border: 1px solid #d6d4cc; color: var(--rouw-ink) !important; text-decoration: none; }
.rouw-linklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rouw-sources { margin: 0 0 10px; padding-left: 18px; display: grid; gap: 6px; }
.rouw-article { font-size: 17px; line-height: 1.7; }
.rouw-article p + p { margin-top: 14px; }
.rouw-article h2 { font-size: 18px; margin: 20px 0 6px; font-family: var(--rouw-sans); font-weight: 600; }
.rouw-article > p:first-child { font-family: var(--rouw-serif); font-size: 20px; line-height: 1.55; }

/* Meldingen, dialogen, toast */
.rouw-notice { margin: 16px; padding: 14px 16px; border-radius: 12px; background: #e6efe8; color: #1d3b26; font-size: 15px; }
.rouw-notice--error { background: #f7e6e4; color: #6b1c18; }
.rouw-manage .rouw-notice, .rouw-create .rouw-notice, .rouw-narrow .rouw-notice { margin: 0 0 16px; }
.rouw-dialog { border: 0; border-radius: 18px; padding: 0; width: min(92vw, 440px); color: var(--rouw-ink); }
.rouw-dialog::backdrop { background: rgba(20, 22, 25, .5); }
.rouw-dialog-inner { padding: 24px; display: grid; gap: 12px; }
.rouw-qr canvas { width: 100%; max-width: 280px; height: auto; display: block; margin: 0 auto; }
.rouw-urlbox { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border: 1px solid var(--rouw-field); border-radius: 12px; margin: 14px 0 6px; overflow: hidden; }
.rouw-urlbox span { flex: 1; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rouw-welcome { display: grid; gap: 8px; }
.rouw-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #1f2328; color: #fff; padding: 12px 18px; border-radius: 12px; font-family: 'Figtree', system-ui, sans-serif; font-size: 15px; opacity: 0; transition: opacity .25s, transform .25s; z-index: 99999; }
.rouw-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 760px) {
	.rouw-card, .rouw-soft { margin-left: 0; margin-right: 0; }
	.rouw-register { padding: 24px 0 64px !important; }
	.rouw-hero { border-radius: 16px 16px 0 0; }
	.rouw-actions { border-radius: 0 0 16px 16px; grid-template-columns: 1fr 1fr; }
	.rouw-actions .rouw-share, .rouw-actions .rouw-share-more { grid-column: 1 / -1; }
	.rouw-bn-photo { border-radius: 16px 16px 0 0; overflow: hidden; }
}

/* Afdrukken: alleen register en berichten */
@media print {
	.rouw-actions, .rouw-form, .rouw-register-footer, .rouw-soft, .rouw-card--plain, .rouw-tabs, .rouw-linkbtn, .rouw-dialog, .rouw-partner, .rouw-btn, .rouw-notice { display: none !important; }
	.rouw, main.rouw { background: #fff !important; }
	.rouw-card { border: 0; margin: 0; }
	.rouw-message { break-inside: avoid; }
	[data-rouw-panel] { display: block !important; }
}

/* Sectiekop (shortcodes met titel="…") */
.rouw-section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 18px; }
.rouw-section-head h2 { margin: 0; }
.rouw-section + .rouw-section { margin-top: 40px; }
