/* Kodza License: free to use, client work included. Not to resell or redistribute, ported or not: https://kodza.dev/docs/#print-license */
/* Kodza — Accordion
   Questions that open on their answer, built on a details element (it still opens without the script,
   and the browser's find-in-page reaches closed answers). The panel opens at its real height
   and the answer rises from behind its edge; the plus turns into a minus, the number goes to
   ink. data-single on the root keeps one answer open at a time.
   Everything is tuned with the --kz-accordion-* variables. */
.kodza-accordion {
  --kz-accordion-fg: #0a0a0a;
  --kz-accordion-muted: rgba(10, 10, 10, 0.62);
  --kz-accordion-line: rgba(10, 10, 10, 0.12);
  --kz-accordion-soft: rgba(10, 10, 10, 0.05);
  --kz-accordion-ease: cubic-bezier(0.22, 1, 0.36, 1);

  border-top: 1px solid var(--kz-accordion-line);
  color: var(--kz-accordion-fg);
}

.kodza-accordion__item {
  border-bottom: 1px solid var(--kz-accordion-line);
}

.kodza-accordion__trigger {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
}

.kodza-accordion__trigger::-webkit-details-marker {
  display: none;
}

.kodza-accordion__trigger:focus-visible {
  outline: 2px solid var(--kz-accordion-fg);
  outline-offset: 4px;
  border-radius: 6px;
}

.kodza-accordion__index {
  color: var(--kz-accordion-muted);
  font-family: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  transition: color 0.3s ease;
}

.kodza-accordion__question {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

/* The plus: two bars; the upright one lies down to make a minus */
.kodza-accordion__icon {
  position: relative;
  justify-self: end;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: background-color 0.25s ease;
}

.kodza-accordion__icon::before,
.kodza-accordion__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  margin: -0.75px 0 0 -6px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.45s var(--kz-accordion-ease);
}

.kodza-accordion__icon::after {
  transform: rotate(90deg);
}

.kodza-accordion__trigger:hover .kodza-accordion__icon {
  background: var(--kz-accordion-soft);
}

.kodza-accordion__item[open] .kodza-accordion__index {
  color: var(--kz-accordion-fg);
}

.kodza-accordion__item[open] .kodza-accordion__icon::after {
  transform: rotate(180deg);
}

.kodza-accordion__item[open] .kodza-accordion__icon::before {
  transform: rotate(180deg);
}

/* While closing, the minus is already turning back into a plus */
.kodza-accordion__item.is-closing .kodza-accordion__index {
  color: var(--kz-accordion-muted);
}

.kodza-accordion__item.is-closing .kodza-accordion__icon::after {
  transform: rotate(90deg);
}

.kodza-accordion__item.is-closing .kodza-accordion__icon::before {
  transform: none;
}

.kodza-accordion__panel {
  overflow: hidden;
}

.kodza-accordion__panel > * {
  margin: 0;
  padding: 0 44px 24px 52px;
  color: var(--kz-accordion-muted);
  font-size: 15px;
  line-height: 1.6;
  text-wrap: pretty;
}

