:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.app-body {
  margin: 0;
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at top left, rgba(var(--color-primary-rgb), 0.12), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, var(--color-bg) 100%);
  color: var(--color-text);
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(219, 228, 240, 0.9);
}

.header-public,
.header-app {
  background: rgba(248, 251, 255, 0.9);
}

.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  box-shadow: 0 10px 25px rgba(var(--color-primary-rgb), 0.24);
}

.brand-subtitle {
  color: var(--color-muted);
  font-size: 0.82rem;
  margin-top: 0.18rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  color: #334155;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: rgba(15, 118, 110, 0.1);
  color: var(--color-primary-dark);
}

.nav-link.mobile {
  width: 100%;
  justify-content: flex-start;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(219, 228, 240, 0.9);
}

.menu-toggle {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(219, 228, 240, 0.95);
  background: rgba(255, 255, 255, 0.9);
  color: #1f2937;
}

.mobile-nav {
  border-top: 1px solid rgba(219, 228, 240, 0.9);
  background: rgba(248, 251, 255, 0.96);
}

.surface-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(219, 228, 240, 0.95);
  border-radius: 1.25rem;
}

.hero-panel {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  border-radius: 1.5rem;
  padding: 1.75rem;
  box-shadow: 0 24px 50px rgba(var(--color-primary-rgb), 0.2);
  display: grid;
  gap: 1.5rem;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.hero-meta > div {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  color: #fff;
}

.hero-meta-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.4rem;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: 0;
  font-weight: 800;
  color: #020617;
}

.hero-copy {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #475569;
  max-width: 46rem;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow {
  color: var(--color-primary-dark);
}

.section-kicker {
  color: var(--color-primary);
}

.feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(219, 228, 240, 0.95);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--color-primary-dark);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 0;
  border-radius: 0.95rem;
  padding: 0.84rem 1.1rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  box-shadow: 0 16px 30px rgba(var(--color-primary-rgb), 0.2);
}

.btn-dark {
  background: #1e293b;
  color: #fff;
}

.btn-light {
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  border: 1px solid rgba(219, 228, 240, 0.95);
}

.auth-panel {
  min-height: 100%;
  display: flex;
  align-items: center;
}

.auth-panel > div {
  width: 100%;
}

.field-label {
  color: #334155;
  font-size: 0.92rem;
  font-weight: 600;
}

.field-input {
  width: 100%;
  min-height: 3rem;
  padding: 0.82rem 0.95rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(203, 213, 225, 0.95);
  background: rgba(248, 250, 252, 0.95);
  color: #0f172a;
  font-size: 0.98rem;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.field-input:focus {
  border-color: rgba(15, 118, 110, 0.7);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.14);
  background: #fff;
}

.divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(203, 213, 225, 0.95);
}

.feedback {
  min-height: 1.3rem;
  font-size: 0.92rem;
  color: var(--color-muted);
}

.feedback.error {
  color: var(--color-danger);
}

.feedback.success {
  color: var(--color-success);
}

.info-row {
  display: flex;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(248, 250, 252, 0.88);
  border: 1px solid rgba(219, 228, 240, 0.95);
}

.info-row.compact {
  padding: 0.95rem 1rem;
}

.info-row strong {
  display: block;
  font-size: 0.96rem;
  color: #0f172a;
  margin-bottom: 0.22rem;
}

.info-row p {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.55;
}

.stat-card {
  min-height: 9.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-label {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-value {
  display: block;
  margin-top: 0.55rem;
  font-size: 1.9rem;
  line-height: 1.1;
  font-weight: 700;
  color: #0f172a;
}

.stat-copy {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
}

.info-block {
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(219, 228, 240, 0.95);
}

.info-block dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 0.4rem;
}

.info-block dd {
  margin: 0;
  color: #0f172a;
  font-weight: 600;
  line-height: 1.5;
  word-break: break-word;
}

.action-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 3.35rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(219, 228, 240, 0.95);
  background: rgba(248, 250, 252, 0.92);
  font-weight: 600;
  color: #0f172a;
}

