/* Dyad-specific additions to EARL's unchanged theme and flat section layout. */
.page-hero .hero-body { padding: 3.5rem 1.5rem 2rem; }
.page-hero .publication-title { max-width: 960px; margin: 0 auto 1.5rem !important; font-size: 2.65rem !important; line-height: 1.14 !important; letter-spacing: -0.035em; }
.page-hero .publication-authors { font-size: 1.05rem !important; margin-bottom: 1rem; }
.publication-authors .author-block { line-height: 1.85; }
.publication-authors .author-block a, .publication-authors .author-block > span { white-space: nowrap; }
.publication-authors sup { margin-left: 0.12em; font-size: 0.65em; }
/* Complete institutional artwork; lettering is never recreated in HTML. */
.affiliation-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: 1rem 1.8rem; max-width: 660px; margin: 1.5rem auto 0.8rem; }
.affiliation-logo { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; height: 48px; gap: 0.4rem; }
.affiliation-logo sup { align-self: flex-start; font-size: 0.625rem; line-height: 1; color: var(--text-secondary); }
.affiliation-logo img { display: block; width: auto; height: auto; max-width: calc(100% - 14px); max-height: 48px; object-fit: contain; }
.affiliation-zju img { width: 164px; }
.affiliation-sap img { width: 70px; }
.affiliation-csu img { width: 180px; }
.affiliation-hkust img { width: 194px; }
.affiliation-chalmers .affiliation-lockup { display: flex; align-items: center; gap: 5%; width: 180px; max-width: calc(100% - 14px); }
.affiliation-chalmers .chalmers-crest { width: 25%; max-width: none; }
.affiliation-chalmers .chalmers-wordmark { width: 70%; max-width: none; }
/* Remove only blank canvas around the complete published symbol and lettering. */
.affiliation-msr .affiliation-lockup { position: relative; display: block; width: 136px; max-width: calc(100% - 14px); aspect-ratio: 701 / 245; overflow: hidden; }
.affiliation-msr .affiliation-lockup img { position: absolute; width: 114.1227%; max-width: none; max-height: none; left: -5.5635%; top: -20.4082%; }
.corresponding-author { color: var(--text-secondary); font-size: 0.75rem; margin-bottom: 0.75rem; }
.corresponding-author sup { margin-right: 0.2em; }
.affiliation-logo:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 5px; border-radius: 3px; }
.page-hero .publication-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.page-hero .publication-links .link-block { margin: 0; }
.publication-links .button { margin: 0 !important; font-size: 0.925rem; }
.icon svg { width: 1.1rem; height: 1.1rem; }
.arxiv-icon { font-family: Georgia, serif; font-size: 1.5rem; }

