/* Shared Selah identity. The installed design kit stays unmodified. */
:root {
  --p-bg: #F7F6F1; --p-surface: #FFFDFC; --p-ink: #1C1B17; --p-muted: #67675B;
  --p-accent: #414F27; --p-accent-ink: #FFFDFC; --p-action: #414F27; --p-action-ink: #FFFDFC;
  --p-inv-bg: #414F27; --p-inv-surface: #354021; --p-inv-ink: #F7F6F1; --p-inv-muted: #D3D9C8; --p-inv-action: #F7F6F1; --p-inv-action-ink: #414F27;
  --leaf: #E4E9DC; --ground-bg: #E4E9DC; --ground-surface: #F7F6F1; --ground-ink: #1C1B17; --ground-muted: #67675B; --ground-accent: #414F27;
  --font-display: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-text: 'DM Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --display-weight: 400; --display-tracking: -0.035em; --r-btn: 999px; --t-label: 14px;
}
html { scroll-behavior: smooth; scroll-padding-top: var(--nav); }
body { -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
::selection { background: var(--leaf); color: var(--p-ink); }
.nav__logo { gap: var(--s-2); font-size: 30px; }
.nav__logo img { width: 36px; height: 36px; }
.nav__bar { gap: var(--s-6); }
.btn { font-weight: 500; gap: var(--s-3); }
.btn > span[aria-hidden] { font-size: 18px; }
.hero--centred h1 { max-width: 20ch; font-weight: 400; line-height: .99; }
.hero--centred .hero__lead { max-width: 52ch; font-size: var(--t-lead); line-height: 1.55; }
.hero--centred .hero__c { gap: var(--s-5); }
.hero--centred .btn-row { margin-top: 0; gap: var(--s-5); }
.hero-install { display: inline-flex; min-height: 44px; align-items: center; gap: var(--s-3); font-size: var(--t-small); color: var(--muted); text-decoration: underline; text-underline-offset: 5px; }
.hero-install span { color: var(--ink); }
.hero--centred .hero__window { border: 1px solid var(--line); background: var(--p-surface); border-radius: var(--r-lg) var(--r-lg) 0 0; margin-top: var(--s-7); }
.today-window { width: 100%; background: var(--p-bg); }
.preview-top, .product-chrome { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 56px; padding: var(--s-3) var(--s-5); border-bottom: 1px solid var(--line); background: var(--p-surface); }
.preview-brand { display: inline-flex; gap: var(--s-2); align-items: center; font: 500 24px/1 var(--font-display); letter-spacing: -.03em; }
.preview-brand img { width: 28px; height: 28px; }
.preview-location { color: var(--accent); font-size: var(--t-small); }
.preview-profile { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--leaf); color: var(--accent); font-size: var(--t-small); }
.today-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--s-7); padding: var(--s-7); align-items: start; }
.today-greeting { padding-top: var(--s-5); }
.ui-label { font-family: var(--font-text); font-size: var(--t-small); font-weight: 400; line-height: 1.5; color: var(--muted); letter-spacing: 0; }
.ui-title { font: 400 38px/1.05 var(--font-display); letter-spacing: -.03em; margin-top: var(--s-2); }
.today-verse { position: relative; border-left: 1px solid var(--line-strong); padding: var(--s-5) var(--s-6) var(--s-6); }
.bookmark { position: absolute; top: 0; right: 24px; width: 18px; height: 40px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); }
.today-scripture { font: 400 32px/1.1 var(--font-display); letter-spacing: -.025em; margin: var(--s-5) 0 var(--s-4); }
.today-explanation { font-size: var(--t-small); line-height: 1.6; max-width: 35ch; }
.today-question { padding-top: var(--s-5); }
.today-question > p { font: 400 24px/1.25 var(--font-display); letter-spacing: -.02em; margin: var(--s-4) 0 var(--s-5); }
.preview-link { display: flex; align-items: center; gap: var(--s-3); font-size: var(--t-small); color: var(--accent); }

