/* EBCC Mumbai v1.2 responsive and branding layer */
:root {
  --surface-soft: #f8fbfa;
  --surface-tint: #eef6f3;
  --focus: rgba(20, 108, 93, .18);
}

body {
  background:
    radial-gradient(circle at 92% 2%, rgba(233, 185, 73, .08), transparent 22rem),
    #f4f7f6;
}

.content {
  overflow-x: clip;
}

.card {
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.card:hover {
  border-color: #d4dfdb;
}

.page-head {
  padding: 4px 0;
}

.page-head h1 {
  letter-spacing: -.025em;
}

.page-actions {
  align-items: center;
  justify-content: flex-end;
}

.page-actions form {
  margin: 0;
}

.btn {
  white-space: nowrap;
}

.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.icon-button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.brand-logo {
  display: block;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 14px;
  object-fit: contain;
  background: #fff;
  padding: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}

.public-header .brand-logo {
  background: rgba(255, 255, 255, .96);
}

.brand>span:last-child,
.sidebar-brand>span:last-child {
  min-width: 0;
}

.brand strong,
.brand small,
.sidebar-brand strong,
.sidebar-brand small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-wrap {
  max-width: 100%;
  border-radius: 0 0 var(--radius) var(--radius);
  scrollbar-width: thin;
  scrollbar-color: #a7bcb6 transparent;
}

.data-table {
  min-width: 720px;
}

.data-table th:first-child,
.data-table td:first-child {
  padding-left: 22px;
}

.data-table th:last-child,
.data-table td:last-child {
  padding-right: 22px;
}

.data-table tbody tr {
  transition: background .18s ease;
}

.data-table .actions {
  flex-wrap: wrap;
}

.data-table td {
  overflow-wrap: anywhere;
}

.table-toolbar>.form-select {
  max-width: 230px;
}

.department-grid {
  align-items: stretch;
}

.department-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
}

.department-card .card-body {
  flex: 1;
}

.department-card h2 {
  margin: 8px 0 16px;
  font: 700 22px 'Fraunces', serif;
}

.department-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}

.department-card-actions .btn:first-child {
  margin-right: auto;
}

.rbac-layout {
  display: grid;
  grid-template-columns: minmax(240px, 310px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.role-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.role-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 13px;
}

.role-option:hover,
.role-option.active {
  background: var(--surface-tint);
  border-color: #d5e5df;
}

.role-option>span:last-child {
  min-width: 0;
}

.role-option strong,
.role-option small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.role-option small {
  color: var(--muted);
}

.role-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.permission-group {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.permission-group legend {
  padding: 0 6px;
  font-weight: 800;
  text-transform: capitalize;
}

.brand-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.brand-upload-card {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.brand-preview {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}

.brand-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

.member-profile-page .profile-hero {
  align-items: center;
}

.member-profile-page .profile-avatar {
  width: 68px;
  height: 68px;
  font-size: 21px;
}

.member-profile-page .detail-item strong,
.asset-detail-page .detail-item strong {
  overflow-wrap: anywhere;
}

.print-only {
  display: none;
}

.member-print-header {
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--primary);
}

.member-print-header img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.member-print-header h1 {
  margin: 0;
  font: 700 26px 'Fraunces', serif;
}

.member-print-header p {
  margin: 2px 0 0;
  color: var(--muted);
}

.asset-detail-page .stat-card strong,
.finance-page .stat-card strong {
  overflow-wrap: anywhere;
}

.danger-zone {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 22px;
}

.inline-popover {
  position: relative;
}

.inline-popover>form {
  position: absolute;
  z-index: 15;
  right: 0;
  width: min(330px, calc(100vw - 36px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow);
}

.audio-input-panel {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  text-align: left;
}

.audio-input-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.audio-device-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.audio-device-status strong {
  color: var(--ink);
}

@media (max-width: 980px) {
  .rbac-layout {
    grid-template-columns: 1fr;
  }

  .role-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .permission-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-head {
    gap: 14px;
  }

  .page-actions {
    width: 100%;
    justify-content: stretch;
  }

  .page-actions>.btn,
  .page-actions>form,
  .page-actions>details {
    flex: 1 1 auto;
  }

  .page-actions>form .btn,
  .page-actions>details .btn {
    width: 100%;
  }

  .member-cell {
    min-width: 0;
  }

  .member-cell>span:last-child {
    min-width: 0;
  }

  .member-cell strong,
  .member-cell small {
    overflow-wrap: anywhere;
  }

  .brand-upload-grid {
    grid-template-columns: 1fr;
  }

  .audio-input-controls {
    grid-template-columns: 1fr;
  }

  .mobile-card-table {
    min-width: 0;
  }

  .mobile-card-table thead {
    display: none;
  }

  .mobile-card-table tbody {
    display: grid;
    gap: 12px;
    padding: 12px;
  }

  .mobile-card-table tbody tr {
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(26, 53, 47, .06);
  }

  .mobile-card-table tbody tr:hover td {
    background: transparent;
  }

  .mobile-card-table tbody tr.empty-row {
    border: 0;
    box-shadow: none;
  }

  .mobile-card-table td {
    display: grid;
    grid-template-columns: minmax(98px, 34%) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 13px !important;
    border-top: 1px solid var(--line);
    text-align: right;
  }

  .mobile-card-table td:first-child {
    border-top: 0;
  }

  .mobile-card-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .07em;
    text-align: left;
    text-transform: uppercase;
  }

  .mobile-card-table td[data-label="Member"],
  .mobile-card-table td[data-label="Asset"],
  .mobile-card-table td[data-label="User"] {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .mobile-card-table td[data-label="Member"]::before,
  .mobile-card-table td[data-label="Asset"]::before,
  .mobile-card-table td[data-label="User"]::before {
    display: none;
  }

  .mobile-card-table td[data-label="Actions"] {
    display: block;
    text-align: left;
    background: var(--surface-soft);
  }

  .mobile-card-table td[data-label="Actions"]::before {
    display: block;
    margin-bottom: 8px;
  }

  .mobile-card-table td[data-label="Actions"] .actions {
    justify-content: stretch;
  }

  .mobile-card-table td[data-label="Actions"] .btn {
    flex: 1 1 auto;
  }

  .mobile-card-table tr.empty-row td {
    display: block;
    text-align: center;
  }

  .mobile-card-table tr.empty-row td::before {
    display: none;
  }

  .mobile-card-table .empty-state {
    padding: 30px 12px;
  }

  .table-toolbar>.form-select {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .content {
    padding-inline: 13px;
  }

  .dashboard-page .dashboard-stats,
  .dashboard-page .quick-actions,
  .finance-page .finance-stats,
  .asset-index-page .asset-stats,
  .asset-detail-page .asset-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .dashboard-page .stat-card,
  .finance-page .stat-card,
  .asset-index-page .stat-card,
  .asset-detail-page .stat-card {
    min-height: 132px;
    padding: 16px;
  }

  .dashboard-page .stat-card strong,
  .finance-page .stat-card strong,
  .asset-index-page .stat-card strong,
  .asset-detail-page .stat-card strong {
    font-size: 22px !important;
  }

  .dashboard-page .stat-card span,
  .finance-page .stat-card span,
  .asset-index-page .stat-card span,
  .asset-detail-page .stat-card span {
    font-size: 10px;
  }

  .dashboard-page .stat-icon {
    width: 34px;
    height: 34px;
    right: 12px;
    top: 12px;
  }

  .dashboard-page .quick-action {
    min-width: 0;
    padding: 12px;
  }

  .dashboard-page .quick-action>span:first-child {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }

  .dashboard-page .quick-action small {
    display: none;
  }

  .occasion {
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 10px;
  }

  .occasion>span:nth-child(2) {
    min-width: 0;
    flex: 1;
  }

  .occasion time {
    width: auto;
    margin: 0 0 0 auto;
    padding: 3px 8px;
    font-size: 10px;
  }

  .role-list {
    grid-template-columns: 1fr;
  }

  .role-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .brand-upload-card {
    grid-template-columns: 66px 1fr;
  }

  .brand-preview {
    width: 66px;
    height: 66px;
  }

  .inline-popover>form {
    position: fixed;
    left: 18px;
    right: 18px;
    top: 18%;
    width: auto;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 12mm;
  }

  body {
    background: #fff !important;
    color: #111;
    font-size: 11pt;
  }

  .sidebar,
  .topbar,
  .mobile-nav,
  .sidebar-backdrop,
  .offline-banner,
  .no-print,
  .alert,
  .public-footer {
    display: none !important;
  }

  .app-shell,
  .app-main {
    display: block !important;
    min-height: 0;
  }

  .app-main {
    width: 100%;
  }

  .content {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
  }

  .print-only {
    display: flex !important;
  }

  .member-profile-page .page-head {
    display: none;
  }

  .member-profile-page .grid {
    gap: 10px;
  }

  .member-profile-page .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-profile-page .card {
    break-inside: avoid;
    box-shadow: none;
    border-color: #bfc9c5;
  }

  .member-profile-page .card-header {
    padding: 10px 12px;
  }

  .member-profile-page .card-body {
    padding: 12px;
  }

  .member-profile-page .detail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .member-profile-page .detail-item small {
    color: #555;
  }

  .member-profile-page a {
    text-decoration: none;
  }
}

/* v1.3 CMS, navigation, storage and PWA deep-link additions */
.header-back-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(23, 60, 54, .16);
  border-radius: 12px;
  background: #fff;
  color: #173c36;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap
}

.header-back-button:hover {
  background: #edf4ef;
  border-color: rgba(23, 60, 54, .3)
}

.public-header .header-back-button {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .25);
  color: #fff
}

.public-menu-button {
  display: none
}

.cms-admin-grid {
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, .85fr);
  align-items: start
}

.cms-page-list {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 110px);
  overflow: auto
}

.cms-admin-item {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e1e8e3;
  border-radius: 14px;
  background: #fbfcfa
}

.cms-admin-item>div:first-child {
  display: grid;
  gap: 5px
}

.cms-admin-item .badge {
  justify-self: start
}

.cms-admin-item .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px
}

.cms-admin-item form {
  display: inline-flex
}

.code-editor {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.55;
  tab-size: 2;
  white-space: pre
}

.input-prefix {
  display: flex;
  align-items: stretch;
  border: 1px solid #ced9d2;
  border-radius: 12px;
  overflow: hidden;
  background: #edf4ef
}

.input-prefix>span {
  display: flex;
  align-items: center;
  padding: 0 11px;
  color: #567169;
  font-size: 13px;
  white-space: nowrap
}

.input-prefix .form-control {
  border: 0;
  border-left: 1px solid #ced9d2;
  border-radius: 0;
  min-width: 0
}

.cms-page {
  max-width: 1180px;
  margin-inline: auto
}

.cms-page-heading {
  max-width: 780px;
  margin-bottom: 28px
}

.cms-page-heading h1 {
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1.03;
  margin: 7px 0 13px
}

.cms-page-heading p {
  font-size: 1.1rem;
  color: #5f736e
}

.cms-page-content {
  font-size: 1rem;
  line-height: 1.75
}

.cms-page-content img {
  max-width: 100%;
  height: auto
}

.cms-page-content table {
  display: block;
  max-width: 100%;
  overflow: auto;
  border-collapse: collapse
}

.cms-page-content iframe {
  display: none
}

.cms-page-content pre {
  max-width: 100%;
  overflow: auto
}

.storage-config-card {
  padding: 20px;
  border: 1px solid #dce6df;
  border-radius: 16px;
  background: #f9fbf9
}

.storage-config-card h4 {
  margin: 0 0 16px;
  color: #173c36
}

.text-success {
  color: #23734f !important
}

.text-danger {
  color: #b6333c !important
}

.pwa-status-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dce6df;
  border-radius: 14px;
  background: #f7faf8
}

.pwa-status-dot {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 50%;
  background: #d39b2a;
  box-shadow: 0 0 0 5px rgba(211, 155, 42, .14)
}

.pwa-status-card[data-installed="true"] .pwa-status-dot {
  background: #2d8c62;
  box-shadow: 0 0 0 5px rgba(45, 140, 98, .14)
}

.notification-link-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end
}

.notification-link-picker .field {
  margin: 0
}

.notification-destination-preview {
  word-break: break-all;
  font-size: 12px;
  color: #61736d
}

.audio-history-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px
}

.audio-history-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px
}

.audio-history-card .recording-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px
}

.audio-history-card h3 {
  margin: 0
}

.audio-history-card .btn {
  margin-top: auto;
  align-self: flex-start
}

