/* Biblical Wisdom only. Keep article hooks intact for access, narration and state.
   The illustrated treatment is confined to [data-bw-illustrated="true"]. */
#bwStudySheet[data-bw-illustrated="true"] {
  --bw-page: #fffaf5;
  --bw-ink: #382c27;
  --bw-muted: #77645b;
  --bw-rose: #965b52;
  --bw-line: #e9d9cc;
  --bw-rose-wash: #f8eee5;
  --bw-sage-wash: #f1f2e9;
  --bw-sage: #65704d;
  --bw-gold: #96783e;
  --bw-card: #fffcf8;
  --bw-wash: transparent;
  --bw-tint: #f8eee5;
  --bw-tint-strong: #efdfd2;
  --bw-accent: #ad7868;
  --bw-attribution: #965b52;
  background: var(--bw-page) !important;
  color: var(--bw-ink);
}
html[data-theme="neutral"] #bwStudySheet[data-bw-illustrated="true"] {
  --bw-page: #fdfcf9; --bw-ink: #302e2b; --bw-muted: #69645e;
  --bw-rose: #775e54; --bw-line: #e4dfd6; --bw-rose-wash: #f4efea;
  --bw-sage-wash: #f1f2ed; --bw-sage: #616950; --bw-gold: #796a49;
  --bw-card: #fffefa; --bw-tint: #f4efea; --bw-tint-strong: #e9dfd6;
  --bw-accent: #9e8171; --bw-attribution: #775e54;
}
html[data-theme="evening"] #bwStudySheet[data-bw-illustrated="true"] {
  --bw-page: #24201f; --bw-ink: #f5ede7; --bw-muted: #c6b7ac;
  --bw-rose: #e3b5a7; --bw-line: #55433c; --bw-rose-wash: #362b27;
  --bw-sage-wash: #2d3028; --bw-sage: #bdc7a5; --bw-gold: #d8bf8a;
  --bw-card: #2c2623; --bw-tint: #362b27; --bw-tint-strong: #4b3932;
  --bw-accent: #c59381; --bw-attribution: #e3b5a7;
}
#bwStudySheet[data-bw-illustrated="true"]::before, #bwStudySheet[data-bw-illustrated="true"] .bw-study-hero::after { content: none; }
#bwStudySheet[data-bw-illustrated="true"] .bw-study-shell {
  box-sizing: border-box; width: 100%; max-width: 780px; margin: 0 auto;
  padding: 0 22px max(56px, env(safe-area-inset-bottom)) !important;
}
#bwStudySheet[data-bw-illustrated="true"] .bw-reader-toolbar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  min-height: 72px; margin: 0 -4px 22px;
  background: var(--bw-page);
}
#bwStudySheet[data-bw-illustrated="true"] .bw-reader-brand {
  font-family: 'Playfair Display', Georgia, serif; font-size: calc(21px * var(--grounded-type-scale, 1));
  font-weight: 500; letter-spacing: -.025em; color: var(--bw-ink);
}
#bwStudySheet[data-bw-illustrated="true"] .bw-reader-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
#bwStudySheet[data-bw-illustrated="true"] #bwStudyCloseBtn, #bwStudySheet[data-bw-illustrated="true"] .bw-save-btn {
  color: var(--bw-ink); opacity: .85; min-width: 44px; min-height: 44px;
  padding: 10px; justify-content: center; border-radius: 50%;
}
#bwStudySheet[data-bw-illustrated="true"] #bwStudyCloseBtn { justify-self: start; }
#bwStudySheet[data-bw-illustrated="true"] .bw-save-btn--active { color: var(--bw-rose); opacity: 1; }
#bwStudySheet[data-bw-illustrated="true"] .bw-study-header-badge { color: var(--bw-rose); background: var(--bw-rose-wash); border-color: var(--bw-line); }
#bwStudySheet[data-bw-illustrated="true"] .bw-study-hero {
  position: relative; padding: 18px 0 32px; margin: 0 0 28px;
  border: 0; border-bottom: 1px solid var(--bw-line); border-radius: 0;
  background: transparent; box-shadow: none; text-align: center; overflow: visible;
}
#bwStudySheet[data-bw-illustrated="true"] .bw-study-eyebrow {
  margin: 0 0 17px; color: var(--bw-rose); opacity: 1;
  font: 600 calc(.75rem * var(--grounded-type-scale, 1))/1.5 'Inter', sans-serif; letter-spacing: .13em;
}
#bwStudySheet[data-bw-illustrated="true"] .bw-study-title {
  margin: 0 auto 17px; max-width: 680px; color: var(--bw-ink);
  font: 500 calc(2.25rem * var(--grounded-type-scale, 1))/1.16 'Playfair Display', Georgia, serif;
  letter-spacing: -.035em; text-wrap: balance;
}
#bwStudySheet[data-bw-illustrated="true"] .bw-study-subtitle {
  margin: 0 auto; max-width: 530px; color: var(--bw-ink); opacity: 1;
  font: italic calc(1.125rem * var(--grounded-type-scale, 1))/1.55 'Playfair Display', Georgia, serif; text-wrap: pretty;
}
#bwStudySheet[data-bw-illustrated="true"] .bw-study-meta {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 12px 24px; margin: 23px 0 0; color: var(--bw-rose); opacity: 1;
  font: 500 calc(.8125rem * var(--grounded-type-scale, 1))/1.6 'Inter', sans-serif; letter-spacing: 0;
}
#bwStudySheet[data-bw-illustrated="true"] .bw-study-meta > span { display: inline-flex; align-items: center; gap: 7px; }
#bwStudySheet[data-bw-illustrated="true"] .bw-study-meta svg { width: 18px; height: 18px; flex-shrink: 0; }
#bwStudySheet[data-bw-illustrated="true"] [data-bw-section] { margin: 0 0 36px; }
#bwStudySheet[data-bw-illustrated="true"] .cs-divider { display: none; }
#bwStudySheet[data-bw-illustrated="true"] .cs-section-label, #bwStudySheet[data-bw-illustrated="true"] .wow-explore-title {
  display: flex; align-items: center; gap: 9px; margin: 0 0 16px;
  font: 600 calc(.75rem * var(--grounded-type-scale, 1))/1.6 'Inter', sans-serif; letter-spacing: .12em;
  text-transform: uppercase; color: var(--bw-rose); opacity: 1;
}
#bwStudySheet[data-bw-illustrated="true"] .cs-section-label::before, #bwStudySheet[data-bw-illustrated="true"] .wow-explore-title::before {
  content: ''; width: 12px; height: 1px; flex-shrink: 0; background: var(--bw-accent);
}
#bwStudySheet[data-bw-illustrated="true"] .cs-overview, #bwStudySheet[data-bw-illustrated="true"] .bw-teaching-p, #bwStudySheet[data-bw-illustrated="true"] .bw-context,
#bwStudySheet[data-bw-illustrated="true"] .cs-list-item, #bwStudySheet[data-bw-illustrated="true"] .cs-lessons {
  color: var(--bw-ink); opacity: 1; font-family: 'Inter', sans-serif;
  font-size: var(--reading-size, 17px); line-height: 1.78; margin: 0 0 18px;
  overflow-wrap: break-word;
}
#bwStudySheet[data-bw-illustrated="true"] p:last-child { margin-bottom: 0; }
#bwStudySheet[data-bw-illustrated="true"] [data-bw-section="overview"] {
  padding: 21px 21px 23px; border: 1px solid var(--bw-line); border-radius: 14px;
  background: transparent; box-shadow: none;
}
#bwStudySheet[data-bw-illustrated="true"] [data-bw-section="overview"] .cs-section-label::before { display: none; }
#bwStudySheet[data-bw-illustrated="true"] [data-bw-section="keyScriptures"] { display: block; }
#bwStudySheet[data-bw-illustrated="true"] .bw-scripture-card {
  box-sizing: border-box; display: grid; grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 14px; width: 100%; height: auto; padding: 20px 18px; margin: 0 0 12px;
  border: 1px solid var(--bw-line) !important; border-left: 2px solid var(--bw-accent) !important;
  border-radius: 13px; background: var(--bw-card) !important; color: var(--bw-ink);
  box-shadow: 0 2px 5px rgba(70, 44, 26, .025);
  transition: border-color .18s ease, background-color .18s ease;
}
#bwStudySheet[data-bw-illustrated="true"] .bw-scripture-icon { grid-row: 1 / 3; color: var(--bw-gold); padding-top: 4px; }
#bwStudySheet[data-bw-illustrated="true"] .bw-scripture-icon svg { display: block; width: 30px; height: 30px; }
#bwStudySheet[data-bw-illustrated="true"] .bw-scripture-text {
  grid-column: 2; margin: 0 0 10px; color: var(--bw-ink);
  font: 400 calc(1.125rem * var(--grounded-type-scale, 1))/1.55 'Playfair Display', Georgia, serif;
}
#bwStudySheet[data-bw-illustrated="true"] .bw-scripture-ref { grid-column: 2; font-size: calc(.8125rem * var(--grounded-type-scale, 1)); color: var(--bw-rose); line-height: 1.5; }
#bwStudySheet[data-bw-illustrated="true"] .bw-insights-row { display: block; }
#bwStudySheet[data-bw-illustrated="true"] .bw-insight-chip {
  display: flex; align-items: center; gap: 14px; padding: 13px 0;
  border: 0; border-bottom: 1px solid var(--bw-line); border-radius: 0; background: transparent;
}
#bwStudySheet[data-bw-illustrated="true"] .bw-insight-chip:last-child { border-bottom: 0; }
#bwStudySheet[data-bw-illustrated="true"] .bw-insight-ic, #bwStudySheet[data-bw-illustrated="true"] .bw-apply-ic {
  display: flex; flex: 0 0 44px; align-items: center; justify-content: center;
  width: 44px; height: 48px; border-radius: 14px; color: var(--bw-gold); background: var(--bw-rose-wash);
}
#bwStudySheet[data-bw-illustrated="true"] .bw-insight-ic svg, #bwStudySheet[data-bw-illustrated="true"] .bw-apply-ic svg { width: 24px; height: 24px; }
#bwStudySheet[data-bw-illustrated="true"] .bw-insight-tx { font: 400 calc(1rem * var(--grounded-type-scale, 1))/1.6 'Inter', sans-serif; color: var(--bw-ink); opacity: 1; }
#bwStudySheet[data-bw-illustrated="true"] [data-bw-section="mainTeaching"] { padding-top: 10px; }
#bwStudySheet[data-bw-illustrated="true"] .bw-teaching-h {
  display: block; margin: 40px 0 16px; color: var(--bw-ink); opacity: 1;
  font: 500 calc(1.625rem * var(--grounded-type-scale, 1))/1.25 'Playfair Display', Georgia, serif; letter-spacing: -.025em;
  text-wrap: pretty;
}
#bwStudySheet[data-bw-illustrated="true"] .bw-teaching-h::before { content: none; }
#bwStudySheet[data-bw-illustrated="true"] .bw-teaching-h:first-of-type { margin-top: 0; }
#bwStudySheet[data-bw-illustrated="true"] .bw-pullquote {
  margin: 25px 0 27px; padding: 21px 22px; border: 0; border-left: 3px solid var(--bw-accent);
  border-radius: 3px 14px 14px 3px; background: var(--bw-rose-wash); box-shadow: none;
}
#bwStudySheet[data-bw-illustrated="true"] .bw-pullquote-text { margin: 0 0 12px; color: var(--bw-ink); opacity: 1;
  font: italic calc(1.25rem * var(--grounded-type-scale, 1))/1.55 'Playfair Display', Georgia, serif; }
