/**
 * Single blog post — matches BLI blog detail design (no CSS frameworks).
 * Scoped under .bli-post-detail
 */

.single-post .nk-main {
  background: #fff;
  /* Theme .nk-main uses overflow:hidden; that traps sticky descendants. Let TOC stick to viewport. */
  overflow: visible;
}

/*
 * Blog detail: theme filter forces opaque header in flow; keep bar readable
 * and above page content when sticky script runs.
 */
body.single-post .nk-header {
  z-index: 1002;
}

body.single-post .nk-header .nk-navbar.nk-navbar-top {
  background-color: #fff;
  box-shadow: 0 1px 0 rgba(26, 43, 74, 0.08);
}

body.single-post.admin-bar .nk-header.is-sticky {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.single-post.admin-bar .nk-header.is-sticky {
    top: 46px;
  }
}

.bli-post-detail {
  --bli-navy: #1a2b4a;
  --bli-navy-deep: #152238;
  --bli-accent: #408bc9;
  --bli-accent-hover: #3478b0;
  --bli-text: #374151;
  --bli-text-muted: #6b7280;
  --bli-border: #e5e7eb;
  --bli-surface-muted: #f8f9fa;
  --bli-container: min(1140px, 100% - 48px);
  --bli-radius: 14px;
  --bli-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-family: var(--bli-font);
  color: var(--bli-text);
}

/* ---------- Hero ---------- */
.bli-post-detail__hero {
  background: linear-gradient(135deg, var(--bli-navy-deep) 0%, var(--bli-navy) 100%);
  padding: 72px 0 80px;
}

.bli-post-detail__hero-inner {
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    gap: 48px;
    max-width: 1630px;
    padding: 0 60px;
}

.bli-post-detail__hero-media {
    flex: 0 0 50%;
    max-width: 710px;
    min-width: 0;
}

.bli-post-detail__hero-img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--bli-radius);
  display: block;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.bli-post-detail__hero-img--placeholder {
  background: linear-gradient(145deg, #2d4a6f 0%, #1a2b4a 100%);
  min-height: 320px;
}

.bli-post-detail__hero-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 8px;
}

.bli-post-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.bli-post-detail__back:hover,
.bli-post-detail__back:focus {
  color: #fff;
  transform: none;
  text-decoration: none;
}

.bli-post-detail__back-icon {
  font-size: 1.1em;
  line-height: 1;
}

.bli-post-detail__title {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -0.02em;
}

.bli-post-detail__category {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.bli-post-detail__category a {
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
  letter-spacing: inherit;
      font-weight: 500;
}

.bli-post-detail__category a:hover {
  text-decoration: none;
  color: #408bc9;
}

.bli-post-detail__category a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  text-decoration: none;
}

/* ---------- Meta bar ---------- */
.bli-post-detail__meta-bar {
  background: #fff;
  border-bottom: 1px solid var(--bli-border);
}


.bli-post-detail__meta-inner {
    width: 100%;
    max-width: 1630px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    padding: 20px 60px;
}

/* Theme sharing_links + snow_sharing_links(); nk-share.js opens popups. Match prior .bli-post-detail__share-link look. */
.bli-post-detail__meta-inner .nk-post-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0;
}

.bli-post-detail__meta-inner .nk-post-share strong {
  font-weight: 400;
  color: #202c5a;
  font-size: 13px;
  line-height: normal;
}

.bli-post-detail__meta-inner .nk-post-share a[data-share] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50px;
  background: #e3eef7;
  text-decoration: none;
  box-sizing: border-box;
  overflow: hidden;
  font-size: 0;
  color: transparent;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.bli-post-detail__meta-inner .nk-post-share a[data-share]::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  transition: filter 0.2s;
  /* Generic fallback when data-share is not mapped below */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23408BC9' d='M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.65 0 2.99-1.34 2.99-2.99S19.66 2 18 2s-2.99 1.34-2.99 2.99c0 .24.04.47.09.7L8.05 9.81A2.96 2.96 0 0 0 6 9c-1.65 0-2.99 1.34-2.99 2.99S4.35 15 6 15c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92-1.31-2.99-2.92-2.99z'/%3E%3C/svg%3E");
}

.bli-post-detail__meta-inner .nk-post-share a[data-share="facebook"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23408BC9' d='M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z'/%3E%3C/svg%3E");
}

.bli-post-detail__meta-inner .nk-post-share a[data-share="twitter"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23408BC9' stroke-width='2'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E");
}

