/* RPMA member details popup */
.rpm-lock, .rpm-lock body { overflow: hidden; }
.rpm-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; visibility: hidden; opacity: 0; transition: opacity .2s ease, visibility 0s linear .2s; }
.rpm-modal.is-open { visibility: visible; opacity: 1; transition: opacity .2s ease; }
.rpm-backdrop { position: absolute; inset: 0; background: rgba(8, 25, 52, .6); }
.rpm-dialog { position: relative; width: 100%; max-width: 640px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: #fff; border-radius: 10px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); outline: none; transform: translateY(12px) scale(.98); transition: transform .2s ease; overflow: hidden; }
.rpm-modal.is-open .rpm-dialog { transform: none; }
.rpm-close { position: absolute; top: 10px; right: 12px; z-index: 2; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .18); color: #fff; font-size: 26px; line-height: 34px; cursor: pointer; padding: 0; }
.rpm-close:hover, .rpm-close:focus { background: rgba(255, 255, 255, .32); }
.rpm-inner { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.rpm-head { display: flex; align-items: center; gap: 14px; padding: 22px 60px 20px 24px; background: #0d55a5; color: #fff; }
.rpm-logo { flex: 0 0 auto; background: #fff; border-radius: 6px; padding: 4px; }
.rpm-logo img { display: block; max-width: 96px; max-height: 48px; width: auto; height: auto; }
.rpm-kicker { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .8; margin-bottom: 2px; }
.rpm-title { margin: 0; font-size: 21px; line-height: 1.3; color: #fff; font-weight: 700; }
.rpm-content { padding: 8px 24px 16px; }
.rpm-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid #e8edf3; }
.rpm-row:last-child { border-bottom: 0; }
.rpm-ic { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: #e9f1fb; display: flex; align-items: center; justify-content: center; }
.rpm-ic svg { width: 17px; height: 17px; fill: #0d55a5; }
.rpm-body { min-width: 0; flex: 1; }
.rpm-label { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #6b7a8c; margin-bottom: 3px; }
.rpm-val { font-size: 15px; line-height: 1.55; color: #1f2a37; word-wrap: break-word; overflow-wrap: anywhere; }
.rpm-val a { color: #0d55a5; text-decoration: none; }
.rpm-val a:hover { text-decoration: underline; }
.rpm-list { margin: 0; padding: 0; list-style: none; }
.rpm-list li { padding: 1px 0; }
.rpm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.rpm-val a.rpm-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid #c9dcf2; border-radius: 20px; background: #f5f9fe; font-size: 14px; white-space: nowrap; }
.rpm-val a.rpm-chip:hover { background: #0d55a5; border-color: #0d55a5; color: #fff; text-decoration: none; }
.rpm-chip svg { width: 13px; height: 13px; fill: currentColor; }
.rpm-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 24px; border-top: 1px solid #e8edf3; background: #f8fafc; }
.rpm-count { font-size: 13px; color: #6b7a8c; }
.rpm-nav { border: 1px solid #0d55a5; background: #fff; color: #0d55a5; border-radius: 4px; padding: 6px 14px; font-size: 14px; cursor: pointer; }
.rpm-nav:hover:not([disabled]) { background: #0d55a5; color: #fff; }
.rpm-nav[disabled] { opacity: .35; cursor: default; }
.rp-member-btn { cursor: pointer; }
@media (max-width: 575px) {
  .rpm-modal { padding: 0; align-items: flex-end; }
  .rpm-dialog { max-height: 92vh; border-radius: 14px 14px 0 0; }
  .rpm-head { padding: 18px 56px 16px 16px; }
  .rpm-title { font-size: 18px; }
  .rpm-content { padding: 4px 16px 12px; }
  .rpm-foot { padding: 10px 16px; }
  .rpm-logo img { max-width: 70px; }
}
@media (prefers-reduced-motion: reduce) { .rpm-modal, .rpm-dialog { transition: none; } }
