:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --ink: #101827;
  --muted: #667085;
  --line: #dfe6ef;
  --accent: #117a72;
  --accent-dark: #071f3f;
  --gold: #d39a2d;
  --rose: #9f2f54;
  --navy: #071326;
  --blue: #0f5fae;
  --ivory: #fffaf0;
  --shadow: 0 24px 70px rgba(7, 19, 38, 0.14);
}

/* Final contrast pass for dark blue photo panels */
#outreach .outreach-grid .outreach-card,
#home .ministry-focus-card,
#home .ministry-focus-visual,
#home .home-action-card.is-featured,
#home .pulse-card.is-live {
  color: #ffffff !important;
}

#outreach .outreach-grid .outreach-card > div,
#home .ministry-focus-card,
#home .ministry-focus-visual > div,
#home .home-action-card.is-featured,
#home .pulse-card.is-live {
  background-color: rgba(7, 19, 38, 0.86) !important;
}

#outreach .outreach-grid .outreach-card h3,
#outreach .outreach-grid .outreach-card p,
#outreach .outreach-grid .outreach-card strong,
#outreach .outreach-grid .outreach-card .muted,
#home .ministry-focus-card h3,
#home .ministry-focus-card p,
#home .ministry-focus-card strong,
#home .ministry-focus-card small,
#home .ministry-focus-card .muted,
#home .ministry-focus-visual strong,
#home .home-action-card.is-featured strong,
#home .home-action-card.is-featured small,
#home .pulse-card.is-live strong,
#home .pulse-card.is-live small {
  color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

#outreach .outreach-grid .outreach-card .section-label,
#outreach .outreach-grid .outreach-card span,
#home .ministry-focus-card span,
#home .ministry-focus-visual span,
#home .home-action-card.is-featured span,
#home .pulse-card.is-live span {
  color: #ffd66d !important;
}

#outreach .outreach-grid .outreach-card img,
#home .ministry-focus-card img,
#home .ministry-focus-visual img {
  filter: brightness(0.72) saturate(1.05) contrast(1.08) !important;
}

/* Final admin spacious pass: keep admin calm, wide, and readable. */
#admin {
  max-width: none !important;
}

#admin .section-shell,
#admin .admin-card,
#admin .admin-private {
  width: min(100%, 1480px) !important;
  max-width: 1480px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#admin .admin-card {
  padding: clamp(20px, 3vw, 42px) !important;
}

#admin .admin-private {
  gap: 36px !important;
}

#admin .admin-control-center {
  display: none !important;
}

#admin .admin-status {
  padding: 18px 24px !important;
}

#admin .admin-command-bar {
  grid-template-columns: repeat(2, minmax(280px, 1fr)) !important;
  gap: 22px !important;
}

#admin .admin-command-bar button {
  min-height: 138px !important;
  padding: 24px !important;
}

#admin .admin-command-bar strong {
  font-size: 1.12rem !important;
}

#admin .admin-stats {
  grid-template-columns: repeat(4, minmax(180px, 1fr)) !important;
  gap: 18px !important;
}

#admin .admin-stats article {
  min-height: 112px !important;
  padding: 22px !important;
}

#admin .admin-tabs {
  gap: 12px !important;
  overflow-x: auto !important;
  padding: 4px 2px 12px !important;
  scroll-snap-type: x proximity !important;
}

#admin .admin-tab {
  flex: 0 0 auto !important;
  min-width: 168px !important;
  min-height: 48px !important;
  padding: 12px 16px !important;
  scroll-snap-align: start !important;
}

#admin .admin-tool-groups,
#admin .admin-overview-grid {
  grid-template-columns: repeat(2, minmax(320px, 1fr)) !important;
  gap: 24px !important;
}

#admin .admin-dashboard-brief,
#admin .admin-recent-panel,
#admin .admin-overview-card,
#admin .admin-tool-group {
  padding: 24px !important;
}

#admin .panel-form.admin-pane.is-active {
  grid-template-columns: 1fr !important;
  max-width: 1040px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: clamp(24px, 3vw, 42px) !important;
}

#admin .admin-list.admin-pane.is-active {
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: clamp(24px, 3vw, 42px) !important;
}

#admin [data-admin-pane="member-accounts"].admin-pane.is-active {
  max-width: 1480px !important;
}

#admin .member-board-tools {
  grid-template-columns: repeat(3, minmax(210px, 1fr)) !important;
  gap: 16px !important;
}

#admin .member-board-summary {
  grid-template-columns: repeat(4, minmax(180px, 1fr)) !important;
  gap: 18px !important;
}

#admin .member-board-card {
  margin-top: 22px !important;
  padding: clamp(22px, 2.5vw, 34px) !important;
}

#admin .member-profile-panel {
  gap: 24px !important;
}

#admin .member-profile-details {
  grid-template-columns: repeat(2, minmax(240px, 1fr)) !important;
  gap: 16px !important;
}

@media (max-width: 900px) {
  #admin .admin-card {
    padding: 16px !important;
  }

  #admin .admin-private {
    gap: 26px !important;
  }

  #admin .admin-command-bar,
  #admin .admin-stats,
  #admin .admin-tool-groups,
  #admin .admin-overview-grid,
  #admin .member-board-tools,
  #admin .member-board-summary,
  #admin .member-profile-details {
    grid-template-columns: 1fr !important;
  }

  #admin .admin-command-bar button {
    min-height: 112px !important;
  }

  #admin .panel-form.admin-pane.is-active,
  #admin .admin-list.admin-pane.is-active {
    padding: 20px !important;
  }
}

/* Absolute final centering pass for admin and member/admin entry pages. */
#admin.screen,
#admin.page-section,
#admin.admin-section,
#membership.screen,
#membership.page-section,
#membership.membership-section {
  width: 100% !important;
  max-width: none !important;
  padding-left: clamp(16px, 4vw, 56px) !important;
  padding-right: clamp(16px, 4vw, 56px) !important;
}

#admin > .section-header,
#admin .admin-layout,
#admin .admin-private,
#admin .admin-pane.is-active,
#membership > .section-header,
#membership .membership-layout,
#membership .contact-forms-layout,
#membership .member-dashboard,
#membership .rich-member-dashboard,
#membership .member-login-result {
  width: min(100%, 1320px) !important;
  max-width: 1320px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#admin > .section-header,
#membership > .section-header {
  align-items: center !important;
  text-align: center !important;
}

#admin > .section-header > div,
#admin > .section-header .section-note,
#membership > .section-header > div,
#membership > .section-header .section-note {
  margin-left: auto !important;
  margin-right: auto !important;
}

#admin .admin-layout,
#membership .membership-layout {
  margin-left: auto !important;
  margin-right: auto !important;
}

#admin .admin-private {
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-items: stretch !important;
  gap: 34px !important;
}

#admin .admin-private > * {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}

#admin .admin-tool-groups {
  grid-template-columns: 1fr !important;
}

#admin .admin-tools {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: 12px !important;
}

#admin .panel-form.admin-pane.is-active {
  max-width: 980px !important;
}

#admin .admin-list.admin-pane.is-active {
  max-width: 1120px !important;
}

#admin [data-admin-pane="member-accounts"].admin-pane.is-active {
  max-width: 1320px !important;
}

#membership .membership-layout {
  display: grid !important;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr) !important;
  gap: 26px !important;
  align-items: stretch !important;
}

#membership .membership-layout > * {
  width: 100% !important;
}

#membership .member-connect-panel {
  grid-row: span 2 !important;
}

#membership .member-preferences-panel {
  grid-column: 1 / -1 !important;
}

#membership .member-login-panel,
#membership .member-connect-panel,
#membership .member-preferences-panel,
#membership .panel-form {
  padding: clamp(22px, 3vw, 36px) !important;
}

#membership .contact-forms-layout {
  grid-template-columns: repeat(2, minmax(300px, 1fr)) !important;
  gap: 26px !important;
}

#membership .member-dashboard-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
}

@media (min-width: 1100px) {
  #admin .admin-command-bar {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  #admin .admin-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1200px) {
  #membership .member-dashboard-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 820px) {
  #admin.screen,
  #admin.page-section,
  #admin.admin-section,
  #membership.screen,
  #membership.page-section,
  #membership.membership-section {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  #admin > .section-header,
  #membership > .section-header {
    align-items: flex-start !important;
    text-align: left !important;
  }

  #admin .admin-command-bar,
  #admin .admin-stats,
  #admin .admin-tool-groups,
  #admin .admin-overview-grid,
  #admin .member-board-tools,
  #admin .member-board-summary,
  #admin .member-profile-details,
  #membership .membership-layout,
  #membership .contact-forms-layout,
  #membership .member-dashboard-grid {
    grid-template-columns: 1fr !important;
  }

  #membership .member-connect-panel,
  #membership .member-preferences-panel {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

/* Item sharing: direct share button uses the same clear icon style. */
.share-actions button.share-icon {
  position: relative;
  width: 42px;
  height: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(20, 35, 31, 0.12);
  border-radius: 999px;
  padding: 0;
  color: #fff;
  background: #117a72;
  box-shadow: 0 8px 18px rgba(27, 31, 28, 0.08);
  cursor: pointer;
}

.share-actions button.share-icon:hover,
.share-actions button.share-icon:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(27, 31, 28, 0.14);
  outline: 0;
}

/* Centered admin workspace: stop the dashboard from feeling pinned left. */
#admin.screen,
#admin.page-section,
#admin.admin-section {
  width: 100% !important;
  max-width: none !important;
  padding-left: clamp(16px, 4vw, 56px) !important;
  padding-right: clamp(16px, 4vw, 56px) !important;
}

#admin > .section-header,
#admin .admin-layout,
#admin .admin-private,
#admin .admin-pane.is-active {
  width: min(100%, 1320px) !important;
  max-width: 1320px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#admin > .section-header {
  align-items: center !important;
  text-align: center !important;
}

#admin > .section-header > div,
#admin > .section-header .section-note {
  margin-left: auto !important;
  margin-right: auto !important;
}

#admin .admin-layout {
  display: block !important;
}

#admin .admin-private {
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-items: stretch !important;
  gap: 32px !important;
}

#admin .admin-private > * {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}

#admin .admin-status {
  justify-content: space-between !important;
  gap: 16px !important;
}

#admin .admin-command-bar,
#admin .admin-stats,
#admin .admin-tool-groups,
#admin .admin-overview-grid {
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#admin .admin-tool-groups {
  grid-template-columns: 1fr !important;
}

#admin .admin-tool-group {
  width: 100% !important;
}

#admin .admin-tools {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: 12px !important;
}

#admin .admin-pane.is-active {
  box-sizing: border-box !important;
}

#admin .panel-form.admin-pane.is-active {
  max-width: 980px !important;
}

#admin .admin-list.admin-pane.is-active {
  max-width: 1120px !important;
}

#admin [data-admin-pane="member-accounts"].admin-pane.is-active {
  max-width: 1320px !important;
}

@media (min-width: 1100px) {
  #admin .admin-command-bar {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  #admin .admin-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  #admin.screen,
  #admin.page-section,
  #admin.admin-section {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  #admin > .section-header {
    text-align: left !important;
    align-items: flex-start !important;
  }

  #admin .admin-status,
  #admin .admin-status .inline-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
}

/* Center the visible member/admin entry page as well. */
#membership.screen,
#membership.page-section,
#membership.membership-section {
  width: 100% !important;
  max-width: none !important;
  padding-left: clamp(16px, 4vw, 56px) !important;
  padding-right: clamp(16px, 4vw, 56px) !important;
}

#membership > .section-header,
#membership .membership-layout,
#membership .form-layout,
#membership .member-dashboard,
#membership .rich-member-dashboard,
#membership .member-login-result {
  width: min(100%, 1240px) !important;
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#membership > .section-header {
  text-align: center !important;
  align-items: center !important;
}

#membership > .section-header > div,
#membership > .section-header .section-note {
  margin-left: auto !important;
  margin-right: auto !important;
}

#membership .membership-layout {
  display: grid !important;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr) !important;
  gap: 26px !important;
  align-items: stretch !important;
}

#membership .membership-layout > * {
  width: 100% !important;
}

#membership .member-connect-panel {
  grid-row: span 2 !important;
}

#membership .member-preferences-panel {
  grid-column: 1 / -1 !important;
}

#membership .member-login-panel,
#membership .member-connect-panel,
#membership .member-preferences-panel,
#membership .panel-form {
  padding: clamp(22px, 3vw, 36px) !important;
}

#membership .contact-forms-layout {
  grid-template-columns: repeat(2, minmax(300px, 1fr)) !important;
  gap: 26px !important;
}

#membership .member-dashboard-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
}

@media (min-width: 1200px) {
  #membership .member-dashboard-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 820px) {
  #membership.screen,
  #membership.page-section,
  #membership.membership-section {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  #membership > .section-header {
    text-align: left !important;
    align-items: flex-start !important;
  }

  #membership .membership-layout,
  #membership .contact-forms-layout,
  #membership .member-dashboard-grid {
    grid-template-columns: 1fr !important;
  }

  #membership .member-connect-panel,
  #membership .member-preferences-panel {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

/* Full improvement pass: outreach, admin, language clarity, and focus photo fixes. */
.language-upload-note strong {
  display: block;
  color: #12877f;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

#home .ministry-focus-grid {
  gap: 16px !important;
}

#home .ministry-focus-card,
#home .ministry-focus-card.is-tall {
  display: grid !important;
  grid-template-rows: 190px auto auto !important;
  gap: 0 !important;
  min-height: 300px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 3px solid #12877f !important;
  border-radius: 8px !important;
  background: #12877f !important;
  box-shadow: 0 16px 36px rgba(7, 19, 38, 0.16) !important;
}

#home .ministry-focus-card::after {
  display: none !important;
}

#home .ministry-focus-card img {
  display: block !important;
  position: static !important;
  width: 100% !important;
  height: 190px !important;
  min-height: 190px !important;
  object-fit: cover !important;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
}

#home .ministry-focus-card span,
#home .ministry-focus-card strong {
  position: static !important;
  width: 100% !important;
  margin: 0 !important;
  color: #ffffff !important;
  background: #12877f !important;
  text-shadow: none !important;
  opacity: 1 !important;
}

#home .ministry-focus-card span {
  padding: 16px 18px 4px !important;
  font-size: 1.05rem !important;
  font-weight: 950 !important;
}

#home .ministry-focus-card strong {
  padding: 0 18px 18px !important;
  font-size: clamp(1.2rem, 1.6vw, 1.5rem) !important;
  line-height: 1.18 !important;
  font-weight: 950 !important;
}

#outreach .outreach-grid {
  align-items: stretch;
}

#outreach .outreach-grid .outreach-card {
  display: grid !important;
  grid-template-rows: 190px 1fr !important;
  min-height: 380px !important;
  overflow: hidden !important;
  border: 3px solid #12877f !important;
  border-radius: 8px !important;
  background: #12877f !important;
  color: #ffffff !important;
  box-shadow: 0 18px 42px rgba(7, 19, 38, 0.14) !important;
}

#outreach .outreach-grid .outreach-card img {
  display: block !important;
  position: static !important;
  width: 100% !important;
  height: 190px !important;
  min-height: 190px !important;
  object-fit: cover !important;
  opacity: 1 !important;
  filter: none !important;
}

#outreach .outreach-grid .outreach-card > div {
  display: grid !important;
  align-content: start !important;
  gap: 8px !important;
  padding: 18px !important;
  background: #12877f !important;
}

#outreach .outreach-grid .outreach-card .section-label,
#outreach .outreach-grid .outreach-card h3,
#outreach .outreach-grid .outreach-card p,
#outreach .outreach-grid .outreach-card .muted {
  color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

#outreach .outreach-grid .outreach-card h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem) !important;
  line-height: 1.12 !important;
  font-weight: 950 !important;
}

.outreach-activity {
  border: 1px solid rgba(18, 135, 127, 0.16) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #071326 !important;
  box-shadow: 0 16px 38px rgba(7, 19, 38, 0.08) !important;
}

.outreach-activity h3,
.outreach-activity .muted,
.outreach-need strong,
.outreach-need p {
  color: #071326 !important;
  opacity: 1 !important;
}

.language-upload-note {
  border: 1px solid rgba(18, 135, 127, 0.18);
  border-radius: 8px;
  margin: -2px 0 6px;
  padding: 12px 14px;
  background: #eefaf8;
  color: #071326;
  font-weight: 800;
}

.admin-command-bar,
.admin-tool-groups,
.admin-stats,
.admin-control-center {
  max-width: 1180px;
}

.admin-command-bar button,
.admin-tool,
.admin-tool-group {
  border-radius: 8px !important;
}

.admin-tool-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-tool-group {
  border: 1px solid rgba(18, 135, 127, 0.16);
  padding: 14px;
  background: #ffffff;
}

.admin-tool-group h3,
.admin-tool-group summary {
  color: #071326;
  font-size: 1rem;
  font-weight: 950;
}

.admin-tools {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-tool {
  min-height: 38px;
  border: 1px solid rgba(18, 135, 127, 0.18) !important;
  background: #eefaf8 !important;
  color: #071326 !important;
  font-weight: 900 !important;
}

.admin-tool.is-active,
.admin-command-bar button.is-active,
[data-admin-target].is-active {
  background: #12877f !important;
  color: #ffffff !important;
}

.admin-pane.is-active {
  border-radius: 8px;
}

@media (max-width: 900px) {
  .admin-tool-groups {
    grid-template-columns: 1fr;
  }

  #home .ministry-focus-card,
  #home .ministry-focus-card.is-tall,
  #outreach .outreach-grid .outreach-card {
    min-height: auto !important;
  }
}

@media (max-width: 680px) {
  #home .ministry-focus-card img,
  #outreach .outreach-grid .outreach-card img {
    height: 160px !important;
    min-height: 160px !important;
  }

  #home .ministry-focus-card strong,
  #outreach .outreach-grid .outreach-card h3 {
    font-size: 1.22rem !important;
  }
}

/* Admin dashboard upgrade */
#admin .section-header h2 {
  color: #071326;
}

#admin .admin-private {
  gap: 18px;
}

#admin .admin-status {
  border: 1px solid rgba(18, 135, 127, 0.18);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(7, 19, 38, 0.08);
}

#admin .admin-command-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

#admin .admin-command-bar button {
  min-height: 118px;
  border: 0 !important;
  border-radius: 8px !important;
  padding: 18px !important;
  color: #ffffff !important;
  text-align: left;
  background: #12877f !important;
  box-shadow: 0 18px 40px rgba(7, 19, 38, 0.14) !important;
}

#admin .admin-command-bar span,
#admin .admin-command-bar strong,
#admin .admin-command-bar small {
  display: block;
  color: #ffffff !important;
}

#admin .admin-command-bar span {
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

#admin .admin-command-bar strong {
  margin-top: 8px;
  font-size: 1.35rem;
  font-weight: 950;
}

#admin .admin-command-bar small {
  margin-top: 8px;
  font-weight: 800;
  opacity: 0.94;
}

#admin .admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

#admin .admin-stats article,
#admin .admin-overview-card,
#admin .admin-recent-panel,
#admin .admin-dashboard-brief,
#admin .admin-report-guide article {
  border: 1px solid rgba(18, 135, 127, 0.16) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: 0 14px 34px rgba(7, 19, 38, 0.08) !important;
}

#admin .admin-stats article {
  padding: 16px;
}

#admin .admin-stats span,
#admin .admin-overview-card .muted,
#admin .admin-recent-item span,
#admin .admin-report-guide span,
#admin .admin-section-help {
  color: #304354 !important;
  opacity: 1 !important;
}

#admin .admin-stats strong {
  color: #071326 !important;
  font-size: clamp(1.45rem, 2vw, 2.1rem);
  font-weight: 950;
}

#admin .admin-dashboard-brief,
#admin .admin-recent-panel {
  padding: 18px;
}

#admin .admin-dashboard-brief strong,
#admin .admin-recent-panel h3 {
  color: #071326;
  font-size: 1.35rem;
  font-weight: 950;
}

#admin .admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

#admin .admin-overview-card {
  padding: 18px;
}

#admin .admin-overview-card strong {
  color: #071326;
  font-size: 1.18rem;
  font-weight: 950;
}

#admin .admin-overview-card .secondary-btn,
#admin .admin-recent-item .secondary-btn {
  margin-top: 10px;
}

#admin .admin-recent-panel {
  margin-top: 18px;
}

#admin .admin-recent-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

#admin .admin-recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(18, 135, 127, 0.14);
  border-radius: 8px;
  padding: 14px;
  background: #eefaf8;
}

#admin .admin-recent-item strong,
#admin .admin-recent-item small {
  display: block;
}

#admin .admin-recent-item strong {
  color: #071326;
  font-weight: 950;
}

#admin .admin-recent-item small {
  margin-top: 4px;
  color: #304354;
  font-weight: 750;
}

#admin .admin-section-help {
  margin: 0 0 12px;
  border-left: 4px solid #12877f;
  border-radius: 8px;
  padding: 12px 14px;
  background: #eefaf8;
  font-weight: 800;
}

#admin .language-upload-note {
  border: 2px solid rgba(18, 135, 127, 0.24);
  background: #f7fffc;
  font-size: 1rem;
}

#admin .admin-report-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

#admin .admin-report-guide article {
  padding: 14px;
}

#admin .admin-report-guide span {
  display: block;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

#admin .admin-report-guide strong {
  display: block;
  margin-top: 6px;
  color: #071326;
  font-weight: 950;
}

#admin .panel-form,
#admin .admin-list {
  border-radius: 8px !important;
}

#admin .upload-preview {
  border: 1px solid rgba(18, 135, 127, 0.18);
  background: #eefaf8;
}

#admin .member-board-tools {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  #admin .admin-command-bar,
  #admin .admin-stats,
  #admin .admin-overview-grid,
  #admin .admin-report-guide,
  #admin .member-board-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  #admin .admin-command-bar,
  #admin .admin-stats,
  #admin .admin-overview-grid,
  #admin .admin-report-guide,
  #admin .member-board-tools {
    grid-template-columns: 1fr;
  }

  #admin .admin-command-bar button {
    min-height: 96px;
  }

  #admin .admin-recent-item {
    display: grid;
  }
}

/* Member care upgrade */
.member-profile-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.member-profile-summary article,
.member-profile-panel,
.member-approval-queue,
.member-timeline,
.member-note {
  border: 1px solid rgba(18, 135, 127, 0.16);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(7, 19, 38, 0.08);
}

.member-profile-summary article {
  padding: 16px;
}

