/* The Budget Machine: shared styling for the hub page, the outcome pages and
 * the instrument pages.
 *
 * One stylesheet for all three on purpose. The hub, an outcome and an
 * instrument are the same page shape at three levels of detail, so a rule
 * written once here applies to all of them and cannot drift between copies.
 */

:root {
  --bm-white: #ffffff;
  --bm-bg: #f8fafc;
  --bm-subtle: #f1f5f9;
  --bm-border: #cbd5e1;
  --bm-border-dark: #94a3b8;
  --bm-text: #0f172a;
  --bm-muted: #475569;
  --bm-light: #64748b;
  --bm-accent: #0284c7;
  --bm-accent-hover: #0369a1;
  --bm-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  --bm-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  --bm-radius: 5px;
  --bm-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.12),
    0 4px 10px -2px rgba(15, 23, 42, 0.05);
}

/* ---- the page shell ----
 *
 * practice.css does not carry the site's base layout: every page that uses it
 * also writes its own copy of the body, container, header and footer rules in
 * an inline block. The three Budget Machine pages linked practice.css and had
 * no layout at all as a result, which is the bug this section fixes. The rules
 * below are the site's real shell, written once against this file's own
 * tokens so they also follow the dark theme rather than being hard-coded
 * light the way the inline copies are.
 */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--bm-font);
  background: var(--bm-bg);
  color: var(--bm-text);
  line-height: 1.5;
}

.bay { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

header {
  width: 100%;
  border-bottom: 1px solid var(--bm-border);
  position: sticky;
  top: 0;
  background: var(--bm-white);
  z-index: 50;
}
header .bay {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.brand-group { display: flex; align-items: center; gap: 1rem; }
.logo {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--bm-text);
}
.logo-icon { width: 22px; height: 22px; border-radius: var(--bm-radius); }

nav { display: flex; align-items: center; gap: 1.2rem; }
nav a, nav button {
  color: var(--bm-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}
nav a:hover, nav button:hover { color: var(--bm-accent); }

.page-section { padding: clamp(2.5rem, 5vw, 4rem) 0; }

h1 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin: 0 0 0.5rem;
  color: var(--bm-text);
  font-weight: 800;
  letter-spacing: -0.02em;
}
h2, h3, h4 { color: var(--bm-text); }

footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 2rem 0;
  font-family: var(--bm-mono);
  font-size: 0.78rem;
  text-align: center;
  border-top: 1px solid #334155;
  margin-top: 2rem;
}

/* ---- the title block every page in this family wears ---- */

.bm-title-block {
  border-left: 4px solid var(--bm-accent);
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin: 0 0 1.75rem;
}
.bm-title-block h1 { margin: 0 0 0.35rem; }
.bm-tagline {
  font-family: var(--bm-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bm-accent);
  margin: 0 0 0.5rem;
}
.bm-title-block .bm-lede {
  color: var(--bm-muted);
  max-width: 760px;
  margin: 0;
  font-size: 1rem;
}

/* ---- the folded how-to-use block ---- */

details.bm-howto {
  background: var(--bm-white);
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius);
  padding: 0.9rem 1.15rem;
  margin: 0 0 1.75rem;
}
details.bm-howto > summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--bm-text);
  font-size: 0.95rem;
}
details.bm-howto > summary:hover { color: var(--bm-accent); }
details.bm-howto h3 {
  font-family: var(--bm-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bm-light);
  margin: 1.1rem 0 0.4rem;
}
details.bm-howto ul { margin: 0; padding-left: 1.2rem; }
details.bm-howto li { margin: 0.3rem 0; color: var(--bm-muted); font-size: 0.93rem; }

/* ---- the Debt / GDP toggle ---- */

