/* VxM Help Center — generated from /Users/galdolber/github/vxm/db-api/resources/ai-docs.
   Source: /Users/galdolber/github/vxm/help-center/help-center.css
   DO NOT edit the deployed copy at vxm.latam/assets/css/help-center.css —
   run /Users/galdolber/github/vxm/help-center/build.py to refresh. */

/* =========================================================================
   THEME — light + dark via [data-hc-theme]
   ========================================================================= */

:root {
  --hc-brand: #477ECF;
  --hc-brand-strong: #2E5FB0;
  --hc-accent: #20AD96;
  --hc-accent-soft: #7FD2CD;

  --hc-fg: #1A1A1A;
  --hc-fg-muted: rgba(26, 26, 26, 0.62);
  --hc-fg-soft: rgba(26, 26, 26, 0.45);
  --hc-bg: #ffffff;
  --hc-bg-soft: #F9FAFB;
  --hc-bg-elev: #ffffff;
  --hc-border: #E5E7EB;
  --hc-border-soft: #F2F5EE;

  --hc-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --hc-shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --hc-shadow-lg: 0 16px 48px rgba(0,0,0,0.20);

  --hc-radius: 10px;
  --hc-radius-lg: 14px;
  --hc-max: 1280px;
  /* Approximate height of vxm.latam's sticky site-header — used as the
     sticky-offset for the sidebar and TOC so they don't slide under it.
     Mobile breakpoint overrides this to match the smaller mobile header. */
  --hc-topbar-h: 86px;
}
@media (max-width: 768px) {
  :root { --hc-topbar-h: 64px; }

  --hc-font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --hc-mono: 'SF Mono', Menlo, Consolas, monospace;
}

[data-hc-theme="dark"] {
  --hc-fg: #F2F5EE;
  --hc-fg-muted: rgba(242, 245, 238, 0.66);
  --hc-fg-soft: rgba(242, 245, 238, 0.42);
  --hc-bg: #0E0E12;
  --hc-bg-soft: #15151B;
  --hc-bg-elev: #1A1A22;
  --hc-border: #2A2A33;
  --hc-border-soft: #1F1F27;
  --hc-brand: #6FA0E6;
  --hc-shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --hc-shadow-md: 0 4px 16px rgba(0,0,0,0.5);
  --hc-shadow-lg: 0 16px 48px rgba(0,0,0,0.65);
}

/* The vxm.latam site already provides body styling; we only override what
   we need inside .hc-app. */
.hc-app {
  font-family: var(--hc-font);
  color: var(--hc-fg);
  background: var(--hc-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

/* The vxm.latam global site-header (#header) stays as the main nav across
   help-center pages. We don't add an extra topbar — search is in the hero
   on the index page and inline on article pages. A floating theme toggle
   anchors bottom-right so dark mode is always one click away. */

.hc-app * {
  box-sizing: border-box;
}

.hc-app a {
  color: var(--hc-brand);
  text-decoration: none;
  transition: color 120ms ease;
}
.hc-app a:hover {
  color: var(--hc-brand-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Skip link (a11y) */
.hc-app .hc-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--hc-brand);
  color: #fff;
  padding: 8px 12px;
  border-radius: 0 0 var(--hc-radius) 0;
  z-index: 9999;
}
.hc-app .hc-skip:focus { left: 0; }

/* =========================================================================
   FLOATING THEME TOGGLE — fixed bottom-right
   ========================================================================= */

.hc-theme-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 70;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--hc-bg-elev);
  border: 1px solid var(--hc-border);
  border-radius: 50%;
  color: var(--hc-fg);
  cursor: pointer;
  box-shadow: var(--hc-shadow-md);
  transition: all 160ms ease;
  font-size: 20px;
  line-height: 1;
}
.hc-theme-toggle:hover {
  border-color: var(--hc-brand);
  color: var(--hc-brand);
  transform: translateY(-2px);
  box-shadow: var(--hc-shadow-lg);
}
.hc-theme-icon { display: none; }
.hc-theme-sun { display: inline-block; }
[data-hc-theme="dark"] .hc-theme-sun { display: none; }
[data-hc-theme="dark"] .hc-theme-moon { display: inline-block; }

