/* 기본 설정 */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Urbanist", "KoPubWorldDotum", sans-serif;
  background-color: #fff;
  height: 100%;
  width: 100%;
}

/* =========================
   HED Lab Main — CSS (clean)
   ========================= */

/* 공통 변수 */
:root{
  --fg:#0a0a0a;
  --muted:#bdbdbd;
  --pill-bg:#ffffff;
  --ring:#eeeeee;
  --shadow:0 12px 40px rgba(0,0,0,.08);
  --maxw:1800px; /* 검색창 최대폭 (필요시 1800px까지 올려도 OK) */
}

*{ box-sizing:border-box; }
html, body { height:100%; }
body{
  margin:0; background:#fff; color:var(--fg);
  font-family:"Urbanist","KoPubWorldDotum",sans-serif;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  line-height:1.45;
}

/* 헤더 */
.main-header{
  display:flex; justify-content:center; align-items:center;
  padding:32px 20px 16px; font-size:20px; font-weight:1000;
}
.main-header .lab-name{
  margin:0 auto; text-align:center;
  font-size:18px; font-weight:1000; color:#000; letter-spacing:.4px;
}

/* 중앙 정렬 레이아웃 */
main{
  display:flex; flex-direction:column; align-items:center; justify-content:flex-start;
  gap:48px; padding:40px 16px 80px;
}

/* 검색창(타이핑 박스) */
.search-pill{
  width:min(98vw, var(--maxw));       /* 더 길게 */
  min-height:64px; padding:16px 24px;
  border-radius:999px; background:var(--pill-bg);
  border:1px solid var(--ring); box-shadow:var(--shadow);
  display:flex; align-items:center; gap:14px;
}
.icon{ flex:0 0 auto; width:28px; height:28px; display:grid; place-items:center; opacity:.55; }

/* 텍스트 영역 */
.type-area{
  position:relative; flex:1; min-width:0; padding-right:10px;
  font-size:clamp(10px, 1.2vw, 14px); /* 좁은 화면에서 과대확대 방지 */
  color:#4a4a4a; overflow:hidden;
}

/* 줄바꿈 허용(모바일 대비) + 커서를 글자 끝에만 표시 */
.type-line{
  white-space:normal; overflow-wrap:anywhere; position:relative;
}
.type-line::after{
  content:""; display:inline-block; width:0;             /* 줄폭 증가 없음 → 줄 넘김 유발 X */
  border-left:1.5px solid #6b6b6b; height:1.05em; vertical-align:-2px;
  animation:blink .9s step-end infinite;
}

/* 예전 .cursor 요소가 남아 있어도 숨김 */
.cursor{ display:none !important; }

@keyframes blink{ 50%{ opacity:0 } }

/* 메뉴 */
.menu{ display:flex; flex-direction:column; align-items:center; gap:12px; margin-top:12px; }
.menu ul{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; align-items:center; gap:12px; }
.menu li{ margin:0; }
.menu a{
  font-weight:400; letter-spacing:.8px;
  font-size:clamp(22px, 4vw, 36px);
  text-decoration:none; color:var(--muted);
  transition:color .25s ease, transform .25s ease;
}
.menu a:hover{ color:#111; transform:translateY(-1px); }

/* 주소 */
.lab-address{
  font-size:14px; color:#aaa; line-height:1.5;
  margin-top:24px; text-align:center;
}

/* 모션 최소화 */
@media (prefers-reduced-motion: reduce){
  .type-line::after{ animation:none; }
}

/* 작은 화면 보정 */
@media (max-width: 480px){
  .search-pill{ padding:14px 18px; }
  .menu a{ font-size:clamp(20px, 6vw, 32px); }
}

/* === Narrow-screen wrap for search pill & text (override) === */
@media (max-width: 768px){
  .search-pill{
    /* 좌우 여백을 감안해 거의 꽉 차게 */
    width: clamp(320px, calc(100vw - 32px), var(--maxw));
    padding: 14px 16px;
    min-height: auto;           /* 줄바꿈 시 높이 자동 증가 */
    align-items: flex-start;    /* 텍스트가 위에서부터 쌓이도록 */
  }
  .icon{
    width: 24px; height: 24px;
    margin-top: 2px;            /* 텍스트 첫 줄과 수직 정렬 자연스럽게 */
  }
  .type-area{
    font-size: clamp(12px, 3.2vw, 16px);  /* 살짝 더 작게 */
    line-height: 1.5;
    padding-right: 6px;         /* 끝 커서 자리 여유 */
  }
  .type-line{
    white-space: normal;        /* 줄바꿈 허용 */
    overflow-wrap: anywhere;    /* 긴 단어도 안전하게 줄바꿈 */
  }
  .type-line::after{ height: 1.2em; }  /* 커서 높이 보정 */
}

/* 초소형 화면: 아이콘 위, 텍스트 아래로 '세로 스택' */
@media (max-width: 360px){
  .search-pill{
    flex-direction: column;     /* 아이콘/텍스트를 위아래로 */
    gap: 8px;
    padding: 12px;
    border-radius: 16px;        /* 세로형에 맞게 라운드 조정 */
  }
  .icon{ align-self: flex-start; }
  .type-area{ font-size: 13px; }
}





/* 서브페이지 전용 헤더 */
.subpage-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  z-index: 1000;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: box-shadow 0.3s ease;
}

