@font-face {
  font-family: 'Formula1-Bold';
  src: url('/assets/fonts/formula1-bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

:root {
  --hc-blue-900: #0f212e;
  --hc-blue-700: #1a4a6e;
  --hc-accent: #1a72ff;
  --hc-accent-hover: #3d8cff;
  --hc-white: #ffffff;
  --hc-bg: #f8fafc;
  --hc-text: #111827;
  --hc-muted: #6b7280;
  --hc-border: #e5e7eb;
  --hc-hub-stroke: #e1e4e8;
  --hc-hub-row-hover: rgb(20, 116, 225);
  --hc-hub-row-hover-bg: rgba(20, 116, 225, 0.09);
  --hc-footer: #101419;
  --hc-callout: #e8f8ec;
  --hc-callout-text: #166534;
  --hc-feedback: #f0f2f5;
  --hc-max: 1240px;
  --hc-content: 760px;
  --hc-toc: 300px;
  --hc-gutter: 24px;
  --hc-scroll-offset: 1.75rem;
  --hc-stack-xs: 0.5rem;
  --hc-stack-sm: 0.75rem;
  --hc-stack-md: 1rem;
  --hc-stack-lg: 1.5rem;
  --hc-stack-xl: 2rem;
  --hc-page-footer-gap: 3rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

html {
  scroll-padding-top: var(--hc-scroll-offset);
}

body.hc-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--hc-bg);
  color: var(--hc-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

#hc-main {
  margin: 0;
  padding: 0;
  flex: 1 0 auto;
}

#hc-main:has(.hc-main--category-hub) {
  background-color: #f4f5f7;
}

a.hc-a {
  color: var(--hc-accent);
  text-decoration: none;
}

a.hc-a:hover {
  text-decoration: underline;
}

.hc-skip {
  position: absolute;
  left: -9999px;
}

.hc-skip:focus {
  left: 8px;
  top: 8px;
  z-index: 10000;
  padding: 8px 12px;
  background: var(--hc-white);
  color: var(--hc-text);
}

.hc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hc-header {
  position: relative;
  min-height: 140px;
  padding: 20px var(--hc-gutter) 28px;
  background: linear-gradient(160deg, #061a2e 0%, #0c2740 28%, #0f3d6b 55%, #1565c0 100%);
  color: var(--hc-white);
  overflow: hidden;
}

.hc-header--home {
  min-height: 0;
  padding: 18px var(--hc-gutter) 52px;
}

.hc-header::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background:
    radial-gradient(ellipse 90% 70% at 15% 85%, rgba(255, 255, 255, 0.14), transparent 52%),
    radial-gradient(ellipse 70% 55% at 88% 18%, rgba(26, 114, 255, 0.45), transparent 48%),
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(255, 255, 255, 0.08), transparent 60%);
  pointer-events: none;
}

.hc-header--home::after {
  content: "";
  position: absolute;
  left: -15%;
  right: -15%;
  bottom: -40px;
  height: min(320px, 55vw);
  opacity: 0.35;
  background:
    radial-gradient(ellipse 55% 35% at 20% 40%, rgba(255, 255, 255, 0.07), transparent 55%),
    radial-gradient(ellipse 50% 32% at 75% 55%, rgba(21, 101, 192, 0.35), transparent 50%),
    radial-gradient(ellipse 120% 50% at 50% 100%, rgba(6, 26, 46, 0.9), transparent 55%);
  pointer-events: none;
}

.hc-header-inner {
  position: relative;
  z-index: 1;
  max-width: var(--hc-max);
  margin: 0 auto;
}

.hc-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px 14px;
  margin-bottom: 18px;
}

.hc-header--home .hc-topbar {
  margin-bottom: 28px;
}

.hc-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  max-width: min(72vw, 240px);
  color: var(--hc-white);
  text-decoration: none;
  line-height: 0;
  transition: opacity 0.2s ease;
}

.hc-brand:hover {
  color: var(--hc-white);
  opacity: 0.88;
  text-decoration: none;
}

.hc-brand-logo {
  display: block;
  height: 28px;
  width: auto;
  max-width: 100%;
}

