/* ==========================================================================
   SeriousPlayPro 2027 — main stylesheet
   1. Fonts   2. Tokens & schemes   3. Base   4. Layout   5. Header & nav
   6. Buttons & chips   7. Hero & paths   8. Sections & cards   9. Research
   10. Filters & forms   11. Articles & prose   12. Landing, course, tools
   13. Footer   14. WordPress core classes   15. Utilities
   ========================================================================== */

/* 1. Fonts — self-hosted, latin + latin-ext subsets, variable weights */
@font-face { font-family: "Rubik"; src: url("../fonts/rubik-var.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/roboto-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto Mono"; src: url("../fonts/roboto-mono-var.woff2") format("woff2"); font-weight: 100 700; font-style: normal; font-display: swap; }

/* 2. Tokens. Scheme A Birch is the default. */
:root {
	--font-head: "Rubik", "Segoe UI", system-ui, sans-serif;
	--font-body: "Roboto", "Segoe UI", system-ui, -apple-system, sans-serif;
	--font-mono: "Roboto Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

	--s-1: 4px; --s-2: 8px; --s-3: 16px; --s-4: 24px; --s-5: 40px; --s-6: 64px; --s-7: 96px;
	--radius: 2px;
	--wide: 1200px; --narrow: 760px;
	--header-h: 72px;

	/* A · Birch */
	--bg: #F5F4F0; --surface: #FFFFFF; --surface-2: #ECEAE4;
	--ink: #1B1F24; --ink-2: #3A4048; --muted: #5A6169; --line: #D9D6CE;
	--accent: #2E5E4E; --accent-hover: #1F4337; --on-accent: #FFFFFF;
	--accent-soft: #C9D6CF; --signal: #B5473A;
	--footer-bg: #1B1F24; --footer-ink: #DAD8D2; --footer-muted: #AEB3B8;
	--m0: #2E5E4E; --m1: #1B1F24; --m2: #C9D6CF; --m3: #E4E1D8; --m4: #DCE4DF;
	--focus: #1F5FAD;
}
.scheme-grid { /* B · Open Grid */
	--bg: #FFFFFF; --surface: #F3F5F8; --surface-2: #E9EDF2;
	--ink: #0E1A2B; --ink-2: #3B4756; --muted: #5B6775; --line: #E3E7EC;
	--accent: #1F5FAD; --accent-hover: #174A87; --on-accent: #FFFFFF;
	--accent-soft: #DDE5EE; --signal: #D0643F;
	--footer-bg: #0E1A2B; --footer-ink: #D5DCE4; --footer-muted: #A5B0BD;
	--m0: #1F5FAD; --m1: #E9B949; --m2: #5B8C5A; --m3: #D0643F; --m4: #DDE5EE;
	--focus: #D0643F;
}
.scheme-lab { /* C · Lab */
	--bg: #0F1215; --surface: #1A1F25; --surface-2: #232931;
	--ink: #E8E6E1; --ink-2: #B4BCC5; --muted: #9AA3AD; --line: #2C333B;
	--accent: #6FD3B5; --accent-hover: #9BE3CD; --on-accent: #0F1215;
	--accent-soft: #1F3A33; --signal: #F2B84B;
	--footer-bg: #0A0C0E; --footer-ink: #C9CFD6; --footer-muted: #8E98A3;
	--m0: #6FD3B5; --m1: #E8E6E1; --m2: #1F3A33; --m3: #2C333B; --m4: #F2B84B;
	--focus: #F2B84B;
	color-scheme: dark;
}
/* Section-level scheme switch (e.g. a Lab band on a Birch page). */
.is-scheme-lab { background: #0F1215; color: #E8E6E1; --ink: #E8E6E1; --ink-2: #B4BCC5; --muted: #9AA3AD; --line: #2C333B; --surface: #1A1F25; --accent: #6FD3B5; --on-accent: #0F1215; }
.is-scheme-grid { background: #F3F5F8; --accent: #1F5FAD; --on-accent: #FFFFFF; --surface: #FFFFFF; }

/* 3. Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 var(--s-3); color: var(--ink); }
p { margin: 0 0 var(--s-3); }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
img, svg, video { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
::selection { background: var(--accent-soft); color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-5) 0; }
.icon { display: inline-block; vertical-align: -0.2em; flex: none; }
.mono, code, kbd, pre { font-family: var(--font-mono); }
code { font-size: 0.9em; background: var(--surface-2); padding: 0.1em 0.35em; border-radius: var(--radius); }
pre { background: var(--surface-2); padding: var(--s-3); overflow-x: auto; border-radius: var(--radius); }
.muted { color: var(--muted); }

/* 4. Layout */
.container { width: 100%; max-width: calc(var(--wide) + 64px); margin-inline: auto; padding-inline: 32px; }
.container--narrow { max-width: calc(var(--narrow) + 64px); }
@media (max-width: 600px) { .container { padding-inline: 20px; } }
.site-main { display: block; min-height: 60vh; }
.site-main:focus { outline: none; }
.section { padding-block: var(--s-6); }
.section--tight { padding-block: var(--s-5); }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
.section__title { font-size: clamp(2rem, 3.2vw, 2.75rem); margin: 0; }
.section__title--sm { font-size: 1.75rem; margin-bottom: var(--s-4); }
.section__foot { margin-top: var(--s-4); display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.eyebrow { font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: var(--s-2); }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { color: var(--accent); }

/* 5. Header & navigation */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.site-header__inner { display: flex; align-items: center; gap: var(--s-4); min-height: var(--header-h); }
.brand, .custom-logo-link { display: inline-flex; align-items: center; flex: none; }
.brand img, .custom-logo { height: 30px; width: auto; }
.brand__dark { display: none; }
.scheme-lab .brand__light { display: none; }
.scheme-lab .brand__dark { display: block; }
.site-nav { display: flex; align-items: center; gap: var(--s-4); flex: 1; justify-content: space-between; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px var(--s-1); }
.primary-nav a { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.9875rem; border-radius: var(--radius); }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a, .primary-nav .current_page_item > a { color: var(--accent); background: var(--surface); }
.primary-nav .sub-menu { display: none; position: absolute; min-width: 240px; background: var(--surface); border: 1px solid var(--line); padding: var(--s-2); flex-direction: column; box-shadow: 0 12px 32px rgb(0 0 0 / 0.08); }
.primary-nav li { position: relative; }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: flex; }
.account-nav { display: flex; align-items: center; gap: var(--s-2); }
.account-link { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.9375rem; padding: 6px 8px; }
.account-link__avatar { border-radius: 50%; }
.nav-toggle, .search-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: var(--radius); cursor: pointer; }
.nav-toggle { display: none; margin-left: auto; }
.site-search { border-top: 1px solid var(--line); padding-block: var(--s-3); background: var(--bg); }
@media (max-width: 1080px) {
	.nav-toggle { display: inline-flex; }
	.site-nav { display: none; position: absolute; inset: 100% 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: var(--s-3) 20px var(--s-4); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
	.site-nav.is-open { display: flex; }
	.primary-nav ul { flex-direction: column; }
	.primary-nav a { padding: 12px 8px; font-size: 1.0625rem; }
	.primary-nav .sub-menu { position: static; display: flex; box-shadow: none; border: 0; padding: 0 0 0 var(--s-3); background: transparent; }
	.account-nav { flex-wrap: wrap; padding-top: var(--s-3); border-top: 1px solid var(--line); }
}

/* 6. Buttons & chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 48px; padding: 12px 22px; border-radius: var(--radius); border: 1px solid transparent; font-family: var(--font-body); font-weight: 500; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn--sm { min-height: 44px; padding: 10px 16px; font-size: 0.9375rem; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark:hover { background: var(--accent); color: var(--on-accent); }
.btn--outline, .btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost { border-color: var(--line); }
.btn--outline:hover, .btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--link { background: none; color: var(--accent); padding-inline: 0; min-height: 44px; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 var(--s-2); }
.chip, .chips a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; font-size: 0.8125rem; line-height: 1.4; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; border-radius: var(--radius); }
.chip::before { content: ""; width: 8px; height: 8px; background: var(--m2); flex: none; }
.chip--spp_case_type::before { background: var(--m0); }
.chip--spp_industry::before { background: var(--m1); }
.chip--spp_geography::before { background: transparent; border: 2px solid var(--muted); width: 8px; height: 8px; box-sizing: border-box; }
a.chip:hover, .chips a:hover { border-color: var(--accent); color: var(--accent); }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 0.75rem; font-weight: 500; padding: 3px 8px; border-radius: var(--radius); }
.badge--oa { background: var(--accent-soft); color: var(--ink); }

/* 7. Hero & audience paths */
.hero { padding-block: var(--s-6) var(--s-5); }
.hero__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--s-6); align-items: center; }
.hero__title { font-size: clamp(2.75rem, 6vw, 4.75rem); line-height: 1.02; letter-spacing: -0.025em; font-weight: 600; margin-bottom: var(--s-4); }
.hero__title .accent, .page-title .accent { color: var(--accent); }
.hero__lead { font-size: 1.1875rem; color: var(--ink-2); max-width: 34em; margin-bottom: var(--s-4); }
.hero__sub { margin-top: var(--s-3); color: var(--muted); font-size: 0.9375rem; }
.hero__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); display: block; }
.hero__pattern { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; aspect-ratio: 1; max-width: 520px; margin-left: auto; }
.m, .card__placeholder { display: block; background: var(--m2); }
.m--0 { background: var(--m0); } .m--1 { background: var(--m1); } .m--2 { background: var(--m2); } .m--3 { background: var(--m3); }
.m--4 { background: transparent; box-shadow: inset 0 0 0 6px var(--m1); }
.hero__pattern .m:nth-child(3n) { opacity: .85; }
@media (max-width: 700px) { .hero__pattern { display: none; } .hero { padding-block: var(--s-5) var(--s-4); } }
.section--paths { padding-block: var(--s-4) var(--s-6); }
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.path { background: var(--surface); padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); }
.path__num { font-family: var(--font-head); font-size: 2.25rem; color: var(--accent); line-height: 1; font-weight: 500; }
.path__title { font-size: 1.25rem; margin: 0; }
.path__intro { color: var(--muted); font-size: 0.9375rem; margin: 0; }
.link-list { list-style: none; margin: var(--s-1) 0 0; padding: 0; }
.link-list li { border-top: 1px solid var(--line); }
.link-list a { display: flex; justify-content: space-between; gap: var(--s-2); padding: 10px 0; color: var(--ink); text-decoration: none; }
.link-list a::after { content: "→"; color: var(--muted); transition: transform .15s; }
.link-list a:hover { color: var(--accent); }
.link-list a:hover::after { transform: translateX(3px); color: var(--accent); }