.tour-section { background: var(--p-surface); border-block: 1px solid var(--line); }
.tour-layout { height: 100%; align-items: start; }
.tour-copy h2 { max-width: 16ch; line-height: 1.02; }
.section-lead { color: var(--muted); font-size: var(--t-lead); line-height: 1.65; max-width: 40ch; margin-top: var(--s-5); }
.tour-tabs { margin: var(--s-7) 0 var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-2); border: 0; padding: 0; }
.tour-tabs .tab { min-height: 44px; font-size: var(--t-small); padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.tour-tabs .tab[aria-selected="true"] { color: var(--accent); border-color: transparent; background: var(--leaf); }
.tour-tabs.m-has-ind .tab[aria-selected="true"] { background: transparent; }
.tour-tabs .m-tab-ind { background: var(--leaf); border: 0; border-radius: 999px; }
.tour-description { max-width: 41ch; min-height: 160px; }
.tour-description p { color: var(--muted); line-height: 1.7; }
.text-link { display: inline-flex; align-items: center; gap: var(--s-3); min-height: 44px; margin-top: var(--s-4); color: var(--accent); font-size: var(--t-body); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); transition: text-decoration-color 180ms var(--ease); }
.text-link:hover { text-decoration-color: currentColor; }
.tour-screen { height: 100%; min-height: 0; }
.product-window { height: 100%; max-height: 710px; min-height: 520px; border: 1px solid var(--line-strong); border-radius: var(--r-lg); overflow: hidden; background: var(--p-bg); display: flex; flex-direction: column; }
.product-chrome { min-height: 64px; flex: none; }
.product-chrome > .ui-label { font-size: var(--t-small); }
.product-screen { flex: 1 1 0; min-height: 0; position: relative; overflow: hidden; }
.product-screen::after { content: ''; position: absolute; inset: auto 0 0; height: 42px; pointer-events: none; background: linear-gradient(transparent, var(--p-bg)); }
.reader-toolbar { display: flex; align-items: center; justify-content: space-between; padding: var(--s-5) var(--s-6); gap: var(--s-3); font-size: var(--t-body); border-bottom: 1px solid var(--line); }
.reader-translation { font-size: var(--t-small); color: var(--muted); }
.reader-page { position: relative; padding: var(--s-6) var(--s-7); font: 400 24px/1.5 var(--font-display); }
.reader-heading { font: 400 38px/1.1 var(--font-display); letter-spacing: -.03em; margin-bottom: var(--s-3); }
.reader-byline { color: var(--muted); font: italic 18px/1.5 var(--font-display); margin-bottom: var(--s-5); }
.reader-page > p:not(.reader-heading, .reader-byline) { margin-bottom: var(--s-4); }
.reader-page sup { font: 400 12px/1 var(--font-text); color: var(--muted); margin-right: var(--s-1); }
.verse-selected { background: var(--leaf); box-shadow: -12px 0 0 var(--leaf), 12px 0 0 var(--leaf); border-radius: 2px; }
.verse-actions { display: inline-flex; gap: var(--s-5); padding: var(--s-3) var(--s-4); margin: 0 0 var(--s-5) -12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--p-surface); font: 500 var(--t-small)/1.4 var(--font-text); color: var(--accent); }
.reflection-page { padding: var(--s-6); font-size: var(--t-body); line-height: 1.7; }
.reflection-user { margin: 0 0 var(--s-6) auto; max-width: 85%; padding: var(--s-4) var(--s-5); border-radius: var(--r-md) var(--r-md) 2px var(--r-md); background: var(--leaf); }
.reflection-author { margin-bottom: var(--s-3); }
.reflection-page > p:not(.reflection-user, .reflection-author) { margin-bottom: var(--s-4); }
.reflection-scripture { border-left: 2px solid var(--accent); padding-left: var(--s-5); margin-top: var(--s-5); }
.reflection-scripture > p:last-child { font: 400 24px/1.35 var(--font-display); margin-top: var(--s-2); }
.reflection-composer { display: flex; justify-content: space-between; align-items: center; padding: var(--s-4) var(--s-5); background: var(--p-surface); color: var(--muted); border: 1px solid var(--line); border-radius: var(--r-md); margin-top: var(--s-6); font-size: var(--t-small); }
.prayer-page, .notes-page { padding: var(--s-7) var(--s-6); }
.prayer-page > .ui-label { margin-top: var(--s-6); }
.prayer-entry { display: flex; gap: var(--s-4); align-items: flex-start; padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.prayer-entry > p { font-size: var(--t-body); line-height: 1.6; }
.prayer-check { display: grid; place-items: center; width: 20px; height: 20px; flex: none; border: 1px solid var(--line-strong); border-radius: 50%; margin-top: 3px; color: var(--accent); font-size: var(--t-small); }
.prayer-answered .prayer-check { background: var(--leaf); border-color: var(--leaf); }
.prayer-footnote { font: italic 24px/1.3 var(--font-display); color: var(--muted); margin-top: var(--s-7); }
.notes-page > .ui-label { margin: var(--s-4) 0 var(--s-6); }
.notes-page > p:not(.reader-heading, .ui-label) { font: 400 24px/1.5 var(--font-display); margin-bottom: var(--s-5); }
.note-references { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.note-references > span { padding: var(--s-2) var(--s-3); background: var(--leaf); color: var(--accent); border-radius: var(--r-sm); font-size: var(--t-small); }
.note-rule { border-bottom: 1px solid var(--line); margin-top: var(--s-6); }
.no-script-note { color: var(--muted); margin-top: var(--s-5); }

.scripture-head { display: flex; justify-content: space-between; gap: var(--s-7); align-items: start; }
.scripture-head h2 { max-width: 16ch; }
.scripture-head > p { max-width: 45ch; color: var(--muted); line-height: 1.7; padding-top: var(--s-2); }
.scripture-passage { position: relative; flex: 1; display: flex; align-items: center; padding-block: var(--s-8); margin-top: var(--s-7); border-top: 1px solid var(--line-strong); }
.passage-ribbon { position: absolute; width: 40px; height: 76px; top: -1px; right: 12%; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); }
.scripture-passage blockquote { margin: 0; padding: 0; }
.scripture-passage .mo-wh__text { max-width: 18ch; font-size: clamp(40px, 4vw, 64px); line-height: 1.05; letter-spacing: -.025em; }
.scripture-passage cite { display: block; margin-top: var(--s-5); color: var(--muted); font: 400 var(--t-small)/1.5 var(--font-text); }
.scripture-section.mo-wh .mo-w { color: #737568; }
.scripture-section.mo-wh .mo-w.is-on { color: var(--p-ink); }
.language-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); padding-top: var(--s-5); gap: var(--s-5); }
.language-list > div { display: flex; flex-direction: column; gap: var(--s-2); }
.language-list span { font-size: var(--t-body); font-weight: 500; }
.language-list small { font-size: var(--t-small); color: var(--muted); line-height: 1.45; }

