/*
 * PDI marketing foundation
 *
 * Shared by the Services and Product page shells only. The selector scopes
 * below are deliberately narrow so the legacy header, footer, tools, and
 * product-internal widgets keep their existing contracts.
 */
:where(.pdi-services-page .psvc-page, .pdi-product-page) {
  --pdi-marketing-navy: #0A2540;
  --pdi-marketing-ink: #12263F;
  --pdi-marketing-blue: #0B6BCB;
  --pdi-marketing-blue-dark: #084E98;
  --pdi-marketing-green: #06663F;
  --pdi-marketing-green-light: #E6F6EF;
  --pdi-marketing-amber: #F59E0B;
  --pdi-marketing-amber-light: #FEF3DD;
  --pdi-marketing-red: #E11D48;
  --pdi-marketing-slate: #334155;
  --pdi-marketing-cloud: #F5F8FC;
  --pdi-marketing-cloud2: #EEF3F9;
  --pdi-marketing-line: #E2E8F2;
  --pdi-marketing-white: #FFFFFF;
  --pdi-marketing-max-width: 1180px;
  --pdi-marketing-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Arial, sans-serif;
  --pdi-marketing-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular,
    Menlo, Consolas, monospace;

  color: var(--pdi-marketing-ink);
  background: var(--pdi-marketing-white);
  font-family: var(--pdi-marketing-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:where(.pdi-services-page .psvc-page, .pdi-product-page),
:where(.pdi-services-page .psvc-page, .pdi-product-page) *,
:where(.pdi-services-page .psvc-page, .pdi-product-page) *::before,
:where(.pdi-services-page .psvc-page, .pdi-product-page) *::after {
  box-sizing: border-box;
}

:where(.pdi-services-page .psvc-page, .pdi-product-page) img {
  max-width: 100%;
  height: auto;
}

:where(.pdi-services-page .psvc-page, .pdi-product-page) a {
  color: var(--pdi-marketing-blue);
  text-decoration: none;
}

:where(.pdi-services-page .psvc-page, .pdi-product-page)
  :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--pdi-marketing-amber);
  outline-offset: 3px;
}

:where(.pdi-services-page .psvc-page, .pdi-product-page)
  :where(h1, h2, h3) {
  color: var(--pdi-marketing-navy);
  font-family: var(--pdi-marketing-sans);
  letter-spacing: -0.01em;
}

:where(.pdi-services-page .psvc-page, .pdi-product-page) h1 {
  max-width: 980px;
  font-size: clamp(36px, 4.3vw, 46px);
  font-weight: 800;
  line-height: 1.15;
}

:where(.pdi-services-page .psvc-page, .pdi-product-page) h2 {
  max-width: 820px;
  font-size: clamp(28px, 3.1vw, 32px);
  font-weight: 800;
  line-height: 1.18;
}

:where(.pdi-services-page .psvc-page, .pdi-product-page) h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

:where(.pdi-services-page .psvc-page, .pdi-product-page)
  :where(.eyebrow, .kicker, .tag, [class*="__role"], [class*="__label"],
    [class*="__number"]) {
  font-family: var(--pdi-marketing-mono);
}

:where(.pdi-services-page .psvc-page, .pdi-product-page)
  :where(.wrap, .psvc-wrap, .container, .pgrn-wrap, .kstl-wrap, .pcm-wrap) {
  max-width: var(--pdi-marketing-max-width);
  margin-right: auto;
  margin-left: auto;
  padding-right: 24px;
  padding-left: 24px;
}

