/* Canonical Serim section header: label → title → optional description.
 * All live clients, process and security headers use this BEM component.
 * Variants own layout and surface colors only; element typography is shared.
 */
.serim-section-header {
  --serim-section-header-label-color: var(--serim-text-secondary);
  --serim-section-header-title-color: var(--serim-text-primary);
  --serim-section-header-description-color: var(--serim-text-secondary);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
}

.serim-section-header > :where(
  .serim-section-header__label,
  .serim-section-header__title,
  .serim-section-header__description
) {
  margin: 0;
}

.serim-section-header__label {
  display: inline-block;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--serim-section-header-label-color);
  font-family: var(--vf-font-sans, "UCity Pro", "Pretendard Variable", Pretendard, Arial, sans-serif);
  font-size: 14px;
  font-weight: 600;
  font-style: normal;
  font-variation-settings: normal;
  letter-spacing: -0.01em;
  line-height: 24px;
  text-transform: none;
}

.serim-section-header__title {
  color: var(--serim-section-header-title-color);
  font-family: "Chiron Sung HK Hero", "Noto Serif CJK KR", "Nanum Myeongjo", serif;
  font-size: 1.75rem;
  font-weight: 500;
  font-style: normal;
  font-variation-settings: normal;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-transform: none;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
  text-rendering: optimizeLegibility;
}

.serim-section-header__description {
  max-width: 100%;
  color: var(--serim-section-header-description-color);
  font-family: var(--vf-font-sans, "UCity Pro", "Pretendard Variable", Pretendard, Arial, sans-serif);
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: normal;
  letter-spacing: normal;
  line-height: 1.5;
  text-transform: none;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.serim-section-header--process,
.serim-section-header--clients {
  align-items: center;
  width: 100%;
  text-align: center;
}

.serim-section-header--clients {
  padding: 0 15px;
}

.serim-section-header--process {
  position: relative;
  z-index: 2;
  max-width: none;
  justify-content: center;
}

.serim-section-header--security {
  --serim-section-header-label-color: var(--serim-text-weak-on-dark);
  --serim-section-header-title-color: var(--serim-text-primary-on-dark);
  --serim-section-header-description-color: var(--serim-text-weak-on-dark);
}

.serim-section-header--security .serim-section-header__title {
  max-width: 36rem;
}

.serim-section-header__title-line {
  display: inline;
}

.serim-section-header__mobile-break {
  display: none;
}

@media (min-width: 768px) {
  .serim-section-header__title {
    font-size: 2.25rem;
  }

  .serim-section-header__description {
    font-size: 18px;
  }
}

@media (min-width: 992px) {
  .serim-section-header__title {
    font-size: 2.5rem;
  }
}

@media (max-width: 767px) {
  .serim-section-header__mobile-break {
    display: inline;
  }

  .serim-section-header--security .serim-section-header__title-line {
    display: block;
  }
}

/* Deprecated compatibility for archived pages. New live markup must use the
 * serim-section-header component above.
 */
.vf-section-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
}

.vf-section-header > :where(.vf-section-label, .vf-section-heading, .vf-section-header__description) {
  margin: 0;
}

.vf-section-header--process,
.vf-section-header--clients {
  align-items: center;
  width: 100%;
  text-align: center;
}

.vf-section-header--clients {
  padding: 0 15px;
}

.vf-section-header.vf-section-header--clients .vf-section-heading.vf-section-heading--clients {
  color: var(--serim-text-primary);
  font-family: "Chiron Sung HK Hero", "Noto Serif CJK KR", "Nanum Myeongjo", serif;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
  text-rendering: optimizelegibility;
}

.vf-section-header.vf-section-header--clients .vf-section-header__description.vf-body-lg {
  max-width: 100%;
  color: var(--serim-text-secondary);
  font-family: var(--vf-font-sans, "UCity Pro", "Pretendard Variable", Pretendard, sans-serif);
  font-weight: 400;
  letter-spacing: 0;
  word-break: keep-all;
  text-wrap: pretty;
}

.vf-section-header__mobile-break {
  display: none;
}

@media (max-width: 767px) {
  .vf-section-header__mobile-break {
    display: inline;
  }
}
