:root {
  --green: #2f8b62;
  --green-dark: #1e6848;
  --blue: #3b73ad;
  --text: #2e3431;
  --muted: #6c756f;
  --line: #d5ded8;
  --soft: #f1f7f3;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header { border-top: 5px solid var(--green); }
.header-inner {
  width: min(1000px, calc(100% - 36px));
  min-height: 106px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #a9dfbc 0 13%, #3aa174 14% 57%, #22694c 58% 100%);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.75), 0 1px 8px rgba(24,72,48,.18);
}
.site-logo svg { width: 43px; height: 43px; }
.site-logo:hover { text-decoration: none; }
.header-inner nav { display: flex; gap: 19px; align-items: center; }
.header-inner nav a { color: var(--green); font-size: 14px; font-weight: 600; }

.paper-page {
  width: min(1000px, calc(100% - 36px));
  margin: 0 auto;
  padding: 10px 0 42px;
}
.paper-page p { margin: 0 0 13px; text-align: justify; }
.paper-title { margin-top: 0 !important; }
.paper-title em { color: #454c48; }
.authors { color: #505a54; font-size: 12px; line-height: 1.65; }
.paper-page ul { margin: 5px 0 20px 38px; padding: 0; }
.paper-page li { margin: 2px 0; padding-left: 3px; }
.section-label { margin-top: 12px !important; }

.paper-figure {
  width: min(790px, 100%);
  margin: 26px auto 29px;
  text-align: center;
}
.paper-figure.wide { width: min(940px, 100%); }
.paper-figure img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.paper-figure figcaption {
  margin-top: 10px;
  color: #3f4742;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.news-table, .result-table { width: 100%; border-collapse: collapse; }
.news-table { margin-top: 22px; }
.news-table td { padding: 8px 12px; border: 1px solid var(--line); }
.news-table a { display: block; color: var(--green-dark); }

.subpage { padding-top: 8px; }
.subpage h3 { margin: 0 0 20px; font-size: 18px; line-height: 1.3; }
.subpage h5 { margin: 24px 0 8px; font-size: 14px; line-height: 1.35; }
.subpage pre {
  margin: 12px 0 20px;
  padding: 14px 16px;
  overflow-x: auto;
  border: 1px solid #d6e2da;
  background: var(--soft);
  color: #26372e;
  font-family: "Courier New", monospace;
  font-size: 12px;
  line-height: 1.55;
}
.result-table { margin: 14px 0 27px; font-size: 12px; }
.result-table th, .result-table td { padding: 7px 8px; border: 1px solid #cdd8d1; text-align: center; }
.result-table th { background: #eaf3ed; font-weight: 700; }
.result-table th:first-child, .result-table td:first-child { text-align: left; }
.result-table .best-row { background: #eef8f1; }

.stat-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 20px 0 28px;
  border: 1px solid var(--line);
}
.stat-line div { padding: 16px 14px; border-right: 1px solid var(--line); }
.stat-line div:last-child { border-right: 0; }
.stat-line strong { display: block; color: var(--green-dark); font-size: 22px; line-height: 1.1; }
.stat-line span { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }

.site-footer {
  width: min(1000px, calc(100% - 36px));
  margin: 0 auto;
  padding: 15px 0 24px;
  border-top: 1px solid var(--line);
  color: #747d77;
  font-size: 11px;
  text-align: center;
}
.site-footer p { margin: 0; }

@media (max-width: 700px) {
  body { font-size: 12.5px; }
  .site-header { border-top-width: 4px; }
  .header-inner { min-height: 88px; }
  .site-logo { width: 57px; height: 57px; }
  .site-logo svg { width: 35px; height: 35px; }
  .header-inner nav { gap: 12px; }
  .header-inner nav a { font-size: 12px; }
  .paper-page { padding-top: 5px; }
  .paper-page ul { margin-left: 22px; }
  .result-table { display: block; overflow-x: auto; white-space: nowrap; }
  .stat-line { grid-template-columns: repeat(2, 1fr); }
  .stat-line div:nth-child(2) { border-right: 0; }
  .stat-line div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
