/* The help centre: the Support page, topic pages and articles (built by tools/build-help.mjs). */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.help-wrap { max-width: 1200px; margin: 0 auto; }
.help-wrap.narrow { max-width: 820px; display: flex; flex-direction: column; gap: 28px; }

.help-hero { background: #f6f8fb; border-bottom: 1px solid #e4e7ec; padding: clamp(56px, 7vw, 88px) clamp(16px, 4vw, 32px); }
.help-hero.small { padding-block: clamp(32px, 4vw, 48px); }
.help-hero-inner { max-width: 760px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.help-eyebrow { font-size: 14px; font-weight: 700; color: #2563eb; }
.help-hero h1 { margin: 0; font-size: clamp(40px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 800; text-wrap: balance; }
.help-hero.small h1 { font-size: clamp(30px, 4vw, 42px); }
.help-hero p { margin: 0; font-size: 18px; line-height: 1.6; color: #5b6577; }
.help-hero.small p { font-size: 16.5px; }

/* Search: a big box with suggestions under it as you type. */
.help-search { position: relative; width: 100%; max-width: 620px; text-align: left; }
.help-hero.small .help-search { margin-top: 20px; }
.help-search-icon { position: absolute; left: 16px; top: 15px; color: #5b6577; pointer-events: none; }
.help-search input { width: 100%; height: 52px; padding: 0 16px 0 48px; border: 1px solid #8a93a3; border-radius: 12px; background: #ffffff; font-size: 17px; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05); }
.help-search input::-webkit-search-cancel-button { cursor: pointer; }
.help-results { position: absolute; z-index: 15; left: 0; right: 0; top: calc(100% + 6px); max-height: min(440px, 60vh); overflow-y: auto; background: #ffffff; border: 1px solid #e4e7ec; border-radius: 12px; box-shadow: 0 16px 40px rgba(16, 24, 40, 0.14); padding: 6px; }
.help-results a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 8px; color: #101828; text-decoration: none; }
.help-results a:hover, .help-results a[aria-selected="true"] { background: #f2f6fd; text-decoration: none; }
.help-results .r-title { font-weight: 600; font-size: 15px; }
.help-results .r-meta { font-size: 13.5px; color: #5b6577; }
.help-results mark { background: #fef0c7; color: inherit; border-radius: 2px; }
.help-results .r-none { padding: 14px 12px; font-size: 14.5px; color: #5b6577; }

.help-band { padding: clamp(48px, 6vw, 72px) clamp(16px, 4vw, 32px); }
.help-band + .help-band { padding-top: 0; }
.help-h2 { margin: 0 0 20px; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.15; letter-spacing: -0.03em; font-weight: 800; }

/* Topics */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.topic-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid #e4e7ec; border-radius: 16px; background: #ffffff; color: #101828; text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; }
.topic-card:hover { border-color: #93b8ff; box-shadow: 0 6px 20px rgba(37, 99, 235, 0.08); text-decoration: none; color: #101828; }
.topic-icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.topic-icon.big { width: 56px; height: 56px; border-radius: 12px; }
.topic-icon.tiny { width: 26px; height: 26px; border-radius: 6px; }
.topic-title { margin-top: 6px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.topic-blurb { font-size: 15px; line-height: 1.5; color: #5b6577; flex: 1; }
.topic-count { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: #2563eb; }

.popular { display: flex; flex-direction: column; border: 1px solid #e4e7ec; border-radius: 16px; overflow: hidden; background: #ffffff; }
.popular-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; color: #101828; text-decoration: none; border-top: 1px solid #e4e7ec; }
.popular-row:first-child { border-top: 0; }
.popular-row:hover { background: #f9fafb; text-decoration: none; color: #101828; }
.popular-row > svg { flex: none; color: #2563eb; }
.popular-row > span { display: grid; gap: 2px; min-width: 0; }
.popular-title { font-weight: 600; font-size: 16px; }
.popular-summary { font-size: 14.5px; color: #5b6577; }

.category-head { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
.category-head h1 { margin: 0; text-align: left; }
.category-head p { margin: 4px 0 0; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: #5b6577; }
.crumbs a { color: #5b6577; }
.crumbs a:hover { color: #2563eb; }
.crumbs [aria-current] { color: #344054; }

.still-stuck { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-radius: 14px; background: #f6f8fb; border: 1px solid #e4e7ec; }
.still-stuck div { display: grid; gap: 2px; }
.still-stuck span { font-size: 15px; color: #5b6577; }
.btn-outline { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 8px; border: 1px solid #d0d5dd; background: #ffffff; color: #101828; font-weight: 600; text-decoration: none; }
.btn-outline:hover { border-color: #93b8ff; color: #101828; text-decoration: none; }

/* Articles: the topic's list on the left, the article on the right. */
.article-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; padding: clamp(32px, 4vw, 48px) clamp(16px, 4vw, 32px) clamp(56px, 7vw, 88px); align-items: start; }
.article-nav { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; }
.article-nav a { padding: 7px 10px; border-radius: 8px; color: #344054; text-decoration: none; line-height: 1.35; }
.article-nav a:hover { background: #f6f8fb; color: #101828; text-decoration: none; }
.article-nav a[aria-current] { background: #e8f0fe; color: #1d4ed8; font-weight: 600; }
.article-nav .article-nav-head { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #101828; margin-bottom: 6px; }
.article { max-width: 720px; display: flex; flex-direction: column; gap: 18px; }
.article h1 { margin: 6px 0 0; font-size: clamp(32px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 800; text-wrap: balance; }
.article .lede { margin: 0; font-size: 18.5px; line-height: 1.55; color: #5b6577; }

.on-this-page { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 14px 16px; border: 1px solid #e4e7ec; border-radius: 12px; font-size: 14.5px; }
.on-this-page strong { flex-basis: 100%; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: #5b6577; }

.prose { font-size: 16.5px; line-height: 1.7; color: #1d2939; }
.prose > * { margin: 0 0 16px; }
.prose h2 { margin: 36px 0 12px; font-size: 24px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 750; color: #101828; scroll-margin-top: 90px; }
.prose h3 { margin: 26px 0 8px; font-size: 18.5px; line-height: 1.3; font-weight: 700; color: #101828; scroll-margin-top: 90px; }
.prose ol, .prose ul { padding-left: 24px; }
.prose li { margin: 6px 0; padding-left: 4px; }
.prose ol li::marker { font-weight: 700; color: #2563eb; }
.prose strong { font-weight: 650; color: #101828; }
.prose code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 0.92em; background: #f2f4f7; border-radius: 4px; padding: 1px 5px; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.callout { padding: 14px 16px 14px 18px; border-radius: 10px; border-left: 4px solid #2563eb; background: #f2f6fd; font-size: 15.5px; line-height: 1.6; }
.callout.tip { border-color: #12b76a; background: #ecfdf3; }
.callout.important { border-color: #f79009; background: #fffaeb; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.pager-link { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid #e4e7ec; border-radius: 12px; color: #101828; font-weight: 600; text-decoration: none; }
.pager-link span { font-size: 13px; font-weight: 500; color: #5b6577; }
.pager-link.next { text-align: right; }
.pager-link:hover { border-color: #93b8ff; text-decoration: none; color: #101828; }

@media (max-width: 860px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .article-nav { position: static; order: 2; border-top: 1px solid #e4e7ec; padding-top: 24px; }
  .category-head { align-items: flex-start; }
}

@media (max-width: 520px) {
  .pager { grid-template-columns: 1fr; }
  .pager-link.next { text-align: left; }
}
