/* ===== Platform for Peace and Humanity - blog post styles =====
   Paste once into: Elementor > Site Settings > Custom CSS (or Appearance > Customize > Additional CSS).
   Everything is scoped to .pph-post so it can't affect the rest of the site. */

.pph-post {
  --pph-teal: #3c809f;        /* sampled from the site banner */
  --pph-heading: #2b6785;     /* darker banner blue, clearly not black */
  --pph-deep: #0e4263;        /* key takeaways card */
  --pph-navy: #0c1630;
  --pph-link: #1a62b3;
  --pph-link-hover: #0f4a8a;
  --pph-ink: #1c2433;
  --pph-muted: #5b6678;
  --pph-line: #dde4ec;
  --pph-tint: #eaf3f8;
  box-sizing: border-box;
  max-width: none;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 2.5vw, 32px);   /* side margins for the text */
  font-size: 18px;
  line-height: 1.75;
  color: var(--pph-ink);
  text-align: left;
  overflow-wrap: break-word;
}
.pph-post *, .pph-post *::before, .pph-post *::after { box-sizing: border-box; }

/* text and Key Takeaways span the content area (up to 1200px), sitting on the left;
   the lead image goes edge to edge */
.pph-post > *:not(.post-hero) {
  max-width: 1200px; margin-left: 0; margin-right: auto;
}
/* the lead image runs edge to edge; stop that causing a sideways scrollbar */
html:has(.pph-post .post-hero), body:has(.pph-post .post-hero) { overflow-x: clip; }

/* lead (hero) image with the photo credit sitting on the image, bottom right */
.pph-post .post-hero {
     margin-top: 3em !important;
  position: relative; padding: 0;
  width: 100vw; max-width: 100vw; margin: 0 0 2em calc(50% - 50vw);
}

/* extra space just below the lead image */
.pph-post .post-hero + .key-box { margin-top: 3em !important; }
.pph-post .post-hero { margin-bottom: 3em !important; }

