/* ==========================================================================
   박주현 교수 웹사이트 — 공통 스타일
   색·간격·글꼴은 모두 아래 :root 변수 한 곳에서 관리합니다.
   ========================================================================== */

/* ---------- 1. 디자인 토큰 ---------- */
:root {
  /* 색 — 밝은 모드 */
  --paper:      #fbfaf6;
  --surface:    #ffffff;
  --surface-2:  #f4f2ec;
  --ink:        #1b1d21;
  --ink-soft:   #54585f;
  --ink-faint:  #8b9098;
  --line:       #e5e1d8;
  --line-soft:  #efece5;

  --navy:       #1f3a5f;
  --navy-hover: #2d5185;
  --navy-wash:  #eaeff7;
  --gold:       #a8742f;
  --gold-wash:  #f8f0e2;

  /* 주제 색 */
  --t-reading:  #2f6b52;
  --t-mil:      #1f3a5f;
  --t-school:   #8a4b2a;
  --t-policy:   #5b4a86;
  --t-library:  #216b78;

  --ok:         #2f6b52;
  --warn:       #a8742f;
  --danger:     #a33a33;

  /* 글꼴 */
  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
               system-ui, "Malgun Gothic", sans-serif;
  --font-serif: "Noto Serif KR", "Nanum Myeongjo", Georgia, serif;

  /* 간격·모양 */
  --radius:     14px;
  --radius-sm:  9px;
  --shadow:     0 1px 2px rgba(27,29,33,.04), 0 8px 24px rgba(27,29,33,.06);
  --shadow-lg:  0 2px 4px rgba(27,29,33,.05), 0 18px 48px rgba(27,29,33,.10);
  --wrap:       1080px;
  --wrap-narrow: 760px;
}

/* 색 — 어두운 모드 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:      #14161a;
    --surface:    #1c1f25;
    --surface-2:  #23272e;
    --ink:        #e9e7e2;
    --ink-soft:   #a8adb5;
    --ink-faint:  #7b8189;
    --line:       #2e333b;
    --line-soft:  #262b32;

    --navy:       #9dbbe6;
    --navy-hover: #bcd2f2;
    --navy-wash:  #1e2836;
    --gold:       #dfb073;
    --gold-wash:  #2b2419;

    --t-reading:  #7fc0a3;
    --t-mil:      #9dbbe6;
    --t-school:   #d99a70;
    --t-policy:   #a99ada;
    --t-library:  #6fbecb;

    --ok:         #7fc0a3;
    --warn:       #dfb073;
    --danger:     #e08a83;

    --shadow:     0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
    --shadow-lg:  0 2px 4px rgba(0,0,0,.35), 0 18px 48px rgba(0,0,0,.45);
  }
}
:root[data-theme="dark"] {
  --paper:      #14161a;
  --surface:    #1c1f25;
  --surface-2:  #23272e;
  --ink:        #e9e7e2;
  --ink-soft:   #a8adb5;
  --ink-faint:  #7b8189;
  --line:       #2e333b;
  --line-soft:  #262b32;
  --navy:       #9dbbe6;
  --navy-hover: #bcd2f2;
  --navy-wash:  #1e2836;
  --gold:       #dfb073;
  --gold-wash:  #2b2419;
  --t-reading:  #7fc0a3;
  --t-mil:      #9dbbe6;
  --t-school:   #d99a70;
  --t-policy:   #a99ada;
  --t-library:  #6fbecb;
  --ok:         #7fc0a3;
  --warn:       #dfb073;
  --danger:     #e08a83;
  --shadow:     0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  --shadow-lg:  0 2px 4px rgba(0,0,0,.35), 0 18px 48px rgba(0,0,0,.45);
}

/* ---------- 2. 기본 ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* hidden 속성은 다른 display 지정보다 항상 이기도록 합니다. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.72;
  letter-spacing: -0.003em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .5em; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4.4vw, 2.7rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
h3 { font-size: 1.12rem; }
p  { margin: 0 0 1.1em; }

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-hover); text-decoration: underline; text-underline-offset: 3px; }

img { max-width: 100%; height: auto; display: block; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

:focus-visible { outline: 2.5px solid var(--navy); outline-offset: 2px; border-radius: 4px; }

/* ---------- 3. 레이아웃 ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.wrap-narrow { max-width: var(--wrap-narrow); }

.section { padding: clamp(2.6rem, 6vw, 4.6rem) 0; }
.section + .section { border-top: 1px solid var(--line-soft); }

.stack > * + * { margin-top: 1rem; }
.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---------- 4. 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: 62px; position: relative;
}
.brand {
  font-family: var(--font-serif);
  font-size: 1.22rem; font-weight: 700; color: var(--ink);
  letter-spacing: -0.02em; white-space: nowrap; line-height: 1.25;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.brand small {
  display: block; font-family: var(--font-sans); font-weight: 500;
  font-size: .68rem; color: var(--ink-faint); letter-spacing: .02em;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: .15rem; }
.nav a {
  padding: .45rem .7rem; border-radius: 8px;
  color: var(--ink-soft); font-size: .93rem; font-weight: 500;
}
.nav a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--navy); font-weight: 700; background: var(--navy-wash); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 9px;
  padding: .4rem .62rem; cursor: pointer; color: var(--ink); font-size: 1rem;
}

@media (max-width: 800px) {
  .nav-toggle { display: block; margin-left: auto; }
  .nav {
    display: none; position: absolute; top: 100%; left: -20px; right: -20px;
    flex-direction: column; align-items: stretch; gap: 0; margin-left: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: .5rem 20px 1rem; box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .72rem .6rem; font-size: 1rem; }
}

/* ---------- 5. 히어로 ---------- */
.hero { padding: clamp(2.6rem, 7vw, 5rem) 0 clamp(1.8rem, 4vw, 3rem); }
.hero__grid { display: grid; gap: clamp(1.6rem, 4vw, 3rem); align-items: center;
              grid-template-columns: minmax(0,1fr); }