.subpage-header.scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 연구실명 (좌측) */
.lab-name {
  margin: 0;
  padding: 0;
  font-size: 0; /* 내부 a 태그로만 글자 크기 제어 */
}

.lab-name a {
  font-size: 18px;
  font-weight: 1000;
  color: #000;
  text-decoration: none;
}

.lab-name a:visited {
  color: #000;
}

.lab-name a:hover {
  text-decoration: underline;
}

/* h1 기본 여백 제거 */
h1.lab-name {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
}

/* 우측 메뉴 */
.nav-menu {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-menu ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  display: inline-block;
}

.nav-menu li a {
  font-size: 16px;
  font-weight: 300;
  color: #000;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.nav-menu li a:hover {
  text-decoration: underline;
}

.nav-menu li a.active {
  text-decoration: underline;
  font-weight: 750;
  color: #000;
}


/* 맨 위로 이동 버튼 */
#backToTop {
  display: none;               
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 1000;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background-color: #fff;          /* 흰색 원 */
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  display: flex;                   /* 가운데 정렬 */
  justify-content: center;
  align-items: center;
  padding: 0;
}

#backToTop svg {
  width: 28px;
  height: 28px;
}

#backToTop svg path,
#backToTop svg polyline {
  stroke: #333;                    /* 선색 */
}

#backToTop:hover {
  background-color: #f5f5f5;
  transform: translateY(-3px);
}

#backToTop:hover svg path,
#backToTop:hover svg polyline {
  stroke: #111;                    /* 호버 시 더 진하게 */
}

#backToTop:active {
  transform: translateY(0);
}



/* publications 페이지 전용 스타일 */
.publications-main {
  display: grid;
  grid-template-columns: 320px 1fr;  /* 왼쪽 탭 200px, 오른쪽 본문 */
  column-gap: 100px;                 /* 탭과 본문 간격 */
  padding: 100px 40px 60px;
  max-width: none;
  color: #000;
  font-size: 16px;
  align-items: start;
}

/* 탭 메뉴 */
.tab-menu {
  position: sticky;   /* 스크롤 시 publication-main 안에서 고정 */
  top: 100px;         /* 헤더 바로 밑 */    
  display: flex;
  flex-direction: row; /* 가로 정렬 */
  gap: 20px;
  background: #fff;
  z-index: 10;
}

.tab-menu .tab {
  font-size: 16px;
  font-weight: 500;
  color: #888;
  text-decoration: none;
}

.tab-menu .tab.active {
  font-weight: 700;
  color: #000;
  text-decoration: underline;
}

/* 본문 */
.publications-content {
  width: 100%;
}

.publications-section {
  display: none;
}

.publications-section.active {
  display: block;
}

.publications-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 24px 0;
}

.pub-category {
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 8px;
}

.divider {
  border: none;
  border-top: 1px solid #ddd;
  margin: 8px 0 16px;
}

