@font-face {
  font-family: 'Pretendard Variable';
  font-style: normal;
  font-weight: 45 920;
  font-display: swap;
  src: url('../PretendardVariable.woff2') format('woff2');
}

:root {
  --page-font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
    'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}

body {
  font-family: 'Noto Sans', sans-serif;
}

html[lang="ko"] body {
  font-family: var(--page-font);
  font-size: 1rem;
  line-height: 1.75;
  color: #3f4650;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }
html[lang="ko"] body { word-break: keep-all; overflow-wrap: anywhere; }
html[lang="ko"] .publication-title { word-break: keep-all; overflow-wrap: normal; }
html[lang="ko"] .has-text-justified { text-align: left !important; }
.navbar { min-height: 3.5rem; }
.navbar-brand .navbar-burger { margin-left: 0; border: 0; background: transparent; }
.language-switch {
  position: absolute;
  right: 1rem;
  top: 0.65rem;
  z-index: 30;
  display: flex;
  padding: 3px;
  gap: 2px;
  border: 1px solid #dbdbdb;
  border-radius: 999px;
  background: #fff;
}
.language-switch button {
  border: 0;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: transparent;
  color: #555;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.language-switch button[aria-pressed="true"] { background: #363636; color: #fff; }
.language-switch button:focus-visible { outline: 2px solid #209cee; outline-offset: 2px; }


.footer .icon-link {
    font-size: 25px;
    color: #000;
}

.link-block a {
    margin-top: 5px;
    margin-bottom: 5px;
}

.dnerf {
  font-variant: small-caps;
}


.teaser .hero-body {
  padding-top: 0;
  padding-bottom: 3rem;
}

.teaser {
  font-family: 'Google Sans', sans-serif;
}


.publication-title {
}

.publication-banner {
  max-height: parent;

}

.publication-banner video {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  object-fit: fit;
}

.publication-header .hero-body {
}

.publication-title {
    font-family: 'Google Sans', sans-serif;
}

.publication-authors {
    font-family: 'Google Sans', sans-serif;
}

.publication-venue {
    color: #555;
    width: fit-content;
    font-weight: bold;
}

.publication-awards {
    color: #ff3860;
    width: fit-content;
    font-weight: bolder;
}

.publication-authors {
}

.publication-authors a {
   color: hsl(204, 86%, 53%) !important;
}

.publication-authors a:hover {
    text-decoration: underline;
}

.author-block {
  display: inline-block;
}

.publication-banner img {
}

.publication-authors {
  /*color: #4286f4;*/
}

.publication-video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;

    overflow: hidden;
    border-radius: 10px !important;
}

.publication-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.publication-body img {
}

.results-carousel {
  overflow: hidden;
}

.results-carousel .item {
  margin: 5px;
  overflow: hidden;
  border: 1px solid #bbb;
  border-radius: 10px;
  padding: 0;
  font-size: 0;
}

.results-carousel video {
  margin: 0;
}


.interpolation-panel {
  background: #f5f5f5;
  border-radius: 10px;
}

.interpolation-panel .interpolation-image {
  width: 100%;
  border-radius: 5px;
}

.interpolation-video-column {
}

.interpolation-panel .slider {
  margin: 0 !important;
}

.interpolation-panel .slider {
  margin: 0 !important;
}

#interpolation-image-wrapper {
  width: 100%;
}

#interpolation-image-wrapper img {
  border-radius: 5px;
}

/* ── Principle toggle ─────────────────────────────── */
.research-toggle {
  border: 1.5px solid #dbdbdb;
  border-radius: 12px;
  overflow: hidden;
}

.research-toggle > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.4rem;
  cursor: pointer;
  user-select: none;
  list-style: none;
  background-color: #f8f8f8;
  transition: background-color 0.2s ease;
}

.research-toggle > summary::-webkit-details-marker { display: none; }

.research-toggle > summary:hover {
  background-color: #efefef;
}

.principle-label {
  font-family: 'Google Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #363636;
  letter-spacing: 0.01em;
}

.principle-icon {
  font-size: 0.9rem;
  color: #888;
  transition: transform 0.3s ease;
}

.research-toggle[open] > summary .principle-icon {
  transform: rotate(180deg);
}

