/* Juice Docs design system */

:root {
  --bg: #ffffff;
  --bg-soft: #f8f8f7;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --surface-3: #eeeeef;
  --code-bg: #111111;
  --border: #e4e4e7;
  --border-h: #bfc1c8;

  --text: #111114;
  --text-2: #393b42;
  --muted: #62656f;
  --faint: #8a8d98;

  --link: #0a7a3c;
  --link-h: #065a2b;
  --focus: #12a150;
  --accent: #12a150;
  --accent-soft: #e6f7ec;
  --accent-border: #a6e2bd;

  --brand-green: #0a7a3c;
  --brand-deep: #064a25;
  --brand-lime: #c6f03a;
  --brand-cream: #fffbe8;
  --brand-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 46C180 12 360 6 540 30s360 52 540 34 270-48 360-40V80H0Z'/%3E%3C/svg%3E");

  --sidebar-w: 264px;
  --topbar-h: 52px;
  --content-max: 840px;
  --layout-max: 1540px;
  --landing-max: 1120px;

  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "Berkeley Mono", "CommitMono", "JetBrains Mono", "Cascadia Code",
    ui-monospace, SFMono-Regular, Menlo, monospace;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101010;
    --bg-soft: #151515;
    --surface: #161616;
    --surface-2: #1e1e1e;
    --surface-3: #272727;
    --code-bg: #090909;
    --border: #303030;
    --border-h: #555555;

    --text: #f7f7f7;
    --text-2: #d4d4d4;
    --muted: #aaaaaa;
    --faint: #858585;

    --link: #5be39a;
    --link-h: #8eeebb;
    --focus: #3ddc84;
    --accent: #3ddc84;
    --accent-soft: #0b2416;
    --accent-border: #1b5a35;

    --brand-green: #0b6e37;
    --brand-deep: #05361c;

    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 1rem);
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a:hover {
  color: var(--link-h);
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

:focus:not(:focus-visible) {
  outline: none;
}

.skip-nav {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-nav:focus {
  position: fixed;
  left: 1rem;
  top: 0.75rem;
  z-index: 100;
  width: auto;
  height: auto;
  overflow: visible;
  padding: 0.55rem 0.85rem;
  border-radius: 6px;
  background: var(--accent);
  color: #111111;
  font-size: 0.86rem;
  font-weight: 750;
}

code {
  font-family: var(--mono);
  font-size: 0.86em;
  padding: 0.12em 0.38em;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 11%, transparent);
  color: var(--text);
  word-break: break-word;
}

pre {
  position: relative;
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.15rem;
  overflow-x: auto;
  border: 0;
  border-radius: 16px;
  background: var(--code-bg);
  color: #f7f7f7;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.58;
  tab-size: 2;
  -webkit-overflow-scrolling: touch;
}

pre code {
  display: block;
  padding: 0 4.3rem 0 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: inherit;
  word-break: normal;
}

.code-copy {
  position: absolute;
  right: 0;
  top: 0.55rem;
  right: 0.55rem;
  min-height: 28px;
  padding: 0 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  color: #f0f0f0;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 650;
  cursor: pointer;
}

.code-copy:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  height: var(--topbar-h);
  gap: 0.8rem;
  padding: 0 clamp(1rem, 2vw, 1.5rem);
  background: var(--brand-green);
  color: var(--brand-cream);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  min-width: 0;
  color: var(--brand-cream);
  text-decoration: none;
}

.topbar-brand:hover {
  color: var(--brand-cream);
  text-decoration: none;
}

.topbar-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-lime);
  color: var(--brand-deep);
  font-size: 0.95rem;
  font-weight: 880;
  line-height: 1;
}

.topbar-wordmark {
  color: var(--brand-cream);
  font-size: 1.05rem;
  font-weight: 860;
  letter-spacing: -0.02em;
  line-height: 1;
}

.topbar-version {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: color-mix(in srgb, var(--brand-cream) 85%, transparent);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 0.08rem;
  min-width: 0;
}

.topbar-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 0.75rem;
  border-radius: 999px;
  color: color-mix(in srgb, var(--brand-cream) 86%, transparent);
  font-size: 0.84rem;
  font-weight: 620;
  white-space: nowrap;
  text-decoration: none;
}

.topbar-nav a:hover {
  background: rgba(255, 255, 255, 0.13);
  color: var(--brand-cream);
  text-decoration: none;
}

.topbar .spacer {
  flex: 1;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.topbar-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: color-mix(in srgb, var(--brand-cream) 86%, transparent);
  text-decoration: none;
}

