/* The page under the header (nc-page), as Vector 2022's: three columns on a wide screen (the contents, the page, the
   Appearance menu), each side column sticky as the page scrolls; the contents' column from 70rem, the Appearance
   column from 87.5rem; below 70rem one column, with the contents in the dropdown beside the title. The footer spans
   the page's width under the columns. The width is capped at --nc-page-width unless the reader chose Wide. A side
   column's contents are inset 1rem on both sides and start level with the tabs, as Vector 2022's do. */

.nc-page { display: grid; grid-template-areas: "main" "footer"; grid-template-columns: minmax(0, 1fr); column-gap: var(--nc-gap); max-width: var(--nc-page-width); margin: 0 auto; padding: 0 var(--nc-page-padding); }
.nc-column-start { display: none; grid-area: start; }
.nc-main { grid-area: main; min-width: 0; padding-top: 1.75rem; }
.nc-column-end { display: none; grid-area: end; }
.nc-sticky { position: sticky; top: 0; max-height: 100vh; padding: 4.9375rem 1rem 1rem; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }

@media (min-width: 70rem) {
  .nc-page { grid-template-areas: "start main" "footer footer"; grid-template-columns: var(--nc-column) minmax(0, 1fr); }
  .nc-column-start { display: block; }
  .nc-toc-menu { display: none; }
}

@media (min-width: 87.5rem) {
  .nc-page { grid-template-areas: "start main end" "footer footer footer"; grid-template-columns: var(--nc-column) minmax(0, 1fr) var(--nc-column); }
  .nc-column-end { display: block; }
}

@media (max-width: 40rem) {
  .nc-page { padding: 0 1rem; }
  .nc-main { padding-top: 1rem; }
}

.nc-footer { grid-area: footer; margin-top: 1.5rem; padding: 0.75rem 0 1.5rem; border-top: 1px solid var(--nc-border); font-size: var(--nc-small-size); line-height: 1.4; }
.nc-footer__info { margin: 0.375rem 0; }
.nc-footer__places { display: flex; flex-wrap: wrap; gap: 0 1rem; margin: 0.5rem 0; padding: 0; list-style: none; line-height: 2; }
.nc-footer__icons { display: flex; align-items: center; gap: 0.5rem; color: var(--nc-subtle); }
.nc-footer__emblem { width: 1.75rem; height: 1.75rem; color: var(--nc-emblem); }
