.sidebar .heading {
  /* increase margin above headings in element index sidebar */
  margin-bottom: 12px;
}

.sidebar .heading:not(:first-child) {
  margin-block-start: 0;
}

.sidebar .heading .source-item--heading {
  padding-top: 16px;
}

.sidebar .heading .source-item__toggle {
  top: 12px;
}

.sidebar .heading:not(:nth-child(2)) > span {
  margin-top: 25px;
}

.sidebar .heading > span {
  margin-bottom: 5px;
}

/* add line above headings in element index sidebar */

.sidebar .heading:not(:nth-child(2))::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  background-color: var(--medium-text-color);
  opacity: 0.2;
}

/* reduce padding between section names in element index sidebar */

.sidebar nav li a {
  padding: 3px var(--xl);
}

.ck .ck-content h2 {
  font-size: clamp(30.744624061872248px, calc(30.744624061872248px + (47.77574399999999 - 30.744624061872248) * ((100vw - 375px) / (1920 - 375))), 47.77574399999999px);
  font-weight: 500;
  margin-bottom: 2rem;
  line-height: 1.25;
}

.ck .ck-content h3 {
  font-size: clamp(27.57365386715px, calc(27.57365386715px + (39.81311999999999 - 27.57365386715) * ((100vw - 375px) / (1920 - 375))), 39.81311999999999px);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.25;
}

.ck .ck-content h4 {
  font-size: clamp(22.179134px, calc(22.179134px + (27.647999999999996 - 22.179134) * ((100vw - 375px) / (1920 - 375))), 27.647999999999996px);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.ck .ck-content h5 {
  font-size: clamp(19.8916px, calc(19.8916px + (23.04 - 19.8916) * ((100vw - 375px) / (1920 - 375))), 23.04px);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.35;
}

.ck .ck-content h6 {
  font-size: clamp(17.84px, calc(17.84px + (19.2 - 17.84) * ((100vw - 375px) / (1920 - 375))), 19.2px);
  font-weight: 700;
  margin-bottom: 0.25rem;
  line-height: 1.5;
}

.ck .ck-content h2,
  .ck .ck-content h3,
  .ck .ck-content h4,
  .ck .ck-content h5,
  .ck .ck-content h6,
  .ck .ck-content span,
  .ck .ck-content a,
  .ck .ck-content p,
  .ck .ck-content li {
  color: #192121;
}

.ck .ck-content div,
  .ck .ck-content span,
  .ck .ck-content ul,
  .ck .ck-content ol,
  .ck .ck-content p {
  display: block;
  margin-bottom: 1.5rem;
}

.ck .ck-content ul {
  padding-left: 0 !important;
}

.ck .ck-content ul li {
  position: relative;
  list-style-type: none;
  padding-left: 1.5rem;
}

.ck .ck-content ul li:before {
  position: absolute;
  content: '';
  top: 0.625rem;
  left: 0.625rem;
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 100%;
  background-color: #192121;
}

.ck .ck-content ul.arrow--list-style li {
  padding-left: 2.5rem;
}

.ck .ck-content ul.arrow--list-style li:before {
  top: 0;
  left: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
  background-image: url('/dist/images/svg/arrow-right-long-default.svg');
}

.ck .ck-content ol {
  position: relative;
  list-style: none;
  counter-reset: ol-counter;
  padding-left: 1.5rem;
}

.ck .ck-content ol li {
  padding-left: 0 !important;
  counter-increment: ol-counter;
}

.ck .ck-content ol li::before {
  content: counter(ol-counter) ". ";
  position: absolute;
  left: 0;
}

.ck .ck-content ul li:not(:last-child), .ck .ck-content ol li:not(:last-child) {
  margin-bottom: 0.25rem;
}

.ck .ck-content a {
  color: #192121;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition-property: color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.ck .ck-content a:hover {
  color: #E40726 !important;
}

.ck .ck-content *:last-child {
  margin-bottom: 0 !important;
}

/* Structure View for searches died in 5.7.0 */

.tableview.tablepane table tr th div.element.chip[data-level="2"] {
  padding-left: 68px;
}

.tableview.tablepane table tr th div.element.chip[data-level="3"] {
  padding-left: 112px;
}

.tableview.tablepane table tr th div.element.chip[data-level="4"] {
  padding-left: 156px;
}

.tableview.tablepane table tr th div.element.chip[data-level="5"] {
  padding-left: 200px;
}

.tableview.tablepane table tr th div.element.chip[data-level="6"] {
  padding-left: 244px;
}

.tableview.tablepane table tr th div.element.chip[data-level="7"] {
  padding-left: 288px;
}

/* This css hides the degree program filter in any section except "Degree Programs" */

html:not(:has([aria-label*="Degree Programs"])) body .menu [role="option"]:has([data-value="DegreeProgramPropagator\\conditions\\DegreeProgramCondition"]) {
  display: none;
}
