/* ============================================================================
   PERIMETER — Containment.ai blueprint/schematic design system
   ----------------------------------------------------------------------------
   Hand-authored (NOT Tailwind-generated). This is the single stylesheet for
   every page built in the "Perimeter" theme. It is intentionally separate from
   the legacy Tailwind `css/output.css` — Perimeter pages link THIS file only.

   Contents:
     1. Fonts (self-hosted IBM Plex Sans/Mono — no third-party font requests)
     2. Design tokens (CSS custom properties)
     3. Base / reset
     4. Layout primitives (page shell, blueprint grid, container, sections)
     5. Typography (kickers, headings, body, labels)
     6. Buttons
     7. Navigation (sticky bar, dropdowns, mobile drawer)
     8. Footer
     9. Signature components:
          .pm-schematic (boxes + connectors + core + ruling chips)
          .pm-chip (ALLOW / MODIFY / DENY / DEFER)
          .pm-receipt (decision-receipt card)
          .pm-card / .pm-card--flagship (flagship card)
          .pm-table (status tables)
          .pm-roadmap (assurance roadmap block)
          .pm-log-row (blog log rows)
          .pm-postmortem (postmortem cards)
          .pm-plate (duotone photo plate + image-slot treatment)
    10. Animations
    11. Responsive (<=900px)

   All tokens come from the "Perimeter" handoff README. No border-radius, no
   shadows — squared corners are part of the language.
   ========================================================================= */

/* ── 1. Fonts ─────────────────────────────────────────────────────────────
   Self-hosted so `font-src 'self'` in _headers is satisfied with no CSP edit
   and no render-blocking third-party request. Sans is the variable font
   (covers 400–700); Mono ships 3 static weights. */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/ibm-plex-sans-latin-var.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/ibm-plex-mono-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/ibm-plex-mono-latin-600.woff2") format("woff2");
}

/* ── 2. Design tokens ─────────────────────────────────────────────────── */
:root {
  /* Colors */
  --pm-bg: #0d1b2e;
  --pm-grid-line: rgba(80, 120, 170, 0.07);
  --pm-panel: rgba(13, 27, 46, 0.9);
  --pm-panel-95: rgba(13, 27, 46, 0.95);
  --pm-panel-deep: rgba(10, 20, 35, 0.9);
  --pm-panel-menu: #0e1c30; /* solid dropdown / drawer background */
  --pm-border: #24405e;
  --pm-border-strong: #3e5a78;
  --pm-border-subtle: #1a2f47;
  --pm-text: #dce6f2;
  --pm-muted: #8fa5bd;
  /* Was #5f7b9b, which failed WCAG 2.1 AA as TEXT on every background in this
     system — 3.90:1 on --pm-panel-menu, 3.95:1 on --pm-bg, 4.18:1 on
     --pm-panel-deep, and 3.41:1 on the menu-hover surface — against a 4.5:1
     floor. It is used for text and nothing else (27 rules here, 234 inline
     usages, zero borders or backgrounds), so the token itself was the bug.
     #7794b4 is the first value that clears 4.5:1 on ALL of them, hover states
     included: 5.50 on --pm-bg, 5.44 on --pm-panel-menu, 4.87 on row-hover,
     4.75 on menu-hover. Chosen over a smaller lift (#6e8bab clears the steady
     backgrounds but fails both hovers at 4.22/4.33) so no future rule can
     reintroduce the failure by putting faint text on a hover surface.
     pa11y cannot police this: HTMLCS skips contrast wherever the effective
     background is a semi-transparent layer over the blueprint-grid gradient,
     which is most of this site — so the ratios are held here, by hand.
     The microtext hierarchy survives: it is carried by 9.5–11px size, uppercase
     and 0.12em tracking, with colour only a secondary cue. */
  --pm-faint: #7794b4;
  --pm-accent: #f2cf4a;
  --pm-ok: #6fd98a;
  --pm-deny: #e06c6c;
  --pm-on-accent: #0d1b2e;
  --pm-row-hover: rgba(36, 64, 94, 0.3);
  --pm-menu-hover: rgba(36, 64, 94, 0.35);

  /* Typography */
  --pm-font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --pm-font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --pm-maxw: 1240px;
  --pm-gutter: 40px;
  --pm-gutter-mobile: 24px;
  --pm-nav-h: 68px;
}

/* ── 3. Base / reset ──────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body.pm {
  margin: 0;
  background: var(--pm-bg);
  color: var(--pm-text);
  font-family: var(--pm-font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.pm img {
  max-width: 100%;
}

/* ── 4. Layout primitives ─────────────────────────────────────────────── */
/* The blueprint-grid page shell. Wrap all page content in <div class="pm-page">. */
.pm-page {
  min-height: 100vh;
  background: var(--pm-bg);
  background-image:
    linear-gradient(var(--pm-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--pm-grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  color: var(--pm-text);
}

/* Standard content container. */
.pm-container {
  max-width: var(--pm-maxw);
  margin: 0 auto;
  padding: 0 var(--pm-gutter);
}

/* Hero region (first block under nav). */
.pm-hero {
  max-width: var(--pm-maxw);
  margin: 0 auto;
  padding: 80px var(--pm-gutter) 24px;
}
.pm-hero--center {
  text-align: center;
  padding-top: 84px;
  padding-bottom: 20px;
}
.pm-hero--center .pm-hero-h1 {
  margin-left: auto;
  margin-right: auto;
}
.pm-hero--center .pm-hero-sub {
  margin-left: auto;
  margin-right: auto;
}

/* A FIG section: 1px top rule + 40px padding-top, container width. */
.pm-section {
  max-width: var(--pm-maxw);
  margin: 64px auto 0;
  padding: 0 var(--pm-gutter);
}
.pm-section--tight {
  margin-top: 48px;
}
.pm-section-rule {
  border-top: 1px solid var(--pm-border);
  padding-top: 40px;
}
/* Convenience: a section whose FIRST child kicker carries the top rule. */
.pm-section-rule > .pm-kicker:first-child {
  margin-bottom: 28px;
}

/* ── 5. Typography ────────────────────────────────────────────────────── */
/* FIG kicker — mono, yellow, all-caps, tracked. */
.pm-kicker {
  font-family: var(--pm-font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pm-accent);
  margin: 0 0 12px;
}
.pm-kicker--lg {
  font-size: 12.5px;
  margin-bottom: 22px;
}

/* Mono label — faint, tracked (SURFACE 01, section meta). */
.pm-label {
  font-family: var(--pm-font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--pm-faint);
}
.pm-label--wide {
  letter-spacing: 0.14em;
}

/* Headings. */
.pm-hero-h1,
h1.pm {
  font-size: 60px;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 920px;
  margin: 0;
}
.pm-hero-h1--md {
  font-size: 52px;
  line-height: 1.08;
  max-width: 820px;
}
.pm-h2,
h2.pm {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 28px;
}
.pm-h2--sm {
  font-size: 32px;
  margin-bottom: 30px;
}
.pm-h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}

/* Body / lead paragraph. */
.pm-hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--pm-muted);
  max-width: 680px;
  margin: 22px 0 0;
  text-wrap: pretty;
}
.pm-hero--center .pm-hero-sub {
  max-width: 660px;
  margin-top: 24px;
}
/* Split hero: headline column + a visual (receipt / browser mock) column.
   Product pages (Agent Governance, AI Chat Firewall). Collapses to one column
   ≤900px. */
