@import url("../kernel/kernel-series.css?v=20260721");

:root {
  --green: #55b7e8;
  --green-deep: #1f5f7d;
  --amber: #e8a133;
}

.source-files,
.reference-links,
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.source-files code,
.reference-links a,
.pill-row span {
  padding: 5px 8px;
  color: #163f54;
  background: rgba(85, 183, 232, 0.16);
  border: 1px solid rgba(31, 95, 125, 0.14);
  border-radius: 0;
  font-size: 13px;
  font-weight: 800;
}

.reference-links a {
  text-decoration: none;
}

.rtos-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
}

.rtos-table th,
.rtos-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(16, 20, 17, 0.11);
  vertical-align: top;
}

.rtos-table th {
  color: #163f54;
  background: rgba(85, 183, 232, 0.12);
  text-align: left;
}

.kernel-figure {
  margin: 18px 0;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
}

.kernel-figure figcaption {
  margin-bottom: 12px;
  font-weight: 900;
}

.diagram-canvas {
  padding: 16px;
  overflow-x: auto;
  background: #fbfdf9;
  border: 1px solid rgba(16, 20, 17, 0.12);
  border-radius: 0;
}

.diagram-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 10px;
  align-items: stretch;
}

.diagram-node {
  min-height: 92px;
  padding: 12px;
  background: #fff;
  border: 2px solid rgba(31, 95, 125, 0.18);
  border-radius: 0;
}

.diagram-node strong {
  display: block;
  color: #163f54;
}

.diagram-node span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.line-notes {
  display: grid;
  gap: 10px;
}

.line-note {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  background: #fbfdf9;
  border: 1px solid rgba(16, 20, 17, 0.11);
  border-radius: 0;
}

.line-note code {
  width: max-content;
  height: max-content;
  font-weight: 800;
}

.doctor-note {
  border-left-color: var(--amber);
}

.deep-stack {
  display: grid;
  gap: 14px;
}

@media (max-width: 900px) {
  .diagram-row,
  .line-note {
    grid-template-columns: 1fr;
  }
}
