/* HELP-1: the help centre, its articles and the small "?" links on app screens. Uses the colour tokens only. */
.swap-help--index { max-width: 44rem; }
.swap-help-list { display: flex; flex-direction: column; gap: 0.75rem; }
/* Only a result that has a visible result before it gets a divider, so searching never leaves a line above the first match. */
.swap-help-list > li:not([hidden]) ~ li:not([hidden]) { border-top: 1px solid var(--swap-border, #dce1e7); padding-top: 0.75rem; }
.swap-help-group { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--swap-slate-600, #475569); margin: 0 0 0.6rem; }
.swap-help-groups > section + section { margin-top: 1.5rem; }
@media (min-width: 992px) {
  .swap-help--index { max-width: 62rem; }
  .swap-help-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 2.5rem; align-items: start; }
  .swap-help-groups > section + section { margin-top: 0; }
}
.swap-help-title { display: inline-block; font-weight: 600; min-height: 24px; }
/* On touch screens the whole entry is the tap target (44 px or more) without changing its layout: the title's link is stretched over
   its list item. With a mouse the stretched link would make the summary unselectable (a drag selects nothing, a double-click opens
   the guide), so there the title alone is the link, as before; it is at least 24 px tall. */
.swap-help-list > li { position: relative; }
@media (pointer: coarse) {
  .swap-help-title::after { content: ""; position: absolute; inset: 0; }
}
.swap-help-summary { display: block; color: var(--swap-slate-600, #475569); }
.swap-help-search { max-width: 32rem; }

/* An article: a readable column, numbered steps with room to tap, and a callout for the things to know. */
.swap-article h2 { margin-top: 1.75rem; }
.swap-article h2:first-of-type { margin-top: 1rem; }
.swap-article ol, .swap-article ul { padding-left: 1.4rem; }
.swap-article li { margin-bottom: 0.4rem; }
.swap-article .swap-lead { font-size: 1.1rem; color: var(--swap-slate-600, #475569); }
.swap-article .swap-note { border-left: 4px solid var(--swap-gold-400, #d4a64a); background: var(--swap-ivory-100, #f6f3ea); padding: 0.75rem 1rem; border-radius: 0 6px 6px 0; margin: 1rem 0; }
.swap-article .swap-note > :last-child { margin-bottom: 0; }
.swap-article .swap-label { font-weight: 600; }
.swap-article figure { margin: 1rem 0; }
.swap-article figure img { max-width: 100%; height: auto; border: 1px solid var(--tblr-border-color, #dce1e7); border-radius: 8px; }
.swap-article figcaption { font-size: 0.875rem; color: var(--swap-slate-600, #475569); margin-top: 0.35rem; }
.swap-article table { width: 100%; }
.swap-article-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; align-items: center; font-size: 0.9rem; }
/* The breadcrumb's "Help" link is a 44 px target in both layouts: signed-out visitors get the public layout, which has no nav.css (.swap-back-link). */
.swap-article-nav > a { display: inline-flex; align-items: center; min-height: 44px; }
.swap-table-scroll { overflow-x: auto; }

/* The "?" link beside a screen's title. A 44 px touch target, a visible focus ring from the base styles. */
.swap-help-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; margin: -8px 0;
  font-weight: 700; font-size: 1.05rem; line-height: 1; text-decoration: none;
  color: var(--swap-navy-900, #101e35);
}
.swap-help-link > span { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 2px solid currentColor; border-radius: 50%; }
.swap-help-link:hover > span, .swap-help-link:focus-visible > span { background: var(--swap-navy-900, #101e35); color: var(--swap-white, #fff); }