@media(max-width:1100px) {
  .cms-admin-grid {
    grid-template-columns: 1fr
  }

  .cms-page-list {
    position: static;
    max-height: none
  }

  .audio-history-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(max-width:760px) {
  .header-back-button span {
    display: none
  }

  .header-back-button {
    min-width: 40px;
    justify-content: center;
    padding: 8px
  }

  .public-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px
  }

  .public-header>.brand {
    grid-column: 1;
    min-width: 0
  }

  .public-header>.brand span:last-child {
    min-width: 0
  }

  .public-header>.brand strong,
  .public-header>.brand small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
  }

  .public-header>.header-back-button {
    grid-column: 2
  }

  .public-menu-button {
    display: grid;
    grid-column: 3
  }

  .public-header nav {
    display: none;
    grid-column: 1/-1;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 12px;
    border-radius: 14px;
    background: #173c36;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .24)
  }

  .public-header nav.open {
    display: flex
  }

  .public-header nav.open>a {
    display: flex !important
  }

  .public-header nav a {
    padding: 11px 12px;
    border-radius: 10px
  }

  .public-header nav .btn {
    justify-content: center
  }

  .topbar {
    gap: 7px
  }

  .topbar>.header-back-button {
    order: 1
  }

  .topbar>.menu-button {
    order: 0
  }

  .topbar>div:nth-of-type(1) {
    min-width: 0
  }

  .topbar>div:nth-of-type(1) strong,
  .topbar>div:nth-of-type(1) small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
  }

  .topbar-actions {
    margin-left: auto
  }

  .cms-page {
    padding-inline: clamp(16px, 4vw, 28px)
  }

  .cms-page-heading h1 {
    font-size: 2.25rem
  }

  .cms-page-content {
    font-size: .97rem
  }

  .audio-history-grid {
    grid-template-columns: 1fr
  }

  .notification-link-picker {
    grid-template-columns: 1fr
  }

  .storage-config-card {
    padding: 15px
  }
}

@media print {

  .header-back-button,
  .public-menu-button {
    display: none !important
  }

  .cms-page {
    max-width: none
  }

  .cms-page-heading {
    margin-top: 0
  }
}

/* v1.4 event publishing, bulk creation and homepage recency layout */
.event-admin-grid {
  display: grid;
  grid-template-columns: minmax(340px, .82fr) minmax(0, 1.18fr);
  gap: 20px;
  align-items: start
}

.event-admin-grid>section {
  min-width: 0
}

.event-form-image {
  overflow: hidden;
  aspect-ratio: 16/8;
  border-radius: 14px;
  background: #e6eee9
}

.event-form-image img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.event-remove-image {
  padding: 0 20px 20px
}

.event-bulk-console {
  min-width: 0
}

.event-dropzone {
  min-height: 190px
}

.bulk-event-list {
  display: grid;
  gap: 14px;
  margin-top: 18px
}

.bulk-event-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #dfe7e2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(23, 60, 54, .05)
}

.bulk-event-preview {
  position: relative;
  min-height: 100%;
  background: #e4ece7
}

.bulk-event-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.bulk-event-status {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 5px 9px;
  border-radius: 99px;
  background: rgba(13, 40, 37, .82);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase
}

.bulk-event-fields {
  display: grid;
  gap: 10px;
  padding: 16px
}

.bulk-event-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px
}

.bulk-event-heading strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.bulk-event-fields .progress {
  margin-top: 3px
}

.bulk-event-message {
  color: var(--muted)
}

.bulk-event-card.complete {
  border-color: #a9d6bd;
  background: #f7fcf9
}

.bulk-event-card.complete .bulk-event-status {
  background: #23734f
}

.bulk-event-card.failed {
  border-color: #e0a6a9;
  background: #fff8f8
}

.bulk-event-card.failed .bulk-event-status {
  background: #b6333c
}

.bulk-event-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px
}

.event-list-section {
  margin-top: 34px
}

.event-list-section>.section-intro {
  margin-bottom: 18px
}

.event-list-section>.section-intro h2 {
  margin: 5px 0;
  font: 700 clamp(28px, 4vw, 42px) 'Fraunces', serif
}

.event-list-section>.section-intro p {
  margin: 0;
  color: var(--muted)
}

.past-event-section {
  padding-top: 28px;
  border-top: 1px solid var(--line)
}

.event-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px
}

.event-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column
}

.event-card-image {
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: radial-gradient(circle at 30% 20%, rgba(233, 185, 73, .25), transparent 25%), linear-gradient(145deg, #123f39, #0b2825)
}

.event-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s
}

.event-card:hover .event-card-image img {
  transform: scale(1.035)
}

.event-card-image>span {
  display: grid;
  place-items: center;
  color: #e9b949;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase
}

.event-card-image>span b {
  display: block;
  color: #fff;
  font: 700 50px/1 'Fraunces', serif
}

.event-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px
}

.event-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase
}

.event-card h3 {
  margin: 10px 0 6px;
  font: 700 24px/1.2 'Fraunces', serif
}

.event-card h3 a {
  color: inherit
}

.event-card-body>p {
  margin: 0 0 8px;
  color: var(--muted)
}

.event-card-description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3
}

.event-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 14px
}

.event-card-actions form {
  display: inline-flex;
  margin: 0
}

.event-card-grid.compact .event-card-image {
  aspect-ratio: 16/7
}

.event-card-grid.compact .event-card h3 {
  font-size: 21px
}

.event-detail {
  max-width: 1080px;
  margin: 22px auto;
  overflow: hidden
}

.event-detail-image {
  max-height: 580px;
  overflow: hidden;
  background: #e4ece7
}

.event-detail-image img {
  display: block;
  width: 100%;
  max-height: 580px;
  object-fit: cover
}

.event-detail-body {
  padding: clamp(24px, 5vw, 62px)
}

.event-detail-body h1 {
  margin: 8px 0 24px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.02
}

.event-detail-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0
}

.event-detail-facts>div {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f8faf8
}

.event-detail-facts small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase
}

.event-detail-facts strong {
  display: block;
  margin-top: 5px
}

.event-detail-description {
  max-width: 800px;
  margin: 28px 0;
  font-size: 1.05rem;
  line-height: 1.75
}

.homepage-event-card {
  overflow: hidden;
  padding: 0
}

.homepage-event-card .event-card-image {
  aspect-ratio: 16/8
}

.homepage-event-card .event-card-body {
  padding: 20px
}

.homepage-event-card .date {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase
}

.homepage-event-card h3 {
  margin: 8px 0
}

.homepage-section-time {
  display: inline-flex;
  margin-left: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700
}

@media(max-width:1150px) {
  .event-admin-grid {
    grid-template-columns: 1fr
  }

  .event-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(max-width:760px) {
  .bulk-event-card {
    grid-template-columns: 1fr
  }

  .bulk-event-preview {
    aspect-ratio: 16/8
  }

  .bulk-event-actions {
    align-items: stretch;
    flex-direction: column
  }

  .bulk-event-actions .btn {
    width: 100%
  }

  .event-card-grid {
    grid-template-columns: 1fr
  }

  .event-detail-facts {
    grid-template-columns: 1fr
  }

  .event-detail {
    margin: 0
  }

  .event-detail-body {
    padding: 24px 18px
  }

  .event-card-actions .btn,
  .event-card-actions form {
    flex: 1
  }

  .event-card-actions form .btn {
    width: 100%
  }
}

/* v1.5 public departments, Pastor's Desk, event downloads and PWA refresh */
.mobile-header-back {
  display: none
}

.desktop-back-row {
  display: flex;
  align-items: center;
  min-height: 58px
}

.app-desktop-back {
  position: relative;
  z-index: 2;
  padding: 9px max(30px, calc((100% - 1500px)/2 + 30px));
  border-bottom: 1px solid rgba(225, 231, 228, .8);
  background: #f8faf9
}

.public-desktop-back {
  padding: 9px clamp(20px, 6vw, 90px);
  color: #fff;
  background: #123f39
}

.public-desktop-back .header-back-button {
  border-color: rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .1);
  color: #fff
}

.public-header nav {
  gap: clamp(13px, 1.7vw, 26px)
}

.pwa-launch-screen {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: none;
  place-items: center;
  padding: 28px;
  background: radial-gradient(circle at 50% 38%, rgba(233, 185, 73, .18), transparent 24rem), linear-gradient(145deg, #0d302c, #17695d);
  color: #fff;
  opacity: 1;
  transition: opacity .24s ease
}

.pwa-standalone .pwa-launch-screen {
  display: grid
}

.pwa-launch-screen.complete {
  opacity: 0;
  pointer-events: none
}

.pwa-launch-screen>div {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  text-align: center
}

.pwa-launch-screen img {
  width: 104px;
  height: 104px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.15))
}

.pwa-launch-screen strong {
  margin-top: 9px;
  font: 700 25px 'Fraunces', serif
}

.pwa-launch-screen span {
  color: #c5d8d4;
  font-size: 12px
}

.pwa-launch-screen i {
  width: 130px;
  height: 4px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, .15)
}

.pwa-launch-screen i:after {
  content: '';
  display: block;
  width: 45%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  animation: pwaLoading 1.1s ease-in-out infinite
}

@keyframes pwaLoading {
  0% {
    transform: translateX(-110%)
  }

  100% {
    transform: translateX(330%)
  }
}

.event-detail-image {
  display: grid;
  max-height: none;
  min-height: 260px;
  padding: clamp(10px, 2vw, 22px);
  background: #e4ece7
}

.event-detail-image>button {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 240px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in
}

.event-detail-image img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(23, 60, 54, .12)
}

.event-image-dialog {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(5, 12, 11, .96);
  color: #fff
}

.event-image-dialog::backdrop {
  background: #050c0b
}

.event-image-dialog figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
  height: 100%;
  margin: 0;
  padding: 54px 24px 22px
}

.event-image-dialog figure>img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 145px);
  object-fit: contain
}

.event-image-dialog figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  padding-top: 12px
}

.event-image-dialog-close {
  position: fixed;
  z-index: 2;
  right: 18px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 28px
}

.department-folder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px
}

.department-folder-card {
  overflow: hidden
}

.department-folder-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(145deg, #f8fbfa, #edf5f2)
}

.department-folder-head h2 {
  margin: 7px 0 0;
  font: 700 25px 'Fraunces', serif
}

.department-period-list {
  display: grid
}

.department-period-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--line)
}

.department-period-row:first-child {
  border-top: 0
}

.department-period-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0
}

.department-folder-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  background: #e7f1ed;
  color: var(--primary);
  font-size: 20px
}

.department-period-main strong,
.department-period-main small {
  display: block
}

.department-period-main small {
  color: var(--muted);
  font-size: 11px
}

.department-period-counts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 11px
}

.department-period-actions {
  grid-column: 1/-1;
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  padding-top: 4px
}

.department-period-actions form {
  margin: 0
}

.switch-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f8fbfa
}

.switch-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px
}

.switch-row strong,
.switch-row small {
  display: block
}

.switch-row small {
  margin-top: 3px;
  color: var(--muted)
}

.department-photo-section {
  overflow: hidden
}

.department-photo-grid,
.department-public-photo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  padding: 18px
}

.department-photo-grid a,
.department-public-photo-grid a {
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 120px;
  border-radius: 13px;
  background: #e8efeb
}

.department-photo-grid img,
.department-public-photo-grid img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: contain;
  background: #e8efeb
}

.department-photo-manage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 16px
}

.department-photo-manage form {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px
}

.department-photo-manage img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  background: #edf2ef;
  border-radius: 8px
}

.department-member-admin-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line)
}

.department-member-admin-row:last-child {
  border: 0
}

.department-member-admin-row>.member-cell {
  min-width: 0;
  flex: 1
}

.department-member-admin-row>form {
  margin: 0
}

.inline-editor {
  position: relative
}

.inline-editor>summary {
  list-style: none
}

.inline-editor>summary::-webkit-details-marker {
  display: none
}

.inline-editor[open]>form {
  position: absolute;
  z-index: 20;
  right: 0;
  top: 45px;
  width: 300px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow)
}

.department-public-index>.section-intro,
.pastor-public-page>.section-intro {
  max-width: 760px
}

.department-public-index>.section-intro h1,
.pastor-public-page>.section-intro h1,
.department-public-hero h1 {
  margin: 7px 0;
  font: 700 clamp(38px, 6vw, 68px)/1.05 'Fraunces', serif
}

.public-department-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px
}

.public-department-card {
  overflow: hidden;
  transition: .25s
}

.public-department-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 55px rgba(23, 60, 54, .14)
}

.public-department-cover {
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: radial-gradient(circle at 35% 25%, rgba(233, 185, 73, .25), transparent 25%), linear-gradient(145deg, #123f39, #0b2825);
  color: #e9b949;
  font-size: 54px
}

.public-department-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.public-department-card h2 {
  margin: 8px 0;
  font: 700 25px 'Fraunces', serif
}

.public-department-card p {
  color: var(--muted)
}

.department-public-hero {
  max-width: 880px;
  margin-bottom: 30px
}

.department-public-hero p {
  color: var(--muted);
  font-size: 17px
}

.department-public-period {
  overflow: hidden;
  margin-top: 22px
}

.department-public-period>header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
  background: #f8fbfa
}

.department-public-period>header h2 {
  margin: 5px 0;
  font: 700 32px 'Fraunces', serif
}

.department-public-period>header p {
  margin: 0;
  color: var(--muted)
}

.department-roster-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px 10px
}

.department-roster-toolbar h3 {
  margin: 0
}

.view-switch {
  display: flex;
  gap: 5px
}

.view-switch .active {
  color: #fff;
  background: var(--primary)
}

