.rows {
  margin-top: 2rem;
}

.rows + .rows {
  margin-top: 2.5rem;
}

/* Reduce gap between hero and first content section */
.hero + .rows {
  margin-top: 1rem;
}

.rows .title {
  text-transform: capitalize;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
}
body {
  /* font-family: 'Noto Sans', sans-serif; */
  font-family: 'Google Sans', sans-serif;
}


.footer .icon-link {
    font-size: 1em;
    color: #000;
}

.link-block a {
    margin-top: 5px;
    margin-bottom: 5px;
}

.dnerf {
  font-variant: small-caps;
}


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

.teaser {
  font-family: 'Google Sans', sans-serif;
}


.publication-banner {
  max-height: parent;

}

.publication-banner video {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  object-fit: fit;
}

.publication-header .hero-body {
}

h1.title.publication-title {
  font-family: 'Google Sans', sans-serif;
  color: #8C1515;
  font-size: 2.6rem;
  line-height: 1.2;
}

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

.publication-venue {
    color: #555;
    width: fit-content;
    font-weight: bold;
}

.publication-awards {
    color: #ff3860;
    width: fit-content;
    font-weight: bolder;
}

.publication-authors {
}

.publication-authors a {
   color: #000000 !important;
}

.conference-authors a {
   color: #000000 !important;
}

.publication-authors a:hover {
    text-decoration: underline;
    color: #414141 !important;
}

.author-block {
  display: inline-block;
}

.publication-banner img {
}

.publication-authors {
  /*color: #4286f4;*/
}

.publication-video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;

    overflow: hidden;
    border-radius: 10px !important;
}

.publication-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.publication-body img {
}

.results-carousel {
  overflow: hidden;
}

.results-carousel .item {
  margin: 5px;
  overflow: hidden;
  border: 1px solid #bbb;
  border-radius: 10px;
  padding: 0;
  font-size: 0;
}

.results-carousel video {
  margin: 0;
}


.interpolation-panel {
  background: #f5f5f5;
  border-radius: 10px;
}

.interpolation-panel .interpolation-image {
  width: 100%;
  border-radius: 5px;
}

.interpolation-video-column {
}

.interpolation-panel .slider {
  margin: 0 !important;
}

.interpolation-panel .slider {
  margin: 0 !important;
}

#interpolation-image-wrapper {
  width: 100%;
}
#interpolation-image-wrapper img {
  border-radius: 5px;
}

/* 3D Flow Visualization Widget Styles */
.visualization-widget {
  margin-top: 3rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 960px;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}

.visualization-widget .columns {
  margin-left: 0;
  margin-right: 0;
}

