/* ============================================================
   서브 화면 공통 — 목록 · 상세 · 시스템 화면
   색·간격은 tokens.css 의 --wd-* 만 참조한다.
   ============================================================ */

/* 본문 바로가기 (접근성 — CM-01) */
.nrm-skip {
  position: absolute; left: 0; top: -60px; z-index: 200;
  padding: 12px 20px; background: var(--wd-primary); color: #fff;
  font-size: 14px; font-weight: 600;
  transition: top var(--wd-dur-fast) var(--wd-ease);
}
.nrm-skip:focus { top: 0; }

.nrm-sub-title {
  margin: 56px 0 22px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--wd-primary);
  font-size: clamp(19px, 2.2vw, 24px); font-weight: 700; letter-spacing: -0.03em;
}
.nrm-empty {
  padding: 40px 20px; text-align: center;
  color: var(--wd-text-muted); font-size: 14.5px;
  background: var(--wd-surface-light); border-radius: var(--wd-radius-default);
}
.nrm-count { margin-bottom: 16px; font-size: 14px; color: var(--wd-text-secondary); }
.nrm-count strong { color: var(--wd-primary); }

/* ---------- 조사 상세 (SB-03) ---------- */
.nrm-survey__intro { margin-bottom: 48px; }
.nrm-survey__body { margin: 18px 0 26px; font-size: 15.5px; line-height: 1.8; color: var(--wd-text-secondary); }
.nrm-survey__intro .wd-spec { margin-top: 26px; }
.nrm-indicators { display: flex; flex-direction: column; gap: 34px; margin-top: 42px; }
.dv-card--lg .dv-card__title { font-size: 22px; }
.nrm-brief { margin-bottom: 12px; }

