:root {
  color-scheme: light;
  --color-background: hsl(0, 0%, 100%);
  --color-background-soft: hsl(0, 0%, 96%);
  --color-background-mute: hsl(0, 0%, 93%);
  --color-border-hover: hsla(0, 0%, 24%, 0.3);
  --color-border: hsla(0, 0%, 24%, 0.1);
  --color-trace-stroke: hsl(0, 0%, 24%);
  --color-trace-fill: hsl(0, 0%, 24%);
  --color-heading: hsl(0, 0%, 16%);
  --color-text: hsl(0, 0%, 16%);
  --color-text-hover: hsla(0, 0%, 24%, 0.6);
  --color-math-text: hsla(0, 0%, 24%, 0.8);
  --color-panel-box-shadow: hsl(113, 49%, 30%);
  --color-button-text: hsl(120, 0%, 100%);
  --color-button-border: hsl(120, 100%, 25%);
  --color-button-background-to: hsl(120, 26%, 53%);
  --color-button-background-from: hsl(113, 30%, 43%);
  --color-button-box-shadow: hsl(113, 49%, 30%);
  --color-button-text-shadow: hsl(113, 49%, 30%);
  --color-pre-code-background: hsl(0, 0%, 90%);
  --color-a-text: hsl(120, 100%, 37%);
  --color-a-text-hover: hsl(120, 100%, 23%);
  --color-a-background-hover: hsla(120, 100%, 37%, 0.2);
  --color-input-background: hsl(120, 35%, 91%);
  --color-input-background-hover: hsl(0, 0%, 96%);
  --color-input-background-focus: hsl(60, 100%, 87%);
  --color-input-text: hsl(0, 100%, 50%);
  --color-input-text-focus: hsl(0, 100%, 40%);
  --red-background: hsl(0, 52%, 88%);
  --red-border: hsl(0, 100%, 50%);
  --red-border-hover: hsl(0, 100%, 50%);
  --red-text: hsl(0, 100%, 37%);
  --red-text-hover: hsl(0, 100%, 23%);
  --yellow-background: hsl(60, 52%, 88%);
  --yellow-border: hsl(60, 100%, 50%);
  --yellow-border-hover: hsl(60, 100%, 50%);
  --yellow-text: hsl(60, 100%, 37%);
  --yellow-text-hover: hsl(60, 100%, 23%);
  --green-background: hsl(120, 52%, 88%);
  --green-border: hsl(120, 100%, 25%);
  --green-border-hover: hsl(120, 100%, 50%);
  --green-text: hsl(120, 100%, 37%);
  --green-text-hover: hsl(120, 100%, 23%);
  --blue-background: hsl(240, 52%, 88%);
  --blue-border: hsl(240, 100%, 50%);
  --blue-border-hover: hsl(240, 100%, 50%);
  --blue-text: hsl(240, 100%, 37%);
  --blue-text-hover: hsl(240, 100%, 23%);
  --site-body-background:
    radial-gradient(circle at top left, rgba(92, 170, 92, 0.18), transparent 34rem),
    linear-gradient(135deg, #f8fbf8 0%, #f4f6fa 52%, #fff7ed 100%);
  --site-surface: rgba(255, 255, 255, 0.78);
  --site-surface-strong: white;
  --site-surface-soft: rgba(255, 255, 255, 0.72);
  --site-surface-elevated: rgba(255, 255, 255, 0.94);
  --site-surface-menu: rgba(255, 255, 255, 0.98);
  --site-primary: #176f3b;
  --site-primary-hover: #10552d;
  --site-primary-muted: rgba(41, 126, 77, 0.12);
  --site-secondary: #a73f29;
  --site-accent: #2c7a7b;
  --site-border: rgba(23, 111, 59, 0.18);
  --site-border-soft: rgba(23, 111, 59, 0.14);
  --site-border-strong: rgba(23, 111, 59, 0.22);
  --site-border-hover: rgba(167, 63, 41, 0.36);
  --site-text: #172019;
  --site-heading: #111814;
  --site-muted: #47574d;
  --site-muted-strong: #33443a;
  --site-muted-soft: #5d6d62;
  --site-shadow: rgba(30, 43, 34, 0.28);
  --site-shadow-soft: rgba(30, 43, 34, 0.1);
  --site-menu-shadow: rgba(13, 45, 27, 0.12);
  --site-terminal-background: #111814;
  --site-terminal-bar: #202b24;
  --site-terminal-text: #d9f7df;
  --site-terminal-output: #ecfff0;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --color-background: hsl(0, 0%, 9%);
    --color-background-soft: hsl(0, 0%, 13%);
    --color-background-mute: hsl(0, 0%, 16%);
    --color-border-hover: hsla(0, 0%, 33%, 0.7);
    --color-border: hsla(0, 0%, 33%, 0.5);
    --color-trace-stroke: hsl(0, 0%, 92%);
    --color-trace-fill: hsl(0, 0%, 92%);
    --color-heading: hsl(0, 0%, 100%);
    --color-text: hsl(0, 0%, 100%);
    --color-text-hover: hsla(0, 0%, 92%, 0.6);
    --color-math-text: hsla(0, 0%, 92%, 0.8);
    --color-panel-box-shadow: hsl(113, 49%, 30%);
    --color-button-text: hsl(120, 0%, 100%);
    --color-button-border: hsl(120, 100%, 25%);
    --color-button-background-to: hsl(120, 26%, 43%);
    --color-button-background-from: hsl(113, 30%, 33%);
    --color-button-box-shadow: hsl(113, 49%, 20%);
    --color-button-text-shadow: hsl(113, 49%, 20%);
    --color-pre-code-background: hsl(0, 0%, 20%);
    --color-a-text: hsl(120, 100%, 37%);
    --color-a-text-hover: hsl(120, 100%, 23%);
    --color-a-background-hover: hsla(120, 100%, 37%, 0.2);
    --color-input-background: hsl(120, 35%, 91%);
    --color-input-background-hover: hsl(0, 0%, 96%);
    --color-input-background-focus: hsl(60, 100%, 87%);
    --color-input-text: hsl(0, 100%, 35%);
    --color-input-text-focus: hsl(0, 100%, 25%);
    --red-background: hsl(0, 52%, 16%);
    --red-border: hsl(0, 100%, 50%);
    --red-border-hover: hsl(0, 100%, 50%);
    --red-text: hsl(0, 100%, 37%);
    --red-text-hover: hsl(0, 100%, 23%);
    --yellow-background: hsl(60, 52%, 16%);
    --yellow-border: hsl(60, 100%, 50%);
    --yellow-border-hover: hsl(60, 100%, 50%);
    --yellow-text: hsl(60, 100%, 37%);
    --yellow-text-hover: hsl(60, 100%, 23%);
    --green-background: hsl(120, 52%, 16%);
    --green-border: hsl(120, 100%, 25%);
    --green-border-hover: hsl(120, 100%, 50%);
    --green-text: hsl(120, 100%, 37%);
    --green-text-hover: hsl(120, 100%, 23%);
    --blue-background: hsl(240, 52%, 16%);
    --blue-border: hsl(240, 100%, 50%);
    --blue-border-hover: hsl(240, 100%, 50%);
    --blue-text: hsl(240, 100%, 37%);
    --blue-text-hover: hsl(240, 100%, 23%);
    --site-body-background:
      radial-gradient(circle at top left, rgba(92, 170, 92, 0.14), transparent 34rem),
      linear-gradient(135deg, var(--color-background) 0%, var(--color-background-soft) 58%, hsl(25, 40%, 11%) 100%);
    --site-surface: rgba(33, 33, 33, 0.78);
    --site-surface-strong: var(--color-background-soft);
    --site-surface-soft: rgba(33, 33, 33, 0.72);
    --site-surface-elevated: rgba(33, 33, 33, 0.94);
    --site-surface-menu: rgba(33, 33, 33, 0.98);
    --site-primary: var(--color-a-text);
    --site-primary-hover: hsl(120, 100%, 45%);
    --site-primary-muted: var(--color-a-background-hover);
    --site-secondary: hsl(12, 71%, 64%);
    --site-accent: hsl(181, 47%, 56%);
    --site-border: var(--color-border);
    --site-border-soft: hsla(0, 0%, 33%, 0.35);
    --site-border-strong: var(--color-border-hover);
    --site-border-hover: hsla(12, 71%, 64%, 0.5);
    --site-text: var(--color-heading);
    --site-heading: var(--color-heading);
    --site-muted: var(--color-text);
    --site-muted-strong: hsla(0, 0%, 92%, 0.78);
    --site-muted-soft: hsla(0, 0%, 92%, 0.68);
    --site-shadow: rgba(0, 0, 0, 0.42);
    --site-shadow-soft: rgba(0, 0, 0, 0.28);
    --site-menu-shadow: rgba(0, 0, 0, 0.32);
    --site-terminal-background: hsl(0, 0%, 7%);
    --site-terminal-bar: var(--color-background-mute);
    --site-terminal-text: hsl(120, 65%, 86%);
    --site-terminal-output: hsl(120, 100%, 96%);
  }
}
html[data-theme=light] {
  color-scheme: light;
  --color-background: hsl(0, 0%, 100%);
  --color-background-soft: hsl(0, 0%, 96%);
  --color-background-mute: hsl(0, 0%, 93%);
  --color-border-hover: hsla(0, 0%, 24%, 0.3);
  --color-border: hsla(0, 0%, 24%, 0.1);
  --color-trace-stroke: hsl(0, 0%, 24%);
  --color-trace-fill: hsl(0, 0%, 24%);
  --color-heading: hsl(0, 0%, 16%);
  --color-text: hsl(0, 0%, 16%);
  --color-text-hover: hsla(0, 0%, 24%, 0.6);
  --color-math-text: hsla(0, 0%, 24%, 0.8);
  --color-panel-box-shadow: hsl(113, 49%, 30%);
  --color-button-text: hsl(120, 0%, 100%);
  --color-button-border: hsl(120, 100%, 25%);
  --color-button-background-to: hsl(120, 26%, 53%);
  --color-button-background-from: hsl(113, 30%, 43%);
  --color-button-box-shadow: hsl(113, 49%, 30%);
  --color-button-text-shadow: hsl(113, 49%, 30%);
  --color-pre-code-background: hsl(0, 0%, 90%);
  --color-a-text: hsl(120, 100%, 37%);
  --color-a-text-hover: hsl(120, 100%, 23%);
  --color-a-background-hover: hsla(120, 100%, 37%, 0.2);
  --color-input-background: hsl(120, 35%, 91%);
  --color-input-background-hover: hsl(0, 0%, 96%);
  --color-input-background-focus: hsl(60, 100%, 87%);
  --color-input-text: hsl(0, 100%, 50%);
  --color-input-text-focus: hsl(0, 100%, 40%);
  --red-background: hsl(0, 52%, 88%);
  --red-border: hsl(0, 100%, 50%);
  --red-border-hover: hsl(0, 100%, 50%);
  --red-text: hsl(0, 100%, 37%);
  --red-text-hover: hsl(0, 100%, 23%);
  --yellow-background: hsl(60, 52%, 88%);
  --yellow-border: hsl(60, 100%, 50%);
  --yellow-border-hover: hsl(60, 100%, 50%);
  --yellow-text: hsl(60, 100%, 37%);
  --yellow-text-hover: hsl(60, 100%, 23%);
  --green-background: hsl(120, 52%, 88%);
  --green-border: hsl(120, 100%, 25%);
  --green-border-hover: hsl(120, 100%, 50%);
  --green-text: hsl(120, 100%, 37%);
  --green-text-hover: hsl(120, 100%, 23%);
  --blue-background: hsl(240, 52%, 88%);
  --blue-border: hsl(240, 100%, 50%);
  --blue-border-hover: hsl(240, 100%, 50%);
  --blue-text: hsl(240, 100%, 37%);
  --blue-text-hover: hsl(240, 100%, 23%);
  --site-body-background:
    radial-gradient(circle at top left, rgba(92, 170, 92, 0.18), transparent 34rem),
    linear-gradient(135deg, #f8fbf8 0%, #f4f6fa 52%, #fff7ed 100%);
  --site-surface: rgba(255, 255, 255, 0.78);
  --site-surface-strong: white;
  --site-surface-soft: rgba(255, 255, 255, 0.72);
  --site-surface-elevated: rgba(255, 255, 255, 0.94);
  --site-surface-menu: rgba(255, 255, 255, 0.98);
  --site-primary: #176f3b;
  --site-primary-hover: #10552d;
  --site-primary-muted: rgba(41, 126, 77, 0.12);
  --site-secondary: #a73f29;
  --site-accent: #2c7a7b;
  --site-border: rgba(23, 111, 59, 0.18);
  --site-border-soft: rgba(23, 111, 59, 0.14);
  --site-border-strong: rgba(23, 111, 59, 0.22);
  --site-border-hover: rgba(167, 63, 41, 0.36);
  --site-text: #172019;
  --site-heading: #111814;
  --site-muted: #47574d;
  --site-muted-strong: #33443a;
  --site-muted-soft: #5d6d62;
  --site-shadow: rgba(30, 43, 34, 0.28);
  --site-shadow-soft: rgba(30, 43, 34, 0.1);
  --site-menu-shadow: rgba(13, 45, 27, 0.12);
  --site-terminal-background: #111814;
  --site-terminal-bar: #202b24;
  --site-terminal-text: #d9f7df;
  --site-terminal-output: #ecfff0;
}

html[data-theme=dark] {
  color-scheme: dark;
  --color-background: hsl(0, 0%, 9%);
  --color-background-soft: hsl(0, 0%, 13%);
  --color-background-mute: hsl(0, 0%, 16%);
  --color-border-hover: hsla(0, 0%, 33%, 0.7);
  --color-border: hsla(0, 0%, 33%, 0.5);
  --color-trace-stroke: hsl(0, 0%, 92%);
  --color-trace-fill: hsl(0, 0%, 92%);
  --color-heading: hsl(0, 0%, 100%);
  --color-text: hsl(0, 0%, 100%);
  --color-text-hover: hsla(0, 0%, 92%, 0.6);
  --color-math-text: hsla(0, 0%, 92%, 0.8);
  --color-panel-box-shadow: hsl(113, 49%, 30%);
  --color-button-text: hsl(120, 0%, 100%);
  --color-button-border: hsl(120, 100%, 25%);
  --color-button-background-to: hsl(120, 26%, 43%);
  --color-button-background-from: hsl(113, 30%, 33%);
  --color-button-box-shadow: hsl(113, 49%, 20%);
  --color-button-text-shadow: hsl(113, 49%, 20%);
  --color-pre-code-background: hsl(0, 0%, 20%);
  --color-a-text: hsl(120, 100%, 37%);
  --color-a-text-hover: hsl(120, 100%, 23%);
  --color-a-background-hover: hsla(120, 100%, 37%, 0.2);
  --color-input-background: hsl(120, 35%, 91%);
  --color-input-background-hover: hsl(0, 0%, 96%);
  --color-input-background-focus: hsl(60, 100%, 87%);
  --color-input-text: hsl(0, 100%, 35%);
  --color-input-text-focus: hsl(0, 100%, 25%);
  --red-background: hsl(0, 52%, 16%);
  --red-border: hsl(0, 100%, 50%);
  --red-border-hover: hsl(0, 100%, 50%);
  --red-text: hsl(0, 100%, 37%);
  --red-text-hover: hsl(0, 100%, 23%);
  --yellow-background: hsl(60, 52%, 16%);
  --yellow-border: hsl(60, 100%, 50%);
  --yellow-border-hover: hsl(60, 100%, 50%);
  --yellow-text: hsl(60, 100%, 37%);
  --yellow-text-hover: hsl(60, 100%, 23%);
  --green-background: hsl(120, 52%, 16%);
  --green-border: hsl(120, 100%, 25%);
  --green-border-hover: hsl(120, 100%, 50%);
  --green-text: hsl(120, 100%, 37%);
  --green-text-hover: hsl(120, 100%, 23%);
  --blue-background: hsl(240, 52%, 16%);
  --blue-border: hsl(240, 100%, 50%);
  --blue-border-hover: hsl(240, 100%, 50%);
  --blue-text: hsl(240, 100%, 37%);
  --blue-text-hover: hsl(240, 100%, 23%);
  --site-body-background:
    radial-gradient(circle at top left, rgba(92, 170, 92, 0.14), transparent 34rem),
    linear-gradient(135deg, var(--color-background) 0%, var(--color-background-soft) 58%, hsl(25, 40%, 11%) 100%);
  --site-surface: rgba(33, 33, 33, 0.78);
  --site-surface-strong: var(--color-background-soft);
  --site-surface-soft: rgba(33, 33, 33, 0.72);
  --site-surface-elevated: rgba(33, 33, 33, 0.94);
  --site-surface-menu: rgba(33, 33, 33, 0.98);
  --site-primary: var(--color-a-text);
  --site-primary-hover: hsl(120, 100%, 45%);
  --site-primary-muted: var(--color-a-background-hover);
  --site-secondary: hsl(12, 71%, 64%);
  --site-accent: hsl(181, 47%, 56%);
  --site-border: var(--color-border);
  --site-border-soft: hsla(0, 0%, 33%, 0.35);
  --site-border-strong: var(--color-border-hover);
  --site-border-hover: hsla(12, 71%, 64%, 0.5);
  --site-text: var(--color-heading);
  --site-heading: var(--color-heading);
  --site-muted: var(--color-text);
  --site-muted-strong: hsla(0, 0%, 92%, 0.78);
  --site-muted-soft: hsla(0, 0%, 92%, 0.68);
  --site-shadow: rgba(0, 0, 0, 0.42);
  --site-shadow-soft: rgba(0, 0, 0, 0.28);
  --site-menu-shadow: rgba(0, 0, 0, 0.32);
  --site-terminal-background: hsl(0, 0%, 7%);
  --site-terminal-bar: var(--color-background-mute);
  --site-terminal-text: hsl(120, 65%, 86%);
  --site-terminal-output: hsl(120, 100%, 96%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--site-text);
  background: var(--site-body-background);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--site-primary);
  text-decoration: none;
}

