.insight-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1200;
  width: 100%;
  height: 4px;
  background: #f6f6f6;
}

.insight-progress span {
  display: block;
  height: 100%;
  background: #ef3139;
}

.insight-article {
  position: relative;
}

.insight-article::before,
.insight-article::after {
  content: "";
  position: absolute;
  width: 64px;
  height: 64px;
  pointer-events: none;
}

.insight-article::before {
  top: 48px;
  left: 16px;
  background:
    linear-gradient(#ef3139, #ef3139) 0 0 / 2px 100% no-repeat,
    linear-gradient(#ef3139, #ef3139) 0 100% / 100% 2px no-repeat;
  clip-path: polygon(0 0, 0 100%, 100% 100%);
}

.insight-article::after {
  right: 16px;
  bottom: 80px;
  background:
    linear-gradient(#022d62, #022d62) 100% 0 / 2px 100% no-repeat,
    linear-gradient(#022d62, #022d62) 0 0 / 100% 2px no-repeat;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.insight-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: stretch;
}

.insight-layout > .blog-post,
.insight-layout .blog-post-content,
.insight-layout .blog-post-details,
.insight-layout .insight-content {
  min-width: 0;
  width: 100%;
}

@media (min-width: 992px) {
  .insight-layout:has(> .insight-sidebar) {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}

.insight-sidebar {
  min-height: 100%;
}

.insight-toc {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 112px);
  overflow: auto;
  padding: 24px;
  background: #f6f6f6;
  border-radius: 5px;
}

.insight-toc summary {
  color: #022d62;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.insight-toc-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.insight-toc-list li + li {
  margin-top: 8px;
}

.insight-toc-list a {
  color: #676c71;
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
}

.insight-toc-list a.is-active,
.insight-toc-list a:hover {
  color: #ef3139;
}

.insight-lead {
  color: #022d62;
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 24px;
}

.insight-article .blog-post-info {
  flex-wrap: wrap;
  gap: 8px 16px;
}

.insight-article .blog-post-date {
  padding-left: 0;
}

.insight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  color: #676c71;
  font-size: 16px;
  line-height: 1.5;
}

.insight-content h2 {
  scroll-margin-top: 96px;
  color: #022d62;
  font-size: 32px;
  line-height: 1.2;
  margin: 48px 0 16px;
}

.insight-content h3 {
  color: #022d62;
  font-size: 24px;
  line-height: 1.2;
}

.insight-content p,
.insight-content li {
  font-size: 16px;
  line-height: 1.5;
}

.insight-content .insight-table th {
  background: #022d62;
  color: #ffffff;
}

.insight-author {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #eeeeee;
}

.insight-author p {
  margin-bottom: 8px;
  color: #676c71;
  font-size: 16px;
  line-height: 1.5;
}

.insight-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 24px;
}

.insight-tools p {
  margin: 0;
  color: #022d62;
  font-size: 16px;
}

.insight-cta {
  margin-top: 48px;
  padding: 32px;
  background: #022d62;
  color: #ffffff;
  border-radius: 8px;
}

.insight-cta h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 32px;
  line-height: 1.2;
}

.insight-cta p {
  margin-bottom: 24px;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.5;
}

.insight-related {
  margin-top: 48px;
}

.insight-related h2 {
  margin: 0 0 24px;
  color: #022d62;
  font-size: 32px;
  line-height: 1.2;
}

.insight-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.insight-card {
  display: block;
  color: inherit;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #eeeeee;
  box-shadow: 2px 2px 4px 0 rgba(2, 45, 98, 0.1);
}

.insight-card img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.insight-card div {
  padding: 16px;
}

.insight-card small {
  display: block;
  margin-bottom: 8px;
  color: #ef3139;
  font-size: 16px;
  line-height: 1.5;
}

.insight-card strong {
  color: #022d62;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

@media (max-width: 1199px) {
  .insight-article::before,
  .insight-article::after {
    display: none;
  }
}

@media (max-width: 991px) {
  .insight-layout,
  .insight-related-grid {
    grid-template-columns: 1fr;
  }

  .insight-content h2,
  .insight-cta h2,
  .insight-related h2 {
    font-size: 24px;
  }
}

@media (max-width: 767px) {
  .insight-sidebar,
  .insight-byline {
    display: none;
  }

  .insight-article .post-navigation .nav-previous,
  .insight-article .post-navigation .nav-next {
    display: block;
    float: none;
    width: 100%;
    text-align: left;
  }

  .insight-article .post-navigation .nav-previous span,
  .insight-article .post-navigation .nav-next span {
    display: inline;
    width: auto;
    max-width: none;
    overflow: visible;
    white-space: normal;
    text-overflow: unset;
  }

  .insight-article .navigation.post-navigation .btn {
    width: 100%;
    height: auto;
    line-height: 1.5;
    white-space: normal;
  }

  .insight-article .navigation.post-navigation .btn-round:before {
    width: 100%;
    height: 100%;
    border-radius: 8px;
  }

  .insight-article .navigation.post-navigation .btn-primary-round {
    color: #ffffff;
  }
}

@media print {
  .insight-progress,
  .insight-sidebar,
  .insight-tools,
  .insight-related,
  .post-navigation,
  .insight-article::before,
  .insight-article::after {
    display: none !important;
  }

  .insight-layout {
    display: block;
  }
}
