/* =============================================================================
   PEERYX — peeryx-v123-design.css
   Production premium pass: partner section rebuild, typography, design system,
   cards polish, button micro-interactions, responsive, accessibility.
   Cascade: after peeryx-v122-mobile.css
   Specificity prefix: html body .class = (0,1,2)
   ============================================================================= */

/* ─────────────────────────────────────────────────────────────
   §1  TYPOGRAPHY
───────────────────────────────────────────────────────────── */

html body .pxv93-hero h1,
html body .px26-hero h1 {
  line-height: 1.08 !important;
  letter-spacing: -0.025em !important;
}

html body .pxv93-home h2 {
  font-weight: 800 !important;
  letter-spacing: -0.016em !important;
}

html body .pxv93-home .pxv93-hero p.pxv93-lead,
html body .pxv93-home .pxv93-hero .pxv93-lead {
  max-width: 54ch !important;
  font-size: clamp(16px, 1.45vw, 18px) !important;
  line-height: 1.68 !important;
}

/* ─────────────────────────────────────────────────────────────
   §2  HOME INLINE PARTNER CARDS — upgraded with logos + tag + CTA
   article.pxv93-partner-item
     div.pxv93-partner-logo-wrap
       img.pxv93-partner-logo
     div.pxv93-partner-body
       strong.pxv93-partner-name
       span.pxv93-partner-tag
       p.pxv93-partner-desc
       a.pxv93-partner-link
───────────────────────────────────────────────────────────── */

/* Section head: title+description left, CTA right */
html body .pxv93-home .pxv93-partners .pxv93-partners-head {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
}
html body .pxv93-home .pxv93-partners .pxv93-partners-head-copy {
  flex: 1 !important;
  min-width: 0 !important;
}
html body .pxv93-home .pxv93-partners .pxv93-partners-cta {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: var(--px120-teal) !important;
  -webkit-text-fill-color: var(--px120-teal) !important;
  text-decoration: none !important;
  border: 1px solid rgba(0, 200, 150, 0.30) !important;
  border-radius: 8px !important;
  padding: 8px 16px !important;
  transition: background 0.18s, border-color 0.18s !important;
  flex-shrink: 0 !important;
}
html body .pxv93-home .pxv93-partners .pxv93-partners-cta:hover {
  background: rgba(0, 200, 150, 0.08) !important;
  border-color: rgba(0, 200, 150, 0.55) !important;
}

html body .pxv93-home .pxv93-partner-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
  margin-top: 28px !important;
}

/* Card shell — column layout */
html body .pxv93-home .pxv93-partner-grid .pxv93-partner-item {
  background: rgba(5, 12, 30, 0.90) !important;
  border: 1px solid rgba(0, 200, 150, 0.13) !important;
  border-radius: 14px !important;
  padding: 22px 20px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0 !important;
  position: relative !important;
  overflow: hidden !important;
  transition:
    border-color 0.22s,
    transform 0.22s var(--px120-ease),
    box-shadow 0.22s !important;
}

html body .pxv93-home .pxv93-partner-grid .pxv93-partner-item::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important; left: 0 !important; right: 0 !important;
  height: 2px !important;
  background: linear-gradient(90deg, var(--px120-teal) 0%, transparent 80%) !important;
  opacity: 0 !important;
  transition: opacity 0.2s !important;
}

html body .pxv93-home .pxv93-partner-grid .pxv93-partner-item:hover {
  border-color: rgba(0, 200, 150, 0.28) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 200, 150, 0.10) !important;
}

html body .pxv93-home .pxv93-partner-grid .pxv93-partner-item:hover::before {
  opacity: 1 !important;
}

/* Logo wrapper */
html body .pxv93-home .pxv93-partner-grid .pxv93-partner-logo-wrap {
  display: flex !important;
  align-items: center !important;
  height: 44px !important;
  margin-bottom: 16px !important;
}
html body .pxv93-home .pxv93-partner-grid .pxv93-partner-logo {
  max-height: 36px !important;
  max-width: 120px !important;
  width: auto !important;
  object-fit: contain !important;
  filter: brightness(1.1) saturate(0.9) !important;
  opacity: 0.88 !important;
  display: block !important;
}
html body .pxv93-home .pxv93-partner-grid .pxv93-partner-item:hover .pxv93-partner-logo {
  opacity: 1 !important;
}

/* Body wrapper */
html body .pxv93-home .pxv93-partner-grid .pxv93-partner-body {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  flex: 1 !important;
  min-width: 0 !important;
  width: 100% !important;
}

/* Partner name */
html body .pxv93-home .pxv93-partner-grid .pxv93-partner-name {
  display: block !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  color: #F2F8FF !important;
  -webkit-text-fill-color: #F2F8FF !important;
  line-height: 1.3 !important;
  margin-bottom: 4px !important;
}

/* Partner tag (location/type pill) */
html body .pxv93-home .pxv93-partner-grid .pxv93-partner-tag {
  display: inline-block !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: var(--px120-teal) !important;
  -webkit-text-fill-color: var(--px120-teal) !important;
  background: rgba(0, 200, 150, 0.08) !important;
  border: 1px solid rgba(0, 200, 150, 0.18) !important;
  border-radius: 5px !important;
  padding: 2px 8px !important;
  margin-bottom: 10px !important;
  letter-spacing: 0.02em !important;
}

