/* =========================================================================
   Mithohne page styles. The page was published first as MathBridge at
   /mathbridge, and both the file and the URL now use the Mithohne name.
   Scoped to .mb-page so the rest of the site is unaffected. The `mb-` class
   prefix is kept from that first version; it is only an internal namespace.
   ========================================================================= */

/* Width intentionally inherited from the site-wide `.container` rule in
   style.css (width 80%, max-width 1000px, padding 20px) so this page matches
   every other page. Do not add a width/max-width here.
   Content fills that container, so all blocks share one left and right edge. */
.mb-page .mb-content {
  max-width: none;
  margin: 0;
}

/* ---------- Hero ---------- */

.mb-hero {
  padding-bottom: 8px;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 28px;
}

/* The hero and aside typography lives on <p> elements, so these selectors are
   written as `.mb-content p.<class>` to outrank the `.mb-content p` body rule
   (0,1,1). A bare `.mb-subtitle` (0,1,0) silently loses and gets body size. */
.mb-content p.mb-label {
  display: inline-block;
  margin: 0 0 12px;
  padding: 5px 11px;
  font-size: 0.82rem;
  font-weight: bold;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0b4fa8;
  background: #eaf2ff;
  border: 1px solid #c7dcff;
  border-radius: 999px;
}

.mb-title {
  margin: 0;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 3rem;
  line-height: 1.1;
  color: #111;
}

.mb-content p.mb-subtitle {
  margin: 6px 0 18px;
  font-size: 1.45rem;
  line-height: 1.35;
  font-weight: normal;
  color: #333;
}

.mb-content p.mb-lede {
  margin: 0 0 18px;
  font-size: 1.25rem;
  line-height: 1.6;
  color: #222;
}

/* The official slogan. Serif and accented, but left-aligned as a statement
   rather than centred as a banner. Scoped with `.mb-content p.` because
   `.mb-content p` (0,1,1) would otherwise reset the size. */
.mb-content p.mb-slogan {
  margin: 0 0 20px;
  padding: 8px 0 8px 16px;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.35;
  color: #0b4fa8; /* 7.78:1 on white */
  border-left: 4px solid #005fcc;
  hyphens: none;
  -webkit-hyphens: none;
  text-wrap: pretty;
}

/* The name explanation: available, not prominent. A closed <details> is one
   line, so the hero still reads as the start of a proposal. */
.mb-name {
  margin: 0 0 20px;
  padding: 0 16px;
  background: #fbfcfe;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.mb-content .mb-name > summary {
  padding: 11px 0;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.4;
  color: #0b4fa8; /* 7.78:1 on #fbfcfe */
  cursor: pointer;
  hyphens: none;
  -webkit-hyphens: none;
}

.mb-content .mb-name > summary:hover {
  color: #005fcc;
}

.mb-content .mb-name > summary:focus-visible {
  outline: 3px solid #0b4fa8;
  outline-offset: 2px;
  border-radius: 3px;
}

/* The figure and the name panels already carry their own framing, so pull
   them in a little inside the collapsed container. */
.mb-name .mb-wordplay {
  margin: 4px 0 16px;
}

.mb-name .mb-parts {
  margin: 14px 0 16px;
}

.mb-name-body {
  padding-bottom: 4px;
}

.mb-name-body > p:first-child {
  margin-top: 0;
}

/* ---------- Buttons ---------- */

/* The division of responsibility that the name stands for: what the AI does,
   and what the people do. Laid out as label/value rows rather than prose,
   because the pairing itself is the claim. */
.mb-division {
  margin: 0 0 22px;
  padding: 12px 18px 14px;
  background: #f7faff;
  border: 1px solid #c7dcff;
  border-left: 6px solid #005fcc;
  border-radius: 10px;
}

.mb-division-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 2px 14px;
  padding: 8px 0;
  border-top: 1px solid #dbe7f8;
}

.mb-division-row:first-child {
  padding-top: 2px;
  border-top: none;
}

