:root {
  --bg: #0b1220;
  --paper: #ffffff;
  --text: #162033;
  --muted: #5f6b7a;
  --line: #d9e2ee;
  --soft: #eef4f8;
  --accent: #19c5b7;
  --accent-2: #f05c8a;
  --accent-3: #58a6ff;
  --accent-4: #ffb84d;
  --link: #1d5fa8;
  --ink: #0e1726;
  --shadow: 0 18px 48px rgba(16, 24, 40, 0.1);
  --glow: 0 24px 80px rgba(25, 197, 183, 0.18);
}

:root[data-theme="light"] {
  --bg: #eef5ff;
  --text: #162033;
  --muted: #5f6b7a;
  --line: #d9e2ee;
  --accent: #087a75;
  --accent-2: #bf3f63;
  --accent-3: #2f6fb3;
  --accent-4: #d28a1f;
  --link: #1d5fa8;
  --ink: #0e1726;
  --shadow: 0 18px 48px rgba(16, 24, 40, 0.1);
  --glow: 0 24px 80px rgba(8, 122, 117, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #e8f1ff;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.58;
  background:
    radial-gradient(circle at 12% 4%, rgba(25, 197, 183, 0.28), transparent 340px),
    radial-gradient(circle at 88% 0%, rgba(240, 92, 138, 0.24), transparent 380px),
    radial-gradient(circle at 50% 30%, rgba(88, 166, 255, 0.18), transparent 560px),
    linear-gradient(135deg, #07101f 0%, #0e1930 42%, #1c1021 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.86), transparent 72%);
  content: "";
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--link);
}

img {
  max-width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px max(24px, calc((100vw - 1080px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 16, 31, 0.72);
  backdrop-filter: blur(16px);
}

.brand {
  color: #f8fbff;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand::before {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
  transform: translateY(-1px);
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: rgba(232, 241, 255, 0.74);
  font-size: 14px;
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.theme-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  color: #0b1220;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.68));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.theme-toggle-icon {
  position: relative;
  width: 17px;
  height: 17px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.theme-toggle-icon::before {
  position: absolute;
  inset: -9px;
  background:
    linear-gradient(currentColor, currentColor) center top / 2px 5px no-repeat,
    linear-gradient(currentColor, currentColor) center bottom / 2px 5px no-repeat,
    linear-gradient(currentColor, currentColor) left center / 5px 2px no-repeat,
    linear-gradient(currentColor, currentColor) right center / 5px 2px no-repeat;
  content: "";
}

.theme-toggle-icon::after {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-right-color: currentColor;
  content: "";
  transform: rotate(45deg);
}

:root[data-theme="dark"] .theme-toggle-icon {
  width: 20px;
  height: 20px;
  border: 0;
  background: currentColor;
  box-shadow: inset -7px -3px 0 #ffffff;
}

:root[data-theme="dark"] .theme-toggle-icon::before,
:root[data-theme="dark"] .theme-toggle-icon::after {
  display: none;
}

main {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 76px;
}

.title_home{
  font-size: 33px;
}

.paper-header {
  position: relative;
  max-width: 980px;
  margin: 0 auto 44px;
  padding: 46px 44px 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  text-align: center;
  background:
    radial-gradient(circle at 14% 20%, rgba(25, 197, 183, 0.2), transparent 190px),
    radial-gradient(circle at 88% 24%, rgba(240, 92, 138, 0.18), transparent 210px),
    radial-gradient(circle at 50% 100%, rgba(88, 166, 255, 0.16), transparent 280px),
    rgba(255, 255, 255, 0.1);
  box-shadow: var(--glow);
  backdrop-filter: blur(18px);
}

.paper-header::after {
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-3), var(--accent-2), var(--accent-4));
  content: "";
}

.venue {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 7px;
  border: 1px solid rgba(102, 255, 241, 0.26);
  border-radius: 999px;
  color: #66fff1;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background:
    linear-gradient(90deg, rgba(25, 197, 183, 0.16), rgba(88, 166, 255, 0.11), rgba(240, 92, 138, 0.12));
  box-shadow: 0 0 28px rgba(25, 197, 183, 0.18);
  text-transform: uppercase;
}

.venue span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.venue span:nth-child(2) {
  color: #ffffff;
  background: rgba(88, 166, 255, 0.18);
}

.venue span:nth-child(3) {
  color: #ffd4e1;
  background: rgba(240, 92, 138, 0.16);
}

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

h1 {
  max-width: 920px;
  margin: 0 auto 18px;
  color: #f8fbff;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: 0;
}

.authors {
  margin-top: 14px;
  font-size: 23px;
  font-weight: 750;
}

.authors a {
  color: #8ec5ff;
}

.authors a.author-highlight {
  text-decoration: underline;
  text-decoration-color: rgba(25, 197, 183, 0.62);
  text-underline-offset: 4px;
}

.affiliation {
  margin: 4px 0 6px;
  color: rgba(232, 241, 255, 0.72);
  font-size: 18px;
}

.affiliation a {
  color: inherit;
  font-weight: 750;
  font-size: 20px;
  text-decoration: underline;
  text-decoration-color: rgba(25, 197, 183, 0.62);
  text-underline-offset: 4px;
}

.affiliation a:hover {
  color: #8ec5ff;
}

.research-note {
  max-width: 760px;
  margin: 0 auto 24px;
  color: rgba(232, 241, 255, 0.82);
  font-size: 16px;
  font-weight: 700;
}

.links,
.paper-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.links {
  gap: 12px;
}

.links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  color: #f8fbff;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.links a:first-child {
  color: #061117;
  border-color: var(--accent);
  background: var(--accent);
}

.links a.is-disabled {
  cursor: default;
  pointer-events: none;
  opacity: 0.86;
}

.paper-meta {
  gap: 8px;
  margin-top: 24px;
}

.paper-meta span {
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(248, 251, 255, 0.9);
  font-size: 13px;
  font-weight: 750;
  background: rgba(255, 255, 255, 0.09);
}

.research-banner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 38px;
}