.hc-top-nav {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.hc-top-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 4px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--hc-white);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.hc-top-link-icon {
  display: none;
  flex-shrink: 0;
  line-height: 0;
}

.hc-top-link-icon svg {
  display: block;
}

.hc-top-link:hover {
  background: transparent;
  color: var(--hc-white);
  text-decoration: underline;
  text-underline-offset: 4px;
  opacity: 1;
}

.hc-hero-title {
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}

.hc-search {
  position: relative;
}

.hc-hero-block {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: var(--hc-max);
  margin: 0 auto;
  padding: 0 8px;
}

.hc-search--hero {
  width: 100%;
  max-width: 720px;
  margin: 22px auto 0;
}

.hc-search--hero .hc-search-input {
  height: 54px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 1.02rem;
}

.hc-search--hero .hc-search-input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.hc-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  opacity: 0.75;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.9);
}

.hc-search-input {
  width: 100%;
  height: 56px;
  border-radius: 12px;
  border: none;
  background: rgba(255, 255, 255, 0.18);
  padding: 0 20px 0 52px;
  color: var(--hc-white);
  font-size: 1rem;
  outline: none;
}

.hc-search-input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.hc-search-input:focus {
  background: rgba(255, 255, 255, 0.26);
  box-shadow: 0 0 0 3px rgba(26, 114, 255, 0.35);
}

.hc-search-suggest {
  position: fixed;
  z-index: 1200;
  background: #f3f4f6;
  color: var(--hc-text);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.2);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  text-align: left;
  max-height: min(480px, 65vh);
  overflow-y: auto;
  padding: 10px;
}

.hc-search-suggest[hidden] {
  display: none !important;
}

