/* =========================================================================
   Page-specific layouts
   Dashboard, About, Activities, Events, Announcements, Gallery,
   Prayer Resources, Subscriptions and My Account.
   ========================================================================= */

/* Dashboard -------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
  align-items: center;
  gap: 32px;
  margin-bottom: 24px;
  padding: 40px;
  border-radius: 24px;
  background: var(--brand-navy-900);
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(620px 320px at 100% 0%, rgba(58, 114, 194, 0.34), transparent 62%),
    radial-gradient(420px 260px at 0% 100%, rgba(201, 162, 39, 0.12), transparent 62%);
}
.hero::after {
  content: "";
  position: absolute;
  top: -140px;
  right: -120px;
  z-index: -1;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  box-shadow: 0 0 0 44px rgba(255, 255, 255, 0.025), 0 0 0 88px rgba(255, 255, 255, 0.018);
}
.hero :focus-visible { outline-color: var(--brand-gold-400); }

/* Group photo behind the hero and vision statement, under a navy overlay for contrast. */
.hero__photo { position: absolute; inset: 0; z-index: -3; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 31, 58, 0.96) 0%, rgba(11, 31, 58, 0.88) 55%, rgba(11, 31, 58, 0.74) 100%);
}
.hero__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.hero__brand > img { width: 52px; height: 52px; object-fit: contain; }
.hero__brand .affiliation__logo img { max-height: 40px; }

.affiliation-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
  margin-top: 20px;
  padding: 24px 28px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}
.affiliation-band__logos { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.affiliation-band__logos > img { width: 72px; height: 72px; object-fit: contain; }
.affiliation-band > div:last-child { flex: 1; min-width: 240px; }
.affiliation-band h2 { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.375rem; color: var(--brand-navy-900); }
.affiliation-band p { margin: 0; color: var(--color-text-muted); }

.feature-photo--short img { aspect-ratio: 16 / 5; }
.section-gap--none { margin-top: 0; }
.receipt__sda { margin-left: auto; }
.receipt__sda img { display: block; max-height: 36px; width: auto; }

.hero__greeting { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: #c0cde0; font-size: 0.9375rem; }
.hero__greeting .icon { color: var(--brand-gold-400); }
.hero__theme { margin: 0 0 10px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-gold-400); }
.hero__title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: #fff;
}
.hero__title em { color: var(--brand-gold-400); white-space: nowrap; }
.hero__motto { margin: 0 0 12px; font-family: var(--font-display); font-style: italic; font-size: 1.125rem; color: #e4ebf5; }
.hero__aim { max-width: 54ch; margin: 0 0 26px; color: #c9d4e5; font-size: 1.0313rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.sabbath-card {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}
.sabbath-card__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-gold-400);
}
.sabbath-card__count { display: flex; gap: 10px; margin-bottom: 14px; }
.sabbath-card__unit {
  flex: 1;
  padding: 10px 6px;
  border-radius: 12px;
  background: rgba(6, 20, 42, 0.35);
  text-align: center;
}
.sabbath-card__unit strong { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.1; }
.sabbath-card__unit span { font-size: 0.75rem; color: #9fb1cb; }
.sabbath-card__title { margin: 0 0 4px; font-family: var(--font-display); font-size: 1.375rem; color: #fff; }
.sabbath-card__text { margin: 0; color: #b8c6dc; font-size: 0.875rem; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { display: flex; align-items: center; gap: 14px; padding: 18px 20px; color: inherit; text-decoration: none; }
.stat__value { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1.15; color: var(--brand-navy-900); }
.stat__label { display: block; font-size: 0.8125rem; color: var(--color-text-subtle); }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }

.row-list { margin: 0; padding: 0; list-style: none; }
.row-list > li + li { border-top: 1px solid var(--color-border); }

.event-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 -12px;
  padding: 12px;
  width: calc(100% + 24px);
  border: 0;
  border-radius: 12px;
  background: none;
  text-align: left;
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.event-row:hover { background: var(--color-surface-muted); }
.event-row__main { flex: 1; min-width: 0; }
.event-row__title { display: block; margin-bottom: 4px; font-weight: 600; }
.event-row .chev { color: var(--color-text-subtle); transition: transform var(--dur) var(--ease); }
.event-row:hover .chev { transform: translateX(3px); }

.notice-row { display: block; padding: 14px 0; color: inherit; text-decoration: none; }
.row-list > li:first-child .notice-row { padding-top: 2px; }
.notice-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 0.8125rem; color: var(--color-text-subtle); }
.notice-row__title { display: block; margin-bottom: 4px; font-weight: 600; transition: color var(--dur) var(--ease); }
.notice-row__excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}
.notice-row:hover .notice-row__title { color: var(--brand-blue-600); }

.unread-dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: var(--brand-blue-500); }

.mini-activities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.activity-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.activity-mini:hover { border-color: #c4d4ea; background: var(--brand-blue-50); }
.activity-mini strong { display: block; font-size: 0.9375rem; line-height: 1.3; }
.activity-mini span span { display: block; margin-top: 2px; font-size: 0.8125rem; color: var(--color-text-subtle); }

.quick-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quick-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-text);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.quick-link .icon-tile { width: 34px; height: 34px; border-radius: 10px; }
.quick-link .icon-tile .icon { width: 18px; height: 18px; }
.quick-link:hover { border-color: #c4d4ea; background: var(--brand-blue-50); color: var(--brand-navy-900); }

.verse-card { border-color: #eee0b4; background: #fffaf0; }
.verse-card__label { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-gold-700); }
.verse-card__text { margin: 0 0 12px; font-family: var(--font-display); font-size: 1.1875rem; line-height: 1.5; color: var(--brand-navy-900); }
.verse-card__ref { margin: 0; font-size: 0.875rem; font-weight: 600; color: var(--brand-gold-700); }
.verse-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* Student photo (assets/images/students.jpg) ---------------------------- */
[data-photo].is-missing { display: none; }

.photo-card { position: relative; margin: 0; overflow: hidden; }
.photo-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 30%; }
.photo-card figcaption {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 48px 18px 16px;
  background: linear-gradient(transparent, rgba(6, 20, 42, 0.85));
  color: #fff;
}
.photo-card strong { display: block; font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; }
.photo-card figcaption span { display: block; font-size: 0.8125rem; color: #d3dceb; }
.photo-card :focus-visible { outline-color: var(--brand-gold-400); }

.feature-photo {
  position: relative;
  margin: 20px 0 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--brand-navy-900);
  box-shadow: var(--shadow-sm);
}
.feature-photo img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; object-position: center 30%; }
.feature-photo figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 64px 28px 22px;
  background: linear-gradient(transparent, rgba(6, 20, 42, 0.82));
  color: #fff;
}
.feature-photo strong { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.feature-photo span { color: #d3dceb; }

.auth__photo { position: absolute; inset: 0; z-index: -3; }
.auth__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.auth__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 31, 58, 0.78) 0%, rgba(11, 31, 58, 0.88) 55%, rgba(6, 20, 42, 0.96) 100%);
}

.page-note { margin-top: 24px; }
.form-top { margin-top: 20px; }
.legend-gap { margin-bottom: 6px; }
.section-gap { margin-top: 44px; }
.amount-due { color: var(--red-700); }
.inline-action { margin-left: 8px; }

/* About ------------------------------------------------------------------ */
.about-intro { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; }
.prose p { margin: 0 0 14px; color: var(--color-text-muted); line-height: 1.7; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { margin-bottom: 12px; font-size: 1.25rem; color: var(--brand-navy-900); }

.motto-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: 32px;
  border-radius: 20px;
  background: var(--brand-navy-900);
  color: #fff;
}
.motto-panel::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -90px;
  z-index: -1;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 36px rgba(255, 255, 255, 0.025);
}
.motto-panel blockquote { margin: 0; }
.motto-panel__label { margin: 0 0 8px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-gold-400); }
.motto-panel__quote { margin: 0 0 8px; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.3; }
.motto-panel cite { font-size: 0.8125rem; font-style: normal; color: #9fb1cb; }
.motto-panel hr { width: 48px; margin: 0; border: 0; border-top: 2px solid var(--brand-gold-500); }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.info-card { padding: 22px; }
.info-card h3 { margin: 16px 0 6px; font-size: 1.0625rem; }
.info-card p { margin: 0; color: var(--color-text-muted); font-size: 0.9375rem; }

.mission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }

.leaders-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.leader-card { padding: 24px 18px; text-align: center; }
.leader-card .avatar { margin: 0 auto 14px; }
.leader-card h3 { margin: 0 0 2px; font-size: 1rem; }
.leader-card p { margin: 0; color: var(--color-text-subtle); font-size: 0.875rem; }

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 44px;
  padding: 28px 32px;
  border: 1px solid #d3e0f3;
  border-radius: 20px;
  background: var(--brand-blue-50);
}
.cta-band h2 { margin: 0 0 4px; font-family: var(--font-display); font-size: 1.5rem; color: var(--brand-navy-900); }
.cta-band p { margin: 0; color: var(--color-text-muted); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Activities ------------------------------------------------------------- */
.rhythm {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}
.rhythm__day { padding: 14px; border: 1px solid var(--color-border); border-radius: 14px; background: var(--color-surface); }
.rhythm__day.is-today { border-color: var(--brand-navy-900); box-shadow: 0 0 0 1px var(--brand-navy-900); }
.rhythm__name { display: flex; align-items: center; justify-content: space-between; margin: 0 0 8px; font-size: 0.8125rem; font-weight: 700; color: var(--brand-navy-900); }
.rhythm__day ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.rhythm__day li { font-size: 0.8125rem; line-height: 1.35; color: var(--color-text-muted); }
.rhythm__day li.is-empty { color: var(--color-text-subtle); font-style: italic; }

.activities-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.activity-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.activity-card.is-joined { border-color: #b9dcc9; }
.activity-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.activity-card__title { margin: 0 0 6px; font-size: 1.125rem; }
.activity-card__desc { margin: 0; color: var(--color-text-muted); font-size: 0.9375rem; }
.activity-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}
.activity-card__members { display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; color: var(--color-text-subtle); }
.activity-card__members .icon { width: 16px; height: 16px; }

/* Events ----------------------------------------------------------------- */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.event-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.event-card.is-going { border-color: #b9dcc9; }
.event-card.is-past { background: var(--color-surface-muted); }
.event-card.is-past .date-block { background: #e7ecf3; }
.event-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.event-card__badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.event-card__title { margin: 0 0 8px; font-size: 1.125rem; line-height: 1.35; }
.event-card__desc { margin: 0; color: var(--color-text-muted); font-size: 0.9375rem; }
.event-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}
.event-card__footer .btn { position: relative; z-index: 1; }

.stretched-btn {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.stretched-btn::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); }
.stretched-btn:focus-visible { outline: none; }
.stretched-btn:focus-visible::after { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.event-card:hover .stretched-btn { color: var(--brand-blue-600); }

.capacity { flex: 1; min-width: 0; }
.capacity__label { margin-bottom: 6px; font-size: 0.75rem; color: var(--color-text-subtle); }

.event-detail__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.detail-list { display: grid; gap: 12px; margin: 0 0 20px; padding: 16px; border-radius: 14px; background: var(--color-surface-muted); }
.detail-list > div { display: flex; align-items: flex-start; gap: 12px; }
.detail-list dt { color: var(--brand-blue-600); }
.detail-list dt .icon { width: 18px; height: 18px; margin-top: 2px; }
.detail-list dd { margin: 0; font-size: 0.9375rem; font-weight: 500; }
.detail-list dd span { display: block; font-size: 0.8125rem; font-weight: 400; color: var(--color-text-subtle); }
.event-detail__text { color: var(--color-text-muted); line-height: 1.65; }

/* Announcements ---------------------------------------------------------- */
.announcements { display: flex; flex-direction: column; gap: 12px; }
.announcement { overflow: hidden; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.announcement:hover { box-shadow: var(--shadow-md); }
.announcement.is-unread { border-left: 3px solid var(--brand-blue-500); }
.announcement__heading { margin: 0; font-size: inherit; font-weight: inherit; }
.announcement__head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  padding: 20px 22px;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.announcement__main { flex: 1; min-width: 0; }
.announcement__title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 1.0313rem; font-weight: 600; }
.announcement__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 0.8125rem; color: var(--color-text-subtle); }
.announcement__excerpt { display: block; color: var(--color-text-muted); font-size: 0.9375rem; font-weight: 400; }
.announcement__chevron { margin-top: 10px; color: var(--color-text-subtle); transition: transform var(--dur) var(--ease); }
.announcement__head[aria-expanded="true"] .announcement__chevron { transform: rotate(180deg); }
.announcement__head[aria-expanded="true"] .announcement__excerpt { display: none; }
.announcement__body { padding: 0 22px 22px 82px; color: var(--color-text-muted); line-height: 1.7; animation: fade-in 200ms var(--ease); }
.announcement__body p { margin: 0 0 12px; }
.announcement__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* Gallery ---------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  grid-auto-rows: 210px;
  grid-auto-flow: dense;
  gap: 16px;
}
.gallery__item {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: #e7ecf3;
  cursor: zoom-in;
}
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: transform 500ms var(--ease), opacity 300ms var(--ease);
}
.gallery__item img.is-loaded { opacity: 1; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__caption {
  position: absolute;
  inset: auto 0 0;
  padding: 36px 16px 14px;
  background: linear-gradient(transparent, rgba(6, 20, 42, 0.8));
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: left;
}
.gallery__caption span { display: block; margin-top: 2px; font-size: 0.75rem; font-weight: 400; color: #d3dceb; }
.gallery__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-bottom: 56px;
  color: var(--color-text-subtle);
  font-size: 0.8125rem;
}
.gallery__fallback .icon { width: 28px; height: 28px; }

.lightbox { display: flex; flex-direction: column; gap: 14px; }
.lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 280px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--brand-navy-950);
}
.lightbox__stage img { max-height: 66vh; width: auto; max-width: 100%; object-fit: contain; }
.lightbox__nav {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-navy-900);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.lightbox__nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.lightbox__nav--prev { left: 14px; }
.lightbox__nav--next { right: 14px; }
.lightbox__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.875rem; color: var(--color-text-subtle); }
.lightbox__meta p { margin: 0; }
.lightbox__meta div { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* Prayer ----------------------------------------------------------------- */
.prayer-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.char-count { align-self: flex-end; font-variant-numeric: tabular-nums; }
.char-count.is-near { color: var(--amber-700); }

.schedule-list { margin: 0; padding: 0; list-style: none; }
.schedule-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--color-border); font-size: 0.9375rem; }
.schedule-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.schedule-list strong { display: block; font-weight: 600; }
.schedule-list span { color: var(--color-text-subtle); font-size: 0.8125rem; }
.schedule-list time { flex-shrink: 0; font-weight: 600; color: var(--brand-navy-900); font-variant-numeric: tabular-nums; }

.request-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.request-item { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.request-item.is-answered { border-color: #b9dcc9; background: #f6fcf9; }
.request-item__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.request-item__head time { margin-left: auto; font-size: 0.8125rem; color: var(--color-text-subtle); }
.request-item__text { margin: 0; color: var(--color-text); white-space: pre-line; overflow-wrap: anywhere; }
.request-item__by { margin: 0; font-size: 0.8125rem; color: var(--color-text-subtle); }
.request-item__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

.resource-card { display: flex; flex-direction: column; gap: 12px; padding: 22px; }
.resource-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.resource-card h3 { margin: 0; font-size: 1.0625rem; }
.resource-card__author { margin: 0; font-size: 0.8125rem; color: var(--color-text-subtle); }
.resource-card__desc { margin: 0; color: var(--color-text-muted); font-size: 0.9375rem; }
.resource-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--color-border); font-size: 0.8125rem; color: var(--color-text-subtle); }

.verses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.verse-tile { margin: 0; padding: 22px; }
.verse-tile blockquote { margin: 0 0 12px; font-family: var(--font-display); font-size: 1.0625rem; line-height: 1.55; color: var(--brand-navy-900); }
.verse-tile__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.verse-tile cite { font-size: 0.875rem; font-style: normal; font-weight: 600; color: var(--brand-gold-700); }

.reading { color: var(--color-text-muted); line-height: 1.7; }
.reading h3 { margin: 20px 0 8px; font-size: 1rem; color: var(--color-text); }
.reading ol, .reading ul { margin: 0 0 14px; padding-left: 20px; }
.reading li { margin-bottom: 6px; }

/* Subscriptions ---------------------------------------------------------- */
.membership { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; }
.membership-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 28px;
  border-radius: 20px;
  background: var(--brand-navy-900);
  color: #fff;
}
.membership-card::after {
  content: "";
  position: absolute;
  top: -110px;
  right: -80px;
  z-index: -1;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(255, 255, 255, 0.025);
}
.membership-card :focus-visible { outline-color: var(--brand-gold-400); }
.membership-card__top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.membership-card__label { margin: 0 0 6px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-gold-400); }
.membership-card__plan { margin: 0; font-family: var(--font-display); font-size: 1.5rem; color: #fff; }
.membership-card__number { margin: 4px 0 0; font-size: 0.875rem; color: #9fb1cb; font-variant-numeric: tabular-nums; }
.membership-card__dates { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 0.875rem; color: #c9d4e5; }
.membership-card .progress { background: rgba(255, 255, 255, 0.12); }
.membership-card__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.summary-list { display: grid; gap: 0; margin: 8px 0 0; }
.summary-list > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--color-border); }
.summary-list > div:last-child { border-bottom: 0; }
.summary-list dt { color: var(--color-text-muted); font-size: 0.9375rem; }
.summary-list dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 26px; }
.plan-card--featured { border: 2px solid var(--brand-gold-500); }
.plan-card__flag { position: absolute; top: -12px; left: 24px; }
.plan-card__name { margin: 0 0 4px; font-size: 1.125rem; }
.plan-card__desc { margin: 0; color: var(--color-text-muted); font-size: 0.9375rem; }
.plan-card__price { margin: 0; font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; line-height: 1; color: var(--brand-navy-900); }
.plan-card__price span { font-family: var(--font-sans); font-size: 0.875rem; font-weight: 500; color: var(--color-text-subtle); }
.feature-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9375rem; }
.feature-list .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--green-700); }
.plan-card .btn { margin-top: auto; }

.checkout-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding: 16px; border-radius: 14px; background: var(--color-surface-muted); }
.checkout-summary strong { display: block; }
.checkout-summary span { font-size: 0.875rem; color: var(--color-text-subtle); }
.checkout-summary__amount { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--brand-navy-900); }

/* Finance: member view -------------------------------------------------- */
.summary-list__note { display: block; font-size: 0.75rem; font-weight: 600; color: var(--red-700); }
.summary-list__foot { margin: 12px 0 0; font-size: 0.8125rem; color: var(--color-text-subtle); }
.admin-bar--spaced { margin-top: 16px; }

.due-list { display: grid; gap: 12px; }
.due-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; }
.due-card.is-overdue { border-left: 3px solid var(--red-700); }
.due-card__main { min-width: 0; }
.due-card__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.due-card h3 { margin: 0 0 4px; font-size: 1.0313rem; }
.due-card__meta { margin: 0; color: var(--color-text-muted); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.due-card__note { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; font-size: 0.875rem; color: var(--red-700); }
.due-card__note .icon { width: 16px; height: 16px; margin-top: 2px; }
.due-card__note--info { color: var(--brand-blue-600); }

.plans { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.plan-card .badge:first-child { margin-bottom: 8px; }
.plan-card__due { display: flex; align-items: center; gap: 6px; margin: -6px 0 0; font-size: 0.875rem; color: var(--color-text-muted); }
.plan-card__due .icon { width: 16px; height: 16px; }

.methods-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.method-card { padding: 22px; }
.method-card h3 { margin: 0 0 12px; font-size: 1.0625rem; }
.method-details { display: grid; gap: 8px; margin: 0; }
.method-details > div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--color-border); font-size: 0.9375rem; }
.method-details dt { color: var(--color-text-subtle); }
.method-details dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.method-instructions { margin: 12px 0 0; font-size: 0.875rem; color: var(--color-text-muted); white-space: pre-line; }
.methods-soon { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 0.875rem; color: var(--color-text-subtle); }
.methods-soon .icon { width: 16px; height: 16px; }

