/* Release Prayers v2 — front-end & admin */

.release-prayers-admin .release-prayers-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}

.release-prayers-admin .release-prayers-stat-card {
  background: #fff;
  border: 1px solid #c3c4c7;
  border-radius: 4px;
  padding: 1rem 1.25rem;
  min-width: 140px;
}

.release-prayers-admin .release-prayers-stat-card strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1.2;
}

.release-prayers-admin .release-prayers-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.release-prayers-shortcodes .release-prayers-shortcode-builder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (max-width: 782px) {
  .release-prayers-shortcodes .release-prayers-shortcode-builder {
    grid-template-columns: 1fr;
  }
}

.release-prayers-shortcodes .rp-shortcode-preview {
  background: #fbfaf8;
  border: 1px solid #d4d8dd;
  border-radius: 6px;
  padding: 1rem;
  min-height: 4rem;
}

.release-prayers-shortcodes .rp-shortcode-preview.is-loading {
  opacity: 0.7;
}

.release-prayers-shortcodes .rp-shortcode-preview-note {
  margin-top: 0.5rem;
  max-width: 36rem;
}

.release-prayers-shortcodes .rp-shortcode-preview .rp-preview-placeholder,
.release-prayers-shortcodes .rp-shortcode-preview .rp-preview-error {
  color: #5f6b78;
  font-style: italic;
}

.release-prayers-shortcodes .rp-shortcode-preview .rp-preview-error {
  color: #b32d2e;
}

.release-prayers-shortcodes .rp-shortcode-preview .total-prayers {
  font-size: 1.25rem;
  font-weight: 700;
}

.release-prayers-shortcodes .rp-copy-feedback {
  margin-left: 0.5rem;
  color: #00a32a;
}

.release-prayers-shortcodes .rp-shortcode-subnav {
  margin: 1em 0 0.25em;
  float: none;
}

.release-prayers-shortcodes .rp-shortcode-subnav-desc {
  clear: both;
  margin-top: 0.5em;
}

/* ==========================================================================
   VOICE globe page — layout, panels, country detail (fonts inherit Elementor)
   ========================================================================== */

body.release-globe-page,
body.page-template-page-globe {
  --vpc-page: #eef2f7;
  --vpc-white: #ffffff;
  --vpc-panel-top: #e4e8f6;
  --vpc-panel-bot: #dde2f3;
  --vpc-navy: #16365f;
  --vpc-red: #d6232b;
  --vpc-red-hover: #b51d24;
  --vpc-teal: #3d7c7a;
  --vpc-teal-hover: #2f6361;
  --vpc-support: #b5732a;
  --vpc-monitor: #e0c39c;
  --vpc-ink: #1f242e;
  --vpc-body: #44506a;
  --vpc-body-soft: #56607a;
  --vpc-muted: #8a93a6;
  --vpc-meta: #9aa3b8;
  --vpc-border: #e6e6e6;
  --vpc-accent-warm: #cbb994;
  --vpc-r-panel: 14px;
  --vpc-r-card: 10px;
  --vpc-r-sharp: 2px;
  --vpc-r-pill: 20px;
  background-color: var(--vpc-page);
}

/* --- Globe shortcode: legend + reset toolbar only (map canvas uses default Earth styling) --- */
.release-globe-stage {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.vpc-globe-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 12px;
}

.vpc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.vpc-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--vpc-body-soft);
}

.vpc-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.vpc-legend-dot.support {
  background: var(--vpc-support);
}

.vpc-legend-dot.monitor {
  background: var(--vpc-monitor);
}

.vpc-reset,
.release-globe-reset {
  display: none;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #e0e4ee;
  border-radius: var(--vpc-r-pill);
  padding: 7px 14px;
  cursor: pointer;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--vpc-muted);
  margin: 0;
  line-height: 1.2;
}

.vpc-reset.is-visible,
.release-globe-reset.is-visible,
.vpc-reset[style*="display: block"],
.vpc-reset[style*="display: inline"],
.release-globe-reset[style*="display: block"],
.release-globe-reset[style*="display: inline"] {
  display: inline-flex !important;
}

#globe-wrapper,
.release-globe-wrapper {
  width: 100%;
  min-height: clamp(320px, 52vw, 560px);
  position: relative;
}

/* --- Shortcode 2: Prayer card --- */
#prayer-information.vpc-prayer,
.vpc-prayer.country-information {
  background: var(--vpc-white);
  border: 1px solid var(--vpc-border);
  border-top: 3px solid var(--vpc-accent-warm);
  border-radius: var(--vpc-r-sharp);
  padding: 30px 32px;
}

