/* Vendored from bc-docs/site/core/assets/style.css at 2026-05-21
 * Extended with bc-specs-specific additions (wordmark-text, domain-diagram, dsl-*).
 * Be Civic renderer — brand tokens + layout. <300 LOC ceiling.
 * Tokens copied from bc-docs/style.css :root; layout adapted for the
 * renderer's three-column shell (no Mintlify selectors).
 */

@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand-gold: #fae042;
  --brand-red: #ed2939;
  --brand-black: #0a0a0a;
  --brand-white: #ffffff;
  --brand-cream: #f5f4ee;
  --brand-cream-soft: #d4d2cc;
  --brand-ink: #1a1a18;
  --brand-ink-body: #2a2a26;
  --brand-mute-light: #6a6a65;
  --brand-mute-dark: #888884;
  --brand-hairline-light: #ebe9e3;
  --brand-hairline-dark: #232321;
  --display: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --bg: var(--brand-white);
  --fg: var(--brand-ink);
  --fg-soft: var(--brand-ink-body);
  --mute: var(--brand-mute-light);
  --hair: var(--brand-hairline-light);
  --code-bg: #f3efe6;
  --code-border: #e8e3d6;
  --header-h: 56px;
}
html.dark {
  --bg: var(--brand-black);
  --fg: var(--brand-cream);
  --fg-soft: var(--brand-cream-soft);
  --mute: var(--brand-mute-dark);
  --hair: var(--brand-hairline-dark);
  --code-bg: #15151a;
  --code-border: #2a2a28;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* scroll-padding-top is set per-heading via scroll-margin-top; using both stacks. */
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-underline-offset: 2px; }
a:hover { text-decoration-color: var(--brand-gold); text-decoration-thickness: 2px; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 1.8em 0 0.5em;
  scroll-margin-top: 72px;
  color: var(--fg);
}
h1 { font-weight: 800; font-size: 2.4rem; line-height: 1.1; margin-top: 0.3em; letter-spacing: -0.025em; }
h2 { font-weight: 700; font-size: 1.65rem; margin-top: 2.2em; border-bottom: 1px solid var(--hair); padding-bottom: 0.35em; }
h3 { font-weight: 700; font-size: 1.2rem; margin-top: 1.8em; }
h4 { font-weight: 700; font-size: 1.02rem; margin-top: 1.4em; }
p, ul, ol, table { color: var(--fg-soft); }
code, pre, kbd, samp { font-family: var(--mono); }
code { background: var(--code-bg); padding: 0.15em 0.35em; border-radius: 3px; font-size: 0.88em; border: 1px solid var(--code-border); }
pre { background: var(--code-bg); padding: 1em 1.1em; overflow-x: auto; border-radius: 6px; border: 1px solid var(--code-border); font-size: 0.9em; line-height: 1.5; }
pre code { background: transparent; padding: 0; border: 0; font-size: inherit; }
table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: 0.95em; }
th, td { border: 1px solid var(--hair); padding: 0.5em 0.7em; text-align: left; vertical-align: top; }
th { background: color-mix(in srgb, var(--hair) 30%, transparent); font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--hair); margin: 2em 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand-gold); color: var(--brand-ink);
  padding: 0.5em 1em; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Top nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1em;
  padding: 0 1.25em; height: 56px;
  background: var(--bg); border-bottom: 1px solid var(--hair);
  backdrop-filter: saturate(180%) blur(6px);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}
.wordmark {
  display: inline-flex; align-items: center;
  text-decoration: none; flex-shrink: 0;
  height: 100%; padding: 0.4em 0;
}
.wordmark-img { display: block; height: 22px; width: auto; }
html.light .wordmark-dark, html.dark .wordmark-light { display: none; }
.search { flex: 1; max-width: 360px; margin: 0 auto; }
.search input {
  width: 100%; padding: 0.4em 0.8em;
  border: 1px solid var(--hair); border-radius: 4px;
  background: var(--bg); color: var(--fg); font: inherit;
}
.search input:focus { outline: 2px solid var(--brand-gold); outline-offset: 1px; }
.nav-actions { display: flex; align-items: center; gap: 0.75em; }
.theme-toggle {
  background: transparent; border: 1px solid var(--hair);
  color: var(--fg); width: 32px; height: 32px;
  border-radius: 4px; cursor: pointer; font-size: 1rem;
}
.theme-toggle:hover { border-color: var(--brand-gold); }
.nav-cta {
  font-size: 0.9rem; padding: 0.35em 0.8em;
  border: 1px solid var(--hair); border-radius: 4px; text-decoration: none;
}
.nav-cta:hover { border-color: var(--brand-gold); }
.nav-hamburger {
  display: none; background: transparent; border: 0;
  color: var(--fg); font-size: 1.5em; cursor: pointer;
}

