/* Article / rich-content styles — distilled from the WP theme's post.css.
 * Applies to blob HTML captured at ETL time (prelander articles now; blog
 * posts later). Classic CSS on purpose: the markup inside .entry-content /
 * .post-intro is uncontrolled core-block HTML, not componentized. */

.post-intro {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-top: 2rem;
}

.entry-header {
  margin-bottom: 0;
}

.entry-dets {
  display: flex;
  flex-direction: column;
  gap: 0.675rem;
  margin-top: 0;
}

.entry-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: normal;
  margin: 0;
}
@media (min-width: 769px) {
  .entry-title {
    font-size: 3rem;
  }
}

.entry-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: #1b1b1f;
  margin-top: 0.625rem;
}
.entry-meta__avatar {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  margin-right: 0.625rem;
}
.entry-meta__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Region wrappers */
.entry-content__wrapper {
  display: flex;
  flex-direction: column-reverse;
}
.entry-content__aside {
  display: none;
  margin-bottom: 2rem;
}
@media (min-width: 769px) {
  .entry-content__wrapper {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
  }
  .entry-content {
    grid-column: 1 / 9;
  }
  .entry-content__aside {
    grid-column: 9 / 13;
    display: block;
  }
}

/* Content typography (core-block HTML) */
.entry-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  color: #1b1b1f;
}
.post-intro > p,
.entry-content > p {
  margin: 0;
  line-height: 1.6;
}
.entry-content h2 {
  font-size: 1.5rem;
  margin: 0;
}
.entry-content h3 {
  font-size: 1rem;
  margin: 0;
}
@media (min-width: 769px) {
  .entry-content h2 {
    font-size: 2.25rem;
    font-weight: 500;
    line-height: normal;
  }
  .entry-content > h2:not(:first-child) {
    margin-top: 0.75rem;
  }
}
.entry-content > h1 + p,
.entry-content > h2 + p,
.entry-content > h3 + p,
.entry-content > h4 + p {
  margin-top: -0.5rem;
}

/* Images (core image blocks) */
.post-intro .wp-block-image,
.entry-content .wp-block-image {
  height: 18rem;
  margin: 0;
}
@media (min-width: 769px) {
  .post-intro .wp-block-image,
  .entry-content .wp-block-image {
    height: 29rem;
  }
}
.post-intro .wp-block-image img,
.entry-content .wp-block-image img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  border-radius: 10px;
}

/* Lists inside article content */
.entry-content ul,
.entry-content ol {
  padding-left: 1.5rem;
  margin: 0;
}
.entry-content ul {
  list-style: disc;
}
.entry-content ol {
  list-style: decimal;
}
.entry-content li {
  margin: 0.25rem 0;
  line-height: 1.6;
}
.entry-content ul ul {
  list-style: circle;
  margin-top: 0.25rem;
}
.entry-content ol ol {
  list-style: lower-alpha;
  margin-top: 0.25rem;
}

/* Banner inside regions */
.entry-banner-wrapper {
  margin: 1rem 0;
}
.entry-content__aside .entry-banner-wrapper {
  position: sticky;
  top: 5.625rem; /* WP .aside-banner .entry-banner-wrapper */
}

/* ══════════════════ Blog single-post shell (theme single.php) ═══════════════
 * Effective values distilled from the theme's post.css (782 lines with many
 * self-overrides — last-wins already resolved here). Rules that would collide
 * with the prelander article shell are scoped under .type-post / .gpb. */

/* .article-grid (the theme .grid-container in article contexts) moved to the
   global theme sheet, src/app/(site)/homepage-theme.css: the homepage blog
   teaser (cwu-blog, blog-cards.css) wraps in it too, so it cannot live in a
   family file that only blog posts link. */

article.post {
  padding: 0.625rem 0 0;
}
.type-post .entry-header,
.type-post .post-intro,
.type-post .entry-content,
.type-post .entry-footer {
  grid-column: span 4;
}
.type-post .entry-content__wrapper {
  grid-column: span 4;
}
@media (min-width: 769px) {
  article.post {
    padding: 2rem 0 0;
  }
  .type-post .entry-header,
  .type-post .post-intro,
  .type-post .entry-content__wrapper,
  .type-post .entry-footer {
    grid-column: span 12;
  }
}

.type-post .entry-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
}
.type-post .entry-dets {
  margin-top: 2rem;
  margin-bottom: 0;
}
.type-post .post-intro {
  padding-top: 0;
}
.type-post .entry-content > h2 {
  font-weight: 500;
}
@media (min-width: 769px) {
  .type-post .entry-header {
    display: block;
  }
  .type-post .entry-dets {
    margin-top: 2rem;
  }
}

