/* About / eLabel page — print-friendly, no app-shell dependency. */

.about-page {
  background: var(--bg-base, #f7f8fa);
  color: var(--text-primary, #1f2433);
  margin: 0;
}

.about-layout {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 24px 80px;
}

/* TOC + doc layout (left sticky TOC + single-page scroll) */
.about-layout--toc {
  max-width: 1180px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
  padding: 24px 32px 80px;
  align-items: start;
}

.about-toc {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  border: 1px solid var(--border-subtle, #e3e6ee);
  border-radius: 10px;
  padding: 16px 16px 12px;
  background: #ffffff;
  font-size: 13px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-toc__brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  line-height: 1.2;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle, #e3e6ee);
}
.about-toc__brand strong { font-size: 0.95rem; }
.about-toc__brand span {
  font-size: 0.7rem;
  color: var(--text-muted, #6a7185);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.about-toc h2 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted, #6b7280);
  margin: 0;
  font-weight: 600;
}
.about-toc ul { list-style: none; margin: 0; padding: 0; }
.about-toc li { margin: 2px 0; }
.about-toc a {
  color: var(--text-primary, #1f2433);
  text-decoration: none;
  display: block;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 12.5px;
}
.about-toc a:hover { background: #f3f4f6; }

.about-toc__back {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle, #e3e6ee);
  font-size: 12px;
  color: var(--text-muted, #6a7185) !important;
  text-decoration: none;
}
.about-toc__back:hover { color: var(--text-primary, #1f2433) !important; background: transparent !important; }

.about-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0 20px;
  border-bottom: 1px solid var(--border-subtle, #e3e6ee);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.about-header__brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  line-height: 1.2;
}
.about-header__brand strong { font-size: 1.05rem; }
.about-header__brand span {
  font-size: 0.75rem;
  color: var(--text-muted, #6a7185);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.about-header__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 0.9rem;
}
.about-header__nav a {
  color: var(--text-muted, #6a7185);
  text-decoration: none;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}
.about-header__nav a:hover { color: var(--text-primary, #1f2433); }
.about-header__nav a.is-active {
  color: var(--text-primary, #1f2433);
  border-bottom-color: var(--accent, #2f6df4);
  font-weight: 600;
}
.about-header__nav a.is-disabled {
  color: #b8bcc9;
  cursor: not-allowed;
  pointer-events: none;
}

.about-doc {
  background: #ffffff;
  border: 1px solid var(--border-subtle, #e3e6ee);
  border-radius: 12px;
  padding: 32px 36px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.about-warning {
  background: #fff5f5;
  border: 2px solid #d92020;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 28px;
  color: #6b1010;
}
.about-warning h2 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #d92020;
  letter-spacing: 0.01em;
}
.about-warning p { margin: 0; line-height: 1.55; font-size: 0.95rem; }

.about-doc__header {
  margin-bottom: 28px;
}
.about-eyebrow {
  margin: 0 0 6px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted, #6a7185);
}
.about-doc__header h1 {
  margin: 0 0 12px;
  font-size: 1.7rem;
  letter-spacing: -0.01em;
}
.about-doc__subtitle {
  margin: 0;
  color: var(--text-muted, #4f5666);
  font-size: 0.95rem;
  line-height: 1.55;
}

.about-section {
  margin-bottom: 28px;
}
.about-section h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle, #e3e6ee);
  padding-bottom: 6px;
}

/* MFDS 9개 섹션 — ol 기반 번호 매김 */
.about-sections {
  list-style: none;
  counter-reset: about-sec;
  padding: 0;
  margin: 0;
}
.about-sec {
  counter-increment: about-sec;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle, #e3e6ee);
  scroll-margin-top: 16px;
}
.about-sec:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.about-sec > h2 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.about-sec > h2::before {
  content: counter(about-sec) ".";
  display: inline-block;
  min-width: 1.6em;
  font-size: 1.05rem;
  color: var(--accent, #2f6df4);
  font-weight: 800;
}

/* 라이선스 등 번호 없는 추가 섹션 */
.about-sec--extra {
  counter-increment: none;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle, #e3e6ee);
}
.about-sec--extra > h2::before { content: none; }
.about-sec--extra > h2 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.about-subh {
  margin: 20px 0 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary, #1f2433);
}

.about-statement {
  margin: 0;
  padding: 12px 14px;
  background: #f7f8fa;
  border-left: 3px solid #c9cdd8;
  border-radius: 4px;
  font-size: 0.92rem;
  line-height: 1.6;
}
.about-statement--accent {
  background: #fff7e6;
  border-left-color: #f5a623;
  color: #8a4b00;
  font-weight: 600;
}

.about-pill {
  display: inline-block;
  padding: 1px 8px;
  margin-right: 6px;
  font-size: 0.78rem;
  background: #eef2ff;
  color: #3548a3;
  border-radius: 999px;
  font-weight: 600;
}
.about-aside {
  font-size: 0.8rem;
  color: var(--text-muted, #6a7185);
  margin-left: 4px;
}

.about-meta {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.about-meta__row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px dashed #eef0f5;
  align-items: baseline;
}
.about-meta__row:last-child { border-bottom: none; }
.about-meta__row dt {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted, #4f5666);
}
.about-meta__row dd {
  margin: 0;
  font-size: 0.92rem;
  word-break: break-word;
}
.about-meta__row code {
  font-size: 0.85rem;
  background: #f3f4f8;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.about-meta__row--block {
  grid-template-columns: 1fr;
  gap: 4px;
}
.about-meta__row--block dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.about-meta__row--block dd { line-height: 1.55; }

.about-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted, #4f5666);
  line-height: 1.55;
  padding: 10px 14px;
  background: #f7f8fa;
  border-left: 3px solid #c9cdd8;
  border-radius: 4px;
}

.about-license-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 8px 0 16px;
}
.about-license-table th,
.about-license-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid #eef0f5;
}
.about-license-table th {
  background: #f7f8fa;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted, #4f5666);
}
.about-license-table a { color: var(--accent, #2f6df4); text-decoration: none; }
.about-license-table a:hover { text-decoration: underline; }

.about-doc__footer {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle, #e3e6ee);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-muted, #4f5666);
}

@media (max-width: 900px) {
  .about-layout--toc {
    grid-template-columns: 1fr;
    padding: 16px 16px 60px;
  }
  .about-toc {
    position: static;
    max-height: none;
  }
}

@media (max-width: 640px) {
  .about-meta__row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media print {
  .about-page { background: #ffffff; }
  .about-toc,
  .about-header__nav,
  .about-doc__footer button { display: none; }
  .about-layout--toc {
    display: block;
    max-width: 880px;
    padding: 0;
  }
  .about-doc {
    border: none;
    box-shadow: none;
    padding: 0;
  }
  .about-warning { border-width: 1px; }
  a { color: inherit; text-decoration: none; }
}
