@charset "UTF-8";
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

/* ── 토큰 ── */
:root {
  /* 브랜드 */
  --brand-900: #16407f;
  --brand-700: #1c50a7; /* 주 버튼·활성 탭·스텝 활성 */
  --brand-600: #1c68ce; /* 활성 칩·링크 강조 */
  --brand-300: #8fb4e6;
  --brand-100: #dbeafe; /* 상태 뱃지 배경 */
  --brand-50: #eef4fc;

  /* 중립 */
  --bg-page: #f4f7fa;
  --bg-section: #f6f9fc;
  --surface: #ffffff;
  --surface-sunken: #fafbfd;
  --line: #e5e9ef;
  --line-strong: #d5dbe3;

  /* 텍스트 */
  --text-900: #111827;
  --text-700: #374151;
  --text-500: #5b6472; /* 보조 텍스트 */
  --text-ph: #8a93a0; /* placeholder 전용 */
  --text-invert: #ffffff;

  /* 상태 */
  --danger: #b4322f;
  --danger-bg: #fdf3f3;
  --danger-line: #f0d2d1;
  --success: #12805c;
  --success-bg: #edf8f3;
  --warn: #946200;
  --info-bg: #eff6fe;
  --info-line: #cfe2f8;

  --footer-bg: #1a1f2c;
  --footer-text: #c4cad6;
  --footer-dim: #8b93a3;

  /* 형태 */
  --r-pill: 999px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;

  /* 그림자 — 시안이 테두리 위주라 아주 옅게만 */
  --sh-1: 0 1px 2px rgba(17, 24, 39, 0.04);
  --sh-2: 0 2px 8px rgba(17, 24, 39, 0.06);
  --sh-3: 0 12px 32px rgba(17, 24, 39, 0.1);
  --sh-modal: 0 24px 64px rgba(17, 24, 39, 0.22);

  /* 간격 8pt 그리드 */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 20px;
  --s6: 24px;
  --s8: 32px;
  --s10: 40px;
  --s12: 48px;
  --s16: 64px;
  --s20: 80px;

  --container: 1200px; /* 본문 폭. 헤더만 1280 을 따로 씁니다 */
  --header-w: 1280px;
  --gutter: var(--s8); /* 화면 좌우 여백 — 본문·헤더·푸터 공통. 폭별로 680:24 · 520:20 · 390:16 */
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

/* ── 리셋 ── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
  scroll-padding-top: 120px;
}
body {
  margin: 0;
  touch-action: manipulation; /* 더블탭 확대 지연 제거 */
  -webkit-tap-highlight-color: rgba(28, 80, 167, 0.12);
  font-family:
    "Pretendard",
    "Pretendard GOV",
    -apple-system,
    BlinkMacSystemFont,
    system-ui,
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: var(--text-900);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: tabular-nums;
}
img {
  max-width: 100%;
  display: block;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
table {
  border-collapse: collapse;
  width: 100%;
}
h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  font-weight: 700;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
svg {
  flex-shrink: 0;
}
[hidden] {
  display: none !important;
}

/* 포커스 — outline:none 금지 (KRDS 필수) */
:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 본문 바로가기 */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--brand-700);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--r-md) 0;
}
.skip:focus {
  left: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── 레이아웃 ── */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
/* 960px 은 표·입력칸이 좁아 넓혔습니다. 헤더(1280)보다는 조금 안쪽 */
.wrap--narrow {
  max-width: var(--container);
}
.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.site__body {
  flex: 1;
}

/* 헤더 — 상단 유틸바 + 2단 메뉴 */
.gnbtop {
  background: var(--bg-section);
  border-bottom: 1px solid var(--line);
}
.gnbtop__in {
  max-width: var(--header-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.gnbtop__l {
  font-size: 13px;
  color: var(--text-500);
  padding: 4px 2px;
  border-radius: 4px;
}
.gnbtop__l:hover {
  color: var(--brand-700);
  text-decoration: underline;
}
.gnbtop__nm {
  font-size: 13px;
  color: var(--text-700);
  font-weight: 600;
}
.gnbtop__bar {
  font-size: 12px;
  color: var(--line-strong);
}

.gnb {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 50;
}
.gnb__in {
  max-width: var(--header-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 80px;
  display: flex;
  align-items: center;
  gap: var(--s6);
}
.gnb__menu {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: var(--s2);
}
.gnb__link {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 var(--s4);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-700);
  border-radius: var(--r-md);
  transition:
    background 0.15s var(--ease),
    color 0.15s var(--ease);
}
.gnb__link:hover {
  background: var(--bg-section);
  color: var(--text-900);
}
.gnb__link[aria-current="page"] {
  color: var(--brand-700);
  font-weight: 700;
}
/* 하위 메뉴 드롭다운 — 탭에 숨어 있던 화면을 NAV 에서 바로 갈 수 있게 */
.gnb__item {
  position: relative;
  display: flex;
}
.gnb__caret {
  margin-left: 4px;
  opacity: 0.55;
}
.gnb__sub {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 168px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.1);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.16s ease;
  z-index: 60;
}
.gnb__item--has:hover .gnb__sub,
.gnb__item--has:focus-within .gnb__sub {
  opacity: 1;
  visibility: visible;
}
.gnb__sub ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.gnb__sub a {
  display: block;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 14.5px;
  color: var(--text-700);
  text-decoration: none;
  white-space: nowrap;
}
.gnb__sub a:hover {
  background: var(--bg-section);
  color: var(--brand-700);
}
/* 기업 추가정보 — 인증 선택 · 안내 박스 */
.notebox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--brand-100);
  border: 1px solid var(--brand-soft, #c7dbf7);
  border-radius: 10px;
  color: var(--brand-900);
}
.notebox svg {
  flex: none;
  margin-top: 1px;
}
.notebox p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}
.certpick {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.certpick__i {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}
.certpick__i:hover {
  border-color: var(--line-strong);
}
.certpick__i:has(input:checked) {
  border-color: var(--brand-700);
  background: var(--brand-100);
  color: var(--brand-900);
  font-weight: 600;
}
.certpick__i input {
  accent-color: var(--brand-700);
  width: 15px;
  height: 15px;
}
.ctrl--num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
/* 기업 추가정보 — 입력칸이 셀을 꽉 채우게. 산업재산권은 카드보다 좁은 폭에서만 가로 스크롤 */
#mp-5 .tbl input,
#mp-5 .tbl select {
  width: 100%;
  min-width: 0;
}
#mp-5 .tblwrap {
  overflow-x: auto;
}
/* 업종 고르기 모달 목록 · 표의 코드 */
.ksicpick {
  max-height: 360px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.ksicpick__i {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: 10px var(--s4);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  font-size: 14.5px;
}
.ksicpick li:last-child .ksicpick__i {
  border-bottom: 0;
}
.ksicpick__i:hover {
  background: var(--bg-section);
}
.ksicpick__i input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-700);
  flex: none;
}
.ksicpick__c {
  min-width: 52px;
  font-weight: 700;
  color: var(--brand-700);
  font-variant-numeric: tabular-nums;
}
/* 표 — 코드 · 주업종 배지 · 업종명 순, 사이 10px. 배지는 알약 대신 버튼과 같은 모서리 */
.ksicrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.ksicrow__c {
  font-weight: 700;
  color: var(--brand-700);
  font-variant-numeric: tabular-nums;
}
.ksicrow .badge {
  border-radius: var(--r-sm);
}
/* 모집예정 — 상세보기는 되고 신청만 막힌다 */
.actbar__soon {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-500);
}
/* 시스템 오류 접수 안내 모달 */
.sysmsg {
  text-align: center;
  padding: 6px 0 2px;
}
.sysmsg__i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand-700);
  margin-bottom: 14px;
}
.sysmsg__t {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-900);
}
.sysmsg__s {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-500);
}
.actbar__soon::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e0a93b;
}
#s-notice-view[data-notice-status="모집예정"] .actbar__apply {
  display: none;
}
#s-notice-view[data-notice-status="모집예정"] .actbar__soon {
  display: inline-flex;
}
.btn.is-locked {
  background: var(--surface-sunken);
  color: var(--text-500);
  border: 1px solid var(--line);
  cursor: not-allowed;
  pointer-events: none;
}
.row--between {
  justify-content: space-between;
}
.row--end {
  justify-content: flex-end;
}
.gnb__side {
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.gnb__text {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 var(--s2);
  font-size: 15px;
  color: var(--text-700);
}
.gnb__text:hover {
  color: var(--brand-700);
}

/* 로고 — 인라인 마크 */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo__mark {
  width: 34px;
  height: 34px;
}
/* 로고 이미지 — 원본 크기를 지켜야 글자가 또렷합니다 */
.logo__img {
  height: 38px;
  width: 200px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
.logo__txt {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.03em;
  color: var(--text-900);
}
.logo--invert .logo__txt {
  color: #fff;
}

/* 아바타 */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  background: var(--brand-700);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: grid;
  place-items: center;
  letter-spacing: 0;
}
.avatar--soft {
  background: var(--brand-50);
  color: var(--brand-700);
  width: 56px;
  height: 56px;
  font-size: 19px;
}

/* 인증 페이지용 미니 헤더/푸터 */
.authbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: var(--s5) var(--s6);
}
.authbar__in {
  max-width: var(--container);
  margin: 0 auto;
}
.authfoot {
  border-top: 1px solid var(--line);
  padding: var(--s6);
  text-align: center;
  font-size: 14px;
  color: var(--text-500);
}

/* 푸터 */
.foot {
  background: var(--footer-bg);
  color: var(--footer-text);
  margin-top: auto;
}
.foot__in {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--s16) var(--gutter) var(--s6);
}
/* 메뉴 3열이 빠져 소개 / 사업 문의처 / 시스템 문의처 3열이 된다 */
.foot__grid {
  display: grid;
  grid-template-columns: 1.4fr 1.3fr 1.3fr;
  gap: var(--s10) var(--s16);
}
/* 시스템 오류 접수 링크 */
.foot__report {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-family: inherit;
  background: none;
  cursor: pointer;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  font-size: 13.5px;
  color: #fff;
  text-decoration: none;
  transition: background 0.16s ease;
}
.foot__report:hover {
  background: rgba(255, 255, 255, 0.1);
}
.foot__desc {
  margin-top: var(--s5);
  font-size: 14px;
  line-height: 1.75;
  color: var(--footer-dim);
}
.foot__sns {
  display: flex;
  gap: var(--s2);
  margin-top: var(--s6);
}
.foot__sns a {
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  background: #252b3a;
  display: grid;
  place-items: center;
  color: var(--footer-text);
  transition: background 0.15s var(--ease);
}
.foot__sns a:hover {
  background: #333b4d;
}
.foot__h {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--s4);
}
.foot__list li + li {
  margin-top: 10px;
}
.foot__list a {
  font-size: 14px;
  color: var(--footer-dim);
  transition: color 0.15s var(--ease);
}
.foot__list a:hover {
  color: #fff;
}
.foot__contact li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--footer-dim);
  line-height: 1.7;
  word-break: keep-all;
}
.foot__contact li + li {
  margin-top: var(--s3);
}
.foot__contact svg {
  margin-top: 3px;
  color: var(--brand-300);
}
.foot__rel {
  margin-top: var(--s6);
  padding-top: var(--s5);
  border-top: 1px solid #2c3242;
}
.foot__rel-h {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--footer-dim);
  margin-bottom: var(--s3);
}
.foot__rel-list {
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
}
.foot__rel-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  background: #252b3a;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  color: var(--footer-text);
}
.foot__rel-list a:hover {
  background: #333b4d;
}
.foot__bot {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--s5) var(--s6);
  border-top: 1px solid #2c3242;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s6);
  flex-wrap: wrap;
}
.foot__policy {
  display: flex;
  gap: var(--s5);
  flex-wrap: wrap;
}
.foot__policy a {
  font-size: 13px;
  color: var(--footer-dim);
}
.foot__policy a:hover {
  color: #fff;
}
.foot__copy {
  font-size: 13px;
  color: var(--footer-dim);
}

