/* Deck navigation menubar (macOS-style, full-width top bar) */

body.deck-has-menubar {
  padding-top: 34px;
}

.deck-menubar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100000;
  height: 34px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  padding: 0 12px;
  gap: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  color: #2d2d2d;
  background: rgba(245, 245, 247, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
}

.deck-menubar-left {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  flex: 0 0 auto;
  overflow: visible;
}

.deck-menubar-spacer {
  flex: 1 1 auto;
  min-width: 8px;
}

.deck-menubar-export {
  position: relative;
  flex: 0 0 auto;
}

.deck-menubar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  height: 34px;
  border: none;
  background: transparent;
  color: #2d2d2d;
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  flex: 0 0 auto;
  flex-shrink: 0;
  line-height: 1;
  box-sizing: border-box;
}

.deck-menubar-item:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #2d2d2d;
}

.deck-menubar-item:focus-visible {
  outline: 2px solid #0072ce;
  outline-offset: -2px;
}

.deck-menubar-item:disabled {
  opacity: 0.55;
  cursor: wait;
}

.deck-menubar-home {
  font-weight: 500;
}

.deck-menubar-separator {
  width: 1px;
  height: 16px;
  background: rgba(0, 0, 0, 0.15);
  margin: 0 4px;
  flex-shrink: 0;
}

.deck-menubar-logo {
  height: 17px;
  width: auto;
  flex-shrink: 0;
  display: block;
}

.deck-menubar-label {
  display: inline-block;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}

.deck-menubar-desktop-only {
  display: inline;
}

.deck-menubar-mobile-only {
  display: none;
}

.deck-export-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid #b1b3b3;
  border-radius: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.deck-export-menu.is-open {
  display: block;
}

.deck-export-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 14px;
  border: none;
  background: transparent;
  color: #2d2d2d;
  font-size: 13px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.deck-export-menu-item:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.06);
  color: #2d2d2d;
}

.deck-export-menu-item:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.deck-export-menu-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #58595b;
}

@media (max-width: 720px) {
  .deck-menubar-label,
  .deck-menubar-desktop-only {
    display: none;
  }

  .deck-menubar-mobile-only {
    display: inline;
    font-size: 15px;
    line-height: 1;
  }

  .deck-menubar-item {
    padding: 0 8px;
  }

  .deck-menubar-export-label .deck-menubar-chevron {
    display: none;
  }
}

@media print {
  .deck-menubar {
    display: none !important;
  }

  body.deck-has-menubar {
    padding-top: 0 !important;
  }

  body {
    background: #fff !important;
  }

  .deck {
    gap: 0 !important;
    padding: 0 !important;
  }

  .slide {
    page-break-after: always;
    break-after: page;
    border: none !important;
    margin: 0 !important;
  }
}
