.rd-psj-cards {
  --rd-psj-navy: #071127;
  --rd-psj-ink: #eaf3ff;
  --rd-psj-muted: #9fb0c7;
  --rd-psj-line: rgba(255, 255, 255, .16);
  --rd-psj-purple: #6d5dfc;
  --rd-psj-purple-2: #a78bfa;
  --rd-psj-blue: #38bdf8;
  color: var(--rd-psj-ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.rd-psj-cards *,
.rd-psj-cards *::before,
.rd-psj-cards *::after {
  box-sizing: border-box;
}

.rd-psj-cards .rd-psj-controls {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 17, 39, .38);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 20px;
  padding: 14px;
  margin: 0 0 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .10);
}

.rd-psj-cards .rd-psj-searchrow {
  display: flex;
  gap: 10px;
}

.rd-psj-cards .rd-psj-search {
  width: 100%;
  min-height: 50px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .018);
  color: rgba(255, 255, 255, .88);
  padding: 0 15px;
  outline: none;
  font-size: 16px;
}

.rd-psj-cards .rd-psj-search::placeholder {
  color: rgba(255, 255, 255, .48);
}

.rd-psj-cards .rd-psj-search:focus {
  border-color: var(--rd-psj-blue);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, .14);
}

.rd-psj-cards .rd-psj-clear {
  min-height: 50px;
  border: 0;
  border-radius: 15px;
  padding: 0 16px;
  background: rgba(255, 255, 255, .82);
  color: var(--rd-psj-navy);
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}

.rd-psj-cards .rd-psj-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.rd-psj-cards .rd-psj-filter {
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .048);
  color: rgba(255, 255, 255, .78);
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}

.rd-psj-cards .rd-psj-filter.is-active {
  background: rgba(109, 93, 252, .86);
  color: #fff;
  border-color: rgba(109, 93, 252, .86);
}

.rd-psj-cards .rd-psj-count {
  margin-top: 11px;
  color: rgba(255, 255, 255, .52);
  font-size: 13px;
}

.rd-psj-cards .rd-psj-grid {
  columns: 4 210px;
  column-gap: 16px;
}

.rd-psj-cards .rd-psj-card {
  break-inside: avoid;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 22px;
  background: rgba(255, 255, 255, .075);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .22);
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.rd-psj-cards .rd-psj-card:hover {
  transform: translateY(-5px);
  border-color: rgba(167, 139, 250, .72);
  box-shadow: 0 24px 62px rgba(0, 0, 0, .34);
}

.rd-psj-cards .rd-psj-imagewrap {
  position: relative;
  display: grid;
  place-items: center;
  height: 118px;
  min-height: 118px;
  overflow: hidden;
  background: linear-gradient(135deg, #201939, #071127);
}

.rd-psj-cards .rd-psj-imagewrap img {
  display: block;
  width: 100%;
  height: 118px;
  object-fit: cover;
  object-position: center 18%;
}

.rd-psj-cards .rd-psj-placeholder {
  min-height: 118px;
  display: grid;
  place-items: center;
  padding: 18px;
  color: rgba(255, 255, 255, .55);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.rd-psj-cards .rd-psj-pdf-placeholder {
  gap: 4px;
  width: 100%;
  background:
    linear-gradient(135deg, rgba(109, 93, 252, .24), rgba(56, 189, 248, .12)),
    linear-gradient(135deg, #201939, #071127);
  color: #fff;
}

.rd-psj-cards .rd-psj-pdf-placeholder span {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: .08em;
}

.rd-psj-cards .rd-psj-pdf-placeholder small {
  color: rgba(255, 255, 255, .62);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.rd-psj-cards .rd-psj-corner-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  max-width: calc(100% - 16px);
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px;
  background: rgba(7, 17, 39, .78);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
  padding: 6px 8px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .28);
}

.rd-psj-cards .rd-psj-cardbody {
  min-width: 0;
  padding: 12px;
}

.rd-psj-cards .rd-psj-cardtop {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  min-width: 0;
}

.rd-psj-cards .rd-psj-type {
  display: inline-flex;
  max-width: 100%;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(167, 139, 250, .18);
  color: #ddd6fe;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  overflow-wrap: break-word;
  white-space: normal;
}

.rd-psj-cards .rd-psj-date {
  color: rgba(255, 255, 255, .52);
  font-size: 12px;
  white-space: nowrap;
}

.rd-psj-cards .rd-psj-cardtitle {
  max-width: 100%;
  margin: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1.08;
  overflow-wrap: break-word;
  white-space: normal;
}

.rd-psj-cards .rd-psj-summary {
  max-width: 100%;
  margin: 7px 0 0;
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: break-word;
  white-space: normal;
}

.rd-psj-cards .rd-psj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.rd-psj-cards .rd-psj-tag,
.rd-psj-cards .rd-psj-pin {
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .68);
  font-size: 11px;
  overflow-wrap: break-word;
  white-space: normal;
}

.rd-psj-cards .rd-psj-pin {
  border-color: rgba(56, 189, 248, .36);
  color: #bae6fd;
}

.rd-psj-cards .rd-psj-topic-tag {
  border-color: rgba(167, 139, 250, .28);
  color: #ddd6fe;
}

.rd-psj-cards .rd-psj-empty {
  display: none;
  border: 1px dashed rgba(255, 255, 255, .22);
  border-radius: 18px;
  color: rgba(255, 255, 255, .7);
  padding: 20px;
}

.rd-psj-cards .rd-psj-empty.is-visible {
  display: block;
}

.rd-psj-cards .rd-psj-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
}