/* Shared kbd hint pill — used by hero-search and inline-search buttons */
.hc-kbd-hint {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  margin-left: auto;
}
.hc-kbd-hint kbd, .hc-search-footer kbd, .hc-search-close kbd {
  font-family: inherit;
  font-size: 11px;
  padding: 2px 6px;
  border: 1px solid var(--hc-border);
  border-radius: 4px;
  background: var(--hc-bg);
  color: var(--hc-fg-muted);
  font-weight: 500;
}

/* =========================================================================
   INDEX PAGE
   ========================================================================= */

.hc-index {
  max-width: var(--hc-max);
  margin: 0 auto;
  padding: 0 24px 96px;
}

.hc-hero {
  text-align: center;
  padding: 72px 24px 48px;
}
.hc-hero h1 {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  margin: 0 0 12px;
  color: var(--hc-fg);
}
.hc-hero p {
  font-size: 17px;
  color: var(--hc-fg-muted);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.5;
}

.hc-hero-search {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 600px;
  height: 60px;
  padding: 0 24px;
  background: var(--hc-bg-elev);
  border: 1px solid var(--hc-border);
  border-radius: 14px;
  color: var(--hc-fg-muted);
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
  text-align: left;
  box-shadow: var(--hc-shadow-sm);
  transition: all 160ms ease;
}
.hc-hero-search:hover {
  border-color: var(--hc-brand);
  color: var(--hc-fg);
  box-shadow: var(--hc-shadow-md);
}
.hc-hero-search svg { width: 22px; height: 22px; opacity: 0.55; flex-shrink: 0; display: block; }
.hc-hero-search-label { flex: 1; }

.hc-inline-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 38px;
  padding: 0 12px;
  background: var(--hc-bg-soft);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  color: var(--hc-fg-muted);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  transition: all 120ms ease;
}
.hc-inline-search:hover {
  background: var(--hc-bg-elev);
  border-color: var(--hc-brand);
  color: var(--hc-fg);
}
.hc-inline-search svg { width: 14px; height: 14px; opacity: 0.55; flex-shrink: 0; display: block; }
.hc-sidebar-search { padding: 0 4px 14px; }

.hc-section {
  margin: 48px 0;
}
.hc-section-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--hc-fg-muted);
  margin: 0 0 18px;
}

/* GET STARTED RAIL */
.hc-getstarted-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.hc-getstarted-card {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  background: var(--hc-bg-elev);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius);
  color: var(--hc-fg);
  transition: all 160ms ease;
  position: relative;
  overflow: hidden;
}
.hc-getstarted-card:hover {
  border-color: var(--hc-brand);
  transform: translateY(-2px);
  box-shadow: var(--hc-shadow-md);
  text-decoration: none;
}
.hc-getstarted-cat {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--hc-brand);
  font-weight: 700;
  margin-bottom: 8px;
}
.hc-getstarted-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--hc-fg);
  margin-bottom: 6px;
  line-height: 1.3;
}
.hc-getstarted-desc {
  font-size: 13px;
  color: var(--hc-fg-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hc-getstarted-cta {
  position: absolute;
  bottom: 14px;
  right: 18px;
  font-size: 18px;
  color: var(--hc-fg-soft);
  transition: all 160ms ease;
}
.hc-getstarted-card:hover .hc-getstarted-cta {
  color: var(--hc-brand);
  transform: translateX(4px);
}

/* CATEGORY CARDS */
.hc-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.hc-cat-card {
  background: var(--hc-bg-elev);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius);
  padding: 22px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.hc-cat-card:hover {
  border-color: var(--hc-brand);
  box-shadow: var(--hc-shadow-md);
}
.hc-cat-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.hc-cat-card-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--hc-brand) 12%, transparent);
  color: var(--hc-brand);
  border-radius: 8px;
}
.hc-cat-card-icon svg { width: 22px; height: 22px; }
.hc-cat-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--hc-fg);
  margin: 0;
  line-height: 1.2;
}
.hc-cat-card-count {
  font-size: 12px;
  color: var(--hc-fg-soft);
  font-weight: 500;
}
.hc-cat-card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}
.hc-cat-card-list li { margin: 0; }
.hc-cat-card-list[data-hc-clamp="3"] li:nth-child(n+4) { display: none; }
.hc-cat-card-list[data-hc-clamp="all"] li { display: block; }
.hc-cat-card-list a {
  display: block;
  padding: 6px 0;
  color: var(--hc-fg-muted);
  font-size: 14px;
  line-height: 1.4;
  border-bottom: 1px solid var(--hc-border-soft);
}
.hc-cat-card-list li:last-child a { border-bottom: 0; }
.hc-cat-card-list a:hover { color: var(--hc-brand); text-decoration: none; }
.hc-cat-card-all {
  display: inline-block;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--hc-brand);
  background: none;
  border: 0;
  padding: 4px 0 0;
  margin-top: 4px;
  cursor: pointer;
}
.hc-cat-card-all:hover { text-decoration: underline; }

