:root {
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --text: #1c2128;
  --text-muted: #55606e;
  --border: #e3e6ea;
  --accent: #c8502a;
  --accent-dark: #a13f1f;
  --link: #1f5fa8;
  --card-shadow: 0 1px 3px rgba(20, 24, 30, 0.08), 0 1px 2px rgba(20, 24, 30, 0.06);
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Georgia", "Iowan Old Style", "Palatino Linotype", serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.sans {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero */
.hero {
  padding: 72px 24px 40px;
  text-align: center;
}

.venue-logo {
  display: inline-block;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px 34px;
  margin-bottom: 30px;
  box-shadow: var(--card-shadow);
}

.venue-logo img {
  height: 72px;
  width: auto;
  display: block;
}

@media (max-width: 480px) {
  .venue-logo img {
    height: 48px;
  }
}

h1.title {
  font-size: 2.15rem;
  line-height: 1.3;
  font-weight: 700;
  max-width: 820px;
  margin: 0 auto 26px;
}

.authors {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.authors sup {
  font-size: 0.65em;
  color: var(--text-muted);
}

.affiliations {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 28px;
}

.affiliations div {
  margin: 2px 0;
}

.buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.btn {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  transition: all 0.15s ease;
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn.primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

/* Teaser */
.teaser {
  padding: 8px 24px 56px;
}

.teaser figure {
  max-width: var(--max-width);
  margin: 0 auto;
}

.teaser img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
}

figcaption {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 14px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* Sections */
section.block {
  padding: 52px 24px;
  border-top: 1px solid var(--border);
}

section.block.alt {
  background: var(--bg-alt);
}

.block .container {
  max-width: var(--max-width);
}

h2.section-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}

h3.subsection-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  margin: 40px 0 14px;
}

h3.subsection-title:first-of-type {
  margin-top: 0;
}

.abstract p {
  font-size: 1.05rem;
  color: var(--text);
}

.figure-row {
  display: grid;
  gap: 18px;
  margin: 24px 0;
}

.figure-row.cols-2 {
  grid-template-columns: 1fr 1fr;
}

.figure-row.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 720px) {
  .figure-row.cols-2,
  .figure-row.cols-3 {
    grid-template-columns: 1fr;
  }
}

.figure-card img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
}

.figure-split {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 24px 0;
}

.figure-split-images {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.figure-split-images img {
  height: 190px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
}

.figure-split-text {
  flex: 1;
  font-size: 0.95rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .figure-split {
    flex-direction: column;
    align-items: flex-start;
  }

  .figure-split-images img {
    height: 150px;
  }
}

.figure-card figcaption {
  margin-top: 10px;
  text-align: left;
}

.full-figure {
  margin: 24px 0;
}

.full-figure img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
}

/* Objectives list */
.objectives {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (max-width: 720px) {
  .objectives {
    grid-template-columns: 1fr;
  }
}

.objective-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: var(--card-shadow);
}

section.block.alt .objective-card {
  background: var(--bg-alt);
}

.objective-card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-dark);
  margin-bottom: 8px;
}

.objective-card h4 {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

.objective-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-family: "Georgia", serif;
}

/* Task list */
.task-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.93rem;
}

@media (max-width: 640px) {
  .task-list {
    grid-template-columns: 1fr;
  }
}

.task-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.task-list b {
  color: var(--accent-dark);
}

/* Table */
.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--border);
  border-radius: 10px;
}

table.results-table {
  width: 100%;
  border-collapse: collapse;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  min-width: 640px;
}

table.results-table caption {
  caption-side: top;
  text-align: left;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 12px 16px 4px;
}

table.results-table th,
table.results-table td {
  padding: 9px 14px;
  text-align: right;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

table.results-table th:first-child,
table.results-table td:first-child {
  text-align: left;
}

table.results-table thead th {
  background: var(--bg-alt);
  font-weight: 700;
}

table.results-table tr.group-header td {
  background: var(--bg-alt);
  font-weight: 700;
  color: var(--accent-dark);
  border-top: 1px solid var(--border);
}

table.results-table tbody tr:last-child td {
  border-bottom: none;
}

/* BibTeX */
.bibtex-box {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
}

.bibtex-box pre {
  margin: 0;
  overflow-x: auto;
  font-size: 0.82rem;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  color: var(--text);
  line-height: 1.55;
}

.copy-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
}

.copy-btn:hover {
  color: var(--accent-dark);
  border-color: var(--accent);
}

/* Footer */
footer {
  padding: 36px 24px 48px;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.82rem;
  color: var(--text-muted);
}

footer a {
  color: var(--text-muted);
}

.credit-line {
  color: var(--text-muted);
  font-size: 0.9rem;
}
