/* Scoped Figma-style layout for WordPress news posts only. */
body.fm-news-single-page-template {
  background: var(--fm-neutral-0);
  color: var(--fm-neutral-900);
}

body.fm-news-single-page-template .page-block.container {
  box-sizing: border-box;
  max-width: var(--fm-container);
  margin-bottom: 0;
  padding: 100px 20px;
  overflow: visible;
  border-radius: 0;
  background: var(--fm-neutral-0);
}

body.fm-news-single-page-template .page-block.container > .breadcrumb {
  max-width: none;
  margin: 0;
  padding: 0;
}

body.fm-news-single-page-template .page-block.container > .main-title {
  display: none;
}

body.fm-news-single-page-template .page-block.container > .inner {
  display: block;
  margin: 0;
  max-width: none;
  width: 100%;
}

body.fm-news-single-page-template
  .page-block.container
  > .inner
  > .inner-content {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 960px;
  margin: 88px auto 0;
  padding: 0;
}

body.fm-news-single-page-template .fm-news-single-page,
body.fm-news-single-page-template .single_news_wrap,
body.fm-news-single-page-template .fm-news-article,
body.fm-news-single-page-template .news-block__wrapper.single_news {
  width: 100%;
  margin: 0;
  padding: 0;
}

body.fm-news-single-page-template .fm-news-article,
body.fm-news-single-page-template .news-block__wrapper.single_news {
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.fm-news-single-page-template .news-block__image {
  display: none;
}

body.fm-news-single-page-template .fm-news-article .news-block__right {
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
}

body.fm-news-single-page-template .fm-news-article__date {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  min-height: 25px;
  margin: 0;
  padding: 4px 11px;
  border-radius: var(--fm-radius-sm);
  background: var(--fm-primary-50);
  color: var(--fm-neutral-600);
  font: var(--fm-type-interface-xs);
  letter-spacing: var(--fm-type-caption-regular-letter-spacing);
}

body.fm-news-single-page-template .fm-news-article__title {
  margin: 18px 0 20px;
  color: var(--fm-neutral-900);
  font: var(--fm-type-display-section);
  letter-spacing: var(--fm-type-display-section-letter-spacing);
}

body.fm-news-single-page-template .fm-news-article__content {
  max-width: none;
  margin: 0;
  color: var(--fm-neutral-900);
  font: var(--fm-type-body-l-regular);
  letter-spacing: var(--fm-type-body-l-regular-letter-spacing);
}

body.fm-news-single-page-template .fm-news-article__content p {
  display: block;
  margin: 0 0 20px;
  color: inherit;
  font: var(--fm-type-interface-l-regular);
}

body.fm-news-single-page-template .fm-news-article__content p:last-child {
  margin-bottom: 0;
}

body.fm-news-single-page-template .fm-news-article__content h2,
body.fm-news-single-page-template .fm-news-article__content h3,
body.fm-news-single-page-template .fm-news-article__content h4 {
  margin: 38px 0 20px;
  color: var(--fm-neutral-900);
  font: var(--fm-type-heading-h2);
  font-weight: 600;
  letter-spacing: var(--fm-type-heading-h2-letter-spacing);
}

body.fm-news-single-page-template .fm-news-article__content h2:first-child,
body.fm-news-single-page-template .fm-news-article__content h3:first-child,
body.fm-news-single-page-template .fm-news-article__content h4:first-child {
  margin-top: 0;
}

body.fm-news-single-page-template .fm-news-article__content a {
  color: inherit;
}

body.fm-news-single-page-template .fm-news-article__content ul,
body.fm-news-single-page-template .fm-news-article__content ol {
  margin: 0 0 22px;
  padding-left: 24px;
}

body.fm-news-single-page-template .fm-news-article__content li {
  margin: 0 0 8px;
}

body.fm-news-single-page-template .fm-news-article__content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: var(--fm-radius-lg);
}

body.fm-news-single-page-template .fm-news-article__content figure {
  max-width: 100%;
  margin: 32px 0;
}

body.fm-news-single-page-template .fm-news-article__content figure img {
  margin: 0;
}

body.fm-news-single-page-template .fm-news-article__content blockquote {
  margin: 28px 0;
  padding-left: 20px;
  border-left: 3px solid var(--fm-primary-500);
}

body.fm-news-single-page-template .fm-news-article__meta {
  display: none !important;
  margin-top: 40px;
  color: var(--fm-neutral-500);
  font: var(--fm-type-caption-regular);
}

