:root {
  --research-accent: #2d6cdf;
  --research-ink: #172033;
  --research-muted: #657184;
  --research-line: rgba(101, 113, 132, 0.18);
  --research-card: rgba(255, 255, 255, 0.84);
  --research-shadow: 0 18px 45px rgba(24, 35, 56, 0.10);
}

html {
  scroll-behavior: smooth;
}

body.research-polished {
  background:
    radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--research-accent) 8%, transparent), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(39, 116, 191, 0.07), transparent 30rem),
    #fff;
}

.project-mark {
  display: none;
  gap: 0.55rem;
  align-items: center;
  color: var(--research-ink) !important;
  font: 800 1rem/1 "Google Sans", sans-serif;
  letter-spacing: -0.02em;
}

.project-mark:hover {
  text-decoration: none;
}

.project-mark-symbol {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(145deg, #352690, var(--research-accent));
  box-shadow: 0 6px 15px color-mix(in srgb, var(--research-accent) 25%, transparent);
}

.research-progress {
  position: fixed;
  z-index: 1000;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--research-accent), #2f80ed);
  transform: scaleX(0);
  transform-origin: left center;
  box-shadow: 0 0 14px color-mix(in srgb, var(--research-accent) 45%, transparent);
}

.research-contents {
  position: fixed;
  z-index: 90;
  left: max(1rem, calc(50vw - 690px));
  top: 6.1rem;
  width: 178px;
  padding: 0.75rem;
  border: 1px solid var(--research-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 30px rgba(24, 35, 56, 0.08);
  backdrop-filter: blur(16px);
}

.research-contents-title {
  padding: 0.2rem 0.45rem 0.55rem;
  font-family: "Google Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--research-muted);
}

.research-contents-link {
  display: block;
  width: 100%;
  margin: 0.08rem 0;
  padding: 0.42rem 0.55rem;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #3a4352;
  cursor: pointer;
  font: 700 0.82rem/1.25 "Google Sans", sans-serif;
  text-align: left;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.research-contents-link:hover,
.research-contents-link.active {
  color: var(--research-accent);
  background: color-mix(in srgb, var(--research-accent) 10%, transparent);
  border-left-color: var(--research-accent);
  transform: translateX(2px);
}

.research-polished .section {
  position: relative;
}

.research-polished .sec-heading {
  position: relative;
  display: table;
  margin-left: auto;
  margin-right: auto;
}

.research-polished .sec-heading::after {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  margin: 0.55rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--research-accent), transparent);
}

.research-polished .hero {
  position: relative;
  overflow: hidden;
}

.research-polished .hero-body {
  padding-top: 3.1rem;
  padding-bottom: 3rem;
}

.hero-eyebrow {
  margin-bottom: 0.85rem;
  color: var(--research-accent);
  font: 800 0.72rem/1.3 "Google Sans", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.research-polished .publication-title {
  max-width: 940px;
  margin: 0 auto;
  color: var(--research-ink);
  font-size: 2.2rem;
  line-height: 1.16;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero-deck {
  max-width: 740px;
  margin: 1rem auto 1.1rem;
  color: var(--research-muted);
  font-size: 1.04rem;
  line-height: 1.55;
  text-wrap: balance;
}

.hero-deck strong {
  color: var(--research-ink);
}

.research-polished .publication-authors {
  margin-top: 0.8rem !important;
}

.research-polished .publication-links .button {
  min-height: 2.55rem;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.research-polished .publication-links a.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 22px rgba(24, 35, 56, 0.18);
  text-decoration: none;
}

.research-polished .publication-links .is-unavailable {
  opacity: 0.48;
  cursor: not-allowed;
}

.research-polished .publication-video-block {
  margin-top: 1.55rem;
  padding: 0.36rem;
  border: 1px solid var(--research-line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.88);
}

.research-polished .publication-video-block video {
  border: 0;
  border-radius: 11px;
  box-shadow: none;
}

.research-polished .hero::before {
  content: "";
  position: absolute;
  inset: auto -14vw -18rem -14vw;
  height: 26rem;
  pointer-events: none;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--research-accent) 9%, transparent), transparent 65%);
}

.research-polished .publication-video-block,
.research-polished .survey-hero-card,
.research-polished .fig-wrap,
.research-polished .chart-card,
.research-polished .fmp-chart-wrap,
.research-polished .realworld-chart-card,
.research-polished .method-visual-card,
.research-polished .taxonomy-card,
.research-polished .module-card,
.research-polished .paper-browser,
.research-polished .highlight-shell,
.research-polished .fmp-highlight-shell {
  border-color: color-mix(in srgb, var(--research-accent) 17%, #dfe5ee);
  box-shadow: var(--research-shadow);
}

.research-polished .highlight-card,
.research-polished .method-step,
.research-polished .mini-figure {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.research-polished .highlight-card:hover,
.research-polished .method-step:hover,
.research-polished .mini-figure:hover,
.research-polished .chart-card:hover,
.research-polished .fmp-chart-wrap:hover,
.research-polished .fig-wrap:hover,
.research-polished .module-card:hover,
.research-polished .taxonomy-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--research-accent) 32%, #dfe5ee);
  box-shadow: 0 22px 52px rgba(24, 35, 56, 0.14);
}