/* ---------- Layout ---------- */
.layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 220px;
  gap: 2.5em; max-width: 1320px; margin: 0 auto; padding: 2.5em 1.75em;
}
.sidebar {
  position: sticky; top: 72px; align-self: start;
  max-height: calc(100vh - 88px); overflow-y: auto;
  font-size: 0.92em;
  padding-right: 0.5em;
}
.nav-group { margin-bottom: 1.75em; padding-top: 1.25em; border-top: 1px solid var(--hair); }
.nav-group:first-child { padding-top: 0; border-top: 0; }
.nav-group-label {
  font-family: var(--display); font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--mute); margin: 0 0 0.7em; border: 0; padding: 0;
}
.nav-group ul { list-style: none; padding: 0; margin: 0; }
.nav-group li { margin: 0.05em 0; }
.nav-group a {
  display: block; padding: 0.32em 0.55em; border-radius: 4px;
  color: var(--fg-soft); text-decoration: none;
  line-height: 1.4;
}
.nav-group a:hover { background: color-mix(in srgb, var(--brand-gold) 14%, transparent); color: var(--fg); }
.nav-group a[aria-current="page"] {
  color: var(--fg); font-weight: 600;
  text-decoration: underline solid var(--brand-gold);
  text-decoration-thickness: 2px; text-underline-offset: 4px;
  background: color-mix(in srgb, var(--brand-gold) 8%, transparent);
}
.nav-subgroup .nav-sub-label {
  display: block; font-size: 0.85em; color: var(--mute); margin: 0.6em 0 0.25em; font-weight: 600;
}
.nav-subgroup ul { padding-left: 0.8em; border-left: 1px solid var(--hair); margin-left: 0.4em; }

.main { min-width: 0; }
.breadcrumb { color: var(--mute); font-size: 0.85em; margin-bottom: 0.75em; letter-spacing: 0.01em; }
.breadcrumb a { color: var(--mute); text-decoration: none; }
.breadcrumb a:hover { color: var(--fg); text-decoration: underline solid var(--brand-gold); text-underline-offset: 3px; }
.status-badge {
  display: inline-block; font-family: var(--display); font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.08em; padding: 0.3em 0.65em;
  border-bottom: 2px solid var(--brand-gold); margin-bottom: 0.75em;
  color: var(--fg-soft);
  background: color-mix(in srgb, var(--brand-gold) 10%, transparent);
  border-radius: 3px 3px 0 0;
}
.status-stable { border-bottom-color: var(--hair); background: transparent; color: var(--fg); }
.status-beta { border-bottom-color: var(--brand-red); background: color-mix(in srgb, var(--brand-red) 8%, transparent); }
.status-draft { border-bottom-color: var(--hair); background: transparent; color: var(--mute); }

/* ---------- Requires subgraph (W3.4 + density-aware redesign) ----------
   Editorial civic infographic: hairline strokes, restrained colour, gold
   anchor at centre, hover path-highlight reveals lineage on dense graphs.
   Server (skill-graph.ts) sets data-density-tier on the <figure> and
   inline max-width/max-height on the SVG (natural-size cap) for compact
   and standard tiers — small graphs render small and don't dominate the
   column. graph-viewer.js mounts pan/zoom, fullscreen, minimap, and
   keyboard focus-pan based on the tier. */

:root {
  --node-central-fill: var(--brand-gold);
  --node-central-text: var(--brand-black);
  --node-central-stroke: color-mix(in srgb, var(--brand-black) 35%, transparent);
  --node-1-fill: var(--brand-white);
  --node-1-text: var(--brand-ink);
  --node-1-stroke: color-mix(in srgb, var(--brand-ink) 22%, transparent);
  --node-2-fill: color-mix(in srgb, var(--brand-cream) 60%, var(--bg));
  --node-2-text: var(--brand-ink-body);
  --node-2-stroke: color-mix(in srgb, var(--brand-ink) 14%, transparent);
  --edge-stroke: color-mix(in srgb, var(--brand-ink) 38%, transparent);
  --edge-arrow: var(--edge-stroke);
}
html.dark {
  --node-central-fill: var(--brand-gold);
  --node-central-text: var(--brand-black);
  --node-central-stroke: color-mix(in srgb, var(--brand-gold) 30%, transparent);
  --node-1-fill: color-mix(in srgb, var(--fg) 14%, var(--bg));
  --node-1-text: var(--fg);
  --node-1-stroke: color-mix(in srgb, var(--fg) 22%, transparent);
  --node-2-fill: color-mix(in srgb, var(--fg) 8%, var(--bg));
  --node-2-text: var(--fg);
  --node-2-stroke: color-mix(in srgb, var(--fg) 14%, transparent);
  --edge-stroke: var(--fg-soft);
  --edge-arrow: var(--fg-soft);
}

