:root {
  --hc-accent: #d7bd75;
  --hc-accent-rgb: 215, 189, 117;
  --hc-radius: 8px;
}

body {
  --color-foreground-primary: #152231;
  --color-foreground-secondary: #586574;
  --color-foreground-muted: #6a7280;
  --color-background-primary: #ffffff;
  --color-background-secondary: #f7f8fa;
  --color-background-hover: #edf1f4;
  --color-background-border: rgba(21, 34, 49, 0.14);
  --color-content-foreground: var(--color-foreground-primary);
  --color-content-background: transparent;
  --color-brand-primary: var(--hc-accent);
  --color-brand-content: #2f4054;
  --color-link: #25364a;
  --color-link--hover: #101820;
  --color-link--visited: #25364a;
  --color-link--visited--hover: #101820;
  --color-link-underline: rgba(37, 54, 74, 0.32);
  --color-link-underline--hover: rgba(16, 24, 32, 0.5);
  --color-link-underline--visited: rgba(37, 54, 74, 0.32);
  --color-link-underline--visited--hover: rgba(16, 24, 32, 0.5);
  --hc-ink: #152231;
  --hc-muted: #586574;
  --hc-line: rgba(21, 34, 49, 0.14);
  --hc-panel: #f7f8fa;
  --hc-card: #ffffff;
  --hc-warm: rgba(var(--hc-accent-rgb), 0.12);
  --hc-radius: 8px;
  --hc-shadow: 0 18px 48px rgba(16, 32, 51, 0.09);
  --hc-sidebar-bg: #f7f8fa;
  --hc-sidebar-border: rgba(21, 34, 49, 0.14);
  --hc-sidebar-fg: #152231;
  --hc-sidebar-muted: #6a7280;
  --hc-sidebar-link: #344250;
  --hc-sidebar-link-strong: #152231;
  --hc-sidebar-hover: rgba(21, 34, 49, 0.06);
  --hc-sidebar-current: rgba(var(--hc-accent-rgb), 0.12);
  --hc-sidebar-search-bg: #ffffff;
  --hc-toggle-bg: #ffffff;
  --hc-toggle-hover: rgba(21, 34, 49, 0.06);
  --hc-toggle-border: rgba(21, 34, 49, 0.18);
  --hc-toggle-fg: #102033;
  letter-spacing: 0;
}

body[data-theme="dark"] {
  --color-foreground-primary: #f3f5f6;
  --color-foreground-secondary: #bbc4cc;
  --color-foreground-muted: #98a9b6;
  --color-background-primary: #131416;
  --color-background-secondary: #191f24;
  --color-background-hover: #232a30;
  --color-background-border: rgba(213, 219, 225, 0.14);
  --color-content-foreground: var(--color-foreground-primary);
  --color-content-background: transparent;
  --color-brand-primary: var(--hc-accent);
  --color-brand-content: #d7bd75;
  --color-link: #d7bd75;
  --color-link--hover: #efdcaa;
  --color-link--visited: #d7bd75;
  --color-link--visited--hover: #efdcaa;
  --color-link-underline: rgba(var(--hc-accent-rgb), 0.38);
  --color-link-underline--hover: rgba(239, 220, 170, 0.62);
  --color-link-underline--visited: rgba(var(--hc-accent-rgb), 0.38);
  --color-link-underline--visited--hover: rgba(239, 220, 170, 0.62);
  --hc-ink: #f3f5f6;
  --hc-muted: #bbc4cc;
  --hc-line: rgba(213, 219, 225, 0.14);
  --hc-panel: #14191e;
  --hc-card: #191f24;
  --hc-warm: rgba(var(--hc-accent-rgb), 0.14);
  --hc-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  --hc-sidebar-bg: #0f171d;
  --hc-sidebar-border: rgba(var(--hc-accent-rgb), 0.18);
  --hc-sidebar-fg: #eef8f7;
  --hc-sidebar-muted: #98a9b6;
  --hc-sidebar-link: #c8d5dc;
  --hc-sidebar-link-strong: #d7bd75;
  --hc-sidebar-hover: rgba(var(--hc-accent-rgb), 0.12);
  --hc-sidebar-current: rgba(var(--hc-accent-rgb), 0.17);
  --hc-sidebar-search-bg: rgba(255, 255, 255, 0.06);
  --hc-toggle-bg: #1b272d;
  --hc-toggle-hover: rgba(var(--hc-accent-rgb), 0.12);
  --hc-toggle-border: rgba(var(--hc-accent-rgb), 0.28);
  --hc-toggle-fg: #eef8f7;
}

