/* Minimal academic layout, following the GoBA project page. */
:root {
  --ink: #1e293b;
  --body: #1e293b;
  --muted: #64748b;
  --link: #2563eb;
  --line: #e2e8f0;
  --light: #f8fafc;
}

html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body {
  margin: 0;
  background: #fff;
  color: var(--body);
  font-family: Inter, "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); }
a:hover { color: #1d4ed8; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 5px;
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; }
h2 { margin: 0 0 30px; text-align: center; font-size: 32px; font-weight: 700; line-height: 1.125; }
h3 { font-size: 24px; font-weight: 600; }
p { margin: 0; }
strong { color: var(--ink); font-weight: 600; }
.page-width { width: min(1100px, calc(100% - 64px)); margin: 0 auto; }
.text-width { width: min(860px, calc(100% - 64px)); margin: 0 auto; }
.section { padding: 48px 0; }
.publication-header { padding: 62px 0 54px; }
.publication-header h1 {
  max-width: 1060px;
  margin: 0 auto;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: normal;
}
.publication-authors { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 10px; row-gap: 4px; margin-top: 34px; font-size: 20px; font-weight: 500; color: var(--ink); }
.publication-authors span { white-space: nowrap; }
.publication-authors a { font-weight: 600; }
.publication-authors sup, .publication-affiliations sup { font-size: .7em; }
.publication-affiliations { margin-top: 22px; font-size: 20px; font-weight: 500; color: var(--ink); line-height: 1.7; }
.corresponding-author { margin-top: 20px; font-size: 13px; font-style: italic; color: var(--muted); }
.publication-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.resource-button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  height: 50px;
  padding: 0 20px;
  border: 0;
  border-radius: 15px;
  background: var(--ink);
  color: #fff;
  font-family: inherit;
  font-size: 20px;
  font-weight: 600;
  box-shadow: 0 3px 5px rgb(0 0 0 / 14%);
}
.resource-button:hover, .resource-button:focus { color: #fff; background: #334155; }
.resource-button[disabled] { opacity: 1; color: #fff; background: var(--ink); cursor: default; box-shadow: 0 3px 5px rgb(0 0 0 / 14%); }
.resource-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.resource-button .filled-icon { fill: currentColor; stroke: none; }
.abstract-section { background: var(--light); border-block: 1px solid var(--line); }
.prose { font-size: 1.1rem; line-height: 1.8; text-align: justify; }
.prose p + p { margin-top: 16px; }
.abstract-section .prose { color: var(--muted); }
figure { margin: 0; }
figure img { display: block; width: 100%; height: auto; }
figcaption { margin-top: 20px; text-align: center; color: var(--body); font-size: 16px; line-height: 1.5; }
#method .page-width { max-width: 860px; }
.method-figure { margin-top: 34px; }
.method-note { margin-top: 20px; font-size: 14px; line-height: 1.75; color: var(--muted); text-align: left; }
.section-description { max-width: 860px; margin: -6px auto 26px; text-align: center; font-size: 16px; }
.demo-task { text-align: center; color: var(--ink); font-size: 16px; font-style: italic; }
.demo-task span { font-size: 13px; font-style: normal; color: var(--muted); }
.attack-example { margin-top: 42px; }
.attack-example + .attack-example { margin-top: 60px; }
.attack-heading { text-align: center; margin: 0 0 24px; }
.attack-heading p { margin-top: 12px; }
.video-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.786fr); gap: 24px; max-width: 1000px; margin: 28px auto 0; align-items: start; }
.video-card[data-slot="detection"] .video-stage { aspect-ratio: 800 / 448; max-width: 520px; background: var(--light); }
.video-card[data-slot="detection"] video { background: var(--light); }
.video-card { text-align: center; min-width: 0; }
.video-card h4 { font-size: 17px; font-weight: 600; margin-bottom: 14px; }
.video-stage { aspect-ratio: 1; width: 100%; max-width: 280px; margin-inline: auto; background: #f3f4f6; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.video-stage p { font-size: 14px; color: var(--muted); }
.video-stage video { display: block; width: 100%; height: 100%; object-fit: contain; background: #111827; }
.video-caption { margin-top: 12px; font-size: 13px; color: var(--muted); }
.video-error { padding: 20px; }
.evaluation-table { overflow-x: auto; max-width: 660px; margin: 28px auto 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
caption { text-align: center; font-size: 13px; color: var(--muted); padding-bottom: 14px; }
th, td { text-align: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
thead { border-top: 2px solid #475569; border-bottom: 1px solid #94a3b8; }
th { font-weight: 600; color: var(--ink); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 2px solid #475569; }
td { color: var(--muted); }
#evaluation .page-width { max-width: 900px; }
.full-comparison { max-width: 900px; margin-top: 22px; }
.full-comparison table { min-width: 860px; font-size: 13px; font-variant-numeric: tabular-nums; }
.full-comparison th, .full-comparison td { padding: 6px 6px; white-space: nowrap; font-size: 13px; }
.full-comparison thead th { background: #fff; }
.full-comparison thead th[rowspan], .full-comparison tbody th[scope="row"] { position: sticky; left: 0; z-index: 1; min-width: 104px; text-align: left; background: #fff; }
.full-comparison thead th[colspan], .full-comparison tbody td:nth-child(6), .full-comparison tbody td:nth-child(10) { border-left: 1px solid var(--line); }
.full-comparison .method-group th { padding: 4px 8px; background: #f3f4f6; text-align: left; font-style: italic; font-weight: 400; }
.full-comparison .tmt-row th, .full-comparison .tmt-row td { background: #f8fafc; }
.full-comparison .tmt-row th { font-weight: 700; }
.full-comparison strong { font-weight: 700; }
.second-best { text-decoration: underline; text-underline-offset: 3px; }
.purification-section { padding-bottom: 64px; }
.site-footer { padding: 38px 0; background: var(--light); font-size: 14px; color: var(--muted); text-align: center; }
.site-footer p + p { margin-top: 9px; }
.skip-link { position: fixed; left: 10px; top: -100px; background: #fff; padding: 12px; z-index: 100; }
.skip-link:focus { top: 10px; }

@media (max-width: 900px) {
  .publication-header h1 { font-size: 38px; }
  .title-break { display: none; }
  .page-width, .text-width { width: calc(100% - 48px); }
  .video-grid { gap: 18px; }
  .video-card h4 { font-size: 15px; }
}
@media (max-width: 600px) {
  .page-width, .text-width { width: calc(100% - 36px); }
  .publication-header { padding: 42px 0 36px; }
  .publication-header h1 { font-size: 32px; letter-spacing: normal; line-height: 1.2; }
  .publication-authors { font-size: 16px; margin-top: 26px; }
  .publication-affiliations { font-size: 16px; margin-top: 18px; }
  .publication-links { gap: 8px; margin-top: 22px; }
  .resource-button { height: 44px; padding: 0 13px; font-size: 16px; border-radius: 12px; }
  .resource-button svg { width: 16px; height: 16px; }
  .section { padding: 36px 0; }
  h2 { font-size: 27px; margin-bottom: 24px; }
  h3 { font-size: 22px; }
  .prose { font-size: 16px; line-height: 1.8; text-align: left; }
  .section-description { font-size: 15px; }
  figcaption { font-size: 14px; text-align: left; }
  .method-figure { margin-top: 24px; }
  .method-note { font-size: 13px; }
  .attack-heading p { font-size: 15px; }
  .video-grid { grid-template-columns: 1fr; gap: 28px; }
  .video-card h4 { font-size: 17px; }
  th, td { font-size: 13px; padding: 12px 8px; }
  .site-footer { font-size: 12px; padding: 28px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.citation-section { border-top: 1px solid var(--line); }
.citation-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.citation-heading h2 { margin: 0; text-align: left; }
.copy-button { background: var(--link); color: #fff; border: 0; border-radius: 10px; font: inherit; font-weight: 600; padding: 10px 20px; }
.copy-button:hover, .copy-button:focus-visible { background: #1d4ed8; color: #fff; }
.citation-section pre { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--light); color: var(--ink); font-size: 14px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.copy-status { min-height: 1.5em; margin-top: 8px; color: var(--muted); font-size: 13px; }
