/*
 * Aanhangwagenverzekering signature ("the calm neighbour with the tow bar").
 * Elements: photo hero ending in a road with a dashed centre line, trailer-type cards with pictograms,
 * coverage ladder WA -> beperkt casco -> allrisk (steps rise, each includes the one before),
 * fact rows with a source per value, a sun-yellow "let op" note, and a referral box that says plainly
 * we only refer (Wft: no advice, no data collection). Load after themes/aanhangwagenverzekering.css + kit.css.
 * Sprite: icons/aanhangwagenverzekering/sprite.svg (inline it in the page), ids av-*.
 */

/* Surfaces that stay dark in both modes use --av-brand-tile, so --zs-brand can turn light for text in dark mode. */
.zs-header, .zs-tile { background: var(--av-brand-tile); }

/* ---------- Mark: a tow ball on a bar ---------- */
.av-mark { display: inline-block; flex: none; width: 1.9rem; height: .9rem; position: relative; }
.av-mark::before { content: ""; position: absolute; left: 0; right: .5rem; top: .32rem; height: .26rem; border-radius: 2px; background: currentColor; }
.av-mark::after { content: ""; position: absolute; right: 0; top: 0; width: .9rem; height: .9rem; border-radius: 50%; background: var(--av-sun); }
.zs-logo:has(.av-mark) { display: inline-flex; align-items: center; gap: .55rem; }