.privacy-section { border-block: 1px solid var(--line); background: var(--p-surface); }
.privacy-layout { align-items: start; }
.privacy-intro h2 { line-height: 1.02; }
.privacy-intro > .text-link { margin-top: var(--s-6); }
.faq { display: grid; gap: 0; }
.faq__item { padding: 0 0 var(--s-5); margin-bottom: var(--s-5); border-bottom: 1px solid var(--line); }
.faq__item:last-child { margin-bottom: 0; }
.faq .faq__item h3 { font: 500 var(--t-body)/1.5 var(--font-text); letter-spacing: -.01em; margin: 0 0 var(--s-3); }
.faq .faq__item p { font-size: var(--t-body); line-height: 1.7; color: var(--muted); margin: 0; }
.giving-layout { height: 100%; align-items: center; }
.giving-copy h2 { line-height: 1.02; }
.giving-copy > p:not(.section-lead) { margin-top: var(--s-5); max-width: 42ch; color: var(--muted); line-height: 1.7; }
.giving-ledger { border-top: 1px solid var(--line-strong); padding-top: var(--s-5); }
.ledger-title { font-size: var(--t-body); font-weight: 500; }
.allocation-bar { display: flex; height: 12px; gap: 4px; margin-top: var(--s-6); }
.allocation-bar span:first-child { flex: 4; background: var(--accent); }
.allocation-bar span:last-child { flex: 1; background: var(--leaf); }
.allocation { margin: var(--s-3) 0 0; }
.allocation > div { display: flex; justify-content: space-between; align-items: center; padding: var(--s-5) 0; gap: var(--s-5); border-bottom: 1px solid var(--line); }
.allocation dt { font-size: var(--t-body); line-height: 1.5; max-width: 22ch; }
.allocation dd { font: 400 48px/1 var(--font-display); letter-spacing: -.03em; margin: 0; white-space: nowrap; }
.allocation dd span { font-size: 28px; }
.giving-fees { font-size: var(--t-small); color: var(--muted); margin-top: var(--s-5); }
.giving-ledger > .btn { margin-top: var(--s-6); }

