/* Homepage FAQ ("Questions, answered"). The section is written into index.html after
   the React root so crawlers read it; substack.js moves it under the last "about"
   section, above the footer, once Framer has hydrated. Answers also live in the
   FAQPage structured data in index.html, so keep the two in step. */

#fq {
  position: relative;
  z-index: 1; /* above the section light-beam overlays, like the byline */
  box-sizing: border-box;
  width: 100%;
  padding: 96px 24px 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  font-family: Inter, "Inter Placeholder", sans-serif;
}

/* Heading row matches the site's "I'm on Substack" style rows: gradient rules either side. */
.fq-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 720px;
}
.fq-rule {
  flex: 0 1 69px;
  min-width: 16px;
  height: 1px;
  opacity: 0.5;
  background: linear-gradient(90deg, rgba(84, 84, 84, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
}
.fq-rule.r { background: linear-gradient(270deg, rgba(84, 84, 84, 0) 0%, rgba(0, 0, 0, 0.5) 100%); }
.fq-label {
  margin: 0;
  font-family: "Instrument Serif", "Instrument Serif Placeholder", serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  color: rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.fq-list { width: 100%; max-width: 720px; }
.fq-item { border-top: 1px solid rgba(0, 0, 0, 0.14); }
.fq-item:last-child { border-bottom: 1px solid rgba(0, 0, 0, 0.14); }
.fq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 2px;
  color: #111;
}
.fq-item summary::-webkit-details-marker { display: none; }
.fq-item summary:focus-visible { outline: 2px solid #111; outline-offset: 4px; border-radius: 4px; }
/* Whole-pixel line heights keep every row on the same pixel grid, so the 1.5px icon
   bars render at the same weight in every row. */
.fq-q {
  font-family: "Instrument Serif", "Instrument Serif Placeholder", serif;
  font-size: 24px;
  line-height: 28px;
  text-wrap: balance;
}
.fq-a {
  margin: 0;
  max-width: 620px;
  padding: 0 2px 22px;
  font-size: 15px;
  line-height: 24px;
  color: #444;
  text-wrap: pretty;
}
/* The answer fades up as it opens, in step with the icon. No height animation. */
.fq-item[open] .fq-a { animation: fq-in 0.18s ease-out; }
@keyframes fq-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
.fq-a a { color: #111; text-decoration: underline; text-underline-offset: 3px; }

/* Plus that turns into a minus when the answer is open. */
.fq-icon { flex: none; position: relative; width: 14px; height: 14px; }
.fq-icon::before,
.fq-icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 1.5px;
  background: currentColor;
}
.fq-icon::after { transform: rotate(90deg); transition: transform 0.2s ease-out; }
.fq-item[open] .fq-icon::after { transform: rotate(0deg); }
@media (prefers-reduced-motion: reduce) {
  .fq-icon::after { transition: none; }
  .fq-item[open] .fq-a { animation: none; }
}

@media (max-width: 809.98px) {
  #fq { padding: 64px 24px 88px; gap: 28px; }
  .fq-q { font-size: 21px; line-height: 26px; }
}

/* Keep hyphenated words like "private-label" from breaking across lines. */
.fq-a .nw { white-space: nowrap; }