/* RECENT VIEWED */
.hc-recent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.hc-recent-card {
  display: block;
  padding: 14px 16px;
  background: var(--hc-bg-elev);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius);
  font-size: 14px;
  color: var(--hc-fg);
}
.hc-recent-card:hover {
  border-color: var(--hc-brand);
  text-decoration: none;
}

/* WHAT'S NEW */
.hc-whatsnew-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--hc-border-soft);
}
.hc-whatsnew-list li {
  border-bottom: 1px solid var(--hc-border-soft);
}
.hc-whatsnew-list a {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  color: var(--hc-fg);
}
.hc-whatsnew-list a:hover { text-decoration: none; }
.hc-whatsnew-list a:hover .hc-whatsnew-title { color: var(--hc-brand); }
.hc-whatsnew-date {
  font-size: 12px;
  color: var(--hc-fg-soft);
  font-family: var(--hc-mono);
}
.hc-whatsnew-title {
  font-weight: 600;
  font-size: 14px;
  transition: color 120ms ease;
}
.hc-whatsnew-cat {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--hc-fg-soft);
  font-weight: 600;
}

/* A-Z LIST */
.hc-az {
  background: var(--hc-bg-soft);
  border-radius: var(--hc-radius);
  padding: 24px 28px;
}
.hc-az-list {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 3;
  column-gap: 32px;
}
.hc-az-list li {
  break-inside: avoid;
  margin: 0;
}
.hc-az-list a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: var(--hc-fg-muted);
}
.hc-az-list a:hover { color: var(--hc-brand); text-decoration: none; }
@media (max-width: 900px) {
  .hc-az-list { columns: 2; }
}
@media (max-width: 600px) {
  .hc-az-list { columns: 1; }
}

/* =========================================================================
   ARTICLE PAGE
   ========================================================================= */

.hc-shell {
  max-width: var(--hc-max);
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 220px;
  gap: 40px;
  align-items: start;
}

.hc-sidebar {
  position: sticky;
  top: calc(var(--hc-topbar-h) + 12px);
  align-self: start;
  max-height: calc(100vh - var(--hc-topbar-h) - 24px);
  overflow-y: auto;
  font-size: 13px;
  padding-right: 8px;
}
.hc-sidebar::-webkit-scrollbar { width: 6px; }
.hc-sidebar::-webkit-scrollbar-thumb { background: var(--hc-border); border-radius: 3px; }

.hc-nav { list-style: none; padding: 0; margin: 0; }
.hc-cat-block { margin-bottom: 18px; }
.hc-cat-label {
  display: block;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--hc-fg-soft);
  margin-bottom: 6px;
  padding: 0 8px;
}
.hc-cat-block ul { list-style: none; padding: 0; margin: 0; }
.hc-cat-block li a {
  display: block;
  padding: 5px 8px;
  color: var(--hc-fg-muted);
  border-radius: 6px;
  line-height: 1.4;
  font-weight: 500;
}
.hc-cat-block li a:hover {
  color: var(--hc-brand);
  background: var(--hc-bg-soft);
  text-decoration: none;
}
.hc-cat-block li a.hc-current {
  color: var(--hc-brand);
  background: color-mix(in srgb, var(--hc-brand) 10%, transparent);
  font-weight: 700;
}

