/* ============================================================================
   Resourcepagina's (/bronnen, /resources) — educatieve, op zichzelf staande
   bronnen. Sober en tekstgericht: dit zijn de pagina's waar externe media naar
   linken, dus ze mogen nergens als productpagina lezen.

   Prefix: rc- (resource). Bouwt op tokens.css + site.css.

   Onderaan staat de @media print-regel. De afdrukweergave is hier geen bijzaak:
   de meest waarschijnlijke echte gebruikswijze van de checklist is dat iemand ze
   afdrukt en meeneemt naar een leveranciersgesprek.
   ============================================================================ */

/* ============================================================
   Hero
   ============================================================ */
.rc-hero {
  padding-block: clamp(56px, 6vw, 92px) clamp(32px, 4vw, 52px);
  background:
    radial-gradient(ellipse 70% 80% at 8% 0%, color-mix(in oklch, var(--brand-navy) 10%, transparent), transparent 62%),
    var(--bg-app);
  border-bottom: 1px solid var(--border-subtle);
}
.rc-crumb {
  display: inline-flex; gap: 10px; align-items: center; flex-wrap: wrap;
  font-size: 13px; color: var(--fg-3);
  margin-bottom: 28px;
}
.rc-crumb a { color: var(--fg-3); }
.rc-crumb a:hover { color: var(--brand-navy); }
.rc-crumb svg { opacity: 0.5; flex: none; }

.rc-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 1.25rem + 2.4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--brand-navy-800);
  margin: 0 0 20px;
  max-width: 24ch;
  text-wrap: balance;
}
.rc-hero__lede {
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.1875rem);
  line-height: 1.62;
  color: var(--fg-2);
  max-width: 62ch;
  margin: 0;
}
.rc-hero__meta {
  display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px dashed var(--border-subtle);
  font-size: 13px;
  color: var(--fg-3);
}
.rc-hero__meta > span { display: inline-flex; align-items: center; gap: 7px; }
.rc-hero__meta svg { color: var(--brand-orange); flex: none; }

/* ============================================================
   Prose-secties
   ============================================================ */
.rc-section {
  padding-block: clamp(44px, 5vw, 72px);
  background: var(--bg-surface);
}
.rc-section--tint {
  background: var(--brand-navy-50);
  border-top: 1px solid var(--brand-navy-100);
  border-bottom: 1px solid var(--brand-navy-100);
}
.rc-section--app {
  background: var(--bg-app);
  border-top: 1px solid var(--border-subtle);
}
.rc-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.05rem + 1.5vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--brand-navy-800);
  max-width: 26ch;
  margin: 0 0 20px;
  text-wrap: balance;
  scroll-margin-top: 92px;
}
.rc-prose {
  max-width: 66ch;
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--fg-2);
}
.rc-prose p { margin: 0 0 16px; }
.rc-prose p:last-child { margin-bottom: 0; }
.rc-prose strong { color: var(--fg-1); font-weight: 600; }
.rc-prose a { color: var(--brand-navy); border-bottom: 1px solid color-mix(in oklch, var(--brand-navy) 32%, transparent); }
.rc-prose a:hover { color: var(--brand-navy-700); }

/* ============================================================
   Drie lagen (applicatiehosting / opslag / modelverwerking)
   ============================================================ */
.rc-layers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 32px 0;
}
@media (max-width: 900px) { .rc-layers { grid-template-columns: 1fr; } }

.rc-layer {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  padding: 22px;
  display: grid;
  gap: 10px;
  align-content: start;
  border-top: 3px solid var(--brand-navy-200);
}
.rc-layer:nth-child(3) { border-top-color: var(--brand-orange); }
.rc-layer__num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--brand-orange-700);
  background: var(--brand-orange-50);
  border: 1px solid color-mix(in oklch, var(--brand-orange) 16%, transparent);
  border-radius: var(--r-sm);
  padding: 2px 8px;
  justify-self: start;
}
.rc-layer h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--brand-navy-800);
  letter-spacing: -0.01em;
  margin: 0;
}
.rc-layer p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--fg-3);
  margin: 0;
}

/* De analogie krijgt bewust visueel gewicht: het is het ene beeld dat de lezer
   moet onthouden. */
