/* FAQ reference layer — presentation only. FAQ records, category keys,
   translations, schema output and deep links remain untouched. */
body:has(main.faq-page) {
  --faq-navy: #031a43;
  --faq-blue: #0757e8;
  --faq-ink: #0b234e;
  --faq-copy: #52627c;
  --faq-line: #d7e2f0;
  background: #fff !important;
  color: var(--faq-ink);
}

body:has(main.faq-page) .site-header {
  position: relative !important;
  z-index: 8;
  background: #fff !important;
  border-bottom: 1px solid #dce5f2 !important;
}
body:has(main.faq-page) .site-header .brand-name,
body:has(main.faq-page) .site-header .main-nav > a,
body:has(main.faq-page) .site-header .language-switcher-label {
  color: var(--faq-ink) !important;
}
body:has(main.faq-page) .site-header .main-nav > a:hover,
body:has(main.faq-page) .site-header .main-nav > a:focus-visible,
body:has(main.faq-page) .site-header .main-nav > a[aria-current="page"] {
  color: var(--faq-blue) !important;
}
body:has(main.faq-page) .site-header .main-nav > a::after { background: var(--faq-blue) !important; }
body:has(main.faq-page) .site-header .quote-link {
  border-color: var(--faq-blue) !important;
  background: var(--faq-blue) !important;
  color: #fff !important;
}
body:has(main.faq-page) .site-header .language-switcher {
  border-color: #cbd8ea !important;
  background: #fff !important;
  color: var(--faq-ink) !important;
  box-shadow: none !important;
}
body:has(main.faq-page) .site-header .language-switcher select {
  border-color: transparent !important;
  background: transparent !important;
  color: var(--faq-ink) !important;
}

body:has(main.faq-page) .page-hero {
  position: relative !important;
  min-height: 340px !important;
  box-sizing: border-box;
  padding: 66px 0 56px !important;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(0, 18, 53, .98), rgba(0, 29, 72, .9) 52%, rgba(0, 38, 96, .65)),
    url('/wp-content/uploads/2026/07/lab-glassware.jpg') center 42% / cover no-repeat,
    var(--faq-navy) !important;
  border-bottom: 1px solid rgba(144, 183, 255, .3) !important;
}
body:has(main.faq-page) .page-hero::before {
  content: "" !important;
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(30deg, transparent 47%, rgba(93, 151, 255, .24) 48% 52%, transparent 53%),
    linear-gradient(150deg, transparent 47%, rgba(93, 151, 255, .17) 48% 52%, transparent 53%);
  background-size: 64px 56px;
  opacity: .35;
  mask-image: linear-gradient(90deg, transparent 20%, #000 75%);
}
body:has(main.faq-page) .page-hero::after {
  content: none !important;
  display: none !important;
}
body:has(main.faq-page) .page-hero .content-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(1280px, calc(100% - 96px));
  margin-inline: auto;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}