.requires-graph {
  position: relative;
  margin: 0 0 1.5em;
  padding: 0.7em 0.85em 0.55em;
  border: 1px solid var(--hair);
  border-radius: 3px;
  background: var(--bg);
  font-family: var(--body);
  font-size: 0.88rem;
  /* Hairline gold rule on the left edge — Belgian flag motif at restraint scale */
  box-shadow: inset 2px 0 0 var(--brand-gold);
}
.requires-graph[data-density-tier="dense"] { padding: 0.85em 1em 0.7em; }

.requires-graph-header {
  display: flex; align-items: baseline; gap: 0.6em;
  margin-bottom: 0.5em;
}
.requires-graph-eyebrow {
  font-family: var(--display); font-size: 0.66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--mute);
}
.requires-graph-tier-chip {
  font-family: var(--display); font-size: 0.6rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--mute);
  padding: 0.18em 0.55em;
  border: 1px solid var(--hair);
  border-radius: 999px;
  margin-left: auto;
}
.requires-graph-tier-chip[data-tier="dense"] {
  color: var(--brand-red);
  border-color: color-mix(in srgb, var(--brand-red) 35%, var(--hair));
}

/* Stage: SVG centers within. Server inlines max-width/max-height
   (= viewBox dims) on the SVG for non-dense tiers, so small graphs sit
   at natural size with breathing room rather than scaling up to fill. */
.requires-graph-stage {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: color-mix(in srgb, var(--brand-gold) 3%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hair) 60%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5em;
}
.requires-graph[data-density-tier="compact"]  .requires-graph-stage { min-height: 80px;  max-height: 200px; padding: 0.6em 0.8em; }
.requires-graph[data-density-tier="standard"] .requires-graph-stage { min-height: 240px; max-height: 380px; }
.requires-graph[data-density-tier="dense"]    .requires-graph-stage { height: 440px; padding: 0.4em; }

.requires-graph-stage svg {
  display: block;
  width: 100%;
  height: auto;
  cursor: default;
  font-family: var(--body);
}
.requires-graph[data-density-tier="standard"] .requires-graph-stage svg,
.requires-graph[data-density-tier="dense"]    .requires-graph-stage svg { cursor: grab; }
.requires-graph-stage svg.is-panning { cursor: grabbing; }

/* Node visual hierarchy. Inline `fill="var(--node-N-fill, #fallback)"`
   is set by skill-graph.ts so the SVG reads correctly in CSS-less
   contexts (MCP markdown surface) while CSS owns theme palette. */
.requires-graph svg .node path {
  transition: filter 140ms ease, opacity 200ms ease;
  vector-effect: non-scaling-stroke;
}
.requires-graph svg .node text {
  font-family: var(--body);
  font-weight: 500;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.requires-graph svg .node-central path {
  stroke: var(--node-central-stroke);
  stroke-width: 1;
  filter: drop-shadow(0 1px 0 color-mix(in srgb, var(--brand-black) 18%, transparent));
}
.requires-graph svg .node-central text { fill: var(--node-central-text); font-weight: 600; }
.requires-graph svg .node-1 path { stroke: var(--node-1-stroke); stroke-width: 0.8; }
.requires-graph svg .node-1 text { fill: var(--node-1-text); }
.requires-graph svg .node-2 path { stroke: var(--node-2-stroke); stroke-width: 0.8; }
.requires-graph svg .node-2 text { fill: var(--node-2-text); }

/* Edges. Graphviz emits the edge curve as <path fill="none" stroke="…"/>
   and the arrowhead as <polygon fill="…"/>. Keep fill semantics: only
   set fill on the polygon; the path stays unfilled. */
.requires-graph svg .edge path {
  stroke: var(--edge-stroke);
  stroke-width: 1.1;
  transition: opacity 200ms ease, stroke 160ms ease;
}
.requires-graph svg .edge polygon {
  fill: var(--edge-arrow);
  stroke: none;
  transition: opacity 200ms ease, fill 160ms ease;
}

/* Click-through affordance */
.requires-graph svg .node a { cursor: pointer; }
.requires-graph svg .node a:hover path {
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--brand-red) 50%, transparent));
  stroke: var(--brand-red);
  stroke-width: 1.5;
}
.requires-graph svg .node-central a:hover path {
  filter: drop-shadow(0 1px 0 color-mix(in srgb, var(--brand-black) 20%, transparent))
          drop-shadow(0 0 8px color-mix(in srgb, var(--brand-red) 45%, transparent));
}
.requires-graph svg .node a:focus-visible { outline: none; }
.requires-graph svg .node a:focus-visible path {
  stroke: var(--brand-red);
  stroke-width: 2.2;
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--brand-red) 60%, transparent));
}