.member-profile-summary span,
.member-profile-panel .section-label,
.member-timeline b {
  color: #12877f !important;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.member-profile-summary strong,
.member-profile-panel h3 {
  display: block;
  margin-top: 6px;
  color: #071326;
  font-size: 1.18rem;
  font-weight: 950;
}

.member-profile-summary small {
  display: block;
  margin-top: 4px;
  color: #304354;
  font-weight: 750;
}

.member-profile-panel {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 16px;
  margin-top: 14px;
  padding: 16px;
}

.member-profile-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.member-profile-details span {
  border: 1px solid rgba(18, 135, 127, 0.12);
  border-radius: 8px;
  padding: 10px;
  background: #eefaf8;
  color: #071326;
  font-weight: 800;
}

.member-profile-details b {
  display: block;
  color: #12877f;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.member-contact-actions {
  margin-top: 12px;
}

.member-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
}

.member-timeline span {
  border-radius: 8px;
  padding: 10px;
  background: #f3f6f6;
}

.member-timeline span.is-done {
  background: #12877f;
}

.member-timeline span.is-done b,
.member-timeline span.is-done small {
  color: #ffffff !important;
}

.member-timeline small {
  display: block;
  margin-top: 4px;
  color: #304354;
  font-weight: 750;
}

.member-note {
  margin-top: 12px;
  padding: 12px 14px;
  background: #fff8e2;
  color: #071326;
}

.member-approval-queue {
  margin: 14px 0;
  padding: 16px;
}

.approval-queue-head,
.member-approval-queue article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.approval-queue-head h3 {
  margin: 4px 0 0;
  color: #071326;
  font-size: 1.25rem;
}

.approval-queue-head > span {
  border-radius: 999px;
  padding: 8px 12px;
  color: #ffffff;
  background: #12877f;
  font-weight: 950;
}

.member-approval-queue article {
  border-top: 1px solid rgba(18, 135, 127, 0.14);
  margin-top: 12px;
  padding-top: 12px;
}

.member-approval-queue article strong,
.member-approval-queue article small {
  display: block;
}

.member-approval-queue article strong {
  color: #071326;
  font-weight: 950;
}

.member-approval-queue article small {
  margin-top: 4px;
  color: #304354;
  font-weight: 750;
}

.member-followup-form textarea {
  min-height: 120px;
}

@media (max-width: 900px) {
  .member-profile-summary,
  .member-profile-panel,
  .member-profile-details,
  .member-timeline {
    grid-template-columns: 1fr;
  }

  .approval-queue-head,
  .member-approval-queue article {
    display: grid;
  }
}

/* Admin spacious layout: let the dashboard use the full work area. */
#admin.page-section.screen,
#admin.page-section.screen.is-active {
  width: 100% !important;
  max-width: none !important;
  padding-left: clamp(14px, 3vw, 42px) !important;
  padding-right: clamp(14px, 3vw, 42px) !important;
}

#admin > .section-header,
#admin .admin-layout,
#admin .admin-private,
#admin .admin-command-bar,
#admin .admin-stats,
#admin .admin-control-center,
#admin .admin-tool-groups,
#admin .admin-pane,
#admin .admin-list,
#admin .panel-form {
  width: 100% !important;
  max-width: none !important;
}

#admin .admin-private {
  display: grid !important;
  gap: 24px !important;
}

#admin .admin-command-bar {
  grid-template-columns: repeat(4, minmax(190px, 1fr)) !important;
  gap: 18px !important;
}

#admin .admin-stats {
  grid-template-columns: repeat(8, minmax(120px, 1fr)) !important;
  gap: 14px !important;
}

#admin .admin-control-center {
  grid-template-columns: repeat(4, minmax(180px, 1fr)) !important;
  gap: 16px !important;
}

#admin .admin-tool-groups {
  grid-template-columns: 0.8fr 1.4fr 1.4fr 1fr !important;
  align-items: start !important;
  gap: 18px !important;
}

#admin .admin-overview-grid {
  grid-template-columns: repeat(4, minmax(220px, 1fr)) !important;
  gap: 16px !important;
}

#admin .panel-form.admin-pane.is-active {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(260px, 1fr)) !important;
  gap: 18px 20px !important;
  align-items: start !important;
}

#admin .panel-form.admin-pane.is-active > .section-label,
#admin .panel-form.admin-pane.is-active > .admin-section-help,
#admin .panel-form.admin-pane.is-active > .language-upload-note,
#admin .panel-form.admin-pane.is-active > .admin-report-guide,
#admin .panel-form.admin-pane.is-active > button,
#admin .panel-form.admin-pane.is-active > .fine-print {
  grid-column: 1 / -1 !important;
}

#admin .panel-form.admin-pane.is-active textarea {
  min-height: 160px !important;
}

#admin .admin-list.admin-pane.is-active {
  padding: clamp(18px, 2.5vw, 30px) !important;
}

#admin .member-board-tools {
  grid-template-columns: repeat(7, minmax(150px, 1fr)) !important;
  gap: 12px !important;
}

#admin .member-board-summary {
  grid-template-columns: repeat(4, minmax(160px, 1fr)) !important;
}

#admin .member-profile-panel {
  grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr) !important;
}

#admin .member-profile-details {
  grid-template-columns: repeat(3, minmax(160px, 1fr)) !important;
}

#admin .member-timeline {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
}

@media (max-width: 1280px) {
  #admin .admin-stats,
  #admin .admin-overview-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  #admin .admin-tool-groups,
  #admin .member-board-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  #admin .admin-command-bar,
  #admin .admin-stats,
  #admin .admin-control-center,
  #admin .admin-tool-groups,
  #admin .admin-overview-grid,
  #admin .panel-form.admin-pane.is-active,
  #admin .member-board-tools,
  #admin .member-board-summary,
  #admin .member-profile-panel,
  #admin .member-profile-details {
    grid-template-columns: 1fr !important;
  }
}

/* Calmer admin layout: reduce visible clutter and give forms more breathing room. */
#admin .admin-private {
  gap: 34px !important;
}

#admin .admin-control-center {
  display: none !important;
}

#admin .admin-status {
  padding: 18px 22px !important;
}

#admin .admin-command-bar {
  grid-template-columns: repeat(2, minmax(260px, 1fr)) !important;
  gap: 22px !important;
}

#admin .admin-command-bar button {
  min-height: 132px !important;
  padding: 24px !important;
}

#admin .admin-stats {
  grid-template-columns: repeat(4, minmax(180px, 1fr)) !important;
  gap: 18px !important;
}

#admin .admin-stats article {
  min-height: 112px !important;
  padding: 22px !important;
}

#admin .admin-tool-groups {
  grid-template-columns: repeat(2, minmax(280px, 1fr)) !important;
  gap: 22px !important;
}

#admin .admin-tool-group {
  padding: 20px !important;
}

#admin .admin-tools {
  gap: 12px !important;
}

#admin .admin-tool {
  min-height: 44px !important;
  padding: 0 16px !important;
}

#admin .admin-overview-grid {
  grid-template-columns: repeat(2, minmax(280px, 1fr)) !important;
  gap: 20px !important;
}

#admin .admin-dashboard-brief,
#admin .admin-recent-panel,
#admin .admin-overview-card {
  padding: 24px !important;
}

#admin .panel-form.admin-pane.is-active {
  grid-template-columns: 1fr !important;
  max-width: 980px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: clamp(22px, 3vw, 36px) !important;
}

#admin .admin-list.admin-pane.is-active {
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#admin [data-admin-pane="member-accounts"].admin-pane.is-active {
  max-width: none !important;
}

#admin .member-board-tools {
  grid-template-columns: repeat(3, minmax(190px, 1fr)) !important;
  gap: 16px !important;
}

#admin .member-board-summary {
  grid-template-columns: repeat(4, minmax(180px, 1fr)) !important;
  gap: 18px !important;
}

#admin .member-board-card {
  margin-top: 20px !important;
  padding: clamp(20px, 2.5vw, 32px) !important;
}

#admin .member-profile-panel {
  gap: 22px !important;
}

#admin .member-profile-details {
  grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
  gap: 14px !important;
}

@media (max-width: 900px) {
  #admin .admin-command-bar,
  #admin .admin-stats,
  #admin .admin-tool-groups,
  #admin .admin-overview-grid,
  #admin .member-board-tools,
  #admin .member-board-summary,
  #admin .member-profile-details {
    grid-template-columns: 1fr !important;
  }
}

/* Final visible photo cards: this must stay after the dark contrast pass above. */
#home .ministry-focus-grid {
  gap: 16px !important;
}

#home .ministry-focus-card,
#home .ministry-focus-card.is-tall {
  display: grid !important;
  grid-template-rows: minmax(150px, 1fr) auto auto !important;
  gap: 0 !important;
  min-height: 270px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 3px solid #12877f !important;
  border-radius: 8px !important;
  background: #12877f !important;
  box-shadow: 0 16px 36px rgba(7, 19, 38, 0.16) !important;
}

#home .ministry-focus-card::after {
  display: none !important;
}

#home .ministry-focus-card img {
  display: block !important;
  position: static !important;
  width: 100% !important;
  height: 170px !important;
  min-height: 170px !important;
  object-fit: cover !important;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
}

#home .ministry-focus-card span,
#home .ministry-focus-card strong {
  position: static !important;
  z-index: 1 !important;
  width: 100% !important;
  margin: 0 !important;
  color: #ffffff !important;
  text-shadow: none !important;
  opacity: 1 !important;
}

#home .ministry-focus-card span {
  padding: 16px 18px 4px !important;
  background: #12877f !important;
  font-size: 1.05rem !important;
  font-weight: 950 !important;
}

#home .ministry-focus-card strong {
  padding: 0 18px 18px !important;
  background: #12877f !important;
  font-size: clamp(1.2rem, 1.6vw, 1.5rem) !important;
  line-height: 1.18 !important;
  font-weight: 950 !important;
}

/* True final override: teal cards, visible pictures, bold white words */
.ministry-focus-card,
.ministry-focus-card.is-tall,
#outreach .outreach-grid .outreach-card {
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: 240px minmax(170px, auto) !important;
  align-content: stretch !important;
  gap: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  color: #ffffff !important;
  background: #0e8f86 !important;
  border: 3px solid #74ddd4 !important;
  border-radius: 8px !important;
  box-shadow: 0 18px 42px rgba(7, 19, 38, 0.16) !important;
}

.ministry-focus-card::after,
#outreach .outreach-grid .outreach-card::after {
  display: none !important;
}

.ministry-focus-card img,
#outreach .outreach-grid .outreach-card img {
  position: relative !important;
  inset: auto !important;
  z-index: 0 !important;
  width: 100% !important;
  height: 240px !important;
  object-fit: cover !important;
  display: block !important;
  filter: none !important;
  transform: none !important;
}

#outreach .outreach-grid .outreach-card > div {
  position: relative !important;
  z-index: 1 !important;
  margin: 0 !important;
  min-height: 170px !important;
  padding: 22px !important;
  border: 0 !important;
  border-top: 5px solid #bff8f2 !important;
  border-radius: 0 !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #0e8f86, #09645f) !important;
  box-shadow: none !important;
}

.ministry-focus-card span,
.ministry-focus-card strong {
  position: relative !important;
  z-index: 1 !important;
  display: block !important;
  margin: 0 !important;
  padding-left: 22px !important;
  padding-right: 22px !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #0e8f86, #09645f) !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

.ministry-focus-card span {
  padding-top: 22px !important;
  color: #d9fff8 !important;
  font-size: 1rem !important;
  font-weight: 950 !important;
}

.ministry-focus-card strong {
  max-width: none !important;
  padding-top: 8px !important;
  padding-bottom: 24px !important;
  font-size: clamp(1.65rem, 2.8vw, 2.35rem) !important;
  font-weight: 950 !important;
  line-height: 1.05 !important;
}

#outreach .outreach-grid .outreach-card .section-label,
#outreach .outreach-grid .outreach-card span {
  color: #d9fff8 !important;
  font-size: 1rem !important;
  font-weight: 950 !important;
  text-shadow: none !important;
}

#outreach .outreach-grid .outreach-card h3,
#outreach .outreach-grid .outreach-card p,
#outreach .outreach-grid .outreach-card strong,
#outreach .outreach-grid .outreach-card .muted {
  color: #ffffff !important;
  font-weight: 950 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

#outreach .outreach-grid .outreach-card h3 {
  font-size: clamp(1.65rem, 2.7vw, 2.35rem) !important;
  line-height: 1.05 !important;
}

#outreach .outreach-grid .outreach-card p,
#outreach .outreach-grid .outreach-card .muted {
  font-size: 1.08rem !important;
  line-height: 1.38 !important;
}

/* Outreach navigation cards: light readable layout */
#outreach .outreach-grid {
  align-items: stretch !important;
}

#outreach .outreach-grid .outreach-card {
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: 230px 1fr !important;
  align-content: stretch !important;
  color: #071326 !important;
  background: #ffffff !important;
  border: 1px solid rgba(7, 19, 38, 0.16) !important;
  box-shadow: 0 18px 42px rgba(7, 19, 38, 0.16) !important;
}

#outreach .outreach-grid .outreach-card::after {
  display: none !important;
}

#outreach .outreach-grid .outreach-card img {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: 230px !important;
  object-fit: cover !important;
  filter: none !important;
}

#outreach .outreach-grid .outreach-card > div {
  position: relative !important;
  z-index: 1 !important;
  margin: 0 !important;
  min-height: 190px !important;
  padding: 20px !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #071326 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

#outreach .outreach-grid .outreach-card .section-label,
#outreach .outreach-grid .outreach-card span {
  color: #9f2f54 !important;
  text-shadow: none !important;
}

#outreach .outreach-grid .outreach-card h3,
#outreach .outreach-grid .outreach-card p,
#outreach .outreach-grid .outreach-card strong,
#outreach .outreach-grid .outreach-card .muted {
  color: #071326 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

#outreach .outreach-grid .outreach-card .muted {
  color: #4a5568 !important;
}

#outreach .outreach-grid .outreach-card:hover,
#outreach .outreach-grid .outreach-card.is-active {
  border-color: #117a72 !important;
  background: #ffffff !important;
}

/* User requested beige Outreach cards with bold white words */
#outreach .outreach-grid .outreach-card {
  grid-template-rows: 220px 1fr !important;
  color: #ffffff !important;
  background: #b3915f !important;
  border: 2px solid #d8c297 !important;
}

#outreach .outreach-grid .outreach-card img {
  height: 220px !important;
  filter: brightness(0.82) saturate(1.04) contrast(1.05) !important;
}

#outreach .outreach-grid .outreach-card > div {
  min-height: 210px !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #9b7746, #6f512f) !important;
  border-top: 4px solid #f2dfae !important;
}

#outreach .outreach-grid .outreach-card .section-label,
#outreach .outreach-grid .outreach-card span {
  color: #fff4cc !important;
  font-weight: 950 !important;
}

#outreach .outreach-grid .outreach-card h3,
#outreach .outreach-grid .outreach-card p,
#outreach .outreach-grid .outreach-card strong,
#outreach .outreach-grid .outreach-card .muted {
  color: #ffffff !important;
  font-weight: 950 !important;
  opacity: 1 !important;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.42) !important;
}

#outreach .outreach-grid .outreach-card .muted {
  font-weight: 850 !important;
}

#outreach .outreach-grid .outreach-card:hover,
#outreach .outreach-grid .outreach-card.is-active {
  border-color: #fff4cc !important;
  background: #a98250 !important;
}

/* Green/teal readable cards for Outreach and Home focus */
#outreach .outreach-grid .outreach-card {
  color: #ffffff !important;
  background: #0e8f86 !important;
  border: 2px solid #5fd1c8 !important;
}

#outreach .outreach-grid .outreach-card img {
  filter: brightness(0.96) saturate(1.08) contrast(1.04) !important;
}

#outreach .outreach-grid .outreach-card > div {
  color: #ffffff !important;
  background: linear-gradient(135deg, #0e8f86, #09645f) !important;
  border-top: 4px solid #7de3d8 !important;
}

#outreach .outreach-grid .outreach-card .section-label,
#outreach .outreach-grid .outreach-card span,
#home .ministry-focus-card span {
  color: #d9fff8 !important;
  font-weight: 950 !important;
  font-size: 0.95rem !important;
}

#outreach .outreach-grid .outreach-card h3,
#outreach .outreach-grid .outreach-card p,
#outreach .outreach-grid .outreach-card strong,
#outreach .outreach-grid .outreach-card .muted {
  color: #ffffff !important;
  font-weight: 950 !important;
  opacity: 1 !important;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.36) !important;
}

#outreach .outreach-grid .outreach-card h3 {
  font-size: clamp(1.55rem, 2.5vw, 2.2rem) !important;
  line-height: 1.04 !important;
}

#outreach .outreach-grid .outreach-card p,
#outreach .outreach-grid .outreach-card .muted {
  font-size: 1.04rem !important;
  line-height: 1.35 !important;
}

#outreach .outreach-grid .outreach-card:hover,
#outreach .outreach-grid .outreach-card.is-active {
  border-color: #d9fff8 !important;
  background: #0b756f !important;
}

#home .ministry-focus-card {
  min-height: 280px !important;
  color: #ffffff !important;
  background: #0e8f86 !important;
  border: 2px solid rgba(95, 209, 200, 0.75) !important;
}

#home .ministry-focus-card::after {
  background:
    linear-gradient(180deg, rgba(7, 19, 38, 0.04) 0%, rgba(7, 19, 38, 0.28) 42%, rgba(7, 19, 38, 0.78) 100%),
    linear-gradient(90deg, rgba(14, 143, 134, 0.58), rgba(9, 100, 95, 0.2)) !important;
}

#home .ministry-focus-card img {
  filter: brightness(0.96) saturate(1.12) contrast(1.05) !important;
}

#home .ministry-focus-card strong {
  color: #ffffff !important;
  max-width: 360px !important;
  font-size: clamp(1.55rem, 2.8vw, 2.35rem) !important;
  font-weight: 950 !important;
  line-height: 1.02 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.42) !important;
}

#home .ministry-focus-card:hover {
  border-color: #d9fff8 !important;
}

/* Home focus cards: visible pictures with readable teal captions */
#home .ministry-focus-grid {
  grid-auto-rows: auto !important;
}

#home .ministry-focus-card,
#home .ministry-focus-card.is-tall {
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: 240px minmax(150px, auto) !important;
  align-content: stretch !important;
  gap: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  color: #ffffff !important;
  background: #0e8f86 !important;
  border: 2px solid rgba(95, 209, 200, 0.85) !important;
}

#home .ministry-focus-card::after {
  display: none !important;
}

#home .ministry-focus-card img {
  position: relative !important;
  inset: auto !important;
  z-index: 0 !important;
  width: 100% !important;
  height: 240px !important;
  object-fit: cover !important;
  display: block !important;
  filter: none !important;
  transform: none !important;
}

#home .ministry-focus-card span,
#home .ministry-focus-card strong {
  position: relative !important;
  z-index: 1 !important;
  display: block !important;
  margin: 0 !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  color: #ffffff !important;
  text-shadow: none !important;
}

#home .ministry-focus-card span {
  align-self: start !important;
  padding-top: 20px !important;
  color: #d9fff8 !important;
  font-size: 0.95rem !important;
  font-weight: 950 !important;
}

#home .ministry-focus-card strong {
  align-self: start !important;
  max-width: none !important;
  padding-top: 8px !important;
  padding-bottom: 22px !important;
  font-size: clamp(1.5rem, 2.4vw, 2.15rem) !important;
  font-weight: 950 !important;
  line-height: 1.05 !important;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.server-warning {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px clamp(18px, 5vw, 64px);
  color: #fff;
  background: #9c2f2f;
  text-align: center;
}

.server-warning a {
  color: #fff;
  font-weight: 900;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(222, 215, 203, 0.8);
  background: rgba(248, 245, 239, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 68px;
  height: 48px;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #050505;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-mark-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--accent));
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
}

.brand-mark-fallback::before {
  content: "MZ";
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-weight: 800;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: end;
  position: relative;
  z-index: 1001;
}

.menu-toggle {
  position: relative;
  z-index: 1002;
  display: none;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--accent-dark);
  background: #fff;
  font-weight: 900;
  pointer-events: auto;
  touch-action: manipulation;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 6px;
  border: 2px solid rgba(17, 122, 114, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(7, 19, 38, 0.14);
}

.language-switcher button {
  min-width: 54px;
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  color: var(--accent-dark);
  background: transparent;
  font-size: 0.95rem;
  font-weight: 950;
}

.language-switcher button.is-active {
  color: #fff;
  background: var(--accent);
}

.language-gate {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(7, 19, 38, 0.78);
  backdrop-filter: blur(16px);
}

.language-gate-panel {
  width: min(680px, 100%);
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  padding: clamp(30px, 6vw, 56px);
  color: #071326;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.language-gate-panel img {
  width: 112px;
  height: 78px;
  object-fit: contain;
  margin-bottom: 18px;
}

.language-gate-panel h2 {
  color: #071326;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  margin-bottom: 14px;
}

.language-gate-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.language-gate-actions button {
  min-width: 190px;
  min-height: 58px;
  padding: 0 28px;
  font-size: 1.12rem;
  font-weight: 950;
}

.nav-item,
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 13px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}

.nav-item:hover,
.nav-item.is-active,
.nav-dropdown-toggle:hover {
  color: var(--accent-dark);
  background: #eee7dc;
}

.nav-dropdown {
  display: inline-grid;
  position: relative;
}

.nav-dropdown summary {
  display: flex;
  align-items: center;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary::after {
  content: "v";
  margin-left: 7px;
  font-size: 0.72rem;
  font-weight: 900;
}

.nav-dropdown[open] summary {
  color: var(--accent-dark);
  background: #eee7dc;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 1200;
  min-width: 220px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.nav-dropdown-menu button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
  background: transparent;
  font-weight: 850;
  text-align: left;
}

.nav-dropdown-menu button:hover,
.nav-dropdown-menu button:focus-visible {
  color: var(--accent-dark);
  background: #eee7dc;
  outline: 0;
}

.nav-give {
  color: #fff;
  background: var(--accent);
}

.nav-give:hover,
.nav-give.is-active {
  color: #fff;
  background: var(--accent-dark);
}

.hero {
  min-height: calc(100vh - 76px);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: end;
  padding: clamp(26px, 7vw, 76px);
  background: #10231f;
}

.screen {
  display: none;
}

.screen.is-active {
  display: block;
}

.hero.screen.is-active {
  display: flex;
}

body:not([data-page="home"]) .home-extra {
  display: none;
}

.hero-slides,
.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slides img {
  object-fit: cover;
  opacity: 0;
  animation: heroFade 25s infinite;
  background: var(--navy);
}

.hero-slides img:nth-child(2) {
  animation-delay: 5s;
}

.hero-slides img:nth-child(3) {
  animation-delay: 10s;
}

.hero-slides img:nth-child(4) {
  animation-delay: 15s;
}

.hero-slides img:nth-child(5) {
  animation-delay: 20s;
}

@keyframes heroFade {
  0%, 16% {
    opacity: 1;
  }
  20%, 100% {
    opacity: 0;
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(70deg, rgba(10, 17, 15, 0.93), rgba(10, 17, 15, 0.62) 48%, rgba(10, 17, 15, 0.12));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  color: #fff;
}

.eyebrow,
.section-label {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 1180px;
  margin-bottom: 18px;
  font-size: clamp(4.5rem, 15vw, 12rem);
  line-height: 0.82;
  text-wrap: balance;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.15;
}

.hero-content p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.06rem, 2vw, 1.32rem);
  line-height: 1.55;
}