.pub-list {
  list-style: none;
  padding-left: 0;
  max-height: 140px;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.pub-list.expanded {
  max-height: none;
}

.pub-list li {
  margin-bottom: 20px;
  line-height: 1.6;
}

.pub-list .authors {
  display: block;
  font-size: 14px;
  color: #555;
  margin-top: 4px;
}

.pub-list a {
  color: #000;              /* 항상 검정색 */
  text-decoration: none;    /* 기본 밑줄 제거 */
}

.pub-list a:hover {
  text-decoration: underline; /* hover 시 밑줄 */
}

.toggle-btn {
  font-size: 14px;
  color: #555;
  cursor: pointer;
  margin-top: 8px;
  display: inline-block;
}

/* ===== Publications 레이아웃(좌:사이드바 / 우:본문) ===== */
.publications-main,
.publication-main{
  display: grid;
  grid-template-columns: 280px 1fr;  /* 좌측 폭은 취향에 맞게 */
  column-gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 20px 60px;
  align-items: start;
}


/* 사이드바: 탭 + 필터가 한 묶음 */
.pub-sidebar{
  grid-column: 1;
  position: sticky;     /* 스크롤해도 상단 고정 */
  top: 100px;           /* 헤더 높이에 맞춰 조절 */
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 본문은 오른쪽 칸 */
.publications-content{
  grid-column: 2;
}

/* 탭을 세로 목록로 */
.tab-menu{
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tab-menu .tab{
  display: block;
  color: #888;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}
.tab-menu .tab.active{
  color: #000;
  font-weight: 700;
  text-decoration: underline;
}

/* ===== 필터 UI ===== */
.pub-filters{
  display:flex; gap:16px; align-items:center; flex-wrap:wrap;
  margin: 8px 0 0;
}
.pub-filters .filter-group{ display:flex; align-items:center; gap:8px; }
.pub-filters label{ font-size:14px; color:#555; }
.pub-filters select{
  appearance:none; padding:4px 12px; border:1px solid #ddd; border-radius:10px;
  background:#fff; font-size:14px; min-width: 140px;
}
.pub-filters .filter-reset{
  padding:8px 12px; border:1px solid #ddd; border-radius:999px; background:#fff; cursor:pointer;
}
.pub-filters .filter-reset:hover{ border-color:#000; }

/* 필터 중에는 접힘 해제하여 결과 한눈에 */
.publications-main.filter-active .toggle-container{ max-height:none !important; }

/* 필터 결과 숨김 제어 */
.pub-category.hidden, .pub-list.hidden, .pub-list li.hidden{ display:none; }






/* activities 페이지 전용 스타일 */
.activities-main {
  display: grid;
  grid-template-columns: 320px 1fr;
  column-gap: 100px;
  padding: 100px 40px 60px;
  max-width: none;
  color: #000;
  font-size: 16px;
  align-items: start;
}

/* 탭 메뉴 */
.tab-menu {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #fff;
  z-index: 10;
}

.tab-menu .tab {
  font-size: 16px;
  font-weight: 500;
  color: #888;
  text-decoration: none;
}

.tab-menu .tab.active {
  font-weight: 700;
  color: #000;
  text-decoration: underline;
}

/* 본문 */
.activities-content {
  width: 100%;
}

.activities-section {
  display: none;
}
.activities-section.active {
  display: block;
}

.activities-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 60px 0 24px 0;
}
.activities-section h3:first-child {
  margin-top: 0;
}

.conf-category {
  font-weight: 700;
  margin-top: 30px;
  margin-bottom: 12px;
  position: relative;
}
.conf-category::after {
  content: "";
  display: block;
  border: none;
  border-top: 1px solid #ddd;
  margin: 8px 0 16px;
}

.conf-list {
  list-style: none;
  padding-left: 0;
}
.conf-list li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.poster {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  background: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.poster img:hover {
  transform: scale(1.02);
}

.conf-info {
  flex: 1;
}
.title-link {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px 0;
  line-height: 1.4;
  color: #000;
  text-decoration: none;
  display: block; /* 줄바꿈 강제 */
  margin-bottom: 6px; /* 제목과 저자 사이 여백 */
}

.title-link:hover {
  text-decoration: underline;
  cursor: pointer;
}

/* 저자명 */
.conf-info .authors {
  display: block;   /* 한 줄 차지 (제목 밑으로 내려옴) */
  font-size: 14px;
  color: #555;
  margin-top: 2px;
}

/* 모달 공통 */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.95);
  justify-content: center;
  align-items: center;
  overflow: auto;
  padding: 40px;
}
.modal-inner {
  display: flex;
  gap: 40px;
  max-width: 1000px;
  width: 90%;
  max-height: 90vh;
}
.modal-content {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}
.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 36px;
  font-weight: medium;
  color: #333;
  cursor: pointer;
}

/* 상세 모달 전용 */
#detailModal .modal-inner {
  display: block;       /* flex 대신 block */
  max-width: 900px;     /* 텍스트 가로폭 제한 */
  width: 90%;
  background: transparent;
}

#detailModal .modal-right {
  text-align: left;
  color: #000;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

#detailTitle {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: justify;
}

#detailAuthors {
  font-size: 14px;
  color: #666;
  margin-bottom: 24px;
}