.linked-card,
.user-card,
.mini-stat {
  border-radius: 1rem;
  border: 1px solid rgba(219, 228, 240, 0.95);
  background: rgba(248, 250, 252, 0.92);
}

.linked-card,
.user-card {
  padding: 1rem;
}

.linked-card h3,
.user-card h3 {
  margin: 0;
  font-size: 1rem;
  color: #0f172a;
  font-weight: 700;
}

.linked-card p,
.user-card p {
  margin: 0.35rem 0 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
}

.linked-meta,
.user-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.mini-stat {
  padding: 0.95rem 1rem;
}

.mini-stat span {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.mini-stat strong {
  display: block;
  margin-top: 0.4rem;
  font-size: 1.15rem;
  color: #0f172a;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  min-height: 1.95rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(15, 118, 110, 0.1);
  color: var(--color-primary-dark);
}

.tag.alt {
  background: rgba(30, 41, 59, 0.08);
  color: #334155;
}

.tag.warn {
  background: rgba(217, 119, 6, 0.14);
  color: #9a5c00;
}

.empty-state {
  padding: 1.1rem;
  border-radius: 1rem;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  background: rgba(248, 250, 252, 0.86);
  color: #64748b;
  text-align: center;
}

@media (max-width: 767px) {
  .shell {
    width: min(100% - 1rem, 1180px);
  }

  .hero-panel,
  .surface-card {
    border-radius: 1.2rem;
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 0.75rem, 1180px);
  }

  .surface-card.p-6,
  .hero-panel {
    padding: 1rem !important;
  }

  .surface-card.p-4 {
    padding: 0.75rem !important;
  }

  .section-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.07em;
  }

  .surface-card h1,
  .hero-panel h1 {
    font-size: 1.35rem !important;
    line-height: 1.16 !important;
  }

  .surface-card h2 {
    font-size: 1.12rem !important;
    line-height: 1.2 !important;
  }

  .admin-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 0.45rem;
    border-radius: 0.95rem;
  }

  .admin-tab {
    width: 100%;
    justify-content: space-between;
    padding: 0.72rem 0.75rem;
    font-size: 0.86rem;
    border-radius: 0.75rem;
  }

  .admin-tab-count {
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.32rem;
    font-size: 0.72rem;
  }

  .admin-tab-panel > .grid {
    gap: 1rem;
  }

  .field-input {
    min-height: 2.75rem;
    border-radius: 0.85rem;
    font-size: 0.94rem;
  }

  textarea.field-input {
    min-height: 7rem;
  }

  .btn {
    min-height: 2.75rem;
    justify-content: center;
    padding: 0.75rem 0.9rem;
    border-radius: 0.85rem;
    font-size: 0.9rem;
  }

  .admin-tab-panel .flex.items-center.gap-3,
  .admin-tab-panel .flex.gap-3 {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-tab-panel .flex.items-start.justify-between {
    align-items: flex-start;
  }

  .article-card,
  .user-card,
  .linked-card,
  .member-list-card {
    border-radius: 0.95rem;
    padding: 0.85rem;
  }

  .user-card > .flex.items-start.justify-between {
    flex-direction: column;
  }

  .user-card > .flex.items-start.justify-between > .tag {
    align-self: flex-start;
  }

  .user-card .mt-3.flex {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .admin-tab-panel .btn-light:has(i),
  .user-card .mt-3 .btn {
    width: 2.65rem;
    min-width: 2.65rem;
    height: 2.65rem;
    padding: 0;
    position: relative;
  }

  .admin-tab-panel .btn-light:has(i) span,
  .user-card .mt-3 .btn span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .article-card {
    grid-template-columns: 1fr;
  }

  .article-card-photo,
  .article-card-photo-agenda {
    width: 100%;
  }

  .linked-meta,
  .user-meta,
  .public-event-line,
  .public-detail-chips {
    gap: 0.4rem;
  }

  .tag,
  .status-badge {
    min-height: 1.65rem;
    padding: 0.25rem 0.55rem;
    font-size: 0.7rem;
  }

  .photo-modal {
    padding: 0.5rem;
  }

  .photo-modal-panel {
    padding: 1rem !important;
    max-height: calc(100dvh - 1rem);
    overflow: auto;
  }

  .crop-stage {
    min-height: 15rem;
  }
}

.empty-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(219, 228, 240, 0.95);
}

