/* Hallmark · shape: question index · genre: editorial · theme: brand · v2.0.0 */
/* Critique: questions stay in reading order, with the source beside the answer it supports. */
.faq-reading {
  scroll-margin-top: 24px;
}

.faq-mast h1 {
  letter-spacing: -.045em;
}

.faq-topic + .faq-topic {
  margin-top: clamp(44px, 5vw, 72px);
}

.faq-topic > h2 {
  margin: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font: 500 var(--text-section)/1.35 var(--serif);
}

.faq-topic h2,
.faq-entry h3 {
  scroll-margin-top: 24px;
}

.faq-entry {
  padding-block: clamp(20px, 2.1vw, 32px);
  border-bottom: 1px solid var(--fine);
}

.faq-entry-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.faq-entry h3 {
  max-width: 31em;
  margin: 0;
  font: 500 var(--text-title)/1.5 var(--serif);
}

.faq-entry p {
  max-width: 37em;
  color: var(--text);
  line-height: 1.85;
}

.faq-permalink {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  min-height: 44px;
  color: var(--muted);
  align-self: start;
}

.faq-permalink:hover,
.faq-entry h3:target {
  color: var(--accent);
}

.faq-reading-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 24px;
  margin-top: 8px;
}

.faq-reading-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font: 500 14px/1.6 var(--sans);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.faq-reading-links a:hover {
  color: var(--accent-hover);
}

@media (max-width: 740px) {
  .faq-reading {
    row-gap: 28px;
  }

  .faq-reading .ed-contents nav {
    display: flex;
    flex-wrap: wrap;
    column-gap: 16px;
  }

  .faq-reading .ed-contents h2 {
    width: 100%;
  }
}