.bli-post-detail__meta-inner .nk-post-share a[data-share="linkedin"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23408BC9' d='M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6zM2 9h4v12H2z'/%3E%3Ccircle fill='%23408BC9' cx='4' cy='4' r='2'/%3E%3C/svg%3E");
}

.bli-post-detail__meta-inner .nk-post-share a[data-share="pinterest"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23408BC9' d='M12.04 2C6.58 2 2.5 6.06 2.5 11.5c0 4.28 2.61 7.95 6.3 9.5-.09-.82-.17-2.08.03-2.97l1.18-4.98c-.26-.53-.4-1.22-.4-1.95 0-1.88 1.09-3.35 2.43-3.35 1.15 0 1.7.86 1.7 1.91 0 1.16-.74 2.9-1.12 4.5-.32 1.34.71 2.43 2.07 2.43 2.48 0 4.39-2.62 4.39-6.39 0-3.32-2.38-5.65-5.78-5.65-3.94 0-6.25 2.95-6.25 6.02 0 1.19.46 2.47 1.04 3.13.11.14.13.26.1.41l-.39 1.65c-.06.26-.2.32-.37.2-1.38-1.02-2.24-2.99-2.24-4.85 0-3.95 2.87-7.58 8.27-7.58 4.35 0 7.73 3.1 7.73 7.26 0 4.32-2.72 7.81-6.5 7.81-1.27 0-2.47-.66-2.88-1.45l-.78 2.98c-.28 1.09-1.05 2.46-1.56 3.28 1.17.36 2.4.55 3.68.55 5.46 0 9.9-4.42 9.9-9.88 0-5.44-4.08-9.5-9.54-9.5z'/%3E%3C/svg%3E");
}

.bli-post-detail__meta-inner .nk-post-share a[data-share="vk"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23408BC9' d='M15.684 0H8.316C1.592 0 0 1.592 0 8.316v7.368C0 22.408 1.592 24 8.316 24h7.368C22.408 24 24 22.408 24 15.684V8.316C24 1.592 22.391 0 15.684 0zm3.692 17.123h-1.744c-.66 0-.864-.525-2.05-1.727-1.033-1-1.49-1.135-1.744-1.135-.356 0-.458.102-.458.593v1.575c0 .424-.135.678-1.253.678-1.846 0-3.896-1.118-5.335-3.202C4.624 10.857 4 8.247 4 7.752c0-.254.102-.491.593-.491h1.744c.44 0 .61.203.78.678.863 2.491 2.303 4.675 2.896 4.675.22 0 .322-.102.322-.66V9.721c-.068-1.186-.695-1.287-.695-1.71 0-.203.17-.407.44-.407h2.744c.373 0 .508.203.508.643v4.695c0 .372.17.508.271.508.22 0 .407-.136.813-.542 1.254-1.406 2.151-3.574 2.151-3.574.119-.287.322-.491.763-.491h1.744c.525 0 .644.27.525.643-.203.966-2.177 3.79-2.177 3.79-.203.339-.287.49 0 .896.203.288.864 1.084 1.304 1.744.813 1.2 1.44 2.203 1.617 2.896.119.491-.119.744-.644.744z'/%3E%3C/svg%3E");
}

.bli-post-detail__meta-inner .nk-post-share a[data-share="google-plus"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23408BC9' d='M12.48 10.92v3.28h5.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.15-2.94 2.427-5.84 2.427-3.706 0-6.6-2.994-6.6-6.6s2.894-6.6 6.6-6.6c1.98 0 3.332.84 4.094 1.56l2.794-2.667C18.227 3.46 15.64 2.4 12.48 2.4 6.84 2.4 2.4 6.84 2.4 12.48s4.44 10.08 10.08 10.08c2.88 0 5.56-.94 7.44-2.68 1.92-1.72 3.08-4.2 3.08-7.08 0-.92-.08-1.52-.24-2.12H12.48z'/%3E%3C/svg%3E");
}

.bli-post-detail__meta-inner .nk-post-share a[data-share]:hover,
.bli-post-detail__meta-inner .nk-post-share a[data-share]:focus-visible {
  background: var(--bli-accent);
  color: #fff;
}

.bli-post-detail__meta-inner .nk-post-share a[data-share]:hover::before,
.bli-post-detail__meta-inner .nk-post-share a[data-share]:focus-visible::before {
  filter: brightness(0) invert(1);
}

.bli-post-detail__meta-inner .nk-post-share a[data-share]:focus-visible {
  outline: 2px solid var(--bli-accent);
  outline-offset: 2px;
}

