/*
Theme Name: SPARC (Glow design)
Theme URI: https://www.glow.io/
Author: Glow
Description: SPARC theme built from the Glow.io Figma design. Pages are built with SPARC blocks in the WordPress editor; colors and fonts are set in Appearance > Customize > SPARC Design.
Version: 2.0.0
Requires at least: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sparc
*/

/* ---------- Tokens (Figma: SPARC variables). Colors, fonts and radius are overridden from the Customizer. ---------- */
:root {
	--c-ink: #0E1116; --c-primary: #181B20; --c-mid: #545B68; --c-line: #DCE0E6; --c-stone: #EEF0F3;
	--c-paper: #F7F8FA; --c-surface: #FFFFFF; --c-accent: #0077CC; --c-link: #005FA3; --c-amber: #FFAD1F; --c-orange: #FE6009;
	--c-on-dark: #F2F4F7; --c-on-dark-2: #B6BCC6; --c-strong: var(--c-mid); --c-hover: #E7EAEE; --c-primary-hover: #262A31;
	--c-ok: #2F7A4F; --c-ok-soft: #E3F1E8; --c-err: #B42318; --c-err-soft: #FDECEA;
	--f-sans: "Geist", "Helvetica Neue", Arial, sans-serif;
	--f-mono: "Geist Mono", ui-monospace, Menlo, monospace;
	--r: 16px; --r-md: 8px; --r-sm: 4px; --r-btn: 999px;
	--container: 1280px;
	--gutter: clamp(20px, 5.6vw, 80px);
	--sec-y: clamp(64px, 8vw, 96px);
	--header-h: 72px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--c-surface); color: var(--c-ink); font-family: var(--f-sans); font-size: 16px; line-height: 26px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--c-link); text-decoration: underline; text-decoration-thickness: from-font; text-underline-position: from-font; transition: color .2s var(--ease); }
a:hover { color: var(--c-ink); }
:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 2px; border-radius: 4px; }
[hidden]:not([hidden="until-found" i]) { display: none !important; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; color: var(--c-ink); text-wrap: balance; }
b, strong { font-weight: 600; }
code { font-family: var(--f-mono); font-size: .9em; background: var(--c-stone); padding: 1px 5px; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--c-line); margin: 32px 0; }
::selection { background: rgba(0, 119, 204, .16); }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; z-index: 100; top: 8px; left: 8px; background: var(--c-surface); color: var(--c-ink); padding: 8px 12px; border-radius: 8px; }

/* ---------- Type styles (Figma text styles) ---------- */
.t-hero { font-size: clamp(40px, 5.2vw, 60px); line-height: 1.0667; letter-spacing: -.035em; font-weight: 400; }
.t-figure { font-size: clamp(36px, 4.6vw, 52px); line-height: 1.077; letter-spacing: -.03em; font-weight: 400; }
.t-h1 { font-size: clamp(28px, 3.2vw, 36px); line-height: 1.222; letter-spacing: -.025em; font-weight: 400; }
.t-h2 { font-size: 24px; line-height: 32px; letter-spacing: -.015em; font-weight: 500; }
.t-h3 { font-size: 20px; line-height: 28px; letter-spacing: -.01em; font-weight: 500; }
.t-lead { font-size: 18px; line-height: 28px; }
.t-body { font-size: 16px; line-height: 26px; }
.t-small { font-size: 14px; line-height: 22px; }
.t-caption { font-size: 12px; line-height: 18px; }
.t-over { font-family: var(--f-mono); font-size: 12px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; color: var(--c-mid); }
.t-id { font-family: var(--f-mono); font-size: 13px; line-height: 18px; font-weight: 500; }
.t-code { font-family: var(--f-mono); font-size: 14px; line-height: 22px; font-weight: 500; }
.is-mid { color: var(--c-mid); }
.is-ink { color: var(--c-ink); }

