/*
 * BEAT project page.
 * Page structure adapted and modified from the Nerfies project page:
 * https://github.com/nerfies/nerfies.github.io
 * Licensed under CC BY-SA 4.0: https://creativecommons.org/licenses/by-sa/4.0/
 */

:root {
  --beat-blue: #3273dc;
  --beat-blue-soft: #eef5ff;
  --beat-cyan: #22a6b3;
  --beat-ink: #202124;
  --beat-muted: #5f6368;
  --beat-line: #dfe3e8;
  --beat-light: #f5f7fa;
}

html { scroll-behavior: smooth; }
body.beat-project { color: var(--beat-ink); font-family: "Noto Sans", sans-serif; }
.beat-project a { color: #1f72c9; }
.beat-project code { color: #315f9d; background: #f2f5f8; }
.beat-project .navbar { border-bottom: 1px solid #eef0f2; }
.beat-home-link { display: inline-flex; gap: .55rem; color: var(--beat-muted) !important; font-family: "Google Sans", sans-serif; font-weight: 600; }
.beat-home-link:hover { color: var(--beat-blue) !important; background: transparent !important; }

.publication-header .hero-body { padding-top: 4rem; padding-bottom: 2.2rem; }
.publication-venue { margin-bottom: 1rem; color: var(--beat-blue); font-family: "Google Sans", sans-serif; font-size: .88rem; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; }
.publication-title { font-family: "Google Sans", sans-serif; font-size: clamp(2.45rem, 5.5vw, 4rem) !important; line-height: 1.1 !important; letter-spacing: -.035em; }
.beat-wordmark { color: var(--beat-blue); font-variant: small-caps; letter-spacing: -.02em; }
.publication-authors { font-family: "Google Sans", sans-serif; }
.publication-authors a { color: hsl(204, 86%, 53%) !important; }
.publication-authors a:hover { text-decoration: underline; }
.author-block { display: inline-block; margin: 0 .38rem; }
.author-block sup { margin-left: .08rem; color: var(--beat-muted); font-size: .66em; }
.publication-affiliation { margin-top: .45rem; color: var(--beat-muted); }
.publication-links { margin-top: 1.25rem; }
.link-block { display: inline-block; margin: .28rem .14rem; }
.link-block .button { min-width: 9.2rem; font-family: "Google Sans", sans-serif; }
.link-block .button.is-static { border-color: #363636; color: #fff; background: #363636; opacity: .58; }
.link-block .icon { font-size: .9rem; }

.teaser .hero-body { padding-top: 0; padding-bottom: 3rem; }
.teaser { font-family: "Google Sans", sans-serif; }
.main-figure { margin: 0; }
.main-figure img { width: 100%; padding: 1.25rem; border: 1px solid var(--beat-line); border-radius: 12px; background: #fff; box-shadow: 0 12px 35px rgba(37, 49, 65, .09); }
.main-figure figcaption { max-width: 58rem; margin: 1rem auto 0; color: var(--beat-muted); font-family: "Noto Sans", sans-serif; font-size: .86rem; line-height: 1.65; text-align: center; }
.teaser-caption { max-width: 52rem; margin: 1.25rem auto 0 !important; line-height: 1.45 !important; }

.beat-project .section { padding-top: 4rem; padding-bottom: 4rem; }
.beat-project .title { font-family: "Google Sans", sans-serif; }
.beat-project .title.is-3 { margin-bottom: 1.6rem; }
.abstract-copy { color: #34383d; font-size: 1.03rem; line-height: 1.78; }
.abstract-copy p + p { margin-top: 1rem; }
.method-section, .efficiency-section { background: var(--beat-light); }
.method-columns { margin-top: .2rem; }
.method-panel { height: 100%; padding: 1.55rem; border: 1px solid var(--beat-line); border-radius: 10px; background: #fff; box-shadow: 0 6px 20px rgba(37, 49, 65, .05); }
.method-panel .title { margin: .5rem 0 .85rem; line-height: 1.25; }
.method-panel p:last-child, .method-panel > p { color: #4b5158; line-height: 1.7; }
.method-eyebrow { margin: 0 !important; color: var(--beat-blue) !important; font-family: "Google Sans", sans-serif; font-size: .71rem; font-weight: 700; letter-spacing: .08em; }
.tensor-line { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1rem; }
.tensor-line span { color: var(--beat-blue); }
.loss-box { max-width: 44rem; margin: 1.8rem auto 0; padding: 1.05rem 1.35rem; border: 1px solid #cfd8e3; border-radius: 10px; background: #fff; font-family: "Castoro", serif; font-size: clamp(1.25rem, 2.8vw, 1.65rem); }
.loss-box > span { display: inline-block; margin: .1rem .08rem; }
.loss-box sub { color: var(--beat-blue); font-family: "Noto Sans", sans-serif; font-size: .55em; }

.results-section { background: #fff; }
.table-intro { max-width: 49rem; margin: -.75rem auto 1.4rem !important; color: var(--beat-muted) !important; }
.beat-table-wrap { margin: 0 auto; border: 1px solid var(--beat-line); border-radius: 10px; background: #fff; box-shadow: 0 6px 20px rgba(37, 49, 65, .045); }
.beat-table-wrap:focus-visible { outline: 3px solid rgba(50, 115, 220, .35); outline-offset: 3px; }
.beat-table { margin-bottom: 0 !important; font-size: .91rem; }
.beat-table caption { padding: .9rem 1rem; color: #4e5966; border-bottom: 1px solid var(--beat-line); background: #fafbfc; font-family: "Google Sans", sans-serif; font-size: .82rem; font-weight: 600; text-align: left; caption-side: top; }
.beat-table thead th { color: #3c4652; border-width: 0 0 1px !important; background: #f5f7f9; font-family: "Google Sans", sans-serif; white-space: nowrap; }
.beat-table tbody td { vertical-align: middle; }
.beat-table tbody td:not(:first-child) { font-variant-numeric: tabular-nums; text-align: right; }
.beat-table .reference-row { background: #fafbfc; }
.beat-table .ours-row { color: #163d70; background: var(--beat-blue-soft) !important; }
.beat-table .ours-row td:first-child { border-left: 4px solid var(--beat-blue); }
.compact-table { max-width: 58rem; }
[aria-label="Adapter and MPPL ablation"] .beat-table td:nth-child(2),
[aria-label="Adapter and MPPL ablation"] .beat-table td:nth-child(3) { text-align: center; }
.evidence-note { max-width: 58rem; margin: 1.25rem auto 0; color: #3f4a55; border: 1px solid #d8e5f5; background: #f3f8ff; font-size: .84rem; line-height: 1.62; }
.control-note, .protocol-copy { max-width: 56rem; margin: 1rem auto 0; color: var(--beat-muted); font-size: .82rem; line-height: 1.65; }
.protocol-copy { text-align: center; }
.limitations-section { background: #fff; border-top: 1px solid #eef0f2; border-bottom: 1px solid #eef0f2; }
.limitations-section .content { color: #454c54; font-size: .96rem; line-height: 1.75; text-align: center; }
.citation-block { max-width: 58rem; margin: 0 auto; padding: 1.4rem !important; border: 1px solid var(--beat-line); border-radius: 9px; background: #f5f7f9 !important; font-size: .82rem; line-height: 1.65; white-space: pre; overflow-x: auto; }
.citation-block code { padding: 0; color: #303942; background: transparent; }

.beat-project .footer { padding: 3rem 1.5rem; background: #fafafa; }
.footer-copy { color: var(--beat-muted); font-size: .78rem; line-height: 1.65; }
.footer-copy p { margin-bottom: .55rem !important; }

@media screen and (max-width: 768px) {
  .publication-header .hero-body { padding-top: 2.5rem; }
  .publication-title { font-size: clamp(2rem, 9vw, 2.75rem) !important; }
  .publication-authors { font-size: 1rem !important; }
  .publication-affiliation { font-size: .84rem !important; }
  .link-block, .link-block .button { width: 100%; }
  .link-block { max-width: 20rem; }
  .main-figure img { padding: .55rem; border-radius: 8px; }
  .main-figure figcaption { text-align: left; }
  .beat-project .section { padding-top: 3rem; padding-bottom: 3rem; }
  .method-panel { height: auto; }
  .beat-table { font-size: .8rem; }
  .citation-block { font-size: .72rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