/* Hover/focus path highlight (mounted by graph-viewer.js) */
.requires-graph.is-highlighting svg .node:not(.path-active) path,
.requires-graph.is-highlighting svg .node:not(.path-active) text { opacity: 0.22; }
.requires-graph.is-highlighting svg .edge:not(.path-active) path,
.requires-graph.is-highlighting svg .edge:not(.path-active) polygon { opacity: 0.18; }
.requires-graph.is-highlighting svg .node.path-active path {
  stroke: var(--brand-red); stroke-width: 1.6;
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--brand-red) 50%, transparent));
}
.requires-graph.is-highlighting svg .edge.path-active path,
.requires-graph.is-highlighting svg .edge.path-active polygon {
  stroke: var(--brand-red); fill: var(--brand-red); stroke-width: 1.6;
}

/* Floating control bar (standard + dense tiers) */
.requires-graph-controls {
  position: absolute; top: 0.6em; right: 0.6em;
  display: flex; gap: 0.3em;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--hair);
  border-radius: 4px;
  padding: 0.25em;
  z-index: 2;
}
.requires-graph-btn {
  appearance: none; background: transparent; border: 0;
  padding: 0.32em 0.5em;
  font-family: var(--display); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.04em; color: var(--fg-soft);
  cursor: pointer; border-radius: 3px; line-height: 1;
  display: inline-flex; align-items: center; gap: 0.3em;
  transition: background 120ms ease, color 120ms ease;
}
.requires-graph-btn:hover { background: color-mix(in srgb, var(--brand-red) 12%, transparent); color: var(--fg); }
.requires-graph-btn:focus-visible { outline: 2px solid var(--brand-red); outline-offset: 1px; }
.requires-graph-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.7; }

