/* ==========================================================================
   NIRVQ — inline-diagrams.css
   Shared stylesheet for diagrams built directly in the page (HTML tables /
   flex flows / inline SVG) instead of PNG images.

   LOAD ORDER: after css/style.css, one <link> per page that carries a
   diagram, e.g.  <link rel="stylesheet" href="css/inline-diagrams.css" />
   (docs/ pages use ../css/inline-diagrams.css). No JS, no external fonts:
   everything below reuses the site's own font stacks and colour variables
   from css/style.css, so a component works wherever style.css is loaded.

   THEME: the site ships DARK ONLY (:root { color-scheme: dark; }, no light
   theme, no data-theme toggle). All colours below are derived from the
   site's variables, so diagrams follow the site theme automatically. The
   html[data-theme="light"] block at the end is DORMANT future-proofing: it
   only activates if the site ever gains a light theme. It is deliberately
   NOT tied to prefers-color-scheme, because that would paint light
   diagrams onto today's dark-only site for users whose OS is set to light.

   ACCENT: the site's "brass" variables are aliased to CYAN (#1ec8e6) in
   style.css — the approved look is dark/cyan, not dark/gold. This file
   follows the site (var(--cyan) / var(--brass-soft)), it does not invent
   a gold palette.

   FIGURE INTEGRATION: a component replaces the <img> INSIDE the existing
   <figure class="doc-figure">, so the page's <figcaption> is preserved
   untouched. .doc-figure is a WHITE card (built for white PNGs); the
   :has() rule below re-skins it as a dark panel whenever it contains an
   inline diagram. The staging script additionally adds the class
   .inline-diagram-figure to the figure as a fallback for engines without
   :has() support. Either mechanism alone is sufficient.

   COMPONENT ROOTS ACTUALLY DELIVERED (Workers 2/3, Dec 6): the :has()
   re-skin below covers every root class the delivered components use —
   .inline-diagram (this framework), .diagram (the site's pre-existing
   combiner-diagram class, reused by 7 components), and the self-styled
   .nvq-arch / .nvq-comb / .nvq-env / .nvq-ks roots (4 components, each
   carrying its own <style> block — see "Known divergence" in the
   APPLY-PLAN; those <style> blocks work but duplicate per insertion and
   are candidates for migration into this file).

   CLASS CATALOGUE (the only classes component authors should need):
     .inline-diagram                  root wrapper (a <div> in place of <img>)
     .inline-diagram__eyebrow         mono uppercase kicker above a title
     .inline-diagram__title           diagram title
     .inline-diagram__lede            short intro line under the title
     .inline-diagram__flow            horizontal flow row (flex)
     .inline-diagram__flow--vertical  vertical flow (steps stack, arrows down)
     .inline-diagram__step            one box/node in a flow
       --accent | --ok | --warn | --muted   node emphasis modifiers
     .inline-diagram__step-tag        mono eyebrow inside a step (e.g. SLOT 1)
     .inline-diagram__step-title      step heading
     .inline-diagram__step-text       step body copy
     .inline-diagram__step-spec       mono spec line inside a step
     .inline-diagram__arrow           connector between steps (text: ->)
     .inline-diagram__inputs          grid of input boxes feeding a join
     .inline-diagram__join            full-width combiner bar (e.g. HKDF-SHA-384)
     .inline-diagram__output          result box below a join
     .inline-diagram__grid            generic grid of boxes
       --cols-2 | --cols-4            column-count modifiers (default 3)
     .inline-diagram__table-wrap      horizontal-scroll wrapper for tables
     table.inline-diagram__table      semantic table, site-styled
     .inline-diagram__callout         fact row / callout bar (--warn | --ok)
     .inline-diagram__fact-row        key/value row (mono value, like .env-row)
     .inline-diagram__note            footer note area inside a diagram
     .inline-diagram__legend          legend row
     .inline-diagram__swatch          colour swatch inside a legend item
     .inline-diagram__svg             wrapper for an inline <svg> diagram
     .inline-diagram__caption         small caption inside a diagram

   REUSE FROM style.css (do NOT redefine these inside components):
     .pill .pill-ok .pill-pending .pill-open   status pills
     .mono                                     IBM Plex Mono
     code (inside .doc-body)                   inline code chips

   ACCESSIBILITY: components that are readable text (flows, tables) carry
   NO role="img" — the page <figcaption> already describes the figure.
   A pure inline-SVG component gets role="img" + aria-label on the <svg>,
   using the replaced <img>'s alt text, plus a <title> inside the svg.
   ========================================================================== */

