:root {
  --faq-bg: #f8fafc;
  --faq-panel: #ffffff;
  --faq-border: #dbe4ee;
  --faq-text: #0f172a;
  --faq-muted: #64748b;
  --faq-primary: #f97316;
  --faq-primary-dark: #ea580c;
  --faq-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
  --faq-shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.06);
}

body.faq-page {
  background: var(--faq-bg);
  color: var(--faq-text);
}

.faq-page .site-header {
  background: #ffffff;
  backdrop-filter: none;
  position: static;
  top: auto;
  z-index: auto;
}

.faq-page .site-nav a.is-active {
  color: var(--faq-primary-dark);
}

.faq-hero {
  padding-top: 28px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.faq-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 22px;
  align-items: start;
}

.faq-intro {
  margin: 14px 0 0;
  max-width: 58ch;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--faq-text);
}

.faq-intro-secondary {
  color: var(--faq-muted);
}

.faq-hero-panel {
  background: #ffffff;
  border: 1px solid var(--faq-border);
  box-shadow: var(--faq-shadow-soft);
  color: var(--faq-text);
}

.faq-hero-panel::before,
.faq-hero-panel::after {
  display: none;
  backdrop-filter: none;
}

.faq-hero-panel-grid {
  display: grid;
  gap: 12px;
}

.faq-stat-card {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(226, 232, 240, 0.9);
  display: grid;
  gap: 6px;
}

.faq-stat-card strong {
  font-size: 0.98rem;
  color: var(--faq-text);
}

.faq-stat-card span {
  color: #334155;
  line-height: 1.45;
}

.faq-tools {
  padding-top: 18px;
}

.faq-toolbar-card {
  border: 1px solid var(--faq-border);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 22px;
  box-shadow: var(--faq-shadow-soft);
  padding: 18px;
  display: grid;
  gap: 16px;
}

.faq-search-wrap {
  display: grid;
  gap: 10px;
}

.faq-search-label {
  font-weight: 800;
  color: var(--faq-text);
}

.faq-search-input {
  width: 100%;
  min-height: 56px;
  border-radius: 16px;
  border: 1px solid var(--faq-border);
  background: #ffffff;
  padding: 0 18px;
  font: inherit;
  color: var(--faq-text);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.faq-search-input:focus {
  outline: 0;
  border-color: rgba(249, 115, 22, 0.7);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.faq-filter-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.faq-filter-chip {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--faq-border);
  background: #ffffff;
  color: var(--faq-text);
  font: inherit;
  font-weight: 760;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.faq-filter-chip:hover {
  transform: translateY(-1px);
  box-shadow: var(--faq-shadow-soft);
}

.faq-filter-chip.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--faq-primary), var(--faq-primary-dark));
  color: #ffffff;
}

.faq-list-section {
  padding-top: 18px;
}

.faq-section-head {
  margin-bottom: 18px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  border-radius: 22px;
  border: 1px solid rgba(219, 228, 238, 0.94);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--faq-shadow-soft);
  padding: 16px 18px;
  scroll-margin-top: 108px;
}

.faq-item.is-target {
  border-color: rgba(249, 115, 22, 0.58);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12), var(--faq-shadow-soft);
}

.faq-item[hidden] {
  display: none;
}

.faq-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.faq-category-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 0.8rem;
  font-weight: 800;
}

.faq-direct-link {
  color: var(--faq-muted);
  font-weight: 800;
  padding: 6px 8px;
  border-radius: 10px;
}

.faq-direct-link:hover {
  color: var(--faq-primary-dark);
  background: rgba(249, 115, 22, 0.08);
}

.faq-question-title {
  margin: 0;
}

.faq-question-button {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
  font: inherit;
  font-weight: 830;
  font-size: clamp(1.02rem, 1.7vw, 1.16rem);
  line-height: 1.35;
  color: var(--faq-text);
  cursor: pointer;
}

.faq-question-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.faq-question-icon::before,
.faq-question-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--faq-primary-dark);
  transform: translate(-50%, -50%);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.faq-question-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-question-button[aria-expanded="true"] .faq-question-icon::after {
  transform: translate(-50%, -50%) rotate(90deg) scaleX(0);
  opacity: 0;
}

.faq-answer {
  height: 0;
  overflow: hidden;
  transition: height 0.28s ease;
}

.faq-answer-inner {
  padding-top: 4px;
  color: var(--faq-muted);
  line-height: 1.65;
}

.faq-answer-inner p {
  margin: 0;
}

.faq-answer-inner p + p {
  margin-top: 12px;
}

.faq-answer-inner a {
  color: var(--faq-primary-dark);
  font-weight: 760;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.faq-no-results {
  margin: 16px 0 0;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px dashed rgba(148, 163, 184, 0.56);
  background: rgba(255, 255, 255, 0.74);
  color: var(--faq-muted);
  text-align: center;
}

.faq-cta {
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.92), rgba(255, 255, 255, 0.96));
  border-color: rgba(249, 115, 22, 0.18);
}

@media (max-width: 920px) {
  .faq-hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .faq-page .site-header {
    position: static;
  }

  .faq-toolbar-card,
  .faq-item {
    border-radius: 18px;
  }

  .faq-item {
    padding: 14px 15px;
  }

  .faq-question-button {
    align-items: flex-start;
  }
}