.mb-content .mb-division-row dt {
  padding-top: 3px;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0b4fa8; /* 7.78:1 on #f7faff */
}

.mb-content .mb-division-row dd {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.55;
  color: #1f2937;
  hyphens: none;
  -webkit-hyphens: none;
  text-wrap: pretty;
}

/* Words that carry the etymology (MYTH, MITH) are read as units. */
.mb-word-nowrap {
  white-space: nowrap;
}

/* ---------- Buttons ---------- */

.mb-actions {
  margin: 0 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Layout only. All colour declarations live in the `.mb-content a.mb-button`
   rules below, because `.mb-content a` (0,1,1) outranks a bare `.mb-button`
   (0,1,0) and would otherwise repaint the button label blue on blue. */
.mb-button {
  display: inline-block;
  padding: 11px 20px;
  font-size: 1.05rem;
  font-weight: bold;
  line-height: 1.3;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid transparent;
}

.mb-content a.mb-button,
.mb-content a.mb-button:visited {
  /* #005fcc keeps white text at 5.98:1. The brand #0078ff only reaches 4.09:1
     and would fail WCAG AA at this text size. */
  background: #005fcc;
  border-color: #005fcc;
  color: #fff;
  text-decoration: none;
}

.mb-content a.mb-button:hover {
  background: #0b4fa8; /* 7.78:1 against white text */
  border-color: #0b4fa8;
  color: #fff;
  text-decoration: none;
}

.mb-content a.mb-button:focus-visible {
  outline: 3px solid #0b4fa8;
  outline-offset: 2px;
}

.mb-content a.mb-button-secondary,
.mb-content a.mb-button-secondary:visited {
  background: #fff;
  border-color: #0b4fa8;
  color: #0b4fa8; /* 7.78:1 against white */
}

.mb-content a.mb-button-secondary:hover {
  background: #eaf2ff;
  border-color: #0b4fa8;
  color: #0b4fa8;
}

/* ---------- Contents navigation ---------- */

/* Override the site-wide button styling for this in-page nav */
.mb-contents {
  margin: 0 0 36px;
  padding: 16px 20px;
  background: #fafafa;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
}

/* This is an <h2> but it is a nav label, not a section heading. A bare
   `.mb-contents-title` (0,1,0) loses to the later `.mb-content h2` (0,1,1) and
   would inherit the 1.8rem section-heading size with a divider rule, so the
   selector has to stay at least this specific. */
.mb-content h2.mb-contents-title {
  margin: 0 0 8px;
  padding-bottom: 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #555;
  border-bottom: none;
}

.mb-contents ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.mb-page .mb-contents a {
  display: inline;
  margin: 0;
  padding: 2px 0;
  background: none;
  border-radius: 0;
  color: #005fcc;
  font-size: 1.05rem;
  font-weight: normal;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.mb-page .mb-contents a:hover,
.mb-page .mb-contents a:focus-visible {
  background: none;
  color: #0b4fa8;
  transform: none;
  box-shadow: none;
  border-bottom-color: #0b4fa8;
}

/* ---------- Sections ---------- */

.mb-content section {
  margin-bottom: 44px;
  scroll-margin-top: 16px;
}

.mb-content h2 {
  margin: 0 0 14px;
  padding-bottom: 6px;
  font-size: 1.8rem;
  line-height: 1.25;
  color: #111;
  border-bottom: 1px solid #ececec;
}

.mb-content h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  line-height: 1.35;
  color: #111;
}

/* `hyphens: auto` is the main fix for uneven line breaks: long words like
   "representations" or "abstraction" no longer jump to the next line intact and
   leave a large gap. `text-wrap: pretty` then avoids orphans and single-word
   last lines. Both are progressive enhancements and degrade harmlessly. */
.mb-content p,
.mb-content li {
  font-size: 1.18rem;
  line-height: 1.65;
  color: #262626;
  hyphens: auto;
  -webkit-hyphens: auto;
  /* Only break words of at least 8 characters, keeping >=4 characters on each
     side, so ordinary words are never split. Unsupported in Safari (ignored). */
  hyphenate-limit-chars: 8 4 4;
  text-wrap: pretty;
}

.mb-content h1,
.mb-content h2,
.mb-content h3 {
  text-wrap: balance;
}

.mb-content p {
  margin: 0 0 14px;
}

.mb-content a {
  color: #005fcc;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mb-content a:hover {
  color: #0b4fa8;
}

.mb-content a:focus-visible {
  outline: 3px solid #0b4fa8;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Two outputs, side by side. Output 2 carries the accent because it is the
   distinctive claim of the project. */
.mb-outcomes {
  margin: 22px 0 20px;
  padding: 20px;
  background: #fbfcfe;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.mb-outcomes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 720px) {
  .mb-outcomes-grid {
    grid-template-columns: 1fr;
  }
}

.mb-outcome {
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #dde5ef;
  border-top: 4px solid #8296ad;
  border-radius: 8px;
}

.mb-outcome-key {
  background: #f4f8ff;
  border-color: #c7dcff;
  border-top-color: #005fcc;
}

/* Scoped with `.mb-content` so these outrank `.mb-content p` (0,1,1). */
.mb-content .mb-outcome h3 {
  margin: 0 0 6px;
}

/* Short measure inside a card: hyphenation adds noise instead of helping. */
.mb-content .mb-outcome p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: #3a3a3a;
  hyphens: none;
  -webkit-hyphens: none;
}

.mb-content .mb-outcome p.mb-outcome-step {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4d5f75;
}

/* The sentence tying the diagram to the research goal. Selector is scoped far
   enough to outrank `.mb-content p` without needing `!important`. */
.mb-content .mb-outcomes p.mb-outcome-goal {
  margin: 14px 0 0;
  padding: 12px 16px;
  font-size: 1.02rem;
  font-weight: bold;
  text-align: center;
  color: #0b4fa8;
  background: #eaf2ff;
  border: 1px dashed #a9c8f5;
  border-radius: 8px;
}

.mb-outcomes figcaption {
  margin-top: 14px;
  font-size: 1rem;
  line-height: 1.55;
  color: #555;
  /* Left-aligned, not centred: these captions run to several lines and a
     centred block would give every line a different starting edge. */
  text-align: left;
}

/* ---------- Vision: layered architecture sketch ---------- */

.mb-vision {
  margin: 22px 0 20px;
  padding: 20px;
  background: #fbfcfe;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.mb-layer {
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #dde5ef;
  border-radius: 8px;
}

.mb-layer + .mb-layer {
  margin-top: 10px;
}

.mb-content .mb-layer-title {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4d5f75;
  hyphens: none;
}

.mb-content .mb-layer-body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: #3a3a3a;
  hyphens: none;
  -webkit-hyphens: none;
}

