/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Shared page column. Small screens stay close to the edges. From the md
   breakpoint the inset grows, and the column never exceeds 960px. */
.app-main {
  width: 100%;
  padding: 1.5rem 1rem;
}

@media (min-width: 48rem) {
  .app-main {
    padding-inline: 3rem;
  }
}

.app-main-content {
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
}

/*
  Sticky funding footer for the authenticated shell.

  The main scroller is a column flexbox with a definite height. `.app-main`
  grows (`flex: 1 0 auto`) so short pages fill the scrollport; the footer
  sibling then sits at the bottom. When content is taller than the scrollport,
  `.app-main` grows with it and the footer scrolls after the content.
*/
main [data-controller~="scroll-preservation"] > .app-main {
  flex: 1 0 auto;
}
