/* AI page: where the notes in the opening point.
   Everything else comes from the service page template (business-websites-page.css), which also explains the terms:
   fx, fy: the place a note is about, as a share of its picture's width and height. run: how far to the side of that place the note
   stands (positive: to its left). gap: how far outside the picture. at: how far along the note's edge the line leaves it.
   n: the order the notes arrive in. The places are the ones ai_service_pictures.py prints when it captures the three pages. */

/* Agent Web Map, behind and top right: the API and MCP page in its menu, the search box (toward its right end, which runs from .18
   to .93 of the width) and the llms.txt link of the sixth listing. The last note stands in the open space on the right, clear of
   the window in front. */
#Form #bw_top [data-qs-node="bw_call_api"] { --bw-fx: .293; --bw-fy: .031; --bw-run: 15cqw; --bw-at: .5; --bw-n: 2; }
#Form #bw_top [data-qs-node="bw_call_task"] { --bw-fx: .80; --bw-fy: .159; --bw-run: 12cqw; --bw-gap: 15cqw; --bw-at: .5; --bw-n: 3; }
#Form #bw_top [data-qs-node="bw_call_files"] { --bw-fx: .775; --bw-fy: .569; --bw-run: -6cqw; --bw-gap: 14cqw; --bw-at: .3; --bw-n: 7; }
/* BeautyNavigator, in front. Two notes reach into the open space top left on long lines: one to the card that offers AI tools for
   online visibility, one to the auctions in the menu. The third points at the Check Compliance card. */
#Form #bw_top [data-qs-node="bw_call_visible"] { --bw-fx: .225; --bw-fy: .417; --bw-run: 10cqw; --bw-gap: 6cqw; --bw-at: .82; --bw-n: 0; }
#Form #bw_top [data-qs-node="bw_call_market"] { --bw-fx: .416; --bw-fy: .111; --bw-run: 14cqw; --bw-gap: 20cqw; --bw-at: .82; --bw-n: 1; }
#Form #bw_top [data-qs-node="bw_call_comply"] { --bw-fx: .754; --bw-fy: .53; --bw-run: -8cqw; --bw-at: .22; --bw-n: 6; }
/* IPACK, behind and bottom left: two bottles in the frame of its opening video. Their places are read off the picture. */
#Form #bw_top [data-qs-node="bw_call_video"] { --bw-fx: .25; --bw-fy: .66; --bw-run: -6cqw; --bw-at: .18; --bw-n: 4; }
#Form #bw_top [data-qs-node="bw_call_visuals"] { --bw-fx: .70; --bw-fy: .70; --bw-run: -22cqw; --bw-at: .18; --bw-n: 5; }
/* These stand below their picture, and their lines run up. */
#Form #bw_top :is([data-qs-node="bw_call_comply"], [data-qs-node="bw_call_video"], [data-qs-node="bw_call_visuals"], [data-qs-node="bw_call_files"]) {
  top: calc(100% + var(--bw-gap)); bottom: auto;
  --bw-rise: calc(-1 * (var(--bw-gap) + (1 - var(--bw-fy)) * var(--bw-pic)));
}
#Form #bw_top :is([data-qs-node="bw_call_comply"], [data-qs-node="bw_call_video"], [data-qs-node="bw_call_visuals"], [data-qs-node="bw_call_files"])::after { top: 0; }
/* Where the windows are small, fewer notes are shown so that none touch. The ones about AI stay. */
@container bw-opening (max-width: 560px) {
  #Form #bw_top :is([data-qs-node="bw_call_market"], [data-qs-node="bw_call_task"]) { display: none; }
}
@container bw-opening (max-width: 450px) {
  #Form #bw_top [data-qs-role="bw-call"] { font-size: 11px; padding: 6px 8px; }
  #Form #bw_top [data-qs-node="bw_call_files"] { display: none; }
  /* On a phone the long labels are kept inside the screen and apart from each other. */
  #Form #bw_top [data-qs-node="bw_call_visible"] { --bw-run: 30cqw; --bw-at: .3; }
  #Form #bw_top [data-qs-node="bw_call_api"] { --bw-run: -8cqw; --bw-at: .3; }
  #Form #bw_top [data-qs-node="bw_call_video"] { --bw-run: -2cqw; --bw-at: .3; }
}

/* The rail holds three projects. Where all three fit side by side there is nothing to move, so its buttons and line are not shown.
   The page script marks them hidden; the shared stylesheet's display rule would otherwise keep them in view. */
#bw_work .bw-rail-controls[hidden] { display: none; }
