.faq-index,
.faq-post {
  max-width: 820px;
  margin: 0 auto 3rem;
  padding: 2.5rem 2rem 3rem;
  background: #ffffff;
  border-radius: 16px;
  /* Same flex-centering trap as .blog-post: stretch keeps wide content
     (tables) scrolling inside instead of pushing past the viewport. */
  align-self: stretch;
}

@media (max-width: 600px) {
  .faq-index,
  .faq-post {
    margin: 1.25rem 1rem 1rem;
    padding: 1.75rem 1.25rem 2.5rem;
  }
}

.faq-index h1,
.faq-post h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.faq-tagline {
  color: #71717b;
  font-size: 1.05rem;
  line-height: 1.55;
  margin: -1rem 0 1.5rem;
}

.faq-search {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  outline: none;
  margin-bottom: 1.5rem;
}

.faq-search:focus {
  border-color: rgba(47, 91, 255, 0.35);
  box-shadow: 0 0 0 4px rgba(47, 91, 255, 0.12);
}

.faq-cat {
  font-size: 1.2rem;
  margin: 1.75rem 0 0.5rem;
}

.faq-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.faq-list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid #f0f0f2;
}

.faq-list a {
  color: var(--text);
  text-decoration: none;
}

.faq-list a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.faq-related {
  background: var(--card-bg);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 2.25rem 0 0;
}

.faq-related__title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
}

.faq-related .faq-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-results {
  margin-bottom: 1rem;
  color: #71717b;
}

.faq-body {
  font-size: 1.05rem;
  line-height: 1.7;
}

.faq-body p,
.faq-body ul,
.faq-body ol {
  margin: 0 0 1.1rem;
}

.faq-body ul,
.faq-body ol {
  padding-left: 1.4rem;
}

.faq-body li {
  margin-bottom: 0.35rem;
}

.faq-body h2 {
  font-size: 1.3rem;
  margin: 1.75rem 0 0.6rem;
}

.faq-body a.external-link::after {
  content: "";
  display: inline-block;
  width: 0.68em;
  height: 0.68em;
  margin-left: 0.2em;
  vertical-align: 0.02em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7'/%3E%3Cpath d='M7 7h10v10'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7'/%3E%3Cpath d='M7 7h10v10'/%3E%3C/svg%3E") no-repeat center / contain;
}

.faq-back {
  margin: 1.5rem 0 0;
}

.faq-back a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.faq-support {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: #f6f7fb;
  border-radius: 12px;
  color: #3f3f46;
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-support a {
  color: var(--primary);
  font-weight: 600;
}

.contact-email {
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px dashed rgba(56, 100, 235, 0.5);
  white-space: nowrap;
}