a:hover {
  color: var(--site-primary-hover);
}

.software-link {
  display: inline-flex;
  gap: 0.2em;
  align-items: center;
  vertical-align: -0.13em;
}

.software-icon {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
}

.npm-wordmark-icon {
  width: 1.8em;
  height: auto;
  transform: translateY(0.16em);
}

.npm-wordmark-link {
  vertical-align: baseline;
}

h2 .software-icon {
  width: 0.78em;
  height: 0.78em;
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  gap: 1rem;
  align-items: center;
  width: min(1160px, 100% - 2rem);
  margin: 0 auto;
  padding: 0.9rem 0;
  backdrop-filter: blur(18px);
}

.brand,
.header-actions,
.language-switcher,
.main-nav,
.hero-actions,
.resource-links,
.gateway-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.65rem;
  color: var(--site-text);
  font-weight: 800;
  min-width: max-content;
}

.brand span {
  font-size: 2.3rem;
  line-height: 1;
}

.brand img {
  width: 121px;
  height: 121px;
}

.site-menu {
  display: contents;
}

.menu-toggle {
  display: none;
}

.language-toggle {
  display: none;
}

.button-label-short {
  display: none;
}

.main-nav {
  min-width: 0;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem 0.35rem;
}

.main-nav a,
.language-switcher a {
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  color: var(--site-muted-strong);
  font-size: 0.95rem;
  white-space: nowrap;
}

