:root {
  --apx-bg: #f4f2ee;
  --apx-paper: #fbfaf7;
  --apx-panel: #ffffff;
  --apx-ink: #111111;
  --apx-ink-2: #2d2d2d;
  --apx-muted: #696969;
  --apx-line: #d8d5cf;
  --apx-line-strong: #b7b3aa;
  --apx-dark: #111111;
  --apx-dark-2: #242424;
  --apx-accent: #111111;
  --apx-accent-2: #4b4b4b;
  --apx-warm: #8b877d;
  --apx-radius: 0;
  --apx-shadow: none;
  --apx-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--apx-ink);
  background: var(--apx-bg);
  font-family: var(--apx-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body::before {
  display: none;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--apx-ink);
  font-family: var(--apx-font);
  font-weight: 760;
  letter-spacing: 0;
  text-wrap: balance;
}

p {
  color: var(--apx-muted);
  line-height: 1.62;
  text-wrap: pretty;
}

li,
.section-head p,
.product-summary,
.clean-list li {
  color: #666 !important;
}

a {
  color: inherit;
}

.container,
.container-wide,
.mfg-shell {
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
}

.container-wide {
  width: min(1440px, calc(100% - 48px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--apx-line);
  background: rgba(251, 250, 247, 0.96);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.nav-wrap {
  min-height: 78px;
}

.brand-logo {
  height: 44px;
  width: auto;
  filter: none;
}

/* Apex Power Systems logo is near-square (the old mark was wide):
   force an auto-width box on every page so the logo is never stretched
   and the header left padding stays consistent across pages */
.page-home .brand-logo,
body .page-home .brand-logo,
body .brand-logo {
  width: auto;
  height: 44px;
  object-fit: contain;
}

.nav-links {
  gap: 0;
  color: var(--apx-ink-2);
  font-size: 13px;
  font-weight: 650;
}

.nav-links a {
  padding: 12px 13px;
  border-radius: 0;
  color: var(--apx-ink-2);
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-links a::after {
  display: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--apx-ink);
  background: #ebe8e1;
}

.header-cta,
.btn,
.mfg-button {
  min-height: 46px;
  border-radius: 0;
  font-weight: 760;
  letter-spacing: 0;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.header-cta,
.btn-primary,
.mfg-button-primary,
.btn-light {
  color: #fff !important;
  border-color: #111 !important;
  background: #111 !important;
  box-shadow: none !important;
}

.btn-outline,
.mfg-button-secondary,
.btn-secondary {
  color: #111 !important;
  border: 1px solid #111 !important;
  background: transparent !important;
}

.btn:hover,
.mfg-button:hover,
.header-cta:hover {
  transform: translateY(-1px);
}

.btn:focus-visible,
.mfg-button:focus-visible,
.nav-links a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

.eyebrow,
.mfg-label,
.trust-title,
.panel-kicker {
  display: inline-block;
  color: #111 !important;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section {
  padding: clamp(70px, 8vw, 116px) 0;
  border-bottom: 1px solid var(--apx-line);
}

.section.alt {
  background: #ece9e2;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(280px, 0.56fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 36px;
}

.section-head h2,
.apx-section-title {
  margin: 0;
  color: #111;
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 0.98;
}

.section-head p {
  margin: 0;
  max-width: 58ch;
}

.page-hero,
.hero,
.section.dark {
  overflow: hidden;
  border-bottom: 1px solid var(--apx-line);
  background: var(--apx-paper) !important;
}

.page-hero .container,
.hero .container-wide {
  position: relative;
  z-index: 1;
}

.page-hero {
  padding: clamp(54px, 7vw, 90px) 0;
}

.page-hero h1,
.hero h1,
.section.dark h2 {
  color: #111 !important;
}

.page-hero p,
.hero p,
.section.dark p {
  color: var(--apx-muted) !important;
}

.page-hero .eyebrow,
.hero .eyebrow {
  color: #111 !important;
}

.apx-hero {
  overflow: hidden;
  padding: clamp(54px, 7vw, 92px) 0 0;
  border-bottom: 1px solid var(--apx-line);
  background: var(--apx-paper);
}

.apx-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 0.78fr);
  gap: clamp(46px, 6vw, 90px);
  align-items: start;
}

.apx-hero h1 {
  max-width: 900px;
  margin: 0;
  color: #111;
  font-size: clamp(54px, 6.7vw, 92px);
  line-height: 0.92;
}

.apx-hero-copy > p {
  max-width: 650px;
  margin: 24px 0 0;
  color: #555;
  font-size: clamp(17px, 1.4vw, 20px);
}

.apx-hero-actions,
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.apx-hero-visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid #111;
  background: #dedbd3;
}