.hero-actions,
.section-header,
.feature-band,
.visit-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.hero-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-event-card {
  width: min(520px, 100%);
  margin-top: 22px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: 14px 16px;
  color: #fff;
  background: rgba(18, 33, 30, 0.72);
  text-align: left;
  backdrop-filter: blur(10px);
}

.hero-event-card span,
.series-strip span,
.ministry-card span,
.gallery-tile span {
  display: block;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-event-card strong {
  display: block;
  margin-top: 4px;
  font-size: 1.08rem;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  min-height: 46px;
  border-radius: 8px;
  border: 0;
  padding: 0 20px;
  font-weight: 900;
}

.primary-btn {
  color: #fff;
  background: var(--accent);
}

.secondary-btn {
  color: #fff;
  background: var(--accent-dark);
}

.ghost-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.intro-section,
.latest-section,
.pastor-welcome,
.page-section,
.feature-band,
.visit-section {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 64px);
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(280px, 0.8fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}

.intro-copy {
  max-width: 520px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pastor-welcome {
  display: grid;
  grid-template-columns: minmax(260px, 0.44fr) minmax(320px, 0.9fr);
  gap: clamp(20px, 5vw, 54px);
  align-items: center;
  background: #fbfaf6;
}

.pastor-welcome img {
  width: 100%;
  max-height: 520px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 18px 42px rgba(27, 31, 28, 0.14);
}

.pastor-welcome .secondary-btn {
  margin-top: 10px;
}

.daily-verse-card {
  grid-column: span 2;
  overflow: hidden;
  border-radius: 8px;
  background: #17120a;
  color: #fff;
  box-shadow: 0 18px 42px rgba(27, 31, 28, 0.16);
}

.daily-verse-copy {
  padding: 26px 28px 12px;
}

.daily-verse-copy h3 {
  margin-bottom: 8px;
  font-size: clamp(1.5rem, 2vw, 2.2rem);
  line-height: 1;
}

.daily-verse-card .muted {
  color: rgba(255, 255, 255, 0.74);
}

.daily-verse-frame {
  display: grid;
  min-height: clamp(420px, 48vw, 680px);
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
}

.daily-verse-frame img {
  width: 100%;
  height: 100%;
  max-height: 760px;
  object-fit: contain;
  padding: 10px;
}

.daily-verse-engagement {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  padding: 8px 0 0;
}

.daily-verse-heart {
  background: #fff;
}

.daily-verse-heart.is-loved {
  color: #fff;
  border-color: var(--rose);
  background: var(--rose);
}

.quick-action,
.teaching-card,
.leader-card,
.announcement-card,
.event-card,
.about-panel,
.search-result,
.panel-form,
.submitted-list,
.giving-summary,
.announcement-list,
.admin-list,
.reader-panel,
.verse-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.quick-action {
  min-height: 150px;
  padding: 22px;
  text-align: left;
}

.quick-action span {
  display: block;
  margin-bottom: 18px;
  color: var(--rose);
  font-weight: 900;
}

.quick-action strong {
  font-size: 1.18rem;
  line-height: 1.25;
}

.latest-section {
  padding-top: clamp(28px, 5vw, 64px);
}

.latest-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.highlight-card,
.latest-card {
  min-height: 230px;
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--accent);
  border-radius: 8px;
  padding: 22px;
  background: var(--surface);
}

.highlight-card h3,
.latest-card h3 {
  margin-bottom: 0;
  line-height: 1.12;
}

.home-announcement-poster,
.home-event-poster {
  width: 100%;
  max-height: 180px;
  margin-top: 8px;
  border-radius: 6px;
  object-fit: cover;
}

.event-grid,
.about-grid,
.search-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.event-card,
.about-panel,
.search-result {
  padding: 22px;
}

.event-card {
  display: grid;
  overflow: hidden;
  border-top: 5px solid var(--accent);
}

.event-card-body {
  display: grid;
  gap: 8px;
  padding: 22px;
}

.event-poster {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  display: block;
  background: #17120a;
}

.home-event-poster {
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
  display: block;
  margin-bottom: 12px;
  border-radius: 8px;
  background: #17120a;
}

.event-card h3,
.about-panel h3,
.search-result h3 {
  margin-bottom: 4px;
  line-height: 1.15;
}

.event-date {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  border-radius: 8px;
  padding: 0 12px;
  color: #fff;
  background: var(--accent-dark);
  font-weight: 900;
}

.event-rsvp {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.event-rsvp-count {
  color: var(--accent-dark);
  font-weight: 900;
}

.about-panel {
  min-height: 230px;
  background:
    linear-gradient(180deg, rgba(245, 131, 31, 0.08), rgba(255, 255, 255, 0) 46%),
    var(--surface);
}

.contact-wide {
  grid-column: 1 / -1;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.contact-actions a,
.contact-actions button,
.footer-links button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  color: var(--accent-dark);
  background: #f7f2e8;
  text-decoration: none;
  font-weight: 900;
}

.search-form {
  max-width: 760px;
  margin-bottom: 20px;
}

.search-results {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.search-result {
  display: grid;
  gap: 8px;
  align-content: start;
}

.feature-band,
.visit-section {
  margin: 0 clamp(18px, 5vw, 64px);
  padding: clamp(30px, 5vw, 48px);
  border-radius: 8px;
  color: #fff;
  background: var(--accent-dark);
}

.feature-band .muted,
.visit-section .muted {
  color: rgba(255, 255, 255, 0.74);
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.contact-list a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: 0 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  font-weight: 900;
}

.muted,
.section-note {
  color: var(--muted);
}

.section-note {
  max-width: 460px;
  line-height: 1.55;
}

.section-header {
  margin-bottom: 24px;
}

.segmented {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eee8df;
}

.teaching-filter-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 10px;
  width: min(760px, 100%);
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.segment {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  padding: 0 14px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
}

.segment.is-active {
  color: #fff;
  background: var(--accent-dark);
}

.pdf-filter-label {
  display: grid;
  gap: 3px;
  min-width: 168px;
  margin-left: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.teaching-filter-panel .pdf-filter-label {
  min-width: 0;
  margin-left: 0;
}

.pdf-filter {
  min-height: 36px;
  padding: 6px 34px 6px 10px;
  border-radius: 6px;
  font-size: 0.92rem;
  text-transform: none;
}

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

.series-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.series-strip article {
  min-height: 104px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.series-strip article[data-highlight-teaching] {
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.series-strip article[data-highlight-teaching]:hover,
.series-strip article[data-highlight-teaching]:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(27, 31, 28, 0.12);
  outline: 0;
  transform: translateY(-2px);
}

.series-strip strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
}

.series-strip .resource-feature strong {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.05;
  font-weight: 950;
}

.series-strip .resource-feature {
  cursor: pointer;
}

.series-strip .resource-feature:hover,
.series-strip .resource-feature:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(27, 31, 28, 0.12);
  outline: 0;
  transform: translateY(-2px);
}

.series-strip small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.highlight-list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.highlight-list button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 8px;
  color: var(--ink);
  background: #fbfaf6;
  font-weight: 800;
  text-align: left;
}

.highlight-list button:hover,
.highlight-list button:focus-visible {
  border-color: var(--accent);
  outline: 0;
}

.teaching-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(190px, 0.35fr);
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.teaching-card {
  min-height: 250px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.teaching-card.is-highlighted {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(243, 108, 33, 0.18), var(--shadow);
}

.teaching-type {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.teaching-card[data-kind="pdf"] .teaching-type {
  background: var(--rose);
}

.teaching-card[data-kind="video"] .teaching-type {
  background: #1877f2;
}

.teaching-card[data-kind="written"] .teaching-type {
  background: var(--gold);
  color: #17120a;
}

.pdf-author-folder {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.pdf-author-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}

.pdf-author-header::-webkit-details-marker {
  display: none;
}

.pdf-author-header::after {
  content: "+";
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--rose);
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
}

.pdf-author-folder[open] .pdf-author-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.pdf-author-folder[open] .pdf-author-header::after {
  content: "-";
}

.pdf-author-header span {
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pdf-author-header h3 {
  margin: 0;
}

.pdf-author-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.payment-return-banner {
  margin: 18px 0 24px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid rgba(45, 132, 88, 0.28);
  border-left: 8px solid #2d8458;
  border-radius: 8px;
  background: #f2fbf5;
  color: var(--ink);
}

.payment-return-banner strong {
  display: block;
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 5vw, 3rem);
  line-height: 1;
  font-weight: 950;
}

.payment-return-banner p {
  max-width: 900px;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 750;
  line-height: 1.45;
}

.teaching-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 1.15rem;
}

.reader-panel {
  position: fixed;
  inset: 88px 28px 28px auto;
  width: min(560px, calc(100vw - 56px));
  overflow: auto;
  padding: 26px;
  box-shadow: var(--shadow);
  z-index: 30;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 1.1rem;
}

.outreach-section,
.bible-section,
.ministries-section,
.gallery-section,
.resources-section,
.next-steps-section,
.give-section,
.admin-section {
  background: #efe9df;
}

.leadership-section {
  background: #fbfaf6;
}

.announcements-section {
  background: #f7f2e8;
}

.prayer-section {
  background: #fbfaf6;
}

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

.leader-card {
  min-height: 360px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.leader-photo {
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 999px;
  color: #fff;
  background: var(--accent-dark);
  font-weight: 900;
  font-size: 1.25rem;
}

.leader-image {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  border: 3px solid #fff;
  box-shadow: 0 12px 28px rgba(27, 31, 28, 0.18);
}

.leader-role {
  color: var(--rose);
  font-weight: 900;
}

.ministry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ministry-card {
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  color: inherit;
  background: #fff;
  text-align: left;
  box-shadow: 0 12px 30px rgba(27, 31, 28, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ministry-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.ministry-card.is-active {
  border-color: var(--accent);
  background: #fff7ed;
}

.ministry-card strong {
  display: block;
  margin-top: 18px;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.35;
}

.ministry-detail-panel {
  margin-top: 18px;
  padding: 24px;
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(27, 31, 28, 0.08);
}

.ministry-detail-panel .detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.ministry-join-layout,
.contact-forms-layout {
  margin-top: 22px;
}

.next-steps-hero {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 0.7fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.next-steps-hero > div,
.next-step-card {
  border-radius: 8px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(27, 31, 28, 0.09);
}

.next-steps-hero h3 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.salvation-prayer {
  color: #fff;
  background: #12211e !important;
}

.salvation-prayer p:not(.section-label) {
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.05rem;
  line-height: 1.65;
}

.next-step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.next-step-card span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-weight: 900;
}

.next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.next-step-followup {
  margin-top: 24px;
}

.next-step-followup {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.album-filter-bar {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.album-filter {
  min-height: 58px;
  border: 1px solid #d9c6a5;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff8e8;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(27, 31, 28, 0.06);
}

.album-filter::before {
  content: "";
  display: block;
  width: 28px;
  height: 8px;
  margin-bottom: 6px;
  border-radius: 5px 5px 0 0;
  background: #c48a1d;
}

.album-filter:hover,
.album-filter:focus-visible {
  border-color: var(--accent);
  background: #fff1cf;
  outline: 0;
}

.album-filter.is-active {
  border-color: var(--accent);
  color: #fff;
  background: #24483f;
}

.album-filter.is-active::before {
  background: var(--gold);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 230px;
  gap: 12px;
}

.gallery-tile {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #17120a;
}

.gallery-tile.large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-tile.tall {
  grid-row: span 2;
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.88;
  background: #17120a;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.gallery-tile:hover img {
  opacity: 1;
  transform: scale(1.03);
}

.gallery-tile span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  width: fit-content;
  max-width: calc(100% - 28px);
  padding: 8px 10px;
  border-radius: 8px;
  color: #17120a;
  background: var(--gold);
}

.gallery-tile small {
  position: absolute;
  left: 14px;
  bottom: 56px;
  max-width: calc(100% - 28px);
  padding: 6px 8px;
  border-radius: 8px;
  color: #fff;
  background: rgba(18, 33, 30, 0.8);
  font-weight: 900;
}

.live-stream-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(320px, 1fr);
  gap: 18px;
  margin-top: 24px;
  padding: 20px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(27, 31, 28, 0.08);
}

.live-stream-frame {
  min-height: 260px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #121212;
}

.live-stream-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

.live-stream-frame .primary-btn {
  width: auto;
}

.live-stream-list {
  width: 100%;
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #fff;
}

.live-stream-item {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(107, 79, 31, 0.16);
  border-radius: 8px;
  background: #fffaf0;
}

.live-stream-item.is-current {
  border-color: var(--accent);
  box-shadow: inset 4px 0 0 var(--accent);
}

.stream-badge {
  width: max-content;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.calendar-shell {
  margin-bottom: 24px;
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(27, 31, 28, 0.08);
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.calendar-toolbar h3 {
  margin: 0;
  text-align: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-day-name,
.calendar-cell {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfaf6;
}

.calendar-day-name {
  min-height: auto;
  color: var(--rose);
  text-align: center;
  font-weight: 900;
  background: #fff7ed;
}

.calendar-cell.is-empty {
  opacity: 0.4;
}

.calendar-cell.has-event {
  border-color: #b76d10;
  background: #fff4dd;
  box-shadow: inset 0 0 0 2px rgba(183, 109, 16, 0.18);
}

.calendar-number {
  display: block;
  margin-bottom: 8px;
  font-weight: 900;
}

.calendar-cell.has-event .calendar-number {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #fff;
  background: #9f4512;
  font-weight: 1000;
}

.calendar-event {
  display: block;
  margin-top: 6px;
  border-left: 4px solid #0f766e;
  border-radius: 6px;
  padding: 6px 8px;
  color: #14332f;
  background: #d9f2ec;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.25;
}

.resource-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

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

.resource-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 260px;
  padding: 20px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(27, 31, 28, 0.08);
}

.resource-card .inline-actions {
  margin-top: auto;
}

.resource-preview-panel {
  background: #fff;
}

.resource-preview-panel iframe {
  width: 100%;
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f2e8;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed rgba(27, 31, 28, 0.22);
  border-radius: 8px;
  text-align: center;
  background: rgba(255, 255, 255, 0.68);
}

.empty-state strong {
  display: block;
  margin-bottom: 6px;
}

.resource-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--accent-dark);
  font-weight: 900;
}

.book-sale-box {
  display: grid;
  gap: 12px;
}

.book-cover,
.book-download-cover {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 8px;
  background: #17120a;
  box-shadow: 0 14px 34px rgba(27, 31, 28, 0.16);
}

.book-download-cover {
  max-width: 280px;
}

.book-cover-placeholder {
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(14, 109, 97, 0.3);
  border-radius: 8px;
  color: var(--accent-dark);
  background: #f4fffb;
  font-weight: 900;
}

.book-description {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(14, 109, 97, 0.18);
  border-radius: 8px;
  background: #f4fffb;
}

.book-description span {
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.book-description p {
  margin: 0;
  line-height: 1.55;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.share-actions a {
  position: relative;
  width: 42px;
  height: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(20, 35, 31, 0.12);
  border-radius: 999px;
  padding: 0;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(27, 31, 28, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.share-actions a:hover,
.share-actions a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(27, 31, 28, 0.14);
  outline: 0;
}

.share-actions svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.share-actions span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.share-whatsapp {
  color: #fff !important;
  border-color: rgba(37, 211, 102, 0.2) !important;
  background: #25d366 !important;
}

.share-facebook {
  color: #fff !important;
  border-color: rgba(24, 119, 242, 0.24) !important;
  background: #1877f2 !important;
}

.share-gmail {
  color: #fff !important;
  border-color: rgba(234, 67, 53, 0.24) !important;
  background: #ea4335 !important;
}

.share-email {
  color: #fff !important;
  border-color: rgba(36, 72, 63, 0.24) !important;
  background: #24483f !important;
}

.announcement-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 0.7fr);
  gap: 18px;
  align-items: start;
}

.announcement-list {
  padding: 10px 22px;
}

.announcement-card {
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.announcement-card:last-child {
  border-bottom: 0;
}

.announcement-date {
  color: var(--rose);
  font-weight: 900;
}

.announcement-poster,
.announcement-video {
  width: 100%;
  margin-bottom: 14px;
  border-radius: 8px;
  background: #111;
}

.announcement-poster {
  display: block;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.announcement-video {
  display: block;
  max-height: 520px;
  object-fit: contain;
}

.bible-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
  align-items: end;
  width: min(760px, 100%);
}

.chapter-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.chapter-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

select,
input,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
}

textarea {
  resize: vertical;
}

.bible-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.verse-card {
  padding: 18px;
}

.verse-number {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.outreach-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  background: #17120a;
  color: #fff;
  box-shadow: 0 20px 46px rgba(27, 31, 28, 0.18);
}

.outreach-hero img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.outreach-hero > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
}

.outreach-hero h3 {
  max-width: 720px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

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

.outreach-card {
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid transparent;
  background: #fff;
  box-shadow: 0 12px 30px rgba(27, 31, 28, 0.1);
  color: inherit;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.outreach-card:hover,
.outreach-card.is-active {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.outreach-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.outreach-card > div {
  padding: 18px;
}

.outreach-card h3 {
  color: var(--ink);
}

.outreach-live {
  display: none;
  margin-top: 34px;
}

.outreach-section.is-drilled .outreach-live {
  display: block;
}

.outreach-section.is-drilled .outreach-hero,
.outreach-section.is-drilled .outreach-grid {
  display: none;
}

.outreach-section.is-drilled .outreach-live {
  margin-top: 0;
}

.compact-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.outreach-activity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.outreach-activity {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(27, 31, 28, 0.12);
}

.outreach-activity > div {
  padding: 20px;
}

.outreach-activity-image,
.outreach-activity-placeholder {
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: contain;
  background: #17120a;
}

.outreach-activity-placeholder {
  min-height: 310px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
}

.outreach-need {
  margin-top: 14px;
  padding: 14px;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #f7f2e8;
}

.outreach-need p {
  margin-bottom: 0;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(280px, 1fr);
  gap: 18px;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(280px, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-private {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-private .admin-status {
  grid-column: 1 / -1;
}

.admin-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.admin-stats article {
  min-height: 96px;
  padding: 14px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(27, 31, 28, 0.08);
}

.admin-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-stats strong {
  display: block;
  margin-top: 8px;
  color: var(--accent-dark);
  font-size: 2rem;
}

.admin-tool-groups {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 0.7fr 1.25fr 1.25fr 0.9fr;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-tool-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(27, 31, 28, 0.06);
}

.admin-tool-group h3,
.admin-tool-group summary {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-tool-group summary {
  cursor: pointer;
}

.admin-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.admin-overview-card {
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(27, 31, 28, 0.08);
}

.admin-overview-card strong {
  display: block;
  margin-bottom: 8px;
}

.request-card {
  display: grid;
  gap: 10px;
}

.request-card > strong {
  font-size: 1.15rem;
}

.request-field {
  display: grid;
  gap: 3px;
  color: var(--muted);
}

.request-field b {
  color: var(--ink);
}

.member-board-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.member-board-summary article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
}

.member-board-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.member-board-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--accent-dark);
  font-size: 1.8rem;
}

.member-board-tools,
.member-board-edit-grid,
.member-board-fields {
  display: grid;
  gap: 10px;
}

.member-board-tools {
  grid-template-columns: repeat(4, minmax(150px, 1fr)) auto auto;
  margin-bottom: 16px;
}

.member-board-edit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-board-card {
  display: grid;
  gap: 12px;
}

.member-board-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.member-board-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.member-board-fields span,
.member-note {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
}

.member-board-fields b,
.member-note b {
  display: block;
  color: var(--accent-dark);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.member-status-pill {
  min-height: 32px;
  border-radius: 999px;
  padding: 7px 12px;
  color: #fff;
  background: var(--accent-dark);
  font-weight: 900;
  white-space: nowrap;
}

.member-status-pill.status-pending {
  background: #9f6518;
}

.member-status-pill.status-inactive {
  background: #6f7370;
}

.admin-tool {
  width: auto;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 11px;
  color: var(--muted);
  background: #fbfaf6;
  font-weight: 900;
}

.admin-tool.is-active {
  color: #fff;
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

.admin-pane {
  display: none;
}

.admin-pane.is-active {
  display: grid;
}

.panel-form,
.submitted-list,
.giving-summary,
.admin-list {
  padding: 22px;
}

.panel-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

.checkbox-row {
  grid-template-columns: 18px 1fr;
  align-items: start;
  color: var(--ink);
  font-weight: 500;
}

.checkbox-row input {
  min-height: auto;
  margin-top: 4px;
}

.testimony-item,
.receipt {
  border-left: 4px solid var(--gold);
  padding: 12px 0 12px 14px;
}

.testimony-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.testimony-copy {
  min-width: 0;
}

.testimony-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.testimony-photos figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.testimony-photos img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  display: block;
  background: #17120a;
}

.testimony-photos figcaption {
  padding: 8px 10px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.testimony-item + .testimony-item {
  border-top: 1px solid var(--line);
}

.heart-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  border: 1px solid #f0c6cf;
  border-radius: 999px;
  padding: 0 12px;
  color: #b81642;
  background: #fff7f9;
  font-weight: 900;
  white-space: nowrap;
}

.heart-btn:hover {
  border-color: #d74268;
  background: #ffe8ee;
}

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

.amount-grid button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 900;
}

.amount-grid button:hover {
  border-color: var(--accent);
}

.giving-purpose-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}

.giving-purpose-grid span {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent-dark);
  background: #fff;
  font-weight: 900;
}

.book-download-box {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid rgba(107, 79, 31, 0.18);
  border-radius: 8px;
  background: #fffaf0;
}

.book-download-box label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.book-download-box input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(39, 35, 30, 0.18);
  border-radius: 8px;
  padding: 10px 12px;
}

.book-download-page {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,247,234,0.96)),
    url("assets/home-slide-3.webp") center/cover;
}

.book-download-hero,
.book-download-panel {
  max-width: 920px;
  margin: 0 auto;
}

.book-download-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  align-items: center;
  gap: 24px;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(107, 79, 31, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.book-download-hero img {
  width: 100%;
  max-height: 140px;
  object-fit: contain;
  border-radius: 8px;
  background: #050505;
}

.book-download-panel {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(27, 31, 28, 0.08);
}

.book-download-panel strong {
  font-size: clamp(1.25rem, 3vw, 2rem);
}

.book-download-panel .primary-btn,
.book-download-panel .secondary-btn {
  width: fit-content;
}

.book-reference-pill {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: #ecf7f4;
  font-weight: 900;
}

.membership-section {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(255,247,234,0.96)),
    url("assets/home-slide-2.webp") center/cover;
}

.membership-layout {
  align-items: start;
}

.member-login-panel {
  border-top: 5px solid var(--accent);
}

.member-login-result {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 8px;
  background: #fff7ea;
}

.member-dashboard {
  display: grid;
  gap: 16px;
}

.member-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.member-dashboard-grid article {
  min-height: 84px;
  display: grid;
  align-content: center;
  gap: 4px;
  border: 1px solid rgba(39, 35, 30, 0.12);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.member-dashboard-grid span {
  color: var(--muted);
  font-weight: 800;
  font-size: 0.78rem;
}

.member-dashboard-grid strong {
  color: var(--accent-dark);
  font-size: 1.65rem;
}

.fine-print {
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--accent-dark);
}

.text-btn {
  border: 0;
  color: #fff;
  background: transparent;
  font-weight: 900;
  text-decoration: underline;
}

.admin-teaching-item {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.admin-teaching-item:last-child {
  border-bottom: 0;
}

.admin-edit-form {
  display: none;
  gap: 8px;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
}

.admin-teaching-item.is-editing .admin-edit-form {
  display: grid;
}

.danger-btn {
  width: fit-content;
  min-height: 36px;
  border: 1px solid #c8a4aa;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--rose);
  background: #fff;
  font-weight: 900;
}

.prayed-btn {
  margin-top: 8px;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 12px 0;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
}

.video-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-start-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: transparent;
  background: rgba(10, 67, 61, 0.22);
  font-weight: 900;
}

.video-start-overlay::before {
  content: "";
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(243, 108, 33, 0.94);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.video-start-overlay::after {
  content: "";
  position: absolute;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 19px solid #fff;
  transform: translateX(4px);
}

.video-engagement {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.comment-form {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.comment-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.video-comment {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  background: transparent;
}

.comment-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--accent-dark);
  font-weight: 900;
}

.comment-body {
  min-width: 0;
}

.comment-meta {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
}

.comment-message {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.comment-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.plain-action {
  border: 0;
  padding: 0;
  color: var(--accent-dark);
  background: transparent;
  font-size: 0.9rem;
  font-weight: 900;
}

.reply-drawer {
  display: inline-block;
}

.reply-drawer summary {
  cursor: pointer;
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 900;
  list-style: none;
}

.reply-drawer summary::-webkit-details-marker {
  display: none;
}

.comment-reply-form {
  display: grid;
  gap: 8px;
  width: min(520px, 100%);
  margin-top: 10px;
}

.comment-replies {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.comment-reply {
  padding-left: 12px;
  border-left: 2px solid var(--line);
}

.audio-box audio {
  width: 100%;
  margin-top: 12px;
}

.uploaded-file-viewer audio {
  width: 100%;
  margin-top: 12px;
}

.pdf-preview {
  width: 100%;
  height: min(70vh, 720px);
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.book-sale-box {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(201, 144, 47, 0.42);
  border-radius: 8px;
  background: #fff8e8;
}

.book-sale-box strong {
  color: var(--accent-dark);
}

.book-sale-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

#amountInput.is-locked {
  color: var(--accent-dark);
  background: #eef8f5;
  border-color: var(--accent);
  font-weight: 900;
}

.file-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 64px);
  color: #fff;
  background: #12211e;
}

.site-footer span {
  color: rgba(255, 255, 255, 0.68);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-links button {
  min-height: 36px;
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.social-link {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: #1877f2;
  text-decoration: none;
  font-size: 1.45rem;
  font-weight: 900;
}

.social-link svg {
  width: 25px;
  height: 25px;
  display: block;
  fill: currentColor;
}

.facebook-link:hover {
  background: #0f5fc4;
}

.whatsapp-link {
  background: #25d366;
}

.whatsapp-link:hover {
  background: #1ba955;
}

.gmail-link {
  background: #fff;
}

.gmail-link:hover {
  background: #f1f3f4;
}

.gmail-link svg {
  width: 28px;
  height: 28px;
  fill: none;
}

.gmail-red {
  fill: #ea4335;
}

.gmail-blue {
  fill: #4285f4;
}

.gmail-green {
  fill: #34a853;
}

.gmail-yellow {
  fill: #fbbc04;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(120px);
  max-width: min(92vw, 520px);
  padding: 12px 18px;
  border-radius: 8px;
  color: #fff;
  background: #12211e;
  box-shadow: var(--shadow);
  transition: transform 180ms ease;
  z-index: 40;
}

.toast.is-visible {
  transform: translateX(-50%) translateY(0);
}

/* Premium Mount Zion colour system */
body {
  background:
    radial-gradient(circle at 8% 4%, rgba(17, 122, 114, 0.13), transparent 34%),
    radial-gradient(circle at 92% 2%, rgba(159, 47, 84, 0.1), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 34%, #f4f7fb 100%);
}

.site-header {
  border-bottom: 1px solid rgba(223, 230, 239, 0.75);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 40px rgba(7, 19, 38, 0.08);
}

.brand-mark {
  background: var(--navy);
  box-shadow: 0 14px 30px rgba(7, 19, 38, 0.16);
}

.nav-item,
.nav-dropdown-toggle {
  color: #253044;
  background: rgba(255, 255, 255, 0.7);
}

.nav-item:hover,
.nav-item.is-active,
.nav-dropdown-toggle:hover,
.nav-dropdown[open] summary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
}

.nav-give,
.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  box-shadow: 0 14px 30px rgba(15, 95, 174, 0.22);
}

.nav-give:hover,
.nav-give.is-active,
.secondary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-dark), #123c66);
}

.ghost-btn {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.16);
}

.hero::after {
  background:
    radial-gradient(circle at 20% 22%, rgba(17, 122, 114, 0.28), transparent 34%),
    radial-gradient(circle at 84% 18%, rgba(159, 47, 84, 0.22), transparent 28%),
    linear-gradient(70deg, rgba(7, 19, 38, 0.94), rgba(7, 19, 38, 0.66) 48%, rgba(7, 19, 38, 0.16));
}

.hero-event-card {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(7, 19, 38, 0.66);
  box-shadow: 0 22px 50px rgba(7, 19, 38, 0.28);
}

.section-label,
.hero-event-card span,
.series-strip span,
.ministry-card span,
.gallery-tile span,
.quick-action span {
  color: var(--gold);
}

.intro-section,
.latest-section,
.leadership-section,
.prayer-section {
  background: transparent;
}

.outreach-section,
.bible-section,
.ministries-section,
.gallery-section,
.resources-section,
.next-steps-section,
.give-section,
.admin-section {
  background:
    radial-gradient(circle at top left, rgba(15, 95, 174, 0.08), transparent 30%),
    linear-gradient(180deg, #f8fbff, #eef3f8);
}

.announcements-section {
  background:
    radial-gradient(circle at 12% 12%, rgba(211, 154, 45, 0.16), transparent 34%),
    linear-gradient(180deg, #fffaf0, #f7f1e7);
}

.visit-section,
.salvation-prayer,
.give-section .payment-return-banner {
  background:
    radial-gradient(circle at 14% 18%, rgba(17, 122, 114, 0.22), transparent 30%),
    radial-gradient(circle at 90% 72%, rgba(159, 47, 84, 0.18), transparent 30%),
    linear-gradient(135deg, var(--navy), var(--accent-dark));
}

.quick-action,
.latest-card,
.teaching-card,
.leader-card,
.announcement-card,
.event-card,
.about-panel,
.search-result,
.panel-form,
.submitted-list,
.giving-summary,
.admin-list,
.resource-card,
.ministry-card,
.next-step-card,
.admin-overview-card,
.admin-teaching-item,
.pdf-author-folder {
  border-color: rgba(223, 230, 239, 0.92);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.quick-action:hover,
.ministry-card:hover,
.resource-card:hover,
.teaching-card:hover,
.event-card:hover,
.admin-overview-card:hover {
  border-color: rgba(17, 122, 114, 0.35);
  box-shadow: 0 28px 76px rgba(7, 19, 38, 0.18);
}

.event-card,
.announcement-card {
  border-top-color: var(--accent);
}

.event-date,
.teaching-type,
.pdf-filter,
.segment.is-active,
.album-filter.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
}

.teaching-card[data-kind="pdf"] .teaching-type {
  background: linear-gradient(135deg, var(--rose), #c24d74);
}

.teaching-card[data-kind="video"] .teaching-type {
  background: linear-gradient(135deg, var(--blue), #3f8ee0);
}

.teaching-card[data-kind="book"] .teaching-type,
.teaching-card[data-kind="written"] .teaching-type {
  color: var(--navy);
  background: linear-gradient(135deg, #ffe8a3, var(--gold));
}

input,
select,
textarea {
  border-color: rgba(202, 213, 226, 0.95);
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(17, 122, 114, 0.14);
}

.share-email,
.member-status-pill,
.resource-icon {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent)) !important;
}

.share-gmail {
  background: linear-gradient(135deg, var(--rose), #d85d78) !important;
}

.payment-return-banner strong,
.book-download-panel strong {
  color: var(--accent-dark);
}

@media (max-width: 980px) {
  .site-header,
  .section-header,
  .feature-band,
  .visit-section {
    align-items: stretch;
    flex-direction: column;
  }

  .nav-list {
    justify-content: start;
  }

  .intro-section,
  .form-layout,
  .announcement-layout,
  .admin-layout,
  .admin-private,
  .latest-grid,
  .event-grid,
  .resource-grid,
  .admin-overview-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .daily-verse-card {
    grid-column: auto;
  }

  .teaching-grid,
  .pdf-author-grid,
  .series-strip,
  .ministry-grid,
  .next-step-grid,
  .leader-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pastor-welcome,
  .next-steps-hero,
  .next-step-followup,
  .live-stream-panel,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .album-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-tool-groups {
    grid-template-columns: 1fr 1fr;
  }

  .member-board-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-board-fields {
    grid-template-columns: 1fr;
  }

  .admin-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .calendar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calendar-day-name {
    display: none;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .brand-mark {
    width: 60px;
    height: 42px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-list {
    grid-column: 1 / -1;
    width: 100%;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.nav-open .nav-list {
    display: grid;
  }

  .nav-item,
  .nav-dropdown-toggle {
    padding: 0 8px;
  }

  .nav-dropdown {
    display: grid;
  }

  .nav-dropdown summary {
    width: 100%;
    justify-content: center;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    margin-top: 6px;
    box-shadow: none;
  }

  .hero {
    min-height: 680px;
  }

  h1 {
    font-size: clamp(4rem, 20vw, 7rem);
  }

  .quick-grid,
    .teaching-filter-panel,
    .teaching-grid,
    .pdf-author-grid,
    .book-download-hero,
    .leader-grid,
    .series-strip,
    .ministry-grid,
    .next-step-grid,
    .next-steps-hero,
    .teaching-tools,
    .pastor-welcome,
    .bible-layout,
    .outreach-hero,
    .outreach-grid,
    .outreach-activity-grid,
    .latest-grid,
  .search-results {
    grid-template-columns: 1fr;
  }

  .segmented,
  .bible-controls,
  .amount-grid {
    width: 100%;
  }

  .segmented {
    flex-wrap: wrap;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .album-filter-bar {
    grid-template-columns: 1fr;
  }

  .gallery-tile.large,
  .gallery-tile.tall {
    grid-column: auto;
    grid-row: auto;
  }

  .admin-tool-groups,
  .admin-stats,
  .member-board-summary,
  .member-board-tools,
  .member-board-edit-grid,
  .member-dashboard-grid,
  .giving-purpose-grid {
    grid-template-columns: 1fr;
  }

  .pdf-filter-label {
    width: 100%;
    margin-left: 0;
  }

  .daily-verse-copy {
    padding: 20px;
  }

  .daily-verse-engagement {
    display: flex;
  }

  .pdf-author-folder {
    padding: 14px;
  }

  .pdf-author-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px 12px;
  }

  .pdf-author-header h3 {
    margin-top: 6px;
  }

  .pdf-author-header span,
  .pdf-author-header h3,
  .pdf-author-header p {
    grid-column: 1;
  }

  .pdf-author-header::after {
    grid-column: 2;
    grid-row: 1 / span 3;
  }

  .pdf-author-grid {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 12px;
  }

  .bible-controls {
    grid-template-columns: 1fr;
  }

  .segment {
    flex: 1;
    padding: 0 8px;
  }

  .reader-panel {
    inset: 12px;
    width: auto;
  }

  .site-footer {
    align-items: start;
    flex-direction: column;
  }

.book-download-hero img {
    max-width: 220px;
  }
}

/* Modern Mount Zion visual refresh */
:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --ink: #101828;
  --muted: #667085;
  --line: #e4e9f2;
  --accent: #0e8f86;
  --accent-dark: #071326;
  --gold: #d59f35;
  --rose: #b33b61;
  --navy: #071326;
  --blue: #1a66c4;
  --ivory: #fff8e8;
  --shadow: 0 18px 46px rgba(7, 19, 38, 0.1);
}

body {
  background:
    linear-gradient(180deg, rgba(7, 19, 38, 0.04), transparent 260px),
    linear-gradient(180deg, #f7f9fc 0%, #ffffff 38%, #f3f6fa 100%);
}

.site-header {
  min-height: 72px;
  border-bottom: 1px solid rgba(228, 233, 242, 0.92);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 36px rgba(7, 19, 38, 0.07);
}

.brand {
  gap: 14px;
}

.brand-mark {
  width: 64px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  background: #fff;
  box-shadow: 0 12px 28px rgba(7, 19, 38, 0.13);
}

.brand strong {
  color: var(--navy);
  font-size: 1.05rem;
}

.brand small {
  color: var(--accent);
  font-size: 0.78rem;
}

.nav-list {
  gap: 8px;
}

.nav-item,
.nav-dropdown-toggle,
.menu-toggle {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #26364d;
  background: transparent;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.nav-item:hover,
.nav-item.is-active,
.nav-dropdown-toggle:hover,
.nav-dropdown[open] summary {
  color: var(--navy);
  border-color: rgba(14, 143, 134, 0.22);
  background: rgba(14, 143, 134, 0.09);
}

.nav-give,
.nav-give:hover,
.nav-give.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #0e8f86, #1a66c4);
  box-shadow: 0 14px 30px rgba(14, 143, 134, 0.2);
}

.nav-dropdown-menu {
  top: calc(100% + 12px);
  border-color: rgba(228, 233, 242, 0.96);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 64px rgba(7, 19, 38, 0.16);
}

.nav-dropdown-menu button:hover,
.nav-dropdown-menu button:focus-visible {
  color: var(--navy);
  background: rgba(14, 143, 134, 0.1);
}

.hero {
  min-height: calc(100vh - 72px);
  padding: clamp(34px, 7vw, 82px);
  background: var(--navy);
}

.hero-slides img {
  filter: saturate(1.08) contrast(1.03);
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(7, 19, 38, 0.95) 0%, rgba(7, 19, 38, 0.76) 40%, rgba(7, 19, 38, 0.22) 100%),
    linear-gradient(0deg, rgba(7, 19, 38, 0.78), transparent 42%);
}

.hero-content {
  display: grid;
  align-content: end;
  min-height: min(620px, calc(100vh - 180px));
}

.section-label,
.eyebrow {
  color: var(--gold);
  letter-spacing: 0;
}

h1 {
  max-width: 980px;
  font-size: clamp(4.1rem, 12vw, 10.5rem);
  line-height: 0.86;
}

h2 {
  color: var(--navy);
  font-size: clamp(2.1rem, 3.5vw, 3.4rem);
  line-height: 1.02;
}

h3 {
  color: var(--navy);
}

.hero-content h1,
.hero-content h2,
.hero-content h3,
.visit-section h2,
.salvation-prayer h2,
.give-section .payment-return-banner h2 {
  color: #fff;
}

.hero-content p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.86);
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  min-height: 48px;
  border-radius: 8px;
  padding: 0 22px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, #0e8f86, #1a66c4);
  box-shadow: 0 18px 36px rgba(14, 143, 134, 0.22);
}

.secondary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--navy), #16436f);
  box-shadow: 0 16px 32px rgba(7, 19, 38, 0.16);
}

.ghost-btn {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.quick-action:hover,
.teaching-card:hover,
.event-card:hover,
.announcement-card:hover,
.resource-card:hover,
.ministry-card:hover,
.leader-card:hover,
.latest-card:hover {
  transform: translateY(-2px);
}

.hero-event-card {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.24);
}

.hero-event-card strong {
  color: #fff;
}

.intro-section,
.latest-section,
.pastor-welcome,
.page-section,
.feature-band,
.visit-section {
  padding-top: clamp(62px, 8vw, 104px);
  padding-bottom: clamp(62px, 8vw, 104px);
}

.intro-section {
  gap: 24px;
}

.pastor-welcome {
  background:
    linear-gradient(120deg, rgba(7, 19, 38, 0.04), transparent 46%),
    #ffffff;
}

.pastor-welcome img {
  border: 1px solid rgba(228, 233, 242, 0.92);
  box-shadow: 0 24px 56px rgba(7, 19, 38, 0.12);
}

.daily-verse-card {
  border: 1px solid rgba(228, 233, 242, 0.16);
  background:
    radial-gradient(circle at top right, rgba(14, 143, 134, 0.18), transparent 34%),
    linear-gradient(135deg, #071326, #0d2746);
  box-shadow: 0 28px 70px rgba(7, 19, 38, 0.2);
}

.daily-verse-copy h3 {
  color: #fff;
}

.daily-verse-frame {
  background: rgba(255, 255, 255, 0.06);
}

.quick-grid {
  gap: 12px;
}

.quick-action,
.latest-card,
.teaching-card,
.leader-card,
.announcement-card,
.event-card,
.about-panel,
.search-result,
.panel-form,
.submitted-list,
.giving-summary,
.admin-list,
.resource-card,
.ministry-card,
.next-step-card,
.admin-overview-card,
.admin-teaching-item,
.pdf-author-folder,
.book-download-panel,
.book-download-hero {
  border-color: rgba(228, 233, 242, 0.96);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 36px rgba(7, 19, 38, 0.08);
}

.quick-action {
  position: relative;
  overflow: hidden;
}

.quick-action::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--blue), var(--gold));
}

.quick-action span,
.latest-card .section-label,
.teaching-type {
  color: var(--accent);
}

.quick-action strong,
.latest-card h3,
.teaching-card h3,
.announcement-card h3,
.event-card h3,
.resource-card h3,
.ministry-card strong,
.leader-card strong {
  color: var(--navy);
}

.quick-action:hover,
.ministry-card:hover,
.resource-card:hover,
.teaching-card:hover,
.event-card:hover,
.announcement-card:hover,
.latest-card:hover,
.admin-overview-card:hover {
  border-color: rgba(14, 143, 134, 0.34);
  box-shadow: 0 24px 58px rgba(7, 19, 38, 0.14);
}

.outreach-section,
.bible-section,
.ministries-section,
.gallery-section,
.resources-section,
.next-steps-section,
.give-section,
.admin-section {
  background:
    linear-gradient(180deg, rgba(7, 19, 38, 0.03), rgba(14, 143, 134, 0.04)),
    #f7f9fc;
}

.announcements-section {
  background:
    linear-gradient(180deg, rgba(213, 159, 53, 0.12), rgba(179, 59, 97, 0.06)),
    #fffaf1;
}

.visit-section,
.salvation-prayer,
.give-section .payment-return-banner {
  background:
    linear-gradient(135deg, rgba(7, 19, 38, 0.96), rgba(14, 143, 134, 0.88)),
    var(--navy);
}

.event-card,
.announcement-card {
  border-top-color: var(--accent);
}

.event-date,
.teaching-type,
.pdf-filter,
.segment.is-active,
.album-filter.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--accent));
}

