/* Prana Veda · the questions in three tabs (Wissenswertes, and the same block on the homepage and About us: _parts/faq-*):
   groups of questions as the homepage's .faq, parted by a hairline, the group's name in view while its answers are read;
   the tab bar is /jumpbar.css. Load after site.css. Media rules at the END. */

.qa { padding-block: clamp(32px, 4.4vw, 56px); }
.qa + .qa .wrap { padding-top: clamp(32px, 4.4vw, 56px); border-top: 1px solid var(--line); }
.qa + .qa { padding-top: 0; }
.open + .qa { padding-top: clamp(8px, 1.5vw, 16px); }
.qa .title { font-size: clamp(1.7rem, 1.35rem + 1.4vw, 2.5rem); }
.qa .head { position: sticky; top: calc(var(--nav-h) + 88px); } /* below the tab bar */

/* the three tabs (/tabs.js): the rooms page's glass bar, its thumb on the chosen tab; panels slide in from their side.
   Without JavaScript there is no bar and every panel shows. */
.tabs { display: none; }
.js .tabs { display: flex; }
.tabs__b { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--ink); font: 500 0.92rem/1 var(--text); white-space: nowrap; cursor: pointer; transition: color var(--t-quick, 160ms) var(--ease); }
.tabs__b:hover, .tabs__b[aria-selected="true"] { color: var(--accent-ink); }
.tabs__b:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tabs__b .mark { width: 17px; height: 17px; color: var(--accent-ink); }
.tabs__s { display: none; }
.has-tabs .tabs__panel:not(.is-on) { display: none; }
.tabs__panel { padding-top: clamp(40px, 5vw, 64px); }
.tabs__panel.is-from-r { animation: tab-from-r 380ms var(--ease) both; }
.tabs__panel.is-from-l { animation: tab-from-l 380ms var(--ease) both; }
@keyframes tab-from-r { from { opacity: 0; translate: 28px 0; } }
@keyframes tab-from-l { from { opacity: 0; translate: -28px 0; } }
.tabs__panel > .qa:first-child { padding-top: 0; }
/* the four questions at the top of the retreats tab: the retreats page's frosted card over the sunset */
.finder--faq { margin-top: calc(-1 * clamp(40px, 5vw, 64px)); margin-bottom: clamp(24px, 3vw, 40px); padding-top: clamp(72px, 9vw, 120px); }


/* an answer: paragraphs, a list, the addresses */
.faq__list .ans { display: grid; gap: 12px; padding: 0 0 24px; color: var(--ink-2); max-width: 62ch; }
.faq__list .ans p { padding: 0; }
.faq__list .ans a { color: var(--accent-ink); }
.faq__list .ans strong { font-weight: 500; color: var(--ink); }
.faq__list .ans ul, .faq__list .ans ol { margin: 0; padding-left: 1.3em; display: grid; gap: 4px; }
.ans .stand { font-size: 0.88rem; }
.addrs { display: grid; gap: 8px; }
.faq__list .ans .addr { padding: 14px 16px; border-radius: var(--r); background: var(--paper-2); font-size: 0.92rem; line-height: 1.55; overflow-wrap: anywhere; }
.addr strong { display: block; margin-bottom: 4px; }


/* ═══════════ Media rules ═══════════ */
@media (max-width: 900px) {
  .qa .head { position: static; }
}
@media (max-width: 640px) {
  .tabs__b { gap: 6px; padding: 0 14px; }
  .tabs__l { display: none; }
  .tabs__s { display: inline; }
}
@media (prefers-reduced-motion: reduce) { .tabs__panel.is-from-r, .tabs__panel.is-from-l { animation: none; } }

/* the same questions on the homepage and About us: their heading, then the tab bar on the seam below it */
.faqs { padding-block: clamp(48px, 6vw, 80px) clamp(16px, 2vw, 32px); }
.faqs__head { padding-bottom: clamp(36px, 4vw, 52px); }
.faqs .tabs__panel > .qa:last-child { padding-bottom: 0; }
/* there, the bar sits under the heading (it doesn't stay under the header: the page doesn't move for it), and a
   group's name stays in view just under the header */
.faqs .jumpbar { position: static; height: auto; }
.faqs .jumpbar__in { translate: none; }
.faqs .tabs__panel { padding-top: clamp(28px, 3.5vw, 44px); }
.faqs .qa .head { top: calc(var(--nav-h) + 24px); }
.faqs .finder--faq { margin-top: 0; padding-top: clamp(44px, 5.5vw, 72px); }
