/* FAQ hub: handoff layout, with shared tokens and the global navigation/footer. */
body.tc-page:has(.tc-faq-page) > .page-wrapper {
  padding-top: 0;
}

.tc-faq-page {
  position: relative;
  z-index: 1;
}

.tc-faq-hero {
  padding: 120px 0 60px;
  position: relative;
}

.tc-faq-hero-inner {
  position: relative;
  z-index: 2;
}

.tc-kicker {
  font-family: var(--tc-font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--tc-ink-3);
  font-weight: 400;
  display: inline-block;
}

.tc-faq-hero .tc-kicker {
  margin-bottom: 28px;
}

.tc-faq-hero .tc-faq-lede {
  margin-bottom: 40px;
}

.tc-faq-title {
  font-family: var(--tc-font-body) !important;
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 700;
  line-height: 1.02;
  margin: 24px 0 28px;
  letter-spacing: -0.02em;
  max-width: 22ch;
}

.tc-faq-lede {
  font-size: clamp(17px, 1.4vw, 21px);
  color: var(--tc-ink-2);
  line-height: 1.55;
  max-width: 62ch;
  margin: 0;
}

.tc-faq-archive {
  padding: 40px 0 120px;
}

.tc-faq-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin-bottom: 56px;
  padding: 24px;
  background: var(--tc-card);
  border: 1px solid var(--tc-line);
  border-radius: 20px;
}

.tc-faq-section-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--tc-canvas-2);
  color: var(--tc-ink);
  text-decoration: none;
  font-family: var(--tc-font-display);
  font-weight: 500;
  font-size: 14px;
}

.tc-faq-section-link > span:not([class]) {
  color: var(--tc-ink) !important;
}

.tc-faq-count {
  font-family: var(--tc-font-mono);
  font-size: 11px;
  color: var(--tc-accent);
}

.tc-faq-group {
  margin-bottom: 80px;
  scroll-margin-top: 100px;
}

.tc-faq-group-head {
  margin-bottom: 32px;
}

.tc-faq-group-title {
  font-family: var(--tc-font-display);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.01em;
  margin: 16px 0 8px;
}

.tc-faq-group-description {
  color: var(--tc-ink-2);
  max-width: 60ch;
}

.tc-faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tc-faq-item {
  background: var(--tc-card);
  border: 1px solid var(--tc-line);
  border-radius: 20px;
  padding: 4px 28px;
  scroll-margin-top: 100px;
  transition: border-color 200ms;
}

.tc-faq-item:hover {
  border-color: var(--tc-line-2);
}

.tc-faq-item[open] {
  border-color: color-mix(in srgb, var(--tc-accent) 35%, var(--tc-line));
}

.tc-faq-summary {
  list-style: none;
  cursor: pointer;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--tc-font-display);
  font-weight: 500;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--tc-ink);
  transition: color 200ms;
}

.tc-faq-summary::-webkit-details-marker {
  display: none;
}

.tc-faq-summary:hover {
  color: var(--tc-accent);
}

.tc-faq-summary .tc-q-num {
  font-family: var(--tc-font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--tc-accent);
  min-width: 44px;
}

.tc-faq-summary .tc-q-text {
  flex: 1;
  min-width: 0;
}

.tc-faq-question-title {
  all: inherit;
  display: inline;
  scroll-margin-top: 100px;
}

.tc-faq-summary .tc-faq-x {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--tc-line-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition: transform 300ms cubic-bezier(0.2, 0.7, 0.3, 1), border-color 200ms, background 200ms;
  color: var(--tc-ink-2);
}

.tc-faq-item[open] .tc-faq-summary .tc-faq-x {
  background: color-mix(in srgb, var(--tc-accent) 12%, transparent);
  border-color: color-mix(in srgb, var(--tc-accent) 35%, transparent);
  color: var(--tc-accent);
  transform: rotate(45deg);
}

.tc-faq-summary .tc-faq-x::before,
.tc-faq-summary .tc-faq-x::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.tc-faq-summary .tc-faq-x::before {
  width: 12px;
  height: 1.5px;
}

.tc-faq-summary .tc-faq-x::after {
  width: 1.5px;
  height: 12px;
}

.tc-faq-body {
  padding: 0 0 28px 60px;
  max-width: 68ch;
  color: var(--tc-ink-2);
  font-size: 15.5px;
  line-height: 1.65;
}

@media (max-width: 640px) {
  .tc-faq-group {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .tc-faq-group-title {
    line-height: 1.08;
  }
}
