/* PSS site-wide modernization layer — presentation only. */

body {
  --pss-bg: #0a2632;
  --pss-bg-deep: #071d28;
  --pss-surface: #103746;
  --pss-surface-2: #143f50;
  --pss-surface-3: #1a4b5d;
  --pss-ink: #f5f9fc;
  --pss-muted: #b5c6d1;
  --pss-blue: #4b8ff5;
  --pss-border-dark: rgba(255,255,255,.11);
  --pss-shadow: 0 24px 60px rgba(0,0,0,.22);
}

body:not(.home) {
  background: var(--pss-bg-deep);
  color: var(--pss-ink);
}

body:not(.home) .wp-site-blocks {
  min-height: 100vh;
  color: var(--pss-ink);
  background:
    radial-gradient(circle at 10% 3%, rgba(75,143,245,.12), transparent 26%),
    radial-gradient(circle at 92% 14%, rgba(38,70,83,.22), transparent 30%),
    linear-gradient(180deg, #0b2b38 0%, var(--pss-bg-deep) 100%);
}

/* Shared floating navigation */
body:not(.home) header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 1000;
}
body.admin-bar:not(.home) header.wp-block-template-part { top: 32px; }
body:not(.home) header .superbthemes-navigation-three {
  padding-top: 14px !important;
  padding-bottom: 8px !important;
}
body:not(.home) header .superbthemes-navigation-three > .c {
  background: rgba(8,36,48,.88) !important;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 16px 42px rgba(0,0,0,.24);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
}
body:not(.home) header .wp-block-navigation-item__content,
body:not(.home) header .wp-block-navigation__submenu-icon,
body:not(.home) header .wp-block-navigation__responsive-container-open {
  color: #f4f8fb !important;
  fill: #f4f8fb !important;
}
body:not(.home) header .wp-block-navigation-item__content:hover { color: #86b6ff !important; }
body:not(.home) header .wp-block-navigation__submenu-container {
  background: rgba(13,52,67,.98) !important;
  border: 1px solid var(--pss-border-dark) !important;
  border-radius: 16px !important;
  padding: 8px !important;
  box-shadow: 0 22px 52px rgba(0,0,0,.30) !important;
}
body:not(.home) header .wp-block-navigation__submenu-container {
  min-width: 190px !important;
  padding: 8px !important;
  border: 1px solid rgba(134,182,255,.18) !important;
  border-radius: 16px !important;
  background: rgba(8,36,48,.96) !important;
  box-shadow: 0 20px 48px rgba(0,0,0,.34), 0 1px 0 rgba(255,255,255,.05) inset !important;
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
  overflow: hidden;
}
body:not(.home) header .wp-block-navigation__submenu-container > .wp-block-navigation-item {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
}
body:not(.home) header .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  display: block;
  width: 100%;
  border-radius: 10px;
  padding: 11px 13px !important;
  background: transparent !important;
  color: #f5fbff !important;
  box-shadow: none !important;
}
body:not(.home) header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
body:not(.home) header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus {
  background: rgba(75,143,245,.15) !important;
  color: #ffffff !important;
}

/* Shared type + color utilities */
body:not(.home) .wp-site-blocks h1,
body:not(.home) .wp-site-blocks h2,
body:not(.home) .wp-site-blocks h3,
body:not(.home) .wp-site-blocks h4,
body:not(.home) .wp-site-blocks h5,
body:not(.home) .wp-site-blocks h6,
body:not(.home) .wp-site-blocks .has-mono-1-color,
body:not(.home) .wp-site-blocks .has-contrast-color {
  color: #f5f9fc !important;
}
body:not(.home) .wp-site-blocks .has-mono-2-color,
body:not(.home) .wp-site-blocks .has-secondary-color {
  color: var(--pss-muted) !important;
}
body:not(.home) .wp-site-blocks a { color: inherit; }
body:not(.home) .wp-site-blocks p,
body:not(.home) .wp-site-blocks li { line-height: 1.7; }
body:not(.home) .wp-site-blocks h1,
body:not(.home) .wp-site-blocks h2,
body:not(.home) .wp-site-blocks h3 { letter-spacing: -.025em; }

/* Convert theme light surfaces into PSS dark surfaces */
body:not(.home) .has-mono-4-background-color,
body:not(.home) .has-contrast-light-background-color {
  background-color: var(--pss-surface) !important;
}
body:not(.home) .has-base-2-background-color {
  background-color: transparent !important;
}
body:not(.home) .wp-block-separator { border-color: rgba(255,255,255,.12) !important; }

