/* REBOOSTLAB 4.3.1 — theme-independent appearance modes and controls.
   Light = newspaper, Dark = graphite, Green = VCB FX palette (derived from the supplied repo).
   Activated on <html> so post/page/archive all share the same state. */
html[data-rb-theme="light"] {color-scheme:light}
html[data-rb-theme="dark"] {color-scheme:dark;
  --rb-press-bg:#0c1118;--rb-press-panel:#151d27;--rb-press-soft:#111923;
  --rb-press-nav:#101821;--rb-press-ink:#eaf0f4;--rb-press-muted:#9dabba;
  --rb-press-line:#2e3b49;--rb-press-line-strong:#435667;--rb-press-accent:#d3e1ed;
  --rb-green:#91afd0;--rb-green-dark:#bfd5eb;--rb-green-soft:#1c2d3e;
  --rb-black:#eaf0f4;--rb-ink:#eaf0f4;--rb-muted:#9dabba;
  --rb-line:#2e3b49;--rb-surface:#111923;--rb-white:#151d27;
  --rb-shadow:0 3px 18px rgba(0,0,0,.12);
}
html[data-rb-theme="green"] {color-scheme:dark;
  --rb-press-bg:#06150f;--rb-press-panel:#0b2419;--rb-press-soft:#0e2c20;
  --rb-press-nav:#07170e;--rb-press-ink:#e5f4ea;--rb-press-muted:#9fc0aa;
  --rb-press-line:#24543b;--rb-press-line-strong:#396e4b;--rb-press-accent:#92d45e;
  --rb-green:#92d45e;--rb-green-dark:#b7e88f;--rb-green-soft:#183722;
  --rb-black:#e5f4ea;--rb-ink:#e5f4ea;--rb-muted:#9fc0aa;
  --rb-line:#24543b;--rb-surface:#0e2c20;--rb-white:#0b2419;
  --rb-shadow:0 3px 18px rgba(0,0,0,.15);
}
/* Desktop mode switch is always visible; on narrow devices switch to a small popover. */
.rb-appearance-control {display:inline-flex;align-items:center;gap:2px;border:1px solid var(--rb-press-line);
  background:var(--rb-press-soft);border-radius:9px;padding:3px;white-space:nowrap;}
.rb-appearance-control button{display:inline-flex;align-items:center;justify-content:center;gap:5px;
  min-height:32px;padding:5px 9px;border:1px solid transparent;border-radius:6px;background:transparent;
  color:var(--rb-press-muted);font-size:11px;font-weight:650;cursor:pointer;}
.rb-appearance-control button span:first-child {font-size:14px;line-height:1}
.rb-appearance-control button:hover{background:var(--rb-press-panel);color:var(--rb-press-ink)}
.rb-appearance-control button[aria-pressed="true"]{background:var(--rb-press-panel);border-color:var(--rb-press-line);
  color:var(--rb-press-ink);box-shadow:0 1px 3px rgba(0,0,0,.07);}
.rb-appearance-mobile {display:none;position:relative;z-index:122;}
.rb-appearance-mobile>summary{list-style:none;display:grid;place-items:center;width:40px;height:40px;cursor:pointer;
  border:1px solid var(--rb-press-line);border-radius:9px;color:var(--rb-press-ink);background:var(--rb-press-soft);}
.rb-appearance-mobile>summary::-webkit-details-marker{display:none}
.rb-appearance-mobile>summary span{font-size:20px;line-height:1}
.rb-appearance-popover{position:absolute;right:0;top:calc(100% + 8px);width:162px;display:grid;gap:3px;
  border:1px solid var(--rb-press-line);border-radius:10px;padding:6px;background:var(--rb-press-panel);
  box-shadow:0 12px 30px rgba(0,0,0,.18);}
.rb-appearance-popover button{min-height:40px;padding:8px 10px;text-align:left;border:0;border-radius:7px;
  color:var(--rb-press-ink);background:transparent;font-size:12px;cursor:pointer;}
