/* Page-specific styles for /ai-infrastructure/. Loaded on top of style.css. */

.lead {
  font-size: 1.15rem;
  color: var(--fg);
  margin: 0 0 1.5rem;
}

.lead strong {
  color: var(--accent);
}

.section {
  margin-bottom: 3rem;
}

.section p {
  margin: 0 0 1rem;
}

.section p:last-child {
  margin-bottom: 0;
}

/* Monospace architecture sketches. Deliberately text, not an image: they stay
   readable when the page is zoomed, translated or copied into something else. */
.diagram {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.1rem 1.2rem;
  margin: 0 0 1.5rem;
  overflow-x: auto;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--fg);
  tab-size: 2;
}

/* Two-column fact list: term on the left, explanation on the right. */
.facts {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.facts > li {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 0.2rem 1.5rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.facts > li:last-child {
  border-bottom: none;
}

.facts b {
  color: var(--fg);
  font-weight: 700;
}

.facts span {
  color: var(--fg-muted);
}

/* Lessons: a claim in bold, the reasoning after it. */
.lessons {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lessons > li {
  border-left: 3px solid var(--accent);
  padding: 0.1rem 0 0.1rem 1.1rem;
  margin-bottom: 1.4rem;
  font-size: 0.97rem;
}

.lessons > li:last-child {
  margin-bottom: 0;
}

.lessons b {
  display: block;
  margin-bottom: 0.25rem;
}

.metric {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

.closing {
  border-top: 2px solid var(--border);
  padding-top: 1.5rem;
  font-size: 1.05rem;
}

@media (max-width: 620px) {
  .facts > li {
    grid-template-columns: 1fr;
  }

  .diagram {
    font-size: 0.68rem;
  }
}
