/* viewer.css — W-1, de viewer onder de rij en de bewijsstrook (bouwplan webapp golf 6, §4, pakket W; richting R1 Kobalt).
   Geen nieuwe kleuren: alles uit merk.css (--m-*), met dezelfde waarden als terugval voor een pagina die html.m nog niet draagt.
   Onder bewijs nooit kobalt: het podium is een inktvlak, het papier wit. Echte foto's: object-fit contain, geen filter, geen masker,
   geen clip-path op de foto of een ouder (V6). Beweging alleen op opacity en transform; reduced motion = meteen.
   Breed (≥ 1180): venster | strook van 356 px, even hoog. 1024: één kolom, eerst de inhoud. 390: één kolom, geen paginaduimen,
   de fotoduimen als één rij onder het podium, de werkbalk alleen ‹ x/n › · volledig scherm · downloaden · sluiten. */

.w1 {
  --w1-inkt: var(--m-inkt, #0B0F17);
  --w1-kobalt: var(--m-kobalt, #2438D6);
  --w1-kobalt-licht: var(--m-kobalt-licht, #8C9BFF);
  --w1-wit: var(--m-wit, #FFFFFF);
  --w1-vlak: var(--m-licht, #F2F3F6);
  --w1-tekst: var(--m-inkt, #0B0F17);
  --w1-zacht: rgba(11, 15, 23, .62);
  --w1-lijn: rgba(11, 15, 23, .09);
  --w1-rand: rgba(11, 15, 23, .16);
  --w1-op-inkt: rgba(255, 255, 255, .86);
  --w1-op-inkt-zacht: rgba(255, 255, 255, .62);
  --w1-geel: color-mix(in srgb, var(--m-oranje-licht, #F2B04A) 58%, transparent);
  --w1-venster: var(--b-venster, clamp(500px, calc(100vh - 220px), 760px));
  --w1-strook: 356px;
  --w1-mono: var(--m-f-mono, "Vidimus Mono", ui-monospace, "SF Mono", Menlo, monospace);
  --w1-display: var(--m-f-display, "Instrument Sans", "Helvetica Neue", Arial, sans-serif);
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--w1-strook);
  grid-template-areas: "venster strook" "voet voet";
  align-items: start;
  gap: 16px;
  padding: 16px;
  margin: 0 0 12px;
  background: var(--w1-vlak);
  border-radius: 0 0 20px 20px;
  color: var(--w1-tekst);
  animation: w1-open var(--m-d-m, 300ms) var(--m-ease, cubic-bezier(.16, 1, .3, 1)) both;
}
@keyframes w1-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.w1 [hidden] { display: none !important; }
.w1-tr > td { padding: 0 !important; border: 0 !important; }
[data-w1-rid] { scroll-margin-top: var(--w1-boven, 12px); }
[data-w1-rid][data-w1-open] { box-shadow: inset 3px 0 0 var(--m-kobalt, #2438D6); }
.w1-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.w1-mono { font-family: var(--w1-mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.w1-ico { flex: none; }
/* html.m staat erbij: de basisregel van merk.css (html.m :is(button, a, [tabindex]):focus-visible, 0,3,1) mag de ring niet terugzetten */
.w1 :is(button, a, [tabindex]):focus-visible, html.m .w1 :is(button, a, [tabindex]):focus-visible { outline: 3px solid var(--w1-kobalt); outline-offset: 2px; border-radius: 8px; }

/* ── het venster: inkt, met de werkbalk en het podium ───────────── */
.w1-venster { container: w1venster / inline-size; grid-area: venster; min-width: 0; overflow: hidden; background: var(--w1-inkt); color: var(--w1-wit); border-radius: 16px; }
/* op het inktvlak de lichte kobalt (contrast ≥ 3:1 op #0B0F17, WCAG 1.4.11), niet de donkere van de merklaag */
.w1-venster :is(button, a, [tabindex]):focus-visible, html.m .w1-venster :is(button, a, [tabindex]):focus-visible { outline-color: var(--w1-kobalt-licht); }
html.m .w1-venster .w1-pdf:focus-visible, .w1-venster .w1-pdf:focus-visible { outline-offset: -3px; border-radius: 0; }
.w1-balk { display: flex; align-items: center; gap: 6px; min-height: 52px; padding: 8px 10px; border-bottom: 1px solid rgba(255, 255, 255, .1); flex-wrap: nowrap; }
.w1-naam { flex: none; display: inline-flex; align-items: center; gap: 8px; margin-right: 4px; font-size: 13.5px; white-space: nowrap; }
.w1-naam b { font-weight: 650; }
.w1-zoek { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px; border-radius: 8px; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .7); font-size: 13px; }
.w1-zoek input { width: 78px; min-width: 0; border: 0; outline: none; background: transparent; color: var(--w1-wit); font: inherit; }
.w1-zoek input::placeholder { color: rgba(255, 255, 255, .5); }
.w1-zoek:focus-within { box-shadow: 0 0 0 2px var(--w1-kobalt-licht); }
.w1-tref { font-size: 12px; white-space: nowrap; }
.w1-groep { display: inline-flex; align-items: center; gap: 2px; padding: 0 4px; font-size: 13px; color: var(--w1-op-inkt); }
.w1-teller, .w1-zoom { min-width: 42px; text-align: center; }
.w1-knopje { display: inline-grid; place-items: center; min-width: 30px; height: 32px; padding: 0 6px; border: 0; border-radius: 8px; background: transparent; color: var(--w1-wit); cursor: pointer;
  transition: transform var(--m-d-xs, 120ms) var(--m-ease, ease); }
.w1-knopje:hover { background: rgba(255, 255, 255, .12); }
.w1-knopje:active { transform: scale(.94); }
.w1-onbewerkt { margin-left: 6px; font-size: 12.5px; color: var(--w1-op-inkt-zacht); white-space: nowrap; }
.w1-vul { flex: 1; }

.w1-podium { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr); height: var(--w1-venster); }
.w1-podium[data-zonder-rail] { grid-template-columns: minmax(0, 1fr); }
.w1-rail { display: grid; align-content: start; gap: 12px; margin: 0; padding: 14px 12px; list-style: none; overflow-y: auto; scrollbar-width: thin; }
.w1-railgroep { padding-top: 2px; font-size: 11.5px; font-weight: 600; text-align: center; color: var(--w1-op-inkt-zacht); }
.w1-railgroep:not(:first-child) { padding-top: 8px; }
.w1-duimknop { display: grid; justify-items: center; gap: 6px; width: 100%; padding: 0; border: 0; background: none; color: var(--w1-op-inkt-zacht); font-size: 12px; cursor: pointer; }
.w1-duimknop[aria-current] { color: var(--w1-wit); }
.w1-duimknop[aria-current] :is(.w1-pagduim, .w1-fotoduim, .w1-anderduim) { outline: 2px solid var(--w1-kobalt-licht); outline-offset: 3px; }
.w1-pagduim { display: block; overflow: hidden; width: 60px; height: 84px; border-radius: 3px; background: var(--w1-wit); }
.w1-pagduim :is(canvas, img) { display: block; width: 100%; height: auto; }
.w1-fotoduim { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 4px; object-fit: cover; background: rgba(255, 255, 255, .08); color: var(--w1-op-inkt-zacht); }  /* een duim mag bijsnijden, het podium nooit */
.w1-anderduim { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 4px; background: rgba(255, 255, 255, .08); }
.w1-andernaam { max-width: 64px; overflow: hidden; text-overflow: ellipsis; }

.w1-buhne { position: relative; min-width: 0; min-height: 0; display: grid; }
.w1-pdf { overflow: auto; overscroll-behavior: contain; display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 28px 24px 48px; scrollbar-width: thin; outline-offset: -3px; }
.w1-blad { position: relative; flex: none; width: var(--w1-bw, 620px); height: var(--w1-bh, 877px); max-width: none; background: var(--w1-wit); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.w1-blad canvas { display: block; width: 100%; height: 100%; }
.w1-blad:not([data-klaar])::after { content: ""; position: absolute; inset: 18px; border-radius: 4px; background: repeating-linear-gradient(180deg, transparent 0 14px, rgba(11, 15, 23, .06) 14px 16px); }
.w1-marken { position: absolute; inset: 0; pointer-events: none; }
.w1-mark { position: absolute; left: var(--w1-l); top: var(--w1-t); width: var(--w1-w); height: var(--w1-h); border-radius: 2px; background: var(--w1-geel); mix-blend-mode: multiply; }
.w1-mark[data-nu] { box-shadow: 0 0 0 2px var(--w1-kobalt-licht); }
.w1-noot { position: absolute; left: 12px; bottom: 10px; z-index: 2; display: flex; align-items: center; gap: 8px; margin: 0; padding: 5px 9px; border-radius: 6px; font-size: 12px;
  background: rgba(11, 15, 23, .86); color: var(--w1-op-inkt); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.w1-noot-merk { width: 14px; height: 10px; border-radius: 2px; background: var(--w1-geel); }

/* foto: het podium, onbewerkt en nooit bijgesneden */
.w1-foto { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; margin: 0; padding: 14px 14px 12px 0; }
.w1-podium[data-zonder-rail] .w1-foto { padding-left: 14px; }
.w1-fotovlak { display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; align-items: center; min-height: 0; }
.w1-fotokader { position: relative; display: grid; place-items: center; height: 100%; min-height: 0; overflow: hidden; touch-action: pan-y; }
.w1-beeld { display: block; width: 100%; height: 100%; object-fit: contain; image-orientation: from-image; user-select: none;
  transform: translate(var(--w1-tx, 0), var(--w1-ty, 0)); transform-origin: var(--w1-ox, 50%) var(--w1-oy, 50%); transition: transform var(--m-d-s, 180ms) var(--m-ease, ease); cursor: zoom-in; }
.w1-video { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; background: #000; }
.w1-videostuk { padding: 14px; }
.w1-videostuk figcaption { padding-left: 4px; }
.w1-fotokader[data-zoom] { touch-action: none; }
.w1-fotokader[data-zoom] .w1-beeld { transform: translate(var(--w1-tx, 0), var(--w1-ty, 0)) scale(2); cursor: grab; transition: none; }
.w1-pijl { display: grid; place-items: center; justify-self: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: var(--w1-wit); cursor: pointer; }
.w1-pijl:hover { background: rgba(255, 255, 255, .22); }
.w1-enkel .w1-pijl { visibility: hidden; }
.w1-foto figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 12px 4px 0 52px; font-size: 14px; color: var(--w1-wit); }
.w1-foto figcaption > span { font-size: 12.5px; color: var(--w1-op-inkt-zacht); }
.w1-bijschrift { font-weight: 650; }

/* kaarten (ander bestand, leeg, meterstand, vertrouwelijk, gewist, fout) — op het inktvlak, rustig */
.w1-kaart { align-self: center; justify-self: center; display: grid; justify-items: start; gap: 12px; max-width: 460px; margin: 24px; padding: 22px 24px; border-radius: 14px;
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); color: var(--w1-wit); font-size: 14.5px; line-height: 1.45; }
.w1-kaart p { margin: 0; }
.w1-kaart p b { display: block; font-weight: 650; overflow-wrap: anywhere; }
.w1-kaart small { display: block; font-size: 12.5px; color: var(--w1-op-inkt-zacht); }
.w1-kaart-acties { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.w1-kaart-duim { width: 100%; max-height: 360px; object-fit: contain; border-radius: 4px; background: var(--w1-wit); }
.w1-velden { display: grid; gap: 6px; width: 100%; margin: 0; }
.w1-velden > div { display: grid; grid-template-columns: minmax(90px, 30%) minmax(0, 1fr); gap: 10px; font-size: 13.5px; }
.w1-velden dt { color: var(--w1-op-inkt-zacht); }
.w1-velden dd { margin: 0; overflow-wrap: anywhere; }
.w1-meetwaarde { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.w1-meetwaarde .w1-mono { font-size: 44px; line-height: 1; letter-spacing: -.03em; }
.w1-meetwaarde em { font-style: normal; color: var(--w1-op-inkt-zacht); }

/* ── knoppen ─────────────────────────────────────────────────── */
.w1-knop { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 14px; background: transparent; color: var(--w1-tekst);
  box-shadow: inset 0 0 0 1.5px var(--w1-rand); font-size: 14px; font-weight: 600; line-height: 1; font-family: inherit; text-decoration: none; cursor: pointer; }
.w1-knop:hover { background: var(--w1-vlak); }
.w1-knop:active, .w1-tekstknop:active { transform: scale(.97); }
.w1-knop-licht { color: var(--w1-wit); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4); }
.w1-knop-licht:hover { background: rgba(255, 255, 255, .1); }
.w1-tekstknop { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--w1-kobalt); font-size: 14px; font-weight: 600; line-height: 1.2; font-family: inherit;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; cursor: pointer; }
.w1-tekstknop-licht { color: var(--w1-kobalt-licht); }

/* ── de bewijsstrook ─────────────────────────────────────────── */
/* Twee delen: het lijf (titel tot feiten) scrolt; de voet (Controleren op /v, Technisch detail, inzage) staat vast onderaan,
   zodat de enige omlijnde knop nooit uit beeld schuift, hoe lang de stappen ook worden (§4.4 punt 8). */
.w1-strook { grid-area: strook; align-self: stretch; display: flex; flex-direction: column; max-height: calc(var(--w1-venster) + 53px); overflow: hidden; border-radius: 16px;
  background: var(--w1-wit); box-shadow: 0 0 0 1px rgba(11, 15, 23, .04), 0 14px 30px -22px rgba(11, 15, 23, .45); font-size: 14px; }
.w1-strook-lijf { flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 20px 20px 4px; }
.w1-strook-voet { flex: none; padding: 12px 20px 16px; border-top: 1px solid var(--w1-lijn); }
.w1-techniek[open] dl { max-height: min(300px, 36vh); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.w1-opnieuw { font-size: inherit; text-underline-offset: 3px; }
.w1-strook-titel { margin: 2px 0 10px; font-family: var(--w1-display); font-weight: 650; font-stretch: 82%; font-size: 26px; letter-spacing: -.035em; line-height: 1.02; overflow-wrap: anywhere; }
.w1-status { font-size: 14px; }
.w1-wie { margin: 10px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--w1-vlak); color: var(--w1-zacht); font-size: 12.5px; line-height: 1.4; }
.w1-wie b { font-weight: 650; color: var(--w1-tekst); }
.w1-zone { margin: 14px 0 6px; font-size: 12px; color: var(--w1-zacht); }
.w1-stappen { display: grid; margin: 0 0 12px; padding: 0; list-style: none; }
.w1-stappen li { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); padding-bottom: 11px; font-size: 13.5px; line-height: 1.35; }
.w1-stappen li::before { content: ""; position: absolute; left: 4px; top: 14px; bottom: -2px; width: 1px; background: var(--w1-rand); }
.w1-stappen li:last-child::before { display: none; }
.w1-stappen li > .m-punt { grid-column: 1; grid-row: 1 / span 3; margin-top: 4px; }
.w1-stappen b { grid-column: 2; font-size: 14px; font-weight: 650; }
.w1-stappen span, .w1-stappen small { grid-column: 2; color: var(--w1-zacht); }
.w1-stappen small { font-size: 12.5px; }
.w1-citaat { color: var(--w1-tekst); }
.w1-feiten { display: grid; gap: 10px; margin: 4px 0 12px; }
.w1-feiten > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; }
.w1-feiten dt { display: inline-flex; align-items: flex-start; gap: 6px; font-size: 13px; color: var(--w1-zacht); }
.w1-feiten dd { margin: 0; overflow-wrap: anywhere; }
.w1-feiten dd small { display: block; font-size: 12.5px; color: var(--w1-zacht); }
.w1-acties { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 8px; }
.w1-techniek { padding: 8px 0 2px; font-size: 13px; }
.w1-techniek summary { font-weight: 650; cursor: pointer; }
.w1-techniek dl { display: grid; gap: 8px; margin: 10px 0 0; }
.w1-techniek dt { font-size: 12px; color: var(--w1-zacht); }
.w1-techniek dd { margin: 0; font-size: 12.5px; overflow-wrap: anywhere; }
.w1-tregel { display: block; }
.w1-inzage { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; font-size: 12px; color: var(--w1-zacht); }
.w1-inzage[data-stand="nee"] { color: var(--m-oranje, #8A5A08); }
/* het punt zonder merklaag (een pagina die html.m nog niet draagt): dezelfde vorm als merk.css */
html:not(.m) .w1 [data-k="ok"] { --pk: var(--w1-kobalt); }
html:not(.m) .w1 [data-k="wacht"] { --pk: #8A5A08; }
html:not(.m) .w1 [data-k="fout"] { --pk: #A3200F; }
html:not(.m) .w1 [data-k="neutraal"] { --pk: rgba(11, 15, 23, .45); }
html:not(.m) .w1 .m-status { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--pk); }
html:not(.m) .w1 .m-punt { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 1.5px; box-shadow: inset 0 0 0 1.6px var(--pk); }
html:not(.m) .w1 [data-st="vol"] > .m-punt { background: var(--pk); }
html:not(.m) .w1 [data-st="gestippeld"] > .m-punt { box-shadow: none; outline: 1.5px dotted var(--pk); outline-offset: -1.5px; }
html:not(.m) .w1 [data-st="gesplitst"] > .m-punt { box-shadow: none; background: linear-gradient(90deg, var(--pk) 0 40%, transparent 40% 60%, var(--pk) 60% 100%); }

.w1-voet { grid-area: voet; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 2px 4px; font-size: 12.5px; color: var(--w1-zacht); }
.w1-voet kbd, .w1 kbd { display: inline-grid; place-items: center; min-width: 18px; height: 20px; margin-right: 3px; padding: 0 4px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--w1-rand);
  font: 500 11px/1 var(--w1-mono); color: var(--w1-zacht); }

/* ── laden ───────────────────────────────────────────────────── */
.w1-skelet { display: block; border-radius: 6px; background: rgba(11, 15, 23, .08); animation: w1-puls 1.2s ease-in-out infinite alternate; }
.w1-venster .w1-skelet { background: rgba(255, 255, 255, .1); }
.w1-skelet-naam { width: 180px; height: 16px; }
.w1-skelet-duim { width: 60px; height: 84px; margin: 0 auto; }
.w1-skelet-blad { justify-self: center; align-self: start; width: min(620px, calc(100% - 48px)); height: calc(100% - 28px); margin-top: 28px; }
.w1-skelet-foto { width: 70%; height: 70%; }
.w1-skelet-titel { width: 70%; height: 26px; margin-bottom: 16px; }
.w1-skelet-lijn { height: 12px; margin: 14px 0; }
.w1-skelet-lijn:nth-child(odd) { width: 82%; }
@keyframes w1-puls { from { opacity: .55; } to { opacity: 1; } }

/* ── volledig scherm ─────────────────────────────────────────── */
.w1-venster:fullscreen { border-radius: 0; }
.w1-venster:fullscreen .w1-podium, .w1-venster[data-vol] .w1-podium { height: calc(100vh - 53px); height: calc(100dvh - 53px); }
.w1-venster[data-vol] { position: fixed; inset: 0; z-index: 1000; border-radius: 0; }
html.w1-vol, html.w1-vol body { overflow: hidden; }

/* ── tussenmaat ──────────────────────────────────────────────── */
/* de werkbalk past altijd op één regel: wat minder nodig is, valt weg naargelang de breedte van het venster (niet van het scherm) */
@container w1venster (max-width: 820px) { .w1-passend { display: none; } }
@container w1venster (max-width: 600px) { .w1-groep.w1-breed, .w1-onbewerkt { display: none; } }
@media (max-width: 1380px) { .w1-passend { display: none; } }
@media (max-width: 1180px) {
  .w1 { grid-template-columns: minmax(0, 1fr); grid-template-areas: "venster" "strook" "voet"; }
  .w1-strook { max-height: none; overflow: visible; }
  .w1-strook-lijf { overflow: visible; }
}
/* ── telefoon ────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .w1 { gap: 10px; padding: 8px; }
  .w1-balk { gap: 2px; padding: 6px; }
  .w1-breed, .w1-naam, .w1-zoek, .w1-voet { display: none !important; }
  .w1-podium { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; height: auto; }
  .w1-buhne { grid-row: 1; height: min(560px, 72vh); }
  .w1-buhne[data-soort="kaart"], .w1-buhne[data-soort="ander"] { height: auto; min-height: 240px; }
  .w1-rail { grid-row: 2; display: flex; gap: 8px; padding: 8px; overflow-x: auto; overflow-y: hidden; }
  .w1-rail li:has(.w1-pagduim), .w1-railgroep { display: none; }
  .w1-fotoduim, .w1-anderduim { width: 48px; height: 48px; }
  .w1-pdf { padding: 12px 8px 40px; }
  .w1-foto { padding: 8px 8px 4px; }
  .w1-fotovlak { grid-template-columns: 36px minmax(0, 1fr) 36px; }
  .w1-pijl { width: 32px; height: 32px; }
  .w1-foto figcaption { display: grid; gap: 2px; padding-left: 4px; }
  .w1-noot { position: static; grid-row: 3; margin: 0 8px 8px; }
  .w1-strook-lijf { padding: 18px 16px 4px; }
  .w1-strook-voet { padding: 12px 16px 16px; }
  .w1-feiten > div { grid-template-columns: 84px minmax(0, 1fr); }
  .w1-kaart { margin: 12px; padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .w1, .w1-skelet { animation: none; }
  .w1-beeld, .w1-knopje { transition: none; }
}
