/* Help Center (v2/help.html) and its articles (v2/help/*.html). Markup: tools/help_center.py */
.hc { --ink: #242426; --sub: #5d5d63; --mute: #68686f; --line: #ececf1; --soft: #f6f5fa; --lav: #efe9ff; --deep: #5b2fd6; --dark: #1c1b22; color: var(--ink); }
.tp-page main.hc { padding-bottom: 72px; }
.hc h1, .hc h2, .hc h3 { color: var(--ink); }

/* ---------------------------------------------------------------- index hero */
.hc-hero { padding: 140px 0 64px; text-align: center; background: radial-gradient(55% 80% at 50% 0%, rgba(184, 155, 255, 0.32), rgba(184, 155, 255, 0) 65%), linear-gradient(180deg, #f8f6fe 0%, #fff 100%); }
.hc-eyebrow { margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); }
.hc-hero h1 { margin: 16px 0 0; font-family: var(--display); font-size: clamp(46px, 6vw, 84px); font-weight: 400; line-height: 1; letter-spacing: -0.05em; }
.hc-hero h1 span { color: #a5a5ab; }
.hc-lede { max-width: 60ch; margin: 18px auto 0; font-size: 18px; line-height: 1.55; color: var(--sub); }
.hc-search { display: flex; align-items: center; gap: 12px; max-width: 620px; height: 60px; margin: 34px auto 0; padding: 0 18px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px rgba(36, 36, 38, 0.08), 0 24px 44px -28px rgba(60, 30, 140, 0.5); cursor: text; transition: box-shadow 0.2s ease; }
.hc-search:focus-within { box-shadow: 0 0 0 2px var(--brand), 0 24px 44px -28px rgba(60, 30, 140, 0.5); }
.hc-search svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--mute); stroke-width: 1.8; stroke-linecap: round; }
.hc-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 16.5px; color: var(--ink); }
.hc-search input::placeholder { color: #a5a5ab; }
.hc-search kbd { flex: none; padding: 2px 8px; border-radius: 7px; background: var(--soft); font: inherit; font-size: 12.5px; color: var(--mute); }
.hc-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 900px; margin: 22px auto 0; }
.hc-chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 15px; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font: inherit; font-size: 14px; font-weight: 500; color: #4a4a50; cursor: pointer; transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; }
.hc-chip em { font-style: normal; font-size: 12px; color: var(--mute); }
.hc-chip:hover { box-shadow: inset 0 0 0 1px rgba(125, 64, 255, 0.4); }
.hc-chip.is-on { background: var(--dark); color: #fff; box-shadow: none; }
.hc-chip.is-on em { color: rgba(255, 255, 255, 0.6); }

/* start here */
.hc-start { padding: 16px 0 0; }
.hc-start[hidden] { display: none; }
.hc-start__h h2 { margin: 0; font-family: var(--display); font-size: clamp(30px, 3vw, 42px); font-weight: 400; letter-spacing: -0.04em; }
.hc-start__h p { margin: 8px 0 0; font-size: 16.5px; color: var(--sub); }
.hc-pops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.hc-pop { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 22px; background: var(--soft); transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ease); }
.hc-pop:hover { background: #fff; box-shadow: 0 0 0 1px rgba(125, 64, 255, 0.25), 0 30px 50px -36px rgba(60, 30, 140, 0.5); transform: translateY(-3px); }
.hc-pop__ic { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 8px; border-radius: 13px; background: #fff; color: var(--deep); box-shadow: 0 0 0 1px rgba(125, 64, 255, 0.12); }
.hc-pop__ic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hc-pop b { font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; color: var(--ink); }
.hc-pop__d { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 14.5px; line-height: 1.55; color: var(--sub); }
.hc-pop__go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-size: 14.5px; font-weight: 500; color: var(--brand); }
.hc-pop__go svg, .hc-cat a svg, .hc-rel__card svg, .hc-crumb svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease); }
.hc-pop:hover .hc-pop__go svg { transform: translateX(3px); }

