/* SmarterU Success Center.
   Layout: sticky header over three columns (section tree, article, on-page
   contents), collapsing to one column with a drawer for the tree on phones.
   Carried over from the prototype (migration/prototype/site/index.html). */
:root {
  --bg: #ffffff;
  --surface: #f4f7fb;
  --surface-2: #e9eff7;
  --fg: #1d2633;
  --muted: #5a6778;
  --line: #d8e0ea;
  --brand: #238eff;
  --brand-ink: #0a5ec2;
  --brand-soft: #e3f0ff;
  --link: #0065ff;
  --info-bg: #e3f7ea; --info-line: #4c9a6a;
  --warn-bg: #fff4d6; --warn-line: #b38a12;
  --err-bg: #fde6e7; --err-line: #b3333a;
  --ok-bg: #e3f7ea; --ok-line: #2f8a55;
  --yes: #2e8b4f; --no: #b8312f; --partial: #b07d00;
  --code-bg: #f2f5f9;
  --footer-bg: #262129; --footer-fg: #9a949e; --footer-head: #c9c7ca; --footer-line: #38353a;
  --shadow: 0 10px 30px rgba(20, 40, 70, .14);
  --font: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --header-h: 60px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11161d; --surface: #171e27; --surface-2: #1f2834; --fg: #e3e9f1; --muted: #9aa8b9;
    --line: #2b3646; --brand: #4ea3ff; --brand-ink: #8cc3ff; --brand-soft: #16304d; --link: #6cb2ff;
    --info-bg: #15301f; --info-line: #5fbf86; --warn-bg: #352a0c; --warn-line: #e0b440;
    --err-bg: #3a1619; --err-line: #ef7a80; --ok-bg: #15301f; --ok-line: #5fbf86;
    --yes: #5fd08b; --no: #ff7b78; --partial: #e8bb45; --code-bg: #1a222d;
    --footer-bg: #0b0e13; --footer-line: #232a35;
    --shadow: 0 10px 30px rgba(0, 0, 0, .5); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #11161d; --surface: #171e27; --surface-2: #1f2834; --fg: #e3e9f1; --muted: #9aa8b9;
  --line: #2b3646; --brand: #4ea3ff; --brand-ink: #8cc3ff; --brand-soft: #16304d; --link: #6cb2ff;
  --info-bg: #15301f; --info-line: #5fbf86; --warn-bg: #352a0c; --warn-line: #e0b440;
  --err-bg: #3a1619; --err-line: #ef7a80; --ok-bg: #15301f; --ok-line: #5fbf86;
  --yes: #5fd08b; --no: #ff7b78; --partial: #e8bb45; --code-bg: #1a222d;
  --footer-bg: #0b0e13; --footer-line: #232a35;
  --shadow: 0 10px 30px rgba(0, 0, 0, .5); color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); }
html, body { background: var(--bg); color: var(--fg); }
body { font: 16px/1.65 var(--font); margin: 0; }
a { color: var(--link); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 60; background: var(--bg); padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 8px; }
main:focus { outline: none; }

