/* Blog posts (resources/<slug>/ and resources/press-release/<slug>/).
   Values from the live single-post markup: GenerateBlocks containers 94613c00 / 00e207fe / 1d3cfa0f
   (article layout), eaf2aa5b + 0fd6184f (press-release hero and contact block), the child theme's
   ".float-left" post-image rule and the inline "p { font-size: 18px }" (16px at 767 and below)
   that every live post page carries; ".font-lg p" is 22px at 1025 and up. */

/* ------------------------------------------------------------------ article hero (nurture, feel-good) */
.post-hero {
  display: flex; align-items: center; justify-content: center;
  padding: 240px 20px 160px;
  background-position: top center;
  color: #fff; text-align: center;
}
.post-hero__inner { width: 100%; max-width: 1072px; }
.post-hero__title { color: #fff; font-size: 80px; font-weight: 700; line-height: 1.2; text-align: center; margin-bottom: 20px; }
.post-article .post-hero__sub { margin: 0; color: #fff; text-align: center; font-size: var(--fs-body); }
.post-hero--photo { background: #1d1d1b url(../../img/Frame-3-1.webp) no-repeat top center / cover; }
@media (max-width: 1024px) {
  .post-hero { padding-top: 180px; padding-bottom: 100px; }
  .post-hero__title { font-size: 50px; }
}
@media (max-width: 767px) {
  .post-hero { padding-top: 160px; padding-bottom: 80px; }
  .post-hero__title { font-size: 40px; }
}

/* ------------------------------------------------------------------ article body */
.post-body { padding: 120px 20px; }
.post-body__inner { width: 100%; max-width: 934px; margin-inline: auto; }
.post-body__inner--lg { font-size: 24px; }       /* feel-good article container */
@media (max-width: 1024px) { .post-body { padding-block: 100px; } }
@media (max-width: 767px)  { .post-body { padding-block: 50px; } }

.post-article p { font-size: 18px; }
@media (max-width: 767px) { .post-article p { font-size: 16px; } }
@media (min-width: 1025px) { .post-article .font-lg p { font-size: 22px; } }

/* lead heading ("5 Ways to Convert More Leads", "Franchise development is ready ...") */
.post-lead { font-weight: 700; margin-bottom: 50px; }
@media (max-width: 1024px) { .post-lead { margin-bottom: 20px; } }
@media (max-width: 767px)  { .post-lead { margin-bottom: 15px; } }

/* nurture post headings (live .postid-5914 rules) */
.post-nurture .post-lead { font-size: 36px; color: #000; }
.post-nurture h3 { font-size: 21px; font-weight: 600; color: #000; margin-bottom: 20px; }
@media (min-width: 1024px) {
  .post-nurture .post-lead { font-size: 46px; }
  .post-nurture h2:not(.post-lead) { font-size: 25px; }
}

/* feel-good sub-headings (live bold 24px headline divs) */
.post-subhead { font-size: inherit; font-weight: 700; line-height: 1.5; padding-bottom: 12px; margin: 0; }   /* div: body line-height */

/* lists inherit the body size (21 / 18 / 16px) */
.post-article li { font-size: var(--fs-body); }

/* floated post image: right, 55% wide, 40px padding at 1025 and up; stacked full width below */
.post-float { padding: 1.5em 0; }
.post-float img { width: 100%; }
.post-float--natural img { width: auto; display: block; margin-inline: auto; }   /* live "aligncenter" figures */
@media (min-width: 1025px) {
  .post-float { float: right; width: 55%; padding: 40px; margin: -35px 0 -35px; }
}
/* live: images go back to their natural width from 1024px (one px before the float starts) */
@media (min-width: 1024px) { .post-float img, .post-float--natural img { width: auto; max-width: 100%; } }
@media (max-width: 1024px) { .post-feel-good .post-float { margin-top: -25px; } }   /* live gb-container margin-top */
.post-float figure { margin: 0; }
.post-float__caption { font-size: 14px; line-height: 2em; font-weight: 300; text-align: center; color: #767676; margin: 0; }   /* live #929292, darkened for contrast */
@media (max-width: 767px) { .post-float__caption { line-height: 1.5em; } }

/* pull quote: live wp-block-quote with a GenerateBlocks name line */
.post-quote {
  border-left: 5px solid var(--teal-text); padding: 20px; margin: 0 0 1.5em;
  font-size: 1.2em; font-style: italic;
}
.post-quote blockquote { margin: 0; padding: 0; border: 0; font-size: inherit; }
.post-quote__cite { font-size: 18px; font-weight: 400; }

/* "Ask us for our list ..." call-out between orange rules */
.post-callout {
  max-width: 1200px; margin: 0 auto 27px; padding: 27px 20px 0;
  border-top: 2px solid var(--orange); border-bottom: 2px solid var(--orange);
  font-size: 25px; text-align: center; color: var(--accent);
}
.post-callout p { color: inherit; }
@media (max-width: 1024px) { .post-callout { text-align: left; margin-bottom: 24px; } }
@media (max-width: 767px)  { .post-callout { text-align: center; padding-inline: 0; } }

/* author byline */
.post-byline { display: flex; align-items: center; column-gap: 24px; clear: both; }
.post-byline__photo { width: 150px; height: 150px; object-fit: cover; flex: 0 1 150px; min-width: 0; }   /* live figure shrinks on narrow screens */
.post-article p.post-byline__text { font-size: 24px; line-height: 35px; font-weight: 500; margin: 0; }
.post-byline__text strong { font-weight: 700; }
.post-byline__icon { width: 34px; vertical-align: baseline; margin: 0 0 -9px 4px; }

/* ------------------------------------------------------------------ press release */
.pr-hero {
  display: flex; align-items: center; min-height: 935px; text-align: center; color: #fff;
}
.pr-hero__inner { width: 100%; max-width: 1150px; margin-inline: auto; padding-inline: 20px; }
.pr-hero__title { color: #fff; font-size: 51px; margin-bottom: 20px; }
.post-article .pr-hero__meta { margin: 0 0 1.5em; font-size: 26px; line-height: 1.5; color: #fff; }
.pr-hero__meta span { display: inline-block; }
.pr-hero__meta .pr-hero__date { padding-inline: 20px; margin-inline: 20px; border-left: 2px solid; border-right: 2px solid; }
@media (max-width: 1024px) {
  .pr-hero__title { font-size: 45px; }
  .post-article .pr-hero__meta { font-size: 20px; }
}
@media (max-width: 767px) {
  .pr-hero__title { font-size: 30px; margin-bottom: 40px; }
  .post-article .pr-hero__meta { margin-bottom: 0; }
  .pr-hero__meta span { display: block; margin-bottom: 5px; }
  .pr-hero__meta .pr-hero__date { padding-inline: 10px; margin-inline: 10px; border: 0; }
}

.pr-contact { margin-inline: 40px; }
.pr-contact__box {
  max-width: 1120px; margin: 0 auto 50px; padding: 100px 0 50px;
  border-bottom: 1px solid var(--contrast-2);
  display: grid; grid-template-columns: calc(17% - 33px) 1fr; column-gap: 40px; align-items: center;
}
.pr-contact__photo { width: 100%; object-fit: cover; }
.pr-contact__lines { min-width: 0; overflow-wrap: anywhere; }
.pr-contact__lines p { font-size: 18px; line-height: 1.2em; margin: 0; }
.pr-contact__lines .pr-contact__strong { font-weight: 700; color: var(--contrast); }
.pr-contact__lines .pr-contact__strong--last { margin-bottom: 20px; }
.pr-contact__lines .pr-contact__plain { line-height: 1.2em; }
/* live "CEO, Bubblegum Canada" is an inline-block in a 1.5 line box */
.pr-contact__lines .pr-contact__plain--inline { display: inline-block; line-height: 1.5; }
@media (max-width: 1024px) {
  .pr-contact__box { grid-template-columns: calc(25% - 15px) 1fr; column-gap: 20px; }
}
@media (max-width: 767px) {
  .pr-contact { margin-inline: 30px; }
  .pr-contact__box { margin-bottom: 20px; padding-top: 50px; grid-template-columns: calc(35% - 6.5px) 1fr; column-gap: 10px; }
  .pr-contact__lines p { font-size: 14px; line-height: 1.1em; }
  .pr-contact__lines .pr-contact__strong--last { margin-bottom: 10px; }
  .pr-contact__lines .pr-contact__plain, .pr-contact__lines .pr-contact__plain--inline { line-height: 1em; }
}
/* live GenerateBlocks grid wraps below 360px: photo (35%) above the text column (65%) */
@media (max-width: 359px) {
  .pr-contact__box { grid-template-columns: 1fr; row-gap: 15px; }
  .pr-contact__photo { width: calc(35% - 6.5px); }
  .pr-contact__lines { width: calc(65% - 3.5px); }
}

.pr-main { max-width: 1200px; margin-inline: auto; padding: 40px; }
.pr-main::after { content: ""; display: table; clear: both; }
.post-article .pr-main__title { color: var(--contrast); font-size: 30px; font-weight: 700; line-height: 1.2; margin: 20px 0; overflow-wrap: break-word; }   /* live h2; a <p> here because it repeats the h1 */
.pr-main > p:last-child { margin-bottom: 0; }
/* live: the h2's 20px top margin collapses out of the article, so the floated photo starts 20px lower too */
@media (min-width: 1025px) { .pr-main { padding-top: 60px; } .post-article .pr-main__title { margin-top: 0; } }
@media (max-width: 768px) { .pr-main { padding: 30px; } }
@media (max-width: 767px) { .post-article .pr-main__title { font-size: 25px; } }
