/* Public-site refinements. The plugin adds mjg-refined only to public pages. */
body.mjg-refined {
  --mjg-ref-ivory: #fbf7ef;
  --mjg-ref-paper: #fffdf8;
  --mjg-ref-green: #12382f;
  --mjg-ref-green-dark: #09271f;
  --mjg-ref-burgundy: #862d32;
  --mjg-ref-line: #e1d9cd;
  --mjg-ref-muted: #58675f;
  --mjg-ref-radius: 3px;
}
body.mjg-refined .mjg-ref-clients ul {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px 22px;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  color: #12382f;
  font-size: 15px;
}
body.mjg-refined .mjg-editorial-note {
  border-left: 2px solid #c7ad7e;
  padding: 12px 18px;
  color: #58675f;
  background: #fbf7ef;
}
@media (max-width: 800px) {
  body.mjg-refined .mjg-ref-clients ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Keep the brand and consultation action available as the page scrolls. */
body.mjg-refined.mjg-experience .elementor-location-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 253, 248, .98);
  border-bottom: 1px solid var(--mjg-ref-line);
  box-shadow: 0 3px 18px rgba(9, 39, 31, .045);
}
body.mjg-refined.admin-bar .elementor-location-header { top: 32px; }
body.mjg-refined.mjg-experience .elementor-location-header .elementor-element-e569d24 > .elementor-widget-wrap {
  grid-template-columns: 170px minmax(0, 1fr);
  width: min(calc(100% - 48px), 1280px);
  align-items: center;
  gap: 24px;
  padding-block: 9px;
}
body.mjg-refined.mjg-experience .elementor-location-header .elementor-element-20bbd9f img {
  width: 166px !important;
  height: auto !important;
}
body.mjg-refined.mjg-experience .mjg-primary-nav { min-width: 0; }
body.mjg-refined.mjg-experience .mjg-primary-nav .mjg-desktop-nav {
  gap: clamp(2px, .55vw, 8px);
  flex-wrap: nowrap;
}
body.mjg-refined.mjg-experience .mjg-primary-nav a {
  padding: 13px 9px;
  font-size: clamp(13px, 1.05vw, 14px);
  font-weight: 650;
  line-height: 1.3;
}
body.mjg-refined.mjg-experience .mjg-primary-nav .mjg-nav-cta {
  min-height: 44px;
  padding: 12px 18px;
  margin-left: 8px;
  border-radius: var(--mjg-ref-radius);
}
body.mjg-refined.mjg-experience .mjg-mobile-nav { width: max-content; margin-left: auto; }
body.mjg-refined.mjg-experience .mjg-mobile-nav summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 88px;
  min-height: 44px;
  border-radius: var(--mjg-ref-radius);
  padding: 10px 15px;
  font-size: 14px;
  line-height: 1.3;
  list-style: none;
}
body.mjg-refined.mjg-experience .mjg-mobile-nav summary::-webkit-details-marker { display: none; }
body.mjg-refined.mjg-experience .mjg-mobile-nav summary::after {
  content: "+";
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
}
body.mjg-refined.mjg-experience .mjg-mobile-nav[open] summary::after { content: "−"; }
body.mjg-refined.mjg-experience .mjg-mobile-nav ul {
  top: calc(100% + 10px);
  right: 0;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  width: min(340px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  padding: 10px;
  border-radius: var(--mjg-ref-radius);
}
body.mjg-refined.mjg-experience .mjg-mobile-nav ul a {
  min-height: 44px;
  padding: 13px 14px;
  white-space: normal;
  font-size: 15px;
}
body.mjg-refined.mjg-experience .mjg-mobile-nav .mjg-nav-cta { margin: 8px 0 0; }
@media (min-width: 1100px) {
  body.mjg-refined.mjg-experience .mjg-primary-nav .mjg-desktop-nav { display: flex !important; }
  body.mjg-refined.mjg-experience .mjg-primary-nav .mjg-mobile-nav { display: none !important; }
}
@media (max-width: 1099px) {
  body.mjg-refined.mjg-experience .mjg-primary-nav .mjg-desktop-nav { display: none !important; }
  body.mjg-refined.mjg-experience .mjg-primary-nav .mjg-mobile-nav { display: block !important; position: relative; }
  body.mjg-refined.mjg-experience .elementor-location-header .elementor-element-e569d24 > .elementor-widget-wrap {
    grid-template-columns: minmax(0, 170px) minmax(0, 1fr);
    width: calc(100% - 32px);
    gap: 16px;
  }
}

/* A shared reading rhythm for the existing editorial pages. */
body.mjg-refined.mjg-experience .mjg-page {
  padding-top: clamp(24px, 3vw, 40px);
  padding-inline: clamp(18px, 3.2vw, 44px);
  line-height: 1.7;
}
body.mjg-refined.mjg-experience .mjg-page > section + section {
  margin-top: clamp(48px, 6vw, 76px);
}
/* Remove empty WordPress paragraphs and a retired, empty Elementor heading row. */
body.mjg-refined.mjg-experience .mjg-page > p:empty { display: none; }
body.mjg-refined.mjg-experience .mjg-page > .mjg-hero:first-of-type { margin-top: 0; }
body.mjg-refined.page-id-2593 .ast-container > p:has(+ main.mjg-page) { display: none; }
body.mjg-refined.mjg-managed-page:has(.mjg-art-page, .mjg-case-page) .elementor-element-261359c { display: none; }
body.mjg-refined .mjg-page :is(section, article, div, figure),
body.mjg-refined .mjg-bzs-landing :is(section, article, div) { min-width: 0; }
body.mjg-refined .mjg-page :is(h1, h2, h3, p, a, li),
body.mjg-refined .mjg-bzs-landing :is(h1, h2, h3, p, a, li) { overflow-wrap: break-word; }
body.mjg-refined .mjg-page :is(section, h2[id], h3[id]),
body.mjg-refined .mjg-bzs-landing :is(section, h2[id], h3[id]) { scroll-margin-top: 110px; }
body.mjg-refined.mjg-experience .mjg-section-heading {
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: 28px;
}
body.mjg-refined.mjg-experience .mjg-page h2 { letter-spacing: -.03em; }
body.mjg-refined.mjg-experience .mjg-page .mjg-eyebrow { letter-spacing: .15em; }
body.mjg-refined .mjg-page :is(.mjg-button, a.mjg-text-link),
body.mjg-refined .mjg-bzs-landing .mjg-button {
  border-radius: var(--mjg-ref-radius);
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
body.mjg-refined :is(.mjg-primary-nav, .mjg-page, .mjg-bzs-landing) :is(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid #b85e18;
  outline-offset: 4px;
}

/* Portrait-led homepage, with room for the service promise and its action. */
body.mjg-refined.mjg-experience.home .mjg-page .mjg-editorial-split {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  min-height: 0;
  border-radius: var(--mjg-ref-radius);
  box-shadow: 0 16px 36px rgba(9, 39, 31, .08);
}
body.mjg-refined.mjg-experience.home .mjg-editorial-split > div {
  padding: clamp(30px, 3.7vw, 48px);
}
body.mjg-refined.mjg-experience.home .mjg-editorial-split h1 {
  max-width: 18ch;
  margin-bottom: 22px;
  font-size: clamp(42px, 4.5vw, 62px);
  line-height: 1.06;
  letter-spacing: -.04em;
}
body.mjg-refined.mjg-experience.home .mjg-editorial-split > div > p:not(.mjg-eyebrow):not(.mjg-actions) {
  max-width: 48ch;
  margin-bottom: 0;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.7;
  color: #e3eae3;
}
body.mjg-refined.mjg-experience.home .mjg-editorial-split .mjg-actions {
  gap: 12px;
  margin: 26px 0 0;
}
body.mjg-refined.mjg-experience.home .mjg-editorial-split .mjg-actions > a {
  min-height: 48px;
  font-size: 14px;
}
body.mjg-refined.mjg-experience.home .mjg-editorial-media { min-height: 0; }
body.mjg-refined.mjg-experience.home .mjg-editorial-media img {
  min-height: 0;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center 28%;
}
body.mjg-refined.mjg-experience.home .mjg-hero-credentials {
  gap: 8px 17px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 253, 248, .2);
}
body.mjg-refined.mjg-experience.home .mjg-hero-credentials li { font-size: 12px; line-height: 1.5; }
body.mjg-refined.mjg-experience .mjg-proof-rail {
  border-color: var(--mjg-ref-line);
  box-shadow: none;
}
body.mjg-refined.mjg-experience .mjg-proof-rail > * { padding: 20px; }

/* Original organization marks supplied in the company profile. */
body.mjg-refined .mjg-ref-proof {
  padding: clamp(24px, 3.2vw, 40px) 0;
  border-block: 1px solid var(--mjg-ref-line);
}
body.mjg-refined .mjg-ref-proof__intro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px 40px;
  margin-bottom: 24px;
}
body.mjg-refined.mjg-experience .mjg-ref-proof__intro h2 {
  max-width: 24ch;
  margin: 0;
  font-size: clamp(23px, 2.3vw, 30px);
  line-height: 1.2;
}
body.mjg-refined .mjg-ref-proof__intro p {
  max-width: 56ch;
  margin: 0;
  color: var(--mjg-ref-muted);
  font-size: 14px;
  line-height: 1.6;
}
body.mjg-refined .mjg-ref-proof__logos {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.mjg-refined .mjg-ref-proof--full .mjg-ref-proof__logos { grid-template-columns: repeat(5, minmax(0, 1fr)); }
body.mjg-refined .mjg-ref-proof__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 110px;
  margin: 0;
  border: 1px solid var(--mjg-ref-line);
  border-radius: var(--mjg-ref-radius);
  padding: 18px 14px;
  background: #fff;
}
body.mjg-refined .mjg-ref-proof__logo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 62px;
  margin: 0;
  object-fit: contain;
}
body.mjg-refined .mjg-ref-proof__logo[data-logo="robinsons-galleria"] img,
body.mjg-refined .mjg-ref-proof__logo[data-logo="abs-cbn"] img { max-height: 72px; }
body.mjg-refined .mjg-ref-proof__sources {
  margin: 20px 0 0;
  color: var(--mjg-ref-muted);
  font-size: 13px;
  line-height: 1.7;
}
body.mjg-refined.mjg-experience.home .mjg-page .mjg-ref-proof--compact { margin-top: 32px; }

