/*
Theme Name: MSP Server Hosting
Theme URI: https://www.mspserverhosting.com/
Author: MSP Server Hosting
Description: Custom block theme for mspserverhosting.com. Deep-teal infrastructure register: an isometric multi-tenant platform in the hero, an exploded layer diagram, and scroll-linked reveals. No third-party requests.
Version: 2.3.7
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mspserverhosting
*/

/* ==========================================================================
   1. Tokens (mirror theme.json; theme.json is the source of record)
   ========================================================================== */
:root {
	--msp-abyss: #031a19;
	--msp-deep: #020f0f;
	--msp-kelp: #07312f;
	--msp-mist: #ecfffe;
	--msp-silver: #b7c6c5;
	--msp-cyan: #2fd4c4;
	--msp-lav: #f6e4ff;
	--msp-amber: #d9a84a;
	--msp-edge: #4a8a85;
	--msp-line: #14504b;
	--msp-dim: #8fa9a7;
	--msp-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--msp-serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, "Hoefler Text", Georgia, "Times New Roman", serif;
	--msp-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
	--msp-wide: 76rem;
	--msp-gut: clamp(1.25rem, 4vw, 3rem);
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--msp-abyss);
	color: var(--msp-silver);
	font-family: var(--msp-sans);
	font-weight: 400;
	overflow-x: hidden;
}
h1, h2, h3, h4 { color: var(--msp-mist); font-weight: 500; margin-top: 0; text-wrap: balance; }
h1, h2 { font-family: var(--msp-serif); font-weight: 500; letter-spacing: -0.032em; }
a { color: var(--msp-cyan); text-underline-offset: 0.18em; }
a:hover { color: var(--msp-mist); }
:focus-visible { outline: 3px solid var(--msp-cyan); outline-offset: 3px; border-radius: 3px; }
code, pre, kbd { font-family: var(--msp-mono); }
img, svg { max-width: 100%; }
strong { color: var(--msp-mist); font-weight: 500; }

.msp-skip {
	position: absolute; left: 0.75rem; top: 0.75rem; z-index: 100;
	width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
	background: var(--msp-cyan); color: var(--msp-abyss); padding: 0.7rem 1rem;
	font-weight: 500; text-decoration: none; border-radius: 6px;
}
.msp-skip:focus { width: auto; height: auto; overflow: visible; clip-path: none; color: var(--msp-abyss); }

.msp-wrap { max-width: var(--msp-wide); margin: 0 auto; padding-left: var(--msp-gut); padding-right: var(--msp-gut); }
.msp-eyebrow {
	margin: 0 0 1.1rem; color: var(--msp-cyan); font-family: var(--msp-mono);
	font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; display: flex; align-items: center; gap: 0.7rem;
}
.msp-eyebrow::before { content: ""; width: 1.6rem; height: 1px; background: currentColor; flex: none; }

/* ==========================================================================
   3. Header and footer
   ========================================================================== */
header.wp-block-template-part {
	position: sticky; top: 0; z-index: 50;
	background: rgba(3, 26, 25, 0.86);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(20, 80, 75, 0.7);
	padding: 0; margin: 0;
}
.msp-header__inner {
	max-width: 90rem; margin: 0 auto; padding: 0.4rem var(--msp-gut);
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1.5rem;
}
.msp-brand {
	display: inline-flex; align-items: center; gap: 0.7rem; min-height: 44px;
	text-decoration: none; color: var(--msp-mist);
}
.msp-brand:hover { color: var(--msp-mist); }
.msp-brand__word { font-weight: 500; font-size: 0.875rem; letter-spacing: 0.18em; white-space: nowrap; }
.msp-brand__mark { flex: none; }
.msp-menubtn { display: none; }
.msp-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.25rem; }
.msp-nav a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.75rem;
	color: var(--msp-silver); text-decoration: none; font-size: 0.9375rem;
}
.msp-nav a:hover, .msp-nav a[aria-current="page"] { color: var(--msp-mist); box-shadow: inset 0 -2px 0 var(--msp-cyan); }
.msp-nav a.msp-nav__cta {
	min-height: 38px; margin-left: 0.5rem; padding: 0 1rem; color: var(--msp-cyan);
	border: 1px solid var(--msp-edge); border-radius: 999px; box-shadow: none;
}
.msp-nav a.msp-nav__cta:hover { background: var(--msp-cyan); color: var(--msp-abyss); border-color: var(--msp-cyan); box-shadow: none; }