/* Breadcrumb */
.breadcrumb {
  padding: 0;
  background-color: transparent;
  border-radius: 5px;
  color: #004c8d;
  font-weight: 700;
  line-height: 180%;
  font-family: var(--font-inter);
  font-size: 10px;
  margin-bottom: 5px;
  max-width: 100%;
  width: max-content;
}
.breadcrumb > * {
  font-size: 0.625rem;
}
.breadcrumb > :not(:last-child) {
  margin-right: 1.875rem;
  position: relative;
}
.breadcrumb > :not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: 1px;
  right: -1.125rem;
  transform: translateX(50%);
  background-image: url('data:image/svg+xml,%3Csvg width="8" height="10" viewBox="0 0 8 10" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M7.542 5.35117L0 9.85117V8.50117L5.76 4.99117L0 1.46317V0.14917L7.542 4.68517V5.35117Z" fill="%231B1B1F" /%3E%3C/svg%3E');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 0.625rem;
  height: 0.625rem;
}
.breadcrumb a {
  font-weight: 400;
  color: #3c4b5f;
}
@media (min-width: 769px) {
  .breadcrumb {
    margin-bottom: 0.5rem;
  }
}

/* Share bar (top variant in the header, framed variant in the footer) */
.share-bar {
  display: flex;
  align-items: center;
  background-color: transparent;
  padding: 0;
  border-radius: 5px;
  width: max-content;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1b1b1f;
}
.share-bar__content {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.entry-header .share-bar__bottom--text {
  display: none;
}
.share-icons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.share-icon img {
  width: 1rem;
  height: 1rem;
}
.entry-footer .share-bar {
  align-self: center;
  width: 100%;
  text-align: center;
  justify-content: center;
  margin: 2rem 0;
  padding: 20px 0px;
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--font-inter);
  border: 1px solid #000;
  border-radius: 10px;
  background: #eee;
}
.entry-footer .share-bar__content {
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
}
.entry-footer .share-bar__top--text {
  display: none;
}
.entry-footer .share-icon img {
  width: 1rem;
  height: 1rem;
}
@media (min-width: 769px) {
  .entry-footer .share-bar {
    align-self: start;
    max-width: 32.75rem;
    padding: 1.25rem 1rem;
    width: max-content;
    font-weight: 600 !important;
    line-height: normal;
  }
  .entry-footer .share-bar__content {
    flex-direction: column;
    width: max-content;
    align-items: flex-start;
  }
}

/* Meta line */
.entry-meta .updated-date {
  color: #6b6b70;
}
.entry-meta .updated-date::before {
  content: "·";
  margin: 0 0.375rem;
  color: #6b6b70;
}

/* Featured image */
.featured-image > img {
  width: 100%;
  height: 18.125rem;
  object-fit: cover;
  border-radius: 0.625rem;
}
@media (min-width: 769px) {
  .featured-image > img {
    height: 28rem;
  }
}

/* Native TOC (Rank Math markup parity: .wp-block-rank-math-toc-block) */
.wp-block-rank-math-toc-block {
  font-size: 1rem;
  line-height: 1.5rem;
  color: #1b1b1f;
}
.wp-block-rank-math-toc-block > h2,
.wp-block-rank-math-toc-block > h3 {
  margin-bottom: 1.25rem;
  font-size: 1rem;
  color: #1b1b1f;
}
.wp-block-rank-math-toc-block li {
  padding-left: 2rem;
  position: relative;
}
.wp-block-rank-math-toc-block li:not(:last-child) {
  margin-bottom: 1.25rem;
}
.wp-block-rank-math-toc-block li a {
  text-decoration: underline;
}
.wp-block-rank-math-toc-block ul ul {
  display: none !important;
}
.wp-block-rank-math-toc-block li::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  width: 1rem;
  height: 1rem;
  background: #004c8d;
  border-radius: 50%;
}
@media (min-width: 769px) {
  .wp-block-rank-math-toc-block > h2,
  .wp-block-rank-math-toc-block > h3 {
    font-size: 1.5rem;
  }
}

/* Columns of figures inside content */
.entry-content .wp-block-columns:has(figure) {
  flex-wrap: nowrap !important;
  gap: 0.625rem;
}
.entry-content .wp-block-columns .wp-block-column figure {
  max-height: 11.25rem;
}
.entry-content .wp-block-columns img {
  border-radius: 0 !important;
}
@media (min-width: 769px) {
  .entry-content .wp-block-columns:has(figure) {
    flex-wrap: wrap !important;
    gap: 2rem;
  }
  .entry-content .wp-block-columns .wp-block-column figure {
    max-height: none;
  }
}