/* Service choices, question finder, and public-work cards. */
body.mjg-refined.mjg-experience .mjg-page .mjg-card,
body.mjg-refined.mjg-experience .mjg-case-teasers article {
  border: 1px solid var(--mjg-ref-line);
  border-radius: var(--mjg-ref-radius);
  padding: clamp(23px, 2.5vw, 32px);
  box-shadow: none;
}
body.mjg-refined.mjg-experience.home section[aria-labelledby="home-services-title"] .mjg-card {
  display: flex;
  flex-direction: column;
}
body.mjg-refined.mjg-experience.home section[aria-labelledby="home-services-title"] .mjg-card h3 { margin-bottom: 14px; }
body.mjg-refined.mjg-experience.home section[aria-labelledby="home-services-title"] .mjg-card p:last-child {
  margin-top: auto;
  padding-top: 13px;
}
body.mjg-refined.mjg-experience .mjg-case-teasers span { margin-bottom: 24px; }
body.mjg-refined .mjg-ref-finder {
  border-block: 1px solid var(--mjg-ref-line);
  padding-block: clamp(28px, 4vw, 44px);
}
body.mjg-refined .mjg-ref-finder > header { max-width: 760px; margin-bottom: 26px; }
body.mjg-refined .mjg-ref-finder > header > :last-child { margin-bottom: 0; }
body.mjg-refined .mjg-ref-finder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
body.mjg-refined .mjg-ref-finder-grid > article {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(24px, 2.5vw, 32px);
  border: 1px solid var(--mjg-ref-line);
  border-top: 3px solid #bf9361;
  border-radius: var(--mjg-ref-radius);
  background: var(--mjg-ref-paper);
}
body.mjg-refined.mjg-experience .mjg-ref-finder-grid h3 { margin: 0; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.18; }
body.mjg-refined .mjg-ref-finder-grid p { margin: 0; font-size: 15px; line-height: 1.7; }
body.mjg-refined .mjg-ref-finder-grid > article > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  margin-top: auto;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-underline-offset: .25em;
}

