/* ════════════════════════════════════════════════════════════
   PinInspect — Google Ad Manager MEMBER-AREA slot styling
   (pi-gam-app8.css, successor of pi-gam-app7.css, 2026-11-14:
   app7 rules verbatim + one appended block for the two new
   units — PI_App_Generator's reservation group and in-panel
   margin, and PI_App_Top's no-reservation collapse rules.)
   (pi-gam-app7.css, successor of pi-gam-app6.css (2026-11-14: PI_App_Keywords holder now mounts below the keyword search card; the keywords margin is tightened for that position at the end of this file). Original app6 note: pi-gam-app6.css, successor of pi-gam-app5.css, FINAL ROUND
   2026-11-14: content UNCHANGED — the round's only GAM change is
   the rewarded module in pi-gam-app6.js, and a rewarded slot is
   out-of-page, so it needs no holder styling. The successor name
   exists so the served pair (app6.js + app6.css) versions
   together under the host's path-pinned asset cache.)
   app3's rules were byte-identical to pi-gam-app2.css (its change
   was JS-side: PI_App_Dashboard re-anchors below the dashboard's
   new tool-cards area). app4 keeps every app3 rule and adds ONE
   block at the end: the in-launcher margin for the Dashboard
   slot's mobile position (owner, 2026-11-14 — on phones the
   holder moves inside .pd-launch, above Pin Scheduler / Review
   & Publish; pi-gam-app4.js does the move). The served pair
   stays versioned together. pi-gam-app2.css was identical to
   pi-gam-app1.css except the reserved-height groups
   also cover .pi-gam--app-dashbottom — the dashboard's new bottom
   unit PI_App_DashBottom (owner decision 2026-11-14; same
   responsive size set as PI_App_Dashboard, so it joins the
   Dashboard groups below). Companion to
   public/js/pi-gam-app4.js. The base .pi-gam / .pi-gam-label /
   .pi-gam-box / .pi-gam-empty rules come from pi-gam1.css, which
   routes/publicPages.js loads alongside this file on the five
   slotted app routes — this file only adds the app units'
   reserved heights and in-app spacing.

   The reservation matches each unit's size mapping breakpoint by
   breakpoint, so the box the ad lands in is exactly the height of
   the largest format GAM can serve at that width — the page does
   not move when the ad arrives. An unfilled slot collapses fully
   via .pi-gam-empty (pi-gam1.css).
   ════════════════════════════════════════════════════════════════════ */

/* COMPACT PASS (pi-gam-app9.css, successor of pi-gam-app8.css,
   2026-11-14): app8 rules verbatim except (1) the member
   holder margins tighten 28px/8px -> 16px/4px (the 28px top
   margin stacked with section gaps into ~46px of air around
   the dashboard bands), and (2) one appended block at the end
   for PI_App_Result's new in-column home (pi-gam-app9.js).
   Reservations are unchanged. pi-gam-app8.css stays on disk,
   unloaded. */

/* A little airier inside the app: the slot sits below the screen's
   work, never between controls. */
#dashboard .pi-gam, #pin-designer .pi-gam, #keyword-lab .pi-gam,
#pin-review .pi-gam, #pin-pinterest .pi-gam { margin: 16px auto 4px; }

/* Dashboard / DashBottom / Pinterest: 320x100 on phones, 300x250
   from 480px, leaderboards (728x90 / 970x90) from 768px up. */
.pi-gam--app-dashboard .pi-gam-box,
.pi-gam--app-dashbottom .pi-gam-box,
.pi-gam--app-pinterest .pi-gam-box { min-height: 100px; }
@media (min-width: 480px) and (max-width: 767px) {
  .pi-gam--app-dashboard .pi-gam-box,
  .pi-gam--app-dashbottom .pi-gam-box,
  .pi-gam--app-pinterest .pi-gam-box { min-height: 250px; }
}

/* Result / Keywords / Review: 300x250 on phones, 728x90 from
   768px up. */
.pi-gam--app-result .pi-gam-box,
.pi-gam--app-keywords .pi-gam-box,
.pi-gam--app-review .pi-gam-box { min-height: 250px; }

@media (min-width: 768px) {
  .pi-gam--app-dashboard .pi-gam-box,
  .pi-gam--app-dashbottom .pi-gam-box,
  .pi-gam--app-pinterest .pi-gam-box,
  .pi-gam--app-result .pi-gam-box,
  .pi-gam--app-keywords .pi-gam-box,
  .pi-gam--app-review .pi-gam-box { min-height: 90px; }
}

/* Mobile dashboard position (owner, 2026-11-14): when the
   Dashboard holder sits INSIDE the launcher grid (phones), it
   keeps the grid's own rhythm instead of the in-app 28px top
   margin — the base .pi-gam grid-column: 1 / -1 (pi-gam1.css)
   already makes it a full-width row of its own; only the margin
   is tightened so the band sits naturally between the card rows.
   On desktop the holder is a wrap child again and this rule
   simply never matches. */
#dashboard .pd-launch > .pi-gam { margin: 6px 0 0; }

/* Keywords slot in its 2026-11-14 position (below the search
   card, above the results): tighter than the generic in-app
   margin so it reads as part of the search block. */
#p2KwMount .pi-gam--app-keywords { margin: 14px 0 2px; }

/* ── app8 additions (2026-11-14): PI_App_Generator +
   PI_App_Top ──────────────────────────────────────────────
   Generator joins the leaderboard reservation family (its box
   is reserved like the dashboard units', so the Step 1 layout
   does not move when the ad lands), with a tighter margin for
   its in-panel position below the Step 1 card. */
.pi-gam--app-generator .pi-gam-box { min-height: 100px; }
@media (min-width: 480px) and (max-width: 767px) {
  .pi-gam--app-generator .pi-gam-box { min-height: 250px; }
}
@media (min-width: 768px) {
  .pi-gam--app-generator .pi-gam-box { min-height: 90px; }
}
#p2GenMount .pi-gam--app-generator { margin: 16px auto 4px; }

/* PI_App_Top: NO reserved height — the box is 0 tall until GAM
   fills it, and .pi-gam-empty (pi-gam1.css) removes the wrap
   entirely on a no-fill, so the top of every member screen
   collapses fully when there is no ad (no reserved void). The
   margin is re-stated per view for the five views whose
   generic in-app .pi-gam margin (28px, ID-scoped above) would
   otherwise push the banner down. */
.pi-gam--app-top { margin: 10px auto 6px; }
#dashboard .pi-gam--app-top, #pin-designer .pi-gam--app-top,
#keyword-lab .pi-gam--app-top, #pin-review .pi-gam--app-top,
#pin-pinterest .pi-gam--app-top { margin: 10px auto 6px; }
.pi-gam--app-top .pi-gam-box { min-height: 0; }

/* ── COMPACT PASS (app9): PI_App_Result's in-column home.
   pi-gam-app9.js mounts the holder inside .p2-result-side,
   directly below the SEO panel: full column width, a fixed
   16px above it, no auto side margins. The reservation
   heights above (.pi-gam--app-result .pi-gam-box) are
   unchanged — at desktop the column is ~740px wide, inside
   the unit's existing size mapping. */
#pin-designer .p2-result-side .pi-gam--app-result { margin: 16px 0 0; width: 100%; }