#bwStudySheet[data-bw-illustrated="true"] .bw-pullquote-attr { color: var(--bw-rose); opacity: 1; font: 600 calc(.75rem * var(--grounded-type-scale, 1))/1.6 'Inter', sans-serif; letter-spacing: .075em; }
#bwStudySheet[data-bw-illustrated="true"] .bw-example-card {
  margin: 22px 0 27px; padding: 4px 0 4px 18px; border: 0; border-left: 2px solid var(--bw-sage);
  border-radius: 0; background: transparent; box-shadow: none;
}
#bwStudySheet[data-bw-illustrated="true"] .bw-example-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 10px; }
#bwStudySheet[data-bw-illustrated="true"] .bw-example-ic { display: none; }
#bwStudySheet[data-bw-illustrated="true"] .bw-example-name { color: var(--bw-sage); opacity: 1; font: 600 calc(.9375rem * var(--grounded-type-scale, 1))/1.5 'Inter', sans-serif; margin: 0; }
#bwStudySheet[data-bw-illustrated="true"] .bw-example-ref { margin-left: 0; color: var(--bw-muted); opacity: 1; font: 500 calc(.75rem * var(--grounded-type-scale, 1))/1.6 'Inter', sans-serif; }
#bwStudySheet[data-bw-illustrated="true"] .bw-example-tx { color: var(--bw-ink); opacity: 1; font: 400 var(--reading-size, 17px)/1.75 'Inter', sans-serif; margin: 0; }
#bwStudySheet[data-bw-illustrated="true"] [data-bw-section="historicalContext"] {
  padding: 24px; border: 0; border-radius: 12px; background: var(--bw-sage-wash); box-shadow: none;
}
#bwStudySheet[data-bw-illustrated="true"] [data-bw-section="historicalContext"] .cs-section-label { color: var(--bw-sage); }
#bwStudySheet[data-bw-illustrated="true"] [data-bw-section="biblicalContext"] {
  padding: 24px 0; border: 0; border-top: 1px solid var(--bw-line); border-bottom: 1px solid var(--bw-line);
  border-radius: 0; background: transparent; box-shadow: none;
}
#bwStudySheet[data-bw-illustrated="true"] [data-bw-section="whyItMatters"] {
  position: relative; padding: 25px 24px; border: 1px solid var(--bw-line); border-radius: 14px;
  background: var(--bw-rose-wash); box-shadow: none;
}
#bwStudySheet[data-bw-illustrated="true"] [data-bw-section="whyItMatters"] .bw-context { font-size: calc(max(18px, var(--reading-size, 17px)) * var(--grounded-type-scale, 1)); }
#bwStudySheet[data-bw-illustrated="true"] .bw-duo { display: block; }
#bwStudySheet[data-bw-illustrated="true"] [data-bw-section="reflectionQuestions"] { padding: 0; border: 0; background: transparent; box-shadow: none; }
#bwStudySheet[data-bw-illustrated="true"] .cs-reflect-list { list-style: none; padding: 0; margin: 0; counter-reset: bw-question; }
#bwStudySheet[data-bw-illustrated="true"] .cs-reflect-item {
  position: relative; counter-increment: bw-question; padding: 17px 0 17px 35px; margin: 0;
  border: 0; border-bottom: 1px solid var(--bw-line); color: var(--bw-ink); opacity: 1;
  font: 400 var(--reading-size, 17px)/1.7 'Inter', sans-serif;
}
#bwStudySheet[data-bw-illustrated="true"] .cs-reflect-item::before {
  content: counter(bw-question, decimal-leading-zero); position: absolute; left: 0; top: 19px;
  width: auto; height: auto; background: none; color: var(--bw-rose); opacity: 1;
  font: 500 calc(.8125rem * var(--grounded-type-scale, 1))/1.6 'Inter', sans-serif;
}
#bwStudySheet[data-bw-illustrated="true"] [data-bw-section="prayer"] {
  position: relative; padding: 26px 25px 30px; border: 1px solid var(--bw-line); border-radius: 12px;
  background: var(--bw-rose-wash); box-shadow: none; overflow: hidden;
}
#bwStudySheet[data-bw-illustrated="true"] [data-bw-section="prayer"] .bw-prayer-p {
  position: relative; color: var(--bw-ink); opacity: 1; margin: 0 0 18px;
  font: italic max(19px, var(--reading-size, 17px))/1.7 'Playfair Display', Georgia, serif; white-space: pre-line;
}
#bwStudySheet[data-bw-illustrated="true"] [data-bw-section="practicalApplication"] { padding: 0; border: 0; background: transparent; box-shadow: none; }
#bwStudySheet[data-bw-illustrated="true"] .bw-apply-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 11px; }
#bwStudySheet[data-bw-illustrated="true"] .bw-apply-card { display: flex; align-items: flex-start; gap: 15px; padding: 17px;
  border: 1px solid var(--bw-line); border-radius: 13px; background: var(--bw-card); }
