/* DevSec Core — DevSecOps & CI/CD pipeline design system (companion to Unix/Java/Spring/Docker/K8s Core) */

body.devsec-core {
  --dsc-bg: #08090f;
  --dsc-bg-elevated: #0e1018;
  --dsc-bg-panel: #141622;
  --dsc-border: #252836;
  --dsc-border-bright: #3a3f55;
  --dsc-text: #f0f1f5;
  --dsc-text-muted: #9ca3b8;
  --dsc-text-dim: #6b7280;
  --dsc-accent: #7c3aed;
  --dsc-accent-dim: rgba(124, 58, 237, 0.14);
  --dsc-accent-glow: rgba(124, 58, 237, 0.35);
  --dsc-accent-secondary: #a78bfa;
  --dsc-surface: var(--dsc-bg-elevated);
  --dsc-security: #ea580c;
  --dsc-security-dim: rgba(234, 88, 12, 0.12);
  --dsc-security-glow: rgba(234, 88, 12, 0.28);
  --dsc-openshift: var(--dsc-security);
  --dsc-openshift-dim: var(--dsc-security-dim);
  --dsc-openshift-glow: var(--dsc-security-glow);
  --dsc-teal: #14b8a6;
  --dsc-teal-dim: rgba(20, 184, 166, 0.12);
  --dsc-yellow: #c4b5fd;
  --dsc-yellow-dim: rgba(196, 181, 253, 0.12);
  --dsc-cyan: #38bdf8;
  --dsc-cyan-dim: rgba(56, 189, 248, 0.12);
  --dsc-green: #34d399;
  --dsc-green-dim: rgba(52, 211, 153, 0.12);
  --dsc-red: #f87171;
  --dsc-red-dim: rgba(248, 113, 113, 0.12);
  --dsc-amber: #fbbf24;
  --dsc-amber-dim: rgba(251, 191, 36, 0.12);
  --dsc-purple: #7c3aed;
  --dsc-purple-dim: rgba(124, 58, 237, 0.12);
  --dsc-orange: #ea580c;
  --dsc-orange-dim: rgba(234, 88, 12, 0.12);
  --dsc-gray: #94a3b8;
  --dsc-gray-dim: rgba(148, 163, 184, 0.1);
  --dsc-severity-critical: #dc2626;
  --dsc-severity-high: #ea580c;
  --dsc-severity-medium: #eab308;
  --dsc-severity-low: #94a3b8;
  --dsc-font-body: "Inter", system-ui, -apple-system, sans-serif;
  --dsc-font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;
  --dsc-font-display: "Inter", system-ui, -apple-system, sans-serif;
  --dsc-radius: 8px;
  --dsc-radius-lg: 12px;
  --dsc-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  --dsc-max-width: var(--dsc-content-width);
  --dsc-nav-height: 3.5rem;
  --dsc-transition: 0.15s ease;
  --dsc-sidebar-width: 220px;

  /* Personas */
  --persona-developer: #38bdf8;
  --persona-developer-bg: rgba(56, 189, 248, 0.12);
  --persona-devops: #7c3aed;
  --persona-devops-bg: rgba(124, 58, 237, 0.12);
  --persona-architect: #ea580c;
  --persona-architect-bg: rgba(234, 88, 12, 0.12);
  --persona-security: var(--persona-architect);
  --persona-security-bg: var(--persona-architect-bg);

  /* Callout accents */
  --callout-pitfall: var(--dsc-red);
  --callout-tip: var(--dsc-accent);
  --callout-hood: var(--dsc-cyan);
  --callout-interview: var(--dsc-amber);
  --callout-realworld: var(--dsc-green);
  --callout-config: var(--dsc-gray);
  --callout-tradeoff: var(--dsc-teal);
  --callout-security: var(--dsc-security);
  --callout-iac: var(--dsc-teal);
  --callout-openshift: var(--dsc-security);

  /* Typography — Inter reading scale (see assets/core-typography.css) */
  --dsc-font-h1: clamp(1.75rem, 1.5rem + 1.5vw, 2.5rem);
  --dsc-font-h2: clamp(1.375rem, 1.2rem + 0.9vw, 1.875rem);
  --dsc-font-h3: clamp(1.125rem, 1rem + 0.55vw, 1.5rem);
  --dsc-font-size: clamp(1rem, 0.97rem + 0.2vw, 1.125rem);
  --dsc-font-size-read: var(--dsc-font-size);
  --dsc-font-size-small: 0.875rem;
  --dsc-font-size-table: var(--dsc-font-size-small);
  --dsc-font-size-code: clamp(0.8125rem, 0.78rem + 0.15vw, 0.9375rem);
  --dsc-line-height: 1.75;
  --dsc-line-height-read: 1.75;
  --dsc-content-width: min(800px, 92vw);
  --dsc-doc-width: min(800px, 92vw);
}

html[data-hp-theme="light"] body.devsec-core {
  --dsc-bg: #f5f4f8;
  --dsc-bg-elevated: #ffffff;
  --dsc-bg-panel: #ebe8f2;
  --dsc-border: #d4d0e0;
  --dsc-border-bright: #b8b2cc;
  --dsc-text: #08090f;
  --dsc-text-muted: #4b5563;
  --dsc-text-dim: #6b7280;
  --dsc-accent: #6d28d9;
  --dsc-accent-dim: rgba(109, 40, 217, 0.1);
  --dsc-accent-glow: rgba(109, 40, 217, 0.2);
  --dsc-security: #c2410c;
  --dsc-security-dim: rgba(194, 65, 12, 0.08);
  --dsc-shadow: 0 8px 24px rgba(8, 9, 15, 0.08);
  --persona-developer: #0284c7;
  --persona-developer-bg: rgba(2, 132, 199, 0.1);
  --persona-devops: #6d28d9;
  --persona-devops-bg: rgba(109, 40, 217, 0.1);
  --persona-architect: #c2410c;
  --persona-architect-bg: rgba(194, 65, 12, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.devsec-core {
  margin: 0;
  min-height: 100vh;
  background: var(--dsc-bg) !important;
  color: var(--dsc-text);
  font-family: var(--dsc-font-body);
  font-size: var(--dsc-font-size);
  line-height: var(--dsc-line-height);
  -webkit-font-smoothing: antialiased;
}

/* Chapter pages — reading layout handled in assets/core-typography.css */

body.devsec-core::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(124, 58, 237, 0.14) 0, transparent 42%),
    radial-gradient(circle at 88% 78%, rgba(234, 88, 12, 0.06) 0, transparent 38%),
    linear-gradient(rgba(124, 58, 237, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.03) 1px, transparent 1px);
  background-size: auto, auto, 52px 52px, 52px 52px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 25%, #000 20%, transparent 75%);
}

html[data-hp-theme="light"] body.devsec-core::after {
  opacity: 0.25;
}

body.devsec-core .dsc-main,
body.devsec-core .dsc-topbar,
body.devsec-core .dsc-footer {
  position: relative;
  z-index: 1;
}

a {
  color: var(--dsc-cyan);
  text-decoration: none;
  transition: color var(--dsc-transition);
}

