:root {
  --bg: #ffffff;
  --text: #363636;
  --heading: #222222;
  --muted: #4a4a4a;
  --light-bg: #f5f5f5;
  --light-hover: #eeeeee;
  --border: #dbdbdb;
  --link: #3273dc;
  --font-sans: 'Noto Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Google Sans', 'Noto Sans', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.65;
  overflow-x: hidden;
}

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

.container.is-max-desktop {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* HERO */
.hero.teaser {
  padding-top: 72px;
  padding-bottom: 12px;
}

.hero-center {
  text-align: center;
}

.publication-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.18;
  color: var(--heading);
  margin-bottom: 14px;
}

.publication-authors {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 22px;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 9999px;
  background: var(--light-bg);
  color: var(--heading);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s;
}

.pill-btn:hover {
  background: var(--light-hover);
  text-decoration: none;
}

.pill-icon, .pill-svg {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

/* SECTIONS */
.section {
  padding: 36px 0;
}

.abstract-section {
  padding-top: 28px;
}

.abstract-col {
  max-width: 80%;
  margin: 0 auto;
}

.abstract-text {
  text-align: justify;
  margin-bottom: 18px;
}

.highlights {
  padding-left: 20px;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.teaser-fig {
  text-align: center;
  margin-top: 12px;
}

.teaser-fig img {
  width: 90%;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.fig-pair-wrap {
  margin-bottom: 24px;
}

.fig-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.fig-pair img {
  width: 100%;
  border-radius: 6px;
}

.chart-pair img {
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.teaser-fig figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

.sec-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 12px;
}

.sec-intro {
  margin-bottom: 20px;
  color: var(--muted);
}

.sub-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--heading);
  margin: 26px 0 12px;
}

/* BOOKTABS STYLE TABLES */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 10px;
}

.book-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border-top: 2px solid var(--heading);
  border-bottom: 2px solid var(--heading);
}

.book-table thead th {
  text-align: left;
  padding: 10px 12px;
  font-weight: 700;
  color: var(--heading);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.book-table tbody td {
  padding: 9px 12px;
  border-bottom: 1px solid #efefef;
  vertical-align: top;
}

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

.book-table code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--light-bg);
  padding: 2px 5px;
  border-radius: 4px;
  word-break: break-all;
}

.use-list {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* FOOTER */
.footer {
  background: var(--light-bg);
  padding: 36px 0;
  margin-top: 24px;
}

.footer-inner {
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
}

@media (max-width: 768px) {
  .container.is-max-desktop { padding: 0 16px; }
  .hero.teaser { padding-top: 40px; }
  .abstract-col { max-width: 100%; }
  .abstract-text { text-align: left; }
  .teaser-fig img { width: 100%; }
  .fig-pair { grid-template-columns: 1fr; }
  .publication-authors { font-size: 17px; }
}

@media (max-width: 480px) {
  .pill-btn { padding: 8px 14px; font-size: 13px; }
  .sec-title { font-size: 22px; }
}
