:root {
  --bg: #ffffff;
  --text: #1f2430;
  --muted: #5f6778;
  --line: #dde3ea;
  --accent: #2f6f8f;
  --accent-soft: #edf4f8;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.65;
}

.page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px 20px 72px;
}

.hero {
  text-align: center;
  padding: 12px 0 20px;
  border-bottom: 1px solid var(--line);
}

.venue {
  display: inline-block;
  margin: 0 0 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.85rem;
}

h1 {
  margin: 6px 0 10px;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  line-height: 1.25;
  color: #141925;
}

.title-line-2 {
  font-weight: inherit;
}

.subtitle {
  margin: 0 auto 18px;
  max-width: 780px;
  color: var(--muted);
  font-size: 1.05rem;
}

.authors,
.note {
  margin: 8px auto;
  max-width: 920px;
}

.authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 0;
  font-size: 0.98rem;
}

.author {
  white-space: nowrap;
}

.primary-author {
  font-weight: 700;
}

.author:not(:last-child)::after {
  content: "·";
  margin: 0 0.38em;
  color: var(--text);
}

.author.author-line-end::after {
  content: "";
  margin: 0;
}

.author-break {
  flex-basis: 100%;
  height: 0;
}

.authors a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.authors a:hover {
  border-color: var(--accent);
}

.note {
  color: var(--muted);
  font-size: 0.93rem;
}

.affiliation-logos {
  margin: 14px auto 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.affiliation-pill {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: #4d5564;
  font-weight: 400;
  font-size: 0.93rem;
  line-height: 1.2;
}

.affiliation-pill img {
  width: auto;
  max-width: 72px;
  height: 22px;
  border: 0;
  border-radius: 0;
  object-fit: contain;
}

.tldr {
  margin: 8px auto;
  max-width: 900px;
  background: #f7fbff;
  border: 1px solid #d5e4ef;
  border-radius: 10px;
  padding: 11px 13px;
  text-align: left;
}

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

.links a {
  text-decoration: none;
  color: var(--accent);
  border: 1px solid #c8d6e0;
  background: #f9fcfe;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.links a:hover {
  border-color: #9bb8c8;
  background: var(--accent-soft);
}

.section {
  margin-top: 54px;
}

.quick-read {
  margin-top: 40px;
}

.quick-read .cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quick-read h3 {
  white-space: nowrap;
  font-size: 1rem;
}

@media (max-width: 900px) {
  .quick-read .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .motivation-figures {
    grid-template-columns: 1fr;
  }

  .motivation-figure-diagram img {
    max-height: none;
    width: min(100%, 620px);
  }

  .naive-results {
    grid-template-columns: 1fr;
    --naive-result-image-height: auto;
  }

  .naive-results .naive-figure {
    display: block;
  }
}

h2 {
  margin: 0 0 14px;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.7vw, 1.75rem);
  line-height: 1.3;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.35;
}

p {
  margin: 0 0 14px;
}

.cards {
  display: grid;
  align-items: stretch;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 16px 0 8px;
}

.card {
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #fcfdff;
}

.card > :last-child {
  margin-bottom: 0;
}

figure {
  margin: 16px 0 0;
}

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

figcaption {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.9rem;
}

