/* Grounded Guidance — Phase 1A entry + Phase 1B fullscreen flow */

/* ─── Prayer tab — zoned layout ─── */
.gg-prayer-zone {
  position: relative;
  z-index: 1;
  max-width: 26rem;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.gg-prayer-zone--atmosphere {
  padding: 0 var(--sp-4) var(--sp-2);
}

.gg-prayer-zone--atmosphere .tab-top-media--prayer-editorial {
  width: 100%;
  height: 168px;
  margin: 0 auto var(--sp-3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #f7f4f2;
  box-shadow: 0 10px 28px rgba(90, 74, 66, 0.06);
}

.gg-prayer-zone--atmosphere .tab-top-media--prayer-editorial img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center 42%;
  filter: brightness(1.03) contrast(0.9) saturate(0.88) sepia(0.05);
  opacity: 0.96;
  mask-image: none;
  -webkit-mask-image: none;
  border-radius: 0;
}

.gg-prayer-week.prayer-week-theme-context {
  margin: 0 auto var(--sp-2);
  padding: 0 var(--sp-2);
  text-align: center;
}

.gg-prayer-week .prayer-week-theme-divider {
  display: none;
}

.gg-prayer-zone--guidance {
  padding: var(--sp-3) var(--sp-4) var(--sp-8);
}

.gg-prayer-hero__intro {
  text-align: center;
  margin-bottom: var(--sp-7);
  padding: 0 var(--sp-2);
  margin-top: 4px;
}

.gg-prayer-hero__title.display-font {
  font-size: clamp(1.5rem, 5.6vw, 1.85rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0;
}

.gg-prayer-guidance-card {
  background: #fffdfb;
  border: 1px solid rgba(234, 208, 204, 0.32);
  border-radius: calc(var(--radius-lg) + 2px);
  padding: 20px 18px 20px;
  box-shadow: 0 8px 32px rgba(186, 160, 148, 0.08);
  margin-bottom: var(--sp-5);
}

.gg-prayer-guidance-card__label.body-font {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(186, 148, 138, 0.88);
  margin: 0 0 14px;
}

.gg-prayer-guidance-card__input-wrap {
  margin-bottom: 16px;
}

.gg-prayer-guidance-card__textarea {
  min-height: 120px;
  font-size: 15px;
  line-height: 1.62;
  border-radius: var(--radius);
  background: rgba(255, 252, 249, 0.95);
}

.gg-prayer-guidance-card__validation {
  font-size: 13px;
  color: var(--accent-strong);
  margin: -6px 0 12px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.22s ease, max-height 0.22s ease, margin 0.22s ease;
}

.gg-prayer-guidance-card__validation--visible,
.gg-prayer-guidance-card__validation:not([hidden]) {
  opacity: 1;
  max-height: 3rem;
  margin: -4px 0 12px;
}

.gg-prayer-guidance-card__cta {
  width: 100%;
  margin: 4px 0 0;
  min-height: 48px;
  border-radius: 100px;
  font-size: 15px;
}

.gg-prayer-guidance-card .grounded-guidance-saved-link {
  display: block;
  margin: 14px auto 0;
  text-align: center;
}

.gg-prayer-continue-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin: var(--sp-2) 0 0;
  padding: 13px 14px 13px 16px;
  text-align: left;
  border: 1px solid rgba(234, 208, 204, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 252, 249, 0.62);
  cursor: pointer;
  box-shadow: none;
  transition:
    background 0.22s ease,
    border-color 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}

.gg-prayer-continue-card:hover {
  background: rgba(252, 246, 242, 0.82);
  border-color: rgba(186, 148, 138, 0.28);
}

.gg-prayer-continue-card__body {
  flex: 1;
  min-width: 0;
}

.gg-prayer-continue-card__eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(186, 148, 138, 0.82);
  margin-bottom: 4px;
}

.gg-prayer-continue-card__title {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.38;
  color: rgba(90, 74, 66, 0.88);
  margin-bottom: 3px;
}

.gg-prayer-continue-card__meta {
  display: block;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(90, 74, 66, 0.42);
}

.gg-prayer-continue-card__chev,
.gg-prayer-recent__chev {
  flex-shrink: 0;
  font-size: 1.15rem;
  line-height: 1;
  color: rgba(186, 148, 138, 0.45);
  font-weight: 300;
}

.gg-prayer-zone--prayer {
  position: relative;
  margin-top: var(--sp-7);
  padding: var(--sp-8) var(--sp-4) var(--sp-5);
  background: linear-gradient(
    180deg,
    rgba(247, 240, 234, 0.45) 0%,
    rgba(250, 244, 238, 0.88) 14%,
    rgba(252, 248, 244, 0.97) 42%,
    rgba(253, 250, 247, 1) 100%
  );
  border-radius: calc(var(--radius-lg) + 4px) calc(var(--radius-lg) + 4px) 0 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 -12px 40px rgba(186, 160, 148, 0.04);
}

.gg-prayer-zone--prayer::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 8%;
  right: 8%;
  height: 40px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(253, 250, 247, 0) 0%, rgba(247, 240, 234, 0.5) 100%);
}

#groundedGuidancePrayerHero,
#prayerSupportSection {
  scroll-margin-top: 12px;
}

.prayer-support__intro {
  text-align: center;
  margin: 0 0 var(--sp-6);
  padding: 0 var(--sp-2);
}

.prayer-support__eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(186, 148, 138, 0.78);
  margin: 0 0 10px;
}

.prayer-support__title.display-font {
  font-size: clamp(1.28rem, 4.8vw, 1.5rem);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}

.gg-prayer-shortcuts {
  margin: 0 0 var(--sp-5);
  padding: 0;
}

.gg-prayer-shortcuts--links-only {
  margin: 0 0 var(--sp-6);
  padding: 0 0 var(--sp-2);
  border-bottom: 1px solid rgba(234, 208, 204, 0.14);
}

.gg-prayer-shortcuts--links-only .gg-prayer-shortcuts__links {
  padding-top: 2px;
}

.gg-prayer-shortcuts__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 10px;
}