@media (prefers-color-scheme: dark) {
  body[data-theme="auto"] {
    --color-foreground-primary: #f3f5f6;
    --color-foreground-secondary: #bbc4cc;
    --color-foreground-muted: #98a9b6;
    --color-background-primary: #131416;
    --color-background-secondary: #191f24;
    --color-background-hover: #232a30;
    --color-background-border: rgba(213, 219, 225, 0.14);
    --color-content-foreground: var(--color-foreground-primary);
    --color-content-background: transparent;
    --color-brand-primary: var(--hc-accent);
    --color-brand-content: #d7bd75;
    --color-link: #d7bd75;
    --color-link--hover: #efdcaa;
    --color-link--visited: #d7bd75;
    --color-link--visited--hover: #efdcaa;
    --color-link-underline: rgba(var(--hc-accent-rgb), 0.38);
    --color-link-underline--hover: rgba(239, 220, 170, 0.62);
    --color-link-underline--visited: rgba(var(--hc-accent-rgb), 0.38);
    --color-link-underline--visited--hover: rgba(239, 220, 170, 0.62);
    --hc-ink: #f3f5f6;
    --hc-muted: #bbc4cc;
    --hc-line: rgba(213, 219, 225, 0.14);
    --hc-panel: #14191e;
    --hc-card: #191f24;
    --hc-warm: rgba(var(--hc-accent-rgb), 0.14);
    --hc-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
    --hc-sidebar-bg: #0f171d;
    --hc-sidebar-border: rgba(var(--hc-accent-rgb), 0.18);
    --hc-sidebar-fg: #eef8f7;
    --hc-sidebar-muted: #98a9b6;
    --hc-sidebar-link: #c8d5dc;
    --hc-sidebar-link-strong: #d7bd75;
    --hc-sidebar-hover: rgba(var(--hc-accent-rgb), 0.12);
    --hc-sidebar-current: rgba(var(--hc-accent-rgb), 0.17);
    --hc-sidebar-search-bg: rgba(255, 255, 255, 0.06);
    --hc-toggle-bg: #1b272d;
    --hc-toggle-hover: rgba(var(--hc-accent-rgb), 0.12);
    --hc-toggle-border: rgba(var(--hc-accent-rgb), 0.28);
    --hc-toggle-fg: #eef8f7;
  }
}

.sidebar-logo-container {
  display: none;
}

.sidebar-sticky::after {
  display: block;
  flex: 0 0 auto;
  width: 1.6rem;
  height: 1.6rem;
  margin: 0.9rem auto 1.15rem;
  background: url("helia-core-icon-black.png") center / contain no-repeat;
  content: "";
  opacity: 0.86;
}

body[data-theme="dark"] .sidebar-sticky::after {
  background-image: url("helia-core-icon-white.png");
}

@media (prefers-color-scheme: dark) {
  body[data-theme="auto"] .sidebar-sticky::after {
    background-image: url("helia-core-icon-white.png");
  }
}

.sidebar-drawer {
  --color-sidebar-background: var(--hc-sidebar-bg);
  --color-sidebar-background-border: var(--hc-sidebar-border);
  --color-sidebar-brand-text: var(--hc-sidebar-fg);
  --color-sidebar-caption-text: var(--hc-sidebar-muted);
  --color-sidebar-link-text: var(--hc-sidebar-link);
  --color-sidebar-link-text--top-level: var(--hc-sidebar-link);
  --color-sidebar-search-background: var(--hc-sidebar-search-bg);
  --color-sidebar-search-background--focus: var(--hc-sidebar-search-bg);
  --color-sidebar-search-border: var(--hc-sidebar-border);
  --color-sidebar-search-icon: var(--hc-sidebar-muted);
  width: 15rem;
  min-width: 15rem;
  justify-content: flex-start;
  border-right-color: var(--hc-sidebar-border);
  background: var(--hc-sidebar-bg);
}

