/* =====================================================================
   Explainer pages (wat-is-*, wat-betekent-*) + base for /begrippen.
   Loads after site.css. A calm long-form article:
   navy page hero  ->  white "sheet" that hangs over the navy edge
   (device B, like the briefing card) with a notice-colour top edge
   (like the tender card in the app)  ->  saffraan offer band.

   Hero = site.css .page-hero.page-hero-article (+ .page-hero-inner, .page-title).
   Page parts: .article-sec > .wrap > .sheet[.notice-*] > .prose
   ===================================================================== */

/* ---------- Hero (overrides on site.css) ---------- */
/* no coloured bar above the h1 (round-2 check F10): the sheet edge
   already carries the notice colour; a saffraan bar was a 2nd saffraan field */
.page-hero-article .page-hero-inner::before { content: none; }

/* ---------- The sheet ---------- */
/* flow-root stops the sheet's negative margin from collapsing through
   .wrap + .article-sec (F1): the paper now starts at the hero's bottom
   and the sheet's top 112 px hang over the navy */
.article-sec { display: flow-root; background: var(--paper); padding-bottom: 120px; }
.sheet {
  position: relative; z-index: 2; max-width: 880px; margin: -112px auto 0;
  background: var(--white); border-radius: 18px; border-top: 4px solid var(--edge, var(--navy));
  box-shadow: 0 0 0 1px rgba(15, 42, 74, .06), 0 30px 60px -36px rgba(15, 42, 74, .35);
  padding: 60px 80px 72px;
}

/* ---------- Prose ---------- */
/* word-spacing: Public Sans has a narrow space; "ISO- of" read as "ISO-of" (F9) */
.prose { font-size: 18px; line-height: 1.72; color: var(--ink-soft); word-spacing: .07em; }
.prose p { margin: 0 0 20px; text-wrap: pretty; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(31, 78, 121, .4); transition: text-decoration-color .15s; }
.prose a:hover { text-decoration-color: currentColor; }

.breadcrumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 30px; letter-spacing: .01em; }
.prose .breadcrumbs a { color: var(--muted); text-decoration: none; }
.prose .breadcrumbs a:hover { color: var(--navy); }
.breadcrumbs .sep { margin: 0 8px; color: var(--faint); }

.prose .lead {
  font-size: 21px; line-height: 1.6; color: var(--ink); font-weight: 420; max-width: none; margin: 0 0 8px; letter-spacing: -0.003em;
}
.prose .lead strong { color: var(--navy); font-weight: 700; }

.prose h2 {
  font-family: var(--display); font-weight: 700; font-size: 31px; line-height: 1.14; letter-spacing: -0.022em; color: var(--navy);
  margin: 64px 0 16px; text-wrap: balance; word-spacing: normal; scroll-margin-top: calc(var(--nav-h) + 24px);
}
.prose h3 { font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.3; letter-spacing: -0.012em; color: var(--ink); margin: 36px 0 8px; word-spacing: normal; }
.prose h2 + h3 { margin-top: 24px; }

/* lists: small navy dot for ul (F4: a dash read as a typed en dash);
   ringed numerals for ol = real step sequences only (F5, below) */
.prose ul, .prose ol { list-style: none; margin: 0 0 26px; padding: 0; }
.prose li { position: relative; margin: 0 0 12px; }
.prose ul > li { padding-left: 24px; }
.prose ul > li::before { content: ''; position: absolute; left: 4px; top: calc(.86em - 3px); width: 6px; height: 6px; border-radius: 50%; background: var(--navy); }
.prose ol { counter-reset: step; }
.prose ol > li { counter-increment: step; padding-left: 50px; min-height: 32px; margin-bottom: 16px; }
.prose ol > li::before {
  content: counter(step); position: absolute; left: 0; top: .1em; width: 30px; height: 30px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--navy); color: var(--navy);
  font: 700 14.5px/30px var(--display); text-align: center; font-variant-numeric: tabular-nums;
}
/* F5: the three parts of one score are not steps: same dot as other lists */
[data-ta-section="begrippen.article"] .prose ol > li,
[data-ta-section="match-score.article"] .prose ol > li { padding-left: 24px; min-height: 0; margin-bottom: 12px; }
[data-ta-section="begrippen.article"] .prose ol > li::before,
[data-ta-section="match-score.article"] .prose ol > li::before {
  content: ''; left: 4px; top: calc(.86em - 3px); width: 6px; height: 6px; box-shadow: none; background: var(--navy);
}

