/* Help center — extends /styles.css */
.help-header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.help-header-nav a.help-nav-label {
  font-weight: 700;
  color: var(--ink);
}

.help-header-nav a.help-nav-label:hover {
  color: var(--accent);
}

.help-main {
  padding: 40px 0 80px;
  min-height: 60vh;
}

.help-hero {
  text-align: center;
  padding: 24px 0 40px;
}

.help-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 12px;
  color: #1F2A44;
}

.help-hero p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
}

.help-search {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.help-search input {
  width: 100%;
  padding: 16px 20px 16px 48px;
  border: 1px solid var(--track);
  border-radius: var(--radius-md);
  background: var(--white);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.help-search input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.help-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.help-search-results {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background: var(--white);
  border: 1px solid var(--track);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  text-align: left;
  z-index: 50;
  max-height: 420px;
  overflow: auto;
}

.help-search-results.open {
  display: block;
}

.help-search-results a {
  display: block;
  padding: 14px 18px;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
}

.help-search-results a:last-child {
  border-bottom: none;
}

.help-search-results a:hover,
.help-search-results a:focus {
  background: var(--accent-soft);
  color: var(--ink);
}

.help-search-results .sr-cat {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.help-search-results .sr-title {
  font-weight: 700;
}

.help-search-results .sr-sum {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 2px;
}

.help-search-results .sr-empty {
  padding: 18px;
  color: var(--muted);
}

.help-section-title {
  font-size: 1.35rem;
  color: #1F2A44;
  margin: 48px 0 20px;
}

.help-topics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.help-topic-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}

.help-topic-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  color: var(--ink);
  transform: translateY(-1px);
}

.help-topic-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #1F2A44;
}

.help-topic-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.help-featured {
  list-style: none;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.help-featured li {
  border-bottom: 1px solid var(--hairline);
}

.help-featured li:last-child {
  border-bottom: none;
}

.help-featured a {
  display: block;
  padding: 16px 20px;
  color: var(--ink);
  font-weight: 600;
}

.help-featured a:hover {
  background: var(--accent-soft);
  color: var(--ink);
}

.help-featured .feat-cat {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.help-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.help-breadcrumbs a {
  color: var(--muted);
  font-weight: 600;
}

.help-breadcrumbs a:hover {
  color: var(--accent);
}

.help-breadcrumbs span.sep {
  color: var(--track);
}

.help-article,
.help-category {
  max-width: 760px;
}

.help-article h1,
.help-category h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  color: #1F2A44;
  margin-bottom: 12px;
}

.help-lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.55;
}

.help-body h2 {
  font-size: 1.25rem;
  color: #1F2A44;
  margin: 32px 0 12px;
}

.help-body p {
  margin: 0 0 14px;
  line-height: 1.65;
}

.help-body ul,
.help-body ol {
  margin: 0 0 16px;
  padding-left: 1.35rem;
}

.help-body li {
  margin: 6px 0;
  line-height: 1.55;
}

.help-body strong {
  font-weight: 700;
}

.help-body a {
  font-weight: 600;
}

.help-note {
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 20px 0;
  color: var(--ink);
  font-size: 0.95rem;
}

.help-note p {
  margin: 0;
}

.help-related {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--track);
}

.help-related h2 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: #1F2A44;
}

.help-related ul {
  list-style: none;
  padding: 0;
}

.help-related li {
  margin: 0;
}

.help-related a {
  display: block;
  padding: 10px 0;
  font-weight: 600;
  border-bottom: 1px solid var(--hairline);
}

.help-article-list {
  list-style: none;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-top: 8px;
}

.help-article-list li {
  border-bottom: 1px solid var(--hairline);
}

.help-article-list li:last-child {
  border-bottom: none;
}

.help-article-list a {
  display: block;
  padding: 16px 20px;
  color: var(--ink);
}

.help-article-list a:hover {
  background: var(--accent-soft);
  color: var(--ink);
}

.help-article-list .al-title {
  font-weight: 700;
  display: block;
}

.help-article-list .al-sum {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 4px;
  font-weight: 400;
}

.help-footer.footer {
  margin-top: 0;
}

