/* Release and patch notes pages (issue #2703): web-base's notes list,
   head, column and footer (mg-notes-*, Magma-Maths/web-base#92), set into
   the theme's article. They take web-base's colours and fonts, which are
   the theme's (custom.css) but for web-static's face on the titles. */

/* The article has its own side padding and top space, so the notes column
   needs no gutter, and the hero's and the head's top padding only 1rem. */
.notes-page {
  --mg-notes-gutter: 0;
  --mg-notes-hero-pad: 1rem;
  --mg-notes-head-pad: 1rem;
}

/* The index page has no sidebar, so, like search.html, it is centred at
   web-base's width. */
.notes-page:has(.mg-notes-layout) { --mg-search-layout-max: 1120px; }

.notes-page .mg-search-layout {
  --mg-search-layout-pad: 1rem 0 2.5rem;
  --mg-search-layout-pad-narrow: 1rem 0 0;
}

/* A release's own page has no sidebars: the article takes the page's
   width, so the head's and the footer's rules run across it as a band,
   and web-base centres the head, notes and back link in its column. */
.bd-article-container:has(.mg-notes-head) { max-width: none; }

/* The breadcrumbs line up with the column under them. */
.bd-article-container:has(.mg-notes-head) .bd-header-article {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--mg-notes-width, 820px);
  margin-inline: auto;
}
