
:root{
  color-scheme:light;
  --track:#e34f26;
  --track-tint:#fff7ed;
  --ink:#0f172a;
  --muted:#475569;
  --line:#d7e2ee;
  --paper:#ffffff;
  --surface:#f8fafc;
}
html[data-diagram-theme="dark"]{
  color-scheme:dark;
  --track:#f08b6f;
  --track-tint:rgba(240,139,111,.13);
  --ink:#f8fafc;
  --muted:#cbd5e1;
  --line:#3b4858;
  --paper:#111827;
  --surface:#0f172a;
}
*{box-sizing:border-box}
html,
body{
  margin:0;
  padding:0;
  overflow:hidden;
  background:transparent;
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
  letter-spacing:0;
}
body{
  color:var(--ink);
  word-break:keep-all;
  overflow-wrap:anywhere;
}
.web-ch13-ch13-4-frame{
  display:grid;
  gap:14px;
  padding:18px;
  color:var(--ink);
}
.web-ch13-ch13-4-head{
  display:grid;
  gap:8px;
}
.web-ch13-ch13-4-badge{
  justify-self:start;
  padding:3px 8px;
  border:1px solid color-mix(in srgb,var(--track) 38%,var(--line));
  border-radius:8px;
  background:var(--paper);
  color:var(--track-strong);
  font-size:12px;
  line-height:1.35;
  font-weight:850;
}
h1{
  margin:0;
  color:var(--ink);
  font-size:23px;
  line-height:1.24;
  font-weight:850;
}
.web-ch13-ch13-4-lead{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
}
.web-ch13-ch13-4-matrix{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  border:1px solid var(--line);
  border-radius:8px;
  overflow:hidden;
  background:var(--paper);
}
.web-ch13-ch13-4-matrix th,
.web-ch13-ch13-4-matrix td{
  padding:10px 12px;
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
  text-align:left;
  vertical-align:top;
  font-size:13px;
  line-height:1.45;
}
.web-ch13-ch13-4-matrix th{
  background:var(--surface);
  color:var(--ink);
  font-weight:850;
}
.web-ch13-ch13-4-matrix td:first-child{
  color:var(--track-strong);
  font-weight:850;
  white-space:nowrap;
}
.web-ch13-ch13-4-matrix th:last-child,
.web-ch13-ch13-4-matrix td:last-child{border-right:0}
.web-ch13-ch13-4-matrix tr:last-child td{border-bottom:0}
.web-ch13-ch13-4-note{
  margin:0;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface);
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
}
@media (max-width: 680px){
  .web-ch13-ch13-4-frame{padding:14px;gap:12px}
  h1{font-size:20px}
  .web-ch13-ch13-4-lead{font-size:13px}
  .web-ch13-ch13-4-matrix thead{display:none}
  .web-ch13-ch13-4-matrix,
  .web-ch13-ch13-4-matrix tbody,
  .web-ch13-ch13-4-matrix tr,
  .web-ch13-ch13-4-matrix td{display:block;width:100%}
  .web-ch13-ch13-4-matrix tr{border-bottom:1px solid var(--line)}
  .web-ch13-ch13-4-matrix tr:last-child{border-bottom:0}
  .web-ch13-ch13-4-matrix td{
    display:grid;
    grid-template-columns:minmax(86px,34%) 1fr;
    gap:8px;
    padding:7px 10px;
    border-right:0;
    border-bottom:0;
    font-size:12px;
    line-height:1.42;
    white-space:normal;
  }
  .web-ch13-ch13-4-matrix td:first-child{
    display:block;
    padding:8px 10px;
    background:var(--track-tint);
    color:var(--track-strong);
    font-size:13px;
  }
  .web-ch13-ch13-4-matrix td::before{
    content:attr(data-label);
    color:var(--track-strong);
    font-size:12px;
    line-height:1.35;
    font-weight:850;
  }
  .web-ch13-ch13-4-matrix td:first-child::before{content:none}
  .web-ch13-ch13-4-note{font-size:12px}
}
@media (max-width: 360px){
  .web-ch13-ch13-4-frame{padding:12px}
  h1{font-size:19px}
  .web-ch13-ch13-4-matrix td{grid-template-columns:1fr;gap:2px}
}
