/* ============================================================
   Account journey help additions (2026-10-13)
   Scoped to the new markup only:
     - sign-in verification status paragraph
     - public "Need help?" auth links
     - support page FAQ details/summary
   Uses existing FluxGeko design tokens only.
   ============================================================ */

/* Sign-in verification result. Codex populates the message text. */
#verification-feedback {
  margin: 0 0 var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-2);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: var(--fs-sm);
  line-height: 1.4;
  text-align: left;
}

#verification-feedback[hidden] {
  display: none;
}

/* Public "Need help?" link rendered beside the existing auth links. */
.auth-help a {
  color: var(--accent-text);
  text-decoration: none;
}

.auth-help a:hover {
  text-decoration: underline;
}

.auth-help a:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--r-1);
}

/* Public FAQ on /html/support.html. */
.faq {
  max-width: 1040px;
  margin: 0 auto var(--sp-6);
}

.faq h2 {
  margin: 0 0 var(--sp-3);
  font-size: var(--fs-2xl);
  font-weight: var(--w-heading);
  letter-spacing: var(--track-display);
  line-height: 1.2;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  box-shadow: var(--highlight);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: var(--ctrl-h-lg); /* 44px */
  padding: var(--sp-3) var(--sp-4);
  color: var(--text);
  font-size: var(--fs-md);
  font-weight: var(--w-medium);
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: var(--fs-lg);
  line-height: 1;
  transition: transform var(--t-fast) var(--ease);
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--border);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:focus-visible {
  outline: none;
  /* Inset ring keeps the focus visible inside the overflow-hidden item. */
  box-shadow: inset 0 0 0 2px rgb(var(--blue-rgb) / 0.45);
}

.faq-item p {
  margin: 0;
  padding: var(--sp-4);
  color: var(--text-2);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.faq-item p a {
  color: var(--accent-text);
  text-underline-offset: 2px;
}

@media (max-width: 520px) {
  .faq-item summary {
    /* Keep a clear 44px tap/click target on mobile even when the question wraps. */
    padding: var(--sp-3) var(--sp-4);
    min-height: var(--ctrl-h-lg);
  }
}
