/* ===== css/readers.css =====
   Shared by the home page and My Readings:
     .ob-*  the "first time here" offer banner   (inc/offer-banner.inc)
     .rs-*  the reader cards                      (inc/readers-section.inc)
   Colours use the site variables, with the same values as a fallback. */

/* ───────── Offer banner (the one bright element on the page) ───────── */
.ob {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 18px;
  margin: 0 0 22px;
  padding: 14px 16px;
  border-radius: 18px;
  color: #1b0f2a;
  border: 2px solid rgba(255, 238, 178, 0.95);
  /* soft light across the top, then gold */
  background:
    radial-gradient(ellipse 85% 130% at 50% -15%, rgba(255, 243, 200, 0.85) 0%, rgba(255, 243, 200, 0) 62%),
    linear-gradient(180deg, #f7d067 0%, #e4a539 100%);
  /* bright rim, gold glow around the edge, soft shadow underneath */
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.6),
    inset 0 -3px 10px rgba(160, 100, 10, 0.35),
    0 0 0 1px rgba(214, 162, 74, 0.9),
    0 0 26px rgba(242, 193, 78, 0.45),
    0 10px 28px rgba(0, 0, 0, 0.45);
}

.ob-photo {
  flex: 0 0 190px;
  overflow: hidden;
  border-radius: 14px;
  border: 2px solid rgba(255, 238, 178, 0.9);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.ob-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ob-main {
  flex: 1;
  min-width: 0;
}

.ob h2 {
  margin: 0 0 4px;
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 800;
  font-variant: normal;
  text-transform: none;
  letter-spacing: 0;
  font-size: clamp(1.35rem, 2.7vw, 1.85rem);
  line-height: 1.15;
  color: #1b0f2a;
}

.ob-sub {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.4;
}

.ob-or {
  display: inline-block;
  margin: 0 0.3em;
  padding: 0 0.5em;
  border-radius: 999px;
  background: #1b0f2a;
  color: #f2c14e;
  font-size: 0.75rem;
  letter-spacing: 1px;
}

.ob-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.ob-step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ob-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #1b0f2a;
  color: #f2c14e;
  font-weight: 700;
  font-size: 0.9rem;
}

.ob-step i { flex: none; font-size: 1.5rem; }

.ob-step .ob-text {
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.2;
}

.ob-arrow { flex: none; font-size: 1.1rem; opacity: 0.7; }

.ob-bottom {
  display: flex;
  align-items: center;
  gap: 10px 12px;
  margin-top: 8px;
}

.ob-note {
  flex: 1;
  margin: 0;
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.45);
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.ob-cta,
.ob-cta:visited {
  flex: none;
  display: inline-block;
  padding: 9px 18px;
  border-radius: 10px;
  background: #1b0f2a;
  color: #f2c14e;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.ob-cta:hover,
.ob-cta:focus {
  color: #f2c14e;
  opacity: 0.9;
}

/* Compact version for members who have not used the offer yet */
.ob.ob-compact {
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.ob.ob-compact h2 { font-size: clamp(1.15rem, 2.2vw, 1.5rem); }
.ob.ob-compact .ob-sub { margin: 0; }

/* ───────── Reader cards ───────── */
.rs-heading {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  color: var(--gold, #d6a24a);
  margin: 4px 0 14px;
}

.rs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.rs-card {
  display: flex;
  gap: 14px;
  padding: 10px;
  background: var(--bg-card, #1d1033);
  border: 1px solid rgba(214, 162, 74, 0.35);
  border-radius: 14px;
}

.rs-photo {
  position: relative;
  flex: 0 0 112px;
  align-self: stretch;
  min-height: 150px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(135deg, #2b1750, #12091f);
}

.rs-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;   /* keeps faces in frame in tall portraits */
}

.rs-initial {
  font-family: 'Cinzel', serif;
  font-size: 3rem;
  color: var(--gold, #d6a24a);
  opacity: 0.8;
}

.rs-card.is-offline .rs-photo img { filter: grayscale(0.35); }

.rs-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.rs-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.rs-name {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  line-height: 1.15;
  color: var(--gold, #d6a24a);
}

.rs-tag {
  padding: 2px 9px;
  border: 1px solid rgba(214, 162, 74, 0.6);
  border-radius: 999px;
  background: rgba(214, 162, 74, 0.12);
  color: #f3cb70;
  font-size: 0.72rem;
  white-space: nowrap;
}

.rs-blurb {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
  color: #eee7f2;
}

.rs-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
  line-height: 1.25;
}

.rs-pill .dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8a8397;
}

.rs-pill.green { border-color: rgba(60, 170, 100, 0.6); background: rgba(60, 170, 100, 0.12); }
.rs-pill.green .dot { background: #3cb371; }
.rs-pill.gold .dot { background: var(--gold, #d6a24a); }
.rs-pill.blue .dot { background: #6f8fe0; }
.rs-pill.purple .dot { background: #a990bd; }

.rs-foot {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.rs-num,
.rs-num:visited {
  color: var(--gold, #d6a24a);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  white-space: nowrap;
}

.rs-num:hover,
.rs-num:focus { color: var(--gold, #d6a24a); opacity: 0.85; }

.rs-btn,
.rs-btn:visited {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--gold, #d6a24a);
  color: #12091f;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

/* the site's general link-hover rule turns link text gold: keep it dark on the gold button */
.rs-btn:hover,
.rs-btn:focus { color: #12091f; opacity: 0.9; }

/* "Coming soon" is a label, not a button */
.rs-btn.soon {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cdbfdc;
  cursor: default;
}

@media (max-width: 900px) {
  .rs-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .ob { padding: 14px; }
  .ob-photo { display: none; }                 /* keep the readers near the top on phones */
  .ob-steps { flex-direction: column; align-items: stretch; }
  .ob-arrow { display: none; }
  .ob-bottom { flex-direction: column; align-items: stretch; }
  .ob-cta { text-align: center; }
}

@media (max-width: 480px) {
  .rs-card { gap: 10px; padding: 8px; }
  .rs-photo { flex-basis: 84px; min-height: 130px; }
  .rs-initial { font-size: 2.2rem; }
  .rs-name { font-size: 1.1rem; }
  .rs-blurb { font-size: 0.85rem; }
  .rs-num { font-size: 1rem; }
}
