/* Damespraatjes — layout & chrome. Mobile-first. Prose lives in content.css. */

:root {
	--c-primary: #8E3353;
	--c-primary-dark: #6f2540;
	--c-pink: #FFE5EE;
	--c-grey: #EFEDED;
	--c-text: #3c3c3c;
	--c-muted: #6b6b6b;
	--c-border: #e5e5e5;
	--c-on-accent: #3c3c3c;
	--c-bg: #fff;
	--font-body: "DM Sans", system-ui, -apple-system, sans-serif;
	--font-head: "Nunito", "DM Sans", system-ui, sans-serif;
	--r-img: 8px;
	--r-pill: 32px;
	--row: 1200px;
	--sidebar: 370px;
	--gap: 30px;
	--gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font: 400 1rem/1.6 var(--font-body);
	-webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--c-primary); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.25; margin: 0 0 .5em; color: var(--c-text); }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 2px; }

.row { width: 100%; max-width: var(--row); margin: 0 auto; padding: 0 var(--gutter); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--c-primary); color: #fff; padding: .5rem 1rem; z-index: 200; border-radius: var(--r-pill); }
.skip-link:focus { left: 8px; }

/* Buttons & pills */
.button, .wp-block-button__link, .comment-form .submit, .nav-links a {
	display: inline-block;
	font: 600 1rem/1.2 var(--font-head);
	background: var(--c-primary);
	color: #fff;
	padding: .8rem 1.75rem;
	border: 0;
	border-radius: var(--r-pill);
	cursor: pointer;
	text-transform: uppercase;
	letter-spacing: .02em;
	transition: background .15s;
}
.button:hover, .wp-block-button__link:hover, .comment-form .submit:hover, .nav-links a:hover { background: var(--c-primary-dark); color: #fff; }
.pill {
	display: inline-block;
	font: 700 .75rem/1.7 var(--font-body);
	background: var(--c-pink);
	color: var(--c-on-accent);
	padding: 0 .75rem;
	border-radius: var(--r-pill);
	letter-spacing: .025em;
	white-space: nowrap;
}
a.pill:hover { background: var(--c-primary); color: #fff; }

/* Header */
.site-header { background: #fff; }
@media (max-width: 795px) {
	/* translateZ + backface: WebKit (iOS Safari/Chrome) otherwise drops the sticky header's paint after a tab is restored. */
	.site-header { position: sticky; top: 0; z-index: 140; box-shadow: 0 1px 0 var(--c-border); transform: translateZ(0); will-change: transform; }
	.logo img { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
	.site-nav { max-height: calc(100vh - 64px); }
}
.site-header__bar {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: var(--gutter);
	padding-top: .75rem;
	padding-bottom: .75rem;
}
.logo { grid-column: 2; display: block; }
.logo img { width: clamp(150px, 42vw, 480px); }
.nav-toggle, .search-toggle { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem; border-radius: var(--r-img); font: 600 .9rem var(--font-head); text-transform: uppercase; white-space: nowrap; }
.nav-toggle svg, .search-toggle svg { flex: 0 0 auto; }
.nav-toggle span { display: none; }
@media (min-width: 480px) { .nav-toggle span { display: inline; } }
.nav-toggle:hover, .search-toggle:hover { background: var(--c-pink); color: var(--c-primary); }
.search-toggle { justify-self: end; }
.nav-toggle[aria-expanded="true"] { background: var(--c-pink); color: var(--c-primary); }

.site-nav { background: var(--c-pink); display: none; max-height: calc(100vh - 80px); overflow-y: auto; }
body.nav-open .site-nav { display: block; }
.menu { list-style: none; }
.menu > li { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid rgba(0,0,0,.06); }
.menu a {
	display: block;
	padding: .85rem 0;
	font: 600 1rem/1.2 var(--font-head);
	text-transform: uppercase;
	letter-spacing: .02em;
	color: var(--c-on-accent);
}
.menu a:hover, .menu .current-menu-item > a, .menu .current-menu-ancestor > a { opacity: .75; }
.sub-menu a { color: var(--c-text); }
.sub-menu a:hover { opacity: 1; color: var(--c-primary); }
.submenu-toggle { display: grid; place-items: center; width: 44px; margin-right: -.5rem; color: var(--c-on-accent); }
.submenu-toggle::before { content: ""; width: .5em; height: .5em; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-.15em); transition: transform .15s; }
.is-open > .submenu-toggle::before { transform: rotate(225deg) translateY(-.1em); }
.sub-menu { list-style: none; grid-column: 1 / -1; display: none; padding: 0 0 .5rem 1rem; }
.is-open > .sub-menu { display: block; }
.sub-menu a { text-transform: none; padding: .5rem 0; }

.site-search { display: flex; gap: .5rem; padding-top: .75rem; padding-bottom: .75rem; background: var(--c-grey); max-width: none; }
.site-search[hidden] { display: none; }
.site-search input { flex: 1; min-width: 0; border: 1px solid var(--c-border); border-radius: var(--r-pill); padding: .7rem 1.1rem; background: #fff; }

@media (min-width: 796px) {
	.site-header__bar { padding-top: 1.25rem; padding-bottom: 1rem; }
	.nav-toggle { display: none; }
	.site-nav { display: block; }
	.site-nav .row { position: relative; }
	.site-nav { max-height: none; overflow: visible; }
	.menu { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 .5rem; }
	.menu > li { display: block; position: relative; border: 0; }
	.submenu-toggle { display: none; }
	.menu a { padding: .9rem 1rem; border: 0; }
	.menu > li > a { border-bottom: 3px solid transparent; }
	.menu > .current-menu-item > a, .menu > .current-menu-ancestor > a { border-color: var(--c-on-accent); opacity: 1; }
	.menu-item-has-children > a::after { content: ""; display: inline-block; width: .45em; height: .45em; margin-left: .45em; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-.15em) rotate(45deg); }
	.sub-menu {
		position: absolute; left: 0; top: 100%; z-index: 100;
		min-width: 240px; padding: .5rem 0;
		background: #fff; border-radius: 0 0 var(--r-img) var(--r-img);
		box-shadow: 0 12px 30px rgba(0,0,0,.12);
		display: none;
	}
	.menu li:hover > .sub-menu, .menu li:focus-within > .sub-menu { display: block; padding: .5rem 0; }
	.sub-menu a { padding: .55rem 1.25rem; text-align: left; }
	.sub-menu a:hover { background: var(--c-pink); }
	.site-search .row, .site-search { justify-content: center; }
	.site-search input { max-width: 560px; }
}

/* Ads: reserve space so nothing jumps */
.ad { display: flex; justify-content: center; align-items: flex-start; margin: 1rem auto; overflow: hidden; }
.ad--billboard { min-height: 100px; }
.ad--rectangle-1, .ad--rectangle-2, .ad--rectangle-3, .ad--article { min-height: 250px; }
.ad--footer { margin: 0; min-height: 0; }
@media (min-width: 796px) { .ad--billboard { min-height: 250px; } }

/* Layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); padding-top: 1rem; padding-bottom: 3rem; }
.main { min-width: 0; }
.sidebar { min-width: 0; }
@media (min-width: 1024px) {
	.layout { grid-template-columns: minmax(0, 1fr) var(--sidebar); gap: 40px; padding-top: 1.5rem; }
}

/* Slider */
.slider { position: relative; margin: 0 0 var(--gap); }
.slider__track {
	list-style: none;
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	border-radius: var(--r-img);
	-webkit-overflow-scrolling: touch;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; aspect-ratio: 760 / 440; background: var(--c-grey); }
.slider__slide a { display: block; height: 100%; color: #fff; }
.slider__slide img { width: 100%; height: 100%; object-fit: cover; }
.slider__caption {
	position: absolute; inset: auto 0 0 0;
	padding: 3rem 1rem 2.5rem;
	background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0));
	display: flex; flex-direction: column; align-items: flex-start; gap: .5rem;
}
.slider__title { font: 700 clamp(1.15rem, 3.4vw, 2rem)/1.25 var(--font-head); text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.slider__dots { position: absolute; left: 0; right: 0; bottom: .75rem; display: flex; justify-content: center; gap: .5rem; }
.slider__dots button { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.55); border: 0; padding: 0; }
.slider__dots button[aria-selected="true"] { background: #fff; transform: scale(1.25); }
.slider__dots:empty { display: none; }

/* Cards */
.cards { display: grid; grid-template-columns: 1fr; gap: 2rem var(--gap); }
@media (min-width: 600px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { display: flex; flex-direction: column; gap: .6rem; }
.card__image { display: block; aspect-ratio: 760 / 440; overflow: hidden; border-radius: var(--r-img); background: var(--c-grey); }
.card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card__image img { transform: scale(1.03); }
.card__title { font-size: 1.2rem; margin: 0; }
.card__title a:hover { color: var(--c-primary); }

.meta { display: flex; justify-content: space-between; align-items: center; gap: .75rem; font: 700 .75rem/1.6 var(--font-body); text-transform: uppercase; letter-spacing: .03em; color: var(--c-muted); }
.meta__left { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .6rem; min-width: 0; }
.meta__comments { display: inline-flex; align-items: center; gap: .3rem; }
.meta__comments::before { content: ""; width: 14px; height: 12px; background: var(--c-pink); border-radius: 3px 3px 3px 0; display: inline-block; }
.meta__author { color: var(--c-text); white-space: nowrap; }

/* Pagination */
.posts-navigation { margin: 2.5rem 0 0; }
.posts-navigation h2 { display: none; }
.nav-links { display: flex; justify-content: space-between; gap: 1rem; }
.nav-links .nav-next { margin-left: auto; }
.nav-links .nav-previous a::before { content: "‹ "; }
.nav-links .nav-next a::after { content: " ›"; }

/* Archive title, author box, 404 */
.page-title { font-size: clamp(1.5rem, 4vw, 2.25rem); margin: 0 0 1.25rem; }
.page-intro { margin: -.5rem 0 1.5rem; color: var(--c-muted); }
.author-box { display: flex; gap: 1.25rem; align-items: center; background: var(--c-grey); border-radius: var(--r-img); padding: 1.25rem; margin-bottom: 2rem; }
.author-box img { border-radius: 50%; flex: 0 0 auto; width: 96px; height: 96px; }
.author-box h1 { font-size: 1.5rem; margin-bottom: .25rem; }
.author-box p { margin: 0; }

/* Single */
.crumbs { font-size: .8rem; color: var(--c-muted); margin-bottom: 1rem; }
.crumbs a:hover { color: var(--c-primary); }
.entry__title { font-size: clamp(1.7rem, 4.5vw, 2.5rem); line-height: 1.15; margin: 0 0 1.25rem; }
.entry__hero { position: relative; margin: 0 0 1rem; border-radius: var(--r-img); overflow: hidden; background: var(--c-grey); }
.entry__hero > img { width: 100%; }
.pin img { width: 16px; height: 16px; }
.pin { position: absolute; top: .75rem; left: .75rem; display: inline-flex; align-items: center; gap: .35rem; background: #fff; color: var(--c-primary); font: 700 .75rem/1 var(--font-body); padding: .4rem .7rem; border-radius: var(--r-pill); }
.entry .meta { margin-bottom: 1.5rem; }
.read-more, .follow { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--c-border); }
.read-more .card { max-width: 480px; }
.follow .social { justify-content: flex-start; }

/* Sidebar boxes */
.side-box { margin-bottom: 2rem; }
.side-box__title { font-size: 1.25rem; margin: 0 0 .75rem; }
.side-box__title--small { font-size: .9rem; }
.about { background: var(--c-grey); border-radius: var(--r-img); padding: 1rem; }
.about__image { width: 100%; border-radius: var(--r-img); margin-bottom: 1rem; aspect-ratio: 340 / 197; object-fit: cover; }
.about__title { font-size: 1.1rem; }
.about p { margin: 0; font-size: .95rem; }

.post-list { list-style: none; }
.post-list li { border-bottom: 1px solid var(--c-border); }
.post-list a { display: grid; grid-template-columns: 90px 1fr; gap: .9rem; align-items: center; padding: .7rem 0; font-size: .95rem; font-weight: 600; }
.post-list img { width: 90px; height: 60px; object-fit: cover; border-radius: var(--r-img); }
.post-list a:hover span { color: var(--c-primary); }

.social { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.social a { display: inline-flex; padding: .2rem; border-radius: 50%; transition: transform .15s; }
.social a:hover { transform: translateY(-2px); }
.social img { width: 32px; height: 32px; }

/* Comments */
.comments { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--c-border); }
.comments__title { font-size: 1.35rem; }
.comment { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--c-border); }
.comment .avatar { width: 48px; height: 48px; border-radius: 50%; }
.comment__body { min-width: 0; }
.comment__meta { margin: 0 0 .35rem; font-size: .85rem; color: var(--c-muted); }
.comment__author { font-weight: 700; color: var(--c-text); margin-right: .35rem; }
.comment__text p { margin: 0 0 .75rem; }
.comment__text p:last-child { margin: 0; }
.comment__pending { font-style: italic; color: var(--c-muted); }
.comment__reply { margin-top: .5rem; }
.comment__reply a { font: 700 .8rem var(--font-body); color: var(--c-primary); text-transform: uppercase; }
.comment .children { grid-column: 1 / -1; padding-left: 1rem; border-left: 3px solid var(--c-pink); }
.comment .children .comment:last-child { border-bottom: 0; padding-bottom: 0; }
@media (min-width: 600px) { .comment { grid-template-columns: 60px 1fr; } .comment .avatar { width: 60px; height: 60px; } .comment .children { padding-left: 2rem; } }
.comment-respond { margin-top: 2rem; }
.comment-form p { margin: 0 0 .9rem; }
.comment-form input:not([type="submit"]), .comment-form textarea { width: 100%; border: 1px solid var(--c-border); background: var(--c-grey); border-radius: var(--r-img); padding: .8rem 1rem; }
.comment-form textarea { resize: vertical; }
@media (min-width: 600px) {
	.comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
	.comment-form .comment-form-comment, .comment-form .form-submit, .comment-form .comment-notes, .comment-form .logged-in-as, .comment-form .comment-form-cookies-consent { grid-column: 1 / -1; }
}
#cancel-comment-reply-link { font-size: .85rem; margin-left: .75rem; text-transform: none; color: var(--c-primary); }
.comment-navigation .nav-links a { background: none; color: var(--c-primary); padding: 0; text-transform: none; }

/* Search form (404 / no results) */
.search-form { display: flex; gap: .5rem; max-width: 560px; margin: 1rem 0 2rem; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; border: 1px solid var(--c-border); border-radius: var(--r-pill); padding: .7rem 1.1rem; }
.search-form .search-submit { background: var(--c-primary); color: #fff; border: 0; border-radius: var(--r-pill); padding: .7rem 1.25rem; font: 600 .9rem var(--font-head); text-transform: uppercase; }

/* Footer */
.site-footer { background: var(--c-pink); color: var(--c-on-accent); padding: 1.5rem 0; margin-top: 2rem; font: 600 .85rem/1.5 var(--font-head); text-transform: uppercase; letter-spacing: .03em; }
.site-footer__inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.site-footer__copy { margin: 0; }
.footer-menu { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1rem; }
.footer-menu a:hover, .site-footer__app:hover { opacity: .75; }
@media (min-width: 796px) {
	.site-footer__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* Mobile tab bar */
.tabbar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
	display: grid; grid-template-columns: repeat(5, 1fr);
	background: #fff; border-top: 1px solid var(--c-border);
	padding-bottom: env(safe-area-inset-bottom, 0px);
	box-shadow: 0 -4px 16px rgba(0,0,0,.06);
}
.tabbar__item {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
	height: 58px; color: var(--c-muted); font: 600 .68rem/1.1 var(--font-head); text-align: center;
	border: 0; background: none; padding: 0 2px;
}
.tabbar__item svg { width: 24px; height: 24px; }
.tabbar__item.is-active, .tabbar__item:hover { color: var(--c-primary); }
.tabbar__item { position: relative; }
.tabbar__badge { position: absolute; top: 8px; right: calc(50% - 16px); width: 10px; height: 10px; border-radius: 50%; background: var(--c-primary); box-shadow: 0 0 0 2px #fff; }
.tabbar__badge[hidden] { display: none; }
@media (max-width: 795px) {
	body { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
	.ad--footer { display: none; } /* sticky footer ad and tab bar cannot share the bottom edge */
	.site-footer__app { display: none; }
}
@media (min-width: 796px) { .tabbar { display: none; } }
.site-footer__app { font: inherit; text-transform: inherit; letter-spacing: inherit; color: inherit; }
.side-box--html { font-size: .95rem; }
.side-box--html img { max-width: 100%; height: auto; }
html { scroll-padding-top: 1rem; }
.side-box--anchor { scroll-margin-top: 1rem; }
@media (max-width: 795px) { .side-box--anchor { scroll-margin-top: 80px; } }

/* Trend bars (Meest gelezen) */
.trend { display: flex; align-items: flex-end; gap: 2px; height: 14px; margin-top: .35rem; }
.trend i { flex: 0 0 5px; height: 100%; border-radius: 1px; background: var(--c-pink); transform-origin: bottom; transform: scaleY(var(--v, 0)); min-height: 2px; }
.trend i:last-child { background: var(--c-primary); }
.trend b { font: 700 .7rem/1 var(--font-body); color: var(--c-muted); margin-left: .35rem; align-self: flex-end; }

/* App & meldingen sheet */
.sheet {
	border: 0; padding: 1.5rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px)); margin: auto auto 0;
	width: 100%; max-width: 100%; border-radius: 16px 16px 0 0;
	color: var(--c-text); font-family: var(--font-body); background: #fff;
}
.sheet::backdrop { background: rgba(0,0,0,.45); }
@media (min-width: 600px) { .sheet { margin: auto; max-width: 480px; border-radius: 16px; padding-bottom: 1.5rem; } }
.sheet__close { position: absolute; top: .75rem; right: .75rem; margin: 0; }
.sheet__close button { width: 36px; height: 36px; border-radius: 50%; background: var(--c-grey); font-size: 1.4rem; line-height: 1; }
.sheet__title { font-size: 1.35rem; margin: 0 2.5rem 1rem 0; }
.sheet__section { padding: 1rem 0; border-top: 1px solid var(--c-border); }
.sheet__section h3 { font-size: 1rem; margin: 0 0 .5rem; }
.sheet__section p { margin: 0 0 .75rem; font-size: .95rem; line-height: 1.55; }
.sheet__button { margin-top: .75rem; }
.sheet__tip { display: inline-block; vertical-align: middle; margin-left: .4rem; font: 700 .65rem/1.6 var(--font-body); text-transform: uppercase; letter-spacing: .05em; background: var(--c-primary); color: #fff; padding: 0 .5rem; border-radius: var(--r-pill); }
.sheet__steps { margin: .25rem 0 .75rem; padding-left: 1.3rem; font-size: .95rem; line-height: 1.55; }
.sheet__steps li { margin-bottom: .35rem; }
.sheet__icon { display: inline-block; font-size: 1.1em; line-height: 1; }
.sheet__cats { border: 0; padding: 0; margin: .75rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .75rem; }
.sheet__cats legend { font-weight: 700; font-size: .9rem; margin-bottom: .5rem; }
.sheet__cats label { display: flex; align-items: center; gap: .5rem; font-size: .95rem; }
.sheet__cats input { width: 18px; height: 18px; accent-color: var(--c-primary); }
.sheet__cats[disabled] { opacity: .5; }
.sheet__status { min-height: 1.4em; color: var(--c-primary); font-weight: 700; font-size: .9rem; }

/* Search sheet (mobile tab bar) */
.sheet--search { padding-top: 1.25rem; }
@media (max-width: 795px) { .sheet--search { margin-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); border-radius: 16px 16px 0 0; } }
.sheet__search { display: flex; gap: .5rem; }
.sheet__search input { flex: 1; min-width: 0; border: 1px solid var(--c-border); border-radius: var(--r-pill); padding: .8rem 1.1rem; font-size: 1rem; }
.sheet__cancel { margin-top: .75rem; color: var(--c-muted); font: 600 .9rem var(--font-head); text-transform: uppercase; }

.switch { display: flex; align-items: center; gap: .75rem; font-weight: 700; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track { width: 44px; height: 26px; border-radius: 13px; background: #ccc; position: relative; transition: background .15s; flex: 0 0 auto; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + .switch__track { background: var(--c-primary); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--c-primary); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; }
}
