/* Questions and answers (FAQ): the content pages of the site (content.css) with the question and its answer first,
   then lists of questions and topics. Loaded only on FAQ pages; classes of content.css keep their meaning. */

.content-page--faq h2,
.content-page--faq h3 { hyphens: manual; }
.faq-search { display: block; }
/* Links of the breadcrumb are touch targets of at least 24 px also in two lines on a phone (WCAG 2.2, 2.5.8). */
.content-page--faq .breadcrumbs a { display: inline-flex; align-items: center; min-height: 24px; }

/* Header of the page: the question and the short answer before anything else. */
.content-hero--faq { padding: 160px 0 60px; }
.content-hero--faq h1 {
  max-width: 1000px;
  font-size: clamp(36px, 4.2vw, 60px);
  line-height: 1.04;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.content-hero--faq-home h1 {
  font-size: clamp(44px, 5.2vw, 76px);
  line-height: 1;
}
.content-hero--faq .content-deck { max-width: 860px; font-size: clamp(19px, 1.6vw, 24px); }
.content-hero--faq .knowledge-search { max-width: 820px; margin-bottom: 0; }

.faq-direct {
  max-width: 860px;
  margin-top: 30px;
  padding-left: 22px;
  border-left: 3px solid var(--content-accent);
}
.faq-direct__label {
  display: block;
  margin-bottom: 8px;
  color: var(--content-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.faq-direct p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.55;
}
.faq-dates { margin-top: 28px; }

/* The rest of the answer, in the reading column of the articles. */
.faq-layout { padding: 56px 0 8px; }
.faq-body > p:last-of-type { margin-bottom: 0; }
.faq-body h2 {
  margin: 44px 0 16px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -.015em;
}
.faq-steps ol { margin-bottom: 0; }
.prose .faq-aliases ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.prose .faq-aliases li {
  margin: 0;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfafb;
  color: #5f5a61;
  font-size: 15px;
  line-height: 1.4;
}
.prose .faq-format { margin: 40px 0 0; font-size: 14px; }
.prose .faq-format a { color: #6f6c72; }

/* After the answer: invitation, related questions, the rest of the topic and the search. */
.faq-after { padding: 40px 0 112px; }
.faq-after > * { max-width: var(--reading); margin-inline: auto; }
.faq-after .article-cta { margin-top: 32px; margin-bottom: 0; }

.faq-related h2,
.faq-more h2,
.faq-section-block h2,
.faq-results h2,
.faq-index h2 {
  max-width: none;
  margin: 64px 0 22px;
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.12;
  letter-spacing: -.03em;
}
.faq-after .knowledge-search { margin-top: 64px; margin-bottom: 0; }

/* Cards of questions (start here, related, results) and of topics. */
.faq-cards,
.faq-topics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.faq-cards--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.faq-cards--list { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.faq-cards > li,
.faq-topics > li { display: flex; }

.faq-card,
.faq-topic {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.faq-card:hover,
.faq-topic:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--content-accent) 32%, #ddd9df);
  box-shadow: 0 14px 32px rgba(35, 28, 36, .07);
}
.faq-card:focus-visible,
.faq-topic:focus-visible,
.faq-qlist a:focus-visible,
.faq-qa__q a:focus-visible { outline: 3px solid #6f457b; outline-offset: 3px; }

.faq-card__topic,
.faq-topic__count {
  color: var(--content-accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.faq-card__q,
.faq-topic__title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
}
.faq-card__a,
.faq-topic__intro {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.faq-topic__title { font-weight: 600; }
.faq-topic__count { order: -1; }

/* Home: groups of topics. */
.faq-main { padding: 24px 0 112px; }
.faq-main > :first-child h2,
.faq-main > h2:first-child { margin-top: 48px; }
.faq-group { margin-top: 36px; }
.faq-group h3 {
  margin: 0 0 14px;
  color: #6f6c72;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.faq-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin: 44px 0 0;
}
.faq-links .text-link { margin-top: 0; }
.faq-more .faq-links { margin-top: 24px; }
.faq-main .article-cta { max-width: 860px; margin-top: 56px; margin-bottom: 0; }
.faq-main .knowledge-search { max-width: 860px; margin-top: 64px; margin-bottom: 0; }

/* Lists of questions (all questions, the rest of a topic). */
.faq-qlist {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.faq-qlist li { border-bottom: 1px solid var(--line); }
.faq-qlist a {
  display: block;
  padding: 13px 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.4;
}
.faq-qlist a:hover { color: var(--content-accent); }

.faq-index__topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 56px;
}
.faq-index__topic { min-width: 0; }
.faq-index h3 {
  margin: 30px 0 12px;
  font-size: 20px;
  line-height: 1.25;
}
.faq-index h3 a { color: var(--content-accent); }
.faq-index h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Topic: every question with its short answer. */
.faq-qa-list {
  max-width: 860px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.faq-qa {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 110px;
}
.faq-qa__q {
  max-width: none;
  margin: 0 0 10px;
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.3;
  letter-spacing: -.015em;
}
.faq-qa__q a { color: var(--ink); }
.faq-qa__q a:hover { color: var(--content-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.faq-qa__a {
  margin: 0;
  color: #4f4b51;
  font-size: 17px;
  line-height: 1.65;
}

/* Results without JavaScript and pages not found. */
.faq-empty { max-width: 760px; color: var(--muted); font-size: 18px; }

/* About the knowledge base: the reading column. */
.faq-about { max-width: var(--reading); padding-top: 32px; }
.faq-about h2 { margin: 48px 0 16px; font-size: clamp(26px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -.03em; }
.faq-about section:first-child h2 { margin-top: 24px; }

@media (max-width: 960px) {
  .content-hero--faq { padding: 132px 0 48px; }
  .faq-cards--compact,
  .faq-index__topics { grid-template-columns: minmax(0, 1fr); }
  .faq-after > *,
  .faq-about { max-width: none; }
}

@media (max-width: 680px) {
  .content-hero--faq { padding: 112px 0 40px; }
  .content-hero--faq .content-meta { flex-direction: column; align-items: flex-start; gap: 4px; }
  .content-hero--faq .content-meta span + span::before { display: none; }
  .faq-topic__intro { display: none; }
  .content-hero--faq h1 { font-size: clamp(30px, 8.6vw, 40px); }
  .content-hero--faq-home h1 { font-size: clamp(38px, 11vw, 52px); }
  .faq-direct { margin-top: 24px; padding-left: 16px; }
  .faq-direct p { font-size: 18px; }
  .faq-layout { padding-top: 36px; }
  .faq-after { padding-bottom: 80px; }
  .faq-card,
  .faq-topic { padding: 18px; }
  .faq-card__q,
  .faq-topic__title { font-size: 17px; }
  .faq-qlist a { font-size: 16px; }
  .faq-qa { padding: 22px 0; }
  .faq-qa__a { font-size: 16px; }
  .faq-main { padding-bottom: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  .faq-card,
  .faq-topic { transition: none; }
  .faq-card:hover,
  .faq-topic:hover { transform: none; }
}

@media print {
  .faq-search,
  .faq-cta,
  .faq-related,
  .faq-more,
  .faq-format { display: none !important; }
  .content-hero--faq { padding: 0 0 18px; }
  .faq-direct { border-left: 0; padding-left: 0; }
  .faq-direct p { font-size: 12pt; }
}