.pm-hero--split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}
.pm-body {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--pm-muted);
  margin: 0;
}
.pm-body--lg {
  font-size: 15px;
  line-height: 1.6;
}
.pm-prose a {
  color: var(--pm-text);
}

.pm-mono {
  font-family: var(--pm-font-mono);
}
.pm-accent-text {
  color: var(--pm-accent);
}
.pm-muted {
  color: var(--pm-muted);
}
.pm-faint {
  color: var(--pm-faint);
}

/* Meta caption line (mono, centered under a schematic, etc). */
.pm-caption {
  font-family: var(--pm-font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--pm-faint);
}

/* ── 6. Buttons ───────────────────────────────────────────────────────── */
.pm-btn {
  display: inline-block;
  font-family: var(--pm-font-sans);
  font-size: 15px;
  font-weight: 700;
  padding: 15px 26px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.pm-btn--primary {
  background: var(--pm-accent);
  color: var(--pm-on-accent);
}
.pm-btn--primary:hover {
  background: #f5d867;
}
.pm-btn--secondary {
  border-color: var(--pm-border-strong);
  color: var(--pm-text);
  font-weight: 600;
  background: transparent;
}
.pm-btn--secondary:hover {
  border-color: var(--pm-accent);
}
/* Row of buttons. */
.pm-btn-row {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.pm-btn-row--center {
  justify-content: center;
}
/* Inline text link with arrow (mono/accent). */
.pm-link {
  color: var(--pm-accent);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}
.pm-link--lg {
  font-size: 15px;
}
.pm-link:hover {
  color: #f5d867;
}

/* ── 7. Navigation ────────────────────────────────────────────────────── */
.pm-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 22px;
  padding: 10px 32px;
  min-height: var(--pm-nav-h);
  border-bottom: 1px solid var(--pm-border);
  background: rgba(13, 27, 46, 0.97);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--pm-font-sans);
  position: sticky;
  top: 0;
  z-index: 50;
}
.pm-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--pm-text);
}
.pm-nav-brand img {
  width: 30px;
  height: 30px;
  display: block;
}
.pm-nav-brand span {
  font-weight: 700;
  font-size: 17px;
}

/* Desktop link cluster (pushed right). */
.pm-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 500;
  align-items: center;
}
.pm-nav-item {
  position: relative;
  display: flex;
}
.pm-nav-link {
  color: var(--pm-muted);
  text-decoration: none;
  padding: 8px 0;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}
.pm-nav-link:hover,
.pm-nav-item:hover .pm-nav-link,
.pm-nav-item:focus-within .pm-nav-link {
  color: var(--pm-accent);
}
/* Active-section indicator: 2px accent underline under the current page's nav
   link (set by perimeter.js from location.pathname). On dropdown triggers the
   bar stops 12px short of the right edge to clear the caret. */
.pm-nav-link--active {
  position: relative;
  color: var(--pm-text);
}
.pm-nav-link--active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--pm-accent);
}
.pm-nav-item[data-dropdown] .pm-nav-link--active::after {
  right: 12px;
}
.pm-nav-caret {
  font-size: 9px;
  color: var(--pm-faint);
}

/* Dropdown panel. Opened via :hover, :focus-within, or [data-open]. */
.pm-nav-dropdown {
  position: absolute;
  top: 100%;
  left: -14px;
  padding-top: 10px;
  z-index: 60;
  display: none;
}
.pm-nav-dropdown--right {
  left: auto;
  right: -14px;
}
.pm-nav-item:hover .pm-nav-dropdown,
.pm-nav-item:focus-within .pm-nav-dropdown,
.pm-nav-item[data-open="true"] .pm-nav-dropdown {
  display: block;
}
.pm-nav-dropdown-inner {
  width: 320px;
  background: var(--pm-panel-menu);
  border: 1px solid var(--pm-border);
}
.pm-nav-dropdown--narrow .pm-nav-dropdown-inner {
  width: 300px;
}
.pm-nav-dropdown-item {
  display: block;
  padding: 12px 18px;
  text-decoration: none;
  border-bottom: 1px solid var(--pm-border-subtle);
  transition: background-color 0.15s ease;
}
.pm-nav-dropdown-item:last-child {
  border-bottom: 0;
}
.pm-nav-dropdown-item:hover {
  background: var(--pm-menu-hover);
}
.pm-nav-dropdown--narrow .pm-nav-dropdown-item {
  padding: 11px 18px;
}
.pm-nav-dropdown-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pm-text);
}
.pm-nav-dropdown-desc {
  font-size: 12px;
  /* --pm-muted (6.75:1), not --pm-faint (3.9:1 — fails AA) on the opaque
     --pm-panel-menu background. pa11y never caught this because dropdown
     panels are display:none until hover and HTMLCS skips hidden elements, so
     the nav's own sub-labels — real content on all 29 Perimeter pages and 105
     blog posts — sat under the bar unmeasured. Found by auditing
     compare/verify.html, where the same token IS resolvable. */
  color: var(--pm-muted);
  margin-top: 2px;
}

/* FLAGSHIP tag chip used inline in nav / tables / cards. */
.pm-flagship-tag {
  font-family: var(--pm-font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--pm-on-accent);
  background: var(--pm-accent);
  padding: 2px 6px;
  margin-left: 6px;
  white-space: nowrap;
}

/* REQUEST BRIEFING outlined button. */
.pm-nav-cta {
  border: 1px solid var(--pm-accent);
  color: var(--pm-accent);
  font-family: var(--pm-font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 9px 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.pm-nav-cta:hover {
  background: var(--pm-accent);
  color: var(--pm-on-accent);
}

/* Hamburger (mobile) — hidden on desktop. */
.pm-nav-burger {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--pm-border-strong);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.pm-nav-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--pm-accent);
}

/* Mobile drawer + backdrop. Controlled by [data-drawer-open] on <body>. */
.pm-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 18, 0.6);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.pm-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--pm-panel-menu);
  border-left: 1px solid var(--pm-border);
  z-index: 100;
  overflow: hidden;
  transform: translateX(102%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
}
body[data-drawer-open="true"] .pm-drawer {
  transform: translateX(0);
}
body[data-drawer-open="true"] .pm-drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}
.pm-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 12px 20px;
  border-bottom: 1px solid var(--pm-border);
}
.pm-drawer-head-label {
  font-family: var(--pm-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  /* Same fix and same reason as .pm-nav-dropdown-desc above — this is the one
     instance pa11y could actually see, on compare/verify.html. */
  color: var(--pm-muted);
}
.pm-drawer-close {
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--pm-border-strong);
  color: var(--pm-accent);
  font-size: 16px;
  cursor: pointer;
  padding: 0;
}
.pm-drawer-body {
  padding: 8px 0 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
}
.pm-drawer-group {
  font-family: var(--pm-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--pm-accent);
  padding: 18px 20px 8px;
}
.pm-drawer-group + .pm-drawer-group,
.pm-drawer-group.pm-drawer-group--sep {
  border-top: 1px solid var(--pm-border-subtle);
  margin-top: 10px;
}
/* Mobile drawer accordions — native <details>/<summary>, no JS and no inline
   handlers (ADR 0015). The drawer repeated the whole IA at 25 links; each
   section now collapses to one row, and the primary paths stay one tap away
   above them. Closed <details> content is not rendered, so the drawer's focus
   trap skips it without any extra bookkeeping. */
