.machine-documentation { --content-max-width: 1160px; --content-padding: 1.5rem; }
.documentation-header { padding-block: 1rem; margin-block: 0 2rem; border-bottom: 1px solid #e5e5e5; }
.documentation-header .section-home { font-size: .85rem; }
.documentation-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 3rem; align-items: start; }
.documentation-layout--single { grid-template-columns: minmax(0, 1fr); max-width: 800px; margin-inline: auto; }
.contents-sidebar { position: sticky; top: 1.5rem; max-height: calc(100vh - 3rem); overflow-y: auto; }
.contents-panel summary { font-weight: bold; padding: .5rem .75rem; cursor: pointer; }
#TableOfContents { display: block; font-size: .85rem; line-height: 1.5; padding-block: .5rem; }
#TableOfContents ul { padding: 0; margin: 0; }
#TableOfContents ul ul { padding-inline-start: 1rem; }
#TableOfContents li { text-indent: 0; margin: .15rem 0; }
#TableOfContents li::before { content: none; }
#TableOfContents a { display: block; padding: .5rem .75rem; border: 0; border-left: 2px solid transparent; text-decoration: none; }
#TableOfContents a[aria-current="location"] { color: var(--color-primary); background: #fff1f3; border-left-color: var(--color-primary); font-weight: bold; }
#TableOfContents a:hover, #TableOfContents a:focus-visible { background: #f5f5f5; color: var(--color-primary); }
.documentation-layout main { min-width: 0; padding-block-end: 4rem; }
.documentation-layout h1 { font-size: 1.8rem; margin-top: .5rem; }
.documentation-layout h2 { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid #e5e5e5; }
.documentation-layout h3 { margin-top: 2rem; }
.documentation-layout :is(h2, h3) { scroll-margin-top: 1.5rem; }
.documentation-layout main li { margin-block: .5rem; }
.documentation-layout .media-row figure { padding: 0; }
.documentation-layout .media-row img { height: auto; max-height: none; max-block-size: none; }
.documentation-layout .brainstorming-gallery img { width: 50%; }
.documentation-layout video { max-width: 100%; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 10; padding: .5rem 1rem; background: white; }
.skip-link:focus { top: .5rem; }
@media (min-width: 861px) {
  .contents-panel summary { list-style: none; cursor: default; pointer-events: none; }
  .contents-panel summary::-webkit-details-marker { display: none; }
}
@media (max-width: 860px) {
  .machine-documentation { --content-padding: 1rem; }
  .documentation-header { margin-bottom: 1rem; gap: .5rem; }
  .documentation-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .contents-sidebar { position: static; max-height: none; overflow: visible; }
  .contents-panel { border: 1px solid #e5e5e5; border-radius: 5px; background: #fafafa; }
  .contents-panel summary { padding: .75rem 1rem; }
  #TableOfContents { padding: 0 .5rem .5rem; }
  .documentation-layout h1 { font-size: 1.5rem; }
}

/* Keep the bill of materials readable and scrollable on narrow screens. */
.bom-table { overflow-x: auto; margin-block: 1.5rem; }
.bom-table table { min-width: 700px; font-size: .85rem; }
.bom-table th, .bom-table td { vertical-align: top; }