.roster-grid-view {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 22px 24px
}

.department-roster[data-view="grid"] .roster-table-view {
  display: none
}

.department-roster[data-view="grid"] .roster-grid-view {
  display: grid
}

.roster-person-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff
}

.roster-person-card>div {
  min-width: 0
}

.roster-person-card strong,
.roster-person-card small,
.roster-person-card a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis
}

.roster-person-card small {
  color: var(--muted)
}

.roster-person-card a {
  margin-top: 4px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700
}

.pastor-admin-layout {
  align-items: start
}

.pastor-entry-list {
  display: grid;
  gap: 14px
}

.pastor-entry-admin-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff
}

.pastor-entry-admin-card.no-image {
  grid-template-columns: 1fr
}

.pastor-entry-thumb {
  min-height: 190px;
  background: #e6eee9
}

.pastor-entry-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.pastor-entry-copy {
  padding: 16px
}

.pastor-entry-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px
}

.pastor-entry-copy h3 {
  margin: 8px 0;
  font: 700 22px 'Fraunces', serif
}

.pastor-entry-copy p {
  color: var(--muted)
}

.pastor-form-image {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f8fbfa
}

.pastor-form-image img {
  width: 110px;
  height: 90px;
  object-fit: contain;
  background: #e8efeb
}

.pastor-public-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px
}

.pastor-public-card {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease
}

.pastor-public-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 46px rgba(23, 60, 54, .14)
}

.pastor-public-image {
  overflow: hidden;
  aspect-ratio: 16/9;
  background: linear-gradient(145deg, #dfeae5, #cfe0d9)
}

.pastor-public-image img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.pastor-public-card .card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 18px 20px
}

.pastor-public-card h2 {
  margin: 8px 0;
  font: 700 25px 'Fraunces', serif
}

.pastor-public-card p {
  margin: 0;
  color: var(--muted);
  text-align: justify;
  line-height: 1.7
}

.pastor-public-card strong {
  margin-top: auto;
  padding-top: 14px
}

.pastor-entry-detail {
  max-width: 1050px;
  margin: 22px auto;
  overflow: hidden
}

.pastor-entry-detail-image {
  display: grid;
  place-items: center;
  padding: 16px;
  background: #e7eee9
}

.pastor-entry-detail-image img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain
}

.pastor-entry-detail-body {
  padding: clamp(25px, 5vw, 62px)
}

.pastor-entry-detail-body h1 {
  margin: 9px 0 25px;
  font: 700 clamp(38px, 6vw, 70px)/1.04 'Fraunces', serif
}

.pastor-entry-content {
  max-width: 820px;
  font-size: 1.08rem;
  line-height: 1.8;
  text-align: justify
}

.recording-card {
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  border-radius: 22px
}

.recording-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(22, 53, 48, .12)
}

.recording-art {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  height: 170px;
  background: linear-gradient(145deg, #103c37, #0c2623)
}

.recording-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(233, 185, 73, .24), transparent 20%), linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(0, 0, 0, .1));
}

.recording-art-badge {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #f1f7f5;
  font-size: 34px;
  backdrop-filter: blur(8px)
}

.recording-art-overlay {
  position: absolute;
  inset: 0;
  background: var(--recording-glow, radial-gradient(circle at 50% 32%, rgba(255, 255, 255, .08), rgba(0, 0, 0, 0) 42%));
}

.recording-art.live-theme-1 {
  --recording-glow: radial-gradient(circle at 50% 38%, rgba(233, 185, 73, .42), rgba(0, 0, 0, 0) 42%)
}

.recording-art.live-theme-2 {
  --recording-glow: radial-gradient(circle at 50% 38%, rgba(94, 170, 202, .42), rgba(0, 0, 0, 0) 42%)
}

.recording-art.live-theme-3 {
  --recording-glow: radial-gradient(circle at 50% 38%, rgba(180, 120, 202, .36), rgba(0, 0, 0, 0) 42%)
}

.recording-art.live-theme-4 {
  --recording-glow: radial-gradient(circle at 50% 38%, rgba(131, 196, 157, .36), rgba(0, 0, 0, 0) 42%)
}

.recording-art.live-theme-5 {
  --recording-glow: radial-gradient(circle at 50% 38%, rgba(255, 170, 142, .38), rgba(0, 0, 0, 0) 42%)
}

.recording-art.live-theme-6 {
  --recording-glow: radial-gradient(circle at 50% 38%, rgba(187, 214, 109, .32), rgba(0, 0, 0, 0) 42%)
}

.recording-card .card-body {
  padding: 18px
}

.recording-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px
}

.recording-card h2 {
  margin: 8px 0 10px;
  font: 700 24px/1.2 'Fraunces', serif
}

.recording-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.6
}

.recording-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
  margin: 14px 0 18px;
  font-size: 11px;
  color: var(--muted)
}

.recording-stats span {
  display: flex;
  align-items: center;
  gap: 6px
}

.recording-card .btn {
  width: 100%
}

@media(max-width:760px) {
  .pastor-public-grid {
    grid-template-columns: 1fr
  }

  .pastor-public-card .card-body {
    padding: 15px
  }

  .pastor-public-card p {
    text-align: left
  }

  .recording-grid {
    grid-template-columns: 1fr
  }

  .recording-art {
    height: 150px
  }

  .recording-stats {
    grid-template-columns: 1fr
  }
}

@media(max-width:1150px) {

  .department-folder-grid,
  .public-department-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .pastor-public-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .department-photo-grid,
  .department-public-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }

  .roster-grid-view {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(max-width:860px) {
  .public-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px
  }

  .public-header>.brand {
    grid-column: 1;
    min-width: 0
  }

  .public-menu-button {
    display: grid;
    grid-column: 2
  }

  .public-header nav {
    display: none;
    grid-column: 1/-1;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-height: calc(100vh - 105px);
    overflow: auto;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
    background: #173c36;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .24)
  }

  .public-header nav.open {
    display: flex
  }

  .public-header nav.open>a {
    display: flex !important
  }

  .public-header nav a {
    padding: 11px 12px;
    border-radius: 10px
  }

  .pastor-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(max-width:760px) {
  .mobile-header-back {
    display: inline-flex
  }

  .desktop-back-row {
    display: none
  }

  .public-header {
    grid-template-columns: minmax(0, 1fr) auto auto
  }

  .public-header>.header-back-button {
    grid-column: 2
  }

  .public-menu-button {
    grid-column: 3
  }

  .department-folder-grid,
  .public-department-grid {
    grid-template-columns: 1fr
  }

  .pastor-public-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .department-period-row {
    grid-template-columns: 1fr
  }

  .department-period-counts {
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-left: 52px
  }

  .department-period-actions {
    justify-content: stretch
  }

  .department-period-actions .btn,
  .department-period-actions form {
    flex: 1
  }

  .department-period-actions form .btn {
    width: 100%
  }

  .department-photo-grid,
  .department-public-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px
  }

  .department-photo-grid a,
  .department-public-photo-grid a {
    min-height: 130px
  }

  .department-photo-manage {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .department-member-admin-row {
    align-items: flex-start;
    flex-wrap: wrap
  }

  .department-member-admin-row>.member-cell {
    flex-basis: 100%
  }

  .inline-editor {
    margin-left: auto
  }

  .inline-editor[open]>form {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 15%;
    width: auto
  }

  .department-public-period>header {
    flex-direction: column
  }

  .department-roster-toolbar {
    align-items: stretch;
    flex-direction: column
  }

  .view-switch .btn {
    flex: 1
  }

  .roster-grid-view {
    grid-template-columns: 1fr;
    padding: 12px
  }

  .pastor-entry-admin-card {
    grid-template-columns: 1fr
  }

  .pastor-entry-thumb {
    min-height: 0;
    aspect-ratio: 16/8
  }

  .event-image-dialog figcaption {
    align-items: stretch;
    flex-direction: column
  }

  .event-image-dialog figcaption .btn {
    width: 100%
  }
}

@media(max-width:540px) {
  .department-photo-manage {
    grid-template-columns: 1fr
  }

  .pastor-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .pastor-stats .stat-card {
    min-height: 125px;
    padding: 15px
  }

  .pastor-stats .stat-card strong {
    font-size: 23px
  }

  .pwa-launch-screen img {
    width: 88px;
    height: 88px
  }
}

@media print {

  .desktop-back-row,
  .pwa-launch-screen,
  .view-switch,
  .event-image-dialog {
    display: none !important
  }
}

/* v1.6.1 unified guest/member shell, persistent footer and PWA install state */
.app-main {
  display: flex;
  min-height: 100vh;
  flex-direction: column
}

.content {
  flex: 1
}

.public-app-shell .public-main {
  min-height: 0;
  flex: 1
}

.public-app-shell .hero {
  min-height: 604px;
  padding-top: 88px
}

.site-footer {
  flex-wrap: wrap;
  gap: 14px;
  min-height: 72px
}

.site-footer>span {
  line-height: 1.5
}

.guest-sign-in {
  white-space: nowrap
}

html[data-pwa-mode="standalone"] .install-button,
html[data-pwa-mode="installed"] .install-button {
  display: none !important
}

.login-page-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column
}

.login-page-shell .login-shell {
  min-height: 0;
  flex: 1
}

.login-footer {
  width: 100%
}

@media(max-width:860px) {
  .public-app-shell .hero {
    min-height: 552px;
    padding-top: 72px
  }

  .site-footer {
    padding-bottom: calc(90px + env(safe-area-inset-bottom))
  }
}

@media(max-width:520px) {
  .guest-sign-in {
    padding-inline: 10px
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column
  }
}

/* v1.6 PWA usage insights and FFmpeg-free live-audio player */
.player-content audio[hidden] {
  display: none !important
}

.player-transport {
  display: grid;
  grid-template-columns: repeat(5, minmax(48px, 1fr));
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 2px
}

.player-transport button {
  display: grid;
  place-items: center;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #f4f8f6;
  color: var(--primary);
  font: 800 13px 'DM Sans', sans-serif;
  cursor: pointer;
  transition: .2s
}

.player-transport button:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 108, 93, .35);
  background: #e7f2ee
}

.player-transport .player-toggle {
  min-height: 62px;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 22px;
  box-shadow: 0 12px 28px rgba(20, 108, 93, .22)
}

.player-progress-track {
  position: relative
}

.player-progress-track.is-playing span {
  animation: playerActivity 1.8s ease-in-out infinite
}

@keyframes playerActivity {

  0%,
  100% {
    transform: translateX(-45%);
    opacity: .55
  }

  50% {
    transform: translateX(115%);
    opacity: 1
  }
}

.period-switch {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px
}

.usage-summary-grid .stat-card:nth-child(2) {
  --stat-color: #dff2e9
}

.usage-summary-grid .stat-card:nth-child(3) {
  --stat-color: #e3edf6
}

.usage-summary-grid .stat-card:nth-child(4) {
  --stat-color: #f4ead0
}

.usage-insight-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr);
  align-items: start
}

.usage-trend-card {
  overflow: hidden
}

.usage-bars {
  display: grid;
  gap: 11px;
  padding: 20px 22px
}

.usage-bar-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 11px
}

.usage-bar-row>span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700
}

.usage-bar-row>div {
  display: grid;
  gap: 4px
}

.usage-bar-row i {
  display: block;
  min-width: 3px;
  height: 8px;
  border-radius: 99px
}

.usage-bar-row>strong {
  text-align: right;
  font-size: 12px
}

.usage-bar-pwa {
  background: #17695d
}

.usage-bar-browser {
  background: #7fa4bd
}

.usage-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 11px
}

.usage-legend span {
  display: flex;
  align-items: center;
  gap: 6px
}

.usage-legend i {
  display: inline-block;
  width: 20px;
  height: 7px;
  border-radius: 99px
}

@media(max-width:1100px) {
  .usage-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .usage-insight-grid {
    grid-template-columns: 1fr
  }
}

@media(max-width:640px) {
  .pwa-statistics-page .page-head {
    align-items: stretch
  }

  .period-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%
  }

  .period-switch .btn {
    width: 100%
  }

  .usage-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px
  }

  .usage-summary-grid .stat-card {
    min-height: 132px;
    padding: 15px
  }

  .usage-summary-grid .stat-card strong {
    font-size: 23px
  }

  .usage-summary-grid .stat-card span {
    font-size: 10px
  }

  .usage-bar-row {
    grid-template-columns: 68px minmax(0, 1fr) 36px;
    gap: 7px
  }

  .usage-bars {
    padding: 16px 13px
  }

  .usage-legend {
    justify-content: flex-start;
    padding: 0 13px 16px
  }

  .player-transport {
    gap: 5px
  }

  .player-transport button {
    min-width: 0;
    min-height: 46px;
    padding: 6px;
    font-size: 11px
  }

  .player-transport .player-toggle {
    min-height: 56px;
    font-size: 19px
  }
}

@media print {

  .player-transport,
  .period-switch {
    display: none !important
  }
}