/* ---------- Diagram palette: aliases of the site variables -----------------
   Defined on :root so both .inline-diagram and the re-skinned .doc-figure
   can use them. Every value tracks the site theme; nothing is hard-coded
   to a light-only or dark-only palette here. ------------------------------ */
:root {
  --idg-bg: var(--panel);
  --idg-bg-2: var(--bg-2);
  --idg-bg-sunken: var(--bg-sunken);
  --idg-ink: var(--ink);
  --idg-ink-2: var(--ink-2);
  --idg-ink-3: var(--ink-3);
  --idg-line: var(--line);
  --idg-line-strong: var(--line-strong);
  --idg-accent: var(--cyan);
  --idg-accent-hi: var(--cyan-hi);
  --idg-accent-soft: var(--brass-soft);
  --idg-ok: var(--teal);
  --idg-ok-soft: var(--teal-soft);
  --idg-warn: var(--warn);
  --idg-warn-soft: rgba(245, 181, 68, 0.10);
  --idg-radius: var(--radius);
}

/* ---------- White-card figure -> dark panel when it holds a diagram -------
   Triggered by ANY component root class actually delivered (see header):
   .inline-diagram (this framework), .diagram (site class, reused by 7
   components), .nvq-arch / .nvq-comb / .nvq-env / .nvq-ks (self-styled
   roots). .diagram never appears inside a .doc-figure anywhere else on
   the site, so the :has() scope cannot misfire. -------------------------- */
.doc-figure:has(> .inline-diagram),
.doc-figure:has(.inline-diagram),
.doc-figure:has(> .diagram),
.doc-figure:has(> .nvq-arch),
.doc-figure:has(> .nvq-comb),
.doc-figure:has(> .nvq-env),
.doc-figure:has(> .nvq-ks),
.doc-figure.inline-diagram-figure {
  background: var(--idg-bg);
  border-color: var(--idg-line);
  padding: 1.25rem 1.25rem 1rem; /* keep the .doc-figure rhythm */
}
.doc-figure:has(> .inline-diagram) figcaption,
.doc-figure:has(.inline-diagram) figcaption,
.doc-figure:has(> .diagram) figcaption,
.doc-figure:has(> .nvq-arch) figcaption,
.doc-figure:has(> .nvq-comb) figcaption,
.doc-figure:has(> .nvq-env) figcaption,
.doc-figure:has(> .nvq-ks) figcaption,
.doc-figure.inline-diagram-figure figcaption {
  color: var(--idg-ink-2);
}
.doc-figure:has(> .inline-diagram) figcaption strong,
.doc-figure:has(.inline-diagram) figcaption strong,
.doc-figure:has(> .diagram) figcaption strong,
.doc-figure:has(> .nvq-arch) figcaption strong,
.doc-figure:has(> .nvq-comb) figcaption strong,
.doc-figure:has(> .nvq-env) figcaption strong,
.doc-figure:has(> .nvq-ks) figcaption strong,
.doc-figure.inline-diagram-figure figcaption strong {
  color: var(--idg-ink);
}
.doc-figure:has(> .inline-diagram) figcaption code,
.doc-figure:has(.inline-diagram) figcaption code,
.doc-figure:has(> .diagram) figcaption code,
.doc-figure:has(> .nvq-arch) figcaption code,
.doc-figure:has(> .nvq-comb) figcaption code,
.doc-figure:has(> .nvq-env) figcaption code,
.doc-figure:has(> .nvq-ks) figcaption code,
.doc-figure.inline-diagram-figure figcaption code {
  color: var(--idg-accent-hi);
}

/* ---------- Root wrapper --------------------------------------------------- */
.inline-diagram {
  background: var(--idg-bg);
  border: 1px solid var(--idg-line);
  border-radius: 20px; /* matches .diagram / .evidence / .glance */
  padding: 2rem;
  color: var(--idg-ink);
  min-width: 0;
}
.inline-diagram > :last-child { margin-bottom: 0; }

/* ---------- Headings inside a diagram -------------------------------------- */
.inline-diagram__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--idg-accent);
  font-weight: 600;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
}
.inline-diagram__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--idg-ink);
  margin: 0 0 0.6rem;
}
.inline-diagram__lede {
  color: var(--idg-ink-2);
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
  max-width: 44rem;
}

