:root {
  color-scheme: light;
  --ink: #18201f;
  --muted: #5d6966;
  --line: #d9e1df;
  --paper: #fbfcfb;
  --surface: #ffffff;
  --soft: #eef6f2;
  --green: #0f7b58;
  --green-dark: #07533b;
  --amber: #b85d14;
  --blue: #1d5f9f;
  --code: #172321;
  --code-bg: #edf3f1;
  --shadow: 0 14px 38px rgba(24, 32, 31, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.65;
}

a {
  color: var(--blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

code,
pre,
kbd {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

code {
  border-radius: 4px;
  background: var(--code-bg);
  color: var(--code);
  padding: 0.1rem 0.32rem;
  font-size: 0.92em;
}

pre {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101918;
  color: #e8f3ef;
  padding: 1rem;
  line-height: 1.55;
}

pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.site-header__inner,
.layout,
.hero,
.footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
  font-size: 0.94rem;
}

.top-nav a {
  color: var(--muted);
  text-decoration: none;
}

.top-nav a[aria-current="page"],
.top-nav a:hover {
  color: var(--green-dark);
}

.hero {
  padding: 56px 0 36px;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2rem, 5vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 48px;
  padding: 18px 0 64px;
}

.content {
  min-width: 0;
}

.content h2 {
  margin: 2.2rem 0 0.6rem;
  font-size: 1.55rem;
  line-height: 1.22;
  letter-spacing: 0;
}

.content h3 {
  margin: 1.6rem 0 0.5rem;
  font-size: 1.12rem;
}

.content p {
  margin: 0.8rem 0;
}

.content ul,
.content ol {
  padding-left: 1.35rem;
}

.content li {
  margin: 0.45rem 0;
}

.toc {
  position: sticky;
  top: 18px;
  align-self: start;
  border-left: 1px solid var(--line);
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.toc strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.toc a {
  display: block;
  margin: 0.36rem 0;
  color: var(--muted);
  text-decoration: none;
}

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

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 1.2rem 0;
}

.card {
  min-height: 166px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.card h2,
.card h3 {
  margin-top: 0;
}

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

.card a {
  font-weight: 700;
}

.callout {
  border-left: 4px solid var(--green);
  background: var(--soft);
  padding: 1rem 1.1rem;
  margin: 1.2rem 0;
}

.warning {
  border-left-color: var(--amber);
  background: #fff4e8;
}

.steps {
  display: grid;
  gap: 12px;
  margin: 1.2rem 0;
}

.step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.9rem;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 1rem;
}

.step-number {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-weight: 800;
}

.meta-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 0.9rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.meta-list dt {
  color: var(--muted);
  font-weight: 700;
}

.meta-list dd {
  margin: 0;
}

.next-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid var(--green);
  background: var(--green);
  color: #fff;
  padding: 0.58rem 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--green-dark);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 38px;
  color: var(--muted);
  font-size: 0.92rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background: var(--surface);
}

th,
td {
  border: 1px solid var(--line);
  padding: 0.7rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--soft);
}

@media (max-width: 820px) {
  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 48px;
  }

  .toc {
    position: static;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 1rem 0 0;
  }

  .hero {
    padding-top: 34px;
  }

  .step {
    grid-template-columns: 1fr;
  }

  .meta-list {
    grid-template-columns: 1fr;
  }
}
