.site-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  width: 100%;

  min-height: calc(100vh - var(--site-header-height));

  .after-leading-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-grow: 1;
  }

  article {
    min-width: 8rem;
    max-width: 960px;
    min-height: calc(100vh - var(--site-header-height) - var(--site-subheader-height));
    padding: 1.5rem;

    @media (min-width: 576px) {
      padding: 2rem;
    }

    img {
      object-fit: contain;

      &.diagram-wrap {
        background-color: var(--site-diagram-wrap-bgColor);
        padding: 1rem;
        border-radius: 1rem;
      }

      &.small-diagram-wrap {
        background-color: var(--site-diagram-wrap-bgColor);
        padding: 0.5rem;
        border-radius: 0.5rem;
      }
    }

    > img, > lite-youtube {
      margin-bottom: 1rem;
    }

    @at-root body.wide-site-content & {
      max-width: 1200px;
      width: 100%;
    }
  }

  #site-header-wrapper {
    margin-block-end: 1rem;

    h1 {
      margin-bottom: 0;
    }
  }

  p {
    margin-block-start: 0;
  }

  b, strong {
    font-weight: bolder;
  }

  h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
    scroll-margin-top: 7rem;
    line-height: 1.2;
    font-family: var(--site-ui-fontFamily);
    font-weight: 400;

    @media (min-width: 1200px) {
      scroll-margin-top: 5rem;
    }
  }

  h1 {
    font-size: 2.75rem;
    margin-top: 0;
    margin-bottom: 0;
    scroll-margin-top: 8rem;
  }

  h2 {
    font-size: 1.875rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  h4 {
    font-size: 1.3125rem;
  }

  h5 {
    font-size: 1.125rem;
  }

  h6 {
    font-size: 0.9375rem;
  }

  .header-wrapper {
    display: flex;
    margin-block-start: 1.5rem;
    margin-block-end: 0.75rem;
    align-items: center;

    h1, h2, h3, h4, h5, h6 {
      margin-top: 0;
      margin-bottom: 0;
    }

    .heading-link {
      margin-left: 0.4rem;
      font-size: 1.3rem;
      line-height: 1;
      transition: all 0.15s ease-in-out;
      overflow: hidden;
      color: var(--site-base-fgColor-alt);
      opacity: 0;
      text-decoration: none;
      user-select: none;

      &:hover {
        color: var(--site-link-fgColor);
      }

      &:focus {
        opacity: 1
      }

      &:active {
        color: var(--site-link-fgColor-active);
      }
    }

    &:hover {
      .heading-link {
        opacity: 1
      }
    }
  }

  // Embedded DartPad
  iframe {
    border: 2px solid var(--site-outline-variant);
    background-color: var(--site-inset-bgColor);
    max-width: 100%;
  }
}

nav.breadcrumbs {
  align-items: center;
  margin-block-end: 1rem;

  > ol {
    border-radius: 0.375rem;
    margin-block-start: 0;
    padding: 0.375rem 0;

    align-items: center;
    list-style: none;

    font-family: var(--site-ui-fontFamily);

    display: flex;
    flex-wrap: wrap;
    flex-direction: row;

    li.breadcrumb-item {
      display: flex;
      flex-direction: row;
      align-items: center;
      padding: 0;

      & a {
        padding: 0.125rem;
        border-radius: 0.125rem;
      }

      &.active a {
        color: var(--site-base-fgColor-alt);
        cursor: default;
        text-decoration: none;
      }

      &:before {
        display: none;
      }
    }

    .child-icon {
      user-select: none;
      color: var(--site-base-fgColor-lighter);
    }
  }
}

.full-width {
  width: 100%;
}

iframe.full-width {
  aspect-ratio: 16 / 9;
}