.rd-psj-cards .rd-psj-modal.is-open {
  display: block;
}

.rd-psj-cards .rd-psj-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.rd-psj-cards .rd-psj-dialog {
  position: relative;
  width: min(1120px, calc(100% - 20px));
  max-height: calc(100vh - 20px);
  margin: 10px auto;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.rd-psj-cards .rd-psj-modalbar {
  position: fixed;
  top: 28px;
  right: 28px;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
}

.rd-psj-cards .rd-psj-close {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(221, 214, 254, .56);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(91, 33, 182, .92), rgba(45, 16, 82, .88));
  color: #fff;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 24px;
  font-weight: 650;
  line-height: 1;
  padding: 0 0 3px;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .34), 0 0 0 4px rgba(167, 139, 250, .10);
}

.rd-psj-cards .rd-psj-close:hover {
  transform: translateY(-1px) scale(1.04);
  border-color: rgba(255, 255, 255, .82);
  background: linear-gradient(135deg, rgba(124, 58, 237, .98), rgba(76, 29, 149, .94));
}

.rd-psj-cards .rd-psj-close:focus-visible {
  outline: 3px solid rgba(56, 189, 248, .85);
  outline-offset: 4px;
}

.rd-psj-cards .rd-psj-modalbody {
  max-height: calc(100vh - 20px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
  background: transparent;
}

.rd-psj-cards .rd-psj-scroll-viewer,
.rd-psj-cards .rd-psj-paged-viewer {
  display: grid;
  justify-items: center;
  gap: 18px;
  width: 100%;
}

.rd-psj-cards .rd-psj-viewer-page {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: 100%;
}

.rd-psj-cards .rd-psj-page-label,
.rd-psj-cards .rd-psj-page-count {
  border: 1px solid rgba(221, 214, 254, .42);
  border-radius: 999px;
  background: rgba(7, 17, 39, .72);
  color: #ddd6fe;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .06em;
  padding: 7px 11px;
  text-transform: uppercase;
}

.rd-psj-cards .rd-psj-page-controls {
  position: sticky;
  top: 12px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 10px;
}

.rd-psj-cards .rd-psj-page-button,
.rd-psj-cards .rd-psj-open-link {
  min-height: 38px;
  border: 1px solid rgba(221, 214, 254, .48);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(91, 33, 182, .92), rgba(45, 16, 82, .88));
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  padding: 0 14px;
  text-decoration: none;
}

.rd-psj-cards .rd-psj-page-button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.rd-psj-cards .rd-psj-open-link {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
}

.rd-psj-cards .rd-psj-fullimage {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 64px);
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
  filter: drop-shadow(0 30px 42px rgba(0, 0, 0, .55));
}

.rd-psj-cards .rd-psj-fullimage.is-zoomed {
  width: min(100%, 1120px);
  max-width: 100%;
  max-height: none;
  cursor: zoom-out;
}

.rd-psj-cards .rd-psj-scroll-viewer .rd-psj-fullimage:not(.is-zoomed) {
  max-height: calc(100vh - 104px);
}

.rd-psj-cards .rd-psj-pdf-frame {
  width: min(100%, 1040px);
  height: min(82vh, 920px);
  min-height: 620px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  background: #111827;
  box-shadow: 0 30px 42px rgba(0, 0, 0, .42);
}

.rd-psj-modal-open {
  overflow: hidden;
}

@media (max-width: 680px) {
  .rd-psj-cards .rd-psj-searchrow {
    flex-direction: column;
  }

  .rd-psj-cards .rd-psj-controls {
    position: relative;
  }

  .rd-psj-cards .rd-psj-modalbar {
    top: 18px;
    right: 18px;
  }

  .rd-psj-cards .rd-psj-pdf-frame {
    height: 76vh;
    min-height: 420px;
  }
}
