:root {
  color-scheme: light;
  --paper: #f7f9fa;
  --paper-strong: #edf2f4;
  --ink: #111d2a;
  --muted: #56616c;
  --line: rgba(17, 29, 42, 0.16);
  --blue: #336791;
  --blue-deep: #163d60;
  --green: #1f6f4f;
  --white: #ffffff;
  --radius: 18px;
  --page: min(1440px, calc(100vw - clamp(48px, 7vw, 160px)));
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  padding: 0 max(24px, calc((100vw - 1440px) / 2));
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  font-weight: 750;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand img {
  border-radius: 9px;
}

nav {
  display: flex;
  gap: 28px;
  font-size: 0.92rem;
}

nav a,
footer a {
  color: var(--muted);
  text-decoration: none;
}

nav a:hover,
footer a:hover {
  color: var(--ink);
}

.header-action {
  padding: 9px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.header-action:hover {
  color: var(--white);
  background: var(--ink);
}

.header-tools {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.github-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: var(--ink);
}

.github-link:hover {
  color: var(--white);
  background: var(--ink);
}

.github-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.hero {
  min-height: auto;
  padding: clamp(56px, 8vh, 88px) max(24px, calc((100vw - 1440px) / 2)) 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 15%, rgba(51, 103, 145, 0.13), transparent 32%),
    linear-gradient(180deg, #fbfcfd 0%, var(--paper) 72%);
}

.hero-copy {
  width: min(820px, 100%);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.35rem, 3.7vw, 3.35rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 740;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--ink);
}

.button-primary:hover {
  background: var(--blue-deep);
}

.button-secondary {
  background: transparent;
}

.button-secondary:hover {
  color: var(--white);
  background: var(--ink);
}

.hero-media {
  width: min(1220px, calc(100vw - 32px));
  margin: clamp(44px, 6vh, 68px) auto 0;
  border: 1px solid rgba(17, 29, 42, 0.24);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 40px 100px rgba(22, 61, 96, 0.18);
}

.hero-media img {
  width: 100%;
  height: auto;
}

.feature-intro,
.quick-start,
.documentation,
.final-cta {
  width: var(--page);
  margin-inline: auto;
}

.feature-intro {
  padding: clamp(100px, 15vw, 180px) 0 70px;
}

.feature-intro h2,
.quick-start h2,
.documentation h2,
.final-cta h2 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(1.85rem, 3vw, 2.7rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.feature {
  width: var(--page);
  margin: 0 auto clamp(64px, 9vw, 120px);
}

.feature-copy {
  max-width: 560px;
}

.feature-number {
  margin: 0 0 20px;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 800;
}

.feature h3,
.steps h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.85rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.feature-copy > p:not(.feature-number) {
  margin: 24px 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.feature-copy > a {
  color: var(--blue-deep);
  font-weight: 750;
}

.feature img {
  width: 100%;
  height: auto;
  aspect-ratio: 30 / 17;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: contain;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(17, 29, 42, 0.11);
}

.feature-wide {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  align-items: end;
  gap: clamp(40px, 7vw, 100px);
}

.feature-split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: clamp(40px, 8vw, 120px);
}

.feature-reverse .feature-copy {
  grid-column: 2;
  grid-row: 1;
}

.feature-reverse img {
  grid-column: 1;
  grid-row: 1;
}

.feature-dark {
  width: min(1320px, calc(100vw - 32px));
  padding: clamp(42px, 7vw, 96px);
  border-radius: 28px;
  color: var(--white);
  background: var(--ink);
}

.feature-dark .feature-copy > p:not(.feature-number) {
  color: #b9c3cc;
}

.feature-dark .feature-copy > a {
  color: #9ccfff;
}

.quick-start {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px 100px;
  padding: clamp(100px, 15vw, 180px) 0;
}

.quick-start-heading p:last-child {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.08rem;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.step-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 800;
}

.steps h3 {
  font-size: 1.22rem;
  letter-spacing: -0.025em;
}

.steps p {
  margin: 7px 0 0;
  color: var(--muted);
}

.command {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: #e8edf1;
  background: #0c1823;
}

.command-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  color: #aab7c1;
  font-size: 0.8rem;
}

.command button {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.command button:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.command pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  font-size: clamp(0.76rem, 1.6vw, 0.95rem);
}

.command > p {
  margin: 0;
  padding: 0 24px 22px;
  color: #aab7c1;
  font-size: 0.84rem;
}

.documentation {
  padding: clamp(100px, 15vw, 180px) 0;
  border-top: 1px solid var(--line);
}

.documentation-heading {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 48px;
  align-items: end;
  padding-bottom: 70px;
}

.documentation-heading .eyebrow,
.documentation-heading h2 {
  grid-column: 1;
}

.documentation-heading h2 {
  font-size: clamp(1.85rem, 3vw, 2.7rem);
}

.documentation-heading > p:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 1.05rem;
}

.documentation-body {
  display: grid;
  grid-template-columns: 260px minmax(0, 760px);
  gap: clamp(48px, 9vw, 120px);
  align-items: start;
}

