/* ============================================================
   monroe.css — Custom overrides & components for Monroe Pharmacy
   Loaded after base.css, topbar.css, components.css, responsive.css
   ============================================================ */


/* ── MISSION COUNTDOWN SPACING ─────────────── */

.mission-countdown {
  margin-bottom: 28px;
}


/* ── SERVICE WHEEL OVERRIDES ───────────────── */

.circle-wrap {
  padding: 20px;
  overflow: visible;
}

.service-wheel {
  overflow: visible;
  width: min(700px, 80vw) !important;
}

.service-node {
  width: 160px !important;
  height: 160px !important;
  min-height: unset !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  padding: 14px !important;
}

.service-node .icon {
  font-size: 1.4rem !important;
  margin-bottom: 0 !important;
  flex-shrink: 0;
}

.service-node h4 {
  margin: 0 !important;
  font-size: 0.88rem !important;
  line-height: 1.2 !important;
}

.service-node p {
  font-size: 0.75rem !important;
  line-height: 1.35 !important;
  margin: 0 !important;
  flex: 1;
}


/* ── SERVICE NODE CTA BUTTON ───────────────── */

.node-cta {
  display: inline-block;
  margin-top: 5px;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--soft-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

.node-cta:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}


/* ── SUPPLEMENT TOOLTIPS ───────────────────── */

/* Lift dome overflow so tooltips aren't clipped */
.dome-shell,
.dome {
  overflow: visible !important;
}

.supplement {
  cursor: default;
  z-index: 1;
}

.supplement:hover {
  z-index: 50;
}

.supplement-tooltip {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  background: var(--primary);
  color: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.78rem;
  line-height: 1.5;
  z-index: 51;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

.supplement-tooltip strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 5px;
  color: #fff;
}

/* Default: tooltip appears above */
.supplement-tooltip {
  bottom: calc(100% + 10px);
  top: auto;
}

.supplement-tooltip::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
}

/* Arrow points down (tooltip above card) */
.supplement-tooltip::after {
  top: 100%;
  border-top-color: var(--primary);
}

/* For top/mid cards: tooltip below */
.supplement.tooltip-below .supplement-tooltip {
  top: calc(100% + 10px);
  bottom: auto;
}

.supplement.tooltip-below .supplement-tooltip::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: var(--primary);
}

.supplement:hover .supplement-tooltip {
  display: block;
}


/* ── SHARED MODAL BASE ─────────────────────── */

.mp-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.48);
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.mp-modal.open {
  display: flex;
}

.mp-modal-card {
  background: #fff;
  border-radius: 24px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0,0,0,.22);
  overflow: hidden;
  animation: mpSlideUp .22s ease;
}

@keyframes mpSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mp-modal-header {
  background: var(--primary);
  padding: 22px 24px 18px;
  position: relative;
}

.mp-modal-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.22);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.mp-modal-header h3 {
  margin: 0 0 4px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.mp-modal-header p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,.75);
}

.mp-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background .15s;
}

.mp-modal-close:hover {
  background: rgba(255,255,255,.28);
}

.mp-modal-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-app-modal-card {
  max-width: 700px;
}

.mobile-app-store-buttons {
  display: grid;
  gap: 14px;
  align-content: center;
  justify-items: start;
}

.mobile-app-panel {
  display: grid;
  grid-template-columns: minmax(120px, 160px) 1fr;
  gap: 28px;
  align-items: center;
}

.mobile-app-logo-area {
  display: grid;
  place-items: center;
  padding: 4px;
}

.mobile-app-logo-image {
  width: 100%;
  max-width: 150px;
  height: auto;
  display: block;
  border-radius: 18px;
}

.mobile-store-badge-image-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  text-decoration: none;
  transition: transform .15s ease, opacity .15s ease;
}

.mobile-store-badge-image-link:hover {
  transform: translateY(-1px);
  opacity: .96;
}

.mobile-store-badge-image {
  display: block;
  width: auto;
  height: 56px;
  max-width: 100%;
}

.mobile-app-benefits {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.mobile-app-benefits-title {
  font-size: .88rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}

.mobile-app-benefits-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  display: grid;
  gap: 8px;
}

.mobile-app-benefits-list li {
  line-height: 1.4;
}

.mobile-app-link-disabled {
  color: var(--muted);
  font-size: .88rem;
  text-align: center;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: var(--soft);
}