.gg-prayer-shortcut-link {
  padding: 6px 4px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: rgba(90, 74, 66, 0.52);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(186, 148, 138, 0.22);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.gg-prayer-shortcut-link:hover {
  color: rgba(90, 74, 66, 0.78);
  text-decoration-color: rgba(186, 148, 138, 0.42);
}

.gg-prayer-shortcuts__dot {
  color: rgba(186, 148, 138, 0.35);
  font-size: 12px;
  user-select: none;
}

.prayer-support__content {
  margin-top: 0;
}

.gg-prayer-zone--discovery {
  padding: var(--sp-2) var(--sp-4) max(var(--sp-10), env(safe-area-inset-bottom));
  margin-top: var(--sp-2);
}

.gg-prayer-recent__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 12px 2px;
  border: none;
  border-top: 1px solid rgba(234, 208, 204, 0.16);
  background: transparent;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.gg-prayer-recent__toggle-text {
  flex: 1;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(90, 74, 66, 0.55);
}

.gg-prayer-recent__toggle[aria-expanded='true'] .gg-prayer-recent__chev {
  transform: rotate(90deg);
}

.gg-prayer-recent__panel {
  padding: 4px 0 8px;
}

.gg-prayer-recent__panel[hidden] {
  display: none !important;
}

.gg-prayer-recent__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gg-prayer-recent__item + .gg-prayer-recent__item {
  border-top: 1px solid rgba(234, 208, 204, 0.18);
}

.gg-prayer-recent__btn {
  display: block;
  width: 100%;
  padding: 12px 2px;
  border: none;
  background: transparent;
  text-align: left;
  font-size: 14px;
  line-height: 1.48;
  color: rgba(90, 74, 66, 0.72);
  cursor: pointer;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.gg-prayer-recent__btn:hover {
  color: var(--text);
}

.prayer-support__menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 var(--sp-4);
}

.prayer-support__row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 18px;
  border: 1px solid rgba(234, 208, 204, 0.26);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 251, 0.78);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 2px 12px rgba(186, 160, 148, 0.04);
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}

.prayer-support__row:hover {
  background: rgba(255, 252, 249, 0.95);
  border-color: rgba(186, 148, 138, 0.32);
  box-shadow: 0 4px 18px rgba(186, 160, 148, 0.07);
}

.prayer-support__row-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(252, 244, 238, 0.9);
  color: rgba(186, 148, 138, 0.88);
}

.prayer-support__row-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.prayer-support__row-title {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}

.prayer-support__row-sub {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(90, 74, 66, 0.55);
  margin: 0;
  font-style: normal;
}

.prayer-support__row-chev {
  flex-shrink: 0;
  font-size: 1.25rem;
  color: rgba(186, 148, 138, 0.55);
  font-weight: 300;
}

.prayer-support .prayer-verse-context {
  margin-bottom: var(--sp-3);
}

.prayer-picker-block {
  margin-top: var(--sp-1);
  padding: var(--sp-4) 0 var(--sp-2);
}

.prayer-picker-block--open .prayer-custom-wrap {
  margin-top: 0;
}

.prayer-picker-block[hidden] {
  display: none !important;
}

.prayer-picker-block--open {
  display: block !important;
}

.prayer-support .prayer-custom-wrap textarea {
  font-size: 14px;
}

/* ─── Guided prayers hub (reuses existing prayer-pill / applyPrayerSelection) ─── */

.guided-prayers-hub {
  position: fixed;
  inset: 0;
  z-index: 520;
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    180deg,
    rgba(250, 244, 238, 1) 0%,
    rgba(253, 250, 247, 1) 38%,
    rgba(255, 253, 251, 1) 100%
  );
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.32s ease,
    visibility 0.32s ease;
}

.guided-prayers-hub--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.guided-prayers-hub-open .bottom-nav {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.guided-prayers-hub__header {
  flex-shrink: 0;
  text-align: center;
  padding: max(var(--sp-4), env(safe-area-inset-top)) var(--sp-4) var(--sp-4);
}

.guided-prayers-hub__back {
  display: inline-flex;
  align-items: center;
  margin: 0 0 var(--sp-4);
  padding: 6px 2px;
  border: none;
  background: transparent;
  font-size: 14px;
  color: rgba(90, 74, 66, 0.55);
  cursor: pointer;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.guided-prayers-hub__back:hover {
  color: rgba(90, 74, 66, 0.82);
}

.guided-prayers-hub__eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(186, 148, 138, 0.78);
  margin: 0 0 10px;
}

.guided-prayers-hub__title.display-font {
  font-size: clamp(1.32rem, 5vw, 1.55rem);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 8px;
}

.guided-prayers-hub__lead {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(90, 74, 66, 0.58);
  margin: 0 auto;
  max-width: 20rem;
}

.guided-prayers-hub__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding-top: 0;
  padding-bottom: max(var(--sp-8), env(safe-area-inset-bottom, 0px));
  padding-left: max(calc(var(--sp-4) + 4px), env(safe-area-inset-left, 0px));
  padding-right: max(var(--sp-4), env(safe-area-inset-right, 0px));
}

.guided-prayers-hub__group,
.guided-prayers-hub__custom {
  margin: 0 0 var(--sp-6);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: visible;
}

.guided-prayers-hub__group-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(138, 122, 114, 0.62);
  margin: 0 0 12px;
  padding: 0;
  text-align: left;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
}

.guided-prayers-hub__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.guided-prayer-cat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(234, 208, 204, 0.26);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 251, 0.82);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(186, 160, 148, 0.04);
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}

.guided-prayer-cat:hover {
  background: rgba(255, 252, 249, 0.98);
  border-color: rgba(186, 148, 138, 0.32);
}

.guided-prayer-cat.selected {
  border-color: rgba(186, 148, 138, 0.42);
  background: rgba(252, 246, 242, 0.92);
  box-shadow: 0 3px 14px rgba(186, 160, 148, 0.08);
}

#guidedPrayersHub .guided-prayer-cat.prayer-pill {
  padding: 16px 18px;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
  color: inherit;
  background: rgba(255, 253, 251, 0.82);
  border-radius: var(--radius-lg);
}

#guidedPrayersHub .guided-prayer-cat.prayer-pill:hover,
#guidedPrayersHub .guided-prayer-cat.prayer-pill.selected {
  color: inherit;
}

.guided-prayer-cat__name {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}

.guided-prayer-cat__hint {
  font-size: 13px;
  line-height: 1.42;
  color: rgba(90, 74, 66, 0.52);
  font-style: normal;
}

.guided-prayers-hub__custom {
  margin-top: var(--sp-2);
  padding-top: var(--sp-2);
  border-top: 1px solid rgba(234, 208, 204, 0.14);
  overflow: visible;
}

.guided-prayers-hub .prayer-custom-wrap,
.guided-prayers-hub .guided-prayers-hub__custom-wrap {
  display: block;
  margin: 0;
  max-width: none;
}

