/* supplement.css — museum-lengfeld.de */

/* Shared blog/article nav */
nav#romli-nav {
  background: #fff;
  border-bottom: 3px solid #8B5A2B;
  position: sticky;
  top: 0;
  z-index: 9999;
}
nav#romli-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
nav#romli-nav li {
  margin: 0;
}
nav#romli-nav a {
  display: block;
  padding: 12px 13px;
  color: #333;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  white-space: nowrap;
}
nav#romli-nav a:hover {
  color: #8B5A2B;
  background: #f5efe7;
}
nav#romli-nav a.rml-blog {
  margin-left: 6px;
  background: #8B5A2B;
  color: #fff;
  border-radius: 2px;
}
nav#romli-nav a.rml-blog:hover {
  background: #70481f;
  color: #fff;
}

.rml-nav-top {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  gap: 12px;
}
.rml-nav-label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #5a3a1e;
}
.rml-nav-toggle {
  appearance: none;
  border: 1px solid #c9b7a2;
  background: #f5efe7;
  border-radius: 4px;
  width: 44px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rml-nav-toggle:focus-visible {
  outline: 2px solid #8B5A2B;
  outline-offset: 2px;
}
.rml-nav-burger {
  display: block;
  width: 20px;
  height: 14px;
  position: relative;
}
.rml-nav-burger span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #5a3a1e;
  border-radius: 1px;
  transition: transform .2s ease, opacity .2s ease, top .2s ease;
}
.rml-nav-burger span:nth-child(1) { top: 0; }
.rml-nav-burger span:nth-child(2) { top: 6px; }
.rml-nav-burger span:nth-child(3) { top: 12px; }

nav#romli-nav.is-open .rml-nav-burger span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}
nav#romli-nav.is-open .rml-nav-burger span:nth-child(2) {
  opacity: 0;
}
nav#romli-nav.is-open .rml-nav-burger span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

@media (max-width: 820px) {
  .rml-nav-top {
    display: flex;
  }
  nav#romli-nav ul {
    display: none;
    flex-direction: column;
    align-items: stretch;
    border-top: 1px solid #e8dccb;
    max-height: min(70vh, 520px);
    overflow-y: auto;
  }
  nav#romli-nav.is-open ul {
    display: flex;
  }
  nav#romli-nav a {
    padding: 14px 16px;
    white-space: normal;
    border-bottom: 1px solid #f0e8dc;
  }
  nav#romli-nav a.rml-blog {
    margin: 8px 12px 12px;
    text-align: center;
    border-bottom: none;
  }
}
