/* =============================================
   Demodex Solutions — FAQ Knowledge Base Stylesheet
   Design system matches main landing page theme
   ============================================= */

:root {
  --cream: #F5F5F2;
  --white: #FFFFFF;
  --grey-bg: #F0F0ED;
  --charcoal: #1A1A1A;
  --dark: #111111;
  --text: #1A1A1A;
  --text-muted: #6B7280;
  --text-light: #888888;
  --border: #E5E5E0;
  --accent: #8B2942;
  --accent-light: #FDF2F4;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-btn: 50px;
  --transition: 0.3s ease;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --container: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background-color: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity var(--transition), color var(--transition);
}

a:hover {
  opacity: 0.85;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Container & Layout Utility ── */
.faq-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Header ── */
.faq-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.03);
}

.faq-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.faq-header__logo img {
  height: 32px;
  width: auto;
}

.faq-header__nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.faq-header__nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  position: relative;
}

.faq-header__nav a.active {
  color: var(--accent);
  font-weight: 600;
}

.faq-header__nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

.faq-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.faq-header__back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--charcoal);
  padding: 8px 18px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.faq-header__back-btn:hover {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}

.faq-header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.faq-header__burger span {
  width: 22px;
  height: 2px;
  background: var(--charcoal);
}

/* ── Mobile Nav ── */
.faq-mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 999;
  padding: 100px 32px 40px;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

.faq-mobile-nav.open {
  display: flex;
}

.faq-mobile-nav a {
  font-size: 18px;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

/* ── Breadcrumb ── */
.faq-breadcrumb {
  padding: 16px 0;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.faq-breadcrumb__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.faq-breadcrumb a:hover {
  color: var(--accent);
}

.faq-breadcrumb__sep {
  color: #bbb;
}

/* ── Hero Search Section ── */
.faq-hero {
  background: var(--cream);
  padding: 64px 0 56px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.faq-hero__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 6px 16px;
  border-radius: var(--radius-btn);
  margin-bottom: 16px;
}

.faq-hero__title {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.15;
  margin-bottom: 16px;
}

.faq-hero__subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
}

/* Search Box */
.faq-search-bar {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}

.faq-search-bar__input {
  width: 100%;
  height: 58px;
  padding: 0 56px 0 52px;
  font-size: 16px;
  color: var(--charcoal);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  outline: none;
  transition: all var(--transition);
}

.faq-search-bar__input:focus {
  border-color: var(--charcoal);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.faq-search-bar__icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  pointer-events: none;
}

.faq-search-bar__clear {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  color: #999;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition);
}

.faq-search-bar__clear:hover {
  background: #eee;
  color: var(--charcoal);
}

.faq-search-bar__clear.visible {
  display: flex;
}

/* Quick Tags */
.faq-quick-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.faq-quick-tags__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.faq-quick-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 20px;
  transition: all var(--transition);
}

.faq-quick-tag:hover {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}

/* ── Live Search Results Overlay Panel ── */
.faq-search-results {
  max-width: 680px;
  margin: 16px auto 0;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  border: 1px solid var(--border);
  max-height: 480px;
  overflow-y: auto;
  text-align: left;
  display: none;
}

.faq-search-results.active {
  display: block;
}

.faq-search-item {
  display: block;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.faq-search-item:last-child {
  border-bottom: none;
}

.faq-search-item:hover {
  background: var(--cream);
}

.faq-search-item__category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.faq-search-item__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.faq-search-item__snippet {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Category Cards Grid (Hub Page) ── */
.faq-categories-section {
  padding: 80px 0;
}

.faq-section-title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 400;
  color: var(--charcoal);
  text-align: center;
  margin-bottom: 12px;
}

.faq-section-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  text-align: center;
  max-width: 540px;
  margin: 0 auto 56px;
}

.faq-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.faq-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}

.faq-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

.faq-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.faq-card__icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal);
}

.faq-card__icon-box svg {
  width: 26px;
  height: 26px;
}

.faq-card__badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 12px;
  border-radius: 20px;
}

.faq-card__title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 12px;
}

.faq-card__desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.faq-card__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.faq-card__links li a {
  font-size: 13px;
  font-weight: 500;
  color: var(--charcoal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition);
}

.faq-card__links li a::before {
  content: '•';
  color: var(--accent);
  font-size: 14px;
}

