:root {
  --accent: #0f766e;
  --accent-light: #14b8a6;
  --accent-bg: #ecfdf5;
  --text-muted: #64748b;
}

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

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

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

.hero-gradient {
  background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 100%);
}

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

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.stat-card {
  background: var(--accent-bg);
  border: 1px solid #99f6e4;
  border-radius: 12px;
  padding: 18px 12px;
  text-align: center;
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}

.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.env-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.env-card {
  background: #f8fafc;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 16px;
}

.env-card h4 {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
}

.complexity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.complexity-card {
  background: #f8fafc;
  border-left: 4px solid #6366f1;
  border-radius: 8px;
  padding: 16px;
}

.complexity-card h4 {
  color: #4338ca;
  font-weight: 700;
  margin-bottom: 8px;
}

.gallery-tabs ul {
  border-bottom: 2px solid #e2e8f0;
}

.gallery-tabs li.is-active a {
  border-bottom: 2px solid var(--accent);
  color: var(--accent);
}

.gallery-tabs a {
  border-bottom: 2px solid transparent;
  color: #64748b;
  padding: 10px 18px;
}

.gallery-tabs a:hover {
  color: var(--accent);
}

.task-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.task-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.task-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.task-card-visual {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.task-card-body {
  padding: 16px;
}

.task-card-env {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 6px;
}

.task-card-instruction {
  font-size: 0.9rem;
  color: #334155;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 10px;
}

.task-card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
}

.tag.nav { background: #dbeafe; color: #1d4ed8; }
.tag.interact { background: #fce7f3; color: #be185d; }
.tag.hybrid { background: #fef3c7; color: #b45309; }

.performance-table-wrapper {
  overflow-x: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin: 20px 0;
}

.performance-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.performance-table th,
.performance-table td {
  padding: 10px 12px;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
}

.performance-table thead th {
  background: #f8fafc;
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
}

.performance-table tbody td:first-child {
  text-align: left;
  font-weight: 500;
  white-space: nowrap;
}

.performance-table tbody tr:nth-of-type(even) {
  background: #f9fafb;
}

.performance-table .best {
  background: #ecfdf5;
  color: #065f46;
  font-weight: 700;
}

.performance-table .second {
  text-decoration: underline;
}

.performance-table .group-header td {
  background: #f0fdfa;
  font-weight: 600;
  font-style: italic;
  text-align: left;
  color: var(--accent);
}

.scenario-table th,
.scenario-table td {
  padding: 10px 14px;
  text-align: center;
  border: 1px solid #e2e8f0;
}

.scenario-table th {
  background: var(--accent);
  color: white;
}

.scenario-table tbody tr:last-child {
  font-weight: 700;
  background: #f0fdfa;
}

.finding-item {
  background: #f8fafc;
  border-left: 4px solid var(--accent-light);
  padding: 18px 20px;
  margin: 12px 0;
  border-radius: 0 8px 8px 0;
}

.finding-item strong {
  color: var(--accent);
}

.figure-carousel-hint {
  color: var(--text-muted);
  margin: 8px 0 12px;
}

.figure-carousel {
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: min(72vh, 680px);
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  padding: 8px 4px 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.figure-carousel::-webkit-scrollbar {
  width: 8px;
  height: 0;
}

.figure-carousel::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.figure-slide {
  flex: 0 0 auto;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  scroll-snap-align: start;
}

.figure-media {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.figure-img,
.paper-figure .figure-img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  vertical-align: top;
}

.figure-slide figcaption {
  margin-top: 10px;
  text-align: center;
}

.collapsible-section {
  margin-top: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.collapsible-section > summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  color: var(--accent);
  background: #f8fafc;
  list-style: none;
}

.collapsible-section > summary::-webkit-details-marker {
  display: none;
}

.collapsible-section > summary::after {
  content: " ▾";
  float: right;
  color: #94a3b8;
}

.collapsible-section[open] > summary::after {
  content: " ▴";
}

.collapsible-content {
  padding: 16px 20px 20px;
}

.collapsible-content--figure,
.experiment-figure-block {
  padding: 8px 0 20px;
  margin-bottom: 8px;
}

.collapsible-subsection {
  margin-top: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fafafa;
}

.collapsible-subsection > summary {
  cursor: pointer;
  padding: 12px 16px;
  font-weight: 500;
  color: #334155;
  list-style: none;
}

.collapsible-subsection > summary::-webkit-details-marker {
  display: none;
}

.paper-figure {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  width: 100%;
}

.publication-authors a[target="_self"] {
  color: inherit;
  cursor: default;
}

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

.content.has-text-justified {
  text-align: justify;
}

@media (max-width: 768px) {
  .publication-title {
    font-size: 1.6rem !important;
  }
}
