/* ---------------------------------------------------------------------------------------------
 * The member button of the header, the Membership page and the member area.
 * --------------------------------------------------------------------------------------------- */
.fa-sign-in::before { content: '\f090'; }
.fa-sign-out::before { content: '\f08b'; }
.fa-user::before { content: '\f007'; }
.fa-user-plus::before { content: '\f234'; }
.fa-pencil::before { content: '\f040'; }
.fa-refresh::before { content: '\f021'; }
.fa-key::before { content: '\f084'; }
.fa-lock::before { content: '\f023'; }
.fa-history::before { content: '\f1da'; }
.fa-check-circle::before { content: '\f058'; }

.icon-btn--member { color: #fff; background: var(--grad-primary); box-shadow: 0 8px 18px rgb(217 80 11 / 30%); }
.icon-btn--member:hover { color: #fff; background: var(--grad-primary); box-shadow: 0 12px 24px rgb(217 80 11 / 42%); }

/* Very small phones: the colour switch makes way, so the name of the festival still fits */
@media (max-width: 359.98px) {
  #theme-toggle { display: none; }
}

/* ---- shared ---- */
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

.form-alert { margin: 0 0 18px; padding: 14px 18px; border: 1px solid transparent; border-radius: var(--radius-sm); }
.form-alert--success { color: #14532d; background: #dcfce7; border-color: #86efac; }
.form-alert--error { color: #7f1d1d; background: #fee2e2; border-color: #fca5a5; }
.form-alert[hidden], .is-hidden { display: none !important; }

.note { padding: 12px 16px; background: var(--surface-2); border-left: 4px solid var(--saffron-500); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* ---- the Membership page ---- */
.membership-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.membership-grid__side { position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 1023.98px) {
  .membership-grid { grid-template-columns: minmax(0, 1fr); }
  .membership-grid__side { position: static; order: -1; }
}

.fee__amount { margin: 0 0 4px; font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; line-height: 1.1; color: var(--saffron-600); }
.fee__per { margin: 0 0 18px; font-weight: 600; color: var(--heading); }
.fee__title, .terms__title { margin: 0 0 8px; font-size: 1.05rem; }

.terms { margin: 8px 0 16px; }
.terms__text { max-height: 200px; padding: 14px 16px; overflow-y: auto; font-size: 0.95rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.terms__text p:last-child { margin-bottom: 0; }

.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; margin-bottom: 12px; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--saffron-600); }
.check label { font-weight: 500; }

.done__steps { margin: 0 0 20px; padding-left: 22px; }
.done__steps li { margin-bottom: 8px; }

/* ---- the member area ---- */
.member-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
@media (max-width: 899.98px) { .member-grid { grid-template-columns: minmax(0, 1fr); } }

.member-card { padding: clamp(22px, 3vw, 32px); }
.member-card__title { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 1.25rem; }
.member-card__title .fa { font-size: 0.85em; color: var(--saffron-600); }
.member-card__sub { margin: 18px 0 8px; font-size: 1rem; }
.member-login { max-width: 640px; margin-inline: auto; text-align: center; }
.member-login .member-card__title { justify-content: center; }
.member-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 18px 0; }
.member-actions--left { justify-content: flex-start; margin-bottom: 0; }
.staff-note { margin-bottom: 24px; border-top: 6px solid var(--indigo); }

.status { display: inline-block; padding: 4px 12px; font-size: 0.88rem; font-weight: 700; color: #fff; background: var(--muted); border-radius: var(--radius-sm); }
.status--active { background: var(--teal); }
.status--pending { background: var(--marigold); color: #1f1600; }
.status--expired, .status--suspended, .status--rejected { background: var(--magenta); }
.status--small { margin-left: 8px; padding: 2px 8px; font-size: 0.76rem; }
:root[data-theme='dark'] .status { color: #08101f; }
.member-chip { display: inline-block; margin-left: 8px; font-size: 0.88rem; font-weight: 600; color: var(--teal); }

.facts { display: grid; gap: 8px; margin: 14px 0; }
.facts > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.facts dt { font-weight: 600; color: var(--heading); }
.facts dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }

.rows { margin: 0; padding: 0; list-style: none; }
.rows__item { padding: 12px 0; border-top: 1px solid var(--border); }
.rows__item:first-child { border-top: 0; padding-top: 0; }
.rows__title { display: block; font-weight: 600; color: var(--heading); }
.rows__meta { display: block; font-size: 0.92rem; color: var(--muted); }

.account-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 24px; padding: 18px 24px; }
.account-bar p { margin: 0; }
.account-bar .fa-lock { color: var(--saffron-600); }

/* ---- registering for an event ---- */
.event-page__action { display: block !important; padding-top: 6px; }
.event-register { margin: 0; }
.event-register .btn { width: 100%; white-space: normal; }

.register-dialog { width: min(620px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; overflow: hidden; color: var(--text); background: var(--surface); border: 0; border-top: 6px solid var(--saffron-500); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.register-dialog::backdrop { background: rgb(3 8 20 / 62%); }
.register-dialog__box { display: flex; flex-direction: column; max-height: calc(100dvh - 30px); }
.register-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 24px 14px; border-bottom: 1px solid var(--border); }
.register-dialog__title { font-size: 1.3rem; }
.register-dialog__event { margin: 4px 0 0; color: var(--muted); }
.register-dialog__body { padding: 20px 24px 24px; overflow-y: auto; }
.register-dialog .note { margin: 0 0 18px; }
.register-member p { margin: 0 0 4px; }
.register-member p:last-child { margin: 0; }
.register-member .fa { color: var(--teal); }
.register-count { max-width: 160px; }
.register-select { padding-right: 34px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235b6170' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center; }
.event-page__facts .btn .fa { margin: 0; color: inherit; }