.method-panel { margin: 4px 0 20px; padding: 16px; border: 1px solid #d3e0f3; border-radius: 14px; background: var(--brand-blue-50); }
.method-panel__title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 0.9375rem; color: var(--brand-navy-900); }
.method-panel__title .icon { width: 18px; height: 18px; color: var(--brand-blue-600); }
.method-panel .method-details > div { border-color: #d3e0f3; }

.input--file { padding: 8px 10px; cursor: pointer; }
.input--file::file-selector-button {
  margin-right: 12px;
  padding: 6px 12px;
  border: 1px solid var(--color-border-strong);
  border-radius: 8px;
  background: var(--color-surface-muted);
  color: var(--color-text);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.notice--error { margin-bottom: 16px; border-color: #f1cbc7; background: var(--red-50); color: #7a1f1a; }
.notice--error > .icon { color: var(--red-700); }

.table__actions { white-space: nowrap; text-align: right; }
.table__actions .btn + .btn { margin-left: 6px; }

.status-guide { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 0; }
.status-guide > div { padding: 16px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.status-guide dt { margin-bottom: 8px; }
.status-guide dd { margin: 0; font-size: 0.875rem; color: var(--color-text-muted); }

.review-summary dt { min-width: 84px; font-size: 0.8125rem; font-weight: 600; color: var(--color-text-subtle); }
.review-summary + .notice { margin-top: 4px; }
.timeline--compact .timeline__item { padding-bottom: 14px; }
.timeline--compact .timeline__year { min-width: 92px; font-size: 0.8125rem; font-weight: 600; }
.timeline--compact h3 { font-size: 0.9375rem; }
.timeline--compact p { font-size: 0.875rem; }

.receipt { padding: 8px 4px; }
.receipt__head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 2px solid var(--brand-navy-900); }
.receipt__head strong { display: block; color: var(--brand-navy-900); }
.receipt__head span { font-family: var(--font-display); font-style: italic; font-size: 0.875rem; color: var(--color-text-muted); }
.receipt__title { margin: 0 0 12px; font-family: var(--font-display); font-size: 1.375rem; color: var(--brand-navy-900); }
.receipt__list { display: grid; gap: 0; margin: 0; }
.receipt__list > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--color-border); font-size: 0.9375rem; }
.receipt__list dt { color: var(--color-text-subtle); }
.receipt__list dd { margin: 0; font-weight: 600; text-align: right; }

#print-area { display: none; }
@media print {
  body.is-printing > *:not(#print-area) { display: none !important; }
  body.is-printing { background: #fff; }
  body.is-printing #print-area { display: block; max-width: 640px; margin: 0 auto; padding: 24px; }
}

/* Finance: admin -------------------------------------------------------- */
.section-gap--sm { margin-top: 20px; }
.panel-actions { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.panel-footnote { margin: 12px 0 20px; font-size: 0.8125rem; color: var(--color-text-subtle); }

.methods-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; margin-top: 20px; }
.method-form { padding: 22px; }
.method-form__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.method-form__head h3 { margin: 0 0 6px; font-size: 1.0625rem; }
.textarea--short { min-height: 80px; }

.report-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.report-tile { padding: 20px 22px; }
.report-tile h3 { margin: 0 0 10px; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-subtle); }
.report-tile dl { display: grid; gap: 8px; margin: 0; }
.report-tile dl > div { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9375rem; }
.report-tile dt { color: var(--color-text-muted); }
.report-tile dd { margin: 0; font-weight: 700; color: var(--brand-navy-900); font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .num, .summary-list dd { white-space: nowrap; }
.plan-card__price span { white-space: nowrap; }
.report-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

@media (max-width: 960px) {
  .report-columns { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .due-card { flex-direction: column; align-items: stretch; padding: 18px; }
  .methods-admin { grid-template-columns: 1fr; }
  .table__actions { text-align: right; white-space: normal; }
}

/* Calendar ---------------------------------------------------------------- */
.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.cal-card { padding: 20px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cal-head__label { margin: 0; font-family: var(--font-display); font-size: 1.25rem; color: var(--brand-navy-900); }
.cal-head__nav { display: flex; align-items: center; gap: 4px; }
.cal-grid { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.cal-grid th { padding: 4px 0 8px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-subtle); }
.cal-cell { padding: 0; vertical-align: top; }
.cal-day {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  min-height: 96px;
  padding: 6px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.cal-day:hover { border-color: #c4d4ea; background: var(--brand-blue-50); }
.cal-day[aria-pressed="true"] { border-color: var(--brand-navy-900); box-shadow: 0 0 0 1px var(--brand-navy-900); }
.cal-cell.is-outside .cal-day { background: var(--color-surface-muted); }
.cal-cell.is-outside .cal-day__num { color: #a0acbd; }
.cal-day__num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 0.8125rem; font-weight: 600; }
.cal-day.is-today .cal-day__num { background: var(--brand-gold-500); color: var(--brand-navy-950); }
.cal-day__items { display: grid; gap: 3px; min-width: 0; }
.cal-chip { display: block; overflow: hidden; padding: 1px 6px; border-radius: 5px; font-size: 0.6875rem; font-weight: 600; line-height: 1.5; white-space: nowrap; text-overflow: ellipsis; }
.cal-chip--blue { background: var(--brand-blue-50); color: var(--brand-blue-600); }
.cal-chip--gold { background: var(--brand-gold-100); color: var(--brand-gold-700); }
.cal-chip--teal { background: var(--teal-50); color: var(--teal-700); }
.cal-more { font-size: 0.6875rem; color: var(--color-text-subtle); }
.cal-day__dots { display: none; gap: 3px; }
.cal-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.cal-dot--blue { background: var(--brand-blue-500); }
.cal-dot--gold { background: var(--brand-gold-500); }
.cal-dot--teal { background: var(--teal-700); }
.chip .cal-dot { margin-right: 2px; }
.cal-hint { margin: 10px 4px 0; font-size: 0.75rem; color: var(--color-text-subtle); }
.cal-agenda { position: sticky; top: calc(var(--topbar-h) + 20px); }

.agenda { margin: 12px 0 0; padding: 0; list-style: none; }
.agenda > li + li { border-top: 1px solid var(--color-border); }
.agenda-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  width: 100%;
  padding: 12px 4px;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  border-radius: 10px;
  transition: background var(--dur) var(--ease);
}
.agenda-item:hover { background: var(--color-surface-muted); }
.agenda-item--static { cursor: default; }
.agenda-item--static:hover { background: none; }
.agenda-item__time { min-width: 46px; font-weight: 700; color: var(--brand-navy-900); font-variant-numeric: tabular-nums; }
.agenda-item__main { flex: 1; min-width: 160px; }
.agenda-item__title { display: block; font-weight: 600; }
.agenda-item__meta { display: inline-flex; align-items: center; gap: 4px; font-size: 0.8125rem; color: var(--color-text-subtle); }
.agenda-item__meta .icon { width: 14px; height: 14px; }
.agenda-day + .agenda-day { margin-top: 20px; }
.agenda-day__label { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 0.9375rem; color: var(--color-text-muted); }
.agenda-day .agenda { margin: 0; padding: 4px 16px; }

/* Notifications ---------------------------------------------------------- */
.notification-list { margin: 0; padding: 6px; list-style: none; }
.notification + .notification { border-top: 1px solid var(--color-border); }
.notification__link { display: flex; align-items: flex-start; gap: 14px; padding: 14px; border-radius: 12px; color: inherit; text-decoration: none; transition: background var(--dur) var(--ease); }
.notification__link:hover { background: var(--color-surface-muted); }
.notification.is-unread .notification__link { background: #f7faff; }
.notification.is-unread .notification__link:hover { background: var(--brand-blue-50); }
.notification__main { flex: 1; min-width: 0; }
.notification__title { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; font-weight: 600; }
.notification.is-unread .notification__title { color: var(--brand-navy-900); }
.notification__text { display: block; color: var(--color-text-muted); font-size: 0.9375rem; }
.notification__time { flex-shrink: 0; font-size: 0.8125rem; color: var(--color-text-subtle); }

/* Resource Library -------------------------------------------------------- */
.resource-card { position: relative; }
.resource-card__tools { display: flex; align-items: center; gap: 4px; position: relative; z-index: 1; }
.save-btn[aria-pressed="true"] { color: var(--brand-gold-700); }
.save-btn[aria-pressed="true"] .icon { fill: var(--brand-gold-500); stroke: var(--brand-gold-700); }
.resource-card h3 .stretched-btn { font-weight: 600; }
.resource-card:hover .stretched-btn { color: var(--brand-blue-600); }
.resource-card__programmes { overflow: hidden; text-align: right; white-space: nowrap; text-overflow: ellipsis; }
.resource-card__footer > span:first-child { display: inline-flex; flex-shrink: 0; align-items: center; gap: 4px; white-space: nowrap; }
.resource-card__footer .icon { width: 14px; height: 14px; }

/* Attendance register ---------------------------------------------------- */
.register { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.register__row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--color-border-strong); border-radius: 10px; cursor: pointer; }
.register__row:has(input:checked) { border-color: var(--green-700); background: var(--green-50); }
.register__row input { width: 18px; height: 18px; accent-color: var(--green-700); }
.register__row strong { display: block; font-size: 0.9375rem; }
.register__row span span { font-size: 0.8125rem; color: var(--color-text-subtle); }
.modal__count { margin-right: auto; align-self: center; font-weight: 600; color: var(--color-text-muted); }

/* Contact & feedback ----------------------------------------------------- */
.rating { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.rating__option { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border: 1px solid var(--color-border-strong); border-radius: 10px; cursor: pointer; text-align: center; }
.rating__option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating__option:has(input:checked) { border-color: var(--brand-navy-900); background: var(--brand-navy-900); color: #fff; }
.rating__option:has(input:focus-visible) { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.rating__num { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.rating__label { font-size: 0.6875rem; line-height: 1.2; color: inherit; opacity: 0.8; }
.help-link__title { display: block; }
.help-link__text { display: block; font-size: 0.8125rem; font-weight: 400; color: var(--color-text-subtle); }

.message-list { margin: 0; padding: 0; list-style: none; }
.message-item { padding: 16px 20px; }
.message-item + .message-item { border-top: 1px solid var(--color-border); }
.message-item__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.message-item__meta { margin: 4px 0 0; font-size: 0.8125rem; color: var(--color-text-subtle); }
.message-item__text { margin: 8px 0 0; color: var(--color-text-muted); white-space: pre-line; overflow-wrap: anywhere; }
.message-item__actions { margin-top: 10px; }

@media (max-width: 1100px) {
  .cal-layout { grid-template-columns: 1fr; }
  .cal-agenda { position: static; }
}
@media (max-width: 720px) {
  .cal-card { padding: 12px; }
  .cal-grid { border-spacing: 2px; }
  .cal-day { min-height: 52px; align-items: center; padding: 4px 2px; }
  .cal-day__items { display: none; }
  .cal-day__dots { display: flex; }
  .cal-hint { display: none; }
  .notification__link { flex-wrap: wrap; }
  .notification__link .icon-tile { width: 36px; height: 36px; }
  .notification__time { width: 100%; padding-left: 50px; }
}

/* Admin overview & members ---------------------------------------------- */
.task-list { margin: 0; }
.task {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  transition: background var(--dur) var(--ease);
}
a.task:hover { background: var(--color-surface-muted); }
.task .icon-tile { width: 38px; height: 38px; border-radius: 10px; }
.task .icon-tile .icon { width: 18px; height: 18px; }
.task__main { flex: 1; min-width: 0; }
.task__title { display: block; font-weight: 600; color: var(--color-text); text-decoration: none; }
a.task__title:hover { color: var(--brand-blue-600); text-decoration: underline; }
.task__meta { display: block; font-size: 0.8125rem; color: var(--color-text-subtle); }
.task .chev { color: var(--color-text-subtle); }

.quick-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 16px; }
.quick-actions .btn { justify-content: flex-start; white-space: normal; text-align: left; }
.quick-actions .btn:first-child { justify-content: center; }

.setup-card { border: 2px solid var(--brand-gold-500); }
.setup-card .btn { white-space: normal; text-align: left; }

.member-skeleton { height: 190px; border: 0; }
.member-skeleton--row { height: 48px; border-radius: 10px; }

.leader-card__badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.leader-card h3 { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }

/* My Account ------------------------------------------------------------- */
.account-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; align-items: start; }
.profile-card { position: sticky; top: calc(var(--topbar-h) + 20px); overflow: hidden; }
.profile-card__cover { height: 84px; background: var(--brand-navy-900); background-image: radial-gradient(320px 120px at 100% 0%, rgba(58, 114, 194, 0.45), transparent 70%); }
.profile-card__main { padding: 0 24px 24px; text-align: center; }
.profile-card .avatar--lg { margin: -48px auto 14px; border: 4px solid var(--color-surface); }
.profile-card__name { margin: 0 0 2px; font-size: 1.25rem; }
.profile-card__role { margin: 0 0 14px; color: var(--color-text-subtle); font-size: 0.9375rem; }
.profile-card__badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 20px; }
.profile-card__bio { margin: 0 0 18px; color: var(--color-text-muted); font-size: 0.9375rem; }
.profile-facts { display: grid; gap: 12px; margin: 0; padding-top: 18px; border-top: 1px solid var(--color-border); text-align: left; }
.profile-facts > div { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 0.875rem; }
.profile-facts dt { color: var(--color-text-subtle); }
.profile-facts dt .icon { width: 18px; height: 18px; }
.profile-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--color-border); }
.settings-row:last-child { border-bottom: 0; padding-bottom: 0; }
.settings-row:first-child { padding-top: 0; }
.settings-row__title { margin: 0; font-weight: 600; font-size: 0.9375rem; }
.settings-row__desc { margin: 2px 0 0; color: var(--color-text-subtle); font-size: 0.875rem; }

/* Shared ministry-page pieces ------------------------------------------ */
.cards-grid--3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
@media (min-width: 900px) { .cards-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.link-card { color: inherit; text-decoration: none; }
.link-card h3 { display: flex; align-items: center; gap: 6px; }
.link-card h3 .icon { width: 16px; height: 16px; color: var(--brand-blue-600); transition: transform var(--dur) var(--ease); }
.link-card:hover h3 .icon { transform: translateX(3px); }
.info-card__ref { margin-top: 8px !important; font-size: 0.8125rem !important; font-weight: 600; color: var(--brand-gold-700) !important; }

.category-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.category-link:hover { border-color: #c4d4ea; background: var(--brand-blue-50); }

.chip--link { min-height: 30px; padding: 0 12px; font-size: 0.8125rem; text-decoration: none; }
.chip--link:hover { background: var(--brand-blue-50); }

.timeline { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--color-border); }
.timeline__item { position: relative; display: flex; gap: 16px; padding: 0 0 20px 24px; }
.timeline__item::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand-gold-500); }
.timeline__year { flex-shrink: 0; font-weight: 700; color: var(--brand-navy-900); }
.timeline__item h3 { margin: 0 0 4px; font-size: 1rem; }
.timeline__item p { margin: 0; color: var(--color-text-muted); }

/* Vision ---------------------------------------------------------------- */
.vision-statement {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-bottom: 20px;
  padding: 40px;
  border-radius: 24px;
  background: var(--brand-navy-900);
  color: #fff;
}
.vision-statement::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -100px;
  z-index: -1;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 44px rgba(255, 255, 255, 0.025);
}
/* Install the app (dashboard banner and My Account card) */
.install { display: flex; align-items: flex-start; gap: 16px; }
.install--banner { position: relative; margin: 16px 0 4px; border: 1px solid var(--brand-gold-400); background: var(--brand-gold-100); }
.install__icon { flex-shrink: 0; width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 4px 12px rgba(6, 20, 42, 0.2); }
.install__main { flex: 1; min-width: 0; }
.install__main .card__title { margin-bottom: 4px; }
.install__text { margin: 0 0 10px; color: var(--color-text-muted); }
.install__text .icon { color: var(--green-700); vertical-align: -3px; }
.install__steps { margin: 0; padding-left: 20px; color: var(--color-text-muted); }
.install__steps li { margin-bottom: 4px; }
.install__close { position: absolute; top: 8px; right: 8px; }

/* Calendar admin tools */
.admin-bar__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.import-problems { margin: 8px 0 12px; padding-left: 18px; font-size: 0.875rem; color: var(--red-700); }
.agenda-item--static .btn { margin-left: auto; flex-shrink: 0; }

/* Activities: jump-to dropdown */
.activity-jump { align-items: center; gap: 12px; }
.activity-jump .field__label { display: inline-flex; align-items: center; gap: 6px; margin: 0; white-space: nowrap; }
.activity-jump .select { flex: 1; max-width: 420px; }
@media (max-width: 600px) { .activity-jump { flex-direction: column; align-items: stretch; } .activity-jump .select { max-width: none; } }

/* Gallery (live): a remove button over each photo for admins */
.gallery__cell { position: relative; min-width: 0; }
.gallery__cell > .gallery__item { width: 100%; height: 100%; }
.gallery__delete { position: absolute; top: 8px; right: 8px; z-index: 2; background: rgba(255, 255, 255, 0.92); color: var(--red-700); box-shadow: 0 2px 8px rgba(6, 20, 42, 0.25); }

/* Contact replies (live) */
.message-reply { margin-top: 10px; padding: 10px 14px; border-left: 3px solid var(--brand-blue-600); border-radius: 0 10px 10px 0; background: var(--brand-blue-50); }
.message-reply p { margin: 0; }
.message-reply__by { margin-bottom: 4px !important; font-size: 0.8125rem; font-weight: 600; color: var(--brand-blue-600); }
.message-quote { margin: 8px 0 0; padding: 10px 14px; border-left: 3px solid var(--color-border-strong); color: var(--color-text-muted); white-space: pre-wrap; }

/* Payments (live) */
.pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 28px; }
.pay-status .eyebrow { margin-bottom: 4px; }
.pay-status__month { margin: 0 0 10px; font-family: var(--font-display); font-size: 1.25rem; color: var(--brand-navy-900); }
.pay-status__text { margin: 10px 0 14px; color: var(--color-text-muted); }
.owed-list { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.owed-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--color-border); }
.owed-list li:last-child { border-bottom: 0; }
.pay-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 28px; }
.pay-method__title { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 1.0625rem; color: var(--brand-navy-900); }
.pay-method__number { margin: 0 0 6px; font-size: 1.5rem; font-weight: 700; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; color: var(--color-text); }
.pay-method__name { margin: 0 0 6px; font-size: 0.875rem; color: var(--color-text-muted); }
.pay-method__text { margin: 0; font-size: 0.875rem; color: var(--color-text-muted); }
.receipt__sign { margin: 28px 0 8px; color: var(--color-text-muted); }
.receipt__theme { margin: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-gold-700); }