/* 8. Sections & cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: var(--s-4); }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card__media { display: block; aspect-ratio: 3 / 2; background: var(--surface-2); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card__media img { transform: scale(1.03); }
.card__placeholder { width: 100%; height: 100%; }
.card__placeholder.m--4 { background: var(--m3); box-shadow: none; }
.card__body { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-4); flex: 1; }
.card__label { font-size: 0.8125rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; margin: 0; font-weight: 500; }
.card__title { font-size: 1.3125rem; line-height: 1.25; margin: 0; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--accent); }
.card__excerpt { color: var(--ink-2); font-size: 0.9875rem; margin: 0; }
.card__meta { color: var(--muted); font-size: 0.875rem; margin: auto 0 0; }
.card__more { font-weight: 500; font-size: 0.9375rem; text-decoration: none; }
.card__more::after { content: " →"; }
.cta-band { margin-top: var(--s-6); background: var(--ink); color: var(--bg); padding: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; justify-content: space-between; border-radius: var(--radius); }
.cta-band h2 { color: var(--bg); font-size: 1.75rem; margin-bottom: var(--s-2); }
.cta-band p { margin: 0; opacity: .85; }
.cta-band .btn--primary { background: var(--bg); color: var(--ink); }
.cta-band .btn--primary:hover { background: var(--accent-soft); color: var(--ink); }
.result-count { color: var(--muted); margin-bottom: var(--s-3); }
.empty { padding: var(--s-5) 0; }

/* 9. Research */
.research-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.research-list > li { border-bottom: 1px solid var(--line); }
.research { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: var(--s-4); padding: var(--s-4) 0; align-items: start; }
.research__year { font-family: var(--font-head); font-size: 1.5rem; color: var(--accent); margin: 0; line-height: 1.2; font-weight: 500; }
.research__title { font-size: 1.1875rem; line-height: 1.3; margin: 0 0 var(--s-1); }
.research__title a { color: var(--ink); text-decoration: none; }
.research__title a:hover { color: var(--accent); }
.research__meta { color: var(--muted); font-size: 0.9375rem; margin: 0 0 var(--s-2); }
.research__summary { color: var(--ink-2); font-size: 0.9875rem; margin: 0; max-width: 60em; }
.research__actions { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s-2); }
.research__link { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; font-size: 0.9375rem; text-decoration: none; min-height: 44px; }
@media (max-width: 700px) {
	.research { grid-template-columns: 56px minmax(0, 1fr); }
	.research__actions { grid-column: 2; flex-direction: row; align-items: center; }
}
.citation { font-family: var(--font-mono); font-size: 0.875rem; background: var(--surface); border: 1px solid var(--line); padding: var(--s-3); word-break: break-word; }

