/* Public site palette, shared with the approved homepage. */
:root {
  color-scheme: light;
  --bg: #f2e6d6;
  --surface: #fff9f0;
  --text: #2f241d;
  --muted: #5b4a3c;
  --gold: #78501e;
  --line: #ccb99f;
  --ivory-highlight: #ecd4b1;
  --ivory-paper: #fcf4e8;
  --ivory-action: #70471f;
  --ivory-shadow: #5b3b201b;
}

body:not([data-site-page="home"]) {
  min-height: 100vh;
  background: radial-gradient(ellipse 850px 570px at 85% 0%, #ead5b9 0%, transparent 82%),
    linear-gradient(180deg, var(--ivory-paper), var(--bg) 680px, #f8efe4 100%);
  color: var(--text);
}

.site-header .app-link,
.site-header .app-link:visited {
  background: var(--ivory-action);
  border-color: var(--ivory-action);
  color: #fff9ef;
  box-shadow: 0 2px 7px var(--ivory-shadow);
}

.site-header .app-link:hover {
  background: #543318;
  border-color: #543318;
  color: #fff9ef;
}

.site-header .app-link:focus-visible {
  outline: 2px solid var(--ivory-action);
  outline-offset: 4px;
}

[data-site-page="content"] .site-brand img { filter: brightness(.56) saturate(1.35); }
[data-site-page="content"] .lead { color: var(--muted); }
[data-site-page="content"] .button.secondary {
  background: var(--surface);
  border-color: #a98961;
  color: var(--gold);
}
[data-site-page="content"] .button.secondary:hover { background: #f4e3cc; }

.prayer-card, .prayer-panel {
  background: linear-gradient(145deg, var(--surface), #f7ead8);
  box-shadow: 0 4px 14px var(--ivory-shadow);
}
.prayer-card:hover { background: #fff9ed; border-color: #a98961; }
.category-pill[aria-pressed="true"], .complete-devotional[data-complete="true"],
.bible-verse.selected {
  background: var(--ivory-highlight);
  color: var(--text);
}
.large-reading .reader-size { color: var(--gold); }
.bible-wheel-column, .passage-choice-field {
  background: linear-gradient(145deg, var(--surface), #f5e6d1);
}
.passage-choice-popup {
  background: var(--surface);
  border-color: #a98961;
  box-shadow: 0 12px 30px #5b3b2033;
}
.passage-choice-option, .scripture-wheel-option,
.bible-wheel .scripture-wheel-option {
  color: var(--text);
  text-shadow: none;
}
.passage-choice-option[aria-selected="true"], .passage-choice-option:hover,
.passage-choice-option[data-active="true"] {
  background: var(--ivory-highlight);
  color: var(--text);
}
.passage-choice-group { color: var(--gold); }

.scripture-intro > p:not(.product-name), .scripture-intro > p.scripture-intro-lead,
.scripture-intro .scripture-try span, .scripture-rail-label,
.scripture-guide li p, .scripture-upload-note, .scripture-share-note,
.scripture-font-grid span:last-child { color: var(--muted); }
.scripture-intro .scripture-try strong, .scripture-guide h3, .scripture-guide li > span,
.scripture-reading p:last-child, .scripture-status:not(.scripture-sr-only),
.scripture-workspace[data-composer-state] .scripture-status,
.scripture-wheel-option[aria-selected="true"] { color: var(--gold); }
.scripture-guide h4, .scripture-reading p, .scripture-expanded-heading h3 { color: var(--text); }
.scripture-workspace { --menu-glass: rgba(255, 249, 240, .96); }
.scripture-tools button, .scripture-choice { color: var(--muted); }
.scripture-tools button:hover, .scripture-tools button[aria-expanded="true"],
.scripture-expanded-heading button {
  background: #f5e6d1;
  color: var(--text);
}
.scripture-tools button[aria-expanded="true"] { background: var(--menu-glass); }
.scripture-tool-icon, .scripture-upload-photo, .scripture-category-rail button, .share-logo {
  border-color: #b09575;
  background: #f4e4ce;
  color: var(--gold);
}
.scripture-menu-body, .scripture-background-grid .scripture-choice,
.scripture-font-grid .scripture-choice, .share-choice,
.scripture-swatch, .scripture-font {
  border-color: var(--line);
}
.scripture-background-grid .scripture-choice, .scripture-font-grid .scripture-choice,
.share-choice, .scripture-font { background: var(--surface); color: var(--text); }
.scripture-category-rail button[aria-pressed="true"],
.scripture-font-grid .scripture-choice[aria-pressed="true"],
.scripture-font[aria-pressed="true"] {
  background: var(--ivory-highlight);
  border-color: var(--gold);
  color: var(--text);
}
.scripture-frame { box-shadow: 0 18px 38px #5b3b2037; }

[data-site-page="document"] a { color: var(--gold); }
[data-site-page="document"] a:focus-visible { outline-color: var(--gold); }
[data-site-page="document"] .muted { color: var(--muted); }
[data-site-page="document"] .notice {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}
[data-site-page="document"] footer { border-color: var(--line); }

[data-site-page="invite"] button {
  background: var(--ivory-action);
  color: #fff9ef;
}