.research-banner article {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  color: white;
  background: #102033;
  box-shadow: var(--glow);
}

.research-banner article::before {
  position: absolute;
  inset: -80px -80px auto auto;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  content: "";
}

.research-banner article:nth-child(1) {
  background:
    linear-gradient(135deg, rgba(25, 197, 183, 0.94), rgba(14, 32, 51, 0.98));
}

.research-banner article:nth-child(2) {
  background:
    linear-gradient(135deg, rgba(88, 166, 255, 0.92), rgba(14, 32, 51, 0.98));
}

.research-banner article:nth-child(3) {
  background:
    linear-gradient(135deg, rgba(240, 92, 138, 0.92), rgba(14, 32, 51, 0.98));
}

.research-banner span,
.research-banner strong,
.research-banner p {
  position: relative;
}

.research-banner span {
  display: inline-block;
  margin-bottom: 22px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0.82;
  text-transform: uppercase;
}

.research-banner strong {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.18;
}

.research-banner p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

.section {
  scroll-margin-top: 84px;
  margin-top: 36px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(25, 197, 183, 0.11), transparent 32%),
    linear-gradient(315deg, rgba(88, 166, 255, 0.1), transparent 36%),
    rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
}

.section:nth-of-type(3n) {
  background:
    linear-gradient(135deg, rgba(240, 92, 138, 0.09), transparent 34%),
    linear-gradient(315deg, rgba(25, 197, 183, 0.08), transparent 36%),
    rgba(255, 255, 255, 0.93);
}

.section:nth-of-type(3n + 1) {
  background:
    linear-gradient(135deg, rgba(88, 166, 255, 0.1), transparent 34%),
    linear-gradient(315deg, rgba(255, 184, 77, 0.08), transparent 36%),
    rgba(255, 255, 255, 0.93);
}

.section.narrow {
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 22px;
}

.section-heading span {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--accent);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 850;
  line-height: 1.16;
  letter-spacing: 0;
}

.section h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
}

.section p,
.section-text {
  color: var(--muted);
  font-size: 17px;
}

.abstract p,
.section-text {
  max-width: 860px;
}

.contribution-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.contribution-strip article {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(8, 122, 117, 0.05), rgba(255, 255, 255, 0)),
    white;
}