/* ---------- Layout ---------- */
.s-wrap { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.s-wrap--wide { max-width: calc(2000px + 2 * var(--gutter)); }
@media (min-width: 900px) { .s-wrap--wide { padding-inline: max(36px, min(var(--gutter), 3vw)); } }
.s-section { position: relative; padding-block: var(--sec-y); background: var(--c-surface); }
.s-section--paper { background: var(--c-paper); }
.s-section--white + .s-section--white, .s-section--white { border-top: 1px solid var(--c-line); }
.s-section--paper + .s-section--white { border-top: 1px solid var(--c-line); }
.s-section--white + .s-section--paper { border-top: 1px solid var(--c-line); }
.s-section--tight { padding-block: calc(var(--sec-y) * .6); }
.s-section--flush-top { padding-top: 0; }
.s-section--flush-bottom { padding-bottom: 0; }
.s-label { display: flex; align-items: center; gap: 8px; margin: 0; }
.s-label::before { content: ""; width: 6px; height: 6px; background: var(--c-orange); flex: none; }
.s-head { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.s-head .t-h1 { max-width: 760px; }
.s-head__note { color: var(--c-mid); }
.s-stack { display: flex; flex-direction: column; gap: 48px; }
.s-split { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 32px 80px; align-items: start; }
.s-split > .s-head .t-h1 { max-width: 400px; }
.s-split__body { min-width: 0; max-width: 800px; }
.s-split--text .s-split__body { padding-top: 32px; max-width: 640px; }
.s-headrow { display: flex; gap: 32px; align-items: flex-end; justify-content: space-between; }
.s-headrow .t-h1 { max-width: 640px; }
.s-headrow__aside { width: 480px; max-width: 100%; color: var(--c-mid); margin: 0; flex: none; }
.s-body > * + * { margin-top: 16px; }
.s-body > p, .s-prose > p { color: var(--c-mid); }
.s-body > p:first-child.is-lead, .s-prose .is-lead, .s-body > .has-lead-font-size { font-size: 18px; line-height: 28px; color: var(--c-ink); }
.s-body ul, .s-prose ul { padding-left: 20px; margin: 0; color: var(--c-mid); }
.s-body ul li + li, .s-prose ul li + li { margin-top: 8px; }
.s-body h3, .s-prose h3 { font-size: 20px; line-height: 28px; letter-spacing: -.01em; font-weight: 500; margin-top: 32px; }
.s-body h2, .s-prose h2 { font-size: 24px; line-height: 32px; letter-spacing: -.015em; font-weight: 500; margin-top: 40px; }
@media (max-width: 1279px) { .s-split:not(.s-split--text) { grid-template-columns: 1fr; } .s-split:not(.s-split--text) > .s-head .t-h1 { max-width: 760px; } }
@media (max-width: 1023px) {
	.s-split { grid-template-columns: 1fr; }
	.s-split--text .s-split__body { padding-top: 0; }
	.s-headrow { flex-direction: column; align-items: flex-start; }
	.s-headrow__aside { width: auto; }
}

/* ---------- Buttons and links (Atoms/Actions) ---------- */
.s-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; min-height: 44px; border-radius: var(--r-btn); border: 1px solid transparent; font: 600 14px/20px var(--f-sans); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease); }
.s-btn:hover { text-decoration: none; }
.s-btn:active { transform: translateY(1px); }
.s-btn:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 0; }
.s-btn--lg { padding-inline: 24px; }
.s-btn--primary { background: var(--c-primary); color: var(--c-on-dark); }
.s-btn--primary:hover { background: var(--c-primary-hover); color: var(--c-on-dark); }
.s-btn--secondary { background: var(--c-surface); color: var(--c-ink); border-color: var(--c-line); }
.s-btn--secondary:hover { background: var(--c-hover); color: var(--c-ink); }
.s-btn--accent { background: var(--c-accent); color: var(--c-on-dark); }
.s-btn--accent:hover { background: var(--c-link); color: var(--c-on-dark); }
.s-btn svg { width: 16px; height: 16px; flex: none; transition: transform .25s var(--ease); }
.s-btn:hover svg.i-arrow { transform: translateX(3px); }
.s-btn[disabled] { opacity: .6; cursor: wait; }
.s-link { font-size: 16px; line-height: 26px; color: var(--c-link); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.s-link:hover { text-decoration: underline; color: var(--c-link); }
.s-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.s-actions__row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.s-actions__links { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: flex-end; }
.s-actions--left { align-items: flex-start; }
.s-actions--left .s-actions__row, .s-actions--left .s-actions__links { justify-content: flex-start; }

/* ---------- Header (Organisms/Global/Site header) ---------- */
.s-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--c-line); transition: box-shadow .3s var(--ease), background-color .3s var(--ease); }
.s-header.is-stuck { box-shadow: 0 1px 12px rgba(14, 17, 22, .06); }
.admin-bar .s-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .s-header { top: 46px; } }
.s-header__in { display: flex; align-items: center; gap: 24px; height: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.s-brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--c-ink); min-width: 0; }
.s-brand:hover { color: var(--c-ink); }
.s-wordmark { font: 600 22px/29px var(--f-mono); letter-spacing: 0; color: var(--c-ink); white-space: nowrap; }
.s-wordmark i { font-style: normal; color: var(--c-orange); }
.s-brand img { display: block; max-height: 32px; width: auto; }
.s-brand__tag { font-size: 12px; line-height: 18px; color: var(--c-mid); white-space: nowrap; align-self: flex-end; padding-bottom: 3px; }
.s-nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.s-nav > a, .s-more > button { display: inline-flex; align-items: center; gap: 4px; padding: 12px; border-radius: var(--r-sm); font: 500 14px/20px var(--f-sans); color: var(--c-mid); text-decoration: none; background: none; border: 0; cursor: pointer; white-space: nowrap; transition: color .2s var(--ease), background-color .2s var(--ease); }
.s-nav > a:hover, .s-more > button:hover { color: var(--c-ink); background: var(--c-paper); }
.s-nav > a[aria-current="page"], .s-more > button.is-current { color: var(--c-ink); }
.s-nav > a[aria-current="page"], .s-more > button.is-current { background: var(--c-stone); }
.s-more { position: relative; }
.s-more svg { width: 16px; height: 16px; flex: none; transition: transform .25s var(--ease); }
.s-more > button[aria-expanded="true"] svg { transform: rotate(180deg); }
.s-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 8px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); box-shadow: 0 12px 32px rgba(14, 17, 22, .1); display: flex; flex-direction: column; opacity: 0; transform: translateY(-6px); visibility: hidden; transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s; }
.s-more.is-open .s-menu { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.s-menu a { padding: 10px 12px; border-radius: var(--r-sm); font: 500 14px/20px var(--f-sans); color: var(--c-mid); text-decoration: none; }
.s-menu a:hover, .s-menu a[aria-current="page"] { background: var(--c-paper); color: var(--c-ink); }
.s-header__cta { flex: none; }
.s-burger { display: none; width: 44px; height: 44px; margin-left: auto; border: 1px solid var(--c-line); border-radius: var(--r-btn); background: var(--c-surface); cursor: pointer; align-items: center; justify-content: center; }
.s-burger span { position: relative; width: 18px; height: 2px; background: var(--c-ink); border-radius: 2px; transition: background-color .2s; }
.s-burger span::before, .s-burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--c-ink); border-radius: 2px; transition: transform .3s var(--ease); }
.s-burger span::before { top: -6px; } .s-burger span::after { top: 6px; }
.s-burger[aria-expanded="true"] span { background: transparent; }
.s-burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.s-burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1180px) { .s-brand__tag { display: none; } }
@media (max-width: 1023px) {
	.s-burger { display: inline-flex; }
	.s-header__cta { display: none; }
	.s-nav { position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; margin: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 16px var(--gutter) 32px; background: var(--c-surface); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s; }
	.admin-bar .s-nav { top: calc(var(--header-h) + 46px); }
	.s-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
	.s-nav > a, .s-more > button { padding: 14px 4px; font-size: 18px; line-height: 26px; border-bottom: 1px solid var(--c-line); border-radius: 0; width: 100%; justify-content: space-between; }
	.s-nav > a[aria-current="page"] { box-shadow: none; color: var(--c-ink); }
	.s-nav > a:hover, .s-more > button:hover { background: none; }
	.s-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 12px; display: none; }
	.s-more.is-open .s-menu { display: flex; }
	.s-menu a { font-size: 16px; }
	.s-nav > a[data-nav-cta], .s-nav > a[data-nav-cta]:hover { display: inline-flex !important; margin-top: 24px; align-self: flex-start; width: auto; border-bottom: 0; border-radius: var(--r-btn); padding: 12px 20px; justify-content: center; font-size: 14px; color: var(--c-on-dark); background: var(--c-accent); }
	body.nav-open { overflow: hidden; }
}
@media (min-width: 1024px) { .s-nav [data-nav-cta] { display: none !important; } }

