:root { --primary: #2563eb; --text: #1e293b; --muted: #64748b; --surface: #f8fafc; --border: #e2e8f0; }
html { scroll-behavior: smooth; }
body { font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif; color: var(--text); line-height: 1.6; background: #fff; }
.publication-header .hero-body { padding: 5rem 1.5rem 3rem; }
.publication-title { max-width: 1050px; margin: 0 auto 1.75rem !important; color: var(--text) !important; font-weight: 800 !important; line-height: 1.12 !important; }
.publication-authors { margin-bottom: .5rem; }
.publication-authors a { color: var(--primary) !important; font-weight: 600; }
.author-block { display: inline-block; margin-right: .25rem; }
.publication-institutions { color: var(--muted); }
.publication-venue { display: inline-block; margin-top: .9rem; padding: .35rem .8rem; color: var(--muted); background: var(--surface); border-radius: 6px; font-weight: 600; }
.publication-links { margin-top: 1.5rem; }
.link-block { margin: 0 .2rem; }
.button.is-dark { background: #263142 !important; font-weight: 600; }
.teaser { background: var(--surface); border-block: 1px solid var(--border); }
.teaser .hero-body { padding: 2.5rem 1.5rem 3rem; }
.teaser-image { width: 100%; padding: 1.25rem; background: #fff; border: 1px solid var(--border); border-radius: 10px; }
.teaser .subtitle { max-width: 850px; margin: 1.75rem auto 0; color: var(--muted); line-height: 1.55; }
.section { padding: 4.5rem 1.5rem; }
.title.is-3 { margin-bottom: 2rem !important; color: var(--text); font-weight: 700; }
.content.has-text-justified { color: var(--muted); font-size: 1.08rem; line-height: 1.8; }
.method-section { background: var(--surface); border-block: 1px solid var(--border); }
.method-columns { margin-top: .25rem; }
.method-card { height: 100%; padding: 1.75rem; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 4px 16px rgba(15, 23, 42, .04); }
.method-number { margin-bottom: 1rem; color: var(--primary); font-weight: 800; }
.method-card p { color: var(--muted); }
.equations-block { margin-top: 3.5rem; background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.equations-heading { padding: 2rem 1.5rem 1.25rem; }
.equations-heading .title { margin-bottom: .5rem; }
.equations-heading p { color: var(--muted); }
.equation-row { display: grid; grid-template-columns: 170px 1fr; gap: 2rem; padding: 1.75rem 2rem; border-top: 1px solid var(--border); }
.equation-label { display: flex; align-items: flex-start; gap: .75rem; color: var(--text); }
.equation-label span { display: inline-flex; align-items: center; justify-content: center; width: 1.8rem; height: 1.8rem; flex: 0 0 auto; color: #fff; background: var(--primary); border-radius: 50%; font-size: .8rem; font-weight: 700; }
.equation-label strong { padding-top: .15rem; }
.equation-content { min-width: 0; }
.equation-content mjx-container[display="true"] { margin: .35rem 0 1rem !important; overflow-x: auto; overflow-y: hidden; }
.equation-content p { margin-bottom: 0; color: var(--muted); font-size: .95rem; }
.stability-note { padding: 1.5rem 2rem; color: #344155; background: #f1f5f9; border-top: 1px solid var(--border); text-align: center; }
.stability-note mjx-container[display="true"] { margin: .7rem 0 .1rem !important; }
.results-intro { margin: -1rem auto 2.5rem; color: var(--muted); }
.result-block { margin-bottom: 3rem; padding: 2rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.result-note { color: var(--muted); font-size: .9rem; }
.result-figure { height: 100%; padding: 1rem; background: #fff; border: 1px solid var(--border); border-radius: 10px; }
.result-figure img { width: 100%; height: 330px; object-fit: contain; }
.result-figure figcaption { margin-top: .75rem; color: var(--muted); font-size: .9rem; text-align: center; }
.secondary-results .result-figure img { height: 300px; }
.contribution-section { background: var(--surface); border-block: 1px solid var(--border); }
.contribution-list p { padding: .8rem 0 .8rem 1rem; border-left: 3px solid var(--primary); }
.bibtex-header { display: flex; align-items: center; justify-content: space-between; }
.copy-bibtex-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .65rem .9rem; color: #fff; background: var(--primary); border: 0; border-radius: 8px; font-weight: 600; cursor: pointer; }
pre { padding: 1.5rem !important; overflow-x: auto; background: var(--surface) !important; border: 1px solid var(--border); border-radius: 10px; }
code { color: var(--text) !important; background: transparent !important; }
.footer { padding: 3rem 1.5rem; background: var(--surface); border-top: 1px solid var(--border); color: var(--muted); }
.footer a { color: var(--primary); }
@media screen and (max-width: 768px) {
  .publication-header .hero-body { padding: 3rem 1rem 2rem; }
  .publication-title { font-size: 2.25rem !important; }
  .section { padding: 3rem 1rem; }
  .teaser .hero-body { padding: 1rem; }
  .result-block { padding: 1rem; }
  .result-figure img, .secondary-results .result-figure img { height: auto; max-height: 320px; }
  .equation-row { grid-template-columns: 1fr; gap: .75rem; padding: 1.5rem 1rem; }
  .equation-content { font-size: .86rem; }
  .stability-note { padding: 1.25rem 1rem; }
}
