/* modal-fix.css — Minimal Bootstrap-like modal styles
   These were originally provided by Bootstrap 3 CSS which was lost
   during the Wayback Machine scrape. Only the subset needed by new.js. */

.modal-dialog {
  position: relative;
}

.modal-content {
  position: relative;
  background-color: #fff;
}

.modal-header {
  position: relative;
  padding: 10px 15px;
  border-bottom: 1px solid #e5e5e5;
  min-height: 16.43px;
  
}

.modal-header small {
  font-family: MuseoSans-300, sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #666;
}

.modal-header .close {
  position: absolute;
  right: 10px;
  top: 8px;
  background: none;
  border: none;
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #333;
  opacity: 0.6;
  cursor: pointer;
  padding: 0 5px;
  z-index: 1;
  text-indent: 0 !important;
  overflow: visible;
}

.modal-header .close:hover {
  opacity: 1;
}

/* modal-scroll: fit inside the modal instead of using a fixed height */
.standards-modal .modal-scroll {
  position: relative;
  top: auto;
  bottom: auto;
  max-height: calc(100vh - 350px);
  overflow-y: auto;
}

/* Disable the fixed share/favorite bar at the bottom on mobile.
   global.js moves #meta-share into #mobile-share-wrapper on small screens,
   but our custom SVG share/favorite buttons work better inline.
   We hide the wrapper AND force meta-share to display normally even
   when it gets moved there by jQuery. */
#mobile-share-wrapper {
  position: static !important;
  box-shadow: none !important;
  background: transparent !important;
  overflow: visible !important;
  width: auto !important;
}

/* Undo the fixed-bar sizing from responsive.css when inside the wrapper */
#mobile-share-wrapper #meta-share > li {
  width: auto !important;
  height: auto !important;
  border: none !important;
  float: none !important;
}

#mobile-share-wrapper #meta-share > li:first-child {
  width: auto !important;
}

#mobile-share-wrapper #meta-share > li::before {
  display: none !important;
}

/* Kill the "Like what you see? Sign up" email popup triggered by new.js */
.signup-modal,
.signup-modal .modal-backdrop,
.modal-backdrop {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
