/* Modern CSS Variables for consistent theming */
:root {
  --primary-color: #2f7d7e;
  --primary-hover: #246466;
  --secondary-color: #5d6875;
  --accent-color: #d8734f;
  --signal-color: #3f6fb5;
  --text-primary: #273238;
  --text-secondary: #5d6875;
  --text-light: #8c969d;
  --background-primary: #ffffff;
  --background-secondary: #f7f8f5;
  --background-accent: #eef3f2;
  --border-color: #dce4e2;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --gradient-primary: linear-gradient(135deg, #2f7d7e 0%, #3f6fb5 100%);
  --gradient-accent: linear-gradient(135deg, #2f7d7e 0%, #d8734f 100%);
  --gradient-subtle: linear-gradient(135deg, #f7f8f5 0%, #eef3f2 100%);
  --border-radius: 8px;
  --border-radius-lg: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth scrolling for better UX */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  background-color: var(--background-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* Modern Button Styles */
.button {
  border-radius: var(--border-radius) !important;
  font-weight: 600 !important;
  transition: var(--transition) !important;
  border: 2px solid transparent !important;
  position: relative;
  overflow: hidden;
}

.button.is-dark {
  background: var(--text-primary) !important;
  border: none !important;
  color: white !important;
  box-shadow: var(--shadow-md);
}

.button.is-dark:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--primary-color) !important;
}

.button.is-dark:active {
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}

.footer .icon-link {
    font-size: 25px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer .icon-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.link-block a {
    margin: 8px 4px;
}

/* Hero Section Modernization */
.hero {
  position: relative;
  overflow: hidden;
}

.hero.is-light {
  background: var(--gradient-subtle);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.hero-body {
  padding: 4rem 1.5rem;
}

/* Publication Content Styling */
.publication-title {
    font-family: 'Inter', sans-serif !important;
    font-weight: 800 !important;
    color: var(--text-primary) !important;
    margin-bottom: 2rem !important;
    line-height: 1.1 !important;
}

.publication-header .hero-body {
  padding: 6rem 1.5rem 4rem;
}

.publication-authors {
    font-family: 'Inter', sans-serif !important;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.publication-venue {
    color: var(--text-secondary);
    width: fit-content;
    font-weight: 600;
    background: var(--background-accent);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    display: inline-block;
}

.publication-awards {
    color: #ef4444;
    width: fit-content;
    font-weight: 700;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    border-left: 4px solid #ef4444;
    margin-top: 1rem;
}

.publication-authors a {
   color: var(--primary-color) !important;
   text-decoration: none;
   font-weight: 600;
   transition: var(--transition);
   position: relative;
}

.publication-authors a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: var(--gradient-accent);
    transition: var(--transition);
}

.publication-authors a:hover::after {
    width: 100%;
}

.publication-authors a:hover {
    color: var(--primary-hover) !important;
}

.author-block {
  display: inline-block;
  margin-right: 0.5rem;
}

/* Section Titles */
.title.is-3 {
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  color: var(--text-primary);
  margin-bottom: 2rem !important;
  position: relative;
  padding-bottom: 1rem;
}

.title.is-3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

/* Content Improvements */
.content.has-text-justified {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.content.has-text-justified p {
  margin-bottom: 1.5rem;
}

/* MMCR Experiment Page */
.project-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--primary-hover);
  background: var(--background-accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
}

.hero-summary {
  max-width: 820px;
  margin: 0 auto 1.75rem;
  color: var(--text-secondary);
  font-size: 1.08rem;
  line-height: 1.8;
}

.publication-affiliation {
  display: grid;
  gap: 0.25rem;
  margin: 0.6rem auto 1.5rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.45;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.metric-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 132px;
  padding: 1.25rem;
  background: var(--background-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.metric-value {
  color: var(--primary-color);
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.1;
}

.metric-label {
  margin-top: 0.45rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.45;
}

.analysis-grid,
.card-grid,
.takeaway-grid {
  display: grid;
  gap: 1rem;
}

.analysis-grid,
.takeaway-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.analysis-card,
.info-card,
.takeaway-card {
  background: var(--background-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.analysis-card h3,
.info-card h3,
.takeaway-card h3 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.analysis-card p,
.info-card p,
.takeaway-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  border-radius: 50%;
  color: white;
  background: var(--gradient-primary);
  box-shadow: var(--shadow-sm);
}

.workflow-diagram {
  margin: 0 auto 1.75rem;
  padding: 1.1rem;
  background: linear-gradient(135deg, #f8fbfa 0%, #f1f5f3 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.workflow-container {
  max-width: 1180px !important;
}

.ablation-container {
  max-width: 1080px !important;
}

.workflow-row {
  display: grid;
  align-items: stretch;
  gap: 0.95rem;
}

.workflow-row-four {
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
}

.workflow-row-three {
  grid-template-columns: 1fr auto 1fr auto 1fr;
}

.workflow-row-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.workflow-row-five .workflow-arrow {
  display: none;
}

.workflow-node,
.workflow-mini {
  position: relative;
  min-width: 0;
  background: var(--background-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.workflow-node {
  padding: 1.05rem 1.1rem;
  min-height: 180px;
}

.workflow-mini {
  padding: 0.95rem;
  min-height: 145px;
}

.workflow-node::before,
.workflow-mini::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  background: var(--primary-color);
}

.workflow-node.blue {
  --workflow-accent: #6f8f97;
}

.workflow-node.purple {
  --workflow-accent: #8a869a;
}

.workflow-node.green {
  --workflow-accent: #749283;
}

.workflow-node.orange {
  --workflow-accent: #b58e7b;
}

.workflow-node::before,
.workflow-mini::before {
  background: var(--workflow-accent, var(--primary-color));
}

.workflow-node > i,
.workflow-mini > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  color: var(--workflow-accent, var(--primary-color));
  background: color-mix(in srgb, var(--workflow-accent, var(--primary-color)) 14%, white);
  border: 1px solid color-mix(in srgb, var(--workflow-accent, var(--primary-color)) 28%, white);
}

.workflow-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-right: 0.5rem;
  border-radius: 50%;
  color: white;
  background: color-mix(in srgb, var(--workflow-accent, var(--primary-color)) 86%, #273238);
  font-size: 0.9rem;
  font-weight: 800;
}

.workflow-node h3,
.workflow-mini h4,
.workflow-band-title h3 {
  color: var(--text-primary);
  font-weight: 800;
  line-height: 1.25;
}

.workflow-node h3 {
  margin-top: 0.25rem;
  margin-bottom: 0.55rem;
  font-size: 1.04rem;
}

.workflow-mini h4 {
  margin-bottom: 0.45rem;
  font-size: 0.98rem;
}

.workflow-node p,
.workflow-mini p,
.workflow-loop {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.5;
}

.workflow-node p strong,
.workflow-mini p strong {
  display: block;
  margin-bottom: 0.18rem;
  color: var(--text-primary);
  font-size: 0.88rem;
}

.workflow-arrow,
.workflow-down {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-weight: 800;
}

.workflow-arrow {
  font-size: 1.15rem;
  color: #74827d;
}

.workflow-down {
  margin: 0.5rem 0;
  font-size: 1.45rem;
}

.workflow-band {
  --workflow-accent: var(--primary-color);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid color-mix(in srgb, var(--workflow-accent) 32%, white);
  border-radius: var(--border-radius);
}

.workflow-band.teal {
  --workflow-accent: #6f9694;
}

.workflow-band.blue {
  --workflow-accent: #7890a1;
}

.workflow-band .workflow-mini::before {
  background: var(--workflow-accent);
}

.workflow-band .workflow-mini > i {
  background: var(--workflow-accent);
}

.workflow-band-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  min-width: 0;
}

.workflow-band-title .workflow-number {
  flex: 0 0 30px;
  margin-right: 0;
  background: var(--workflow-accent);
}

.workflow-band-title h3 {
  min-width: 0;
}

.workflow-loop {
  margin-top: 0.9rem;
  padding: 0.65rem 1rem;
  background: #f3f8f7;
  border: 1px solid #c9dddd;
  border-radius: var(--border-radius);
  color: #275b5d;
  text-align: center;
  font-weight: 700;
}

.detail-block {
  margin-bottom: 1.25rem;
  padding: 1.35rem;
  background: var(--background-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.detail-block h3,
.subsection-title {
  color: var(--text-primary);
  font-size: 1.22rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.subsection-title {
  margin-top: 2rem;
  text-align: center;
}

.detail-block p,
.experiment-note p {
  color: var(--text-secondary);
  line-height: 1.75;
}

.detail-block pre {
  margin-top: 1rem;
  margin-bottom: 0;
}

.equation-stack {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.equation {
  display: block;
  min-height: 76px;
  padding: 1.15rem;
  background: #fbfcfa;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  overflow-x: auto;
  text-align: center;
}

.equation math {
  display: inline-block;
  max-width: 100%;
  font-size: 1.45rem;
  line-height: 1.5;
}

.symbol-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
}

.symbol-list div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.8rem;
  background: var(--background-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.symbol-formula {
  display: flex;
  align-items: center;
  min-height: 28px;
  color: var(--text-primary);
  white-space: nowrap;
}

.symbol-formula math {
  font-size: 1.16rem;
}

.symbol-list strong {
  color: var(--text-primary);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  white-space: nowrap;
}

.symbol-list span {
  color: var(--text-secondary);
  line-height: 1.55;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.detail-grid div,
.experiment-note {
  padding: 1rem;
  background: var(--background-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.detail-grid strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.detail-grid span {
  color: var(--text-secondary);
  line-height: 1.6;
}

.experiment-note {
  margin-top: 1.25rem;
}

.setup-list {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.setup-list div {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  background: var(--background-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.setup-list strong {
  color: var(--text-primary);
}

.setup-list span {
  color: var(--text-secondary);
}

.config-block {
  margin-top: 1.25rem;
}

.section-note {
  max-width: 760px;
  margin: 0 auto 1.5rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.7;
}

.table-container {
  overflow-x: auto;
}

.results-table {
  width: 100%;
  background: var(--background-primary);
  border: 1px solid var(--border-color);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.results-table th,
.results-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  vertical-align: top;
}

.results-table th {
  background: var(--background-accent);
  color: var(--text-primary);
  font-weight: 700;
  text-align: left;
}

.results-table th:not(:first-child),
.results-table td:not(:first-child) {
  text-align: center;
}

.results-table.descriptive-table th:last-child,
.results-table.descriptive-table td:last-child {
  text-align: left;
}

.results-table tr:last-child td {
  border-bottom: none;
}

.results-table .highlight-row td {
  background: #edf7f4;
  border-top: 1px solid #b9d9d2;
  border-bottom: 1px solid #b9d9d2;
  color: #34413c;
  font-weight: 600;
}

.results-table td:first-child {
  color: var(--text-primary);
  font-weight: 700;
}

.results-table.compact {
  max-width: 860px;
  margin: 0 auto 1.5rem;
}

.ablation-container .results-table.compact {
  max-width: 960px;
}

.results-table.wide-table {
  max-width: 960px;
}

.descriptive-table th:nth-child(2),
.descriptive-table td:nth-child(2),
.runtime-table th:nth-child(2),
.runtime-table td:nth-child(2),
.runtime-table th:nth-child(4),
.runtime-table td:nth-child(4),
.runtime-table th:nth-child(5),
.runtime-table td:nth-child(5) {
  width: 128px;
}

.takeaway-grid {
  margin-top: 1.25rem;
}

.transfer-findings {
  margin-top: 1rem;
  padding: 0.85rem;
  width: min(1040px, calc(100vw - 2rem));
  margin-left: 50%;
  transform: translateX(-50%);
  overflow-x: auto;
  background: linear-gradient(180deg, #fbfdfc 0%, #f4f8f7 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  scrollbar-width: thin;
}

.transfer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 960px;
  gap: 0.75rem;
}

.transfer-case {
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #d2dfdc;
  border-radius: 7px;
  box-shadow: 0 8px 20px rgba(28, 46, 43, 0.06);
}

.transfer-case:last-child {
  border-right: none;
}

.transfer-case h4 {
  margin: 0 0 0.35rem;
  color: var(--text-primary);
  font-size: 1.02rem;
  font-weight: 800;
  white-space: nowrap;
}

.transfer-route {
  display: inline-flex;
  margin: 0 0 0.7rem;
  padding: 0.22rem 0.45rem;
  max-width: 100%;
  color: #4d625f;
  background: #eef6f4;
  border: 1px solid #d6e5e2;
  border-radius: 999px;
  font-size: 0.69rem;
  line-height: 1.2;
  white-space: nowrap;
}

.transfer-metrics {
  display: grid;
  gap: 0.32rem;
  margin: 0;
  padding-top: 0.65rem;
  border-top: 1px solid #d3e2df;
}

.transfer-metrics div {
  display: grid;
  grid-template-columns: 1fr 4.5rem;
  align-items: baseline;
  gap: 0.75rem;
  white-space: nowrap;
}

.transfer-metrics dt,
.transfer-metrics dd {
  margin: 0;
}

.transfer-metrics dt {
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.transfer-metrics dd {
  color: var(--text-primary);
  font-size: 0.98rem;
  font-weight: 700;
  text-align: right;
}

.transfer-metrics .emphasis dd {
  color: var(--primary-color);
  font-weight: 900;
}

.takeaway-card {
  border-left: 4px solid var(--accent-color);
}

.report-frame {
  width: 100%;
  height: min(76vh, 760px);
  min-height: 520px;
  overflow: hidden;
  background: var(--background-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.report-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.conclusion-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.conclusion-card {
  padding: 1.25rem;
  background: var(--background-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  border-top: 4px solid var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.conclusion-card h3 {
  color: var(--text-primary);
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
}

.conclusion-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Footer Improvements */
.footer {
  background: var(--background-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 1.5rem;
}

.footer .content {
  color: var(--text-secondary);
  line-height: 1.7;
}

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

.footer a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Code Block Styling */
pre {
  background: var(--background-accent) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--border-radius) !important;
  padding: 1.5rem !important;
  font-size: 0.9rem !important;
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

code {
  background: var(--background-accent) !important;
  color: var(--text-primary) !important;
  font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace !important;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
}

.scroll-to-top:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}


/* More Works Dropdown */
.more-works-container {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 1000;
}

.more-works-btn {
  background: var(--background-primary);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
}

.more-works-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--background-secondary);
  border-color: var(--primary-color);
}

.more-works-btn .dropdown-arrow {
  transition: var(--transition);
  font-size: 0.8rem;
}

.more-works-btn.active .dropdown-arrow {
  transform: rotate(180deg);
}

.more-works-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 400px;
  max-width: 90vw;
  background: var(--background-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  max-height: 70vh;
  overflow-y: auto;
}

.more-works-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.dropdown-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.close-btn:hover {
  background: var(--background-accent);
  color: var(--text-primary);
}

.works-list {
  padding: 1rem;
}

.work-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  margin-bottom: 0.5rem;
}

.work-item:hover {
  background: var(--background-accent);
  transform: translateX(4px);
}

.work-info h5 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.work-info p {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.work-venue {
  font-size: 0.8rem;
  color: var(--text-light);
  font-style: italic;
}

.work-item .fas {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}


/* Mobile Responsive Improvements */
@media screen and (max-width: 768px) {
  .metric-grid,
  .card-grid.three {
    grid-template-columns: 1fr;
  }

  .workflow-row-four,
  .workflow-row-three,
  .workflow-row-five {
    grid-template-columns: 1fr;
  }

  .workflow-arrow {
    transform: rotate(90deg);
    min-height: 1.25rem;
  }

  .workflow-node,
  .workflow-mini {
    min-height: auto;
  }

  .analysis-grid,
  .takeaway-grid,
  .detail-grid,
  .conclusion-grid,
  .symbol-list {
    grid-template-columns: 1fr;
  }

  .symbol-list div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .metric-card {
    min-height: 112px;
  }

  .setup-list div {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .results-table th,
  .results-table td {
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  .hero-body {
    padding: 2rem 1rem;
  }
  
  .publication-header .hero-body {
    padding: 3rem 1rem 2rem;
  }
  
  .publication-title {
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1.5rem !important;
  }

  .publication-authors {
    font-size: 1rem !important;
  }
  
  .button {
    margin: 0.25rem !important;
    font-size: 0.875rem !important;
    padding: 0.75rem 1rem !important;
  }
  
  .more-works-container {
    bottom: 2rem;
    right: 1rem;
    top: auto;
  }

  .scroll-to-top {
    bottom: 5.6rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
  
  .more-works-btn {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }
  
  .more-works-dropdown {
    width: calc(100vw - 2rem);
    right: -1rem;
    bottom: calc(100% + 0.5rem);
    top: auto;
  }
  
  .content.has-text-justified {
    font-size: 1rem;
  }

  .hero-summary {
    font-size: 1rem;
  }

  .report-frame {
    height: 70vh;
    min-height: 420px;
  }
}

@media screen and (max-width: 480px) {
  .publication-title {
    font-size: 2rem !important;
  }
  
  .hero-body {
    padding: 1.5rem 0.75rem;
  }
  
  .more-works-container {
    position: fixed;
    bottom: 2rem;
    right: 1rem;
    z-index: 1000;
  }
  
  .more-works-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
  
  .more-works-dropdown {
    position: absolute;
    bottom: calc(100% + 0.5rem);
    right: 0;
    width: calc(100vw - 2rem);
    max-width: 90vw;
  }
  
  .link-block {
    display: block;
    margin-bottom: 0.5rem;
  }
  
  .button {
    width: 100%;
    justify-content: center;
  }

  .project-kicker {
    font-size: 0.76rem;
  }

  .metric-value {
    font-size: 1.85rem;
  }

  .workflow-band-title {
    align-items: flex-start;
    gap: 0.55rem;
  }

  .workflow-band-title h3 {
    font-size: 1rem;
    line-height: 1.3;
  }

  .report-frame {
    min-height: 360px;
  }
}

/* Tablet Responsive */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .hero-body {
    padding: 3rem 2rem;
  }
  
  .publication-header .hero-body {
    padding: 4rem 2rem 3rem;
  }
}

@media screen and (max-width: 768px) {
  .transfer-findings {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    transform: none;
  }
}

/* Animation for page load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero, .section {
  animation: fadeInUp 0.6s ease-out;
}

/* Improved focus states for accessibility */
.button:focus,
.related-works-btn:focus,
a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}


/* Print styles */
@media print {
  .more-works-container {
    display: none;
  }
  
  .hero, .section {
    animation: none;
  }
  
  .button {
    background: transparent !important;
    color: var(--text-primary) !important;
    box-shadow: none !important;
  }
}



