/*
 * Templates converted from the static design HTML (G12). The markup carries
 * the design's inline styles; this sheet holds only what inline styles cannot:
 * fonts, page base, hover/focus rules (named by rule hash, see
 * tools/visual-check/static2php.py) and the dark palette.
 */
/* G27: `optional` removes the Peyda layout shift seen in G26; the font is
   preloaded in header.php, so it still wins when it arrives in time. */
@font-face { font-family: "Peyda"; src: url("../fonts/PeydaWebVF.woff2") format("woff2"); font-weight: 100 900; font-display: optional; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
html, body { margin: 0; }
body { background: rgb(242, 238, 229); }
a { color: inherit; }
a:hover { color: inherit; }
summary::-webkit-details-marker { display: none; }
/* The design frame clips overflow (overflow: hidden); clip keeps sticky working. */
[data-sp-root] { overflow-x: clip; }
.skip-link { position: absolute; inset-inline-start: 8px; top: -100px; z-index: 100; padding: 8px 16px; border-radius: 9999px; background: #16140F; color: #F2EEE5; font-family: Peyda, system-ui, sans-serif; }
.skip-link:focus { top: 8px; }

/* Dark palette: the same custom properties the design switches (Shell.dc.html). */
html[data-theme="dark"] body { background: #14130F; }
html[data-theme="dark"] [data-sp-root] { --paper: #14130F !important; --ink: #F2EEE5 !important; --muted: #B3AC9D !important; --line: #2E2B24 !important; --card: #1F1D18 !important; --band: #0A0908 !important; }

/* Hover and focus rules from the design. */
.sph-37345a:hover { color: var(--ink, #16140F) !important; text-decoration-line: underline !important; text-decoration-style: initial !important; text-decoration-color: var(--accent, #FF5A1F) !important; text-decoration-thickness: 2px !important; text-underline-offset: 6px !important; }
.sph-47fe74:focus-visible { outline: 3px solid var(--accent, #FF5A1F) !important; outline-offset: 2px !important; }
.sph-8d3e77:hover { border-color: var(--ink, #16140F) !important; }
.sph-b04bcf:hover { background: rgb(242, 238, 229) !important; color: rgb(22, 20, 15) !important; }
.sph-c7c72e:hover { color: rgb(242, 238, 229) !important; text-decoration-line: underline !important; text-decoration-thickness: initial !important; text-decoration-style: initial !important; text-decoration-color: var(--accent, #FF5A1F) !important; text-underline-offset: 5px !important; }
.sph-db7f9a:focus-visible { outline: rgb(242, 238, 229) solid 2px !important; outline-offset: 2px !important; }
.sph-f86ba2:hover { color: var(--ink, #16140F) !important; }
.sph-mm1:hover { text-decoration: underline; text-decoration-color: var(--accent, #FF5A1F); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.sph-mm2:hover { color: var(--ink, #16140F); text-decoration: underline; text-decoration-color: var(--accent, #FF5A1F); text-underline-offset: 5px; }
.sph-mm3:hover { text-decoration: underline; text-decoration-color: var(--accent, #FF5A1F); text-underline-offset: 5px; }
.sph-0e6c76:hover { color: var(--ink, #16140F) !important; text-decoration: underline !important; }
.sph-101156:hover { background: var(--accent, #FF5A1F) !important; color: rgb(22, 20, 15) !important; }
.sph-3e680f:hover { border-color: var(--ink, #16140F) !important; color: var(--ink, #16140F) !important; }
.sph-86895e:hover { color: var(--accent, #FF5A1F) !important; }
.sph-f44c96:hover { background: var(--accent, #FF5A1F) !important; border-color: var(--accent, #FF5A1F) !important; color: rgb(22, 20, 15) !important; }
.sph-fbc749:hover { background: var(--ink, #16140F) !important; color: var(--paper, #F2EEE5) !important; }

/* Product review text from the editor: the same look as the design's inline-styled paragraphs. */
[data-v12-prose] p, [data-v12-prose] ul, [data-v12-prose] ol { margin: 0; color: var(--muted, #5B5548); text-wrap: pretty; }
[data-v12-prose] a { text-underline-offset: 5px; text-decoration-color: var(--accent, #FF5A1F); }
.sph-65a5e5:focus-visible { outline: rgb(242, 238, 229) solid 3px !important; outline-offset: 3px !important; }
.sph-6e6d33:hover { background: rgb(242, 238, 229) !important; }

/* Article body from the editor: the same look as the design's inline-styled h2 and p. */
[data-v12-article] h2 { margin: 16px 0 0; font-size: 28px; line-height: 1.4; font-weight: 800; scroll-margin-top: 96px; }
[data-v12-article] h3 { margin: 8px 0 0; font-size: 22px; line-height: 1.5; font-weight: 800; scroll-margin-top: 96px; }
[data-v12-article] p, [data-v12-article] ul, [data-v12-article] ol { margin: 0; color: var(--muted, #5B5548); }
[data-v12-article] img { max-width: 100%; height: auto; border-radius: 24px; }
[data-v12-article] a { text-underline-offset: 5px; text-decoration-color: var(--accent, #FF5A1F); }
/* Request forms (11-forms): honeypot, focus and the chosen time slot. */
[data-sp-root] .site-form__hp { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sph-05f2e6:focus { outline: 3px solid var(--accent, #FF5A1F) !important; outline-offset: 1px !important; border-color: var(--ink, #16140F) !important; }
.sph-27e15f:focus-visible { outline: 3px solid var(--ink, #16140F) !important; outline-offset: 2px !important; }
[data-v12-slot] input { position: absolute; opacity: 0; inline-size: 1px; block-size: 1px; margin: 0; }
[data-v12-slot]:has(input:checked) { border-color: var(--ink, #16140F) !important; background: var(--ink, #16140F) !important; color: var(--paper, #F2EEE5) !important; }
[data-v12-slot]:has(input:focus-visible) { outline: 3px solid var(--accent, #FF5A1F); outline-offset: 2px; }
[data-v12-slot] { position: relative; }
/* Glossary search hides terms and letters with the hidden attribute. */
[data-section="glossary"] [hidden] { display: none !important; }
/* WordPress' visually hidden text (story row title, kept parts). */
.screen-reader-text { position: absolute !important; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* The story viewer covers the converted header (30) and phone bar (25). */
.story-viewer { z-index: 40; }
.sph-2741cb:hover { color: rgb(22, 20, 15) !important; }
.sph-e83982:hover { color: rgb(242, 238, 229) !important; }
/* "Show samples" mode: the label on each section that shows sample content. */
[data-sp-has-sample] { position: relative; }
[data-sp-sample] { position: absolute; inset-block-start: 8px; inset-inline-end: 8px; z-index: 6; padding: 3px 10px; border-radius: 9999px; background: #FF5A1F; color: #16140F; font-size: 12px; font-weight: 800; line-height: 1.6; cursor: help; }
/* Elements toggled with the hidden attribute stay hidden over their inline display. */
[data-sp-root] [hidden] { display: none !important; }
/* Assessment answers: radio inside the design's option, chosen and missing states. */
[data-v12-choice] input { position: absolute; opacity: 0; inline-size: 1px; block-size: 1px; margin: 0; }
[data-v12-choice] { position: relative; }
[data-v12-choice]:has(input:checked) { border-color: var(--ink, #16140F) !important; box-shadow: inset 0 0 0 1.5px var(--ink, #16140F); }
[data-v12-choice]:has(input:focus-visible) { outline: 3px solid var(--accent, #FF5A1F); outline-offset: 2px; }
[data-assessment-step].is-invalid fieldset { outline: 2px solid var(--accent, #FF5A1F); }
/* Career finder: a chosen interest. */
[data-career-chips] [aria-pressed="true"] { border-color: var(--ink, #16140F) !important; background: var(--ink, #16140F) !important; color: var(--paper, #F2EEE5) !important; }
.sph-b01463:focus { outline: 3px solid var(--accent, #FF5A1F) !important; outline-offset: 1px !important; }
/* G14 header (Shell.dc.html): hover rules of the new menus, footer column titles, focus and motion. */
.sph-5aba40:hover { text-decoration-line: underline !important; text-decoration-style: initial !important; text-decoration-color: var(--accent, #FF5A1F) !important; text-decoration-thickness: 2px !important; text-underline-offset: 6px !important; }
.sph-be61ae:hover { text-decoration-line: underline !important; text-decoration-thickness: initial !important; text-decoration-style: initial !important; text-decoration-color: var(--accent, #FF5A1F) !important; text-underline-offset: 5px !important; }
.sph-e524a5:focus-visible { outline: 3px solid var(--accent, #FF5A1F) !important; outline-offset: -5px !important; }
.sph-f71d5e:hover { color: var(--ink, #16140F) !important; text-decoration-line: underline !important; text-decoration-thickness: initial !important; text-decoration-style: initial !important; text-decoration-color: var(--accent, #FF5A1F) !important; text-underline-offset: 5px !important; }
[data-sp-root] .sp-fm { display: none; }
@container (max-width: 719.98px) { [data-sp-root] .sp-fd { display: none !important; } [data-sp-root] .sp-fm { display: block; } }
[data-v12-header] a:focus-visible, [data-v12-header] button:focus-visible, #m-drawer a:focus-visible, #m-drawer button:focus-visible, #m-drawer input:focus-visible { outline: 3px solid var(--accent, #FF5A1F); outline-offset: 2px; }
#dr-open:focus-visible { outline-offset: -5px; }
[data-v12-header] :focus:not(:focus-visible), #m-drawer :focus:not(:focus-visible) { outline: none; }
@media (prefers-reduced-motion: reduce) { [data-v12-header] svg, #m-drawer svg { transition: none !important; } }
/* Story row in the converted templates: the surrounding sections keep their own padding, so no negative margin (it pulled the next section over the titles). */
[data-sp-root] .stories-row { margin-block: 0 var(--space-32); }
/* Global search panel (Shell.dc.html, SPEC.md): full screen below 1000px, a floating 880px panel with a scrim above. */
#sr-panel { position: fixed; top: 0; inset-inline: 0; margin-inline: auto; z-index: 55; box-sizing: border-box; width: 100%; height: 100dvh; flex-direction: column; overflow: hidden; background: var(--paper, #F2EEE5); color: var(--ink, #16140F); }
#sr-panel [data-sr-form] { padding: 10px 12px; }
#sr-panel [data-sr-body] { padding: 16px 12px 24px; }
#sr-scrim { position: fixed; top: 72px; inset-inline: 0; height: calc(100dvh - 72px); z-index: 54; background: #16140F59; }
@media (min-width: 1000px) {
	#sr-panel { top: 80px; width: min(880px, calc(100% - 48px)); height: auto; max-height: calc(100dvh - 104px); border: 1px solid var(--line, #DDD6C8); border-radius: 24px; box-shadow: 0 24px 48px -24px #16140F59; }
	#sr-panel [data-sr-form] { padding: 16px; }
	#sr-panel [data-sr-body] { padding: 20px 16px 24px; }
}
@media (max-width: 999.98px) { #sr-scrim { display: none !important; } }
#sr-panel [data-sr-row]:hover, #sr-panel [role="option"]:hover { background: var(--card, #E8E2D5) !important; }
#sr-panel [data-sr-rm]:hover { color: var(--ink, #16140F) !important; }
.sph-sr-all:hover { background: var(--accent, #FF5A1F) !important; color: #16140F !important; }
#sr-panel a:focus-visible, #sr-panel button:focus-visible { outline: 3px solid var(--accent, #FF5A1F); outline-offset: 2px; }
#sr-panel :focus:not(:focus-visible) { outline: none; }
#sr-panel mark { background: none; color: inherit; font-weight: 800; text-decoration: underline; text-decoration-color: var(--accent, #FF5A1F); text-decoration-thickness: 2px; text-underline-offset: 5px; }
#sr-q::-webkit-search-cancel-button, #sr-q::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.sph-3b682c:focus-visible { outline: rgb(242, 238, 229) solid 3px !important; outline-offset: 2px !important; }
/* G17 cart, checkout and account: WooCommerce's own notices and forms in the design's tone (its storefront sheets are not loaded there). */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-NoticeGroup { flex: 1 1 100%; }
.woocommerce-error, .woocommerce-message, .woocommerce-info { list-style: none; margin: 0; padding: 16px 20px; border-radius: 16px; background: var(--card, #E8E2D5); color: var(--ink, #16140F); font-weight: 600; display: flex; flex-direction: column; gap: 6px; }
.woocommerce-error { color: #B3261E; }
.woocommerce-error li, .woocommerce-message li, .woocommerce-info li { margin: 0; }
.woocommerce-message a, .woocommerce-info a, .woocommerce-error a { color: inherit; font-weight: 800; text-decoration-color: var(--accent, #FF5A1F); text-underline-offset: 5px; }
.woocommerce-privacy-policy-text p { margin: 0; font-size: 13px; color: var(--muted, #5B5548); }
.woocommerce-form-login, .checkout_coupon { margin: 0; padding: 20px; border-radius: 24px; border: 1.5px solid var(--line, #DDD6C8); display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.woocommerce-form-login .form-row, .checkout_coupon .form-row { margin: 0; display: flex; flex-direction: column; gap: 6px; font-weight: 700; flex: 1 1 220px; }
.woocommerce-form-login input.input-text, .checkout_coupon input.input-text { min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line, #DDD6C8); background: var(--paper, #F2EEE5); color: var(--ink, #16140F); font: inherit; }
.woocommerce-form-login button, .checkout_coupon button { min-height: 52px; padding: 0 22px; border-radius: 9999px; border: 1.5px solid var(--ink, #16140F); background: none; color: var(--ink, #16140F); font: inherit; font-weight: 700; cursor: pointer; }
.woocommerce-form-login .clear, .checkout_coupon .clear { display: none; }
.woocommerce-order-details, .woocommerce-customer-details { display: flex; flex-direction: column; gap: 12px; }
.woocommerce-order-details h2, .woocommerce-customer-details h2 { margin: 0; font-size: 20px; font-weight: 800; }
.woocommerce-table--order-details { width: 100%; border-collapse: collapse; font-size: 15px; }
.woocommerce-table--order-details th, .woocommerce-table--order-details td { padding: 10px 0; border-top: 1px solid var(--line, #DDD6C8); text-align: start; }
.woocommerce-customer-details address { font-style: normal; line-height: 1.8; color: var(--muted, #5B5548); }
.woocommerce-terms-and-conditions-wrapper:not(:has(*)) { display: none; }
/* Services hub: the group title column is sticky only beside its rows; stacked (below 1000px) it would slide over them. */
@media (max-width: 999px) { [data-v12-sticky] { position: static !important; } }

/* G21: post content sections (service, case study, about) and honest stand-ins for images and charts until the final design arrives. */
.sp-body { max-width: 760px; display: flex; flex-direction: column; gap: 20px; font-size: 18px; line-height: 1.95; }
.sp-body > * { margin: 0; }
.sp-body h2 { font-size: clamp(26px, 3.2cqi, 38px); line-height: 1.3; font-weight: 800; margin-block-start: 24px; }
.sp-body h3 { font-size: 21px; font-weight: 800; margin-block-start: 8px; }
.sp-body ul, .sp-body ol { padding-inline-start: 1.4em; display: flex; flex-direction: column; gap: 6px; }
.sp-body table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.7; }
.sp-body th, .sp-body td { text-align: start; vertical-align: top; padding: 12px 8px; border-bottom: 1px solid var(--line, #DDD6C8); }
.sp-body th { font-weight: 800; border-bottom: 1.5px solid var(--ink, #16140F); }
.sp-body a { text-decoration: underline; text-underline-offset: 3px; }
.sp-ph { --ph-line: #A39C8D; margin: 0; aspect-ratio: 16 / 9; box-sizing: border-box; border: 1.5px dashed var(--ph-line); border-radius: 24px; background: var(--card, #E8E2D5); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; overflow: hidden; }
html[data-theme="dark"] .sp-ph { --ph-line: #5B5548; }
.sp-ph-k { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; border-radius: 9999px; background: var(--paper, #F2EEE5); color: var(--muted, #5B5548); font-size: 13px; font-weight: 700; line-height: 1.5; }
.sp-ph strong { color: var(--ink, #16140F); font-size: clamp(16px, 1.6cqi, 19px); line-height: 1.6; font-weight: 700; max-width: 32em; }
.sp-ph > span:last-child { font-size: 14px; line-height: 1.7; color: var(--muted, #5B5548); max-width: 36em; }
.sp-ph[data-size="half"] { aspect-ratio: 4 / 3; }
.sp-ph[data-size="half"] strong { font-size: 17px; }
.sp-ph[data-size="side"] { aspect-ratio: 1 / 1; flex: 1 1 240px; max-width: 320px; border-radius: 16px; padding: 16px; gap: 8px; }
.sp-ph[data-size="side"] .sp-ph-k { width: 36px; height: 36px; min-height: 0; padding: 0; justify-content: center; }
.sp-ph[data-size="side"] strong { font-size: 15px; }
.sp-ph[data-size="side"] > span:last-child { font-size: 13px; line-height: 1.6; }
/* A real image keeps the box: same ratio, object-fit cover (no CLS). */
.sp-ph > img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.sp-ph:has(> img) { padding: 0; border: 0; }
@media (max-width: 719px) { .sp-ph[data-size="full"] { aspect-ratio: 4 / 3; } }
@media (max-width: 599px) { .sp-body table { font-size: 14px; } }

/* Home paths and rotator dots (G22, d1/SPEC.md). */
.sp-path:hover > span:first-child { text-decoration: underline; text-decoration-color: var(--accent, #FF5A1F); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.sp-path:hover, .sp-path:focus-visible { --arw-bg: var(--accent, #FF5A1F); --arw-bd: var(--accent, #FF5A1F); --arw-fg: var(--ink, #16140F); }
.sp-path:hover { --arw-x: -4px; }
@media (prefers-reduced-motion: reduce) { .sp-path:hover { --arw-x: 0; } }
.sp-path:focus-visible, .sp-dot:focus-visible { outline: 3px solid var(--accent, #FF5A1F); outline-offset: 2px; }
.sp-dot:focus-visible { outline-offset: -6px; }
@media (prefers-reduced-motion: reduce) { .sp-path > span, [data-sp-rot], .sp-dot > span { transition: none !important; } }

/* About story chapters (G22, d1/SPEC.md). */
.sp-toc:hover { color: var(--ink, #16140F) !important; }
.sp-toc:focus-visible { outline: 3px solid var(--accent, #FF5A1F); outline-offset: 2px; border-radius: 8px; }
[data-section="story-toc"] ol::-webkit-scrollbar { display: none; }
@media (min-width: 1000px) { .sp-ch-t { position: sticky; } }
.sp-ch > * { margin: 0; }
.sp-ch p { font-size: clamp(17px, 1.5cqi, 19px); line-height: 2; color: var(--ink, #16140F); text-wrap: pretty; }
.sp-ch-dark { font-size: clamp(17px, 1.5cqi, 19px); }
.sp-ch-dark p { color: rgb(228, 222, 210); }
.sp-ch .sp-ph { margin-block: 8px; }
.sp-ch p.sp-ch-card { padding: 24px; border-radius: 24px; background: var(--card, #E8E2D5); }
.sp-ch-card strong { font-weight: 800; }
.sp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-items: end; }
.sp-steps li { display: flex; flex-direction: row; gap: 12px; align-items: center; min-width: 0; }
.sp-steps li > span:first-child { flex: 0 0 auto; width: 40px; font-size: 13px; font-weight: 700; color: rgb(184, 177, 162); min-height: 20px; white-space: nowrap; }
.sp-steps li > span:last-child { flex: 1 1 auto; min-width: 0; box-sizing: border-box; border-radius: 16px; padding: 14px 16px; display: flex; align-items: center; font-size: 15px; line-height: 1.5; font-weight: 700; text-wrap: balance; }
@media (min-width: 1000px) {
	.sp-steps { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
	.sp-steps li { flex-direction: column; align-items: stretch; }
	.sp-steps li > span:first-child { width: auto; }
	.sp-steps li > span:last-child { flex: 0 0 auto; height: calc(88px + 28px * var(--i)); align-items: flex-start; }
}

/* process-10 and metrics (G22, d2/SPEC.md §2-3), built from the body tables. */
.sp-p10, .sp-me { font-size: 16px; line-height: 1.75; }
.sp-body .sp-p10 ol, .sp-body .sp-me { gap: 0; }
.sp-p10 ol, .sp-body .sp-p10 ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sp-body .sp-p10 > ol, .sp-p10 > ol { padding: 0 clamp(20px, 3cqi, 32px); }
.sp-p10 li { display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.4fr) max-content; gap: 4px 24px; padding: 18px 0; margin: 0; border-top: 1px solid var(--line, #DDD6C8); align-items: baseline; }
.sp-p10-card { border-radius: 24px; background: var(--card, #E8E2D5); padding: clamp(20px, 3cqi, 32px); display: flex; flex-direction: column; gap: 8px; }
.sp-p10-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 8px; }
.sp-p10-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 9999px; background: var(--ink, #16140F); color: var(--paper, #F2EEE5); font-size: 14px; font-weight: 700; }
.sp-p10-pill > span { width: 8px; height: 8px; border-radius: 9999px; background: var(--accent, #FF5A1F); }
.sp-p10-bar a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: inherit; text-underline-offset: 6px; text-decoration-color: var(--accent, #FF5A1F); text-decoration-thickness: 2px; }
.sp-p10-n { font-family: "Geist Mono", Peyda, monospace; font-size: 14px; color: var(--muted, #5B5548); }
.sp-p10-t { font-size: 18px; font-weight: 800; line-height: 1.5; }
.sp-p10-w { font-size: 15px; line-height: 1.7; color: var(--muted, #5B5548); }
.sp-p10-d { justify-self: start; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px; border-radius: 9999px; border: 1.5px solid var(--line, #DDD6C8); font-size: 13px; font-weight: 700; line-height: 1.4; }
.sp-p10-d1 { border-color: var(--ink, #16140F); }
.sp-p10-d > span:first-child { color: var(--muted, #5B5548); font-weight: 600; }
@media (max-width: 719px) {
	.sp-p10 li { grid-template-columns: 40px minmax(0, 1fr); }
	.sp-p10-n { grid-row: span 3; }
	.sp-p10-d { white-space: normal; }
}
.sp-me, .sp-body .sp-me { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1.5px solid var(--ink, #16140F); }
.sp-me li { display: flex; flex-wrap: wrap; gap: 12px 32px; padding: 22px 0; margin: 0; border-bottom: 1px solid var(--line, #DDD6C8); }
.sp-me-b { flex: 1 1 200px; font-size: 19px; font-weight: 800; }
.sp-me-c { flex: 3 1 420px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sp-me-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-me-a { flex: 0 1 auto; display: inline-flex; align-items: center; min-height: 36px; padding: 4px 14px; border-radius: 9999px; background: var(--ink, #16140F); color: var(--paper, #F2EEE5); font-size: 14px; font-weight: 700; line-height: 1.4; }
.sp-me-mid { align-items: center; font-size: 14px; color: var(--muted, #5B5548); }
.sp-me-mid > span:first-child { font-weight: 700; }
.sp-me-m { flex: 0 1 auto; display: inline-flex; align-items: center; min-height: 32px; padding: 2px 12px; border-radius: 9999px; border: 1.5px solid var(--line, #DDD6C8); font-weight: 600; }
/* Path landing: the witness sits on the card band, so its colours swap (d2 Path Landing). */
[data-section="case"] .sp-ph { background: var(--paper, #F2EEE5); }
[data-section="case"] .sp-ph-k { background: var(--card, #E8E2D5); }
.sp-btn-a:hover { background: var(--ink, #16140F) !important; color: var(--paper, #F2EEE5) !important; }

/* G22 lead forms: focus only on keyboard focus (d2/SPEC.md). */
[data-section="opportunity-tool"] :is(a, button, input, select):focus-visible, [data-section="academy-leads"] :is(a, button, input):focus-visible { outline: 3px solid var(--accent, #FF5A1F); outline-offset: 2px; }
.sp-btn-ink:hover { background: #2E2B24 !important; }

/* Team grid (d2/SPEC.md §8): two columns under 720px, one member alone at 280px. */
@media (max-width: 719px) { .sp-team { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 24px 16px !important; } }
.sp-team-1 { grid-template-columns: minmax(0, 280px) !important; }

/* G24 §2: the orange spot — top bar on mobile only (owner removed the desktop rail, 1405-08-10). */
@media (min-width: 720px) { .sp-spot-bar { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .sp-spot-bar { display: none !important; } }

/* A 6px orange dot before every section number (D3, all templates). */
[data-sp-num]::before { content: ""; display: inline-block; inline-size: 6px; block-size: 6px; border-radius: 9999px; background: var(--accent, #FF5A1F); margin-inline-end: 6px; vertical-align: middle; }

/* Content lists keep the same orange dot (design lists carry their own markers). */
[data-sp-root] :is(.sp-body, [data-v12-prose], [data-v12-article]) ul > li { list-style: none; position: relative; }
[data-sp-root] :is(.sp-body, [data-v12-prose], [data-v12-article]) ul > li::before { content: ""; position: absolute; inset-inline-start: -1em; top: 0.82em; inline-size: 6px; block-size: 6px; border-radius: 9999px; background: var(--accent, #FF5A1F); }

/* G24 §1 · station topics (D4): level pills, the +/− sign and focus. */
.sp-lv-beg { background: transparent; color: var(--ink, #16140F); border: 1.5px solid var(--ink, #16140F); }
.sp-lv-mid { background: #0F3B2E; color: #F2EEE5; border: 1.5px solid #0F3B2E; }
.sp-lv-adv { background: var(--ink, #16140F); color: var(--paper, #F2EEE5); border: 1.5px solid var(--ink, #16140F); }
html[data-theme="dark"] .sp-lv-mid { background: #9DBFAF; color: #14130F; border-color: #9DBFAF; }
.sp-tp[open] .sp-tp-sign::before { content: "−"; }
.sp-tp:not([open]) .sp-tp-sign::before { content: "+"; }
.sp-tp-sum:focus-visible { outline: 3px solid var(--accent, #FF5A1F); outline-offset: 2px; }
.sp-tp-filter button:focus-visible { outline: 3px solid var(--accent, #FF5A1F); outline-offset: 2px; }
.sp-tp-res:hover { text-decoration: underline; text-decoration-color: var(--accent, #FF5A1F); text-underline-offset: 5px; }
.sp-tp-res:focus-visible, .sp-tp-jump:focus-visible { outline: 3px solid var(--accent, #FF5A1F); outline-offset: 2px; }
[data-section="topics"] a:focus-visible, [data-section="station"] aside a:focus-visible { outline: 3px solid var(--accent, #FF5A1F); outline-offset: 2px; }
.sp-si-beg { background: transparent; border: 1.5px solid var(--ink, #16140F); }
.sp-si-mid { background: #0F3B2E; border: 0; }
.sp-si-adv { background: var(--ink, #16140F); border: 0; }
html[data-theme="dark"] .sp-si-mid { background: #9DBFAF; }
.sp-si-card:hover, .sp-si-card:focus-visible { border-color: var(--ink, #16140F) !important; }
.sp-si-card:focus-visible { outline: 3px solid var(--accent, #FF5A1F); outline-offset: 2px; }

/* Article figures made by code (1405-08-16): full-width image with caption. */
[data-v12-article] .sp-figure { margin: 8px 0; display: flex; flex-direction: column; gap: 10px; }
[data-v12-article] .sp-figure img { display: block; width: 100%; height: auto; border-radius: 20px; border: 1px solid var(--line, #DDD6C8); }
[data-v12-article] .sp-figure figcaption { font-size: 14px; line-height: 1.8; color: var(--muted, #5B5548); }

/* Figures drawn from placeholder labels (inc/figures.php, 1405-08-16). */
.sp-dg { margin: 8px 0; display: flex; flex-direction: column; gap: 10px; max-inline-size: 100%; }
.sp-dg-box { position: relative; background: var(--paper, #F2EEE5); border: 1px solid var(--line, #DDD6C8); border-radius: 24px; padding: clamp(18px, 3vw, 32px); padding-block-end: 44px; display: flex; flex-direction: column; gap: 18px; overflow: hidden; color: var(--ink, #16140F); }
.sp-dg-t { margin: 0; font-size: clamp(17px, 2vw, 22px); font-weight: 900; line-height: 1.5; }
.sp-dg figcaption { font-size: 14px; line-height: 1.8; color: var(--muted, #5B5548); }
.sp-dg-brand { position: absolute; inset-block-end: 14px; inset-inline-end: 18px; font-size: 13px; font-weight: 700; color: var(--muted, #6E685C); display: inline-flex; align-items: center; gap: 3px; }
.sp-dg-brand i { inline-size: 7px; block-size: 7px; border-radius: 50%; background: var(--orange, #FF5A1F); }
.sp-dg-n { flex: none; inline-size: 26px; block-size: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; background: var(--ink, #16140F); color: var(--paper, #F2EEE5); }
.sp-dg .sp-dg-flow { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: row; flex-wrap: wrap; align-items: stretch; gap: 10px 30px; }
.sp-dg .sp-dg-flow li { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: var(--card, #E7E1D4); font-size: 15px; font-weight: 700; line-height: 1.6; flex: 1 1 150px; }
.sp-dg .sp-dg-flow li:not(:last-child)::after { content: "←"; position: absolute; inset-inline-end: -23px; top: 50%; transform: translateY(-50%); color: var(--orange, #FF5A1F); font-weight: 900; }
.sp-dg .sp-dg-flow li.is-end { background: var(--orange, #FF5A1F); color: #16140F; }
.sp-dg .sp-dg-flow li.is-end .sp-dg-n { background: #16140F; color: #F2EEE5; }
.sp-dg .sp-dg-flow.is-cal li { border-block-start: 4px solid var(--ink, #16140F); border-radius: 8px 8px 16px 16px; }
.sp-dg-funnel { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sp-dg-funnel span { box-sizing: border-box; min-inline-size: 180px; text-align: center; padding: 12px 16px; border-radius: 14px; background: var(--card, #E7E1D4); font-size: 15px; font-weight: 700; }
.sp-dg-funnel span.is-end { background: var(--orange, #FF5A1F); color: #16140F; }
.sp-dg-tree { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.sp-dg-kids { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; inline-size: 100%; }
.sp-dg-kids > div { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1 1 140px; }
.sp-dg-node { display: inline-block; text-align: center; padding: 10px 16px; border-radius: 14px; background: var(--card, #E7E1D4); font-size: 15px; font-weight: 700; line-height: 1.6; }
.sp-dg-node.is-root { background: var(--ink, #16140F); color: var(--paper, #F2EEE5); }
.sp-dg-node.is-end { background: var(--orange, #FF5A1F); color: #16140F; }
.sp-dg-leaf { font-size: 14px; color: var(--muted, #5B5548); text-align: center; }
.sp-dg-cluster { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.sp-dg-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sp-dg-chips span { padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--orange, #FF5A1F); font-size: 14px; font-weight: 700; }
.sp-dg-bars { display: flex; align-items: flex-end; justify-content: center; gap: clamp(24px, 8vw, 80px); block-size: 240px; }
.sp-dg-bars > div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; block-size: 100%; inline-size: min(140px, 30%); }
.sp-dg-bar { display: block; inline-size: 100%; min-block-size: 8px; border-radius: 12px 12px 4px 4px; background: var(--ink, #16140F); }
.sp-dg-bars > .is-end .sp-dg-bar { background: var(--orange, #FF5A1F); }
.sp-dg-bars b { font-size: 18px; font-weight: 900; }
.sp-dg-bars small { font-size: 13px; color: var(--muted, #5B5548); text-align: center; }
.sp-dg-rank { display: flex; align-items: center; gap: 20px; }
.sp-dg-rank-n { flex: none; inline-size: 96px; block-size: 96px; border-radius: 50%; background: var(--orange, #FF5A1F); color: #16140F; display: flex; align-items: center; justify-content: center; font-size: 52px; font-weight: 900; }
.sp-dg-rank > span:last-child { display: flex; flex-direction: column; gap: 6px; font-size: 18px; }
.sp-dg-rank small { font-size: 14px; color: var(--muted, #5B5548); }
.sp-dg .sp-dg-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 8px; }
.sp-dg .sp-dg-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--card, #E7E1D4); font-size: 15px; font-weight: 700; }
.sp-dg-report { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; border: 1px solid var(--line, #DDD6C8); font-size: 14px; }
.sp-dg-report > div { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 8px; padding: 10px 14px; background: var(--paper, #F2EEE5); }
.sp-dg-report > div:nth-child(even) { background: var(--card, #E7E1D4); }
.sp-dg-report-h, .sp-dg-report-h span { color: var(--paper, #F2EEE5); }
.sp-dg-report-h { font-weight: 900; background: var(--ink, #16140F) !important; color: var(--paper, #F2EEE5); }
.sp-dg-report span:not(:first-child) { text-align: center; }
.sp-dg-quote { margin: 0; font-size: clamp(18px, 2.4vw, 24px); font-weight: 900; line-height: 1.7; border-inline-start: 4px solid var(--orange, #FF5A1F); padding-inline-start: 14px; }
.sp-dg-mock { border-radius: 16px; border: 1.5px solid var(--ink, #16140F); background: var(--paper, #F2EEE5); overflow: hidden; }
.sp-dg-mock-bar { display: flex; gap: 6px; padding: 10px 12px; border-block-end: 1px solid var(--line, #DDD6C8); }
.sp-dg-mock-bar i { inline-size: 9px; block-size: 9px; border-radius: 50%; background: var(--line, #DDD6C8); }
.sp-dg-mock-hero { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px; background: var(--green, #0F3B2E); color: #F2EEE5; }
.sp-dg-mock-hero b { font-size: 18px; font-weight: 900; }
.sp-dg-mock-hero span { padding: 8px 16px; border-radius: 999px; background: var(--orange, #FF5A1F); color: #16140F; font-weight: 800; font-size: 14px; }
.sp-dg-mock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 8px; padding: 14px; }
.sp-dg-mock-grid span { padding: 14px 12px; border-radius: 12px; background: var(--card, #E7E1D4); font-size: 14px; font-weight: 700; min-block-size: 56px; display: flex; align-items: center; }
@media (max-width: 599.98px) {
  .sp-dg .sp-dg-flow { flex-direction: column; gap: 22px; }
  .sp-dg .sp-dg-flow li { flex: none; }
  .sp-dg .sp-dg-flow li:not(:last-child)::after { content: "↓"; inset-inline-end: auto; inset-inline-start: 50%; top: auto; bottom: -21px; transform: none; }
  .sp-dg-report > div { grid-template-columns: 1.6fr 1fr 1fr 1fr; font-size: 13px; padding: 9px 10px; }
}
/* FIG-b: figure lists must not inherit article list styles (.sp-body ol is column + bullets). */
[data-sp-root] .sp-dg :is(ul, ol) > li::before { content: none; }
[data-sp-root] .sp-dg :is(ul, ol) { color: inherit; padding: 0; }
[data-sp-root] .sp-dg .sp-dg-t { color: var(--ink, #16140F); }
