/*
 * /paslaugos — team, FAQ and closing CTA.
 *
 * The structure intentionally reuses the live page's utility classes. A few
 * of those utilities (`ink-soft`, `charcoal`, translucent black borders and
 * the cream gradient) are reference-only values that are not part of this
 * project's Tailwind theme, so they are restored here with the same rendered
 * values. The FAQ rules also provide the grid-row animation and icon swap
 * used by `js/pages/services/rest.js`.
 */

/* Team ------------------------------------------------------------------ */
#komanda {
  background-image: linear-gradient(
    to bottom,
    var(--color-bg, #f0ebe7) 0%,
    #fff 35.481%
  );
}

/* The design renders these translucent black tokens through oklab. */
#komanda .border-black\/16 {
  border-color: oklab(0 0 0 / 0.16);
}

#komanda .text-ink-soft {
  color: #1f1915;
}

#komanda .text-charcoal {
  color: #333;
}

#komanda .text-black\/72 {
  color: oklab(0 0 0 / 0.72);
}

[data-team-modal-trigger] {
  outline: none;
}

[data-team-modal-trigger]:focus-visible {
  outline: 2px solid var(--color-primary, #163e3d);
  outline-offset: 4px;
}

#team-profile-dialog::backdrop {
  background-color: rgb(0 0 0 / 0.5);
}

[data-team-modal-role] {
  color: rgb(0 0 0 / 0.72);
}

/* FAQ ------------------------------------------------------------------- */
#duk [class*="border-[rgba(18,18,18,0.32)]"] {
  border-color: rgb(18 18 18 / 0.32);
}

#duk .text-ink-soft {
  color: #1f1915;
}

.faq-item {
  /* The shared component defaults to `--color-line`; the design keeps every
   * card on the invisible cream border, open or closed. */
  border-color: var(--color-bg, #f0ebe7);
  background-color: transparent;
}

.faq-item.is-open {
  background-color: var(--color-bg, #f0ebe7);
}

.faq-item button:focus-visible {
  border-radius: 8px;
  outline: 2px solid var(--color-primary, #163e3d);
  outline-offset: 4px;
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 300ms ease;
}

.faq-panel > div {
  min-height: 0;
  overflow: hidden;
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-icon--plus {
  display: block;
}

.faq-icon--minus {
  display: none;
}

.faq-item.is-open .faq-icon--plus {
  display: none;
}

.faq-item.is-open .faq-icon--minus {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .faq-panel {
    transition-duration: 0.01ms;
  }
}