/* v1.8 mobile media grids, homepage carousels, editable hero and persistent audio */
.hero.hero-has-image {
  background-image: linear-gradient(105deg, rgba(7, 34, 31, .94) 0%, rgba(12, 52, 47, .82) 48%, rgba(8, 31, 29, .7) 100%), var(--hero-background);
  background-position: center;
  background-size: cover
}

.hero-background-setting {
  grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr)
}

.hero-background-preview {
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 170px;
  border-radius: 14px;
  background: linear-gradient(145deg, #123f39, #0b2825);
  color: #dceae6;
  font-weight: 700
}

.hero-background-preview img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  max-height: 260px;
  object-fit: cover
}

.home-slider {
  display: grid;
  grid-auto-columns: calc((100% - 54px)/4);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding: 3px 3px 15px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(20, 108, 93, .32) transparent;
  overscroll-behavior-inline: contain
}

.home-slider>* {
  min-width: 0;
  scroll-snap-align: start
}

.home-slide-card {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  padding: 0;
  transition: transform .2s, box-shadow .2s
}

.home-slide-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(23, 60, 54, .13)
}

.home-thumbnail {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: linear-gradient(145deg, #123f39, #0b2825);
  color: #fff
}

.home-thumbnail>img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.home-thumbnail>span {
  display: grid;
  place-items: center;
  min-width: 64px;
  min-height: 64px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 20px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font: 700 34px 'Fraunces', serif;
  backdrop-filter: blur(8px)
}

.home-thumbnail>span b {
  display: block;
  font-size: 32px;
  line-height: 1
}

.home-thumbnail.module-audio img {
  width: 74px;
  height: 74px;
  border-radius: 19px;
  object-fit: contain;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .22)
}

.home-thumbnail.module-audio>span {
  position: absolute;
  right: 14px;
  bottom: 12px;
  min-width: 42px;
  min-height: 42px;
  border-radius: 50%;
  font: 800 17px sans-serif;
  background: #e9b949;
  color: #173c36
}

.home-thumbnail.module-explore {
  background: radial-gradient(circle at 28% 20%, rgba(233, 185, 73, .3), transparent 28%), linear-gradient(145deg, #17695d, #0b302c)
}

.home-thumbnail.archive-theme {
  background: var(--archive-theme, linear-gradient(145deg, #17695d, #0b302c))
}

.home-thumbnail.archive-theme-1 {
  --archive-theme: radial-gradient(circle at 78% 18%, rgba(240, 195, 89, .44), transparent 29%), linear-gradient(145deg, #17695d, #0b302c)
}

.home-thumbnail.archive-theme-2 {
  --archive-theme: radial-gradient(circle at 20% 18%, rgba(126, 202, 235, .38), transparent 30%), linear-gradient(145deg, #286987, #17384f)
}

.home-thumbnail.archive-theme-3 {
  --archive-theme: radial-gradient(circle at 80% 20%, rgba(244, 176, 207, .36), transparent 30%), linear-gradient(145deg, #8c5378, #512e56)
}

.home-thumbnail.archive-theme-4 {
  --archive-theme: radial-gradient(circle at 20% 15%, rgba(255, 206, 145, .4), transparent 30%), linear-gradient(145deg, #ad6548, #71372f)
}

.home-thumbnail.archive-theme-5 {
  --archive-theme: radial-gradient(circle at 82% 18%, rgba(250, 226, 126, .4), transparent 28%), linear-gradient(145deg, #81783c, #454b2b)
}

.home-thumbnail.archive-theme-6 {
  --archive-theme: radial-gradient(circle at 18% 18%, rgba(205, 192, 255, .4), transparent 30%), linear-gradient(145deg, #6b5a91, #3f3962)
}

.home-thumbnail>img.archive-module-icon {
  position: relative;
  z-index: 2;
  width: 74px;
  height: 74px;
  border-radius: 19px;
  background: rgba(255, 255, 255, .09);
  object-fit: contain;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .22)
}

.home-thumbnail>.archive-module-watermark {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: max-content;
  transform: translate(-50%, -50%) rotate(-8deg);
  color: #fff;
  font: 900 clamp(31px, 4.5vw, 58px)/1 'DM Sans', sans-serif;
  letter-spacing: .11em;
  opacity: .1;
  white-space: nowrap
}

.home-thumbnail.module-birthday {
  background: linear-gradient(145deg, #b54e75, #7e3150)
}

.home-thumbnail.module-anniversary {
  background: linear-gradient(145deg, #bd7b34, #844e1d)
}

.home-thumbnail.module-gallery b {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  border-radius: 99px;
  background: rgba(10, 31, 29, .82);
  font-size: 10px
}

.home-thumbnail.module-event>span {
  border: 0;
  background: transparent;
  color: #e9b949;
  font: 800 13px 'DM Sans', sans-serif;
  text-transform: uppercase
}

.home-thumbnail.module-event>span b {
  color: #fff;
  font: 700 44px/1 'Fraunces', serif
}

.home-slide-copy {
  display: flex;
  min-height: 190px;
  flex: 1;
  flex-direction: column;
  padding: 18px
}

.home-slide-copy small {
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase
}

.home-slide-copy h2,
.home-slide-copy h3 {
  margin: 8px 0 6px;
  font: 700 22px/1.15 'Fraunces', serif
}

.home-slide-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3
}

.home-slide-copy strong {
  margin-top: auto;
  color: var(--primary);
  font-size: 12px
}

.home-view-all-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 365px;
  flex-direction: column;
  padding: 26px;
  text-align: center;
  color: #fff;
  background: radial-gradient(circle at 30% 20%, rgba(233, 185, 73, .22), transparent 28%), linear-gradient(145deg, #123f39, #0b2825)
}

.home-view-all-card>span {
  font-size: 42px
}

.home-view-all-card h3 {
  margin: 12px 0 5px;
  font: 700 25px 'Fraunces', serif
}

.home-view-all-card p {
  margin: 0 0 20px;
  color: #bfd3ce
}

.home-view-all-card strong {
  color: #e9b949
}

.explore-page-grid,
.occasion-archive-grid,
.announcement-public-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px
}

.occasion-archive-section+.occasion-archive-section {
  margin-top: 42px
}

.announcement-public-card {
  display: flex;
  flex-direction: column;
  padding: 22px
}

.announcement-public-card h2 {
  margin: 10px 0;
  font: 700 25px 'Fraunces', serif
}

.announcement-public-card p {
  color: var(--muted)
}

.announcement-public-card small {
  margin-top: auto
}

.announcement-detail {
  max-width: 850px;
  margin: 20px auto;
  padding: clamp(24px, 6vw, 64px)
}

.announcement-detail h1 {
  margin: 14px 0 25px;
  font: 700 clamp(35px, 6vw, 64px)/1.05 'Fraunces', serif
}

.announcement-detail-body {
  font-size: 1.08rem;
  line-height: 1.8
}

.persistent-audio-navigation {
  position: fixed;
  z-index: 8900;
  inset: 0 0 86px;
  width: 100%;
  height: calc(100% - 86px);
  border: 0;
  background: #f4f6f5
}

.persistent-audio-dock {
  position: fixed;
  z-index: 9000;
  right: 16px;
  bottom: 12px;
  left: 16px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 19px;
  background: rgba(12, 42, 39, .97);
  color: #fff;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .3);
  backdrop-filter: blur(18px)
}

.persistent-audio-dock[hidden] {
  display: none
}

.persistent-audio-art {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #e9b949;
  color: #173c36;
  font-size: 24px
}

.persistent-audio-copy {
  display: grid;
  min-width: 0
}

.persistent-audio-copy small {
  color: #a9c2bc;
  font-size: 10px
}

.persistent-audio-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.persistent-audio-actions {
  display: flex;
  align-items: center;
  gap: 6px
}

.persistent-audio-actions button {
  min-width: 42px;
  height: 42px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-weight: 800
}

.persistent-audio-actions .persistent-audio-toggle {
  border: 0;
  border-radius: 50%;
  background: #e9b949;
  color: #173c36;
  font-size: 17px
}

html[data-audio-active="true"] body>.mobile-nav {
  display: none
}

.event-card-image {
  display: block;
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 0;
  background: #e4ece7
}

.event-card-image img {
  display: block
}

@media(max-width:1100px) {
  .home-slider {
    grid-auto-columns: calc((100% - 36px)/3)
  }

  .explore-page-grid,
  .occasion-archive-grid,
  .announcement-public-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(max-width:760px) {
  .hero-background-setting {
    grid-template-columns: 1fr
  }

  .home-slider {
    grid-auto-columns: calc((100% - 10px)/2);
    gap: 10px;
    margin-inline: -8px;
    padding-inline: 8px
  }

  .home-slide-copy {
    min-height: 154px;
    padding: 11px
  }

  .home-slide-copy h2,
  .home-slide-copy h3 {
    font-size: clamp(14px, 4.1vw, 18px)
  }

  .home-slide-copy p {
    font-size: 11px;
    -webkit-line-clamp: 2
  }

  .home-slide-copy small,
  .home-slide-copy strong {
    font-size: 9px
  }

  .home-thumbnail>span {
    min-width: 48px;
    min-height: 48px;
    border-radius: 15px;
    font-size: 25px
  }

  .home-thumbnail.module-audio img {
    width: 54px;
    height: 54px;
    border-radius: 14px
  }

  .home-thumbnail.module-audio>span {
    right: 8px;
    bottom: 8px;
    min-width: 32px;
    min-height: 32px;
    font-size: 13px
  }

  .home-thumbnail.module-event>span b {
    font-size: 34px
  }

  .home-view-all-card {
    min-height: 285px;
    padding: 14px
  }

  .home-view-all-card>span {
    font-size: 34px
  }

  .home-view-all-card h3 {
    font-size: 19px
  }

  .home-view-all-card p {
    font-size: 11px
  }

  .event-card-grid,
  .event-card-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px
  }

  .event-card-grid.compact .event-card-image,
  .event-card-image {
    aspect-ratio: 4/3
  }

  .event-card-body {
    padding: 10px
  }

  .event-card h3,
  .event-card-grid.compact .event-card h3 {
    margin: 6px 0 4px;
    font-size: clamp(14px, 4.2vw, 18px)
  }

  .event-card-meta {
    display: block;
    font-size: 8px
  }

  .event-card-meta .badge {
    display: none
  }

  .event-card-body>p {
    font-size: 10px
  }

  .event-card-description {
    display: none
  }

  .event-card-actions {
    gap: 4px;
    padding-top: 8px
  }

  .event-card-actions .btn {
    min-width: 0;
    padding: 6px 5px;
    font-size: 9px
  }

  .event-card-image>span {
    font-size: 10px
  }

  .event-card-image>span b {
    font-size: 34px
  }

  .explore-page-grid,
  .occasion-archive-grid,
  .announcement-public-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px
  }

  .announcement-public-card {
    padding: 14px
  }

  .announcement-public-card h2 {
    font-size: 18px
  }

  .announcement-public-card p {
    font-size: 12px
  }

  .persistent-audio-navigation {
    bottom: 86px;
    height: calc(100% - 86px)
  }

  .persistent-audio-dock {
    right: 8px;
    bottom: calc(6px + env(safe-area-inset-bottom));
    left: 8px;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 7px;
    min-height: 72px;
    padding: 7px;
    border-radius: 17px
  }

  .persistent-audio-art {
    width: 38px;
    height: 38px
  }

  .persistent-audio-copy strong {
    font-size: 12px
  }

  .persistent-audio-actions {
    gap: 3px
  }

  .persistent-audio-actions button {
    min-width: 35px;
    height: 36px;
    padding: 0 5px;
    font-size: 10px
  }

  .persistent-audio-actions [data-persistent-audio-player] {
    display: none
  }
}

@media(max-width:390px) {
  .persistent-audio-actions [data-persistent-audio-skip] {
    display: none
  }

  .persistent-audio-dock {
    grid-template-columns: 36px minmax(0, 1fr) auto
  }

  .home-slide-copy {
    padding: 9px
  }

  .event-card-actions .btn {
    font-size: 8px
  }
}

@media print {

  .persistent-audio-dock,
  .persistent-audio-navigation {
    display: none !important
  }
}

/* v1.8.1 event media recovery, desktop header and responsive occasions */
.topbar-title {
  display: flex;
  min-width: 0;
  flex-direction: column
}

.topbar-title strong,
.topbar-title small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.event-card-image img,
.home-thumbnail.module-event img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #e4ece7
}

.home-occasion-tables,
.occasion-page-tables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start
}

.occasion-table-card {
  min-width: 0;
  overflow: hidden
}

.occasion-table-card>header {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(145deg, #fbfcfb, #eef5f1)
}

.occasion-table-card>header h2,
.occasion-table-card>header h3 {
  margin: 3px 0 0;
  font: 700 clamp(20px, 2.3vw, 27px)/1.15 'Fraunces', serif
}

.occasion-table-card>header small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase
}

.occasion-table-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 14px;
  color: #fff;
  font-size: 22px
}

.occasion-table-icon.birthday {
  background: linear-gradient(145deg, #b54e75, #7e3150)
}

.occasion-table-icon.anniversary {
  background: linear-gradient(145deg, #bd7b34, #844e1d)
}

.occasion-table-card .table-responsive {
  max-width: 100%;
  overflow-x: auto
}

.occasion-table {
  width: 100%;
  margin: 0
}

.occasion-table th:first-child,
.occasion-table td:first-child {
  width: 92px;
  white-space: nowrap
}

.occasion-table td strong {
  display: block;
  min-width: 0
}

.occasion-table time {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap
}

.occasion-page-tables {
  gap: 22px
}

.occasion-list {
  display: grid;
  gap: 12px;
  padding: 16px 16px 18px
}

.occasion-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 14px;
  border: 1px solid rgba(21, 77, 61, .08);
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff, #f1f8f4);
  box-shadow: 0 12px 28px rgba(21, 77, 61, .06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  animation: occasionItemReveal .42s ease both;
  overflow: hidden
}

.occasion-item::before {
  content: "";
  position: absolute;
  inset: auto -20% -28% auto;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
  filter: blur(10px);
  pointer-events: none
}

.occasion-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(21, 77, 61, .1);
  border-color: rgba(21, 77, 61, .14)
}

.occasion-item-birthday {
  background: linear-gradient(135deg, #fff7fb 0%, #fff0f5 38%, #f7eef2 100%)
}

.occasion-item-anniversary {
  background: linear-gradient(135deg, #fffaf3 0%, #fef3e2 38%, #f5efe6 100%)
}

.occasion-date-badge {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 94px;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(145deg, #1a7a65, #113f3a);
  color: #fff;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 22px rgba(17, 63, 58, .23)
}

.occasion-date-badge span {
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .78
}

.occasion-date-badge strong {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3
}

.occasion-details {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px
}

.occasion-details small {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700
}

.occasion-details h3 {
  margin: 0;
  color: var(--heading);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere
}

.occasion-empty {
  padding: 18px 6px;
  color: var(--muted);
  text-align: center;
  font-weight: 600
}

@keyframes occasionItemReveal {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.985)
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1)
  }
}

@media(min-width:861px) {

  .app-shell,
  .sidebar,
  .app-main {
    transition: width .22s ease, grid-template-columns .22s ease, margin .22s ease
  }

  .sidebar {
    position: fixed !important;
    z-index: 999 !important;
    pointer-events: auto !important
  }

  .sidebar-nav {
    position: relative !important;
    z-index: 1000 !important;
    pointer-events: auto !important
  }

  .sidebar-nav a {
    position: relative !important;
    z-index: 1001 !important;
    pointer-events: auto !important;
    cursor: pointer !important
  }

  .app-main {
    position: relative;
    z-index: 1
  }

  .topbar {
    justify-content: flex-start;
    gap: 14px;
    z-index: 40 !important;
    pointer-events: auto !important
  }

  .app-desktop-back,
  .desktop-back-row {
    position: relative;
    z-index: 39 !important;
    pointer-events: auto !important
  }

  .header-back-button {
    position: relative;
    z-index: 41 !important;
    pointer-events: auto !important
  }

  .sidebar-backdrop {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important
  }

  .menu-button {
    display: grid;
    flex: 0 0 auto
  }

  .topbar-title {
    max-width: min(520px, 48vw)
  }

  .topbar-actions {
    margin-left: auto
  }

  html.sidebar-collapsed .app-shell {
    grid-template-columns: 82px minmax(0, 1fr)
  }

  html.sidebar-collapsed .sidebar {
    width: 82px;
    padding-inline: 10px
  }

  html.sidebar-collapsed .sidebar-brand {
    justify-content: center;
    padding-inline: 0
  }

  html.sidebar-collapsed .sidebar-brand>span:last-child,
  html.sidebar-collapsed .sidebar-nav a>span,
  html.sidebar-collapsed .sidebar-nav>.nav-label,
  html.sidebar-collapsed .sidebar-footer {
    display: none
  }

  html.sidebar-collapsed .sidebar-nav a {
    justify-content: center;
    padding-inline: 10px
  }
}

.offline-banner:not(.show) {
  pointer-events: none !important;
  visibility: hidden !important;
  display: none !important;
}

.pwa-launch-screen.complete,
.pwa-launch-screen:not(.is-loading) {
  pointer-events: none !important;
  visibility: hidden !important;
  display: none !important;
}

.hero:after,
.hero::after,
.home-hero:after,
.home-hero::after {
  pointer-events: none !important;
}

@media(max-width:980px) {
  .occasion-page-tables {
    grid-template-columns: 1fr
  }
}

@media(max-width:760px) {
  .home-occasion-tables {
    grid-template-columns: 1fr;
    gap: 12px
  }

  .occasion-table-card>header {
    padding: 14px 15px
  }

  .occasion-table-card .data-table th,
  .occasion-table-card .data-table td {
    padding: 10px 12px
  }

  .occasion-table th:first-child,
  .occasion-table td:first-child {
    width: 76px
  }
}

@media(max-width:390px) {

  .occasion-table-card .data-table th,
  .occasion-table-card .data-table td {
    padding: 9px 8px;
    font-size: 11px
  }

  .occasion-table th:first-child,
  .occasion-table td:first-child {
    width: 66px
  }
}

@media print {

  .home-occasion-tables,
  .occasion-page-tables {
    grid-template-columns: 1fr
  }
}

/* v1.8.2 member reports, Obligation register and mobile event thumbnails */
.report-filter-card {
  overflow: visible
}

.report-summary-grid .stat-card strong,
.obligation-summary-grid .stat-card strong {
  font-size: clamp(25px, 3vw, 38px)
}

.report-chart-grid {
  align-items: stretch
}

.report-chart-card {
  min-width: 0;
  overflow: hidden
}

.report-bars {
  display: grid;
  gap: 14px;
  padding: 20px
}

.report-bars-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr))
}

.report-bar-row {
  display: grid;
  gap: 7px
}

.report-bar-row>div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px
}

.report-bar-row>div span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted)
}