/* ---------- Hero: photo with a spruce scrim, ending in a road ---------- */
.av-hero { position: relative; isolation: isolate; color: #fff; background: var(--av-brand-tile) var(--hero-img, none) center / cover no-repeat; padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(4.5rem, 9vw, 7rem); }
.av-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(15 33 28 / .9) 0%, rgb(15 33 28 / .78) 50%, rgb(15 33 28 / .35) 100%); }
@media (max-width: 48rem) { .av-hero::before { background: rgb(15 33 28 / .8); } }
.av-hero h1 { color: #fff; max-width: 18ch; }
.av-hero__lead { font-size: 1.15rem; max-width: 34rem; margin: 1rem 0 1.5rem; color: #f3efe4; }
.av-hero__credit { position: absolute; right: .75rem; bottom: 1.6rem; margin: 0; font-size: .72rem; color: #f3efe4; opacity: .8; }
/* The road: asphalt band with a dashed centre line. */
.av-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.1rem; background: var(--av-road); }
.av-road { position: absolute; z-index: 1; left: 0; right: 0; bottom: calc(.55rem - 1.5px); height: 0; border-top: 3px dashed var(--av-road-mark); pointer-events: none; }
.av-hero__types { list-style: none; margin: 1.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.av-hero__types a { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .85rem .3rem .3rem; border-radius: 999px; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .28); color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; }
.av-hero__types a:hover { background: rgb(255 255 255 / .22); color: #fff; }
.av-hero__types .av-picto { --picto-bg: var(--zs-picto); }

/* ---------- Pictogram tile ---------- */
.av-picto { --picto-bg: var(--zs-picto); display: inline-grid; place-items: center; flex: none; width: 3rem; height: 3rem; border-radius: 12px; background: var(--picto-bg); color: #fff; }
.av-picto svg { width: 80%; height: 80%; }
.av-picto--sm { width: 2.2rem; height: 2.2rem; border-radius: 9px; }
.av-picto--lg { width: 4.5rem; height: 4.5rem; border-radius: 16px; }
.av-picto--sun { --picto-bg: var(--av-sun); color: #23291f; }
@media print { .av-picto { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* ---------- Trailer types: one card per kind ---------- */
.av-types { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.av-types a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .3rem 1rem; align-items: start; height: 100%; padding: 1.1rem; background: var(--zs-surface); border: 1px solid var(--zs-line); border-bottom: 4px solid var(--av-brand-tile); border-radius: var(--zs-radius); color: var(--zs-ink); text-decoration: none; }
.av-types a:hover { border-bottom-color: var(--zs-accent); color: var(--zs-ink); }
.av-types .av-picto { grid-row: span 2; }
.av-types h3 { font-size: 1.2rem; }
.av-types p { margin: 0; color: var(--zs-muted); font-size: .95rem; }
.av-types--photo a { grid-template-columns: 1fr; padding: 0; overflow: hidden; }
.av-types--photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.av-types--photo a > div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .2rem .9rem; padding: .8rem 1.1rem 1.1rem; }
.av-types--photo .av-picto { margin-top: -2.3rem; box-shadow: 0 0 0 4px var(--zs-surface); }

/* ---------- Coverage ladder: WA -> beperkt casco -> allrisk ---------- */
.av-ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: none; }
@media (min-width: 56rem) { .av-ladder { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; } }
.av-ladder > li { display: flex; flex-direction: column; background: var(--zs-surface); border: 1px solid var(--zs-line); border-radius: var(--zs-radius); overflow: hidden; }
.av-ladder__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .15rem .85rem; align-items: center; padding: 1rem 1.1rem; background: var(--av-step-1); color: var(--av-step-ink-1); }
.av-ladder > li:nth-child(2) .av-ladder__head { background: var(--av-step-2); color: var(--av-step-ink-2); }
.av-ladder > li:nth-child(3) .av-ladder__head { background: var(--av-step-3); color: var(--av-step-ink-3); }
@media (min-width: 56rem) {
  .av-ladder > li:nth-child(1) .av-ladder__head { padding-top: 1rem; }
  .av-ladder > li:nth-child(2) .av-ladder__head { padding-top: 2.5rem; }
  .av-ladder > li:nth-child(3) .av-ladder__head { padding-top: 4rem; }
}
.av-ladder__head h3 { color: inherit; font-size: 1.35rem; }
.av-ladder__head p { grid-column: 2; margin: 0; font-size: .9rem; }
.av-ladder__head .av-picto { grid-row: span 2; --picto-bg: var(--av-brand-tile); }
.av-ladder__plus { margin: 0; padding: .55rem 1.1rem 0; font-size: .85rem; font-weight: 600; color: var(--zs-muted); }
.av-covers { list-style: none; margin: 0; padding: .6rem 1.1rem 1.1rem; display: grid; gap: .45rem; }
.av-covers li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: .5rem; align-items: start; font-size: .97rem; }
.av-covers li::before { display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; font-size: .8rem; font-weight: 700; line-height: 1; }
.av-covers li.is-yes::before { content: "✓"; color: var(--av-ok); background: var(--av-ok-bg); }
.av-covers li.is-no::before { content: "–"; color: var(--zs-muted); background: var(--zs-surface-alt); }
.av-covers li.is-no { color: var(--zs-muted); }
.av-covers li.is-new { font-weight: 600; }

/* ---------- Fact rows: one value, one source ---------- */
.av-facts { margin: 0; background: var(--zs-surface); border: 1px solid var(--zs-line); border-radius: var(--zs-radius); padding: .3rem 1.2rem; }
.av-facts > div { display: grid; grid-template-columns: auto minmax(0, 12rem) minmax(0, 1fr); gap: .25rem 1rem; align-items: center; padding: .8rem 0; border-bottom: 1px dashed var(--zs-line); }
.av-facts > div:last-child { border-bottom: 0; }
.av-facts dt { font-weight: 600; }
.av-facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.av-facts .av-src { display: block; font-size: .8rem; color: var(--zs-muted); }
.av-facts .av-src a { color: inherit; }
@media (max-width: 36rem) { .av-facts > div { grid-template-columns: auto minmax(0, 1fr); } .av-facts dd { grid-column: 2; } .av-facts .av-picto { grid-row: span 2; } }

/* ---------- "Let op" note ---------- */
.av-note { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .3rem 1rem; align-items: start; padding: 1rem 1.2rem; border-radius: var(--zs-radius); background: var(--zs-highlight); color: var(--zs-highlight-ink); }
.av-note strong { display: block; font-size: 1.05rem; }
.av-note p { margin: .2rem 0 0; }

/* ---------- Referral: we refer, we don't advise ---------- */
.av-referral { display: grid; gap: 1rem 2rem; align-items: center; padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--zs-radius); background: var(--zs-surface-alt); border-left: 6px solid var(--zs-accent); }
@media (min-width: 48rem) { .av-referral { grid-template-columns: minmax(0, 1fr) auto; } }
.av-referral h2 { font-size: clamp(1.4rem, 1vw + 1.1rem, 1.9rem); margin-bottom: .4rem; }
.av-referral p { margin: 0; }
.av-referral__small { font-size: .85rem; color: var(--zs-muted); margin-top: .6rem !important; }

/* ---------- Season strip: a photo per season, picked by the site ---------- */
.av-season { display: grid; gap: 1rem; align-items: center; }
@media (min-width: 48rem) { .av-season { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2.5rem; } }
.av-season img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--zs-radius); }
.av-season figcaption { font-size: .75rem; color: var(--zs-muted); margin-top: .35rem; }
