/* ==========================================================================
   Lottura — FAQ page (/faq). Loaded after main.css, which supplies the colours, fonts, header and footer.
   The page has no scripts, so the header is drawn in its solid ("scrolled") state from the start.
   ========================================================================== */

.faq { padding: calc(var(--hh) + clamp(3rem, 7vw, 5.5rem)) 0 clamp(4rem, 8vw, 6.5rem); position: relative; }
.faq__wrap { max-width: 52rem; }

.faq__back { font-size: .875rem; color: var(--dim); transition: color .25s; }
.faq__back:hover { color: var(--ink); }

.faq__group { margin-top: clamp(2.8rem, 6vw, 4rem); }
.faq__group-title {
  font-size: .6875rem; font-weight: 500; letter-spacing: .28em;
  color: var(--faint);
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--rule);
}

.faq__item { padding: 1.6rem 0; border-bottom: 1px solid var(--rule-soft); }
.faq__q {
  font: 700 clamp(1.05rem, 2vw, 1.2rem)/1.35 var(--fd);
  letter-spacing: -.01em;
  margin-bottom: .7rem;
  scroll-margin-top: calc(var(--hh) + 1.2rem);
}
.faq__item p { color: var(--dim); line-height: 1.65; max-width: 44rem; }
.faq__item p + p, .faq__item table + p, .faq__item p + table { margin-top: .9rem; }
.faq__item a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: .2em; transition: text-decoration-color .25s; }
.faq__item a:hover { text-decoration-color: var(--cyan); }
.faq__item a.mono { font-size: .85em; overflow-wrap: anywhere; }

.faq__table { width: 100%; border-collapse: collapse; font-size: .875rem; color: var(--dim); }
.faq__table th {
  text-align: start; font: 500 .6875rem/1.4 var(--fm); letter-spacing: .2em; color: var(--faint);
  padding: 0 .9rem .6rem 0; border-bottom: 1px solid var(--rule);
}
.faq__table td { padding: .7rem .9rem .7rem 0; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.faq__table td:first-child { color: var(--ink); white-space: nowrap; }

.ftr__links { font-size: .875rem; color: var(--faint); }
.ftr__links a { color: var(--dim); transition: color .25s; }
.ftr__links a:hover { color: var(--ink); }

@media (max-width: 640px) {
  .faq__back { display: none; }
  .faq__table thead { display: none; }
  .faq__table tr { display: grid; grid-template-columns: auto 1fr; gap: .2rem .9rem; padding: .7rem 0; border-bottom: 1px solid var(--rule-soft); }
  .faq__table td { padding: 0; border: 0; }
  .faq__table td:last-child { grid-column: 1 / -1; }
}
