/* External link warning — minimal overlay + dialog */
.elm-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 20, 60, 0.55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.elm-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.elm-dialog {
  width: 100%;
  max-width: 32rem;
  max-height: min(90vh, 100%);
  overflow: auto;
  padding: 1.25rem 1.35rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  color: #1a1a1a;
  font-size: 0.95rem;
  line-height: 1.5;
}

.elm-dialog h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #001e5a;
}

.elm-dialog p {
  margin: 0 0 0.65rem;
}

.elm-dialog p:last-of-type {
  margin-bottom: 1rem;
}

.elm-text-strong {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.45;
}

.elm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
  margin-top: 0.25rem;
}

.elm-btn {
  appearance: none;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 0.55rem 1.1rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.elm-btn--secondary {
  background: #fff;
  border-color: #ccc;
  color: #333;
}

.elm-btn--secondary:hover {
  background: #f5f5f5;
  border-color: #bbb;
}

.elm-btn--primary {
  background: #001e5a;
  color: #fff;
}

.elm-btn--primary:hover {
  background: #002a7a;
}

@media (max-width: 480px) {
  .elm-dialog {
    padding: 1rem 1.1rem;
    font-size: 0.9rem;
  }

  .elm-actions {
    flex-direction: column-reverse;
  }

  .elm-btn {
    width: 100%;
    text-align: center;
  }
}
