/* 등재 Scholar — PNU Scholar-based modern theme (indigo / light-gray / white cards) */
:root {
  --primary: #4b4dff;
  --primary-dark: #3a3ce0;
  --primary-soft: #eeeefc;
  --bg: #ffffff;
  --bg-subtle: #f3f5f9;
  --surface: #ffffff;
  --ink: #1f2429;
  --ink-2: #6c7687;
  --ink-3: #b4bccc;
  --line: #e4e8f1;
  --line-strong: #d4dae6;
  --gold: #b9831f;
  --gold-soft: #fbf3e3;
  --shadow-sm: 0 1px 2px rgba(31, 36, 41, 0.05);
  --shadow-md: 0 4px 16px rgba(31, 36, 41, 0.08);
  --radius: 10px;
  --radius-lg: 14px;
  --sans: "Pretendard Variable", Pretendard, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg-subtle);
  color: var(--ink);
  font-feature-settings: "tnum";
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}
.hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; gap: 28px; height: 60px;
}
.wordmark { text-decoration: none; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.wordmark-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), #7a7bff);
  color: #fff; font-size: 15px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.wordmark-text { display: flex; flex-direction: column; line-height: 1.15; }
.wordmark-ko { font-weight: 800; font-size: 16.5px; letter-spacing: -0.02em; }
.wordmark-en { font-size: 9px; letter-spacing: 1.8px; color: var(--ink-3); font-weight: 600; }
.header-nav { display: flex; gap: 4px; margin-left: 8px; }
.nav-tab {
  border: none; background: none; padding: 8px 14px;
  font-size: 14px; color: var(--ink-2); border-radius: 8px;
  transition: all .15s;
}
.nav-tab:hover { background: var(--bg-subtle); color: var(--ink); }
.nav-tab.active { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.header-meta { margin-left: auto; font-size: 11.5px; color: var(--ink-3); font-weight: 600; letter-spacing: 0.6px; }

/* ---------- header search (PNU subpage style) ---------- */
.header-search {
  margin-left: auto; display: flex; align-items: center; gap: 6px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface); padding: 3px; overflow: hidden; flex: none;
}
.header-search + .header-meta { margin-left: 12px; }
.hs-scope {
  border: none; background: var(--bg-subtle); font-family: inherit;
  font-size: 12px; color: var(--ink-2); border-radius: 7px;
  padding: 6px 4px 6px 8px; outline: none; cursor: pointer;
}
.hs-input {
  border: none; outline: none; font-family: inherit; font-size: 13px;
  width: 190px; padding: 6px 4px; background: transparent; color: var(--ink);
}
.hs-input::placeholder { color: var(--ink-3); }
.hs-btn {
  position: relative; width: 30px; height: 30px; flex: none;
  border: none; border-radius: 7px; background: var(--primary); cursor: pointer;
}
.hs-btn::before {
  content: ""; position: absolute; left: 8px; top: 7px;
  width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%;
}
.hs-btn::after {
  content: ""; position: absolute; left: 16px; top: 17px;
  width: 2px; height: 6px; background: #fff; border-radius: 2px;
  transform: rotate(-45deg);
}

/* ---------- sub views (publishers / papers / researchers) ---------- */
.sub-wrap { max-width: 1080px; margin: 0 auto; padding: 20px 28px 80px; }
.pub-search { margin-bottom: 14px; }
.results-head .filter-note { font-weight: 500; }

