body {
  font-family: 'Noto Sans', sans-serif;
}

.section {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.footer .icon-link {
  font-size: 25px;
  color: #000;
}

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

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

.section .title.is-3 {
  text-align: center;
}

.section .title.is-4 {
  font-size: 1.15rem;
}

.section .title.is-5 {
  font-size: 1rem;
}

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

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

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

.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 a {
  color: hsl(204, 86%, 53%) !important;
}

.publication-authors a:hover {
  text-decoration: underline;
}

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

.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%;
}

/* ═══════════════════════════════════════════ */
/* Key Metrics (Teaser)                       */
/* ═══════════════════════════════════════════ */

.key-metric {
  padding: 1.2rem 0.5rem;
}

.key-metric-value {
  font-family: 'Google Sans', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: hsl(204, 86%, 53%);
  line-height: 1.1;
}

.key-metric-label {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.4rem;
  line-height: 1.3;
}

/* ═══════════════════════════════════════════ */
/* Chart Containers                           */
/* ═══════════════════════════════════════════ */

.chart-container {
  width: 100%;
  min-height: 260px;
  overflow: visible;
}

.chart-container-large {
  height: 500px;
  overflow: hidden;
}

.chart-container svg {
  max-width: 100%;
}

.chart-container svg text {
  font-size: 13px !important;
  font-family: 'Noto Sans', sans-serif;
}

.chart-container svg .tick text {
  font-size: 12px !important;
  fill: #64748b;
}

.chart-container svg .domain {
  stroke: #cbd5e1;
}

.chart-container svg .tick line {
  stroke: #e2e8f0;
}

.dashboard-panel .dashboard-chart svg text {
  font-size: 14px !important;
}

/* ═══════════════════════════════════════════ */
/* Summary Dashboard                          */
/* ═══════════════════════════════════════════ */

.dashboard-container {
  margin-bottom: 2rem;
}

.dashboard-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px 28px 22px;
  color: #334155;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.dashboard-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 16px;
  text-align: center;
  font-family: 'Google Sans', sans-serif;
}

.dashboard-kpis {
  display: flex;
  justify-content: space-around;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.dashboard-kpi {
  text-align: center;
  min-width: 120px;
  flex: 1;
}

.kpi-value {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: 'Google Sans', sans-serif;
}

.kpi-label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kpi-sub {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 2px;
}

.dashboard-chart {
  overflow-x: auto;
}

/* ═══════════════════════════════════════════ */
/* Chart Carousel                             */
/* ═══════════════════════════════════════════ */

.chart-carousel {
  margin-top: 1rem;
}

.carousel-slides {
  position: relative;
}

.carousel-slide {
  display: none;
}

.carousel-slide.active {
  display: block;
}

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 1rem;
  padding: 0.5rem 0;
}

.carousel-btn {
  padding: 8px 20px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
  font-family: 'Noto Sans', sans-serif;
  color: #334155;
}

.carousel-btn:hover:not(:disabled) {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
}

.carousel-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.carousel-indicator {
  font-size: 0.85rem;
  color: #666;
  font-weight: 600;
  min-width: 50px;
  text-align: center;
}

/* ═══════════════════════════════════════════ */
/* Panels                                     */
/* ═══════════════════════════════════════════ */

.panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.carousel-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* ═══════════════════════════════════════════ */
/* Chart Descriptions & View More             */
/* ═══════════════════════════════════════════ */

.chart-description {
  font-size: 0.95rem;
  color: #555;
  margin-top: 10px;
  line-height: 1.5;
}

.chart-view-more {
  background: none;
  border: none;
  color: hsl(204, 86%, 53%);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
  text-decoration: underline;
  font-family: inherit;
}

.chart-view-more:hover {
  color: hsl(204, 86%, 40%);
}

.chart-details-content {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.6;
  margin-top: 10px;
  padding: 14px 18px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
}

.chart-details-collapsed {
  display: none;
}

/* ═══════════════════════════════════════════ */
/* Chart Tooltip                              */
/* ═══════════════════════════════════════════ */

.chart-tooltip {
  position: fixed;
  z-index: 9999;
  background: #1e293b;
  color: #f1f5f9;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  font-family: 'Noto Sans', sans-serif;
  letter-spacing: 0.01em;
}

/* ═══════════════════════════════════════════ */
/* Replay Cards                               */
/* ═══════════════════════════════════════════ */

.replay-cards {
  min-height: 80px;
}

.replay-placeholder {
  color: #999;
  text-align: center;
  padding: 2rem;
}

.replay-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.replay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.replay-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.replay-dataset-select {
  padding: 4px 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.85rem;
  font-family: inherit;
  background: #fff;
}

.replay-dataset-label {
  font-weight: 600;
  font-size: 0.9rem;
}

.replay-play-btn {
  padding: 6px 18px;
  border: none;
  border-radius: 6px;
  background: hsl(204, 86%, 53%);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}

.replay-play-btn:hover:not(:disabled) {
  background: hsl(204, 86%, 45%);
}

.replay-play-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.replay-prompt {
  padding: 8px 16px;
  font-size: 0.8rem;
  color: #666;
  border-bottom: 1px solid #f0f0f0;
}

.replay-rows {
  display: flex;
  padding: 0;
}

.method-row {
  flex: 1;
  padding: 12px 16px;
  border-right: 1px solid #e2e8f0;
  min-width: 0;
}

.method-row:last-child {
  border-right: none;
}

.method-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.method-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: #1e293b;
}

.method-meta {
  font-size: 0.75rem;
  color: #64748b;
}

.method-output {
  font-family: 'Castoro', serif;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #334155;
  min-height: 1.2em;
  max-height: 260px;
  overflow-y: auto;
  padding: 6px 0;
}

.method-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.method-progress-area {
  flex: 1;
  position: relative;
}

.method-progress-bar {
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}

.method-progress-fill {
  height: 100%;
  background: hsl(204, 86%, 53%);
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s linear;
}

.method-progress-stats {
  font-size: 0.7rem;
  color: #94a3b8;
  white-space: nowrap;
}

.draft-counter {
  font-weight: 700;
  color: hsl(204, 86%, 53%);
}

.method-draft-segments {
  display: flex;
  gap: 2px;
  margin-top: 4px;
  height: 8px;
}

.method-draft-segments-hidden .draft-seg {
  opacity: 0;
}

.draft-seg {
  background: #10b981;
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.2s;
}

.draft-seg-visible {
  opacity: 1;
}

/* ═══════════════════════════════════════════ */
/* Responsive                                 */
/* ═══════════════════════════════════════════ */

/* ═══════════════════════════════════════════ */
/* Responsive                                 */
/* ═══════════════════════════════════════════ */

@media (max-width: 768px) {
  .key-metric-value {
    font-size: 2rem;
  }
  .dashboard-kpis {
    flex-direction: column;
    align-items: center;
  }
  .carousel-panel {
    padding: 16px;
  }
  .kpi-value {
    font-size: 1.3rem;
  }
}
