/* EYFL Rules & Resources document library */

.eyfl-rule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.eyfl-rule-card {
  position: relative;
  display: flex;
  min-height: 270px;
  flex-direction: column;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(8, 23, 32, .13);
  background: #fff;
  box-shadow: 0 12px 34px rgba(8, 23, 32, .07);
}

.eyfl-rule-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #49c6e4, #c8489a);
}

.eyfl-rule-card.is-archived {
  background: #f7f8f9;
  opacity: .88;
}

.eyfl-rule-card__top {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
}

.eyfl-rule-card__pdf,
.eyfl-rule-card__category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 0 8px;
  font-family: "Barlow", sans-serif;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.eyfl-rule-card__pdf {
  color: #fff;
  background: #11151b;
}

.eyfl-rule-card__category {
  color: #1688aa;
  border: 1px solid rgba(73, 198, 228, .32);
  background: rgba(73, 198, 228, .08);
}

.eyfl-rule-card h3 {
  margin: 0;
  color: #080a0d;
  font-family: "Teko", sans-serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: .98;
  text-transform: uppercase;
}

.eyfl-rule-card__summary {
  margin: 13px 0 0;
  color: #59646d;
  font-size: .94rem;
  line-height: 1.55;
}

.eyfl-rule-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-top: 17px;
  color: #77818a;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.eyfl-rule-card__meta span {
  position: relative;
}

.eyfl-rule-card__meta span + span::before {
  content: "•";
  position: absolute;
  left: -10px;
  color: #49c6e4;
}

.eyfl-rule-card__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 22px;
}

.eyfl-rule-card__button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  color: #fff;
  background: #11151b;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}

.eyfl-rule-card__button:hover {
  color: #071016;
  background: #49c6e4;
}

.eyfl-rule-card__download {
  color: #1688aa;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-decoration: none;
  text-transform: uppercase;
}

.eyfl-rule-card__download:hover {
  color: #c8489a;
}

.eyfl-rule-card__missing {
  color: #8a4b55;
  font-size: .78rem;
  font-weight: 700;
}

.eyfl-rule-home-link {
  margin-top: 24px;
}

.eyfl-rule-library {
  display: grid;
  gap: 46px;
}

.eyfl-rule-library__intro {
  max-width: 790px;
  margin-bottom: 28px;
  color: #5c6670;
  font-size: 1.05rem;
  line-height: 1.7;
}

.eyfl-rule-library__section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 20px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(8, 23, 32, .12);
}

.eyfl-rule-library__section-head h2 {
  margin: 0;
  color: #080a0d;
  font-family: "Teko", sans-serif;
  font-size: 2.3rem;
  line-height: .95;
  text-transform: uppercase;
}

.eyfl-rule-library__section-head p {
  max-width: 520px;
  margin: 0;
  color: #6f7a83;
  font-size: .9rem;
}

.eyfl-rule-library-empty {
  grid-column: 1 / -1;
  display: flex;
  min-height: 160px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  padding: 28px;
  border: 1px dashed rgba(8, 23, 32, .22);
  background: rgba(255, 255, 255, .55);
  color: #5c6670;
}

.eyfl-rule-library-empty strong {
  color: #11151b;
  font-family: "Teko", sans-serif;
  font-size: 1.65rem;
  font-weight: 600;
  text-transform: uppercase;
}

.eyfl-rule-archive {
  margin-top: 10px;
}

.eyfl-rule-archive summary {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #11151b;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.eyfl-rule-archive summary::before {
  content: "+";
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #c8489a;
  font-size: 1rem;
}

.eyfl-rule-archive[open] summary::before {
  content: "–";
}

.eyfl-rule-archive .eyfl-rule-grid {
  margin-top: 20px;
}

@media (max-width: 900px) {
  .eyfl-rule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .eyfl-rule-grid {
    grid-template-columns: 1fr;
  }

  .eyfl-rule-card {
    min-height: 0;
  }

  .eyfl-rule-library__section-head {
    display: block;
  }

  .eyfl-rule-library__section-head p {
    margin-top: 7px;
  }
}