/* Partner description */
html body .pxv93-home .pxv93-partner-grid .pxv93-partner-desc {
  display: block !important;
  font-size: 13px !important;
  color: rgba(141, 170, 190, 0.90) !important;
  -webkit-text-fill-color: rgba(141, 170, 190, 0.90) !important;
  line-height: 1.58 !important;
  margin: 0 0 12px !important;
  flex: 1 !important;
}

/* Partner link */
html body .pxv93-home .pxv93-partner-grid .pxv93-partner-link {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: var(--px120-teal) !important;
  -webkit-text-fill-color: var(--px120-teal) !important;
  text-decoration: none !important;
  gap: 4px !important;
  transition: opacity 0.16s !important;
  margin-top: auto !important;
}
html body .pxv93-home .pxv93-partner-grid .pxv93-partner-link:hover {
  opacity: 0.75 !important;
}

/* Section heading */
html body .pxv93-home .pxv93-partners .pxv93-partners-head h2,
html body .pxv93-home .pxv93-partners .pxv93-title-row h2 {
  font-size: clamp(20px, 2vw, 26px) !important;
}
html body .pxv93-home .pxv93-partners .pxv93-partners-head p,
html body .pxv93-home .pxv93-partners .pxv93-title-row p {
  font-size: 14.5px !important;
  line-height: 1.65 !important;
  color: var(--px120-text-muted) !important;
  -webkit-text-fill-color: var(--px120-text-muted) !important;
  max-width: 600px !important;
  margin-top: 8px !important;
}