#prayer-information .vpc-prayer-default,
#prayer-information .title-instruction.is-default {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

#prayer-information .vpc-prayer-default h2,
#prayer-information .title-instruction.is-default h2 {
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--vpc-ink);
  margin: 0 0 0.75rem;
}

#prayer-information .vpc-prayer-default p,
#prayer-information .title-instruction.is-default p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--vpc-body-soft);
  margin: 0;
}

.vpc-prayer-title {
  font-weight: 800;
  font-size: 24px;
  line-height: 1.15;
  color: var(--vpc-ink);
  margin: 0 0 16px;
}

.vpc-prayer-body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--vpc-body-soft);
  margin: 0 0 24px;
}

.vpc-heart {
  color: var(--vpc-support);
  font-size: 18px;
  vertical-align: -2px;
}

.vpc-count {
  font-weight: 800;
  color: var(--vpc-ink);
}

.vpc-btn-red,
a.vpc-btn-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--vpc-red);
  color: #fff !important;
  border: none;
  border-radius: 0;
  padding: 14px 26px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.15s ease;
}

.vpc-btn-red:hover,
a.vpc-btn-red:hover,
.vpc-btn-red:focus,
a.vpc-btn-red:focus {
  background: var(--vpc-red-hover);
  color: #fff !important;
}

.vpc-prayer .make-prayer-button.grayed-button,
.vpc-prayer .vpc-btn-red.grayed-button {
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  background: #f3f5fa !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 13px 20px !important;
  color: #2f6361 !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  opacity: 1 !important;
  cursor: default !important;
}

.vpc-prayer .make-prayer-button.grayed-button::before {
  content: "\2713";
  color: var(--vpc-teal);
  font-size: 16px;
}

/* --- Shortcode 3: Country info panel --- */
#globe-information.vpc-country {
  background: linear-gradient(180deg, var(--vpc-panel-top) 0%, var(--vpc-panel-bot) 100%);
  border-radius: var(--vpc-r-panel);
  box-shadow: 0 6px 30px rgba(22, 54, 95, 0.09);
  overflow: hidden;
}

.vpc-country-scroll {
  height: 660px;
  overflow-y: auto;
  padding: 28px 30px 34px;
  scrollbar-width: thin;
  scrollbar-color: #b9c2dd transparent;
}

@media (max-width: 960px) {
  .vpc-country-scroll {
    height: 560px;
  }
}

.vpc-country-scroll::-webkit-scrollbar {
  width: 9px;
}

.vpc-country-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.vpc-country-scroll::-webkit-scrollbar-thumb {
  background: #b9c2dd;
  border-radius: 20px;
  border: 2px solid transparent;
  background-clip: content-box;
}

.vpc-country-scroll::-webkit-scrollbar-thumb:hover {
  background: #95a2c6;
  background-clip: content-box;
}

#globe-information .vpc-country-default,
#globe-information .country-information.is-default {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  max-height: none;
}

#globe-information .vpc-country-default h2,
#globe-information .country-information.is-default h2 {
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--vpc-red);
  margin: 0 0 0.75rem;
  line-height: 1.1;
}

#globe-information .vpc-country-default p,
#globe-information .country-information.is-default p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--vpc-body);
  margin: 0;
}

.vpc-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: var(--vpc-r-pill);
  padding: 5px 12px;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.vpc-status i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.vpc-status--support {
  color: #8a5418;
}

.vpc-status--support i {
  background: var(--vpc-support);
}

.vpc-status--monitor {
  color: var(--vpc-body-soft);
}

.vpc-status--monitor i {
  background: var(--vpc-monitor);
}

.vpc-country-title {
  font-weight: 800;
  font-size: 32px;
  color: var(--vpc-red);
  margin: 0 0 14px;
  line-height: 1;
}

.vpc-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--vpc-body);
  margin: 0 0 22px;
}

.vpc-discover {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--vpc-r-card);
  padding: 20px 22px;
  margin-bottom: 26px;
}

.vpc-discover-label {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--vpc-navy);
  margin-bottom: 8px;
}

.vpc-discover-text {
  font-size: 14px;
  color: var(--vpc-body-soft);
  margin: 0 0 16px;
}

.vpc-section-label {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--vpc-teal);
  margin-bottom: 14px;
}

.vpc-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.vpc-news {
  background: #fff;
  border-radius: var(--vpc-r-card);
  padding: 16px 18px;
  transition: transform 0.12s ease;
}

.vpc-news:hover {
  transform: translateY(-2px);
}