.main-nav a:hover,
.language-switcher a:hover,
.language-switcher a[aria-current=page] {
  background: var(--site-primary-muted);
}

.header-actions {
  min-width: max-content;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.language-switcher {
  flex-direction: column;
  align-items: stretch;
  gap: 0.1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.language-switcher a {
  display: block;
  text-align: center;
}

.header-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.72rem 1rem;
  font-weight: 750;
}

.button-icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
}

.button-primary,
.button-small {
  color: var(--color-button-text);
  text-shadow: 0 1px 0 var(--color-button-text-shadow);
  border-color: var(--color-button-border);
  background: linear-gradient(to bottom, var(--color-button-background-to) 5%, var(--color-button-background-from) 100%);
  background-color: var(--color-button-background-to);
  box-shadow: 0 10px 14px -7px var(--color-button-box-shadow);
}

.button-primary:hover,
.button-small:hover {
  color: var(--color-button-text);
  background: linear-gradient(to bottom, var(--color-button-background-from) 5%, var(--color-button-background-to) 100%);
  background-color: var(--color-button-background-from);
}

.button-small-secondary {
  color: var(--site-text);
  background: var(--site-surface);
  border-color: var(--site-border-strong);
  box-shadow: none;
}

.button-small-secondary:hover {
  color: var(--site-text);
  background: var(--site-surface-strong);
  border-color: var(--site-border-hover);
}

