:root {
  --primary-color: #0066cc;

  --text-dark: #222222;
  --text-main: #333333;
  --text-body: #444444;
  --text-medium: #555555;
  --text-muted: #666666;

  --bg-dark: #000000;
  --bg-body: #ffffff;
  --bg-light: #f9f9f9;
  --bg-code: #f5f5f5;
  --bg-highlight: #f0f8ff;

  --white-color: #ffffff;

  --border-color: #dddddd;
  --button-nav-bg: #555555;
  --button-nav-hover: #333333;
  --button-action-bg: #007bff;
  --button-action-hover: #0056b3;

  --badge-color: #39739d;
  --badge-bg: #e1ecf4;

  --shadow-color: rgba(0, 0, 0, 0.3);
  --shadow-color-hover: rgba(0, 0, 0, 0.4);
  --shadow-intense: rgba(0, 0, 0, 0.7);
  --shadow-light: rgba(0, 0, 0, 0.2);

  --citation-border: #d0d7de;
  --copy-btn-border: rgba(27, 31, 35, 0.15);
  --copy-btn-hover-bg: #f3f4f6;
  --copy-btn-active-bg: #edeff2;
  --copy-btn-color: #555;

  --bibtex-type: #cf222e;
  --bibtex-key: #0550ae;
  --bibtex-field: #116329;
  --bibtex-value: #0a3069;

  --gold-color: #b8860b;
  --gold-bg: #fdf6e3;
  --gold-border: #e0c068;
}

[data-theme="dark"] {
  --primary-color: #4da3ff;

  --text-dark: #f0f0f0;
  --text-main: #e0e0e0;
  --text-body: #c8c8c8;
  --text-medium: #b0b0b0;
  --text-muted: #909090;

  --bg-dark: #000000;
  --bg-body: #121212;
  --bg-light: #1e1e1e;
  --bg-code: #1a1a1a;
  --bg-highlight: #1a2a3a;

  --white-color: #ffffff;

  --border-color: #3a3a3a;
  --button-nav-bg: #3a3a3a;
  --button-nav-hover: #4a4a4a;
  --button-action-bg: #4da3ff;
  --button-action-hover: #3d93ef;

  --badge-color: #7dc4e4;
  --badge-bg: #1a3a4a;

  --shadow-color: rgba(0, 0, 0, 0.5);
  --shadow-color-hover: rgba(0, 0, 0, 0.6);
  --shadow-intense: rgba(0, 0, 0, 0.9);
  --shadow-light: rgba(0, 0, 0, 0.4);

  --citation-border: #3a3a3a;
  --copy-btn-border: rgba(255, 255, 255, 0.15);
  --copy-btn-hover-bg: #2a2a2a;
  --copy-btn-active-bg: #333333;
  --copy-btn-color: #b0b0b0;

  --bibtex-type: #ff7b7b;
  --bibtex-key: #7dc4e4;
  --bibtex-field: #a6da95;
  --bibtex-value: #8caaee;

  --gold-color: #e0c068;
  --gold-bg: #2a2410;
  --gold-border: #5c4d1a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  color: var(--text-main);
  background-color: var(--bg-body);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.italic {
  font-style: italic;
}

.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px var(--shadow-light);
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background-color: var(--bg-highlight);
  transform: scale(1.05);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  color: var(--text-main);
  transition: color 0.3s ease;
}

.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

.title {
  text-align: center;
  margin: 60px 0 40px;
}

.title h1 {
  font-size: 2em;
  font-weight: normal;
  margin: 0 0 20px;
  color: var(--text-dark);
  line-height: 1.2;
}

.title h2 {
  font-size: 1.8em;
  font-weight: normal;
  margin: 0 0 20px;
  color: var(--text-muted);
  line-height: 1.3;
}

.conference {
  font-size: 1.2em;
  color: var(--text-medium);
  font-weight: 500;
  margin-bottom: 0;
}

.authors {
  margin: 30px 0;
  text-align: center;
  line-height: 2;
}

.author {
  display: inline-block;
  margin: 0 15px 10px;
  color: var(--primary-color);
  font-size: 1.1em;
}

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

