/*
 * AutoMyra Help Centre — the server-rendered documentation pages.
 *
 * Standalone like /whatsapp-api: these pages are outside the marketing bundle,
 * so they carry their own copy of the brand tokens from
 * resources/ts/styles/landing/_tokens.scss. Mobile first; the three-column
 * docs layout appears from 1200px, two columns from 960px.
 */
:root {
  --ink: #16131f;
  --body: #4a4658;
  --muted: #6f6a80;
  --line: #e8e6f0;
  --surface: #ffffff;
  --surface-2: #faf9fe;
  --tint: #f4f0fc;
  --primary: #7c4dd1;
  --primary-ink: #5d34ad;
  --blue: #4187e0;
  --gradient: linear-gradient(120deg, #9b4dca 0%, #4a90e2 100%);
  --success: #1f9d61;
  --warning: #b7791f;
  --danger: #d1435b;
  --code-bg: #14111f;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(22, 19, 31, .04), 0 8px 24px rgba(22, 19, 31, .06);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 72px;
  --wrap: 1360px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  color: var(--body);
  line-height: 1.65;
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
::selection { background: rgba(124, 77, 209, .18); }
:focus-visible { outline: 2px solid var(--primary-ink); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; letter-spacing: -.01em; }
main:focus { outline: none; }

.hc-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .hc-wrap { padding: 0 24px; } }
.hc-narrow { max-width: 860px; padding-top: 24px; padding-bottom: 56px; }
.hc-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hc-skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: var(--ink); color: #fff; }
.hc-skip:focus { top: 8px; }
.hc-i { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; vertical-align: -.18em; }
.hc-muted { color: var(--muted); }
.hc-empty { padding: 28px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--muted); background: var(--surface-2); }
.hc-eyebrow { margin: 0 0 8px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.hc-h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 1.3rem; }
.hc-h2 .hc-i { color: var(--primary); }
.hc-h3 { margin: 28px 0 12px; font-size: 1.1rem; }
.hc-page-title { margin: 8px 0 12px; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.hc-lead { margin: 0 0 24px; font-size: 1.05rem; }
.hc-pill { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--tint); color: var(--primary-ink); font-size: .72rem; font-weight: 700; vertical-align: 2px; }

/* visibility helpers: hc-show-md / hc-show-lg = only below 960px, hc-show-xl = only below 1200px, hc-hide-sm = hidden below 640px */
.hc-hide-sm { display: none !important; }
@media (min-width: 640px) { .hc-hide-sm { display: inline-flex !important; } }
@media (min-width: 960px) { .hc-show-md { display: none !important; } }
@media (min-width: 960px) { .hc-show-lg { display: none !important; } }
@media (min-width: 1200px) { .hc-show-xl { display: none !important; } }