/* Footer author box */
.type-post .entry-footer {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.author-bio {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  align-items: center;
  border-top: 1px solid black;
  border-bottom: 1px solid black;
  padding: 1.75rem 0.675rem;
  text-align: center;
  font-size: 1.25rem;
}
.author-bio h3 {
  font-weight: 700;
  font-size: 1.25rem;
}
.author-bio p {
  font-size: 1.25rem;
}
.author-bio a {
  font-weight: 700;
  text-decoration: underline;
}
.author-description {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.author-bio img {
  border-radius: 50%;
}
@media (min-width: 769px) {
  .author-bio {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 1.25rem;
    text-align: left;
    margin-top: 0;
    padding: 2.5rem 1.25rem;
  }
}

/* Content links (blog posts only) */
.post.type-post .entry-content a:not(.cta-btn),
.post.type-post .post-intro a:not(.cta-btn) {
  color: #004c8d;
  text-decoration: underline;
}

/* The theme buttons (.btn, .btn--small/--smallest/--transparent) used to sit
   here; they are theme-global (WP style.css:351 — the header CTA uses
   .btn.btn--small on every page) and now live in homepage-theme.css. */

/* ══════════════ global-post-banner (scoped: .gpb) ══════════════
 * Scoping keeps prelander's Tailwind-styled .entry-banner untouched. */
.gpb .entry-banner {
  background: #242a40;
  color: #fff;
  text-align: center;
  grid-column: span 12;
  padding: 1.875rem 0;
}
.gpb .entry-banner__content {
  padding: 0 1.25rem 1rem;
}
.gpb .entry-banner__img {
  padding: 0 0.5rem;
}
.gpb .entry-banner__img > img {
  width: 100%;
  height: auto;
}
.gpb .entry-banner__title > * {
  font-weight: 400 !important;
  font-size: 3rem !important;
  line-height: 67%;
}
.gpb .entry-banner__title {
  margin-bottom: 0.625rem;
}
.gpb .entry-banner__subtitle > * {
  font-weight: 900 !important;
  font-size: 1.625rem !important;
}
.gpb .entry-banner__btn > * {
  display: block;
  width: max-content;
  max-width: 100%;
}
.gpb .entry-banner__btn {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}
.aside-banner .gpb .entry-banner {
  flex-direction: column-reverse;
  text-align: center;
}
.aside-banner .gpb .entry-banner__img {
  margin: 0 0 0.75rem;
  width: 100%;
  max-width: unset;
}
.aside-banner .gpb .entry-banner__title > * {
  font-size: 2.625rem !important;
  line-height: 79%;
}
.aside-banner .gpb .entry-banner__title {
  margin-bottom: 0.5rem;
}
.aside-banner .gpb .entry-banner__subtitle > * {
  font-size: 1.5rem !important;
}
.aside-banner .gpb .entry-banner__btn {
  justify-content: center;
  margin-top: 0.5rem;
}
@media (min-width: 769px) {
  .gpb .entry-banner {
    text-align: left;
    padding: 1.875rem 1.25rem;
    display: flex;
  }
  .gpb .entry-banner__btn {
    justify-content: flex-start;
  }
  .gpb .entry-banner__title > * {
    font-size: 3.5rem !important;
    line-height: normal;
  }
  .gpb .entry-banner__title {
    margin-bottom: 0;
  }
  .gpb .entry-banner__subtitle > * {
    font-size: 2.625rem !important;
  }
  .gpb .entry-banner__img {
    padding: 0;
    max-width: 16.625rem;
    width: 30%;
    flex-shrink: 0;
    margin-left: 2.375rem;
  }
  .gpb .entry-banner__img > img {
    height: 100%;
    object-fit: cover;
  }
  .gpb .entry-banner__content {
    padding: 0;
    flex-grow: 1;
  }
  /* aside variants keep the stacked look on desktop too */
  .aside-banner .gpb .entry-banner {
    flex-direction: column-reverse;
    text-align: center;
  }
  .aside-banner .gpb .entry-banner__btn {
    justify-content: center;
  }
  .aside-banner .gpb .entry-banner__title > * {
    font-size: 2.625rem !important;
    line-height: 79%;
  }
  .aside-banner .gpb .entry-banner__subtitle > * {
    font-size: 1.5rem !important;
  }
}

