/**
 * Design tokens — the single source of truth for the OneKaizen Cloud design system.
 *
 * Source: D:\WorkLyfe\OneKaizenCloud\rules
 * Nothing else in this theme may define a color, font size or spacing value.
 * theme.json references these; bootstrap-bridge.css maps Bootstrap onto them.
 */

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/inter-400.woff2') format('woff2');
}

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/inter-700.woff2') format('woff2');
}

:root {
	/* Palette primitives */
	--okc-black: #000;
	--okc-white: #fff;

	/* Semantic colors — dark mode is the default */
	--okc-surface:    var(--okc-black);
	--okc-text:       var(--okc-white);
	/* Same colour as --okc-text, as a bare comma-separated triplet. Several of
	   Bootstrap 5.3's own rules build their colour with
	   rgba(var(--bs-*-color-rgb), var(--bs-*-opacity)) rather than reading the
	   plain --bs-*-color variable, so those need the channels, not a colour.
	   See --bs-link-color-rgb in bootstrap-bridge.css. */
	--okc-text-rgb:   255, 255, 255;
	--okc-text-muted: rgb(255 255 255 / .6);   /* white-60 */
	--okc-demo-bg:    rgb(255 255 255 / .5);   /* white-50 */
	--okc-card-bg:    rgb(255 255 255 / .1);   /* white-10 */
	/* Documented exception: fainter card face used only by contact-form.php's
	   contact-option cards — a deliberately different shade from the
	   standard --okc-card-bg (10%), not a replacement for it; every other
	   card-bg usage in the theme (card-panel, adlc-circle, etc.) stays at
	   10%. Still flips with the theme like the other semantic tokens. */
	--okc-card-bg-faint: rgb(255 255 255 / .03);   /* white-3 */

	/* Layout and spacing */
	--okc-max-width: 1080px;
	--okc-space-lg: 60px;
	--okc-space-md: 30px;
	--okc-space-sm: 15px;

	/* Documented exception (see CLAUDE.md, Rule 1's closed list): the footer's
	   own wider content well and horizontal padding, outside the site's
	   standard 1080px contentSize and the 60/30/15 spacing scale. */
	--okc-footer-max-width: 1340px;
	--okc-footer-space-x: 50px;

	/* Typography */
	--okc-font: 'Inter', sans-serif;
	/* Fluid between a mobile minimum and the rule sheet's 48px/24px desktop
	   values — narrow viewports get a smaller hero title/sub-liner instead
	   of the fixed desktop size overflowing onto extra lines. Body/button
	   text (14px) stays fixed; small text doesn't benefit from scaling. */
	--okc-h1-size: clamp(32px, 4vw + 16px, 48px);
	--okc-h1-weight: 700;
	--okc-h2-size: clamp(18px, 3vw + 10px, 24px);
	--okc-h2-weight: 400;
	/* B1 has no token of its own: it's the same 14px as B2 (--okc-b2-size
	   below) and differs only by weight, which is expressed as Bootstrap's
	   .fw-bold utility on top of the body font size rather than a second
	   size/weight token pair — see patterns using has-body-font-size fw-bold. */
	--okc-b2-size: 14px;
	--okc-b2-weight: 400;

	/* Documented exception (see CLAUDE.md): card title in the "Home — Two
	   Column SDLC" pattern, matching its source mockup exactly rather than
	   the standard H1/H2/B1/B2 scale. */
	--okc-card-title-size: 20px;
	--okc-card-title-weight: 500;

	/* Documented exception: tighter title-to-body gap in the same pattern's
	   two column text blocks, smaller than the closed list's own 15px
	   minimum (.okc-stack-sm), so it can't reuse that class. */
	--okc-gap-xs: 5px;

	/* Documented exception: bottleneck/ungoverned-state accent used only in
	   the interactive SDLC graphic — a UI-state colour, not a fifth semantic
	   token, so it deliberately doesn't flip between dark/light mode. */
	--okc-danger: #ef4444;
	/* Composite colours for that same graphic, named here (not as literals in
	   okc.css) so they read from the one file the token lint exempts. */
	--okc-grid-line: rgb(255 255 255 / .04);   /* subtle grid background lines */
	--okc-danger-border: rgb(239 68 68 / .4);  /* ungoverned-state badge border */
	--okc-badge-scrim: rgb(0 0 0 / .8);        /* status badge background scrim */
	--okc-border-subtle: rgb(255 255 255 / .2); /* interactive graphic panel border (white-20) */

	/* Documented exception: fixed light card face for the isometric ADLC-stage
	   stack in home-kaizen-adlc.php. The stack is a graphic element that stays
	   a white card with dark text/icons regardless of site theme, the same way
	   the SDLC graphic's canvas colours (above) don't flip between dark/light. */
	--okc-iso-card-bg: #fff;
	--okc-iso-card-text: rgb(0 0 0 / .5); /* card label text: black at 50% */
	--okc-iso-card-shadow: rgb(0 0 0 / .15);
	--okc-iso-card-edge: #e0e0e0; /* the extruded edge's colour (stacked box-shadow layers) — a light grey just off the white front face, per the isometric-tile mockup */

	/* Documented exception: accent glow for the active state of the same
	   pattern's governance-circle hover grid — a UI-state colour matching its
	   source mockup's gold highlight ring, not a fifth semantic token, so it
	   deliberately doesn't flip between dark/light mode either. */
	--okc-accent-ring: #f5a623;
	--okc-accent-ring-glow: rgb(245 166 35 / .25);
	--okc-accent-halo: #ffae00; /* hover glow around the active .adlc-circle */
	/* Documented exception: sun/moon accent colours for the theme toggle
	   button's icon crossfade (docs/references/theme_toggle_button.html) — a
	   fixed decorative accent matching that reference's amber sun/moon, not a
	   fifth semantic token, so it deliberately doesn't invert between
	   dark/light mode the way --okc-surface/--okc-text do. */
	--okc-toggle-sun: #f59e0b;
	--okc-toggle-moon: #fbbf24;
	/* Documented exception: soft blue glow behind the active row of
	   accordion-feature-showcase (.accordion-row.is-active) — a one-off
	   decorative shadow from that pattern's mockup, not a fifth semantic
	   token, so it deliberately doesn't flip between dark/light mode. */
	--okc-accordion-glow: #A4C2F410;
	/* Documented exception: colourful wallpaper backdrop behind the video in
	   home-engineering-lifecycle.php's preview frames (.lifecycle-preview-frame),
	   sampled from the Figma reference (node 858-112). A fixed graphic backdrop,
	   so it deliberately doesn't flip between dark/light mode. The video now
	   crop-fills the frame, so this is what shows while it loads. (It used to
	   be a band across the frame's top, with --okc-video-band its height —
	   that token went with the band.) */
	--okc-video-wallpaper: linear-gradient(90deg, #94bec6 0%, #fbd555 20%, #fbaf26 50%, #d59f6b 77%, #448eca 90%, #8ba2a7 100%);
	/* Documented exception: the CRT panel face and scanline band behind the
	   use-case hero canvas graphics (.usecase-canvas-frame, see the mockups in
	   docs/references/Use-case Page HTML/). Deliberately non-flipping, same
	   rationale as --okc-iso-card-* above: the canvas draws white particles on
	   black, so a face reading --okc-surface would turn white in light mode and
	   the whole animation would disappear. */
	--okc-canvas-bg: #000;
	--okc-scanline: rgb(0 0 0 / .35);
    --okc-background-lighter: rgb(255 255 255 / 0.2);
}

[data-bs-theme="light"] {
	--okc-surface:    var(--okc-white);
	--okc-text:       var(--okc-black);
	--okc-text-rgb:   0, 0, 0;
	--okc-text-muted: rgb(0 0 0 / .6);
	--okc-demo-bg:    rgb(0 0 0 / .5);
	--okc-card-bg:    rgb(0 0 0 / .1);
	--okc-card-bg-faint: rgb(0 0 0 / .03);
	--okc-border-subtle: rgb(0 0 0 / .2);
    --okc-background-lighter: rgb(0 0 0 / 0.2);
}
