/*
 * Post Author Quote Box.
 * The :is() prefix beats the theme's global rules in assets/css/single.css
 * (.post-content * and .post-content blockquote).
 * Mobile: photo + author on top, badge and quote below.
 * Desktop (768px+): photo on the left, quote then author on the right.
 */
:is(section.single-post .section-inner .post-content, body) .post-author-quote-box {
  width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  grid-template-areas:
    "photo author"
    "content content";
  align-items: center;
  gap: 24px 12px;
  margin-top: 20px;
  margin-bottom: 24px;
  padding: 24px 20px;
  background: #fff;
  border: 1px solid #e2ddd3;
  border-radius: 12px;
}

:is(section.single-post .section-inner .post-content, body) .post-author-quote-box--no-image {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "author"
    "content";
}

:is(section.single-post .section-inner .post-content, body) .post-author-quote-box__photo {
  grid-area: photo;
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(-58.42deg, #479ece 0%, #5bbd9f 100%);
}

:is(section.single-post .section-inner .post-content, body) .post-author-quote-box__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: cover;
  object-position: 50% 15%;
}

:is(section.single-post .section-inner .post-content, body) .post-author-quote-box__content {
  grid-area: content;
  display: flex;
  flex-flow: column nowrap;
  align-items: flex-start;
  gap: 20px;
  margin: 0;
}

:is(section.single-post .section-inner .post-content, body) .post-author-quote-box__badge {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 4px 10px;
  background: #fff4d6;
  border-radius: 600px;
  color: #897c50;
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
}

:is(section.single-post .section-inner .post-content, body) .post-author-quote-box__name {
  white-space: nowrap;
}

:is(section.single-post .section-inner .post-content, body) .post-author-quote-box__quote {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}

:is(section.single-post .section-inner .post-content, body) .post-author-quote-box__quote::before {
  content: none;
  display: none;
}

:is(section.single-post .section-inner .post-content, body) .post-author-quote-box__quote p {
  margin: 0;
  color: #3a3a3b;
  font-family: 'PT Serif', serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  text-transform: capitalize;
  word-break: break-word;
}

:is(section.single-post .section-inner .post-content, body) .post-author-quote-box__author {
  grid-area: author;
  min-width: 0;
  display: flex;
  flex-flow: column nowrap;
  gap: 10px;
  margin: 0;
}

:is(section.single-post .section-inner .post-content, body) .post-author-quote-box__byline {
  margin: 0;
  color: #000;
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 22px;
}

:is(section.single-post .section-inner .post-content, body) .post-author-quote-box__label {
  display: block;
  color: #000;
  font-size: inherit;
  line-height: inherit;
}

:is(section.single-post .section-inner .post-content, body) .post-author-quote-box__name-wrap {
  display: inline-flex;
  align-items: flex-start;
  gap: 2px;
}

:is(section.single-post .section-inner .post-content, body) .post-author-quote-box__name,
:is(section.single-post .section-inner .post-content, body) a.post-author-quote-box__name:visited {
  color: #000;
  font-size: inherit;
  font-weight: 700;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

:is(section.single-post .section-inner .post-content, body) a.post-author-quote-box__name:hover {
  color: #002345;
}

:is(section.single-post .section-inner .post-content, body) a.post-author-quote-box__name:focus-visible {
  outline: 2px solid #002345;
  outline-offset: 2px;
}

:is(section.single-post .section-inner .post-content, body) .post-author-quote-box__verified {
  display: block;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin: 0;
}

:is(section.single-post .section-inner .post-content, body) .post-author-quote-box__specialty {
  margin: 0;
  color: #564b26;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 14px;
  letter-spacing: 0.84px;
  text-transform: uppercase;
  word-break: break-word;
}

@media (min-width: 768px) {
  :is(section.single-post .section-inner .post-content, body) .post-author-quote-box {
    grid-template-columns: 120px minmax(0, 1fr);
    grid-template-areas:
      "photo content"
      "photo author";
    align-items: start;
    gap: 24px;
    padding: 30px 32px;
  }

  :is(section.single-post .section-inner .post-content, body) .post-author-quote-box--no-image {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "content"
      "author";
  }

  :is(section.single-post .section-inner .post-content, body) .post-author-quote-box__photo {
    align-self: center;
    width: 120px;
    height: 120px;
  }

  :is(section.single-post .section-inner .post-content, body) .post-author-quote-box__quote p {
    font-size: 24px;
    line-height: 32px;
  }

  :is(section.single-post .section-inner .post-content, body) .post-author-quote-box__byline {
    font-size: 20px;
    line-height: 24px;
  }

  :is(section.single-post .section-inner .post-content, body) .post-author-quote-box__label {
    display: inline;
  }

  :is(section.single-post .section-inner .post-content, body) .post-author-quote-box__label::after {
    content: ' ';
  }
}