/* 10. Filters & forms */
.filters { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: flex-end; margin-top: var(--s-4); padding: var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 180px; flex: 1 1 180px; }
.field--grow { flex: 2 1 240px; }
.field--actions { flex: 0 0 auto; flex-direction: row; min-width: 0; align-items: center; }
.field__label { font-size: 0.8125rem; font-weight: 500; color: var(--ink-2); }
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="password"], input[type="number"], input[type="tel"], select, textarea {
	width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); border-radius: var(--radius);
}
textarea { min-height: 140px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 0; }
.search-form { display: flex; gap: var(--s-2); max-width: 640px; }
.search-form__input { flex: 1; }
.cat-nav ul { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cat-nav a { display: inline-flex; gap: 6px; align-items: center; padding: 8px 12px; min-height: 40px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-size: 0.9375rem; border-radius: var(--radius); }
.cat-nav a:hover, .cat-nav a[aria-current="page"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.cat-nav .count { font-size: 0.75rem; opacity: .7; }

/* 11. Articles & prose */
.page-header { padding-block: var(--s-6) var(--s-4); border-bottom: 1px solid var(--line); }
.page-header--landing { padding-block: var(--s-6) var(--s-3); border-bottom: 0; }
.page-header--community { padding-block: var(--s-5) var(--s-3); }
.page-title { font-size: clamp(2.25rem, 4.5vw, 3.5rem); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: var(--s-3); }
.page-intro { font-size: 1.1875rem; color: var(--ink-2); max-width: 40em; }
.article__meta { color: var(--muted); font-size: 0.9375rem; }
.article__meta a { color: var(--ink-2); }
.article__media { margin: var(--s-5) auto 0; }
.article__media img { width: 100%; border-radius: var(--radius); }
.prose { font-size: 1.125rem; line-height: 1.7; }
.prose > * + * { margin-top: var(--s-3); }
.prose h2 { font-size: 1.875rem; margin-top: var(--s-5); }
.prose h3 { font-size: 1.375rem; margin-top: var(--s-4); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 6px; }
.prose blockquote, .wp-block-quote { margin: var(--s-4) 0; padding: 0 0 0 var(--s-4); border-left: 3px solid var(--accent); font-size: 1.25rem; color: var(--ink-2); }
.prose img { border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
.prose--wide { max-width: none; }
.lead { font-size: 1.25rem; color: var(--ink-2); }
.licence-note { font-size: 0.875rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: var(--s-3); margin-top: var(--s-5); }
.author-box { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-top: var(--s-4); }
.author-box img { border-radius: 50%; flex: none; }
.author-box__name { font-family: var(--font-head); font-weight: 600; font-size: 1.125rem; margin: 0 0 4px; }
.author-box__name a { color: var(--ink); text-decoration: none; }
.author-box__bio { color: var(--ink-2); font-size: 0.9375rem; margin-bottom: var(--s-2); }
.disclosure { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3) var(--s-4); margin: var(--s-4) 0; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--signal); border-radius: var(--radius); font-size: 0.9375rem; }
.disclosure__label { font-weight: 600; font-family: var(--font-head); flex: none; }
.disclosure p { margin: 0; color: var(--ink-2); }
.editor-note { display: none; }
.logged-in .editor-note { display: block; padding: var(--s-2) var(--s-3); border: 1px dashed var(--signal); color: var(--signal); font-size: 0.9375rem; }
.comments { margin-top: var(--s-4); }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding: var(--s-3) 0; border-top: 1px solid var(--line); }
.comment-list .children { list-style: none; padding-left: var(--s-4); }
.comment-author img { border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.comment-metadata { font-size: 0.875rem; color: var(--muted); }
.comment-metadata a { color: inherit; }

/* Pagination */
.pagination { margin-top: var(--s-5); }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; border-radius: var(--radius); background: var(--surface); }
.page-numbers.current { background: var(--ink); color: var(--bg); border-color: var(--ink); }
a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }

