/* ===== SLR FAQ Module ===== */

.slr-faq-module-wrapper {
  width: 100%;
}

.slr-faq-module {
  width: 100%;
}

/* Search */
.slr-faq-search {
  position: relative;
  margin-bottom: 2rem;
}

.slr-faq-search::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat center / contain;
  pointer-events: none;
}

.slr-faq-search__input {
  width: 100%;
  padding: 12px 44px 12px 16px;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  outline: none;
  box-sizing: border-box;
  background: #fff;
}

.slr-faq-search__input:focus {
  border-color: #6b7280;
  box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.15);
}

/* Two-column layout */
.slr-faq-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 3rem;
  align-items: start;
}

/* Table of Contents */
.slr-faq-toc {
  position: sticky;
  top: 2rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.25rem;
}

.slr-faq-toc__heading {
  font-size: var(--)
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  margin: 0 0 0.75rem;
}

#main-content .slr-faq-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.slr-faq-toc__list li {
  list-style-type: none;
}

.slr-faq-toc__item a,
.slr-faq-toc__subitem a {
  display: block;
  padding: 3px 0;
  font-size: 0.9rem;
  color: #374151;
  text-decoration: none;
  transition: color 0.15s;
}

.slr-faq-toc__item a:hover,
.slr-faq-toc__subitem a:hover {
  color: #111827;
}

.slr-faq-toc__category {
  margin-top: 0.75rem;
}

.slr-faq-toc__category-label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  color: #374151;
  margin-bottom: 0.25rem;
}

.slr-faq-toc__subitems {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.75rem;
}

/* FAQ Content */
.slr-faq-content {
  min-width: 0;
}

/* Category grouping */
.slr-faq-category__heading {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 2.5rem 0 1.25rem;
  padding-top: 1.5rem;
  border-top: 3px solid #d1d5db;
}

.slr-faq-category:first-child .slr-faq-category__heading {
  margin-top: 0;
}

/* FAQ Section */
.slr-faq-section {
  margin-bottom: 2.5rem;
}

.slr-faq-section__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
}

/* Accordion */
.slr-faq-item {
  border-bottom: 1px solid #e5e7eb;
}

.slr-faq-item--hidden {
  display: none;
}

.slr-faq-item__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem 0;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  color: #111827;
  cursor: pointer;
  line-height: 1.4;
}

.slr-faq-item__question::after {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.slr-faq-item__question[aria-expanded="true"]::after {
  transform: rotate(-135deg);
}

.slr-faq-item__answer {
  padding: 0 0 1rem 0;
  color: #374151;
  line-height: 1.6;
}

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

/* Search visibility helpers */
.slr-faq-section--hidden,
.slr-faq-category--hidden {
  display: none;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Mobile */
@media (max-width: 768px) {
  .slr-faq-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .slr-faq-toc {
    position: static;
  }

  .slr-faq-category__heading {
    font-size: 1.3rem;
  }
}
