/* ==============================================================
   USWDS Accordion — accordion package only.
   Real USWDS accordion styles extracted from the full bundle,
   with normalize and all other components removed. Toggle icons
   are intentionally omitted (the theme supplies its own).
   Driven by the real USWDS JS in dist/js/.
   https://designsystem.digital.gov/components/accordion/
   ============================================================== */

/* Collapsed panels. USWDS's reset hid these via a global [hidden]
   rule; included here so the accordion works without normalize. */
.usa-accordion__content[hidden] {
  display: none;
}

.usa-accordion {
  color: #1b1b1b;
  margin: 0;
  padding: 0;
  width: 100%;
  list-style-type: none;
  font-family: Source Sans Pro Web, Helvetica Neue, Helvetica, Roboto, Arial, sans-serif;
  font-size: 1.06rem;
  line-height: 1.5;
}
.usa-accordion > li {
  margin-bottom: 0;
  max-width: unset;
}
.usa-accordion > ul li ul {
  list-style: disc;
}
.usa-accordion > ul li ul > li > ul {
  list-style: circle;
}
.usa-accordion > ul li ul > li > ul > li > ul {
  list-style: square;
}
.usa-accordion + .usa-accordion,
.usa-accordion + .usa-accordion--bordered {
  margin-top: 0.5rem;
}

.usa-accordion--bordered .usa-accordion__content {
  border-bottom: 0.25rem solid #f0f0f0;
  border-left: 0.25rem solid #f0f0f0;
  border-right: 0.25rem solid #f0f0f0;
  padding-bottom: 1rem;
}
.usa-accordion--bordered .usa-accordion__heading {
  margin-bottom: 0;
}

.usa-accordion__heading,
.usa-prose .usa-accordion__heading {
  font-family: Source Sans Pro Web, Helvetica Neue, Helvetica, Roboto, Arial, sans-serif;
  font-size: 1.06rem;
  line-height: 0.9;
  margin: 0;
}
.usa-accordion__heading:not(:first-child),
.usa-prose .usa-accordion__heading:not(:first-child) {
  margin-top: 0.5rem;
}

.usa-accordion__content {
  color: #1b1b1b;
  background-color: white;
  margin-top: 0;
  overflow: auto;
  padding: 1rem 1.25rem calc(1rem - 0.25rem) 1.25rem;
}
.usa-accordion__content > *:first-child {
  margin-top: 0;
}
.usa-accordion__content > *:last-child {
  margin-bottom: 0;
}

.usa-accordion__button {
  margin: 0;
  padding: 1rem 1.25rem;
  width: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  font-weight: 700;
  color: #1b1b1b;
  background-color: #f0f0f0;
}
.usa-accordion__button:hover {
  color: #1b1b1b;
  background-color: #dfe1e2;
  text-decoration: none;
}
.usa-accordion__button:focus {
  outline: 0.25rem solid #2491ff;
  outline-offset: 0;
}