.hc-suggest-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.hc-suggest-item {
  display: block;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.hc-suggest-item:hover,
.hc-suggest-item.is-active {
  background: #fff;
  border-color: #c7d2fe;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

.hc-suggest-item__title {
  display: block;
  font-weight: 700;
  font-size: 0.98rem;
  color: #111827;
  line-height: 1.35;
}

.hc-suggest-item__desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 6px;
  font-size: 0.84rem;
  color: #6b7280;
  line-height: 1.45;
}

.hc-suggest-empty {
  padding: 16px 18px;
  font-size: 0.9rem;
  color: #6b7280;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.hc-card-list-item--search {
  align-items: flex-start;
  padding-top: 14px;
  padding-bottom: 14px;
}

.hc-search-hit {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
  text-align: left;
}

.hc-search-hit__title {
  font-weight: 600;
  color: var(--hc-text);
}

.hc-search-hit__desc {
  font-size: 0.88rem;
  color: #6b7280;
  line-height: 1.4;
}

.hc-main {
  max-width: var(--hc-max);
  margin: 0 auto;
  padding: 32px var(--hc-gutter) var(--hc-page-footer-gap);
}

.hc-main.hc-main--with-crumb {
  padding-top: 0;
}

.hc-main > *:last-child {
  margin-bottom: 0;
}

.hc-main--category-hub {
  padding: var(--hc-stack-xl) var(--hc-gutter) var(--hc-page-footer-gap);
}

.hc-cat-hub {
  width: 100%;
}

.hc-cat-hub__head {
  margin: 0 0 20px;
}

.hc-cat-hub__head .hc-page-title--hub {
  margin-bottom: 8px;
}

.hc-cat-hub__head .hc-page-meta--hub {
  margin: 0;
}

.hc-cat-hub__count {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2f7;
  color: #475569;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
}

.hc-cat-hub > .hc-hub-card:last-of-type {
  margin-bottom: 0;
}

.hc-breadcrumb {
  font-size: 0.8125rem;
  color: var(--hc-muted);
  margin: 0 0 var(--hc-stack-md);
  line-height: 1.6;
}

.hc-breadcrumb--hub {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0 0 var(--hc-stack-md);
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.hc-main--category-hub .hc-cat-hub > .hc-breadcrumb:first-child {
  margin: var(--hc-stack-lg) 0 var(--hc-stack-md);
}

.hc-article-page {
  max-width: var(--hc-max);
  margin: 0 auto;
  padding: 0 var(--hc-gutter) var(--hc-page-footer-gap);
}

.hc-article-page > .hc-breadcrumb:first-child {
  margin: var(--hc-stack-lg) 0 var(--hc-stack-md);
}

.hc-article-page .hc-article-layout {
  max-width: none;
  margin: 0;
  padding: 0;
}

.hc-article-page .hc-article-main > .hc-page-title {
  margin-top: 0;
  margin-bottom: var(--hc-stack-sm);
}

.hc-article-page .hc-article-main > .hc-page-meta {
  margin-bottom: var(--hc-stack-lg);
}

.hc-breadcrumb a {
  color: var(--hc-muted);
  text-decoration: none;
}

.hc-breadcrumb a:hover {
  color: var(--hc-accent);
  text-decoration: underline;
}

.hc-breadcrumb-sep {
  margin: 0 6px;
  opacity: 0.6;
}

.hc-page-title {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.hc-page-title--hub {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 var(--hc-stack-sm);
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.hc-page-meta {
  font-size: 0.875rem;
  color: var(--hc-muted);
  margin: 0 0 24px;
}

.hc-page-meta--hub {
  font-size: 0.875rem;
  font-weight: 400;
  color: #6b7280;
  margin: 0 0 24px;
  line-height: 1.5;
}

.hc-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 var(--hc-stack-sm);
}

.hc-popular-card {
  background: var(--hc-white);
  border: 1px solid #e8eaed;
  border-radius: 6px;
  padding: 22px 24px;
  margin: 0 0 var(--hc-stack-lg);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.hc-popular-card__title {
  margin: 0 0 var(--hc-stack-md);
  padding: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.hc-popular-card__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 2px 4px 4px;
}

.hc-popular-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 12px;
  margin: 0;
  border-radius: 6px;
  color: #1f2937;
  text-decoration: none;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.5;
  transition: background 0.16s ease, color 0.16s ease;
  border-bottom: none;
}

.hc-popular-card__row:hover {
  background: var(--hc-hub-row-hover-bg);
  color: var(--hc-hub-row-hover);
  text-decoration: none;
}

.hc-popular-card__row:hover .hc-popular-card__chev {
  border-color: var(--hc-hub-row-hover);
  opacity: 1;
  transform: rotate(-45deg) translateX(2px);
}

.hc-popular-card__label {
  min-width: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
}

.hc-popular-card__chev {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  transform: rotate(-45deg);
  opacity: 1;
  transition: border-color 0.16s ease, opacity 0.16s ease, transform 0.16s ease;
}

.hc-card-list {
  background: var(--hc-white);
  border-radius: 12px;
  border: 1px solid var(--hc-border);
  overflow: hidden;
  margin-bottom: 0;
  padding: 8px 10px 10px;
}

.hc-card-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 14px;
  margin: 0 0 2px;
  border-radius: 6px;
  border-bottom: none;
  color: #1a1a1a;
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease;
}

.hc-card-list-item:last-child {
  margin-bottom: 0;
}

.hc-card-list-item:hover {
  background: var(--hc-hub-row-hover-bg);
  color: var(--hc-hub-row-hover);
  text-decoration: none;
}

.hc-card-list-item:hover .hc-chevron {
  opacity: 1;
  color: var(--hc-hub-row-hover);
}

.hc-chevron {
  flex-shrink: 0;
  opacity: 0.45;
  font-size: 1.1rem;
}

.hc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) {
  .hc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .hc-grid {
    grid-template-columns: 1fr;
  }

  .hc-popular-card {
    padding: 18px 14px 12px;
  }

  .hc-popular-card__title {
    margin-bottom: 10px;
  }

  .hc-popular-card__list {
    padding: 0;
  }

  .hc-popular-card__row {
    padding: 14px 0;
    gap: 12px;
  }

  .hc-popular-card__chev {
    margin-right: 0;
  }
}

.hc-cat-card {
  background: var(--hc-white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--hc-border);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hc-cat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 33, 46, 0.12);
  text-decoration: none;
}

.hc-cat-card-top {
  height: 120px;
  background: linear-gradient(160deg, var(--hc-blue-900), var(--hc-blue-700));
  display: flex;
  align-items: center;
  justify-content: center;
}

.hc-cat-card-top svg {
  width: 48px;
  height: 48px;
  color: var(--hc-white);
  opacity: 0.95;
}

