/* Styles for support/support.twig only. Shared site styles are in assets/site.css. */

/* The topic menu (.sidemenu, in assets/site.css) sits in the same grid cell as the sections, so it stays
   stuck beside them all the way down while their full-width bands still run under it. The sections'
   content moves right to leave it room. */
.kb-layout { display: grid; }
.kb-layout > * { grid-area: 1 / 1; min-width: 0; }
.kb-side {
  align-self: start; position: sticky; top: calc(var(--bar-h, 60px) + 20px); z-index: 4;
  margin-top: clamp(36px, 5vh, 60px); padding: 0 var(--gutter); pointer-events: none;
}
.kb-side .sidemenu { position: static; width: 230px; pointer-events: auto; }
.kb-sections .sect > .wrap { padding-left: 264px; }

/* Narrow screens: the menu is a strip under the header, and the sections use the full width */
@media (max-width: 900px) {
  .kb-layout { display: block; }
  .kb-side { top: var(--bar-h, 60px); z-index: 5; margin: 0; padding: 0; pointer-events: auto; }
  .kb-side .sidemenu { width: auto; }
  .kb-sections .sect > .wrap { padding-left: 0; }
}
.kb .gallery { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.kb figure { margin: 0; }
.kb .gallery img { object-fit: contain; }
.kb figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }
.kb .steps { margin: 0 0 18px; padding-left: 22px; color: var(--soft); display: grid; gap: 8px; max-width: 48rem; }
.kb .steps b { color: var(--ink); }
.kb h3 { margin-top: 26px; }
.kb .body { max-width: 48rem; color: var(--soft); }
.kb .body a, .kb .steps a, .kb .note a { color: var(--glow); }
