/* Shared FAQ components; no styles outside the public FAQ and portal module. */
.faq-page,
.faq-screen {
  --faq-ink: #193f49;
  --faq-muted: #536d75;
  --faq-teal: #246f7c;
  --faq-line: #d8e5e7;
  --faq-soft: #f2f8f8;
  color: var(--faq-ink);
  min-width: 0;
}
.faq-page {
  max-width: 1040px;
  padding-top: 36px;
  padding-bottom: 64px;
}
.faq-page .faq-back {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--faq-teal);
  font-size: 0.95rem;
  text-underline-offset: 4px;
}
.faq-page .faq-page-heading {
  max-width: 720px;
  margin-bottom: 26px;
}
.faq-page .faq-page-heading h1 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.15;
}
.faq-page .faq-page-heading p:last-child {
  margin-bottom: 0;
  color: var(--faq-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}
.faq-content {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.faq-item {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--faq-line, #d8e5e7);
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}
.faq-item > .faq-question {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  padding: 18px 22px;
  color: var(--faq-ink, #193f49);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.faq-item > .faq-question::-webkit-details-marker {
  display: none;
}
.faq-item > .faq-question::after {
  content: '+';
  flex: 0 0 auto;
  color: var(--faq-teal, #246f7c);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
}
.faq-item[open] {
  border-color: #a8c9ce;
}
.faq-item[open] > .faq-question::after {
  content: '−';
}
.faq-item > .faq-question:hover {
  background: var(--faq-soft, #f2f8f8);
}
.faq-item > .faq-question:focus-visible,
.faq-tools .faq-toggle-all:focus-visible,
.faq-page a:focus-visible {
  outline: 3px solid #b84922;
  outline-offset: 3px;
}
.faq-item > .faq-question:focus-visible {
  outline-offset: -4px;
}
.faq-answer {
  max-width: 80ch;
  padding: 0 22px 20px;
  color: var(--faq-muted, #536d75);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.faq-answer p,
.faq-answer ul,
.faq-answer ol {
  margin: 0 0 12px;
}
.faq-answer :last-child {
  margin-bottom: 0;
}
.faq-answer a {
  color: var(--faq-teal, #246f7c);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.faq-tools .faq-toggle-all {
  min-height: 40px;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid var(--faq-line, #d8e5e7);
  border-radius: 999px;
  background: #fff;
  color: var(--faq-ink, #193f49);
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.4;
  cursor: pointer;
}
.faq-page .faq-help {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--faq-line);
  border-radius: 16px;
  background: var(--faq-soft);
}
.faq-page .faq-help h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  line-height: 1.4;
}
.faq-page .faq-help p {
  max-width: 70ch;
  margin: 0 0 16px;
  color: var(--faq-muted);
}
.faq-page .faq-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
}
.faq-page .faq-page-actions a {
  font-weight: 600;
}
@media (max-width: 640px) {
  .faq-page {
    padding-top: 28px;
    padding-bottom: 40px;
  }
  .faq-page .faq-back {
    margin-bottom: 20px;
  }
  .faq-item > .faq-question {
    gap: 12px;
    min-height: 54px;
    padding: 16px;
  }
  .faq-answer {
    padding: 0 16px 16px;
  }
  .faq-page .faq-help {
    padding: 18px;
  }
  .faq-page .faq-page-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
}
