/* Shared part "faq" (data-part="faq"): a question is a strip of cream paper with a native <details> disclosure; the paper
   tab is a small sun disc whose plus turns into a cross when the answer is open (faq.js). The same markup
   (details.fq__item > summary.fq__sum > h3.fq__q, then div.fq__a) is read by scripts/build.py into FAQPage JSON-LD, so the
   page and the schema always say the same words. Used by /questions/ (its page layout is css/sections/questions/01-faq.css)
   and by the short FAQ blocks on the product pages (.faq, below). */

.fq__group { display: grid; gap: 14px; }
.fq__item { position: relative; isolation: isolate; scroll-margin-top: 96px; border-radius: 14px 18px 16px 12px / 16px 12px 18px 14px; background: var(--card); color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 1px 1px rgba(30, 60, 140, .22), 0 8px 16px -10px rgba(30, 60, 140, .4);
  transition: box-shadow var(--m-small, 400ms) var(--m-settle, ease); }
.fq__item::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: url(/assets/art/textures/grain-tile.webp) 0 0 / 256px 256px; mix-blend-mode: multiply; opacity: .35; }
.fq__item:nth-child(odd) { rotate: -.25deg; }
.fq__item:nth-child(even) { rotate: .2deg; }
.fq__item[open] { rotate: 0deg; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 1px 1.5px rgba(30, 60, 140, .28), 0 18px 30px -16px rgba(30, 60, 140, .5); }
.fq__sum { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 68px; padding: 16px 18px 16px 24px;
  list-style: none; cursor: pointer; border-radius: inherit; }
.fq__sum::-webkit-details-marker { display: none; }
.fq__sum:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.fq__q { font: 800 clamp(18.5px, 1.45vw, 21px)/1.3 var(--font-display); letter-spacing: -.003em; }
/* the paper tab: a small sun disc with a plus that turns into a cross */
.fq__tog { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--lemon);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 1px 1px rgba(90, 42, 0, .3);
  transition: transform 500ms var(--m-spring, ease), background-color var(--m-quick, 200ms) var(--m-settle, ease); }
.fq__tog::before, .fq__tog::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 3px; margin: -1.5px 0 0 -7px; border-radius: 2px; background: var(--ink); }
.fq__tog::after { transform: rotate(90deg); }
.fq__item[open] .fq__tog { transform: rotate(135deg); background: var(--sun); }
@media (hover: hover) and (pointer: fine) { .fq__sum:hover .fq__tog { background: var(--sun); } }
.fq__sum:active .fq__tog { transform: scale(.92); }
.fq__item[open] .fq__sum:active .fq__tog { transform: rotate(135deg) scale(.92); }
.fq__a { padding: 0 64px 22px 24px; }
.fq__a p { font-size: var(--t-body); line-height: 1.6; color: var(--ink); max-width: 62ch; }
.fq__a p + p { margin-top: 10px; }
.fq__a a { font-weight: 800; color: var(--blue-deep); }
@media (max-width: 539.98px) {
  .fq__sum { padding: 14px 14px 14px 18px; gap: 12px; }
  .fq__a { padding: 0 18px 20px; }
}

/* ---------- the short FAQ block on a product page (.faq): heading and one line beside the questions */
.faq__wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.faq__h { font-size: var(--t-h2); max-width: 12em; }
.faq__lead { margin-top: clamp(12px, 1.4vw, 18px); max-width: 28em; font-size: var(--t-lead); line-height: 1.5; color: var(--ink); }
.faq__lead a { font-weight: 800; color: var(--blue-deep); }
@media (max-width: 899.98px) {
  .faq__wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

/* ---------- Motion: rows settle in once (List: 30 to 40 ms apart); an opened answer rises into place */
@media (prefers-reduced-motion: no-preference) {
  html.js:not(.rm) .fq__group [data-b].b-wait:not(.b-in) { opacity: 0; }
  .fq__group [data-b="row"].b-in { animation: fq-row 400ms var(--m-settle, ease) var(--b-at, 0ms) both; }
  .fq__item.is-opening .fq__a { animation: fq-open 450ms var(--m-settle, ease) both; }
}
@keyframes fq-row { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes fq-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .fq__group [data-b], .fq__a { animation: none !important; opacity: 1 !important; transform: none !important; }
  .fq__tog, .fq__item { transition: none; }
}
@media (prefers-contrast: more) {
  .fq__item { box-shadow: inset 0 0 0 2px var(--ink); }
  .fq__a p, .faq__lead { color: var(--ink); }
}
@media (forced-colors: active) {
  .fq__item { border: 1px solid CanvasText; }
  .fq__tog::before, .fq__tog::after { background: CanvasText; }
}
