/* Help center: a large search, topic cards, popular articles and a reading view
   with the category's other articles alongside. Same panels, pills and blue as
   the rest of the site. */
.help-hero { padding: 76px 0 40px; text-align: center; }
.help-hero h1 { font-size: clamp(40px, 5.4vw, 76px); }
.help-search { position: relative; max-width: 680px; margin: 36px auto 0; }
.help-search > svg { position: absolute; left: 24px; top: 50%; color: #a9a9b0; transform: translateY(-50%); pointer-events: none; }
.help-search input {
  width: 100%;
  min-height: 62px;
  padding: 0 24px 0 56px;
  border: 1px solid #3a3a3d;
  border-radius: 999px;
  background: #242426;
  color: #fff;
  font: inherit;
  font-size: 17px;
  transition: border-color .2s ease, background .2s ease;
}
.help-search input::placeholder { color: #8e8e95; }
.help-search input:focus { outline: none; border-color: var(--accent); background: #262628; }
.help-search input::-webkit-search-cancel-button { filter: invert(1) opacity(.6); }
.help-results { position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 20; max-height: min(420px, 60vh); overflow-y: auto; padding: 8px; border: 1px solid #ffffff14; border-radius: 20px; background: #212123; box-shadow: 0 24px 70px #000a; text-align: left; }
.help-results a { display: grid; gap: 3px; padding: 11px 14px; border-radius: 12px; color: #fff; }
.help-results a:hover, .help-results a:focus-visible { background: #ffffff0f; outline: none; }
.help-results a small { color: #9c9ca3; font-size: 13px; }
.help-results p { margin: 0; padding: 14px; color: #9c9ca3; font-size: 15px; }

.help-section-title { margin-bottom: 22px; font-size: clamp(24px, 2.4vw, 32px); }
.help-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.help-card { display: grid; align-content: start; gap: 10px; padding: 26px 26px 22px; border: 1px solid #353535; border-radius: 22px; background: #202020; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.help-card:hover { border-color: #4a4a4e; background: #242426; transform: translateY(-2px); }
.help-card .help-icon { box-sizing: content-box; width: 24px; height: 24px; margin-bottom: 8px; padding: 12px; border-radius: 14px; background: #ffffff0d; color: #c96bff; }
.help-card h3 { font-size: 19px; font-weight: 500; }
.help-card p { margin: 0; font-size: var(--note-size, 14px); line-height: 1.5; }
.help-count { color: #8e8e95; font-size: 13px; }

.help-home-bottom { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px clamp(48px, 7vw, 112px); margin: 64px 0 96px; }
.help-popular { margin: 0; padding: 0; list-style: none; counter-reset: popular; }
.help-popular li { counter-increment: popular; border-bottom: 1px solid var(--line); }
.help-popular a { display: grid; grid-template-columns: 34px 1fr; column-gap: 6px; row-gap: 2px; padding: 16px 0; }
.help-popular a::before { content: counter(popular, decimal-leading-zero); grid-row: span 2; color: #6f6f76; font-family: var(--mono); font-size: 13px; line-height: 1.6; }
.help-popular span { color: #f5f5f7; font-size: var(--reading-size, 17px); }
.help-popular small { color: #8e8e95; font-size: 13px; }
.help-popular a:hover span { color: #c96bff; }
.help-contact { align-self: start; padding: 30px; border: 1px solid #353535; border-radius: 22px; background: #202020; }
.help-contact h2 { font-size: 24px; }
.help-contact p { margin: 14px 0 22px; font-size: var(--note-size, 14px); line-height: 1.55; }

.help-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 8px; color: #8e8e95; font-size: 14px; }
.help-crumbs a { color: #d1d1d6; }
.help-crumbs a:hover { color: #fff; }
.help-crumbs span[aria-hidden] { color: #5c5c62; }

/* Without JavaScript every category and article is listed here, in order. */
.help-library { padding-bottom: 40px; }
.help-category { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 48px; padding: 40px 0; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.help-side-head { display: flex; align-items: center; gap: 12px; }
.help-side-head .help-icon { color: var(--accent); flex-shrink: 0; }
.help-side h2 { font-size: 22px; }
.help-side > p { margin: 10px 0 18px; font-size: 14px; line-height: 1.5; }
.help-links { margin: 0; padding: 0; list-style: none; }
.help-links a { display: block; padding: 9px 12px; border-radius: 10px; color: #b7b7bd; font-size: 15px; line-height: 1.4; }
.help-links a:hover { color: #fff; background: #ffffff0a; }
.help-links a[aria-current="page"] { color: #fff; background: #ffffff14; box-shadow: inset 2px 0 0 var(--accent); }
.help-article { scroll-margin-top: 100px; }
.help-article + .help-article { margin-top: 44px; padding-top: 44px; border-top: 1px solid var(--line); }
.help-article:focus { outline: none; }
.help-article h3 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.035em; line-height: 1.15; }
.help-body { max-width: 68ch; margin-top: 22px; }
.help-body p, .help-body li { color: #c6c6cc; font-size: var(--reading-size, 17px); line-height: 1.65; }
.help-body p { margin: 0 0 16px; }
.help-body ul { margin: 0 0 18px; padding: 0; list-style: none; }
.help-body li { position: relative; padding: 10px 0 10px 24px; border-bottom: 1px solid var(--line); }
.help-body li::before { content: "+"; position: absolute; left: 0; color: #8f969f; }
.help-body .help-note { padding: 16px 18px; border-radius: 14px; background: #ffffff0a; color: #d0d0d6; font-size: var(--note-size, 15px); line-height: 1.55; }
.help-body .text-link { display: inline; }

/* Views set by help.js. While reading, the search stays but the title steps back. */
body[data-help-view="category"] .help-hero, body[data-help-view="article"] .help-hero { padding: 40px 0 24px; }
body[data-help-view="category"] .help-hero h1, body[data-help-view="article"] .help-hero h1 { font-size: clamp(26px, 2.6vw, 34px); }
body[data-help-view="category"] .help-search, body[data-help-view="article"] .help-search { margin-top: 20px; }
.help-js .help-category { grid-template-columns: 1fr; border-top: 0; padding-top: 24px; }
.help-js .help-category.is-list .help-side { max-width: 760px; }
.help-js .help-category.is-list .help-side h2 { font-size: clamp(30px, 3.4vw, 44px); }
.help-js .help-category.is-list .help-side-head .help-icon { width: 30px; height: 30px; }
.help-js .help-category.is-list .help-links a { padding: 16px 0; border-bottom: 1px solid var(--line); border-radius: 0; color: #f5f5f7; font-size: var(--reading-size, 17px); }
.help-js .help-category.is-list .help-links a:hover { background: none; color: #c96bff; }
.help-js .help-category.is-reading { grid-template-columns: minmax(220px, 280px) 1fr; }
.help-js .help-category.is-reading .help-side { position: sticky; top: 96px; align-self: start; }
.help-js .help-article + .help-article { margin-top: 0; padding-top: 0; border-top: 0; }
.help-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-bottom: 96px; }
.help-pager a { display: grid; gap: 4px; padding: 18px 22px; border: 1px solid #353535; border-radius: 18px; background: #202020; }
.help-pager a:hover { border-color: #4a4a4e; }
.help-pager a[hidden] { display: none; }
.help-pager small { color: #8e8e95; font-size: 13px; }
.help-pager span { color: #fff; font-size: 16px; }
.help-next { grid-column: 2; text-align: right; }

@media (max-width: 1000px) {
  .help-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-home-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .help-category, .help-js .help-category.is-reading { grid-template-columns: 1fr; gap: 28px; }
  .help-js .help-category.is-reading .help-side { position: static; order: 2; padding-top: 28px; border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .help-hero { padding: 48px 0 28px; }
  .help-search input { min-height: 56px; font-size: 16px; }
  .help-grid { grid-template-columns: 1fr; }
  .help-card { grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 4px; padding: 18px; }
  .help-card .help-icon { grid-row: span 3; margin: 0; padding: 10px; }
  .help-card h3 { font-size: 17px; }
  .help-home-bottom { margin: 48px 0 64px; }
  .help-contact { padding: 24px 20px; }
  .help-pager { grid-template-columns: 1fr; }
  .help-next { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) { .help-card, .help-search input { transition: none; } .help-card:hover { transform: none; } }