.documentation-nav {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.documentation-nav a {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.documentation-nav a:hover {
  color: var(--blue);
}

.documentation-content article {
  scroll-margin-top: 100px;
  padding: 0 0 72px;
  margin: 0 0 72px;
  border-bottom: 1px solid var(--line);
}

.documentation-content article:last-child {
  margin-bottom: 0;
}

.documentation-content h3 {
  margin: 0 0 24px;
  font-size: clamp(1.3rem, 2vw, 1.85rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.documentation-content article > p:not(.feature-number) {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.03rem;
}

.documentation-content code,
.command code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.documentation-content code {
  padding: 0.12em 0.35em;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--blue-deep);
  background: var(--white);
  font-size: 0.86em;
}

.note {
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 3px solid var(--blue);
  color: var(--muted);
  background: var(--paper-strong);
}

.documentation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 28px;
}

.documentation-actions a {
  color: var(--blue-deep);
  font-weight: 750;
}

.guide-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.guide-index a {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 7px 14px;
  padding: 26px 20px 28px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.guide-index a:nth-child(odd) {
  padding-right: 34px;
  border-right: 1px solid var(--line);
}

.guide-index a:nth-child(even) {
  padding-left: 34px;
}

.guide-index-number {
  grid-row: 1 / span 2;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 800;
}

.guide-index-title {
  font-size: 1.12rem;
  line-height: 1.2;
}

.guide-index a:hover .guide-index-title {
  color: var(--blue);
}

.guide-index-description {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.guide-index-landing {
  margin-top: 10px;
}

.docs-page {
  background: #fbfcfd;
}

.docs-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 860px) 210px;
  gap: clamp(36px, 5vw, 84px);
  width: min(1600px, calc(100vw - clamp(48px, 6vw, 140px)));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 72px 0 140px;
  align-items: start;
}

.guide-nav,
.page-toc {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  color: var(--muted);
  font-size: 0.82rem;
}

.guide-nav-list {
  display: contents;
}

.guide-nav-menu {
  display: none;
}

.guide-nav-list > p,
.page-toc > p {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-nav a,
.page-toc a {
  padding: 8px 0;
  color: inherit;
  line-height: 1.25;
  text-decoration: none;
}

.guide-nav a[aria-current="page"] {
  color: var(--blue-deep);
  font-weight: 800;
}

.guide-nav a:hover,
.page-toc a:hover,
.page-toc a.is-active {
  color: var(--blue);
}

.page-toc .toc-depth-3 {
  padding-left: 14px;
  font-size: 0.76rem;
}

.docs-article {
  min-width: 0;
}

.docs-breadcrumb {
  margin: 0 0 42px;
  color: var(--muted);
  font-size: 0.82rem;
}

.docs-breadcrumb a {
  text-decoration: none;
}

.docs-article > h1 {
  max-width: 900px;
  margin: 0 0 28px;
  font-size: clamp(2.1rem, 3.4vw, 3.1rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.docs-article > h1 + p {
  margin: 0 0 64px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
}

.docs-article h2 {
  scroll-margin-top: 100px;
  margin: 92px 0 22px;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.docs-article h3 {
  scroll-margin-top: 100px;
  margin: 42px 0 14px;
  font-size: 1.3rem;
  line-height: 1.2;
}

.docs-article p,
.docs-article li {
  color: #3f4c58;
  font-size: 1rem;
}

.docs-article li + li {
  margin-top: 10px;
}

.docs-article code {
  padding: 0.12em 0.34em;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--blue-deep);
  background: var(--white);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
}

.docs-article pre {
  padding: 22px;
  overflow-x: auto;
  border-radius: 12px;
  color: #e8edf1;
  background: var(--ink);
}

.docs-article pre code {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
}

.docs-article blockquote {
  margin: 28px 0;
  padding: 17px 20px;
  border-left: 3px solid var(--blue);
  color: var(--muted);
  background: var(--paper-strong);
}

.docs-article blockquote p {
  margin: 0;
}

.docs-media {
  margin: 46px 0 72px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 24px 70px rgba(17, 29, 42, 0.1);
}

.docs-media-dark {
  padding: 18px;
  background: var(--ink);
}

.docs-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 30 / 17;
  object-fit: contain;
}

.annotated-cockpit {
  position: relative;
  margin: 36px 0 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(17, 29, 42, 0.1);
}

.annotated-cockpit img {
  width: 100%;
  height: auto;
}

.annotation-marker {
  position: absolute;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid var(--white);
  border-radius: 50%;
  color: var(--white);
  background: var(--blue-deep);
  box-shadow: 0 5px 16px rgba(17, 29, 42, 0.32);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 900;
  transform: translate(-50%, -50%);
}

.marker-1 {
  left: 14%;
  top: 47%;
}
.marker-2 {
  left: 58%;
  top: 6%;
}
.marker-3 {
  left: 52%;
  top: 13%;
}
.marker-4 {
  left: 49%;
  top: 58%;
}
.marker-5 {
  left: 84%;
  top: 42%;
}
.marker-6 {
  left: 73%;
  top: 96%;
}

.annotated-cockpit + ol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 42px;
  padding: 0;
  list-style-position: inside;
}

.annotated-cockpit + ol li {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.dap-flow {
  display: grid;
  grid-template-columns: 1fr auto 1.3fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin: 48px 0 72px;
}

.dap-flow-node {
  padding: 24px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
  background: var(--white);
}

.dap-flow-connector,
.dap-flow-detail {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
}

.reference-search {
  position: sticky;
  z-index: 5;
  top: 72px;
  display: block;
  padding: 14px 0;
  color: var(--muted);
  background: #fbfcfd;
  font-size: 0.8rem;
}

.reference-search input {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.reference-table {
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

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

.reference-table th,
.reference-table td {
  padding: 13px 12px 13px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
  font-size: 0.82rem;
}

.reference-table th {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

[data-reference-row][hidden] {
  display: none;
}

.final-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(80px, 13vw, 150px) 24px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.final-cta img {
  margin-bottom: 24px;
  border-radius: 20px;
}

.final-cta .hero-actions {
  justify-content: center;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px max(24px, calc((100vw - 1440px) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 600ms ease,
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal[data-delay="1"] {
  transition-delay: 100ms;
}

.reveal[data-delay="2"] {
  transition-delay: 180ms;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid #4f9bd4;
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  .docs-shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .page-toc {
    display: none;
  }
}

@media (max-width: 860px) {
  :root {
    --page: min(100% - 32px, 680px);
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: auto;
    padding: 8px 16px 0;
    row-gap: 8px;
  }

  .site-header > .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .site-header > nav {
    display: grid;
    grid-column: 1 / -1;
    grid-row: 2;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    gap: 0;
    width: 100%;
    border-top: 1px solid var(--line);
  }

  .site-header > nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    font-size: 0.82rem;
  }

  .site-header > .header-tools {
    grid-column: 2;
    grid-row: 1;
  }

  .brand-name {
    font-size: 0.82rem;
  }

  .hero {
    min-height: auto;
    padding: 72px 16px 0;
  }

  h1 {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }

  .feature-wide,
  .feature-split,
  .quick-start,
  .documentation-heading {
    grid-template-columns: 1fr;
  }

  .feature-reverse .feature-copy,
  .feature-reverse img {
    grid-column: 1;
  }

  .feature-reverse .feature-copy {
    grid-row: 1;
  }

  .feature-reverse img {
    grid-row: 2;
  }

  .feature-dark {
    width: calc(100vw - 16px);
    padding: 36px 24px 24px;
  }

  .quick-start,
  .documentation-heading {
    gap: 42px;
  }

  .documentation-heading .eyebrow,
  .documentation-heading h2,
  .documentation-heading > p:last-child {
    grid-column: 1;
    grid-row: auto;
  }

  .command {
    grid-column: 1;
  }

  .guide-index {
    grid-template-columns: 1fr;
  }

  .guide-index a:nth-child(odd),
  .guide-index a:nth-child(even) {
    padding-inline: 0;
    border-right: 0;
  }

  .docs-shell {
    display: block;
    width: min(100% - 32px, 760px);
    padding-top: 0;
  }

  .guide-nav {
    position: static;
    display: block;
    width: 100%;
    max-height: none;
    margin-bottom: 44px;
    overflow: visible;
  }

  .guide-nav-list {
    display: none;
  }

  .guide-nav-menu {
    display: block;
  }

  .guide-nav-menu summary {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    background: var(--white);
    cursor: pointer;
    font-weight: 750;
    list-style: none;
  }

  .guide-nav-menu summary::-webkit-details-marker {
    display: none;
  }

  .guide-nav-menu summary::after {
    margin-left: auto;
    color: var(--blue);
    content: "+";
    font-size: 1.25rem;
    font-weight: 500;
  }

  .guide-nav-menu[open] summary {
    border-radius: 10px 10px 0 0;
  }

  .guide-nav-menu[open] summary::after {
    content: "−";
  }

  .guide-nav-menu nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 6px 14px 10px;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 10px 10px;
    background: var(--white);
  }

  .guide-nav-menu nav > p {
    display: none;
  }

  .guide-nav-menu nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 0;
    border-top: 1px solid var(--line);
    white-space: normal;
  }

  .guide-nav-menu nav a:first-of-type {
    border-top: 0;
  }

  .docs-article > h1 {
    font-size: clamp(2rem, 8.5vw, 2.8rem);
  }

  .annotated-cockpit + ol {
    grid-template-columns: 1fr;
  }

  .dap-flow {
    grid-template-columns: 1fr;
  }

  .dap-flow-connector {
    transform: rotate(90deg);
    text-align: center;
  }
}

@media (max-width: 520px) {
  .header-action {
    padding: 8px 11px;
    font-size: 0.78rem;
  }

  .brand {
    gap: 7px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    display: none;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .annotation-marker {
    width: 23px;
    height: 23px;
    font-size: 0.66rem;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .reveal {
    transition-duration: 0.01ms;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