.pdf-filter,
input,
select,
textarea {
  border-color: rgba(210, 219, 232, 0.95);
  background: #fff;
  box-shadow: 0 1px 0 rgba(7, 19, 38, 0.03);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(14, 143, 134, 0.14);
}

.site-footer {
  background: #071326;
}

@media (max-width: 680px) {
  .site-header {
    position: sticky;
    top: 0;
    padding: 12px 16px;
  }

  .menu-toggle {
    color: var(--navy);
    background: #fff;
    box-shadow: 0 8px 22px rgba(7, 19, 38, 0.1);
  }

  .nav-list {
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(228, 233, 242, 0.96);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 46px rgba(7, 19, 38, 0.12);
  }

  .nav-dropdown {
    grid-column: 1 / -1;
  }

  .nav-dropdown-menu {
    border: 1px solid rgba(228, 233, 242, 0.96);
    background: #f8fafc;
  }

  .hero {
    min-height: 620px;
    padding: 34px 20px;
  }

  .hero-content {
    min-height: 520px;
  }

  h1 {
    font-size: clamp(3.35rem, 17vw, 5.8rem);
    line-height: 0.9;
  }

  h2 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .primary-btn,
  .hero-actions .ghost-btn {
    width: 100%;
  }

  .quick-action,
  .latest-card,
  .teaching-card,
  .leader-card,
  .announcement-card,
  .event-card,
  .resource-card,
  .ministry-card,
  .next-step-card,
  .pdf-author-folder {
    box-shadow: 0 12px 28px rgba(7, 19, 38, 0.08);
  }
}