footer.wp-block-template-part {
	background: var(--msp-deep); border-top: 1px solid var(--msp-line);
	margin: 0; padding: 0; position: relative;
}
footer.wp-block-template-part::before {
	content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
	background: linear-gradient(90deg, transparent, var(--msp-cyan), transparent); opacity: 0.55;
}
.msp-footer__inner {
	max-width: 90rem; margin: 0 auto; padding: 4rem var(--msp-gut) 4rem;
	display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr); gap: 3rem;
}
.msp-footer__tag { color: var(--msp-mist); margin: 1rem 0 0.6rem; font-family: var(--msp-serif); font-size: 1.35rem; letter-spacing: -0.01em; }
.msp-footer__bound { font-size: 0.875rem; color: var(--msp-silver); max-width: 34rem; margin: 0; }
.msp-footer__nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.msp-footer__nav a {
	display: flex; align-items: center; min-height: 44px; color: var(--msp-silver);
	text-decoration: none; font-size: 0.9375rem;
}
.msp-footer__nav a:hover { color: var(--msp-mist); text-decoration: underline; }
.msp-footer__h {
	margin: 0 0 0.25rem; color: var(--msp-dim); font-family: var(--msp-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
}

/* ==========================================================================
   4. Layout shells (inner pages)
   ========================================================================== */
.msp-main--page, .msp-main--home { padding: 0; }
.msp-pagehead {
	position: relative; isolation: isolate; overflow: hidden;
	padding: 2.5rem var(--msp-gut) 3rem;
	background: linear-gradient(180deg, #06302d 0%, var(--msp-abyss) 100%);
	border-bottom: 1px solid var(--msp-line);
}
.msp-pagehead::before {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
	background-image: linear-gradient(rgba(20, 80, 75, 0.35) 1px, transparent 1px), linear-gradient(90deg, rgba(20, 80, 75, 0.35) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 100%); mask-image: linear-gradient(90deg, transparent 20%, #000 100%);
}
.msp-pagehead::after {
	content: ""; position: absolute; right: max(var(--msp-gut), calc((100vw - 76rem) / 2)); top: 50%; width: 15rem; height: 11rem; transform: translateY(-50%); z-index: -1; opacity: 0.9;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 176' fill='none' stroke='%232a8f86' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M120 8 228 56 120 104 12 56Z'/%3E%3Cpath d='M12 56v14l108 48 108-48V56' opacity='.7'/%3E%3Cpath d='M120 48 228 96 120 144 12 96Z' opacity='.55'/%3E%3Cpath d='M12 96v14l108 48 108-48V96' opacity='.4'/%3E%3Cpath d='M120 24 160 42 120 60 80 42Z' stroke='%23d9a84a'/%3E%3C/svg%3E") center / contain no-repeat;
}
.msp-pagehead > * { max-width: var(--msp-wide); margin-left: auto !important; margin-right: auto !important; }
.msp-pagehead h1.wp-block-post-title, .msp-pagehead h1 {
	font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4rem); line-height: 1.04; margin-top: 0.5rem; margin-bottom: 0.6rem; max-width: 22ch !important; margin-left: auto; margin-right: auto;
}
.msp-pagehead h1.wp-block-post-title { max-width: var(--msp-wide) !important; }
.msp-pagehead h1.wp-block-post-title > *, .msp-pagehead .msp-h1-in { display: block; max-width: 24ch; }
.msp-pagehead .msp-meta { margin: 0 auto; }
.msp-body { padding: 3rem var(--msp-gut) 1rem; }
.msp-main--wide .msp-body { padding-top: 2.5rem; }
.msp-main:not(.msp-main--home):not(.msp-main--page) { padding: 2.5rem var(--msp-gut) 1rem; }
.msp-meta { color: var(--msp-dim); font-family: var(--msp-mono); font-size: 0.8125rem; letter-spacing: 0.06em; margin: 0 0 1.5rem; }

/* breadcrumbs */
.msp-crumbs { font-size: 0.875rem; margin: 0 0 0.5rem; }
.msp-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.1rem 0.5rem; }
.msp-crumbs li { display: inline-flex; align-items: center; gap: 0.5rem; }
.msp-crumbs li:not(:last-child)::after { content: "/"; color: var(--msp-edge); }
.msp-crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.msp-crumbs [aria-current] { color: var(--msp-dim); }

/* ==========================================================================
   5. Homepage hero
   ========================================================================== */
.msp-hero {
	position: relative; isolation: isolate; overflow: hidden;
	min-height: calc(100vh - 64px); min-height: calc(100svh - 64px);
	display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center;
	padding: 3rem max(var(--msp-gut), calc((100vw - 90rem) / 2 + var(--msp-gut)));
	background: linear-gradient(180deg, #021211 0%, #04211f 100%);
}
.msp-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.55;
	background-image: linear-gradient(rgba(20, 80, 75, 0.3) 1px, transparent 1px), linear-gradient(90deg, rgba(20, 80, 75, 0.3) 1px, transparent 1px);
	background-size: 64px 64px;
	-webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 80%); mask-image: linear-gradient(90deg, transparent 30%, #000 80%);
}
.msp-hero__copy { position: relative; z-index: 2; padding-right: 1rem; }
.msp-hero h1 {
	font-size: clamp(2.5rem, 0.9rem + 3.7vw, 4.1rem); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 1.5rem; text-wrap: balance;
}
.msp-hero h1 em { font-style: normal; font-weight: 700; color: var(--msp-cyan); }
.msp-lede { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); color: var(--msp-silver); margin: 0 0 2rem; max-width: 34rem; }
.msp-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0 0 1.1rem; }
.msp-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0.55rem 1.4rem;
	background: var(--msp-cyan); color: var(--msp-abyss); border: 1px solid var(--msp-cyan); border-radius: 999px;
	font-weight: 500; font-size: 1rem; text-decoration: none; cursor: pointer; font-family: inherit; line-height: 1.2;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.msp-btn:hover { background: var(--msp-mist); border-color: var(--msp-mist); color: var(--msp-abyss); }
.msp-btn--ghost { background: transparent; color: var(--msp-cyan); border-color: var(--msp-edge); }
.msp-btn--ghost:hover { background: rgba(47, 212, 196, 0.12); color: var(--msp-mist); border-color: var(--msp-cyan); }
.msp-fine { color: var(--msp-dim); font-size: 0.875rem; margin: 0; max-width: 32rem; }

.msp-figure { margin: 0; position: relative; z-index: 1; margin-left: -1%; margin-right: -5%; }
.h-svg, .s-svg { display: block; width: 100%; height: auto; overflow: visible; }
.msp-figure figcaption {
	margin: -1.5rem 5% 0 14%; color: var(--msp-dim); font-size: 0.875rem; line-height: 1.55; max-width: 40rem; position: relative; color: var(--msp-silver);
}
.msp-legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; list-style: none; padding: 0; margin: 0 0 0.6rem; font-family: var(--msp-mono); font-size: 0.8125rem; color: var(--msp-mist); }
.msp-legend li { display: inline-flex; align-items: center; gap: 0.5rem; }
.msp-legend i { width: 0.75rem; height: 0.75rem; display: inline-block; background: var(--msp-cyan); transform: skewY(-18deg); }
.msp-legend i.is-hot { background: var(--msp-amber); }
.msp-legend i.is-bak { background: var(--msp-lav); }

/* hero status line: mirrors the 16 s figure loop so every state is stated in words, at every width */
.msp-status { display: grid; margin: 0 0 0.7rem; padding: 0.55rem 0.8rem; border-left: 2px solid var(--msp-cyan); background: rgba(47, 212, 196, 0.07); font-family: var(--msp-mono); font-size: 0.8125rem; line-height: 1.4; color: var(--msp-mist); min-height: 2.9rem; align-items: center; }
.msp-status span { grid-area: 1 / 1; opacity: 0; }
.msp-status .ms-d { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
	.msp-status span { animation: 16s linear infinite; }
	.msp-status .ms-a { animation-name: ms-a; }
	.msp-status .ms-b { animation-name: ms-b; }
	.msp-status .ms-c { animation-name: ms-c; }
	.msp-status .ms-d { animation-name: ms-d; }
	.msp-status .ms-e { animation-name: ms-e; }
}
@keyframes ms-a { 0%, 5% { opacity: 1; } 5.8%, 98.2% { opacity: 0; } 99.2%, 100% { opacity: 1; } }
@keyframes ms-b { 0%, 7.6% { opacity: 0; } 8.6%, 26.8% { opacity: 1; } 27.6%, 100% { opacity: 0; } }
@keyframes ms-c { 0%, 30.6% { opacity: 0; } 31.6%, 52.5% { opacity: 1; } 53.3%, 100% { opacity: 0; } }
@keyframes ms-d { 0%, 53.8% { opacity: 0; } 54.8%, 88% { opacity: 1; } 88.8%, 100% { opacity: 0; } }
@keyframes ms-e { 0%, 90.6% { opacity: 0; } 91.6%, 96.8% { opacity: 1; } 97.6%, 100% { opacity: 0; } }
.msp-cue {
	position: absolute; left: 50%; bottom: 1.1rem; z-index: 3; transform: translateX(-50%);
	font-family: var(--msp-mono); font-size: 0.6875rem; letter-spacing: 0.2em; color: var(--msp-dim); text-transform: uppercase;
	display: flex; flex-direction: column; align-items: center; gap: 0.5rem; pointer-events: none;
}
.msp-cue::after { content: ""; width: 1px; height: 2rem; background: linear-gradient(var(--msp-cyan), transparent); }