.bm-switch {
  display: flex;
  gap: 0;
  border: 1px solid var(--bm-border-dark);
  border-radius: var(--bm-radius);
  overflow: hidden;
  margin: 0 0 0.75rem;
  width: fit-content;
  max-width: 100%;
}
.bm-switch button {
  appearance: none;
  border: none;
  background: var(--bm-white);
  color: var(--bm-muted);
  font-family: var(--bm-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  height: 44px;
  line-height: 1;
}
.bm-switch button + button { border-left: 1px solid var(--bm-border-dark); }
.bm-switch button:hover { background: var(--bm-subtle); color: var(--bm-text); }
.bm-switch button[aria-pressed="true"] {
  background: var(--bm-accent);
  border-color: var(--bm-accent);
  color: var(--bm-white);
}

.bm-headline {
  background: var(--bm-white);
  border: 1px solid var(--bm-border);
  border-left: 4px solid var(--bm-accent);
  border-radius: var(--bm-radius);
  padding: 1.1rem 1.25rem;
  margin: 0 0 1.5rem;
}
.bm-headline .bm-headline-number {
  font-family: var(--bm-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--bm-text);
  margin: 0 0 0.4rem;
}
.bm-headline p { margin: 0.4rem 0 0; color: var(--bm-muted); font-size: 0.93rem; }
.bm-headline .bm-source {
  font-family: var(--bm-mono);
  font-size: 0.72rem;
  color: var(--bm-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.6rem;
}

/* ---- the sunburst ---- */

.bm-chart-card {
  background: var(--bm-white);
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius);
  box-shadow: var(--bm-shadow);
  padding: 1.25rem;
  margin: 0 0 1.5rem;
}
.bm-chart-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.bm-chart-head h2 {
  font-family: var(--bm-mono);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
}
.bm-chart-note { color: var(--bm-light); font-size: 0.85rem; margin: 0; }

.bm-sunburst-wrap { width: 100%; overflow-x: auto; }
.bm-sunburst { display: block; width: 100%; height: auto; min-width: 560px; margin: 0 auto; }
.bm-sunburst .bm-seg { cursor: pointer; transition: opacity 0.12s ease; }
.bm-sunburst .bm-seg:hover { opacity: 0.78; }
.bm-sunburst .bm-seg-stroke { stroke: var(--bm-white); stroke-width: 1.5; }
.bm-sunburst text { font-family: var(--bm-font); pointer-events: none; }
.bm-sunburst .bm-centre-name {
  font-family: var(--bm-mono);
  font-weight: 800;
  letter-spacing: 0.02em;
  fill: var(--bm-text);
}
.bm-sunburst .bm-centre-sub { fill: var(--bm-light); font-size: 15px; }
.bm-sunburst .bm-group-label {
  font-family: var(--bm-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  fill: #ffffff;
}
.bm-sunburst .bm-leaf-label { font-size: 12.5px; fill: var(--bm-text); }
.bm-sunburst a { text-decoration: none; }
.bm-sunburst a:focus-visible .bm-seg-stroke { stroke: var(--bm-text); stroke-width: 3; }

.bm-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.bm-legend li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--bm-muted);
}
.bm-legend .bm-dot {
  width: 11px; height: 11px; border-radius: 2px; flex: none;
}

/* ---- the dollar bars ---- */

.bm-bars { margin: 0; }
.bm-bar-group-name {
  font-family: var(--bm-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bm-light);
  margin: 1.25rem 0 0.5rem;
}
.bm-bar-group-name:first-child { margin-top: 0; }
.bm-bar-row {
  display: grid;
  grid-template-columns: minmax(130px, 220px) 1fr minmax(96px, auto);
  gap: 0.75rem;
  align-items: center;
  padding: 0.3rem 0;
}
.bm-bar-row a { color: var(--bm-text); text-decoration: none; font-size: 0.9rem; }
.bm-bar-row a:hover { color: var(--bm-accent); text-decoration: underline; }
.bm-bar-track {
  background: var(--bm-subtle);
  border-radius: 2px;
  height: 18px;
  overflow: hidden;
}
.bm-bar-fill { height: 100%; border-radius: 2px; }
.bm-bar-value {
  font-family: var(--bm-mono);
  font-size: 0.8rem;
  color: var(--bm-muted);
  text-align: right;
  white-space: nowrap;
}
.bm-noshape {
  margin: 1.25rem 0 0;
  padding: 0.9rem 1.1rem;
  background: var(--bm-subtle);
  border-radius: var(--bm-radius);
  font-size: 0.9rem;
  color: var(--bm-muted);
}
.bm-noshape strong { color: var(--bm-text); }

