:root{
  --theme-bg:#FFFFFF;
  --theme-section:#F2F0F0;
  --theme-placeholder:#e0dedd;
  --theme-note:rgba(255,255,255,0.9);
  --theme-on-fg:#FFFFFF;
  color-scheme:light;
}
[data-kf-theme="dark"]{
  --theme-bg:#0a0a0a;
  --theme-section:#1a1a1a;
  --theme-placeholder:#2a2a2a;
  --theme-note:rgba(26,26,26,0.92);
  --theme-on-fg:#0a0a0a;
  --color-primary:#e8545f;
  --color-primary-fill:#d63340;
  --color-section:#1a1a1a;
  --color-border:#2e2e2e;
  --color-card:#0a0a0a;
  color-scheme:dark;
}
html,body{background:var(--theme-bg) !important;color:var(--color-fg)}
[data-kf-theme="dark"] img[src*="assets/logos/"]{filter:grayscale(1) invert(1) brightness(1.6) !important;opacity:0.75}
[data-kf-theme="dark"] img[src*="assets/logos/"]:hover{filter:invert(1) hue-rotate(180deg) brightness(1.4) !important;opacity:1}
/* Device icons on the showcase pages (Desktop, Laptop, Tablet, Phone): a label shows on hover. */
.kf-dev{position:relative}
.kf-dev__tip{position:absolute;bottom:calc(100% + 8px);left:50%;transform:translate(-50%,4px);padding:5px 8px;border-radius:6px;background:var(--color-fg);color:var(--theme-on-fg);font:600 12px/1 var(--font-body,system-ui,sans-serif);white-space:nowrap;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .15s,transform .15s,visibility .15s;z-index:10}
.kf-dev:hover .kf-dev__tip{opacity:1;visibility:visible;transform:translate(-50%,0)}
@media (prefers-reduced-motion:reduce){.kf-dev__tip{transition:none}}
/* Printing or saving as PDF: show every section, even ones not yet scrolled into view (scroll-reveal.js hides them until then). */
@media print{[data-reveal]{opacity:1 !important;transform:none !important;transition:none !important}}
/* Very small phones (under 380px): scale the display title with the screen so long single words ("Multidisciplinary", "CarbonProvision") never push the page sideways. */
@media (max-width:379px){:root{--text-display:clamp(1.75rem,9.5vw,2.25rem)}}
/* Form hint text (Nov 19): the lightest gray that still meets WCAG 2.2 AA 4.5:1 on the field background (#757575 on white = 4.61:1; #7a7a7a on #0a0a0a = 4.61:1). Set explicitly because Safari and Firefox otherwise draw placeholders lighter, below AA. The Inquiry Type select shows its empty "Select an option" state in the same gray, and returns to full text colour once an option is chosen. */
input::placeholder,textarea::placeholder{color:#757575;opacity:1}
[data-kf-theme="dark"] input::placeholder,[data-kf-theme="dark"] textarea::placeholder{color:#7a7a7a}
select:required:invalid{color:#757575 !important}
[data-kf-theme="dark"] select:required:invalid{color:#7a7a7a !important}
select option{color:var(--color-fg)}