/* Prayer requests (live) */
.prayer-sender { margin: 0; padding: 10px 0; font-weight: 600; color: var(--color-text); }

/* Event registrations list */
.registrations__count { margin: 12px 0; color: var(--color-text-muted); }

/* Membership approved welcome */
.approval { text-align: center; }
.approval__icon { display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 12px; border-radius: 50%; background: var(--green-50); color: var(--green-700); }
.approval__icon .icon { width: 40px; height: 40px; }
.approval__title { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--brand-navy-900); }
.approval__text { margin: 0 0 14px; color: var(--color-text-muted); }
.approval .feature-list { text-align: left; max-width: 420px; margin: 0 auto 16px; }
.approval__theme { margin: 0; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-gold-700); }

/* Documents library */
.doc-group + .doc-group { margin-top: 28px; }
.doc-group__title { margin-bottom: 12px; }
.doc-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.doc-row { display: flex; align-items: center; gap: 16px; padding: 16px 20px; }
.doc-row__icon { flex-shrink: 0; }
.doc-row__main { flex: 1; min-width: 0; }
.doc-row__title { margin: 0; font-size: 1rem; font-weight: 600; color: var(--color-text); overflow-wrap: anywhere; }
.doc-row__desc { margin: 4px 0 0; font-size: 0.875rem; color: var(--color-text-muted); }
.doc-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 6px 0 0; font-size: 0.8125rem; color: var(--color-text-subtle); }
.doc-row__actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
@media (max-width: 600px) {
  .doc-row { flex-wrap: wrap; }
  .doc-row__actions { width: 100%; justify-content: flex-end; }
}

/* The association's theme, shown above the vision statement */
.theme-band { margin-bottom: 16px; padding: 22px 28px; border: 1px solid var(--brand-gold-400); border-left-width: 6px; border-radius: var(--radius-lg, 16px); background: var(--brand-gold-100); }
.theme-band__label { margin: 0 0 6px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-gold-700); }
.theme-band__text { margin: 0; font-family: var(--font-display); font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem); font-weight: 600; line-height: 1.25; color: var(--brand-navy-900); }
.vision-statement__label { margin: 0 0 12px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-gold-400); }
.vision-statement__text { max-width: 30ch; margin: 0; font-family: var(--font-display); font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); font-weight: 600; line-height: 1.25; color: #fff; }

.statement-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.pillars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.pillar { padding: 20px; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); text-align: center; }
.pillar .icon-tile { margin: 0 auto 12px; }
.pillar h3 { margin: 0 0 4px; font-size: 1rem; }
.pillar p { margin: 0; font-size: 0.875rem; color: var(--color-text-muted); }

/* Leadership ------------------------------------------------------------ */
.structure { display: grid; gap: 0; max-width: 760px; margin: 0; padding: 0; list-style: none; }
.structure__level { position: relative; display: flex; gap: 16px; padding-bottom: 18px; }
.structure__level:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--color-border); }
.structure__step {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-navy-900);
  color: var(--brand-gold-400);
  font-family: var(--font-display);
  font-weight: 600;
}
.structure__level h3 { margin: 8px 0 2px; font-size: 1rem; }
.structure__level p { margin: 0; color: var(--color-text-muted); font-size: 0.9375rem; }

.departments-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.department-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.department-card__head { display: flex; align-items: center; gap: 12px; }
.department-card__head h3 { margin: 0; font-size: 1.0625rem; }
.department-card__list { margin: 0; padding-left: 18px; color: var(--color-text-muted); font-size: 0.9375rem; }
.department-card__list li + li { margin-top: 4px; }

.leader-card { position: relative; }
.leader-card .badge { margin-top: 10px; }
.leader-profile { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 8px; text-align: center; }
.leader-profile__role { margin: 0; font-weight: 600; color: var(--color-text-muted); }
.modal-subheading { margin: 20px 0 10px; font-size: 0.9375rem; }
.modal-footnote { margin: 20px 0 0; font-size: 0.8125rem; color: var(--color-text-subtle); }

/* Evangelism ------------------------------------------------------------ */
.initiatives { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.initiative-card { display: flex; flex-direction: column; gap: 12px; padding: 22px; }
.initiative-card h3 { margin: 4px 0 0; font-size: 1.125rem; }
.initiative-card > p { margin: 0; color: var(--color-text-muted); font-size: 0.9375rem; }
.initiative-card__links { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--color-border); }

.pathway { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.pathway__step { position: relative; padding: 20px; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); }
.pathway__num {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--brand-gold-100);
  color: var(--brand-gold-700);
  font-weight: 700;
}
.pathway__step h3 { margin: 0 0 4px; font-size: 1rem; }
.pathway__step p { margin: 0; font-size: 0.875rem; color: var(--color-text-muted); }
.evangelism-layout { margin-top: 44px; }
.mini-activities--wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* Programmes ------------------------------------------------------------ */
.stretched-btn { text-decoration: none; }
.activity-card { position: relative; }
.activity-card__badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.activity-card__category { margin: 0 0 4px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-subtle); }
.activity-card:hover .stretched-btn { color: var(--brand-blue-600); }
.activity-card__footer .btn { position: relative; z-index: 1; }

