/* OEN Lab site styles
   Change the whole site's look here: fonts, colors, spacing. */
:root {
  --navy: #193888;        /* headings, menu bar (favicon blue) */
  --link: #2655CF;        /* links */
  --ink: #1A1D23;         /* body text */
  --muted: #5A6372;       /* secondary text */
  --rule: #DDE2E9;        /* lines */
  --soft: #F4F6F9;        /* light backgrounds */
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --wrap: 980px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.7; color: var(--ink); background: #fff; word-break: keep-all; overflow-wrap: break-word; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { color: var(--navy); line-height: 1.3; letter-spacing: -0.01em; }
h1 { font-size: 26px; margin: 8px 0 20px; padding-bottom: 10px; border-bottom: 1px solid var(--navy); }
h2 { font-size: 22px; margin: 44px 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--navy); }
h3 { font-size: 18px; margin: 28px 0 8px; }
p { margin: 0 0 16px; }
/* Paragraphs use the full page width so their right edge lines up with headings, boxes and the slideshow. */
main p.lead { font-size: 18.5px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

/* Header and menu */
.site-header { border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: center; position: relative; padding-top: 26px; padding-bottom: 18px; }
.site-title { font-size: 28px; font-weight: 700; color: var(--ink); text-align: center; letter-spacing: -0.02em; line-height: 1.3; }
.site-title:hover { text-decoration: none; }
.site-title-ko { display: block; font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 2px; }
.nav-toggle { display: none; position: absolute; right: 16px; top: 50%; transform: translateY(-40%); width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.site-nav { background: var(--navy); }
.site-nav ul { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; margin: 0 auto; padding-top: 0; padding-bottom: 0; }
.site-nav a { display: block; padding: 12px 20px; color: #fff; font-weight: 600; font-size: 20px; }
.site-nav a:hover { background: rgba(255,255,255,0.12); text-decoration: none; }
.site-nav a[aria-current="page"] { background: rgba(255,255,255,0.2); }

main.wrap { padding-top: 32px; padding-bottom: 56px; min-height: 50vh; }

/* Footer */
.site-footer { border-top: 1px solid var(--navy); padding: 22px 0 28px; }
.footer-inner { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.footer-emblem { width: 64px; height: 64px; border-radius: 12px; display: block; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); border: 1px solid var(--rule); border-radius: 10px; }
.footer-social a:hover { color: var(--navy); border-color: var(--navy); }
.footer-copy { font-size: 13px; color: var(--muted); margin-top: 14px; text-align: center; }

/* Home slideshow */
.slideshow { position: relative; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--rule); }
.slides { position: relative; aspect-ratio: 2.7 / 1; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 2s ease-in-out; display: flex; align-items: center; justify-content: center; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: contain; }
.slide-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.85); color: var(--navy); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.slide-btn.prev { left: 10px; } .slide-btn.next { right: 10px; }
.dots { display: flex; justify-content: center; gap: 4px; padding: 6px 0 8px; }
.dots button { width: 28px; height: 28px; border: 0; background: none; cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; }
.dots button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #C9D0DA; }
.dots button[aria-current="true"]::before { background: var(--navy); }

.recruit { margin-top: 40px; padding: 26px 28px; border: 1px solid var(--rule); border-radius: 14px; background: var(--soft); }
.recruit h2 { margin-top: 0; border: 0; padding: 0; }
.recruit .buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 22px; }
.recruit ul { margin: 10px 0 0; padding-left: 20px; }
.recruit li { margin-bottom: 10px; }
.recruit li span { display: block; color: var(--muted); font-size: 15.5px; }
.button { display: inline-block; background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.button:hover { text-decoration: none; background: #122a68; }

/* Research */
.fig { margin: 24px auto; text-align: center; }
.fig img { margin: 0 auto; }
.research-fig { margin-left: auto; margin-right: auto; }  /* text is full width now, so center on the page */
.research-fig img, .research-fig .fig-overlay { max-width: 600px; width: 100%; }
.fig-overlay { position: relative; display: inline-block; max-width: 100%; }
.fig-overlay video { position: absolute; left: 1.7%; top: 7.3%; width: 18.9%; height: auto; }
h2.topic { font-size: 21px; border-bottom: 0; padding-bottom: 0; margin: 56px 0 10px; }
.reading { margin: 8px 0 32px; padding-left: 20px; }

/* People */
.prof { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.prof-info { flex: 1 1 380px; }
.prof-info .name { font-size: 22px; font-weight: 700; margin: 0 0 12px; }
.prof-info p { margin: 0 0 6px; }
.prof-photo { flex: 0 0 190px; }
.prof-photo img { width: 190px; border-radius: 10px; }
.bio { margin-top: 22px; }
.students { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; list-style: none; padding: 0; margin: 0; }
.student { text-align: center; font-size: 15.5px; line-height: 1.55; }
.student img { width: 150px; height: 190px; object-fit: cover; border-radius: 10px; margin: 0 auto 12px; }
.student .sname { font-weight: 700; display: block; font-size: 16.5px; }
.student .note { font-size: 14px; color: var(--muted); }
.alumni { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.alumni td { padding: 9px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.alumni td:first-child { font-weight: 600; }
.alumni td:nth-child(2) { white-space: nowrap; color: var(--muted); }

/* Publications */
.subnav { display: flex; gap: 8px; margin: 0 0 24px; flex-wrap: wrap; }
.subnav a { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--rule); color: var(--ink); font-weight: 600; font-size: 15px; }
.subnav a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.subnav a:hover { text-decoration: none; border-color: var(--navy); }
.year { font-size: 20px; margin: 40px 0 6px; }
.pubs { list-style: none; padding: 0; margin: 0; }
.pub { padding: 18px 0 24px; border-bottom: 1px solid var(--rule); }
.pub .ptitle { font-weight: 700; font-size: 17px; line-height: 1.5; }
.pub .pauthors { font-size: 15.5px; color: var(--muted); margin-top: 4px; }
.pub .pvenue { font-size: 15.5px; margin-top: 2px; font-style: italic; }
.pub .pfig { margin-top: 14px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: center; }
.pub .pfig img, .pub .pfig video { max-height: 320px; width: auto; max-width: 100%; border-radius: 6px; }
/* Size editor (journals.html?size) */
.fs-box { flex-basis: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 13px; color: var(--muted); }
.fs-box input { width: 260px; }
.fs-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 16px; background: var(--navy); color: #fff; font-size: 14px; display: flex; gap: 12px; align-items: center; justify-content: center; }
.fs-bar button { font: inherit; padding: 6px 12px; border-radius: 6px; border: 0; cursor: pointer; }
.conf .ptitle { font-weight: 600; }

/* Photos, notes, contact */
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; max-width: 520px; }
.link-list a { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 1px solid var(--rule); border-radius: 12px; color: var(--ink); font-weight: 600; }
.link-list a:hover { border-color: var(--navy); text-decoration: none; }
.link-list svg { flex: 0 0 auto; color: var(--navy); }
.course { margin-bottom: 28px; }
.course ul { padding-left: 20px; margin: 8px 0; }
.course li { margin-bottom: 4px; }
.places { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.place { padding: 20px 22px; border: 1px solid var(--rule); border-radius: 12px; }
.place p { margin: 2px 0 10px; }
.place h3 { margin-top: 0; }

/* Lecture notes */
.note-body { max-width: 760px; }
.note-body .eq { overflow-x: auto; margin: 12px 0 18px; }
.note-body figure { margin: 18px 0; }
.note-body figure img { margin: 0 auto; }
.note-body figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 6px; }
.note-body pre { background: var(--soft); padding: 14px 16px; border-radius: 8px; overflow-x: auto; font-size: 14px; line-height: 1.5; }
.note-body table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
.note-body th, .note-body td { border: 1px solid var(--rule); padding: 10px 12px; vertical-align: top; }
.note-body th { background: var(--soft); color: var(--navy); }
.crumb { font-size: 14px; margin-bottom: 6px; }

/* Phones and small tablets */
@media (max-width: 760px) {
  body { font-size: 16px; }
  main p.lead { font-size: 16.5px; }
  .header-inner { justify-content: flex-start; padding-right: 72px; padding-top: 16px; padding-bottom: 14px; }
  .site-title { font-size: 18px; text-align: left; }
  .site-title-ko { font-size: 13px; }
  .nav-toggle { display: flex; }
  .site-nav { display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 6px 0; }
  .site-nav a { padding: 12px 20px; font-size: 17px; }
  h1 { font-size: 22px; }
  .students { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .student img { width: 120px; height: 152px; }
  .prof-photo, .prof-photo img { width: 160px; flex-basis: 160px; }
  .places { grid-template-columns: 1fr; }
  .alumni td { display: block; border: 0; padding: 0 4px; }
  .alumni tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--rule); }
  .alumni td:nth-child(2) { white-space: normal; }
  .slide-btn { display: none; }
  .dots button { width: 34px; height: 34px; }
  .student a { font-size: 13.5px; }
  .recruit { padding: 20px; }
}