.hc-article {
  min-width: 0;
  max-width: 760px;
  padding-top: 16px;
}

.hc-breadcrumb {
  font-size: 13px;
  color: var(--hc-fg-soft);
  margin-bottom: 16px;
}
.hc-breadcrumb a { color: var(--hc-fg-muted); }
.hc-breadcrumb a:hover { color: var(--hc-brand); }
.hc-sep { margin: 0 8px; opacity: 0.5; }

.hc-article-head {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hc-border-soft);
}
.hc-article-cat {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--hc-brand);
  margin-bottom: 10px;
}
.hc-article h1 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.6px;
  margin: 0 0 14px;
  color: var(--hc-fg);
}
.hc-article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--hc-fg-soft);
}
.hc-meta-time::before {
  content: "🕒";
  margin-right: 6px;
  filter: grayscale(1);
  opacity: 0.6;
}
.hc-meta-date::before {
  content: "✓";
  margin-right: 6px;
  color: var(--hc-accent);
}

.hc-article-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--hc-fg);
}
.hc-article-body h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 14px;
  color: var(--hc-fg);
  scroll-margin-top: calc(var(--hc-topbar-h) + 12px);
  position: relative;
}
.hc-article-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 10px;
  color: var(--hc-fg);
  scroll-margin-top: calc(var(--hc-topbar-h) + 12px);
}
.hc-article-body h2 .hc-anchor,
.hc-article-body h3 .hc-anchor {
  position: absolute;
  left: -22px;
  opacity: 0;
  color: var(--hc-fg-soft);
  font-weight: 400;
  transition: opacity 120ms ease;
}
.hc-article-body h2:hover .hc-anchor,
.hc-article-body h3:hover .hc-anchor { opacity: 1; }
.hc-article-body p {
  margin: 0 0 16px;
}
.hc-article-body ul, .hc-article-body ol {
  margin: 0 0 18px;
  padding-left: 26px;
}
.hc-article-body li { margin-bottom: 6px; }
.hc-article-body li > ul, .hc-article-body li > ol { margin-bottom: 0; }
.hc-article-body strong { color: var(--hc-fg); font-weight: 700; }
.hc-article-body code {
  background: var(--hc-bg-soft);
  border: 1px solid var(--hc-border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.88em;
  font-family: var(--hc-mono);
}
.hc-article-body pre {
  position: relative;
  background: var(--hc-bg-soft);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius);
  padding: 16px;
  overflow-x: auto;
  margin: 0 0 20px;
  font-family: var(--hc-mono);
  font-size: 13px;
}
.hc-article-body pre code { border: 0; padding: 0; background: transparent; font-size: inherit; }
.hc-article-body pre .hc-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--hc-bg);
  border: 1px solid var(--hc-border);
  color: var(--hc-fg-muted);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  opacity: 0;
  transition: opacity 120ms ease;
}
.hc-article-body pre:hover .hc-copy { opacity: 1; }
.hc-article-body pre .hc-copy:hover { color: var(--hc-brand); border-color: var(--hc-brand); }
.hc-article-body table {
  border-collapse: collapse;
  margin: 0 0 20px;
  width: 100%;
  font-size: 14px;
}
.hc-article-body th, .hc-article-body td {
  border: 1px solid var(--hc-border);
  padding: 10px 14px;
  text-align: left;
}
.hc-article-body th {
  background: var(--hc-bg-soft);
  font-weight: 700;
}
.hc-article-body blockquote {
  border-left: 3px solid var(--hc-brand);
  padding: 4px 0 4px 16px;
  margin: 0 0 18px;
  color: var(--hc-fg-muted);
}
.hc-article-body hr {
  border: 0;
  border-top: 1px solid var(--hc-border-soft);
  margin: 28px 0;
}