.vpc-news a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.vpc-news-date {
  font-size: 11px;
  font-weight: 700;
  color: var(--vpc-meta);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.vpc-news-title {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  color: var(--vpc-navy);
  margin: 0 0 7px;
}

.vpc-news-excerpt {
  font-size: 13px;
  line-height: 1.55;
  color: var(--vpc-body-soft);
  margin: 0;
}

.vpc-prisoner {
  background: #fff;
  border-radius: var(--vpc-r-card);
  padding: 14px 16px;
}

.vpc-prisoner a {
  display: flex;
  gap: 14px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.vpc-avatar {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: #aeb6c9;
  background: repeating-linear-gradient(
    45deg,
    #e7ebf4,
    #e7ebf4 5px,
    #dde2ee 5px,
    #dde2ee 10px
  );
}

.vpc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vpc-prisoner-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--vpc-navy);
  margin-bottom: 3px;
}

.vpc-prisoner-sentence {
  font-size: 12px;
  color: var(--vpc-meta);
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.vpc-prisoner-detail {
  font-size: 13px;
  line-height: 1.5;
  color: var(--vpc-body-soft);
  margin: 0;
}

.vpc-campaign {
  background: var(--vpc-navy);
  border-radius: var(--vpc-r-card);
  padding: 18px 20px;
  color: #fff;
}

.vpc-campaign-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
}

.vpc-campaign-blurb {
  font-size: 13px;
  line-height: 1.55;
  color: #c5cfe2;
  margin: 0 0 14px;
}

.vpc-campaign-blurb p:last-child {
  margin-bottom: 0;
}

.vpc-btn-teal,
a.vpc-btn-teal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--vpc-teal);
  color: #fff !important;
  border: none;
  border-radius: 5px;
  padding: 11px 20px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.15s ease;
}

.vpc-btn-teal:hover,
a.vpc-btn-teal:hover,
.vpc-btn-teal:focus,
a.vpc-btn-teal:focus {
  background: var(--vpc-teal-hover);
  color: #fff !important;
}

.vpc-campaign .vpc-btn-red {
  margin-top: 4px;
}

/* Legacy combined panels layout */
.release-globe-panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 28px;
  align-items: start;
}

@media (max-width: 960px) {
  .release-globe-panels {
    grid-template-columns: 1fr;
  }
}

.total-prayers.has-updated {
  transition: color 0.3s ease;
}

/* Embedded globe block (non-page) */
.block-globe .country-information {
  background: var(--vpc-white);
  border-radius: var(--vpc-r-card);
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(22, 54, 95, 0.06);
}
/* ==========================================================================
   Buttons — Release brand
   ========================================================================== */

:root {
  --rp-color-red: #ed1c24;
  --rp-color-red-hover: #d5181f;
  --rp-color-teal: #478c99;
  --rp-color-teal-hover: #3d6d78;
  --rp-color-navy: #16365f;
  --rp-btn-radius: 6px;
  --rp-btn-weight: 700;
  --rp-btn-font-size: 0.95rem;
  --rp-btn-padding-y: 0.75rem;
  --rp-btn-padding-x: 1.5rem;
}

a.release-pray-btn,
a[data-release-pray],
a.make-prayer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: var(--rp-btn-padding-y) var(--rp-btn-padding-x);
  background: var(--rp-color-red) !important;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: var(--rp-btn-radius) !important;
  border: 1px solid var(--rp-color-red) !important;
  font-weight: var(--rp-btn-weight);
  font-size: var(--rp-btn-font-size);
  line-height: 1.25;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  -webkit-font-smoothing: antialiased;
}

a.release-pray-btn:hover,
a.release-pray-btn:focus,
a[data-release-pray]:hover,
a[data-release-pray]:focus,
a.make-prayer-button:hover,
a.make-prayer-button:focus {
  background: var(--rp-color-red-hover) !important;
  border-color: var(--rp-color-red-hover) !important;
  color: #fff !important;
}

a.release-pray-btn:focus-visible,
a[data-release-pray]:focus-visible,
a.make-prayer-button:focus-visible {
  outline: 2px solid var(--rp-color-red-hover);
  outline-offset: 2px;
}

/* Theme legacy classes — keep alert red when combined with .button.primary etc. */
a.release-pray-btn.button,
a.release-pray-btn.button.primary,
a[data-release-pray].button,
a[data-release-pray].button.primary,
a.make-prayer-button.button,
a.make-prayer-button.button.primary {
  background: var(--rp-color-red) !important;
  border-color: var(--rp-color-red) !important;
  color: #fff !important;
}

a.release-pray-btn.button:hover,
a.release-pray-btn.button.primary:hover,
a[data-release-pray].button:hover,
a[data-release-pray].button.primary:hover,
a.make-prayer-button.button:hover,
a.make-prayer-button.button.primary:hover {
  background: var(--rp-color-red-hover) !important;
  border-color: var(--rp-color-red-hover) !important;
}