/* Larger, more modern navigation and heading scale */
.site-header {
  min-height: 82px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand strong {
  font-size: 1.18rem;
  line-height: 1;
}

.brand small {
  font-size: 0.86rem;
}

.nav-item,
.nav-dropdown-toggle {
  min-height: 50px;
  padding: 0 18px;
  font-size: 0.98rem;
  font-weight: 900;
}

.nav-dropdown summary::after {
  font-size: 0.82rem;
}

.nav-dropdown-menu button {
  min-height: 44px;
  font-size: 0.96rem;
}

.hero {
  min-height: calc(100vh - 82px);
}

.section-label,
.eyebrow {
  font-size: 0.86rem;
  font-weight: 950;
}

h1 {
  font-size: clamp(4.8rem, 13vw, 11.8rem);
  line-height: 0.84;
}

h2 {
  font-size: clamp(2.55rem, 4.4vw, 4.4rem);
  line-height: 0.98;
  font-weight: 950;
}

h3 {
  font-size: 1.5rem;
  font-weight: 900;
}

.quick-action strong,
.latest-card h3,
.teaching-card h3,
.announcement-card h3,
.event-card h3,
.resource-card h3 {
  font-size: clamp(1.26rem, 1.7vw, 1.62rem);
  line-height: 1.1;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  min-height: 52px;
  padding: 0 26px;
  font-size: 1rem;
}

@media (max-width: 1180px) {
  .nav-item,
  .nav-dropdown-toggle {
    min-height: 46px;
    padding: 0 13px;
    font-size: 0.92rem;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 78px;
  }

  .brand strong {
    font-size: 1.08rem;
  }

  .brand small {
    font-size: 0.8rem;
  }

  .nav-item,
  .nav-dropdown-toggle {
    min-height: 50px;
    padding: 0 10px;
    font-size: 0.94rem;
  }

  .nav-dropdown-menu button {
    min-height: 46px;
    font-size: 0.94rem;
  }

  h1 {
    font-size: clamp(3.95rem, 18vw, 6.35rem);
    line-height: 0.88;
  }

  h2 {
    font-size: clamp(2.25rem, 10vw, 3.15rem);
  }

  h3 {
    font-size: 1.36rem;
  }

  .section-label,
  .eyebrow {
    font-size: 0.82rem;
  }
}

/* Stronger tab font size */
.nav-item,
.nav-dropdown-toggle {
  min-height: 56px;
  padding: 0 22px;
  font-size: 1.12rem;
  font-weight: 950;
}

.nav-dropdown-menu button {
  min-height: 48px;
  font-size: 1.06rem;
  font-weight: 900;
}

.nav-give {
  padding-left: 26px;
  padding-right: 26px;
}

@media (max-width: 1280px) {
  .nav-item,
  .nav-dropdown-toggle {
    min-height: 52px;
    padding: 0 16px;
    font-size: 1.02rem;
  }
}

@media (max-width: 680px) {
  .nav-item,
  .nav-dropdown-toggle {
    min-height: 54px;
    padding: 0 12px;
    font-size: 1.08rem;
  }

  .nav-dropdown-menu button {
    min-height: 50px;
    font-size: 1.04rem;
  }
}

/* Homepage ministry action strip */
.home-action-strip {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: min(1180px, calc(100% - 36px));
  margin: -46px auto 0;
}

.home-action-card {
  min-height: 142px;
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid rgba(228, 233, 242, 0.96);
  border-radius: 8px;
  padding: 22px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 52px rgba(7, 19, 38, 0.13);
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.home-action-card span {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.home-action-card strong {
  color: var(--navy);
  font-size: 1.48rem;
  line-height: 1.05;
}

.home-action-card small {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.45;
}

.home-action-card:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 143, 134, 0.34);
  box-shadow: 0 28px 68px rgba(7, 19, 38, 0.16);
}

.home-action-card.is-featured {
  border-color: rgba(14, 143, 134, 0.32);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(14, 143, 134, 0.96), rgba(26, 102, 196, 0.96)),
    var(--accent);
}

.home-action-card.is-featured span,
.home-action-card.is-featured strong,
.home-action-card.is-featured small {
  color: #fff;
}

@media (max-width: 980px) {
  .home-action-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: -32px;
  }
}

@media (max-width: 680px) {
  .home-action-strip {
    grid-template-columns: 1fr;
    width: calc(100% - 32px);
    margin-top: -28px;
  }

  .home-action-card {
    min-height: 126px;
    padding: 20px;
  }
}

/* Homepage worship, word, witness band */
.ministry-focus-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(250px, 0.55fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  padding: clamp(64px, 8vw, 108px) clamp(18px, 5vw, 64px);
  background:
    linear-gradient(180deg, #ffffff, #f6f8fb);
}

.ministry-focus-visual {
  min-height: 460px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--navy);
  box-shadow: 0 24px 62px rgba(7, 19, 38, 0.16);
  isolation: isolate;
}

.ministry-focus-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 26%, rgba(7, 19, 38, 0.78));
}

.ministry-focus-visual img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  display: block;
}

.ministry-focus-visual > div {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  color: #fff;
}

.ministry-focus-visual span {
  display: block;
  color: var(--gold);
  font-weight: 950;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.ministry-focus-visual strong {
  display: block;
  max-width: 360px;
  color: #fff;
  font-size: clamp(1.55rem, 2.7vw, 2.5rem);
  line-height: 1.02;
}

.ministry-focus-copy {
  max-width: 560px;
}

.ministry-focus-copy h2 {
  max-width: 520px;
}

.ministry-focus-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  grid-auto-rows: minmax(190px, 1fr);
  gap: 12px;
}

.ministry-focus-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  display: grid;
  align-content: end;
  gap: 6px;
  border: 0;
  border-radius: 8px;
  padding: 22px;
  color: #fff;
  background: var(--navy);
  text-align: left;
  box-shadow: 0 20px 52px rgba(7, 19, 38, 0.14);
  isolation: isolate;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.ministry-focus-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, transparent 12%, rgba(7, 19, 38, 0.28) 48%, rgba(7, 19, 38, 0.88) 100%),
    linear-gradient(90deg, rgba(7, 19, 38, 0.38), transparent);
}

.ministry-focus-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.04);
  transition: transform 220ms ease;
}

.ministry-focus-card.is-tall {
  grid-row: span 2;
}

.ministry-focus-card span {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.ministry-focus-card strong {
  max-width: 300px;
  color: #fff;
  font-size: clamp(1.45rem, 2.6vw, 2.25rem);
  line-height: 1;
}

.ministry-focus-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 68px rgba(7, 19, 38, 0.18);
}

.ministry-focus-card:hover img {
  transform: scale(1.04);
}

@media (max-width: 980px) {
  .ministry-focus-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .ministry-focus-band {
    padding: 56px 16px;
  }

  .ministry-focus-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .ministry-focus-card,
  .ministry-focus-card.is-tall {
    min-height: 260px;
    grid-row: auto;
  }
}

/* Extra-large navigation tabs */
.site-header {
  min-height: 96px;
  gap: 28px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand-mark {
  width: 76px;
  height: 54px;
}

.brand strong {
  font-size: 1.34rem;
}

.brand small {
  font-size: 0.96rem;
}

.nav-list {
  gap: 10px;
}

.nav-item,
.nav-dropdown-toggle {
  min-height: 62px;
  padding: 0 26px;
  font-size: 1.22rem;
  font-weight: 950;
  line-height: 1;
}

.nav-dropdown summary::after {
  margin-left: 10px;
  font-size: 0.94rem;
}

.nav-dropdown-menu {
  min-width: 280px;
  padding: 10px;
}

.nav-dropdown-menu button {
  min-height: 54px;
  padding: 0 16px;
  font-size: 1.12rem;
  font-weight: 950;
}

.nav-give {
  padding-left: 32px;
  padding-right: 32px;
}

.hero {
  min-height: calc(100vh - 96px);
}

@media (max-width: 1320px) {
  .site-header {
    gap: 18px;
  }

  .nav-list {
    gap: 8px;
  }

  .nav-item,
  .nav-dropdown-toggle {
    min-height: 56px;
    padding: 0 17px;
    font-size: 1.08rem;
  }

  .brand-mark {
    width: 68px;
    height: 50px;
  }
}

@media (max-width: 980px) {
  .nav-item,
  .nav-dropdown-toggle {
    min-height: 56px;
    padding: 0 18px;
    font-size: 1.1rem;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 86px;
    padding: 14px 16px;
  }

  .brand-mark {
    width: 70px;
    height: 50px;
  }

  .brand strong {
    font-size: 1.22rem;
  }

  .brand small {
    font-size: 0.9rem;
  }

  .menu-toggle {
    min-height: 54px;
    padding: 0 18px;
    font-size: 1.08rem;
    font-weight: 950;
  }

  .nav-list {
    grid-template-columns: 1fr;
  }

  .nav-item,
  .nav-dropdown-toggle {
    min-height: 58px;
    padding: 0 18px;
    font-size: 1.16rem;
  }

  .nav-dropdown-menu button {
    min-height: 54px;
    font-size: 1.1rem;
    text-align: center;
  }
}

/* Super-modern stay connected section */
.connect-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(340px, 1fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: stretch;
  padding: clamp(64px, 8vw, 110px) clamp(18px, 5vw, 64px);
  background:
    linear-gradient(135deg, rgba(7, 19, 38, 0.04), rgba(14, 143, 134, 0.04)),
    #ffffff;
}

.connect-copy {
  display: grid;
  align-content: center;
  max-width: 620px;
}

.connect-copy h2 {
  max-width: 600px;
}

.connect-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.connect-card {
  min-height: 210px;
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: space-between;
  gap: 16px;
  border: 1px solid rgba(228, 233, 242, 0.96);
  border-radius: 8px;
  padding: 24px;
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 18px 46px rgba(7, 19, 38, 0.08);
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.connect-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--blue), var(--gold));
}

.connect-card span {
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 950;
  text-transform: uppercase;
}

.connect-card strong {
  max-width: 290px;
  color: var(--navy);
  font-size: clamp(1.6rem, 2.4vw, 2.35rem);
  line-height: 1;
}

.connect-card small {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

.connect-card.is-strong {
  color: #fff;
  border-color: rgba(14, 143, 134, 0.34);
  background:
    linear-gradient(135deg, rgba(7, 19, 38, 0.98), rgba(14, 143, 134, 0.94)),
    var(--navy);
}

.connect-card.is-strong::before {
  background: linear-gradient(90deg, var(--gold), #fff1b8, var(--accent));
}

.connect-card.is-strong span,
.connect-card.is-strong strong,
.connect-card.is-strong small {
  color: #fff;
}

.connect-card:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 143, 134, 0.34);
  box-shadow: 0 28px 68px rgba(7, 19, 38, 0.14);
}

@media (max-width: 980px) {
  .connect-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .connect-section {
    padding: 56px 16px;
  }

  .connect-grid {
    grid-template-columns: 1fr;
  }

  .connect-card {
    min-height: 176px;
    padding: 22px;
  }
}

/* Modern impact strip and image performance polish */
img {
  max-width: 100%;
}

.intro-section,
.pastor-welcome,
.latest-section,
.ministry-focus-band,
.connect-section,
.rhythm-section,
.visit-section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 760px;
}

.impact-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: clamp(18px, 4vw, 34px) clamp(18px, 5vw, 64px);
  background: #e4e9f2;
}

.impact-strip article {
  min-height: 190px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 28px;
  background:
    linear-gradient(180deg, #ffffff, #f8fafc);
}

.impact-strip article:first-child {
  border-radius: 8px 0 0 8px;
}

.impact-strip article:last-child {
  border-radius: 0 8px 8px 0;
}

.impact-strip span {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.impact-strip strong {
  color: var(--navy);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 0.96;
}

.impact-strip small {
  max-width: 260px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

.daily-verse-frame,
.gallery-tile,
.outreach-card,
.outreach-activity,
.leader-card,
.home-announcement-poster,
.home-event-poster {
  background: linear-gradient(135deg, rgba(7, 19, 38, 0.05), rgba(14, 143, 134, 0.06));
}

@media (max-width: 980px) {
  .impact-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .impact-strip article:first-child,
  .impact-strip article:last-child {
    border-radius: 0;
  }
}

@media (max-width: 680px) {
  .impact-strip {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .impact-strip article {
    min-height: 160px;
    border-radius: 8px;
  }
}

/* Modern weekly rhythm section */
.rhythm-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  padding: clamp(64px, 8vw, 110px) clamp(18px, 5vw, 64px);
  background:
    linear-gradient(180deg, #f7f9fc, #ffffff);
}

.rhythm-visual {
  position: relative;
  min-height: clamp(420px, 46vw, 620px);
  overflow: hidden;
  border-radius: 8px;
  background: var(--navy);
  box-shadow: 0 28px 72px rgba(7, 19, 38, 0.16);
}

.rhythm-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 35%, rgba(7, 19, 38, 0.84)),
    linear-gradient(90deg, rgba(7, 19, 38, 0.2), transparent);
}

.rhythm-visual img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.03);
}

.rhythm-badge {
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 1;
  display: grid;
  gap: 4px;
  min-width: 170px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  padding: 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
}

.rhythm-badge span {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.rhythm-badge strong {
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
}

.rhythm-copy {
  display: grid;
  gap: 20px;
}

.rhythm-copy h2 {
  max-width: 680px;
}

.rhythm-list {
  display: grid;
  gap: 10px;
}

.rhythm-list button {
  display: grid;
  grid-template-columns: minmax(90px, 0.28fr) minmax(150px, 0.45fr) minmax(220px, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 92px;
  border: 1px solid rgba(228, 233, 242, 0.96);
  border-radius: 8px;
  padding: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 36px rgba(7, 19, 38, 0.07);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.rhythm-list button:hover {
  transform: translateX(3px);
  border-color: rgba(14, 143, 134, 0.34);
  box-shadow: 0 22px 52px rgba(7, 19, 38, 0.12);
}

.rhythm-list span {
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 950;
  text-transform: uppercase;
}

.rhythm-list strong {
  color: var(--navy);
  font-size: 1.35rem;
  line-height: 1.1;
}

.rhythm-list small {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .rhythm-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .rhythm-section {
    padding: 56px 16px;
  }

  .rhythm-visual {
    min-height: 360px;
  }

  .rhythm-list button {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Super-modern inner tabs */
body:not([data-page="home"]) {
  background:
    linear-gradient(180deg, rgba(7, 19, 38, 0.05), transparent 280px),
    #f6f8fb;
}

.page-section.screen.is-active {
  display: block;
  min-height: calc(100vh - 96px);
}

.page-section {
  position: relative;
  overflow: hidden;
  padding-top: clamp(44px, 6vw, 78px);
}

.page-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: clamp(220px, 30vw, 380px);
  z-index: -1;
  background:
    radial-gradient(circle at 8% 8%, rgba(14, 143, 134, 0.18), transparent 34%),
    radial-gradient(circle at 92% 8%, rgba(26, 102, 196, 0.13), transparent 34%),
    linear-gradient(135deg, #071326, #0d2746);
}

.page-section > .section-header {
  min-height: clamp(220px, 28vw, 340px);
  align-items: end;
  margin: 0 0 clamp(24px, 5vw, 44px);
  color: #fff;
}

.page-section > .section-header h2 {
  max-width: 980px;
  color: #fff;
  font-size: clamp(3.1rem, 6vw, 6.2rem);
  line-height: 0.9;
}

.page-section > .section-header .section-note,
.page-section > .section-header p:not(.section-label) {
  color: rgba(255, 255, 255, 0.78);
}

.page-section > .section-header .secondary-btn,
.page-section > .section-header .primary-btn {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

.teaching-tools,
.teaching-filter-panel,
.segmented,
.calendar-shell,
.form-layout,
.announcement-list,
.gallery-grid,
.leader-grid,
.event-grid,
.resource-grid,
.ministry-grid,
.next-step-grid,
.search-results,
.admin-layout,
.admin-private,
.giving-purpose-grid {
  position: relative;
}

.teaching-tools,
.panel-form,
.submitted-list,
.giving-summary,
.calendar-shell,
.reader-panel,
.admin-private,
.admin-list,
.member-login-panel,
.about-panel,
.search-result {
  border: 1px solid rgba(228, 233, 242, 0.96);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 46px rgba(7, 19, 38, 0.08);
}

.panel-form,
.submitted-list,
.giving-summary,
.calendar-shell,
.admin-list,
.member-login-panel,
.about-panel,
.search-result {
  border-radius: 8px;
}

.panel-form {
  padding: clamp(22px, 3vw, 32px);
}

.panel-form .section-label {
  margin-bottom: 18px;
}

.panel-form label,
.teaching-tools label,
.pdf-filter-label {
  color: var(--navy);
  font-weight: 950;
}

.panel-form input,
.panel-form select,
.panel-form textarea,
.teaching-tools input,
.teaching-tools select,
.pdf-filter {
  min-height: 50px;
  margin-top: 8px;
  border-radius: 8px;
  border-color: rgba(210, 219, 232, 0.95);
  background: #fff;
}

.panel-form textarea {
  min-height: 150px;
}

.teaching-tools {
  border-radius: 8px;
  padding: 18px;
}

.teaching-filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: end;
}

.pdf-filter-label {
  margin-left: 0;
}

.series-strip article,
.quick-action,
.teaching-card,
.pdf-author-folder,
.event-card,
.announcement-card,
.testimony-item,
.leader-card,
.ministry-card,
.next-step-card,
.resource-card,
.gallery-tile,
.admin-overview-card,
.admin-teaching-item,
.member-board-card,
.giving-purpose-card {
  border: 1px solid rgba(228, 233, 242, 0.96);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 36px rgba(7, 19, 38, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.series-strip article:hover,
.quick-action:hover,
.teaching-card:hover,
.pdf-author-folder:hover,
.event-card:hover,
.announcement-card:hover,
.testimony-item:hover,
.leader-card:hover,
.ministry-card:hover,
.next-step-card:hover,
.resource-card:hover,
.gallery-tile:hover,
.admin-overview-card:hover,
.giving-purpose-card:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 143, 134, 0.34);
  box-shadow: 0 24px 58px rgba(7, 19, 38, 0.14);
}

.teaching-card h3,
.event-card h3,
.announcement-card h3,
.testimony-item strong,
.leader-card h3,
.ministry-card strong,
.next-step-card h3,
.resource-card h3,
.about-panel h3,
.search-result h3 {
  color: var(--navy);
}

.series-strip article {
  min-height: 150px;
  position: relative;
  overflow: hidden;
}

.series-strip article::before,
.event-card::before,
.announcement-card::before,
.teaching-card::before,
.leader-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--blue), var(--gold));
}

.teaching-card,
.event-card,
.announcement-card,
.leader-card {
  position: relative;
  overflow: hidden;
}

.teaching-type,
.event-date,
.segment,
.album-filter,
.admin-tool,
.resource-icon,
.member-status-pill {
  border-radius: 8px;
}

.segment,
.album-filter,
.admin-tool {
  min-height: 44px;
  border: 1px solid rgba(228, 233, 242, 0.96);
  background: #fff;
}

.calendar-grid {
  gap: 8px;
}

.calendar-day {
  min-height: 112px;
  border: 1px solid rgba(228, 233, 242, 0.96);
  border-radius: 8px;
  background: #fff;
}

.calendar-day.has-events {
  border-color: rgba(14, 143, 134, 0.4);
  background:
    linear-gradient(135deg, rgba(14, 143, 134, 0.12), rgba(26, 102, 196, 0.08)),
    #fff;
}

.gallery-tile {
  box-shadow: 0 18px 46px rgba(7, 19, 38, 0.1);
}

.gallery-tile img {
  object-fit: cover;
}

.gallery-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(7, 19, 38, 0.82));
}

.gallery-tile span,
.gallery-tile small {
  z-index: 1;
}

.outreach-hero,
.next-steps-hero,
.live-stream-panel {
  overflow: hidden;
  border: 1px solid rgba(228, 233, 242, 0.96);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 52px rgba(7, 19, 38, 0.1);
}

.outreach-hero > div,
.next-steps-hero > div {
  background:
    linear-gradient(135deg, rgba(7, 19, 38, 0.04), rgba(14, 143, 134, 0.04)),
    #fff;
}

.give-section .payment-return-banner,
.book-download-panel {
  box-shadow: 0 24px 64px rgba(7, 19, 38, 0.14);
}

.admin-section::before {
  background:
    radial-gradient(circle at 10% 8%, rgba(213, 159, 53, 0.18), transparent 32%),
    linear-gradient(135deg, #071326, #22304a);
}

@media (max-width: 980px) {
  .page-section > .section-header {
    min-height: auto;
    padding-top: 34px;
  }

  .teaching-filter-panel {
    justify-content: start;
  }
}

@media (max-width: 680px) {
  .page-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-section > .section-header h2 {
    font-size: clamp(2.55rem, 13vw, 4.2rem);
  }

  .page-section > .section-header {
    gap: 16px;
  }

  .teaching-filter-panel,
  .teaching-tools {
    gap: 10px;
  }

  .calendar-day {
    min-height: 96px;
  }
}

/* Inner tab typography and colour polish */
.page-section {
  color: #1f2937;
}

.page-section h3,
.page-section h4,
.page-section strong {
  letter-spacing: 0;
}

.page-section .section-label,
.panel-form .section-label,
.submitted-list .section-label,
.admin-list .section-label,
.giving-summary .section-label,
.about-panel .section-label,
.search-result .section-label,
.calendar-toolbar .section-label {
  color: var(--accent);
  font-size: 0.86rem;
}

.page-section .muted,
.page-section .section-note,
.page-section small,
.fine-print,
.admin-status,
.request-field,
.comment-message,
.comment-meta {
  color: #667085;
  line-height: 1.58;
}

.page-section > .section-header .section-label {
  color: var(--gold);
}

.page-section > .section-header .section-note {
  max-width: 680px;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
}

.panel-form label,
.teaching-tools label,
.pdf-filter-label,
.checkbox-row,
.amount-option span {
  color: #25364d;
  font-size: 0.98rem;
}

.panel-form input,
.panel-form select,
.panel-form textarea,
.teaching-tools input,
.teaching-tools select,
.pdf-filter,
.reader-panel textarea {
  color: #101828;
  font-size: 1rem;
}

.panel-form input::placeholder,
.panel-form textarea::placeholder,
.teaching-tools input::placeholder {
  color: #98a2b3;
}

.teaching-card h3,
.event-card h3,
.announcement-card h3,
.resource-card h3,
.about-panel h3,
.search-result h3 {
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  line-height: 1.08;
}

.leader-card h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.ministry-card strong,
.next-step-card h3,
.testimony-item strong {
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
  line-height: 1.12;
}

.album-filter-bar,
.segmented,
.admin-tools,
.amount-grid,
.giving-purpose-grid {
  gap: 10px;
}

.album-filter,
.segment,
.admin-tool,
.amount-option,
.giving-purpose-card {
  color: #25364d;
  border-color: rgba(210, 219, 232, 0.96);
  background:
    linear-gradient(180deg, #ffffff, #f8fafc);
  font-weight: 950;
}

.album-filter::before {
  background: var(--accent);
}

.album-filter:hover,
.album-filter:focus-visible,
.segment:hover,
.admin-tool:hover,
.amount-option:hover,
.giving-purpose-card:hover {
  color: var(--navy);
  border-color: rgba(14, 143, 134, 0.34);
  background:
    linear-gradient(180deg, rgba(14, 143, 134, 0.1), rgba(26, 102, 196, 0.05)),
    #ffffff;
}

.album-filter.is-active,
.segment.is-active,
.admin-tool.is-active,
.amount-option.is-active,
.giving-purpose-card.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--navy), var(--accent));
  box-shadow: 0 14px 30px rgba(14, 143, 134, 0.18);
}

.album-filter.is-active::before {
  background: #fff;
}

.teaching-type,
.event-date,
.book-reference-pill,
.member-status-pill {
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0;
}

.pdf-author-header span,
.member-board-card span,
.request-field b,
.admin-tool-group h3,
.admin-tool-group summary {
  color: var(--accent);
}

.announcement-list {
  padding: 18px;
  border: 1px solid rgba(228, 233, 242, 0.96);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 46px rgba(7, 19, 38, 0.08);
}

.announcement-card {
  padding: 22px;
  border: 1px solid rgba(228, 233, 242, 0.96);
  border-radius: 8px;
  border-bottom: 1px solid rgba(228, 233, 242, 0.96);
}

