#ez-toc-container {
  --edu-toc-red: #d71920;
  --edu-toc-red-soft: #fff2f2;
  --edu-toc-navy: #132746;
  --edu-toc-muted: #5f6f86;
  --edu-toc-line: #e5eaf1;
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  margin: 18px 0 24px !important;
  padding: 10px 14px !important;
  overflow: hidden;
  border: 1px solid #dfe5ed !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #fff 0%, #fff 78%, #fff8f8 100%) !important;
  box-shadow: 0 9px 26px rgba(18, 39, 70, .06) !important;
}

#ez-toc-container .ez-toc-title-container {
  position: relative;
  min-height: 44px;
  margin: 0 !important;
  border-bottom: 1px solid var(--edu-toc-line);
}

#ez-toc-container p.ez-toc-title {
  display: flex !important;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  margin: 0 !important;
  padding: 6px 60px 6px 18px !important;
  border-left: 3px solid var(--edu-toc-red);
  color: var(--edu-toc-navy) !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  text-transform: uppercase;
}

#ez-toc-container p.ez-toc-title::before {
  display: block;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  background: var(--edu-toc-red);
  content: "";
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M3 5.5c3.2-1 6-.5 9 1.5 3-2 5.8-2.5 9-1.5v13c-3.2-1-6-.5-9 1.5-3-2-5.8-2.5-9-1.5zM12 7v13'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M3 5.5c3.2-1 6-.5 9 1.5 3-2 5.8-2.5 9-1.5v13c-3.2-1-6-.5-9 1.5-3-2-5.8-2.5-9-1.5zM12 7v13'/%3E%3C/svg%3E") center / contain no-repeat;
}

#ez-toc-container .ez-toc-title-toggle,
#ez-toc-container > label.ez-toc-cssicon-toggle-label {
  position: absolute !important;
  z-index: 3;
  top: 14px !important;
  right: 14px !important;
  display: flex !important;
  width: 44px;
  min-width: 44px;
  height: 36px;
  min-height: 36px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 5px !important;
  float: none !important;
  transform: none !important;
}

#ez-toc-container nav {
  padding-top: 5px;
}

#ez-toc-container ul,
#ez-toc-container li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

#ez-toc-container nav > ul {
  counter-reset: edu-toc-main;
}

#ez-toc-container nav > ul > li {
  position: relative;
  counter-increment: edu-toc-main;
  border-bottom: 1px solid var(--edu-toc-line);
}

#ez-toc-container nav > ul > li:last-child {
  border-bottom: 0;
}

#ez-toc-container a {
  max-width: 100%;
  color: var(--edu-toc-navy) !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  text-decoration: none !important;
  overflow-wrap: anywhere;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

#ez-toc-container nav > ul > li > a {
  position: relative;
  display: block;
  min-height: 36px;
  padding: 8px 10px 8px 54px !important;
  border-radius: 7px;
}

#ez-toc-container nav > ul > li > a::before {
  position: absolute;
  top: 50%;
  left: 10px;
  display: grid;
  width: 28px;
  height: 28px;
  border: 1px solid #e7ebf1;
  border-radius: 50%;
  background: #f1f4f8;
  color: var(--edu-toc-navy);
  content: counter(edu-toc-main);
  font-size: 11px;
  font-weight: 800;
  place-items: center;
  transform: translateY(-50%);
}

#ez-toc-container nav > ul > li > a:hover,
#ez-toc-container nav > ul > li > a:focus-visible,
#ez-toc-container nav > ul > li.is-current > a,
#ez-toc-container nav > ul > li > a.is-current {
  background: var(--edu-toc-red-soft);
  color: var(--edu-toc-red) !important;
  font-weight: 700;
}

#ez-toc-container nav > ul > li > a:hover::before,
#ez-toc-container nav > ul > li > a:focus-visible::before,
#ez-toc-container nav > ul > li.is-current > a::before,
#ez-toc-container nav > ul > li > a.is-current::before {
  border-color: var(--edu-toc-red);
  background: var(--edu-toc-red);
  color: #fff;
}

#ez-toc-container nav > ul > li > ul {
  padding: 0 10px 6px 54px !important;
  counter-reset: edu-toc-sub;
}

#ez-toc-container nav > ul > li > ul > li {
  position: relative;
  counter-increment: edu-toc-sub;
}

#ez-toc-container nav > ul > li > ul > li::before {
  position: absolute;
  top: 11px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--edu-toc-red);
  content: "";
}

#ez-toc-container nav > ul > li > ul > li > a {
  display: block;
  padding: 4px 5px 4px 18px !important;
  color: var(--edu-toc-muted) !important;
  font-size: 12px !important;
}

#ez-toc-container nav > ul > li > ul > li > a::before {
  margin-right: 8px;
  color: var(--edu-toc-navy);
  content: counter(edu-toc-main) "." counter(edu-toc-sub);
  font-weight: 700;
}

#ez-toc-container nav > ul > li > ul > li > a:hover,
#ez-toc-container nav > ul > li > ul > li > a:focus-visible,
#ez-toc-container nav > ul > li > ul > li.is-current > a,
#ez-toc-container nav > ul > li > ul > li > a.is-current {
  color: var(--edu-toc-red) !important;
  transform: translateX(2px);
}

@media (max-width: 768px) {
  #ez-toc-container {
    margin: 14px 0 18px !important;
    padding: 10px 8px !important;
    border-radius: 12px !important;
  }

  #ez-toc-container p.ez-toc-title {
    min-height: 40px;
    gap: 8px;
    padding-right: 52px !important;
    padding-left: 10px !important;
    font-size: 14px !important;
  }

  #ez-toc-container p.ez-toc-title::before {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }

  #ez-toc-container .ez-toc-title-toggle,
  #ez-toc-container > label.ez-toc-cssicon-toggle-label {
    top: 14px !important;
    right: 8px !important;
    width: 40px;
    min-width: 40px;
    height: 32px;
    min-height: 32px;
  }

  #ez-toc-container nav > ul > li > a {
    padding: 7px 6px 7px 44px !important;
    font-size: 12px !important;
  }

  #ez-toc-container nav > ul > li > a::before {
    left: 6px;
    width: 25px;
    height: 25px;
  }

  #ez-toc-container nav > ul > li > ul {
    padding-left: 44px !important;
  }
}
