@import url(/css/components/timeframe-toggle.css);
/*******************************
 Hero
 ******************************/

.hero {
  display: flex;
  margin: 0 auto;
  padding-inline: var(--bleed);
  min-width: calc(var(--min-width) + 1.5rem);
  max-width: var(--max-width);
}

.hero-child {
  flex: 1;
  padding: 2rem 2rem 0 2rem;
  border-color: rgb(var(--light-border-bold));
}

.hero-child-left {
  border-block-start-width: var(--border-width);
  border-inline-width: var(--border-width);
}

.hero-child-right {
  color: rgb(var(--light-text-inverse));
  background-color: rgb(var(--light-container-bold));
  border-inline-end-width: var(--border-width);
}

.yield-boost-rate-wrapper {
  align-items: center;
  gap: 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
}

.yield-boost-distribution-rate {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: rgb(var(--light-text-primary));
  background-color: rgb(var(--light-common-citrine));
  padding: var(--spacers__3);
  border-radius: var(--border-radius);
}

.yield-boost-sec-yield {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: rgb(var(--light-text-primary));
  background-color: rgb(var(--light-common-amethyst));
  padding: var(--spacers__3);
  border-radius: var(--border-radius);
}

@media (max-width: 61rem) {
  .hero {
    flex-direction: column;
    padding-inline: 0;
  }

  .hero-child-left {
    margin-inline: var(--bleed);
  }

  .hero-child-right {
    padding-inline: calc(var(--bleed) + 2rem);
  }
}

@media (max-width: 32rem) {
  .hero-child-left {
    margin-inline: 0.75rem;
  }

  .hero-child-right {
    padding-inline: 2.75rem;
  }
  
  .yield-boost-rate-wrapper {
    grid-template-columns: 1fr;
  }
}

/*******************************
 ETF Block
 ******************************/

.etf-logo-title {
  display: flex;
  color: rgb(var(--light-text-link-default));
  align-items: center;
  gap: 1rem;
  margin-block: 2rem;
}

.etf-title {
  margin-block: 2rem;
}

.etf-section-title {
  margin-block: 2rem 0.5rem;
}

.etf-section-title a {
  font-weight: 600;
  text-decoration: underline;
}

.etf-section-title a:hover {
  text-decoration-style: dotted;
}

.etf-section-title a:active {
  text-decoration-style: wavy;
}

.etf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-block: 2rem;
}

.etf-actions button {
  white-space: nowrap;
}

@media (max-width: 69rem) {
  .etf-actions {
    justify-content: center;
  }

  .etf-actions button:first-of-type {
    width: 100%;
  }
}

@media (max-width: 61rem) {
  .etf-actions {
    justify-content: initial;
  }

  .etf-actions button:first-of-type {
    width: initial;
  }
}

@media (max-width: 38rem) {
  .etf-actions {
    justify-content: center;
  }

  .etf-actions button:first-of-type {
    width: 100%;
  }
}

/*******************************
 ETF Summary Block
 ******************************/

.etf-summary-title {
  margin-block: 2rem;
}

.etf-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 0;
  border-block-end-width: 1px;
  border-color: rgb(var(--light-border-default));
  filter: brightness(0) invert(1);
}

.etf-summary-row a {
  color: rgb(var(--light-text-inverse));
  text-decoration: underline;
}

.etf-summary-row span:last-of-type {
  text-align: right;
}

.etf-summary-row .product-card-top-logo {
  margin-block: -0.5rem;
}

.etf-summary-footer {
  text-align: center;
  margin-block: 2rem;
}

/*******************************
 Scroll To Top
 ******************************/

.etf-scroll-to-top {
  color: rgb(var(--light-text-inverse));
  background-color: rgb(var(--light-container-bold));
  position: sticky;
  top: 0;
  z-index: 1;
}

.etf-scroll-to-top .inner-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

.etf-scroll-to-top .inner-wrapper span {
  padding: 0.3rem 2rem;
}

.etf-scroll-to-top a {
  color: rgb(var(--light-text-inverse));
  text-decoration: underline;
}

.etf-scroll-to-top a:hover {
  text-decoration-style: dotted;
}

.etf-scroll-to-top a:active {
  text-decoration-style: wavy;
}