/* Responsive */
@media (max-width: 900px) {
  html body .pxv93-home .pxv93-partner-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 560px) {
  html body .pxv93-home .pxv93-partner-grid {
    grid-template-columns: 1fr !important;
  }
  html body .pxv93-home .pxv93-partners .pxv93-partners-cta {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* Focus for keyboard users */
html body .pxv93-home .pxv93-partner-grid .pxv93-partner-item:focus-visible {
  outline: 2px solid var(--px120-teal) !important;
  outline-offset: 3px !important;
}

/* ─────────────────────────────────────────────────────────────
   §3  FOOTER PARTNER RAIL (partners / network pages only)
───────────────────────────────────────────────────────────── */

html body .footer-partner-card {
  background: rgba(4, 11, 26, 0.92) !important;
  border: 1px solid rgba(0, 200, 150, 0.10) !important;
  border-radius: 14px !important;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s !important;
}

html body .footer-partner-card:hover {
  border-color: rgba(0, 200, 150, 0.24) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}

html body .footer-partner-copy strong {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #F5FBFF !important;
  -webkit-text-fill-color: #F5FBFF !important;
}

html body .footer-partner-copy p {
  font-size: 13px !important;
  color: rgba(141, 170, 190, 0.85) !important;
  -webkit-text-fill-color: rgba(141, 170, 190, 0.85) !important;
  line-height: 1.55 !important;
  margin: 4px 0 10px !important;
}

html body .footer-partner-link {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: var(--px120-teal) !important;
  -webkit-text-fill-color: var(--px120-teal) !important;
  text-decoration: none !important;
  letter-spacing: 0.02em !important;
  transition: opacity 0.15s !important;
}

html body .footer-partner-link:hover {
  opacity: 0.78 !important;
}

html body .footer-partner-logo {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  transition: background 0.18s !important;
}

html body .footer-partner-logo:hover {
  background: rgba(255, 255, 255, 0.07) !important;
}

html body .footer-partner-logo img {
  height: 28px !important;
  width: auto !important;
  object-fit: contain !important;
  filter: brightness(0.88) saturate(0.75) !important;
  transition: filter 0.18s !important;
}

html body .footer-partner-logo:hover img {
  filter: brightness(1.05) saturate(1) !important;
}

/* ─────────────────────────────────────────────────────────────
   §4  DELIVERY MODES — fix "Best for:" label spacing
───────────────────────────────────────────────────────────── */

html body .pxv93-mode-best {
  margin: 0 0 10px !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

html body .pxv93-mode-best strong {
  font-weight: 700 !important;
  color: var(--px120-text) !important;
  -webkit-text-fill-color: var(--px120-text) !important;
}

/* Inline spacing after the bold label */
html body .pxv93-mode-best strong::after {
  content: ' ' !important;
}

/* ─────────────────────────────────────────────────────────────
   §4B  DELIVERY MODE CARDS — premium hover + spacing
───────────────────────────────────────────────────────────── */

html body .pxv93-home .pxv93-mode-card {
  border-radius: 16px !important;
  transition:
    border-color 0.22s,
    box-shadow 0.22s,
    transform 0.22s var(--px120-ease) !important;
}

html body .pxv93-home .pxv93-mode-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 18px 50px rgba(21, 90, 200, 0.18), 0 0 0 1px rgba(54, 130, 255, 0.25) !important;
}

/* Mode icon: tighter visual weight */
html body .pxv93-home .pxv93-mode-icon {
  width: 40px !important;
  height: 40px !important;
  border-radius: 10px !important;
}

html body .pxv93-home .pxv93-mode-card h3 {
  font-size: 15px !important;
  letter-spacing: -0.012em !important;
}

/* Tags: tighten radius and padding */
html body .pxv93-home .pxv93-mode-tags span {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  padding: 2.5px 8px !important;
}

/* ─────────────────────────────────────────────────────────────
   §4C  EXPERTISE CARDS
───────────────────────────────────────────────────────────── */

html body .pxv93-home .pxv93-expertise-grid > article {
  border-radius: 14px !important;
  transition: border-color 0.2s, transform 0.2s var(--px120-ease) !important;
}

html body .pxv93-home .pxv93-expertise-grid > article:hover {
  border-color: rgba(0, 200, 150, 0.22) !important;
  transform: translateY(-2px) !important;
}

html body .pxv93-home .pxv93-expertise-grid li {
  font-size: 13px !important;
  line-height: 1.6 !important;
}

/* ─────────────────────────────────────────────────────────────
   §5  BUTTONS — micro-interactions
───────────────────────────────────────────────────────────── */

html body .pxv93-home .pxv93-btn,
html body .pxv93-home a.pxv93-btn {
  transition:
    background 0.16s,
    box-shadow 0.16s,
    transform 0.12s var(--px120-ease),
    border-color 0.16s !important;
}

html body .pxv93-home .pxv93-btn:active,
html body .pxv93-home a.pxv93-btn:active {
  transform: scale(0.97) !important;
}

html body .pxv93-home .pxv93-btn.pxv93-ghost,
html body .pxv93-home a.pxv93-ghost {
  border-color: rgba(255, 255, 255, 0.20) !important;
}

html body .pxv93-home .pxv93-btn.pxv93-ghost:hover,
html body .pxv93-home a.pxv93-ghost:hover {
  border-color: rgba(255, 255, 255, 0.38) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

/* ─────────────────────────────────────────────────────────────
   §6  SOLUTION + BENEFIT CARDS
───────────────────────────────────────────────────────────── */

html body .pxv93-home .pxv93-solutions-grid > a {
  border-radius: 16px !important;
  transition:
    border-color 0.22s,
    box-shadow 0.22s,
    transform 0.22s var(--px120-ease) !important;
}

html body .pxv93-home .pxv93-solutions-grid > a:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 200, 150, 0.14) !important;
}

html body .pxv93-home .pxv93-badge {
  font-size: 9.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  padding: 3px 8px !important;
  border-radius: 4px !important;
  background: rgba(0, 200, 150, 0.12) !important;
  color: var(--px120-teal) !important;
  -webkit-text-fill-color: var(--px120-teal) !important;
  border: 1px solid rgba(0, 200, 150, 0.22) !important;
}

html body .pxv93-home .pxv93-benefits > article {
  border-radius: 14px !important;
  transition: border-color 0.2s, background 0.2s !important;
}

html body .pxv93-home .pxv93-benefits > article:hover {
  border-color: rgba(0, 200, 150, 0.22) !important;
  background: rgba(8, 22, 48, 0.88) !important;
}

/* ─────────────────────────────────────────────────────────────
   §7  INFRA CARD
───────────────────────────────────────────────────────────── */

html body .pxv93-infra-card {
  border-radius: 18px !important;
  border: 1px solid rgba(0, 200, 150, 0.12) !important;
  transition: border-color 0.22s !important;
}

html body .pxv93-infra-card:hover {
  border-color: rgba(0, 200, 150, 0.22) !important;
}

html body .pxv93-map img {
  display: block !important;
  max-width: 100% !important;
  height: auto !important;
}

/* ─────────────────────────────────────────────────────────────
   §8  FAQ ITEMS
───────────────────────────────────────────────────────────── */

html body .pxv93-faq-item {
  border-bottom: 1px solid rgba(0, 200, 150, 0.08) !important;
  transition: background 0.18s !important;
}

html body .pxv93-faq-item:hover {
  background: rgba(0, 200, 150, 0.02) !important;
}

html body .pxv93-faq-item summary {
  cursor: pointer !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  color: #F0F8FF !important;
  -webkit-text-fill-color: #F0F8FF !important;
  padding: 18px 0 !important;
  list-style: none !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 16px !important;
  user-select: none !important;
}

html body .pxv93-faq-item summary::-webkit-details-marker {
  display: none !important;
}

html body .pxv93-faq-item[open] summary {
  color: var(--px120-teal) !important;
  -webkit-text-fill-color: var(--px120-teal) !important;
}

/* ─────────────────────────────────────────────────────────────
   §9  BLOG CARDS
───────────────────────────────────────────────────────────── */

html body .pxv93-home .pxv93-articles > a,
html body .blog-home-card {
  border-radius: 14px !important;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s var(--px120-ease) !important;
}

html body .pxv93-home .pxv93-articles > a:hover,
html body .blog-home-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5) !important;
}

/* ─────────────────────────────────────────────────────────────
   §9B  PARTNERS PAGE — premium card treatment for trust cards
───────────────────────────────────────────────────────────── */

