/* Project artwork, teaser, and controls specific to CodingDINO.
   The page grid and typography come from the GroundingPI project styles. */
@font-face {
  font-family: 'Google Sans';
  src: url('fonts/google-sans-latin-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.scroll-progress { width: 100%; transform: scaleX(0); transform-origin: left; }
.deferred-components codingdino-results:not(:defined) { min-height: 48rem; }
.deferred-components codingdino-benchmarks:not(:defined) { min-height: 57rem; }
.deferred-components codingdino-curves:not(:defined) { min-height: 80rem; }
.deferred-components codingdino-gallery:not([data-ready]) {
  display: block;
  visibility: hidden;
  contain: strict;
  height: 24rem;
}
@media (max-width: 1024px) {
  .deferred-components codingdino-results:not(:defined) { min-height: calc(100vw + 27rem); }
  .deferred-components codingdino-curves:not(:defined) { min-height: 95rem; }
}
@media (max-width: 620px) {
  .deferred-components codingdino-benchmarks:not(:defined) { min-height: 64rem; }
  .deferred-components codingdino-gallery[kind="qualitative"]:not([data-ready]) { height: 32rem; }
  .deferred-components codingdino-gallery[kind="revision"]:not([data-ready]) { height: 61rem; }
}
:root {
  --violet: #7349b5;
  --violet-dark: #583889;
  --avocado: #93c935;
}
.hero h1.hero-wordmark { width: min(84%, 800px); }
.hero-wordmark img { position: static; width: 100%; }
.hero-meta { line-height: 1.7; }
.intro-heading { display: flex; align-items: center; gap: 22px; margin-bottom: 12px; }
.intro-icon { width: 64px; height: 64px; object-fit: contain; }
.work-intro .intro-heading h2 {
  display: grid;
  align-items: center;
  width: 6.76em;
  min-width: 0;
  min-height: 1.1em;
  margin: 0;
}
.intro-heading h2 img { display: block; width: 100%; height: auto; }
.institution-logo > img { width: auto; height: auto; max-width: 100%; max-height: var(--logo-height); object-fit: contain; }
.button.pending, .copy-button:disabled { color: #756e7b; background: #f7f6f8; border-color: #e0dce3; }
.teaser .figure-trigger img { height: auto; width: 100%; }
.method-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 26px; color: #534c5b; }
.method-copy p { margin: 0; }
codingdino-results, codingdino-benchmarks, codingdino-curves { display: block; min-width: 0; max-width: 100%; }
codingdino-results { overflow-x: clip; }
#benchmarks { scroll-margin-top: 75px; }
.resource-actions { align-items: center; }
.footer-bottom { border-top: 1px solid var(--rule); padding-top: 24px; }
.chapter-links a[aria-current=location] { color: var(--violet); }
.chapter-links a[aria-current=location]::after { content:""; position:absolute; inset-inline:0; bottom:0; height:2px; background:var(--violet); }
@media (max-width: 760px) {
  .hero h1.hero-wordmark { width: 100%; }
  .hero-meta { max-width: calc(100% - 56px); }
  .hero-meta strong { white-space: normal; }
  .intro-heading { gap: 14px; }
  .intro-icon { width: 46px; height: 46px; }
  .method-copy { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-height: 600px) and (min-width: 600px) {
  .hero h1.hero-wordmark { width: min(65%,550px); }
}