.guided-prayers-hub .prayer-custom-wrap textarea {
  width: 100%;
  min-height: 88px;
  margin-bottom: 12px;
}

.guided-prayers-hub__custom-go {
  width: 100%;
  margin: 0;
}

.grounded-guidance-saved-link {
  display: block;
  width: 100%;
  margin: 16px auto 0;
  padding: 4px 8px;
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(138, 122, 114, 0.62);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}

.grounded-guidance-saved-link:hover {
  color: rgba(90, 74, 66, 0.72);
}

.grounded-guidance-saved-link[hidden] {
  display: none !important;
}

/* ─── Saved reflections modal ─── */
.gg-saved-modal {
  position: fixed;
  inset: 0;
  z-index: 10120;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 12px max(18px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.34s ease, visibility 0s linear 0.34s;
}

.gg-saved-modal--open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transition: opacity 0.38s ease, visibility 0s linear 0s;
}

.gg-saved-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(48, 36, 32, 0.14);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.gg-saved-modal__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 26rem;
  max-height: min(72vh, 520px);
  display: flex;
  flex-direction: column;
  padding: 22px 22px 18px;
  border-radius: 20px 20px 18px 18px;
  border: 1px solid rgba(234, 208, 204, 0.34);
  background: linear-gradient(168deg, rgba(255, 253, 251, 0.98) 0%, rgba(252, 246, 242, 0.99) 100%);
  box-shadow:
    0 18px 48px rgba(90, 74, 66, 0.1),
    0 4px 14px rgba(90, 74, 66, 0.04);
  transform: translateY(14px);
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.gg-saved-modal--open .gg-saved-modal__card {
  transform: translateY(0);
}

.gg-saved-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 252, 249, 0.72);
  color: rgba(90, 74, 66, 0.5);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.gg-saved-modal__title.display-font {
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
  margin: 0 36px 16px 4px;
  letter-spacing: -0.02em;
  text-align: left;
}

.gg-saved-modal__empty {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-light);
  font-style: italic;
  text-align: center;
  margin: 12px 0 20px;
}

.gg-saved-modal__empty[hidden] {
  display: none !important;
}

.gg-saved-modal__list {
  list-style: none;
  margin: 0;
  padding: 0 2px 6px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-height: 0;
}

.gg-saved-modal__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(234, 208, 204, 0.22);
}

.gg-saved-modal__item:last-child {
  border-bottom: none;
}

.gg-saved-modal__item-open {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.gg-saved-modal__item-date {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(186, 148, 138, 0.82);
  margin-bottom: 6px;
}

.gg-saved-modal__item-preview {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 14.5px;
  line-height: 1.55;
  font-weight: 400;
  font-style: normal;
  color: var(--text);
  letter-spacing: -0.004em;
}

.gg-saved-modal__item-preview em {
  font-style: italic;
}

.gg-saved-modal__item-remove {
  flex-shrink: 0;
  margin-top: 2px;
  padding: 6px 2px;
  border: none;
  background: transparent;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(138, 122, 114, 0.62);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(186, 148, 138, 0.28);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.gg-saved-modal__item-remove:hover {
  color: rgba(168, 107, 98, 0.88);
}

@media (prefers-reduced-motion: reduce) {
  .gg-saved-modal,
  .gg-saved-modal__card {
    transition: none;
  }

  .gg-saved-modal__card,
  .gg-saved-modal--open .gg-saved-modal__card {
    transform: none;
  }
}

.gg-prayer-guidance-card--highlight,
#groundedGuidancePrayerHero.gg-prayer-guidance-card--highlight .gg-prayer-guidance-card {
  box-shadow:
    0 0 0 2px rgba(186, 148, 138, 0.34),
    0 10px 32px rgba(186, 160, 148, 0.14);
  transition: box-shadow 0.45s ease;
}

/* ─── One-time feature announcement ─── */
.gg-announcement {
  position: fixed;
  inset: 0;
  z-index: 10070;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.38s ease, visibility 0s linear 0.38s;
}

.gg-announcement--open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transition: opacity 0.42s ease, visibility 0s linear 0s;
}

.gg-announcement--closing {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.34s ease, visibility 0s linear 0.34s;
}

