dxp-nav-panel {
  /**
  * @prop --box-shadow: Controls the shadow that appears around the panel.
  */
  --box-shadow: 0px 16px 64px 0px hsla(0, 0%, 0%, 0.1),
    0px 8px 16px 0px hsla(0, 0%, 0%, 0.1);
  /**
  * @prop --padding-y: Controls the panels vertical padding.
  */
  --padding-y: 34px;
  /**
  * @prop --padding-right: Controls the panels right padding.
  */
  --padding-right: 2.5rem;
  /**
  * @prop --padding-left: Controls the panels left padding.
  */
  --padding-left: 1rem;
  /**
  * @prop --background: Controls the background color of the panel.
  */
  --background: hsl(0, 0%, 100%);
  /**
  * @prop --color-active: Controls the color of text on hover or if nav item is active.
  */
  --color-active: hsl(259.5, 100%, 50%);

  /**
  * @prop --font-size-row-title: Controls the size of top level items w/ the `header` property.
  */
  --font-size-row-title: 1rem;
  /**
  * @prop --padding-bottom-row-title: Controls the bottom padding of top level items w/ the `header` property.
  */
  --padding-bottom-row-title: 18px;
  /**
  * @prop --font-weight-row-title: Controls font weight of top level items w/ the `header` property
  */
  --font-weight-row-title: 800;
  /**
  * @prop --color-row-title: Controls the text color of top level items w/ the `header` property
  */
  --color-row-title: hsl(0, 0%, 9.8%);

  /**
  * @prop --font-size-row-item: Controls the font size for each link.
  */
  --font-size-row-item: 1rem;
  /**
  * @prop --line-height-row-item: Controls the line height for each link.
  */
  --line-height-row-item: 150%;
  /**
  * @prop --font-weight-row-item: Controls the font weight for each link.
  */
  --font-weight-row-item: 500;
  /**
  * @prop --color-row-item: Controls the text color for each link.
  */
  --color-row-item: hsl(0, 0%, 9.8%);
  /**
  * @prop --padding-bottom-row-item: Controls the bottom padding for each link.
  */
  --padding-bottom-row-item: 0.5rem;
  /**
  * @prop --child-indent-padding: Controls the start padding for each link defined as a child item.
  */
  --child--indent-padding: 1rem;
}

.menu-panel {
  display: none;
  pointer-events: none;
  transition: none;
}

.menu-panel__wrapper {
  padding: var(--padding-y) var(--padding-right) var(--padding-y)
    var(--padding-left);
  background: var(--background);
  pointer-events: none;
  border-bottom-left-radius: var(--header-border-radius);
  border-bottom-right-radius: var(--header-border-radius);

  width: auto;
  position: absolute;
  box-shadow: var(--box-shadow);
}

.menu-panel__container {
  max-width: 1168px;
  margin: 0 auto;
  display: block;
  grid-template-columns: repeat(5, minmax(min-content, 240px));
  list-style: none;
  padding-left: 2rem;
}

.menu-panel__row-title {
  cursor: default;
  font-size: var(--font-size-row-title);
  margin-bottom: var(--padding-bottom-row-title);
  font-weight: var(--font-weight-row-title);
  color: var(--color-row-title);
}

.menu-panel__row-item {
  font-size: var(--font-size-row-item);
  line-height: var(--line-height-row-item);
  font-weight: var(--font-weight-row-item);
  color: var(--color-row-item);
  margin-bottom: var(--padding-bottom-row-item);
  text-decoration: none;
  transition: color, border 0.15s ease-in-out;
  display: block;
}

.menu-panel__row-item.active,
.menu-panel__row-item:hover {
  color: var(--color-active);
  margin-bottom: 7px;
}

.menu-panel__row-item.active span,
.menu-panel__row-item:hover span {
  padding-bottom: 2px;
  margin-bottom: -2px;
  display: inline-block;
  border-bottom: 1px solid var(--color-active);
}

.menu-panel__row li {
  list-style: none;
}

.menu-panel__row ul {
  padding-inline-start: var(--child--indent-padding);
}