.pm-drawer-acc {
  border-top: 1px solid var(--pm-border-subtle);
  margin-top: 10px;
}
.pm-drawer-acc > summary {
  font-family: var(--pm-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--pm-accent);
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  box-sizing: border-box;
}
.pm-drawer-acc > summary::-webkit-details-marker { display: none; }
.pm-drawer-acc > summary::after {
  content: "+";
  font-size: 15px;
  line-height: 1;
  color: var(--pm-muted);
}
.pm-drawer-acc[open] > summary::after { content: "\2212"; }
.pm-drawer-acc > summary:focus-visible {
  outline: 2px solid var(--pm-accent);
  outline-offset: -2px;
}
.pm-drawer-acc[open] > summary { color: var(--pm-accent); }
/* The UA hides non-summary children of a closed <details>, but that is a UA rule
   and loses to author CSS — `.pm-drawer-link { display: block }` kept all 25
   links visible while collapsed (caught by rendering, not by inspection). The
   links live in a panel div, and this rule states the collapse explicitly. */
.pm-drawer-acc:not([open]) > .pm-drawer-acc-body { display: none; }
.pm-drawer-acc-body { padding-bottom: 6px; }
.pm-drawer-primary {
  border-top: 1px solid var(--pm-border-subtle);
  margin-top: 10px;
  padding-top: 4px;
}

.pm-drawer-link {
  display: block;
  padding: 12px 20px;
  text-decoration: none;
  color: var(--pm-text);
  font-size: 15px;
  font-weight: 500;
}
.pm-drawer-cta-wrap {
  padding: 20px;
}
.pm-drawer-cta {
  display: block;
  text-align: center;
  background: var(--pm-accent);
  color: var(--pm-on-accent);
  font-family: var(--pm-font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 14px 0;
  text-decoration: none;
}
.pm-drawer-secondary {
  display: block;
  margin-top: 12px;
  text-align: center;
  color: var(--pm-accent);
  font-family: var(--pm-font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-decoration: none;
}
body[data-drawer-open="true"] {
  overflow: hidden;
}

/* ── 8. Footer ────────────────────────────────────────────────────────── */
.pm-footer {
  border-top: 1px solid var(--pm-border);
  background: rgba(10, 20, 35, 0.85);
  font-family: var(--pm-font-sans);
  color: var(--pm-text);
}
.pm-footer-grid {
  max-width: var(--pm-maxw);
  margin: 0 auto;
  padding: 56px var(--pm-gutter) 44px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}
.pm-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pm-footer-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pm-footer-brand-row img {
  width: 26px;
  height: 26px;
  display: block;
}
.pm-footer-brand-row span {
  font-weight: 700;
  font-size: 15px;
}
.pm-footer-tagline {
  font-size: 13px;
  line-height: 1.55;
  color: var(--pm-faint);
  max-width: 220px;
}
.pm-footer-cta {
  align-self: start;
  border: 1px solid var(--pm-accent);
  color: var(--pm-accent);
  font-family: var(--pm-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 9px 14px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.pm-footer-cta:hover {
  background: var(--pm-accent);
  color: var(--pm-on-accent);
}
.pm-footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
}
.pm-footer-col-head {
  font-family: var(--pm-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--pm-faint);
  margin-bottom: 6px;
}
.pm-footer-col a {
  color: var(--pm-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.pm-footer-col a:hover {
  color: var(--pm-accent);
}
.pm-footer-bar {
  border-top: 1px solid var(--pm-border-subtle);
  padding: 16px var(--pm-gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: var(--pm-maxw);
  margin: 0 auto;
  font-family: var(--pm-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--pm-faint);
}
.pm-footer-bar-link {
  color: var(--pm-faint);
  text-decoration: none;
  transition: color 0.2s ease;
}
.pm-footer-bar-link:hover {
  color: var(--pm-accent);
}

/* ── 9. Signature components ──────────────────────────────────────────── */

/* Generic bordered panel / card. */
.pm-card {
  border: 1px solid var(--pm-border);
  background: var(--pm-panel);
  padding: 28px;
}
.pm-card--tall {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pm-card--pad-lg {
  padding: 32px;
}
.pm-card-fill {
  flex: 1;
}
/* hover-accent link cards */
a.pm-card,
.pm-card--linkable {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease;
}
a.pm-card:hover,
.pm-card--linkable:hover {
  border-color: var(--pm-accent);
}

/* Flagship card — 2px accent border + corner FLAGSHIP tab. */
.pm-card--flagship {
  position: relative;
  border: 2px solid var(--pm-accent);
  background: var(--pm-panel-95);
}
.pm-flagship-tab {
  position: absolute;
  top: -1px;
  right: -1px;
  background: var(--pm-accent);
  color: var(--pm-on-accent);
  font-family: var(--pm-font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 4px 10px;
}
/* Pricing "which tier is yours?" selector rows — hover tint. */
.pm-tier-row {
  transition: background 0.15s ease;
}
.pm-tier-row:hover {
  background: rgba(36, 64, 94, 0.25);
}
/* Resources "reading order" step chips — bordered mono links, accent on hover. */
.pm-reading-step {
  color: var(--pm-text);
  text-decoration: none;
  border: 1px solid var(--pm-border-strong);
  padding: 9px 14px;
  transition: border-color 0.15s ease;
}
.pm-reading-step:hover {
  border-color: var(--pm-accent);
}

/* DOC index card (Resources). A linkable card with a mono DOC-NN kicker,
   title, description, and a mono READ → affordance pinned to the bottom. */
.pm-doc-card {
  border: 1px solid var(--pm-border);
  background: var(--pm-panel);
  padding: 28px;
  text-decoration: none;
  color: var(--pm-text);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s ease;
}
.pm-doc-card:hover {
  border-color: var(--pm-accent);
}
.pm-doc-card-kicker {
  font-family: var(--pm-font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--pm-accent);
}
.pm-doc-card-title {
  font-size: 20px;
  font-weight: 700;
}
.pm-doc-card-body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--pm-muted);
  flex: 1;
}
.pm-doc-card-read {
  font-family: var(--pm-font-mono);
  font-size: 11.5px;
  color: var(--pm-faint);
}

/* Grid helpers for card rows. */
.pm-grid {
  display: grid;
  gap: 16px;
}
.pm-grid-2 { grid-template-columns: 1fr 1fr; }
.pm-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.pm-grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }

/* Schematic — surface boxes → dashed connector → containment core → chips. */
.pm-schematic {
  display: grid;
  grid-template-columns: 1fr 56px 220px 56px 1fr;
  align-items: center;
}
/* Boundary cross-section — three equal panels joined by flow connectors. The
   house grammar on aerospace-defense / industrial-ot / robotics-autonomy, and a
   sibling of .pm-schematic above: equal side panels, .pm-flowline connectors. */
.pm-boundary-row {
  display: grid;
  grid-template-columns: 1fr 48px 1fr 48px 1fr;
  align-items: center;
}
.pm-schematic-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pm-surface-box {
  border: 1px solid var(--pm-border-strong);
  background: var(--pm-panel);
  padding: 16px 20px;
  font-family: var(--pm-font-mono);
  text-decoration: none;
  display: block;
  transition: border-color 0.2s ease;
}
.pm-surface-box:hover {
  border-color: var(--pm-accent);
}
.pm-surface-box-idx {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--pm-faint);
}
.pm-surface-box-name {
  font-size: 15px;
  color: var(--pm-text);
  margin-top: 5px;
}
/* Dashed animated connector (horizontal). */
.pm-connector {
  height: 1px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--pm-border-strong) 0px,
    var(--pm-border-strong) 10px,
    transparent 10px,
    transparent 20px
  );
  background-size: 20px 1px;
  animation: pmDashFlow 1.4s linear infinite;
}
/* Containment decision core — 2px accent border + floating label chip. */
.pm-core {
  border: 2px solid var(--pm-accent);
  background: var(--pm-panel-95);
  padding: 24px 20px;
  text-align: center;
  position: relative;
}
.pm-core-label {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pm-bg);
  color: var(--pm-accent);
  font-family: var(--pm-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  padding: 0 10px;
  white-space: nowrap;
}
.pm-core-steps {
  font-family: var(--pm-font-mono);
  font-size: 12px;
  line-height: 2.1;
  color: var(--pm-text);
}
.pm-core-foot {
  font-family: var(--pm-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--pm-faint);
  margin-top: 12px;
  border-top: 1px solid var(--pm-border);
  padding-top: 10px;
}
/* Horizontal architecture / authorization schematic: bordered stage boxes
   joined by 1px connector cells (product pages — Gateway boundary cross-section,
   Agent Governance pre-execution path). The column template is set inline per
   page (stage count varies); this class carries the shared alignment + the
   ≤900px collapse (stack the boxes, hide the connector cells). */
.pm-arch-row {
  display: grid;
  align-items: stretch;
}
.pm-arch-connector {
  display: flex;
  align-items: center;
}

/* Ruling chip column. */
.pm-chip-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--pm-font-mono);
}
.pm-chip-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pm-chip-note {
  font-size: 11.5px;
  color: var(--pm-faint);
}