/* score thresholds: one ruled two-column table on /begrippen and the
   match-score page (F6) */
.prose .score-list { border-top: 2px solid var(--navy); margin-top: 8px; }
.prose .score-list li {
  display: grid; grid-template-columns: 9.5em 1fr; align-items: baseline; gap: 16px;
  padding: 13px 0 12px; margin: 0; border-bottom: 1px solid var(--line);
}
.prose .score-list li::before { display: none; }
.prose .score-list strong { font-family: var(--display); font-size: 17px; font-weight: 700; color: var(--navy); word-spacing: normal; }

/* note: "Let op" */
.article-note {
  margin: 28px 0 8px; padding: 20px 24px 20px 22px; border-radius: 0 12px 12px 0; background: var(--paper);
  border-left: 3px solid var(--navy); font-size: 16.5px; line-height: 1.62; color: var(--ink-soft);
}
.article-note strong { color: var(--navy); }

/* do / don't (F7): two equal white cards, no fill or edge difference
   (no tab look). "Wel doen" in the app's good green (a fact that works
   for you, small, with words); "Niet doen" neutral ink, muted crosses. */
.do-dont-grid { --good: #0b6b5a; /* brand color-ta-good */ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0 12px; }
.do-dont-card { border-radius: 14px; padding: 24px 24px 12px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.prose .do-dont-card h3 { margin: 0 0 14px; font-size: 18px; color: var(--ink); }
.prose .do-dont-card.do h3 { color: var(--good); }
.prose .do-dont-card ul { margin: 0; }
.prose .do-dont-card li { font-size: 15.5px; line-height: 1.55; margin-bottom: 12px; padding-left: 28px; }
.prose .do-dont-card.do li::before { width: 10px; height: 5px; left: 3px; top: .5em; background: none; border-radius: 0; border-left: 2px solid var(--good); border-bottom: 2px solid var(--good); transform: rotate(-45deg); }
.prose .do-dont-card.dont li::before, .prose .do-dont-card.dont li::after { content: ''; position: absolute; left: 2px; top: .78em; width: 12px; height: 2px; border-radius: 2px; background: var(--muted); transform: rotate(45deg); }
.prose .do-dont-card.dont li::after { transform: rotate(-45deg); }

/* compare table: ledger with a 2 px navy rule, current row carries the notice edge */
.table-wrap { margin: 24px 0 40px; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; border-top: 2px solid var(--navy); }
.compare-table th {
  text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
  padding: 14px 16px 12px; border-bottom: 1px solid var(--line);
}
.compare-table td { text-align: left; padding: 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-soft); }
.compare-table th:first-child, .compare-table td:first-child { padding-left: 0; }
.compare-table td:first-child { font-weight: 650; color: var(--ink); white-space: nowrap; }
.compare-table td:first-child a { font-weight: 650; }
.compare-table td:first-child::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 10px; vertical-align: 1px; background: var(--dot, var(--faint)); }
.compare-table tr:has(a[href*="vooraankondiging"]) td:first-child, .notice-vooraankondiging .compare-table tr.current td:first-child { --dot: var(--n-voor-edge); }
.compare-table tr:has(a[href*="marktconsultatie"]) td:first-child, .notice-marktconsultatie .compare-table tr.current td:first-child { --dot: var(--n-mc-edge); }
.compare-table tr:has(a[href*="aanbesteding"]) td:first-child, .notice-aanbesteding .compare-table tr.current td:first-child { --dot: var(--n-aan-edge); }
.compare-table tr.current td { background: #f9f8f5; color: var(--ink); }
.compare-table tr.current td:first-child { padding-left: 16px; box-shadow: inset 4px 0 0 var(--edge, var(--navy)); }
.compare-table tr.current td:first-child::after { content: " (jij bent hier)"; display: block; margin: 2px 0 0 18px; font-size: 12.5px; font-weight: 600; font-style: normal; color: var(--ntext, var(--muted)); }
[data-ta-section="vooraankondiging.article"] .compare-table tr.current td:first-child::after { content: " ← je bent hier"; }

/* FAQ (static): question + answer cards like live, in paper on the white sheet */
.faq-block { margin: 20px 0 0; display: grid; gap: 12px; }
.prose .faq-item { padding: 22px 26px 22px; border-radius: 12px; background: var(--paper); }
.prose .faq-item h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.35; color: var(--navy); }
.prose .faq-item p { margin: 0; font-size: 16px; line-height: 1.65; }

