/* /gitbook-alternative only: page-level overrides on top of the shared artifact-page styles. */

/* Product captures inside <picture> (phone focus crop + desktop full window). */
.ba-page .gba-pic{ display:block; }
.ba-page .gba-pic picture{ display:block; width:100%; }
.ba-page .gba-pic picture > img{ display:block; width:100%; height:auto; margin:0; border:0; box-shadow:none; background:none; border-radius:12px; }

/* Full-window captures stay readable: stack the row so the capture runs the full content width. */
.ba-page .ba-prompt__grid.gba-stack{ grid-template-columns:minmax(0, 1fr) !important; gap:32px; }
.ba-page .ba-prompt__grid.gba-stack .ba-prompt__run{ max-width:760px; width:100%; justify-self:start; }
.ba-page .dw-split.gba-split,
section.ba-page#import-export .dw-split.gba-split,
section.ba-page#review .dw-split.gba-split{ grid-template-columns:minmax(0, 1fr) !important; row-gap:40px; }
.ba-page .dw-split.gba-split > div{ width:100%; max-width:1120px; }
.ba-page .dw-split.gba-split .dw-list{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:20px 32px; }
.ba-page .dw-split.gba-split .dw-fig{ order:2; }
.ba-page .dw-split.gba-split .ba-head,
.ba-page .dw-split.gba-split .ba-title{ max-width:1120px; }

@media (max-width:1279.98px){
  .ba-page .gba-pic{ padding:16px !important; }
}
@media (max-width:900px){
  .ba-page .dw-split.gba-split .dw-list{ grid-template-columns:minmax(0, 1fr); }
}
@media (max-width:700px){
  .ba-page .gba-pic{ padding:12px !important; }
}

/* Agent cards: a 44px tap target for the arrow link and 12px text in the sample doc
   (sections between 1280 and 1919px are zoomed by --ag-z, so sizes are divided by it there). */
.ba-page .ba-agent__go{ display:inline-flex; align-items:center; justify-content:center; min-width:calc(44px / var(--ag-z, 1)); min-height:calc(44px / var(--ag-z, 1)); margin:-10px -12px 0 0; }
.ba-page .ba-doc span, .ba-page .ba-doc b{ font-size:calc(12px / var(--ag-z, 1)) !important; }

/* compare: keep the source note off the last card on phones */
@media (max-width:700px){
  .ag-compare .ag-compare__note{ margin-top:20px; }
}

/* Hero window: at least about 920px wide from 1280px up (the hero scales down there), like the other wave pages. */
@media (min-width:1280px){ .gb-page .ag-hero__product{ width:min(max(calc(1140 * var(--u)), 920px), 100% - 32px); } }

/* Phones: one step smaller H1 so the keyword headline sits in 3 lines and the CTA stays near the fold. */
@media (max-width:480px){ .gb-page .ag-hero__title{ font-size:32px; line-height:1.12; } }
@media (max-width:360px){ .gb-page .ag-hero__title{ font-size:28px; } }

/* Plans: 40px billing toggle and a 12px floor for the small labels. */
.gb-page .plan-cards .toggle button{ min-height:40px; }
.gb-page .plan-cards .toggle .save,
.gb-page .plan-cards .gtag,
.gb-page .plan-cards .pill,
.gb-page .plan-cards .inc,
.gb-page .plan-cards .mbg,
.gb-page .plan-cards .ribbon{ font-size:12px; }

/* Templates: the exact /template gallery card grid (template-gallery.css), outside the 1280-1919 section zoom.
   Box min(1240px, 100vw - 2 x gutter), gutter 24px (16px at 640px and below). Tokens copied from template-pages.css. */
.gb-page .gb-tpl{ --tp-ink:#0F0F14; --tp-ink-2:#4B5060; --tp-ink-3:#5B5F6B; --tp-line:#E4E5EA; --tp-line-2:#D5D7DE; --tp-frame:#F1F2F5; --tp-brand:#4F46E5; --tp-brand-dk:#3730A3; --tp-gut:24px;
  background:#fafafb; color:var(--tp-ink); padding:0 var(--tp-gut) 96px; }
@media (max-width:640px){ .gb-page .gb-tpl{ --tp-gut:16px; padding-bottom:64px; } }
.gb-page .gb-tpl__wrap{ width:min(1240px, 100%); margin:0 auto; }
.gb-page .gb-tpl a{ text-decoration:none; }
.gb-page .gb-tpl .tp-gcard__title a{ display:inline-flex; align-items:center; min-height:40px; padding-block:8px; margin-block:-8px; box-sizing:border-box; }
.gb-page .gb-tpl .tp-pill{ display:inline-block; font-size:12px; font-weight:600; line-height:1.4; padding:4px 10px; border-radius:7px; }
.gb-page .gb-tpl :focus-visible{ outline:2px solid var(--tp-brand); outline-offset:2px; }
.gb-page .gb-tpl__more{ margin:28px 0 0; display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:4px 20px; font-size:16px; color:var(--tp-ink-2); }
.gb-page .gb-tpl__more a{ display:inline-flex; align-items:center; min-height:40px; color:var(--tp-brand); font-weight:600; }
.gb-page .gb-tpl__more a:hover{ color:var(--tp-brand-dk); }
.gb-page .gb-tpl-head{ padding-bottom:40px !important; }
.gb-page .ba-intro a{ color:#4F46E5; text-decoration:underline; text-underline-offset:2px; }

/* Closing banner: the shared title is nowrap; let it wrap (balanced) so it never runs past the banner. */
.gb-page .ag-services__title{ white-space:normal; text-wrap:balance; }

/* 12px text floor in the hero bar, eyebrow, window address and tab (the hero scales down 1280-1919px). */
.gb-page .ag-hero__bar-text, .gb-page .ag-hero__bar-link, .gb-page .ah-hero__eyebrow{ font-size:max(12px, calc(14 * var(--u, 1px))); }
.gb-page .ag-win__url, .gb-page .ag-win__tabs [data-screen]{ font-size:max(12px, calc(12px / var(--ag-z, 1))) !important; }

/* Invisible 40px hit areas: hero bar link and window tab (look unchanged). */
.gb-page .ag-hero__bar-link, .gb-page .ag-win__tabs [data-screen]{ position:relative; }
.gb-page .ag-hero__bar-link::after, .gb-page .ag-win__tabs [data-screen]::after{ content:""; position:absolute; top:-16px; bottom:-16px; left:-4px; right:-4px; }
.gb-page .ag-win__tabs{ overflow:visible; }   /* one tab only: nothing to scroll */

/* FAQ rows: at least 44px to tap; the +/- icon is centred on the summary's own box. */
.gb-page .dw-faq summary{ min-height:44px; }
.gb-page .ba-page details > summary::after, .gb-page .ba-page details > summary::before{ top:0; bottom:0; margin-block:auto; }

/* Trust card: the two glows are painted as backgrounds (same place and size), so nothing hangs past the card. */
.gb-page .ag-trust__glow{ display:none; }
.gb-page .ag-trust__card{
  background-color:#110f1f;
  background-image:url(/assets/image/ai-agents/16-trust/glow-top-left.svg), url(/assets/image/ai-agents/16-trust/glow-bottom-right.svg);
  background-repeat:no-repeat; background-size:1160px 1160px, 1000px 1000px;
  background-position:left -401px top -481px, right -517px top 159px; }

/* Phones: the hero shows a focus crop of the published wiki's Welcome page (655x390), not the whole window. */
@media (max-width:700px){
  .gb-page .ah-hero .ag-win__screens{ aspect-ratio:655 / 390; }
}
