/* Disciples Core: app/notification buttons (brand colours, bottom-right). */
.dc-app-dock {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 9990;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.dc-app-btn {
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 48px;
  min-width: 48px;
  padding: 0 13px;
  border: 1px solid #5c2327;
  border-radius: 999px;
  background: #3a161a;
  color: gold;
  font: 600 14px/1 Arial, sans-serif;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.dc-app-btn span {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  color: #fff;
  transition: max-width 0.3s ease, margin 0.3s ease;
}

.dc-app-btn:hover,
.dc-app-btn:focus-visible {
  background: #5c2327;
}

.dc-app-btn:hover span,
.dc-app-btn:focus-visible span {
  max-width: 260px;
  margin-left: 8px;
}

.dc-app-btn:focus-visible {
  outline: 2px solid gold;
  outline-offset: 3px;
}

/* Install button inside the mobile menu drawer. */
.dc-drawer-install {
  display: flex;
  align-items: center;
  gap: 10px;
  width: calc(100% - 32px);
  margin: 12px 16px 0;
  padding: 12px 14px;
  border: 1px solid #5c2327;
  border-radius: 8px;
  background: #3a161a;
  color: gold;
  font: 600 15px/1 Arial, sans-serif;
  cursor: pointer;
}

.dc-drawer-install span {
  color: #fff;
}

@media (max-width: 900px) {
  .dc-app-dock {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .dc-app-btn {
    height: 44px;
    min-width: 44px;
    padding: 0 11px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  }

  .dc-app-btn svg {
    width: 20px;
    height: 20px;
  }

  /* No hover on touch screens: keep icon-only; install lives in the menu. */
  .dc-app-btn span,
  .dc-app-btn:hover span,
  .dc-app-btn:focus-visible span {
    max-width: 0;
    margin-left: 0;
  }

  .dc-app-btn--install {
    display: none;
  }
}

@media (min-width: 901px) {
  .dc-drawer-install {
    display: none;
  }
}

.dc-notify-inline {
  padding: 0.7rem 1.2rem;
  border: 0;
  border-radius: 6px;
  background: #73001d;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

.dc-notify-inline.is-on {
  background: #1d2327;
}

.dc-app-toast {
  position: fixed;
  left: 50%;
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  z-index: 9991;
  max-width: min(92vw, 420px);
  padding: 12px 16px;
  border-radius: 8px;
  background: #1d2327;
  color: #fff;
  font: 15px/1.4 Arial, sans-serif;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.dc-app-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.mobile-menu-open .dc-app-dock {
  display: none;
}

@media print {
  .dc-app-dock,
  .dc-app-toast {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dc-app-btn,
  .dc-app-btn span,
  .dc-app-toast {
    transition: none;
  }
}
