/* Top matches stay hidden until the user submits the form */
.jm-card .results:not(.is-open),
.results:not(.is-open) {
  display: none !important;
}
.results.is-open {
  display: block;
}

.jm-form-hint {
  margin: 0.4rem 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: #8A6A2F;
}
.jm-form-card select.jm-subject,
.jm-form-card select.jm-article-type {
  width: 100%;
  min-height: 42px;
}

.jm-empty-alert {
  background: #F7F9FC;
  border: 1px solid rgba(15, 25, 35, 0.12);
  border-left: 3px solid #185FA5;
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  margin-top: 0.5rem;
}
.jm-empty-alert p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #5A6B7A;
}

.tag.oa-yes {
  background: #E1F5EE;
  border-color: #9FE1CB;
  color: #085041;
  font-weight: 500;
}
.tag.oa-no {
  background: #F7F9FC;
  color: #5A6B7A;
}

.jm-premium-block {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 25, 35, 0.08);
}

.jm-premium-locked {
  position: relative;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 25, 35, 0.08);
  min-height: 96px;
  overflow: hidden;
  border-radius: 10px;
}
.jm-premium-blur {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  opacity: 0.55;
}
.jm-premium-lock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(247, 249, 252, 0.78);
  backdrop-filter: blur(1px);
}
.jm-premium-lock .lock-hint {
  font-size: 12px;
  color: #5A6B7A;
  font-weight: 500;
}

.jm-subject-areas-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94A3B0;
  margin-bottom: 6px;
}

.jm-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}
.jm-link {
  font-size: 12px;
  font-weight: 600;
  color: #185FA5;
  text-decoration: none;
}
.jm-link:hover { text-decoration: underline; }
.jm-link.muted { color: #94A3B0; font-weight: 500; }

.jm-unlock-banner .unlock-copy p {
  max-width: 420px;
  line-height: 1.45;
}

.jm-over-budget {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px dashed rgba(15, 25, 35, 0.16);
}
.jm-over-budget-title {
  font-size: 15px;
  font-weight: 600;
  color: #042C53;
  margin-bottom: 8px;
}
.jm-over-budget-note {
  font-size: 13px;
  line-height: 1.5;
  color: #5A6B7A;
  background: #FFF8EB;
  border: 1px solid #F5D78E;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 0 12px;
}

/* Locked preview teasers: show score/Q/review/OA to nudge unlock */
.jm-journal-card.locked {
  position: relative;
  overflow: hidden;
}
.jm-locked-teaser {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 0;
}
.jm-locked-teaser-line {
  font-size: 14px;
  font-weight: 600;
  color: #042C53;
  line-height: 1.45;
  letter-spacing: 0.01em;
}
.jm-journal-card.locked .lock-hint {
  font-size: 12px;
  font-weight: 500;
  color: #5A6B7A;
}

/* Post-Stripe: email delivery confirmation */
.jm-email-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 44, 83, 0.45);
}
.jm-email-modal-box {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 14px;
  padding: 28px 26px 22px;
  box-shadow: 0 18px 50px rgba(4, 44, 83, 0.22);
  color: #042C53;
  font-family: Georgia, "Times New Roman", serif;
}
.jm-email-modal-box h3 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}
.jm-email-modal-box p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.55;
  color: #2a4058;
}
.jm-email-modal-meta {
  font-size: 14px !important;
}
.jm-email-modal-note {
  font-size: 13px !important;
  color: #5A6B7A !important;
}
.jm-email-modal-close {
  display: inline-block;
  margin-top: 14px;
  border: 0;
  border-radius: 8px;
  padding: 11px 18px;
  background: #042C53;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.jm-email-modal-close:hover {
  background: #0a3d6e;
}