/* Interfaces: three equal cells, one column on narrow screens. Explicit 3
   columns rather than `auto-fit`, so three items never leave a stranded cell. */
.mb-interfaces {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 720px) {
  .mb-interfaces {
    grid-template-columns: 1fr;
  }
}

.mb-interfaces span {
  padding: 10px 12px;
  font-size: 0.98rem;
  font-weight: bold;
  text-align: center;
  color: #0b4fa8;
  background: #f2f7ff;
  border: 1px solid #c7dcff;
  border-radius: 6px;
}

/* The engine carries the visual weight: AI-driven processing, not a wiki with
   an add-on assistant, is the central claim of the sketch. */
.mb-layer-engine {
  background: #005fcc;
  border-color: #005fcc;
  border-left: 6px solid #0b4fa8;
}

.mb-content .mb-layer-engine .mb-layer-title {
  color: #dbe8ff; /* 6.0:1 on #005fcc */
}

.mb-content .mb-layer-engine .mb-layer-body {
  font-size: 1.05rem;
  font-weight: bold;
  color: #fff; /* 5.98:1 on #005fcc */
}

/* Supporting layer drawn as a dashed band beneath the stack. */
.mb-layer-support {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 14px;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  color: #0b4fa8;
  background: #eaf2ff;
  border: 1px dashed #a9c8f5;
}