.announcement-card + .announcement-card,
.testimony-item + .testimony-item {
  margin-top: 12px;
}

.testimony-item {
  border-left: 0;
  border-radius: 8px;
  padding: 18px;
}

.receipt {
  border-left-color: var(--accent);
  border-radius: 8px;
  background: rgba(14, 143, 134, 0.08);
}

.calendar-toolbar h3 {
  color: var(--navy);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.calendar-day-name {
  color: var(--accent);
}

.calendar-cell,
.calendar-day {
  color: #25364d;
}

.calendar-event {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  font-weight: 950;
}

.admin-tool-group {
  border-color: rgba(228, 233, 242, 0.96);
  background: #fff;
}

.admin-tool-group summary {
  font-size: 0.86rem;
}

.danger-btn {
  border-radius: 8px;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.file-link {
  letter-spacing: 0;
}

@media (max-width: 680px) {
  .page-section .section-label {
    font-size: 0.82rem;
  }

  .teaching-card h3,
  .event-card h3,
  .announcement-card h3,
  .resource-card h3,
  .about-panel h3,
  .search-result h3 {
    font-size: 1.34rem;
  }
}

/* Readable modern inner tabs */
.page-section.screen {
  background:
    linear-gradient(180deg, rgba(246, 249, 252, 0.98), rgba(255, 255, 255, 0.98));
}

.page-section::before {
  background:
    radial-gradient(circle at 12% 0%, rgba(14, 143, 134, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(7, 19, 38, 0.06), rgba(26, 102, 196, 0.08));
  opacity: 1;
}

.page-section > .section-header {
  min-height: auto;
  align-items: center;
  gap: 20px;
  padding: clamp(22px, 4vw, 42px);
  margin-bottom: clamp(18px, 3vw, 30px);
  color: var(--ink);
  border: 1px solid rgba(210, 219, 232, 0.9);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 247, 249, 0.96));
  box-shadow: 0 18px 48px rgba(7, 19, 38, 0.1);
}

.page-section > .section-header::after {
  opacity: 0.32;
}

.page-section > .section-header .section-label {
  color: var(--accent);
}

.page-section > .section-header h2 {
  max-width: 900px;
  color: var(--navy);
  font-size: clamp(2.05rem, 4.2vw, 3.7rem);
  line-height: 1.03;
  letter-spacing: 0;
  text-wrap: balance;
}

.page-section > .section-header .section-note,
.page-section > .section-header p {
  color: #475467;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.55;
}

#outreach .outreach-hero > div,
#outreach .outreach-live,
#events .calendar-shell,
#events .event-card,
#prayer .panel-form,
#prayer .submitted-list,
#testimonies .panel-form,
#testimonies .submitted-list,
#ministries .ministry-card,
#gallery .album-filter-bar,
#give .giving-summary,
#give .panel-form,
#membership .panel-form,
#membership .submitted-list,
#membership .member-board-card {
  color: var(--ink);
  border-color: rgba(210, 219, 232, 0.92);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.98));
}

#outreach .outreach-hero h3,
#events .event-card h3,
#prayer h3,
#testimonies h3,
#ministries .ministry-card strong,
#gallery h3,
#give h3,
#membership h3 {
  color: var(--navy);
  font-size: clamp(1.18rem, 1.8vw, 1.55rem);
  line-height: 1.18;
  overflow-wrap: anywhere;
}

#events .event-card .muted,
#prayer .muted,
#testimonies .muted,
#ministries .muted,
#give .muted,
#membership .muted,
#outreach .muted {
  color: #5d6675;
  font-size: 0.98rem;
}

#events .event-card {
  grid-template-columns: auto minmax(0, 1fr);
  padding: clamp(16px, 2vw, 22px);
}

#events .event-card-body,
#events .event-card-body > * {
  min-width: 0;
}

#events .calendar-toolbar h3 {
  font-size: clamp(1.35rem, 2.3vw, 2rem);
}

#events .calendar-event {
  white-space: normal;
  line-height: 1.2;
}

#ministries .ministry-card {
  box-shadow: 0 16px 34px rgba(7, 19, 38, 0.08);
}

#ministries .ministry-card.is-active,
#ministries .ministry-card:hover {
  background:
    linear-gradient(135deg, rgba(14, 143, 134, 0.13), rgba(26, 102, 196, 0.08)),
    #fff;
}

#gallery .gallery-grid {
  align-items: stretch;
}

#gallery .gallery-tile {
  background: #071326;
  box-shadow: 0 18px 44px rgba(7, 19, 38, 0.16);
}

#gallery .gallery-tile::after {
  background: linear-gradient(180deg, rgba(7, 19, 38, 0.03), rgba(7, 19, 38, 0.9));
}

#gallery .gallery-tile span,
#gallery .gallery-tile small {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

#give .giving-purpose-grid,
#give .amount-grid,
#membership .member-board-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

#give .amount-option,
#give .giving-purpose-card,
#membership .member-board-card {
  min-width: 0;
}

#membership .form-layout,
#give .form-layout,
#prayer .form-layout,
#testimonies .form-layout {
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 1fr);
  align-items: start;
}

.leader-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(16px, 2vw, 22px);
}

.leader-card {
  min-height: auto;
  align-items: stretch;
  overflow: visible;
}

.leader-card > div {
  width: 100%;
}

.leader-image {
  height: clamp(220px, 24vw, 300px);
}

.leader-card h3 {
  color: var(--navy);
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.leader-card .muted {
  display: block;
  max-height: none;
  overflow: visible;
  font-size: 0.96rem;
  line-height: 1.5;
}

.leader-role {
  line-height: 1.25;
  white-space: normal;
}

@media (max-width: 860px) {
  .page-section > .section-header {
    padding: 22px;
  }

  .page-section > .section-header h2 {
    font-size: clamp(1.9rem, 9vw, 2.8rem);
  }

  #membership .form-layout,
  #give .form-layout,
  #prayer .form-layout,
  #testimonies .form-layout {
    grid-template-columns: 1fr;
  }

  #events .event-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .page-section > .section-header {
    border-radius: 8px;
    margin-inline: 0;
  }

  .page-section > .section-header h2 {
    font-size: clamp(1.72rem, 10vw, 2.25rem);
  }

  #outreach .outreach-hero h3,
  #events .event-card h3,
  #prayer h3,
  #testimonies h3,
  #ministries .ministry-card strong,
  #gallery h3,
  #give h3,
  #membership h3 {
    font-size: 1.18rem;
  }

  .leader-grid {
    grid-template-columns: 1fr;
  }
}

/* Inner tab upgrade pass */
.page-section.screen:not(#home) {
  isolation: isolate;
}

.page-section.screen:not(#home) > *:not(.section-header) {
  position: relative;
  z-index: 1;
}

.page-section.screen:not(#home) > .section-header {
  position: relative;
  overflow: hidden;
}

.page-section.screen:not(#home) > .section-header::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: linear-gradient(180deg, var(--accent), var(--blue), var(--gold));
}

.page-section.screen:not(#home) > .section-header > * {
  position: relative;
  z-index: 1;
}

.page-section.screen:not(#home) > .section-header h2 {
  margin-top: 4px;
}

.teaching-tools,
.album-filter-bar,
.calendar-shell,
.panel-form,
.submitted-list,
.giving-summary,
.admin-list,
.about-panel,
.search-form,
.search-result,
.live-stream-panel,
.ministry-detail-panel,
.book-download-panel {
  backdrop-filter: blur(10px);
}

.teaching-tools,
.album-filter-bar,
.calendar-toolbar,
.member-board-tools,
.admin-tools,
.inline-actions,
.contact-actions,
.next-actions,
.share-actions {
  align-items: center;
}

.teaching-tools,
.album-filter-bar,
.member-board-tools {
  padding: 14px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 247, 249, 0.96));
}

.teaching-tools label,
.pdf-filter-label,
.panel-form label {
  min-width: 0;
}

.teaching-tools input,
.teaching-tools select,
.panel-form input,
.panel-form select,
.panel-form textarea,
.pdf-filter,
.member-board-tools input,
.member-board-tools select,
.book-download-box input,
.search-form input {
  border-color: rgba(184, 195, 210, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.teaching-tools input:focus,
.teaching-tools select:focus,
.panel-form input:focus,
.panel-form select:focus,
.panel-form textarea:focus,
.pdf-filter:focus,
.member-board-tools input:focus,
.member-board-tools select:focus,
.book-download-box input:focus,
.search-form input:focus {
  border-color: rgba(14, 143, 134, 0.72);
  box-shadow: 0 0 0 4px rgba(14, 143, 134, 0.12);
  outline: 0;
}

.series-strip {
  align-items: stretch;
}

.series-strip article,
.teaching-card,
.pdf-author-folder,
.next-step-card,
.ministry-card,
.event-card,
.announcement-card,
.leader-card,
.about-panel,
.resource-card,
.member-board-card,
.admin-overview-card,
.admin-teaching-item,
.search-result {
  border-radius: 8px;
}

.series-strip article {
  display: grid;
  align-content: end;
  min-height: 164px;
  padding: 18px;
}

.series-strip article::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 16px;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(14, 143, 134, 0.16), rgba(26, 102, 196, 0.1));
  box-shadow: inset 0 0 0 1px rgba(14, 143, 134, 0.18);
}

.series-strip article span,
.teaching-type,
.event-date,
.announcement-date,
.leader-role,
.stream-badge,
.book-reference-pill {
  letter-spacing: 0;
}

.teaching-card {
  gap: 14px;
  min-height: 268px;
}

.teaching-card h3,
.pdf-author-header h3 {
  text-wrap: balance;
}

.pdf-author-folder {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 251, 250, 0.98));
}

.pdf-author-header {
  align-items: center;
}

.pdf-author-header::after {
  background: linear-gradient(135deg, var(--accent), var(--blue));
}

.pdf-author-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.next-steps-hero {
  border: 1px solid rgba(210, 219, 232, 0.92);
}

.next-steps-hero h3 {
  font-size: clamp(1.9rem, 4.5vw, 3.4rem);
  letter-spacing: 0;
}

.next-step-card {
  position: relative;
  overflow: hidden;
}

.next-step-card::after,
.ministry-card::after,
.about-panel::after {
  content: "";
  position: absolute;
  inset: auto 16px 14px 16px;
  height: 1px;
  background: linear-gradient(90deg, rgba(14, 143, 134, 0.28), transparent);
}

.next-step-card span {
  background: linear-gradient(135deg, var(--accent), var(--blue));
}

.ministry-grid,
.next-step-grid,
.about-grid,
.event-grid,
.teaching-grid,
.leader-grid {
  align-items: stretch;
}

.ministry-card {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 18px;
  min-height: 210px;
}

.ministry-card span {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 950;
}

.ministry-detail-panel {
  border-left: 0;
  border-top: 5px solid var(--accent);
}

.outreach-hero {
  min-height: 360px;
}

.outreach-hero img {
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.outreach-card {
  position: relative;
  min-height: 320px;
  background: #071326;
}

.outreach-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 19, 38, 0.04), rgba(7, 19, 38, 0.84));
  pointer-events: none;
}

.outreach-card > div {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 252, 0.96));
}

.outreach-live .compact-header {
  border-style: dashed;
  box-shadow: none;
}

/* Outreach card readability */
#outreach .outreach-grid .outreach-card {
  position: relative;
  min-height: 360px;
  display: grid;
  align-content: end;
  overflow: hidden;
  color: #fff;
  background: #071326;
  border-color: rgba(255, 255, 255, 0.14);
}

#outreach .outreach-grid .outreach-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.04);
}

#outreach .outreach-grid .outreach-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(7, 19, 38, 0.2), rgba(7, 19, 38, 0.74) 46%, rgba(7, 19, 38, 0.94)),
    linear-gradient(90deg, rgba(7, 19, 38, 0.58), rgba(7, 19, 38, 0.16));
  pointer-events: none;
}

#outreach .outreach-grid .outreach-card > div {
  position: relative;
  z-index: 2;
  margin: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  background: rgba(7, 19, 38, 0.78);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

#outreach .outreach-grid .outreach-card .section-label {
  color: #ffd66d;
}

#outreach .outreach-grid .outreach-card h3,
#outreach .outreach-grid .outreach-card .muted {
  color: #fff !important;
}

#outreach .outreach-grid .outreach-card .muted {
  opacity: 0.88;
}

.gallery-grid {
  grid-auto-rows: minmax(190px, 24vw);
}

.gallery-tile {
  border: 1px solid rgba(228, 233, 242, 0.18);
}

.gallery-tile span {
  font-weight: 950;
}

.album-filter {
  display: grid;
  align-content: center;
  min-height: 54px;
  text-align: center;
}

.album-filter::before {
  width: 100%;
  height: 4px;
  margin: 0 0 8px;
  border-radius: 999px;
}

.calendar-toolbar {
  position: sticky;
  top: 74px;
  z-index: 4;
  margin: -6px -6px 14px;
  padding: 10px;
  border: 1px solid rgba(228, 233, 242, 0.96);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
}

.calendar-cell.has-event {
  background:
    linear-gradient(135deg, rgba(14, 143, 134, 0.12), rgba(213, 159, 53, 0.16)),
    #fff;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.event-date {
  box-shadow: inset 0 -18px 28px rgba(7, 19, 38, 0.08);
}

.live-stream-panel {
  border-top: 5px solid var(--blue);
}

.form-layout .panel-form,
.form-layout .submitted-list,
.form-layout .giving-summary {
  min-width: 0;
}

.panel-form {
  align-content: start;
}

.panel-form .primary-btn,
.panel-form .secondary-btn,
.giving-summary .secondary-btn {
  min-height: 50px;
}

.submitted-list {
  min-height: 220px;
}

.submitted-list > .section-label:first-child,
.panel-form > .section-label:first-child,
.giving-summary > .section-label:first-child,
.admin-list > .section-label:first-child {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--accent);
  background: rgba(14, 143, 134, 0.1);
}

.testimony-item,
.receipt,
.request-card,
.member-board-card {
  border-left: 0;
  border-top: 4px solid var(--accent);
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
}

.testimony-item {
  display: grid;
}

.heart-btn {
  justify-self: start;
}

.about-grid {
  gap: 16px;
}

.about-panel {
  position: relative;
  overflow: hidden;
  min-height: 210px;
}

.contact-actions a,
.contact-actions button,
.next-actions a,
.next-actions button {
  min-height: 44px;
}

.membership-section,
.give-section,
.prayer-section,
#testimonies,
.about-section,
.search-section {
  background:
    radial-gradient(circle at 0% 0%, rgba(14, 143, 134, 0.09), transparent 34%),
    linear-gradient(180deg, #f6f9fc, #ffffff);
}

.member-login-panel {
  border-top-color: var(--blue);
}

.member-dashboard-grid article,
.member-board-summary article,
.admin-stats article {
  border: 1px solid rgba(228, 233, 242, 0.96);
  background:
    linear-gradient(180deg, #fff, #f8fafc);
}

.giving-summary {
  border-top: 5px solid var(--gold);
}

.amount-grid button,
.giving-purpose-grid span,
.giving-purpose-card {
  color: var(--navy);
  background:
    linear-gradient(180deg, #fff, #f8fafc);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.amount-grid button:hover,
.amount-grid button:focus-visible,
.giving-purpose-grid span:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 143, 134, 0.38);
  box-shadow: 0 12px 26px rgba(7, 19, 38, 0.1);
  outline: 0;
}

.book-download-box {
  border-color: rgba(213, 159, 53, 0.28);
  background:
    linear-gradient(135deg, rgba(213, 159, 53, 0.12), rgba(14, 143, 134, 0.06)),
    #fff;
}

.admin-section > .section-header {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.96));
}

.admin-stats article {
  min-height: 108px;
}

.admin-tool-groups {
  align-items: start;
}

.admin-tool-group {
  background:
    linear-gradient(180deg, #fff, #f8fafc);
}

.admin-tool {
  min-height: 42px;
  white-space: normal;
}

.admin-list {
  gap: 14px;
}

.admin-pane.is-active {
  animation: tabPanelIn 180ms ease both;
}

@keyframes tabPanelIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .ministry-grid,
  .next-step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .album-filter-bar {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
  }
}

@media (max-width: 760px) {
  .series-strip,
  .teaching-tools,
  .next-steps-hero,
  .outreach-hero,
  .live-stream-panel,
  .admin-layout,
  .admin-private,
  .admin-tool-groups,
  .admin-overview-grid,
  .member-board-summary,
  .member-board-tools,
  .member-board-fields,
  .member-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .album-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calendar-toolbar {
    position: static;
  }

  .outreach-hero img {
    min-height: 240px;
  }

  .outreach-card {
    min-height: 280px;
  }

  .member-board-card-head,
  .calendar-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .ministry-grid,
  .next-step-grid,
  .event-grid,
  .teaching-grid,
  .pdf-author-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(240px, auto);
  }

  .gallery-tile.large,
  .gallery-tile.tall {
    grid-column: auto;
    grid-row: auto;
  }

  .album-filter-bar {
    grid-template-columns: 1fr;
  }

  .panel-form,
  .submitted-list,
  .giving-summary,
  .admin-list,
  .calendar-shell {
    padding: 18px;
  }
}

/* Organized inner tab system */
.inner-tab-nav {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
  padding: 10px;
  border: 1px solid rgba(210, 219, 232, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(7, 19, 38, 0.08);
}

.inner-tab-nav {
  position: sticky;
  top: 78px;
  backdrop-filter: blur(14px);
}

.inner-tab-nav button,
.admin-command-bar button,
.teaching-library-dashboard article {
  border: 1px solid rgba(210, 219, 232, 0.92);
  border-radius: 8px;
  color: var(--navy);
  background:
    linear-gradient(180deg, #fff, #f8fafc);
  font-weight: 950;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.inner-tab-nav button {
  min-height: 42px;
  padding: 9px 12px;
}

.inner-tab-nav button:hover,
.inner-tab-nav button:focus-visible,
.admin-command-bar button:hover,
.admin-command-bar button:focus-visible,
.teaching-library-dashboard article:hover,
.teaching-library-dashboard article:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(14, 143, 134, 0.42);
  box-shadow: 0 18px 38px rgba(7, 19, 38, 0.12);
  outline: 0;
}

.teaching-library-dashboard {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.teaching-library-dashboard article {
  display: grid;
  align-content: space-between;
  min-height: 142px;
  padding: 16px;
}

.teaching-library-dashboard span,
.admin-command-bar span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.teaching-library-dashboard strong {
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.teaching-library-dashboard small,
.admin-command-bar small {
  color: #667085;
  line-height: 1.35;
}

.admin-command-bar {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-command-bar button {
  display: grid;
  gap: 8px;
  min-height: 104px;
  padding: 16px;
  text-align: left;
}

.admin-command-bar strong {
  color: var(--navy);
  font-size: 1.25rem;
}

.admin-tool-groups {
  position: sticky;
  top: 128px;
  z-index: 2;
}

.upload-preview {
  display: grid;
  gap: 8px;
  margin-top: -4px;
  padding: 12px;
  border: 1px dashed rgba(14, 143, 134, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(14, 143, 134, 0.08), rgba(26, 102, 196, 0.05)),
    #fff;
}

.upload-preview[hidden] {
  display: none;
}

.upload-preview img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 8px;
  background: #071326;
}

.upload-preview strong {
  color: var(--navy);
}

.upload-preview small {
  color: #667085;
}

.member-connect-panel,
.giving-confidence-grid article {
  border: 1px solid rgba(210, 219, 232, 0.92);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 247, 249, 0.96));
  box-shadow: 0 18px 44px rgba(7, 19, 38, 0.08);
}

.member-connect-panel {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 3vw, 32px);
}

.member-connect-panel h3 {
  color: var(--navy);
  font-size: clamp(1.75rem, 3.5vw, 2.7rem);
  line-height: 1.05;
}

.member-benefit-grid,
.giving-confidence-grid {
  display: grid;
  gap: 10px;
}

.member-benefit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-benefit-grid span {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(210, 219, 232, 0.92);
  border-radius: 8px;
  color: var(--accent);
  background: #fff;
  font-weight: 950;
}

.giving-confidence-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 16px 0;
}

.giving-confidence-grid article {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.giving-confidence-grid span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  font-weight: 950;
}

.giving-confidence-grid strong {
  color: var(--navy);
}

.giving-confidence-grid small {
  color: #667085;
  line-height: 1.4;
}

.member-dashboard-grid article {
  position: relative;
  overflow: hidden;
}

.member-dashboard-grid article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--blue));
}

@media (max-width: 980px) {
  .teaching-library-dashboard,
  .admin-command-bar,
  .giving-confidence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inner-tab-nav {
    top: 64px;
  }

  .admin-tool-groups {
    position: static;
  }
}

@media (max-width: 620px) {
  .teaching-library-dashboard,
  .admin-command-bar,
  .giving-confidence-grid,
  .member-benefit-grid {
    grid-template-columns: 1fr;
  }

  .inner-tab-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: start;
  }

  .inner-tab-nav button {
    flex: 0 0 auto;
  }
}

/* Giving thank-you message */
.payment-return-banner,
#givingReceipt.receipt {
  border: 1px solid rgba(213, 159, 53, 0.42);
  border-left: 8px solid var(--gold);
  color: #071326;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 232, 0.98));
  box-shadow: 0 22px 58px rgba(7, 19, 38, 0.12);
}

.payment-return-banner strong,
#givingReceipt.receipt strong {
  display: block;
  margin-bottom: 14px;
  color: var(--navy);
  font-size: clamp(2.1rem, 5vw, 4rem);
  font-weight: 950;
  line-height: 1.02;
}

.payment-return-banner p,
#givingReceipt.receipt p {
  max-width: 980px;
  color: #25364d;
  font-size: clamp(1.18rem, 2.5vw, 1.65rem);
  font-weight: 850;
  line-height: 1.5;
}

.payment-return-banner .muted,
#givingReceipt.receipt .muted {
  color: #667085;
  font-size: 1rem;
  font-weight: 750;
}

/* Final override: keep giving thank-you readable */
#give .payment-return-banner,
.give-section .payment-return-banner,
#give #givingReceipt.receipt,
.give-section #givingReceipt.receipt {
  border: 1px solid rgba(213, 159, 53, 0.44) !important;
  border-left: 8px solid #d59f35 !important;
  color: #071326 !important;
  background: #fff8e8 !important;
  background-image: linear-gradient(135deg, #ffffff 0%, #fff8e8 100%) !important;
  box-shadow: 0 22px 58px rgba(7, 19, 38, 0.12) !important;
}

#give .payment-return-banner strong,
.give-section .payment-return-banner strong,
#give #givingReceipt.receipt strong,
.give-section #givingReceipt.receipt strong {
  color: #071326 !important;
  font-size: clamp(2.2rem, 5vw, 4.2rem) !important;
  font-weight: 950 !important;
}

