/* ============================================================
   Base
   ============================================================ */

body {
  font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #363636;
  line-height: 1.7;
  font-weight: 400;
}

/* ============================================================
   Hero
   ============================================================ */

.hero.is-dark {
  background: #1a1a2e;
}

.venue-badge {
  display: inline-block;
  background: #3273dc;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

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

.author-line {
  font-size: 1.05rem;
  color: #cdd5e0 !important;
  margin-bottom: 0.5rem !important;
}

.affiliation-line {
  font-size: 0.9rem;
  color: #b0bac8 !important;
  margin-bottom: 0.3rem !important;
}

.affiliation-note {
  font-size: 0.82rem;
  color: #8a95a5 !important;
  margin-bottom: 1.5rem !important;
}

.hero-buttons {
  gap: 0.75rem;
}

.hero-buttons .button {
  font-weight: 500;
  padding-left: 1.4rem;
  padding-right: 1.4rem;
}

/* ============================================================
   Section typography
   ============================================================ */

.section-heading {
  font-family: 'Google Sans', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e8e8e8;
}

.section-intro {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 2rem;
  font-style: italic;
}

.body-text {
  font-size: 1rem;
  color: #363636;
  margin-bottom: 1.5rem;
}

.result-title {
  font-family: 'Google Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.75rem;
  margin-top: 2rem;
}

.subsection-label {
  font-size: 1rem;
  font-weight: 600;
  color: #3273dc;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ============================================================
   Section backgrounds
   ============================================================ */

.bg-light {
  background-color: #f8f9fb;
}

/* ============================================================
   Abstract
   ============================================================ */

.tldr-box {
  background: #eef3ff;
  border-left: 4px solid #3273dc;
  padding: 0.9rem 1.2rem;
  border-radius: 0 6px 6px 0;
  margin-bottom: 1.5rem;
  font-size: 0.97rem;
  color: #2c3e50;
}

.tldr-label {
  font-weight: 700;
  color: #3273dc;
  margin-right: 0.5rem;
}

.abstract-box {
  background: #f0f4ff;
  border: 1px solid #d0daf5;
  border-radius: 10px;
  padding: 1.6rem 2rem;
  margin-top: 1rem;
}

.abstract-text {
  font-size: 1rem;
  line-height: 1.8;
  color: #363636;
  margin: 0;
}

/* ============================================================
   Methodology figure
   ============================================================ */

.methodology-figure {
  margin: 2rem 0;
  text-align: center;
}

.methodology-figure img {
  max-width: 100%;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}

.methodology-figure figcaption {
  font-size: 0.88rem;
  color: #666;
  font-style: italic;
  margin-top: 0.6rem;
}

/* ============================================================
   Result blocks
   ============================================================ */

.result-block {
  margin-bottom: 3rem;
}

.figure-row {
  margin-top: 1rem;
}

/* ============================================================
   Figure cards
   ============================================================ */

.fig-card {
  margin: 0;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
}

.fig-card img {
  width: 100%;
  display: block;
}

.fig-card figcaption {
  padding: 0.65rem 0.85rem;
  font-size: 0.83rem;
  color: #555;
  font-style: italic;
  line-height: 1.5;
}

.fig-card-sm {
  margin: 0;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  overflow: hidden;
}

.fig-card-sm img {
  width: 100%;
  display: block;
}

.fig-full img {
  max-width: 100%;
  width: 100%;
}

/* ============================================================
   Quantitative metric 2x2 grid
   ============================================================ */

.metric-grid {
  display: grid;
  grid-template-columns: 44px 1fr 1fr;
  gap: 8px;
  align-items: center;
  margin-top: 1rem;
}

.metric-grid-header {
  font-size: 0.9rem;
  font-weight: 600;
  color: #444;
  padding-bottom: 4px;
}

.metric-grid-label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.rotated-label {
  display: inline-block;
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  font-size: 0.82rem;
  font-weight: 600;
  color: #555;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

/* ============================================================
   Tabs
   ============================================================ */

.tabs.is-boxed li.is-active a {
  background: #fff;
  border-bottom-color: #fff;
  color: #3273dc;
  font-weight: 600;
}

.tabs.is-boxed a {
  color: #555;
}

.tab-content {
  display: none;
}

.tab-content.is-active {
  display: block;
}

/* ============================================================
   BibTeX
   ============================================================ */

.bibtex-block {
  background: #f0f4f8;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  padding: 1.5rem;
  font-size: 0.88rem;
  line-height: 1.7;
  overflow-x: auto;
  color: #2c3e50;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: #f0f2f5;
  padding: 2rem 1.5rem;
}

.footer a {
  color: #3273dc;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* ============================================================
   Responsive
   ============================================================ */

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

  .metric-grid {
    grid-template-columns: 36px 1fr 1fr;
  }

  .section-heading {
    font-size: 1.3rem;
  }
}