a:hover {
  color: var(--dsc-accent);
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--dsc-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

img {
  max-width: 100%;
  height: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Top bar ── */

html:has(body.devsec-core) {
  --dsc-topbar-compact: 0;
}

body.devsec-core {
  --dsc-compact-inset: clamp(14px, 2.8vw, 24px);
}

body.devsec-core .dsc-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(
    in srgb,
    var(--dsc-chrome-bg, var(--dsc-bg)) calc((1 - var(--dsc-topbar-compact, 0)) * 100%),
    transparent
  ) !important;
  border-bottom: 1px solid
    color-mix(
      in srgb,
      var(--dsc-chrome-border, var(--dsc-border)) calc((1 - var(--dsc-topbar-compact, 0)) * 100%),
      transparent
    ) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    min-height 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease,
    border-color 0.35s ease;
}

html[data-hp-theme="light"] body.devsec-core {
  --dsc-chrome-bg: var(--hp-bg, #f5f2eb);
  --dsc-chrome-border: var(--hp-border, rgba(26, 22, 18, 0.1));
  --dsc-chrome-text: var(--hp-text, #1a1612);
  --dsc-chrome-muted: var(--hp-muted, #5c554c);
  --dsc-chrome-accent: var(--hp-accent, #1a6b4a);
}

html[data-hp-theme="dark"] body.devsec-core,
html:not([data-hp-theme]) body.devsec-core {
  --dsc-chrome-bg: #090c14;
  --dsc-chrome-border: rgba(255, 255, 255, 0.08);
  --dsc-chrome-text: #e8eaef;
  --dsc-chrome-muted: #8b949e;
  --dsc-chrome-accent: #5cefb8;
}

body.devsec-core .dsc-topbar .site-topbar__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "brand main actions";
  align-items: center;
  gap: 12px 20px;
  max-width: var(--site-topbar-max, 1280px);
  margin: 0 auto;
  min-height: var(--dsc-nav-height);
  padding: 14px var(--site-topbar-pad-x, clamp(20px, 4vw, 40px));
  padding-left: calc(
    var(--site-topbar-pad-x, clamp(20px, 4vw, 40px)) * (1 - var(--dsc-topbar-compact, 0)) +
      (env(safe-area-inset-left, 0px) + var(--dsc-compact-inset)) * var(--dsc-topbar-compact, 0)
  );
  transition:
    max-width 0.42s cubic-bezier(0.4, 0, 0.2, 1),
    margin 0.42s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.42s cubic-bezier(0.4, 0, 0.2, 1),
    gap 0.35s ease,
    min-height 0.35s ease;
}

body.devsec-core .dsc-topbar .site-topbar__inner > :not(.site-brand) {
  opacity: calc(1 - var(--dsc-topbar-compact, 0));
  overflow: hidden;
  transition: opacity 0.35s ease;
}

body.devsec-core.dsc-topbar--compact .dsc-topbar .site-topbar__inner > :not(.site-brand) {
  pointer-events: none;
}

body.devsec-core.dsc-topbar--compact {
  --site-topbar-sticky-offset: 3.5rem;
}

body.devsec-core.dsc-topbar--compact .dsc-topbar {
  min-height: var(--site-topbar-sticky-offset);
  box-shadow: none;
}

body.devsec-core.dsc-topbar--compact .dsc-topbar .site-topbar__inner {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  gap: calc(12px * (1 - var(--dsc-topbar-compact, 1)));
  min-height: 44px;
  padding-top: max(8px, env(safe-area-inset-top, 0px));
  padding-bottom: 8px;
  padding-right: var(--site-topbar-pad-x, clamp(20px, 4vw, 40px));
}

body.devsec-core.dsc-topbar--compact .dsc-topbar .site-topbar__inner > :not(.site-brand) {
  width: 0;
  min-width: 0;
  max-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  visibility: hidden;
}

body.devsec-core.dsc-topbar--compact .dsc-topbar .site-brand {
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: clamp(6px, 1.6vw, 10px);
  margin: 0;
  padding: 0;
  font-size: clamp(0.82rem, 2.6vw, 0.96rem);
  max-width: min(100%, 12.5rem);
}

body.devsec-core.dsc-topbar--compact .dsc-topbar .site-brand > .site-brand__mark {
  width: 40px;
  height: 40px;
}

body.devsec-core.dsc-topbar--compact .dsc-topbar .site-brand__mark {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
}

body.devsec-core .dsc-topbar .site-brand {
  grid-area: brand;
  justify-self: start;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(0.88rem, 3.4vw, 1.05rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--dsc-chrome-text, var(--dsc-text));
  text-decoration: none;
  transition: column-gap 0.35s ease, color var(--dsc-transition);
}

body.devsec-core .dsc-topbar .site-brand:hover {
  color: var(--dsc-chrome-accent, var(--dsc-accent));
  text-decoration: none;
}

body.devsec-core .dsc-topbar .site-brand > span {
  overflow: hidden;
  white-space: nowrap;
  min-width: 0;
}

body.devsec-core .dsc-topbar .site-brand__tld {
  color: var(--dsc-chrome-accent, var(--dsc-accent));
  font-weight: 800;
}

body.devsec-core .dsc-topbar a {
  text-decoration: none;
}

body.devsec-core .dsc-topbar .hp-topbar__actions,
body.devsec-core .dsc-topbar .site-topbar__actions {
  grid-area: actions;
  justify-self: end;
}

/* ── Main layout ── */

.dsc-main {
  max-width: var(--dsc-max-width);
  margin: 0 auto;
  padding: 24px var(--dsc-compact-inset) 64px;
}

/* ── Breadcrumb ── */

.dsc-breadcrumb {
  margin-bottom: 24px;
}

.dsc-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--dsc-font-mono);
  font-size: 12px;
  color: var(--dsc-text-dim);
}

.dsc-breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: var(--dsc-border-bright);
}

.dsc-breadcrumb a {
  color: var(--dsc-text-muted);
}

.dsc-breadcrumb a:hover {
  color: var(--dsc-accent);
}

/* ── Mobile nav ── */

.dsc-mobile-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-bottom: 20px;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.dsc-mobile-nav a {
  flex-shrink: 0;
  padding: 6px 10px;
  border: 1px solid var(--dsc-border);
  border-radius: 999px;
  font-family: var(--dsc-font-mono);
  font-size: 10px;
  color: var(--dsc-text-muted);
  text-decoration: none;
  white-space: nowrap;
}

.dsc-mobile-nav a:hover {
  border-color: var(--dsc-accent);
  color: var(--dsc-accent);
  text-decoration: none;
}

@media (min-width: 1024px) {
  .dsc-mobile-nav {
    display: none;
  }
}

/* ── Hero ── */

.dsc-hero {
  margin-bottom: 40px;
}

.dsc-hero__kicker {
  margin: 0 0 12px;
  font-family: var(--dsc-font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dsc-accent);
}

.dsc-hero__kicker a {
  color: var(--dsc-yellow);
}

.dsc-hero__kicker a:hover {
  color: var(--dsc-accent);
}

.dsc-hero__title {
  margin: 0 0 16px;
  font-family: var(--dsc-font-display);
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.dsc-hero__title span {
  color: var(--dsc-accent);
}

.dsc-hero__title .dsc-hero__sec,
.dsc-hero__title .dsc-hero__ocp {
  color: var(--dsc-security);
}

.dsc-hero__lede {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--dsc-text-muted);
  max-width: 58ch;
}

.dsc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dsc-hero--landing {
  max-width: none;
  margin-bottom: 48px;
}

.dsc-hero--landing .dsc-hero__why {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--dsc-border);
}

.dsc-hero--landing .dsc-hero__why-title {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 700;
}

.dsc-hero--landing .dsc-hero__why-lede {
  margin: 0 0 16px;
  color: var(--dsc-text-muted);
  max-width: 68ch;
  line-height: 1.7;
}

.dsc-hero--landing .dsc-hero__why-lede:last-of-type {
  margin-bottom: 0;
}

.dsc-hub-anchors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--dsc-border);
}

.dsc-hub-anchors a {
  padding: 6px 12px;
  border: 1px solid var(--dsc-border);
  border-radius: 999px;
  font-family: var(--dsc-font-mono);
  font-size: 11px;
  color: var(--dsc-text-muted);
  text-decoration: none;
  transition: border-color var(--dsc-transition), color var(--dsc-transition);
}

.dsc-hub-anchors a:hover {
  border-color: var(--dsc-accent);
  color: var(--dsc-accent);
  text-decoration: none;
}

/* ── Buttons ── */

.dsc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--dsc-radius);
  font-family: var(--dsc-font-mono);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--dsc-transition), border-color var(--dsc-transition), color var(--dsc-transition);
}

body.devsec-core a.dsc-btn,
body.devsec-core a.dsc-btn:hover {
  border-bottom: none;
}

body.devsec-core a.dsc-btn--primary {
  background: var(--dsc-accent-dim);
  border-color: var(--dsc-accent);
  color: var(--dsc-accent);
}

body.devsec-core a.dsc-btn--primary:hover {
  background: var(--dsc-accent);
  color: #050a18;
  text-decoration: none;
}

body.devsec-core a.dsc-btn--ghost {
  background: transparent;
  border-color: var(--dsc-border);
  color: var(--dsc-text-muted);
}

body.devsec-core a.dsc-btn--ghost:hover {
  border-color: var(--dsc-border-bright);
  color: var(--dsc-text);
  text-decoration: none;
}

/* ── Sections ── */

.dsc-section {
  display: flex;
  flex-direction: column;
  margin-bottom: 56px;
}

.dsc-section__head {
  margin-bottom: 24px;
}

.dsc-section__title {
  margin: 0 0 8px;
  font-family: var(--dsc-font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 700;
  color: var(--dsc-text);
}

.dsc-section__title::before {
  content: "» ";
  color: var(--dsc-accent);
  font-family: var(--dsc-font-mono);
  font-weight: 500;
}

.dsc-section__lede {
  margin: 0;
  color: var(--dsc-text-muted);
  max-width: 68ch;
  font-size: inherit;
  line-height: inherit;
}

/* ── Pillars / insight cards ── */

.dsc-pillars {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 600px) {
  .dsc-pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .dsc-pillars--5 {
    grid-template-columns: repeat(3, 1fr);
  }

  .dsc-pillars--5 .dsc-pillar:nth-child(4),
  .dsc-pillars--5 .dsc-pillar:nth-child(5) {
    grid-column: span 1;
  }
}

.dsc-pillar {
  padding: 16px;
  border: 1px solid var(--dsc-border);
  border-radius: var(--dsc-radius-lg);
  background: var(--dsc-bg-elevated);
}

.dsc-pillar__icon {
  font-size: 22px;
  margin-bottom: 8px;
}

.dsc-pillar__title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dsc-text);
}

.dsc-pillar__desc {
  margin: 0;
  font-size: 13px;
  color: var(--dsc-text-muted);
  line-height: 1.6;
}

/* ── Use cases flow map ── */