/* 목록 상단 툴바 — 왼쪽 전체 건수 / 오른쪽 검색 + 페이지당 */
.listbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  flex-wrap: wrap;
  margin-top: var(--s6);
}
.listbar__l {
  font-size: 14.5px;
  color: var(--text-500);
}
.listbar__l b {
  color: var(--brand-700);
  font-weight: 700;
}
.listbar__r {
  display: flex;
  align-items: center;
  gap: var(--s2);
  flex-wrap: wrap;
}
.listbar__search {
  display: flex;
  gap: var(--s2);
  align-items: center;
}
.listbar .listbar__cond {
  width: 118px;
  height: 44px;
  flex: none;
}
.listbar__box {
  position: relative;
  display: block;
  width: 250px;
  flex: none;
}
.listbar__box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-ph);
  z-index: 1;
}
.listbar .listbar__box .ctrl {
  height: 44px;
  padding-left: 42px;
}
.listbar .listbar__go {
  height: 44px;
  padding: 0 var(--s5);
  flex: none;
}
.listbar .listbar__unit {
  width: 116px;
  height: 44px;
  flex: none;
}
.pager {
  padding: var(--s8) 0 0;
}
@media (max-width: 820px) {
  .listbar {
    align-items: stretch;
  }
  .listbar__r {
    width: 100%;
  }
  .listbar__search {
    flex: 1;
    min-width: 0;
  }
  .listbar__box {
    flex: 1;
    width: auto;
  }
}

/* 목록 필터 결과 */
.is-hid {
  display: none !important;
}
.chip__n {
  display: inline-block;
  margin-left: 5px;
  min-width: 18px;
  padding: 0 5px;
  border-radius: var(--r-pill);
  background: var(--bg-section);
  color: var(--text-500);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.chip[aria-pressed="true"] .chip__n {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.empty {
  padding: var(--s20) var(--s6);
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
}
.empty svg {
  margin: 0 auto var(--s4);
  color: var(--line-strong);
}
.empty__t {
  font-size: 16px;
  font-weight: 700;
}
.empty__s {
  margin-top: 7px;
  font-size: 14px;
  color: var(--text-500);
}

/* 안내 토스트 */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(100px + env(safe-area-inset-bottom));
  z-index: 300;
  max-width: min(560px, calc(100vw - 32px));
  padding: 13px 20px;
  border-radius: var(--r-md);
  background: #1f2937;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  box-shadow: var(--sh-3);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition:
    opacity 0.18s var(--ease),
    transform 0.18s var(--ease);
}
.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* 맨 위로 */
.totop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-2);
  color: var(--text-700);
  display: grid;
  place-items: center;
  transition:
    transform 0.15s var(--ease),
    box-shadow 0.15s var(--ease);
}
.totop:hover {
  box-shadow: var(--sh-3);
  transform: translateY(-1px);
}
.totop:active {
  transform: scale(0.96);
}
/* 하단 처리줄(.actbar)이 있는 화면은 그 위로 — 오른쪽 끝 [신청하기]를 가리지 않게 */
body:has(.actbar) .totop {
  bottom: 96px;
}

/* ── 컴포넌트 ── */

/* 버튼 — 44px 터치영역, 누를 때 0.96 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  height: 44px;
  padding: 0 var(--s5);
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
  background: var(--surface);
  color: var(--text-700);
  transition:
    background 0.15s var(--ease),
    border-color 0.15s var(--ease),
    color 0.15s var(--ease),
    transform 0.1s var(--ease),
    box-shadow 0.15s var(--ease);
}
.btn:active {
  transform: scale(0.96);
}
.btn--primary {
  background: var(--brand-700);
  color: #fff;
}
.btn--primary:hover {
  background: var(--brand-900);
}
.btn--ghost {
  border-color: var(--line-strong);
  color: var(--text-700);
}
.btn--ghost:hover {
  background: var(--bg-section);
  border-color: var(--text-ph);
}
.btn--quiet {
  color: var(--text-700);
}
.btn--quiet:hover {
  background: var(--bg-section);
}
/* 보조 동작인데 눈에 띄어야 하는 버튼 (공고 카드 상세보기 등) */
.btn--soft {
  background: var(--brand-100);
  color: var(--brand-900);
  border-color: var(--brand-300);
}
/* 터치 화면은 누른 뒤에도 :hover 가 남아 진한 색에 머문다 → 마우스가 있을 때만 */
@media (hover: hover) {
  .btn--soft:hover {
    background: var(--brand-600);
    border-color: var(--brand-600);
    color: #fff;
  }
}
.btn--danger {
  background: var(--danger);
  color: #fff;
}
.btn--danger:hover {
  background: #962724;
}
/* 표 안의 행 삭제 — 테두리형 */
.btn--danger-o {
  background: #fff;
  color: var(--danger);
  border: 1px solid var(--danger);
}
.btn--danger-o:hover {
  background: var(--danger);
  color: #fff;
}
.btn--sm {
  height: 36px;
  padding: 0 var(--s3);
  font-size: 13.5px;
  border-radius: var(--r-sm);
}
.btn--lg {
  height: 52px;
  padding: 0 var(--s8);
  font-size: 16px;
}
.btn--block {
  width: 100%;
}
.btn[disabled],
.btn[aria-disabled="true"] {
  background: var(--brand-300);
  color: #fff;
  border-color: transparent;
  cursor: not-allowed;
  pointer-events: none;
}
.btn--danger[disabled] {
  background: var(--danger);
  opacity: 0.4;
}
.btn--ghost[disabled] {
  background: var(--surface);
  color: var(--text-ph);
  border-color: var(--line);
}

/* 뱃지 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
/* 제목 옆 상태 뱃지는 한 단계 크게 */
.phead .badge {
  height: 28px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
}
.badge--none::before {
  display: none;
}
/* 옅은 배경 뱃지는 테두리 + 진한 글자. 색이 찬 계열(수행중 · 평가완료)은 그대로 */
.badge--open {
  background: var(--brand-100);
  color: var(--brand-900);
  border: 1px solid #b9d4f7;
}
.badge--closed {
  background: #e7eaef;
  color: #3a4250;
  border: 1px solid #cdd3dc;
}
.badge--soon {
  background: #fff1db;
  color: #7a5000;
  border: 1px solid #f0d6a8;
}
.badge--review {
  background: #e4eaff;
  color: #2e3b85;
  border: 1px solid #bcc7f2;
}
.badge--running {
  background: var(--brand-700);
  color: #fff;
}
.badge--approved {
  background: var(--brand-600);
  color: #fff;
}
.badge--done {
  background: #dcf2e9;
  color: #0b6b4c;
  border: 1px solid #a9dcc9;
}
.badge--dday {
  background: var(--danger);
  color: #fff;
}
.badge--soft {
  background: var(--brand-50);
  color: var(--brand-700);
}
.badge--req {
  background: var(--brand-50);
  color: var(--brand-700);
  height: 22px;
  font-size: 11.5px;
}

/* 카드 */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
}
.card__pad {
  padding: var(--s6);
}
.card__head {
  padding: var(--s6);
  border-bottom: 1px solid var(--line);
}
.card__title {
  font-size: 17px;
  font-weight: 700;
}
.card__sub {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-500);
}
/* 동심원 radius: 카드 12px, 내부 요소 12-padding 보정 */
.card .card {
  border-radius: var(--r-md);
}

/* 페이지 머리 */
.phead {
  padding: var(--s10) 0 var(--s8);
}
.phead__title {
  font-size: 32px;
  letter-spacing: -0.035em;
}
.phead__sub {
  margin-top: 10px;
  font-size: 16px;
  color: var(--text-500);
}
.crumb {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding-top: var(--s6);
  font-size: 13.5px;
  color: var(--text-500);
}
.crumb a:hover {
  color: var(--brand-700);
}
.crumb [aria-current] {
  color: var(--text-900);
  font-weight: 600;
}
.crumb svg {
  color: var(--line-strong);
}
.backlink {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  height: 40px;
  margin-bottom: var(--s5);
  padding: 0 var(--s4);
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-700);
  transition:
    background 0.15s var(--ease),
    border-color 0.15s var(--ease),
    color 0.15s var(--ease);
}
.backlink:hover {
  background: var(--bg-section);
  border-color: var(--text-ph);
  color: var(--brand-700);
}

/* 폼 */
.field {
  margin-bottom: var(--s5);
}
.field:last-child {
  margin-bottom: 0;
}
.label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--s2);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-700);
}
.label .req {
  color: var(--danger);
  font-weight: 700;
}
/* 라벨 오른쪽 끝에 짧은 안내(금액 환산 등) — 칸 아래에 두면 옆 칸과 높이가 어긋난다 */
.labelrow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3);
  margin-bottom: var(--s2);
}
.labelrow .label {
  margin-bottom: 0;
}
.labelrow .help {
  margin-top: 0;
  font-size: 12.5px;
  text-align: right;
}
/* 단위가 붙는 칸(.field 안쪽 상자) — 라벨 줄을 입력칸과 같은 열에 두어 오른쪽 안내가 입력칸 끝에 맞는다.
   옆 칸 라벨이 두 줄이 되어도 입력칸은 아래로 붙는다(신청서 .grid2 > .field 의 세로 flex 안에서 늘어남) */
.field__unit {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 1fr auto;
  column-gap: var(--s2);
}
.field__unit > .labelrow {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
}
.field__unit > .ctrl {
  grid-column: 1;
  grid-row: 2;
}
.field__unit > .ctrl ~ * {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  white-space: nowrap;
}
.label .hint-btn {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  color: var(--text-ph);
  display: grid;
  place-items: center;
}
.label .hint-btn:hover {
  color: var(--brand-700);
}
.ctrl {
  width: 100%;
  height: 48px;
  padding: 0 var(--s4);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  font-size: 15px;
  color: var(--text-900);
  transition:
    border-color 0.15s var(--ease),
    box-shadow 0.15s var(--ease);
}
.ctrl::placeholder {
  color: var(--text-ph);
}
.ctrl:hover {
  border-color: var(--text-ph);
}
.ctrl:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgba(28, 104, 206, 0.14);
}
.ctrl[readonly],
.ctrl[disabled] {
  background: var(--surface-sunken);
  color: var(--text-500);
}
.ctrl[disabled] {
  cursor: not-allowed;
  opacity: 1;
  -webkit-text-fill-color: var(--text-500);
}
.ctrl[disabled]::placeholder {
  -webkit-text-fill-color: var(--text-ph);
}
textarea.ctrl {
  height: auto;
  min-height: 112px;
  padding: var(--s3) var(--s4);
  line-height: 1.7;
  resize: vertical;
}
select.ctrl {
  appearance: none;
  padding-right: var(--s10);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B6472' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--s4) center;
}
.field__row {
  display: flex;
  gap: var(--s2);
}
.field__row .ctrl {
  flex: 1;
  min-width: 0;
}
.field__row .btn {
  height: 48px;
  flex-shrink: 0;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s5);
  margin-bottom: var(--s5);
}
/* 칸 사이 간격은 grid gap 하나로 — 안쪽 .field 의 margin-bottom 까지 겹치면 줄 사이가 40px 로 벌어진다(1열이 되는 모바일에서 특히) */
.grid2 > .field {
  margin-bottom: 0;
}
.grid2:last-child {
  margin-bottom: 0;
}
.help {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-500);
}
/* span으로 마크업된 조각들이 한 줄로 붙지 않도록 */
.help,
.act__t,
.act__s,
.file__nm,
.file__meta,
.stat__lb,
.stat__no,
.drop__t,
.drop__s,
.check__sub {
  display: block;
}
.err {
  margin-top: 6px;
  font-size: 13px;
  color: var(--danger);
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}
.pw {
  position: relative;
}
.pw .ctrl {
  padding-right: 52px;
}
.pw__eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  color: var(--text-500);
}
.pw__eye:hover {
  background: var(--bg-section);
  color: var(--text-900);
}

/* 체크박스 / 라디오 / 토글 */
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  min-height: 24px;
}
.check input {
  appearance: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  flex-shrink: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 5px;
  background: var(--surface);
  transition:
    background 0.12s var(--ease),
    border-color 0.12s var(--ease);
}
.check input:hover {
  border-color: var(--brand-600);
}
.check input:checked {
  background: var(--brand-700)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center/14px no-repeat;
  border-color: var(--brand-700);
}
.check input:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
}
.check input[type="radio"] {
  border-radius: 50%;
}
.check input[type="radio"]:checked {
  background: var(--surface);
  border: 6px solid var(--brand-700);
}
.radiorow {
  display: flex;
  gap: var(--s6);
  align-items: center;
  min-height: 48px;
}
.check__txt {
  font-size: 14.5px;
  line-height: 1.5;
}
.check__sub {
  margin-top: 3px;
  font-size: 13px;
  color: var(--text-500);
}
.switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.switch input {
  appearance: none;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: var(--r-pill);
  background: var(--line-strong);
  transition: background 0.18s var(--ease);
}
.switch input:checked {
  background: var(--brand-600);
}
.switch input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--sh-1);
  transition: transform 0.18s var(--ease);
}
.switch input:checked::after {
  transform: translateX(20px);
}

/* 탭 (밑줄형) */
.tabs {
  display: flex;
  gap: var(--s2);
  border-bottom: 1px solid var(--line-strong);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}
