
.mph-v4{
  width:min(100%,var(--mph-article-width,1040px));
  margin:0 auto;
  color:var(--mph-body,#3B4652);
  font-size:16px;
  line-height:1.75;
}
.mph-v4,
.mph-v4 *{box-sizing:border-box}
.mph-v4 h2,
.mph-v4 h3{color:var(--mph-heading,#152536)}
.mph-v4 .mph-section-title{
  font-size:clamp(1.6rem,3vw,2.15rem);
  line-height:1.18;
  margin:0 0 18px;
}
.mph-v4 .mph-eyebrow{
  color:var(--mph-accent,#2E7D5B);
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:.78rem;
  font-weight:800;
  margin:0 0 12px;
}
.mph-v4 .mph-deck{
  max-width:780px;
  font-size:1.08rem;
  line-height:1.7;
  color:#68747f;
}
.mph-v4 .mph-intro{margin:22px 0 28px}
.mph-v4 .mph-image-slot{margin:0;width:100%}
.mph-v4 .mph-image-slot img{
  width:100%;
  height:auto;
  display:block;
  border-radius:16px;
}
.mph-v4 .mph-image-slot--feature img{
  aspect-ratio:16/8.2;
  object-fit:cover;
}
.mph-v4 .mph-image-slot figcaption{
  margin-top:8px;
  color:#7b858e;
  font-size:.82rem;
}
.mph-v4 .mph-image-placeholder{
  min-height:300px;
  border:1.5px dashed #a8bdb0;
  border-radius:16px;
  background:linear-gradient(145deg,#f5faf7,#eef5f1);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:28px;
  color:#647168;
}
.mph-v4 .mph-image-slot--feature .mph-image-placeholder{min-height:420px}
.mph-v4 .mph-image-placeholder span{
  display:block;
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.1em;
  color:var(--mph-accent,#2E7D5B);
  margin-bottom:8px;
}
.mph-v4 .mph-image-placeholder strong{
  max-width:560px;
  color:var(--mph-heading,#152536);
  line-height:1.45;
}
.mph-v4 .mph-image-placeholder small{
  max-width:560px;
  margin-top:8px;
  opacity:.75;
}
.mph-v4 .mph-quick-answer{
  display:grid;
  grid-template-columns:48px 1fr;
  gap:16px;
  background:var(--mph-quick-bg,#EEF7F2);
  border:1px solid #dbe9e1;
  border-radius:15px;
  padding:22px;
  margin:30px 0 42px;
}
.mph-v4 .mph-quick-icon{
  width:42px;height:42px;
  border-radius:50%;
  display:grid;place-items:center;
  background:#d8efe2;
  color:var(--mph-accent,#2E7D5B);
  font-weight:900;
  font-size:1.18rem;
}
.mph-v4 .mph-quick-label{
  color:var(--mph-accent,#2E7D5B);
  font-weight:900;
  font-size:.76rem;
  letter-spacing:.08em;
  margin:2px 0 6px;
}
.mph-v4 .mph-quick-copy{margin:0}
.mph-v4 .mph-key-facts{margin:40px 0}
.mph-v4 .mph-fact-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.mph-v4 .mph-fact-card{
  min-height:104px;
  border:1px solid var(--mph-border,#E1E7E4);
  border-radius:13px;
  padding:16px;
  background:#fff;
}
.mph-v4 .mph-fact-label{
  color:#7b8690;
  font-size:.76rem;
  text-transform:uppercase;
  letter-spacing:.05em;
  margin:0 0 7px;
}
.mph-v4 .mph-fact-value{
  color:var(--mph-heading,#152536);
  font-size:1rem;
  font-weight:750;
  line-height:1.4;
  margin:0;
}
.mph-v4 .mph-secondary-image-row{
  width:58%;
  margin:42px auto 46px 0;
}
.mph-v4 .mph-secondary-image-row .mph-image-placeholder{min-height:260px}
.mph-v4 .mph-content-section{
  border-top:1px solid var(--mph-border,#E1E7E4);
  padding-top:40px;
  margin:44px 0;
  gap:36px;
  align-items:center;
}
.mph-v4 .mph-copy-column,
.mph-v4 .mph-media-column{min-width:0}
.mph-v4 .mph-section-copy{margin:0 0 16px}
.mph-v4 .mph-subheading{
  font-size:1.22rem;
  margin-top:1.5em;
}
.mph-v4 .mph-body-list{padding-left:1.25em}
.mph-v4 .mph-buyer-checklist{
  background:var(--mph-soft-bg,#F6F8F7);
  border:1px solid #dbe9e1;
  border-radius:15px;
  padding:24px;
  margin:44px 0;
  gap:28px;
}
.mph-v4 .mph-check-list{display:grid;gap:10px}
.mph-v4 .mph-check-item{
  display:grid;
  grid-template-columns:22px 1fr;
  gap:10px;
  align-items:start;
}
.mph-v4 .mph-check-mark{
  width:20px;height:20px;border-radius:50%;
  display:grid;place-items:center;
  background:#d8efe2;color:var(--mph-accent,#2E7D5B);
  font-size:.7rem;font-weight:900;margin:2px 0 0;
}
.mph-v4 .mph-check-text{margin:0}
.mph-v4 .mph-important-note{
  border-left:4px solid #d9a441;
  background:#fffaf1;
  border-radius:10px;
  padding:22px;
  margin:42px 0;
}
.mph-v4 .mph-note-title{
  font-size:1.18rem;
  margin:0 0 8px;
}
.mph-v4 .mph-faq-section{
  border-top:1px solid var(--mph-border,#E1E7E4);
  padding-top:40px;
  margin-top:44px;
}
.mph-v4 .mph-faq-item{
  border-top:1px solid var(--mph-border,#E1E7E4);
  padding:16px 0;
}
.mph-v4 .mph-faq-item:last-child{border-bottom:1px solid var(--mph-border,#E1E7E4)}
.mph-v4 .mph-faq-item summary{
  cursor:pointer;
  font-weight:800;
  color:var(--mph-heading,#152536);
}
.mph-v4 .mph-faq-answer{margin-top:10px}
.mph-v4 .mph-sources{margin:34px 0 12px}
.mph-v4 .mph-sources-details{
  border-top:1px solid var(--mph-border,#E1E7E4);
  border-bottom:1px solid var(--mph-border,#E1E7E4);
  padding:0;
}
.mph-v4 .mph-sources-details summary{
  cursor:pointer;
  font-weight:800;
  color:var(--mph-heading,#152536);
  padding:16px 0;
}
.mph-v4 .mph-source-list{
  margin:0 0 16px;
  padding-left:1.2em;
  font-size:.9rem;
  color:#727d86;
}
.mph-v4 .mph-freshness{
  display:flex;
  flex-wrap:wrap;
  gap:8px 24px;
  font-size:.84rem;
  color:#7a858e;
  margin:12px 0 36px;
}
.mph-v4 .mph-freshness-item{margin:0}
.mph-v4 .mph-link-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin:42px 0;
}
.mph-v4 .mph-link-card{
  border:1px solid var(--mph-border,#E1E7E4);
  border-radius:13px;
  padding:20px;
  background:#fff;
}
.mph-v4 .mph-link-eyebrow{
  color:var(--mph-accent,#2E7D5B);
  font-size:.72rem;
  letter-spacing:.08em;
  font-weight:900;
  margin:0 0 6px;
}
.mph-v4 .mph-link-title{
  font-size:1.1rem;
  margin:0 0 16px;
}
.mph-v4 .mph-link-button .wp-block-button__link{
  background:transparent!important;
  color:var(--mph-primary,#17324D)!important;
  padding:0!important;
  font-weight:800;
}
.mph-v4 .mph-cta{
  background:var(--mph-cta-bg,#1F6B50);
  color:#fff;
  border-radius:15px;
  padding:28px;
  margin:44px 0 10px;
  align-items:center;
}
.mph-v4 .mph-cta-title{color:#fff;margin:0 0 8px}
.mph-v4 .mph-cta-copy{color:#fff;margin:0;opacity:.92}
.mph-v4 .mph-cta-button-col{
  display:flex;
  align-items:center;
  justify-content:flex-end;
}
.mph-v4 .mph-cta-button .wp-block-button__link{
  background:var(--mph-button-bg,#2E7D5B)!important;
  color:var(--mph-button-text,#fff)!important;
  white-space:nowrap;
  font-weight:800;
}
@media(max-width:900px){
  .mph-v4 .mph-fact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mph-v4 .mph-content-section,
  .mph-v4 .mph-buyer-checklist,
  .mph-v4 .mph-cta{flex-wrap:wrap}
  .mph-v4 .mph-secondary-image-row{width:76%}
}
@media(max-width:640px){
  .mph-v4 .mph-image-slot--feature .mph-image-placeholder{min-height:250px}
  .mph-v4 .mph-image-slot--feature img{aspect-ratio:4/3}
  .mph-v4 .mph-fact-grid{grid-template-columns:1fr 1fr}
  .mph-v4 .mph-secondary-image-row{width:100%}
  .mph-v4 .mph-link-grid{grid-template-columns:1fr}
  .mph-v4 .mph-quick-answer{grid-template-columns:1fr}
  .mph-v4 .mph-cta-button-col{justify-content:flex-start}
}
@media(max-width:420px){
  .mph-v4 .mph-fact-grid{grid-template-columns:1fr}
}

.mph-v4 .mph-faq-item summary,
.mph-v4 .mph-sources-details summary{
  list-style:none;
  position:relative;
  padding-right:30px;
}
.mph-v4 .mph-faq-item summary::-webkit-details-marker,
.mph-v4 .mph-sources-details summary::-webkit-details-marker{display:none}
.mph-v4 .mph-faq-item summary::after,
.mph-v4 .mph-sources-details summary::after{
  content:"⌄";
  position:absolute;
  right:2px;
  top:50%;
  transform:translateY(-50%);
  color:var(--mph-accent,#2E7D5B);
  font-size:1.1rem;
  transition:transform .18s ease;
}
.mph-v4 .mph-faq-item[open] summary::after,
.mph-v4 .mph-sources-details[open] summary::after{
  transform:translateY(-50%) rotate(180deg);
}


/* v4.0.1 — Strong article identity */
.mph-v4 .mph-article-h1{
  color:var(--mph-heading,#152536);
  font-size:clamp(2.15rem,5vw,3.8rem);
  line-height:1.06;
  letter-spacing:-.025em;
  margin:10px 0 18px;
  max-width:980px;
}
.mph-v4 .mph-intro{
  margin:0 0 24px;
}
.mph-v4 .mph-intro + .mph-image-slot--feature{
  margin-top:6px;
}

/* v4.0.1 removes the generic secondary-left placeholder completely. */
.mph-v4 .mph-secondary-image-row{
  display:none!important;
}


/* =========================================================
   v4.0.2 — Editorial Magazine hierarchy
   Inspired by the LPI long-form visual rhythm while keeping
   Malaysia Property Hub's own green identity.
   ========================================================= */
.mph-v4 .mph-article-header{
  max-width:930px;
  margin:58px 0 34px;
}
.mph-v4 .mph-article-header .mph-eyebrow{
  margin:0 0 18px;
}
.mph-v4 .mph-eyebrow{
  color:var(--mph-accent,#2E7D5B);
  text-transform:uppercase;
  letter-spacing:.16em;
  font-size:.75rem;
  line-height:1.35;
  font-weight:850;
}
.mph-v4 .mph-article-h1{
  max-width:930px;
  color:var(--mph-heading,#152536);
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(3.15rem,6.2vw,5.5rem);
  font-weight:500;
  line-height:.98;
  letter-spacing:-.04em;
  margin:0 0 24px;
  text-wrap:balance;
}
.mph-v4 .mph-deck{
  max-width:820px;
  margin:0;
  color:#68747f;
  font-size:clamp(1.08rem,1.7vw,1.32rem);
  line-height:1.6;
}
.mph-v4 .mph-article-header + .mph-image-slot--feature{
  margin-top:8px;
}
.mph-v4 .mph-image-slot--feature{
  margin-bottom:40px;
}
.mph-v4 .mph-image-slot--feature img{
  aspect-ratio:16/8.4;
}

/* Quick Answer: full-width editorial callout; NO grid columns. */
.mph-v4 .mph-quick-answer{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  grid-template-columns:none!important;
  background:var(--mph-quick-bg,#EEF7F2);
  border:0;
  border-left:4px solid var(--mph-accent,#2E7D5B);
  border-radius:0 12px 12px 0;
  padding:24px 30px 26px;
  margin:38px 0 48px;
}
.mph-v4 .mph-quick-answer > *{
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
}
.mph-v4 .mph-quick-body{
  display:block!important;
  width:100%!important;
  min-width:0!important;
}
.mph-v4 .mph-quick-icon{
  display:none!important;
}
.mph-v4 .mph-quick-label{
  display:block;
  width:100%;
  color:var(--mph-accent,#2E7D5B);
  font-size:.74rem;
  line-height:1.3;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
  margin:0 0 10px;
}
.mph-v4 .mph-quick-copy{
  display:block!important;
  width:100%!important;
  max-width:900px!important;
  color:var(--mph-heading,#152536);
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(1.16rem,1.8vw,1.42rem);
  line-height:1.55;
  margin:0!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
}

/* Stronger long-form reading rhythm, closer to the supplied reference. */
.mph-v4 .mph-content-section{
  margin:58px 0;
  padding-top:48px;
}
.mph-v4 .mph-section-title{
  font-family:Georgia,"Times New Roman",serif;
  font-weight:500;
  letter-spacing:-.02em;
}
.mph-v4 .mph-section-copy{
  font-size:1.04rem;
  line-height:1.78;
}
.mph-v4 .mph-important-note{
  margin:52px 0;
}

/* The generic extra placeholder is permanently suppressed for old v4 content too. */
.mph-v4 .mph-secondary-image-row,
.mph-v4 .mph-image-slot--secondary-left{
  display:none!important;
}

@media(max-width:760px){
  .mph-v4 .mph-article-header{
    margin:34px 0 24px;
  }
  .mph-v4 .mph-article-h1{
    font-size:clamp(2.45rem,11vw,4rem);
    line-height:1.02;
  }
  .mph-v4 .mph-quick-answer{
    padding:20px 20px 22px;
  }
}


/* =========================================================
   v4.1.0 — Trilingual Switcher
   ========================================================= */
.mph-language-switcher{
  position:fixed;
  top:104px;
  right:22px;
  z-index:9990;
  display:flex;
  align-items:center;
  gap:2px;
  padding:5px;
  border:1px solid rgba(21,37,54,.12);
  border-radius:999px;
  background:rgba(255,255,255,.96);
  box-shadow:0 10px 28px rgba(21,37,54,.10);
  backdrop-filter:blur(10px);
}
.mph-language-option{
  min-width:44px;
  padding:8px 12px;
  border-radius:999px;
  color:#56616b;
  text-decoration:none!important;
  text-align:center;
  font-size:.78rem;
  line-height:1;
  font-weight:800;
}
.mph-language-option:hover{
  color:var(--mph-heading,#152536);
  background:#f1f4f3;
}
.mph-language-option.is-active{
  color:#fff!important;
  background:#6c7980;
}

/* =========================================================
   v4.1.0 — Related content AFTER CTA
   ========================================================= */
.mph-v4 .mph-related-section{
  border-top:1px solid var(--mph-border,#E1E7E4);
  padding-top:48px;
  margin:58px 0 20px;
}
.mph-v4 .mph-related-heading{
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(1.9rem,3.2vw,2.7rem);
  font-weight:500;
  line-height:1.1;
  letter-spacing:-.025em;
  margin:0 0 10px;
}
.mph-v4 .mph-related-intro{
  max-width:760px;
  color:#68747f;
  margin:0 0 24px;
}
.mph-v4 .mph-related-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.mph-v4 .mph-related-card{
  border:1px solid var(--mph-border,#E1E7E4);
  border-radius:14px;
  padding:22px;
  background:#fff;
}
.mph-v4 .mph-related-card--project{
  background:#f4f8f5;
}
.mph-v4 .mph-related-card--lpi{
  background:#f7f7f5;
}
.mph-v4 .mph-related-eyebrow{
  color:var(--mph-accent,#2E7D5B);
  font-size:.69rem;
  letter-spacing:.1em;
  font-weight:900;
  margin:0 0 7px;
}
.mph-v4 .mph-related-title{
  font-family:Georgia,"Times New Roman",serif;
  font-size:1.3rem;
  font-weight:500;
  line-height:1.25;
  margin:0 0 8px;
}
.mph-v4 .mph-related-copy{
  color:#68747f;
  font-size:.92rem;
  line-height:1.6;
  margin:0 0 14px;
}
.mph-v4 .mph-related-button .wp-block-button__link{
  background:transparent!important;
  color:var(--mph-primary,#17324D)!important;
  padding:0!important;
  font-weight:800;
}

/* Old v4.0 relationship grid is intentionally hidden after v4.1 migration. */
.mph-v4 > .mph-link-grid{
  display:none!important;
}

@media(max-width:760px){
  .mph-language-switcher{
    top:auto;
    right:14px;
    bottom:16px;
  }
  .mph-v4 .mph-related-grid{
    grid-template-columns:1fr;
  }
}


/* =========================================================
   v4.2.0 — Independent MPH Article Menu Bar
   ========================================================= */


.mph-v4 .mph-site-nav{
  position:sticky;
  top:0;
  z-index:900;
  width:100vw;
  margin-left:calc(50% - 50vw);
  background:rgba(255,255,255,.97);
  border-bottom:1px solid rgba(21,37,54,.10);
  backdrop-filter:blur(12px);
}
body.admin-bar .mph-v4 .mph-site-nav{top:32px}

.mph-v4 .mph-site-nav-inner{
  width:min(calc(100% - 34px),1180px);
  min-height:66px;
  margin:0 auto;
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:26px;
  align-items:center;
}
.mph-v4 .mph-site-brand a{
  color:var(--mph-heading,#152536);
  text-decoration:none!important;
  font-family:Georgia,"Times New Roman",serif;
  font-size:1.08rem;
  font-weight:600;
  white-space:nowrap;
}
.mph-v4 .mph-site-menu{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:23px;
  min-width:0;
}
.mph-v4 .mph-site-menu a{
  color:#53606a;
  text-decoration:none!important;
  font-size:.84rem;
  font-weight:750;
  white-space:nowrap;
}
.mph-v4 .mph-site-menu a:hover{color:var(--mph-accent,#2E7D5B)}

.mph-v4 .mph-nav-languages{
  display:flex;
  gap:2px;
  padding:4px;
  border:1px solid #dfe5e1;
  border-radius:999px;
  background:#fff;
}
.mph-v4 .mph-nav-lang{
  min-width:41px;
  padding:7px 10px;
  border-radius:999px;
  text-align:center;
  text-decoration:none!important;
  color:#657078;
  font-size:.73rem;
  line-height:1;
  font-weight:850;
}
.mph-v4 .mph-nav-lang.is-active{
  color:#fff!important;
  background:#69777e;
}

/* =========================================================
   v4.2.0 — Site Footer
   ========================================================= */
.mph-v4 .mph-site-footer{
  width:100vw;
  margin-left:calc(50% - 50vw);
  margin-top:66px;
  background:#132b25;
  color:#fff;
}
.mph-v4 .mph-site-footer-inner{
  width:min(calc(100% - 34px),1180px);
  margin:0 auto;
  padding:44px 0 30px;
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:26px 50px;
}
.mph-v4 .mph-footer-brand strong{
  display:block;
  font-family:Georgia,"Times New Roman",serif;
  font-size:1.45rem;
  font-weight:500;
  margin-bottom:9px;
}
.mph-v4 .mph-footer-brand p{
  max-width:560px;
  color:rgba(255,255,255,.74);
  margin:0;
  line-height:1.65;
}
.mph-v4 .mph-footer-links{
  display:flex;
  flex-wrap:wrap;
  align-content:flex-start;
  justify-content:flex-end;
  gap:10px 20px;
}
.mph-v4 .mph-footer-links a{
  color:#fff;
  text-decoration:none!important;
  font-size:.85rem;
  font-weight:700;
}
.mph-v4 .mph-footer-note{
  grid-column:1/-1;
  padding-top:22px;
  border-top:1px solid rgba(255,255,255,.16);
  color:rgba(255,255,255,.65);
  font-size:.78rem;
  line-height:1.6;
}
.mph-v4 .mph-footer-copy{
  grid-column:1/-1;
  color:rgba(255,255,255,.50);
  font-size:.74rem;
}

/* Related stays after CTA and before Footer. */
.mph-v4 .mph-cta + .mph-related-section{margin-top:58px}

@media(max-width:900px){
  .mph-v4 .mph-site-nav-inner{
    grid-template-columns:1fr auto;
    min-height:auto;
    padding:12px 0;
  }
  .mph-v4 .mph-site-menu{
    grid-column:1/-1;
    grid-row:2;
    justify-content:flex-start;
    overflow-x:auto;
    padding-bottom:4px;
  }
}
@media(max-width:782px){
  body.admin-bar .mph-v4 .mph-site-nav{top:46px}
}
@media(max-width:640px){
  .mph-v4 .mph-site-brand a{font-size:.96rem}
  .mph-v4 .mph-nav-lang{min-width:36px;padding:7px 8px}
  .mph-v4 .mph-site-footer-inner{grid-template-columns:1fr}
  .mph-v4 .mph-footer-links{justify-content:flex-start}
  .mph-v4 .mph-footer-note,
  .mph-v4 .mph-footer-copy{grid-column:1}
}


/* v4.2.1 — fallback safety.
   The floating EN / 中文 / BM switcher remains visible only for an older
   generated Post that has not yet received the new Menu Bar. PHP suppresses
   it automatically once MPH_SITE_NAV is present. */
.mph-framework-status{
  line-height:1.6;
}


/* =========================================================
   v4.2.2 — MPH framework styles are deliberately GLOBAL.
   The Gutenberg editor can place tail framework blocks just
   outside .mph-v4; they must still keep the full design.
   ========================================================= */

/* Original MPH-style menu hierarchy */
.mph-site-nav{
  position:sticky;
  top:0;
  z-index:900;
  width:100%;
  background:#fff;
  border-bottom:1px solid #e8ece9;
}
body.admin-bar .mph-site-nav{top:32px}

.mph-site-nav-inner{
  width:min(calc(100% - 44px),1180px);
  min-height:74px;
  margin:0 auto;
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:32px;
  align-items:center;
}
.mph-site-brand a{
  color:#223142!important;
  text-decoration:none!important;
  font-family:Georgia,"Times New Roman",serif;
  font-size:1.18rem;
  font-weight:600;
  letter-spacing:.075em;
  white-space:nowrap;
}
.mph-site-menu{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:34px;
  min-width:0;
}
.mph-site-menu a{
  color:#28343f!important;
  text-decoration:none!important;
  font-size:.78rem;
  line-height:1;
  font-weight:700;
  letter-spacing:.025em;
  white-space:nowrap;
}
.mph-site-menu a:hover{color:#2E7D5B!important}

.mph-nav-languages{
  display:flex;
  gap:2px;
  padding:4px;
  border:1px solid #dfe5e1;
  border-radius:999px;
  background:#fff;
}
.mph-nav-lang{
  min-width:41px;
  padding:7px 10px;
  border-radius:999px;
  text-align:center;
  text-decoration:none!important;
  color:#657078!important;
  font-size:.73rem;
  line-height:1;
  font-weight:850;
}
.mph-nav-lang.is-active{
  color:#fff!important;
  background:#69777e;
}

/* Related section — works inside OR outside .mph-v4 */
.mph-related-section{
  width:min(calc(100% - 44px),1040px);
  margin:60px auto 20px!important;
  padding-top:44px;
  border-top:1px solid #e1e7e4;
}
.mph-related-heading{
  color:#152536!important;
  font-family:Georgia,"Times New Roman",serif!important;
  font-size:clamp(2rem,3.2vw,2.8rem)!important;
  font-weight:500!important;
  line-height:1.1!important;
  margin:0 0 10px!important;
}
.mph-related-intro{
  max-width:780px;
  color:#68747f!important;
  margin:0 0 24px!important;
}
.mph-related-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:16px!important;
}
.mph-related-card{
  border:1px solid #e1e7e4!important;
  border-radius:14px!important;
  padding:22px!important;
  background:#fff!important;
}
.mph-related-card--project{background:#f3f8f5!important}
.mph-related-card--lpi{background:#f7f7f5!important}
.mph-related-eyebrow{
  color:#2E7D5B!important;
  font-size:.7rem!important;
  letter-spacing:.09em!important;
  font-weight:900!important;
  margin:0 0 8px!important;
}
.mph-related-title{
  color:#152536!important;
  font-family:Georgia,"Times New Roman",serif!important;
  font-size:1.35rem!important;
  font-weight:500!important;
  line-height:1.25!important;
  margin:0 0 8px!important;
}
.mph-related-copy{
  color:#68747f!important;
  font-size:.94rem!important;
  line-height:1.6!important;
  margin:0 0 15px!important;
}
.mph-related-button .wp-block-button__link{
  background:#2E7D5B!important;
  color:#fff!important;
  border-radius:999px!important;
  padding:10px 18px!important;
  font-weight:800!important;
}

/* CTA should retain MPH green even if Gutenberg moves it outside wrapper */
.mph-cta{
  width:min(calc(100% - 44px),1040px);
  margin:48px auto 0!important;
  background:#1F6B50!important;
  color:#fff!important;
  border-radius:15px!important;
  padding:28px!important;
}
.mph-cta h2,.mph-cta p{color:#fff!important}
.mph-cta .wp-block-button__link{
  background:#2E7D5B!important;
  color:#fff!important;
  border-radius:999px!important;
}

/* Full original-style MPH footer */
.mph-site-footer{
  width:100%!important;
  margin:66px 0 0!important;
  background:#152e27!important;
  color:#fff!important;
}
.mph-site-footer-inner{
  width:min(calc(100% - 44px),1180px)!important;
  margin:0 auto!important;
  padding:50px 0 28px!important;
  display:grid!important;
  grid-template-columns:1.35fr .7fr .75fr 1fr!important;
  gap:34px!important;
}
.mph-footer-brand strong{
  display:block!important;
  color:#fff!important;
  font-family:Georgia,"Times New Roman",serif!important;
  font-size:1.35rem!important;
  font-weight:500!important;
  margin-bottom:10px!important;
}
.mph-footer-brand p{
  max-width:340px!important;
  color:rgba(255,255,255,.72)!important;
  line-height:1.65!important;
  margin:0!important;
}
.mph-footer-column h3{
  color:#fff!important;
  font-size:.86rem!important;
  text-transform:uppercase!important;
  letter-spacing:.06em!important;
  margin:0 0 14px!important;
}
.mph-footer-column a{
  display:block!important;
  color:rgba(255,255,255,.76)!important;
  text-decoration:none!important;
  margin:0 0 9px!important;
  font-size:.86rem!important;
}
.mph-footer-column a:hover{color:#fff!important}
.mph-footer-office p{
  color:rgba(255,255,255,.72)!important;
  font-size:.84rem!important;
  line-height:1.6!important;
  margin:0 0 12px!important;
}
.mph-footer-phone{font-weight:800!important;color:#fff!important}
.mph-footer-note{
  grid-column:1/-1!important;
  margin-top:10px!important;
  padding-top:20px!important;
  border-top:1px solid rgba(255,255,255,.14)!important;
  color:rgba(255,255,255,.58)!important;
  font-size:.76rem!important;
  line-height:1.6!important;
}
.mph-footer-copy{
  grid-column:1/-1!important;
  color:rgba(255,255,255,.48)!important;
  font-size:.74rem!important;
}

/* The old raw link grid is never shown. */
.mph-link-grid{display:none!important}

@media(max-width:980px){
  .mph-site-nav-inner{
    grid-template-columns:1fr auto;
    min-height:auto;
    padding:13px 0;
  }
  .mph-site-menu{
    grid-column:1/-1;
    grid-row:2;
    justify-content:flex-start;
    overflow-x:auto;
    gap:24px;
    padding:5px 0 2px;
  }
  .mph-site-footer-inner{
    grid-template-columns:1fr 1fr!important;
  }
}
@media(max-width:782px){
  body.admin-bar .mph-site-nav{top:46px}
}
@media(max-width:640px){
  .mph-site-brand a{
    font-size:.92rem;
    letter-spacing:.045em;
  }
  .mph-nav-lang{min-width:35px;padding:7px 8px}
  .mph-related-grid{grid-template-columns:1fr!important}
  .mph-site-footer-inner{grid-template-columns:1fr!important}
  .mph-footer-note,.mph-footer-copy{grid-column:1!important}
}


/* =========================================================
   v4.3.0 — Clean Editor Architecture
   Menu / Related / Footer are rendered outside Gutenberg.
   ========================================================= */
.mph-frontend-tail{
  width:100%;
  margin:0;
  padding:0;
}
.mph-frontend-tail .mph-related-section{
  width:min(calc(100% - 44px),1040px);
  margin:60px auto 20px!important;
}
.mph-frontend-tail .mph-site-footer{
  width:100%!important;
}

/* Keep old floating language selector available only as a fallback
   if a theme does not fire the main Loop hooks. */
.mph-language-switcher{
  position:fixed;
  top:104px;
  right:22px;
  z-index:9990;
  display:flex;
  align-items:center;
  gap:2px;
  padding:5px;
  border:1px solid rgba(21,37,54,.12);
  border-radius:999px;
  background:rgba(255,255,255,.96);
  box-shadow:0 10px 28px rgba(21,37,54,.10);
}


/* =========================================================
   v4.4.0 — Stable public order, image-only editor
   Menu → Article → Related → Footer
   ========================================================= */
.mph-public-shell{
  width:100%;
  margin:0;
  padding:0;
}
.mph-public-article{
  width:100%;
}
.mph-public-after-article{
  width:100%;
  margin:0;
  padding:0;
}

/* The Menu is the first front-end component generated by the content filter. */
.mph-public-shell > .mph-site-nav{
  margin-top:0!important;
}

/* Related is always below the real article content. */
.mph-public-after-article .mph-related-section{
  width:min(calc(100% - 44px),1040px);
  margin:60px auto 20px!important;
}

/* Footer is always the final public component. */
.mph-public-after-article .mph-site-footer{
  width:100%!important;
  margin-top:66px!important;
}

/* Old framework should never display if a cached Post still contains it. */
.mph-public-article .mph-link-grid,
.mph-public-article .mph-related-section,
.mph-public-article .mph-site-footer,
.mph-public-article .mph-site-nav{
  display:none!important;
}


/* =========================================================
   v4.5.0 — Stable article width + FAQ alignment fix
   ========================================================= */
.mph-public-article{
  width:min(calc(100% - 44px),1040px)!important;
  margin:0 auto!important;
  padding:0!important;
}
.mph-public-article > .mph-v4{
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
}
.mph-public-article .mph-faq-section,
.mph-public-article .mph-sources,
.mph-public-article .mph-freshness,
.mph-public-article .mph-cta,
.mph-public-article .mph-important-note,
.mph-public-article .mph-buyer-checklist{
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
}
.mph-public-article .mph-faq-section{
  clear:both!important;
}
.mph-public-article .mph-faq-section h2{
  margin-left:0!important;
}
@media(max-width:640px){
  .mph-public-article{
    width:min(calc(100% - 28px),1040px)!important;
  }
}


/* =========================================================
   v4.5.1 — Legacy orphan-block containment hotfix
   Fixes FAQ / Sources / Freshness drifting to viewport-left
   without changing the image-only backend.
   ========================================================= */

/*
 * Older generated articles may contain a structurally valid FAQ block that
 * is no longer inside the original `.mph-v4` Group after several historical
 * migrations. The CTA still looked centered because it had its own global
 * max-width rule; FAQ / Sources / Freshness did not.
 *
 * These selectors are intentionally framework-global and idempotent:
 * - if the blocks are already inside a 1040px article wrapper, width:100%
 *   simply fills that wrapper;
 * - if they are orphaned under a full-width theme container, max-width and
 *   auto margins center them back into the Magazine article column.
 */

body.single-post .mph-faq-section,
body.single-post .mph-sources,
body.single-post .mph-freshness{
  display:block!important;
  float:none!important;
  clear:both!important;
  position:relative!important;
  left:auto!important;
  right:auto!important;
  transform:none!important;
  width:100%!important;
  max-width:1040px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  box-sizing:border-box!important;
}

/* Re-apply the Magazine FAQ styling even if the block escaped `.mph-v4`. */
body.single-post .mph-faq-section{
  border-top:1px solid var(--mph-border,#E1E7E4)!important;
  padding-top:40px!important;
  margin-top:44px!important;
  margin-bottom:0!important;
}

body.single-post .mph-faq-section > .mph-section-title,
body.single-post .mph-faq-section > h2,
body.single-post .mph-faq-section .mph-section-title{
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
  color:var(--mph-heading,#152536)!important;
}

body.single-post .mph-faq-item{
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
  border-top:1px solid var(--mph-border,#E1E7E4)!important;
  padding:16px 0!important;
  box-sizing:border-box!important;
}

body.single-post .mph-faq-item:last-child{
  border-bottom:1px solid var(--mph-border,#E1E7E4)!important;
}

body.single-post .mph-faq-item summary{
  cursor:pointer!important;
  font-weight:800!important;
  color:var(--mph-heading,#152536)!important;
  list-style:none!important;
  position:relative!important;
  padding-right:30px!important;
}

body.single-post .mph-faq-answer{
  margin-top:10px!important;
}

/* Sources returns to the same Magazine column and keeps accordion styling. */
body.single-post .mph-sources{
  margin-top:34px!important;
  margin-bottom:12px!important;
}

body.single-post .mph-sources-details{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  border-top:1px solid var(--mph-border,#E1E7E4)!important;
  border-bottom:1px solid var(--mph-border,#E1E7E4)!important;
  padding:0!important;
  box-sizing:border-box!important;
}

body.single-post .mph-sources-details summary{
  cursor:pointer!important;
  font-weight:800!important;
  color:var(--mph-heading,#152536)!important;
  padding:16px 30px 16px 0!important;
  list-style:none!important;
  position:relative!important;
}

body.single-post .mph-source-list{
  margin:0 0 16px!important;
  padding-left:1.2em!important;
  font-size:.9rem!important;
  color:#727d86!important;
}

/* Freshness also stays in-column instead of starting at viewport-left. */
body.single-post .mph-freshness{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px 24px!important;
  font-size:.84rem!important;
  color:#7a858e!important;
  margin-top:12px!important;
  margin-bottom:36px!important;
}

body.single-post .mph-freshness-item{
  margin:0!important;
}

/*
 * Final safety net for the generated article tail.
 * The normal article content, FAQ, Sources, Freshness and CTA share the same
 * horizontal start/end points. Related + Footer remain outside this column.
 */
body.single-post .mph-public-article .mph-faq-section,
body.single-post .mph-public-article .mph-sources,
body.single-post .mph-public-article .mph-freshness,
body.single-post .mph-public-article .mph-cta{
  max-width:1040px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

@media(max-width:1100px){
  body.single-post .mph-faq-section,
  body.single-post .mph-sources,
  body.single-post .mph-freshness{
    width:calc(100% - 44px)!important;
    max-width:1040px!important;
  }
}

@media(max-width:640px){
  body.single-post .mph-faq-section,
  body.single-post .mph-sources,
  body.single-post .mph-freshness{
    width:calc(100% - 28px)!important;
  }
}


/* v4.6.1 — clickable Sources / Information Basis URLs */
.mph-source-list .mph-source-link{
  color:var(--mph-accent,#2E7D5B);
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:2px;
  overflow-wrap:anywhere;
}
.mph-source-list .mph-source-link:hover,
.mph-source-list .mph-source-link:focus{
  text-decoration-thickness:2px;
}


/* =========================================================
   v4.7.1 — Article Builder controls embedded Featured Insights width
   ========================================================= */

/*
 * Featured Insights shown below a Supporting Insight belongs visually to the
 * article reading column. It must NOT become a full-width landing-page module.
 *
 * The Article Builder wrapper uses the same horizontal geometry as
 * .mph-public-article.
 */
.mph-sab-featured-insights-wrap{
  width:min(calc(100% - 44px), 1040px)!important;
  margin:56px auto 18px!important;
  padding:0!important;
  box-sizing:border-box!important;
}

/*
 * When Featured Insights is embedded here, cancel any standalone width/gutter
 * rules from the Featured Insights plugin. The module simply fills the Article
 * Builder wrapper exactly.
 */
.mph-sab-featured-insights-wrap .mph-fi-section{
  width:100%!important;
  max-width:100%!important;
  margin-left:0!important;
  margin-right:0!important;
  padding-left:0!important;
  padding-right:0!important;
  box-sizing:border-box!important;
}

.mph-sab-featured-insights-wrap .mph-fi-inner,
.mph-sab-featured-insights-wrap .mph-fi-header,
.mph-sab-featured-insights-wrap .mph-fi-grid{
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
}

/*
 * Cards remain responsive inside the reading column.
 * Two cards on desktop, one card on narrower screens.
 */
.mph-sab-featured-insights-wrap .mph-fi-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}

@media(max-width:760px){
  .mph-sab-featured-insights-wrap{
    width:min(calc(100% - 28px),1040px)!important;
    margin-top:42px!important;
  }

  .mph-sab-featured-insights-wrap .mph-fi-grid{
    grid-template-columns:1fr!important;
  }
}


/* =========================================================
   v4.8.0 — Main Project Landing Page link above Featured Insights
   ========================================================= */

.mph-sab-project-return{
  display:flex;
  justify-content:flex-end;
  width:100%;
  margin:0 0 18px;
  padding:0;
  box-sizing:border-box;
}

.mph-sab-project-return-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--mph-accent,#2E7D5B);
  font-size:.92rem;
  line-height:1.4;
  font-weight:800;
  text-decoration:none;
  border-bottom:1px solid rgba(46,125,91,.28);
  padding-bottom:3px;
  transition:opacity .18s ease,border-color .18s ease;
}

.mph-sab-project-return-link:hover,
.mph-sab-project-return-link:focus{
  opacity:.8;
  border-bottom-color:currentColor;
}

.mph-sab-project-return-arrow{
  display:inline-block;
  font-size:1.05em;
}

@media(max-width:640px){
  .mph-sab-project-return{
    justify-content:flex-start;
    margin-bottom:14px;
  }
}


/* =========================================================
   v4.9.0 — Dynamic Same-Project Related Insights
   Supporting Articles only
   ========================================================= */

.mph-sab-related-wrap{
  width:min(calc(100% - 44px),1040px)!important;
  margin:56px auto 18px!important;
  padding:0!important;
  box-sizing:border-box!important;
}

.mph-sab-related-insights{
  width:100%;
  margin:0;
  padding:0;
  box-sizing:border-box;
}

.mph-sab-related-header{
  margin:0 0 24px;
}

.mph-sab-related-title{
  margin:0 0 8px;
  color:var(--mph-heading,#152536);
  font-family:Georgia,'Times New Roman',serif;
  font-size:clamp(1.75rem,3vw,2.45rem);
  line-height:1.12;
  font-weight:600;
}

.mph-sab-related-subtitle{
  max-width:760px;
  margin:0;
  color:#7a858e;
  font-size:1rem;
  line-height:1.6;
}

.mph-sab-related-grid{
  display:grid;
  grid-template-columns:repeat(var(--mph-related-desktop,3),minmax(0,1fr));
  gap:18px;
  width:100%;
  margin:0;
  padding:0;
}

.mph-sab-related-card{
  min-width:0;
  overflow:hidden;
  border:1px solid var(--mph-border,#E1E7E4);
  border-radius:14px;
  background:#fff;
  box-shadow:0 8px 28px rgba(21,37,54,.045);
}

.mph-sab-related-image-link{
  display:block;
  width:100%;
  aspect-ratio:16/10;
  overflow:hidden;
  background:var(--mph-soft-bg,#F6F8F7);
}

.mph-sab-related-image{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.mph-sab-related-card-body{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  min-height:220px;
  padding:20px;
}

.mph-sab-related-card-title{
  margin:0 0 10px;
  color:var(--mph-heading,#152536);
  font-family:Georgia,'Times New Roman',serif;
  font-size:1.22rem;
  line-height:1.28;
}

.mph-sab-related-card-title a{
  color:inherit;
  text-decoration:none;
}

.mph-sab-related-card-title a:hover,
.mph-sab-related-card-title a:focus{
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}

.mph-sab-related-excerpt{
  margin:0 0 18px;
  color:#707b85;
  font-size:.94rem;
  line-height:1.58;
}

.mph-sab-related-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:auto;
  padding:10px 16px;
  border-radius:999px;
  background:var(--mph-button-bg,#2E7D5B);
  color:var(--mph-button-text,#fff)!important;
  font-size:.9rem;
  line-height:1.2;
  font-weight:800;
  text-decoration:none!important;
}

.mph-sab-related-button:hover,
.mph-sab-related-button:focus{
  opacity:.88;
}

@media (min-width:768px) and (max-width:1023px){
  .mph-sab-related-grid{
    grid-template-columns:repeat(var(--mph-related-tablet,2),minmax(0,1fr))!important;
  }
}

@media (max-width:767px){
  .mph-sab-related-wrap{
    width:min(calc(100% - 28px),1040px)!important;
    margin-top:42px!important;
  }

  .mph-sab-related-grid{
    grid-template-columns:repeat(var(--mph-related-mobile,1),minmax(0,1fr))!important;
    gap:14px;
  }

  .mph-sab-related-card-body{
    min-height:0;
    padding:18px;
  }

  .mph-sab-related-title{
    font-size:1.8rem;
  }
}
