/* ──────────────────────────────────────────────────────────
   BIMquants Lite — user manual (manual.html)
   ────────────────────────────────────────────────────────── */

body { line-height: 1.7; }

.nav-links a.active { color: var(--accent); }

/* ── HERO (size overrides) ───────────────────────────────── */
.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: .75rem;
}

.hero p {
  font-size: 1.05rem;
  max-width: 540px;
}

/* ── LAYOUT ──────────────────────────────────────────────── */
.page {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  align-items: start;
  padding: 3rem 2rem 5rem;
}

/* ── SIDEBAR ─────────────────────────────────────────────── */
.sidebar {
  position: sticky;
  top: 76px;
  padding-right: 2rem;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.sidebar-title {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .75rem;
}

.sidebar-nav a {
  display: block;
  font-size: .875rem;
  color: var(--muted);
  text-decoration: none;
  padding: .3rem 0 .3rem .75rem;
  border-left: 2px solid var(--border);
  transition: color .15s, border-color .15s;
  line-height: 1.4;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--accent);
  border-left-color: var(--accent);
}

.sidebar-nav a.sub {
  padding-left: 1.5rem;
  font-size: .8rem;
}

.sidebar-nav a.major {
  font-size: .95rem;
  font-weight: 700;
  color: var(--accent);
  border-left-color: var(--accent);
  margin-top: .4rem;
}

.sidebar-nav a.major:hover,
.sidebar-nav a.major.active {
  color: var(--accent-h);
  border-left-color: var(--accent-h);
}

/* ── CONTENT ─────────────────────────────────────────────── */
.content { min-width: 0; }

.content section {
  scroll-margin-top: 76px;
  padding: 0 0 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.content section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.content h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--dark);
  margin-bottom: 1rem;
  padding: .25rem 0 .5rem;
  border-bottom: 2px solid var(--border);
}

.content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 1.75rem 0 .6rem;
}

.content h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--dark);
  margin: 1.25rem 0 .4rem;
}

.content p { margin-bottom: .85rem; color: var(--text); }

.content ul,
.content ol { margin: .5rem 0 .85rem 1.4rem; }

.content li { margin-bottom: .3rem; }

.content code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: .85em;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: .1em .35em;
  color: #0f172a;
}

.content pre {
  background: #0f172a;
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  overflow-x: auto;
  margin: .75rem 0 1rem;
}

.content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: .875rem;
  color: #e2e8f0;
  line-height: 1.6;
}

/* ── FIGURES ─────────────────────────────────────────────── */
.content figure { margin: 0 0 1.5rem; }

.content figure img {
  width: 100%;
  max-width: 600px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: block;
}

.content figcaption {
  font-size: .8rem;
  color: var(--muted);
  margin-top: .4rem;
}

/* ── STATUS DOTS ─────────────────────────────────────────── */
.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: .45rem;
  vertical-align: middle;
}
.dot-green  { background: #22c55e; }
.dot-orange { background: #f97316; }
.dot-red    { background: #ef4444; }

/* ── TABLES ──────────────────────────────────────────────── */
.content table {
  width: 100%;
  border-collapse: collapse;
  margin: .75rem 0 1.1rem;
  font-size: .9rem;
}

.content th {
  text-align: left;
  padding: .55rem .85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--muted);
}

.content td {
  padding: .55rem .85rem;
  border: 1px solid var(--border);
  vertical-align: top;
}

.content tr:nth-child(even) td { background: #fafafa; }

/* ── CALLOUT ─────────────────────────────────────────────── */
.callout {
  background: #eff6ff;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: .9rem 1.1rem;
  margin: 1rem 0;
  font-size: .9rem;
  color: #1e3a8a;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 720px) {
  .page { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}