.mb-layer-support span + span::before {
  content: "+";
  margin-right: 14px;
  color: #0b4fa8;
}

.mb-vision figcaption {
  margin-top: 14px;
  font-size: 1rem;
  line-height: 1.55;
  color: #555;
  /* Left-aligned for the same reason as the two-output caption. */
  text-align: left;
}

/* ---------- Research direction cards ---------- */

.mb-cards {
  display: grid;
  /* 300px minimum yields 3 columns inside the site's 960px content box and
     collapses to 1 column on phones. */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.mb-card {
  padding: 18px 20px;
  background: #fbfcfe;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #0078ff;
  border-radius: 8px;
}

.mb-card p {
  margin: 0;
  max-width: none;
  font-size: 1.1rem;
  line-height: 1.6;
  /* Narrow measure: hyphenation adds noise instead of helping. */
  hyphens: none;
  -webkit-hyphens: none;
}

/* Direction 1 is the engine the other directions support, so it spans the
   full row and is tinted instead of sitting as one card among seven. */
.mb-card-engine {
  grid-column: 1 / -1;
  background: #eef4ff;
  border: 1px solid #c7dcff;
  border-left: 6px solid #005fcc;
}

/* A card that closes a grid rather than pairing with another one. Without
   this, an odd final card would leave an empty cell beside it. */
.mb-card-wide {
  grid-column: 1 / -1;
}

.mb-content .mb-card p.mb-card-kicker {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0b4fa8;
}

.mb-content .mb-card-engine h3 {
  font-size: 1.35rem;
}

/* ---------- Etymology: MYTH -> MITH ---------- */

.mb-wordplay {
  margin: 20px 0;
  padding: 18px 20px;
  background: #fbfcfe;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

/* Letters are individual tiles so the substitution is visible rather than
   described. The row stays centred, and wraps only if the viewport is too
   narrow for two four-letter words plus an arrow. */
.mb-wordplay-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
}

.mb-word {
  display: inline-flex;
  gap: 6px;
}

.mb-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 52px;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 1.5rem;
  font-weight: bold;
  color: #111;
  background: #fff;
  border: 1px solid #d7e2ef;
  border-radius: 6px;
}

/* The letter that is removed: muted and struck through.
   The letter that replaces it: filled with the accent colour. */
.mb-letter-out {
  color: #6b7280; /* 4.83:1 on #f4f6f9 */
  background: #f4f6f9;
  border-style: dashed;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.mb-letter-in {
  color: #fff; /* 5.98:1 on #005fcc */
  background: #005fcc;
  border-color: #005fcc;
}

.mb-wordplay-arrow {
  font-size: 1.4rem;
  line-height: 1;
  color: #0b4fa8;
}

/* The two letters that carry meaning are labelled underneath the tiles, so
   the substitution reads as an argument rather than as a riddle. */
.mb-wordplay-legend {
  display: grid;
  gap: 8px;
  /* Left-aligned with the caption below it, and capped so each entry keeps a
     readable measure under a diagram that is wider than the text. */
  max-width: 560px;
  margin: 16px 0 0;
}

.mb-legend-row {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
}

.mb-legend-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 0.95rem;
  font-weight: bold;
  border-radius: 4px;
}

.mb-legend-out {
  color: #6b7280; /* 4.83:1 on #f4f6f9 */
  background: #f4f6f9;
  border: 1px dashed #b9c4d2;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.mb-legend-in {
  color: #fff; /* 5.98:1 on #005fcc */
  background: #005fcc;
  border: 1px solid #005fcc;
}

.mb-content p.mb-legend-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
  hyphens: none;
  -webkit-hyphens: none;
  text-wrap: pretty;
}

