/* /google-docs-alternative only: page-level overrides on top of the shared artifact-page styles
 * (ai-agents.css, ag-mobile.css, plan-cards.css, artifacts.css and base.css stay untouched). */

/* ----- hero ----- */
.gda-page .gda-hero__fine{ margin:16px 0 0; font-size:14px; line-height:1.5; color:#aeb7d3; }
.gda-page .gda-hero__fine span{ color:#fff; }

/* the product window stays readable (about 920px or wider) where the hero scales down */
@media (min-width:1280px){ .gda-page .ag-hero__product{ width:min(max(calc(1140 * var(--u)), 920px), 100% - 32px); } }

/* 12px floor for the hero bar, eyebrow and window chrome */
@media (min-width:1280px) and (max-width:1919.98px){
  .gda-page .ag-hero__bar-text, .gda-page .ag-hero__bar-link, .gda-page .ah-hero__eyebrow{ font-size:12px; }
}
.gda-page .ag-win__url{ font-size:12px; }
.gda-page .ag-hero .ag-win__tabs button{ font-size:max(12px, calc(10.18 * var(--u))); }

/* hero tap targets: a 40px hit area without changing the bar or the window chrome */
.gda-page .ag-hero__bar-link, .gda-page .ag-hero .ag-win__tabs button{ position:relative; }
.gda-page .ag-hero__bar-link::after, .gda-page .ag-hero .ag-win__tabs button::after{ content:""; position:absolute; left:0; right:0; top:-14px; bottom:-14px; }

/* phones: the hero window shows the doc's checklist as a whole block (readable text, no cut words) */
@media (max-width:700px){
  .gda-page .ag-win__screens{ aspect-ratio:368 / 234; }
  /* a short fade only at the very bottom, so every checklist row stays readable */
  .gda-page .ag-hero__product{ -webkit-mask-image:linear-gradient(180deg, #000 calc(100% - 20px), rgba(0,0,0,.4) 100%); mask-image:linear-gradient(180deg, #000 calc(100% - 20px), rgba(0,0,0,.4) 100%); }
}
/* phones: one step smaller H1 so the keyword headline takes 3 lines and the CTA stays near the fold */
@media (max-width:480px){ .gda-page .ag-hero__title{ font-size:32px; line-height:1.12; } }
@media (max-width:360px){ .gda-page .ag-hero__title{ font-size:28px; } }

/* ----- product captures inside <picture> ----- */
.gda-page .pic-frame > picture{ display:block; flex:1 1 auto; width:100%; }
.gda-page .pic-frame > picture > img{ display:block; width:100%; height:auto; }

/* full-window captures get the whole row instead of sitting beside text */
.gda-page .ba-prompt__grid.gda-stack{ grid-template-columns:minmax(0, 1fr) !important; gap:32px; }
.gda-page .ba-prompt__grid.gda-stack .ba-prompt__run{ width:100%; max-width:760px; justify-self:center; }
.gda-page .ba-prompt__grid.gda-stack .dw-fig{ width:100%; max-width:max(1120px, calc(1080px / var(--ag-z, 1))); justify-self:center; }
.gda-page .ba-prompt__grid.gda-stack .pic-frame img{ max-height:none; }

/* split sections run full width: text on top, the capture (if any) below it */
.gda-page .dw-split.gda-split,
section.ba-page#import-export .dw-split.gda-split{ grid-template-columns:minmax(0, 1fr) !important; row-gap:40px; }
.gda-page .dw-split.gda-split > div:first-child{ order:0; }
.gda-page .dw-split.gda-split > div{ width:100%; max-width:1120px; }
.gda-page .dw-split.gda-split .ba-head, .gda-page .dw-split.gda-split .ba-title{ max-width:1120px; }
.gda-page .dw-split.gda-split .dw-list{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:20px 32px; }
.gda-page .dw-split.gda-split .dw-fig{ order:2; width:100%; max-width:min(100%, calc(960px / var(--ag-z, 1))); justify-self:center; }
@media (max-width:900px){
  .gda-page .dw-split.gda-split .dw-list{ grid-template-columns:minmax(0, 1fr); }
}

/* the version history capture is a full window: give it the content width */
.gda-page #review .dw-split.gda-split .dw-fig{ max-width:min(100%, calc(1120px / var(--ag-z, 1))); }

/* phone focus crops: a slimmer frame so the crop gets the width; tall crops stay a natural size */
@media (max-width:700px){
  .gda-page .pic-frame{ padding:8px !important; }
  .gda-page #review .dw-fig picture{ max-width:300px; margin-inline:auto; }
}

/* ----- agent cards: readable labels and a full-size tap target ----- */
.gda-page .ba-doc span, .gda-page .ba-doc b{ font-size:12px; }
.gda-page .ba-agent__go{ display:inline-flex; align-items:center; justify-content:center; min-width:calc(40px / var(--ag-z, 1)); min-height:calc(40px / var(--ag-z, 1)); margin:-8px -10px 0 0; }

/* ----- 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. ----- */
.gda-page .gda-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:#fff; color:var(--tp-ink); padding:0 var(--tp-gut) 96px; }
@media (max-width:640px){ .gda-page .gda-tpl{ --tp-gut:16px; padding-bottom:64px; } }
.gda-page .gda-tpl__wrap{ width:min(1240px, 100%); margin:0 auto; }
.gda-page .gda-tpl a{ text-decoration:none; }
.gda-page .gda-tpl .tp-gcard__title a{ display:inline-flex; align-items:center; min-height:40px; padding-block:8px; margin-block:-8px; box-sizing:border-box; }
.gda-page .gda-tpl__more{ margin:28px 0 0; text-align:center; font-size:16px; }
.gda-page .gda-tpl__more a{ display:inline-flex; align-items:center; min-height:40px; color:var(--tp-brand); font-weight:600; }
.gda-page .gda-tpl__more a:hover{ color:var(--tp-brand-dk); }
.gda-page .gda-tpl .tp-pill{ display:inline-block; font-size:12px; font-weight:600; line-height:1.4; padding:4px 10px; border-radius:7px; }
.gda-page .gda-tpl :focus-visible{ outline:2px solid var(--tp-brand); outline-offset:2px; }
/* the heading section above the grid: short bottom padding, so the grid follows the intro */
.gda-page .gda-tpl-head{ padding-bottom:40px !important; }
.gda-page .ba-intro a{ color:#4F46E5; text-decoration:underline; text-underline-offset:2px; }

/* ----- compare: the price row wraps inside the cell instead of pushing it wider than a phone ----- */
.gda-page .ag-compare__cell dd{ flex:0 1 auto; min-width:0; }
@media (max-width:900px){ .gda-page .ag-compare__cell dd{ text-align:right; justify-content:flex-end; } }
.gda-page .ag-compare__note{ margin-top:32px; }
@media (max-width:767.98px){ .gda-page .ag-compare__note{ margin-top:20px; } }

/* ----- pricing (plan-cards.css): 12px labels, 40px toggle ----- */
.gda-page .ag-pricing .gtag, .gda-page .ag-pricing .save, .gda-page .ag-pricing .pill, .gda-page .ag-pricing .inc,
.gda-page .ag-pricing .ribbon, .gda-page .ag-pricing .mbg{ font-size:12px; }
.gda-page .ag-pricing .gtag span, .gda-page .ag-pricing .pill span, .gda-page .ag-pricing .inc span{ font-size:inherit; }
.gda-page .ag-pricing .toggle button{ min-height:40px; }

/* ----- FAQ rows: at least 44px to tap ----- */
.gda-page .dw-faq summary{ min-height:44px; }
/* +/- icon: same place (centred on the right), centred with top:0 / bottom:0 / margin:auto instead of top:50%,
   so tap checks read the summary's own box rather than subtracting the icon offset. */
.gda-page .ba-page details > summary::after, .gda-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. */
.gda-page .ag-trust__glow{ display:none; }
.gda-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; }

/* tablets and small laptops: a slimmer frame so full-window captures stay about 900px wide */
@media (min-width:701px) and (max-width:1279.98px){
  .gda-page .pic-frame{ padding:12px !important; }
}

/* final CTA: the headline wraps instead of running past the card at 1280-1600 */
.gda-page .ah-services .ag-services__title{ white-space:normal; }
