/* ViewNeXt demo: the original site, restyled in the paper's project-page palette (phai-lab.github.io/ViewNext,
   assets/base.css). Loaded after site.css; only colours, fonts and type treatment change, never content. Overlays that sit
   on photos and videos (hero copy, tile captions, badges) keep their dark scrims. */
@font-face { font-family: "DM Sans"; src: url("/static/demo-fonts/dmsans.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("/static/demo-fonts/ebgaramond-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
:root {
  --ground: #f5f1ea;
  --surface: #ede7dd;
  --surface-2: #e4ded4;
  --well: #fbf9f5;
  --line: #ddd5c8;
  --line-2: #cbc2b4;
  --text: #4b4640;
  --text-2: #5a544c;
  --muted: #8a837a;
  --dim: #8a837a;
  --amber: #4b4640;        /* the main action: the paper page's dark-brown buttons */
  --amber-hover: #35312c;
  --amber-ink: #f5f1ea;
  --blue: #3d6fb6;
  --red: #b4513f;
  --green: #4f8a3c;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "DM Sans", system-ui, sans-serif;
  color-scheme: light;
}
body { font-weight: 500; }
.display { font: 700 clamp(28px, 3.2vw, 42px)/1.15 var(--display); text-transform: none; letter-spacing: -.005em; }
.eyebrow { color: var(--muted); font-family: var(--sans); }
.doc h1 { font: 600 clamp(30px, 3.4vw, 42px)/1.1 "EB Garamond", Georgia, serif; text-transform: none; }
.mode-card h3 { font: 700 24px var(--display); text-transform: none; }
.site-nav { background: rgba(245, 241, 234, .86); border-bottom: 1px solid var(--line); }
.pill.soft:hover { background: var(--surface-2); }
.tile:hover { box-shadow: 0 14px 30px rgba(96, 80, 60, .28); }
.flow-media, .mode-media, .multi-output { box-shadow: 0 10px 22px rgba(96, 80, 60, .2); border-color: transparent; }
.hero-frame { box-shadow: 0 16px 30px rgba(96, 80, 60, .22); }
.band.surface { background: var(--surface); }

/* the paper header above the site (title, authors, affiliations, links), as on the project page */
.paper-hdr { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 40px 24px 36px; }
.paper-hdr .title { font-family: "EB Garamond", Georgia, serif; font-weight: 600; font-size: clamp(28px, 3.5vw, 46px); line-height: 1.15;
                    letter-spacing: -.02em; margin: 0; color: var(--text); }
.paper-hdr .authors { margin: 0; font-size: 15.5px; line-height: 1.7; }
.paper-hdr .authors span { white-space: nowrap; }
.paper-hdr .authors a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
                        text-decoration-color: rgba(75, 70, 64, .45); }
.paper-hdr sup { font-size: .68em; margin-left: 1px; color: var(--muted); }
.paper-hdr .affs { margin: -8px 0 0; font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 16px; }
.paper-hdr .eq { margin: -10px 0 0; font-size: 12.5px; color: var(--muted); display: flex; gap: 18px; justify-content: center; }
.paper-hdr .btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.paper-hdr .btn { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 16px; font-size: 13.5px; font-weight: 600;
                  background: var(--text); color: var(--ground); text-decoration: none; }
.paper-hdr .btn:hover { background: #35312c; }

/* the demo notes and the citation below the site's sections */
.paper-notes ul { margin: 0; padding-left: 20px; font-size: 15px; display: grid; gap: 6px; max-width: 76ch; }
.paper-notes pre { margin: 0; padding: 16px 18px; border-radius: 12px; background: rgba(75, 70, 64, .06); font-size: 13px; line-height: 1.55; overflow-x: auto; }

/* a paper-page footer: the labs, one row of links, one line of fine print (replaces the site's product footer) */
.paper-foot { margin-top: 72px; padding: 32px 24px 44px; border-top: 1px solid var(--line); text-align: center; display: grid; gap: 10px;
              font-size: 13px; color: var(--muted); }
.paper-foot .orgs { margin: 0; font-size: 15px; font-weight: 600; color: var(--text); }
.paper-foot .orgs a { color: inherit; text-decoration: none; }
.paper-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.paper-foot nav a, .paper-foot .orgs a:hover { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: transparent; }
.paper-foot nav a:hover { color: var(--text); text-decoration-color: currentColor; }
.paper-foot .small { margin: 0; font-size: 12.5px; }