.mb-wordplay figcaption {
  margin-top: 14px;
  font-size: 1rem;
  line-height: 1.55;
  color: #555;
  text-align: left;
}

/* The two halves of the name, side by side. Deliberately not tiles: the
   substitution is the diagram above, this is a reading of each part. */
.mb-parts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0 20px;
}

.mb-part {
  padding: 14px 18px 16px;
  background: #fbfcfe;
  border: 1px solid #e2e8f0;
  border-top: 4px solid #005fcc;
  border-radius: 8px;
}

.mb-content p.mb-part-word {
  margin: 0 0 6px;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 0.14em;
  color: #0b4fa8; /* 7.78:1 on #fbfcfe */
  hyphens: none;
  -webkit-hyphens: none;
}

.mb-content p.mb-part-gloss {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: #333;
  hyphens: none;
  -webkit-hyphens: none;
  text-wrap: pretty;
}

/* ---------- Research opportunity panel ---------- */

.mb-note-panel {
  margin: 18px 0 0;
  padding: 16px 18px;
  background: #fafafa;
  border: 1px solid #e4e4e4;
  border-left: 4px solid #8296ad;
  border-radius: 8px;
}

.mb-content .mb-note-panel h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

.mb-content .mb-note-panel p {
  margin: 0 0 10px;
  font-size: 1.02rem;
  line-height: 1.6;
  color: #3a3a3a;
  /* Narrow measure, and the sentences are short: no hyphenation. */
  hyphens: none;
  -webkit-hyphens: none;
}

.mb-content .mb-note-panel p:last-child {
  margin-bottom: 0;
}

/* Keeps the status of the panel from being read as a feature note. */
.mb-content .mb-note-panel p.mb-note-caveat {
  font-size: 0.95rem;
  font-style: italic;
  color: #555;
}

/* ---------- Historical note ---------- */

/* Small, muted, and set off by a rule: it is a footnote to the page, not a
   section of the argument. */
.mb-content p.mb-history {
  margin: 0 0 36px;
  padding-top: 14px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #6b7280; /* 4.83:1 on white */
  border-top: 1px solid #e6e6e6;
  hyphens: none;
  -webkit-hyphens: none;
}

/* The retired path is quoted inline; keep it from competing with the sentence. */
.mb-content p.mb-history code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  color: #4d5f75;
  background: #f4f6f9;
  padding: 1px 5px;
  border-radius: 3px;
  hyphens: none;
  -webkit-hyphens: none;
}

/* ---------- Related work and inspiration ---------- */

/* Smaller than body copy: this is a scope note about the list below, not part
   of the argument. Hyphenation is off because the measure is short. */
.mb-content p.mb-project-note {
  margin: 0 0 4px;
  font-size: 1rem;
  line-height: 1.55;
  color: #555;
  hyphens: none;
  -webkit-hyphens: none;
}

.mb-cards.mb-cards-projects {
  margin-top: 16px;
}

/* Column layout so "Explore Project" can be pinned to the bottom edge and all
   four links line up, whatever the description lengths turn out to be. */
.mb-card-project {
  display: flex;
  flex-direction: column;
}

/* `.mb-card p` zeroes every paragraph margin, so the internal spacing has to
   be restored explicitly. */
.mb-content .mb-card-project p + p {
  margin-top: 12px;
}

/* The "what we can learn" part of each card, set apart from the description
   because that is the sentence doing the actual positioning. */
.mb-content .mb-card-project p.mb-project-relevance {
  padding: 10px 12px;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #1f3350;
  background: #eef4ff;
  border-left: 3px solid #005fcc;
  border-radius: 0 6px 6px 0;
}

.mb-content .mb-card-project p.mb-project-action {
  /* Pushes the link to the bottom of the card. */
  margin-top: auto;
  padding-top: 14px;
  font-size: 1rem;
  hyphens: none;
}