.affiliations {
  text-align: center;
  margin: 20px 0 60px;
  color: var(--text-muted);
  font-size: 1em;
  line-height: 1.8;
  font-style: normal;
}

.links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 40px 0;
}

.links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--button-nav-bg);
  color: var(--white-color);
  text-decoration: none;
  border-radius: 30px;
  box-shadow: 0 2px 10px var(--shadow-color);
  font-size: 1em;
  font-weight: 500;
  transition: all 0.2s ease;
}

.links a:hover {
  background: var(--button-nav-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--shadow-color-hover);
}

.links a.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.links a:active {
  transform: translateY(0);
}

.links a svg {
  flex-shrink: 0;
}

.orcid-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.orcid-link:hover {
  opacity: 1;
}

.section {
  margin: 60px 0;
}

.section h2 {
  font-size: 2em;
  font-weight: normal;
  margin: 0 0 30px;
  color: var(--text-dark);
}

.section h3 {
  font-size: 1.4em;
  font-weight: normal;
  margin: 40px 0 20px;
  color: var(--text-main);
}

.section h4 {
  font-size: 1em;
  font-weight: 600;
  margin: 15px 0 10px;
  color: var(--text-main);
}

.section p {
  font-size: 1.1em;
  line-height: 1.7;
  margin: 20px 0;
  color: var(--text-body);
}

.video-container {
  text-align: center;
  margin: 40px 0;
}

.video-wrapper {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  margin: 20px 0;
}

.video-wrapper video,
.video-wrapper iframe {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 20px 0;
}

.video-item {
  text-align: center;
  margin: 0;
}

.video-item video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  background: var(--bg-dark);
  box-shadow: 0 2px 10px var(--shadow-intense);
}

.video-item figcaption {
  font-size: 0.9em;
  color: var(--text-muted);
  margin-top: 10px;
}

.figure-centered {
  text-align: center;
  margin: 20px 0;
}

.figure-centered img {
  width: 100%;
  max-width: 900px;
  border-radius: 4px;
  box-shadow: 0 2px 10px var(--shadow-light);
}

.figure-centered figcaption {
  font-size: 0.9em;
  color: var(--text-muted);
  margin-top: 10px;
}

.figure-full-width img {
  max-width: 100%;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 30px 0;
}

.two-column-aligned {
  align-items: center;
}

.three-column {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  margin: 40px 0;
}

.results-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
  width: 100%;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.abstract {
  background: var(--bg-light);
  padding: 15px;
  border-left: 5px solid var(--text-medium);
  margin: 15px 0;
  border-radius: 4px;
  box-shadow: 0 2px 10px var(--shadow-color);
}

.key-contributions {
  margin-top: 25px;
}

.key-contributions h3 {
  font-size: 1.3em;
  color: var(--text-main);
  margin-bottom: 15px;
}

.key-contributions ul {
  font-size: 0.95em;
  color: var(--text-medium);
}

.key-contributions li {
  margin-bottom: 8px;
}

ul {
  font-size: 1.1em;
  line-height: 1.8;
}

li {
  margin: 10px 0;
}

.compact-list {
  margin: 0;
  padding-left: 20px;
  font-size: 0.95em;
}

.compact-list li {
  margin: 5px 0;
}

.keypoint-comparison {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1.25rem;
  margin: 1.5rem auto 2rem auto;
  max-width: 700px;
}

.keypoint-item {
  margin: 0;
  text-align: center;
  flex: 0 1 auto;
}

.keypoint-item img {
  width: 170px;
  height: 240px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 8px var(--shadow-color);
}

.keypoint-item figcaption {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-medium);
  line-height: 1.35;
  max-width: 170px;
}

.reference-comparison {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5rem;
  margin: 1.5rem auto 2rem auto;
}

.reference-item {
  margin: 0;
  text-align: center;
  flex: 0 0 auto;
}

.reference-item img {
  width: 180px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px var(--shadow-color);
}

.reference-item figcaption {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-medium);
  font-weight: 500;
}

.info-box {
  background: var(--bg-highlight);
  border-left: 5px solid var(--primary-color);
  padding: 15px;
  margin: 15px 0;
  border-radius: 4px;
  box-shadow: 0 2px 8px var(--shadow-color);
}