/* Minimap (dense only) */
.requires-graph-minimap {
  position: absolute; bottom: 0.6em; right: 0.6em;
  width: 140px; height: 90px;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  border: 1px solid var(--hair); border-radius: 4px;
  overflow: hidden; z-index: 2;
  box-shadow: 0 1px 4px color-mix(in srgb, var(--brand-black) 12%, transparent);
  cursor: pointer;
}
.requires-graph-minimap svg { width: 100%; height: 100%; display: block; pointer-events: none; }
.requires-graph-minimap .mm-viewport {
  fill: color-mix(in srgb, var(--brand-red) 18%, transparent);
  stroke: var(--brand-red); stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

/* Caption */
.requires-graph-caption {
  font-family: var(--display);
  font-size: 0.7rem;
  color: var(--mute);
  margin-top: 0.55em;
  display: flex; justify-content: space-between; gap: 1em;
}
.requires-graph-caption kbd {
  font-family: var(--mono); font-size: 0.66rem;
  background: color-mix(in srgb, var(--fg) 6%, transparent);
  border: 1px solid var(--hair); border-radius: 3px;
  padding: 0.05em 0.4em; color: var(--fg-soft);
}

/* Skip-graph link (a11y) */
.requires-graph-skip {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.requires-graph-skip:focus-visible {
  position: static; width: auto; height: auto;
  display: inline-block; margin-bottom: 0.5em;
  padding: 0.4em 0.8em;
  background: var(--brand-red); color: var(--brand-white);
  font-family: var(--display); font-size: 0.78rem; font-weight: 600;
  border-radius: 3px; text-decoration: none;
}

/* Fullscreen modal */
dialog.requires-graph-modal {
  width: min(96vw, 1400px); height: min(94vh, 900px);
  max-width: none; max-height: none; padding: 0;
  border: 1px solid var(--hair); border-radius: 8px;
  background: var(--bg); color: var(--fg);
  box-shadow: 0 20px 60px color-mix(in srgb, var(--brand-black) 35%, transparent);
}
dialog.requires-graph-modal::backdrop {
  background: color-mix(in srgb, var(--brand-black) 65%, transparent);
  backdrop-filter: blur(4px);
}
dialog.requires-graph-modal .requires-graph {
  margin: 0; height: 100%;
  display: flex; flex-direction: column;
  border: 0; border-radius: 8px;
  box-shadow: inset 4px 0 0 var(--brand-gold);
}
dialog.requires-graph-modal .requires-graph-stage {
  flex: 1; height: auto; max-height: none;
}
.requires-graph-modal-close {
  position: absolute; top: 0.8em; right: 0.6em; z-index: 5;
  background: var(--bg); border: 1px solid var(--hair) !important;
}

@media (prefers-reduced-motion: reduce) {
  .requires-graph svg .node path,
  .requires-graph svg .node text,
  .requires-graph svg .edge path,
  .requires-graph svg .edge polygon,
  .requires-graph-btn { transition: none; }
}
.page-title { font-size: 2.4rem; margin: 0.3em 0 0.6em; line-height: 1.1; letter-spacing: -0.025em; }
.lede { color: var(--fg-soft); font-size: 1.1em; line-height: 1.55; margin-bottom: 1.75em; max-width: 65ch; }
.content { max-width: 72ch; }
.content > p, .content > ul, .content > ol { max-width: 72ch; }

.toc { font-size: 0.88em; position: sticky; top: 72px; align-self: start; max-height: calc(100vh - 88px); overflow-y: auto; padding-left: 0.5em; border-left: 1px solid var(--hair); }
.toc-label {
  font-family: var(--display); font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--mute); border: 0; padding: 0; margin: 0 0 0.75em;
}
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0.35em 0; line-height: 1.4; }
.toc a { color: var(--mute); text-decoration: none; display: block; padding: 0.1em 0; }
.toc a:hover, .toc a.active { color: var(--fg); border-left: 2px solid var(--brand-gold); margin-left: -0.5em; padding-left: calc(0.5em - 2px); }
.toc a.active { background: color-mix(in srgb, var(--brand-gold) 12%, transparent); font-weight: 600; }

/* ---------- Callouts ---------- */
.callout {
  margin: 1.75em 0; padding: 1em 1.25em;
  border-left: 3px solid var(--brand-gold);
  background: color-mix(in srgb, var(--brand-gold) 7%, transparent);
  border-radius: 0 6px 6px 0;
}
.callout-warning { border-left-color: var(--brand-red); background: color-mix(in srgb, var(--brand-red) 6%, transparent); }
.callout-note { border-left-color: var(--mute); background: color-mix(in srgb, var(--hair) 35%, transparent); }
.callout-unverified { border-left-color: var(--mute); background: color-mix(in srgb, var(--hair) 35%, transparent); font-size: 0.92em; }
.callout-unverified strong:first-child { color: var(--mute); }
.callout > :first-child { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }
.callout strong:first-child { font-family: var(--display); font-weight: 700; }
.callout-tip pre { position: relative; white-space: pre-wrap; word-break: break-word; overflow-x: visible; padding-right: 4.5em; }
.copy-btn { position: absolute; top: 0.5em; right: 0.5em; font-family: var(--display); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.35em 0.7em; border-radius: 4px; background: color-mix(in srgb, var(--brand-gold) 22%, transparent); color: var(--fg); border: 1px solid var(--hair); cursor: pointer; transition: background 0.15s; }
.copy-btn:hover { background: color-mix(in srgb, var(--brand-gold) 38%, transparent); }
.copy-btn.copied { background: color-mix(in srgb, var(--brand-gold) 50%, transparent); border-color: var(--brand-gold); }

/* ---------- References ---------- */
.references { margin-top: 2.5em; padding-top: 1.5em; border-top: 1px solid var(--hair); font-size: 0.95em; }
.ref-list { list-style: none; padding: 0; }
.ref-list li { margin: 0.5em 0; padding-left: 1.5em; text-indent: -1.5em; }
.ref-num { font-weight: 700; color: var(--mute); }
.ref-id { font-size: 0.85em; color: var(--mute); }
.ref-meta { font-size: 0.85em; color: var(--mute); }
.ref-token { color: var(--fg-soft); text-decoration: none; }
.ref-token:hover { color: var(--brand-red); }
.mute { color: var(--mute); font-size: 0.9em; }