.empty-panel-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.9rem;
  background: rgba(15, 118, 110, 0.12);
  color: var(--color-primary-dark);
}

.empty-panel strong {
  display: block;
  color: #0f172a;
  font-size: 0.98rem;
  margin-bottom: 0.28rem;
}

.empty-panel p {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.6;
}

.subtle-note {
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.55;
}

.photo-thumb {
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  object-fit: cover;
  border: 1px solid rgba(219, 228, 240, 0.95);
  background: rgba(255, 255, 255, 0.9);
}

.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.photo-modal.hidden {
  display: none;
}

.photo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(4px);
}

.photo-modal-panel {
  position: relative;
  width: min(980px, 100%);
  padding: 1.25rem;
}

.crop-stage {
  min-height: 22rem;
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(219, 228, 240, 0.95);
}

.crop-stage.hidden,
#photo-preview-wrap.hidden {
  display: none;
}

.crop-stage img {
  display: block;
  max-width: 100%;
}

.crop-preview {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(219, 228, 240, 0.95);
  background: rgba(248, 250, 252, 0.9);
}

.crop-preview.is-wide {
  aspect-ratio: 16 / 9;
}


.admin-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.35rem;
  border-radius: 1rem;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(219, 228, 240, 0.95);
}

.admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  background: transparent;
  color: #475569;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  border-radius: 0.8rem;
  cursor: pointer;
}

.admin-tab.is-active {
  background: rgba(15, 118, 110, 0.12);
  color: var(--color-primary-dark);
}

.admin-tab-count {
  min-width: 1.45rem;
  height: 1.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: #334155;
  font-size: 0.78rem;
  line-height: 1;
}

.admin-tab.is-active .admin-tab-count {
  background: rgba(15, 118, 110, 0.16);
  color: var(--color-primary-dark);
}

.hero-panel-home {
  gap: 1.25rem;
}

.hero-home-copy {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  min-height: 100%;
}

.hero-home-copy.is-compact {
  align-content: center;
  justify-items: center;
  text-align: center;
}

.hero-home-copy.is-compact .hero-player-copy {
  max-width: 34rem;
}

.hero-home-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-home-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.2rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.84rem;
  font-weight: 600;
}

.hero-player-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1rem;
  padding: 1rem;
}

[data-page="church-public"] .surface-card > .flex .status-badge {
  display: none;
}

.app-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.surface-card-secondary {
  background: rgba(255, 255, 255, 0.78);
}

.hero-player-card.is-empty {
  background: rgba(255, 255, 255, 0.08);
}

.hero-player-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.tag-on-air {
  background: rgba(255,255,255,0.14);
  color: #fff;
}

.hero-player-copy {
  margin: 0 0 0.85rem;
  color: rgba(240, 253, 250, 0.86);
  font-size: 0.92rem;
  line-height: 1.55;
}

.church-hero-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
}

.church-brand-preview {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(219, 228, 240, 0.95);
  background: rgba(248, 250, 252, 0.92);
}

.church-brand-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.church-color-input {
  min-width: 5.5rem;
  padding: 0.35rem;
}

