/*
 * Havermoutpap signature ("het emaille pannetje").
 * Everything is borrowed from the speckled enamel pan and mug: blue rims, speckled bands, round enamel tiles.
 * Elements: ratio cup (vlokken : vloeistof), recipe card with dotted leaders and timer chips, wait strip
 * (5 minuten vs een nacht), topping dots, kind cards for "soorten havermout", picto badge on photo tiles.
 * Load after kit.css + themes/havermoutpap.css. Pictograms: icons/havermoutpap/sprite.svg (hp-*).
 */

/* ---------- Round enamel tile for pictograms: blue tile with a darker rim ring ---------- */
.hp-picto { --picto-bg: var(--zs-picto); display: inline-grid; place-items: center; flex: none; width: 3rem; height: 3rem; border-radius: 50%; background: var(--picto-bg); color: #fff; box-shadow: inset 0 0 0 3px var(--zs-brand-deep); }
.hp-picto svg { width: 64%; height: 64%; }
.hp-picto--sm { width: 2.1rem; height: 2.1rem; box-shadow: inset 0 0 0 2px var(--zs-brand-deep); }
.hp-picto--lg { width: 4rem; height: 4rem; box-shadow: inset 0 0 0 4px var(--zs-brand-deep); }
.hp-picto--honey { --picto-bg: var(--hp-honey); color: #17243a; box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--hp-honey) 70%, #000); }

/* ---------- Speckled enamel band: pale blue with irregular speckles (two offset layers, no grid) ---------- */
.hp-speckle {
  background-color: var(--zs-surface-alt);
  background-image:
    radial-gradient(circle at 23% 37%, var(--hp-speckle) 0 1.4px, transparent 1.6px),
    radial-gradient(circle at 71% 64%, var(--hp-speckle) 0 1px, transparent 1.2px),
    radial-gradient(circle at 48% 12%, var(--hp-speckle) 0 1.8px, transparent 2px);
  background-size: 37px 41px, 53px 47px, 89px 79px;
}

/* ---------- Hero: photo on the right, text on an enamel card with a blue rim ----------
 * <section class="hp-hero" style="--hero-img: url(../img/havermoutpap/havermoutpap-hero-1600.webp)">
 *   <div class="zs-wrap"><div class="hp-hero__card">...</div></div><p class="hp-hero__credit">...</p></section>
 */
.hp-hero { position: relative; isolation: isolate; background: var(--zs-brand-deep) var(--hero-img) center right / cover no-repeat; padding: clamp(2.5rem, 7vw, 5.5rem) 0; }
.hp-hero__card { max-width: 34rem; background: var(--zs-surface); color: var(--zs-ink); border-radius: 22px; padding: clamp(1.3rem, 3vw, 2.1rem); border: 3px solid var(--hp-rim); box-shadow: 0 0 0 6px color-mix(in srgb, var(--zs-surface) 70%, transparent), 0 18px 40px -18px rgb(10 25 50 / .45); }
.hp-hero__card h1 { font-size: clamp(2.1rem, 2.6vw + 1.2rem, 3.4rem); line-height: 1.05; margin-bottom: .35em; }
.hp-hero__lead { font-size: 1.1rem; margin: 0; color: var(--zs-muted); }
.hp-hero__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.3rem; }
.hp-hero__kicker { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; margin-bottom: .9rem; }
.hp-hero__credit { position: absolute; left: 1rem; right: 1rem; bottom: .5rem; margin: 0; text-align: right; font-size: .72rem; color: #fff; text-shadow: 0 1px 2px rgb(0 0 0 / .7); }
.hp-hero__credit a { color: inherit; }
@media (max-width: 40rem) {
  .hp-hero { background-position: center top; background-size: 100% auto; background-color: var(--zs-bg); padding-top: calc(66vw); }
  .hp-hero__credit { top: .5rem; bottom: auto; }
}

/* ---------- Ratio cup: enamel measuring cup, oats at the bottom, liquid on top ----------
 * <figure class="hp-ratio" style="--oat: .33; --milk: .67">
 *   <div class="hp-ratio__cup" role="img" aria-label="1 deel havermout op 2 delen melk"><span class="hp-ratio__milk"></span><span class="hp-ratio__oat"></span></div>
 *   <figcaption>...<dl class="hp-ratio__legend">...</dl></figcaption></figure>
 * --oat + --milk = fill of the cup (0-1).
 */
.hp-ratios { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.hp-ratio { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.2rem; align-items: end; background: var(--zs-surface); border: 1px solid var(--zs-line); border-radius: 18px; padding: 1.1rem 1.2rem; }
.hp-ratio__cup { position: relative; width: 6.5rem; height: 9rem; border: 4px solid var(--hp-rim); border-top: 0; border-radius: 0 0 1.4rem 1.4rem; display: flex; flex-direction: column; justify-content: flex-end; background: repeating-linear-gradient(0deg, transparent 0 calc(25% - 2px), var(--hp-milk-line) calc(25% - 2px) 25%) right / .7rem 100% no-repeat, var(--zs-surface); }
.hp-ratio__cup::before { content: ""; position: absolute; top: 0; left: -4px; right: -4px; height: 6px; background: var(--hp-rim); border-radius: 3px; }
.hp-ratio__cup::after { content: ""; position: absolute; right: -1.15rem; top: 1.2rem; width: 1.1rem; height: 3.6rem; border: 4px solid var(--hp-rim); border-left: 0; border-radius: 0 1rem 1rem 0; }
.hp-ratio { overflow: visible; }
.hp-ratio__milk { height: calc(var(--milk) * 100%); background: var(--hp-milk); border-top: 2px solid var(--hp-milk-line); }
.hp-ratio__oat { height: calc(var(--oat) * 100%); border-radius: 0 0 1.1rem 1.1rem; background-color: var(--hp-oat); background-image: radial-gradient(ellipse 5px 3px at 30% 40%, color-mix(in srgb, var(--hp-oat) 70%, #fff) 0 90%, transparent), radial-gradient(ellipse 4px 3px at 70% 70%, color-mix(in srgb, var(--hp-oat) 75%, #000) 0 60%, transparent); background-size: 14px 10px, 17px 12px; }
.hp-ratio figcaption h3 { font-size: 1.2rem; margin-bottom: .25rem; }
.hp-ratio figcaption p { margin: 0; color: var(--zs-muted); font-size: .95rem; }
.hp-ratio__legend { margin: .8rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: .3rem .6rem; font-size: .92rem; align-items: center; }
.hp-ratio__legend dt { width: 1rem; height: 1rem; border-radius: 4px; border: 2px solid var(--hp-rim); }
.hp-ratio__legend dt.oat { background: var(--hp-oat); }
.hp-ratio__legend dt.milk { background: var(--hp-milk); }
.hp-ratio__legend dd { margin: 0; }
.hp-ratio__legend b { font-variant-numeric: tabular-nums; }

/* ---------- Recipe card: enamel rim on top, ingredients with dotted leaders, steps with timer chips ---------- */
.hp-recipe { background: var(--zs-surface); border: 3px solid var(--hp-rim); border-top-width: 10px; border-radius: 20px; padding: clamp(1.1rem, 3vw, 1.8rem); display: grid; gap: 1.6rem; }
@media (min-width: 52rem) { .hp-recipe { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); } }
.hp-recipe h2, .hp-recipe h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.hp-recipe__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.hp-ingr { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.hp-ingr li { display: flex; align-items: baseline; gap: .4rem; }
.hp-ingr li::after { content: ""; order: 1; flex: 1; border-bottom: 2px dotted var(--zs-line); transform: translateY(-.25rem); min-width: 1rem; }
.hp-ingr li b { order: 2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hp-ingr li small { display: block; color: var(--zs-muted); font-size: .8rem; }
.hp-steps { list-style: none; margin: 0; padding: 0; counter-reset: hp-step; display: grid; gap: .9rem; }
.hp-steps li { counter-increment: hp-step; display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap: .8rem; align-items: start; }
.hp-steps li::before { content: counter(hp-step); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--zs-brand); color: #fff; font: 700 1rem/1 var(--zs-font-display); box-shadow: inset 0 0 0 2px var(--zs-brand-deep); }
.hp-steps li.is-now::before { background: var(--hp-honey); color: #17243a; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--hp-honey) 70%, #000); }
.hp-steps p { margin: .25rem 0 0; }
.hp-timer { display: inline-flex; align-items: center; gap: .35rem; margin-top: .35rem; padding: .15rem .65rem .15rem .2rem; border-radius: 999px; background: var(--zs-surface-alt); font-size: .85rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.hp-timer .hp-picto { width: 1.5rem; height: 1.5rem; box-shadow: none; }

/* ---------- Wait strip: how long until it's ready (pap on the stove vs overnight in the fridge) ----------
 * <ul class="hp-wait"><li style="--w: 6%"><span class="hp-wait__name">...</span><span class="hp-wait__bar"></span><b>5 min</b></li></ul>
 * --w = bar length on a 0-100% scale (pick one scale per strip and say it in the caption).
 */
.hp-wait { list-style: none; margin: 0; padding: 1rem 1.1rem; display: grid; gap: .8rem; background: var(--zs-surface); border: 1px solid var(--zs-line); border-radius: 18px; }
.hp-wait li { display: grid; grid-template-columns: minmax(7.5rem, 11rem) minmax(0, 1fr) auto; gap: .8rem; align-items: center; }
.hp-wait__name { display: flex; align-items: center; gap: .55rem; font-weight: 600; }
.hp-wait__bar { height: .9rem; border-radius: 999px; background: var(--zs-surface-alt); position: relative; }
.hp-wait__bar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: max(var(--w), .9rem); border-radius: inherit; background: var(--zs-brand); }
.hp-wait li.is-night .hp-wait__bar::before { background: linear-gradient(90deg, var(--zs-brand-deep), var(--zs-brand)); }
.hp-wait b { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 30rem) { .hp-wait li { grid-template-columns: 1fr auto; } .hp-wait__bar { grid-column: 1 / -1; grid-row: 2; } }

/* ---------- Toppings: round dots in the topping's own colour, never the only cue (name always shown) ---------- */
.hp-toppings { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.hp-toppings li { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .8rem .3rem .35rem; border-radius: 999px; background: var(--zs-surface); border: 1px solid var(--zs-line); font-size: .92rem; }
.hp-toppings li::before { content: ""; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--c, var(--hp-berry)); box-shadow: inset 0 0 0 2px rgb(0 0 0 / .12); }

/* ---------- Kind cards ("soorten havermout"): blue rim on top, picto, cooking time + bite ---------- */
.hp-kinds { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.hp-kind { background: var(--zs-surface); border: 1px solid var(--zs-line); border-top: 6px solid var(--hp-rim); border-radius: 16px; padding: 1rem 1.1rem 1.1rem; }
.hp-kind__head { display: flex; align-items: center; gap: .7rem; margin-bottom: .5rem; }
.hp-kind h3 { font-size: 1.15rem; margin: 0; }
.hp-kind p { margin: 0; color: var(--zs-muted); font-size: .95rem; }
.hp-kind dl { margin: .8rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; font-size: .9rem; }
.hp-kind dt { font-weight: 700; }
.hp-kind dd { margin: 0; font-variant-numeric: tabular-nums; }

/* ---------- Photo tiles (zs-tile) get an enamel picto badge top-left ---------- */
.zs-tile .hp-picto { position: absolute; top: .8rem; left: .8rem; }

/* ---------- Note: plain kitchen tip (never a health claim). Honey edge. ---------- */
.hp-tip { display: flex; gap: .8rem; align-items: flex-start; background: color-mix(in srgb, var(--hp-honey) 22%, var(--zs-surface)); border-left: 5px solid var(--hp-honey); border-radius: 0 14px 14px 0; padding: .9rem 1rem; }
.hp-tip p { margin: 0; }

/* ---------- Source badges on the home (site addition 24-11, not yet in kit) ---------- */
.hp-sources { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.hp-sources li { display: flex; gap: .7rem; align-items: center; background: var(--zs-surface); border: 1px solid var(--zs-line); border-radius: 14px; padding: .8rem 1rem; }
.hp-sources li > span:last-child { display: grid; gap: .1rem; font-size: .9rem; color: var(--zs-muted); }
.hp-sources strong { color: var(--zs-ink); font-size: 1rem; }

/* ---------- Header logo mark A "Emaille kom" (kit d101f19), site addition ---------- */
.zs-logo:has(.hp-mark) { display: inline-flex; align-items: center; gap: .55rem; }
.hp-mark { width: 2rem; height: 2rem; flex: none; color: currentColor; }

/* ---------- Dark mode (rule 8) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hp-hero__card { box-shadow: 0 0 0 6px color-mix(in srgb, var(--zs-surface) 60%, transparent), 0 18px 40px -18px rgb(0 0 0 / .7); }
  :root:not([data-theme="light"]) .hp-tip { background: color-mix(in srgb, var(--hp-honey) 14%, var(--zs-surface)); }
}
:root[data-theme="dark"] .hp-tip { background: color-mix(in srgb, var(--hp-honey) 14%, var(--zs-surface)); }
