/* ==========================================================================
   DASMOLabs — Dong-A Smart Mobility Laboratory
   Design system: navy base + teal "signal" accent, Pretendard typography.
   Plain CSS, no build step.
   ========================================================================== */

/* ----- Design tokens ----- */
:root {
  /* Palette (transportation / smart-mobility theme) */
  --ink:        #0E1726;   /* near-black */
  --navy:       #0B1F3A;   /* hero + footer base */
  --navy-2:     #12305a;   /* gradient partner */
  --teal:       #14B8A6;   /* primary accent */
  --teal-dark:  #0B7568;   /* accent text-on-white — 흰 배경 대비 5.6:1 (WCAG AA);
                              #0E9485는 3.75:1로 본문 크기 텍스트 기준 미달이라 어둡게 조정 */
  --cyan:       #06B6D4;   /* secondary accent */
  --amber:      #F59E0B;   /* sparing emphasis */
  --bg:         #FFFFFF;
  --bg-muted:   #F5F7FA;   /* alternating section bg */
  --line:       #E3E8EF;   /* borders */
  --text:       #1A2330;   /* body copy */
  --text-soft:  #5A6678;   /* secondary text */

  /* Type */
  --font-sans: 'Pretendard', 'Pretendard Variable', -apple-system, 'Apple SD Gothic Neo',
               'Noto Sans KR', system-ui, sans-serif;

  /* Layout */
  --maxw: 1140px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 6px 24px rgba(11, 31, 58, .08);
  --shadow-lg: 0 14px 40px rgba(11, 31, 58, .14);
  --header-h: 68px;  /* single-row header (menu tabs only — the brand line was removed) */
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.75;            /* looser leading suits Korean */
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-break: keep-all;        /* 한글은 어절(공백) 단위로만 줄바꿈 — 단어 중간에서 끊기지 않게 */
  overflow-wrap: break-word;   /* 공백 없는 긴 URL·영문 토큰은 넘칠 때만 끊어 줄바꿈 */
  text-wrap: pretty;           /* 마지막 줄 외톨이 단어(orphan) 최소화 (미지원 브라우저는 무시) */
}
img { max-width: 100%; display: block; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; color: var(--ink); font-weight: 700; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

/* ----- Layout helpers ----- */
.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.section { padding: 4.5rem 0; }
.section--muted { background: var(--bg-muted); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section__eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal-dark); margin-bottom: .6rem;
}
.section__title { font-size: clamp(1.6rem, 3.4vw, 2.1rem); }
/* 2026-07 Home 전용: 한글 제목을 없애고 영문만 제목 크기로 키운 형태
   (RESEARCH / CLASSES / LOCATION). People 페이지 제목은 기존 구조 유지. */
.section__title--en { text-transform: uppercase; letter-spacing: .05em; margin-bottom: 0; }
.section__desc { color: var(--text-soft); font-size: 1.05rem; }
.text-center { text-align: center; }

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
/* Single-row header: the brand line (abbr + lab name) was removed in 2026-07,
   so the menu row *is* the header. The left indent (≈4.4cm) is a deliberate
   request — it pulls the tabs in from the page gutter, towards the Home
   hero/intro column. clamp() gives it back on narrow desktops so the seven
   tabs + language pill never get squeezed: below ~1130px the indent shrinks,
   and the ≤1080px block drops it entirely (padding: 0). */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h);
  padding: .3rem 0 .3rem clamp(0px, calc(100vw - 60rem), 10.5rem);
}
.nav__links {
  display: flex; align-items: center; gap: .25rem; list-style: none;
  /* bleed by one link-padding so the first tab lines up with the page gutter */
  flex: 0 0 auto; width: calc(100% + 1.6rem); margin: 0 -.8rem;
}
.nav__links a {
  display: block; padding: .5rem .8rem; border-radius: 8px;
  color: var(--text); font-weight: 600; font-size: .95rem;
}
.nav__links a:hover { background: var(--bg-muted); text-decoration: none; color: var(--ink); }
.nav__links a.active { color: var(--teal-dark); }
.nav__links a.active::after {
  content: ""; display: block; height: 2px; border-radius: 2px;
  background: var(--teal); margin-top: 3px;
}

