/* ATHENA 웹사이트 스타일
   색상·글꼴은 아래 :root 변수만 바꾸면 사이트 전체에 반영됩니다. */

@font-face { font-family: "Roboto"; font-weight: 400; src: url(../fonts/roboto-400.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: "Roboto"; font-weight: 500; src: url(../fonts/roboto-500.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: "Roboto"; font-weight: 700; src: url(../fonts/roboto-700.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: "Open Sans"; font-weight: 400; src: url(../fonts/opensans-400.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: "Open Sans"; font-weight: 700; src: url(../fonts/opensans-700.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: "Open Sans"; font-weight: 400; font-style: italic; src: url(../fonts/opensans-400-italic.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: "Open Sans"; font-weight: 700; font-style: italic; src: url(../fonts/opensans-700-italic.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: "Lato"; font-weight: 400; src: url(../fonts/lato-400.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: "Lato"; font-weight: 700; src: url(../fonts/lato-700.ttf) format("truetype"); font-display: swap; }

:root {
  --text: #212121;
  --heading: #857251;      /* 연도 제목, 사람 이름 등 갈색 제목 */
  --group: #45818e;        /* 구성원 그룹 제목(Ph.D. Candidates 등) 청록색 */
  --accent: #cea964;       /* 배너 제목 아래 금색 막대 */
  --rule: #5e5e5e;         /* 연도 제목 아래 줄 */
  --nav: #6a6a6a;
  --nav-active: #212121;
  --sidebar-width: 250px;
  --font-heading: "Roboto", Arial, sans-serif;
  --font-body: "Open Sans", Arial, sans-serif;
  --font-nav: "Open Sans", Arial, sans-serif;
  --font-name: "Lato", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--text); font: 16px/1.56 var(--font-body); }
img { max-width: 100%; }

.skip-link { position: fixed; left: calc(var(--sidebar-width) + 12px); top: -80px; z-index: 300; background: #fff; padding: 12px; }
.skip-link:focus { top: 0; }

/* ── 왼쪽 메뉴 ─────────────────────────── */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); overflow-y: auto;
  background: #fff; border-right: 1px solid rgba(0, 0, 0, .15); z-index: 100; font-family: var(--font-nav);
}
.sidebar-logo { display: flex; justify-content: center; padding: 60px 0 24px; }
.sidebar-logo img { width: 100px; }
.sidebar nav { padding: 0 16px 24px; }
.sidebar nav a { display: block; padding: 9px 0; color: var(--nav); font-size: 16px; line-height: 23px; text-decoration: none; }
.sidebar nav a:hover, .sidebar nav a[aria-current] { color: var(--nav-active); }
.nav-item { padding-left: 24px; }
.nav-group { position: relative; }
.nav-toggle {
  position: absolute; left: 0; top: 8px; width: 24px; height: 24px; padding: 0;
  border: 0; background: none; color: var(--nav); cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; fill: currentColor; transition: transform .2s; }
.nav-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-children { padding-left: 20px; }

/* ── 상단 배너 ─────────────────────────── */
main { margin-left: var(--sidebar-width); }
.banner {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 310px; padding: 50px 24px; background: #555 center / cover no-repeat; text-align: center;
}
.banner::before { content: ""; position: absolute; inset: 0; background: rgba(33, 33, 33, .5); }
.banner h1 {
  position: relative; margin: 0; color: #fff;
  font: 500 45pt/1.26 var(--font-heading); letter-spacing: -.5px;
}
.banner h1::after { content: ""; display: block; width: 100px; margin: 18px auto 0; border-bottom: 8px solid var(--accent); }

.page-body { max-width: 1032px; margin: 0 auto; padding: 0 60px 96px; }

/* ── 논문 목록 (연도별 접기) ────────────── */
.pub-year { margin-top: 60px; }
.pub-year:first-child { margin-top: 36px; }
.pub-year summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 0 48px 16px 0; border-bottom: 1px solid var(--rule);
}
.pub-year summary::-webkit-details-marker { display: none; }
.pub-year summary::after {
  content: ""; position: absolute; right: 12px; top: 14px; width: 24px; height: 24px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z'/%3E%3C/svg%3E") center / contain no-repeat;
  color: #555; transition: transform .2s;
}
.pub-year[open] summary::after { transform: rotate(180deg); }
.pub-year summary:focus-visible { outline: 2px solid var(--heading); outline-offset: 4px; }
.pub-year h2 { display: inline; margin: 0; color: var(--heading); font: 700 26pt/1.5 var(--font-heading); }
.pub-year ul { margin: 16px 0 0; padding: 0 0 0 20pt; list-style: square; font-family: Arial, sans-serif; }  /* 원본 논문 목록은 Arial */
.pub-year li { margin-top: 8px; line-height: 1.38; text-align: justify; }
.pub-year sup { font-size: .6em; line-height: 0; }  /* 위첨자가 줄 간격을 벌리지 않도록 */
.pub-year li a { color: inherit; }
.pub-year li a:hover { color: var(--heading); }

/* ── 구성원 (People) ───────────────────── */
.people-group > .person:first-child { margin-top: 24px; }
.group-title {
  margin: 32px 0 0; padding-left: 8px; color: var(--group);
  font: 700 36pt/1.56 var(--font-body);
}
.group-title + * { margin-top: 56px !important; }
.divider { margin: 40px 0 10px; border: 0; border-top: 1px solid rgba(0, 0, 0, .15); }

.person { display: grid; grid-template-columns: 1fr; gap: 30px; margin: 0 0 57px; }
.person.photo-small { grid-template-columns: 129px 1fr; }
.person.photo-large { grid-template-columns: 207px 1fr; }
.person-photo img { display: block; width: 100%; height: auto; }
.person-info, .alumnus { font: 14pt/1.38 Arial, sans-serif; color: #000; }
.person-name {
  margin: 14px 0 30px; color: var(--heading);
  font: 700 26pt/52px var(--font-name);
}
@media (min-width: 768px) {
  .person.photo-small .person-name,
  .person.photo-large .person-name { margin-top: -14px; }
}
.person-label { margin: 1.38em 0 0; font: 700 14pt/1.38 Arial, sans-serif; }
.person-name + .person-label { margin-top: 0; }
.person-since { font-size: .6em; }   /* 입학 연월: 이름과 같은 색·굵기, 크기만 작게 */
.person-keywords { margin: 6px 0 0; }
.person-text p { margin: 0; }
.photo-large .person-text p { margin-top: 16px; line-height: 1.2; }   /* 교수 학력: 줄 사이 간격 */
.person-list { margin: 6px 0 0; padding-left: 20px; list-style: square; }
.person-list li { margin-top: 6px; }
.person-lines { margin-top: 45px; }
.person-lines p { margin: 0 0 1.38em; }
.person-lines .line { display: block; }
.cols { display: inline-flex; width: 100%; vertical-align: top; }   /* 기간 | 내용: 내용이 줄바꿈돼도 열 유지 */
.period { flex: none; min-width: 7.4em; margin-right: .3em; }
.person-email { display: inline-block; margin-top: 1.38em; color: var(--text); }
.person-name + .person-email { margin-top: 0; }
.person-email:hover { color: var(--heading); }

.alumnus { margin: 0 0 62px 84px; padding-top: 14px; }
.alumnus:last-child { margin-bottom: 71px; }
.alumnus .person-name { margin: 0 0 29px; }
.alumnus .person-name strong { font-weight: 700; }
.alumnus .person-name { font-weight: 400; }
.alumnus .person-list { margin: 0; }

/* People 첫 페이지: 화면 전체 배너 + 하위 페이지 버튼 */
.banner { flex-direction: column; }
.banner-full { height: auto; min-height: 100vh; padding: 102px 24px 80px; }
.banner-full + .page-body { padding: 0; }
.hub { position: relative; display: flex; flex-direction: column; gap: 22px; width: min(444px, 100%); margin-top: 55px; }
.hub-button {
  display: block; padding: 6px 12px; border: 1px solid #fff; border-radius: 4px;
  color: #fff; font: 16px/22px var(--font-body); text-align: center; text-decoration: none;
}
.hub-button:hover, .hub-button:focus-visible { background: rgba(255, 255, 255, .15); }

/* ── 수상 (Award) ──────────────────────── */
.awards { padding-top: 31px; font: 16px/1.38 Arial, sans-serif; color: #000; }
.award-year { margin: 20px 0 0; font: 700 24px/1.38 Arial, sans-serif; }
.award-list { margin: 14px 0 0; padding-left: 20px; list-style: square; }
.award-list li + li { margin-top: 18px; }

/* ── 글 위주 페이지 (RESEARCH 등): 주제마다 왼쪽 제목·그림, 오른쪽 설명 ── */
.topic { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 34px; margin: 44px 0 80px; }
.topic.cols-1 { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.topic h2 { margin: 0 0 24px; color: var(--heading); font: 700 26pt/1.5 var(--font-name); }
.topic h2 small { font-size: 18pt; }   /* 제목 뒤 괄호 설명 */
.topic h3 { margin: 0 0 16px; color: var(--heading); font: 700 18pt/1.56 var(--font-heading); }
.topic p { margin: 0 0 16px; }
.topic ul { margin: 0 0 16px; padding-left: 20px; list-style: square; }
.topic li { margin-top: 8px; }
.topic .col > img { display: block; width: 100%; height: auto; }
.topic a { color: inherit; }
.topic a:hover { color: var(--heading); }

/* 이미지 슬라이드: 사진을 겹쳐 두고 하나만 보이게. 버튼·점은 site.js 가 만듭니다. */
.carousel { position: relative; display: grid; }
.carousel > img { grid-area: 1 / 1; width: 100%; height: auto; align-self: center; transition: opacity .6s; }
.carousel[style*="aspect-ratio"] { grid-template-rows: minmax(0, 1fr) auto; }   /* 원본 슬라이드 비율 유지 */
.carousel[style*="aspect-ratio"] > img { height: 100%; object-fit: contain; }
.carousel.ready > img:not(.active) { opacity: 0; pointer-events: none; }
.carousel-button {
  position: absolute; top: 44%; z-index: 2; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(32, 33, 36, .7); color: #fff; cursor: pointer; opacity: 0; transition: opacity .2s;
}
.carousel-button svg { width: 28px; height: 28px; fill: currentColor; vertical-align: middle; }
.carousel-button.prev { left: 10px; }
.carousel-button.next { right: 10px; }
.carousel:hover .carousel-button, .carousel:focus-within .carousel-button { opacity: 1; }
.carousel-dots { grid-area: 2 / 1; display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.carousel-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: #c7c7c7; cursor: pointer; }
.carousel-dots button[aria-current="true"] { background: #827153; }

/* ── 배너 없이 제목만 (CONTACT US) ────── */
.banner-none { height: auto; padding: 88px 24px 40px; background: none !important; }
.banner-none::before, .banner-none h1::after { display: none; }
.banner-none h1 { color: #0c343d; font: 700 60px/1.56 var(--font-body); }
.contact h2 { margin: 70px 0 20px; padding-left: 8px; color: var(--heading); font: 700 26pt/1.5 Arial, sans-serif; }
.contact .map { display: block; width: 100%; height: 411px; border: 0; }
.contact ul { margin: 16px 0 0; padding-left: 28px; list-style: square; font: 16px/1.56 Arial, sans-serif; }
.contact .indent { display: inline-block; padding-left: 14px; }

/* ── 메인: 첫 화면 ─────────────────────── */
.banner-hero { height: 100vh; min-height: 520px; padding: 40px 24px 210px; }
.banner-hero h1 { order: 2; font: 700 60px/1.26 var(--font-name); letter-spacing: 0; }
.banner-hero h1::after { margin-top: 16px; }
.hero-updated { order: 1; position: relative; margin: 0 0 24px; color: #666; font: 700 10pt/1.56 Arial, sans-serif; }
.hero-subtitle { order: 3; position: relative; margin: 22px 0 0; color: #fff; font: 32px/1.56 var(--font-name); }
.hero-subtitle strong { font-weight: 700; }
.hero-tagline { order: 4; position: relative; margin: 56px 0 0; color: #fff; font: 14pt/1.56 Arial, sans-serif; }
.scroll-down {
  position: absolute; bottom: 16px; left: 50%; width: 48px; height: 48px; margin-left: -24px;
  border: 0; background: none; color: #fff; cursor: pointer; opacity: .8;
}
.scroll-down svg { width: 40px; height: 40px; fill: currentColor; }

/* JOIN US */
.join { margin: 40px auto 0; text-align: center; color: var(--text); font: 14pt/1.56 var(--font-name); }
.join h2 { margin: 0 0 24px; color: var(--heading); font: 700 26pt/1.5 var(--font-name); }
.join p { margin: 0 0 12px; }
.join a { color: inherit; }

/* NEWS: background 가 있는 뉴스는 좌우 끝까지 색을 깔아 줍니다. */
.news-heading { margin: 64px 0 40px; padding-left: 8px; color: var(--text); font: 700 24px/1.56 Arial, sans-serif; }
.news-item { position: relative; padding: 32px 0 32px 84px; color: #000; font: 11pt/1.56 Arial, sans-serif; }
.news-item.has-photo { display: grid; grid-template-columns: 367px 1fr; gap: 20px; padding-left: 0; align-items: center; }
.news-item.has-photo img { width: 100%; height: auto; }
.news-item h3 { margin: 0 0 20px; color: var(--heading); font: 700 14pt/28px Arial, sans-serif; }
.news-item p { margin: 0 0 8px; text-align: justify; }
.news-item.bg-beige, .news-item.bg-brown { box-shadow: 0 0 0 100vmax var(--bleed); clip-path: inset(0 -100vmax); background: var(--bleed); }
.news-item.bg-beige { --bleed: #f7f4ee; }
.news-item.bg-beige h3 { color: #74664d; }
.news-item.bg-brown { --bleed: #827153; color: #fff; }
.news-item.bg-brown h3 { color: #fffaf1; }

/* RESEARCH 상세 페이지: 도입 + 세부 주제(번호, 설명, 그림, 관련 논문) */
.rs-intro { margin: 44px 0 16px; }
.rs-intro h2 { margin: 0 0 8px; color: var(--heading); font: 700 26pt/1.5 var(--font-name); }
.rs-intro h2 small { font-size: 18pt; }
.rs-intro > p { margin: 0 0 16px; text-align: justify; }
.rs-ko { color: #6a6a6a; font-weight: 700; }
.rs-topic { margin: 0; padding: 48px 0 8px; border-top: 1px solid rgba(0, 0, 0, .12); scroll-margin-top: 16px; }
.rs-intro + .rs-topic { margin-top: 36px; }
.rs-topic h3 { margin: 0 0 6px; color: var(--heading); font: 700 22pt/1.4 var(--font-heading); }
.rs-topic > p { margin: 0 0 16px; text-align: justify; }
.rs-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.rs-tags li { padding: 2px 10px; border-radius: 12px; background: #eef4f5; color: var(--group); font-size: 13px; }
.rs-figs { display: grid; grid-template-columns: minmax(0, 680px); justify-content: center; gap: 24px; margin: 24px 0; }
.rs-figs-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.rs-figs figure { margin: 0; }
.rs-figs img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: contain; background: #fff; }
.rs-figs figcaption { margin-top: 8px; color: #555; font-size: 14px; line-height: 1.5; }

/* 404 페이지 */
.not-found { margin: 48px 0; font-size: 18px; text-align: center; }
.not-found a { color: var(--heading); }

/* ── 검색 ─────────────────────────────── */
.search-button {
  position: absolute; top: 12px; right: 14px; z-index: 90; width: 40px; height: 40px;
  border: 0; background: none; color: #fff; cursor: pointer; opacity: .85;
}
.search-button svg { width: 26px; height: 26px; fill: currentColor; }
body:has(.banner-none) .search-button { color: #6a6a6a; }   /* 배너 없는 페이지: 흰 배경 위 아이콘 */
.search-dialog {
  width: min(720px, 90vw); max-height: 80vh; margin: 8vh auto auto; padding: 32px;
  border: 0; border-radius: 4px; box-shadow: 0 12px 60px #0004; font-family: var(--font-body);
}
.search-dialog::backdrop { background: #0008; }
.search-close { float: right; border: 0; background: none; font-size: 28px; cursor: pointer; }
.search-dialog label { display: block; margin-bottom: 20px; font-size: 22px; }
.search-dialog input { width: 100%; padding: 13px; border: 1px solid #999; font: inherit; }
.search-result { display: block; padding: 18px 0; border-bottom: 1px solid #ddd; color: #233e59; text-decoration: none; }
.search-result p { margin: 7px 0 0; color: #666; font-size: 14px; line-height: 1.6; }

/* ── 모바일 ───────────────────────────── */
.menu-button { display: none; }
@media (max-width: 767px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s; box-shadow: 4px 0 16px #0002; }
  .nav-open .sidebar { transform: none; }
  main { margin-left: 0; }
  .menu-button {
    display: block; position: fixed; top: 12px; left: 14px; z-index: 110; width: 40px; height: 40px;
    border: 0; border-radius: 3px; background: #fffe; color: #34495e; cursor: pointer;
  }
  .menu-button svg { width: 24px; height: 24px; fill: currentColor; }
  .banner { height: 280px; padding: 45px 24px; }
  .banner h1 { font-size: 38pt; }
  .page-body { padding: 8px 20px 64px; }
  .pub-year h2 { font-size: 23pt; }
  .pub-year li { text-align: left; overflow-wrap: anywhere; }
  .person.photo-small, .person.photo-large { grid-template-columns: 1fr; gap: 16px; }
  .person-photo:empty { display: none; }
  .person.photo-small .person-photo img { width: 160px; }
  .person.photo-large .person-photo img { width: 207px; }
  .person-name { margin-top: 0; font-size: 22pt; line-height: 1.4; }
  .group-title { font-size: 26pt; padding-left: 0; }
  .alumnus { margin-left: 0; }
  .alumnus .person-name { margin-bottom: 16px; }
  .person-info, .alumnus { overflow-wrap: anywhere; }
  .banner-full { padding: 90px 16px 60px; }
  .topic, .topic.cols-1 { grid-template-columns: 1fr; gap: 20px; margin: 32px 0 48px; }
  .topic h2, .join h2 { font-size: 22pt; }
  .news-item, .news-item.has-photo { display: block; padding-left: 0; }
  .news-item.has-photo img { margin-bottom: 16px; }
  .news-item p { text-align: left; }
  .banner-hero h1 { font-size: 44px; }
  .hero-subtitle { font-size: 22px; }
  .banner-none h1 { font-size: 40px; }
  .banner-none { padding-top: 72px; }
  .contact h2 { margin-top: 32px; font-size: 20pt; padding-left: 0; }
  .contact .map { height: 300px; }
  .join { font-size: 12pt; }
  .rs-intro { margin-top: 32px; }
  .rs-intro h2 { font-size: 22pt; }
  .rs-intro > p, .rs-topic > p { text-align: left; }
  .rs-topic { padding-top: 36px; }
  .rs-topic h3 { font-size: 18pt; }
  .rs-figs-2 { grid-template-columns: 1fr; }
}
@media (max-width: 479px) {
  .banner { height: 250px; padding: 40px 16px; }
  .banner h1 { font-size: 30pt; }
  .pub-year h2 { font-size: 20pt; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sidebar, .nav-toggle svg, .pub-year summary::after { transition: none; }
}
