/* Learn (help centre) */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.learn-hero { position: relative; overflow: hidden; color: #fff; padding: 64px 0 56px; border-bottom: 1px solid var(--stroke); background: radial-gradient(700px 320px at 85% -10%, rgb(59 123 255 / .28), transparent 70%), radial-gradient(500px 260px at 10% 120%, rgb(139 92 246 / .18), transparent 70%); }
.learn-hero h1 { font-size: clamp(32px, 4.4vw, 54px); font-weight: 600; letter-spacing: -0.035em; }
.learn-hero p { color: var(--text-2); font-size: 19px; margin-top: 12px; max-width: 56ch; }
.learn-hero .docs-search { max-width: 560px; margin-top: 28px; }
.learn-hero .quick { font-size: 15px; margin-top: 18px; }
.learn-hero .quick a { color: #fff; }

.learn-home { padding: 48px var(--gutter) 72px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; align-items: start; }
.learn-group h2 { font-size: 16px; font-weight: 600; padding-bottom: 12px; border-bottom: 1px solid var(--stroke-2); margin-bottom: 6px; color: var(--cyan); }
.learn-group ul { list-style: none; margin: 0; padding: 0; }
.learn-group a { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text); }
.learn-group a b { font-weight: 600; }
.learn-group a span { color: var(--text-2); font-size: 15px; line-height: 1.45; }
.learn-group a:hover b { color: var(--link); text-decoration: underline; }
.learn-home .help-box { grid-column: 1 / -1; }
@media (max-width: 980px) { .learn-home { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .learn-home { grid-template-columns: 1fr; } }

/* Search */
.docs-search { position: relative; }
.docs-search input {
  width: 100%; height: 46px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  padding: 0 14px 0 42px; font: 400 16px var(--font-body);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%235B6B82' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 14px center;
}
.learn-hero .docs-search input { border-color: var(--stroke-2); background-color: rgb(255 255 255 / .05); color: var(--text); height: 52px; border-radius: 14px; }
.q-results { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: 6px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 18px 40px -16px rgb(16 24 40 / .35); max-height: 60vh; overflow: auto; }
.q-results a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--text); }
.q-results a:hover, .q-results a:focus { background: rgb(47 107 255 / .09); outline: none; }
.q-results small { color: var(--text-2); font-size: 13.5px; }
.q-results .empty { padding: 12px; color: var(--text-2); font-size: 15px; }

/* Article layout */
.docs { max-width: 1340px; display: grid; grid-template-columns: 240px minmax(0, 1fr) 190px; gap: 44px; padding-top: 36px; padding-bottom: 72px; align-items: start; }
.docs-side { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; padding-bottom: 24px; }
.docs-nav { margin-top: 20px; }
.docs-nav h2 { font: 600 13.5px/1.3 var(--font-body); color: var(--text-2); letter-spacing: 0; margin: 18px 0 6px; }
.docs-nav ul { list-style: none; margin: 0; padding: 0; }
.docs-nav a { display: block; padding: 5px 10px; margin-left: -10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 15px; }
.docs-nav a:hover { background: rgb(47 107 255 / .08); }
.docs-nav a[aria-current="page"] { background: rgb(47 107 255 / .12); color: var(--link); font-weight: 600; }

.doc { min-width: 0; }
.crumbs { font-size: 14px; color: var(--text-2); }
.crumbs a { color: var(--text-2); }
.doc h1 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; letter-spacing: -0.03em; margin-top: 10px; }
.doc-summary { font-size: 19px; color: var(--text-2); margin-top: 12px; max-width: 62ch; }