/* ── Buttons ── */
.hc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 16px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s;
}
.hc-btn:hover { text-decoration: none; border-color: var(--primary); transform: translateY(-1px); }
.hc-btn--primary { border-color: transparent; background: var(--gradient); color: #fff; box-shadow: 0 8px 20px rgba(124, 77, 209, .25); }
.hc-btn--primary:hover { color: #fff; }
.hc-btn--ghost { background: transparent; }
.hc-btn--white { background: #fff; color: var(--primary-ink); border-color: #fff; }
.hc-btn--outline-white { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.hc-btn--outline-white:hover { border-color: #fff; color: #fff; }
.hc-btn[aria-pressed="true"] { border-color: var(--primary); background: var(--tint); color: var(--primary-ink); }
.hc-icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; }
.hc-icon-btn .hc-i { width: 22px; height: 22px; }

/* ── Header ── mirrors Landing/Header.vue: glass bar, 44px logo, centred links, text "Log in" + one gradient CTA */
.hc-btn--sm { min-height: 38px; padding: 8px 16px; font-size: .88rem; }
.hc-btn--light { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .32); }
.hc-btn--light:hover { background: rgba(255, 255, 255, .22); border-color: #fff; color: #fff; }
.hc-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .72); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid transparent; transition: border-color .3s ease, box-shadow .3s ease, background .3s ease; }
.hc-header.is-scrolled { background: rgba(255, 255, 255, .88); border-bottom-color: var(--line); box-shadow: 0 10px 30px -12px rgba(78, 52, 138, .18); }
.hc-header__inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); transition: height .35s var(--ease); }
.hc-header.is-scrolled .hc-header__inner { height: 62px; }
.hc-header__progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gradient); transform: scaleX(0); transform-origin: 0 50%; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.hc-header.is-scrolled .hc-header__progress { opacity: 1; }
.hc-brand { display: flex; align-items: center; gap: 12px; flex: none; min-width: 0; color: var(--ink); }
.hc-brand:hover { text-decoration: none; }
.hc-brand img { height: 40px; width: auto; transition: height .35s var(--ease), transform .3s var(--ease); }
.hc-header.is-scrolled .hc-brand img { height: 36px; }
.hc-brand:hover img { transform: scale(1.03); }
.hc-brand__divider { width: 1px; height: 22px; background: var(--line); }
.hc-brand__label { font-size: 1rem; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hc-header__nav { display: none; align-items: center; gap: 2px; margin-inline: auto; }
.hc-header__nav a { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 9px 14px; border-radius: 999px; color: var(--body); font-weight: 550; font-size: .95rem; transition: color .2s ease, background .2s ease; }
.hc-header__nav a:hover { background: #f6f3fc; color: var(--primary); text-decoration: none; }
.hc-header__nav a::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 16px; height: 2px; border-radius: 999px; background: var(--gradient); translate: -50% 0; transform: scaleX(0); transition: transform .3s var(--ease); }
.hc-header__nav a[aria-current="page"] { color: var(--ink); }
.hc-header__nav a[aria-current="page"]::after { transform: scaleX(1); }
.hc-header__nav .hc-header__site { margin-left: 6px; color: var(--muted); }
.hc-header__nav .hc-header__site::before { content: ''; position: absolute; left: -4px; top: 50%; width: 1px; height: 18px; background: var(--line); translate: 0 -50%; }
.hc-header__nav .hc-header__site .hc-i { width: 15px; height: 15px; }
.hc-header__actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.hc-header__login { display: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.hc-header__login:hover { color: var(--primary); text-decoration: none; }
.hc-header__cta .hc-i { transition: transform .25s var(--ease); }
.hc-header__cta:hover .hc-i { transform: translateX(3px); }
@media (min-width: 640px) { .hc-header__login { display: inline; } }
@media (min-width: 960px) { .hc-header__nav { display: flex; } .hc-header__nav ~ .hc-header__actions { margin-left: 0; } }
@media (max-width: 479px) { .hc-brand img { height: 34px; } .hc-brand__divider, .hc-brand__label { display: none; } .hc-header__cta { display: none; } }

/* Burger: three bars that fold into a cross. */
.hc-burger { display: inline-grid; align-content: center; gap: 5px; width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.hc-burger span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s ease; }
.hc-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hc-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hc-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hc-mobile-menu { border-top: 1px solid var(--line); background: #fff; box-shadow: 0 24px 40px -20px rgba(78, 52, 138, .25); animation: hc-drop .3s var(--ease); }
.hc-mobile-menu[hidden] { display: none; }
.hc-mobile-menu__inner { display: grid; gap: 6px; padding-top: 12px; padding-bottom: 16px; }
.hc-mobile-menu__link { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-weight: 600; }
.hc-mobile-menu__link:hover, .hc-mobile-menu__link[aria-current="page"] { border-color: rgba(124, 77, 209, .35); background: #f6f3fc; color: var(--primary-ink); text-decoration: none; }
.hc-mobile-menu__link .hc-i { color: var(--muted); }
.hc-mobile-menu__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
@keyframes hc-drop { from { opacity: 0; transform: translateY(-6px); } }
.hc-notice { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; padding: 12px 16px; border-radius: var(--radius-sm); background: #fff8e6; color: #6b4e0a; font-size: .92rem; }

/* ── Search ── */
.hc-search { position: relative; display: flex; align-items: center; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); transition: border-color .2s ease, box-shadow .2s ease; }
.hc-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(124, 77, 209, .12), var(--shadow); }
.hc-search__icon { position: absolute; left: 14px; color: var(--muted); width: 18px; height: 18px; }
.hc-search input { flex: 1; min-width: 0; height: 40px; padding: 0 10px 0 40px; border: 0; background: transparent; font: inherit; font-size: .92rem; color: var(--ink); border-radius: 12px; }
.hc-search input:focus { outline: none; }
.hc-search input::-webkit-search-cancel-button { cursor: pointer; }
.hc-search__submit { margin: 4px; padding: 0 14px; height: 32px; border: 0; border-radius: 9px; background: var(--gradient); color: #fff; font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; transition: filter .2s ease; }
.hc-search__submit:hover { filter: brightness(1.08); }
.hc-search--lg { border-radius: 14px; }
.hc-search--lg input { height: 48px; padding-left: 44px; font-size: .98rem; }
.hc-search--lg .hc-search__icon { left: 16px; }
.hc-search--lg .hc-search__submit { height: 38px; margin: 5px; padding: 0 18px; border-radius: 10px; font-size: .9rem; }
@media (max-width: 479px) { .hc-search__submit { display: none; } }
.hc-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40; max-height: min(420px, 60vh); overflow-y: auto; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(22, 19, 31, .14); text-align: left; }
.hc-suggest a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink); }
.hc-suggest a:hover, .hc-suggest a[aria-selected="true"] { background: var(--tint); text-decoration: none; }
.hc-suggest a small { display: block; color: var(--muted); font-size: .8rem; }
.hc-suggest__foot { display: block; padding: 8px 12px 6px; color: var(--muted); font-size: .82rem; border-top: 1px solid var(--line); margin-top: 4px; }
.hc-suggest__empty { padding: 12px; color: var(--muted); font-size: .92rem; }
mark { background: rgba(124, 77, 209, .16); color: inherit; border-radius: 3px; padding: 0 2px; }

/* ── Hero ── */
.hc-hero { position: relative; isolation: isolate; overflow: hidden; padding: 56px 0 48px; text-align: center; background: linear-gradient(180deg, var(--tint) 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.hc-hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hc-hero__bg span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; }
.hc-hero__bg span:first-child { width: 380px; height: 380px; left: -120px; top: -160px; background: #c9a7ff; }
.hc-hero__bg span:last-child { width: 420px; height: 420px; right: -160px; top: -80px; background: #a8ccff; }
.hc-hero__inner { max-width: 780px; }
.hc-hero h1 { margin: 0 0 12px; font-size: clamp(2rem, 6vw, 3rem); font-weight: 800; }
.hc-hero__lead { margin: 0 auto 28px; max-width: 600px; font-size: 1.08rem; }
.hc-hero__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 0; font-size: .88rem; }
.hc-hero__chips span { color: var(--muted); padding: 5px 0; }
.hc-hero__chips a { padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--body); }
.hc-hero__chips a:hover { border-color: var(--primary); color: var(--primary-ink); text-decoration: none; }
@media (min-width: 768px) { .hc-hero { padding: 80px 0 64px; } }

/* ── Home ── */
.hc-home { padding-top: 40px; padding-bottom: 24px; }
.hc-section { margin: 0 0 56px; }
.hc-section__head { margin-bottom: 20px; }
.hc-section__head p { margin: -8px 0 0; color: var(--muted); }
.hc-section__head--row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.hc-section__head--row .hc-h2 { margin: 0; }
.hc-section__head--row a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.hc-split { display: grid; gap: 20px; margin-bottom: 56px; }
@media (min-width: 900px) { .hc-split { grid-template-columns: 1fr 1fr; } }
.hc-panel { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.hc-list { display: grid; gap: 8px; }
.hc-list--roomy { gap: 10px; margin-top: 8px; }
.hc-link-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid transparent; background: var(--surface-2); color: var(--ink); transition: border-color .18s, background .18s, transform .18s var(--ease); }
.hc-link-card:hover { text-decoration: none; border-color: var(--line); background: #fff; transform: translateX(2px); }
.hc-link-card__body { display: grid; gap: 2px; min-width: 0; }
.hc-link-card__title { font-weight: 600; }
.hc-link-card__summary { color: var(--muted); font-size: .9rem; }
.hc-link-card__meta { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .8rem; }
.hc-link-card__arrow { margin-left: auto; color: var(--muted); }
.hc-link-card:hover .hc-link-card__arrow { color: var(--primary); }

.hc-cat-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .hc-cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .hc-cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .hc-cat-grid { grid-template-columns: repeat(4, 1fr); } }
.hc-cat { display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--body); transition: border-color .18s, box-shadow .18s, transform .18s var(--ease); }
.hc-cat:hover { text-decoration: none; border-color: rgba(124, 77, 209, .45); box-shadow: var(--shadow); transform: translateY(-2px); }
.hc-cat__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 6px; border-radius: 12px; background: var(--tint); color: var(--primary); }
.hc-cat__icon .hc-i { width: 22px; height: 22px; }
.hc-cat__icon--lg { width: 56px; height: 56px; border-radius: 16px; }
.hc-cat__icon--lg .hc-i { width: 28px; height: 28px; }
.hc-cat__name { color: var(--ink); font-weight: 700; }
.hc-cat__desc { font-size: .9rem; color: var(--muted); }
.hc-cat__count { margin-top: auto; padding-top: 6px; font-size: .8rem; font-weight: 600; color: var(--primary-ink); }
.hc-cat--compact { padding: 16px; }