.figure-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.motivation-figures {
  grid-template-columns: minmax(0, 9fr) minmax(280px, 0.75fr);
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.motivation-figure {
  margin: 0;
}

.motivation-figure img {
  border: 0;
  border-radius: 0;
}

.motivation-figure-vfm img {
  width: 100%;
  margin: 0 auto;
}

.motivation-figure-diagram img {
  width: auto;
  max-width: 100%;
  max-height: 240px;
  margin: 0 auto;
}

.motivation-figure figcaption {
  max-width: 640px;
  margin: 10px auto 0;
  text-align: center;
}

.motivation-figure-diagram figcaption {
  max-width: 500px;
}

.stitch-callout {
  max-width: 980px;
  margin: 0 auto 20px;
  font-size: inherit;
  line-height: inherit;
}

.text-teal {
  color: #0a7a70;
  font-weight: 800;
}

.text-purple {
  color: #9672aa;
  font-weight: 800;
}

.text-lfm {
  color: #dda72a;
  font-weight: 800;
}

.text-ffm {
  color: #6eb0df;
  font-weight: 800;
}

.text-task {
  color: #5b7d75;
  font-weight: 800;
}

.text-self {
  color: #b77b00;
  font-weight: 800;
}

.text-complement {
  color: #0a7a70;
  font-weight: 800;
}

.text-green {
  color: #9fbd59;
  font-weight: 800;
}

.text-red {
  color: #ff0000;
  font-weight: 800;
}

.text-underline {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.stitch-demo {
  max-width: 50%;
  margin: 8px auto 0;
}

.stitch-demo img {
  border: 0;
  border-radius: 0;
}

.subsection {
  margin-top: 26px;
}

.subsection h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
}

.problem-box {
  margin: 12px 0 16px;
  padding: 12px 14px;
  border-left: 4px solid #dda72a;
  background: #fffaf0;
  color: var(--text);
}

.task-section .problem-box {
  border-left-color: #0b7d75;
  background: #f1fbf9;
}

.naive-figure {
  margin: 10px 0 0;
}

.naive-figure img {
  border: 0;
  border-radius: 0;
}

.naive-demo img {
  width: min(40%, 520px);
  margin: 0 auto;
}

.naive-results {
  grid-template-columns: repeat(2, minmax(0, 5fr));
  gap: 10px;
  margin-top: 18px;
  --naive-result-image-height: 220px;
  --naive-result-image-width: 100%;
}

.naive-results .naive-figure {
  display: grid;
  grid-template-rows: var(--naive-result-image-height) auto;
  align-items: start;
}

.naive-results .naive-figure img {
  width: var(--naive-result-image-width);
  height: 100%;
  object-fit: contain;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .naive-results {
    grid-template-columns: 1fr;
    --naive-result-image-height: auto;
  }

  .naive-results .naive-figure {
    display: block;
  }

  .naive-results .naive-figure img {
    height: auto;
  }
}

.recipe-overview {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 18px;
}

.recipe-figure {
  margin: 18px 0 0;
}

.recipe-figure img {
  border: 0;
  border-radius: 0;
}

.recipe-diagram {
  margin-top: 0;
}

.recipe-diagram img {
  width: min(100%, 440px);
  margin: 0 auto;
}

.recipe-steps {
  display: grid;
  gap: 14px;
}

.recipe-steps .card {
  padding: 16px;
}

.recipe-result {
  margin-top: 26px;
}

.recipe-result img {
  width: min(50%, 780px);
  margin: 0 auto;
}

.recipe-result figcaption {
  max-width: 820px;
  margin: 10px auto 0;
  text-align: center;
}

@media (max-width: 900px) {
  .recipe-overview {
    grid-template-columns: 1fr;
  }

  .recipe-diagram img {
    width: min(100%, 520px);
  }
}

.fusion-layout {
  display: grid;
  grid-template-columns: minmax(150px, 0.42fr) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  margin-top: 18px;
}

.fusion-figure {
  margin: 0;
}

.fusion-figure img {
  border: 0;
  border-radius: 0;
}

.fusion-card {
  padding: 16px 18px;
}

.fusion-right {
  display: grid;
  gap: 18px;
}

.fusion-demo img {
  width: min(100%, 190px);
  max-height: 520px;
  object-fit: contain;
  margin: 0 auto;
}

.fusion-result img {
  width: min(100%, 600px);
  margin: 0 auto;
}

.fusion-figure figcaption {
  max-width: 520px;
  margin: 10px auto 0;
  text-align: center;
}

.fusion-demo figcaption {
  font-size: 0.82rem;
  line-height: 1.45;
}

.fusion-result {
  padding-top: 2px;
}

.fusion-card ul,
.key-finding-box ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.fusion-card li,
.key-finding-box li {
  margin-top: 8px;
}

.finding-box,
.key-finding-box {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid #b9d8d3;
  border-left: 4px solid #0a7a70;
  border-radius: 12px;
  background: #f2fbf9;
}

.finding-box {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.key-finding-box h3 {
  margin-bottom: 8px;
}

.generality-figure {
  margin-top: 18px;
}

.generality-figure img {
  width: min(100%, 820px);
  margin: 0 auto;
  border: 0;
  border-radius: 0;
}

.table-wrap.generality-table-wrap {
  margin-top: 22px;
  border: 0;
  border-radius: 0;
  overflow-x: auto;
}

.generality-table {
  min-width: 900px;
  border-top: 2px solid #111111;
  border-bottom: 2px solid #111111;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.generality-table thead {
  background: transparent;
}

.generality-table th,
.generality-table td {
  padding: 8px 14px;
  border-bottom: 0;
  color: #111111;
  text-align: center;
  vertical-align: middle;
}

.generality-table th:first-child,
.generality-table td:first-child {
  text-align: left;
}

.generality-table thead tr:nth-child(1) th {
  font-size: 1.25rem;
  font-weight: 700;
}

.generality-table .group-heading {
  border-bottom: 1px solid #111111;
}

.generality-table thead tr:nth-child(2) th {
  font-size: 1.12rem;
  font-weight: 700;
}

.generality-table thead tr:nth-child(3) th {
  border-bottom: 1.5px solid #111111;
  font-weight: 700;
}

.generality-table tbody tr:nth-child(2) th,
.generality-table tbody tr:nth-child(2) td {
  border-bottom: 1.5px solid #111111;
}

.generality-table tbody th {
  font-weight: 700;
}

@media (max-width: 900px) {
  .fusion-layout {
    grid-template-columns: 1fr;
  }

  .fusion-demo img {
    width: min(100%, 170px);
  }

  .fusion-result img {
    width: min(100%, 620px);
  }
}

@media (max-width: 640px) {
  .fusion-demo img {
    width: min(100%, 150px);
  }
}

.vst-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.vst-cards .card {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfb 100%);
}

.vst-figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
  margin-top: 24px;
}