.faq-card__links li a:hover {
  color: var(--accent);
}

.faq-card__footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.faq-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.faq-card__btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.faq-card:hover .faq-card__btn svg {
  transform: translateX(4px);
}

/* Full Width FAQ Card Style */
.faq-card.faq-card--fullwidth {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--cream);
  border-color: var(--border);
  padding: 40px;
}

.faq-card.faq-card--fullwidth .faq-card__links-panel {
  background: var(--white);
  padding: 28px 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.02);
}

.faq-card.faq-card--fullwidth .faq-card__links-panel h4 {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--charcoal);
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.faq-card.faq-card--fullwidth .faq-card__links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (max-width: 1024px) {
  .faq-card.faq-card--fullwidth {
    grid-column: span 2;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px;
  }
}

@media (max-width: 768px) {
  .faq-card.faq-card--fullwidth {
    grid-column: span 1 !important;
    padding: 24px 16px;
  }
  
  .faq-card.faq-card--fullwidth .faq-card__links-panel {
    padding: 20px 16px;
  }
}

/* ── Dedicated Products Grid Section ── */
.faq-products-highlight {
  background: var(--cream);
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.faq-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.faq-product-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}

.faq-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.06);
}

.faq-product-card__tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.faq-product-card__title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 12px;
}

.faq-product-card__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.faq-product-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 500;
  background: var(--charcoal);
  color: var(--white);
  border-radius: 50px;
  margin-top: auto;
  transition: background var(--transition);
}

.faq-product-card__link:hover {
  background: #333;
}

/* ── Content Article Page Layout (Sidebar + Main Article) ── */
.faq-content-layout {
  padding: 60px 0 100px;
}

.faq-layout-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
}

/* Sticky Sidebar Table of Contents */
.faq-sidebar {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px 20px;
  z-index: 950;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.15) transparent;
}

.faq-sidebar::-webkit-scrollbar {
  width: 4px;
}

.faq-sidebar::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
  border-radius: 4px;
}

.faq-sidebar__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.faq-toc {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.faq-toc__link {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 8px;
  transition: all var(--transition);
}

.faq-toc__link:hover {
  color: var(--charcoal);
  background: rgba(0,0,0,0.04);
}

.faq-toc__link.active {
  color: var(--accent);
  background: var(--accent-light);
  font-weight: 600;
}

/* Main Article Content */
.faq-article {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.faq-topic-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  scroll-margin-top: 90px;
}

.faq-topic__header {
  margin-bottom: 24px;
}

.faq-topic__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.faq-topic__title {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.25;
}

/* Figure & Image */
.faq-topic__figure {
  margin: 28px 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--cream);
}

.faq-topic__img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  object-position: center;
}

.faq-topic__caption {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  padding: 12px 18px;
  background: var(--cream);
  border-top: 1px solid var(--border);
}

/* Topic Body Text & Paragraphs */
.faq-topic__body p {
  font-size: 15.5px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 18px;
}

.faq-topic__body p:last-child {
  margin-bottom: 0;
}

/* Key Facts Card Box */
.faq-key-facts {
  background: var(--cream);
  border: 1px solid var(--border);
  border-left: 4px solid var(--charcoal);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 32px 0 24px;
}

.faq-key-facts__title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-key-facts__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-key-facts__list li {
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.6;
}

.faq-key-facts__icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Educational Disclaimer Note */
.faq-disclaimer {
  font-size: 12.5px;
  color: var(--text-muted);
  background: #F9F9F8;
  border: 1px dashed var(--border);
  padding: 14px 20px;
  border-radius: 8px;
  margin-top: 24px;
  line-height: 1.6;
}

/* Article Footer & Back to top */
.faq-topic__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.faq-top-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: var(--text-muted);
}

.faq-top-link:hover {
  color: var(--charcoal);
}

/* ── Accordion Q&As (For Products Deep-Dive Pages) ── */
.faq-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.faq-accordion-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-accordion-item.active {
  border-color: var(--charcoal);
}

.faq-accordion-header {
  width: 100%;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--charcoal);
  cursor: pointer;
  background: transparent;
  transition: background var(--transition);
}

.faq-accordion-header:hover {
  background: var(--cream);
}

