/*!
 * CJIP theme-customizer.css: global classes (ownership matrix O3). Handle: cjip-customizer, depends on cjip-tokens.
 *
 * Allowed here (matrix §3): `.cjip-<component>` classes and their descendants, the focus ring, and the
 * prefers-reduced-motion block. Forbidden: `-sec-` selectors, bare h1–h6, body/html colours.
 * Every value is var(--cjip-*) from tokens.css; this file defines none.
 *
 * v1.0.0 (C2) ships the shell and the one class the icon library needs. The type scale, buttons, cards, bands and the
 * focus ring (contract §4, §7) are NOT written here: no session before C3 consumes them, and a class is promoted on
 * its second use (methodology §1). C3 (theme chrome) is the first consumer and adds what it needs.
 */

/* Icons: the SoT draws 41 icon uses at stroke 1.75 and 31 at 2 (Lucide's default, written on the SVG). A widget that
   needs the thinner stroke carries .cjip-icon-thin in its CSS Classes field; the emitter sets it from the digest. */
.cjip-icon-thin .lucide,
.cjip-icon-thin.lucide {
	stroke-width: var(--cjip-icon-stroke-thin);
}

/* Warm band surface (C3). SoT index.css `.cjip-warm-grain`, verbatim: paper-100 + 3.2% fractal-noise grain.
   Users: theme footer (C3), warm body bands (C5+). The noise SVG carries no colour, only an opacity. */
.cjip-warm-grain {
	background-color: var(--cjip-band-warm);
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.032'/%3E%3C/svg%3E");
}

/* Focus ring (C3, contract §9 B1, approved by the user 2026-11-05). SoT shape (2px solid, 2px offset), colour by surface:
   --cjip-focus-ring is teal-600 on light surfaces (≥4.9:1, V10). A dark band (navy, teal) sets
   `--cjip-focus-ring: var(--cjip-action-on-dark)` on its own class, so the ring turns aqua-300 there (≥3.27:1). */
:where(*):focus-visible {
	outline: 2px solid var(--cjip-focus-ring);
	outline-offset: 2px;
}

/* ---------- Behaviours (O7 classes, C4). JS in assets/js/<behaviour>.js; content visible without JS (W4). ----------
   Elementor's container CSS (custom-frontend.min.css) loads after this file and, at equal specificity, owns
   `.e-con { transform; transition; position; z-index }` (the last two through Elementor's own custom properties) and `.e-con::before`
   (its background-overlay layer). Measured on staging in C4 (ruleset R25). So the behaviours below never use
   `::before`, move with the individual `translate` property (composes with Elementor's `transform`), and use a
   compound `.elementor-element.<class>` selector (0,2,0) where they must win a property `.e-con` sets. */

/* SP-B2 reveal: SoT index.css `.cjip-reveal` / `.cjip-reveal-hidden` (translateY(16px), 700ms). Hidden class by JS only. */
.cjip-reveal,
.elementor-element.cjip-reveal {
	opacity: 1;
	translate: 0 0;
	transition: opacity var(--cjip-dur-reveal) var(--cjip-ease), translate var(--cjip-dur-reveal) var(--cjip-ease);
}
.cjip-reveal.cjip-reveal-hidden,
.elementor-element.cjip-reveal.cjip-reveal-hidden {
	opacity: 0;
	translate: 0 16px;
}

/* SP-B1 journey line: SoT JourneyLine.tsx. The host container wraps the sections. One pseudo-element (::after,
   ::before is Elementor's overlay) carries both SoT layers: on top the solid fill, its height = --cjip-progress
   (SoT: scaleY from the top, 150ms ease-out); below it the dashed track at 30% (SoT: opacity-30 on the track).
   Spine z 10, sections z 20, as the SoT. */