.church-color-preview {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.church-color-preview span {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: var(--color-primary);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.church-color-preview code {
  color: #334155;
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-audio-player {
  filter: saturate(0.85) brightness(1.02);
}

.account-summary-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.account-summary-head strong {
  display: block;
  font-size: 1.15rem;
  color: #0f172a;
}

.account-summary-head p {
  margin: 0.2rem 0 0;
  color: #64748b;
  font-size: 0.92rem;
}

.account-photo {
  width: 7rem;
  height: 7rem;
  border-radius: 1rem;
  object-fit: cover;
  border: 1px solid rgba(219, 228, 240, 0.95);
  background: rgba(226, 232, 240, 0.85);
}

.article-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: stretch;
  padding: 1.1rem;
  border-radius: 1.15rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  border: 1px solid rgba(219, 228, 240, 0.95);
}

.article-card-photo {
  width: 7rem;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  object-fit: cover;
  border: 1px solid rgba(219, 228, 240, 0.95);
}

.article-card-copy {
  display: grid;
  align-content: start;
  gap: 0.45rem;
}

.public-section-title {
  margin: 0;
  color: var(--color-primary);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
}

.article-card-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.article-card strong {
  display: block;
  color: #0f172a;
  font-size: 1.03rem;
  line-height: 1.35;
  margin-bottom: 0;
}

.article-card p {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.6;
}

.article-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.2rem;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
}

.article-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}

.article-card-agenda {
  align-items: center;
}

.article-card-photo-agenda {
  width: 8.5rem;
}

.linked-card.is-compact {
  padding: 0.9rem 1rem;
}

.linked-card.is-compact h3 {
  display: none;
}

.list-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.pagination-label {
  font-size: 0.9rem;
  color: #64748b;
}

.article-card-link {
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.article-card-link:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.content-hero-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid rgba(219, 228, 240, 0.95);
}

.public-detail-card {
  overflow: hidden;
}

.public-detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.public-detail-church-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #334155;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.public-detail-title {
  display: grid;
  gap: 0.75rem;
}

.public-event-line,
.public-detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.public-event-line span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #475569;
  font-size: 0.98rem;
  font-weight: 600;
}

.public-detail-info {
  background: rgba(248, 250, 252, 0.92);
}

.public-detail-sidebar {
  position: sticky;
  top: 6.5rem;
}

.public-info-stack {
  align-content: start;
}

.public-info-card {
  border-radius: 1.15rem;
}

.public-address {
  display: block;
  margin-top: 0.35rem;
  color: #64748b;
  font-weight: 500;
}

.public-church-note {
  background: rgba(240, 253, 250, 0.9);
  border-color: rgba(15, 118, 110, 0.16);
}

.public-reading {
  max-width: 62ch;
}

.public-member-detail {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1.35rem;
  align-items: center;
}

.public-member-photo {
  width: 9rem;
  height: 9rem;
  border-radius: 1.35rem;
  object-fit: cover;
  border: 1px solid rgba(219, 228, 240, 0.95);
  background: rgba(226, 232, 240, 0.85);
}

.public-member-copy {
  display: grid;
  gap: 0.75rem;
}

.content-body {
  color: #334155;
  font-size: 1.04rem;
  line-height: 1.9;
}

.content-body p {
  margin: 0;
}

.public-detail-summary {
  max-width: 56ch;
}

.public-article-reading {
  padding-right: 1rem;
}

.content-side-card {
  border-radius: 1.25rem;
}

.content-side-card.is-event {
  background: rgba(240, 253, 250, 0.9);
  border: 1px solid rgba(15, 118, 110, 0.18);
}

.content-side-card.is-article {
  background: rgba(248, 250, 252, 0.92);
}

.account-summary .info-block dd {
  font-weight: 600;
}

.account-summary .section-kicker {
  margin-bottom: 0.2rem;
}

.member-list-card {
  display: grid;
  grid-template-columns: 3.75rem 1fr;
  gap: 0.9rem;
  align-items: center;
  padding: 1rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(219, 228, 240, 0.95);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.member-list-card:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.06);
}

.audio-upload-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(219, 228, 240, 0.95);
  background: rgba(248, 250, 252, 0.92);
}

