/* GPLB v1.1 / light-dark color layer for the EXISTING Gaspoll WordPress theme.
   Only presentation is changed; plugin and WooCommerce behavior remains untouched. */
html[data-gpcolor] { color-scheme: light; }
html[data-gpcolor="dark"] { color-scheme: dark; }
html[data-gpcolor] body {
  background:var(--gpcolor-bg)!important;
  color:var(--gpcolor-text)!important;
  transition:background-color .22s ease,color .22s ease;
}
html[data-gpcolor] body :where(.gp-main,.content-area,.wrap,.gp-rubrics,.pagination,.gp-news-grid,.gphw-section) { color:var(--gpcolor-text); }
html[data-gpcolor] .gp-header,html[data-gpcolor] .site-header{
  background:var(--gpcolor-header-bg)!important;color:var(--gpcolor-header-text)!important;
  border-bottom:1px solid color-mix(in srgb,var(--gpcolor-header-text) 12%,transparent)!important;
}
html[data-gpcolor] .gp-header .gp-brand,html[data-gpcolor] .gp-header .gp-menu a,
html[data-gpcolor] .gp-header .gp-menu-toggle,
html[data-gpcolor] .site-header a,html[data-gpcolor] .site-header .brand,
html[data-gpcolor] .site-header .menu-toggle {color:var(--gpcolor-header-text)!important;}
html[data-gpcolor] .gp-header .gp-menu-toggle{
  background:var(--gpcolor-header-bg)!important;
  border:1px solid color-mix(in srgb,var(--gpcolor-header-text) 30%,transparent)!important;
}
html[data-gpcolor] .gp-header a:hover,html[data-gpcolor] .site-header a:hover{color:var(--gpcolor-accent)!important;}
html[data-gpcolor] .gp-hero { background:var(--gpcolor-bg)!important; }
html[data-gpcolor] .gp-main h2, html[data-gpcolor] .gp-main h3,
html[data-gpcolor] .gphw-heading h2,html[data-gpcolor] .gphw-copy strong,
html[data-gpcolor] .gp-news-card a, html[data-gpcolor] .gp-product-card>a,
html[data-gpcolor] .gp-product-card h3,html[data-gpcolor] .gp-rubrics a,
html[data-gpcolor] .post-card :is(h2,h3,a), html[data-gpcolor] .product-card :is(h2,h3,a),
html[data-gpcolor] .content-area .page-title h1,html[data-gpcolor] .content-area .article-content,
html[data-gpcolor] .single-post .article-content :where(p,li,strong,em,h2,h3,h4,h5,h6,blockquote),
html[data-gpcolor] .woocommerce :where(h1,h2,h3,h4,p,div.product .summary,div.product .product_title) {
  color:var(--gpcolor-text)!important;
}
html[data-gpcolor] .gp-news-card, html[data-gpcolor] .gp-product-card,
html[data-gpcolor] .gphw-item,html[data-gpcolor] .post-card,
html[data-gpcolor] .product-card,
html[data-gpcolor] .woocommerce ul.products li.product,
html[data-gpcolor] .woocommerce div.product .woocommerce-tabs,
html[data-gpcolor] .woocommerce table.shop_table,
html[data-gpcolor] .woocommerce .cart-collaterals {
  background:var(--gpcolor-panel)!important;color:var(--gpcolor-text)!important;
  border-color:color-mix(in srgb,var(--gpcolor-text) 15%,transparent)!important;
}
html[data-gpcolor] .gp-rubrics a {border-color:color-mix(in srgb,var(--gpcolor-text) 20%,transparent)!important;}
html[data-gpcolor] .gphw-date, html[data-gpcolor] .meta,
html[data-gpcolor] .gp-card-summary,html[data-gpcolor] .post-card p,
html[data-gpcolor] .article-content figcaption {color:var(--gpcolor-text)!important;opacity:.76;}
html[data-gpcolor] :where(.gphw-heading a,.gp-card-more,.gp-product-price,.read-more,.article-content a){color:var(--gpcolor-accent)!important;}
html[data-gpcolor] .gaspoll-managed-footer,
html[data-gpcolor] .site-footer {
  background:var(--gpcolor-footer-bg)!important;color:var(--gpcolor-footer-text)!important;
}
html[data-gpcolor] .gaspoll-managed-footer :where(h3,h4,p,li,strong,a),
html[data-gpcolor] .site-footer :where(h3,h4,p,li,strong,a),
html[data-gpcolor] .gaspoll-managed-copyright {
  color:var(--gpcolor-footer-text)!important;
}
html[data-gpcolor] .gaspoll-managed-legal,
html[data-gpcolor] .gaspoll-managed-copyright {border-color:color-mix(in srgb,var(--gpcolor-footer-text) 20%,transparent)!important;}
html[data-gpcolor] .gpads-slot {background:var(--gpcolor-panel);color:var(--gpcolor-text);border-color:color-mix(in srgb,var(--gpcolor-text) 20%,transparent);}
html[data-gpcolor] .gpads-slot iframe, html[data-gpcolor] .gpads-slot img {filter:none;}
html[data-gpcolor] .gp-slide-title,
html[data-gpcolor] .gphw-layout-gallery .gphw-copy,
html[data-gpcolor] .gphw-layout-gallery .gphw-copy strong,
html[data-gpcolor] .gphw-layout-gallery .gphw-date{color:#ffffff!important;opacity:1;}
/* Existing logo remains as-is; the switch is a separate control, never replaces logo markup. */
.gplb-site-switch{appearance:none;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:5px;
  width:44px;height:44px;flex:0 0 44px;border-radius:999px;cursor:pointer;
  color:var(--gpcolor-header-text)!important;background:transparent!important;
  border:1px solid color-mix(in srgb,var(--gpcolor-header-text) 35%,transparent)!important;
  margin-left:8px;line-height:1;vertical-align:middle;padding:9px;transition:transform .2s ease,border-color .2s ease;
}
.gplb-site-switch:hover{transform:rotate(12deg);border-color:var(--gpcolor-accent)!important;}
.gplb-site-switch:focus-visible{outline:3px solid var(--gpcolor-accent);outline-offset:3px;}
.gplb-site-switch svg{width:22px;height:22px;display:block;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;}
.gplb-site-switch .gplb-icon-sun{display:none;}
html[data-gpcolor="dark"] .gplb-site-switch .gplb-icon-sun{display:block;}
html[data-gpcolor="dark"] .gplb-site-switch .gplb-icon-moon{display:none;}
.gp-header-inner .gplb-site-switch {order:2;}
@media (max-width:850px){.gp-header-inner .gplb-site-switch{margin-left:auto;order:1;}.gp-header-inner .gp-menu-toggle{order:2;}.gp-header-inner .gp-nav{order:3;}}
/* Preserve the hero's photographic black-overlay legibility, adapt lower landing sections in both modes. */
html[data-gpcolor] body.gplb-landing-page{background:var(--gpcolor-bg)!important;}
html[data-gpcolor] .gplb-root{background:var(--gpcolor-bg);color:var(--gpcolor-text);}
html[data-gpcolor] .gplb-root .gplb-about,
html[data-gpcolor] .gplb-root .gplb-news,
html[data-gpcolor] .gplb-root .gplb-events,
html[data-gpcolor] .gplb-root .gplb-pillars,
html[data-gpcolor] .gplb-root .gplb-garage,
html[data-gpcolor] .gplb-root .gplb-gallery {background:var(--gpcolor-bg);color:var(--gpcolor-text);}
html[data-gpcolor] .gplb-root :where(.gplb-pillar,.gplb-story,.gplb-product,.gplb-event){
  background:var(--gpcolor-panel);color:var(--gpcolor-text);border:1px solid color-mix(in srgb,var(--gpcolor-text) 14%,transparent);box-shadow:none;
}
html[data-gpcolor] .gplb-root :where(.gplb-pillar h3,.gplb-product h3,.gplb-story h3,.gplb-event h3,.gplb-about h2,.gplb-section-head h2,.gplb-story-link,.gplb-event > div:last-child){color:var(--gpcolor-text);}
html[data-gpcolor] .gplb-root :where(.gplb-about p,.gplb-story p,.gplb-pillar p,.gplb-head-aside,.gplb-about-mark,.gplb-event span:first-child,.gplb-story-meta){color:var(--gpcolor-text);opacity:.76;}
html[data-gpcolor] .gplb-root .gplb-text-link {color:var(--gpcolor-text)!important;}
html[data-gpcolor] .gplb-root .gplb-product-price {color:var(--gpcolor-text);}
html[data-gpcolor] .gplb-root .gplb-story-more,
html[data-gpcolor] .gplb-root .gplb-event-link,
html[data-gpcolor] .gplb-root .gplb-moreline a {color:var(--gpcolor-accent);}
html[data-gpcolor] .gplb-root :where(.gplb-pillar,.gplb-gallery-item):hover{border-color:var(--gpcolor-accent);}
html[data-gpcolor] .gplb-root .gplb-hero,html[data-gpcolor] .gplb-root .gplb-cta{color:#fff;}
html[data-gpcolor] .gplb-root .gplb-hero :where(h1,h2,p),html[data-gpcolor] .gplb-root .gplb-cta :where(h1,h2,p){color:inherit;}
html[data-gpcolor] .gplb-root .gplb-gallery-item span {color:#fff;opacity:1;}
html[data-gpcolor="light"] .gplb-root .gplb-btn-ghost{border-color:#9b9ba1;color:#fff!important;}
@media (prefers-reduced-motion: reduce){html[data-gpcolor] body{transition:none}.gplb-site-switch{transition:none}}
