/*
 * Paragraph "Section accordion"
 * @file
 * CSS for the section accordion paragraph type.
 */
.paragraph--type--section-accordion {
  padding: 2rem 0;
}
/* Container */
.paragraph--type--section-accordion.section-color-white {
  background: white;
  color: var(--color-echo-blue);
}
.paragraph--type--section-accordion.section-color-blue {
  background: var(--color-echo-blue);
  color: white;
}
/* Headings and paragraphs */
.paragraph--type--section-accordion.section-color-blue h2,
.paragraph--type--section-accordion.section-color-blue h3,
.paragraph--type--section-accordion.section-color-blue h4,
.paragraph--type--section-accordion.section-color-blue h5,
.paragraph--type--section-accordion.section-color-blue h6,
.paragraph--type--section-accordion.section-color-blue p
{
  color: white;
}
.paragraph--type--section-accordion.section-color-white h2,
.paragraph--type--section-accordion.section-color-white h3,
.paragraph--type--section-accordion.section-color-white h4,
.paragraph--type--section-accordion.section-color-white h5,
.paragraph--type--section-accordion.section-color-white h6,
.paragraph--type--section-accordion.section-color-white p
{
  color: var(--color-echo-blue);
}
/* Accordion header */
.acc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  cursor: pointer;
  user-select: none;
  gap: 12px;
}
.paragraph--type--section-accordion.section-color-blue .acc-header:hover {
  background: white;
}
.paragraph--type--section-accordion.section-color-white .acc-header:hover {
  background: var(--color-echo-blue);
}
.paragraph--type--section-accordion.section-color-blue .acc-header:hover .acc-header--title {
  color: var(--color-echo-blue);
}
.paragraph--type--section-accordion.section-color-white .acc-header:hover .acc-header--title {
  color: white;
}
.paragraph--type--section-accordion .acc-header--title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2rem;
  margin: 0;
}
/* Accordion item */
.paragraph--type--section-accordion .acc-item {
  border-width: 2px;
  border-style: solid;
  margin-bottom: 1rem;
  overflow: hidden;
}
.paragraph--type--section-accordion.section-color-white .acc-item {
  border-color: var(--color-echo-blue);
}
.paragraph--type--section-accordion.section-color-blue .acc-item {
  border-color: white;
}
/* Toggle button */
.acc-toggle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border-width: 2px;
  border-style: solid;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.paragraph--type--section-accordion.section-color-blue .acc-toggle {
  border-color: white;
}
.paragraph--type--section-accordion.section-color-white .acc-toggle {
  border-color: var(--color-echo-blue);
}
.acc-toggle svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}
.paragraph--type--section-accordion.section-color-blue .acc-toggle svg {
  stroke: white;
}
.paragraph--type--section-accordion.section-color-white .acc-toggle svg {
  stroke: var(--color-echo-blue);
}
.paragraph--type--section-accordion.section-color-blue .acc-header:hover .acc-toggle {
  border-color: var(--color-echo-blue);
}
.paragraph--type--section-accordion.section-color-white .acc-header:hover .acc-toggle {
  border-color: white;
}
.paragraph--type--section-accordion.section-color-blue .acc-item.open .acc-header:hover .acc-toggle svg,
.paragraph--type--section-accordion.section-color-blue .acc-item .acc-header:hover .acc-toggle svg {
  stroke: var(--color-echo-blue);
}
.paragraph--type--section-accordion.section-color-white .acc-item.open .acc-header:hover .acc-toggle svg,
.paragraph--type--section-accordion.section-color-white .acc-item .acc-header:hover .acc-toggle svg {
  stroke: white;
}
.acc-toggle svg .v-line {
  transition: transform 0.3s ease;
  transform-origin: center;
}
.paragraph--type--section-accordion.section-color-blue .acc-item.open .acc-toggle {
  border-color: white;
}
.paragraph--type--section-accordion.section-color-white .acc-item.open .acc-toggle {
  border-color: var(--color-echo-blue);
}
.paragraph--type--section-accordion.section-color-blue .acc-item.open .acc-toggle svg {
  stroke: white;
}
.paragraph--type--section-accordion.section-color-white .acc-item.open .acc-toggle svg {
  stroke: var(--color-echo-blue);
}
.paragraph--type--section-accordion.section-color-blue .acc-item.open .acc-header:hover .acc-toggle {
   border-color: var(--color-echo-blue);
}
.paragraph--type--section-accordion.section-color-white .acc-item.open .acc-header:hover .acc-toggle {
   border-color: white;
}
/* Accordion body */
.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.acc-body-inner {
  padding: 0 1rem 0.5rem;
}
.acc-item.open .acc-body {
  max-height: 300px;
  overflow-y: auto;
}