@media (min-width: 820px) { .hero__grid { grid-template-columns: minmax(0,1fr) 250px; } }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .03em;
  color: var(--gold); background: var(--gold-wash);
  padding: .3rem .75rem; border-radius: 999px; margin-bottom: 1rem;
}
.hero__name {
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 6.5vw, 3.5rem);
  letter-spacing: -0.035em; margin-bottom: .35rem;
  display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap;
}
.hero__name-en {
  font-family: var(--font-sans);
  font-size: .34em; font-weight: 500; letter-spacing: 0;
  color: var(--ink-faint); white-space: nowrap;
}
.hero__role {
  color: var(--ink-soft); font-size: clamp(.98rem, 2.1vw, 1.06rem);
  margin-bottom: 1.2rem;
}
.hero__role strong {
  font-weight: 700; color: var(--ink);
  margin-right: .45rem;
}
.hero__role strong::after { content: ":"; color: var(--ink-faint); margin-left: .05rem; }
.hero__lead { font-size: clamp(1.02rem, 2.3vw, 1.14rem); color: var(--ink-soft); max-width: 46ch; }

.portrait {
  width: 100%; aspect-ratio: 3/4; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface-2), var(--navy-wash));
  border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink-faint);
  font-size: .85rem; text-align: center; padding: 1rem; overflow: hidden;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
/* 사진이 들어오면 자리표시 문구용 안쪽 여백을 없애 꽉 채웁니다. */
.portrait:has(img) { padding: 0; background: var(--surface-2); }

/* ---------- 6. 두 갈래 진입 카드 ---------- */
.gateway { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.gateway__card {
  position: relative; display: flex; flex-direction: column;
  padding: 1.7rem 1.6rem 1.5rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  color: var(--ink);
}
.gateway__card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--navy) 35%, var(--line));
  text-decoration: none; color: var(--ink);
}
.gateway__card::after {
  content: "\2192"; position: absolute; top: 1.5rem; right: 1.5rem;
  color: var(--navy); font-size: 1.1rem; transition: transform .18s ease;
}
.gateway__card:hover::after { transform: translateX(4px); }
.gateway__num {
  font-family: var(--font-serif); font-size: .8rem; color: var(--gold);
  letter-spacing: .12em; display: block; margin-bottom: .5rem;
}
.gateway__card h3 { font-family: var(--font-serif); font-size: 1.3rem; margin-bottom: .4rem; }
.gateway__card p { color: var(--ink-soft); font-size: .94rem; margin: 0 0 .9rem; }
.gateway__meta { font-size: .82rem; color: var(--ink-faint); margin-top: auto; }

/* ---------- 7. 카드·공통 부품 ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.35rem 1.4rem; box-shadow: var(--shadow);
}
.card--flat { box-shadow: none; }
.card h3 { margin-bottom: .35rem; }
.card p:last-child { margin-bottom: 0; }

.section-head { margin-bottom: 1.8rem; }
.section-head h2 { font-family: var(--font-serif); margin-bottom: .3rem; }
.section-head p { color: var(--ink-soft); margin: 0; font-size: .96rem; }

.eyebrow {
  font-size: .76rem; font-weight: 700; letter-spacing: .12em;
  color: var(--gold); margin-bottom: .55rem;
}

.tag {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .76rem; font-weight: 600; padding: .22rem .6rem;
  border-radius: 999px; background: var(--surface-2); color: var(--ink-soft);
  border: 1px solid var(--line-soft); white-space: nowrap;
}
.tag--reading { color: var(--t-reading); border-color: color-mix(in srgb, var(--t-reading) 30%, transparent); background: color-mix(in srgb, var(--t-reading) 9%, transparent); }
.tag--mil     { color: var(--t-mil);     border-color: color-mix(in srgb, var(--t-mil) 30%, transparent);     background: color-mix(in srgb, var(--t-mil) 9%, transparent); }
.tag--school  { color: var(--t-school);  border-color: color-mix(in srgb, var(--t-school) 30%, transparent);  background: color-mix(in srgb, var(--t-school) 9%, transparent); }
.tag--policy  { color: var(--t-policy);  border-color: color-mix(in srgb, var(--t-policy) 30%, transparent);  background: color-mix(in srgb, var(--t-policy) 9%, transparent); }
.tag--library { color: var(--t-library); border-color: color-mix(in srgb, var(--t-library) 30%, transparent); background: color-mix(in srgb, var(--t-library) 9%, transparent); }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .66rem 1.2rem; border-radius: 10px; border: 1px solid transparent;
  font-family: inherit; font-size: .95rem; font-weight: 600; cursor: pointer;
  background: var(--navy); color: var(--paper); transition: filter .15s ease, transform .1s ease;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.12); color: var(--paper); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { background: var(--navy-wash); color: var(--navy); filter: none; }
.btn--sm { padding: .42rem .8rem; font-size: .86rem; }
.btn--danger { background: var(--danger); }

/* 폼 */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .35rem; }
.field .hint { font-size: .82rem; color: var(--ink-faint); margin: .3rem 0 0; }
input[type="text"], input[type="email"], input[type="password"], input[type="url"],
input[type="file"], textarea, select {
  width: 100%; padding: .62rem .8rem; font-family: inherit; font-size: .95rem;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--navy) 18%, transparent);
}
textarea { resize: vertical; min-height: 100px; line-height: 1.6; }