.tabs::-webkit-scrollbar {
  height: 6px;
}
.tabs::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 999px;
}
.tabs__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 var(--s5);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-500);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition:
    color 0.15s var(--ease),
    border-color 0.15s var(--ease);
}
.tabs__btn:hover {
  color: var(--text-900);
}
.tabs__btn[aria-selected="true"] {
  color: var(--brand-700);
  border-bottom-color: var(--brand-700);
}
.tabs--sub .tabs__btn {
  height: 46px;
  font-size: 14.5px;
  padding: 0 var(--s4);
}
.tabs--fill {
  gap: 0;
}
.tabs--fill .tabs__btn {
  flex: 1;
  justify-content: center;
}

/* 세그먼트 탭 */
.seg {
  display: flex;
  gap: var(--s1);
  padding: var(--s1);
  background: var(--bg-section);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow-x: auto;
  overflow-y: hidden;
}
.seg::-webkit-scrollbar {
  height: 6px;
}
.seg::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 999px;
}
.seg__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 var(--s4);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-500);
  white-space: nowrap;
  transition:
    background 0.15s var(--ease),
    color 0.15s var(--ease),
    box-shadow 0.15s var(--ease);
}
.seg__btn:hover {
  color: var(--text-900);
}
.seg__btn[aria-selected="true"] {
  background: var(--surface);
  color: var(--text-900);
  box-shadow: var(--sh-1);
}
.panel {
  display: none;
}
.panel.is-on {
  display: block;
}

/* 필터 칩 */
.chips {
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 var(--s5);
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-700);
  transition:
    background 0.15s var(--ease),
    color 0.15s var(--ease),
    border-color 0.15s var(--ease);
}
.chip:hover {
  border-color: var(--brand-600);
  color: var(--brand-700);
}
.chip[aria-pressed="true"] {
  background: var(--brand-700);
  border-color: var(--brand-700);
  color: #fff;
}

/* 진행바 */
.bar {
  height: 6px;
  border-radius: var(--r-pill);
  background: #e8edf3;
  overflow: hidden;
}
.bar__fill {
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--brand-700);
}
.bar__fill--alt {
  background: #8b5cf6;
}
.bar__fill--ok {
  background: var(--success);
}
.bar-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 7px;
  font-size: 13px;
  color: var(--text-500);
}
.bar-row b {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-900);
}

/* 통계 카드 */
.stat {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.stat__ico {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--brand-50);
  color: var(--brand-700);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.stat__lb {
  font-size: 14px;
  color: var(--text-500);
}
.stat__no {
  margin-top: 2px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* 정의형 테이블 */
.dl {
  display: grid;
  grid-template-columns: 180px 1fr;
  row-gap: 0;
}
.dl > dt,
.dl > dd {
  padding: var(--s5) 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.dl > dt {
  font-size: 14.5px;
  color: var(--text-500);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.dl > dd {
  font-size: 15px;
}
.dl > dt:last-of-type,
.dl > dd:last-of-type {
  border-bottom: 0;
}

/* 목록 테이블 */
.tbl {
  font-size: 14.5px;
}
.tbl th {
  padding: var(--s4) var(--s3);
  text-align: left;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-500);
  background: var(--bg-section);
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
.tbl td {
  padding: var(--s4) var(--s3);
  border-bottom: 1px solid var(--line);
}
.tbl tbody tr {
  transition: background 0.12s var(--ease);
}
.tbl tbody tr:hover {
  background: var(--surface-sunken);
}
.tbl .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.tbl .mid {
  text-align: center;
}
.tbl__link {
  font-weight: 500;
}
.tbl__link:hover {
  color: var(--brand-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tbl tfoot td {
  background: var(--bg-section);
  font-weight: 700;
  border-bottom: 0;
}
/* 열이 많은 표는 화면 폭과 무관하게 컨테이너 안에서만 가로 스크롤 */
.tbl-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.tbl-scroll table {
  min-width: 680px;
}
.tbl-scroll--mid table {
  min-width: 920px;
}
.tbl-scroll--wide table {
  min-width: 1180px;
}

/* 배너 */
.note {
  display: flex;
  gap: var(--s3);
  padding: var(--s4) var(--s5);
  background: var(--info-bg);
  border: 1px solid var(--info-line);
  border-radius: var(--r-md);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-700);
}
.note svg {
  margin-top: 3px;
  color: var(--brand-600);
}
.note--warn {
  background: var(--danger-bg);
  border-color: var(--danger-line);
}
.note--warn svg {
  color: var(--danger);
}
.note--warn strong {
  color: var(--danger);
}
.note__t {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}

/* 첨부파일 행 */
.file {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s4) var(--s5);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition:
    border-color 0.15s var(--ease),
    background 0.15s var(--ease);
}
.file:hover {
  border-color: var(--brand-300);
  background: var(--brand-50);
}
.file + .file {
  margin-top: var(--s3);
}
.file__ico {
  color: var(--text-500);
}
.file__body {
  flex: 1;
  min-width: 0;
}
.file__nm {
  font-size: 15px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file__meta {
  margin-top: 3px;
  font-size: 13px;
  color: var(--text-500);
}
.file__btn {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  color: var(--text-500);
}
.file__btn:hover {
  background: var(--bg-section);
  color: var(--brand-700);
}

/* 드롭존 */
.drop {
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface-sunken);
  padding: var(--s8) var(--s5);
  text-align: center;
  transition:
    border-color 0.15s var(--ease),
    background 0.15s var(--ease);
  cursor: pointer;
}
.drop:hover {
  border-color: var(--brand-600);
  background: var(--brand-50);
}
.drop svg {
  margin: 0 auto var(--s3);
  color: var(--text-500);
}
.drop__t {
  font-size: 14.5px;
  font-weight: 500;
}
.drop__s {
  margin-top: 5px;
  font-size: 13px;
  color: var(--text-500);
}
/* 드롭존 문구 — 모바일·태블릿(≤900) 과 터치 기기는 끌어다 놓기가 안 되니 「클릭하여 첨부해주세요」로 */
.drop__tx--m {
  display: none;
}
@media (max-width: 900px), (pointer: coarse) {
  .drop__tx--pc {
    display: none;
  }
  .drop__tx--m {
    display: inline;
  }
}

/* 페이지네이션 */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s4);
  padding: var(--s8) 0;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-500);
}
.pager__nums {
  display: flex;
  gap: var(--s1);
}
.pager__b {
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-700);
  transition:
    background 0.15s var(--ease),
    border-color 0.15s var(--ease);
}
.pager__b:hover {
  background: var(--bg-section);
  border-color: var(--brand-300);
}
.pager__b[aria-current="page"] {
  background: var(--brand-700);
  border-color: var(--brand-700);
  color: #fff;
}
.pager__b[disabled] {
  color: var(--line-strong);
  background: var(--surface);
  cursor: not-allowed;
}
.pager select.ctrl {
  height: 40px;
  width: auto;
  padding: 0 var(--s8) 0 var(--s3);
  font-size: 14px;
}

/* 스텝퍼 */
.step {
  display: flex;
  align-items: flex-start;
  padding: var(--s8) 0;
}
.step__i {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 120px;
  flex-shrink: 0;
}
.step__dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  color: var(--text-500);
}
.step__i.is-now .step__dot {
  background: var(--brand-700);
  border-color: var(--brand-700);
  color: #fff;
}
.step__i.is-done .step__dot {
  background: var(--brand-700);
  border-color: var(--brand-700);
  color: #fff;
}
.step__lb {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-500);
  text-align: center;
}
.step__i.is-now .step__lb,
.step__i.is-done .step__lb {
  color: var(--text-900);
}
.step__desc {
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-500);
  text-align: center;
  line-height: 1.45;
}
.step__line {
  flex: 1;
  height: 1.5px;
  background: var(--line-strong);
  margin-top: 20px;
  min-width: 24px;
}
.step__line.is-done {
  background: var(--brand-700);
}

/* 타임라인 */
.tl {
  display: flex;
  align-items: flex-start;
  padding: var(--s4) 0;
}
.tl__i {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 96px;
  flex-shrink: 0;
}
.tl__dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  color: var(--text-ph);
}
.tl__i.is-done .tl__dot {
  border-color: var(--brand-700);
  color: var(--brand-700);
}
.tl__i.is-now .tl__dot {
  background: var(--brand-700);
  border-color: var(--brand-700);
  color: #fff;
}
.tl__lb {
  font-size: 13px;
  font-weight: 600;
}
.tl__dt {
  font-size: 11.5px;
  color: var(--text-500);
}
.tl__line {
  flex: 1;
  height: 1.5px;
  background: var(--line-strong);
  margin-top: 18px;
}
.tl__line.is-done {
  background: var(--brand-700);
}

/* 활동 로그 */
.act {
  display: flex;
  gap: var(--s4);
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--line);
}
.act:last-child {
  border-bottom: 0;
}
.act__ico {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-700);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.act__body {
  flex: 1;
  min-width: 0;
}
.act__t {
  font-size: 14.5px;
  font-weight: 600;
}
.act__s {
  margin-top: 2px;
  font-size: 13.5px;
  color: var(--text-500);
}
.act__d {
  font-size: 12.5px;
  color: var(--text-500);
  white-space: nowrap;
}

/* 모달 */
.modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  place-items: center;
  padding: var(--s6);
}
.modal.is-on {
  display: grid;
}
.modal__bg {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
}
.modal__box {
  position: relative;
  width: 100%;
  max-width: 820px;
  max-height: 88vh;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--bg-section);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-modal);
}
.modal__head {
  padding: var(--s6) var(--s6) var(--s5);
  background: var(--surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  position: relative;
}
.modal__x {
  position: absolute;
  top: var(--s4);
  right: var(--s4);
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  color: var(--text-500);
}
.modal__x:hover {
  background: var(--bg-section);
  color: var(--text-900);
}
.modal__body {
  padding: var(--s5) var(--s6);
}
/* 기관 검색 모달 - 넓게 펴서 모달 자체는 세로 스크롤 없이, 검색 결과만 안에서 스크롤 */
#orgModal .modal__box {
  max-width: 1040px;
}
#orgModal .org-reg {
  grid-template-columns: repeat(3, 1fr);
}
#orgModal .org-list {
  max-height: 260px;
  overflow-y: auto;
}
#orgModal .org-list thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding-top: var(--s3);
  padding-bottom: var(--s3);
}
#orgModal .org-list tbody td {
  padding-top: var(--s2);
  padding-bottom: var(--s2);
}
#orgModal .modal__box {
  max-height: 94vh;
}
@media (max-width: 900px) {
  #orgModal .org-reg {
    grid-template-columns: 1fr;
  }
  #orgModal .org-no {
    display: none;
  }
  #orgModal .org-list table {
    min-width: 0;
  }
}
@media (max-width: 520px) {
  #orgModal [data-org-pick] {
    flex: 1;
    width: 100%;
    height: 40px;
  }
}
.modal__foot {
  padding: var(--s5) var(--s6);
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  flex-wrap: wrap;
}

/* 공통 알림창 — uiAlert · uiConfirm 이 만든다. 기본(안내) · dlg--ok(완료) · dlg--warn(오류 · 삭제 확인) */
/* 작은 알림창만 정확한 가운데보다 조금 위로 — 키 큰 입력 모달은 가운데 그대로 */
.dlg {
  z-index: 200;
  padding-bottom: 12vh;
}
.dlg .modal__box {
  max-width: 400px;
  padding: var(--s8) var(--s6) var(--s6);
  background: var(--surface);
  text-align: center;
}
.dlg__ico {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--r-pill);
  background: var(--brand-50);
  color: var(--brand-700);
}
.dlg--ok .dlg__ico {
  background: var(--success-bg);
  color: var(--success);
}
.dlg--warn .dlg__ico {
  background: var(--danger-bg);
  color: var(--danger);
}
.dlg__t {
  margin-top: var(--s4);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.dlg__m {
  margin-top: var(--s2);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-700);
  white-space: pre-line;
  word-break: keep-all;
}
.dlg__btns {
  display: flex;
  gap: var(--s2);
  margin-top: var(--s6);
}
.dlg__btns .btn {
  flex: 1;
}

/* 하단 고정 액션바 */
.actbar {
  position: sticky;
  bottom: 0;
  z-index: 60;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -2px 12px rgba(17, 24, 39, 0.06);
}
.actbar__in {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--s4) var(--s6) calc(var(--s4) + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  flex-wrap: wrap;
}

