body.bop-policy-page-template-active .entry-content.wp-block-post-content {
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  max-width: min(
    calc(100% - (var(--wp--preset--spacing--16, 16px) * 2)),
    var(--wp--style--global--content-size, 768px)
  );
}

body.bop-policy-page-template-active .entry-content.wp-block-post-content [id] {
  scroll-margin-top: calc(
    var(--wp--preset--spacing--80, 80px) +
      var(--wp--preset--spacing--20, 20px)
  );
}

body.bop-policy-page-template-active
  .entry-content.wp-block-post-content
  .bop-policy-jump-links,
body.bop-policy-page-template-active
  .entry-content.wp-block-post-content
  .bop-policy-related-links {
  box-sizing: border-box;
  margin-top: var(--wp--preset--spacing--32, 32px);
  overflow-wrap: anywhere;
  padding: var(--wp--preset--spacing--20, 20px);
  background: var(--wp--preset--color--surface, #fffaf3);
  border: 1px solid var(--wp--preset--color--gray-500, #d6d6d6);
  border-radius: var(--wp--preset--spacing--8, 8px);
}

body.bop-policy-page-template-active
  .entry-content.wp-block-post-content
  .bop-policy-jump-links
  > :first-child,
body.bop-policy-page-template-active
  .entry-content.wp-block-post-content
  .bop-policy-related-links
  > :first-child {
  margin-top: 0;
}

body.bop-policy-page-template-active
  .entry-content.wp-block-post-content
  .bop-policy-jump-links
  > :last-child,
body.bop-policy-page-template-active
  .entry-content.wp-block-post-content
  .bop-policy-related-links
  > :last-child {
  margin-bottom: 0;
}

body.bop-policy-page-template-active
  .entry-content.wp-block-post-content
  .bop-policy-jump-links__label {
  margin: 0;
  color: var(--wp--preset--color--heading, #9c6b4f);
  font-family: var(--wp--preset--font-family--space-grotesk);
  font-size: var(--wp--preset--font-size--xxx-small, 14px);
  font-weight: 600;
  line-height: 1.3;
}

body.bop-policy-page-template-active
  .entry-content.wp-block-post-content
  .bop-policy-jump-links__list,
body.bop-policy-page-template-active
  .entry-content.wp-block-post-content
  .bop-policy-related-links
  ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wp--preset--spacing--8, 8px) var(--wp--preset--spacing--16, 16px);
  margin: var(--wp--preset--spacing--12, 12px) 0 0;
  padding-left: 0;
  list-style: none;
}

body.bop-policy-page-template-active
  .entry-content.wp-block-post-content
  .bop-policy-jump-links__list
  li,
body.bop-policy-page-template-active
  .entry-content.wp-block-post-content
  .bop-policy-related-links
  li {
  margin: 0;
}

body.bop-policy-page-template-active
  .entry-content.wp-block-post-content
  .bop-policy-jump-links
  a,
body.bop-policy-page-template-active
  .entry-content.wp-block-post-content
  .bop-policy-related-links
  a {
  color: var(--wp--preset--color--primary-500, #161515);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

body.bop-policy-page-template-active
  .entry-content.wp-block-post-content
  .bop-policy-jump-links
  a:hover,
body.bop-policy-page-template-active
  .entry-content.wp-block-post-content
  .bop-policy-jump-links
  a:focus-visible,
body.bop-policy-page-template-active
  .entry-content.wp-block-post-content
  .bop-policy-related-links
  a:hover,
body.bop-policy-page-template-active
  .entry-content.wp-block-post-content
  .bop-policy-related-links
  a:focus-visible {
  color: var(--wp--preset--color--heading, #9c6b4f);
}

body.bop-policy-page-template-active
  .entry-content.wp-block-post-content
  .bop-policy-related-links
  > .wp-block-heading:first-child {
  margin-top: 0;
}

@media (max-width: 600px) {
  body.bop-policy-page-template-active .entry-content.wp-block-post-content [id] {
    scroll-margin-top: var(--wp--preset--spacing--80, 80px);
  }

  body.bop-policy-page-template-active
    .entry-content.wp-block-post-content
    .bop-policy-jump-links,
  body.bop-policy-page-template-active
    .entry-content.wp-block-post-content
    .bop-policy-related-links {
    padding: var(--wp--preset--spacing--16, 16px);
  }

  body.bop-policy-page-template-active
    .entry-content.wp-block-post-content
    .bop-policy-jump-links__list,
  body.bop-policy-page-template-active
    .entry-content.wp-block-post-content
    .bop-policy-related-links
    ul {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
}