.mb-content a.mb-project-cta,
.mb-content a.mb-project-cta:visited {
  display: inline-block;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: bold;
  line-height: 1.3;
  color: #0b4fa8; /* 7.78:1 on white */
  background: #fff;
  border: 1px solid #0b4fa8;
  border-radius: 6px;
  text-decoration: none;
}

.mb-content a.mb-project-cta:hover {
  background: #eaf2ff;
  border-color: #0b4fa8;
  color: #0b4fa8;
  text-decoration: none;
}

.mb-content a.mb-project-cta:focus-visible {
  outline: 3px solid #0b4fa8;
  outline-offset: 2px;
}

/* Keep the arrow glyph with the label if the text ever wraps. */
.mb-arrow {
  white-space: nowrap;
}

/* Positioning panel. Tinted like the engine card so it reads as the
   conclusion of the section rather than another project entry. */
.mb-fits {
  margin: 20px 0 0;
  padding: 18px 20px;
  background: #eef4ff;
  border: 1px solid #c7dcff;
  border-left: 6px solid #005fcc;
  border-radius: 10px;
}

.mb-content .mb-fits h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: #0b4fa8;
}

.mb-content .mb-fits p {
  margin: 0 0 12px;
  font-size: 1.08rem;
  line-height: 1.6;
  color: #1f2937;
}

.mb-content .mb-fits p:last-child {
  margin-bottom: 0;
}

/* The one-sentence summary of the proposal. No hyphenation: this is a
   highlighted statement read as a unit, and a break like "math-ematical"
   damages it more than a slightly ragged right edge would. */
.mb-content .mb-fits p.mb-fits-claim {
  font-size: 1.18rem;
  font-weight: bold;
  line-height: 1.5;
  color: #0b4fa8; /* 7.3:1 on #eef4ff */
  hyphens: none;
  -webkit-hyphens: none;
  text-wrap: pretty;
}

/* ---------- Lists ---------- */

.mb-list {
  margin: 0;
  padding-left: 22px;
}

.mb-list li {
  margin-bottom: 12px;
}

.mb-principles li {
  margin-bottom: 8px;
}

/* ---------- Conceptual flow ---------- */

.mb-flow {
  counter-reset: mb-step;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Full width would stretch short list items to an unreadable line length.
   A two-column layout on wide screens uses the width without long lines.
   Grid keeps the DOM order intact, so reading/keyboard order is unchanged. */
@media (min-width: 900px) {
  .mb-list.mb-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 2.5rem;
  }
}

.mb-flow li {
  counter-increment: mb-step;
  position: relative;
  margin: 0 0 10px;
  padding: 13px 18px 13px 54px;
  background: #f7f9fc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  line-height: 1.55;
}

.mb-flow li::before {
  content: counter(mb-step);
  position: absolute;
  top: 12px;
  left: 12px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: bold;
  color: #fff;
  /* Darker than the brand blue so the white numeral clears 5.98:1. */
  background: #005fcc;
  border-radius: 50%;
}

/* ---------- Aside notes ---------- */

.mb-content p.mb-aside {
  padding: 14px 18px;
  margin: 0 0 14px;
  max-width: none;
  font-size: 1.08rem;
  line-height: 1.6;
  color: #444;
  background: #fdf8ec;
  border: 1px solid #f0e3c2;
  border-left: 4px solid #d9a621;
  border-radius: 6px;
}

/* ---------- Mathematics ---------- */

