/* Generic sections */

section {
  display: flex;
  flex-direction: column;
  gap: 50px;
  padding: 80px 24px;
}

section h2 {
  font-size: 40px;
  font-weight: 500;
}

section article p + p:not(.no-margin), section article small + p:not(.no-margin) {
  margin-top: 22px;
}

section.bright {
  background: rgba(3, 199, 220, 0.15);
}

@media only screen and (min-width: 768px) {
  section {
    gap: 60px;
    padding: 140px 120px;
  }

  section h2 {
    width: 380px;
    flex-shrink: 0;
  }
}

/* Introduction */

#introduction {
  position: relative;
}

#introduction svg {
  position: absolute;
  left: 0;
  bottom: 0;
}

@media only screen and (min-width: 768px) {
  #introduction {
    flex-direction: row;
    gap: 120px;
  }
}

/* Methodology */

#methodology {
  padding: 80px 0;
}

#methodology article:first-child, #methodology > a {
  margin: 0 24px;
}

#methodology h2 {
  margin-bottom: 30px;
}

#methodology ul {
  display: flex;
  gap: 8px;
  list-style-type: none;
  overflow-x: scroll;
  text-wrap: nowrap;
  padding: 0 24px;
}

#methodology li button {
  font-size: 14px;
  padding: 12px 16px;
  border: 1px solid #FFFFFF;
  border-radius: 999px;
}

#methodology li button:disabled {
  color: #000000;
  font-weight: 600;
  background-color: #FFFFFF;
}

#methodology svg {
  display: none;
  width: calc(100% - 48px);
  margin: 60px 24px 0;
}

#methodology svg.active {
  display: block;
}

#methodology a {
  color: #000000;
  text-align: center;
  font-weight: 600;
  background-color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 6px;
}

#methodology > a {
  width: calc(100% - 48px);
}

@media only screen and (min-width: 768px) {
  #methodology {
    flex-direction: row;
    gap: 120px;
    padding: 140px 120px;
  }
  
  #methodology article:first-child {
    width: 380px;
    margin: 0;
  }

  #methodology article:first-child a {
    width: fit-content;
    margin-top: 60px;
  }

  #methodology .methodology-wrapper ul {
    justify-content: center;
    padding: 0;
  }

  #methodology .methodology-wrapper svg {
    width: 700px;
    margin: 60px auto 0;
  }
}

/* Key Findings */

#executive-summary {
  position: relative;
  overflow: hidden;
}

#executive-summary svg {
  position: absolute;
  bottom: 0;
  left: 0;
}

@media only screen and (min-width: 768px) {
  #executive-summary {
    flex-direction: row;
    gap: 120px;
  }
}

/* Key Findings */

#key-findings .details {
  background-color: rgba(3, 199, 220, 0.15);
  padding: 12px 16px;
  border-radius: 12px;
}

#key-findings .details + .details {
  margin-top: 10px;
}

#key-findings .details header {
  display: flex;
  gap: 16px;
  align-items: center;
}

#key-findings .details header .number {
  font-size: 20px;
  font-weight: 500;
}

#key-findings .details header svg {
  transition: transform 150ms ease-in-out;
  flex-shrink: 0;
}

#key-findings .details.active header svg {
  transform: rotate(180deg);
}

#key-findings .details.active .details-content {
  display: block;
  margin: 20px 0 40px;
}

#key-findings .details-content {
  display: none;
}

#key-findings .details-content img {
  margin-top: 20px;
}

#key-findings .details-content ul {
  padding-left: 20px;
  margin-top: 22px;
}

#key-findings .details-content ul + p {
  margin-top: 22px;
}

#key-findings .details-content small {
  display: block;
  font-size: 14px;
  margin-top: 8px;
}

#key-findings .details-content > * {
  width: 100%;
}

@media only screen and (min-width: 768px) {
  #key-findings .details header svg {
    margin-left: auto;
  }

  #key-findings .details.active .details-content {
    display: flex;
    gap: 40px;
  }

  #key-findings .details-content img {
    margin-top: 0;
  }

  #key-findings .details-content > * {
    width: calc(50% - 20px);
  }  
}

/* Key Actions */

#key-actions {
  padding: 0 0 80px;
}

#key-actions header {
  margin: 0 24px;
}

#key-actions header > div {
  display: flex;
  gap: 24px;
}

#key-actions header .buttons {
  display: flex;
  gap: 8px;
}

#key-actions header .buttons button:last-child svg {
  transform: rotate(180deg);
}

#key-actions h2 {
  margin-bottom: 30px;
}

#key-actions .actions-wrapper {
  display: flex;
  align-items: stretch;
  gap: 24px;
  overflow-x: scroll;
  padding: 0 24px;
}

