/* ========================================================================
   RESOURCES
   A focused gateway to the resource sections that are ready to use now.
   ======================================================================== */

.ry-resources-page {
  --resource-red: #ff2828;
  --resource-copy: rgba(255, 255, 255, .69);
  --resource-muted: rgba(255, 255, 255, .48);
  --resource-line: rgba(255, 255, 255, .1);
  background: #040404;
}

.ry-resources-page #smooth-content { background: #040404; }

.ry-resources-page .ry-page-hero__bg { background-position: center 48%; }

.ry-resources-page .ry-page-hero__scrim {
  background:
    linear-gradient(180deg,
      rgba(0, 0, 0, .46) 0%,
      rgba(0, 0, 0, .34) 31%,
      rgba(0, 0, 0, .61) 58%,
      rgba(0, 0, 0, .91) 80%,
      #000 100%),
    linear-gradient(90deg,
      rgba(0, 0, 0, .8) 0%,
      rgba(0, 0, 0, .27) 58%,
      rgba(0, 0, 0, .06) 100%);
}

.ry-resource-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-family: 'Syncopate', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--resource-red);
}

.ry-resource-eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--resource-red);
  box-shadow: 0 0 12px rgba(255, 0, 0, .42);
}

.ry-resource-intro {
  position: relative;
  isolation: isolate;
  padding: clamp(82px, 9vw, 132px) 0 clamp(76px, 8vw, 112px);
  overflow: hidden;
}

.ry-resource-intro::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 28%, rgba(255, 0, 0, .065), transparent 31%),
    linear-gradient(90deg, transparent 8%, rgba(255, 255, 255, .024) 8% 8.08%, transparent 8.08% 92%, rgba(255, 255, 255, .024) 92% 92.08%, transparent 92.08%);
}

.ry-resource-intro > .container { z-index: 2; }

.ry-resource-intro h2,
.ry-resource-directory h2,
.ry-resource-contribute h2 {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -.045em;
  color: #fff;
}

.ry-resource-intro__copy {
  max-width: 720px;
  padding: 4px 0 0 clamp(0px, 3vw, 34px);
  border-left: 1px solid var(--resource-line);
}

.ry-resource-intro__copy p {
  margin: 0 0 22px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.84;
  color: var(--resource-copy);
}

.ry-resource-intro__copy p:last-child { margin-bottom: 0; color: rgba(255, 255, 255, .86); }

.ry-resource-crisis {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: clamp(56px, 7vw, 82px);
  padding: 24px 28px;
  border: 1px solid rgba(255, 40, 40, .3);
  border-radius: 15px;
  background: linear-gradient(110deg, rgba(255, 40, 40, .1), rgba(255, 255, 255, .025) 52%, rgba(255, 255, 255, .012));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 60px -48px #000;
}

.ry-resource-crisis__signal {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  width: 34px;
  height: 32px;
}

.ry-resource-crisis__signal span {
  display: block;
  width: 3px;
  border-radius: 3px;
  background: var(--resource-red);
  box-shadow: 0 0 10px rgba(255, 0, 0, .38);
}

.ry-resource-crisis__signal span:nth-child(1) { height: 11px; }
.ry-resource-crisis__signal span:nth-child(2) { height: 27px; }
.ry-resource-crisis__signal span:nth-child(3) { height: 17px; }

.ry-resource-crisis__label {
  display: block;
  margin-bottom: 5px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.ry-resource-crisis p {
  margin: 0;
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255, 255, 255, .65);
}

.ry-resource-crisis p strong { color: #fff; }

.ry-resource-crisis > a {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease;
}

.ry-resource-crisis > a span { color: var(--resource-red); font-size: 18px; }
.ry-resource-crisis > a:hover { color: var(--resource-red); }

/* Finished destinations only */
.ry-resource-directory {
  position: relative;
  isolation: isolate;
  padding: clamp(88px, 10vw, 146px) 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, .055);
  background: #070707;
}

.ry-resource-directory::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 30, 30, .075), transparent 33%),
    linear-gradient(180deg, #030303 0%, transparent 18%, transparent 82%, #030303 100%);
}

.ry-resource-directory::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .04) 14%, rgba(255, 40, 40, .11) 50%, rgba(255, 255, 255, .04) 86%, transparent);
}

.ry-resource-directory h2 { font-size: clamp(36px, 4.8vw, 64px); }

.ry-resource-directory__lede {
  max-width: 680px;
  margin: 26px auto 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.78;
  color: var(--resource-copy);
}

.ry-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(48px, 6vw, 78px);
}

