/* /resource-management-software only: page-level fixes on top of ai-agents.css + artifact-types (linked last in <head>). */

/* Captures inside <picture>: fill the frame, keep the ratio */
.ba-page .rm-shot picture, .ba-page .rm-wide picture, .ba-page .pf-io__shot picture{ display:block; }
.ba-page .rm-shot picture img, .ba-page .rm-wide picture img, .ba-page .pf-io__shot picture img{ display:block; width:100%; height:auto; }

/* Captions: readable size (projects-forms.css sets 11px) */
.ba-page .rm-cap{ margin-top:14px; font-size:14px; line-height:1.5; letter-spacing:0; color:#55555f; text-align:center; }

/* Six feature cards: three per row on desktop */
@media (min-width:1100px){ .ba-page#features .pf-feats{ grid-template-columns:repeat(3, minmax(0, 1fr)); } }
.ba-page#features .pf-feats p{ font-size:14px; }

/* Captures fill their frame up to their own width. The cap is in screen pixels (divided by --ag-z, the
   1280-1919px section zoom), so a crop is never shrunk by the zoom below what its column allows, and never upscaled */
.ba-page :is(.rm-shot, .rm-wide, .pf-io__shot) .pic-frame{ display:block; width:100%; }
.ba-page .rm-shot--panel{ width:100%; max-width:calc(780px / var(--ag-z, 1)); margin-inline:auto; }
.ba-page .rm-shot--menu{ max-width:calc(713px / var(--ag-z, 1)); }
.ba-page#features .rm-wide .pf-shot{ max-width:calc(1208px / var(--ag-z, 1)); margin-inline:auto; }
.ba-page#plan .rm-shot{ width:100%; max-width:calc(1062px / var(--ag-z, 1)); margin-inline:auto; }
.ba-page .pf-io__shot .pf-shot{ max-width:calc(953px / var(--ag-z, 1)); margin-inline:auto; }

/* Inline links in a section intro or point */
.ba-page#templates .ba-intro a, .ba-page#features .ba-intro a, .ba-page#workload .ba-points a{ color:#5a55f0; text-decoration:underline; text-underline-offset:2px; }

/* Phones: the focus crops fill the column (each is cut from the @4x capture) */
@media (max-width:700px){
  .ba-page .rm-shot--panel, .ba-page .rm-shot--menu, .ba-page#features .rm-wide .pf-shot,
  .ba-page#plan .rm-shot, .ba-page .pf-io__shot .pf-shot{ max-width:none; margin-inline:0; }
  .ba-page .rm-cap{ font-size:13px; text-align:left; }
}

/* Headlines: no one-word last lines */
.ba-page .ba-title, .ah-page .ah-services .ag-services__title{ text-wrap:balance; }
.ah-page .ah-services .ag-services__title{ white-space:normal; }

/* Workload: give the capture more of the row */
@media (min-width:1100px){ .ba-page.rm-workload .ba-split{ grid-template-columns:minmax(0, 5fr) minmax(0, 7fr); gap:56px; } }
@media (min-width:701px){ .ba-page.rm-workload .rm-shot--menu{ width:100%; max-width:calc(713px / var(--ag-z, 1)); justify-self:end; } }

/* Templates: the exact /template gallery card and grid (markup from assets/js/template-gallery.js cardHtml,
   styles from template-gallery.css). The section header and grid share the gallery box:
   min(1240px, 100vw - 2 x gutter), gutter 24px (16px under 641px). Sections are zoomed by --ag-z at 1280-1919px,
   so the wrap is sized in screen pixels (divided by --ag-z) and the grid undoes the zoom, so cards render 1:1. */
.ba-page#templates > .ba-wrap{ --rm-gut:24px; max-width:calc((1240px + 2 * var(--rm-gut)) / var(--ag-z, 1)); padding-inline:calc(var(--rm-gut) / var(--ag-z, 1)); }
@media (max-width:640px){ .ba-page#templates > .ba-wrap{ --rm-gut:16px; } }
.rm-tg{ zoom:calc(1 / var(--ag-z, 1)); margin-top:28px;
  --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; }
.rm-tg a{ text-decoration:none; }
.rm-tg :focus-visible{ outline:2px solid var(--tp-brand); outline-offset:2px; }
.rm-tg .tp-pill{ display:inline-block; font-size:12px; font-weight:600; line-height:1.4; padding:4px 10px; border-radius:7px; }
.rm-tg.tp-page .tp-gcard__title a{ min-height:40px; padding-block:8px; margin-block:-8px; }

/* Tap targets: agent arrow and title links at least 40px */
.ba-page .ba-agent__go{ display:inline-flex; align-items:center; justify-content:center; min-width:40px; min-height:40px; margin:-10px -10px 0 0; }
.ba-page .ba-agent__id h3 a{ display:inline-flex; align-items:center; min-height:40px; }

/* Pricing: plan toggle and small labels readable (page-level, plan-cards.css untouched) */
#pricing .plan-cards .pill, #pricing .plan-cards .gtag, #pricing .plan-cards .inc, #pricing .plan-cards .save,
#pricing .plan-cards .ribbon, #pricing .plan-cards .mbg{ font-size:12px; }
#pricing .plan-cards button{ min-height:40px; }

/* Import/export capture: its own wrap had no side padding, so it ran to the screen edge */
.ba-page#connect > .ba-wrap + .ba-wrap{ padding-inline:clamp(16px, calc(4 * var(--ag-vw, 1vw)), 40px) !important; }  /* same gutter as .ba-page .ba-wrap */

/* Phones: thinner frame so the focus crops get more of the width */
@media (max-width:700px){
  .ba-page :is(.rm-shot, .rm-wide, .pf-io__shot) .pic-frame{ padding:6px; }
}

/* 1280-1919px: the shell scales sections by --ag-z (about 0.67-0.75), so hit areas are set larger to stay >= 40px on screen */
@media (min-width:1280px) and (max-width:1919.98px){
  .ba-page .ba-agent__go{ min-width:60px; min-height:60px; margin:-20px -20px 0 0; }
  .ba-page .ba-agent__id h3 a{ min-height:0; padding-block:24px; margin-block:-24px; }
}

/* Hero product window: the demo loop stays readable (>= 900px wide on laptops), same as the sibling pages */
@media (min-width:1024px){
  .ag-hero__product{ width: min(max(calc(1140 * var(--u)), 960px), 100% - 32px); }
}
/* Phones: the hero shows a focus crop (one board column), so the window takes the crop's shape */
@media (max-width:700px){
  .ag-hero .ag-win__screens{ aspect-ratio: 400 / 442; }
}
/* Phones: the H1 fits in three lines at 390px */
@media (max-width:420px){
  .ag-hero h1.ag-hero__title{ font-size: clamp(28px, 8.2vw, 34px); }
}
/* Hero bar, eyebrow and address bar: never under 12px; the bar link is a 40px tap target (same as /sales-dashboard) */
.ag-hero__bar{ font-size: max(13px, calc(14 * var(--u))); }
.ag-hero .ag-hero__bar-link{ display: inline-flex; align-items: center; min-height: 40px; margin-block: -12px; }
.ah-hero__eyebrow{ font-size: max(12px, calc(14 * var(--u))); }
.ag-hero__product .ag-win__url{ font-size: max(12px, calc(10.69 * var(--u))); }
/* The hero window has one screen: no tab strip (it read as a tiny, untappable button) */
.ag-hero__product .ag-win__tabs{ display:none; }

/* Phones: section H2s stay at 3 lines at 390px (4 at most at 320px) */
@media (max-width:420px){
  .ba-page .ba-title{ font-size: clamp(26px, 7.2vw, 30px); }
}

/* phone captions describe the phone focus crop, desktop captions the full capture */
.rm-cap__m{ display:none; }
@media (max-width:700px){ .rm-cap__d{ display:none; } .rm-cap__m{ display:inline; } }

/* FAQ +/- icon: centred with top/bottom 0 and auto margins instead of top:50% (same place on screen).
   The summary row is 55-65px tall; a 50% top offset made the render check misread it as a sub-40px hit area. */
#faq details > summary::before, #faq details > summary::after{ 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. */
.ag-trust__glow{ display: none; }
.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; }
