/* =========================
   TABLE OF CONTENTS
========================= */

.meta-toc {
  border: 1px solid #ddd;
  margin-bottom: 15px;
  background: #fff;
}

.meta-toc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 15px;
  background: #f5f5f5;
  cursor: pointer;
}

.meta-toc-header span {
  font-size: 16px;
  font-weight: 600;
}

/* Button */

.toc-toggle {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  background: #fff;
}

.toc-toggle:before {
  content: "\f0c9"; /* fa-bars */
  font-family: "FontAwesome";
  font-size: 16px;
  color: var(--color-main);
}

/* Nội dung */

.box-readmore {
  padding: 12px 15px;
  background: #fff;
}

/* Mặc định đóng */

.meta-toc.collapsed .box-readmore {
  display: none;
}

/* Danh sách */

.box-readmore ul {
  list-style: none;
  margin: 0;
  padding: 0 !important;
  counter-reset: item;
}

.box-readmore ul li {
  display: table;
  counter-increment: item;
  margin-bottom: 8px;
  cursor: pointer;
}

.box-readmore ul li:before {
  display: table-cell;
  padding-right: 6px;
  content: counters(item, ".") ". ";
  font-weight: 600;
}

.box-readmore li ul {
  margin-top: 8px;
}

.box-readmore li ul > li {
  margin-bottom: 6px;
}

.box-readmore li ul > li:before {
  content: counters(item, ".") " ";
}

.box-readmore a {
  color: #222;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.box-readmore li li a {
  font-weight: 400;
}

.box-readmore a:hover {
  color: var(--color-main);
}