.dsc-usecases {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 900px) {
  .dsc-usecases {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }
}

.dsc-usecase {
  flex: 1;
  min-width: 140px;
  position: relative;
  padding: 16px 14px;
  border: 1px solid var(--dsc-border);
  border-radius: var(--dsc-radius-lg);
  background: var(--dsc-bg-elevated);
}

@media (min-width: 900px) {
  .dsc-usecase:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    font-family: var(--dsc-font-mono);
    font-size: 14px;
    color: var(--dsc-accent);
    background: var(--dsc-bg);
    padding: 4px;
    border-radius: 50%;
  }
}

.dsc-usecase__label {
  margin: 0 0 6px;
  font-family: var(--dsc-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dsc-yellow);
}

.dsc-usecase__title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
}

.dsc-usecase__desc {
  margin: 0;
  font-size: 12px;
  color: var(--dsc-text-muted);
  line-height: 1.55;
}

/* ── Timeline ── */

.dsc-timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--dsc-border);
  margin-left: 8px;
}

.dsc-timeline__item {
  position: relative;
  padding: 0 0 24px 24px;
}

.dsc-timeline__item:last-child {
  padding-bottom: 0;
}

.dsc-timeline__item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--dsc-bg);
  border: 2px solid var(--dsc-accent);
}

.dsc-timeline__year {
  display: inline-block;
  margin-bottom: 4px;
  font-family: var(--dsc-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--dsc-accent);
}

.dsc-timeline__label {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--dsc-text);
}

.dsc-timeline__desc {
  margin: 0;
  font-size: 15px;
  color: var(--dsc-text-muted);
  line-height: 1.65;
}

/* ── Ecosystem map ── */

.dsc-eco {
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .dsc-eco {
    grid-template-columns: repeat(2, 1fr);
  }
}

.dsc-eco__group {
  padding: 16px;
  border: 1px solid var(--dsc-border);
  border-radius: var(--dsc-radius-lg);
  background: var(--dsc-bg-elevated);
}

.dsc-eco__title {
  margin: 0 0 10px;
  font-family: var(--dsc-font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--dsc-accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dsc-eco__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: var(--dsc-text-muted);
}

.dsc-eco__list li {
  padding: 4px 0;
}

.dsc-eco__list strong {
  color: var(--dsc-text);
  font-weight: 600;
}

/* ── Compare table ── */

.dsc-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--dsc-font-size-table);
  margin: 20px 0;
}

.dsc-compare th,
.dsc-compare td {
  padding: 12px 14px;
  text-align: left;
  border: 1px solid var(--dsc-border);
  vertical-align: top;
}

.dsc-compare thead th {
  background: var(--dsc-bg-panel);
  font-family: var(--dsc-font-mono);
  font-size: 0.75em;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dsc-text-dim);
}

.dsc-compare tbody th {
  font-family: var(--dsc-font-mono);
  font-size: 0.92em;
  color: var(--dsc-accent);
  background: var(--dsc-bg-elevated);
  white-space: nowrap;
}

.dsc-compare td {
  color: var(--dsc-text-muted);
  line-height: 1.6;
}

.dsc-compare .dsc-compare__win {
  color: var(--dsc-green);
}

/* ── Callouts ── */

.dsc-callout {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  margin: 20px 0;
  border-radius: var(--dsc-radius);
  border: 1px solid var(--dsc-border);
  font-size: inherit;
  line-height: inherit;
}

.dsc-callout__label {
  flex-shrink: 0;
  font-family: var(--dsc-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  min-width: 7rem;
}

.dsc-callout__body {
  flex: 1;
  min-width: 0;
}

.dsc-callout__body p {
  margin: 0;
  color: var(--dsc-text-muted);
}

.dsc-callout__body p + p {
  margin-top: 8px;
}

.dsc-callout__body strong {
  color: var(--dsc-text);
}

.dsc-callout--pitfall {
  background: var(--dsc-red-dim);
  border-color: color-mix(in srgb, var(--dsc-red) 35%, transparent);
}

.dsc-callout--pitfall .dsc-callout__label {
  color: var(--dsc-red);
}

.dsc-callout--tip {
  background: var(--dsc-accent-dim);
  border-color: color-mix(in srgb, var(--dsc-accent) 35%, transparent);
}

.dsc-callout--tip .dsc-callout__label {
  color: var(--dsc-accent);
}

.dsc-callout--hood {
  background: var(--dsc-cyan-dim);
  border-color: color-mix(in srgb, var(--dsc-cyan) 35%, transparent);
}

.dsc-callout--hood .dsc-callout__label {
  color: var(--dsc-cyan);
}

.dsc-callout--interview {
  background: var(--dsc-amber-dim);
  border-color: color-mix(in srgb, var(--dsc-amber) 35%, transparent);
}

.dsc-callout--interview .dsc-callout__label {
  color: var(--dsc-amber);
}

.dsc-callout--realworld {
  background: var(--dsc-green-dim);
  border-color: color-mix(in srgb, var(--dsc-green) 35%, transparent);
}

.dsc-callout--realworld .dsc-callout__label {
  color: var(--dsc-green);
}

.dsc-callout--config {
  background: var(--dsc-gray-dim);
  border-color: color-mix(in srgb, var(--dsc-gray) 35%, transparent);
}

.dsc-callout--config .dsc-callout__label {
  color: var(--dsc-gray);
}

.dsc-callout--tradeoff {
  background: var(--dsc-teal-dim);
  border-color: color-mix(in srgb, var(--dsc-teal) 35%, transparent);
}

.dsc-callout--tradeoff .dsc-callout__label {
  color: var(--dsc-teal);
}

.dsc-callout--openshift {
  background: var(--dsc-openshift-dim);
  border-left: 4px solid var(--dsc-openshift);
  border-color: color-mix(in srgb, var(--dsc-openshift) 35%, transparent);
  border-left-color: var(--dsc-openshift);
}

.dsc-callout--openshift .dsc-callout__label {
  color: var(--dsc-openshift);
}

/* Dual-track K8s vs OpenShift tabs */
.dsc-dual-track {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 20px 0;
  border: 1px solid var(--dsc-border);
  border-radius: var(--dsc-radius-lg);
  overflow: hidden;
  background: var(--dsc-bg-elevated);
}

.dsc-dual-track__tabs {
  display: flex;
  border-bottom: 1px solid var(--dsc-border);
}

.dsc-dual-track__tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  font-family: var(--dsc-font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--dsc-text-muted);
  cursor: pointer;
  transition: background var(--dsc-transition), color var(--dsc-transition);
}

.dsc-dual-track__tab--k8s.is-active {
  background: var(--dsc-accent-dim);
  color: var(--dsc-accent);
  box-shadow: inset 0 -2px 0 var(--dsc-accent);
}

.dsc-dual-track__tab--ocp.is-active {
  background: var(--dsc-openshift-dim);
  color: var(--dsc-openshift);
  box-shadow: inset 0 -2px 0 var(--dsc-openshift);
}

.dsc-dual-track__panel {
  display: none;
  padding: 16px 18px;
}

.dsc-dual-track__panel.is-active {
  display: block;
}

/* kubectl / oc command toggle */
.dsc-cmd-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 4px;
  border: 1px solid var(--dsc-border);
  border-radius: 999px;
  background: var(--dsc-bg-panel);
}

.dsc-cmd-toggle__label {
  padding-left: 10px;
  font-family: var(--dsc-font-mono);
  font-size: 11px;
  color: var(--dsc-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dsc-cmd-toggle__btn {
  padding: 6px 14px;
  border: none;
  border-radius: 999px;
  font-family: var(--dsc-font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--dsc-text-muted);
  background: transparent;
  cursor: pointer;
  transition: background var(--dsc-transition), color var(--dsc-transition);
}

.dsc-cmd-toggle__btn.is-active[data-cmd="kubectl"] {
  background: var(--dsc-accent-dim);
  color: var(--dsc-accent);
}

.dsc-cmd-toggle__btn.is-active[data-cmd="oc"] {
  background: var(--dsc-openshift-dim);
  color: var(--dsc-openshift);
}

body.devsec-core[data-cmd-mode="oc"] .dsc-cmd-kubectl {
  display: none;
}

body.devsec-core:not([data-cmd-mode="oc"]) .dsc-cmd-oc {
  display: none;
}

.dsc-ver--ocp {
  background: var(--dsc-openshift-dim);
  border-color: color-mix(in srgb, var(--dsc-openshift) 40%, transparent);
  color: var(--dsc-openshift);
}

.dsc-callout--security {
  background: var(--dsc-orange-dim);
  border-color: color-mix(in srgb, var(--dsc-orange) 35%, transparent);
}

.dsc-callout--security .dsc-callout__label {
  color: var(--dsc-orange);
}

/* ── Terminal output blocks ── */

.dsc-terminal {
  margin: 16px 0;
  border: 1px solid var(--dsc-border);
  border-radius: var(--dsc-radius);
  overflow: hidden;
  background: #040a14;
}

.dsc-terminal__header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--dsc-bg-panel);
  border-bottom: 1px solid var(--dsc-border);
}