.report-bar-row>i {
  display: block;
  overflow: hidden;
  height: 9px;
  border-radius: 99px;
  background: #e8efeb
}

.report-bar-row>i>b {
  display: block;
  min-width: 3px;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #4f9d86)
}

.report-results-card {
  overflow: hidden
}

.report-table {
  min-width: 1180px
}

.report-table td small {
  display: block;
  margin-top: 3px;
  color: var(--muted)
}

.obligation-result-head {
  border-top: 1px solid var(--line)
}

.obligation-table {
  min-width: 1240px
}

.obligation-table td {
  vertical-align: top
}

.obligation-table td:nth-child(2),
.obligation-table td:nth-child(4),
.obligation-table td:nth-child(5) {
  max-width: 230px;
  white-space: normal;
  overflow-wrap: anywhere
}

.historical-obligation {
  background: #fafbf9
}

.historical-obligation>td:not(:first-child):not(:last-child) {
  color: #6d7d78
}

.event-card-image img,
.home-thumbnail.module-event img {
  visibility: visible !important;
  opacity: 1 !important
}

@media(max-width:980px) {
  .report-chart-grid {
    grid-template-columns: 1fr
  }

  .report-bars-wide {
    grid-template-columns: 1fr
  }
}

@media(max-width:760px) {

  .report-summary-grid,
  .obligation-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px
  }

  .report-summary-grid .stat-card,
  .obligation-summary-grid .stat-card {
    min-height: 128px;
    padding: 15px
  }

  .report-summary-grid .stat-card span,
  .obligation-summary-grid .stat-card span {
    font-size: 10px
  }

  .report-table,
  .obligation-table {
    min-width: 0
  }

  .obligation-table td:nth-child(2),
  .obligation-table td:nth-child(4),
  .obligation-table td:nth-child(5) {
    max-width: none
  }

  .obligation-result-head {
    align-items: flex-start
  }

  .member-report-page .form-footer {
    position: static
  }
}

@media(max-width:390px) {

  .report-summary-grid .stat-card,
  .obligation-summary-grid .stat-card {
    min-height: 118px
  }

  .report-summary-grid .stat-card strong,
  .obligation-summary-grid .stat-card strong {
    font-size: 21px
  }

  .report-bars {
    padding: 15px 13px
  }
}

@media print {

  .member-report-page .content,
  .obligation-register-page .content {
    padding: 0
  }

  .member-report-page .card,
  .obligation-register-page .card {
    break-inside: avoid;
    box-shadow: none
  }

  .member-report-page .report-chart-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }

  .report-bars-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .report-table,
  .obligation-table {
    min-width: 0;
    font-size: 8pt
  }

  .report-table th,
  .report-table td,
  .obligation-table th,
  .obligation-table td {
    padding: 5px
  }

  .report-table .avatar,
  .obligation-table .avatar {
    display: none
  }

  .report-table .member-cell,
  .obligation-table .member-cell {
    display: block
  }
}

