/* ==========================================================================
   Editorial TOC — Sidebar & Inline Table of Contents
   howitravel.co
   ========================================================================== */

/* -- Sidebar TOC -- */

.toc-sidebar-widget {
  background: #fafaf8;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 24px;
  position: sticky;
  top: 80px;
  margin-bottom: 32px;
}

.toc-sidebar-header {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e5e5;
}

.toc-sidebar-nav .toc-link {
  display: block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  color: #555;
  padding: 6px 0 6px 12px;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.2s;
  line-height: 1.4;
}

.toc-sidebar-nav .toc-link.active {
  color: #006642;
  border-left-color: #006642;
  font-weight: 500;
}

.toc-sidebar-nav .toc-link:hover {
  color: #006642;
}

.toc-sidebar-nav .toc-h3 {
  padding-left: 28px;
  font-size: 13px;
}

/* -- Inline TOC -- */

.toc-inline {
  background: #fafaf8;
  border-left: 4px solid #e5e5e5;
  border-radius: 0 8px 8px 0;
  padding: 24px 28px;
  margin: 32px 0;
}

.toc-inline-header {
  font-family: 'Lora', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.toc-inline-list {
  padding-left: 20px;
  margin: 0;
  list-style-type: decimal;
}

.toc-inline-list li {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  color: #555;
  margin-bottom: 8px;
  line-height: 1.4;
}

.toc-inline-list li:last-child {
  margin-bottom: 0;
}

.toc-inline-list a {
  color: #555;
  text-decoration: none;
  transition: color 0.2s;
}

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

/* -- Mobile: hide sidebar TOC, keep inline -- */

@media (max-width: 899px) {
  .toc-sidebar-widget {
    display: none;
  }
}
