/* Blog sidebar + related-articles styling — brand orange (#fd9644) accents */

.blog-breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: .85rem;
}

.blog-breadcrumb .breadcrumb-item a {
  color: #6b7280;
  text-decoration: none;
}

.blog-breadcrumb .breadcrumb-item a:hover {
  color: #fd9644;
  text-decoration: underline;
}

.blog-breadcrumb .breadcrumb-item.active {
  color: #1a1a2e;
  font-weight: 600;
}

.blog-layout {
  display: flex;
  align-items: stretch;
  gap: 2rem;
}

.blog-layout-main {
  flex: 1 1 auto;
  min-width: 0;
}

.blog-layout-sidebar {
  flex: 0 0 340px;
  width: 340px;
}

@media (max-width: 767px) {
  .blog-layout {
    flex-direction: column;
  }
  .blog-layout-sidebar {
    flex: 1 1 auto;
    width: 100%;
  }
}

/* Article page's left "On this page" table of contents -- blog_page.html
   only, sits before .blog-layout-main so it renders on the left. */

.blog-layout--article .blog-layout-toc {
  flex: 0 0 240px;
  width: 240px;
  order: -1;
}

@media (max-width: 991px) {
  .blog-layout--article .blog-layout-toc {
    flex: 1 1 auto;
    width: 100%;
    order: 0;
  }
}

/* Offsets the anchor jump so a heading doesn't land flush under the navbar. */
#blog-article-body h2,
#blog-article-body h3 {
  scroll-margin-top: 6.5rem;
}

.blog-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-toc-link {
  display: block;
  padding: .4rem .6rem;
  border-radius: 8px;
  color: #4b5563;
  text-decoration: none;
  font-size: .86rem;
  line-height: 1.4;
  border-left: 2px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.blog-toc-link:hover {
  background: #fff4ea;
  color: #fd9644;
  border-left-color: #fd9644;
  text-decoration: none;
}

.blog-toc-link--h3 {
  padding-left: 1.5rem;
  font-size: .81rem;
  color: #6b7280;
}

.blog-toc-empty {
  color: #9ca3af;
  font-size: .82rem;
  margin: 0;
}

.blog-sidebar-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 1.5rem;
}

.blog-toc-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 1.5rem 1.5rem 1.5rem 0;
}

.blog-sidebar-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #fd9644;
  margin: 0 0 1rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid #fd9644;
}

.blog-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .6rem .6rem;
  border-radius: 8px;
  color: #333;
  text-decoration: none;
  font-size: .92rem;
  transition: background .15s ease, color .15s ease;
}

.blog-sidebar-link:hover {
  background: #fff4ea;
  color: #fd9644;
  text-decoration: none;
}

.blog-sidebar-link.active {
  color: #fd9644;
  font-weight: 700;
  background: #fff4ea;
}

.blog-sidebar-count {
  background: #f3f4f6;
  color: #6b7280;
  font-size: .72rem;
  font-weight: 700;
  border-radius: 999px;
  padding: .1rem .6rem;
  flex-shrink: 0;
}

.blog-related-item {
  display: block;
  padding: .7rem .6rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background .15s ease;
}

.blog-related-item:hover {
  background: #fff4ea;
  text-decoration: none;
}

.blog-related-item .title {
  display: block;
  color: #1a1a2e;
  font-weight: 600;
  font-size: .92rem;
  line-height: 1.35;
}

.blog-related-item:hover .title {
  color: #fd9644;
}

.blog-related-item .category {
  display: block;
  color: #9ca3af;
  font-size: .76rem;
  margin-top: .15rem;
}

@media (max-width: 767px) {
  .blog-sidebar-card {
    position: static;
  }
}

/* Hero band */

.blog-hero {
  background: linear-gradient(135deg, #fff4ea 0%, #fef9f4 60%, #ffffff 100%);
  border-bottom: 1px solid #f1ece5;
  padding: 2.75rem 0 2.25rem;
  margin-bottom: 2rem;
}

.blog-hero-title {
  font-weight: 800;
  color: #1a1a2e;
  margin: 0 0 .5rem;
  letter-spacing: -.01em;
}

.blog-hero-intro {
  color: #6b7280;
  max-width: 62ch;
  font-size: 1.05rem;
}

/* Standfirst on an article page: the post's own intro, set larger than body
   copy so it reads as a summary rather than the first paragraph of it. */
.blog-article-intro {
  color: #4b5563;
  max-width: 68ch;
  font-size: 1.12rem;
  line-height: 1.6;
  margin: 0 0 1.1rem;
}

/* Card grid */

.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(26, 26, 46, 0.1);
  border-color: #fbd7b3;
  text-decoration: none;
  color: inherit;
}

.blog-card-featured {
  grid-column: span 2;
}

.blog-card-featured .blog-card-media {
  aspect-ratio: 16 / 7;
}

.blog-card-featured .blog-card-title {
  font-size: 1.4rem;
  -webkit-line-clamp: 2;
}

@media (max-width: 767px) {
  .blog-card-featured {
    grid-column: span 1;
  }
  .blog-card-featured .blog-card-media {
    aspect-ratio: 16 / 9;
  }
}

.blog-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f6f6f6;
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.blog-card:hover .blog-card-img {
  transform: scale(1.05);
}

.blog-card-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fff4ea 0%, #ffe4c7 100%);
  color: #fd9644;
  font-size: 2rem;
}

.blog-card-badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: #fd9644;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .3rem .7rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(253, 150, 68, 0.35);
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1.25rem 1.35rem 1.4rem;
}

.blog-card-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.35;
  margin: 0 0 .5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card:hover .blog-card-title {
  color: #fd9644;
}

.blog-card-excerpt {
  color: #6b7280;
  font-size: .9rem;
  line-height: 1.55;
  margin: 0 0 .9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1 1 auto;
}

.blog-card-meta {
  color: #9ca3af;
  font-size: .78rem;
  font-weight: 500;
}

.blog-card-dot {
  margin: 0 .4rem;
}

/* Empty state */

.blog-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: #9ca3af;
  border: 1px dashed #e5e7eb;
  border-radius: 14px;
}

.blog-empty i {
  font-size: 2rem;
  margin-bottom: .75rem;
  display: block;
  color: #fbd7b3;
}
