@charset "UTF-8";
/* sub.css — 시안D 서브페이지 공통 */

/* Sub hero — 공통 다크 배너 (전역 · 흰 텍스트) */
.sub-hero {
  position: relative;
  padding: 132px 0 56px; /* 상단은 floatnav(고정) 아래로 밀림 */
  color: #fff;
  overflow: hidden;
  background-color: var(--ink-900); /* fallback */
  background-image: url('../../images/page/sub-hero/sub-top-640.jpg');
  background-image: image-set(
    url('../../images/page/sub-hero/sub-top-640.webp') type('image/webp'),
    url('../../images/page/sub-hero/sub-top-640.jpg') type('image/jpeg')
  );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
@media (min-width: 641px) {
  .sub-hero {
    background-image: image-set(
      url('../../images/page/sub-hero/sub-top-1280.webp') type('image/webp'),
      url('../../images/page/sub-hero/sub-top-1280.jpg') type('image/jpeg')
    );
  }
}
@media (min-width: 1281px) {
  .sub-hero {
    background-image: image-set(
      url('../../images/page/sub-hero/sub-top-1920.webp') type('image/webp'),
      url('../../images/page/sub-hero/sub-top-1920.jpg') type('image/jpeg')
    );
  }
}
@media (min-width: 1921px) {
  .sub-hero {
    background-image: image-set(
      url('../../images/page/sub-hero/sub-top-2040.webp') type('image/webp'),
      url('../../images/page/sub-hero/sub-top-2040.jpg') type('image/jpeg')
    );
  }
}
.sub-hero > .container { position: relative; z-index: 1; text-align: center; }
.sub-hero .breadcrumb ol { justify-content: center; }
.sub-hero .page-title__desc { margin-left: auto; margin-right: auto; }

/* Breadcrumb */
.breadcrumb ol {
  display: flex; flex-wrap: wrap; align-items: center;
  padding: 0; margin: 0; list-style: none;
  font-size: 13px;
  line-height: 1;
  color: var(--ink-500);
}
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before {
  content: "\203A";
  margin: 0 10px;
  color: var(--line-strong);
  font-size: 14px;
  line-height: 1;
}
.breadcrumb a,
.breadcrumb [aria-current="page"] {
  display: inline-flex; align-items: center;
  color: inherit;
  transition: color .15s ease;
}
.breadcrumb a:hover { color: var(--kor-red); }
.breadcrumb [aria-current="page"] { color: var(--ink-900); font-weight: 500; }
.breadcrumb i { font-size: 16px; line-height: 1; }
/* sub-hero(다크 배너) 안에서는 밝은 톤 */
.sub-hero .breadcrumb ol { color: rgba(255,255,255,.72); }
.sub-hero .breadcrumb li + li::before { color: rgba(255,255,255,.5); }
.sub-hero .breadcrumb [aria-current="page"] { color: #fff; }
.sub-hero .breadcrumb a:hover { color: #fff; }

/* Page title */
.page-title {
  font-family: var(--font-title);
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 800;
  color: var(--ink-900);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-top: 18px;
  word-break: keep-all;
}
.page-title__desc {
  margin-top: 14px;
  font-size: 15px; line-height: 1.65;
  color: var(--ink-500);
  max-width: 720px;
  word-break: keep-all;
}
/* sub-hero(다크 배너) 안에서는 밝은 톤 + 텍스트 섀도우 */
.sub-hero .page-title { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.sub-hero .page-title__desc { color: rgba(255,255,255,.88); text-shadow: 0 1px 8px rgba(0,0,0,.35); }

/* Sub main — 본문 상하 여백 */
.sub-main {
  padding: 60px 0 100px;
  background: #fff;
}

/* Coming Soon — 준비중 페이지 공용 */
.coming-soon {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 80px 20px;
  min-height: 420px;
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.coming-soon__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--kor-red-50);
  color: var(--kor-red);
  margin-bottom: 24px;
  box-shadow: 0 10px 24px -8px rgba(201,10,10,.25);
}
.coming-soon__icon i { font-size: 48px; line-height: 1; }
.coming-soon__title {
  font-family: var(--font-title, inherit);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.coming-soon__desc {
  font-size: 15px; line-height: 1.65;
  color: var(--ink-500);
  margin-bottom: 32px;
  word-break: keep-all;
}
.coming-soon__actions {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.coming-soon__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-size: 14px; font-weight: 700; line-height: 1;
  transition: var(--tr-base);
}
.coming-soon__btn i { font-size: 18px; }
.coming-soon__btn--primary {
  background: var(--grad-main);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(201,10,10,.55);
}
.coming-soon__btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -6px rgba(201,10,10,.65);
}
.coming-soon__btn--ghost {
  background: #fff;
  color: var(--ink-700);
  border: 1px solid var(--line);
}
.coming-soon__btn--ghost:hover {
  color: var(--kor-red);
  border-color: var(--kor-red);
}

/* Form base — 폼 원자 (입력 · 체크 · 동의 · 안내 · 액션) */
.form-required { color: var(--kor-red); font-weight: 700; }

.form-control {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: #fff;
  font-family: inherit;
  font-size: 14px; color: var(--ink-900);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control::placeholder { color: var(--ink-500); }
.form-control:focus {
  outline: 0;
  border-color: var(--kor-red);
  box-shadow: 0 0 0 3px rgba(201,10,10,0.12);
}
.form-control:disabled { background: #fafafa; color: var(--ink-500); cursor: not-allowed; }
.form-control--textarea {
  min-height: 140px;
  padding: 12px 14px;
  line-height: 1.6;
  resize: vertical;
}
select.form-control {
  appearance: none; -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.form-check-group { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.form-check-group--row { flex-direction: row; flex-wrap: wrap; gap: 8px 20px; }
.form-check-group--grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 16px;
}
.form-check {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--ink-700);
  cursor: pointer;
  user-select: none;
  min-height: 32px;
}
.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s ease, border-color .15s ease;
  position: relative;
}
.form-check input[type="checkbox"] { border-radius: 3px; }
.form-check input[type="radio"] { border-radius: 50%; }
.form-check input:hover { border-color: var(--kor-red); }
.form-check input:checked { background: var(--kor-red); border-color: var(--kor-red); }
.form-check input[type="checkbox"]:checked::after {
  content: ""; position: absolute; top: 1px; left: 5px;
  width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.form-check input[type="radio"]:checked::after {
  content: ""; position: absolute; inset: 3px;
  border-radius: 50%; background: #fff;
}
.form-check input:focus-visible { outline: 2px solid var(--kor-red); outline-offset: 2px; }

.form-agree { display: flex; flex-direction: column; gap: 10px; }
.form-agree__box {
  padding: 14px 16px;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 13px; line-height: 1.7;
  color: var(--ink-700);
  max-height: 180px; overflow-y: auto;
}
.form-agree__box p { margin: 0 0 4px; }
.form-agree__box p:last-child { margin-bottom: 0; }
.form-agree__box strong { color: var(--ink-900); }

/* 안내박스 · (아이콘 + 제목) + 본문 구조 */
.form-notice {
  display: flex; flex-direction: column;
  gap: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
  background: #f5f6f8;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  color: var(--ink-700);
  font-size: 13px; line-height: 1.7;
}
.form-notice__head {
  display: flex;
  flex-direction: row;
  align-items: flex-start; /* 아이콘 = 제목 첫 줄 세로 중앙 (line-height 매칭) */
  gap: 8px;
}
.form-notice__head > i {
  font-size: 18px;
  line-height: 1;          /* 100% — 아이콘 라인박스를 글리프 크기와 일치시켜 제목 첫 줄과 세로 중앙 정렬 */
  color: var(--ink-500);
  flex-shrink: 0;
}
.form-notice__title {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink-900);
}
.form-notice__body { color: var(--ink-700); }
.form-notice__body p { margin: 0 0 6px; }
.form-notice__body p:last-child { margin-bottom: 0; }
.form-notice__body ul { margin: 0; }
.form-notice__body li { margin: 2px 0; }
.form-notice__body strong { color: var(--ink-900); font-weight: 700; }

/* 기본 안내박스(variant 없음): 아이콘 대신 작은 dot 마커 */
.form-notice:not([class*="form-notice--"]) .form-notice__head > i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink-500);
  margin-top: 7px;         /* 제목 첫 줄 세로 중앙에 위치 (line-height 19.6 기준) */
  font-size: 0;            /* boxicon 원본 아이콘 숨김 */
}
.form-notice:not([class*="form-notice--"]) .form-notice__head > i::before { display: none; }

/* 알림 · Info (파랑) */
.form-notice--info { background: rgba(30,110,220,.04); border-color: rgba(30,110,220,.25); }
.form-notice--info .form-notice__head > i { color: #1e6edc; }

/* 성공 · Success (녹색) */
.form-notice--success { background: rgba(0,140,90,.04); border-color: rgba(0,140,90,.25); }
.form-notice--success .form-notice__head > i { color: #008c5a; }

/* 주의 · Warning (앰버) */
.form-notice--warning { background: rgba(180,90,20,.05); border-color: rgba(180,90,20,.28); }
.form-notice--warning .form-notice__head > i { color: #b45a14; }

/* 경고/오류 · Danger (붉은) */
.form-notice--danger { background: rgba(201,10,10,.04); border-color: rgba(201,10,10,.20); }
.form-notice--danger .form-notice__head > i { color: var(--kor-red); }

.form-actions {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
}

/* Stack form — 라벨(상) + 인풋(하) 세로 정렬 폼 */
.stack-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stack-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stack-form__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.4;
}
.stack-form__help {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-500);
}
.stack-form__help--error { color: var(--kor-red); }
.stack-form__help--success { color: #008c5a; }

/* 인풋 + 우측 보조 버튼 (인증번호 발송 · 확인 등) */
.stack-form__control-inline {
  display: flex;
  gap: 8px;
}
.stack-form__control-inline .form-control { flex: 1; min-width: 0; }
.stack-form__control-inline .btn {
  height: 44px;
  padding: 0 16px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 액션 영역 (제출 버튼 등) */
.stack-form__actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}
.stack-form__actions .btn { height: 48px; font-size: 14px; }
.stack-form__actions .btn.fill { flex: 1; }

/* Find result — 아이디/비밀번호 찾기 결과 패널 */
.find-result {
  text-align: center;
  padding: 12px 8px 4px;
}
.find-result__icon {
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--kor-red-50, #ffe6e6);
  color: var(--kor-red);
}
.find-result__icon i { font-size: 36px; line-height: 1; }
.find-result__title {
  font-size: 18px; font-weight: 700;
  color: var(--ink-900);
  margin: 0 0 6px;
  line-height: 1.4;
}
.find-result__desc {
  font-size: 13px;
  color: var(--ink-500);
  margin: 0 0 16px;
}
.find-result__id {
  display: inline-block;
  padding: 12px 24px;
  background: #fafafa;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 16px; font-weight: 700;
  color: var(--kor-red);
  margin-bottom: 8px;
  min-width: 240px;
}
.find-result__meta {
  font-size: 12px; color: var(--ink-500);
  margin: 0 0 20px;
}
.find-result__actions {
  display: flex; gap: 8px; justify-content: center;
  flex-wrap: wrap;
}
.find-result__actions .btn { height: 44px; min-width: 120px; }

/* Sub tabs — 서브페이지 내부 탭 (공용, 세그먼트 컨트롤 스타일) */
.sub-tabs {
  display: flex;
  gap: 0;
  padding: 4px;
  margin-bottom: 28px;
  background: #f1f3f5;
  border-radius: var(--r-md);
  width: 100%;
}
.sub-tabs__item {
  flex: 1;
  padding: 11px 20px;
  text-align: center;
  font-size: 14px; font-weight: 600;
  color: var(--ink-500);
  background: transparent;
  border: 0;
  border-radius: calc(var(--r-md) - 2px);
  cursor: pointer;
  transition: color .15s ease, background .15s ease, box-shadow .15s ease;
  word-break: keep-all;
  min-width: 0;
}
.sub-tabs__item:hover:not(.is-active) {
  color: var(--ink-900);
  background: rgba(255,255,255,.5);
}
.sub-tabs__item.is-active {
  color: var(--kor-red);
  background: #fff;
  box-shadow: 0 2px 6px -2px rgba(0,0,0,.14);
  font-weight: 700;
  cursor: default;
}
.sub-tabs__item:focus-visible {
  outline: 2px solid var(--kor-red);
  outline-offset: 1px;
}

/* About intro — 운영센터 소개(인사말) : 좌 일러스트 + 우 본문 */
.about-intro {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 20px;
}
.about-intro__visual {
  flex: 0 0 39%;
  max-width: 480px;
}
.about-intro__visual img {
  display: block;
  width: 100%;
  height: auto;
}
.about-intro__body {
  flex: 1;
  min-width: 0;
  color: var(--ink-800);
  font-size: 18px;
  line-height: 1.6;
  word-break: keep-all;
}
.about-intro__title {
  margin: 0 0 44px;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}
.about-intro__title strong { color: var(--kor-red); font-weight: 700; }
.about-intro__para { margin: 0 0 28px; }
.about-intro__para:last-child { margin-bottom: 0; }
.about-intro__para strong { color: var(--kor-red); font-weight: 600; }

/* 핵심전략 박스 (원형 배지 + 한/영 2줄) */
.about-intro__strategy {
  padding: 20px;
  margin-bottom: 28px;
  background: var(--kor-red-50);
  border-radius: var(--r-sm);
}
.about-intro__item { margin-bottom: 10px; }
.about-intro__item:last-child { margin-bottom: 0; }
.about-intro__item-ko {
  display: flex;
  align-items: flex-start;
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink-900);
}
.about-intro__item-en {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-800);
}
.about-intro__badge {
  display: inline-block;
  width: 30px; height: 30px;
  margin-right: 10px;
  margin-top: 2px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--kor-red);
  color: #fff;
  text-align: center;
  font-size: 22px; font-weight: 800; line-height: 30px;
}
/* P는 줄기가 왼쪽에 몰려 있어 시각 보정 */
.about-intro__item:nth-child(2) .about-intro__badge { text-indent: 2px; }
.about-intro__item-en b { font-weight: 700; }

/* Responsive */
@media (max-width: 768px) {
  .sub-hero { padding: 104px 0 40px; }
  .page-title { margin-top: 14px; }
  .page-title__desc { font-size: 14px; }
  .sub-main { padding: 40px 0 60px; }
  .coming-soon { padding: 60px 16px; min-height: 360px; }
  .coming-soon__icon { width: 80px; height: 80px; }
  .coming-soon__icon i { font-size: 40px; }
  .coming-soon__desc { font-size: 14px; }
  .coming-soon__btn { padding: 11px 18px; font-size: 13px; }

  /* Sub tabs : 탭 갯수 유동 대응 — 가로 스와이프 스크롤 (탭 폭은 콘텐츠 기준 고정) */
  .sub-tabs {
    padding: 3px;
    border-radius: var(--r-sm);             /* 모바일: 14px → 8px 로 축소 */
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;      /* iOS 관성 스크롤 */
    scroll-snap-type: x proximity;
    scrollbar-width: none;                  /* Firefox */
    -ms-overflow-style: none;               /* IE/Edge legacy */
    flex-wrap: nowrap;
  }
  .sub-tabs::-webkit-scrollbar { display: none; }  /* Chrome/Safari */
  .sub-tabs__item {
    flex: 0 0 auto;                         /* 폭 유지 · 축소 금지 */
    padding: 10px 16px;
    font-size: 13px;
    border-radius: calc(var(--r-sm) - 2px); /* 활성 pill 도 프레임과 비례 축소 (6px) */
    scroll-snap-align: start;
  }

  /* About intro : 세로 배치 */
  .about-intro { flex-direction: column; align-items: stretch; gap: 28px; margin-top: 0; }
  .about-intro__visual { flex: none; max-width: 320px; margin: 0 auto; }
  .about-intro__body { font-size: 16px; }
  .about-intro__title { margin-bottom: 28px; }
  .about-intro__para { margin-bottom: 20px; }
  .about-intro__strategy { padding: 16px; margin-bottom: 20px; }
  .about-intro__item-ko { font-size: 18px; }
  .about-intro__item-en { font-size: 15px; }
  .about-intro__badge { width: 26px; height: 26px; margin-right: 8px; margin-top: 1px; font-size: 19px; line-height: 26px; }
}

/* 외부연동 목록 상단 현황 블록을 페이지 헤더에서 띄움 */
main.ext-body > .container > .stats-summary,
main.ext-body > .container > .stats-wrap { margin-top: 60px; }
@media (max-width: 768px) {
  main.ext-body > .container > .stats-summary,
  main.ext-body > .container > .stats-wrap { margin-top: 40px; }
}
