/*
 * erkendeopleidingen signature ("de keurmerkcontroleur").
 * Every course gets a register extract (.eo-extract) on white paper with a rubber-stamp imprint (.eo-stamp):
 * recogniser, code and valid-until straight from the DUO register, plus the date we checked it. The stamp is OUR
 * check of the register, never the recogniser's own logo or seal (do not use NVAO/NRTO/Cedeo logos).
 * Elements: picto tile, stamp (4 states), register extract, fact list, recogniser cards, search bar with filter chips,
 * result rows, steps, status legend, photo hero, source line.
 * Load after kit.css + themes/erkendeopleidingen.css. Pictograms: icons/erkendeopleidingen/sprite.svg (eo-*), fill="currentColor".
 */

h1, h2, h3, .zs-logo { font-family: var(--zs-font-display); font-weight: var(--zs-display-weight); letter-spacing: var(--zs-display-tracking); }
h2, h3 { color: var(--zs-brand-text); }
.eo-code { font-family: var(--zs-font-display); font-size: .94em; font-variant-numeric: tabular-nums lining-nums; font-weight: 600; white-space: nowrap; }
.zs-header .eo-picto { background: #fff; color: var(--zs-brand); }
.zs-footer .eo-source { color: inherit; opacity: .85; margin-top: .6rem; }
.zs-footer .eo-source .eo-icon { fill: currentColor; }

/* ---------- Picto tile: white pictogram on stamp blue ---------- */
.eo-picto { display: inline-grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem; border-radius: var(--zs-radius-sm); background: var(--zs-brand); color: var(--zs-on-brand); }
.eo-picto svg { width: 64%; height: 64%; fill: currentColor; }
.eo-picto--sm { width: 1.9rem; height: 1.9rem; }
.eo-picto--lg { width: 3.4rem; height: 3.4rem; border-radius: var(--zs-radius); }
.eo-icon { width: 1.25rem; height: 1.25rem; flex: none; fill: var(--zs-picto); }

/* ---------- The stamp: double-ruled frame, slight tilt, ink grain ---------- */
.eo-stamp {
  --ink: var(--eo-stamp);
  display: inline-grid; gap: .1rem; justify-items: center; text-align: center;
  padding: .55rem .9rem .5rem; color: var(--ink); background: transparent;
  border: 3px solid var(--ink); border-radius: 6px;
  box-shadow: inset 0 0 0 2px var(--eo-stamp-paper), inset 0 0 0 3.5px var(--ink);
  transform: rotate(-3deg); line-height: 1.15;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.9 1.75'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.9 1.75'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.eo-stamp__word { font: 800 1.05rem/1 var(--zs-font-display); text-transform: uppercase; letter-spacing: .12em; }
.eo-stamp__by { font: 600 .82rem/1.2 var(--zs-font-display); }
.eo-stamp__date { font: 600 .75rem/1.2 var(--zs-font-display); font-variant-numeric: tabular-nums; }
.eo-stamp[data-state="soon"] { --ink: var(--eo-soon-ink); }
.eo-stamp[data-state="gone"] { --ink: var(--eo-gone-ink); transform: rotate(2deg); }
.eo-stamp[data-state="none"] { --ink: var(--eo-none-ink); border-style: dashed; box-shadow: none; transform: none; }
.eo-stamp--sm { padding: .3rem .55rem .28rem; border-width: 2px; box-shadow: inset 0 0 0 1.5px var(--eo-stamp-paper), inset 0 0 0 2.5px var(--ink); }
.eo-stamp--sm .eo-stamp__word { font-size: .78rem; }
.eo-stamp--sm .eo-stamp__by, .eo-stamp--sm .eo-stamp__date { font-size: .7rem; }

/* ---------- Status pill (lists, legend) ---------- */
.eo-status { display: inline-flex; align-items: center; gap: .4rem; padding: .18rem .6rem .18rem .45rem; border-radius: 999px; font-size: .85rem; font-weight: 700; color: var(--eo-ok-ink); background: var(--eo-ok-bg); white-space: nowrap; }
.eo-status::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--eo-ok-dot); }
.eo-status[data-state="soon"] { color: var(--eo-soon-ink); background: var(--eo-soon-bg); }
.eo-status[data-state="soon"]::before { background: var(--eo-soon-dot); }
.eo-status[data-state="gone"] { color: var(--eo-gone-ink); background: var(--eo-gone-bg); }
.eo-status[data-state="gone"]::before { background: var(--eo-gone-dot); }
.eo-status[data-state="none"] { color: var(--eo-none-ink); background: var(--eo-none-bg); }
.eo-status[data-state="none"]::before { background: transparent; border: 2px solid var(--eo-none-dot); width: .5rem; height: .5rem; }