.programme-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}
.programme-hero__icon { width: 64px; height: 64px; border-radius: 18px; }
.programme-hero__icon .icon { width: 30px; height: 30px; }
.programme-hero__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.programme-hero__meta { margin-top: 16px; }
.programme-hero__actions { display: flex; flex-direction: column; gap: 10px; }

.programme-notice { margin-bottom: 20px; }

.next-event {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin-bottom: 24px;
  padding: 14px 18px;
  border: 1px solid #d3e0f3;
  border-radius: 16px;
  background: var(--brand-blue-50);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.next-event:hover { border-color: var(--brand-blue-500); box-shadow: var(--shadow-sm); }
.next-event > span { flex: 1; min-width: 0; }
.next-event strong { display: block; margin: 2px 0; }
.next-event span span { display: block; font-size: 0.875rem; color: var(--color-text-muted); }
.next-event .next-event__label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-blue-600); }
.next-event .date-block { background: var(--color-surface); }
.next-event .chev { color: var(--color-text-subtle); }

.programme-overview { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.feature-list--spaced { margin-top: 14px; }
.related-list { margin-top: 8px; }
.related-list a { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--color-text); font-weight: 600; font-size: 0.9375rem; text-decoration: none; }
.related-list a:hover { color: var(--brand-blue-600); }
.related-list .icon-tile { width: 34px; height: 34px; border-radius: 10px; }
.related-list .icon-tile .icon { width: 18px; height: 18px; }
.related-list .chev { margin-left: auto; color: var(--color-text-subtle); }
.panel-subheading { margin: 32px 0 14px; font-size: 1rem; color: var(--color-text-muted); }
.card__body--flush { padding: 6px 24px; }