.bli-post-detail__meta-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
}

.bli-post-detail__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--bli-text-muted);
}

.bli-post-detail__meta-item--author .bli-post-detail__meta-text {
  color: var(--bli-accent);
  font-weight: 600;
}

.bli-post-detail__meta-item--author .bli-post-detail__meta-text a {
  color: inherit;
  text-decoration: none;
}

.bli-post-detail__meta-item--author .bli-post-detail__meta-text a:hover,
.bli-post-detail__meta-item--author .bli-post-detail__meta-text a:focus {
  text-decoration: underline;
}

.bli-post-detail__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.bli-post-detail__meta-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.65;
}

.bli-post-detail__share {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bli-post-detail__share-label {
  font-size: 13px;
  color: var(--bli-text-muted);
  margin-right: 4px;
}

.bli-post-detail__share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50px;
    color: #408BC9;
    background: #E3EEF7;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    box-sizing: border-box;
}

.bli-post-detail__share-link i {
  font-size: 14px;
  line-height: 1;
}

.bli-post-detail__share-link:hover,
.bli-post-detail__share-link:focus {
  background: var(--bli-accent);
  color: #fff;
}

.bli-post-detail__share-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ---------- Layout: TOC + content ---------- */
.bli-post-detail__body {
  padding: 48px 0 64px;
}

.bli-post-detail__body-inner {
  width: 100%;
  max-width: 1630px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(200px, 320px) 1fr;
  gap: 48px 56px;
  align-items: start;
  padding: 0 60px;
}
.bli-post-detail__meta-items .label ,
span.bli-post-detail__share-label{
    font-weight: 400;
    color: #202C5A;
}
.bli-post-detail__body-inner--no-toc {
  grid-template-columns: 1fr;
}
.bli-post-detail__meta-items .data {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #1a2b4a;
    font-weight: 600;
}
.bli-post-detail__meta-items .data a {
    color: #1a2b4a;
    font-weight: 600;
}
.bli-post-detail__toc {
  --bli-toc-track: #dfe3ea;
  --bli-toc-muted: #6b7c95;
  --bli-toc-active: #408bc9;
  position: sticky;
  /* Set by JS from header.nk-header height + gap (--bli-sticky-header-offset) */
  top: var(--bli-sticky-header-offset, 110px);
  align-self: start;
  /*max-height: calc(100vh - var(--bli-sticky-header-offset, 110px) - 16px);*/
  overflow-y: auto;
  overscroll-behavior: contain;
}
.bli-post-detail__meta-items .bli-post-detail__meta-item.bli-post-detail__meta-item--author {
    display: none;
}
.bli-post-detail__toc-title {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 700;
  color: var(--bli-navy);
}

.bli-post-detail__toc-list {
  margin: 0;
  padding: 0 0 0 14px;
  border-left: 2px solid var(--bli-toc-track);
  list-style: none;
  counter-reset: bli-toc;
  font-size: 14px;
  line-height: 1.4;
  color: var(--bli-toc-muted);
}

/* Grid: number in col 1, link in col 2 — wrapped lines align with text, not under the number */
.bli-post-detail__toc-list li {
  counter-increment: bli-toc;
  position: relative;
  margin: 0 0 20px;
  padding-left: 0;
  color: var(--bli-toc-muted);
  display: grid;
  /* max-content: number column only as wide as "N."; tight gap to title text */
  grid-template-columns: max-content 1fr;
  column-gap: 0.2em;
  align-items: start;
}

.bli-post-detail__toc-list li:last-child {
  margin-bottom: 0;
}

.bli-post-detail__toc-list li::before {
  content: counter(bli-toc) ".";
  grid-column: 1;
  grid-row: 1;
  font-weight: 600;
  color: inherit;
  line-height: inherit;
}
.bli-post-detail__toc-list li:hover {
  color: #408bc9;
}
/* Thick blue segment on the track (scroll-spy .active); ::after so ::before stays the number */
.bli-post-detail__toc-list li:has(> a.active)::after {
  content: "";
  position: absolute;
  left: calc(-14px - 2px - 1px);
  top: 0.12em;
  bottom: 0.12em;
  width: 4px;
  border-radius: 2px;
  background: var(--bli-toc-active);
  pointer-events: none;
}

.bli-post-detail__toc-list li:has(> a.active) {
  color: var(--bli-toc-active);
}

.bli-post-detail__toc-list li:has(> a.active)::before {
  color: var(--bli-toc-active);
  font-weight: 700;
}