.radio-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.radio-card {
  flex: 1 1 210px; display: flex; gap: .6rem; align-items: flex-start;
  padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s;
}
.radio-card:hover { border-color: var(--navy); }
.radio-card input { margin-top: .3rem; flex: none; accent-color: var(--navy); }
.radio-card strong { display: block; font-size: .92rem; line-height: 1.4; }
.radio-card span { font-size: .82rem; color: var(--ink-faint); line-height: 1.5; }
.radio-card:has(input:checked) { border-color: var(--navy); background: var(--navy-wash); }

/* 알림 */
.notice {
  padding: .85rem 1.05rem; border-radius: var(--radius-sm); font-size: .92rem;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-soft);
}
.notice--info   { border-color: color-mix(in srgb, var(--navy) 30%, transparent);   background: var(--navy-wash); color: var(--ink); }
.notice--ok     { border-color: color-mix(in srgb, var(--ok) 35%, transparent);     background: color-mix(in srgb, var(--ok) 10%, transparent); color: var(--ink); }
.notice--warn   { border-color: color-mix(in srgb, var(--warn) 38%, transparent);   background: var(--gold-wash); color: var(--ink); }
.notice--danger { border-color: color-mix(in srgb, var(--danger) 38%, transparent); background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--ink); }
.notice strong { display: block; margin-bottom: .2rem; }

/* ---------- 8. 논문 목록 ---------- */
.pub-toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1.4rem; }
.pub-toolbar input[type="text"] { flex: 1 1 200px; max-width: 300px; }
.chip {
  padding: .38rem .78rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-soft); font-size: .85rem;
  font-family: inherit; font-weight: 600; cursor: pointer; transition: all .15s ease;
}
.chip:hover { border-color: var(--navy); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--paper); }

.pub-list { list-style: none; margin: 0; padding: 0; }
.pub-list li {
  display: flex; gap: .9rem; align-items: flex-start;
  padding: .9rem .2rem; border-bottom: 1px solid var(--line-soft);
}
.pub-list li:first-child { border-top: 1px solid var(--line-soft); }
.pub-list .pub-title { flex: 1; font-size: .98rem; line-height: 1.55; }
.pub-list .pub-cite { display: block; font-size: .85rem; color: var(--ink-faint); margin-top: .15rem; }
.pub-list .pub-meta {
  font-size: .82rem; color: var(--ink-faint);
  display: flex; flex-direction: column; align-items: flex-end; gap: .3rem;
  white-space: nowrap; flex: none;
}
.pub-list .pub-year { font-weight: 700; color: var(--ink-soft); }
.pub-list .pub-cited { color: var(--gold); font-weight: 600; }

@media (max-width: 620px) {
  .pub-list li { flex-direction: column; gap: .4rem; }
  .pub-list .pub-meta { flex-direction: row; align-items: center; }
}

/* 첫 화면 논문 미리보기 — 2단, 한 항목당 두 줄 */
.pub-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2rem;
}
.pub-grid li {
  padding: .85rem 0; border-top: 1px solid var(--line-soft); min-width: 0;
}
.pub-grid__title {
  margin: 0; font-size: .97rem; line-height: 1.5; font-weight: 500;
}
.pub-grid__meta {
  margin: .25rem 0 0; font-size: .84rem; color: var(--ink-faint);
  display: flex; align-items: center; gap: .4rem; flex-wrap: wrap;
}
.pub-grid__year { font-weight: 700; color: var(--ink-soft); }
.pub-grid .tag { font-size: .72rem; padding: .1rem .42rem; }

@media (max-width: 720px) { .pub-grid { grid-template-columns: 1fr; gap: 0; } }

