/* Oobi's reserved boxes (spec 206). Every placement is a box with an explicit size holding the studio's still
   (an <img> with width and height), so nothing reflows when he appears or moves; a loop or one-shot plays
   inside the same box (oobi.css). Sizes are the proposal's figure heights: desktop, then phone. No Oobi on
   dark surfaces (the footer and dark bands carry none). Movement lives in oobi.js and oobi.css only. */
.oobi{--oobi-size:120px;position:relative;display:block;flex:none;box-sizing:border-box;width:var(--oobi-size);height:var(--oobi-size);margin:0;padding:0;line-height:0}
.oobi>.oobi-still,.oobi>.oobi-motion{display:block;box-sizing:border-box;width:100%;height:100%;max-width:none;max-height:none;margin:0;object-fit:contain}
/* Corrected studio frames include measured clear borders; no second padding layer. */
.oobi-slot{display:block;width:140px;height:140px}
.oobi[data-oobi=product-overview]{--oobi-size:190px}.oobi[data-oobi=product-statistics]{--oobi-size:190px}.oobi[data-oobi=product-data]{--oobi-size:180px}.oobi[data-oobi=product-documents]{--oobi-size:180px}.oobi[data-oobi=product-slides]{--oobi-size:190px}.oobi[data-oobi=product-pdf]{--oobi-size:180px}.oobi[data-oobi=product-ai]{--oobi-size:185px}.oobi[data-oobi=product-local]{--oobi-size:170px}.oobi[data-oobi=how-it-works]{--oobi-size:140px}.oobi[data-oobi=library]{--oobi-size:170px}.oobi[data-oobi=pricing]{--oobi-size:130px}.oobi[data-oobi=signup]{--oobi-size:170px}.oobi[data-oobi=help-centre]{--oobi-size:170px}.oobi[data-oobi=help-empty]{--oobi-size:120px}.oobi[data-oobi=help-article]{--oobi-size:130px}.oobi[data-oobi=business-closing]{--oobi-size:170px}.oobi[data-oobi=meet-curious]{--oobi-size:130px}.oobi[data-oobi=meet-thinking]{--oobi-size:130px}.oobi[data-oobi=meet-delighted]{--oobi-size:130px}.oobi[data-oobi=meet-writing]{--oobi-size:150px}.oobi[data-oobi=meet-chart]{--oobi-size:150px}.oobi[data-oobi=meet-pointing]{--oobi-size:150px}.oobi[data-oobi=meet-coffee]{--oobi-size:150px}.oobi[data-oobi=not-found]{--oobi-size:150px}.oobi[data-oobi=moved]{--oobi-size:150px}.oobi[data-oobi=status]{--oobi-size:150px}.oobi[data-oobi=status-incident]{--oobi-size:150px}.oobi[data-oobi=cta]{--oobi-size:140px}.oobi[data-oobi=guide]{--oobi-size:76px}
.oobi[data-oobi=home-hero]{--oobi-size:clamp(220px,22vw,300px)}
.oobi[data-oobi=meet-hero]{--oobi-size:clamp(280px,34vw,480px)}

/* Home hero: his own right column on wide screens; right of the headline on phones (80 px). */
@media(min-width:901px){.home .hero:has(>.oobi){display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:clamp(24px,4vw,72px)}.home .hero>.oobi{justify-self:center}}
@media(max-width:900px){
  .oobi[data-oobi=home-hero]{--oobi-size:80px}
  .home .hero:has(>.oobi){display:grid;grid-template-columns:minmax(0,1fr) 80px;column-gap:12px;row-gap:0}
  .home .hero:has(>.oobi)>.hero-heading{display:contents}
  .home .hero:has(>.oobi)>.hero-heading>*{grid-column:1/-1}
  .home .hero:has(>.oobi)>.hero-heading>.eyebrow{grid-row:1}
  .home .hero:has(>.oobi)>.hero-heading>h1{grid-column:1;grid-row:2}
  .home .hero>.oobi{grid-column:2;grid-row:2;align-self:center}
}

/* Page introductions (product pages, sign-up, help centre, status): a right column clear of the headline;
   under 1000 px a small figure floated beside the lead and its link, so the words wrap around his box. */
@media(min-width:1000px){.page-intro:has(>.oobi){position:relative;padding-right:250px}.page-intro>.oobi{position:absolute;right:0;top:50%;translate:0 -50%}}
@media(max-width:999px){
  .page-intro:has(>.oobi){display:flow-root}
  .page-intro>.oobi{float:right;margin:6px 0 10px 16px}
  .oobi[data-oobi=product-overview]{--oobi-size:96px}.oobi[data-oobi=product-statistics]{--oobi-size:78px}.oobi[data-oobi=product-data]{--oobi-size:96px}.oobi[data-oobi=product-documents]{--oobi-size:96px}.oobi[data-oobi=product-slides]{--oobi-size:96px}.oobi[data-oobi=product-pdf]{--oobi-size:96px}.oobi[data-oobi=product-ai]{--oobi-size:96px}.oobi[data-oobi=product-local]{--oobi-size:96px}.oobi[data-oobi=signup]{--oobi-size:96px}.oobi[data-oobi=help-centre]{--oobi-size:80px}.oobi[data-oobi=status]{--oobi-size:96px}.oobi[data-oobi=status-incident]{--oobi-size:80px}
}
@media(max-width:359px){.oobi[data-oobi=signup]{display:none}}