/* ---------- Skills index ---------- */
.skill-category { margin: 2em 0; }
.skill-category h2 { border-bottom: 1px solid var(--hair); }
.skill-list { list-style: none; padding: 0; }
.skill-row { padding: 0.75em 0; border-bottom: 1px solid var(--hair); }
.skill-link { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; text-decoration: none; }
.skill-title { color: var(--fg); font-weight: 600; }
.skill-status {
  font-family: var(--display); font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--mute);
  padding: 0.1em 0.5em; border-radius: 3px; border: 1px solid var(--hair);
}
.skill-desc { color: var(--mute); font-size: 0.9em; margin: 0.3em 0 0; }

/* ---------- Path Directory (spec §20.11/§20.12) ---------- */
.path-meta-row { display: flex; gap: 0.6em; flex-wrap: wrap; align-items: center; margin-bottom: 0.6em; }
.path-purpose-badge {
  display: inline-block; font-family: var(--display); font-weight: 700;
  font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.2em 0.6em; border-radius: 3px;
  background: color-mix(in srgb, var(--brand-gold) 18%, transparent);
  color: var(--fg);
}
.path-purpose-badge[data-purpose="informational"] { background: color-mix(in srgb, var(--hair) 50%, transparent); color: var(--mute); }
.path-purpose-badge[data-purpose="check-only"] { background: color-mix(in srgb, var(--hair) 50%, transparent); color: var(--fg-soft); }
.path-themes { display: flex; flex-wrap: wrap; gap: 0.4em; margin: 0.6em 0 1.2em; }
.path-theme-chip {
  display: inline-block; font-size: 0.78rem;
  padding: 0.2em 0.65em; border: 1px solid var(--hair); border-radius: 999px;
  color: var(--fg-soft); text-decoration: none;
}
.path-theme-chip:hover { background: color-mix(in srgb, var(--brand-gold) 12%, transparent); color: var(--fg); }
.path-authority, .path-applies-to, .path-last-verified { margin: 0.3em 0; }
.path-sources { margin-top: 2em; }
.path-source-list { list-style: none; padding: 0; }
.path-source-item {
  margin: 1.25em 0; padding: 1em 1.25em;
  border: 1px solid var(--hair); border-radius: 6px;
  background: color-mix(in srgb, var(--hair) 18%, transparent);
}
.path-source-item > p { margin: 0.35em 0; }
.path-source-head { font-size: 1.02em; margin-bottom: 0.4em; }
.path-source-flag {
  margin-left: 0.6em; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--mute);
  padding: 0.1em 0.5em; border: 1px solid var(--hair); border-radius: 3px;
}
.path-source-actor { margin: 0.5em 0; }
.path-source-actor p { margin: 0.25em 0; }
.path-source-notes { margin-top: 0.6em; font-size: 0.88em; }
.path-source-caveat { margin: 0.6em 0; }
.path-source-separator {
  margin: 1em 0; font-family: var(--display); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--mute);
  text-align: center; position: relative;
}
.path-source-separator span {
  display: inline-block; padding: 0 1em;
  background: var(--bg); position: relative; z-index: 1;
}
.path-source-separator::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  border-top: 1px solid var(--hair);
}
.path-try-link {
  display: inline-block; margin-top: 0.5em;
  font-family: var(--display); font-weight: 700; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.45em 0.9em; border-radius: 4px;
  background: color-mix(in srgb, var(--brand-gold) 22%, transparent);
  color: var(--fg); text-decoration: none; border: 1px solid var(--hair);
}
.path-try-link:hover { background: color-mix(in srgb, var(--brand-gold) 38%, transparent); }
.path-try-tier1 { background: color-mix(in srgb, var(--brand-red) 14%, transparent); }
.path-try-tier1:hover { background: color-mix(in srgb, var(--brand-red) 22%, transparent); }
.path-source-tier1 { margin: 0.5em 0; }
.path-deprecated { margin-bottom: 1em; }
.path-required-by, .path-related-skills { margin-top: 2em; }
.path-skill-list { list-style: none; padding: 0; }
.path-skill-list li { padding: 0.4em 0; border-bottom: 1px solid var(--hair); }
.path-card-grid { list-style: none; padding: 0; display: grid; gap: 1em; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.path-card { padding: 0; }
.path-card-link {
  display: block; padding: 1em 1.1em;
  border: 1px solid var(--hair); border-radius: 6px;
  text-decoration: none; color: var(--fg);
  background: color-mix(in srgb, var(--hair) 12%, transparent);
}
.path-card-link:hover { background: color-mix(in srgb, var(--brand-gold) 10%, transparent); }
.path-card-title { margin: 0 0 0.35em; font-size: 1.08em; line-height: 1.3; }
.path-card-desc { margin: 0 0 0.6em; color: var(--fg-soft); font-size: 0.92em; line-height: 1.45; }
.path-card-meta { display: flex; gap: 0.5em; flex-wrap: wrap; align-items: center; }
.path-theme-index { margin: 1.5em 0 2.5em; }
.path-theme-index-list { list-style: none; padding: 0; display: grid; gap: 0.4em; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.path-theme-index-list li { padding: 0.4em 0.6em; border: 1px solid var(--hair); border-radius: 4px; }
.path-theme-section { margin: 2em 0; }
.path-theme-section h2 { border-bottom: 1px solid var(--hair); padding-bottom: 0.3em; }
.path-theme-section-list { list-style: none; padding: 0; }
.path-theme-section-list li { padding: 0.4em 0; display: flex; gap: 0.6em; align-items: center; justify-content: space-between; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 4em; padding-top: 1.5em; border-top: 1px solid var(--hair);
  color: var(--mute); font-size: 0.85em;
}
.site-footer a { color: var(--mute); }

/* ---------- Search results panel ---------- */
.search-results {
  position: fixed; top: 56px; right: 1em;
  width: min(420px, 90vw); max-height: 60vh; overflow-y: auto;
  background: var(--bg); border: 1px solid var(--hair);
  border-radius: 6px; padding: 0.5em; z-index: 50;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}
.search-results[hidden] { display: none; }
.search-result { display: block; padding: 0.6em; border-radius: 4px; text-decoration: none; }
.search-result:hover { background: color-mix(in srgb, var(--brand-gold) 12%, transparent); }
.search-result-title { color: var(--fg); font-weight: 600; }
.search-result-excerpt { color: var(--mute); font-size: 0.88em; }
.search-result-excerpt mark { background: var(--brand-gold); color: var(--brand-ink); padding: 0 0.2em; }

/* ---------- Community observations (round-7 §S19/S20) ---------- */
.observations { margin-top: 2.5em; padding-top: 1.5em; border-top: 1px solid var(--hair); }
.observations h2 { font-size: 1.25rem; margin-top: 0; margin-bottom: 1em; }
.observation { display: block; margin: 0 0 1em 0; padding: 0.85em 1em; background: var(--code-bg); border: 1px solid var(--code-border); border-radius: 4px; }
.observation-meta { font-size: 0.82em; color: var(--mute); margin-bottom: 0.4em; }
.observation-body { font-size: 0.95em; line-height: 1.5; color: var(--fg-soft); white-space: pre-wrap; }
.observation--hidden { padding: 0; background: transparent; border: 1px dashed var(--hair); }
.observation--hidden > summary { padding: 0.6em 1em; cursor: pointer; font-size: 0.88em; color: var(--mute); list-style: none; }
.observation--hidden > summary::-webkit-details-marker { display: none; }
.observation--hidden[open] > summary { border-bottom: 1px solid var(--hair); }
.observation--hidden[open] .observation-meta,
.observation--hidden[open] .observation-body { padding: 0 1em; }
.observation--hidden[open] .observation-body { padding-bottom: 0.85em; }

/* ---------- Mobile (375px) ---------- */
@media (max-width: 768px) {
  .layout { grid-template-columns: 1fr; gap: 1em; padding: 1.25em 1em; }
  .sidebar { display: none; position: fixed; top: 56px; left: 0; width: 82vw; height: calc(100vh - 56px); max-height: none; background: var(--bg); border-right: 1px solid var(--hair); padding: 1.5em; z-index: 50; box-shadow: 4px 0 18px rgba(0,0,0,0.12); }
  .sidebar.open { display: block; }
  .drawer-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 40; }
  .toc { display: none; }
  .site-nav { padding: 0 0.875em; gap: 0.5em; }
  .nav-hamburger { display: block; order: -1; padding: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
  .search { max-width: none; }
  .nav-cta { display: none; }
  .content, .content > p, .content > ul, .content > ol { max-width: 100%; }
  .page-title { font-size: 1.75rem; line-height: 1.15; }
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.3rem; margin-top: 1.6em; }
  h3 { font-size: 1.1rem; }
  pre { font-size: 0.85em; padding: 0.85em 0.95em; }
  .search-results { right: 0.5em; left: 0.5em; width: auto; }
}

/* ---------- Tablet (768px) ---------- */
@media (min-width: 769px) and (max-width: 1023px) {
  .layout { grid-template-columns: 230px minmax(0, 1fr); gap: 2em; padding: 2em 1.5em; }
  .toc { display: none; }
  .content, .content > p, .content > ul, .content > ol { max-width: 100%; }
}

/* ---------- Scrollbar theming (Firefox + WebKit) ---------- */
* { scrollbar-width: thin; scrollbar-color: var(--hair) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--hair); border-radius: 6px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); background-clip: padding-box; border: 2px solid transparent; }
::-webkit-scrollbar-corner { background: transparent; }

