/* "From chaos to clarity" page, styled like the Moodly page.
   Layout and patterns come from the shared .redesign-v2 styles; this file only adds the few
   things Moodly's base styles don't have for this page: quote cards, image pairs, info cards and bullet lists. Colors and sizes are Moodly's. */

/* ---- Numbered lists: the number sits at the top of the row, text can run to several lines ---- */
.chaos-v2 .edit-list__item {
  align-items: start;
  padding: 1.75rem 0;
}

.chaos-v2 .edit-list__num {
  line-height: 1.1;
}

.chaos-v2 .edit-list__title {
  margin: 0 0 0.5rem;
  line-height: 130%;
}

.chaos-v2 .edit-list__text + .edit-list__text {
  margin-top: 0.75rem;
}

/* ---- Quotes: the soft blue card of Moodly's cards ---- */
.chaos-v2 .quote-card {
  margin: 1.25rem 0 0.25rem;
  padding: 1.25rem 1.5rem;
  border: 0;
  border-radius: 1rem;
  background-color: #b2caff66;
  font-family: Poppins, sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 160%;
  color: var(--black);
}

.chaos-v2 .quote-card p {
  margin: 0;
  font: inherit;
  letter-spacing: normal;
  color: inherit;
}

.chaos-v2 .quote-card p + p {
  margin-top: 0.75rem;
}

/* ---- Screenshots and photos sit directly on the page (no beige card); two images sit side by side ---- */
.chaos-v2 .flow-card {
  margin: 0.5rem 0 1rem;
  padding: 0;
  background-color: transparent;
  border: 0;
}

.chaos-v2 .flow-card .caption-small {
  margin-top: 0.75rem;
}

.chaos-v2 .flow-card__img {
  border: 0;
  border-radius: 0.5rem;
}

.chaos-v2 .flow-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.chaos-v2 .flow-pair .flow-card__img {
  width: 100%;
}

@media screen and (max-width: 47.9375em) {
  .chaos-v2 .flow-pair {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- Info cards: the beige card of Moodly's reaction cards ---- */
.chaos-v2 .info-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0.5rem 0 0;
}

.chaos-v2 .info-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 1.5rem 1.75rem;
  border-radius: 1rem;
  background-color: #f1eee8;
}

.chaos-v2 .info-card__title {
  margin: 0;
  font-family: Poppins, sans-serif;
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 130%;
  color: var(--black);
}

.chaos-v2 .info-card__text {
  font-family: Poppins, sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 150%;
  color: #3d3d3d;
}

@media screen and (max-width: 47.9375em) {
  .chaos-v2 .info-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- Bullet lists with a blue dot ---- */
.chaos-v2 .bullet-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-family: Poppins, sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 150%;
  color: #3d3d3d;
}

.chaos-v2 .bullet-list li {
  position: relative;
  margin: 0;
  padding-left: 1.25rem;
}

.chaos-v2 .bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(0.75em - 0.25rem);
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: #3f5a9e;
}

/* lists in running text: same size and color as body text */
.chaos-v2 .bullet-list--body {
  font-size: 1.0625rem;
  line-height: 160%;
  color: var(--black);
  max-width: 88ch;
}

.chaos-v2 .bullet-list--body li::before {
  top: calc(0.8em - 0.25rem);
}

.chaos-v2 .paragraph-block > .bullet-list--body {
  margin-top: 0.25rem;
}

/* ---- Text sizes: the same as Moodly (its sizes are 1px up from the shared base) ---- */
.chaos-v2 .project-page .paragraph > .h2,
.chaos-v2 .project-page .project-summary1 .h2 { font-size: 1.6875rem; }
.chaos-v2 .project-page .h4.bold.section-heading { font-size: 1.4375rem; }
.chaos-v2 .project-page .edit-list__title { font-size: 1.1875rem; }
.chaos-v2 .project-page .summary-row__value,
.chaos-v2 .project-page .edit-list__text { font-size: 1rem; }
.chaos-v2 .project-page .summary-row__label { font-size: 0.875rem; }
.chaos-v2 .project-page .caption-small { font-size: 0.9375rem; }

/* text that follows an image gets more room above it */
.chaos-v2 .flow-card + .paragraph-text,
.chaos-v2 .paragraph-block > .info-cards {
  margin-top: 1.5rem;
}

/* lists whose items already start with their own number ("1. The page title ...") have no dot */
.chaos-v2 .bullet-list--plain li {
  padding-left: 0;
}

.chaos-v2 .bullet-list--plain li::before {
  display: none;
}