/* Ruling chips. */
.pm-chip {
  font-family: var(--pm-font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  padding: 7px 16px;
  border: 1.5px solid var(--pm-muted);
  color: var(--pm-muted);
  display: inline-block;
}
.pm-chip--allow { border-color: var(--pm-ok); color: var(--pm-ok); }
.pm-chip--modify { border-color: var(--pm-accent); color: var(--pm-accent); }
.pm-chip--deny { border-color: var(--pm-deny); color: var(--pm-deny); }
.pm-chip--defer { border-color: var(--pm-muted); color: var(--pm-muted); }

/* Decision-receipt card — mono ledger. */
.pm-receipt {
  border: 1px solid var(--pm-border);
  background: var(--pm-panel-deep);
  font-family: var(--pm-font-mono);
  font-size: 13px;
  color: var(--pm-text);
}
.pm-receipt-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--pm-border);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--pm-faint);
}
.pm-receipt-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--pm-border-subtle);
  align-items: baseline;
}
.pm-receipt-key {
  color: var(--pm-faint);
  font-size: 12px;
}
.pm-receipt-val {
  color: var(--pm-text);
  word-break: break-word;
}
.pm-receipt-row--ruling .pm-receipt-val {
  display: flex;
  align-items: center;
}
.pm-receipt-foot {
  padding: 12px 20px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--pm-faint);
  word-break: break-all;
}

/* Status tables — mono header, subtle dividers, colored status column. */
.pm-table {
  border: 1px solid var(--pm-border);
  background: rgba(13, 27, 46, 0.92);
}
.pm-table-head,
.pm-table-row {
  display: grid;
  align-items: center;
}
.pm-table-head {
  padding: 14px 28px;
  border-bottom: 1px solid var(--pm-border);
  font-family: var(--pm-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--pm-faint);
}
.pm-table-row {
  padding: 24px 28px;
  border-bottom: 1px solid var(--pm-border-subtle);
  text-decoration: none;
  color: var(--pm-text);
  transition: background-color 0.2s ease;
}
.pm-table-row:last-child {
  border-bottom: 0;
}
a.pm-table-row:hover,
.pm-table-row--hover:hover {
  background: var(--pm-row-hover);
}
.pm-table-row--flagship {
  border-left: 3px solid var(--pm-accent);
}
.pm-table-cell-mono {
  font-family: var(--pm-font-mono);
  font-size: 13.5px;
}
.pm-table-cell-name {
  font-size: 16px;
  font-weight: 600;
}
.pm-table-cell-sub {
  font-size: 13.5px;
  color: var(--pm-muted);
}
/* Status text colors for the status column. */
.pm-status-ok { color: var(--pm-ok); font-family: var(--pm-font-mono); }
.pm-status-map { color: var(--pm-accent); font-family: var(--pm-font-mono); }
.pm-status-roadmap { color: var(--pm-muted); font-family: var(--pm-font-mono); }

/* Assurance roadmap block — dashed panel. */
.pm-roadmap {
  border: 1px dashed var(--pm-border-strong);
  padding: 28px 32px;
}
.pm-roadmap--split {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}
.pm-roadmap-label {
  font-family: var(--pm-font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--pm-accent);
}
.pm-roadmap-body {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--pm-muted);
}
.pm-roadmap-body a {
  color: var(--pm-text);
}

/* Comparison split panel (documentation-vs-enforcement). */
.pm-split-doc {
  border: 1px dashed var(--pm-border-strong);
  padding: 28px;
}
.pm-split-enforce {
  border: 1px solid var(--pm-accent);
  padding: 28px;
  background: var(--pm-panel-95);
}
.pm-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.5;
}
.pm-checklist--muted { color: var(--pm-muted); }
.pm-checklist--bright { color: var(--pm-text); }
.pm-checklist .pm-x { color: var(--pm-deny); }

/* Key/value spec rows — mono label column + value (Design Partner terms,
   spec sheets). Bordered container = a .pm-table; each row is a .pm-kv-row. */
.pm-kv-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
  padding: 22px 32px;
  border-bottom: 1px solid var(--pm-border-subtle);
  align-items: baseline;
}
.pm-kv-row:last-child { border-bottom: 0; }
.pm-kv-key {
  font-family: var(--pm-font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--pm-faint);
}
.pm-kv-val { font-size: 16px; }

/* Bordered CTA split — flagship (2px accent) panel with a lede column and a
   button/contact column. Collapses to one column on mobile. */
.pm-cta-split {
  position: relative;
  border: 2px solid var(--pm-accent);
  background: var(--pm-panel-95);
  padding: 44px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 44px;
  align-items: center;
}
.pm-cta-split-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.22;
  text-wrap: balance;
}
/* Form variant of the CTA split — top-aligned so a tall form doesn't vertically
   center against the shorter copy column (Design Partner Program apply block). */
.pm-cta-split--form {
  align-items: start;
}
/* Yellow status blip variant (matches the DPP hero kicker in the comp). */
.pm-blip--accent {
  background: var(--pm-accent);
}

/* ── Forms (Design Partner Program apply block; contact routing) ─────────── */
.pm-form-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pm-form-label > span {
  font-family: var(--pm-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--pm-faint);
}
.pm-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.pm-input {
  background: rgba(10, 20, 35, 0.9);
  border: 1px solid var(--pm-border-strong);
  color: var(--pm-text);
  padding: 12px 14px;
  font-size: 14.5px;
  font-family: var(--pm-font-sans);
  width: 100%;
  box-sizing: border-box;
}
.pm-input:focus {
  border-color: var(--pm-accent);
  outline: none;
}

