/* nav details-summary */
details>summary {
  display: flex;
  align-items: center;
  height: 48px;
  width: 100%;
  padding-right: 15px;
  padding-left: 25px;
  cursor: pointer;
  color: hsl(270, 50%, 98%);
}

/* details nav line */
details ul li a {
  display: block;
  padding-left: 45px;
  background-color: hsl(270, 50%, 90%);
  color: hsl(270, 50%, 40%);
  font-weight: 400;
  line-height: 45px;
  cursor: pointer;
  text-decoration: none;
}

/* selected nav line */
details ul li.selected a {
  background-color: hsl(270, 50%, 99%);
  color: hsl(270, 50%, 40%);
  font-weight: 600;
}

/* nav summary hover nav line */
details ul li:hover,
summary:hover {
  font-weight: 600;
  border: 1px solid hsl(270, 50%, 65%)
}

/* chevron icon for summary */
.chevron {
  border: solid hsl(270, 50%, 95%);
  border-width: 0 1.5px 1.5px 0;
  padding: 4px;
  transform: rotate(-45deg);
  transition: transform 0.4s ease;
  flex-shrink: 0;
  margin-right: 5px;
}

/* rotate chevron when details is open */
details[open] .chevron {
  transform: rotate(45deg);
}

/* summary text - ellipsis */
.summary-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  color: hsl(270, 50%, 99%);
  text-overflow: ellipsis;
}

/* navigation icons - square rounded */
.icn_nav {
  display: block;
  position: relative;
  text-decoration: none;
  width: 32px;
  height: 32px;
  margin: 0;
  border-radius: 25%;
  stroke-width: 2px;
  fill: none;
  stroke: hsl(270, 50%, 98%);
}

.icn_nav:hover {
  background-color: hsl(270, 50%, 40%);
}

.icn_action.open,
.icn_action.open:hover {
  background-color: hsl(270, 50%, 40%);
  border-radius: 50% 50% 0% 0%;
}

/* dropdown open state */
.icn_nav.open,
.icn_nav.open:hover {
  background-color: hsl(270, 50%, 40%);
  border-radius: 25% 25% 0% 0%;
}