/* Override generic glass-card to premium partner cards */
html body .page-partners .trust-card-grid .feature-card,
html body .page-network .trust-card-grid .feature-card {
  background: rgba(5, 13, 32, 0.90) !important;
  border: 1px solid rgba(0, 200, 150, 0.13) !important;
  border-radius: 14px !important;
  padding: 24px 22px !important;
  backdrop-filter: blur(10px) !important;
  transition: border-color 0.22s, transform 0.22s var(--px120-ease), box-shadow 0.22s !important;
  position: relative !important;
  overflow: hidden !important;
}

html body .page-partners .trust-card-grid .feature-card::before,
html body .page-network .trust-card-grid .feature-card::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important; left: 0 !important; right: 0 !important;
  height: 2px !important;
  background: linear-gradient(90deg, rgba(0, 200, 150, 0.55) 0%, transparent 75%) !important;
  opacity: 0 !important;
  transition: opacity 0.2s !important;
}

html body .page-partners .trust-card-grid .feature-card:hover,
html body .page-network .trust-card-grid .feature-card:hover {
  border-color: rgba(0, 200, 150, 0.26) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5) !important;
}

html body .page-partners .trust-card-grid .feature-card:hover::before,
html body .page-network .trust-card-grid .feature-card:hover::before {
  opacity: 1 !important;
}

html body .page-partners .trust-card-grid .feature-card h2 {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #F2F8FF !important;
  -webkit-text-fill-color: #F2F8FF !important;
  margin: 0 0 10px !important;
  letter-spacing: -0.012em !important;
}

html body .page-partners .trust-card-grid .feature-card p {
  font-size: 14px !important;
  line-height: 1.68 !important;
  color: rgba(141, 170, 190, 0.88) !important;
  -webkit-text-fill-color: rgba(141, 170, 190, 0.88) !important;
  margin: 0 !important;
}

/* Card grid: 3 cols for 3 real partners + 1 open approach */
html body .page-partners .trust-card-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
}

