:root {
  color-scheme: light;
  --ink: #202326;
  --muted: #626b73;
  --soft: #f3f6f7;
  --paper: #ffffff;
  --line: #dbe2e6;
  --accent: #167a5a;
  --blue: #2b75a3;
  --green: #26735b;
  --amber: #a86f16;
  --shadow: 0 18px 45px rgba(24, 32, 38, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid rgba(32, 35, 38, 0.08);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  color: var(--accent);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--ink);
}

main {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  padding: clamp(58px, 8vw, 110px) 0 40px;
  text-align: center;
}

.venue,
.section-heading p {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1 {
  max-width: 1040px;
  margin: 0 auto 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6.5vw, 78px);
  font-weight: 700;
  line-height: 1.03;
}

.subtitle {
  max-width: 820px;
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 22px);
}

.authors {
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 720;
}

.affiliations {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.project-links a {
  min-width: 116px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
}

.project-links a:first-child {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.project-links .is-disabled {
  opacity: 0.58;
  cursor: default;
}

.hero-teaser {
  width: min(980px, 100%);
  margin: 38px auto 0;
}

.hero-teaser picture {
  display: block;
}

.hero-teaser img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.snapshot {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 72px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.snapshot article {
  min-height: 142px;
  padding: 22px;
  background: #fff;
}

.snapshot strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  line-height: 1.1;
}

.snapshot span {
  color: var(--muted);
  font-size: 15px;
}

.section {
  padding: 68px 0;
  border-top: 1px solid var(--line);
}

.section-band {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-right: max(20px, calc((100vw - 1160px) / 2));
  padding-left: max(20px, calc((100vw - 1160px) / 2));
  background: var(--soft);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.12;
}

.abstract-text {
  max-width: 900px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.chart-grid,
.metric-figures,
.result-cards,
.extended-table-grid,
.ablation-grid,
.method-grid {
  display: grid;
  gap: 18px;
}

.paper-figure {
  margin: 0;
}

.paper-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

figcaption {
  max-width: 900px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.method-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 24px;
}

.method-grid article,
.result-cards article {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.method-grid span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 700;
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.25;
}

.method-grid p,
.result-cards p {
  margin-bottom: 0;
  color: var(--muted);
}

.method-showcase {
  margin: 24px 0 0;
}

.method-showcase + .method-grid {
  margin-top: 22px;
}

.method-figure {
  width: 100%;
  padding: clamp(14px, 2vw, 24px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.method-figure img {
  display: block;
  width: min(100%, 940px);
  max-width: none;
  margin: 0 auto;
  border: 0;
  border-radius: 6px;
  min-height: 0;
  box-shadow: none;
}

.method-figure figcaption {
  margin-top: 16px;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.tables-heading {
  margin-bottom: 22px;
}

.tables-heading h2 {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 850;
  line-height: 1.15;
}

.table-group-title {
  margin: 30px 0 10px;
  color: #3f4a51;
  font-size: 18px;
  font-weight: 850;
}

.tables-heading + .table-group-title {
  margin-top: 0;
}

.extended-table-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.ablation-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.wide-table {
  grid-column: 1 / -1;
}

.compact-table {
  margin-top: 0;
}

.compact-table table {
  min-width: 0;
  font-size: 13.5px;
}

.compact-table caption {
  min-height: 0;
}

.compact-table th,
.compact-table td {
  padding: 9px 10px;
}

table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 14px;
}

caption {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-align: left;
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

tbody td:first-child {
  text-align: left;
}

thead th {
  background: #f8fafb;
  color: #3f4a51;
  font-weight: 800;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.highlight-muted td {
  background: rgba(43, 117, 163, 0.08);
  font-weight: 720;
}

.highlight td {
  font-weight: 800;
}

.result-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.result-cards article {
  min-height: 168px;
}

.chart-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 26px;
  align-items: start;
}

.metric-figures {
  grid-template-columns: minmax(180px, 0.64fr) minmax(180px, 0.72fr) minmax(340px, 1.35fr);
  margin-top: 26px;
  align-items: start;
}

.paper-figure.full {
  margin-top: 24px;
}

.qual-comparison {
  display: grid;
  gap: 18px;
  width: min(1500px, calc(100vw - 40px));
  margin: 24px 0 0 50%;
  transform: translateX(-50%);
}

.qual-set {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.qual-set h3 {
  margin-bottom: 8px;
  color: #2d3439;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 2vw, 26px);
  text-align: center;
}

.qual-gallery {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  overflow: visible;
  padding-bottom: 0;
}

.sdxl-comparison .qual-gallery {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.qual-gallery figure {
  margin: 0;
  min-width: 0;
}

.qual-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 0;
  border-radius: 0;
  background: #fff;
  object-fit: cover;
}

.qual-gallery figcaption {
  margin-top: 4px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.2;
  text-align: center;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.94em;
}

footer {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

footer p {
  margin-bottom: 0;
}

@media (max-width: 920px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  main {
    width: min(100% - 28px, 1160px);
  }

  .snapshot,
  .method-grid,
  .result-cards,
  .extended-table-grid,
  .ablation-grid,
  .chart-grid,
  .metric-figures {
    grid-template-columns: 1fr;
  }

  .snapshot {
    margin-bottom: 52px;
  }

  .section {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .qual-gallery {
    grid-template-columns: repeat(7, minmax(104px, 1fr));
    overflow-x: auto;
  }

  .sdxl-comparison .qual-gallery {
    grid-template-columns: repeat(6, minmax(112px, 1fr));
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 44px;
  }

  .project-links a {
    width: 100%;
  }

  .snapshot article,
  .method-grid article,
  .result-cards article {
    min-height: auto;
  }
}
