/* =========================================================================
   nsiajob — 페이지별 스타일 (Taste DS 위에 얹는 레이어)
   theme.css = 공통 컴포넌트 / pages.css = 홈 히어로 + 서브페이지
   ========================================================================= */

/* ---- 홈 히어로: 50/50 균형 + 제품 UI 미리보기 --------------------------- */
.nsx-hero .nsx-wrap { grid-template-columns: 1fr 1fr; gap: 44px; }
.nsx-hero__copy { margin-left: auto; max-width: 520px; width: 100%; }
.nsx-hero__sub { max-width: none; }

.nsx-hero__preview { position: relative; min-height: 372px; display: flex; align-items: center; justify-content: center; }
.hp-glow { position: absolute; inset: 4% 2%; background: radial-gradient(120% 120% at 72% 22%, var(--accent-weak), transparent 62%); filter: blur(8px); border-radius: 40px; z-index: 0; }
.nsx-hero__preview .hp-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 20px 45px -14px rgba(16,32,72,.28); position: relative; z-index: 1; }
.hp-search { width: min(100%, 380px); padding: 14px; }
.hp-search__bar { display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 14px; border: 1.5px solid var(--accent); border-radius: 12px; background: #fff; box-shadow: 0 0 0 4px rgba(31,95,208,.14); color: var(--navy); font-weight: 600; }
.hp-search__bar .ph { color: var(--accent); font-size: 18px; }
.hp-search__ph { color: var(--text-subtle); font-weight: 500; flex: 1; }
.hp-search__tag { font-size: 10px; font-weight: 700; color: var(--accent); background: var(--accent-weak); border-radius: 999px; padding: 3px 7px; display: inline-flex; align-items: center; gap: 4px; }
.hp-search__tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: hppulse 1.4s ease-in-out infinite; }
@keyframes hppulse { 50% { opacity: .35; } }
.hp-list__h { font-size: 11px; font-weight: 700; color: var(--text-subtle); letter-spacing: .03em; margin: 12px 6px 4px; }
.hp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.hp-list li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; }
.hp-list li:first-child { background: var(--accent-weak); }
.hp-list b { font-size: 14px; color: var(--navy); font-weight: 600; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hp-cnt { font-size: 12px; color: var(--text-subtle); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hp-badge { font-size: 11px; font-weight: 700; color: var(--accent-text); background: #e7eefb; border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.hp-chip { padding: 11px 14px; display: flex; align-items: center; gap: 10px; position: absolute; }
.hp-chip--exam { top: 1%; right: -3%; z-index: 2; }
.hp-chip--stat { bottom: 2%; left: -5%; z-index: 2; flex-direction: column; align-items: flex-start; gap: 9px; }
.hp-chip__ico { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 18px; flex: none; }
.hp-chip__body { display: flex; flex-direction: column; line-height: 1.3; }
.hp-chip__k { font-size: 11px; color: var(--text-subtle); font-weight: 600; display: flex; align-items: center; gap: 5px; }
.hp-chip__k .ph { color: var(--accent); }
.hp-chip__v { font-size: 14px; color: var(--navy); font-weight: 700; font-variant-numeric: tabular-nums; }
.hp-bars { display: flex; align-items: flex-end; gap: 5px; height: 44px; }
.hp-bars i { width: 9px; border-radius: 3px 3px 0 0; background: #cdd9f2; }
.hp-bars i.on { background: var(--accent); }
@media (max-width: 820px) {
  .nsx-hero__copy { margin-left: 0; max-width: none; }
  .nsx-hero__preview { min-height: 308px; margin-top: 10px; }
  .hp-chip--exam { right: 1%; }
  .hp-chip--stat { left: 1%; }
}

/* ---- 종목 상세 (single-license) ---------------------------------------- */
.lic .nsx-wrap { max-width: 1080px; }

.lic-crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--text-subtle); margin-bottom: 18px; }
.lic-crumb a { color: var(--text-muted); text-decoration: none; }
.lic-crumb a:hover { color: var(--accent); }
.lic-crumb .ph { font-size: 13px; opacity: .6; }
.lic-crumb span { color: var(--navy); font-weight: 600; }

.lic-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.lic-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.lic-title { font-size: clamp(26px, 3vw, 36px); line-height: 1.2; letter-spacing: -0.03em; color: var(--navy); margin: 0 0 6px; }
.lic-sub { font-size: 14px; color: var(--text-muted); margin: 0; }
.lic-fav { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 18px; border: 1.5px solid var(--border-strong); border-radius: var(--radius-md, 10px); background: #fff; color: var(--text-muted); font-size: 14px; font-weight: 600; cursor: pointer; transition: all .15s ease; }
.lic-fav:hover { border-color: var(--accent); color: var(--accent); }
.lic-fav .ph { font-size: 18px; }
.lic-fav.is-on { border-color: var(--accent); color: var(--accent); background: var(--accent-weak); }
.lic-fav.is-on .ph { color: #f5a524; }

.lic-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.lic-stat { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow-sm); }
.lic-stat__k { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-muted); margin-bottom: 8px; }
.lic-stat__k .ph { color: var(--accent); font-size: 15px; }
.lic-stat__k em { font-style: normal; font-size: 10px; font-weight: 700; color: var(--accent-text); background: var(--accent-weak); border-radius: 5px; padding: 1px 5px; }
.lic-stat b { font-size: 23px; font-weight: 700; color: var(--navy); letter-spacing: -0.02em; }
.lic-stat--muted b { color: var(--text-subtle); font-weight: 600; }

.lic-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.lic-main { display: flex; flex-direction: column; gap: 20px; }
.lic-aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; }

.lic-year, .lic-panel .lic-year { font-size: 12px; font-weight: 700; color: var(--accent-text); background: var(--accent-weak); border-radius: 6px; padding: 2px 7px; margin-left: 2px; }

.lic-dl { display: flex; flex-direction: column; }
.lic-dl__row { display: flex; gap: 16px; padding: 12px 2px; border-top: 1px solid var(--border); }
.lic-dl__row:first-child { border-top: none; }
.lic-dl dt { width: 92px; flex: none; color: var(--text-muted); font-size: 13.5px; font-weight: 600; }
.lic-dl dd { flex: 1; margin: 0; color: var(--navy); font-size: 14px; line-height: 1.6; }

.lic-note { font-size: 12px; color: var(--text-subtle); margin: 0 0 12px; }
.lic-empty { display: flex; align-items: center; gap: 8px; background: var(--surface-2, #f6f8fc); border-radius: 10px; padding: 16px; color: var(--text-subtle); font-size: 13.5px; line-height: 1.5; }
.lic-empty .ph { font-size: 18px; color: var(--text-subtle); flex: none; }
.lic-empty--sm { padding: 14px; font-size: 13px; }

.lic-table__wrap { overflow-x: auto; }
.lic-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.lic-table th { text-align: left; padding: 10px 10px; color: var(--text-muted); font-weight: 600; font-size: 12.5px; border-bottom: 1.5px solid var(--border-strong); white-space: nowrap; }
.lic-table td { padding: 11px 10px; border-bottom: 1px solid var(--border); color: var(--navy); white-space: nowrap; }
.lic-table tbody tr:last-child td, .lic-table tbody tr:last-child td { border-bottom: none; }
.lic-table__seq { font-weight: 700; }
.lic-table tbody tr:first-child { background: var(--accent-weak); }

.lic-content { line-height: 1.8; color: var(--text-body, #333); font-size: 15px; }
.lic-content h2, .lic-content h3 { color: var(--navy); margin: 20px 0 8px; }
.lic-content p { margin: 0 0 12px; }

.lic-next__seq { display: inline-block; font-size: 12px; font-weight: 700; color: #fff; background: var(--accent); border-radius: 6px; padding: 3px 9px; margin-bottom: 10px; }
.lic-next__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lic-next__list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; }
.lic-next__list span { color: var(--text-muted); }
.lic-next__list b { color: var(--navy); font-weight: 700; }

@media (max-width: 900px) {
  .lic-grid { grid-template-columns: 1fr; }
  .lic-aside { position: static; }
  .lic-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .lic-head { flex-direction: column; }
}

/* ---- 자격증 목록 (archive-license / taxonomy-jm_grade) ------------------ */
.arc .nsx-wrap { max-width: 1120px; }
.arc-head { margin-bottom: 20px; }
.arc-head h1 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; letter-spacing: -0.03em; color: var(--navy); margin: 0 0 6px; }
.arc-head p { font-size: 14px; color: var(--text-muted); margin: 0; }
.arc-head p b { color: var(--accent); font-weight: 700; }

.arc-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.arc-search { position: relative; flex: 1; min-width: 240px; max-width: 380px; }
.arc-search .ph { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-subtle); font-size: 17px; }
.arc-search input { width: 100%; height: 46px; padding: 0 14px 0 42px; border: 1.5px solid var(--border-strong); border-radius: var(--radius-lg, 12px); background: #fff; font-size: 15px; box-shadow: var(--shadow-sm); }
.arc-search input:focus-visible { outline: none; border-color: var(--accent); box-shadow: var(--focus-ring, 0 0 0 4px rgba(31,95,208,.15)); }

.arc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.arc-chips a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius-pill, 999px); background: #fff; color: var(--text-muted); font-size: 13.5px; font-weight: 600; text-decoration: none; transition: all .15s ease; }
.arc-chips a:hover { border-color: var(--accent); color: var(--accent); }
.arc-chips a b { font-weight: 700; color: var(--text-subtle); font-variant-numeric: tabular-nums; }
.arc-chips a.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.arc-chips a.is-active b { color: #cfe0ff; }

.arc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 14px; }
.arc-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: 14px; text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease; }
.arc-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(16,32,72,.28); border-color: var(--accent); }
.arc-card__top { display: flex; align-items: center; justify-content: space-between; }
.arc-fav { width: 30px; height: 30px; display: grid; place-items: center; border: none; background: transparent; color: var(--text-subtle); cursor: pointer; border-radius: 8px; font-size: 17px; transition: color .15s ease, background .15s ease; }
.arc-fav:hover { background: var(--surface-2, #f2f5fb); color: var(--accent); }
.arc-fav.is-on { color: #f5a524; }
.arc-card__name { font-size: 15.5px; font-weight: 700; color: var(--navy); line-height: 1.35; letter-spacing: -0.01em; }
.arc-card__meta { font-size: 12.5px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; margin-top: auto; }
.arc-card__meta .ph { color: var(--accent); font-size: 14px; }
.arc-card__soft { color: var(--text-subtle); }

.arc-empty { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 40px; color: var(--text-subtle); font-size: 14px; }

@media (max-width: 560px) {
  .arc-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .arc-toolbar { flex-direction: column; align-items: stretch; }
  .arc-search { max-width: none; }
}

/* ---- 블로그 글 (single.php) -------------------------------------------- */
.art .nsx-wrap { max-width: 1080px; }
.art-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.art-main { min-width: 0; }
.art-head { margin-bottom: 22px; }
.art-head .t-badge { margin-bottom: 12px; }
.art-title { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.25; letter-spacing: -0.03em; color: var(--navy); margin: 0 0 14px; }
.art-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--text-subtle); }
.art-meta span { display: inline-flex; align-items: center; gap: 5px; }
.art-meta .ph { font-size: 14px; }
.art-hero { border-radius: 16px; overflow: hidden; margin-bottom: 24px; }
.art-hero img { width: 100%; height: auto; display: block; }
.art-body { font-size: 16px; line-height: 1.85; color: #2c3547; }
.art-body > * + * { margin-top: 16px; }
.art-body h2 { font-size: 22px; color: var(--navy); letter-spacing: -0.02em; margin: 34px 0 12px; padding-top: 6px; }
.art-body h3 { font-size: 18px; color: var(--navy); margin: 26px 0 10px; }
.art-body a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.art-body ul, .art-body ol { padding-left: 22px; }
.art-body li { margin: 6px 0; }
.art-body img { max-width: 100%; height: auto; border-radius: 12px; }
.art-body blockquote { border-left: 3px solid var(--accent); background: var(--accent-weak); margin: 20px 0; padding: 14px 18px; border-radius: 0 10px 10px 0; color: var(--text-muted); }
.art-body code { background: var(--surface-2, #f2f5fb); border-radius: 5px; padding: 2px 6px; font-size: .92em; }
.art-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); }
.art-aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; }

/* ---- 글 목록 (archive.php) --------------------------------------------- */
.plist .nsx-wrap { max-width: 1080px; }
.plist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.plist-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .14s ease, box-shadow .14s ease; }
.plist-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -16px rgba(16,32,72,.3); }
.plist-card__thumb { aspect-ratio: 16 / 9; background: var(--surface-3); display: grid; place-items: center; overflow: hidden; }
.plist-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.plist-card__ph { color: var(--text-subtle); font-size: 30px; opacity: .5; }
.plist-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.plist-card__body .t-badge { align-self: flex-start; }
.plist-card__title { font-size: 17px; font-weight: 700; color: var(--navy); line-height: 1.4; letter-spacing: -0.02em; margin: 0; }
.plist-card__excerpt { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; margin: 0; }
.plist-card__meta { font-size: 12px; color: var(--text-subtle); display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.plist-page { display: flex; justify-content: center; gap: 6px; margin-top: 34px; }
.plist-page .page-numbers { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.plist-page .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.plist-page a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }

/* ---- 계산기 페이지 (page-tools) ---------------------------------------- */
.tool .nsx-wrap { max-width: 1000px; }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.tool-card--soon { opacity: .72; }
.tool-field { display: flex; gap: 8px; align-items: center; }
.tool-field .t-input { flex: 1; }
.tool-field .t-btn { flex: none; white-space: nowrap; }
.tool-note { font-size: 11.5px; color: var(--text-subtle); line-height: 1.5; margin: 12px 0 0; }
.tool-note b { color: var(--accent-text); }
.tool-result { margin-top: 14px; padding: 14px 16px; border-radius: 12px; font-size: 14px; }
.tool-result.pass { background: var(--accent-weak); }
.tool-result.fail { background: #fdecec; color: #b42318; }
.tool-net { font-size: 15px; color: var(--text-muted); }
.tool-net b { font-size: 26px; color: var(--navy); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tool-net__sub { font-size: 12.5px; color: var(--text-subtle); margin-top: 2px; }
.tool-break { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--border-strong); display: flex; flex-direction: column; gap: 6px; }
.tool-break li { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); }
.tool-break li b { color: var(--navy); font-weight: 600; font-variant-numeric: tabular-nums; }
.tool-break__total { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--border); font-weight: 700; }
.tool-break__total span, .tool-break__total b { color: var(--navy) !important; }
.tool-ad { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .art-grid { grid-template-columns: 1fr; }
  .art-aside { position: static; }
  .tool-grid { grid-template-columns: 1fr; }
}