.abstract-title {
  font-size: 18px;
  font-weight: 700;
  color: #000;
  margin-bottom: 12px;
}

.modal-abstract-wrapper {
  flex: 1;
  overflow-y: auto;
  padding-right: 8px;
}

#detailAbstract {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  text-align: justify;
  text-indent: 1em;
}


/* 커스텀 스크롤바 */
.modal-abstract-wrapper::-webkit-scrollbar {
  width: 6px;
}
.modal-abstract-wrapper::-webkit-scrollbar-thumb {
  background-color: #bbb;
  border-radius: 3px;
}
.modal-abstract-wrapper::-webkit-scrollbar-thumb:hover {
  background-color: #999;
}
.modal-abstract-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

/* 이미지 모달 전용 */
#imgModal .modal-inner {
  justify-content: center;
  align-items: center;
}
#imgModal .modal-content {
  max-width: 80vw;
  max-height: 80vh;
}

/* PDF 버튼 심플 스타일 */
.pdf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;       /* 저자명과 살짝 간격 */
  padding: 4px 12px;
  border: 1px solid #aaa;
  border-radius: 12px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pdf-btn:hover {
  border-color: #333;
  color: #000;
  background: #f9f9f9;
}


/* Back to top 버튼 */
#backToTop {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
#backToTop svg {
  width: 24px;
  height: 24px;
}

/* 기본적으로 activities-section은 숨김 */
.activities-section {
  display: none;
}

/* active 붙은 것만 보이게 */
.activities-section.active {
  display: block;
}





/* Contact 페이지 전용 스타일 */
.contact-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 140px 20px 80px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-video video {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 4px;
  margin-bottom: 40px;
}

.contact-content {
  text-align: justify;
  width: 100%;
}

.contact-content h2 {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.contact-content h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: #333;
}

.contact-content p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #303030;
  text-align: justify;
}


/* =========================
   MEMBER — page-scoped CSS
   ========================= */

/* 컨테이너 */
.member-main{
  /* 전역 main(center 정렬) 무효화 */
  display:flex;
  flex-direction:column;
  align-items:flex-start;       /* ✅ 좌측 기준 */
  text-align:left;              /* ✅ 텍스트도 좌측 */
  gap:60px;
  padding:140px 18px 60px;      /* 상단 고정 헤더 여유(필요시 120~160px 조정 가능) */
  max-width:880px;
  margin:0 auto;
  color:#000;
  font-size:16px;
  width:100%;
}

/* =========================
   MEMBER — page-scoped CSS (full)
   ========================= */

/* 사진 폭 변수 (원하면 240~300px로 조절) */
:root{ --prof-photo-w: 280px; }

/* 컨테이너 */
.member-main{
  display:flex;
  flex-direction:column;
  align-items:flex-start;      /* 좌측 기준 */
  text-align:left;             /* 텍스트도 좌측 */
  gap:60px;
  padding:140px 18px 60px;     /* 고정 헤더 여유 */
  max-width:880px;
  margin:0 auto;
  color:#000;
  font-size:16px;
  width:100%;
}