.etf-scroll-to-top--cover {
  position: relative;
  background-color: rgb(var(--light-container-primary));
  /*
     Safari Hack
     Should be -2rem, but this prevents a rendering bug in Safari
     Works fine in all other tested browsers
  */
  top: -1.997rem;
  margin-bottom: -2rem;
}

.etf-scroll-to-top--cover .inner-wrapper {
  display: flex;
}

.etf-scroll-to-top--cover span {
  flex: 1;
}

.etf-scroll-to-top--cover .inner-wrapper span:first-of-type {
  border-inline-end-width: var(--border-width);
  border-color: rgb(var(--light-border-bold));
}

.etf-scroll-to-top--cover .inner-wrapper span:last-of-type {
  background-color: rgb(var(--light-container-bold));
}

@media (max-width: 61rem) {
  .etf-scroll-to-top--cover {
    background-color: rgb(var(--light-container-bold));
  }
}

@media (max-width: 32rem) {
  .etf-scroll-to-top .inner-wrapper span {
    padding-inline: 1.5rem;
  }
}

/*******************************
 ETF Callouts
 ******************************/

.etf-callouts .inner-wrapper {
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background-color: rgb(var(--light-container-bold));
  gap: var(--border-width);
  border-block-width: var(--border-width);
}

.etf-callouts .inner-wrapper.body-col-3 {
    grid-template-columns: repeat(3, 1fr);
}

.etf-callouts .inner-wrapper.body-col-2 {
    grid-template-columns: 1fr 1fr;
}

.etf-callout-card {
  color: rgb(var(--mineral-text-primary));
  background-color: rgb(var(--mineral-container-primary));
}

.etf-callout-card {
  padding: 1rem 2rem;
}

.etf-callout-card p {
  margin-block: 1rem;
}

.etf-callout-card p.TitleXSmall {
  font-weight: 500;
}

.etf-callout-card p .svg {
  width: 2rem;
  height: 2rem;
}

@media (max-width: 61rem) {
  .etf-callouts.outer {
    background-color: rgb(var(--mineral-container-primary));
  }

  .etf-callouts .inner-wrapper {
    border-block-start: none;
    grid-template-columns: repeat(2, 1fr);
  }
  .etf-callouts .inner-wrapper.body-col-3{
      grid-template-columns: 1fr;
  }
}

@media (max-width: 46rem) {
  .etf-callouts .inner-wrapper {
    border-block: none;
  }
}

@media (max-width: 37rem) {
  .etf-callouts .inner-wrapper
  , .etf-callouts .inner-wrapper.body-col-3 
  , .etf-callouts .inner-wrapper.body-col-2{
      grid-template-columns: 1fr;
  }
}

/*******************************
 Investor Update
 ******************************/

.investor-update .inner-wrapper {
  padding-block-start: 4rem;
}