.button-secondary {
  color: var(--site-text);
  background: var(--site-surface);
  border-color: var(--site-border-strong);
}

.button-secondary:hover {
  color: var(--site-text);
  border-color: var(--site-border-hover);
}

.button-small {
  min-height: 2.35rem;
  padding: 0.48rem 0.75rem;
  font-size: 0.92rem;
  white-space: nowrap;
}

.section-shell {
  scroll-margin-top: 9rem;
  width: min(1160px, 100% - 2rem);
  margin: 0 auto;
  padding: 4.5rem 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.76fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  min-height: calc(100vh - 84px);
  padding-top: 3rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--site-secondary);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--site-heading);
  line-height: 1.1;
}

h1 {
  max-width: 16ch;
  font-size: clamp(2.1rem, 4.9vw, 4.06rem);
}

h2 {
  max-width: 860px;
  font-size: clamp(1.85rem, 4vw, 3.15rem);
}

h3 {
  font-size: 1.22rem;
}

.hero-lead,
.section-heading p,
.feature-card p,
.repo-card p,
.notice-grid p,
.site-footer {
  color: var(--site-muted);
}

.hero-lead {
  max-width: 680px;
  margin: 1.35rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.install-command {
  display: inline-grid;
  gap: 0.25rem;
  margin-top: 1.1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--site-border);
  border-radius: 8px;
  background: var(--site-surface);
}