/* 섹션 제목 (교수 / 박사 / 박사과정 / 석사과정) */
.member-role{
  display:block;
  width:100%;
  margin:0 0 20px;
  padding-bottom:6px;
  font-size:20px;
  font-weight:700;
  border-bottom:none;
  position:relative;
}
.member-role::after{
  content:"";
  position:absolute; left:0; bottom:0;
  width:100%; height:1px; background:#ddd;
}

/* 현재 직위(Professor / Dean) 블록 */
.current-positions{
  margin:8px 0 28px;          /* 위 살짝, 아래 여백 넉넉히 */
}
.current-positions p{
  margin:2px 0;
  font-size:14px;
  font-weight:700;            /* ← 누락 세미콜론 보완 */
  color:#333;
  text-align:left;
}

/* 멤버 리스트 */
.member-list{
  display:flex;
  flex-direction:column;
  align-items:flex-start;      /* 리스트 아이템도 좌측 */
  gap:48px;
  width:100%;
  padding:0;
  margin:0;
  list-style:none;
}
.member-list li{ margin:0; }   /* li 사용 시 기본 여백 제거 */

/* 아이템 타이포 */
.member-name{
  font-size:16px;
  font-weight:700;
  margin:0 0 4px;
}
.member-info,
.member-email{
  font-size:14px;
  color:#555;
  margin:0;
  line-height:1.4;
}
.member-info strong,
.member-email strong{
  font-weight:600;
  color:#333;
}

/* 좌측 정렬 강제(상속 이슈 방지) */
.member-list p,
.member-list li,
.member-main *{
  text-align:left;
}

/* ── Professor card: clean version ───────────────── */
img { max-width: 100%; height: auto; } /* 전역: 비율 유지 */

.member-card.professor-card{
  display: grid;
  grid-template-columns: max-content 1fr;  /* 이미지 폭만큼 + 본문 */
  column-gap: 28px;
  align-items: flex-start;                 /* 윗쪽 정렬 */
  width: 100%;
  padding: 24px 24px;                      /* 좌우 여백 절제 */
  border: 1px solid #eee;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,.05);
}

.member-card.professor-card .professor-photo{
  margin: 0;                               /* figure 기본 마진 제거 */
  padding: 0;
}

/* 이미지 자체에만 사이즈/스타일 */
.member-card.professor-card .professor-photo img{
  display: block;
  width: auto;
  height: auto;
  max-width: 220px;                        /* 필요시 값만 조정 */
  max-height: 280px;
  object-fit: contain;                     /* 레터박스 허용 */
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
}