/* Short guidance and relevant-reading sections added beside decisions. */
body.mjg-refined .mjg-ref-next-step {
  margin-block: 32px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid #d5dfd1;
  border-left: 3px solid var(--mjg-ref-green);
  border-radius: var(--mjg-ref-radius);
  background: #edf2ec;
}
body.mjg-refined .mjg-ref-context {
  margin-block: 32px;
  border-top: 1px solid var(--mjg-ref-line);
  padding-top: 26px;
}
body.mjg-refined.mjg-experience :is(.mjg-ref-next-step, .mjg-ref-context) :is(h2, h3) {
  margin: 0 0 12px;
  color: var(--mjg-ref-green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.2;
}
body.mjg-refined :is(.mjg-ref-next-step, .mjg-ref-context) p { max-width: 72ch; font-size: 15px; line-height: 1.7; }
body.mjg-refined :is(.mjg-ref-next-step, .mjg-ref-context) > :last-child { margin-bottom: 0; }
body.mjg-refined .mjg-ref-context ul { margin: 0; padding-left: 20px; }
body.mjg-refined .mjg-ref-context li { padding-block: 5px; }

/* Give client comments a comfortable reading width and visible attribution. */
body.mjg-refined.mjg-experience .mjg-client-voices {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--mjg-ref-radius);
}
body.mjg-refined.mjg-experience .mjg-voice-grid { gap: 16px; }
body.mjg-refined.mjg-experience .mjg-voice-grid figure {
  padding: clamp(22px, 2.4vw, 30px);
  border-top-width: 2px;
  box-shadow: none;
}
body.mjg-refined.mjg-experience .mjg-voice-grid blockquote { font-size: clamp(18px, 1.65vw, 21px); line-height: 1.55; }
body.mjg-refined.mjg-experience .mjg-voice-grid figcaption { margin-top: 24px; }
body.mjg-refined.mjg-experience .mjg-voice-grid figcaption strong { text-transform: none; letter-spacing: 0; font-size: 14px; }
body.mjg-refined.mjg-experience .mjg-book-feature { box-shadow: none; }
body.mjg-refined.mjg-experience .mjg-page .mjg-cta { padding: clamp(32px, 5vw, 60px); border-radius: var(--mjg-ref-radius); }

