:root {
  --green-950: #04180d;
  --green-900: #082414;
  --green-800: #123821;
  --green-700: #1f5b33;
  --green-500: #5bbf2a;
  --cream: #f6f5ed;
  --paper: #ffffff;
  --line: #d9e5d1;
  --muted: #65705f;
  --amber: #e5a720;
  --blue: #0a5d7a;
  --danger: #b6362f;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--green-950);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

.layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  padding: 22px;
  background: var(--green-950);
  color: white;
}

.brand {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.brand img {
  width: 150px;
  max-width: 100%;
}

.brand strong {
  font-size: 1.3rem;
}

.version-pill {
  display: inline-flex;
  width: fit-content;
  padding: 4px 9px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  color: #e8f7df;
  font-size: .82rem;
}

.nav-title {
  margin: 24px 0 8px;
  color: #cfeac0;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar li { margin: 6px 0; }

.sidebar a {
  display: block;
  padding: 7px 8px;
  border-radius: 6px;
  color: #f6fff1;
}

.sidebar a:hover {
  background: rgba(255,255,255,.1);
  text-decoration: none;
}

.content {
  max-width: 1180px;
  padding: 34px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  gap: 28px;
  align-items: center;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #ecf6e7 100%);
}

.hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero p {
  max-width: 760px;
  font-size: 1.08rem;
}

.hero-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.hero-card img {
  display: block;
  width: 180px;
  max-width: 100%;
  margin: 0 auto 18px;
}

.meta-grid {
  display: grid;
  gap: 8px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.meta-row span:first-child {
  color: var(--muted);
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green-700);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.section {
  margin-top: 26px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.section h3 {
  margin: 22px 0 8px;
  font-size: 1.16rem;
}

.section ul,
.section ol {
  padding-left: 22px;
}

.section li {
  margin: 5px 0;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf8;
}

.card h3 {
  margin-top: 0;
}

.card ul {
  margin-bottom: 0;
}

.status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e8f6df;
  color: var(--green-800);
  font-size: .82rem;
  font-weight: 800;
}

.status.warn {
  background: #fff4d5;
  color: #7c5200;
}

.status.blocked {
  background: #ffe5e2;
  color: var(--danger);
}

.toc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.toc-grid a {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf8;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
}

th,
td {
  padding: 10px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #edf7e6;
}

code,
pre {
  font-family: Consolas, "Courier New", monospace;
}

code {
  padding: 2px 5px;
  border-radius: 4px;
  background: #edf4ea;
}

pre {
  overflow: auto;
  padding: 14px;
  border-radius: 8px;
  background: #07170d;
  color: #eaffdf;
}

.callout {
  padding: 14px;
  border-left: 5px solid var(--green-500);
  border-radius: 8px;
  background: #f2faed;
}

.warning {
  border-left-color: var(--amber);
  background: #fff8e6;
}

.danger {
  border-left-color: var(--danger);
  background: #fff0ef;
}

.image-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.image-placeholder {
  display: grid;
  min-height: 150px;
  place-items: center;
  padding: 16px;
  border: 1px dashed #9dbd8c;
  border-radius: 8px;
  background: #f7fbf4;
  color: var(--muted);
  text-align: center;
}

.steps {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf8;
}

.steps strong {
  color: var(--green-800);
}

.steps span {
  color: var(--muted);
}

.check-list {
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin: 8px 0;
  padding: 10px 12px 10px 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf8;
}

.check-list li::before {
  position: absolute;
  left: 12px;
  top: 10px;
  content: "OK";
  color: var(--green-700);
  font-size: .68rem;
  font-weight: 900;
}

.footer {
  padding: 26px 0 10px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .content {
    padding: 18px;
  }

  .hero,
  .grid.two,
  .grid.three,
  .toc-grid,
  .image-strip,
  .steps li {
    grid-template-columns: 1fr;
  }
}
