/* =========================================================
   Skinthetics – FAQs
   Two looks:  green (default)  and  minimal  (look="minimal")
   Pure CSS: uses <details>/<summary>, no JavaScript needed.
   All classes are prefixed sk-faq to avoid theme clashes.
   ========================================================= */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@200;300;400&display=swap");

.sk-faq {
  /* ---- Settings (green look) ---- */
  --sk-ink: #36302c;            /* text colour */
  --sk-muted: #6a615b;
  --sk-green: #c9e3dd;          /* question bar colour */
  --sk-max: none;               /* no maximum width; set e.g. 880px to narrow it */
  --sk-gap: 96px;               /* space below each FAQ group */

  max-width: var(--sk-max); margin: 0 auto var(--sk-gap);
  color: var(--sk-ink);
  font-family: "Outfit", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.sk-faq, .sk-faq *, .sk-faq *::before, .sk-faq *::after { box-sizing: border-box; }

.sk-faq .sk-faq__title { margin: 0 0 28px; color: var(--sk-ink); font-family: inherit; font-weight: 300; font-size: clamp(34px, 4vw, 44px); line-height: 1.05; letter-spacing: -0.03em; text-transform: none; }

/* ---------- Question bar ---------- */
.sk-faq .sk-faq__list { display: flex; flex-direction: column; gap: 12px; }
.sk-faq .sk-faq__item { margin: 0; background: var(--sk-green); border-radius: 4px; overflow: hidden; }
.sk-faq .sk-faq__q { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0; padding: 24px 32px; cursor: pointer; list-style: none; color: var(--sk-ink); }
.sk-faq .sk-faq__q::-webkit-details-marker { display: none; }
.sk-faq .sk-faq__q::marker { content: ""; }
.sk-faq .sk-faq__q:focus-visible { outline: 2px solid var(--sk-ink); outline-offset: -4px; }
.sk-faq .sk-faq__q-text { flex: 1; color: var(--sk-ink); font-size: clamp(20px, 2.2vw, 26px); font-weight: 300; line-height: 1.25; letter-spacing: -0.015em; text-transform: none; }

/* plus / minus button (drawn with backgrounds so theme styles can't make it disappear) */
.sk-faq .sk-faq__icon {
  flex: none; display: block; position: relative; width: 44px; height: 44px; border-radius: 50%;
  background-color: #ffffff !important;
  background-image: linear-gradient(var(--sk-ink), var(--sk-ink)), linear-gradient(var(--sk-ink), var(--sk-ink)) !important;
  background-repeat: no-repeat !important; background-position: center !important;
  background-size: 15px 1.5px, 1.5px 15px !important;
  transition: background-color .25s, background-size .3s ease;
}
.sk-faq .sk-faq__q:hover .sk-faq__icon, .sk-faq .sk-faq__item[open] .sk-faq__icon {
  background-color: var(--sk-ink) !important;
  background-image: linear-gradient(#fff, #fff), linear-gradient(#fff, #fff) !important;
}
.sk-faq .sk-faq__item[open] .sk-faq__icon { background-size: 15px 1.5px, 0 0 !important; }
.sk-faq .sk-faq__icon::before, .sk-faq .sk-faq__icon::after { content: none !important; }

/* smooth open/close where supported (other browsers open instantly) */
@supports selector(::details-content) {
  .sk-faq .sk-faq__item::details-content { block-size: 0; overflow: clip; transition: block-size .4s ease, content-visibility .4s allow-discrete; }
  .sk-faq .sk-faq__item[open]::details-content { block-size: auto; }
  :root { interpolate-size: allow-keywords; }
}
@media (prefers-reduced-motion: reduce) {
  .sk-faq .sk-faq__item::details-content, .sk-faq .sk-faq__icon { transition: none !important; }
}

/* ---------- Answer (white panel inside the green) ---------- */
.sk-faq .sk-faq__a { margin: 0 12px 12px; padding: 26px 28px 14px; background: #fff; border-radius: 2px; }
.sk-faq .sk-faq__a p, .sk-faq .sk-faq__a li { margin: 0 0 1em; color: var(--sk-ink); font-size: 18px; line-height: 1.65; font-weight: 300; text-transform: none; }
.sk-faq .sk-faq__a ul, .sk-faq .sk-faq__a ol { margin: 0 0 1em; padding-left: 1.3em; }
.sk-faq .sk-faq__a li { margin-bottom: .4em; }
.sk-faq .sk-faq__a a { color: var(--sk-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.sk-faq .sk-faq__a a:hover { text-decoration-thickness: 2px; }
.sk-faq .sk-faq__a strong, .sk-faq .sk-faq__a b { font-weight: 400; }

/* ---------- Minimal look: look="minimal" ---------- */
.sk-faq--minimal {
  --sk-ink: #000000;
  --sk-muted: #55595a;
  --sk-green: transparent;
  --sk-brand: #55716b;
}
.sk-faq--minimal .sk-faq__list { gap: 0; border-bottom: 1px solid #dededa; }
.sk-faq--minimal .sk-faq__item { background: transparent; border-radius: 0; overflow: visible; border-top: 1px solid #dededa; }
.sk-faq--minimal .sk-faq__q { padding: 26px 0; }
.sk-faq--minimal .sk-faq__q:hover .sk-faq__q-text { color: var(--sk-brand); }
.sk-faq--minimal .sk-faq__icon { border: 1px solid var(--sk-brand); background-color: transparent !important; background-image: linear-gradient(var(--sk-brand), var(--sk-brand)), linear-gradient(var(--sk-brand), var(--sk-brand)) !important; }
.sk-faq--minimal .sk-faq__q:hover .sk-faq__icon { background-color: transparent !important; background-image: linear-gradient(var(--sk-brand), var(--sk-brand)), linear-gradient(var(--sk-brand), var(--sk-brand)) !important; }
.sk-faq--minimal .sk-faq__item[open] .sk-faq__icon { background-color: var(--sk-brand) !important; background-image: linear-gradient(#fff, #fff), linear-gradient(#fff, #fff) !important; background-size: 15px 1.5px, 0 0 !important; }
.sk-faq--minimal .sk-faq__a { margin: 0; padding: 0 70px 18px 0; background: transparent; }

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  .sk-faq { --sk-gap: 64px; }
  .sk-faq .sk-faq__title { font-size: 32px; margin-bottom: 20px; }
  .sk-faq .sk-faq__q { gap: 16px; padding: 20px; }
  .sk-faq .sk-faq__q-text { font-size: 19px; }
  .sk-faq .sk-faq__icon { width: 40px; height: 40px; }
  .sk-faq .sk-faq__a { margin: 0 8px 8px; padding: 20px 18px 8px; }
  .sk-faq .sk-faq__a p, .sk-faq .sk-faq__a li { font-size: 17px; }
  .sk-faq--minimal .sk-faq__q { padding: 22px 0; }
  .sk-faq--minimal .sk-faq__a { padding: 0 0 12px; }
}