/* ---------- 9. 결과물 갤러리 ---------- */
.gallery-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); }
.work {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.work:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.work__thumb {
  aspect-ratio: 4/3; background: var(--surface-2); display: grid; place-items: center;
  color: var(--ink-faint); font-size: 1.9rem; border-bottom: 1px solid var(--line-soft);
  position: relative; overflow: hidden;
}
.work__thumb img { width: 100%; height: 100%; object-fit: cover; }
.work__body { padding: .9rem 1rem 1rem; flex: 1; display: flex; flex-direction: column; gap: .35rem; }
.work__title { font-size: .98rem; font-weight: 700; margin: 0; line-height: 1.45; }
.work__by { font-size: .84rem; color: var(--ink-faint); margin: 0; }
.work__desc { font-size: .87rem; color: var(--ink-soft); margin: 0; }
.work__foot { display: flex; gap: .4rem; align-items: center; margin-top: auto; padding-top: .7rem; flex-wrap: wrap; }

.badge-public {
  font-size: .72rem; font-weight: 700; padding: .16rem .5rem; border-radius: 5px;
  background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok);
}
.badge-class {
  font-size: .72rem; font-weight: 700; padding: .16rem .5rem; border-radius: 5px;
  background: var(--surface-2); color: var(--ink-faint);
}
.badge-gone {
  font-size: .72rem; font-weight: 700; padding: .16rem .5rem; border-radius: 5px;
  background: color-mix(in srgb, var(--danger) 13%, transparent); color: var(--danger);
}
/* 학생이 지운 결과물 — 관리 화면에서만 보입니다. */
.work--gone { opacity: .62; }
.work--gone:hover { opacity: 1; }

/* 올린 본인이 지울 때 쓰는 작은 칸 */
.selfdel {
  border-top: 1px solid var(--line-soft); margin-top: .5rem; padding-top: .6rem;
  display: flex; flex-direction: column; gap: .45rem;
}
.selfdel__row { display: flex; gap: .4rem; }
.selfdel__row input {
  flex: 1; min-width: 0; padding: .34rem .5rem; font-size: .85rem;
}
.selfdel__msg { margin: 0; min-height: 1.1em; }

/* 숫자 삭제 암호 칸. type="password" 가 아니어서 브라우저가 계정 비밀번호로
   착각하지 않습니다(비밀번호 재사용 경고가 뜨지 않음). 입력한 숫자는 ●로 가립니다. */
.pin { -webkit-text-security: disc; letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.pin::placeholder { letter-spacing: normal; }
#pin { max-width: 11rem; }

.empty {
  text-align: center; padding: 3rem 1rem; color: var(--ink-faint);
  border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface);
}
.empty__icon { font-size: 1.9rem; margin-bottom: .6rem; opacity: .6; }

/* ---------- 10. 잠금 화면 ---------- */
.lock {
  max-width: 430px; margin: 2.5rem auto; text-align: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2.2rem 1.8rem; box-shadow: var(--shadow);
}
.lock__icon { font-size: 1.9rem; margin-bottom: .7rem; }

/* ---------- 11. 수업 카드 ---------- */
.course-card { display: flex; flex-direction: column; gap: .5rem; }
.course-card__term { font-size: .8rem; color: var(--gold); font-weight: 700; letter-spacing: .04em; }
.course-card__title { font-family: var(--font-serif); font-size: 1.2rem; margin: 0; }
.course-card__links { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: auto; padding-top: .8rem; }

/* 주차 표 */
.weeks { list-style: none; margin: 0; padding: 0; }
.weeks li {
  display: flex; gap: 1rem; padding: .72rem .2rem;
  border-bottom: 1px solid var(--line-soft); font-size: .95rem;
}
.weeks li:first-child { border-top: 1px solid var(--line-soft); }
.weeks .w-no {
  flex: none; width: 3.4rem; font-weight: 700; color: var(--navy); font-size: .88rem;
}

/* 지표 카드 — 좁은 화면에서도 한 줄을 지킵니다 */
.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: .8rem; max-width: 560px;
}
.stat-row .card { padding: 1.1rem .7rem; }
@media (max-width: 480px) { .stat-row { gap: .5rem; } .stat-row .card { padding: .9rem .4rem; } }

/* ---------- 11-b. 강의 이력 ---------- */
/* 연도 한 줄에 1학기·2학기를 나란히 */
.years { display: grid; gap: 0; }
/* 오래된 연도는 접어 두고 '더 보기' 단추로 펼칩니다. */
.years .year--hidden { display: none; }
.years--all .year--hidden { display: grid; }
.year {
  display: grid; grid-template-columns: 4.4rem 1fr; gap: .2rem 1.1rem;
  padding: 1.1rem 0; border-top: 1px solid var(--line-soft);
}
.year:first-child { border-top: 0; padding-top: .2rem; }
.year__no {
  font-family: var(--font-serif); font-size: 1.32rem; font-weight: 700;
  color: var(--navy); line-height: 1.2; padding-top: .1rem;
}
.year__terms { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.6rem; min-width: 0; }
.term { min-width: 0; }
.term__label {
  font-size: .76rem; font-weight: 700; color: var(--ink-faint);
  letter-spacing: .05em; margin: 0 0 .35rem;
  padding-bottom: .28rem; border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: baseline; gap: .4rem;
}
.term__label span { font-weight: 500; margin-left: auto; }
.term__list { list-style: none; margin: 0; padding: 0; }
.term__list li {
  display: flex; align-items: center; gap: .4rem;
  padding: .28rem 0; font-size: .92rem; min-width: 0;
}
.term__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term__n { font-size: .82rem; color: var(--ink-faint); white-space: nowrap; }
.term--empty { color: var(--ink-faint); font-size: .88rem; padding: .28rem 0; }
.tag--lab {
  color: var(--gold); border-color: color-mix(in srgb, var(--gold) 34%, transparent);
  background: var(--gold-wash);
}
.years .tag { flex: none; font-size: .71rem; padding: .1rem .4rem; }