/* Feature band (natsec split band). */
.pm-band {
  border: 1px solid var(--pm-border);
  background: var(--pm-panel-deep);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
}
.pm-band-main {
  padding: 44px 44px 44px 40px;
  border-right: 1px solid var(--pm-border);
}
/* One-sided band: used where the paired side panel would duplicate a CTA that
   already exists elsewhere on the page. Collapses the 1.3fr/1fr grid and drops
   the divider that would otherwise rule against nothing. */
.pm-band--single {
  grid-template-columns: 1fr;
}
.pm-band--single .pm-band-main {
  border-right: 0;
}
.pm-band-side {
  padding: 44px 40px;
}
.pm-band-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 16px 0;
  text-wrap: balance;
}

/* Log rows (Blog archive). */
.pm-log-row {
  display: grid;
  grid-template-columns: 130px 220px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 18px 20px;
  border-bottom: 1px solid var(--pm-border-subtle);
  text-decoration: none;
  color: var(--pm-text);
  transition: background-color 0.2s ease;
}
.pm-log-row:hover {
  background: var(--pm-row-hover);
}
.pm-log-date,
.pm-log-tag {
  font-family: var(--pm-font-mono);
  font-size: 12.5px;
  color: var(--pm-faint);
}
.pm-log-tag {
  color: var(--pm-accent);
  letter-spacing: 0.08em;
}
.pm-log-title {
  font-size: 16px;
  font-weight: 600;
}

/* ── 9c. Blog article (long-form post body) ───────────────────────────────
   Rendered blog posts (blog/*.html from scripts/build-blog.mjs). One narrow,
   centered reading column carries BOTH the article header (meta + title + lede)
   and the marked-rendered markdown body, styled for readable long-form in the
   blueprint aesthetic: IBM Plex, squared corners, --pm-accent for links/markers,
   §-rule H2s. NO teal palette, NO rounded corners — this is the same design
   system as the rest of the site (the whole point of the 2026-07-08 migration).
   Article-header classes are kept separate from the body typography so the
   generic `.pm-article-body p/h2/…` rules never fight the lede/title. */
.pm-article {
  max-width: 768px;
  margin: 0 auto;
  padding: 72px var(--pm-gutter) 0;
  color: var(--pm-text);
}
.pm-article-head {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--pm-border);
}
.pm-article-meta {
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.pm-article-meta-dim {
  color: var(--pm-faint);
}
.pm-article-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
  color: var(--pm-text);
}
.pm-article-lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--pm-muted);
  margin: 22px 0 0;
  text-wrap: pretty;
}

/* Markdown body typography. */
.pm-article-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--pm-text);
}
.pm-article-body > *:first-child {
  margin-top: 0;
}
.pm-article-body p {
  margin: 0 0 1.35em;
  color: var(--pm-text);
}
.pm-article-body h2 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--pm-text);
  margin: 2em 0 0.7em;
  padding-top: 22px;
  border-top: 1px solid var(--pm-border);
}
.pm-article-body h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--pm-text);
  margin: 1.8em 0 0.55em;
}
.pm-article-body h4 {
  font-family: var(--pm-font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pm-accent);
  margin: 1.6em 0 0.5em;
}
.pm-article-body a {
  color: var(--pm-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease;
}
.pm-article-body a:hover {
  color: #f5d867;
}
.pm-article-body strong {
  color: var(--pm-text);
  font-weight: 700;
}
.pm-article-body em {
  font-style: italic;
}
.pm-article-body ul,
.pm-article-body ol {
  margin: 0 0 1.35em;
  padding-left: 1.4em;
  color: var(--pm-text);
}
.pm-article-body li {
  margin: 0 0 0.5em;
  line-height: 1.7;
}
.pm-article-body li::marker {
  color: var(--pm-accent);
}
.pm-article-body blockquote {
  margin: 1.6em 0;
  padding: 14px 24px;
  border-left: 2px solid var(--pm-accent);
  background: var(--pm-panel);
  color: var(--pm-muted);
  font-style: italic;
}
.pm-article-body blockquote p:last-child {
  margin-bottom: 0;
}
.pm-article-body code {
  font-family: var(--pm-font-mono);
  font-size: 0.88em;
  background: var(--pm-panel-deep);
  border: 1px solid var(--pm-border-subtle);
  padding: 1px 6px;
  color: var(--pm-accent);
}
.pm-article-body pre {
  background: var(--pm-panel-deep);
  border: 1px solid var(--pm-border);
  padding: 18px 20px;
  overflow-x: auto;
  margin: 1.6em 0;
  font-size: 13.5px;
  line-height: 1.6;
}
.pm-article-body pre code {
  background: none;
  border: 0;
  padding: 0;
  color: var(--pm-text);
  font-size: inherit;
}
.pm-article-body hr {
  border: 0;
  border-top: 1px solid var(--pm-border);
  margin: 2.4em 0;
}
.pm-article-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.6em 0;
  border: 1px solid var(--pm-border);
}
/* Tables scroll horizontally on narrow viewports instead of overflowing the page. */
.pm-article-body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 14.5px;
  border: 1px solid var(--pm-border);
}
.pm-article-body th,
.pm-article-body td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--pm-border-subtle);
}
.pm-article-body th {
  font-family: var(--pm-font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pm-faint);
  border-bottom: 1px solid var(--pm-border);
}

@media (max-width: 900px) {
  .pm-article {
    padding-left: var(--pm-gutter-mobile);
    padding-right: var(--pm-gutter-mobile);
    padding-top: 48px;
  }
  .pm-article-title {
    font-size: 30px;
  }
  .pm-article-lede {
    font-size: 17px;
  }
  .pm-article-body {
    font-size: 16px;
  }
  .pm-article-body h2 {
    font-size: 23px;
  }
}

/* Postmortem cards. */
.pm-postmortem {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  border: 1px solid var(--pm-border);
  background: var(--pm-panel);
  padding: 26px 28px;
}
.pm-postmortem-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pm-postmortem-date {
  font-family: var(--pm-font-mono);
  font-size: 12.5px;
  color: var(--pm-faint);
}
.pm-sev {
  font-family: var(--pm-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  display: inline-block;
  width: fit-content;
}
.pm-sev--p0 { background: var(--pm-deny); color: var(--pm-on-accent); }
.pm-sev--p1 { border: 1px solid var(--pm-accent); color: var(--pm-accent); }
.pm-postmortem-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}
.pm-postmortem-summary {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--pm-muted);
  margin: 0 0 12px;
}
.pm-guardrail {
  font-family: var(--pm-font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--pm-accent);
  line-height: 1.5;
}

/* Duotone photo plate. */
.pm-plate {
  border: 1px solid var(--pm-border);
  background: var(--pm-panel);
  padding: 10px;
}
.pm-plate-frame {
  width: 100%;
  display: block;
  overflow: hidden;
}
.pm-plate-frame img,
.pm-plate-frame image-slot,
.pm-plate-frame perimeter-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(1) sepia(0.3) hue-rotate(175deg) saturate(1.6)
    brightness(0.82) contrast(1.08);
}
.pm-plate-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--pm-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--pm-faint);
  margin-top: 10px;
}
/* Empty-state placeholder for a photo plate whose final imagery isn't wired
   yet. Recreates the design's <image-slot> empty state: a dashed frame with a
   centered mono caption. Swap for a real <img> (self-hosted + the plate's
   duotone filter) when the photograph lands. */
