/* Layout corrections apply to both themes; historical dark-only colors are scoped independently. */
/* Readability corrections for the existing catalogue and product dialog. */
body[data-theme="graphite"][data-palette="red-neon"] :is(.product-card[data-category="radio"] > .product-image-link:has(.partner-product-photo), .product-scene[data-category="radio"] > .scene-object:has(.partner-product-photo)) {
  mix-blend-mode: normal !important;
  border-radius: 12px;
}
:where(html:not([data-theme="light"])) body[data-theme="graphite"][data-palette="red-neon"] :is(.product-card[data-category="radio"] > .product-image-link:has(.partner-product-photo), .product-scene[data-category="radio"] > .scene-object:has(.partner-product-photo)) {
  background: #e9e9e6 !important;
}
body[data-theme="graphite"][data-palette="red-neon"] :is(.product-card[data-category="radio"], .product-scene[data-category="radio"]) .partner-product-photo img { mix-blend-mode: normal !important; }
:where(html:not([data-theme="light"])) body[data-theme="graphite"][data-palette="red-neon"] :is(.product-card[data-category="radio"], .product-scene[data-category="radio"]) .partner-product-photo img { filter: none !important; }
:where(html:not([data-theme="light"])) body[data-theme="graphite"][data-palette="red-neon"] #product-dialog .dji-component-purchase { background: #291a1e !important; }
:where(html:not([data-theme="light"])) body[data-theme="graphite"][data-palette="red-neon"] #product-dialog .dji-component-purchase .detail-copy { background: transparent !important; }
:where(html:not([data-theme="light"])) body[data-theme="graphite"][data-palette="red-neon"] #product-dialog .dji-component-purchase :is(.detail-product-title,.detail-price,.detail-description,.detail-price-date,.detail-article,.eyebrow) { color: #f7eeee !important; }
:where(html:not([data-theme="light"])) body[data-theme="graphite"][data-palette="red-neon"] #product-dialog .dji-component-stage { background: #eef2f5 !important; }
:where(html:not([data-theme="light"])) body[data-theme="graphite"][data-palette="red-neon"] #product-dialog .dji-component-stage figcaption { color: #405563 !important; }
:where(html:not([data-theme="light"])) body[data-theme="graphite"][data-palette="red-neon"] img.product-brand-logo--mono { filter: brightness(0) invert(1) !important; }
body[data-theme="graphite"][data-palette="red-neon"] img.product-brand-logo--plate,
body[data-theme="graphite"][data-palette="red-neon"] img.product-brand-logo--original { padding: 4px; border-radius: 5px; }
:where(html:not([data-theme="light"])) body[data-theme="graphite"][data-palette="red-neon"] img.product-brand-logo--plate,
:where(html:not([data-theme="light"])) body[data-theme="graphite"][data-palette="red-neon"] img.product-brand-logo--original { background: #f6f6f2; }
/* The equipment palette is light olive, including the opaque text surface. */
:where(html:not([data-theme="light"])) body[data-theme="graphite"][data-palette="red-neon"] #product-dialog:has(.product-scene[data-category="equipment"]) .product-purchase-hero .detail-copy { background: #dce3d0 !important; }
:where(html:not([data-theme="light"])) body[data-theme="graphite"][data-palette="red-neon"] #product-dialog:has(.product-scene[data-category="equipment"]) .detail-copy :is(.detail-description,.detail-product-title,.detail-price,.detail-price-date,.detail-article,.eyebrow) { color: #253122 !important; }
:where(html:not([data-theme="light"])) body[data-theme="graphite"][data-palette="red-neon"] #product-dialog:has(.product-scene[data-category="equipment"]) img.product-brand-logo--mono { filter: none !important; }
body[data-theme="graphite"][data-palette="red-neon"] :is(#catalog #product-grid,#home #graphite-featured-grid) .product-card .product-title { display: block; -webkit-line-clamp: unset; overflow: visible; white-space: normal; }
@media (max-width: 480px) {
  body[data-theme="graphite"][data-palette="red-neon"] :is(#catalog #product-grid,#home #graphite-featured-grid) { grid-template-columns: minmax(0,1fr) !important; }
}
body[data-theme="graphite"][data-palette="red-neon"] #product-dialog .product-scene > .scene-eyebrow { max-width: calc(100% - 52px); }
@media (max-width: 650px) {
  body[data-theme="graphite"][data-palette="red-neon"] #product-dialog .product-purchase-hero .detail-product-title { font-size: clamp(21px, 6vw, 27px); overflow-wrap: anywhere; word-break: normal; hyphens: none; }
  body[data-theme="graphite"][data-palette="red-neon"] #product-dialog .product-scene[data-category="power"] .scene-highlights { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); }
  body[data-theme="graphite"][data-palette="red-neon"] #product-dialog .product-scene[data-category="power"] .scene-highlights > * { min-width: 0; overflow-wrap: normal; word-break: normal; }
  body[data-theme="graphite"][data-palette="red-neon"] #product-dialog .product-scene[data-category="power"] .scene-highlights :is(strong,span) { overflow-wrap: normal; word-break: normal; }
}
:where(html:not([data-theme="light"])) body[data-theme="graphite"][data-palette="red-neon"] #product-dialog .laser-gallery-tabs button { background: #323036 !important; color: #fff !important; border-color: #b59da2 !important; }
:where(html:not([data-theme="light"])) body[data-theme="graphite"][data-palette="red-neon"] #product-dialog .laser-gallery-tabs button[aria-pressed="true"] { background: #f5e9e9 !important; color: #321a20 !important; border-color: #fff !important; }
body[data-theme="graphite"][data-palette="red-neon"] :is(.product-card,.product-scene) .radar-photo-placeholder { min-width: 0; max-width: 100%; }
body[data-theme="graphite"][data-palette="red-neon"] :is(.product-card,.product-scene) .radar-photo-placeholder :is(strong,small) { max-width: 100%; white-space: normal; overflow-wrap: normal; word-break: normal; text-align: center; }
/* The existing variant link carries the distinction between FPV models. */
@media (max-width: 900px) {
  body[data-theme="graphite"][data-palette="red-neon"] :is(#catalog #product-grid,#home #graphite-featured-grid) .product-card[data-category="fpv"] .product-variant-button { display: inline-flex; align-items: center; font-size: 14px; line-height: 1.4; white-space: normal; }
}
:where(html:not([data-theme="light"])) body[data-theme="graphite"][data-palette="red-neon"] :is(.product-card,.detail-visual,.cart-image,.compare-table,.category-product,.calc-pick-image,.cmp-option-photo) img.product-brand-logo--mono { filter: brightness(0) invert(1) !important; }
:where(html:not([data-theme="light"])) body[data-theme="graphite"][data-palette="red-neon"] #catalog[data-category="equipment"] .product-card img.product-brand-logo--mono { filter: none !important; }
@media (max-width: 650px) {
  body[data-theme="graphite"][data-palette="red-neon"] #product-dialog .laser-detail-heading > .eyebrow { padding-right: 58px; white-space: normal; }
  body[data-theme="graphite"][data-palette="red-neon"] #product-dialog .laser-detail-heading h2 { font-size: clamp(23px, 6.7vw, 28px); line-height: 1.2; overflow-wrap: anywhere; word-break: normal; hyphens: none; }
}
:where(html:not([data-theme="light"])) body[data-theme="graphite"][data-palette="red-neon"] :is(.product-card,#product-dialog .product-platform) .platform-brand__logo { filter: brightness(0) invert(1) !important; }
:where(html:not([data-theme="light"])) body[data-theme="graphite"][data-palette="red-neon"] #product-dialog:has(.product-scene[data-category="equipment"]) .product-platform .platform-brand__logo { filter: brightness(0) !important; }

/* Keep the complete heading below the dialog close control at compact widths. */
@media (max-width: 900px) {
  body[data-theme="graphite"][data-palette="red-neon"] #product-dialog .laser-detail-heading { padding-top: 78px; }
}
/* Fit the placeholder icon, model and complete caption inside the photo stage. */
body[data-theme="graphite"][data-palette="red-neon"] .product-card[data-category]:not([data-category="starlink"]) .product-image-link .radar-photo-placeholder { min-height: 0; gap: 5px; }
body[data-theme="graphite"][data-palette="red-neon"] .product-card[data-category]:not([data-category="starlink"]) .product-image-link .radar-photo-placeholder svg { width: 36px; height: 36px; }