@media (max-width: 560px) {
  .kodza-accordion__trigger {
    grid-template-columns: 28px minmax(0, 1fr) 32px;
  }

  .kodza-accordion__panel > * {
    padding: 0 0 22px 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kodza-accordion__index,
  .kodza-accordion__icon,
  .kodza-accordion__icon::before,
  .kodza-accordion__icon::after {
    transition-duration: 0.01ms !important;
  }
}

/* Theming example — on a dark background:
.dark-section .kodza-accordion {
  --kz-accordion-fg: #f2f2f0;
  --kz-accordion-muted: rgba(242, 242, 240, 0.62);
  --kz-accordion-line: rgba(255, 255, 255, 0.14);
  --kz-accordion-soft: rgba(255, 255, 255, 0.08);
}
*/

/* kodza-guard a23e237f37ea — generated by Kodza, do not edit.
   Theme guard: keeps a site's own CSS (WordPress themes, Bootstrap, CSS resets…) off this
   component. :not(#_) is always true and weighs as much as an id, so these lines win over
   theme rules made of classes and tags. Customise the component through its --kz-* variables. */

/* What the browser gives, where the component sets it only in some states: at the lowest weight, so its own rules below put it back */

:where(.kodza-accordion__trigger):not(#_) {
  border-radius: revert;
  outline: revert;
  outline-offset: revert;
}

/* What the browser gives, on everything the component leaves to it */

.kodza-accordion:not(#_),
.kodza-accordion__index:not(#_),
.kodza-accordion__question:not(#_),
.kodza-accordion__icon:not(#_),
.kodza-accordion__panel:not(#_) {
  box-sizing: revert;
}

.kodza-accordion__item:not(#_) {
  margin: revert;
  padding: revert;
  border-radius: revert;
  outline: revert;
  text-decoration: revert;
  transition: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  position: revert;
  border-top-width: revert;
  border-right-width: revert;
  border-left-width: revert;
  border-top-style: revert;
  border-right-style: revert;
  border-left-style: revert;
  border-top-color: revert;
  border-right-color: revert;
  border-left-color: revert;
  background-color: revert;
  background-image: revert;
  box-shadow: revert;
  outline-offset: revert;
  appearance: revert;
  max-width: revert;
  max-height: revert;
  color: revert;
  font-family: revert;
  font-size: revert;
  font-weight: revert;
  font-style: revert;
  line-height: revert;
  letter-spacing: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
}

.kodza-accordion__trigger:not(#_) {
  border: revert;
  margin: revert;
  text-decoration: revert;
  transition: revert;
  box-sizing: revert;
  float: revert;
  position: revert;
  background-color: revert;
  background-image: revert;
  box-shadow: revert;
  appearance: revert;
  max-width: revert;
  max-height: revert;
  color: revert;
  font-family: revert;
  font-size: revert;
  font-weight: revert;
  font-style: revert;
  line-height: revert;
  letter-spacing: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
}

.kodza-accordion__panel p:where(:not([class*="kodza-"]):not(.kodza-accordion__panel [class*="kodza-"] *)):not(#_) {
  border: revert;
  border-radius: revert;
  outline: revert;
  text-decoration: revert;
  transition: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  position: revert;
  background-color: revert;
  background-image: revert;
  box-shadow: revert;
  outline-offset: revert;
  appearance: revert;
  max-width: revert;
  max-height: revert;
  font-family: revert;
  font-weight: revert;
  font-style: revert;
  letter-spacing: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
}

.kodza-accordion__item:not(#_):where(:not([hidden])),
.kodza-accordion__panel p:where(:not([class*="kodza-"]):not(.kodza-accordion__panel [class*="kodza-"] *)):not(#_):where(:not([hidden])) {
  display: revert;
}

.kodza-accordion__item:not(#_):where([hidden]),
.kodza-accordion__panel p:where(:not([class*="kodza-"]):not(.kodza-accordion__panel [class*="kodza-"] *)):not(#_):where([hidden]) {
  display: none;
}

.kodza-accordion__icon:not(#_)::before,
.kodza-accordion__icon:not(#_)::after {
  box-sizing: revert;
}

/* The component's own rules, one step stronger: real buttons and fields, what it sets on tags themes style (links, lists, headings, images…), and the root width (a theme may narrow it, never widen it) */

.kodza-accordion__item:not(#_) {
  border-bottom: 1px solid var(--kz-accordion-line);
}

.kodza-accordion__trigger:not(#_) {
  display: grid;
  padding: 20px 0;
  list-style: none;
}

.kodza-accordion__trigger:focus-visible:not(#_) {
  outline: 2px solid var(--kz-accordion-fg);
  outline-offset: 4px;
  border-radius: 6px;
}

.kodza-accordion__panel > *:not(#_) {
  margin: 0;
  padding: 0 44px 24px 52px;
  color: var(--kz-accordion-muted);
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 560px) {
  .kodza-accordion__panel > *:not(#_) {
    padding: 0 0 22px 40px;
  }
}