.contribution-strip article:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(47, 111, 179, 0.06), rgba(255, 255, 255, 0)),
    white;
}

.contribution-strip article:nth-child(3) {
  background:
    linear-gradient(180deg, rgba(191, 63, 99, 0.06), rgba(255, 255, 255, 0)),
    white;
}

.contribution-strip strong,
.contribution-strip span {
  display: block;
}

.contribution-strip strong {
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 850;
}

.contribution-strip span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.teaser,
.figure-block,
.figure-grid figure,
.metric-grid figure,
.single-figure figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.075);
}

.teaser img,
.figure-block img,
.figure-grid img,
.metric-grid img,
.single-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: white;
}

.teaser img,
.figure-block img {
  padding: 18px;
}

.metric-grid img {
  padding: 12px;
}

figcaption {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  color: #667085;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
  background: #fbfcfe;
}

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

.method-grid article {
  position: relative;
  padding: 24px 18px 22px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #fbfcfe);
}

.method-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: white;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 800;
  background: var(--accent);
}

.method-grid article:nth-child(2) .method-index {
  background: var(--accent-3);
}

.method-grid article:nth-child(3) .method-index {
  background: var(--accent-4);
}

.method-grid article:nth-child(4) .method-index {
  background: var(--accent-2);
}

.method-grid article:last-child {
  border-right: 0;
}

.method-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.figure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.table-wrap {
  display: none;
  overflow-x: auto;
  margin: 0 0 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
}

.result-analysis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.analysis-card {
  padding: 18px;
  border: 1px solid rgba(217, 226, 238, 0.95);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(25, 197, 183, 0.12), transparent 40%),
    white;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.07);
}

.analysis-card:nth-child(2) {
  background:
    linear-gradient(135deg, rgba(88, 166, 255, 0.13), transparent 40%),
    white;
}

.analysis-card:nth-child(3) {
  background:
    linear-gradient(135deg, rgba(240, 92, 138, 0.12), transparent 40%),
    white;
}

.analysis-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.analysis-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
}

.metric-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.metric-pair strong {
  margin-bottom: 0;
  padding: 10px;
  border: 1px solid rgba(217, 226, 238, 0.95);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.metric-pair em {
  display: block;
  margin-bottom: 3px;
  color: var(--accent);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.metric-pair small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

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

.compact-results {
  margin: 0 0 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
}

.compact-results table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text);
  font-size: 14px;
}

.compact-results caption {
  padding: 14px 16px;
  color: #475467;
  font-weight: 700;
  text-align: left;
  background:
    linear-gradient(90deg, rgba(25, 197, 183, 0.1), rgba(88, 166, 255, 0.08)),
    #fbfcfe;
}

.compact-results th,
.compact-results td {
  padding: 11px 12px;
  border: 1px solid #e4e9f2;
  text-align: center;
}

.compact-results th {
  color: #0f172a;
  background: #eef5fb;
}

.compact-results tbody td:first-child {
  color: var(--accent);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 800;
}

.compact-results p {
  margin: 0;
  padding: 14px 16px 16px;
  color: var(--muted);
  font-size: 15px;
  background: #fbfcfe;
}

.insight-panel {
  margin: 0 0 26px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(25, 197, 183, 0.11), transparent 34%),
    linear-gradient(315deg, rgba(88, 166, 255, 0.1), transparent 40%),
    white;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
}

