/* ============================================================================
   508 Ministry Shared Social Post Card Stylesheet
   Shared between /social/ (feed variant) and /outreach-agent/#earn-credits (catalog variant).
   Self-hosted Cormorant + Figtree fonts. Supports Light & Dark modes cleanly.
   ============================================================================ */

.post-card[data-post-component="m508-social-post-card"] {
  box-sizing: border-box;
  min-width: 0;
}

.post-card[data-post-component="m508-social-post-card"] *,
.post-card[data-post-component="m508-social-post-card"] *::before,
.post-card[data-post-component="m508-social-post-card"] *::after {
  box-sizing: border-box;
}

/* ============================================================================
   CATALOG / ROYALTIES GRID VARIANT (.post-card--catalog)
   Tuned for 5-up desktop (1440px, ~174px per card with expanded sidebar)
   and 1-up mobile (390px), with Light + Dark mode contrast.
   ============================================================================ */
.post-card.post-card--catalog {
  background: #FFFFFF;
  border: 1px solid #CFE1F4;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: #0E203D;
  box-shadow: 0 6px 18px rgba(14, 34, 68, 0.06);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  font-family: 'Figtree', system-ui, -apple-system, sans-serif;
}

.post-card.post-card--catalog:hover,
.post-card.post-card--catalog:focus-within {
  transform: translateY(-2px);
  border-color: #84B8F0;
  box-shadow: 0 12px 26px rgba(14, 34, 68, 0.12);
}

.post-card.post-card--catalog:focus-visible {
  outline: 2.5px solid #2B84EB;
  outline-offset: 2px;
}

/* Clickable Media Stage */
.post-card--catalog .spc-media {
  position: relative;
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  aspect-ratio: auto;
  min-height: 118px;
  background: linear-gradient(180deg, #F5F8FC 0%, #EAF2FB 100%);
  overflow: hidden;
  flex-shrink: 0;
  cursor: zoom-in;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-card--catalog .spc-media img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  object-position: 50% 15%;
  display: block;
  margin: 0 auto;
  transition: transform 0.28s ease;
}

.post-card--catalog:hover .spc-media img {
  transform: scale(1.04);
}

.post-card--catalog .spc-media-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 20, 42, 0.46) 0%, rgba(8, 20, 42, 0) 45%, rgba(8, 20, 42, 0.24) 100%);
}

.post-card--catalog .spc-cat-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(12, 29, 58, 0.88);
  border: 1px solid rgba(246, 216, 132, 0.5);
  color: #F8DF95;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  max-width: 56%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

.post-card--catalog .spc-royalty-chip {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  padding: 2px 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0F6A47 0%, #0A4D33 100%);
  border: 1px solid rgba(167, 243, 208, 0.6);
  color: #ECFDF5;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1.3;
  box-shadow: 0 3px 8px rgba(6, 20, 38, 0.32);
}

.post-card--catalog .spc-offer-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  z-index: 2;
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FBE08B 0%, #EAB743 100%);
  color: #0E203D;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 3px 10px rgba(14, 32, 61, 0.28);
  font-size: 0.57rem;
  font-weight: 900;
  line-height: 1.25;
  max-width: calc(100% - 12px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-card--catalog .spc-expand-pill {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 2;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(8, 22, 46, 0.84);
  border: 1px solid rgba(255, 240, 186, 0.52);
  color: #FFF6D6;
  font-size: 0.55rem;
  font-weight: 800;
  line-height: 1.25;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  pointer-events: none;
}

.post-card--catalog:hover .spc-expand-pill,
.post-card--catalog:focus-within .spc-expand-pill {
  opacity: 1;
  transform: translateY(0);
}

/* Compact Author Row */
.post-card--catalog .spc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 6px 8px 0;
  cursor: pointer;
}

.post-card--catalog .spc-author {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.post-card--catalog .spc-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0C2346;
  border: 1.5px solid #EAB743;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  padding: 2px;
}

.post-card--catalog .spc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.post-card--catalog .spc-handle {
  font-size: 0.65rem;
  font-weight: 800;
  color: #0E203D;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-card--catalog .spc-verified {
  width: 12px;
  height: 12px;
  color: #1D7AE5;
  flex-shrink: 0;
}

