/* A shared frame for the archive and individual-entry pages. */
/* WordPress adds .single to the body as well as the article.  Neutralize the
   older generic rule so it cannot constrain the whole page. */
body.single {
  max-width: none;
  padding: 0;
}

.site-header-inner,
.content,
.footer-inner {
  width: min(1180px, calc(100% - clamp(2rem, 7vw, 7rem)));
}

.site-header-inner {
  min-height: 7rem;
  padding-block: 1.4rem;
}

.breadcrumbs {
  background: #fff;
}

.breadcrumbs .content {
  padding-block: .15rem;
}

main.single {
  width: min(1120px, calc(100% - 3rem));
  margin: clamp(2rem, 4vw, 3.5rem) auto clamp(4rem, 6vw, 5.5rem);
  padding: clamp(2rem, 3vw, 3rem) clamp(1.5rem, 4vw, 3.5rem) clamp(2.5rem, 4vw, 3.5rem);
  background: #fff;
  box-shadow: 0 12px 32px rgba(21, 44, 60, .07);
}

.entry-header {
  max-width: 880px;
  margin: 0 auto;
}

.single .meta {
  margin: 0 0 .8rem;
}

.single h1 {
  max-width: none;
  margin: 0;
  color: #152c3c;
  font-size: clamp(2.15rem, 2.7vw, 2.75rem);
  line-height: 1.12;
}

.liturgical-context {
  margin: .75rem 0 0;
  color: #64727b;
  font: italic 1rem/1.5 Georgia, serif;
}

.single .entry-content {
  max-width: 780px;
  margin: 1.75rem auto 0;
  font-size: 1.1rem;
  line-height: 1.8;
}

.single .entry-content > :first-child {
  margin-top: 0;
}

/* Legacy posts often contain a small image floated left inside the first
   paragraph.  Let it breathe as its own centered image on the new design. */
.single .entry-content img,
.single .entry-content img.alignleft,
.single .entry-content img.alignright,
.single .entry-content img.aligncenter {
  float: none;
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  margin: 2rem auto;
}

.single .entry-content a:has(img) {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.entry-footer {
  max-width: 780px;
  margin: 2.5rem auto 0;
  padding-top: 1.6rem;
  border-top: 1px solid #d9e4e8;
}

.entry-topics h2 {
  margin: 0 0 .65rem;
  font: 700 .78rem Arial, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.entry-topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.entry-topic-list a {
  padding: .3rem .65rem;
  border: 1px solid #9bb8c4;
  border-radius: 999px;
  color: #0b5c78;
  font: 700 .78rem/1.2 Arial, sans-serif;
  text-decoration: none;
}

.entry-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.65rem;
  padding-top: 1.35rem;
  border-top: 1px solid #e3eaed;
}

.entry-navigation a {
  font: 700 .84rem Arial, sans-serif;
}

.entry-navigation .post-navigation div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

.homily-tag-cloud {
  margin-top: 2rem;
}

.homily-tag-cloud h3 {
  margin: 0 0 .55rem;
  color: #152c3c;
  font-size: 1.05rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.tag-cloud h3 {
  width: 100%;
}

.tag-cloud a {
  margin: 0;
  padding: .38rem .72rem;
  border: 1px solid #9bb8c4;
  border-radius: 999px;
  background: #fff;
  color: #0b5c78;
  font: 700 .82rem/1.25 Arial, sans-serif !important;
  text-decoration: none;
}

.tag-cloud a:hover,
.tag-cloud a:focus {
  border-color: #b87a28;
  background: #f3cc88;
  color: #152c3c;
}

.tag-count {
  color: #64727b;
  font-weight: 400;
}

@media (max-width: 760px) {
  .site-header-inner {
    min-height: 0;
  }

  main.single {
    width: calc(100% - 2rem);
    margin-top: 1.5rem;
    padding: 2.25rem 1.35rem 3rem;
  }

  .single h1 {
    max-width: none;
    font-size: clamp(2rem, 8vw, 2.6rem);
  }

  .single .entry-content {
    font-size: 1.03rem;
    line-height: 1.75;
  }

  .entry-navigation {
    align-items: flex-start;
    flex-direction: column;
  }

  .entry-navigation .post-navigation div {
    justify-content: flex-start;
  }
}