#give .payment-return-banner p,
.give-section .payment-return-banner p,
#give #givingReceipt.receipt p,
.give-section #givingReceipt.receipt p {
  color: #25364d !important;
  font-size: clamp(1.2rem, 2.5vw, 1.7rem) !important;
  font-weight: 850 !important;
}

/* Membership readability and Mount Zion logo palette */
#membership.membership-section,
.membership-section.screen {
  color: #fff !important;
  background:
    radial-gradient(circle at 8% 10%, rgba(211, 154, 45, 0.3), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(15, 95, 174, 0.3), transparent 30%),
    linear-gradient(135deg, #071326 0%, #071f3f 42%, #117a72 100%) !important;
}

#membership > .section-header,
.membership-section > .section-header {
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #fff !important;
  background:
    linear-gradient(135deg, rgba(7, 19, 38, 0.94), rgba(17, 122, 114, 0.88)) !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22) !important;
}

#membership > .section-header h2,
#membership > .section-header .section-label,
#membership > .section-header .section-note,
#membership > .section-header p,
.membership-section > .section-header h2,
.membership-section > .section-header .section-label,
.membership-section > .section-header .section-note,
.membership-section > .section-header p {
  color: #fff !important;
}

#membership .inner-tab-nav {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(7, 19, 38, 0.72);
}

#membership .inner-tab-nav button {
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(17, 122, 114, 0.95), rgba(15, 95, 174, 0.95));
}

#membership .member-connect-panel,
#membership .panel-form,
#membership .member-login-panel,
#membership .member-login-result,
#membership .submitted-list {
  color: #071326 !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 252, 0.97)) !important;
}

#membership .member-connect-panel h3,
#membership .panel-form .section-label,
#membership .member-login-result strong,
#membership label,
#membership h3,
#membership strong {
  color: #071326 !important;
}

#membership .muted,
#membership .fine-print,
#membership small {
  color: #475467 !important;
}

#membership .member-benefit-grid span,
#membership .member-dashboard-grid article {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  background:
    linear-gradient(135deg, #071f3f, #117a72) !important;
}

#membership .member-benefit-grid span {
  color: #fff !important;
}

#membership .member-dashboard-grid article span,
#membership .member-dashboard-grid article strong {
  color: #fff !important;
}

.member-accept-hint {
  width: 100%;
  margin: 10px 0 2px;
  color: #071326;
  font-weight: 800;
}

@media (max-width: 680px) {
  .site-header {
    min-height: 74px !important;
    padding: 10px 12px !important;
    gap: 10px !important;
  }

  .brand {
    gap: 8px !important;
    min-width: 0 !important;
  }

  .brand-mark {
    width: 54px !important;
    height: 40px !important;
  }

  .brand strong {
    font-size: 0.98rem !important;
    line-height: 1.05 !important;
  }

  .brand small {
    font-size: 0.72rem !important;
    line-height: 1.1 !important;
  }

  .menu-toggle {
    min-height: 40px !important;
    padding: 0 12px !important;
    font-size: 0.9rem !important;
    border-radius: 8px !important;
  }

  .language-switcher {
    min-height: 48px !important;
    padding: 5px !important;
    gap: 6px !important;
  }

  .language-switcher button {
    min-width: 48px !important;
    min-height: 38px !important;
    font-size: 0.9rem !important;
  }

  .nav-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    padding-top: 6px !important;
  }

  .nav-dropdown {
    min-width: 0 !important;
  }

  .nav-item,
  .nav-dropdown-toggle {
    min-height: 42px !important;
    width: 100% !important;
    padding: 0 8px !important;
    font-size: 0.9rem !important;
    line-height: 1.05 !important;
    border-radius: 8px !important;
    white-space: normal !important;
  }

  .nav-dropdown summary {
    width: 100% !important;
  }

  .nav-dropdown-menu {
    grid-column: 1 / -1 !important;
    gap: 5px !important;
    padding: 7px !important;
  }

  .nav-dropdown-menu button {
    min-height: 40px !important;
    padding: 0 8px !important;
    font-size: 0.88rem !important;
    line-height: 1.05 !important;
  }
}

.church-pulse-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px clamp(18px, 5vw, 64px) 0;
  background:
    linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
}

.pulse-card {
  position: relative;
  min-height: 132px;
  overflow: hidden;
  display: grid;
  align-content: space-between;
  gap: 12px;
  border: 1px solid rgba(17, 122, 114, 0.16);
  border-radius: 8px;
  padding: 18px;
  color: #071326;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(243, 250, 249, 0.96));
  text-align: left;
  box-shadow: 0 16px 42px rgba(7, 19, 38, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.pulse-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--accent), var(--blue), var(--gold));
}

.pulse-card.is-live::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1dc37e;
  box-shadow: 0 0 0 0 rgba(29, 195, 126, 0.42);
  animation: pulseGlow 1.8s infinite;
}

.pulse-card:hover {
  transform: translateY(-3px);
  border-color: rgba(17, 122, 114, 0.34);
  box-shadow: 0 22px 58px rgba(7, 19, 38, 0.13);
}

.pulse-card span {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.pulse-card strong {
  display: block;
  font-size: clamp(1.08rem, 1.5vw, 1.32rem);
  line-height: 1.1;
}

.pulse-card small {
  color: #667085;
  font-weight: 750;
  line-height: 1.35;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(29, 195, 126, 0.42);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(29, 195, 126, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(29, 195, 126, 0);
  }
}

.screen.is-active,
body[data-page="home"] .home-extra {
  animation: sectionRise 460ms ease both;
}

body[data-page="home"] .home-extra:nth-of-type(2) {
  animation-delay: 70ms;
}

body[data-page="home"] .home-extra:nth-of-type(3) {
  animation-delay: 120ms;
}

body[data-page="home"] .home-extra:nth-of-type(4) {
  animation-delay: 170ms;
}

@keyframes sectionRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-section > .section-header,
.teaching-tools,
.calendar-shell,
.member-connect-panel,
.giving-panel,
.prayer-layout,
.testimony-layout,
.ministry-grid,
.leader-grid,
.gallery-shell {
  border-radius: 8px;
}

.page-section > .section-header {
  align-items: stretch;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(17, 122, 114, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 251, 0.98));
  box-shadow: 0 18px 50px rgba(7, 19, 38, 0.08);
}

.page-section > .section-header h2 {
  color: #071326;
}

.page-section > .section-header .section-note {
  max-width: 780px;
}

.home-action-card,
.quick-action,
.latest-card,
.impact-strip article,
.rhythm-list button {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.home-action-card:hover,
.quick-action:hover,
.latest-card:hover,
.impact-strip article:hover,
.rhythm-list button:hover {
  transform: translateY(-3px);
}

@media (max-width: 980px) {
  .church-pulse-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .church-pulse-strip {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 12px 0;
  }

  .pulse-card {
    min-height: 104px;
    padding: 14px 16px;
  }

  .pulse-card strong {
    font-size: 1rem;
  }

  .page-section > .section-header {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .screen.is-active,
  body[data-page="home"] .home-extra,
  .pulse-card.is-live::after {
    animation: none;
  }

  .pulse-card,
  .home-action-card,
  .quick-action,
  .latest-card,
  .impact-strip article,
  .rhythm-list button {
    transition: none;
  }
}

#teachings > .section-header,
#events > .section-header,
#prayer > .section-header,
#testimonies > .section-header,
#ministries > .section-header,
#gallery > .section-header,
#give > .section-header,
#membership > .section-header,
#admin > .section-header {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  align-items: end;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(7, 19, 38, 0.94), rgba(17, 122, 114, 0.76)),
    var(--accent-dark);
}

#teachings > .section-header::before,
#events > .section-header::before,
#prayer > .section-header::before,
#testimonies > .section-header::before,
#ministries > .section-header::before,
#gallery > .section-header::before,
#give > .section-header::before,
#membership > .section-header::before,
#admin > .section-header::before {
  position: absolute;
  right: clamp(18px, 4vw, 42px);
  top: clamp(18px, 4vw, 34px);
  color: rgba(255, 255, 255, 0.18);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 950;
  line-height: 0.85;
}

#teachings > .section-header::before { content: "Word"; }
#events > .section-header::before { content: "Gather"; }
#prayer > .section-header::before { content: "Pray"; }
#testimonies > .section-header::before { content: "Stories"; }
#ministries > .section-header::before { content: "Serve"; }
#gallery > .section-header::before { content: "Moments"; }
#give > .section-header::before { content: "Give"; }
#membership > .section-header::before { content: "Member"; }
#admin > .section-header::before { content: "Admin"; }

#teachings > .section-header > *,
#events > .section-header > *,
#prayer > .section-header > *,
#testimonies > .section-header > *,
#ministries > .section-header > *,
#gallery > .section-header > *,
#give > .section-header > *,
#membership > .section-header > *,
#admin > .section-header > * {
  position: relative;
  z-index: 1;
}

#teachings > .section-header h2,
#events > .section-header h2,
#prayer > .section-header h2,
#testimonies > .section-header h2,
#ministries > .section-header h2,
#gallery > .section-header h2,
#give > .section-header h2,
#membership > .section-header h2,
#admin > .section-header h2 {
  color: #fff;
}

#teachings > .section-header .section-note,
#events > .section-header .section-note,
#prayer > .section-header .section-note,
#testimonies > .section-header .section-note,
#ministries > .section-header .section-note,
#gallery > .section-header .section-note,
#give > .section-header .section-note,
#membership > .section-header .section-note,
#admin > .section-header .section-note,
#teachings > .section-header p:not(.section-label),
#events > .section-header p:not(.section-label),
#prayer > .section-header p:not(.section-label),
#testimonies > .section-header p:not(.section-label),
#ministries > .section-header p:not(.section-label),
#gallery > .section-header p:not(.section-label),
#give > .section-header p:not(.section-label),
#membership > .section-header p:not(.section-label),
#admin > .section-header p:not(.section-label) {
  color: rgba(255, 255, 255, 0.84);
}

#events > .section-header { background: linear-gradient(115deg, rgba(7, 19, 38, 0.93), rgba(15, 95, 174, 0.72)), var(--blue); }
#prayer > .section-header { background: linear-gradient(115deg, rgba(7, 19, 38, 0.93), rgba(159, 47, 84, 0.72)), var(--rose); }
#testimonies > .section-header { background: linear-gradient(115deg, rgba(7, 19, 38, 0.93), rgba(211, 154, 45, 0.72)), var(--gold); }
#ministries > .section-header { background: linear-gradient(115deg, rgba(7, 19, 38, 0.93), rgba(17, 122, 114, 0.78)), var(--accent); }
#gallery > .section-header { background: linear-gradient(115deg, rgba(7, 19, 38, 0.93), rgba(15, 95, 174, 0.7)), var(--accent-dark); }
#give > .section-header { background: linear-gradient(115deg, rgba(7, 19, 38, 0.94), rgba(211, 154, 45, 0.72)), var(--gold); }
#membership > .section-header { background: linear-gradient(115deg, rgba(7, 19, 38, 0.95), rgba(17, 122, 114, 0.74)), var(--accent-dark); }
#admin > .section-header { background: linear-gradient(115deg, rgba(7, 19, 38, 0.95), rgba(159, 47, 84, 0.68)), var(--navy); }

.teaching-discovery-panel,
.admin-control-center,
.gallery-album-covers,
.member-home-grid,
.preference-grid {
  display: grid;
  gap: 14px;
}

.teaching-discovery-panel {
  grid-template-columns: 1.2fr 1fr 1fr;
  margin: 18px 0;
}

.teaching-discovery-panel > article,
.admin-control-center > article,
.member-preferences-panel,
.member-home-grid > article {
  border: 1px solid rgba(17, 122, 114, 0.14);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 46px rgba(7, 19, 38, 0.08);
}

.teaching-discovery-panel span,
.admin-control-center span,
.member-dashboard-hero span,
.member-home-grid span,
.teaching-author-shelf span,
.teaching-journey-card span {
  display: block;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.teaching-discovery-panel strong,
.admin-control-center strong,
.member-home-grid strong {
  display: block;
  margin: 6px 0;
  color: #071326;
  font-size: 1.18rem;
  line-height: 1.15;
}

.author-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.author-chip-row button {
  min-height: 36px;
  border: 1px solid rgba(17, 122, 114, 0.18);
  border-radius: 999px;
  padding: 0 12px;
  color: #071326;
  background: #f5fbfa;
  font-weight: 850;
}

.gallery-album-covers {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 18px 0 24px;
}

.gallery-album-cover {
  min-height: 160px;
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  padding: 14px;
  color: #fff;
  text-align: left;
  background: #071326;
}

.gallery-album-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  transition: transform 220ms ease, opacity 220ms ease;
}

.gallery-album-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 19, 38, 0.16), rgba(7, 19, 38, 0.78));
}

.gallery-album-cover span,
.gallery-album-cover strong {
  position: relative;
  z-index: 1;
  display: block;
}

.gallery-album-cover span {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.gallery-album-cover strong {
  margin-top: 78px;
  font-size: 1.05rem;
}

.gallery-album-cover:hover img {
  transform: scale(1.05);
  opacity: 0.72;
}

.admin-control-center {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 18px 0;
}

.rich-member-dashboard {
  display: grid;
  gap: 18px;
}

.member-dashboard-hero {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.member-dashboard-hero strong {
  display: block;
  color: #071326;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.member-home-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.member-preferences-panel {
  align-self: start;
}

.preference-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.preference-grid label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid rgba(17, 122, 114, 0.14);
  border-radius: 8px;
  padding: 0 12px;
  color: #071326;
  background: #f6fbfa;
  font-weight: 850;
}

.preference-grid input {
  width: 18px;
  height: 18px;
}

@media (max-width: 1100px) {
  .teaching-discovery-panel,
  .admin-control-center,
  .member-home-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-album-covers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  #teachings > .section-header,
  #events > .section-header,
  #prayer > .section-header,
  #testimonies > .section-header,
  #ministries > .section-header,
  #gallery > .section-header,
  #give > .section-header,
  #membership > .section-header,
  #admin > .section-header {
    min-height: 190px;
  }

  .teaching-discovery-panel,
  .admin-control-center,
  .member-home-grid,
  .preference-grid,
  .gallery-album-covers {
    grid-template-columns: 1fr;
  }

  .gallery-album-cover {
    min-height: 132px;
  }

  .gallery-album-cover strong {
    margin-top: 58px;
  }

  .member-dashboard-hero {
    display: grid;
  }
}

/* Final contrast pass for dark blue photo panels */
#outreach .outreach-grid .outreach-card,
#home .ministry-focus-card,
#home .ministry-focus-visual,
#home .home-action-card.is-featured,
#home .pulse-card.is-live {
  color: #ffffff !important;
}

#outreach .outreach-grid .outreach-card > div,
#home .ministry-focus-card,
#home .ministry-focus-visual > div,
#home .home-action-card.is-featured,
#home .pulse-card.is-live {
  background-color: rgba(7, 19, 38, 0.86) !important;
}

#outreach .outreach-grid .outreach-card h3,
#outreach .outreach-grid .outreach-card p,
#outreach .outreach-grid .outreach-card strong,
#outreach .outreach-grid .outreach-card .muted,
#home .ministry-focus-card h3,
#home .ministry-focus-card p,
#home .ministry-focus-card strong,
#home .ministry-focus-card small,
#home .ministry-focus-card .muted,
#home .ministry-focus-visual strong,
#home .home-action-card.is-featured strong,
#home .home-action-card.is-featured small,
#home .pulse-card.is-live strong,
#home .pulse-card.is-live small {
  color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

#outreach .outreach-grid .outreach-card .section-label,
#outreach .outreach-grid .outreach-card span,
#home .ministry-focus-card span,
#home .ministry-focus-visual span,
#home .home-action-card.is-featured span,
#home .pulse-card.is-live span {
  color: #ffd66d !important;
}

#outreach .outreach-grid .outreach-card img,
#home .ministry-focus-card img,
#home .ministry-focus-visual img {
  filter: brightness(0.72) saturate(1.05) contrast(1.08) !important;
}

/* True final admin spacious pass: keep admin calm, wide, and readable. */
#admin {
  max-width: none !important;
}

#admin .section-shell,
#admin .admin-card,
#admin .admin-private {
  width: min(100%, 1480px) !important;
  max-width: 1480px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#admin .admin-card {
  padding: clamp(20px, 3vw, 42px) !important;
}

#admin .admin-private {
  gap: 36px !important;
}

#admin .admin-control-center {
  display: none !important;
}

#admin .admin-status {
  padding: 18px 24px !important;
}

#admin .admin-command-bar {
  grid-template-columns: repeat(2, minmax(280px, 1fr)) !important;
  gap: 22px !important;
}

#admin .admin-command-bar button {
  min-height: 138px !important;
  padding: 24px !important;
}

#admin .admin-command-bar strong {
  font-size: 1.12rem !important;
}

#admin .admin-stats {
  grid-template-columns: repeat(4, minmax(180px, 1fr)) !important;
  gap: 18px !important;
}

#admin .admin-stats article {
  min-height: 112px !important;
  padding: 22px !important;
}

#admin .admin-tabs {
  gap: 12px !important;
  overflow-x: auto !important;
  padding: 4px 2px 12px !important;
  scroll-snap-type: x proximity !important;
}

#admin .admin-tab {
  flex: 0 0 auto !important;
  min-width: 168px !important;
  min-height: 48px !important;
  padding: 12px 16px !important;
  scroll-snap-align: start !important;
}

#admin .admin-tool-groups,
#admin .admin-overview-grid {
  grid-template-columns: repeat(2, minmax(320px, 1fr)) !important;
  gap: 24px !important;
}

#admin .admin-dashboard-brief,
#admin .admin-recent-panel,
#admin .admin-overview-card,
#admin .admin-tool-group {
  padding: 24px !important;
}

#admin .panel-form.admin-pane.is-active {
  grid-template-columns: 1fr !important;
  max-width: 1040px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: clamp(24px, 3vw, 42px) !important;
}

#admin .admin-list.admin-pane.is-active {
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: clamp(24px, 3vw, 42px) !important;
}

#admin [data-admin-pane="member-accounts"].admin-pane.is-active {
  max-width: 1480px !important;
}

#admin .member-board-tools {
  grid-template-columns: repeat(3, minmax(210px, 1fr)) !important;
  gap: 16px !important;
}

#admin .member-board-summary {
  grid-template-columns: repeat(4, minmax(180px, 1fr)) !important;
  gap: 18px !important;
}

#admin .member-board-card {
  margin-top: 22px !important;
  padding: clamp(22px, 2.5vw, 34px) !important;
}

#admin .member-profile-panel {
  gap: 24px !important;
}

#admin .member-profile-details {
  grid-template-columns: repeat(2, minmax(240px, 1fr)) !important;
  gap: 16px !important;
}

@media (max-width: 900px) {
  #admin .admin-card {
    padding: 16px !important;
  }

  #admin .admin-private {
    gap: 26px !important;
  }

  #admin .admin-command-bar,
  #admin .admin-stats,
  #admin .admin-tool-groups,
  #admin .admin-overview-grid,
  #admin .member-board-tools,
  #admin .member-board-summary,
  #admin .member-profile-details {
    grid-template-columns: 1fr !important;
  }

  #admin .admin-command-bar button {
    min-height: 112px !important;
  }

  #admin .panel-form.admin-pane.is-active,
  #admin .admin-list.admin-pane.is-active {
    padding: 20px !important;
  }
}

/* Absolute last centering pass for admin and member/admin entry pages. */
#admin.screen,
#admin.page-section,
#admin.admin-section,
#membership.screen,
#membership.page-section,
#membership.membership-section {
  width: 100% !important;
  max-width: none !important;
  padding-left: clamp(16px, 4vw, 56px) !important;
  padding-right: clamp(16px, 4vw, 56px) !important;
}

#admin > .section-header,
#admin .admin-layout,
#admin .admin-private,
#admin .admin-pane.is-active,
#membership > .section-header,
#membership .membership-layout,
#membership .contact-forms-layout,
#membership .member-dashboard,
#membership .rich-member-dashboard,
#membership .member-login-result {
  width: min(100%, 1320px) !important;
  max-width: 1320px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#admin > .section-header,
#membership > .section-header {
  align-items: center !important;
  text-align: center !important;
}

#admin > .section-header > div,
#admin > .section-header .section-note,
#membership > .section-header > div,
#membership > .section-header .section-note {
  margin-left: auto !important;
  margin-right: auto !important;
}

#admin .admin-private {
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-items: stretch !important;
  gap: 34px !important;
}

#admin .admin-private > * {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}

#admin .admin-tool-groups {
  grid-template-columns: 1fr !important;
}

#admin .admin-tools {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: 12px !important;
}

#admin .panel-form.admin-pane.is-active {
  max-width: 980px !important;
}

#admin .admin-list.admin-pane.is-active {
  max-width: 1120px !important;
}

#admin [data-admin-pane="member-accounts"].admin-pane.is-active {
  max-width: 1320px !important;
}

#membership .membership-layout {
  display: grid !important;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr) !important;
  gap: 26px !important;
  align-items: stretch !important;
}

#membership .membership-layout > * {
  width: 100% !important;
}

#membership .member-connect-panel {
  grid-row: span 2 !important;
}

#membership .member-preferences-panel {
  grid-column: 1 / -1 !important;
}

#membership .member-login-panel,
#membership .member-connect-panel,
#membership .member-preferences-panel,
#membership .panel-form {
  padding: clamp(22px, 3vw, 36px) !important;
}

#membership .contact-forms-layout {
  grid-template-columns: repeat(2, minmax(300px, 1fr)) !important;
  gap: 26px !important;
}

#membership .member-dashboard-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
}

@media (min-width: 1100px) {
  #admin .admin-command-bar {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  #admin .admin-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1200px) {
  #membership .member-dashboard-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 820px) {
  #admin.screen,
  #admin.page-section,
  #admin.admin-section,
  #membership.screen,
  #membership.page-section,
  #membership.membership-section {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  #admin > .section-header,
  #membership > .section-header {
    align-items: flex-start !important;
    text-align: left !important;
  }

  #admin .admin-command-bar,
  #admin .admin-stats,
  #admin .admin-tool-groups,
  #admin .admin-overview-grid,
  #admin .member-board-tools,
  #admin .member-board-summary,
  #admin .member-profile-details,
  #membership .membership-layout,
  #membership .contact-forms-layout,
  #membership .member-dashboard-grid {
    grid-template-columns: 1fr !important;
  }

  #membership .member-connect-panel,
  #membership .member-preferences-panel {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

/* Large readable PDF area: PDFs use the full teaching width instead of small cards. */
#teachings .teaching-grid:has(.teaching-card[data-kind="pdf"]),
#teachings .pdf-author-grid {
  grid-template-columns: 1fr !important;
}

#teachings .teaching-card[data-kind="pdf"] {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: none !important;
  padding: clamp(18px, 3vw, 32px) !important;
}

