/* Ratio /voorwaarden, ported from docs/design/ratio-storefront/voorwaarden/v1-locked.html: page rules only. The legal
   frame (doc grid, index, phone index, "In het kort", print) is legal.css; the shell is shell.css.
   The Privacyverklaring frame without the cards: a terms page is read in sequence, so it is one column of articles,
   each a pressed rule across the full column, its heading, and its numbered leden. The lid number hangs in its own
   gutter outside the text edge, the way the call number hangs left of the entry on the catalogue card (01); the text
   wraps back to its own edge, not under the number. Body 19px; the leden held to about 90 characters a line; the
   article rules, the concept line and "In het kort" run to the frame edge. */

.doc.wrap{padding-top:16px}

/* ---------- The concept line: the status of the whole sheet, so it spans both columns, above the index and the
   title. A rubber stamp's frame (a closed hairline box, square corners) in cinnabar, the one place colour means
   something on this page: "not in force". The word "Concept." says it too, so colour is not the only carrier. ---------- */
.concept{grid-column:1 / -1;margin-bottom:18px;padding:8px 14px 9px;box-shadow:inset 0 0 0 1.5px var(--rs-cinnabar);font-size:18px;line-height:1.35}
.concept strong{font-weight:600;color:var(--rs-cinnabar)}

/* ---------- The index: the binder's numbered dividers (06). The article number hangs in its own small column: the
   number is the tab, the title is what is filed behind it. 16px entries, as the mockup sets them here. ---------- */
.toc > ul > li{font-size:16px;line-height:1.28;padding:4px 0 4px}
.toc a,.toc-m a{display:grid;grid-template-columns:1.55em minmax(0,1fr)}
.tn{color:var(--rs-ink-2)}
.toc a:hover,.toc a[aria-current="location"]{text-decoration:none}
.toc a:hover .tt{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
/* The active-section marker (legal.css, toc.js) under the title only, not the number. */
.toc a[aria-current="location"] .tt{text-decoration:underline;text-decoration-color:var(--rs-brass);text-decoration-thickness:2px;text-underline-offset:5px}

/* ---------- Head of the page ---------- */
.page-head .drift{margin:12px 0 4px}

/* ---------- In het kort: the disclaimer under the heading, before the points, so it is read first ---------- */
.kort{margin-top:18px}
.kort li{font-size:19px}

/* ---------- Articles: a pressed rule across the full column, the heading, the leden ---------- */
.art{margin-top:26px;padding-top:16px;scroll-margin-top:12px;box-shadow:inset 0 2px 0 var(--rs-lip),inset 0 3px 0 var(--rs-raised)}
.art-head{font-size:26px;line-height:1.15}
/* --measure: the running text of the leden, at most about 90 characters of 19px Spectral. --gutter: the hanging lid
   number. */
.leden{--measure:44.5rem;--gutter:2.1em;margin-top:8px;max-width:calc(var(--measure) + var(--gutter) + 16px);font-size:19px;line-height:1.47}
/* A lid: the number in the gutter, the text on its own edge. The 8px side padding gives the :target tint room around
   the text without moving the text edge (the negative margin takes it back). */
.lid{display:grid;grid-template-columns:var(--gutter) minmax(0,1fr);margin:0 -8px;padding:3px 8px;scroll-margin-top:16px}
.lid + .lid{margin-top:3px}
.lt strong{font-weight:600}
/* The lid number is its own link, so a reader can copy "artikel 5 lid 4" as an address. It reads as a number, not
   as a link, until it is hovered or focused. */
.nr{color:var(--rs-ink-2);text-decoration:none;justify-self:start}
.nr:hover{color:var(--rs-ink);text-decoration:underline;text-decoration-thickness:1px}
/* Article 6 lid 3: the four sub-items, one step in, numbered in the same gutter. */
.subs{margin-top:5px}
.subs .lid{margin-top:3px}
/* Landing on an anchor: a brief tint, played once, that fades back to the paper. The number stays brass after, so
   the reader can still find the lid they were sent to. No loop. */
@keyframes landed{0%,30%{background-color:var(--rs-tab-back);box-shadow:inset 0 0 0 1px var(--rs-lip)}100%{background-color:transparent;box-shadow:inset 0 0 0 1px transparent}}
.lid:target{animation:landed 2.6s ease-out 1 both}
.lid:target > .nr{color:var(--rs-brass);font-weight:600}
.end{margin-top:26px;padding-top:12px;box-shadow:inset 0 2px 0 var(--rs-lip),inset 0 3px 0 var(--rs-raised);font-size:17px;line-height:1.4;color:var(--rs-ink-2)}

.colophon{margin-top:40px}

/* ---------- Narrower screens ---------- */
@media (max-width:960px){
  .toc-m{margin-top:16px}
  .toc-m a .tt{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;text-decoration-color:var(--rs-lip)}
  .back{margin-top:8px}
}
@media (max-width:640px){
  .doc.wrap{padding-top:14px}
  .concept{margin-bottom:14px;font-size:17px;padding:8px 12px}
  .kort li{font-size:18px}
  .art{margin-top:22px;padding-top:14px}
  .art-head{font-size:22px}
  /* Phone: 18px text, a narrower gutter; still hanging, still on its own edge. */
  .leden{--gutter:1.6em;font-size:18px;line-height:1.45}
  .lid{margin:0 -6px;padding:3px 6px}
}
@media (prefers-reduced-motion:reduce){
  /* No fade (shell.css stops animations): the landed lid keeps a still tint instead. */
  .lid:target{background-color:var(--rs-tab-back)}
}

/* ---------- Print: the terms on A4, for the file or the client. The concept line and the version line printed; an
   article kept on one page where it fits, a heading never left at the foot of a page, a lid never split. ---------- */
@media print{
  body{font-size:10.5pt}
  .concept{-webkit-print-color-adjust:exact;print-color-adjust:exact;font-size:10.5pt;margin-bottom:10pt;padding:5pt 8pt}
  .version{font-size:10pt}
  .kort{margin-top:10pt;padding:9pt 12pt 4pt}
  .kort h2{font-size:14pt}
  .kort li{font-size:10pt;padding:5pt 0}
  .art{margin-top:12pt;padding-top:8pt;break-inside:avoid;page-break-inside:avoid}
  .art-head{font-size:13pt;break-after:avoid;page-break-after:avoid}
  .leden{max-width:none;font-size:10.5pt;line-height:1.4;margin-top:4pt}
  .lid{break-inside:avoid;page-break-inside:avoid;padding:1pt 0;margin:0}
  .lid + .lid{margin-top:2pt}
  .lid:target{animation:none;background:none}
  .end{font-size:10pt;margin-top:12pt}
  /* Link addresses print as in legal.css (path only); links whose text is already the address print as they are. */
  main a.url::after{content:none}
  body .colophon{margin-top:14pt}
}
