
:root {
  --red-dark: #be123c;
  --green-dark: #166534;
  --surface-tint: #f8fafc;
}html[data-diagram-theme="dark"] {
  --red-dark: #fda4af;
  --green-dark: #bbf7d0;
  --surface-tint: #15191f;
}
* { box-sizing: border-box; }html,
body {

  margin: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
}
body {
  color: var(--ink);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: anywhere;
}.diagram {

  width: 100%;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius:8px;
  background: var(--paper);
  overflow: hidden;
  contain: layout paint;
}
.nest-ch11-ch11-3-hero { display: grid; gap: 7px; }
h1 { margin: 0; font-size:23px; line-height: 1.28; font-weight: 900; }
p { margin: 0; }
.nest-ch11-ch11-3-lead { color: var(--muted); font-size:13px; line-height: 1.55; }
.nest-ch11-ch11-3-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.nest-ch11-ch11-3-card, .step, .nest-ch11-ch11-3-note {
  border: 1px solid var(--border);
  border-radius:8px;
  background: var(--surface-tint);
  padding: 12px;
  min-width: 0;
}
.nest-ch11-ch11-3-card { display: grid; gap: 7px; }
.step { background: var(--paper); }
.nest-ch11-ch11-3-note { color: var(--green-dark); background: var(--green-tint); font-weight: 750; }
.nest-ch11-ch11-3-danger { color: var(--red-dark); background: var(--red-tint); }
.nest-ch11-ch11-3-amber { color: var(--amber); background: var(--amber-tint); }
.nest-ch11-ch11-3-blue { color: var(--blue); background: var(--blue-tint); }
.nest-ch11-ch11-3-tag {
  width: fit-content;
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius:6px;
  background: var(--paper);
  color: var(--red-dark);
  font-size:12px;
  font-weight: 850;
}
.num {
  width: fit-content;
  min-width: 23px;
  height: 23px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius:8px;
  background: var(--green-tint);
  color: var(--green-dark);
  font-size:12px;
  font-weight: 850;
}
.nest-ch11-ch11-3-title { font-size:15px; line-height: 1.42; font-weight: 850; }
.nest-ch11-ch11-3-desc { color: var(--muted); font-size:12px; line-height: 1.5; }
@media (max-width: 620px) {
  .diagram { padding: 14px; }
  h1 { font-size:21px; }
  .nest-ch11-ch11-3-grid2, .grid3, .flow { grid-template-columns: 1fr; }
}

.diagram,
.diagram * {
  max-width: 100%;
}

@media (max-width: 360px) {
  .diagram {
    padding: 12px;
  }
}