footer.footer--statement { background: var(--leaf); border-radius: var(--r-lg); --action: var(--p-action); --action-ink: var(--p-action-ink); }
.close-head { display: flex; justify-content: space-between; gap: var(--s-7); align-items: center; }
.close-head h2 { max-width: none; }
.close-head p { color: var(--muted); margin-top: var(--s-4); }
.close-head > .btn { flex: none; }
.close-word { font: 400 clamp(160px, 18vw, 260px)/.85 var(--font-display); color: var(--accent); letter-spacing: -.07em; margin: auto 0 0; }
.install-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-7); }
.install-grid h3 { font: 500 var(--t-small)/1.5 var(--font-text); letter-spacing: 0; color: var(--ink); margin: 0 0 var(--s-3); }
.install-grid p { max-width: 28ch; font-size: var(--t-small); line-height: 1.7; color: var(--muted); }
.footer-contact { display: flex; flex-direction: column; align-items: start; }
.footer-contact a { min-height: 28px; font-size: var(--t-small); line-height: 1.7; color: var(--accent); }
.footer__legal { gap: var(--s-5); font-size: 12px; line-height: 1.6; border-top-color: color-mix(in srgb, var(--accent) 18%, transparent); }
.footer__legal a { min-height: 32px; display: inline-flex; align-items: center; gap: var(--s-2); }