.hc-cat-card-body {
  text-align: center;
  padding: 1rem 14px;
}

.hc-cat-card-title {
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 0.375rem;
}

.hc-cat-card-sub {
  font-size: 0.8125rem;
  color: var(--hc-muted);
}

.hc-hub-card {
  background: #ffffff;
  border: 1px solid var(--hc-hub-stroke);
  border-radius: 10px;
  margin: 0 0 22px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.hc-hub-card__title {
  margin: 0;
  padding: 18px 22px 14px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
  line-height: 1.35;
  border-bottom: 1px solid var(--hc-hub-stroke);
  background: #fafbfc;
}

.hc-hub-card__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 6px 8px 8px;
}

.hc-hub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 14px;
  margin: 0;
  border-bottom: none;
  border-radius: 8px;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  transition: background 0.16s ease, color 0.16s ease;
}

.hc-hub-row--article {
  align-items: flex-start;
  padding-top: 15px;
  padding-bottom: 15px;
}

.hc-hub-row--article .hc-hub-row__chev {
  margin-top: 2px;
}

.hc-hub-row:hover {
  color: var(--hc-hub-row-hover);
  background: var(--hc-hub-row-hover-bg);
  text-decoration: none;
}

.hc-hub-row:focus-visible {
  outline: 2px solid var(--hc-hub-row-hover);
  outline-offset: 2px;
  z-index: 1;
  position: relative;
  background: var(--hc-hub-row-hover-bg);
}

.hc-hub-row__text {
  min-width: 0;
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hc-hub-row__label {
  display: block;
  text-align: left;
  font-weight: 600;
  color: #111827;
}

.hc-hub-row--subcat .hc-hub-row__label {
  font-weight: 600;
  color: #111827;
}

.hc-hub-row__sub {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #6b7280;
  line-height: 1.4;
}

.hc-hub-row:hover .hc-hub-row__label {
  color: var(--hc-hub-row-hover);
}

.hc-hub-row:hover .hc-hub-row__sub {
  color: #64748b;
}

.hc-hub-row__chev {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin-right: 2px;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  transform: rotate(-45deg);
  opacity: 1;
  transition: border-color 0.15s ease;
}

.hc-hub-row:hover .hc-hub-row__chev {
  border-color: var(--hc-hub-row-hover);
}

.hc-hub-card--solo .hc-hub-row--solo {
  border-bottom: none;
  padding: 16px 14px;
}

@media (max-width: 560px) {
  .hc-main--category-hub {
    padding: var(--hc-stack-md) var(--hc-stack-md) var(--hc-page-footer-gap);
  }

  .hc-page-title--hub {
    font-size: clamp(1.625rem, 6vw, 2rem);
  }

  .hc-hub-card__title {
    padding: 20px 20px 16px;
    font-size: 1.0625rem;
  }

  .hc-hub-card__list {
    padding: 6px 8px 8px;
  }

  .hc-hub-row {
    padding: 15px 12px;
    gap: 14px;
    font-size: 0.875rem;
  }

  .hc-hub-card--solo .hc-hub-row--solo {
    padding: 15px 12px;
  }
}

.hc-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 0;
  row-gap: 0;
  align-items: start;
  max-width: var(--hc-max);
  margin: 0 auto;
  padding: 32px var(--hc-gutter) var(--hc-page-footer-gap);
}

.hc-article-layout--toc {
  grid-template-columns: minmax(0, 1fr) var(--hc-toc);
  column-gap: 48px;
}

.hc-article-main {
  grid-column: 1;
  min-width: 0;
  max-width: var(--hc-content);
  padding-bottom: min(42vh, 360px);
}

.hc-article-sidebar {
  grid-column: 2;
  width: var(--hc-toc);
  justify-self: stretch;
  position: sticky;
  top: 20px;
  align-self: start;
  max-height: calc(100vh - 40px);
}

.hc-sidebar-card {
  background: var(--hc-white);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 16px 20px;
  box-shadow: 0 1px 3px rgba(15, 33, 46, 0.06), 0 4px 20px rgba(15, 33, 46, 0.04);
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hc-article-sidebar-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--hc-accent);
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef2f7;
  letter-spacing: -0.01em;
  flex: 0 0 auto;
}