.bli-post-detail__toc-list a {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.2s ease, font-weight 0.15s ease;
}

.bli-post-detail__toc-list li:not(:has(> a.active)) a:hover,
.bli-post-detail__toc-list li:not(:has(> a.active)) a:focus-visible {
  color: var(--bli-accent);
}

.bli-post-detail__toc-list li:has(> a.active) a,
.bli-post-detail__toc-list li:has(> a.active) a:hover,
.bli-post-detail__toc-list li:has(> a.active) a:focus-visible {
  color: var(--bli-toc-active);
  font-weight: 700;
}

/* Fallback when :has() is unsupported: link only (no track segment / marker sync) */
.bli-post-detail__toc-list a.active {
  color: var(--bli-toc-active);
  font-weight: 700;
}

/* ---------- Article content ---------- */
.bli-post-detail__article {
  min-width: 0;
}

.bli-post-detail__content {
  font-size: 17px;
  line-height: 1.65;
  color: var(--bli-text);
}

.bli-post-detail__content > *:first-child {
  margin-top: 0;
}

.bli-post-detail__content > *:last-child {
  margin-bottom: 0;
}

.bli-post-detail__content p {
  margin: 0 0 1.25em;
}

.bli-post-detail__content h2 {
  margin: 2em 0 0.65em;
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 700;
  color: var(--bli-navy);
  line-height: 1.3;
  scroll-margin-top: var(--bli-sticky-header-offset, 110px);
}

.bli-post-detail__content h2:first-child {
  margin-top: 0;
}

.bli-post-detail__content h3 {
  margin: 1.5em 0 0.5em;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--bli-navy);
  scroll-margin-top: var(--bli-sticky-header-offset, 110px);
}

.bli-post-detail__content ul,
.bli-post-detail__content ol {
  margin: 0 0 1.25em;
  padding-left: 1.35em;
}

.bli-post-detail__content li {
  margin-bottom: 0.5em;
}

.bli-post-detail__content a {
  color: var(--bli-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bli-post-detail__content a:hover,
.bli-post-detail__content a:focus {
  color: var(--bli-accent-hover);
}

.bli-post-detail__content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 1.5em auto;
}

.bli-post-detail__content .wp-caption {
  max-width: 100%;
  margin: 1.5em auto;
}

.bli-post-detail__content .wp-caption-text {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--bli-text-muted);
  text-align: center;
  line-height: 1.5;
}

.bli-post-detail__content blockquote {
  margin: 1.5em 0;
  padding: 16px 24px;
  border-left: 4px solid var(--bli-accent);
  background: var(--bli-surface-muted);
  border-radius: 0 8px 8px 0;
}

.bli-post-detail__pages {
  margin-top: 2rem;
  font-size: 15px;
}

/* ---------- Next article ---------- */
.bli-post-detail__next {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--bli-border);
  display: flex;
  justify-content: flex-end;
}
.bli-post-detail__next-label svg {
    width: 16px;
}
.bli-post-detail__next-link {
  display: block;
  max-width: min(420px, 100%);
  width: 100%;
  text-align: right;
  text-decoration: none;
  padding: 18px 22px;
  border: 1px solid var(--bli-border);
  border-radius: 12px;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.bli-post-detail__next-link:hover,
.bli-post-detail__next-link:focus {
  box-shadow: 0 4px 20px rgba(26, 43, 74, 0.08);
      text-decoration: none;
}

.bli-post-detail__next-label {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 13px;
  font-weight: 400;
  color: var(--bli-text-muted);
  margin-bottom: 8px;
}

.bli-post-detail__next-chevron {
  font-size: 12px;
  line-height: 1;
  opacity: 0.85;
}

.bli-post-detail__next-title {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--bli-navy);
  line-height: 1.4;
  text-align: right;
  font-size: 14px;
}

/* ---------- Related ---------- */
.bli-post-detail__related {
  background: var(--bli-surface-muted);
  padding: 56px 0 72px;
  border-top: 1px solid var(--bli-border);
}

.bli-post-detail__related-inner {
    width: 100%;
    max-width: 1630px;
    margin: 0 auto;
    padding: 0 60px;
}

.bli-post-detail__related-title {
  margin: 0 0 28px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bli-navy);
}

.bli-post-detail__related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bli-post-detail__related-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--bli-radius);
  overflow: hidden;
  border: 1px solid var(--bli-border);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.bli-post-detail__related-card:hover,
.bli-post-detail__related-card:focus {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
  text-decoration: none;
}

