/* Verse Context discovery page — Scripture+ layer. Uses the app theme tokens. */

#screen-scriptureplus .spx-verse-context-layer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  right: auto;
  width: min(420px, 100%);
  transform: translateX(-50%);
  z-index: 168;
  background: var(--bg, #fff8f6);
  display: none;
  flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: var(--layout-pad-bottom, max(100px, calc(88px + env(safe-area-inset-bottom, 0px))));
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  box-sizing: border-box;
  overflow: hidden;
}

#screen-scriptureplus .spx-verse-context-layer.spx-verse-context-layer--open {
  display: flex;
}

#scripturePlusScreen.spx-verse-context-view-open #screen-scriptureplus .spx-landing,
#scripturePlusScreen.spx-verse-context-view-open .spx-landing-hero-media {
  display: none !important;
}

#scripturePlusScreen.spx-verse-context-view-open .scripture-plus-screen {
  min-height: 0;
}

html:has(#scripturePlusScreen.spx-verse-context-view-open),
body:has(#scripturePlusScreen.spx-verse-context-view-open) {
  overflow: hidden;
}

.vcl-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  background:
    radial-gradient(120% 70% at 100% -10%, rgba(240, 212, 204, 0.55), transparent 55%),
    radial-gradient(90% 50% at -10% 20%, rgba(247, 231, 228, 0.9), transparent 50%),
    var(--bg, #fff8f6);
}

.vcl-top {
  flex: 0 0 auto;
  padding: 8px 16px 0;
}

.vcl-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 20px 28px;
}

.vcl-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.vcl-wrap {
  width: 100%;
  max-width: 32rem;
  margin: 0 auto;
  container-type: inline-size;
}

.vcl-kicker {
  margin: 0 0 8px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-strong, #d4b5ad);
}

.vcl-hero {
  padding: 4px 0 0;
}

.vcl-title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(32px, 8vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text, #5a4a42);
}

.vcl-lead {
  margin: 12px 0 0;
  max-width: 28rem;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-light, #8a7a72);
}

.vcl-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.vcl-btn:focus-visible,
.vcl-card:focus-visible,
.vcl-link:focus-visible,
.vcl-input:focus-visible {
  outline: 2px solid var(--accent-strong, #d4b5ad);
  outline-offset: 2px;
}

.vcl-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.vcl-btn--primary {
  /* Same pale blush as .onboarding-continue (--onboarding-cta-bg). */
  background: linear-gradient(180deg, #f7ebe6 0%, #eadfd8 100%);
  color: #5a4a42;
  border-color: rgba(186, 160, 148, 0.38);
  box-shadow:
    0 4px 18px rgba(90, 74, 66, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.vcl-btn--primary:active {
  filter: brightness(0.96);
  transform: scale(0.98);
}

.vcl-btn--ghost {
  background: rgba(255, 252, 249, 0.72);
  color: var(--text, #5a4a42);
  border-color: rgba(212, 181, 173, 0.7);
}

.vcl-section {
  margin-top: 28px;
}

.vcl-section--sample {
  margin-top: 20px;
}

.vcl-section-title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text, #5a4a42);
}

.vcl-section-copy {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-light, #8a7a72);
}

.vcl-hero .vcl-explore,
.vcl-explore {
  margin-top: 18px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 252, 249, 0.88);
  border: 1px solid rgba(234, 208, 204, 0.55);
  box-shadow: var(--shadow, 0 2px 16px rgba(90, 74, 66, 0.05));
}

.vcl-label {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--text, #5a4a42);
}

.vcl-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(212, 181, 173, 0.65);
  background: #fff;
  color: var(--text, #5a4a42);
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
}

.vcl-input::placeholder {
  color: rgba(138, 122, 114, 0.85);
}

.vcl-explore .vcl-btn {
  width: 100%;
  margin-top: 12px;
}

.vcl-error {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: #8a4e46;
}

.vcl-status {
  margin: 10px 0 0;
  font-size: 13.5px;
  color: var(--text-light, #8a7a72);
}

.vcl-link-row {
  margin: 12px 0 0;
}

.vcl-link {
  appearance: none;
  background: none;
  border: 0;
  padding: 4px 0;
  min-height: 44px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--rose-btn, #a86b62);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vcl-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

.vcl-card {
  appearance: none;
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 16px 14px;
  border-radius: 18px;
  border: 1px solid rgba(234, 208, 204, 0.55);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow, 0 2px 16px rgba(90, 74, 66, 0.05));
  color: inherit;
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.vcl-card:active {
  transform: scale(0.99);
}

.vcl-card-ref {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text, #5a4a42);
}

.vcl-card-q {
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--text-light, #8a7a72);
}

.vcl-sample {
  margin-top: 12px;
  padding: 18px 16px 16px;
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(255, 251, 248, 0.96) 0%, rgba(247, 231, 228, 0.55) 100%);
  border: 1px solid rgba(212, 181, 173, 0.45);
  box-shadow: var(--shadow-lg, 0 6px 20px rgba(90, 74, 66, 0.08));
}

.vcl-sample-ref {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text, #5a4a42);
}

.vcl-sample-q {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-light, #8a7a72);
}

.vcl-structure {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  border-radius: 16px;
  background: rgba(255, 252, 249, 0.72);
  border: 1px solid rgba(234, 208, 204, 0.4);
}

.vcl-structure li {
  margin: 0;
  padding: 11px 14px;
  border-top: 1px solid rgba(234, 208, 204, 0.35);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 16px;
  color: var(--text, #5a4a42);
}

.vcl-structure li:first-child {
  border-top: 0;
}

.vcl-sample-note {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text, #5a4a42);
}

.vcl-sample .vcl-btn {
  width: 100%;
  margin-top: 14px;
}

.vcl-paths {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.vcl-path {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 12px 14px;
  text-align: left;
  border-radius: 16px;
  border: 1px solid rgba(234, 208, 204, 0.5);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text, #5a4a42);
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.vcl-path span:last-child {
  color: rgba(90, 74, 66, 0.35);
  font-size: 18px;
}

.vcl-close {
  margin-top: 28px;
  padding: 16px 8px 4px;
  text-align: center;
}

.vcl-close .vcl-section-title,
.vcl-close .vcl-section-copy {
  text-align: center;
}

.vcl-close .vcl-btn {
  margin-top: 14px;
  min-width: 200px;
}

@container (min-width: 560px) {
  .vcl-cards {
    grid-template-columns: 1fr 1fr;
  }
}