/* The public BaZiScope introduction and workbench only. */
body.mjg-refined.mjg-baziscope-page .mjg-bzs-landing {
  width: min(calc(100% - 48px), 1240px);
  padding-top: clamp(28px, 3.2vw, 42px);
}
body.mjg-refined.mjg-baziscope-page .mjg-bzs-intro {
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  align-items: center;
  gap: clamp(28px, 4.6vw, 64px);
  padding: 8px 0 40px;
}
body.mjg-refined.mjg-baziscope-page .mjg-bzs-intro h1 {
  max-width: 17ch;
  margin-top: 14px;
  font-size: clamp(40px, 4.2vw, 58px);
  line-height: 1.08;
  letter-spacing: -.04em;
}
body.mjg-refined.mjg-baziscope-page .mjg-bzs-intro .mjg-lead { font-size: 16px; line-height: 1.7; }
body.mjg-refined.mjg-baziscope-page .mjg-bzs-intro .mjg-actions { margin-top: 20px; gap: 12px; }
body.mjg-refined.mjg-baziscope-page .mjg-bzs-fine { color: #58675f; font-size: 12px; }
body.mjg-refined.mjg-baziscope-page .mjg-bzs-workbench {
  grid-template-columns: minmax(0, 1.58fr) minmax(0, .72fr);
  border-radius: var(--mjg-ref-radius);
  box-shadow: 0 12px 32px rgba(9, 39, 31, .045);
}
body.mjg-refined.mjg-baziscope-page .mjg-bzs-calculator { padding: 25px 24px 8px; }
body.mjg-refined.mjg-baziscope-page .mjg-bzs-calculator-top { gap: 20px; padding-bottom: 18px; }
body.mjg-refined.mjg-baziscope-page .mjg-bzs-calculator-top h2 { font-size: clamp(30px, 2.9vw, 39px); }
body.mjg-refined.mjg-baziscope-page .mjg-bzs-calculator-top > span { font-size: 10px; white-space: normal; text-align: right; }
body.mjg-refined.mjg-baziscope-page .mjg-bzs-member-access { margin-top: 14px; }
body.mjg-refined.mjg-baziscope-page .mjg-bzs-member-access > a { min-height: 44px; }
body.mjg-refined.mjg-baziscope-page .mjg-bzs-workbench-copy { top: 100px; min-height: 0; padding: clamp(27px, 3vw, 40px); }
body.mjg-refined.mjg-baziscope-page .mjg-bzs-workbench-copy h2 { font-size: clamp(31px, 3vw, 41px); }
body.mjg-refined.mjg-baziscope-page .mjg-bzs-path { margin: 24px 0; }
body.mjg-refined.mjg-baziscope-page .mjg-bzs-path article { gap: 12px; padding-block: 18px; }
body.mjg-refined.mjg-baziscope-page .mjg-bzs-path p { font-size: 13px; }
body.mjg-refined.mjg-baziscope-page .mjg-bzs-foundation { padding-block: 64px; gap: 7%; }
body.mjg-refined.mjg-baziscope-page .mjg-bzs-features article { padding-block: 34px; }
body.mjg-refined.mjg-baziscope-page .mjg-bzs-questions { padding: clamp(28px, 4.5vw, 58px); gap: clamp(28px, 4vw, 52px); }
body.mjg-refined.mjg-baziscope-page .mjg-bzs-question-list details { border-radius: var(--mjg-ref-radius); }
body.mjg-refined.mjg-baziscope-page .mjg-bzs-question-list summary { min-height: 56px; }

@media (hover: hover) and (pointer: fine) {
  body.mjg-refined .mjg-page .mjg-button:hover,
  body.mjg-refined .mjg-bzs-landing .mjg-button:hover { transform: translateY(-2px); }
  body.mjg-refined .mjg-ref-finder-grid > article:hover,
  body.mjg-refined.mjg-experience.home section[aria-labelledby="home-services-title"] .mjg-card:hover {
    border-color: #bbaa92;
    box-shadow: 0 8px 20px rgba(9, 39, 31, .045);
  }
}
@media (max-width: 1040px) {
  body.mjg-refined.mjg-baziscope-page .mjg-bzs-intro { grid-template-columns: 1fr; gap: 24px; }
  body.mjg-refined.mjg-baziscope-page .mjg-bzs-intro h1 { max-width: 23ch; }
  body.mjg-refined.mjg-baziscope-page .mjg-bzs-workbench { grid-template-columns: 1fr; }
  body.mjg-refined.mjg-baziscope-page .mjg-bzs-workbench-copy { position: static; }
  body.mjg-refined .mjg-ref-proof__logos,
  body.mjg-refined .mjg-ref-proof--full .mjg-ref-proof__logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 940px) {
  body.mjg-refined.mjg-experience.home .mjg-page .mjg-editorial-split { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); }
  body.mjg-refined.mjg-experience.home .mjg-editorial-split > div { padding: 30px; }
  body.mjg-refined.mjg-experience.home .mjg-editorial-split h1 { font-size: clamp(36px, 4.8vw, 45px); }
  body.mjg-refined .mjg-ref-proof__intro { align-items: flex-start; flex-direction: column; gap: 12px; }
  body.mjg-refined .mjg-ref-finder-grid { gap: 12px; }
  body.mjg-refined .mjg-ref-finder-grid > article { padding: 24px 20px; }
}
@media (max-width: 782px) {
  body.mjg-refined.admin-bar .elementor-location-header { top: 46px; }
}
@media (max-width: 780px) {
  body.mjg-refined.mjg-experience.home .mjg-page .mjg-editorial-split { grid-template-columns: 1fr; }
  body.mjg-refined.mjg-experience.home .mjg-editorial-split > div { padding: 32px 26px; }
  body.mjg-refined.mjg-experience.home .mjg-editorial-split h1 { max-width: 19ch; font-size: clamp(38px, 7.2vw, 52px); }
  body.mjg-refined.mjg-experience.home .mjg-editorial-media { min-height: 0; width: 100%; max-width: none; justify-self: stretch; }
  body.mjg-refined.mjg-experience.home .mjg-editorial-media img { height: auto; min-height: 0; aspect-ratio: 5 / 4; object-position: center 26%; }
  body.mjg-refined .mjg-ref-finder-grid { grid-template-columns: 1fr; }
  body.mjg-refined .mjg-ref-finder-grid > article { padding: 25px; }
  body.mjg-refined.mjg-experience .mjg-voice-grid { grid-template-columns: 1fr; }
  body.mjg-refined.mjg-experience .mjg-voice-grid blockquote { font-size: 21px; }
}
@media (max-width: 720px) {
  body.mjg-refined.mjg-experience .mjg-page { padding: 20px 18px 48px; }
  body.mjg-refined.mjg-experience .mjg-page > section + section { margin-top: 42px; }
  body.mjg-refined.mjg-experience .mjg-section-heading { grid-template-columns: 1fr; gap: 12px; }
  body.mjg-refined.mjg-experience .mjg-page h2 { font-size: clamp(28px, 7.4vw, 36px); }
  body.mjg-refined.mjg-experience .mjg-ref-proof__intro h2 { font-size: 26px; }
  body.mjg-refined .mjg-ref-proof__logos,
  body.mjg-refined .mjg-ref-proof--full .mjg-ref-proof__logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body.mjg-refined .mjg-ref-proof__logo { min-height: 104px; padding: 15px; }
  body.mjg-refined .mjg-ref-proof__logo img { max-width: min(100%, 140px); }
  body.mjg-refined.mjg-experience .mjg-client-voices { padding: 24px 18px; }
  body.mjg-refined.mjg-experience.mjg-services-page .mjg-page .mjg-table-wrap::before { display: none; content: none; }
  body.mjg-refined.mjg-baziscope-page .mjg-bzs-landing { width: calc(100% - 36px); padding-top: 24px; }
  body.mjg-refined.mjg-baziscope-page .mjg-bzs-intro { padding: 4px 0 30px; gap: 23px; }
  body.mjg-refined.mjg-baziscope-page .mjg-bzs-intro h1 { max-width: 18ch; font-size: clamp(38px, 9.2vw, 49px); }
  body.mjg-refined.mjg-baziscope-page .mjg-bzs-intro .mjg-actions { align-items: stretch; flex-direction: column; gap: 10px; }
  body.mjg-refined.mjg-baziscope-page .mjg-bzs-intro .mjg-actions a { min-height: 44px; width: fit-content; max-width: 100%; }
  body.mjg-refined.mjg-baziscope-page .mjg-bzs-calculator { padding: 22px 12px 4px; }
  body.mjg-refined.mjg-baziscope-page .mjg-bzs-calculator-top { padding-inline: 6px; }
  body.mjg-refined.mjg-baziscope-page .mjg-bzs-calculator-top > span { text-align: left; }
  body.mjg-refined.mjg-baziscope-page .mjg-bzs-workbench-copy { padding: 28px 24px; }
  body.mjg-refined.mjg-baziscope-page .mjg-bzs-foundation { padding-block: 44px; gap: 26px; }
  body.mjg-refined.mjg-baziscope-page .mjg-bzs-questions { grid-template-columns: 1fr; padding: 30px 20px; gap: 26px; }
  body.mjg-refined.mjg-baziscope-page .mjg-bzs-features article { padding-block: 28px; }
}
@media (max-width: 600px) {
  /* Elementor supplies the outer gutter; keep the reading area clear inside it. */
  body.mjg-refined.mjg-experience .mjg-page { padding-inline: 0; }
  body.mjg-refined.mjg-experience .mjg-page .mjg-hero { padding: 28px 24px; }
  body.mjg-refined.mjg-experience .mjg-page .mjg-art-hero { padding: 0; }
  body.mjg-refined.mjg-experience .mjg-art-hero__copy { padding: 28px 24px; }
  body.mjg-refined.mjg-baziscope-page .mjg-bzs-landing { width: calc(100% - 32px); padding-inline: 0; }
  body.mjg-refined.mjg-experience.home section[aria-labelledby="home-services-title"] .mjg-grid { grid-template-columns: 1fr; }
  body.mjg-refined.mjg-experience.home section[aria-labelledby="home-services-title"] .mjg-card,
  body.mjg-refined.mjg-experience.home section[aria-labelledby="home-services-title"] .mjg-card:nth-last-child(2),
  body.mjg-refined.mjg-experience.home section[aria-labelledby="home-services-title"] .mjg-card:last-child { grid-column: auto; }
  body.mjg-refined.mjg-experience.home .mjg-editorial-split .mjg-actions { align-items: stretch; flex-direction: column; }
  body.mjg-refined.mjg-experience.home .mjg-editorial-split .mjg-actions > a { width: 100%; }
  body.mjg-refined.mjg-experience .elementor-location-header .elementor-element-20bbd9f img { width: 145px !important; }
  body.mjg-refined.mjg-experience .elementor-location-header .elementor-element-e569d24 > .elementor-widget-wrap { padding-block: 8px; }
}
/* The shared Elementor article template keeps its original copy and publication data. */
body.mjg-refined.single-post { background: var(--mjg-ref-ivory); color: var(--mjg-ref-green-dark); }
body.mjg-refined.single-post .mjg-legacy-primary-nav {
  position: sticky;
  top: 0;
  z-index: 900;
  padding: 0;
  background: var(--mjg-ref-paper);
  border-bottom: 1px solid var(--mjg-ref-line);
  box-shadow: 0 3px 18px rgba(9, 39, 31, .045);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.mjg-refined.single-post.admin-bar .mjg-legacy-primary-nav { top: 32px; }
body.mjg-refined.single-post .mjg-legacy-primary-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(calc(100% - 48px), 1120px);
  margin: 0 auto;
  padding: 13px 0;
}
body.mjg-refined.single-post .mjg-legacy-primary-nav a { color: var(--mjg-ref-green-dark); text-decoration: none; }
body.mjg-refined.single-post .mjg-legacy-primary-nav__brand { font-size: 17px; font-weight: 750; line-height: 1.4; }
body.mjg-refined.single-post .mjg-legacy-primary-nav ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.mjg-refined.single-post .mjg-legacy-primary-nav li { margin: 0; padding: 0; }
body.mjg-refined.single-post .mjg-legacy-primary-nav li a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 650; }
body.mjg-refined.single-post .mjg-legacy-primary-nav a:hover { color: var(--mjg-ref-burgundy); }
body.mjg-refined.single-post :is(.mjg-legacy-primary-nav, .elementor-location-single) :is(a, [role="button"]):focus-visible { outline: 2px solid #a96d3f; outline-offset: 4px; }

/* Only these two observed widgets duplicate the site identity inside the article hero. */
body.mjg-refined.single-post .elementor-location-single .elementor-element-a9da021,
body.mjg-refined.single-post .elementor-location-single .elementor-element-6c53f73 { display: none; }
body.mjg-refined.single-post .elementor-location-single > .elementor-element-3b4481f6 {
  margin: 32px auto 0;
  width: min(calc(100% - 48px), 1120px);
  min-height: 0;
  padding: clamp(36px, 5vw, 68px) clamp(24px, 5vw, 64px);
  background: var(--mjg-ref-green-dark);
  border-radius: var(--mjg-ref-radius);
}
body.mjg-refined.single-post .elementor-element-3b4481f6 > .elementor-background-overlay,
body.mjg-refined.single-post .elementor-element-3b4481f6 > .elementor-shape { display: none; }
body.mjg-refined.single-post .elementor-element-3b4481f6 > .elementor-container { min-height: 0; max-width: 900px; }
body.mjg-refined.single-post .elementor-element-3b4481f6 .elementor-widget-wrap { padding: 0; align-content: center; }
body.mjg-refined.single-post .elementor-element-50d774be { margin: 0 0 24px; }
body.mjg-refined.single-post .elementor-element-50d774be .elementor-heading-title {
  color: var(--mjg-ref-paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.3vw, 56px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.03em;
  text-align: left;
  text-transform: none;
  overflow-wrap: break-word;
  margin: 0;
}
body.mjg-refined.single-post .elementor-element-2b8ca48f { margin: 0; text-align: left; }
body.mjg-refined.single-post .elementor-element-2b8ca48f .elementor-post-info { justify-content: flex-start; flex-wrap: wrap; gap: 8px 18px; }
body.mjg-refined.single-post .elementor-element-2b8ca48f :is(a, .elementor-post-info__item, .elementor-icon-list-text) { color: #e1d9cd; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.5; }
body.mjg-refined.single-post .elementor-element-2b8ca48f .elementor-icon-list-item::after { border-color: #64786d; }

body.mjg-refined.single-post .elementor-location-single > .elementor-element-2aa3f53d { padding: 30px 24px 0; background: var(--mjg-ref-ivory); }
body.mjg-refined.single-post .elementor-element-2aa3f53d > .elementor-container { max-width: 760px; margin-inline: auto; }
body.mjg-refined.single-post .elementor-element-2aa3f53d > .elementor-container > .elementor-column > .elementor-widget-wrap { padding: 0; }
body.mjg-refined.single-post .elementor-element-261359c { padding: 0 0 22px; margin: 0 0 28px; border-bottom: 1px solid var(--mjg-ref-line); }
body.mjg-refined.single-post .elementor-element-261359c > .elementor-container { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 12px; }
body.mjg-refined.single-post .elementor-element-261359c > .elementor-container > .elementor-column { width: auto; }
body.mjg-refined.single-post .elementor-element-261359c .elementor-widget-wrap { padding: 0; }
body.mjg-refined.single-post .elementor-element-38805f67 .elementor-heading-title { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 13px; font-weight: 650; line-height: 1.4; letter-spacing: .04em; color: var(--mjg-ref-muted); text-align: left; }
body.mjg-refined.single-post .elementor-element-e7d24a9 { --grid-side-margin: 4px; --grid-column-gap: 8px; --share-button-size: 16px; --share-button-icon-size: 16px; text-align: right; }
body.mjg-refined.single-post .elementor-element-e7d24a9 .elementor-share-btn { width: 44px; height: 44px; border: 1px solid var(--mjg-ref-line); border-radius: 2px; background: var(--mjg-ref-paper); color: var(--mjg-ref-green); }
body.mjg-refined.single-post .elementor-element-e7d24a9 .elementor-share-btn__icon { color: var(--mjg-ref-green); }
body.mjg-refined.single-post .elementor-element-e7d24a9 .elementor-share-btn svg { fill: currentColor; }
body.mjg-refined.single-post .elementor-element-da5f156 {
  width: 100%;
  min-width: 0;
  max-width: 760px;
  padding-inline: 0;
  margin-inline: auto;
  color: var(--mjg-ref-green-dark);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.8;
  overflow-wrap: break-word;
}
body.mjg-refined.single-post .elementor-element-da5f156 :is(p, li, blockquote, figcaption) { font-family: inherit; font-size: inherit; line-height: inherit; }
body.mjg-refined.single-post .elementor-element-da5f156 p { margin-bottom: 1.4em; }
body.mjg-refined.single-post .elementor-element-da5f156 :is(h2, h3, h4) { font-family: Georgia, "Times New Roman", serif; color: var(--mjg-ref-green); line-height: 1.2; letter-spacing: -.025em; text-transform: none; margin: 1.4em 0 .6em; }
body.mjg-refined.single-post .elementor-element-da5f156 h2 { font-size: 34px; }
body.mjg-refined.single-post .elementor-element-da5f156 h3 { font-size: 27px; }
body.mjg-refined.single-post .elementor-element-da5f156 a { color: var(--mjg-ref-burgundy); text-decoration: underline; text-underline-offset: .18em; }
body.mjg-refined.single-post .elementor-element-da5f156 :is(img, video, iframe) { max-width: 100%; }
body.mjg-refined.single-post .elementor-element-da5f156 img { height: auto; }
body.mjg-refined.single-post .elementor-element-da5f156 .mjg-editorial-note { font-size: 16px; line-height: 1.6; }

body.mjg-refined.single-post .elementor-location-single > .elementor-element-4cb7153 { padding: 44px 24px 64px; background: var(--mjg-ref-ivory); }
body.mjg-refined.single-post .elementor-element-4cb7153 > .elementor-container { max-width: 980px; }
body.mjg-refined.single-post .elementor-element-4f557e4 { padding: 0; margin: 0 0 24px; }
body.mjg-refined.single-post .elementor-element-4f557e4 .elementor-heading-title { font-family: Georgia, "Times New Roman", serif; font-size: 32px; line-height: 1.2; text-align: left; text-transform: none; color: var(--mjg-ref-green); }
body.mjg-refined.single-post .elementor-element-738dd22 .elementor-post__card { background: var(--mjg-ref-paper); border: 1px solid var(--mjg-ref-line); box-shadow: none; border-radius: 3px; }
body.mjg-refined.single-post .elementor-element-738dd22 .elementor-post__text { padding: 24px 24px 16px; margin: 0; text-align: left; }
body.mjg-refined.single-post .elementor-element-738dd22 .elementor-post__title { margin: 0 0 12px; }
body.mjg-refined.single-post .elementor-element-738dd22 .elementor-post__title a { color: var(--mjg-ref-green); font-family: Georgia, "Times New Roman", serif; font-size: 25px; line-height: 1.2; text-transform: none; }
body.mjg-refined.single-post .elementor-element-738dd22 .elementor-post__excerpt p { color: var(--mjg-ref-muted); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.65; margin: 0; }
body.mjg-refined.single-post .elementor-element-738dd22 .elementor-post__meta-data { padding: 16px 24px; color: var(--mjg-ref-muted); border-color: var(--mjg-ref-line); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 12px; text-align: left; }
@media (max-width: 782px) {
  body.mjg-refined.single-post.admin-bar .mjg-legacy-primary-nav { top: 46px; }
}
@media (max-width: 600px) {
  body.mjg-refined.single-post .mjg-legacy-primary-nav__inner { width: calc(100% - 32px); padding: 10px 0 4px; gap: 2px; flex-direction: column; align-items: stretch; }
  body.mjg-refined.single-post .mjg-legacy-primary-nav__brand { font-size: 15px; }
  body.mjg-refined.single-post .mjg-legacy-primary-nav ul { justify-content: space-between; gap: 0 12px; }
  body.mjg-refined.single-post .mjg-legacy-primary-nav li a { font-size: 13px; }
  body.mjg-refined.single-post .elementor-location-single > .elementor-element-3b4481f6 { width: calc(100% - 32px); margin-top: 20px; padding: 30px 24px; }
  body.mjg-refined.single-post .elementor-element-50d774be .elementor-heading-title { font-size: clamp(32px, 8.7vw, 40px); }
  body.mjg-refined.single-post .elementor-location-single > .elementor-element-2aa3f53d { padding: 24px 24px 0; }
  body.mjg-refined.single-post .elementor-element-da5f156 { font-size: 17px; line-height: 1.75; }
  body.mjg-refined.single-post .elementor-element-261359c { padding-bottom: 16px; margin-bottom: 24px; }
  body.mjg-refined.single-post .elementor-element-e7d24a9 { --grid-side-margin: 2px; --grid-column-gap: 4px; }
  body.mjg-refined.single-post .elementor-location-single > .elementor-element-4cb7153 { padding: 36px 16px 48px; }
}

@media (prefers-reduced-motion: reduce) {
  body.mjg-refined .mjg-page *,
  body.mjg-refined .mjg-page *::before,
  body.mjg-refined .mjg-page *::after,
  body.mjg-refined .mjg-bzs-landing *,
  body.mjg-refined .mjg-bzs-landing *::before,
  body.mjg-refined .mjg-bzs-landing *::after,
  body.mjg-refined .mjg-primary-nav * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  body.mjg-refined .mjg-page .mjg-button:hover,
  body.mjg-refined .mjg-bzs-landing .mjg-button:hover { transform: none; }
}

/* Historical article context stays compact and readable. */
body.mjg-refined .mjg-archive-note { margin: 24px 0; padding: 18px 22px; border-left: 3px solid #947c50; background: #f5f1e8; color: #28382f; font-size: 15px; line-height: 1.7; }
body.mjg-refined .mjg-archive-note p { margin: 0 0 10px; }
body.mjg-refined .mjg-archive-note p:last-child { margin-bottom: 0; }
body.mjg-refined .mjg-archive-gap { font-style: italic; }

/* Keep column titles and teacher names readable on the training table's green headers. */
body.mjg-refined.mjg-experience .mjg-page .mjg-table-wrap[aria-labelledby="training-history-title"] th,
body.mjg-refined.mjg-experience .mjg-page .mjg-table-wrap[aria-labelledby="training-history-title"] th * {
  color: var(--mjg-ref-ivory, #fbf7ef) !important;
}
