/* Inner program pages: day-list bars (xyz-ips) + WPBakery overflow.
   Does not load Great Lotus. Replicates the old full-width lavender rows.
   body.mpfy-em-program is added in functions.php (WP 6.7 does not emit page-{slug}). */

body.mpfy-em-program .page-hero {
  width: 100%;
  min-height: clamp(14rem, 34vw, 22rem);
  height: clamp(14rem, 34vw, 22rem);
  margin-bottom: 0;
}

body.mpfy-em-program .page-hero img {
  width: 100%;
  height: 100% !important;
  min-height: inherit;
  max-height: none;
  object-fit: cover;
  object-position: center center;
}

body.mpfy-em-program .mpfy-page__content .entry-content {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
  padding-top: 1rem;
}

body.mpfy-em-program .entry-content .row {
  margin: 0 0 3px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

body.mpfy-em-program .entry-content .row > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0.85rem 1rem !important;
  height: auto !important;
  min-height: 2.75rem;
  background: #dee7ff !important;
  color: #3d4454;
  box-sizing: border-box;
  overflow: hidden;
}

body.mpfy-em-program .entry-content .row > div > div {
  width: auto !important;
  max-width: 100%;
  float: none !important;
}

body.mpfy-em-program .entry-content .row > div > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

body.mpfy-em-program .entry-content .row > div > div:last-child:not(:only-child) {
  flex: 0 0 auto;
  text-align: right;
  white-space: nowrap;
  color: #6b7280;
}

body.mpfy-em-program .entry-content .row h6 {
  margin: 0;
  font-size: inherit;
  font-weight: 600;
  line-height: 1.4;
}

body.mpfy-em-program .entry-content .row a {
  color: #3d4454;
}

body.mpfy-em-program .entry-content .featuredimage img {
  display: block;
  width: 100%;
  height: clamp(12rem, 22vw, 16rem);
  object-fit: cover;
  object-position: center;
}

/* Inner program pages: day-list bars (xyz-ips) + WPBakery overflow.
   Does not load Great Lotus. Replicates the old full-width lavender rows. */

.mpfy-page,
.mpfy-page__content,
.entry-content {
  overflow-x: clip;
}

.mpfy-page__content .entry-content {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
  padding-top: 1rem;
}

.mpfy-page__title {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

.mpfy-page__content .vc_row {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100%;
}

.mpfy-page__content .vc_column_container > .vc_column-inner {
  padding-left: 0;
  padding-right: 0;
}

body.page-expect-miracles-en .mpfy-page__content .entry-content,
body.page-expect-miracles-hi .mpfy-page__content .entry-content,
body.page-expect-miracles-english .mpfy-page__content .entry-content,
body.page-expect-miracles-hindi .mpfy-page__content .entry-content,
body.page-expect-miracles .mpfy-page__content .entry-content {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
  padding-top: 1rem;
}

/* Full-height butterfly hero on all Expect Miracles program pages. */
body.page-expect-miracles-en .page-hero,
body.page-expect-miracles-hi .page-hero,
body.page-expect-miracles-english .page-hero,
body.page-expect-miracles-hindi .page-hero,
body.page-expect-miracles .page-hero,
body.page-expect-miracles-30-days-programs .page-hero,
body.page-expect_miracles .page-hero {
  width: 100%;
  min-height: clamp(14rem, 34vw, 22rem);
  height: clamp(14rem, 34vw, 22rem);
  margin-bottom: 0;
}

body.page-expect-miracles-en .page-hero img,
body.page-expect-miracles-hi .page-hero img,
body.page-expect-miracles-english .page-hero img,
body.page-expect-miracles-hindi .page-hero img,
body.page-expect-miracles .page-hero img,
body.page-expect-miracles-30-days-programs .page-hero img,
body.page-expect_miracles .page-hero img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  max-height: none;
  object-fit: cover;
  object-position: center center;
}

