#site-nav-root {
  position: sticky;
  top: 0;
  z-index: 9999;
}

.site-nav,
.site-nav-picker {
  background: #f5edcf;
  border-bottom: 1px solid #c8b98f;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.7;
}

.site-nav-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 8px;
}

.site-nav-toolbar-label {
  font-weight: bold;
  color: #5c4b1f;
}

.site-nav-switch-btn,
.site-nav-lang-btn {
  appearance: none;
  border: 1px solid #b8a774;
  background: #fffdf5;
  color: #2d2d2d;
  padding: 6px 10px;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  border-radius: 4px;
}

.site-nav-switch-btn:hover,
.site-nav-lang-btn:hover {
  background: #fff7dd;
}

.site-nav-links a {
  display: inline-block;
  margin-right: 14px;
  margin-bottom: 6px;
  color: #1a5fb4;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav-links a:hover {
  text-decoration: underline;
}

.site-nav-links a.current {
  font-weight: bold;
  color: #8a2be2;
}

.site-nav-picker-title {
  font-weight: bold;
  margin-bottom: 10px;
  color: #5c4b1f;
}

.site-nav-picker-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}


.ritz.grid-container {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

.ritz.grid-container > table.waffle {
  width: max-content;
  min-width: max-content;
  max-width: none;
}

#floating-hscroll {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 10000;
  height: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #a4846c;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
  border-radius: 4px;
}

#floating-hscroll-inner {
  height: 1px;
}

#floating-hscroll.is-hidden {
  display: none;
}