.pm-plate-frame--placeholder {
  border: 1px dashed var(--pm-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 240px;
  padding: 24px;
}
.pm-plate-placeholder-text {
  font-family: var(--pm-font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--pm-faint);
  text-transform: uppercase;
  max-width: 360px;
  line-height: 1.6;
}

/* Status blip (pulsing square). */
.pm-blip {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--pm-ok);
  animation: pmBlipPulse 2.4s ease-in-out infinite;
}

/* Utility spacing. */
.pm-mt-lg { margin-top: 34px; }
.pm-mt-xl { margin-top: 48px; }
.pm-text-center { text-align: center; }
.pm-cta-block {
  max-width: var(--pm-maxw);
  margin: 72px auto 80px;
  padding: 0 var(--pm-gutter);
  text-align: center;
}

/* ── 9b. Legal document (Privacy / Terms) ─────────────────────────────────
   Narrow single-column scaffold: a hero, a dashed "implementation note"
   panel (deny-red), a stack of top-rule §-rows (mono section number + title +
   body), and a mono meta footer line. Consumes the shared tokens only. */
.pm-legal {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px var(--pm-gutter) 24px;
}
.pm-legal-body {
  max-width: 900px;
  margin: 40px auto 72px;
  padding: 0 var(--pm-gutter);
  display: flex;
  flex-direction: column;
}
/* Dashed "not for publication" implementation note. */
.pm-legal-note {
  border: 1px dashed var(--pm-deny);
  padding: 22px 26px;
  margin-top: 32px;
}
.pm-legal-note-label {
  font-family: var(--pm-font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--pm-deny);
  margin-bottom: 8px;
}
.pm-legal-note-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--pm-muted);
}
/* A single §-row. */
.pm-legal-row {
  border-top: 1px solid var(--pm-border);
  padding: 32px 0;
}
.pm-legal-row-inner {
  display: flex;
  gap: 18px;
  align-items: baseline;
}
.pm-legal-num {
  font-family: var(--pm-font-mono);
  font-size: 13px;
  color: var(--pm-accent);
}
.pm-legal-col {
  flex: 1;
}
.pm-legal-row-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}
/* Placeholder for the counsel copy that must be ported before publish. */
.pm-legal-placeholder {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--pm-faint);
  font-family: var(--pm-font-mono);
}
.pm-legal-meta {
  border-top: 1px solid var(--pm-border);
  padding: 24px 0 0;
  font-family: var(--pm-font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--pm-faint);
}
/* Effective-date line under a legal hero. */
.pm-legal-effective {
  font-family: var(--pm-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--pm-faint);
  margin-top: 20px;
}
/* Body paragraph inside a §-row (ported counsel copy). */
.pm-legal-text {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--pm-muted);
}
.pm-legal-text + .pm-legal-text,
.pm-legal-list + .pm-legal-text,
.pm-legal-text + .pm-legal-list { margin-top: 12px; }
/* Column of "— item" lines inside a §-row. */
.pm-legal-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--pm-muted);
}
.pm-legal-list .pm-legal-term { color: var(--pm-text); }
/* Bordered "as is / as available" disclaimer callout inside a §-row. */
.pm-legal-callout {
  border: 1px solid var(--pm-border-strong);
  background: var(--pm-panel);
  padding: 18px 22px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--pm-muted);
  margin-bottom: 12px;
}
.pm-legal-note a,
.pm-legal-meta a,
.pm-legal-text a,
.pm-legal-list a { color: var(--pm-accent); }

/* ── 10. Animations ───────────────────────────────────────────────────── */
@keyframes pmHeroRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pmBlipPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
@keyframes pmDashFlow {
  to { background-position: 20px 0; }
}
.pm-rise { animation: pmHeroRise 0.6s ease-out both; }
.pm-rise-1 { animation: pmHeroRise 0.6s ease-out 0.08s both; }
.pm-rise-2 { animation: pmHeroRise 0.6s ease-out 0.16s both; }
.pm-rise-3 { animation: pmHeroRise 0.6s ease-out 0.24s both; }

@media (prefers-reduced-motion: reduce) {
  .pm-rise, .pm-rise-1, .pm-rise-2, .pm-rise-3 { animation: none; }
  .pm-connector { animation: none; }
  .pm-flowline { animation: none; }
  .pm-blip { animation: none; }
}

/* ── 11. Responsive (<=900px) ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .pm-hero,
  .pm-section,
  .pm-container,
  .pm-cta-block,
  .pm-legal,
  .pm-legal-body {
    padding-left: var(--pm-gutter-mobile);
    padding-right: var(--pm-gutter-mobile);
  }
  .pm-hero { padding-top: 48px; padding-bottom: 12px; }
  .pm-hero-h1, .pm-hero-h1--md, h1.pm { font-size: 34px !important; line-height: 1.12 !important; }
  .pm-hero-sub { font-size: 16px !important; line-height: 1.5 !important; }
  .pm-hero .pm-btn-row { flex-direction: column; }
  .pm-hero .pm-btn { width: 100%; justify-content: center; text-align: center; }
  .pm-h2, h2.pm, .pm-h2--sm { font-size: 26px; }
  .pm-band-title { font-size: 22px; }

  /* All multi-column grids collapse to one column. */
  .pm-grid-2, .pm-grid-3, .pm-grid-4,
  .pm-band, .pm-roadmap--split, .pm-postmortem,
  .pm-cta-split {
    grid-template-columns: 1fr;
  }
  /* Key/value spec rows: stack label over value. */
  .pm-kv-row { grid-template-columns: 1fr; gap: 6px; }
  .pm-band-main { border-right: 0; border-bottom: 1px solid var(--pm-border); }

  /* Footer 6-col → 2-col. */
  .pm-footer-grid { grid-template-columns: 1fr 1fr; }
  .pm-footer-bar { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* Schematic: hide connectors, stack. */
  .pm-schematic { grid-template-columns: 1fr; gap: 24px; }
  .pm-connector { display: none; }
  .pm-boundary-row { grid-template-columns: 1fr; gap: 24px; }
  .pm-boundary-row > .pm-flowline { display: none; }
  .pm-core { max-width: 320px; margin: 0 auto; }

  /* Decision-path 5-col table stacks. */
  .pm-decision-path { grid-template-columns: 1fr !important; }

  /* Horizontal architecture schematics stack; connector cells drop out. */
  .pm-arch-row { grid-template-columns: 1fr !important; gap: 16px; }
  .pm-arch-connector { display: none; }
  /* Deployment-context chip strip collapses to a stack. */
  .pm-deploy-contexts { grid-template-columns: 1fr 1fr !important; }
  /* Two-column deploy band (Chat Firewall) collapses to one column. */
  .pm-deploy-band { grid-template-columns: 1fr !important; gap: 28px !important; }
  /* Split product hero collapses; visual column drops below the copy. */
  .pm-hero--split { grid-template-columns: 1fr !important; gap: 36px; }
  .pm-form-grid { grid-template-columns: 1fr; }

  /* Log rows stack. */
  .pm-log-row { grid-template-columns: 1fr; gap: 6px; }
  .pm-record-row { grid-template-columns: 1fr !important; gap: 6px; }

  /* Nav: hide desktop links + CTA, show burger. */
  .pm-nav-links,
  .pm-nav > .pm-nav-cta { display: none; }
  .pm-nav-burger { display: flex; }
  .pm-nav { padding: 10px 16px; gap: 12px; }
}

/* Desktop: keep the drawer + burger out of the flow. */
@media (min-width: 901px) {
  .pm-nav-burger,
  .pm-drawer,
  .pm-drawer-backdrop { display: none; }
}