/* v1.8.3 mobile event theme thumbnails */
.event-mobile-theme {
  position: relative;
  isolation: isolate;
  background: var(--event-theme, linear-gradient(145deg, #17695d, #0b302c))
}

.event-mobile-theme.event-theme-1 {
  --event-theme: radial-gradient(circle at 78% 18%, rgba(240, 195, 89, .42), transparent 28%), linear-gradient(145deg, #17695d, #0b302c)
}

.event-mobile-theme.event-theme-2 {
  --event-theme: radial-gradient(circle at 20% 18%, rgba(111, 181, 214, .42), transparent 30%), linear-gradient(145deg, #24577a, #17334f)
}

.event-mobile-theme.event-theme-3 {
  --event-theme: radial-gradient(circle at 80% 20%, rgba(232, 159, 190, .38), transparent 30%), linear-gradient(145deg, #864b73, #542d56)
}

.event-mobile-theme.event-theme-4 {
  --event-theme: radial-gradient(circle at 20% 15%, rgba(255, 199, 133, .4), transparent 30%), linear-gradient(145deg, #a75a42, #70372f)
}

.event-mobile-theme.event-theme-5 {
  --event-theme: radial-gradient(circle at 82% 18%, rgba(244, 218, 119, .38), transparent 28%), linear-gradient(145deg, #77733b, #474b2c)
}

.event-mobile-theme.event-theme-6 {
  --event-theme: radial-gradient(circle at 18% 18%, rgba(193, 180, 245, .38), transparent 30%), linear-gradient(145deg, #66558c, #403963)
}

.event-mobile-theme>.event-mobile-fallback {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: grid !important;
  grid-template-rows: 1fr auto auto;
  place-items: initial;
  align-content: end;
  min-width: 0;
  min-height: 0;
  padding: 14px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  text-transform: uppercase
}

.event-mobile-theme>.event-mobile-fallback em {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max-content;
  transform: translate(-50%, -50%) rotate(-8deg);
  color: #fff;
  font: 900 clamp(32px, 8vw, 72px)/1 'DM Sans', sans-serif;
  font-style: normal;
  letter-spacing: .11em;
  opacity: .12;
  white-space: nowrap
}

.event-mobile-theme>.event-mobile-fallback b {
  position: relative;
  z-index: 1;
  display: block;
  color: #fff;
  font: 700 clamp(34px, 7vw, 58px)/.9 'Fraunces', serif;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .18)
}

.event-mobile-theme>.event-mobile-fallback small {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, .82);
  font: 800 10px/1.2 'DM Sans', sans-serif;
  letter-spacing: .08em
}

.event-mobile-theme>.event-mobile-fallback>.archive-module-icon {
  position: absolute;
  z-index: 2;
  top: 13px;
  right: 13px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .09);
  object-fit: contain;
  box-shadow: 0 9px 25px rgba(0, 0, 0, .2)
}

.event-mobile-theme>.event-mobile-fallback>.archive-module-icon,
.event-mobile-theme>.event-mobile-fallback>.event-tile-brand-icon {
  display: none !important
}

.event-mobile-theme>.event-mobile-fallback:after {
  content: '';
  position: absolute;
  z-index: 3;
  top: 13px;
  right: 13px;
  display: block;
  width: 52px;
  height: 52px;
  border: 4px solid rgba(255, 255, 255, .88);
  border-radius: 14px;
  background-color: #fff;
  background-image: var(--ebcc-brand-icon, url('../icon-192.png'));
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  box-shadow: 0 9px 25px rgba(0, 0, 0, .24);
  opacity: 1;
  visibility: visible
}

.event-mobile-theme.has-event-image:not(.event-image-failed)>.event-mobile-fallback {
  display: none !important
}

.event-mobile-theme.event-image-failed>img {
  display: none !important
}

.event-mobile-theme.event-image-failed>.event-mobile-fallback {
  display: grid !important
}

@media(max-width:760px) {
  .event-mobile-theme.has-event-image:not(.event-image-failed)>img {
    display: block !important
  }

  .event-mobile-theme.has-event-image:not(.event-image-failed)>.event-mobile-fallback {
    display: none !important
  }

  .event-card-image.event-mobile-theme>.event-mobile-fallback {
    padding: 10px
  }

  .event-card-image.event-mobile-theme>.event-mobile-fallback em {
    font-size: clamp(27px, 10vw, 42px);
    opacity: .11
  }

  .event-card-image.event-mobile-theme>.event-mobile-fallback b {
    font-size: clamp(30px, 10vw, 43px)
  }

  .event-card-image.event-mobile-theme>.event-mobile-fallback small {
    margin-top: 5px;
    font-size: 8px
  }

  .home-thumbnail.module-event.event-mobile-theme>.event-mobile-fallback {
    padding: 10px
  }

  .home-thumbnail.module-event.event-mobile-theme>.event-mobile-fallback em {
    font-size: clamp(25px, 9vw, 38px);
    opacity: .11
  }

  .home-thumbnail.module-event.event-mobile-theme>.event-mobile-fallback b {
    font-size: clamp(27px, 9vw, 38px)
  }

  .home-thumbnail.module-event.event-mobile-theme>.event-mobile-fallback small {
    margin-top: 5px;
    font-size: 8px
  }

  .home-thumbnail>img.archive-module-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px
  }

  .home-thumbnail>.archive-module-watermark {
    font-size: clamp(25px, 9vw, 38px);
    opacity: .1
  }

  .event-mobile-theme>.event-mobile-fallback>.archive-module-icon {
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    border-radius: 11px
  }

  .event-mobile-theme>.event-mobile-fallback:after {
    top: 8px;
    right: 8px;
    width: 42px;
    height: 42px;
    border-width: 3px;
    border-radius: 12px
  }
}

/* Modern Celebration List & Occasion Layout */
.occasion-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 6px 0;
}

.occasion {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-bottom: 0;
  border-radius: 14px;
  background: var(--surface-soft, #f8fbfa);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.occasion:hover {
  transform: translateY(-2px);
  background-color: var(--surface-tint, #eef6f3);
  box-shadow: 0 6px 18px rgba(23, 60, 54, 0.07);
}

.occasion .avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  color: #fff;
  font-weight: 750;
  font-size: 13px;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.occasion .avatar-birthday {
  background: linear-gradient(135deg, #b54e75, #7e3150);
}

.occasion .avatar-anniversary {
  background: linear-gradient(135deg, #bd7b34, #844e1d);
  font-size: 19px;
}

.occasion span:nth-of-type(2) {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.occasion span strong {
  font-size: 14px;
  font-weight: 700;
  color: #173c36;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  line-height: 1.25;
}

.occasion span small {
  font-size: 11px;
  color: var(--muted, #61736d);
  margin-top: 2px;
}

.occasion time {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(20, 108, 93, 0.08);
  color: var(--primary, #146c5d);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(20, 108, 93, 0.06);
}

/* Public departments grid overrides for mobile */
.public-department-cover {
  aspect-ratio: 16/9 !important;
  height: auto !important;
  background: var(--surface-soft, #f8fbfa) !important;
  border-bottom: 1px solid var(--line, #eef1ef) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.public-department-card h2 {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin: 8px 0 !important;
}

@media (max-width: 760px) {

  .public-department-grid,
  .department-folder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .public-department-card h2 {
    font-size: 18px !important;
  }
}

@media (max-width: 480px) {

  .public-department-grid,
  .department-folder-grid {
    gap: 8px !important;
  }

  .public-department-card h2 {
    font-size: 14px !important;
  }
}

/* Photo lightbox dialog modal override matching department modal style */
.photo-lightbox {
  max-width: 90vw !important;
  width: 800px !important;
  height: auto !important;
  max-height: 90vh !important;
  border-radius: 16px !important;
  border: 1px solid var(--line, #eef1ef) !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2) !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #000 !important;
  margin: auto !important;
}

.photo-lightbox figure {
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 300px !important;
  position: relative !important;
}

.photo-lightbox img {
  max-width: 100% !important;
  max-height: 80vh !important;
  object-fit: contain !important;
  display: block !important;
  margin: auto !important;
}

.lightbox-close {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  z-index: 10 !important;
  background: rgba(0, 0, 0, 0.5) !important;
  color: #fff !important;
  border: none !important;
  cursor: pointer !important;
}

.lightbox-prev,
.lightbox-next {
  background: rgba(0, 0, 0, 0.4) !important;
  color: #fff !important;
  border: none !important;
  cursor: pointer !important;
}

.photo-lightbox figcaption {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  background: rgba(0, 0, 0, 0.6) !important;
  color: #fff !important;
  padding: 8px 16px !important;
  font-size: 13px !important;
  backdrop-filter: blur(4px) !important;
  text-align: center !important;
}

/* Reduce audio player title font sizes */
.live-player-card .player-content h2 {
  font-size: clamp(20px, 3.5vw, 28px) !important;
  line-height: 1.25 !important;
  margin-bottom: 16px !important;
}

.public-layout .page-head h1,
.app-layout .page-head h1 {
  font-size: clamp(24px, 4vw, 34px) !important;
}

/* Notification Bell States */
.icon-button#notificationPrompt {
  position: relative;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease, opacity .25s ease;
}

/* SUBSCRIBED state - green / active / solid */
.icon-button#notificationPrompt[data-push-state="subscribed"] {
  background: linear-gradient(145deg, #e8f5ee, #d6ece0);
  color: #176346;
  border-color: #b6d8c3;
  box-shadow: inset 0 0 0 1px rgba(32, 131, 94, .12), 0 4px 14px rgba(32, 131, 94, .1);
}

.icon-button#notificationPrompt[data-push-state="subscribed"]::after {
  content: '✓';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #20835e;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  line-height: 14px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}

/* UNSUBSCRIBED (opt-out) state - muted / faded / red tinge */
.icon-button#notificationPrompt[data-push-state="opted-out"] {
  background: #fff;
  color: #8f6466;
  border-color: #e6d3d4;
  opacity: .72;
}

.icon-button#notificationPrompt[data-push-state="opted-out"]::after {
  content: '✕';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #c84b4b;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  line-height: 14px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}

/* UNSUBSCRIBED (default / not-yet-prompted) - soft slow pulse/blink to encourage action */
.icon-button#notificationPrompt[data-push-state="not-subscribed"],
.icon-button#notificationPrompt:not([data-push-state]) {
  background: #fff;
  color: #8a7a1d;
  border-color: #ead9a3;
}

.icon-button#notificationPrompt[data-push-state="not-subscribed"]::after,
.icon-button#notificationPrompt:not([data-push-state])::after {
  content: '';
  position: absolute;
  top: 5px;
  right: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e9b949;
  box-shadow: 0 0 0 2px #fff, 0 0 0 0 rgba(233, 185, 73, .55);
  animation: notifBellPulse 2.2s ease-in-out infinite;
}

@keyframes notifBellPulse {

  0%,
  100% {
    opacity: .45;
    transform: scale(.9);
    box-shadow: 0 0 0 2px #fff, 0 0 0 0 rgba(233, 185, 73, .55);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 0 0 2px #fff, 0 0 0 6px rgba(233, 185, 73, 0);
  }
}

/* DISABLED state - browser denied permission */
.icon-button#notificationPrompt[data-push-state="denied"] {
  background: #f6f6f6;
  color: #929292;
  border-color: #dcdcdc;
  cursor: not-allowed;
  opacity: .6;
}

.icon-button#notificationPrompt[data-push-state="denied"]::after {
  content: '⊘';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #999;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  line-height: 14px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}

.icon-button#notificationPrompt:hover {
  transform: translateY(-1px);
}

/* ============================================================
   OneSignal Slidedown — Modern EBCAPPS Theme Overrides
   ============================================================ */
/* Backdrop */
#onesignal-slidedown-overlay,
.onesignal-slidedown-overlay {
  background: rgba(12, 28, 24, 0.48) !important;
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
  display: none !important;
  transition: opacity .3s ease !important;
}

#onesignal-slidedown-overlay[style*="visibility: visible"],
.onesignal-slidedown-overlay[style*="visibility: visible"] {
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
  display: block !important;
}

/* Slidedown container — modern card look */
#onesignal-slidedown-container,
.onesignal-slidedown-container {
  padding: 0 !important;
  pointer-events: none !important;
}

#onesignal-slidedown-dialog,
.onesignal-slidedown-dialog {
  background: #ffffff !important;
  border-radius: 22px 22px 0 0 !important;
  box-shadow: 0 -20px 60px rgba(12, 28, 24, 0.28) !important;
  border: none !important;
  overflow: hidden !important;
  max-width: 560px !important;
  margin: 0 auto !important;
  transform: translateY(-50px) scale(.98) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
  display: none !important;
  transition: transform .38s cubic-bezier(.2, .9, .25, 1.05), opacity .28s ease !important;
}

#onesignal-slidedown-dialog[style*="visibility: visible"],
.onesignal-slidedown-dialog[style*="visibility: visible"] {
  transform: translateY(0) scale(1) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
  display: block !important;
}

@media (min-width: 720px) {

  #onesignal-slidedown-dialog[style*="visibility: visible"],
  .onesignal-slidedown-dialog[style*="visibility: visible"] {
    border-radius: 20px !important;
    margin: 28px auto 0 !important;
  }
}

/* Header strip */
#onesignal-slidedown-dialog #slidedown-header,
.onesignal-slidedown-dialog .slidedown-header {
  background: linear-gradient(135deg, #173c36 0%, #20835e 100%) !important;
  color: #fff !important;
  padding: 22px 22px 20px 22px !important;
}

#onesignal-slidedown-dialog #slidedown-header h4,
#onesignal-slidedown-dialog #slidedown-header h3,
.onesignal-slidedown-dialog .slidedown-header h4,
.onesignal-slidedown-dialog .slidedown-header h3 {
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 18px !important;
  margin: 0 0 4px 0 !important;
  letter-spacing: -.2px !important;
}

#onesignal-slidedown-dialog #slidedown-header span,
.onesignal-slidedown-dialog .slidedown-header span {
  color: rgba(255, 255, 255, .78) !important;
  font-size: 13px !important;
}

#onesignal-slidedown-dialog #slidedown-header .bell,
.onesignal-slidedown-dialog .slidedown-header .bell {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .2));
}

/* Body */
#onesignal-slidedown-dialog .slidedown-body,
.onesignal-slidedown-dialog .slidedown-body {
  padding: 18px 22px 14px !important;
}

#onesignal-slidedown-dialog .slidedown-body-message,
.onesignal-slidedown-dialog .slidedown-body-message {
  color: #2a3a33 !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}

/* Category tags */
.os-category,
#onesignal-slidedown-dialog .os-category,
.onesignal-slidedown-dialog label[class*="category"] {
  display: flex !important;
  align-items: center !important;
  background: #f4f8f5 !important;
  border: 1.5px solid #e2ece5 !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
  margin: 8px 0 !important;
  transition: all .2s ease !important;
  cursor: pointer !important;
}

.os-category:hover,
#onesignal-slidedown-dialog .os-category:hover {
  border-color: #bfe0cc !important;
  background: #ecf6ef !important;
}

.os-category input[type="checkbox"],
#onesignal-slidedown-dialog input[type="checkbox"] {
  accent-color: #20835e !important;
  width: 18px !important;
  height: 18px !important;
  margin-right: 12px !important;
  border-radius: 5px !important;
}

.os-category input[type="checkbox"]:checked,
#onesignal-slidedown-dialog input[type="checkbox"]:checked {
  background: #20835e !important;
}

/* Footer with buttons */
#onesignal-slidedown-dialog .slidedown-footer,
.onesignal-slidedown-dialog .slidedown-footer {
  border-top: 1px solid #eef1ef !important;
  padding: 14px 22px 20px !important;
  margin-top: 8px !important;
  display: flex !important;
  gap: 10px !important;
  flex-direction: row !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  background: #fff !important;
}

/* Buttons */
#onesignal-slidedown-dialog button,
.onesignal-slidedown-dialog button {
  border-radius: 12px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 12px 22px !important;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease !important;
  cursor: pointer !important;
  border: none !important;
  box-shadow: none !important;
}

#onesignal-slidedown-dialog button:hover,
.onesignal-slidedown-dialog button:hover {
  transform: translateY(-1px);
}

#onesignal-slidedown-dialog button[id*="allow"],
#onesignal-slidedown-dialog button[class*="allow"],
#onesignal-slidedown-dialog .primary,
.onesignal-slidedown-dialog button[class*="positive"],
.onesignal-slidedown-dialog .primary-action {
  background: linear-gradient(135deg, #173c36 0%, #20835e 100%) !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(32, 131, 94, .25) !important;
}

#onesignal-slidedown-dialog button.primary:hover,
.onesignal-slidedown-dialog button[class*="positive"]:hover {
  box-shadow: 0 8px 24px rgba(32, 131, 94, .35) !important;
}

#onesignal-slidedown-dialog button[id*="cancel"],
#onesignal-slidedown-dialog button[class*="cancel"],
#onesignal-slidedown-dialog .secondary,
.onesignal-slidedown-dialog button[class*="negative"],
.onesignal-slidedown-dialog .secondary-action {
  background: #f2f4f3 !important;
  color: #556b60 !important;
  border: 1.5px solid #e2e6e4 !important;
}

#onesignal-slidedown-dialog button.secondary:hover,
.onesignal-slidedown-dialog button[class*="negative"]:hover {
  background: #e8ebe9 !important;
  color: #2a3a33 !important;
}

/* Close (×) button */
#onesignal-slidedown-dialog .close-dialog,
.onesignal-slidedown-dialog button.onesignal-slidedown-cancel-button,
#onesignal-slidedown-dialog [class*="close"] {
  color: rgba(255, 255, 255, .85) !important;
  background: rgba(255, 255, 255, .08) !important;
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  border-radius: 10px !important;
  font-size: 18px !important;
  line-height: 32px !important;
  margin: 0 !important;
}

#onesignal-slidedown-dialog [class*="close"]:hover {
  background: rgba(255, 255, 255, .18) !important;
  color: #fff !important;
}

/* Default native permission prompt button — use modern rounded style */
#onesignal-slidedown-dialog .notification-permission-message,
.onesignal-slidedown-dialog .notification-permission-message {
  background: #fef9ec !important;
  border: 1px solid #f4e4b0 !important;
  border-radius: 12px !important;
  padding: 10px 14px !important;
  color: #6e5a15 !important;
  font-size: 13px !important;
  margin: 8px 0 4px !important;
}

/* Button helpers */
.btn-xs {
  padding: 4px 10px !important;
  font-size: 11.5px !important;
  border-radius: 8px !important;
  line-height: 1.45 !important;
}

.btn-outline-danger {
  background: #fff !important;
  color: #c84b4b !important;
  border: 1.5px solid #e6c6c7 !important;
}

.btn-outline-danger:hover {
  background: #faeaea !important;
  border-color: #d8a6a8 !important;
  color: #a83f3f !important;
}

/* Pastor Profile Styling */
.pastor-featured-wrap {
  margin-top: 8px;
}

.pastor-featured {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(234, 240, 247, 0.96));
  border: 1px solid rgba(15, 76, 110, 0.08);
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(19, 38, 54, 0.12);
  padding: 26px;
}

.pastor-featured-inner {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 30px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}

.pastor-featured-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pastor-featured-media::before {
  content: "";
  position: absolute;
  inset: 14px;
  background: linear-gradient(135deg, rgba(4, 80, 132, 0.14), rgba(25, 185, 154, 0.16));
  border-radius: 26px;
  transform: rotate(-6deg);
}

.pastor-featured-image {
  position: relative;
  z-index: 1;
  width: min(100%, 280px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 35px rgba(30, 59, 84, 0.22);
}

.pastor-featured-content {
  position: relative;
  z-index: 1;
}

.pastor-featured-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(10, 71, 128, 0.08);
  color: #0b5c9d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pastor-featured-name {
  margin: 14px 0 8px;
  color: #102a43;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
  font-weight: 800;
}

.pastor-featured-copy {
  color: #405164;
  font-size: 15px;
  line-height: 1.8;
  text-align: left;
}

.pastor-featured-copy p {
  margin: 0 0 12px;
}

.pastor-featured-meta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(18, 51, 82, 0.12);
  color: #53657d;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.pastor-featured-meta strong {
  color: #143d63;
}

.pastor-featured-actions {
  margin-top: 18px;
}

.pastor-history-section {
  margin-top: 28px;
}

.section-heading {
  margin-bottom: 22px;
  text-align: center;
}

.section-heading h2 {
  margin: 8px 0 0;
  color: #15263b;
  font-size: clamp(1.8rem, 2vw, 2.5rem);
  font-weight: 800;
}

.pastor-history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.pastor-history-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(18, 43, 75, 0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(16, 35, 52, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.pastor-history-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 28px rgba(16, 35, 52, 0.12);
}

.pastor-history-image-wrap {
  position: relative;
  min-height: 180px;
  background: linear-gradient(135deg, rgba(223, 234, 246, 0.7) 0%, rgba(185, 209, 239, 0.7) 100%);
  padding: 28px 12px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pastor-history-image {
  width: 150px;
  height: 150px;
  max-width: 75%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 24px rgba(30, 59, 84, 0.22);
  display: block;
  background-color: #fff;
}

.pastor-history-placeholder {
  width: 150px;
  height: 150px;
  max-width: 75%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4c6c8d, #2d4566);
  color: rgba(255, 255, 255, 0.78);
  font-size: 60px;
  border: 5px solid rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 24px rgba(30, 59, 84, 0.22);
}

.pastor-history-body {
  padding: 14px 22px 24px;
  text-align: center;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pastor-history-body h3 {
  margin: 0 0 6px;
  color: #15263b;
  font-size: 1.3rem;
  font-weight: 700;
}

.pastor-history-period {
  margin: 0 0 12px;
  color: #5a7087;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pastor-history-bio {
  margin: 0;
  color: #4d5c6d;
  line-height: 1.7;
  font-size: 14px;
  text-align: left;
  white-space: normal;
  word-wrap: break-word;
}

.pastor-history-bio-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-top: 2px;
}

.pastor-history-toggle {
  -webkit-appearance: none;
  appearance: none;
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 76, 129, 0.18);
  background: rgba(255, 255, 255, 0.9);
  color: #163b64;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  align-self: flex-start;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(16, 40, 70, 0.06);
}

.pastor-history-toggle:hover {
  background: #0f4c81;
  color: #fff;
  border-color: #0f4c81;
  box-shadow: 0 6px 16px rgba(15, 76, 129, 0.22);
}

.pastor-history-toggle:focus-visible {
  outline: 3px solid rgba(15, 76, 129, 0.35);
  outline-offset: 2px;
}

.pastor-history-toggle-caret {
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  transition: transform 0.25s ease;
  transform-origin: 50% 45%;
}

.pastor-history-toggle[aria-expanded="true"] .pastor-history-toggle-caret {
  transform: rotate(180deg);
}

.pastor-history-bio--full {
  animation: pastorBioFade 0.28s ease both;
}

@keyframes pastorBioFade {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pastor-archive-feature {
  background: linear-gradient(135deg, rgba(244, 248, 253, 0.92), rgba(231, 236, 245, 0.92));
  border: 1px solid rgba(16, 78, 117, 0.08);
  border-radius: 28px;
  box-shadow: 0 18px 35px rgba(11, 31, 47, 0.10);
  padding: 26px;
}

@media (min-width: 769px) and (max-width: 1080px) {
  .pastor-history-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .pastor-featured-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .pastor-featured {
    padding: 18px;
  }

  .pastor-featured-image {
    max-width: 200px;
  }

  .pastor-history-grid {
    grid-template-columns: 1fr;
  }

  .pastor-history-image {
    width: 130px;
    height: 130px;
  }

  .pastor-history-placeholder {
    width: 130px;
    height: 130px;
    font-size: 52px;
  }

  .pastor-history-body {
    padding: 10px 18px 22px;
  }

  .pastor-archive-feature {
    padding: 18px;
    border-radius: 22px;
  }
}

@media (max-width: 480px) {
  .pastor-history-image {
    width: 118px;
    height: 118px;
  }

  .pastor-history-placeholder {
    width: 118px;
    height: 118px;
    font-size: 48px;
  }

  .pastor-history-image-wrap {
    min-height: 160px;
    padding: 24px 10px 12px;
  }

  .pastor-featured-image {
    max-width: 170px;
    border-width: 5px;
  }
}

/* ============================================================
   SIDEBAR VIEW SWITCHER (Admin Portal vs Public Frontend)
   ============================================================ */
.sidebar-switch-wrap {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.sidebar-switch-btn {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: 0.01em;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sidebar-switch-btn.admin-switch {
  background: linear-gradient(135deg, #e9b949 0%, #d49c28 100%) !important;
  color: #102f2c !important;
}

.sidebar-switch-btn.admin-switch svg {
  stroke: #102f2c;
  width: 18px;
  height: 18px;
}

.sidebar-switch-btn.admin-switch:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(233, 185, 73, 0.40);
}

.sidebar-switch-btn.public-switch {
  background: rgba(255, 255, 255, 0.10) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.sidebar-switch-btn.public-switch svg {
  stroke: #e9b949;
  width: 18px;
  height: 18px;
}

.sidebar-switch-btn.public-switch:hover {
  background: rgba(255, 255, 255, 0.20) !important;
  transform: translateY(-2px);
}

.mobile-nav-admin-link {
  color: #e9b949 !important;
}

/* ============================================================
   MEMBER PROFILE PAGE — Responsive Cards & Family Links
   ============================================================ */
.member-profile-page .family-member-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px 3px 4px;
  border-radius: 99px;
  background: rgba(16, 47, 44, 0.06);
  border: 1px solid rgba(16, 47, 44, 0.12);
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
}

.member-profile-page .family-member-link:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(16, 47, 44, 0.15);
}

.member-profile-page .family-member-link:hover .link-arrow {
  color: #e9b949;
}

.avatar-micro {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.member-profile-page .family-member-link:hover .avatar-micro {
  background: #fff;
  color: var(--primary);
}

.avatar-dept {
  background: linear-gradient(135deg, #102f2c, #1a4d46);
  color: #e9b949;
  font-size: 14px;
}

.member-linked-item {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.member-linked-item:hover {
  transform: translateX(4px);
  background: rgba(16, 47, 44, 0.04);
}

.responsive-detail-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.responsive-detail-table .detail-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.responsive-detail-table .detail-item small {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
}

.responsive-detail-table .detail-item strong {
  font-size: 14px;
  color: var(--ink);
}

/* ============================================================
   MEMBER PROFILE PRINT STYLESHEET (Smart Printable Design)
   ============================================================ */
@media print {
  @page {
    size: A4 portrait;
    margin: 8mm 10mm 10mm;
  }

  body {
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 9.5pt;
    line-height: 1.35;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .sidebar,
  .topbar,
  .mobile-nav,
  .sidebar-backdrop,
  .offline-banner,
  .no-print,
  .alert,
  .public-footer,
  .site-footer,
  .desktop-back-row {
    display: none !important;
  }

  .app-shell,
  .app-main,
  .content,
  .member-profile-page {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .print-only {
    display: flex !important;
  }

  /* Formal Header */
  .member-print-header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 2.5px solid #102f2c;
  }

  .member-print-brand {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .member-print-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
  }

  .member-print-brand h1 {
    margin: 0;
    font-size: 17pt;
    font-family: 'Fraunces', Georgia, serif;
    color: #102f2c;
    line-height: 1.15;
  }

  .member-print-brand p {
    margin: 1px 0 0;
    font-size: 8.5pt;
    color: #475569;
  }

  .member-print-brand small {
    font-size: 7.5pt;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    font-weight: 700;
  }

  .member-print-meta {
    text-align: right;
    font-size: 8pt;
    color: #334155;
    line-height: 1.45;
    background: #f8fafc;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
  }

  /* Member Summary Hero */
  .print-member-summary {
    display: flex !important;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    background: linear-gradient(to right, #f1f5f9, #f8fafc) !important;
    border: 1px solid #cbd5e1;
    border-left: 4px solid #102f2c;
    border-radius: 6px;
    margin-bottom: 12px;
    break-inside: avoid;
  }

  .print-avatar {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #102f2c;
    color: #fff;
    font-size: 14pt;
    font-weight: 700;
    flex-shrink: 0;
  }

  .print-summary-info h2 {
    margin: 0 0 2px;
    font-size: 14pt;
    font-family: 'Fraunces', Georgia, serif;
    color: #0f172a;
  }

  .print-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 8.5pt;
    color: #334155;
  }

  /* Content Cards */
  .member-profile-page .grid {
    display: grid !important;
    gap: 10px !important;
    margin-bottom: 10px;
  }

  .member-profile-page .grid-2 {
    grid-template-columns: 1fr 1fr !important;
  }

  .member-profile-page .card {
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    background: #fff !important;
    margin-bottom: 8px !important;
  }

  .member-profile-page .card-header {
    padding: 6px 10px !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #cbd5e1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .member-profile-page .card-header h2 {
    font-size: 9.5pt !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0;
  }

  .member-profile-page .card-body {
    padding: 8px 10px !important;
  }

  /* Detail Table Layout */
  .responsive-detail-table {
    grid-template-columns: 1fr 1fr !important;
    gap: 6px 10px !important;
  }

  .responsive-detail-table .detail-item {
    padding: 3px 4px !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px dashed #e2e8f0 !important;
    min-width: 0 !important;
  }

  .responsive-detail-table .detail-item small {
    font-size: 7pt !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b !important;
    margin-bottom: 1px !important;
    display: block;
  }

  .responsive-detail-table .detail-item strong {
    font-size: clamp(7.5pt, 1vw, 9pt) !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    line-height: 1.25 !important;
    color: #0f172a !important;
    display: block !important;
  }

  .family-member-link,
  .responsive-detail-table .text-plain {
    font-size: clamp(7.5pt, 1vw, 9pt) !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 3px !important;
    color: #0f172a !important;
  }

  .family-member-link .avatar-micro,
  .responsive-detail-table .avatar-micro {
    width: 14px !important;
    height: 14px !important;
    font-size: 6.5pt !important;
    flex-shrink: 0 !important;
  }

  .member-profile-page a {
    text-decoration: none !important;
    color: #0f172a !important;
  }

  .member-linked-item {
    padding: 3px 0 !important;
    border-bottom: 1px dotted #cbd5e1 !important;
    font-size: 8.5pt !important;
  }

  /* Formal Signatures Bar */
  .member-print-footer {
    display: flex !important;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 8px;
    break-inside: avoid;
  }

  .print-sig-col {
    width: 28%;
    text-align: center;
    font-size: 7.5pt;
    color: #475569;
  }

  .sig-line {
    border-bottom: 1px solid #64748b;
    height: 30px;
    margin-bottom: 4px;
  }
}

/* ============================================================
   LIVE AUDIO & UPLOADED RECORDING BADGES
   ============================================================ */
.audio-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.audio-badge-uploaded {
  background: rgba(33, 150, 243, 0.15);
  color: #1976d2;
  border: 1px solid rgba(33, 150, 243, 0.30);
}

.audio-badge-live {
  background: rgba(220, 53, 69, 0.15);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.30);
}

.audio-badge-replay {
  background: rgba(40, 167, 69, 0.15);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.30);
}

/* ============================================================
   IOS PWA INSTALL TUTORIAL MODAL & ANIMATION
   ============================================================ */
.ios-tutorial-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none !important;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none !important;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
}

.ios-tutorial-backdrop.show {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.ios-tutorial-dialog {
  position: relative;
  width: 100%;
  max-width: 860px;
  background: radial-gradient(circle at 15% 15%, rgba(91, 140, 255, 0.14), transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(233, 185, 73, 0.12), transparent 45%),
    #0e1b19;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  padding: 32px 28px;
  color: #ededf2;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  max-height: 94vh;
  overflow-y: auto;
}

.ios-tutorial-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.18s ease, transform 0.15s ease;
}

.ios-tutorial-close:hover {
  background: rgba(255, 255, 255, 0.20);
  transform: scale(1.06);
}

.ios-tutorial-container {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 36px;
  align-items: center;
}

@media (max-width: 780px) {
  .ios-tutorial-container {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 24px;
  }

  .ios-tutorial-dialog {
    padding: 24px 16px;
  }
}

.ios-tutorial-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11.5px;
  font-weight: 700;
  color: #e9b949;
  margin-bottom: 10px;
}

.ios-tutorial-copy h2 {
  font-size: clamp(22px, 3.5vw, 28px);
  line-height: 1.2;
  margin: 0 0 10px;
  font-weight: 700;
  color: #fff;
}

.ios-tutorial-sub {
  font-size: 13.5px;
  line-height: 1.55;
  color: #a7b5b2;
  margin: 0 0 20px;
}

.ios-tutorial-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.ios-tutorial-steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  line-height: 1.45;
  color: #c9c9d3;
  transition: all 0.25s ease;
}

.ios-tutorial-steps li .num {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  color: #ededf2;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ios-tutorial-steps li.active {
  background: rgba(233, 185, 73, 0.14);
  border-color: rgba(233, 185, 73, 0.45);
  color: #fff;
}

.ios-tutorial-steps li.active .num {
  background: #e9b949;
  color: #102f2c;
}

.ios-tutorial-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.ios-tutorial-replay {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ededf2;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.ios-tutorial-replay:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.45);
}

.ios-tutorial-replay svg {
  width: 14px;
  height: 14px;
}

.ios-tutorial-dismiss {
  background: var(--primary, #102f2c);
  border: 1px solid rgba(233, 185, 73, 0.4);
  color: #e9b949;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ios-tutorial-dismiss:hover {
  background: #e9b949;
  color: #102f2c;
}

/* Phone Simulator Frame */
.ios-phone-wrap {
  position: relative;
}

.ios-phone {
  position: relative;
  width: 270px;
  height: 540px;
  background: #000;
  border-radius: 40px;
  padding: 10px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8),
    0 0 0 2px rgba(255, 255, 255, 0.08) inset;
}

.ios-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #f2f2f7;
  border-radius: 30px;
  overflow: hidden;
}

.ios-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 105px;
  height: 20px;
  background: #000;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  z-index: 50;
}

