/* Shared, JavaScript-free FAQ patterns for the home and service pages. */
.home-faq, .faq-page-content { background: var(--lilac); }
.faq-page-content { --faq-header-offset: 106px; --faq-anchor-offset: 250px; }
.home-faq-heading, .faq-group-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}
.home-faq-heading { margin-bottom: 34px; }
.home-faq-heading p:not(.section-label) { margin-top: 18px; color: var(--muted); }
.home-faq-heading .text-link { flex-shrink: 0; }
.faq-list { display: grid; gap: 10px; }
.faq-item { background: #fff; border-radius: 8px; }
.faq-item summary {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 18px 24px;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-letter { color: var(--purple); font-family: Arial, sans-serif; font-size: 18px; font-weight: 500; }
.faq-question-content { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
.faq-chip { max-width: 100%; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.faq-chip--procedures { background: #eee4f3; color: #58316a; }
.faq-chip--payroll { background: #e2edf6; color: #315674; }
.faq-chip--consultation { background: #f4e5eb; color: #77435c; }
.faq-chip--rules { background: #e6efe8; color: #41684d; }
.faq-chip--audit { background: #f3eadc; color: #725731; }
.faq-chip--subsidies { background: #f7eed0; color: #735b24; }
.faq-chip--permits { background: #dfeeea; color: #305f59; }
.faq-chip--evaluation { background: #f7e8df; color: #7a4c3b; }
.faq-chip--other { background: #eceaf1; color: #595365; }
.faq-question { flex: 1 1 140px; min-width: 0; font-size: 16px; font-weight: 500; line-height: 1.8; }
.faq-toggle { display: grid; place-items: center; color: var(--purple); font-size: 25px; line-height: 1; }
.faq-toggle::before { content: "+"; }
.faq-item[open] .faq-toggle::before { content: "−"; }
.faq-answer { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 16px; padding: 0 68px 22px 24px; }
.faq-answer p { max-width: 720px; font-size: 16px; line-height: 1.9; }
.service-faq h2 { word-break: auto-phrase; text-wrap: pretty; }
.service-faq-suffix { display: inline-block; white-space: nowrap; }
.service-faq .faq-list { margin-top: 26px; }
.faq-more { margin-top: 20px; }
.faq-sticky { position: sticky; top: var(--faq-header-offset); z-index: 20; margin-top: 40px; padding-block: 12px; background: var(--lilac); box-shadow: 0 8px 20px rgba(49, 34, 57, .07); }
.faq-sticky-inner { display: flex; align-items: center; gap: 22px; }
.inner-page .faq-page-content .faq-category-heading { flex-shrink: 0; font-size: 22px; white-space: nowrap; }
.faq-category-nav { display: flex; flex: 1; flex-wrap: wrap; gap: 8px; min-width: 0; }
.faq-sticky-inner > .faq-category-nav { margin-top: 0; }
.faq-category-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  padding: 8px 12px;
  background: #fff;
  border-radius: 5px;
  color: var(--purple-dark);
  font-size: 14px;
  line-height: 1.6;
}
.faq-category-nav a span { color: var(--purple); }
.faq-category-nav a:hover { background: #f0e8f3; }
.faq-group { padding-top: 64px; }
.faq-page-content .faq-group { scroll-margin-top: var(--faq-anchor-offset); }
.faq-group-heading { margin-bottom: 24px; }
.faq-group-heading h2 { max-width: 700px; }
@media (max-width: 1000px) {
  .faq-page-content { --faq-header-offset: 68px; --faq-anchor-offset: 220px; }
  .faq-group { padding-top: 52px; }
}
@media (max-width: 700px) {
  .faq-page-content { --faq-header-offset: 76px; --faq-anchor-offset: 175px; }
  .home-faq-heading, .faq-group-heading { display: block; }
  .home-faq-heading { margin-bottom: 24px; }
  .home-faq-heading p:not(.section-label) { margin-top: 12px; }
  .home-faq-heading .text-link, .faq-group-heading .inner-link { margin-top: 12px; }
  .faq-item summary { grid-template-columns: 20px minmax(0, 1fr) 24px; gap: 10px; min-height: 64px; padding: 16px; }
  .faq-letter { font-size: 16px; }
  .faq-question-content { display: block; line-height: 1.8; }
  .faq-chip { display: inline-block; margin-right: 8px; vertical-align: middle; }
  .faq-chip--permits { display: block; width: fit-content; margin: 0 0 6px; }
  .faq-question, .faq-answer p { font-size: 15px; }
  .faq-answer { grid-template-columns: 20px minmax(0, 1fr); gap: 10px; padding: 0 50px 18px 16px; }
  .faq-sticky { margin-top: 28px; padding-block: 10px; }
  .faq-sticky-inner { display: block; }
  .inner-page .faq-page-content .faq-category-heading { font-size: 17px; }
  .faq-category-nav { flex-wrap: nowrap; gap: 8px; overflow-x: auto; overscroll-behavior-inline: contain; padding: 8px 0 5px; scrollbar-width: thin; }
  .faq-category-nav a { flex: 0 0 auto; min-height: 44px; font-size: 13px; white-space: nowrap; }
  .faq-category-nav::-webkit-scrollbar { height: 4px; }
  .faq-category-nav::-webkit-scrollbar-thumb { background: #c6b1d0; border-radius: 4px; }
  .faq-group { padding-top: 38px; }
  .faq-group-heading { margin-bottom: 18px; }
}