#key-actions article {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex-shrink: 0;
  width: 241px;
  padding: 24px;
  border-radius: 6px;
}

#key-actions article div {
  font-size: 40px;
}

#key-actions article p {
  font-size: 24px;
  font-weight: 500;
}

#key-actions article.green {
  background: radial-gradient(143.79% 139.74% at 103.02% -9.85%, #BEC705 0%, #157201 100%);
}

#key-actions article.red {
  background: radial-gradient(143.79% 139.74% at 103.02% -9.85%, #FF4500 0%, #A00000 100%);
}

#key-actions article.blue {
  background: radial-gradient(138.86% 145.9% at 103.02% -9.85%, #03C6DB 0%, #054BC4 100%), rgba(3, 199, 220, 0.25);
}

#key-actions article.pink {
  background: radial-gradient(128.46% 134.67% at 103.02% -9.85%, #F783F7 0%, #D40580 100%), rgba(3, 199, 220, 0.25);
}

@media only screen and (min-width: 768px) {
  #key-actions {
    padding-bottom: 120px;
  }

  #key-actions header {
    margin: 0 120px;
  }

  #key-actions .actions-wrapper {
    padding: 0 120px;
  }

  #key-actions article {
    width: 350px;
    padding: 24px 40px;
  }

  #key-actions article p {
    font-size: 36px;
  }
}

/* Conclusion and Key Takeaways */

#conclusion-and-key-takeaways {
  gap: 30px;
}

#conclusion-and-key-takeaways article ul {
  list-style-type: none;
}

#conclusion-and-key-takeaways article p:not(:first-child), #conclusion-and-key-takeaways article li {
  margin-top: 22px;
}

@media only screen and (min-width: 768px) {
  #conclusion-and-key-takeaways {
    position: relative;
    flex-direction: row;
    gap: 120px;
  }

  #conclusion-and-key-takeaways header {
    gap: 60px;
  }

  #conclusion-and-key-takeaways a {
    color: #000000;
    font-size: 14px;
    font-weight: 600;
    background-color: #FFFFFF;
    width: fit-content;
    padding: 12px 24px;
    border-radius: 6px;
    margin-top: 60px;
  }

  #conclusion-and-key-takeaways article ul {
    list-style-type: disc;
    padding-left: 20px;
  }

  #conclusion-and-key-takeaways svg {
    position: absolute;
    left: 0;
    bottom: 0;
  }
}

/* Meet the Authors */

#meet-the-authors img {
  width: 155px;
  height: 155px;
  margin-bottom: 16px;
}

#meet-the-authors h3 {
  font-size: 18px;
  font-weight: 500;
}

#meet-the-authors p {
  margin-top: 30px;
}

#meet-the-authors ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style-type: none;
}

#meet-the-authors li {
  width: 155px;
}

#meet-the-authors .author-content {
  text-align: center;
}

#meet-the-authors .author-content p {
  margin-top: 8px;
}

@media only screen and (min-width: 768px) {
  #meet-the-authors ul {
    flex-wrap: wrap;
    gap: 40px;
  }

  #meet-the-authors ul li {
    width: 240px;
  }

  #meet-the-authors img {
    width: 240px;
    height: 240px;
    margin-bottom: 24px;
  }
}

/* Related reports */

#related-reports {
  gap: 60px;
  padding: 0 0 80px;
}

#related-reports header {
  padding: 0 24px;
}

#related-reports p {
  margin-top: 30px;
}

#related-reports .cards {
  display: flex;
  gap: 24px;
  overflow-x: scroll;
  padding: 0 24px;
}

#related-reports article {
  flex-shrink: 0;
  background: rgba(3, 199, 220, 0.15);
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.04);
  width: 241px;
  border-radius: 12px;
  overflow: hidden;
}

#related-reports article h3 {
  font-size: 18px;
  width: 80%;
}

#related-reports article img {
  height: 140px;
}

#related-reports article .card-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}

@media only screen and (min-width: 768px) {
  #related-reports {
    gap: 50px;
    padding: 0 120px 120px;
  }

  #related-reports header,
  #related-reports .cards {
    padding: 0;
  }

  #related-reports p {
    margin-top: 24px;
  }

  #related-reports article {
    width: 384px;
  }

  #related-reports article h3 {
    font-size: 24px;
  }

  #related-reports article img {
    width: 100%;
    height: 180px;
  }
}

/* Footer */

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
  padding: 40px 24px;
}

footer .socials-wrapper {
  display: flex;
  gap: 24px;
}

footer small {
  font-size: 14px;
}

@media only screen and (min-width: 768px) {
  footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    padding: 40px 120px;
  }
}