/* =========================================================
   Single Blog Post
========================================================= */

.vl-single-post-hero {
  display: flex;
  align-items: stretch;

  min-height: 230px;

  background-color: #f5f5f5;
  background-position: bottom center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: scroll;
}

.vl-single-post-hero__inner {
  width: min(1280px, calc(100% - 48px));

  margin: 0 auto;
  padding-top: 48px;
  padding-bottom: 36px;
}

.vl-single-post-hero__eyebrow {
  margin-bottom: 8px;

  color: #d71a21;

  font-family: "Manrope", Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
}

.vl-single-post-hero__title {
  max-width: 920px;

  margin: 0 0 8px;

  color: #111111;

  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(34px, 3vw, 46px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;

  overflow-wrap: anywhere;
}

.vl-single-post-hero__meta {
  margin: 0;

  color: #666666;

  font-family: "Manrope", Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
}

.vl-single-post {
  background: #f5f5f5;
}

.vl-single-post__article {
  padding: 48px 24px 24px;
}

.vl-single-post__reading {
  width: min(820px, 100%);
  margin: 0 auto;
}

/* =========================================================
   Featured Image / Fallback
========================================================= */

.vl-single-post__featured {
  position: relative;

  width: 100%;
  aspect-ratio: 16 / 9;

  margin-bottom: 34px;

  overflow: hidden;

  background: #eeeeee;
  border-radius: 4px;
}

.vl-single-post__featured-img {
  position: absolute;
  inset: 0;

  display: block;

  width: 100%;
  height: 100% !important;
  max-width: none;

  object-fit: cover;
}

.vl-single-post__placeholder {
  position: absolute;
  inset: 0;

  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  gap: 8px;

  padding: 24px;

  background: linear-gradient(135deg, #f5f5f5 0%, #ececec 100%);

  text-align: center;
}

.vl-single-post__featured.is-image-missing .vl-single-post__placeholder {
  display: flex;
}

.vl-single-post__featured.is-image-missing img {
  display: none;
}

.vl-single-post__placeholder-mark {
  color: #d71920;

  font-family: "Manrope", Arial, sans-serif;
  font-size: 20px;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.03em;
}

.vl-single-post__placeholder-text {
  color: #777777;

  font-family: "Manrope", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

/* =========================================================
   Article Typography
========================================================= */

.vl-single-post__content {
  color: #111111;

  font-family: "Manrope", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
}

.vl-single-post__content > *:first-child {
  margin-top: 0;
}

.vl-single-post__content > *:last-child {
  margin-bottom: 0;
}

.vl-single-post__content p,
.vl-single-post__content ul,
.vl-single-post__content ol,
.vl-single-post__content blockquote,
.vl-single-post__content figure,
.vl-single-post__content .wp-block-image,
.vl-single-post__content .wp-block-gallery {
  margin-top: 0;
  margin-bottom: 24px;
}

.vl-single-post__content h2 {
  margin: 40px 0 14px;

  color: #111111;

  font-family: "Manrope", Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.vl-single-post__content h3 {
  margin: 32px 0 12px;

  color: #111111;

  font-family: "Manrope", Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.vl-single-post__content a {
  color: #d71a21;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vl-single-post__content a:hover {
  color: #b9141b;
}

.vl-single-post__content a:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 3px;
}

.vl-single-post__content ul,
.vl-single-post__content ol {
  padding-left: 1.5em;
}

.vl-single-post__content li + li {
  margin-top: 8px;
}

.vl-single-post__content blockquote {
  padding: 18px 22px;

  border-left: 4px solid #d71a21;

  background: #ffffff;
}

.vl-single-post__content img,
.vl-single-post__content figure,
.vl-single-post__content .wp-block-image,
.vl-single-post__content .wp-block-gallery,
.vl-single-post__content video,
.vl-single-post__content iframe {
  max-width: 100%;
}

.vl-single-post__content figure,
.vl-single-post__content .wp-block-image {
  width: 100% !important;
}

.vl-single-post__content img {
  display: block;

  width: 100%;
  height: auto;

  border-radius: 4px;
}

.vl-single-post__content figcaption {
  margin-top: 8px;

  color: #777777;

  font-size: 13px;
  line-height: 1.5;
}

/* Prevent standard wide/full Gutenberg images from breaking the approved
   article reading width. */
.vl-single-post__content .alignwide,
.vl-single-post__content .alignfull {
  width: 100% !important;
  max-width: 100% !important;

  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* =========================================================
   Related Articles
========================================================= */

.vl-single-post-related {
  padding: 44px 24px 64px;

  background: #f5f5f5;
}

.vl-single-post-related__inner {
  width: min(1280px, 100%);
  margin: 0 auto;
}

.vl-single-post-related__title {
  margin: 0 0 30px;

  color: #111111;

  font-family: "Manrope", Arial, sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;

  text-align: center;
}

.vl-single-post-related__cta {
  display: flex;
  justify-content: center;

  margin-top: 34px;
}

.vl-single-post-related__button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: auto !important;
  min-width: 0 !important;

  padding: 15px 20px !important;

  border: 0 !important;
  border-radius: 30px !important;

  background: #d71a21 !important;
  background-color: #d71a21 !important;
  color: #ffffff !important;

  font-family: "Manrope", Arial, sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1 !important;

  text-decoration: none !important;

  transition:
    background 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.vl-single-post-related__button:hover,
.vl-single-post-related__button:focus {
  background: #b9141b !important;
  background-color: #b9141b !important;
  color: #ffffff !important;
}

.vl-single-post-related__button:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 3px;
}

.vl-single-post-related__button .elementor-button-content-wrapper {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.vl-single-post-related__button .elementor-button-text {
  color: inherit !important;
}

/* =========================================================
   Tablet
========================================================= */

@media (max-width: 1024px) {
  .vl-single-post-hero__inner {
    width: min(100% - 40px, 1280px);
  }

  .vl-single-post__article,
  .vl-single-post-related {
    padding-left: 20px;
    padding-right: 20px;
  }

  .vl-single-post-related__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* =========================================================
   Mobile
========================================================= */

@media (max-width: 767px) {
  .vl-single-post-hero {
    min-height: 230px;
  }

  .vl-single-post-hero__inner {
    width: calc(100% - 32px);

    padding-top: 42px;
    padding-bottom: 32px;
  }

  .vl-single-post-hero__title {
    font-size: 34px;
  }

  .vl-single-post__article {
    padding: 32px 16px 18px;
  }

  .vl-single-post__featured {
    margin-bottom: 28px;
  }

  .vl-single-post__content {
    font-size: 15px;
    line-height: 1.7;
  }

  .vl-single-post__content h2 {
    margin-top: 34px;
    font-size: 25px;
  }

  .vl-single-post__content h3 {
    margin-top: 28px;
    font-size: 21px;
  }

  .vl-single-post-related {
    padding: 38px 16px 52px;
  }

  .vl-single-post-related__title {
    margin-bottom: 26px;
    font-size: 27px;
  }

  .vl-single-post-related__grid {
    grid-template-columns: 1fr;
  }

  .vl-single-post-related__grid .vl-blog-card:nth-child(n + 2) {
    display: none;
  }

  .vl-single-post-related__cta {
    margin-top: 30px;
  }
}

/* =========================================================
   Reduced Motion
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .vl-single-post__content a {
    scroll-behavior: auto;
  }
}