.tech-stack-list {
  list-style: none;
  padding: 0;
}

.tech-stack-list li {
  margin-bottom: 8px;
}

.badge {
  background: var(--badge-bg);
  color: var(--badge-color);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: 600;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  font-size: 0.95em;
}

th,
td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background: var(--bg-light);
  font-weight: 600;
}

tr:hover {
  background: var(--bg-light);
}

.results-table,
.inference-table {
  text-align: center;
  min-width: 600px;
}

.results-table {
  min-width: 800px;
}

.results-table th,
.inference-table th {
  text-align: center;
  border-bottom: 1px solid var(--text-muted);
}

.mean-row {
  font-weight: 500;
}

.highlight-row {
  background: var(--bg-highlight);
}

.section p.table-caption {
  font-size: 0.85em;
  color: var(--text-body);
  text-align: justify;
  max-width: 850px;
  margin: 10px auto;
}

.section p.table-caption-center {
  font-size: 0.85em;
  color: var(--text-body);
  text-align: center;
  max-width: 800px;
  margin: 10px auto;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.metric {
  text-align: center;
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.metric .number {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--primary-color);
  display: block;
}

.metric .label {
  font-size: 0.9em;
  color: var(--text-muted);
  margin-top: 5px;
}

.citation-wrapper {
  position: relative;
}

.citation-container {
  position: relative;
}

.citation-container pre {
  position: relative;
  padding: 10px;
}

.citation {
  background: var(--bg-code);
  padding: 16px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    monospace;
  font-size: 0.85em;
  margin: 0;
  overflow-x: auto;
  line-height: 1.45;
  border: 1px solid var(--citation-border);
  box-shadow: 0 2px 10px var(--shadow-light);
}

.citation pre {
  white-space: pre;
  margin: 0;
}

.bibtex-type {
  color: var(--bibtex-type);
}

.bibtex-key {
  color: var(--bibtex-key);
}

.bibtex-field {
  color: var(--bibtex-field);
}

.bibtex-value {
  color: var(--bibtex-value);
}

.copy-button {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  background-color: transparent;
  border: 1px solid var(--copy-btn-border);
  border-radius: 6px;
  cursor: pointer;
  padding: 4px 8px;
  color: var(--copy-btn-color);
  transition: background-color 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.copy-button svg {
  width: 16px;
  height: 16px;
}

.copy-button:hover {
  background-color: var(--copy-btn-hover-bg);
  border-color: rgba(27, 31, 35, 0.35);
}

.copy-button:active {
  background-color: var(--copy-btn-active-bg);
}

.copy-button.success {
  border-color: #2ea44f;
  color: #2ea44f;
}

.large-results {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin: 40px 0;
}

.large-result-item {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.large-result-item img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.large-result-item p {
  font-size: 1.1em;
  color: var(--text-muted);
  margin-top: 15px;
  text-align: left;
}

.result-item {
  text-align: center;
}

.result-item img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.result-item p {
  font-size: 0.95em;
  color: var(--text-muted);
  margin-top: 10px;
}

.section p.model-comparison {
  margin-top: 15px;
  font-size: 0.9em;
  color: var(--text-medium);
}

footer {
  text-align: center;
  margin-top: 60px;
  padding: 20px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
}

#scroll-top-button {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: var(--primary-color);
  color: var(--white-color);
  cursor: pointer;
  padding: 12px;
  border-radius: 50%;
  box-shadow: 0 2px 10px var(--shadow-color);
  transition: all 0.3s ease;
  opacity: 0.9;
}

#scroll-top-button:hover {
  background-color: var(--button-action-hover);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px var(--shadow-color-hover);
  opacity: 1;
}

#scroll-top-button svg {
  display: block;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
  margin: auto;
  display: block;
  width: auto;
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  animation-name: zoom;
  animation-duration: 0.3s;
  cursor: zoom-in;
  transition: 0.3s ease;
}

.lightbox-content.zoomed {
  max-width: none;
  max-height: none;
  cursor: grab;
}

.lightbox.grabbing {
  cursor: grabbing;
}

.lightbox.grabbing .lightbox-content {
  cursor: grabbing;
}