/* RELATED */
.hc-related {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--hc-border-soft);
}
.hc-related-title-h {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--hc-fg-muted);
  margin: 0 0 16px;
}
.hc-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.hc-related-card {
  display: block;
  padding: 16px 18px;
  background: var(--hc-bg-elev);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius);
  color: var(--hc-fg);
  transition: all 160ms ease;
}
.hc-related-card:hover {
  border-color: var(--hc-brand);
  transform: translateY(-2px);
  box-shadow: var(--hc-shadow-md);
  text-decoration: none;
}
.hc-related-cat {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--hc-brand);
  font-weight: 700;
  margin-bottom: 6px;
}
.hc-related-title {
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
  font-size: 14px;
}
.hc-related-desc {
  font-size: 12px;
  color: var(--hc-fg-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* TOC right rail */
.hc-toc {
  position: sticky;
  top: calc(var(--hc-topbar-h) + 12px);
  align-self: start;
  max-height: calc(100vh - var(--hc-topbar-h) - 24px);
  overflow-y: auto;
  font-size: 13px;
  padding-top: 16px;
}
.hc-toc-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--hc-fg-soft);
  margin-bottom: 10px;
  padding: 0 12px;
}
.hc-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1px solid var(--hc-border);
}
.hc-toc-list li { margin: 0; }
.hc-toc-list a {
  display: block;
  padding: 5px 12px;
  color: var(--hc-fg-muted);
  font-size: 13px;
  line-height: 1.4;
  border-left: 2px solid transparent;
  margin-left: -1px;
  transition: all 100ms ease;
}
.hc-toc-list a:hover {
  color: var(--hc-fg);
  text-decoration: none;
}
.hc-toc-list a.hc-toc-active {
  color: var(--hc-brand);
  border-left-color: var(--hc-brand);
  font-weight: 600;
}
.hc-toc-h3 a {
  padding-left: 24px;
  font-size: 12.5px;
}

@media (max-width: 1100px) {
  .hc-shell { grid-template-columns: 220px 1fr; }
  .hc-toc { display: none; }
}
/* The <820 collapse to drawer-mode lives in the MOBILE block below — see
   .hc-drawer-toggle and .hc-sidebar position:fixed rules. Keeping the
   collapse logic in one place avoids the previous static-vs-fixed conflict. */

/* =========================================================================
   COMMAND PALETTE / SEARCH OVERLAY
   ========================================================================= */

.hc-search {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 16px 16px;
  animation: hc-fade-in 120ms ease;
}
.hc-search[hidden] { display: none; }
.hc-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 39, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hc-search-panel {
  position: relative;
  width: 100%;
  max-width: 640px;
  background: var(--hc-bg-elev);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius-lg);
  box-shadow: var(--hc-shadow-lg);
  overflow: hidden;
  animation: hc-zoom-in 140ms cubic-bezier(0.2, 0.9, 0.3, 1);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 120px);
}
@keyframes hc-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes hc-zoom-in {
  from { opacity: 0; transform: scale(0.96) translateY(-8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.hc-search-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--hc-border);
}
.hc-search-input-row svg {
  width: 20px;
  height: 20px;
  color: var(--hc-fg-soft);
  flex-shrink: 0;
}
.hc-search-input-row input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: 17px;
  color: var(--hc-fg);
  padding: 0;
}
.hc-search-input-row input::placeholder { color: var(--hc-fg-soft); }

.hc-search-close {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 4px;
}

