/* 📌 Inline TOC (Table of Contents) – Responsive full-width card */
.toc-inline {
  width: 100%;
  box-sizing: border-box;
  padding: 2.25rem 2rem;
  margin: 2.5rem 0;
  border-left: 6px solid var(--ghost-accent-color, #111);
  background-color: #f8f9fa;
  font-size: 1.7rem;  /* 🔍 Large font for high readability */
  line-height: 2;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #111;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* 💻 Desktop: maintain same size or tweak spacing if needed */
@media (min-width: 768px) {
  .toc-inline {
    font-size: 1.7rem;
    padding: 2.5rem 2.75rem;
    line-height: 2.1;
  }
}

/* 📑 TOC Title */
.toc-inline strong {
  display: block;
  font-size: 2rem;      /* Slightly larger to distinguish from list */
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: #000;
}

/* 📋 TOC List (unstyled bullets) */
.toc-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

/* 📝 Individual TOC items */
.toc-list li {
  margin: 1.25rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-weight: 500;
}

/* ▸ Icon before each item */
.toc-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--ghost-accent-color, #444);
  font-size: 1.2rem;
}

/* 🔗 TOC anchor link style */
.toc-list a {
  text-decoration: none;
  color: #111;
  font-weight: 600;
  transition: color 0.2s ease;
}

/* ✨ Hover effect */
.toc-list a:hover {
  color: var(--ghost-accent-color, #000);
  text-decoration: underline;
}

/* 🌙 Dark Mode for Inline TOC */
@media (prefers-color-scheme: dark) {
  .toc-inline {
    background-color: #1e1e1e;
    color: #ddd;
    border-left-color: var(--ghost-accent-color, #888);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  }

  .toc-inline strong {
    color: #fff;
  }

  .toc-list li::before {
    color: var(--ghost-accent-color, #aaa);
  }

  .toc-list a {
    color: #ccc;
  }

  .toc-list a:hover {
    color: #fff;
  }
}