#lightbox-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: var(--white-color);
  padding: 10px 0;
  height: 150px;
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: var(--primary-color);
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: var(--button-action-bg);
  text-decoration: none;
  cursor: pointer;
}

@keyframes zoom {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.section img {
  transition: 0.3s;
}

.section img:hover {
  opacity: 0.7;
  cursor: pointer;
}

.side-nav {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.side-nav.visible {
  opacity: 1;
  visibility: visible;
}

.side-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-nav li {
  margin: 0;
  position: relative;
}

.side-nav a {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--border-color);
  transition: background-color 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
}

.side-nav a:hover {
  background-color: var(--text-muted);
  transform: scale(1.3);
  text-decoration: none;
}

.side-nav a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
}

.side-nav a.active {
  background-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--bg-body), 0 0 0 5px var(--primary-color);
}

.side-nav .tooltip {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--bg-light);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85em;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  box-shadow: 0 2px 8px var(--shadow-color);
  border: 1px solid var(--border-color);
}

.side-nav .tooltip::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent var(--border-color) transparent transparent;
}

.side-nav .tooltip::after {
  content: "";
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent var(--bg-light) transparent transparent;
}

.side-nav a:hover .tooltip,
.side-nav a:focus .tooltip {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
   IROH additions (kept minimal, reuse existing tokens)
   ============================================================ */

/* "Ranked 1st" winner banner under the conference line */
.winner-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 22px auto 0;
  padding: 10px 22px;
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  border-radius: 30px;
  color: var(--gold-color);
  font-weight: 600;
  font-size: 1.05em;
  box-shadow: 0 2px 10px var(--shadow-light);
}

.winner-banner svg {
  flex-shrink: 0;
}

.winner-banner .map {
  color: var(--text-medium);
  font-weight: 500;
}

/* Findings as numbered cards */
.findings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 30px 0;
}

.finding-card {
  position: relative;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 22px 22px 22px 22px;
  box-shadow: 0 2px 8px var(--shadow-light);
}

.finding-card .finding-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--white-color);
  font-weight: 700;
  font-size: 1.05em;
  margin-bottom: 12px;
}

.finding-card h4 {
  margin: 0 0 8px;
  font-size: 1.05em;
  color: var(--text-dark);
}

.finding-card p {
  margin: 0;
  font-size: 0.95em;
  line-height: 1.6;
  color: var(--text-body);
}

/* Stage cards for the pipeline */
.stage-list {
  counter-reset: stage;
  margin: 25px 0;
}

.stage-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-color);
}

.stage-row:last-child {
  border-bottom: none;
}

.stage-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--bg-highlight);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.1em;
}

.stage-row .stage-body h4 {
  margin: 2px 0 6px;
  font-size: 1.1em;
  color: var(--text-dark);
}

.stage-row .stage-body p {
  margin: 0;
  font-size: 0.97em;
  line-height: 1.6;
  color: var(--text-body);
}

/* Final-configuration definition table */
.config-table th {
  width: 38%;
  text-align: left;
}

.config-table td {
  text-align: left;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    monospace;
  font-size: 0.92em;
}

/* code-style mono spans inline */
.mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    monospace;
  font-size: 0.9em;
  background: var(--bg-code);
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

