:root {
  --text: #363636;
  --muted: #555555;
  --link: #3273dc;
  --line: #dbdbdb;
  --light: #f5f5f5;
  --table-head: #f2f2f2;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: #ffffff;
  font-family: "Noto Sans", "Google Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }

.section {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
}
.hero { text-align: center; padding-top: 42px; }
.hero h1 {
  max-width: 980px;
  margin: 0 auto 22px;
  font-family: "Google Sans", "Noto Sans", Arial, sans-serif;
  font-size: 2.35rem;
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text);
}
.authors {
  margin: 0 auto 8px;
  max-width: 900px;
  font-size: 1.05rem;
  line-height: 1.55;
}
.affiliations {
  margin: 0 auto 18px;
  color: var(--muted);
  font-size: 1rem;
}
.links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 30px;
}
.links a {
  display: inline-block;
  min-width: 82px;
  padding: 7px 16px;
  border-radius: 999px;
  background: #363636;
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.2;
}
.links a:hover { text-decoration: none; background: #4a4a4a; }

h2 {
  margin: 0 0 18px;
  text-align: center;
  font-family: "Google Sans", "Noto Sans", Arial, sans-serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text);
}
.text-section p,
.section-text {
  width: min(900px, 100%);
  margin: 0 auto 16px;
  color: var(--text);
  font-size: 1.03rem;
  text-align: left;
}

.project-figure {
  margin: 26px auto 0;
  text-align: center;
}
.project-figure img {
  margin-left: auto;
  margin-right: auto;
  border-radius: 2px;
  cursor: zoom-in;
}
.hero-figure { max-width: 800px; }
.medium-figure { max-width: 780px; }
.method-figure { max-width: 860px; }
.synthetic-figure { max-width: 860px; }
.gallery-main-figure { width: 100% !important; max-width: 100% !important; }
.gallery-main-figure img { width: 100% !important; height: auto !important; display: block !important; }
#gallery .project-figure { width: 100%; }
#gallery .project-figure img { width: 100%; height: auto; }
.synthetic-figure img { width: 92%; }
figcaption {
  max-width: 900px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  text-align: left;
}

.results-section { width: min(1120px, calc(100% - 40px)); }
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 24px auto 34px;
}
table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}
caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 8px;
  font-weight: 600;
  color: var(--text);
}
th, td {
  padding: 7px 8px;
  border: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}
th:first-child, td:first-child { text-align: left; }
th {
  background: var(--table-head);
  font-weight: 600;
}
th span { font-weight: 400; font-size: 0.8rem; color: var(--muted); }
.group-row th { background: #eeeeee; }
.model-header td {
  background: #f7f7f7;
  font-weight: 600;
  text-align: center !important;
}
.highlight td { font-weight: 700; background: #fbfbfb; }

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 20px;
}
.gallery-item {
  margin: 0;
  min-height: 0;
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
}
.gallery-item figcaption {
  font-size: 0.86rem;
  margin-top: 8px;
}

pre {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 16px 18px;
  overflow-x: auto;
  border-radius: 3px;
  background: var(--light);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.45;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.82);
  z-index: 1000;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 96vw;
  max-height: 92vh;
  background: #ffffff;
}
.lightbox button {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #222222;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 760px) {
  .section, .results-section { width: min(100% - 24px, 980px); padding: 22px 0; }
  .hero h1 { font-size: 1.95rem; }
  h2 { font-size: 1.65rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-figure, .medium-figure, .method-figure, .synthetic-figure { max-width: 100%; }
  .synthetic-figure img { width: 100%; }
}

/* Revision: center full-width result tables and align qualitative gallery cards. */
.wide-section {
  width: min(1180px, calc(100% - 40px));
}
.results-section {
  width: min(1050px, calc(100% - 40px));
}
.table-wrap {
  display: flex;
  justify-content: center;
  overflow-x: visible;
}
table {
  min-width: 0;
  width: min(100%, 980px);
  table-layout: fixed;
  font-size: 0.82rem;
  margin-left: auto;
  margin-right: auto;
}
th, td {
  padding: 6px 5px;
  white-space: normal;
  line-height: 1.25;
}
th:first-child, td:first-child {
  width: 19%;
}
caption {
  text-align: center;
  font-weight: 500;
}
.gallery-section {
  padding-top: 28px;
  width: min(1400px, calc(100% - 40px));
}
.gallery-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 34px;
  align-items: stretch;
}
.gallery-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100%;
}
.gallery-image-box {
  width: 100%;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #eeeeee;
  border-radius: 4px;
  background: #ffffff;
  overflow: hidden;
}
.gallery-image-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
}
.gallery-item figcaption {
  min-height: 74px;
  font-size: 0.88rem;
  line-height: 1.38;
  margin-top: 10px;
}
details {
  margin-top: 3px;
  color: var(--muted);
}
summary {
  cursor: pointer;
  color: var(--link);
  display: inline-block;
}
.asset-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
.asset-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  background: #ffffff;
}

.gallery-full-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.synthetic-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-top: 24px;
}
.synthetic-col {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.synthetic-col img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}
.synthetic-col figcaption {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 980px) {
  .results-section, .wide-section { width: min(100% - 24px, 980px); }
  .table-wrap { overflow-x: auto; justify-content: flex-start; }
  table { min-width: 980px; font-size: 0.82rem; }
  .gallery-image-box { height: auto; min-height: 240px; }
  .gallery-image-box img { height: auto; }
  .synthetic-row { flex-direction: column; }
}

/* Make bold numbers in tables more visually prominent */
td strong {
  font-weight: 900;
  color: #000;
  letter-spacing: -0.01em;
}
