/* Click-to-Model content styling on the Academic Project Page Template. */
:root {
  --primary-color: #2465ae;
  --primary-hover: #174c88;
  --text-primary: #30323b;
  --text-secondary: #626674;
  --background-secondary: #f7f8fa;
  --gradient-accent: #2465ae;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--primary-color); }
a:hover { color: var(--primary-hover); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #2465ae; outline-offset: 5px; }
section[id] { scroll-margin-top: 24px; }
figure { margin: 0; }
sup { font-size: .65em; margin-left: .12em; }
.container.is-max-desktop { width: 100%; max-width: 1000px; margin: 0 auto; }
.title { color: var(--text-primary); font-weight: 700; }
.title.is-3 { font-family: inherit !important; font-size: 2rem; margin-bottom: 1.1rem !important; line-height: 1.2; }
.title.is-4 { font-size: 1.45rem; line-height: 1.35; }
.section { padding: 4rem 1.5rem; }
.has-text-centered { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 10; background: white; padding: 12px; }
.skip-link:focus { top: 10px; }
.project-nav { max-width: 1100px; margin: 0 auto; padding: 24px 28px 0; display: flex; align-items: center; justify-content: space-between; font-size: .88rem; }
.project-nav a { color: #606673; }
.project-nav div { display: flex; gap: 25px; }
.home-link { font-weight: 600; }
.publication-header .hero-body { padding: 3.2rem 1.5rem 1.5rem; }
.venue-line { font-size: 1.15rem; font-weight: 600; margin-bottom: 1.15rem; letter-spacing: .02em; }
.oral { color: #bb4e37; }
.publication-title.title.is-1 { font-family: inherit !important; font-size: 2.55rem; line-height: 1.2 !important; font-weight: 700 !important; letter-spacing: -.035em; margin-bottom: 1.5rem !important; }
.project-name { display: block; font-size: 1.2em; margin-bottom: .2em; letter-spacing: -.045em; }
.full-title { display: block; }
.publication-authors { font-family: inherit !important; font-size: 1.2rem; margin-bottom: .8rem; }
.author-block { margin: 0 .45rem .2rem; }
.affiliations { font-size: .92rem; color: #545963; line-height: 1.7; }
.affiliations p { margin: 0; }
.correspondence { font-size: .78rem; margin-top: .4rem !important; color: #707581; }
.publication-links { margin-top: 1.5rem; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.publication-links .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: auto; margin: 0 !important; border-radius: 999px !important; padding: 0 18px !important; height: 42px; font-size: .92rem; font-weight: 500 !important; box-shadow: none; }
.publication-links svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.conference-link { margin-top: .8rem; font-size: .8rem; }
.conference-link a { color: #6d7380; }
.teaser { padding: .7rem 1.5rem 3.5rem; font-family: inherit; }
#demo-video { display: block; width: 100%; max-height: 550px; background: #101318; border-radius: 8px; object-fit: contain; }
.teaser-caption { margin: 1.3rem auto 0; max-width: 850px; text-align: center; font-size: 1.06rem; line-height: 1.65; color: #4b505a; }
.teaser-caption strong { font-weight: 600; color: var(--text-primary); }
.download-link { text-align: center; font-size: .85rem; margin-top: .75rem; }
.abstract-copy { max-width: 850px; margin: 0 auto; font-size: 1.04rem; line-height: 1.85; text-align: justify; }
.section-intro { max-width: 740px; margin: 0 auto 2.25rem; text-align: center; color: var(--text-secondary); font-size: 1.03rem; }
.pipeline-figure img { width: 100%; display: block; height: auto; }
.pipeline-figure figcaption { text-align: center; color: var(--text-secondary); margin-top: 1rem; font-size: .9rem; }
.method-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 2.5rem; }
.method-steps article { border-top: 2px solid #dbe2e9; padding-top: 1rem; }
.step-number { color: #4c78a2; font-size: .78rem; font-weight: 700; letter-spacing: .05em; }
.method-steps h3 { font-size: 1.08rem; font-weight: 650; margin: .4rem 0 .6rem; }
.method-steps p { font-size: .94rem; line-height: 1.75; color: #5a606b; }
.object-tabs { display: flex; justify-content: center; gap: 6px; margin: -.6rem 0 1.5rem; }
.object-tabs button { border: 1px solid transparent; border-radius: 999px; background: transparent; color: #59616f; padding: 8px 22px; min-height: 44px; font-weight: 600; }
.object-tabs button:hover { background: #e9edf2; }
.object-tabs button[aria-selected="true"] { background: #343944; color: white; }
.example-heading { font-size: 1.2rem; font-weight: 600; margin-bottom: 1rem; }
.object-example + .object-example { margin-top: 2rem; }
.tabs-enabled .example-heading { display: none; }
.tabs-enabled .object-example { margin-top: 0; }
.example-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.example-grid figure { min-width: 0; }
.example-grid img { width: 100%; aspect-ratio: 4 / 3; height: auto; display: block; object-fit: contain; background: white; border: 1px solid #e4e7ec; border-radius: 5px; }
.example-grid figcaption { font-size: .87rem; text-align: center; margin-top: .65rem; font-weight: 600; }
.figure-note { font-size: .82rem; line-height: 1.7; color: #68707d; margin-top: 1.3rem; }
.results-table-wrap { max-width: 100%; overflow-x: auto; }
.results-table { width: 100%; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
.results-table caption { text-align: left; color: #656d78; font-size: .85rem; padding-bottom: .9rem; }
.results-table th, .results-table td { text-align: right; padding: 15px 20px; white-space: nowrap; border-bottom: 1px solid #e4e7ec; }
.results-table th:first-child { text-align: left; }
.results-table thead th { border-top: 2px solid #474e5b; border-bottom: 1px solid #949ca8; font-weight: 650; }
.results-table tbody th { font-weight: 500; }
.results-table tbody tr:last-child th, .results-table tbody tr:last-child td { border-bottom: 2px solid #474e5b; }
.results-table .ours { background: #eff5fa; }
.results-table .ours th { color: #1c527f; font-weight: 700; }
.table-detail { font-size: .77rem; color: #526a80; }
.results-table abbr { text-decoration: none; }
.result-notes { margin-top: 1.5rem; color: #5d6571; font-size: .87rem; line-height: 1.75; }
.result-notes p + p { margin-top: .7rem; }
.ablation-section { display: grid; grid-template-columns: .88fr 1.12fr; gap: 42px; margin-top: 3.5rem; align-items: center; }
.ablation-copy p { color: #5d6571; font-size: .96rem; line-height: 1.75; }
.ablation-table { font-size: .88rem; }
.ablation-table th, .ablation-table td { padding: 12px 14px; }
.poster-figure { max-width: 900px; margin: 1.8rem auto 1rem; }
.poster-figure img { display: block; width: 100%; height: auto; border: 1px solid #dfe4ea; }
.citation-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 1.1rem; }
.citation-heading .title { margin: 0 !important; padding: 0; }
.citation-heading .title::after { display: none; }
.copy-button { background: white; border: 1px solid #cbd2dc; border-radius: 6px; padding: 9px 15px; color: #4b5565; font-size: .85rem; min-height: 42px; }
.copy-button:hover { background: #f1f5f9; }
.citation-code { background: #f4f5f7; color: #424956; padding: 24px; border: 1px solid #e4e7ec; border-radius: 6px; overflow-x: auto; font-size: .87rem; line-height: 1.7; tab-size: 2; }
.citation-code code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.copy-status { font-size: .8rem; min-height: 1.5em; color: #446b4b; margin-top: .5rem; }
.footer { padding: 2rem 1.5rem 2.5rem; background: #f7f8fa; border-top: 1px solid #e4e7ec; font-size: .88rem; }
.template-credit { font-size: .77rem; line-height: 1.8; color: #727985; margin-top: 1rem; }

@media (max-width: 768px) {
  .project-nav { padding: 20px 20px 0; }
  .project-nav div { gap: 16px; }
  .publication-header .hero-body { padding: 2.5rem 1.25rem 1.25rem; }
  .publication-title.title.is-1 { font-size: 1.9rem !important; line-height: 1.22 !important; }
  .desktop-break { display: none; }
  .venue-line { font-size: 1rem; }
  .publication-authors { font-size: 1.08rem; }
  .affiliations { font-size: .83rem; }
  .section { padding: 3rem 1.25rem; }
  .teaser { padding: .6rem 1.25rem 2.5rem; }
  .teaser-caption { font-size: .96rem; }
  .title.is-3 { font-size: 1.65rem; }
  .abstract-copy { text-align: left; font-size: .97rem; line-height: 1.8; }
  .section-intro { font-size: .96rem; margin-bottom: 1.7rem; }
  .method-steps { grid-template-columns: 1fr; gap: 22px; margin-top: 2rem; }
  .method-steps h3 { display: inline; margin-left: .6rem; }
  .method-steps p { margin-top: .55rem; }
  .example-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px 12px; }
  .object-tabs button { padding: 8px 17px; }
  .ablation-section { grid-template-columns: 1fr; gap: 24px; margin-top: 2.5rem; }
  .results-table th, .results-table td { padding: 12px; }
  .citation-code { font-size: .76rem; padding: 18px; }
}

@media (max-width: 380px) {
  .project-nav { font-size: .8rem; }
  .project-nav div { gap: 10px; }
  .publication-title.title.is-1 { font-size: 1.7rem !important; }
  .publication-links { gap: 8px; }
  .publication-links .button { padding: 0 14px; }
  .object-tabs button { padding: 8px 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