.hc-search-list {
  list-style: none;
  padding: 8px 0;
  margin: 0;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.hc-search-list li.hc-result {
  margin: 0;
}
.hc-search-list li.hc-result a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 10px 20px;
  color: var(--hc-fg);
  border-left: 2px solid transparent;
}
.hc-search-list li.hc-result a:hover,
.hc-search-list li.hc-result.hc-active a {
  background: var(--hc-bg-soft);
  border-left-color: var(--hc-brand);
  text-decoration: none;
}
.hc-search-list li.hc-result.hc-active a {
  background: color-mix(in srgb, var(--hc-brand) 10%, transparent);
}
.hc-result-title {
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.35;
  grid-column: 1;
}
.hc-result-cat {
  grid-column: 2;
  grid-row: 1;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--hc-fg-soft);
  align-self: center;
  white-space: nowrap;
}
.hc-result-snippet {
  grid-column: 1 / -1;
  font-size: 12.5px;
  color: var(--hc-fg-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hc-result mark {
  background: color-mix(in srgb, var(--hc-brand) 22%, transparent);
  color: inherit;
  border-radius: 3px;
  padding: 0 2px;
}

.hc-search-section { padding: 6px 0; }
.hc-search-section-title {
  padding: 8px 20px 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  color: var(--hc-fg-soft);
}

.hc-search-empty {
  padding: 32px 24px;
  text-align: center;
  color: var(--hc-fg-muted);
}
.hc-search-empty strong {
  display: block;
  color: var(--hc-fg);
  margin-bottom: 4px;
  font-size: 15px;
}
.hc-search-empty p { margin: 0; font-size: 13px; }

.hc-search-footer {
  display: flex;
  gap: 16px;
  padding: 10px 20px;
  border-top: 1px solid var(--hc-border);
  background: var(--hc-bg-soft);
  font-size: 11px;
  color: var(--hc-fg-soft);
}
.hc-search-footer span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

@media (max-width: 600px) {
  .hc-search { padding: 16px; }
  .hc-search-panel { max-height: calc(100vh - 32px); }
  .hc-search-footer { display: none; }
}

/* =========================================================================
   404 PAGE
   ========================================================================= */

.hc-404 {
  max-width: 640px;
  margin: 0 auto;
  padding: 96px 24px;
  text-align: center;
}
.hc-404-mark {
  font-size: 110px;
  font-weight: 800;
  letter-spacing: -3px;
  color: var(--hc-brand);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 16px;
}
.hc-404 h1 {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--hc-fg);
}
.hc-404 p {
  font-size: 16px;
  color: var(--hc-fg-muted);
  margin: 0 0 24px;
  line-height: 1.5;
}
.hc-404-suggestions {
  margin-top: 32px;
  text-align: left;
  background: var(--hc-bg-soft);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius);
  padding: 20px;
}
.hc-404-suggestions-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  color: var(--hc-fg-soft);
  margin-bottom: 10px;
}
.hc-404-suggestions ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hc-404-suggestions a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--hc-fg);
  font-weight: 500;
}
.hc-404-suggestions a:hover {
  background: var(--hc-bg-elev);
  color: var(--hc-brand);
  text-decoration: none;
}
.hc-404-back {
  display: inline-block;
  margin-top: 24px;
  font-size: 14px;
  color: var(--hc-fg-muted);
  font-weight: 500;
}
.hc-404-search {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 480px;
  height: 50px;
  padding: 0 18px;
  background: var(--hc-bg-elev);
  border: 1px solid var(--hc-border);
  border-radius: 12px;
  color: var(--hc-fg-muted);
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
  text-align: left;
  box-shadow: var(--hc-shadow-sm);
  transition: all 150ms ease;
}
.hc-404-search:hover {
  border-color: var(--hc-brand);
  color: var(--hc-fg);
  box-shadow: var(--hc-shadow-md);
}
.hc-404-search svg { width: 18px; height: 18px; opacity: 0.6; flex-shrink: 0; }
.hc-404-search > span:first-of-type { flex: 1; }

/* =========================================================================
   MOBILE — hero, sections, article, drawer, search bottom-sheet
   ========================================================================= */

/* Drawer toggle button (only visible on mobile) */
.hc-drawer-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--hc-bg-soft);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  color: var(--hc-fg);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 16px;
}
.hc-drawer-toggle:hover {
  border-color: var(--hc-brand);
  color: var(--hc-brand);
}
.hc-drawer-toggle svg { width: 18px; height: 18px; flex-shrink: 0; }

.hc-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 39, 0.55);
  backdrop-filter: blur(2px);
  z-index: 89;
}

.hc-sidebar-close {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--hc-fg);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.hc-sidebar-close:hover { background: var(--hc-bg-soft); }