.gg-announcement__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(36, 28, 24, 0.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.gg-announcement__card {
  position: relative;
  z-index: 1;
  width: 88%;
  max-width: 340px;
  padding: 30px 26px 26px;
  text-align: center;
  border-radius: 22px;
  border: 1px solid rgba(234, 208, 204, 0.32);
  background: linear-gradient(168deg, rgba(255, 253, 251, 0.98) 0%, rgba(252, 246, 242, 0.99) 100%);
  box-shadow:
    0 22px 52px rgba(90, 74, 66, 0.07),
    0 6px 20px rgba(90, 74, 66, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  opacity: 0;
  transform: translateY(12px) scale(0.985);
  transition: opacity 0.42s ease, transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.gg-announcement--open .gg-announcement__card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.gg-announcement--closing .gg-announcement__card {
  opacity: 0;
  transform: translateY(8px) scale(0.99);
  transition: opacity 0.3s ease, transform 0.32s ease;
}

.gg-announcement__title.display-font {
  font-size: clamp(1.32rem, 5.4vw, 1.52rem);
  font-weight: 600;
  line-height: 1.28;
  color: var(--text);
  margin: 0 0 14px;
  letter-spacing: -0.024em;
}

.gg-announcement__body.body-font {
  font-size: 15px;
  line-height: 1.62;
  color: rgba(90, 74, 66, 0.82);
  margin: 0 auto 10px;
  max-width: 248px;
}

.gg-announcement__subtext.body-font {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(90, 74, 66, 0.5);
  letter-spacing: 0.03em;
  margin: 0 auto 24px;
  max-width: 248px;
}

.gg-announcement__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gg-announcement__btn {
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  line-height: 1.3;
  cursor: pointer;
  border: none;
  transition:
    background 0.28s ease,
    box-shadow 0.28s ease,
    opacity 0.24s ease,
    transform 0.22s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.gg-announcement__btn--primary {
  background: linear-gradient(180deg, rgba(186, 148, 138, 0.97) 0%, rgba(174, 132, 122, 1) 100%);
  color: var(--card, #fff);
  box-shadow:
    0 4px 14px rgba(174, 132, 122, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.gg-announcement__btn--primary:hover {
  opacity: 1;
  box-shadow:
    0 6px 18px rgba(174, 132, 122, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.gg-announcement__btn--primary:active {
  transform: translateY(0) scale(0.985);
  box-shadow:
    0 2px 10px rgba(174, 132, 122, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

@media (prefers-reduced-motion: reduce) {
  .gg-announcement,
  .gg-announcement__card,
  .gg-prayer-guidance-card--highlight {
    transition: none;
  }
}

/* ─── Fullscreen flow overlay ─── */
.grounded-guidance-flow {
  position: fixed;
  inset: 0;
  z-index: 10140;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #fffaf7 0%, #fdf6f2 38%, #faf3ef 100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.42s ease, visibility 0s linear 0.42s;
  overflow: hidden;
}

.grounded-guidance-flow--open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transition: opacity 0.45s ease, visibility 0s linear 0s;
}

body.grounded-guidance-flow-open {
  overflow: hidden;
}

body.grounded-guidance-flow-open .bottom-nav {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.grounded-guidance-flow__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(255, 244, 220, 0.22) 0%, transparent 58%),
    radial-gradient(ellipse 70% 45% at 100% 100%, rgba(234, 208, 204, 0.14) 0%, transparent 52%);
}

.grounded-guidance-flow__header {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: max(12px, env(safe-area-inset-top)) 16px 8px;
}

.grounded-guidance-flow__close {
  align-self: flex-end;
  width: 44px;
  height: 44px;
  margin-right: 2px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 252, 249, 0.72);
  color: rgba(90, 74, 66, 0.55);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.22s ease, color 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}

.grounded-guidance-flow__close:hover {
  color: var(--text);
  background: rgba(244, 234, 228, 0.55);
}

.grounded-guidance-flow__close:active {
  transform: scale(0.96);
}

.grounded-guidance-flow__steps {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(138, 122, 114, 0.55);
}

.grounded-guidance-flow__step-sep {
  opacity: 0.35;
  font-weight: 400;
  letter-spacing: 0;
  user-select: none;
}

.grounded-guidance-flow__step--active {
  color: var(--accent-strong);
  opacity: 1;
}

.grounded-guidance-flow__step--done {
  color: rgba(90, 74, 66, 0.62);
  opacity: 0.85;
}

.grounded-guidance-flow__body {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 20px max(28px, env(safe-area-inset-bottom));
}

.grounded-guidance-flow__panel {
  max-width: 26rem;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.38s ease, transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  padding: 0 20px max(28px, env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.grounded-guidance-flow__panel[hidden] {
  display: none !important;
}

.grounded-guidance-flow__panel--active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.grounded-guidance-flow__title.display-font {
  font-size: clamp(1.45rem, 5.2vw, 1.72rem);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0 0 12px;
  text-align: center;
}

.grounded-guidance-flow__sub.body-font {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-light);
  font-style: italic;
  text-align: center;
  margin: 0 auto 26px;
  max-width: 20rem;
}

.grounded-guidance-flow__textarea-wrap {
  margin-bottom: 18px;
}

.grounded-guidance-flow__textarea-wrap--speech {
  position: relative;
}

.grounded-guidance-flow__textarea--with-speech {
  padding-right: 52px;
}

.grounded-guidance-flow__speech-mic {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  color: rgba(186, 148, 138, 0.82);
  background: rgba(255, 251, 248, 0.92);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 4px 14px rgba(186, 160, 148, 0.12);
  transition:
    color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.grounded-guidance-flow__speech-mic:hover {
  color: rgba(168, 107, 98, 0.95);
  background: rgba(252, 244, 238, 0.98);
}

.grounded-guidance-flow__speech-mic:active {
  transform: scale(0.96);
}

.grounded-guidance-flow__speech-mic--active,
.grounded-guidance-flow__textarea-wrap--listening .grounded-guidance-flow__speech-mic {
  color: rgba(168, 107, 98, 0.98);
  background: rgba(247, 231, 228, 0.95);
}

.grounded-guidance-flow__textarea-wrap--listening .grounded-guidance-flow__speech-mic {
  animation: grounded-guidance-speech-pulse 2s ease-in-out infinite;
}

@keyframes grounded-guidance-speech-pulse {
  0%,
  100% {
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.9),
      0 4px 14px rgba(186, 160, 148, 0.14);
  }
  50% {
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.9),
      0 0 0 6px rgba(234, 208, 204, 0.22),
      0 6px 18px rgba(186, 160, 148, 0.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .grounded-guidance-flow__textarea-wrap--listening .grounded-guidance-flow__speech-mic {
    animation: none;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.9),
      0 0 0 4px rgba(234, 208, 204, 0.2),
      0 4px 14px rgba(186, 160, 148, 0.16);
  }
}

.grounded-guidance-flow__speech-mic[hidden] {
  display: none !important;
}

.grounded-guidance-flow__speech-status {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(186, 148, 138, 0.88);
  text-align: right;
  margin: 8px 2px 0;
  font-style: italic;
}

.grounded-guidance-flow__speech-status[hidden] {
  display: none !important;
}

.grounded-guidance-flow__speech-status--denied {
  color: rgba(138, 122, 114, 0.88);
  text-align: center;
}

.grounded-guidance-flow__textarea-wrap--speech-unavailable .grounded-guidance-flow__speech-mic {
  display: none;
}

.grounded-guidance-flow__textarea {
  width: 100%;
  min-height: 168px;
  resize: vertical;
  padding: 18px 18px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(234, 208, 204, 0.48);
  background: rgba(255, 253, 250, 0.92);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.62;
  color: var(--text);
  box-sizing: border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 4px 18px rgba(90, 74, 66, 0.04);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.grounded-guidance-flow__textarea::placeholder {
  color: rgba(138, 122, 114, 0.72);
  font-style: italic;
}

.grounded-guidance-flow__textarea:focus {
  outline: none;
  border-color: rgba(186, 160, 148, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 0 3px rgba(234, 208, 204, 0.28);
}

.grounded-guidance-flow__textarea--invalid {
  border-color: rgba(196, 140, 130, 0.55);
}

.grounded-guidance-flow__validation {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(168, 107, 98, 0.92);
  font-style: italic;
  text-align: center;
  margin: -6px 0 14px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.28s ease, max-height 0.28s ease, margin 0.28s ease;
}

.grounded-guidance-flow__validation--visible {
  opacity: 1;
  max-height: 3rem;
  margin: 0 0 14px;
}

.grounded-guidance-flow__chips-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(138, 122, 114, 0.65);
  text-align: center;
  margin: 0 0 12px;
}

.grounded-guidance-flow__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
}

.grounded-guidance-flow__chip {
  padding: 9px 16px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 400;
  font-family: inherit;
  color: var(--text-light);
  background: rgba(255, 251, 247, 0.88);
  border: 1px solid rgba(234, 208, 204, 0.38);
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.grounded-guidance-flow__chip:hover {
  border-color: rgba(186, 160, 148, 0.42);
  color: var(--text);
}

.grounded-guidance-flow__chip:active {
  transform: scale(0.97);
}

.grounded-guidance-flow__chip--selected {
  background: var(--primary);
  border-color: rgba(186, 160, 148, 0.5);
  color: var(--text);
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(186, 160, 148, 0.14);
}

.grounded-guidance-flow__reassure.body-font {
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(138, 122, 114, 0.78);
  text-align: center;
  font-style: italic;
  margin: 0 auto 26px;
  max-width: 18.5rem;
}

.grounded-guidance-flow__cta {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

/* ─── Pause panel ─── */
.grounded-guidance-flow__pause {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: min(52vh, 420px);
  text-align: center;
  padding: 24px 8px;
}

.grounded-guidance-flow__pause-orb {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin-bottom: 28px;
  background: radial-gradient(circle at 38% 32%, rgba(255, 255, 255, 0.95) 0%, rgba(252, 244, 238, 0.9) 55%, rgba(234, 208, 204, 0.35) 100%);
  border: 1px solid rgba(234, 208, 204, 0.45);
  box-shadow: 0 8px 28px rgba(186, 160, 148, 0.12);
  animation: groundedGuidancePausePulse 2.4s ease-in-out infinite;
}

@keyframes groundedGuidancePausePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.92;
    box-shadow: 0 8px 28px rgba(186, 160, 148, 0.12);
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
    box-shadow: 0 12px 36px rgba(186, 160, 148, 0.18);
  }
}

.grounded-guidance-flow__pause-title.display-font {
  font-size: 1.28rem;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 10px;
  line-height: 1.35;
}

.grounded-guidance-flow__pause-sub.body-font {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-light);
  font-style: italic;
  margin: 0;
  max-width: 16rem;
}

@media (prefers-reduced-motion: reduce) {
  .grounded-guidance-flow__pause-orb {
    animation: none;
  }

  .grounded-guidance-flow,
  .grounded-guidance-flow__panel {
    transition: none;
  }
}

/* ─── Response screen — premium editorial devotional ─── */
@keyframes ggResponseReveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.grounded-guidance-flow__response-scroll {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 6px 0 0;
  max-width: 31.5rem;
  margin: 0 auto;
}

/* What you asked — editorial acknowledgment */
.grounded-guidance-flow__submitted {
  position: relative;
  background: linear-gradient(152deg, rgba(255, 253, 251, 0.98) 0%, rgba(251, 246, 241, 0.94) 55%, rgba(248, 242, 236, 0.9) 100%);
  border: none;
  border-radius: calc(var(--radius-lg) + 2px);
  padding: 28px 32px 32px 36px;
  margin: 0 0 20px;
  box-shadow:
    0 12px 38px rgba(186, 160, 148, 0.08),
    0 3px 12px rgba(90, 74, 66, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.grounded-guidance-flow__submitted-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(138, 122, 114, 0.56);
  margin: 0 0 18px;
}

.grounded-guidance-flow__submitted-quote {
  position: relative;
  margin: 0;
  padding: 2px 0 2px 20px;
  border: none;
  border-left: 1px solid rgba(186, 148, 138, 0.22);
}

.grounded-guidance-flow__submitted-quote::before {
  content: '\201C';
  position: absolute;
  left: 2px;
  top: -0.2em;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.6rem, 10vw, 3.25rem);
  line-height: 1;
  font-weight: 400;
  color: rgba(186, 148, 138, 0.11);
  pointer-events: none;
  user-select: none;
}

.grounded-guidance-flow__submitted-text {
  position: relative;
  z-index: 1;
  font-size: clamp(15.5px, 4.15vw, 17px);
  line-height: 1.8;
  font-weight: 400;
  font-style: normal;
  color: rgba(90, 74, 66, 0.94);
  letter-spacing: -0.006em;
  margin: 0;
  white-space: pre-line;
  overflow-wrap: break-word;
  word-break: normal;
  text-wrap: pretty;
}

.grounded-guidance-flow__submitted-theme {
  display: inline-block;
  margin-top: 18px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent-strong);
  background: rgba(247, 231, 228, 0.55);
  border: 1px solid rgba(234, 208, 204, 0.35);
}

.grounded-guidance-flow__submitted-theme[hidden] {
  display: none !important;
}

/* Shared section label */
.grounded-guidance-flow__response-card {
  margin-bottom: 0;
}

.grounded-guidance-flow__response-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: rgba(186, 148, 138, 0.82);
  margin: 0 0 12px;
}

/* Hero — Grounded Perspective */
.grounded-guidance-flow__response-card--hero {
  position: relative;
  padding: 32px 28px 36px;
  margin: 0 0 28px;
  background: linear-gradient(168deg, #fffdf8 0%, #faf3eb 52%, #f5ebe3 100%);
  border: 1px solid rgba(234, 208, 204, 0.38);
  border-radius: calc(var(--radius-lg) + 2px);
  box-shadow:
    0 18px 52px rgba(186, 160, 148, 0.13),
    0 4px 14px rgba(90, 74, 66, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.grounded-guidance-flow__response-card--hero .grounded-guidance-flow__response-label {
  margin-bottom: 14px;
  color: rgba(186, 148, 138, 0.88);
  letter-spacing: 0.18em;
}

.grounded-guidance-flow__response-text--hero.display-font {
  font-size: clamp(0.95rem, 3.8vw, 1.05rem);
  line-height: 1.58;
  font-weight: 400;
  color: var(--text);
  margin: 0;
  font-style: normal;
  letter-spacing: -0.004em;
  white-space: pre-line;
  overflow-wrap: break-word;
  word-break: normal;
}

.grounded-guidance-flow__perspective-body.display-font {
  font-size: clamp(1.02rem, 4.4vw, 1.12rem);
  line-height: 1.78;
  font-weight: 400;
  font-style: normal;
  color: rgba(90, 74, 66, 0.94);
  letter-spacing: -0.003em;
}

.grounded-guidance-flow__perspective-anchor.display-font {
  font-size: clamp(1.08rem, 4.7vw, 1.24rem);
  line-height: 1.82;
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  letter-spacing: -0.008em;
}

.grounded-guidance-flow__perspective-prose .grounded-guidance-flow__perspective-anchor {
  margin-top: 0.15em;
  margin-bottom: 0.05em;
}

.grounded-guidance-flow__reflective-prose {
  display: flex;
  flex-direction: column;
  gap: 0;
  white-space: normal;
}

.grounded-guidance-flow__thought {
  margin: 0;
}

.grounded-guidance-flow__thought + .grounded-guidance-flow__thought {
  margin-top: 1.05em;
}

.grounded-guidance-flow__response-text--hero.grounded-guidance-flow__reflective-prose,
.grounded-guidance-flow__response-text--prose.grounded-guidance-flow__reflective-prose,
.grounded-guidance-flow__response-text--prayer.grounded-guidance-flow__reflective-prose {
  white-space: normal;
}

.grounded-guidance-flow__response-text--hero .grounded-guidance-flow__thought,
.grounded-guidance-flow__response-text--prayer .grounded-guidance-flow__thought {
  color: inherit;
  letter-spacing: inherit;
}

.grounded-guidance-flow__response-text--hero .grounded-guidance-flow__perspective-body,
.grounded-guidance-flow__response-text--hero .grounded-guidance-flow__perspective-anchor {
  font-family: 'Playfair Display', Georgia, serif;
}

.grounded-guidance-flow__response-text--prose .grounded-guidance-flow__thought {
  font: inherit;
  color: inherit;
}

/* Scripture */
.grounded-guidance-flow__response-card--scripture {
  padding: 0;
  margin-bottom: 26px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.grounded-guidance-flow__response-card--scripture .grounded-guidance-flow__response-label {
  margin-bottom: 14px;
}

.grounded-guidance-flow__scriptures-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.grounded-guidance-flow__scripture-more {
  display: block;
  width: 100%;
  margin: 4px 0 0;
  padding: 8px 4px 2px;
  border: none;
  background: transparent;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(138, 122, 114, 0.78);
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(186, 148, 138, 0.32);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.22s ease, text-decoration-color 0.22s ease;
}

.grounded-guidance-flow__scripture-more:hover {
  color: rgba(90, 74, 66, 0.82);
  text-decoration-color: rgba(186, 148, 138, 0.5);
}

.grounded-guidance-flow__scripture-more[hidden] {
  display: none !important;
}

.grounded-guidance-flow__scripture-card {
  padding: 24px 24px 26px 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(234, 208, 204, 0.32);
  border-left: 2px solid rgba(186, 148, 138, 0.48);
  background: linear-gradient(142deg, #fdf4ec 0%, #f9ece4 100%);
  box-shadow: 0 8px 30px rgba(186, 160, 148, 0.08);
}

.grounded-guidance-flow__scripture-card .grounded-guidance-flow__response-verse-ref.body-font {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(186, 148, 138, 0.88);
  margin: 0 0 14px;
  padding-bottom: 0;
  border-bottom: none;
}

.grounded-guidance-flow__scripture-card .grounded-guidance-flow__response-text.display-font {
  font-size: clamp(1.02rem, 4.4vw, 1.12rem);
  line-height: 1.78;
  font-weight: 400;
  font-style: normal;
  margin: 0 0 0;
  padding-bottom: 14px;
  overflow-wrap: break-word;
  word-break: normal;
  color: var(--text);
  letter-spacing: -0.008em;
}

.grounded-guidance-flow__scripture-card .grounded-guidance-flow__response-text.display-font em,
.grounded-guidance-flow__scripture-card .grounded-guidance-flow__response-text.display-font .editorial-closing {
  font-style: italic;
}

.grounded-guidance-flow__scripture-card .grounded-guidance-flow__response-text--prose {
  font-size: 13.5px;
  line-height: 1.78;
  color: rgba(90, 74, 66, 0.74);
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(234, 208, 204, 0.28);
}

/* Reflection — open editorial beat */
.grounded-guidance-flow__response-card--reflection {
  padding: 24px 8px 26px;
  margin-bottom: 24px;
  background: transparent;
  border: none;
  border-top: 1px solid rgba(234, 208, 204, 0.22);
  border-radius: 0;
  box-shadow: none;
}

.grounded-guidance-flow__response-question.display-font {
  font-size: clamp(1.04rem, 4.5vw, 1.14rem);
  line-height: 1.78;
  font-weight: 400;
  font-style: normal;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.008em;
  white-space: pre-line;
  overflow-wrap: break-word;
  word-break: normal;
}

.grounded-guidance-flow__response-question.display-font em,
.grounded-guidance-flow__response-question.display-font .editorial-closing {
  font-style: italic;
}

/* One small step — lightweight */
.grounded-guidance-flow__response-card--step {
  padding: 22px 24px 24px;
  margin-bottom: 26px;
  background: rgba(255, 253, 251, 0.72);
  border: 1px solid rgba(234, 208, 204, 0.22);
  border-radius: var(--radius);
  box-shadow: none;
}

.grounded-guidance-flow__response-text--prose.body-font {
  font-family: Inter, system-ui, sans-serif;
  font-size: 15.5px;
  line-height: 1.76;
  font-style: normal;
  font-weight: 400;
  color: rgba(90, 74, 66, 0.92);
  margin: 0;
  white-space: pre-line;
  overflow-wrap: break-word;
  word-break: normal;
}

/* Prayer — intimate closing */
.grounded-guidance-flow__response-card--prayer {
  padding: 28px 26px 32px;
  margin-bottom: 0;
  background: linear-gradient(180deg, rgba(255, 253, 251, 0.94) 0%, rgba(250, 244, 238, 0.82) 100%);
  border: 1px solid rgba(234, 208, 204, 0.26);
  border-radius: var(--radius-lg);
  box-shadow: 0 5px 22px rgba(186, 160, 148, 0.06);
}

.grounded-guidance-flow__response-text--prayer.display-font {
  font-size: clamp(1.02rem, 4.3vw, 1.08rem);
  line-height: 1.82;
  font-weight: 400;
  color: rgba(90, 74, 66, 0.94);
  margin: 0;
  font-style: normal;
  letter-spacing: -0.004em;
  white-space: pre-line;
  overflow-wrap: break-word;
  word-break: normal;
}

.grounded-guidance-flow__response-text--prayer.display-font em,
.grounded-guidance-flow__response-text--prayer.display-font .editorial-closing {
  font-style: italic;
}

@media (max-width: 480px) {
  .grounded-guidance-flow__response-scroll {
    max-width: 100%;
    padding-left: 2px;
    padding-right: 2px;
  }

  .grounded-guidance-flow__submitted {
    padding: 24px 22px 26px 28px;
    margin-bottom: 18px;
    border-radius: var(--radius-lg);
  }

  .grounded-guidance-flow__submitted-label {
    margin-bottom: 14px;
    letter-spacing: 0.11em;
  }

  .grounded-guidance-flow__submitted-quote {
    padding-left: 18px;
  }

  .grounded-guidance-flow__submitted-text {
    font-size: 15.5px;
    line-height: 1.78;
  }

  .grounded-guidance-flow__response-card--hero {
    padding: 28px 22px 30px;
    margin-bottom: 24px;
  }

  .grounded-guidance-flow__thought + .grounded-guidance-flow__thought {
    margin-top: 0.95em;
  }

  .grounded-guidance-flow__perspective-body.display-font {
    line-height: 1.74;
  }

  .grounded-guidance-flow__perspective-anchor.display-font {
    line-height: 1.8;
  }

  .grounded-guidance-flow__response-text--prose.body-font {
    line-height: 1.74;
  }

  .grounded-guidance-flow__response-text--prayer.display-font {
    line-height: 1.8;
  }

  .grounded-guidance-flow__response-card--reflection {
    padding-top: 20px;
    margin-bottom: 20px;
  }

  .grounded-guidance-flow__response-card--step,
  .grounded-guidance-flow__response-card--scripture {
    margin-bottom: 22px;
  }
}

.grounded-guidance-flow__response-text.display-font {
  font-size: clamp(1.02rem, 4.3vw, 1.08rem);
  line-height: 1.76;
  color: var(--text);
  margin: 0;
  font-style: normal;
  white-space: pre-line;
  overflow-wrap: break-word;
  word-break: normal;
}

.grounded-guidance-flow__response-text.display-font em,
.grounded-guidance-flow__response-text.display-font .editorial-closing {
  font-style: italic;
}

/* Soft reveal when response panel opens */
.grounded-guidance-flow__panel[data-guidance-panel='response'].grounded-guidance-flow__panel--active .grounded-guidance-flow__response-scroll {
  animation: ggResponseReveal 0.42s ease both;
}

.grounded-guidance-flow__panel[data-guidance-panel='response'].grounded-guidance-flow__panel--active .grounded-guidance-flow__response-footer {
  animation: ggResponseReveal 0.38s ease 0.06s both;
}

.grounded-guidance-flow__body:has(
  .grounded-guidance-flow__panel[data-guidance-panel='response'].grounded-guidance-flow__panel--active
) {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}

.grounded-guidance-flow__panel[data-guidance-panel='response'] {
  position: relative;
}

.grounded-guidance-flow__panel[data-guidance-panel='response'].grounded-guidance-flow__panel--active {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 31.5rem;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 0;
}

.grounded-guidance-flow__panel[data-guidance-panel='response'].grounded-guidance-flow__panel--active
  .grounded-guidance-flow__response-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.grounded-guidance-flow__response-footer {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  margin: 32px 0 0;
  padding: 28px 0 max(32px, calc(16px + env(safe-area-inset-bottom, 0px)));
  background: transparent;
  border-top: 1px solid rgba(234, 208, 204, 0.28);
  box-shadow: none;
}

.grounded-guidance-flow__response-footer--continuation {
  margin-top: 28px;
  padding-top: 28px;
  border-top-color: rgba(234, 208, 204, 0.32);
}

.grounded-guidance-flow__response-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  padding: 0 4px;
  border-top: none;
  background: transparent;
  position: relative;
  z-index: 1;
}

.grounded-guidance-flow__response-actions[hidden] {
  display: none !important;
}

.grounded-guidance-flow__response-loading {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 32px 24px;
  background: rgba(255, 251, 248, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.grounded-guidance-flow__response-loading:not([hidden]) {
  display: flex;
  pointer-events: auto;
  opacity: 1;
}

.grounded-guidance-flow__response-loading-text {
  font-size: clamp(1.05rem, 4vw, 1.2rem);
  font-weight: 400;
  color: rgba(90, 74, 66, 0.82);
  text-align: center;
  margin: 0;
}

.grounded-guidance-flow__panel[data-guidance-panel='response'].grounded-guidance-flow__panel--continuation-open
  .grounded-guidance-flow__response-scroll {
  padding-bottom: var(--sp-3);
}

.grounded-guidance-flow__response-footer--continuation .grounded-guidance-flow__response-actions {
  display: none !important;
}

.grounded-guidance-flow__continuation {
  display: none;
  padding: 0 2px max(8px, env(safe-area-inset-bottom, 0px));
  margin-top: 0;
  width: 100%;
}

.grounded-guidance-flow__continuation--visible,
.grounded-guidance-flow__response-footer--continuation .grounded-guidance-flow__continuation {
  display: block !important;
}

.grounded-guidance-flow__continuation[hidden]:not(.grounded-guidance-flow__continuation--visible) {
  display: none !important;
}

.grounded-guidance-flow__continuation-back {
  display: inline-block;
  margin: 0 0 20px;
  padding: 0;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(90, 74, 66, 0.58);
  cursor: pointer;
  border-bottom: 1px solid rgba(186, 148, 138, 0.24);
  transition: color 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.grounded-guidance-flow__continuation-back:hover {
  color: rgba(90, 74, 66, 0.82);
  border-bottom-color: rgba(186, 148, 138, 0.45);
}

.grounded-guidance-flow__continuation-title {
  font-size: clamp(1.2rem, 4.6vw, 1.45rem);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 10px;
}

.grounded-guidance-flow__continuation-helper {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(90, 74, 66, 0.72);
  margin: 0 0 18px;
  max-width: 28rem;
}

.grounded-guidance-flow__textarea-wrap--continuation {
  margin-bottom: 12px;
}

.grounded-guidance-flow__continuation-validation {
  font-size: 13px;
  line-height: 1.45;
  color: var(--accent-strong);
  margin: 0 0 14px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.22s ease, max-height 0.22s ease, margin 0.22s ease;
}

.grounded-guidance-flow__continuation-validation--visible {
  opacity: 1;
  max-height: 4rem;
  margin-bottom: 14px;
}

.grounded-guidance-flow__continuation .grounded-guidance-flow__cta {
  width: 100%;
  margin-top: 8px;
}

.grounded-guidance-flow__continuation .grounded-guidance-flow__cta--busy {
  opacity: 0.72;
  pointer-events: none;
}

.grounded-guidance-flow__prior-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.grounded-guidance-flow__prior-list[hidden] {
  display: none !important;
}

.grounded-guidance-flow__prior-block {
  padding: 22px 20px 20px;
  border-radius: calc(var(--radius-lg) - 2px);
  background: rgba(252, 246, 242, 0.72);
  border: 1px solid rgba(234, 208, 204, 0.32);
  box-shadow: none;
}

.grounded-guidance-flow__prior-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(186, 148, 138, 0.78);
  margin: 0 0 10px;
}

.grounded-guidance-flow__prior-followup {
  font-size: 14px;
  line-height: 1.55;
  font-style: normal;
  color: rgba(90, 74, 66, 0.78);
  margin: 0 0 14px;
}

.grounded-guidance-flow__prior-followup em,
.grounded-guidance-flow__prior-followup .editorial-closing {
  font-style: italic;
}

.grounded-guidance-flow__prior-section {
  margin-top: 12px;
}

.grounded-guidance-flow__prior-section-title {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(186, 148, 138, 0.7);
  margin: 0 0 6px;
}

.grounded-guidance-flow__prior-section-text {
  font-size: 14px;
  line-height: 1.62;
  color: rgba(90, 74, 66, 0.8);
  margin: 0;
  white-space: pre-line;
}

/* Primary CTA — Keep working through this */
.grounded-guidance-flow__response-actions .grounded-guidance-flow__action-btn--continue {
  display: block;
  width: 100%;
  max-width: 300px;
  min-height: 50px;
  margin: 0 auto 14px;
  padding: 13px 24px;
  border-radius: 100px;
  border: none;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.35;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  color: var(--card, #fff);
  background: var(--rose-btn, #b58a82);
  box-shadow: 0 3px 16px rgba(186, 160, 148, 0.2);
  transition: opacity 0.22s ease, transform 0.15s ease, box-shadow 0.22s ease;
}

.grounded-guidance-flow__response-actions .grounded-guidance-flow__action-btn--continue:hover {
  opacity: 0.95;
  color: var(--card, #fff);
  background: var(--rose-btn, #b58a82);
  box-shadow: 0 5px 20px rgba(186, 160, 148, 0.26);
}

.grounded-guidance-flow__response-actions .grounded-guidance-flow__action-btn--continue:active {
  transform: scale(0.98);
  opacity: 0.92;
}

.grounded-guidance-flow__response-actions .grounded-guidance-flow__action-btn--continue[hidden] {
  display: none !important;
  pointer-events: none !important;
  margin: 0;
}

.grounded-guidance-flow__response-actions .grounded-guidance-flow__action-btn--continue:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Secondary inline actions */
.grounded-guidance-flow__action-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 8px;
  width: 100%;
  max-width: 20rem;
  margin: 0 auto;
  padding: 2px 0 0;
}

.grounded-guidance-flow__action-link {
  min-height: 40px;
  padding: 8px 6px;
  border: none;
  border-radius: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.35;
  color: rgba(90, 74, 66, 0.58);
  cursor: pointer;
  text-decoration: none;
  box-shadow: none;
  transition: color 0.2s ease, opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.grounded-guidance-flow__action-link:hover {
  color: rgba(90, 74, 66, 0.82);
}

.grounded-guidance-flow__action-link:active {
  color: var(--accent-strong, #a86b62);
}

.grounded-guidance-flow__action-link:disabled {
  opacity: 0.38;
  cursor: default;
  pointer-events: none;
}

.grounded-guidance-flow__action-link--busy {
  opacity: 0.45;
  pointer-events: none;
}

.grounded-guidance-flow__action-link--saved {
  color: rgba(186, 148, 138, 0.88);
}

.grounded-guidance-flow__action-dot {
  color: rgba(186, 148, 138, 0.42);
  font-size: 13px;
  line-height: 1;
  user-select: none;
  padding: 0 1px;
}

.grounded-guidance-flow__toast {
  position: fixed;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(10px);
  z-index: 10220;
  max-width: min(18rem, 88vw);
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(50, 38, 32, 0.9);
  color: #fffaf2;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.grounded-guidance-flow__toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.grounded-guidance-flow__action-btn {
  min-height: 42px;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  letter-spacing: 0.01em;
  line-height: 1.35;
  cursor: pointer;
  border: 1px solid rgba(234, 208, 204, 0.42);
  background: rgba(255, 253, 251, 0.92);
  color: var(--text);
  box-shadow: 0 2px 12px rgba(90, 74, 66, 0.04);
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.15s ease, box-shadow 0.22s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.grounded-guidance-flow__action-btn:hover {
  background: rgba(252, 244, 238, 0.95);
  border-color: rgba(186, 148, 138, 0.45);
  box-shadow: 0 4px 16px rgba(186, 160, 148, 0.1);
}

.grounded-guidance-flow__action-btn:active {
  background: rgba(247, 231, 228, 0.65);
  border-color: rgba(186, 148, 138, 0.5);
  transform: scale(0.98);
}

.grounded-guidance-flow__action-btn--primary {
  width: 100%;
  max-width: none;
  margin: 0;
  font-weight: 600;
  background: var(--rose-btn);
  color: var(--card);
  border-color: var(--rose-btn);
  box-shadow: none;
}

.grounded-guidance-flow__action-btn--primary:hover {
  background: var(--rose-btn);
  color: var(--card);
  opacity: 0.92;
}

.grounded-guidance-flow__action-btn--primary:active {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

@media (prefers-reduced-motion: reduce) {
  .grounded-guidance-flow__panel[data-guidance-panel='response'].grounded-guidance-flow__panel--active .grounded-guidance-flow__response-scroll,
  .grounded-guidance-flow__panel[data-guidance-panel='response'].grounded-guidance-flow__panel--active .grounded-guidance-flow__response-footer {
    animation: none;
  }
}

.grounded-guidance-flow__error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: min(48vh, 380px);
  text-align: center;
  padding: 24px 8px 12px;
}

.grounded-guidance-flow__error-title.display-font {
  font-size: 1.32rem;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 14px;
  line-height: 1.35;
  max-width: 18rem;
}

.grounded-guidance-flow__error-body.body-font {
  font-size: 15px;
  line-height: 1.62;
  color: var(--text-light);
  font-style: italic;
  margin: 0 auto 28px;
  max-width: 17rem;
}

.grounded-guidance-flow__error-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 280px;
}

.grounded-guidance-flow__error-actions .grounded-guidance-flow__action-btn--primary {
  width: 100%;
}

.grounded-guidance-flow__continue--busy {
  opacity: 0.72;
  pointer-events: none;
}