#bwStudySheet[data-bw-illustrated="true"] .bw-apply-ic { color: var(--bw-rose); }
#bwStudySheet[data-bw-illustrated="true"] .bw-apply-tx { margin: 0; color: var(--bw-ink); opacity: 1; font: 400 var(--reading-size, 17px)/1.65 'Inter', sans-serif; }
#bwStudySheet[data-bw-illustrated="true"] .cs-related-grid { display: block; }
#bwStudySheet[data-bw-illustrated="true"] .cs-related-card { display: flex; align-items: center; gap: 15px; width: 100%;
  padding: 17px 0; margin: 0; border: 0; border-bottom: 1px solid var(--bw-line);
  border-radius: 0; background: transparent; box-shadow: none; text-align: left;
  transition: background-color .18s ease; }
#bwStudySheet[data-bw-illustrated="true"] .bw-related-icon { display: flex; align-items: center; justify-content: center;
  flex: 0 0 54px; height: 60px; border-radius: 11px; background: var(--bw-sage-wash); color: var(--bw-sage); }
#bwStudySheet[data-bw-illustrated="true"] .bw-related-icon svg { width: 26px; height: 26px; }
#bwStudySheet[data-bw-illustrated="true"] .bw-related-copy { flex: 1; min-width: 0; }
#bwStudySheet[data-bw-illustrated="true"] .bw-related-type { display: block; margin: 0 0 4px; color: var(--bw-rose);
  font: 600 calc(.6875rem * var(--grounded-type-scale, 1))/1.5 'Inter', sans-serif; letter-spacing: .07em; text-transform: uppercase; }
