.slmh { display: none; }
@media (max-width: 767px) {
  /* Other positions still serve the original tablet and desktop headers. */
  body:has(.slmh) .mbfr-lang,
  body:has(.slmh) .slm-selector:not(.slmh .slm-selector) { display: none !important; }
.slmh {
  --slmh-ink: #172f42;
  --slmh-accent: #185b83;
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.3vw, 22px);
  width: 100%;
  max-width: 1500px;
  margin: auto;
  padding: 12px clamp(8px, 1.5vw, 24px);
  background: #fff;
  color: var(--slmh-ink);
  font: 500 15px/1.35 Inter, system-ui, sans-serif;
  text-align: start;
}
.slmh[data-brand="melonbath"] { --slmh-accent: #126a58; --slmh-ink: #183a32; }
.slmh, .slmh * { box-sizing: border-box; }
.slmh a, .slmh summary { color: inherit; text-decoration: none; }
.slmh a:hover, .slmh summary:hover { color: var(--slmh-accent); text-decoration: underline; }
.slmh :focus-visible { outline: 2px solid var(--slmh-accent); outline-offset: 2px; }
.slmh summary { cursor: pointer; list-style: none; }
.slmh summary::-webkit-details-marker { display: none; }
.slmh-nav > summary, .slmh-actions > a, .slmh-search button {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px;
}
.slmh-brand { display: flex; align-items: center; flex: 0 1 180px; min-width: 0; }
.slmh-brand picture { display: block; width: 100%; }
.slmh .slmh-brand img { display: block; width: 100%; height: 46px; max-width: 100%; margin: 0; object-fit: contain; object-position: left center; }
.slmh-search {
  display: flex; flex: 1 1 230px; align-items: center; min-width: 0; margin: 0;
  padding: 1px 2px 1px 14px; border: 1px solid #b9c9cc; border-radius: 24px; background: #f6f8f8;
}
.slmh-search:focus-within { border-color: var(--slmh-accent); box-shadow: 0 0 0 1px var(--slmh-accent); }
.slmh-search input[type="search"] {
  flex: 1; min-width: 0; width: 100%; height: 42px; margin: 0; padding: 0;
  border: 0; outline: none; box-shadow: none; background: transparent; color: var(--slmh-ink); font: inherit;
}
.slmh-search button { flex: none; width: 44px; height: 42px; margin: 0; border: 0; background: transparent; color: var(--slmh-accent); cursor: pointer; }
.slmh-actions { display: flex; align-items: center; flex: none; }
.slmh .slm-toggle { min-height: 44px; max-width: 110px; }
.slmh .slm-toggle .slm-label { overflow: hidden; text-overflow: ellipsis; }
.slmh .slm-menu { left: auto; right: 0; z-index: 110; }
.slmh-panel {
  position: absolute; inset-inline-start: 0; top: 100%; z-index: 100;
  width: min(390px, 100%); max-height: min(65vh, 580px); overflow-y: auto; overscroll-behavior: contain;
  padding: 12px; background: #fff; border: 1px solid #dbe3e4; border-radius: 10px;
  box-shadow: 0 12px 28px rgb(16 42 49 / 14%);
}
.slmh-panel a, .slmh-panel summary { display: block; padding: 10px 12px; }
.slmh-panel summary { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.slmh-panel details > summary::after { content: "＋"; }
.slmh-panel details[open] > summary::after { content: "−"; }
.slmh-panel details > div { padding-left: 12px; border-left: 2px solid #dbe3e4; }
.slmh-extra { display: block; margin-top: 8px; border-top: 1px solid #dbe3e4; }
  .slmh { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 6px 3px; padding: 5px 4px 9px; }
  .slmh-nav { grid-area: 1 / 1; }
  .slmh-brand { grid-area: 1 / 2; max-width: 150px; }
  .slmh .slmh-brand img { height: 38px; }
  .slmh-actions { grid-area: 1 / 3; gap: 0; }
  .slmh-actions > a { width: 40px; }
  .slmh .slm-toggle { max-width: 76px; }
  .slmh-search { grid-area: 2 / 1 / 3 / -1; }
  .slmh-search input[type="search"] { font-size: 16px; }
}
