/* Help pages. Tokens come from site.css. */

.ht-nav-link[aria-current="page"] {
  color: var(--text);
}

.ht-help-index,
.ht-help-frame {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.ht-help-frame {
  max-width: 1120px;
}

.ht-help-index h1,
.ht-help-article h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.2;
  font-weight: 700;
}

.ht-help-lead {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.ht-help-webnote {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.ht-help-group h2 {
  margin: 28px 0 12px;
  font-size: 22px;
  line-height: 1.25;
}

.ht-help-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.ht-help-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
}

.ht-help-card h3 {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 18px;
  line-height: 1.3;
}

.ht-help-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.ht-help-card:hover,
.ht-help-card:focus-visible {
  border-color: var(--accent);
}

.ht-help-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ht-help-article {
  max-width: 880px;
  min-width: 0;
}

.ht-help-article h2 {
  margin: 28px 0 8px;
  font-size: 22px;
  line-height: 1.25;
}

.ht-help-article h3 {
  margin: 18px 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.ht-help-article p,
.ht-help-article li {
  line-height: 1.55;
}

.ht-help-article ul,
.ht-help-article ol {
  margin: 8px 0 16px;
  padding-left: 1.2em;
}

.ht-help-article li {
  margin: 4px 0;
}

.ht-help-article a,
.ht-help-index a:not(.ht-help-card) {
  color: var(--accent);
}

.ht-help-crumb {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.ht-help-crumb a {
  color: var(--muted);
  text-decoration: none;
}

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

.ht-help-toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}

.ht-help-toc-title {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.ht-help-toc ol {
  margin: 0;
  padding-left: 1.2em;
}

.ht-help-toc li {
  margin: 4px 0;
}

.ht-help-toc a {
  color: var(--muted);
  text-decoration: none;
}

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

.ht-help-pill {
  display: inline-block;
  margin: 0 0 8px;
  padding: 2px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.ht-help-note {
  margin: 12px 0;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
}

.ht-help-note p {
  margin: 0;
}

.ht-help-shots {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 12px 0 0;
}

.ht-help-shot {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.ht-help-shot-phone {
  width: 260px;
  max-width: 100%;
}

.ht-help-shot-web {
  width: 100%;
  min-width: 0;
}

.ht-help-shot a {
  display: block;
}

.ht-help-shot img {
  display: block;
  width: 100%;
  height: auto;
  background: #0b1320;
}

.ht-help-shot figcaption {
  margin: 0;
  padding: 8px 10px 10px;
  color: var(--muted);
  font-size: 12px;
}

.ht-help-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 14px;
}

.ht-help-article th,
.ht-help-article td {
  border-top: 1px solid var(--border);
  padding: 8px 6px;
  text-align: left;
  vertical-align: top;
}

.ht-help-article th {
  color: var(--muted);
  font-weight: 600;
}

.ht-help-article td img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.ht-help-stuck {
  margin: 36px 0 0;
  color: var(--muted);
}

.ht-help-stores {
  margin-top: 12px;
}

@media (min-width: 600px) {
  .ht-help-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 700px) {
  .ht-help-shots {
    flex-direction: row;
    align-items: flex-start;
  }

  .ht-help-shot-web {
    flex: 1 1 320px;
  }
}

@media (min-width: 1024px) {
  .ht-help-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .ht-help-layout {
    display: grid;
    grid-template-columns: minmax(0, 880px) 220px;
    gap: 28px;
    align-items: start;
  }

  .ht-help-article {
    grid-column: 1;
    grid-row: 1;
  }

  .ht-help-toc {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 88px;
  }
}
