
:root {
  --accent-line: #b7cdf6;
}
html[data-diagram-theme="dark"] {
  --accent-line: rgba(159, 196, 255, 0.34);
}
*, *::before, *::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  background: transparent;
  overflow: hidden;
  letter-spacing: 0;
}
body {
  color: var(--text);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.diagram {
  width: 100%;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  contain: layout paint;
}
.diagram,
.diagram * {
  max-width: 100%;
}
.next-ch19-ch19-3-header {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
h1,
p {
  margin: 0;
}
h1 {
  color: var(--text);
  font-size: 24px;
  line-height: 1.25;
}
p,
td,
th {
  font-size: 13px;
  line-height: 1.5;
}
.next-ch19-ch19-3-lead {
  color: var(--muted);
}
.next-ch19-ch19-3-table-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
th,
td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line-muted);
  text-align: left;
  vertical-align: top;
}
th {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
}
tr:last-child td {
  border-bottom: 0;
}
@media (max-width: 720px) {
  .diagram {
    gap: 10px;
    padding: 10px;
  }
  .next-ch19-ch19-3-header {
    padding: 12px;
  }
  h1 {
    font-size: 20px;
  }
  p,
  td,
  th {
    font-size: 12px;
  }
  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }
  thead {
    display: none;
  }
  tr {
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
  }
  tr:last-child {
    border-bottom: 0;
  }
  td {
    padding: 5px 10px;
    border-bottom: 0;
  }
  td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size:12px;
    font-weight: 800;
  }
}
