html:has(body.page-faq) {
  min-height: 100%;
  height: auto;
  background: #fff;
}
body.page-faq {
  margin: 0;
  min-height: 100dvh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--ab-text);
  font-family: var(--ab-font);
  overflow-x: clip;
}
body.page-faq .page-header,
body.page-faq .site-header,
body.page-faq .page-hero {
  flex: 0 0 auto;
}
body.page-faq .page-container {
  flex: 1 1 auto;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 8px 16px 28px;
  box-sizing: border-box;
}
body.page-faq .page-hero h1 {
  text-transform: none;
}
body.page-faq .gv-legal-footnote {
  margin-top: auto;
  margin-bottom: 0;
  flex-shrink: 0;
  background: #fff;
}

.faq-page:not(.is-ready) #faq-cats,
.faq-page:not(.is-ready) #faq-list {
  min-height: 120px;
}

.faq-search-wrap {
  margin: 0 auto 20px;
  max-width: 720px;
}
.faq-search-label {
  display: block;
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--ab-font);
}
.faq-search {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--ab-border, #ddd);
  border-radius: 14px;
  padding: 14px 16px;
  font-family: var(--ab-font);
  font-size: 16px;
  color: var(--ab-text);
  background: #fff;
}
.faq-search:focus {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.faq-cats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-cat-block {
  border: 1px solid var(--ab-border, #ddd);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq-cat-block:hover {
  border-color: #bbb;
}
.faq-cat-block.is-open {
  border-color: #111;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}
.faq-cat-block.is-open:hover {
  border-color: #111;
}
.faq-cat {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 76px;
  padding: 14px 16px;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  font-family: var(--ab-font);
  cursor: pointer;
}
.faq-cat:hover .faq-cat__name {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq-cat__emoji {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f4f4f4;
  font-family: var(--ab-font-emoji);
  font-size: 22px;
  line-height: 1;
}
.faq-cat__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.faq-cat__name {
  font-weight: 700;
  font-size: 15px;
}
.faq-cat__n {
  font-size: 13px;
  color: var(--ab-text-muted, #666);
}
.faq-cat__chev {
  margin-left: auto;
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid #111;
  border-bottom: 2px solid #111;
  transform: rotate(45deg);
  transition: transform 0.28s ease;
}
.faq-cat-block.is-open .faq-cat__chev {
  transform: rotate(-135deg);
}

.faq-cat-items {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s ease;
}
.faq-cat-block.is-open .faq-cat-items {
  grid-template-rows: 1fr;
}
.faq-cat-items__in {
  overflow: hidden;
  min-height: 0;
}
.faq-cat-items__in > .faq-item:first-child {
  border-top: 1px solid var(--ab-border, #eee);
}

.faq-item {
  border-bottom: 1px solid var(--ab-border, #eee);
}
.faq-item:last-child {
  border-bottom: 0;
}
.faq-item__cat {
  display: block;
  font-size: 12px;
  color: var(--ab-text-faint, #888);
  margin: 10px 16px 0;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--ab-font);
  font-size: 16px;
  font-weight: 500;
  color: var(--ab-text);
}
.faq-question__icon {
  flex: none;
  width: 18px;
  height: 18px;
  position: relative;
}
.faq-question__icon::before,
.faq-question__icon::after {
  content: "";
  position: absolute;
  background: #111;
  transition: transform 0.28s ease, opacity 0.28s ease;
}
.faq-question__icon::before {
  top: 8px;
  left: 2px;
  right: 2px;
  height: 2px;
}
.faq-question__icon::after {
  top: 2px;
  bottom: 2px;
  left: 8px;
  width: 2px;
}
.faq-item.is-open .faq-question__icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

body.page-faq .faq-answer,
.faq-answer {
  display: block;
  max-height: none;
  height: 0;
  overflow: hidden;
  transition: height 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-answer__inner {
  overflow: hidden;
  padding: 4px 16px 16px;
  color: var(--ab-text-soft, #333);
  font-size: 15px;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.faq-item.is-open .faq-answer__inner {
  opacity: 1;
  transform: none;
}
.faq-answer__inner .faq-cover-cards,
.faq-answer__inner .gv-cover-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 18px;
}
.faq-answer__inner img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.faq-page.is-search .faq-cats {
  display: none;
}
.faq-empty {
  padding: 12px 0 24px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ab-text-muted, #555);
}
.faq-empty a {
  color: inherit;
  font-weight: 600;
}
.faq-hit {
  background: #fff3a3;
  color: inherit;
  padding: 0 1px;
}

@media (max-width: 430px) {
  .faq-cat { min-height: 68px; padding: 12px; }
  .faq-cat__name { font-size: 14.5px; }
  .faq-cat__emoji { width: 36px; height: 36px; font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-cat-block,
  .faq-cat__chev,
  .faq-cat-items,
  .faq-answer,
  .faq-answer__inner,
  .faq-question__icon::before,
  .faq-question__icon::after {
    transition: none;
  }
}
