/* Shared appearance for the marketing, pricing, guide and policy pages. */
:root[data-theme], :root:not([data-theme]) {
  --bg:var(--kx-page); --panel:var(--kx-card); --ink:var(--kx-text);
  --text:var(--kx-text); --mut:var(--kx-muted); --muted:var(--kx-muted);
  --dim:var(--kx-muted); --line:var(--kx-line); --line2:var(--kx-line);
  --orange:var(--kx-accent); --gold:var(--kx-accent);
}
body.kx-site > header:not(.site-header), body.kx-site > nav { background:var(--kx-header); border-color:var(--kx-line); }
body.kx-site :is(.offer-main,.offer-side,.fact,.tablewrap,.choose>div,.related a,.passbox) { background:var(--kx-card); }
body.kx-site .guarantee { background:var(--kx-selected); }
body.kx-site .mobile-buy { background:var(--kx-header); }
body.kx-site .nav-cta { background:var(--kx-action); color:var(--kx-on-action); }
body.kx-site > nav .kx-appearance { margin-left:12px; }
body.kx-site > header:not(.site-header) .kx-appearance { margin-left:10px; }
body.kx-site > header:not(.site-header) .wrap { flex-wrap:wrap; }
body.kx-site main a[href^="mailto"]:not(.button):not(.btn) { color:var(--kx-accent); }
body.kx-site main a[href^="http"]:not(.button):not(.btn) { color:var(--kx-accent); }
html[data-theme="light"] body.kx-site::before { opacity:.3; }
html[data-theme="light"] body.kx-site .gradient { color:var(--kx-accent); -webkit-text-fill-color:var(--kx-accent); }
/* The labels page has a decorative film layer behind its copy. Keep its cards
   readable in light mode without applying a filter to any of the media. */
html[data-theme="light"] body.kx-site:has(.vault) { --soft:var(--kx-muted); --gold2:var(--kx-accent); }
html[data-theme="light"] body.kx-site:has(.vault) :is(.card,.tl-card,.vault,.panel,.bridge,.marq) { background:var(--kx-card); }
html[data-theme="light"] body.kx-site:has(.vault) :is(.sectin,.tl-head,.finale .wrap,.hero .wrap)::before { background:var(--kx-header); }
html[data-theme="light"] body.kx-site:has(.vault) .vig { display:none; }
html[data-theme="light"] body.kx-site:has(.vault) footer { background:var(--kx-ground); }
body.kx-site:has(.vault) .btn-gold { color:var(--kx-on-accent); }
body.kx-site #leader { --ink:#eeebe4; --gold:#c9a86a; --gold2:#f0dcaf; --dim:#a6a29b; }
html[data-theme="light"] body.kx-site:has(.vault) * { text-shadow:none; }
html[data-theme="light"] body.kx-site:has(.vault) :is(.lead,.lead-hero,.bul li,.pilotlist li,.bridge p,.hudbl,.hudbr) { color:var(--kx-muted); }
@media(max-width:760px) {
  body.kx-site > nav { flex-wrap:wrap; gap:8px; }
  body.kx-site > nav .kx-appearance { margin-left:auto; }
}
@media(max-width:360px) {
  .header-inner { gap:6px; }
  .header-inner > .button { font-size:11px; padding:10px 12px; white-space:nowrap; }
  .header-inner .logo { font-size:16px; }
  .header-inner .logo img { width:22px; height:22px; }
}
/* Blog posts (5 Nov 2026 audit): each post's own styles set the dark theme's body grey (#c9c9cd) and link orange
   (#ff9a3d), which read at 1.65:1 and about 2.2:1 on the light page. In light mode they take the theme's colours. */
html[data-theme="light"] body.kx-site .post :is(p, ul, ol) { color:var(--kx-muted); }
html[data-theme="light"] body.kx-site .post a { color:var(--kx-accent); border-bottom-color:currentColor; }
/* Links inside running text are underlined, so they don't rely on colour alone (WCAG 1.4.1; 5 Nov 2026 audit). */
body.kx-site main :is(p, li, dd, .crumbs, .lede, .asof) a:not(.button):not(.btn):not(.cta):not(.nav-cta) {
  text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:.18em; }