.cjip-journey-line,
.elementor-element.cjip-journey-line {
	position: relative;
}
.cjip-journey-line::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 3px;
	margin-left: -1.5px;
	pointer-events: none;
	z-index: 10;
	background-image:
		linear-gradient(var(--cjip-decorative), var(--cjip-decorative)),
		linear-gradient(to bottom, color-mix(in srgb, var(--cjip-decorative) 30%, transparent) 55%, transparent 45%);
	background-size: 100% calc(var(--cjip-progress) * 100%), 3px 14px;
	background-position: top, top;
	background-repeat: no-repeat, repeat-y;
	transition: background-size var(--cjip-dur-fast) var(--cjip-ease-out);
}
.cjip-journey-line > .elementor-element,
.cjip-journey-line > .e-con-inner > .elementor-element {
	position: relative;
	z-index: 20;
}

/* C8 (contract B8): once the behaviour runs, the quotes share one grid cell, so the band is as tall as the longest
   quote at every width and in every language (the SoT swapped one line of text and the page jumped 66px at 1440 in
   English). Two-class selector: wins over `.e-con { display: var(--display) }` (R25). Without JS the container
   stays a flex column and every quote shows. */
.cjip-rotator[data-cjip-rotator-ready],
.cjip-rotator[data-cjip-rotator-ready] > .e-con-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
	justify-items: center;
}
.cjip-rotator[data-cjip-rotator-ready] > .elementor-element,
.cjip-rotator[data-cjip-rotator-ready] > .e-con-inner > .elementor-element {
	grid-area: 1 / 1;
}
.cjip-rotator .cjip-rotator__off {
	visibility: hidden;
}

/* SP-B3 rotator controls (inserted by JS after the .cjip-rotator container): SoT QuoteBand.tsx buttons. */
.cjip-rotator [hidden] {
	display: none !important;
}
.cjip-rotator__controls {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.cjip-rotator__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--cjip-tap);
	min-width: var(--cjip-tap);
	padding: 0;
	border-radius: var(--cjip-radius-pill);
	border: 1px solid var(--cjip-border);
	background-color: var(--cjip-surface);
	color: var(--cjip-ink-muted);
	cursor: pointer;
	transition: color var(--cjip-dur) var(--cjip-ease), border-color var(--cjip-dur) var(--cjip-ease);
}
.cjip-rotator__btn:hover {
	color: var(--cjip-ink);
	border-color: var(--cjip-action);
}

@media (prefers-reduced-motion: reduce) {
	.cjip-reveal,
	.elementor-element.cjip-reveal {
		transition: none !important;
		translate: none !important;
	}
	.cjip-reveal.cjip-reveal-hidden,
	.elementor-element.cjip-reveal.cjip-reveal-hidden {
		opacity: 1 !important;
		translate: none !important;
	}
	.cjip-journey-line::after,
	.cjip-rotator__btn {
		transition: none;
	}
}

/* ---------- C5: classes the Home page consumes (first use; section-patterns §1, §2) ----------
   Ported from the SoT `src/index.css` with the selectors moved onto Elementor's markup: a type class sits on the
   Heading widget wrapper and styles `.elementor-heading-title` (R18: never a bare h1–h6); a look class on a container
   uses a two-class selector where `.e-con` owns the property (R25: border-radius, transition, transform). */

/* Bands (section-patterns §1). A dark band turns the focus ring aqua (contract §9 B1). */
.cjip-band-paper { background-color: var(--cjip-bg); }
.cjip-band-white { background-color: var(--cjip-surface); }
.cjip-band-cool { background-color: var(--cjip-band-cool); }
.cjip-band-navy { background-color: var(--cjip-band-dark); --cjip-focus-ring: var(--cjip-action-on-dark); }
.cjip-band-teal { background-color: var(--cjip-action); --cjip-focus-ring: var(--cjip-action-on-dark); }

/* Type scale (SoT index.css h1/.cjip-h1 … .cjip-h3, .cjip-quote, .cjip-pillar-title). Breakpoints 640/1024 are the
   R24 profile edges (mobile_extra, desktop). Sizes are the SoT's own rem values. */