.faq-accordion-icon {
  width: 22px;
  height: 22px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-accordion-item.active .faq-accordion-icon {
  transform: rotate(180deg);
  color: var(--charcoal);
}

.faq-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-accordion-item.active .faq-accordion-body {
  max-height: 1000px;
  padding: 0 28px 24px;
}

.faq-accordion-body p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.faq-accordion-body p:last-child {
  margin-bottom: 0;
}

/* ── Product Detail Layout & Ingredients explanations ── */
.faq-product-detail-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 28px;
}

.faq-product-detail__image-container {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-product-detail__image {
  max-width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  border-radius: 8px;
  mix-blend-mode: multiply; /* Helps blend white-background images with the card */
}

.faq-product-ingredients-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-ingredient-detail-item {
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.faq-ingredient-detail-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-ingredient-detail-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.faq-ingredient-detail-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .faq-product-detail-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .faq-product-detail__image-container {
    max-width: 200px;
    margin: 0 auto;
    padding: 12px;
  }
}


/* ── Footer ── */
.faq-footer {
  background: var(--charcoal);
  color: var(--white);
  padding: 64px 0 40px;
  margin-top: 100px;
}

.faq-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 24px;
}

.faq-footer__brand p {
  font-size: 14px;
  color: #aaa;
  margin-top: 10px;
  max-width: 420px;
}

.faq-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
}

.faq-footer__links a {
  font-size: 14px;
  color: #ccc;
  white-space: nowrap;
}

.faq-footer__links a:hover {
  color: var(--white);
}

.faq-footer__bottom {
  text-align: center;
  font-size: 13px;
  color: #888;
}

/* ── Floating Back to Top Button ── */
.faq-float-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}

.faq-float-top.visible {
  opacity: 1;
  pointer-events: all;
}

.faq-float-top:hover {
  transform: translateY(-4px);
  background: #333;
}

/* ── Responsive Breakpoints ── */
.faq-products-deepdive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.faq-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 1024px) {
  .faq-topic-section {
    scroll-margin-top: 135px;
  }

  .faq-cards-grid,
  .faq-products-grid,
  .faq-products-deepdive-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq-layout-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Sticky Horizontal Section Bar on Mobile & Tablet */
  .faq-sidebar {
    position: sticky;
    top: 76px;
    z-index: 950;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    max-height: none;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .faq-sidebar__title {
    font-size: 11px;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
    padding-bottom: 0;
    border-bottom: none;
    color: var(--text-muted);
  }

  .faq-toc {
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
    max-width: 100%;
    padding: 2px 2px 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .faq-toc::-webkit-scrollbar {
    display: none;
  }

  .faq-toc__link {
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 20px;
    background: var(--white);
    border: 1px solid var(--border);
    flex-shrink: 0;
    transition: all var(--transition);
  }

  .faq-toc__link.active {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    font-weight: 600;
  }
}

@media (max-width: 768px) {
  .faq-container {
    padding: 0 12px;
  }

  .faq-content-layout {
    padding: 24px 0 60px;
  }

  .faq-header__nav,
  .faq-header__actions .faq-header__back-btn {
    display: none;
  }

  .faq-header__burger {
    display: flex;
  }

  .faq-hero {
    padding: 36px 0 28px;
  }

  .faq-hero__title {
    font-size: 32px;
  }

  .faq-cards-grid,
  .faq-products-grid,
  .faq-products-deepdive-grid,
  .faq-overview-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .faq-footer__inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 24px;
  }

  .faq-footer__brand p {
    margin: 10px auto 0;
  }

  .faq-footer__links {
    justify-content: center;
    gap: 12px 16px;
  }

  .faq-article {
    gap: 28px;
  }

  .faq-topic-section {
    padding: 20px 14px;
    border-radius: 14px;
  }

  .faq-key-facts {
    padding: 16px 14px;
    margin: 20px 0 16px;
  }

  .faq-topic__title {
    font-size: 24px;
  }

  .faq-accordion-header {
    font-size: 18px;
    padding: 16px 14px;
  }

  .faq-accordion-item.active .faq-accordion-body {
    padding: 0 14px 16px;
  }
}

@media (max-width: 480px) {
  .faq-container {
    padding: 0 10px;
  }

  .faq-topic-section {
    padding: 18px 12px;
  }

  .faq-key-facts {
    padding: 14px 12px;
  }
}
