/* 2.1.0 Share button and desktop fallback menu.
   2.1.4: navy/gold colors are literal (same in every browser and on every card);
   hover gold is only for devices that really hover, so iPad tap does not leave a gold outline;
   catalog Share sits in the footer inside the card, not absolutely on the cell. */
.pt-share{position:relative;display:inline-block}
.pt-share-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  font:700 13px/1.2 "Libre Franklin",Arial,sans-serif;
  color:#14213d;background:#fff;
  border:2px solid #14213d;border-radius:6px;
  padding:6px 12px;min-height:36px;box-sizing:border-box;
  cursor:pointer;-webkit-appearance:none;appearance:none;
}
@media (hover:hover){
  .pt-share-btn:hover{background:#faf8f2;border-color:#ecb40b}
}
.pt-share-btn[aria-expanded="true"]{background:#faf8f2;border-color:#ecb40b}
.pt-share-btn:focus-visible{outline:2px solid #ecb40b;outline-offset:2px}
.pt-share-menu{position:absolute;right:0;top:calc(100% + 6px);min-width:200px;background:#1b2733;color:#fff;border:1px solid #2c3a48;border-radius:8px;box-shadow:0 10px 28px rgba(0,0,0,.35);padding:6px;z-index:40}
.pt-share-menu[hidden]{display:none}
.pt-share-menu button{display:block;width:100%;text-align:left;background:none;border:0;color:#fff;font:600 14px/1.3 "Libre Franklin",Arial,sans-serif;padding:9px 12px;border-radius:6px;cursor:pointer}
.pt-share-menu button:hover,.pt-share-menu button:focus-visible{background:#26384a;outline:none}
.pt-share-toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#3b465e;color:#fff;padding:10px 18px;border-radius:8px;font-size:14px;z-index:60}
.cx-acts .pt-share,.npd-open .pt-share,.tz-hacts .pt-share{margin-left:8px}
.ptp-share{margin:0}
@media(max-width:760px){.pt-share-menu{left:0;right:auto}}

/* Public catalog: Share lives in .ptp-foot (inside the card). Do not absolutely position it on the cell. */
.ptp-cell:has(.pt-share-btn[aria-expanded="true"]){z-index:5}
.ptp-foot .ptp-share,.ptp-foot .pt-share{position:static;right:auto;bottom:auto;z-index:2;margin:0}

/* Front-page course tiles: share host is a sibling of the tile (cannot nest a button in the link).
   Stretch the tile to the cell height and pin Share inside the bottom-right padding. */
.tz-share-cell{position:relative;display:flex;flex-direction:column;min-width:0;height:100%}
.tz-share-cell > .cx-tile{flex:1 1 auto;height:100%}
.tz-share-cell > .cx-tile .cx-body{padding-bottom:56px}
.tz-share-cell > .pt-share-host,.tz-share-cell > .pt-share{position:absolute;right:16px;bottom:16px;z-index:2;margin:0}

/* Front-page Nexus Point mini cards and packet rows: Share inside the card, bottom-right. */
.tz-grid>.np.mini .pt-share-host,.tz-grid>.np.mini .pt-share{position:absolute;right:16px;bottom:10px;margin:0;z-index:2}
.tz-grid>.cat{position:relative}
.tz-grid>.cat .pt-price{padding-right:92px}
.tz-grid>.cat > .pt-share-host,.tz-grid>.cat > .pt-share{position:absolute;right:16px;bottom:14px;margin:0;z-index:2}

.tz-share-spot{margin:18px 0 8px;padding:16px 18px;border:1px solid #dedbd2;border-left:4px solid #ecb40b;border-radius:10px;background:#fff}
.tz-share-spot .pt-share{margin-left:8px}
/* 2.1.1: Share row under a course or packet title (.crs-page). 2.1.5: also under a Nexus Point title (.npd-txt). */
.pt-share-row{margin:4px 0 12px}
.pt-share-row .pt-share-menu{left:0;right:auto}