.rc-analogy {
  margin: 32px 0 0;
  padding: 22px 26px;
  background: var(--bg-surface);
  border: 1px solid var(--brand-navy-100);
  border-left: 3px solid var(--brand-orange);
  border-radius: var(--r-lg);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--fg-2);
  max-width: 66ch;
}
.rc-analogy p { margin: 0 0 12px; }
.rc-analogy p:last-child { margin-bottom: 0; }

.rc-layers__close { margin-top: 28px; }

/* ============================================================
   De checklist
   ============================================================ */
.rc-list__head {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
}
.rc-list__intro { max-width: 62ch; }
.rc-list__intro p {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--fg-2);
  margin: 0;
}

/* Voortgangsblok: teller + knoppen. Plakt op desktop mee zodat de teller
   zichtbaar blijft terwijl je door de tien vragen scrolt. */
.rc-progress {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 78px;
  z-index: 3;
  margin-bottom: 22px;
}
.rc-progress__count {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-navy-800);
  white-space: nowrap;
}
.rc-progress__bar {
  flex: 1 1 140px;
  height: 6px;
  min-width: 120px;
  border-radius: 999px;
  background: var(--bg-sunken);
  overflow: hidden;
}
.rc-progress__fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--brand-orange);
  transition: width 220ms ease;
}
.rc-progress__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rc-progress__btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent;
  border: 1px solid var(--border-default);
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-2);
  cursor: pointer;
  transition: border-color 160ms, background 160ms, color 160ms;
}
.rc-progress__btn:hover {
  border-color: var(--brand-navy);
  color: var(--brand-navy);
  background: var(--brand-navy-50);
}
.rc-progress__btn svg { flex: none; }
.rc-progress__hint {
  flex-basis: 100%;
  font-size: 12.5px;
  color: var(--fg-4);
  margin: 0;
}

.rc-questions {
  display: grid;
  gap: 14px;
  counter-reset: rcq;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rc-q {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 16px;
  align-items: start;
  transition: border-color 180ms, box-shadow 180ms, background 180ms;
  scroll-margin-top: 150px;
  counter-increment: rcq;
}
.rc-q:hover { border-color: var(--brand-navy-200); box-shadow: var(--shadow-sm); }
.rc-q.is-done { background: var(--brand-navy-50); border-color: var(--brand-navy-100); }

.rc-q__check {
  appearance: none;
  -webkit-appearance: none;
  width: 24px; height: 24px;
  margin: 2px 0 0;
  flex: none;
  border: 1.5px solid var(--border-default);
  border-radius: 7px;
  background: var(--bg-surface);
  cursor: pointer;
  display: grid;
  place-content: center;
  grid-row: span 4;
  transition: background 160ms, border-color 160ms;
}
.rc-q__check::before {
  content: "";
  width: 12px; height: 12px;
  transform: scale(0);
  transition: transform 140ms ease-out;
  background: var(--bg-surface);
  clip-path: polygon(14% 44%, 0 60%, 39% 100%, 100% 18%, 84% 4%, 39% 68%);
}
.rc-q__check:checked {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
}
.rc-q__check:checked::before { transform: scale(1); }
.rc-q__check:focus-visible { outline: 2px solid var(--ring-focus); outline-offset: 2px; }

.rc-q__title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--brand-navy-800);
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin: 0;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.rc-q__title label { cursor: pointer; }
.rc-q__title::before {
  content: counter(rcq, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--brand-orange-700);
  flex: none;
  position: relative;
  top: -1px;
}
.rc-q__why {
  font-size: 15px;
  line-height: 1.62;
  color: var(--fg-2);
  margin: 8px 0 0;
  max-width: 68ch;
}
.rc-q__tell {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-3);
  max-width: 68ch;
}
.rc-q__tell b {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warning-fg);
  background: var(--warning-bg);
  border-radius: var(--r-sm);
  padding: 2px 7px;
  margin-right: 8px;
  position: relative;
  top: -1px;
}

/* Ankerlink per vraag: verschijnt bij hover/focus, zodat er naar een specifieke
   vraag gelinkt kan worden zonder de leesweergave te vervuilen. */