/* ---- group cards ---- */

.bm-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.1rem;
  margin: 0 0 1.5rem;
}
.bm-group-card {
  background: var(--bm-white);
  border: 1px solid var(--bm-border);
  border-top: 3px solid var(--bm-border-dark);
  border-radius: var(--bm-radius);
  box-shadow: var(--bm-shadow);
  padding: 1.1rem 1.25rem;
}
.bm-group-card h3 {
  font-family: var(--bm-mono);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 0.4rem;
}
.bm-group-card > p { color: var(--bm-muted); font-size: 0.9rem; margin: 0 0 0.8rem; }
.bm-group-card ul { margin: 0; padding: 0; list-style: none; }
.bm-group-card li { padding: 0.28rem 0; border-top: 1px solid var(--bm-subtle); }
.bm-group-card li:first-child { border-top: none; }
.bm-group-card li a {
  color: var(--bm-text);
  text-decoration: none;
  font-size: 0.91rem;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: baseline;
}
.bm-group-card li a:hover { color: var(--bm-accent); text-decoration: underline; }
.bm-group-card .bm-li-size {
  font-family: var(--bm-mono);
  font-size: 0.74rem;
  color: var(--bm-light);
  white-space: nowrap;
}

/* ---- instrument page ---- */

.bm-breadcrumb {
  font-family: var(--bm-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bm-light);
  margin: 0 0 1rem;
}
.bm-breadcrumb a { color: var(--bm-accent); text-decoration: none; }
.bm-breadcrumb a:hover { text-decoration: underline; }

.bm-factbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--bm-border);
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius);
  overflow: hidden;
  margin: 0 0 1.5rem;
}
.bm-fact { background: var(--bm-white); padding: 0.85rem 1rem; }
.bm-fact dt {
  font-family: var(--bm-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bm-light);
  margin: 0 0 0.3rem;
}
.bm-fact dd { margin: 0; font-size: 0.93rem; color: var(--bm-text); font-weight: 600; }