body:has(main.faq-page) .page-hero .eyebrow {
  margin: 0 0 16px !important;
  color: #a8c6ff !important;
  font: 800 11px/1.2 Manrope, Arial, sans-serif;
  letter-spacing: .13em;
}
body:has(main.faq-page) .page-hero h1 {
  margin: 0 !important;
  color: #fff !important;
  font: 400 clamp(52px, 6vw, 78px)/.96 Italiana, Georgia, serif !important;
  letter-spacing: -.035em;
  text-shadow: none !important;
}
body:has(main.faq-page) .page-hero-status {
  display: grid;
  min-width: 210px;
  grid-template-columns: 9px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 16px 18px;
  border: 1px solid rgba(166, 198, 255, .55) !important;
  border-radius: 4px;
  background: rgba(2, 19, 52, .45) !important;
  color: #dceaff !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}
body:has(main.faq-page) .page-hero-status .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f3c537;
}
body:has(main.faq-page) .page-hero-status b { color: #f3c537 !important; font-size: 18px; }

body:has(main.faq-page) .secondary-section {
  position: relative;
  padding: 64px 0 88px !important;
  background: #fff !important;
}
body:has(main.faq-page) .secondary-section::before { display: none !important; content: none !important; }
body:has(main.faq-page) .secondary-section > .content-narrow {
  width: min(980px, calc(100% - 96px));
  max-width: none;
  margin-inline: auto;
  color: var(--faq-ink) !important;
}
body:has(main.faq-page) .faq-page-content > h2 {
  margin: 0 0 26px !important;
  color: var(--faq-ink) !important;
  font: 400 clamp(34px, 4vw, 48px)/1.02 Italiana, Georgia, serif !important;
  letter-spacing: -.025em;
}
body:has(main.faq-page) .faq-page-category-tabs {
  display: flex;
  gap: 28px;
  margin: 0 0 26px;
  overflow-x: auto;
  border-bottom: 1px solid var(--faq-line);
  scrollbar-width: thin;
}
body:has(main.faq-page) .faq-page-category-tab {
  position: relative;
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 0 14px;
  border: 0 !important;
  background: transparent !important;
  color: #687a96 !important;
  cursor: pointer;
  font: 800 13px/1 Manrope, Arial, sans-serif;
  white-space: nowrap;
  transition: color .18s ease;
}
body:has(main.faq-page) .faq-page-category-tab::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: transparent;
  transition: background .18s ease;
}
body:has(main.faq-page) .faq-page-category-tab:hover,
body:has(main.faq-page) .faq-page-category-tab:focus-visible,
body:has(main.faq-page) .faq-page-category-tab.is-active {
  color: var(--faq-blue) !important;
}
body:has(main.faq-page) .faq-page-category-tab.is-active::after { background: var(--faq-blue); }
body:has(main.faq-page) .faq-page-list {
  border-top: 1px solid var(--faq-line);
  background: #fff !important;
}
body:has(main.faq-page) .faq-page-item {
  margin: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--faq-line) !important;
  background: #fff !important;
  box-shadow: none !important;
}
body:has(main.faq-page) .faq-page-item[hidden] { display: none !important; }
body:has(main.faq-page) .faq-page-item summary {
  display: flex;
  min-height: 68px;
  box-sizing: border-box;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0 !important;
  color: var(--faq-ink) !important;
  cursor: pointer;
  font: 700 15px/1.45 Manrope, Arial, sans-serif !important;
  list-style: none;
}
body:has(main.faq-page) .faq-page-item summary::-webkit-details-marker { display: none; }
body:has(main.faq-page) .faq-page-item summary:hover,
body:has(main.faq-page) .faq-page-item summary:focus-visible { color: var(--faq-blue) !important; }
body:has(main.faq-page) .faq-page-toggle-icon {
  width: 20px !important;
  height: 20px !important;
  flex: 0 0 20px;
  color: var(--faq-blue) !important;
  transition: transform .2s ease;
}
body:has(main.faq-page) .faq-page-item[open] .faq-page-toggle-icon { transform: rotate(45deg); }
body:has(main.faq-page) .faq-page-answer {
  max-width: 780px;
  padding: 0 42px 22px 0 !important;
  color: var(--faq-copy) !important;
  font-size: 14px;
  line-height: 1.7;
}
body:has(main.faq-page) .faq-page-answer p { margin: 0 !important; color: inherit !important; }
body:has(main.faq-page) .faq-page-category-tab:focus-visible,
body:has(main.faq-page) .faq-page-item summary:focus-visible { outline: 3px solid rgba(7, 87, 232, .3); outline-offset: 3px; }

@media (max-width: 760px) {
  body:has(main.faq-page) .page-hero { min-height: 286px !important; padding: 52px 0 42px !important; }
  body:has(main.faq-page) .page-hero .content-wrap { width: calc(100% - 32px); display: block; }
  body:has(main.faq-page) .page-hero h1 { font-size: 54px !important; }
  body:has(main.faq-page) .page-hero-status { width: max-content; min-width: 0; margin-top: 24px; }
  body:has(main.faq-page) .secondary-section { padding: 42px 0 62px !important; }
  body:has(main.faq-page) .secondary-section > .content-narrow { width: calc(100% - 32px); }
  body:has(main.faq-page) .faq-page-content > h2 { font-size: 36px !important; }
  body:has(main.faq-page) .faq-page-category-tabs {
    column-gap: 22px;
    row-gap: 0;
    flex-wrap: wrap;
    margin-bottom: 18px;
    overflow-x: visible;
  }
  body:has(main.faq-page) .faq-page-category-tab { min-height: 44px; padding-bottom: 12px; font-size: 12px; }
  body:has(main.faq-page) .faq-page-item summary { min-height: 62px; padding: 18px 0 !important; font-size: 14px !important; }
  body:has(main.faq-page) .faq-page-answer { padding-right: 32px !important; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  body:has(main.faq-page) .faq-page-category-tab,
  body:has(main.faq-page) .faq-page-category-tab::after,
  body:has(main.faq-page) .faq-page-toggle-icon { transition: none !important; }
}

/* Compact FAQ category rail. Existing category buttons and their JS keys stay
 * intact; the rail scrolls horizontally instead of breaking its grouping into
 * a visually disconnected second row on a 390px viewport. */
@media (max-width: 760px) {
  body:has(main.faq-page) .faq-page-category-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overscroll-behavior-x: contain;
    /* The rail remains touch/keyboard-scrollable, but the browser's native
     * scrollbar consumes visual space and breaks the compact master rhythm. */
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-padding-inline: 2px;
    -webkit-overflow-scrolling: touch;
  }

  body:has(main.faq-page) .faq-page-category-tabs::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  body:has(main.faq-page) .faq-page-category-tab {
    flex: 0 0 auto;
  }
}