@media (max-width: 680px) {
  .year { grid-template-columns: 1fr; gap: .5rem; }
  .year__terms { grid-template-columns: 1fr; gap: .9rem; }
}

.tag--ug   { color: var(--t-mil);     border-color: color-mix(in srgb, var(--t-mil) 30%, transparent);     background: color-mix(in srgb, var(--t-mil) 9%, transparent); }
.tag--grad { color: var(--t-policy);  border-color: color-mix(in srgb, var(--t-policy) 30%, transparent);  background: color-mix(in srgb, var(--t-policy) 9%, transparent); }
.tag--ge   { color: var(--t-library); border-color: color-mix(in srgb, var(--t-library) 30%, transparent); background: color-mix(in srgb, var(--t-library) 9%, transparent); }

.sem {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); margin-bottom: .7rem; overflow: hidden;
}
.sem > summary {
  cursor: pointer; padding: .85rem 1.1rem; list-style: none;
  display: flex; align-items: center; gap: .65rem; font-weight: 700; font-size: .98rem;
}
.sem > summary::-webkit-details-marker { display: none; }
.sem > summary::before {
  content: "\25B8"; color: var(--navy); font-size: .9rem;
  transition: transform .15s ease; display: inline-block;
}
.sem[open] > summary::before { transform: rotate(90deg); }
.sem > summary:hover { background: var(--surface-2); }
.sem__meta { margin-left: auto; font-weight: 500; font-size: .85rem; color: var(--ink-faint); }
.sem__body { padding: 0 1.1rem .9rem; }

.cl {
  display: flex; gap: .7rem; align-items: baseline; flex-wrap: wrap;
  padding: .65rem .1rem; border-top: 1px solid var(--line-soft); font-size: .94rem;
}
.cl__name { font-weight: 600; }
.cl__meta { color: var(--ink-faint); font-size: .85rem; }
.cl__n { margin-left: auto; font-size: .85rem; color: var(--ink-soft); white-space: nowrap; }
@media (max-width: 560px) { .cl__n { margin-left: 0; width: 100%; } }

/* 과목별 누적 — 한 줄에 하나씩, 화면 너비에 따라 여러 열로 */
.tally {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0 1.6rem;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.tally li {
  display: flex; align-items: center; gap: .5rem;
  padding: .46rem .1rem; border-bottom: 1px solid var(--line-soft);
  font-size: .93rem; min-width: 0;
}
.tally__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tally__n { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tally__n small { font-weight: 500; font-size: .8em; color: var(--ink-faint); margin-left: .1rem; }
.tally__students { font-size: .8rem; color: var(--ink-faint); white-space: nowrap; }
.tally .tag { flex: none; font-size: .72rem; padding: .12rem .42rem; }

/* ---------- 12. 타임라인(약력) ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.2rem; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1.3rem 1.2rem; }
.timeline li::before {
  content: ""; position: absolute; left: -1.53rem; top: .6rem;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--navy);
}
.timeline .tl-when { font-size: .82rem; color: var(--gold); font-weight: 700; letter-spacing: .03em; }
.timeline .tl-what { font-size: .97rem; font-weight: 600; }
.timeline .tl-where { font-size: .87rem; color: var(--ink-faint); }

/* ---------- 12-b. 활동·수상·자격 ---------- */
.act { list-style: none; margin: 0; padding: 0; }
.act li {
  display: flex; gap: .7rem; align-items: baseline; flex-wrap: wrap;
  padding: .58rem .1rem; border-bottom: 1px solid var(--line-soft); font-size: .94rem;
}
.act li:first-child { border-top: 1px solid var(--line-soft); }
.act__org { font-weight: 600; }
.act__role { color: var(--ink-soft); }
.act__when { margin-left: auto; font-size: .84rem; color: var(--ink-faint); white-space: nowrap; }
@media (max-width: 560px) { .act__when { margin-left: 0; width: 100%; } }

/* 2단으로 접어 세로 길이를 줄입니다. 왼쪽 단을 다 읽고 오른쪽으로 넘어갑니다. */
.act--2 { column-count: 2; column-gap: 2.4rem; }
.act--2 li {
  break-inside: avoid;
  border-top: 1px solid var(--line-soft);   /* 단마다 첫 줄에도 선이 보이도록 */
  border-bottom: 0;
}
@media (max-width: 760px) {
  .act--2 { column-count: 1; }
  .act--2 li:last-child { border-bottom: 1px solid var(--line-soft); }
}

.award {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem .1rem; border-bottom: 1px solid var(--line-soft);
}
.award:first-of-type { border-top: 1px solid var(--line-soft); }

.awards--2 { column-count: 2; column-gap: 2.4rem; }
.awards--2 .award {
  break-inside: avoid;
  border-top: 1px solid var(--line-soft);
  border-bottom: 0;
}
@media (max-width: 760px) {
  .awards--2 { column-count: 1; }
  .awards--2 .award:last-child { border-bottom: 1px solid var(--line-soft); }
}
.award__year {
  flex: none; width: 3.6rem; font-family: var(--font-serif);
  font-size: 1.05rem; font-weight: 700; color: var(--gold);
}
.award__title { font-weight: 700; font-size: 1rem; margin: 0; }
.award__org { font-size: .88rem; color: var(--ink-soft); margin: .1rem 0 0; }
.award__note { font-size: .85rem; color: var(--ink-faint); margin: .25rem 0 0; }

.certs { display: flex; flex-wrap: wrap; gap: .45rem; margin: .6rem 0 0; padding: 0; list-style: none; }

/* ---------- 12-c. 관리자 편집 줄 ---------- */
.edit-group { margin-bottom: 1.6rem; }
.edit-group > h4 {
  font-size: .92rem; margin: 0 0 .5rem; color: var(--ink);
  display: flex; align-items: center; gap: .5rem;
}
.edit-group__count { font-weight: 500; color: var(--ink-faint); font-size: .82rem; }

.editrow {
  display: grid; gap: .45rem; align-items: center;
  padding: .5rem 0; border-bottom: 1px solid var(--line-soft);
}
.editrow--award { grid-template-columns: 5rem 1fr 1fr 1.6fr auto; }
.editrow--act   { grid-template-columns: 1fr 1.5fr 9rem auto auto; }
.editrow input[type="text"] { padding: .42rem .6rem; font-size: .88rem; }
.editrow label.chk {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .82rem; color: var(--ink-soft); white-space: nowrap;
}
.editrow label.chk input { accent-color: var(--navy); }
.editrow__del {
  background: none; border: 1px solid var(--line); border-radius: 7px;
  width: 30px; height: 30px; cursor: pointer; color: var(--ink-faint);
  font-size: 1rem; line-height: 1; flex: none;
}
.editrow__del:hover { border-color: var(--danger); color: var(--danger); }

@media (max-width: 820px) {
  .editrow--award, .editrow--act { grid-template-columns: 1fr; }
  .editrow { padding: .8rem 0; }
  .editrow__del { justify-self: end; }
}

.edit-cert { margin-bottom: 1rem; }
.edit-cert textarea { min-height: 88px; font-size: .88rem; }

/* ---------- 13. 푸터 ---------- */
.site-footer {
  border-top: 1px solid var(--line); background: var(--surface-2);
  padding: 2.4rem 0 2.8rem; margin-top: 3rem; font-size: .9rem; color: var(--ink-soft);
}
.site-footer__grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.site-footer h4 { font-size: .85rem; color: var(--ink); margin-bottom: .5rem; letter-spacing: .02em; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--navy); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .3rem; }
.site-footer__bottom {
  margin-top: 1.8rem; padding-top: 1.2rem; border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--ink-faint);
  display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; align-items: center;
}