/* 유틸 */
.row {
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.row--between {
  justify-content: space-between;
}
.row--wrap {
  flex-wrap: wrap;
}
.stack > * + * {
  margin-top: var(--s5);
}
.stack-sm > * + * {
  margin-top: var(--s3);
}
.stack-lg > * + * {
  margin-top: var(--s6);
}
.mt2 {
  margin-top: var(--s2);
}
.mt3 {
  margin-top: var(--s3);
}
.mt4 {
  margin-top: var(--s4);
}
.mt5 {
  margin-top: var(--s5);
}
.mt6 {
  margin-top: var(--s6);
}
.mt8 {
  margin-top: var(--s8);
}
.mb3 {
  margin-bottom: var(--s3);
}
.mb4 {
  margin-bottom: var(--s4);
}
.mb5 {
  margin-bottom: var(--s5);
}
.mb6 {
  margin-bottom: var(--s6);
}
.pb16 {
  padding-bottom: var(--s16);
}
.t-sm {
  font-size: 13.5px;
}
.t-mid {
  font-size: 14.5px;
}
.t-dim {
  color: var(--text-500);
}
.t-brand {
  color: var(--brand-700);
}
.t-danger {
  color: var(--danger);
}
.t-ok {
  color: var(--success);
}
.fw6 {
  font-weight: 600;
}
.fw7 {
  font-weight: 700;
}
.sec-h {
  font-size: 20px;
  letter-spacing: -0.03em;
}
.sec-h--bar {
  padding-left: 12px;
  border-left: 3px solid var(--brand-700);
  line-height: 1.3;
}
.divide {
  height: 1px;
  background: var(--line);
}
.nums {
  font-variant-numeric: tabular-nums;
}

/* ── 반응형 ── */
@media (max-width: 1080px) {
  .foot__grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--s8);
  }
  .foot__grid > *:first-child {
    grid-column: 1/-1;
  }
  .foot__grid > *:last-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 900px) {
  .gnb__in {
    height: 64px;
    gap: var(--s3);
  }
  .gnb__menu {
    gap: 0;
  }
  .gnb__link {
    padding: 0 10px;
    font-size: 14.5px;
  }
  .logo__txt {
    display: none;
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
  .dl {
    grid-template-columns: 1fr;
  }
  .dl > dt {
    padding-bottom: 0;
    border-bottom: 0;
  }
  .dl > dd {
    padding-top: 6px;
  }
  .phead__title {
    font-size: 26px;
  }
  .step__i {
    width: 80px;
  }
  .step__desc {
    display: none;
  }
}
@media (max-width: 680px) {
  body {
    --gutter: var(--s6);
  }
  .foot__grid {
    grid-template-columns: 1fr 1fr;
  }
  .step__lb {
    font-size: 12px;
  }
  .step__i {
    width: 64px;
  }
  .step__dot {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }
  .modal__box {
    max-height: 92vh;
  }
}

/* ── 메인 ── */
.hero {
  position: relative;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg svg {
  width: 100%;
  height: 100%;
}
.hero__in {
  position: relative;
  z-index: 1;
  padding-top: var(--s20);
  padding-bottom: var(--s10);
  text-align: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 var(--s4);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #d3e1f5;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-700);
  box-shadow: var(--sh-1);
}
.hero__h {
  margin-top: var(--s6);
  font-size: 52px;
  line-height: 1.24;
  letter-spacing: -0.045em;
}
.hero__h span {
  color: var(--brand-700);
}
.hero__p {
  margin-top: var(--s5);
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-700);
}
.hero__cta {
  margin-top: var(--s8);
  display: flex;
  gap: var(--s3);
  justify-content: center;
  flex-wrap: wrap;
}
.hero__stats {
  margin: var(--s12) auto 0;
  max-width: 1000px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-2);
  overflow: hidden;
}
.hero__stats li {
  padding: var(--s8) var(--s4);
  text-align: center;
}
.hero__stats li + li {
  box-shadow: inset 1px 0 0 rgba(17, 24, 39, 0.07);
}
.hero__stat-ico {
  width: 44px;
  height: 44px;
  margin: 0 auto var(--s4);
  border-radius: var(--r-lg);
  background: #e9f0fb;
  color: var(--brand-700);
  display: grid;
  place-items: center;
}
.hero__stats b {
  display: block;
  font-size: 30px;
  letter-spacing: -0.04em;
}
.hero__stats span:last-child {
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--text-500);
}

.mainsec {
  padding: var(--s20) 0;
  background: var(--bg-section);
}
.mainsec--alt {
  background: var(--bg-page);
}
.mainsec__h {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  letter-spacing: -0.035em;
}
.mainsec__h svg {
  color: var(--brand-700);
}
.mainsec__p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-500);
}
.mainsec__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  font-size: 14px;
  color: var(--text-700);
}
.mainsec__more:hover {
  color: var(--brand-700);
}

.ncards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s6);
}
.ncard {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  transition:
    border-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    transform 0.18s var(--ease);
}
.ncard:hover {
  border-color: var(--brand-300);
  box-shadow: var(--sh-2);
  transform: translateY(-2px);
}
.ncard__top {
  flex: 1;
  padding: var(--s6);
}
/* 카드가 옆으로 나란할 때 제목을 두 줄 높이로 — 한 줄 제목 카드만 아래 칸이 올라가지 않게 */
.ncard__t {
  min-height: 2.9em;
  font-size: 17.5px;
  line-height: 1.45;
  letter-spacing: -0.03em;
  word-break: keep-all;
}
.ncard__t a:hover {
  color: var(--brand-700);
}
.ncard__org {
  margin-top: var(--s5);
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: var(--text-500);
}
.ncard__dates {
  margin-top: var(--s4);
  padding: var(--s4);
  background: var(--bg-section);
  border-radius: var(--r-md);
}
.ncard__dates > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}
.ncard__dates > div + div {
  margin-top: 8px;
}
.ncard__dates dt {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-500);
}
.ncard__dates dd {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
}
.ncard__bot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s3) var(--s4) var(--s3) var(--s6);
  border-top: 1px solid var(--line);
}
.ncard__view {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-500);
}

.news {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--s16);
  align-items: center;
}
.news__h {
  font-size: 32px;
  letter-spacing: -0.04em;
  margin-bottom: var(--s4);
}
.news__r {
  padding: var(--s2) var(--s5);
}
.news__item + .news__item {
  border-top: 1px solid var(--line);
}
.news__item a {
  display: block;
  padding: var(--s5) 0;
}
.news__item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}
.news__t {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.news__item a:hover .news__t {
  color: var(--brand-700);
}
.news__new {
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--danger);
}
.news__meta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-500);
}

@media (max-width: 1080px) {
  .ncards {
    grid-template-columns: 1fr 1fr;
  }
  .news {
    grid-template-columns: 1fr;
    gap: var(--s8);
  }
  .hero__h {
    font-size: 40px;
  }
}
@media (max-width: 768px) {
  .hero__in {
    padding-top: var(--s12);
  }
  .hero__h {
    font-size: 30px;
  }
  .hero__p {
    font-size: 15px;
  }
  .hero__stats {
    grid-template-columns: 1fr 1fr;
  }
  .hero__stats li:nth-child(odd) + li {
    box-shadow: inset 1px 0 0 rgba(17, 24, 39, 0.07);
  }
  .hero__stats li:nth-child(n + 3) {
    box-shadow: inset 0 1px 0 rgba(17, 24, 39, 0.07);
  }
  .hero__stats li:nth-child(4) {
    box-shadow:
      inset 1px 0 0 rgba(17, 24, 39, 0.07),
      inset 0 1px 0 rgba(17, 24, 39, 0.07);
  }
  .mainsec {
    padding: var(--s12) 0;
  }
  .ncards {
    grid-template-columns: 1fr;
  }
  .ncard__t {
    min-height: 0;
  }
  .news__h {
    font-size: 26px;
  }
}

/* ── 로그인 · 회원가입 ── */
.authpage {
  display: grid;
  place-items: center;
  padding: var(--s20) var(--s6);
}
.authcard {
  width: 100%;
  max-width: 480px;
}
.authcard__h {
  font-size: 26px;
  letter-spacing: -0.035em;
}
.authcard__p {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--text-500);
}
.authcard__foot {
  margin-top: var(--s5);
  text-align: center;
  font-size: 14px;
  color: var(--text-500);
}

.joinpage {
  padding: var(--s16) var(--gutter) var(--s20);
}
.joinhead {
  text-align: center;
}
.joinhead__h {
  font-size: 34px;
  letter-spacing: -0.04em;
}
.joinhead__p {
  margin-top: 10px;
  font-size: 16px;
  color: var(--text-500);
}

.typecards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  border: 0;
  padding: 0;
  margin: var(--s6) 0 0;
}
.typecard {
  display: block;
  cursor: pointer;
}
.typecard input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.typecard__box {
  display: block;
  height: 100%;
  padding: var(--s8);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  transition:
    border-color 0.16s var(--ease),
    box-shadow 0.16s var(--ease),
    transform 0.16s var(--ease);
}
.typecard:hover .typecard__box {
  border-color: var(--brand-300);
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
}
.typecard input:focus-visible + .typecard__box {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
}
.typecard input:checked + .typecard__box {
  border-color: var(--brand-700);
  box-shadow: 0 0 0 3px rgba(28, 80, 167, 0.1);
}
.typecard__ico {
  width: 56px;
  height: 56px;
  border-radius: var(--r-lg);
  background: var(--bg-section);
  color: var(--text-700);
  display: grid;
  place-items: center;
  transition:
    background 0.16s var(--ease),
    color 0.16s var(--ease);
}
.typecard input:checked + .typecard__box .typecard__ico {
  background: var(--brand-50);
  color: var(--brand-700);
}
.typecard__t {
  display: block;
  margin-top: var(--s6);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.typecard__s {
  display: block;
  margin-top: 7px;
  font-size: 14.5px;
  color: var(--text-500);
}
.typecard__line {
  display: block;
  height: 1px;
  background: var(--line);
  margin: var(--s5) 0;
}
.typecard__list span {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--text-500);
}
.typecard__list span + span {
  margin-top: 10px;
}
.typecard__list span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-strong);
}

.agree {
  margin-top: var(--s6);
}
.agree__all {
  padding: var(--s5) var(--s6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
}
.agree__item {
  margin-top: var(--s3);
  padding: var(--s4) var(--s6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  flex-wrap: wrap;
}
.agree__act {
  display: flex;
  align-items: center;
  gap: var(--s2);
}
.agree__view {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  color: var(--text-500);
}
.agree__view:hover {
  background: var(--bg-section);
  color: var(--brand-700);
}
@media (max-width: 520px) {
  .agree__view {
    width: 40px;
    padding: 0;
    justify-content: center;
  }
  .agree__view-t {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
}
.agree__fold {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  color: var(--text-500);
}
.agree__fold:hover {
  background: var(--bg-section);
}
.agree__fold[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.agree__fold svg {
  transition: transform 0.18s var(--ease);
}
.agree__pre {
  max-height: 260px;
  margin-top: var(--s2);
  padding: var(--s4) var(--s5);
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-700);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
}
.agree__pre .policy__sec + .policy__sec {
  margin-top: var(--s4);
}
.agree__pre .policy__h {
  margin-bottom: 4px;
  font-size: 14.5px;
  color: var(--text-900);
}
.agree__note {
  margin-top: var(--s5);
  text-align: center;
  font-size: 13.5px;
  color: var(--danger);
}
.agreebox {
  max-height: 180px;
  overflow: auto;
  padding: var(--s5);
  background: var(--surface-sunken);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 14px;
  line-height: 1.7;
}

.authpick {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--s3);
}
.authpick__b {
  width: 100%;
  padding: var(--s6) var(--s3);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  display: grid;
  justify-items: center;
  gap: 10px;
  transition:
    border-color 0.16s var(--ease),
    box-shadow 0.16s var(--ease),
    transform 0.16s var(--ease);
}
.authpick__b:hover {
  border-color: var(--brand-300);
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
}
.authpick__i {
  width: 46px;
  height: 46px;
  border-radius: var(--r-lg);
  background: var(--brand-50);
  color: var(--brand-700);
  display: grid;
  place-items: center;
}
.authpick__t {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.joinnav {
  margin-top: var(--s10);
  display: flex;
  justify-content: center;
  gap: var(--s3);
  flex-wrap: wrap;
}
.joinnav .btn {
  min-width: 214px;
}
.joinfoot {
  margin-top: var(--s5);
  text-align: center;
  font-size: 14px;
  color: var(--text-500);
}

@media (max-width: 768px) {
  .typecards {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }
  .joinhead__h {
    font-size: 27px;
  }
  .joinnav {
    flex-direction: column-reverse;
  }
  .joinnav .btn {
    min-width: 0;
    width: 100%;
  }
  .authpage {
    padding: var(--s10) var(--s4);
  }
  .agree__item {
    flex-wrap: nowrap;
  }
}

/* ── 사업공고 목록 · 상세 ── */
.srch {
  display: flex;
  gap: var(--s2);
  margin-top: var(--s2);
}
.srch__sel {
  width: 160px;
  flex-shrink: 0;
}
.srch__box {
  position: relative;
  flex: 1;
  min-width: 0;
}
.srch__box svg {
  position: absolute;
  left: var(--s4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-ph);
}
.srch__box .ctrl {
  padding-left: 46px;
}
.srch__btn {
  height: 48px;
  width: 76px;
  flex-shrink: 0;
}
/* 사업공고 목록 — 한 줄 3개라 메인 카드보다 낮게 */
.ncards--list .ncard__top {
  padding: var(--s5);
}
.ncards--list .ncard__org {
  margin-top: var(--s3);
}
.ncards--list .ncard__dates {
  margin-top: var(--s3);
  padding: var(--s3) var(--s4);
}
.ncards--list .ncard__dates > div + div {
  margin-top: 4px;
}
.ncards--list .ncard__bot {
  padding: var(--s2) var(--s3) var(--s2) var(--s5);
}
.ncard__cat {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--text-500);
}
.ncard.is-closed .ncard__t a {
  color: var(--text-700);
}

.detail {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--s6);
  align-items: start;
}
.detail--single {
  grid-template-columns: 1fr;
}
.detail__main {
  min-width: 0;
}
/* 공고 본문은 관리자 에디터 HTML — 폭이 고정된 표 · 상자가 있어 본문만 가로로 스크롤 */
.nv-body {
  overflow-x: auto;
}
.nv-body img {
  max-width: 100%;
  height: auto;
}
.keyinfo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s5) var(--s8);
}
.keyinfo dt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-500);
}
.keyinfo dt svg {
  color: var(--text-ph);
}
.keyinfo dd {
  margin: 6px 0 0 25px;
  font-size: 15px;
  font-weight: 500;
}

