/* Shared FAQ treatment. Load after the page's existing stylesheets. */
body .faq-section,
body.badger .faq-section.b-section {
  padding-block: clamp(3.25rem, 6vw, 5rem);
  color: var(--text-inv);
  background: var(--ink);
}

body .faq-section > .container,
body.badger .faq-section .b-faqw {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.4fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

/* The homepage keeps its existing inner wrapper. */
body .faq-section .b-faqw { grid-column: 1 / -1; }
body .faq-section .section-head,
body.badger .faq-section .b-faqw__side {
  position: static;
  max-width: none;
  margin: 0;
}

body .faq-section .section-head h2,
body.badger .faq-section .b-statement {
  max-width: 20ch;
  margin: 0 0 1.2rem;
  color: var(--text-inv);
  font-size: clamp(1.9rem, 2.8vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: -.035em;
}

body .faq-section .eyebrow,
body.badger .faq-section .b-label,
body .faq-section h2 em {
  color: var(--lime);
}

body .faq-section .section-head > p:not(.eyebrow),
body.badger .faq-section .b-faqw__note,
body.badger .faq-section .b-faqw__ask {
  max-width: 34ch;
  color: var(--text-inv-2);
  font-size: .97rem;
  line-height: 1.65;
}

body .faq-section .faq-section__contact,
body .faq-section .section-head .sg-text-link,
body.badger .faq-section .b-faqw__ask a {
  color: var(--lime);
  font-size: .92rem;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

body .faq-section .faq-section__contact,
body .faq-section .section-head .sg-text-link {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  margin-top: 1.2rem;
}

body .faq-section .faq {
  width: 100%;
  min-width: 0;
  max-width: none;
  border: 0;
}

body .faq-section .faq details {
  margin: 0;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid rgba(201, 233, 164, .16);
  border-radius: 0;
  background: transparent;
  transition: background-color .2s ease;
}

body .faq-section .faq details:first-child {
  border-top: 1px solid rgba(201, 233, 164, .16);
}

body .faq-section .faq details[open] {
  border-color: rgba(201, 233, 164, .22);
  background: rgba(201, 233, 164, .045);
}

/* Retire the previous decorative open-state rail. */
body .faq-section .faq details::after { display: none; }

body .faq-section .faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 68px;
  padding: 1.1rem 1.25rem;
  color: var(--text-inv);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.45;
  list-style: none;
  cursor: pointer;
  transition: color .2s ease;
}

body .faq-section .faq summary::-webkit-details-marker { display: none; }
body .faq-section .faq summary::marker { content: ""; }
body .faq-section .faq summary > svg,
body .faq-section .faq summary > .sg-faq__toggle { display: none; }

/* One consistent icon also covers questions that have no SVG in their markup. */
body .faq-section .faq summary::after {
  content: "";
  display: block;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(201, 233, 164, .3);
  border-radius: 50%;
  background-color: rgba(201, 233, 164, .065);
  background-image: linear-gradient(var(--lime), var(--lime)), linear-gradient(var(--lime), var(--lime));
  background-position: center;
  background-size: 10px 1.5px, 1.5px 10px;
  background-repeat: no-repeat;
  transition: background-color .2s ease, border-color .2s ease;
}

body .faq-section .faq summary:hover,
body .faq-section .faq details[open] > summary { color: var(--lime); }
body .faq-section .faq summary:hover::after { border-color: var(--lime); }
body .faq-section .faq details[open] > summary::after {
  background-color: rgba(201, 233, 164, .12);
  background-size: 10px 1.5px, 0 0;
}

body .faq-section .faq summary:focus-visible,
body .faq-section a:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}

body .faq-section .faq details > div {
  max-width: none;
  padding: 0 4.3rem 1.4rem 1.25rem;
  color: var(--text-inv-2);
  font-size: .98rem;
  line-height: 1.7;
}

body .faq-section .faq details > div p + p { margin-top: .85rem; }
body .faq-section .faq details > div a {
  color: var(--lime);
  text-underline-offset: 3px;
}

@media (max-width: 860px) {
  body .faq-section > .container,
  body.badger .faq-section .b-faqw {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  body .faq-section .section-head h2,
  body.badger .faq-section .b-statement { max-width: 22ch; }
  body .faq-section .section-head > p:not(.eyebrow),
  body.badger .faq-section .b-faqw__note,
  body.badger .faq-section .b-faqw__ask { max-width: 54ch; }
}

@media (max-width: 560px) {
  body .faq-section .faq summary {
    gap: 1rem;
    padding: 1rem .75rem;
    font-size: .98rem;
  }

  body .faq-section .faq details > div {
    padding: 0 .75rem 1.25rem;
    font-size: .95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body .faq-section .faq details,
  body .faq-section .faq summary,
  body .faq-section .faq summary::after { transition: none; }
}
