.boot-mmio-explanation {
  container: boot-mmio-explanation / inline-size;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: clamp(18px, 2.5vw, 28px);
  border-block: 1px solid #ded5e8;
  color: #30253c;
  background: #fff;
}
.boot-mmio-explanation > figcaption { margin: 0 0 20px; }
.boot-mmio-explanation > figcaption > span { color: #774494; font: 750 12px/1.5 ui-sans-serif, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.boot-mmio-explanation > figcaption h3 { margin: 5px 0 0; color: #30253c; font-size: clamp(22px, 2.2vw, 27px); font-weight: 760; line-height: 1.2; letter-spacing: -.025em; }
.boot-mmio-explanation :is(p, ol, ul, dl) { margin: 0; }
.boot-mmio-explanation :is(code, pre) { color: inherit; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.boot-mmio-explanation code { padding: 0; background: none; font-size: .94em; overflow-wrap: anywhere; }
.boot-mmio-explanation [hidden] { display: none !important; }
.bm-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 26px; }
.bm-body > * { min-width: 0; }
.bm-diagram { padding: 16px; border: 1px solid #e1dbe8; border-radius: 10px; background: #f8f7fa; }
.bm-copy { display: grid; gap: 16px; font-size: 15px; line-height: 1.6; color: #594e63; }
.bm-copy strong { color: #392843; }
.bm-copy > p { margin: 0; }
.bm-copy a, .bm-note a { color: #703b95; text-underline-offset: 3px; }
.bm-note { margin-top: 18px !important; padding-top: 12px; border-top: 1px solid #e9e3ed; color: #74677d; font-size: 13px; line-height: 1.55; }
.bm-arrow { display: block; margin: 7px 0; color: #ae398f; font-size: 22px; line-height: 1; text-align: center; }
.bm-source, .bm-ledger { display: grid; gap: 7px; padding: 12px 14px; border-left: 3px solid #9470ba; background: #fff; }
.bm-source > span, .bm-ledger > span { color: #74677d; font-size: 12px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.bm-source code, .bm-ledger code { font-size: 13px; line-height: 1.6; }
.bm-ledger { border-left-color: #b53b96; }
.bm-ledger > strong { color: #382442; font-size: 16px; }
.bm-steps { display: grid; gap: 16px; padding: 0; list-style: none; }
.bm-steps > li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 11px; align-items: start; }
.bm-steps > li > span { display: grid; place-items: center; width: 28px; min-height: 28px; border: 1px solid #d4c4e3; border-radius: 50%; color: #793d98; background: #faf6fe; font: 750 13px/1 ui-monospace, monospace; }
.bm-steps p { color: #655870; font-size: 14px; line-height: 1.55; }
.bm-controls { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.bm-controls button { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 9px 12px; border: 1px solid #d7c8e4; border-radius: 7px; color: #594069; background: #fff; font: 650 14px/1.3 ui-sans-serif, sans-serif; cursor: pointer; }
.bm-controls button:hover { border-color: #9754b7; background: #fbf7fe; }
.bm-controls button[aria-pressed="true"] { border-color: #793bad; color: #69258f; background: #f3eafc; box-shadow: inset 0 -2px 0 #b93b9e; }
.bm-controls button:focus-visible { outline: 3px solid #a438c3; outline-offset: 3px; }
.bm-section-map { display: grid; gap: 10px; }
.bm-section-row { display: grid; grid-template-columns: minmax(0, 1fr) 25px minmax(0, 1fr); align-items: center; gap: 8px; padding: 12px; border: 1px solid #e1d8e8; border-radius: 7px; color: #61536e; background: #fff; }
.bm-section-row > strong { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px; color: #493058; font-size: 15px; }
.bm-section-row > strong > small { font-size: 12px; font-weight: 550; }
.bm-section-row > span { font-size: 13px; line-height: 1.45; }
.bm-section-row > b { color: #b04496; text-align: center; font-size: 20px; }
.bm-section-row[data-active="true"] { border-color: #9a64bc; border-left: 3px solid #9757b5; background: #fcfaff; }
.bm-inspection { padding-left: 16px; border-left: 3px solid #b458c2; }
.bm-inspection > strong { display: block; margin-bottom: 9px; color: #5e2e78; font-size: 17px; line-height: 1.4; }
.bm-inspection dl { display: grid; gap: 12px; }
.bm-inspection dt { color: #796582; font-size: 12px; font-weight: 750; }
.bm-inspection dd { margin: 3px 0 0; color: #594e63; font-size: 14px; line-height: 1.55; }
.bm-clock-chain { display: grid; grid-template-columns: minmax(0, 1fr) 35px minmax(0, 1fr) 30px minmax(0, 1fr); align-items: center; gap: 6px; }
.bm-clock-node { display: grid; gap: 7px; align-content: center; min-height: 116px; padding: 10px 5px; border-block: 3px solid #a47dc2; color: #513160; background: #fff; text-align: center; }
.bm-clock-node small { font-size: 12px; font-weight: 750; }
.bm-clock-node strong { font: 750 26px/1.1 ui-monospace, monospace; }
.bm-clock-node strong span { display: block; margin-top: 4px; color: #776081; font: 650 13px/1.2 ui-sans-serif, sans-serif; }
.bm-clock-operator { color: #a8328c; font: 650 13px/1.6 ui-monospace, monospace; text-align: center; }
.bm-clock-limit { margin-top: 14px !important; padding-top: 11px; border-top: 1px dashed #d5c8df; color: #6e5d78; font-size: 13px; line-height: 1.5; }
.bm-equation { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 12px 14px; color: #6e557c; background: #fff; font-size: 13px; }
.bm-equation code { color: #4b2c62; font-size: 14px; text-align: right; }
.bm-equation > strong { padding-top: 8px; border-top: 1px solid #dfd3e8; color: #442c55; font-weight: 750; }
.bm-byte-lanes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin-top: 14px; padding: 0; list-style: none; }
.bm-byte-lanes li { display: grid; gap: 5px; padding: 10px 5px; border-bottom: 3px solid #a453ba; background: #fff; text-align: center; }
.bm-byte-lanes small { color: #816e89; font-size: 12px; }
.bm-byte-lanes code { color: #59316b; font-size: 13px; }
.bm-byte-label { margin-top: 8px !important; color: #6f587a; text-align: center; font-size: 13px; }
.bm-bit-table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; color: #5d4b68; }
.bm-bit-table th { width: auto; letter-spacing: 0; text-transform: none; color: #6f5b7a; font-size: 13px; font-weight: 650; }
.bm-bit-table thead th:first-child { width: 40%; }
.bm-bit-table :is(th, td) { padding: 7px 4px; border-bottom: 1px solid #e4dbe9; text-align: center; }
.bm-bit-table tbody th { text-align: left; }
.bm-bit { display: grid; min-width: 0; min-height: 32px; place-items: center; border: 1px solid #d9cce3; border-radius: 4px; color: #89738f; background: #fff; font: 750 17px/1 ui-monospace, monospace; }
.bm-bit[data-value="1"] { border-color: #9e70b7; color: #6f328e; background: #f1e5f9; }
.bm-bit-table tr:last-child .bm-bit[data-value="0"] { border-color: #b9cbbd; color: #49634d; background: #f1f7f2; }
.bm-operation { margin: 14px 0 0 !important; padding-top: 12px; border-top: 1px solid #e1d6e8; color: #6b3c7e; font-size: 14px; }
.bm-w1c-result { display: block; margin-top: 7px; color: #46314e; font: 750 21px/1.35 ui-monospace, monospace; }
.bm-boundaries { display: grid; gap: 9px; padding: 0; list-style: none; }
.bm-boundaries > li { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 3px 10px; padding: 12px 13px; border-left: 3px solid #b994cf; color: #725d7b; background: #fff; font-size: 13px; }
.bm-boundaries > li > b { grid-row: 1 / span 2; color: #ad3d92; font-size: 18px; }
.bm-boundaries > li > strong { color: #45314f; font-size: 15px; }
.bm-boundaries > li > span { grid-column: 2; }
.bm-proof { display: grid; gap: 12px; }
.bm-proof > div { padding-left: 13px; border-left: 2px solid #d1bddf; }
.bm-proof dt { margin-bottom: 3px; color: #5b3171; font-size: 14px; font-weight: 750; }
.bm-proof dd { margin: 0; color: #66526f; font-size: 14px; line-height: 1.55; }
.bm-live { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
@container boot-mmio-explanation (max-width: 680px) {
  .bm-body { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .bm-copy { font-size: 15px; }
}
@container boot-mmio-explanation (max-width: 360px) {
  .bm-diagram { padding: 12px; }
  .bm-byte-lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bm-clock-chain { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .bm-clock-node { min-height: 76px; }
  .bm-clock-node strong span { display: inline; margin-left: 5px; }
  .bm-clock-operator { font-size: 14px; }
  .bm-equation { grid-template-columns: minmax(0, 1fr); }
  .bm-equation code { text-align: left; }
}
@media print {
  .bm-controls { display: none !important; }
  .boot-mmio-explanation { break-inside: avoid; }
}
