/**
 * 시스템 페이지(회사소개·이용안내) — 본문 + slim header 샘플 SSOT
 * Sub Header: includes/headers/system/subheader.php (nph)
 *
 * slim_header_v1: 통합 14포털 GNB 미노출 · Top Bar(nhx2) + 시스템 Sub Header + 본문
 */

/* ══ slim Top Bar — 데스크톱에서도 nhx2 단일 축 (S1~S3 대체) ══ */
.l14-shell[data-menu="system"] #layout-header > .l14-sec.l14-s1,
.l14-shell[data-menu="system"] #layout-header > .l14-sec.l14-s2,
.l14-shell[data-menu="system"] #layout-header > .l14-sec.l14-s3 {
  display: none !important;
}

.l14-shell[data-menu="system"] .portal-mobile-header--slim,
.l14-shell[data-menu="system"] .portal-mobile-header[data-sys-slim-header="1"] {
  display: block !important;
  border-bottom: 0;
}

.l14-shell[data-menu="system"] .nhx2-root--slim,
.l14-shell[data-menu="system"] .nhx2-root[data-sys-slim-header="1"] {
  display: block !important;
  position: sticky;
  top: 0;
  z-index: 9900;
}

.l14-shell[data-menu="system"] .nhx2-root--slim .nhx2-notice,
.l14-shell[data-menu="system"] .nhx2-root[data-sys-slim-header="1"] .nhx2-notice {
  display: none;
}

.l14-shell[data-menu="system"] .nhx2-root--slim .nhx2-cats,
.l14-shell[data-menu="system"] .nhx2-root[data-sys-slim-header="1"] .nhx2-cats {
  display: none !important;
}

.l14-shell[data-menu="system"] .nhx2-root--slim .nhx2-main,
.l14-shell[data-menu="system"] .nhx2-root[data-sys-slim-header="1"] .nhx2-main {
  min-height: 52px;
  border-bottom: 1px solid #e2e8f0;
}

/* 시스템 Sub Header — slim: 탭만 (정체성·크럼은 Top Bar·본문 breadcrumb) */
.nph-root.nph-system--slim .nph-identity,
.nph-root.nph-system--slim .nph-crumb {
  display: none !important;
}

.nph-root.nph-system--slim {
  position: sticky;
  top: 52px;
  z-index: 9800;
}

.l14-shell[data-menu="system"] .nph-root.nph-system--slim {
  top: var(--nhx2-sticky-bottom, 52px);
}

.sys-page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--news-page-inset-x, 0) 48px;
  font-size: var(--fs-base, 16px);
  color: #111827;
  line-height: 1.7;
}

.sys-page-body {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.sys-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  font-size: var(--fs-sm, 15px);
  color: #64748b;
  border-bottom: 1px solid #f1f5f9;
  background: #f8fafc;
}

.sys-breadcrumb a {
  color: #0a4d8c;
  text-decoration: none;
  font-weight: 600;
}

.sys-breadcrumb a:hover {
  text-decoration: underline;
}

.sys-breadcrumb-sep {
  color: #cbd5e1;
}

.sys-breadcrumb-current {
  color: #334155;
  font-weight: 600;
}

.sys-l2 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 20px;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
}

.sys-l2-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  font-size: var(--fs-sm, 15px);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.sys-l2-chip:hover {
  border-color: #0a4d8c;
  color: #0a4d8c;
}

.sys-l2-chip.is-active {
  background: #0a4d8c;
  border-color: #0a4d8c;
  color: #fff;
}

.sys-page-head {
  padding: 24px 20px 8px;
}

.sys-page-title {
  margin: 0 0 8px;
  font-size: var(--fs-2xl, 24px);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.4px;
}

.sys-page-lead {
  margin: 0;
  font-size: var(--fs-md, 17px);
  color: #64748b;
}

.sys-page-content {
  padding: 8px 20px 28px;
}

/* ── 샘플 콘텐츠 블록 ── */
.sys-section {
  margin-bottom: 28px;
}

.sys-section:last-child {
  margin-bottom: 0;
}

.sys-section h2 {
  margin: 0 0 12px;
  font-size: var(--fs-lg, 18px);
  font-weight: 700;
  color: #0a4d8c;
  border-left: 4px solid #0a4d8c;
  padding-left: 10px;
}

.sys-section p {
  margin: 0 0 12px;
  font-size: var(--fs-base, 16px);
  color: #334155;
}

.sys-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm, 15px);
}

.sys-info-table th,
.sys-info-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
}

.sys-info-table th {
  width: 32%;
  background: #f8fafc;
  color: #0a4d8c;
  font-weight: 700;
}

.sys-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.sys-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.sys-card:hover {
  border-color: #0a4d8c;
  box-shadow: 0 4px 14px rgba(10, 77, 140, 0.1);
}

.sys-card-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm, 15px);
  font-weight: 800;
  color: #fff;
}

.sys-card-title {
  font-size: var(--fs-md, 17px);
  font-weight: 700;
  color: #0f172a;
}

.sys-card-desc {
  font-size: var(--fs-sm, 15px);
  color: #64748b;
}

.sys-steps {
  display: grid;
  gap: 12px;
}

.sys-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.sys-step-num {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #0a4d8c;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-md, 17px);
  font-weight: 800;
}

.sys-step h3 {
  margin: 0 0 4px;
  font-size: var(--fs-md, 17px);
  font-weight: 700;
  color: #0f172a;
}

.sys-step p {
  margin: 0;
  font-size: var(--fs-sm, 15px);
  color: #475569;
}

.sys-cta {
  margin-top: 20px;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e8f0fe 0%, #f0f9ff 100%);
  border: 1px solid #bfdbfe;
}

.sys-cta p {
  margin: 0 0 10px;
  font-size: var(--fs-base, 16px);
  color: #1e3a5f;
}

.sys-cta a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 8px;
  background: #0a4d8c;
  color: #fff;
  font-size: var(--fs-md, 17px);
  font-weight: 700;
  text-decoration: none;
}

.sys-cta a:hover {
  background: #083d6f;
}

.sys-page-wrap .help-wrap {
  max-width: none;
  margin: 0;
  padding: 0 0 24px;
}

.sys-page-content--help {
  padding: 0;
}

@media (max-width: 768px) {
  .sys-page-wrap {
    padding-left: var(--news-page-inset-x-md, 10px);
    padding-right: var(--news-page-inset-x-md, 10px);
    padding-bottom: 32px;
  }

  .sys-breadcrumb {
    display: none;
  }

  .sys-breadcrumb,
  .sys-l2,
  .sys-page-head,
  .sys-page-content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .sys-page-title {
    font-size: var(--fs-xl, 20px);
  }

  .sys-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sys-page-wrap .help-hero {
    padding: 32px 16px;
  }

  .sys-page-wrap .help-hero-title {
    font-size: var(--fs-2xl, 24px);
  }
}

@media (max-width: 480px) {
  .sys-page-wrap {
    padding-left: var(--news-page-inset-x-sm, 8px);
    padding-right: var(--news-page-inset-x-sm, 8px);
  }

  .sys-card-grid {
    grid-template-columns: 1fr;
  }
}