.sidebar-container,
.sidebar-sticky {
  width: 15rem;
}

.sidebar-brand-text,
.sidebar-tree .current-page > .reference {
  color: var(--hc-sidebar-fg);
}

.sidebar-tree .current-page > .reference {
  color: var(--hc-sidebar-link-strong);
  font-weight: 700;
}

.sidebar-tree .reference,
.sidebar-tree .reference:visited {
  color: var(--hc-sidebar-link);
}

.sidebar-tree .reference:hover,
.sidebar-tree .reference:visited:hover,
.sidebar-tree .current > .reference:hover {
  background: var(--hc-sidebar-hover);
  color: var(--hc-sidebar-fg);
}

.sidebar-tree .current > .reference,
.sidebar-tree .current-page > .reference {
  background: var(--hc-sidebar-current);
}

.sidebar-tree .toctree-l1 > .reference,
.sidebar-tree .toctree-l1 > .reference:visited,
.sidebar-tree .toctree-l1 > label .icon {
  color: var(--hc-sidebar-link);
}

.sidebar-tree .caption,
.sidebar-tree :not(.caption) > .caption-text,
#searchbox .highlight-link a {
  color: var(--hc-sidebar-muted);
}

.sidebar-search-container,
.sidebar-search-container:hover,
.sidebar-search-container:focus-within {
  background: var(--hc-sidebar-search-bg);
}

.sidebar-search-container::before {
  background-color: var(--hc-sidebar-muted);
}

.sidebar-search {
  color: var(--hc-sidebar-fg);
  border-color: var(--hc-sidebar-border);
}

.theme-toggle {
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hc-toggle-border);
  border-radius: var(--hc-radius);
  background: var(--hc-toggle-bg);
  color: var(--hc-toggle-fg);
  box-shadow: 0 6px 18px rgba(16, 32, 51, 0.08);
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: var(--hc-toggle-hover);
  color: var(--hc-toggle-fg);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--color-brand-primary);
  outline-offset: 2px;
}

.theme-toggle svg {
  color: currentColor;
}

.content {
  line-height: 1.65;
}

body:has(.landing-hero) .toc-drawer,
body:has(.landing-hero) .toc-overlay-icon {
  display: none !important;
}

body:has(.landing-hero) .main {
  min-width: 0;
}

body:has(.landing-hero) .content {
  width: min(92rem, calc(100vw - 18rem));
}

body:has(.landing-hero) article[role="main"] {
  max-width: none;
}

@media (min-width: 1200px) {
  .content {
    width: min(88rem, calc(100vw - 35rem));
  }

  body:has(.landing-hero) .content {
    width: min(92rem, calc(100vw - 18rem));
  }
}