/* ---- header */
header.top {
  position: sticky; top: 0; z-index: 20; height: var(--header-h);
  display: flex; align-items: center; gap: 12px; background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
}
.brand { display: flex; align-items: center; flex: none; text-decoration: none; white-space: nowrap; margin-right: 14px; }
.brand img { display: block; height: 30px; width: auto; }
/* quick links */
.top-links { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.top-links a { display: flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 8px; color: var(--fg); text-decoration: none; font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.top-links a:hover { background: var(--surface-2); color: var(--brand-ink); }
.top-links a[aria-current] { background: var(--brand-soft); color: var(--brand-ink); }
.top-links svg { color: var(--brand); }
.top-links svg { width: 17px; height: 17px; flex: none; }
.top-links svg.ext { width: 13px; height: 13px; opacity: .8; }
.tree-links { display: none; }
.menu-btn { display: none; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.search-trigger {
  margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 0; width: min(380px, 100%);
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 10px;
  padding: 8px 12px; cursor: pointer; text-align: left;
}
.search-trigger svg { width: 16px; height: 16px; flex: none; }
.search-trigger span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-btn { margin-left: auto; }
.header-search { display: none; }
.tree-search { position: sticky; top: -16px; z-index: 2; margin: -16px -10px 10px -14px; padding: 14px 10px 10px 14px; background: var(--bg); }
.tree-search .search-trigger { margin: 0; width: 100%; }
/* "Can't find what you need?" pinned to the bottom of the menu */
nav.tree { display: flex; flex-direction: column; }
nav.tree > .tree-root { flex: none; }
.tree-help { position: sticky; bottom: -40px; z-index: 2; display: flex; align-items: center; gap: 10px; margin: auto -10px -40px -14px; margin-top: auto; padding: 14px 14px 18px; background: var(--bg); border-top: 1px solid var(--line); font-size: 14px; }
.tree-help svg { width: 26px; height: 26px; flex: none; color: var(--brand); }
.tree-help b { display: block; color: var(--fg); }
.tree-help a { font-weight: 700; text-decoration: none; }
.tree-help a:hover { text-decoration: underline; }
.theme-btn { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; cursor: pointer; color: var(--muted); }
.theme-btn:hover, .menu-btn:hover, .header-search:hover { background: var(--surface-2); }
.theme-btn svg { width: 18px; height: 18px; }
kbd { font: 600 12px var(--mono); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; background: var(--bg); color: var(--muted); }

/* ---- three columns */
.shell { display: grid; grid-template-columns: min(var(--tree-w, 290px), 40vw) minmax(0, 1fr) 230px; align-items: start; min-height: calc(100vh - var(--header-h)); }
.shell-wide { grid-template-columns: min(var(--tree-w, 290px), 40vw) minmax(0, 1fr); }
nav.tree {
  position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h));
  overflow: auto; border-right: 1px solid var(--line); padding: 16px 10px 40px 14px; font-size: 14.5px;
  overscroll-behavior: contain;
}
nav.tree ul { list-style: none; margin: 0; padding: 0; }
nav.tree ul ul { padding-left: 14px; border-left: 1px solid var(--line); margin-left: 9px; }
nav.tree ul[hidden] { display: none; }
.node { display: flex; align-items: flex-start; gap: 2px; }
.node .tw { flex: none; width: 20px; height: 28px; border: 0; background: none; cursor: pointer; color: var(--muted); padding: 0; display: grid; place-items: center; }
.node .tw svg { width: 10px; height: 10px; transition: transform .15s; }
.node .tw[aria-expanded="true"] svg { transform: rotate(90deg); }
.node .tw.leaf { cursor: default; }
.node a { display: block; flex: 1; min-width: 0; padding: 4px 8px; border-radius: 6px; text-decoration: none; color: var(--fg); line-height: 1.4; }
.node a:hover { background: var(--surface); }
.node a[aria-current="page"] { background: var(--brand); color: #fff; font-weight: 700; }

main { min-width: 0; padding: 28px clamp(16px, 4vw, 48px) 80px; }
.article { max-width: 46rem; margin: 0 auto; }
aside.toc { position: sticky; top: calc(var(--header-h) + 24px); padding: 28px 18px 0 0; font-size: 13.5px; max-height: calc(100vh - var(--header-h) - 24px); overflow: auto; }
aside.toc h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px; }
aside.toc a { display: block; text-decoration: none; color: var(--muted); padding: 3px 0 3px 12px; border-left: 2px solid var(--line); line-height: 1.4; }
aside.toc a.l3 { padding-left: 24px; font-size: 13px; }
aside.toc a:hover { color: var(--link); }
aside.toc a.on { color: var(--brand-ink); border-left-color: var(--brand); font-weight: 700; }

/* ---- article */
.crumbs { font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 6px; margin-bottom: 10px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--link); text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: .6; }
h1.title { font-size: clamp(28px, 3.4vw, 36px); line-height: 1.2; margin: 0 0 22px; letter-spacing: -.015em; text-wrap: balance; font-weight: 800; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 26px; }
.body { overflow-wrap: break-word; }
.body h2 { font-size: 24px; line-height: 1.3; margin: 2em 0 .5em; text-wrap: balance; font-weight: 800; }
.body h3 { font-size: 19px; line-height: 1.35; margin: 1.6em 0 .4em; font-weight: 700; }
.body h4, .body h5, .body h6 { font-size: 16.5px; margin: 1.4em 0 .3em; font-weight: 700; }
.body :is(h2, h3, h4, h5, h6) { position: relative; }
.body h2 strong, .body h3 strong, .body h4 strong { font-weight: inherit; }
.body .anchor { position: absolute; left: -1.1em; padding-right: .3em; text-decoration: none; color: var(--muted); opacity: 0; font-weight: 600; }
.body :is(h2, h3, h4, h5, h6):hover .anchor, .body .anchor:focus { opacity: 1; }
.body p, .body li { font-size: 17px; }
.body p { margin: .7em 0; }
.body ul, .body ol { padding-left: 1.5em; margin: .6em 0; }
.body li { margin: .25em 0; }
.body ol + ul, .body ol + ol:not([start]) { padding-left: 3em; }  /* the export writes sub-lists as siblings of the step */
.body li > p { margin: .25em 0; }
.body img { max-width: 100%; height: auto; }
.body img.shot { display: block; margin: 12px 0 16px; border: 1px solid var(--line); border-radius: 6px; cursor: zoom-in; }
.body img.inline-icon { display: inline; vertical-align: -3px; margin: 0 2px; border: 0; }
.body td img.shot, .body th img.shot { margin: 6px 0; }
.body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.body code { font-family: var(--mono); font-size: .88em; background: var(--code-bg); padding: .1em .35em; border-radius: 4px; }
.code { position: relative; margin: 14px 0; }
.code pre { margin: 0; background: var(--code-bg); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; overflow-x: auto; font: 13.5px/1.55 var(--mono); }
.code pre code { background: none; padding: 0; font-size: inherit; }
.code .copy { position: absolute; top: 8px; right: 8px; border: 1px solid var(--line); background: var(--bg); border-radius: 6px; font-size: 12.5px; padding: 3px 9px; cursor: pointer; color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 8px; }
.body table { border-collapse: collapse; width: 100%; font-size: 15px; }
.body th, .body td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.body th { background: var(--surface-2); font-weight: 700; }
.body tbody tr:nth-child(even) td { background: var(--surface); }
.body tr:last-child td { border-bottom: 0; }
.body td p, .body th p, .body td li { font-size: 15px; margin: .2em 0; }
.body td.align-center, .body th.align-center { text-align: center; }
.body td.align-right, .body th.align-right { text-align: right; }
.mark { font-weight: 800; }
.mark-yes { color: var(--yes); } .mark-no { color: var(--no); } .mark-partial { color: var(--partial); }
.callout { margin: 18px 0; padding: 12px 16px; border-left: 4px solid; border-radius: 0 8px 8px 0; }
.callout > :first-child { margin-top: 0; } .callout > :last-child { margin-bottom: 0; }
.callout p, .callout li { font-size: 16px; }
.callout-info, .callout-tip { background: var(--info-bg); border-color: var(--info-line); }
.callout-warning { background: var(--warn-bg); border-color: var(--warn-line); }
.callout-error { background: var(--err-bg); border-color: var(--err-line); }
.callout-success { background: var(--ok-bg); border-color: var(--ok-line); }
.callout-title { font-weight: 800; }
.body details { border: 1px solid var(--line); border-radius: 8px; margin: 10px 0; padding: 0 16px; }
.body details[open] { padding-bottom: 8px; }
.body summary { cursor: pointer; padding: 12px 0; font-weight: 700; }
.body summary :is(h2, h3, h4, h5, h6) { display: inline; font-size: 17px; margin: 0; }

