/* ROSH Catalog X v3.1 — unified surface tokens, no white chrome around dark panels.
   Loaded last on customer surfaces. Do not restyle genuine product photos. */
:root {
  --rosh-accent:#72b9e5;
  --rosh-focus:#74bbed;
  --rosh-radius:18px;
  --rosh-ease:cubic-bezier(.22,1,.36,1);
}
html[data-rosh-theme="dark"] {
  --rosh-canvas:#0f1b24;--rosh-panel:#172630;--rosh-raised:#1e303d;
  --rosh-divider:rgba(179,210,229,.11);--rosh-ink:#f2f7fa;
  --rosh-muted:#a8bbca;--rosh-field:#1b2e3b;
  --rosh-elevation:0 20px 58px rgba(0,6,11,.28);
}
html[data-rosh-theme="light"] {
  --rosh-canvas:#f7f9fa;--rosh-panel:#fff;--rosh-raised:#f2f6f8;
  --rosh-divider:rgba(29,67,88,.10);--rosh-ink:#1a2c38;
  --rosh-muted:#637687;--rosh-field:#f7fafc;
  --rosh-elevation:0 16px 48px rgba(17,48,68,.07);
}
/* Navigation is intentionally charcoal in both appearances. */
header.nav .nav-icon { border-color:transparent; background:rgba(255,255,255,.065); border-radius:11px; transition:background .18s var(--rosh-ease); }
header.nav .nav-icon:hover { background:rgba(255,255,255,.13); }
header.nav .rosh-theme-toggle { min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;font-size:11px;font-weight:700; }
.rosh-theme-glyph { font-size:16px;line-height:1;min-width:17px;text-align:center; }
.rosh-theme-toggle:focus-visible { outline:2px solid var(--rosh-focus)!important;outline-offset:3px; }
@media(max-width:740px) {
  header.nav .rosh-theme-toggle {min-width:38px;padding:8px!important;flex-shrink:0}
  header.nav .rosh-theme-label {display:none}
}
/* Shared reduced-border treatments; preserve visual states and focus rings. */
.catalog-shell,.product,.cx-tile,.inquiry,.wholesale-panel,.pane,.ri-intro-aside,.ri-tier {
  border-color:transparent!important;
}
.catalog-shell,.inquiry,.pane {box-shadow:var(--rosh-elevation)}
.catalog-search,.catalog-tools select,.technical-details select,.technical-purchase input,
.inquiry input,.inquiry textarea,.inquiry select,.pane input,.pane select {
  border-color:var(--rosh-divider)!important;
}
:is(button,a,input,select,textarea):focus-visible { outline:2px solid var(--rosh-focus);outline-offset:3px; }
:where(.catalog-search,.hero-search):focus-within {box-shadow:0 0 0 2px rgba(108,184,231,.28)}
/* Product details: stop visually boxing every section. */
body:has(.product-page) .technical-gallery,
body:has(.product-page) .technical-details {
  border:0!important;box-shadow:var(--rosh-elevation);
}
body:has(.product-page) .technical-gallery { background:#f1f4f6; }
body:has(.product-page) .technical-hero-image {background:#f1f4f6}
body:has(.product-page) .technical-info {border-bottom:1px solid var(--rosh-divider)}
body:has(.product-page) :is(.px-gallery-controls,.technical-thumbnails) {border-color:var(--rosh-divider)}
body:has(.product-page) .technical-thumb {
  border:1px solid transparent!important;box-shadow:none;transition:transform .2s var(--rosh-ease),box-shadow .18s var(--rosh-ease);
}
body:has(.product-page) .technical-thumb[aria-pressed="true"]:not(:focus-visible) {
  border-color:transparent!important;outline:none;box-shadow:0 0 0 2px #83c2ed;
}
body:has(.product-page) .technical-thumb:focus-visible {outline:3px solid var(--rosh-focus);outline-offset:3px}
body:has(.product-page) :is(.px-gallery-controls button,.px-copy,.technical-actions .outline,.px-lightbox-bar button) {
  border-color:var(--rosh-divider);
}
body:has(.product-page) .technical-purchase {border:0;box-shadow:inset 0 1px rgba(255,255,255,.035)}
html[data-rosh-theme="dark"] body:has(.product-page) {background:radial-gradient(ellipse 65% 53% at 12% 4%,#253c4a,transparent 73%),var(--rosh-canvas);color:var(--rosh-ink)}
html[data-rosh-theme="dark"] body:has(.product-page) .technical-details {background:linear-gradient(150deg,#1b2b36,#13212b)}
html[data-rosh-theme="dark"] body:has(.product-page) :is(.px-gallery-controls,.technical-thumbnails) {background:#172630}
html[data-rosh-theme="dark"] body:has(.product-page) .technical-purchase {background:#203440}
html[data-rosh-theme="dark"] body:has(.product-page) :is(.technical-details select,.technical-purchase input) {background:#182934;color:#f2f7fa}
html[data-rosh-theme="dark"] body:has(.product-page) .technical-actions .outline {color:#ebf5fb}
html[data-rosh-theme="light"] body:has(.product-page) {background:radial-gradient(ellipse 65% 52% at 10% 0%,#eef3f6,transparent 79%),var(--rosh-canvas);color:var(--rosh-ink)}
html[data-rosh-theme="light"] body:has(.product-page) .technical-details {background:#fff}
html[data-rosh-theme="light"] body:has(.product-page) .technical-details h1,
html[data-rosh-theme="light"] body:has(.product-page) .technical-info strong,
html[data-rosh-theme="light"] body:has(.product-page) .technical-purchase strong,
html[data-rosh-theme="light"] body:has(.product-page) .technical-description h2 {color:#193140}
html[data-rosh-theme="light"] body:has(.product-page) :is(.technical-context,.technical-details>small,.technical-description p,.technical-info span,.technical-breadcrumb,.technical-purchase p,#technical-checkout-status) {color:#657986}
html[data-rosh-theme="light"] body:has(.product-page) :is(.technical-breadcrumb a,.technical-description .kicker,.technical-details .kicker) {color:#327ba9}
html[data-rosh-theme="light"] body:has(.product-page) .technical-select-label,
html[data-rosh-theme="light"] body:has(.product-page) .technical-purchase label {color:#426275}
html[data-rosh-theme="light"] body:has(.product-page) :is(.technical-details select,.technical-purchase input) {background:#f4f8fa;color:#1b3747}
html[data-rosh-theme="light"] body:has(.product-page) .technical-purchase {background:#eef4f7}
html[data-rosh-theme="light"] body:has(.product-page) :is(.px-gallery-controls,.technical-thumbnails) {background:#e8eef2;color:#426275}
html[data-rosh-theme="light"] body:has(.product-page) .px-gallery-controls button {background:#f6fafc;color:#193c51}
html[data-rosh-theme="light"] body:has(.product-page) .technical-actions .outline {background:#f1f6f9;color:#1e4f6c}
html[data-rosh-theme="light"] body:has(.product-page) .technical-actions .submit {background:#1e587d;color:#fff;border-color:transparent}
html[data-rosh-theme="light"] body:has(.product-page) footer {background:#0c202d;color:white}
/* Catalog light: borderless editorial cards, gentle elevation instead of outlines. */
.rosh-x009-catalog .catalog-shell {border:0;box-shadow:var(--rosh-elevation)}
.rosh-x009-catalog .product {border:0!important;box-shadow:0 5px 24px rgba(20,43,58,.055)}
.rosh-x009-catalog .cx-tile {border:0!important;box-shadow:0 5px 21px rgba(20,43,58,.06)}
.rosh-x009-catalog .catalog-tools select {border:1px solid var(--rosh-divider)}
/* Catalog dark: exact content preserved, only component chrome changes. */
html[data-rosh-theme="dark"] body.rosh-x009-catalog {background:var(--rosh-canvas);color:var(--rosh-ink);--cx-ink:var(--rosh-ink);--cx-line:var(--rosh-divider)}
html[data-rosh-theme="dark"] .rosh-x009-catalog .x003-masthead {background:#132633!important;color:#f1f7fa!important;border-color:var(--rosh-divider)}
html[data-rosh-theme="dark"] .rosh-x009-catalog .x003-masthead h1 {color:#f1f7fa!important}
html[data-rosh-theme="dark"] .rosh-x009-catalog .x003-masthead p {color:#adbecc!important}
html[data-rosh-theme="dark"] .rosh-x009-catalog :is(.catalog-shell,.product,.cx-tile) {background:var(--rosh-panel);color:var(--rosh-ink)}
html[data-rosh-theme="dark"] .rosh-x009-catalog :is(.catalog-search,.catalog-tools select,.cx-suggestions:not([hidden])) {background:var(--rosh-field);color:var(--rosh-ink)}
html[data-rosh-theme="dark"] .rosh-x009-catalog :is(.catalog-search input,.catalog-tools select,.cx-suggestions a) {color:var(--rosh-ink);background:transparent}
html[data-rosh-theme="dark"] .rosh-x009-catalog :is(.catalog-search input,.product h3,.cx-tile strong,.product-bottom strong) {color:var(--rosh-ink)}
html[data-rosh-theme="dark"] .rosh-x009-catalog :is(.product-meta,.product-sku,.cx-discovery-head p,.cx-tile-meta,.cx-tile-sku,.catalog-meta,.section-head p) {color:var(--rosh-muted)}
html[data-rosh-theme="dark"] .rosh-x009-catalog :is(.product-photo,.cx-tile-image) {background:#edf1f4}
html[data-rosh-theme="dark"] .rosh-x009-catalog .empty-state {background:#1d303d;border-color:var(--rosh-divider);color:var(--rosh-ink)}
html[data-rosh-theme="dark"] .rosh-x009-catalog .product-bottom button {background:#203949;border-color:transparent;color:#c7e6f9}
html[data-rosh-theme="dark"] .rosh-x009-catalog .catalog-controls button {background:#223746;color:#d1e4f0;border-color:var(--rosh-divider)}
html[data-rosh-theme="dark"] .rosh-x009-catalog .data-state {border-color:var(--rosh-divider);color:var(--rosh-muted)}
html[data-rosh-theme="dark"] .rosh-x009-catalog .cx-suggestions a:hover {background:#274456}
/* Modal, request, and account chrome use softly separated surfaces. */
html[data-rosh-theme="dark"] body:not(:has(.product-page)) .catalog-shell {background:var(--rosh-panel)}
html[data-rosh-theme="dark"] .rosh-x009-catalog :is(.product-dialog,.dialog-info,.cart-drawer) {background:#192a36;color:#edf6fa}
html[data-rosh-theme="dark"] .rosh-x009-catalog :is(.dialog-info p,.dialog-fact,.cart-entry) {color:#bed0da;border-color:var(--rosh-divider)}
html[data-rosh-theme="dark"] .rosh-x009-catalog :is(.dialog-actions button,.dialog-actions a) {border-color:var(--rosh-divider)}
/* Keep classic content pages legible while lifting excess outlines. */
html[data-rosh-theme="dark"] body.rosh-x003:not(.rosh-x009-catalog):not(.rosh-x009-home) {background:var(--rosh-canvas);color:var(--rosh-ink)}
html[data-rosh-theme="dark"] body.rosh-x003:not(.rosh-x009-catalog) :is(.standard,.section) {color:var(--rosh-ink)}
html[data-rosh-theme="dark"] body.rosh-x003:not(.rosh-x009-catalog) :is(.inquiry,.catalog-shell) {background:var(--rosh-panel);color:var(--rosh-ink)}
/* Keep white product photography, purchasing consent, and keyboard access unchanged. */
@media(prefers-reduced-motion:reduce){
  .rosh-theme-toggle,.technical-thumb,.product,.cx-tile{transition:none!important}
}