/*
 * The Broker Growth Simulator, featured on the site (Asaf, 6 Dec 2026; inc/playbook.php).
 *
 *  - The gift tag: hangs from "Resources Library" under the header, 1 December to
 *    5 January, the same season as the simulator's Christmas look. It folds away
 *    once the page scrolls (the header is sticky, the tag must not follow over the
 *    content) and while a mega panel is open. Below 1240px, where the menu sits
 *    behind the burger, a smaller tag hangs at the right, on the homepage only.
 */
.pbtag{position:absolute;top:100%;right:29vw;z-index:40;display:flex;flex-direction:column;align-items:center;transform-origin:50% 0;transform:rotate(-4deg);pointer-events:none;transition:opacity .22s ease,transform .3s ease;animation:pbtag-swing 1.8s ease-out both}
.pbtag-string{width:2px;height:26px;background:repeating-linear-gradient(#d63c3c 0 5px,#fff 5px 9px);box-shadow:0 0 0 1px rgba(26,34,81,.15)}
.pbtag-card{pointer-events:auto;position:relative;display:flex;align-items:center;gap:12px;text-decoration:none;background:#fff;border:2px solid #1a2251;border-radius:14px;box-shadow:5px 5px 0 #1a2251;padding:12px 16px 12px 14px;color:#1a2251;transition:transform .15s ease,box-shadow .15s ease}
.pbtag-card::before{content:"";position:absolute;top:-8px;left:50%;width:12px;height:12px;margin-left:-6px;border-radius:50%;background:#fff;border:2px solid #1a2251}
.pbtag-card:hover,.pbtag-card:focus-visible{color:#1a2251;transform:translate(-2px,-2px);box-shadow:7px 7px 0 #1a2251}
.pbtag-card:focus-visible{outline:3px solid #2afad9;outline-offset:3px}
.pbtag-gift{width:34px;height:34px;flex:none}
.pbtag-gift svg{width:100%;height:100%;display:block}
.pbtag-txt b{display:block;font:800 16px/1.15 Inter,Arial,sans-serif;letter-spacing:-.01em;white-space:nowrap;color:#1a2251}
.pbtag-txt small{display:block;margin-top:3px;font:700 10.5px 'IBM Plex Mono','Source Code Pro',monospace;letter-spacing:.1em;text-transform:uppercase;color:#d63c3c}
.pbtag-go{width:28px;height:28px;border-radius:50%;background:#2afad9;border:1.5px solid #1a2251;display:grid;place-items:center;flex:none}
.pbtag-go svg{width:14px;height:14px}
.nav.pbtag-away .pbtag,.nav:has(.has-mega[data-open]) .pbtag{opacity:0;transform:rotate(-4deg) translateY(-12px);animation:none}
.nav.pbtag-away .pbtag-card,.nav:has(.has-mega[data-open]) .pbtag-card{pointer-events:none}
@keyframes pbtag-swing{0%{transform:rotate(-11deg)}35%{transform:rotate(2deg)}65%{transform:rotate(-6deg)}100%{transform:rotate(-4deg)}}
@media (prefers-reduced-motion:reduce){.pbtag{animation:none;transition:opacity .2s}}
@media (max-width:1239px){
  body:not(.home) .pbtag{display:none}
  .pbtag{right:14px;transform:rotate(-3deg);animation:none}
  .pbtag-string{height:14px}
  .pbtag-card{padding:8px 10px;gap:8px;box-shadow:3px 3px 0 #1a2251}
  .pbtag-gift{width:24px;height:24px}
  .pbtag-txt b{font-size:13.5px}
  .pbtag-txt small{font-size:9px}
  .pbtag-go{width:22px;height:22px}
  .pbtag-go svg{width:11px;height:11px}
}
/* Room for the tag on a phone: the hero's own 34px top space becomes 80px (mobile.css). */
@media (max-width:860px){body.pbtag-on.home .hero .wrap{padding-top:80px}}
/* Off the homepage the page title sits right under the bar: a compact tag on a short string. */
@media (min-width:1240px){
  body:not(.home) .pbtag-string{height:10px}
  body:not(.home) .pbtag-card{padding:7px 10px;gap:8px;box-shadow:3px 3px 0 #1a2251;border-radius:12px}
  body:not(.home) .pbtag-gift{width:24px;height:24px}
  body:not(.home) .pbtag-txt b{font-size:13.5px}
  body:not(.home) .pbtag-txt small{font-size:9px;margin-top:2px}
  body:not(.home) .pbtag-go{width:22px;height:22px}
  body:not(.home) .pbtag-go svg{width:11px;height:11px}
}
