/* Runtime overlay for existing and new Reader/preview books.
   Every rule is restricted to light mode; manuscript code colors and dark mode
   remain owned by the book theme. Loaded after the book's existing styles. */
body:not(.quarto-dark) {
  --bs-body-bg: #ffffff;
  --bs-body-color: #27272a;
  --bs-secondary-color: #52525b;
  --bs-border-color: #e1e1e5;
  --reader-link: #2563a6;
  --reader-link-hover: #2761e3;
  --bs-link-color: var(--reader-link);
  --bs-link-color-rgb: 37, 99, 166;
  --bs-link-hover-color: var(--reader-link-hover);
  --bs-link-hover-color-rgb: 39, 97, 227;
  color: #27272a;
  background-color: #ffffff;
}
body:not(.quarto-dark) :is(main.content a:not(.btn), .page-navigation a,
  .reader-shelf-link, .reader-shelf-mobile-link) { color: var(--reader-link); }
body:not(.quarto-dark) :is(main.content a:not(.btn), .page-navigation a,
  .reader-shelf-link, .reader-shelf-mobile-link):is(:hover, :focus-visible) { color: var(--reader-link-hover); }
/* Button controls retain the ink-blue brand color. */
body:not(.quarto-dark) :is(.reader-comment-action, .reader-theme-toggle) { color: #304b63; }
body:not(.quarto-dark) :is(.reader-comment-action, .reader-theme-toggle):hover { color: #22384c; }
body:not(.quarto-dark) :is(.reader-shelf-link, .reader-theme-toggle):hover {
  background-color: #ededf0;
}
body:not(.quarto-dark) :is(.sidebar, .quarto-secondary-nav) {
  color: #52525b;
  background-color: #ffffff;
  border-color: #e1e1e5;
}
body:not(.quarto-dark) :is(.sidebar-navigation a, #quarto-margin-sidebar a) {
  color: #52525b;
}
body:not(.quarto-dark) :is(.sidebar-navigation a:hover, .sidebar-navigation a.active,
  #quarto-margin-sidebar a:hover, #quarto-margin-sidebar a.active) {
  color: var(--reader-link);
  border-color: var(--reader-link);
}
body:not(.quarto-dark) :is(.sidebar-navigation a, #quarto-margin-sidebar a):is(:hover, :focus-visible) {
  color: var(--reader-link-hover);
  border-color: var(--reader-link-hover);
}
body:not(.quarto-dark) :is(.reader-shelf-nav, .reader-shelf-mobile-fallback,
  .reader-comments, .reader-comment-thread, .reader-comment-reply) {
  border-color: #e1e1e5;
}
body:not(.quarto-dark) .reader-shelf-mobile-fallback {
  background-color: rgb(255 255 255 / 96%);
}
body:not(.quarto-dark) .reader-theme-toggle { border-color: #b8b8c0; }
body:not(.quarto-dark) :is(.reader-shelf-link, .reader-theme-toggle,
  .reader-table-scroll):focus-visible {
  outline-color: #304b63;
}
body:not(.quarto-dark) .reader-navigation-status {
  color: #27272a;
  border-color: #b8b8c0;
  box-shadow: 0 8px 24px rgb(39 39 42 / 18%);
}
body:not(.quarto-dark) .reader-navigation-spinner {
  border-color: #c9c9d0;
  border-top-color: #304b63;
}
body:not(.quarto-dark) .reader-navigation-status button {
  color: #304b63;
  background-color: #ffffff;
  border-color: #304b63;
}
body:not(.quarto-dark) :is(.reader-comment-form textarea, .reader-comment-inline-form textarea) {
  color: #27272a;
  border-color: #b8b8c0;
}
body:not(.quarto-dark) :is(.reader-comment-form button, .reader-comment-inline-form button) {
  color: #ffffff;
  background-color: #304b63;
  border-color: #304b63;
}
body:not(.quarto-dark) :is(.reader-comment-form button, .reader-comment-inline-form button):hover {
  background-color: #22384c;
  border-color: #22384c;
}
/* Cancel/reply actions stay text controls rather than filled submit buttons. */
body:not(.quarto-dark) .reader-comment-inline-form .reader-comment-action {
  color: #52525b;
  background: transparent;
  border-color: transparent;
}
body:not(.quarto-dark) :is(.reader-comments-status, .reader-comments-empty,
  .reader-comment header time, .reader-comment-deleted) { color: #676771; }
body:not(.quarto-dark) .reader-comment-author-badge {
  color: #304b63;
  background-color: #e7ecf0;
}
