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


.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;
  padding: 20px;
  font-size: 0;
}

.results-carousel video {
  margin: 0;
}

.slider-pagination .slider-page {
  background: #000000;
}

.eql-cntrb { 
  font-size: smaller;
}




/* ---------- Paper figures and tables ---------- */
.paper-figure {
  margin: 2rem auto;
}

.paper-figure img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}

.paper-figure figcaption,
.paper-table .table-title,
.paper-table .table-note {
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: justify;
}

.paper-figure figcaption {
  margin-top: 0.75rem;
}

.paper-table {
  margin: 2rem auto;
}

.paper-table .table-title {
  margin-bottom: 0.5rem;
  text-align: center;
}

.paper-table .table {
  font-size: 0.9rem;
}

.paper-table .table-group th {
  text-align: center;
  background: #f0f0f0;
}

.paper-table .is-selected-row td {
  background: #fff8e6;
}

.paper-table .table-note {
  font-size: 0.85rem;
  color: #555;
}

.paper-table.is-compact {
  max-width: 560px;
}

/* Single-column paper figures: keep them at a readable size */
.paper-figure.is-narrow {
  max-width: 640px;
}

.paper-table a {
  color: hsl(204, 86%, 53%);
}

.paper-table sup {
  line-height: 0;
}

/* Keep wide tables scrolling inside the page on small screens */
.hero > .container {
  width: 100%;
}

/* Wide tables scroll sideways on phones instead of squashing */
.paper-table:not(.is-compact) .table {
  min-width: 640px;
}

/* ---------- Project video ---------- */
/* .publication-video keeps the 16:9 space in the page; the player inside it
   can lift out into a larger, centred view over the dimmed backdrop. */
.project-player {
  position: absolute;
  inset: 0;
  background: #0b1220;
  border-radius: 10px;
  overflow: hidden;
  container-type: inline-size; /* caption text scales with the player width */
}

.project-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* captions are drawn here (not by the browser) so they sit above the buttons */
.project-captions {
  position: absolute;
  left: 50%;
  bottom: 3.6rem;
  transform: translateX(-50%);
  max-width: 72%;
  padding: 0.3em 0.7em;
  border-radius: 6px;
  background: rgba(8, 17, 32, 0.78);
  color: #fff;
  font-family: 'Noto Sans', sans-serif;
  font-size: clamp(12px, 2.1cqw, 26px);
  line-height: 1.35;
  text-align: center;
  pointer-events: none;
}

.project-captions:empty {
  display: none;
}

.publication-video:has(.project-player.is-expanded) {
  overflow: visible;
}

.project-player.is-expanded {
  position: fixed;
  inset: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1001;
  width: min(94vw, calc(88vh * 16 / 9));
  aspect-ratio: 16 / 9;
  box-shadow: 0 28px 60px rgba(8, 17, 32, 0.35);
}

/* captions button: dimmed and struck through while captions are off */
.viewer-btn.is-off,
.viewer-btn.is-off:hover {
  position: relative;
  color: #a0a0a0;
}

.viewer-btn.is-off::after {
  content: "";
  position: absolute;
  width: 60%;
  height: 2px;
  background: #a0a0a0;
  transform: rotate(-45deg);
}

/* ---------- Layout: full-width sections + per-section side panels ---------- */
.page-layout {
  max-width: 1280px;
  padding: 0 1.5rem 2rem;
}

.main-block {
  padding: 2.5rem 1.5rem;
}

.main-block.is-light {
  background: #f5f5f5;
  border-radius: 10px;
}

.side-panel {
  position: sticky;
  top: 1.5rem;
  margin-top: 1.5rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
}

.side-panel model-viewer {
  display: block;
  width: 100%;
  height: 420px;
  background: #f5f5f5;
  border-radius: 8px;
}

.model-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 420px;
  background: #f5f5f5;
  border: 2px dashed #c8c8c8;
  border-radius: 8px;
  color: #777;
  font-family: 'Google Sans', sans-serif;
}

/* Sections without a side panel: keep text at a readable width */
.main-block.is-full > * {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.panel-group {
  margin-top: 0;
  margin-bottom: 0;
}

.side-note {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #777;
  text-align: center;
}

/* Below desktop width: stack, with each panel at the top of its sections */
@media screen and (max-width: 1023px) {
  .panel-group {
    display: flex;
    flex-direction: column;
  }

  .side-column {
    order: -1;
  }

  .side-panel {
    position: relative; /* not sticky; still anchors the expand button */
  }

  .side-panel model-viewer,
  .model-placeholder {
    height: 320px;
  }
}

/* ---------- 3D viewer buttons ---------- */
.viewer-controls {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  display: flex;
  gap: 0.4rem;
}

.viewer-btn {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d5d5d5;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #444;
  cursor: pointer;
}

.viewer-btn:hover {
  background: #fff;
  color: #000;
}

.viewer-wrap {
  position: relative;
}

/* ---------- Squat panel: shorter 3D view + live knee moment plot ---------- */
/* (kept short so the whole panel fits on a ~680 px tall laptop viewport) */
.side-panel model-viewer.is-short {
  height: 320px;
}

.motion-plot {
  margin-top: 0.75rem;
}

.motion-plot .plot-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #363636;
  text-align: center;
}

