body {
  font-family: 'Noto Sans', 'Google Sans', sans-serif;
  background-color: #fdfdfd;
  color: #1f1f1f;
}

.publication-title {
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
  margin-bottom: 1.2rem !important;
  color: #1a1a1a;
  line-height: 1.2;
}

.nag-highlight {
  color: #b1331e;
  font-weight: 700;
  white-space: nowrap;
}

.publication-authors {
  font-family: 'Google Sans', sans-serif;
  margin-top: 0.4rem;
  line-height: 1.7;
}

.publication-authors a {
  color: hsl(204, 86%, 45%) !important;
}

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

.author-block {
  display: inline-block;
  margin-right: 0.15rem;
}

.publication-links {
  margin-top: 1.5rem;
}

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

.link-block a.button {
  background-color: #1f1f1f;
  border-color: #1f1f1f;
  color: #fff;
  transition: all 0.15s ease;
}

.link-block a.button:hover {
  background-color: #b1331e;
  border-color: #b1331e;
}

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

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

.subtitle {
  font-size: 1rem !important;
  color: #555;
  max-width: 980px;
  margin: 0 auto;
}

/* Stat cards */
.stat-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 1.2rem 0.8rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  height: 100%;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.stat-number {
  font-family: 'Google Sans', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #b1331e;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.92rem;
  color: #555;
  margin-top: 0.4rem;
}

/* Findings box: highlighted observation */
.findings-box {
  background-color: #f7f1ec;
  border-left: 4px solid #b1331e;
  padding: 12px 18px;
  margin: 1.2rem auto;
  font-size: 1rem;
  text-align: left;
  display: block;
  max-width: 760px;
  border-radius: 4px;
  color: #2a2a2a;
}

.findings-box p {
  margin: 0;
}

.findings-box strong {
  color: #b1331e;
}

/* Result tables */
.result-table {
  font-family: 'Google Sans', sans-serif;
  font-size: 0.86rem;
}

.result-table thead th {
  background-color: #1f1f1f;
  color: #fff !important;
  text-align: center;
  vertical-align: middle;
  font-weight: 600;
  border-color: #1f1f1f !important;
}

.result-table tbody td {
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

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

.result-table tbody tr.section-row td {
  background-color: #efe9e2;
  font-style: italic;
  font-weight: 600;
  text-align: center;
  color: #6e3019;
}

/* Cell-level shade — matches the paper's \bl{} marker */
.result-table tbody td.shade {
  background-color: #e8e8e8;
}

/* Delta subscripts to match \red{} \blue{} \gray{} markers */
.d-red,
.d-blue,
.d-gray {
  font-size: 0.7em;
  vertical-align: sub;
  margin-left: 1px;
  font-weight: 400;
}
.d-red  { color: #d63b3b; }
.d-blue { color: #2766c4; }
.d-gray { color: #888;     }

/* Wrap tables for horizontal scroll on small screens */
.table-container {
  overflow-x: auto;
}

/* BibTeX */
#BibTeX pre {
  background-color: #1f1f1f;
  color: #f5f5f5;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  font-size: 0.92rem;
  overflow-x: auto;
}

#BibTeX code {
  background-color: transparent;
  color: inherit;
  padding: 0;
}

#BibTeX h2.title {
  color: #1a1a1a;
}

/* Section titles */
.section .title.is-3 {
  margin-bottom: 1.2rem;
  color: #1a1a1a;
  position: relative;
  display: inline-block;
}

.section .title.is-3::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #b1331e;
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.section .title.is-4 {
  margin-bottom: 0.8rem;
  color: #2a2a2a;
}

.section .title.is-5 {
  font-weight: 400;
  font-style: italic;
}

/* Footer */
.footer {
  background-color: #fafafa;
  padding: 2rem 1.5rem;
  border-top: 1px solid #eee;
}

.footer .content p {
  color: #666;
  font-size: 0.95rem;
}

/* Inline code */
code {
  color: #b1331e;
  font-family: 'Source Code Pro', 'SFMono-Regular', Consolas, monospace;
  background-color: #f5f5f5;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.92em;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .publication-title {
    font-size: 1.6rem !important;
  }
  .stat-number {
    font-size: 1.5rem;
  }
  .result-table {
    font-size: 0.8rem;
  }
}