.topbar-icon-link:hover {
  background: rgba(255, 255, 255, 0.13);
  color: var(--brand-cream);
  text-decoration: none;
}

.topbar-icon-link svg {
  display: block;
}

.topbar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 6px;
  font-weight: 760;
  font-size: 0.9rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.topbar-cta {
  min-height: 34px;
  padding: 0 1rem;
  border-radius: 999px;
  background: var(--brand-lime);
  color: var(--brand-deep) !important;
}

.topbar-cta:hover {
  background: #d6f765;
  color: var(--brand-deep);
  text-decoration: none;
}

.topbar .menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: var(--brand-cream);
  cursor: pointer;
}

.topbar .menu-btn:hover {
  background: rgba(255, 255, 255, 0.24);
  color: var(--brand-cream);
}

.topbar .menu-btn svg {
  display: block;
}

.doc-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  gap: clamp(1rem, 1.6vw, 1.75rem);
  width: min(100%, var(--layout-max));
  min-height: calc(100vh - var(--topbar-h));
  margin: 0 auto;
  padding: 0 clamp(0.75rem, 1.5vw, 1.5rem);
}

.doc-layout.has-toc {
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr) 260px;
}

.sidebar {
  width: var(--sidebar-w);
  height: calc(100dvh - var(--topbar-h) - 1.5rem);
  margin-top: 0.75rem;
  padding: 1.15rem 0.65rem 1.15rem 0;
  position: sticky;
  top: calc(var(--topbar-h) + 0.75rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.sidebar .group {
  margin-bottom: 1.05rem;
}

.sidebar .group-title {
  padding: 0 0.85rem;
  margin-bottom: 0.4rem;
  color: var(--link);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sidebar a {
  display: block;
  margin: 0.06rem 0;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
  text-decoration: none;
}

.sidebar a:hover {
  background: var(--accent-soft);
  color: var(--text);
  text-decoration: none;
}

.sidebar a.active {
  background: var(--brand-green);
  color: var(--brand-cream);
  font-weight: 720;
}

.sidebar a:focus-visible {
  outline-offset: 1px;
}

.sidebar .mobile-nav-links {
  display: none;
}

.doc-content {
  position: relative;
  z-index: 1;
  width: min(100%, var(--content-max));
  min-width: 0;
  margin: 0 auto;
  padding: 2.6rem clamp(1.5rem, 3vw, 2.6rem) 4.5rem;
}

.doc-content h1 {
  margin-bottom: 0.65rem;
  color: var(--text);
  font-size: 2.6rem;
  line-height: 1.04;
  font-weight: 860;
  letter-spacing: -0.035em;
}

.doc-content h2 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 2.8rem 0 0.7rem;
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1.25;
  font-weight: 820;
  letter-spacing: -0.02em;
}

.doc-content h2::before {
  content: "";
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 0 50% 50% 50%;
  background: var(--accent);
  transform: rotate(45deg);
}

.doc-content h3 {
  margin: 1.7rem 0 0.45rem;
  color: var(--text);
  font-size: 1.06rem;
  line-height: 1.35;
  font-weight: 760;
}

.doc-content p {
  max-width: 72ch;
  margin-bottom: 0.85rem;
  color: var(--text-2);
}

.doc-content ul,
.doc-content ol {
  max-width: 74ch;
  margin: 0.75rem 0 1.25rem 1.35rem;
  color: var(--text-2);
}

.doc-content li {
  margin-bottom: 0.4rem;
}

.doc-content li code {
  font-size: 0.83em;
}

.doc-content strong {
  color: var(--text);
  font-weight: 780;
}

.doc-content em {
  color: var(--text-2);
}

.doc-content pre,
.doc-content .table-wrap,
.doc-content table {
  max-width: none;
}

.lead {
  max-width: 60ch;
  margin-bottom: 1.35rem;
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.62;
}

.toc {
  display: none;
  align-self: start;
  position: sticky;
  top: calc(var(--topbar-h) + 0.75rem);
  margin-top: 0.75rem;
}

.toc-card {
  padding: 1.1rem 1.2rem;
  border-radius: 20px;
  background: var(--accent-soft);
}

.toc-title {
  margin: 0 0 0.6rem;
  color: var(--link);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.toc-nav a {
  display: block;
  padding: 0.24rem 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
  text-decoration: none;
}

.toc-nav a:hover,
.toc-nav a.active {
  color: var(--text);
  text-decoration: none;
}

.toc-nav a.active {
  color: var(--link);
  font-weight: 760;
}

.toc-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.table-wrap {
  margin: 1.35rem 0;
  overflow-x: auto;
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent) 4%, var(--surface));
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--text) 7%, transparent);
  text-align: left;
  vertical-align: top;
  font-size: 0.88rem;
}

