/* CASER site styles that inline styles cannot express: header and megamenu, breadcrumbs,
   rich-text links, the demo form, the house style mock. Tokens (--ink, --primary, ...) come from
   inc/theme.php via partials/head.php; the dark theme only swaps token values, so rules here need no
   theme selector (the house style mock is the one exception: its own colours are not site tokens). */

/* Fonts, self-hosted since 2026-11-04 (perf audit): the Latin woff2 files Google Fonts served for Bricolage
   Grotesque 500-800 (variable, opsz), IBM Plex Mono 400/500 and Instrument Sans 400-600 (variable), with
   Google's @font-face rules (font-display swap, Google's unicode-range). Every rendered page uses Latin only.
   Files in /assets/fonts/ carry the Google version in the name and are cached one year, immutable
   (.htaccess). The heading and body faces are preloaded in partials/head.php. */
@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-weight:500;font-stretch:100%;font-display:swap;src:url(/assets/fonts/bricolage-grotesque-v9-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-weight:600;font-stretch:100%;font-display:swap;src:url(/assets/fonts/bricolage-grotesque-v9-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-weight:700;font-stretch:100%;font-display:swap;src:url(/assets/fonts/bricolage-grotesque-v9-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-weight:800;font-stretch:100%;font-display:swap;src:url(/assets/fonts/bricolage-grotesque-v9-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/ibm-plex-mono-v20-latin-400.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/ibm-plex-mono-v20-latin-500.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Instrument Sans';font-style:normal;font-weight:400;font-stretch:100%;font-display:swap;src:url(/assets/fonts/instrument-sans-v4-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Instrument Sans';font-style:normal;font-weight:500;font-stretch:100%;font-display:swap;src:url(/assets/fonts/instrument-sans-v4-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Instrument Sans';font-style:normal;font-weight:600;font-stretch:100%;font-display:swap;src:url(/assets/fonts/instrument-sans-v4-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

/* ---------- Sticky footer ---------- */
/* The page wrapper (the unclassed div in partials/header.php around header, main and footer) fills at least
   the viewport and main grows, so the footer sits at the bottom on short pages; long pages are unchanged.
   Not position:fixed. Every child of main has its own padding, so main becoming a flex item (no margin
   collapse through it) changes nothing. Without :has() support the page simply keeps the old layout. */
body>div:has(>#main){display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
body>div>#main{flex:1 0 auto}

/* ---------- Header ---------- */
.site-header{position:sticky;top:0;z-index:100;background:linear-gradient(var(--hdrTop),var(--hdrTop)) 0 0/100% 3px no-repeat,var(--hdr);border-bottom:1px solid rgba(var(--ink-rgb),0.08);padding:0 clamp(16px,4vw,80px);font-family:'Instrument Sans',sans-serif}
.hdr{max-width:1240px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:82px}
.hdr-logo{display:flex;align-items:center;flex:none;min-height:44px}
.hdr-logo img{display:block;height:34px;width:auto}
/* Logos (partials/header.php, partials/footer.php): Teal Ledger's (the only palette since 2026-11-23); in the
   header the theme tokens pick the dark-letter or white-letter one. All have the same size, so no shift. */
.hdr-logo img,.ftr-logo img{display:none}
.hdr-logo .logo-teal.logo-on-light{display:var(--logoOnLight)}
.hdr-logo .logo-teal.logo-on-dark{display:var(--logoOnDark)}
.ftr-logo .logo-teal{display:block}
/* Footer (partials/footer.php): logo on its own row at the container's left edge, then one centered column:
   main links, "Overstappen van" row (NL only today), optional trademark note, copyright line. The logo row is
   separate so the main links stay centered on the full width (NL keeps them on one line on desktop).
   Link rows wrap and stay centered on narrow screens; the links keep their 44px touch height, so the row gap
   is small. */
.ftr-inner{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center}
.ftr-logo{display:flex;align-items:center;justify-content:flex-start;align-self:flex-start;margin-bottom:4px}
.ftr-nav{display:flex;flex-wrap:wrap;justify-content:center;gap:0 28px}
.ftr-switch{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:0 22px}
.ftr-note,.ftr-copy{max-width:100%}
@media (max-width:600px){.ftr-nav{gap:0 20px}.ftr-switch{gap:0 18px}}
.site-menu{display:flex;align-items:center;justify-content:space-between;gap:20px;flex:1 1 auto;min-width:0}
.main-nav{flex:1 1 auto;display:flex;justify-content:center;min-width:0}
.nav-list{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:2px}
.nav-item--dropdown{position:relative}
.nav-link,.nav-trigger{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 12px;border:0;border-radius:10px;background:none;font:inherit;font-size:15px;font-weight:500;color:var(--text);text-decoration:none;cursor:pointer;white-space:nowrap}
.nav-link:hover,.nav-trigger:hover,.nav-trigger[aria-expanded="true"]{color:var(--primary);background:var(--hover)}
.nav-link.is-active,.nav-trigger.is-active{color:var(--primary);font-weight:600}
.nav-link:focus-visible,.nav-trigger:focus-visible,.nav-entry:focus-visible,.nav-promo:focus-visible,.nav-hub:focus-visible,.hdr-cta:focus-visible,.lang-picker a:focus-visible,.menu-toggle:focus-visible,.hdr-logo:focus-visible,.theme-toggle:focus-visible,.palette-toggle:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.nav-chevron{transition:transform .15s ease;flex:none}
/* Split item ('top_link'): the label links to the hub, the chevron button opens the panel; hover/focus open it on desktop
   (chevron hidden on desktops with a mouse, see below). */
.nav-split{display:flex;align-items:center;border-radius:10px}
.nav-split:hover,.nav-item.is-open .nav-split{background:var(--hover)}
.nav-split .nav-link,.nav-split .nav-trigger,.nav-split .nav-link:hover,.nav-split .nav-trigger:hover,.nav-split .nav-trigger[aria-expanded="true"]{background:none}
.nav-split .nav-link{padding-right:2px}
.nav-item.is-open .nav-top{color:var(--primary)}
.nav-split .nav-trigger--toggle{padding:0 10px 0 4px}
.nav-trigger[aria-expanded="true"] .nav-chevron{transform:rotate(180deg)}

/* Panels: out of flow, so opening one never shifts the layout. The megamenu spans the
   header (the sticky header is its containing block); the dropdown hangs under its trigger. */
.nav-panel{display:none;position:absolute;top:100%;z-index:110;background:var(--panel);color:var(--ink);text-align:left}
.nav-panel--mega{left:0;right:0;border-top:1px solid rgba(var(--ink-rgb),0.08);border-bottom:1px solid rgba(var(--ink-rgb),0.08);box-shadow:0 30px 60px rgba(var(--deep-rgb),0.14);padding:32px clamp(16px,4vw,80px) 24px}
.nav-panel--dropdown{left:0;min-width:320px;margin-top:6px;border:1px solid rgba(var(--ink-rgb),0.08);border-radius:16px;box-shadow:0 24px 48px rgba(var(--deep-rgb),0.14);padding:12px}
.nav-panel--mega>.nav-panel-inner{max-width:1240px;margin:0 auto}
.nav-cols{display:flex;gap:32px;align-items:stretch}
.nav-col{flex:1 1 0;min-width:0}
/* Kennis and Prijzen as a megamenu (NL): one heading, the entries in three columns on the Oplossingen column grid,
   the promo tile on the right. */
.nav-panel--mega .nav-col--resources,.nav-panel--mega .nav-col--value{flex-grow:3}
.nav-panel--mega .nav-col--resources .nav-sublist,.nav-panel--mega .nav-col--value .nav-sublist{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px 32px}
.nav-panel--mega .nav-col--cases .nav-sublist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 32px}
.nav-heading{margin:0 0 10px;padding:0 12px;font-family:'IBM Plex Mono',monospace;font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--primary)}
.nav-sublist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.nav-entry{display:flex;flex-direction:column;gap:3px;padding:10px 12px;border-radius:12px;text-decoration:none;color:var(--ink);min-height:44px;box-sizing:border-box}
.nav-entry:hover{background:var(--hover);color:var(--ink)}
.nav-entry[aria-current="page"]{background:var(--current)}
/* Featured entry (inc/nav.php 'featured', AI in het dossier): the same --current background as the current page, no
   padding or colour change, so it lines up with its column. .nav-entry.nav-entry--featured keeps it on hover too. */
.nav-entry.nav-entry--featured{background:var(--current)}
.nav-entry-title{font-weight:600;font-size:15px;line-height:1.3}
.nav-entry:hover .nav-entry-title{color:var(--primary)}
.nav-entry-desc{font-size:13.5px;line-height:1.4;color:var(--muted)}
.nav-promo{flex:0 0 260px;display:flex;flex-direction:column;gap:8px;background:var(--ink);color:#fff;border-radius:16px;padding:22px;text-decoration:none;box-sizing:border-box}
.nav-promo:hover{color:#fff;background:var(--deep)}
.nav-promo-eyebrow{font-family:'IBM Plex Mono',monospace;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--signal)}
.nav-promo-title{font-family:'Bricolage Grotesque',sans-serif;font-weight:700;font-size:21px;line-height:1.15}
.nav-promo-text{font-size:14px;line-height:1.5;color:var(--onBody)}
.nav-promo-cta{margin-top:auto;padding-top:8px;display:inline-flex;align-items:center;gap:8px;font-weight:600;font-size:14px;color:var(--signal)}
.nav-hub{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin:12px 12px 0;font-weight:600;font-size:14px;color:var(--primary);text-decoration:none}
.nav-hub:hover{color:var(--ink)}

/* Picker, theme and colour toggles, CTA */
.menu-actions{display:flex;align-items:center;gap:16px;flex:none}
.menu-prefs{display:flex;align-items:center;gap:6px}
.theme-toggle,.palette-toggle{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:1px solid rgba(var(--ink-rgb),0.14);border-radius:10px;background:none;color:var(--text);cursor:pointer}
.theme-toggle:hover,.palette-toggle:hover{color:var(--primary);background:var(--hover)}
.theme-toggle .icon-moon{display:var(--iconMoon)}
.theme-toggle .icon-sun{display:var(--iconSun)}
html:not(.js) .theme-toggle,html:not(.js) .palette-toggle{display:none}
.lang-picker{display:flex;align-items:center;font-family:'IBM Plex Mono',monospace;font-size:13px;font-weight:500}
.lang-picker a{text-decoration:none;min-height:44px;display:inline-flex;align-items:center;padding:0 3px;color:var(--text)}
.lang-picker a:hover{color:var(--primary)}
.lang-picker a span{padding:4px 6px;border-radius:6px}
.lang-picker a[aria-current="true"] span{background:var(--current);color:var(--ink);font-weight:600}
.lang-sep{color:rgba(var(--ink-rgb),0.25)}
.hdr-cta{background:var(--cta);color:var(--ctaInk);font-weight:600;font-size:15px;padding:12px 20px;border-radius:10px;border:1px solid rgba(var(--ink-rgb),0.12);text-decoration:none;min-height:44px;box-sizing:border-box;display:inline-flex;align-items:center;white-space:nowrap}
.hdr-cta:hover{color:var(--ctaInk);filter:brightness(0.96)}
.menu-toggle{display:none}

/* JS controls the panels. Without JS, hover and keyboard focus still open them. */
.js .nav-trigger[aria-expanded="true"]+.nav-panel,.js .nav-item.is-open>.nav-panel{display:block}
html:not(.js) .nav-item:hover>.nav-panel,html:not(.js) .nav-item:focus-within>.nav-panel{display:block}

/* Tight desktop widths: same layout, smaller gaps. */
@media (min-width:900px) and (max-width:1120px){
  .hdr,.site-menu{gap:12px}
  .nav-link,.nav-trigger{padding:0 8px;font-size:14.5px}
  .nav-split .nav-link{padding-right:0}
  .nav-split .nav-trigger--toggle{padding:0 8px 0 2px}
  .menu-actions{gap:10px}
  .hdr-cta{padding:10px 14px;font-size:14.5px}
  .nav-promo{flex-basis:220px}
  .nav-panel--mega .nav-col--resources .nav-sublist,.nav-panel--mega .nav-col--value .nav-sublist,.nav-panel--mega .nav-col--cases .nav-sublist{column-gap:16px}
  .nav-cols{gap:16px}
}
/* Narrowest desktop band: a little less padding so the logo, nav, picker, toggles and CTA stay on one line. */
@media (min-width:900px) and (max-width:999.98px){
  .hdr,.site-menu{gap:10px}
  .nav-link,.nav-trigger{padding:0 6px}
  .nav-split .nav-link{padding-right:0}
  .nav-split .nav-trigger--toggle{padding:0 6px 0 0}
  .menu-prefs{gap:2px}
  .theme-toggle,.palette-toggle{border-color:transparent}
  .hdr-logo img{height:28px}
}

/* ---------- Cookie banner (inc/consent.php) ---------- */
/* Bottom right, under the header (z-index 100) and its menus, so it never covers the nav; full width on phones. */
.consent{position:fixed;z-index:90;right:16px;bottom:16px;width:min(420px,calc(100vw - 32px));box-sizing:border-box;background:var(--panel);color:var(--text);border:1px solid rgba(var(--ink-rgb),0.12);border-radius:16px;box-shadow:0 24px 48px rgba(var(--deep-rgb),0.18);padding:18px 20px;font-family:'Instrument Sans',sans-serif;font-size:15px;line-height:1.5}
.consent[hidden]{display:none}
.consent p{margin:0 0 14px}
.consent p b{display:block;margin-bottom:4px;font-family:'Bricolage Grotesque',sans-serif;font-size:18px;font-weight:700;color:var(--ink)}
.consent-btns{display:flex;gap:10px;flex-wrap:wrap}
.consent-btns button{min-height:44px;padding:0 20px;border-radius:10px;font:inherit;font-weight:600;cursor:pointer}
.consent-yes{background:var(--cta);color:var(--ctaInk);border:1px solid rgba(var(--ink-rgb),0.12)}
.consent-yes:hover{filter:brightness(0.96)}
.consent-no{background:none;color:var(--ink);border:1px solid rgba(var(--ink-rgb),0.24)}
.consent-no:hover{background:var(--hover)}
.consent-btns button:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
@media (max-width:600px){
  .consent{left:0;right:0;bottom:0;width:auto;border-radius:16px 16px 0 0;border-width:1px 0 0;padding-bottom:calc(16px + env(safe-area-inset-bottom))}
  .consent-btns>*{flex:1}
}

/* ---------- Mobile: hamburger and full-height panel ---------- */
/* Desktop with a mouse: no chevrons next to the top-level labels. Hover opens a panel; keyboard focus anywhere in the
   item opens it too (nav.js, like :focus-within) and Escape closes it. The split toggle stays in the DOM for its
   aria-expanded state but is visually hidden; when it has keyboard focus it shows only a focus ring around the item.
   Equal padding on both sides of every label replaces the old label + chevron spacing. Touch screens of 900px+ keep
   the visible chevron (no hover there), as does the menu below 900px. */
@media (min-width:900px) and (hover:hover) and (pointer:fine){
  .nav-chevron{display:none}
  .nav-link,.nav-trigger{padding:0 14px}
  .nav-split{position:relative}
  .nav-split .nav-link{padding-right:14px}
  .nav-split .nav-trigger--toggle{position:absolute;top:0;left:0;width:1px;height:1px;min-height:0;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
  .nav-split .nav-trigger--toggle:focus-visible{width:100%;height:100%;margin:0;clip:auto;clip-path:none;overflow:visible;pointer-events:none;border-radius:10px}
}
@media (min-width:900px) and (max-width:1120px) and (hover:hover) and (pointer:fine){
  .nav-link,.nav-trigger,.nav-split .nav-link{padding:0 10px}
}
@media (min-width:900px) and (max-width:999.98px) and (hover:hover) and (pointer:fine){
  .nav-link,.nav-trigger,.nav-split .nav-link{padding:0 8px}
}

@media (max-width:899.98px){
  .hdr{min-height:68px}
  .hdr-logo img{height:30px}
  .menu-toggle{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;border:1px solid rgba(var(--ink-rgb),0.14);border-radius:10px;background:var(--hdr);color:var(--ink);font:inherit;font-size:15px;font-weight:600;cursor:pointer}
  .menu-toggle .menu-icon-close{display:none}
  .menu-toggle[aria-expanded="true"] .menu-icon-open{display:none}
  .menu-toggle[aria-expanded="true"] .menu-icon-close{display:inline}
  .js .site-menu{display:none;position:fixed;left:0;right:0;top:var(--hdr-h,69px);bottom:0;z-index:120;background:var(--hdr);overflow-y:auto;overscroll-behavior:contain;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;padding:8px clamp(16px,4vw,40px) 32px;box-sizing:border-box;border-top:1px solid rgba(var(--ink-rgb),0.08)}
  .js .menu-toggle[aria-expanded="true"]+.site-menu{display:flex}
  html:not(.js) .menu-toggle{display:none}
  html:not(.js) .hdr{flex-wrap:wrap}
  html:not(.js) .site-menu{flex-direction:column;align-items:stretch;width:100%;padding-bottom:16px}
  .main-nav{display:block;flex:none}
  .nav-list{flex-direction:column;align-items:stretch;gap:0}
  .nav-item{border-bottom:1px solid rgba(var(--ink-rgb),0.1)}
  .nav-link,.nav-trigger{width:100%;justify-content:space-between;min-height:56px;padding:0 4px;font-size:18px;font-weight:600;color:var(--ink);border-radius:0}
  .nav-link:hover,.nav-trigger:hover,.nav-trigger[aria-expanded="true"]{background:none}
  .nav-split:hover,.nav-item.is-open .nav-split{background:none}
  .nav-split .nav-link{flex:1 1 auto;width:auto;min-width:0}
  .nav-split .nav-trigger--toggle{flex:none;width:56px;padding:0;justify-content:center;border-left:1px solid rgba(var(--ink-rgb),0.1)}
  .nav-panel,.nav-panel--mega,.nav-panel--dropdown{position:static;box-shadow:none;border:0;border-radius:0;padding:0 0 16px;margin:0;min-width:0}
  .nav-cols{flex-direction:column;gap:18px}
  .nav-panel--mega .nav-col--resources .nav-sublist,.nav-panel--mega .nav-col--value .nav-sublist,.nav-panel--mega .nav-col--cases .nav-sublist{display:flex}
  .nav-heading{padding:0 4px}
  .nav-entry{padding:10px 4px}
  .nav-promo{flex:none}
  .nav-hub{margin:8px 4px 0}
  .menu-actions{flex-direction:column;align-items:stretch;gap:16px;padding-top:24px}
  .menu-prefs{justify-content:center;gap:16px}
  .lang-picker{justify-content:center;font-size:15px}
  .hdr-cta{justify-content:center;min-height:52px;font-size:17px}
  html.menu-open,html.menu-open body{overflow:hidden}
}

@media (prefers-reduced-motion:reduce){.nav-chevron{transition:none}}

/* ---------- Breadcrumbs (in the dark hero) ---------- */
.crumbs ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px;font-family:'IBM Plex Mono',monospace;font-size:13px;color:var(--onMuted)}
.crumbs li{display:inline-flex;align-items:center;gap:8px}
.crumbs li+li::before{content:"/";color:rgba(var(--onMuted-rgb),0.6)}
.crumbs a{color:var(--onMuted);text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
.crumbs a:hover{color:#fff;text-decoration:underline}
.crumbs [aria-current="page"]{color:var(--wash)}

/* ---------- Links inside running copy ---------- */
.rich a{color:var(--primary);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.rich a:hover{color:var(--ink)}
.src-link,.rich a.src-link{color:inherit;text-decoration:none}
.src-link:hover,.src-link:focus-visible,.rich a.src-link:hover,.rich a.src-link:focus-visible{color:inherit;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.src-link:focus-visible{outline:2px solid var(--primary);outline-offset:2px;border-radius:2px}
.rich-dark a{color:var(--signal)}
.rich-dark a:hover{color:#fff}

/* ---------- Demo form ---------- */
.lead-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.lead-form .full{grid-column:1/-1}
.lead-form label{display:block;font-weight:600;font-size:15px;margin-bottom:6px;color:var(--ink)}
.lead-form .opt{font-weight:400;color:var(--muted)}
.lead-form input,.lead-form textarea{width:100%;box-sizing:border-box;font:inherit;font-size:16px;color:var(--ink);background:var(--page);border:1.5px solid rgba(var(--ink-rgb),0.2);border-radius:10px;padding:12px 14px;min-height:48px}
/* Message box grows with its text (field-sizing), 3 to 10 lines; +27px is the padding and border (border-box).
   Without field-sizing it keeps rows="5"; without lh units, min-height 120px. */
.lead-form textarea{min-height:120px;resize:vertical;field-sizing:content;min-block-size:calc(3lh + 27px);max-block-size:calc(10lh + 27px)}
.lead-form input:focus,.lead-form textarea:focus{outline:2px solid var(--primary);outline-offset:1px;border-color:var(--primary)}
/* Server errors (aria-invalid from handle_lead()) and browser checks once the visitor has interacted (:user-invalid;
   /assets/js/lead-form.js keeps aria-invalid in step). Separate rules: an old browser drops only the second. */
.lead-form [aria-invalid="true"]{border-color:var(--error)}
.lead-form :is(input,textarea):user-invalid{border-color:var(--error)}
.lead-form .field-error{margin:6px 0 0;font-size:14px;color:var(--error)}
.lead-form button{font:inherit;cursor:pointer}
.hp{position:absolute!important;left:-10000px!important;width:1px;height:1px;overflow:hidden}
@media (max-width:640px){.lead-form{grid-template-columns:1fr}}

/* ---------- Fixed-dark blocks ---------- */
/* class="ink-band" / "ink-card" reset the role tokens to the light theme (see inc/theme.php), so heroes,
   CTA bands, the footer and dark cards look the same in both themes. In the dark theme a dark card
   would melt into the page, so it gets a faint outline (--bandLine is transparent in the light theme). */
.ink-card{box-shadow:inset 0 0 0 1px var(--bandLine)}
/* Feature band: class="ink-band section--band" on a <section> whose first child is partials/hero-fx.php. Same
   background as the #top hero (--ink plus the contour lines and glow), so a body section can break up two light
   or two dark neighbours. ink-band resets the role tokens, so the band reads the fixed-dark set in both themes and
   every palette (data-p); in the dark theme its --ink sits about 8 L* above --page and the --bandLine edges
   (transparent in the light theme) mark it off further. Children use the on-dark roles: kicker --onMuted (as the
   hero eyebrow), lead and tile text --onBody, headings white, tiles opaque --deep (so no contour line runs under
   body text) with a --onMuted hairline, tile numbers --signal (as on the recommended plan card). Contrast in
   tools/palette-contrast.php ('band'). Buttons keep their own inline colours (--cta). */
/* In-page link targets (e.g. #businesscase on the value page, from the NL Waarde menu): land just under the
   sticky header (82px + 1px border on desktop, 68px + 1px below 900px). */
.anchor-target{scroll-margin-top:84px}
@media (max-width:899.98px){.anchor-target{scroll-margin-top:70px}}
.section--band{position:relative;overflow:hidden;background:var(--ink);color:#ffffff;box-shadow:inset 0 1px 0 var(--bandLine),inset 0 -1px 0 var(--bandLine)}
.section--band>:not(.hero-fx){position:relative}
.section--band .band-kicker{color:var(--onMuted)}
.section--band .band-lead,.section--band .band-tile-text{color:var(--onBody)}
.section--band .band-tile{background:var(--deep);border:1px solid rgba(var(--onMuted-rgb),0.25)}
.section--band .band-tile-num{color:var(--signal)}

/* ---------- House style mock (partials/house-style-mock.php) ---------- */
/* The switcher sets --m-* (one organisation style) on .hs-app; the --hs-* roles below map them onto
   light surfaces in the light site theme and dark surfaces in the dark one. Nothing outside .hs-app
   reads --m-*, so the website itself never changes colour. */
.hs{container-type:inline-size;margin:48px 0 0}
#house-style .hs{margin:0}
.hs-switch{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;margin:0 0 18px}
html:not(.js) .hs-switch{display:none}
.hs-title{margin:0;font-family:'Bricolage Grotesque',sans-serif;font-weight:700;font-size:20px;line-height:1.2;color:var(--ink)}
.hs-options{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.hs-swatch{display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:0 16px 0 12px;border:1.5px solid rgba(var(--ink-rgb),0.18);border-radius:999px;background:var(--card);color:var(--ink);font:inherit;font-size:14.5px;font-weight:600;cursor:pointer}
.hs-swatch:hover{border-color:var(--primary)}
.hs-swatch[aria-pressed="true"]{border-color:var(--primary);box-shadow:0 0 0 1.5px var(--primary)}
.hs-swatch:focus-visible,.hs-color:focus-visible{outline:2px solid var(--primary);outline-offset:3px}
.hs-dots{display:inline-flex}
.hs-dots i{width:14px;height:14px;border-radius:50%;box-shadow:0 0 0 2px var(--card)}
.hs-dots i+i{margin-left:-4px}
.hs-own{display:inline-flex;align-items:center;gap:6px}
.hs-color{width:44px;height:44px;padding:3px;box-sizing:border-box;border:1.5px solid rgba(var(--ink-rgb),0.18);border-radius:12px;background:var(--card);cursor:pointer}
.hs-figure{margin:0}
.hs-caption{margin:14px 0 0;max-width:720px;font-size:15px;line-height:1.55;color:var(--muted)}

/* Roles. Light theme: a light working area (--m-washLt) with white cards; dark bars (--m-ink, --m-deep). */
.hs-app{--hs-bg:var(--m-washLt);--hs-card:#FFFFFF;--hs-line:var(--m-wash);--hs-line:color-mix(in srgb,var(--m-ink) 11%,var(--m-wash));--hs-head:var(--m-ink);--hs-body:var(--m-text);--hs-dim:var(--m-muted);--hs-link:var(--m-link);--hs-rule:var(--m-rule);--hs-chip:var(--m-wash);--hs-rail:var(--m-wash);--hs-railOn:#FFFFFF;
  border-radius:16px;overflow:hidden;background:var(--hs-bg);color:var(--hs-body);font-family:'Instrument Sans',sans-serif;font-size:14px;line-height:1.45;text-align:left;box-shadow:0 30px 60px rgba(var(--deep-rgb),0.16),0 0 0 1px rgba(var(--ink-rgb),0.08)}
:root[data-theme="dark"] .hs-app{--hs-bg:var(--m-deep);--hs-card:rgba(255,255,255,0.06);--hs-line:rgba(255,255,255,0.1);--hs-head:#FFFFFF;--hs-body:var(--m-onBody);--hs-dim:var(--m-onMuted);--hs-link:var(--m-onMuted);--hs-rule:var(--m-navOn);--hs-chip:rgba(255,255,255,0.09);--hs-rail:var(--m-ink);--hs-railOn:rgba(255,255,255,0.1)}
@media (prefers-color-scheme:dark){:root:not([data-theme]) .hs-app{--hs-bg:var(--m-deep);--hs-card:rgba(255,255,255,0.06);--hs-line:rgba(255,255,255,0.1);--hs-head:#FFFFFF;--hs-body:var(--m-onBody);--hs-dim:var(--m-onMuted);--hs-link:var(--m-onMuted);--hs-rule:var(--m-navOn);--hs-chip:rgba(255,255,255,0.09);--hs-rail:var(--m-ink);--hs-railOn:rgba(255,255,255,0.1)}}
.hs-app,.hs-app *{transition:background-color .2s ease,color .2s ease,border-color .2s ease,box-shadow .2s ease}
.hs-app p{margin:0}
.hs-app svg{flex:none}
/* Top bar: organisation (the white-label point), menu with the active item underlined, open-case tab, avatar. */
.hs-bar{position:relative;display:flex;align-items:center;gap:28px;min-height:54px;padding:0 14px 0 18px;background:var(--m-ink);color:#FFFFFF}
.hs-bar::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:linear-gradient(90deg,var(--m-navOn),transparent 70%)}
.hs-brand{display:flex;align-items:center;gap:10px;min-width:0}
.hs-mark{width:26px;height:26px;flex:none;border-radius:7px;background:var(--m-primary);display:flex;align-items:center;justify-content:center}
.hs-mark i{width:10px;height:10px;border-radius:3px;background:var(--m-accent)}
.hs-org{font-family:'Bricolage Grotesque',sans-serif;font-weight:700;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hs-nav{display:flex;align-self:stretch;gap:20px;font-size:13.5px;font-weight:500;color:var(--m-onBody);white-space:nowrap}
.hs-nav span{position:relative;display:flex;align-items:center}
.hs-nav .is-on{color:var(--m-navOn);font-weight:600}
.hs-nav .is-on::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;border-radius:3px 3px 0 0;background:var(--m-navOn);z-index:1}
.hs-open{margin-left:auto;align-self:flex-end;display:flex;align-items:center;gap:12px;max-width:220px;min-width:0;padding:7px 12px 8px;border-radius:10px 10px 0 0;background:var(--hs-bg);position:relative;z-index:1}
.hs-open>span{min-width:0}
.hs-open b{display:block;font-family:'IBM Plex Mono',monospace;font-weight:500;font-size:10.5px;color:var(--hs-link)}
.hs-open span span{display:block;font-size:12px;font-weight:600;color:var(--hs-head);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hs-open i{font-style:normal;font-size:12px;color:var(--hs-dim)}
.hs-avatar{width:30px;height:30px;flex:none;border-radius:50%;background:var(--m-primary);color:var(--m-onPrimary);font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center}
/* Body: the case area and the icon rail on the right edge. */
.hs-body{display:grid;grid-template-columns:minmax(0,1fr) 52px}
.hs-main{min-width:0;padding:18px 18px 20px 20px;display:flex;flex-direction:column;gap:12px}
.hs-label{font-family:'IBM Plex Mono',monospace;font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--hs-dim)}
.hs-case-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:12px 16px;background:var(--hs-card);border:1px solid var(--hs-line);border-radius:12px}
.hs-id{font-family:'IBM Plex Mono',monospace;font-size:12px;font-weight:500;color:var(--m-onPrimary);background:var(--m-primary);padding:3px 8px;border-radius:6px}
.hs-app .hs-name{min-width:0;font-family:'Bricolage Grotesque',sans-serif;font-weight:700;font-size:18px;line-height:1.25;color:var(--hs-head)}
.hs-meta{font-family:'Instrument Sans',sans-serif;font-weight:500;font-size:12.5px;color:var(--hs-dim)}
.hs-meta::before{content:"/\00A0"}
.hs-chips-head{margin-left:auto;display:flex;flex-wrap:wrap;gap:6px}
.hs-status,.hs-deadline{display:inline-flex;align-items:center;gap:5px;font-family:'IBM Plex Mono',monospace;font-size:11px;font-weight:500;padding:4px 10px;border-radius:999px;white-space:nowrap}
.hs-status{background:var(--m-accent);color:var(--m-accentInk)}
.hs-deadline{background:var(--hs-chip);color:var(--hs-link)}
.hs-deadline svg{width:12px;height:12px}
.hs-tabs{display:flex;gap:2px;margin-top:-2px;padding:0 4px;border-bottom:1px solid var(--hs-line);font-size:13px;font-weight:500;color:var(--hs-dim);white-space:nowrap;overflow:hidden}
.hs-tabs span{position:relative;padding:8px 12px 9px}
.hs-tabs .is-on{color:var(--hs-head);font-weight:600}
.hs-tabs .is-on::after{content:"";position:absolute;left:8px;right:8px;bottom:-1px;height:3px;border-radius:3px 3px 0 0;background:var(--hs-rule)}
.hs-tabs .hs-tab-ai{color:var(--hs-link)}
.hs-tabs .hs-tab-ai::before{content:"\2726\00A0";color:var(--hs-rule)}
.hs-content{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:16px;align-items:start}
.hs-history{min-width:0;padding:14px 16px 2px;background:var(--hs-card);border:1px solid var(--hs-line);border-radius:12px}
.hs-app .hs-label--chrono{margin:0 0 12px}
/* Chronology entries (also used by .ai-ex below). */
.hs-chrono{list-style:none;margin:0;padding:0}
.hs-entry{position:relative;display:grid;grid-template-columns:28px minmax(0,1fr);gap:12px;padding:0 0 14px}
.hs-entry:not(:last-child)::before{content:"";position:absolute;left:13px;top:30px;bottom:2px;width:2px;background:var(--hs-line)}
.hs-icon{width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--hs-chip);color:var(--hs-link)}
.hs-entry--ai .hs-icon{background:var(--m-primary);color:var(--m-onPrimary,#FFFFFF)}
.hs-entry--ai .hs-entry-body{background:var(--hs-card);border:1px solid var(--hs-line);border-radius:10px;padding:8px 10px}
.hs-app .hs-entry--ai .hs-entry-body{background:var(--hs-bg)}
.hs-entry-top{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;padding-top:4px}
.hs-entry--ai .hs-entry-top{padding-top:0}
.hs-entry-title{font-size:13.5px;font-weight:600;color:var(--hs-head)}
.hs-time{font-family:'IBM Plex Mono',monospace;font-size:11px;color:var(--hs-dim)}
.hs-app .hs-entry-text{margin-top:2px;font-size:13px}
.hs-source{display:inline-flex;align-items:center;gap:5px;margin-top:7px;padding:2px 9px;border:1px solid var(--hs-line);border-radius:999px;background:var(--hs-chip);font-family:'IBM Plex Mono',monospace;font-size:11px;color:var(--hs-link)}
/* Example AI answer on theme_ai (pages/content.php block 'example'): reuses the mock's entry and chip rules.
   .ai-ex supplies --m-primary and the --hs-* roles from the site's own tokens, so it follows the site palette
   and light/dark theme instead of a house style. */
.ai-ex{--m-primary:var(--heroGlow);--hs-card:var(--card);--hs-line:var(--wash);--hs-head:var(--ink);--hs-body:var(--text);--hs-dim:var(--muted);--hs-link:var(--primary);--hs-chip:var(--wash);
  margin:20px 0 0;padding:clamp(18px,3vw,26px);background:var(--washLt);border:1px solid var(--wash);border-radius:16px;color:var(--hs-body);font-family:'Instrument Sans',sans-serif;line-height:1.5}
.ai-ex p{margin:0}
.ai-ex-label{margin:0 0 16px;font-family:'IBM Plex Mono',monospace;font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.ai-ex .hs-entry{grid-template-columns:32px minmax(0,1fr);gap:14px}
.ai-ex .hs-entry:last-child{padding-bottom:0}
.ai-ex .hs-entry:not(:last-child)::before{left:15px;top:34px}
.ai-ex .hs-icon{width:32px;height:32px}
.ai-ex .hs-entry--ai .hs-entry-body{padding:12px 14px}
.ai-ex .hs-entry-top{padding-top:5px}
.ai-ex .hs-entry--ai .hs-entry-top{padding-top:0}
.ai-ex .hs-entry-title{font-size:15px}
.ai-ex .hs-entry-text{margin-top:3px;font-size:16.5px;line-height:1.55}
.ai-ex-sources{display:flex;flex-wrap:wrap;gap:6px 8px;margin-top:10px}
.ai-ex .hs-source{margin-top:0;font-size:12px;padding:3px 10px}
/* Right column: cards with a heading and a short accent line under it, as in the real screens. */
.hs-right{display:flex;flex-direction:column;gap:12px;min-width:0}
.hs-card{min-width:0;background:var(--hs-card);border:1px solid var(--hs-line);border-radius:12px;overflow:hidden}
.hs-app .hs-card-head{position:relative;padding:11px 14px 9px;border-bottom:1px solid var(--hs-line);font-family:'Bricolage Grotesque',sans-serif;font-weight:600;font-size:14.5px;color:var(--hs-head)}
.hs-card-head::after{content:"";position:absolute;left:14px;bottom:-1px;width:30px;height:2px;border-radius:2px;background:var(--hs-rule)}
.hs-app .hs-card-body{padding:12px 14px 14px}
.hs-next-what{font-weight:600;color:var(--hs-head)}
.hs-app .hs-next-due{margin-top:2px;font-size:12.5px;font-weight:600;color:var(--hs-link)}
.hs-next-origin{font-size:12px;color:var(--hs-dim)}
.hs-btn{display:inline-block;margin-top:10px;padding:6px 14px;border-radius:8px;background:var(--m-primary);color:var(--m-onPrimary);font-size:12.5px;font-weight:600}
.hs-handler{display:flex;align-items:center;gap:10px}
.hs-person{width:36px;height:36px;flex:none;border-radius:50%;background:var(--m-primary);color:var(--m-onPrimary);font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center}
.hs-handler-name{display:block;font-weight:600;color:var(--hs-head)}
.hs-handler-role{display:block;font-size:12px;color:var(--hs-dim)}
.hs-chips{display:flex;flex-wrap:wrap;gap:6px}
.hs-chips span{font-size:12px;font-weight:500;padding:3px 9px;border-radius:999px;background:var(--hs-chip);color:var(--hs-body)}
/* Icon rail on the right edge, with small badges (highlighted ones in the accent colour). */
.hs-rail{display:flex;flex-direction:column;align-items:center;gap:12px;padding:14px 0;background:var(--hs-rail);border-left:1px solid var(--hs-line)}
.hs-ri{position:relative;width:32px;height:32px;border-radius:9px;display:flex;align-items:center;justify-content:center;color:var(--hs-head)}
.hs-ri:first-child{color:var(--hs-dim)}
.hs-ri.is-on{background:var(--hs-railOn);box-shadow:0 1px 0 var(--hs-line)}
.hs-ri svg{width:17px;height:17px}
.hs-bd{position:absolute;right:-4px;bottom:-3px;min-width:16px;height:16px;box-sizing:border-box;padding:0 3px;border-radius:8px;border:2px solid var(--hs-rail);background:var(--m-ink);color:#FFFFFF;font-family:'IBM Plex Mono',monospace;font-size:9px;font-weight:500;line-height:12px;text-align:center}
.hs-bd.is-hot{background:var(--m-accent);color:var(--m-accentInk)}
.hs-sep{width:20px;height:1px;background:var(--hs-line)}
/* Status bar. */
.hs-statusbar{display:flex;align-items:center;gap:6px 18px;flex-wrap:wrap;padding:6px 16px;background:var(--m-deep);color:var(--m-onMuted);font-family:'IBM Plex Mono',monospace;font-size:11px}
.hs-dot{display:inline-block;width:7px;height:7px;margin-right:6px;border-radius:50%;background:#4CC38A}
.hs-logged{margin-left:auto}
/* Medium: the cards move under the chronology (in a row); the menu tightens. */
@container (max-width:960px){
  .hs-content{grid-template-columns:minmax(0,1fr)}
  .hs-right{flex-direction:row;flex-wrap:wrap}
  .hs-card{flex:1 1 200px}
  .hs-bar{gap:20px}
  .hs-nav{gap:14px}
}
/* Narrow: one column without the rail; the bar keeps the organisation and the avatar, the menu and the
   open-case tab go, the tab row is cut off at the edge, the status bar stacks. */
@container (max-width:640px){
  .hs-body{grid-template-columns:minmax(0,1fr)}
  .hs-rail,.hs-nav,.hs-open{display:none}
  .hs-avatar{margin-left:auto}
  .hs-main{padding:14px}
  .hs-chips-head{margin-left:0}
  .hs-meta{display:block;margin-top:2px}
  .hs-meta::before{content:none}
  .hs-tabs{-webkit-mask-image:linear-gradient(90deg,#000 80%,transparent);mask-image:linear-gradient(90deg,#000 80%,transparent)}
  .hs-logged{margin-left:0}
}
@media (prefers-reduced-motion:reduce){.hs-app,.hs-app *{transition:none}}

/* ---------- Hero lines and glow (partials/hero-fx.php) ---------- */
/* A contour map over the whole hero (tools/hero-contours.py) under a slowly drifting glow (60s drift, 36s
   glow). The SVGs are masks, so the colours are tokens: base lines --heroLine at .1, the accent lines near the
   top-right glow --heroAccent at .14, the glow --heroGlow. The base layer is cut out under the accent lines so the two
   never stack. Worst pixel (glow peak plus a line), every palette: white 9.5:1, --onBody 6.6:1, --onMuted
   and --signal 4.6:1 or more (tools/palette-contrast.php). Transform and opacity only; paused off screen by
   nav.js, static under prefers-reduced-motion. */
.hero-fx{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.hero-glow{position:absolute;left:calc(85% - 36rem);top:calc(-10% - 18rem);width:72rem;height:36rem;background:radial-gradient(closest-side,rgba(var(--heroGlow-rgb),.2),rgba(var(--heroGlow-rgb),0));will-change:transform,opacity;animation:hero-glow 36s ease-in-out infinite alternate}
/* Both line layers in one wrapper so the accent lines stay on the base ones. Oversized by 3% per side so
   the 2% drift never shows an edge. */
.hero-lines{position:absolute;inset:-3%;will-change:transform;animation:hero-lines 60s ease-in-out infinite alternate}
.hero-lines i{position:absolute;inset:0;background:var(--heroLine);opacity:.1;
  -webkit-mask-image:var(--hero-map),var(--hero-map-glow);mask-image:var(--hero-map),var(--hero-map-glow);
  -webkit-mask-position:center;mask-position:center;-webkit-mask-size:cover;mask-size:cover;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  -webkit-mask-composite:source-out;mask-composite:subtract}
.hero-lines i+i{background:var(--heroAccent);opacity:.14;-webkit-mask-image:var(--hero-map-glow);mask-image:var(--hero-map-glow);-webkit-mask-composite:source-over;mask-composite:add}
.is-offscreen .hero-glow,.is-offscreen .hero-lines{animation-play-state:paused}
@keyframes hero-glow{
  0%{transform:translate(0,0) scale(1);opacity:1}
  35%{transform:translate(-5vw,2.5rem) scale(1.08);opacity:.9}
  70%{transform:translate(-2.5vw,4rem) scale(1.15);opacity:.85}
  100%{transform:translate(-7vw,1.5rem) scale(1.05);opacity:.95}
}
/* Highlighted phrase in the hero H1 (hero_h1() in inc/functions.php, the home hero's 'hero_h1_hl'): plain
   colour of the palette (--heroHighlight: amber in Teal Ledger, pink in Blue Magenta); no underline or
   background. Heroes only: body headings keep theirs. */
#top h1 .hl{color:var(--heroHighlight)}
@keyframes hero-lines{0%{transform:translate(0,0)}100%{transform:translate(-2%,1.5%)}}
/* Sticky header: soft shadow once the page is scrolled (--hdrShadow per theme). The header is a scroll-state
   container; its own ::after draws the shadow, because a container's pseudo-elements can query it (the header
   itself cannot). Browsers without scroll-state queries get .is-scrolled from nav.js instead. */
.site-header{container:site-header / scroll-state}
.site-header::after{content:"";position:absolute;inset:0 0 -1px;pointer-events:none;box-shadow:var(--hdrShadow);opacity:0;transition:opacity .3s ease}
.site-header.is-scrolled::after{opacity:1}
@container site-header scroll-state(stuck: top){.site-header::after{opacity:1}}
@media (prefers-reduced-motion:reduce){.hero-glow,.hero-lines{animation:none;will-change:auto}.hero-lines{inset:0}.site-header::after{transition:none}}

/* ---------- Blog (pages/blog-index.php, pages/blog-post.php, partials/blog-*.php) ----------
   Cards: 1 column on mobile, 2 from 640px, 3 from 1024px; the featured (newest) card spans the row.
   Post body: one column of ~68ch, 17px on mobile and 18px from 900px, line-height 1.65. */
.blog-eyebrow{margin:0;font-family:'IBM Plex Mono',monospace;font-size:12px;letter-spacing:0.1em;text-transform:uppercase;color:var(--primary)}
.avatar{flex:none;display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%;background:var(--primary);color:var(--page);font-family:'Bricolage Grotesque',sans-serif;font-weight:700;font-size:17px;letter-spacing:0.02em;line-height:1}
.avatar--sm{width:30px;height:30px;font-size:11px}
.avatar--lg{width:72px;height:72px;font-size:24px}
.post-grid{display:grid;grid-template-columns:1fr;gap:20px}
@media (min-width:640px){.post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1024px){.post-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.post-card{position:relative;display:flex;flex-direction:column;gap:12px;min-width:0;background:var(--card);border:1px solid var(--wash);border-radius:18px;padding:26px 24px;box-sizing:border-box;transition:border-color .2s ease,box-shadow .2s ease}
.post-card:hover,.post-card:focus-within{border-color:var(--primary);box-shadow:0 8px 20px rgba(var(--ink-rgb),0.08)}
.post-meta{margin:0;font-family:'IBM Plex Mono',monospace;font-size:13px;color:var(--muted)}
.post-card-title{margin:0;font-family:'Bricolage Grotesque',sans-serif;font-weight:700;font-size:23px;line-height:1.2;letter-spacing:-0.01em;overflow-wrap:break-word}
.post-card-title a{color:var(--ink);text-decoration:none}
.post-card-title a::after{content:"";position:absolute;inset:0;border-radius:18px}
.post-card-title a:hover{color:var(--primary)}
.post-card-title a:focus-visible{outline:none}
.post-card:focus-within{outline:2px solid var(--primary);outline-offset:2px}
.post-card-excerpt{margin:0;font-size:16px;line-height:1.55;color:var(--text)}
.post-card-author{margin:auto 0 0;padding-top:8px;display:flex;align-items:center;gap:10px;font-size:14px;font-weight:600;color:var(--ink)}
.post-card-flag{margin:0;align-self:flex-start;font-family:'IBM Plex Mono',monospace;font-size:11px;letter-spacing:0.1em;text-transform:uppercase;background:var(--feat);color:var(--featInk);border-radius:999px;padding:5px 12px}
.post-card--featured{grid-column:1/-1;padding:clamp(28px,4vw,48px);gap:16px;background:var(--card)}
.post-card--featured .post-card-title{font-size:clamp(30px,3.6vw,48px);line-height:1.05;letter-spacing:-0.02em;max-width:900px}
.post-card--featured .post-card-excerpt{font-size:clamp(17px,1.5vw,20px);max-width:720px}
.post-card--featured:hover,.post-card--featured:focus-within{box-shadow:0 12px 28px rgba(var(--ink-rgb),0.1)}

/* Post hero: lede and byline on the dark band. */
.post-lede{margin:24px 0 0;font-size:clamp(18px,1.6vw,22px);line-height:1.5;color:var(--wash);max-width:720px}
.post-byline{margin-top:32px;display:flex;align-items:center;gap:14px}
.post-byline p{margin:0;display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;font-size:15px;line-height:1.4;color:var(--onBody)}
.post-byline strong{color:#fff;font-weight:600}
.post-byline-meta{flex-basis:100%;font-family:'IBM Plex Mono',monospace;font-size:13px;color:var(--onMuted)}

/* Long-read body. */
.post-body{max-width:68ch;margin:0 auto;font-size:17px;line-height:1.65;color:var(--text);overflow-wrap:break-word}
@media (min-width:900px){.post-body{font-size:18px}}
.post-body>:first-child{margin-top:0}
.post-body p{margin:0 0 1.15em}
.post-body h2{margin:2.1em 0 0.6em;font-family:'Bricolage Grotesque',sans-serif;font-weight:700;font-size:clamp(26px,2.6vw,32px);line-height:1.15;letter-spacing:-0.015em;color:var(--ink)}
.post-body h3{margin:1.8em 0 0.5em;font-family:'Bricolage Grotesque',sans-serif;font-weight:700;font-size:clamp(21px,2vw,24px);line-height:1.25;color:var(--ink)}
.post-body ul,.post-body ol{margin:0 0 1.15em;padding-left:1.4em}
.post-body li{margin:0 0 0.45em;padding-left:0.2em}
.post-body li::marker{color:var(--primary)}
.post-body blockquote{margin:1.6em 0;padding:0.2em 0 0.2em 1.2em;border-left:4px solid var(--primary);font-family:'Bricolage Grotesque',sans-serif;font-weight:500;font-size:1.15em;line-height:1.45;color:var(--ink)}
.post-body blockquote p:last-child{margin-bottom:0}
.post-body a{color:var(--primary);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.post-body a:hover{color:var(--ink)}
.post-body strong{font-weight:600;color:var(--ink)}

/* Legal pages (pages/legal.php): the post body plus h4, the cookie tables and the small category line. */
.legal-body h4{margin:1.4em 0 0.4em;font-family:'IBM Plex Mono',monospace;font-weight:500;font-size:13px;letter-spacing:0.08em;text-transform:uppercase;color:var(--muted)}
.legal-body .legal-meta{margin:-0.3em 0 0.8em;font-family:'IBM Plex Mono',monospace;font-size:13px;color:var(--muted)}
.legal-table{margin:0 0 1.6em;overflow-x:auto;border:1px solid var(--wash);border-radius:12px}
.legal-table table{width:100%;border-collapse:collapse;font-size:15px;line-height:1.45}
.legal-table caption{caption-side:top;text-align:left;padding:10px 14px;font-family:'IBM Plex Mono',monospace;font-size:12px;letter-spacing:0.08em;text-transform:uppercase;color:var(--ink);background:var(--washLt);border-bottom:1px solid var(--wash)}
.legal-table th,.legal-table td{padding:9px 14px;text-align:left;vertical-align:top;border-bottom:1px solid var(--wash)}
.legal-table th{font-weight:600;color:var(--ink)}
.legal-table tr:last-child td{border-bottom:0}
.legal-table td:first-child{overflow-wrap:anywhere}

/* After the article: share, author box, guides, back link. Same column, a little wider for the guide cards. */
.post-after{max-width:820px;margin:clamp(40px,5vw,56px) auto 0;display:flex;flex-direction:column;gap:28px}
.post-share{max-width:68ch;width:100%;margin:0 auto;display:flex;flex-wrap:wrap;align-items:center;gap:4px 20px;padding:18px 0;border-top:1px solid var(--wash);border-bottom:1px solid var(--wash);font-size:15px;font-weight:600}
.post-share a{min-height:44px;display:inline-flex;align-items:center}
.author-box{display:flex;gap:20px;align-items:flex-start;background:var(--washLt);border:1px solid var(--wash);border-radius:20px;padding:clamp(22px,3vw,32px)}
.author-box p{margin:0}
.author-box-name{margin-top:6px!important;font-family:'Bricolage Grotesque',sans-serif;font-weight:700;font-size:21px;color:var(--ink)}
.author-box-role{font-size:14px;color:var(--muted)}
.author-box-bio{margin-top:10px!important;font-size:16px;line-height:1.6;color:var(--text)}
@media (max-width:480px){.author-box{flex-direction:column}}
.post-back{align-self:flex-start;display:inline-flex;align-items:center;gap:10px;min-height:44px;font-weight:600;font-size:16px;color:var(--ink)}

/* Guide CTA band (index and post). */
.blog-guides{background:var(--ink);color:#fff;border-radius:24px;padding:clamp(28px,4vw,48px)}
.blog-guides h2{margin:12px 0 0;font-family:'Bricolage Grotesque',sans-serif;font-weight:700;font-size:clamp(28px,3vw,40px);line-height:1.08;letter-spacing:-0.02em;color:#fff}
.blog-guides-intro{margin:12px 0 0;font-size:17px;line-height:1.55;color:var(--onBody);max-width:560px}
.blog-guides ul{margin:28px 0 0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:14px}
.blog-guides li{display:flex}
.blog-guide{flex:1;display:flex;flex-direction:column;gap:8px;background:var(--feat);color:var(--featInk);border-radius:16px;padding:22px 20px;text-decoration:none}
.blog-guide:hover{color:var(--featInk);box-shadow:0 0 0 2px var(--signal)}
.blog-guide strong{font-family:'Bricolage Grotesque',sans-serif;font-weight:700;font-size:20px;line-height:1.2}
.blog-guide span{font-size:15px;line-height:1.5}
.blog-guide .blog-guide-cta{margin-top:auto;padding-top:6px;display:inline-flex;align-items:center;gap:8px;font-weight:600}
@media (prefers-reduced-motion:reduce){.post-card{transition:none}}

/* ---------- Home logo strip (pages/home.php, strip_logos()/customer_logo() in inc/functions.php) ----------
   Inline single-colour SVGs in the muted grey (lighter in the dark theme via --muted). Heights are set per
   logo for optical balance: Anker is a stacked square-ish mark, SRM a wide wordmark, Brunel a compact wordmark
   over a bar. 80% on mobile, where the three tiles stay on one row. Tiles with a case page are links: on
   hover/focus the border and logo turn --primary; a plain tile (no case page) looks the same at rest. */
.cust-tile{flex:1 1 0;min-width:0;min-height:72px;box-sizing:border-box;padding:12px clamp(8px,2vw,20px);border:1px solid var(--wash);border-radius:10px;display:flex;align-items:center;justify-content:center;text-decoration:none}
a.cust-tile{transition:border-color .2s ease}
a.cust-tile .cust-logo{transition:color .2s ease}
a.cust-tile:hover,a.cust-tile:focus-visible{border-color:var(--primary)}
a.cust-tile:hover .cust-logo,a.cust-tile:focus-visible .cust-logo{color:var(--primary)}
a.cust-tile:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.cust-logo{display:block;flex:none;width:auto;max-width:100%;height:var(--cust-logo-h);color:var(--muted)}
.cust-logo-anker{--cust-logo-h:48px}
.cust-logo-srm{--cust-logo-h:30px}
.cust-logo-brunel{--cust-logo-h:36px}
@media (max-width:640px){.cust-logo{height:calc(var(--cust-logo-h) * 0.8)}}
@media (prefers-reduced-motion:reduce){a.cust-tile,a.cust-tile .cust-logo{transition:none}}

/* Case web (partials/case-web.php, /assets/js/case-web.js): homepage "01", a case fed by many systems. The stage
   is fixed-dark (ink-card), so it looks the same in both themes; the focused node and its line use --signal.
   Static by default (web, then the four cards in a grid); animated only with JS and without reduced motion,
   both known before the first paint, so switching modes never shifts the layout. */
.cw-stage{position:relative;background:var(--ink);border-radius:18px;overflow:hidden}
.cw-svg{display:block;width:100%;height:auto}
.cw-lines path{fill:none;stroke:var(--onMuted);stroke-opacity:.3;stroke-width:1;vector-effect:non-scaling-stroke;transition:stroke-opacity .5s,stroke .5s}
.cw-n circle{fill:var(--deep);stroke:var(--onMuted);stroke-width:1.4;vector-effect:non-scaling-stroke;transition:fill .5s,stroke .5s}
.cw-n text{font-family:'Instrument Sans',sans-serif;font-size:11.5px;fill:var(--onBody);text-anchor:middle;paint-order:stroke;stroke:var(--ink);stroke-width:3px;stroke-linejoin:round;transition:fill .5s}
.cw-n{transition:opacity .5s}
.cw-hub circle{fill:var(--primary);stroke:var(--onMuted);stroke-opacity:.6;stroke-width:1.5;vector-effect:non-scaling-stroke}
.cw-hub text{font-family:'Bricolage Grotesque',sans-serif;font-weight:700;font-size:15px;fill:#fff;text-anchor:middle}
.cw-pulses circle{fill:var(--signal)}
.cw-svg.is-focus .cw-n{opacity:.22}
.cw-svg.is-focus .cw-lines path{stroke-opacity:.1}
.cw-svg .cw-n.is-on{opacity:1}
.cw-n.is-on circle{fill:var(--signal);stroke:var(--signal)}
.cw-n.is-on text{fill:#fff;font-weight:600}
.cw-svg .cw-lines path.is-on{stroke:var(--signal);stroke-opacity:1;stroke-width:2}
.cw-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding:4px clamp(14px,2.4vw,24px) clamp(26px,3vw,34px)}
.cw-card{background:var(--card);color:var(--ink);border-radius:14px;padding:18px;transform:var(--cw-rot);box-shadow:0 8px 20px rgba(var(--ink-rgb),0.08)}
.cw-card p{margin:0}
.cw-where{font-family:'IBM Plex Mono',monospace;font-size:11px;color:var(--primary);text-transform:uppercase;letter-spacing:.08em}
.cw-card .cw-what{margin-top:8px;font-weight:600;font-size:16px}
@media (max-width:600px){.cw-n text{display:none}}
@media (prefers-reduced-motion:no-preference){
  .js .cw-cards{position:absolute;inset:0;display:block;padding:0;pointer-events:none}
  .js .cw-card{position:absolute;top:50%;max-width:calc(64% + 12px);box-sizing:border-box;opacity:0;transform:translateY(10px) rotate(-1.5deg);transition:opacity .3s,transform .3s ease-in;box-shadow:0 14px 32px rgba(0,0,0,.28)}
  .js .cw-card[data-side=r]{left:calc(36% - 24px)}
  .js .cw-card[data-side=l]{right:calc(36% - 24px)}
  .js .cw-card.is-on{opacity:1;transform:rotate(-1.5deg);transition:opacity .35s,transform .35s cubic-bezier(.2,.7,.2,1)}
  @media (max-width:600px){.js .cw-n.is-on text{display:inline}.js .cw-card{padding:14px}.js .cw-card .cw-what{font-size:15px}}
}
/* Hub pages (pages/hub.php): group card header = H2 + intro. Below 1100px the intro wraps under the H2, left-aligned;
   from 1100px it is one row, intro right-aligned and growing leftward towards the H2 (min gap 32px), wrapping right-aligned if needed.
   Long H2s (product hub benefits card) wrap at 55% so the intro always keeps room. */
.hub-head{display:flex;flex-wrap:wrap;gap:12px 40px;align-items:baseline;justify-content:space-between}
.hub-intro{margin:0;font-size:17px;line-height:1.55;color:var(--text);flex:1 1 360px;max-width:560px}
@media (min-width:1100px){
  .hub-head{flex-wrap:nowrap;gap:32px}
  .hub-head>h2{flex:none;max-width:55%}
  .hub-intro{flex:1 1 auto;min-width:0;max-width:none;margin-left:auto;text-align:right}
}