.insight-panel span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.insight-panel p {
  max-width: 1040px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.results-table {
  width: 100%;
  min-width: 1560px;
  border-collapse: collapse;
  table-layout: fixed;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.results-table .col-labels {
  width: 82px;
}

.results-table .col-method {
  width: 290px;
}

.results-table .col-metric {
  width: 148px;
}

.results-table caption {
  padding: 14px 16px;
  color: #475467;
  font-size: 14px;
  font-weight: 650;
  text-align: left;
  background:
    linear-gradient(90deg, rgba(25, 197, 183, 0.1), rgba(88, 166, 255, 0.08)),
    #fbfcfe;
}

.results-table th,
.results-table td {
  padding: 9px 10px;
  border: 1px solid #e4e9f2;
  vertical-align: middle;
  text-align: center;
  white-space: nowrap;
}

.results-table thead th {
  color: #0f172a;
  font-weight: 850;
  text-align: center;
  background: #eef5fb;
}

.results-table tbody td[rowspan] {
  color: var(--accent);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 800;
  text-align: center;
  background: #f8fbfd;
}

.results-table tbody td[rowspan] + td,
.results-table tbody tr:not(:has(td[rowspan])) td:first-child {
  color: #253044;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  text-align: left;
  background: white;
}

.results-table .ours td {
  color: #102033;
  font-weight: 850;
  background: #e9fbf8;
}

.results-table .ours td[rowspan] + td,
.results-table .ours:not(:has(td[rowspan])) td:first-child {
  background: #dff8f4;
}

.results-table .upper td {
  color: #334155;
  font-weight: 750;
  background: #f8fafc;
}

.single-figure {
  /* max-width: 900px; */
  width: 100%;
  margin: 0 auto;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.citation pre {
  overflow-x: auto;
  margin: 0;
  padding: 18px;
  border-radius: 8px;
  color: #eef4ff;
  background:
    linear-gradient(135deg, rgba(8, 122, 117, 0.18), transparent 38%),
    #111827;
  font-size: 14px;
  line-height: 1.55;
}

code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.contact {
  margin-top: 28px;
}

.contact p {
  margin-bottom: 0;
}

.contact a {
  color: var(--link);
  font-weight: 750;
}

footer {
  padding: 26px 20px 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.placeholder-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.placeholder-shell {
  width: min(760px, calc(100% - 32px));
  padding: 42px 0;
}

.placeholder-card {
  padding: 54px 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  text-align: center;
  background:
    radial-gradient(circle at 14% 20%, rgba(25, 197, 183, 0.2), transparent 190px),
    radial-gradient(circle at 88% 24%, rgba(240, 92, 138, 0.18), transparent 210px),
    rgba(255, 255, 255, 0.1);
  box-shadow: var(--glow);
  backdrop-filter: blur(18px);
}

.placeholder-card h1 {
  margin-bottom: 14px;
}

.placeholder-card p:not(.venue) {
  color: rgba(232, 241, 255, 0.78);
  font-size: 17px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 16px;
  padding: 9px 18px;
  border-radius: 7px;
  color: #061117;
  font-weight: 800;
  background: var(--accent);
}

:root[data-theme="light"] body {
  color: var(--text);
  background:
    radial-gradient(circle at 8% 6%, rgba(8, 122, 117, 0.24), transparent 370px),
    radial-gradient(circle at 88% 0%, rgba(191, 63, 99, 0.2), transparent 420px),
    radial-gradient(circle at 50% 24%, rgba(47, 111, 179, 0.18), transparent 520px),
    radial-gradient(circle at 20% 72%, rgba(210, 138, 31, 0.16), transparent 420px),
    linear-gradient(135deg, #f7fffb 0%, #eef8ff 42%, #fff2f8 100%);
}

:root[data-theme="light"] body::before {
  display: block;
  background:
    linear-gradient(rgba(8, 122, 117, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 111, 179, 0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 76%);
}

:root[data-theme="light"] .topbar {
  border-bottom: 1px solid rgba(217, 226, 238, 0.9);
  background: rgba(255, 255, 255, 0.9);
}

:root[data-theme="light"] .brand,
:root[data-theme="light"] h1 {
  color: var(--ink);
}

:root[data-theme="light"] .topbar nav {
  color: #465263;
}

:root[data-theme="light"] .paper-header {
  border-color: rgba(217, 226, 238, 0.95);
  background:
    radial-gradient(circle at 12% 18%, rgba(8, 122, 117, 0.22), transparent 210px),
    radial-gradient(circle at 90% 18%, rgba(191, 63, 99, 0.2), transparent 230px),
    radial-gradient(circle at 50% 100%, rgba(47, 111, 179, 0.18), transparent 300px),
    linear-gradient(135deg, rgba(8, 122, 117, 0.12), transparent 34%),
    linear-gradient(315deg, rgba(191, 63, 99, 0.11), transparent 38%),
    rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 70px rgba(47, 111, 179, 0.14);
}

:root[data-theme="light"] .venue {
  color: var(--accent);
  border-color: rgba(8, 122, 117, 0.22);
  background:
    linear-gradient(90deg, rgba(8, 122, 117, 0.12), rgba(47, 111, 179, 0.1), rgba(191, 63, 99, 0.1));
  box-shadow: 0 18px 42px rgba(47, 111, 179, 0.12);
}

:root[data-theme="light"] .venue span {
  background: rgba(255, 255, 255, 0.68);
}

:root[data-theme="light"] .venue span:nth-child(2) {
  color: #1d5fa8;
  background: rgba(47, 111, 179, 0.1);
}

:root[data-theme="light"] .venue span:nth-child(3) {
  color: #9b284b;
  background: rgba(191, 63, 99, 0.1);
}

:root[data-theme="light"] .authors a {
  color: var(--link);
}

:root[data-theme="light"] .affiliation {
  color: var(--muted);
}

:root[data-theme="light"] .research-note {
  color: #3d4959;
}

:root[data-theme="light"] .links a {
  border-color: var(--line);
  color: var(--text);
  background: var(--paper);
  box-shadow: 0 6px 16px rgba(16, 24, 40, 0.08);
}

:root[data-theme="light"] .links a:first-child {
  color: white;
  border-color: var(--accent);
  background: var(--accent);
}

:root[data-theme="light"] .links a.is-disabled {
  opacity: 0.88;
}

:root[data-theme="light"] .paper-meta span {
  border-color: rgba(8, 122, 117, 0.2);
  color: #344054;
  background: rgba(255, 255, 255, 0.72);
}

:root[data-theme="light"] .theme-toggle {
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.12);
  background: linear-gradient(145deg, #ffffff, #edf2f8);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.12);
}

:root[data-theme="light"] .section {
  border-color: rgba(217, 226, 238, 0.95);
  background:
    radial-gradient(circle at 6% 0%, rgba(8, 122, 117, 0.11), transparent 260px),
    radial-gradient(circle at 96% 0%, rgba(47, 111, 179, 0.1), transparent 270px),
    linear-gradient(135deg, rgba(8, 122, 117, 0.055), transparent 32%),
    linear-gradient(315deg, rgba(47, 111, 179, 0.055), transparent 36%),
    rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 40px rgba(47, 111, 179, 0.09);
}

:root[data-theme="light"] .section:nth-of-type(3n) {
  background:
    radial-gradient(circle at 8% 0%, rgba(191, 63, 99, 0.12), transparent 260px),
    radial-gradient(circle at 96% 0%, rgba(8, 122, 117, 0.09), transparent 270px),
    linear-gradient(135deg, rgba(191, 63, 99, 0.07), transparent 34%),
    linear-gradient(315deg, rgba(8, 122, 117, 0.055), transparent 36%),
    rgba(255, 255, 255, 0.9);
}

:root[data-theme="light"] .section:nth-of-type(3n + 1) {
  background:
    radial-gradient(circle at 8% 0%, rgba(47, 111, 179, 0.12), transparent 260px),
    radial-gradient(circle at 96% 0%, rgba(210, 138, 31, 0.1), transparent 270px),
    linear-gradient(135deg, rgba(47, 111, 179, 0.075), transparent 34%),
    linear-gradient(315deg, rgba(210, 138, 31, 0.065), transparent 36%),
    rgba(255, 255, 255, 0.9);
}

@media (max-width: 980px) {
  .research-banner,
  .result-analysis,
  .method-grid,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .method-grid article:nth-child(2) {
    border-right: 0;
  }

  .method-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }

  .nav-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .topbar nav {
    gap: 12px;
  }

  main {
    width: min(100% - 24px, 1080px);
    padding-top: 24px;
  }

  .paper-header,
  .section {
    padding: 24px 18px;
  }

  h1 {
    font-size: 32px;
  }

  .figure-grid,
  .method-grid,
  .metric-grid,
  .contribution-strip,
  .result-analysis,
  .research-banner {
    grid-template-columns: 1fr;
  }

  .method-grid article,
  .method-grid article:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .method-grid article:last-child {
    border-bottom: 0;
  }

  .teaser img,
  .figure-block img {
    padding: 10px;
  }
}
