/* =========================================================================
   In-article promo banners (wp-plugin/payhoa-gable/promo.php): they replace the 2024 "Pay-HOA-Motion-CTAs" GIFs in
   posts and a few legacy pages. Self-contained (the legacy pages load nothing else of the redesign), same tokens as
   the Resources side card (.rs-side-cta) and the product replicas (.gbl-pa): Proxima Nova, ink #1c2737, the primary
   blue scale, white app windows with #e2e8f1 hairlines.
   Every rule starts at `aside.pmo .pmo-in` so it outranks the article's `.gbl .rs-prose p|a|b` (0,2,1) and the
   theme's link underlines whatever order the stylesheets load in.
   Motion: the markup is the end state. promo.js adds .is-armed (every animation paused on its first frame) and then
   .is-run when the banner is half on screen; the animations end on the natural styles, so without JS or with reduced
   motion the scene just shows its end state.
   ========================================================================= */

aside.pmo { container-type: inline-size; display: block; margin: 2.2em 0; font-family: 'Proxima Nova', Verdana, Arial, sans-serif; font-size: 16px; line-height: 1.4; }
aside.pmo .pmo-in {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 316px; gap: 26px; align-items: center;
  padding: 28px; border-radius: 24px; overflow: hidden; color: #1c2737; text-align: left;
  background: linear-gradient(160deg, #f5f9ff 0%, #eff7ff 45%, #dcebfd 100%); box-shadow: inset 0 0 0 1px #dcebfd;
}
aside.pmo .pmo-in::before { content: ""; position: absolute; top: -120px; left: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0)); pointer-events: none; }
aside.pmo .pmo-in > * { position: relative; }
aside.pmo .pmo-in p { margin: 0; }
aside.pmo .pmo-in :is(b, strong) { font-weight: 600; color: inherit; }
aside.pmo .pmo-in :is(em, i) { font-style: normal; }
aside.pmo .pmo-in .pmo-ico { width: 1em; height: 1em; flex: none; fill: currentColor; }