.investor-update-banner {
  color: rgb(var(--light-text-inverse));
  background-color: rgb(var(--light-container-bold));
  border-radius: var(--border-radius);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.investor-update-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.investor-update-left .svg {
  width: 1.5rem;
  height: 1.5rem;
}

.investor-update-title {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.investor-update-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

a.investor-update-right.text-link {
  color: rgb(var(--light-text-inverse));
  text-decoration: none;
  padding-inline-end: 1rem;
}

.investor-update-right .svg {
  width: 1.5rem;
  height: 1.5rem;
}

.investor-update-right-text {
  display: initial;
}

.investor-update-right-text--mobile {
  display: none;
  font-size: 1.125rem;
}

.investor-update-spacer .inner-wrapper {
  padding-block: 1rem;
}

@media (max-width: 46rem) {
  .investor-update.outer {
    background-color: rgb(var(--light-container-bold));
  }

  .investor-update .inner-wrapper {
    padding: 0;
    padding-block-start: 2rem;
  }

  a.investor-update-right.text-link {
    padding-inline-end: 0;
  }
}

@media (max-width: 32rem) {
  .investor-update-banner {
    flex-direction: column;
    gap: 1rem;
  }

  .investor-update-title-text {
    display: none;
  }

  .investor-update-right-text {
    display: none;
  }

  .investor-update-right-text--mobile {
    display: initial;
  }
}

/*******************************
 ETF Chart
 ******************************/

.etf-chart-title {
  margin-block-end: 1rem;
}

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

.etf-chart-details-list {
  margin-block-start: 4rem;
  padding-block-end: 6rem;
  border-block-start-width: 1px;
  border-color: rgb(var(--light-border-bold));
}

.etf-chart-details {
  padding-block: 1rem;
  border-block-end-width: 1px;
  border-color: rgb(var(--light-border-bold));
}

.etf-chart-details summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.etf-chart-details summary::marker {
  content: "";
}

.etf-chart-details summary::-webkit-details-marker {
  display: none;
}

.etf-chart-details_cta {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.etf-chart-details_cta .svg {
  width: 1.5rem;
  height: 1.5rem;
}

.etf-chart-details .etf-chart-details_cta .svg {
  transform-origin: center;
  transform: rotate(0deg);

  transition: transform 250ms ease-in-out;
}

.etf-chart-details:open .etf-chart-details_cta .svg {
  transform: rotate(90deg);
}

.etf-chart-details .etf-chart-details_cta span:first-of-type::before {
  content: "View More";
}

.etf-chart-details:open .etf-chart-details_cta span:first-of-type::before {
  content: "View Less";
}

.etf-chart-details_content {
  margin-block: 2rem 4rem;
}

.etf-chart-details_content_table--wrapper {
  position: relative;
}

.etf-chart-details_content_table--container {
  overflow-x: auto;
}

.etf-chart-details_content_table--fade {
  display: none;
  position: absolute;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgb(0 0 0 / 0) calc(100% - 1rem),
    rgb(var(--light-border-bold) / 0.3) 100%
  );
  inset: 0;
  z-index: 1;
}

.etf-chart-details_content_footer p {
  margin-block: 1rem;
}

.etf-chart-details_content_cta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-block: 2rem;
}

.etf-chart-details_content_cta .link {
    color: rgb(var(--light-text-link-default));
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.etf-chart-details_content_performance-table {
  display: grid;
  grid-template-columns: 1fr repeat(6, auto);

  /* Grid pseudo-borders */
  row-gap: 1px;
  border-block-end-width: 1px;
  border-color: rgb(var(--light-border-bold));
  background-color: rgb(var(--light-border-bold));
}

.etf-chart-details_content_performance-table {
  min-width: 55rem;
}

.etf-chart-details_content_performance-table > span {
  background-color: rgb(var(--light-container-primary));
  padding-block: 1rem;
  padding-inline: 1rem;
}

.etf-chart-details_content_performance-table > span:nth-child(7n-6),
.etf-chart-details_content_performance-table > span:nth-child(7n + 7) {
  padding-inline: 0;
}

.etf-chart-details_content_performance-table > span:nth-child(n + 1):nth-child(-n + 7) {
  font-weight: 600;
}

.etf-chart-details_content_portfolio-tables {
  display: flex;
  width: 100%;
}

.etf-chart-details_content_portfolio-tables a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-block: 2rem;
}

.etf-chart-details_content_portfolio-tables > div {
  flex: 1;
}

.etf-chart-details_content_portfolio-tables > div:first-child {
  border-inline-end-width: 1px;
  border-color: rgb(var(--light-border-bold));
  padding-inline-end: 2rem;
  margin-inline-end: 2rem;
}

.etf-chart-details_content_portfolio-tables_title {
  margin-block-end: 0.5rem;
}

.etf-chart-details_content_portfolio-tables_bars {
  display: flex;
  gap: 4px;
  margin-block-start: 1.5rem;
}

.etf-chart-details_content_portfolio-tables_bars > div {
  width: var(--chart-bar-width);
  height: 2.5rem;
}

.etf-chart-details_content_fund-allocation-table {
  display: grid;
  grid-template-columns: auto auto;
  margin-block: 0.5rem 1.5rem;

  /* Grid pseudo-borders */
  row-gap: 1px;
  border-block-end-width: 1px;
  border-color: rgb(var(--light-border-bold));
  background-color: rgb(var(--light-border-bold));
}

.etf-chart-details_content_fund-allocation-table > span {
  background-color: rgb(var(--light-container-primary));
  padding-block: 1rem;
}

.etf-chart-details_content_fund-allocation-table > span:nth-child(1),
.etf-chart-details_content_fund-allocation-table > span:nth-child(2) {
  font-weight: 600;
}

.etf-chart-details_content_fund-allocation-table > span:nth-child(2n + 2) {
    text-align: right;
}

.etf-chart-details_content_fund-allocation-table.table-3-col > span:nth-child(2n + 2){
    text-align: left;
}

.etf-chart-details_content_fund-allocation-table.table-3-col > span:nth-child(3n + 2),
.etf-chart-details_content_fund-allocation-table.table-3-col > span:nth-child(3n + 3){
    text-align: right !important;
    display: block;
}

.etf-chart-details_content_fund-yield-table {
  display: grid;
  grid-template-columns: auto 1fr;
  margin-block: 1rem 3rem;

  /* Grid pseudo-borders */
  row-gap: 1px;
  border-block-width: 1px;
  border-color: rgb(var(--light-border-bold));
  background-color: rgb(var(--light-border-bold));
}

.etf-chart-details_content_fund-yield-table > span {
  background-color: rgb(var(--light-container-primary));
  padding-block: 1rem;
}

.etf-chart-details_content_fund-yield-table > span:nth-child(2n + 1) {
  padding-inline-end: 3rem;
  line-height: 1.5rem;
  font-weight: 600;
}

.etf-chart-details_content_distribution-calendar-table {
  display: grid;
  grid-template-columns: repeat(8, auto);

  /* Grid pseudo-borders */
  row-gap: 1px;
  border-block-end-width: 1px;
  border-color: rgb(var(--light-border-bold));
  background-color: rgb(var(--light-border-bold));
}

.etf-chart-details_content_exchange-table {
  display: grid;
  grid-template-columns: repeat(6, auto);

  /* Grid pseudo-borders */
  row-gap: 1px;
  border-block-end-width: 1px;
  border-color: rgb(var(--light-border-bold));
  background-color: rgb(var(--light-border-bold));
}

.etf-chart-index-table {
  display: grid;
  grid-template-columns: repeat(2, auto);

  /* Grid pseudo-borders */
  row-gap: 1px;
  border-block-end-width: 1px;
  border-color: rgb(var(--light-border-bold));
  background-color: rgb(var(--light-border-bold));
}

.etf-chart-details_content_distribution-calendar-table, 
.etf-chart-details_content_exchange-table, 
.etf-chart-index-table {
  min-width: 52rem;
}

.etf-chart-details_content_distribution-calendar-table > span, 
.etf-chart-details_content_exchange-table > span,
.etf-chart-index-table > span{
  background-color: rgb(var(--light-container-primary));
  padding-block: 1rem;
  padding-inline: auto;
} 

.etf-chart-details_content_exchange-table > span:nth-child(6n-5),
.etf-chart-details_content_exchange-table > span:nth-child(6n + 6) {
  padding-inline: 0;
}

.etf-chart-details_content_distribution-calendar-table > span:nth-child(7n-6),
.etf-chart-details_content_distribution-calendar-table > span:nth-child(7n + 7) {
  padding-inline: 0;
}

.etf-chart-details_content_exchange-table > span:nth-child(n + 1):nth-child(-n + 6) {
  font-weight: 600;
}

.etf-chart-details_content_distribution-calendar-table > span:nth-child(n + 1):nth-child(-n + 8) {
  font-weight: 600;
}

.etf-chart-details_content_documents-table {
  display: grid;
  grid-template-columns: 1fr auto auto;

  /* Grid pseudo-borders */
  row-gap: 1px;
  border-block-end-width: 1px;
  border-color: rgb(var(--light-border-bold));
  background-color: rgb(var(--light-border-bold));
}

.etf-chart-details_content_documents-table > span,
.etf-chart-details_content_documents-table > a {
  background-color: rgb(var(--light-container-primary));
  padding-block: 1rem;
}

.etf-chart-details_content_documents-table > span:nth-child(3n + 1) {
  padding-inline-end: 1rem;
}

.etf-chart-details_content_documents-table > span:nth-child(n + 1):nth-child(-n + 2) {
  font-weight: 600;
}

@media (max-width: 65rem) {
  .etf-chart-details:nth-of-type(1) .etf-chart-details_content_table--fade {
    display: block;
  }
}

@media (max-width: 62rem) {
  .etf-chart-details:nth-of-type(3) .etf-chart-details_content_table--fade {
    display: block;
  }
}

@media (max-width: 57rem) {
  .etf-chart-details_content_portfolio-tables {
    flex-direction: column;
  }

  .etf-chart-details_content_portfolio-tables > div:first-child {
    border: none;
    padding: 0;
    margin: 0;
    margin-block-end: 3rem;
  }
}

@media (max-width: 49rem) {
  .etf-chart-details_content_cta {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 27rem) {
  .etf-chart-details summary span {
    font-size: 1rem;
  }
}

/*******************************
 Similar Investments
 ******************************/

.similar-investments .inner-wrapper {
  padding: 0;
  padding-block-end: 3rem;
}

.similar-investments-title-wrapper {
  border-block-start-width: var(--border-width);
  border-color: rgb(var(--light-border-bold));
  display: flex;
  justify-content: center;
  margin-block-end: 1rem;
}

.similar-investments-title {
  margin-block-start: -1.6rem;
  padding: 1rem;
  white-space: nowrap;
  text-transform: uppercase;
  background-color: rgb(var(--light-container-primary));
}

.similar-investments-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);

  /* Grid pseudo-borders */
  gap: var(--border-width);
  border-block-width: var(--border-width);
  border-color: rgb(var(--light-border-bold));
  background-color: rgb(var(--light-border-bold));
}

