body {
  font-family: 'Comic Sans MS', 'Comic Neue', cursive;
}
button, .button, .title, .subtitle, .publication-title, .publication-authors,
.venue-badge, .citation-facts, .results-table, .skill-card {
  font-family: 'Comic Sans MS', 'Comic Neue', cursive;
}
#BibTeX pre, #BibTeX code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }


.footer .icon-link {
    font-size: 25px;
    color: #000;
}

.link-block a {
    margin-top: 5px;
    margin-bottom: 5px;
}

/* Warm, paper-like actions rather than the template's dark pills. */
.publication-links .external-link.button.is-dark {
  background: #fff8f4;
  color: #493c39;
  border: 1px solid #e5c9c0;
  box-shadow: 0 2px 0 rgba(118, 73, 61, .08);
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.publication-links .external-link.button.is-dark:hover,
.publication-links .external-link.button.is-dark:focus-visible {
  background: #faeae3;
  color: #8d3041;
  border-color: #cc8f93;
  box-shadow: 0 4px 10px rgba(118, 73, 61, .12);
  transform: translateY(-2px);
}
.publication-links .external-link.button.is-dark:focus-visible,
.citation-copy:focus-visible { outline: 2px solid #a53f52; outline-offset: 3px; }

.doodle-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  flex-wrap: wrap;
}
.section-doodle {
  width: 1.35em;
  height: 1.35em;
  flex: 0 0 auto;
  fill: none;
  stroke: #413a36;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(-3deg);
}
.section-heading-small .section-doodle { width: 1.2em; height: 1.2em; }
.doodle-idea .idea-rays { stroke: #aa834d; }
.doodle-sprout .sprout-leaf { stroke: #526347; }
.doodle-sprout .sprout-ground { stroke: #796d61; }

.dnerf {
  font-variant: small-caps;
}


.teaser .hero-body {
  padding-top: 0;
  padding-bottom: 3rem;
}

.teaser {
  font-family: 'Comic Sans MS', 'Comic Neue', cursive;
}

/* Keep the full paper figure below the compact title-row sketch. */
.motivation-figure { text-align: center; }
.motivation-figure img { display: block; width: min(75%, 760px); height: auto; margin: 0 auto; }
.motivation-figure figcaption { margin: .9rem auto 0; max-width: 770px; }
@media screen and (max-width: 640px) {
  .motivation-figure img { width: 100%; }
  .motivation-figure figcaption { font-size: .9rem; }
}

.publication-title {
}

.publication-banner {
  max-height: parent;

}

.publication-banner video {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  object-fit: fit;
}

.publication-header .hero-body {
}

.publication-title {
    font-family: 'Comic Sans MS', 'Comic Neue', cursive;
}

.publication-authors {
    font-family: 'Comic Sans MS', 'Comic Neue', cursive;
}

.publication-venue {
    color: #555;
    width: fit-content;
    font-weight: bold;
}

.publication-awards {
    color: #ff3860;
    width: fit-content;
    font-weight: bolder;
}

.publication-authors {
}

.publication-authors a {
   color: hsl(204, 86%, 53%) !important;
}

.publication-authors a:hover {
    text-decoration: underline;
}

.author-block {
  display: inline-block;
}

.publication-banner img {
}

.publication-authors {
  /*color: #4286f4;*/
}

.publication-video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;

    overflow: hidden;
    border-radius: 10px !important;
}

.publication-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.publication-body img {
}

.results-carousel {
  overflow: hidden;
}

.results-carousel .item {
  margin: 5px;
  overflow: hidden;
  padding: 20px;
  font-size: 0;
}

.results-carousel video {
  margin: 0;
}

.slider-pagination .slider-page {
  background: #000000;
}

.eql-cntrb { 
  font-size: smaller;
}




/* ---------- SIRI custom styles ---------- */

/* Results tables (booktabs-like) */
.table-wrapper {
  overflow-x: auto;
  margin: 0 auto 1.5rem auto;
}

.results-table {
  border-collapse: collapse;
  margin: 0 auto;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.results-table.small {
  font-size: 0.95rem;
  width: 100%;
}

.results-table th,
.results-table td {
  padding: 0.3rem 0.6rem;
  text-align: center;
}

.results-table .method-col {
  text-align: left;
  font-weight: 500;
}

.results-table thead tr:first-child th {
  border-top: 2px solid #333;
  border-bottom: 1px solid #999;
}

.results-table thead tr:last-child th {
  border-bottom: 1px solid #999;
}

.results-table tbody tr:last-child td {
  border-bottom: 2px solid #333;
}

.results-table .group-row td {
  background: #ececec;
  text-align: left;
  font-style: italic;
  font-weight: 600;
  color: #444;
  padding: 0.25rem 0.6rem;
}

.results-table .webshop-col {
  border-left: 1px solid #bbb;
}

.results-table .ours-row td {
  background: #fde8ef;
  font-weight: 600;
}

.results-table .delta {
  font-size: 0.72em;
  color: #2e7d32;
  vertical-align: super;
  margin-left: 2px;
}

.results-note {
  max-width: 900px;
  margin: 0 auto 1.2rem auto;
  color: #555;
  font-size: 0.95rem;
}

.small-tables {
  margin-top: 2.5rem;
  margin-bottom: 2rem;
}

/* Phase cards under framework figure */
.phase-card {
  background: #f7f7f7;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
  height: 100%;
  text-align: left;
}

.phase-title {
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 0.45rem;
  color: #2b3a55;
}

.phase-desc {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.55;
}

/* Carousel caption */
.carousel-caption {
  font-size: 0.95rem;
  color: #555;
  max-width: 760px;
  margin: 0.8rem auto 0 auto;
  padding: 0 1rem;
}

.results-carousel .item img {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
}

/* Skill cards */
.window-toolbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .75rem;
  min-height: 3.15rem;
  padding: .55rem 1rem;
  border-bottom: 1px solid #dedfdd;
  background: #f4f4f3;
}
.window-lights { display: inline-flex; align-items: center; gap: .4rem; justify-self: start; }
.window-lights span {
  width: .68rem;
  height: .68rem;
  border-radius: 50%;
  border: 1px solid rgba(60, 60, 58, .14);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.5);
}
.window-lights span:nth-child(1) { background: #ed827a; }
.window-lights span:nth-child(2) { background: #e9bd60; }
.window-lights span:nth-child(3) { background: #82bd99; }
.skill-card {
  border: 1px solid #dadbd9;
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  background: #fff;
  box-shadow: 0 10px 24px rgba(44, 48, 46, .075), 0 1px 2px rgba(44, 48, 46, .04);
}

.skill-card-title {
  grid-column: 2;
  margin: 0;
  color: #4c4d4b;
  font-weight: 700;
  font-size: .89rem;
  white-space: nowrap;
}

.skill-card-body {
  padding: 1.1rem 1.25rem 1.25rem;
  font-size: 0.92rem;
  color: #3c3d3b;
  background: #fff;
  line-height: 1.6;
}

.skill-card-body p {
  margin-bottom: 0.65rem;
}

.skill-card-body p:last-child {
  margin-bottom: 0;
}

/* Teaser / framework images get a soft card look */
.teaser-image,
.framework-image {
  border-radius: 10px;
}

/* BibTeX block */
#BibTeX pre { font-size: 0.85rem; }

@media screen and (max-width: 768px) {
  .results-table {
    font-size: 0.72rem;
  }
  .results-table th,
  .results-table td {
    padding: 0.22rem 0.4rem;
  }
}

#BibTeX pre {
  overflow-x: auto;
  white-space: pre;
}

#BibTeX {
  background: #fcf9f6;
  border-top: 1px solid #f1e7e0;
}
.citation-intro { text-align: center; color: #6b6461; }
.citation-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin: 1.35rem 0 1.7rem;
}
.citation-facts > div {
  padding: .8rem 1rem;
  background: #fff;
  border: 1px solid #eee0d9;
  border-radius: 10px;
}
.citation-facts span { display: block; color: #9b5f5c; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.citation-facts strong { display: block; margin-top: .15rem; color: #383333; font-size: .94rem; font-weight: 600; }
.citation-formats { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; margin: 0 0 1.55rem; }
.citation-formats-label { color: #756865; font-size: .88rem; font-weight: 700; margin-right: .2rem; }
.citation-format-button, .citation-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  height: 2rem;
  padding: 0 .55rem;
  border: 1px solid #d9c2b8;
  border-radius: 7px;
  color: #713e42;
  background: #fffaf7;
  font: 700 .82rem/1 'Comic Sans MS', 'Comic Neue', cursive;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.citation-format-button:hover, .citation-copy:hover { background: #f8e9e2; border-color: #b88981; transform: translateY(-1px); }
.citation-format-button:focus-visible, .citation-copy:focus-visible, .citation-downloads button:focus-visible { outline: 2px solid #a53f52; outline-offset: 2px; }
.citation-format-button.is-copied, .citation-copy.is-copied { background: #e9f2ea; border-color: #8eae96; color: #315c3e; }
.citation-window {
  overflow: hidden;
  border: 1px solid #dfd0c6;
  border-radius: 12px;
  background: #fffdfb;
  box-shadow: 0 12px 26px rgba(89, 61, 48, .075), 0 1px 2px rgba(89, 61, 48, .04);
}
.citation-window .window-toolbar { background: #f7f0eb; border-bottom-color: #e7dcd4; }
.citation-code-heading { margin-bottom: 0; }
.citation-code-heading .title { grid-column: 2; margin: 0; color: #54463f; font-size: .92rem; }
.citation-copy svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.citation-code-actions { grid-column: 3; display: flex; align-items: center; justify-self: end; gap: .7rem; }
.citation-copy-status { color: #6a514e; font-size: .82rem; text-align: right; }
.citation-copy-status:empty { display: none; }
.citation-downloads { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; margin: 0; padding: .65rem 1.25rem; border-top: 1px solid #eee3db; background: #faf5f0; color: #756865; font-size: .82rem; }
.citation-downloads button { padding: .1rem 0; border: 0; background: none; color: #854b50; font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.citation-downloads button:hover { color: #63343b; }
#BibTeX pre.citation-code {
  max-height: 370px;
  margin: 0;
  padding: 1.1rem 1.25rem;
  border: 0;
  border-radius: 0;
  background: #fffdfb;
  line-height: 1.55;
}

.acl-link-logo {
  display: block;
  width: 1.25em;
  height: 1.25em;
  object-fit: contain;
}

@media screen and (max-width: 640px) {
  .publication-title {
    font-size: clamp(1.75rem, 7.4vw, 2.5rem) !important;
    overflow-wrap: anywhere;
  }
  .venue-badge {
    max-width: 100%;
    font-size: 0.9rem;
  }
  .publication-detail { font-size: 0.82rem; }
  .citation-facts { grid-template-columns: 1fr; }
  .citation-code-heading { grid-template-columns: auto 1fr auto; gap: .55rem; }
  .citation-code-heading .title { justify-self: start; }
  .citation-copy-status { max-width: 4.5rem; line-height: 1.1; font-size: .7rem; }
  .citation-copy { flex: 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .section-doodle {
    animation: none !important;
    transform: none;
  }
  .publication-links .external-link.button.is-dark { transition: none; }
}

/* Method name: mimic the paper's \textsc{Siri} — full-size S + smaller uppercase IRI */
.methodname .mn-small {
  font-size: 0.74em;
}

/* Venue badge under the title */
.venue-line {
  text-align: center;
  margin-bottom: 1.2rem;
}
.publication-detail {
  margin-top: 0.55rem;
  color: #666;
  font-size: 0.9rem;
}
.citation-counter {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .08rem;
  min-width: 8.75rem;
  margin-top: .55rem;
  padding: .35rem .8rem .45rem;
  border-radius: 12px;
  color: #3f3733;
  font-family: 'Comic Sans MS', 'Comic Neue', cursive;
  text-decoration: none;
  transition: background-color .25s ease, transform .25s ease;
}
.citation-counter:hover { color: #3f3733; background: #fff8f2; transform: translateY(-2px); }
.citation-counter:focus-visible { outline: 2px solid #a53f52; outline-offset: 3px; }
.citation-counter-label { font-size: .73rem; font-weight: 700; letter-spacing: .1em; line-height: 1.2; }
.citation-counter-art { position: relative; display: grid; place-items: center; width: 6.35rem; height: 6.35rem; }
.citation-counter-sketch { width: 100%; height: 100%; fill: none; overflow: visible; transform-origin: center; animation: citationTurn 18s linear infinite; }
.citation-counter:hover .citation-counter-art { transform: scale(1.07); }
.citation-counter-art { transition: transform .35s ease; }
.citation-edge { fill: none; stroke: var(--edge-color); stroke-linecap: round; stroke-linejoin: round; }
.citation-edge-main { stroke-width: 3.4; }
.citation-edge-ink { stroke-width: 1.45; opacity: .62; }
.citation-edge-cyan .citation-edge-main { stroke-width: 3.65; }
.citation-edge-pink .citation-edge-main { stroke-width: 3.15; }
.citation-edge-lime .citation-edge-main { stroke-width: 3.75; }
.citation-edge-cyan { --edge-color: #4daabb; }
.citation-edge-blue { --edge-color: #315aab; }
.citation-edge-pink { --edge-color: #ce4c83; }
.citation-edge-orange { --edge-color: #e79437; }
.citation-edge-lime { --edge-color: #a8b63a; }
.citation-edge-green { --edge-color: #68a96b; }
.citation-fold { fill: none; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.citation-fold-blue { stroke: #315aab; stroke-width: 2.1; }
.citation-fold-cyan { stroke: #4daabb; stroke-width: 2.15; }
.citation-fold-pink { stroke: #ce4c83; stroke-width: 1.95; }
.citation-fold-lime { stroke: #a8b63a; stroke-width: 2.25; }
.citation-fold-orange { stroke: #e79437; stroke-width: 2.05; }
.citation-counter strong { position: absolute; font-size: 1.45rem; line-height: 1; font-weight: 700; color: #403a35; font-variant-numeric: tabular-nums; }
.citation-counter.has-count strong { animation: citationCountIn .45s cubic-bezier(.2,.8,.3,1) both; }
.citation-counter-source { color: #766b63; font-size: .69rem; line-height: 1.2; }
.citation-counter:hover .citation-counter-source { color: #8d3041; }
@keyframes citationTurn { to { transform: rotate(360deg); } }
@keyframes citationCountIn { from { opacity: .3; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .citation-counter, .citation-counter-art { transition: none; }
  .citation-counter-sketch, .citation-counter.has-count strong { animation: none !important; }
}

.venue-badge {
  display: inline-block;
  background: #fde8ef;
  color: #b02358;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  border: 1px solid #f5c2d4;
}

.venue-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.venue-logo {
  height: 1.25em;
  width: auto;
  display: block;
}

.institution-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2.5rem, 8vw, 6rem);
  margin: 1.5rem auto 0;
  min-height: 112px;
}

.institution-links[hidden] {
  display: none;
}

.institution-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 112px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.institution-links a:hover,
.institution-links a:focus-visible {
  opacity: 0.78;
  transform: translateY(-2px);
}

.institution-links img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.institution-links a:last-child img {
  width: 235px;
  height: 88px;
  object-fit: contain;
}

@media screen and (max-width: 480px) {
  .institution-links {
    gap: 1.5rem;
  }

  .institution-links a {
    width: 104px;
    height: 96px;
  }

  .institution-links a:last-child img {
    width: 190px;
    height: 71px;
  }
}

/* Keep citations centred; align each logo to its inner edge for equal visible gaps. */
.affiliation-citation-row { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:24px; width:min(100%,620px); margin:.8rem auto 0; }
.affiliation-citation-row .citation-counter { margin:0; }
.affiliation-mark { display:flex; align-items:center; justify-content:center; min-width:0; transition:opacity .2s; }
.affiliation-mark:hover { opacity:.8; }
.affiliation-mark:focus-visible { outline:2px solid #a53f52; outline-offset:6px; border-radius:3px; }
.affiliation-mark img { display:block; object-fit:contain; max-width:100%; height:auto; }
.affiliation-xmu { justify-content:flex-end; }
.affiliation-meituan { justify-content:flex-start; }
.affiliation-xmu img { width:92px; }
.affiliation-meituan img { width:86px; }
@media(max-width:480px) {
  .affiliation-citation-row { gap:8px; }
  .affiliation-xmu img { width:64px; }
  .affiliation-meituan img { width:60px; }
  .affiliation-citation-row .citation-counter { min-width:90px; padding:.3rem 0; }
  .affiliation-citation-row .citation-counter-art { width:4.75rem; height:4.75rem; }
  .affiliation-citation-row .citation-counter-label { font-size:.62rem; }
  .affiliation-citation-row .citation-counter-source { font-size:.55rem; }
  .affiliation-citation-row .citation-counter strong { font-size:1.25rem; }
}