.audio-upload-panel strong {
  display: block;
  color: #0f172a;
  font-size: 0.98rem;
}

.audio-upload-panel p {
  margin: 0.2rem 0 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.45;
}

.audio-upload-panel small {
  display: inline-flex;
  margin-top: 0.55rem;
  max-width: 100%;
  color: #334155;
  font-weight: 700;
  font-size: 0.78rem;
  word-break: break-word;
}

.audio-upload-icon {
  width: 2.65rem;
  height: 2.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.9rem;
  background: rgba(15, 118, 110, 0.1);
  color: var(--color-primary-dark);
}

.audio-upload-panel.is-uploading,
.audio-card.is-uploading {
  border-color: rgba(15, 118, 110, 0.3);
  background: rgba(240, 253, 250, 0.92);
}

.audio-upload-panel.is-processing,
.audio-card.is-processing {
  border-color: rgba(59, 130, 246, 0.25);
  background: rgba(239, 246, 255, 0.92);
}

.audio-upload-panel.is-ready {
  border-color: rgba(22, 163, 74, 0.22);
  background: rgba(240, 253, 244, 0.92);
}

.audio-upload-panel.is-error {
  border-color: rgba(220, 38, 38, 0.28);
  background: rgba(254, 242, 242, 0.95);
}

.audio-progress-bar {
  height: 0.42rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  margin-top: 0.9rem;
}

.audio-progress-bar span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
  animation: audio-progress-slide 1.1s ease-in-out infinite;
}

.audio-card-feedback {
  margin: 0.8rem 0 0;
  color: #475569;
  font-size: 0.86rem;
  font-weight: 700;
}

.audio-card-feedback.success {
  color: #0f766e;
}

.audio-card-feedback.error {
  color: #dc2626;
}

@keyframes audio-progress-slide {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(260%);
  }
}

.member-home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 1024px) {
  .member-home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.member-list-photo {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 0.95rem;
  object-fit: cover;
  border: 1px solid rgba(219, 228, 240, 0.95);
  background: rgba(226, 232, 240, 0.85);
}

.member-list-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-dark);
}

.member-list-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.member-list-copy strong {
  display: block;
  color: #0f172a;
  font-size: 0.98rem;
}

.member-list-copy p {
  margin: 0.22rem 0 0;
  color: #64748b;
  font-size: 0.92rem;
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 8.5rem) 1fr;
  gap: 1.25rem;
  align-items: center;
}

.profile-photo-large {
  width: 8.5rem;
  height: 8.5rem;
  border-radius: 1.25rem;
  object-fit: cover;
  border: 1px solid rgba(219, 228, 240, 0.95);
  background: rgba(226, 232, 240, 0.85);
}

.event-highlight {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(240, 253, 250, 0.9);
  border: 1px solid rgba(15, 118, 110, 0.18);
}

.event-highlight-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
}

.event-highlight strong {
  color: #0f172a;
  font-size: 1.2rem;
}

.content-footnotes {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: #64748b;
  font-size: 0.84rem;
}

.weekday-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.weekday-grid label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(219, 228, 240, 0.95);
  background: rgba(248, 250, 252, 0.95);
  color: #334155;
}

.weekday-grid input {
  accent-color: var(--color-primary);
}

@media (max-width: 640px) {
  .weekday-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .public-detail-card {
    padding: 1.35rem !important;
  }

  .public-article-reading {
    padding-right: 0;
  }

  .public-detail-topbar {
    margin-bottom: 1.15rem;
  }

  .public-detail-topbar .status-badge {
    display: none;
  }

  .public-detail-church-link {
    min-height: 2.75rem;
  }

  .public-event-line {
    gap: 0.45rem;
  }

  .public-event-line span {
    width: 100%;
  }

  .public-member-detail {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .public-member-photo {
    width: 7.5rem;
    height: 7.5rem;
  }

  .public-detail-sidebar {
    position: static;
  }
}
