/* =====================================================================
   /begrippen (glossary). Loads after site.css + page-explainer.css
   (same hero + sheet + prose). Only the glossary parts live here.
   ===================================================================== */

/* "Op deze pagina": a paper card like live (small caps label + 2 x 2 links) */
.toc-block { margin: 32px 0 8px; padding: 20px 28px 10px; border-radius: 14px; background: var(--paper); }
.prose .toc-block h2 {
  margin: 0 0 4px; padding: 0; border: 0; font-family: var(--sans); font-size: 12.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.prose .toc-block ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; margin: 0; counter-reset: toc; }
.prose .toc-block li { padding: 0; margin: 0; border-top: 1px solid var(--line); counter-increment: toc; }
.prose .toc-block li::before { display: none; }
.prose .toc-block a {
  display: grid; grid-template-columns: 30px 1fr auto; align-items: baseline; gap: 4px; padding: 14px 0 13px;
  font-size: 16.5px; font-weight: 600; color: var(--navy); text-decoration: none; line-height: 1.35;
}
.prose .toc-block a::before { content: counter(toc, decimal-leading-zero); font: 700 13px/1 var(--display); color: var(--faint); font-variant-numeric: tabular-nums; }
.prose .toc-block a::after {
  content: ''; width: 16px; height: 16px; align-self: center; 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='M10 4v11M5.5 11 10 15.5 14.5 11'/%3E%3C/svg%3E");
}
.prose .toc-block a:hover { color: var(--accent); }
.prose .toc-block a:hover::after { transform: translateY(2px); opacity: 1; }

/* h2 anchor "#" */
.prose h2 .anchor-link { font-family: var(--sans); font-size: 18px; font-weight: 500; color: var(--faint); text-decoration: none; margin-left: 10px; opacity: 0; transition: opacity .15s; }
.prose h2:hover .anchor-link, .prose h2 .anchor-link:focus-visible { opacity: 1; }

/* glossary terms: callout cards like live (paper, navy left edge); the
   term runs into its text like live (compact, Codex 4) */
.term-card {
  margin: 0 0 10px; padding: 14px 22px 14px 20px; border-radius: 0 12px 12px 0; background: var(--paper);
  border-left: 3px solid var(--navy); font-size: 16.5px; line-height: 1.62;
}
p + .term-card { margin-top: 20px; }
.term-card:has(+ :not(.term-card)) { margin-bottom: 26px; }
.prose .term-card strong { font-weight: 700; color: var(--navy); }

/* land codes: two-column rows (score thresholds share page-explainer.css .score-list) */
.prose .codes-list { border-top: 2px solid var(--navy); margin-top: 8px; }
.prose .codes-list li {
  display: grid; grid-template-columns: 5.5em 1fr; align-items: baseline; gap: 16px;
  padding: 13px 0 12px; margin: 0; border-bottom: 1px solid var(--line);
}
.prose .codes-list li::before { display: none; }
.prose .codes-list strong { font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: .04em; color: var(--navy); font-variant-numeric: tabular-nums; }

/* back to top: clearly a link, like live (underline), navy (Codex 5) */
.prose a.back-to-top {
  font-size: 14.5px; font-weight: 600; color: var(--navy);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(15, 42, 74, .45);
}
.prose a.back-to-top:hover { color: var(--accent); text-decoration-color: currentColor; }

@media (max-width: 640px) {
  .prose .toc-block ul { grid-template-columns: 1fr; }
  .toc-block { padding: 18px 18px 8px; }
  .term-card { font-size: 15.5px; padding: 13px 16px; }
}