.hc-sidebar-toc {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #64748b;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
  scrollbar-width: thin;
}

.hc-sidebar-toc .hc-toc-nav {
  font-size: inherit;
}

.hc-sidebar-toc .hc-toc-list > li {
  margin: 0 0 2px;
}

.hc-sidebar-toc .hc-toc-list > li > a {
  display: block;
  padding: 8px 10px;
  margin: 0 -6px;
  border-radius: 8px;
  color: #64748b;
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.hc-sidebar-toc .hc-toc-list > li > a:hover {
  color: var(--hc-hub-row-hover);
  background: var(--hc-hub-row-hover-bg);
  text-decoration: none;
}

.hc-sidebar-toc .hc-toc-sub {
  margin: 4px 0 8px 4px;
  padding: 0 0 0 12px;
  border-left: 2px solid #e2e8f0;
}

.hc-sidebar-toc .hc-toc-sub li {
  margin: 0 0 2px;
}

.hc-sidebar-toc .hc-toc-sub a {
  display: block;
  padding: 6px 8px;
  margin: 0 -4px;
  border-radius: 6px;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 500;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.hc-sidebar-toc .hc-toc-sub a:hover {
  color: var(--hc-hub-row-hover);
  background: var(--hc-hub-row-hover-bg);
  text-decoration: none;
}

@media (min-width: 901px) {
  .hc-article-sidebar .hc-sidebar-card {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }

  .hc-article-sidebar .hc-article-sidebar-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .hc-sidebar-toc {
    font-size: 0.8125rem;
  }

  .hc-sidebar-toc .hc-toc-list > li > a {
    margin: 0;
    padding: 10px 8px 10px 14px;
    border-left: 3px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #64748b;
    font-weight: 400;
    line-height: 1.35;
  }

  .hc-sidebar-toc .hc-toc-list > li > a:hover {
    color: var(--hc-hub-row-hover);
    background: var(--hc-hub-row-hover-bg);
    border-radius: 6px;
    text-decoration: none;
  }

  .hc-sidebar-toc .hc-toc-list > li > a.is-active {
    border-left-color: #0f172a;
    color: #0f172a;
    font-weight: 600;
  }

  .hc-sidebar-toc .hc-toc-sub {
    margin: 0 0 6px 0;
    padding: 0 0 0 10px;
    border-left: none;
  }

  .hc-sidebar-toc .hc-toc-sub a {
    margin: 0;
    padding: 8px 8px 8px 12px;
    border-left: 3px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 400;
  }

  .hc-sidebar-toc .hc-toc-sub a:hover {
    color: var(--hc-hub-row-hover);
    background: var(--hc-hub-row-hover-bg);
    border-radius: 6px;
  }

  .hc-sidebar-toc .hc-toc-sub a.is-active {
    border-left-color: #0f172a;
    color: #0f172a;
    font-weight: 600;
  }
}

.hc-prose {
  font-size: 1rem;
  line-height: 1.65;
  color: #374151;
}

.hc-prose h2,
.hc-prose h3 {
  color: var(--hc-text);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.hc-prose h2[id],
.hc-prose h3[id] {
  scroll-margin-top: var(--hc-scroll-offset);
}

.hc-toc-nav {
  font-size: 0.875rem;
}

.hc-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hc-toc-list > li {
  margin: 0 0 0.45em;
}

.hc-toc-list a {
  color: var(--hc-accent);
  text-decoration: none;
}

.hc-toc-list a:hover {
  text-decoration: underline;
}

.hc-toc-sub {
  list-style: none;
  margin: 0.35em 0 0;
  padding: 0 0 0 1rem;
  border-left: 2px solid var(--hc-border);
}

.hc-toc-sub li {
  margin: 0 0 0.35em;
}

.hc-toc-sub a {
  color: var(--hc-muted);
}

.hc-toc-sub a:hover {
  color: var(--hc-accent);
}

.hc-toc-mobile .hc-toc-list > li {
  list-style: none;
  margin: 0 0 0.65em;
  padding: 0;
}

.hc-toc-mobile .hc-toc-sub {
  list-style: none;
  margin: 0.4em 0 0;
  padding: 0 0 0 0.75rem;
  border-left: none;
}

.hc-toc-mobile .hc-toc-sub li {
  list-style: none;
  margin: 0 0 0.5em;
  padding: 0;
}

.hc-toc-mobile .hc-toc-list a,
.hc-toc-mobile .hc-toc-sub a {
  display: block;
  color: #475569;
  font-weight: 500;
  line-height: 1.45;
  padding: 8px 12px;
  margin: 2px 6px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease;
}

.hc-toc-mobile .hc-toc-list a:hover,
.hc-toc-mobile .hc-toc-sub a:hover {
  text-decoration: none;
  background: var(--hc-hub-row-hover-bg);
  color: var(--hc-hub-row-hover);
}

.hc-toc-mobile .hc-toc-list a.is-active,
.hc-toc-mobile .hc-toc-sub a.is-active {
  font-weight: 700;
  text-decoration: none;
  color: var(--hc-hub-row-hover);
}

.hc-prose ul,
.hc-prose ol {
  padding-left: 1.35em;
}

.hc-prose p {
  margin: 0.75em 0;
}

.hc-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0 1.25em;
  font-size: 0.9375rem;
}

.hc-prose th,
.hc-prose td {
  border: 1px solid var(--hc-border);
  padding: 0.65em 0.75em;
  text-align: left;
  vertical-align: top;
}

.hc-prose th {
  background: #f3f4f6;
  color: var(--hc-text);
  font-weight: 600;
}

.hc-prose tbody tr:nth-child(even) td {
  background: #fafafa;
}

.hc-btn {
  display: inline-block;
  margin: 16px 0;
  background: var(--hc-accent);
  color: var(--hc-white) !important;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  font-size: 0.9375rem;
}

.hc-btn:hover {
  background: var(--hc-accent-hover);
}

.hc-callout {
  background: var(--hc-callout);
  color: var(--hc-callout-text);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 28px 0;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.hc-related {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid var(--hc-hub-stroke);
  margin-top: 28px;
  overflow: hidden;
  box-shadow: none;
  padding-bottom: 10px;
}

.hc-related-title {
  font-size: 1.125rem;
  font-weight: 700;
  padding: 22px 24px 18px;
  margin: 0;
  color: #111827;
  letter-spacing: -0.02em;
  line-height: 1.35;
  border-bottom: 1px solid var(--hc-hub-stroke);
}

.hc-related .hc-card-list-item {
  border-radius: 6px;
  border-left: none;
  border-right: none;
  border-bottom: none;
  margin: 0 10px 4px;
  padding: 16px 14px;
  font-size: 0.9375rem;
  font-weight: 400;
  color: #1a1a1a;
  transition: background 0.16s ease, color 0.16s ease;
}

.hc-related .hc-card-list-item:last-child {
  margin-bottom: 10px;
}

.hc-related .hc-card-list-item:hover {
  background: var(--hc-hub-row-hover-bg);
  color: var(--hc-hub-row-hover);
  text-decoration: none;
}

.hc-related .hc-card-list-item:hover .hc-chevron {
  opacity: 1;
  color: var(--hc-hub-row-hover);
}

.hc-related .hc-card-list-item:first-of-type {
  border-top: none;
}

.hc-feedback {
  background: var(--hc-feedback);
  border-radius: 12px;
  text-align: center;
  padding: 22px 16px;
  margin-top: 28px;
}

.hc-feedback-title {
  margin: 0 0 14px;
  font-weight: 600;
  color: #4b5563;
}

.hc-feedback-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hc-feedback-btns button {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  background: var(--hc-white);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.hc-feedback-btns button:hover {
  transform: scale(1.06);
  border-color: var(--hc-accent);
}

.hc-feedback-btns button:disabled {
  cursor: default;
  opacity: 0.45;
  transform: none;
}

.hc-feedback-btns button.is-selected {
  opacity: 1;
  border-color: var(--hc-accent);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.hc-feedback.is-done .hc-feedback-btns button:not(.is-selected) {
  opacity: 0.35;
}

.hc-feedback-msg {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: #3a4656;
}

.hc-feedback-msg.is-error {
  color: #8a2f2f;
}

.hc-footer {
  flex-shrink: 0;
  background: var(--hc-footer);
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  padding: 40px 20px 32px;
}

.hc-footer-logo.hc-brand {
  max-width: none;
  margin: 0 auto 20px;
  justify-content: center;
}

.hc-footer-logo .hc-brand-logo {
  height: 24px;
}

.hc-footer-logo.hc-brand:hover {
  opacity: 0.88;
}

.hc-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-bottom: 22px;
}

.hc-footer-nav a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.875rem;
}

.hc-footer-nav a:hover {
  color: var(--hc-white);
  text-decoration: underline;
}

.hc-footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 10px;
  opacity: 0.75;
  font-size: 0.75rem;
}
.hc-footer-sep {
  color: rgba(255, 255, 255, 0.28);
  user-select: none;
}
.hc-footer-home {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 600;
}
.hc-footer-home:hover {
  color: var(--hc-white);
  text-decoration: underline;
}

.hc-toc-mobile {
  display: none;
  margin-bottom: 22px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: var(--hc-white);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 33, 46, 0.05);
}

.hc-toc-mobile-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--hc-white);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--hc-accent);
  user-select: none;
}

