/* Elayne guide theme: article-level styles on top of kit.css (zonderslop site-standard v1).
 * Tokens come from css/themes/<site>.css (or inline fallback from site.yaml brand); legacy names map onto them. */
:root {
    --ink: var(--zs-ink);
    --ink-soft: var(--zs-muted);
    --muted: var(--zs-muted);
    --bg: var(--zs-bg);
    --surface: var(--zs-surface);
    --line: var(--zs-line);
    --radius: var(--zs-radius);
    --accent: var(--zs-accent);
    --accent-ink: var(--zs-accent-hover);
    --accent-soft: var(--zs-surface-alt);
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: .5rem 1rem; z-index: 10; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.zs-header .zs-logo { display: inline-flex; align-items: center; gap: .55rem; }
.zs-header .zs-logo__mark { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: var(--zs-radius-sm); background: var(--zs-accent); color: var(--zs-accent-ink); font: 700 1.05rem/1 var(--zs-font-display); }
.wrap { max-width: var(--zs-wrap, 76rem); margin: 0 auto; padding: 0 1rem; }
.article h1 { font-size: clamp(2rem, 2.4vw + 1.2rem, 3rem); margin-bottom: .4em; }
.prose h2, .article > h2, .products h2, .sources h2 { margin: 2.2rem 0 .7rem; font-size: clamp(1.4rem, 1vw + 1rem, 1.9rem); }
.prose h3 { margin: 1.4rem 0 .4rem; }
.crumbs { font-size: .875rem; color: var(--muted); padding-top: 1rem; }
.crumbs a { color: var(--muted); }

.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 44rem; }
.article-head h1 + .lead { margin-top: 0; }

.article { padding-bottom: 3rem; }
.article-head { padding: 1.2rem 0 .4rem; max-width: 46rem; }
.prose { max-width: 46rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: .25rem 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: .5rem .6rem; text-align: left; vertical-align: top; }
.prose th { background: var(--accent-soft); }
.prose blockquote { margin: 1.2rem 0; padding: .8rem 1rem; background: var(--surface); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; }

.btn { display: inline-flex; align-items: center; min-height: 2.6rem; background: var(--zs-accent); color: var(--zs-accent-ink); border: 2px solid transparent; border-radius: var(--zs-radius-btn, var(--zs-radius)); padding: .5rem 1rem; font: 600 .95rem/1.2 var(--zs-font-body); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--zs-accent-hover); color: var(--zs-accent-ink); }
.btn-ghost { background: transparent; color: var(--zs-brand-text, var(--zs-brand)); border-color: var(--zs-line); }
.btn-ghost:hover { background: var(--zs-surface); color: var(--zs-brand-text, var(--zs-brand)); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; text-decoration: none; color: var(--ink); transition: border-color .15s; }
.card:hover { border-color: var(--accent); color: var(--ink); }
.card h2, .card h3 { margin: 0 0 .3rem; font-size: 1.1rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.home-section h2 { margin-top: 2.5rem; }

.checklist-tools { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 1rem 0; }
.check-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .4rem 1.2rem 1rem; margin: 1.2rem 0; max-width: 46rem; }
.check-group h2 { margin-top: 1rem; font-size: 1.25rem; }
.check-group ul { list-style: none; margin: 0; padding: 0; }
.check-group li { display: grid; grid-template-columns: 1.6rem 1fr auto; gap: .4rem; align-items: start; padding: .55rem 0; border-top: 1px solid var(--line); }
.check-group li:first-child { border-top: 0; }
.check-group input { width: 1.15rem; height: 1.15rem; margin-top: .3rem; accent-color: var(--accent); }
.check-group label { cursor: pointer; }
.check-group input:checked + label strong { text-decoration: line-through; color: var(--muted); }
.amount { color: var(--accent-ink); font-weight: 600; font-size: .9rem; }
.note { display: block; color: var(--ink-soft); font-size: .92rem; }
.item-link { font-size: .875rem; white-space: nowrap; margin-top: .2rem; }

