@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard-dynamic-subset.min.css");

/* ===========================================================
   공무원연금공단 안내문서 공통 스타일
   대상: pensionPayment / statusChangeGuide /
         survivorPension / splitPension
   =========================================================== */

:root {
  --brand-500: #f6941d;
  --brand-400: #ffa733;
  --brand-300: #ffc46b;
  --brand-050: #fff6e6;
  --brand-ink: #8a4b00;

  --ink-900: #1a1a1a;
  --ink-700: #3d3d3d;
  --ink-500: #6b6b6b;
  --line: #e4e4e7;
  --line-strong: #cfcfd4;
  --bg: #f4f5f7;
  --card: #ffffff;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;

  --pad: 13px;
}

* {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink-900);
  font-family: Pretendard, "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 14px;
  line-height: 1.62;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* ---------- 히어로 ---------- */
.hero {
  position: relative;
  margin: 8px;
  padding: 22px 18px;
  text-align: center;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #ffb340 0%, #f6941d 55%, #ef8010 100%);
  color: #fff;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -46px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
}

/* 제목은 항상 한 줄로 유지한다.
   4종 중 가장 긴 "신상 변동 신고사항 및 방법"이 320px 화면에서 229px,
   확보 폭 264px 안에 들어오는 것을 확인했다. */
.hero__title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.3;
  white-space: nowrap;
  text-align: center;
}

/* ---------- 리드 문장 ---------- */
.lead {
  margin: 0 8px 12px;
  padding: 13px 14px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-700);
}

/* ---------- 경고/안내 박스 ---------- */
.notice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0 8px 12px;
  padding: 14px;
  border-radius: var(--r-md);
  background: var(--brand-050);
  border: 1px solid var(--brand-300);
  text-align: center;
}

.notice__icon {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-500);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
}

.notice__text {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-ink);
}

/* ---------- 섹션 카드 ---------- */
.section {
  margin: 0 8px 10px;
  padding: 14px var(--pad) 16px;
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--line);
}

.section__title {
  margin: 0 0 10px;
  padding-left: 10px;
  border-left: 3px solid var(--brand-500);
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.section__note {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-500);
}

.section__desc {
  margin: 0 0 10px;
  font-size: 13.5px;
  color: var(--ink-700);
}

.section__sub {
  margin: 14px 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-900);
}

.section__sub:first-child {
  margin-top: 0;
}

/* ---------- 배지 + 내용 블록 ---------- */
.block {
  margin-top: 10px;
}

.badge {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-500);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.badge--soft {
  background: var(--brand-050);
  color: var(--brand-ink);
  border: 1px solid var(--brand-300);
}

.block__body {
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--brand-050);
  font-size: 13.5px;
  color: var(--ink-700);
}

/* 블록 안의 단순 문단 (원문 문장을 쪼개지 않고 그대로 둘 때) */
.plain {
  margin: 0;
}

/* 경로 흐름 (연금복지포털 ➡ 로그인 ➡ …)
   최대 2줄 고정. 폭이 모자라면 줄을 늘리지 않고 좌우 스크롤한다. */
.flow-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding-bottom: 4px;
}

.flow {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: max-content;
  min-width: 100%;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
}

.flow__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}

.flow__step {
  flex: none;
  padding: 2px 8px;
  border-radius: var(--r-sm);
  background: #fff;
  border: 1px solid var(--brand-300);
}

.flow__arrow {
  flex: none;
  color: var(--brand-500);
  font-weight: 800;
}

/* 스크롤 가능하다는 것을 알 수 있도록 얇은 스크롤바를 항상 노출 */
.flow-scroll::-webkit-scrollbar {
  height: 4px;
}

.flow-scroll::-webkit-scrollbar-track {
  background: rgba(246, 148, 29, 0.14);
  border-radius: 999px;
}

.flow-scroll::-webkit-scrollbar-thumb {
  background: var(--brand-300);
  border-radius: 999px;
}

.flow-scroll {
  scrollbar-width: thin;
  scrollbar-color: var(--brand-300) rgba(246, 148, 29, 0.14);
}

/* ---------- 리스트 ---------- */
.list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list > li {
  position: relative;
  padding-left: 12px;
  font-size: 13.5px;
  color: var(--ink-700);
}

.list > li + li {
  margin-top: 6px;
}

.list > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand-500);
}

.list--num {
  counter-reset: n;
}