.apx-hero-visual img {
  display: block;
  width: 100%;
  height: clamp(420px, 42vw, 620px);
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}

.apx-hero-card {
  position: static;
  width: auto;
  max-width: none;
  padding: 24px;
  color: #111;
  border-top: 1px solid #111;
  background: #fff;
  backdrop-filter: none;
}

.apx-hero-card strong {
  display: block;
  margin-top: 10px;
  color: #111;
  font-size: 24px;
  line-height: 1.1;
}

.apx-hero-card p {
  margin: 10px 0 0;
  color: #5d5d5d;
}

.apx-quick-rfq {
  margin-top: clamp(46px, 6vw, 80px);
  border-top: 1px solid #111;
  background: #fff;
}

.apx-rfq-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-left: 1px solid var(--apx-line);
}

.apx-rfq-strip a {
  display: grid;
  gap: 18px;
  min-height: 132px;
  padding: 24px;
  color: #111;
  border-right: 1px solid var(--apx-line);
  text-decoration: none;
  background: #fff;
}

.apx-rfq-strip span {
  color: #777;
  font-size: 12px;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.apx-rfq-strip strong {
  color: #111;
  font-size: 17px;
  line-height: 1.2;
}

.apx-rfq-strip a:hover {
  background: #ebe8e1;
}

.apx-proof-grid,
.apx-capability-grid,
.apx-product-lanes,
.apx-process-grid,
.apx-trust-grid {
  display: grid;
  gap: 0;
}

.apx-proof-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--apx-line);
  border-left: 1px solid var(--apx-line);
}

.apx-proof-card,
.apx-capability-card,
.apx-process-card,
.apx-trust-card,
.card,
.product-card,
.diagram-card,
.application-card,
.solution-panel {
  border: 1px solid var(--apx-line);
  border-radius: 0 !important;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: none !important;
}

.apx-proof-card {
  min-height: 230px;
  padding: 28px;
  border-top: 0;
  border-left: 0;
}

.apx-proof-card strong,
.apx-capability-card strong,
.apx-process-card strong {
  display: block;
  color: #111;
  font-size: 21px;
  line-height: 1.16;
}

.apx-proof-card p,
.apx-capability-card p,
.apx-process-card p {
  margin: 12px 0 0;
}

.product-ecosystem-grid,
.apx-product-lanes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--apx-line);
  border-left: 1px solid var(--apx-line);
}

.ecosystem-card,
.product-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-top: 0;
  border-left: 0;
}

.ecosystem-media,
.product-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #d9d6ce;
}

.ecosystem-card-image,
.product-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
  transition: transform 0.35s ease;
}

.ecosystem-card:hover img,
.product-card:hover img,
.application-card:hover img,
.solution-panel:hover img {
  transform: scale(1.025);
}

.ecosystem-card .ecosystem-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.product-card {
  padding: 24px;
}

.product-card .product-media {
  margin: -24px -24px 22px;
}

.product-card h3,
.ecosystem-card h3 {
  margin: 14px 0 10px;
  color: #111;
  font-size: 22px;
  line-height: 1.12;
}

