/* Mobile App Development page: what is this page's own in the opening and under "Updates and support".
   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 were read off the three pictures, which the page showed before it was rebuilt. */

/* The pictures carry no browser bar, so the notes above them measure from the top of the picture. */
#Form #bw_top [data-qs-role="bw-call"] { --bw-bar: 0px; }

/* The Hills Learning capture has the site's cookie notice along its foot. Its window ends where the site's opening picture ends,
   just above the notice (1200 by 672 of the capture's 750), and its notes measure against that height. */
#Form #bw_top [data-qs-node="bw_stage_back_shot"] img { aspect-ratio: 25 / 14; }
#Form #bw_top [data-qs-node="bw_stage_back"] [data-qs-role="bw-call"] { --bw-pic: 56cqw; }

/* Hills Learning, behind and top right: Classes in its menu, where the classes are sold, and the login that leads to each role's view.
   Each dot stands beside its word, so the word stays readable. */
#Form #bw_top [data-qs-node="bw_call_website"] { --bw-fx: .513; --bw-fy: .134; --bw-run: 20cqw; --bw-at: .5; --bw-n: 2; }
#Form #bw_top [data-qs-node="bw_call_roles"] { --bw-fx: .86; --bw-fy: .027; --bw-run: 12cqw; --bw-gap: 15cqw; --bw-at: .5; --bw-n: 3; }
/* TradeShowPal, in front. One note reaches into the open space top left, on a long line that runs between two words of the menu to the
   visitor badge. The other points at the voice memo on the phone. */
#Form #bw_top [data-qs-node="bw_call_badges"] { --bw-fx: .655; --bw-fy: .375; --bw-run: 29.5cqw; --bw-gap: 6cqw; --bw-at: .92; --bw-n: 0; }
#Form #bw_top [data-qs-node="bw_call_memos"] { --bw-fx: .70; --bw-fy: .772; --bw-run: -8cqw; --bw-at: .22; --bw-n: 5; }
/* Applied Materials & Engineering, behind and bottom left: the firm's name, and the building site in its opening picture. */
#Form #bw_top [data-qs-node="bw_call_forms"] { --bw-fx: .068; --bw-fy: .80; --bw-run: -4cqw; --bw-at: .18; --bw-n: 1; }
#Form #bw_top [data-qs-node="bw_call_tablets"] { --bw-fx: .60; --bw-fy: .60; --bw-run: -26cqw; --bw-at: .18; --bw-n: 4; }
/* These stand below their picture, and their lines run up. */
#Form #bw_top :is([data-qs-node="bw_call_memos"], [data-qs-node="bw_call_forms"], [data-qs-node="bw_call_tablets"]) {
  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_memos"], [data-qs-node="bw_call_forms"], [data-qs-node="bw_call_tablets"])::after { top: 0; }
/* Where the windows are small, fewer notes are shown so that none touch. */
@container bw-opening (max-width: 560px) {
  #Form #bw_top [data-qs-node="bw_call_website"] { display: none; }
}
@container bw-opening (max-width: 450px) {
  #Form #bw_top [data-qs-role="bw-call"] { font-size: 11px; padding: 6px 8px; }
  /* On a phone the note in front stands clear of the window behind it. */
  #Form #bw_top [data-qs-node="bw_call_badges"] { --bw-run: 31cqw; }
}

/* The picture under "Updates and support" is a form, shown whole: the frame takes the shape of the capture. */
#Form #bw_after [data-qs-role="bw-frame"] img { aspect-ratio: 1600 / 1012; }
