@font-face {
  font-family: Inter;
  src: url("/_astro/Inter-Regular.7fSjz3xL.otf") format("opentype");
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/_astro/Inter-SemiBold.CpcUY_gG.otf") format("opentype");
  font-weight: 550 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f7f7f9;
  --panel: #fff;
  --ink: #24252c;
  --muted: #636978;
  --line: #dce0eb;
  --accent: #4054b5;
  --soft: #edf0fb;
  --mono: ui-monospace, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #181b24;
    --panel: #1f2431;
    --ink: #eef0f8;
    --muted: #adb7cb;
    --line: #353e53;
    --accent: #a8b9ff;
    --soft: #263253;
  }
}

*, *::before, *::after { box-sizing: border-box; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 400 1rem/1.6 Inter, system-ui, sans-serif;
}
a { color: var(--accent); text-underline-offset: .19em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
img { display: block; }
.docs-shell { width: min(1172px, calc(100% - 3rem)); margin-inline: auto; }
.skip {
  position: fixed;
  z-index: 2;
  top: .6rem;
  left: .6rem;
  padding: .45rem .8rem;
  background: var(--panel);
  transform: translateY(-180%);
}
.skip:focus { transform: none; }
.docs-header { border-bottom: 1px solid var(--line); }
.header-row { min-height: 4.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .48rem;
  color: var(--ink);
  white-space: nowrap;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -.035em;
}
.header-row nav { display: flex; align-items: center; gap: clamp(.5rem, 3vw, 1.7rem); }
.header-row nav > a:first-child { font-weight: 600; font-size: .9rem; text-decoration: none; }
.button {
  display: inline-grid;
  place-items: center;
  min-height: 2.5rem;
  padding: .4rem .75rem;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: .875rem;
  line-height: 1.25;
  text-decoration: none;
}
.button:hover { background: var(--soft); }
.catalog, .guide-layout { padding-block: clamp(2.65rem, 7vw, 5.6rem); }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 600; letter-spacing: -.064em; line-height: 1.045; text-wrap: balance; }
.lead { max-width: 54ch; margin-top: 1rem; color: var(--muted); font-size: clamp(1rem, 2vw, 1.15rem); }
.catalog-group { margin-top: clamp(2rem, 6vw, 3.8rem); }
.catalog-group h2, .guide-body h2 { font-weight: 600; font-size: clamp(1.35rem, 2.7vw, 1.8rem); line-height: 1.2; letter-spacing: -.04em; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.catalog-grid a {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  height: 100%;
  padding: 1rem 1.05rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
}
.catalog-grid a:hover { border-color: var(--accent); }
.catalog-grid strong { font-weight: 600; letter-spacing: -.024em; }
.catalog-grid span { color: var(--muted); font-size: .89rem; line-height: 1.48; }
.guide-layout { display: grid; grid-template-columns: 13rem minmax(0, 47rem); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.guide-body { grid-column: 2; grid-row: 1; min-width: 0; }
.guide-nav { grid-column: 1; grid-row: 1; padding-inline-end: 1.15rem; border-inline-end: 1px solid var(--line); }
.guide-nav .all-guides { font-weight: 600; }
.guide-nav section { margin-top: 1.2rem; }
.guide-nav h2 { font-size: .86rem; font-weight: 600; line-height: 1.35; }
.guide-nav ul { padding: 0; list-style: none; margin: .27rem 0 0; }
.guide-nav a { display: block; padding: .2rem 0; color: var(--muted); font-size: .85rem; text-decoration: none; }
.guide-nav a:hover, .guide-nav a[aria-current="page"] { color: var(--accent); }
.guide-nav a[aria-current="page"] { font-weight: 600; }
.crumb { display: flex; align-items: baseline; flex-wrap: wrap; gap: .3rem .8rem; margin-bottom: .85rem; color: var(--muted); font-size: .85rem; }
.crumb span { border-inline-start: 1px solid var(--line); padding-inline-start: .8rem; }
.guide-body > section { margin-top: clamp(1.65rem, 4.5vw, 2.6rem); }
.steps { margin-block: .95rem 0; padding-inline-start: 1.45rem; }
.steps li { padding-inline-start: .3rem; }
.steps li + li { margin-top: .85rem; }
.steps li::marker { color: var(--accent); }
.steps h3 { font-weight: 600; line-height: 1.4; font-size: 1rem; }
.steps p, .commands p { margin-top: .28rem; color: var(--muted); }
pre {
  max-width: 100%;
  margin: .8rem 0 0;
  padding: .9rem 1rem;
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 6px;
  font: .88rem/1.6 var(--mono);
  tab-size: 2;
}
pre code { font: inherit; }
.outcome { padding: .9rem 1.05rem; background: var(--soft); border-radius: 6px; }
.outcome h2 { font-size: 1.18rem; }
.outcome p { margin-top: .35rem; }
.reference { margin-top: 1rem; font-size: .88rem; }
.guide-end { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.3rem; }
.docs-footer { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-block: 1.2rem; font-size: .88rem; }

@media (max-width: 760px) {
  .docs-shell { width: calc(100% - 2rem); }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .guide-body, .guide-nav { grid-column: 1; grid-row: auto; }
  .guide-nav { border: 0; border-top: 1px solid var(--line); padding: .8rem 0 0; }
}

@media (max-width: 460px) {
  .header-row { gap: .4rem; }
  .brand img { width: 23px; height: 23px; }
  .header-contact { padding-inline: .38rem; font-size: .73rem; }
  .catalog-grid { grid-template-columns: minmax(0, 1fr); }
}