.rc-q__anchor {
  grid-column: 2;
  justify-self: start;
  font-size: 12px;
  color: var(--fg-4);
  border-bottom: 0;
  opacity: 0;
  transition: opacity 160ms, color 160ms;
  margin-top: 10px;
  font-family: var(--font-mono);
}
.rc-q:hover .rc-q__anchor,
.rc-q__anchor:focus-visible { opacity: 1; }
.rc-q__anchor:hover { color: var(--brand-navy); }
.rc-q:target { border-color: var(--brand-orange); box-shadow: 0 0 0 3px var(--brand-orange-100); }

@media (max-width: 560px) {
  .rc-q { padding: 16px; gap: 4px 12px; }
  .rc-progress { position: static; }
}

/* ============================================================
   Sectie 5 — goed en slecht antwoord
   ============================================================ */
.rc-answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
  max-width: 66ch;
}
@media (max-width: 760px) { .rc-answers { grid-template-columns: 1fr; } }

.rc-answer {
  border-radius: var(--r-lg);
  padding: 18px 20px;
  display: grid;
  gap: 10px;
  align-content: start;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}
.rc-answer__label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  justify-self: start;
}
.rc-answer p {
  font-size: 15px;
  line-height: 1.62;
  color: var(--fg-2);
  margin: 0;
}
.rc-answer--bad { background: var(--danger-bg); border-color: color-mix(in oklch, var(--danger) 22%, transparent); }
.rc-answer--bad .rc-answer__label { color: var(--danger-fg); }
.rc-answer--good { background: var(--success-bg); border-color: color-mix(in oklch, var(--success) 22%, transparent); }
.rc-answer--good .rc-answer__label { color: var(--success-fg); }
.rc-answer__close {
  margin-top: 22px;
  max-width: 66ch;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--fg-2);
}

/* ============================================================
   Afsluiter
   ============================================================ */
.rc-close__inner {
  max-width: 60ch;
  padding: clamp(26px, 3vw, 38px) clamp(22px, 3vw, 36px);
  background: var(--bg-surface);
  border: 1px solid var(--brand-navy-100);
  border-radius: var(--r-2xl);
  box-shadow: 0 18px 40px -28px rgba(37, 43, 72, 0.24);
}
.rc-close__inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.05rem + 1.1vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-navy-800);
  margin: 0 0 14px;
}
.rc-close__inner p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--fg-2);
  margin: 0 0 14px;
}
.rc-close__inner p:last-child { margin-bottom: 0; }
.rc-close__inner a { color: var(--brand-navy); border-bottom: 1px solid color-mix(in oklch, var(--brand-navy) 32%, transparent); }

.rc-disclaimer {
  margin-top: 20px;
  padding-left: 14px;
  border-left: 2px solid var(--brand-navy-200);
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-3);
  max-width: 62ch;
}

/* ============================================================
   Hub (/bronnen, /resources)
   ============================================================ */
.rc-hub__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.rc-hub__card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  border-top: 3px solid var(--brand-orange);
  color: inherit;
  transition: border-color 180ms, box-shadow 180ms, transform 180ms;
}
.rc-hub__card:hover {
  border-color: var(--brand-navy-200);
  border-top-color: var(--brand-orange);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.rc-hub__card h2 {
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--brand-navy-800);
  margin: 0;
}
.rc-hub__card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--fg-3);
  margin: 0;
}
.rc-hub__card span {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-navy);
  margin-top: 4px;
}
.rc-hub__card:hover span { color: var(--brand-orange-700); }

/* ============================================================================
   AFDRUKWEERGAVE
   Iemand neemt deze checklist mee naar een leveranciersgesprek. Alles wat op
   papier geen dienst doet, verdwijnt: navigatie, footer, taalbalk, knoppen,
   achtergronden en schaduwen. Wat overblijft: de tien vragen met een leeg
   vakje om ter plekke aan te vinken, plus de uitleg per vraag.
   ============================================================================ */