.hc-start { display: grid; gap: 24px; padding: 28px; border-radius: 20px; background: linear-gradient(135deg, #f7f2ff 0%, #eef5ff 100%); border: 1px solid var(--line); }
@media (min-width: 900px) { .hc-start { grid-template-columns: 1fr 1.4fr; align-items: center; padding: 40px; } }
.hc-start__intro p { margin: 0 0 18px; }
.hc-start__intro .hc-h2 { margin-bottom: 8px; }
.hc-start__steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hc-start__steps a { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); color: var(--ink); }
.hc-start__steps a:hover { text-decoration: none; border-color: var(--primary); }
.hc-start__steps strong { display: block; }
.hc-start__steps small { display: block; color: var(--muted); font-size: .86rem; }
.hc-start__num { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--gradient); color: #fff; font-weight: 700; font-size: .85rem; }

.hc-support-grid { display: grid; gap: 14px; }
@media (min-width: 600px) { .hc-support-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .hc-support-grid { grid-template-columns: repeat(4, 1fr); } .hc-support-grid--2 { grid-template-columns: repeat(2, 1fr); } }
.hc-support { display: grid; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--body); }
.hc-support:hover { text-decoration: none; border-color: var(--primary); box-shadow: var(--shadow); }
.hc-support .hc-i { width: 26px; height: 26px; color: var(--primary); }
.hc-support strong { color: var(--ink); }
.hc-support span { font-size: .9rem; color: var(--muted); overflow-wrap: anywhere; }