.member-card.professor-card .professor-body{
  min-width: 0;                            /* 긴 텍스트 안전 */
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.member-card.professor-card .member-name{
  margin: 0 0 8px 0;                       /* 상단 맞춤 */
  line-height: 1.2;
  font-weight: 800;
  font-size: 18px;                         /* 원하면 20~22px로 ↑ */
}

/* Lab Director 뱃지 (그대로 사용) */
.badge{
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  color: #fff;
  background: #111;
  vertical-align: middle;
}

/* 모바일: 한 열로 스택 */
@media (max-width: 768px){
  .member-card.professor-card{
    grid-template-columns: 1fr;
    row-gap: 16px;
    padding: 20px;
  }
  .member-card.professor-card .professor-photo img{
    max-width: 180px;
  }
}


/* 연구 관심사와의 간격 */
.current-positions + .member-info{ margin-top: -6px; }

/* ─ CV (나열형) ─ */
.cv{
  margin-top:6px;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.cv-title{
  margin:0 0 6px;
  font-size:16px;
  font-weight:700;
  color:#222;
}
.cv-list{
  margin:0;
  padding-left:18px;           /* 불릿 들여쓰기 */
  list-style:disc;
}
.cv-list li{
  margin:6px 0;
  line-height:1.6;
  font-size:14px;
  color:#444;
}

/* 구분선(옵션): 섹션 사이 은은한 라인 */
.cv-section + .cv-section{
  border-top:1px solid #eee;
  padding-top:12px;
}

/* 반응형 */
@media (max-width: 640px){
  .member-main{
    padding:120px 16px 48px;
    gap:40px;
  }
  .member-role{ font-size:18px; }
  .member-name{ font-size:15px; }
  .member-info, .member-email{ font-size:13px; }
}

@media (max-width: 720px){
  .professor-card{
    grid-template-columns: 1fr;   /* 세로 스택 */
    gap:16px;
    padding:16px;
    border-radius:14px;
  }
  .professor-photo img{
    aspect-ratio:4 / 3;
    border-radius:10px;
  }
  .professor-card .member-name{ font-size:17px; }
  .cv-title{ font-size:15px; }
  .cv-list li{ font-size:13.5px; }
}

/* === Align member items with professor text column (lists only) === */
@media (min-width: 721px){
  /* 교수 섹션을 제외한 모든 섹션의 '항목 리스트'만 들여쓰기 */
  .member-section:not(:first-of-type) .member-list{
    /* 사진 너비 + 카드 안쪽 패딩(20px) + 사진·텍스트 간격(24px) */
    padding-left: calc(var(--prof-photo-w, 260px) + 44px);
  }
}

/* ===== Achievements page styles ===== */
:root {
  --ink: #000;
  --muted: #666;
  --line: #e6e6e6;
  --chip-bg: #f7f7f7;
  --chip-border: #ddd;
}

/* 레이아웃 */
.achievements-main {
  display: grid;
  grid-template-columns: 260px 1fr;
  column-gap: 80px;
  max-width: 1100px;
  padding: 80px 24px 120px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .achievements-main {
    grid-template-columns: 1fr;
    row-gap: 24px;
    padding-top: 40px;
  }
}

/* 사이드바 필터 */
.achievements-filter { position: sticky; top: 100px; align-self: start; }
.achievements-filter h2 { font-size: 16px; font-weight: 800; margin: 0 0 16px; }
.filter-group { margin-bottom: 24px; }
.filter-label { display: block; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  appearance: none;
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  color: #111;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
}
.chip[aria-pressed="true"] { background: #fff; border-color: #111; font-weight: 700; }
.chip:hover { background: #fff; }

.stats { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* 연도 퀵 링크 */
.year-quick {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.year-quick a {
  display: block;
  text-align: center;
  padding: 8px 0;
  border: 1px solid var(--chip-border);
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
}
.year-quick a:hover { border-color: #111; }

/* 콘텐츠 영역 */
.awards { min-width: 0; }

.year-group { padding: 16px 0 10px; }

/* 스티키 연도 헤더 (메인 헤더 높이에 맞춰 상단 오프셋) */
.year-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  position: sticky;
  top: 76px;
  background: #fff;
  padding: 6px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
  z-index: 5;
}
.year-heading .year { font-size: 18px; font-weight: 800; }
.year-heading .meta { font-size: 13px; color: var(--muted); }

/* 리스트 카드 */
.award-list { list-style: none; margin: 0; padding: 0; }
.award-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}
.award-item .left { display: flex; gap: 8px; align-items: flex-start; min-width: 0; }
.badge {
  display: inline-block;
  border: 1px solid #111;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  white-space: nowrap;
}
.award-body { min-width: 0; }
.title { font-weight: 700; }
.authors, .venue { color: var(--muted); }
.divider { color: #bbb; padding: 0 6px; }

/* 반응형 */
@media (max-width: 680px) {
  .award-item { grid-template-columns: 1fr; }
  .award-item .left { order: 2; }
  .award-body { order: 1; }
}

/* 접근성 유틸 */
.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;
}

/* === Achievements: 사이드바를 화면 좌측 끝으로 === */
.achievements-main {
  max-width: none;     /* 중앙 고정 폭 해제 */
  margin: 0;           /* 중앙 정렬 해제 */
  padding-left: 40px;
  padding-right: 24px; 
  /* 나머지 값은 기존 유지: padding-top/bottom, column-gap 등 */
}

/* 선택: 콘텐츠 폭을 너무 넓게 보이지 않도록 제한하고 싶으면 */
.awards {
  max-width: 1100px; /* 기존 페이지 폭 기준과 동일 */
  width: 100%;
  margin: 0 auto;    /* 그리드의 우측 컬럼 내부에서 가운데 정렬 */
}

/* 모바일: 상단/좌우 여백 살짝 다듬기 (선택) */
@media (max-width: 900px) {
  .achievements-main {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.award-item.hidden, .year-group.hidden { display: none; }
.chip.active { border-color: #000; font-weight: 600; }


/* ===== Chip Filters (공용) ===== */
.chip-row{ display:flex; gap:8px; flex-wrap:wrap; }
.chip{
  border:1px solid #ddd; border-radius:999px; background:#fff; cursor:pointer;
  padding:6px 12px; font-size:14px; line-height:1; transition:border-color .2s, background .2s;
}
.chip[aria-pressed="true"], .chip.active{ border-color:#000; font-weight:600; }
.chip:focus{ outline:2px solid #0002; outline-offset:2px; }

.pub-filters{ display:flex; flex-direction:column; gap:14px; margin:8px 0 0; }
.pub-filters .filter-group{ display:flex; flex-direction:column; gap:8px; }
.pub-filters .filter-label{ font-size:14px; color:#555; }

/* Publications 필터 동작 시 접힘 해제 + 숨김 제어 */
.publications-main.filter-active .toggle-container{ max-height:none !important; }
.pub-category.hidden, .pub-list.hidden, .pub-list li.hidden { display:none; }

/* ===== Publications: 왼쪽 사이드바(탭+필터) 레이아웃 ===== */
main.publications-main{
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr); /* ← 왼쪽 사이드바 폭 */
  column-gap: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 20px 60px;
  align-items: start;
}

/* 사이드바: Achievements와 동일한 고정 위치감 */
main.publications-main .pub-sidebar{
  grid-column: 1;
  position: sticky;
  top: 84px;           /* Achievements의 필터 top과 맞춤 */
  align-self: start;
}

/* 본문은 오른쪽 */
main.publications-main .publications-content{
  grid-column: 2;
  min-width: 0;        /* 긴 내용 줄바꿈 안전 */
}

/* ===== 사이드바 안 탭 메뉴: 왼쪽 정렬 세로 리스트 ===== */
main.publications-main .tab-menu{
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 12px;
}
main.publications-main .tab-menu .tab{
  display: block;
  text-align: left;
  padding: 4px 0;
  font-size: 16px;
  font-weight: 500;
  color: #666;
  text-decoration: none;
}
main.publications-main .tab-menu .tab.active{
  color: #111;
  font-weight: 800;
  text-decoration: underline;
}

/* ===== 칩 필터: Achievements 스타일과 톤 맞춤 ===== */
main.publications-main .pub-filters{ margin-top: 8px; }
main.publications-main .filter-group{ margin-bottom: 24px; }
main.publications-main .filter-label{
  display: block;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

/* 칩 공용(.chip, .chip-row)은 Achievements 정의를 그대로 사용 */

/* (선택) 사이드바 구분선이 필요하면 사용 */
main.publications-main .sidebar-divider{
  height: 1px;
  background: var(--chip-border, #e5e5e5);
  margin: 8px 0 16px;
}

/* ===== 반응형: 좁은 화면에서는 위아래로 쌓기 ===== */
@media (max-width: 980px){
  main.publications-main{
    grid-template-columns: 1fr;
    column-gap: 0;
  }
  main.publications-main .pub-sidebar{
    position: static;
    top: auto;
    margin-bottom: 24px;
  }
}

/* ===== Publications: 왼쪽 붙는 사이드바 + 콘텐츠는 우측 영역에서 정렬 ===== */
main.publications-main{
  /* 가운데 정렬 해제 → 왼쪽부터 풀폭 */
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;

  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);  /* 좌: 사이드바, 우: 본문 */
  column-gap: 64px;

  /* 좌우 여백(페이지 거터) — 더 붙이고 싶으면 24px → 16px/12px로 줄여도 됨 */
  padding: 100px 28px 60px 32px;
  align-items: start;
}

/* 사이드바(탭+칩) — Achievements와 동일한 고정 위치감 */
main.publications-main .pub-sidebar{
  grid-column: 1;
  position: sticky;
  top: 84px;         /* 헤더 높이에 맞춰 조정 */
  align-self: start;
  margin-left: 8px;    /* 혹시 남아있는 좌측 마진 제거 */
}

/* 본문은 오른쪽 칼럼에서만 폭 제한(가운데 정렬 느낌 유지) */
main.publications-main .publications-content{
  grid-column: 2;
  min-width: 0;
  max-width: 1100px;  /* 본문 최대폭(원하면 1000~1200px로 조정) */
  margin: 0 auto;     /* 우측 칼럼 안에서 가운데 정렬 */
}

/* 탭은 세로 리스트로 왼쪽 정렬 */
main.publications-main .tab-menu{
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 12px;
}
main.publications-main .tab-menu .tab{
  display: block;
  text-align: left;
  padding: 4px 0;
  font-size: 16px;
  font-weight: 500;
  color: #666;
  text-decoration: none;
}
main.publications-main .tab-menu .tab.active{
  color: #111; font-weight: 800; text-decoration: underline;
}

/* 칩 필터(라벨/칩 간 간격) */
main.publications-main .pub-filters{ margin-top: 8px; }
main.publications-main .filter-group{ margin-bottom: 24px; }
main.publications-main .filter-label{
  display:block; font-size:12px; letter-spacing:.04em; text-transform:uppercase;
  color: var(--muted); margin-bottom:10px;
}

/* 반응형 — 좁은 화면에서는 위/아래로 쌓기 */
@media (max-width: 980px){
  main.publications-main{
    grid-template-columns: 1fr;
    column-gap: 0;
    padding-left: 16px; padding-right: 16px;
  }
  main.publications-main .pub-sidebar{ position: static; top: auto; margin-bottom: 24px; }
  main.publications-main .publications-content{ max-width: none; margin: 0; }
}

/* Publications 사이드바 제목 */
main.publications-main .pub-sidebar h2{
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 16px;
}

/* Publications 사이드바 필터를 왼쪽 정렬로 고정 */
main.publications-main .pub-sidebar { text-align: left; }                 /* 부모 정렬값 */
main.publications-main .pub-filters .filter-label { text-align: left; }   /* CATEGORY / YEAR 라벨 */
main.publications-main .pub-filters .chip-row { justify-content: flex-start; } /* 칩 묶음 */

/* ===== Publications 사이드바: 라벨/칩/그룹 전부 왼쪽 정렬 강제 ===== */
main.publications-main .pub-sidebar { 
  text-align: left !important;
}

/* 그룹 자체를 왼쪽으로 붙이기 (세로 플렉스의 교차축 정렬) */
main.publications-main .pub-sidebar .pub-filters,
main.publications-main .pub-sidebar .filter-group {
  align-items: flex-start !important;
}

/* CATEGORY / YEAR 라벨 */
main.publications-main .pub-sidebar .filter-label {
  text-align: left !important;
}

/* 칩 버튼 묶음 */
main.publications-main .pub-sidebar .chip-row {
  justify-content: flex-start !important; /* 가로 정렬 */
  text-align: left !important;
}

/* 혹시 상위에서 중앙 정렬을 강제하는 유틸 클래스를 쓰는 경우 대비 */
main.publications-main .pub-sidebar [class*="center"],
main.publications-main .pub-sidebar [class*="text-center"] {
  text-align: left !important;
}

/* Footer (심플 버전) */
.site-footer {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin: 40px 0 20px;
}

/* === 검색 바 타이핑 텍스트 줄바꿈 개선 === */
.type-line{
  white-space: normal;      /* 줄바꿈 허용 */
  overflow: visible;        /* 잘려나가지 않게 */
  overflow-wrap: anywhere;  /* 아주 긴 단어/URL도 강제 줄바꿈 */
  word-break: normal;       /* 한글 줄바꿈 자연스럽게 */
}

/* 여러 줄이 될 때 아이콘/텍스트 상단 정렬(모바일에서만 적용 권장) */
@media (max-width: 600px){
  .search-pill{ align-items: flex-start; }
  .type-area{ line-height: 1.35; }
  /* 글자 조금만 더 유연하게 */
  .type-area{ font-size: clamp(13px, 4.2vw, 16px); }
  .search-pill{ padding-top: 16px; padding-bottom: 16px; }
}

/* index(home) 페이지만 적용 */
body.home .type-line{
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}
