/* Mongolie Grill — in-page document viewer (menus/guides open in an overlay
   instead of navigating away to the raw PDF). Loaded on pages with PDF links. */

html.dv-locked {
  overflow: hidden !important;
  overscroll-behavior: none;
  scroll-behavior: auto !important;
}
/* Pinning the body (with an inline negative top set by JS) keeps the page
   visually in place; plain overflow:hidden would reset scroll to the top. */
html.dv-locked body {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

.dv-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(22, 19, 19, 0.94);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.28s ease;
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .dv-overlay {
    background: rgba(22, 19, 19, 0.82);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}
.dv-overlay.dv-open { opacity: 1; }

.dv-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #231f20;
  border-bottom: 2px solid #c74a1b;
  padding: 0 14px 0 20px;
  min-height: 52px;
}
.dv-title {
  display: flex;
  align-items: center;
  font-family: KlavikaBold, "Roboto", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #f4efec;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dv-title::before {
  content: "";
  width: 7px;
  height: 7px;
  background: #c74a1b;
  margin-right: 11px;
  flex: 0 0 auto;
}
.dv-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.dv-dl, .dv-x {
  box-sizing: border-box;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: transparent;
  color: #f4efec;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.dv-dl {
  font-family: KlavikaBold, "Roboto", Arial, sans-serif;
  font-size: 10.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #f4efec !important;
  text-decoration: none !important;
  padding: 0 15px;
}
.dv-x {
  appearance: none;
  -webkit-appearance: none;
  width: 34px;
  padding: 0;
  margin: 0;
}
.dv-x svg { width: 15px; height: 15px; display: block; }
.dv-dl:hover, .dv-x:hover {
  background: #c74a1b;
  border-color: #c74a1b;
  color: #ffffff !important;
}
.dv-dl:focus, .dv-x:focus { outline: none; }
.dv-dl:focus-visible, .dv-x:focus-visible {
  outline: 2px solid #c74a1b;
  outline-offset: 3px;
}

.dv-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 34px 16px 48px;
}
.dv-pages {
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateY(16px) scale(0.985);
  transition: transform 0.42s cubic-bezier(0.21, 0.61, 0.35, 1);
}
.dv-open .dv-pages { transform: none; }
.dv-pages img {
  display: block;
  width: 100%;
  height: auto;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5);
}

@media (max-width: 640px) {
  .dv-bar { min-height: 48px; padding: 0 10px 0 14px; }
  .dv-title { font-size: 11.5px; letter-spacing: 1.8px; }
  .dv-title::before { width: 6px; height: 6px; margin-right: 9px; }
  .dv-dl { font-size: 10px; padding: 0 11px; height: 32px; }
  .dv-x { width: 32px; height: 32px; }
  .dv-scroll { padding: 14px 10px 34px; }
  .dv-pages { gap: 12px; }
}
