/* V197: one category row. V196 submenu surfaces and interactions stay intact. */
.top > .desktop-nav, .rm-desktop-page-tabs { display: none !important; }
.rm-header-service { display: none; }

@media (min-width: 1024px) {
  .top {
    grid-template-rows: 92px;
    grid-template-areas: "search brand basket";
    height: 92px !important;
    min-height: 92px !important;
    max-height: 92px !important;
  }
  .top > .rm-header-service {
    display: flex;
    position: relative;
    grid-area: basket;
    justify-self: end;
    align-items: center;
    min-height: 44px;
    margin-right: calc(clamp(28px, 5vw, 78px) + 70px);
    padding: 8px 0;
    color: var(--navy, #071e3d);
    font: 600 13px/1.3 Arial, sans-serif;
    text-decoration: none;
  }
  .top > .rm-header-service:hover { text-decoration: underline; text-underline-offset: 4px; }
  .top > .rm-header-service:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
  .rm-brand-experience--aliehs-running .top > .rm-header-service { color: var(--rm-brand-text, #f5f5f2); }
  .desktop-shop-filter-v127, .desktop-shop-filter-v141, .commission-inspiration { top: 112px !important; }
  .pdp-media, .product-summary, .rm-checkout-side { top: 106px !important; }
  [id] { scroll-margin-top: 112px; }
}

@media (min-width: 1280px) {
  .rm-single-navigation .rm-category-mega-bar {
    display: flex;
    align-items: stretch;
    padding: 0 clamp(18px, 2vw, 36px);
  }
  .rm-single-navigation .rm-category-mega-item { flex: 1 1 0; }
  .rm-single-navigation .rm-category-mega-tab { height: 100%; min-height: 54px; }
  .rm-single-navigation .rm-category-mega-tab > :is(a, button) {
    font-size: 12px;
    letter-spacing: .025em;
    padding: 0 10px;
  }
  .rm-single-navigation .rm-category-brand-entry { flex: 0 0 218px; }
  .rm-single-navigation .rm-category-brand-entry .rm-category-mega-tab > a {
    gap: 9px;
    background: #202327;
    color: #f5f5f2;
    font: 700 11px/1.25 Arial, sans-serif;
    letter-spacing: .035em;
    white-space: nowrap;
  }
  .rm-category-brand-entry img { width: 70px; height: 28px; object-fit: contain; filter: brightness(0) invert(1); }
  .rm-category-brand-entry a:hover { text-decoration: underline; text-underline-offset: 4px; }
  .rm-single-navigation .rm-category-brand-return { flex: 0 0 190px; }
  .rm-category-brand-return a { gap: 9px; border-left: 1px solid var(--rm-mega-border); }
}

/* Use the established burger journey before the category row becomes cramped. */
@media (max-width: 1279px) {
  .rm-single-navigation { display: none !important; }
  .rm-brand-context-mobile { display: block; }
  .top > .hamb { display: grid !important; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .top > .rm-desktop-header-search { display: none; }
  .top > .hamb {
    display: grid !important;
    place-items: center;
    position: relative;
    grid-area: search;
    justify-self: start;
    left: auto;
    top: auto;
    transform: none;
    margin-left: 28px;
    width: 44px;
    height: 44px;
    padding: 0;
  }
  .rm-discovery-header { display: block; padding: 14px 28px; }
  #menu .menu-tray { width: min(90vw, 440px); }
}