.pph-post .post-hero img { display: block; width: 100%; height: auto; border-radius: 0; margin: 0; }
.pph-post .post-hero figcaption {
  position: absolute; right: 0; bottom: 0; max-width: 75%;
  margin: 0; padding: 7px 14px 7px 12px;
  background: rgba(12,22,48,.72); border-left: 3px solid var(--pph-teal);
  font-size: 12.5px; line-height: 1.4; letter-spacing: .02em; font-style: normal;
  color: #fff; text-align: right !important;
}
.pph-post .post-hero figcaption a { color: #fff; text-decoration: none; }
.pph-post .post-hero figcaption a:hover { color: #fff; text-decoration: underline; }

/* paragraphs */
.pph-post p { margin: 0 0 1.25em; }
.pph-post li p:last-child { margin-bottom: 0; }
/* stray Word highlighter marks are ignored */
.pph-post mark { background: none; color: inherit; }

/* byline */
.pph-post .post-byline {
  font-size: 15px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--pph-muted); margin: -.4em 0 2em;
  padding-bottom: 1em; border-bottom: 1px solid var(--pph-line);
}

/* section headings */
.pph-post h2 {
  font-family: Poppins, inherit, sans-serif;
  font-size: 1.55em; line-height: 1.3; font-weight: 600;
  color: var(--pph-heading);
  margin: 2.1em 0 .7em; padding-left: 16px;
  border-left: 6px solid var(--pph-teal);
}

/* links */
.pph-post a { color: var(--pph-link); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pph-post a:hover { color: var(--pph-link-hover); text-decoration-thickness: 2px; }

/* summary card (Key Takeaways / Key Insights) */
.pph-post .key-box {
  display: block; float: none; width: 100%;
  background: var(--pph-deep); color: #fff; border-radius: 0;
  padding: 36px 44px 18px; margin-top: 0; margin-bottom: 2.4em;
  box-shadow: 0 6px 18px rgba(14,66,99,.18);
}
.pph-post .key-box-title {
  font-family: Poppins, inherit, sans-serif; font-weight: 700;
  font-size: 1.7em; line-height: 1.2; color: #fff; margin: 0 0 .8em;
}
.pph-post .key-box ul { margin: 0; padding: 0; list-style: none; }
.pph-post .key-box li {
  position: relative; padding: 0 0 0 28px; margin: 0 0 1.05em;
  font-size: .95em; line-height: 1.65; color: #fff;
}
.pph-post .key-box li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 10px; height: 10px; border-radius: 50%; background: #8cc8e6;
}
.pph-post .key-box a { color: #bfe3f5; }
.pph-post .key-box a:hover { color: #fff; }
.pph-post .key-box a.fn-ref { color: #bfe3f5; }

/* generic lists */
.pph-post > ul:not(.recommendations) { padding-left: 1.4em; margin: 0 0 1.4em; }
.pph-post li { margin-bottom: .7em; }
.pph-post li::marker { color: var(--pph-teal); }

/* recommendations: a simple bulleted list (never numbered) */
.pph-post ul.recommendations { list-style: none; padding: 0; margin: 0 0 2em; }
.pph-post ul.recommendations li {
  position: relative; padding: 0 0 0 26px; margin: 0 0 1em;
  background: none; border: 0; border-radius: 0; box-shadow: none;
}
.pph-post ul.recommendations li::before {
  content: ""; position: absolute; left: 4px; top: .65em;
  width: 9px; height: 9px; border-radius: 50%; background: var(--pph-teal);
}

/* a list inside a recommendation: one dot only, slightly smaller */
.pph-post ul.recommendations ul,
.pph-post ul.recommendations ol { list-style: none; padding: 0; margin: .7em 0 0; }
.pph-post ul.recommendations li li::before { width: 7px; height: 7px; top: .7em; }

/* long web addresses (e.g. in references) wrap instead of running off the page */
.pph-post a { overflow-wrap: anywhere; }

/* timeline: simple - the date in bold teal, the text underneath */
.pph-post .timeline { margin-top: 1.6em; margin-bottom: 2em; padding: 0; }
.pph-post .tl-item { margin: 0 0 1.3em; padding: 0; }
.pph-post .tl-date {
  display: block; font-weight: 700; font-size: .9em; letter-spacing: .02em;
  color: var(--pph-heading); margin: 0 0 .2em;
}
.pph-post .tl-item p { margin: 0; }

/* pull quote */
.pph-post blockquote.pull-quote {
  margin: 2em 0; padding: 22px 28px; background: var(--pph-tint);
  border-left: 6px solid var(--pph-teal); border-radius: 0 10px 10px 0;
  font-size: 1.12em; line-height: 1.65; font-style: italic; color: var(--pph-heading);
}
.pph-post blockquote.pull-quote p { margin: 0; }

/* figures */
.pph-post .post-figure { margin: 2em 0; }
.pph-post .post-figure img { display: block; width: 100%; height: auto; border-radius: 10px; }
.pph-post .post-figure figcaption {
  font-size: 13.5px; line-height: 1.5; color: var(--pph-muted); margin-top: 10px;
}
.pph-post .post-figure figcaption a { word-break: break-all; }

/* superscript footnote numbers */
.pph-post sup { line-height: 0; }
.pph-post a.fn-ref {
  text-decoration: none; font-weight: 600; font-size: .82em; padding: 0 1px;
}
.pph-post a.fn-ref:hover { text-decoration: underline; }

/* references */
.pph-post .references {
  margin-top: 3em; padding-top: 1.2em; border-top: 2px solid var(--pph-line);
  font-size: 14.5px; line-height: 1.6; color: #3a4558;
}
.pph-post .references h2 { font-size: 1.25em; margin-top: 0; }
.pph-post .references ol { padding-left: 1.6em; margin: 0; }
.pph-post .references li { margin-bottom: .75em; padding-left: .3em; }
.pph-post .references li::marker { color: var(--pph-teal); font-weight: 700; }
.pph-post .references li p { margin: 0; display: inline; }
.pph-post .references a { word-break: break-all; }
.pph-post a.ref-back { text-decoration: none; margin-left: .4em; }
.pph-post .references li:target { background: #fff7d6; border-radius: 4px; }

/* tables (if a post has one) */
.pph-post table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .92em; }
.pph-post th { background: var(--pph-deep); color: #fff; text-align: left; }
.pph-post th, .pph-post td { padding: 10px 12px; border: 1px solid var(--pph-line); }

/* small screens */
@media (max-width: 600px) {
  .pph-post { font-size: 16.5px; line-height: 1.7; }
  .pph-post h2 { font-size: 1.3em; padding-left: 12px; margin-top: 1.8em; }
  .pph-post .post-hero figcaption { max-width: 100%; padding: 5px 10px; font-size: 11px; }
  .pph-post .key-box { padding: 22px 20px 8px; border-radius: 0; }
  .pph-post .key-box-title { font-size: 1.4em; }
  .pph-post .key-box li { padding-left: 24px; font-size: .93em; }
  .pph-post blockquote.pull-quote { padding: 16px 18px; font-size: 1.05em; }
  .pph-post .references { font-size: 14px; }
  .pph-post table { display: block; overflow-x: auto; }
}

/* Elementor resets figure margins inside widgets (.elementor .elementor-widget figure { margin: 0 }),
   which left a gap to the left of the lead photo; keep it edge to edge */
.pph-post figure.post-hero { margin-left: calc(50% - 50vw) !important; margin-right: 0 !important; }