.prose h3 {
  font-size: 16px;
  margin: var(--s6) 0 var(--s3);
}
.prose h3:first-child {
  margin-top: 0;
}
.prose p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-700);
}
.prose ul,
.prose ol {
  margin: 0;
  padding-left: var(--s5);
  color: var(--text-700);
}
.prose ul li {
  list-style: disc;
}
.prose ol li {
  list-style: decimal;
}
.prose li {
  font-size: 15px;
  line-height: 1.9;
}

.relcard {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px var(--s3);
  padding: var(--s4) var(--s5);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition:
    border-color 0.15s var(--ease),
    background 0.15s var(--ease);
}
.relcard + .relcard {
  margin-top: var(--s3);
}
.relcard:hover {
  border-color: var(--brand-300);
  background: var(--brand-50);
}
.relcard .badge {
  grid-column: 1;
  justify-self: start;
}
.relcard__t {
  grid-column: 1;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.relcard__o {
  grid-column: 1;
  font-size: 13.5px;
  color: var(--text-500);
}
.relcard__v {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--text-500);
}
.relcard__arrow {
  grid-column: 2;
  grid-row: 1/5;
  color: var(--line-strong);
}
.relcard:hover .relcard__arrow {
  color: var(--brand-600);
}

.cinfo {
  margin: 0;
}
.cinfo dt {
  font-size: 13.5px;
  color: var(--text-500);
}
.cinfo dd {
  margin: 5px 0 var(--s5);
  font-size: 15px;
}
.cinfo dd:last-child {
  margin-bottom: 0;
}

/* 상세 제목 줄 — 뱃지는 줄바꿈 금지, 제목은 남은 폭 */
.nv-head__badges {
  display: inline-flex;
  gap: var(--s2);
  flex-shrink: 0;
  margin-top: 9px;
}
.nv-head__badges .badge {
  white-space: nowrap;
}
.nv-head__t {
  font-size: 30px;
  letter-spacing: -0.04em;
  min-width: 0;
  word-break: keep-all;
}

@media (max-width: 1080px) {
  .detail {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .srch {
    flex-wrap: wrap;
  }
  .srch__sel {
    width: 100%;
  }
  .keyinfo {
    grid-template-columns: 1fr;
    gap: var(--s3);
  }
  .keyinfo dt,
  .keyinfo dd {
    line-height: 1.4;
  }
  .keyinfo dd {
    margin-top: 2px;
  }
  /* 한글(HWP)에서 붙여 넣은 표는 칸 폭이 pt 로 박혀 있다 — 화면 폭에 맞추되, 칸 3개 이상은 한두 글자로 끊기므로 최소 폭을 두고 가로 스크롤 */
  .nv-body table {
    width: 100% !important;
    table-layout: auto !important;
  }
  .nv-body table:has(> tbody > tr > :nth-child(3), > tr > :nth-child(3)) {
    min-width: 600px;
  }
  .nv-body td,
  .nv-body th {
    width: auto !important;
    height: auto !important;
  }
  /* anywhere 는 칸 최소 폭까지 줄여 한 글자씩 끊는다 — break-word 는 칸 폭은 지키고 긴 주소만 넘칠 때 끊음 */
  .nv-body td *,
  .nv-body th * {
    overflow-wrap: break-word !important;
  }
  .nv-head {
    flex-wrap: wrap;
    gap: var(--s3);
  }
  .nv-head__badges {
    margin-top: 0;
    flex-wrap: wrap;
  }
  .nv-head__t {
    font-size: 24px;
    flex-basis: 100%;
  }
}

/* ── 사업 신청서 · 알림마당 · 질의응답 ── */
.applyhead {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.applyhead__top {
  display: flex;
  align-items: center;
  gap: var(--s6);
  padding: var(--s5) 0 0;
}
.applyhead__h {
  font-size: 26px;
  letter-spacing: -0.035em;
}
.applyhead__s {
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-500);
}
.step--5 {
  padding-bottom: var(--s6);
}
.step--5 .step__i {
  width: 150px;
}
.applybody {
  padding: var(--s10) var(--s6) var(--s16);
}
.applyform {
  max-width: var(--container);
  margin: 0 auto;
}

.summary div {
  display: flex;
  gap: var(--s3);
  padding: 7px 0;
}
.summary dt {
  width: 120px;
  flex-shrink: 0;
  font-size: 14px;
  color: var(--text-500);
}
.summary dd {
  margin: 0;
  font-size: 14.5px;
  font-weight: 500;
}

.srch--simple {
  max-width: 640px;
}
.postmeta {
  margin-top: var(--s5);
  display: flex;
  gap: var(--s6);
  flex-wrap: wrap;
}
.postmeta li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: var(--text-500);
}
.postbody h3 {
  font-size: 15.5px;
}
.postbody p,
.postbody li {
  font-size: 15px;
}

/* 이전글 · 다음글 — 2열(PC) / 1열(≤680). 다음글은 글자 오른쪽 정렬 + 화살표 오른쪽 */
.postnav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
  margin-top: var(--s5);
}
.prevpost {
  display: flex;
  align-items: center;
  gap: var(--s4);
  min-width: 0;
  padding: var(--s5) var(--s6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition:
    border-color 0.15s var(--ease),
    background 0.15s var(--ease);
}
.prevpost:hover {
  border-color: var(--brand-300);
  background: var(--brand-50);
}
.prevpost svg {
  color: var(--text-ph);
}
.prevpost > span {
  min-width: 0;
}
.prevpost__lb {
  display: block;
  font-size: 12.5px;
  color: var(--text-500);
}
.prevpost__t {
  display: block;
  margin-top: 3px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.025em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.prevpost--next {
  justify-content: flex-end;
  text-align: right;
}
.postcard {
  padding: var(--s10);
}
.postcard__h {
  font-size: 27px;
  letter-spacing: -0.035em;
  line-height: 1.4;
}
/* 질의 및 응답 */
.tbl__badge {
  margin-right: 8px;
  vertical-align: 1px;
}
.file__btn--del:hover {
  background: var(--danger-bg);
  color: var(--danger);
}
.qna__q {
  margin-right: 8px;
  color: var(--brand-700);
}
/* 질문 본문은 회원이 쓴 글자 그대로(태그 없이) — 줄바꿈만 살린다 */
.postbody--plain {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-700);
  white-space: pre-line;
}
.postcard__h,
.errpage .authcard__h {
  word-break: keep-all;
}
@media (max-width: 900px) {
  .postcard {
    padding: var(--s8);
  }
  .postcard__h {
    font-size: 24px;
  }
}
@media (max-width: 680px) {
  .postnav {
    grid-template-columns: 1fr;
  }
  .postcard {
    padding: var(--s6) var(--s5);
  }
}
@media (max-width: 520px) {
  .postcard {
    padding: var(--s5) var(--s4);
  }
  .postcard__h {
    font-size: 21px;
  }
}

@media (max-width: 900px) {
  .step--5 {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: var(--s4);
  }
  .step--5 .step__i {
    width: 96px;
  }
  .applyhead__top {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s2);
  }
  .applybody {
    padding: var(--s6) var(--s4) var(--s10);
  }
}

/* ── 마이페이지 · 지원금 신청 ── */
.mypanel {
  padding-top: var(--s6);
}
/* 마이페이지 사업관리 건수 상자 6칸 — 누르면 그 묶음 카드만 */
.stat6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s3);
}
.stat6 .stat {
  height: 100%;
  gap: var(--s3);
  padding: var(--s4);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.stat6 .stat:hover {
  border-color: var(--brand-300);
}
.stat6 .stat.is-on {
  border-color: var(--brand-600);
  box-shadow: inset 0 0 0 1px var(--brand-600);
}
.stat6 .stat__ico {
  width: 36px;
  height: 36px;
}
.stat6 .stat__lb {
  font-size: 13px;
}
.stat6 .stat__no {
  font-size: 22px;
}
.stat--hold .stat__ico {
  background: #fff1db;
  color: #7a5000;
}
.stat--drop .stat__ico {
  background: #e7eaef;
  color: #3a4250;
}
.dropzone-danger {
  border-color: var(--danger-line);
}

/* 비밀번호 요구사항 — 빨간 안내 박스 안에 한 줄로 */
/* 아이콘 · 문구 · 항목 모두 세로 가운데 */
.pwrule {
  margin-top: var(--s4);
  align-items: center;
}
.pwrule > svg {
  margin-top: 0;
  flex: none;
}
.pwrule p {
  font-size: 13.5px;
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 4px;
  line-height: 1.4;
}
.pwrule__i {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
  white-space: nowrap;
  line-height: 1;
}
.pwrule__i svg {
  color: var(--danger);
  opacity: 0.55;
}
.pwrule__i.is-ok {
  color: var(--success);
  font-weight: 700;
}
.pwrule__i.is-ok svg {
  color: var(--success);
  opacity: 1;
}
/* 모바일은 「비밀번호 요구사항」 문구부터 항목 4개까지 세로로 한 줄씩 */
@media (max-width: 520px) {
  .pwrule {
    align-items: flex-start;
  }
  .pwrule > svg {
    margin-top: 2px;
  }
  .pwrule p {
    flex-direction: column;
    align-items: flex-start;
    row-gap: 6px;
  }
  .pwrule__h {
    margin-bottom: 2px;
  }
  .pwrule__dash {
    display: none;
  }
  .pwrule__i {
    margin-left: 0;
  }
}

.filterbar {
  display: flex;
  gap: var(--s3);
  align-items: center;
  flex-wrap: wrap;
  padding: var(--s5);
}
.filterbar .srch__box {
  flex: 1;
  min-width: 220px;
}
.selwrap {
  position: relative;
  width: 180px;
}
.selwrap > svg:first-child {
  position: absolute;
  left: var(--s4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-500);
  pointer-events: none;
  z-index: 1;
}
/* 왼쪽 아이콘이 있을 때만 들여씁니다. 아이콘 없는 셀렉트는 왼쪽 정렬 */
.selwrap .ctrl {
  padding-left: var(--s4);
}
.selwrap > svg:first-child ~ .ctrl {
  padding-left: 44px;
}
.selwrap--plain .ctrl {
  padding-left: var(--s4);
}

.applycard__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s4);
}
/* 긴 사업명이 배지를 밀지 않도록 */
.applycard__head > div:first-child {
  min-width: 0;
}
/* 배지 묶음이 좁아져 글자가 세로로 깨지지 않게 */
.applycard__head > .row {
  flex-shrink: 0;
}
.applycard__head .badge {
  white-space: nowrap;
}
/* 보완요청(HOLD) 카드 안내 줄 — 보완 상자(.field.addreq)와 같은 색 */
.applycard__req {
  margin-top: var(--s3);
  padding: 8px 12px;
  border: 1px solid #f0c36d;
  border-radius: var(--r-md);
  background: #fffbf0;
  color: #7a5410;
  font-size: 14px;
}
.applycard__t {
  font-size: 18px;
  letter-spacing: -0.03em;
  word-break: keep-all;
}
.applycard__org {
  margin-top: 7px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: var(--text-500);
}
.pmcard__meta {
  margin-top: 8px;
  display: flex;
  gap: var(--s5);
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--text-500);
}
.pmcard__meta span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.applycard__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s5) var(--s8);
}
.applycard__grid dt {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: var(--text-500);
}
.applycard__grid dd {
  margin: 5px 0 0;
  font-size: 15px;
  font-weight: 500;
}
.applycard__act {
  display: flex;
  gap: var(--s3);
  margin-top: var(--s5);
}
.applycard__more {
  flex: 1;
  background: var(--surface-sunken);
  border: 1px solid var(--line);
}
.applycard__more:hover {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
}