.dsc-terminal__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dsc-border-bright);
}

.dsc-terminal__dot--red { background: #f87171; }
.dsc-terminal__dot--yellow { background: #fbbf24; }
.dsc-terminal__dot--green { background: #34d399; }

.dsc-terminal__title {
  margin-left: 8px;
  font-family: var(--dsc-font-mono);
  font-size: 11px;
  color: var(--dsc-text-dim);
}

.dsc-terminal__body {
  margin: 0;
  padding: 16px;
  font-family: var(--dsc-font-mono);
  font-size: var(--dsc-font-size-code);
  line-height: 1.65;
  color: var(--dsc-text-muted);
  overflow-x: auto;
}

.dsc-terminal__prompt {
  color: var(--dsc-green);
  user-select: none;
}

.dsc-terminal__cmd {
  color: var(--dsc-text);
}

.dsc-terminal__out {
  color: var(--dsc-text-dim);
}

html[data-hp-theme="light"] .dsc-terminal {
  background: #0d1829;
}

/* ── OverlayFS stack diagram ── */

.dsc-overlay-viz {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid var(--dsc-border);
  border-radius: var(--dsc-radius-lg);
  background: var(--dsc-bg-elevated);
}

.dsc-overlay-viz__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.dsc-overlay-viz__btn {
  appearance: none;
  padding: 8px 14px;
  border: 1px solid var(--dsc-border);
  border-radius: var(--dsc-radius);
  background: var(--dsc-bg);
  color: var(--dsc-text-muted);
  font-family: var(--dsc-font-mono);
  font-size: 12px;
  cursor: pointer;
  transition: border-color var(--dsc-transition), color var(--dsc-transition), background var(--dsc-transition);
}

.dsc-overlay-viz__btn:hover,
.dsc-overlay-viz__btn.is-active {
  border-color: var(--dsc-accent);
  color: var(--dsc-accent);
  background: var(--dsc-accent-dim);
}

.dsc-overlay-viz__stage {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .dsc-overlay-viz__stage {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.dsc-overlay-viz__stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dsc-overlay-viz__layer {
  position: relative;
  padding: 14px 16px;
  border-radius: var(--dsc-radius);
  border: 1px solid var(--dsc-border-bright);
  font-family: var(--dsc-font-mono);
  font-size: 12px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.dsc-overlay-viz__layer-label {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dsc-overlay-viz__layer--lower {
  background: color-mix(in srgb, var(--dsc-accent) 8%, var(--dsc-bg-panel));
  border-color: color-mix(in srgb, var(--dsc-accent) 30%, transparent);
}

.dsc-overlay-viz__layer--lower .dsc-overlay-viz__layer-label {
  color: var(--dsc-accent);
}

.dsc-overlay-viz__layer--upper {
  background: color-mix(in srgb, var(--dsc-teal) 10%, var(--dsc-bg-panel));
  border-color: color-mix(in srgb, var(--dsc-teal) 35%, transparent);
}

.dsc-overlay-viz__layer--upper .dsc-overlay-viz__layer-label {
  color: var(--dsc-teal);
}

.dsc-overlay-viz__layer--work {
  background: var(--dsc-bg);
  border-style: dashed;
  opacity: 0.85;
}

.dsc-overlay-viz__layer--work .dsc-overlay-viz__layer-label {
  color: var(--dsc-text-dim);
}

.dsc-overlay-viz__layer--merged {
  background: linear-gradient(135deg, var(--dsc-accent-dim), var(--dsc-teal-dim));
  border-color: var(--dsc-accent);
  box-shadow: 0 0 24px var(--dsc-accent-glow);
}

.dsc-overlay-viz__layer--merged .dsc-overlay-viz__layer-label {
  color: var(--dsc-text);
}

.dsc-overlay-viz__file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--dsc-text-muted);
}

.dsc-overlay-viz.is-write .dsc-overlay-viz__file--app {
  animation: dc-cow-copy 0.8s ease forwards;
}

.dsc-overlay-viz.is-write .dsc-overlay-viz__layer--upper {
  border-color: var(--dsc-teal);
  box-shadow: 0 0 16px var(--dsc-teal-dim);
}

@keyframes dc-cow-copy {
  0% { opacity: 1; transform: translateY(0); }
  40% { opacity: 0.5; transform: translateY(-12px); }
  100% { opacity: 1; transform: translateY(0); color: var(--dsc-teal); }
}

.dsc-overlay-viz__legend {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--dsc-text-muted);
}

.dsc-overlay-viz__legend li {
  padding: 4px 0 4px 16px;
  position: relative;
}

.dsc-overlay-viz__legend li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--dsc-accent);
  font-weight: 700;
}

/* ── Dockerfile layer explorer ── */

.dsc-layer-explorer {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid var(--dsc-border);
  border-radius: var(--dsc-radius-lg);
  background: var(--dsc-bg-elevated);
}

.dsc-layer-explorer__grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .dsc-layer-explorer__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.dsc-layer-explorer__dockerfile {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--dsc-border);
  border-radius: var(--dsc-radius);
  background: #040a14;
  font-family: var(--dsc-font-mono);
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
}

.dsc-layer-explorer__line {
  display: block;
  padding: 4px 8px;
  margin: 2px 0;
  border-radius: 4px;
  color: var(--dsc-text-dim);
  cursor: pointer;
  transition: background var(--dsc-transition), color var(--dsc-transition);
  border: 1px solid transparent;
}

.dsc-layer-explorer__line:hover {
  background: var(--dsc-accent-dim);
  color: var(--dsc-text-muted);
}

.dsc-layer-explorer__line.is-active {
  background: var(--dsc-accent-dim);
  border-color: color-mix(in srgb, var(--dsc-accent) 40%, transparent);
  color: var(--dsc-accent);
}

.dsc-layer-explorer__line.is-built {
  color: var(--dsc-text-muted);
}

.dsc-layer-explorer__line.is-built.is-active {
  color: var(--dsc-accent);
}

.dsc-layer-explorer__comment {
  color: var(--dsc-text-dim);
  font-style: italic;
  cursor: default;
}

.dsc-layer-explorer__comment:hover {
  background: transparent;
  color: var(--dsc-text-dim);
}

.dsc-layer-explorer__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.dsc-layer-explorer__btn {
  appearance: none;
  padding: 6px 12px;
  border: 1px solid var(--dsc-border);
  border-radius: var(--dsc-radius);
  background: var(--dsc-bg);
  color: var(--dsc-text-muted);
  font-family: var(--dsc-font-mono);
  font-size: 11px;
  cursor: pointer;
  transition: border-color var(--dsc-transition), color var(--dsc-transition);
}

.dsc-layer-explorer__btn:hover {
  border-color: var(--dsc-accent);
  color: var(--dsc-accent);
}

.dsc-layer-explorer__stack-wrap h3 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dsc-text-muted);
}

.dsc-layer-explorer__stack {
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
  min-height: 200px;
}

.dsc-layer-explorer__layer {
  padding: 12px 14px;
  border: 1px solid var(--dsc-border-bright);
  border-radius: var(--dsc-radius);
  background: linear-gradient(135deg, var(--dsc-accent-dim), var(--dsc-bg-panel));
  font-family: var(--dsc-font-mono);
  font-size: 11px;
  animation: dc-layer-in 0.35s ease;
}

.dsc-layer-explorer__layer:nth-child(1) { opacity: 1; }
.dsc-layer-explorer__layer:nth-child(2) { opacity: 0.92; }
.dsc-layer-explorer__layer:nth-child(3) { opacity: 0.84; }
.dsc-layer-explorer__layer:nth-child(4) { opacity: 0.76; }
.dsc-layer-explorer__layer:nth-child(5) { opacity: 0.68; }

.dsc-layer-explorer__layer-name {
  display: block;
  font-weight: 600;
  color: var(--dsc-accent);
  margin-bottom: 4px;
}

.dsc-layer-explorer__layer-meta {
  color: var(--dsc-text-dim);
  font-size: 10px;
}

.dsc-layer-explorer__layer--base {
  border-color: var(--dsc-teal);
  background: linear-gradient(135deg, var(--dsc-teal-dim), var(--dsc-bg-panel));
}

.dsc-layer-explorer__layer--base .dsc-layer-explorer__layer-name {
  color: var(--dsc-teal);
}

.dsc-layer-explorer__layer--cache {
  border-style: dashed;
  opacity: 0.7;
}

@keyframes dc-layer-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.dsc-layer-explorer__status {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--dsc-text-muted);
  line-height: 1.6;
}

/* ── Mermaid ── */

.dsc-mermaid {
  margin: 20px 0;
  padding: 20px;
  border: 1px solid var(--dsc-border);
  border-radius: var(--dsc-radius-lg);
  background: var(--dsc-bg-elevated);
  overflow-x: auto;
}

.dsc-mermaid .mermaid {
  display: flex;
  justify-content: center;
}

/* ── Architecture flow visual ── */

