/* =========================================================
 Sidebar TOC (table of contents) + article meta
   ========================================================= */

.lm-article-toc {
  position: sticky;
    top: 90px;
    align-self: start;

    min-width: 0;
    padding: 0 14px 16px;

    background: #f6efe3;
    border-radius: 26px;
    backdrop-filter: blur(6px);
}

.lm-article-meta {
  position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    padding-bottom: 12px;
    border-bottom: none;
}

.lm-article-meta::after {
  content: "";
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 0;
    height: 1px;
    background: rgba(25, 24, 24, 0.12);
}

.lm-article-meta__avatar {
  flex-shrink: 0;
}

.lm-article-meta__avatar img {
  display: block;
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 999px;
    border: 2px solid rgba(25, 24, 24, 0.08);
    box-shadow: 0 4px 16px rgba(25, 24, 24, 0.66);
}

.lm-article-meta__info {
  display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.lm-article-meta__details {
  display: flex;
    flex-direction: column;
    gap: 8px;
}

.lm-article-meta__name,
.lm-article-meta__review,
.lm-article-meta__item {
  display: flex;
    align-items: center;
    color: rgba(25, 24, 24, 0.72);
    font-size: 14px;
    line-height: 1.35;
}

.lm-article-meta__name {
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
}


.lm-article-meta__review {
  gap: 10px;
}

.lm-article-meta__posted {
  display: flex;
    flex-direction: column;
    gap: 8px;
}

.lm-article-meta__item {
  gap: 9px;
}

.lm-meta-icon {
  width: 20px;
    height: 20px;
    flex-shrink: 0;

    color: rgba(25, 24, 24, 0.69);
}

.lm-toc__title {
  margin: 12px 0 8px;
    font-size: 16px;
    letter-spacing: 0.02em;
    text-align: center;
}

.lm-toc__list {
  position: relative;
    margin: 0;
    padding: 0 0 0 16px;
    list-style: none;
}

.lm-toc__list::before,
.lm-toc__list::after {
  content: "";
    position: absolute;
    left: 8px;
    top: 4px;
    width: 3px;
    border-radius: 999px;
}

.lm-toc__list::before {
  bottom: 4px;
    background: rgba(184, 162, 130, 0.36);
}

.lm-toc__list::after {
  height: var(--toc-progress, 0px);
    background: linear-gradient(
      180deg,
      #f6eada 0%,
      #ead7a8 45%,
      #d8b77a 100%
    );
    box-shadow:
      0 6px 16px rgba(216, 183, 122, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: height 0.24s ease;
}

.lm-toc__link {
  display: block;
    min-width: 0;
    padding: 6px 8px 6px 10px;

    color: inherit;
    font-size: 13px;
    line-height: 1.35;
    text-decoration: none;
    opacity: 0.66;

    border-radius: 12px;
    overflow-wrap: anywhere;
}

.lm-toc__link:hover {
  opacity: 1;
    background: rgba(0, 0, 0, 0.03);
}

.lm-toc__link.is-active {
  font-weight: 700;
    opacity: 1;
    background: radial-gradient(
        500px 180px at -5% 0%,
        rgba(246, 234, 218, 0.75),
        transparent 70%
      ),
      linear-gradient(
        180deg,
        rgba(255,255,255,0.24) 0%,
        rgba(255,255,255,0.06) 100%
      ),
      #efe5d8;
}



/* =========================================================
   ARTICLE TOC & META — RESPONSIVE
   ========================================================= */

/* Tablets — hide TOC below 1000px */
@media (max-width: 999px) {
  .lm-article-toc {
    position: static;
    padding: 0;
    background: transparent;
    border-radius: 0;
    backdrop-filter: none;
  }

  .lm-toc {
    display: none;
  }

  .lm-article-meta {
    gap: 18px;
    margin: 18px 0 24px;
    padding-bottom: 14px;
  }

  .lm-article-meta::after {
    left: 0;
    right: 0;
  }

  .lm-article-meta__avatar img {
    width: 76px;
    height: 76px;
  }

  .lm-article-meta__info {
    gap: 8px;
  }

  .lm-article-meta__details {
    gap: 7px;
  }

  .lm-article-meta__name,
  .lm-article-meta__review,
  .lm-article-meta__item {
    font-size: 15px;
  }

  .lm-meta-icon {
    width: 18px;
    height: 18px;
  }
}

/* Mobile */

@media (max-width: 600px) {
  .lm-article-meta {
    align-items: flex-start;
    gap: 14px;
    margin: 16px 0 22px;
    padding-bottom: 12px;
  }

  .lm-article-meta__avatar img {
    width: 64px;
    height: 64px;
  }

  .lm-article-meta__name,
  .lm-article-meta__review,
  .lm-article-meta__item {
    font-size: 14px;
    line-height: 1.35;
  }

  .lm-meta-icon {
    width: 17px;
    height: 17px;
  }
}

/* Small mobile */

@media (max-width: 400px) {
  .lm-article-meta {
    gap: 12px;
  }

  .lm-article-meta__avatar img {
    width: 56px;
    height: 56px;
  }

  .lm-article-meta__info {
    gap: 6px;
  }

  .lm-article-meta__details {
    gap: 5px;
  }

  .lm-article-meta__name,
  .lm-article-meta__review,
  .lm-article-meta__item {
    font-size: 13px;
  }

  .lm-meta-icon {
    width: 16px;
    height: 16px;
  }
}