.guide-site {
  --guide-ink: #183443;
  --guide-muted: #576d7a;
  background: #fff;
  color: var(--guide-ink);
  font-size: 15px;
  line-height: 1.6;
}
.guide-site a {
  text-underline-offset: 4px;
}
.guide-site [hidden] {
  display: none !important;
}
.guide-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.guide-skip {
  position: fixed;
  top: -100px;
  left: 20px;
  padding: 10px 20px;
  background: white;
  z-index: 20;
}
.guide-skip:focus {
  top: 12px;
}
.guide-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 84px;
  padding: 18px 32px;
  gap: 24px;
}
.guide-header .brand {
  width: 205px;
  flex-shrink: 0;
}
.guide-service {
  padding-left: 24px;
  border-left: 1px solid var(--line);
  text-decoration: none;
  color: var(--guide-ink);
  line-height: 1.35;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.guide-service span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--guide-muted);
}
.guide-search-wrap {
  position: relative;
  width: 340px;
  margin-left: auto;
}
.guide-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 10px;
  background: #f7f9fa;
  gap: 8px;
}
.guide-search > span {
  font:
    26px Arial,
    sans-serif;
  color: var(--blue);
}
.guide-search input {
  background: transparent;
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 12px 0;
  color: var(--guide-ink);
  font-size: 13px;
}
.guide-search button {
  background: white;
  border: 1px solid var(--line);
  padding: 0 6px;
  font-size: 15px;
}
.guide-search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(480px, calc(100vw - 32px));
  max-height: 65vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 48px #19394926;
  padding: 12px;
}
.guide-search-results p {
  margin: 4px 8px 10px;
  font-size: 12px;
  color: var(--guide-muted);
}
.guide-search-results ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.guide-search-results a {
  display: block;
  border-radius: 6px;
  padding: 10px;
  text-decoration: none;
}
.guide-search-results a:hover {
  background: #edf4f8;
}
.guide-search-results strong,
.guide-search-results span {
  display: block;
}
.guide-search-results span {
  font-size: 12px;
  color: var(--guide-muted);
}
.guide-lab-link {
  white-space: nowrap;
  font-size: 13px;
  text-decoration: none;
  font-weight: 700;
}
.guide-lab-link span {
  margin-left: 12px;
}
.guide-shell {
  display: flex;
  max-width: 1600px;
  margin: auto;
  gap: 42px;
  padding: 36px 32px 72px;
  align-items: flex-start;
}
.guide-sidebar {
  position: sticky;
  top: 115px;
  width: 210px;
  flex-shrink: 0;
  max-height: calc(100vh - 140px);
  overflow: auto;
  scrollbar-width: thin;
  padding-right: 12px;
}
.guide-sidebar > summary {
  display: none;
}
.guide-site nav {
  display: block;
  margin: 0;
}
.guide-nav-home,
.guide-nav-group a {
  display: block;
  text-decoration: none;
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 6px;
  color: var(--guide-muted);
  line-height: 1.5;
}
.guide-nav-group a:hover,
.guide-nav-home:hover {
  background: #f3f7f9;
  color: var(--blue);
}
.guide-sidebar [aria-current="page"] {
  background: #eaf2f7;
  color: #255f81;
  font-weight: 700;
}
.guide-nav-group {
  margin-top: 22px;
}
.guide-nav-group > p {
  margin: 0 12px 7px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b7d86;
  font-weight: 700;
}
.guide-nav-group ul,
.guide-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.guide-sidebar-meta {
  margin: 28px 12px 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--guide-muted);
  font-size: 11px;
}
.guide-main {
  flex: 1;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: 70vh;
}
.guide-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  padding: 40px;
  border: 1px solid #d4e3eb;
  border-radius: 18px;
  background: linear-gradient(125deg, #edf4f8, #f8fafb 72%);
}
.guide-eyebrow {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--blue);
}
.guide-open-label {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  font-size: 11px;
  color: #326551;
  margin: 0 0 16px;
}
.guide-open-label > span {
  font-size: 8px;
}
.guide-hero h1 {
  font-size: clamp(30px, 2.8vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.guide-hero-copy > p:not(.guide-eyebrow) {
  max-width: 440px;
  color: var(--guide-muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 28px;
}
.guide-primary-link {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 11px 18px;
  background: var(--blue);
  border-radius: 7px;
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}
.guide-primary-link:hover {
  background: #2d617f;
}
.guide-secondary-link {
  display: inline-block;
  margin: 14px 0 0 16px;
  font-size: 12px;
}
.guide-hero-terminal {
  border: 1px solid #25495d;
  align-self: center;
  min-width: 0;
  background: #183443;
  color: #e3f0f7;
  border-radius: 12px;
  box-shadow: 0 12px 28px #1633441a;
}
.guide-terminal-bar {
  border-bottom: 1px solid #ffffff24;
  padding: 13px 18px;
  display: flex;
  justify-content: space-between;
  color: #b7cbd7;
  font-size: 10px;
}
.guide-terminal-bar > span:first-child {
  letter-spacing: 4px;
  color: #7796a9;
}
.guide-terminal-lines {
  padding: 5px 22px;
}
.guide-terminal-lines p {
  margin: 20px 0;
}
.guide-terminal-lines span {
  display: block;
  font: 11px/1.6 monospace;
  color: #a6c7d8;
  margin-bottom: 5px;
}
.guide-terminal-lines code {
  font: 12px/1.7 monospace;
  overflow-wrap: anywhere;
}
.guide-terminal-note {
  margin: 0;
  padding: 10px 22px 18px;
  color: #bdd1dc;
  font-size: 10px;
}
.guide-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 24px 0 48px;
  border-block: 1px solid var(--line);
}
.guide-facts > span {
  padding: 20px 12px;
  color: var(--guide-muted);
  font-size: 12px;
}
.guide-facts strong {
  font-size: 22px;
  margin-right: 8px;
  color: var(--guide-ink);
}
.guide-catalog-section {
  margin-bottom: 42px;
  scroll-margin-top: 110px;
}
.guide-section-heading {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: baseline;
}
.guide-section-number {
  font: 12px monospace;
  color: var(--blue);
}
.guide-section-heading h2 {
  font-size: 24px;
  margin: 0 0 5px;
  letter-spacing: -0.02em;
}
.guide-section-heading p {
  margin: 0;
  color: var(--guide-muted);
  font-size: 13px;
}
.guide-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.guide-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  text-decoration: none;
  color: var(--guide-ink);
  transition: border-color 0.15s;
  min-width: 0;
}
.guide-card:hover {
  border-color: var(--blue);
  background: #f8fbfc;
}
.guide-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}
.guide-product-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  border: 1px solid #e3eaee;
  background: white;
  padding: 8px;
}
.guide-product-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.guide-product-logo-atlas,
.guide-product-logo-aider {
  width: 100px;
  background: #183443;
  border-color: #183443;
}
.guide-product-logo-opencode {
  width: 90px;
}
.guide-lettermark {
  font-size: 26px;
  line-height: 1;
  color: var(--blue);
}
.guide-card-arrow {
  color: var(--guide-muted);
  font-size: 18px;
}
.guide-card h3 {
  font-size: 19px;
  line-height: 1.2;
  margin: 0 0 10px;
}
.guide-card p {
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--guide-muted);
}
.guide-card-version {
  align-self: flex-start;
  margin-top: auto;
  border: 1px solid #e1e9ee;
  background: #f5f8fa;
  border-radius: 5px;
  padding: 3px 7px;
  font-size: 10px;
  color: #466477;
  overflow-wrap: anywhere;
}
.guide-source-note {
  font-size: 12px;
  padding: 20px 24px;
  background: #f4f8fa;
  border-radius: 10px;
  color: var(--guide-muted);
}
.guide-source-note a {
  display: inline-block;
  margin-left: 5px;
}
.guide-breadcrumb {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--guide-muted);
  margin: 5px 0 32px;
}
.guide-breadcrumb a {
  text-decoration: none;
}
.guide-article {
  max-width: 820px;
}
.guide-article-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
  margin-bottom: 36px;
}
.guide-article-header h1 {
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
}
.guide-article-logo {
  float: right;
  margin: 0 0 16px 20px;
  width: 76px;
  height: 76px;
  padding: 12px;
}
.guide-article-logo.guide-product-logo-atlas,
.guide-article-logo.guide-product-logo-aider,
.guide-article-logo.guide-product-logo-opencode {
  width: 120px;
}
.guide-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--guide-muted);
  margin: 0 0 20px;
}
.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  clear: both;
}
.guide-meta span {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f7fafb;
  padding: 3px 8px;
  color: var(--guide-muted);
  font-size: 11px;
}
.guide-article section {
  margin-bottom: 36px;
  scroll-margin-top: 112px;
}
.guide-article h2 {
  margin: 0 0 16px;
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.guide-article p {
  line-height: 1.75;
  margin: 0 0 16px;
}
.guide-article li {
  margin-bottom: 10px;
}
.guide-article :not(pre) > code,
.guide-source-note code {
  padding: 2px 5px;
  border-radius: 4px;
  background: #eef3f6;
  font-size: 0.88em;
  overflow-wrap: anywhere;
}
.guide-article kbd {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f7f9fa;
  font-size: 12px;
}
.guide-command {
  border: 1px solid #d2e0e9;
  border-radius: 10px;
  margin: 16px 0;
  overflow: hidden;
  background: #f5f8fa;
}
.guide-command figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
  gap: 10px;
  padding: 6px 16px;
  border-bottom: 1px solid #e1e9ee;
  font-size: 10px;
  color: var(--guide-muted);
}
.guide-command button {
  font-size: 10px;
  padding: 4px 8px;
  background: white;
}
.guide-command pre {
  margin: 0;
  padding: 16px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.guide-callout {
  border-left: 3px solid var(--blue);
  background: #edf4f8;
  border-radius: 0 8px 8px 0;
  padding: 18px 22px;
  margin: 20px 0;
  font-size: 14px;
}
.guide-callout strong {
  display: block;
  margin-bottom: 7px;
}
.guide-callout p {
  margin: 0;
}
.guide-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.guide-flow > div {
  padding: 20px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #f7fafb;
}
.guide-flow span {
  display: block;
  font: 11px monospace;
  color: var(--blue);
  margin-bottom: 14px;
}
.guide-flow strong {
  font-size: 18px;
}
.guide-flow p {
  margin: 8px 0 0;
  font-size: 12px;
}
.guide-table-scroll {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 20px 0;
}
.guide-table-scroll table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
.guide-table-scroll th {
  background: #edf4f8;
  font-weight: 700;
}
.guide-table-scroll th,
.guide-table-scroll td {
  border-bottom: 1px solid var(--line);
  padding: 13px 16px;
  vertical-align: top;
  min-width: 120px;
}
.guide-table-scroll tr:last-child td {
  border: 0;
}
.guide-digest {
  overflow-wrap: anywhere;
}
.guide-prompt {
  margin: 0 0 20px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 0 8px 8px 0;
  background: #f8fafb;
  font-size: 15px;
}
.guide-sources {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 44px;
  font-size: 12px;
  color: var(--guide-muted);
}
.guide-sources summary {
  cursor: pointer;
  padding: 4px 0;
}
.guide-neighbors {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px !important;
}
.guide-neighbors a {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
}
.guide-neighbors a:hover {
  border-color: var(--blue);
}
.guide-neighbors span {
  display: block;
  font-size: 11px;
  color: var(--guide-muted);
  margin-bottom: 8px;
}
.guide-neighbors strong {
  font-size: 14px;
}
.guide-toc {
  position: sticky;
  top: 120px;
  width: 180px;
  flex-shrink: 0;
  font-size: 12px;
}
.guide-toc nav {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
.guide-toc p {
  font-size: 11px;
  margin: 0 0 12px;
  font-weight: 700;
}
.guide-toc a {
  display: block;
  padding: 5px 0;
  line-height: 1.5;
  color: var(--guide-muted);
  text-decoration: none;
}
.guide-toc a:hover {
  color: var(--blue);
}
.guide-toc .guide-toc-top {
  margin: 24px 0 0 18px;
  color: var(--blue);
}
.guide-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 24px 32px;
  font-size: 11px;
  color: var(--guide-muted);
  background: #f8fafb;
}
@media (min-width: 1600px) {
  .guide-hero h1 {
    font-size: 48px;
  }
}
@media (max-width: 1200px) {
  .guide-shell {
    gap: 28px;
    padding-inline: 24px;
  }
  .guide-sidebar {
    width: 180px;
  }
  .guide-toc {
    display: none;
  }
  .guide-header {
    gap: 18px;
    padding-inline: 24px;
  }
  .guide-header .brand {
    width: 170px;
  }
  .guide-hero {
    padding: 28px;
    gap: 24px;
  }
  .guide-facts strong {
    display: block;
  }
}
@media (max-width: 900px) {
  .guide-lab-link {
    display: none;
  }
  .guide-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .guide-hero {
    grid-template-columns: 1fr;
  }
  .guide-hero-terminal {
    width: 100%;
  }
  .guide-hero h1 {
    font-size: 36px;
  }
  .guide-article-header h1 {
    font-size: 34px;
  }
}
@media (max-width: 680px) {
  .guide-header {
    position: relative;
    flex-wrap: wrap;
    padding: 16px;
    gap: 16px;
  }
  .guide-header .brand {
    width: 165px;
  }
  .guide-service {
    margin-left: auto;
    padding-left: 16px;
    font-size: 12px;
  }
  .guide-service span {
    font-size: 11px;
  }
  .guide-search-wrap {
    width: 100%;
  }
  .guide-shell {
    display: block;
    padding: 20px 16px 40px;
  }
  .guide-sidebar {
    position: static;
    width: 100%;
    max-height: none;
    padding: 0;
    margin-bottom: 24px;
    border: 1px solid var(--line);
    border-radius: 9px;
  }
  .guide-sidebar > summary {
    display: list-item;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: var(--blue);
  }
  .guide-sidebar nav {
    padding: 0 10px 16px;
  }
  .guide-sidebar-meta {
    margin: 0 20px 20px;
  }
  .guide-hero {
    padding: 24px 20px;
  }
  .guide-hero h1 {
    font-size: 34px;
  }
  .guide-secondary-link {
    margin-left: 0;
    margin-top: 18px;
    display: block;
  }
  .guide-facts {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 32px;
  }
  .guide-facts > span {
    padding: 14px 10px;
  }
  .guide-facts strong {
    display: inline;
  }
  .guide-cards {
    gap: 10px;
  }
  .guide-card {
    padding: 16px;
  }
  .guide-card h3 {
    font-size: 17px;
  }
  .guide-card p {
    font-size: 12px;
  }
  .guide-card-top {
    margin-bottom: 16px;
  }
  .guide-section-heading h2 {
    font-size: 22px;
  }
  .guide-section-heading p {
    font-size: 12px;
  }
  .guide-article-header h1 {
    font-size: 32px;
  }
  .guide-article-logo {
    width: 56px;
    height: 56px;
    padding: 8px;
  }
  .guide-article h2 {
    font-size: 22px;
  }
  .guide-lead {
    font-size: 16px;
  }
  .guide-flow {
    grid-template-columns: 1fr;
  }
  .guide-flow p {
    font-size: 14px;
  }
  .guide-breadcrumb {
    margin-bottom: 24px;
    flex-wrap: wrap;
  }
  .guide-neighbors {
    grid-template-columns: 1fr;
  }
  .guide-command figcaption {
    padding-block: 8px;
  }
  .guide-command button {
    min-height: 36px;
    padding-inline: 10px;
    font-size: 11px;
  }
  .guide-article section,
  .guide-catalog-section {
    scroll-margin-top: 16px;
  }
  .guide-footer {
    flex-direction: column;
    padding: 20px 16px;
  }
}
@media (max-width: 360px) {
  .guide-cards {
    grid-template-columns: 1fr;
  }
  .guide-header .brand {
    width: 140px;
  }
  .guide-hero h1 {
    font-size: 29px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .guide-card {
    transition: none;
  }
}
@media print {
  .guide-header,
  .guide-sidebar,
  .guide-toc,
  .guide-neighbors,
  .guide-command button,
  .guide-footer {
    display: none !important;
  }
  .guide-shell {
    display: block;
    padding: 0;
  }
  .guide-article {
    max-width: none;
  }
  .guide-command {
    break-inside: avoid;
  }
}
