/**
 * AMA Table of Contents Styles
 * Maintains backwards compatibility with old ama_toc module styles.
 */

/* Basic list styling - matches old ama_toc output */
ol.none {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

ol.none li {
  margin: 0;
  padding: 0;
}

ol.none li:not(:last-child)::after {
  content: "|";
  color: #000;
  display: inline-block;
  font-weight: 300;
  font-size: 16px;
  margin: 0 5px;
}

ol.none a {
  padding-right: 5px;
  text-decoration: underline;
  color: inherit;
}

ol.none a:hover,
ol.none a:focus {
  color: #0066cc;
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  ol.none {
    flex-direction: column;
  }

  ol.none li:not(:last-child)::after {
    display: none;
  }

  ol.none li {
    margin-bottom: 0.5rem;
  }
}
