/* 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, so the notes column needs none. */
.notes-page { --mg-notes-gutter: 0; }

/* The index pages have no sidebar, so, like search.html, they are 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;
}

/* web-static's hero padding takes in its page's own top padding, which the
   handbook's article already has. */
.notes-page .mg-notes-hero { padding: 1rem 0 1.5rem; }

/* 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;
}

/* The head sits at the top of the article, under the breadcrumbs. */
.notes-page .mg-notes-head { padding-top: 1rem; }