.mb-math {
  margin: 18px 0 20px;
  padding: 12px 8px;
  overflow-x: auto;
  text-align: center;
  background: #fbfcfe;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

/* Let KaTeX scale down gracefully on narrow screens */
.katex-display {
  margin: 0;
}

/* ---------- Demonstration: result -> record -> reuse ---------- */

.mb-demo {
  margin: 22px 0 20px;
  padding: 20px;
  background: #fbfcfe;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.mb-demo-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mb-demo-step {
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #dde5ef;
  border-left: 4px solid #0078ff;
  border-radius: 8px;
}

.mb-demo-step + .mb-demo-step {
  margin-top: 14px;
}

.mb-content .mb-demo-step h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

/* Step labels are written in the markup rather than generated with CSS
   counters, so they survive a missing stylesheet and are read in order by
   screen readers. Scoped with `.mb-content` to outrank `.mb-content p`. */
.mb-content p.mb-step-label {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4d5f75; /* 6.5:1 on white */
  hyphens: none;
}

/* The question being investigated, quoted as the researcher would ask it. */
.mb-content blockquote.mb-question {
  margin: 0 0 12px;
  padding: 12px 18px;
  font-size: 1.12rem;
  font-style: italic;
  line-height: 1.55;
  color: #1f2937;
  background: #f7f9fc;
  border-left: 4px solid #8296ad;
  border-radius: 0 6px 6px 0;
}

/* Secondary explanation inside a step: one size down, and no hyphenation
   because the measures are short. */
.mb-content p.mb-demo-note {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #3a3a3a;
  hyphens: none;
  -webkit-hyphens: none;
}

.mb-demo figcaption {
  margin-top: 14px;
  font-size: 1rem;
  line-height: 1.55;
  color: #555;
  text-align: left;
}

/* ---------- The illustrative knowledge record ---------- */

.mb-record {
  margin: 14px 0 2px;
  background: #fff;
  border: 1px solid #c7dcff;
  border-radius: 8px;
  overflow: hidden; /* keeps the tinted header inside the rounded corners */
}

.mb-record-head {
  padding: 12px 16px;
  background: #eef4ff;
  border-bottom: 1px solid #c7dcff;
}

.mb-content p.mb-record-kind {
  margin: 0 0 2px;
  font-size: 0.72rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4d5f75; /* 5.9:1 on #eef4ff */
  hyphens: none;
}

.mb-content p.mb-record-title {
  margin: 0;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 1.25rem;
  font-weight: bold;
  line-height: 1.3;
  color: #111;
  hyphens: none;
}

.mb-content p.mb-record-status {
  margin: 6px 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #4d5f75;
  hyphens: none;
}

.mb-badge {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: bold;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b4b00; /* 7.3:1 on #fdf1d4 */
  background: #fdf1d4;
  border: 1px solid #e8cd8a;
  border-radius: 999px;
}

.mb-record-fields {
  margin: 0;
  padding: 0;
}

/* A definition list laid out as label/value rows. Each label stays in its own
   column so the record reads as a set of fields rather than prose. */
.mb-record-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 4px 18px;
  padding: 11px 16px;
  border-top: 1px solid #e6eef9;
}

.mb-record-row:first-child {
  border-top: none;
}

.mb-content .mb-record-row dt {
  padding-top: 3px;
  font-size: 0.78rem;
  font-weight: bold;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4d5f75;
}

.mb-content .mb-record-row dd {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: #262626;
  /* `hyphens` inherits from `.mb-content li`, and a short field value is not
     where a break like "tran-script" helps. */
  hyphens: none;
  -webkit-hyphens: none;
  text-wrap: pretty;
}

/* ---------- Ordinary assistant vs Mithohne comparison ---------- */

/* Fixed layout keeps the two workflows in equal columns regardless of which
   column happens to hold the longer sentence. */
.mb-compare {
  table-layout: fixed;
}

/* The shared table rule caps the first column at 36% for the relation table
   (`:first-child` is a pseudo-class, so that rule is 0,2,2). Matching its
   specificity is not enough — this rule is earlier in the file — so the
   selector adds `.mb-table` to win outright. `auto` plus `table-layout:
   fixed` lets the browser split the two workflows evenly; a percentage would
   be measured before this cell's padding and leave the columns unequal. */
.mb-table.mb-compare thead th:first-child {
  width: auto;
}

.mb-compare thead th:nth-child(2) {
  color: #0b4fa8; /* 7.8:1 on #f4f6f9 */
}

