/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAUi-qNiXg7eU0.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAXC-qNiXg7Q.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_FQftx9897sxZ.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_Gwftx9897g.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjxAwXiWtFCfQ7A.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjx4wXiWtFCc.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwaPGQ3q5d0N7w.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwiPGQ3q5d0.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

a {
  color: #1772d0;
  text-decoration: none;
}

a:focus,
a:hover {
  color: #f09228;
  text-decoration: none;
}

body,
td,
th,
tr,
p,
a {
  font-family: 'Lato', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', Verdana, Helvetica, sans-serif;
  font-size: 14px;
}

strong {
  font-family: 'Lato', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', Verdana, Helvetica, sans-serif;
  font-size: 14px;
}

h2 {
  margin: 0;
  font-weight: normal;
  font-family: 'Lato', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', Verdana, Helvetica, sans-serif;
  font-size: 22px;
}

.papertitle {
  font-family: 'Lato', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', Verdana, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.name {
  padding-top: 20px;
  margin: 0;
  font-family: 'Lato', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', Verdana, Helvetica, sans-serif;
  font-size: 32px;
}

.one {
  width: 160px;
  height: 160px;
  position: relative;
}

.two {
  width: 160px;
  height: 160px;
  position: absolute;
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

.fade {
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

span.highlight {
  background-color: #ffffd0;
}

.colored-box {
    color: black;
    padding: 20px;
    display: inline-block;
    border-radius: 10px;
}

/* ===================== Language toggle (ko / en) ===================== */
/* Each translatable block carries lang="ko" or lang="en"; <html lang> decides which one is shown. */
html[lang="ko"] [lang="en"] { display: none !important; }
html[lang="en"] [lang="ko"] { display: none !important; }

html[lang="ko"] body { word-break: keep-all; }

.lang-switch {
  display: inline-flex;
  border: 1px solid #c8cdd8;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.lang-switch button {
  font-family: 'Lato', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', Verdana, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1;
  padding: 6px 12px;
  border: 0;
  background: transparent;
  color: #555;
  cursor: pointer;
}

.lang-switch button + button { border-left: 1px solid #c8cdd8; }

.lang-switch button[aria-pressed="true"] {
  background: #1e2a78;
  color: #fff;
  cursor: default;
}

.lang-switch button:not([aria-pressed="true"]):hover { color: #f09228; }

/* ===================== Publications ===================== */
.pub-group {
  margin: 14px 16px 0 16px;
  font-size: 16px;
  font-weight: 700;
  color: #333;
}

.paper-subtitle {
  font-size: 13px;
  color: #666;
}

.paper-status {
  font-size: 12px;
  color: #8a4b00;
  background: #fff4e5;
  border-radius: 4px;
  padding: 1px 6px;
}

.paper-desc {
  margin: 8px 0 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: #444;
}


/* ===================== Paper page viewer ===================== */
.paper-viewer {
  border: 1px solid #c8cdd8;
  border-radius: 6px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.paper-viewer a { display: block; }

.paper-viewer-page {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 1px solid #e3e6ec;
  background: #fff;
}

.paper-viewer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 12px;
  color: #555;
}

.paper-viewer-nav button {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1;
  width: 26px;
  height: 22px;
  padding: 0;
  border: 1px solid #c8cdd8;
  border-radius: 4px;
  background: #f7f8fa;
  color: #333;
  cursor: pointer;
}

.paper-viewer-nav button:hover:not(:disabled) { color: #f09228; border-color: #f09228; }

.paper-viewer-nav button:disabled { opacity: 0.35; cursor: default; }


/* ===================== Zoom button & lightbox ===================== */
.paper-thumb { position: relative; }
.paper-thumb img { display: block; }

.zoom-btn {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #c8cdd8;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #333;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.zoom-btn:hover { color: #f09228; border-color: #f09228; }

/* 뷰어 안에서는 nav 줄에 인라인으로 배치 */
.zoom-btn-inline {
  position: static;
  width: 26px;
  height: 22px;
  border-radius: 4px;
  background: #f7f8fa;
  box-shadow: none;
  margin-left: 4px;
}

.paper-viewer-nav .paper-viewer-count { flex: 1; text-align: center; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: min(92vw, 1200px);
  max-height: 92vh;
  width: auto;
  height: auto;
  background: #fff;
  border: 2px solid #fff;
  border-radius: 4px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.lightbox button {
  position: absolute;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #222;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  width: 44px;
  height: 44px;
}

.lightbox button:hover:not(:disabled) { color: #f09228; }
.lightbox button:disabled { opacity: 0.3; cursor: default; }

.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }

.lightbox-count {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 13px;
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 10px;
  border-radius: 999px;
}

.lightbox[hidden],
.lightbox [hidden] { display: none !important; }

body.lightbox-open { overflow: hidden; }
