/* Help Center: sits on legal.css (shell, header, hero, footer). */
.support-layout {
  /* Above the hero it overlaps, as .legal-layout is: without this the hero's
     ground covered the top of the first card and its heading. */
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
  margin-top: -64px;
  padding-bottom: 96px;
}

.support-layout [hidden] {
  display: none !important;
}

/* Search is the design system's search field, as in the app (FccSearchField):
   a surface pill with the card lift, the glyph and hint in muted, the focus
   ring while typing, and a clear button once there's text. The text is 16px
   rather than the app's 15, so an iPhone doesn't zoom the page on focus. */
.support-search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  height: 48px;
  margin-top: 28px;
  padding: 0 2px 0 16px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(43, 35, 128, .05), 0 6px 18px rgba(43, 35, 128, .06);
}

.support-search[hidden] {
  display: none;
}

.support-search:focus-within {
  box-shadow: inset 0 0 0 2px var(--indigo), 0 1px 2px rgba(43, 35, 128, .05), 0 6px 18px rgba(43, 35, 128, .06);
}

.support-search > svg {
  flex: none;
  color: var(--muted);
}

.support-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.support-search input::placeholder {
  color: var(--muted);
}

.support-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.support-search-clear {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.support-search-clear[hidden] {
  display: none;
}

.support-search-clear:hover,
.support-search-clear:focus-visible {
  color: var(--ink);
  background: #F1EFFF;
}

.legal-hero .support-results {
  min-height: 22px;
  margin: 12px 0 0;
  font-size: 15px;
}

.support-empty p {
  margin: 0;
  color: #505A6D;
  font-size: 17px;
  line-height: 1.7;
}

.support-block {
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid rgba(227, 230, 237, .92);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 22px 55px rgba(38, 38, 80, .08);
}

.support-block h2 {
  margin: 0 0 18px;
  font-size: 24px;
  letter-spacing: -.03em;
}

.issue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}

.issue {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  background: #FAFAFE;
}

.issue:hover,
.issue:focus-visible {
  border-color: #C9C4FF;
  background: #F1EFFF;
}

.topic-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-nav a {
  padding: 8px 14px;
  border: 1px solid #DAD7FF;
  border-radius: 999px;
  color: var(--indigo-ink);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.topic-nav a:hover,
.topic-nav a:focus-visible {
  background: #F1EFFF;
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-of-type {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  font-size: 17px;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  float: right;
  color: var(--muted);
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details > *:not(summary) {
  margin: 0 0 14px;
  color: #505A6D;
  line-height: 1.7;
}

.faq ol {
  padding-left: 22px;
}

.faq li {
  margin: 6px 0;
}

.faq .tip {
  padding: 12px 14px;
  border-radius: 12px;
  background: #FFF6E5;
  color: #6B4A00;
}

.contact p {
  margin: 0;
  color: #505A6D;
  font-size: 17px;
  line-height: 1.7;
}

details:target,
.support-block:target {
  scroll-margin-top: 90px;
}

details:target summary {
  color: var(--indigo-ink);
}
