/**
 * Member portal shell — aligned with manage (topbar, shell, nav).
 */
body.page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg-base);
  line-height: 1.5;
}
.shell { max-width: 28rem; margin: 0 auto; padding: 2rem 1rem; }
.shell--wide { max-width: 56rem; }
.shell--full {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem clamp(1rem, 3vw, 2.5rem) 2.5rem;
}
.shell__header { margin-bottom: 1.5rem; }
.shell__title {
  font-size: 1.5rem;
  margin: 0 0 0.25rem;
  color: var(--color-brand-strong);
}
.shell__muted { color: var(--color-text-muted); margin: 0; font-size: 0.95rem; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  overflow: visible;
}
.topbar__brand { font-weight: 700; color: var(--color-text); text-decoration: none; }
.topbar__brand:hover { color: var(--color-brand-primary); }
.topbar__badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-brand-strong);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-left: 0.25rem;
}
.topbar__nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow: visible;
  flex: 1;
  min-width: 0;
  justify-content: flex-start;
}
.staff-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.85rem;
  overflow: visible;
}
.staff-nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
}
.staff-nav__link:hover { text-decoration: underline; color: var(--color-brand-primary); }
.staff-nav__link--active { font-weight: 700; color: var(--color-brand-primary); }
.staff-nav__dropdown { position: relative; display: inline-block; align-self: center; vertical-align: middle; }
.staff-nav__dropdown-summary { list-style: none; cursor: pointer; }
.staff-nav__dropdown-summary::-webkit-details-marker { display: none; }
.staff-nav__dropdown-summary::after {
  content: ''; display: inline-block; margin-left: 0.35rem; vertical-align: middle;
  border: solid currentColor; border-width: 0 0.1em 0.1em 0; padding: 0.2em;
  transform: rotate(45deg); margin-top: -0.15em; opacity: 0.75;
}
.staff-nav__dropdown[open] .staff-nav__dropdown-summary::after {
  margin-top: 0.1em; transform: rotate(-135deg);
}
.staff-nav__dropdown-panel {
  position: absolute; left: 0; top: calc(100% + 0.2rem);
  min-width: max(100%, 12rem); padding: 0.35rem 0; margin: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 200;
}
.staff-nav__dropdown-menu { list-style: none; margin: 0; padding: 0; }
.staff-nav__dropdown-menu li { margin: 0; }
.staff-nav__dropdown-item {
  display: block; padding: 0.45rem 0.85rem; font-size: 0.9rem; font-weight: 500;
  text-decoration: none; color: var(--color-text); white-space: nowrap;
}
.staff-nav__dropdown-item:hover {
  text-decoration: none; background: var(--color-info-bg); color: var(--color-brand-primary);
}
.staff-nav__dropdown--end { margin-left: auto; }
.staff-nav__dropdown--end .staff-nav__dropdown-panel { left: auto; right: 0; }
.staff-nav__dropdown-summary--account {
  max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.staff-nav__dropdown-meta {
  padding: 0.35rem 0.85rem 0.3rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0.2rem;
}
.staff-nav__dropdown-role {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--color-text-muted);
}
.staff-nav__dropdown-logout-form { margin: 0; }
.staff-nav__dropdown-item--button {
  width: 100%; box-sizing: border-box; display: block; padding: 0.45rem 0.85rem;
  font-size: 0.9rem; font-weight: 500; text-align: left; border: none; background: none;
  cursor: pointer; font-family: inherit; color: var(--color-text); white-space: nowrap;
}
.staff-nav__dropdown-item--button:hover {
  background: var(--color-info-bg); color: var(--color-brand-primary);
}
.member-content { max-width: 48rem; }
.link-list { padding-left: 1.25rem; line-height: 1.6; }
.link-list a { font-weight: 600; color: var(--color-brand-primary); }
.pager { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }

.member-content--wide { max-width: none; }