/* ---- hero figure: base styles ARE the static end state (reduced motion and first frame) ---- */
.h-floor { fill: url(#hg-floor); stroke: #14504b; stroke-width: 1; }
.h-grid { stroke: #14504b; stroke-width: 1; opacity: 0.5; }
.h-s-t { fill: #0b403c; stroke: #1f6f68; stroke-width: 1; stroke-linejoin: round; }
.h-s-l { fill: #062927; stroke: #14504b; stroke-width: 1; }
.h-s-r { fill: #041e1d; stroke: #14504b; stroke-width: 1; }
.h-foot { fill: rgba(47, 212, 196, 0.07); stroke: #2a8f86; stroke-width: 1; stroke-dasharray: 4 4; }
.h-glass { fill: #2fd4c4; fill-opacity: 0.07; }
.h-glass-f { fill-opacity: 0.1; }
.h-edge { fill: none; stroke: #4fb3aa; stroke-width: 1.5; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.h-c-t { fill: #6cf3e3; } .h-c-l { fill: #23b3a6; } .h-c-r { fill: #12786f; }
.h-c-t, .h-c-l, .h-c-r { stroke: rgba(2, 22, 21, 0.6); stroke-width: 0.8; stroke-linejoin: round; }
.h-t3 .h-glass { fill: #d9a84a; fill-opacity: 0.12; }
.h-t3 .h-glass-f { fill-opacity: 0.18; }
.h-t3 .h-edge { stroke: #d9a84a; }
.h-t3 .h-rim { stroke-width: 3; }
.h-t3 .h-c-t { fill: #f4c870; } .h-t3 .h-c-l { fill: #c28b2d; } .h-t3 .h-c-r { fill: #8c6119; }
.h-cap { fill: #d9a84a; fill-opacity: 0.35; stroke: none; }
.h-ripple { fill: none; stroke: #d9a84a; stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; }
.h-arrow { fill: none; stroke: #ffe3a3; stroke-width: 2.5; stroke-linecap: round; }
.h-arrowhead { fill: #ffe3a3; }
.h-spark { fill: none; stroke: #ecfffe; stroke-width: 3; opacity: 0; }
.h-lead { fill: none; stroke: #6a9c97; stroke-width: 1; }
.h-t { font-family: var(--msp-mono); }
.h-tag { fill: #ecfffe; font-size: 22px; font-weight: 500; }
.h-new { fill: #9ff2e8; }
.h-hot { fill: #ffd98a; }
.h-sub { fill: #eef9f8; font-size: 18px; }
.h-plat { fill: #e3f2f1; font-size: 19px; font-weight: 500; letter-spacing: 0.14em; }
.h-tg3-cold, .h-tg4-cold, .h-tg4-mid { opacity: 0; }
.h-dim { fill: #cfe3e1; }
.h-tap-t { fill: #6cf3e3; } .h-tap-l { fill: #23b3a6; } .h-tap-r { fill: #12786f; }
.h-feedrail, .h-busrail { fill: none; stroke: #0e4a45; stroke-width: 8; stroke-linejoin: round; }
.h-feed, .h-bus { fill: none; stroke: #2fd4c4; stroke-width: 8; stroke-dasharray: 11 17; stroke-linejoin: round; }
.h-b-t { fill: #16313a; stroke: #2c5a66; } .h-b-l { fill: #0c2229; stroke: #14404a; } .h-b-r { fill: #081a1f; stroke: #14404a; }
.h-p-t { fill: #f6e4ff; } .h-p-l { fill: #b79ccc; } .h-p-r { fill: #7d6592; }
.h-p-t, .h-p-l, .h-p-r { stroke: rgba(2, 22, 21, 0.5); stroke-width: 0.8; }

/* ---- motion. One 16s master cycle; every element owns its keyframes.
   0-6s a tenant is provisioned and its boundary forms; 8-14s a noisy tenant
   stacks load up to its ceiling, presses on the wall and is held. The first
   frame is a complete scene (three tenants and an empty reserved slot). ---- */
@media (prefers-reduced-motion: no-preference) {
	.h-bus { animation: h-bus 3s linear infinite; }
	.h-feed { animation: h-feed 3s linear infinite; }
	.h-feedb { animation-name: h-feedb; }
	.h-t4 .h-edge { animation: h4-edge 16s linear infinite; }
	.h-t4 .h-glass { animation: h4-glass 16s linear infinite; }
	.h-t4 .h-foot { animation: h4-foot 16s linear infinite; }
	.h-spark { animation: h4-spark 16s linear infinite; }
	.h-k4 { animation: h4-k 16s linear infinite; animation-delay: var(--d, 0s); }
	.h-tg4-cold { animation: h4-tc 16s linear infinite; }
	.h-tg4-mid { animation: h4-tm 16s linear infinite; }
	.h-tg4-hot { animation: h4-th 16s linear infinite; }
	.h-kx { animation: h3-k 16s linear infinite; animation-delay: var(--d, 0s); }
	.h-t3 .h-c-t { animation: h3-ct 16s linear infinite; }
	.h-t3 .h-c-l { animation: h3-cl 16s linear infinite; }
	.h-t3 .h-c-r { animation: h3-cr 16s linear infinite; }
	.h-t3 .h-glass { animation: h3-glass 16s linear infinite; }
	.h-t3 .h-edge { animation: h3-edge 16s linear infinite; }
	.h-cap { animation: h3-cap 16s linear infinite; }
	.h-ripple { animation: h3-ripple 16s linear infinite; }
	.h-pushx { animation: h3-pushx 16s linear infinite; }
	.h-pushy { animation: h3-pushy 16s linear infinite; }
	.h-tg3-cold { animation: h3-tc 16s linear infinite; }
	.h-tg3-hot { animation: h3-th 16s linear infinite; }
}
@keyframes h-bus { to { stroke-dashoffset: -84; } }
@keyframes h-feed { to { stroke-dashoffset: -84; } }
@keyframes h-feedb { to { stroke-dashoffset: -84; } }
@keyframes h4-edge { 0%, 5% { stroke-dashoffset: 1; opacity: 1; stroke: #4fb3aa; stroke-width: 1.5; } 8% { stroke: #ecfffe; stroke-width: 3; } 22% { stroke-dashoffset: 0; stroke: #ecfffe; stroke-width: 3; } 30% { stroke: #4fb3aa; stroke-width: 1.5; } 92% { stroke-dashoffset: 0; opacity: 1; } 97%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes h4-glass { 0%, 12% { opacity: 0; } 22% { opacity: 1; } 30%, 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes h4-foot { 0%, 20% { stroke: #9ff2e8; stroke-width: 2; stroke-dasharray: 6 5; opacity: 1; } 28%, 94% { opacity: 0; } 98%, 100% { stroke: #9ff2e8; stroke-width: 2; stroke-dasharray: 6 5; opacity: 1; } }
@keyframes h4-spark { 0%, 23% { opacity: 0; } 25% { opacity: 1; } 31% { opacity: 0; } 100% { opacity: 0; } }
@keyframes h4-k { 0%, 25% { opacity: 0; transform: translateY(-20px); } 32%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: translateY(-20px); } }
@keyframes h4-tc { 0%, 5% { opacity: 1; } 6%, 94% { opacity: 0; } 96.5%, 100% { opacity: 1; } }
@keyframes h4-tm { 0%, 7% { opacity: 0; } 8.2%, 27% { opacity: 1; } 28%, 100% { opacity: 0; } }
@keyframes h4-th { 0%, 30% { opacity: 0; } 31.5%, 89% { opacity: 1; } 90%, 100% { opacity: 0; } }
@keyframes h3-k { 0%, 44% { opacity: 0; transform: translateY(-22px); } 52%, 88% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: translateY(-22px); } }
@keyframes h3-ct { 0%, 52% { fill: #6cf3e3; } 58%, 88% { fill: #f4c870; } 94%, 100% { fill: #6cf3e3; } }
@keyframes h3-cl { 0%, 52% { fill: #23b3a6; } 58%, 88% { fill: #c28b2d; } 94%, 100% { fill: #23b3a6; } }
@keyframes h3-cr { 0%, 52% { fill: #12786f; } 58%, 88% { fill: #8c6119; } 94%, 100% { fill: #12786f; } }
@keyframes h3-glass {
	0%, 52% { fill: #2fd4c4; fill-opacity: 0.07; } 58% { fill: #d9a84a; fill-opacity: 0.3; } 64% { fill-opacity: 0.12; } 70% { fill-opacity: 0.3; }
	76% { fill-opacity: 0.12; } 82% { fill-opacity: 0.3; } 88% { fill: #d9a84a; fill-opacity: 0.16; } 94%, 100% { fill: #2fd4c4; fill-opacity: 0.07; }
}
@keyframes h3-edge { 0%, 52% { stroke: #4fb3aa; } 58%, 88% { stroke: #d9a84a; } 94%, 100% { stroke: #4fb3aa; } }
@keyframes h3-cap { 0%, 56% { opacity: 0; } 58% { opacity: 1; } 62% { opacity: 0.3; } 66% { opacity: 1; } 70% { opacity: 0.3; } 74% { opacity: 1; } 78% { opacity: 0.3; } 82%, 88% { opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes h3-ripple {
	0%, 56% { opacity: 0; transform: scale(1); } 57% { opacity: 0.95; } 63% { opacity: 0; transform: scale(1.08); }
	64% { opacity: 0.95; transform: scale(1); } 70% { opacity: 0; transform: scale(1.08); } 71% { opacity: 0.95; transform: scale(1); }
	77% { opacity: 0; transform: scale(1.08); } 100% { opacity: 0; transform: scale(1); }
}
@keyframes h3-pushx {
	0%, 55% { opacity: 0; transform: translate(-16px, -9px); } 57% { opacity: 1; transform: translate(-16px, -9px); } 60% { transform: none; } 63% { opacity: 1; transform: none; } 64% { opacity: 0; transform: translate(-16px, -9px); }
	65% { opacity: 1; } 68% { transform: none; } 71% { opacity: 1; } 72% { opacity: 0; transform: translate(-16px, -9px); }
	73% { opacity: 1; } 76% { transform: none; } 88% { opacity: 1; transform: none; } 93%, 100% { opacity: 0; transform: none; }
}
@keyframes h3-pushy {
	0%, 55% { opacity: 0; transform: translate(16px, -9px); } 57% { opacity: 1; transform: translate(16px, -9px); } 60% { transform: none; } 63% { opacity: 1; transform: none; } 64% { opacity: 0; transform: translate(16px, -9px); }
	65% { opacity: 1; } 68% { transform: none; } 71% { opacity: 1; } 72% { opacity: 0; transform: translate(16px, -9px); }
	73% { opacity: 1; } 76% { transform: none; } 88% { opacity: 1; transform: none; } 93%, 100% { opacity: 0; transform: none; }
}
@keyframes h3-tc { 0%, 50% { opacity: 1; } 51%, 94% { opacity: 0; } 96%, 100% { opacity: 1; } }
@keyframes h3-th { 0%, 53% { opacity: 0; } 54.5%, 88% { opacity: 1; } 89.5%, 100% { opacity: 0; } }

/* ==========================================================================
   6. Homepage sections
   ========================================================================== */
.msp-sec { position: relative; padding: 6rem 0 0; }
.msp-planband h2, .msp-bound h2, .msp-sec h2 { font-size: clamp(1.9rem, 1.1rem + 2.4vw, 3.25rem); line-height: 1.06; margin: 0 0 1rem; }
.msp-sec__intro { max-width: 40rem; margin: 0 0 1.5rem; font-size: 1.0625rem; }

/* reveal: only hidden when JS is present; reduced motion shows everything */
.msp-js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.msp-js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.msp-js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* --- layers: exploded stack + ledger --- */
.msp-layers { padding-top: 7rem; }
.msp-layers__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem; align-items: start; }
.msp-layers__fig { position: sticky; top: 5rem; margin: 0; }
.msp-layers__fig figcaption { color: var(--msp-silver); font-size: 0.875rem; line-height: 1.5; margin-top: 3.25rem; padding-top: 0.25rem; max-width: 30rem; }
.msp-layerlist { list-style: none; margin: 2rem 0 0; padding: 0; counter-reset: lay; }
.msp-layerlist li {
	counter-increment: lay; position: relative; padding: 1.5rem 0 1.5rem 3.4rem; border-top: 1px solid var(--msp-line);
	transition: background 0.3s;
}
.msp-layerlist li:last-child { border-bottom: 1px solid var(--msp-line); }
.msp-layerlist li::before {
	content: "0" counter(lay); position: absolute; left: 0; top: 1.5rem; font-family: var(--msp-mono); font-size: 0.875rem; color: var(--msp-dim); transition: color 0.3s;
}
.msp-layerlist h3 { font-family: var(--msp-serif); font-weight: 400; font-size: 1.6rem; margin: 0 0 0.35rem; letter-spacing: -0.015em; }
.msp-layerlist p { margin: 0; max-width: 28rem; }
.msp-layerlist li.is-on::before { color: var(--msp-cyan); }
.msp-layerlist li.is-on h3 { color: var(--msp-cyan); }

/* stack figure */
.s-s-t { fill: #0a3a37; stroke: #1f6f68; stroke-linejoin: round; } .s-s-l { fill: #062927; stroke: #14504b; } .s-s-r { fill: #041e1d; stroke: #14504b; }
.s-pad { fill: rgba(47, 212, 196, 0.1); stroke: #2a8f86; stroke-width: 1; }
.s-pad-iso { fill: rgba(47, 212, 196, 0.05); stroke: none; }
.s-wall { fill: none; stroke: #4fb3aa; stroke-width: 1.5; stroke-linejoin: round; }
.s-bar-t, .s-disk-t, .s-cube-t { fill: #6cf3e3; } .s-bar-l, .s-disk-l, .s-cube-l { fill: #23b3a6; } .s-bar-r, .s-disk-r, .s-cube-r { fill: #12786f; }
.s-bar-t, .s-bar-l, .s-bar-r, .s-disk-t, .s-disk-l, .s-disk-r, .s-cube-t, .s-cube-l, .s-cube-r { stroke: rgba(2, 22, 21, 0.6); stroke-width: 0.8; }
.s-disk-t { fill: #3fdccb; }
.s-hot.s-pad { fill: rgba(217, 168, 74, 0.18); stroke: #d9a84a; }
.s-hot.s-pad-iso { fill: rgba(217, 168, 74, 0.1); stroke: none; }
.s-wall.s-hot { stroke: #d9a84a; stroke-width: 2; }
.s-bar-t.s-hot, .s-disk-t.s-hot, .s-cube-t.s-hot { fill: #f4c870; } .s-bar-l.s-hot, .s-disk-l.s-hot, .s-cube-l.s-hot { fill: #c28b2d; } .s-bar-r.s-hot, .s-disk-r.s-hot, .s-cube-r.s-hot { fill: #8c6119; }
.s-link { stroke: #2fd4c4; stroke-width: 2; stroke-dasharray: 6 6; opacity: 0.7; }
.s-col { fill: #d9a84a; opacity: 0.6; transform-box: fill-box; transform-origin: 50% 0; }
.s-lead { stroke: #4a8a85; fill: none; }
.s-lbl { fill: #cfe3e1; font: 500 20px var(--msp-mono); letter-spacing: 0.14em; }
.s-body { transition: opacity 0.5s; }
.s-svg[data-hl] .s-body { opacity: 0.4; }
.s-svg[data-hl="0"] .s-l0 .s-body, .s-svg[data-hl="1"] .s-l1 .s-body, .s-svg[data-hl="2"] .s-l2 .s-body, .s-svg[data-hl="3"] .s-l3 .s-body { opacity: 1; }
.s-svg[data-hl="0"] .s-l0 .s-lbl, .s-svg[data-hl="1"] .s-l1 .s-lbl, .s-svg[data-hl="2"] .s-l2 .s-lbl, .s-svg[data-hl="3"] .s-l3 .s-lbl { fill: #ffffff; }
.s-lg { transition: transform 1.6s cubic-bezier(0.25, 0.8, 0.25, 1); }
.s-col { transition: transform 1.6s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 1.2s ease 0.6s; }
.s-lab { transition: opacity 0.8s ease 0.9s; }
.msp-js .s-svg:not(.is-in) .s-l1 .s-lg { transform: translateY(-108px); }
.msp-js .s-svg:not(.is-in) .s-l2 .s-lg { transform: translateY(-216px); }
.msp-js .s-svg:not(.is-in) .s-l3 .s-lg { transform: translateY(-324px); }
.msp-js .s-svg:not(.is-in) .s-col { transform: scaleY(0.35); opacity: 0; }
.msp-js .s-svg:not(.is-in) .s-lab { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
	.msp-js .s-svg:not(.is-in) .s-lg, .msp-js .s-svg:not(.is-in) .s-col, .msp-js .s-svg:not(.is-in) .s-lab { transform: none; opacity: 1; transition: none; }
	.msp-js .s-svg:not(.is-in) .s-col { opacity: 0.6; }
	.s-lg, .s-col, .s-lab { transition: none; }
}

/* ledger */
.msp-ledgerblock { margin-top: 6rem; }
.msp-ledgerblock h3 { font-family: var(--msp-serif); font-weight: 400; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); margin: 0 0 1.5rem; letter-spacing: -0.02em; }
.msp-tablewrap { overflow-x: auto; }
.msp-ledger { width: 100%; border-collapse: collapse; font-size: 0.9375rem; min-width: 44rem; }
.msp-ledger th, .msp-ledger td { padding: 1.25rem 1.25rem 1.25rem 0; text-align: left; vertical-align: top; border-top: 1px solid var(--msp-line); }
.msp-ledger thead th {
	color: var(--msp-dim); font-weight: 500; font-family: var(--msp-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; padding-top: 0.5rem; padding-bottom: 0.75rem; border-top: 0;
}
.msp-ledger tbody th { color: var(--msp-mist); font-family: var(--msp-serif); font-weight: 400; font-size: 1.4rem; white-space: nowrap; letter-spacing: -0.01em; }
.msp-ledger tbody tr { transition: background 0.25s; }
.msp-ledger tbody tr:hover { background: rgba(47, 212, 196, 0.05); }
.msp-ledger tbody tr:last-child th, .msp-ledger tbody tr:last-child td { border-bottom: 1px solid var(--msp-line); }
.msp-ledger td:nth-child(3) { color: #d6e0df; }
.msp-ledger a { display: inline-block; padding: 0.55rem 0; }

/* --- reading path --- */
.msp-order { margin-top: 3rem; padding: 7rem 0; background: linear-gradient(180deg, transparent, rgba(2, 15, 15, 0.7) 12%, rgba(2, 15, 15, 0.7) 88%, transparent); }
.msp-order__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 3rem; align-items: start; }
.msp-order__head { position: sticky; top: 6rem; }
.msp-order__head .msp-sec__intro { margin-bottom: 0; }
.msp-path { list-style: none; margin: 0; padding: 0; position: relative; }
.msp-path::before { content: ""; position: absolute; left: 2.2rem; top: 1rem; bottom: 1rem; width: 1px; background: var(--msp-line); }
.msp-path li { position: relative; display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1rem; padding: 1.35rem 0 1.35rem 0; }
.msp-path li::after {
	content: ""; position: absolute; left: 2.2rem; top: 0; bottom: 0; width: 1px; background: var(--msp-cyan);
	transform: scaleY(0); transform-origin: top; transition: transform 0.9s ease;
}
.msp-path li.is-in::after { transform: scaleY(1); }
.msp-path__n {
	font-family: var(--msp-serif); font-size: 2.6rem; line-height: 1; color: var(--msp-edge); text-align: center; background: var(--msp-deep); position: relative; z-index: 1; align-self: start; padding: 0.2rem 0; transition: color 0.6s;
}
.msp-path li.is-in .msp-path__n { color: var(--msp-cyan); }
.msp-path a { font-family: var(--msp-serif); font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem); color: var(--msp-mist); text-decoration: none; display: inline-block; min-height: 44px; padding-top: 0.15rem; letter-spacing: -0.015em; }
.msp-path a:hover { color: var(--msp-cyan); text-decoration: underline; }
.msp-path p { margin: 0.2rem 0 0; max-width: 38rem; }

/* --- planner band --- */
.msp-planband {
	margin-top: 0; padding: 6rem 0; position: relative; overflow: hidden;
	background: linear-gradient(135deg, #08413d, #052b29 60%, #041f1e);
	border-top: 1px solid var(--msp-line); border-bottom: 1px solid var(--msp-line);
}
.msp-plan { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 4rem; align-items: center; }
.msp-plan p { margin: 0 0 1rem; max-width: 38rem; }
.msp-sheet { background: #010a0a; border: 1px solid var(--msp-line); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(47, 212, 196, 0.08); }
.msp-sheet__h { margin: 0; padding: 0.8rem 1.25rem; color: var(--msp-dim); font-family: var(--msp-mono); font-size: 0.8125rem; border-bottom: 1px solid var(--msp-line); display: flex; align-items: center; gap: 0.6rem; }
.msp-sheet__h::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--msp-edge); box-shadow: 1rem 0 0 var(--msp-line), 2rem 0 0 var(--msp-line); margin-right: 2rem; }
.msp-sheet pre { margin: 0; padding: 1.4rem 1.25rem 1.5rem; color: var(--msp-mist); font-size: 0.875rem; line-height: 1.8; white-space: pre-wrap; }

/* --- boundary --- */
.msp-bound { padding: 7rem 0 2rem; }
.msp-bound__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 3rem; align-items: start; }
.msp-bound p.msp-bound__text { font-family: var(--msp-serif); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.45; color: var(--msp-mist); margin: 0 0 1.5rem; max-width: 44rem; letter-spacing: -0.01em; }
.msp-nones { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.msp-nones li { font-family: var(--msp-mono); font-size: 0.8125rem; color: var(--msp-silver); border: 1px solid var(--msp-line); border-radius: 999px; padding: 0.45rem 0.95rem; }
.msp-nones li::before { content: "\00d7\00a0"; color: var(--msp-amber); }

/* ==========================================================================
   7. Article and page content
   ========================================================================== */
.msp-body .wp-block-post-content > * { max-width: 44rem; }
.msp-body .wp-block-post-content > p:first-child { font-size: 1.25rem; line-height: 1.6; color: var(--msp-mist); }
.msp-body .wp-block-post-content h2 {
	font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); line-height: 1.12; margin-top: 3.5rem; margin-bottom: 1rem; padding-top: 1.75rem; border-top: 1px solid var(--msp-line);
}
.msp-body .wp-block-post-content > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.msp-body .wp-block-post-content h3 { font-size: 1.25rem; margin-top: 2.25rem; margin-bottom: 0.5rem; }
.msp-body .wp-block-post-content p, .msp-body .wp-block-post-content li { line-height: 1.75; font-size: 1.0625rem; }
.msp-body .wp-block-post-content ul, .msp-body .wp-block-post-content ol { padding-left: 1.4rem; }
.msp-body .wp-block-post-content li { margin-bottom: 0.5rem; }
.msp-body .wp-block-post-content li::marker { color: var(--msp-cyan); }
.msp-note {
	border-left: 3px solid var(--msp-cyan); background: var(--msp-kelp); padding: 1rem 1.25rem;
	border-radius: 0 10px 10px 0; color: var(--msp-silver);
}
.msp-warn {
	border-left: 3px solid var(--msp-amber); background: var(--msp-kelp); padding: 1rem 1.25rem;
	border-radius: 0 10px 10px 0;
}
.wp-block-code, pre.wp-block-code {
	background: var(--msp-deep); border: 1px solid var(--msp-line); border-radius: 10px; padding: 1.1rem 1.25rem;
	overflow-x: auto; font-size: 0.875rem; line-height: 1.6; color: var(--msp-mist); max-width: 100%;
}
.wp-block-code code { font-family: var(--msp-mono); background: none; padding: 0; color: inherit; }
:not(pre) > code { background: var(--msp-kelp); color: var(--msp-mist); padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.9em; }
.wp-block-table { overflow-x: auto; max-width: 100%; margin: 1.5rem 0; }
.wp-block-table table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
.wp-block-table th, .wp-block-table td { border: 1px solid var(--msp-line); padding: 0.7rem 0.9rem; text-align: left; vertical-align: top; }
.wp-block-table th { background: var(--msp-kelp); color: var(--msp-mist); font-weight: 500; }
.wp-block-table td { background: var(--msp-deep); }
.msp-body .wp-block-post-content .wp-block-table, .msp-body .wp-block-post-content .alignwide { max-width: var(--msp-wide); }
.msp-main--wide .msp-body .wp-block-post-content > * { max-width: var(--msp-wide); }
.msp-main--wide .msp-body .wp-block-post-content > p, .msp-main--wide .msp-body .wp-block-post-content > h2, .msp-main--wide .msp-body .wp-block-post-content > ul { max-width: 52rem; }
.wp-block-post-content a { text-underline-offset: 0.18em; }
.msp-body .wp-block-post-content, .msp-body > * { margin-left: auto; margin-right: auto; }
.msp-body .wp-block-post-content { max-width: var(--msp-wide); }

/* page rail */
.msp-split { max-width: var(--msp-wide); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 44rem) minmax(0, 1fr); gap: 3rem 4rem; align-items: start; }
.msp-split > .wp-block-post-content { max-width: none; margin: 0; }
.msp-split .wp-block-post-content > * { max-width: none; }
.msp-rail { position: sticky; top: 5.5rem; display: grid; gap: 1.25rem; max-width: 20rem; justify-self: end; width: 100%; }
.msp-rail__box { border: 1px solid var(--msp-line); border-radius: 14px; padding: 1.25rem 1.25rem 1rem; background: rgba(7, 49, 47, 0.55); }
.msp-rail__h { margin: 0 0 0.6rem; color: var(--msp-silver); font-family: var(--msp-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; }
.msp-rail ul { list-style: none; margin: 0; padding: 0; }
.msp-rail li { margin: 0; }
.msp-rail a { display: flex; align-items: center; min-height: 40px; font-size: 0.9375rem; text-decoration: none; padding: 0.15rem 0; }
.msp-rail a:hover { text-decoration: underline; }
.msp-rail a.is-cur { color: var(--msp-mist); box-shadow: inset 2px 0 0 var(--msp-cyan); padding-left: 0.6rem; }
.msp-rail__cta { background: var(--msp-kelp); }
.msp-rail__cta p { margin: 0 0 0.9rem; font-size: 0.9375rem; }
.msp-rail__cta .msp-btn { width: 100%; min-height: 46px; }
.msp-toc[hidden] { display: none; }

/* end-of-article call */
.msp-next {
	max-width: var(--msp-wide); margin: 4rem auto 0; padding: 2.25rem; border: 1px solid var(--msp-line); border-radius: 18px;
	background: var(--msp-kelp);
	display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; align-items: center;
}
.msp-next h2 { font-size: 1.75rem; margin: 0 0 0.4rem; padding: 0; border: 0; }
.msp-next p { margin: 0; max-width: 36rem; }
.msp-next .msp-actions { margin: 0; }

.wp-block-search__input, .wp-block-search input[type="search"] {
	background: var(--msp-deep); color: var(--msp-mist); border: 1px solid var(--msp-edge); border-radius: 999px; padding: 0.7rem 1rem; min-height: 48px;
}
.wp-block-search__button { min-height: 48px; background: var(--msp-cyan); color: var(--msp-abyss); border: 0; border-radius: 999px; padding: 0 1.4rem; font-weight: 500; }
.wp-block-post-title a { color: var(--msp-mist); text-decoration: none; }
.wp-block-post-title a:hover { color: var(--msp-cyan); text-decoration: underline; }

/* archive / search lists */
.msp-list { max-width: 54rem; margin: 0 auto; }
.msp-list .wp-block-post-template { list-style: none; margin: 0; padding: 0; }
.msp-list .wp-block-post-template > li { padding: 2rem 0; border-top: 1px solid var(--msp-line); margin: 0; }
.msp-list .wp-block-post-template > li:last-child { border-bottom: 1px solid var(--msp-line); }
.msp-list h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin: 0 0 0.5rem; }
.msp-list .wp-block-post-excerpt { margin: 0; }
.msp-list .wp-block-post-excerpt__more-link { display: inline-block; margin-top: 0.5rem; }
.msp-list .wp-block-query-pagination { margin-top: 2rem; gap: 1rem; }
.msp-pagehead .wp-block-query-title { font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4rem); line-height: 1.04; margin: 0.5rem auto 0; }
.msp-pagehead .wp-block-search { margin-top: 1.25rem; }

/* 404 */
.msp-404 { text-align: left; }
.msp-404__code { font-family: var(--msp-mono); color: var(--msp-amber); letter-spacing: 0.2em; font-size: 0.875rem; margin: 0 auto 0.5rem; }
.msp-404 .msp-actions { margin-top: 1.5rem; }

/* resources index */
.msp-index h3 a { text-decoration: none; }


/* planner page: rail adapts (round 3) */
.msp-rail__tool { display: none; }
.msp-is-tool .msp-rail__cta { display: none; }
.msp-is-tool .msp-rail__tool { display: block; }
.msp-jump, .msp-rail__tool li:last-child { display: none; }
.msp-is-tool:has(#msp-results h2) .msp-rail__tool li:last-child { display: list-item; }
.msp-jump-wrap { margin: 0; }
@media (max-width: 62rem) {
	.msp-is-tool:has(#msp-results h2) .msp-jump {
		display: inline-flex; align-items: center; position: fixed; right: 0.75rem; bottom: 0.75rem; z-index: 40; min-height: 44px; padding: 0 0.9rem; opacity: 0.96;
		border: 1px solid var(--msp-cyan); border-radius: 999px; background: var(--msp-abyss, #041f1e); color: var(--msp-cyan); text-decoration: none; font-size: 0.9375rem; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
	}
	html.msp-res-near .msp-jump { display: none !important; }
}
.msp-is-tool .msp-jump:hover { background: rgba(47, 212, 196, 0.12); color: var(--msp-mist); }

@media (min-width: 62rem) {
	.msp-pagehead h1 { padding-right: 17rem; }
}
.msp-badge {
	position: absolute; right: 3%; top: 0.5rem; z-index: 2; font-family: var(--msp-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
	color: var(--msp-mist); background: rgba(2, 15, 15, 0.75); border: 1px solid var(--msp-edge); border-radius: 999px; padding: 0.3rem 0.8rem;
}
@media (min-width: 62.01rem) {
	.msp-layers .msp-layers__grid { max-width: 94rem; grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); }
}
.msp-jump-wrap { margin: 0; }
@media (min-width: 62.01rem) {
	.msp-is-tool .msp-split { grid-template-columns: minmax(0, 1fr) 17rem; gap: 3rem; }
	.msp-is-tool .msp-rail { max-width: 17rem; }
}
/* ==========================================================================
   8. Planner tool
   ========================================================================== */
.msp-tool { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem; align-items: start; }
.msp-tool fieldset { border: 1px solid var(--msp-line); border-radius: 10px; margin: 0 0 1.25rem; padding: 1rem 1.1rem 1.1rem; background: var(--msp-deep); min-width: 0; }
.msp-tool legend { color: var(--msp-mist); font-weight: 500; padding: 0 0.4rem; font-size: 1rem; }
.msp-tool label { display: block; color: var(--msp-mist); margin: 0.9rem 0 0.35rem; font-size: 0.9375rem; }
.msp-tool .msp-hint { color: var(--msp-dim); font-size: 0.8125rem; margin: 0.25rem 0 0; line-height: 1.5; }
.msp-tool input[type="number"], .msp-tool select {
	width: 100%; min-height: 48px; background: var(--msp-abyss); color: var(--msp-mist);
	border: 1px solid var(--msp-edge); border-radius: 6px; padding: 0.5rem 0.7rem; font: inherit; font-size: 1rem;
}
.msp-tool select { appearance: auto; }
.msp-tool label.msp-check { display: flex; align-items: flex-start; gap: 0.7rem; min-height: 44px; padding: 0.45rem 0; margin: 0 !important; cursor: pointer; }
.msp-tool .msp-check input { width: 22px; height: 22px; margin: 0.15rem 0 0; flex: none; accent-color: var(--msp-cyan); }
.msp-check span { line-height: 1.4; }
.msp-check small { display: block; color: var(--msp-dim); font-size: 0.8125rem; }
.msp-tool__err { color: var(--msp-amber); margin: 0.5rem 0 0; font-size: 0.9375rem; }
.msp-tool__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.msp-results { background: var(--msp-kelp); border-radius: 14px; padding: 1.75rem; min-height: 14rem; }
.msp-results > :first-child { margin-top: 0; }
.msp-results h2, .msp-body .msp-results h2 { font-size: 1.5rem; margin: 0 0 0.5rem; padding-top: 0; border-top: 0; }
.msp-results h3 { font-size: 1.1875rem; margin: 1.75rem 0 0.5rem; }
.msp-results h3:first-of-type { margin-top: 1.25rem; }
.msp-results p, .msp-results li { line-height: 1.65; }
.msp-results ul { padding-left: 1.2rem; margin: 0.5rem 0; }
.msp-results .msp-chip {
	display: inline-block; font-family: var(--msp-mono); font-size: 0.8125rem; color: var(--msp-abyss);
	background: var(--msp-lav); border-radius: 4px; padding: 0.15rem 0.5rem; margin-right: 0.4rem;
}
.msp-results .msp-flag { border-left: 3px solid var(--msp-amber); padding-left: 0.8rem; color: var(--msp-silver); }
.msp-results textarea {
	width: 100%; min-height: 12rem; background: var(--msp-deep); color: var(--msp-mist); border: 1px solid var(--msp-edge);
	border-radius: 6px; padding: 0.8rem; font: 0.8125rem/1.55 var(--msp-mono);
}
.msp-nojs { border-left: 3px solid var(--msp-amber); padding: 0.8rem 1rem; background: var(--msp-kelp); border-radius: 0 8px 8px 0; }
.msp-drivers { font-family: var(--msp-mono); font-size: 0.8125rem; color: var(--msp-dim); }

/* ==========================================================================
   9. Responsive
   ========================================================================== */
@media (max-width: 62rem) {
	.msp-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 2.5rem; padding-bottom: 4.5rem; gap: 1rem; }
	.msp-hero__copy { padding-right: 0; }
	.msp-figure { margin-left: -4%; margin-right: -4%; }
	.msp-figure figcaption { margin: -1rem 4% 0 4%; }
	.msp-cue { display: none; }
	.msp-layers__grid, .msp-order__grid, .msp-bound__grid, .msp-plan { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
	.msp-layers__fig { position: static; max-width: 34rem; margin: 0 auto; }
	.msp-order__head { position: static; }
	.msp-footer__inner { grid-template-columns: minmax(0, 1fr); }
	.msp-tool { grid-template-columns: minmax(0, 1fr); }
	.msp-next { grid-template-columns: minmax(0, 1fr); }
	.msp-sec { padding-top: 4.5rem; }
	.msp-layers { padding-top: 5rem; }
	.msp-order { padding: 4.5rem 0; }
	.msp-planband { padding: 4.5rem 0; }
	.msp-bound { padding-top: 4.5rem; }
}
@media (max-width: 40rem) {
	.msp-footer__nav { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
	.msp-nav a { padding: 0 0.55rem; font-size: 0.875rem; }
	.msp-nav a.msp-nav__cta { margin-left: 0; padding: 0 0.8rem; }
	.msp-hero h1 { font-size: clamp(2.35rem, 11vw, 3rem); }
	header.wp-block-template-part { position: static; }
	.msp-hero { padding-bottom: 2.5rem; }
	.h-t { display: none; }
	.h-lead { display: none; }
	.h-svg .h-tag { display: block; font-size: 34px; }
	.msp-hero .msp-badge { position: static; display: inline-block; margin: 0 0 0.9rem; }
	.h-svg .h-sub, .h-svg .h-plat { display: none; }
	.msp-path li { grid-template-columns: 3.4rem minmax(0, 1fr); gap: 0.5rem; }
	.msp-path::before, .msp-path li::after { left: 1.7rem; }
	.msp-path__n { font-size: 2rem; }
	.msp-results { padding: 1.1rem; }
	.msp-tool select { font-size: 1rem; padding-left: 0.6rem; padding-right: 0.3rem; text-overflow: ellipsis; }
	.msp-ledger { min-width: 38rem; }
	.msp-pagehead { padding-top: 1.5rem; padding-bottom: 2rem; }
	.msp-next { padding: 1.5rem; }
	.s-lbl { font-size: 24px; }
}
@media (max-width: 26rem) {
	.msp-brand__word { letter-spacing: 0.1em; font-size: 0.8125rem; }
}

@media (max-width: 40rem) {
	.msp-tablewrap { overflow: visible; }
	.msp-ledger, .msp-ledger tbody, .msp-ledger tr, .msp-ledger th, .msp-ledger td { display: block; min-width: 0; width: 100%; }
	.msp-ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.msp-ledger tbody tr { padding: 1.25rem 0; border-top: 1px solid var(--msp-line); }
	.msp-ledger tbody tr:last-child { border-bottom: 1px solid var(--msp-line); }
	.msp-ledger th, .msp-ledger td, .msp-ledger tbody tr:last-child th, .msp-ledger tbody tr:last-child td { border: 0; padding: 0.2rem 0; }
	.msp-ledger td::before { content: attr(data-l); display: block; color: var(--msp-dim); font-family: var(--msp-mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 0.5rem; }
	.msp-ledger td:last-child::before { display: none; }
}

/* ---- round 2: shared mobile menu, early figure, rails ---- */
@media (max-width: 62rem) {
	.msp-js .msp-menubtn {
		display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; padding: 0 1.1rem; margin-left: auto;
		background: transparent; color: var(--msp-mist); border: 1px solid var(--msp-edge); border-radius: 999px; font: 500 0.9375rem var(--msp-sans); cursor: pointer;
	}
	.msp-menubtn::after { content: ""; width: 0.55rem; height: 0.55rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.2s; }
	.msp-menubtn[aria-expanded="true"]::after { transform: rotate(-135deg) translate(-2px, -2px); }
	.msp-js .msp-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 0.25rem 0 0.9rem; }
	.msp-js .msp-nav.is-open { display: flex; }
	.msp-js .msp-nav a { min-height: 50px; padding: 0 0.25rem; font-size: 1.0625rem; border-bottom: 1px solid var(--msp-line); }
	.msp-js .msp-nav a.msp-nav__cta { margin: 0.9rem 0 0; justify-content: center; border: 1px solid var(--msp-edge); }
	.msp-js .msp-nav a.msp-nav__cta { order: 9; }
	.msp-split { grid-template-columns: minmax(0, 1fr); }
	.msp-rail { display: contents; }
	.msp-split { row-gap: 1.5rem; }
	.msp-rail .msp-toc { order: -1; }
	.msp-rail__box { max-width: none; }
	.msp-pagehead::after { display: none; }
	.msp-layers__fig { margin-left: 0; }
}
@media (max-width: 40rem) {
	.msp-hero { display: grid; padding-top: 1.25rem; padding-bottom: 2rem; gap: 0.9rem; }
	.msp-hero__copy { display: contents; }
	.msp-hero .msp-eyebrow { display: none; }
	.msp-hero h1 { order: 1; font-size: clamp(2.1rem, 9.5vw, 2.6rem); margin: 0; }
	.msp-hero .msp-lede { order: 2; font-size: 1rem; line-height: 1.5; margin: 0; }
	.msp-hero .msp-actions { order: 3; margin: 0; gap: 0.5rem; }
	.msp-hero .msp-actions .msp-btn { flex: 1 1 100%; min-height: 48px; }
	.msp-hero .msp-actions .msp-btn--ghost { min-height: 44px; }
	.msp-hero .msp-figure { order: 4; margin-top: 0.25rem; }
	.msp-hero .msp-fine { order: 5; }
	.msp-hero .msp-figure figcaption { margin-top: 0; }
	.msp-legend { font-size: 0.8125rem; }
}
/* ==========================================================================
   10. Print (planner summary)
   ========================================================================== */
@media print {
	body { background: #fff; color: #000; }
	header.wp-block-template-part, footer.wp-block-template-part, .msp-tool form, .msp-tool__actions, .msp-crumbs, .msp-skip { display: none !important; }
	.msp-tool { display: block; }
	.msp-results { background: #fff; color: #000; padding: 0; }
	.msp-results h2, .msp-results h3, .msp-main h1 { color: #000; }
	a { color: #000; }
}

/* 404: one left edge (title, eyebrow and body share the wide column) */
.msp-404 h1 { max-width: var(--msp-wide) !important; }
.msp-body--404 > * { max-width: var(--msp-wide); margin-left: auto !important; margin-right: auto !important; }

/* planner: anchored results clear the sticky header */
#msp-results, .msp-results h2, #msp-form { scroll-margin-top: 5.5rem; }
.msp-is-tool .msp-body { padding-bottom: 4.5rem; }
html.msp-typing .msp-jump { display: none !important; }
.msp-seltxt { display: none; margin: 0.35rem 0 0; font-size: 0.8125rem; line-height: 1.4; color: var(--msp-silver); }
@media (max-width: 40rem) {
	.msp-seltxt.is-long { display: block; }
	.msp-crumbs li:last-child { display: none; }
	.msp-crumbs li:nth-last-child(2)::after { display: none; }
	.h-tg3-cold { transform: translateX(44px); }
	.h-tg4-cold, .h-tg4-mid, .h-tg4-hot { transform: translateX(-110px); }
}

/* anchored headings clear the 58px sticky header (it is static at <=40rem) */
.msp-main [id], .wp-block-post-content [id] { scroll-margin-top: 5.5rem; }
/* the results pill stays out of the way while the page is moving */
html.msp-scrolling .msp-jump { opacity: 0 !important; pointer-events: none; }
.msp-jump { transition: opacity 0.2s; }