.pmbars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s6);
  margin-top: var(--s5);
}

.modalgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s5) var(--s8);
}
.modalgrid dt {
  font-size: 13.5px;
  color: var(--text-500);
}
.modalgrid dd {
  margin: 6px 0 0;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 500;
}

@media (max-width: 900px) {
  .stat6 {
    grid-template-columns: repeat(3, 1fr);
  }
  .pmbars {
    grid-template-columns: 1fr;
    gap: var(--s5);
  }
  .applycard__grid,
  .modalgrid {
    grid-template-columns: 1fr;
  }
  .selwrap {
    width: 100%;
  }
  .applycard__act {
    flex-direction: column;
  }
  /* 세로 배열에서 flex:1(basis 0) 이 버튼 높이를 글자 높이로 눌러 「상세보기」만 낮아졌다 */
  .applycard__more {
    flex: 0 0 auto;
  }
}
/* 520 이하 — 배지를 제목 위 줄로 올린다 (사업명이 길면 옆에 둘 자리가 없다) */
@media (max-width: 520px) {
  .applycard__head {
    flex-wrap: wrap;
    gap: var(--s3);
  }
  .applycard__head > .row {
    order: -1;
    flex-basis: 100%;
    flex-wrap: wrap;
  }
}

/* ── 신청 내역 상세 (조회) ── */
.ctrl--ro {
  background: var(--surface-sunken);
  color: var(--text-700);
  cursor: default;
}
#s-apply-detail .tbl input {
  width: 100%;
  min-width: 0;
}
#s-apply-detail .tblwrap {
  overflow-x: auto;
}
.readbox {
  padding: 13px 15px;
  background: var(--surface-sunken);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-700);
}
#s-apply-detail .tbl tfoot th {
  background: var(--bg-section);
  font-weight: 700;
}
#s-apply-detail .label {
  display: block;
  margin-bottom: 7px;
}

/* ── 아이디·비밀번호 찾기 · 가입 완료 · 약관 전문 · 본인 확인 · 오류 · 오류 접수 카드 ── */
.emailrow {
  display: grid;
  grid-template-columns: 1fr auto 1fr 130px;
  gap: var(--s2);
  align-items: center;
}
.emailrow__at {
  color: var(--text-500);
  font-size: 15px;
}
.emailrow__sel {
  padding-right: var(--s8);
}

.resicon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--r-pill);
  background: var(--brand-50);
  color: var(--brand-700);
}
.resicon--lg {
  width: 72px;
  height: 72px;
  background: var(--success-bg);
  color: var(--success);
}
.resicon--warn {
  background: var(--danger-bg);
  color: var(--danger);
}
.resmsg {
  margin-top: var(--s4);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-700);
}
.resmsg b {
  color: var(--brand-700);
  font-weight: 700;
}
.idlist {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-align: left;
}
.idlist__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  padding: var(--s4) var(--s5);
  border-bottom: 1px solid var(--line);
}
.idlist__row:last-child {
  border-bottom: 0;
}
.idlist__id {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-700);
}
.idlist__meta {
  font-size: 13.5px;
  color: var(--text-500);
}

/* 오류 화면 */
.errpage .authcard {
  max-width: 560px;
}
.errpage__code {
  margin-top: var(--s5);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-500);
}
.errpage .authcard__h {
  margin-top: 6px;
}

/* 시스템 오류 접수 건 — 마이페이지 오류 접수 내역 · 추진단 접수 목록 공용. 머리를 누르면 펼침 */
.srlist {
  display: grid;
  gap: var(--s3);
}
.srcard {
  overflow: hidden;
}
.srcard__head {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "badges caret" "t caret" "meta caret";
  row-gap: 6px;
  column-gap: var(--s4);
  width: 100%;
  padding: var(--s5) var(--s6);
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.srcard__head:hover {
  background: var(--surface-sunken);
}
.srcard__badges {
  grid-area: badges;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.srcard__t {
  grid-area: t;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.45;
}
.srcard__meta {
  grid-area: meta;
  font-size: 13.5px;
  color: var(--text-500);
}
.srcard__caret {
  grid-area: caret;
  align-self: center;
  color: var(--text-ph);
  transition: transform 0.15s var(--ease);
}
.srcard__head[aria-expanded="true"] .srcard__caret {
  transform: rotate(180deg);
}
.srcard__body {
  padding: var(--s5) var(--s6) var(--s6);
  border-top: 1px solid var(--line);
}
.srcard__lb {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-700);
}
.srans {
  padding: var(--s5);
  background: var(--brand-50);
  border: 1px solid #cfe0f7;
  border-radius: var(--r-md);
}
.srans--wait {
  background: var(--surface-sunken);
  border-color: var(--line);
}
.srans--form {
  background: var(--surface-sunken);
  border-color: var(--line);
}
.srans__h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14.5px;
  font-weight: 700;
}
.srans__a {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: var(--r-pill);
  background: var(--brand-700);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
}
.srans--wait .srans__a {
  background: var(--line-strong);
}
.srans__meta {
  margin-left: auto;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-500);
}
.srans__txt {
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-line;
}
.srans--wait .srans__txt {
  font-size: 14px;
  color: var(--text-500);
}
@media (max-width: 520px) {
  .srcard__head {
    padding: var(--s4);
  }
  .srcard__body {
    padding: var(--s4);
  }
  .srans {
    padding: var(--s4);
  }
  .srans__h {
    flex-wrap: wrap;
  }
  .srans__meta {
    margin-left: 0;
    width: 100%;
  }
  /* 마이페이지 [신규 접수] — 모바일은 가로 꽉 (.btn--sm 단계 규칙보다 앞서게) */
  .btn.srnew {
    width: 100%;
    height: 48px;
    font-size: 13px;
  }
  .btn.formdl {
    width: 100%;
    height: 48px;
    font-size: 13px;
  }
}

.policy {
  padding: var(--s10);
}
.policy__meta {
  margin-bottom: var(--s6);
  padding-bottom: var(--s5);
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--text-500);
}
.policy__sec + .policy__sec {
  margin-top: var(--s6);
}
.policy__h {
  font-size: 15.5px;
  margin-bottom: 10px;
}
.policy p {
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--text-700);
}
.policy p + p {
  margin-top: 6px;
}

@media (max-width: 680px) {
  .emailrow {
    grid-template-columns: 1fr auto 1fr;
  }
  .emailrow__sel {
    grid-column: 1/-1;
  }
  .policy {
    padding: var(--s6);
  }
}

/* 2열 안에서는 위아래 여백을 주지 않습니다 — 오른쪽 칸이 밀려 내려가던 원인 */
.applyform .grid2 > .field + .field,
.applyform .grid2 .field + .field {
  margin-top: 0;
}
.applyform .grid2 > .field {
  margin-bottom: 0;
}
/* 2열 블록끼리 · 2열과 단일 필드 사이 여백 */
.applyform .grid2 + .grid2,
.applyform .grid2 + .field,
.applyform .field + .grid2 {
  margin-top: var(--s5);
}
/* 레이블과 입력칸을 세로로 맞춥니다 */
.applyform .grid2 > .field {
  display: flex;
  flex-direction: column;
}
.applyform .grid2 > .field .field__row {
  margin-top: auto;
}
.applyform .field__row {
  align-items: center;
}
.applyform .field__row .t-mid {
  flex: none;
  white-space: nowrap;
}

.applyhead__top {
  display: flex;
  align-items: flex-start;
  gap: var(--s5);
  flex-wrap: wrap;
}

/* 4단계 진행 표시 */
.step--4 {
  padding-bottom: var(--s6);
}
.step--4 .step__i {
  width: 170px;
}
@media (max-width: 900px) {
  .step--4 .step__i {
    width: 96px;
  }
}

/* 파일 드래그 앤 드롭 */
.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 132px;
  padding: var(--s6);
  cursor: pointer;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition:
    border-color 0.15s,
    background 0.15s;
}
.drop:hover {
  border-color: var(--brand-600);
  background: #f5f9fe;
}
.drop.is-over {
  border-color: var(--brand-600);
  background: #eaf2fd;
}
.drop__ico {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--brand-600);
}
.drop__ico svg {
  width: 26px;
  height: 26px;
}
.drop__tx {
  font-size: 14px;
  color: var(--text-500);
}
.drop__tx em {
  font-style: normal;
  color: var(--text-ph);
}
.filelist {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.filelist li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 13.5px;
  color: var(--text-700);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 6px;
}
.filelist__ico {
  flex: none;
}
.filelist li > span:not(.filelist__ico),
.filelist li > a {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.filelist li em {
  flex: none;
  margin-left: auto;
  font-style: normal;
  font-size: 12.5px;
  color: var(--text-ph);
  white-space: nowrap;
}
.filelist__del {
  flex: none;
  margin-left: auto;
  border: 0;
  background: none;
  color: var(--text-ph);
  cursor: pointer;
  font-size: 14px;
}
.filelist__del:hover {
  color: var(--danger);
}
.filelist--ro li {
  background: var(--surface-sunken);
}

/* 최종 확인 — 항목별 소제목 */
.sumh {
  margin: var(--s6) 0 var(--s3);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-900);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--line);
}
.sumh:first-of-type {
  margin-top: 0;
}
.dl--2 {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
}
.dl--2 dt {
  padding: 9px 0;
  color: var(--text-500);
  font-size: 14px;
}
.dl--2 dd {
  margin: 0;
  padding: 9px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--line2, #eef1f4);
}
.dl--2 dt {
  border-bottom: 1px solid var(--line2, #eef1f4);
}
@media (max-width: 640px) {
  .dl--2 {
    grid-template-columns: 1fr;
  }
  .dl--2 dt {
    padding-bottom: 0;
    border: 0;
  }
}

/* 회원 탈퇴 · 보유기간 · 약관 변경 안내 */
.keep {
  word-break: keep-all;
}
.wdrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s4);
}
.wdlist {
  margin: 6px 0 0;
  padding-left: 18px;
  list-style: disc;
}

/* 사업 신청 — 카드 사이 여백 */
.applyform > .card {
  margin-bottom: var(--s6);
}
.applyform > .card:last-child {
  margin-bottom: 0;
}
.applyform > .card + .card {
  margin-top: var(--s6);
}
.applyform > .card.panel {
  margin-top: var(--s6);
}
/* 단계 카드 안쪽 블록도 조금 벌립니다 */
.applyform .card__sub {
  margin-bottom: var(--s5);
}
.applyform .field + .field {
  margin-top: var(--s5);
}
.applyform .grid2 {
  gap: var(--s5) var(--s6);
}

/* 보완사항 — 마이페이지 › 사업관리 › 상세보기 */
.field.addreq {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid #f0c36d;
  border-radius: 10px;
  background: #fffbf0;
}
.field.addreq .label {
  color: #8a5a00;
  font-weight: 700;
}
.readbox--warn {
  background: #fff;
  border: 1px solid #f0c36d;
  color: #5c3d00;
}
.field.addreq .help {
  color: #7a5410;
}

/* 파일 업로드 — 중복 클릭 방지 + 진행바 */
.upwrap {
  margin-top: 8px;
  display: none;
}
.upwrap.on {
  display: block;
}
.uprow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.upbar {
  flex: 1;
  min-width: 160px;
  max-width: 320px;
  height: 9px;
  background: #e5e9ef;
  border-radius: 5px;
  overflow: hidden;
}
.upbar i {
  display: block;
  height: 100%;
  width: 0;
  background: #1a5276;
  transition: width 0.18s;
}
.uptxt {
  font-size: 13px;
  color: #4b5a68;
  min-width: 130px;
}
.upname {
  font-size: 13px;
  color: #212529;
  font-weight: 600;
  margin-bottom: 4px;
}
.upcancel {
  font-size: 13px;
  color: #b42318;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0 2px;
  text-decoration: underline;
}
.updone .upbar i {
  background: #15803d;
}
.updone .uptxt {
  color: #15803d;
  font-weight: 700;
}
.btn.is-busy {
  opacity: 0.5;
  pointer-events: none;
}