/* ---------- copy ---------- */
aside.pmo .pmo-in .pmo-k { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; font-size: 13px; font-weight: 600; line-height: 1.2; letter-spacing: .05em; text-transform: uppercase; color: #2256d3; }
aside.pmo .pmo-in .pmo-k .pmo-ico { font-size: 17px; }
/* V5 (T56 B): the line is the banner's only text under the eyebrow, so it reads as the headline */
aside.pmo .pmo-in .pmo-d { margin-bottom: 24px; font-size: 20px; font-weight: 600; line-height: 1.4; color: #1c2737; text-wrap: balance; }
aside.pmo .pmo-in .pmo-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
aside.pmo .pmo-in a.pmo-btn, aside.pmo .pmo-in a.pmo-btn:visited {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 12px;
  background: #2256d3; color: #fff; font-size: 16px; font-weight: 600; line-height: 1.15; text-align: center; text-decoration: none;
  box-shadow: 0 10px 24px -12px rgba(34, 86, 211, .6); transition: background .2s, transform .2s cubic-bezier(.2, .7, .2, 1), box-shadow .2s;
}
aside.pmo .pmo-in a.pmo-btn:hover, aside.pmo .pmo-in a.pmo-btn:focus { background: #2246ab; color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(34, 86, 211, .7); }
aside.pmo .pmo-in a:focus-visible { outline: 2px solid #2256d3; outline-offset: 3px; }
aside.pmo .pmo-in .pmo-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- stage: an app window peeking up from the bottom edge ---------- */
aside.pmo .pmo-in .pmo-stage {
  height: 256px; border-radius: 18px; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 60%), linear-gradient(180deg, #e3edfc, #d2e2fb);
  box-shadow: inset 0 0 0 1px rgba(34, 86, 211, .08);
}
aside.pmo .pmo-in .pmo-win {
  position: absolute; top: 18px; right: 16px; bottom: -14px; left: 16px; overflow: hidden; border-radius: 14px; background: #fff;
  box-shadow: 0 1px 2px rgba(28, 39, 55, .05), 0 14px 32px -12px rgba(24, 50, 140, .32);
  font-size: 12px; line-height: 1.3; color: #1c2737; font-variant-numeric: tabular-nums;
}
aside.pmo .pmo-in .pmo-win small { font-size: 10px; line-height: 1.3; color: #5f6b7e; }
aside.pmo .pmo-in .pmo-win .pmo-ico { font-size: 12px; }
aside.pmo .pmo-in .pmo-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 8px 12px; border-bottom: 1px solid #edf1f7; }
aside.pmo .pmo-in .pmo-bar > b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
aside.pmo .pmo-in .pmo-body { display: grid; gap: 8px; align-content: start; height: 100%; padding: 10px 12px; background: #f5f7fa; }
aside.pmo .pmo-in .pmo-card { padding: 9px 10px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px #e2e8f1; }
aside.pmo .pmo-in .pmo-ct { margin-bottom: 7px; font-size: 10.5px; font-weight: 600; color: #4d5a6e; }
aside.pmo .pmo-in .pmo-who { display: grid; gap: 1px; min-width: 0; }
aside.pmo .pmo-in .pmo-who > b, aside.pmo .pmo-in .pmo-who > small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
aside.pmo .pmo-in .pmo-who > b { font-size: 11.5px; }
aside.pmo .pmo-in .pmo-inc { margin-left: auto; font-size: 11px; font-weight: 600; color: #0c7a5c; white-space: nowrap; }
aside.pmo .pmo-in .pmo-out { font-size: 11px; font-weight: 600; white-space: nowrap; }
aside.pmo .pmo-in .pmo-tabs { display: flex; gap: 14px; padding: 0 12px; border-bottom: 1px solid #edf1f7; font-size: 10.5px; color: #5f6b7e; }
aside.pmo .pmo-in .pmo-tabs span { padding: 7px 0 6px; }
aside.pmo .pmo-in .pmo-tabs .is-on { font-weight: 600; color: #2256d3; box-shadow: inset 0 -2px #2a6be6; }
aside.pmo .pmo-in .pmo-btn-s { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 5px 9px; border-radius: 7px; background: #fff; box-shadow: inset 0 0 0 1px #e2e8f1; font-size: 10.5px; font-weight: 600; line-height: 1.2; color: #1c2737; white-space: nowrap; }
aside.pmo .pmo-in .pmo-btn-s.is-blue { background: #2a6be6; box-shadow: none; color: #fff; }
aside.pmo .pmo-in .pmo-btn-s.is-wide { display: flex; width: 100%; padding: 7px 9px; }
aside.pmo .pmo-in .pmo-pill { display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
aside.pmo .pmo-in .pmo-pill.is-ok { background: #e7f6f1; color: #0c7a5c; }
aside.pmo .pmo-in .pmo-pill.is-new { background: #fde7f1; color: #a81d5a; }
aside.pmo .pmo-in .pmo-av { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; font-size: 9px; font-weight: 600; background: #dcebfd; color: #2246ab; }
aside.pmo .pmo-in .pmo-av.is-b { background: #e7f6f1; color: #0c7a5c; }
aside.pmo .pmo-in .pmo-av.is-c { background: #fff4e0; color: #9a4b00; }
aside.pmo .pmo-in .pmo-sq { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: #eff7ff; color: #2256d3; }
aside.pmo .pmo-in .pmo-sq .pmo-ico { font-size: 15px; }
aside.pmo .pmo-in .pmo-sq.is-red { background: #fdeceb; color: #c0392b; }
aside.pmo .pmo-in .pmo-meter { display: block; height: 5px; overflow: hidden; border-radius: 99px; background: #edf1f7; }
aside.pmo .pmo-in .pmo-meter > i { display: block; height: 100%; border-radius: inherit; background: #2a6be6; transform-origin: left center; }
aside.pmo .pmo-in .pmo-meter.is-green > i { background: #12a37f; }
/* one spot, two states: the earlier one (.pmo-was) and the one it becomes (.pmo-now) share a grid cell */
aside.pmo .pmo-in .pmo-sw { display: inline-grid; align-items: center; }
aside.pmo .pmo-in div.pmo-sw { display: grid; }
aside.pmo .pmo-in .pmo-sw > * { grid-area: 1 / 1; }
aside.pmo .pmo-in .pmo-was { visibility: hidden; opacity: 0; }

/* Transactions */
aside.pmo .pmo-in .pmo-bank { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; color: #5f6b7e; white-space: nowrap; }
aside.pmo .pmo-in .pmo-bank .pmo-sw { margin-left: 3px; justify-items: end; }
aside.pmo .pmo-in .pmo-bank .pmo-sw i { padding: 2px 7px; border-radius: 99px; background: #eff7ff; font-weight: 600; color: #2256d3; }
aside.pmo .pmo-in .pmo-bank .pmo-sw .pmo-now { background: #e7f6f1; color: #0c7a5c; }
aside.pmo .pmo-in .pmo-tx { padding: 8px 12px; border-bottom: 1px solid #edf1f7; }
aside.pmo .pmo-in .pmo-tx p { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 18px; }
aside.pmo .pmo-in .pmo-tx p + p { margin-top: 2px; }
aside.pmo .pmo-in .pmo-tx b { font-size: 11.5px; }
aside.pmo .pmo-in .pmo-tx .pmo-sw { justify-items: end; }
aside.pmo .pmo-in .pmo-skel { display: block; width: 84px; height: 12px; border-radius: 6px; background: linear-gradient(90deg, #edf1f7 0%, #f7f9fc 50%, #edf1f7 100%); background-size: 200% 100%; }
aside.pmo .pmo-in .pmo-cat { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 6px; background: #eff7ff; font-size: 10px; font-weight: 600; line-height: 1.3; color: #2256d3; white-space: nowrap; }
aside.pmo .pmo-in .pmo-cat .pmo-ico { font-size: 11px; }

/* Owner portal on a phone */
aside.pmo.pmo-app .pmo-in .pmo-win { background: none; box-shadow: none; border-radius: 0; overflow: visible; }
aside.pmo .pmo-in .pmo-phone { position: absolute; top: 0; left: 6px; width: 158px; height: 290px; overflow: hidden; padding: 20px 10px 0; border-radius: 28px; background: #fff; box-shadow: 0 0 0 5px #1f2a3d, 0 18px 36px -14px rgba(24, 50, 140, .5); }
aside.pmo .pmo-in .pmo-notch { position: absolute; top: 6px; left: 50%; width: 46px; height: 7px; margin-left: -23px; border-radius: 99px; background: #1f2a3d; }
aside.pmo .pmo-in .pmo-org { display: flex; align-items: center; justify-content: space-between; margin: 0 -10px 0; padding: 4px 10px 6px; border-bottom: 1px solid #edf1f7; font-size: 10px; font-weight: 600; color: #4d5a6e; }
aside.pmo .pmo-in .pmo-phone .pmo-tabs { margin: 0 -10px; padding: 0 10px; font-size: 9.5px; gap: 10px; }
aside.pmo .pmo-in .pmo-scr { align-items: start; }
aside.pmo .pmo-in .pmo-view { display: grid; gap: 7px; align-content: start; padding-top: 8px; }
aside.pmo .pmo-in .pmo-h { font-size: 13px; }
aside.pmo .pmo-in .pmo-bal { display: grid; gap: 3px; padding: 8px; border-radius: 10px; background: #f5f7fa; }
aside.pmo .pmo-in .pmo-bal > b { font-size: 17px; }
aside.pmo .pmo-in .pmo-bal .pmo-btn-s { margin-top: 4px; }
aside.pmo .pmo-in .pmo-inv { display: grid; gap: 4px; padding: 7px 8px; border-radius: 10px; box-shadow: 0 0 0 1px #e2e8f1; }
aside.pmo .pmo-in .pmo-inv p { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
aside.pmo .pmo-in .pmo-inv p span { display: grid; }
aside.pmo .pmo-in .pmo-inv b { font-size: 10.5px; }
aside.pmo .pmo-in .pmo-rc { justify-items: center; text-align: center; }
aside.pmo .pmo-in .pmo-rc .pmo-h { justify-self: start; }
aside.pmo .pmo-in .pmo-done { display: grid; place-items: center; width: 44px; height: 44px; margin-top: 6px; border-radius: 50%; background: #e7f6f1; color: #0c7a5c; }
aside.pmo .pmo-in .pmo-done .pmo-ico { font-size: 28px; }
aside.pmo .pmo-in .pmo-rc p { display: grid; gap: 4px; font-size: 10.5px; line-height: 1.35; }
aside.pmo .pmo-in .pmo-float { position: absolute; top: 58px; right: 0; display: flex; align-items: center; gap: 7px; width: 176px; padding: 9px 10px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #e2e8f1, 0 16px 32px -12px rgba(24, 50, 140, .4); }
aside.pmo .pmo-in .pmo-float .pmo-who > b { font-size: 10.5px; }

/* Invoices */
aside.pmo .pmo-in .pmo-send { position: relative; display: flex; align-items: center; gap: 8px; overflow: hidden; padding-bottom: 11px; }
aside.pmo .pmo-in .pmo-send .pmo-meter { position: absolute; right: 10px; bottom: 6px; left: 10px; height: 3px; }
aside.pmo .pmo-in .pmo-col { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
aside.pmo .pmo-in .pmo-col > span:first-child { display: grid; }
aside.pmo .pmo-in .pmo-col b { font-size: 18px; line-height: 1.2; }
aside.pmo .pmo-in .pmo-amt { display: flex; align-items: baseline; gap: 5px; }
aside.pmo .pmo-in .pmo-col em { font-size: 10px; color: #5f6b7e; }
aside.pmo .pmo-in .pmo-ring svg { display: block; width: 36px; height: 36px; transform: rotate(-90deg); }
aside.pmo .pmo-in .pmo-ring circle { fill: none; stroke: #edf1f7; stroke-width: 4; }
aside.pmo .pmo-in .pmo-ring .pmo-ring-v { stroke: #2a6be6; stroke-linecap: round; stroke-dasharray: 97.4; stroke-dashoffset: 60.9; } /* 15,600 of 41,600 */
aside.pmo .pmo-in .pmo-pay { display: flex; align-items: center; gap: 7px; margin-top: 6px; padding-top: 6px; border-top: 1px solid #edf1f7; }
aside.pmo .pmo-in .pmo-clr { display: flex; align-items: center; gap: 8px; margin-top: 7px; padding-top: 7px; border-top: 1px solid #edf1f7; }
aside.pmo .pmo-in .pmo-clr .pmo-who { flex: 1; }
aside.pmo .pmo-in .pmo-tick { display: grid; place-items: center; flex: none; width: 16px; height: 16px; border-radius: 4px; background: #12a37f; color: #fff; }
aside.pmo .pmo-in .pmo-tick .pmo-ico { font-size: 11px; }

/* Bookkeeping */
aside.pmo .pmo-in .pmo-pend, aside.pmo .pmo-in .pmo-keeper, aside.pmo .pmo-in .pmo-doc { display: flex; align-items: center; gap: 8px; }
aside.pmo .pmo-in .pmo-circ { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #edf1f7; color: #4d5a6e; }
aside.pmo .pmo-in .pmo-circ .pmo-ico { font-size: 15px; }
aside.pmo .pmo-in .pmo-pend .pmo-who > b { white-space: normal; font-size: 11px; }
aside.pmo .pmo-in .pmo-pend em { justify-self: start; margin-top: 3px; padding: 2px 7px; border-radius: 99px; background: #eff7ff; font-size: 9.5px; font-weight: 600; color: #2256d3; }
aside.pmo .pmo-in .pmo-keeper .pmo-av { width: 28px; height: 28px; font-size: 10px; }
aside.pmo .pmo-in .pmo-who small.is-link { display: inline-flex; align-items: center; gap: 3px; color: #2256d3; }
aside.pmo .pmo-in .pmo-who small.is-link .pmo-ico { font-size: 11px; }
aside.pmo .pmo-in .pmo-doc .pmo-who > b, aside.pmo .pmo-in .pmo-doc .pmo-who > small { white-space: normal; overflow-wrap: anywhere; }
aside.pmo .pmo-in .pmo-doc .pmo-who > b { font-size: 10.5px; }
aside.pmo .pmo-in .pmo-doc .pmo-pill { margin-left: auto; }
aside.pmo .pmo-in .pmo-ib { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 7px; box-shadow: inset 0 0 0 1px #e2e8f1; color: #4d5a6e; }
aside.pmo .pmo-in .pmo-card.pmo-doc .pmo-btn-s { margin-left: auto; }

/* Reconcile */
aside.pmo .pmo-in .pmo-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
aside.pmo .pmo-in .pmo-stats span { display: grid; gap: 2px; }
aside.pmo .pmo-in .pmo-stats small { font-size: 9.5px; }
aside.pmo .pmo-in .pmo-stats b { font-size: 11.5px; }
aside.pmo .pmo-in .pmo-diff { color: #0c7a5c; }

/* Send an Email */
aside.pmo .pmo-in .pmo-units { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 99px; background: #eff7ff; font-size: 10.5px; font-weight: 600; color: #2256d3; }
aside.pmo .pmo-in .pmo-chan { display: flex; gap: 6px; }
aside.pmo .pmo-in .pmo-chan span { display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: 4px; padding: 6px 0; border-radius: 8px; box-shadow: inset 0 0 0 1px #e2e8f1; font-size: 10.5px; color: #5f6b7e; }
aside.pmo .pmo-in .pmo-chan .is-on { background: #eff7ff; box-shadow: inset 0 0 0 1px #2a6be6; font-weight: 600; color: #2256d3; }
aside.pmo .pmo-in .pmo-fld { display: grid; gap: 3px; margin-top: 8px; }
aside.pmo .pmo-in .pmo-fld span { padding: 6px 8px; border-radius: 7px; box-shadow: inset 0 0 0 1px #e2e8f1; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
aside.pmo .pmo-in .pmo-go { display: flex; justify-content: flex-end; margin-top: 8px; }
aside.pmo .pmo-in .pmo-prog { display: grid; gap: 7px; }
aside.pmo .pmo-in .pmo-prog .pmo-now.is-ok { display: inline-flex; align-items: center; gap: 4px; color: #0c7a5c; }

/* ---------- motion (armed by promo.js; paused on the first frame until .is-run) ---------- */
aside.pmo.is-armed .pmo-in .pmo-rise { animation: pmo-rise .5s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms) both; }
aside.pmo.is-armed .pmo-in .pmo-pop { animation: pmo-pop .4s cubic-bezier(.3, 1.5, .5, 1) var(--d, 0ms) both; }
aside.pmo.is-armed .pmo-in .pmo-was { animation: pmo-was .3s ease var(--d, 0ms) both; }
aside.pmo.is-armed .pmo-in .pmo-now { animation: pmo-now .4s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms) both; }
aside.pmo.is-armed .pmo-in .pmo-fill { animation: pmo-fill var(--t, 1s) cubic-bezier(.4, 0, .2, 1) var(--d, 0ms) both; }
aside.pmo.is-armed .pmo-in .pmo-tap { animation: pmo-tap .5s ease var(--d, 0ms); }
aside.pmo.is-armed .pmo-in .pmo-ring-v { animation: pmo-ring 1.5s cubic-bezier(.4, 0, .2, 1) var(--d, 0ms) both; }
aside.pmo.is-armed .pmo-in .pmo-diff { animation: pmo-diff .3s ease var(--d, 0ms) both; }
aside.pmo.is-armed .pmo-in .pmo-skel { animation-name: pmo-was, pmo-shine; animation-duration: .3s, 1.2s; animation-delay: var(--d, 0ms), 0s; animation-iteration-count: 1, 3; animation-fill-mode: both, none; }
aside.pmo.is-armed:not(.is-run) .pmo-in * { animation-play-state: paused !important; }
@keyframes pmo-rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes pmo-pop { from { opacity: 0; transform: scale(.6); } }
@keyframes pmo-was { from { visibility: visible; opacity: 1; } to { visibility: hidden; opacity: 0; } }
@keyframes pmo-now { from { opacity: 0; transform: translateY(4px); } }
@keyframes pmo-fill { from { transform: scaleX(0); } }
@keyframes pmo-tap { 45% { transform: scale(.92); filter: brightness(.9); box-shadow: 0 0 0 4px rgba(42, 107, 230, .22); } }
@keyframes pmo-ring { from { stroke-dashoffset: 97.4; } }
@keyframes pmo-diff { from { color: #b45309; } }
@keyframes pmo-shine { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) {
  aside.pmo .pmo-in *, aside.pmo .pmo-in a.pmo-btn { animation: none !important; transition: none !important; }
}

/* ---------- narrow (the copy column would drop under ~280 px): copy above, the scene below ---------- */
@container (max-width: 680px) {
  aside.pmo .pmo-in { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 24px 22px 22px; border-radius: 20px; }
  aside.pmo .pmo-in .pmo-d { margin-bottom: 20px; font-size: 18px; }
  aside.pmo .pmo-in .pmo-act { flex-direction: column; align-items: stretch; gap: 14px; }
  aside.pmo .pmo-in a.pmo-btn { width: 100%; }
  aside.pmo .pmo-in .pmo-stage { height: 244px; } /* each scene's last step sits near the bottom */
  aside.pmo .pmo-in .pmo-win { left: max(14px, calc(50% - 166px)); right: max(14px, calc(50% - 166px)); }
  aside.pmo.pmo-app .pmo-in .pmo-win { left: max(0px, calc(50% - 180px)); right: max(0px, calc(50% - 180px)); }
}