/* ---------- Flow diagrams: boxes + arrow connectors ------------------------ */
.inline-diagram__flow {
  display: flex;
  gap: 0.9rem;
  align-items: stretch;
}
.inline-diagram__flow--vertical {
  flex-direction: column;
  align-items: stretch;
}
.inline-diagram__step {
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid var(--idg-line-strong);
  border-radius: 12px; /* matches .d-node */
  padding: 1.4rem;
  background: var(--idg-bg-2);
  transition: border-color 0.18s ease;
}
.inline-diagram__step:hover { border-color: var(--idg-ink-3); }
.inline-diagram__step--accent {
  border-color: var(--idg-accent);
  background: linear-gradient(180deg, var(--idg-accent-soft), var(--idg-bg-2) 60%);
}
.inline-diagram__step--ok {
  border-color: var(--idg-ok);
  background: linear-gradient(180deg, var(--idg-ok-soft), var(--idg-bg-2) 60%);
}
.inline-diagram__step--warn {
  border-color: var(--idg-warn);
  background: linear-gradient(180deg, var(--idg-warn-soft), var(--idg-bg-2) 60%);
}
.inline-diagram__step--muted { opacity: 0.75; }
.inline-diagram__step-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--idg-accent);
  font-weight: 600;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.45rem;
}
.inline-diagram__step--ok .inline-diagram__step-tag { color: var(--idg-ok); }
.inline-diagram__step--warn .inline-diagram__step-tag { color: var(--idg-warn); }
.inline-diagram__step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--idg-ink);
  margin: 0 0 0.35rem;
  letter-spacing: -0.01em;
}
.inline-diagram__step-text {
  margin: 0;
  font-size: 0.88rem;
  color: var(--idg-ink-2);
  line-height: 1.55;
}
.inline-diagram__step-spec {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--idg-ink-3);
  margin-top: 0.65rem;
  display: block;
  overflow-wrap: anywhere;
}
.inline-diagram__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: var(--idg-ink-3);
  font-size: 1.25rem;
  font-family: var(--font-mono);
  padding: 0 0.1rem;
  /* Markup carries the glyph (e.g. &rarr;). Vertical flows rotate it. */
}
.inline-diagram__flow--vertical .inline-diagram__arrow {
  transform: rotate(90deg);
  padding: 0.1rem 0;
}

/* ---------- Fan-in / combiner pattern (inputs -> join -> output) ----------- */
.inline-diagram__inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.9rem;
}
.inline-diagram__join {
  margin: 0.9rem 0;
  border: 1px solid var(--idg-accent);
  border-radius: 999px;
  background: var(--idg-accent-soft);
  color: var(--idg-accent-hi);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 0.7rem 1rem;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}
.inline-diagram__output {
  border: 1px solid var(--idg-line-strong);
  border-radius: 12px;
  background: var(--idg-bg-2);
  padding: 1.4rem;
}
.inline-diagram__output .inline-diagram__step-tag { margin-bottom: 0.45rem; }

/* ---------- Generic grid of boxes ------------------------------------------ */
.inline-diagram__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.inline-diagram__grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.inline-diagram__grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Semantic tables -------------------------------------------------
   Mirrors the site's table styling (thead mono uppercase, row hover,
   .table-scroll pattern). The site sets a GLOBAL table { min-width: 40rem };
   the scoped override below (34rem) keeps phone tables scrollable instead
   of blowing the page out. Always wrap the table in
   .inline-diagram__table-wrap. -------------------------------------------- */
.inline-diagram__table-wrap {
  overflow-x: auto;
  border: 1px solid var(--idg-line);
  border-radius: var(--idg-radius);
  background: var(--idg-bg);
}
.inline-diagram__table-wrap .inline-diagram__table { margin: 0; }
table.inline-diagram__table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem; /* scrolls inside the wrapper below this width */
}
.inline-diagram__table th,
.inline-diagram__table td {
  text-align: left;
  padding: 1rem 1.25rem;
  vertical-align: top;
}
.inline-diagram__table thead th {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--idg-ink-3);
  border-bottom: 1px solid var(--idg-line-strong);
  font-weight: 600;
  text-transform: uppercase;
  background: var(--idg-bg-2);
}
.inline-diagram__table tbody tr { transition: background 0.12s ease; }
.inline-diagram__table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.inline-diagram__table tbody tr + tr td { border-top: 1px solid var(--idg-line); }
.inline-diagram__table td { color: var(--idg-ink-2); line-height: 1.6; }
.inline-diagram__table td strong { color: var(--idg-ink); }
.inline-diagram__table td:first-child {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--idg-accent-hi);
  white-space: nowrap;
}
.inline-diagram__table td:first-child .mono { font-weight: 600; }