.dsc-arch-flow {
  display: grid;
  gap: 16px;
  margin: 24px 0;
  padding: 24px;
  border: 1px solid var(--dsc-border);
  border-radius: var(--dsc-radius-lg);
  background: var(--dsc-bg-elevated);
}

@media (min-width: 768px) {
  .dsc-arch-flow {
    grid-template-columns: 1fr auto 2fr auto 1fr;
    align-items: center;
    gap: 12px;
  }
}

.dsc-arch-flow__node {
  padding: 16px;
  border: 1px solid var(--dsc-border-bright);
  border-radius: var(--dsc-radius);
  background: var(--dsc-bg-panel);
  text-align: center;
}

.dsc-arch-flow__node--accent {
  border-color: var(--dsc-accent);
  box-shadow: 0 0 20px var(--dsc-accent-dim);
}

.dsc-arch-flow__node-title {
  margin: 0 0 6px;
  font-family: var(--dsc-font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--dsc-accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dsc-arch-flow__node-desc {
  margin: 0;
  font-size: 12px;
  color: var(--dsc-text-muted);
  line-height: 1.5;
}

.dsc-arch-flow__arrow {
  display: none;
  font-family: var(--dsc-font-mono);
  font-size: 20px;
  color: var(--dsc-yellow);
  text-align: center;
}

@media (min-width: 768px) {
  .dsc-arch-flow__arrow {
    display: block;
  }
}

.dsc-arch-flow__partitions {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 10px;
}

.dsc-arch-flow__partition {
  width: 28px;
  height: 40px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--dsc-accent) 0%, color-mix(in srgb, var(--dsc-accent) 40%, transparent) 100%);
  opacity: 0.85;
}

.dsc-arch-flow__partition:nth-child(2) {
  opacity: 0.65;
}

.dsc-arch-flow__partition:nth-child(3) {
  opacity: 0.45;
}

/* ── Search & persona filter ── */

.dsc-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  padding: 16px;
  border: 1px solid var(--dsc-border);
  border-radius: var(--dsc-radius-lg);
  background: var(--dsc-bg-elevated);
}

@media (min-width: 640px) {
  .dsc-toolbar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
}

.dsc-search {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.dsc-search__input {
  width: 100%;
  padding: 10px 14px 10px 36px;
  border: 1px solid var(--dsc-border);
  border-radius: var(--dsc-radius);
  background: var(--dsc-bg);
  color: var(--dsc-text);
  font-family: var(--dsc-font-mono);
  font-size: 13px;
  outline: none;
}

.dsc-search__input:focus {
  border-color: var(--dsc-accent);
  box-shadow: 0 0 0 2px var(--dsc-accent-dim);
}

.dsc-search__input::placeholder {
  color: var(--dsc-text-dim);
}

.dsc-search__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--dsc-text-dim);
  pointer-events: none;
}

.dsc-search__results {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--dsc-text-muted);
}

.dsc-persona-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dsc-persona-filter__btn {
  appearance: none;
  padding: 6px 12px;
  border: 1px solid var(--dsc-border);
  border-radius: 999px;
  background: transparent;
  color: var(--dsc-text-muted);
  font-family: var(--dsc-font-mono);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--dsc-transition), background var(--dsc-transition), color var(--dsc-transition);
}

.dsc-persona-filter__btn:hover {
  border-color: var(--dsc-border-bright);
  color: var(--dsc-text);
}

.dsc-persona-filter__btn.is-active {
  border-color: var(--dsc-accent);
  background: var(--dsc-accent-dim);
  color: var(--dsc-accent);
}

.dsc-persona-filter__btn[data-persona="developer"].is-active {
  border-color: var(--persona-developer);
  background: var(--persona-developer-bg);
  color: var(--persona-developer);
}

.dsc-persona-filter__btn[data-persona="devops"].is-active {
  border-color: var(--persona-devops);
  background: var(--persona-devops-bg);
  color: var(--persona-devops);
}

.dsc-persona-filter__btn[data-persona="architect"].is-active {
  border-color: var(--persona-architect);
  background: var(--persona-architect-bg);
  color: var(--persona-architect);
}

/* ── Badges ── */

.dsc-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--dsc-font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.dsc-badge--developer {
  color: var(--persona-developer);
  background: var(--persona-developer-bg);
  border-color: color-mix(in srgb, var(--persona-developer) 35%, transparent);
}

.dsc-badge--devops {
  color: var(--persona-devops);
  background: var(--persona-devops-bg);
  border-color: color-mix(in srgb, var(--persona-devops) 35%, transparent);
}

.dsc-badge--architect {
  color: var(--persona-architect);
  background: var(--persona-architect-bg);
  border-color: color-mix(in srgb, var(--persona-architect) 35%, transparent);
}

.dsc-ver {
  display: inline-flex;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--dsc-font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--dsc-yellow);
  background: var(--dsc-yellow-dim);
  border: 1px solid color-mix(in srgb, var(--dsc-yellow) 40%, transparent);
  vertical-align: middle;
  margin-left: 6px;
}

/* ── Cards grid ── */

.dsc-grid {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 600px) {
  .dsc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .dsc-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.dsc-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--dsc-border);
  border-radius: var(--dsc-radius-lg);
  background: var(--dsc-bg-elevated);
  transition: border-color var(--dsc-transition), transform var(--dsc-transition), box-shadow var(--dsc-transition);
}

.dsc-card:hover {
  border-color: var(--dsc-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 24px var(--dsc-accent-glow);
}

.dsc-card__link {
  color: inherit;
  text-decoration: none;
}

.dsc-card__link:hover {
  text-decoration: none;
}

.dsc-card__icon {
  font-size: 20px;
  color: var(--dsc-accent);
  font-family: var(--dsc-font-mono);
}

.dsc-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--dsc-text);
}

.dsc-card__desc {
  margin: 0;
  font-size: 15px;
  color: var(--dsc-text-muted);
  line-height: 1.65;
  flex: 1;
}

.dsc-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.dsc-card--soon {
  opacity: 0.7;
}

.dsc-card--soon .dsc-card__link {
  pointer-events: none;
  cursor: default;
}

.dsc-card--soon:hover {
  transform: none;
  border-color: var(--dsc-border);
  box-shadow: none;
}

.dsc-card__soon-tag {
  font-family: var(--dsc-font-mono);
  font-size: 10px;
  color: var(--dsc-accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Persona intro cards ── */

.dsc-personas {
  display: grid;
  gap: 16px;
}

.dsc-personas--compact {
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .dsc-personas {
    grid-template-columns: repeat(3, 1fr);
  }
}

.dsc-persona {
  padding: 20px;
  border-radius: var(--dsc-radius-lg);
  border: 1px solid var(--dsc-border);
  background: var(--dsc-bg-elevated);
}

.dsc-persona__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.dsc-persona__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.dsc-persona__blurb {
  margin: 0;
  font-size: 15px;
  color: var(--dsc-text-muted);
  line-height: 1.6;
}

.dsc-learning-path {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-left: 3px solid var(--dsc-accent);
  border-radius: 0 var(--dsc-radius) var(--dsc-radius) 0;
  background: var(--dsc-accent-dim);
  font-size: 15px;
  color: var(--dsc-text-muted);
  line-height: 1.65;
}

.dsc-learning-path strong {
  color: var(--dsc-text);
}

/* ── Prose utilities ── */

.dsc-prose {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dsc-prose li {
  padding: 6px 0 6px 18px;
  position: relative;
  color: var(--dsc-text-muted);
  line-height: inherit;
}

.dsc-prose li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--dsc-accent);
  font-weight: 700;
}

.dsc-inline-code {
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--dsc-font-mono);
  font-size: 0.88em;
  background: var(--dsc-bg-panel);
  border: 1px solid var(--dsc-border);
  color: var(--dsc-accent);
}

.dsc-filter-hidden {
  display: none !important;
}

/* ── Config tables (content pages) ── */

.dsc-config-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--dsc-font-size-table);
  margin: 16px 0;
}

.dsc-config-table th,
.dsc-config-table td {
  padding: 10px 12px;
  text-align: left;
  border: 1px solid var(--dsc-border);
  vertical-align: top;
}

.dsc-config-table thead th {
  background: var(--dsc-bg-panel);
  font-family: var(--dsc-font-mono);
  font-size: 0.75em;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dsc-text-dim);
}

.dsc-config-table td:first-child {
  font-family: var(--dsc-font-mono);
  font-size: 0.92em;
  color: var(--dsc-accent);
  white-space: nowrap;
}

.dsc-config-table td {
  color: var(--dsc-text-muted);
  line-height: 1.55;
}

/* ── Code blocks (Prism) ── */

.dsc-codeblock {
  position: relative;
  margin: 16px 0;
  border: 1px solid var(--dsc-border);
  border-radius: var(--dsc-radius);
  overflow: hidden;
  background: #0a0c10;
}

.dsc-codeblock__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  background: var(--dsc-bg-panel);
  border-bottom: 1px solid var(--dsc-border);
}

