/* The library directory only; individual decision guides retain their styling. */
.rws-library-index {
  --index-gold: #4a2a66;
  --index-muted: #516259;
  --index-line: #dcdedc;
  color: #17352c;
  background: #f5f2ec;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

.rws-index-wrap {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.rws-library-index h1,
.rws-library-index h2,
.rws-library-index h3,
.rws-library-index p {
  margin: 0;
}

.rws-library-index h1,
.rws-library-index h2 {
  color: #17352c;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 1.04;
}

.rws-library-index h1 {
  max-width: 850px;
  font-size: clamp(40px, 5.4vw, 70px);
}

.rws-library-index h2 {
  font-size: clamp(32px, 3.4vw, 44px);
}

.rws-library-index a {
  text-underline-offset: 4px;
}

.rws-library-index a:focus-visible {
  outline: 3px solid #4a2a66;
  outline-offset: 5px;
}

.rws-index-eyebrow {
  color: #4a2a66;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.rws-index-intro {
  padding: 50px 0 35px;
}

.rws-index-intro h1 {
  margin: 13px 0 18px;
}

.rws-index-intro .rws-index-lede {
  max-width: 740px;
  color: var(--index-muted);
  font-size: 20px;
}

.rws-index-intro .rws-index-byline {
  margin-top: 20px;
  color: var(--index-muted);
  font-size: 14px;
}

.rws-index-byline a {
  color: inherit;
}

.rws-index-group {
  padding: 27px 0 32px;
  border-top: 1px solid var(--index-line);
}

.rws-index-group__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.rws-index-group__heading h2 {
  max-width: 650px;
}

.rws-index-group__heading p {
  color: var(--index-muted);
  font-size: 15px;
}

.rws-index-guides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rws-index-guides li {
  min-width: 0;
  border-bottom: 1px solid var(--index-line);
}

.rws-index-guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-content: start;
  gap: 8px;
  height: 100%;
  padding: 24px 0;
  color: #17352c;
  text-decoration: none;
}

.rws-index-guide h3 {
  font-size: 23px;
  font-weight: 550;
  letter-spacing: -0.3px;
  line-height: 1.24;
}

.rws-index-guide p {
  max-width: 445px;
  margin-top: 10px;
  color: var(--index-muted);
  font-size: 16px;
}

.rws-index-guide__read {
  display: block;
  margin-top: 15px;
  color: #17352c;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.rws-index-guide__arrow {
  color: var(--index-gold);
  font-size: 24px;
  line-height: 1.2;
}

.rws-index-guide:hover {
  color: #17352c;
}

.rws-index-guide:hover h3 {
  color: #4a2a66;
}

.rws-index-next {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 50px;
  margin: 34px auto 36px;
  padding: 42px;
  border-radius: 6px;
  color: #fff;
  background: #17352c;
}

.rws-index-next .rws-index-eyebrow {
  color: #d8bf93;
}

.rws-index-next h2 {
  margin: 12px 0 16px;
  color: #fff;
}

.rws-index-next p {
  max-width: 530px;
  color: #d0d6cc;
  font-size: 17px;
}

.rws-index-next__call {
  padding-left: 35px;
  border-left: 1px solid #ffffff30;
}

.rws-index-next__call h3 {
  margin-bottom: 12px;
  color: #fff;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
}

.rws-index-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 22px;
  padding: 12px 20px;
  border-radius: 5px;
  color: #17352c;
  background: #f5f2ec;
  font-weight: 550;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.rws-index-button:hover {
  color: #17352c;
  background: #e7dcc5;
}

.rws-index-next .rws-index-next__detail {
  margin-top: 12px;
  color: #d0d6cc;
  font-size: 14px;
}

.rws-index-next__link {
  display: inline-block;
  margin-top: 20px;
  color: #fff;
  font-size: 16px;
}

.rws-index-next__link:hover {
  color: #e7dcc5;
}

.rws-index-next a:focus-visible {
  outline-color: #e7dcc5;
}

.rws-library-index .rws-index-note {
  max-width: 800px;
  padding-bottom: 36px;
  color: var(--index-muted);
  font-size: 15px;
}

@media (max-width: 700px) {
  .rws-index-wrap {
    width: calc(100% - 40px);
  }

  .rws-index-intro {
    padding: 28px 0 26px;
  }

  .rws-index-intro h1 {
    margin: 10px 0 15px;
  }

  .rws-index-intro .rws-index-lede {
    font-size: 18px;
    line-height: 1.45;
  }

  .rws-index-intro .rws-index-byline {
    margin-top: 15px;
    font-size: 12px;
  }

  .rws-index-group {
    padding-top: 22px;
  }

  .rws-index-group__heading {
    display: block;
  }

  .rws-index-group__heading p {
    margin-top: 8px;
  }

  .rws-index-guides {
    grid-template-columns: minmax(0, 1fr);
  }

  .rws-index-guide {
    padding: 21px 0;
  }

  .rws-index-guide h3 {
    font-size: 22px;
  }

  .rws-index-next {
    display: block;
    margin-top: 14px;
    margin-bottom: 30px;
    padding: 26px;
  }

  .rws-index-next__call {
    margin-top: 25px;
    padding: 24px 0 0;
    border-top: 1px solid #ffffff30;
    border-left: 0;
  }

  .rws-index-next h2 {
    font-size: 34px;
  }
}