.install-command span {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  color: var(--site-muted-soft);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.install-command span img {
  width: 2.35rem;
  height: auto;
}

code,
pre {
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

.hero-panel {
  overflow: hidden;
  border: 1px solid var(--site-border);
  border-radius: 8px;
  background: var(--site-terminal-background);
  box-shadow: 0 24px 60px var(--site-shadow);
}

.terminal-bar {
  gap: 0.45rem;
  padding: 0.8rem 1rem;
  background: var(--site-terminal-bar);
}

.terminal-bar span {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: #f06449;
}

.terminal-bar span:nth-child(2) {
  background: #f4c542;
}

.terminal-bar span:nth-child(3) {
  background: #63c174;
}

.terminal-session {
  display: grid;
  gap: 0.45rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  overflow-x: auto;
  color: var(--site-terminal-text);
  font-size: clamp(0.95rem, 2vw, 1.08rem);
}

.terminal-line {
  min-width: max-content;
}

.terminal-prompt code {
  color: var(--site-terminal-text);
  background: transparent;
}

.terminal-output {
  color: var(--site-terminal-output);
}

.terminal-output math {
  display: block;
  max-width: max-content;
  color: inherit;
  font-family: math;
}

.terminal-output mtable {
  column-gap: 0.35rem;
  row-gap: 0.1rem;
}

.section-heading {
  max-width: 780px;
}

.section-heading p {
  margin: 1rem 0 0;
  font-size: 1.08rem;
}

.pipeline-section {
  padding-top: 2rem;
}

.pipeline-figure {
  margin: 2rem 0 0;
  overflow-x: auto;
  border: 1px solid var(--site-border-soft);
  border-radius: 8px;
  padding: clamp(0.75rem, 2vw, 1.2rem);
  background: var(--site-surface);
}

.pipeline-figure img {
  display: block;
  width: 100%;
  min-width: 720px;
  height: auto;
}

.pipeline-mobile-carousel {
  display: none;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.feature-card,
.repo-card {
  border: 1px solid var(--site-border-soft);
  border-radius: 8px;
  background: var(--site-surface-soft);
}

.feature-card {
  min-height: 240px;
  padding: 1.35rem;
}

.feature-card p,
.repo-card p {
  margin: 0.8rem 0 0;
}

.feature-card a {
  font-weight: 750;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(2rem, 4vw, 4rem);
}

.repo-list {
  display: grid;
  gap: 0.9rem;
}

.repo-card {
  display: block;
  padding: 1.2rem;
}

.repo-card:hover {
  border-color: var(--site-border-hover);
  transform: translateY(-2px);
}

.repo-card span {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  color: var(--site-secondary);
  font-size: 0.82rem;
  font-weight: 800;
}

.repo-card span img,
.publication-card span img,
.resource-links img {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  object-fit: contain;
}

.resource-links img[src$="mathjslab-logo.svg"] {
  width: 1.35rem;
  height: 1.35rem;
}

.repo-card strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--site-heading);
  font-size: 1.35rem;
}

.publication-section {
  padding-top: 3.5rem;
}

.publication-intro {
  max-width: 880px;
  margin: 1.25rem 0 0;
  color: var(--site-muted);
  font-size: 1.08rem;
}

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

.publication-card {
  display: grid;
  align-content: space-between;
  gap: 1.3rem;
  border: 1px solid var(--site-border-soft);
  border-radius: 8px;
  padding: 1.35rem;
  background: var(--site-surface-soft);
}

.publication-card span {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  color: var(--site-secondary);
  font-size: 0.82rem;
  font-weight: 800;
}

.publication-card span img[src$="Npm-logo.svg"]:not(.npm-wordmark-icon) {
  width: 2.8rem;
}

.publication-card .npm-wordmark-icon,
.resource-links .npm-wordmark-icon {
  width: 1.8em;
  height: auto;
}

.publication-card h3 {
  margin-top: 0.25rem;
}

.publication-card p {
  margin: 0.8rem 0 0;
  color: var(--site-muted);
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.badge-list a,
.badge-list img {
  display: inline-block;
}

.badge-list img {
  height: 20px;
  max-width: 100%;
}

.archive-section {
  padding-top: 3.5rem;
}

.archive-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 2rem;
}

.archive-card {
  display: grid;
  gap: 0.45rem;
  border: 1px solid var(--site-border-soft);
  border-radius: 8px;
  padding: 1.2rem;
  background: var(--site-surface-soft);
}

.archive-card:hover {
  border-color: var(--site-border-hover);
  transform: translateY(-2px);
}

.archive-card span,
.archive-card small {
  color: var(--site-secondary);
  font-size: 0.82rem;
  font-weight: 800;
}

.archive-card strong {
  color: var(--site-heading);
  font-size: 1.18rem;
  line-height: 1.2;
}

.archive-card p {
  margin: 0;
  color: var(--site-muted);
}

.resources-section {
  padding-bottom: 3rem;
}

.resource-links {
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.resource-links a {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  border: 1px solid var(--site-border);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  color: var(--site-text);
  background: var(--site-surface-strong);
  font-weight: 750;
}

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

.notice-grid p {
  margin: 0;
  border-left: 4px solid var(--site-accent);
  padding: 0.1rem 0 0.1rem 1rem;
}

.contact-section {
  padding-top: 3.5rem;
}

.contact-card {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.5rem;
  border: 1px solid var(--site-border);
  border-radius: 8px;
  padding: 1rem 1.15rem;
  color: var(--site-text);
  background: var(--site-surface-strong);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 800;
}

.contact-card img {
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
}

.contact-card span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.license-section {
  padding-top: 3rem;
}

.license-panel {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
  border: 1px solid var(--site-border-soft);
  border-radius: 8px;
  padding: clamp(1rem, 3vw, 1.5rem);
  background: var(--site-surface);
}

.license-branding {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.license-branding img {
  width: min(12rem, 58vw);
  height: auto;
}

.license-panel pre {
  margin: 0;
  overflow-x: auto;
  white-space: pre-wrap;
}

.license-panel code {
  color: var(--site-text);
  background: transparent;
  font-size: 0.92rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(1160px, 100% - 2rem);
  margin: 0 auto;
  padding: 2rem 0;
  border-top: 1px solid var(--site-border-soft);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
}

.language-gateway {
  display: grid;
  place-items: center;
  padding: 1rem;
}

.gateway-panel {
  width: min(520px, 100%);
  border: 1px solid var(--site-border);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  background: var(--site-surface);
}

.gateway-panel h1 {
  max-width: none;
  font-size: 2.5rem;
}

.gateway-panel img {
  width: 94px;
  height: 94px;
}

.gateway-panel p {
  margin: 0.75rem 0 1.25rem;
  color: var(--site-muted);
}

.gateway-links {
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.gateway-links a {
  border: 1px solid var(--site-border);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  background: var(--site-surface-strong);
}

.app-hub-page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100vh;
  overflow: hidden;
  background: var(--color-background);
}

.app-hub-bar {
  z-index: 2;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  gap: 0.85rem;
  align-items: center;
  border-bottom: 1px solid var(--site-border);
  padding: 0.65rem 0.85rem;
  background: var(--site-surface-elevated);
  box-shadow: 0 10px 28px var(--site-shadow-soft);
}

.app-hub-brand {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  min-width: max-content;
  color: var(--site-text);
  font-weight: 850;
}

.app-hub-brand img {
  width: 2.65rem;
  height: 2.65rem;
}

.app-hub-brand h1 {
  font-size: 1.25rem;
  line-height: 1;
}

.app-hub-brand h1:hover {
  color: var(--site-primary-hover);
}

.app-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  min-width: 0;
}

.app-selector a {
  min-height: 2.35rem;
  border: 1px solid var(--site-border);
  border-radius: 8px;
  padding: 0.48rem 0.8rem;
  color: var(--site-text);
  background: var(--site-surface-strong);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 750;
  cursor: pointer;
}

.app-selector a:hover,
.app-selector a[aria-pressed=true] {
  color: var(--color-button-text);
  text-shadow: 0 1px 0 var(--color-button-text-shadow);
  border-color: var(--color-button-border);
  background: linear-gradient(to bottom, var(--color-button-background-to) 5%, var(--color-button-background-from) 100%);
  background-color: var(--color-button-background-to);
  box-shadow: 0 10px 14px -7px var(--color-button-box-shadow);
}

.app-hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
  min-width: max-content;
}

.app-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--color-background);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
  }
  .main-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .header-actions {
    justify-content: space-between;
    align-items: flex-start;
  }
  .language-switcher {
    flex-wrap: wrap;
  }
  .hero,
  .split-section {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: auto;
  }
  h1 {
    max-width: 11ch;
  }
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .publication-grid {
    grid-template-columns: 1fr;
  }
  .app-hub-bar {
    grid-template-columns: 1fr;
  }
  .app-hub-brand,
  .app-hub-actions {
    justify-content: center;
  }
}
@media (max-width: 640px) {
  .site-header,
  .section-shell,
  .site-footer {
    width: min(100% - 1rem, 1160px);
  }
  .section-shell {
    padding: 3rem 0;
  }
  .header-actions,
  .site-footer,
  .notice-grid {
    display: grid;
    grid-template-columns: 1fr;
  }
  .main-nav a,
  .language-switcher a {
    padding: 0.35rem 0.45rem;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .feature-card {
    min-height: auto;
  }
  .pipeline-figure img {
    min-width: 46rem;
  }
  .app-hub-brand h1 {
    font-size: 1.05rem;
  }
  .app-selector a,
  .app-hub-actions .button-small {
    flex: 1 1 auto;
  }
}
@media (max-width: 900px) {
  .site-header {
    position: sticky;
    grid-template-columns: minmax(0, 1fr) max-content max-content;
    gap: 0.3rem;
    align-items: center;
    padding: 0.45rem 0;
  }
  .brand {
    grid-column: 1;
    gap: 0.4rem;
    justify-content: flex-start;
    min-width: 0;
    overflow: hidden;
  }
  .brand img {
    width: 3.24rem;
    height: 3.24rem;
  }
  .brand span {
    overflow: hidden;
    font-size: clamp(1.45rem, 6.3vw, 1.79rem);
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .header-actions {
    position: relative;
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    gap: 0.35rem;
  }
  .menu-toggle,
  .language-toggle,
  .header-buttons .button-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 2.35rem;
    min-height: 2.35rem;
    height: 2.35rem;
    border: 1px solid var(--site-border-strong);
    border-radius: 8px;
    padding: 0.5rem;
    color: var(--site-primary);
    background: var(--site-surface-elevated);
    appearance: none;
    box-sizing: border-box;
    font: inherit;
    font-weight: 750;
    line-height: 1;
    cursor: pointer;
  }
  .menu-toggle {
    grid-column: 3;
  }
  .menu-toggle:hover,
  .menu-toggle[aria-expanded=true],
  .language-toggle:hover,
  .language-toggle[aria-expanded=true] {
    background: var(--site-primary-muted);
  }
  .menu-toggle-icon {
    position: relative;
    width: 1rem;
    height: 0.75rem;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
  }
  .menu-toggle-icon::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    content: "";
    transform: translateY(-50%);
  }
  .language-toggle-icon {
    width: 1.1rem;
    height: 1.1rem;
    flex: 0 0 auto;
  }
  .site-menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    display: none;
    width: min(22rem, 100%);
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--site-border-soft);
    border-radius: 8px;
    background: var(--site-surface-menu);
    box-shadow: 0 18px 36px var(--site-menu-shadow);
  }
  .site-menu[data-open] {
    display: grid;
  }
  .main-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
  }
  .main-nav a {
    padding: 0.55rem 0.45rem;
    text-align: center;
    white-space: normal;
  }
  .language-switcher {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    z-index: 10;
    display: none;
    min-width: 10rem;
    gap: 0.25rem;
    padding: 0.5rem;
    border: 1px solid var(--site-border-soft);
    border-radius: 8px;
    background: var(--site-surface-menu);
    box-shadow: 0 18px 36px var(--site-menu-shadow);
  }
  .language-switcher[data-open] {
    display: grid;
  }
  .header-buttons {
    display: flex;
    align-content: center;
  }
  .header-buttons .button-small {
    padding: 0.35rem 0.58rem;
    font-size: 0.86rem;
    white-space: nowrap;
  }
  .button-label-full,
  .language-toggle span:last-child,
  .menu-toggle span:last-child {
    display: none;
  }
  .button-label-short {
    display: inline;
  }
  .pipeline-figure {
    display: none;
  }
  .pipeline-mobile-carousel {
    display: block;
    margin-top: 2rem;
  }
  .pipeline-carousel-open {
    display: block;
    width: 100%;
    border: 1px solid var(--site-border-soft);
    border-radius: 8px;
    padding: 0.75rem;
    background: var(--site-surface);
    cursor: pointer;
  }
  .pipeline-carousel-open img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
  }
  .pipeline-carousel-overlay {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: none;
    place-items: center;
    padding: 1rem;
    background: rgba(10, 22, 16, 0.68);
  }
  .pipeline-carousel-overlay[data-open] {
    display: grid;
  }
  .pipeline-carousel-panel {
    display: grid;
    gap: 0.65rem;
    justify-items: center;
    width: 100%;
    max-width: 100vw;
  }
  .pipeline-carousel-stage {
    display: grid;
    place-items: center;
    width: 100%;
  }
  .pipeline-carousel-image {
    display: none;
    width: auto;
    max-width: calc(100vw - 2rem);
    max-height: calc(100dvh - 5.5rem);
    height: auto;
    border-radius: 8px;
    background: var(--site-surface-strong);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.3);
    touch-action: pan-y;
  }
  .pipeline-carousel-image.is-active {
    display: block;
  }
  .pipeline-carousel-indicators {
    display: flex;
    gap: 0.45rem;
    justify-content: center;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.45rem;
    line-height: 1;
  }
  .pipeline-carousel-indicators .is-active {
    color: white;
    font-weight: 900;
  }
}
@media (max-width: 420px) {
  .main-nav {
    grid-template-columns: 1fr;
  }
}