/* Share button + menu for job posts (Careers page). Pairs with assets/js/job-share.js. */
.job-card { position: relative; }
.job-card .job-card-header { padding-right: 62px; }
.job-share-btn {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0;
  font-size: 15px; line-height: 1; color: var(--pg-heading, #0623b1); background: var(--pg-glass, rgba(255, 255, 255, .85));
  border: 1px solid var(--pg-glass-border, rgba(6, 35, 177, .18)); border-radius: 50%; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.job-share-btn:hover, .job-share-btn:focus-visible { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(6, 35, 177, .18); outline: none; }
/* in the job window the button sits at the top right, just left of the close button (the window uses Bootstrap 3, where the title is a block) */
.job-modal .modal-header { position: relative; padding-right: 112px; }
.job-modal .modal-header .job-share-btn { position: absolute; top: 14px; right: 62px; margin: 0; }

.pg-share-menu {
  position: fixed; z-index: 99992; width: 224px; padding: 8px; font-family: 'Poppins', sans-serif;
  color: var(--pg-text, #14213d); background: #fff; border: 1px solid var(--pg-glass-border, rgba(6, 35, 177, .16)); border-radius: 14px;
  box-shadow: 0 16px 40px rgba(4, 38, 100, .22);
}
html[data-theme="dark"] .pg-share-menu { background: #131d3d; color: #e8ecff; border-color: rgba(255, 255, 255, .16); box-shadow: 0 16px 40px rgba(0, 0, 0, .55); }
.pg-share-menu[hidden] { display: none; }
.pg-share-head { padding: 6px 10px 8px; font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--pg-muted, #56627f); }
.pg-share-menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; text-align: left; font: inherit; font-size: 14.5px; color: inherit; background: none; border: 0; border-radius: 10px; cursor: pointer; }
.pg-share-menu button[hidden] { display: none; }
.pg-share-menu button:hover, .pg-share-menu button:focus-visible { background: rgba(6, 35, 177, .08); outline: none; }
html[data-theme="dark"] .pg-share-menu button:hover, html[data-theme="dark"] .pg-share-menu button:focus-visible { background: rgba(255, 255, 255, .09); }
.pg-share-menu i { flex: 0 0 22px; font-size: 18px; text-align: center; }
.pg-share-menu [data-s="whatsapp"] i { color: #25d366; }
.pg-share-menu [data-s="linkedin"] i { color: #0a66c2; }
.pg-share-menu [data-s="x"] i { color: #1d9bf0; }
.pg-share-menu [data-s="facebook"] i { color: #1877f2; }
.pg-share-menu [data-s="instagram"] i { color: #d6249f; }

.pg-share-toast {
  position: fixed; left: 50%; bottom: 84px; z-index: 99993; max-width: min(420px, calc(100vw - 32px)); padding: 11px 18px; text-align: center;
  font: 500 14px/1.45 'Poppins', sans-serif; color: #fff; background: #0a1a5c; border-radius: 12px; box-shadow: 0 12px 32px rgba(4, 20, 80, .35);
  opacity: 0; transform: translate(-50%, 8px); pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.pg-share-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* the job text after cleaning (assets/js/clean-html.js): plain paragraphs, real numbered lists */
.job-modal .job-rich p { margin: 0 0 10px; text-align: left; }
.job-modal .job-rich strong, .job-modal .job-rich b { font-weight: 700; }
.job-modal .job-rich ol { margin: 0 0 12px; padding-left: 24px; list-style: decimal; }
.job-modal .job-rich ol li { list-style-type: decimal !important; margin-bottom: 6px; text-align: left; }
.job-modal .job-rich ul ul, .job-modal .job-rich li ul { margin: 6px 0 6px; }
.job-modal .job-rich a { color: var(--pg-accent, #0623b1); text-decoration: underline; }
/* whatever styling still arrives inside job text (an old saved job, a text pasted from Word) never paints a background */
.job-modal #jobDescription *, .job-modal #jobRequirements * { background: transparent !important; }
html[data-theme="dark"] .job-modal #jobDescription *, html[data-theme="dark"] .job-modal #jobRequirements * { color: inherit !important; }

/* a note when a shared job is no longer open */
.job-closed-note { margin: 0 0 22px; padding: 14px 18px; font-size: 15px; line-height: 1.5; color: #7a4b00; background: #fff4de; border: 1px solid #f0d49b; border-radius: 12px; }
html[data-theme="dark"] .job-closed-note { color: #f3d9a4; background: rgba(185, 138, 31, .16); border-color: rgba(185, 138, 31, .45); }

/* the job window is glass in night mode: blur what is behind it so the page text does not ghost through the job text */
.job-modal .modal-content { -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); }
html[data-theme="dark"] .job-modal .modal-content { background-color: rgba(14, 22, 48, .94) !important; }
