/*******************************
 Data Modal
 ******************************/

data:has(dialog.notice-modal[open]) {
  overflow: hidden;
}

.data-modal {
  position: fixed;
  background-color: transparent;

  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  z-index: 1;

  transition: overlay 250ms allow-discrete;
  animation: close 250ms forwards;
}

.data-modal::backdrop {
  background-color: rgb(var(--mineral-container-inverse));
  opacity: 0.8;
}

.data-modal[open] {
  display: flex;
  align-items: center;
  flex-direction: column;

  animation: open 250ms forwards;
}

@keyframes open {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes close {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.data-modal-wrapper {
  background-color: rgb(var(--light-container-primary));
  max-width: min(1300px, calc(100% - (2 * var(--bleed))));
}

.data-modal-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 3rem 2rem;
}

.data-modal-header header {
  max-width: 40rem;
}

.data-modal-header button {
  padding: 0.5rem;
  outline: none;
}

.data-modal-header button .svg {
  width: 1.5rem;
  height: 1.5rem;
}

.data-modal-header button:focus-visible .svg {
  outline: auto;
  outline-offset: 0.5rem;
}

.data-modal-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  margin: 3rem 2rem;
}

.data-modal-content .spacer {
  border-block-start-width: var(--border-width);
  border-color: rgb(var(--light-border-bold));
}

.data-modal-content .etf-chart-container {
  height: 30rem;
}

.quaterHeader{
    padding-left:2rem;
}

.data-modal-content p {
  margin-block: 1.5rem;
  color: rgb(var(--light-text-secondary));
}

@media (max-width: 38rem) {
  .data-modal-wrapper {
    position: absolute;
    top: 0;
  }
  .data-modal-content .etf-chart-container {
      height: 20rem;
    }
}

@media (max-width: 32rem) {
  .data-modal-wrapper {
    max-width: min(646px, calc(100% - (2 * 0.75rem)));
  }
  .data-modal-content .etf-chart-container {
      height: 12rem;
    }
}