section:has(> .landing-hero) > h1:first-child {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

h1, h2, h3 {
  letter-spacing: 0;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  margin: 1rem 0 2.4rem;
  padding: clamp(2.25rem, 5vw, 4.7rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--hc-radius);
  background:
    radial-gradient(circle at 86% 18%, rgba(120, 134, 148, 0.1), transparent 24rem),
    linear-gradient(135deg, #111418 0%, #15191d 52%, #0c1014 100%);
  box-shadow: 0 28px 70px rgba(13, 20, 26, 0.22);
}

.hero-logo {
  width: min(165px, 60%);
  height: auto;
  margin-bottom: clamp(2.2rem, 4vw, 3.2rem);
}

.hero-kicker,
.section-eyebrow,
.card-kicker {
  color: var(--color-brand-content);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #d9e1e8;
  letter-spacing: 0.13em;
}

.hero-kicker::before {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--hc-accent);
  content: "";
}

.hero-title {
  max-width: 10.8em;
  margin: 0.6rem 0 1.35rem;
  color: #ffffff;
  font-size: clamp(2.85rem, 6vw, 5rem);
  font-weight: 850;
  line-height: 0.94;
}

.hero-title-accent {
  color: var(--hc-accent);
}

.hero-summary {
  max-width: 43rem;
  color: #b9c4cf;
  font-size: 1.08rem;
}

.hero-summary strong,
.hero-summary code {
  color: #ffffff;
}

.bench-hero {
  margin: 1.6rem 0 1.25rem;
  padding: 1.35rem;
  border: 1px solid var(--hc-line);
  border-radius: calc(var(--hc-radius) * 1.15);
  background:
    radial-gradient(circle at 0% 0%, rgba(var(--hc-accent-rgb), 0.16), transparent 24rem),
    linear-gradient(180deg, rgba(var(--hc-accent-rgb), 0.04), rgba(0, 0, 0, 0));
  box-shadow: 0 16px 36px rgba(16, 32, 51, 0.08);
}

.bench-hero-title {
  margin: 0.35rem 0 0.55rem;
  color: var(--hc-ink);
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 850;
  line-height: 1.05;
}

.bench-hero-copy {
  max-width: 68rem;
  margin-bottom: 0;
  color: var(--hc-muted);
}

.bench-stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.bench-stat-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1rem 0.95rem;
  border: 1px solid var(--hc-line);
  border-radius: var(--hc-radius);
  background: var(--hc-card);
  box-shadow: 0 10px 28px rgba(16, 32, 51, 0.06);
}

.bench-stat-card::before {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 0.26rem;
  background: linear-gradient(90deg, var(--hc-accent), rgba(var(--hc-accent-rgb), 0.3));
  content: "";
}

.bench-stat-value {
  display: block;
  margin-top: 0.2rem;
  color: var(--hc-ink);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
}

.bench-stat-label {
  color: var(--color-brand-content);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bench-stat-note {
  color: var(--hc-muted);
  font-size: 0.95rem;
  line-height: 1.35;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.95rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(var(--hc-accent-rgb), 0.5);
  border-radius: 999px;
  background: rgba(var(--hc-accent-rgb), 0.12);
  color: #efdcaa;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.hc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.55rem 1.05rem;
  border: 1px solid rgba(16, 32, 51, 0.16);
  border-radius: var(--hc-radius);
  color: var(--hc-ink);
  font-weight: 700;
  text-decoration: none !important;
}

.hc-button:visited {
  color: var(--hc-ink);
}

.hc-button:hover {
  border-color: var(--hc-accent);
  color: var(--hc-ink);
}

.landing-hero .hc-button {
  border-color: rgba(255, 255, 255, 0.22);
  background: transparent;
  color: #ffffff;
}

.landing-hero .hc-button:visited,
.landing-hero .hc-button:hover {
  color: #ffffff;
}

.hc-button-primary {
  border-color: var(--hc-accent);
  background: var(--hc-accent);
  color: #0d141a;
}

.landing-hero .hc-button-primary {
  border-color: var(--hc-accent);
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(var(--hc-accent-rgb), 0.26);
  color: #efdcaa;
}

.hc-button-primary:visited,
.hc-button-primary:hover {
  color: #0d141a;
}

.landing-hero .hc-button-primary:visited {
  color: #efdcaa;
}

.landing-hero .hc-button-primary:hover {
  border-color: #efdcaa;
  background: rgba(var(--hc-accent-rgb), 0.13);
  color: #ffffff;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--hc-radius);
  background: rgba(21, 31, 43, 0.88);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.28);
}

.panel-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #d9e1e8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-live {
  color: var(--hc-accent);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.metric-grid div,
.hc-card,
.sd-card,
.chart-card {
  border: 1px solid var(--hc-line);
  border-radius: var(--hc-radius);
  background: var(--hc-card);
}

.metric-grid div {
  border-color: rgba(255, 255, 255, 0.1);
  background: #1a2531;
  padding: 0.85rem;
}

.metric-grid strong {
  display: block;
  color: #ffffff;
  font-size: 1.55rem;
  line-height: 1;
}

.metric-grid span {
  color: #aab6c2;
  font-size: 0.76rem;
}

.hero-panel div[class*=" highlight-"],
.hero-panel div[class^="highlight-"] {
  border-radius: var(--hc-radius);
  background: #111a22;
  margin-bottom: 0;
}