.elementor-widget.cjip-h1 .elementor-heading-title {
	font-family: var(--cjip-font-display);
	font-weight: 700;
	font-size: 2.125rem;
	line-height: 1.12;
	letter-spacing: -0.025em;
	max-width: 22ch;
	text-wrap: balance;
}
/* Inner-page H1 (SP-S1, C6c): SoT index.css `.cjip-h1-inner`, 30 / 36 / 48px at the R24 edges 640 / 1024. */
.elementor-widget.cjip-h1-inner .elementor-heading-title {
	font-family: var(--cjip-font-display);
	font-weight: 700;
	font-size: 1.875rem;
	line-height: 1.14;
	letter-spacing: -0.02em;
	max-width: 20ch;
	text-wrap: balance;
}
.elementor-widget.cjip-h2 .elementor-heading-title {
	font-family: var(--cjip-font-display);
	font-weight: 700;
	font-size: 1.75rem;
	line-height: 1.15;
	letter-spacing: -0.02em;
	max-width: 22ch;
	text-wrap: balance;
}
.elementor-widget.cjip-h3 .elementor-heading-title {
	font-family: var(--cjip-font-sans);
	font-weight: 600;
	font-size: 1.25rem;
	line-height: 1.25;
	text-wrap: balance;
}
.elementor-widget.cjip-quote .elementor-heading-title {
	font-family: var(--cjip-font-display);
	font-weight: 700;
	font-size: 1.625rem;
	line-height: 1.18;
	letter-spacing: -0.02em;
	text-wrap: balance;
}
.elementor-widget.cjip-pillar-title .elementor-heading-title {
	font-family: var(--cjip-font-sans);
	font-weight: 700;
	font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
	line-height: 1.25;
	-webkit-hyphens: auto;
	hyphens: auto;
	overflow-wrap: break-word;
}
@media (min-width: 640px) {
	.elementor-widget.cjip-h1 .elementor-heading-title { font-size: 2.75rem; }
	.elementor-widget.cjip-h1-inner .elementor-heading-title { font-size: 2.25rem; }
	.elementor-widget.cjip-h2 .elementor-heading-title { font-size: 2rem; }
	.elementor-widget.cjip-h3 .elementor-heading-title { font-size: 1.375rem; }
	.elementor-widget.cjip-quote .elementor-heading-title { font-size: 2rem; }
}
@media (min-width: 1024px) {
	.elementor-widget.cjip-h1 .elementor-heading-title { font-size: 3.75rem; }
	.elementor-widget.cjip-h1-inner .elementor-heading-title { font-size: 3rem; }
	.elementor-widget.cjip-h2 .elementor-heading-title { font-size: 2.5rem; }
	.elementor-widget.cjip-h3 .elementor-heading-title { font-size: 1.5rem; }
	.elementor-widget.cjip-quote .elementor-heading-title { font-size: 2.5rem; }
}
/* Contract §9 B5 (the user, 2026-11-05): on short desktop viewports the Home headline takes the inner-page
   desktop size, so the CTA row stays above the fold (1280×720, 1366×657 measured). SoT index.css, same query. */
@media (min-width: 1024px) and (max-height: 720px) {
	.elementor-widget.cjip-h1 .elementor-heading-title { font-size: 3rem; }
}

/* Highlight part of a heading (SP-A7, J9.3): the widget carries the class, the title holds a bare <span>. */
.elementor-widget.cjip-hl-light .elementor-heading-title span {
	background-image: linear-gradient(180deg, transparent 56%, color-mix(in srgb, var(--cjip-action-on-dark) 68%, transparent) 56%);
	padding-inline: 0.12em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}
.elementor-widget.cjip-hl-dark .elementor-heading-title span {
	color: var(--cjip-action-on-dark);
}