/* ---------- Page hero (section · Hero) ---------- */
.s-hero { position: relative; background: var(--c-surface); padding-top: var(--sec-y); overflow: hidden; }
.s-hero__in { display: flex; flex-direction: column; gap: 40px; padding-bottom: 64px; }
.s-hero__title { max-width: 800px; }
.s-hero--compact .s-hero__in { padding-bottom: 48px; }
.s-hero__row { display: flex; gap: 48px; align-items: flex-start; border-top: 1px solid var(--c-line); padding-top: 32px; }
.s-hero__text { width: 640px; max-width: 100%; display: flex; flex-direction: column; gap: 16px; color: var(--c-mid); }
.s-hero__text > * { margin: 0; }
.s-hero__text > p:first-child { color: var(--c-ink); }
.s-hero__row > .s-actions, .s-hero__row > .wp-block-sparc-actions { margin-left: auto; }
/* Home hero (Figma 4619:8394): lead + buttons left (640px), supporting text right, 80px apart. */
.s-hero__row--split { gap: 80px; }
.s-hero__lead { width: 640px; max-width: 100%; flex: none; display: flex; flex-direction: column; gap: 32px; }
.s-hero__lead > p { margin: 0; font-size: 16px; line-height: 26px; color: var(--c-ink); }
.s-hero__lead .s-actions { margin: 0; align-items: flex-start; }
.s-hero__lead .s-actions__row, .s-hero__lead .s-actions__links { justify-content: flex-start; }
.s-hero__support { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.s-hero__support > p { margin: 0; font-size: 16px; line-height: 26px; color: var(--c-mid); }
.s-hero__horizon { display: block; height: 136px; width: 100%; pointer-events: none; background: url("assets/img/glow-horizon.svg?v=3") right bottom / max(100%, 1440px) 136px no-repeat; }
.s-hero--plain .s-hero__horizon { display: none; }
/* Inner page hero (Figma: label, 36px title, text; no divider). */
.s-hero--page { padding-top: 80px; border-bottom: 1px solid var(--c-line); }
.s-hero--page .s-hero__in { gap: 16px; padding-bottom: 64px; }
.s-hero--page .s-head { gap: 12px; }
.s-hero--page .s-hero__row { border-top: 0; padding-top: 0; }
.s-hero--page .s-hero__text { gap: 12px; }
.s-hero--page .s-hero__text > p:first-child { color: var(--c-mid); }
.s-hero__goal { color: var(--c-ink) !important; font-weight: 500; font-size: 16px; line-height: 26px; }
.s-hero--page + .s-section--white { border-top: 0; }
@media (max-width: 1023px) {
	.s-hero__row { flex-direction: column; gap: 32px; }
	.s-hero__lead { width: 100%; }
	.s-hero__row > .s-actions { margin-left: 0; align-items: flex-start; }
	.s-hero__row .s-actions__row, .s-hero__row .s-actions__links { justify-content: flex-start; }
	.s-hero__horizon { height: 104px; background-size: max(100%, 1100px) 104px; }
}

/* ---------- Strip of cells (stats, feature items) ---------- */
.s-strip { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); border-top: 1px solid var(--c-ink); }
.s-strip > * { padding: 32px 32px 12px; min-width: 0; }
.s-strip > * + * { border-left: 1px solid var(--c-line); }
.s-strip > :first-child { padding-left: 0; }
@media (max-width: 1023px) {
	.s-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.s-strip > :nth-child(2n+1) { padding-left: 0; border-left: 0; }
	.s-strip > :nth-child(n+3) { border-top: 1px solid var(--c-line); }
}
@media (max-width: 639px) {
	.s-strip { grid-template-columns: 1fr; }
	.s-strip > * { padding: 24px 0 16px; border-left: 0 !important; }
	.s-strip > * + * { border-top: 1px solid var(--c-line); }
}
.s-stat { display: flex; flex-direction: column; gap: 8px; }
.s-stat__n { font-size: clamp(44px, 4.6vw, 60px); line-height: 1.0667; letter-spacing: -.035em; color: var(--c-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.s-stat__n i { font-style: normal; color: var(--c-orange); }
.s-stat__t { color: var(--c-mid); margin: 0; }
.s-stat__src { font-size: 12px; line-height: 18px; color: var(--c-mid); }
.s-feature { display: flex; flex-direction: column; gap: 12px; color: var(--c-ink); }
.s-feature__n { font-family: var(--f-mono); font-size: 13px; line-height: 18px; color: var(--c-orange); }
.s-feature__t { font-size: 20px; line-height: 28px; letter-spacing: -.01em; font-weight: 500; margin: 0; }
.s-feature__d { font-size: 14px; line-height: 22px; margin: 0; }
.s-feature__d p { margin: 0 0 8px; } .s-feature__d p:last-child { margin: 0; }

/* list style for cards (checklists, criteria) */
.s-rows { border-top: 1px solid var(--c-ink); }
.s-rows > * { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 16px; padding: 20px 0; border-bottom: 1px solid var(--c-line); }
.s-rows .s-feature__n { padding-top: 4px; }
.s-rows .s-feature__t { font-size: 18px; line-height: 28px; }
.s-rows .s-feature__d { grid-column: 2; color: var(--c-mid); }
.s-boxes { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 16px; }
.s-boxes > * { padding: 24px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r); transition: border-color .2s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
.s-boxes > *:hover { border-color: var(--c-strong); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(14, 17, 22, .06); }
@media (max-width: 1023px) { .s-boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .s-boxes { grid-template-columns: 1fr; } }

/* ---------- Incidents and data tables ---------- */
.s-subhead { display: flex; gap: 24px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; padding-top: 16px; }
.s-subhead p { margin: 0; color: var(--c-mid); }
.s-table { border-top: 1px solid var(--c-ink); }
.s-table__row { display: grid; grid-template-columns: var(--grid, 160px 240px minmax(0, 1fr) 200px); gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--c-line); align-items: start; transition: background-color .2s var(--ease); }
.s-table__row.is-head { padding: 16px 0; }
.s-table__row:not(.is-head):hover { background: linear-gradient(90deg, transparent, var(--c-paper) 8%, var(--c-paper) 92%, transparent); }
.s-table__id { font-family: var(--f-mono); font-size: 13px; line-height: 18px; font-weight: 500; padding-top: 5px; }
.s-table__id a { color: var(--c-link); }
.s-table__nm { font-size: 20px; line-height: 28px; letter-spacing: -.01em; font-weight: 500; color: var(--c-ink); }
.s-table__nm a { color: inherit; text-decoration: none; }
.s-table__nm a:hover { color: var(--c-link); }
.s-table__df { font-size: 14px; line-height: 22px; color: var(--c-mid); }
.s-table__df b { color: var(--c-ink); }
.s-table__bh { font-family: var(--f-mono); font-size: 14px; line-height: 22px; font-weight: 500; color: var(--c-link); }
.s-table__bh a { color: var(--c-link); }
.s-table--compact .s-table__row { padding: 20px 0; }
.s-table--compact .s-table__nm { font-size: 16px; line-height: 26px; }
.s-table__row[hidden] { display: none; }
@media (max-width: 1023px) {
	.s-table__row.is-head { display: none; }
	.s-table__row { grid-template-columns: 1fr !important; gap: 6px; padding: 24px 0; }
	.s-table__id { padding-top: 0; }
}

/* ---------- Anatomy of an entry ---------- */
.s-anat { min-width: 0; }
.s-anat__row { display: grid; grid-template-columns: minmax(0, 1fr) clamp(180px, 22vw, 280px); background: var(--c-surface); border: 1px solid var(--c-line); border-top: 0; }
.s-anat__row:first-child { background: var(--c-stone); border-top: 1px solid var(--c-line); border-radius: var(--r) var(--r) 0 0; }
.s-anat__row:last-child { border-radius: 0 0 var(--r) var(--r); }
.s-anat__cell { padding: 16px 24px; min-width: 0; display: flex; flex-direction: column; }
.s-anat__row:first-child .s-anat__cell:first-child { padding-block: 8px; }
.s-anat__v { font-size: 14px; line-height: 22px; color: var(--c-ink); }
.s-anat__v.is-id { font-family: var(--f-mono); font-weight: 500; }
.s-anat__v.is-name { font-size: 20px; line-height: 28px; letter-spacing: -.01em; font-weight: 500; }
.s-anat__v ul { list-style: none; margin: 0; padding: 0; }
.s-anat__v li::before { content: "• "; }
.s-anat__v p { margin: 0; }
.s-anat__note { padding: 16px 24px; border-left: 1px dashed var(--c-line); font-size: 14px; line-height: 22px; color: var(--c-mid); }
.s-anat__row:first-child .s-anat__note { border-left-style: solid; }
@media (max-width: 767px) {
	.s-anat__row { grid-template-columns: 1fr; }
	.s-anat__note { border-left: 0; border-top: 1px dashed var(--c-line); padding-top: 12px; }
}

/* ---------- Category index ---------- */
.s-cats { border-top: 1px solid var(--c-ink); }
.s-cat { display: grid; grid-template-columns: 340px minmax(0, 1fr) 120px 36px; gap: 32px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--c-line); text-decoration: none; color: inherit; transition: background-color .25s var(--ease); }
.s-cat:hover { color: inherit; }
.s-cat__nm { display: flex; flex-direction: column; gap: 4px; }
.s-cat__nm b { font-size: 20px; line-height: 28px; letter-spacing: -.01em; font-weight: 500; color: var(--c-ink); transition: color .2s var(--ease); }
.s-cat__nm span, .s-cat__n { font-family: var(--f-mono); font-size: 14px; line-height: 22px; font-weight: 500; color: var(--c-mid); }
.s-cat__d { font-size: 14px; line-height: 22px; color: var(--c-mid); }
.s-cat__n { text-align: right; }
.s-cat__go { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-ink); transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.s-cat__go svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.s-cat:hover .s-cat__nm b { color: var(--c-link); }
.s-cat:hover .s-cat__go { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-dark); }
.s-cat:hover .s-cat__go svg { transform: translateX(2px); }
@media (max-width: 1023px) {
	.s-cat { grid-template-columns: minmax(0, 1fr) auto 36px; gap: 8px 16px; }
	.s-cat__d { grid-column: 1 / -1; grid-row: 2; }
	.s-cat__n { text-align: left; }
}
@media (max-width: 559px) { .s-cat__n { display: none; } .s-cat { grid-template-columns: minmax(0, 1fr) 36px; } }