/* ---------- 14. 보조 ---------- */
.muted { color: var(--ink-faint); }
.small { font-size: .87rem; }
.center { text-align: center; }
.row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 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;
}
.theme-toggle {
  background: none; border: 1px solid var(--line); border-radius: 9px;
  width: 34px; height: 34px; cursor: pointer; color: var(--ink-soft);
  font-size: .95rem; display: grid; place-items: center; flex: none;
}
.theme-toggle:hover { background: var(--surface-2); color: var(--ink); }

.spinner {
  width: 18px; height: 18px; border: 2.5px solid var(--line);
  border-top-color: var(--navy); border-radius: 50%;
  animation: spin .7s linear infinite; display: inline-block; vertical-align: -3px;
}
@keyframes spin { to { transform: rotate(360deg); } }

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

/* ---------- 13. 미디어·강연 페이지 ---------- */
/* 구분 꼬리표 색: 방송(남색) · 보도(청록) · 기고(금색) · 강연(초록) · 토론회(보라) */
.tag--m-tv    { color: var(--t-mil);     border-color: color-mix(in srgb, var(--t-mil) 30%, transparent);     background: color-mix(in srgb, var(--t-mil) 9%, transparent); }
.tag--m-news  { color: var(--t-library); border-color: color-mix(in srgb, var(--t-library) 30%, transparent); background: color-mix(in srgb, var(--t-library) 9%, transparent); }
.tag--m-press { color: var(--gold);      border-color: color-mix(in srgb, var(--gold) 34%, transparent);      background: var(--gold-wash); }
.tag--m-talk  { color: var(--t-reading); border-color: color-mix(in srgb, var(--t-reading) 30%, transparent); background: color-mix(in srgb, var(--t-reading) 9%, transparent); }
.tag--m-forum { color: var(--t-policy);  border-color: color-mix(in srgb, var(--t-policy) 30%, transparent);  background: color-mix(in srgb, var(--t-policy) 9%, transparent); }