.list--num > li {
  padding-left: 24px;
}

.list--num > li::before {
  counter-increment: n;
  content: counter(n);
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-500);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

/* ---------- 표 ---------- */
.table-wrap {
  margin-top: 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--brand-300) rgba(246, 148, 29, 0.14);
}

.table-wrap::-webkit-scrollbar {
  height: 4px;
}

.table-wrap::-webkit-scrollbar-track {
  background: rgba(246, 148, 29, 0.14);
}

.table-wrap::-webkit-scrollbar-thumb {
  background: var(--brand-300);
  border-radius: 999px;
}

table.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

table.doc-table {
  table-layout: fixed;
}

table.doc-table th,
table.doc-table td {
  padding: 8px 9px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
  line-height: 1.5;
}

/* 불릿 목록 셀은 목록 덩어리를 가운데 두고 글은 왼쪽 정렬 */
table.doc-table--dense ul.cellist {
  display: inline-block;
  text-align: left;
}

/* 신고대상 / 의무자 2열 배분 — 2번 페이지 표가 폭 안에 들어오도록 */
table.doc-table--2col col.c1 { width: 68% }
table.doc-table--2col col.c2 { width: 32% }

table.doc-table th {
  background: #f3f4f6;
  font-weight: 700;
  color: var(--ink-900);
  text-align: center;
}

table.doc-table td:last-child,
table.doc-table th:last-child {
  border-right: 0;
}

table.doc-table tr:last-child td {
  border-bottom: 0;
}

table.doc-table td.center {
  white-space: nowrap;
  color: var(--ink-700);
}

/* 조밀한 다열 표 (급여 종류 / 개시연령) */
table.doc-table--dense {
  table-layout: fixed;
}

table.doc-table--dense th,
table.doc-table--dense td {
  padding: 6px 5px;
  font-size: 11px;
  line-height: 1.45;
}

/* 급여 종류 / 기준 / 지급금액 3열 배분 */
table.doc-table--3col col.c1 { width: 21% }
table.doc-table--3col col.c2 { width: 45% }
table.doc-table--3col col.c3 { width: 34% }

table.doc-table--dense td.head {
  background: #fbfbfc;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

table.doc-table--dense ul.cellist {
  margin: 0;
  padding: 0;
  list-style: none;
}

table.doc-table--dense ul.cellist > li {
  position: relative;
  padding-left: 9px;
}

table.doc-table--dense ul.cellist > li + li {
  margin-top: 4px;
}

table.doc-table--dense ul.cellist > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--brand-500);
}

/* ---------- 산식 박스 ---------- */
.formula {
  margin-top: 6px;
  padding: 12px;
  border-radius: var(--r-sm);
  background: var(--brand-050);
  border: 1px dashed var(--brand-300);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--brand-ink);
  text-align: center;
}

.note {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--ink-500);
}

/* ---------- 연락처 ---------- */
.tel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 800;
  color: var(--brand-500);
  text-decoration: none;
}

/* ---------- 이전 / 다음 문서 이동 ---------- */
.pagenav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 16px 8px 0;
}

.pagenav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 104px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.pagenav__btn svg {
  width: 15px;
  height: 15px;
}

.pagenav__btn--next {
  background: linear-gradient(135deg, #ffb340 0%, #f6941d 60%, #ef8010 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(239, 128, 16, 0.28);
}

.pagenav__btn--prev {
  background: #fff;
  color: var(--brand-500);
  border: 1px solid var(--brand-300);
}

.pagenav__btn:active {
  transform: translateY(1px);
}

/* ---------- 푸터 여백 (수어 플레이어 겹침 방지) ---------- */
.doc-footer-space {
  height: 72px;
}

/* ---------- 수어 타겟 강조 ---------- */
[data-signlanguage="target"] {
  cursor: pointer;
}

/* 플레이어는 mouseover 시 타깃에 .eq_hover 를 붙이고 밑줄을 긋는다.
   다만 .flow 처럼 자식이 flex 항목이면 text-decoration 이 전파되지 않아
   칩에는 밑줄이 걸리지 않는다. 한 문장을 이루는 조각 전체에 직접 건다. */
.eq_hover,
.eq_hover * {
  text-decoration: underline;
  text-decoration-color: var(--brand-500);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* ---------- 큰 화면에서는 가운데 정렬 ---------- */
@media (min-width: 640px) {
  body {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 0 1px var(--line);
  }
}
