/* Paired reading themes. Photographs, charts and original media retain their colors. */
html[data-bme-theme="light"] { color-scheme: light; }
html[data-bme-theme="dark"] { color-scheme: dark; background: #111b17; }
#bme-site .bme-logo .bme-logo-dark, #bme-site .bme-theme-toggle .bme-sun { display: none; }
html[data-bme-theme="dark"] #bme-site .bme-logo .bme-logo-light,
html[data-bme-theme="dark"] #bme-site .bme-theme-toggle .bme-moon { display: none; }
html[data-bme-theme="dark"] #bme-site .bme-logo .bme-logo-dark,
html[data-bme-theme="dark"] #bme-site .bme-theme-toggle .bme-sun { display: block; }
html[data-bme-theme="dark"] body.bme-editorial {
  --bme-paper: #111b17;
  --bme-white: #19271f;
  --bme-ink: #e8eee2;
  --bme-body: #c4d0c2;
  --bme-muted: #9aaa9b;
  --bme-green: #b1d28c;
  --bme-green-dark: #c4e39e;
  --bme-line: #34483a;
  --bme-wash: #223426;
}
html[data-bme-theme="dark"] #bme-site .bme-header { background: rgba(17,27,23,.98); }
html[data-bme-theme="dark"] #bme-site .bme-button,
html[data-bme-theme="dark"] #bme-site .bme-skip,
html[data-bme-theme="dark"] #bme-site .bme-pagination .current { color: #14291c; background: #c4e39e; border-color: #c4e39e; }
html[data-bme-theme="dark"] #bme-site .bme-button:hover { color: #14291c; background: #dcf2bf; border-color: #dcf2bf; }
html[data-bme-theme="dark"] #bme-site .bme-deck,
html[data-bme-theme="dark"] #bme-site .bme-security-intro > p:not(.bme-eyebrow),
html[data-bme-theme="dark"] #bme-site .bme-author-bio { color: #b6c6b5; }
html[data-bme-theme="dark"] #bme-site .bme-security-section,
html[data-bme-theme="dark"] #bme-site .bme-author-card { background: #1c2b20; border-color: #3c523f; }
html[data-bme-theme="dark"] #bme-site .bme-card-text { border-color: #3c523f; }
html[data-bme-theme="dark"] #bme-site .bme-image-placeholder { background: #243627; color: #c4e39e; }
html[data-bme-theme="dark"] #bme-site .bme-byline-avatar,
html[data-bme-theme="dark"] #bme-site .bme-author-card-avatar { background: #223426; border-color: #496143; }
html[data-bme-theme="dark"] #bme-site .bme-author-card .bme-eyebrow { color: #abc493; }
html[data-bme-theme="dark"] #bme-site .bme-review-check { background: #30482c; color: #c5e3a0; }
html[data-bme-theme="dark"] #bme-site .bme-prose a { color: #c0de9d; text-decoration-color: #6f925b; }
html[data-bme-theme="dark"] #bme-site .bme-prose a:hover { color: #e1f5c5; background: #283d28; text-decoration-color: #b1d28c; }
html[data-bme-theme="dark"] #bme-site .bme-prose a:visited { color: #acc6a4; }
html[data-bme-theme="dark"] #bme-site .bme-prose code { color: #c7e6a8; background: #263c29; border-color: #3c583b; }
html[data-bme-theme="dark"] #bme-site .bme-prose pre { color: #d7e8c5; background: #0d1710; border-color: #3c523f; }
html[data-bme-theme="dark"] #bme-site .bme-prose pre code { background: transparent; color: inherit; border: 0; }
html[data-bme-theme="dark"] #bme-site .bme-table-scroll,
html[data-bme-theme="dark"] #bme-site .bme-prose .wp-block-table,
html[data-bme-theme="dark"] #bme-site .bme-prose table { background: #19271f; }
html[data-bme-theme="dark"] #bme-site .bme-prose table caption { color: #adc0a8; background: #1d2e22; border-color: #3a513c; }
html[data-bme-theme="dark"] #bme-site .bme-prose :is(th,td) { border-color: #364c38; }
html[data-bme-theme="dark"] #bme-site .bme-prose th { color: #e6f1dd; background: #2b4833; }
html[data-bme-theme="dark"] #bme-site .bme-prose tbody tr:nth-child(even) { background: #1e3023; }
html[data-bme-theme="dark"] #bme-site .bme-prose tbody tr:hover { background: #2a4030; }
html[data-bme-theme="dark"] #bme-site .bme-prose tfoot td { background: #2a4030; color: #d8e9c4; border-color: #5a754b; }
html[data-bme-theme="dark"] #bme-site .bme-toc { border-color: #70965b; }
html[data-bme-theme="dark"] #bme-site .bme-toc summary { color: #c4d9b2; }
html[data-bme-theme="dark"] #bme-site .bme-toc a { color: #aebdab; }
html[data-bme-theme="dark"] #bme-site .bme-toc a:hover,
html[data-bme-theme="dark"] #bme-site .bme-toc a[aria-current="location"] { background: #263d28; color: #d4eeb7; }
html[data-bme-theme="dark"] #bme-site .bme-faqs summary > span { color: #a8c88a; }
html[data-bme-theme="dark"] #bme-site .bme-reading-progress span { background: #b1d28c; }
html[data-bme-theme="dark"] #bme-site .bme-search-dialog input { background: #1c2c21; border-color: #57734d; color: #e8eee2; }
html[data-bme-theme="dark"] #bme-site .bme-search-dialog input::placeholder { color: #98ac98; }
html[data-bme-theme="dark"] #bme-site .bme-footer { background: #0b1610; border-top: 1px solid #2c4131; }
html[data-bme-theme="dark"] #bme-site .bme-footer .bme-button-lime { background: #d4ef93; border-color: #d4ef93; color: #143b29; }

/* Existing informational pages keep their content with the publication's type and palette. */
#bme-site .bme-page .elementor-widget-text-editor { font: inherit; color: inherit; }
#bme-site .bme-page .elementor-widget-wrap,
#bme-site .bme-page .elementor-widget-container { background-image: none !important; }
html[data-bme-theme="dark"] #bme-site .bme-page .elementor-element,
html[data-bme-theme="dark"] #bme-site .bme-page .elementor-widget-container,
html[data-bme-theme="dark"] #bme-site .bme-page .elementor-widget-wrap { background-color: transparent !important; color: var(--bme-body); }
html[data-bme-theme="dark"] #bme-site .bme-page .elementor-heading-title { color: var(--bme-ink) !important; }

#bme-site .bme-page-header .bme-eyebrow { margin-bottom: 12px; }
#bme-site .bme-contact-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 72px; max-width: 940px; margin: 0 auto; padding-top: 15px; }
#bme-site .bme-contact-intro h2 { font-size: 34px; margin-bottom: 24px; }
#bme-site .bme-contact-intro p { color: var(--bme-muted); font-size: 17px; line-height: 1.8; margin-bottom: 28px; }
#bme-site .bme-contact-form { padding: 30px; background: var(--bme-white); border: 1px solid var(--bme-line); border-radius: 4px; }
#bme-site .bme-contact-form > h2 { font-size: 29px; margin-bottom: 25px; }
#bme-site .bme-contact-form :is(input,textarea,select) { font: inherit; font-size: 16px; color: var(--bme-ink); background: var(--bme-paper); border: 1px solid var(--bme-line); border-radius: 3px; padding: 13px 15px; box-shadow: none; }
#bme-site .bme-contact-form :is(input,textarea)::placeholder { color: var(--bme-muted); }
#bme-site .bme-contact-form input { min-height: 48px; }
#bme-site .bme-contact-form textarea { min-height: 160px; }
#bme-site .bme-contact-form button[type="submit"] { background: #123c2c; color: #fff; border: 1px solid #123c2c; border-radius: 3px; padding: 14px 24px; min-height: 48px; font: 600 14px/1.4 var(--bme-sans); box-shadow: none; }
html[data-bme-theme="dark"] #bme-site .bme-contact-form button[type="submit"] { background: #c4e39e; color: #14291c; border-color: #c4e39e; }

@media (max-width: 1023px) {
  html[data-bme-theme="dark"] #bme-site .bme-toc { background: #1c2d20; border-color: #425b40; }
}
@media (max-width: 767px) {
  #bme-site .bme-header .bme-logo img { width: 176px; }
  #bme-site .bme-header-row { gap: 8px; }
  #bme-site .bme-header-actions .bme-icon-button { width: 40px; height: 44px; }
  #bme-site .bme-contact-layout { grid-template-columns: 1fr; gap: 28px; }
  #bme-site .bme-contact-form { padding: 23px 20px; }
  #bme-site .bme-story-meta, #bme-site .bme-breadcrumbs { font-size: 12px; }
  #bme-site .bme-author-name { font-size: 12px; }
  #bme-site .bme-publish-meta { font-size: 11px; }
  #bme-site .bme-author-bio { font-size: 14px; }
}
@media (max-width: 359px) {
  #bme-site .bme-header .bme-logo img { width: 140px; }
}
@media print {
  html[data-bme-theme] { color-scheme: light; background: white; }
  html[data-bme-theme="dark"] body.bme-editorial { --bme-paper: white; --bme-white: white; --bme-ink: #111; --bme-body: #222; --bme-muted: #444; --bme-green: #222; --bme-line: #aaa; }
  html[data-bme-theme="dark"] #bme-site :is(.bme-deck,.bme-author-bio,.bme-prose a) { color: #222; }
  html[data-bme-theme="dark"] #bme-site :is(.bme-author-card,table,thead,tbody,tr,th,td,code,pre) { background: white !important; color: #222 !important; }
}
