/*
 * 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.
 */

body:has(aside + main) {
  padding: 0px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
}

body:has(main + aside), body:has(main:first-child:last-child) {
  padding: 0px;
  display: grid;
  grid-template-columns: 800px minmax(0, 1fr);
}

main {
  padding: 1.5rem;
  padding-bottom: 5rem;

  section {
    border: 1px solid rgba(0, 0, 0, 0.175);
    background-color: white;
    border-radius: 3px;
    padding: 1rem;
  }
}

body > aside {
  background-color: palegoldenrod;
}

.alert {
  padding: 0.5rem 1rem;
  background-color: tomato;
  border-radius: 3px;
}