/* related ("Gerelateerd" / "Eigen artikel per begrip"): like live, one
   column of plain links in a paper card (F8 / Codex 2); small arrow */
.related-block { margin: 56px 0 0; padding: 24px 28px 22px; border-radius: 14px; background: var(--paper); }
.prose .related-block h2 {
  margin: 0 0 10px; padding: 0; border: 0; font-size: 19px; line-height: 1.3; letter-spacing: -0.012em; color: var(--navy);
}
.prose .related-block ul { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.prose .related-block li { padding: 0; margin: 0; }
.prose .related-block li::before { display: none; }
.prose .related-block a {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 0;
  font-size: 16px; font-weight: 600; color: var(--navy); text-decoration: none; line-height: 1.4;
}
.prose .related-block a::after {
  content: ''; flex: 0 0 auto; width: 16px; height: 16px; opacity: .5; transition: transform .2s var(--ease), opacity .2s;
  background: no-repeat center/16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230F2A4A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10h11M11 5.5 15.5 10 11 14.5'/%3E%3C/svg%3E");
}
.prose .related-block a:hover { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(31, 78, 121, .4); }
.prose .related-block a:hover::after { transform: translateX(3px); opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .sheet { padding: 48px 48px 56px; }
}
@media (max-width: 640px) {
  .article-sec { padding-bottom: 64px; }
  /* F2: full-width sheet, text on the h1's left edge (x = --gut) */
  .sheet { margin: -72px calc(-1 * var(--gut)) 0; padding: 30px var(--gut) 40px; border-radius: 16px 16px 0 0; box-shadow: none; }
  .prose { font-size: 17px; line-height: 1.68; }
  .prose .lead { font-size: 18px; }
  .breadcrumbs { margin-bottom: 22px; }
  .prose h2 { font-size: 25px; margin-top: 48px; }
  .prose h3 { font-size: 19px; }
  .prose ol > li { padding-left: 44px; }
  .do-dont-grid { grid-template-columns: 1fr; }
  .do-dont-card { padding: 20px 20px 8px; }
  .article-note { padding: 16px 18px; font-size: 16px; }
  .related-block { margin: 44px 0 0; padding: 20px 20px 16px; }
  .prose .faq-item { padding: 18px 18px; }
  .prose .faq-item h3 { font-size: 17px; }
  .prose .faq-item p { font-size: 15.5px; }
  .prose .score-list li { grid-template-columns: 1fr; gap: 2px; }

  /* compare table: one block per type on a phone */
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table td { display: block; }
  .compare-table thead { display: none; }
  .compare-table tr { padding: 16px 0 14px; border-bottom: 1px solid var(--line); }
  .compare-table td { padding: 0; border: 0; font-size: 15px; }
  .compare-table td:first-child { margin-bottom: 4px; font-size: 16px; }
  .compare-table td + td { padding-left: 18px; }
  .compare-table td + td::before { content: attr(data-label); display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
  .compare-table tr.current { background: #f9f8f5; box-shadow: inset 4px 0 0 var(--edge, var(--navy)); padding-left: 14px; padding-right: 12px; border-radius: 0 10px 10px 0; }
  .compare-table tr.current td { background: none; }
  .compare-table tr.current td:first-child { padding-left: 0; box-shadow: none; }
}
