/* Morganable Page Newsroom - Frontend */

.mgpn-page {
  max-width: 1060px;
  width: 100%;
  margin: 0 auto;
  padding: 0 18px;
  box-sizing: border-box;
  clear: both;
}

.mgpn-page,
.mgpn-page * {
  box-sizing: border-box;
}

/* Optional title suppression when enabled from the Page editor */
body.mgpn-hide-theme-title .entry-header,
body.mgpn-hide-theme-title h1.entry-title,
body.mgpn-hide-theme-title .jeg_post_title,
body.mgpn-hide-theme-title .jeg_page_title,
body.mgpn-hide-theme-title .page-title,
body.mgpn-hide-theme-title .jeg_breadcrumbs + h1 {
  display: none !important;
}

/* Hero */
.mgpn-hero {
  background: linear-gradient(135deg, #08281f 0%, #0b3d2e 50%, #116947 100%);
  background-size: cover;
  background-position: center center;
  color: #ffffff;
  padding: 44px 42px;
  border-radius: 14px;
  margin: 24px 0 24px;
  box-shadow: 0 16px 38px rgba(0,0,0,0.14);
  position: relative;
  overflow: hidden;
}

.mgpn-hero::after {
  content: "";
  position: absolute;
  right: -72px;
  bottom: -82px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(216,180,95,0.35);
  border-radius: 50%;
  pointer-events: none;
}

.mgpn-tone-dark .mgpn-hero {
  background: linear-gradient(135deg, #071a16 0%, #102f24 55%, #19392d 100%);
}

.mgpn-tone-gold .mgpn-hero {
  background: linear-gradient(135deg, #102f24 0%, #0b3d2e 54%, #6c531b 100%);
}

.mgpn-tone-plain .mgpn-hero {
  background: #102f24;
}

.mgpn-kicker-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.mgpn-kicker,
.mgpn-file-label {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.mgpn-kicker {
  background: #d8b45f;
  color: #102f24;
}

.mgpn-file-label {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  color: #ffffff;
}

.mgpn-hero h1 {
  color: #ffffff !important;
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 14px !important;
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.mgpn-subtitle {
  color: #dfeee7 !important;
  font-size: 22px !important;
  line-height: 1.42 !important;
  font-weight: 700;
  margin: 0 0 18px !important;
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.mgpn-standfirst {
  max-width: 930px;
  position: relative;
  z-index: 1;
}

.mgpn-standfirst p,
.mgpn-standfirst {
  color: #f2f7f4 !important;
  font-size: 18px !important;
  line-height: 1.75 !important;
  margin-bottom: 0 !important;
}

/* Meta panel */
.mgpn-meta-panel {
  background: #f6faf7;
  border: 1px solid #dbe7df;
  border-radius: 10px;
  padding: 20px 22px;
  margin: 0 0 30px;
}

.mgpn-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.mgpn-meta-grid span {
  display: block;
  color: #0b5d3b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
}

.mgpn-meta-grid strong {
  display: block;
  color: #243b2f;
  font-size: 14px;
  line-height: 1.45;
}

/* Shared newsroom sections */
.mgpn-editor-note,
.mgpn-section,
.mgpn-series-index,
.mgpn-source-line,
.mgpn-cta {
  margin: 40px 0;
}

.mgpn-section-label {
  color: #d8b45f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin-bottom: 8px;
}

.mgpn-section h2,
.mgpn-series-index h2,
.mgpn-source-line h2,
.mgpn-cta h2 {
  color: #103d2b !important;
  font-size: 29px;
  line-height: 1.3;
  margin: 0 0 14px !important;
}

.mgpn-richtext p,
.mgpn-section p,
.mgpn-series-index p,
.mgpn-source-line p,
.mgpn-cta p {
  color: #2f3f35 !important;
  font-size: 17px !important;
  line-height: 1.82 !important;
  margin: 0 0 16px !important;
}

/* Editor note */
.mgpn-editor-note {
  background: #fbf8ef;
  border-left: 6px solid #d8b45f;
  padding: 24px 26px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.05);
}

.mgpn-editor-note .mgpn-richtext p {
  color: #21392d !important;
  font-weight: 600;
}

/* Pullquote */
.mgpn-pullquote {
  background: #f7faf8;
  border-left: 5px solid #0b5d3b;
  color: #103d2b !important;
  padding: 16px 20px;
  margin: 24px 0 !important;
  font-size: 20px !important;
  font-weight: 900;
  line-height: 1.55 !important;
}

.mgpn-pullquote p {
  color: #103d2b !important;
  font-size: 20px !important;
  font-weight: 900;
  line-height: 1.55 !important;
  margin: 0 !important;
}

/* Series index */
.mgpn-series-index {
  background: #f6faf7;
  border: 1px solid #dbe7df;
  border-radius: 14px;
  padding: 32px;
}

.mgpn-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.mgpn-card {
  background: #ffffff;
  border: 1px solid #dfe8e2;
  border-radius: 10px;
  padding: 22px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.045);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.mgpn-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

.mgpn-card-final {
  grid-column: 1 / -1;
  border-left: 6px solid #0b5d3b;
}

.mgpn-part {
  display: block;
  color: #0b5d3b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 9px;
}

.mgpn-card h3 {
  font-size: 20px;
  line-height: 1.35;
  margin: 0 0 9px !important;
  color: #103d2b !important;
}

.mgpn-card h3 a {
  color: #103d2b !important;
  text-decoration: none;
}

.mgpn-card h3 a:hover {
  color: #0b5d3b !important;
  text-decoration: underline;
}

.mgpn-card-summary p {
  color: #52645a !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  margin: 0 0 14px !important;
}

.mgpn-status {
  display: inline-block;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.mgpn-coming {
  background: #eef5f1;
  color: #0b5d3b;
  border: 1px solid #dbe7df;
}

.mgpn-live {
  background: #0b5d3b;
  color: #ffffff !important;
}

/* Research line */
.mgpn-source-line {
  background: #ffffff;
  border-left: 6px solid #0b5d3b;
  padding: 26px 28px;
  box-shadow: 0 3px 14px rgba(0,0,0,0.055);
}

/* CTA */
.mgpn-cta {
  background: #102f24;
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.mgpn-cta .mgpn-section-label {
  color: #d8b45f;
}

.mgpn-cta h2,
.mgpn-cta p,
.mgpn-cta .mgpn-richtext p {
  color: #ffffff !important;
}

.mgpn-next {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 15px 17px;
  border-radius: 7px;
  margin-top: 18px !important;
}

.mgpn-next p {
  margin-bottom: 0 !important;
}

/* Strong drop-cap removal inside Morganable Page Newsroom */
.mgpn-page p:first-letter,
.mgpn-page p::first-letter,
.mgpn-page p:first-of-type:first-letter,
.entry-content .mgpn-page p:first-letter,
.entry-content .mgpn-page p::first-letter,
.entry-content .mgpn-page p:first-of-type:first-letter,
.jeg_main_content .mgpn-page p:first-letter,
.jeg_main_content .mgpn-page p::first-letter,
.jeg_post_content .mgpn-page p:first-letter,
.jeg_post_content .mgpn-page p::first-letter,
.mgpn-page .has-drop-cap:first-letter,
.mgpn-page p.has-drop-cap:first-letter {
  float: none !important;
  font-size: inherit !important;
  line-height: inherit !important;
  font-weight: inherit !important;
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  font-family: inherit !important;
}

.mgpn-page .dropcap,
.mgpn-page span.dropcap,
.entry-content .mgpn-page .dropcap,
.entry-content .mgpn-page span.dropcap {
  float: none !important;
  font-size: inherit !important;
  line-height: inherit !important;
  font-weight: inherit !important;
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  font-family: inherit !important;
}

@media only screen and (max-width: 900px) {
  .mgpn-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (max-width: 768px) {
  .mgpn-page {
    padding: 0 14px;
  }

  .mgpn-hero {
    padding: 32px 22px;
    border-radius: 10px;
  }

  .mgpn-hero h1 {
    font-size: 32px;
  }

  .mgpn-subtitle {
    font-size: 19px !important;
  }

  .mgpn-standfirst p,
  .mgpn-standfirst {
    font-size: 16.5px !important;
  }

  .mgpn-meta-grid,
  .mgpn-cards {
    grid-template-columns: 1fr;
  }

  .mgpn-card-final {
    grid-column: auto;
  }

  .mgpn-series-index,
  .mgpn-source-line,
  .mgpn-cta {
    padding: 22px;
  }

  .mgpn-section h2,
  .mgpn-series-index h2,
  .mgpn-source-line h2,
  .mgpn-cta h2 {
    font-size: 24px;
  }
}