:where(.pdi-services-page .psvc-page, .pdi-product-page)
  :where(.narrow, .psvc-narrow, .pgrn-narrow, .kstl-narrow, .pcm-narrow) {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

:where(.pdi-services-page .psvc-page, .pdi-product-page)
  :where(.btn, .pgrn-btn, .pcm-btn, .kstl-btn) {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1.5px solid transparent;
  border-radius: 8px;
  font-family: var(--pdi-marketing-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease,
    color .15s ease, box-shadow .15s ease, transform .15s ease;
}

:where(.pdi-services-page .psvc-page, .pdi-product-page)
  :where(.btn, .pgrn-btn, .pcm-btn, .kstl-btn):hover {
  transform: translateY(-1px);
}

:where(.pdi-services-page .psvc-page, .pdi-product-page)
  :where(.btn:not(.btn-ghost):not(.btn-secondary):not(.ghost),
    .pgrn-btn.solid, .pcm-btn--solid, .kstl-btn.solid) {
  border-color: var(--pdi-marketing-blue);
  background: var(--pdi-marketing-blue);
  color: var(--pdi-marketing-white);
}

:where(.pdi-services-page .psvc-page, .pdi-product-page)
  :where(.btn:not(.btn-ghost):not(.btn-secondary):not(.ghost),
    .pgrn-btn.solid, .pcm-btn--solid, .kstl-btn.solid):hover {
  border-color: var(--pdi-marketing-blue-dark);
  background: var(--pdi-marketing-blue-dark);
  color: var(--pdi-marketing-white);
}

:where(.pdi-services-page .psvc-page, .pdi-product-page)
  :where(.btn-ghost, .btn.ghost, .pgrn-btn.ghost, .pcm-btn--ghost,
    .kstl-btn.ghost) {
  border-color: var(--pdi-marketing-line);
  background: var(--pdi-marketing-white);
  color: var(--pdi-marketing-blue);
}

:where(.pdi-services-page .psvc-page, .pdi-product-page)
  :where(.btn-ghost, .btn.ghost, .pgrn-btn.ghost, .pcm-btn--ghost,
    .kstl-btn.ghost):hover {
  border-color: var(--pdi-marketing-blue);
  background: var(--pdi-marketing-white);
  color: var(--pdi-marketing-blue-dark);
}

:where(.pdi-services-page .psvc-page, .pdi-product-page)
  :where(.card, .pgrn-card, .pgrn-hero-card, .qbn-main-page .ledger,
    .qbn-main-page .mod, .qbn-main-page .numbers) {
  border: 1px solid var(--pdi-marketing-line);
  border-radius: 12px;
  background: var(--pdi-marketing-white);
}

.pdi-product-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 30px;
  background: var(--pdi-marketing-green-light, #E6F6EF);
  color: #064E3B;
  font-family: var(--pdi-marketing-sans);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

.pdi-product-page a.pdi-product-label {
  border-bottom: 0;
  color: #064E3B;
  text-decoration: none;
}

.pdi-product-label:hover {
  background: var(--pdi-marketing-green-light, #E6F6EF);
  color: #064E3B;
  text-decoration: none;
}

.pdi-product-label:focus-visible {
  outline: 3px solid var(--pdi-marketing-amber, #F59E0B);
  outline-offset: 3px;
}

.qbn-main-page .pdi-product-label {
  margin-bottom: 0;
}

/* Shared outer shell for the technical Product pages. */
.pdi-product-page.pdi-technical-page {
  background: var(--pdi-marketing-white);
}

.pdi-product-page.pdi-technical-page .wrap {
  max-width: var(--pdi-marketing-max-width);
}

.pdi-product-page.pdi-technical-page .hero,
.pdi-product-page.pdi-technical-page > section {
  border-color: var(--pdi-marketing-line);
}

@media (max-width: 760px) {
  :where(.pdi-services-page .psvc-page, .pdi-product-page)
    :where(.wrap, .psvc-wrap, .container, .pgrn-wrap, .kstl-wrap, .pcm-wrap) {
    padding-right: 20px;
    padding-left: 20px;
  }

  :where(.pdi-services-page .psvc-page, .pdi-product-page) h1 {
    font-size: 34px;
  }

  :where(.pdi-services-page .psvc-page, .pdi-product-page) h2 {
    font-size: 28px;
  }
}

@media (max-width: 520px) {
  :where(.pdi-services-page .psvc-page, .pdi-product-page)
    :where(.wrap, .psvc-wrap, .container, .pgrn-wrap, .kstl-wrap, .pcm-wrap) {
    padding-right: 18px;
    padding-left: 18px;
  }
}