.pub-list, .paper-list, .res-list {
  list-style: none; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.pub-row {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 22px; border-bottom: 1px solid var(--line); cursor: pointer;
  transition: background .12s;
}
.pub-row:last-child, .paper-row:last-child, .res-row:last-child { border-bottom: none; }
.pub-row:hover { background: var(--primary-soft); }
.pub-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.pub-name { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.pub-fields { font-size: 12px; color: var(--ink-3); }
.pub-side { display: flex; align-items: center; gap: 10px; flex: none; }
.pub-n { font-size: 13px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.paper-row { padding: 16px 22px; border-bottom: 1px solid var(--line); transition: background .12s; }
.paper-row:hover { background: var(--primary-soft); }
.pr-link { color: inherit; text-decoration: none; }
.paper-row:hover .pr-link { color: var(--primary); }
.pr-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.pr-ext { font-size: 11px; color: var(--primary); margin-left: 5px; vertical-align: 1px; }
.pr-title { font-weight: 600; font-size: 15px; line-height: 1.4; letter-spacing: -0.01em; }
.pr-authors { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.pr-author { font-size: 12.5px; color: var(--primary); cursor: pointer; }
.pr-author:hover { text-decoration: underline; }
.pr-more { font-size: 12px; color: var(--ink-3); }
.pr-meta { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--ink-3); }
.pr-journal { color: var(--ink-2); font-weight: 600; cursor: pointer; }
.pr-journal:hover { color: var(--primary); }
.pr-cites { color: var(--gold); font-weight: 600; }

.res-row {
  display: flex; align-items: center; gap: 16px;
  padding: 15px 22px; border-bottom: 1px solid var(--line); cursor: pointer;
  transition: background .12s;
}
.res-row:hover { background: var(--primary-soft); }
.res-rank { width: 34px; text-align: right; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; flex: none; }
.res-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.res-name { font-weight: 700; font-size: 15px; }
.res-orcid { font-size: 11px; color: var(--ink-3); font-weight: 500; margin-left: 6px; }
.res-journals { font-size: 12px; color: var(--ink-3); }
.res-side { flex: none; text-align: right; display: flex; flex-direction: column; gap: 2px; }
.res-n { font-weight: 800; font-size: 17px; color: var(--primary); }
.res-n i { font-style: normal; font-size: 11px; color: var(--ink-3); font-weight: 500; margin-left: 2px; }
.res-years { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.hl-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px;
}
.hl-grid .hl-card { flex: none; }

.drawer-actions { margin-top: 14px; }
.drawer-paper-btn {
  width: 100%; padding: 12px; font-size: 13.5px; font-weight: 700;
  border: none; border-radius: 10px; background: var(--primary); color: #fff;
  cursor: pointer; transition: background .15s;
}
.drawer-paper-btn:hover { background: var(--primary-dark); }

.footer-link { border: none; background: none; font: inherit; color: var(--ink-2); cursor: pointer; font-weight: 600; }
.footer-link:hover { color: var(--primary); }
.footer-sep { margin: 0 6px; color: var(--ink-3); }

/* ---------- scival merge additions ---------- */
.badge.Scopus분야 { color: #0f766e; background: #e2f5f1; }
.rank-chip.sv { color: #0f766e; background: #e2f5f1; border-color: transparent; }

.inst-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.inst-col-tit { font-size: 13.5px; font-weight: 800; margin-bottom: 10px; color: var(--ink); }
.inst-list {
  list-style: none; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden;
}
.inst-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  border-bottom: 1px solid var(--line); font-size: 13.5px;
}
.inst-row:last-child { border-bottom: none; }
.inst-rank { width: 24px; text-align: right; color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; flex: none; }
.inst-name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inst-name i { font-style: normal; font-size: 11px; color: var(--ink-3); margin-left: 6px; font-weight: 500; }
.inst-side { flex: none; display: flex; align-items: baseline; gap: 8px; }
.inst-n { font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
.inst-fwci { font-size: 11px; color: var(--ink-3); }

/* ---------- hero (PNU-style search card) ---------- */
.hero {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 72px 28px 56px;
  text-align: center;
}
.hero-compact { text-align: left; padding: 40px 28px 24px; }
.mo-only { display: none; }
@media (max-width: 640px) { .mo-only { display: block; } }
.hero-title {
  font-weight: 900; font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 30px;
}
.hero-title-sm { font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.hero-sub { margin-top: 10px; color: var(--ink-2); font-size: 15px; }
.hero-sub em { font-style: normal; color: var(--primary); font-weight: 600; }

.search-card {
  max-width: 820px; margin: 0 auto;
  background: var(--surface); border: 1px solid #e4e8f1;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: left;
}
.sc-input-row { height: 66px; padding: 0 96px 0 26px; border-bottom: 1px solid #e4e8f1; }
.sc-input-row input {
  width: 100%; height: 100%; border: none; outline: none;
  font-size: 16px; font-family: inherit; background: transparent;
}
.sc-input-row input::placeholder { color: #afafaf; }
.sc-scope-row { position: relative; background: var(--bg-subtle); padding: 0 96px 0 14px; }
.scope-tabs { display: flex; gap: 4px; list-style: none; height: 50px; align-items: center; }
.scope-tabs li {
  padding: 6px 16px; font-size: 14px; color: var(--ink-2);
  border-radius: 8px; cursor: pointer; transition: all .12s; white-space: nowrap;
}
.scope-tabs li:hover { background: #fff; color: var(--ink); }
.scope-tabs li.active { background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.sc-btn {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: none; border-radius: 12px;
  background: var(--primary); cursor: pointer; transition: background .15s;
}
.sc-btn:hover { background: var(--primary-dark); }
.sc-btn::before {
  content: ""; position: absolute; left: 14px; top: 13px;
  width: 13px; height: 13px; border: 2.4px solid #fff; border-radius: 50%;
}
.sc-btn::after {
  content: ""; position: absolute; left: 26px; top: 27px;
  width: 2.4px; height: 8px; background: #fff; border-radius: 2px;
  transform: rotate(-45deg);
}

/* hero status strip — KCI 등재구분 at first glance */
.hero-stat-strip {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
  margin-top: 28px;
}
.hs-stat {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 12px 22px; min-width: 108px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); cursor: pointer; transition: all .12s;
}
.hs-stat:hover { border-color: var(--primary); transform: translateY(-1px); }
.hs-num { font-weight: 800; font-size: 21px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hs-num.gold { color: var(--gold); }
.hs-num.navy { color: var(--primary); }
.hs-num.slate { color: var(--ink-2); }
.hs-num.teal { color: #0f766e; }
body.dark .hs-num.teal { color: #6ee7d0; }
.hs-label { font-size: 11.5px; font-weight: 600; color: var(--ink-2); }

/* ---------- home sections ---------- */
.home-sec {
  max-width: 1280px; margin: 0 auto; padding: 52px 28px 8px;
}
.sec-tit {
  font-size: 24px; font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 22px; display: flex; align-items: center; gap: 10px;
}
.sec-year { font-size: 13px; color: var(--ink-3); font-weight: 600; margin-left: 4px; }
.sec-note { font-size: 12.5px; color: var(--ink-3); font-weight: 500; margin-left: 4px; }
.sub-tit { font-size: 15px; font-weight: 700; margin: 30px 0 14px; color: var(--ink); }

.hl-scroll {
  display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 16px;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.hl-card {
  flex: 0 0 280px; scroll-snap-align: start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  cursor: pointer; transition: all .15s; display: flex; flex-direction: column; gap: 8px;
}
.hl-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.hl-top { display: flex; align-items: center; gap: 6px; }
.hl-title { font-weight: 700; font-size: 16.5px; line-height: 1.35; letter-spacing: -0.02em; }
.hl-pub { font-size: 12.5px; color: var(--ink-2); }
.hl-meta { font-size: 11.5px; color: var(--ink-3); margin-top: auto; }

.stat-blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat-block {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm);
}
.sb-num { font-weight: 900; font-size: 34px; letter-spacing: -0.03em; line-height: 1; }
.stat-block.gold .sb-num { color: var(--gold); }
.stat-block.navy .sb-num { color: var(--primary); }
.stat-block.slate .sb-num { color: var(--ink-2); }
.sb-label { font-size: 13px; font-weight: 700; margin-top: 6px; }
.sb-desc { font-size: 12px; color: var(--ink-3); margin-top: 4px; line-height: 1.5; }

.fbar-row {
  display: grid; grid-template-columns: 150px 1fr 60px; align-items: center; gap: 14px;
  padding: 7px 4px; cursor: pointer; border-radius: 8px;
}
.fbar-row:hover { background: var(--bg-subtle); }
.fbar-label { font-size: 13px; color: var(--ink-2); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fbar-track { height: 14px; background: var(--bg-subtle); border-radius: 7px; overflow: hidden; }
.fbar-fill { display: block; height: 100%; background: var(--primary); border-radius: 7px; opacity: 0.85; }
.fbar-row:hover .fbar-fill { opacity: 1; }
.fbar-val { font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.year-bars {
  display: flex; align-items: flex-end; gap: 6px; height: 180px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px 22px 14px; box-shadow: var(--shadow-sm);
}
.ybar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; min-width: 0; }
.ybar-col { display: block; width: 100%; max-width: 34px; background: var(--primary); border-radius: 4px 4px 0 0; opacity: 0.8; }
.ybar:hover .ybar-col { opacity: 1; }
.ybar-val { font-size: 10px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ybar-year { font-size: 10.5px; color: var(--ink-3); font-weight: 600; }

/* ---------- layout ---------- */
.layout {
  max-width: 1280px; margin: 0 auto; padding: 28px 28px 80px;
  display: grid; grid-template-columns: 284px 1fr; gap: 24px;
  align-items: start;
  scroll-margin-top: 70px;
}
.filters {
  position: sticky; top: 76px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 22px 18px;
  max-height: calc(100vh - 100px); overflow-y: auto;
  box-shadow: var(--shadow-sm);
}
.filter-group { margin-bottom: 24px; }
.filter-title {
  font-size: 12px; color: var(--ink-2); font-weight: 700;
  margin-bottom: 10px; display: flex; align-items: baseline; gap: 6px;
}
.filter-note { font-weight: 500; color: var(--ink-3); font-size: 11px; }
.radio-list { display: flex; flex-direction: column; gap: 2px; }
.radio-item {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 8px; border: none; background: none;
  font-size: 13.5px; color: var(--ink-2); text-align: left; width: 100%;
  border-radius: 8px; transition: all .12s;
}
.radio-item::before {
  content: ""; width: 15px; height: 15px; flex: none;
  border: 1.5px solid var(--line-strong); border-radius: 4px;
  background: var(--surface); transition: all .12s;
}
.radio-item:hover { background: var(--bg-subtle); color: var(--ink); }
.radio-item.active { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.radio-item.active::before {
  background: var(--primary); border-color: var(--primary);
  box-shadow: inset 0 0 0 3px var(--surface);
}
.radio-item .cnt { margin-left: auto; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.radio-item.active .cnt { color: var(--primary); opacity: 0.8; }
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 5px 12px; font-size: 12.5px; font-weight: 600;
  border: 1px solid var(--line-strong); background: var(--surface);
  border-radius: 999px; color: var(--ink-2); transition: all .12s;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.chip-cnt { font-size: 11px; opacity: 0.8; font-variant-numeric: tabular-nums; margin-left: 2px; }
.field-search {
  width: 100%; padding: 8px 12px; font-size: 13px; font-family: inherit;
  border: 1px solid var(--line-strong); background: var(--bg-subtle);
  border-radius: 8px; outline: none; margin-bottom: 8px;
}
.field-search:focus { border-color: var(--primary); background: var(--surface); }
.field-list { display: flex; flex-direction: column; gap: 1px; max-height: 260px; overflow-y: auto; }
.field-item {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 8px; border: none; background: none;
  font-size: 13px; color: var(--ink-2); text-align: left; border-radius: 6px;
}
.field-item:hover { background: var(--bg-subtle); color: var(--ink); }
.field-item.active { color: var(--primary); font-weight: 700; background: var(--primary-soft); }
.field-item .cnt { margin-left: auto; font-size: 11px; color: var(--ink-3); }
.sort-select {
  width: 100%; padding: 9px 12px; font-size: 13px; font-family: inherit;
  border: 1px solid var(--line-strong); background: var(--surface);
  border-radius: 8px; outline: none; color: var(--ink);
}
.reset-btn {
  width: 100%; padding: 10px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink-2); border-radius: 8px; transition: all .12s;
}
.reset-btn:hover { border-color: var(--ink-2); color: var(--ink); }

/* ---------- results ---------- */
.results { min-width: 0; }
.results-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 2px 2px 12px;
}
.results-count { font-size: 13.5px; color: var(--ink-2); }
.results-count b { color: var(--ink); font-size: 15px; font-weight: 800; }
.sort-wrap { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.sort-label { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.sort-wrap .sort-select { width: auto; }
.active-chips { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; }

/* journal list — PNU-style divided rows inside one panel */
.journal-list {
  list-style: none;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.journal-row { padding: 20px 24px 18px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .12s; }
.journal-row:last-child { border-bottom: none; }
.journal-row:hover { background: var(--primary-soft); }
.jr-top { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.jr-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.rank-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; font-size: 11.5px; font-weight: 700;
  border-radius: 999px; color: var(--ink-2); background: var(--bg-subtle);
  border: 1px solid var(--line);
}
.rank-chip.if { color: var(--primary); background: var(--primary-soft); border-color: transparent; }
.jr-top .badge { margin-left: auto; }
.jr-title { font-weight: 700; font-size: 17px; line-height: 1.35; letter-spacing: -0.02em; }
.journal-row:hover .jr-title { color: var(--primary); }
.jr-title-en { font-weight: 500; font-size: 13px; color: var(--ink-3); letter-spacing: 0; }
.jr-meta { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 12.5px; color: var(--ink); }
.jr-meta em { font-style: normal; color: var(--ink-3); font-weight: 600; margin-right: 5px; }
.jr-cats { margin-top: 8px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cat-item { font-size: 12px; color: var(--ink-2); }
.cat-item i {
  font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--primary);
  background: var(--primary-soft); border-radius: 4px; padding: 1.5px 6px; margin-right: 6px;
}
.milestone-inline { font-size: 11.5px; color: var(--ink-3); margin-left: auto; }
.milestone-inline b { color: var(--gold); font-weight: 700; }

.badge {
  display: inline-block; padding: 3px 9px; font-size: 11px; font-weight: 700;
  border-radius: 999px; white-space: nowrap; letter-spacing: 0;
}
.badge.우수등재 { color: var(--gold); background: var(--gold-soft); }
.badge.KCI등재 { color: var(--primary); background: var(--primary-soft); }
.badge.KCI후보 { color: var(--ink-2); background: var(--bg-subtle); }
.badge-foreign { color: var(--ink-2); border: 1px solid var(--line-strong); background: var(--surface); }

/* ---------- pagination ---------- */
.pagination { display: flex; gap: 4px; justify-content: center; padding: 28px 0 0; flex-wrap: wrap; }
.page-btn {
  min-width: 34px; height: 34px; padding: 0 10px;
  border: none; background: none; border-radius: 8px;
  font-size: 13.5px; color: var(--ink-2); font-weight: 600;
  font-variant-numeric: tabular-nums; transition: all .12s;
}
.page-btn:hover { background: var(--bg-subtle); color: var(--ink); }
.page-btn.active { background: var(--primary); color: #fff; }
.page-btn.disabled { opacity: 0.35; pointer-events: none; }

/* ---------- drawer ---------- */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(31, 36, 41, 0.4);
  z-index: 90; animation: fade .2s;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100vw);
  background: var(--surface); z-index: 95; overflow-y: auto;
  border-left: 1px solid var(--line);
  animation: slideIn .25s cubic-bezier(.2,.8,.2,1);
  padding: 36px 30px 60px;
}
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.drawer-close {
  position: absolute; top: 16px; right: 20px;
  width: 34px; height: 34px; border-radius: 50%;
  border: none; background: var(--bg-subtle);
  font-size: 15px; color: var(--ink-2); line-height: 1;
}
.drawer-close:hover { background: var(--line); color: var(--ink); }
.drawer-status { margin-bottom: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.drawer-title { font-weight: 800; font-size: 24px; line-height: 1.3; letter-spacing: -0.025em; }
.drawer-title-en { color: var(--ink-3); font-size: 13px; margin-top: 4px; }
.drawer-aliases { margin-top: 12px; font-size: 12px; color: var(--ink-3); background: var(--bg-subtle); border-radius: 8px; padding: 10px 12px; }
.drawer-aliases b { font-weight: 700; color: var(--ink-2); }
.drawer-alias { display: block; margin-top: 3px; color: var(--ink-2); }
.drawer-section { margin-top: 26px; }
.drawer-section-title {
  font-size: 12px; color: var(--ink-2); font-weight: 700;
  padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 12px;
}
.spec-table { width: 100%; font-size: 13.5px; }
.spec-table th {
  text-align: left; font-weight: 500; color: var(--ink-3); width: 96px;
  padding: 7px 0; vertical-align: top;
}
.spec-table td { padding: 7px 0; color: var(--ink); font-weight: 500; }
.spec-table a { color: var(--primary); text-decoration: none; font-weight: 600; }
.spec-table a:hover { text-decoration: underline; }
.hist-timeline { position: relative; padding-left: 24px; }
.hist-timeline::before {
  content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px;
  width: 2px; background: var(--line); border-radius: 2px;
}
.hist-item { position: relative; padding: 0 0 18px 10px; }
.hist-item:last-child { padding-bottom: 0; }
.hist-item::before {
  content: ""; position: absolute; left: -22px; top: 7px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--ink-3);
}
.hist-item.key::before { background: var(--primary); border-color: var(--primary); }
.hist-year { font-weight: 800; font-size: 14.5px; }
.hist-badge { margin-left: 8px; }
.hist-detail { margin-top: 3px; font-size: 13px; color: var(--ink-2); }
.hist-type { font-size: 11px; color: var(--ink-3); margin-left: 6px; font-weight: 600; }

/* ---------- timeline view ---------- */
.timeline-wrap { max-width: 880px; margin: 0 auto; padding: 20px 28px 80px; }
.year-block {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 20px 22px; margin-bottom: 14px;
}
.year-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; }
.year-num { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.year-summary { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.year-events { display: flex; flex-direction: column; gap: 8px; }
.year-event {
  display: flex; gap: 10px; align-items: center; font-size: 13.5px;
  padding: 8px 12px; background: var(--bg-subtle); border-radius: 8px;
  border: 1px solid transparent; transition: all .12s; cursor: pointer;
}
.year-event:hover { border-color: var(--primary); background: var(--surface); }
.year-event .hist-year { font-size: 13px; color: var(--ink-2); }
.year-event .ev-title { font-weight: 700; }
.year-event .ev-detail { color: var(--ink-2); font-size: 12.5px; margin-left: auto; text-align: right; }

/* ---------- about ---------- */
.about-body { max-width: 720px; margin: 0 auto; padding: 8px 28px 80px; font-size: 15px; line-height: 1.8; color: var(--ink-2); }
.about-body h2 { color: var(--ink); font-size: 18px; font-weight: 800; margin: 30px 0 10px; letter-spacing: -0.02em; }
.about-body p { margin-bottom: 12px; }
.about-body ul { margin: 0 0 12px 20px; }
.about-body li { margin-bottom: 6px; }
.about-body code { background: var(--primary-soft); color: var(--primary); padding: 1px 7px; font-size: 13px; border-radius: 6px; }

/* ---------- dark theme ---------- */
body.dark {
  --paper: #14161b;
  --bg: #14161b;
  --bg-subtle: #1d2028;
  --surface: #20242d;
  --surface-2: #252a34;
  --ink: #e8eaf0;
  --ink-2: #aeb6c4;
  --ink-3: #8b93a6;
  --line: #2e3440;
  --line-strong: #3d4452;
  --primary: #8b8fff;
  --primary-dark: #7d81ff;
  --primary-soft: #292c49;
  --gold: #dcb464;
  --gold-soft: #3b3421;
  --slate: #9aa6ba;
  --slate-soft: #2a2f3a;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.55);
}
body { transition: background-color .2s ease, color .2s ease; }
body.dark .site-header { background: rgba(20, 22, 27, 0.92); }
body.dark .search-card { border-color: var(--line); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); }
body.dark .sc-input-row { border-bottom-color: var(--line); }
body.dark .scope-tabs li:hover,
body.dark .scope-tabs li.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4); }
body.dark .sc-input-row input::placeholder { color: var(--ink-3); }
body.dark .rank-chip { background: var(--bg-subtle); }
body.dark .drawer { background: var(--surface); }
body.dark .badge.Scopus분야 { color: #6ee7d0; background: #17403a; }
body.dark .rank-chip.sv { color: #6ee7d0; background: #17403a; border-color: transparent; }
body.dark .badge.KCI등재 { background: #2b2f55; }
body.dark .badge.우수등재 { background: #453a1f; }
body.dark .drawer-backdrop { background: rgba(0, 0, 0, 0.6); }
body.dark .hl-card { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45); }
body.dark .fbar-track { background: #2a2f3a; }
body.dark .cat-item i { color: #a3a7ff; }
body.dark .search-card { box-shadow: 0 6px 22px rgba(0, 0, 0, 0.55); }

/* ---------- header utils ---------- */
.header-utils { margin-left: 12px; display: flex; gap: 6px; flex: none; }
.util-btn {
  min-width: 34px; height: 32px; padding: 0 8px;
  border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--surface); color: var(--ink-2);
  font-size: 12.5px; font-weight: 700; cursor: pointer; transition: all .12s;
}
.util-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px; text-align: center; font-size: 12.5px; color: var(--ink-3);
  background: var(--bg);
}
.footer-note { margin-top: 4px; font-size: 11.5px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .hs-input { width: 110px; }
}
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; gap: 16px; }
  .filters { position: static; max-height: none; }
  .sort-wrap { margin-left: 0; }
  .header-nav { margin-left: 0; }
  .header-utils { margin-left: 0; }
  .header-meta { display: none; }
  .header-inner { gap: 12px; }
  .wordmark-en { display: none; }
  .hs-input { width: 70px; }
  .header-nav .nav-tab { padding: 8px 9px; font-size: 13px; }
  .journal-row { padding: 16px 18px 14px; }
  .milestone-inline { margin-left: 0; }
  .year-event { flex-wrap: wrap; }
  .year-event .ev-detail { margin-left: 0; text-align: left; width: 100%; padding-left: 2px; }
  .stat-blocks { grid-template-columns: 1fr; }
  .fbar-row { grid-template-columns: 110px 1fr 50px; gap: 10px; }
  .year-bars { height: 140px; gap: 3px; padding: 16px 12px 10px; }
  .ybar-val { display: none; }
  .sc-input-row, .sc-scope-row { padding-right: 70px; }
  .sc-btn { width: 38px; height: 38px; }
  .sc-btn::before { left: 11px; top: 10px; width: 11px; height: 11px; }
  .sc-btn::after { left: 22px; top: 23px; height: 7px; }
  .scope-tabs li { padding: 5px 12px; font-size: 13px; }
}