/* 12. Landing tiles, course, tools */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--s-3); }
.tile { position: relative; display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-4); min-height: 180px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; border-radius: var(--radius); }
.tile:hover { border-color: var(--accent); }
.tile__num { font-family: var(--font-head); color: var(--accent); font-size: 1.75rem; line-height: 1; }
.tile__title { font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; }
.tile__text { color: var(--ink-2); font-size: 0.9375rem; }
.tile__arrow { margin-top: auto; color: var(--accent); }
.course__progress { color: var(--muted); margin-bottom: var(--s-2); }
.progress { height: 8px; background: var(--surface-2); border-radius: var(--radius); overflow: hidden; max-width: 420px; }
.progress span { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.lesson-list { list-style: none; margin: var(--s-4) 0; padding: 0; border-top: 1px solid var(--line); }
.lesson-list__item { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.lesson-list__num { font-family: var(--font-head); color: var(--accent); font-size: 1.25rem; width: 2.5ch; }
.lesson-list__item a { flex: 1; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1.0625rem; }
.lesson-list__item a:hover { color: var(--accent); }
.lesson-list__state { color: var(--accent); opacity: 0; }
.lesson-list__item.is-done .lesson-list__state { opacity: 1; }
.lesson-nav { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: space-between; align-items: center; }
.lesson-nav__pager { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.lesson-nav__done[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.terminal { font-family: var(--font-mono); background: var(--surface); border: 1px solid var(--line); padding: 14px 18px; max-width: 640px; overflow-x: auto; white-space: nowrap; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--s-3); }
.tool { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-4); min-height: 200px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; border-radius: var(--radius); }
.tool:hover { border-color: var(--accent); }
.tool__num { font-size: 0.8125rem; color: var(--muted); }
.tool__title { font-family: var(--font-head); font-size: 1.375rem; font-weight: 600; }
.tool__text { color: var(--ink-2); font-size: 0.9375rem; }
.tool--cta { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.tool--cta .tool__num, .tool--cta .tool__text { color: var(--on-accent); opacity: .85; }

/* 13. Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); padding-block: var(--s-6) var(--s-4); margin-top: var(--s-6); font-size: 0.9375rem; }
.site-footer a { color: #FFFFFF; }
.scheme-lab .site-footer a { color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: var(--s-5); }
@media (max-width: 1080px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 30px; width: auto; margin-bottom: var(--s-3); }
.footer-brand p { color: var(--footer-muted); max-width: 32em; }
.footer-col__title { font-size: 1rem; color: #FFFFFF; margin-bottom: var(--s-2); }
.site-footer .link-list li { border-top-color: rgb(255 255 255 / 0.12); }
.site-footer .link-list a { color: var(--footer-ink); padding: 8px 0; }
.site-footer .link-list a:hover { color: #FFFFFF; }
.social { list-style: none; padding: 0; margin: var(--s-3) 0 0; display: flex; flex-wrap: wrap; gap: var(--s-3); }
.social a { text-decoration: none; }
.footer-legal { border-top: 1px solid rgb(255 255 255 / 0.12); margin-top: var(--s-5); padding-top: var(--s-4); color: var(--footer-muted); font-size: 0.8125rem; }
.footer-legal p { margin-bottom: var(--s-2); max-width: 70em; }
.legal-menu { list-style: none; padding: 0; margin: var(--s-2) 0 0; display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* 14. WordPress core classes */
.alignwide { max-width: var(--wide); margin-inline: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.alignleft { float: left; margin: 0 var(--s-4) var(--s-3) 0; }
.alignright { float: right; margin: 0 0 var(--s-3) var(--s-4); }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption, figure { margin: var(--s-4) 0; }
.wp-caption-text, figcaption, .wp-element-caption { font-size: 0.875rem; color: var(--muted); margin-top: var(--s-2); }
.wp-block-button__link { border-radius: var(--radius); background: var(--accent); color: var(--on-accent); padding: 12px 22px; text-decoration: none; }
.wp-block-embed, .wp-block-video { margin: var(--s-4) 0; }
.sticky .card__title::before { content: "★ "; color: var(--accent); }
.bypostauthor > .comment-body .fn::after { content: " (author)"; color: var(--muted); font-weight: 400; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--s-2); }

/* 15. Utilities */
.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; }
.screen-reader-text:focus, .skip-link:focus { background: var(--ink); color: var(--bg); clip: auto !important; clip-path: none; display: block; height: auto; left: 8px; top: 8px; padding: 12px 16px; width: auto; z-index: 100000; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .cta-band, .lesson-nav, .filters { display: none; } body { background: #FFFFFF; color: #000000; } }