/* xyz-ips day list: snippet emits div.row bars (not tables). */
body.page-expect-miracles-en .entry-content .row,
body.page-expect-miracles-hi .entry-content .row,
body.page-expect-miracles-english .entry-content .row,
body.page-expect-miracles-hindi .entry-content .row,
body.page-expect-miracles .entry-content .row {
  margin: 0 0 3px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

body.page-expect-miracles-en .entry-content .row > div,
body.page-expect-miracles-hi .entry-content .row > div,
body.page-expect-miracles-english .entry-content .row > div,
body.page-expect-miracles-hindi .entry-content .row > div,
body.page-expect-miracles .entry-content .row > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0.85rem 1rem !important;
  height: auto !important;
  min-height: 2.75rem;
  background: #dee7ff !important;
  color: #3d4454;
  box-sizing: border-box;
  overflow: hidden;
}

body.page-expect-miracles-en .entry-content .row > div > div,
body.page-expect-miracles-hi .entry-content .row > div > div,
body.page-expect-miracles-english .entry-content .row > div > div,
body.page-expect-miracles-hindi .entry-content .row > div > div,
body.page-expect-miracles .entry-content .row > div > div {
  width: auto !important;
  max-width: 100%;
  float: none !important;
}

body.page-expect-miracles-en .entry-content .row > div > div:first-child,
body.page-expect-miracles-hi .entry-content .row > div > div:first-child,
body.page-expect-miracles-english .entry-content .row > div > div:first-child,
body.page-expect-miracles-hindi .entry-content .row > div > div:first-child,
body.page-expect-miracles .entry-content .row > div > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

body.page-expect-miracles-en .entry-content .row > div > div:last-child:not(:only-child),
body.page-expect-miracles-hi .entry-content .row > div > div:last-child:not(:only-child),
body.page-expect-miracles-english .entry-content .row > div > div:last-child:not(:only-child),
body.page-expect-miracles-hindi .entry-content .row > div > div:last-child:not(:only-child),
body.page-expect-miracles .entry-content .row > div > div:last-child:not(:only-child) {
  flex: 0 0 auto;
  text-align: right;
  white-space: nowrap;
  color: #6b7280;
}

body.page-expect-miracles-en .entry-content .row h6,
body.page-expect-miracles-hi .entry-content .row h6,
body.page-expect-miracles-english .entry-content .row h6,
body.page-expect-miracles-hindi .entry-content .row h6,
body.page-expect-miracles .entry-content .row h6 {
  margin: 0;
  font-size: inherit;
  font-weight: 600;
  line-height: 1.4;
}

body.page-expect-miracles-en .entry-content .row a,
body.page-expect-miracles-hi .entry-content .row a,
body.page-expect-miracles-english .entry-content .row a,
body.page-expect-miracles-hindi .entry-content .row a,
body.page-expect-miracles .entry-content .row a {
  color: #3d4454;
}

body.page-expect-miracles-en .entry-content table,
body.page-expect-miracles-hi .entry-content table,
body.page-expect-miracles-english .entry-content table,
body.page-expect-miracles-hindi .entry-content table,
body.page-expect-miracles .entry-content table,
.xyz-ips table {
  width: 100% !important;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 3px;
  margin: 0;
}

body.page-expect-miracles-en .entry-content table td,
body.page-expect-miracles-hi .entry-content table td,
body.page-expect-miracles-english .entry-content table td,
body.page-expect-miracles-hindi .entry-content table td,
body.page-expect-miracles .entry-content table td,
.xyz-ips table td {
  padding: 0.85rem 1rem;
  vertical-align: middle;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  background: #e8eaf6;
  color: #3d4454;
}

body.page-expect-miracles-en .entry-content table tr td:first-child,
body.page-expect-miracles-hi .entry-content table tr td:first-child,
body.page-expect-miracles-english .entry-content table tr td:first-child,
body.page-expect-miracles-hindi .entry-content table tr td:first-child,
body.page-expect-miracles .entry-content table tr td:first-child,
.xyz-ips table tr td:first-child {
  text-align: left;
  font-weight: 600;
}

body.page-expect-miracles-en .entry-content table tr td:last-child,
body.page-expect-miracles-hi .entry-content table tr td:last-child,
body.page-expect-miracles-english .entry-content table tr td:last-child,
body.page-expect-miracles-hindi .entry-content table tr td:last-child,
body.page-expect-miracles .entry-content table tr td:last-child,
.xyz-ips table tr td:last-child {
  text-align: right;
  white-space: nowrap;
  width: 7.5rem;
  overflow-wrap: normal;
}

