/* CSSBEST light theme. Scoped overrides; dark-mode rules remain untouched. */
html:not([data-theme="dark"]) {
  color-scheme:light;
  --color-primary:#a9470c;--color-primary-dark:#873707;--color-primary-light:#c15a16;
  --color-primary-rgb:169,71,12;--color-primary-bg:#fff1e5;
  --color-text:#192536;--color-text-light:#46556a;--color-text-muted:#566579;
  --color-bg:#fff;--color-bg-alt:#f4f6fa;--color-card-bg:#fff;--color-border:#cbd5e1;
  --color-shadow:rgba(28,42,62,.07);--color-shadow-hover:rgba(169,71,12,.12);
  --cbm-orange:var(--color-primary);--cbm-ink:var(--color-text);
  --cbm-muted:var(--color-text-light);--cbm-border:var(--color-border);--cbm-card:#fff;
  --cb2-accent:var(--color-primary);--cb2-ink:var(--color-text);
  --cb2-muted:var(--color-text-light);--cb2-surface:#fff;--cb2-line:var(--color-border);
}
html:not([data-theme="dark"]) .main-nav ul li a:hover {background:#fff1e5;color:#873707}
html:not([data-theme="dark"]) .main-nav .dropdown-menu {background:#fff;border-color:#cbd5e1}
html:not([data-theme="dark"]) .cbm-new.new-builds-section,
html:not([data-theme="dark"]) .cbm-catalog {background:#f7f9fc!important}
html:not([data-theme="dark"]) .cbm-tabs {background:#fff;border-color:#cbd5e1}
html:not([data-theme="dark"]) .cbm-tab:hover {background:#fff1e5}
html:not([data-theme="dark"]) .cbm-tab.active,
html:not([data-theme="dark"]) .cssbest-category-showcase .category-tabs .tab-btn.active {background:#a9470c!important;color:#fff!important;border-color:#a9470c!important;box-shadow:none}
html:not([data-theme="dark"]) article.build-card.cbm-card {background:#fff!important;border-color:#cbd5e1!important;box-shadow:0 4px 16px rgba(28,42,62,.05)!important}
html:not([data-theme="dark"]) article.build-card.cbm-card:hover {border-color:#a9470c!important}
html:not([data-theme="dark"]) .cbm-card .cb2-card-specs .cbm-icon,
html:not([data-theme="dark"]) .cbm-card .cb2-card-specs .cbm-meta-dot {color:#566579}
html:not([data-theme="dark"]) .cb4-catalog-heading {color:#192536}
html:not([data-theme="dark"]) .cb4-catalog-heading .cb4-icon {color:#a9470c}
html:not([data-theme="dark"]) .cb4-filters {background:#f4f6fa;color:#192536;border-color:#cbd5e1}
html:not([data-theme="dark"]) .cb4-sort-control select,
html:not([data-theme="dark"]) .cb4-search-control input {background:#fff;color:#192536;border-color:#8796aa;color-scheme:light}
html:not([data-theme="dark"]) :is(input,textarea)::placeholder {color:#566579;opacity:1}
html:not([data-theme="dark"]) .cb4-search-control button,
html:not([data-theme="dark"]) .cb2-button,
html:not([data-theme="dark"]) .cbm-card .cb2-card-actions .cb2-button {background:#a9470c;border-color:#a9470c!important;color:#fff!important}
html:not([data-theme="dark"]) .cb2-button-outline,
html:not([data-theme="dark"]) .cbm-card .cb2-card-actions .cb2-button-outline {background:#fff!important;color:#a9470c!important;border-color:#a9470c!important}
html:not([data-theme="dark"]) .cbm-more {border-color:#a9470c;background:#fff}
html:not([data-theme="dark"]) :is(.cbm-tab,.cbm-section-link,.cbm-more,.cbm-card a,.cb4-hero-button):focus-visible {outline:3px solid #873707;outline-offset:3px}
/* Hero and its supporting panels share the light surface. Keep video/image pixels intact. */
html:not([data-theme="dark"]) .cb4-hero {background:#f4f6fa;color:#192536;border-color:#cbd5e1}
html:not([data-theme="dark"]) .cb4-hero:before {opacity:.16}
html:not([data-theme="dark"]) .cb4-hero:after {background:linear-gradient(90deg,rgba(244,246,250,.96),rgba(244,246,250,.72)),linear-gradient(0deg,#f4f6fa,transparent)}
html:not([data-theme="dark"]) .cb4-hero-copy h1,
html:not([data-theme="dark"]) .cb4-hero-subtitle {color:#192536;text-shadow:none}
html:not([data-theme="dark"]) .cb4-hero-copy h1 span,
html:not([data-theme="dark"]) .cb4-hero-eyebrow {color:#a9470c}
html:not([data-theme="dark"]) .cb4-hero-description {color:#46556a}
html:not([data-theme="dark"]) .cb4-hero-button {background:#a9470c;border-color:#a9470c;color:#fff!important}
html:not([data-theme="dark"]) .cb4-hero-install {background:#fff!important;color:#a9470c!important}
html:not([data-theme="dark"]) .cb4-video-caption,
html:not([data-theme="dark"]) .cb4-feature-strip>div {background:#fff;border-color:#cbd5e1}
html:not([data-theme="dark"]) .cb4-video-caption strong,
html:not([data-theme="dark"]) .cb4-feature-strip strong {color:#192536}
html:not([data-theme="dark"]) .cb4-video-caption span,
html:not([data-theme="dark"]) .cb4-feature-strip span {color:#46556a}
html:not([data-theme="dark"]) .cb4-caption-spec {border-color:#cbd5e1}
html:not([data-theme="dark"]) .cb4-feature-strip .cb4-icon {color:#a9470c}
html:not([data-theme="dark"]) .cb4-feature-strip .cb4-icon-windows {color:#17639a}
/* Footer navigation is rendered with its own inline palette. */
html:not([data-theme="dark"]) .cb-bento {--cb-bg:#fff;--cb-border:#cbd5e1;--cb-text:#192536;--cb-muted:#46556a;--cb-orange:#a9470c}
html:not([data-theme="dark"]) .cb-bento-card {background:#fff;border-color:#cbd5e1}
html:not([data-theme="dark"]) .cb-bento-row,
html:not([data-theme="dark"]) .cb-bento-version {background:#f4f6fa;border-color:#cbd5e1}
html:not([data-theme="dark"]) .cb-bento-row:hover,
html:not([data-theme="dark"]) .cb-bento-version:hover {background:#fff1e5;border-color:#a9470c}
html:not([data-theme="dark"]) .cb-bento-arrow,
html:not([data-theme="dark"]) .cb-bento-version svg {color:#566579}
html:not([data-theme="dark"]) .cb-bento-icon {background:#fff1e5;color:#a9470c}
html:not([data-theme="dark"]) .cb-bento-color-1 {background:#e8f1ff;color:#215f9c}
html:not([data-theme="dark"]) .cb-bento-color-2 {background:#f1eaff;color:#6b3aa0}
html:not([data-theme="dark"]) .cb-bento-feature {background:#fff1e5;border-color:#d8a47e}
html:not([data-theme="dark"]) .cb-bento-feature:before {opacity:.12}
html:not([data-theme="dark"]) .cb-bento-feature:after {background:linear-gradient(90deg,#fff1e5,rgba(255,241,229,.75))}
html:not([data-theme="dark"]) .cb-bento .cb-bento-feature p,
html:not([data-theme="dark"]) .cb-bento .cb-bento-feature .cb-bento-sub {color:#46556a}
html:not([data-theme="dark"]) .cb-bento-kicker {color:#873707}
html:not([data-theme="dark"]) .cb-bento a.cb-bento-cta {background:#a9470c;color:#fff;border-color:#a9470c}
/* File catalog and long-form content. */
html:not([data-theme="dark"]) .article-content a {color:#a9470c;text-decoration:underline;text-underline-offset:.18em}
html:not([data-theme="dark"]) .article-network-grid a {text-decoration:none}
html:not([data-theme="dark"]) .map-category-chip.is-empty {opacity:1;background:#f4f6fa;color:#566579}
html:not([data-theme="dark"]) .map-category-chip.is-empty .map-category-icon {background:#dce3ed;color:#46556a;box-shadow:none}
html:not([data-theme="dark"]) .server-players-cell strong {color:#16703c}
/* Generator has a separate palette and hard-coded input, code and notice colors. */
html:not([data-theme="dark"]) #cssbest-cfg {color-scheme:light;--bg:#fff;--panel:#fff;--line:#cbd5e1;--muted:#46556a;--accent:#a9470c;--white:#192536;color:#192536}
html:not([data-theme="dark"]) #cssbest-cfg .cfg-fields input,
html:not([data-theme="dark"]) #cssbest-cfg .cfg-fields select {background:#fff;color:#192536;border-color:#8796aa}
html:not([data-theme="dark"]) #cssbest-cfg .cfg-side-card,
html:not([data-theme="dark"]) #cssbest-cfg .cfg-hero-file {background:#f4f6fa;border-color:#cbd5e1}
html:not([data-theme="dark"]) #cssbest-cfg .cfg-section-title>span {background:#fff1e5;color:#a9470c}
html:not([data-theme="dark"]) #cssbest-cfg .cfg-primary {background:#a9470c;color:#fff}
html:not([data-theme="dark"]) #cssbest-cfg .cfg-primary:hover {background:#873707}
html:not([data-theme="dark"]) #cssbest-cfg .cfg-secondary {border-color:#8796aa;color:#192536}
html:not([data-theme="dark"]) #cssbest-cfg :is(.cfg-notice,.cfg-backup-reminder) {background:#fff1e5;border-color:#c98b5f}
html:not([data-theme="dark"]) #cssbest-cfg .cfg-backup-reminder h2 {color:#192536}
html:not([data-theme="dark"]) #cssbest-cfg .cfg-backup-reminder p {color:#46556a}
html:not([data-theme="dark"]) #cssbest-cfg :is(code,.cfg-file-code,.cfg-file-code b) {color:#873707}
html:not([data-theme="dark"]) #cssbest-cfg pre {background:#f4f6fa;color:#234b34}
@media(max-width:760px) {
  html:not([data-theme="dark"]) .main-nav {background:#fff;border-color:#cbd5e1}
  html:not([data-theme="dark"]) .cb4-sort-control select,
  html:not([data-theme="dark"]) .cb4-search-control input {min-width:0;font-size:16px}
  html:not([data-theme="dark"]) .cb4-search-control {min-width:0}
}