.hero-panel div[class*=" highlight-"] pre,
.hero-panel div[class^="highlight-"] pre,
.hero-panel .highlight,
.hero-panel pre {
  border-radius: var(--hc-radius);
  background: #111a22;
}

.hero-panel pre {
  color: #d9e1e8;
}

.hero-panel div[class*=" highlight-"] span,
.hero-panel div[class^="highlight-"] span {
  color: #d9e1e8;
}

.hero-panel div[class*=" highlight-"] .nb,
.hero-panel div[class^="highlight-"] .nb,
.hero-panel div[class*=" highlight-"] .nf,
.hero-panel div[class^="highlight-"] .nf {
  color: #f3f7fa;
}

.hero-panel div[class*=" highlight-"] .s,
.hero-panel div[class^="highlight-"] .s {
  color: #9ccfc7;
}

body[data-theme="dark"] article[role="main"] div[class*=" highlight-"],
body[data-theme="dark"] article[role="main"] div[class^="highlight-"] {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--hc-radius);
  background: #080d12;
}

body[data-theme="dark"] article[role="main"] div[class*=" highlight-"] pre,
body[data-theme="dark"] article[role="main"] div[class^="highlight-"] pre {
  background: #080d12;
  color: #d9e1e8;
}

body[data-theme="dark"] article[role="main"] div[class*=" highlight-"] .copybtn,
body[data-theme="dark"] article[role="main"] div[class^="highlight-"] .copybtn {
  border-color: rgba(255, 255, 255, 0.16);
  background: #080d12;
  color: #d9e1e8;
}

body[data-theme="dark"] article[role="main"] div[class*=" highlight-"] .copybtn:hover,
body[data-theme="dark"] article[role="main"] div[class^="highlight-"] .copybtn:hover {
  border-color: var(--hc-accent);
  background: #111a22;
}

@media (prefers-color-scheme: dark) {
  body[data-theme="auto"] article[role="main"] div[class*=" highlight-"],
  body[data-theme="auto"] article[role="main"] div[class^="highlight-"] {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--hc-radius);
    background: #080d12;
  }

  body[data-theme="auto"] article[role="main"] div[class*=" highlight-"] pre,
  body[data-theme="auto"] article[role="main"] div[class^="highlight-"] pre {
    background: #080d12;
    color: #d9e1e8;
  }

  body[data-theme="auto"] article[role="main"] div[class*=" highlight-"] .copybtn,
  body[data-theme="auto"] article[role="main"] div[class^="highlight-"] .copybtn {
    border-color: rgba(255, 255, 255, 0.16);
    background: #080d12;
    color: #d9e1e8;
  }

  body[data-theme="auto"] article[role="main"] div[class*=" highlight-"] .copybtn:hover,
  body[data-theme="auto"] article[role="main"] div[class^="highlight-"] .copybtn:hover {
    border-color: var(--hc-accent);
    background: #111a22;
  }
}

.logo-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin: 0 0 2.5rem;
}

.logo-rail span {
  padding: 0.28rem 0.65rem;
  border: 1px solid var(--hc-line);
  border-radius: 999px;
  color: var(--hc-muted);
  font-size: 0.78rem;
}

.section-block {
  margin: 3rem 0;
}

.ecosystem-note {
  margin-top: 1.8rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hc-line);
  color: var(--hc-muted);
}

.ecosystem-note p:last-child {
  max-width: 68rem;
  margin-bottom: 0;
}

.workflow,
.takeaway-grid,
.platform-grid,
.helia-family-grid,
.doc-card-grid,
.api-story-grid,
.api-group-grid,
.path-choice-grid,
.artifact-choice-grid,
.heliacore-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin: 1.4rem 0;
}

.workflow-step,
.takeaway-card,
.platform-card,
.helia-family-card,
.doc-card,
.api-story-card,
.api-group-card,
.path-choice,
.artifact-choice,
.card,
.hc-card {
  display: flex;
  min-height: 12rem;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.15rem;
  border: 1px solid var(--hc-line);
  border-radius: var(--hc-radius);
  background: var(--hc-card);
  color: var(--hc-muted);
  text-decoration: none !important;
  box-shadow: 0 10px 28px rgba(16, 32, 51, 0.06);
}

