/* adopt.css - bridge for CURRENT pages: legacy variables follow the kit tokens (so light/dark follow the OS),
   in-text links get THE kit style, kit chrome is shielded from legacy tag rules. Prototype of the chapter-9 adopter. */
:root{--paper:var(--bg);--txt:var(--ink);--mut:var(--muted);--steel:var(--surface);--steel-line:var(--line);--ac-ink:var(--accent-text)}
/* in-text link colour: the accent text colour, LIGHTENED in dark mode because legacy dark cards (.step, .tekstblok) are lighter than the kit surface the token was tuned for (axe: watermarkninja dark) */
:root{--k-intext:var(--accent-text)}
:root[data-theme="dark"]{--k-intext:color-mix(in oklab,var(--accent-text) 62%,#fff)}
body{font-family:var(--font);background:var(--bg);color:var(--ink)}
/* in-text links: ONLY plain text links of the page content. Never the kit chrome, the shared widgets (.propas-*, .abo-*, feedback), the tool areas, ad
   containers or the cookie/consent layer (round 3: the unscoped rule made every footer link bold+amber+underlined and broke .propas-fijn a contrast). */
body :is(p,dd,td,figcaption,li:not(nav li)) a:not([class]):not(:is(.k-header,.k-footer,.k-noscript,.propas,[class*="propas-"],[class*="abo-"],[id^="abo"],[id^="propas"],[data-feedback-ui],.sponsor,.randvak,ins,[id^="google_ads"],[id^="aswift"],[class*="adsbygoogle"],[class*="cookie"],[class*="consent"],[id*="cookie"],[class^="fc-"],[class*=" fc-"],[role="dialog"],dialog,form,#tool,.minitool,.tool) *){color:var(--k-intext);font-weight:600;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.15em}
.k-header,.k-footer{margin:0;padding:0;max-width:none;width:auto;border-radius:0;box-shadow:none;float:none;display:block;font-size:var(--fs-2);line-height:var(--lh-body)}
.k-header{border-bottom:1px solid var(--line);background:var(--bg)}
.k-footer{background:var(--surface);color:var(--ink);margin-top:var(--sp-8)}
.k-header *,.k-footer *{font-family:var(--font)}
/* legacy `nav a{margin..}` / `nav li` rules must not widen the kit nav (320 px overflow on stemgrab) */
.k-header nav a,.k-header nav li,.k-footer nav a{margin:0}
.k-main-target{display:block;height:0;overflow:hidden}.k-main-target:focus{outline:none}
/* legacy dark variables (:root[data-theme=dark]{--ink;--err;--ok}, specificity 0,2,0) must not recolour the kit chrome: same values as tokens.css dark */
:root[data-theme="dark"] :is(.k-header,.k-footer,.k-skip){--ink:#f3f4f6;--err:#fca5a5;--ok:#6ee7b7}