/* ── www#379 fix: mobile drawer clamped to the nav box ─────────────────────
   ROOT CAUSE: .pm-nav declares backdrop-filter: blur(8px). Per CSS spec, an
   element with a non-initial backdrop-filter (like transform/filter/perspective)
   becomes the CONTAINING BLOCK for its position:fixed descendants. .pm-drawer
   and .pm-drawer-backdrop are children of .pm-nav, so their top/right/bottom:0
   resolve against the ~64px nav box instead of the viewport — the drawer opens
   as a short sliver in the top-right rather than a full-height panel, and the
   backdrop only covers the nav strip. That is the "hamburger not fully working
   on mobile" report (CEO 2026-07-03).
   FIX: the drawer only exists <=900px and the nav background is already 97%
   opaque (rgba(13,27,46,0.97)), so removing the blur on mobile restores
   viewport-relative fixed positioning with no perceptible visual change.
   Desktop (>=901px) keeps backdrop-filter: blur(8px) — the drawer is display:none
   there, so no containing-block conflict exists. */
@media (max-width: 900px) {
  .pm-nav {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* ── Decision-path demo (homepage FIG. 2) ─────────────────────────────────
   Driven by js/boundary-demo.js. The [data-demo-ready] gate is the
   progressive-enhancement seam: with JS off no rule below applies, so all
   three scenario panels and all three outcomes render as a static spec.

   Contrast: every text color here is --pm-muted or lighter, or one of the
   ruling tokens. Composited over --pm-panel-deep on --pm-bg, --pm-faint
   measures 4.21:1 — under the 4.5:1 AA floor — so it is deliberately NOT used
   for text in this module. --pm-muted is 7.28:1, deny 5.74:1, ok 10.5:1,
   accent 12.1:1. pa11y cannot check these (HTMLCS skips contrast over a
   semi-transparent layer on the blueprint gradient), so they are held by hand. */
.pm-demo {
  border: 1px solid var(--pm-border);
  background: var(--pm-panel-deep);
}
.pm-demo-head {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--pm-border);
}
.pm-demo-tabs {
  display: flex;
  flex-wrap: wrap;
}
.pm-demo-tab {
  appearance: none;
  cursor: pointer;
  min-height: 44px; /* tap target */
  background: transparent;
  border: 1px solid var(--pm-border);
  border-right-width: 0;
  padding: 10px 16px;
  font-family: var(--pm-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pm-muted);
}
.pm-demo-tab:last-child {
  border-right-width: 1px;
}
.pm-demo-tab:hover {
  background: var(--pm-menu-hover);
  color: var(--pm-text);
}
.pm-demo-tab[aria-selected="true"] {
  background: var(--pm-accent);
  border-color: var(--pm-accent);
  color: var(--pm-on-accent);
  font-weight: 600;
}
.pm-demo-run {
  appearance: none;
  cursor: pointer;
  min-height: 44px;
  background: var(--pm-accent);
  border: 1px solid var(--pm-accent);
  color: var(--pm-on-accent);
  padding: 12px 20px;
  font-family: var(--pm-font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pm-demo-run:hover:not(:disabled) {
  background: #f5d867;
}
.pm-demo-run:disabled {
  opacity: 0.55;
  cursor: default;
}
.pm-demo-note {
  margin: 0;
  padding: 13px 22px;
  border-bottom: 1px solid var(--pm-border-subtle);
  font-size: 13px;
  line-height: 1.6;
  color: var(--pm-muted);
}
.pm-demo-note strong {
  color: var(--pm-text);
}
/* The live region is visible — there is no sr-only utility in this system, and
   inventing one would hide run progress from sighted keyboard users too. So it
   is styled as a status readout and its messages are written to be read. */
.pm-demo-status {
  margin: 0;
  padding: 11px 22px;
  border-bottom: 1px solid var(--pm-border-subtle);
  font-family: var(--pm-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pm-muted);
}
.pm-demo-panel {
  padding: 22px;
}
.pm-demo-panel + .pm-demo-panel {
  border-top: 1px solid var(--pm-border-subtle);
}
.pm-demo[data-demo-ready] .pm-demo-panel {
  display: none;
}
.pm-demo[data-demo-ready] .pm-demo-panel[data-demo-active="true"] {
  display: block;
}
.pm-demo[data-demo-ready] .pm-demo-panel + .pm-demo-panel {
  border-top: 0;
}

.pm-demo-payload {
  border: 1px solid var(--pm-border);
  background: var(--pm-panel-menu);
  padding: 16px 18px;
}
.pm-demo-payload p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--pm-text);
}

.pm-demo-stages {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.pm-demo-stage {
  display: grid;
  grid-template-columns: 26px 132px 1fr;
  gap: 14px;
  align-items: start;
  padding: 12px 16px;
  border: 1px solid var(--pm-border-subtle);
  border-left: 3px solid var(--pm-border);
  background: rgba(13, 27, 46, 0.5);
  transition: background 0.2s ease, border-color 0.2s ease;
}
/* State is carried by border + background AND narrated to the live region —
   never by color alone. */
.pm-demo-stage[data-state="active"] {
  border-left-color: var(--pm-accent);
  background: rgba(36, 64, 94, 0.42);
}
.pm-demo-stage[data-state="done"] {
  border-left-color: var(--pm-ok);
  background: rgba(21, 39, 65, 0.75);
}
.pm-demo-stage-idx {
  font-family: var(--pm-font-mono);
  font-size: 13px;
  color: var(--pm-muted);
}
.pm-demo-stage[data-state] .pm-demo-stage-idx {
  color: var(--pm-accent);
}
.pm-demo-stage-name {
  font-family: var(--pm-font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--pm-text);
}
.pm-demo-stage-detail {
  font-size: 14px;
  line-height: 1.6;
  color: var(--pm-muted);
  /* Policy and rule identifiers are long unbroken mono tokens
     (configured_export_control_policy is 269px) and browsers do not break on
     underscores, so at 320px one of them pushed the whole page into horizontal
     scroll. Break inside them rather than let a real viewport scroll sideways. */
  overflow-wrap: anywhere;
}

.pm-demo-outcome {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--pm-border);
}
.pm-demo[data-demo-ready] .pm-demo-outcome {
  display: none;
}
.pm-demo[data-demo-ready] .pm-demo-outcome[data-shown] {
  display: block;
}
.pm-demo-outcome-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.pm-demo-outcome-note {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--pm-muted);
}
.pm-demo-verify {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--pm-muted);
}
.pm-demo-verify a {
  color: var(--pm-accent);
}
/* .pm-receipt's own head/key colour is --pm-faint, which measures 4.21:1 here —
   under AA. Overridden inside this module only: the demo puts a decision record
   above the fold on the homepage, so it has to clear the bar, and scoping the
   fix avoids restyling every product page that already ships .pm-receipt.
   The site-wide --pm-faint microtext audit is tracked separately. */
.pm-demo .pm-receipt-head,
.pm-demo .pm-receipt-key,
.pm-demo .pm-label {
  color: var(--pm-muted);
}
/* Why .pm-label is overridden here specifically: the class ships --pm-faint,
   which is 3.9:1 on this module's payload panel — a real AA failure that
   HTMLCS/pa11y flags on THIS module and nowhere else, because the payload is
   one of the few places the token sits on a fully OPAQUE background the
   contrast checker can resolve. Elsewhere the same token is equally low but
   sits over semi-transparent layers on the blueprint gradient, so the checker
   skips it and the debt stays invisible. --pm-muted here is 6.75:1. The
   site-wide --pm-faint microtext sweep is a separate, larger change. */