/* ---- embeds */
.embed { margin: 16px 0; }
.embed-video iframe, .embed-frame iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 8px; background: var(--surface); }
.embed-mp4 video { display: block; width: 100%; max-height: 70vh; border-radius: 8px; background: #000; }
.embed-pdf iframe { display: block; width: 100%; height: min(80vh, 900px); border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.embed-download { display: inline-block; margin-top: 8px; font-weight: 700; }

/* ---- after the article */
.files { margin-top: 28px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.files h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 6px; }
.files ul { margin: 0; padding-left: 1.2em; }
.in-section, .related, .feedback { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); }
.in-section h2, .related h2, .feedback h2 { font-size: 17px; margin: 0 0 12px; }
.related ul { padding-left: 1.2em; margin: 0; }
.related li { margin: .3em 0; }
.feedback .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 7px 16px; cursor: pointer; font-weight: 700; }
.btn:hover { border-color: var(--brand); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.feedback form { margin-top: 4px; }
.feedback textarea { display: block; width: 100%; min-height: 90px; margin: 8px 0 10px; border: 1px solid var(--line); border-radius: 8px; padding: 10px; font: inherit; background: var(--bg); color: var(--fg); }
.feedback .hp { position: absolute; left: -9999px; }
.hint { font-size: 14.5px; color: var(--muted); }
.note { background: var(--brand-soft); color: var(--fg); border-radius: 10px; padding: 10px 14px; margin: 0; font-size: 15px; }

/* ---- lists, home */
.list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.list li { border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; text-decoration: none; color: var(--fg); }
.list a:hover { background: var(--surface); }
.list a small { color: var(--muted); white-space: nowrap; }
.home { max-width: 64rem; margin: 0 auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kick { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); margin: 14px 0 4px; }
.cicon { width: 22px; height: 22px; flex: none; }
.ic { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
/* home: banner */
.home-hero { position: relative; overflow: hidden; margin: -28px calc(-1 * clamp(16px, 4vw, 48px)) 0; padding: 72px clamp(16px, 4vw, 48px) 84px; text-align: center; color: #fff; background: linear-gradient(135deg, #0a5ec2 0%, #238eff 55%, #57b1ff 100%); }
.home-hero::before, .home-hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.09); }
.home-hero::before { width: 420px; height: 420px; right: -120px; top: -160px; }
.home-hero::after { width: 300px; height: 300px; left: -100px; bottom: -150px; }
.home-hero > * { position: relative; }
.home-hero h1 { font-size: clamp(32px, 4.6vw, 50px); font-weight: 800; margin: 0 0 10px; letter-spacing: -.02em; text-wrap: balance; }
.home-hero p { font-size: 18.5px; opacity: .95; margin: 0 auto 28px; max-width: 36rem; }
.home-pill { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; }
.home-pill b { background: #fff; color: #0a5ec2; border-radius: 999px; padding: 2px 10px; font-size: 12.5px; }
.home-pill:hover { background: rgba(255,255,255,.26); }
.home-search { display: flex; align-items: center; gap: 12px; width: min(620px, 100%); margin: 0 auto; padding: 15px 18px; font-size: 17px; border: 0; border-radius: 14px; background: #fff; color: #4a5768; box-shadow: var(--shadow); cursor: pointer; text-align: left; }
.home-search svg { width: 20px; height: 20px; flex: none; }
.home-search span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* home: topics */
.home-topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2px 28px; margin-top: 40px; }
.home-topics a { display: flex; align-items: center; gap: 14px; padding: 12px 10px; border-radius: 14px; text-decoration: none; color: var(--fg); }
.home-topics a:hover { background: var(--surface); }
.home-topics b { display: block; font-size: 16.5px; }
.home-topics small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; color: var(--muted); font-size: 14px; line-height: 1.4; }
@media (min-width: 700px) { .home-topics.topics-two small { min-height: 2.8em; } }  /* every description takes two lines, so rows line up */
.home-topics.topics-one small { -webkit-line-clamp: 1; line-clamp: 1; white-space: nowrap; text-overflow: ellipsis; display: block; }
.home-topics.topics-none { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 4px 28px; margin-top: 0; }
.home-topics.topics-none b { white-space: nowrap; }
.home-topics.topics-none a { padding: 10px; }
.topics-intro { margin-top: 40px; margin-bottom: 8px; }
.home-topics.topics-one { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 2px 28px; margin-top: 0; }
.topic-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 26px 28px; margin-top: 8px; }
.tg-head { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); padding: 4px 0; }
.tg-head b { font-size: 17px; }
.tg-head:hover b { color: var(--link); }
.tg ul { list-style: none; margin: 6px 0 0 54px; padding: 0; }
.tg li { margin: 3px 0; }
.tg li a { text-decoration: none; color: var(--muted); font-size: 15px; }
.tg li a:hover { color: var(--link); text-decoration: underline; }
/* home: Academy */
.academy { display: grid; grid-template-columns: auto 1fr auto; gap: 18px 26px; align-items: center; margin-top: 32px; padding: 14px 44px; border-radius: 22px; background: linear-gradient(120deg, var(--brand-soft), color-mix(in srgb, var(--brand-soft) 45%, var(--bg))); }
.academy-badge { width: 72px; height: 72px; }
.academy h2 { margin: 0 0 2px; font-size: 20px; letter-spacing: -.01em; }
.academy p { margin: 0; color: var(--muted); font-size: 15px; }
.academy .kick { margin: 0 0 2px; }
.academy-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.academy-actions .btn { text-decoration: none; background: var(--bg); padding: 10px 24px; }
.academy-actions .btn.primary { background: var(--brand); color: #fff; }
/* home: SmarterNews */
.home-h2 { font-size: 22px; font-weight: 800; margin: 36px 0 16px; letter-spacing: -.01em; }
.home-news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.home-news a { text-decoration: none; color: var(--fg); }
.home-news h3 { margin: 0; font-size: 17px; line-height: 1.35; }
.home-news a:hover h3 { color: var(--link); }
.frame { display: block; border-radius: 16px; padding: 14px 14px 0; background: linear-gradient(160deg, var(--brand-soft), color-mix(in srgb, var(--brand-soft) 55%, var(--bg))); overflow: hidden; aspect-ratio: 16 / 10; }
.frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; border-radius: 10px 10px 0 0; box-shadow: 0 6px 20px rgba(20,40,70,.16); }
.frame.feature { padding: 0; background: var(--surface); }
.frame.feature img { border-radius: 0; box-shadow: none; object-position: center; }
.frame.empty { display: grid; place-items: center; padding: 0; }
.frame.empty .cicon { width: 64px; height: 64px; color: var(--brand); opacity: .7; }
/* home: keep learning, support */
.home-more { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.home-more .label { color: var(--muted); font-weight: 700; }
.home-more a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.home-more .cicon { width: 20px; height: 20px; }
@media (max-width: 860px) {
  .home-news { grid-template-columns: 1fr; }
  .academy { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .academy-actions { justify-content: center; }
  .home-search kbd { display: none; }
}

/* ---- footer */
.site-footer { background: var(--footer-bg); color: var(--footer-fg); padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); font-size: 14px; }
.site-footer a { color: var(--footer-fg); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.f-top { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 24px; max-width: 80rem; margin: 0 auto; padding: 28px 0; }
.f-brand img { width: 175px; height: auto; margin: 6px 0 12px; }
.f-brand p { font-size: 13px; line-height: 1.5; margin: 0; max-width: 32ch; }
.site-footer h2 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--footer-head); margin: 6px 0 10px; }
.site-footer h2.follow { margin-top: 22px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 6px; }
.social { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.f-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 80rem; margin: 0 auto; border-top: 1px solid var(--footer-line); padding-top: 12px; font-size: 13px; }
.f-bottom p { margin: 0; }
.f-bottom ul { display: flex; gap: 16px; }