@media (max-width: 900px) {
  html body .page-partners .trust-card-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 560px) {
  html body .page-partners .trust-card-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Partners page hero visual: more premium */
html body .page-partners .trust-hero-card,
html body .page-network .trust-hero-card {
  border: 1px solid rgba(0, 200, 150, 0.15) !important;
  border-radius: 16px !important;
  background: rgba(5, 13, 32, 0.85) !important;
}

html body .page-partners .trust-hero-card strong,
html body .page-network .trust-hero-card strong {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #F2F8FF !important;
  -webkit-text-fill-color: #F2F8FF !important;
  letter-spacing: -0.015em !important;
  display: block !important;
  margin-bottom: 6px !important;
}

html body .page-partners .trust-hero-card span,
html body .page-network .trust-hero-card span {
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  color: var(--px120-teal) !important;
  -webkit-text-fill-color: var(--px120-teal) !important;
  display: block !important;
  margin-bottom: 14px !important;
}

html body .page-partners .trust-hero-card p,
html body .page-network .trust-hero-card p {
  font-size: 13.5px !important;
  line-height: 1.65 !important;
  color: rgba(141, 170, 190, 0.82) !important;
  -webkit-text-fill-color: rgba(141, 170, 190, 0.82) !important;
}

/* ─────────────────────────────────────────────────────────────
   §10  LEGAL PAGES — clean reading layout
───────────────────────────────────────────────────────────── */

html body .legal-page-shell .pxv93-cta-band,
html body .legal-page-shell .pxv93-solutions,
html body .legal-page-shell .pxv93-partners,
html body .legal-page-shell .cta-band,
html body .legal-page-shell .footer-partners {
  display: none !important;
}

html body .legal-document-card h2 {
  font-size: clamp(17px, 1.8vw, 21px) !important;
  font-weight: 700 !important;
  letter-spacing: -0.015em !important;
  margin: 34px 0 10px !important;
  padding-top: 22px !important;
  border-top: 1px solid rgba(0, 200, 150, 0.08) !important;
  color: #F0F8FF !important;
  -webkit-text-fill-color: #F0F8FF !important;
}

html body .legal-document-card h2:first-child {
  border-top: none !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

html body .legal-document-card h3 {
  font-size: clamp(14px, 1.3vw, 16.5px) !important;
  font-weight: 700 !important;
  margin: 22px 0 7px !important;
  color: #D8EEF8 !important;
  -webkit-text-fill-color: #D8EEF8 !important;
}

html body .legal-document-card p {
  font-size: 14.5px !important;
  line-height: 1.76 !important;
  color: rgba(195, 218, 235, 0.82) !important;
  -webkit-text-fill-color: rgba(195, 218, 235, 0.82) !important;
  margin: 0 0 14px !important;
}

html body .legal-document-card ul,
html body .legal-document-card ol {
  padding-left: 20px !important;
  margin: 0 0 16px !important;
}

html body .legal-document-card li {
  font-size: 14.5px !important;
  line-height: 1.7 !important;
  color: rgba(195, 218, 235, 0.78) !important;
  -webkit-text-fill-color: rgba(195, 218, 235, 0.78) !important;
  margin-bottom: 5px !important;
}

html body .legal-document-card a {
  color: var(--px120-teal) !important;
  -webkit-text-fill-color: var(--px120-teal) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

/* ─────────────────────────────────────────────────────────────
   §11  SECTION TITLE ROWS
───────────────────────────────────────────────────────────── */

html body .pxv93-home .pxv93-title-row,
html body .pxv93-home .pxv93-section-head {
  margin-bottom: 36px !important;
}

html body .pxv93-home .pxv93-title-row p,
html body .pxv93-home .pxv93-section-head p {
  font-size: 15px !important;
  line-height: 1.65 !important;
  color: var(--px120-text-muted) !important;
  -webkit-text-fill-color: var(--px120-text-muted) !important;
  max-width: 580px !important;
}

/* ─────────────────────────────────────────────────────────────
   §12  METRIC STRIP — prevent inline collapse
───────────────────────────────────────────────────────────── */

html body .pxv93-home .pxv93-metrics > div {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

html body .pxv93-home .pxv93-metrics strong {
  display: block !important;
}

html body .pxv93-home .pxv93-metrics span {
  display: block !important;
  font-size: 11.5px !important;
  line-height: 1.4 !important;
}

/* ─────────────────────────────────────────────────────────────
   §13  RESPONSIVE FIXES
───────────────────────────────────────────────────────────── */

@media (max-width: 400px) {
  html body .pxv93-hero h1,
  html body .px26-hero h1 {
    font-size: clamp(24px, 8.5vw, 34px) !important;
    word-break: break-word !important;
  }
}

@media (max-width: 480px) {
  html body .pxv93-home .pxv93-solutions-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  html body .pxv93-home .pxv93-metrics {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  html body .legal-hero-grid {
    grid-template-columns: 1fr !important;
  }
  html body .legal-toc {
    position: static !important;
    order: -1 !important;
  }
}

/* ─────────────────────────────────────────────────────────────
   §14  ACCESSIBILITY — focus, contrast, skip link
───────────────────────────────────────────────────────────── */

html body .pxv93-home .pxv93-solutions-grid > a:focus-visible,
html body .pxv93-home .pxv93-articles > a:focus-visible,
html body .footer-partner-card a:focus-visible {
  outline: 2px solid var(--px120-teal) !important;
  outline-offset: 4px !important;
}

html body .pxv93-home .pxv93-solutions-grid > a:focus:not(:focus-visible),
html body .pxv93-home .pxv93-articles > a:focus:not(:focus-visible) {
  outline: none !important;
}

/* Accessible contrast for muted text */
html body .pxv93-home .pxv93-partner-grid .pxv93-partner-desc {
  color: rgba(155, 185, 205, 0.90) !important;
  -webkit-text-fill-color: rgba(155, 185, 205, 0.90) !important;
}

/* ══ §15: BLOG EMPTY STATE / [hidden] ROBUSTNESS ══════════════ */
/* Ensure [hidden] attribute is respected across all browser/CSS resets */
[hidden] { display: none !important; }

/* Blog empty state: only visible when JS removes [hidden] after filter produces 0 results */
html body .blog-empty-state-v80[hidden] { display: none !important; }
html body .blog-empty-state-v80:not([hidden]) {
  display: block !important;
  padding: 48px 0 40px !important;
  text-align: center !important;
  color: #4C6480 !important;
  font-size: 13px !important;
  font-family: var(--px-mono, 'JetBrains Mono', monospace) !important;
}

/* ══ §16: ES/DE/NL WIDGET LABEL OVERFLOW PREVENTION ══════════ */
html body .px-conn-block {
  white-space: nowrap !important;
  max-width: none !important;
}

/* ══ §17: LEGAL MINIMAL FOOTER ════════════════════════════════ */
html body .site-footer-legal {
  background: rgba(2, 8, 20, 0.98) !important;
  border-top: 1px solid rgba(0, 200, 150, 0.10) !important;
  padding: 28px 0 24px !important;
}

html body .footer-legal-minimal {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 16px 32px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
}

html body .flm-brand {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

html body .flm-brand small {
  font-size: 11.5px !important;
  color: rgba(100, 130, 155, 0.80) !important;
  line-height: 1.5 !important;
  max-width: 320px !important;
}

html body .flm-links {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px 16px !important;
  margin-left: auto !important;
}

html body .flm-links a {
  font-size: 12.5px !important;
  color: rgba(141, 170, 190, 0.75) !important;
  text-decoration: none !important;
  transition: color 0.18s !important;
}

html body .flm-links a:hover,
html body .flm-links a.flm-active {
  color: #00C896 !important;
}

html body .flm-contact {
  font-size: 12.5px !important;
  color: rgba(141, 170, 190, 0.75) !important;
  text-decoration: none !important;
}

html body .flm-contact:hover {
  color: #00C896 !important;
}

@media (max-width: 640px) {
  html body .footer-legal-minimal {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  html body .flm-links {
    margin-left: 0 !important;
  }
}

/* ══ §18: CONTACT FORM IMPROVEMENTS ══════════════════════════ */
html body .hp-field {
  display: none !important;
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

html body .contact-form .form-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 16px !important;
}

html body .contact-form .form-field {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

html body .contact-form .form-row,
html body .contact-form .form-field {
  margin-bottom: 16px !important;
}
html body .contact-form .form-row:last-of-type,
html body .contact-form .form-field:last-of-type {
  margin-bottom: 0 !important;
}

html body .contact-form label {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: rgba(164, 196, 220, 0.90) !important;
  letter-spacing: 0.01em !important;
}

html body .contact-form label span[aria-hidden] {
  color: rgba(0, 200, 150, 0.80) !important;
  font-weight: 600 !important;
}

html body .contact-form input,
html body .contact-form select,
html body .contact-form textarea {
  font-size: 14px !important;
  padding: 10px 13px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(0, 200, 150, 0.15) !important;
  background: rgba(5, 12, 30, 0.70) !important;
  color: #F0F8FF !important;
  transition: border-color 0.18s, box-shadow 0.18s !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

html body .contact-form input::placeholder,
html body .contact-form textarea::placeholder {
  color: rgba(100, 135, 160, 0.55) !important;
  font-style: italic !important;
}

html body .contact-form input:focus,
html body .contact-form select:focus,
html body .contact-form textarea:focus {
  outline: none !important;
  border-color: rgba(0, 200, 150, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(0, 200, 150, 0.10) !important;
}

html body .form-alert.success {
  background: rgba(0, 200, 150, 0.10) !important;
  border: 1px solid rgba(0, 200, 150, 0.30) !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  color: #A8EFDA !important;
  font-size: 14px !important;
  margin-bottom: 16px !important;
}

html body .form-alert.error {
  background: rgba(255, 80, 80, 0.08) !important;
  border: 1px solid rgba(255, 80, 80, 0.25) !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  color: #FFAAAA !important;
  font-size: 14px !important;
  margin-bottom: 16px !important;
}

@media (max-width: 640px) {
  html body .contact-form .form-row {
    grid-template-columns: 1fr !important;
  }
}

/* ══ §19: BLOG RESET BUTTON + LOAD MORE ══════════════════════ */
html body .blog-reset-btn-v80 {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 14px !important;
  border: 1px solid rgba(0, 200, 150, 0.35) !important;
  border-radius: 6px !important;
  background: rgba(0, 200, 150, 0.07) !important;
  color: #00C896 !important;
  -webkit-text-fill-color: #00C896 !important;
  font-family: var(--px-mono, 'JetBrains Mono', monospace) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  cursor: pointer !important;
  transition: background 0.18s, border-color 0.18s !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
html body .blog-reset-btn-v80:hover {
  background: rgba(0, 200, 150, 0.14) !important;
  border-color: rgba(0, 200, 150, 0.6) !important;
}
html body .blog-reset-btn-v80[hidden] { display: none !important; }
html body .blog-reset-btn-v80::before {
  content: '×' !important;
  font-size: 16px !important;
  line-height: 1 !important;
}

html body .blog-load-more-wrap {
  display: flex !important;
  justify-content: center !important;
  padding: 40px 0 16px !important;
}
html body .blog-load-more-wrap[hidden] { display: none !important; }
html body .blog-load-more-btn {
  min-width: 200px !important;
}

/* Initially hide cards beyond the first 18 */
html body .blog-cards-wrap .resource-card-grid > a:nth-child(n+19) {
  display: none !important;
}
html body .blog-cards-wrap.blog-all-loaded .resource-card-grid > a:nth-child(n+19) {
  display: flex !important;
}
/* When filtering is active, show all matched cards regardless of position */
html body .blog-cards-wrap.blog-filter-active .resource-card-grid > a:not([hidden]) {
  display: flex !important;
}

/* ══ §20: NAVBAR MOBILE — COMPREHENSIVE FIXES ════════════════ */

/* Locale dropdown: never overflow viewport */
html body .site-header .locale-switcher {
  position: relative !important;
}
html body .site-header .locale-menu,
html body [data-locale-menu] {
  position: absolute !important;
  right: 0 !important;
  left: auto !important;
  top: calc(100% + 10px) !important;
  min-width: 200px !important;
  max-width: min(260px, calc(100vw - 24px)) !important;
  z-index: 9999 !important;
}
/* On small screens, ensure locale menu stays within viewport */
@media (max-width: 480px) {
  html body .site-header .locale-menu,
  html body [data-locale-menu] {
    right: -4px !important;
    min-width: 180px !important;
    max-width: calc(100vw - 20px) !important;
  }
}

/* Ensure mobile nav is truly above all content */
html body .site-header .mobile-nav {
  z-index: 9990 !important;
  position: absolute !important;
  left: 8px !important;
  right: 8px !important;
  top: calc(100% + 6px) !important;
}

/* Mobile nav: never taller than screen */
@media (max-width: 1060px) {
  html body .site-header .mobile-nav.open {
    max-height: calc(100svh - 70px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

/* Narrow screens (360px): tighten locale button label */
@media (max-width: 380px) {
  html body .site-header .locale-trigger span {
    display: inline-block !important;
    max-width: 28px !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
  }
  html body .site-header .brand-name {
    font-size: 12px !important;
  }
  html body .site-header .brand-sub {
    display: none !important;
  }
}

/* Prevent double display of desktop/mobile nav at any breakpoint */
@media (max-width: 1060px) {
  html body .site-header .desktop-nav {
    display: none !important;
  }
  html body .site-header .desktop-account-login,
  html body .site-header .desktop-account-register {
    display: none !important;
  }
}

/* Header sticky — ensure content is never hidden behind sticky header */
html body main {
  scroll-margin-top: 70px;
}
html body [id] {
  scroll-margin-top: 80px;
}

/* ══ §21: RESPONSIVE CONTENT FIXES — ALL PAGES ═══════════════ */

/* Global: prevent any element from creating horizontal scroll */
html body .container,
html body .pxv93-container,
html body section,
html body main,
html body .site-shell {
  max-width: 100vw !important;
  box-sizing: border-box !important;
}

/* Hero sections: mobile-first padding */
@media (max-width: 640px) {
  html body .hero,
  html body .hero-subpage {
    padding-top: clamp(72px, 14vw, 96px) !important;
    padding-bottom: clamp(36px, 8vw, 56px) !important;
  }
  html body .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  html body .hero-copy h1,
  html body .blog-index-copy h1,
  html body .article-header-card h1 {
    font-size: clamp(1.6rem, 8vw, 2.5rem) !important;
    line-height: 1.1 !important;
  }
  html body .hero-lead,
  html body .hero-copy p {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }
  html body .hero-actions {
    flex-wrap: wrap !important;
    gap: 10px !important;
  }
  html body .hero-actions .button {
    min-width: 160px !important;
    flex: 1 !important;
    justify-content: center !important;
  }
}

/* Section padding mobile */
@media (max-width: 640px) {
  html body .section,
  html body .section-alt {
    padding-top: 52px !important;
    padding-bottom: 52px !important;
  }
}

/* Card grids: always single column on smallest screens */
@media (max-width: 480px) {
  html body .card-grid,
  html body .card-grid.two,
  html body .card-grid.three,
  html body .card-grid.four,
  html body .feature-grid,
  html body .pricing-grid,
  html body .trust-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
}
@media (min-width: 481px) and (max-width: 768px) {
  html body .card-grid.three,
  html body .card-grid.four {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
}

/* Glass cards on mobile: always full-width, proper padding */
@media (max-width: 640px) {
  html body .glass-card {
    padding: 20px 18px !important;
    border-radius: 14px !important;
  }
}

/* Badges/pills: no overflow, wrap properly */
html body .pill,
html body .blog-topic-chip-v80,
html body .ppc-pill {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

/* Mode tags: always have gap (accessibility + visual) */
html body .pxv93-mode-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}
html body .pxv93-mode-tags span {
  display: inline-block !important;
}

/* Flow diagram metrics: ensure block display */
html body .pxv93-metrics strong,
html body .pxv93-infra-card strong,
html body .transit-proof-item-v81 strong {
  display: block !important;
}
html body .pxv93-metrics span,
html body .pxv93-infra-card span,
html body .transit-proof-item-v81 span {
  display: block !important;
  margin-top: 2px !important;
}

/* px-conn-block: allow wrapping on mobile */
@media (max-width: 640px) {
  html body .px-conn-block {
    font-size: 10px !important;
    padding: 2px 6px !important;
    white-space: normal !important;
    text-align: center !important;
  }
  html body .px-hp-flow {
    flex-wrap: nowrap !important;
    gap: 4px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 4px !important;
  }
  html body .px-hp-node span {
    font-size: 9px !important;
  }
}

/* Footer: proper mobile stack */
@media (max-width: 640px) {
  html body .site-footer .footer-inner,
  html body .site-footer .footer-grid,
  html body .site-footer .footer-cols {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px 16px !important;
  }
}
@media (max-width: 400px) {
  html body .site-footer .footer-inner,
  html body .site-footer .footer-grid,
  html body .site-footer .footer-cols {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

/* ══ §22: CONTACT FORM — MOBILE IMPROVEMENTS ═════════════════ */

/* Contact form: proper single-column mobile layout */
@media (max-width: 768px) {
  html body .contact-form .form-row {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* Labels: always visible above inputs */
html body .contact-form label,
html body .contact-form .form-label {
  display: block !important;
  margin-bottom: 6px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--px120-text-muted, #8DAABE) !important;
  -webkit-text-fill-color: var(--px120-text-muted, #8DAABE) !important;
}

/* Inputs: comfortable height, full width */
html body .contact-form input,
html body .contact-form select,
html body .contact-form textarea {
  width: 100% !important;
  min-height: 48px !important;
  padding: 12px 14px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  box-sizing: border-box !important;
}
html body .contact-form textarea {
  min-height: 120px !important;
  resize: vertical !important;
}

/* Submit button: full-width on mobile */
@media (max-width: 640px) {
  html body .contact-form .form-submit,
  html body .contact-form button[type="submit"] {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* Contact section layout: stack on mobile */
@media (max-width: 768px) {
  html body .contact-layout,
  html body .contact-grid,
  html body .px26-contact-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}

/* ══ §23: PARTNERS PAGE PREMIUM CSS ═══════════════════════════ */

html body .hero-partners {
  padding-top: 96px !important;
  padding-bottom: 64px !important;
}

html body .partners-premium-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  margin-top: 32px !important;
}
@media (max-width: 900px) {
  html body .partners-premium-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 18px !important;
  }
}
@media (max-width: 560px) {
  html body .partners-premium-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

html body .partner-premium-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  padding: 24px 22px !important;
  border-radius: 16px !important;
}
html body .ppc-header {
  display: flex !important;
  align-items: flex-start !important;
  gap: 14px !important;
}
html body .ppc-logo {
  width: 100px !important;
  height: auto !important;
  max-height: 44px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
}
html body .ppc-meta {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  min-width: 0 !important;
}
html body .ppc-name {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--px120-text, #F5FBFF) !important;
  -webkit-text-fill-color: var(--px120-text, #F5FBFF) !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}
html body .ppc-tag {
  font-size: 12px !important;
  color: var(--px120-teal, #00C896) !important;
  -webkit-text-fill-color: var(--px120-teal, #00C896) !important;
  font-family: var(--px-mono, monospace) !important;
  font-weight: 600 !important;
}
html body .ppc-pills {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}
html body .ppc-pill {
  font-size: 11px !important;
  padding: 3px 10px !important;
  background: rgba(0, 200, 150, 0.08) !important;
  border: 1px solid rgba(0, 200, 150, 0.2) !important;
  border-radius: 999px !important;
  color: #8DAABE !important;
  -webkit-text-fill-color: #8DAABE !important;
}
html body .ppc-geo-pill {
  background: rgba(100, 160, 255, 0.07) !important;
  border-color: rgba(100, 160, 255, 0.18) !important;
}
html body .ppc-desc {
  font-size: 14px !important;
  color: #8DAABE !important;
  -webkit-text-fill-color: #8DAABE !important;
  line-height: 1.65 !important;
  margin: 0 !important;
  flex: 1 !important;
}
html body .ppc-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 13px !important;
  color: var(--px120-teal, #00C896) !important;
  -webkit-text-fill-color: var(--px120-teal, #00C896) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  margin-top: auto !important;
  padding-top: 4px !important;
  transition: color 0.18s !important;
}
html body .ppc-link:hover {
  color: #00E0AA !important;
  -webkit-text-fill-color: #00E0AA !important;
}

/* Partners why section */
html body .partners-why-section .card-grid.three {
  margin-top: 32px !important;
}

/* Partners benefits grid */
html body .partners-benefits-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 16px !important;
  margin-top: 32px !important;
}
@media (max-width: 640px) {
  html body .partners-benefits-grid {
    grid-template-columns: 1fr !important;
  }
}
html body .partners-benefit-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 14px !important;
  padding: 18px 20px !important;
  border-radius: 12px !important;
}
html body .pbi-check {
  font-size: 18px !important;
  color: var(--px120-teal, #00C896) !important;
  -webkit-text-fill-color: var(--px120-teal, #00C896) !important;
  flex-shrink: 0 !important;
  line-height: 1.4 !important;
}
html body .pbi-body {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}
html body .pbi-body strong {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--px120-text, #F5FBFF) !important;
  -webkit-text-fill-color: var(--px120-text, #F5FBFF) !important;
}
html body .pbi-body p {
  font-size: 13px !important;
  color: #8DAABE !important;
  -webkit-text-fill-color: #8DAABE !important;
  line-height: 1.55 !important;
  margin: 0 !important;
}

/* Partners CTA card */
html body .partners-cta-card {
  text-align: center !important;
  padding: 48px 40px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 16px !important;
}
@media (max-width: 640px) {
  html body .partners-cta-card {
    padding: 32px 20px !important;
  }
}
html body .partners-cta-card h2 {
  font-size: clamp(20px, 3vw, 28px) !important;
  margin: 0 !important;
}
html body .partners-cta-card p {
  max-width: 540px !important;
  color: #8DAABE !important;
  -webkit-text-fill-color: #8DAABE !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

/* ══ §24: BLOG CARDS PREMIUM ══════════════════════════════════ */

/* Blog page hero: proper mobile */
@media (max-width: 640px) {
  html body .blog-index-hero-v9 {
    padding-top: 80px !important;
    padding-bottom: 36px !important;
  }
  html body .blog-index-shell {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  html body .blog-featured-panel-v80 {
    flex-direction: column !important;
    gap: 14px !important;
  }
}

/* Blog filter bar: mobile-friendly flex wrap */
@media (max-width: 640px) {
  html body .blog-filter-bar-v80 {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  html body .blog-search-v80 {
    width: 100% !important;
    min-width: 0 !important;
  }
  html body .blog-topic-chips-v80 {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }
}

/* Blog resource cards: better spacing on mobile */
@media (max-width: 640px) {
  html body .resource-card-grid-visual {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}
@media (min-width: 641px) and (max-width: 900px) {
  html body .resource-card-grid-visual {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Blog cards: improve readability */
html body .blog-home-card {
  border-radius: 14px !important;
}

/* ══ §25: LEGAL PAGES MINIMAL FOOTER — MOBILE ════════════════ */

@media (max-width: 640px) {
  html body .footer-legal-minimal {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
    padding: 20px 16px !important;
  }
  html body .flm-links {
    flex-wrap: wrap !important;
    gap: 8px 12px !important;
  }
}
