/* Wissenswertes (and its English page, which loads this file too): only what these pages add to ../site.css and
   ../pages.css. Their questions sit in five groups, each the homepage's .faq (the group's name, its questions beside),
   closer together than full sections and parted by a hairline; the group's name stays in view while its answers are
   read. Answers can hold paragraphs, lists and the embassies' addresses. 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; }

/* Bali: two short headings in the text beside the photos */
#bali .feature__text h3 { font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.7rem); }
#bali .feature__text p + h3 { margin-top: 14px; }

/* ═══════════ 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; } }