.media-featured { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); align-items: start; }
/* 대표 카드는 작은 가로형: 왼쪽에 작은 그림, 오른쪽에 날짜·제목·매체 한 줄 */
.media-card {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: .85rem; align-items: start;
  padding: .8rem .9rem; min-width: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow);
}
.media-card--text { grid-template-columns: minmax(0, 1fr); }
.media-card__thumb { width: 64px; height: 80px; border-radius: 6px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line-soft); }
.media-card__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.media-card__thumb a { display: block; height: 100%; }
.media-card__body { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.media-card__title { font-family: var(--font-serif); font-size: .98rem; line-height: 1.4; margin: .1rem 0 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.media-card__title a { color: var(--ink); }
.media-card__title a:hover { color: var(--navy); }
.media-card__where { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-card__sub { color: var(--ink-soft); margin: .3rem 0 0; }
.media-links a { color: var(--navy); font-weight: 600; }
.media-links a:hover { text-decoration: underline; }
/* 보이는 링크 사이에만 가운뎃점을 넣습니다(숨겨진 포스터 링크는 건너뜀). */
.media-links a:not([hidden]) ~ a:not([hidden])::before {
  content: "·"; display: inline-block; margin: 0 .45em; color: var(--ink-faint); font-weight: 400;
}

/* 날짜·주최 등을 아직 확인하지 못한 항목 */
.tag--check {
  color: var(--ink-faint); background: transparent;
  border: 1px dashed color-mix(in srgb, var(--ink-faint) 60%, transparent);
  font-weight: 500; cursor: help;
}

.media-year + .media-year { margin-top: 1.6rem; }
.media-year__head {
  font-family: var(--font-serif); font-size: 1.15rem; color: var(--navy);
  display: flex; align-items: baseline; gap: .5rem; margin-bottom: .2rem;
}
.media-stats .card div:first-child { font-variant-numeric: tabular-nums; }

/* 언론·강연 문의 (기자·행사 담당자용 안내) */
.press-grid { display: grid; gap: 1.6rem; grid-template-columns: minmax(0, 1fr) 260px; align-items: start; }
@media (max-width: 760px) { .press-grid { grid-template-columns: minmax(0, 1fr); } }
.press-h { font-family: var(--font-serif); font-size: 1.1rem; margin-bottom: .8rem; }
.press-bios { min-width: 0; display: grid; gap: .9rem; }
.press-bios .press-h { margin-bottom: 0; }
.press-bio { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: .8rem 1rem; }
.press-bio__head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: .45rem; }
.press-bio p { margin: 0; font-size: .93rem; line-height: 1.7; color: var(--ink-soft); }
.press-photo { margin: 0; display: grid; gap: .7rem; max-width: 260px; }
.press-photo img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.press-photo figcaption { display: grid; gap: .35rem; justify-items: start; }
.press-list { margin: 0; padding-left: 1.1em; display: grid; gap: .45rem; font-size: .94rem; }
.press-list .muted { font-size: .84rem; margin-left: .3rem; }

/* ---------- 14. 연구 페이지 KCI 통계 ---------- */
.stat-num { font-size: 1.9rem; font-weight: 700; color: var(--navy); }
.kci-stats {
  margin-top: 2rem; display: grid; gap: 1.2rem 2rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
@media (max-width: 760px) { .kci-stats { grid-template-columns: minmax(0, 1fr); } }
.kci-fig { margin: 0; position: relative; min-width: 0; }
.kci-fig--wide, .kci-table { grid-column: 1 / -1; }
.kci-fig__cap { font-size: .92rem; font-weight: 700; margin-bottom: .7rem; color: var(--ink); }
.kci-fig__cap .muted { font-weight: 500; }

/* 연도별 막대 */
.kci-years {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  gap: 2px; height: 130px; align-items: end;
  border-bottom: 1px solid var(--line);
}
.kci-years__col {
  height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  cursor: default; outline-offset: 0;
}
.kci-years__bar {
  display: block; width: 100%; max-width: 22px; background: var(--navy);
  border-radius: 4px 4px 0 0; transition: opacity .15s;
}
.kci-years:hover .kci-years__bar, .kci-years:focus-within .kci-years__bar { opacity: .45; }
.kci-years__col.is-on .kci-years__bar { opacity: 1; }
.kci-years__val { font-size: .75rem; color: var(--ink-soft); margin-bottom: .2rem; }
.kci-years__axis {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px;
  font-size: .72rem; color: var(--ink-faint); text-align: center; margin-top: .3rem;
}
.kci-years__axis span { overflow: visible; white-space: nowrap; }
.kci-tip {
  position: absolute; top: 1.6rem; transform: translateX(-50%);
  background: var(--ink); color: var(--surface); font-size: .8rem;
  padding: .3rem .55rem; border-radius: 6px; white-space: nowrap; pointer-events: none; z-index: 2;
}

/* 주제별 막대 */
.kci-themes { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.kci-themes li {
  display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) 4.6rem; gap: .6rem; align-items: center;
  font-size: .88rem;
}
.kci-themes__label { color: var(--ink-soft); }
.kci-themes__track { height: 10px; }
.kci-themes__bar { display: block; height: 100%; background: var(--navy); border-radius: 0 4px 4px 0; }
.kci-themes__num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 420px) { .kci-themes li { grid-template-columns: 7rem minmax(0, 1fr) 4.2rem; font-size: .84rem; } }

/* 많이 인용된 논문 */
.kci-top { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.kci-top li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr) auto; gap: .5rem; align-items: baseline; }
.kci-top__rank { color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.kci-top__title .small { margin-left: .35rem; white-space: nowrap; }
.kci-top__num { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }

.kci-table summary { cursor: pointer; color: var(--ink-faint); }
.kci-table table { border-collapse: collapse; margin-top: .6rem; font-variant-numeric: tabular-nums; }
.kci-table th, .kci-table td { padding: .25rem .9rem; border-bottom: 1px solid var(--line-soft); text-align: right; }
.kci-table th:first-child, .kci-table td:first-child { text-align: left; }

/* ---------- 15. 이력서(CV) — 관리자 전용, 인쇄해 PDF로 저장 ---------- */
.cv-bar { border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 5; }
.cv-bar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .7rem; }
.cv-opt { display: inline-flex; gap: .35rem; align-items: center; }
.cv { max-width: 820px; padding-block: 2.4rem 4rem; font-size: .93rem; line-height: 1.6; }
.cv-head { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; align-items: flex-end;
  border-bottom: 2px solid var(--ink); padding-bottom: .9rem; margin-bottom: 1.4rem; }
.cv-head h1 { font-family: var(--font-serif); font-size: 1.9rem; margin: 0 0 .2rem; }
.cv-head h1 span { font-size: .55em; font-weight: 500; color: var(--ink-soft); margin-left: .4rem; }
.cv-head p { margin: 0; }
.cv-contact { font-size: .85rem; color: var(--ink-soft); text-align: right; }
.cv-sec { margin-top: 1.5rem; break-inside: auto; }
.cv-sec h2 { font-size: 1.05rem; margin: 0 0 .55rem; padding-bottom: .25rem; border-bottom: 1px solid var(--line); break-after: avoid; }
.cv-n { font-size: .8em; font-weight: 500; color: var(--ink-faint); }
.cv-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.cv-rows li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: .8rem; break-inside: avoid; }
.cv-when { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.cv-sub { display: block; font-size: .85em; color: var(--ink-faint); }
.cv-note { margin: 0 0 .5rem; font-size: .85rem; color: var(--ink-soft); }
.cv-pubs { margin: 0; padding-left: 2.2rem; display: grid; gap: .35rem; }
.cv-pubs li { break-inside: avoid; padding-left: .2rem; }
.cv-doi { font-size: .82em; color: var(--ink-faint); word-break: break-all; }
.cv-foot { margin-top: 2rem; font-size: .8rem; color: var(--ink-faint); text-align: right; }
@media (max-width: 560px) {
  .cv-rows li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cv-contact { text-align: left; }
}
@media print {
  @page { size: A4; margin: 16mm 15mm; }
  .no-print { display: none !important; }
  body.cv-page {
    background: #fff !important; color: #111 !important;
    --ink: #111; --ink-soft: #444; --ink-faint: #666; --line: #bbb; --surface: #fff;
  }
  .cv { padding: 0; max-width: none; font-size: 9.6pt; }
  .cv a { color: inherit; }
}

/* ---------- 16. 연구자 링크 줄, 메뉴의 EN ---------- */
.id-links { display: flex; flex-wrap: wrap; gap: .4rem; margin: -.3rem 0 0; }
.id-links a {
  display: inline-flex; align-items: center; padding: .25rem .7rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-soft); text-decoration: none;
}
.id-links a:hover { border-color: var(--navy); color: var(--navy); text-decoration: none; }
.nav .nav-en { font-size: .8rem; font-weight: 700; letter-spacing: .04em; }