/* ---- dialogs */
.overlay { position: fixed; inset: 0; z-index: 40; background: rgba(10, 20, 35, .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); display: flex; justify-content: center; align-items: flex-start; padding: 9vh 16px 16px; }
.dialog { width: min(560px, 100%); background: var(--bg); border-radius: 14px; box-shadow: var(--shadow); padding: 22px 24px; }
.dialog h2 { margin: 0 0 8px; font-size: 20px; }
.dialog p { margin: 0 0 14px; color: var(--muted); }
/* ---- search */
/* Keep the scrollbar's space when the search box stops the page scrolling, so the page doesn't shift. */
html { scrollbar-gutter: stable; }
html.search-open { overflow: hidden; }
.search-dialog { width: min(680px, 100%); padding: 0; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); display: flex; flex-direction: column; max-height: 80vh; overflow: hidden; }
.search-field { display: flex; align-items: center; gap: 10px; margin: 10px; padding: 8px 10px 8px 14px; border: 2px solid var(--brand); border-radius: 10px; background: var(--bg); }
.search-results:not(:empty) { border-top: 1px solid var(--line); }
.search-field svg { width: 20px; height: 20px; flex: none; color: var(--brand); }
.search-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--fg); font-family: inherit; font-size: 18px; font-weight: 600; line-height: 1.4; padding: 6px 0; }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-close { flex: none; border: 0; background: none; padding: 4px; cursor: pointer; }
.search-results { overflow-y: auto; overscroll-behavior: contain; }
.search-results:empty { display: none; }
.search-list { list-style: none; margin: 0; padding: 8px; }
.search-list li + li { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.sr { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--fg); outline: none; }
.sr:hover, .sr:focus-visible, .sr:focus { background: var(--brand-soft); }
.sr-path { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 1px; }
.sr-title { display: block; font-weight: 700; color: var(--link); }
.sr-excerpt { display: block; font-size: 14px; line-height: 1.45; color: var(--muted); margin-top: 2px; }
.sr-excerpt mark { background: none; color: var(--fg); font-weight: 700; }
.search-note { margin: 0; padding: 18px 20px; color: var(--muted); font-size: 15px; }
.search-list + .search-note { padding-top: 4px; font-size: 13.5px; }
@media (max-width: 600px) {
  .overlay:has(.search-dialog) { padding: 0; }
  .search-dialog { max-height: 100%; height: 100%; border-radius: 0; }
}
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(5, 10, 20, .85); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 6px; background: #fff; }

