.doc {
  /* 글자색을 여기서 다시 정하지 않는다 — `:root` 한 곳에 있다. */

  min-height: 100svh;
  background: linear-gradient(168deg, #f7f9fd 0%, #eef1f7 60%, #e7ecf5 100%);
  color: var(--ink-1);
}

.doc__head,
.doc__body,
.doc__foot {
  max-width: 68ch;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}

.doc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.doc__back {
  border: 0;
  background: none;
  padding: 8px 0;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-1);
  cursor: pointer;
}

.doc__back:hover {
  color: var(--pain-deep);
}

.doc__stamp {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.doc__body h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.doc__lead {
  margin-top: 16px;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink-2);
  text-wrap: pretty;
}

.doc__body section {
  margin-top: 40px;
}

.doc__body h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.doc__body p,
.doc__body li {
  margin-top: 12px;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--ink-2);
  text-wrap: pretty;
}

.doc__body ul {
  margin-top: 4px;
  padding-left: 20px;
}

.doc__body li {
  margin-top: 8px;
}

.doc__body a {
  color: var(--pain-deep);
}

.doc__table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.doc__table th,
.doc__table td {
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
  background: linear-gradient(90deg, rgba(var(--shade-rgb), calc(0.12 * var(--shade-k))), transparent 78%)
    no-repeat bottom / 100% 1px;
}

.doc__table th {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.doc__note {
  color: var(--ink-3) !important;
  font-size: 0.875rem !important;
}

.doc__warn {
  margin-top: 44px;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(163, 74, 56, 0.08);
  color: var(--pain-deep) !important;
}

.doc__foot {
  padding-top: 44px;
  padding-bottom: 56px;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--ink-3);
}

.doc__mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--ink-1);
}

.doc__side {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.doc__lang {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  text-decoration: none;
  padding: 8px 0;
}

.doc__lang:hover {
  color: var(--ink-1);
  text-decoration: underline;
  text-underline-offset: 3px;
}