/* ---------- 17. 영어 페이지 ---------- */
.en-hero { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 1.6rem; align-items: start; }
.en-hero h1 { margin-bottom: .4rem; }
.en-role { color: var(--ink-soft); margin: 0; }
.en-photo { width: 150px; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
@media (max-width: 560px) { .en-hero { grid-template-columns: minmax(0, 1fr) 96px; gap: 1rem; } .en-photo { width: 96px; } }
.en-pubs { margin: 0; padding-left: 1.6rem; display: grid; gap: .9rem; }
.en-pubs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; padding-left: .2rem; }
.en-pubs__title { grid-column: 1; font-weight: 500; }
.en-pubs li > .small { grid-column: 1; }
.en-pubs__cites { grid-column: 2; grid-row: 1 / span 2; font-weight: 700; color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- 18. 미디어 페이지 포스터 모음 ---------- */
.poster-wall { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.poster-wall a { display: grid; gap: .4rem; color: inherit; text-decoration: none; }
.poster-wall img { width: 100%; aspect-ratio: 7 / 10; object-fit: cover; object-position: top;
  border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); transition: transform .15s, box-shadow .15s; }
.poster-wall a:hover img, .poster-wall a:focus-visible img { transform: translateY(-2px); box-shadow: 0 6px 18px rgb(0 0 0 / .12); }
.poster-wall__date { font-size: .78rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.poster-wall__title { font-size: .85rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 420px) { .poster-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; } }

/* ---------- 19. 메뉴의 관리자 로그인 단추 ---------- */
.nav .nav-admin {
  display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0;
  border: 1px solid var(--line); border-radius: 9px; color: var(--ink-soft); flex: none;
}
.nav .nav-admin:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.nav .nav-admin[aria-current="page"] { color: var(--navy); border-color: var(--navy); background: var(--navy-wash); }
.nav-admin__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 800px) {
  /* 펼친 휴대폰 메뉴에서는 글자와 함께 한 줄로 */
  .nav .nav-admin { display: flex; gap: .5rem; align-items: center; width: auto; height: auto;
    border: 0; border-radius: 0; padding: .72rem .6rem; }
  .nav-admin__label { position: static; width: auto; height: auto; overflow: visible; clip: auto; font-size: 1rem; }
}