/* ---------- Matrix explorer ---------- */
.s-explorer { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.s-filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.s-search { flex: 1 1 280px; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; background: var(--c-surface); border: 1px solid var(--c-strong); border-radius: var(--r-md); transition: box-shadow .2s var(--ease); }
.s-search:focus-within { box-shadow: 0 0 0 3px rgba(0, 119, 204, .18); border-color: var(--c-accent); }
.s-search svg { width: 18px; height: 18px; color: var(--c-mid); flex: none; }
.s-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 400 16px/26px var(--f-sans); color: var(--c-ink); }
.s-search input::placeholder { color: var(--c-mid); opacity: 1; }
.s-toggle { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; background: var(--c-surface); border: 1px solid var(--c-strong); border-radius: 999px; font: 500 14px/20px var(--f-sans); color: var(--c-ink); cursor: pointer; white-space: nowrap; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.s-toggle:hover { background: var(--c-hover); }
.s-toggle[aria-pressed="true"] { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-dark); }
.s-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.s-chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--c-line); background: var(--c-surface); font: 500 14px/20px var(--f-sans); color: var(--c-ink); cursor: pointer; transition: all .2s var(--ease); }
.s-chip span { font-family: var(--f-mono); font-size: 12px; color: var(--c-mid); }
.s-chip:hover { border-color: var(--c-strong); }
.s-chip[aria-pressed="true"] { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-dark); }
.s-chip[aria-pressed="true"] span { color: var(--c-on-dark-2); }
.s-explorer--bare .s-card__inc { display: none; }
.s-explorer--bare { background: none; border: 0; border-radius: 0; padding: 0; gap: 16px; }
.s-mx-link { align-self: flex-start; font-size: 14px; line-height: 22px; font-weight: 500; }
.s-mx-view { --mx-gap: 8px; --mx-min: 140px; overflow: auto; max-height: var(--mx-h, none); padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: #B6BCC6 transparent; overscroll-behavior-x: contain; }
.s-mx-view::-webkit-scrollbar { width: 4px; height: 6px; }
.s-mx-view::-webkit-scrollbar-thumb { background: #B6BCC6; border-radius: 6px; }
.s-mx-view::-webkit-scrollbar-track { background: transparent; }
.s-mx-zones, .s-mx { display: grid; grid-template-columns: repeat(var(--mx-n, 8), minmax(var(--mx-min), 1fr)); gap: var(--mx-gap); min-width: calc(var(--mx-n, 8) * var(--mx-min) + (var(--mx-n, 8) - 1) * var(--mx-gap)); }
.s-mx-zones { margin-bottom: var(--mx-gap); align-items: end; }
.s-mx-zones span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--c-orange); border-bottom: 2px solid var(--c-orange); padding: 0 2px 6px; }
.s-mx { align-items: start; }
.s-mx__col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.s-mx__head { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; min-height: 64px; padding: 10px 12px; background: var(--c-primary); border-radius: var(--r-sm, 4px); color: var(--c-on-dark); text-decoration: none; transition: background-color .2s var(--ease); }
.s-mx__head b { font-size: 14px; line-height: 20px; font-weight: 600; transition: color .2s var(--ease); }
.s-mx__head small { font-size: 12px; line-height: 16px; color: var(--c-on-dark-2); font-variant-numeric: tabular-nums; }
a.s-mx__head:hover { color: var(--c-on-dark); background: var(--c-primary-hover); }
a.s-mx__head:hover b { color: #7CC4FF; }
.s-mx .s-card { gap: 2px; padding: 8px 10px 9px; border-radius: var(--r-sm, 4px); }
.s-mx .s-card__id { font-size: 11px; line-height: 16px; }
.s-mx .s-card__nm { font-size: 13px; line-height: 18px; padding-right: 10px; }
.s-mx .s-card__inc { top: 10px; right: 9px; }
@media (min-width: 1280px) { .s-mx-view { --mx-gap: 10px; } }
.s-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); color: var(--c-ink); text-decoration: none; text-align: left; font: inherit; transition: border-color .2s var(--ease), opacity .25s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.s-card:hover { border-color: var(--c-strong); color: var(--c-ink); }
.s-card:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 0; }
.s-card__id { font-family: var(--f-mono); font-size: 13px; line-height: 18px; font-weight: 500; color: var(--c-orange); }
.s-card__nm { font-size: 14px; line-height: 22px; }
.s-card__inc { position: absolute; top: 12px; right: 12px; width: 6px; height: 6px; border-radius: 6px; background: var(--c-orange); }
.s-card.is-dim { opacity: .25; }
.s-mx-empty { color: var(--c-mid); margin: 0; }
.s-grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }

/* ---------- CTA band (Talk to Glow) ---------- */
.s-cta-sec { background: var(--c-paper); padding-block: var(--sec-y); border-top: 1px solid var(--c-line); }
.s-cta-sec.is-white { background: var(--c-surface); }
.s-section--paper + .s-cta-sec:not(.is-white), .s-section--white + .s-cta-sec.is-white { padding-top: 0; border-top: 0; }
.s-cta { position: relative; display: flex; align-items: center; gap: 48px; padding: clamp(32px, 4.5vw, 64px); background: #fff; border: 1px solid var(--c-line); border-radius: var(--r); overflow: hidden; isolation: isolate; }
.s-cta__art { position: absolute; inset: -1px; z-index: -1; background: url("assets/img/cta-glow@2x.png") right center / auto 100% no-repeat; pointer-events: none; transition: transform 1.2s var(--ease); transform-origin: 100% 100%; }
.s-cta:hover .s-cta__art { transform: scale(1.04); }
.s-cta__text { display: flex; flex-direction: column; gap: 16px; max-width: 720px; position: relative; }
.s-cta__logo { width: 120px; height: auto; color: var(--c-ink); display: block; }
.s-cta__text h2 { margin: 0; }
.s-cta__text p { margin: 0; color: var(--c-mid); }
.s-cta__act { padding-top: 12px; }
@media (max-width: 767px) { .s-cta__art { background-position: 60% center; opacity: .55; } }

/* ---------- Footer ---------- */
.s-footer { background: var(--c-paper); border-top: 1px solid var(--c-line); padding: 48px 0 40px; }
.s-footer__top { display: flex; justify-content: space-between; gap: 32px 64px; flex-wrap: wrap; padding-bottom: 32px; }
.s-footer__widgets { display: flex; flex-wrap: wrap; gap: 24px 48px; font-size: 14px; line-height: 22px; color: var(--c-mid); }
.s-footer__widgets > * { margin: 0; max-width: 320px; }
.s-footer__widgets h2, .s-footer__widgets h3 { font-size: 14px; line-height: 22px; margin: 0 0 4px; color: var(--c-ink); }
.s-footer__widgets ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.s-footer__widgets a { color: var(--c-mid); }
.s-footer__widgets a:hover { color: var(--c-ink); }
.s-footer__brand { display: flex; flex-direction: column; gap: 8px; min-width: 0; max-width: 100%; }
.s-lockup { display: flex; align-items: center; gap: 12px; color: var(--c-ink); text-decoration: none; }
.s-lockup:hover { color: var(--c-ink); }
.s-lockup__a { display: inline-flex; align-items: center; color: inherit; text-decoration: none; }
.s-lockup__img { display: block; height: 20px; width: auto; max-width: 160px; }
.s-lockup__div { width: 1px; height: 20px; background: var(--c-line); }
.s-lockup svg { width: 58px; height: 18px; }
.s-footer__brand p { width: auto; max-width: 420px; margin: 0; font-size: 12px; line-height: 18px; color: var(--c-mid); }
.s-footer__nav { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 48px; align-content: start; }
.s-footer__nav a { font-size: 14px; line-height: 22px; color: var(--c-mid); text-decoration: none; }
.s-footer__nav a:hover { color: var(--c-ink); text-decoration: underline; }
.s-footer__bottom { border-top: 1px solid var(--c-line); padding-top: 20px; font-size: 12px; line-height: 18px; color: var(--c-mid); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.s-footer__bottom a { color: var(--c-link); }
.s-social { display: inline-flex; gap: 16px; }
@media (min-width: 768px) { .s-footer__nav { grid-template-columns: repeat(3, auto); } }

/* ---------- Behavior page ---------- */
.s-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; line-height: 22px; color: var(--c-mid); }
.s-crumbs a { color: var(--c-mid); text-decoration: none; }
.s-crumbs a:hover { color: var(--c-ink); text-decoration: underline; }
.s-entry { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px 80px; align-items: start; }
.s-entry__main { min-width: 0; display: flex; flex-direction: column; gap: 48px; }
.s-block { display: flex; flex-direction: column; gap: 16px; }
.s-block > .t-over { padding-bottom: 12px; border-bottom: 1px solid var(--c-line); }
.s-defn { font-size: 20px; line-height: 30px; letter-spacing: -.005em; color: var(--c-ink); margin: 0; max-width: 62ch; }
.s-desc p { font-size: 16px; line-height: 26px; color: var(--c-mid); max-width: 72ch; }
.s-desc p:first-child { font-size: 18px; line-height: 28px; color: var(--c-ink); }
.s-qs { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--c-ink); }
.s-qs li { display: grid; grid-template-columns: 40px minmax(0, 1fr); padding: 16px 0; border-bottom: 1px solid var(--c-line); font-size: 16px; line-height: 26px; }
.s-qs li::before { content: counter(q, decimal-leading-zero); counter-increment: q; font-family: var(--f-mono); font-size: 13px; color: var(--c-orange); padding-top: 3px; }
.s-qs { counter-reset: q; }
.s-qs__q { display: block; font-weight: 500; }
.s-qs__a { display: block; margin-top: 4px; font-size: 14px; line-height: 22px; color: var(--c-mid); }
.s-plain { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 16px; line-height: 26px; max-width: 68ch; }
.s-plain { color: var(--c-mid); }
.s-plain li::marker { color: var(--c-mid); }
.s-plain a { color: var(--c-link); }
.s-entry .s-block { gap: 12px; }
.s-entry .s-block > .t-h3 { margin: 0; }
.s-block__sub { margin: 12px 0 0; font-size: 16px; line-height: 24px; font-weight: 500; }
.s-qlist { color: var(--c-ink); gap: 8px; }
.s-qlist li::marker { color: var(--c-ink); }
.s-qlist .s-qs__q { font-weight: 500; }
.s-why { margin: 0; max-width: 68ch; font-size: 16px; line-height: 26px; color: var(--c-mid); }
.s-compare { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--c-line); }
@media (min-width: 720px) { .s-compare { grid-template-columns: 1fr 1fr; } .s-compare__item + .s-compare__item { border-left: 1px solid var(--c-line); padding-left: 24px; } .s-compare__item { padding-right: 24px; } }
.s-compare__item { padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.s-compare__item h3 { margin: 0; font-size: 14px; line-height: 22px; font-weight: 600; }
.s-compare__item p { margin: 0; font-size: 14px; line-height: 22px; color: var(--c-ink); }
.s-story { background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--r); padding: 24px 28px; }
.s-story p { color: var(--c-ink); font-size: 16px; line-height: 26px; max-width: 74ch; }
.s-refs { margin: 0; padding-left: 20px; color: var(--c-mid); font-size: 14px; line-height: 22px; }
.s-refs li + li { margin-top: 8px; }
.s-side { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 12px; }
.s-side dl { margin: 0; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r); overflow: hidden; }
.s-side dl > div { padding: 14px 20px; border-top: 1px solid var(--c-line); }
.s-side dl > div:first-child { border-top: 0; background: var(--c-stone); }
.s-side dt { margin-bottom: 2px; }
.s-side dd { margin: 0; font-size: 14px; line-height: 22px; }
.s-side .s-btn { width: 100%; }
.s-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.s-pager a { display: flex; flex-direction: column; gap: 2px; padding: 16px 20px; border: 1px solid var(--c-line); border-radius: var(--r-md); text-decoration: none; color: var(--c-ink); background: var(--c-surface); transition: border-color .2s var(--ease); }
.s-pager a:hover { border-color: var(--c-strong); color: var(--c-ink); }
.s-pager a .s-card__id { margin-top: 6px; }
@media (max-width: 1023px) { .s-entry { grid-template-columns: 1fr; } .s-side { position: static; } }
@media (max-width: 559px) { .s-pager { grid-template-columns: 1fr; } }