.meta__link a { position: relative; z-index: 1; color: var(--color-link); font-weight: 500; text-decoration: none; }
.meta__link a:hover { text-decoration: underline; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1100px) {
  .pillars, .pathway { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .statement-grid { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .programme-overview { grid-template-columns: 1fr; }
  .programme-hero { grid-template-columns: auto minmax(0, 1fr); }
  .programme-hero__actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 720px) {
  .pillars, .pathway { grid-template-columns: 1fr 1fr; }
  .vision-statement { padding: 28px 22px; }
  .programme-hero { grid-template-columns: 1fr; padding: 22px; }
  .programme-hero__icon { width: 52px; height: 52px; }
}

@media (max-width: 1200px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rhythm { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .plans { grid-template-columns: 1fr; max-width: 560px; }
  .account-layout { grid-template-columns: 1fr; }
  .profile-card { position: static; }
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding: 32px; }
  .dash-grid, .about-intro, .prayer-layout, .membership { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .hero { padding: 26px 22px; border-radius: 20px; gap: 24px; }
  .stats { gap: 12px; }
  .event-row .chev { display: none; }
  .stat { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
  .mini-activities, .mission-grid { grid-template-columns: 1fr; }
  .rhythm { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .announcement__head { gap: 12px; padding: 18px 16px; }
  .announcement__head .icon-tile { display: none; }
  .announcement__body { padding: 0 16px 18px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 10px; }
  .gallery__caption { padding: 28px 10px 10px; font-size: 0.8125rem; }
  .cta-band { padding: 24px 20px; }
  .feature-photo img { aspect-ratio: 4 / 3; }
  .feature-photo figcaption { padding: 48px 18px 16px; }
  .feature-photo strong { font-size: 1.25rem; }
  .card--pad { padding: 20px; }
  .card__header { padding: 18px 20px 0; }
  .card__body { padding: 0 20px 20px; }
  .event-card, .activity-card { padding: 18px; }
}

@media (max-width: 420px) {
  .quick-links { grid-template-columns: 1fr; }
  .lightbox__nav { width: 38px; height: 38px; }
}

/* What's new ------------------------------------------------------------- */
.news-list { margin: 0; padding: 0; list-style: none; }
.news-list > li + li { border-top: 1px solid var(--color-border); }
.news-row { display: flex; align-items: center; gap: 14px; padding: 14px 20px; color: inherit; text-decoration: none; }
.news-row:hover { background: var(--color-surface-muted); }
.news-row:focus-visible { outline-offset: -3px; }
.news-row .icon-tile { flex-shrink: 0; }
.news-row__main { display: grid; gap: 3px; min-width: 0; flex: 1; }
.news-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--color-text-subtle); font-size: 0.8125rem; }
.news-row__title { font-weight: 600; color: var(--brand-navy-900); }
.news-row__text { color: var(--color-text-muted); font-size: 0.875rem; overflow-wrap: anywhere; }
.news-row .chev { flex-shrink: 0; color: var(--color-text-subtle); }
.whats-new-card .news-row { padding-left: 24px; padding-right: 24px; }

/* Members: photo next to the name; profile photo buttons --------------- */
.member-cell { display: flex; align-items: center; gap: 10px; }
.profile-card__photo { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 6px; }
.profile-card__photo label.is-loading { opacity: 0.6; pointer-events: none; }
.profile-card__hint { margin: 0 0 14px; color: var(--color-text-subtle); font-size: 0.75rem; }

/* Finance: balance and reminders ---------------------------------------- */
.stat--feature .stat__value { color: var(--green-700, #15803d); }
.radio-cards--stack { grid-template-columns: 1fr; }
.remind-pick { display: grid; gap: 10px; }
.remind-pick__list { display: grid; gap: 8px; max-height: 240px; overflow-y: auto; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-md, 10px); }

@media (max-width: 640px) {
  .news-row { padding: 12px 16px; gap: 12px; }
  .whats-new-card .news-row { padding-left: 16px; padding-right: 16px; }
}

/* Events: who's registered, tick-any questions, quick-add questions */
.reg-list { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--color-border); }
.reg-list__title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 1rem; color: var(--brand-navy-900); }
.reg-list__names { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 16px; max-height: 260px; overflow-y: auto; }
.check-list { display: grid; gap: 8px; margin-top: 4px; }
.question-presets { align-items: center; margin: 4px 0 12px; }
.question-presets .field__hint { margin: 0 4px 0 0; }

/* Event cards: who's registered, beside the Register button */
.event-card__status { flex: 1; min-width: 0; display: grid; gap: 8px; }
.registered-line { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 0.75rem; color: var(--color-text-subtle); }
.registered-line > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar-stack { display: inline-flex; flex-shrink: 0; }
.avatar-stack .avatar + .avatar { margin-left: -8px; }
.avatar--xs { width: 24px; height: 24px; font-size: 0.625rem; box-shadow: 0 0 0 2px var(--color-surface, #fff); }

/* Home: new prayer requests, impossible to miss */
.prayer-alert {
  display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding: 14px 18px;
  border: 1px solid var(--brand-gold-500); border-radius: 14px; background: var(--brand-gold-100);
  color: var(--brand-navy-900); text-decoration: none;
}
.prayer-alert:hover { background: #fbeec0; }
.prayer-alert__icon { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-gold-500); color: var(--brand-navy-950); }
.prayer-alert strong { display: block; font-size: 1rem; }
.prayer-alert > span:nth-child(2) > span { font-size: 0.875rem; color: #5e4708; }
.prayer-alert__go { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-weight: 600; white-space: nowrap; }
@media (max-width: 640px) { .prayer-alert__go { display: none; } }

/* ---- Liveliness: colour accents, page entrance, celebrations (all calm, all optional motion) ---- */
/* A strip in the category's colour along the top of event and programme cards. */
.card[class*="accent-"] { border-top-width: 4px; border-top-color: var(--accent); }
.card.accent-blue { --accent: var(--brand-blue-600); }
.card.accent-gold { --accent: var(--brand-gold-500); }
.card.accent-green { --accent: var(--green-700); }
.card.accent-violet { --accent: var(--violet-700); }
.card.accent-rose { --accent: var(--rose-700); }
.card.accent-teal { --accent: var(--teal-700); }
.card.accent-red { --accent: var(--red-700); }
.card.accent-navy { --accent: var(--brand-navy-900); }
.card.accent-neutral { --accent: #c3ccd9; }

/* Arriving on a page: its sections rise into place one after another. */
@keyframes rise-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.page.is-entering > * { animation: rise-in 360ms var(--ease) both; }
.page.is-entering > *:nth-child(2) { animation-delay: 40ms; }
.page.is-entering > *:nth-child(3) { animation-delay: 80ms; }
.page.is-entering > *:nth-child(4) { animation-delay: 120ms; }
.page.is-entering > *:nth-child(5) { animation-delay: 160ms; }
.page.is-entering > *:nth-child(n+6) { animation-delay: 200ms; }

/* Confetti for happy moments (ui.celebrate). */
.confetti { position: fixed; inset: 0; z-index: 9999; pointer-events: none; overflow: hidden; }
.confetti span {
  position: absolute; width: 8px; height: 12px; border-radius: 2px; opacity: 0;
  animation: confetti-burst 1100ms cubic-bezier(0.15, 0.7, 0.3, 1) forwards;
}
.confetti span:nth-child(3n) { width: 7px; height: 7px; border-radius: 50%; }
@keyframes confetti-burst {
  0% { opacity: 1; transform: translate(0, 0) rotate(0); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) + 90px)) rotate(var(--spin)); }
}

/* Buttons respond to a press. */
.btn:active:not(:disabled) { transform: translateY(1px) scale(0.98); }

.hero__date { font-weight: 400; opacity: 0.8; }

/* Event page: details on the left, "Who's going" in its own panel on the right (stacked on phones). */
.event-detail--split { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; align-items: start; }
.going-panel {
  position: sticky; top: 0; display: grid; gap: 12px; padding: 16px;
  border: 1px solid var(--color-border); border-radius: 14px; background: var(--color-surface-muted);
}
.going-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.going-panel__head h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1rem; color: var(--brand-navy-900); }
.going-panel__count { font-size: 1.25rem; font-weight: 700; color: var(--brand-navy-900); }
.going-panel__count small { font-size: 0.75rem; font-weight: 500; color: var(--color-text-subtle); }
.going-panel__list { display: grid; gap: 10px; max-height: 360px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.going-panel__person { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; }
.going-panel__person.is-me { background: var(--brand-gold-100); }
.going-panel__person strong { display: block; font-size: 0.9375rem; color: var(--color-text); }
.going-panel__person span > span { display: block; font-size: 0.75rem; color: var(--color-text-subtle); }
.going-panel__empty { margin: 8px 0; color: var(--color-text-muted); font-size: 0.9375rem; text-align: center; }
.going-panel__more, .going-panel__note { margin: 0; font-size: 0.75rem; color: var(--color-text-subtle); }
.avatar--sm { width: 36px; height: 36px; font-size: 0.8125rem; flex-shrink: 0; }
@media (max-width: 720px) {
  .event-detail--split { grid-template-columns: 1fr; }
  .going-panel { position: static; }
}

/* The treasurer's signature: the pad on Finance, and on receipts. */
.signature-card { display: grid; gap: 12px; }
.signature-pad { width: 100%; max-width: 600px; height: auto; aspect-ratio: 10 / 3; border: 1px dashed #b8c4d6; border-radius: 12px; background: #fff; touch-action: none; cursor: crosshair; }
.signature-current { display: grid; justify-items: start; gap: 2px; }
.signature-current img, .receipt__sign--image img { max-width: 220px; max-height: 70px; }
.signature-current span, .receipt__sign--image span { font-size: 0.8125rem; color: var(--color-text-subtle); }
.receipt__sign--image { display: grid; justify-items: start; gap: 2px; padding-top: 6px; border-top: 1px solid var(--color-border); }

/* Signature from a photo (js/signature.js) */
.signature-card .tabs { margin: 4px 0 10px; }
.signature-card .file-btn { cursor: pointer; }
.signature-card .file-btn:focus-within { outline: 2px solid var(--brand-blue-600); outline-offset: 2px; }
.signature-preview { margin-top: 10px; padding: 12px; max-width: 600px; border: 1px dashed #b8c4d6; border-radius: 12px; background: #fff; }
.signature-preview img { display: block; max-width: 100%; max-height: 120px; }

/* Registration forms with sections (e.g. the Zunde form) */
.reg-section { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--color-border); }
.reg-section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.reg-section__title { margin: 0 0 2px; font-size: 1rem; color: var(--brand-blue-800, #0b1f3a); }
.question-row--heading { background: var(--color-surface); border-left: 4px solid var(--brand-gold-500, #d4a017); }
.chip--strong { border-color: var(--brand-gold-500, #d4a017); font-weight: 600; }

/* Last seen on the Members page */
.last-seen { display: flex; align-items: center; gap: 5px; margin-top: 4px; }
.last-seen--online { color: var(--green-700, #15803d); font-weight: 600; }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }

/* =========================================================================
   Phones (720px and narrower): less above the content, thumb-friendly.
   Computers and tablets are not affected.
   ========================================================================= */

@media (max-width: 720px) {

  /* Page headings: the menu already says where you are, so keep them short. */
  .page-header { gap: 12px; margin-bottom: 16px; }
  .page-header > div { min-width: 0; }
  .eyebrow { display: none; }
  .page-title { font-size: 1.4375rem; }
  .page-subtitle {
    margin-top: 6px; font-size: 0.875rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .section-nav { margin-top: 10px; gap: 6px; }
  .section-nav .chip { min-height: 32px; padding: 0 12px; font-size: 0.8125rem; }
  .page-header__actions { width: 100%; gap: 8px; }
  .page-header__actions .btn { flex: 1 1 auto; justify-content: center; }

  /* Filters: tabs on one line (swipe for more), search on its own row, menus side by side. */
  .toolbar { gap: 10px; margin-bottom: 14px; }
  .toolbar > .tabs {
    display: flex; flex-wrap: nowrap; width: 100%; overflow-x: auto; scrollbar-width: none;
  }
  .toolbar > .tabs::-webkit-scrollbar { display: none; }
  .toolbar > .tabs .tab { flex: 1 0 auto; justify-content: center; white-space: nowrap; padding: 0 12px; }
  .toolbar__group { flex-wrap: wrap; gap: 8px; width: 100%; }
  .toolbar__group > .search { flex: 1 1 100%; min-width: 0; max-width: none; }
  .toolbar__group > .select, .toolbar__group > select { flex: 1 1 0; min-width: 0; max-width: none; }
  .toolbar__group > .check { flex: 0 0 auto; }
  .results-summary { margin-bottom: 10px; font-size: 0.8125rem; }

  /* Home: a compact welcome. Logos are in the top bar, and Events and Prayer are in the tab bar. */
  .hero { padding: 20px 18px; gap: 16px; margin-bottom: 16px; }
  .hero__brand, .hero__theme, .hero__aim, .hero__date { display: none; }
  .hero__greeting { margin-bottom: 8px; font-size: 0.875rem; }
  .hero__title { margin-bottom: 6px; font-size: 1.5rem; }
  .hero__motto { margin-bottom: 0; font-size: 1rem; }
  .sabbath-card { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 14px; border-radius: 14px; }
  .sabbath-card__label { flex: 1 1 100%; margin: 0; }
  .sabbath-card__count { flex: 0 0 auto; gap: 6px; margin: 0; }
  .sabbath-card__unit { padding: 6px 10px; }
  .sabbath-card__unit strong { font-size: 1.125rem; }
  .sabbath-card__text { flex: 1 1 0; min-width: 120px; font-size: 0.75rem; }
  .stat { flex-direction: row; align-items: center; gap: 10px; padding: 12px; }
  .stat .icon-tile { width: 36px; height: 36px; }
  .stats { margin-bottom: 16px; }

  /* Cards: smaller icons and padding. */
  .event-card, .activity-card { gap: 10px; padding: 16px; }
  .activity-card__head .icon-tile, .activity-card .icon-tile--lg { width: 40px; height: 40px; }
  .event-card__title, .activity-card__title { font-size: 1.0625rem; }
  .card--pad { padding: 16px; }
  .card__header { padding: 16px 16px 0; }
  .card__body { padding: 0 16px 16px; }
  .card__intro { font-size: 0.875rem; }
}
.install__how summary { cursor: pointer; font-weight: 600; color: var(--brand-blue-600); font-size: 0.875rem; }
.install__how[open] summary { margin-bottom: 6px; }

@media (max-width: 720px) {
  .install--banner { gap: 12px; margin: 0 0 16px; padding: 14px 40px 14px 14px; }
  .install--banner .install__icon { width: 40px; height: 40px; border-radius: 10px; }
  .install--banner .install__text { margin-bottom: 6px; font-size: 0.875rem; }
}

/* Library search: always first, big and easy to tap. */
.library-search { display: grid; gap: 12px; margin-bottom: 20px; }
.search--big { max-width: 640px; }
.search--big .input { min-height: 50px; font-size: 1rem; border-radius: 14px; }

/* =========================================================================
   Colour: each page carries the colour of its menu tile.
   ========================================================================= */
.page-header--blue   { --tone-bg: var(--brand-blue-50); --tone-ink: var(--brand-blue-600); }
.page-header--gold   { --tone-bg: var(--brand-gold-100); --tone-ink: var(--brand-gold-700); }
.page-header--green  { --tone-bg: var(--green-50); --tone-ink: var(--green-700); }
.page-header--violet { --tone-bg: var(--violet-50); --tone-ink: var(--violet-700); }
.page-header--rose   { --tone-bg: var(--rose-50); --tone-ink: var(--rose-700); }
.page-header--teal   { --tone-bg: var(--teal-50); --tone-ink: var(--teal-700); }

/* The title band: a soft wash of the page's colour, with its icon. */
.page-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid color-mix(in srgb, var(--tone-ink, #2c5ea8) 14%, transparent);
  border-radius: 20px;
  background: linear-gradient(120deg, var(--tone-bg, #eff4fb) 0%, #fff 70%);
}
.page-header::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -60px;
  top: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--tone-ink, #2c5ea8) 16%, transparent) 0%, transparent 70%);
}
.page-header__icon {
  align-self: flex-start;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 16px;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--tone-ink, #2c5ea8) 22%, transparent);
}
.page-header__icon .icon { width: 26px; height: 26px; }
.page-header__text { flex: 1 1 320px; min-width: 0; }
.page-header .eyebrow { color: var(--tone-ink, var(--brand-gold-700)); }
.page-header .eyebrow::before { background: var(--tone-ink, var(--brand-gold-500)); }

/* A warmer background instead of flat grey. */
body {
  background:
    radial-gradient(1100px 520px at 0% -10%, rgba(58, 114, 194, 0.09), transparent 60%),
    radial-gradient(900px 480px at 100% 0%, rgba(201, 162, 39, 0.10), transparent 55%),
    var(--color-bg);
  background-attachment: fixed;
}

/* Section titles get a small coloured bar. */
.section-title { display: flex; align-items: center; gap: 10px; }
.section-title::before {
  content: ""; flex-shrink: 0; width: 6px; height: 1.1em; border-radius: 3px;
  background: linear-gradient(180deg, var(--brand-gold-400), var(--brand-blue-500));
}

/* Home tiles: tinted in their colour. */
.stat--blue   { background: linear-gradient(135deg, var(--brand-blue-50) 0%, var(--brand-blue-50) 45%, #fff 100%); border-color: transparent; }
.stat--green  { background: linear-gradient(135deg, var(--green-50) 0%, var(--green-50) 45%, #fff 100%); border-color: transparent; }
.stat--rose   { background: linear-gradient(135deg, var(--rose-50) 0%, var(--rose-50) 45%, #fff 100%); border-color: transparent; }
.stat--violet { background: linear-gradient(135deg, var(--violet-50) 0%, var(--violet-50) 45%, #fff 100%); border-color: transparent; }
.stat--gold   { background: linear-gradient(135deg, var(--brand-gold-100) 0%, var(--brand-gold-100) 45%, #fff 100%); border-color: transparent; }
.stat--teal   { background: linear-gradient(135deg, var(--teal-50) 0%, var(--teal-50) 45%, #fff 100%); border-color: transparent; }

/* Selected filters: a touch of brand colour. */
.chip[aria-pressed="true"], .section-nav .chip[aria-current="page"] {
  background: linear-gradient(135deg, var(--brand-navy-900), var(--brand-blue-600));
  border-color: transparent;
}
.tab[aria-pressed="true"], .tab[aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--brand-gold-500), var(--shadow-xs); }

@media (max-width: 720px) {

  .page-header { padding: 14px 16px; border-radius: 16px; gap: 10px 12px; }
  .page-header::after { width: 150px; height: 150px; right: -50px; top: -60px; }
  .page-header__icon { width: 40px; height: 40px; border-radius: 12px; }
  .page-header__icon .icon { width: 21px; height: 21px; }
  .page-header__text { flex-basis: 0; }
}

@media print {
  body { background: #fff; }
  .page-header { background: none; border: 0; }
  .page-header__icon, .page-header::after { display: none; }
}

/* Programme and department pages: a quiet bar above their Library shelf. */
.programme-library__bar { align-items: center; }
.programme-library__bar .field__hint { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.programme-library__bar .icon { width: 16px; height: 16px; }

/* =========================================================================
   Phones, part 2: one-line chip rows, compact rows and headers.
   ========================================================================= */
@media (max-width: 720px) {
  /* Rows of chips scroll sideways on one line instead of stacking. */
  .section-nav,
  .library-search .chip-group,
  .toolbar > .chip-group,
  .tabs--line {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin-right: calc(-1 * var(--gutter));
    padding-right: var(--gutter);
    mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .section-nav::-webkit-scrollbar, .library-search .chip-group::-webkit-scrollbar,
  .toolbar > .chip-group::-webkit-scrollbar, .tabs--line::-webkit-scrollbar { display: none; }
  .section-nav .chip, .library-search .chip, .toolbar > .chip-group .chip, .tabs--line .tab { flex-shrink: 0; white-space: nowrap; }
  .page-header .section-nav { margin-right: 0; padding-right: 0; }

  /* Documents: icon, title and a small download button on one row. */
  .doc-row { gap: 12px; padding: 12px 14px; flex-wrap: nowrap; }
  .doc-row__actions { width: auto; }
  /* Leaders also have edit and remove buttons: those rows keep their buttons on a line of their own. */
  .doc-row:has(.doc-row__actions .btn--ghost) { flex-wrap: wrap; }
  .doc-row:has(.doc-row__actions .btn--ghost) .doc-row__actions { width: 100%; justify-content: flex-end; }
  .doc-row__icon { width: 36px; height: 36px; }
  .doc-row__desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .doc-row__actions .btn--primary { width: 40px; height: 40px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
  .doc-row__actions .btn--primary .icon { width: 18px; height: 18px; }
  .library-search { margin-bottom: 14px; }
  .search--big .input { min-height: 46px; }

  /* Programme / department header: icon beside the badges, buttons in a row. */
  .programme-hero { grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; padding: 16px; border-radius: 16px; margin-bottom: 14px; }
  .programme-hero__icon { width: 44px; height: 44px; border-radius: 14px; }
  .programme-hero__icon .icon { width: 22px; height: 22px; }
  .programme-hero__main { display: contents; }
  .programme-hero__badges { align-self: center; margin: 0; }
  .programme-hero .page-title, .programme-hero .page-subtitle, .programme-hero__meta { grid-column: 1 / -1; }
  .programme-hero .page-title { margin-top: 2px; }
  .programme-hero__meta { margin-top: 0; }
  .programme-hero__actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .programme-hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .breadcrumb { font-size: 0.8125rem; margin-bottom: 10px; }
  .breadcrumb li:nth-child(2) { display: none; }
  .next-event { margin-bottom: 14px; }

  /* Footer: just the essentials on a phone. */
  .app-footer { justify-content: center; gap: 6px; padding-top: 16px; text-align: center; }
  .app-footer__brand > img, .app-footer__brand .affiliation__logo, .app-footer__motto { display: none; }
  .app-footer__credit { padding-top: 8px; }
}

/* Leader tools: the edit buttons of published items stay together. */
.task__tools { display: inline-flex; align-items: center; gap: 2px; flex-shrink: 0; margin-left: auto; }
@media (max-width: 720px) {
  .task--static { flex-wrap: wrap; }
  .task--static .task__main { flex: 1 1 calc(100% - 60px); }
  .task--static .task__tools { width: 100%; justify-content: flex-end; margin-top: -4px; }
  .empty-state { padding: 22px 16px; }
}

/* =========================================================================
   More colour: a tinted top bar and background, and richer page bands.
   ========================================================================= */
:root { --color-bg: #edf1f8; }
body {
  background:
    radial-gradient(1000px 520px at 0% -5%, rgba(58, 114, 194, 0.18), transparent 60%),
    radial-gradient(900px 480px at 100% 0%, rgba(201, 162, 39, 0.20), transparent 55%),
    radial-gradient(900px 600px at 50% 110%, rgba(91, 63, 181, 0.10), transparent 60%),
    var(--color-bg);
  background-attachment: fixed;
}
.topbar {
  background: linear-gradient(90deg, rgba(226, 235, 250, 0.92), rgba(250, 243, 222, 0.92));
  border-bottom: 1px solid rgba(201, 162, 39, 0.35);
  box-shadow: 0 2px 12px rgba(11, 31, 58, 0.05);
}
.page-header { background: linear-gradient(120deg, var(--tone-bg, #eff4fb) 0%, var(--tone-bg, #eff4fb) 35%, #fff 100%); }
.page-header__icon { background: #fff; color: var(--tone-ink, var(--brand-blue-600)); }
/* Cards get a faint coloured edge so they stand out from the background. */
.card { border-color: rgba(44, 94, 168, 0.12); }
.card:not(.stat):not(.install):hover { border-color: rgba(44, 94, 168, 0.22); }
.app-footer { background: rgba(255, 255, 255, 0.45); }

/* Prayer page in four tabs. */
.prayer-tabs { margin-bottom: 20px; }
.prayer-panel > section + section { margin-top: 28px; }
.prayer-panel .verse-card { margin-bottom: 28px; }
@media (max-width: 720px) {
  /* Home's two buttons sit side by side, smaller. */
  .hero__actions { gap: 8px; flex-wrap: nowrap; }
  .hero__actions .btn { flex: 1 1 0; min-width: 0; min-height: 42px; padding: 0 10px; font-size: 0.8125rem; justify-content: center; white-space: normal; line-height: 1.2; text-align: center; }
}
@media (max-width: 720px) { .hero__actions .btn .icon { display: none; } }

/* =========================================================================
   Registration step by step, with "What to bring" alongside.
   ========================================================================= */
.reg-wizard { display: grid; gap: 20px; }
.reg-wizard--with-list { grid-template-columns: minmax(0, 1fr) 230px; align-items: start; }
.reg-intro { margin: 0 0 14px; font-size: 0.875rem; color: var(--color-text-muted); }
.reg-progress { display: flex; align-items: center; margin: 0 0 18px; }
.reg-progress__dot {
  display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--color-border-strong); background: #fff; color: var(--color-text-subtle); font-size: 0.75rem; font-weight: 700;
}
.reg-progress__dot.is-current { border-color: var(--brand-gold-500); background: var(--brand-gold-100); color: var(--brand-gold-700); }
.reg-progress__dot.is-done { border-color: var(--green-700); background: var(--green-700); color: #fff; }
.reg-progress__line { flex: 1; height: 2px; margin: 0 4px; background: var(--color-border-strong); }
.reg-step__title { display: grid; gap: 2px; margin: 0 0 12px; font-size: 1.125rem; color: var(--brand-navy-900); }
.reg-step__count { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-gold-700); }

.bring-list { padding: 16px; border: 1px solid rgba(201, 162, 39, 0.4); border-radius: 14px; background: var(--brand-gold-100); }
.bring-list__title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 1rem; color: var(--brand-navy-900); }
.bring-list ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 0.9375rem; }
.bring-list li { display: flex; align-items: flex-start; gap: 8px; }
.bring-list li .icon { flex-shrink: 0; width: 16px; height: 16px; margin-top: 3px; color: var(--green-700); }
.event-detail__side { position: sticky; top: 0; display: grid; gap: 14px; }
.event-detail__side .going-panel { position: static; }
.food-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 14px; }

@media (max-width: 760px) {
  /* Phones: the checklist comes first, as a compact box, then the questions. */
  .reg-wizard--with-list { grid-template-columns: 1fr; }
  .reg-wizard--with-list .bring-list { order: -1; padding: 12px 14px; }
  .event-detail__side { position: static; }
}
@media (max-width: 760px) {
  .reg-wizard.is-later .bring-list, .reg-wizard.is-later .reg-intro { display: none; }
}

/* What to bring, compact: small ticked tags in two columns. */
.bring-list { margin: 16px 0; padding: 14px 16px; }
.bring-list__title { font-size: 0.9375rem; }
.bring-list__count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #fff; color: var(--brand-gold-700); font-size: 0.75rem; font-weight: 700; }
.bring-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: 0.875rem; }
.bring-grid li { display: flex; align-items: flex-start; gap: 6px; min-width: 0; }
.bring-grid li span { overflow-wrap: anywhere; }
.bring-grid .icon { flex-shrink: 0; width: 15px; height: 15px; margin-top: 2px; color: var(--green-700); }
/* In the registration form: one line until opened. */
.bring-fold { border: 1px solid rgba(201, 162, 39, 0.4); border-radius: 12px; background: var(--brand-gold-100); }
.bring-fold summary { display: flex; align-items: center; gap: 8px; padding: 10px 14px; cursor: pointer; font-weight: 600; font-size: 0.9375rem; color: var(--brand-navy-900); list-style: none; }
.bring-fold summary::-webkit-details-marker { display: none; }
.bring-fold summary::after { content: "Show"; margin-left: auto; font-size: 0.8125rem; font-weight: 600; color: var(--brand-blue-600); }
.bring-fold[open] summary::after { content: "Hide"; }
.bring-fold .bring-grid { padding: 0 14px 12px; }
.reg-wizard { gap: 14px; }
.reg-wizard.is-later .bring-fold { display: none; }
.reg-intro__more { display: block; margin-top: 2px; font-size: 0.8125rem; color: var(--color-text-subtle); }
@media (max-width: 760px) { .reg-intro__more { display: none; } }

/* =========================================================================
   Bold colour (like the Zunde badge: strong blocks, a bright accent, white),
   in PCM's own colours: deep navy, gold, and each page's colour.
   ========================================================================= */
:root { --gold-bright: #f2c230; }

/* Top bar: deep navy like the menu, with a gold line. */
.topbar {
  background: linear-gradient(90deg, #0b1f3a 0%, #17355f 100%);
  border-bottom: 3px solid var(--gold-bright);
  box-shadow: 0 4px 16px rgba(6, 20, 42, 0.18);
}
.topbar .topbar__title { color: #fff; }
.topbar .topbar__eyebrow { color: #a9bbd6; }
.topbar .topbar__menu { color: #fff; }
.topbar .icon-btn { color: #e6edf7; }
.topbar .icon-btn:hover, .topbar .icon-btn--labelled[aria-current="page"] { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); color: #fff; }
.topbar .icon-btn__badge { border-color: #0b1f3a; background: #e8452c; }
.topbar .user-chip { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); }
.topbar .user-chip__name { color: #fff; }
.topbar .user-chip__role { color: var(--gold-bright); }

/* Page bands: solid colour, white title, bright eyebrow, and a white swoosh. */
.page-header--blue   { --band-a: #12306a; --band-b: #2c5ea8; }
.page-header--gold   { --band-a: #6e520c; --band-b: #b8901f; }
.page-header--green  { --band-a: #0f4d33; --band-b: #1f8a5a; }
.page-header--violet { --band-a: #3a2387; --band-b: #6a4fd1; }
.page-header--rose   { --band-a: #7e1d3a; --band-b: #c63d62; }
.page-header--teal   { --band-a: #0b4f4c; --band-b: #13908a; }
.page-header {
  border: 0;
  color: #fff;
  background: linear-gradient(125deg, var(--band-a, #12306a) 0%, var(--band-b, #2c5ea8) 100%);
  box-shadow: 0 10px 28px rgba(6, 20, 42, 0.18);
}
.page-header::after {
  /* The curved white swoosh, bottom right. */
  right: -8%; top: auto; bottom: -62%;
  width: 62%; height: 120%;
  border-radius: 50% 50% 0 0 / 60% 60% 0 0;
  background: rgba(255, 255, 255, 0.10);
}
.page-header::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 5px;
  background: linear-gradient(90deg, var(--gold-bright), #ff8a3d);
}
.page-header .page-title { color: #fff; }
.page-header .page-subtitle { color: rgba(255, 255, 255, 0.86); }
.page-header .eyebrow { color: var(--gold-bright); }
.page-header .eyebrow::before { background: var(--gold-bright); }
.page-header__icon { background: #fff; color: var(--band-a, #12306a); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22); }
.page-header .section-nav .chip { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.page-header .section-nav .chip[aria-current="page"] { background: var(--gold-bright); border-color: var(--gold-bright); color: #0b1f3a; }
.page-header .btn--secondary { background: #fff; border-color: #fff; }

/* Selected filters and tabs: the bright gold accent. */
.chip[aria-pressed="true"] { background: var(--gold-bright); border-color: var(--gold-bright); color: #0b1f3a; font-weight: 600; }
.tab[aria-pressed="true"], .tab[aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--gold-bright), var(--shadow-xs); }
.tabs--line .tab[aria-selected="true"] { border-bottom-color: var(--gold-bright); }

/* Home tiles: solid colour blocks with white text. */
.stat--blue   { background: linear-gradient(135deg, #12306a, #2c5ea8); }
.stat--green  { background: linear-gradient(135deg, #0f4d33, #1f8a5a); }
.stat--rose   { background: linear-gradient(135deg, #7e1d3a, #c63d62); }
.stat--violet { background: linear-gradient(135deg, #3a2387, #6a4fd1); }
.stat--gold   { background: linear-gradient(135deg, #6e520c, #b8901f); }
.stat--teal   { background: linear-gradient(135deg, #0b4f4c, #13908a); }
[class*="stat--"].stat { border: 0; box-shadow: 0 8px 20px rgba(6, 20, 42, 0.16); }
[class*="stat--"].stat .stat__value, [class*="stat--"].stat .stat__label { color: #fff; }
[class*="stat--"].stat .stat__label { opacity: 0.88; }
[class*="stat--"].stat .icon-tile { background: rgba(255, 255, 255, 0.16); color: #fff; }
.stat--feature { background: linear-gradient(135deg, #0f4d33, #1f8a5a); } /* the Finance "Available balance" tile: white text needs a colour behind it */
.stat--feature .stat__value { color: #fff; }

/* Section titles: a thicker gold-to-orange bar. */
.section-title::before { width: 7px; background: linear-gradient(180deg, var(--gold-bright), #ff8a3d); }

@media print {
  .page-header { background: none; color: #000; box-shadow: none; }
  .page-header .page-title, .page-header .page-subtitle { color: #000; }
  .page-header::before { display: none; }
}

/* =========================================================================
   Coloured boxes: every box on a page takes the page's colour, as a strip
   along the top, a soft tinted header and coloured title icons. Row-style
   boxes (documents, announcements, requests) get a coloured left edge.
   Event and programme cards keep their own category colours.
   ========================================================================= */
#main                    { --box-a: #12306a; --box-b: #2c5ea8; --box-soft: #e6eefb; }
#main[data-tone="gold"]   { --box-a: #6e520c; --box-b: #c9a227; --box-soft: #fbf1d3; }
#main[data-tone="green"]  { --box-a: #0f4d33; --box-b: #1f8a5a; --box-soft: #dff3e8; }
#main[data-tone="violet"] { --box-a: #3a2387; --box-b: #6a4fd1; --box-soft: #ece7fc; }
#main[data-tone="rose"]   { --box-a: #7e1d3a; --box-b: #c63d62; --box-soft: #fbe5ec; }
#main[data-tone="teal"]   { --box-a: #0b4f4c; --box-b: #13908a; --box-soft: #dcf2f0; }

/* Ordinary boxes: a coloured strip along the top. */
#main .card:not(.event-card):not(.activity-card):not(.stat):not(.install):not(.doc-row):not(.announcement):not(.request-item):not(.resource-card) {
  border-top: 4px solid var(--box-b);
}
/* Box headers: a soft wash of the page colour, title icons in the colour. */
#main .card__header {
  margin: 0;
  padding-top: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--box-b) 18%, transparent);
  background: linear-gradient(90deg, var(--box-soft) 0%, rgba(255, 255, 255, 0) 85%);
}
#main .card__header + .card__body { padding-top: 16px; }
#main .card__title .icon, #main .card--pad > .card__title .icon { color: var(--box-b); }
#main .card--pad > .card__title:first-child {
  margin: -24px -24px 16px; padding: 14px 24px;
  border-bottom: 1px solid color-mix(in srgb, var(--box-b) 18%, transparent);
  background: linear-gradient(90deg, var(--box-soft) 0%, rgba(255, 255, 255, 0) 85%);
}
/* Rows: a coloured left edge. */
#main .doc-row, #main .announcement, #main .request-item { border-left: 4px solid var(--box-b); }
#main .announcement.is-unread { border-left-color: var(--box-a); background: linear-gradient(90deg, var(--box-soft), #fff 40%); }
/* Empty states inside a page: tinted, not grey. */
#main .empty-state { background: linear-gradient(160deg, var(--box-soft), #fff 70%); border-color: color-mix(in srgb, var(--box-b) 30%, transparent); }
#main .empty-state__icon { background: #fff; color: var(--box-b); }
/* Tables: a coloured header row. */
#main .table thead th { background: var(--box-soft); color: var(--box-a); }

@media (max-width: 720px) {
  #main .card--pad > .card__title:first-child { margin: -16px -16px 12px; padding: 12px 16px; }
}
#main .doc-row__icon { background: var(--box-soft); color: var(--box-b); }

/* Sites (29_event_sites.sql) ------------------------------------------------ */
/* A member's own site: a bold block, like the site on a Zunde badge. */
.my-site {
  display: flex; align-items: center; gap: 14px; margin: 16px 0; padding: 14px 18px;
  border-radius: 14px; color: #fff;
  background: linear-gradient(125deg, #0b4f4c, #13908a);
  box-shadow: 0 8px 20px rgba(11, 79, 76, 0.22);
}
.my-site__icon { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; background: #fff; color: #0b4f4c; }
.my-site__label { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #f2c230; }
.my-site__name { display: block; font-size: 1.25rem; line-height: 1.25; }
.my-site__wait { display: block; font-size: 0.875rem; opacity: 0.9; }
.my-site--waiting { background: linear-gradient(125deg, #3c4a5e, #5b6b82); box-shadow: none; }
.my-site--waiting .my-site__icon { color: #3c4a5e; }
/* Organisers: per-site counts and tools above the registrations table. */
.sites-panel { margin: 0 0 16px; padding: 14px 16px; border: 1px solid rgba(19, 144, 138, 0.3); border-radius: 14px; background: #e9f6f5; }
.sites-panel__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.sites-panel__title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1rem; color: #0b4f4c; }
.sites-panel__tools { display: flex; flex-wrap: wrap; gap: 8px; }
.sites-panel__counts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.site-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #0b4f4c; color: #fff; font-size: 0.8125rem; }
.site-chip strong { color: #f2c230; }
.site-chip--none { background: #fff; color: #3c4a5e; border: 1px solid #cdd5e0; }
.site-chip--none strong { color: #b3332d; }
.select--sm { min-height: 34px; padding-top: 4px; padding-bottom: 4px; font-size: 0.875rem; }
/* The site picker in the registrations table: wide enough to read the site's name. */
select[data-site-for] { min-width: 200px; }
.sites-panel__tools .select { min-width: 200px; }

/* Document requests in the Library: progress steps for members, a to-do list for Communications. */
.req-card { margin-bottom: 18px; }
.req-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.req-item { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: 12px; background: #fff; }
.req-item--row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.req-item__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.req-item__date { display: block; font-size: 0.8125rem; color: var(--color-text-subtle); }
.req-item__reply { display: flex; gap: 8px; margin: 0; padding: 8px 10px; border-radius: 10px; background: #eef4fb; font-size: 0.875rem; }
.req-item__reply .icon { flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; color: #2c5ea8; }
.req-item__tools { display: flex; flex-wrap: wrap; gap: 6px; }
.req-steps { display: flex; flex-wrap: wrap; gap: 6px; }
.req-step { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: #eef1f6; color: #64748b; font-size: 0.75rem; font-weight: 600; }
.req-step .icon { width: 14px; height: 14px; }
.req-step.is-done { background: #dff3e8; color: #166b47; }
.req-step.is-done:last-child { background: linear-gradient(135deg, #0f4d33, #1f8a5a); color: #fff; }
.req-card--incoming { border-left: 4px solid #f2c230; }
@media (max-width: 720px) { .req-item--row { grid-template-columns: 1fr; } }
.agent-tag { display: inline-flex; padding: 1px 8px; border-radius: 999px; background: #fbf1d3; color: #6e520c; font-size: 0.75rem; font-weight: 700; }
.radio-cards--two { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* Campuses (32_campuses.sql) ------------------------------------------------ */
.badge--campus { display: inline-flex; align-items: center; gap: 4px; color: #fff; font-weight: 700; }
.badge--campus .icon { width: 12px; height: 12px; }
.badge--campus-buse { background: linear-gradient(135deg, #12306a, #2c5ea8); }
.badge--campus-kuse { background: linear-gradient(135deg, #7e1d3a, #c63d62); }
/* "Which campus are you at?" on Home. */
.campus-ask {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 16px; padding: 16px 18px;
  border-radius: 16px; color: #fff; background: linear-gradient(120deg, #0b1f3a, #2c5ea8 60%, #c63d62);
  box-shadow: 0 10px 24px rgba(11, 31, 58, 0.18);
}
.campus-ask__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; color: #c63d62; }
.campus-ask__text { flex: 1 1 220px; }
.campus-ask__text h2 { margin: 0; font-size: 1.0625rem; color: #fff; }
.campus-ask__text p { margin: 2px 0 0; font-size: 0.875rem; color: rgba(255, 255, 255, 0.85); }
.campus-ask__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.campus-ask .btn--primary { background: #f2c230; border-color: #f2c230; color: #0b1f3a; }

/* =========================================================================
   A little more compact on computers. Many laptops run Windows at 125–150%
   display scaling, which made the portal feel too close. A 15px base, a
   narrower side menu and a shorter top bar fit more on the screen, and the
   filter boxes stay a sensible width next to the search.
   ========================================================================= */
@media (min-width: 1025px) {
  html { font-size: 93.75%; }
  :root { --sidebar-w: 248px; --topbar-h: 60px; }
  .page-header { padding: 18px 22px; margin-bottom: 22px; }
  .page-header__icon { width: 46px; height: 46px; border-radius: 13px; }
  .page-header__icon .icon { width: 23px; height: 23px; }
  .page-title { font-size: clamp(1.4rem, 1.2rem + 0.5vw, 1.7rem); }
}
.toolbar__group .select--auto { min-width: 150px; max-width: 220px; }
@media (max-width: 720px) { .toolbar__group .select--auto { max-width: none; } }
@media (min-width: 1025px) {
  .toolbar > .search { flex: 1 1 240px; }
  .toolbar__group { flex: 0 1 auto; flex-wrap: nowrap; }
  .toolbar__group .select--auto { min-width: 130px; max-width: 190px; }
}