@media (max-width: 1279px) and (min-width: 640px) {
  .today-page { gap: var(--s-5); padding: var(--s-6); grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
  .today-question { display: none; }
  .today-verse { padding-right: var(--s-4); }
  .tour-layout { column-gap: var(--s-5); }
  .tour-copy { grid-column: span 5; }
  .tour-screen { grid-column: 7 / span 6; }
  .product-window { min-height: 580px; }
  .reader-page { padding: var(--s-5); font-size: 22px; }
  .reader-toolbar, .reflection-page, .prayer-page, .notes-page { padding-inline: var(--s-5); }
  .scripture-head { gap: var(--s-6); }
  .scripture-head > p { max-width: 40ch; }
  .privacy-intro { grid-column: span 5; }
  .privacy-layout > .faq { grid-column: 7 / span 6; }
  .giving-copy { grid-column: span 5; }
  .giving-ledger { grid-column: 7 / span 6; }
}
@media (max-width: 1023px) {
  .nav__bar { gap: var(--s-4); }
  .nav:not(.is-open) .nav__actions { display: flex; margin-left: auto; }
  .nav:not(.is-open) .nav__actions .btn { padding-inline: var(--s-4); font-size: var(--t-small); }
  .nav:not(.is-open) .nav__toggle { margin-left: 0; }
  .product-chrome > .ui-label { display: none; }
  .reader-heading { font-size: 32px; }
  .reflection-page { font-size: var(--t-small); }
  .reflection-scripture > p:last-child, .notes-page > p:not(.reader-heading, .ui-label) { font-size: 22px; }
  .prayer-entry > p { font-size: var(--t-small); }
  .language-list { gap: var(--s-4); }
  .language-list span, .language-list small { font-size: var(--t-small); }
  .close-head { align-items: start; }
  .close-head h2 { max-width: 14ch; }
  .install-grid { gap: var(--s-5); }
}
@media (max-width: 639px) {
  :root { --padt: 72px; }
  .nav__logo { font-size: 26px; }
  .nav__logo img { width: 30px; height: 30px; }
  .nav__toggle { border: 0; width: 44px; }
  .nav__bar { gap: var(--s-2); }
  .nav:not(.is-open) .nav__actions .btn { height: 44px; padding-inline: var(--s-4); }
  .nav__actions .btn > span { display: none; }
  .hero--centred .hero__c { gap: var(--s-5); }
  .hero--centred h1 { max-width: 18ch; font-size: 40px; line-height: 1; }
  .hero--centred .hero__lead { max-width: 34ch; font-size: var(--t-body); line-height: 1.65; }
  .hero--centred .btn-row { gap: var(--s-3) var(--s-5); }
  .hero--centred .hero__window { margin-top: var(--s-6); min-height: 300px; }
  .preview-top { min-height: 48px; padding: var(--s-2) var(--s-4); }
  .preview-location { font-size: 12px; }
  .today-page { display: block; padding: var(--s-5); }
  .today-greeting { display: none; }
  .today-verse { padding: 0 var(--s-2) 0 0; border: 0; }
  .today-verse .bookmark { width: 14px; height: 32px; right: 0; top: -24px; }
  .today-scripture { font-size: 30px; margin-top: var(--s-4); }
  .today-explanation { max-width: 30ch; font-size: var(--t-small); }
  .today-question { display: none; }
  .tour-layout { display: flex; flex-direction: column; gap: var(--s-6); }
  .tour-copy, .tour-screen { width: 100%; }
  .tour-copy h2 br { display: none; }
  .tour-copy h2 { max-width: none; }
  .section-lead { font-size: var(--t-body); margin-top: var(--s-4); }
  .tour-tabs { margin-top: var(--s-5); gap: var(--s-2); }
  .tour-tabs .tab { font-size: var(--t-small); padding-inline: var(--s-3); }
  .tour-description { min-height: 170px; max-width: none; }
  .tour-description p { font-size: var(--t-body); }
  .text-link { margin-top: var(--s-3); }
  .product-window { height: 490px; min-height: 490px; }
  .product-chrome { min-height: 56px; padding: var(--s-3) var(--s-5); }
  .product-chrome > .ui-label { display: inline; }
  .reader-toolbar { padding: var(--s-4) var(--s-5); font-size: var(--t-small); }
  .reader-translation { font-size: 12px; }
  .reader-page { padding: var(--s-5); font-size: 22px; line-height: 1.4; }
  .reader-page .bookmark { width: 14px; height: 32px; right: 20px; }
  .reader-heading { font-size: 30px; }
  .reader-byline { font-size: 18px; margin-bottom: var(--s-4); }
  .reflection-page, .prayer-page, .notes-page { padding: var(--s-5); }
  .reflection-page { font-size: var(--t-small); line-height: 1.6; }
  .reflection-user { margin-bottom: var(--s-5); padding: var(--s-3) var(--s-4); }
  .reflection-scripture > p:last-child { font-size: 22px; }
  .reflection-composer { margin-top: var(--s-5); }
  .prayer-entry { padding: var(--s-4) 0; }
  .prayer-page > .ui-label { margin-top: var(--s-5); }
  .prayer-footnote { font-size: 22px; margin-top: var(--s-5); }
  .notes-page > p:not(.reader-heading, .ui-label) { font-size: 22px; }
  .scripture-head { flex-direction: column; gap: var(--s-4); }
  .scripture-head h2 { max-width: none; }
  .scripture-head > p { padding-top: 0; }
  .scripture-passage { margin-top: var(--s-6); padding-block: var(--s-8) var(--s-7); }
  .passage-ribbon { width: 24px; height: 44px; right: 8px; }
  .scripture-passage .mo-wh__text { font-size: 40px; max-width: 14ch; }
  .scripture-passage cite { font-size: 12px; max-width: 28ch; }
  .language-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-4); }
  .language-list > div { gap: var(--s-1); }
  .language-list span { font-size: var(--t-body); }
  .privacy-layout { display: flex; flex-direction: column; gap: var(--s-7); }
  .privacy-intro h2 br { display: none; }
  .privacy-intro > .text-link { margin-top: var(--s-4); }
  .faq__item { margin-bottom: var(--s-5); padding-bottom: var(--s-5); }
  .faq .faq__item p { font-size: var(--t-body); }
  .giving-layout { display: flex; flex-direction: column; align-items: stretch; gap: var(--s-7); }
  .giving-copy h2 br { display: none; }
  .giving-copy > p:not(.section-lead) { margin-top: var(--s-4); }
  .allocation dd { font-size: 40px; }
  .giving-ledger > .btn { width: 100%; }
  footer.footer--statement { border-radius: 0; }
  footer.closing { min-height: 100lvh; }
  footer.closing > .wrap { gap: var(--s-7); }
  .close-head { flex-direction: column; gap: var(--s-5); }
  .close-head h2 { max-width: 16ch; }
  .close-head > .btn { width: 100%; }
  .close-head p { font-size: var(--t-body); max-width: 30ch; }
  .close-word { font-size: clamp(120px, 34vw, 215px); margin-top: var(--s-6); }
  .install-grid { grid-template-columns: 1fr 1fr; gap: var(--s-5); }
  .install-grid h3 { margin-bottom: var(--s-2); }
  .install-grid p { font-size: var(--t-small); }
  .footer-contact { grid-column: 1 / -1; }
  .footer-contact a { min-height: 44px; justify-content: center; display: inline-flex; align-items: center; }
  .footer__legal { display: flex; flex-direction: column; align-items: start; gap: var(--s-2); }
  .footer__legal a { min-height: 44px; }
}
@media (max-width: 359px) {
  .hero--centred h1 { font-size: 36px; }
  .hero--centred .hero__window { min-height: 320px; }
  .hero--centred .btn-row { flex-direction: column; }
  .hero--centred .btn-row .btn { width: 100%; }
  .today-page { padding: var(--s-4); }
  .today-scripture { font-size: 28px; }
  .today-verse .bookmark { top: -16px; }
  .tour-tabs .tab { font-size: var(--t-small); padding-inline: var(--s-3); }
  .tour-description { min-height: 198px; }
  .product-chrome > .ui-label { display: none; }
  .reader-page { font-size: 20px; }
  .verse-actions { font-size: 12px; gap: var(--s-4); }
  .reflection-scripture > p:last-child { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scripture-section.mo-wh .mo-w { color: var(--p-ink); transition: none; }
}
@media print {
  .nav, .hero-install, .tour-tabs, .btn, .text-link { display: none !important; }
  main > section, footer.closing { height: auto !important; min-height: 0 !important; padding-block: 32px; }
  .hero__window { mask-image: none !important; -webkit-mask-image: none !important; }
  [role="tabpanel"][hidden] { display: block !important; }
  .product-window { height: auto; max-height: none; }
  .product-screen { overflow: visible; }
}