/* Hover dropdown of sub-tabs under each main nav item */
.nav__item { position: relative; }
.nav__caret { font-size: .58rem; margin-left: .3rem; color: var(--text-soft); vertical-align: middle; }
.nav__sub {
  position: absolute; top: 100%; left: 0; min-width: 188px;
  list-style: none; margin: 0; padding: .35rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .14s ease, transform .14s ease, visibility .14s;
  z-index: 200;
}
.nav__item.has-sub:hover > .nav__sub,
.nav__item.has-sub:focus-within > .nav__sub {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav__sub a {
  display: block; white-space: nowrap; padding: .5rem .7rem; border-radius: 7px;
  font-size: .9rem; font-weight: 600; color: var(--text);
}
.nav__sub a:hover { background: var(--bg-muted); color: var(--teal-dark); text-decoration: none; }

/* mobile-only accordion toggle for each tab's sub-menu (hidden on desktop) */
.nav__subtoggle { display: none; }

.nav__toggle {
  display: none; border: 0; background: transparent; cursor: pointer;
  width: 42px; height: 42px; padding: 9px; border-radius: 9px;
}
.nav__toggle:hover { background: var(--bg-muted); }
.nav__toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav__toggle span + span { margin-top: 5px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  /* hamburger only in the bar; the tabs live in the drawer below it */
  .nav__toggle { display: block; margin-left: auto; }
  .nav { flex-wrap: nowrap; height: var(--header-h); padding: 0; }
  .nav__links {
    width: auto; margin: 0;
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1.25rem; box-shadow: var(--shadow);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .2s;
  }
  .nav__links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { padding: .85rem .6rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__links a.active::after { display: none; }

  /* dropdowns become per-tab accordions inside the mobile drawer:
     main tabs only by default; ▾ button unfolds that tab's sub-menu
     (24개 링크가 한 번에 펼쳐져 드로어가 화면을 넘던 문제 해결) */
  .nav__item { position: static; }
  .nav__item.has-sub { display: grid; grid-template-columns: 1fr auto; align-items: stretch; }
  .nav__item.has-sub > a { grid-column: 1; }
  .nav__caret { display: none; }
  .nav__subtoggle {
    display: flex; align-items: center; justify-content: center;
    width: 48px; border: 0; border-bottom: 1px solid var(--line);
    background: transparent; cursor: pointer;
    color: var(--text-soft); font-size: .8rem; transition: transform .2s;
  }
  .nav__item.sub-open > .nav__subtoggle { color: var(--teal-dark); transform: scaleY(-1); }
  .nav__sub {
    display: none; grid-column: 1 / -1;
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-radius: 0; padding: 0; background: transparent;
  }
  .nav__item.sub-open > .nav__sub { display: block; }
  .nav__sub a {
    padding: .7rem .6rem .7rem 1.5rem; border-radius: 0; font-size: .92rem;
    color: var(--text-soft); border-bottom: 1px solid var(--line);
  }
}

/* Language switch (KO ⇄ EN) — last item in the nav, pushed to the far right */
.nav__lang { display: flex; align-items: center; margin-left: auto; }
.nav__links a.lang-switch {
  display: inline-flex; align-items: center; gap: .3rem;
  margin-left: .5rem; padding: .34rem .72rem;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: .82rem; font-weight: 700; letter-spacing: .03em; color: var(--text-soft);
}
.nav__links a.lang-switch::before { content: "🌐"; font-size: .92em; }
.nav__links a.lang-switch:hover {
  border-color: var(--teal); color: var(--teal-dark);
  background: var(--bg-muted); text-decoration: none;
}
.nav__links a.lang-switch.active::after { display: none; }
@media (max-width: 1080px) {
  .nav__lang { margin-left: 0; padding: .7rem .6rem; border-bottom: 1px solid var(--line); }
  .nav__links a.lang-switch { margin-left: 0; width: max-content; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(6, 182, 212, .35), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(20, 184, 166, .28), transparent 55%),
    linear-gradient(135deg, var(--navy) 0%, var(--ink) 100%);
}
.hero::after {  /* subtle grid / signal texture */
  content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(circle at 70% 30%, #000, transparent 75%);
}
.hero__inner { position: relative; z-index: 1; padding: 5.5rem 0 5rem; max-width: 760px; }
.hero h1 {
  color: #fff; font-size: clamp(2.1rem, 5.4vw, 3.5rem); letter-spacing: -.02em; margin-bottom: .5rem;
}
.hero h1 .accent { background: linear-gradient(90deg, var(--teal), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* English lab name sits directly above the Korean one, same size (2026-07) */
.hero__en,
.hero__ko { font-size: clamp(1.05rem, 2.2vw, 1.35rem); color: #cfe0f5; font-weight: 600; }
.hero__en { margin-bottom: .15rem; }
.hero__ko { margin-bottom: 1.4rem; }
/* 2026-07: 연구실 소개(intro1/intro2 두 문단)가 히어로 안으로 들어왔다.
   글자 크기는 기존(1.06rem) 그대로 두고, 줄 수를 줄이려고 글 폭만 넓혔다.
   되돌릴 때 원래 값 → color:#b9c7dd; max-width:620px; margin-bottom:2rem; */
.hero__lead { color: #c8d6ea; font-size: 1.06rem; max-width: 760px; margin-bottom: 0; }
.hero__lead p { margin-bottom: .9rem; }
.hero__lead p:last-child { margin-bottom: 0; }
.hero__lead .about-photo { max-width: 420px; margin-top: 1.2rem; }
/* .state는 흰 배경용 회색이라 네이비 히어로 안에서는 안 보인다(로딩·실패 문구) */
.hero .state { color: #b9c7dd; text-align: left; padding: 1rem 0; }
@media (max-width: 560px) { .hero__lead { font-size: .99rem; } }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
  padding: .8rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: .98rem;
  border: 1px solid transparent; transition: .18s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--teal); color: #04201d; }
.btn--primary:hover { background: #18cdb9; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { background: rgba(255,255,255,.1); }

/* ==========================================================================
   Cards & grids
   ========================================================================== */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 620px)  { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px)  { .grid--3 { grid-template-columns: repeat(3, 1fr); }
                             .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow); transition: .18s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card__icon {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px;
  background: linear-gradient(135deg, rgba(20,184,166,.16), rgba(6,182,212,.16));
  color: var(--teal-dark); margin-bottom: 1rem; font-size: 1.4rem;
}
.card h3 { font-size: 1.12rem; }
.card p { color: var(--text-soft); font-size: .96rem; margin: 0; }

/* Research topic cards (home) */
.topic h3 { margin-bottom: .35rem; }
.topic .tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.tag { font-size: .78rem; font-weight: 600; color: var(--teal-dark);
  background: rgba(20,184,166,.1); padding: .2rem .6rem; border-radius: 999px; }

/* ==========================================================================
   People (members) cards
   ========================================================================== */
.people-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, 1fr); }
/* 2026-07 구성원 사진 축소 요청. 사진 비율(3:4)은 원본에 맞춰 고정이므로
   크기는 오직 열 수로 조절한다 — 비율을 건드리면 크기가 아니라 '잘림'이 바뀐다.
   휴대폰(620px 미만)만 2열 그대로: 3열로 가면 390px 화면에서 96×128px까지
   작아져 얼굴 식별이 어렵다.
   되돌릴 때 원래 값 → 620px: repeat(3, 1fr) / 980px: repeat(4, 1fr) */
@media (min-width: 620px) { .people-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 980px) { .people-grid { grid-template-columns: repeat(5, 1fr); } }

.person {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: .18s; display: flex; flex-direction: column;
}
.person:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
/* 박스 비율은 원본 증명사진과 같은 3:4로 맞춘다 — members 사진 30장을 실측한
   결과 대부분 0.75(3:4)라, 이 값이어야 object-fit:cover가 아무것도 잘라내지
   않는다. 3/3.4로 납작하게 잡았더니 세로 15%가 잘려 상체가 사라졌었다.
   ★ 사진 크기를 더 줄여야 하면 이 비율이 아니라 .people-grid의 열 수를 늘릴 것
     (비율을 건드리면 크기가 아니라 '잘림'이 바뀐다). */
.person__photo { aspect-ratio: 3 / 4; background: var(--bg-muted) center/cover no-repeat; }
.person__photo--ph { display: grid; place-items: center; color: #b6c0cf; font-size: 2.4rem; font-weight: 700; }
.person__body { padding: .9rem 1rem 1.1rem; }
.person__name { font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.person__name small { display: block; font-weight: 600; color: var(--text-soft); font-size: .8rem; }
.person__meta { font-size: .85rem; color: var(--text-soft); margin-top: .35rem; }
.person__meta a { font-size: .82rem; word-break: break-all; }
.person__thesis { font-size: .8rem; color: var(--text-soft); margin-top: .45rem; line-height: 1.5;
  padding-top: .45rem; border-top: 1px dashed var(--line);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.alumni-list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background:#fff; }
.alumni-row { display: grid; grid-template-columns: 1.1fr 2fr; gap: 1rem; padding: .9rem 1.2rem; border-top: 1px solid var(--line); }
.alumni-row:first-child { border-top: 0; }
.alumni-row b { color: var(--ink); }
.alumni-row b small { color: var(--text-soft); font-weight: 600; }
.alumni-row .thesis { color: var(--text-soft); font-size: .92rem; }
@media (max-width: 620px) { .alumni-row { grid-template-columns: 1fr; gap: .25rem; } }

/* Group subheading */
.group-head { display: flex; align-items: baseline; gap: .6rem; margin: 2.4rem 0 1.1rem; }
.group-head h3 { font-size: 1.25rem; margin: 0; }
.group-head .count { font-size: .85rem; color: var(--text-soft); font-weight: 600; }
.group-head::before { content: ""; width: 6px; height: 22px; border-radius: 3px;
  background: linear-gradient(var(--teal), var(--cyan)); display: inline-block; }

/* ==========================================================================
   Professor page
   ========================================================================== */
.prof-head { display: grid; grid-template-columns: 230px 1fr; gap: 2rem; align-items: start; }
@media (max-width: 720px) { .prof-head { grid-template-columns: 1fr; } .prof-photo { max-width: 220px; } }
.prof-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.prof-photo img { width: 100%; aspect-ratio: 3/3.7; object-fit: cover; }
.prof-name { font-size: 1.9rem; margin-bottom: .15rem; }
.prof-name small { font-size: 1.05rem; color: var(--text-soft); font-weight: 600; margin-left: .4rem; }
.prof-title { color: var(--teal-dark); font-weight: 700; margin-bottom: 1rem; }
.prof-contact { list-style: none; display: grid; gap: .35rem; font-size: .98rem; }
.prof-contact b { color: var(--ink); display: inline-block; min-width: 86px; }

.timeline { list-style: none; position: relative; padding-left: 1.4rem; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 1rem .2rem; }
.timeline li::before { content: ""; position: absolute; left: -1.18rem; top: .55rem; width: 10px; height: 10px;
  border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgba(20,184,166,.18); }
.timeline .when { font-weight: 700; color: var(--navy); font-size: .92rem; }
.timeline .what { color: var(--text); }
.timeline .sub { color: var(--text-soft); font-size: .9rem; font-style: italic; }

/* Simple two-column "definition" lists (societies/committees) */
.deflist { list-style: none; display: grid; gap: .55rem; }
.deflist li { display: grid; grid-template-columns: auto 1fr; gap: .8rem; padding-bottom: .55rem;
  border-bottom: 1px dashed var(--line); }
.deflist .k { color: var(--navy); font-weight: 700; font-size: .9rem; white-space: nowrap; }
.deflist .v { color: var(--text); }
.deflist .v small { color: var(--text-soft); }
@media (max-width: 620px) { .deflist li { grid-template-columns: 1fr; gap: .1rem; } }

/* Collapsible block for long lists */
.collapse { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.collapse > summary {
  cursor: pointer; padding: 1rem 1.3rem; font-weight: 700; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.collapse > summary::-webkit-details-marker { display: none; }
.collapse > summary::after { content: "▾"; color: var(--teal-dark); transition: .2s; }
.collapse[open] > summary::after { transform: rotate(180deg); }
.collapse > summary:hover { background: var(--bg-muted); }
.collapse__body { padding: .4rem 1.3rem 1.3rem; }

/* Media links */
.media-list { list-style: none; display: grid; gap: .2rem; }
.media-list li { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.media-list .date { font-size: .82rem; color: var(--teal-dark); font-weight: 700; }
.media-list a { color: var(--text); font-weight: 600; }

/* ==========================================================================
   Reference lists: publications / conferences / projects / patents / awards
   ========================================================================== */
.subnav { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2rem; }
.subnav button {
  border: 1px solid var(--line); background: #fff; color: var(--text); cursor: pointer;
  padding: .5rem 1rem; border-radius: 999px; font-weight: 600; font-size: .9rem; transition: .15s;
}
.subnav button:hover { border-color: var(--teal); color: var(--teal-dark); }
.subnav button.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Filter bar — 구분(category) chips + 연도(year) dropdown inside list tabs */
.fbar { margin: 0 0 1.6rem; display: grid; gap: .55rem; }
.fbar__row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.fbar__label { min-width: 2.4rem; font-size: .8rem; font-weight: 700; color: var(--text-soft); }
.fchip {
  border: 1px solid var(--line); background: #fff; color: var(--text); cursor: pointer;
  padding: .35rem .85rem; border-radius: 999px; font-weight: 600; font-size: .85rem; transition: .15s;
}
.fchip:hover { border-color: var(--teal); color: var(--teal-dark); }
.fchip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.fyear {
  border: 1px solid var(--line); background: #fff; color: var(--text); cursor: pointer;
  font: inherit; font-weight: 600; font-size: .85rem; border-radius: 999px;
  padding: .35rem 2.1rem .35rem .9rem; transition: .15s;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235A6678' d='M6 8.5 1.5 4h9z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center;
}
.fyear:hover { border-color: var(--teal); }
.fsearch {
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font: inherit; font-size: .85rem; font-weight: 600; color: var(--text);
  padding: .35rem 1rem; flex: 1; min-width: 180px; max-width: 320px;
}
.fsearch:focus { border-color: var(--teal); outline: none; }
.fsearch::placeholder { color: var(--text-soft); font-weight: 500; }

.ref-list { list-style: none; display: grid; gap: .1rem; counter-reset: ref; }
.ref-item {
  display: grid; grid-template-columns: 2.2rem 1fr; gap: .6rem; align-items: start;
  padding: 1rem .4rem; border-bottom: 1px solid var(--line);
}
.ref-item::before {
  counter-increment: ref; content: counter(ref);
  font-variant-numeric: tabular-nums; font-weight: 700; color: var(--teal-dark);
  background: rgba(20,184,166,.1); border-radius: 8px; text-align: center; padding: .1rem 0; font-size: .85rem;
}
.ref-item p { margin: 0; }
.ref-item .title { color: var(--ink); font-weight: 600; }
.ref-item .meta { color: var(--text-soft); font-size: .92rem; margin-top: .15rem; }
.ref-item .badge {
  display: inline-block; font-size: .72rem; font-weight: 700; padding: .12rem .5rem; border-radius: 999px;
  background: rgba(11,31,58,.07); color: var(--navy); margin-left: .4rem; vertical-align: middle;
}
.ref-item .badge--sci { background: rgba(245,158,11,.16); color: #b9770a; }
.ref-item a.link { font-size: .85rem; font-weight: 600; }

/* Project rows */
.proj-item { display: grid; grid-template-columns: 12rem 1fr; gap: 1rem; padding: 1rem .4rem; border-bottom: 1px solid var(--line); }
/* 기간 칸은 절대 줄바꿈하지 않음 — 두 자리 월(예: 2025. 12. ~ 2026. 11.)도 한 줄 유지 */
.proj-item .period { font-weight: 700; color: var(--navy); font-size: .9rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.proj-item .title { color: var(--ink); font-weight: 600; }
/* 진행 중 표식 — 제목 뒤에 붙는 작은 배지(기간 칸은 폭이 고정이라 피한다) */
.proj-item .badge--live {
  display: inline-block; margin-left: .45rem; padding: .1rem .45rem; border-radius: 999px;
  background: rgba(20,184,166,.14); color: var(--teal-dark); font-size: .72rem; font-weight: 700;
  vertical-align: middle; white-space: nowrap;
}
.proj-item .org { color: var(--teal-dark); font-size: .9rem; font-weight: 600; margin-top: .15rem; }
@media (max-width: 620px) { .proj-item { grid-template-columns: 1fr; gap: .2rem; } }

/* Awards */
.award-item { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: 1.1rem .4rem; border-bottom: 1px solid var(--line); }
.award-item .date { font-weight: 700; color: var(--teal-dark); font-variant-numeric: tabular-nums; }
.award-item .title { color: var(--ink); font-weight: 600; }
.award-item .en { color: var(--text-soft); font-size: .9rem; font-style: italic; }
.award-item .venue { color: var(--navy); font-size: .9rem; margin-top: .25rem; font-weight: 600; }
@media (max-width: 620px) { .award-item { grid-template-columns: 1fr; gap: .25rem; } }

/* Patents table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background:#fff; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
table.data th, table.data td { padding: .7rem .8rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { background: var(--navy); color: #fff; font-weight: 600; font-size: .85rem; white-space: nowrap; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: var(--bg-muted); }
table.data .name { color: var(--ink); font-weight: 600; }

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--ink));
  color: #fff; padding: 3rem 0 2.6rem; position: relative; overflow: hidden;
}
.page-hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(20,184,166,.4), transparent 70%); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .3rem; }
.breadcrumb { color: #9db2cf; font-size: .9rem; }
.breadcrumb a { color: #cfe0f5; }

/* Loading / empty states */
.state { text-align: center; color: var(--text-soft); padding: 3rem 1rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: #aebacd; padding: 3rem 0 2rem; margin-top: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 1.4rem; } }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; margin-bottom: .8rem; }
.site-footer a { color: #aebacd; }
.site-footer a:hover { color: #fff; }
.footer-brand b { color: #fff; font-size: 1.1rem; }
.footer-links { list-style: none; display: grid; gap: .4rem; font-size: .92rem; }
.footer-contact { font-size: .9rem; line-height: 1.9; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 1.3rem;
  font-size: .82rem; color: #7f8da3; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.footer-bottom a.edit-link { color: #7f8da3; }

/* Accessibility / motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--teal); color: #04201d;
  padding: .6rem 1rem; border-radius: 0 0 8px 0; font-weight: 700; z-index: 200; }
.skip-link:focus { left: 0; }

/* ==========================================================================
   모집 공고 콜아웃 (People → 지원 탭)
   ========================================================================== */
.recruit { display: flex; gap: 1rem; align-items: flex-start;
  background: linear-gradient(135deg, rgba(20,184,166,.10), rgba(6,182,212,.08));
  border: 1px solid rgba(20,184,166,.35); border-left: 4px solid var(--teal);
  border-radius: var(--radius); padding: 1.2rem 1.4rem; margin-bottom: 1.6rem; }
.recruit + .recruit { margin-top: -.6rem; }
.recruit__icon { font-size: 1.7rem; line-height: 1.2; }
.recruit__body { flex: 1; min-width: 0; }
.recruit__tag { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-dark); }
.recruit h3 { font-size: 1.15rem; margin: .15rem 0 .4rem; }
.recruit p { color: var(--text); margin: 0 0 .5rem; font-size: .97rem; }
.recruit__foot { display: flex; gap: 1rem; align-items: center; font-size: .85rem; }
.recruit__foot .date { color: var(--text-soft); font-weight: 600; font-variant-numeric: tabular-nums; }

/* People → 지원 (application) call-to-action */
.apply-cta { margin-top: 2rem; padding: 1.6rem; text-align: center;
  background: linear-gradient(135deg, rgba(20,184,166,.08), rgba(6,182,212,.07));
  border: 1px solid rgba(20,184,166,.3); border-radius: var(--radius); }

/* 지원 탭 FAQ (details 아코디언) */
.collapse--faq { margin-bottom: .7rem; }
.collapse--faq > summary { font-size: .98rem; padding: .85rem 1.1rem; }

/* ==========================================================================
   추가 컴포넌트 (2026-07 개편)
   ========================================================================== */
/* 썸네일·인물 사진을 <img loading="lazy">로 렌더링할 때의 형태 유지 */
/* object-position은 기본값(가운데)을 쓴다. top으로 밀면 잘리는 양이 전부
   아래쪽으로 몰려 상체가 잘려 나간다 — 박스가 3:4라 애초에 잘릴 게 거의 없다. */
img.person__photo { object-fit: cover; }
img.person__photo { width: 100%; }

/* 홈 소개 사진 */
.about-photo { margin-top: 1.4rem; border-radius: var(--radius); box-shadow: var(--shadow); }

/* 홈 '오시는 길' */
.loc-box { max-width: 760px; margin: 0 auto; }
.loc-maps { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.3rem; }
.btn--map { background: #fff; border-color: var(--line); color: var(--text); font-size: .9rem; padding: .55rem 1rem; }
.btn--map:hover { border-color: var(--teal); color: var(--teal-dark); text-decoration: none; }

/* 교수 연구자 프로필 링크 (Google Scholar · ORCID 등) */
.prof-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.prof-link { font-size: .85rem; font-weight: 700; border: 1px solid var(--line);
  border-radius: 999px; padding: .3rem .85rem; color: var(--teal-dark); }
.prof-link:hover { border-color: var(--teal); background: var(--bg-muted); text-decoration: none; }

/* 언론활동 매체명 */
.media-list .src { font-size: .82rem; color: var(--text-soft); font-weight: 600; }

/* 구성원 관심 연구분야 태그 */
.tags--sm { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .45rem; }
.tags--sm .tag { font-size: .72rem; padding: .12rem .5rem; }

/* ==========================================================================
   인쇄 (논문 목록·교수 프로필 인쇄/PDF 저장용)
   ========================================================================== */
@media print {
  .site-header, .site-footer, .subnav, .fbar, .skip-link, .hero,
  .breadcrumb, .nav__toggle { display: none !important; }
  .page-hero { background: none !important; color: #000; padding: 0 0 .6rem; }
  .page-hero h1 { color: #000; }
  .page-hero::after { display: none; }
  body { font-size: 11pt; }
  a { color: inherit; text-decoration: none; }
  .section { padding: 1rem 0; }
  .card, .person { box-shadow: none; }
}
