/* Keep clean flyer typography while adapting app surfaces to the active theme. */
html[data-theme] {
  --scripture-ink: #183d30;
  --scripture-secondary-ink: #315747;
  --scripture-border: rgba(24, 61, 48, 0.16);
  --scripture-hover-border: rgba(24, 61, 48, 0.28);
  --scripture-shadow: 0 2px 14px rgba(24, 61, 48, 0.08);
  --scripture-badge-bg: #dce9dd;
  --scripture-control-border: #c4d8c8;
  --scripture-control-bg: #f8faf6;
  --scripture-control-hover: #dce9dd;
  --scripture-primary-bg: #1e3a2f;
  --scripture-primary-ink: #ffffff;
  --scripture-index-ink: rgba(24, 61, 48, 0.14);
}

html[data-theme="dark"] {
  --scripture-theme-bg: #182329;
  --scripture-reader-theme-bg: #182329;
  --scripture-ink: #eef3ee;
  --scripture-secondary-ink: #b9ccbf;
  --scripture-border: #35443b;
  --scripture-hover-border: #567362;
  --scripture-shadow: none;
  --scripture-badge-bg: #293d32;
  --scripture-control-border: #40584a;
  --scripture-control-bg: #24342b;
  --scripture-control-hover: #354c3e;
  --scripture-primary-bg: #b7d7c1;
  --scripture-primary-ink: #183d30;
  --scripture-index-ink: rgba(238, 243, 238, 0.14);
}

html[data-theme="dark"] :is(#view-home, .daily-verse-public-page) .daily-promise-card.scripture-flyer-surface,
html[data-theme="dark"] .onboarding-promise-card.scripture-flyer-surface,
html[data-theme="dark"] #sunday-scripture-panel-card.scripture-flyer-surface {
  --scripture-theme-bg: #192820;
}