@media (max-width: 76rem) {
  .similar-investments-products {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 41rem) {
  .similar-investments-products {
    grid-template-columns: 1fr;
  }
}


.etf-summary-row-v2 {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 1rem 0;
    border-block-end-width: 1px;
    border-color: rgb(var(--light-border-default));
}

/*
 * DOM element rendering detection
 * https://davidwalsh.name/detect-node-insertion
 */
@keyframes chartjs-render-animation {
	from { opacity: 0.99; }
	to { opacity: 1; }
}

.chartjs-render-monitor {
	animation: chartjs-render-animation 0.001s;
}

/*
 * DOM element resizing detection
 * https://github.com/marcj/css-element-queries
 */
.chartjs-size-monitor,
.chartjs-size-monitor-expand,
.chartjs-size-monitor-shrink {
	position: absolute;
	direction: ltr;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	overflow: hidden;
	pointer-events: none;
	visibility: hidden;
	z-index: -1;
}

.chartjs-size-monitor-expand > div {
	position: absolute;
	width: 1000000px;
	height: 1000000px;
	left: 0;
	top: 0;
}

.chartjs-size-monitor-shrink > div {
	position: absolute;
	width: 200%;
	height: 200%;
	left: 0;
	top: 0;
}

.table-3-col{
    grid-template-columns: 1fr repeat(2, auto);
}

.table-3-col > span:nth-child(n+1),
.table-3-col > span:nth-child(n+2) {
  padding-inline: 0;
}

.table-3-col > span:nth-child(n + 1):nth-child(-n + 3) {
  font-weight: 600;
}
.body-icon{
    display: inline;
    margin-right: 0.5rem;
}

.select-etf-products select {
  appearance: none;
  background-color: transparent;
  border: none;
  padding: 0 1em 0 0;
  margin: 0;
  width: 100%;
  height: 100%;
  font-family: inherit;
  font-size: inherit;
  cursor: inherit;
  line-height: inherit;
}

.select-etf-products {
  width: 100%;
  min-width: 15ch;
  max-width: 30ch;
  border-radius: var(--border-radius);
  border: 1px solid rgb(var(--light-border-default));
  padding: 0.25em 1em;
  cursor: pointer;
  line-height: 1.1;
  display: grid;
  grid-template-areas: "select";
  align-items: center;
}

.select-etf-products::after {
  content: "";
  width: 0.8em;
  height: 0.5em;
  background-color: rgb(var(--light-text-primary));
  clip-path: polygon(100% 0%, 0 0%, 50% 100%);
  justify-self: end;
}

.select-etf-products select,
.select-etf-products::after {
  grid-area: select;
}

/* ------------------------
New Holdings Design Changes 
------------------------ */
.dynamic-chart-table{
    grid-template-columns: auto repeat(3, auto);
}

.etf-chart-details_content_fund-allocation-table > span.security-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.etf-chart-details_content_fund-allocation-table > span.security-name > span:first-of-type {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
}

.etf-chart-details_content_fund-allocation-table.dynamic-chart-table > span:nth-child(3),
.etf-chart-details_content_fund-allocation-table.dynamic-chart-table > span:nth-child(4) {
  font-weight: 600;
}

@media (max-width: 32rem) {
  .dynamic-chart-table{
        grid-template-columns: auto auto;
    }
}