.prose { margin-top: 28px; max-width: 70ch; }
.prose > figure.shot { max-width: none; width: min(100%, 780px); }
.doc .prose { max-width: 780px; }
.prose > p, .prose > ul, .prose > ol, .prose > h2, .prose > h3 { max-width: 68ch; }
.prose > * + * { margin-top: 16px; }
.prose h2 { font-size: 21px; font-weight: 600; margin-top: 44px; scroll-margin-top: 84px; }
.prose h3 { font-family: var(--font-body); font-size: 18px; font-weight: 700; margin-top: 30px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 6px; }
.prose ol > li::marker { font-weight: 700; color: var(--cobalt); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { font-weight: 600; background: rgb(47 107 255 / .06); }
.prose pre { border: 1px solid var(--stroke-2); background: rgb(2 5 12 / .85); color: #DCE5F3; padding: 16px 18px; border-radius: 12px; overflow-x: auto; font-size: 14px; line-height: 1.55; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose code { font-family: var(--font-mono); font-size: .88em; color: #CFE0FF; background: rgb(59 123 255 / .14); padding: 1px 6px; border-radius: 5px; }
.prose strong { font-weight: 650; }
.prose .callout { border-left: 4px solid var(--cobalt); background: rgb(47 107 255 / .07); padding: 14px 16px; border-radius: 0 10px 10px 0; }
.prose .callout-important { border-left-color: var(--warn); background: rgb(245 158 11 / .10); }
.prose .callout-tip { border-left-color: var(--cyan); background: rgb(6 182 212 / .09); }

.toc { position: sticky; top: 84px; font-size: 14px; }
.toc h2 { font: 600 13.5px/1.3 var(--font-body); color: var(--text-2); letter-spacing: 0; margin-bottom: 8px; }
.toc ul { list-style: none; margin: 0; padding: 0 0 0 12px; border-left: 1px solid var(--border); display: grid; gap: 6px; }
.toc a { color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--link); }

.help-box { margin-top: 48px; padding: 26px; border-radius: var(--r-lg); background: radial-gradient(400px 200px at 100% 0%, rgb(34 211 238 / .14), transparent 70%), var(--surface); border: 1px solid var(--stroke-2); display: grid; gap: 8px; justify-items: start; }
.help-box h2 { font-size: 18px; }
.help-box p { color: var(--text-2); }
.help-box .btn { margin-top: 6px; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.pager a { display: grid; gap: 2px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--r-md); text-decoration: none; color: var(--text); font-weight: 600; }
.pager a:hover { border-color: var(--cobalt); }
.pager small { color: var(--text-2); font-weight: 400; font-size: 13.5px; }
.pager .next { text-align: right; }

@media (max-width: 1180px) { .docs { grid-template-columns: 230px minmax(0, 1fr); } .toc { display: none; } }
@media (max-width: 820px) {
  .docs { grid-template-columns: 1fr; gap: 0; padding-top: 20px; }
  .docs-side { position: static; max-height: none; overflow: visible; padding-bottom: 0; }
  .docs-nav { display: none; }
  .doc { margin-top: 24px; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { text-align: left; }
}

/* Screenshots in guides: close-up crops at natural size, click for the full screen */
.prose figure.shot { margin: 28px 0 8px; }
.prose figure.shot a { display: inline-block; max-width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 18px 40px -28px rgb(16 24 40 / .6); background: #0E1A2E; vertical-align: top; }
.prose figure.shot img { width: 100%; height: auto; display: block; }
.prose figure.shot figcaption { font-size: 14.5px; color: var(--text-2); margin-top: 10px; }
.prose figure.shot figcaption::after { content: " Click the image to see the whole screen."; }

/* Learn home, simplified (learn-home2) */
.learn-hero { padding: 56px 0 44px; text-align: center; }
.learn-hero h1 { font-size: clamp(30px, 3.6vw, 44px); }
.learn-hero p { margin-left: auto; margin-right: auto; font-size: 18px; }
.learn-hero .docs-search { margin-left: auto; margin-right: auto; text-align: left; }
.learn-home2 { padding: 48px var(--gutter) 80px; max-width: 1080px; display: flex; flex-direction: column; gap: 56px; }
.learn-home2 h2#start-h, .learn-sub { font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); margin: 0 0 16px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps a { display: grid; gap: 6px; align-content: start; height: 100%; box-sizing: border-box; padding: 22px; border-radius: 16px; border: 1px solid var(--stroke-2); background: var(--panel); text-decoration: none; color: var(--text); transition: border-color .15s, background .15s; }
.steps a:hover { border-color: rgb(127 176 255 / .55); background: var(--panel-2); }
.steps b { font-size: 18px; font-weight: 600; }
.steps span:not(.step-n) { color: var(--text-2); font-size: 15px; line-height: 1.5; }
.step-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #03101F; background: var(--grad); margin-bottom: 6px; }
.lg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lg-card { padding: 20px 22px; border-radius: 16px; border: 1px solid var(--stroke); background: rgb(255 255 255 / .02); }
.lg-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.lg-head h2 { font-size: 17px; font-weight: 600; margin: 0; color: var(--text); flex: 1; }
.lg-ico { color: var(--cyan); flex-shrink: 0; }
.lg-count { font-size: 13px; color: var(--text-2); white-space: nowrap; }
.lg-card ul { list-style: none; margin: 0; padding: 0; }
.lg-card li a { display: block; padding: 7px 0; color: var(--text-2); text-decoration: none; font-size: 15px; }
.lg-card li a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 900px) { .steps, .lg-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps, .lg-grid { grid-template-columns: 1fr; } .learn-hero { text-align: left; } }