.tldr-section.hero.is-light, main > section:nth-of-type(even) { background: #f0f5fc; }

.section-copy { font-size: 1.2rem; line-height: 1.6; margin-bottom: 1rem; color: var(--text-primary); }
.section-copy:last-child { margin-bottom: 0; }
.section-copy strong { font-weight: 600; }
.section-copy .dyad-name { font-weight: 700; }
.section-copy .key-emphasis { color: #173f7a; font-weight: 700; font-size: 1.1em; line-height: 1.45; }
.overview-media { margin-top: 2rem; }
.overview-player { position: relative; overflow: hidden; border-radius: 12px; background: #09131e; }
.overview-player video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.overview-play { position: absolute; top: 18%; left: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 50%; background: rgba(255, 255, 255, 0.93); color: #173f7a; box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25); cursor: pointer; }
.overview-play:hover { background: white; }
.overview-play svg { width: 28px; height: 28px; margin-left: 3px; }
.overview-play[hidden], #overview-video-status[hidden] { display: none; }
#overview-video:focus-visible { outline: 3px solid var(--primary-color); outline-offset: -3px; }
#overview-video-status { margin: 0.75rem 0 0; }
.content-section .title.is-3 { font-size: 2rem; line-height: 1.3; }
.result-figure { margin: 1.8rem 0 0; }
.result-figure + .section-copy { margin-top: 1.8rem; }
.result-figure picture, .result-figure img { display: block; width: 100%; }
.result-figure img { height: auto; }
.result-figure figcaption, .approach-media figcaption, .results-table caption { font-size: 0.875rem; line-height: 1.6; color: var(--text-primary); text-align: left; }
.result-figure figcaption, .approach-media figcaption { margin-top: 0.8rem; }
.result-table-wrapper { margin-top: 1.8rem; }
.results-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 1rem; }
.results-table caption { caption-side: top; padding-bottom: 1rem; }
.results-table th, .results-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border-color); text-align: right; vertical-align: middle; font-variant-numeric: tabular-nums; }
.results-table thead th { background: var(--background-secondary); font-weight: 600; }
.results-table th:first-child { text-align: left; }
.results-table tbody th { font-weight: 500; }
.results-table .dyad-score { color: var(--primary-hover); background: #eff6ff; }
.results-table .dyad-score strong { color: inherit; }

.jevbench-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; margin-top: 1.8rem; }
.jevbench-layout .result-table-wrapper { min-width: 0; margin-top: 0; }
.jevbench-analysis { min-width: 0; }

.capability-carousel { position: relative; }
.figure-controls { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.figure-controls[hidden], .capability-slide[hidden] { display: none; }
.figure-arrow { position: absolute; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 96px; padding: 0; border: 1px solid #d3dfef; border-radius: 14px; background: rgba(255, 255, 255, 0.85); color: #173f7a; cursor: pointer; pointer-events: auto; }
.figure-arrow[data-previous] { left: 8px; }
.figure-arrow[data-next] { right: 8px; }
.figure-arrow:hover { background: #e7effb; border-color: #91acd2; }
.figure-arrow:focus-visible { outline-offset: 2px; }
.figure-arrow svg { width: 21px; height: 21px; }
/* The selected environment is already named in the figure; keep live updates accessible. */
.figure-selection { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.capability-carousel:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 5px; }

.approach-media { margin: 1.8rem 0; }
#approach-video { display: block; width: 100%; height: auto; object-fit: contain; background: white; }
#approach-video[hidden], .approach-poster[hidden] { display: none; }
.approach-poster { margin: 0; padding: 1rem; background: white; }
.approach-poster > a { display: block; }
.approach-poster img { display: block; width: 100%; height: auto; }
.video-status { margin-bottom: 1rem; text-align: center; color: var(--text-secondary); font-size: 0.9rem; }

.citation-section { padding-bottom: 3rem; }
.bibtex-header { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; margin-bottom: 0.75rem; }
.bibtex-header .title.is-3 { margin-bottom: 0 !important; padding-bottom: 0; }
.copy-bibtex-btn { flex-shrink: 0; font-size: 0.8rem; padding: 0.55rem 0.8rem; }
.copy-bibtex-btn svg { width: 1rem; height: 1rem; }
.copy-bibtex-btn.copied .copy-text::after { content: none; }
.copy-status { min-height: 1.6em; margin-top: 0.5rem; color: var(--text-secondary); font-size: 0.825rem; }
pre { padding: 1.25rem !important; text-align: left; font-size: 0.8rem !important; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.footer { padding: 2rem 1.5rem; }
.footer .content { margin-left: 0; font-size: 0.8rem; line-height: 1.8; }
.scroll-to-top svg { width: 1.5rem; height: 1.5rem; }
.skip-link { position: fixed; left: 1rem; top: -5rem; padding: 0.6rem 1rem; z-index: 1001; background: white; border: 2px solid var(--primary-color); border-radius: 0.5rem; }
.skip-link:focus { top: 1rem; }
button:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 4px; }
section[id], figure[id], table[id], .jevbench-layout { scroll-margin-top: 1.5rem; }

@media screen and (max-width: 900px) {
  .jevbench-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
}

@media screen and (max-width: 768px) {
  .page-hero .hero-body { padding: 2.5rem 1.1rem 1.5rem; }
  .page-hero .publication-title { font-size: 2.15rem !important; }
  .page-hero .publication-authors { font-size: 0.95rem !important; }
  .affiliation-list { max-width: 610px; gap: 1rem; }
  .section-copy { font-size: 1.1rem; }
  .overview-play { width: 48px; height: 48px; }
  .overview-play svg { width: 23px; height: 23px; }
  .content-section .title.is-3 { font-size: 1.75rem; }
  .scroll-to-top { bottom: 1rem; right: 1rem; width: 44px; height: 44px; }
}
@media screen and (max-width: 640px) {
  .affiliation-list { gap: 0.8rem 0.6rem; }
  .affiliation-logo { height: 36px; gap: 0.2rem; }
  .affiliation-logo sup { font-size: 0.55rem; }
  .affiliation-logo img { max-height: 36px; max-width: calc(100% - 10px); }
  .affiliation-sap img { width: 52px; }
  .figure-arrow { width: 30px; height: 80px; border-radius: 11px; }
  .figure-arrow[data-previous] { left: -12px; }
  .figure-arrow[data-next] { right: -12px; }
  .figure-arrow svg { width: 18px; height: 18px; }
}
@media screen and (max-width: 480px) {
  .page-hero .hero-body { padding-top: 1.75rem; }
  .page-hero .publication-title { font-size: 1.8rem !important; overflow-wrap: break-word; }
  .page-hero .publication-authors { font-size: 0.9rem !important; }
  .page-hero .publication-links .button { width: auto; padding: 0.55rem 1rem !important; }
  .section { padding: 2.5rem 1.1rem; }
  .content-section .title.is-3 { font-size: 1.6rem; margin-bottom: 1.5rem !important; padding-bottom: 0; }
  .result-figure figcaption, .approach-media figcaption, .results-table caption { font-size: 0.85rem; }
  .results-table { font-size: 0.85rem; }
  .results-table th, .results-table td { padding: 0.7rem 0.45rem; }
  .jevbench-table th, .jevbench-table td { padding-right: 0.3rem; padding-left: 0.3rem; }
  .approach-poster { padding: 0.6rem; }
  .video-status { font-size: 0.8rem; }
  pre { padding: 0.9rem !important; font-size: 0.75rem !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .scroll-to-top, .copy-bibtex-btn, .copy-status, .figure-controls, .overview-play { display: none; }
  .capability-slide[hidden] { display: block; }
  .page-hero .hero-body { padding-top: 0; }
  .section { padding-top: 1.5rem; padding-bottom: 1.5rem; }
  .result-figure, .results-table, .approach-media, .overview-media { break-inside: avoid; }
}
