@charset "UTF-8";

.setup-wrap {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
}

.setup-page .topbar {
  height: auto;
  min-height: 88px;
  gap: 24px;
  padding-block: 20px;
}

.setup-page .topbar nav {
  flex-wrap: wrap;
  gap: 14px 24px;
}

.setup-hero {
  padding-block: 64px 48px;
  max-width: 900px;
}

.setup-hero h1 {
  margin-block: 20px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.06;
  letter-spacing: -2px;
}

.setup-lead {
  max-width: 66ch;
  font-size: 20px;
}

.setup-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 52px;
  align-items: start;
}

.setup-toc {
  position: sticky;
  top: 24px;
  padding-block: 16px;
  border-top: 2px solid var(--ink);
  font-size: 14px;
}

.setup-toc ol {
  margin: 16px 0 0;
  padding-left: 22px;
}

.setup-toc li {
  margin-block: 12px;
  line-height: 1.5;
}

.setup-toc a,
.setup-content a,
.setup-callout a,
.setup-footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.setup-content {
  min-width: 0;
  padding-bottom: 48px;
}

.setup-content section {
  margin-bottom: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.setup-content h2 {
  margin-block: 14px 24px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.2;
}

.setup-content h3 {
  margin-block: 28px 12px;
  font-size: 21px;
  line-height: 1.35;
}

.setup-content p,
.setup-content ul,
.setup-content ol {
  margin-block: 16px;
  max-width: 76ch;
}

.setup-content li {
  margin-block: 10px;
  line-height: 1.65;
}

.setup-callout {
  margin-block: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--mint);
}

.setup-callout.caution {
  border-left: 5px solid var(--accent);
  background: var(--peach);
}

.setup-callout h2,
.setup-callout h3 {
  margin: 0 0 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  line-height: 1.4;
}

.setup-callout p {
  margin-block: 12px;
}

.setup-callout a {
  display: inline-block;
  margin-top: 8px;
}

.setup-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-block: 24px;
}

.setup-cards article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.setup-cards h3 {
  margin-top: 0;
}

.setup-page code {
  font-family: "Courier New", monospace;
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

.setup-page pre {
  max-width: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  overflow-x: auto;
  line-height: 1.6;
  tab-size: 4;
  user-select: text;
}

.setup-page pre code {
  display: block;
  white-space: pre;
  overflow-wrap: normal;
  font-size: 13px;
}

.setup-table {
  width: 100%;
  margin-block: 24px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.setup-table:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.setup-table table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
  line-height: 1.6;
}

.setup-table th,
.setup-table td {
  min-width: 140px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.setup-table thead {
  background: var(--mint);
}

.setup-table tr:last-child th,
.setup-table tr:last-child td {
  border-bottom: 0;
}

.setup-workflow {
  padding-left: 28px;
}

.setup-workflow > li {
  padding-left: 8px;
  margin-block: 28px;
}

.setup-workflow h3 {
  margin-top: 0;
}

.setup-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding-block: 32px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

@media (max-width: 950px) {
  .setup-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .setup-toc {
    position: static;
  }

  .setup-toc ol {
    columns: 2;
    column-gap: 32px;
  }

  .setup-toc li {
    break-inside: avoid;
  }
}

@media (max-width: 640px) {
  .setup-wrap {
    width: calc(100% - 32px);
  }

  .setup-page .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px 16px;
  }

  .setup-page .topbar nav a {
    display: inline-block;
    padding-block: 8px;
  }

  .setup-hero {
    padding-top: 36px;
  }

  .setup-hero h1 {
    letter-spacing: -1px;
  }

  .setup-lead {
    font-size: 18px;
  }

  .setup-toc ol {
    columns: 1;
  }

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

  .setup-cards article,
  .setup-callout {
    padding: 18px;
  }

  .setup-page pre {
    padding: 14px;
  }
}

@media print {
  .setup-toc,
  .setup-page .topbar,
  .setup-page .skip-link {
    display: none;
  }

  .setup-wrap {
    width: 100%;
  }

  .setup-layout {
    display: block;
  }

  .setup-page pre,
  .setup-page pre code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  .setup-table {
    overflow: visible;
  }
}

.setup-page pre:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
