.content-layout {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 1.5rem;
}

/* Full-bleed public pages (hero + constrained body below). */
.public-bleed-shell .content-layout {
  max-width: none;
  padding: 0;
}

/*
 * Sticky panels (aside, headers) need a scroll ancestor without overflow:hidden.
 * Scroll lives on `.app__viewport`; keep the shell from trapping sticky.
 */
.background.background--public.public-bleed-shell {
  overflow: visible;
}

.content-layout--centered {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 2rem 1.5rem 3rem;
}

.content-layout--fill {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 1rem 1.5rem 1.5rem;
}

.content-layout--admin {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  min-height: 0;
  height: 100%;
  margin: 0;
  padding: 1.25rem clamp(1.125rem, 2vw, 1.75rem) 1.35rem;
  box-sizing: border-box;
}

/*
 * In page-scroll master/detail views, the background is the scrollport. Keep
 * its top edge free of padding so a tall detail card can scroll all the way to
 * that edge; the inner content retains the normal initial page spacing.
 */
.content-layout--admin.content-layout--page-scroll {
  padding: 0;
}

.content-layout--admin.content-layout--page-scroll > .background__content {
  padding: 1.25rem clamp(1.125rem, 2vw, 1.75rem) 1.35rem;
  box-sizing: border-box;
}

.content-layout--admin.content-layout--fill {
  padding-top: 1.25rem;
  padding-bottom: 0.75rem;
  overflow: hidden;
}

.content-layout--admin.content-layout--fill > .background__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: auto;
  max-height: 100%;
  overflow: hidden;
}