/* Ruling stamp — the demo verdict, and available to any page that stamps a
   ruling. Deliberately NOT rotated: the handoff specifies transform:
   rotate(-2deg), but this file's own rule (see the header: "No border-radius,
   no shadows — squared corners are part of the language") has no rotate
   anywhere, and a tilted rubber stamp is what would make an animated module
   about a pre-ATO staging build read as a marketing novelty. Same 2px border
   and mono tracking as the existing ruling treatment at platform.html. */
.pm-stamp {
  display: inline-block;
  border: 2px solid currentColor;
  padding: 6px 16px;
  font-family: var(--pm-font-mono);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.18em;
}
.pm-stamp--allow { color: var(--pm-ok); }
.pm-stamp--modify { color: var(--pm-accent); }
.pm-stamp--deny { color: var(--pm-deny); }
.pm-stamp--defer { color: var(--pm-muted); }

@media (max-width: 900px) {
  .pm-demo-head {
    flex-direction: column;
    align-items: stretch;
  }
  .pm-demo-tab {
    border-right-width: 1px;
    flex: 1 1 auto;
  }
  .pm-demo-stage {
    grid-template-columns: 22px 1fr;
  }
  .pm-demo-stage-detail {
    grid-column: 1 / -1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pm-demo-stage {
    transition: none;
  }
}

/* ── Flow line ────────────────────────────────────────────────────────────
   The animated dashed connector in the boundary cross-sections on
   industrial-ot and robotics-autonomy. It existed as a ~200-char INLINE style
   on a classless div, which put it out of reach of the prefers-reduced-motion
   block below AND out-specificity'd it — four elements animating infinitely
   regardless of the visitor's setting. A class fixes both. */
.pm-flowline {
  height: 1px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--pm-border-strong) 0px,
    var(--pm-border-strong) 10px,
    transparent 10px,
    transparent 20px
  );
  background-size: 20px 1px;
  animation: pmDashFlow 1.4s linear infinite;
}

/* ── Diagram figure ────────────────────────────────────────────────────────
   Frames the recoloured SVG diagram kit in the same bordered-plate language as
   .pm-plate, so a figure reads as a numbered drawing rather than a stray image.
   Used on blog posts (one per post, chosen by category) and on the text-heavy
   marketing pages. The SVGs carry no background of their own, so they sit
   directly on the page and inherit the blueprint grid behind them. */
.pm-figure {
  margin: 0 0 30px;
}
.pm-figure-frame {
  border: 1px solid var(--pm-border);
  background: var(--pm-panel-deep);
  padding: 22px 24px;
}
.pm-figure-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.pm-figure-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--pm-border-subtle);
  padding: 9px 2px 0;
  font-family: var(--pm-font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  /* --pm-muted, never --pm-faint: this is 9.5px microtext and needs the headroom */
  color: var(--pm-muted);
}
@media (max-width: 900px) {
  .pm-figure-frame {
    padding: 14px 14px;
  }
}

/* ── "Validated per pilot" note ────────────────────────────────────────────
   For the things an evaluator asks for that we have not measured yet. The
   accent LEFT BORDER carries the status signal, so the text can stay at full
   --pm-text / --pm-muted contrast — deliberately not the handoff's pattern of
   dim text on a tinted panel, which computes to ~1.09:1 in six places in the
   reference mockups and would fail the ADR 0008 gate outright. */
.pm-pilot-note {
  margin-top: 28px;
  border: 1px solid var(--pm-border);
  border-left: 3px solid var(--pm-accent);
  background: var(--pm-panel);
  padding: 20px 24px;
}
.pm-pilot-note .pm-checklist strong {
  color: var(--pm-text);
  font-weight: 600;
}

/* ── Prefill disclosure note ───────────────────────────────────────────────
   Revealed by perimeter.js when a `?boundary=` deep link (a pricing rung, a
   product CTA) pre-answers the form's required boundary question. Sits in the
   form grid's next row so it lands directly beneath the select it describes. */
.pm-prefill-note {
  grid-column: 1 / -1;
  margin: -4px 0 0;
  font-family: var(--pm-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  color: var(--pm-accent);
}

/* ── Forwardable briefs — print / save-as-PDF ──────────────────────────────
   The three per-persona proof artifacts (re-audit Fix 8) are pages, not
   committed PDFs: a binary would drift from trust.html the moment the record
   changed, which is the mag-five-planes lesson. Viewed, they are ordinary site
   pages. Printed or saved as PDF, the chrome drops out and they set as a
   document — black on white, so a contracting officer can forward it.        */
@media print {
  /* SCOPED TO BRIEF PAGES (`body:has(.pm-brief)`). These two rules were
     unscoped, so printing ANY Perimeter page hid its nav and footer and forced
     a white background — while the universal `color: #111` below applies only
     to `.pm-brief *`. Any element on a non-brief page carrying its own pale
     colour therefore printed pale-on-white and was unreadable. Raised in the
     codex review of PR #545.

     `:has()` rather than a new body class: it needs no HTML change across the
     three briefs, and it degrades in the SAFE direction — where `:has()` is
     unsupported the selector is dropped, so non-brief pages print exactly as
     they did before this PR and briefs merely lose the chrome-hiding. A body
     class would have been the other trade: guaranteed support, three more files
     to keep in sync, and silent breakage if a future brief omits it. */
  body:has(.pm-brief) .pm-nav,
  body:has(.pm-brief) .pm-drawer,
  body:has(.pm-brief) .pm-drawer-backdrop,
  body:has(.pm-brief) .pm-newsbar,
  body:has(.pm-brief) .pm-footer,
  body:has(.pm-brief) .pm-nav-cta,
  .pm-brief-noprint { display: none !important; }
  body:has(.pm-brief),
  body:has(.pm-brief) .pm-page { background: #fff !important; color: #111 !important; }
  .pm-brief, .pm-brief * {
    background: transparent !important;
    color: #111 !important;
    text-shadow: none !important;
  }
  .pm-brief a { color: #111 !important; text-decoration: underline; }
  /* a printed page loses the href, so surface it */
  .pm-brief a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  .pm-brief .pm-brief-box,
  .pm-brief .pm-brief-split > div { border: 1px solid #999 !important; }
  .pm-brief-print-only { display: block !important; }
  .pm-brief h1 { font-size: 20pt; }
  .pm-brief h2 { font-size: 13pt; margin-top: 16pt; }
  .pm-brief { font-size: 10pt; line-height: 1.45; }
  .pm-brief-box { break-inside: avoid; page-break-inside: avoid; }
  @page { margin: 16mm; }
}
.pm-brief-print-only { display: none; }
.pm-brief-box {
  border: 1px solid var(--pm-border-strong);
  background: var(--pm-panel);
  padding: 20px 22px;
  margin-top: 16px;
}
.pm-brief-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 16px;
}
@media (max-width: 760px) { .pm-brief-split { grid-template-columns: 1fr; } }
.pm-brief-kv {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 6px 18px;
  font-family: var(--pm-font-mono);
  font-size: 12.5px;
  line-height: 1.6;
}
@media (max-width: 620px) { .pm-brief-kv { grid-template-columns: 1fr; } }
