:root {
  --project-accent: #3273dc;
  --project-surface: #f6f7f9;
  --project-border: #dfe3e8;
  --project-text-muted: #59636e;
}

html { scroll-behavior: smooth; }

body {
  color: #20252b;
  font-family: 'Noto Sans', sans-serif;
}

.publication-header .hero-body { padding-bottom: 2rem; }

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

.publication-subtitle {
  margin-inline: auto;
  max-width: 58rem;
}

.publication-authors a { color: var(--project-accent); }
.publication-authors a:hover { text-decoration: underline; }

.author-block {
  display: inline-block;
  margin: 0 0.35rem 0.35rem;
}

.publication-venue {
  color: var(--project-text-muted);
  font-weight: 700;
  margin-top: 0.75rem;
}

.placeholder-link { cursor: default; opacity: 0.65; }

.publication-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1.4rem;
}

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

.teaser img,
.teaser video,
.media-card img,
.media-card video {
  border-radius: 0.75rem;
  display: block;
  height: auto;
  width: 100%;
}

.teaser .subtitle {
  margin: 1.5rem auto 0;
  max-width: 54rem;
}

.section .title,
.section-intro { text-align: center; }

.workflow-steps {
  counter-reset: workflow;
  display: grid;
  gap: 0.85rem;
  list-style: none;
  margin: 1.75rem auto 0;
  max-width: 40rem;
  padding: 0;
  text-align: left;
}

.workflow-steps li {
  background: var(--project-surface);
  border: 1px solid var(--project-border);
  border-radius: 0.75rem;
  counter-increment: workflow;
  padding: 0.95rem 1rem 1rem 4.1rem;
  position: relative;
}

.workflow-steps li::before {
  align-items: center;
  background: var(--project-accent);
  border-radius: 999px;
  color: #fff;
  content: counter(workflow);
  display: flex;
  font-weight: 700;
  height: 1.85rem;
  justify-content: center;
  left: 1rem;
  position: absolute;
  top: 1rem;
  width: 1.85rem;
}

.workflow-steps h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.2rem;
}

.workflow-steps h3 a:hover { text-decoration: underline; }

.workflow-steps p {
  color: var(--project-text-muted);
  margin: 0;
}

.section-intro {
  color: var(--project-text-muted);
  margin: -0.75rem auto 2rem;
  max-width: 48rem;
}

.media-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

.media-grid--stacked { grid-template-columns: minmax(0, 1fr); }

.media-grid--synced-stack {
  box-sizing: border-box;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  left: 50%;
  margin-left: -32.5vw;
  padding-inline: 0.75rem;
  position: relative;
  width: 65vw;
}

.media-grid--synced-stack .media-card {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.media-grid--synced-stack .media-card img,
.media-grid--synced-stack .media-card video {
  aspect-ratio: 480 / 280;
  height: auto;
  object-fit: contain;
  width: 100%;
}

.media-grid--paired {
  align-items: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.media-grid--paired .media-card img {
  background: var(--project-surface);
  max-height: 42rem;
  object-fit: contain;
}

.media-grid--planner-matrix {
  gap: 0.55rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.media-card { margin: 0; }

.media-card figcaption {
  color: var(--project-text-muted);
  padding-top: 0.65rem;
  text-align: center;
}

.media-grid--planner-matrix figcaption {
  font-size: 0.75rem;
  line-height: 1.25;
  padding-top: 0.35rem;
}

@media (max-width: 768px) {
  .media-grid--planner-matrix { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .media-grid--paired { grid-template-columns: minmax(0, 1fr); }
  .media-grid--planner-matrix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.module-placeholder {
  align-items: center;
  background: var(--project-surface);
  border: 2px dashed var(--project-border);
  border-radius: 0.75rem;
  color: var(--project-text-muted);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 12rem;
  padding: 2rem;
  text-align: center;
}


.table-scroll { overflow-x: auto; }
.results-table table {
  border-collapse: collapse;
  font-size: 0.9rem;
  width: 100%;
}
.results-table th,
.results-table td {
  border-bottom: 1px solid var(--project-border);
  padding: 0.45rem 0.55rem;
  text-align: center;
}
.results-table th { font-weight: 700; }
.results-table thead tr:first-child th:first-child,
.results-table td:first-child { text-align: left; }
.results-table figcaption,
.table-note {
  color: var(--project-text-muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  text-align: center;
}


.module-placeholder p {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.embed-frame iframe {
  border: 1px solid var(--project-border);
  border-radius: 0.75rem;
  width: 100%;
}

.interactive-app {
  background: var(--project-surface);
  border: 1px solid var(--project-border);
  border-radius: 0.75rem;
  min-height: 16rem;
  overflow: hidden;
}

.interactive-error {
  color: #b42318;
  padding: 1rem;
  text-align: center;
}

pre {
  border-radius: 0.5rem;
  overflow-x: auto;
}

.footer { padding: 3rem 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