.visualization-widget .column {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.thumbnail-card {
  background: #fafafa;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  border: 1px solid #e6e6e6;
  padding: 1.15rem;
}

.thumbnail-card-inner {
  background: #ffffff;
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
}

.thumbnail-carousel {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.thumbnail-container {
  flex: 1;
  width: 100%;
  overflow: hidden;
  padding: 0.5rem 0.25rem 1rem 0.25rem;
  scroll-behavior: smooth;
}

.thumbnail-scroll {
  display: flex;
  flex-direction: row;
  gap: 1.25rem;
  align-items: stretch;
  flex-wrap: nowrap;
  transition: transform 0.45s ease-in-out;
}

.thumbnail-nav {
  border: none;
  background: #ffffff;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  cursor: pointer;
  color: #3273dc;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.thumbnail-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.thumbnail-nav:disabled {
  opacity: 0.4;
  cursor: default;
  box-shadow: none;
}

.thumbnail-nav i {
  pointer-events: none;
}

.thumbnail-item {
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 6px;
  transition: all 0.3s ease, opacity 0.2s ease;
  background: white;
  box-shadow: 0 3px 6px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  width: 184px;
  opacity: 1;
}

.thumbnail-item.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.thumbnail-item:hover {
  border-color: #3273dc;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.thumbnail-item.active {
  border-color: #3273dc;
  background: #eef3ff;
  transform: translateY(-2px) scale(1.01);
}

.thumbnail-item img {
  width: 100%;
  height: 124px;
  object-fit: cover;
  border-radius: 8px;
}

.thumbnail-label {
  display: none;
}

.thumbnail-dots {
  margin-top: 0.85rem;
  display: flex;
  justify-content: center;
  gap: 0.65rem;
}

.thumbnail-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #555;
  transition: transform 0.2s ease, background 0.2s ease;
  cursor: pointer;
  border: none;
  padding: 0;
}

.thumbnail-dot.active {
  transform: scale(1.7);
  background: #000;
}

.visualization-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.subsection-heading {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-align: left;
  letter-spacing: 0.02em;
}

.gradient-heading {
  background: linear-gradient(90deg, #ff0000 0%, #ff8000 14%, #ffff00 28%, #00ff00 42%, #00ffff 57%, #0080ff 71%, #8000ff 85%, #ff00ff 100%);
  background-size: 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.media-results {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.video-panel {
  flex: 1 1 320px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
}

.video-panel > div {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.results-panel {
  flex: 1 1 280px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
}

.results-card {
  background: white;
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  border: 1px solid #e6e6e6;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.results-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #1f2933;
}

.results-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.results-summaries {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.results-rows-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.results-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.results-row-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2933;
  margin-bottom: 0.25rem;
  text-align: left;
}

.results-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: row;
  gap: 1rem;
  justify-content: space-around;
  flex-wrap: wrap;
}

.results-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem;
  border-radius: 8px;
  background: #f7f9fc;
  font-size: 0.9rem;
  color: #3b3b3b;
  flex: 1;
  min-width: 80px;
  text-align: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.results-list li:hover {
  background: #e8f0ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}

.results-list li .method-name {
  font-weight: 500;
  color: #1f2933;
}

.results-list li .method-score {
  font-size: 1rem;
  color: #3b3b3b;
}

.results-list li.best-result .method-name,
.results-list li.best-result .method-score {
  font-weight: 700;
}

.results-summaries {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.results-empty {
  font-size: 0.95rem;
  color: #6b7280;
  font-style: italic;
  display: none;
}

@media (max-width: 900px) {
  .visualization-content {
    gap: 1rem;
  }

  .media-results {
    flex-direction: column;
  }

  .video-panel,
  .results-panel {
    width: 100%;
  }
}

.video-container {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.video-container video {
  border-radius: 6px;
  margin-bottom: 1rem;
  /* Ensure native controls are interactive and above any siblings */
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.video-info {
  text-align: center;
}

.video-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

.video-description {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

.viser-container {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: relative;
}

.viser-container .gradient-heading {
  margin-bottom: 1rem;
  text-align: center;
}

.viser-container iframe {
  border-radius: 6px;
  margin-bottom: 0;
}

.viser-frame-wrapper {
  position: relative;
}

.viser-overlay-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.9);
  color: #1f2937;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  pointer-events: none;
}

.viser-overlay-badge i {
  color: #3273dc;
}

.viser-info {
  text-align: center;
}

.viser-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

.viser-description {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

/* Custom scrollbar for thumbnail container */
.thumbnail-container::-webkit-scrollbar {
  height: 6px;
}

.thumbnail-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.thumbnail-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.thumbnail-container::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.justify {
  text-align: justify;
}

.button-container {
  color: #53565A;
  justify-items: center;
  padding-top: 0.5em;
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}

.button {
  color: #53565A;
  font-family: 'Google Sans', sans-serif;
  border-radius: 0.5em;
  min-width: 6em;
  width: auto;
  padding-left: 1em;
  padding-right: 1em;
  height: auto;
  min-height: 2.2em;
  padding-top: 0.4em;
  padding-bottom: 0.4em;
  margin-left: 0.4em;
  margin-right: 0.4em;
  text-align: center;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1em;
  vertical-align: middle;
  border: solid 0px transparent;
  background-color: #f2f2f2;
  white-space: nowrap;
}

.button:hover {
  background-color: #f2f2f2;
  filter: brightness(97%);
}

/* Responsive button styles for small screens */
@media screen and (max-width: 600px) {
  .button-container {
    flex-direction: column;
    align-items: center;
    gap: 0.6em;
  }
  
  .button {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 280px;
    white-space: normal;
    word-wrap: break-word;
  }
}

.affiliation {
  display: inline-block;
  color: #2c2c2c;
  font-family: 'Google Sans', sans-serif;
  padding-top: 0.8em;
  text-align: center;
}

.affiliation-note {
  display: inline-block;
  color: #828282;
  font-family: 'Google Sans', sans-serif;
  font-size: 1.2em;
  padding-bottom: 0.8em;
  text-align: center;
}

hr.rounded {
  display: none;
}

.bibtex {
  font-family: "Courier", monospace;
  font-size: 0.7em !important;
  color: #2f2f2f;
  background-color: #f2f2f2;
  border: 5px;
  border-color: #2f2f2f;
  border-radius: 10px;
  margin-top: 0.6em;
  margin-bottom: 3em;
  padding-top: 0.6em;
  padding-bottom: 0.6em;
  vertical-align: center;
  padding-left: 0.5em;
  padding-right: 0.5em;
  hyphens: none !important;
  line-height: unset !important;
}

#method-image img {
    padding: 0;
    display: block;
    margin: 0 auto;
    max-height: 100%;
    max-width: 100%;
}

.method-image {
    padding: 0;
    display: block;
    margin: 0 auto;
    max-height: 100%;
    max-width: 100%;
}

/* Robustness Hover Instruction */
.hover-instruction {
    text-align: center;
    margin: 1rem 0 0.5rem 0;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    color: #555;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.hover-instruction i {
    color: #3273dc;
    font-size: 1.1rem;
}

/* Robustness Hover Card */
.robustness-hover-card {
    position: fixed;
    z-index: 9999;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    padding: 1rem;
    min-width: 280px;
    max-width: 320px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    border: 2px solid #e6e6e6;
}

.robustness-hover-card.visible {
    opacity: 1;
}

.hover-card-section {
    margin-bottom: 1rem;
}

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

.hover-card-title {
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    color: #1f2933;
    padding-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.success-rate {
    font-weight: 700;
    color: #3273dc;
    font-size: 0.9rem;
    background-color: #e8f0ff;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.improvement-indicator {
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    white-space: nowrap;
}

.improvement-indicator.positive {
    color: #27ae60;
    background-color: #d4edda;
}

.improvement-indicator.negative {
    color: #e74c3c;
    background-color: #f8d7da;
}

.improvement-indicator.neutral {
    color: #6c757d;
    background-color: #e9ecef;
}

.hover-card-image {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    display: block;
}

.hover-card-description {
    text-align: center;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
}

.robustness-video-wrapper {
    position: relative;
    cursor: help;
}

/* Responsive layout for robustness evaluation columns */
@media screen and (max-width: 768px) {
    .robustness-evaluation-columns .column.is-one-third-tablet {
        width: 100% !important;
        flex: none !important;
    }
}

/* Task Tabs Styling */
.task-tabs-container {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
}

.task-tabs-container ul {
    border-bottom: none;
    gap: 1rem;
    display: flex;
    justify-content: center;
}

.task-tabs-container .task-tab {
    margin: 0;
    margin-left: 0.25rem;
    margin-right: 0.25rem;
}

.task-tabs-container .task-tab a {
    border: 2px solid #dbdbdb;
    border-radius: 6px;
    padding: 0.5rem 1.5rem;
    transition: all 0.2s ease;
}

.task-tabs-container .task-tab a:hover {
    border-color: #3273dc;
    background-color: #f5f5f5;
}

.task-tabs-container .task-tab.is-active a {
    border-color: #3273dc;
    background-color: #3273dc;
    color: white;
}

.task-tabs-container .task-tab.is-active a:hover {
    border-color: #2360d4;
    background-color: #2360d4;
}

/* Video Zoom Lens Styling */
.video-zoom-lens {
    position: fixed;
    z-index: 10000;
    background: transparent;
    border-radius: 12px;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8),
                0 0 0 3px rgba(0, 0, 0, 0.2),
                0 8px 32px rgba(0, 0, 0, 0.35);
    padding: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    border: none;
    overflow: hidden;
}

.video-zoom-lens.visible {
    opacity: 1;
}

.video-zoom-lens canvas {
    display: block;
    border-radius: 12px;
    width: 200px;
    height: 200px;
}

/* Failure Modes Section Styles */
.failure-modes-container {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: flex-start;
    margin-top: 1.5rem;
}

.sankey-column {
    flex: 1;
    min-width: 0;
    max-width: 55%;
    display: flex;
    flex-direction: column;
}

.click-instruction {
    text-align: center;
    margin: 0 0 0.5rem 0;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    color: #555;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.click-instruction i {
    color: #e15759;
    font-size: 1.1rem;
}

.sankey-container {
    flex: 1;
    min-width: 0;
}

.sankey-container svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Clickable endpoint styles */
.sankey-endpoint,
.sankey-label-endpoint {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.sankey-endpoint rect.sankey-clickable,
.sankey-label-endpoint rect.sankey-clickable {
    transition: all 0.2s ease;
}

.sankey-endpoint:hover rect.sankey-clickable,
.sankey-label-endpoint:hover rect.sankey-clickable {
    filter: brightness(1.1);
    stroke: #333;
    stroke-width: 2px;
}

.sankey-label-endpoint:hover text.sankey-clickable,
.sankey-label-endpoint:hover text.sankey-clickable tspan {
    font-weight: 600;
}

.sankey-label-endpoint.active text.sankey-clickable,
.sankey-label-endpoint.active text.sankey-clickable tspan {
    font-weight: 700 !important;
}

/* Add a highlight glow to active elements */
.sankey-endpoint.active rect.sankey-clickable {
    filter: brightness(1.1) drop-shadow(0 0 4px rgba(225, 87, 89, 0.5));
    stroke: #000;
    stroke-width: 2px;
}

.sankey-label-endpoint.active rect.sankey-clickable {
    fill: #fef2f2 !important;
    fill-opacity: 1 !important;
    stroke: #e15759;
    stroke-width: 3px;
    filter: drop-shadow(0 2px 8px rgba(225, 87, 89, 0.4));
}

/* Dim non-active endpoints when one is selected */
.sankey-container.has-selection .sankey-endpoint:not(.active),
.sankey-container.has-selection .sankey-label-endpoint:not(.active) {
    opacity: 0.4;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.sankey-container.has-selection .sankey-endpoint:not(.active):hover,
.sankey-container.has-selection .sankey-label-endpoint:not(.active):hover {
    opacity: 0.75;
}

/* Failure Detail Panel */
.failure-detail-panel {
    flex: 1;
    min-width: 0;
    max-width: 45%;
}

.failure-detail-content {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid #e6e6e6;
}

.failure-detail-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #e15759;
    margin-bottom: 0.75rem;
    text-align: center;
}

.failure-detail-description {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: justify;
}

.failure-detail-video-container {
    border-radius: 8px;
    overflow: hidden;
    background: transparent;
}

.failure-detail-video-container video {
    display: block;
    width: 100%;
    border-radius: 8px;
}

.failure-video-caption {
    text-align: center;
    font-size: 0.9rem;
    color: #555;
    font-style: italic;
    line-height: 1.3;
    margin: 0.65rem auto 0;
    padding: 0.2rem 0.85rem;
    background: none;
    border-radius: 0;
    display: block;
    width: fit-content;
}

/* Responsive layout for failure modes */
@media screen and (max-width: 900px) {
    .failure-modes-container {
        flex-direction: column;
    }

    .sankey-column,
    .failure-detail-panel {
        max-width: 100%;
        width: 100%;
    }

    .sankey-column {
        order: 1;
    }

    .failure-detail-panel {
        order: 2;
    }
}

/* Interactive Method Diagram Styles */
.method-interactive-container {
    position: relative;
    width: 100%;
    margin: 1rem 0;
    overflow-anchor: none;
}

.method-interactive-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.method-interactive-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.method-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.method-hotspot {
    position: absolute;
    cursor: pointer;
    pointer-events: auto;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.25s ease;
    background: rgba(50, 115, 220, 0.0);
}

.method-hotspot:hover {
    background: rgba(50, 115, 220, 0.12);
    border-color: rgba(50, 115, 220, 0.5);
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(50, 115, 220, 0.25);
}

.method-hotspot.active {
    background: rgba(50, 115, 220, 0.18);
    border-color: #3273dc;
    box-shadow: 0 4px 20px rgba(50, 115, 220, 0.35);
}

.method-hotspot.can-highlight-results {
    border-style: dashed;
}

.method-hotspot.can-highlight-results:hover,
.method-hotspot.can-highlight-results.active {
    border-style: solid;
}

/* Method Explanation Card */
.method-explanation-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-top: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid #e6e6e6;
    visibility: hidden;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease-out, max-height 0.3s ease-out, visibility 0.3s;
}

.method-explanation-card.visible {
    visibility: visible;
    opacity: 1;
    max-height: 300px;
    overflow: visible;
}

.method-explanation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.method-explanation-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #3273dc;
    margin: 0;
}

.method-explanation-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.method-explanation-close:hover {
    color: #333;
}

.method-explanation-content {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
}

.method-explanation-content strong {
    color: #333;
}

/* Click instruction for method diagram */
.method-click-instruction {
    text-align: center;
    margin: 0.75rem 0 1rem 0;
    padding: 0.6rem;
    background: #f0f7ff;
    border-radius: 8px;
    color: #3273dc;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid #d0e3ff;
}

.method-click-instruction i {
    font-size: 1rem;
}

/* Highlight effect for results section */
.results-highlight {
    position: relative;
    z-index: 10;
}

.results-highlight::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 3px solid #3273dc;
    border-radius: 12px;
    pointer-events: none;
    animation: pulseHighlight 1.5s ease-in-out infinite;
    z-index: 100;
}

@keyframes pulseHighlight {
    0%, 100% {
        border-color: #3273dc;
        box-shadow: 0 0 8px 2px rgba(50, 115, 220, 0.4);
    }
    50% {
        border-color: #5a9bff;
        box-shadow: 0 0 15px 5px rgba(50, 115, 220, 0.3);
    }
}

/* Ensure parent containers don't clip the highlight */
.visualization-content .column {
    position: relative;
    overflow: visible !important;
}

.visualization-content .columns {
    overflow: visible !important;
}
