:root {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --text: #1d2430;
  --muted: #657084;
  --line: #d9dee7;
  --accent: #0f766e;
  --accent-dark: #134e4a;
  --soft: #e9f4f2;
  --code: #eef1f5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.62;
}

.site-shell {
  width: 75vw;
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 28px 0;
  overflow: auto;
}

.brand {
  display: block;
  padding: 18px 18px 20px;
  margin-bottom: 16px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.brand strong {
  display: block;
  font-size: 1.35rem;
}

.brand span,
.module-nav small,
.module-card small,
.eyebrow,
.section-nav p {
  color: var(--muted);
}

.module-nav,
.section-nav {
  display: grid;
  gap: 8px;
}

.module-nav a,
.section-nav a {
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
}

.module-nav a {
  display: grid;
  gap: 2px;
  padding: 13px 16px;
  border: 1px solid transparent;
}

.module-nav a:hover,
.module-nav a.active {
  background: var(--soft);
  border-color: #b9d9d4;
}

.module-nav span {
  font-weight: 700;
}

.section-nav {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.section-nav p {
  margin: 0 0 4px;
  padding: 0 16px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.section-nav a {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.section-nav a:hover {
  background: #eceff3;
}

.content {
  min-width: 0;
  padding: 34px 0 72px;
}

.home-hero,
.module-hero,
.module-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.home-hero,
.module-hero {
  padding: 34px 38px;
  margin-bottom: 22px;
}

.home-hero h1,
.module-hero h1 {
  margin: 0;
  max-width: 920px;
  font-size: 2.15rem;
  line-height: 1.16;
}

.home-hero p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.module-card {
  min-height: 160px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}

.module-card:hover {
  border-color: var(--accent);
  box-shadow: 0 14px 28px rgba(29, 36, 48, 0.08);
}

.module-card span {
  color: var(--accent-dark);
  font-weight: 700;
}

.module-card strong {
  font-size: 1.15rem;
  line-height: 1.3;
}

.module-section {
  padding: 30px 38px;
  margin: 18px 0;
}

.module-section h2 {
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--accent-dark);
  font-size: 1.45rem;
  line-height: 1.25;
}

.module-section h3 {
  margin: 28px 0 10px;
  color: #334155;
  font-size: 1.08rem;
}

.module-section p,
.module-section ul,
.module-section table {
  margin-top: 0;
}

.module-section ul {
  padding-left: 22px;
}

.lead-in {
  font-weight: 700;
}

.image-placeholder {
  margin: 24px 0;
  padding: 28px;
  border: 1px dashed #9aa6b6;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  text-align: center;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92rem;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 18px 0 24px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

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

th {
  background: #eef1f5;
  color: #263241;
}

@media (max-width: 1180px) {
  .site-shell {
    width: min(94vw, 1040px);
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 22px;
  }
}

@media (max-width: 820px) {
  .site-shell {
    width: 100%;
    display: block;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 14px 16px;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
  }

  .brand {
    padding: 8px 0 14px;
  }

  .section-nav {
    display: none;
  }

  .content {
    padding: 18px 16px 48px;
  }

  .home-hero,
  .module-hero,
  .module-section {
    padding: 22px;
  }

  .home-hero h1,
  .module-hero h1 {
    font-size: 1.65rem;
  }

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