.dsc-codeblock__lang {
  font-family: var(--dsc-font-mono);
  font-size: 11px;
  color: var(--dsc-text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dsc-codeblock__copy {
  appearance: none;
  padding: 4px 10px;
  border: 1px solid var(--dsc-border);
  border-radius: 4px;
  background: transparent;
  color: var(--dsc-text-muted);
  font-family: var(--dsc-font-mono);
  font-size: 11px;
  cursor: pointer;
  transition: color var(--dsc-transition), border-color var(--dsc-transition);
}

.dsc-codeblock__copy:hover {
  border-color: var(--dsc-accent);
  color: var(--dsc-accent);
}

.dsc-codeblock__copy.is-copied {
  border-color: var(--dsc-green);
  color: var(--dsc-green);
}

.dsc-codeblock pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  font-size: var(--dsc-font-size-code);
  line-height: 1.6;
}

.dsc-codeblock code {
  font-family: var(--dsc-font-mono);
}

/* ── Content page layout (sidebar + prose) ── */

.dsc-layout {
  display: grid;
  gap: 32px;
}

.dsc-layout--doc {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1024px) {
  .dsc-layout--doc {
    grid-template-columns: var(--dsc-sidebar-width) minmax(0, 1fr);
    align-items: start;
  }
}

.dsc-sidebar {
  display: block;
  position: sticky;
  top: calc(var(--dsc-nav-height) + 16px);
  max-height: calc(100vh - var(--dsc-nav-height) - 32px);
  overflow-y: auto;
  padding: 16px;
  border: 1px solid var(--dsc-border);
  border-radius: var(--dsc-radius-lg);
  background: var(--dsc-bg-elevated);
}

@media (max-width: 1023px) {
  .dsc-layout--doc .dsc-sidebar {
    position: static;
    max-height: none;
  }
}

.dsc-sidebar__title {
  margin: 0 0 12px;
  font-family: var(--dsc-font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--dsc-text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dsc-sidebar ol {
  margin: 0;
  padding: 0 0 0 1em;
  font-size: 14px;
  line-height: 1.8;
}

.dsc-sidebar a {
  color: var(--dsc-text-muted);
}

.dsc-sidebar a:hover,
.dsc-sidebar a.is-active {
  color: var(--dsc-accent);
}

/* ── Footer ── */

.dsc-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--dsc-border);
  text-align: center;
  font-size: 13px;
  color: var(--dsc-text-dim);
}

.dsc-footer a {
  color: var(--dsc-text-muted);
}

.dsc-footer a:hover {
  color: var(--dsc-accent);
}

/* ── Content page layout ── */

.dsc-page-hero {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--dsc-border);
}

.dsc-page-hero__title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

.dsc-page-hero__title::before {
  content: "kubectl ";
  font-family: var(--dsc-font-mono);
  font-size: 0.55em;
  font-weight: 500;
  color: var(--dsc-accent);
  vertical-align: baseline;
}

.dsc-page-hero__lede {
  margin: 0 0 16px;
  color: var(--dsc-text-muted);
  max-width: 68ch;
  font-size: inherit;
  line-height: inherit;
}

.dsc-page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dsc-doc {
  min-width: 0;
}

.dsc-prose h3 {
  margin: 28px 0 12px;
  font-size: 1.25rem;
  font-weight: 600;
}

.dsc-prose p {
  margin: 0 0 16px;
  color: var(--dsc-text-muted);
  max-width: 72ch;
  font-size: inherit;
  line-height: inherit;
}

.dsc-prose ul,
.dsc-prose ol {
  margin: 0 0 16px;
  padding-left: 1.4em;
  color: var(--dsc-text-muted);
  max-width: 72ch;
  font-size: inherit;
  line-height: inherit;
}

.dsc-prose li {
  margin-bottom: 6px;
}

.dsc-prose li strong {
  color: var(--dsc-text);
}

.dsc-prose h3::before {
  content: "// ";
  font-family: var(--dsc-font-mono);
  font-size: 0.85em;
  font-weight: 500;
  color: var(--dsc-text-dim);
}

.dsc-prose h4 {
  margin: 20px 0 10px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dsc-text);
}

.dsc-next-link {
  display: inline-flex;
  align-self: flex-end;
  margin-top: 24px;
  padding: 12px 18px;
  border: 1px solid var(--dsc-border);
  border-radius: var(--dsc-radius-lg);
  background: var(--dsc-bg-elevated);
  color: var(--dsc-text);
  font-family: var(--dsc-font-mono);
  font-size: 15px;
  text-decoration: none;
  transition: border-color var(--dsc-transition);
}

.dsc-next-link:hover {
  border-color: var(--dsc-accent);
  color: var(--dsc-accent);
  text-decoration: none;
}

.dsc-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--dsc-border);
}

.dsc-pager .dsc-next-link {
  margin-top: 0;
}

.dsc-pager .dsc-next-link:last-child {
  margin-left: auto;
}

[data-personas].dsc-filter-hidden {
  display: none !important;
}

body.devsec-core .dsc-footer {
  position: relative;
  z-index: 1;
  margin-top: 64px;
  padding: 28px 24px 64px;
  border-top: 1px solid var(--dsc-chrome-border, var(--dsc-border));
  text-align: center;
  font-size: 11px;
  font-family: var(--dsc-font-mono);
  color: var(--dsc-chrome-muted, var(--dsc-text-dim));
  background: var(--dsc-chrome-bg, var(--dsc-bg));
}

body.devsec-core .dsc-footer a {
  color: var(--dsc-chrome-accent, var(--dsc-cyan));
  font-weight: 600;
  text-decoration: none;
}

body.devsec-core .dsc-footer a:hover {
  color: var(--dsc-accent);
  text-decoration: underline;
}

body.devsec-core pre[class*="language-"] {
  background: #0a0c10 !important;
  margin: 0;
}

body.devsec-core code[class*="language-"] {
  font-family: var(--dsc-font-mono);
  font-size: var(--dsc-font-size-code);
}

html[data-hp-theme="light"] body.devsec-core .dsc-codeblock {
  background: #f6f8fa;
}

html[data-hp-theme="light"] body.devsec-core pre[class*="language-"] {
  background: #f6f8fa !important;
}

/* ── ASCII diagrams ── */

.dsc-ascii {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--dsc-border);
  border-radius: var(--dsc-radius);
  background: var(--dsc-bg-elevated);
  overflow-x: auto;
}

.dsc-ascii pre {
  margin: 0;
  font-family: var(--dsc-font-mono);
  font-size: var(--dsc-font-size-code);
  line-height: 1.5;
  color: var(--dsc-cyan);
}

/* ── Partition visualizer ── */

.dsc-partition-viz {
  margin: 24px 0;
  padding: 20px;
  border: 1px solid var(--dsc-border);
  border-radius: var(--dsc-radius-lg);
  background: var(--dsc-bg-elevated);
}

.dsc-partition-viz__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  margin-bottom: 20px;
}

.dsc-partition-viz__control {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--dsc-font-mono);
  font-size: 12px;
  color: var(--dsc-text-muted);
}

.dsc-partition-viz__control input[type="range"] {
  width: 140px;
  accent-color: var(--dsc-accent);
}

.dsc-partition-viz__control input[type="number"] {
  width: 72px;
  padding: 6px 8px;
  border: 1px solid var(--dsc-border);
  border-radius: var(--dsc-radius);
  background: var(--dsc-bg);
  color: var(--dsc-text);
  font-family: var(--dsc-font-mono);
  font-size: 12px;
}

.dsc-partition-viz__control--check {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.dsc-partition-viz__btn {
  appearance: none;
  padding: 8px 16px;
  border: 1px solid var(--dsc-accent);
  border-radius: var(--dsc-radius);
  background: var(--dsc-accent-dim);
  color: var(--dsc-accent);
  font-family: var(--dsc-font-mono);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dsc-transition), color var(--dsc-transition);
}

.dsc-partition-viz__btn:hover {
  background: var(--dsc-accent);
  color: #060810;
}

.dsc-partition-viz__chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  min-height: 180px;
  padding: 16px 8px 8px;
  border: 1px solid var(--dsc-border);
  border-radius: var(--dsc-radius);
  background: var(--dsc-bg);
}

.dsc-partition-viz__bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.dsc-partition-viz__bar {
  width: 100%;
  max-width: 48px;
  min-height: 4px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--dsc-accent) 0%, color-mix(in srgb, var(--dsc-accent) 50%, transparent) 100%);
  transition: height 0.35s ease;
}

.dsc-partition-viz__bar--hot {
  background: linear-gradient(180deg, var(--dsc-red) 0%, color-mix(in srgb, var(--dsc-red) 50%, transparent) 100%);
  box-shadow: 0 0 12px var(--dsc-red-dim);
}

.dsc-partition-viz__bar-label {
  font-family: var(--dsc-font-mono);
  font-size: 10px;
  color: var(--dsc-text-dim);
}

.dsc-partition-viz__bar-count {
  font-family: var(--dsc-font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--dsc-accent);
}

.dsc-partition-viz__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
  font-family: var(--dsc-font-mono);
  font-size: 11px;
  color: var(--dsc-text-muted);
}

.dsc-partition-viz__stats strong {
  color: var(--dsc-text);
}

