:root {
  --green: #61a52d;
  --green-dark: #37771c;
  --text: #2f342f;
  --line: #d8ded5;
  --code: #f4f7f2;
}

* { 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(960px, calc(100% - 36px));
  min-height: 104px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #a9d76d 0 16%, #4d9b27 17% 57%, #246b23 58% 100%);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.72), 0 1px 8px rgba(24,72,23,.18);
}
.site-logo svg { width: 38px; height: 38px; }
.site-logo:hover { text-decoration: none; }
.header-inner nav { display: flex; gap: 18px; align-items: center; }
.header-inner nav a { color: var(--green); font-size: 14px; font-weight: 600; }

.paper-page {
  width: min(960px, calc(100% - 36px));
  margin: 0 auto;
  padding: 12px 0 40px;
}
.paper-page p { margin: 0 0 13px; text-align: justify; }
.paper-title { margin-top: 0 !important; }
.paper-title em { color: #454a45; }
.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(760px, 100%);
  margin: 26px auto 28px;
  text-align: center;
}
.paper-figure.wide { width: min(900px, 100%); }
.paper-figure img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.paper-figure figcaption {
  margin-top: 10px;
  color: #3f453f;
  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: #3e7d22; }

.subpage { padding-top: 10px; }
.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 #dce4d8;
  background: var(--code);
  color: #263529;
  font-family: "Courier New", monospace;
  font-size: 12px;
  line-height: 1.55;
}
.result-table { margin: 14px 0 26px; font-size: 12px; }
.result-table th, .result-table td { padding: 7px 9px; border: 1px solid #cfd7cc; text-align: center; }
.result-table th { background: #eef4ea; font-weight: 700; }
.result-table th:first-child, .result-table td:first-child { text-align: left; }
.result-table .best-row { background: #f2f8ee; }

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

@media (max-width: 680px) {
  body { font-size: 12.5px; }
  .site-header { border-top-width: 4px; }
  .header-inner { min-height: 88px; }
  .site-logo { width: 56px; height: 56px; }
  .site-logo svg { width: 31px; height: 31px; }
  .header-inner nav { gap: 12px; }
  .header-inner nav a { font-size: 12px; }
  .paper-page { padding-top: 6px; }
  .paper-page ul { margin-left: 22px; }
  .result-table { display: block; overflow-x: auto; white-space: nowrap; }
}
