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

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

/* Readability: full-window captures and dialogs get their own row, wide, instead of squeezed beside text. */
.ca-page .ba-prompt__grid.ca-stack{ grid-template-columns:minmax(0, 1fr) !important; gap:32px; }
.ca-page .ba-prompt__grid.ca-stack .ba-prompt__run{ max-width:760px; width:100%; justify-self:start; }
.ca-page .ba-prompt__grid.ca-stack .dw-fig{ width:100%; max-width:max(1180px, calc(1100px / var(--ag-z, 1))); }
.ca-page .dw-split.ca-split,
section.ba-page#import-export .dw-split.ca-split{ grid-template-columns:minmax(0, 1fr) !important; row-gap:40px; }
.ca-page .dw-split.ca-split > div{ width:100%; max-width:1120px; order:0; }
.ca-page .dw-split.ca-split .dw-fig{ order:2; width:100%; max-width:min(100%, calc(1040px / var(--ag-z, 1))); justify-self:center; }
.ca-page .dw-split.ca-split .dw-list{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:20px 32px; }
.ca-page .dw-split.ca-split .ba-head, .ca-page .dw-split.ca-split .ba-title{ max-width:1120px; }
.ca-page .dw-fig--wide{ width:100%; max-width:max(1180px, calc(1100px / var(--ag-z, 1))); margin-inline:auto; }
.ca-page .dw-fig img{ max-height:none; }
/* the audience panel and the import dialog are panels, not windows: narrower so their text stays at about real size */
.ca-page #review .dw-split.ca-split .dw-fig{ max-width:min(100%, calc(880px / var(--ag-z, 1))); }
.ca-page #import-export .dw-split.ca-split .dw-fig{ max-width:min(100%, calc(640px / var(--ag-z, 1))); }

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

/* 12px text floor in the hero bar, eyebrow, window address and tab (the hero scales down 1280-1919px). */
.ca-page .ag-hero__bar-text, .ca-page .ag-hero__bar-link, .ca-page .ah-hero__eyebrow{ font-size:max(12px, calc(14 * var(--u, 1px))); }
.ca-page .ag-win__url, .ca-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). */
.ca-page .ag-hero__bar-link, .ca-page .ag-win__tabs [data-screen]{ position:relative; }
.ca-page .ag-hero__bar-link::after, .ca-page .ag-win__tabs [data-screen]::after{ content:""; position:absolute; top:-16px; bottom:-16px; left:-4px; right:-4px; }
.ca-page .ag-win__tabs{ overflow:visible; }   /* one tab only: nothing to scroll */

/* Agents row: readable sample cards (12px floor) and full-size tap targets. */
.ca-page .ba-doc span{ font-size:12px; }
.ca-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; }

/* Template cards: the /template gallery grid, card for card.
   Tokens from template-pages.css (.tp-page), which this page does not load. */
.ca-tg.tp-page{
  --tp-ink:#0F0F14; --tp-ink-2:#4B5060; --tp-ink-3:#5B5F6B; --tp-line:#E4E5EA; --tp-line-2:#D5D7DE;
  --tp-soft:#F7F7F9; --tp-frame:#F1F2F5; --tp-brand:#4F46E5; --tp-brand-dk:#3730A3; --tp-gut:24px;
  margin-top:48px; font-family:Inter, system-ui, sans-serif;
}
@media (max-width:640px){ .ca-tg.tp-page{ --tp-gut:16px; } }
/* Sections are zoomed by --ag-z between 1280 and 1919px: undo it here so the grid has the gallery's real size. */
.ca-tg{ zoom:calc(1 / var(--ag-z, 1)); }
.ca-tg .tp-ggrid{ width:100%; max-width:1240px; margin-inline:auto; box-sizing:border-box; }
/* Below 1280px the box is min(1240px, 100vw - 2 x gutter), like the gallery. */
@media (max-width:1279.98px){
  .ca-tg{ margin-inline:calc(50% - 50vw); padding-inline:var(--tp-gut); }
}
/* Rules the cards take from template-pages.css (.tp-page a, .tp-pill). */
.ca-tg.tp-page{ color:var(--tp-ink); }
.ca-tg a{ color:var(--tp-brand); text-decoration:none; }
.ca-tg a:hover{ color:var(--tp-brand-dk); }
.ca-tg.tp-page :focus-visible{ outline:2px solid var(--tp-brand); outline-offset:2px; }
.ca-tg .tp-pill{ display:inline-block; font-size:12px; font-weight:600; line-height:1.4; padding:4px 10px; border-radius:7px; }
.ca-tg .tp-gcard__title a{ min-height:40px; padding-block:8px; margin-block:-8px; text-decoration:none; }
.ca-tg .tp-gcard__btn{ text-decoration:none; }
/* Template links under the grid: full-size tap targets. */
.ca-page .dw-tpl__more a{ display:inline-flex; align-items:center; min-height:40px; }
@media (min-width:1280px) and (max-width:1919.98px){
  .ca-page .dw-tpl__more a{ min-height:calc(40px / var(--ag-z, 1)); }
  /* The section wrap is narrower on screen here: centre the grid on the page at the gallery's width. */
  .ca-tg .tp-ggrid{ width:min(1240px, 100vw - 48px); max-width:none; margin-left:50%; transform:translateX(-50%); }
}

/* Pricing: 40px billing toggle and a 12px floor on the small labels. */
.ca-page .plan-cards .toggle button{ min-height:40px; }
.ca-page .plan-cards .gtag, .ca-page .plan-cards .mbg, .ca-page .plan-cards .inc, .ca-page .plan-cards .pill,
.ca-page .plan-cards .ribbon, .ca-page .plan-cards .save{ font-size:max(12px, 1em) !important; }

/* Trust card: the two glows are painted as backgrounds (same place and size), so nothing hangs past the card. */
.ca-page .ag-trust__glow{ display:none; }
.ca-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; }

@media (max-width:1279.98px){
  .ca-page .ca-pic:not(.pic-frame--bd){ padding:16px !important; }
}
@media (max-width:900px){
  .ca-page .dw-split.ca-split .dw-list{ grid-template-columns:minmax(0, 1fr); }
}
@media (max-width:700px){
  .ca-page .ca-pic{ padding:12px !important; }
  .ca-page .ca-pic--dialog picture{ max-width:300px; margin-inline:auto; }
}

/* Phones: the hero shows a focus crop of the published wiki's Welcome page (610x400), not the whole window. */
@media (max-width:700px){
  .ca-page .ah-hero .ag-win__screens{ aspect-ratio:610 / 400; }
  .ca-page .ag-hero h1.ag-hero__title{ font-size:clamp(26px, 7.8vw, 32px); }
  .ca-page .ca-tg.tp-page{ margin-top:32px; }
}
/* Phones: section headings stay short; the grey second sentence drops out. */
@media (max-width:480px){
  .ca-page .ba-page .ba-title > span{ display:none; }
}

/* FAQ +/- icon: centred with top/bottom 0 and auto margins instead of top:50% (same place on screen).
   The summary row itself is 64-90px tall; a 50% top offset made the render check misread it as a 1px hit area. */
.ca-page #faq details > summary::before, .ca-page #faq details > summary::after{ top:0; bottom:0; margin-block:auto; }
