/* 별도 자료실 전용 스타일이다. 기존 직업정보 화면의 선택자는 변경하지 않는다. */
.resource-page { margin: 0; background: #f5f7fa; color: #162331; font-family: Pretendard, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; letter-spacing: 0; }
.resource-page * { box-sizing: border-box; }
.resource-page button, .resource-page input { font: inherit; }
.resource-page a { color: #195fc3; text-decoration: none; }
.resource-page button { cursor: pointer; border: 1px solid #cbd5e1; border-radius: 6px; background: white; color: #223349; min-height: 40px; padding: 8px 16px; }
.resource-page button:disabled { opacity: .5; cursor: default; }
.resource-page [hidden] { display: none !important; }
.resource-header { background: white; border-bottom: 1px solid #dce3eb; }
.resource-header-inner { max-width: 1440px; margin: auto; padding: 16px 28px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.resource-brand { display: flex; align-items: center; gap: 12px; color: #162331 !important; font-weight: 750; }
.resource-brand img { flex: 0 0 40px; }
.resource-brand small { display: block; color: #64748b; font-size: 12px; font-weight: 400; margin-top: 3px; }
.resource-nav { display: flex; gap: 8px; align-items: center; }
.resource-nav a { min-height: 40px; padding: 10px 12px; color: #445468; font-size: 14px; white-space: nowrap; }
.resource-nav [aria-current] { color: #185bc1; border-bottom: 2px solid #185bc1; font-weight: 700; }
.resource-main { max-width: 1440px; margin: auto; padding: 32px 28px 48px; }
.resource-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.resource-eyebrow { font-size: 13px; color: #246d67; font-weight: 700; margin: 0 0 8px; }
.resource-heading h1 { font-size: 28px; line-height: 1.3; margin: 0; }
.resource-heading p:not(.resource-eyebrow) { font-size: 14px; color: #5a697a; margin: 10px 0 0; line-height: 1.6; }
.resource-source { font-size: 13px; flex-shrink: 0; }
.resource-notice { padding: 14px 0 14px 16px; margin: 0 0 24px; border-left: 3px solid #328e81; color: #40595b; font-size: 14px; line-height: 1.7; }
/* 검색 폼과 페이지 이동은 안정된 높이·유연한 입력 폭으로 로딩 중에도 정렬을 유지한다. */
.resource-search > label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.resource-search > div { display: flex; gap: 8px; max-width: 760px; }
.resource-search input { min-width: 0; flex: 1; width: 100%; padding: 12px 14px; border: 1px solid #becbd9; border-radius: 6px; background: white; }
.resource-search button { background: #1c61c7; border-color: #1c61c7; color: white; min-width: 84px; }
.resource-status-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; font-size: 13px; color: #596b7e; }
.resource-status-row p { margin: 12px 0; overflow-wrap: anywhere; }
.resource-layout { display: grid; grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); border-top: 1px solid #dce3eb; background: white; min-height: 520px; }
.resource-results { min-width: 0; padding: 16px; border-right: 1px solid #dce3eb; }
#resourceList { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-content: start; max-height: 680px; overflow-y: auto; overflow-x: hidden; scrollbar-gutter: stable; }
.resource-page .resource-item { display: block; flex-shrink: 0; min-height: 68px; width: 100%; height: auto; text-align: left; padding: 14px; border: 1px solid #e0e6ed; background: #fbfcfd; border-radius: 6px; overflow-wrap: anywhere; }
.resource-item strong { display: block; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; word-break: normal; }
.resource-item span { display: block; font-size: 13px; line-height: 1.6; color: #5e6f80; margin-top: 6px; overflow-wrap: anywhere; word-break: normal; }
.resource-page .resource-item[aria-pressed="true"] { border-color: #2872d2; background: #eef5ff; }
.resource-pagination { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; }
.resource-pagination button { padding: 8px 12px; }
.resource-detail { min-width: 0; padding: 28px; }
.resource-detail h2 { font-size: 25px; line-height: 1.45; margin: 8px 0 16px; overflow-wrap: anywhere; }
.resource-detail h3 { font-size: 16px; margin: 0 0 12px; }
.resource-detail p, .resource-detail li { font-size: 15px; line-height: 1.85; white-space: pre-line; overflow-wrap: anywhere; }
.resource-detail p { margin: 0; }
.resource-detail ul { margin: 0; padding-left: 20px; }
.resource-detail li + li { margin-top: 8px; }
.resource-detail-section { margin-top: 24px; padding-top: 24px; border-top: 1px solid #e1e7ee; }
.resource-detail-meta { margin-top: 24px !important; font-size: 12px !important; color: #697b8e; }
.resource-answer { border-left: 3px solid #328e81; padding-left: 18px; }
.resource-empty { padding: 28px 4px; color: #64748b; font-size: 14px; }
.resource-detail-retry { margin-top: 16px; }
.resource-footer { max-width: 1440px; padding: 0 28px 32px; margin: auto; display: flex; flex-wrap: wrap; gap: 20px; font-size: 12px; }
/* 좁은 화면은 목록과 상세를 위아래로 배치한다. 긴 답변도 가로로 밀려나지 않는다. */
@media (max-width: 760px) {
  .resource-header-inner { align-items: flex-start; flex-direction: column; padding: 14px 18px; gap: 12px; }
  .resource-nav { width: 100%; justify-content: space-between; gap: 0; }
  .resource-nav a { padding: 10px 6px; font-size: 13px; }
  .resource-main { padding: 24px 16px 32px; }
  .resource-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .resource-heading h1 { font-size: 24px; }
  .resource-layout { grid-template-columns: minmax(0, 1fr); }
  .resource-results { border-right: 0; border-bottom: 1px solid #dce3eb; padding: 14px; }
  #resourceList { max-height: 330px; }
  .resource-detail { padding: 22px 18px; }
  .resource-detail h2 { font-size: 22px; }
  .resource-footer { padding: 0 18px 24px; gap: 14px; }
}
