/* Console on paper: token overlay for the existing Next export. Loaded last. */
[data-theme="dark"] {
  color-scheme: dark;
  --s-950: 11 14 20;
  --s-900: 17 21 29;
  --s-800: 31 37 48;
  --s-700: 48 56 70;
  --s-600: 98 108 124;
  --s-500: 136 146 160;
  --s-400: 168 176 188;
  --s-300: 205 211 220;
  --s-200: 228 232 238;
  --s-100: 240 243 247;
  --s-50: 250 251 252;
  --elev-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.25);
  --elev-2: 0 2px 8px rgba(0, 0, 0, 0.4), 0 24px 64px rgba(0, 0, 0, 0.35);
  --ring-soft: 0 0 0 1px rgba(255, 255, 255, 0.07);
}

:root,[data-theme="light"] {
  color-scheme: light;
  --s-950: 251 250 247;
  --s-900: 255 255 255;
  --s-800: 232 229 222;
  --s-700: 214 210 201;
  --s-600: 124 120 112;
  --s-500: 100 96 88;
  --s-400: 78 74 68;
  --s-300: 44 44 42;
  --s-200: 28 30 34;
  --s-100: 20 22 27;
  --s-50: 14 17 22;
  --elev-1: 0 1px 2px rgba(14, 17, 22, 0.05), 0 8px 24px rgba(14, 17, 22, 0.04);
  --elev-2: 0 2px 8px rgba(14, 17, 22, 0.06), 0 24px 64px rgba(14, 17, 22, 0.08);
  --ring-soft: 0 0 0 1px rgba(14, 17, 22, 0.08);
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3 { letter-spacing: -0.02em; text-wrap: balance; }
p, li { text-wrap: pretty; }
code, pre, kbd { font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace; }

/* Code and tables never widen the page */
pre { max-width: 100%; overflow-x: auto; }
table { max-width: 100%; }
img, svg, video { max-width: 100%; }

/* ---- Structure: lab components on the real Tailwind markup ---- */
:root { --nv-ink: rgb(var(--s-50)); --nv-paper: rgb(var(--s-950)); --nv-sev: #d63a22; }

header.sticky {
  background: color-mix(in srgb, rgb(var(--s-950)) 82%, transparent) !important;
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgb(var(--s-800)) !important;
}
header.sticky nav a { font-weight: 560; letter-spacing: -0.005em; }
header.sticky nav a:hover { background: rgb(var(--s-800) / 0.6) !important; }

/* Accent: ink instead of cyan; one severity red for primary actions */
[class*="text-cyan"], [class*="text-sky"] { color: rgb(var(--s-50)) !important; }
[class*="border-cyan"], [class*="border-sky"] { border-color: rgb(var(--s-700)) !important; }
[class*="bg-cyan-"][class*="/"], [class*="bg-sky-"][class*="/"] { background-color: rgb(var(--s-800) / 0.5) !important; }
a[class*="bg-cyan-"]:not([class*="/"]), button[class*="bg-cyan-"]:not([class*="/"]),
a[class*="bg-sky-"]:not([class*="/"]), button[class*="bg-sky-"]:not([class*="/"]) {
  background-color: var(--nv-sev) !important; color: #fff !important; border-color: var(--nv-sev) !important;
  border-radius: 999px; font-weight: 600;
}

.btn-primary, a.btn-primary, button.btn-primary {
  background: var(--nv-sev) !important; background-image: none !important; color: #fff !important;
  border-color: var(--nv-sev) !important; border-radius: 999px !important; font-weight: 600; box-shadow: none !important;
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* Dark-designed immersive pages (architecture atlas) keep their dark console palette, scoped */
html[data-nd="map"] main {
  color-scheme: dark;
  --s-950: 11 14 20; --s-900: 17 21 29; --s-800: 31 37 48; --s-700: 48 56 70; --s-600: 98 108 124;
  --s-500: 136 146 160; --s-400: 168 176 188; --s-300: 205 211 220; --s-200: 228 232 238; --s-100: 240 243 247; --s-50: 250 251 252;
  background: #0b0e14; color: #e6edf3;
  margin-inline: calc(50% - 50vw); padding-inline: calc(50vw - 50%);
}

html body a.btn-primary, html body button.btn-primary {
  background: var(--nv-sev) !important; background-image: none !important; color: #fff !important;
  border-color: var(--nv-sev) !important; box-shadow: none !important;
}
html body .btn-primary::before { display: none !important; }
html[data-theme] body a.btn-primary, html[data-theme] body button.btn-primary,
html[data-theme] body a.home-cta-primary, html[data-theme] body a.sev1-iplock__cta, html[data-theme] body button.sev1-iplock__cta {
  color: #fff !important; background: var(--nv-sev) !important;
}

/* Inside dark-scoped immersive pages, undo paper-only overrides */
html[data-nd="map"] main .text-white { color: #fff !important; }
html[data-nd="map"] main div[class*="rounded-2xl"][class*="border"] {
  background: rgb(28 28 30 / 0.72) !important; border-color: rgb(255 255 255 / 0.1) !important; box-shadow: none !important;
}
html[data-nd="map"] main button.bg-white { background: #fff !important; color: #0e1116 !important; }

.page-hero-title, .page-shell > div > h2, .page-shell h1, .page-shell section > h2 { color: rgb(var(--s-50)) !important; }

.page-hero-title { color: rgb(var(--s-50)) !important; -webkit-text-fill-color: rgb(var(--s-50)) !important; background: none !important; }
.membership-card {
  background: rgb(var(--s-900)) !important; background-image: none !important;
  border: 1px solid rgb(var(--s-800)) !important; box-shadow: var(--elev-1) !important; color: rgb(var(--s-100));
}
.membership-card input { background: rgb(var(--s-950)) !important; color: rgb(var(--s-50)) !important; border-color: rgb(var(--s-700)) !important; }
.membership-card label, .membership-card [class*="text-zinc"] { color: rgb(var(--s-400)) !important; }

/* Hardcoded white text must follow the theme */
.text-white, [class~="hover:text-white"]:hover, [class*="group-hover:text-white"] { color: rgb(var(--s-50)) !important; }
[class*="bg-slate-950"] .text-white { color: rgb(var(--s-50)) !important; }

/* Cards: paper panels, ink hover border, soft shadow */
article[class*="rounded-2xl"], section[class*="rounded-2xl"], div[class*="rounded-2xl"][class*="border"] {
  background: rgb(var(--s-900)) !important;
  border: 1px solid rgb(var(--s-800)) !important;
  border-radius: 16px !important;
  box-shadow: var(--elev-1);
}
article[class*="rounded-2xl"]:hover { border-color: rgb(var(--s-50) / 0.55) !important; }

/* Page rhythm and reading measure */
.page-shell h1 { font-weight: 650; letter-spacing: -0.03em; }
.page-shell p { line-height: 1.65; }
footer.border-t { background: rgb(var(--s-900)) !important; border-top: 1px solid rgb(var(--s-800)) !important; }
input[type="search"], input[type="text"] { border-radius: 999px; }

/* Console objects stay dark in both themes */
[data-theme="light"] pre {
  background: #0b0e14;
  color: #e6edf3;
  border-radius: 12px;
}

/* ---- Lab components ported onto live markup ---- */
h1, .display { font-weight: 680; letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-weight: 650; letter-spacing: -0.025em; }
.page-shell h1, html[data-nd="home"] h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); }

/* Console: every code block is the one dark object on the page */
pre {
  background: #0b0e14 !important; color: #e6edf3 !important;
  border: 1px solid #1c222d !important; border-radius: 14px !important;
  box-shadow: var(--elev-2); padding: 16px 18px; line-height: 1.6;
}
pre code { background: none !important; color: inherit !important; border: 0 !important; }
:not(pre) > code {
  background: rgb(var(--s-800) / 0.7); color: rgb(var(--s-100));
  border-radius: 6px; padding: 0.1em 0.38em; font-size: 0.9em;
}
html[data-nd="map"] :not(pre) > code, .archx-page :not(pre) > code { background: rgb(255 255 255 / 0.08); color: #e6edf3; }

/* Pills and chips */
.access-chip { border-radius: 999px; font-weight: 600; letter-spacing: 0.02em; text-transform: none; font-size: 11px; }
.access-chip-pro { background: #e8effd !important; color: #1f5fbf !important; border-color: transparent !important; }
.access-chip-free { background: #e4f5ec !important; color: #0b7f54 !important; border-color: transparent !important; }
html[data-theme="dark"] .access-chip-pro { background: rgb(31 95 191 / 0.2) !important; color: #8db4f0 !important; }
html[data-theme="dark"] .access-chip-free { background: rgb(11 127 84 / 0.2) !important; color: #6fd3a6 !important; }

/* Tables read like the lab: hairlines, no heavy fills */
table { border-collapse: collapse; }
th, td { border-color: rgb(var(--s-800)) !important; }
thead th { color: rgb(var(--s-50)) !important; font-weight: 600; }

/* Tinted callouts instead of coloured left borders */
[class*="border-l-"] { border-left-width: 0 !important; border-radius: 14px; }
blockquote { background: rgb(var(--s-800) / 0.5); border: 0 !important; border-radius: 14px; padding: 14px 18px; }

/* Header wordmark */
header.sticky a[href="/"] { letter-spacing: -0.02em; font-weight: 650; }

/* Focus ring in ink, not cyan */
:focus-visible { outline: 2px solid rgb(var(--s-50)); outline-offset: 2px; }

/* ---- Brand clarity block (home) ---- */
.nd-brand { text-align: left; }
.nd-brand .eyebrow { margin-bottom: 14px; }
.nd-brand-h { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.05; font-weight: 700; letter-spacing: -0.035em; color: rgb(var(--s-50)) !important; max-width: 24ch; }
.nd-brand-sub { margin-top: 18px; max-width: 58ch; font-size: 1.1rem; line-height: 1.6; color: rgb(var(--s-400)); }
.nd-brand-grid { display: grid; gap: 16px; margin-top: 36px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.nd-brand-col { background: rgb(var(--s-900)); border: 1px solid rgb(var(--s-800)); border-radius: 16px; box-shadow: var(--elev-1); padding: 24px; }
.nd-brand-col h3 { margin: 14px 0 12px; font-size: 1.2rem; line-height: 1.25; font-weight: 650; letter-spacing: -0.02em; color: rgb(var(--s-50)); }
.nd-brand-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: rgb(var(--s-400)); font-size: 0.97rem; line-height: 1.5; }
.nd-brand-col li::before { content: "·"; margin-right: 8px; color: rgb(var(--s-600)); }
.nd-brand-col a { color: rgb(var(--s-50)); text-decoration: underline; text-decoration-color: rgb(var(--s-700)); text-underline-offset: 3px; }
.nd-brand-col a:hover { text-decoration-color: var(--nv-sev); }
.nd-brand-tag { display: inline-block; font-size: 11px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgb(var(--s-800)); color: rgb(var(--s-300)); }
.nd-brand-tag.nd-red { background: #fde8e4; color: #b3281a; }
.nd-brand-tag.nd-green { background: #e4f5ec; color: #0b7f54; }
html[data-theme="dark"] .nd-brand-tag.nd-red { background: rgb(214 58 34 / 0.2); color: #ff9a8a; }
html[data-theme="dark"] .nd-brand-tag.nd-green { background: rgb(11 127 84 / 0.22); color: #6fd3a6; }
.nd-brand-who { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.nd-brand-who span { font-size: 0.92rem; padding: 8px 14px; border-radius: 999px; background: rgb(var(--s-800) / 0.6); color: rgb(var(--s-300)); }

/* Home hero: second line is muted ink, not a transparent gradient */
.home-hero-accent { background: none !important; -webkit-text-fill-color: rgb(var(--s-500)) !important; color: rgb(var(--s-500)) !important; }
.home-cta-primary { background: var(--nv-sev) !important; background-image: none !important; color: #fff !important; border-radius: 999px !important; box-shadow: none !important; }
.termlink { color: rgb(var(--s-50)) !important; text-decoration: underline; text-decoration-color: rgb(var(--s-700)); text-underline-offset: 3px; }

.home-cta-primary, .home-cta-primary * { color: #fff !important; -webkit-text-fill-color: #fff !important; }


/* testimonials */
.nd-quote-grid{display:grid;gap:16px;grid-template-columns:repeat(3,1fr);margin-top:28px}
.nd-quote{margin:0;padding:24px 26px;border:1px solid var(--nd-line,rgba(17,24,39,.1));border-radius:20px;background:#fff;display:flex;flex-direction:column;gap:14px}
.nd-quote-lg{grid-column:1/-1}
.nd-quote-who{display:flex;align-items:center;gap:10px;font-size:13px;color:#5b6472}
.nd-quote-av{width:32px;height:32px;border-radius:50%;background:#111827;color:#fff;display:grid;place-items:center;font-weight:600}
.nd-quote blockquote{margin:0;background:none!important;border:0!important;padding:0!important;font-size:17px;line-height:1.55;color:#111827}
.nd-quote-lg blockquote{font-size:20px}
@media(max-width:720px){.nd-quote-grid{grid-template-columns:1fr}.nd-quote-lg blockquote{font-size:17px}}

button[aria-label="Toggle theme"], button[aria-label^="Switch to"]{display:none!important}
html[data-nd="map"] main [class*="text-slate"] { color: #cbd5e1 !important; }
html[data-nd="map"] main button.bg-white, html[data-nd="map"] main button.bg-white *, html[data-nd="map"] main button.bg-slate-100, html[data-nd="map"] main button.bg-slate-100 *, html[data-nd="map"] main p.bg-white { color: #0e1116 !important; }
html[data-nd="map"] main a[class*="bg-[#0a84ff]"] { background: #d93a1f !important; color: #fff !important; box-shadow: none !important; }
html[data-nd="map"] main a[class*="bg-[#0a84ff]"]:hover { background: #bf2f16 !important; }
main h1 { line-height: 1.08 !important; }

/* ---- Brand identity pass: serif display, mono labels, Sev-1 marker, incident strip ---- */
:root { --nd-serif: "Instrument Serif", Georgia, "Times New Roman", serif; --nd-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace; }
.nd-serif, main h1 { font-family: var(--nd-serif) !important; font-weight: 400 !important; letter-spacing: -0.015em !important; }
main h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem) !important; line-height: 1.02 !important; }
.nd-serif { font-size: clamp(2.3rem, 5vw, 3.8rem) !important; line-height: 1.04 !important; max-width: 22ch; }
.nd-serif em, main h1 em { font-style: italic; color: #bf2f16; }
.eyebrow, .nd-brand-tag { font-family: var(--nd-mono) !important; letter-spacing: 0.08em !important; font-weight: 600 !important; }
.eyebrow::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #d93a1f; vertical-align: 1px; animation: nd-pulse 2.4s ease-out infinite; }
@keyframes nd-pulse { 0% { box-shadow: 0 0 0 0 rgb(217 58 31 / .45); } 70%, 100% { box-shadow: 0 0 0 8px rgb(217 58 31 / 0); } }
@media (prefers-reduced-motion: reduce) { .eyebrow::before { animation: none; } }
.nd-sev { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font: 600 11px/1 var(--nd-mono); letter-spacing: .08em; text-transform: uppercase; color: #b3281a; }
.nd-sev i { width: 8px; height: 8px; border-radius: 50%; background: #d93a1f; animation: nd-pulse 2.4s ease-out infinite; }
.nd-inc-card { display: grid; grid-template-columns: 1.3fr 1fr 1fr; margin-top: 28px; border: 1px solid #1b1f27; border-radius: 14px; overflow: hidden; background: #0e1116; text-decoration: none; box-shadow: 0 1px 0 #fff inset, 0 18px 40px -24px rgb(14 17 22 / .5); }
.nd-inc-col { padding: 20px 22px; border-right: 1px solid rgb(255 255 255 / .08); min-width: 0; }
.nd-inc-col:last-child { border-right: 0; }
.nd-inc-col b { display: block; margin-bottom: 12px; font: 600 11px/1 var(--nd-mono); letter-spacing: .1em; text-transform: uppercase; color: #ff8a76; }
.nd-inc-col:nth-child(3) b { color: #6fd3a6; }
.nd-inc-col:nth-child(2) b { color: #cbd5e1; }
.nd-inc-col pre { margin: 0; padding: 0; background: none; border: 0; font: 400 12.5px/1.6 var(--nd-mono); color: #e6edf3; white-space: pre-wrap; overflow-wrap: anywhere; }
.nd-inc-col p { margin: 0; font-size: 14.5px; line-height: 1.6; color: #cbd5e1; }
.nd-inc-foot { margin-top: 14px; font-size: 14px; color: rgb(var(--s-500)); }
.nd-inc-foot a { color: #b3281a; font-weight: 600; }
@media (max-width: 760px) { .nd-inc-card { grid-template-columns: 1fr; } .nd-inc-col { border-right: 0; border-bottom: 1px solid rgb(255 255 255 / .08); } }
.nd-inc-card .nd-inc-col pre { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important; }

/* ---- Hero clarity + wordmark ---- */
.home-hero-accent { color: #bf2f16 !important; font-style: italic; }
.pg-mark { font-size: 0 !important; width: 14px !important; height: 14px !important; border: 0 !important; background: #d93a1f !important; border-radius: 50% !important; animation: nd-pulse 2.4s ease-out infinite; }
header a[aria-label*="home"] { gap: 10px !important; }
header a[aria-label*="home"] span:last-child { font-family: var(--nd-mono) !important; font-weight: 600 !important; letter-spacing: -0.02em !important; }
.termlink { min-height: 0 !important; display: inline !important; text-decoration: none !important; border-bottom: 1px dotted rgb(var(--s-500)) !important; background: none !important; box-shadow: none !important; }
.nd-proof { margin: 22px 0 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 12px; font: 500 12px/1.4 var(--nd-mono); letter-spacing: .02em; color: rgb(var(--s-500)); text-align: center; }
.nd-proof b { color: rgb(var(--s-50)); font-weight: 600; }
.nd-proof i { width: 3px; height: 3px; border-radius: 50%; background: rgb(var(--s-600)); }
html body main h1 .home-hero-accent, html body main h1 span.home-hero-accent { color: #bf2f16 !important; -webkit-text-fill-color: #d93a1f !important; background: none !important; }

/* Intent flow */
.nd-intents .nd-serif { margin-top: 8px; }
.nd-intent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.nd-intent { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; text-decoration: none; color: #0f172a; transition: border-color .15s, transform .15s, box-shadow .15s; }
.nd-intent:hover, .nd-intent:focus-visible { border-color: #d93a1f; transform: translateY(-2px); box-shadow: 0 8px 24px -12px rgba(217,58,31,.35); }
.nd-intent-k { font: 600 11px/1 var(--nd-mono); letter-spacing: .08em; text-transform: uppercase; color: #bf2f16; }
.nd-intent b { font-size: 18px; line-height: 1.25; color: #0f172a; }
.nd-intent span:not(.nd-intent-k) { font-size: 14px; line-height: 1.45; color: #475569; }
.nd-intent em { margin-top: auto; padding-top: 8px; font: 600 13px/1 var(--nd-mono); font-style: normal; color: #bf2f16; }
.nd-next { margin: 56px auto 40px; padding-top: 28px; border-top: 1px solid #e2e8f0; }
.nd-next-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 12px; }
.nd-next a { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; text-decoration: none; }
.nd-next a:hover { border-color: #d93a1f; }
.nd-next a b { color: #0f172a; font-size: 15px; }
.nd-next a span { color: #475569; font-size: 13px; }
.nd-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 80rem; margin: 0 auto; padding: 12px 24px; }
.nd-jump span { font: 600 11px/1 var(--nd-mono); letter-spacing: .08em; text-transform: uppercase; color: #64748b; margin-right: 4px; }
.nd-jump a { padding: 6px 12px; border: 1px solid #e2e8f0; border-radius: 999px; background: #fff; color: #0f172a !important; font-size: 13px; text-decoration: none; }
.nd-jump a:hover { border-color: #d93a1f; color: #bf2f16 !important; }
@media (max-width: 900px) { .nd-intent-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .nd-intent-grid { grid-template-columns: 1fr; } }

.nd-brand-grid { display: none !important; }
.nd-brand .nd-brand-sub { max-width: 60ch; }

/* Case File (errors detail) */
.nd-case { position: sticky; top: 56px; z-index: 20; margin: 20px 0 8px; padding: 12px; border: 1px solid #e2e8f0; border-radius: 14px; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); }
.nd-case-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.nd-case-tag { font: 600 11px/1 var(--nd-mono); letter-spacing: .16em; text-transform: uppercase; color: #bf2f16; }
.nd-case-mode { display: inline-flex; border: 1px solid #e2e8f0; border-radius: 999px; overflow: hidden; }
.nd-case-mode button { padding: 6px 14px; font-size: 12px; font-weight: 600; color: #475569; background: #fff; cursor: pointer; }
.nd-case-mode button.on { background: #d93a1f; color: #fff; }
.nd-case-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.nd-case-tabs button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; text-align: left; cursor: pointer; border-top: 3px solid #e2e8f0; }
.nd-case-tabs button b { font: 600 11px/1 var(--nd-mono); color: #94a3b8; }
.nd-case-tabs button span { font-size: 14px; font-weight: 600; color: #0f172a; }
.nd-case-tabs button i { font-style: normal; font-size: 11px; color: #64748b; }
.nd-case-tabs button.on { border-top-color: #d93a1f; border-color: #d93a1f; background: #fff5f2; }
.nd-case-tabs button.on b { color: #bf2f16; }
.nd-case-tabs button:focus-visible, .nd-case-mode button:focus-visible { outline: 2px solid #d93a1f; outline-offset: 2px; }
@media (max-width: 640px) {
  .nd-case { top: 48px; padding: 8px; }
  .nd-case-tabs { display: flex; overflow-x: auto; gap: 6px; }
  .nd-case-tabs button { flex: 0 0 auto; min-width: 92px; }
  .nd-case-tabs button i { display: none; }
}

/* Incident record rail (errors, runbooks, lessons) */
.nd-rec { position: sticky; top: 64px; z-index: 20; display: flex; align-items: center; gap: 14px; margin: 18px 0 10px; padding: 8px 10px; border: 1px solid #e2e8f0; border-radius: 12px; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); }
.nd-rec-tag { flex: none; font: 600 11px/1 var(--nd-mono); letter-spacing: .16em; text-transform: uppercase; color: #bf2f16; }
.nd-rec ol { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.nd-rec ol::-webkit-scrollbar { display: none; }
.nd-rec a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; color: #475569; white-space: nowrap; text-decoration: none; }
.nd-rec a b { font: 600 10px/1 var(--nd-mono); color: #94a3b8; }
.nd-rec a:hover { background: #f1f5f9; color: #0f172a; }
.nd-rec a.on { background: #fff1ed; color: #bf2f16; }
.nd-rec a.on b { color: #bf2f16; }
.nd-rec a:focus-visible { outline: 2px solid #d93a1f; outline-offset: 2px; }
.nd-rec-target { scroll-margin-top: 130px; }
.nd-mitigate { border-left: 4px solid #d93a1f !important; }
@media (max-width: 640px) { .nd-rec { top: 56px; padding: 6px; } .nd-rec-tag { display: none; } }

.nd-rec.nd-flat { position: sticky !important; top: 64px !important; left: auto !important; width: auto !important; flex-direction: row !important; align-items: center !important; margin: 18px 0 10px !important; padding: 8px 10px !important; }
.nd-rec.nd-flat ol { flex-direction: row !important; overflow-x: auto !important; gap: 4px !important; }
.nd-rec.nd-flat li { width: auto !important; }
.nd-rec.nd-flat a { display: inline-flex !important; }
/* Desktop side rails: timeline left, value cards right */
.nd-side { display: none; }
@media (min-width: 1340px) {
  .nd-rec { position: fixed; top: 150px; left: calc(50% - 384px - 232px); width: 200px; flex-direction: column; align-items: stretch; gap: 8px; margin: 0; padding: 14px 10px; z-index: 12; }
  .nd-rec ol { flex-direction: column; overflow: visible; gap: 2px; }
  .nd-rec li { width: 100%; }
  .nd-rec a { display: block; }
  .nd-side { display: flex; flex-direction: column; gap: 12px; position: fixed; top: 150px; left: calc(50% + 384px + 32px); width: 240px; z-index: 12; }
  .nd-side-card { display: block; padding: 14px 16px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; color: #0f172a; text-decoration: none; }
  .nd-side-card:hover { border-color: #d93a1f; }
  .nd-side-card b { display: block; margin: 4px 0 6px; font-size: 15px; line-height: 1.3; }
  .nd-side-card span { font-size: 13px; line-height: 1.45; color: #475569; }
  .nd-side-card .nd-side-k { display: block; font: 600 10.5px/1 var(--nd-mono, monospace); letter-spacing: .14em; text-transform: uppercase; color: #bf2f16; }
  .nd-side-card em { display: block; margin-top: 10px; font-style: normal; font-weight: 600; font-size: 13px; color: #bf2f16; }
  .nd-side-main { background: #fff1ed; border-color: #f5c4b8; }
  .nd-side-note { margin: 2px 4px 0; font-size: 12px; line-height: 1.5; color: #64748b; }
}

@media (max-width: 767px) { .nd-hide-m { display: none !important; } }

.nd-rel-closed > div:not(:first-child) { display: none; }
.nd-rel-btn { margin-top: 12px; padding: 8px 14px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; color: #0f172a; font: 600 13px/1 inherit; cursor: pointer; }
.nd-rel-btn:hover { background: #f1f5f9; }

/* nd-compact: denser list pages */
main .grid.min-w-0.gap-5>a.card{display:flex;flex-direction:column;align-items:stretch}
main .grid.min-w-0.gap-5>a.card>*{max-width:100%}
@media (max-width:899px){
  main .grid.min-w-0.gap-5{gap:12px}
  main .grid.min-w-0.gap-5>a.card{padding:16px 18px}
  main .grid.min-w-0.gap-5>a.card h2{margin-top:10px;font-size:18px;line-height:1.3}
  main .grid.min-w-0.gap-5>a.card p{margin-top:8px;font-size:14px;line-height:1.55;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
}
@media (min-width:900px){
  ul.runbook-list{display:grid!important;grid-template-columns:1fr 1fr;gap:0 24px}
  ul.runbook-list .runbook-row{padding-top:12px;padding-bottom:12px}
  .runbook-row__line{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  main .grid.min-w-0.gap-5{grid-template-columns:1fr 1fr;gap:14px}
  main .grid.min-w-0.gap-5>a.card{padding:16px 18px;display:flex;flex-direction:column}
  main .grid.min-w-0.gap-5>a.card h2{margin-top:10px;font-size:18px;line-height:1.3}
  main .grid.min-w-0.gap-5>a.card p{margin-top:8px;font-size:14px;line-height:1.55;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
}
@media (min-width:1200px){
  main .grid.lg\:grid-cols-3{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
  main .grid.lg\:grid-cols-3>a.card{padding:16px}
  main .grid.lg\:grid-cols-3>a.card h3{margin-top:8px;font-size:15px;line-height:1.35}
}
@media (min-width:1100px){
  main section .grid.md\:grid-cols-2:has(>a.card){grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
  main section .grid.md\:grid-cols-2>a.card{padding:14px 16px}
  main section .grid.md\:grid-cols-2>a.card p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;line-height:1.5}
  main section .grid.md\:grid-cols-2>a.card h3{font-size:15px;line-height:1.35;margin-top:8px}
}
.nd-clip{position:relative}
.nd-clip-closed>pre{max-height:300px;overflow:hidden}
.nd-clip-closed::after{content:"";position:absolute;left:0;right:0;bottom:40px;height:70px;background:linear-gradient(transparent,#fbfaf7);pointer-events:none}
.nd-clip-btn{display:block;margin:8px 0 0;padding:6px 14px;border:1px solid #e8e5de;border-radius:999px;background:#fff;color:#14161b;font:600 13px/1 inherit;cursor:pointer}
.nd-clip-btn:hover{background:#efece4}
.nd-sec-closed>*:not(:first-child){display:none!important}
.nd-sec-closed{padding-top:14px!important;padding-bottom:14px!important}
.nd-sec-btn{margin-left:12px;padding:5px 12px;border:1px solid #e8e5de;border-radius:999px;background:#fff;color:#14161b;font:600 12px/1 inherit;cursor:pointer;flex:none}
.nd-sec-btn:hover{background:#efece4}

.nd-vol{padding-top:48px}.nd-vol-lede{color:var(--tx2,#5b6068);margin:8px 0 20px}.nd-vol-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}.nd-vol-list li{display:flex;gap:14px;align-items:flex-start;background:#fff;border:1px solid #e6e2d9;border-radius:14px;padding:14px 16px}.nd-vol-list b{font:600 26px/1 Georgia,serif;color:#bf2f16;min-width:44px}.nd-vol-list span{display:flex;flex-direction:column;font-size:14px;color:#5b6068}.nd-vol-list strong{color:#14161b;font-size:15px;margin-bottom:2px}.nd-vol-who{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin-top:16px}.nd-vol-who div{border-top:2px solid #d9381e;padding:10px 2px;display:flex;flex-direction:column;gap:2px}.nd-vol-who em{font-style:normal;font:600 12px ui-monospace,monospace;color:#bf2f16;text-transform:uppercase}.nd-vol-who b{font-size:16px;color:#14161b}.nd-vol-who span{font-size:14px;color:#5b6068}

main p.rounded-full.border-emerald-500\/30{background:#fff!important;border:1px solid #e6e2d9!important;color:#14161b!important;box-shadow:0 1px 0 rgba(20,22,27,.04);padding:7px 16px 7px 8px!important;gap:10px!important;font-size:13px!important;font-weight:500!important}main p.rounded-full.border-emerald-500\/30>span{width:22px;height:22px;border-radius:999px;background:#d9381e;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:700}

.nd-vol-team{margin:18px 0;padding:16px 18px;border:1px solid #e7dfd2;border-left:3px solid #c8102e;background:#fff;border-radius:10px;display:grid;gap:6px}.nd-vol-team b{font-size:16px}.nd-vol-team span{color:#555;line-height:1.55}

#nd-res{position:fixed;inset:0;z-index:99999;background:rgba(30,20,15,.45);display:flex;align-items:flex-start;justify-content:center;padding:6vh 12px;overflow:auto}.nd-res-card{background:#fffdf8;color:#1b1b1b;border:1px solid #e7dfd2;border-radius:14px;max-width:640px;width:100%;padding:20px;position:relative;box-shadow:0 20px 60px rgba(0,0,0,.25)}.nd-res-card h2{font-size:20px;margin:0 36px 8px 0}.nd-res-x{position:absolute;top:10px;right:10px;min-height:44px;min-width:64px;border:1px solid #d9cfbf;background:#fff;border-radius:10px;font-weight:600;cursor:pointer}.nd-res-note{color:#444;line-height:1.5;margin:6px 0}.nd-res-list{list-style:none;padding:0;margin:12px 0;display:grid;gap:8px}.nd-res-list a{display:grid;gap:3px;padding:12px;border:1px solid #e7dfd2;border-radius:10px;background:#fff;text-decoration:none;color:inherit;min-height:44px}.nd-res-list a:hover,.nd-res-list a:focus{border-color:#c8102e}.nd-res-t{font-size:12px;color:#666;display:flex;gap:8px;align-items:center}.nd-res-t i{font-style:normal;font-size:11px;padding:1px 7px;border-radius:99px;border:1px solid #d9cfbf}.nd-res-t i.pro{border-color:#c8102e;color:#c8102e}.nd-res-p{font-size:13px;color:#555}.nd-res-foot a{color:#c8102e;font-weight:600}

#nd-sym{margin:0 0 28px}#nd-sym h2{font-size:22px;margin:0 0 6px}.nd-sym-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;margin-top:12px}.nd-sym-card{border:1px solid #e7dfd2;border-radius:12px;background:#fff;padding:14px;color:#1b1b1b}.nd-sym-card h3{font-size:16px;margin:0 0 6px}.nd-sym-card p{font-size:13px;color:#555;margin:0 0 8px;line-height:1.45}.nd-sym-card ul{list-style:none;padding:0;margin:0;display:grid;gap:4px}.nd-sym-card li{display:flex;gap:8px;justify-content:space-between;align-items:baseline}.nd-sym-card a{color:#c8102e;font-size:14px;font-weight:600}.nd-sym-card i{font-style:normal;font-size:11px;padding:1px 7px;border-radius:99px;border:1px solid #d9cfbf;color:#666}.nd-sym-card i.pro{border-color:#c8102e;color:#c8102e}

.runbook-row:hover .runbook-row__title,.runbook-row:focus-visible .runbook-row__title{color:#bf2f16!important}

@media(max-width:480px){header a[href="/"] span.hidden{display:inline!important;font-size:13px}}

.nd-rel{display:inline-flex;gap:6px;align-items:center;border:1px solid #e2d6d0;border-radius:8px;padding:6px 10px;font-size:13px;color:#1f1a17;background:#fff;text-decoration:none}
.nd-rel b{font-family:ui-monospace,monospace;color:#bf2f16}
.nd-rel:hover{border-color:#d9381e}
a.eyebrow,.eyebrow{color:#bf2f16}
@media(max-width:1023px){.nd-rec:not(.nd-flat),.nd-side{display:none!important}}
html body main #mvcc-title { font-size: clamp(1.9rem, 3.4vw, 2.8rem) !important; line-height: 1.12 !important; }
@media (min-width: 1024px) { .nd-rec:not(.nd-flat) a { white-space: normal; line-height: 1.3; align-items: flex-start; } }
/* Reading pages: calmer titles and a comfortable line length */
html:not([data-nd="home"]) main h1 { font-size: clamp(1.85rem, 3.2vw, 2.7rem) !important; line-height: 1.14 !important; max-width: 30ch; }
html:not([data-nd="home"]) main :is(.text-center, .page-hero, .archx-hero) > :is(h1, p, .eyebrow) { margin-left: auto; margin-right: auto; }
html:not([data-nd="home"]) main h1 + p, html:not([data-nd="home"]) main header p { font-size: 1.0625rem; line-height: 1.7; max-width: 68ch; }
.arch-cutaway-rail-mobile{flex-wrap:wrap!important;overflow:visible!important;gap:6px!important}

@media(max-width:1023px){header button[aria-label="Toggle navigation menu"],header button[aria-label*="Search"],header a[aria-label*="Search"]{min-width:44px;min-height:44px}}

@media (max-width:639px){main .grid.max-w-7xl.items-stretch>.price-card:first-child{order:5}main .grid.max-w-7xl.items-stretch>.membership-card{transform:none}}

@media (max-width:640px){
  main button,main input:not([type=checkbox]):not([type=radio]),main select,header button,header summary,.nd-ifilter button{min-height:44px}
  footer a{display:inline-flex;align-items:center;min-height:44px;min-width:44px}
  header a,header summary,nav a{min-height:44px;display:inline-flex;align-items:center}
  .nd-rec a,.nd-start a{min-height:44px;display:flex;align-items:center}
  main a.nd-chip,main .nd-strip a{min-height:44px;display:inline-flex;align-items:center}
}@media (max-width:640px){
  main button{min-width:44px}
  main :not(p):not(span):not(code):not(pre) > a:not(.nd-keep){min-height:44px;display:inline-flex;align-items:center}
  main li > a, main div > a{box-sizing:border-box}
}@media (max-width:640px){
  button,summary{min-height:44px;min-width:44px}
  footer a,header a{min-width:44px;justify-content:center}
}@media (max-width:640px){
  button,summary,[class*="min-h-9"]{min-height:44px!important;min-width:44px!important}
  nav a{min-width:44px!important}
}
@media (max-width:640px){.termlink{min-height:44px!important;min-width:44px!important;display:inline-flex!important;align-items:center}main :not(p):not(span):not(code):not(pre) > a:not(.nd-keep){min-width:44px;justify-content:center}}