body.fm-news-single-page-template .fm-news-article__meta .tegs_wrapper,
body.fm-news-single-page-template .fm-news-article__meta .news-breadcrumb,
body.fm-news-single-page-template .fm-news-article__meta .news-block__more {
  margin: 0 0 16px;
  padding: 0;
}

body.fm-news-single-page-template .fm-news-article__meta .tegs,
body.fm-news-single-page-template .fm-news-article__meta .news-breadcrumb {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.fm-news-single-page-template .fm-news-article__meta a {
  color: var(--fm-neutral-500);
}

body.fm-news-single-page-template .fm-news-article__meta .news-block__more {
  text-align: left;
}

body.fm-news-single-page-template .fm-news-article__meta .more {
  display: inline-flex;
  min-height: var(--fm-button-s-height);
  box-sizing: border-box;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--fm-radius-sm);
  background: var(--fm-button-dark-bg-default);
  color: var(--fm-neutral-0);
  text-decoration: none;
}

body.fm-news-single-page-template .fm-news-article__meta .more:hover {
  background: var(--fm-button-dark-bg-hover);
}

@media (max-width: 767px) {
  body.fm-news-single-page-template .page-block.container {
    padding: 100px 24px 0px 24px;
  }
  body.fm-news-single-page-template .fm-news-article__content p {
    font-size: 15px;
  }
  body.fm-news-single-page-template
    .page-block.container
    > .inner
    > .inner-content {
    margin-top: 60px;
  }

  body.fm-news-single-page-template .fm-news-article__title {
    margin: 12px 0 20px;
    font: var(--fm-type-heading-h1);
    letter-spacing: var(--fm-type-heading-h1-letter-spacing);
  }

  body.fm-news-single-page-template .fm-news-article__content {
    font: var(--fm-type-body-m-regular);
    letter-spacing: var(--fm-type-body-m-regular-letter-spacing);
  }

  body.fm-news-single-page-template .fm-news-article__content h2,
  body.fm-news-single-page-template .fm-news-article__content h3,
  body.fm-news-single-page-template .fm-news-article__content h4 {
    margin-top: 32px;
    font: var(--fm-type-heading-h3);
    font-weight: 600;
  }

  body.fm-news-single-page-template .fm-news-article__content img {
    margin: 24px 0;
    border-radius: var(--fm-radius-md);
  }
}
/* The shared breadcrumb renders Home and News in a nested list; add the separator before the active post title only. */
/* Keep the direct active item on the same 24px line box as the linked breadcrumb items. */
body.fm-news-single-page-template
  .page-block.container
  > .breadcrumb
  > .breadcrumb-item {
  display: inline-flex;
  align-items: center;
  height: 24px;
  line-height: 24px !important;
  vertical-align: middle;
}
body.fm-news-single-page-template
  .page-block.container
  > .breadcrumb
  > .breadcrumb-item::before {
  display: inline-block !important;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  margin: 0 1px;
  background: url('../images/icons/exfmpro-icon-caret-right-sm.svg') center /
    24px 24px no-repeat !important;
  content: '' !important;
}
/* Keep all breadcrumb levels on one centered row, including the active title. */
body.fm-news-single-page-template .page-block.container > .breadcrumb {
  flex-wrap: nowrap;
  white-space: nowrap;
}

body.fm-news-single-page-template .page-block.container > .breadcrumb > ul {
  flex: 0 0 auto;
}

body.fm-news-single-page-template
  .page-block.container
  > .breadcrumb
  > .breadcrumb-item {
  flex: 0 0 auto;
  white-space: nowrap;
}

body.fm-news-single-page-template
  .page-block.container
  > .breadcrumb
  > .breadcrumb-item
  > span {
  display: inline-flex;
  align-items: center;
  height: 24px;
  line-height: 18px !important;
  white-space: nowrap;
}

/* Mobile single-news pages follow the feedback shell spacing without affecting desktop. */
@media (max-width: 767px) {
  body.fm-news-single-page-template .mobile-header .navigation__container {
    padding-inline: 20px;
  }

  body.fm-news-single-page-template .page-block.container > .breadcrumb {
    margin: 24px 0 60px;
  }

  body.fm-news-single-page-template
    .page-block.container
    > .inner
    > .inner-content {
    margin-top: 0;
  }
}

@media (max-width: 767px) {
  body.fm-news-single-page-template .mobile-header {
    top: 60px;
  }
}
