/* Approved 1.3: native category links with separate disclosure controls. */
.mps-header .mps-catalog-v6 {
  --mps-catalog-green: var(--mps-brand, #00bc70);
  --mps-catalog-focus: #087b4e;
}

.mps-header .mps-catalog-v6 .mps-category-row {
  grid-template-columns: repeat(11, minmax(min-content, 1fr));
  grid-auto-flow: row;
  grid-auto-columns: auto;
  overflow: visible;
}

.mps-header .mps-catalog-v6 .mps-catalog-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(min-content, 1fr) 28px;
  align-items: stretch;
  min-width: 0;
}

.mps-header .mps-catalog-v6 .mps-catalog-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 10px 4px 12px;
  color: var(--ink, #212322);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}

.mps-header .mps-catalog-v6 .mps-catalog-link::after {
  position: absolute;
  inset: auto 4px 6px;
  height: 2px;
  background: var(--mps-catalog-green);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease-out;
  content: "";
}

.mps-header .mps-catalog-v6 .mps-catalog-words {
  white-space: nowrap;
}

.mps-header .mps-catalog-v6 .mps-catalog-item:is(:hover, :focus-within, [data-open="true"]) > .mps-catalog-link::after {
  transform: scaleX(1);
}

.mps-header .mps-catalog-v6 .mps-catalog-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 28px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink, #212322);
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

.mps-header .mps-catalog-v6 .mps-catalog-toggle svg {
  display: block;
  width: 12px;
  height: 12px;
  transition: transform 160ms ease-out, color 160ms ease-out;
  pointer-events: none;
}

.mps-header .mps-catalog-v6 .mps-catalog-item:is(:hover, :focus-within, [data-open="true"]) > .mps-catalog-toggle {
  color: var(--mps-catalog-green);
}

.mps-header .mps-catalog-v6 .mps-catalog-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.mps-header .mps-catalog-v6 .mps-category-panel {
  padding: 22px 68px 24px 24px;
}

.mps-header .mps-catalog-v6 .mps-panel-close {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-end: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-color: #d8e2db;
  color: var(--ink, #212322);
  background: #fff;
  touch-action: manipulation;
}

.mps-header .mps-catalog-v6 .mps-panel-close:hover {
  border-color: var(--mps-catalog-green);
  color: var(--mps-catalog-focus);
}

.mps-header .mps-catalog-v6 .mps-panel-close svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.mps-header .mps-catalog-v6 :is(.mps-catalog-link, .mps-catalog-toggle, .mps-panel-close, .mps-panel-body a):focus-visible {
  outline: 2px solid var(--mps-catalog-focus);
  outline-offset: -2px;
  border-radius: 4px;
}

.mps-header .mps-catalog-v6 .mps-panel-body a:focus-visible {
  outline-offset: 2px;
}

.mps-header .mps-catalog-v6 :is(.mps-category-panel, .mps-panel-body)[hidden] {
  display: none;
}

/* Keep both rows readable rather than reducing type at narrower widths. */
@media (max-width: 1279px) {
  .mps-header .mps-catalog-v6 .mps-category-row {
    grid-template-columns: repeat(11, minmax(132px, 1fr));
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }
}

@media (pointer: coarse) {
  .mps-header .mps-catalog-v6 .mps-category-row {
    grid-template-columns: repeat(11, minmax(148px, 1fr));
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }

  .mps-header .mps-catalog-v6 .mps-catalog-item {
    grid-template-columns: minmax(min-content, 1fr) 44px;
  }

  .mps-header .mps-catalog-v6 .mps-catalog-toggle {
    width: 44px;
  }
}

@media (max-width: 700px) {
  .mps-header .mps-catalog-v6 .mps-catalog-link {
    min-height: 60px;
  }

  .mps-header .mps-catalog-v6 .mps-category-panel {
    padding: 18px 62px 20px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mps-header .mps-catalog-v6 .mps-catalog-link::after,
  .mps-header .mps-catalog-v6 .mps-catalog-toggle svg {
    transition: none;
  }
}