.hc-toc-mobile-summary::-webkit-details-marker {
  display: none;
}

.hc-toc-mobile-summary::marker {
  display: none;
}

.hc-toc-mobile-title {
  flex: 1;
}

.hc-toc-mobile-chevron {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--hc-accent);
  border-bottom: 2px solid var(--hc-accent);
  transform: rotate(45deg);
  margin-bottom: 4px;
  transition: transform 0.22s ease;
}

.hc-toc-mobile[open] .hc-toc-mobile-chevron {
  transform: rotate(225deg);
  margin-bottom: -2px;
}

.hc-toc-mobile .hc-toc-inner {
  margin: 0;
  padding: 14px 16px 16px;
  border-top: 1px solid #eef2f7;
  background: #f8fafc;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #475569;
}

.hc-toc-mobile .hc-toc-inner a {
  text-decoration: none;
}

@media (max-width: 900px) {
  .hc-header--home {
    padding: 12px 16px 34px;
  }

  .hc-header--home .hc-topbar {
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 14px;
  }

  .hc-brand {
    margin-left: 0;
    margin-right: 0;
    max-width: min(58vw, 200px);
  }

  .hc-brand-logo {
    height: 22px;
  }

  .hc-top-nav {
    margin-left: 0;
    gap: 0;
    flex-wrap: nowrap;
  }

  .hc-top-link {
    position: relative;
    flex-shrink: 0;
    margin-left: 0;
    margin-right: -4px;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    width: auto;
    height: auto;
    border: none;
    border-radius: 0;
    background: transparent;
    text-decoration: none;
    box-sizing: border-box;
  }

  .hc-top-link:hover {
    text-decoration: none;
    background: transparent;
    opacity: 0.82;
  }

  .hc-top-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.95);
    outline-offset: 2px;
    border-radius: 4px;
  }

  .hc-top-link-icon {
    display: flex;
  }

  .hc-top-link-icon svg {
    width: 22px;
    height: 22px;
  }

  .hc-top-link-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .hc-hero-block {
    padding: 0;
    text-align: left;
  }

  .hc-hero-title {
    text-align: left;
    font-size: clamp(1.3rem, 5.2vw, 1.65rem);
  }

  .hc-search--hero {
    margin-top: 14px;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }

  .hc-search--hero .hc-search-input {
    height: 48px;
    border-radius: 12px;
    font-size: 0.95rem;
  }

  .hc-popular-card__label {
    display: block;
    -webkit-box-orient: unset;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: normal;
  }

  .hc-article-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 24px;
  }

  .hc-article-main {
    grid-column: auto;
    max-width: none;
  }

  .hc-article-sidebar {
    grid-column: auto;
    grid-row: auto;
    width: auto;
    justify-self: stretch;
  }

  .hc-article-sidebar {
    display: none;
  }

  .hc-toc-mobile {
    display: block;
  }
}

.hc-empty {
  padding: 40px 16px;
  text-align: center;
  color: var(--hc-muted);
}

.hc-404-box {
  text-align: center;
  padding: 48px 16px;
}

.hc-404-box h1 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}
