:root {
  --page: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #eef3f7;
  --ink: #172033;
  --muted: #5f6b7c;
  --line: #d9e2ec;
  --blue: #2563eb;
  --green: #0f9f8f;
  --coral: #ff493d;
  --amber: #d97706;
  --code: #101827;
  --shadow: 0 16px 42px rgb(23 32 51 / 10%);
  color-scheme: light;
  font-family:
    Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--page);
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px max(20px, calc((100% - 1320px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(14px);
}

.brand,
.topnav,
.button-link {
  display: inline-flex;
  align-items: center;
}

.brand {
  min-width: 0;
  gap: 10px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 850;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 36px;
  object-fit: contain;
}

.topnav {
  gap: 8px;
  color: #3f4d61;
  font-size: 14px;
  font-weight: 750;
}

.topnav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  text-decoration: none;
}

.topnav a:hover,
.topnav a:focus-visible,
.topnav a[aria-current="page"] {
  color: var(--blue);
  background: #edf3ff;
}

.layout {
  width: min(1320px, calc(100% - 40px));
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 220px;
  gap: 28px;
  margin: 0 auto;
  padding: 42px 0 72px;
}

.side-nav {
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgb(23 32 51 / 6%);
}

.side-nav p {
  margin: 0;
  padding: 8px 12px 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.side-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #435064;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.side-nav a:hover,
.side-nav a:focus-visible,
.side-nav a[aria-current="page"] {
  color: var(--blue);
  background: #edf3ff;
}

.doc {
  min-width: 0;
}

.doc article {
  padding: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  margin: 0;
  color: var(--ink);
  font-size: 52px;
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0;
}

p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.lead {
  max-width: 820px;
  margin-top: 20px;
  color: #344156;
  font-size: 21px;
  line-height: 1.55;
}

.section-block {
  padding-top: 44px;
}

.section-block > p + p,
.section-block > p + pre,
.section-block > pre + p,
.section-block > p + .tool-table,
.section-block > p + .concept-grid {
  margin-top: 16px;
}

.summary-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.summary-panel div {
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px;
  background: #fbfcfe;
}

.summary-panel strong,
.notice strong,
.step-list strong,
.tool-table strong {
  color: var(--ink);
}

.summary-panel span,
.notice span,
.step-list span,
.tool-table span {
  color: var(--muted);
  line-height: 1.55;
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.concept-grid article {
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.concept-grid p {
  font-size: 15px;
  line-height: 1.6;
}

.concept-mark {
  width: 28px;
  height: 8px;
  display: block;
  margin-bottom: 18px;
  border-radius: 999px;
}

.concept-mark.blue {
  background: var(--blue);
}

.concept-mark.green {
  background: var(--green);
}

.concept-mark.coral {
  background: var(--coral);
}

.roadmap-figure {
  margin: 26px 0 0;
}

.roadmap-figure figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.board-demo {
  display: grid;
  grid-template-columns: 120px repeat(3, minmax(120px, 1fr));
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.board-head,
.board-col,
.board-row {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: #435064;
  background: #ffffff;
  font-size: 13px;
  font-weight: 850;
}

.board-col {
  justify-content: center;
}

.timeline {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 850;
  box-shadow: 0 10px 20px rgb(23 32 51 / 10%);
}

.timeline.span-2 {
  grid-column: span 2;
}

.timeline.coral {
  background: var(--coral);
}

.timeline.green {
  background: var(--green);
}

.timeline.blue {
  background: var(--blue);
}

.timeline.amber {
  background: var(--amber);
}

.step-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.step-list li {
  position: relative;
  min-height: 84px;
  display: grid;
  gap: 6px;
  padding: 18px 18px 18px 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  counter-increment: steps;
}

.step-list li::before {
  content: counter(steps);
  position: absolute;
  top: 18px;
  left: 18px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.next-panel,
.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbff;
}

.notice {
  align-items: stretch;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  background: #fff8f7;
}

.notice span {
  display: block;
}

.next-panel h2 {
  margin-bottom: 8px;
}

.button-link {
  flex: 0 0 auto;
  min-height: 46px;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

code {
  border-radius: 6px;
  padding: 2px 6px;
  color: #162033;
  background: #eef3f7;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

pre {
  max-width: 100%;
  margin: 16px 0 0;
  overflow-x: auto;
  border-radius: 8px;
  background: var(--code);
}

pre code {
  display: block;
  padding: 18px;
  color: #eef3f7;
  background: transparent;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre;
}

.source-line {
  margin-top: 14px;
  font-size: 15px;
}

.source-line a,
.section-block a {
  color: var(--blue);
  font-weight: 750;
}

.tool-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tool-table div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 18px;
  background: #fbfcfe;
}

.tool-table div + div {
  border-top: 1px solid var(--line);
}

.footer {
  width: min(1320px, calc(100% - 40px));
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 auto;
  padding: 24px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer a {
  color: #435064;
  font-weight: 750;
  text-decoration: none;
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 26px;
  }

  .side-nav {
    position: static;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
  }

  .side-nav p {
    align-self: center;
    white-space: nowrap;
  }

  .toc {
    order: 2;
  }

  .doc {
    order: 3;
  }

  .summary-panel,
  .concept-grid {
    grid-template-columns: 1fr;
  }

  .board-demo {
    grid-template-columns: 92px repeat(3, minmax(92px, 1fr));
  }
}

@media (max-width: 700px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .topnav {
    width: 100%;
    overflow-x: auto;
  }

  .layout,
  .footer {
    width: min(100% - 28px, 1320px);
  }

  .doc article {
    padding: 26px 20px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 24px;
  }

  .lead {
    font-size: 18px;
  }

  .summary-panel div,
  .concept-grid article {
    min-height: auto;
  }

  .board-demo {
    grid-template-columns: 84px repeat(3, 110px);
    overflow-x: auto;
  }

  .next-panel,
  .notice {
    align-items: stretch;
    flex-direction: column;
  }

  .button-link {
    width: 100%;
  }

  .tool-table div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

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