.ios-statusbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 38px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 18px 4px;
  font-size: 12px;
  font-weight: 600;
  color: #000;
  z-index: 40;
  pointer-events: none;
}

.ios-statusbar .icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ios-view {
  position: absolute;
  inset: 0;
  transition: opacity 0.35s ease;
}

.ios-browser-view {
  z-index: 10;
}

.ios-page-content {
  position: absolute;
  top: 38px;
  left: 0;
  right: 0;
  bottom: 68px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff, #f7f7fa);
}

.ios-mock-nav {
  height: 44px;
  background: #fff;
  border-bottom: 1px solid #e5e5ea;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
}

.ios-mock-nav .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e9b949;
}

.ios-mock-nav .logo {
  font-weight: 800;
  font-size: 12.5px;
  color: #1c1c1e;
}

.ios-mock-hero {
  margin: 14px 12px 8px;
  height: 105px;
  border-radius: 14px;
  background: linear-gradient(135deg, #102f2c, #1a5249);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  text-align: center;
  padding: 12px;
  gap: 4px;
}

.ios-mock-lines {
  padding: 0 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 12px;
}

.ios-mock-lines span {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: #e4e4ea;
}

.ios-mock-lines span:nth-child(1) {
  width: 75%;
}

.ios-mock-lines span:nth-child(2) {
  width: 90%;
}

.ios-mock-lines span:nth-child(3) {
  width: 60%;
}

.ios-safari-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 68px;
  background: rgba(249, 249, 251, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid #e5e5ea;
  display: flex;
  flex-direction: column;
  z-index: 20;
}

.ios-url-pill {
  margin: 6px 10px 0;
  height: 28px;
  background: #e9e9eb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11.5px;
  color: #8e8e93;
}

.ios-url-pill svg {
  width: 11px;
  height: 11px;
  opacity: 0.7;
}

.ios-tool-row {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 4px;
}

.ios-tool-row button {
  background: none;
  border: none;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a84ff;
  cursor: pointer;
}

.ios-tool-row button svg {
  width: 19px;
  height: 19px;
}

.ios-tool-row button:disabled {
  color: #c7c7cc;
}

#iosShareBtn {
  position: relative;
  border-radius: 10px;
  transition: background 0.2s ease, transform 0.15s ease;
}