/* ---------- 조사 카드 ---------- */
.nrm-survey-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 26px 24px 22px;
}
.nrm-survey-card__year { font-size: 12px; font-weight: 700; color: var(--wd-secondary); }
.nrm-survey-card__title { font-size: 18px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.4; }
.nrm-survey-card__kpi { margin-top: 6px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.nrm-survey-card__kpi b { font-family: var(--wd-font-num); font-size: 28px; font-weight: 700; color: var(--wd-primary); }
.nrm-survey-card__kpi em { font-style: normal; font-size: 12.5px; color: var(--wd-text-tertiary); }
.nrm-survey-card__go { margin-top: auto; padding-top: 14px; font-size: 13px; font-weight: 600; color: var(--wd-primary); }

/* ---------- 목록 (SB-04 · SB-05 · SB-09) ---------- */
.nrm-filters {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 16px 18px; margin-bottom: 26px;
  background: var(--wd-surface-light); border-radius: var(--wd-radius-default);
}
.nrm-filters select {
  height: 44px; padding: 0 14px; min-width: 170px;
  border: 1px solid var(--wd-border-default); border-radius: var(--wd-radius-sm);
  background: #fff; font: inherit; font-size: 14.5px;
}
.nrm-filters__reset { font-size: 13.5px; color: var(--wd-text-tertiary); text-decoration: underline; }

.nrm-list { border-top: 2px solid var(--wd-primary); }
.nrm-list__item { border-bottom: 1px solid var(--wd-border-light); }
.nrm-list__item > a {
  display: grid; grid-template-columns: 86px 1fr auto; align-items: center; gap: 8px 18px;
  padding: 20px 6px; transition: background var(--wd-dur-fast) var(--wd-ease);
}
.nrm-list__item > a:hover { background: var(--wd-primary-50); }
.nrm-list__type {
  font-size: 12px; font-weight: 700; color: var(--wd-primary);
  background: var(--wd-primary-50); padding: 5px 0; text-align: center; border-radius: var(--wd-radius-sm);
}
.nrm-list__title { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.nrm-list__meta { font-size: 12.5px; color: var(--wd-text-muted); white-space: nowrap; }
.nrm-list__excerpt {
  grid-column: 2 / -1; font-size: 13.5px; line-height: 1.6; color: var(--wd-text-tertiary);
}
@media (max-width: 640px) {
  .nrm-list__item > a { grid-template-columns: 76px 1fr; }
  .nrm-list__meta { grid-column: 2; text-align: left; }
}

.nrm-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.nrm-pagination .page-numbers {
  min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 12px; border: 1px solid var(--wd-border-default); border-radius: var(--wd-radius-sm);
  font-size: 14px; color: var(--wd-text-secondary);
}
.nrm-pagination .page-numbers.current { background: var(--wd-primary); border-color: var(--wd-primary); color: #fff; font-weight: 700; }
.nrm-pagination a.page-numbers:hover { border-color: var(--wd-primary); color: var(--wd-primary); }

/* ---------- 다운로드 목록 (SB-03 ⑥) ---------- */
.nrm-downloads { margin-top: 12px; }
.nrm-files__head { margin-bottom: 12px; font-size: 15px; font-weight: 700; color: var(--wd-text-secondary); }
.nrm-files { border-top: 1px solid var(--wd-border-default); }
.nrm-files li { border-bottom: 1px solid var(--wd-border-light); }
.nrm-files a {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 6px; transition: background var(--wd-dur-fast) var(--wd-ease);
}
.nrm-files a:hover { background: var(--wd-primary-50); }
.nrm-files__title { font-size: 14.5px; font-weight: 600; }
.nrm-files__meta { flex: 0 0 auto; font-size: 12.5px; color: var(--wd-text-muted); }

/* ---------- 도서관 (SB-07) ---------- */
.nrm-shelf-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.nrm-shelf-switch a {
  padding: 9px 18px; border: 1px solid var(--wd-border-default); border-radius: var(--wd-radius-full);
  font-size: 14px; font-weight: 600; color: var(--wd-text-secondary);
  transition: all var(--wd-dur-fast) var(--wd-ease);
}
.nrm-shelf-switch a:hover { border-color: var(--wd-primary); color: var(--wd-primary); }
.nrm-shelf-switch a.is-on { background: var(--wd-primary); border-color: var(--wd-primary); color: #fff; }

.nrm-shelf { margin-bottom: 52px; }
.nrm-shelf__head {
  display: flex; align-items: baseline; gap: 10px;
  padding-bottom: 12px; margin-bottom: 22px;
  border-bottom: 2px solid var(--wd-border-strong);
  font-size: 18px; font-weight: 700; letter-spacing: -0.03em;
}
.nrm-shelf__head span { font-size: 13px; font-weight: 500; color: var(--wd-text-muted); }
.nrm-shelf__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.nrm-shelf__grid a { display: block; }
.nrm-shelf__cover {
  display: block; aspect-ratio: 5 / 7; overflow: hidden;
  background: var(--wd-surface-subtle);
  border: 1px solid var(--wd-border-default);
  /* "과하지 않게" — 호버 시 살짝 떠오르는 수준까지만 */
  transition: transform var(--wd-dur) var(--wd-ease), box-shadow var(--wd-dur) var(--wd-ease);
}
.nrm-shelf__grid a:hover .nrm-shelf__cover { transform: translateY(-4px); box-shadow: var(--wd-shadow-card); }
.nrm-shelf__cover img { width: 100%; height: 100%; object-fit: cover; }
.nrm-shelf__title { display: block; margin-top: 10px; font-size: 13.5px; font-weight: 600; line-height: 1.5; }
.nrm-report__placeholder {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-family: var(--wd-font-num); font-size: 22px; font-weight: 700; color: var(--wd-text-muted);
}
@media (max-width: 1080px) { .nrm-shelf__grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .nrm-shelf__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }

/* ---------- 자료 상세 (SB-06) ---------- */
.nrm-detail__head { margin-bottom: 36px; }
.nrm-detail__head .wd-spec { margin-top: 24px; }
.nrm-detail__content { margin: 18px 0 24px; font-size: 15.5px; line-height: 1.8; color: var(--wd-text-secondary); }
.nrm-report { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }
.nrm-report__cover { border: 1px solid var(--wd-border-default); aspect-ratio: 5 / 7; overflow: hidden; background: var(--wd-surface-subtle); }
.nrm-report__cover img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .nrm-report { grid-template-columns: 1fr; gap: 28px; } .nrm-report__cover { max-width: 240px; } }

.nrm-prose { font-size: 15.5px; line-height: 1.85; color: var(--wd-text-secondary); }
.nrm-prose h2, .nrm-prose h3 { margin: 32px 0 12px; color: var(--wd-text-primary); }
.nrm-prose p + p { margin-top: 16px; }
.nrm-prose ul, .nrm-prose ol { margin: 14px 0 14px 20px; list-style: disc; }
.nrm-prose a { color: var(--wd-primary); text-decoration: underline; }

/* ---------- 검색 · 시스템 화면 (SB-09 · SB-10) ---------- */
.nrm-searchbar {
  display: flex; gap: 8px; max-width: 640px; margin-bottom: 28px;
  padding: 7px; border: 1px solid var(--wd-border-strong); border-radius: var(--wd-radius-default); background: #fff;
}
.nrm-searchbar input { flex: 1 1 auto; min-width: 0; border: 0; outline: none; padding: 0 14px; font-size: 15.5px; background: transparent; }
.nrm-searchbar .wd-btn { height: 46px; min-width: 96px; }

.nrm-noresult { padding: 60px 20px; text-align: center; background: var(--wd-surface-light); border-radius: var(--wd-radius-default); }
.nrm-noresult p { font-size: 16px; color: var(--wd-text-secondary); }
.nrm-noresult__keys { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; font-size: 13.5px; }
.nrm-noresult__keys > span { color: var(--wd-text-muted); margin-right: 4px; }
.nrm-noresult__keys a { padding: 6px 13px; border: 1px solid var(--wd-border-default); border-radius: var(--wd-radius-full); background: #fff; }
.nrm-noresult__keys a:hover { border-color: var(--wd-primary); color: var(--wd-primary); }

.nrm-system { max-width: 720px; text-align: center; margin-inline: auto; }
.nrm-system .nrm-searchbar { margin-inline: auto; margin-top: 28px; }
.nrm-system__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px 0; }
.nrm-system__links a {
  padding: 10px 18px; border: 1px solid var(--wd-border-default); border-radius: var(--wd-radius-sm);
  font-size: 14px; font-weight: 600; color: var(--wd-text-secondary);
}
.nrm-system__links a:hover { border-color: var(--wd-primary); color: var(--wd-primary); }

/* ---------- 메인 히어로 추천 검색어 (링크로 바뀐 부분) ---------- */
.hm-hero__keys a {
  padding: 6px 13px; border-radius: var(--wd-radius-full);
  border: 1px solid rgba(255, 255, 255, 0.24); color: rgba(255, 255, 255, 0.86);
  transition: all var(--wd-dur-fast) var(--wd-ease);
}
.hm-hero__keys a:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.5); }

/* 현재 위치 메뉴 강조 (CM-01 ①) */
.nt-gnb__item.is-current .nt-gnb__top { font-weight: 700; color: var(--wd-primary); }
.nt-header__lang-list a { display: block; width: 100%; padding: 6px; border-radius: 4px; transition: .3s ease; }
.nt-header__lang-list a:hover { background: rgba(20, 69, 143, .06); color: var(--wd-primary); }
.nt-search-keywords li a { display: block; }