tr:last-child td {
  border-bottom: 0;
}

th {
  color: var(--link);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

td code {
  border: 0;
  background: none;
  color: var(--link);
  padding: 0;
}

.callout {
  margin: 1.5rem 0;
  padding: 1.05rem 1.25rem;
  border-radius: 18px;
  background: var(--accent-soft);
}

.callout p,
p.callout {
  color: var(--text-2);
  font-size: 0.92rem;
}

.callout p {
  max-width: none;
  margin: 0;
}

p.callout {
  max-width: 74ch;
}

.quickstart-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1.25rem 0 1.65rem;
}

.quickstart-step {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: var(--accent-soft);
  color: inherit;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.quickstart-step:hover {
  background: color-mix(in srgb, var(--accent) 18%, var(--surface));
  color: inherit;
  text-decoration: none;
  transform: translateY(-2px);
}

.quickstart-step span {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--brand-green);
  color: var(--brand-cream);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 800;
}

.quickstart-step strong {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
}

.quickstart-step code {
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.page-nav a {
  display: block;
  padding: 1rem 1.25rem;
  border-radius: 18px;
  background: var(--accent-soft);
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 760;
  text-decoration: none;
}

.page-nav a:hover {
  background: color-mix(in srgb, var(--accent) 18%, var(--surface));
  color: var(--link);
  text-decoration: none;
}

.page-nav .label {
  margin-bottom: 0.18rem;
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 760;
  text-transform: uppercase;
}

/* ── Homepage ─────────────────────────────────────────────── */

.hm {
  --hm-max: 1180px;
  --hm-green: var(--brand-green);
  --hm-deep: var(--brand-deep);
  --hm-lime: var(--brand-lime);
  --hm-cream: var(--brand-cream);
  --hm-tint: color-mix(in srgb, var(--accent) 9%, var(--bg));
  --hm-card: color-mix(in srgb, var(--accent) 6%, var(--surface));
  --hm-card-h: color-mix(in srgb, var(--accent) 13%, var(--surface));
  --hm-glass: color-mix(in srgb, var(--surface) 70%, transparent);
  --hm-shadow: 0 30px 70px -28px rgba(4, 50, 25, 0.55);
  --hm-r: 22px;

  width: 100%;
  overflow-x: clip;
}

@media (prefers-color-scheme: dark) {
  .hm {
    --hm-tint: color-mix(in srgb, var(--accent) 7%, var(--bg));
    --hm-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9);
  }
}

.hm-wrap {
  position: relative;
  width: min(100% - 3rem, var(--hm-max));
  margin: 0 auto;
}

.hm h1,
.hm h2,
.hm h3 {
  color: var(--text);
  font-weight: 820;
}

.hm :not(pre) > code {
  border: 0;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  color: inherit;
}

/* Bands: full-bleed colour with wavy carton edges */

.hm-band {
  --band: var(--hm-tint);

  position: relative;
  margin: 80px 0;
  background: var(--band);
}

.hm-band-deep {
  --band: var(--hm-deep);
}

.hm-band-green {
  --band: var(--hm-green);
}

.hm-band::before,
.hm-band::after,
.hm-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--band);
  -webkit-mask: var(--brand-wave) center / 100% 100% no-repeat;
  mask: var(--brand-wave) center / 100% 100% no-repeat;
  pointer-events: none;
}

.hm-band::before {
  bottom: calc(100% - 1px);
}

.hm-band::after,
.hm-hero::after {
  top: calc(100% - 1px);
  transform: scale(-1, -1);
}

.hm-final.hm-band {
  margin-bottom: 0;
}

.hm-final.hm-band::after {
  display: none;
}

/* Fruit slice */

.hm-slice {
  position: absolute;
  top: 50%;
  right: -9rem;
  z-index: -1;
  width: 30rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: url("/lime-slice.svg") center / contain no-repeat;
  opacity: 0.95;
  translate: 0 -50%;
  animation: hm-spin 80s linear infinite;
}

.hm-slice-low {
  top: auto;
  right: auto;
  bottom: -13rem;
  left: -8rem;
  width: 26rem;
  opacity: 0.22;
  translate: none;
}

@keyframes hm-spin {
  to { rotate: 360deg; }
}

/* Hero */

.hm-hero {
  --band: var(--hm-green);

  position: relative;
  margin-bottom: 80px;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
  background: var(--band);
  color: var(--hm-cream);
  isolation: isolate;
}