.principle-content {
  padding: 0 1.2rem 1.2rem;
  animation: fadeSlideIn 0.3s ease;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Math / Equation block ───────────────────────── */
.math-block {
  background: #f5f7fa;
  border-left: 4px solid hsl(204, 86%, 53%);
  border-radius: 8px;
  padding: 1.4rem 1.8rem;
  margin: 1.5rem 0;
}

.math-title {
  font-family: 'Google Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #363636;
  margin-bottom: 0.7rem;
}

.math-desc {
  font-family: 'Noto Sans', sans-serif;
  font-size: 0.95rem;
  color: #4a4a4a;
  line-height: 1.65;
  margin-bottom: 0.5rem;
}

.math-eq {
  text-align: center;
  margin: 0.9rem 0;
  font-size: 1.05rem;
  overflow-x: auto;
}

/* Rollout and data collection chapters */
.research-section {
  padding: 1rem 1.5rem;
}

.demo-video {
  margin: 1.5rem 0;
}

video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: #111;
}

.demo-video figcaption {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.95rem;
  color: #4a4a4a;
}

.preview-note {
  color: #666;
  font-size: 0.85rem;
}

.section-intro {
  margin: 1.25rem 0;
  line-height: 1.65;
}

.research-toggle > summary:focus-visible {
  outline: 3px solid hsl(204, 86%, 53%);
  outline-offset: -3px;
}

@media screen and (max-width: 600px) {
  .publication-title.title {
    font-size: 2rem;
  }
  .math-block {
    padding: 1rem;
  }
}

.publication-subtitle {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.6em;
  font-weight: 500;
  line-height: 1.3;
}

/* Typography refinements apply only to the Korean page. */
html[lang="ko"] .title,
html[lang="ko"] .subtitle,
html[lang="ko"] .teaser,
html[lang="ko"] .publication-title,
html[lang="ko"] .publication-authors,
html[lang="ko"] .principle-label,
html[lang="ko"] .math-title,
html[lang="ko"] .math-desc,
html[lang="ko"] button {
  font-family: var(--page-font);
}

html[lang="ko"] .title {
  color: #252c35;
  font-weight: 650;
  letter-spacing: -0.025em;
}

html[lang="ko"] .publication-title.title {
  max-width: 860px;
  margin: 0 auto 1.4rem;
  font-size: clamp(1.85rem, 3.3vw, 2.75rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

html[lang="ko"] .publication-subtitle {
  margin-top: 0.75rem;
  font-size: clamp(1rem, 1.65vw, 1.25rem);
  font-weight: 450;
  line-height: 1.55;
  letter-spacing: -0.015em;
  color: #626b76;
}

html[lang="ko"] .publication-authors.is-size-5 {
  font-size: 1.05rem !important;
  line-height: 1.65;
  font-weight: 400;
}

html[lang="ko"] .publication-authors + .publication-authors {
  margin-top: 0.35rem;
  font-size: 0.95rem !important;
  color: #69717c;
}

html[lang="ko"] .title.is-3 { font-size: 1.75rem; line-height: 1.4; margin-bottom: 1rem; }
html[lang="ko"] .title.is-4 { font-size: 1.4rem; line-height: 1.45; }
html[lang="ko"] .content .is-size-5 { font-size: 1.05rem !important; line-height: 1.75; color: #5c6570; }
html[lang="ko"] .content.has-text-justified { text-align: left !important; line-height: 1.85; }
html[lang="ko"] .content.has-text-justified p:not(:last-child) { margin-bottom: 1rem; }
html[lang="ko"] .content strong { font-weight: 600; color: #303944; }

html[lang="ko"] .demo-video figcaption,
html[lang="ko"] .subtitle.is-size-6 {
  font-size: 0.925rem !important;
  line-height: 1.7;
  letter-spacing: -0.01em;
  color: #606975;
}
html[lang="ko"] .principle-label { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.015em; }
html[lang="ko"] .math-title { font-size: 1.05rem; font-weight: 600; }
html[lang="ko"] .math-desc { font-size: 0.975rem; line-height: 1.8; }
html[lang="ko"] .dnerf { font-variant: normal; }

@media screen and (max-width: 600px) {
  html[lang="ko"] .hero > .hero-body { padding: 2.4rem 1.5rem 1.5rem; }
  html[lang="ko"] .publication-title.title { font-size: 1.85rem; }
  html[lang="ko"] .publication-authors.is-size-5 { font-size: 0.975rem !important; }
  html[lang="ko"] .title.is-3 { font-size: 1.5rem; }
  html[lang="ko"] .content .is-size-5 { font-size: 1rem !important; }
  html[lang="ko"] .content.has-text-justified { font-size: 0.975rem; line-height: 1.85; }
}