/* ── FAQ ── */
.hc-faq { display: grid; gap: 10px; }
.hc-faq__item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.hc-faq__item[open] { border-color: rgba(124, 77, 209, .35); }
.hc-faq__item summary { display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; list-style: none; color: var(--ink); font-weight: 600; }
.hc-faq__item summary::-webkit-details-marker { display: none; }
.hc-faq__item summary .hc-i { margin-left: auto; color: var(--muted); transition: transform .2s var(--ease); }
.hc-faq__item[open] summary .hc-i { transform: rotate(180deg); }
.hc-faq__item .hc-prose { padding: 0 16px 14px; }
.hc-faq-filter { position: relative; margin-bottom: 20px; }
.hc-faq-filter .hc-i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.hc-faq-filter input { width: 100%; height: 40px; padding: 0 12px 0 38px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: .92rem; }
.hc-faq-filter input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(124, 77, 209, .12); }
.hc-faq-group[hidden] { display: none; }

/* ── Docs layout (category + article) ── */
.hc-docs { display: grid; gap: 32px; padding-top: 20px; padding-bottom: 56px; }
@media (min-width: 960px) { .hc-docs { grid-template-columns: 260px minmax(0, 1fr); } }
@media (min-width: 1200px) { .hc-docs--three { grid-template-columns: 260px minmax(0, 1fr) 230px; } }
.hc-docs__main { min-width: 0; }
.hc-docs__nav { display: none; }
@media (min-width: 960px) {
  .hc-docs__nav { display: block; position: sticky; top: calc(var(--header-h) + 16px); align-self: start; max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; padding-right: 8px; }
}
.hc-docs__nav.is-open { display: block; position: fixed; inset: var(--header-h) 0 0 0; z-index: 45; padding: 16px; overflow-y: auto; background: #fff; }
.hc-nav-toggle { margin: 0 0 16px; }
.hc-docs__aside { display: none; }
@media (min-width: 1200px) { .hc-docs__aside { display: block; } }
.hc-aside-sticky { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 24px; }
.hc-aside__title { margin: 0 0 10px; font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }

.hc-sidenav__title { margin: 0 0 10px; font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.hc-sidenav__group { margin: 0 0 2px; }
.hc-sidenav__group summary { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; cursor: pointer; list-style: none; color: var(--ink); font-weight: 600; font-size: .92rem; }
.hc-sidenav__group summary::-webkit-details-marker { display: none; }
.hc-sidenav__group summary:hover { background: var(--surface-2); }
.hc-sidenav__group summary > .hc-i:first-child { color: var(--primary); }
.hc-sidenav__group summary[aria-current="page"] { background: var(--tint); color: var(--primary-ink); }
.hc-sidenav__chev { margin-left: auto; color: var(--muted); transition: transform .2s var(--ease); }
.hc-sidenav__group[open] > summary .hc-sidenav__chev { transform: rotate(180deg); }
.hc-sidenav ul { margin: 2px 0 8px; padding: 0 0 0 14px; list-style: none; border-left: 1px solid var(--line); margin-left: 18px; }
.hc-sidenav li a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--body); font-size: .9rem; line-height: 1.4; }
.hc-sidenav li a:hover { background: var(--surface-2); text-decoration: none; color: var(--ink); }
.hc-sidenav li a.is-active { position: relative; background: var(--tint); color: var(--primary-ink); font-weight: 600; }
.hc-sidenav li a.is-active::before { content: ''; position: absolute; left: -15px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--primary); }
.hc-sidenav__group--d1 { margin-left: 18px; }
.hc-sidenav__group--d1 summary { font-weight: 600; font-size: .88rem; }