#iosShareBtn.tap-highlight {
  background: rgba(10, 132, 255, 0.20);
  transform: scale(0.88);
}

/* Share Sheet */
.ios-sheet-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 60;
}

.ios-sheet-overlay.show {
  opacity: 1;
}

.ios-share-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(246, 246, 248, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 18px 18px 0 0;
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
  z-index: 70;
  padding: 8px 0 16px;
  box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.15);
}

.ios-share-sheet.open {
  transform: translateY(0);
}

.ios-sheet-handle {
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: #d1d1d6;
  margin: 2px auto 8px;
}

.ios-sheet-title {
  text-align: center;
  font-size: 11px;
  color: #8e8e93;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e5ea;
  margin: 0 14px 6px;
}

.ios-app-row {
  display: flex;
  gap: 14px;
  padding: 4px 14px 10px;
  overflow: hidden;
}

.ios-app-row .app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  color: #1c1c1e;
  flex: 0 0 auto;
  width: 44px;
}

.ios-app-row .app .icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
}

.ios-app-row .app.i1 .icon {
  background: #34c759;
}

.ios-app-row .app.i2 .icon {
  background: #0a84ff;
}

.ios-app-row .app.i3 .icon {
  background: #ff9f0a;
}

.ios-app-row .app.i4 .icon {
  background: #af52de;
}

.ios-action-list {
  margin: 0 12px;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
}

.ios-action-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 13px;
  color: #1c1c1e;
  border-bottom: 1px solid #e5e5ea;
  transition: background 0.15s ease;
}

.ios-action-item:last-child {
  border-bottom: none;
}

.ios-action-item .a-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a84ff;
  flex: 0 0 auto;
}

.ios-action-item.highlight {
  background: rgba(10, 132, 255, 0.15);
}

/* Add to Home Dialog */
.ios-dialog-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ios-dialog-overlay.show {
  opacity: 1;
}

.ios-addhome-dialog {
  width: 220px;
  background: rgba(248, 248, 250, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 16px;
  overflow: hidden;
  transform: scale(0.85);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.25s ease;
}

.ios-dialog-overlay.show .ios-addhome-dialog {
  transform: scale(1);
  opacity: 1;
}

.ios-dialog-top {
  padding: 14px 14px 10px;
  text-align: center;
  border-bottom: 1px solid #e5e5ea;
}

.ios-dialog-icon {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ios-dialog-name {
  font-size: 13px;
  font-weight: 600;
  color: #1c1c1e;
  background: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 7px;
  padding: 5px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ios-dialog-url {
  font-size: 10.5px;
  color: #8e8e93;
  margin-top: 3px;
}

.ios-dialog-buttons {
  display: flex;
}

.ios-dialog-buttons button {
  flex: 1;
  border: none;
  background: none;
  padding: 11px 0;
  font-size: 14px;
  color: #0a84ff;
  border-top: 1px solid #e5e5ea;
  cursor: pointer;
}

.ios-dialog-buttons .cancel {
  border-right: 1px solid #e5e5ea;
  color: #1c1c1e;
}

.ios-dialog-buttons #iosAddBtn {
  font-weight: 700;
  transition: background 0.15s ease;
}

.ios-dialog-buttons #iosAddBtn.tap-highlight {
  background: rgba(10, 132, 255, 0.18);
}

/* Home Screen View */
.ios-home-view {
  z-index: 5;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.12), transparent 40%),
    linear-gradient(160deg, #1f3160, #5c3c99 55%, #d16238);
}

.ios-statusbar-space {
  height: 38px;
}

.ios-app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 10px;
  padding: 20px 14px 0;
}

.ios-app-grid .app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.ios-app-grid .icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
}

.ios-app-grid .label {
  font-size: 9.5px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 50px;
  text-align: center;
}

.ios-app-grid .c1 {
  background: #34c759;
}

.ios-app-grid .c2 {
  background: #0a84ff;
}

.ios-app-grid .c3 {
  background: #ff9f0a;
}

.ios-app-grid .c4 {
  background: #ff375f;
}

.ios-app-grid .c5 {
  background: #5e5ce6;
}

.ios-app-grid .c6 {
  background: #64d2ff;
}

.ios-app-grid .c7 {
  background: #ffd60a;
}

.ios-app-grid .c8 {
  background: #8e8e93;
}

.ios-new-app {
  opacity: 0;
  transform: scale(0.3);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}

.ios-new-app.pop {
  opacity: 1;
  transform: scale(1);
}

/* Animated Finger Indicator */
.ios-finger {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  z-index: 200;
  opacity: 0;
  transform: translate(-50%, -50%) scale(1);
  transition: left 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    top 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease;
}

.ios-finger.show {
  opacity: 1;
}

.ios-finger.tapping {
  animation: iosTapPulse 0.4s ease;
}

@keyframes iosTapPulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }

  40% {
    transform: translate(-50%, -50%) scale(0.65);
    background: rgba(255, 255, 255, 0.88);
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

/* ============================================================
   ULTRA-MODERN FLOATING MOBILE FOOTER NAVIGATION BAR
   ============================================================ */
@media (max-width: 860px) {
  .mobile-nav {
    position: fixed;
    z-index: 32;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 6px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.90);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 16px 40px -4px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transition: bottom 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s ease;
  }

  .mobile-nav a {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 3px;
    border-radius: 14px;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-nav a svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    stroke: currentColor;
    fill: none;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), stroke 0.2s ease, filter 0.2s ease;
  }

  .mobile-nav a:active {
    transform: scale(0.92);
  }

  .mobile-nav a.active {
    color: #2dd4bf;
    background: rgba(45, 212, 191, 0.14);
  }

  .mobile-nav a.active svg {
    stroke: #2dd4bf;
    transform: translateY(-1px) scale(1.08);
    filter: drop-shadow(0 0 6px rgba(45, 212, 191, 0.45));
  }

  .mobile-nav a.mobile-nav-admin-link.active {
    color: #e9b949 !important;
    background: rgba(233, 185, 73, 0.14) !important;
  }

  .mobile-nav a.mobile-nav-admin-link.active svg {
    stroke: #e9b949 !important;
    filter: drop-shadow(0 0 6px rgba(233, 185, 73, 0.45)) !important;
  }

  html[data-audio-active="true"] body>.mobile-nav {
    bottom: calc(76px + env(safe-area-inset-bottom)) !important;
  }
}

/* ============================================================
   ULTRA-MODERN SITE FOOTER
   ============================================================ */
.public-footer.site-footer {
  margin-top: auto;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 13px;
  width: 100%;
}

.footer-modern-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: #0f172a;
}

.footer-brand-logo {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #0d9488;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.footer-nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-nav-links a {
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  transition: color 0.15s ease;
}

.footer-nav-links a:hover {
  color: #0d9488;
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: #94a3b8;
}

.footer-tagline {
  font-weight: 600;
  color: #0d9488;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 10.5px;
}

@media (max-width: 860px) {
  .public-footer.site-footer {
    padding-bottom: calc(90px + env(safe-area-inset-bottom));
  }
  .footer-brand-row, .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}