.workflow-step:visited,
.takeaway-card:visited,
.platform-card:visited,
.helia-family-card:visited,
.doc-card:visited,
.api-story-card:visited,
.api-group-card:visited,
.path-choice:visited,
.card:visited,
.hc-card:visited {
  color: var(--hc-muted);
}

.platform-card:hover,
.helia-family-card:hover,
.doc-card:hover,
.api-story-card:hover,
.api-group-card:hover,
.path-choice:hover,
.card:hover {
  border-color: var(--hc-accent);
  transform: translateY(-2px);
}

.path-choice-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.artifact-choice-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.path-choice,
.artifact-choice {
  min-height: 10.75rem;
}

.path-choice {
  padding: 1rem;
}

.artifact-choice {
  min-height: 11.5rem;
}

.artifact-choice-primary {
  border-color: rgba(var(--hc-accent-rgb), 0.62);
  box-shadow:
    0 16px 42px rgba(var(--hc-accent-rgb), 0.1),
    0 0 0 1px rgba(var(--hc-accent-rgb), 0.14);
}

.path-choice code,
.artifact-choice code {
  overflow-wrap: anywhere;
}

.artifact-choice strong code {
  font-size: 0.98rem;
  line-height: 1.35;
}

.landing-hero .metric-grid div,
.section-block .workflow-step,
.section-block .takeaway-card,
.section-block .platform-card,
.section-block .helia-family-card {
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.landing-hero .metric-grid div:hover,
.section-block .workflow-step:hover,
.section-block .takeaway-card:hover,
.section-block .platform-card:hover,
.section-block .platform-card:visited:hover,
.section-block .platform-card:focus-visible,
.section-block .helia-family-card:hover,
.section-block .helia-family-card:visited:hover,
.section-block .helia-family-card:focus-visible {
  border-color: rgba(var(--hc-accent-rgb), 0.72) !important;
  box-shadow:
    0 16px 42px rgba(var(--hc-accent-rgb), 0.14),
    0 0 0 1px rgba(var(--hc-accent-rgb), 0.2) !important;
  transform: translateY(-2px) !important;
}

.workflow-icon,
.card-icon {
  display: inline-flex;
  width: fit-content;
  min-width: 2.2rem;
  min-height: 2.2rem;
  align-items: center;
  justify-content: center;
  padding: 0 0.55rem;
  border-radius: 999px;
  background: var(--hc-warm);
  color: var(--hc-accent);
  font-size: 0.75rem;
  font-weight: 800;
}

.platform-label,
.family-card-kicker,
.start-card-label,
.path-choice-label,
.artifact-choice-label,
.api-tag,
.doc-card span:first-child {
  color: var(--color-brand-content);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.platform-card strong,
.helia-family-card strong,
.doc-card strong,
.api-story-card strong,
.api-group-card strong,
.path-choice strong,
.artifact-choice strong,
.card strong,
.workflow-step strong,
.takeaway-card strong {
  color: var(--hc-ink);
  font-size: 1.15rem;
  line-height: 1.2;
}

.platform-card em,
.helia-family-card em,
.doc-card em,
.api-story-card em,
.api-group-card em,
.path-choice em,
.card em,
.text-link {
  margin-top: auto;
  color: var(--color-brand-content);
  font-style: normal;
  font-weight: 800;
}

.api-story-card em,
.api-group-card em {
  margin-top: 0;
  color: var(--hc-muted);
  font-weight: 500;
}

.api-filter-panel {
  margin: 1.7rem 0 2.2rem;
  padding: 1rem;
  border: 1px solid var(--hc-line);
  border-radius: var(--hc-radius);
  background: var(--hc-card);
  box-shadow: 0 10px 28px rgba(16, 32, 51, 0.05);
}

.api-filter-search {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  color: var(--hc-ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.api-filter-search input {
  width: 100%;
  min-height: 2.55rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--hc-line);
  border-radius: 6px;
  background: var(--hc-panel);
  color: var(--hc-ink);
  font: inherit;
}

.api-filter-search input:focus {
  border-color: var(--hc-accent);
  outline: 2px solid var(--hc-warm);
}

.api-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.55rem 0;
}

.api-filter-chip {
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--hc-line);
  border-radius: 999px;
  background: var(--hc-panel);
  color: var(--hc-ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
}

.api-filter-chip:hover,
.api-filter-chip.is-active {
  border-color: var(--hc-accent);
  background: var(--hc-warm);
}

.api-filter-status {
  margin: 0.75rem 0 0;
  color: var(--hc-muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.api-filter-empty {
  margin: 0.55rem 0 0;
  color: var(--hc-muted);
  font-size: 0.85rem;
}

.api-function-summary {
  margin: 0.7rem 0 0.65rem;
}

.api-function-count {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0 0.55rem;
  border: 1px solid var(--hc-line);
  border-radius: 999px;
  background: var(--hc-warm);
  color: var(--color-brand-content);
  font-size: 0.75rem;
  font-weight: 800;
}

.api-function-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 0.45rem;
  margin: 0.75rem 0 2rem;
}

.api-function-link {
  display: block;
  min-height: 2.45rem;
  padding: 0.58rem 0.68rem;
  border: 1px solid var(--hc-line);
  border-radius: 6px;
  background: var(--hc-panel);
  color: var(--color-link) !important;
  text-decoration: none !important;
  overflow-wrap: anywhere;
}

.api-function-link:visited {
  color: var(--color-link--visited) !important;
}

.api-function-link:hover {
  border-color: var(--hc-accent);
  background: var(--hc-warm);
}

.api-function-link code {
  color: inherit;
  background: transparent;
  font-size: 0.86rem;
}

article[role="main"] a:visited {
  color: var(--color-link--visited);
}

.chart-card {
  height: 24rem;
  margin: 1.5rem 0 1.8rem;
  padding: 1.1rem;
}

.chart-card canvas {
  width: 100% !important;
  height: 100% !important;
}

.admonition {
  border-radius: var(--hc-radius);
}

@media (max-width: 1100px) {
  .landing-hero {
    grid-template-columns: 1fr;
    padding: 1.35rem;
  }

  .hero-title,
  .hero-summary {
    max-width: 44rem;
  }

  .hero-logo {
    margin-bottom: 2.2rem;
  }

  .hero-panel {
    max-width: 34rem;
  }

  .hero-actions .hc-button {
    min-height: 3rem;
  }
}

@media (max-width: 82em) {
  body:has(.landing-hero) .page {
    flex-direction: column;
    justify-content: center;
  }

  body:has(.landing-hero) .mobile-header {
    display: flex;
    position: sticky;
    top: 0;
    align-items: center;
    justify-content: space-between;
  }

  body:has(.landing-hero) .mobile-header .header-left,
  body:has(.landing-hero) .mobile-header .header-right {
    display: flex;
    height: var(--header-height);
    padding: 0 var(--header-padding);
  }

  body:has(.landing-hero) .nav-overlay-icon,
  body:has(.landing-hero) .theme-toggle-header {
    display: flex;
  }

  body:has(.landing-hero) .theme-toggle-content {
    display: none;
  }

  body:has(.landing-hero) .sidebar-drawer {
    position: fixed;
    top: 0;
    left: -15rem;
    width: 15rem;
    min-width: 15rem;
    height: 100vh;
  }

  #__navigation:checked ~ .page:has(.landing-hero) .sidebar-drawer {
    left: 0;
  }

  body:has(.landing-hero) .content {
    width: min(100%, 92rem);
    margin-right: auto;
    margin-left: auto;
    padding-right: clamp(1rem, 3vw, 2rem);
    padding-left: clamp(1rem, 3vw, 2rem);
  }

  body:has(.landing-hero) :target {
    scroll-margin-top: calc(var(--header-height) + 2.5rem);
  }
}

@media (max-width: 820px) {
  .landing-hero {
    padding: 1.35rem;
  }

  .hero-title {
    font-size: 2.35rem;
  }
}