/* ---------- FAQ, glossary, callouts ---------- */
.s-faq { border-top: 1px solid var(--c-ink); }
.s-faq details { border-bottom: 1px solid var(--c-line); }
.s-faq summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) 36px; gap: 24px; align-items: center; padding: 24px 0; cursor: pointer; font-size: 20px; line-height: 28px; letter-spacing: -.01em; font-weight: 500; color: var(--c-ink); transition: color .2s var(--ease); }
.s-faq summary::-webkit-details-marker { display: none; }
.s-faq summary:hover { color: var(--c-link); }
.s-faq summary i { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--c-line); position: relative; transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .3s var(--ease); }
.s-faq summary i::before, .s-faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); }
.s-faq summary i::after { transform: rotate(90deg); }
.s-faq details[open] summary i { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-dark); }
.s-faq details[open] summary i::after { transform: rotate(0); }
.s-faq__a { padding: 0 60px 24px 0; color: var(--c-mid); overflow: hidden; }
.s-faq__a p { max-width: 72ch; }
.s-gloss { border-top: 1px solid var(--c-ink); margin: 0; }
.s-gloss > div { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 8px 32px; padding: 24px 0; border-bottom: 1px solid var(--c-line); }
.s-gloss dt { font-size: 20px; line-height: 28px; letter-spacing: -.01em; font-weight: 500; }
.s-gloss dt small { display: block; font-family: var(--f-mono); font-size: 14px; line-height: 22px; font-weight: 500; color: var(--c-mid); letter-spacing: 0; margin-top: 4px; }
.s-gloss dd { margin: 0; color: var(--c-mid); max-width: 72ch; }
.s-gloss dd ul { padding-left: 20px; }
@media (max-width: 1023px) { .s-gloss > div { grid-template-columns: 1fr; } }
.s-callout { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; padding: 24px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r); }
.s-callout p { margin: 0; color: var(--c-mid); }
.s-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 500 12px/16px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; background: #FFF1E8; color: #B54405; border: 1px solid #FFD2B5; }
.s-pill::before { content: ""; width: 6px; height: 6px; border-radius: 6px; background: var(--c-orange); animation: s-pulse 1.8s ease-in-out infinite; }
@keyframes s-pulse { 50% { opacity: .35; } }
.s-jump { display: flex; flex-wrap: wrap; gap: 8px; }
.s-jump a { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--c-line); font: 500 14px/20px var(--f-sans); color: var(--c-ink); text-decoration: none; background: var(--c-surface); transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.s-jump a:hover { border-color: var(--c-strong); background: var(--c-paper); }

