/** WordPress block wrappers mapped back to /theme/article.html. */

.udfo-article .article-page-head {
  min-height: 360px;
  padding: 58px 0 52px;
  color: var(--ink);
}

.udfo-article .article-page-head > .wp-block-post-featured-image {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  margin: 0;
  opacity: 1;
}

.udfo-article .article-page-head::after {
  z-index: 1;
  background: linear-gradient(90deg, #fff 0%, #fff 39%, rgba(255,255,255,.94) 55%, rgba(255,255,255,.62) 77%, rgba(255,255,255,.2) 100%);
}

.udfo-article .article-page-head .container {
  position: relative;
  z-index: 2;
}

.udfo-article .article-page-head .page-breadcrumb {
  color: #696b72;
}

.udfo-article .article-page-head .article-meta {
  margin-bottom: 8px;
}

.udfo-article .article-page-head .article-meta time {
  color: #6d6f75;
}

.udfo-article .article-page-head .article-page-title {
  max-width: 760px;
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(35px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.08;
}

.udfo-article .article-page-head .article-intro,
.udfo-article .article-page-head .article-intro p {
  max-width: 650px;
  margin: 0;
  color: #4d4f55;
  font-size: 16px;
  line-height: 1.7;
}

.udfo-article .article-share-rail {
  z-index: 3;
  top: 130px;
  bottom: 58px;
  left: max(8px, calc((100vw - var(--container)) / 2 - 52px));
  width: 36px;
  height: auto;
}

.udfo-article .article-share-rail .share-links {
  top: calc(var(--wp-admin-bar-offset) + 92px);
  gap: 8px;
}

.udfo-article .share-links a,
.udfo-article .share-links button {
  width: 31px;
  height: 31px;
  border: 0;
  background: #fff;
  color: var(--red);
  box-shadow: 0 7px 20px rgba(25,27,31,.13);
}

.udfo-article .share-links .udfo-icon {
  font-size: 13px;
  line-height: 1;
}

.udfo-article .article-page-section {
  padding: 46px 0 60px;
}

.udfo-article .article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 42px;
}

.udfo-article .udfo-category-list li {
  display: block;
}

.udfo-article .udfo-category-list a {
  width: 100%;
}

.udfo-article .udfo-category-count {
  flex: 0 0 auto;
  min-width: 28px;
  margin-left: auto;
  text-align: right;
}

.udfo-article .article-content {
  font-size: 14px;
  line-height: 1.8;
}

.udfo-article .article-content h2 {
  padding-left: 14px;
  margin: 25px 0 12px;
  border-left: 3px solid var(--red);
  font-size: 19px;
}

.udfo-article .article-content .wp-block-image,
.udfo-article .article-content .wp-block-image img:first-child {
  width: 100%;
}

.udfo-article .article-content .wp-block-image img:first-child {
  max-height: 430px;
  border-radius: 8px;
  object-fit: cover;
}

.udfo-article .article-content .is-style-udfo-checks {
  display: grid;
  gap: 7px;
}

.udfo-article .article-content .is-style-udfo-quote,
.udfo-article .article-content blockquote {
  position: relative;
  padding: 23px 25px 23px 58px;
  border: 0;
  border-radius: 7px;
  margin: 24px 0;
  background: var(--page-soft);
  font-size: 14px;
  font-weight: 400;
}

.udfo-article .article-content .is-style-udfo-quote::before,
.udfo-article .article-content blockquote::before {
  position: absolute;
  top: 12px;
  left: 18px;
  color: var(--red);
  content: "“";
  font-size: 60px;
  font-weight: 800;
  line-height: 1;
}

.udfo-article .article-post-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 0;
  border-radius: 7px;
  margin-top: 26px;
  background: #fff;
  box-shadow: var(--page-shadow);
  font-size: 12px;
  font-weight: 700;
}

.udfo-article .article-post-nav a {
  color: var(--red);
}

.udfo-article .related-section {
  margin-top: 28px;
}

.udfo-article .related-section .page-heading {
  margin-bottom: 16px;
}

.udfo-article .related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 0;
}

.udfo-article .related-card {
  display: grid;
  grid-template-rows: 112px 1fr;
  border-radius: 7px;
}

.udfo-article .related-card img,
.udfo-article .related-card > a:first-child,
.udfo-article .related-card-placeholder {
  width: 100%;
  height: 112px;
}

.udfo-article .related-card > a:first-child img {
  height: 100%;
}

.udfo-article .related-card > div,
.udfo-article .related-card-body {
  display: flex;
  min-height: 118px;
  padding: 12px 13px 13px;
  flex-direction: column;
}

.udfo-article .related-card h3 {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.35;
}

.udfo-article .related-card .text-link {
  margin-top: auto;
}

@media (max-width: 1263px) {
  .udfo-article .article-share-rail { display: none; }
  .udfo-article .article-share-mobile { display: flex; margin-top: 24px; }
  .udfo-article .article-share-mobile .share-links { flex-direction: row; }
}

@media (max-width: 1050px) {
  .udfo-article .article-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
  }
}

@media (max-width: 767px) {
  .udfo-article .article-page-head {
    min-height: auto;
    padding: 38px 0 36px;
  }
  .udfo-article .article-page-head::after {
    background: linear-gradient(90deg, rgba(255,255,255,.98), rgba(255,255,255,.82));
  }
  .udfo-article .article-page-head .article-page-title { font-size: 35px; }
  .udfo-article .article-layout { grid-template-columns: 1fr; }
  .udfo-article .page-sidebar { margin-top: 10px; }
  .udfo-article .related-grid {
    display: flex;
    gap: 14px;
    margin-right: calc(50% - 50vw);
    overflow-x: auto;
    padding: 0 max(20px, calc(50vw - 50%)) 18px 0;
    scroll-padding-inline-start: 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .udfo-article .related-grid::-webkit-scrollbar { display: none; }
  .udfo-article .related-card {
    display: grid;
    flex: 0 0 min(82vw, 292px);
    min-width: min(82vw, 292px);
    grid-template-columns: 1fr;
    grid-template-rows: 112px 1fr;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .udfo-article .related-card > a:first-child,
  .udfo-article .related-card img,
  .udfo-article .related-card-placeholder {
    width: 100%;
    height: 112px;
    min-height: 112px;
  }
}
