/* Primary navigation stays visible; service links sit in a separate menu. */
.hrr-layout-service .hrr-header .hrr-nav { display: none; }
.hrr-layout-service .hrr-header .hrr-header-inner { min-height: 70px; gap: 16px; }
.hrr-layout-service .hrr-header .hrr-member { margin-left: auto; }

.hrr-showroom-main-header .hrr-header .site-nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(8px, 1.5vw, 24px);
  margin: 0;
  flex: 1 0 auto;
}
.hrr-showroom-main-header .hrr-header .site-nav a,
.hrr-layout-service .sampling-service-nav a,
.hrr-layout-service .estimate-toolbar nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 8px;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: #514139;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}
.hrr-showroom-main-header .hrr-header .site-nav a[aria-current],
.hrr-layout-service .sampling-service-nav a[aria-current],
.hrr-layout-service .estimate-toolbar nav a:is([aria-current], .active):not([aria-current="false"]) {
  color: #a9432d;
  border-bottom-color: #d96b51;
}
.hrr-showroom-main-header .hrr-header .site-nav a:hover { color: #a9432d; }

.hrr-showroom-main-header .site-header { position: static; height: auto; min-height: 0; padding-block: 0; }
.hrr-showroom-main-header .site-header:not(:has(.admin-link:not([hidden]))),
.hrr-showroom-main-header .site-header :is(.logout-link, .mobile-video-link),
.hrr-layout-service .sampling-service-nav a[href="/member/"],
.hrr-layout-service .estimate-toolbar nav a[href="/dy/#history"] { display: none; }

.hrr-layout-service .sampling-service-nav { padding-block: 4px; }
.hrr-layout-service .estimate-toolbar nav { gap: 16px; }
:root[data-theme=dark] .hrr-layout-service .estimate-toolbar nav a { color: #cbbcc2; }
:root[data-theme=dark] .hrr-layout-service .estimate-toolbar nav a:is([aria-current], .active) { color: #ffb8a5; }

@media (max-width: 940px) {
  .hrr-showroom-main-header .hrr-header .site-nav {
    order: 3;
    flex-basis: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid #f0e5db;
  }
}

.hrr-switch {
  --switch-panel: #fffdf9;
  --switch-ink: #514139;
  --switch-border: #e5d7ca;
  --switch-hover: #faeee7;
  position: relative;
  flex: none;
  margin: 0;
  padding: 0;
  border: 0;
}
:root[data-theme=dark] .hrr-switch, .hrr-trend-actions .hrr-switch {
  --switch-panel: #26232c;
  --switch-ink: #f9f6ed;
  --switch-border: #56505e;
  --switch-hover: #403847;
}
.hrr-switch > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 9px;
  border-radius: 8px;
  color: var(--switch-ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  list-style: none;
}
.hrr-switch > summary::-webkit-details-marker { display: none; }
.hrr-switch > summary::after {
  content: '';
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}
.hrr-switch[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.hrr-switch[open] > summary, .hrr-switch > summary:hover { background: var(--switch-hover); }
.hrr-switch > .hrr-switch-panel {
  display: grid;
  gap: 2px;
  position: absolute;
  z-index: 60;
  inset: calc(100% + 4px) 0 auto auto;
  width: 166px;
  margin: 0;
  padding: 5px;
  border: 1px solid var(--switch-border);
  border-radius: 12px;
  background: var(--switch-panel);
  box-shadow: 0 10px 28px #17121224;
}
.hrr-switch:not([open]) > .hrr-switch-panel { display: none; }
.hrr-switch > .hrr-switch-panel > a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 11px;
  border-radius: 7px;
  color: var(--switch-ink);
  font-size: 14px;
  white-space: nowrap;
}
.hrr-switch > .hrr-switch-panel > a:hover { background: var(--switch-hover); }
.hrr-layout-service .hrr-header .hrr-switch { margin-left: auto; }
.hrr-layout-service .hrr-header .hrr-switch + .hrr-member { margin-left: 0; }
@media (max-width: 1050px) {
  .hrr-layout-service .hrr-header .hrr-header-inner { flex-wrap: wrap; }
  .hrr-showroom-main-header .hrr-header .site-nav,
  .hrr-layout-service .hrr-header .hrr-primary-nav,
  .hrr-estimate.hrr-layout-service .hrr-header .estimate-toolbar nav { order: 3; flex-basis: 100%; }
}
@media (max-width: 640px) {
  body.hrr-showroom.hrr-layout-service { min-width: 0; }
  .hrr-layout-service .hrr-header .hrr-header-inner { gap: 4px 6px; }
  .hrr-layout-service .hrr-header .hrr-brand { margin-right: 0; }
  .hrr-layout-service .hrr-header .hrr-member :is(a,button) { min-height: 44px; }
  .hrr-switch > summary { padding-inline: 6px; font-size: 12px; }
  .hrr-layout-service .hrr-header .hrr-header-inner:has(> .hrr-switch) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
  }
  .hrr-layout-service .hrr-header-inner > .hrr-brand { grid-area: 1 / 1; }
  .hrr-layout-service .hrr-header-inner > .hrr-switch { grid-area: 1 / 2; }
  .hrr-layout-service .hrr-header-inner > .hrr-member { grid-area: 1 / 3; }
  .hrr-layout-service .hrr-header-inner > :is(.site-nav,.hrr-primary-nav),
  .hrr-estimate.hrr-layout-service .hrr-header .estimate-toolbar nav { grid-area: 2 / 1 / 3 / -1; }
  .hrr-estimate.hrr-layout-service .hrr-header .estimate-toolbar #account:not([hidden]) { grid-column: 1 / -1; }
}
@media (max-width: 360px) {
  .hrr-layout-service .hrr-header .hrr-brand small { display: none; }
  .hrr-layout-service .hrr-header .hrr-brand strong { font-size: 18px; letter-spacing: 0; }
  .hrr-layout-service .hrr-header .hrr-mark { width: 32px; height: 32px; }
}
@media (max-width: 600px) {
  .hrr-layout-service .hrr-header .hrr-header-inner { gap: 5px 10px; min-height: 56px; padding: 8px 12px 0; }
  .hrr-layout-service:not(.hrr-showroom-main-header) .hrr-header .hrr-header-inner { padding-bottom: 8px; }
  .hrr-layout-service .hrr-header .hrr-brand { margin-right: 0; gap: 7px; }
  .hrr-layout-service .hrr-header .hrr-member a,
  .hrr-layout-service .hrr-header .hrr-member button { padding-inline: 6px; }
  .hrr-showroom-main-header .hrr-header .site-nav a,
  .hrr-layout-service .sampling-service-nav a,
  .hrr-layout-service .estimate-toolbar nav a { font-size: 13px; padding-inline: 2px; }
  .hrr-layout-service .sampling-service-nav { gap: 20px; padding: 0 14px; }
  .hrr-layout-service .estimate-toolbar { padding: 0 14px; }
  .hrr-layout-service .estimate-toolbar nav { gap: 10px; flex-wrap: wrap; }
}

/* Match the one-row showroom header on desktop. */
.hrr-layout-service .hrr-header .hrr-primary-nav {
  flex: 1;
  justify-content: center;
  gap: 20px;
  padding: 0;
  border: 0;
  background: transparent;
}
.hrr-layout-service .hrr-header .hrr-primary-nav a:last-child { margin-left: 0; }
.hrr-estimate.hrr-layout-service .hrr-header .estimate-toolbar { display: contents !important; }
.hrr-estimate.hrr-layout-service .hrr-header .estimate-toolbar nav {
  flex: 1;
  justify-content: center;
}
.hrr-estimate.hrr-layout-service .hrr-header .estimate-toolbar[style*="none"] #account { display: none !important; }
.hrr-estimate.hrr-layout-service .hrr-header .estimate-toolbar nav a[hidden] { display: none !important; }
@media (max-width: 940px) {
  .hrr-layout-service .hrr-header .hrr-primary-nav,
  .hrr-estimate.hrr-layout-service .hrr-header .estimate-toolbar nav {
    order: 3;
    flex-basis: 100%;
    margin: 0;
    justify-content: flex-start;
    border-top: 1px solid #f0e5db;
  }
}
