/* The member portal at /p/<club>: one narrow column under the club's name, on top of app.css. */
body.portal { min-height: 100vh; display: flex; flex-direction: column; }
.portal-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.portal-inner { width: min(760px, 100%); margin: 0 auto; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; }
.portal-club { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 1.2; overflow-wrap: anywhere; }
.portal-club img { height: 36px; width: auto; max-width: 120px; object-fit: contain; flex: none; }
.portal-club span { min-width: 0; }
.portal-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.portal-nav a, .portal-nav button { display: inline-flex; align-items: center; min-height: 38px; padding: 0 10px; border-radius: 8px; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; }
.portal-nav a:hover, .portal-nav button:hover { background: var(--bg); }
.portal-nav a[aria-current="page"] { background: var(--brand-tint); color: var(--brand-deep); }
.portal-nav form { display: contents; }
.portal-main { width: min(760px, 100%); margin: 0 auto; padding: 24px 16px 40px; display: grid; gap: 20px; align-content: start; flex: 1; }
.portal-main :where(h1, h2, h3, p, li, dd, dt, .flash, strong) { overflow-wrap: break-word; }
.portal-main .card { min-width: 0; }
.portal-login { width: min(460px, 100%); justify-self: center; }
.portal-title { display: grid; gap: 4px; }
.portal-plan-head { justify-content: space-between; align-items: center; }
.portal-plan-head h2 { min-width: 0; overflow-wrap: anywhere; }
.portal-actions form { display: inline-flex; }
.portal-pay { border-top: 1px solid var(--line); padding-top: 14px; gap: 14px; }
.portal-upgrade > summary { list-style: none; width: fit-content; }
.portal-upgrade > summary::-webkit-details-marker { display: none; }
.portal-upgrade[open] > summary { margin-bottom: 14px; }
.portal-inline { align-items: end; }
.portal-inline .f { flex: 1 1 220px; }
.portal-intro { white-space: normal; }
.portal-foot { text-align: center; color: var(--muted); font-size: 13px; padding: 0 16px 28px; }
@media (max-width: 480px) {
  .portal-inner { padding: 10px 16px; }
  .portal-club { font-size: 18px; }
  .portal-nav { width: 100%; }
  .portal-main { padding-top: 18px; }
  .portal-main h1 { font-size: 26px; }
  .portal-pay .row .btn, .portal-actions .btn { flex: 1 1 auto; }
}
@media print {
  .portal-head, .portal-foot, .no-print { display: none !important; }
  .portal-main { padding: 0; width: 100%; }
  body.portal { background: #fff; display: block; }
}
