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

/* Page wrapper - full width */
.page-section {
  width: 100%;
  padding: 3rem 5%;
  box-sizing: border-box;
}

.page-section.hero-section {
  padding: 2rem 5% 3rem;
  background: #fafafa;
}

/* Inner content wrappers */
.inner-narrow {
  max-width: 900px;
  margin: 0 auto;
}

.inner-wide {
  max-width: 1200px;
  margin: 0 auto;
}

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

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

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

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

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

/* Metric boxes */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media screen and (max-width: 900px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 500px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

.metric-box {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  padding: 1.5rem;
  color: white;
  text-align: center;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}
.metric-box h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.metric-box p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0;
}

/* Trajectory diagram */
.trajectory-diagram {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 2rem;
  margin: 1.5rem 0;
  border: 1px solid #e9ecef;
}

.recovery-indicator {
  display: inline-block;
  padding: 0.25em 0.75em;
  font-size: 85%;
  font-weight: 600;
  border-radius: 0.25rem;
  margin: 0.25rem;
}
.recovery-safe {
  background-color: #d4edda;
  color: #155724;
}
.recovery-unsafe {
  background-color: #f8d7da;
  color: #721c24;
}
.recovery-trend {
  background-color: #cce5ff;
  color: #004085;
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
.data-table th,
.data-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
}
.data-table th {
  background-color: #f8f9fa;
  font-weight: 600;
}
.data-table tr:hover {
  background-color: #f8f9fa;
}

/* Dashboard selector */
.dashboard-selector-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.dashboard-selector {
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  color: #363636;
  background: white;
  border: 2px solid #485fc7;
  border-radius: 10px;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  min-width: 280px;
  text-align: center;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23485fc7' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 48px;
}

.dashboard-selector:hover {
  border-color: #3850b7;
  box-shadow: 0 4px 12px rgba(72, 95, 199, 0.25);
}

/* Visualizer button */
.visualizer-btn {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.visualizer-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(17, 153, 142, 0.4);
  color: white;
}

/* Key Findings Cards */
.findings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media screen and (max-width: 768px) {
  .findings-grid {
    grid-template-columns: 1fr;
  }
}

.key-finding {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
}
.key-finding:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.key-finding h4 {
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #2c3e50;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.key-finding p {
  color: #555;
  line-height: 1.6;
  font-size: 0.95rem;
  margin: 0;
}

.key-finding.finding-success { border-left: 4px solid #27ae60; }
.key-finding.finding-success h4 i { color: #27ae60; }
.key-finding.finding-warning { border-left: 4px solid #e67e22; }
.key-finding.finding-warning h4 i { color: #e67e22; }
.key-finding.finding-info { border-left: 4px solid #3498db; }
.key-finding.finding-info h4 i { color: #3498db; }
.key-finding.finding-neutral { border-left: 4px solid #7f8c8d; }
.key-finding.finding-neutral h4 i { color: #7f8c8d; }

/* Timeline */
.timeline-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  margin: 1rem 0;
  flex-wrap: wrap;
}
.timeline-step {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
}
.step-aligned { background: #d4edda; color: #155724; }
.step-misaligned { background: #f8d7da; color: #721c24; }
.step-recovery { background: #cce5ff; color: #004085; }

/* Notification boxes */
.info-box {
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.info-box.problem {
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ed 100%);
}
.info-box.approach {
  background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
}

/* Footer */
.page-footer {
  background: #fafafa;
  padding: 2rem 5%;
  text-align: center;
}

/* Buttons row */
.buttons-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: white;
  border: 1px solid #dbdbdb;
  border-radius: 4px;
  color: #363636;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.nav-btn:hover {
  border-color: #485fc7;
  color: #485fc7;
}

/* Responsive table wrapper */
.table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
}

/* Figure container - minimal addition for images */
.figure-container {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  border: 1px solid #e9ecef;
}

.figure-container img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.figure-container figcaption {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  text-align: justify;
}