/* Body & Ledger */
.post-card--catalog .spc-body {
  padding: 5px 8px 7px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1 1 auto;
  min-width: 0;
  cursor: pointer;
  white-space: normal;
  font-size: inherit;
  color: inherit;
}

.post-card--catalog .spc-title {
  margin: 0;
  font-family: 'Figtree', system-ui, -apple-system, sans-serif;
  font-size: 0.77rem;
  font-weight: 800;
  color: #0E203D;
  line-height: 1.24;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.48em;
}

.post-card--catalog .spc-caption {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.36;
  color: #3B5172;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card--catalog .spc-ledger {
  margin-top: auto;
  background: linear-gradient(180deg, #F5FAFF 0%, #EAF4FE 100%);
  border: 1px solid #CFE3F7;
  border-radius: 9px;
  padding: 5px 5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.post-card--catalog .spc-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
  flex-wrap: wrap;
}

.post-card--catalog .spc-price {
  font-size: 0.82rem;
  font-weight: 900;
  color: #0E203D;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.post-card--catalog .spc-price small {
  font-size: 0.61rem;
  font-weight: 700;
  color: #355078;
}

.post-card--catalog .spc-list-price {
  font-size: 0.64rem;
  font-weight: 700;
  color: #6B7F9E;
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}

.post-card--catalog .spc-earn-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
}

.post-card--catalog .spc-pill {
  border-radius: 6px;
  padding: 3px 2px;
  text-align: center;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
}

.post-card--catalog .spc-pill.is-20 {
  background: #E9FBF2;
  border: 1px solid #A7EBC8;
  color: #0B5E3F;
}

.post-card--catalog .spc-pill.is-25 {
  background: #FEF7DF;
  border: 1px solid #ECD07B;
  color: #855606;
}

.post-card--catalog .spc-pill-lbl {
  font-size: 0.53rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  opacity: 0.9;
  white-space: nowrap;
}

.post-card--catalog .spc-pill-val {
  font-size: 0.59rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  max-width: 100%;
}

@media (min-width: 1560px) {
  .post-card--catalog .spc-pill-val {
    font-size: 0.68rem;
    letter-spacing: -0.015em;
  }
}

/* Action & Per-Platform Share Footer */
.post-card--catalog .spc-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 5px;
  padding: 7px 8px 8px;
  border-top: 1px solid #E3EEF9;
  background: #F9FCFF;
}

.post-card--catalog .spc-plat-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}

.post-card--catalog .spc-plat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 25px;
  min-width: 0;
  border-radius: 7px;
  background: var(--spc-plat-bg, #1E3A5F);
  color: #FFFFFF !important;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 6px rgba(12, 26, 46, 0.14);
  transition: transform 0.13s ease, filter 0.13s ease;
}

.post-card--catalog .spc-plat-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.post-card--catalog .spc-plat-btn svg {
  width: 12px;
  height: 12px;
  display: block;
}

.post-card--catalog .spc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.13s ease, filter 0.13s ease, background 0.13s ease;
  text-decoration: none;
}