.motion-plot canvas {
  display: block;
  width: 100%;
  height: 140px;
}

.motion-plot .plot-readout {
  font-size: 0.8rem;
  color: #555;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ---------- Results panel: experiment video + tabbed live plot ---------- */
.trial-video {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: contain; /* square clip, never cropped */
  background: #f5f5f5;
  border-radius: 8px;
}

.plot-tabs {
  margin: 0.75rem 0 0.25rem;
}

.plot-legend {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: #555;
}

.plot-legend .swatch {
  display: inline-block;
  width: 18px;
  margin-right: 0.35rem;
  vertical-align: middle;
  border-top: 2px solid var(--swatch);
}

.plot-legend .swatch.is-dashed {
  border-top-style: dashed;
}

.motion-plot canvas.is-compact {
  height: 120px;
}

/* ---------- Institution + lab logos (header) ---------- */
.org-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.75rem;
}

.org-logos img {
  display: block;
  width: 56px;
  height: 56px;
}

/* ---------- Gradient banner (header), styled after Changseob's page ---------- */
.project-hero {
  position: relative;
  background:
    radial-gradient(circle at 15% 15%, rgba(34, 211, 238, 0.16), transparent 22%),
    radial-gradient(circle at 85% 20%, rgba(99, 102, 241, 0.18), transparent 25%),
    linear-gradient(135deg, #081120 0%, #0f172a 45%, #172554 100%);
  color: #fff;
}

/* Soft fade from the banner into the white page */
.project-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 90px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(255, 255, 255, 1) 100%);
  pointer-events: none;
}

.project-hero .hero-body {
  position: relative;
  z-index: 1;
  padding-top: 4rem;
  padding-bottom: 6rem;
}

.project-hero .publication-title {
  color: #fff;
}

.project-hero .publication-authors {
  color: rgba(255, 255, 255, 0.88);
}

.project-hero .publication-authors a {
  color: #22d3ee !important;
}

.project-hero .publication-authors a:hover {
  color: #fff !important;
}

.project-hero .button.is-dark {
  background: #fff;
  color: #0f172a;
}

.project-hero .button.is-dark:hover {
  background: #e2e8f0;
}

/* Black logo shown in white on the dark banner */
.project-hero .org-logos img.is-mono {
  filter: invert(1);
}

/* Smaller title on phones so long words don't break mid-word */
@media screen and (max-width: 768px) {
  .publication-title.title.is-1 {
    font-size: 1.9rem;
  }

  .project-hero .hero-body {
    padding-top: 2.5rem;
    padding-bottom: 5rem;
  }
}

/* ---------- BibTeX block ---------- */
.bibtex-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.bibtex-header .title {
  margin-bottom: 0 !important;
}

/* Keep each BibTeX line on one line; scroll sideways if it is too long */
#BibTeX pre {
  white-space: pre;
  overflow-x: auto;
}

/* ---------- Expandable side panels ---------- */
/* Keep panel titles clear of the expand button */
.side-panel > h3.title {
  padding: 0 2rem;
  font-size: 1.15rem;
}

.panel-expand {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d5d5d5;
  border-radius: 8px;
  background: #fff;
  color: #444;
  cursor: pointer;
}

.panel-expand:hover {
  background: #f5f5f5;
  color: #000;
}

.panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(8, 17, 32, 0.6);
}

body.has-expanded-panel {
  overflow: hidden;
}

/* The expanded panel: centred, large, content stacked with the viewer filling the space */
.side-panel.is-expanded {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1001;
  width: min(94vw, 1100px);
  height: 92vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
  box-shadow: 0 28px 60px rgba(8, 17, 32, 0.35);
}

.side-panel.is-expanded > * {
  flex-shrink: 0;
}

.side-panel.is-expanded .viewer-wrap {
  flex: 1 1 auto;
  min-height: 280px;
}

.side-panel.is-expanded model-viewer,
.side-panel.is-expanded model-viewer.is-short,
.side-panel.is-expanded .trial-video {
  height: 100%;
}

.side-panel.is-expanded .motion-plot canvas,
.side-panel.is-expanded .motion-plot canvas.is-compact {
  height: 200px;
}