.bm-pill {
  display: inline-block;
  font-family: var(--bm-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}
.bm-pill-solid { background: #dcfce7; color: #166534; }
.bm-pill-approximate { background: #fef9c3; color: #854d0e; }
.bm-pill-unverified { background: #fee2e2; color: #991b1b; }

.bm-caveat {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #d97706;
  border-radius: var(--bm-radius);
  padding: 0.9rem 1.1rem;
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
  color: #78350f;
}
.bm-caveat strong { display: block; margin-bottom: 0.25rem; }

.bm-section {
  background: var(--bm-white);
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius);
  box-shadow: var(--bm-shadow);
  padding: 1.25rem 1.4rem;
  margin: 0 0 1.25rem;
}
.bm-section h2 {
  font-family: var(--bm-mono);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.7rem;
  color: var(--bm-accent);
}
.bm-section p { margin: 0; color: var(--bm-text); font-size: 0.98rem; line-height: 1.65; }
.bm-section.bm-mine { border-left: 4px solid #16a34a; }
.bm-section.bm-mine h2 { color: #15803d; }

.bm-watch {
  background: var(--bm-subtle);
  border-radius: var(--bm-radius);
  padding: 1rem 1.2rem;
  margin: 0 0 1.5rem;
}
.bm-watch h2 {
  font-family: var(--bm-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bm-light);
  margin: 0 0 0.35rem;
}
.bm-watch p { margin: 0; font-size: 0.95rem; color: var(--bm-text); }

.bm-siblings {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
}
.bm-siblings a {
  font-size: 0.85rem;
  color: var(--bm-muted);
  text-decoration: none;
  border: 1px solid var(--bm-border);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  background: var(--bm-white);
}
.bm-siblings a:hover { color: var(--bm-accent); border-color: var(--bm-accent); }
.bm-siblings a[aria-current="page"] {
  background: var(--bm-text);
  border-color: var(--bm-text);
  color: var(--bm-white);
}

.bm-status { color: var(--bm-muted); font-size: 0.95rem; }

@media (max-width: 640px) {
  .bm-bar-row { grid-template-columns: 1fr; gap: 0.2rem; }
  .bm-bar-value { text-align: left; }
  .bm-switch { width: 100%; }
  .bm-switch button { flex: 1; padding: 0.7rem 0.6rem; }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bm-white: #111827;
    --bm-bg: #0b1220;
    --bm-subtle: #1f2937;
    --bm-border: #334155;
    --bm-border-dark: #475569;
    --bm-text: #e5e7eb;
    --bm-muted: #cbd5e1;
    --bm-light: #94a3b8;
    --bm-accent: #38bdf8;
    --bm-accent-hover: #0ea5e9;
    --bm-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.5);
  }
  :root:not([data-theme="light"]) .bm-pill-solid { background: #14532d; color: #bbf7d0; }
  :root:not([data-theme="light"]) .bm-pill-approximate { background: #713f12; color: #fef08a; }
  :root:not([data-theme="light"]) .bm-pill-unverified { background: #7f1d1d; color: #fecaca; }
  :root:not([data-theme="light"]) .bm-caveat {
    background: #27200c; border-color: #92400e; color: #fde68a;
  }
  :root:not([data-theme="light"]) .bm-sunburst .bm-seg-stroke { stroke: #111827; }
}

/* ---- the rules a president has to work inside ----
 *
 * These cards stack full width rather than sitting in the group grid: each
 * one holds several rules that open into real paragraphs, so a narrow column
 * would make them unreadable.
 */

.bm-rule-card { margin-bottom: 1.1rem; }
.bm-rule-card > h3 { font-size: 0.95rem; }

details.bm-rule {
  border-top: 1px solid var(--bm-border);
  padding: 0.55rem 0;
}
details.bm-rule:first-of-type { border-top: 1px solid var(--bm-border-dark); }
details.bm-rule > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}
details.bm-rule > summary::-webkit-details-marker { display: none; }
details.bm-rule > summary::before {
  content: "+";
  font-family: var(--bm-mono);
  font-weight: 700;
  color: var(--bm-accent);
  flex: none;
  width: 0.9em;
}
details.bm-rule[open] > summary::before { content: "\2212"; }
details.bm-rule > summary:hover .bm-rule-text { color: var(--bm-accent); }
.bm-rule-text {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--bm-text);
  line-height: 1.5;
}
details.bm-rule h4 {
  font-family: var(--bm-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bm-light);
  margin: 0.9rem 0 0.25rem;
  padding-left: 1.5em;
}
details.bm-rule > p {
  margin: 0;
  padding-left: 1.5em;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--bm-muted);
}
details.bm-rule .bm-rule-source {
  font-family: var(--bm-mono);
  font-size: 0.72rem;
  color: var(--bm-light);
  margin-top: 0.8rem;
  padding-bottom: 0.3rem;
}

/* ---- the four questions: the link block on the wheel page ----
 *
 * This sits directly above the note listing the parts that carry no dollar
 * figure, because that is the point where a reader has just seen the real
 * sizes and starts asking why the number moves at all.
 */

.bm-ask {
  margin: 1.5rem 0 0;
  padding: 1.1rem 1.25rem;
  background: var(--bm-white);
  border: 1px solid var(--bm-border);
  border-left: 4px solid #6d28d9;
  border-radius: var(--bm-radius);
}
.bm-ask-head {
  font-family: var(--bm-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bm-light);
  margin: 0 0 0.75rem;
}
.bm-ask-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.6rem;
}
.bm-ask-grid a {
  display: block;
  text-decoration: none;
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius);
  padding: 0.7rem 0.85rem;
  background: var(--bm-bg);
}
.bm-ask-grid a:hover { border-color: #6d28d9; background: var(--bm-subtle); }
.bm-ask-title {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--bm-text);
  margin-bottom: 0.2rem;
}
.bm-ask-q { display: block; font-size: 0.84rem; color: var(--bm-muted); line-height: 1.45; }
.bm-ask-all { margin: 0.85rem 0 0; font-size: 0.88rem; }
.bm-ask-all a { color: var(--bm-accent); text-decoration: none; font-weight: 600; }
.bm-ask-all a:hover { text-decoration: underline; }

/* The thirteen parts with no dollar figure. These used to run as one long
 * line separated by dots, which read as a wall and wrapped differently at
 * every window width. A grid puts them in even rows instead.
 */
.bm-noshape-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 0.3rem 1rem;
  margin-top: 0.7rem;
}
.bm-noshape-grid a {
  color: var(--bm-accent);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 0.1rem 0;
}
.bm-noshape-grid a:hover { text-decoration: underline; }

/* ---- the questions page itself ---- */

.bm-jump {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.6rem;
  margin: 0 0 2rem;
}
.bm-jump a {
  text-decoration: none;
  color: var(--bm-text);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--bm-border);
  border-top: 3px solid #6d28d9;
  border-radius: var(--bm-radius);
  padding: 0.7rem 0.85rem;
  background: var(--bm-white);
}
.bm-jump a:hover { color: var(--bm-accent); border-color: var(--bm-accent); }