@media (max-width: 820px) {
  .hc-shell {
    grid-template-columns: 1fr !important;
    gap: 0;
    padding: 16px;
  }
  .hc-drawer-toggle { display: inline-flex; }

  /* Drawer-mode sidebar */
  .hc-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 86vw);
    max-height: 100vh;
    overflow-y: auto;
    background: var(--hc-bg);
    border-right: 1px solid var(--hc-border);
    padding: 56px 16px 24px;
    z-index: 90;
    transform: translateX(-100%);
    transition: transform 220ms cubic-bezier(0.2, 0.9, 0.3, 1);
    box-shadow: var(--hc-shadow-lg);
  }
  .hc-sidebar-close { display: inline-flex; align-items: center; justify-content: center; }
  body.hc-drawer-open .hc-sidebar { transform: translateX(0); }
  body.hc-drawer-open .hc-sidebar-backdrop { display: block; }
  body.hc-drawer-open { overflow: hidden; }

  .hc-article { padding-top: 0; max-width: 100%; }
  .hc-article h1 { font-size: 28px; }
  .hc-article-body { font-size: 15px; }
  .hc-article-body h2 { font-size: 21px; margin-top: 32px; }
  .hc-article-body h3 { font-size: 16px; margin-top: 22px; }
  .hc-article-body table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  .hc-article-body pre { font-size: 12px; padding: 12px; }
  .hc-related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  /* Hero shrink */
  .hc-hero { padding: 40px 16px 32px; }
  .hc-hero h1 { font-size: 28px; letter-spacing: -0.5px; }
  .hc-hero p { font-size: 15px; margin-bottom: 24px; }
  .hc-hero-search { height: 52px; padding: 0 18px; font-size: 15px; }
  .hc-hero-search svg { width: 18px; height: 18px; }

  /* Index sections */
  .hc-index { padding: 0 16px 64px; }
  .hc-section { margin: 32px 0; }
  .hc-getstarted-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .hc-getstarted-card { padding: 14px 16px; }
  .hc-cat-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hc-cat-card { padding: 16px; }

  /* What's new — stack vertically per row */
  .hc-whatsnew-list a {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 0;
  }
  .hc-whatsnew-date { font-size: 11px; order: 0; }
  .hc-whatsnew-title { order: 1; font-size: 14px; }
  .hc-whatsnew-cat { order: 2; font-size: 10px; }

  /* A-Z box */
  .hc-az { padding: 18px 16px; }

  /* Article */
  .hc-article h1 { font-size: 24px; line-height: 1.2; }
  .hc-article-meta { flex-wrap: wrap; gap: 10px; font-size: 12px; }

  /* Floating theme toggle — smaller, snug to corner */
  .hc-theme-toggle {
    width: 40px;
    height: 40px;
    bottom: 16px;
    right: 16px;
    font-size: 18px;
  }

  /* 404 */
  .hc-404 { padding: 56px 16px 64px; }
  .hc-404-mark { font-size: 80px; }
  .hc-404 h1 { font-size: 24px; }
  .hc-404-search { height: 46px; font-size: 14px; }

  /* Search palette → bottom-sheet */
  .hc-search { padding: 0; align-items: flex-end; }
  .hc-search-panel {
    border-radius: 14px 14px 0 0;
    max-height: 80vh;
    width: 100%;
    margin: 0;
    animation: hc-slide-up 200ms cubic-bezier(0.2, 0.9, 0.3, 1);
  }
  @keyframes hc-slide-up {
    from { transform: translateY(20%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  .hc-search-input-row input {
    font-size: 16px; /* Prevent iOS zoom-in on focus */
  }
}

/* Touch devices — show copy button always (no hover state) and drop kbd
   hints that are useless without a physical keyboard. */
@media (hover: none) {
  .hc-article-body pre .hc-copy { opacity: 0.7; }
  .hc-article-body pre .hc-copy:hover { opacity: 1; }
  .hc-kbd-hint { display: none; }
}

/* =========================================================================
   PRINT
   ========================================================================= */

@media print {
  .hc-topbar, .hc-sidebar, .hc-toc, .hc-search, .hc-related {
    display: none !important;
  }
  .hc-shell {
    display: block;
    max-width: none;
    padding: 0;
  }
  .hc-article {
    max-width: none;
  }
  .hc-article-body { font-size: 11pt; }
}
