/* HKXYTECH v2 — common layer (2026-11-16, theme 1.6.2; A and C implemented, B not used)
   Switch: HKXYTECH_V2 / option hkxytech_v2 adds body.theme-v2a or body.theme-v2c. No class = original v3 style, untouched.
   Nothing here changes the default CSS variables of design-c.css; every rule is scoped. */

/* Font file already in theme: assets/fonts/ibm-plex-sans-var.woff2 (91.8 KB). Declaring @font-face is harmless when unused. */
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-var.woff2") format("woff2"); font-weight: 100 700; font-style: normal; font-display: swap; }

:is(body.theme-v2a, body.theme-v2c) {
  --font: "IBM Plex Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --v2-night: #0A1117;          /* hero / banner base */
  --v2-ov: 7, 12, 17;           /* overlay rgb */
  --v2-accent-on-dark: #8FB8D6; /* hairline + links on dark, 8.9:1 on --v2-night */
  font-feature-settings: normal; /* Inter-only cv11/ss01 off */
}
/* Headings: Plex is wider than Inter, so loosen tracking and balance lines (no single-word last line) */
:is(body.theme-v2a, body.theme-v2c) :is(h1, h2, h3) { letter-spacing: -0.012em; text-wrap: balance; }
:is(body.theme-v2a, body.theme-v2c) :is(.hero-lede, .split-aside p) { text-wrap: pretty; }

/* Brand wall: keep the white tile + brand-colour top rule from design-c.css (line 839); thinner rule, name in dark grey */
:is(body.theme-v2a, body.theme-v2c) .brand-wall a { border-top-width: 2px; color: var(--ink-2); font-weight: 600; }
:is(body.theme-v2a, body.theme-v2c) .brand-wall a:hover,
:is(body.theme-v2a, body.theme-v2c) .brand-wall a:focus-visible { color: var(--ink); }

/* Product / category scene banner (markup: section.v2-banner > picture + .wrap.v2-banner-inner) */
:is(body.theme-v2a, body.theme-v2c) .v2-banner { position: relative; isolation: isolate; overflow: hidden; }
:is(body.theme-v2a, body.theme-v2c) .v2-banner picture,
:is(body.theme-v2a, body.theme-v2c) .v2-banner img { display: block; width: 100%; height: 100%; }
:is(body.theme-v2a, body.theme-v2c) .v2-banner img { object-fit: cover; }
:is(body.theme-v2a, body.theme-v2c) :is(.v2-banner-title, .v2-banner-inner h1) { margin: 0; font-weight: 500; line-height: 1.1; letter-spacing: -0.015em; font-size: clamp(1.625rem, 1.1rem + 1.5vw, 2.625rem); }
:is(body.theme-v2a, body.theme-v2c) .product-page > .wrap:first-of-type { padding-top: var(--s6); }
:is(body.theme-v2a, body.theme-v2c) .pdp-info h1 { font-weight: 500; }

/* ---------- light treatment for A (hero copy on image; 1.6.2) ---------- */
body.theme-v2a .hero { position: relative; isolation: isolate; overflow: hidden; background: var(--v2-mist, #F4F7F9); color: var(--ink); }
body.theme-v2a .v2-hero-media { position: absolute; inset: 0; z-index: -2; margin: 0; }
body.theme-v2a .v2-hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
body.theme-v2a .hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
body.theme-v2a .hero-copy::before { content: ""; display: block; width: 56px; height: 2px; background: var(--primary); margin-bottom: 28px; }
body.theme-v2a .hero h1 { color: var(--ink); font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; margin-bottom: 28px; }
body.theme-v2a .hero-lede { color: var(--ink-2); }
body.theme-v2a .search-lg { border-color: var(--line-2); box-shadow: 0 12px 32px -20px rgba(20, 32, 43, .22); }
body.theme-v2a .hero :focus-visible { outline-color: var(--primary); }

/* light banner for A */
body.theme-v2a .v2-banner { background: var(--v2-mist, #F4F7F9); color: var(--ink); min-height: clamp(200px, 18vw, 280px); display: flex; align-items: flex-end; }
body.theme-v2a .v2-banner picture { position: absolute; inset: 0; z-index: -2; }
body.theme-v2a .v2-banner::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(var(--v2-mist-rgb, 244, 247, 249), .94) 0%, rgba(var(--v2-mist-rgb, 244, 247, 249), .84) 38%, rgba(var(--v2-mist-rgb, 244, 247, 249), .42) 72%, rgba(var(--v2-mist-rgb, 244, 247, 249), .22) 100%); }
body.theme-v2a .v2-banner-inner { width: 100%; padding-top: 48px; padding-bottom: 28px; }
body.theme-v2a .v2-banner .breadcrumbs ol { color: var(--ink-2); margin-bottom: 10px; }
body.theme-v2a .v2-banner .breadcrumbs a { color: var(--ink-2); }
body.theme-v2a .v2-banner .breadcrumbs li + li::before { color: var(--ink-3); }
body.theme-v2a .v2-banner-title, body.theme-v2a .v2-banner-inner h1 { color: var(--ink); }

@media (max-width: 900px) {
  body.theme-v2a .v2-banner { min-height: 168px; }
  body.theme-v2a .v2-banner::before { background: linear-gradient(90deg, rgba(var(--v2-mist-rgb, 244, 247, 249), .94), rgba(var(--v2-mist-rgb, 244, 247, 249), .86)); }
  body.theme-v2a .v2-banner-inner { padding-top: 32px; padding-bottom: 20px; }
  body.theme-v2a .hero-copy::before { margin-bottom: 20px; }
}

/* 1.6.0 implementation additions */
:is(body.theme-v2a, body.theme-v2c) :is(.v2-hero-media, .v2-mid-media, .v2-hero-visual, .v2-banner-media) picture { display: block; width: 100%; height: 100%; }
:is(body.theme-v2a, body.theme-v2c) .v2-banner-media { position: absolute; inset: 0; z-index: -2; margin: 0; }

/* category pages: H1 moved onto the banner, band keeps the lede */
:is(body.theme-v2a, body.theme-v2c) .v2-banner + .page-band { padding-top: var(--s6); }