/* Buttons */
body:not(.home) .wp-block-button__link {
  border-radius: 12px !important;
  font-weight: 700;
  transition: transform 170ms ease, box-shadow 170ms ease, background 170ms ease;
}
body:not(.home) .wp-block-button__link:hover { transform: translateY(-2px); }
body:not(.home) .wp-block-button.is-style-outline .wp-block-button__link {
  color: #f7fbff !important;
  background: rgba(255,255,255,.055) !important;
  border-color: rgba(255,255,255,.24) !important;
}
body:not(.home) .wp-block-button:not(.is-style-outline) .wp-block-button__link {
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
}

/* Cards, media, tables and forms */
body:not(.home) .entry-content .wp-block-columns > .wp-block-column.has-background,
body:not(.home) .wp-site-blocks main .wp-block-columns > .wp-block-column.has-background {
  border: 1px solid var(--pss-border-dark);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(0,0,0,.13);
}
body:not(.home) .entry-content figure.wp-block-image:not(.service-icon) img,
body:not(.home) .entry-content .wp-block-video video {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 20px 46px rgba(0,0,0,.20);
}
body:not(.home) table { border-color: rgba(255,255,255,.14); }
body:not(.home) th { background: var(--pss-surface-2); color: #fff; }
body:not(.home) td { border-color: rgba(255,255,255,.10); }
body:not(.home) input,
body:not(.home) textarea,
body:not(.home) select {
  color: #f5f9fc !important;
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 10px !important;
}
body:not(.home) input::placeholder,
body:not(.home) textarea::placeholder { color: #9fb2bf; }
body:not(.home) label { color: #edf5fa; }

/* About / contact / standard Site Editor templates */
body.page-template-about .wp-block-cover,
body.page-template-contact .wp-block-cover {
  box-shadow: var(--pss-shadow);
  border: 1px solid rgba(255,255,255,.10);
}
body.page-template-about .wp-block-cover__background,
body.page-template-contact .wp-block-cover__background {
  background: #082a38 !important;
  opacity: .72 !important;
}
body.page-template-about .wp-block-columns,
body.page-template-contact .wp-block-columns { gap: clamp(24px,4vw,56px); }
body.page-template-about .wp-block-image img,
body.page-template-contact .wp-block-image img { box-shadow: 0 18px 42px rgba(0,0,0,.20); }

/* Phoenix product page */
body.page-id-69 .entry-content > .wp-block-group { position: relative; }
body.page-id-69 .entry-content .wp-block-column > .wp-block-group:has(.service-icon) {
  min-height: 100%;
  padding: 30px 24px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(20,63,80,.96), rgba(13,50,64,.96));
  border: 1px solid var(--pss-border-dark);
  box-shadow: 0 14px 34px rgba(0,0,0,.16);
}
body.page-id-69 .service-icon {
  width: 82px;
  margin-inline: auto !important;
}
body.page-id-69 .service-icon img {
  width: 82px !important;
  height: 82px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.15));
}
body.page-id-69 .wp-block-group.is-layout-grid:has(> h2:nth-of-type(6)) {
  grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  column-gap: 18px !important;
  row-gap: 0 !important;
  max-width: 1180px;
  margin-inline: auto;
}
body.page-id-69 .wp-block-group.is-layout-grid:has(> h2:nth-of-type(6)) > .wp-block-spacer { display: none; }
body.page-id-69 .wp-block-group.is-layout-grid:has(> h2:nth-of-type(6)) > h2 {
  margin: 18px 0 0 !important;
  padding: 26px 24px 10px;
  background: var(--pss-surface-2);
  border: 1px solid var(--pss-border-dark);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  font-size: clamp(1.05rem,1.3vw,1.35rem) !important;
}
body.page-id-69 .wp-block-group.is-layout-grid:has(> h2:nth-of-type(6)) > p {
  margin: 0 0 18px !important;
  padding: 0 24px 26px;
  color: var(--pss-muted) !important;
  background: var(--pss-surface-2);
  border: 1px solid var(--pss-border-dark);
  border-top: 0;
  border-radius: 0 0 18px 18px;
}
body.page-id-69 .wp-block-group.is-layout-grid:has(> h2:nth-of-type(6)) > .wp-block-buttons {
  grid-column: 1 / -1;
  margin: 24px auto 0;
}
body.page-id-69 .entry-content .wp-block-image:not(.service-icon) {
  padding: 6px;
  border-radius: 20px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 22px 50px rgba(0,0,0,.20);
}

