/* The questions page. It uses /home.css for everything shared; this file holds
   only what is particular to this page. The page itself is generated by
   _gen_faq.py; this stylesheet is edited by hand. */

/* sections are as tall as their content, not one screen each */
main > section { min-height: 0; }
main > .faq-hero { padding-top: clamp(120px, 12vw, 220px); padding-bottom: clamp(32px, 4vw, 80px); }
.faq-hero h1 { font-size: clamp(32px, 4.2vw, 84px); max-width: 16em; }
.faq-hero .lead { max-width: 36em; }

/* jump list: plain words in a row, each a real link */
.jump { display: flex; flex-wrap: wrap; gap: 10px 12px; list-style: none; padding: 0; margin: 0; }
.jump a { display: inline-block; font-size: var(--t-ui); font-weight: 600; padding: .6em .95em; border: 1px solid var(--line); border-radius: 999px; background: var(--ground); color: var(--ink); text-decoration: none; }
.jump a:hover { border-color: var(--ink); }

.faq-sec { padding-top: clamp(40px, 5vw, 96px); padding-bottom: clamp(40px, 5vw, 96px); border-top: 1px solid var(--line); scroll-margin-top: 88px; }
.faq-sec .a h2 { position: sticky; top: 104px; }

/* one question: the question is the heading, the answer is always visible */
.qas { min-width: 0; }
.qa { padding: clamp(18px, 1.6vw, 32px) 0; border-bottom: 1px solid var(--line); max-width: 46em; scroll-margin-top: 96px; }
.qa:first-child { padding-top: 0; }
.qa:last-child { border-bottom: 0; }
.qa h3 { font-size: clamp(18px, 1.35vw, 26px); line-height: 1.3; margin: 0 0 .55em; text-wrap: balance; }
.qa h3 a { color: inherit; text-decoration: none; }
.qa h3 a:hover { text-decoration: underline; text-underline-offset: .18em; }
.qa p { color: var(--muted); margin: 0; }
.qa p + p { margin-top: .8em; }
.qa:target h3 { text-decoration: underline; text-decoration-color: var(--accent, currentColor); text-underline-offset: .2em; }

@media (max-width: 900px) {
  .faq-sec .a h2 { position: static; }
}
@media (max-width: 700px) {
  main > .faq-hero { padding-top: 104px; }
  .faq-hero h1 { font-size: clamp(30px, 8.4vw, 40px); }
  .jump a { min-height: 44px; display: inline-flex; align-items: center; }
}