.product-summary {
  margin-bottom: 18px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.tag,
.tag.green,
.filter-btn {
  border: 1px solid var(--apx-line-strong) !important;
  border-radius: 0 !important;
  color: #111 !important;
  background: transparent !important;
  font-weight: 700;
}

.filter-btn.active,
.filter-btn:hover {
  color: #fff !important;
  background: #111 !important;
  border-color: #111 !important;
}

.apx-dark-band,
.apx-final-cta,
.cta-band,
.consultation-band {
  color: #fff;
  background: #111 !important;
}

.apx-dark-band h2,
.apx-dark-band h3,
.apx-dark-band strong,
.apx-final-cta h2,
.cta-band h2,
.consultation-band h2 {
  color: #fff !important;
}

.apx-dark-band .eyebrow,
.apx-final-cta .eyebrow,
.cta-band .eyebrow,
.consultation-band .eyebrow {
  color: #fff !important;
}

.apx-dark-band p,
.apx-final-cta p,
.cta-band p,
.consultation-band p {
  color: rgba(255, 255, 255, 0.72) !important;
}

.apx-process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.apx-process-card {
  min-height: 220px;
  padding: 28px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
}

.apx-process-card span {
  color: rgba(255, 255, 255, 0.56);
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.apx-final-cta,
.cta-band,
.consultation-band {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.5fr);
  gap: 40px;
  align-items: end;
  padding: clamp(34px, 5vw, 58px);
  border-radius: 0;
}

.apx-final-cta .btn-outline,
.cta-band .btn-outline,
.consultation-band .btn-outline,
.apx-final-cta .btn-secondary,
.cta-band .btn-secondary,
.consultation-band .btn-secondary {
  color: #fff !important;
  border-color: #fff !important;
}

.grid {
  gap: 0;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-toolbar {
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.filters {
  gap: 8px;
}

.solution-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
  overflow: hidden;
  margin-bottom: 0;
  border-bottom: 0;
}

.solution-panel:last-child {
  border-bottom: 1px solid var(--apx-line);
}

.solution-panel.reverse {
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
}

.solution-panel.reverse figure {
  order: 2;
}

.solution-panel figure,
.application-card img {
  margin: 0;
  min-height: 100%;
}

.solution-panel img,
.application-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
  transition: transform 0.35s ease;
}

.solution-content,
.application-card > div {
  padding: clamp(28px, 4vw, 48px);
}

.application-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--apx-line);
  border-left: 1px solid var(--apx-line);
}

.application-card {
  overflow: hidden;
  border-top: 0;
  border-left: 0;
}

.application-card.large {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.application-card:not(.large) img {
  min-height: 230px;
  aspect-ratio: 16 / 10;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 0.72fr);
  gap: clamp(38px, 5vw, 72px);
  align-items: center;
  padding: clamp(52px, 6vw, 84px) 0;
}

.detail-hero-media {
  overflow: hidden;
  border: 1px solid #111;
  border-radius: 0;
  background: #d9d6ce;
}

.detail-main-image {
  display: block;
  width: 100%;
  height: clamp(360px, 42vw, 560px);
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}

.detail-layout {
  align-items: start;
}

.detail-section {
  padding: clamp(26px, 4vw, 42px);
  margin-bottom: 0;
  border-bottom: 0;
}

.spec-table th,
.spec-table td {
  border-bottom: 1px solid var(--apx-line);
}

.detail-sidebar {
  position: sticky;
  top: 96px;
}

.rfq-form {
  gap: 18px;
}

input,
select,
textarea {
  border: 1px solid var(--apx-line-strong);
  border-radius: 0;
  background: #fff;
}

.notice {
  border-radius: 0;
  border-color: var(--apx-line);
  background: #f0ede6;
  color: #444;
}

.site-footer {
  color: rgba(255, 255, 255, 0.82);
  background: #111;
}

.site-footer strong,
.site-footer h3 {
  color: #fff;
}

.site-footer p,
.footer-bottom {
  color: rgba(255, 255, 255, 0.62);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 980px) {
  .apx-hero-grid,
  .section-head,
  .apx-final-cta,
  .cta-band,
  .consultation-band,
  .detail-hero-grid,
  .solution-panel,
  .solution-panel.reverse,
  .application-card.large {
    grid-template-columns: 1fr;
  }

  .solution-panel.reverse figure {
    order: 0;
  }

  .apx-rfq-strip,
  .apx-proof-grid,
  .product-ecosystem-grid,
  .apx-product-lanes,
  .apx-process-grid,
  .application-grid,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-sidebar {
    position: static;
  }
}

