:root {
  --site-serif: Georgia, "Times New Roman", Times, serif;

  --text-main: #222;
  --text-soft: #555;

  --bg-page: #f4f6fb;

  --border-soft: rgba(90, 98, 120, 0.18);
  --border-mid: rgba(90, 98, 120, 0.28);

  --accent: #6f86ff;
  --accent-2: #9b72ff;
  --accent-3: #63b3ff;

  --accent-soft: rgba(111, 134, 255, 0.10);
  --accent-soft-2: rgba(155, 114, 255, 0.10);
  --accent-soft-3: rgba(99, 179, 255, 0.10);

  --shadow-soft: 0 8px 24px rgba(20, 20, 40, 0.06);

  --nav-width: 245px;
  --page-gap: 28px;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg-page);
  color: var(--text-main);
  font-family: var(--site-serif);
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 0 0, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: -1;
}

img {
  max-width: 100%;
  display: block;
}

.page-shell {
  width: min(100%, 1600px);
  margin: 0 auto;
  padding: 30px 24px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--nav-width);
  gap: var(--page-gap);
  align-items: start;
  box-sizing: border-box;
}

.content {
  position: relative;
  overflow: hidden;
  min-width: 0;
  background:
    linear-gradient(
      180deg,
      rgba(244, 247, 255, 0.96) 0%,
      rgba(248, 250, 255, 0.95) 22%,
      rgba(250, 251, 255, 0.95) 52%,
      rgba(251, 252, 255, 0.95) 100%
    );
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  box-shadow:
    0 0 20px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  padding: 34px 40px 50px;
  line-height: 1.75;
}

.content::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(111, 134, 255, 0.05) 0%,
      rgba(155, 114, 255, 0.035) 30%,
      rgba(99, 179, 255, 0.025) 65%,
      rgba(255, 255, 255, 0) 100%
    );
  pointer-events: none;
  z-index: 0;
}

.content > * {
  position: relative;
  z-index: 1;
}

/* ===== hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 34px;
  padding: 34px 34px 28px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 18%, rgba(111, 134, 255, 0.22), transparent 30%),
    radial-gradient(circle at 86% 16%, rgba(155, 114, 255, 0.18), transparent 26%),
    radial-gradient(circle at 60% 100%, rgba(99, 179, 255, 0.12), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 255, 0.98));
  border: 1px solid rgba(120, 130, 180, 0.18);
  box-shadow: 0 14px 34px rgba(30, 40, 80, 0.08);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(36px);
}

.hero::before {
  width: 220px;
  height: 220px;
  top: -70px;
  right: -40px;
  background: rgba(111, 134, 255, 0.14);
}

.hero::after {
  width: 180px;
  height: 180px;
  left: -30px;
  bottom: -60px;
  background: rgba(155, 114, 255, 0.12);
}

.eyebrow {
  margin: 0 0 10px 0;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666;
  text-align: center;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--site-serif);
  font-weight: 600;
  line-height: 1.18;
  color: #1f2230;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.5rem, 4vw, 3.35rem);
  text-align: center;
  margin: 0 0 10px;
}

h2 {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1.95rem, 2vw, 2.35rem);
  margin: 56px 0 18px;
  padding: 0 0 12px 0;
  border-bottom: 1px solid var(--border-soft);
}

h2::before {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 0.95em;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  transform: translateY(1px);
}

h3 {
  width: 100%;
  font-size: 1.42rem;
  margin: 0 0 10px;
}

h4 {
  font-size: 1.08rem;
  margin: 0;
}

h5 {
  font-size: 1rem;
  margin: 0 0 10px 0;
}

p {
  font-size: 1.06rem;
  line-height: 1.82;
  margin: 0 0 1em;
  color: var(--text-main);
}

section {
  scroll-margin-top: 24px;
}

/* ===== authors ===== */
.publication-authors {
  width: 100%;
  text-align: center;
  margin: 8px 0;
  font-size: 1.08rem;
  line-height: 1.8;
  color: #444;
}

.author-block {
  display: inline;
}

.author-block a {
  color: inherit;
  text-decoration: none;
}

.author-block a:hover {
  text-decoration: underline;
}

.affiliation-line {
  margin-top: 2px;
  font-size: 1rem;
  color: #555;
}

.mentor-line {
  margin-top: 4px;
  font-size: 0.98rem;
  color: #666;
}

.hero-summary {
  max-width: 860px;
  margin: 0 auto 18px;
  text-align: center;
}

.hero-summary p {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.85;
  color: #4a4f63;
}

.hero-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 0 18px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  padding: 0.5em 0.95em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(120, 130, 180, 0.2);
  font-size: 0.92rem;
  color: #364056;
  box-shadow: 0 4px 12px rgba(30, 40, 80, 0.05);
}

/* ===== top links ===== */
.top-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
}

.top-links a,
.top-links a:visited {
  text-decoration: none;
  color: #2b3143;
  text-align: center;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.82em 1.3em;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(246, 248, 255, 0.92));
  border: 1px solid rgba(120, 130, 180, 0.20);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 4px 12px rgba(20, 20, 40, 0.05);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
  position: relative;
}

.top-links a::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 8px;
  height: 3px;
  border-radius: 999px;
  background: transparent;
  transition: background 0.2s ease;
}

.top-links a:hover {
  background: linear-gradient(180deg, rgba(242, 246, 255, 0.98), rgba(235, 240, 255, 0.96));
  border-color: rgba(111, 134, 255, 0.35);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 18px rgba(80, 90, 160, 0.10);
}