.bm-question {
  margin: 0 0 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--bm-border);
}
.bm-question:last-of-type { border-bottom: none; }
.bm-question .bm-tagline { margin-bottom: 0.3rem; }
.bm-question-head {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0 0 1.1rem;
  color: var(--bm-text);
}
.bm-question .bm-section h3 {
  font-family: var(--bm-mono);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.7rem;
  color: var(--bm-accent);
}
.bm-question .bm-section.bm-mine h3 { color: #15803d; }
.bm-question .bm-section p { margin: 0 0 0.9rem; }
.bm-question .bm-section p:last-child { margin-bottom: 0; }

.bm-answer-list { margin: 0 0 0.9rem; padding-left: 1.3rem; }
.bm-answer-list li {
  margin: 0.55rem 0;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--bm-text);
}

/* ---- a figures table ---- */

.bm-table-wrap { width: 100%; overflow-x: auto; margin: 0 0 0.9rem; }
.bm-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 380px;
  font-size: 0.93rem;
}
.bm-table th, .bm-table td {
  border: 1px solid var(--bm-border);
  padding: 0.55rem 0.8rem;
  text-align: left;
}
.bm-table thead th {
  background: var(--bm-subtle);
  font-family: var(--bm-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bm-light);
}
.bm-table tbody th { font-weight: 600; color: var(--bm-text); }
.bm-table td { font-family: var(--bm-mono); color: var(--bm-muted); }
.bm-table tr.bm-table-total th, .bm-table tr.bm-table-total td {
  background: var(--bm-subtle);
  font-weight: 700;
  color: var(--bm-text);
}

/* ---- the AI-generated badge ----
 *
 * The same shape as the front page's own eyebrow tag, rebuilt here against
 * this file's tokens so it follows the dark theme too. It says the page was
 * written by a program, which matters most on these pages: they are full of
 * real figures and a program can be wrong in a confident voice.
 */

.bm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bm-subtle);
  color: var(--bm-accent);
  font-family: var(--bm-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius);
  margin: 0.75rem 0 0;
}
.bm-title-block .bm-eyebrow + .bm-lede { margin-top: 0.85rem; }