.vst-figure {
  margin: 0;
}

.vst-figure img {
  border: 0;
  border-radius: 0;
}

.vst-figure figcaption {
  max-width: 620px;
  margin: 10px auto 0;
  text-align: center;
}

.vst-result-panel {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(280px, 1fr);
  gap: 22px;
  align-items: center;
  margin-top: 26px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fcfdff;
}

.vst-result img {
  width: min(100%, 500px);
  margin: 0 auto;
}

.vst-result-text h3 {
  margin-bottom: 8px;
}

.vst-result-text p + p {
  margin-top: 10px;
}

@media (max-width: 900px) {
  .vst-cards,
  .vst-figures,
  .vst-result-panel {
    grid-template-columns: 1fr;
  }

  .vst-result-panel {
    padding: 16px;
  }
}

.comparison-table {
  margin-top: 16px;
}

.comparison-table table {
  table-layout: fixed;
  min-width: 760px;
}

.comparison-table th,
.comparison-table td {
  text-align: center;
}

.comparison-table th {
  color: #ffffff;
  background: #4dafc2;
  font-weight: 400;
}

.comparison-table td {
  background: #d7e7ed;
  color: #000000;
  font-size: inherit;
  font-weight: 400;
}

.comparison-table .bad-result {
  color: #ff0000;
  font-weight: 400;
}

.table-caption {
  margin: 10px 0 12px;
  text-align: center;
  color: #000000;
  font-size: 1rem;
}

.table-wrap {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.table-wrap.comparison-table {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

thead {
  background: var(--accent-soft);
}

th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

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

.takeaway-section {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
}

.takeaway-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.takeaway-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.takeaway-item p {
  margin: 0;
  color: #292b31;
  font-size: clamp(1.02rem, 1.8vw, 1.22rem);
  line-height: 1.3;
}

.takeaway-number {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: clamp(32px, 4.5vw, 42px);
  height: clamp(32px, 4.5vw, 42px);
  border-radius: 999px;
  color: #ffffff;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 800;
  line-height: 1;
}

.takeaway-purple {
  background: #9a7cf4;
}

.takeaway-orange {
  background: #ff7416;
}

.takeaway-blue {
  background: #4a69d4;
}

.takeaway-summary {
  margin-top: 28px;
  padding: clamp(18px, 3vw, 28px);
  border: 4px solid #494632;
  border-radius: 26px;
  background: #ffffff;
}

.takeaway-summary p {
  margin: 0;
  color: #000000;
  font-size: clamp(1.1rem, 2.4vw, 1.55rem);
  line-height: 1.25;
}

ol {
  margin: 8px 0 0;
  padding-left: 20px;
}

.footer-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 640px) {
  .page {
    padding: 20px 16px 48px;
  }

  .section {
    margin-top: 42px;
  }

  .authors {
    font-size: 0.95rem;
  }

  .affiliation-pill {
    width: 100%;
    justify-content: center;
  }

  .affiliation-pill img {
    height: 24px;
  }

  .quick-read .cards {
    grid-template-columns: 1fr;
  }

  .quick-read h3 {
    white-space: normal;
  }

  .stitch-callout {
    font-size: inherit;
  }

  .takeaway-section {
    padding: 18px;
  }

  .takeaway-item {
    align-items: flex-start;
  }
}