/* Card lift (SoT .cjip-card-hover): 1px line border, soft navy shadow and 2px lift on hover only. */
.cjip-card-hover {
	border: 1px solid var(--cjip-border);
}
.elementor-element.cjip-card-hover {
	transition: translate var(--cjip-dur) var(--cjip-ease), box-shadow var(--cjip-dur) var(--cjip-ease), border-color var(--cjip-dur) var(--cjip-ease), background-color var(--cjip-dur) var(--cjip-ease);
}
.elementor-element.cjip-card-hover:hover {
	translate: 0 -2px;
	box-shadow: var(--cjip-shadow-hover);
}

/* Pillar tile on the navy band (SoT .cjip-pillar-tile): white surface, 16px radius, line border, teal underglow;
   stronger glow and 3px lift on hover / focus-within. */
.cjip-pillar-tile {
	background-color: var(--cjip-surface);
	color: var(--cjip-ink);
	border: 1px solid var(--cjip-border);
	box-shadow: var(--cjip-shadow-glow);
}
.elementor-element.cjip-pillar-tile {
	border-radius: var(--cjip-radius-card);
	transition: translate var(--cjip-dur-slow) var(--cjip-ease), box-shadow var(--cjip-dur-slow) var(--cjip-ease), border-color var(--cjip-dur-slow) var(--cjip-ease);
}
.elementor-element.cjip-pillar-tile:hover,
.elementor-element.cjip-pillar-tile:focus-within {
	translate: 0 -3px;
	border-color: var(--cjip-action-on-dark);
	box-shadow: var(--cjip-shadow-glow-hover);
}

@media (prefers-reduced-motion: reduce) {
	.elementor-element.cjip-card-hover,
	.elementor-element.cjip-pillar-tile {
		transition: none !important;
		translate: none !important;
	}
}

/* ---------- C6c: classes the C7 pages consume (first use; section-patterns SP-A5, SP-S14, SP-S1c) ---------- */

/* Check list (SP-A5, J9.7): a Text Editor `<ul>` whose ticks are drawn by CSS, so the list stays one editable
   widget (not Icon List, W9). The tick is Lucide `check` (stroke 2, the vendored glyph) as a mask; its colour,
   size and offset, the list rhythm and the type are the page's (O4, from the digest). `--tile` puts the tick in
   a box: ::before is the box (look O4), ::after the tick, placed by O4 over the box. */
.elementor-widget.cjip-checklist ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.elementor-widget.cjip-checklist li {
	display: flex;
}
.elementor-widget.cjip-checklist li::before,
.elementor-widget.cjip-checklist--tile li::after {
	content: "";
	flex: none;
	box-sizing: border-box;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.elementor-widget.cjip-checklist--tile li {
	position: relative;
}
.elementor-widget.cjip-checklist--tile li::before {
	-webkit-mask: none;
	mask: none;
}
.elementor-widget.cjip-checklist--tile li::after {
	position: absolute;
}

/* Accordion (SP-S14, J9.16, J6.8): a Nested Accordion with .cjip-accordion. Both icon slots hold the same chevron, so
   Elementor's open/closed swap is invisible and the icon wrapper's turn reads as the SoT's `group-open:rotate-180`.
   The timing is the page's (O4, from the digest); under reduced motion the turn is instant (contract §9 B3b). */
.elementor-widget.cjip-accordion .e-n-accordion-item[open] > .e-n-accordion-item-title .e-n-accordion-item-title-icon {
	rotate: 180deg;
}

/* In-page anchor target (J3.18, SP-S1c): SoT `scroll-mt-24`, so a jump lands below the sticky header. */
.cjip-scroll-anchor {
	scroll-margin-top: 6rem;
}

@media (prefers-reduced-motion: reduce) {
	.elementor-widget.cjip-accordion .e-n-accordion-item-title-icon {
		transition: none !important;
	}
}