/* ---------- Share ---------- */
.s-copybox { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.s-copybox input, .s-copybox textarea { flex: 1 1 320px; min-width: 0; }
.s-note { font-size: 14px; line-height: 22px; color: var(--c-mid); margin: 0; }

/* ---------- Forms (custom SPARC form) ---------- */
.s-form { display: grid; gap: 24px; max-width: 760px; }
.s-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.s-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.s-field > label, .s-field > .s-field__label { font: 500 12px/16px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--c-mid); }
.s-field .req { color: var(--c-orange); }
.s-input, .s-form input[type="text"], .s-form input[type="email"], .s-form select, .s-form textarea, .s-copybox input, .s-copybox textarea { width: 100%; min-height: 44px; padding: 9px 12px; background: var(--c-surface); border: 1px solid var(--c-strong); border-radius: var(--r-md); font: 400 16px/24px var(--f-sans); color: var(--c-ink); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.s-form textarea, .s-copybox textarea { min-height: 120px; resize: vertical; }
.s-form select { appearance: none; -webkit-appearance: none; padding-right: 40px; background: var(--c-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23545B68' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center no-repeat; }
.s-form :is(input, select, textarea):focus { outline: 0; border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(0, 119, 204, .18); }
.s-form ::placeholder { color: #8A909B; opacity: 1; }
.s-field__hint { font-size: 12px; line-height: 18px; color: var(--c-mid); }
.s-field__err { font-size: 12px; line-height: 18px; color: var(--c-err); display: none; }
.s-field.is-invalid :is(input, select, textarea) { border-color: var(--c-err); box-shadow: 0 0 0 3px rgba(180, 35, 24, .12); }
.s-field.is-invalid .s-field__err { display: block; }
.s-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.s-check { position: relative; }
.s-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.s-check span { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--c-line); border-radius: 999px; font: 500 14px/20px var(--f-sans); cursor: pointer; transition: all .2s var(--ease); background: var(--c-surface); }
.s-check span::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--c-strong); transition: all .2s var(--ease); }
.s-check input:checked + span { border-color: var(--c-primary); background: var(--c-primary); color: var(--c-on-dark); }
.s-check input:checked + span::before { border-color: var(--c-on-dark); background: var(--c-on-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23181B20' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.s-check input:focus-visible + span { outline: 2px solid var(--c-ink); outline-offset: 2px; }
.s-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.s-form__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.s-form__msg { padding: 14px 16px; border-radius: var(--r-md); font-size: 14px; line-height: 22px; border: 1px solid; }
.s-form__msg.is-error { background: var(--c-err-soft); border-color: #F5C2BD; color: var(--c-err); }
.s-form__msg.is-ok { background: var(--c-ok-soft); border-color: #B7DEC5; color: var(--c-ok); }
.s-done { display: flex; flex-direction: column; gap: 16px; padding: 32px; border: 1px solid var(--c-line); border-radius: var(--r); background: var(--c-surface); animation: s-pop .5s var(--ease); }
.s-done__icon { width: 44px; height: 44px; border-radius: 999px; background: var(--c-ok-soft); color: var(--c-ok); display: inline-flex; align-items: center; justify-content: center; }
.s-done__icon svg { width: 22px; height: 22px; }
@keyframes s-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.s-spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: s-rot .7s linear infinite; }
@keyframes s-rot { to { transform: rotate(360deg); } }
@media (max-width: 639px) { .s-form__grid { grid-template-columns: 1fr; } }

/* ---------- Assessment ---------- */
.s-astools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.s-astools .s-search { flex: 1 1 260px; max-width: 420px; }
.s-astools__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.s-sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; border: 1px solid var(--c-line); background: var(--c-surface); }
.s-sw.na { background: transparent; border-style: dashed; border-color: var(--c-mid); }
.s-sw.blind { background: var(--c-orange); border-color: var(--c-orange); }
.s-sw.seen { background: var(--c-ok); border-color: var(--c-ok); }
.s-card.st-na { background: transparent; border-style: dashed; }
.s-card.st-na .s-card__nm { color: var(--c-mid); }
.s-card.st-blind { background: #FFF1E8; border-color: var(--c-orange); }
.s-card.st-seen { background: var(--c-ok-soft); border-color: var(--c-ok); }
.s-card .note-dot { position: absolute; right: 10px; bottom: 8px; font: 500 10px/1 var(--f-mono); color: var(--c-mid); }
button.s-card { cursor: pointer; width: 100%; }
.s-status { font-size: 14px; line-height: 22px; color: var(--c-mid); min-height: 22px; margin: 0; }
.s-shade { position: fixed; inset: 0; background: rgba(14, 17, 22, .32); z-index: 90; animation: s-fade .25s var(--ease); }
@keyframes s-fade { from { opacity: 0; } }
.s-panel { position: fixed; z-index: 91; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); background: var(--c-surface); border-left: 1px solid var(--c-line); overflow-y: auto; display: flex; flex-direction: column; gap: 20px; padding: 28px; box-shadow: -16px 0 40px rgba(14, 17, 22, .12); animation: s-slide .35s var(--ease); }
@keyframes s-slide { from { transform: translateX(24px); opacity: 0; } }
.s-panel__top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.s-panel__x { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--c-line); background: var(--c-surface); cursor: pointer; font-size: 20px; line-height: 1; color: var(--c-mid); }
.s-opts { display: grid; gap: 8px; }
.s-opts label { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--c-line); border-radius: var(--r-md); cursor: pointer; font-size: 14px; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.s-opts label:has(input:checked) { border-color: var(--c-ink); background: var(--c-paper); }
.s-panel textarea { width: 100%; min-height: 110px; padding: 10px 12px; border: 1px solid var(--c-strong); border-radius: var(--r-md); font: 400 15px/24px var(--f-sans); }
.s-pnav { display: flex; gap: 8px; margin-top: auto; }
.s-pnav .s-btn { flex: 1; }
@media (max-width: 559px) { .s-panel { top: auto; left: 0; width: 100%; max-height: 88vh; border-left: 0; border-top: 1px solid var(--c-line); border-radius: var(--r) var(--r) 0 0; } }

/* ---------- Core blocks inside SPARC sections ---------- */
.s-body .wp-block-image img, .s-prose .wp-block-image img { border-radius: var(--r); }
.s-body .wp-block-quote, .s-prose .wp-block-quote { margin: 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--c-orange); color: var(--c-ink); }
.wp-block-separator { border: 0; border-top: 1px solid var(--c-line); margin: 32px 0; }
.s-404 { text-align: left; }

/* ---------- Motion: gentle reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
	.js .s-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
	.js .s-reveal.is-in { opacity: 1; transform: none; }
	.js .s-hero .s-reveal { opacity: 1; transform: none; animation: s-rise .8s var(--ease) both; animation-delay: var(--d, 0s); }
	@keyframes s-rise { from { opacity: 0; transform: translateY(18px); } }
	.s-hero__horizon { animation: s-horizon 1.6s var(--ease) both .2s; }
	@keyframes s-horizon { from { opacity: 0; transform: translateY(12px); } }
	.s-cta__art { animation: s-glow 9s ease-in-out infinite alternate; }
	@keyframes s-glow { to { filter: saturate(1.15) hue-rotate(-6deg); } }
}
@media print { .s-header, .s-footer, .s-cta-sec, .s-hero__horizon { display: none !important; } }