.top-links a:hover::after {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.top-links a:active,
.top-links a:focus,
.top-links a:focus-visible {
  color: #2b3143;
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 4px 12px rgba(20, 20, 40, 0.05);
}

/* ===== right side nav ===== */
.side-nav {
  position: sticky;
  top: 20px;
  align-self: start;
  height: fit-content;
}

.side-nav-inner {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(246, 248, 255, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 10px 28px rgba(40, 50, 90, 0.08);
  padding: 18px 14px 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.side-nav-label {
  margin: 0 0 12px 0;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6c7285;
}

.section-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.section-nav a {
  text-decoration: none;
  color: #34405a;
  font-size: 0.96rem;
  line-height: 1.35;
  padding: 0.76em 0.95em;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.18);
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    transform 0.15s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.section-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 3px;
  border-radius: 999px;
  background: transparent;
  transition: background 0.18s ease;
}

.section-nav a:hover {
  background: linear-gradient(180deg, rgba(243, 246, 255, 0.92), rgba(237, 241, 255, 0.88));
  border-color: rgba(255, 255, 255, 0.45);
  color: #24304a;
  transform: translateX(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 6px 14px rgba(80, 90, 160, 0.08);
}

.section-nav a:hover::after {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.section-nav a.is-current {
  background: linear-gradient(180deg, rgba(241, 245, 255, 0.96), rgba(234, 239, 255, 0.92));
  border-color: rgba(255, 255, 255, 0.55);
  color: #1f2a44;
  transform: translateX(-2px);
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 8px 16px rgba(80, 90, 160, 0.09);
}

.section-nav a.is-current::after {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* ===== lists ===== */
#groups {
  margin: 0 0 1.1em 1.2em;
  padding-left: 0.2em;
  font-size: 1.05rem;
}

#groups li {
  margin-bottom: 0.45em;
}

/* ===== images ===== */
.image-text-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 20px 0;
  width: 100%;
}

.image-wrapper {
  width: 100%;
  max-width: 900px;
  display: flex;
  justify-content: center;
}

.results-image {
  width: 100%;
  height: auto;
  max-width: 700px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 10px 0;
}

.discussion-wide-image {
  width: 100%;
  height: auto;
  max-width: 1100px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 10px 0;
}

.image-caption {
  width: 100%;
  max-width: 900px;
  padding: 14px 20px;
  background: rgba(112, 111, 171, 0.05);
  border-left: 3px solid #706fab;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

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

.figure-note {
  width: 100%;
  margin-top: 4px;
  margin-bottom: 2px;
  padding-left: 14px;
  border-left: 2px solid #cfcfcf;
  box-sizing: border-box;
}

.figure-note p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-soft);
  text-align: left;
}

/* ===== results ===== */
.result-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
  gap: 32px;
  width: 100%;
  margin-top: 24px;
  align-items: start;
}

.result-column-box {
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  padding: 24px 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.result-column-summary {
  margin-top: -6px;
  margin-bottom: 0;
}

.result-hypothesis-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(112, 111, 171, 0.04);
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px 16px;
}

.result-hypothesis-card h4 {
  margin: 0 0 2px 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.result-description {
  width: 100%;
  margin-top: 2px;
}

.result-description p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  text-align: left;
}

.formula-text {
  margin: 0;
  line-height: 1.7;
  font-size: 1rem;
}

.result-column-box .image-text-container,
.result-hypothesis-card .image-text-container {
  width: 100%;
  margin: 0;
}

/* ===== discussion ===== */
#interpretation {
  width: 100%;
  margin-top: 40px;
}

#interpretation > p {
  margin-bottom: 20px;
}

.discussion-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  padding: 24px 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
  margin-top: 24px;
}

.discussion-body {
  width: 100%;
  margin-top: 30px;
}

.discussion-section {
  width: 100%;
  margin-bottom: 38px;
}

.discussion-section:last-child {
  margin-bottom: 0;
}

.discussion-text,
.discussion-description {
  width: 100%;
}

.discussion-description p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  text-align: left;
}

.discussion-inline-text {
  margin-bottom: 0;
  text-align: left;
}

/* ===== feature guide ===== */
.feature-legend-box {
  width: 100%;
  margin-top: 8px;
  padding: 18px;
  background: #f7f7f7;
  border: 1px solid #dddddd;
  border-radius: 10px;
  box-sizing: border-box;
}

.feature-legend-box h4 {
  margin: 0 0 10px 0;
  font-size: 1.05rem;
}

.feature-legend-intro {
  margin: 0 0 14px 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #333;
}

.feature-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px 16px;
  width: 100%;
}

.feature-group {
  background: #ffffff;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  padding: 14px;
  box-sizing: border-box;
}

.feature-group p {
  margin: 0 0 8px 0;
  font-size: 0.97rem;
  line-height: 1.6;
  text-align: left;
}

.feature-group p:last-child {
  margin-bottom: 0;
}

/* ===== responsive ===== */
@media (max-width: 1280px) {
  .page-shell {
    grid-template-columns: minmax(0, 1fr) 220px;
  }
}

@media (max-width: 1080px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: static;
    order: -1;
  }

  .side-nav-inner {
    padding: 14px;
  }

  .section-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .section-nav a {
    font-size: 0.92rem;
  }

  .content {
    padding: 28px 24px 40px;
  }
}

@media (max-width: 768px) {
  html,
  body {
    font-size: 16px;
  }

  .page-shell {
    padding: 16px;
  }

  .content {
    padding: 22px 18px 32px;
    border-radius: 18px;
  }

  h1 {
    font-size: 2.15rem;
  }

  h2 {
    font-size: 1.6rem;
    margin-top: 40px;
    gap: 10px;
  }

  h3 {
    font-size: 1.2rem;
  }

  .result-columns {
    grid-template-columns: 1fr;
  }

  .results-image,
  .discussion-wide-image {
    max-width: 100%;
  }

  .top-links {
    justify-content: stretch;
  }

  .top-links a {
    flex: 1 1 100%;
  }
}