:root {
  --bg: #f7f6f2;
  --bg-panel: #ffffff;
  --bg-panel-alt: #eef4fb;
  --bg-topbar: #ffffff;
  --bg-code: #f4f8fc;
  --ink: #1d2a34;
  --ink-soft: #526574;
  --ink-inverse: #ffffff;
  --line: #d6dee7;
  --line-strong: #b7c4d0;
  --accent: #1c6aa3;
  --accent-strong: #14527f;
  --accent-warm: #c88a2c;
  --success: #14532d;
  --shadow-soft: 0 12px 28px rgba(28, 54, 78, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(233, 193, 92, 0.16), transparent 26%),
    linear-gradient(180deg, #fdfcf8 0%, var(--bg) 100%);
  font-family: "Segoe UI", "Gill Sans", "Trebuchet MS", sans-serif;
}

img {
  max-width: 100%;
  display: block;
}

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

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

a:hover {
  text-decoration: underline;
}

.shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(249, 251, 253, 0.96) 100%);
  box-shadow: 0 8px 24px rgba(39, 63, 87, 0.08);
}

.topbar-inner,
.page {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  min-width: 0;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, #2a79b3 0%, #1c6aa3 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.06em;
  border: 1px solid rgba(28, 106, 163, 0.22);
}

.brand-logo {
  width: 52px;
  height: auto;
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-eyebrow {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-warm);
}

.brand-title {
  font-size: 14px;
  font-weight: 700;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
}

.nav a:hover {
  text-decoration: none;
  color: var(--accent-strong);
  border-color: var(--line);
  background: #f7fafc;
}

.page {
  padding: 18px 0 56px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.03em;
}

