Files
farhan cd910e446f fix(book): wrap long URLs to stop horizontal page overflow
On reference-heavy chapters (e.g. vol1 training), long unbreakable
tokens — paper hashes, arXiv ids, DOI suffixes — inside body links,
column-margin notes, footnotes, callouts, and right-side TOC entries
inflated the line box past their column. That cascaded into
page-level horizontal scroll on narrower viewports.

Add overflow-wrap: anywhere to:

- the global `a` rule and the TOC container in
  book/quarto/assets/styles/_base-styles.scss (the volume builds use
  this; they don't import shared/styles/partials/_links or _toc)
- the corresponding shared partials shared/styles/partials/_links.scss
  and shared/styles/partials/_toc.scss for ecosystem sites that do
  consume them (site, tinytorch, labs, kits, instructors, slides,
  mlsysim docs)

`anywhere` (not `break-word`): only `anywhere` shrinks min-content
size so flex/grid ancestors can actually narrow. Pair with `min-width:
0` on the TOC container to let the column take the smaller size.
Regular prose still breaks at word boundaries first.
2026-05-23 11:07:10 +05:00
..