/* categories */
.hc-list { padding: 80px 0 0; }
.hc-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.hc-cat { padding: 26px 26px 18px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 18px 36px -32px rgba(30, 20, 70, 0.4); scroll-margin-top: 110px; }
.hc-cat[hidden] { display: none; }
.hc-cat:last-child:nth-child(odd) { grid-column: 1 / -1; }
.hc-cat:last-child:nth-child(odd) ul { columns: 2; column-gap: 32px; }
.hc-cat header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.hc-cat h2 { margin: 0; font-family: var(--display); font-size: 24px; font-weight: 400; letter-spacing: -0.03em; }
.hc-cat header span { flex: none; padding: 3px 10px; border-radius: 999px; background: var(--lav); font-size: 12.5px; font-weight: 500; color: var(--deep); }
.hc-cat ul { margin: 6px 0 0; padding: 0; list-style: none; }
.hc-cat li { break-inside: avoid; }
.hc-cat li[hidden] { display: none; }
.hc-cat a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 8px; margin: 0 -8px; border-radius: 10px; font-size: 15px; line-height: 1.4; color: #3a3a3d; transition: background 0.2s ease, color 0.2s ease; }
.hc-cat a svg { flex: none; color: #c4c4ca; }
.hc-cat a:hover { background: var(--soft); color: var(--ink); }
.hc-cat a:hover svg { color: var(--brand); transform: translateX(3px); }
.hc-none { padding: 48px 20px; border-radius: 22px; background: var(--soft); text-align: center; font-size: 16px; color: var(--sub); }

/* closing CTA (the site's .tp-cta) */
.hc-cta { padding: 96px 0 0; }
.hc-cta__k { margin: 0 0 12px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #c9b6ff; }
.hc .hc-cta h2 { margin: 0; font-family: var(--display); font-size: clamp(30px, 3.2vw, 44px); font-weight: 400; line-height: 1.1; letter-spacing: -0.04em; color: #fff; }
.hc .hc-cta h2 + p { margin-top: 12px; }
.hc-cta__acts { position: relative; flex: none; display: flex; flex-direction: column; gap: 10px; margin: 0; }
.hc-cta .btn--line { background: rgba(255, 255, 255, 0.06); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.hc-cta .btn--line > i { background: rgba(255, 255, 255, 0.14); color: #fff; }

/* ---------------------------------------------------------------- article */
.hc-ahero { padding: 132px 0 40px; background: radial-gradient(55% 80% at 90% 0%, rgba(184, 155, 255, 0.28), rgba(184, 155, 255, 0) 60%), linear-gradient(180deg, #f8f6fe 0%, #fff 100%); }
.hc-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: var(--mute); }
.hc-crumb a { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; color: var(--brand); }
.hc-crumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hc-ahero h1 { max-width: 22ch; margin: 22px 0 0; font-family: var(--display); font-size: clamp(36px, 4.4vw, 60px); font-weight: 400; line-height: 1.05; letter-spacing: -0.045em; text-wrap: balance; }
.hc-updated { display: inline-flex; margin: 18px 0 0; padding: 5px 12px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; color: var(--mute); }
.hc-abody { padding: 24px 0 0; }
.hc-alayout { display: grid; grid-template-columns: minmax(0, 780px); justify-content: start; }
.hc-article { min-width: 0; font-size: 17px; line-height: 1.72; color: #45454b; }
.hc-article .help-article > :first-child { margin-top: 0; }
.hc-article p { margin: 16px 0 0; }
.hc-article strong { font-weight: 600; color: var(--ink); }
.hc-article a { color: var(--brand); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(125, 64, 255, 0.35); text-underline-offset: 3px; }
.hc-article code { padding: 2px 7px; border-radius: 6px; background: #f3f1f8; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.86em; color: var(--ink); }
.hc-article hr { height: 1px; margin: 48px 0 0; border: 0; background: var(--line); }
.hc-article h2, .hc-article h3 { scroll-margin-top: 110px; }
.hc .hc-article h3 { margin: 48px 0 0; font-family: var(--display); font-size: clamp(25px, 2.3vw, 31px); font-weight: 400 !important; line-height: 1.18; letter-spacing: -0.035em !important; }
.hc .hc-article h2 { margin: 36px 0 0; font-size: 20px; font-weight: 600 !important; line-height: 1.3; letter-spacing: -0.02em !important; }
.hc .hc-article h4 { margin: 28px 0 0; font-size: 17px; font-weight: 600; color: var(--ink); }
/* a few imported articles use h6 as a lead-in line ("…struggle with:"); the browser default is 10.7px */
.hc .hc-article h5, .hc .hc-article h6 { margin: 24px 0 0; font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--ink); }
.hc-article hr + h3, .hc-article hr + h2 { margin-top: 40px; }
.hc-article ol, .hc-article ul { margin: 16px 0 0; padding: 0; list-style: none; }
.hc-article li { position: relative; padding-left: 30px; }
.hc-article li + li { margin-top: 8px; }
.hc-article ul > li::before { content: ""; position: absolute; left: 8px; top: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.hc-article ol { counter-reset: hc; }
.hc-article ol > li { counter-increment: hc; }
.hc-article ol > li::before { content: counter(hc) "."; position: absolute; left: 0; font-weight: 600; color: var(--deep); }
.hc-article .help-callout { position: relative; margin: 20px 0 0; padding: 16px 18px 16px 50px; border-radius: 16px; font-size: 15.5px; line-height: 1.6; }
.hc-article .help-callout::before { position: absolute; left: 16px; top: 16px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 13px; font-weight: 700; line-height: 1; }
.hc-article .help-callout--note { background: #f4f0ff; color: #3d2a7a; }
.hc-article .help-callout--note::before { content: "i"; background: var(--brand); color: #fff; font-family: Georgia, serif; font-style: italic; }
.hc-article .help-callout--warn { background: #fff6e5; color: #6b4a06; }
.hc-article .help-callout--warn::before { content: "!"; background: #f0a51c; color: #fff; }
.hc-article .help-callout--tip { background: #eaf7ef; color: #1d5a35; }
.hc-article .help-callout--tip::before { content: "\2713"; background: #2f9e5b; color: #fff; }
.hc-article .help-table-wrap { margin: 22px 0 0; overflow-x: auto; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.hc-article table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.hc-article th { padding: 13px 16px; background: var(--soft); text-align: left; font-size: 13px; font-weight: 600; color: var(--ink); }
.hc-article td { padding: 13px 16px; border-top: 1px solid var(--line); vertical-align: top; color: var(--sub); }
.hc-article .help-figure { margin: 24px 0 0; padding: 10px; border-radius: 20px; background: var(--soft); }
/* screenshots show at their own size (never stretched), centred in the frame */
.hc-article .help-figure img { display: block; width: auto; max-width: 100%; height: auto; max-height: 620px; margin: 0 auto; border-radius: 12px; box-shadow: 0 0 0 1px rgba(16, 16, 17, 0.06); }
.hc-article .help-download { display: inline-flex; align-items: center; gap: 10px; margin: 20px 0 0; padding: 12px 18px 12px 14px; border-radius: 14px; background: var(--dark); color: #fff; font-size: 15px; text-decoration: none; }
.hc-article .help-download svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hc-article .help-faq { border-top: 1px solid var(--line); }
.hc-article .help-faq:last-of-type { border-bottom: 1px solid var(--line); }
.hc-article .help-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; list-style: none; font-size: 16.5px; font-weight: 600; color: var(--ink); cursor: pointer; }
.hc-article .help-faq summary::-webkit-details-marker { display: none; }
.hc-article .help-faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--soft); font-size: 18px; font-weight: 400; color: var(--deep); transition: transform 0.25s ease; }
.hc-article .help-faq[open] summary::after { transform: rotate(45deg); }
.hc-article .help-faq p { margin: -4px 0 18px; font-size: 15.5px; color: var(--sub); }
.hc-article .help-related-inline__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 20px 0 0; }
.hc-article .help-related-inline__card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--soft); font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; }
.hc-article .help-related-inline__card:hover { background: var(--lav); color: var(--deep); }
.hc-article .help-related-inline__card svg { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* related guides */
.hc-rel { padding: 88px 0 0; }
.hc-rel h2 { margin: 0; font-family: var(--display); font-size: clamp(28px, 2.8vw, 38px); font-weight: 400; letter-spacing: -0.04em; }
.hc-rel__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.hc-rel__card { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 15.5px; font-weight: 500; line-height: 1.4; color: var(--ink); transition: box-shadow 0.25s ease, transform 0.25s ease; }
.hc-rel__card svg { flex: none; color: var(--brand); }
.hc-rel__card:hover { box-shadow: 0 0 0 1px rgba(125, 64, 255, 0.3), 0 20px 36px -28px rgba(60, 30, 140, 0.5); transform: translateY(-2px); }

/* ---------------------------------------------------------------- smaller screens */
@media (max-width: 1100px) { .hc-pops, .hc-rel__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .hc-hero { padding: 108px 0 44px; }
  .hc-lede { font-size: 16.5px; }
  .hc-chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 22px -16px 0; padding: 0 16px 4px; }
  .hc-chip { flex: none; }
  .hc-pops, .hc-cats, .hc-rel__grid, .hc-article .help-related-inline__grid { grid-template-columns: minmax(0, 1fr); }
  .hc-cat:last-child:nth-child(odd) ul { columns: 1; }
  .hc-list { padding-top: 56px; }
  .hc-ahero { padding-top: 108px; }
  .hc-article { font-size: 16px; }
  .hc-cta { padding-top: 64px; }
}

/* ===================================================================== redesign
   dark hero cards (as the site's other inner pages), icon cards, a sticky topic list on the
   index and a sticky "On this page" on articles */
.hc .hc-hero, .hc .hc-ahero { position: relative; isolation: isolate; margin: 86px 30px 0; padding: 72px 0 64px; border-radius: 26px; overflow: hidden; text-align: left; color: #fff;
  background: radial-gradient(50% 75% at 85% 20%, rgba(125, 64, 255, 0.42), rgba(125, 64, 255, 0) 65%), radial-gradient(45% 60% at 5% 115%, rgba(125, 64, 255, 0.22), rgba(125, 64, 255, 0) 70%), #111312; }
.hc .hc-hero::before, .hc .hc-ahero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1.5px) 0 0 / 24px 24px; -webkit-mask-image: radial-gradient(55% 75% at 78% 40%, #000, transparent 75%); mask-image: radial-gradient(55% 75% at 78% 40%, #000, transparent 75%); }
.hc .hc-hero { text-align: center; padding: 84px 0 72px; }
.hc .hc-eyebrow { color: #c9b6ff; }
.hc .hc-hero h1, .hc .hc-ahero h1 { color: #fff; }
.hc .hc-hero h1 span { color: #fff; }
.hc .hc-lede { color: rgba(255, 255, 255, 0.66); }
.hc .hc-search { background: rgba(255, 255, 255, 0.98); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7); }
.hc .hc-search:focus-within { box-shadow: 0 0 0 3px rgba(169, 139, 255, 0.6), 0 30px 60px -30px rgba(0, 0, 0, 0.7); }
.hc .hc-chip { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.82); }
.hc .hc-chip em { color: rgba(255, 255, 255, 0.45); }
.hc .hc-chip:hover { background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24); }
.hc .hc-chip.is-on { background: #fff; color: var(--ink); }
.hc .hc-chip.is-on em { color: var(--mute); }

/* start here: icon + category on every card */
.hc .hc-start { padding: 88px 0 0; }
.hc .hc-pop { background: #fff; box-shadow: 0 0 0 1px var(--line), 0 18px 36px -32px rgba(30, 20, 70, 0.4); }
.hc .hc-pop:hover { box-shadow: 0 0 0 1px rgba(125, 64, 255, 0.3), 0 30px 50px -34px rgba(60, 30, 140, 0.55); }
.hc-pop__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.hc-pop__top em { padding: 4px 10px; border-radius: 999px; background: var(--soft); font-style: normal; font-size: 12px; font-weight: 500; color: var(--sub); }
.hc .hc-pop__ic { margin: 0; background: var(--lav); box-shadow: none; }
.hc .hc-pop:hover .hc-pop__ic { background: var(--brand); color: #fff; }
.hc .hc-pop:first-child { color: rgba(255, 255, 255, 0.66); background: radial-gradient(120% 90% at 100% 0%, rgba(125, 64, 255, 0.5), rgba(125, 64, 255, 0) 60%), var(--dark); box-shadow: 0 30px 60px -34px rgba(30, 10, 80, 0.7); }
.hc .hc-pop:first-child b { color: #fff; }
.hc .hc-pop:first-child .hc-pop__d { color: rgba(255, 255, 255, 0.66); }
.hc .hc-pop:first-child .hc-pop__go { color: #c9b6ff; }
.hc .hc-pop:first-child .hc-pop__ic { background: var(--brand); color: #fff; }
.hc .hc-pop:first-child .hc-pop__top em { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.75); }

/* browse: sticky topic list + category cards */
.hc-browse { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.hc-topics { position: sticky; top: 100px; padding: 20px 14px 14px; border-radius: 22px; background: var(--soft); }
.hc-topics p { margin: 0 0 10px 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.hc-topics ul { margin: 0; padding: 0; list-style: none; }
.hc-topics a { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 12px; font-size: 14.5px; font-weight: 500; line-height: 1.3; color: #3a3a3d; transition: background 0.2s ease, color 0.2s ease; }
.hc-topics a:hover { background: #fff; color: var(--ink); }
.hc-topics em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--mute); }
.hc-topic__ic { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: #fff; color: var(--deep); }
.hc-topic__ic svg, .hc-cat__ic svg, .hc-crumb__ic svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hc .hc-cats { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.hc .hc-cat:last-child:nth-child(odd) { grid-column: auto; }
.hc .hc-cat ul { columns: 2; column-gap: 28px; }
.hc .hc-cat header { align-items: center; justify-content: flex-start; gap: 12px; }
.hc-cat__ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--lav); color: var(--deep); }
.hc-cat__ic svg { width: 19px; height: 19px; }
.hc .hc-cat header .hc-cat__n { margin-left: auto; }
.hc .hc-cat a { padding: 11px 10px; margin: 0 -10px; }

/* article: dark hero, sticky contents */
.hc .hc-ahero { padding: 64px 0 56px; }
.hc .hc-crumb { color: rgba(255, 255, 255, 0.4); }
.hc .hc-crumb a { color: #c9b6ff; }
.hc-crumb__ic { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 2px; border-radius: 7px; background: rgba(255, 255, 255, 0.1); color: #fff; }
.hc-crumb__ic svg { width: 13px; height: 13px; }
.hc .hc-updated { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.65); }
.hc .hc-abody { padding-top: 56px; }
.hc .hc-alayout { grid-template-columns: minmax(0, 1fr) 260px; gap: 72px; align-items: start; }
.hc-article { max-width: 780px; }
.hc-toc { position: sticky; top: 100px; padding: 20px 14px 14px; border-radius: 22px; background: var(--soft); }
.hc-toc p { margin: 0 0 10px 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.hc-toc ol { max-height: calc(100vh - 220px); margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.hc-toc a { display: block; padding: 7px 8px; border-radius: 10px; font-size: 13.5px; line-height: 1.35; color: #4a4a50; transition: background 0.2s ease, color 0.2s ease; }
.hc-toc a:hover { background: #fff; color: var(--ink); }
.hc-toc a.is-on { background: #fff; color: var(--deep); font-weight: 500; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); }
.hc .hc-rel { padding-top: 96px; }
.hc .hc-rel__card { background: var(--soft); box-shadow: none; }
.hc .hc-rel__card:hover { background: #fff; box-shadow: 0 0 0 1px rgba(125, 64, 255, 0.3), 0 20px 36px -28px rgba(60, 30, 140, 0.5); }

@media (max-width: 1100px) {
  .hc-browse { grid-template-columns: minmax(0, 1fr); }
  .hc-topics { display: none; }
  .hc .hc-alayout { grid-template-columns: minmax(0, 1fr); }
  .hc-toc { display: none; }
}
@media (max-width: 760px) {
  .hc .hc-hero, .hc .hc-ahero { margin: 72px 12px 0; padding: 44px 0 40px; border-radius: 22px; }
  .hc .hc-hero .wrap, .hc .hc-ahero .wrap { width: calc(100% - 40px); }
  .hc .hc-cat ul { columns: 1; }
  .hc .hc-start { padding-top: 56px; }
}

/* ===================================================================== polish, round 2 */
/* one accent for every category: the site's purple */
[data-c] { --cc: #7d40ff; --cc-bg: #efe9ff; }
.hc [data-c] .hc-pop__ic, .hc .hc-pop[data-c] .hc-pop__ic, .hc .hc-cat[data-c] .hc-cat__ic, .hc .hc-topics a[data-c] .hc-topic__ic { background: var(--cc-bg); color: var(--cc); }
.hc .hc-cat[data-c] .hc-cat__n { background: var(--cc-bg); color: #6a2fe6; } /* brand purple is 4.4:1 on lavender; this is 5.6:1 */
.hc .hc-pop[data-c]:hover .hc-pop__ic { background: var(--cc); color: #fff; }
.hc .hc-pop[data-c] .hc-pop__go { color: var(--cc); }
.hc .hc-cat[data-c] { position: relative; overflow: hidden; }
.hc .hc-cat[data-c]::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--cc), transparent 70%); }
.hc .hc-cat[data-c] a:hover svg { color: var(--cc); }

/* start here: the first guide is the dark highlight card */
.hc .hc-pop:first-child .hc-pop__ic { background: var(--brand) !important; color: #fff !important; }
.hc .hc-pop:first-child .hc-pop__go { color: #c9b6ff !important; }

/* topic list: the category in view */
.hc-topics a.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); }
.hc-topics a.is-on .hc-topic__ic { background: var(--cc); color: #fff; }

/* article: reading progress, hero icon, heading anchors, zoomable screenshots, prev/next */
.hc-progress { position: fixed; left: 0; right: 0; top: 0; z-index: 60; height: 3px; pointer-events: none; }
.hc-progress i { display: block; width: 0; height: 100%; background: var(--cc, var(--brand)); }
.hc-ahero__ic { position: absolute; right: max(48px, calc((100% - 1290px) / 2)); top: 50%; display: grid; place-items: center; width: 132px; height: 132px; border-radius: 36px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 30px 60px -30px rgba(0, 0, 0, 0.8); color: #fff; transform: translateY(-50%) rotate(-6deg); }
.hc-ahero__ic::after { content: ""; position: absolute; inset: 18px; z-index: -1; border-radius: 28px; background: var(--cc); filter: blur(28px); opacity: 0.55; }
.hc-ahero__ic svg { width: 56px; height: 56px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hc .hc-crumb__ic { background: var(--cc); }
.hc-article [id] { position: relative; }
.hc-anchor { position: absolute; left: -30px; top: 50%; display: grid; place-items: center; width: 22px; height: 22px; margin-top: -11px; border-radius: 6px; font-family: var(--text); font-size: 14px; font-weight: 600; color: var(--mute); text-decoration: none !important; opacity: 0; transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease; }
.hc-article [id]:hover > .hc-anchor, .hc-anchor:focus-visible { opacity: 1; }
.hc-anchor:hover { background: var(--soft); color: var(--cc, var(--brand)); }
.hc .hc-article h3 { padding-top: 6px; }
.hc .hc-article ol > li::before { color: var(--cc, var(--deep)); }
.hc .hc-article ul > li::before { background: var(--cc, var(--brand)); }
.hc-article tbody tr:nth-child(even) td { background: #fbfaff; }
.hc-article .help-figure img { cursor: zoom-in; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hc-article .help-figure img:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(16, 16, 17, 0.06), 0 20px 40px -24px rgba(30, 20, 70, 0.5); }
.hc-zoom { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 32px; background: rgba(16, 16, 22, 0.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); cursor: zoom-out; opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0s linear 0.25s; }
.hc-zoom.is-on { opacity: 1; visibility: visible; transition: opacity 0.25s ease; }
.hc-zoom img { max-width: min(1400px, 100%); max-height: 100%; border-radius: 14px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8); transform: scale(0.97); transition: transform 0.3s ease; }
.hc-zoom.is-on img { transform: none; }
.hc-amain { min-width: 0; }
.hc-pns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 780px; margin-top: 64px; }
.hc-pn { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--line); transition: box-shadow 0.25s ease, transform 0.25s ease; }
.hc-pn:hover { box-shadow: 0 0 0 1px var(--cc, var(--brand)), 0 20px 36px -28px rgba(60, 30, 140, 0.5); transform: translateY(-2px); }
.hc-pn em { font-style: normal; font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cc, var(--brand)); }
.hc-pn--prev em::before { content: "← "; } .hc-pn--next em::after { content: " →"; }
.hc-pn b { font-size: 15.5px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.hc-pn--next { text-align: right; align-items: flex-end; }
.hc-toc a.is-on { color: var(--cc, var(--deep)); }
@media (max-width: 1100px) { .hc-ahero__ic { width: 100px; height: 100px; } .hc-ahero__ic svg { width: 42px; height: 42px; } }
@media (max-width: 760px) {
  .hc-ahero__ic { display: none; }
  .hc-pns { grid-template-columns: minmax(0, 1fr); }
  .hc-pn--next { text-align: left; align-items: flex-start; }
  .hc-anchor { display: none; }
}

.hc-art .hc-rel__card svg { color: var(--cc, var(--brand)); }

/* theme accent: the site's purple; the category stripe stays off for a calmer list */
.hc .hc-cat[data-c]::before { display: none; }

/* Start here cards: one title weight on light and dark cards */
.hc .hc-pop b, .hc .hc-pop:first-child b { font-weight: 500; }

/* the heading "#" links sit in the left margin, so they only show where there is room for them */
@media (max-width: 1180px) { .hc-anchor { display: none; } }

/* ===================================================================== responsive rhythm
   one gap between sections: 88px on tablets, 72px on phones (index and articles alike) */
.hc .hc-article .help-article > :first-child { margin-top: 0; }
@media (max-width: 1100px) {
  .hc .hc-start { padding-top: 88px; }
  .hc .hc-list { padding-top: 88px; }
  .hc .hc-abody { padding-top: 88px; }
  .hc .hc-rel { padding-top: 88px; }
  .hc .hc-cta { padding-top: 88px; }
}
@media (max-width: 760px) {
  .hc .hc-start, .hc .hc-list, .hc .hc-abody, .hc .hc-rel, .hc .hc-cta { padding-top: 72px; }
  /* the guides use h3 for section titles and sometimes for a lead line: keep them readable, not poster-sized */
  .hc .hc-article h3 { margin-top: 40px; font-size: 22px; line-height: 1.22; }
  .hc .hc-article h2 { margin-top: 32px; font-size: 18.5px; }
  .hc .hc-article .help-article > :first-child { margin-top: 0; }
}

/* the article starts reading right under its hero: it is one piece with the title, not the next section,
   so it sits closer than the section rhythm and never further than on desktop (56px) */
@media (max-width: 1100px) { .hc .hc-abody { padding-top: 56px; } }
@media (max-width: 760px) { .hc .hc-abody { padding-top: 48px; } }