@media (max-width: 1024px) {
  body {
    max-width: 100%;
    padding: 30px 20px;
  }

  .title h1 {
    font-size: 2.5em;
  }

  .title h2 {
    font-size: 1.6em;
  }

  .section h2 {
    font-size: 1.7em;
  }

  .section h3 {
    font-size: 1.2em;
  }

  .author {
    display: block;
    margin: 8px 0;
  }

  .theme-toggle {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 768px) {
  body {
    padding: 20px 15px;
    margin: 0;
  }

  .title {
    margin: 40px 0 30px;
  }

  .title h1 {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .title h2 {
    font-size: 1.2em;
    margin-bottom: 15px;
  }

  .conference {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .authors {
    margin: 20px 0;
    line-height: 1.8;
  }

  .author {
    display: block;
    margin: 8px 0;
    font-size: 1em;
  }

  .affiliations {
    margin: 15px 0 40px;
    font-size: 0.9em;
    line-height: 1.6;
  }

  .links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 30px 0;
  }

  .links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 0.95em;
  }



  .links a:hover {
    transform: none;
  }

  .section {
    margin: 40px 0;
  }

  .section h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
  }

  .section h3 {
    font-size: 1.1em;
    margin: 30px 0 15px;
  }

  .section p {
    font-size: 1em;
    line-height: 1.6;
    margin: 15px 0;
  }

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

  .two-column,
  .three-column,
  .results-grid,
  .results-two-column {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 20px 0;
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
  }

  table {
    margin: 20px 0;
    font-size: 0.85em;
  }

  th,
  td {
    padding: 8px;
  }

  .abstract {
    padding: 20px;
    margin: 30px 0;
  }

  .key-contributions {
    margin-top: 20px;
  }

  .key-contributions h3 {
    font-size: 1.05em;
  }

  .key-contributions ul {
    font-size: 0.9em;
  }

  .key-contributions li {
    margin-bottom: 6px;
  }

  .citation {
    padding: 15px;
    font-size: 0.8em;
    padding-right: 48px;
    white-space: pre-wrap;
    word-wrap: break-word;
  }

  ul {
    font-size: 1em;
    line-height: 1.7;
    padding-left: 20px;
  }

  li {
    margin: 8px 0;
  }

  a {
    word-break: break-word;
  }

  footer {
    margin-top: 40px;
    padding: 15px;
    font-size: 0.9em;
  }

  .table-caption {
    font-size: 0.8em;
    padding: 0 10px;
  }

  #scroll-top-button {
    bottom: 20px;
    right: 20px;
    padding: 10px;
  }

  .theme-toggle {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
  }

  .theme-toggle svg {
    width: 18px;
    height: 18px;
  }

  .side-nav {
    display: none;
  }
}

@media (max-width: 480px) {
  body {
    padding: 15px 10px;
  }

  .title h1 {
    font-size: 1.5em;
    margin-bottom: 10px;
  }

  .title h2 {
    font-size: 1.05em;
    margin-bottom: 10px;
  }

  .conference {
    font-size: 0.9em;
    margin-bottom: 20px;
  }

  .section h2 {
    font-size: 1.3em;
    margin-bottom: 15px;
  }

  .section h3 {
    font-size: 1em;
    margin: 25px 0 12px;
  }

  .section p {
    font-size: 0.95em;
    line-height: 1.5;
  }

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

  .links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .links a {
    justify-content: center;
    padding: 10px 6px;
    font-size: 0.8em;
  }

  table {
    font-size: 0.75em;
    overflow-x: auto;
    display: block;
  }

  th,
  td {
    padding: 6px 4px;
  }

  .abstract {
    padding: 15px;
    margin: 20px 0;
  }

  .citation {
    padding: 12px;
    padding-right: 44px;
    font-size: 0.7em;
  }

  .copy-button {
    width: 28px;
    height: 28px;
    top: 6px;
    right: 6px;
  }

  .copy-button svg {
    width: 14px;
    height: 14px;
  }

  ul {
    font-size: 0.95em;
    padding-left: 18px;
  }

  .metric {
    padding: 15px;
  }

  .metric .number {
    font-size: 2em;
  }

  .metric .label {
    font-size: 0.85em;
  }

  .theme-toggle {
    width: 32px;
    height: 32px;
  }

  .theme-toggle svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 360px) {
  body {
    padding: 10px 8px;
  }

  .title h1 {
    font-size: 1.3em;
  }

  .title h2 {
    font-size: 1em;
  }

  .section h2 {
    font-size: 1.2em;
  }

  .section h3 {
    font-size: 0.95em;
  }
}

@media print {
  body {
    max-width: 100%;
    padding: 0;
    background-color: #ffffff;
    color: #333333;
  }

  .links,
  .copy-button,
  .theme-toggle {
    display: none;
  }

  a {
    color: #000000;
    text-decoration: underline;
  }

  .abstract {
    border-left-color: #000000;
  }

  #scroll-top-button,
  #scroll-top-button svg {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body,
  .theme-toggle,
  .theme-toggle svg {
    transition: none;
  }
}