/* 요약·비교 문서(yogam-bicgi) — 정보 문서 톤, 브랜드 블루 정리 */

.wikidoc-body {
  --wikidoc-radius: 12px;
  --wikidoc-radius-sm: 8px;
  --wikidoc-shadow: 0 4px 24px -12px rgba(15, 23, 42, 0.08);
  --wikidoc-shadow-hover: 0 8px 28px -14px rgba(30, 144, 255, 0.18);
  --wikidoc-border: #e2e8f0;
  --wikidoc-surface: #ffffff;
  --wikidoc-muted: #64748b;
}

.wikidoc-body main.wikidoc-page {
  padding: clamp(72px, 14vw, 88px) 0 56px;
  background: linear-gradient(180deg, #e8f2fc 0%, #f1f5f9 18%, #f1f5f9 100%);
  overflow-x: clip;
}

.wikidoc-shell {
  max-width: 1100px;
  margin: 0 auto;
}

/* 제목 영역 */
.wikidoc-hgroup {
  margin-bottom: 24px;
  padding: 20px 22px 22px;
  border-radius: var(--wikidoc-radius);
  border: 1px solid var(--wikidoc-border);
  background: var(--wikidoc-surface);
  box-shadow: var(--wikidoc-shadow);
  border-left: 4px solid var(--brandColor, #1e90ff);
}
.wikidoc-hgroup h1 {
  font-size: clamp(1.4rem, 4.2vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #0f172a;
  line-height: 1.32;
  margin: 0 0 12px;
  word-break: keep-all;
}
.wikidoc-meta {
  font-size: 0.875rem;
  line-height: 1.72;
  color: var(--wikidoc-muted);
  margin: 0;
  max-width: 52em;
}
.wikidoc-meta strong {
  color: #334155;
  font-weight: 700;
}
.wikidoc-meta time {
  font-weight: 700;
  color: var(--brandColor, #1e90ff);
}

.wikidoc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 272px);
  gap: 24px;
  align-items: start;
}

.wikidoc-main {
  min-width: 0;
}

/* 목차 틀 */
.wikidoc-frame {
  border: 1px solid var(--wikidoc-border);
  border-radius: var(--wikidoc-radius);
  background: var(--wikidoc-surface);
  box-shadow: var(--wikidoc-shadow);
  margin-bottom: 24px;
  overflow: hidden;
}
.wikidoc-frame__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(105deg, rgba(30, 144, 255, 0.14) 0%, rgba(30, 144, 255, 0.04) 45%, #fff 100%);
  border-bottom: 1px solid var(--wikidoc-border);
  font-size: 0.9375rem;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: -0.02em;
}
.wikidoc-frame__head .wikidoc-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--brandColor, #1e90ff), #157fd4);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(30, 144, 255, 0.35);
}
.wikidoc-frame__body {
  padding: 0;
}
.wikidoc-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 0;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
}
.wikidoc-row:last-child {
  border-bottom: 0;
}
.wikidoc-row:hover {
  background: rgba(248, 250, 252, 0.85);
}
.wikidoc-row__ico {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-right: 1px solid #eef2f7;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--brandColor, #1e90ff);
}
.wikidoc-row__body {
  padding: 16px 18px 18px;
  font-size: 0.9375rem;
  line-height: 1.68;
  color: #334155;
  word-break: keep-all;
}
.wikidoc-row__body strong {
  display: block;
  font-size: 0.97rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.wikidoc-row__body ul {
  margin: 10px 0 0;
  padding-left: 1.2em;
}
.wikidoc-row__body li {
  margin-bottom: 6px;
}
.wikidoc-row__body a {
  color: var(--brandColor, #1e90ff);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(30, 144, 255, 0.35);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.wikidoc-row__body a:hover {
  color: #157fd4;
  border-bottom-color: rgba(21, 127, 212, 0.6);
}

/* 본문 섹션 */
.wikidoc-section {
  background: var(--wikidoc-surface);
  border: 1px solid var(--wikidoc-border);
  border-radius: var(--wikidoc-radius);
  padding: 22px 22px 24px;
  margin-bottom: 20px;
  box-shadow: var(--wikidoc-shadow);
}
.wikidoc-section h2 {
  font-size: clamp(1.02rem, 2.8vw, 1.15rem);
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(30, 144, 255, 0.45);
  letter-spacing: -0.025em;
  line-height: 1.35;
}
.wikidoc-section p {
  margin: 0 0 14px;
  font-size: 0.9375rem;
  line-height: 1.78;
  color: #334155;
}
.wikidoc-section p:last-child {
  margin-bottom: 0;
}

.wikidoc-ol {
  margin: 0 0 16px;
  padding-left: 1.4em;
  font-size: 0.9375rem;
  line-height: 1.78;
  color: #334155;
}
.wikidoc-ol li {
  margin-bottom: 10px;
}
.wikidoc-ol li::marker {
  color: var(--brandColor, #1e90ff);
  font-weight: 700;
}
.wikidoc-ol a {
  color: var(--brandColor, #1e90ff);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(30, 144, 255, 0.35);
}
.wikidoc-ol a:hover {
  border-bottom-color: rgba(21, 127, 212, 0.65);
}

.wikidoc-deflist {
  margin: 4px 0 0;
}
.wikidoc-deflist dt {
  margin-top: 18px;
  font-size: 0.9rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  padding: 4px 0 0;
  border-top: 1px dashed #e2e8f0;
}
.wikidoc-deflist dt:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.wikidoc-deflist dd {
  margin: 8px 0 0;
  padding: 10px 14px 12px 16px;
  border-left: 3px solid rgba(30, 144, 255, 0.45);
  border-radius: 0 var(--wikidoc-radius-sm) var(--wikidoc-radius-sm) 0;
  background: #f8fafc;
  font-size: 0.9375rem;
  line-height: 1.72;
  color: #475569;
}

.wikidoc-tablewrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0 18px;
  border: 1px solid var(--wikidoc-border);
  border-radius: var(--wikidoc-radius-sm);
  background: var(--wikidoc-surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.wikidoc-caption {
  caption-side: top;
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 800;
  color: #475569;
  padding: 12px 14px 8px;
  letter-spacing: -0.02em;
}
.wikidoc-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #1e293b;
}
.wikidoc-table th,
.wikidoc-table td {
  border: 1px solid #e8edf3;
  padding: 11px 12px;
  vertical-align: top;
  text-align: left;
}
.wikidoc-table thead th {
  background: linear-gradient(180deg, #eff6ff 0%, #e8f2fc 100%);
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
}
.wikidoc-table tbody tr:nth-child(even) td,
.wikidoc-table tbody tr:nth-child(even) th[scope="row"] {
  background: rgba(248, 250, 252, 0.65);
}
.wikidoc-table tbody th[scope="row"] {
  background: #f8fafc;
  font-weight: 800;
  color: #1e293b;
  white-space: nowrap;
}

.wikidoc-figure {
  margin: 0 0 24px;
  padding: 18px;
  border: 1px solid var(--wikidoc-border);
  border-radius: var(--wikidoc-radius);
  background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
  box-shadow: var(--wikidoc-shadow);
}
.wikidoc-figure img {
  display: block;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 30px -16px rgba(15, 23, 42, 0.2);
}
.wikidoc-figure figcaption {
  margin-top: 14px;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--wikidoc-muted);
  max-width: 48em;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.wikidoc-faqblock .wikidoc-faq-lead {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--wikidoc-muted);
  margin-bottom: 16px;
}
.wikidoc-faqlist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wikidoc-faqitem {
  border: 1px solid var(--wikidoc-border);
  border-radius: var(--wikidoc-radius-sm);
  background: #fafbff;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.wikidoc-faqitem:hover {
  border-color: rgba(30, 144, 255, 0.28);
  box-shadow: var(--wikidoc-shadow-hover);
}
.wikidoc-faqitem[open] {
  border-color: rgba(30, 144, 255, 0.35);
  background: #fff;
}
.wikidoc-faqitem summary {
  cursor: pointer;
  padding: 14px 16px 14px 40px;
  font-size: 0.9375rem;
  font-weight: 800;
  color: #0f172a;
  list-style: none;
  position: relative;
  letter-spacing: -0.02em;
}
.wikidoc-faqitem summary::-webkit-details-marker {
  display: none;
}
.wikidoc-faqitem summary::before {
  content: "＋";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--brandColor, #1e90ff);
  background: rgba(30, 144, 255, 0.1);
  border-radius: 6px;
  line-height: 1;
}
.wikidoc-faqitem[open] summary::before {
  content: "－";
}
.wikidoc-faqbody {
  padding: 0 16px 14px;
  border-top: 1px solid #f1f5f9;
  background: #fff;
}
.wikidoc-faqbody p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.72;
  color: #475569;
}

.wikidoc-backwrap {
  margin-top: 18px;
  margin-bottom: 0;
}

.wikidoc-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.wikidoc-sidebox {
  border: 1px solid var(--wikidoc-border);
  border-radius: var(--wikidoc-radius);
  background: var(--wikidoc-surface);
  padding: 16px 16px 18px;
  font-size: 0.8125rem;
  line-height: 1.58;
  color: #475569;
  box-shadow: var(--wikidoc-shadow);
}
.wikidoc-sidebox h3 {
  margin: 0 0 12px;
  padding-bottom: 8px;
  font-size: 0.8125rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  border-bottom: 2px solid rgba(30, 144, 255, 0.25);
}
.wikidoc-sidebox ul {
  margin: 0;
  padding-left: 1.1em;
}
.wikidoc-sidebox li {
  margin-bottom: 8px;
}
.wikidoc-sidebox a {
  color: var(--brandColor, #1e90ff);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.wikidoc-sidebox a:hover {
  border-bottom-color: rgba(30, 144, 255, 0.45);
  color: #157fd4;
}

.wikidoc-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  padding: 12px 20px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(145deg, var(--brandColor, #1e90ff), #157fd4);
  font-size: 0.875rem;
  font-weight: 800;
  color: #fff !important;
  text-decoration: none;
  box-shadow: 0 6px 20px -8px rgba(30, 144, 255, 0.55);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wikidoc-back:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -10px rgba(30, 144, 255, 0.55);
  color: #fff !important;
}

.wikidoc-note {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: var(--wikidoc-radius-sm);
  background: linear-gradient(135deg, rgba(30, 144, 255, 0.1) 0%, rgba(30, 144, 255, 0.04) 100%);
  border: 1px solid rgba(30, 144, 255, 0.22);
  font-size: 0.8125rem;
  line-height: 1.65;
  color: #334155;
}

@media (max-width: 959px) {
  .wikidoc-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .wikidoc-sidebar {
    position: static;
    order: -1;
  }
  .wikidoc-table {
    min-width: 0;
  }
}

@media (max-width: 586px) {
  .wikidoc-body main.wikidoc-page {
    padding: clamp(64px, 18vw, 76px) 0 40px;
  }
  .wikidoc-hgroup {
    padding: 16px 16px 18px;
  }
  .wikidoc-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .wikidoc-row__ico {
    padding: 14px 0;
    font-size: 14px;
  }
  .wikidoc-row__body {
    padding: 14px 14px 16px;
    font-size: 0.875rem;
  }
  .wikidoc-section {
    padding: 16px 16px 18px;
  }
  .wikidoc-figure {
    padding: 14px;
  }
  .wikidoc-faqitem summary {
    padding-left: 38px;
    font-size: 0.875rem;
  }
}

@media (max-width: 896px) and (orientation: landscape) {
  .wikidoc-body main.wikidoc-page {
    padding-top: 60px;
    padding-bottom: 32px;
  }
  .wikidoc-sidebar {
    position: static;
  }
}