.hc-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 0 16px; padding: 0; list-style: none; font-size: .86rem; color: var(--muted); }
.hc-crumbs li { display: inline-flex; align-items: center; gap: 4px; }
.hc-crumbs a { color: var(--muted); }
.hc-crumbs a:hover { color: var(--primary-ink); }
.hc-crumbs [aria-current] span { color: var(--ink); font-weight: 600; }

.hc-cat-head { display: flex; align-items: flex-start; gap: 16px; margin: 0 0 24px; }
.hc-cat-head h1 { margin: 2px 0 6px; font-size: clamp(1.5rem, 4vw, 2rem); }
.hc-cat-head p { margin: 0; color: var(--muted); }
.hc-docs__main > .hc-search { margin-bottom: 24px; box-shadow: none; }
.hc-sub-grid { display: grid; gap: 12px; margin-bottom: 24px; }
@media (min-width: 640px) { .hc-sub-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── Article ── */
.hc-art-head h1 { margin: 0 0 10px; font-size: clamp(1.7rem, 4.5vw, 2.4rem); font-weight: 800; }
.hc-art-head__summary { margin: 0 0 14px; font-size: 1.1rem; color: var(--body); }
.hc-art-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.hc-art-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hc-art-meta__langs a { padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--body); }
.hc-art-meta__langs a[aria-current] { border-color: var(--primary); color: var(--primary-ink); font-weight: 600; }
.hc-cover { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.hc-cover img { display: block; width: 100%; }
.hc-gate { display: flex; gap: 16px; padding: 24px; border-radius: var(--radius); background: var(--tint); border: 1px solid rgba(124, 77, 209, .25); }
.hc-gate > .hc-i { width: 28px; height: 28px; color: var(--primary); }
.hc-gate h2 { margin: 0 0 6px; font-size: 1.15rem; }
.hc-gate p { margin: 0 0 14px; }
.hc-toc-mobile { margin: 0 0 24px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.hc-toc-mobile summary { display: flex; align-items: center; gap: 8px; padding: 12px 14px; cursor: pointer; font-weight: 600; color: var(--ink); }
.hc-toc-mobile ul { margin: 0; padding: 0 14px 12px 14px; list-style: none; }
.hc-toc-mobile li a { display: block; padding: 4px 0; }

.hc-toc ul, .hc-related ul { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.hc-toc li a, .hc-related li a { display: block; padding: 5px 0 5px 12px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); font-size: .87rem; line-height: 1.4; }
.hc-toc li a:hover, .hc-related li a:hover { color: var(--ink); text-decoration: none; }
.hc-toc li a.is-active { border-left-color: var(--primary); color: var(--primary-ink); font-weight: 600; }
.hc-toc__l3 a { padding-left: 24px !important; }
.hc-toc-mobile .hc-toc__l3 a { padding-left: 14px !important; }
.hc-aside-help { padding: 16px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); font-size: .88rem; }
.hc-aside-help > .hc-i { width: 22px; height: 22px; color: var(--primary); }
.hc-aside-help p { margin: 6px 0 8px; }
.hc-aside-help a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }

/* Prose: the rendered Markdown */
.hc-prose { color: var(--body); font-size: 1rem; line-height: 1.75; overflow-wrap: break-word; }
.hc-prose > :first-child { margin-top: 0; }
.hc-prose h2 { margin: 2em 0 .6em; font-size: 1.45rem; }
.hc-prose h3 { margin: 1.7em 0 .5em; font-size: 1.18rem; }
.hc-prose h4 { margin: 1.4em 0 .4em; font-size: 1.02rem; }
.hc-prose h2:focus, .hc-prose h3:focus { outline: none; }
.hc-prose p, .hc-prose ul, .hc-prose ol { margin: 0 0 1.1em; }
.hc-prose ul, .hc-prose ol { padding-left: 1.4em; }
.hc-prose li { margin: .3em 0; }
.hc-prose li > p { margin: 0 0 .4em; }
.hc-prose strong { color: var(--ink); }
.hc-prose a { text-decoration: underline; text-decoration-color: rgba(93, 52, 173, .35); text-underline-offset: 3px; }
.hc-prose a:hover { text-decoration-color: currentColor; }
.hc-prose img { display: block; margin: 1.4em 0; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.hc-prose hr { margin: 2em 0; border: 0; border-top: 1px solid var(--line); }
.hc-prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--line); color: var(--muted); }
.hc-prose code { padding: .12em .4em; border-radius: 6px; background: var(--tint); color: var(--primary-ink); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .88em; }
.hc-prose kbd { padding: .1em .45em; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: #fff; font-family: inherit; font-size: .86em; }
.hc-prose .hc-code { position: relative; margin: 1.3em 0; padding: 16px 18px; border-radius: 12px; background: var(--code-bg); color: #ece9f6; overflow-x: auto; font-size: .87rem; line-height: 1.6; }
.hc-prose .hc-code code { padding: 0; background: none; color: inherit; font-size: inherit; }
.hc-copy { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 8px; background: rgba(255, 255, 255, .06); color: #ece9f6; font: inherit; font-size: .76rem; cursor: pointer; }
.hc-copy:hover { background: rgba(255, 255, 255, .14); }
.hc-prose .hc-table { margin: 1.3em 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.hc-prose table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.hc-prose th, .hc-prose td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.hc-prose th { background: var(--surface-2); color: var(--ink); font-weight: 700; white-space: nowrap; }
.hc-prose tr:last-child td { border-bottom: 0; }
.hc-prose .hc-video { position: relative; margin: 1.4em 0; padding-top: 56.25%; border-radius: 12px; overflow: hidden; background: #000; }
.hc-prose .hc-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hc-prose ol.hc-steps { counter-reset: step; padding-left: 0; list-style: none; }
.hc-prose ol.hc-steps > li { position: relative; counter-increment: step; margin: 0 0 14px; padding: 2px 0 0 46px; min-height: 32px; }
.hc-prose ol.hc-steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gradient); color: #fff; font-weight: 700; font-size: .85rem; }
.hc-prose ol.hc-steps > li:not(:last-child)::after { content: ''; position: absolute; left: 14px; top: 34px; bottom: -12px; width: 2px; background: var(--line); }
.hc-callout { margin: 1.3em 0; padding: 14px 16px 2px; border-radius: 12px; border: 1px solid; }
.hc-callout__title { margin: 0 0 4px !important; font-weight: 700; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; }
.hc-callout--note { background: #eef5ff; border-color: #cfe1fb; }
.hc-callout--note .hc-callout__title { color: #2563b8; }
.hc-callout--tip { background: #ecfaf3; border-color: #c4ecd7; }
.hc-callout--tip .hc-callout__title { color: var(--success); }
.hc-callout--important { background: var(--tint); border-color: #ddcdf7; }
.hc-callout--important .hc-callout__title { color: var(--primary-ink); }
.hc-callout--warning { background: #fff7e8; border-color: #f6dfae; }
.hc-callout--warning .hc-callout__title { color: var(--warning); }

.hc-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 32px 0 0; color: var(--muted); }
.hc-tags a { padding: 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--body); font-size: .82rem; }
.hc-tags a:hover { border-color: var(--primary); text-decoration: none; }

.hc-feedback { margin: 40px 0 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.hc-feedback__ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.hc-feedback h2 { margin: 0; font-size: 1.05rem; }
.hc-feedback__btns { display: flex; gap: 8px; }
.hc-feedback__more { display: grid; gap: 8px; margin-top: 16px; }
.hc-feedback__more label { font-weight: 600; color: var(--ink); font-size: .92rem; }
.hc-feedback__more label span { font-weight: 400; color: var(--muted); }
.hc-feedback__more textarea { width: 100%; padding: 8px 12px; font-size: .92rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; resize: vertical; }
.hc-feedback__more textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(124, 77, 209, .12); }
.hc-feedback__row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hc-feedback__done { margin: 12px 0 0; color: var(--success); font-weight: 600; }
.hc-feedback__still { margin: 14px 0 0; font-size: .9rem; color: var(--muted); }

.hc-pager { display: grid; gap: 12px; margin: 28px 0 0; }
@media (min-width: 640px) { .hc-pager { grid-template-columns: 1fr 1fr; } }
.hc-pager a { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); font-weight: 600; }
.hc-pager a:hover { border-color: var(--primary); text-decoration: none; }
.hc-pager small { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 500; }
.hc-pager__next { text-align: right; }
.hc-pager__next small { justify-content: flex-end; }

/* ── Search page ── */
.hc-search-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 24px 0 12px; }
.hc-search-meta p { margin: 0; }
.hc-filter { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.hc-filter select { height: 36px; font-size: .9rem; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; max-width: 240px; }
.hc-results { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hc-results a { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--body); }
.hc-results a:hover { border-color: var(--primary); text-decoration: none; box-shadow: var(--shadow); }
.hc-results__title { color: var(--ink); font-weight: 700; font-size: 1.04rem; }
.hc-results__cat { color: var(--primary-ink); font-size: .8rem; font-weight: 600; }
.hc-results__excerpt { font-size: .92rem; color: var(--muted); }
.hc-zero { padding: 24px; border: 1px dashed var(--line); border-radius: var(--radius); }
.hc-zero > p:first-child { margin-top: 0; }
.hc-zero__support { margin-bottom: 0; }

.hc-404 { text-align: left; }

/* ── Support band ── an inset gradient panel, like the site's closing CTA */
.hc-band { padding-top: 24px; padding-bottom: 72px; }
.hc-band__inner { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 22px; padding: 32px 24px; border-radius: 24px; background: linear-gradient(120deg, #6f3fc0 0%, #7c4dd1 40%, #4a90e2 100%); color: #fff; box-shadow: 0 24px 60px rgba(78, 52, 138, .22); }
.hc-band__grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 32px 32px; -webkit-mask-image: radial-gradient(80% 120% at 85% 50%, #000, transparent 75%); mask-image: radial-gradient(80% 120% at 85% 50%, #000, transparent 75%); }
.hc-band__copy { display: flex; align-items: flex-start; gap: 16px; }
.hc-band__icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); }
.hc-band__icon .hc-i { width: 24px; height: 24px; }
.hc-band h2 { margin: 0 0 4px; color: #fff; font-size: 1.35rem; font-weight: 800; }
.hc-band p { margin: 0; max-width: 56ch; color: rgba(255, 255, 255, .88); }
.hc-band__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 900px) { .hc-band__inner { grid-template-columns: 1fr auto; align-items: center; padding: 36px 44px; } }

/* ── Footer ── mirrors Landing/Footer.vue */
.hc-footer { position: relative; isolation: isolate; overflow: hidden; padding: 72px 0 28px; background: #16131f; color: rgba(255, 255, 255, .68); font-size: .92rem; }
.hc-footer::before { content: ''; position: absolute; inset: 0 0 auto 0; z-index: -1; height: 460px; background: radial-gradient(56% 100% at 16% 0%, rgba(139, 71, 214, .26), transparent 68%), radial-gradient(46% 100% at 80% 0%, rgba(65, 135, 224, .18), transparent 70%); pointer-events: none; }
.hc-footer__edge { position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, #9b4dca, #4a90e2, #c58cf0, transparent); background-size: 200% 100%; animation: hc-flow 6s linear infinite; }
@keyframes hc-flow { to { background-position: -200% 0; } }
.hc-footer a { color: inherit; }
.hc-footer a:hover { text-decoration: none; }
.hc-footer ul { margin: 0; padding: 0; list-style: none; }
.hc-footer__top { display: grid; gap: 44px; padding-bottom: 52px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
@media (min-width: 1025px) { .hc-footer__top { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 64px; } }
.hc-footer__brand img { height: 56px; width: auto; }
.hc-footer__tagline { margin: 14px 0 0; max-width: 62ch; line-height: 1.65; font-size: .94rem; }
.hc-footer__contact { margin-top: 18px; font-style: normal; }
.hc-footer__contact-row { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.hc-footer__contact-row a { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; transition: color .2s ease; }
.hc-footer__contact-row a:hover { color: #7db3f2; }
.hc-footer__ci { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(65, 135, 224, .14); color: #7db3f2; transition: background .25s ease, color .25s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.hc-footer__ci .hc-i { width: 14px; height: 14px; }
.hc-footer__contact-row a:hover .hc-footer__ci { background: var(--gradient); color: #fff; transform: rotate(-10deg) scale(1.08); }
.hc-footer__social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hc-footer__social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); color: rgba(255, 255, 255, .85); transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s ease; }
.hc-footer__social a:hover { background: var(--gradient); border-color: transparent; color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(124, 77, 209, .4); }
.hc-footer__social .hc-i { width: 16px; height: 16px; }
.hc-footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
@media (min-width: 769px) { .hc-footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hc-footer__h { margin: 0 0 18px; color: #fff; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hc-footer__col ul { display: grid; gap: 11px; }
.hc-footer__col a { position: relative; display: inline-block; font-size: .9rem; color: rgba(255, 255, 255, .66); transition: color .25s var(--ease), transform .3s var(--ease); }
.hc-footer__col a::before { content: ''; position: absolute; left: -14px; top: 50%; width: 8px; height: 2px; border-radius: 2px; background: var(--gradient); opacity: 0; transform: translateX(-6px); transition: opacity .25s ease, transform .3s var(--ease); }
.hc-footer__col a:hover { color: #fff; transform: translateX(12px); }
.hc-footer__col a:hover::before { opacity: 1; transform: none; }
.hc-footer__top-btn { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -22px auto 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); background: #1f1b2b; color: #fff; transition: background .25s ease, border-color .25s ease, transform .3s var(--ease), box-shadow .25s ease; }
.hc-footer__top-btn .hc-i { width: 18px; height: 18px; }
.hc-footer__top-btn:hover { background: var(--gradient); border-color: transparent; transform: translateY(-3px); box-shadow: 0 10px 22px rgba(124, 77, 209, .4); }
.hc-footer__wordmark { margin: 14px 0 -8px; text-align: center; font-size: clamp(3.5rem, 15vw, 13rem); font-weight: 800; line-height: .9; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .1); background: linear-gradient(100deg, transparent 35%, rgba(197, 140, 240, .45) 50%, transparent 65%) no-repeat; background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; user-select: none; pointer-events: none; animation: hc-sweep 7s ease-in-out infinite; }
@keyframes hc-sweep { 0% { background-position: 120% 0; } 60%, 100% { background-position: -20% 0; } }
.hc-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding-top: 26px; padding-right: 45px; font-size: .84rem; color: rgba(255, 255, 255, .55); }
.hc-footer__bottom p { margin: 0; }
/* `.hc-footer ul` resets margins and outranks a single class, so this needs the parent too. */
.hc-footer .hc-footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-right: auto; }
.hc-footer__legal::before { content: ''; width: 1px; height: 14px; margin-left: -10px; background: rgba(255, 255, 255, .22); }
.hc-footer__legal a { font-size: .84rem; color: rgba(255, 255, 255, .6); transition: color .2s ease; }
.hc-footer__legal a:hover { color: #fff; }
.hc-footer__credit a { color: #fff; font-weight: 600; }
.hc-footer__credit a:hover { color: #7db3f2; }
@media (max-width: 768px) {
  .hc-footer { padding-top: 56px; }
  .hc-band { padding-bottom: 48px; }
  .hc-footer__bottom { flex-direction: column; align-items: center; text-align: center; gap: 14px; padding-right: 0; padding-bottom: 74px; }
  /* One row of legal links, scrolling sideways on the narrowest phones rather than wrapping. */
  .hc-footer .hc-footer__legal { flex-wrap: nowrap; justify-content: center; justify-content: safe center; gap: 12px; max-width: 100%; overflow-x: auto; scrollbar-width: none; margin-right: 0; }
  .hc-footer__legal::-webkit-scrollbar { display: none; }
  .hc-footer__legal::before { display: none; }
  .hc-footer__legal li { flex: none; }
  .hc-footer__legal a { font-size: .78rem; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .hc-footer__edge, .hc-footer__wordmark { animation: none; } }

@media print {
  .hc-header, .hc-docs__nav, .hc-docs__aside, .hc-band, .hc-footer, .hc-feedback, .hc-pager, .hc-nav-toggle, .hc-toc-mobile { display: none !important; }
  .hc-docs { display: block; }
}
