body {
  font-family: 'Noto Sans', Arial, sans-serif;
  color: #222;
}

.publication-title {
  font-family: 'Google Sans', 'Noto Sans', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 0.7rem;
}

.publication-venue {
  margin-top: 0.25rem;
  margin-bottom: 1.15rem;
  color: #555;
  font-weight: 500;
}

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

.publication-authors a {
  color: #3273dc;
}

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

.publication-affiliation {
  margin-top: 0.45rem;
  color: #444;
}

.logo-row {
  margin-top: 1.2rem;
  margin-bottom: 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.school-logo {
  max-height: 72px;
  max-width: 420px;
  object-fit: contain;
}

.publication-links {
  margin-top: 1.25rem;
}

.publication-links .link-block {
  display: inline-block;
  margin: 0.25rem;
}

.button.is-dark {
  background-color: #363636;
}

.button.is-dark:hover {
  background-color: #222;
}

.hero {
  background-color: #ffffff;
}

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

.section {
  padding-top: 2.45rem;
  padding-bottom: 2.45rem;
}

.teaser-section {
  padding-top: 1rem;
  padding-bottom: 2.1rem;
}

.teaser-image {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  border-radius: 4px;
}

.teaser-caption {
  max-width: 980px;
  margin: 1.1rem auto 0 auto;
  font-size: 1.15rem;
  line-height: 1.55;
  color: #333;
}

.title.is-3 {
  font-family: 'Google Sans', 'Noto Sans', Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.content {
  font-size: 1.05rem;
}

.content p {
  margin-bottom: 1rem;
}

.method-section {
  background-color: #fafafa;
}

.method-image {
  width: 100%;
  max-width: 980px;
  margin: 1rem auto 0 auto;
  border-radius: 4px;
}

.method-text {
  margin-top: 1rem;
}

.experiment-section {
  background-color: #ffffff;
}

.experiment-tabs {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.experiment-tabs ul {
  flex-wrap: wrap;
}

.experiment-tabs li a {
  min-width: 142px;
  justify-content: center;
}

.experiment-tabs li.is-active a {
  background-color: #363636 !important;
  border-color: #363636 !important;
  color: #ffffff !important;
}

.experiment-panel {
  display: none;
  animation: fadeIn 0.18s ease-in-out;
}

.experiment-panel.is-active {
  display: block;
}

.experiment-image {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  border-radius: 4px;
}

.caption {
  max-width: 950px;
  margin: 0.85rem auto 0 auto;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.55;
}

.result-table-container {
  margin-top: 1.4rem;
}

.result-table {
  font-size: 0.98rem;
}

.result-table th {
  text-align: center !important;
  vertical-align: middle !important;
  background-color: #f5f5f5;
}

.result-table td {
  text-align: center !important;
  vertical-align: middle !important;
}

.result-table td:first-child,
.result-table th:first-child {
  text-align: left !important;
}

.table-note {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #666;
}

.usage-section {
  background-color: #fafafa;
}

h3 {
  font-family: 'Google Sans', 'Noto Sans', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin-top: 1.6rem;
  margin-bottom: 0.75rem;
}

pre {
  background-color: #f5f5f5;
  color: #222;
  border-radius: 6px;
  padding: 1.1rem 1.25rem;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
  overflow-x: auto;
  font-size: 0.92rem;
  line-height: 1.5;
}

pre code {
  background: transparent;
  color: inherit;
  font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.footer {
  padding: 2rem 1.5rem;
  background-color: #f5f5f5;
}

.footer p {
  font-size: 0.95rem;
  color: #555;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (max-width: 768px) {
  .publication-title {
    font-size: 2rem !important;
  }

  .hero-body {
    padding-top: 2rem;
  }

  .section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .school-logo {
    max-width: 300px;
    max-height: 60px;
  }

  .content {
    font-size: 1rem;
  }

  .teaser-caption {
    font-size: 1rem;
  }

  .experiment-tabs li a {
    min-width: 120px;
  }
}

/* =========================
   Hero Refinement
========================= */

.hero-custom {
  background-color: #ffffff;
}

.hero-custom .hero-body {
  padding-top: 3.4rem;
  padding-bottom: 1.8rem;
}

.venue-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.9rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.refined-title {
  max-width: 1100px;
  margin: 0 auto 1rem auto;
  font-family: 'Google Sans', 'Noto Sans', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.publication-meta {
  margin-top: 1rem;
}

.refined-authors {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-family: 'Google Sans', 'Noto Sans', Arial, sans-serif;
  font-weight: 500;
}

.refined-authors a {
  color: #3273dc;
}

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

.author-sep {
  color: #9ca3af;
  margin: 0 0.15rem;
}

.refined-affiliation {
  margin-top: 0.55rem;
  color: #444;
}

.refined-corresponding {
  margin-top: 0.25rem;
  color: #666;
  font-size: 0.95rem;
}

.refined-logo-row {
  margin-top: 1.3rem;
  margin-bottom: 1.25rem;
}

.school-logo {
  max-width: 360px;
  max-height: 74px;
  object-fit: contain;
}

.refined-links {
  margin-top: 1.35rem;
}

.refined-links .link-block {
  margin: 0.28rem;
}

.refined-button {
  min-width: 118px;
  padding-left: 1rem;
  padding-right: 1rem;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.refined-button .icon {
  margin-right: 0.2rem;
}

/* =========================
   Teaser Refinement
========================= */

.refined-teaser-section {
  padding-top: 1.2rem;
  padding-bottom: 2.4rem;
}

.teaser-card {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 16px;
  padding: 1.15rem 1.15rem 1.35rem 1.15rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.refined-teaser-image {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  border-radius: 10px;
}

.teaser-caption-box {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid #ececec;
}

.teaser-caption-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.caption-item {
  text-align: left;
}

.caption-item h3 {
  margin: 0 0 0.45rem 0;
  font-family: 'Google Sans', 'Noto Sans', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #222;
}

.caption-item p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #555;
}

/* =========================
   Mobile
========================= */

@media screen and (max-width: 768px) {
  .hero-custom .hero-body {
    padding-top: 2.2rem;
    padding-bottom: 1.2rem;
  }

  .refined-title {
    font-size: 2.15rem !important;
    line-height: 1.12;
  }

  .school-logo {
    max-width: 290px;
    max-height: 62px;
  }

  .refined-button {
    min-width: 105px;
  }

  .teaser-caption-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .caption-item h3 {
    font-size: 1rem;
  }

  .caption-item p {
    font-size: 0.95rem;
  }
}


/* =========================
   Method Caption
========================= */

.method-caption-box {
  max-width: 980px;
  margin: 1.25rem auto 0 auto;
  padding: 1.15rem 1.25rem;
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.045);
}

.method-caption-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.method-caption-item {
  text-align: left;
}

.method-caption-item h3 {
  margin: 0 0 0.35rem 0;
  font-family: 'Google Sans', 'Noto Sans', Arial, sans-serif;
  font-size: 1.04rem;
  font-weight: 700;
  color: #222;
}

.method-caption-item p {
  margin: 0;
  color: #555;
  font-size: 0.98rem;
  line-height: 1.65;
}

@media screen and (max-width: 768px) {
  .method-caption-box {
    padding: 1rem;
  }

  .method-caption-item p {
    font-size: 0.95rem;
  }
}

/* =========================
   Teaser Section
========================= */

.refined-teaser-section {
  padding-top: 1.1rem;
  padding-bottom: 2.5rem;
}

.teaser-card {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.1rem 1.1rem 1.25rem 1.1rem;

  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.045);
}

.refined-teaser-image {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  border-radius: 10px;
}

.teaser-caption-box {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid #eeeeee;
}

.teaser-caption-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.caption-item {
  text-align: left;
  padding: 0.15rem 0.25rem;
}

.caption-item h3 {
  margin: 0 0 0.45rem 0;
  font-family: 'Google Sans', 'Noto Sans', Arial, sans-serif;
  font-size: 1.03rem;
  font-weight: 700;
  color: #222;
}

.caption-item p {
  margin: 0;
  color: #555;
  font-size: 0.98rem;
  line-height: 1.65;
}

/* Remove overly large old teaser caption style if it exists */
.teaser-caption {
  font-size: 1rem;
  line-height: 1.6;
}

@media screen and (max-width: 768px) {
  .teaser-card {
    padding: 0.85rem 0.85rem 1rem 0.85rem;
    border-radius: 12px;
  }

  .teaser-caption-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .caption-item h3 {
    font-size: 1rem;
  }

  .caption-item p {
    font-size: 0.95rem;
  }
}

/* =========================
   Experiment Carousel
========================= */

.experiment-section {
  background-color: #ffffff;
}

.experiment-carousel {
  max-width: 1080px;
  margin: 1.6rem auto 0 auto;
}

.experiment-carousel-stage {
  position: relative;
  overflow: hidden;

  padding: 1.1rem 1.1rem 1.25rem 1.1rem;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.045);
}

.experiment-slide {
  display: none;
  animation: experimentFadeIn 0.22s ease-in-out;
}

.experiment-slide.is-active {
  display: block;
}

.experiment-carousel-image {
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  border-radius: 10px;
}

.experiment-caption {
  margin-top: 1.05rem;
  padding-top: 0.95rem;
  border-top: 1px solid #eeeeee;
  text-align: center;
}

.experiment-caption h3 {
  margin: 0 0 0.35rem 0;
  font-family: 'Google Sans', 'Noto Sans', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: #222;
}

.experiment-caption p {
  max-width: 860px;
  margin: 0 auto;
  color: #555;
  font-size: 0.98rem;
  line-height: 1.65;
}

.carousel-button {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  z-index: 5;

  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: none;
  border-radius: 50%;
  background: rgba(54, 54, 54, 0.88);
  color: #ffffff;
  cursor: pointer;

  transition:
    background 0.18s ease,
    transform 0.18s ease,
    opacity 0.18s ease;
}

.carousel-button:hover {
  background: #222222;
  transform: translateY(-50%) scale(1.04);
}

.carousel-button-prev {
  left: 1rem;
}

.carousel-button-next {
  right: 1rem;
}

.carousel-dots {
  margin-top: 0.95rem;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;

  border: none;
  border-radius: 50%;
  background: #c9c9c9;
  cursor: pointer;

  transition:
    width 0.18s ease,
    border-radius 0.18s ease,
    background 0.18s ease;
}

.carousel-dot.is-active {
  width: 24px;
  border-radius: 999px;
  background: #363636;
}

@keyframes experimentFadeIn {
  from {
    opacity: 0;
    transform: translateX(8px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media screen and (max-width: 768px) {
  .experiment-carousel-stage {
    padding: 0.85rem 0.85rem 1rem 0.85rem;
    border-radius: 12px;
  }

  .carousel-button {
    width: 36px;
    height: 36px;
    top: 42%;
  }

  .carousel-button-prev {
    left: 0.65rem;
  }

  .carousel-button-next {
    right: 0.65rem;
  }

  .experiment-caption h3 {
    font-size: 1rem;
  }

  .experiment-caption p {
    font-size: 0.95rem;
  }
}

.usage-section {
  background-color: #fafafa;
}

h3 {
  font-family: 'Google Sans', 'Noto Sans', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin-top: 1.6rem;
  margin-bottom: 0.75rem;
}

pre {
  background-color: #f5f5f5;
  color: #222;
  border-radius: 6px;
  padding: 1.1rem 1.25rem;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
  overflow-x: auto;
  font-size: 0.92rem;
  line-height: 1.5;
}

pre code {
  background: transparent;
  color: inherit;
  font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* =========================
   Usage Section
========================= */

.usage-section {
  background-color: #fafafa;
}

.usage-content {
  max-width: 980px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.usage-content > p {
  margin-bottom: 1.4rem;
  color: #444;
  line-height: 1.7;
}

.usage-steps {
  margin-left: 1.25rem;
  padding-left: 1.25rem;
}

.usage-steps li {
  margin-bottom: 1.25rem;
  color: #444;
}

.usage-steps li p {
  margin-bottom: 0.55rem;
  color: #444;
  line-height: 1.65;
}

.code-wrapper {
  position: relative;
  margin-top: 0.45rem;
  margin-bottom: 1.1rem;

  border: 1px solid #dddddd;
  border-radius: 6px;
  background-color: #f5f5f5;
  overflow: hidden;
}

.code-wrapper pre {
  margin: 0;
  padding: 1.25rem 1.35rem;
  padding-right: 5.2rem;

  background-color: #f5f5f5;
  color: #333;
  overflow-x: auto;

  font-size: 0.95rem;
  line-height: 1.55;
}

.code-wrapper code {
  background: transparent;
  color: inherit;
  font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.copy-button {
  position: absolute;
  top: 0.55rem;
  right: 0.75rem;
  z-index: 2;

  padding: 0.38rem 0.75rem;

  border: none;
  border-radius: 5px;
  background-color: #3273dc;
  color: #ffffff;

  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;

  transition: background-color 0.18s ease;
}

.copy-button:hover {
  background-color: #2366d1;
}

.copy-button.copied {
  background-color: #23a455;
}

@media screen and (max-width: 768px) {
  .usage-content {
    font-size: 1rem;
  }

  .usage-steps {
    margin-left: 1rem;
    padding-left: 1rem;
  }

  .code-wrapper pre {
    padding: 1rem;
    padding-top: 3rem;
    font-size: 0.88rem;
  }

  .copy-button {
    top: 0.55rem;
    right: 0.55rem;
  }
}

/* ===== Paper-style caption alignment ===== */

.paper-caption-box {
  margin-top: 1.25rem;
}

.paper-caption-grid {
  display: grid;
  align-items: start;
  gap: 1.6rem;
}

.teaser-caption-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.method-caption-layout {
  grid-template-columns: 0.9fr 1.6fr;
  gap: 1.35rem 1.8rem;
}

.method-caption-left {
  grid-row: span 2;
}

.paper-caption-item {
  text-align: left;
}

.paper-caption-item h3 {
  margin: 0 0 0.55rem 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: #222;
}

.paper-caption-item p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: #555;
  text-align: justify;
  text-justify: inter-word;
}

.paper-caption-item b {
  color: #222;
  font-weight: 700;
}

.paper-caption-item i {
  font-style: italic;
}

/* Mobile layout */
@media screen and (max-width: 768px) {
  .teaser-caption-layout,
  .method-caption-layout {
    grid-template-columns: 1fr;
  }

  .method-caption-left {
    grid-row: auto;
  }

  .paper-caption-item p {
    text-align: left;
  }
}