.mb-compare tbody td:nth-child(2) {
  background: #f7faff;
}

/* On a phone the columns are narrow enough that hyphenation would chop short
   words ("re-main", "be-come"). Cell text is only a phrase long, so let it
   wrap at spaces instead. `.mb-table` is repeated to outrank
   `.mb-table tbody td { hyphens: auto }`. */
.mb-table.mb-compare tbody td {
  hyphens: none;
  -webkit-hyphens: none;
}

/* ---------- Relation table ---------- */

.mb-table-wrap {
  margin: 18px 0 20px;
  overflow-x: auto;
}

.mb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.05rem;
}

.mb-table th,
.mb-table td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border: 1px solid #e0e0e0;
  line-height: 1.5;
}

.mb-table thead th:first-child {
  /* Cap the relation column so the Meaning column keeps a usable measure. */
  width: 36%;
}

.mb-table thead th {
  background: #f4f6f9;
  font-size: 1rem;
}

.mb-table tbody th {
  /* Not `nowrap`: entries like "REFORMULATES / EQUIVALENT_TO" are long and
     would starve the description column. */
  font-weight: normal;
  hyphens: none;
  text-wrap: pretty;
}

.mb-table tbody td {
  hyphens: auto;
  -webkit-hyphens: auto;
  text-wrap: pretty;
}

.mb-table code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  color: #0b4fa8;
  background: #eef3fa;
  padding: 1px 5px;
  border-radius: 3px;
  /* Underscored tokens are single words to the hyphenator; allow a break at
     the underscore so they don't overflow their cell. */
  overflow-wrap: anywhere;
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .mb-title {
    font-size: 2.2rem;
  }

  .mb-content p.mb-subtitle {
    font-size: 1.25rem;
  }

  /* The label carries two clauses; keep it from becoming a stack of lines. */
  .mb-content p.mb-label {
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    line-height: 1.5;
  }

  .mb-content p.mb-lede {
    font-size: 1.15rem;
  }

  /* The label column only has to hold "AI" and "Humans". */
  .mb-division-row {
    grid-template-columns: 72px 1fr;
    gap: 2px 10px;
  }

  .mb-content .mb-division-row dd {
    font-size: 1.02rem;
  }

  .mb-cards {
    grid-template-columns: 1fr;
  }

  /* Two half-width cards leave roughly 140px each on a phone, which forces
     one- and two-word lines. Stack them instead. */
  .mb-parts {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mb-flow li {
    padding-left: 48px;
  }

  /* The record's label column would leave roughly 100px for values on a
     phone, so stack the fields instead. */
  .mb-record-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  /* Letter tiles shrink so MYTH -> MITH stays on one line on most phones. */
  .mb-letter {
    width: 38px;
    height: 46px;
    font-size: 1.3rem;
  }

  .mb-wordplay {
    padding: 14px;
  }

  .mb-content p.mb-slogan {
    font-size: 1.3rem;
  }

  .mb-content .mb-name > summary {
    font-size: 0.95rem;
  }

  .mb-demo {
    padding: 14px;
  }

  .mb-demo-step {
    padding: 14px;
  }

  /* Two compare columns at ~100px each need tighter padding to stay legible;
     the wrapper still allows horizontal scrolling if a word cannot wrap. */
  .mb-compare th,
  .mb-compare td {
    padding: 9px 10px;
  }

  .mb-table thead th:first-child {
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mb-content * {
    transition: none !important;
    animation: none !important;
  }
}

/* Below this width the two four-letter words plus the arrow no longer fit on
   one line (~560px is the measured threshold), and wrapping would leave the
   arrow dangling at the end of the first row. Stack them and point the arrow
   downwards instead. */
@media (max-width: 560px) {
  .mb-wordplay-line {
    flex-direction: column;
    gap: 8px;
  }

  .mb-wordplay-arrow {
    transform: rotate(90deg);
  }
}
