/* Digital Marketing page: where the notes in the opening point, and one rule for the rail of client work.
   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. Each place lies inside the box digital_marketing_pictures.py prints for it (--measure): on the
   words themselves, and for the form button on the part the page in front leaves in view. */

/* Progressive Tree Care, behind and top right: the line that names the service above the heading of its tree removal page, the free
   estimate button in its header and the button that sends the estimate form. The last note stands in the open space on the right,
   clear of the page in front. */
#Form #bw_top [data-qs-node="bw_call_service"] { --bw-fx: .18; --bw-fy: .271; --bw-run: 14cqw; --bw-at: .5; --bw-n: 2; }
#Form #bw_top [data-qs-node="bw_call_cta"] { --bw-fx: .834; --bw-fy: .098; --bw-run: 12cqw; --bw-gap: 15cqw; --bw-at: .5; --bw-n: 3; }
#Form #bw_top [data-qs-node="bw_call_form"] { --bw-fx: .765; --bw-fy: .788; --bw-run: -7.5cqw; --bw-gap: 14cqw; --bw-at: .3; --bw-n: 7; }
/* Ambient Technologies, in front: the Tampa service area page. Two notes reach into the open space top left on long lines, to the
   line that names the city and county and to the heading; the third points at a project photo. */
#Form #bw_top [data-qs-node="bw_call_place"] { --bw-fx: .146; --bw-fy: .249; --bw-run: 10cqw; --bw-gap: 6cqw; --bw-at: .82; --bw-n: 0; }
#Form #bw_top [data-qs-node="bw_call_locality"] { --bw-fx: .27; --bw-fy: .371; --bw-run: 14cqw; --bw-gap: 20cqw; --bw-at: .82; --bw-n: 1; }
#Form #bw_top [data-qs-node="bw_call_projects"] { --bw-fx: .81; --bw-fy: .653; --bw-run: -8cqw; --bw-at: .22; --bw-n: 6; }
/* Made in Spain Gourmet, behind and bottom left: a line of its English home page and a product collection. */
#Form #bw_top [data-qs-node="bw_call_trilingual"] { --bw-fx: .16; --bw-fy: .614; --bw-run: -6cqw; --bw-at: .18; --bw-n: 4; }
#Form #bw_top [data-qs-node="bw_call_email"] { --bw-fx: .876; --bw-fy: .847; --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_projects"], [data-qs-node="bw_call_trilingual"], [data-qs-node="bw_call_email"], [data-qs-node="bw_call_form"]) {
  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_projects"], [data-qs-node="bw_call_trilingual"], [data-qs-node="bw_call_email"], [data-qs-node="bw_call_form"])::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 :is([data-qs-node="bw_call_place"], [data-qs-node="bw_call_service"]) { 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_form"] { display: none; }
}

/* The rail's buttons and progress line are hidden while every card is in view (three cards on a wide screen). The script marks them
   hidden; the template's own rule gives them a layout that keeps them showing. */
#bw_work .bw-rail-controls[hidden] { display: none; }