/* ---------- Callouts, fact rows, notes, legends ---------------------------- */
.inline-diagram__callout {
  margin: 1.25rem 0 0;
  border: 1px solid var(--idg-line);
  border-left: 3px solid var(--idg-accent);
  background: var(--idg-bg-2);
  border-radius: 0 12px 12px 0; /* matches .doc-callout */
  padding: 1.2rem 1.5rem;
  color: var(--idg-ink-2);
  font-size: 0.95rem;
  line-height: 1.6;
}
.inline-diagram__callout strong { color: var(--idg-ink); display: block; margin-bottom: 0.3rem; }
.inline-diagram__callout--warn { border-left-color: var(--idg-warn); }
.inline-diagram__callout--ok { border-left-color: var(--idg-ok); }
.inline-diagram__callout p { margin: 0; }
.inline-diagram__fact-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--idg-line);
  font-size: 0.92rem;
}
.inline-diagram__fact-row:last-child { border-bottom: none; }
.inline-diagram__fact-row .k { color: var(--idg-ink-3); flex-shrink: 0; }
.inline-diagram__fact-row .v {
  text-align: right;
  overflow-wrap: anywhere;
  color: var(--idg-accent-hi);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.inline-diagram__note {
  margin-top: 1.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--idg-line);
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.inline-diagram__note > div { flex: 1 1 16rem; min-width: 0; }
.inline-diagram__note strong { color: var(--idg-ink); display: block; margin-bottom: 0.3rem; font-size: 0.98rem; }
.inline-diagram__note p { margin: 0; font-size: 0.92rem; color: var(--idg-ink-2); line-height: 1.6; }
.inline-diagram__legend {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin: 1.25rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--idg-ink-2);
}
.inline-diagram__legend span { display: inline-flex; align-items: center; gap: 0.45rem; }
.inline-diagram__swatch {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 3px;
  flex: none;
  background: var(--idg-accent);
}
.inline-diagram__swatch--ok { background: var(--idg-ok); }
.inline-diagram__swatch--warn { background: var(--idg-warn); }
.inline-diagram__swatch--muted { background: var(--idg-ink-3); }
.inline-diagram__caption {
  margin: 1.25rem 0 0;
  color: var(--idg-ink-3);
  font-size: 0.85rem;
  line-height: 1.55;
}

/* ---------- Inline SVG ------------------------------------------------------
   SVG text inherits the site fonts; shapes default to theme-aware strokes.
   Component authors: use currentColor / var(--idg-*) for fills and strokes
   so the SVG follows the theme instead of hard-coding colours. ------------ */
.inline-diagram__svg { min-width: 0; }
.inline-diagram__svg svg {
  display: block;
  width: 100%;
  height: auto;
}
.inline-diagram__svg svg text {
  font-family: var(--font-mono);
  font-size: 12px;
  fill: var(--idg-ink-2);
}
.inline-diagram__svg svg text.idg-svg-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  fill: var(--idg-ink);
}
.inline-diagram__svg svg .idg-svg-node {
  fill: var(--idg-bg-2);
  stroke: var(--idg-line-strong);
}
.inline-diagram__svg svg .idg-svg-node--accent {
  fill: var(--idg-accent-soft);
  stroke: var(--idg-accent);
}
.inline-diagram__svg svg .idg-svg-edge {
  stroke: var(--idg-ink-3);
  fill: none;
}

/* ---------- Grid blowout guard ----------------------------------------------
   Same guard style.css applies to its own grids: a bare 1fr track refuses
   to shrink below its widest child's min-content and blows the page out
   on phones. Let every grid/flex item shrink to zero. ---------------------- */
.inline-diagram__flow > *,
.inline-diagram__grid > *,
.inline-diagram__inputs > *,
.inline-diagram__note > * { min-width: 0; }

/* ---------- Responsive: collapse gracefully ----------------------------------
   Breakpoints mirror style.css: 56rem is the site's main collapse point,
   40rem the small-phone point. Flows stack vertically and arrows rotate
   to point down; grids go single-column; tables scroll inside their
   wrapper (never squeeze or reflow columns); padding tightens. ------------- */
@media (max-width: 56rem) {
  .inline-diagram { padding: 1.75rem; }
  .inline-diagram__flow { flex-direction: column; }
  .inline-diagram__arrow { transform: rotate(90deg); padding: 0.1rem 0; }
  .inline-diagram__flow--vertical .inline-diagram__arrow { transform: rotate(90deg); }
  .inline-diagram__grid,
  .inline-diagram__grid--cols-4 { grid-template-columns: 1fr 1fr; }
  .inline-diagram__grid--cols-2 { grid-template-columns: 1fr; }
  .inline-diagram__callout { padding: 1.1rem 1.25rem; }
  .inline-diagram__note { gap: 1.25rem; }
}
@media (max-width: 40rem) {
  .inline-diagram { padding: 1.25rem; border-radius: 16px; }
  .inline-diagram__step { padding: 1.1rem; }
  .inline-diagram__grid,
  .inline-diagram__grid--cols-2,
  .inline-diagram__grid--cols-4,
  .inline-diagram__inputs { grid-template-columns: 1fr; }
  .inline-diagram__fact-row { flex-direction: column; gap: 0.15rem; }
  .inline-diagram__fact-row .v { text-align: left; }
}