/* ---------- Register extract: white paper, ruled facts, stamp on the corner ---------- */
.eo-extract {
  position: relative; display: grid; gap: .9rem; padding: 1.15rem 1.2rem 1rem;
  color: var(--eo-stamp-paper-ink); background: var(--eo-stamp-paper);
  border: 1px solid var(--zs-line); border-radius: var(--zs-radius);
  box-shadow: 0 1px 0 rgb(22 32 43 / .04), 0 16px 36px rgb(22 32 43 / .12);
  /* the extract is always white paper: keep light-mode inks inside it, also in dark mode */
  --eo-stamp: #213f8f; --eo-ok-ink: #11603a; --eo-soon-ink: #7f4a00; --eo-gone-ink: #9b261c; --eo-none-ink: #4d5b66;
}
.eo-extract::before { /* the register's coloured top rule */
  content: ""; position: absolute; inset: 0 0 auto; height: 5px; border-radius: var(--zs-radius) var(--zs-radius) 0 0; background: var(--eo-stamp);
}
.eo-extract__kicker { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #4d5b66; }
.eo-extract__head { display: flex; gap: .8rem; align-items: flex-start; padding-right: 9.5rem; }
.eo-extract__head h3 { margin: 0; font-size: 1.2rem; line-height: 1.2; color: var(--eo-stamp-paper-ink); }
.eo-extract__head p { margin: .2rem 0 0; font-size: .92rem; color: #4d5b66; }
.eo-extract .eo-stamp { position: absolute; top: 1rem; right: 1rem; --eo-stamp-paper: #fff; }
.eo-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.2rem; margin: 0; }
.eo-facts > div { display: flex; gap: .55rem; align-items: flex-start; padding: .55rem 0; border-top: 1px solid #dfe5e4; }
.eo-facts .eo-icon { fill: var(--eo-stamp); margin-top: .1rem; }
.eo-facts dt { font-size: .78rem; color: #4d5b66; }
.eo-facts dd { margin: 0; font-weight: 600; }
.eo-extract__source { display: flex; gap: .45rem; align-items: center; margin: 0; padding-top: .6rem; border-top: 1px dashed #c9d3d1; font-size: .82rem; color: #4d5b66; }
.eo-extract__source .eo-icon { width: 1rem; height: 1rem; fill: #4d5b66; }
@media (max-width: 34rem) {
  .eo-extract__head { padding-right: 0; }
  .eo-extract .eo-stamp { position: static; justify-self: start; margin: -.2rem 0 0 .2rem; }
}

/* ---------- Hero: photo, search, extract ---------- */
.eo-hero { position: relative; isolation: isolate; color: #fff; background: var(--zs-brand-deep); }
.eo-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(100deg, rgb(16 26 52 / .94) 0%, rgb(16 26 52 / .82) 45%, rgb(16 26 52 / .35) 100%), var(--hero-img) center / cover no-repeat; }
.eo-hero__grid { display: grid; gap: 2rem; align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem); }
@media (min-width: 60rem) { .eo-hero__grid { grid-template-columns: 1.05fr .95fr; } }
.eo-hero h1 { color: #fff; font-size: clamp(2rem, 2.8vw + 1.1rem, 3.2rem); line-height: 1.1; margin: 0 0 1rem; }
.eo-hero__lead { font-size: 1.15rem; line-height: 1.55; max-width: 34rem; margin: 0 0 1.5rem; color: #e4e9f5; }
.eo-hero__credit { position: absolute; right: 1rem; bottom: .5rem; margin: 0; max-width: calc(100% - 2rem); font-size: .72rem; color: #fff; background: rgb(10 18 38 / .7); padding: .15rem .45rem; border-radius: 4px; }
@media (max-width: 59.99rem) { .eo-hero__credit { top: .5rem; bottom: auto; } .eo-hero__grid { padding-top: 3rem; } }

/* ---------- Search bar with recogniser chips ---------- */
.eo-search { display: grid; gap: .7rem; max-width: 36rem; }
.eo-search__row { display: flex; gap: .5rem; padding: .35rem; border-radius: calc(var(--zs-radius-btn) + 4px); background: #fff; box-shadow: 0 10px 30px rgb(0 0 0 / .25); }
.eo-search__row label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.eo-search__row input { flex: 1; min-width: 0; border: 0; padding: .7rem .8rem; font: inherit; font-size: 1.05rem; color: #16202b; background: transparent; border-radius: var(--zs-radius-btn); }
.eo-search__row input:focus-visible { outline: 2px solid var(--eo-stamp); outline-offset: 0; }
.eo-search__row button { display: inline-flex; align-items: center; gap: .4rem; border: 0; padding: .7rem 1rem; border-radius: var(--zs-radius-btn); font: 700 1rem/1 var(--zs-font-body); color: #fff; background: var(--zs-brand); cursor: pointer; }
.eo-search__row button svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }
.eo-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.eo-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .32rem .7rem .32rem .5rem; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--zs-ink); background: var(--zs-surface); border: 1px solid var(--zs-line); text-decoration: none; }
.eo-chip svg { width: 1.05rem; height: 1.05rem; fill: var(--zs-picto); }
.eo-chip[aria-pressed="true"] { color: #fff; background: var(--zs-brand); border-color: var(--zs-brand); }
.eo-chip[aria-pressed="true"] svg { fill: #fff; }
.eo-hero .eo-chip { color: #fff; background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .35); }
.eo-hero .eo-chip svg { fill: #fff; }

/* ---------- Recogniser cards ---------- */
.eo-recog { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); margin: 0; padding: 0; list-style: none; }
.eo-recog li { display: grid; gap: .5rem; align-content: start; padding: 1.1rem 1.15rem; background: var(--zs-surface); border: 1px solid var(--zs-line); border-radius: var(--zs-radius); }
.eo-recog__head { display: flex; gap: .7rem; align-items: center; }
.eo-recog h3 { margin: 0; font-size: 1.1rem; }
.eo-recog p { margin: 0; color: var(--zs-muted); }
.eo-recog .eo-code { color: var(--zs-ink); }

/* ---------- Result rows ---------- */
.eo-results { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.eo-result { display: grid; gap: .5rem 1rem; grid-template-columns: 1fr auto; align-items: center; padding: 1rem 1.1rem; background: var(--zs-surface); border: 1px solid var(--zs-line); border-left: 5px solid var(--eo-ok-dot); border-radius: var(--zs-radius-sm); }
.eo-result[data-state="soon"] { border-left-color: var(--eo-soon-dot); }
.eo-result[data-state="gone"] { border-left-color: var(--eo-gone-dot); }
.eo-result h3 { margin: 0; font-size: 1.08rem; }
.eo-result h3 a { color: inherit; text-decoration: none; }
.eo-result h3 a:hover { text-decoration: underline; }
.eo-result__by { margin: .15rem 0 0; color: var(--zs-muted); font-size: .92rem; }
.eo-result__meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin: 0; padding: 0; list-style: none; font-size: .9rem; color: var(--zs-muted); }
.eo-result__meta li { display: inline-flex; gap: .35rem; align-items: center; }
.eo-result__meta .eo-icon { width: 1.05rem; height: 1.05rem; }
@media (max-width: 34rem) { .eo-result { grid-template-columns: 1fr; } .eo-result .eo-status { justify-self: start; } }

/* ---------- Steps: from register to stamp ---------- */
.eo-steps { counter-reset: eo; display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 52rem) { .eo-steps { grid-template-columns: repeat(3, 1fr); } }
.eo-steps li { counter-increment: eo; position: relative; display: grid; gap: .55rem; align-content: start; padding: 1.2rem; background: var(--zs-surface); border: 1px solid var(--zs-line); border-radius: var(--zs-radius); }
.eo-steps li::after { content: "Stap " counter(eo); position: absolute; top: 1rem; right: 1rem; font: 600 .8rem/1 var(--zs-font-display); color: var(--zs-muted); }
.eo-steps h3 { margin: .2rem 0 0; font-size: 1.12rem; }
.eo-steps p { margin: 0; color: var(--zs-muted); }

/* ---------- Status legend ---------- */
.eo-legend { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); margin: 0; padding: 0; list-style: none; }
.eo-legend li { display: grid; gap: .5rem; align-content: start; padding: 1rem; background: var(--zs-surface); border: 1px solid var(--zs-line); border-radius: var(--zs-radius); }
.eo-legend .eo-stamp { justify-self: start; margin: .2rem 0 .3rem .2rem; --eo-stamp-paper: var(--zs-surface); }
.eo-legend p { margin: 0; color: var(--zs-muted); font-size: .95rem; }

/* ---------- Split (photo + text) and source line ---------- */
.eo-split { display: grid; gap: 1.5rem 2.5rem; align-items: center; }
@media (min-width: 52rem) { .eo-split { grid-template-columns: 1fr 1.1fr; } }
.eo-split figure { margin: 0; }
.eo-split img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--zs-radius); display: block; }
.eo-split figcaption { margin-top: .4rem; font-size: .78rem; color: var(--zs-muted); }
.eo-checks { display: grid; gap: .6rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.eo-checks li { display: flex; gap: .6rem; align-items: flex-start; }
.eo-checks .eo-icon { margin-top: .15rem; }
.eo-source { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; font-size: .88rem; color: var(--zs-muted); }
.eo-source .eo-icon { width: 1.05rem; height: 1.05rem; fill: var(--zs-muted); }

/* ---------- Photo tiles (on top of kit .zs-tile): picto tile on the photo corner ---------- */
.zs-tile .eo-picto { position: absolute; top: .75rem; left: .75rem; box-shadow: 0 0 0 2px rgb(255 255 255 / .85); }
.zs-tile::before { background: linear-gradient(to top, rgb(12 22 48 / .85), transparent 62%); }
