/* M302.1: the layout site (layouts/site.html) and the public frame's page, written again from the branch m277.1 at 7671e9aa (design-main.css, the rules of .site-page and .layout--site), which is not ported. design.css holds .layout and its regions. A page asks for the aside with layout--site-aside, and an organization's page adds layout--site-org, through the layout's block layout_class. */
.site-page { overflow-x: clip; }
.layout--site { gap: 32px; max-width: 1120px; margin: 0 auto; padding: 24px 32px 56px; grid-template-areas: "header" "main"; grid-template-columns: minmax(0, 1fr); }
.layout--site .layout__header, .layout--site .layout__main { gap: 32px; }
.layout--site-aside { grid-template-areas: "header header" "main aside"; grid-template-columns: minmax(0, 1fr) 300px; column-gap: 40px; }
.layout--site-aside .layout__aside { position: sticky; top: 16px; align-self: start; }
/* An organization's page: the regions sit 32 px inside the header picture. */
.layout--site-org { padding-inline: 64px; }
.layout--site-org .org-head__cover { margin-inline: -32px; }
.layout--site-org .listing__rows--small { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
@media (max-width: 900px) {
  .layout--site-aside { grid-template-areas: "header" "aside" "main"; grid-template-columns: minmax(0, 1fr); }
  .layout--site-aside .layout__aside { position: static; }
}
@media (max-width: 760px) {
  .layout--site { gap: 24px; padding: 16px 16px 40px; }
  .layout--site-org { padding-inline: 32px; }
  .layout--site-org .org-head__cover { margin-inline: -16px; }
}
/* M302.4: an event's page (PUB-P09), asked for by the block layout_class with " layout--site-event". The page places the back link and the head (page_header) in header; the picture (figure), the date and place rows (row_list), the lines « Organisé par » (link) and the booking box (booking) in aside; the story's blocks, « Séances » and « Lieu » (text_block given extra_class "site-event__place") in main. Under 900 px every part is an item of the one column, in today's order: the back link, the picture, the head, the rows, the story and « Séances », the booking box, « Lieu ». From 900 px the back link runs across, the aside is the left column (its booking box pinned once the picture has scrolled away) and the head and the main are the right column. */
.layout--site-event { grid-template-areas: none; }
.layout--site-event .layout__header, .layout--site-event .layout__main, .layout--site-event .layout__aside { display: contents; }
.layout--site-event .page-header { order: 2; }
.layout--site-event .layout__aside > * { order: 3; }
.layout--site-event .layout__aside > .figure { order: 1; }
.layout--site-event .layout__main > :not(.usa-alert) { order: 4; }
.layout--site-event .layout__aside > .booking { order: 5; }
.layout--site-event .layout__main > .site-event__place { order: 6; }
@media (min-width: 900px) {
  .layout--site-event { grid-template-areas: "back back" "aside head" "aside main"; grid-template-columns: minmax(19rem, 1fr) minmax(0, 1.8fr); grid-template-rows: auto auto 1fr; column-gap: clamp(32px, 4vw, 56px); }
  .layout--site-event .link--back { grid-area: back; }
  .layout--site-event .page-header { grid-area: head; }
  .layout--site-event .layout__main { display: grid; grid-area: main; gap: 32px; align-content: start; }
  .layout--site-event .layout__aside { display: grid; grid-area: aside; gap: 24px; align-content: start; }
  .layout--site-event .layout__aside > .booking { position: sticky; top: 16px; }
}
@media (min-width: 900px) and (max-height: 700px) {
  .layout--site-event .layout__aside > .booking { position: static; }
}