.rb-appearance-popover button[aria-pressed="true"],.rb-appearance-popover button:hover {background:var(--rb-press-soft);}
.rb-appearance-popover button span{display:inline-block;min-width:22px;font-size:17px;text-align:center}
@media(max-width:1160px){.rb-appearance-control--desktop{display:none}.rb-appearance-mobile{display:block}}
@media(max-width:520px){
 .rb-appearance-mobile>summary{width:38px;height:40px}
 .rb-press-topbar .site-tools{gap:6px}
 .rb-mobile-brand{min-width:0}
 .rb-mobile-brand > span:last-child{overflow:hidden}
 .rb-mobile-brand strong,.rb-mobile-brand small{overflow:hidden;text-overflow:ellipsis}
}
/* Color modes affect ALL surfaces (including WordPress singular templates), not just the home page. */
html:is([data-rb-theme="dark"],[data-rb-theme="green"]) {
  background:var(--rb-press-bg)!important;
}
html:is([data-rb-theme="dark"],[data-rb-theme="green"]) body.rb-press-theme{
  background:var(--rb-press-bg)!important;color:var(--rb-press-ink)!important;
}
html:is([data-rb-theme="dark"],[data-rb-theme="green"]) body.rb-press-theme :is(h1,h2,h3,h4,h5,h6){color:var(--rb-press-ink)}
html:is([data-rb-theme="dark"],[data-rb-theme="green"]) body.rb-press-theme :is(
  .rb-site-nav,.rb-publishing-rail,.rb-publishing-main,.rb-site-workspace,.rb-page-header,
  .rb-section--soft,.rb-article-header,.rb-single-post,.rb-archive-section){
  background:var(--rb-press-bg)!important;color:var(--rb-press-ink)!important;
}
html:is([data-rb-theme="dark"],[data-rb-theme="green"]) body.rb-press-theme .rb-site-nav{background:var(--rb-press-nav)!important;border-color:var(--rb-press-line)!important;}
html:is([data-rb-theme="dark"],[data-rb-theme="green"]) body.rb-press-theme .site-header.rb-press-topbar{
  background:var(--rb-press-bg)!important;border-bottom-color:var(--rb-press-line)!important;
}
html:is([data-rb-theme="dark"],[data-rb-theme="green"]) body.rb-press-theme :is(
  .rb-widget,.rb-publishing-rail .rb-widget,.rb-topic,.rb-card--standard,.rb-card--list,
  .rb-feature-main,.rb-feature-side,.rb-feature-card,.rb-card--archive-featured,
  .rb-side-note,.rb-author-box,.rb-footer-cta,.rb-search-result,.rb-related-card,
  .rb-article-layout--press,.rb-reading-box,.rb-article-aside,.rb-page-main,
  .rb-sidebar,.search-popover,.rb-article-content blockquote,.wp-block-quote){
  background:var(--rb-press-panel)!important;border-color:var(--rb-press-line)!important;color:var(--rb-press-ink)!important;
}
html:is([data-rb-theme="dark"],[data-rb-theme="green"]) body.rb-press-theme :is(
  .rb-article-layout--press,.rb-page-main,.rb-sidebar,.rb-publishing-main,.rb-article-aside,
  .rb-reading-box,.rb-archive-section){background:transparent!important;}
html:is([data-rb-theme="dark"],[data-rb-theme="green"]) body.rb-press-theme :is(
  .rb-feature-overlay,.rb-card__content,.rb-feature-placeholder,.rb-topic-grid,.rb-slot,
  .rb-article-content,.rb-page-header__inner){background:transparent!important;color:var(--rb-press-ink)!important;}
html:is([data-rb-theme="dark"],[data-rb-theme="green"]) body.rb-press-theme :is(
  .rb-article-content,.rb-entry-content,.entry-content,.rb-article-content p,.rb-card__content h2,
  .rb-card__content h3,.rb-feature-overlay h2,.rb-feature-overlay h3,.rb-topic strong,
  .rb-hero__intro h1,.rb-section-head h2,.rb-article-title,.rb-side-brand__name,
  .rb-topbar-path strong,.rb-mobile-brand strong,.rb-footer-cta h2,.site-footer__brand strong,
  .rb-post-footer,.rb-rail-heading,.rb-widget-title,.rb-related__title){
  color:var(--rb-press-ink)!important;
}
html:is([data-rb-theme="dark"],[data-rb-theme="green"]) body.rb-press-theme :is(
  .rb-feature-overlay .rb-meta,.rb-card__excerpt,.rb-article-deck,.rb-hero__intro > p,
  .rb-meta,.rb-kicker,.rb-topic span,.rb-archive-description,.archive-description,
  .rb-topbar-path,.rb-topbar-subtitle,.rb-side-brand__tagline,.rb-mobile-brand small,
  .rb-nav-section-title,.rb-side-footer,.rb-rail-heading,.rb-side-note p,
  .rb-widget p,.rb-article-content figcaption,.wp-block-image figcaption){
  color:var(--rb-press-muted)!important;
}
html:is([data-rb-theme="dark"],[data-rb-theme="green"]) body.rb-press-theme :is(
  .rb-site-nav .primary-menu a,.rb-site-nav .menu>ul a,.rb-side-footer a,
  .rb-side-note a,.rb-publishing-rail .rb-widget a,.site-footer a,
  .rb-article-content a,.rb-article-main a,.rb-topic a,.rb-read-more,
  .rb-feature-overlay a,.rb-card__content a){color:var(--rb-press-ink);}
html:is([data-rb-theme="dark"],[data-rb-theme="green"]) body.rb-press-theme .rb-site-nav :is(
  .primary-menu,.menu>ul) :is(a:hover,.current-menu-item>a,.current-menu-ancestor>a,.current_page_item>a,.current_page_ancestor>a),