@media (max-width: 680px) {
  .container,
  .container-wide,
  .mfg-shell {
    width: min(100% - 32px, 1280px);
  }

  .brand-logo {
    width: 184px;
  }

  .apx-hero {
    padding-top: 38px;
  }

  .apx-hero h1 {
    font-size: clamp(38px, 11vw, 52px);
    line-height: 0.98;
  }

  .apx-hero-copy > p {
    margin-top: 18px;
    font-size: 16px;
  }

  .apx-rfq-strip,
  .apx-proof-grid,
  .product-ecosystem-grid,
  .apx-product-lanes,
  .apx-process-grid,
  .application-grid,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .apx-rfq-strip {
    border-left: 0;
  }

  .apx-rfq-strip a {
    min-height: 106px;
    border-left: 1px solid var(--apx-line);
  }

  .apx-hero-visual img {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .apx-final-cta,
  .cta-band,
  .consultation-band,
  .solution-content,
  .application-card > div {
    padding: 28px;
  }
}

/* ============================================================
   Image-fit corrections
   The visual-pack posters (hero, solutions, applications,
   ecosystem) are 16:9 assets with baked-in headings, buttons
   and category labels. To avoid object-fit:cover cropping that
   text, give each frame the SAME 16:9 aspect ratio as the asset
   so cover fills exactly without clipping. Higher specificity
   (body .apx-... / body .page-...) wins over style.css rules.
   ============================================================ */

/* Home hero poster: replace fixed height clamp with native 16:9 */
body .apx-hero-visual img {
  height: auto !important;
  min-height: 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: none;
}

/* Product ecosystem + product-card media frames: 16:10 -> 16:9
   Clear the style.css padding/min-height/centering that shrinks the poster */
body .ecosystem-media,
body .product-media {
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
  padding: 0;
  place-items: stretch;
}

/* ecosystem card = baked-text 16:9 poster -> fill the frame (cover) */
body .ecosystem-media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

/* product card = real product photo -> contain so it is not cropped */
body .product-media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

/* Solution panels: let the figure size to the poster, not a min-height */
body .solution-panel figure {
  min-height: 0;
  aspect-ratio: 16 / 9;
  height: auto;
}

body .solution-panel img {
  min-height: 0;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Application cards: match poster ratio, remove fixed heights */
body .application-card img,
body .application-card:not(.large) img,
body .application-card.large img {
  min-height: 0;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Detail page hero image: real product photo, keep contain so it is not cropped */
body .detail-main-image {
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

/* Small screens: ensure the hero poster keeps its 16:9 frame */
@media (max-width: 680px) {
  body .apx-hero-visual img {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

/* ============================================================
   Softer palette
   The base theme is a hard black/white/grey. This block re-tunes
   the same --apx-* tokens toward a warm, low-contrast, softer
   look: ink becomes deep slate-grey, the accent becomes a muted
   evergreen, and the background/panels become warm off-whites.
   Hard-coded #111 backgrounds are overridden with the soft ink.
   ============================================================ */

/* Palette mapped to the reference site (localhost:3000) blue theme:
   primary blue, white/light-slate backgrounds, dark navy accents,
   slate text and soft borders. */
:root {
  --apx-bg: #f7f1e8;
  --apx-paper: #fffcf7;
  --apx-panel: #ffffff;
  --apx-ink: #1e293b;
  --apx-ink-2: #334155;
  --apx-muted: #6b7a8a;
  --apx-line: #e6dccd;
  --apx-line-strong: #d0c3af;
  --apx-dark: #0f172a;
  --apx-dark-2: #1e293b;
  --apx-accent: #1a56db;
  --apx-accent-2: #1e40af;
  --apx-accent-light: #3b82f6;
  --apx-warm: #f59e0b;
  --apx-success: #10b981;
  --apx-chips: #f3ede2;
  --apx-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body,
body.page-home,
body.page-products,
body.page-solutions,
body.page-applications,
body.page-about,
body.page-contact {
  background:
    radial-gradient(circle at 14% -4%, rgba(245, 158, 11, 0.10), transparent 32rem),
    radial-gradient(circle at 88% 8%, rgba(247, 178, 71, 0.08), transparent 28rem),
    linear-gradient(180deg, #fffcf6 0%, #f7f1e8 100%);
}

/* Soft ink for text that is hard-coded to near-black */
body {
  color: var(--apx-ink);
}
.apx-hero h1,
.apx-hero-copy > p,
.apx-hero-card,
.apx-hero-card strong,
.apx-hero-card p,
.apx-rfq-strip a,
.apx-rfq-strip strong,
.apx-proof-card strong,
.apx-proof-card p,
.apx-process-card strong,
.apx-process-card p,
.ecosystem-card h3,
.ecosystem-card p,
.application-card h2,
.application-card h3,
.application-card p,
.solution-content h2,
.solution-content p,
.card h2,
.card h3,
.card p,
.tag,
.filter-btn {
  color: var(--apx-ink);
}

/* Primary buttons / nav CTA: reference primary blue */
.btn-primary,
.btn.btn-primary,
.hero-cta,
.header-cta,
.btn.btn-light,
.header-cta.header-cta,
body .header-cta {
  background: var(--apx-accent) !important;
  border-color: var(--apx-accent) !important;
  color: #fff !important;
}
.btn-primary:hover,
.btn.btn-primary:hover,
.header-cta:hover,
body .header-cta:hover {
  background: var(--apx-accent-2) !important;
  border-color: var(--apx-accent-2) !important;
}

/* Secondary / outline buttons + tags: soft slate outline instead of black */
.btn-outline,
.btn.btn-outline,
.btn-secondary,
.btn.btn-secondary,
.filter-btn {
  color: var(--apx-accent) !important;
  border-color: var(--apx-line-strong) !important;
  background: transparent !important;
}

/* Focus rings softened to the brand blue */
.btn:focus-visible,
.header-cta:focus-visible,
.nav-links a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline-color: var(--apx-accent);
}

/* Hero visual frame + card divider: use the soft line, not black */
.apx-hero-visual {
  border-color: var(--apx-line);
}
.apx-hero-card {
  border-top-color: var(--apx-line);
}
.apx-quick-rfq {
  border-top-color: var(--apx-line);
  background: var(--apx-paper);
}
.apx-rfq-strip a:hover,
.apx-rfq-strip a {
  background: var(--apx-paper);
}
.apx-rfq-strip a:hover {
  background: var(--apx-chips);
}
.apx-rfq-strip {
  border-left-color: var(--apx-line);
}
.apx-rfq-strip a {
  border-right-color: var(--apx-line);
}

/* Dark overlay bands (footer, CTA) softened to navy */
.site-footer {
  background: var(--apx-dark);
}
.section.alt {
  background: var(--apx-bg);
}

/* Cards keep a clean white fill with soft slate border */
.card,
.ecosystem-card,
.product-card,
.application-card,
.solution-panel,
.proof-card,
.apx-proof-card,
.consultation-band {
  background: var(--apx-panel);
}

/* Header nav pill / scrolled state softened */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--apx-line);
}

/* Softer hero frame + card lines (override hard #111 / grey) */
.apx-hero-visual {
  border-color: var(--apx-line);
  background: var(--apx-bg);
}
.apx-hero-card {
  border-top-color: var(--apx-line);
}
.apx-quick-rfq {
  border-top-color: var(--apx-line);
}

/* Lightbox / image frames that use a hard border */
.detail-hero-media {
  border-color: var(--apx-line);
}

/* Category/tag chips in the reference use a light blue fill */
.tag,
.filter-btn {
  border-color: var(--apx-line) !important;
}
.tag.green {
  background: var(--apx-chips) !important;
  color: var(--apx-accent) !important;
  border-color: var(--apx-chips) !important;
}

/* Active filter pill ("All"): brand blue instead of near-black */
.filter-btn[data-filter="All"],
.filter-btn.active {
  background: var(--apx-accent) !important;
  border-color: var(--apx-accent) !important;
  color: #fff !important;
}
.filter-btn:not([data-filter="All"]):not(.active):hover {
  background: var(--apx-chips) !important;
}

/* Solution chapter-nav active + hover pill: brand blue instead of teal */
.chapter-nav a.is-active,
.chapter-nav a:hover {
  background: var(--apx-accent) !important;
  border-color: var(--apx-accent) !important;
  color: #fff !important;
}


/* Hero visual frame + card divider: use the soft line, not black */
.apx-hero-visual {
  border-color: var(--apx-line-strong);
}
.apx-hero-card {
  border-top-color: var(--apx-line-strong);
}
.apx-quick-rfq {
  border-top-color: var(--apx-line-strong);
  background: var(--apx-paper);
}
.apx-rfq-strip a:hover,
.apx-rfq-strip a {
  background: var(--apx-paper);
}
.apx-rfq-strip a:hover {
  background: #f0ece3;
}

/* Dark overlay bands (footer, CTA) softened */
.site-footer {
  background: var(--apx-dark);
}
.section.alt {
  background: var(--apx-paper);
}

/* Tinted cards keep a subtle warm fill */
.card,
.ecosystem-card,
.product-card,
.application-card,
.solution-panel,
.proof-card,
.apx-proof-card,
.consultation-band {
  background: var(--apx-panel);
}

/* Header blends with the page top color (no distinct white bar) */
.site-header {
  background: rgba(255, 252, 246, 0.92);
  backdrop-filter: saturate(1.1) blur(6px);
}

/* Softer hero frame + card lines (override hard #111 / grey) */
.apx-hero-visual {
  border-color: var(--apx-line-strong);
  background: var(--apx-bg);
}
.apx-hero-card {
  border-top-color: var(--apx-line-strong);
}
.apx-rfq-strip {
  border-left-color: var(--apx-line);
}
.apx-rfq-strip a {
  border-right-color: var(--apx-line);
}
.apx-quick-rfq {
  border-top-color: var(--apx-line-strong);
}

/* Lightbox / image frames that use a hard border */
.detail-hero-media {
  border-color: var(--apx-line-strong);
}