.breadcrumbs a {
  color: var(--ink-soft);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 14px 18px;
  background:
    linear-gradient(135deg, #ffffff 0%, #f5f9fd 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background:
    linear-gradient(180deg, var(--accent) 0%, var(--accent-warm) 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-warm);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero p {
  max-width: 800px;
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.56;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 360px);
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.hero-body,
.hero-side {
  min-width: 0;
}

.hero-side .data-grid {
  margin-top: 2px;
}

.hero-side .data-grid-row {
  padding: 8px 0;
}

.hero-side-title {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.button:hover {
  text-decoration: none;
  border-color: var(--accent);
  color: var(--accent-strong);
}

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

.button--primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #ffffff;
}

.button--accent {
  border-color: var(--accent-warm);
  background: var(--accent-warm);
  color: #ffffff;
}

.button--accent:hover {
  background: #7d5317;
  border-color: #7d5317;
  color: #ffffff;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid #d6dce4;
  background: #f8fbfe;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-header {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 360px);
  gap: 16px;
  align-items: start;
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.product-header-main,
.product-header-side {
  min-width: 0;
}

.product-header-main h1 {
  margin: 0;
  font-size: clamp(28px, 3.1vw, 44px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.product-header-main p {
  margin: 8px 0 0;
  max-width: 760px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

.product-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.product-header-side .data-grid {
  margin-top: 0;
}

.product-header-side .data-grid-row {
  padding: 8px 0;
}

.section {
  margin-top: 16px;
}

.section-heading {
  margin: 0 0 10px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.section-lede {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid--cards {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid--stats {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.card {
  padding: 16px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  min-width: 0;
}

.card h2,
.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.card--compact {
  padding: 14px 16px;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.metric {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent-strong);
  letter-spacing: -0.03em;
}

.metric-label {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
}

.link-list,
.detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list li + li,
.detail-list li + li {
  margin-top: 10px;
}

.link-list a {
  font-weight: 600;
}

.detail-list strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

.detail-list span {
  color: var(--ink-soft);
  line-height: 1.6;
}

.inline-code {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid #dbe4ec;
  background: #f4f8fc;
  color: var(--ink);
  font-family: "Cascadia Mono", "Consolas", "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
  white-space: nowrap;
  word-break: normal;
}

.code-block {
  display: block;
  margin: 0;
  width: 100%;
  max-width: 100%;
  padding: 14px 16px;
  background: var(--bg-code);
  color: var(--ink);
  overflow-x: auto;
  font-family: "Cascadia Mono", "Consolas", "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre;
  word-break: normal;
  border-left: 4px solid var(--accent);
  border-top: 1px solid #dbe4ec;
  border-right: 1px solid #dbe4ec;
  border-bottom: 1px solid #dbe4ec;
}

.split {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.split > * {
  min-width: 0;
}

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

.split--2-1 {
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
}

.directory {
  border-top: 1px solid var(--line);
  min-width: 0;
}

.directory-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.directory-row:hover {
  text-decoration: none;
  background: rgba(238, 244, 251, 0.45);
}

.directory-name {
  color: var(--ink);
  font-weight: 700;
}

.directory-summary,
.directory-meta {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.directory-summary > :first-child,
.data-grid-value > :first-child,
.option-item-description > :first-child,
.command-note > :first-child,
.prose > :first-child,
.callout > :first-child {
  margin-top: 0;
}

.directory-summary > :last-child,
.data-grid-value > :last-child,
.option-item-description > :last-child,
.command-note > :last-child,
.prose > :last-child,
.callout > :last-child {
  margin-bottom: 0;
}

.directory-tag {
  padding: 4px 8px;
  border: 1px solid var(--line);
  background: #f8fbfe;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stack {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.stack > * {
  min-width: 0;
}

.meta-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.meta-list-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.meta-list-label {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  font-family: "Cascadia Mono", "Consolas", "Liberation Mono", monospace;
}

.meta-list-value {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}

.option-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}

.option-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.option-item-command {
  display: block;
  overflow-x: auto;
  max-width: 100%;
  padding: 0 0 6px;
  color: var(--ink);
  font-family: "Cascadia Mono", "Consolas", "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre;
}

.option-item-command code {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid #dbe4ec;
  background: #f4f8fc;
  white-space: nowrap;
}

.option-item-description {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.58;
}

.data-grid {
  border-top: 1px solid var(--line);
}

.data-grid-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.data-grid-label {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.data-grid-value {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}

.data-grid-value a {
  font-weight: 600;
}

.command {
  border: 1px solid var(--line);
  background: var(--bg-panel-alt);
  min-width: 0;
  overflow: hidden;
}

.command + .command {
  margin-top: 12px;
}

.command-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  min-width: 0;
}

.command-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  min-width: 0;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 34px;
  min-width: 34px;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink);
  font-size: 0;
  font-weight: 700;
  cursor: pointer;
}

.copy-button:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.copy-button-icon {
  font-size: 16px;
  line-height: 1;
}

.copy-button.is-copied {
  background: #effaf2;
  color: var(--success);
  border-color: rgba(20, 83, 45, 0.35);
}

.copy-button.is-copied .copy-button-icon {
  color: var(--success);
}

.command-note {
  padding: 10px 14px 12px;
  border-top: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.callout {
  padding: 14px 16px;
  border: 1px solid #e3d7bd;
  background: #fff7e9;
  color: var(--ink);
}

.callout strong {
  color: #6d4b14;
}

.empty-state {
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.prose {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  margin: 18px 0 10px;
  color: var(--ink);
  line-height: 1.2;
}

.prose h1 {
  font-size: 24px;
}

.prose h2 {
  font-size: 20px;
}

.prose h3 {
  font-size: 17px;
}

.prose ul,
.prose ol {
  margin: 10px 0 10px 22px;
  padding: 0;
}

.prose li + li {
  margin-top: 6px;
}

.prose code,
.callout code,
.command-note code,
.option-item-description code,
.data-grid-value code,
.directory-summary code {
  padding: 2px 6px;
  border: 1px solid #dbe4ec;
  background: #f4f8fc;
  color: var(--ink);
  font-family: "Cascadia Mono", "Consolas", "Liberation Mono", monospace;
  font-size: 12px;
  white-space: nowrap;
}

.footer {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
}

.footer-sep {
  margin: 0 8px;
  color: #98a7b6;
}

@media (max-width: 760px) {
  .topbar-inner {
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .page {
    width: min(100% - 24px, 1160px);
    padding-top: 22px;
  }

  .hero {
    padding: 16px;
  }

  .hero p {
    font-size: 16px;
  }

  .nav {
    width: 100%;
  }

  .product-header,
  .hero-grid,
  .split--2,
  .split--2-1,
  .directory-row,
  .meta-list-row,
  .data-grid-row {
    grid-template-columns: 1fr;
  }

  .directory-tag {
    justify-self: start;
  }

  .command-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