/* Brand guide .btn alias */
a.release-pray-btn.btn,
a[data-release-pray].btn,
a.make-prayer-button.btn {
  /* inherits base */
}

/* Small */
a.release-pray-btn.small,
a.small.release-pray-btn,
a[data-release-pray].small,
a.small[data-release-pray],
a.make-prayer-button.small,
a.small.make-prayer-button,
a.release-pray-btn.button.small,
a[data-release-pray].button.small,
a.make-prayer-button.button.small {
  --rp-btn-padding-y: 0.5rem;
  --rp-btn-padding-x: 1rem;
  --rp-btn-font-size: 0.8125rem;
}

/* Medium (explicit) */
a.release-pray-btn.medium,
a.medium.release-pray-btn,
a[data-release-pray].medium,
a.make-prayer-button.medium {
  --rp-btn-padding-y: 0.75rem;
  --rp-btn-padding-x: 1.5rem;
  --rp-btn-font-size: 0.95rem;
}

/* Large */
a.release-pray-btn.large,
a.large.release-pray-btn,
a[data-release-pray].large,
a.large[data-release-pray],
a.make-prayer-button.large,
a.large.make-prayer-button,
a.release-pray-btn.button.large,
a[data-release-pray].button.large,
a.make-prayer-button.button.large {
  --rp-btn-padding-y: 0.875rem;
  --rp-btn-padding-x: 1.75rem;
  --rp-btn-font-size: 1.0625rem;
}

/* Thank-you state (after successful prayer) */
a.release-pray-btn.grayed-button,
a[data-release-pray].grayed-button,
a.make-prayer-button.grayed-button {
  background: #000 !important;
  border-color: #000 !important;
  opacity: 0.1;
  cursor: not-allowed !important;
}

a.release-pray-btn.grayed-button:hover,
a.release-pray-btn.grayed-button:focus,
a[data-release-pray].grayed-button:hover,
a[data-release-pray].grayed-button:focus,
a.make-prayer-button.grayed-button:hover,
a.make-prayer-button.grayed-button:focus {
  background: #000 !important;
  border-color: #000 !important;
  color: #fff !important;
  opacity: 0.1;
}

/* Secondary actions inside globe panels */
body.release-globe-page a.button.dark-blue,
body.release-globe-page a.button.white,
body.page-template-page-globe a.button.dark-blue,
body.page-template-page-globe a.button.white,
.release-globe-layout a.button.dark-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--rp-btn-padding-y) var(--rp-btn-padding-x);
  font-weight: var(--rp-btn-weight);
  font-size: var(--rp-btn-font-size);
  line-height: 1.25;
  text-decoration: none !important;
  border-radius: var(--rp-btn-radius) !important;
  border: 1px solid transparent !important;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.release-globe-page a.button.dark-blue,
body.page-template-page-globe a.button.dark-blue,
.release-globe-layout a.button.dark-blue {
  background: var(--rp-color-teal) !important;
  border-color: var(--rp-color-teal) !important;
  color: #fff !important;
}

body.release-globe-page a.button.dark-blue:hover,
body.release-globe-page a.button.dark-blue:focus,
body.page-template-page-globe a.button.dark-blue:hover,
body.page-template-page-globe a.button.dark-blue:focus,
.release-globe-layout a.button.dark-blue:hover,
.release-globe-layout a.button.dark-blue:focus {
  background: var(--rp-color-teal-hover) !important;
  border-color: var(--rp-color-teal-hover) !important;
  color: #fff !important;
}

body.release-globe-page a.button.white,
body.page-template-page-globe a.button.white {
  background: #fff !important;
  border-color: #fff !important;
  color: var(--rp-color-navy) !important;
}

body.release-globe-page a.button.small,
body.page-template-page-globe a.button.small,
.release-globe-layout a.button.small {
  --rp-btn-padding-y: 0.5rem;
  --rp-btn-padding-x: 1rem;
  --rp-btn-font-size: 0.8125rem;
}

/* VPC buttons win over generic prayer button rules on globe page */
.vpc-prayer a.vpc-btn-red.make-prayer-button,
.vpc-campaign a.vpc-btn-red {
  background: var(--vpc-red) !important;
  border: none !important;
  border-radius: 0 !important;
  color: #fff !important;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.vpc-prayer a.vpc-btn-red.make-prayer-button:hover,
.vpc-campaign a.vpc-btn-red:hover {
  background: var(--vpc-red-hover) !important;
}