/* Closing call to action (140 px chart sign) and the business close (170 px thinking), in the first column. */
.closing-cta:has(>.oobi){grid-template-columns:140px minmax(0,1fr) minmax(0,340px)}
.closing-cta.biz-closing:has(>.oobi){grid-template-columns:170px minmax(0,.9fr) minmax(0,1.1fr)}
.closing-cta:not(:has(>.oobi)){grid-template-columns:minmax(0,1fr) minmax(0,340px)}
@media(max-width:900px){.oobi[data-oobi=cta]{--oobi-size:96px}.oobi[data-oobi=business-closing]{--oobi-size:90px}.closing-cta.closing-cta:has(>.oobi){grid-template-columns:96px minmax(0,1fr)}.closing-cta.biz-closing:has(>.oobi){grid-template-columns:90px minmax(0,1fr)}.closing-cta:not(:has(>.oobi)){grid-template-columns:minmax(0,1fr)}}

/* Pricing: under "Talk to us" in the questions column; hidden once the questions stack full width. */
.pricing-faq>div>.oobi{margin-top:30px}
@media(max-width:900px){.oobi[data-oobi=pricing]{display:none}}

/* Help article: beside "Related" at the end; its own row on phones. Help centre empty search: above the line. */
.marticle>.oobi[data-oobi=help-article]{float:right;margin:8px 0 16px 24px}
.empty-state>.oobi{margin:0 auto 18px}
.not-found>.oobi{margin:0 0 20px}

/* Library: in the hero's illustration panel. Meet Oobi: the hero and the two galleries. */
.book-hero-art>.oobi{margin:0 auto}
.oobi-story-art:has(>.oobi){max-width:480px;animation:none}
.oobi-story-art>.oobi{margin:auto}
.oobi-expressions>div>.oobi{margin:auto;cursor:default}
/* Gallery figures that play are buttons: same look, a clear focus ring for keyboard users. */
.oobi-play{display:block;margin:auto;padding:0;border:0;border-radius:10px;background:none;color:inherit;font:inherit;line-height:0;cursor:pointer}
.oobi-play>.oobi{margin:0}
.oobi-play:focus-visible{outline:3px solid #1966b2;outline-offset:4px}

/* How it works: one swimmer; each chapter keeps an empty box he can swim into. */
.chapter-character>.oobi-slot>.oobi{width:100%;height:100%}
@media(max-width:1150px){.chapter-character>.oobi-slot{width:120px;height:120px}}

@media(max-width:680px){
  .oobi[data-oobi=how-it-works]{--oobi-size:72px}.oobi[data-oobi=library]{--oobi-size:96px}.oobi[data-oobi=help-empty]{--oobi-size:96px}.oobi[data-oobi=help-article]{--oobi-size:96px}.oobi[data-oobi=business-closing]{--oobi-size:90px}.oobi[data-oobi=meet-curious]{--oobi-size:110px}.oobi[data-oobi=meet-thinking]{--oobi-size:110px}.oobi[data-oobi=meet-delighted]{--oobi-size:110px}.oobi[data-oobi=meet-writing]{--oobi-size:110px}.oobi[data-oobi=meet-chart]{--oobi-size:110px}.oobi[data-oobi=meet-pointing]{--oobi-size:110px}.oobi[data-oobi=meet-coffee]{--oobi-size:110px}.oobi[data-oobi=not-found]{--oobi-size:96px}.oobi[data-oobi=moved]{--oobi-size:96px}.oobi[data-oobi=cta]{--oobi-size:96px}
  .oobi[data-oobi=meet-hero]{--oobi-size:min(320px,calc(100vw - 40px))}
  .marticle>.oobi[data-oobi=help-article]{float:none;margin:28px 0 4px}
  .oobi-expressions:has(.oobi){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}
}
@media(max-width:900px){
  .workflow-chapter>.chapter-character:has(.oobi){display:block;grid-column:2;justify-self:end}
  .workflow-chapter>.chapter-character:not(:has(.oobi)){display:none}
  .chapter-character>.oobi-slot:has(>.oobi){width:72px;height:72px}
}

/* The pricing library band no longer holds a figure (the proposal puts him by the questions). */
.pricing-library>.container.container{grid-template-columns:minmax(0,1fr) auto}
.pricing-library>.container.container .button{grid-column:auto}
@media(max-width:1100px){.pricing-library>.container.container{grid-template-columns:minmax(0,1fr)}}
/* Grids that held a figure in earlier layouts close the gap when none is placed. */
.project-character:empty,.chapter-character:empty{display:none}
.project-step:has(>.project-character:empty){grid-template-columns:minmax(0,1fr) auto}
.project-step:has(>.project-character:empty)>a{grid-column:auto}
@media(max-width:900px){.project-step:has(>.project-character:empty){grid-template-columns:minmax(0,1fr)}}
/* Reduced motion: the still, even where oobi.css has not loaded. */
@media(prefers-reduced-motion:reduce){.oobi>.oobi-motion{display:none!important}}
@media print{.oobi,.oobi-slot{display:none!important}}