html[data-theme="dark"] #view-home .hymn-today-card.scripture-flyer-surface {
  --scripture-theme-bg: #281f26;
}
html[data-theme] :is(#view-home, .daily-verse-public-page) .scripture-flyer-surface,
html[data-theme] .onboarding-promise-card.scripture-flyer-surface,
html[data-theme] #sunday-scripture-panel-card.scripture-flyer-surface {
  background: var(--scripture-theme-bg, var(--scripture-card-bg, #f8f4eb));
  color: var(--scripture-ink);
  border-color: var(--scripture-border);
  box-shadow: var(--scripture-shadow);
}

html[data-theme] :is(#view-home, .daily-verse-public-page) .scripture-flyer-surface:hover {
  border-color: var(--scripture-hover-border);
}

html[data-theme] :is(#view-home, .daily-verse-public-page) .daily-promise-card.scripture-flyer-surface,
html[data-theme] .onboarding-promise-card.scripture-flyer-surface {
  --scripture-card-bg: #eef4ed;
}

html[data-theme] #view-home .hymn-today-card.scripture-flyer-surface {
  --scripture-card-bg: #f7eff1;
}

html[data-theme] :is(#view-home, .daily-verse-public-page) .scripture-flyer-surface :is(.scripture-text, .daily-promise-quote),
html[data-theme] .onboarding-promise-card.scripture-flyer-surface .onboarding-promise-quote,
html[data-theme] #sunday-scripture-panel-card.scripture-flyer-surface #sunday-scripture-text {
  color: var(--scripture-ink);
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  text-shadow: none;
  max-width: 100%;
}

html[data-theme] :is(#view-home, .daily-verse-public-page) .scripture-flyer-surface :is(.scripture-ref, .daily-promise-ref),
html[data-theme] :is(#view-home, .daily-verse-public-page) .scripture-flyer-surface :is(.scripture-ref, .daily-promise-ref) :is(svg, i),
html[data-theme] .onboarding-promise-card.scripture-flyer-surface :is(.onboarding-promise-ref, .onboarding-promise-translation),
html[data-theme] #sunday-scripture-panel-card.scripture-flyer-surface .sunday-scripture-footer {
  color: var(--scripture-secondary-ink);
  text-shadow: none;
}

html[data-theme] :is(#view-home, .daily-verse-public-page) .scripture-flyer-surface :is(.scripture-ref, .daily-promise-ref) {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

html[data-theme] :is(#view-home, .daily-verse-public-page) .scripture-flyer-surface :is(.victory-badge, .daily-promise-eyebrow),
html[data-theme] #sunday-scripture-panel-card.scripture-flyer-surface #sunday-word-badge,
html[data-theme] #view-home #home-hymn-badge {
  color: var(--scripture-secondary-ink);
  background: var(--scripture-badge-bg);
  border-color: var(--scripture-control-border);
  box-shadow: none;
}

html[data-theme] :is(#view-home, .daily-verse-public-page) .scripture-flyer-surface :is(.daily-promise-category, .hymn-today-meta, .hymn-today-snippet),
html[data-theme] :is(#view-home, .daily-verse-public-page) .scripture-flyer-surface :is(.victory-badge, .daily-promise-eyebrow) :is(svg, i),
html[data-theme] .onboarding-promise-card.scripture-flyer-surface :is(.onboarding-kicker-badge, .onboarding-promise-category-badge, .onboarding-promise-opening, .onboarding-ref-icon) {
  color: var(--scripture-secondary-ink);
  text-shadow: none;
}

html[data-theme] #view-home .scripture-flyer-surface .hymn-today-title {
  color: var(--scripture-ink);
  text-shadow: none;
}

html[data-theme] #view-home .scripture-flyer-surface .victory-btn {
  background: var(--scripture-primary-bg);
  color: var(--scripture-primary-ink);
  border-color: var(--scripture-primary-bg);
}

html[data-theme] .onboarding-promise-card.scripture-flyer-surface::before,
html[data-theme] .onboarding-promise-card.scripture-flyer-surface::after {
  display: none;
}

html[data-theme] .onboarding-promise-card.scripture-flyer-surface .onboarding-promise-index {
  color: var(--scripture-index-ink);
}

html[data-theme] .onboarding-promise-card.scripture-flyer-surface :is(.onboarding-promise-meta, .onboarding-promise-category-badge) {
  border-color: var(--scripture-control-border);
}

html[data-theme] .scripture-reader-overlay {
  background-color: var(--scripture-reader-theme-bg, var(--reader-bg-color, #f8f4eb));
  background-image: none;
  color: var(--scripture-ink);
}

html[data-theme] .scripture-reader-overlay :is(.scripture-reader-tag, .scripture-reader-ref, .scripture-reader-passage) {
  color: var(--scripture-ink);
  text-shadow: none;
}

html[data-theme] .scripture-reader-overlay .scripture-reader-passage {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: normal;
  font-size: clamp(1.5rem, 4.5vw, 2.2rem);
  line-height: 1.5;
}

html[data-theme] .scripture-reader-overlay :is(.scripture-reader-icon-btn, .scripture-reader-secondary-btn, .scripture-reader-share-menu) {
  background: var(--scripture-control-bg);
  color: var(--scripture-ink);
  border-color: var(--scripture-control-border);
  box-shadow: var(--scripture-shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html[data-theme] .scripture-reader-overlay :is(.scripture-reader-icon-btn, .scripture-reader-secondary-btn, .scripture-reader-share-menu-btn):hover {
  background: var(--scripture-control-hover);
}

html[data-theme] .scripture-reader-overlay .scripture-reader-share-menu-btn,
html[data-theme] .scripture-reader-overlay .scripture-reader-share-menu-btn :is(svg, i) {
  color: var(--scripture-ink);
}

html[data-theme] .scripture-reader-overlay .scripture-reader-primary-btn {
  background: var(--scripture-primary-bg);
  border-color: var(--scripture-primary-bg);
  color: var(--scripture-primary-ink);
}

html[data-theme] #view-home .scripture-flyer-surface .scripture-expand-hint {
  display: block;
  margin-top: 0.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: var(--scripture-secondary-ink);
  font-size: 0.8125rem;
  font-weight: 600;
}
html[data-theme] #view-home .scripture-flyer-surface .scripture-expand-hint.hidden {
  display: none;
}