#bwStudySheet[data-bw-illustrated="true"] .cs-related-card-name { margin: 0 0 4px; color: var(--bw-ink); opacity: 1; font: 600 calc(1rem * var(--grounded-type-scale, 1))/1.45 'Inter', sans-serif; }
#bwStudySheet[data-bw-illustrated="true"] .cs-related-card-sub { margin: 0; color: var(--bw-muted); opacity: 1; font: 400 calc(.875rem * var(--grounded-type-scale, 1))/1.6 'Inter', sans-serif; }
#bwStudySheet[data-bw-illustrated="true"] .bw-related-chevron { color: var(--bw-rose); flex: 0 0 16px; }
#bwStudySheet[data-bw-illustrated="true"] .bw-related-chevron svg { width: 16px; height: 16px; }
#bwStudySheet[data-bw-illustrated="true"] .bw-sources-disclosure { border: 1px solid var(--bw-line); border-radius: 12px; background: var(--bw-rose-wash); }
#bwStudySheet[data-bw-illustrated="true"] .bw-sources-disclosure summary {
  display: flex; align-items: center; gap: 11px; min-height: 58px; padding: 12px 17px;
  box-sizing: border-box; cursor: pointer; list-style: none; color: var(--bw-ink);
  font: 500 calc(.875rem * var(--grounded-type-scale, 1))/1.5 'Inter', sans-serif;
}
#bwStudySheet[data-bw-illustrated="true"] .bw-sources-disclosure summary::-webkit-details-marker { display: none; }
#bwStudySheet[data-bw-illustrated="true"] .bw-sources-disclosure summary > svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--bw-rose); }
#bwStudySheet[data-bw-illustrated="true"] .bw-sources-chevron { margin-left: auto; flex: 0 0 17px; display: flex; color: var(--bw-rose); transform: rotate(90deg); transition: transform .18s ease; }
#bwStudySheet[data-bw-illustrated="true"] .bw-sources-chevron svg { width: 17px; height: 17px; }
#bwStudySheet[data-bw-illustrated="true"] .bw-sources-disclosure[open] .bw-sources-chevron { transform: rotate(-90deg); }
#bwStudySheet[data-bw-illustrated="true"] .bw-sources-disclosure .cs-list { padding: 0 22px 6px 35px; margin: 0; }
#bwStudySheet[data-bw-illustrated="true"] .bw-sources-disclosure .cs-list-item { font-size: calc(.875rem * var(--grounded-type-scale, 1)); margin-bottom: 15px; }
#bwStudySheet[data-bw-illustrated="true"] .bw-source-note { color: var(--bw-muted); }
#bwStudySheet[data-bw-illustrated="true"] .bw-source-link { color: var(--bw-rose); text-underline-offset: 3px; }
#bwStudySheet[data-bw-illustrated="true"] .bw-listen-panel { background: var(--bw-card); border-color: var(--bw-line); }
#bwStudySheet[data-bw-illustrated="true"] .bw-listen-status, #bwStudySheet[data-bw-illustrated="true"] .bw-listen-toggle { color: var(--bw-rose); opacity: 1; }
#bwStudySheet[data-bw-illustrated="true"] .bw-clip::after { background: linear-gradient(180deg, transparent 0%, var(--bw-page) 92%); }
#bwStudySheet[data-bw-illustrated="true"] button:focus-visible, #bwStudySheet[data-bw-illustrated="true"] summary:focus-visible, #bwStudySheet[data-bw-illustrated="true"] a:focus-visible {
  outline: 2px solid var(--bw-rose); outline-offset: 4px;
}
/* Approved, uncropped artwork. Explicit geometry prevents movement while decoding. */
#bwStudySheet[data-bw-illustrated="true"] {
  --bw-page: #fff8f6; --bw-ink: #452e2a; --bw-muted: #7c6059;
  --bw-rose: #9d514d; --bw-line: #edd6d0; --bw-rose-wash: #faeeeb;
  --bw-sage-wash: #f8eee5; --bw-sage: #96783e; --bw-gold: #96783e;
  --bw-card: #fffaf8; --bw-tint: #faeeeb; --bw-tint-strong: #f1dcd5;
  --bw-accent: #c58f82; --bw-attribution: #9d514d;
}
html[data-theme="neutral"] #bwStudySheet[data-bw-illustrated="true"] {
  --bw-page: #fdfbf9; --bw-ink: #382f2c; --bw-muted: #70605a;
  --bw-rose: #815c55; --bw-line: #e8dbd4; --bw-rose-wash: #f8efeb;
  --bw-sage-wash: #f5eee5; --bw-sage: #886d46; --bw-gold: #886d46;
  --bw-card: #fffdfa; --bw-tint: #f8efeb; --bw-tint-strong: #ebdcd5;
  --bw-accent: #b68c7c; --bw-attribution: #815c55;
}
html[data-theme="evening"] #bwStudySheet[data-bw-illustrated="true"] {
  --bw-page: #292121; --bw-ink: #f5ede7; --bw-muted: #ceb6af;
  --bw-rose: #e6b4ac; --bw-line: #60423e; --bw-rose-wash: #3b2b2c;
  --bw-sage-wash: #3a2e27; --bw-sage: #d8bf8a; --bw-gold: #d8bf8a;
  --bw-card: #322627; --bw-tint: #3b2b2c; --bw-tint-strong: #513735;
  --bw-accent: #c59381; --bw-attribution: #e6b4ac;
}
#bwStudySheet[data-bw-illustrated="true"] .bw-reader-toolbar { margin-bottom: 0; }
#bwStudySheet[data-bw-illustrated="true"] .bw-study-hero { padding-top: 0; }
#bwStudySheet[data-bw-illustrated="true"] .bw-study-cover {
  position: relative; width: calc(100% + 44px); margin: 0 -22px -12px;
  aspect-ratio: 4 / 3; overflow: hidden; background: var(--bw-page);
}
#bwStudySheet[data-bw-illustrated="true"] .bw-study-cover::after {
  content: ''; position: absolute; inset: 78% 0 0; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--bw-page));
}
#bwStudySheet[data-bw-illustrated="true"] .bw-pilot-art img {
  display: block; width: 100%; height: 100%; object-fit: contain;
  opacity: 1; filter: none; transition: none;
}
#bwStudySheet[data-bw-illustrated="true"] .bw-study-eyebrow { position: relative; }
#bwStudySheet[data-bw-illustrated="true"] .bw-interior-figure {
  width: 100%; aspect-ratio: 4 / 3; margin: 28px 0 32px;
  border-radius: 14px; overflow: hidden; background: var(--bw-rose-wash);
}
#bwStudySheet[data-bw-illustrated="true"] [data-bw-section="overview"] { background: var(--bw-card); }
#bwStudySheet[data-bw-illustrated="true"] .bw-example-card { border-left-color: var(--bw-accent); }
#bwStudySheet[data-bw-illustrated="true"] .bw-example-name { color: var(--bw-rose); }
#bwStudySheet[data-bw-illustrated="true"] [data-bw-section="historicalContext"] .cs-section-label { color: var(--bw-rose); }
#bwStudySheet[data-bw-illustrated="true"] [data-bw-section="reflectionQuestions"] {
  border: 1px solid var(--bw-line); border-radius: 14px; padding: 23px 20px 7px; background: var(--bw-card);
}
#bwStudySheet[data-bw-illustrated="true"] .cs-reflect-item:last-child { border-bottom: 0; }
#bwStudySheet[data-bw-illustrated="true"] [data-bw-section="whyItMatters"],
#bwStudySheet[data-bw-illustrated="true"] [data-bw-section="prayer"] { position: relative; }
#bwStudySheet[data-bw-illustrated="true"] .bw-pilot-flourish { position: absolute; right: 17px; top: 17px; width: 34px; height: 34px; color: var(--bw-gold); opacity: .45; pointer-events: none; }
#bwStudySheet[data-bw-illustrated="true"] .bw-pilot-flourish svg { width: 100%; height: 100%; }
#bwStudySheet[data-bw-illustrated="true"] [data-bw-section="prayer"] .bw-pilot-flourish { top: auto; bottom: 18px; right: 16px; width: 48px; height: 48px; opacity: .2; }
#bwStudySheet[data-bw-illustrated="true"] .bw-related-thumbnail { flex-basis: 72px; height: 72px; position: relative; overflow: hidden; border-radius: 11px; }
#bwStudySheet[data-bw-illustrated="true"] .bw-related-thumbnail img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; opacity: 1; filter: none; transition: none; }
#bwStudySheet[data-bw-illustrated="true"] .bw-related-thumbnail.bw-art-loaded > svg { visibility: hidden; }
@media (min-width: 768px) {
  #bwStudySheet[data-bw-illustrated="true"] .bw-study-shell { padding-left: 36px !important; padding-right: 36px !important; }
  #bwStudySheet[data-bw-illustrated="true"] .bw-reader-toolbar { min-height: 84px; margin-bottom: 30px; }
  #bwStudySheet[data-bw-illustrated="true"] .bw-study-hero { padding: 22px 0 38px; margin-bottom: 35px; }
  #bwStudySheet[data-bw-illustrated="true"] .bw-study-title { font-size: calc(3rem * var(--grounded-type-scale, 1)); line-height: 1.15; }
  #bwStudySheet[data-bw-illustrated="true"] .bw-study-subtitle { font-size: calc(1.25rem * var(--grounded-type-scale, 1)); }
  #bwStudySheet[data-bw-illustrated="true"] [data-bw-section] { margin-bottom: 42px; }
  #bwStudySheet[data-bw-illustrated="true"] .bw-teaching-h { font-size: calc(1.875rem * var(--grounded-type-scale, 1)); margin-top: 44px; }
  #bwStudySheet[data-bw-illustrated="true"] .bw-scripture-card { padding: 22px 25px; grid-template-columns: 38px minmax(0, 1fr); column-gap: 20px; }
  #bwStudySheet[data-bw-illustrated="true"] .bw-scripture-text { font-size: calc(1.25rem * var(--grounded-type-scale, 1)); }
  #bwStudySheet[data-bw-illustrated="true"] .bw-pullquote { padding: 26px 30px; }
  #bwStudySheet[data-bw-illustrated="true"] .bw-pullquote-text { font-size: calc(1.4375rem * var(--grounded-type-scale, 1)); }
  #bwStudySheet[data-bw-illustrated="true"] [data-bw-section="prayer"] { padding: 30px 36px 34px; }
  #bwStudySheet[data-bw-illustrated="true"] [data-bw-section="prayer"] .bw-prayer-p { font-size: calc(max(21px, var(--reading-size, 17px)) * var(--grounded-type-scale, 1)); }
  #bwStudySheet[data-bw-illustrated="true"] .bw-reader-toolbar { margin-bottom: 0; }
  #bwStudySheet[data-bw-illustrated="true"] .bw-study-hero { padding-top: 0; }
  #bwStudySheet[data-bw-illustrated="true"] .bw-study-cover { width: 100%; margin: 0 0 -12px; border-radius: 16px 16px 0 0; }
  #bwStudySheet[data-bw-illustrated="true"] .bw-related-thumbnail { flex-basis: 84px; height: 84px; }
}
@media (hover: hover) {
  #bwStudySheet[data-bw-illustrated="true"] .bw-scripture-card:hover, #bwStudySheet[data-bw-illustrated="true"] .cs-related-card:hover { background: var(--bw-rose-wash) !important; }
}
@media (prefers-reduced-motion: reduce) {
  #bwStudySheet[data-bw-illustrated="true"], #bwStudyBackdrop, #bwStudySheet[data-bw-illustrated="true"] *, #bwStudySheet[data-bw-illustrated="true"] *::before, #bwStudySheet[data-bw-illustrated="true"] *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Illustrated person fields reuse the approved reader type and palette.
   These hooks exist only in person studies; the standalone Character sheet is untouched. */
#bwStudySheet[data-bw-illustrated="true"] .cs-timeline-item {
  font-size: var(--reading-size, 17px); line-height: 1.78;
  color: var(--bw-ink); opacity: 1; padding-bottom: 20px;
}
#bwStudySheet[data-bw-illustrated="true"] .cs-timeline-item::before { border-color: var(--bw-gold); background: var(--bw-page); }
#bwStudySheet[data-bw-illustrated="true"] .cs-timeline-item::after { background: var(--bw-line); }
#bwStudySheet[data-bw-illustrated="true"] .cs-timeline-ref { color: var(--bw-rose); font-size: calc(.8125rem * var(--grounded-type-scale, 1)); }
#bwStudySheet[data-bw-illustrated="true"] .bw-family-item { margin-bottom: 18px; }
#bwStudySheet[data-bw-illustrated="true"] .bw-family-item + .bw-family-item { padding-top: 16px; border-top: 1px solid var(--bw-line); }
#bwStudySheet[data-bw-illustrated="true"] .bw-family-role { color: var(--bw-rose); opacity: 1; font-size: calc(.75rem * var(--grounded-type-scale, 1)); }
#bwStudySheet[data-bw-illustrated="true"] .bw-family-name { color: var(--bw-ink); font: 500 calc(1.25rem * var(--grounded-type-scale, 1))/1.5 'Playfair Display', Georgia, serif; }
#bwStudySheet[data-bw-illustrated="true"] .bw-family-note { color: var(--bw-ink); opacity: 1; font-size: var(--reading-size, 17px); line-height: 1.78; }