/* 표 머리글은 제목 칸(제목·직무·이름·기관명 등)만 왼쪽, 나머지는 모두 가운데. 본문 셀 정렬은 건드리지 않는다 */
.tbl th {
  text-align: center;
  height: 44px;
  vertical-align: middle;
}
.tbl th.num {
  text-align: center;
}
.tbl th.lft {
  text-align: left;
}
.tbl td {
  vertical-align: middle;
}

/* 좌우 2단 목록(.dl)의 항목명이 값 위쪽에 붙던 문제 — 세로 가운데로 */
.dl > dt {
  align-items: center;
}

/* ── 시스템 오류 접수 ── */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--s6);
  align-items: start;
  padding-bottom: var(--s16);
}
.contact__form {
  padding: var(--s8);
}
.contact__cnt {
  text-align: right;
}
.contact__btns {
  display: flex;
  justify-content: center;
  gap: var(--s3);
}
.contact__btns .btn {
  min-width: 160px;
}
.rchips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}
.rchip {
  position: relative;
  cursor: pointer;
}
.rchip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.rchip span {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 var(--s4);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-700);
  transition: all 0.15s var(--ease);
}
.rchip:hover span {
  border-color: var(--brand-600);
  color: var(--brand-700);
}
.rchip input:checked + span {
  background: var(--brand-700);
  border-color: var(--brand-700);
  color: #fff;
  font-weight: 700;
}
.rchip input:focus-visible + span {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
}
.contact__h {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 var(--s4);
  letter-spacing: -0.02em;
}
.contact__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-700);
  padding: 6px 0;
}
.contact__list svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--brand-600);
}
.contact__list a {
  color: var(--text-900);
  font-weight: 600;
  text-decoration: none;
}
.contact__list a:hover {
  color: var(--brand-700);
}
.contact__faq {
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact__faq li {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-500);
  padding: var(--s3) 0;
  border-top: 1px solid var(--line);
}
.contact__faq li:first-child {
  border-top: 0;
  padding-top: 0;
}
.contact__faq b {
  display: block;
  color: var(--text-900);
  margin-bottom: 2px;
}
@media (max-width: 1000px) {
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact__form {
    padding: var(--s6);
  }
  /* 1열이 되면 「접수 전에 확인해 보세요」를 폼 위로 — aside 를 풀어(display:contents) 카드 하나만 order 로 끌어올린다 */
  .contact__side {
    display: contents;
  }
  .contact__faqcard {
    order: -1;
    margin-top: 0;
  }
  .contact__faqcard .contact__faq li {
    padding: var(--s2) 0;
  }
}
@media (max-width: 680px) {
  .contact__btns {
    flex-direction: column-reverse;
  }
  .contact__btns .btn {
    width: 100%;
  }
}

/* ── 더보기 ── */
/* 아래 여백 — 푸터와 붙지 않게 */
.more {
  display: flex;
  justify-content: center;
  padding: var(--s8) 0 var(--s16);
}
.more[hidden] {
  display: none;
}
/* 다 보였을 때 hidden 으로 빼면 아래 여백까지 사라져 목록이 푸터에 붙는다 → 버튼만 숨기고 여백은 남긴다 */
.more.is-done {
  padding-top: 0;
}
.more.is-done .more__btn {
  display: none;
}
.more__btn {
  min-width: 240px;
  gap: 4px;
}
/* 표 목록(알림마당) — PC 는 페이지 번호, 모바일은 더보기 */
.more--m {
  display: none;
}
@media (max-width: 520px) {
  .pager--pc {
    display: none;
  }
  .more--m {
    display: flex;
  }
}
.more__n {
  font-weight: 500;
  color: inherit;
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}

/* ── 모바일 (520 · 390) ── */
.gnb__ham {
  display: none;
}
/* 모바일 탭·칩 셀렉트 — common.js 가 만든다 */
.tabs__sel {
  display: none;
}
/* 마이페이지 탭(기업 5개)은 760 아래에서 한 줄을 넘쳐 마지막 탭이 가려진다 → 520 보다 먼저 셀렉트로 */
@media (max-width: 760px) {
  .tabs--my.has-sel {
    display: none;
  }
  .tabs__sel--my {
    display: block;
    margin-bottom: var(--s5);
  }
}
/* 인증 화면 자체 헤더는 로고 글자를 남긴다 (900 규칙은 GNB 용) */
@media (max-width: 900px) {
  .authbar .logo__txt {
    display: block;
  }
}
@media (max-width: 680px) {
  .gnb__in {
    height: 60px;
    gap: var(--s2);
  }
  .logo__img {
    width: 150px;
    height: 32px;
  }
  .gnb__link {
    padding: 0 8px;
    font-size: 14px;
    white-space: nowrap;
  }
  .gnb__side .btn {
    height: 36px;
    padding: 0 12px;
    font-size: 13.5px;
    white-space: nowrap;
  }
  .avatar {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  .gnbtop__in {
    height: 34px;
    gap: 8px;
    padding: 0 var(--s4);
  }
  .gnbtop__l,
  .gnbtop__nm {
    font-size: 12.5px;
  }
}
@media (max-width: 520px) {
  /* ── 헤더: 주 메뉴는 햄버거 뒤로. 열면 아래로 펼쳐지고 하위 메뉴는 항상 펼쳐 보인다 ── */
  /* 로고 왼쪽 · 햄버거 오른쪽 */
  .gnb__in {
    height: 56px;
    justify-content: space-between;
  }
  .gnb__menu {
    display: none;
  }
  /* 아바타·회원가입 버튼은 숨긴다 — 로그인/회원가입은 위 유틸바에, 마이페이지는 메뉴에 있다 */
  .gnb__side > :not(.gnb__ham) {
    display: none;
  }
  .gnb__ham {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
    color: var(--text-900);
    flex-shrink: 0;
    cursor: pointer;
  }
  .gnb__ham svg {
    width: 22px;
    height: 22px;
  }
  .gnb__ham .i-x {
    display: none;
  }
  .gnb--open .gnb__ham .i-bars {
    display: none;
  }
  .gnb--open .gnb__ham .i-x {
    display: block;
  }
  .gnb--open .gnb__menu {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-3);
    padding: var(--s2) var(--s4) var(--s4);
    z-index: 60;
  }
  .gnb--open .gnb__item {
    display: block;
    border-bottom: 1px solid var(--line);
  }
  .gnb--open .gnb__item:last-child {
    border-bottom: 0;
  }
  .gnb--open .gnb__link {
    height: 48px;
    padding: 0 var(--s2);
    font-size: 15px;
  }
  .gnb--open .gnb__caret {
    display: none;
  }
  .gnb--open .gnb__sub {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: 0;
    padding: 0 0 var(--s2) var(--s4);
    min-width: 0;
    background: transparent;
    margin: 0;
  }
  .gnb--open .gnb__sub a {
    padding: 8px;
    font-size: 14px;
    color: var(--text-700);
  }
  .gnbtop__nm {
    max-width: 38vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  /* ── 본문 ── */
  /* 좌우만 줄인다 — padding 단축형이면 .joinpage 같은 위아래 여백까지 0 이 돼 회원가입 하단이 푸터에 붙는다 */
  body {
    --gutter: var(--s5);
  }
  .phead {
    padding: var(--s6) 0 var(--s5);
  }
  .phead__title {
    font-size: 23px;
  }
  .phead__sub {
    font-size: 14px;
  }
  .crumb {
    padding-top: var(--s4);
  }
  .card__pad {
    padding: var(--s5) var(--s4);
  }
  /* 모바일 버튼 — 가로로 꽉 차는 대신 세로가 짧아 보이지 않게. */
  .btn {
    height: 48px;
    font-size: 14px;
  }
  .btn--sm {
    height: 36px;
    font-size: 13px;
  }
  .btn--lg {
    height: 52px;
    padding: 0 var(--s5);
    font-size: 15px;
  }
  .hero__in {
    padding-top: var(--s10);
    padding-bottom: var(--s8);
  }
  .hero__h {
    font-size: 27px;
  }
  .hero__cta .btn {
    width: 100%;
    justify-content: center;
  }
  .hero__stats b {
    font-size: 24px;
  }
  .mainsec {
    padding: var(--s10) 0;
  }
  .mainsec__h {
    font-size: 21px;
  }
  .news__h {
    font-size: 22px;
  }
  .ncard__top {
    padding: var(--s5) var(--s4);
  }
  .ncard__bot {
    flex-wrap: wrap;
    gap: var(--s3);
    padding-left: var(--s4);
    padding-right: var(--s4);
  }
  .listbar {
    flex-direction: column;
    align-items: stretch;
    gap: var(--s3);
  }
  .listbar__r {
    width: 100%;
  }
  .listbar__search {
    flex-wrap: wrap;
    width: 100%;
  }
  /* 1줄: 조건 + 검색어 */
  .listbar .listbar__cond {
    flex: 0 0 112px;
    width: auto;
  }
  .listbar__box {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }
  /* 2줄: 검색 버튼 */
  .listbar .listbar__go {
    flex: 1 1 100%;
  }
  /* 3줄: 문의하기 · 공지 등록 */
  .listbar__r > .listbar__search,
  .listbar__r > .btn {
    flex: 1 1 100%;
  }
  .more__btn {
    width: 100%;
  }
  .chip {
    height: 36px;
    padding: 0 var(--s3);
    font-size: 13.5px;
  }
  /* 탭·칩 → 셀렉트 */
  .tabs.has-sel,
  .chips.has-sel {
    display: none;
  }
  .tabs__sel {
    display: block;
    margin-bottom: var(--s5);
  }
  /* 라디오 칩 → 셀렉트 */
  .rchips.has-sel {
    display: none;
  }
  .rchips__sel {
    margin-bottom: 0;
  }
  .chips + .tabs__sel,
  .tabs__sel + .chips {
    margin-top: var(--s5);
  }
  /* 진행 표시 — 화면 폭에 펼치지 않고 가운데 모아 단계 사이를 좁힌다 */
  .step {
    padding: var(--s5) 0;
    justify-content: center;
  }
  .step__i,
  .step--4 .step__i,
  .step--5 .step__i {
    width: 72px;
  }
  .step__line {
    flex: 0 0 20px;
    min-width: 0;
    margin-top: 15px;
  }
  .step__dot {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
  .step__lb {
    font-size: 11px;
    word-break: keep-all;
  }
  .site {
    overflow-x: clip;
  }
  .pager {
    gap: var(--s2);
    flex-wrap: wrap;
  }
  .pager__b {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
  }
  /* 푸터 좌우는 본문 여백보다 4px 더 — 390 에서 답답해 보인다 */
  .foot__in {
    padding: var(--s10) var(--s5) var(--s6);
  }
  .foot__grid {
    grid-template-columns: 1fr;
    gap: var(--s6);
  }
  .foot__bot {
    flex-direction: column;
    gap: var(--s2);
    align-items: flex-start;
    padding: var(--s4);
  }
  .modal__box {
    max-height: 94vh;
  }
  .modal__head {
    padding: var(--s5) var(--s4) var(--s4);
  }
  .modal__body {
    padding: var(--s4);
  }
  .modal__foot {
    padding: var(--s4);
    flex-wrap: wrap;
    gap: var(--s2);
  }
  .actbar__in {
    flex-wrap: wrap;
    gap: var(--s2);
  }
  /* 하단 처리줄(.actbar z-index 60) 아래로 */
  .totop {
    width: 40px;
    height: 40px;
    right: 12px;
    bottom: 12px;
    z-index: 50;
  }
  /* flex:1 제거 — ≤768 세로 배열에서 basis 0 이 버튼 높이를 눌렀다 */
  .joinnav .btn {
    min-width: 0;
  }
  .typecards {
    grid-template-columns: 1fr;
  }
  .authbar {
    padding: var(--s4);
  }
  .authpage {
    padding: var(--s8) var(--s4);
  }
  .srch {
    flex-wrap: wrap;
  }
  .srch__sel {
    width: 100%;
  }
  .srch__btn {
    width: 100%;
  }
  .filterbar {
    padding: var(--s4);
  }
  .filterbar .srch__box {
    min-width: 0;
    width: 100%;
  }
  .emailrow {
    grid-template-columns: 1fr auto 1fr;
  }
  .emailrow__sel {
    grid-column: 1/-1;
    width: 100%;
  }
  .contact__form {
    padding: var(--s5) var(--s4);
  }
  .rchip span {
    height: 36px;
    padding: 0 var(--s3);
    font-size: 13.5px;
  }
  /* ── 표 → 카드: thead 숨김 · tr = 카드 · td 앞에 data-label (common.js 가 단다) ── */
  .tbl-scroll {
    overflow: visible;
  }
  .tbl-scroll table {
    min-width: 0;
  }
  /* 기업 추가정보 산업재산권 표 — 인라인 min-width:1120px 가 카드를 넘쳐 입력칸이 잘림 */
  .tblwrap {
    overflow: visible;
  }
  .tblwrap table.tbl {
    min-width: 0 !important;
  }
  .tbl td[data-label] > .ctrl {
    flex: 1;
    width: auto;
    min-width: 0;
  }
  .tbl {
    font-size: 14px;
  }
  .tbl thead {
    display: none;
  }
  .tbl,
  .tbl tbody,
  .tbl tfoot,
  .tbl tr {
    display: block;
    width: 100%;
  }
  .tbl tr {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: var(--s3) var(--s4);
    margin-bottom: var(--s3);
  }
  .tbl tbody tr:hover {
    background: var(--surface);
  }
  .tbl td {
    display: flex;
    align-items: flex-start;
    gap: var(--s3);
    padding: 6px 0;
    border: 0;
    text-align: left;
  }
  .tbl td.num,
  .tbl td.mid {
    text-align: left;
  }
  .tbl td[data-label]::before {
    content: attr(data-label);
    flex: 0 0 88px;
    font-size: 13px;
    color: var(--text-500);
  }
  .tbl td.tbl-m-title {
    display: block;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.45;
    padding: 2px 0 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--line);
  }
  .tbl td.tbl-m-num {
    display: none;
  }
  .tbl td.tbl-m-act {
    justify-content: flex-end;
    padding-top: 10px;
  }
  .tbl td[colspan] {
    display: block;
  }
  .tbl tfoot td {
    background: transparent;
  }
  .tbl tbody tr:last-child {
    margin-bottom: 0;
  }
  /* 마이페이지 이력서 표 — 행 머리 「이력서」 숨김(thead 「첨부파일」은 위 규칙으로 이미 숨음). 드롭존만 카드처럼 */
  .resume-th {
    display: none;
  }
  .resume-th + td {
    display: block;
    padding: 0;
  }
  .tbl tr:has(.resume-th) {
    border: 0;
    padding: 0;
    margin: 0;
  }
  /* 기업 추가정보 매출액 — 년도 한 줄, 금액 · 삭제는 한 줄 */
  .tbl--rev tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: var(--s3);
    align-items: center;
  }
  .tbl--rev td:first-child {
    grid-column: 1 / -1;
  }
  .tbl--rev td:nth-child(n+2)::before {
    display: none;
  }
  /* 기업 추가정보 줄 추가 버튼 — 제목 옆에서 빼 제목 아래 가로 꽉 차게 */
  .sec-addrow > .row {
    flex-direction: column;
    align-items: stretch;
    gap: var(--s3);
  }
  .sec-addrow [data-row-add] {
    width: 100%;
    height: 44px;
  }
  /* 알림마당 목록 — 표를 감싼 .card 테두리가 행 카드와 겹쳐 보인다 → 바깥 카드는 투명하게 */
  .card.tbl-scroll {
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
  }
  .postmeta {
    gap: var(--s3) var(--s4);
  }
}
@media (max-width: 390px) {
  .gnbtop__in {
    padding: 0 var(--gutter);
  }
  .logo__img {
    width: 136px;
    height: 30px;
  }
  body {
    --gutter: var(--s4);
  }
  .hero__h {
    font-size: 24px;
  }
  .hero__p {
    font-size: 14px;
  }
  .hero__stats li {
    padding: var(--s5) var(--s2);
  }
  .hero__stats b {
    font-size: 22px;
  }
  .phead__title {
    font-size: 21px;
  }
  .card__pad {
    padding: var(--s4) var(--s3);
  }
  .ncard__top {
    padding: var(--s4) var(--s3);
  }
  .ncard__bot {
    padding-left: var(--s3);
    padding-right: var(--s3);
  }
  .ncard__bot .row {
    width: 100%;
  }
  .ncard__bot .row .btn {
    flex: 1;
    justify-content: center;
  }
  .step__i,
  .step--4 .step__i,
  .step--5 .step__i {
    width: 66px;
  }
  .step__line {
    flex-basis: 14px;
  }
  .step__lb {
    font-size: 10.5px;
  }
  .chip {
    font-size: 13px;
    padding: 0 10px;
  }
  .btn--lg {
    height: 50px;
    font-size: 14.5px;
  }
  .foot__in {
    padding: var(--s10) var(--s5) var(--s5);
  }
  .contact__btns .btn {
    min-width: 0;
  }
}