@media print {
  @page { margin: 14mm 14mm 16mm; }

  html, body {
    background: #fff !important;
    color: #000;
    font-size: 10.5pt;
  }

  .sr-nav,
  .sr-foot,
  .sr-langbar,
  .rc-progress__actions,
  .rc-progress__bar,
  .rc-progress__hint,
  .rc-q__anchor,
  .rc-crumb,
  .visually-hidden-focusable { display: none !important; }

  .container { max-width: none !important; width: auto !important; padding: 0 !important; }

  /* Reveal-animaties uitzetten: elementen die nog niet in beeld kwamen, mogen
     op papier niet onzichtbaar of verschoven zijn. */
  .sr-reveal, .sr-rise {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }

  .rc-hero,
  .rc-section,
  .rc-section--tint,
  .rc-section--app {
    background: #fff !important;
    border: 0 !important;
    padding-block: 0 0 10pt !important;
  }
  .rc-hero { padding-top: 0 !important; }

  .rc-hero__title {
    font-size: 20pt;
    color: #000;
    max-width: none;
    margin-bottom: 6pt;
  }
  .rc-hero__lede { font-size: 10.5pt; color: #222; max-width: none; }
  .rc-hero__meta { border-top: 1px solid #bbb; margin-top: 10pt; padding-top: 6pt; font-size: 8.5pt; color: #444; }
  .rc-hero__meta svg { display: none; }

  .rc-section__title { font-size: 14pt; color: #000; margin-bottom: 8pt; break-after: avoid; }
  .rc-prose, .rc-analogy, .rc-answer__close { color: #222; max-width: none; font-size: 10pt; }

  .rc-layers { grid-template-columns: repeat(3, 1fr); gap: 10pt; margin: 10pt 0; }
  .rc-layer { border: 1px solid #ccc; border-top-width: 1px; padding: 8pt; break-inside: avoid; }
  .rc-layer h3 { font-size: 10.5pt; color: #000; }
  .rc-layer p { font-size: 9pt; color: #333; }
  .rc-layer__num { border: 0; background: none; padding: 0; color: #666; }

  .rc-analogy { border: 0; border-left: 2pt solid #999; border-radius: 0; padding: 4pt 0 4pt 10pt; break-inside: avoid; }

  .rc-list__head { display: block; margin-bottom: 8pt; }
  .rc-progress {
    position: static;
    box-shadow: none;
    border: 0;
    border-bottom: 1px solid #bbb;
    border-radius: 0;
    padding: 0 0 6pt;
    margin-bottom: 10pt;
  }
  .rc-progress__count { font-size: 9pt; color: #444; }

  .rc-questions { gap: 0; }
  .rc-q {
    break-inside: avoid;
    border: 0;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    background: #fff !important;
    box-shadow: none !important;
    padding: 7pt 0;
    gap: 2pt 9pt;
  }
  /* Op papier is het vakje geen bediening meer, het is een vakje om met een pen
     aan te kruisen. Een aangevinkte staat op het scherm mag de afdruk niet
     dichtsmeren. */
  .rc-q__check {
    appearance: none !important;
    width: 12pt; height: 12pt;
    border: 1pt solid #333 !important;
    border-radius: 2pt;
    background: #fff !important;
    margin-top: 1pt;
  }
  .rc-q__check::before { display: none !important; }
  .rc-q__title { font-size: 11pt; color: #000; }
  .rc-q__why { font-size: 9.5pt; color: #222; margin-top: 3pt; max-width: none; }
  .rc-q__tell { font-size: 9pt; color: #444; margin-top: 3pt; max-width: none; }
  .rc-q__tell b { background: none; border: 0; padding: 0; color: #000; margin-right: 5pt; }

  .rc-answers { grid-template-columns: 1fr 1fr; gap: 10pt; max-width: none; }
  .rc-answer { border: 1px solid #ccc; background: #fff !important; padding: 8pt; break-inside: avoid; }
  .rc-answer__label { color: #000 !important; }
  .rc-answer p { font-size: 9.5pt; color: #222; }

  .rc-close__inner {
    border: 0;
    border-top: 1px solid #bbb;
    border-radius: 0;
    box-shadow: none;
    padding: 8pt 0 0;
    max-width: none;
  }
  .rc-close__inner h2 { font-size: 12pt; color: #000; }
  .rc-close__inner p { font-size: 9.5pt; color: #222; }
  .rc-disclaimer { font-size: 8.5pt; color: #444; max-width: none; }

  /* Bronvermelding op papier: zonder dit weet niemand waar het blad vandaan komt. */
  .rc-print-source { display: block !important; }
  a[href]::after { content: ""; }
}

/* De bronregel bestaat alleen op papier. */
.rc-print-source {
  display: none;
  margin-top: 10pt;
  padding-top: 6pt;
  border-top: 1px solid #bbb;
  font-size: 8.5pt;
  color: #444;
}