.ry-resource-card {
  position: relative;
  display: flex;
  min-height: 365px;
  flex-direction: column;
  padding: 34px 32px 30px;
  overflow: hidden;
  border: 1px solid var(--resource-line);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .012) 67%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 30px 62px -48px rgba(0, 0, 0, .98);
  text-decoration: none;
  transition: transform .28s ease, border-color .28s ease, background-color .28s ease;
}

.ry-resource-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 32px;
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--resource-red), transparent);
  box-shadow: 0 0 14px rgba(255, 0, 0, .48);
}

.ry-resource-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, .045);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(255, 255, 255, .012), 0 0 0 68px rgba(255, 255, 255, .008);
  transition: transform .35s ease, border-color .35s ease;
}

.ry-resource-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 40, 40, .42);
  background: linear-gradient(145deg, rgba(255, 255, 255, .072), rgba(255, 20, 20, .018) 70%);
}

.ry-resource-card:hover::after { transform: scale(1.08); border-color: rgba(255, 40, 40, .12); }

.ry-resource-card__number {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 34px;
  font-family: 'Syncopate', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--resource-red);
}

.ry-resource-card__stage {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 12px;
  font-family: 'Syncopate', sans-serif;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--resource-muted);
}

.ry-resource-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 17px;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.03em;
  color: #fff;
}

.ry-resource-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.72;
  color: rgba(255, 255, 255, .6);
}

.ry-resource-card__action {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 28px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
}

.ry-resource-card__action span {
  color: var(--resource-red);
  font-size: 17px;
  transition: transform .2s ease;
}

.ry-resource-card:hover .ry-resource-card__action span { transform: translateX(4px); }

.ry-resource-contribute {
  position: relative;
  padding: clamp(78px, 8vw, 116px) 0;
  background: #030303;
}

.ry-resource-contribute__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(36px, 7vw, 88px);
  align-items: center;
  padding: clamp(34px, 5vw, 62px);
  overflow: hidden;
  border: 1px solid var(--resource-line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 20%, rgba(255, 0, 0, .1), transparent 27%),
    linear-gradient(135deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .014));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 32px 70px -52px #000;
}

.ry-resource-contribute__panel::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: linear-gradient(180deg, transparent, var(--resource-red) 25%, var(--resource-red) 75%, transparent);
  box-shadow: 0 0 22px rgba(255, 0, 0, .4);
}

.ry-resource-contribute h2 { max-width: 760px; font-size: clamp(30px, 3.5vw, 48px); }

.ry-resource-contribute p {
  max-width: 760px;
  margin: 23px 0 0;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.78;
  color: var(--resource-copy);
}

.ry-resource-contribute__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 190px;
  min-height: 54px;
  padding: 0 25px;
  border: 1px solid var(--resource-red);
  border-radius: 999px;
  background: var(--resource-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 16px 38px -20px rgba(255, 0, 0, .8);
  transition: transform .2s ease, background-color .2s ease;
}

.ry-resource-contribute__button:hover { color: #fff; background: #ff3c3c; transform: translateY(-2px); }

.ry-resources-page #where-next {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, .055);
  background: #050505;
}

@media (max-width: 991.98px) {
  .ry-resource-intro__copy { padding-left: 0; border-left: 0; }
  .ry-resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ry-resource-contribute__panel { grid-template-columns: 1fr; }
  .ry-resource-contribute__button { justify-self: start; }
}

@media (max-width: 767.98px) {
  .ry-resources-page .ry-page-hero__bg { background-position: 61% center; }
  .ry-resources-page .ry-page-hero__scrim {
    background:
      linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.37) 30%, rgba(0,0,0,.72) 61%, #000 100%),
      linear-gradient(90deg, rgba(0,0,0,.64), rgba(0,0,0,.16));
  }
  .ry-resource-intro { padding-top: 68px; }
  .ry-resource-intro h2 { font-size: clamp(32px, 9vw, 43px); }
  .ry-resource-intro__copy p { font-size: 15px; line-height: 1.76; }
  .ry-resource-crisis { grid-template-columns: auto 1fr; gap: 18px; padding: 22px 20px; }
  .ry-resource-crisis > a { grid-column: 1 / -1; padding-left: 52px; white-space: normal; }
  .ry-resource-grid { grid-template-columns: 1fr; gap: 14px; }
  .ry-resource-card { min-height: 330px; padding: 29px 25px 26px; }
  .ry-resource-card__number { margin-bottom: 28px; }
  .ry-resource-contribute__panel { padding: 32px 24px; }
  .ry-resource-contribute__button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ry-resource-card,
  .ry-resource-card::after,
  .ry-resource-card__action span,
  .ry-resource-contribute__button { transition: none; }
  .ry-resource-card:hover,
  .ry-resource-contribute__button:hover { transform: none; }
}