.dsc-partition-viz__note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--dsc-text-dim);
  font-family: var(--dsc-font-mono);
}

/* ── Consumer lag simulator ── */

.dsc-lag-sim {
  margin: 24px 0;
  padding: 20px;
  border: 1px solid var(--dsc-border);
  border-radius: var(--dsc-radius-lg);
  background: var(--dsc-bg-elevated);
}

.dsc-lag-sim__controls {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}

@media (min-width: 640px) {
  .dsc-lag-sim__controls {
    grid-template-columns: repeat(2, 1fr);
  }
}

.dsc-lag-sim__control {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--dsc-font-mono);
  font-size: 12px;
  color: var(--dsc-text-muted);
}

.dsc-lag-sim__control-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.dsc-lag-sim__control-value {
  font-weight: 700;
  color: var(--dsc-accent);
}

.dsc-lag-sim__control input[type="range"] {
  width: 100%;
  accent-color: var(--dsc-accent);
}

.dsc-lag-sim__chart-wrap {
  position: relative;
  height: 220px;
  padding: 12px;
  border: 1px solid var(--dsc-border);
  border-radius: var(--dsc-radius);
  background: var(--dsc-bg);
}

.dsc-lag-sim__chart-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

.dsc-lag-sim__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 14px;
  font-family: var(--dsc-font-mono);
  font-size: 11px;
  color: var(--dsc-text-muted);
}

.dsc-lag-sim__stats strong {
  color: var(--dsc-text);
}

.dsc-lag-sim__stats .dsc-lag-sim__stat--warn {
  color: var(--dsc-red);
}

.dsc-lag-sim__stats .dsc-lag-sim__stat--ok {
  color: var(--dsc-green);
}

.dsc-lag-sim__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.dsc-lag-sim__btn {
  appearance: none;
  padding: 6px 14px;
  border: 1px solid var(--dsc-border);
  border-radius: var(--dsc-radius);
  background: transparent;
  color: var(--dsc-text-muted);
  font-family: var(--dsc-font-mono);
  font-size: 11px;
  cursor: pointer;
  transition: border-color var(--dsc-transition), color var(--dsc-transition);
}

.dsc-lag-sim__btn:hover {
  border-color: var(--dsc-accent);
  color: var(--dsc-accent);
}

.dsc-lag-sim__btn--primary {
  border-color: var(--dsc-accent);
  background: var(--dsc-accent-dim);
  color: var(--dsc-accent);
}

.dsc-lag-sim__note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--dsc-text-dim);
  font-family: var(--dsc-font-mono);
}

/* ── Cheat sheets ── */

.dsc-cheatsheet-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.dsc-cheatsheet-nav a {
  padding: 8px 14px;
  border: 1px solid var(--dsc-border);
  border-radius: var(--dsc-radius);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  color: var(--dsc-text-muted);
  background: var(--dsc-surface);
}

.dsc-cheatsheet-nav a:hover {
  border-color: var(--dsc-accent);
  color: var(--dsc-accent);
  text-decoration: none;
}

.dsc-cheatsheet {
  margin-bottom: 48px;
  padding: 22px 24px;
  border: 1px solid var(--dsc-border);
  border-radius: 12px;
  background: var(--dsc-surface);
  scroll-margin-top: calc(var(--dsc-topbar-height, 56px) + 20px);
}

.dsc-cheatsheet__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px 20px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--dsc-border);
}

.dsc-cheatsheet__title {
  margin: 0;
  font-family: var(--dsc-font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.dsc-cheatsheet__lede {
  margin: 6px 0 0;
  font-size: inherit;
  color: var(--dsc-text-muted);
  max-width: 55ch;
}

.dsc-cheatsheet__copy {
  appearance: none;
  justify-self: end;
  align-self: start;
  flex-shrink: 0;
  white-space: nowrap;
  height: fit-content;
  padding: 6px 12px;
  border: 1px solid var(--dsc-border);
  border-radius: var(--dsc-radius);
  background: var(--dsc-bg);
  color: var(--dsc-text-muted);
  font-family: var(--dsc-font-mono);
  font-size: 11px;
  line-height: 1.4;
  cursor: pointer;
}

.dsc-cheatsheet__copy:hover,
.dsc-cheatsheet__copy.is-copied {
  color: var(--dsc-accent);
  border-color: var(--dsc-accent);
}

.dsc-cheatsheet-group {
  margin-bottom: 22px;
}

.dsc-cheatsheet-group:last-child {
  margin-bottom: 0;
}

.dsc-cheatsheet-group__title {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dsc-accent-secondary);
}

.dsc-token-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--dsc-font-size-table);
  margin-bottom: 10px;
}

.dsc-token-table th,
.dsc-token-table td {
  padding: 6px 10px;
  border: 1px solid var(--dsc-border);
  text-align: left;
  vertical-align: top;
}

.dsc-token-table thead th {
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dsc-text-muted);
  background: var(--dsc-bg);
}

.dsc-token-table code {
  font-size: 0.92em;
  white-space: nowrap;
}

.dsc-cheatsheet .dsc-config-table {
  font-size: 12px;
}

.dsc-cheatsheet .dsc-config-table code {
  font-size: 11px;
  white-space: nowrap;
}

.dsc-cheatsheet-code {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--dsc-border);
  border-radius: 8px;
  background: #0a0e14;
  font-family: var(--dsc-font-mono);
  font-size: var(--dsc-font-size-code);
  line-height: 1.55;
  color: #e8eaed;
  overflow-x: auto;
  white-space: pre;
}

html[data-hp-theme="light"] .dsc-cheatsheet-code {
  background: #f4f5f7;
  color: #1a1a2e;
}

.dsc-cheat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin: 12px 0 16px;
}

.dsc-cheat-grid__item {
  padding: 12px 14px;
  border: 1px solid var(--dsc-border);
  border-radius: 8px;
  background: var(--dsc-bg);
}

.dsc-cheat-grid__item h4 {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--dsc-accent-secondary);
}

.dsc-cheat-grid__item p {
  margin: 0;
  font-size: 12px;
  color: var(--dsc-text-muted);
  line-height: 1.45;
}

.dsc-cheat-grid__item code {
  font-size: 11px;
}

.dsc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--dsc-font-size-table);
  margin: 12px 0 16px;
}

.dsc-table th,
.dsc-table td {
  padding: 8px 12px;
  border: 1px solid var(--dsc-border);
  text-align: left;
  vertical-align: top;
}

.dsc-table thead th {
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dsc-text-muted);
  background: var(--dsc-bg);
}

.dsc-table code {
  font-size: 0.92em;
  white-space: nowrap;
}

@media print {
  body.devsec-core .dsc-topbar,
  body.devsec-core .dsc-toolbar,
  body.devsec-core .dsc-sidebar,
  body.devsec-core .dsc-mobile-nav,
  body.devsec-core .dsc-cheatsheet-nav,
  body.devsec-core .dsc-cheatsheet__copy {
    display: none !important;
  }

  body.devsec-core .dsc-cheatsheet {
    break-inside: avoid;
    border: 1px solid #ccc;
  }

  body.devsec-core {
    background: #fff !important;
    color: #000 !important;
  }
}

/* ── DevSec Core extensions ── */

.dsc-callout--iac {
  background: var(--dsc-teal-dim);
  border-color: color-mix(in srgb, var(--dsc-teal) 35%, transparent);
}

.dsc-callout--iac .dsc-callout__label {
  color: var(--dsc-teal);
}

.dsc-dual-track__tab--gha.is-active,
.dsc-dual-track__tab--k8s.is-active {
  background: var(--dsc-accent-dim);
  color: var(--dsc-accent);
  box-shadow: inset 0 -2px 0 var(--dsc-accent);
}

.dsc-dual-track__tab--gitlab.is-active,
.dsc-dual-track__tab--ocp.is-active {
  background: var(--dsc-security-dim);
  color: var(--dsc-security);
  box-shadow: inset 0 -2px 0 var(--dsc-security);
}

.dsc-platform-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 4px;
  border: 1px solid var(--dsc-border);
  border-radius: 999px;
  background: var(--dsc-bg-panel);
}