.research-polished .highlight-icon {
  filter: drop-shadow(0 7px 12px color-mix(in srgb, var(--research-accent) 16%, transparent));
}

.research-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.research-reveal.research-visible {
  opacity: 1;
  transform: none;
}

.research-clickable-media {
  cursor: zoom-in;
}

.research-lightbox {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(10, 14, 22, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.research-lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.research-lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
  background: #fff;
}

.research-lightbox-close,
.research-top {
  border: 0;
  cursor: pointer;
  font-family: "Google Sans", sans-serif;
  box-shadow: 0 12px 28px rgba(24, 35, 56, 0.18);
}

.research-lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #fff;
  color: var(--research-ink);
  font-size: 1.45rem;
  line-height: 1;
}

.research-top {
  position: fixed;
  z-index: 950;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #fff;
  background: var(--research-accent);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.research-top.visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

@media (max-width: 1180px) {
  .research-contents {
    display: none;
  }
}

@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }
  .research-polished .navbar {
    min-height: 3.65rem;
  }
  .research-polished .navbar-brand {
    width: 100%;
    align-items: center;
    justify-content: space-between;
  }
  .project-mark {
    display: flex;
  }
  .research-polished .navbar-burger {
    margin-left: auto;
    border: 0;
    background: transparent;
  }
  .research-polished .navbar-menu {
    padding: 0.5rem 1rem 0.9rem;
    border-top: 1px solid var(--research-line);
    box-shadow: 0 14px 30px rgba(24, 35, 56, 0.1);
  }
  .research-polished .navbar-start {
    display: block;
  }
  .research-polished .navbar-start .navbar-item:first-child {
    display: none;
  }
  .research-polished .navbar-item {
    border-radius: 8px;
  }
  .research-polished .hero-body {
    padding: 2.3rem 1.1rem 2rem;
  }
  .research-polished .hero {
    width: 100vw;
    max-width: 100vw;
  }
  .research-polished .hero .container,
  .research-polished .hero .columns,
  .research-polished .hero .column {
    width: calc(100vw - 2.2rem);
    max-width: calc(100vw - 2.2rem);
    flex: 0 0 calc(100vw - 2.2rem);
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .hero-eyebrow {
    margin-bottom: 0.7rem;
    font-size: 0.64rem;
    letter-spacing: 0.1em;
  }
  .research-polished .publication-title {
    width: calc(100vw - 2.2rem) !important;
    max-width: calc(100vw - 2.2rem) !important;
    font-size: clamp(1.65rem, 7.8vw, 2.05rem);
    line-height: 1.08;
    overflow-wrap: normal;
    word-break: normal;
  }
  .title-break {
    display: none;
  }
  .hero-deck {
    width: calc(100vw - 2.2rem);
    max-width: calc(100vw - 2.2rem);
    margin: 0.85rem auto 1rem;
    font-size: 0.91rem;
    line-height: 1.48;
  }
  .research-polished .publication-authors {
    width: calc(100vw - 2.2rem);
    max-width: calc(100vw - 2.2rem);
    font-size: 1rem !important;
    line-height: 1.8;
  }
  .research-polished .author-block {
    margin: 0 0.35rem !important;
  }
  .research-polished .hero .is-size-6 {
    padding: 0 0.4rem;
    font-size: 0.79rem !important;
    line-height: 1.55;
  }
  .research-polished .publication-links {
    width: calc(100vw - 2.2rem) !important;
    max-width: calc(100vw - 2.2rem) !important;
    gap: 0.45rem;
  }
  .research-polished .publication-links .link-block {
    max-width: 100%;
  }
  .research-polished .publication-links .button {
    margin: 0;
    min-height: 2.35rem;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    font-size: 0.83rem;
  }
  .research-polished .publication-video-block {
    width: calc(100vw - 2.2rem) !important;
    max-width: calc(100vw - 2.2rem) !important;
    margin-top: 1.3rem;
  }
  .research-polished .section {
    padding: 2.75rem 1.1rem;
  }
  .research-polished .section > .container {
    width: 100%;
  }
  .research-polished .fig-wrap {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0;
    padding-right: 0;
  }
  .research-polished pre {
    max-width: 100%;
    overflow-x: auto;
  }
  .research-lightbox {
    padding: 1rem;
  }
  .research-top {
    right: 0.8rem;
    bottom: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .research-polished *,
  .research-polished *::before,
  .research-polished *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
