:root {
  --page: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #eef4f7;
  --line: #d9e2ea;
  --text: #14202b;
  --muted: #667789;
  --accent: #107c8c;
  --accent-dark: #075866;
  --green: #23845c;
  --amber: #a26313;
  --shadow: 0 18px 48px rgba(20, 32, 43, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page);
  font: 16px/1.62 Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand,
.topbar nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  font-weight: 720;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #fff;
  border-radius: 7px;
  background: var(--accent-dark);
}

.topbar nav a {
  color: var(--muted);
  font-size: 14px;
}

.topbar nav a:hover {
  color: var(--accent-dark);
}

.shell {
  display: grid;
  grid-template-columns: 294px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow: auto;
  padding: 24px 18px 36px;
  border-right: 1px solid var(--line);
  background: #fbfcfd;
}

.sidebar-heading {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  text-transform: uppercase;
}

.nav-group {
  margin: 0 0 18px;
}

.nav-group p {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.nav-group a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 10px;
  color: var(--muted);
  border-radius: 7px;
  font-size: 14px;
  line-height: 1.35;
}

.nav-group a:hover {
  color: var(--text);
  background: var(--surface-soft);
}

.nav-group a span {
  color: #8a9aaa;
  font-variant-numeric: tabular-nums;
}

main {
  min-width: 0;
}

.hero {
  padding: 46px clamp(24px, 6vw, 88px) 34px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--accent-dark);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 820px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-meta span,
.tags span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
}

.quick-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 28px;
  padding: 32px clamp(24px, 6vw, 88px);
  border-bottom: 1px solid var(--line);
  background: #fdfefe;
}

.quick-summary h2,
.toc h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.quick-summary p {
  margin: 0;
  color: var(--muted);
}

.tags {
  display: flex;
  align-content: start;
  flex-wrap: wrap;
  gap: 8px;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 244px;
  gap: 40px;
  padding: 42px clamp(24px, 6vw, 88px) 76px;
}

.article-stack {
  display: grid;
  gap: 26px;
  min-width: 0;
}

.guide-section {
  scroll-margin-top: 84px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(20, 32, 43, 0.03);
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.section-kicker span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 28px;
  border-radius: 7px;
  background: #dff0f3;
  font-variant-numeric: tabular-nums;
}

.guide-section h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.16;
}

.lead {
  max-width: 880px;
  margin: 12px 0 24px;
  color: var(--muted);
  font-size: 18px;
}

.screenshot {
  margin: 0 0 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef2f5;
}

.screenshot img {
  display: block;
  width: 100%;
  height: auto;
}

.screenshot-hero img {
  max-height: 620px;
  object-fit: cover;
  object-position: top left;
}

.screenshot-split,
.screenshot-tall {
  max-width: 860px;
}

.screenshot-wide img {
  max-height: 560px;
  object-fit: cover;
  object-position: top left;
}

figcaption {
  padding: 10px 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #fbfcfd;
  font-size: 13px;
}

.action-block {
  margin: 0 0 24px;
}

.action-block h3,
.callout h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.steps li span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--accent-dark);
  border: 1px solid #b7dbe2;
  border-radius: 50%;
  background: #edf8fa;
  font-size: 13px;
  font-weight: 760;
}

.steps p,
.callout p {
  margin: 0;
}

.callout-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.callout {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.callout.note {
  border-left: 4px solid var(--accent);
}

.callout.result {
  border-left: 4px solid var(--green);
}

.callout.warning {
  border-left: 4px solid var(--amber);
}

.callout p {
  color: var(--muted);
}

.toc {
  position: sticky;
  top: 88px;
  align-self: start;
  max-height: calc(100vh - 112px);
  overflow: auto;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.toc a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.toc a:hover {
  color: var(--accent-dark);
}

@media (max-width: 1180px) {
  .shell {
    display: block;
  }

  .sidebar {
    position: static;
    height: auto;
    max-height: 320px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .toc {
    display: none;
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 18px;
  }

  .topbar nav {
    flex-wrap: wrap;
  }

  .hero,
  .quick-summary,
  .content-layout {
    padding-left: 18px;
    padding-right: 18px;
  }

  .quick-summary,
  .callout-grid {
    grid-template-columns: 1fr;
  }

  .guide-section {
    padding: 22px;
  }

  h1 {
    font-size: 38px;
  }
}
