/* Shared member-page content rails. The outer .member-main owns the page gutter. */
:root {
  --page-width-wide: 75rem;
  --page-width-list: 56rem;
  --page-width-reading: 46rem;
}

.page-shell {
  width: min(var(--page-width), 100%);
  margin-inline: auto;
}

.page-shell--wide { --page-width: var(--page-width-wide); }
.page-shell--list { --page-width: var(--page-width-list); }
.page-shell--list h1 { overflow-wrap: anywhere; }
.page-shell--reading { --page-width: var(--page-width-reading); }
.page-shell--bleed { width: 100%; }

.page-shell__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-5);
}

.page-shell__titles,
.page-shell__actions,
.page-action-row {
  min-width: 0;
}

.page-shell__titles { flex: 1 1 20rem; }
.page-shell__titles > :first-child { margin-top: 0; }
.page-shell__subtitle { max-width: var(--page-width-reading); }

.page-shell__actions,
.page-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
}

.page-shell__actions { flex: 0 1 auto; }
.page-action-row { width: 100%; }

@media (max-width: 42rem) {
  .page-shell__heading { align-items: flex-start; flex-direction: column; }
  .page-shell__titles,
  .page-shell__actions { width: 100%; }
  .page-shell__actions,
  .page-action-row { align-items: stretch; justify-content: flex-start; }
  .page-shell__actions .button,
  .page-action-row .button { min-height: 44px; }
}

.page-shell__subtitle { overflow-wrap: anywhere; }