/* ---------- Site .diagram-flow variants (QA fix, Dec 6 2026) ---------------
   Four-node and two-node flows need wider grids than the site's default
   5-track .diagram-flow. These live HERE, not as inline styles: an inline
   grid-template-columns beats the site's ≤56rem collapse (an inline style
   wins over any stylesheet rule, media queries included), which left the
   flows 7 columns wide at phone width — the rotated .d-arrow bounding
   boxes then ran 717–1000px wide and pushed docs/absolute (+267),
   docs/fo-validity (+279), docs/system (+370), and docs/lifecycle (+355)
   past the viewport. The collapse below restores the intended behaviour. */
.diagram-flow--4 { grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; }
.diagram-flow--2 { grid-template-columns: 1fr auto 1fr; }
.diagram-flow--2col { grid-template-columns: 1fr 1fr; }
.diagram-flow--3col { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 56rem) {
  .diagram-flow--4,
  .diagram-flow--2,
  .diagram-flow--2col,
  .diagram-flow--3col { grid-template-columns: 1fr; }
}
/* Banner pills may wrap: the site's .pill is nowrap, and the ACSP gate
   banner ran 13px past the viewport at 390px. */
.diagram .pill--banner { white-space: normal; line-height: 1.6; }
/* .diagram-note children are flex items with flex-basis 16rem and the
   default min-width: auto, so a child cannot shrink below its min-content
   width — on docs/fo-validity.html the ML-KEM note child measured 333px
   inside a 250px container (+13 page overflow). min-width: 0 lets it
   shrink, and overflow-wrap lets the long mono test path break instead of
   poking out. Applies to all six components that use .diagram-note. */
.diagram-note > div { min-width: 0; overflow-wrap: break-word; }
.diagram-note .mono { overflow-wrap: anywhere; }

/* ---------- Light theme (DORMANT — see header) ------------------------------
   Activates ONLY when the site itself opts in with <html data-theme="light">.
   Deliberately not tied to prefers-color-scheme: the site is dark-only and
   must not render light diagrams on a dark page for light-OS users. -------- */
html[data-theme="light"] {
  --idg-bg: #ffffff;
  --idg-bg-2: #f1f5f9;
  --idg-bg-sunken: #f8fafc;
  --idg-ink: #0f172a;
  --idg-ink-2: #334155;
  --idg-ink-3: #64748b;
  --idg-line: #e2e8f0;
  --idg-line-strong: #cbd5e1;
  --idg-accent: #0e7490;      /* darkened cyan: keeps contrast on white */
  --idg-accent-hi: #0e7490;
  --idg-accent-soft: rgba(14, 116, 144, 0.08);
  --idg-ok: #047857;
  --idg-ok-soft: rgba(4, 120, 87, 0.08);
  --idg-warn: #b45309;
  --idg-warn-soft: rgba(180, 83, 9, 0.08);
}
html[data-theme="light"] .inline-diagram__table tbody tr:hover {
  background: rgba(15, 23, 42, 0.03);
}
html[data-theme="light"] .doc-figure:has(.inline-diagram),
html[data-theme="light"] .doc-figure:has(> .diagram),
html[data-theme="light"] .doc-figure:has(> .nvq-arch),
html[data-theme="light"] .doc-figure:has(> .nvq-comb),
html[data-theme="light"] .doc-figure:has(> .nvq-env),
html[data-theme="light"] .doc-figure:has(> .nvq-ks),
html[data-theme="light"] .doc-figure.inline-diagram-figure {
  background: var(--idg-bg);
}

/* ---------- Print ------------------------------------------------------------
   The site's print block flips the page to white; diagrams follow so they
   stay legible on paper instead of printing as dark blocks. ---------------- */
@media print {
  .inline-diagram {
    background: #fff;
    color: #0f172a;
    border-color: #cbd5e1;
    break-inside: avoid;
  }
  .inline-diagram__step,
  .inline-diagram__output { background: #f8fafc; border-color: #cbd5e1; }
  .inline-diagram__step-title,
  .inline-diagram__title { color: #0f172a; }
  .inline-diagram__step-text,
  .inline-diagram__lede { color: #334155; }
  .inline-diagram__table thead th { background: #f1f5f9; color: #475569; }
  .inline-diagram__table td { color: #334155; }
}
