.funding-banner {
  display: block;
  margin: 0 auto 1.25rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.funding-banner img {
  display: block;
  width: 280px;
  max-width: 100%;
  height: auto;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.funding-banner:hover img,
.funding-banner:focus-visible img {
  opacity: 1;
}

.funding-banner:focus-visible {
  outline: 1px solid rgba(27, 58, 75, 0.35);
  outline-offset: 4px;
}

.funding-banner-dialog[hidden] {
  display: none;
}

.funding-banner-dialog {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(27, 58, 75, 0.92);
}

body.funding-banner-open {
  overflow: hidden;
}

.funding-banner-dialog__panel {
  display: flex;
  flex-direction: column;
  width: min(92vw, 900px);
  height: min(88dvh, 900px);
  background: #fff;
  box-shadow: 0 16px 48px rgba(27, 58, 75, 0.24);
}

.funding-banner-dialog__toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(27, 58, 75, 0.08);
}

.funding-banner-dialog__title {
  margin: 0 auto 0 0;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #1b3a4b;
}

.funding-banner-dialog__open {
  font-size: 0.75rem;
  color: #c4724e;
  text-decoration: none;
  white-space: nowrap;
}

.funding-banner-dialog__open:hover {
  text-decoration: underline;
}

.funding-banner-dialog__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1b3a4b;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.funding-banner-dialog__close:hover,
.funding-banner-dialog__close:focus-visible {
  color: #c4724e;
}

.funding-banner-dialog__frame {
  flex: 1;
  width: 100%;
  border: 0;
  background: #f5f2eb;
}

@media (max-width: 640px) {
  .funding-banner-dialog {
    padding: 0.75rem;
  }

  .funding-banner-dialog__title {
    letter-spacing: 0.08em;
  }
}
