/* ============================================================
   Professional — the builder's home template.

   This is the one template a card is composed on block by block, so its job
   here is to stay out of the way: blocks run down a single column in the order
   they were dropped, bands reach the card's edges, and blocks that share a line
   line up. Everything below is scoped to .pf-pro, so no other template is
   touched; the renderer is shared with Doctor and Reporter, which get the same
   block rhythm and nothing else.
   ============================================================ */

/* ---- the rhythm blocks fall into ----
   One spacing rule for every block, so what the owner sees while building is
   what a visitor gets. Pairs that belong together are pulled closer. */
.pf-pro .pf-sec { margin-top: 34px; }
.pf-pro .pf-sec:first-of-type { margin-top: 28px; }

/* a heading introduces whatever follows it, so it sits close to it */
.pf-pro .pf-sec--heading + .pf-sec,
.pf-pro .pf-row:has(.pf-sec--heading) + .pf-sec { margin-top: 12px; }

/* space and rules carry their own measure — they need none around them */
.pf-pro .pf-sec--spacer,
.pf-pro .pf-sec--divider { margin-top: 0; }
.pf-pro .pf-sec--spacer + .pf-sec,
.pf-pro .pf-sec--divider + .pf-sec { margin-top: 20px; }

/* a button is an action, not a paragraph: tighter above, clear below */
.pf-pro .pf-sec--button { margin-top: 20px; }

/* ---- bands reach the edge of the card ----
   The card column is padded 20px; a row background bleeds past it so a tinted
   or photographed block reads as a full band rather than an inset box. */
.pf-pro .pf-row { margin-inline: -20px; padding-inline: 20px; }
.pf-pro .pf-row--round { margin-inline: 0; padding-inline: 16px; }

/* ---- blocks that share a line ----
   Half and third widths float beside each other. Give the pair a shared top
   edge and keep a narrow block's contents from crowding its neighbour. */
@media (min-width: 620px) {
    .pf-pro .pf-sec--w-half,
    .pf-pro .pf-sec--w-third { margin-top: 34px; }
    .pf-pro .pf-sec--w-half + .pf-sec--w-half,
    .pf-pro .pf-sec--w-third + .pf-sec--w-third { margin-top: 34px; }
    /* a narrowed picture or gallery should not stretch taller than its row */
    .pf-pro .pf-sec--w-half .pf-gallery,
    .pf-pro .pf-sec--w-third .pf-gallery { grid-template-columns: 1fr; }
    .pf-pro .pf-sec--w-third .pf-cbtn { width: 100%; }
}

/* ---- the header stays a header ----
   Whatever the owner builds below, the identity block keeps its own weight. */
.pf-pro .pf-pro-head + .pf-sec { margin-top: 30px; }
