.hero {
  overflow: hidden;
  position: relative;
  display: grid;
  gap: 1.2rem;
  padding: clamp(1.25rem, 5vw, 2.5rem);
  border: 1px solid rgba(125, 169, 184, .14);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #e4f2f7 0%, #d7ebf2 48%, #dfeeee 100%);
  color: #405f6b;
  box-shadow: 0 12px 30px rgba(82, 128, 145, .09);
}
.hero::after { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -115px; border-radius: 50%; background: rgba(255, 255, 255, .38); }
.hero::before { content: ""; position: absolute; width: 190px; height: 190px; left: 42%; bottom: -135px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.hero > * { position: relative; z-index: 1; }
.hero h1 { color: #365b69; font-size: clamp(1.8rem, 7vw, 3rem); line-height: 1.15; letter-spacing: -.04em; }
.hero .eyebrow { color: #789ca8; }
.hero__main { display: grid; align-content: center; gap: .75rem; min-width: 0; }
.hero__description { max-width: 560px; color: #627f89; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .35rem; }
.daily-verse { min-width: 0; display: grid; align-content: center; gap: 1rem; padding: clamp(1.1rem, 3vw, 1.45rem); border: 1px solid rgba(116, 157, 173, .18); border-radius: 20px; background: rgba(255, 255, 255, .58); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65); backdrop-filter: blur(8px); }
.daily-verse__top, .daily-verse__footer { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.daily-verse__label { color: #6e929f; font-size: .82rem; font-weight: 900; letter-spacing: .04em; }
.daily-verse__mark { color: #b89f69; font-size: 1.15rem; }
.daily-verse__text { color: #3f606c; font-size: clamp(1rem, 2vw, 1.12rem); font-weight: 720; line-height: 1.82; word-break: keep-all; }
.daily-verse__reference { color: #547a88; font-size: .9rem; }
.daily-verse__source { color: #879da5; font-size: .7rem; text-align: right; }
.daily-verse__fallback { color: #738b94; line-height: 1.7; }
.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.quick-card { min-height: 118px; display: grid; align-content: space-between; padding: 1rem; border-radius: var(--radius-md); background: var(--surface); box-shadow: 0 6px 20px rgba(82, 128, 145, .055); border: 1px solid rgba(116, 157, 173, .15); font-weight: 850; color: var(--forest-900); }
.quick-card span:first-child { font-size: 1.5rem; }
.activity-grid { display: grid; gap: 1rem; }
.activity-card { position: relative; display: grid; gap: .8rem; overflow: hidden; padding: 1rem; background: var(--surface); border: 1px solid rgba(116, 157, 173, .15); border-radius: var(--radius-md); box-shadow: 0 6px 20px rgba(82, 128, 145, .055); }
.activity-card::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 6px; background: var(--category-color, var(--forest-700)); }
.activity-card__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .45rem .8rem;
  align-items: start;
  padding-left: .35rem;
}
.activity-card__header > :first-child { display: contents; }
.activity-card__header .eyebrow { grid-column: 1; grid-row: 1; min-width: 0; }
.activity-card__title-link { grid-column: 1 / -1; grid-row: 2; min-width: 0; width: 100%; }
.activity-card__header .status-badge { grid-column: 2; grid-row: 1; justify-self: end; white-space: nowrap; }
.activity-grid--home .activity-card {
  border-top: 5px solid #cfe4ea;
  background: linear-gradient(180deg, #fbfdfe 0%, #fff 28%);
  box-shadow: 0 7px 20px rgba(82, 128, 145, .045);
}
.activity-grid--home .activity-card::before { display: none; }
.activity-grid--list .activity-card {
  border-top: 5px solid #cfe4ea;
  box-shadow: 0 7px 20px rgba(82, 128, 145, .045);
}
.activity-grid--list .activity-card::before { display: none; }
.activity-grid--home .activity-card__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .45rem .8rem;
  align-items: start;
  padding-left: 0;
}
.activity-grid--home .activity-card__header > :first-child { display: contents; }
.activity-grid--home .activity-card__header .eyebrow { grid-column: 1; grid-row: 1; min-width: 0; }
.activity-grid--home .activity-card__title-link { grid-column: 1 / -1; grid-row: 2; min-width: 0; width: 100%; }
.activity-grid--home .status-badge { grid-column: 2; grid-row: 1; justify-self: end; white-space: nowrap; }
.activity-grid--home .activity-card__title { font-size: 1.22rem; line-height: 1.35; }
.activity-card__title { font-size: 1.16rem; line-height: 1.35; color: var(--forest-900); }
.activity-card__footer { display: grid; gap: .65rem; }
.detail-hero { display: grid; gap: 1rem; padding: clamp(1.2rem, 5vw, 2rem); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 7px 22px rgba(82, 128, 145, .06); border-top: 8px solid rgba(116, 157, 173, .13); }
.detail-title { font-size: clamp(1.7rem, 7vw, 2.8rem); line-height: 1.2; color: var(--forest-900); }
.sticky-action { position: sticky; bottom: calc(var(--bottom-nav-height) + .5rem); z-index: 20; padding: .75rem; border: 1px solid #deebef; border-radius: var(--radius-md); background: rgba(255, 255, 255, .95); box-shadow: var(--shadow-md); backdrop-filter: blur(10px); }
.participant-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: .75rem; }
.participant-person { display: grid; justify-items: center; gap: .45rem; text-align: center; padding: .8rem; background: #f4f9fb; border-radius: var(--radius-sm); }
.post-list { display: grid; gap: .7rem; }
.post-row { display: grid; gap: .4rem; padding: 1rem; border-radius: var(--radius-md); border: 1px solid rgba(116, 157, 173, .15); background: var(--surface); box-shadow: 0 6px 20px rgba(82, 128, 145, .055); }
.post-row__meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; color: var(--muted); font-size: .84rem; }
.post-detail { display: grid; gap: 1rem; }
.post-head { display: grid; gap: .7rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.comment-list { display: grid; gap: .7rem; }
.comment { padding: .9rem; border-radius: var(--radius-sm); background: #f4f9fb; }
.comment__head { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; margin-bottom: .35rem; }
.comment__actions { display: flex; gap: .25rem; }
.profile-hero { display: grid; justify-items: center; text-align: center; gap: .75rem; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.stat-card { padding: 1rem; text-align: center; border-radius: var(--radius-md); background: var(--surface); border: 1px solid rgba(116, 157, 173, .15); }
.stat-card strong { display: block; color: var(--forest-800); font-size: 1.6rem; }
.admin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.admin-menu-card { min-height: 130px; display: grid; align-content: space-between; gap: .5rem; padding: 1rem; border-radius: var(--radius-md); color: var(--forest-900); background: var(--surface); border: 1px solid rgba(116, 157, 173, .15); box-shadow: 0 6px 20px rgba(82, 128, 145, .055); }
.admin-menu-card strong { font-size: 1.08rem; }
.activity-card:hover, .post-row:hover, .quick-card:hover, .admin-menu-card:hover { border-color: #c3dfe8; }
.calendar-toolbar { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.calendar-grid { min-width: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.calendar-weekday { padding: .5rem .1rem; text-align: center; font-size: .76rem; color: var(--muted); font-weight: 800; }
.calendar-day { min-height: 76px; padding: .35rem; border: 1px solid #e0ecef; background: white; border-radius: 8px; }
.calendar-day--outside { opacity: .42; background: #f3f7f8; }
.calendar-day__number { display: block; font-size: .8rem; font-weight: 800; }
.calendar-event { display: block; margin-top: .25rem; padding: .2rem .3rem; border-radius: 6px; background: #e7f3f7; color: var(--forest-900); font-size: .68rem; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poll-list { display: grid; gap: 1rem; }
.poll-option { display: grid; gap: .4rem; padding: .75rem; border: 1px solid rgba(116, 157, 173, .15); border-radius: var(--radius-sm); background: white; }
.poll-bar { height: 7px; overflow: hidden; border-radius: 999px; background: #e7f3f7; }
.poll-bar span { display: block; height: 100%; width: var(--vote-value, 0%); background: var(--yellow-400); }
.image-preview { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; border: 4px solid var(--forest-100); }
.status-page { min-height: calc(100vh - 2.5rem); display: grid; place-content: center; justify-items: center; gap: 1rem; text-align: center; padding: 2rem; }
.status-page__icon { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: linear-gradient(145deg, #fbf6e8, #edf7fa); font-size: 2.5rem; }
.config-error { min-height: 100vh; display: grid; place-content: center; padding: 1.5rem; }
.config-error .card { max-width: 680px; }

/* Prayer reaction: compact social-style action instead of a large notice box. */
.post-detail > .notice-box.page-stack { width: fit-content; max-width: 100%; display: flex; align-items: center; gap: 0; margin-top: .15rem; padding: 0; border: 0; border-radius: 999px; background: transparent; }
.post-detail > .notice-box.page-stack > strong,
.post-detail > .notice-box.page-stack > .small.subtle { display: none; }
.post-detail > .notice-box.page-stack > button { min-height: 38px; padding: .45rem .78rem; border-radius: 999px; border-width: 1px; box-shadow: none; font-size: .86rem; font-weight: 800; line-height: 1.2; }
.post-detail > .notice-box.page-stack > button.button--secondary { color: #627d87; background: #f6fafb; border-color: #dcebed; }
.post-detail > .notice-box.page-stack > button.button--secondary:hover { color: #506f7a; background: #edf6f8; border-color: #cfe3e8; }
.post-detail > .notice-box.page-stack > button.button--yellow { color: #6d6244; background: #f8f0d9; border-color: #eadfbf; }
.post-detail > .notice-box.page-stack > button.button--yellow:hover { background: #f4e9ca; border-color: #e4d6ad; }
.prayer-comment-section { gap: 1.15rem; }
.prayer-comment-section > .divider { margin: .1rem 0 .15rem; }
.prayer-comment-form { display: grid; grid-template-columns: minmax(0, 1fr) 92px; gap: .7rem; align-items: stretch; }
.prayer-comment-form textarea { min-height: 92px; resize: vertical; padding: .9rem 1rem; border-radius: 16px; line-height: 1.65; }
.prayer-comment-form__submit { min-height: 92px; align-self: stretch; border-radius: 16px; font-size: .94rem; }
.prayer-comment-list { gap: .85rem; }
.prayer-comment { overflow: hidden; padding: 0; border: 1px solid #dfecef; border-radius: 16px; background: #ffffff; box-shadow: 0 5px 16px rgba(82, 128, 145, .05); }
.prayer-comment__head { min-height: 58px; margin: 0; padding: .72rem .9rem; align-items: center; border-bottom: 1px solid #edf3f5; background: #f6fafb; }
.prayer-comment__author { min-width: 0; display: flex; align-items: center; gap: .65rem; }
.prayer-comment__author-mark { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #547782; background: #e3f0f4; font-size: .88rem; font-weight: 900; }
.prayer-comment__author-meta { min-width: 0; display: grid; gap: .08rem; }
.prayer-comment__author-name { color: #405f69; font-size: .94rem; line-height: 1.3; }
.prayer-comment__time { display: block; color: #8aa0a8; line-height: 1.25; }
.prayer-comment__content { min-height: 62px; margin: 0; padding: 1rem; color: #415962; background: #ffffff; line-height: 1.75; }
.prayer-comment .comment__actions { flex: 0 0 auto; align-items: center; gap: .2rem; }
.prayer-comment__action { min-height: 32px; padding: .3rem .52rem; border-color: transparent; border-radius: 9px; color: #718991; background: transparent; box-shadow: none; font-size: .78rem; }
.prayer-comment__action:hover { color: #4d6d78; background: #eaf3f6; box-shadow: none; transform: none; }
.prayer-comment__action--delete { color: #a37076; }
.prayer-comment__action--delete:hover { color: #945d64; background: #fbf0f1; }
.prayer-comment-edit { padding: 1rem; background: #ffffff; }
.prayer-comment-edit .button-row { justify-content: flex-end; }
.prayer-comment-empty { padding: 1.15rem; border: 1px dashed #d9e8ed; border-radius: 14px; text-align: center; background: #f8fbfc; }
.auth-card--signup { width: min(100%, 860px); padding-inline: clamp(1.1rem, 3vw, 1.5rem); }
.auth-card--signup > .page-stack > :first-child { width: 100%; text-align: center; }
.auth-card--signup > .page-stack > :first-child .page-description { max-width: 38rem; margin-inline: auto; }
.signup-flow { width: 100%; display: grid; gap: 1.5rem; }
.signup-flow > .section-title { text-align: center; }
.signup-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: 0; padding: 0; list-style: none; }
.signup-progress li { display: grid; justify-items: center; gap: .35rem; color: var(--muted); font-size: .78rem; text-align: center; }
.signup-progress li::before { content: ""; position: relative; top: 1rem; z-index: 0; width: calc(100% + .5rem); height: 2px; background: var(--line); transform: translateX(50%); }
.signup-progress li:last-child::before { visibility: hidden; }
.signup-progress li span { z-index: 1; display: grid; width: 2rem; height: 2rem; place-items: center; border: 2px solid var(--line); border-radius: 50%; background: var(--surface); }
.signup-progress li.is-current, .signup-progress li.is-complete { color: var(--ink); }
.signup-progress li.is-current span, .signup-progress li.is-complete span { border-color: var(--coral-700); background: var(--coral-700); color: white; }
.signup-step { display: grid; gap: 1.25rem; }
.agreement-list, .agreement-item, .signup-optional { display: grid; gap: .75rem; }
.agreement-item, .signup-optional, .signup-review { padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-md); }
.agreement-item details { padding-left: 1.75rem; font-size: .875rem; color: var(--muted); }
.agreement-item summary { cursor: pointer; color: var(--coral-700); font-weight: 700; }
.agreement-item li + li { margin-top: .4rem; }
.signup-email-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .75rem; }
.signup-code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; }
.signup-verified { margin: 0; color: var(--success); font-weight: 700; }
.form-actions.signup-actions { justify-content: center; }
.signup-review { display: grid; gap: .75rem; }
.signup-review__head { display: flex; align-items: center; justify-content: space-between; }
.signup-review__head h3 { margin: 0; }
.signup-review dl { display: grid; grid-template-columns: minmax(7rem, .35fr) 1fr; gap: .5rem 1rem; margin: 0; }
.signup-review dt { color: var(--muted); }
.signup-review dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 560px) {
  .signup-progress li strong { font-size: .7rem; }
  .signup-email-row { grid-template-columns: 1fr; }
  .signup-email-row > .button { justify-self: stretch; }
  .signup-review dl { grid-template-columns: 1fr; gap: .2rem; }
  .signup-review dd + dt { margin-top: .55rem; }
}
