/* Each content surface owns its foreground and background, including outside MAIN. */
html body.ritual-shell > #cuaderno {
  background: #f3efe5;
  color: #101810;
  color-scheme: light;
  --line: #b5b4a7;
}

html body.ritual-shell > #cuaderno :is(.nb-kicker, .nb-note, .nb-draft, .nb-empty) {
  color: #556052;
}

html body.ritual-shell > #cuaderno :is(input, textarea)::placeholder {
  color: #626c5f;
  opacity: 1;
}

html body.ritual-shell > #cuaderno .nb-status {
  color: #2a5739;
}

html body.ritual-shell > #cuaderno .nb-status.error {
  color: #9a3026;
}

/* The methods gallery is an intentionally dark surface in the current design. */
html body.ritual-shell.view-methods:not(.nb-open) > main {
  background: #101d14;
  color: #f3efe5;
  color-scheme: dark;
}

html body.ritual-shell .method-gallery .gallery-continue {
  color: #101d14;
}

/* Learning readers and illustrated guides are siblings of MAIN. */
html body.ritual-shell > :is(#learning-view, #illustrated-guides) {
  background: #f3efe5;
  color: #142319;
  color-scheme: light;
}

html body.ritual-shell:is(.view-learning, .view-illustrated) {
  background: #f3efe5 !important;
  color: #142319;
  color-scheme: light;
}