.post-card--catalog .spc-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.post-card--catalog .spc-btn-share-all {
  width: 100%;
  padding: 6px 6px;
  border-radius: 8px;
  font-size: 0.69rem;
  background: linear-gradient(135deg, #FBE08B 0%, #E7B43F 100%);
  color: #0E203D;
  border-color: #CFA032;
  box-shadow: 0 4px 12px rgba(212, 168, 75, 0.22);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-card--catalog .spc-btn-share-all svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

.post-card--catalog .spc-subactions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.post-card--catalog .spc-btn-copy,
.post-card--catalog .spc-btn-post {
  width: 100%;
  padding: 5px 3px;
  border-radius: 7px;
  font-size: 0.63rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-card--catalog .spc-btn-copy {
  background: #EAF4FE;
  color: #1558B0;
  border-color: #BCD8F4;
}

.post-card--catalog .spc-btn-post {
  background: #FFFFFF;
  color: #0E203D;
  border-color: #C4DAF2;
}

/* Mobile 1-per-row roomy scale (<= 639px) */
@media (max-width: 639px) {
  .post-card--catalog .spc-cat-tag,
  .post-card--catalog .spc-royalty-chip,
  .post-card--catalog .spc-offer-badge {
    font-size: 0.66rem;
    padding: 3px 9px;
  }
  .post-card--catalog .spc-head {
    padding: 10px 14px 0;
  }
  .post-card--catalog .spc-avatar {
    width: 22px;
    height: 22px;
  }
  .post-card--catalog .spc-handle {
    font-size: 0.8rem;
  }
  .post-card--catalog .spc-body {
    padding: 8px 14px 12px;
    gap: 8px;
  }
  .post-card--catalog .spc-title {
    font-size: 0.98rem;
    min-height: 0;
  }
  .post-card--catalog .spc-caption {
    font-size: 0.86rem;
    -webkit-line-clamp: 3;
  }
  .post-card--catalog .spc-ledger {
    padding: 9px 11px;
    gap: 6px;
  }
  .post-card--catalog .spc-price {
    font-size: 1.04rem;
  }
  .post-card--catalog .spc-pill {
    padding: 6px 8px;
  }
  .post-card--catalog .spc-pill-lbl {
    font-size: 0.68rem;
  }
  .post-card--catalog .spc-pill-val {
    font-size: 0.9rem;
  }
  .post-card--catalog .spc-actions {
    padding: 10px 14px 14px;
    gap: 8px;
  }
  .post-card--catalog .spc-plat-bar {
    gap: 7px;
  }
  .post-card--catalog .spc-plat-btn {
    height: 36px;
    border-radius: 9px;
  }
  .post-card--catalog .spc-plat-btn svg {
    width: 16px;
    height: 16px;
  }
  .post-card--catalog .spc-btn-share-all {
    padding: 10px 12px;
    font-size: 0.86rem;
    border-radius: 10px;
  }
  .post-card--catalog .spc-btn-share-all svg {
    width: 14px;
    height: 14px;
  }
  .post-card--catalog .spc-btn-copy,
  .post-card--catalog .spc-btn-post {
    padding: 9px 8px;
    font-size: 0.8rem;
    border-radius: 9px;
  }
}

/* ============================================================================
   DARK MODE SUPPORT (outreach-agent dashboard when body does NOT have .m508-light-menu)
   Deep Royal Navy & Warm Gold Sanctuary Palette — high contrast & crisp borders.
   ============================================================================ */
body:not(.m508-light-menu) .post-card.post-card--catalog {
  background: linear-gradient(180deg, #132544 0%, #0E1D38 100%);
  border-color: rgba(212, 168, 75, 0.34);
  color: #F4F7FC;
  box-shadow: 0 10px 26px rgba(3, 9, 20, 0.45);
}

body:not(.m508-light-menu) .post-card.post-card--catalog:hover,
body:not(.m508-light-menu) .post-card.post-card--catalog:focus-within {
  border-color: rgba(244, 213, 127, 0.72);
  box-shadow: 0 14px 32px rgba(2, 8, 20, 0.62);
}

body:not(.m508-light-menu) .post-card--catalog .spc-handle,
body:not(.m508-light-menu) .post-card--catalog .spc-title {
  color: #F8FAFE;
}

body:not(.m508-light-menu) .post-card--catalog .spc-verified {
  color: #60A5FA;
}

body:not(.m508-light-menu) .post-card--catalog .spc-caption {
  color: #C7D7EE;
}

body:not(.m508-light-menu) .post-card--catalog .spc-ledger {
  background: rgba(7, 17, 35, 0.72);
  border-color: rgba(212, 168, 75, 0.28);
}

body:not(.m508-light-menu) .post-card--catalog .spc-price {
  color: #FFFFFF;
}

body:not(.m508-light-menu) .post-card--catalog .spc-price small {
  color: #A7C2E6;
}

body:not(.m508-light-menu) .post-card--catalog .spc-list-price {
  color: #8CA3C4;
}

body:not(.m508-light-menu) .post-card--catalog .spc-pill.is-20 {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(110, 231, 183, 0.42);
  color: #86EFAC;
}

body:not(.m508-light-menu) .post-card--catalog .spc-pill.is-25 {
  background: rgba(234, 179, 8, 0.16);
  border-color: rgba(246, 216, 132, 0.46);
  color: #FDE08B;
}

body:not(.m508-light-menu) .post-card--catalog .spc-actions {
  background: rgba(8, 18, 36, 0.72);
  border-top-color: rgba(212, 168, 75, 0.22);
}

body:not(.m508-light-menu) .post-card--catalog .spc-btn-copy {
  background: rgba(59, 130, 246, 0.18);
  color: #BFDBFE;
  border-color: rgba(96, 165, 250, 0.42);
}

body:not(.m508-light-menu) .post-card--catalog .spc-btn-post {
  background: rgba(255, 255, 255, 0.08);
  color: #EEF4FC;
  border-color: rgba(255, 255, 255, 0.22);
}


/* === PAID 508 TRUST LOCKED & UNLOCKED PDF CARD === */
.paid-doc-locked-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1.5px solid rgba(212, 168, 75, 0.48);
  background: linear-gradient(160deg, #FBF7EC 0%, #F1E6CC 100%);
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.paid-doc-locked-wrap .paid-doc-blurred-img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  max-height: 580px;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: blur(5px) saturate(0.92);
  transform: scale(1.05);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.paid-doc-lock-scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 44%, rgba(255, 252, 244, 0.24) 0%, rgba(18, 32, 62, 0.42) 100%);
  pointer-events: none;
}
.paid-doc-lock-card {
  position: absolute;
  z-index: 3;
  width: min(90%, 440px);
  padding: 26px 24px 22px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 253, 247, 0.94) 0%, rgba(250, 244, 229, 0.92) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(212, 168, 75, 0.72);
  box-shadow: 0 20px 50px rgba(15, 26, 52, 0.26), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  text-align: center;
  color: #141C38;
  font-family: "Figtree", system-ui, -apple-system, sans-serif;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.paid-doc-lock-card.is-pulsing {
  animation: paidLockPulse 0.55s ease;
}
@keyframes paidLockPulse {
  0% { transform: scale(1); box-shadow: 0 20px 50px rgba(15, 26, 52, 0.26); }
  45% { transform: scale(1.03); box-shadow: 0 0 0 5px rgba(212, 168, 75, 0.45), 0 24px 56px rgba(15, 26, 52, 0.34); }
  100% { transform: scale(1); box-shadow: 0 20px 50px rgba(15, 26, 52, 0.26); }
}
.paid-doc-lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FFF3CC 0%, #F4D57F 100%);
  border: 1px solid rgba(168, 120, 24, 0.42);
  color: #6B4605;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(180, 130, 28, 0.18);
}
.paid-doc-lock-ico {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #8A5A08;
}
.paid-doc-lock-heading {
  margin: 0 0 9px;
  font-family: "Cormorant", Georgia, serif;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 700;
  color: #141C38;
}
.paid-doc-lock-copy {
  margin: 0 0 18px;
  font-size: 13.8px;
  line-height: 1.5;
  color: #334155;
  font-weight: 500;
}
.paid-doc-lock-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.paid-doc-btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #162447 0%, #243B70 100%);
  color: #FFFDF7 !important;
  border: 1.5px solid rgba(212, 168, 75, 0.78);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(20, 28, 56, 0.24);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.paid-doc-btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(20, 28, 56, 0.32);
}
.paid-doc-btn-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #E8C060 0%, #C89328 100%);
  color: #141C38 !important;
  border: 1.5px solid rgba(154, 108, 18, 0.45);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(180, 130, 28, 0.24);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.paid-doc-btn-start:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(180, 130, 28, 0.34);
}
.paid-doc-lock-note {
  margin-top: 12px;
  font-size: 11.5px;
  color: #64748B;
  font-weight: 600;
}
.paid-doc-unlocked-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #FFFFFF !important;
  border: 1.5px solid rgba(212, 168, 75, 0.62);
  border-radius: 14px;
  overflow: hidden;
}
.paid-doc-unlocked-wrap img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none !important;
  background: #FFFFFF;
}
.paid-doc-unlocked-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 14px;
  background: linear-gradient(90deg, #141C38 0%, #1F3261 100%);
  border-bottom: 1.5px solid rgba(212, 168, 75, 0.65);
  color: #FDE69C;
  font-family: "Figtree", system-ui, sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.paid-doc-unlocked-pill-left {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.paid-doc-unlocked-pill svg {
  width: 14px;
  height: 14px;
  color: #F4D57F;
}
.paid-doc-open-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 13px 15px;
  border-radius: 14px;
  background: linear-gradient(135deg, #FFFDF7 0%, #F7EFE0 100%);
  border: 1.5px solid rgba(212, 168, 75, 0.52);
}
.paid-doc-open-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.paid-doc-open-kicker {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8A5A08;
}
.paid-doc-open-title {
  font-size: 14px;
  font-weight: 700;
  color: #141C38;
}
.paid-doc-open-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.paid-doc-btn-open {
  display: inline-flex;
  align-items: center;
  padding: 9px 15px;
  border-radius: 10px;
  background: linear-gradient(135deg, #162447 0%, #243B70 100%);
  color: #FFFDF7 !important;
  border: 1px solid rgba(212, 168, 75, 0.72);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
}
.paid-doc-btn-dl {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 10px;
  background: #FFFDF7;
  color: #162447 !important;
  border: 1.5px solid rgba(212, 168, 75, 0.72);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
}
.act-btn.act-pdf-locked {
  background: linear-gradient(135deg, #FFF8E1 0%, #F8E8B8 100%);
  border-color: rgba(180, 130, 28, 0.45);
  color: #784D07;
  gap: 5px;
  padding: 7px 11px;
}
.act-btn.act-pdf-locked .pdf-badge-gold {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
@media (max-width: 520px) {
  .paid-doc-locked-wrap { min-height: 410px; }
  .paid-doc-lock-card { width: 93%; padding: 20px 16px 18px; }
  .paid-doc-lock-heading { font-size: 21px; }
  .paid-doc-btn-login, .paid-doc-btn-start { width: 100%; }
}


/* ============================================================================
   GUIDE / FREE-RESOURCE SOCIAL POST VARIANT (.post-card--guide)
   ONE shared component styling for homepage #benefits and /social/ share library.
   Mobile-first target: 390px full-width edge-to-edge editorial prominence,
   natural-aspect cover & media framing (zero cropped heads/faces), clean
   Cormorant + Figtree typography, and full Light + Dark mode support.
   ============================================================================ */
.post-card.post-card--guide {
  flex: 0 0 auto;
  width: 100%;
  margin: 0;
  padding: 0 !important;
  border-radius: 18px;
  background: #FFFFFF !important;
  border: 1.5px solid rgba(212, 168, 75, 0.52) !important;
  box-shadow: 0 14px 34px rgba(13, 30, 58, 0.14);
  overflow: hidden;
  color: #13223D;
  font-family: 'Figtree', system-ui, -apple-system, sans-serif;
  text-align: left;
}

.post-card.post-card--guide.post-card--featured {
  border: 2px solid #D4A84B !important;
  box-shadow: 0 18px 42px rgba(13, 30, 58, 0.2);
}

.post-card--guide .post-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 12px;
  margin-bottom: 0;
  border-bottom: 1px solid #EEF2F7;
  background: linear-gradient(180deg, #FFFDF8 0%, #FFFFFF 100%);
  flex-wrap: wrap;
}

.post-card--guide .post-author {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.post-card--guide .post-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 15%;
  border: 2px solid #D4A84B;
  background: #0D1E3A;
  flex: none;
}

.post-card--guide .post-meta {
  min-width: 0;
}

.post-card--guide .post-name-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.post-card--guide .post-name {
  font-weight: 800;
  font-size: 14.5px;
  color: #0D1E3A;
  line-height: 1.2;
}

.post-card--guide .post-handle {
  font-size: 12.5px;
  color: #5C6F8C;
  font-weight: 600;
}

.post-card--guide .post-sub {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #647692;
  margin-top: 2px;
  flex-wrap: wrap;
}

.post-card--guide .post-head-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.post-card--guide .cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #FFF4D4;
  color: #7D5506;
  border: 1px solid #E5C158;
  white-space: nowrap;
}

.post-card--guide .spc-guide-copy {
  padding: 16px 18px 14px;
}

.post-card--guide .spc-guide-eyebrow {
  margin: 0 0 6px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9A6B0E;
}

.post-card--guide .spc-guide-title {
  margin: 0 0 10px;
  font-family: 'Cormorant', Georgia, serif;
  font-size: 28px;
  line-height: 1.13;
  font-weight: 700;
  color: #0D1E3A;
}

.post-card--guide .spc-guide-standfirst {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #2B3D5B;
}

.post-card.post-card--guide .post-media.spc-guide-media {
  position: relative;
  width: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: linear-gradient(155deg, #0B1932 0%, #152D54 55%, #0D1E3A 100%) !important;
  cursor: zoom-in;
  overflow: hidden;
  border-left: 0 !important;
  border-right: 0 !important;
  border-top: 1px solid rgba(212, 168, 75, 0.28) !important;
  border-bottom: 1px solid rgba(212, 168, 75, 0.28) !important;
}

.post-card.post-card--guide .post-media.spc-guide-media--cover {
  padding: 16px 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.post-card.post-card--guide .post-media.spc-guide-media--cover .spc-guide-img {
  width: 100% !important;
  max-width: 380px !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: 50% 15% !important;
  border-radius: 11px;
  border: 2px solid rgba(244, 213, 127, 0.72);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.44);
  background: #0C1A2E;
  display: block !important;
}

.post-card.post-card--guide .post-media.spc-guide-media--photo {
  padding: 0 !important;
}

.post-card.post-card--guide .post-media.spc-guide-media--photo .spc-guide-img {
  width: 100% !important;
  max-width: 100% !important;
  height: 250px !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: 50% 35% !important;
  display: block !important;
}

.post-card.post-card--guide .post-media.spc-guide-media--natural {
  padding: 0 !important;
}

.post-card.post-card--guide .post-media.spc-guide-media--natural .spc-guide-img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: 50% 15% !important;
  display: block !important;
}

.post-card--guide .spc-guide-media-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(11, 25, 50, 0.88);
  border: 1px solid rgba(244, 213, 127, 0.68);
  color: #F7DD8D;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.post-card--guide .spc-guide-cta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 13px 16px 12px;
  background: #FAF8F2;
  border-bottom: 1px solid #ECE6D8;
}

.post-card--guide .spc-guide-pdf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 220px;
  min-height: 48px;
  padding: 11px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #F5D680 0%, #D4A84B 100%);
  color: #0D1E3A !important;
  font-size: 14.5px;
  font-weight: 800;
  text-decoration: none !important;
  border: 1px solid #C2912F;
  box-shadow: 0 8px 20px rgba(212, 168, 75, 0.28);
  transition: transform 0.14s ease, filter 0.14s ease;
  text-align: center;
  line-height: 1.25;
}

.post-card--guide .spc-guide-pdf-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.post-card--guide .spc-guide-pdf-btn.is-locked {
  background: linear-gradient(135deg, #132544 0%, #1E3A6E 100%);
  color: #F9E29B !important;
  border-color: #D4A84B;
}

.post-card--guide .spc-guide-pdf-btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.post-card--guide .spc-guide-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 11px 14px 13px;
  background: #FFFFFF;
  border-top: 0;
}

.post-card--guide .spc-guide-actions-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.post-card--guide .act-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  min-width: 42px;
  padding: 7px 11px;
  border-radius: 10px;
  border: 1px solid #DCE4F0;
  background: #F7FAFD;
  color: #1D3153;
  font-family: 'Figtree', system-ui, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.post-card--guide .act-btn:hover {
  background: #EDF3FA;
  border-color: #B7C8E2;
}

.post-card--guide .act-btn:focus-visible {
  outline: 2.5px solid #D4A84B;
  outline-offset: 2px;
}

.post-card--guide .act-btn svg {
  width: 17px;
  height: 17px;
  flex: none;
  stroke-width: 2;
}

.post-card--guide .act-btn.is-active,
.post-card--guide .act-btn.saved {
  background: #FFF4D4;
  border-color: #D4A84B;
  color: #7A5205;
}

.post-card--guide .act-btn.share-main {
  background: linear-gradient(135deg, #0D1E3A 0%, #173461 100%);
  color: #F7DF92 !important;
  border-color: #D4A84B;
  padding: 7px 15px;
  font-weight: 800;
  box-shadow: 0 5px 14px rgba(13, 30, 58, 0.22);
}

.post-card--guide .act-btn.share-main:hover {
  background: linear-gradient(135deg, #142B52 0%, #1E427A 100%);
  color: #FFF4C8 !important;
}

.post-card--guide .spc-guide-sh-cnt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(247, 223, 146, 0.2);
  color: #FFF4C8;
  font-size: 11.5px;
  font-weight: 800;
}

.post-card--guide .act-btn.is-popping {
  transform: scale(1.08);
}

.spc-guide-pop {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #0D1E3A;
  color: #F8DF95;
  border: 1px solid #D4A84B;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Mobile 390px primary design target: TRUE full-width edge-to-edge social posts */
@media (max-width: 640px) {
  .post-card.post-card--guide {
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
  }
  .post-card--guide .post-head {
    padding: 14px 16px 12px;
    row-gap: 8px;
  }
  .post-card--guide .post-author {
    flex: 1 1 100%;
  }
  .post-card--guide .spc-guide-copy {
    padding: 16px 16px 14px;
  }
  .post-card--guide .spc-guide-title {
    font-size: 30px;
    line-height: 1.12;
  }
  .post-card--guide .spc-guide-standfirst {
    font-size: 15.8px;
    line-height: 1.56;
  }
  .post-card.post-card--guide .post-media.spc-guide-media--cover {
    padding: 14px 12px !important;
  }
  .post-card.post-card--guide .post-media.spc-guide-media--cover .spc-guide-img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
  .post-card.post-card--guide .post-media.spc-guide-media--photo .spc-guide-img {
    height: 248px !important;
  }
  .post-card--guide .spc-guide-cta-bar {
    padding: 14px 16px 12px;
  }
  .post-card--guide .spc-guide-pdf-btn {
    width: 100%;
    min-height: 50px;
    font-size: 15.5px;
    padding: 12px 16px;
  }
  .post-card--guide .spc-guide-actions {
    padding: 12px 14px 14px;
  }
  .post-card--guide .act-btn {
    min-height: 42px;
    padding: 7px 11px;
    font-size: 13.5px;
  }
  .post-card--guide .act-btn.share-main {
    flex: 1 1 100%;
    min-height: 46px;
    font-size: 15px;
  }
}

/* Dark mode support: explicit [data-theme="dark"] / body.dark AND OS prefers-color-scheme */
html[data-theme="dark"] .post-card.post-card--guide,
[data-theme="dark"] .post-card.post-card--guide,
body.dark .post-card.post-card--guide {
  background: #101D36 !important;
  color: #F4EFE4 !important;
  border-color: rgba(244, 213, 127, 0.5) !important;
}
html[data-theme="dark"] .post-card--guide .post-head,
[data-theme="dark"] .post-card--guide .post-head,
body.dark .post-card--guide .post-head {
  background: #132240 !important;
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}
html[data-theme="dark"] .post-card--guide .post-name,
html[data-theme="dark"] .post-card--guide .spc-guide-title,
[data-theme="dark"] .post-card--guide .post-name,
[data-theme="dark"] .post-card--guide .spc-guide-title,
body.dark .post-card--guide .post-name,
body.dark .post-card--guide .spc-guide-title {
  color: #FFFDF8 !important;
}
html[data-theme="dark"] .post-card--guide .post-handle,
html[data-theme="dark"] .post-card--guide .post-sub,
[data-theme="dark"] .post-card--guide .post-handle,
[data-theme="dark"] .post-card--guide .post-sub,
body.dark .post-card--guide .post-handle,
body.dark .post-card--guide .post-sub {
  color: #B8C9E2 !important;
}
html[data-theme="dark"] .post-card--guide .spc-guide-eyebrow,
[data-theme="dark"] .post-card--guide .spc-guide-eyebrow,
body.dark .post-card--guide .spc-guide-eyebrow {
  color: #F5D47A !important;
}
html[data-theme="dark"] .post-card--guide .spc-guide-standfirst,
[data-theme="dark"] .post-card--guide .spc-guide-standfirst,
body.dark .post-card--guide .spc-guide-standfirst {
  color: #D7E2F2 !important;
}
html[data-theme="dark"] .post-card--guide .spc-guide-cta-bar,
html[data-theme="dark"] .post-card--guide .spc-guide-actions,
[data-theme="dark"] .post-card--guide .spc-guide-cta-bar,
[data-theme="dark"] .post-card--guide .spc-guide-actions,
body.dark .post-card--guide .spc-guide-cta-bar,
body.dark .post-card--guide .spc-guide-actions {
  background: #0D192F !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
html[data-theme="dark"] .post-card--guide .act-btn,
[data-theme="dark"] .post-card--guide .act-btn,
body.dark .post-card--guide .act-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #EAF0FA;
  border-color: rgba(255, 255, 255, 0.18);
}
html[data-theme="dark"] .post-card--guide .act-btn.is-active,
html[data-theme="dark"] .post-card--guide .act-btn.saved,
[data-theme="dark"] .post-card--guide .act-btn.is-active,
[data-theme="dark"] .post-card--guide .act-btn.saved,
body.dark .post-card--guide .act-btn.is-active,
body.dark .post-card--guide .act-btn.saved {
  background: rgba(212, 168, 75, 0.24);
  border-color: #E8C36A;
  color: #FFF0BE;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .post-card.post-card--guide {
    background: #101D36 !important;
    color: #F4EFE4 !important;
    border-color: rgba(244, 213, 127, 0.5) !important;
  }
  :root:not([data-theme="light"]) .post-card--guide .post-head {
    background: #132240 !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
  }
  :root:not([data-theme="light"]) .post-card--guide .post-name,
  :root:not([data-theme="light"]) .post-card--guide .spc-guide-title {
    color: #FFFDF8 !important;
  }
  :root:not([data-theme="light"]) .post-card--guide .post-handle,
  :root:not([data-theme="light"]) .post-card--guide .post-sub {
    color: #B8C9E2 !important;
  }
  :root:not([data-theme="light"]) .post-card--guide .spc-guide-eyebrow {
    color: #F5D47A !important;
  }
  :root:not([data-theme="light"]) .post-card--guide .spc-guide-standfirst {
    color: #D7E2F2 !important;
  }
  :root:not([data-theme="light"]) .post-card--guide .spc-guide-cta-bar,
  :root:not([data-theme="light"]) .post-card--guide .spc-guide-actions {
    background: #0D192F !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
  }
  :root:not([data-theme="light"]) .post-card--guide .act-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #EAF0FA;
    border-color: rgba(255, 255, 255, 0.18);
  }
  :root:not([data-theme="light"]) .post-card--guide .act-btn.is-active,
  :root:not([data-theme="light"]) .post-card--guide .act-btn.saved {
    background: rgba(212, 168, 75, 0.24);
    border-color: #E8C36A;
    color: #FFF0BE;
  }
}

/* === 508 GOLD CTA BUTTON SYSTEM (2026-11-25) === */
.deep-link-row {
  background: linear-gradient(135deg, #FFFDF7 0%, #F4F9FF 100%) !important;
  border: 1.5px solid #E5D4A1 !important;
  border-radius: 14px !important;
  padding: 11px 14px !important;
}
.deep-link-btn,
.spc-cta-btn,
.post-deep-btn,
.cat-attach-link,
.promo-go-btn,
.cmv-cta-btn,
a.deep-link-btn,
a.cat-attach-link,
a.promo-go-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 9px 18px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #FBE08C 0%, #EAB435 100%) !important;
  color: #0B1B3A !important;
  border: 1.5px solid #D4A12A !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow: 0 6px 18px rgba(212, 168, 75, 0.28) !important;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease !important;
}
.deep-link-btn:hover,
.spc-cta-btn:hover,
.post-deep-btn:hover,
.cat-attach-link:hover,
.promo-go-btn:hover,
.cmv-cta-btn:hover,
a.deep-link-btn:hover,
a.cat-attach-link:hover,
a.promo-go-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 10px 24px rgba(212, 168, 75, 0.44) !important;
  filter: brightness(1.04) !important;
  color: #0B1B3A !important;
}
.deep-link-btn:active,
.spc-cta-btn:active,
.post-deep-btn:active,
.cat-attach-link:active,
.promo-go-btn:active {
  transform: translateY(0) scale(0.985) !important;
}
/* === END 508 GOLD CTA BUTTON SYSTEM === */

/* mg-20261126 */
@media (max-width: 900px) {
  .post-card--guide .spc-guide-eyebrow,
  .post-card--guide .post-sub,
  .post-card--guide .post-sub span,
  .post-card--guide .post-handle,
  .post-card--guide .cat-pill,
  .post-card--guide .act-btn,
  .post-card--guide .spc-guide-media-badge,
  .post-card--catalog .spc-caption,
  .post-card--catalog .spc-handle,
  .paid-doc-lock-badge,
  .paid-doc-lock-note {
    font-size: 14px !important;
  }
}
/* /mg-20261126 */
