/* ================================================================
   MWM ARTICLE STYLES — 2040 Digital
   Measuring What Matters series template.
   Extracted from embedded <style> blocks for caching & performance.
   ================================================================ */

.mwm-article { font-family: 'Inter', sans-serif; color: #333; }
.mwm-article p { font-size: 1.08rem; line-height: 1.8; color: #333; margin: 0 0 1.25rem; }
.mwm-article h2 { color: #0d4f4f; font-size: 1.9rem; line-height: 1.3; margin: 2.5rem 0 1rem; font-weight: 800; }
.mwm-article h3 { color: #1a7a6d; font-size: 1.35rem; line-height: 1.35; margin: 2rem 0 .75rem; font-weight: 700; }
.mwm-article ul, .mwm-article ol { font-size: 1.08rem; line-height: 1.8; color: #333; margin: 0 0 1.25rem 1.25rem; }
.mwm-article li { margin-bottom: .5rem; }
.mwm-article a { color: #1a7a6d; text-decoration: underline; }
.mwm-article a:hover { color: #0d4f4f; }

.mwm-hero {
  background: linear-gradient(135deg, #0d4f4f 0%, #1a7a6d 50%, #2eab8f 100%);
  color: #fff;
  padding: 80px 20px 72px;
  margin: 0 -20px 0;
  width: calc(100% + 40px);
  position: relative;
  overflow: hidden;
}
.mwm-hero-inner { max-width: 1000px; margin: 0 auto; }
.mwm-breadcrumb { font-size: .9rem; color: rgba(255,255,255,.85); margin-bottom: 1rem; }
.mwm-breadcrumb a { color: rgba(255,255,255,.95); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); }
.mwm-breadcrumb a:hover { border-bottom-color: #fff; }
.mwm-badge-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.mwm-badge {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.4);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1.1rem; letter-spacing: .05em;
  flex-shrink: 0;
}
.mwm-series-label {
  display: inline-block; background: rgba(255,255,255,.15);
  color: #fff; padding: .4rem 1rem; border-radius: 20px;
  font-size: .85rem; font-weight: 600; letter-spacing: .05em;
  border: 1px solid rgba(255,255,255,.3); text-transform: uppercase;
}
.mwm-hero h1 { font-size: 2.8rem; line-height: 1.2; margin: .5rem 0 1rem; font-weight: 800; color: #fff; }
.mwm-hero .subtitle { font-size: 1.3rem; line-height: 1.5; margin: 0 0 1.5rem; color: rgba(255,255,255,.95); font-weight: 400; }
.mwm-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; font-size: .95rem; color: rgba(255,255,255,.85); }
.mwm-meta span strong { color: #fff; font-weight: 600; }

/* EDITORIAL GRID */
.mwm-editorial-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px;
  align-items: start;
}
.mwm-main-content { order: 1; min-width: 0; }
.mwm-editorial-grid > div.mwm-main-content { grid-column: 1 / 2 !important; grid-row: 1 !important; }
.mwm-editorial-grid > aside.mwm-sidebar { grid-column: 2 / 3 !important; grid-row: 1 !important; }
.mwm-editorial-grid > p:empty { display: none !important; }
.mwm-body { max-width: 100%; margin: 0; padding: 0; }
.mwm-lead { font-size: 1.25rem !important; line-height: 1.7 !important; color: #1a7a6d !important; font-weight: 500 !important; border-left: 4px solid #2eab8f; padding-left: 1.25rem; margin: 0 0 2rem !important; }

.mwm-callout {
  background: #f8f9fa; border-left: 5px solid #0d4f4f;
  padding: 1.5rem 1.75rem; border-radius: 0 12px 12px 0;
  margin: 2rem 0;
}
.mwm-callout h4 { color: #0d4f4f; font-size: 1.05rem; margin: 0 0 .5rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.mwm-callout p { margin: 0; font-size: 1rem; line-height: 1.7; color: #333; }
.mwm-pullquote {
  font-size: 1.5rem; line-height: 1.4; color: #0d4f4f; font-weight: 600;
  border-top: 3px solid #2eab8f; border-bottom: 3px solid #2eab8f;
  padding: 1.5rem 0; margin: 2.5rem 0; text-align: center; font-style: italic;
}
.mwm-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.mwm-stat-card {
  background: #fff; border-radius: 12px; padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(13,79,79,.08);
  border-top: 4px solid #2eab8f;
}
.mwm-stat-card .stat-number { font-size: 2.4rem; font-weight: 800; color: #0d4f4f; line-height: 1.1; margin-bottom: .4rem; }
.mwm-stat-card .stat-label { font-size: .95rem; color: #555; line-height: 1.5; margin: 0; }

.mwm-sources {
  background: #f8f9fa; padding: 2rem; border-radius: 12px;
  margin: 3rem 0 1rem; font-size: .9rem; color: #555;
}
.mwm-sources h3 { color: #0d4f4f; font-size: 1.1rem; margin: 0 0 1rem; text-transform: uppercase; letter-spacing: .05em; }
.mwm-sources ol { margin: 0 0 0 1.25rem; font-size: .9rem; line-height: 1.7; }
.mwm-sources li { margin-bottom: .5rem; }
.mwm-related { margin: 3rem 0; }
.mwm-related h3 { color: #0d4f4f; font-size: 1.6rem; text-align: center; margin-bottom: 1.5rem; font-weight: 700; }
.mwm-related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.mwm-related-card {
  background: #fff; padding: 1.5rem; border-radius: 12px;
  border-top: 4px solid #1a7a6d;
  box-shadow: 0 4px 16px rgba(13,79,79,.08);
}
.mwm-related-card h4 { color: #0d4f4f; font-size: 1.05rem; margin: 0 0 .5rem; line-height: 1.35; }
.mwm-related-card h4 a { color: #0d4f4f; text-decoration: none; }
.mwm-related-card h4 a:hover { color: #1a7a6d; text-decoration: underline; }
.mwm-related-card p { font-size: .9rem; color: #666; margin: 0 0 .75rem; line-height: 1.55; }
.mwm-related-card .read-more { color: #1a7a6d; font-weight: 600; font-size: .9rem; text-decoration: none; }

.mwm-cta-newsletter {
  background: #f8f9fa; border: 2px dashed #2eab8f;
  padding: 2rem; border-radius: 12px; margin: 2.5rem 0; text-align: center;
}
.mwm-cta-newsletter h3 { color: #0d4f4f; font-size: 1.3rem; margin: 0 0 .5rem; }
.mwm-cta-newsletter p { font-size: 1rem; color: #555; margin: 0 0 1rem; }
.mwm-cta-buttons { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.mwm-cta-buttons a {
  display: inline-block; padding: 12px 24px; border-radius: 8px;
  font-weight: 600; text-decoration: none; font-size: .95rem;
}
.mwm-cta-buttons a.primary { background: #0d4f4f; color: #fff; }
.mwm-cta-buttons a.secondary { background: #fff; color: #0d4f4f; border: 2px solid #0d4f4f; }

/* SIDEBAR */
.mwm-sidebar {
  position: sticky;
  top: 32px;
  order: 2;
  font-family: 'Inter', sans-serif;
}
.mwm-sidebar-series-nav { margin-bottom: 32px; }
.mwm-sidebar-series-nav h4 {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #666;
  margin: 0 0 14px;
}
.mwm-sidebar-series-nav ul { list-style: none; margin: 0; padding: 0; }
.mwm-sidebar-series-nav li { margin-bottom: 10px; }
.mwm-sidebar-series-nav a {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  padding: 8px 12px;
  border-left: 2px solid transparent;
  transition: all 0.2s;
  line-height: 1.4;
  text-decoration: none;
}
.mwm-sidebar-series-nav a:hover {
  color: #0d4f4f;
  border-left-color: #0d4f4f;
  text-decoration: none;
}
.mwm-sidebar-series-nav a.mwm-active {
  color: #0d4f4f;
  border-left-color: #0d4f4f;
  font-weight: 600;
  background: #f0faf6;
}
.mwm-sidebar-series-nav .mwm-article-number {
  font-size: 11px;
  font-weight: 700;
  color: #2eab8f;
  display: block;
  margin-bottom: 2px;
  letter-spacing: .05em;
}

.mwm-sidebar-assessment {
  background: #0d4f4f;
  color: #ffffff;
  border-radius: 8px;
  padding: 24px 20px;
  margin-bottom: 24px;
}
.mwm-sidebar-assessment h4 {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
}
.mwm-sidebar-assessment p {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
  margin: 0 0 14px;
}
.mwm-sidebar-assessment .mwm-cta-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #2eab8f;
  text-decoration: none;
  border-bottom: 1px solid rgba(46,171,143,0.4);
  padding-bottom: 1px;
}
.mwm-sidebar-assessment .mwm-cta-link:hover {
  border-bottom-color: #2eab8f;
  text-decoration: none;
}

.mwm-sidebar-newsletter {
  background: #2c0f6d;
  color: #ffffff;
  border-radius: 8px;
  padding: 24px 20px;
  margin-bottom: 24px;
}
.mwm-sidebar-newsletter h4 {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
}
.mwm-sidebar-newsletter p {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
  margin: 0 0 14px;
}
.mwm-sidebar-newsletter .mwm-cta-btn {
  display: inline-block;
  background: #f47721;
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.mwm-sidebar-newsletter .mwm-cta-btn:hover {
  background: #d9661a;
  text-decoration: none;
  color: #ffffff;
}

.mwm-sidebar-book {
  background: #fcf9f4;
  border: 1px solid #e4dccb;
  border-radius: 8px;
  padding: 24px 20px;
  margin-bottom: 24px;
}
.mwm-sidebar-book h4 {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #2d2d2d;
  margin: 0 0 10px;
}
.mwm-sidebar-book p {
  font-size: 15px;
  line-height: 1.55;
  color: #555;
  margin: 0 0 14px;
}
.mwm-sidebar-book .mwm-cta-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: #2382ed;
  text-decoration: none;
  border-bottom: 1px solid rgba(35,130,237,0.4);
  padding-bottom: 1px;
  transition: border-color 0.2s;
}
.mwm-sidebar-book .mwm-cta-link:hover {
  border-bottom-color: #2382ed;
  text-decoration: none;
}

.mwm-sidebar-podcast {
  background: linear-gradient(135deg, #0d4f4f 0%, #1a7a6d 100%);
  color: #ffffff;
  border-radius: 8px;
  padding: 24px 20px;
  margin-bottom: 24px;
}
.mwm-sidebar-podcast h4 {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
}
.mwm-sidebar-podcast p {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
  margin: 0 0 14px;
}
.mwm-sidebar-podcast .mwm-cta-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #2eab8f;
  text-decoration: none;
  border-bottom: 1px solid rgba(46,171,143,0.4);
  padding-bottom: 1px;
  transition: border-color 0.2s;
}
.mwm-sidebar-podcast .mwm-cta-link:hover {
  border-bottom-color: #2eab8f;
  text-decoration: none;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .mwm-editorial-grid {
    grid-template-columns: 1fr;
    padding: 32px 20px;
    gap: 32px;
  }
  .mwm-editorial-grid > div.mwm-main-content { grid-column: 1 !important; grid-row: 2 !important; }
  .mwm-editorial-grid > aside.mwm-sidebar { grid-column: 1 !important; grid-row: 1 !important; }
  .mwm-sidebar {
    position: static;
    order: -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .mwm-sidebar-series-nav { grid-column: 1 / -1; }
  .mwm-sidebar-series-nav ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .mwm-sidebar-series-nav a {
    padding: 10px 12px;
    background: #f0faf6;
    border-radius: 6px;
    border-left: none;
    font-size: 13px;
  }
  .mwm-sidebar-series-nav a.mwm-active { border-left: none; }
  .mwm-main-content { order: 1; }
}

@media (max-width: 768px) {
  .mwm-hero { padding: 60px 20px 48px; }
  .mwm-hero h1 { font-size: 2rem; }
  .mwm-hero .subtitle { font-size: 1.1rem; }
  .mwm-article h2 { font-size: 1.5rem; }
  .mwm-pullquote { font-size: 1.2rem; }
}

@media (max-width: 600px) {
  .mwm-sidebar { grid-template-columns: 1fr; }
  .mwm-sidebar-series-nav ul { grid-template-columns: 1fr; }
}

/* ============= TOC Widget ============= */
.mwm-sidebar-toc {
  background: #ffffff;
  border: 1px solid #e0e6e6;
  border-left: 4px solid #1a7a6d;
  border-radius: 8px;
  padding: 1.25rem 1.5rem 1.25rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(13, 79, 79, 0.06);
}
.mwm-sidebar-toc h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0d4f4f;
  margin: 0 0 0.9rem 0;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #e0e6e6;
}
.mwm-sidebar-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mwm-sidebar-toc > ul > li {
  margin-bottom: 0.35rem;
}
.mwm-sidebar-toc > ul > li > a {
  display: block;
  color: #0d4f4f;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.35;
  padding: 0.4rem 0.5rem;
  border-radius: 4px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.mwm-sidebar-toc > ul > li > a:hover {
  background: #e0f2f1;
  color: #1a7a6d;
}
.mwm-sidebar-toc ul ul {
  margin: 0.35rem 0 0.35rem 0.75rem;
  padding-left: 0.75rem;
  border-left: 2px solid #e0f2f1;
}
.mwm-sidebar-toc ul ul li {
  margin-bottom: 0.2rem;
}
.mwm-sidebar-toc ul ul li a {
  display: block;
  color: #555;
  text-decoration: none;
  font-weight: 400;
  font-size: 0.85rem;
  line-height: 1.35;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.mwm-sidebar-toc ul ul li a:hover {
  background: #f1f8f7;
  color: #1a7a6d;
}

/* Smooth scroll and offset for fixed/sticky headers */
html { scroll-behavior: smooth; }
.mwm-main-content h2[id],
.mwm-main-content h3[id] { scroll-margin-top: 100px; }

/* MWM series: hide theme default post header because the post body includes its own .mwm-hero */
body.post-in-category-measuring-what-matters .single-blog-header,
body.post-in-category-measuring-what-matters .single-post-title,
body.post-in-category-measuring-what-matters .single-blog-media,
body.post-in-category-measuring-what-matters #post-media {
        display: none !important;
}
/* MWM series: mirror Ideas & Innovations layout — hide theme sidebar, full-width content */
body.post-in-category-measuring-what-matters #sidebar {
        display: none !important;
}
body.post-in-category-measuring-what-matters #primary {
        width: 100% !important;
            max-width: 100% !important;
                float: none !important;
                    margin-right: 0 !important;
}
body.post-in-category-measuring-what-matters #content-wrap {
        overflow: visible;
}
}
}
}
}