.hm-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.hm-kicker,
.hm-label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hm-kicker {
  color: color-mix(in srgb, var(--hm-cream) 82%, transparent);
}

.hm-kicker::before {
  content: "";
  flex: none;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 0 50% 50% 50%;
  background: var(--hm-lime);
  transform: rotate(45deg);
}

.hm-label {
  color: var(--link);
}

.hm .hm-title {
  margin: 0 0 1.5rem;
  color: var(--hm-cream);
  font-size: clamp(2.6rem, 5.8vw, 4.8rem);
  font-weight: 880;
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.hm-title span {
  display: block;
  white-space: nowrap;
}

.hm-title-out {
  padding-bottom: 0.08em;
  color: var(--hm-lime);
}

.hm-lede {
  max-width: 34rem;
  margin: 0 0 2rem;
  color: color-mix(in srgb, var(--hm-cream) 90%, transparent);
  font-size: 1.16rem;
  line-height: 1.6;
}

.hm-hero :not(pre) > code {
  background: rgba(255, 255, 255, 0.16);
}

.hm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hm-btn {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 1.5rem;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 760;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hm-btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.hm-btn-primary {
  background: var(--hm-lime);
  box-shadow: 0 6px 0 var(--hm-deep);
  color: var(--hm-deep);
}

.hm-btn-primary:hover {
  background: #d6f765;
  box-shadow: 0 8px 0 var(--hm-deep);
  color: var(--hm-deep);
}

.hm-btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: var(--hm-cream);
}

.hm-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.24);
  color: var(--hm-cream);
}

.hm-runtimes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}