@media (max-width: 1180px) {
  .shell { grid-template-columns: min(var(--tree-w, 270px), 40vw) minmax(0, 1fr); }
  aside.toc { display: none; }
}
@media (max-width: 860px) {
  .shell, .shell-wide { grid-template-columns: minmax(0, 1fr); }
  .menu-btn { display: inline-block; }
  nav.tree { position: fixed; z-index: 35; top: 0; left: 0; bottom: 0; width: min(330px, 88vw); height: auto; background: var(--bg); box-shadow: var(--shadow); transform: translateX(-105%); visibility: hidden; transition: transform .2s, visibility .2s; padding-top: 16px; padding-left: max(14px, env(safe-area-inset-left, 0px)); }
  nav.tree.open { transform: none; visibility: visible; }
  .top-nav { display: none; }
  .tree-links { display: block; margin: 0 -10px 12px -14px; padding: 0 10px 12px 14px; border-bottom: 1px solid var(--line); }
  .tree-links .top-links { flex-direction: column; align-items: stretch; gap: 0; }
  .tree-links .top-links a { color: var(--fg); font-size: 15px; padding: 8px 10px; }
  .tree-links .top-links a:hover { background: var(--surface-2); color: var(--fg); }
  .tree-links .top-links a[aria-current] { background: var(--brand-soft); color: var(--brand-ink); }
  .tree-links .top-links svg { color: var(--brand); }
  .header-search { display: grid; place-items: center; flex: none; width: 38px; height: 38px; padding: 0; margin-left: auto; }
  .header-search + .theme-btn { margin-left: 0; }
  .search-trigger kbd { display: none; }
  .f-top { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print {
  header.top, nav.tree, aside.toc, .feedback, .site-footer { display: none; }
  .shell { display: block; }
}

/* ==== New article design (pilot pages: body.v2, listed in site.pilot) ==== */
.v2 main { padding: 0 0 80px; }
.v2-hero { padding: 34px 0 6px; overflow-x: clip; }
.v2-hero-in, .v2-cols { max-width: calc(52rem + 274px); margin: 0 auto; }
.v2-hero-in { position: relative; z-index: 1; padding: 0 clamp(16px, 4vw, 48px); }
.v2 h1.title { margin: 0; font-size: clamp(30px, 3.6vw, 40px); max-width: 52rem; text-wrap: pretty; }
.tlink { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-left: 8px; vertical-align: 3px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; padding: 0; position: relative; }
.tlink svg { width: 19px; height: 19px; }
.tlink:hover, .tlink:focus-visible { background: var(--brand-soft); color: var(--brand-ink); }
.tlink::after { content: attr(data-tip); position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); white-space: nowrap; background: #1d2633; color: #fff; font: 700 12.5px/1.2 var(--font); letter-spacing: 0; padding: 5px 8px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 3; }
.tlink:hover::after, .tlink:focus-visible::after { opacity: 1; }
.v2-cols { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 0 40px; padding: 0 clamp(16px, 4vw, 48px); }
.v2 .article { max-width: 52rem; margin: 0; min-width: 0; }
.v2 aside.toc { align-self: start; padding: 22px 0 0 0; }

/* heading link icons that copy a link to the section */
.v2 .body .anchor { position: static; display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: 6px; vertical-align: middle; border-radius: 7px; color: var(--muted); opacity: 0; transition: opacity .15s; padding: 0; }
.v2 .body .anchor svg { width: 17px; height: 17px; }
.v2 .body .anchor:hover, .v2 .body .anchor:focus-visible { background: var(--brand-soft); color: var(--brand-ink); }
.v2 .body :is(h2, h3, h4, h5, h6):hover .anchor, .v2 .body .anchor:focus-visible { opacity: 1; }
@media (hover: none) { .v2 .body .anchor { opacity: .7; } }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 16px); background: #1d2633; color: #fff; padding: 9px 16px; border-radius: 10px; font-weight: 700; font-size: 14.5px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* notes and warnings: rounded, no bar */
.v2 .callout { border-left: 0; border-radius: 12px; padding: 14px 18px; }

/* tables: grey header with a firmer line, striped rows, row highlight */
.v2 .table-wrap { border-radius: 12px; }
.v2 .body th { background: var(--surface-2); border-bottom: 2px solid #c3cfdc; font-size: 14.5px; padding: 11px 14px; }
.v2 .body td { padding: 11px 14px; }
:root[data-theme="dark"] .v2 .body th { border-bottom-color: #3a4759; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .v2 .body th { border-bottom-color: #3a4759; } }
.v2 .mark { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 800; padding: 2px 10px; border-radius: 999px; line-height: 1.5; }
.v2 .mark-yes { background: color-mix(in srgb, var(--yes) 14%, transparent); }
.v2 .mark-no { background: color-mix(in srgb, var(--no) 12%, transparent); }
.v2 .mark-partial { background: color-mix(in srgb, var(--partial) 14%, transparent); }
.v2 .mark { font-size: 0; }
.v2 .mark::before { content: ""; width: 12px; height: 12px; background: currentColor; -webkit-mask: var(--mark-icon) center / contain no-repeat; mask: var(--mark-icon) center / contain no-repeat; }
.v2 .mark::after { font-size: 13.5px; }
.v2 .mark-yes { --mark-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }
.v2 .mark-no { --mark-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E"); }
.v2 .mark-partial { --mark-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E"); }
.v2 .mark-yes::after { content: "Yes"; }
.v2 .mark-no::after { content: "No"; }
.v2 .mark-partial::after { content: "Partly"; }

/* screenshots: rounded, soft shadow with a fine edge, "Click to enlarge" on hover */
.v2 .body img.shot { border: 0; border-radius: 10px; box-shadow: 0 0 0 1px rgba(15, 30, 50, .08), 0 1px 3px rgba(15, 30, 50, .08), 0 10px 26px rgba(15, 30, 50, .08); }
:root[data-theme="dark"] .v2 .body img.shot { box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 10px 26px rgba(0, 0, 0, .4); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .v2 .body img.shot { box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 10px 26px rgba(0, 0, 0, .4); } }
.v2 .sw { position: relative; display: block; width: fit-content; max-width: 100%; margin: 12px 0 16px; }
.v2 .sw img.shot { margin: 0; }
.v2 .sw .zoom { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: rgba(25, 28, 33, .8); color: #fff; opacity: 0; transition: opacity .15s; pointer-events: none; }
.v2 .sw .zoom svg { width: 13px; height: 13px; }
.v2 .sw:hover .zoom { opacity: 1; }

/* numbered steps in circles (top-level lists; numbering continues after screenshots) */
.v2 .body ol:not(li ol) { list-style: none; counter-reset: step; padding-left: 0; }
.v2 .body ol:not(li ol) > li { counter-increment: step; position: relative; padding-left: 42px; margin: .45em 0; }
.v2 .body ol:not(li ol) > li::before { content: counter(step); position: absolute; left: 0; top: .05em; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); font-weight: 800; font-size: 14.5px; line-height: 28px; text-align: center; }
.v2 .body ol:not(li ol) + ul { padding-left: calc(42px + 1.5em); }
.v2 .body .in-step { margin-left: 42px; }

/* collapsible sections */
.v2 .body details { border-radius: 12px; padding: 0; transition: border-color .15s; }
.v2 .body details:hover { border-color: var(--brand); }
.v2 .body details[open] { box-shadow: 0 2px 10px rgba(20, 40, 70, .08); padding-bottom: 6px; }
.v2 .body details > :not(summary) { margin-left: 18px; margin-right: 18px; }
.v2 .body summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; }
.v2 .body summary::-webkit-details-marker { display: none; }
.v2 .body summary::after { content: ""; flex: none; width: 18px; height: 18px; background: var(--brand); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .2s; }
.v2 .body details[open] > summary::after { transform: rotate(180deg); }

/* related articles: two-column list with arrows */
.v2 .related { border-top: 0; padding-top: 0; margin-top: 44px; }
.v2 .related h2 { font-size: 20px; margin-bottom: 12px; }
.v2 .rel-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.v2 .rel-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; margin-bottom: -1px; border-bottom: 1px solid var(--line); color: var(--fg); text-decoration: none; font-weight: 700; font-size: 15.5px; }
.v2 .rel-list a:nth-child(odd) { border-right: 1px solid var(--line); }
.v2 .rel-list a svg { flex: none; width: 18px; height: 18px; color: var(--brand); transition: transform .15s; }
.v2 .rel-list a:hover { background: var(--surface); color: var(--brand-ink); }
.v2 .rel-list a:hover svg { transform: translateX(3px); }

/* feedback box */
.v2 .fb-box { border-top: 0; margin-top: 22px; padding: 14px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.v2 .fb-q { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.v2 .fb-ic { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.v2 .fb-ic svg { width: 21px; height: 21px; }
.v2 .fb-txt { flex: 1 1 220px; min-width: 0; }
.v2 .fb-txt h2 { font-size: 17px; margin: 0; }
.v2 .fb-txt p { margin: 0; color: var(--muted); font-size: 14.5px; }
.v2 .fb-btn { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; background: var(--bg); padding: 7px 16px; }
.v2 .fb-btn svg { width: 17px; height: 17px; }
.v2 .fb-box form { margin-top: 12px; }
.v2 .fb-box [data-fb-done] { margin-top: 10px; }

@media (max-width: 1180px) {
  .v2-cols { grid-template-columns: minmax(0, 1fr); }
  .v2 aside.toc { display: none; }
}
@media (max-width: 860px) {
  .v2-hero { padding-top: 22px; }
  .v2 .rel-list { grid-template-columns: minmax(0, 1fr); }
  .v2 .rel-list a:nth-child(odd) { border-right: 0; }
}
@media print {
  .v2-hero { padding: 0; }
  .tlink, .v2 .anchor { display: none; }
}
/* pilot fixes: Yes/No cells all line up on the left; more room under the banner */
.v2 .body td:has(.mark), .v2 .body table:has(.mark) th { text-align: left; }
.v2 .article, .v2 aside.toc { padding-top: 26px; }
.v2 .article > .body > :first-child { margin-top: 0; }
/* a divider at the very start of an article sits oddly under the banner */
.v2 .article > .body > hr:first-child { display: none; }
/* top bar: tighter links on narrower screens */
@media (max-width: 1120px) {
  .brand { margin-right: 4px; }
  .top-links a { font-size: 13.5px; padding: 6px 8px; gap: 5px; }
  .top-links svg { width: 15px; height: 15px; }
}
/* Home sits by the logo; the other quick links line up on the right */
.top-nav { flex: 1; min-width: 0; margin-right: 6px; }
.top-nav .top-links li:nth-child(2) { margin-left: auto; }
/* drag handle on the right edge of the menu (wider screens only) */
.tree-resize { position: fixed; z-index: 15; top: var(--header-h); bottom: 0; left: calc(min(var(--tree-w, 290px), 40vw) - 4px); width: 9px; cursor: col-resize; touch-action: none; }
.tree-resize::after { content: ""; position: absolute; top: 0; bottom: 0; left: 4px; width: 1px; background: transparent; transition: background .15s, width .15s, left .15s; }
.tree-resize:hover::after, .tree-resize:focus-visible::after, .tree-resize.dragging::after { left: 3px; width: 3px; background: var(--brand); }
.tree-resize:focus-visible { outline: none; }
html.resizing, html.resizing * { cursor: col-resize !important; user-select: none !important; }
@media (max-width: 1180px) { .tree-resize { left: calc(min(var(--tree-w, 270px), 40vw) - 4px); } }
@media (max-width: 860px) { .tree-resize { display: none; } }
@media print { .tree-resize { display: none; } }
/* title area: no line underneath */
.v2-hero { padding-bottom: 0; }
.v2-hero-in { padding-bottom: 6px; }
.v2-cols { gap: 0 64px; }
/* a video at the end of a note doesn't add space below it */
.callout > .embed:last-child { margin-bottom: 0; }

/* ==== Spacing (November 13): one set of gaps between blocks in an article.
   Text blocks sit 16px apart; screenshots, notes, tables, videos and FAQs
   get 24px; headings get more room above than below so they sit with the
   text they introduce. */
.v2 { --gap: 16px; --gap-block: 24px; }
.v2 .body > * { margin-top: 0; margin-bottom: 0; }
.v2 .body > * + * { margin-top: var(--gap); }
.v2 .body > :where(aside, .table-wrap, .embed, details, p:has(> .sw:only-child), p:has(> img.shot:only-child)),
.v2 .body > :where(aside, .table-wrap, .embed, details, p:has(> .sw:only-child), p:has(> img.shot:only-child)) + * { margin-top: var(--gap-block); }
.v2 .body > details + details { margin-top: 10px; }
.v2 .body > h2 { margin-top: 52px; }
.v2 .body > h3 { margin-top: 36px; }
.v2 .body > :is(h4, h5, h6) { margin-top: 28px; }
.v2 .body > h2 + * { margin-top: 14px; }
.v2 .body > :is(h3, h4, h5, h6) + * { margin-top: 10px; }
.v2 .body > h2 + h3 { margin-top: 24px; }
.v2 .body > :first-child, .v2 .body > hr:first-child + * { margin-top: 0; }
/* screenshots on their own line: no extra space from the wrapper */
.v2 .body p > .sw:only-child { margin: 0; }
/* steps and the lists that belong to them stay together */
.v2 .body > :is(ol, ul) + :is(ol, ul) { margin-top: 8px; }
.v2 .body ol:not(li ol) > li { margin: 8px 0 0; }
.v2 .body ol:not(li ol) > li:first-child { margin-top: 0; }
/* inside notes, FAQs and table cells */
.v2 .callout > * + *, .v2 .body details > * + :not(summary) { margin-top: 12px; }
.v2 .callout > *, .v2 .body details > :not(summary) { margin-bottom: 0; }
.v2 .body details > summary + * { margin-top: 2px; }
.v2 .body details[open] { padding-bottom: 16px; }
/* title to article, and the end of the article */
.v2 .article, .v2 aside.toc { padding-top: 36px; }
/* The Intercom chat button sits at the bottom right; keep the end of a long
   "On this page" list scrollable clear of it. */
aside.toc, .v2 aside.toc { padding-bottom: 88px; }
.v2 .related, .v2 .in-section { margin-top: 56px; }
.v2 .fb-box { margin-top: 56px; }
.v2 .related + .fb-box, .v2 .in-section + .fb-box { margin-top: 28px; }
.v2 .files { margin-top: 32px; }
/* inside a step or list item: the same rhythm, a little tighter */
.v2 .body li > * { margin-top: 0; margin-bottom: 0; }
.v2 .body li > * + * { margin-top: 10px; }
.v2 .body li > :where(p:has(> .sw:only-child), p:has(> img.shot:only-child), aside, .table-wrap, .embed),
.v2 .body li > :where(p:has(> .sw:only-child), p:has(> img.shot:only-child), aside, .table-wrap, .embed) + * { margin-top: 16px; }
.v2 .body li > ul, .v2 .body li > ol { margin-top: 8px; }
.v2 .body li li { margin-top: 6px; }
