/* Site overrides — loaded after the theme's main.css. */

/* 1fr resolves to minmax(auto, 1fr), so a wide table's min-content width
   blows the article out past the viewport on mobile. Force the track to
   be able to shrink to 0; the table (display: block; overflow-x: auto)
   then scrolls inside the column instead. Scoped to mobile so the
   desktop two-column TOC layout keeps working. */
@media (max-width: 999px) {
  .post-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* .brand is nowrap, so its min-content width (the user@host:path prompt)
   can't shrink below ~384px and pushes the theme-toggle off-screen on
   narrow viewports. Let it shrink and clip instead. */
.brand {
  min-width: 0;
  overflow: hidden;
}

/* Footnotes contain long unbreakable URLs that overflow the line box and
   widen the whole document on mobile. */
.content {
  overflow-wrap: anywhere;
}