.products { margin-top: 2.5rem; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; }
.product { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; display: flex; flex-direction: column; }
.product h3 { margin: 0 0 .3rem; }
.product p { margin: 0 0 .8rem; color: var(--ink-soft); font-size: .95rem; flex: 1; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.price { font-weight: 700; }

.sources { margin-top: 2.5rem; max-width: 46rem; border-top: 1px solid var(--line); }
.sources h2 { font-size: 1.1rem; }
.sources ul { padding-left: 1.2rem; font-size: .95rem; }


@media print {
    /* Always print light, also when the screen uses the dark theme. */
    :root, :root:not([data-theme="light"]) { color-scheme: light; --zs-bg: #ffffff; --zs-surface: #ffffff; --zs-surface-alt: #f4f1ea; --zs-ink: #1f2a33; --zs-muted: #4f5a63; --zs-line: #c9c4ba; --zs-brand-text: var(--zs-brand); }
    .zs-header, .zs-footer, .crumbs, .no-print, .products, .sources { display: none !important; }
    body { background: #fff; font-size: 11pt; }
    .check-group { border: 1px solid #999; break-inside: avoid; }
}

/* Reviews and comparison tables */
.factbox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; max-width: 46rem; margin: 1.2rem 0 1.6rem; }
.factbox dl { margin: 0 0 1rem; display: grid; gap: .1rem; }
.factbox dl div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: .45rem 0; border-top: 1px solid var(--line); }
.factbox dl div:first-child { border-top: 0; }
.factbox dt { font-weight: 700; color: var(--ink-soft); }
.factbox dd { margin: 0; }
.proscons { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; max-width: 46rem; }
.proscons > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .2rem 1.2rem .6rem; }
.proscons h2 { font-size: 1.1rem; margin-top: 1rem; }
.proscons ul { padding-left: 1.1rem; }
.table-scroll { overflow-x: auto; margin: 1.2rem 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare { border-collapse: collapse; width: 100%; min-width: 46rem; font-size: .95rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: .7rem .8rem; border-top: 1px solid var(--line); }
.compare thead th { background: var(--accent-soft); border-top: 0; font-size: .85rem; text-transform: none; }
.compare tbody th { font-weight: 700; white-space: nowrap; }
.adult { font-size: .85rem; }
@media (max-width: 600px) { .factbox dl div { grid-template-columns: 1fr; gap: 0; } }

/* Kit additions: hero and tiles without a photo yet, brand surface instead. */
.zs-hero--plain { min-height: 0; background: var(--zs-brand); }
.zs-hero--plain::before { display: none; }
.zs-hero--plain .zs-hero__body { padding-block: 4rem 3rem; }
.zs-tile--plain { background: var(--zs-brand); }
.zs-tile--plain::before { display: none; }
.zs-method .prose, .zs-method p { max-width: 38rem; }

/* Noodpakketjes hero: intro left, checklist right. */
.np-hero { align-items: start; }
.np-hero h1 { font-size: clamp(2.1rem, 2.5vw + 1.2rem, 3.2rem); line-height: 1.05; }
.np-hero__lead { font-size: 1.15rem; margin: 1rem 0 1.5rem; }
.np-hero__facts { margin-bottom: 1.5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.np-ghost { color: var(--zs-brand-text, var(--zs-brand)); }
.np-item__note { display: block; font-size: .85rem; color: var(--zs-muted); }
.np-item__qty a { color: var(--zs-brand-text, var(--zs-brand)); }
.np-list__foot .zs-btn { min-height: 2.4rem; padding: .45rem .9rem; font-size: .9rem; }
.np-list .np-item__qty { white-space: normal; text-align: right; max-width: 8.5rem; line-height: 1.3; }

/* Generic text tiles (sites without photos), same shape as the noodpakketjes situation cards. */
.el-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.el-links a { display: block; height: 100%; padding: 1rem 1.1rem; background: var(--zs-surface); border: 1px solid var(--zs-line); border-radius: var(--zs-radius); color: var(--zs-ink); text-decoration: none; }
.el-links a:hover { border-color: var(--zs-accent); }
.el-links strong { display: block; font: 400 1.2rem/1.25 var(--zs-font-display); color: var(--zs-brand-text, var(--zs-brand)); }
.el-links a > span:not([aria-hidden]) { display: block; font-size: .92rem; color: var(--zs-muted); margin-top: .25rem; }
.el-links--picto a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 .9rem; align-items: start; }
.el-links--picto .ng-picto, .el-links--picto .dp-picto { grid-row: span 2; }
.ng-hedgehog { display: flex; gap: .7rem; align-items: center; margin-top: 1.2rem; }

/* Datingplaza review page: sheet and checks side by side on wide screens. */
.dp-review { display: grid; gap: 1.5rem; margin: 1rem 0 2rem; align-items: start; }
.dp-review h2 { font-size: 1.35rem; margin: 0 0 .8rem; }
@media (min-width: 60rem) { .dp-review { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2.5rem; } }
.dp-check li div p:empty { display: none; }
@media print {
  .np-group h3 .np-picto { width: 1.2rem; height: 1.2rem; border-radius: 4px; }
  .np-group h3 { margin: .1rem 0; font-size: 10.5pt; }
  .np-group { padding-top: .25rem; padding-bottom: 0; }
  .np-item__note { font-size: 8.5pt; line-height: 1.2; }
  .np-list__head { padding: .4rem .8rem; }
}
.el-links .ng-picto { color: #fff; }
.el-links--picto .dp-avatar { grid-row: span 2; }
.zs-hero__credit a { color: inherit; }
.dp-photo-credit a { color: inherit; }
.np-hero--photo .np-ghost { color: #fff; border-color: rgb(255 255 255 / .85); }
.dp-sheet__more { margin: 0; padding: 0 1.25rem .4rem; font-size: .9rem; }

/* Photo band on sub pages (design-feedback: photo per page type) */
.el-pagephoto { position: relative; margin: 1rem 0 0; border-radius: var(--zs-radius); overflow: hidden; aspect-ratio: 16 / 5; background: var(--zs-surface-alt); }
.el-pagephoto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.el-pagephoto__badge { position: absolute; left: 1rem; bottom: -0.1rem; transform: translateY(0); background: var(--zs-surface); border-radius: 50%; padding: .55rem; box-shadow: 0 6px 18px rgb(0 0 0 / .15); margin-bottom: .9rem; }
.el-pagephoto__credit { position: absolute; right: .6rem; bottom: .4rem; font-size: .72rem; }
.el-pagephoto__credit a { color: #fff; text-shadow: 0 1px 3px rgb(0 0 0 / .7); }
@media (max-width: 40rem) { .el-pagephoto { aspect-ratio: 16 / 7; } .el-pagephoto__badge { transform: scale(.6); transform-origin: left bottom; left: .6rem; } }
@media print { .el-pagephoto { display: none; } }

/* Datingplaza promise chips with a small pictogram */
.dp-promise li:has(.dp-picto) { display: inline-flex; align-items: center; gap: .45rem; padding-left: .3rem; }
.dp-promise .dp-picto { width: 1.7rem; height: 1.7rem; }
.el-links .dp-picto { color: #fff; }

/* Datingplaza: fill the left column next to the small print (photo or large pictogram) */
.dp-checkart { margin-top: 2.2rem; }
.dp-checkart .dp-picto { width: 9rem; height: 9rem; }
.dp-checkart img { display: block; width: min(22rem, 100%); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; border: 6px solid var(--zs-surface); }
@media (max-width: 48rem) { .dp-checkart { display: none; } }


/* Photo tiles: stronger scrim behind the text so it stays readable on busy photos */
.zs-tile::before { background: linear-gradient(to top, color-mix(in srgb, var(--zs-brand-deep) 92%, transparent) 0%, color-mix(in srgb, var(--zs-brand-deep) 70%, transparent) 50%, transparent 85%); }

@media (min-width: 56rem) { .zs-tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* np checklist: amount/link sits under the item name, so long amounts do not squeeze the name */
@media screen {
    .np-list .np-item:has(.np-item__qty:not(:empty)) { grid-template-columns: 1.5rem minmax(0, 1fr); row-gap: .1rem; }
    .np-list .np-item__qty { grid-column: 2; text-align: left; max-width: none; }
}

/* Coverage table (aanhangwagenverzekering): facts per insurer with source and date */
.av-coverage { margin: 2.2rem 0; }
.av-coverage__checked { display: flex; gap: .6rem; align-items: center; color: var(--zs-muted); font-size: .95rem; }
.av-coverage__wrap { overflow-x: auto; border: 1px solid var(--zs-line); border-radius: var(--zs-radius); background: var(--zs-surface); margin-top: 1rem; }
.av-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.av-table th, .av-table td { text-align: left; vertical-align: top; padding: .75rem .9rem; }
.av-table thead th { font-size: .82rem; color: var(--zs-muted); font-weight: 700; border-bottom: 1px solid var(--zs-line); white-space: nowrap; }
.av-table tbody th strong { display: block; font: 400 1.1rem/1.25 var(--zs-font-display); color: var(--zs-brand-text, var(--zs-brand)); }
.av-table tbody th span, .av-table td small { display: block; font-weight: 400; font-size: .85rem; color: var(--zs-muted); margin-top: .2rem; }
.av-table__links td { padding-top: 0; border-bottom: 1px solid var(--zs-line); display: table-cell; }
.av-table__links a { margin-right: 1.2rem; font-size: .9rem; }
.av-table__links .av-table__go { font-weight: 700; }
.av-table tbody tr:last-child td { border-bottom: 0; }
.av-coverage__note { font-size: .9rem; color: var(--zs-muted); margin-top: .8rem; max-width: 46rem; }
@media (max-width: 56rem) {
    .av-coverage__wrap { overflow: visible; border: 0; background: none; }
    .av-table thead { display: none; }
    .av-table, .av-table tbody, .av-table tr, .av-table th, .av-table td { display: block; }
    .av-table tbody tr:not(.av-table__links) { background: var(--zs-surface); border: 1px solid var(--zs-line); border-bottom: 0; border-radius: var(--zs-radius) var(--zs-radius) 0 0; margin-top: 1rem; padding: .4rem 0; }
    .av-table__links { background: var(--zs-surface); border: 1px solid var(--zs-line); border-top: 0; border-radius: 0 0 var(--zs-radius) var(--zs-radius); }
    .av-table td { padding: .3rem .9rem; display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .6rem; }
    .av-table td::before { content: attr(data-label); font-size: .82rem; color: var(--zs-muted); font-weight: 700; }
    .av-table__links td { display: block; padding: .5rem .9rem .8rem; border-bottom: 0; }
}

/* Headings with a small pictogram (h2_pictos) and a full-width break inside long articles */
.el-h2-picto { display: flex; align-items: center; gap: .6rem; }
.prose h2, .av-coverage h2 { margin-bottom: .5em; }
.el-break { margin: 2rem 0; }
/* Coverage "checked" line: text column may shrink */
.av-coverage__checked > span:last-child { min-width: 0; flex: 1; }
.av-coverage__checked .av-picto { flex: none; }
/* Phone: photo credit under the photo band, not over the badge */
@media (max-width: 40rem) {
    .el-pagephoto { overflow: visible; aspect-ratio: auto; background: none; }
    .el-pagephoto img { aspect-ratio: 16 / 7; height: auto; border-radius: var(--zs-radius); }
    .el-pagephoto__badge { bottom: 1.6rem; }
    .el-pagephoto__credit { position: static; display: block; margin-top: .3rem; font-size: .72rem; }
    .el-pagephoto__credit a { color: var(--zs-muted); text-shadow: none; }
}

/* preventiespecialist: explanation list under the year planner */
.ps-ritme { margin: 2rem 0; }
.ps-ritme__list { display: grid; gap: .9rem; margin: 1.6rem 0 0; max-width: 46rem; }
.ps-ritme__list dt { display: flex; align-items: center; gap: .55rem; font-weight: 700; }
.ps-ritme__list dd { margin: .25rem 0 0 2.45rem; }
.ps-ritme__list em { display: block; font-style: normal; font-size: .9rem; color: var(--zs-muted); margin-top: .2rem; }
.ps-year__m ul li small { color: var(--zs-muted); font-size: .8rem; }

/* Photo band credit: readable scrim on wide screens too */
@media (min-width: 40.01rem) {
    .el-pagephoto__credit a { background: rgb(0 0 0 / .55); border-radius: 4px; padding: .1rem .4rem; text-shadow: none; text-decoration: none; }
}
/* ps planner on phones: empty months as one compact line */
@media (max-width: 40rem) {
    .ps-year__m:has(.ps-year__none) { display: flex; align-items: baseline; gap: .6rem; padding: .35rem .85rem; min-height: 0; }
    .ps-year__m:has(.ps-year__none) h3 { min-width: 3.4rem; }
}
