@use './tokens' as blog;

@include blog.block {
  &__content {
    position: relative;
    z-index: 2;
    display: grid;
    width: min(1500px, 100vw);
    grid-template-columns: 280px minmax(0, 1fr) 280px;
    gap: 0;
    margin: -30vh auto 0;
    padding: 0 5px;
  }

  @media (min-width: 1700px) {
    &__content {
      width: min(1600px, 100%);
    }
  }

  &--no-banner &__content {
    margin: 85px auto 0;
  }

  &__page-info-wrap {
    grid-column: 1 / -1;
    min-height: 1px;
    margin-bottom: 30px;
  }

  &__page-info {
    width: auto;
    margin: 0 20px;
    background: var(--argon-card-deep);
  }

  &__page-info-body {
    padding: 24px;
  }

  &__page-info-title {
    display: block;
    margin: 0 0 8px;
    color: var(--argon-text);
    font-size: 28px;
    font-weight: 400;
    line-height: 42px;
  }

  &__page-info-lead {
    display: inline-block;
    margin: 0 0 16px;
    color: var(--argon-text);
    font-size: 20px;
    font-weight: 300;
    line-height: 34px;
  }

  &__page-info-description,
  &__page-info-meta {
    color: var(--argon-text);
    font-weight: 300;
    line-height: 27.2px;
  }

  &__page-info-meta {
    display: block;
    align-items: center;
    gap: 8px;
    margin: 16px 0 0;
    opacity: 0.9;

    .anticon {
      margin-right: 8px;
    }
  }

  &__page-info--search &__page-info-title {
    display: inline-block;
    margin: 0 8px 8px 0;
  }

  &__page-info--search &__page-info-meta {
    margin: 16px 0 0;
  }

  &__sidebar {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    width: 280px;
    margin: 0 0 25px;
    padding: 0 10px 0 20px;
  }

  &__sidebar-mask {
    display: none;
  }

  &__rightbar {
    grid-column: 3;
    grid-row: 2;
    align-self: start;
    width: 280px;
    margin: 0 0 25px;
    padding: 0;
  }

  &__primary {
    grid-column: 2;
    grid-row: 2;
    width: auto;
  }

  &__main {
    width: auto;
    padding: 0 20px;
  }

  &__sidebar-panel {
    width: 250px;
    overflow: hidden;
  }

  &__sidebar-panel--menu {
    margin: 0;
  }

  &__sidebar-panel--overview {
    animation: none;
    margin: 10px 0 0;
  }

  &__sidebar-panel--sticky {
    position: fixed;
    top: 80px;
    width: 250px;
    animation: none;
  }
}