.help-footer .footer-col a {
  display: block;
}

@media (max-width: 640px) {
  .help-main {
    padding: 24px 0 56px;
  }

  .help-hero {
    padding: 8px 0 28px;
  }

  .help-header-nav a:not(.btn) {
    display: none;
  }
}

/* Anchored sections: clear the sticky header when an email deep-links to #section */
.help-body [id],
.help-toc {
  scroll-margin-top: 88px;
}

.help-body h3 {
  font-size: 1.05rem;
  color: #1F2A44;
  margin: 22px 0 8px;
}

.help-toc {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 0 0 28px;
  box-shadow: var(--shadow-sm);
}

.help-toc h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 8px;
}

.help-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 24px;
}

.help-toc li {
  margin: 4px 0;
  break-inside: avoid;
}

.help-toc a {
  font-weight: 600;
  font-size: 0.95rem;
}

.help-steps {
  list-style: none;
  counter-reset: step;
  padding-left: 0 !important;
}

.help-steps > li {
  counter-increment: step;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 8px 28px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 20px 20px 20px 60px;
  margin: 0 0 14px !important;
  box-shadow: var(--shadow-sm);
}

.help-steps > li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
}

.help-steps > li:only-child {
  padding-left: 20px;
}

.help-steps > li:only-child::before {
  display: none;
}

.help-steps .step-text h3 {
  margin: 2px 0 8px;
}

.help-steps .step-text p:last-child {
  margin-bottom: 0;
}

.help-steps > li > .step-text:only-child {
  grid-column: 1 / -1;
}

.help-fig {
  margin: 0;
  text-align: center;
}

.help-body > .help-fig {
  margin: 8px auto 22px;
  max-width: 240px;
}

.help-fig img {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  margin: 0 auto;
}

/* Looping 'turn on alerts' animation (same demo as the app's setup screen), shown on its white card. */
.help-body > .help-fig.help-anim {
  max-width: 320px;
}

.help-fig.help-anim img {
  max-width: 300px;
  border-radius: 20px;
  border: 1px solid var(--hairline);
}

.help-fig figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.4;
}

.help-bank {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 4px 20px 16px;
  margin: 0 0 14px;
  box-shadow: var(--shadow-sm);
}

.help-bank h3 {
  margin-top: 16px;
}

.help-body p.help-guide {
  margin: 8px 0 6px;
}

.help-guide-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-left: 8px;
}

.help-body p.help-guide-alt {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 12px;
}

.help-body p.help-what {
  margin-bottom: 4px;
}

.help-source {
  font-size: 0.85rem;
  color: var(--muted);
}

.help-body p.help-source {
  margin-top: -4px;
}

.help-source a {
  font-weight: 600;
}

@media (max-width: 640px) {
  .help-toc ul {
    columns: 1;
  }

  .help-steps > li {
    grid-template-columns: 1fr;
    padding: 18px 16px 18px 54px;
  }

  .help-steps > li::before {
    left: 14px;
    top: 16px;
  }

  .help-steps .help-fig {
    margin: 10px 0 0 -38px;
  }

  .help-steps > li:only-child .help-fig {
    margin-left: 0;
  }

  .help-fig img {
    max-width: 210px;
  }
}

/* Bank finder on the alerts article, and the per-bank pages */
.help-bank-finder {
  margin: 12px 0 20px;
}

.help-bank-filter-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.help-bank-filter {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font: inherit;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--white);
  margin-bottom: 8px;
}

.help-bank-filter:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.help-body .help-bank-group h3 {
  margin: 18px 0 8px;
}

.help-bank-list,
.help-body ul.help-bank-peers {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
}

.help-bank-list li,
.help-body ul.help-bank-peers li {
  margin: 0;
}

.help-bank-list a,
.help-body ul.help-bank-peers a {
  display: block;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.help-bank-list a:hover,
.help-bank-list a:focus,
.help-body ul.help-bank-peers a:hover,
.help-body ul.help-bank-peers a:focus {
  border-color: var(--accent);
}

.help-bank-list li[hidden],
.help-bank-group[hidden] {
  display: none;
}

.help-bank-empty {
  color: var(--muted);
}
