/* Boot diagrams follow the Docs typography, sharp frames and monochrome palette. */
.boot-explorer { margin: 22px 0; }
.boot-media { padding: 0; margin: 0 0 12px; border: 0; min-width: 0; }
.boot-media legend { margin-bottom: 10px; font: 25px/1 var(--font-px); }
.boot-media__choices { display: flex; flex-wrap: wrap; }
.boot-media__choices button { min-height: 44px; padding: 8px 16px; margin: 0 -1px -1px 0; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); font: 22px/1 var(--font-px); cursor: pointer; }
.boot-media__choices button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.boot-explorer button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; position: relative; z-index: 1; }
.boot-window { margin-top: 18px; border: var(--hair) solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.boot-window__title { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: var(--hair) solid var(--ink); background: repeating-linear-gradient(to bottom, var(--paper) 0 2px, var(--ink) 2px 3px, var(--paper) 3px 5px); font: 23px/1.1 var(--font-px); }
.boot-window__title > * { background: var(--paper); padding-inline: 5px; }
.boot-window__title > :last-child { margin-left: auto; }
.boot-walkthrough { display: grid; grid-template-columns: minmax(200px, 30%) minmax(0, 1fr); }
.boot-steps { margin: 0; padding: 12px; list-style: none; max-width: none; border-right: 1px solid var(--ink); }
.boot-steps li { margin: 0; }
.boot-steps li + li::before { content: "\2193"; display: block; text-align: center; font: 20px/1 var(--font-px); margin-block: 5px; }
.boot-steps button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; text-align: left; padding: 8px; border: 1px solid var(--ink); color: var(--ink); background: var(--paper); cursor: pointer; }
.boot-steps button > span { flex: 0 0 22px; font: 26px/1 var(--font-px); text-align: center; }
.boot-steps button > b { font: 21px/1.1 var(--font-px); }
.boot-steps button[aria-current="step"] { background: var(--ink); color: var(--paper); }
.boot-stage { min-width: 0; padding: 22px; }
.docs-article .boot-stage__number { font-size: 10px; margin-bottom: 8px; text-transform: uppercase; }
.docs-article .boot-stage h3 { font-size: 32px; }
.docs-article #boot-stage-copy { font-size: 12px; line-height: 1.9; }
.boot-transfer { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); gap: 8px; align-items: center; margin-block: 24px; }
.boot-transfer > div { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--ink); padding: 12px; min-width: 0; align-self: stretch; }
.boot-transfer > div > span { font-size: 9px; text-transform: uppercase; }
.boot-transfer b { font: 22px/1.2 var(--font-px); overflow-wrap: anywhere; }
.boot-transfer__arrow { font: 28px/1 var(--font-px); text-align: center; }
.docs-article .boot-stage__execution { font-size: 11px; line-height: 1.8; }
.boot-stage__navigation { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 24px; }
.boot-stage__navigation button { min-height: 40px; padding: 6px 12px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); font: 21px/1 var(--font-px); cursor: pointer; }
.boot-stage__navigation button:disabled { opacity: .4; cursor: default; }
.boot-figure { margin: 22px 0; padding: 18px; border: var(--hair) solid var(--ink); background: var(--paper); }
.boot-figure figcaption { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.boot-figure figcaption b { font: 25px/1.2 var(--font-px); }
.boot-figure figcaption > span { font-size: 10px; line-height: 1.7; }
.boot-disk-strip, .boot-file-layout ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; max-width: none; margin: 0; padding: 0; border: 1px solid var(--ink); }
.boot-disk-strip li, .boot-file-layout li { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 12px; min-width: 0; }
.boot-disk-strip li + li, .boot-file-layout li + li { border-left: 1px solid var(--ink); }
.boot-disk-strip b, .boot-file-layout b { font: 23px/1.1 var(--font-px); }
.boot-disk-strip span, .boot-file-layout span { font-size: 10px; line-height: 1.8; }
.boot-disk-strip li:last-child { background: var(--chip); }
.boot-file-layout { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--ink); }
.docs-article .boot-file-layout p { margin: 0 0 12px; font-size: 11px; }
.boot-file-layout ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.boot-memory-compare > div { display: flex; flex-direction: column; }
.boot-memory-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.docs-article .boot-memory-compare h3 { font-size: 26px; }
.boot-memory-stack { display: flex; flex-direction: column; min-height: 390px; flex: 1; list-style: none; max-width: none; margin: 12px 0 0; padding: 0; border: 1px solid var(--ink); }
.boot-memory-stack li { display: flex; flex-direction: column; gap: 5px; margin: 0; padding: 10px 12px; }
.boot-memory-stack li + li { border-top: 1px solid var(--ink); }
.boot-memory-stack b { font: 23px/1.1 var(--font-px); }
.boot-memory-stack span { font-size: 10px; line-height: 1.7; }
.boot-band--bios { background: var(--ink); color: var(--paper); }
.boot-band--kernel { background: var(--chip); }
.boot-band--temporary { border-left: 5px solid var(--ink); }
.boot-band--free { flex: 1; }
.boot-band--heap { justify-content: space-between; }
@media (max-width: 1100px) {
  .boot-walkthrough { grid-template-columns: minmax(170px, 32%) minmax(0, 1fr); }
  .boot-stage { padding: 16px; }
  .boot-memory-compare { grid-template-columns: 1fr; }
  .boot-memory-stack { height: auto; min-height: 360px; }
}
@media (max-width: 720px) {
  .boot-media__choices button { flex: 1 0 45%; }
  .boot-window__title { flex-wrap: wrap; font-size: 21px; }
  .boot-window__title > :last-child { font-size: 18px; }
  .boot-walkthrough { grid-template-columns: 1fr; }
  .boot-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .boot-steps li + li::before { display: none; }
  .boot-steps button { height: 100%; }
  .boot-transfer { grid-template-columns: 1fr; }
  .boot-transfer__arrow { transform: rotate(90deg); }
  .boot-figure { padding: 14px; }
  .boot-disk-strip, .boot-file-layout ol { grid-template-columns: 1fr; }
  .boot-disk-strip li + li, .boot-file-layout li + li { border-left: 0; border-top: 1px solid var(--ink); }
}
@media print {
  .boot-explorer { display: none; }
  .boot-figure { break-inside: avoid; }
}