/* Mobile — bottom sheet */
@media (max-width: 480px) {
  .mp-modal {
    align-items: flex-end;
    padding: 0;
  }

  .mp-modal-card {
    border-radius: 20px 20px 0 0;
    position: relative;
    max-height: 92vh;
    overflow-y: auto;
  }

  @keyframes mpSlideUp {
    from { opacity: 0; transform: translateY(100%); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 640px) {
  .mobile-app-panel {
    grid-template-columns: 1fr;
  }

  .mobile-app-logo-image {
    max-width: 120px;
  }
}


/* ── TRANSFER MODAL ────────────────────────── */

#transfer-modal .mp-modal-card {
  max-width: 420px;
}

.tm-option {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}

.tm-option:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(83,103,58,.1);
}

.tm-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.tm-option-text strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2px;
}

.tm-option-text span {
  font-size: 0.8rem;
  color: var(--muted);
}


/* ── VACCINATION MODAL ─────────────────────── */

#vacc-modal .mp-modal-card {
  max-width: 460px;
}

.vm-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
}

.vm-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 21px;
  top: 44px;
  width: 2px;
  height: calc(100% - 10px);
  background: var(--line);
}

.vm-step-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  padding-bottom: 18px;
}

.vm-step-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--soft-2);
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.vm-step-content {
  padding: 10px 0 18px;
  flex: 1;
}

.vm-step-content strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 3px;
}

.vm-step-content p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

.vm-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  background: var(--primary);
  color: #fff;
  transition: background .15s;
}

.vm-action:hover {
  background: var(--primary-2);
}

.vm-note {
  background: #fff8e6;
  border: 1px solid #f5d87a;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.78rem;
  color: #7a5c00;
  margin-top: 8px;
  line-height: 1.5;
}

.vm-note strong {
  font-weight: 800;
}


/* ── JOB POSTINGS SECTION ──────────────────── */

.jobs-divider {
  border: none;
  border-top: 2px dashed var(--line);
  margin: 0;
  position: relative;
}

.jobs-divider-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -11px;
  background: var(--soft);
  padding: 0 14px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.job-posting {
  max-width: var(--max);
  margin: 32px auto 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.job-posting-header {
  background: var(--primary);
  padding: 24px 28px 20px;
  position: relative;
}

.job-posting-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  border: 1px solid rgba(255,255,255,.2);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.job-posting-header h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px;
  line-height: 1.2;
}

.job-posting-header p {
  font-size: 0.83rem;
  color: rgba(255,255,255,.7);
  margin: 0 0 14px;
}

.job-posting-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.job-posting-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.12);
  border: 0.5px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: 4px 11px;
}

.job-posting-body {
  padding: 24px 28px;
  background: #fff;
}

.job-posting-intro {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.job-posting-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 22px;
}

.job-posting-col {
  background: var(--soft);
  border-radius: 16px;
  padding: 16px 18px;
}

.job-posting-col h4 {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  letter-spacing: .02em;
}

.job-posting-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.job-posting-col li {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.job-li-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.job-li-dot.green { background: var(--primary); }
.job-li-dot.red   { background: var(--accent); }

.job-posting-gains {
  margin-bottom: 22px;
}

.job-posting-gains-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.job-gains-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.job-gain-card {
  background: var(--soft-2);
  border-radius: 14px;
  padding: 12px 14px;
}

.job-gain-card strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.job-gain-card span {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.4;
}

.job-apply-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.job-apply-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.job-apply-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  transition: border-color .15s, box-shadow .15s;
}

.job-apply-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(83,103,58,.08);
}

.job-apply-card.featured {
  border-color: var(--primary);
  border-width: 1.5px;
}

.job-apply-card strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 5px;
}

.job-apply-card p {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 6px;
}

.job-apply-card a {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.job-posting-footer {
  padding: 12px 28px;
  background: var(--soft);
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}

/* Mobile */
@media (max-width: 760px) {
  .job-posting-cols,
  .job-apply-grid {
    grid-template-columns: 1fr;
  }

  .job-gains-grid {
    grid-template-columns: 1fr 1fr;
  }

  .job-posting-body {
    padding: 18px 16px;
  }

  .job-posting-header {
    padding: 18px 16px 16px;
  }
}