.hm-runtimes li {
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: color-mix(in srgb, var(--hm-cream) 88%, transparent);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Code windows */

.hm-window,
.hm-term {
  overflow: hidden;
  border-radius: var(--hm-r);
  background: var(--code-bg);
  box-shadow: var(--hm-shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.hm-window-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  height: 42px;
  padding: 0 1.1rem;
}

.hm-dots {
  display: inline-flex;
  gap: 6px;
}

.hm-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.hm-dots i:first-child {
  background: var(--hm-lime);
}

.hm-window-file {
  color: #9a9a9a;
  font-family: var(--mono);
  font-size: 0.76rem;
}

.hm-window pre,
.hm-window pre[class*="language-"],
.hm-final-cmd,
.hm-final-cmd[class*="language-"] {
  margin: 0;
  padding: 0.4rem 1.4rem 1.4rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.86rem;
  line-height: 1.7;
}

.hm-window pre code {
  padding-right: 0;
}

.hm-window .code-copy {
  opacity: 0;
  transition: opacity 0.15s ease;
}

.hm-window:hover .code-copy,
.hm-window .code-copy:focus-visible {
  opacity: 1;
}

.hm-server {
  position: relative;
  margin: 0;
}

.hm-server pre,
.hm-server pre[class*="language-"] {
  font-size: clamp(0.76rem, 1.1vw, 0.92rem);
}

.hm-server-note {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding: 0.35rem 1rem 0.35rem 0.35rem;
  border-radius: 999px;
  background: var(--hm-deep);
  color: var(--hm-cream);
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 650;
}

.hm-arrow {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--hm-lime);
  color: var(--hm-deep);
  font-family: var(--font);
  animation: hm-nudge 2.4s ease-in-out infinite;
}

@keyframes hm-nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Sections */

.hm-section {
  position: relative;
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.hm-head {
  max-width: 44rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
}

.hm-head h2,
.hm-final h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  font-weight: 860;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hm-head p:not(.hm-label) {
  color: var(--text-2);
  font-size: 1.08rem;
  line-height: 1.65;
}

.hm-link {
  display: inline-block;
  margin-top: 1.4rem;
  font-weight: 720;
}

/* Pipeline */

.hm-pipe {
  --hm-node: 2.8rem;

  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hm-pipe::before,
.hm-pipe::after {
  content: "";
  position: absolute;
  top: calc(var(--hm-node) / 2);
  border-radius: 999px;
}

.hm-pipe::before {
  left: calc(var(--hm-node) / 2);
  right: calc(var(--hm-node) / 2);
  height: 8px;
  margin-top: -4px;
  background: var(--accent);
}

.hm-pipe::after {
  left: calc(var(--hm-node) / 2);
  width: 16px;
  height: 16px;
  margin-top: -8px;
  background: var(--hm-lime);
  box-shadow: 0 0 0 4px var(--hm-green);
  animation: hm-drop 4.2s cubic-bezier(0.6, 0, 0.4, 1) infinite;
}

@keyframes hm-drop {
  from { left: calc(var(--hm-node) / 2); opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  to { left: calc(100% - var(--hm-node) / 2 - 16px); opacity: 0; }
}

.hm-pipe-stage {
  position: relative;
  min-width: 0;
}

.hm-pipe-index {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--hm-node);
  height: var(--hm-node);
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: 0 0 0 6px var(--bg);
  color: var(--link);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 800;
}

.hm-pipe-in .hm-pipe-index,
.hm-pipe-out .hm-pipe-index {
  background: var(--hm-green);
  color: var(--hm-cream);
}

.hm-pipe-stage strong {
  display: block;
  margin: 1.1rem 0 0.4rem;
  color: var(--text);
  font-size: 1.12rem;
  line-height: 1.25;
}

.hm-pipe-file strong {
  font-family: var(--mono);
  font-size: 1rem;
}

.hm-pipe-stage p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Three files */

.hm-steps {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.hm-step {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hm-step:nth-child(even) {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.hm-step:nth-child(even) .hm-step-copy {
  order: 2;
}

.hm-step-verb {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  color: var(--link);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hm-step-verb span {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--hm-green);
  color: var(--hm-cream);
  font-size: 0.9rem;
  letter-spacing: 0;
}

.hm-step h3 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.hm-step-copy p:last-child {
  max-width: 28rem;
  color: var(--text-2);
  font-size: 1.02rem;
  line-height: 1.65;
}

.hm-step-code {
  min-width: 0;
}

/* Numbers */

.hm-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.hm-stat {
  min-width: 0;
  padding: 1.8rem;
  border-radius: 28px;
  background: var(--hm-card);
}

.hm-stat-value {
  color: var(--text);
  font-size: clamp(3rem, 5.5vw, 4.4rem);
  font-weight: 880;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.hm-stat-value small {
  margin-left: 0.08em;
  color: var(--link);
  font-size: 0.45em;
  letter-spacing: -0.02em;
}

.hm-stat-label {
  margin: 0.7rem 0 0.9rem;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hm-stat p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.hm-stat-wide {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  grid-template-areas:
    "value bars"
    "label bars"
    ". note";
  column-gap: 3rem;
  align-items: start;
}

.hm-stat-wide .hm-stat-value { grid-area: value; }
.hm-stat-wide .hm-stat-label { grid-area: label; }
.hm-stat-wide .hm-bars { grid-area: bars; }
.hm-stat-wide p { grid-area: note; }

.hm-bars {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hm-bar {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr) 4.5rem;
  gap: 1rem;
  align-items: center;
  font-size: 0.86rem;
}

.hm-bar span {
  color: var(--text-2);
  font-weight: 600;
}

.hm-bar b {
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.84rem;
  text-align: right;
}

.hm-bar-track {
  height: 1rem;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 8%, transparent);
}

.hm-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transform-origin: left;
}

.hm-bar-base {
  background: color-mix(in srgb, var(--text) 25%, transparent);
}

@supports (animation-timeline: view()) {
  .hm-bar-fill {
    animation: hm-grow linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 35%;
  }
}

@keyframes hm-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.hm-footnote {
  margin-top: 1.5rem;
  color: var(--faint);
  font-size: 0.85rem;
}

/* Deep green band */

.hm-band-deep .hm-head h2,
.hm-band-deep .hm-stat-value,
.hm-band-deep .hm-bar b {
  color: var(--hm-cream);
}

.hm-band-deep .hm-label,
.hm-band-deep .hm-stat-value small,
.hm-band-deep .hm-footnote a {
  color: var(--hm-lime);
}

.hm-band-deep .hm-head p:not(.hm-label),
.hm-band-deep .hm-bar span {
  color: color-mix(in srgb, var(--hm-cream) 85%, transparent);
}

.hm-band-deep .hm-stat {
  background: rgba(255, 255, 255, 0.07);
}

.hm-band-deep .hm-stat-label {
  color: color-mix(in srgb, var(--hm-cream) 62%, transparent);
}

.hm-band-deep .hm-stat p,
.hm-band-deep .hm-footnote {
  color: color-mix(in srgb, var(--hm-cream) 74%, transparent);
}

.hm-band-deep :not(pre) > code {
  background: rgba(255, 255, 255, 0.12);
}

.hm-band-deep .hm-bar-track {
  background: rgba(255, 255, 255, 0.12);
}

.hm-band-deep .hm-bar-fill {
  background: var(--hm-lime);
}

.hm-band-deep .hm-bar-base {
  background: color-mix(in srgb, var(--hm-cream) 45%, transparent);
}

/* Comparison */

.hm-split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.hm-head-side {
  position: sticky;
  top: calc(var(--topbar-h) + 2rem);
  margin-bottom: 0;
}

.hm-compare {
  display: grid;
  gap: 0.5rem;
}

.hm-compare-row {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 1.25rem;
  padding: 1.05rem 1.4rem;
  border-radius: 18px;
  background: var(--hm-glass);
  font-size: 0.92rem;
  line-height: 1.5;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hm-compare-row:not(.hm-compare-headrow):hover {
  background: var(--surface);
  transform: translateX(4px);
}

.hm-compare-headrow {
  padding-block: 0.4rem;
  background: none;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hm-compare-headrow span:last-child {
  color: var(--link);
}

.hm-compare-row [role="rowheader"] {
  color: var(--text);
  font-weight: 700;
}

.hm-compare-them {
  color: var(--muted);
}

.hm-compare-us {
  position: relative;
  padding-left: 1.2rem;
  color: var(--text);
  font-weight: 560;
}

.hm-compare-us::before {
  content: "";
  position: absolute;
  top: 0.45em;
  left: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 0 50% 50% 50%;
  background: var(--accent);
  transform: rotate(45deg);
}

/* Developer experience */

.hm-dx {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 1.25rem;
  align-items: stretch;
}

.hm-term-body {
  padding: 0.4rem 1.4rem 1.5rem;
  color: #e6e6e6;
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.75;
}

.hm-term-body > div {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.hm-t-warn { color: #ffb547; }
.hm-t-dim { color: #8f8f8f; }
.hm-t-ok { color: #7ee787; }
.hm-t-cmd { color: #79c0ff; }

.hm-ai {
  display: grid;
  gap: 0.75rem;
}

.hm-ai-item {
  display: grid;
  gap: 0.35rem;
  padding: 1.2rem 1.4rem;
  border-radius: var(--hm-r);
  background: var(--hm-card);
  color: inherit;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hm-ai-item:hover {
  background: var(--hm-card-h);
  color: inherit;
  text-decoration: none;
  transform: translateX(4px);
}

.hm .hm-ai-item code {
  justify-self: start;
  color: var(--link);
  font-weight: 650;
}

.hm-ai-item span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Honesty */

.hm-honest {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.hm-honest > div {
  padding: 1.5rem;
  border-radius: var(--hm-r);
  background: var(--hm-glass);
}

.hm-honest strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--text);
  font-size: 1rem;
}

.hm-honest p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Final CTA */

.hm-final {
  position: relative;
  padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(5rem, 11vw, 9rem);
  overflow-x: clip;
  isolation: isolate;
  text-align: center;
}

.hm-final-inner {
  max-width: 64rem;
}

.hm .hm-final h2 {
  color: var(--hm-cream);
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
}

.hm-final-inner > p {
  max-width: 34rem;
  margin: 0 auto 2rem;
  color: color-mix(in srgb, var(--hm-cream) 88%, transparent);
  font-size: 1.1rem;
}

.hm-final-cmd,
.hm-final-cmd[class*="language-"] {
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  padding: 1.05rem 1.5rem;
  border-radius: 999px;
  background: var(--code-bg);
  box-shadow: var(--hm-shadow);
  text-align: left;
}

.hm-paths {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  text-align: left;
}

.hm-paths a {
  display: grid;
  gap: 0.2rem;
  padding: 1.1rem 1.25rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.11);
  color: var(--hm-cream);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hm-paths a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--hm-cream);
  text-decoration: none;
  transform: translateY(-3px);
}

.hm-paths b {
  font-size: 0.95rem;
}

.hm-paths b::after {
  content: " →";
  color: var(--hm-lime);
}

.hm-paths span {
  color: color-mix(in srgb, var(--hm-cream) 75%, transparent);
  font-size: 0.82rem;
}

@media (prefers-reduced-motion: reduce) {
  .hm-slice,
  .hm-pipe::after,
  .hm-arrow,
  .hm-bar-fill {
    animation: none;
  }

  .hm-btn,
  .hm-ai-item,
  .hm-paths a,
  .hm-compare-row {
    transition: none;
  }
}

@media (max-width: 980px) {
  .hm-hero-grid,
  .hm-split,
  .hm-dx {
    grid-template-columns: minmax(0, 1fr);
  }

  .hm-slice {
    top: auto;
    right: -8rem;
    bottom: -6rem;
    width: 22rem;
    translate: none;
  }

  .hm-head-side {
    position: static;
  }

  .hm-pipe {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
  }

  .hm-pipe::before,
  .hm-pipe::after {
    display: none;
  }

  .hm-pipe-stage:not(:last-child)::after {
    content: "";
    position: absolute;
    top: calc(var(--hm-node) / 2);
    left: calc(var(--hm-node) / 2 - 4px);
    width: 8px;
    height: calc(100% + 1.6rem);
    border-radius: 999px;
    background: var(--accent);
  }

  .hm-pipe-stage {
    display: grid;
    grid-template-columns: var(--hm-node) minmax(0, 1fr);
    column-gap: 1.1rem;
  }

  .hm-pipe-index {
    grid-row: span 2;
  }

  .hm-pipe-stage strong {
    margin-top: 0.5rem;
  }

  .hm-step,
  .hm-step:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
  }

  .hm-step:nth-child(even) .hm-step-copy {
    order: 0;
  }

  .hm-stats,
  .hm-honest {
    grid-template-columns: minmax(0, 1fr);
  }

  .hm-paths {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .hm-wrap {
    width: calc(100% - 2rem);
  }

  .hm-band {
    margin: 40px 0;
  }

  .hm-hero {
    margin-bottom: 40px;
  }

  .hm-band::before,
  .hm-band::after,
  .hm-hero::after {
    height: 40px;
  }

  .hm-stat-wide {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "value"
      "label"
      "bars"
      "note";
  }

  .hm-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.4rem 1rem;
  }

  .hm-bar-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .hm-compare-headrow {
    display: none;
  }

  .hm-compare-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.35rem;
    padding: 1rem 1.15rem;
  }

  .hm-compare-them::before {
    content: "Next.js · ";
    font-family: var(--mono);
    color: var(--faint);
    font-size: 0.78rem;
  }

  .hm-final-cmd,
  .hm-final-cmd[class*="language-"] {
    border-radius: var(--hm-r);
  }
}

@media (max-width: 560px) {
  .hm-window .code-copy {
    display: none;
  }
}

@media (max-width: 480px) {
  .hm-actions {
    flex-direction: column;
  }

  .hm-btn {
    justify-content: center;
  }

  .hm-paths {
    grid-template-columns: minmax(0, 1fr);
  }
}

.site-footer {
  position: relative;
  padding-top: 1.5rem;
  background: var(--brand-deep);
  color: color-mix(in srgb, var(--brand-cream) 72%, transparent);
}

.site-footer::before {
  content: "";
  position: absolute;
  bottom: calc(100% - 1px);
  left: 0;
  right: 0;
  height: 60px;
  background: var(--brand-deep);
  -webkit-mask: var(--brand-wave) center / 100% 100% no-repeat;
  mask: var(--brand-wave) center / 100% 100% no-repeat;
  pointer-events: none;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  width: min(100% - 3rem, var(--landing-max));
  margin: 0 auto;
  padding: 2rem 0 1.25rem;
}

.footer-inner strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--brand-cream);
  font-size: 1.2rem;
  font-weight: 860;
  letter-spacing: -0.02em;
}

.footer-inner p {
  max-width: 420px;
  color: color-mix(in srgb, var(--brand-cream) 72%, transparent);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem 1rem;
}

.footer-links a {
  color: color-mix(in srgb, var(--brand-cream) 88%, transparent);
  font-size: 0.86rem;
  font-weight: 700;
}

.footer-links a:hover,
.footer-credit a {
  color: var(--brand-lime);
}

.footer-credit {
  width: min(100% - 3rem, var(--landing-max));
  margin: 0 auto;
  padding: 0 0 1.75rem;
  color: color-mix(in srgb, var(--brand-cream) 55%, transparent);
  font-size: 0.8rem;
}

.platform-tabs {
  margin: 1.35rem 0;
  overflow: hidden;
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
}

.platform-tab-bar {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  padding: 0.5rem 0.5rem 0;
  -webkit-overflow-scrolling: touch;
}

.platform-tab-bar button {
  flex: none;
  padding: 0.45rem 0.95rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 720;
  cursor: pointer;
  white-space: nowrap;
}

.platform-tab-bar button:hover {
  color: var(--text);
}

.platform-tab-bar button:focus-visible {
  outline-offset: -2px;
}

.platform-tab-bar button[aria-selected="true"] {
  background: var(--brand-green);
  color: var(--brand-cream);
}

.platform-panel {
  display: none;
  padding: 0.95rem 1rem 1rem;
}

.platform-panel[data-active] {
  display: block;
}

.platform-panel pre {
  margin: 0.5rem 0;
}

.platform-panel p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

pre[class*="language-"],
code[class*="language-"] {
  background: none;
  text-shadow: none;
}

pre[class*="language-"] {
  border: 0;
  border-radius: 16px;
  background: var(--code-bg);
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #8a8a8a;
  font-style: italic;
}

.token.punctuation,
.token.operator,
.token.entity,
.token.url {
  color: #c9c9c9;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol {
  color: #ffbf73;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin {
  color: #8cd98c;
}

.token.atrule,
.token.attr-value,
.token.keyword {
  color: #8ac7ff;
}

.token.function,
.token.class-name {
  color: #ff9ab3;
}

.token.regex,
.token.important,
.token.variable {
  color: #ffa35f;
}

.token.tag .token.punctuation {
  color: #c9c9c9;
}

.token.tag .token.attr-name {
  color: #8ac7ff;
}

.token.tag .token.attr-value {
  color: #8cd98c;
}

.token.tag .token.tag {
  color: #ff9ab3;
}

@media (max-width: 1400px) {
  .doc-layout.has-toc {
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  }
}

@media (min-width: 1401px) {
  .doc-layout.has-toc .toc {
    display: block;
  }
}

@media (max-width: 1060px) {
  .topbar-nav a {
    padding: 0 0.48rem;
    font-size: 0.8rem;
  }

  .doc-layout,
  .doc-layout.has-toc {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .sidebar {
    width: 220px;
  }
}

@media (max-width: 820px) {
  .topbar {
    padding: 0 0.85rem;
  }

  .topbar-nav,
  .topbar-actions,
  .topbar-version {
    display: none;
  }

  .topbar .spacer {
    flex: 1;
  }

  .topbar .menu-btn {
    display: inline-flex;
  }

  .doc-layout,
  .doc-layout.has-toc {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .sidebar {
    display: none;
    position: fixed;
    left: 0;
    top: var(--topbar-h);
    z-index: 40;
    width: min(86vw, 320px);
    height: calc(100dvh - var(--topbar-h));
    margin-top: 0;
    padding-left: 0.65rem;
    border: 0;
    border-radius: 0 24px 24px 0;
    background: var(--bg);
    box-shadow: 16px 0 40px rgba(4, 50, 25, 0.25);
  }

  .sidebar.open {
    display: block;
  }

  .sidebar .mobile-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.75rem 0.65rem 0.85rem;
    margin-bottom: 0.8rem;
  }

  .sidebar .mobile-nav-links a {
    margin: 0;
    padding: 0.38rem 0.55rem;
    background: var(--accent-soft);
    color: var(--text);
    font-size: 0.84rem;
    font-weight: 760;
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: var(--topbar-h) 0 0;
    z-index: 35;
    background: rgba(0, 0, 0, 0.46);
  }

  .sidebar-overlay.open {
    display: block;
  }

  .doc-content {
    max-width: 100%;
    padding: 1.55rem 1rem 3rem;
  }

  .doc-content h1 {
    font-size: 2.1rem;
  }

  .doc-content h2 {
    margin-top: 2.15rem;
  }

  .quickstart-steps {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .quickstart-step {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    padding: 0.72rem 0.78rem;
  }

  .quickstart-step strong,
  .quickstart-step code {
    grid-column: 2;
  }

  .quickstart-step span {
    grid-row: 1 / span 2;
  }

  .toc {
    display: none !important;
  }

  .footer-inner {
    flex-direction: column;
    width: calc(100% - 2rem);
    gap: 1rem;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-credit {
    width: calc(100% - 2rem);
  }
}

@media (max-width: 560px) {

  .doc-content h1 {
    font-size: 1.9rem;
  }

  .doc-content h2 {
    font-size: 1.3rem;
  }

  pre,
  pre[class*="language-"] {
    display: grid;
    gap: 0.5rem;
    padding: 0.82rem;
    font-size: 0.75rem;
    overflow-x: hidden;
    white-space: pre-wrap;
  }

  pre code {
    padding: 0;
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
  }

  pre code[class*="language-"],
  pre code[class*="language-"] * {
    overflow-wrap: anywhere;
    white-space: pre-wrap !important;
  }

  .code-copy {
    position: sticky;
    top: auto;
    right: 0;
    justify-self: end;
    order: -1;
    min-height: 26px;
    font-size: 0.68rem;
  }

  th,
  td {
    padding: 0.55rem;
    font-size: 0.82rem;
  }

  .page-nav {
    flex-direction: column;
  }
}

@media print {
  .topbar,
  .sidebar,
  .page-nav,
  .toc,
  .site-footer {
    display: none;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  a {
    color: #000000;
    text-decoration: underline;
  }

  .doc-layout {
    display: block;
  }

  .doc-content {
    max-width: 100%;
    padding: 0;
  }

  pre {
    border: 1px solid #cccccc;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