/* ============================================================
   bc-specs additions (not in bc-docs original)
   ============================================================ */

/* Wordmark text fallback (bc-specs has no SVG logo file) */
.wordmark-text {
  font-family: var(--display); font-weight: 800; font-size: 1.05rem;
  letter-spacing: -0.02em; color: var(--fg); text-decoration: none;
}
.wordmark-sub {
  font-weight: 600; font-size: 0.8em;
  color: var(--mute); margin-left: 0.2em;
}

/* ---------- DSL pill styles (bc-specs tokens) ----------
   These apply to the .dsl spans emitted by tokens.ts for
   <Skill>, <Path>, <Ref>, <Risk>, <VV> in spec markdown. */
.dsl {
  display: inline;
  font-size: 0.88em;
  font-family: var(--mono);
  border-radius: 3px;
  padding: 0.1em 0.45em;
  border: 1px solid var(--hair);
  background: color-mix(in srgb, var(--hair) 25%, transparent);
  color: var(--fg-soft);
  white-space: nowrap;
}
.dsl a {
  color: inherit;
  text-decoration: underline dotted;
  text-underline-offset: 2px;
}
.dsl a:hover { color: var(--brand-red); text-decoration-style: solid; }

.dsl-skill {
  border-color: color-mix(in srgb, var(--brand-gold) 40%, var(--hair));
  background: color-mix(in srgb, var(--brand-gold) 10%, transparent);
  color: var(--fg);
}
.dsl-path {
  border-color: color-mix(in srgb, var(--brand-red) 30%, var(--hair));
  background: color-mix(in srgb, var(--brand-red) 6%, transparent);
}
.dsl-ref {
  color: var(--mute);
  font-style: italic;
}
.dsl-vv {
  border-bottom: 1px dotted var(--brand-mute-light);
  background: transparent;
  border-left: 0; border-right: 0; border-top: 0;
  border-radius: 0;
  padding: 0;
  font-variant-numeric: tabular-nums;
}
/* <Risk> block (children-form) */
.dsl-risk {
  display: block;
  margin: 1.25em 0;
  padding: 0.85em 1em;
  background: color-mix(in srgb, var(--brand-gold) 10%, transparent);
  border-left: 3px solid var(--brand-gold);
  border-radius: 0 4px 4px 0;
}
/* <Risk /> inline */
span.dsl-risk {
  display: inline;
  border: 1px solid color-mix(in srgb, var(--brand-gold) 50%, var(--hair));
  background: color-mix(in srgb, var(--brand-gold) 12%, transparent);
  color: var(--fg);
  border-radius: 3px;
  padding: 0.1em 0.45em;
}

/* ---------- Domain diagram (DomainDiagram token) ---------- */
.domain-diagram {
  margin: 2em 0;
  border: 1px solid var(--hair);
  border-radius: 6px;
  background: color-mix(in srgb, var(--brand-gold) 3%, transparent);
  box-shadow: inset 2px 0 0 var(--brand-gold);
  padding: 1em;
  overflow: auto;
}
.domain-diagram svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  cursor: grab;
}
.domain-diagram svg.is-panning { cursor: grabbing; }
.domain-diagram figcaption {
  font-family: var(--display);
  font-size: 0.78rem;
  color: var(--mute);
  margin-top: 0.65em;
  text-align: center;
}