body.page-expect-miracles-en .entry-content table a,
body.page-expect-miracles-hi .entry-content table a,
body.page-expect-miracles-english .entry-content table a,
body.page-expect-miracles-hindi .entry-content table a,
body.page-expect-miracles .entry-content table a,
.xyz-ips table a {
  color: #3d4454;
}

/* Expect Miracles 30-day landing: 2-col EN/HI (hide search sidebar). */
body.page-expect-miracles-30-days-programs .mpfy-page__content .entry-content,
body.page-expect_miracles .mpfy-page__content .entry-content {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
  padding-top: 1.25rem;
}

body.page-expect-miracles-30-days-programs .entry-content > .wpb_row.vc_row-fluid,
body.page-expect_miracles .entry-content > .wpb_row.vc_row-fluid {
  max-width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.page-expect-miracles-30-days-programs .entry-content > .wpb_row > .wpb_column.vc_col-sm-4,
body.page-expect_miracles .entry-content > .wpb_row > .wpb_column.vc_col-sm-4,
body.page-expect-miracles-30-days-programs .entry-content > .wpb_row > .wpb_column.vc_col-sm-3,
body.page-expect_miracles .entry-content > .wpb_row > .wpb_column.vc_col-sm-3,
body.page-expect-miracles-30-days-programs .entry-content .vc_custom_heading.searchhere,
body.page-expect_miracles .entry-content .vc_custom_heading.searchhere {
  display: none !important;
}

body.page-expect-miracles-30-days-programs .entry-content .wpb_text_column:has(.searchandfilter),
body.page-expect_miracles .entry-content .wpb_text_column:has(.searchandfilter) {
  display: none !important;
}

body.page-expect-miracles-30-days-programs .entry-content > .wpb_row > .wpb_column.vc_col-sm-8,
body.page-expect_miracles .entry-content > .wpb_row > .wpb_column.vc_col-sm-8 {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}

body.page-expect-miracles-30-days-programs .entry-content .featuredimage,
body.page-expect_miracles .entry-content .featuredimage {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  max-width: 100%;
  margin-inline: auto;
}

body.page-expect-miracles-30-days-programs .entry-content .featuredimage > .wpb_column,
body.page-expect_miracles .entry-content .featuredimage > .wpb_column {
  width: 50% !important;
  max-width: 50% !important;
  flex: 0 0 50% !important;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  box-sizing: border-box;
}

body.page-expect-miracles-30-days-programs .entry-content .featuredimage img,
body.page-expect_miracles .entry-content .featuredimage img {
  display: block;
  width: 100%;
  height: clamp(12rem, 22vw, 16rem);
  object-fit: cover;
  object-position: center;
  margin-inline: auto;
}

body.page-expect-miracles-30-days-programs .entry-content .vc_btn3-container,
body.page-expect_miracles .entry-content .vc_btn3-container {
  width: 100%;
  max-width: 18rem;
  margin-inline: auto;
}

@media (max-width: 767px) {
  body.page-expect-miracles-30-days-programs .entry-content .featuredimage > .wpb_column,
  body.page-expect_miracles .entry-content .featuredimage > .wpb_column {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
}

/* Day lesson pages: centered column like live Great Lotus, not landing lavender bars. */
body.mpfy-em-day .mpfy-page__content .entry-content {
  width: min(48rem, 100% - 2.5rem);
  margin: 1.5rem auto 0;
  text-align: left;
  padding-top: 0.5rem;
}

body.mpfy-em-day .mpfy-page__content .vc_row,
body.mpfy-em-day .mpfy-page__content .wpb_row {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  float: none !important;
}

body.mpfy-em-day .mpfy-page__content .vc_row,
body.mpfy-em-day .mpfy-page__content .wpb_column,
body.mpfy-em-day .mpfy-page__content .vc_column_container,
body.mpfy-em-day .mpfy-page__content .vc_column-inner,
body.mpfy-em-day .mpfy-page__content .wpb_wrapper {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.mpfy-em-day .mpfy-page__content .wpb_column,
body.mpfy-em-day .mpfy-page__content .vc_column_container {
  flex: 0 0 auto !important;
}

body.mpfy-em-day .entry-content iframe,
body.mpfy-em-day .entry-content .wpb_video_wrapper iframe {
  display: block;
  width: 100% !important;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto !important;
  min-height: 18rem;
  margin: 1rem auto 0;
}

body.mpfy-em-day .entry-content .wpb_video_wrapper {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
}

body.mpfy-em-day .entry-content .wpb_single_image,
body.mpfy-em-day .entry-content .vc_figure {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

body.mpfy-em-day .widget_audio,
body.mpfy-em-day .trx_addons_audio_player {
  width: 100% !important;
  max-width: 100%;
  margin: 0 auto 1rem;
  background: #ececec;
  padding: 0.85rem 1rem;
  box-sizing: border-box;
}

body.mpfy-em-day audio,
body.mpfy-em-day .mejs-container {
  width: 100% !important;
  max-width: 100%;
  margin: 0 auto;
}

body.mpfy-em-day .mpfy-comments,
body.mpfy-em-day #wpdcom,
body.mpfy-em-day .wpd-wrapper {
  width: min(48rem, 100% - 2.5rem);
  margin: 1.75rem auto 2.5rem;
  text-align: left;
}

/* About MPFY / sanctuary portraits: keep circle cover, no stretch. */
body.page-about-mpfy .entry-content img,
body.page-mpfy .entry-content img {
  max-width: 100%;
  height: auto !important;
  object-fit: cover;
  object-position: center;
}

body.page-about-mpfy .entry-content .wpb_single_image img,
body.page-about-mpfy .entry-content img.vc_single_image-img {
  aspect-ratio: 1 / 1;
  width: min(12rem, 42vw);
  height: auto !important;
  object-fit: cover;
  border-radius: 50%;
}

/* M019: Connect with a guide — theme overrides (plugin: connect-guide.css). */
body.page-counselling .mpfy-connect-guide-wrap,
body.page-healing .mpfy-connect-guide-wrap,
body.page-past-life .mpfy-connect-guide-wrap {
  display: flex;
  justify-content: center;
  max-width: 100%;
  overflow-x: clip;
}

body.page-counselling .mpfy-connect-guide-band,
body.page-healing .mpfy-connect-guide-band,
body.page-past-life .mpfy-connect-guide-band {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
}

body.page-counselling .mpfy-connect-guide-copy p,
body.page-healing .mpfy-connect-guide-copy p,
body.page-past-life .mpfy-connect-guide-copy p {
  font-family: var(--font-body, Lato, system-ui, sans-serif);
  font-size: 0.92rem;
}

body.page-counselling .mpfy-connect-guide-wrap .mpfy-connect-guide,
body.page-healing .mpfy-connect-guide-wrap .mpfy-connect-guide,
body.page-past-life .mpfy-connect-guide-wrap .mpfy-connect-guide {
  font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
  color: #d4af37;
  font-size: 1.05rem;
  white-space: nowrap;
  flex: 0 1 auto;
  min-width: 0;
  word-break: break-word;
}

.entry-content .sc_events,
.mpfy-trx-events {
  margin: 1rem 0 2rem;
}

.entry-content a.sc_events_item,
.mpfy-trx-events a.sc_events_item {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0.75rem;
  align-items: center;
  background: var(--white, #f7f1e4);
  border: 1px solid var(--border, rgba(44, 42, 38, 0.1));
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin: 0 0 0.65rem;
  color: var(--text, #2c2a26);
  text-decoration: none;
}

.entry-content .sc_events_item_day {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
}

.entry-content .mpfy-trx-services .sc_services_columns_wrap,
.mpfy-trx-services .sc_services_columns_wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 1rem 0 2rem;
}

.entry-content .mpfy-trx-services .sc_services_columns_wrap.sc_item_columns_1,
.mpfy-trx-services .sc_services_columns_wrap.sc_item_columns_1 {
  grid-template-columns: 1fr;
}

.entry-content .mpfy-trx-services .sc_services_columns_wrap.sc_item_columns_2,
.mpfy-trx-services .sc_services_columns_wrap.sc_item_columns_2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.entry-content .mpfy-trx-services .sc_services_item {
  background: var(--white, #f7f1e4);
  border: 1px solid var(--border, rgba(44, 42, 38, 0.1));
  border-radius: 12px;
  overflow: hidden;
}

.entry-content .mpfy-trx-services .sc_services_item_thumb img {
  display: block;
  width: 100%;
  height: auto;
}

body.page-webinars .sc_services .post_featured,
body.page-webinars .sc_services_item_thumb,
.mpfy-trx-services-text .post_featured,
.mpfy-trx-services-text .sc_services_item_thumb,
.mpfy-trx-services-text .sc_services_item_number,
.mpfy-trx-services-text .sc_services_item_subtitle {
  display: none !important;
}

.entry-content .mpfy-trx-services .sc_services_item_info {
  padding: 1.35rem 1.25rem 1.5rem;
}

.entry-content .mpfy-trx-services .sc_services_item_title {
  margin: 0;
  font-size: 1.15rem;
}

.entry-content .mpfy-trx-services .sc_services_item_title a {
  color: inherit;
  text-decoration: none;
}

.entry-content .mpfy-trx-services .sc_services_item_content {
  margin-top: 0.85rem;
  color: var(--text, #2c2a26);
}

.entry-content .mpfy-trx-services .sc_services_item_button {
  margin-top: 1.1rem;
}

body.page-webinars .sc_services .sc_services_item_button a,
.mpfy-trx-services-text .sc_services_item_button a,
.entry-content .mpfy-trx-services .sc_services_item_button a.mpfy-webinar-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  position: relative;
  min-height: 2.15rem;
  padding: 0.5em 1.45em;
  border: 1px solid var(--gold, #b99a5b);
  border-radius: 999px;
  background: transparent;
  color: var(--gold, #b99a5b);
  font-family: var(--font-body, Lato, system-ui, sans-serif);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
}

body.page-webinars .sc_services .sc_services_item_button a::before,
body.page-webinars .sc_services .sc_services_item_button a::after,
.mpfy-trx-services-text .sc_services_item_button a::before,
.mpfy-trx-services-text .sc_services_item_button a::after,
.entry-content .mpfy-trx-services .sc_services_item_button a.mpfy-webinar-more::before,
.entry-content .mpfy-trx-services .sc_services_item_button a.mpfy-webinar-more::after {
  content: none !important;
  display: none !important;
}

body.page-webinars .sc_services .sc_services_item_button a:hover,
.mpfy-trx-services-text .sc_services_item_button a:hover,
.entry-content .mpfy-trx-services .sc_services_item_button a.mpfy-webinar-more:hover {
  background: var(--gold, #b99a5b);
  color: var(--text, #2c2a26);
}

@media (max-width: 782px) {
  .entry-content .mpfy-trx-services .sc_services_columns_wrap,
  .mpfy-trx-services .sc_services_columns_wrap {
    grid-template-columns: 1fr;
  }
}

/* QA D: EM landing EN/HI — flat 2D tabs, balanced whitespace (items 12, 13). */
body.page-expect-miracles-30-days-programs .mpfy-page__content .entry-content,
body.page-expect_miracles .mpfy-page__content .entry-content {
  padding-top: 1.75rem;
  padding-bottom: 2rem;
}

body.page-expect-miracles-30-days-programs .entry-content .featuredimage,
body.page-expect_miracles .entry-content .featuredimage {
  margin-top: 1.25rem;
  margin-bottom: 2rem;
  padding: 0.75rem 0 1.25rem;
  gap: 1.25rem;
}

body.page-expect-miracles-30-days-programs .entry-content .featuredimage img,
body.page-expect_miracles .entry-content .featuredimage img {
  margin-bottom: 0.85rem;
}

body.page-expect-miracles-30-days-programs .entry-content .vc_btn3,
body.page-expect_miracles .entry-content .vc_btn3,
body.page-expect-miracles-30-days-programs .entry-content .vc_btn3-container,
body.page-expect_miracles .entry-content .vc_btn3-container {
  width: 100%;
  max-width: 14rem;
}

body.page-expect-miracles-30-days-programs .entry-content .vc_btn3,
body.page-expect_miracles .entry-content .vc_btn3 {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-height: 2.75rem;
  padding: 0.65rem 1.1rem !important;
  border-radius: 6px !important;
  background: #f7f1e4 !important;
  background-image: none !important;
  border: 2px solid #5a6946 !important;
  box-shadow: 2px 2px 0 rgba(44, 42, 38, 0.14);
  color: #2c2a26 !important;
  font-family: var(--font-body, Lato, system-ui, sans-serif) !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  text-transform: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

body.page-expect-miracles-30-days-programs .entry-content .vc_btn3:hover,
body.page-expect_miracles .entry-content .vc_btn3:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 rgba(44, 42, 38, 0.18);
  color: #2c2a26 !important;
}

.mpfy-em-en-intro {
  max-width: 42rem;
  margin: 0 auto 1.25rem;
  line-height: 1.65;
}

/* QA F: wpDiscuz sort menu + vote affordance (items 9). */
#wpdcom .wpdiscuz-sort-buttons {
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(44, 42, 38, 0.12);
}

#wpdcom .wpdiscuz-sort-button {
  cursor: pointer;
  font-family: var(--font-body, Lato, system-ui, sans-serif);
}

#wpdcom .wpd-vote-up,
#wpdcom .wpd-vote-down {
  cursor: pointer;
}

body.mpfy-em-day .mpfy-page__content .entry-content {
  display: block;
  min-height: 2rem;
}

/* QA A: Guided Content search + membership / payment fallbacks (2026-09-02). */
.mpfy-guided-search__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.mpfy-guided-search__row input,
.mpfy-guided-search__row select {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border, rgba(44, 42, 38, 0.15));
  border-radius: 8px;
  font: inherit;
}

.mpfy-guided-list__item {
  margin: 0.75rem 0;
  padding: 0.85rem 1rem;
  background: var(--white, #f7f1e4);
  border: 1px solid var(--border, rgba(44, 42, 38, 0.1));
  border-radius: 10px;
}

.mpfy-guided-list__title {
  margin: 0;
  font-size: 1.05rem;
}

.mpfy-membership-plans--split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}

.mpfy-donation-landing__links {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.mpfy-bank-details {
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
  background: #2d2828;
  color: #fffdf9;
  border-radius: 10px;
}

.mpfy-form-fallback__note {
  color: var(--text-muted, #5c574e);
}

.mpfy-donation-landing {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

/* M081: Inner pages — mobile overflow / misalignment safeguards. */
@media (max-width: 767px) {
  .mpfy-page__content .entry-content,
  .mpfy-page__title {
    width: min(1120px, 100% - 1.25rem);
  }

  .mpfy-page__content .vc_row,
  .mpfy-page__content .wpb_row,
  .mpfy-page__content .vc_row-inner {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    float: none !important;
  }

  .mpfy-page__content .vc_column_container,
  .mpfy-page__content .wpb_column,
  .mpfy-page__content .vc_column-inner,
  .mpfy-page__content .wpb_wrapper {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    min-width: 0;
  }

  .mpfy-page__content .entry-content img,
  .mpfy-page__content .entry-content iframe,
  .mpfy-page__content .entry-content video {
    max-width: 100%;
    height: auto !important;
  }

  body.page-expect-miracles-en .entry-content .row > div,
  body.page-expect-miracles-hi .entry-content .row > div,
  body.page-expect-miracles-english .entry-content .row > div,
  body.page-expect-miracles-hindi .entry-content .row > div,
  body.page-expect_miracles .entry-content .row > div,
  body.mpfy-em-program .entry-content .row > div {
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
  }

  body.page-expect-miracles-en .entry-content .row > div > div:last-child:not(:only-child),
  body.page-expect-miracles-hi .entry-content .row > div > div:last-child:not(:only-child),
  body.page-expect-miracles-english .entry-content .row > div > div:last-child:not(:only-child),
  body.page-expect-miracles-hindi .entry-content .row > div > div:last-child:not(:only-child),
  body.page-expect_miracles .entry-content .row > div > div:last-child:not(:only-child),
  body.mpfy-em-program .entry-content .row > div > div:last-child:not(:only-child) {
    white-space: normal;
    text-align: left;
    flex: 1 1 100%;
  }

  .mpfy-connect-guide-band {
    padding: 1.5rem 1rem;
  }

  .mpfy-connect-guide-card,
  body.page-healing .mpfy-connect-guide-card,
  body.page-counselling .mpfy-connect-guide-card,
  body.page-past-life .mpfy-connect-guide-card {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 1.15rem 1rem;
    text-align: center;
  }

  .mpfy-connect-guide-copy,
  body.page-healing .mpfy-connect-guide-copy,
  body.page-counselling .mpfy-connect-guide-copy,
  body.page-past-life .mpfy-connect-guide-copy {
    justify-content: center;
    text-align: center;
  }

  .mpfy-connect-guide-wrap .mpfy-connect-guide,
  body.page-healing .mpfy-connect-guide-wrap .mpfy-connect-guide,
  body.page-counselling .mpfy-connect-guide-wrap .mpfy-connect-guide,
  body.page-past-life .mpfy-connect-guide-wrap .mpfy-connect-guide {
    flex: 1 1 100%;
    text-align: center;
  }
}

/* Articles listing: centered title, intro, white Learn More cards. */
body.page-articles {
  background: #f3f4f6;
}

body.page-articles .mpfy-page__content {
  background: transparent;
}

body.page-articles .mpfy-page__title--articles {
  text-align: center;
  margin: 2.6rem auto 0.2rem;
  font-weight: 500;
  color: #3a3a3a;
}

.mpfy-articles-board {
  max-width: 58rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.mpfy-articles-board__intro {
  max-width: 40rem;
  margin: 0.85rem auto 2.4rem;
  color: #6d675f;
  font-family: Lato, Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
}

.mpfy-articles-board__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
  align-items: stretch;
}

.mpfy-articles-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 2.1rem 1.6rem 1.8rem;
  background: #fff;
  border: 0;
  border-radius: 4px;
  box-shadow: 0 10px 28px rgba(40, 40, 50, 0.08);
  text-align: center;
}

.mpfy-articles-card__title {
  margin: 0 0 1rem;
  font-family: Lato, Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
  color: #2c2a26;
}

.mpfy-articles-card__excerpt {
  margin: 0 0 1.5rem;
  color: #8a847c;
  font-family: Lato, Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.65;
}

.mpfy-articles-card__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  min-width: 8.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: 6px;
  color: #fff;
  font-family: Lato, system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.mpfy-articles-card__more--red {
  background: #d64545;
}

.mpfy-articles-card__more--blue {
  background: #3d4db5;
}

.mpfy-articles-card__more:hover,
.mpfy-articles-card__more:focus {
  color: #fff;
  filter: brightness(0.94);
}

@media (max-width: 782px) {
  .mpfy-articles-board__grid {
    grid-template-columns: 1fr;
  }
}

/* Inner program and article bodies: great-lotus open rhythm (Lora, ~1.75, room between steps). */
body.rd-page:not(.page-articles) .mpfy-page__content .entry-content {
  font-size: 1.125rem;
  line-height: 1.75;
}

body.rd-page:not(.page-articles) .mpfy-page__content .entry-content p,
body.rd-page:not(.page-articles) .mpfy-page__content .entry-content li,
body.rd-page:not(.page-articles) .mpfy-page__content .entry-content ol,
body.rd-page:not(.page-articles) .mpfy-page__content .entry-content ul {
  font-family: Lora, Georgia, "Times New Roman", serif !important;
  line-height: 1.75 !important;
}

body.rd-page:not(.page-articles) .mpfy-page__content .entry-content p,
body.rd-page:not(.page-articles) .mpfy-page__content .entry-content ol,
body.rd-page:not(.page-articles) .mpfy-page__content .entry-content ul {
  margin-top: 0 !important;
  margin-bottom: 1.75em !important;
}

body.rd-page:not(.page-articles) .mpfy-page__content .entry-content ol > li,
body.rd-page:not(.page-articles) .mpfy-page__content .entry-content ul > li {
  margin-bottom: 0.95em !important;
}

body.rd-page:not(.page-articles) .mpfy-page__content .entry-content h1,
body.rd-page:not(.page-articles) .mpfy-page__content .entry-content h2,
body.rd-page:not(.page-articles) .mpfy-page__content .entry-content h3,
body.rd-page:not(.page-articles) .mpfy-page__content .entry-content h4,
body.rd-page:not(.page-articles) .mpfy-page__content .entry-content h5,
body.rd-page:not(.page-articles) .mpfy-page__content .entry-content h6 {
  font-family: Lato, "Quicksand", system-ui, sans-serif;
  line-height: 1.3;
}

/* Team stories: full sunset, portrait beside the opening, photos in the right margin. */
body.single-cpt_team .page-hero {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden;
  background: #1a140c;
}

body.single-cpt_team .page-hero img {
  position: static !important;
  inset: auto !important;
  display: block;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
}

body.single-cpt_team .page-hero .mpfy-page__title--on-hero {
  position: absolute;
  left: 0;
  right: 0;
  top: 46%;
  transform: translateY(-50%);
  margin-left: auto;
  margin-right: auto;
  z-index: 1;
}

body.single-cpt_team .team_member_page {
  margin: 0.35rem 0 1.75rem;
  overflow: hidden;
}

body.single-cpt_team .team_member_featured {
  float: left;
  width: 33%;
  max-width: 22rem;
  box-sizing: border-box;
  padding: 0 1.75rem 0.85rem 0;
}

body.single-cpt_team .team_member_featured .team_member_avatar {
  border: 12px solid #eceae6;
  box-sizing: border-box;
  background: #f7f4ee;
}

body.single-cpt_team .team_member_featured img {
  display: block;
  width: 100%;
  height: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}

body.single-cpt_team .team_member_brief_info_text {
  font-style: normal;
  letter-spacing: 0;
}

body.single-cpt_team .mpfy-page__content .entry-content {
  overflow-wrap: normal;
  word-break: normal;
}

body.single-cpt_team .mpfy-page__content img.alignright,
body.single-cpt_team .mpfy-page__content img.alignleft {
  float: right;
  clear: right;
  width: 200px !important;
  max-width: 42% !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: 0.2rem 0 1rem 1.35rem !important;
  border: 8px solid #f0f0f0;
  box-sizing: border-box;
  display: block;
}

body.single-cpt_team .mpfy-page__content img.alignleft {
  float: left;
  clear: left;
  margin: 0.2rem 1.35rem 1rem 0 !important;
}

@media (max-width: 720px) {
  body.single-cpt_team .team_member_featured {
    float: none;
    width: min(16rem, 78%);
    max-width: none;
    margin: 0 auto 1.25rem;
    padding: 0;
  }

  body.single-cpt_team .page-hero .mpfy-page__title--on-hero {
    font-size: clamp(1.35rem, 6vw, 1.8rem);
  }
}

/* Story posts (Kolkata Diaries): wide Quicksand flow, short cover banner, images in their own block. */
body.single-post .page-hero {
  height: clamp(11.5rem, 18vw, 14.5rem) !important;
  min-height: 0 !important;
  max-height: none !important;
}

body.single-post .page-hero img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
}

body.single-post .page-hero .mpfy-page__title--on-hero {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
}

body.single-post .mpfy-page__content .entry-content {
  width: min(78rem, 100% - 3.5rem);
}

body.single-post.rd-page .mpfy-page__content .entry-content,
body.single-post.rd-page .mpfy-page__content .entry-content p,
body.single-post.rd-page .mpfy-page__content .entry-content li {
  font-family: Quicksand, Lato, system-ui, sans-serif !important;
  font-size: 1.125rem;
  line-height: 31px !important;
}

body.single-post.rd-page .mpfy-page__content .entry-content p {
  margin-top: 1em !important;
  margin-bottom: 0 !important;
}

body.single-post.rd-page .mpfy-page__content .entry-content .wpb_wrapper > p:first-child {
  margin-top: 0 !important;
}

body.single-post .mpfy-page__content .entry-content img {
  height: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
}

body.single-post .mpfy-page__content .entry-content img.alignnone {
  display: block;
  float: none;
  width: auto;
  max-width: min(100%, 280px);
  margin: 1.15rem 0 0.35rem;
}