/* ── 폼 처리 버튼 줄 · 글자 크기 단계 ── */
/* 글자 크기 — PC 값 기준 ≤900 -1px · ≤520 -2px, 입력칸 · 버튼도 같음, 12px 밑으로는 안 내린다 */
.formact {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--s3);
}
.formact--center {
  justify-content: center;
}
@media (max-width: 900px) {
  .phead__sub {
    font-size: 15px;
  }
  .hero__p {
    font-size: 16px;
  }
  .card__title {
    font-size: 16px;
  }
  .sec-h {
    font-size: 18px;
  }
  .ctrl {
    font-size: 14px;
  }
  .label {
    font-size: 13px;
  }
  .check__txt {
    font-size: 13.5px;
  }
  .check__sub {
    font-size: 12px;
  }
  .btn {
    font-size: 14px;
  }
  .btn--lg {
    font-size: 15px;
  }
  .btn--sm {
    font-size: 12.5px;
  }
  .tabs__btn {
    font-size: 14px;
  }
  .tabs--sub .tabs__btn {
    font-size: 13.5px;
  }
  .prose p,
  .prose li,
  .postbody p,
  .postbody li,
  .dl > dd,
  .keyinfo dd,
  .file__nm,
  .relcard__t {
    font-size: 14px;
  }
  .applycard__req {
    font-size: 13px;
  }
  .prevpost__t {
    font-size: 14.5px;
  }
  .dl > dt {
    font-size: 13.5px;
  }
  .readbox {
    font-size: 13.5px;
  }
  .postmeta li {
    font-size: 12.5px;
  }
  .prose h3 {
    font-size: 15px;
  }
  .postbody h3 {
    font-size: 14.5px;
  }
  .tbl {
    font-size: 13.5px;
  }
  .tbl th {
    font-size: 12.5px;
  }
  .note,
  .notebox p {
    font-size: 13px;
  }
  .help,
  .err,
  .file__meta {
    font-size: 12px;
  }
  .crumb {
    font-size: 12.5px;
  }
  .listbar__l {
    font-size: 13.5px;
  }
  .empty__t {
    font-size: 15px;
  }
  .empty__s {
    font-size: 13px;
  }
  .foot__h {
    font-size: 15px;
  }
  .foot__desc,
  .foot__list a,
  .foot__contact li {
    font-size: 13px;
  }
  .foot__policy a,
  .foot__copy {
    font-size: 12px;
  }
  .mainsec__h {
    font-size: 23px;
  }
  .mainsec__p {
    font-size: 14px;
  }
  .ncard__t {
    font-size: 16.5px;
  }
  .news__t {
    font-size: 14.5px;
  }
  .authcard__p {
    font-size: 13.5px;
  }
  .authcard__foot {
    font-size: 13px;
  }
  .resmsg {
    font-size: 15px;
  }
  .errpage__code {
    font-size: 12px;
  }
  /* 오류 접수 카드 · 답변 칸 */
  .srcard__t {
    font-size: 15.5px;
  }
  .srcard__meta {
    font-size: 12.5px;
  }
  .srcard__lb {
    font-size: 13px;
  }
  .srans__h {
    font-size: 13.5px;
  }
  .srans__txt {
    font-size: 14px;
  }
  .srans--wait .srans__txt {
    font-size: 13px;
  }
  .srans__meta {
    font-size: 12px;
  }
  .dlg__t {
    font-size: 17px;
  }
  .dlg__m {
    font-size: 14px;
  }
}
@media (max-width: 520px) {
  /* 위 ≤900 규칙이 앞의 520 규칙보다 뒤에 있어 여기서 다시 */
  .phead__sub {
    font-size: 14px;
  }
  .hero__p {
    font-size: 15px;
  }
  .btn {
    font-size: 13px;
  }
  .btn--lg {
    font-size: 14px;
  }
  .btn--sm {
    font-size: 12px;
  }
  .ctrl {
    font-size: 13px;
  }
  .label {
    font-size: 12.5px;
  }
  .check__txt {
    font-size: 12.5px;
  }
  .check__sub {
    font-size: 12px;
  }
  .tabs__btn {
    font-size: 13px;
  }
  .tabs--sub .tabs__btn {
    font-size: 12.5px;
  }
  .prose p,
  .prose li,
  .postbody p,
  .postbody li,
  .dl > dd,
  .keyinfo dd,
  .file__nm,
  .relcard__t {
    font-size: 13px;
  }
  .applycard__req {
    font-size: 12px;
  }
  .stat6 {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat6 .stat__lb {
    font-size: 12px;
  }
  .stat6 .stat__no {
    font-size: 20px;
  }
  .prevpost__t {
    font-size: 13.5px;
  }
  .dl > dt {
    font-size: 12.5px;
  }
  .readbox {
    font-size: 12.5px;
  }
  .postmeta li {
    font-size: 12px;
  }
  .prose h3 {
    font-size: 14px;
  }
  .postbody h3 {
    font-size: 13.5px;
  }
  .card__title {
    font-size: 15px;
  }
  .sec-h {
    font-size: 17px;
  }
  .tbl {
    font-size: 12.5px;
  }
  .tbl td.tbl-m-title {
    font-size: 14px;
  }
  .tbl td[data-label]::before {
    font-size: 12px;
  }
  .note,
  .notebox p {
    font-size: 12px;
  }
  .help,
  .err,
  .file__meta {
    font-size: 12px;
  }
  .crumb {
    font-size: 12px;
  }
  .listbar__l {
    font-size: 12.5px;
  }
  .empty__t {
    font-size: 14px;
  }
  .empty__s {
    font-size: 12px;
  }
  .foot__h {
    font-size: 14px;
  }
  .foot__desc,
  .foot__list a,
  .foot__contact li {
    font-size: 12px;
  }
  .foot__policy a,
  .foot__copy {
    font-size: 12px;
  }
  .mainsec__h {
    font-size: 21px;
  }
  .mainsec__p {
    font-size: 13px;
  }
  .ncard__t {
    font-size: 15.5px;
  }
  .news__t {
    font-size: 13.5px;
  }
  .authcard__p {
    font-size: 12.5px;
  }
  .authcard__foot {
    font-size: 12px;
  }
  .resmsg {
    font-size: 14px;
  }
  .errpage__code {
    font-size: 12px;
  }
  .srcard__t {
    font-size: 14.5px;
  }
  .srcard__meta {
    font-size: 12px;
  }
  .srcard__lb {
    font-size: 12px;
  }
  .srans__h {
    font-size: 12.5px;
  }
  .srans__txt {
    font-size: 13px;
  }
  .srans--wait .srans__txt {
    font-size: 12px;
  }
  .srans__meta {
    font-size: 12px;
  }
  .dlg__t {
    font-size: 16px;
  }
  .dlg__m {
    font-size: 13px;
  }
  .dlg .modal__box {
    padding: var(--s6) var(--s5) var(--s5);
  }
  /* 표 → 카드에서 제목 앞 뱃지(질의응답 답변 상태)는 제목 위 줄로 */
  .tbl td.tbl-m-title .tbl__link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .tbl td.tbl-m-title .tbl__badge {
    margin-right: 0;
  }
  /* 입력칸 줄 사이 — 2·3열이 1열로 쌓일 때 너무 벌어지지 않게 */
  .field {
    margin-bottom: var(--s4);
  }
  .grid2 {
    gap: var(--s4);
    margin-bottom: var(--s4);
  }
  /* 처리 버튼 — 세로로 쌓고 가로 꽉 채운다. 주 버튼(마지막)이 위로 */
  .formact {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: var(--s2);
  }
  .formact .btn {
    width: 100%;
  }
  .modal__foot > .btn {
    flex: 1;
  }
  .modal__foot .row {
    flex: 1 1 100%;
  }
  .modal__foot .row .btn {
    flex: 1;
  }
  .actbar__in > .btn,
  .actbar__in .row {
    flex: 1;
  }
  .actbar__in .row .btn {
    flex: 1;
  }
  .actbar__soon {
    flex: 1 1 100%;
    justify-content: center;
  }
}