html:is([data-rb-theme="dark"],[data-rb-theme="green"]) body.rb-press-theme .rb-site-nav .submenu-open>a{
  color:var(--rb-press-ink)!important;background:var(--rb-press-soft)!important;border-color:var(--rb-press-line)!important;
}
html:is([data-rb-theme="dark"],[data-rb-theme="green"]) body.rb-press-theme :is(
  .rb-article-content blockquote,.wp-block-quote,.rb-badge,.rb-tags a,.pagination .page-numbers,
  .rb-article-content code,.rb-article-content th,.rb-entry-content th,
  .rb-press-topbar .search-toggle>summary,.rb-press-topbar .menu-toggle,
  .rb-nav-close,.rb-site-nav .submenu-toggle:hover){
  background:var(--rb-press-soft)!important;color:var(--rb-press-ink)!important;border-color:var(--rb-press-line)!important;
}
html:is([data-rb-theme="dark"],[data-rb-theme="green"]) body.rb-press-theme :is(
  input,textarea,select,.search-field,.wp-block-search__input,.search-popover,
  .comment-form input,.comment-form textarea){
  color:var(--rb-press-ink);background:var(--rb-press-soft);border-color:var(--rb-press-line);
}
html:is([data-rb-theme="dark"],[data-rb-theme="green"]) body.rb-press-theme :is(
  .rb-card--list,.rb-card--compact-list,.rb-widget li,.rb-section-head,
  .rb-article-header,.rb-page-header,.rb-post-footer,.rb-article-content td,
  .rb-article-content th,.rb-article-content table,.post-navigation,
  .rb-related-below,.rb-footer-cta,.rb-article-content hr,
  .rb-sidebar-custom-logo){border-color:var(--rb-press-line)!important;}
html:is([data-rb-theme="dark"],[data-rb-theme="green"]) body.rb-press-theme .site-footer {
  background:var(--rb-press-nav)!important;color:var(--rb-press-muted)!important;border-color:var(--rb-press-line)!important;
}
html:is([data-rb-theme="dark"],[data-rb-theme="green"]) body.rb-press-theme .site-footer :is(h2,h3,a,strong){color:var(--rb-press-ink)!important;}
html:is([data-rb-theme="dark"],[data-rb-theme="green"]) body.rb-press-theme .site-footer__bottom {border-color:var(--rb-press-line)!important;}
html:is([data-rb-theme="dark"],[data-rb-theme="green"]) body.rb-press-theme :is(
  .rb-appearance-control button[aria-pressed="true"],.rb-appearance-popover button[aria-pressed="true"]){
  color:var(--rb-press-ink)!important;background:var(--rb-press-soft)!important;
}
html[data-rb-theme="green"] body.rb-press-theme :is(
  .rb-article-content a,.rb-read-more,.rb-side-note a,.rb-section-head a,
  .rb-widget a:hover,.rb-publishing-rail .rb-widget a:hover){color:#a7ea73!important;}
html[data-rb-theme="green"] body.rb-press-theme .rb-side-brand__mark,
html[data-rb-theme="green"] body.rb-press-theme .rb-mobile-brand__mark {background:#92d45e!important;color:#06150f!important;}
html[data-rb-theme="dark"] body.rb-press-theme .rb-side-brand__mark,
html[data-rb-theme="dark"] body.rb-press-theme .rb-mobile-brand__mark {background:#ccd9e6!important;color:#101821!important;}
html[data-rb-theme="green"] body.rb-press-theme :is(.reading-progress,.sticky::before){background:#92d45e!important;}
html[data-rb-theme="dark"] body.rb-press-theme .reading-progress{background:#91afd0!important;}
html:is([data-rb-theme="dark"],[data-rb-theme="green"]) body.rb-press-theme :is(
  .rb-button--green,.search-submit,.wp-block-search__button,.form-submit .submit,
  .rb-publishing-rail .search-submit,.rb-publishing-rail .wp-block-search__button){
  background:var(--rb-press-accent)!important;color:var(--rb-press-bg)!important;
}
html[data-rb-theme="dark"] body.rb-press-theme :is(.rb-button--green,.search-submit,.form-submit .submit){color:#0c1118!important;}
html:is([data-rb-theme="dark"],[data-rb-theme="green"]) body.rb-press-theme .rb-article-content pre{background:#070c11;color:#e6f0eb;}
html:is([data-rb-theme="dark"],[data-rb-theme="green"]) body.rb-press-theme :focus-visible{outline-color:var(--rb-press-accent)!important;}
@media(max-width:760px){
 html:is([data-rb-theme="dark"],[data-rb-theme="green"]) body.rb-press-theme .rb-site-nav{background:var(--rb-press-nav)!important;}
}