.dsc-platform-toggle__label {
  padding-left: 10px;
  font-family: var(--dsc-font-mono);
  font-size: 11px;
  color: var(--dsc-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dsc-platform-toggle__btn {
  padding: 6px 14px;
  border: none;
  border-radius: 999px;
  font-family: var(--dsc-font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--dsc-text-muted);
  background: transparent;
  cursor: pointer;
  transition: background var(--dsc-transition), color var(--dsc-transition);
}

.dsc-platform-toggle__btn.is-active[data-platform="gha"] {
  background: var(--dsc-accent-dim);
  color: var(--dsc-accent);
}

.dsc-platform-toggle__btn.is-active[data-platform="gitlab"] {
  background: var(--dsc-security-dim);
  color: var(--dsc-security);
}

body.devsec-core[data-platform="gitlab"] .dsc-yaml-gha {
  display: none;
}

body.devsec-core:not([data-platform="gitlab"]) .dsc-yaml-gitlab {
  display: none;
}

.dsc-persona-filter__btn[data-persona="security"].is-active {
  border-color: var(--persona-security);
  background: var(--persona-security-bg);
  color: var(--persona-security);
}

.dsc-badge--security {
  background: var(--persona-security-bg);
  border-color: color-mix(in srgb, var(--persona-security) 35%, transparent);
  color: var(--persona-security);
}

/* Severity badges */
.dsc-severity {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--dsc-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dsc-severity--critical {
  background: rgba(220, 38, 38, 0.15);
  color: var(--dsc-severity-critical);
  border: 1px solid rgba(220, 38, 38, 0.35);
}

.dsc-severity--high {
  background: rgba(234, 88, 12, 0.15);
  color: var(--dsc-severity-high);
  border: 1px solid rgba(234, 88, 12, 0.35);
}

.dsc-severity--medium {
  background: rgba(234, 179, 8, 0.15);
  color: var(--dsc-severity-medium);
  border: 1px solid rgba(234, 179, 8, 0.35);
}

.dsc-severity--low {
  background: var(--dsc-gray-dim);
  color: var(--dsc-severity-low);
  border: 1px solid var(--dsc-border);
}

/* SLSA level progress */
.dsc-slsa {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid var(--dsc-border);
  border-radius: var(--dsc-radius-lg);
  background: var(--dsc-bg-elevated);
}

.dsc-slsa__track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.dsc-slsa__level {
  position: relative;
  padding: 16px 12px;
  border: 1px solid var(--dsc-border);
  border-radius: var(--dsc-radius);
  text-align: center;
  background: var(--dsc-bg-panel);
  transition: border-color var(--dsc-transition), box-shadow var(--dsc-transition);
}

.dsc-slsa__level.is-active {
  border-color: var(--dsc-accent);
  box-shadow: 0 0 16px var(--dsc-accent-dim);
}

.dsc-slsa__level.is-target {
  border-color: var(--dsc-green);
  box-shadow: 0 0 16px var(--dsc-green-dim);
}

.dsc-slsa__level-num {
  display: block;
  font-family: var(--dsc-font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--dsc-accent);
  margin-bottom: 4px;
}

.dsc-slsa__level-label {
  display: block;
  font-size: 11px;
  color: var(--dsc-text-muted);
  line-height: 1.4;
}

.dsc-slsa__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.dsc-slsa__btn {
  appearance: none;
  padding: 6px 12px;
  border: 1px solid var(--dsc-border);
  border-radius: var(--dsc-radius);
  background: var(--dsc-bg);
  color: var(--dsc-text-muted);
  font-family: var(--dsc-font-mono);
  font-size: 11px;
  cursor: pointer;
}

.dsc-slsa__btn:hover,
.dsc-slsa__btn.is-active {
  border-color: var(--dsc-accent);
  color: var(--dsc-accent);
  background: var(--dsc-accent-dim);
}

/* Pipeline flow diagram */
.dsc-pipeline-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 24px 0;
  padding: 24px;
  border: 1px solid var(--dsc-border);
  border-radius: var(--dsc-radius-lg);
  background: var(--dsc-bg-elevated);
}

.dsc-pipeline-flow__stage {
  flex: 1 1 100px;
  min-width: 90px;
  max-width: 140px;
  padding: 14px 10px;
  border: 1px solid var(--dsc-border-bright);
  border-radius: var(--dsc-radius);
  text-align: center;
  background: var(--dsc-bg-panel);
  transition: transform var(--dsc-transition), border-color var(--dsc-transition);
}

.dsc-pipeline-flow__stage:hover {
  transform: translateY(-2px);
  border-color: var(--dsc-accent);
}

.dsc-pipeline-flow__stage--security {
  border-color: color-mix(in srgb, var(--dsc-security) 50%, transparent);
  background: var(--dsc-security-dim);
}

.dsc-pipeline-flow__stage-icon {
  font-size: 18px;
  margin-bottom: 6px;
}

.dsc-pipeline-flow__stage-label {
  margin: 0;
  font-family: var(--dsc-font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dsc-accent);
}

.dsc-pipeline-flow__stage--security .dsc-pipeline-flow__stage-label {
  color: var(--dsc-security);
}

.dsc-pipeline-flow__arrow {
  flex-shrink: 0;
  font-family: var(--dsc-font-mono);
  font-size: 16px;
  color: var(--dsc-text-dim);
}

/* Supply chain attack map */
.dsc-supply-chain {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid var(--dsc-border);
  border-radius: var(--dsc-radius-lg);
  background: var(--dsc-bg-elevated);
}

.dsc-supply-chain__svg {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  display: block;
}

.dsc-supply-chain__node {
  cursor: pointer;
  transition: opacity var(--dsc-transition);
}

.dsc-supply-chain__node:hover,
.dsc-supply-chain__node.is-active {
  opacity: 1;
}

.dsc-supply-chain__detail {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--dsc-border);
  border-radius: var(--dsc-radius);
  background: var(--dsc-bg-panel);
  font-size: 14px;
  color: var(--dsc-text-muted);
  min-height: 4rem;
}

.dsc-supply-chain__detail strong {
  color: var(--dsc-security);
}

/* DORA metrics calculator */
.dsc-dora-calc {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid var(--dsc-border);
  border-radius: var(--dsc-radius-lg);
  background: var(--dsc-bg-elevated);
}

.dsc-dora-calc__grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .dsc-dora-calc__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.dsc-dora-calc__inputs {
  display: grid;
  gap: 16px;
}

.dsc-dora-calc__field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  font-family: var(--dsc-font-mono);
  font-size: 12px;
  color: var(--dsc-text-muted);
}

.dsc-dora-calc__field input,
.dsc-dora-calc__field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--dsc-border);
  border-radius: var(--dsc-radius);
  background: var(--dsc-bg);
  color: var(--dsc-text);
  font-family: var(--dsc-font-mono);
  font-size: 13px;
}

.dsc-dora-calc__field input:focus,
.dsc-dora-calc__field select:focus {
  outline: none;
  border-color: var(--dsc-accent);
}

.dsc-dora-calc__result {
  padding: 20px;
  border: 1px solid var(--dsc-border);
  border-radius: var(--dsc-radius);
  background: var(--dsc-bg-panel);
  text-align: center;
}

.dsc-dora-calc__tier {
  margin: 0 0 8px;
  font-family: var(--dsc-font-display);
  font-size: 2rem;
  font-weight: 800;
}

.dsc-dora-calc__tier--elite { color: var(--dsc-green); }
.dsc-dora-calc__tier--high { color: var(--dsc-cyan); }
.dsc-dora-calc__tier--medium { color: var(--dsc-amber); }
.dsc-dora-calc__tier--low { color: var(--dsc-red); }

.dsc-dora-calc__summary {
  margin: 0;
  font-size: 14px;
  color: var(--dsc-text-muted);
  line-height: 1.6;
}

.dsc-dora-calc__chart-wrap {
  margin-top: 20px;
  height: 200px;
  position: relative;
}

/* DORA metric cards */
.dsc-dora-pillars {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

@media (min-width: 640px) {
  .dsc-dora-pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .dsc-dora-pillars {
    grid-template-columns: repeat(4, 1fr);
  }
}

.dsc-dora-pillar {
  padding: 16px;
  border: 1px solid var(--dsc-border);
  border-radius: var(--dsc-radius-lg);
  background: var(--dsc-bg-elevated);
}

.dsc-dora-pillar__metric {
  margin: 0 0 4px;
  font-family: var(--dsc-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dsc-accent);
}

.dsc-dora-pillar__name {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
}

.dsc-dora-pillar__desc {
  margin: 0;
  font-size: 13px;
  color: var(--dsc-text-muted);
  line-height: 1.55;
}

.dsc-ver {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border: 1px solid var(--dsc-border);
  border-radius: 999px;
  font-family: var(--dsc-font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--dsc-accent);
  background: var(--dsc-accent-dim);
  vertical-align: middle;
}

.dsc-ver--sec {
  background: var(--dsc-security-dim);
  border-color: color-mix(in srgb, var(--dsc-security) 40%, transparent);
  color: var(--dsc-security);
}

.dsc-lifecycle-ring {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid var(--dsc-border);
  border-radius: var(--dsc-radius-lg);
  background: var(--dsc-bg-elevated);
  overflow-x: auto;
}

.dsc-lifecycle-ring__stages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.dsc-lifecycle-ring__stage {
  padding: 10px 14px;
  border: 1px solid var(--dsc-border-bright);
  border-radius: 999px;
  font-family: var(--dsc-font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--dsc-text-muted);
  background: var(--dsc-bg-panel);
}

.dsc-lifecycle-ring__stage--sec {
  border-color: var(--dsc-security);
  color: var(--dsc-security);
  background: var(--dsc-security-dim);
}

.dsc-lifecycle-ring__loop {
  flex-basis: 100%;
  text-align: center;
  margin-top: 12px;
  font-family: var(--dsc-font-mono);
  font-size: 12px;
  color: var(--dsc-accent);
}