/* PHX Help Center archive */
body.post-type-archive-docs .wp-block-cover {
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.22);
}
body.post-type-archive-docs .wp-block-cover__background { opacity: .58 !important; }
body.post-type-archive-docs .wp-block-cover h2 { color: #fff !important; }
body.post-type-archive-docs .wp-block-cover p:not(.has-primary-color) { color: #dce8ef !important; }
body.post-type-archive-docs [class*="betterdocs-searchbox-"] {
  position: relative;
  z-index: 4;
  max-width: 860px;
  margin: -34px auto 48px !important;
  padding: 14px;
  border-radius: 20px;
  background: rgba(15,54,69,.94);
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 20px 46px rgba(0,0,0,.22);
  backdrop-filter: blur(16px);
}
body.post-type-archive-docs .betterdocs-category-grid-wrapper { max-width: 1180px; margin-inline: auto; }
body.post-type-archive-docs .betterdocs-category-grid-inner-wrapper { gap: 18px !important; }
body.post-type-archive-docs .betterdocs-single-category-inner {
  height: 100%;
  overflow: hidden;
  border-radius: 20px !important;
  background: linear-gradient(180deg, var(--pss-surface-2), var(--pss-surface)) !important;
  border: 1px solid var(--pss-border-dark) !important;
  box-shadow: 0 16px 36px rgba(0,0,0,.16);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
body.post-type-archive-docs .betterdocs-single-category-inner:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0,0,0,.22);
}
body.post-type-archive-docs .betterdocs-category-title,
body.post-type-archive-docs .betterdocs-articles-list a { color: #edf6fb !important; }
body.post-type-archive-docs .betterdocs-category-items-counts { color: #a9bfcb !important; }
body.post-type-archive-docs .betterdocs-articles-list li { border-color: rgba(255,255,255,.08) !important; }
body.post-type-archive-docs .wp-block-video {
  padding: 7px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 20px 46px rgba(0,0,0,.20);
}

/* BetterDocs article pages: dark shell, light reading canvas */
body.single-docs .betterdocs-sidebar-content {
  padding: 12px;
  border-radius: 18px;
  background: var(--pss-surface);
  border: 1px solid var(--pss-border-dark);
  box-shadow: 0 16px 36px rgba(0,0,0,.15);
}
body.single-docs .betterdocs-category-title,
body.single-docs .betterdocs-sidebar a { color: #e7f1f7 !important; }
body.single-docs .betterdocs-sidebar .active { color: #8bb9ff !important; }
body.single-docs .betterdocs-breadcrumb,
body.single-docs .betterdocs-breadcrumb a,
body.single-docs .reading-time { color: #aebfca !important; }
body.single-docs .wp-block-post-title { color: #f7fbff !important; }
body.single-docs #betterdocs-single-content {
  margin-top: 26px;
  padding: clamp(28px,4vw,54px);
  border-radius: 22px;
  color: #314a5d;
  background: #f8fbfd;
  box-shadow: 0 26px 64px rgba(0,0,0,.23);
}
body.single-docs #betterdocs-single-content h1,
body.single-docs #betterdocs-single-content h2,
body.single-docs #betterdocs-single-content h3,
body.single-docs #betterdocs-single-content h4,
body.single-docs #betterdocs-single-content h5,
body.single-docs #betterdocs-single-content h6,
body.single-docs #betterdocs-single-content .has-mono-1-color,
body.single-docs #betterdocs-single-content .has-contrast-color {
  color: #0b3558 !important;
}
body.single-docs #betterdocs-single-content p,
body.single-docs #betterdocs-single-content li { color: #3f5667; }
body.single-docs #betterdocs-single-content .has-secondary-color,
body.single-docs #betterdocs-single-content .has-mono-2-color { color: #647789 !important; }
body.single-docs #betterdocs-single-content .has-primary-color { color: #2f75d8 !important; }
body.single-docs #betterdocs-single-content .has-mono-4-background-color,
body.single-docs #betterdocs-single-content .has-contrast-light-background-color { background: #eef4f8 !important; }
body.single-docs #betterdocs-single-content table { color: #314a5d; border-color: #d6e0e7; }
body.single-docs #betterdocs-single-content th { color: #fff; background: #123f52; }
body.single-docs #betterdocs-single-content td { border-color: #d6e0e7; }
body.single-docs #betterdocs-single-content .wp-block-button.is-style-outline .wp-block-button__link {
  color: #0b3558 !important;
  border-color: rgba(11,53,88,.23) !important;
  background: #fff !important;
}

/* Footer */
body:not(.home) footer.wp-block-template-part .superbthemes-footer-one {
  color: #c6d5de;
  background: #071d28 !important;
  border-top: 1px solid rgba(255,255,255,.10) !important;
}
body:not(.home) footer h2,
body:not(.home) footer h3,
body:not(.home) footer .wp-block-site-title,
body:not(.home) footer .wp-block-navigation-item__content { color: #f3f8fb !important; }
body:not(.home) footer .wp-block-navigation-item__content:hover { color: #8bb9ff !important; }
body:not(.home) footer .has-mono-4-background-color { background: rgba(255,255,255,.055) !important; }

@media (max-width: 1024px) {
  body:not(.home) header .superbthemes-navigation-three-columns-button .wp-block-button:first-child { display: none; }
}

@media (max-width: 782px) {
  body.admin-bar:not(.home) header.wp-block-template-part { top: 46px; }
  body:not(.home) header .superbthemes-navigation-three { padding-inline: 14px !important; }
  body:not(.home) header .superbthemes-navigation-three > .c { border-radius: 20px !important; padding: 12px 15px !important; }
  body:not(.home) header .custom-logo { width: 122px; height: auto; }
  body:not(.home) header .superbthemes-navigation-three-columns-button { display: none; }

  body.page-id-69 .wp-block-group.is-layout-grid:has(> h2:nth-of-type(6)) {
    grid-template-columns: 1fr !important;
  }
  body.page-id-69 .wp-block-group.is-layout-grid:has(> h2:nth-of-type(6)) > h2:nth-of-type(1) { grid-row: 1; }
  body.page-id-69 .wp-block-group.is-layout-grid:has(> h2:nth-of-type(6)) > p:nth-of-type(1) { grid-row: 2; }
  body.page-id-69 .wp-block-group.is-layout-grid:has(> h2:nth-of-type(6)) > h2:nth-of-type(2) { grid-row: 3; }
  body.page-id-69 .wp-block-group.is-layout-grid:has(> h2:nth-of-type(6)) > p:nth-of-type(2) { grid-row: 4; }
  body.page-id-69 .wp-block-group.is-layout-grid:has(> h2:nth-of-type(6)) > h2:nth-of-type(3) { grid-row: 5; }
  body.page-id-69 .wp-block-group.is-layout-grid:has(> h2:nth-of-type(6)) > p:nth-of-type(3) { grid-row: 6; }
  body.page-id-69 .wp-block-group.is-layout-grid:has(> h2:nth-of-type(6)) > h2:nth-of-type(4) { grid-row: 7; }
  body.page-id-69 .wp-block-group.is-layout-grid:has(> h2:nth-of-type(6)) > p:nth-of-type(4) { grid-row: 8; }
  body.page-id-69 .wp-block-group.is-layout-grid:has(> h2:nth-of-type(6)) > h2:nth-of-type(5) { grid-row: 9; }
  body.page-id-69 .wp-block-group.is-layout-grid:has(> h2:nth-of-type(6)) > p:nth-of-type(5) { grid-row: 10; }
  body.page-id-69 .wp-block-group.is-layout-grid:has(> h2:nth-of-type(6)) > h2:nth-of-type(6) { grid-row: 11; }
  body.page-id-69 .wp-block-group.is-layout-grid:has(> h2:nth-of-type(6)) > p:nth-of-type(6) { grid-row: 12; }
  body.page-id-69 .wp-block-group.is-layout-grid:has(> h2:nth-of-type(6)) > .wp-block-buttons { grid-row: 13; }

  body.single-docs #betterdocs-single-content { padding: 24px 18px; border-radius: 18px; }
  body.post-type-archive-docs [class*="betterdocs-searchbox-"] { margin-inline: 16px !important; }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.home) *, body:not(.home) *::before, body:not(.home) *::after {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
  }
}

/* Priority visual fixes — 2026-09-16 */

/* Keep dropdowns cohesive with the dark navigation instead of white tile stacks. */
header .wp-block-navigation__submenu-container {
  background: rgba(7,29,40,.98) !important;
  border: 1px solid rgba(145,166,255,.22) !important;
  border-radius: 14px !important;
  padding: 6px !important;
  box-shadow: 0 20px 48px rgba(0,0,0,.34) !important;
  overflow: hidden !important;
}
header .wp-block-navigation__submenu-container > .wp-block-navigation-item,
header .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content,
header .wp-block-navigation__submenu-container .wp-block-navigation-item__label {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
header .wp-block-navigation__submenu-container > .wp-block-navigation-item {
  border-radius: 8px !important;
  margin: 0 !important;
}
header .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 10px 12px !important;
  color: #f5fbff !important;
  text-decoration: none !important;
}
header .wp-block-navigation__submenu-container .wp-block-navigation-item__label {
  color: #f5fbff !important;
  padding: 0 !important;
}
header .wp-block-navigation__submenu-container > .wp-block-navigation-item:hover {
  background: rgba(75,107,253,.16) !important;
}

/* Phoenix: strengthen the product eyebrow and give icon feature cards the homepage lift. */
body.page-id-69 .has-primary-color.wp-block-heading,
body.page-id-69 p.has-primary-color {
  font-size: clamp(15px, 1.1vw, 18px) !important;
  font-weight: 700 !important;
  letter-spacing: .16em !important;
}
body.page-id-69 .wp-block-columns > .wp-block-column:has(> figure.wp-block-image) {
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  transform-origin: center;
}
body.page-id-69 .wp-block-columns > .wp-block-column:has(> figure.wp-block-image):hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(139,185,255,.30) !important;
  box-shadow: 0 18px 42px rgba(0,0,0,.20);
}

/* BetterDocs search: integrate the shell with the dark help center while keeping the results modal readable. */
body.post-type-archive-docs [class*="betterdocs-searchbox"],
body.post-type-archive-docs [class*="betterdocs-search-form"] {
  background: rgba(255,255,255,.055) !important;
  border-color: rgba(255,255,255,.11) !important;
  box-shadow: none !important;
}
body.post-type-archive-docs [class*="betterdocs-search"] input {
  color: #172330 !important;
  background: #f7f9fb !important;
}
body.post-type-archive-docs [class*="betterdocs-search"] input::placeholder {
  color: #6e7b88 !important;
  opacity: 1 !important;
}
body.post-type-archive-docs [class*="betterdocs-search-modal"],
body.post-type-archive-docs [class*="betterdocs-search-result"],
body.post-type-archive-docs [class*="betterdocs-search-content"] {
  color: #243341 !important;
}
body.post-type-archive-docs [class*="betterdocs-search-modal"] a,
body.post-type-archive-docs [class*="betterdocs-search-result"] a,
body.post-type-archive-docs [class*="betterdocs-search-content"] a,
body.post-type-archive-docs [class*="betterdocs-search-modal"] span,
body.post-type-archive-docs [class*="betterdocs-search-result"] span {
  color: #334a60 !important;
}

/* About hero: prevent light-on-light heading pills. */
body.page-template-about .wp-block-cover .has-background,
body.page-template-about main > .wp-block-group:first-child .has-background {
  background: rgba(7,29,40,.84) !important;
  color: #f7fbff !important;
  border: 1px solid rgba(255,255,255,.12) !important;
}
body.page-template-about .wp-block-cover .has-background *,
body.page-template-about main > .wp-block-group:first-child .has-background * {
  color: #f7fbff !important;
}

/* Contact cards: match dimensions and internal alignment. */
body.page-template-contact .wp-block-columns > .wp-block-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 245px;
  box-sizing: border-box;
}
body.page-template-contact .wp-block-columns > .wp-block-column > * {
  width: 100%;
  text-align: center;
}


/* Match submenu rows to the dark glass navigation panel */
body:not(.home) header .wp-block-navigation__submenu-container {
  background: rgba(8, 31, 43, .97) !important;
  border: 1px solid rgba(145,166,255,.22) !important;
  border-radius: 16px !important;
  padding: 8px !important;
  box-shadow: 0 22px 55px rgba(0,0,0,.38) !important;
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
}

body:not(.home) header .wp-block-navigation__submenu-container > .wp-block-navigation-item,
body:not(.home) header .wp-block-navigation__submenu-container .wp-block-navigation-item {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
}

body:not(.home) header .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: transparent !important;
  background-color: transparent !important;
  color: #f5fbff !important;
  border: 0 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  padding: 11px 13px !important;
}

body:not(.home) header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
body:not(.home) header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible {
  background: rgba(75,107,253,.16) !important;
  color: #ffffff !important;
}
