/* ════════════════════════════════════════════════════════════
   PinInspect — DESKTOP HERO ADS (2026-11-19, owner order 18:50:
   ads in the desktop hero zone, sizes AS PER THE SPACE,
   perfectly aligned). ADDITIVE companion to pi-gam6.css —
   loaded right after it by routes/publicPages.js (gamHeadTags)
   on public pages only. It styles ONLY the three new holders
   of the DESKTOP-HERO-ADS package plus their geometry wrapper;
   every pre-existing slot keeps pi-gam6.css untouched.

   The three slots (holders are static markup in
   public/index.html; unit config in pi-gam12.js):
   - PI_Home_Top: leaderboard between the site nav and the
     hero card, a direct child of .dh-hero-in, so the holder
     spans the same content column as the hero card itself —
     its edges ARE the card's edges. Creative centred in the
     box by the base .pi-gam rules; the box reserves exactly
     the mapped creative height (90px) so the hero never
     jumps, and .pi-gam-empty collapses it on no-fill like
     every other slot.
   - PI_Hero_Bottom: leaderboard inside .piExactShell between
     .piExactMain and the workflow card (.piExactFlow); width
     100% of the shell, so its edges line up with both.
   - PI_Home_Rail: sticky rail in the right page margin. The
     hero content column is 1440px wide, so the margin only
     fits a rail on wide viewports: 160px from 1840px, 300px
     from 2120px (24px clear of the column, >=8px clear of
     the viewport edge — measured, see pi-gam12.js). The rail
     lives in .pi-rail-zone, an absolutely positioned spine
     inside .pi-hero-zone (the position:relative wrapper
     around the hero header, exactly the hero zone's height):
     the wrap is position:sticky inside that spine, so it
     sticks at 16px from the viewport top while the hero zone
     scrolls and releases at the zone's bottom edge. Below
     1840px the zone is display:none and the unit's GPT
     mapping is empty, so the slot is never requested.
   Both leaderboards are desktop-only: below 861px they are
   display:none here and unrequested via the empty mapping
   row — the phone hero keeps exactly its three mobile slots.
   ════════════════════════════════════════════════════════════ */

/* Geometry wrapper for the rail zone: exactly the hero
   header's box, so the rail spine spans the hero zone. */
.pi-hero-zone { position: relative; }

/* ——— PI_Home_Top ———————————————————————————————————————— */
.pi-gam--home-top {
  margin: 20px 0 22px;
  max-width: none;
  padding: 0;
  width: 100%;
}
.pi-gam--home-top .pi-gam-box { min-height: 90px; }

/* ——— PI_Hero_Bottom ————————————————————————————————————— */
.pi-gam--hero-bottom {
  margin: 26px 0 24px;
  max-width: none;
  padding: 0;
  width: 100%;
}
.pi-gam--hero-bottom .pi-gam-box { min-height: 90px; }

/* Desktop-only: phones never render the leaderboards (and,
   via the empty [0] mapping row in pi-gam12.js, never
   request them either). */
@media (max-width: 860px) {
  .pi-gam--home-top,
  .pi-gam--hero-bottom { display: none; }
}

/* ——— PI_Home_Rail ———————————————————————————————————————
   The spine carries the rail's REAL width (160px, then 300px
   from 2120px) instead of being a 0-width strip: the live
   hero stylesheet (pi-approved-clean8.css) guards every
   .pi-gam with #home .pi-gam{max-width:100%!important}, so a
   holder inside a 0-width spine would be clamped to 0px.
   With the spine at rail width, the guard, the base
   .pi-gam{width:100%} and the box's max-width:100% all agree
   on exactly the rail width — the creative fills its holder
   flush, never wider, never loose. */
.pi-rail-zone { display: none; }
@media (min-width: 1840px) {
  .pi-rail-zone {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    /* spine starts at the page centre; the 1440px column's
       right edge sits at centre + 720px, so +744px leaves
       the rail 24px clear of the column at every width. */
    left: 50%;
    margin-left: 744px;
    width: 160px;
    z-index: 5;
  }
  .pi-gam--home-rail {
    position: sticky;
    top: 16px;
    margin: 0;
    padding: 0;
    clear: none;
  }
  .pi-gam--home-rail .pi-gam-box { min-height: 600px; }
}
@media (min-width: 2120px) {
  .pi-rail-zone { width: 300px; }
}
