.menu {
  display: flex;
}
.menu a {
  display: block;
  transition: all 150ms ease-in-out;
}
.menu--header {
  display: flex;
  flex-wrap: wrap;
}
@media (min-width: 1200px) {
  .menu--header {
    column-gap: 16px;
    align-items: center;
    justify-content: center;
  }
}
@media (max-width: 1199.98px) {
  .menu--header {
    flex-direction: column;
  }
}
@media (min-width: 740px) and (max-width: 1199.98px) {
  .menu--header {
    row-gap: 16px;
  }
}
@media (max-width: 739.98px) {
  .menu--header {
    row-gap: 10px;
  }
}
@media (max-width: 1199.98px) {
  .menu--header a:active {
    color: var(--white);
  }
}
@media (max-width: 1199.98px) {
  .menu--header > li {
    background-color: var(--accent-50);
    border-radius: 10px;
    transition: all 150ms ease-in-out;
  }
  .menu--header > li:active {
    background-color: var(--accent);
  }
}
.menu--header > li > a {
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  justify-content: start;
}
@media (min-width: 1200px) {
  .menu--header > li > a {
    column-gap: 2px;
    padding: 4px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    border-radius: 10px;
  }
  .menu--header > li > a:hover, .menu--header > li > a:focus-visible {
    background-color: var(--yellow-400);
  }
}
@media (max-width: 1199.98px) {
  .menu--header > li > a {
    font-weight: 500;
  }
}
@media (min-width: 740px) and (max-width: 1199.98px) {
  .menu--header > li > a {
    column-gap: 8px;
    padding: 10px;
    font-size: 18px;
  }
}
@media (max-width: 739.98px) {
  .menu--header > li > a {
    column-gap: 4px;
    padding: 6px;
    font-size: 14px;
  }
}
@media (max-width: 1199.98px) {
  .menu--header .menu-icon {
    width: 24px;
    height: 24px;
  }
}
.menu--header .menu-item-has-children {
  position: relative;
}
@media (min-width: 1200px) {
  .menu--header .menu-item-has-children > a::after {
    width: 24px;
    height: 24px;
    content: "";
    background-color: currentColor;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3E%3Cpath fill='%23000' d='m7 10 5 5 5-5H7Z'/%3E%3C/svg%3E");
    transition: transform 150ms ease-in-out;
  }
}
.menu--header .menu-item-has-children > a[href="#"] {
  pointer-events: none;
}
@media (max-width: 1199.98px) {
  .menu--header .menu-item-has-children > a[href="#"]:has(+ .menu-toggle)::after {
    width: 24px;
    height: 24px;
    content: "";
    background-color: currentColor;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='m7 10 5 5 5-5H7Z'/%3E%3C/svg%3E");
    transition: transform 150ms ease-in-out;
  }
}
@media (max-width: 1199.98px) {
  .menu--header .menu-item-has-children > a[href="#"]:has(+ .menu-toggle.active)::after {
    transform: scaleY(-1);
  }
}
@media (max-width: 1199.98px) {
  .menu--header .menu-item-has-children > a[href="#"] + .menu-toggle {
    position: absolute;
    inset-inline-end: 0;
    top: 0;
    grid-area: unset;
    width: 100%;
    padding: 0;
    margin: 0;
  }
  .menu--header .menu-item-has-children > a[href="#"] + .menu-toggle::before {
    display: none;
  }
}
@media (min-width: 740px) and (max-width: 1199.98px) {
  .menu--header .menu-item-has-children > a[href="#"] + .menu-toggle {
    height: 44px;
  }
}
@media (max-width: 739.98px) {
  .menu--header .menu-item-has-children > a[href="#"] + .menu-toggle {
    height: 36px;
  }
}
@media (min-width: 1200px) {
  .menu--header .menu-item-has-children:hover .sub-menu, .menu--header .menu-item-has-children:focus-visible .sub-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }
  .menu--header .menu-item-has-children:hover > a, .menu--header .menu-item-has-children:focus-visible > a {
    background-color: var(--yellow-400);
  }
  .menu--header .menu-item-has-children:hover > a::after, .menu--header .menu-item-has-children:focus-visible > a::after {
    transform: scaleY(-1);
  }
  .menu--header .menu-item-has-children .menu-toggle {
    display: none;
  }
}
@media (max-width: 1199.98px) {
  .menu--header .menu-item-has-children {
    display: grid;
    grid-template: "link toggle" "list list"/auto 1fr;
    align-items: center;
  }
  .menu--header .menu-item-has-children > a {
    grid-area: link;
  }
  .menu--header .menu-item-has-children .menu-toggle {
    display: grid;
    grid-area: toggle;
    align-content: center;
    justify-items: start;
    height: 100%;
  }
  .menu--header .menu-item-has-children .menu-toggle::before {
    display: block;
    width: 24px;
    height: 24px;
    content: "";
    background-color: currentColor;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='m7 10 5 5 5-5H7Z'/%3E%3C/svg%3E");
    transition: transform 250ms ease-in-out;
  }
  .menu--header .menu-item-has-children .menu-toggle.active::before {
    transform: scaleY(-1);
  }
  .menu--header .menu-item-has-children .sub-menu {
    grid-area: list;
  }
}
.menu--header .sub-menu {
  display: grid;
  transition: all 150ms ease-in-out;
}
@media (min-width: 1200px) {
  .menu--header .sub-menu {
    position: absolute;
    inset-inline-start: 0;
    top: 100%;
    z-index: 2;
    row-gap: 4px;
    width: max-content;
    min-width: 100px;
    max-height: unset;
    padding: 16px 10px 10px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-5px);
  }
  .menu--header .sub-menu::before {
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 100%;
    height: calc(100% - 6px);
    content: "";
    background-color: var(--yellow-400);
    border-radius: 10px;
  }
}
@media (max-width: 1199.98px) {
  .menu--header .sub-menu {
    row-gap: 10px;
  }
}
@media (min-width: 740px) and (max-width: 1199.98px) {
  .menu--header .sub-menu .menu-item:last-child {
    margin-bottom: 10px;
  }
}
@media (max-width: 739.98px) {
  .menu--header .sub-menu .menu-item:last-child {
    margin-bottom: 6px;
  }
}
.menu--header .sub-menu a {
  font-weight: 500;
}
@media (min-width: 1200px) {
  .menu--header .sub-menu a {
    position: relative;
    width: fit-content;
    padding: 2px 4px;
    font-size: 12px;
  }
  .menu--header .sub-menu a::after {
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    content: "";
    background-color: currentColor;
    opacity: 0;
    transition: opacity 150ms ease-in-out;
  }
  .menu--header .sub-menu a:hover::after, .menu--header .sub-menu a:focus-visible::after {
    opacity: 1;
  }
}
@media (max-width: 1199.98px) {
  .menu--header .sub-menu a {
    padding: 4px 20px;
    font-size: 14px;
  }
}
@media (min-width: 740px) {
  .menu--footer {
    display: flex;
    grid-auto-flow: column;
    gap: 24px 16px;
  }
}
@media (min-width: 1200px) {
  .menu--footer {
    justify-content: space-evenly;
  }
}
@media (min-width: 740px) and (max-width: 1199.98px) {
  .menu--footer {
    justify-content: space-between;
  }
  .menu--footer:has(> li:nth-child(2):last-child) > li {
    flex-grow: 1;
  }
}
@media (max-width: 739.98px) {
  .menu--footer {
    display: grid;
    row-gap: 10px;
  }
}
.menu--footer .menu-toggle {
  display: grid;
  justify-items: end;
  height: 32px;
  padding-block: 4px;
  margin-block: -4px;
}
.menu--footer .menu-toggle::before {
  display: block;
  width: 24px;
  height: 24px;
  content: "";
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='m12 15.4-6-6L7.4 8l4.6 4.6L16.6 8 18 9.4l-6 6Z'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform 250ms ease-in-out;
}
.menu--footer .menu-toggle.active::before {
  transform: scaleY(-1);
}
@media (min-width: 740px) {
  .menu--footer .menu-toggle {
    display: none;
  }
}
.menu--footer a {
  display: block;
  padding: 4px;
  margin: -4px;
}
@media (min-width: 740px) {
  .menu--footer a {
    width: fit-content;
  }
}
.menu--footer > li {
  display: grid;
  align-content: start;
}
@media (min-width: 740px) {
  .menu--footer > li {
    row-gap: 10px;
  }
}
@media (max-width: 739.98px) {
  .menu--footer > li {
    position: relative;
    align-items: center;
    padding-bottom: 2px;
  }
  .menu--footer > li:not(:has(.show)) {
    border-bottom: solid 1px var(--slate-400);
  }
}
.menu--footer > li > a {
  font-family: Ubuntu, sans-serif;
  font-weight: 500;
}
@media (min-width: 740px) {
  .menu--footer > li > a {
    font-size: 22px;
  }
}
@media (max-width: 739.98px) {
  .menu--footer > li > a {
    font-size: 16px;
  }
}
.menu--footer > li > a:hover, .menu--footer > li > a:focus-visible {
  color: var(--yellow-400);
}
@media (max-width: 1023.98px) {
  .menu--footer .menu-item-has-children {
    display: grid;
  }
}
@media (max-width: 739.98px) {
  .menu--footer .menu-item-has-children {
    grid-template-columns: auto 1fr;
    column-gap: 4px;
  }
}
.menu--footer .menu-item-has-children > a[href="#"] {
  position: relative;
  z-index: 2;
  pointer-events: none;
}
@media (max-width: 739.98px) {
  .menu--footer .menu-item-has-children > a[href="#"] + .menu-toggle {
    position: absolute;
    inset-inline-end: 0;
    top: -4px;
    width: 100%;
  }
}
.menu--footer .sub-menu {
  display: grid;
  row-gap: 8px;
}
@media (min-width: 740px) {
  .menu--footer .sub-menu {
    max-height: unset;
  }
}
@media (max-width: 739.98px) {
  .menu--footer .sub-menu {
    grid-column: span 2;
    transition: all 250ms ease-in-out;
  }
  .menu--footer .sub-menu.show {
    margin-top: 8px;
  }
}
.menu--footer .sub-menu a {
  position: relative;
}
.menu--footer .sub-menu a::after {
  position: absolute;
  inset-inline-start: 0;
  bottom: 4px;
  width: 100%;
  height: 1px;
  content: "";
}
@media (min-width: 740px) {
  .menu--footer .sub-menu a {
    font-size: 16px;
  }
  .menu--footer .sub-menu a::after {
    bottom: 4px;
    background-color: currentColor;
    opacity: 0;
    transition: opacity 150ms ease-in-out;
  }
  .menu--footer .sub-menu a:hover::after, .menu--footer .sub-menu a:focus-visible::after {
    opacity: 1;
  }
}
@media (max-width: 739.98px) {
  .menu--footer .sub-menu a {
    margin-block: -2px;
    font-size: 12px;
  }
  .menu--footer .sub-menu a:active {
    color: var(--yellow-400);
  }
  .menu--footer .sub-menu a::after {
    bottom: 2px;
    background-color: var(--slate-400);
  }
}