.bli-post-detail__related-img-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e5e7eb;
}

.bli-post-detail__related-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.bli-post-detail__related-img-wrap .bli-post-detail__related-img:not(img) {
  min-height: 100%;
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
}

.bli-post-detail__related-card:hover .bli-post-detail__related-img,
.bli-post-detail__related-card:focus .bli-post-detail__related-img {
  transform: scale(1.04);
}

.bli-post-detail__related-body {
  padding: 18px 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bli-post-detail__related-cat {
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: #E3EEF7;
    color: #408BC9;
    border-radius: 30px;
    font-size: 12px;
    padding: 5px 18px;
    display: inline-flex;
    width: fit-content;
        text-decoration: none;
}
.bli-post-detail__related-body:hover .bli-post-detail__related-cat{
text-decoration: none;
}
.bli-post-detail__related-cat:hover{
  text-decoration: none;
}
.bli-post-detail__related-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--bli-navy);
  margin-top: 15px;
}
.bli-post-detail__toc-list a:focus{
  color: #6b7c95;
}
.single-post .bli-post-detail__content p {
  margin-bottom: 10px;
}
.single-post .bli-post-detail__content h2 {
  margin-top: 30px;
  margin-bottom: 10px;
}
.single-post .bli-post-detail__content a {
  text-decoration: none;
}
/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .bli-post-detail__hero-inner {
    gap: 32px;
  }

  .bli-post-detail__hero-media {
    flex-basis: 42%;
  }

  .bli-post-detail__body-inner {
    grid-template-columns: minmax(180px, 220px) 1fr;
    gap: 36px;
  }

  .bli-post-detail__related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .bli-post-detail__body-inner:not(.bli-post-detail__body-inner--no-toc) {
    grid-template-columns: 1fr;
  }

  .bli-post-detail__toc {
    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--bli-border);
    margin-bottom: 8px;
  }

  .bli-post-detail__toc.bli-post-detail__toc--accordion .bli-post-detail__toc-title {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 0;
    transition: color 0.2s ease;
  }

  .bli-post-detail__toc.bli-post-detail__toc--accordion:not(.is-toc-mobile-collapsed) .bli-post-detail__toc-title {
    margin-bottom: 16px;
  }

  .bli-post-detail__toc.bli-post-detail__toc--accordion .bli-post-detail__toc-title::after {
    content: "";
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--bli-navy);
    border-bottom: 2px solid var(--bli-navy);
    transform: rotate(45deg);
    margin-bottom: 4px;
    transition: transform 0.25s ease;
  }

  .bli-post-detail__toc.bli-post-detail__toc--accordion.is-toc-mobile-collapsed .bli-post-detail__toc-title::after {
    transform: rotate(-135deg);
    margin-top: 4px;
    margin-bottom: 0;
  }

  .bli-post-detail__toc.bli-post-detail__toc--accordion .bli-post-detail__toc-list {
    max-height: 2000px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.25s ease;
    border-left: none;
  }

  .bli-post-detail__toc.bli-post-detail__toc--accordion.is-toc-mobile-collapsed .bli-post-detail__toc-list {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    pointer-events: none;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .bli-post-detail__hero {
    padding: 40px 0 48px;
  }

  .bli-post-detail__hero-inner {
    flex-direction: column;
    gap: 28px;
  }

  .bli-post-detail__hero-media {
    flex: none;
    max-width: none;
    width: 100%;
  }

  .bli-post-detail__hero-img {
    max-height: 260px;
    min-height: 200px;
  }

  .bli-post-detail__meta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .bli-post-detail__share {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

    .bli-post-detail__hero {
        padding: 40px 0 20px;
    }

  .bli-post-detail__content {
    font-size: 16px;
  }

  .bli-post-detail__related-grid {
    grid-template-columns: 1fr;
  }

  .bli-post-detail__next-link {
    max-width: none;
    width: 100%;
    text-align: left;
  }

  .bli-post-detail__next-label {
    justify-content: flex-start;
  }

  .bli-post-detail__next-title {
    text-align: left;
  }
  .bli-post-detail__title {
        font-size: 20px;
  }
  .bli-post-detail__hero-inner  ,
.bli-post-detail__meta-inner ,
.bli-post-detail__body-inner ,
.bli-post-detail__related-inner {
  padding-left: 15px;
  padding-right: 15px;
}
}

@media (max-width: 480px) {
  .bli-post-detail {
    --bli-container: min(1140px, 100% - 32px);
  }

  .bli-post-detail__meta-items {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