#teachings .teaching-card[data-kind="pdf"] > div {
  width: 100% !important;
}

#teachings .pdf-preview,
#teachingReader .pdf-preview,
.uploaded-file-viewer .pdf-preview {
  display: block !important;
  width: 100% !important;
  height: max(760px, 88vh) !important;
  min-height: 760px !important;
  margin: 20px 0 0 !important;
  border: 1px solid #b8c5c1 !important;
  border-radius: 6px !important;
  background: #fff !important;
}

#teachings .reader-panel,
#teachingReader {
  width: min(100%, 1500px) !important;
  max-width: 1500px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: clamp(18px, 3vw, 36px) !important;
}

#teachingReader #readerBody,
#teachingReader .uploaded-file-viewer {
  width: 100% !important;
  max-width: none !important;
}

.pdf-reading-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin-top: 16px !important;
}

.pdf-reading-actions a {
  min-height: 46px !important;
}

@media (max-width: 820px) {
  #teachings .teaching-card[data-kind="pdf"] {
    padding: 12px !important;
  }

  #teachings .pdf-preview,
  #teachingReader .pdf-preview,
  .uploaded-file-viewer .pdf-preview {
    height: 78vh !important;
    min-height: 560px !important;
  }

  .pdf-reading-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .pdf-reading-actions a {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* Outreach event photo galleries. */
.outreach-gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #071326;
}

.outreach-gallery-track {
  position: absolute;
  inset: 0;
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
}

.outreach-gallery-slide {
  display: block;
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  visibility: visible;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.outreach-gallery-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.outreach-gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 48px;
  min-height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  padding: 0;
  color: #fff;
  background: rgba(7, 19, 38, 0.78);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.outreach-gallery-arrow:hover,
.outreach-gallery-arrow:focus-visible {
  background: #117a72;
  outline: 3px solid rgba(255, 255, 255, 0.82);
}

.outreach-gallery-arrow.is-prev { left: 14px; }
.outreach-gallery-arrow.is-next { right: 14px; }

.outreach-gallery-count {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 7px 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(7, 19, 38, 0.82);
  font-size: 0.88rem;
  font-weight: 800;
}

@media (max-width: 680px) {
  .outreach-gallery {
    aspect-ratio: auto;
    height: clamp(260px, 75vw, 420px);
    min-height: 260px;
  }
  .outreach-gallery-track {
    min-height: 260px;
    -webkit-overflow-scrolling: touch;
  }
  .outreach-gallery-slide {
    min-height: 260px;
  }
  .outreach-gallery-arrow {
    width: 42px;
    height: 42px;
    min-height: 42px;
  }
  .outreach-gallery-arrow.is-prev { left: 8px; }
  .outreach-gallery-arrow.is-next { right: 8px; }
}

@media (max-width: 420px) {
  .outreach-gallery {
    height: 280px;
    min-height: 280px;
  }
  .outreach-gallery-track,
  .outreach-gallery-slide {
    min-height: 280px;
  }
}

/* Final outreach gallery control visibility. */
.outreach-activity > .outreach-gallery {
  padding: 0 !important;
}

.outreach-gallery-arrow {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 20 !important;
  color: #ffffff !important;
  background: #117a72 !important;
  border: 3px solid #ffffff !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45) !important;
}

.outreach-gallery-count {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 20 !important;
}

.outreach-picture-total {
  width: fit-content;
  margin: 0 0 12px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #ffffff;
  background: #117a72;
  font-size: 0.88rem;
  font-weight: 800;
}

.outreach-selected-picture-count {
  width: fit-content;
  margin: 0;
  padding: 10px 14px;
  border: 2px solid #117a72;
  border-radius: 6px;
  color: #083f3b;
  background: #e8f5f2;
  font-size: 1rem;
  font-weight: 800;
}

.outreach-picture-total strong {
  color: #ffffff;
  font-size: 1rem;
}

.admin-upload-sync-panel {
  width: 100%;
  margin: 18px 0 26px;
  padding: 22px;
  border: 3px solid #117a72;
  border-radius: 8px;
  color: #071326;
  background: #e8f5f2;
}

.admin-upload-sync-panel h3 {
  margin: 4px 0 8px;
  color: #071326;
  font-size: 1.5rem;
}

.admin-upload-sync-panel p {
  color: #183c39;
}

.admin-upload-sync-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 8px;
}

@media (max-width: 680px) {
  .admin-upload-sync-panel {
    padding: 16px;
  }

  .admin-upload-sync-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-upload-sync-actions button {
    width: 100%;
  }
}

.author-library-panel {
  width: 100%;
  margin: 24px 0;
  padding: 24px;
  border: 2px solid rgba(17, 122, 114, 0.22);
  border-radius: 8px;
  background: #f7fbfa;
}

.author-library-header,
.active-author-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.author-library-header h3 {
  margin: 2px 0 6px;
  color: #071326;
  font-size: 1.55rem;
}

.author-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.author-featured-profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 22px;
  align-items: start;
  margin: 0 0 20px;
  padding: 24px;
  border: 2px solid rgba(17, 122, 114, 0.24);
  border-radius: 8px;
  color: #071326;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(7, 19, 38, 0.1);
}

.author-featured-profile h3 {
  margin: 3px 0 6px;
  color: #071326;
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.author-featured-profile p {
  color: #183c39;
  font-size: 1.02rem;
  line-height: 1.6;
}

.author-featured-photo {
  aspect-ratio: 1638 / 2048;
  width: 320px !important;
  height: 400px !important;
  max-width: 320px !important;
  max-height: 400px !important;
  min-width: 320px !important;
  min-height: 400px !important;
  border-radius: 6px;
  object-fit: cover;
  background: #e8f5f2;
  border: 2px solid #117a72;
  box-shadow: 0 5px 12px rgba(7, 19, 38, 0.12);
}

.author-profile-actions,
.author-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.author-profile-teachings {
  padding: 18px;
  border-radius: 8px;
  border: 1px solid rgba(17, 122, 114, 0.18);
  background: #f7fbfa;
}

.author-teaching-group {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.author-teaching-group + .author-teaching-group {
  margin-top: 22px;
}

.author-teaching-group h4 {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  color: #ffffff;
  background: #117a72;
  font-size: 1.15rem;
}

.author-teaching-category {
  display: grid;
  gap: 8px;
}

.author-teaching-category h5 {
  margin: 0;
  color: #071326;
  font-size: 1rem;
}

.author-profile-teachings > span {
  display: block;
  margin-bottom: 10px;
  color: #117a72;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.author-teaching-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.author-teaching-list li {
  margin: 0;
  padding: 0;
}

.author-teaching-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  gap: 12px;
  min-height: 64px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(17, 122, 114, 0.18);
  border-radius: 8px;
  color: #071326;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
}

.author-teaching-row:hover,
.author-teaching-row:focus-within {
  border-color: #117a72;
  outline: 3px solid rgba(17, 122, 114, 0.16);
}

.author-teaching-open {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.author-teaching-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.author-teaching-actions .primary-btn,
.author-teaching-actions .secondary-btn {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 0.9rem;
}

.author-teaching-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #117a72;
  font-size: 0.82rem;
  font-weight: 900;
}

.author-teaching-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.author-teaching-type {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: #117a72;
  background: #e8f5f2;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.author-teaching-row strong {
  color: #071326;
  font-size: 0.98rem;
}

.author-teaching-row small {
  color: #183c39;
  font-weight: 700;
  line-height: 1.35;
}

.author-card,
.about-author-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(17, 122, 114, 0.18);
  border-radius: 8px;
  color: #071326;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(7, 19, 38, 0.08);
}

.author-card.is-active {
  border-color: #117a72;
  box-shadow: 0 0 0 3px rgba(17, 122, 114, 0.18);
}

.author-card h4,
.about-author-card h4 {
  margin: 0 0 4px;
  color: #071326;
  font-size: 1.18rem;
}

.author-role,
.author-topics {
  margin: 0 0 8px;
  color: #183c39;
  font-weight: 700;
}

.author-card-photo,
.about-author-photo,
.admin-author-photo {
  aspect-ratio: 1638 / 2048;
  width: 180px;
  height: 225px;
  border-radius: 6px;
  object-fit: cover;
  background: #e8f5f2;
  border: 2px solid #117a72;
}

.about-author-photo {
  width: 200px;
  height: 250px;
}

.admin-author-photo {
  width: 180px;
  height: 225px;
}

.author-edit-photo-row {
  display: grid;
  grid-template-columns: minmax(140px, 190px) 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(18, 135, 127, 0.18);
  border-radius: 8px;
  background: #f7fcfb;
}

.admin-author-edit-photo {
  width: 160px;
  height: 200px;
  aspect-ratio: 1638 / 2048;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid rgba(18, 135, 127, 0.3);
  background: #fff;
}

.author-edit-photo-row small {
  display: block;
  margin-top: 6px;
  color: #4b655f;
  font-weight: 800;
}

.author-notify-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #183c39;
}

.author-notify-toggle input {
  width: auto;
  min-height: auto;
}

.author-alert-status {
  display: inline-flex;
  width: fit-content;
  margin: 6px 0 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e9f8f5;
  color: #117a72;
  font-size: 0.85rem;
  font-weight: 900;
}

.author-avatar-placeholder {
  display: grid;
  place-items: center;
  color: #ffffff;
  background: #117a72;
  font-weight: 900;
}

.teaching-author-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 8px;
  color: #071326;
  background: #e8f5f2;
}

.teaching-author-chip > div {
  min-width: 0;
  flex: 1;
}

.teaching-author-chip .plain-action {
  flex: 0 0 auto;
  color: #117a72;
  font-weight: 900;
}

.teaching-author-chip span,
.about-author-card span {
  display: block;
  color: #117a72;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.teaching-author-chip strong {
  display: block;
  color: #071326;
  font-size: 1rem;
}

.teaching-author-chip small {
  display: block;
  color: #183c39;
  font-weight: 700;
}

.teaching-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #117a72;
}

.about-author-card {
  margin: 18px 0;
}

.about-author-card p {
  color: #183c39;
  font-size: 1rem;
  line-height: 1.55;
}

.author-admin-item {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.author-name-library {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.author-name-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 96px;
  padding: 16px;
  border: 1px solid rgba(17, 122, 114, 0.2);
  border-radius: 8px;
  color: #071326;
  background: #ffffff;
  text-align: left;
  box-shadow: 0 10px 26px rgba(7, 19, 38, 0.07);
  cursor: pointer;
}

.author-name-card:hover,
.author-name-card:focus-visible {
  border-color: #117a72;
  outline: 3px solid rgba(17, 122, 114, 0.16);
}

.author-name-card span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.author-name-card strong {
  color: #071326;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.12;
}

.author-name-card small {
  color: #183c39;
  font-weight: 700;
}

.author-name-card em {
  color: #117a72;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 900;
}

@media (max-width: 680px) {
  .author-library-panel {
    padding: 16px;
  }

  .author-library-header,
  .active-author-filter {
    display: grid;
    align-items: stretch;
  }

  .author-card,
  .about-author-card {
    grid-template-columns: 1fr;
  }

  .author-featured-profile {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .author-featured-photo {
    width: 220px !important;
    height: 275px !important;
    min-width: 220px !important;
    min-height: 275px !important;
    max-width: 220px !important;
    max-height: 275px !important;
  }

  .author-edit-photo-row {
    grid-template-columns: 1fr;
  }

  .author-profile-actions,
  .author-card-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .author-teaching-row {
    grid-template-columns: 1fr;
  }

  .author-teaching-open {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .author-teaching-type {
    grid-column: 2;
    justify-self: start;
  }

  .author-teaching-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .author-teaching-actions .primary-btn,
  .author-teaching-actions .secondary-btn {
    width: 100%;
  }
}

/* Calmer Teachings tab organization. */
#teachings .teaching-tools,
#teachings .teaching-filter-panel,
#teachings .teaching-library-dashboard,
#teachings .series-strip {
  display: none !important;
}

#teachings .teaching-discovery-panel {
  display: none;
}

.shared-upload-loading {
  width: 100%;
  padding: 18px;
  border: 1px solid rgba(17, 122, 114, 0.18);
  border-radius: 8px;
  color: #117a72 !important;
  background: #e8f5f2;
  font-weight: 800;
}

/* Keep the admin/member overview tools from covering dashboard content. */
#admin .admin-tool-groups,
#membership .admin-tool-groups {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
  width: 100% !important;
  margin: 0 0 28px !important;
}

#admin .admin-pane,
#membership .admin-pane,
#admin [data-admin-pane="dashboard"] {
  position: relative !important;
  z-index: 1 !important;
  clear: both !important;
}

#teachings .teaching-library-dashboard {
  margin-bottom: 18px;
}

#teachings .teaching-library-dashboard article {
  min-height: 112px;
  padding: 16px;
}

#teachings .author-library-panel {
  margin: 18px 0;
}

#teachings .series-strip {
  margin: 18px 0;
}

#teachings .series-strip article {
  min-height: 112px;
}

#teachingLatest {
  display: none !important;
}

#teachings .teaching-grid {
  margin-top: 18px;
}

#teachings .teaching-card {
  min-height: auto;
}

#teachings .about-author-card {
  display: none;
}

#teachings.is-teaching-home .teaching-tools,
#teachings.is-teaching-home .teaching-filter-panel,
#teachings.is-teaching-home .teaching-library-dashboard,
#teachings.is-teaching-home .series-strip,
#teachings.is-teaching-home #teachingGrid,
#teachings.is-teaching-home #teachingReader {
  display: none !important;
}

#teachings.is-teaching-home .author-library-panel {
  display: block;
}

#teachings.is-author-page .teaching-tools,
#teachings.is-author-page .teaching-filter-panel,
#teachings.is-author-page .teaching-library-dashboard,
#teachings.is-author-page .series-strip,
#teachings.is-author-page #teachingGrid,
#teachings.is-author-page #teachingReader {
  display: none !important;
}

#teachings.is-author-page .author-library-panel {
  display: block;
}

#teachings.is-teaching-detail .teaching-tools,
#teachings.is-teaching-detail .teaching-filter-panel,
#teachings.is-teaching-detail .teaching-library-dashboard,
#teachings.is-teaching-detail .teaching-discovery-panel,
#teachings.is-teaching-detail .author-library-panel,
#teachings.is-teaching-detail .series-strip,
#teachings.is-teaching-detail #teachingGrid {
  display: none !important;
}

#teachings.is-teaching-detail #teachingReader {
  display: block !important;
  width: min(100%, 1500px) !important;
  max-width: 1500px !important;
  margin: 0 auto !important;
  padding: clamp(18px, 3vw, 34px) !important;
  border: 1px solid rgba(17, 122, 114, 0.2);
  border-radius: 8px;
  color: #071326;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(7, 19, 38, 0.1);
}

.teaching-detail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.teaching-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 24px;
  align-items: start;
}

.teaching-detail-main h2 {
  margin: 4px 0 8px;
  color: #071326;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.12;
}

.teaching-detail-main .pdf-preview {
  margin-top: 18px !important;
}

.teaching-detail-side {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 14px;
}

.teaching-detail-side .about-author-card {
  display: grid !important;
  margin: 0;
}

.teaching-detail-actions {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 8px;
  background: #e8f5f2;
}

.teaching-card-actions {
  margin: 14px 0 10px;
}

.teaching-card-cover {
  width: min(180px, 100%);
  margin: 10px 0;
}

.teaching-notes-panel {
  margin: 18px 0;
  padding: 18px;
  border-radius: 8px;
  background: #f7fbfa;
}

.teaching-notes-panel span {
  display: block;
  margin-bottom: 8px;
  color: #117a72;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  #teachings .teaching-library-dashboard,
  #teachings .series-strip {
    grid-template-columns: 1fr;
  }

  .teaching-author-chip {
    align-items: start;
  }

  .teaching-detail-toolbar {
    display: grid;
    align-items: stretch;
  }

  .teaching-detail-layout {
    grid-template-columns: 1fr;
  }

  .teaching-detail-side {
    position: static;
  }
}

@media (max-width: 1024px) {
  .site-header {
    position: static !important;
    top: auto !important;
  }
}

#admin[data-active-admin-pane="dashboard"] .admin-tool-groups {
  display: none !important;
}

#admin[data-active-admin-pane="dashboard"] [data-admin-pane="dashboard"] {
  margin-top: 24px !important;
}

/* Keep the member overview chips inside the card instead of looking like a blocking tab box. */
#membership .member-connect-panel {
  position: relative !important;
  z-index: 2 !important;
  overflow: visible !important;
}

#membership .member-benefit-grid {
  position: static !important;
  z-index: auto !important;
  margin: 6px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#membership .member-benefit-grid span {
  min-height: 48px !important;
  color: #071326 !important;
  border: 1px solid rgba(17, 122, 114, 0.2) !important;
  background: #eef8f6 !important;
  box-shadow: none !important;
}

#membership .member-login-result {
  position: relative !important;
  z-index: 3 !important;
}

/* Final fix: the admin unlocked bar must never cover the top of the admin area. */
#admin .admin-layout,
#admin .admin-private {
  position: relative !important;
  overflow: visible !important;
}

#admin .admin-status {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  z-index: 1 !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(180px, max-content) 1fr !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 0 8px !important;
  padding: 12px 14px !important;
  border-radius: 8px !important;
  background: #071f3f !important;
  box-shadow: none !important;
}

#admin .admin-status strong {
  color: #ffffff !important;
  font-size: 0.98rem !important;
  line-height: 1.2 !important;
  white-space: normal !important;
}

#admin .admin-status .inline-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  min-width: 0 !important;
}

#admin .admin-status .text-btn {
  min-height: 34px !important;
  padding: 0 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  font-size: 0.82rem !important;
  line-height: 1.1 !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

#admin .admin-command-bar {
  position: relative !important;
  z-index: 2 !important;
  margin-top: 0 !important;
}

/* Final membership layout fix: dashboard/login cards must not cover each other. */
#membership .membership-layout {
  position: relative !important;
  overflow: visible !important;
  align-items: start !important;
}

#membership .membership-layout > * {
  position: relative !important;
  z-index: 1 !important;
  min-width: 0 !important;
}

#membership .member-connect-panel {
  grid-column: 1 / -1 !important;
  grid-row: auto !important;
  z-index: 1 !important;
  margin: 0 !important;
}

#membership .member-login-panel {
  z-index: 3 !important;
  overflow: visible !important;
}

#membership #memberLoginResult,
#membership .member-login-result {
  position: static !important;
  inset: auto !important;
  z-index: 1 !important;
  width: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin-top: 18px !important;
  clear: both !important;
  overflow: visible !important;
}

#membership .member-dashboard,
#membership .rich-member-dashboard {
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  max-width: none !important;
  overflow: visible !important;
}

#membership .member-dashboard-hero {
  align-items: start !important;
}

#membership[data-member-mode="dashboard"] .member-connect-panel,
#membership[data-member-mode="dashboard"] #memberRegisterForm,
#membership[data-member-mode="dashboard"] .member-preferences-panel {
  display: none !important;
}

#membership[data-member-mode="dashboard"] .membership-layout,
#membership[data-member-mode="dashboard"] #memberLoginForm {
  grid-template-columns: 1fr !important;
}

#membership[data-member-mode="dashboard"] #memberLoginForm {
  grid-column: 1 / -1 !important;
  width: min(100%, 1320px) !important;
  max-width: 1320px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#membership[data-member-mode="dashboard"] #memberLoginForm > .section-label,
#membership[data-member-mode="dashboard"] #memberLoginForm > label,
#membership[data-member-mode="dashboard"] #memberLoginForm > button[type="submit"] {
  display: none !important;
}

.teaching-stats {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 12px 0 !important;
}

.teaching-stats span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  min-height: 34px !important;
  border: 1px solid rgba(17, 122, 114, 0.18) !important;
  border-radius: 999px !important;
  padding: 0 12px !important;
  color: #071326 !important;
  background: #eef8f6 !important;
  font-weight: 850 !important;
}

.teaching-stats b {
  color: #117a72 !important;
  font-size: 1.02rem !important;
  font-weight: 950 !important;
}

.author-teaching-main .author-teaching-stats {
  display: flex !important;
  gap: 6px !important;
  margin-top: 8px !important;
}

.author-teaching-main .author-teaching-stats span {
  min-height: 28px !important;
  padding: 0 10px !important;
  font-size: 0.82rem !important;
}

.author-teaching-main .author-teaching-stats b {
  font-size: 0.9rem !important;
}

/* Tablet author pages: prevent names, details, and teaching controls from overlapping. */
.author-featured-profile > *,
.author-card > *,
.about-author-card > *,
.author-name-card > *,
.author-teaching-row > *,
.author-teaching-open > *,
.author-teaching-main {
  min-width: 0;
}

.author-featured-profile h3,
.author-featured-profile p,
.author-card h4,
.about-author-card h4,
.author-name-card strong,
.author-name-card small,
.author-teaching-row strong,
.author-teaching-row small {
  overflow-wrap: anywhere;
}

@media (min-width: 681px) and (max-width: 1180px) {
  .author-library-panel {
    padding: 18px;
  }

  .author-featured-profile {
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    gap: 18px;
    padding: 20px;
  }

  .author-featured-photo {
    width: min(240px, 100%) !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 240px !important;
    max-height: none !important;
  }

  .author-profile-teachings {
    grid-column: 1 / -1;
  }

  .author-teaching-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .author-teaching-actions {
    justify-content: flex-start;
  }
}

@media (min-width: 681px) and (max-width: 920px), (orientation: landscape) and (max-height: 760px) and (max-width: 1180px) {
  .author-featured-profile {
    grid-template-columns: 1fr;
  }

  .author-featured-photo {
    width: 220px !important;
    max-width: 100% !important;
    justify-self: start;
  }

  .about-author-card {
    grid-template-columns: minmax(140px, 180px) minmax(0, 1fr);
  }

  .about-author-photo {
    width: min(180px, 100%);
    height: auto;
  }

  .author-teaching-open {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .author-teaching-type {
    grid-column: 2;
    justify-self: start;
  }
}

/* Auto-hide header: visible only at the top, hidden while reading lower sections. */
.site-header {
  position: sticky !important;
  top: 0 !important;
  transform: translateY(0);
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
  will-change: transform;
}

body.header-hidden .site-header {
  transform: translateY(calc(-100% - 8px));
}

body.header-visible .site-header,
body.nav-open .site-header {
  transform: translateY(0);
}

body.header-scrolled .site-header {
  box-shadow: 0 14px 34px rgba(7, 19, 38, 0.14);
  background: rgba(248, 245, 239, 0.96);
}

@media (prefers-reduced-motion: reduce) {
  .site-header {
    transition: none !important;
  }
}

@media (max-width: 760px) {
  #admin .admin-status {
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
  }

  #admin .admin-status .inline-actions {
    justify-content: flex-start !important;
  }

  #admin .admin-status .text-btn {
    flex: 1 1 150px !important;
  }
}
