/* YIDIMU Resources Center
   Upload to: /assetsen/css/resources.css
   Scope: .ydm-resources-page only
*/

.ydm-resources-page {
  --ydm-res-ink: #121820;
  --ydm-res-muted: #596473;
  --ydm-res-line: #dfe4e9;
  --ydm-res-soft: #f4f6f8;
  --ydm-res-paper: #ffffff;
  --ydm-res-red: #c51f30;
  --ydm-res-red-dark: #981522;
  --ydm-res-max: 1240px;
  background: var(--ydm-res-paper);
  color: var(--ydm-res-ink);
  font-family: Arial, Helvetica, sans-serif;
  overflow: hidden;
}

.ydm-resources-page *,
.ydm-resources-page *::before,
.ydm-resources-page *::after {
  box-sizing: border-box;
}

.ydm-resources-page img {
  display: block;
  max-width: 100%;
}

.ydm-resources-page a {
  color: inherit;
}

.ydm-resources-page a:focus-visible {
  outline: 3px solid rgba(197, 31, 48, 0.34);
  outline-offset: 4px;
}

.ydm-resources-shell {
  width: min(calc(100% - 48px), var(--ydm-res-max));
  margin-inline: auto;
}

.ydm-resources-hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  isolation: isolate;
  background: #eef1f4;
}

.ydm-resources-hero__media,
.ydm-resources-hero__overlay {
  position: absolute;
  inset: 0;
}

.ydm-resources-hero__media {
  z-index: -3;
}

.ydm-resources-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
}

.ydm-resources-hero__overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(248, 250, 252, 0.99) 0%, rgba(248, 250, 252, 0.96) 38%, rgba(248, 250, 252, 0.56) 62%, rgba(248, 250, 252, 0.12) 100%),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.18));
}

.ydm-resources-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(18, 24, 32, 0.12);
}

.ydm-resources-hero__content {
  padding-block: 126px 92px;
}

.ydm-resources-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 52px;
  color: #66717e;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ydm-resources-breadcrumb a {
  text-decoration: none;
}

.ydm-resources-breadcrumb a:hover {
  color: var(--ydm-res-red);
}

.ydm-resources-eyebrow,
.ydm-resources-kicker,
.ydm-resources-card-label {
  margin: 0;
  color: var(--ydm-res-red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ydm-resources-hero h1 {
  max-width: 760px;
  margin: 18px 0 24px;
  font-size: clamp(52px, 6vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.ydm-resources-hero__lead {
  max-width: 690px;
  margin: 0;
  color: #3f4a57;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.65;
}

.ydm-resources-hero__actions,
.ydm-resources-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.ydm-resources-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.025em;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.ydm-resources-button:hover {
  transform: translateY(-2px);
}

.ydm-resources-button--primary {
  background: var(--ydm-res-red);
  color: #fff !important;
}

.ydm-resources-button--primary:hover {
  background: var(--ydm-res-red-dark);
}

.ydm-resources-button--secondary {
  border-color: #aeb7c1;
  background: rgba(255,255,255,.72);
  color: var(--ydm-res-ink) !important;
  backdrop-filter: blur(8px);
}

.ydm-resources-button--secondary:hover {
  border-color: var(--ydm-res-ink);
  background: #fff;
}

.ydm-resources-button--dark {
  background: var(--ydm-res-ink);
  color: #fff !important;
}

.ydm-resources-button--dark:hover {
  background: #28313b;
}

.ydm-resources-hero__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 46px 0 0;
  padding: 0;
  list-style: none;
}

.ydm-resources-hero__topics li {
  padding: 9px 13px;
  border: 1px solid rgba(18,24,32,.15);
  background: rgba(255,255,255,.64);
  color: #3c4652;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .045em;
  backdrop-filter: blur(8px);
}

.ydm-resources-intro,
.ydm-resources-latest,
.ydm-resources-links {
  padding: 110px 0;
}

.ydm-resources-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  align-items: end;
  gap: 56px;
  margin-bottom: 48px;
}

.ydm-resources-section-heading--compact {
  margin-bottom: 42px;
}

.ydm-resources-section-heading h2,
.ydm-resources-feature-card h2,
.ydm-resources-workflow h2,
.ydm-resources-cta h2 {
  margin: 12px 0 0;
  font-size: clamp(36px, 4.8vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.ydm-resources-section-heading > p,
.ydm-resources-feature-card__content > p,
.ydm-resources-workflow__content > p,
.ydm-resources-cta__inner > div > p {
  margin: 0;
  color: var(--ydm-res-muted);
  font-size: 17px;
  line-height: 1.75;
}

.ydm-resources-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ydm-res-line);
  border-left: 1px solid var(--ydm-res-line);
}

.ydm-resources-path-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 34px;
  border-right: 1px solid var(--ydm-res-line);
  border-bottom: 1px solid var(--ydm-res-line);
  background: #fff;
  text-decoration: none;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.ydm-resources-path-card:hover {
  position: relative;
  z-index: 2;
  background: #f9fafb;
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(18,24,32,.08);
}

.ydm-resources-path-card__number {
  color: #a5afb9;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
}

.ydm-resources-path-card h3 {
  margin: 50px 0 18px;
  font-size: 25px;
  line-height: 1.22;
  letter-spacing: -.025em;
}

.ydm-resources-path-card p {
  margin: 0 0 28px;
  color: var(--ydm-res-muted);
  line-height: 1.65;
}

.ydm-resources-text-link {
  margin-top: auto;
  color: var(--ydm-res-red) !important;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.ydm-resources-text-link span {
  display: inline-block;
  transition: transform .2s ease;
}

.ydm-resources-text-link:hover span {
  transform: translateX(4px);
}

.ydm-resources-feature {
  padding: 0 0 110px;
}

.ydm-resources-feature-card {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  min-height: 620px;
  background: var(--ydm-res-soft);
}

.ydm-resources-feature-card__image {
  min-height: 560px;
  overflow: hidden;
}

.ydm-resources-feature-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ydm-resources-feature-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 6vw, 86px);
}

.ydm-resources-feature-card h2 {
  font-size: clamp(34px, 4vw, 55px);
}

.ydm-resources-feature-card__content > p {
  margin-top: 24px;
}

.ydm-resources-feature-card ul {
  display: grid;
  gap: 13px;
  margin: 28px 0 34px;
  padding: 0;
  list-style: none;
}

.ydm-resources-feature-card li {
  position: relative;
  padding-left: 22px;
  color: #3f4a57;
  line-height: 1.55;
}

.ydm-resources-feature-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .65em;
  width: 7px;
  height: 7px;
  background: var(--ydm-res-red);
}

.ydm-resources-feature-card .ydm-resources-button {
  align-self: flex-start;
}

.ydm-resources-latest {
  background: #f7f8fa;
}

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

.ydm-resources-article-card {
  min-height: 365px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--ydm-res-line);
  background: #fff;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.ydm-resources-article-card:hover {
  transform: translateY(-5px);
  border-color: #c4cbd2;
  box-shadow: 0 18px 34px rgba(18,24,32,.07);
}

.ydm-resources-article-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.ydm-resources-article-card__index {
  color: #aeb6bf;
  font-size: 12px;
  font-weight: 800;
}

.ydm-resources-article-card h3 {
  margin: 48px 0 18px;
  font-size: 24px;
  line-height: 1.28;
  letter-spacing: -.025em;
}

.ydm-resources-article-card h3 a {
  text-decoration: none;
}

.ydm-resources-article-card h3 a:hover {
  color: var(--ydm-res-red);
}

.ydm-resources-article-card p {
  margin: 0 0 28px;
  color: var(--ydm-res-muted);
  line-height: 1.68;
}

.ydm-resources-workflow {
  padding: 120px 0;
}

.ydm-resources-workflow__grid {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(420px, 1.04fr);
  align-items: center;
  gap: clamp(50px, 7vw, 100px);
}

.ydm-resources-workflow__content > p {
  margin-top: 24px;
}

.ydm-resources-steps {
  display: grid;
  gap: 0;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ydm-res-line);
}

.ydm-resources-steps li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--ydm-res-line);
}

.ydm-resources-steps li > span {
  color: var(--ydm-res-red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

.ydm-resources-steps strong {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
}

.ydm-resources-steps p {
  margin: 0;
  color: var(--ydm-res-muted);
  line-height: 1.55;
}

.ydm-resources-workflow__visual {
  position: relative;
  min-height: 660px;
}

.ydm-resources-workflow__visual img {
  width: 100%;
  height: 660px;
  object-fit: cover;
}

.ydm-resources-workflow__note {
  position: absolute;
  left: -42px;
  bottom: 34px;
  max-width: 340px;
  padding: 24px 26px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(18,24,32,.14);
}

.ydm-resources-workflow__note strong,
.ydm-resources-workflow__note span {
  display: block;
}

.ydm-resources-workflow__note strong {
  margin-bottom: 8px;
  font-size: 17px;
}

.ydm-resources-workflow__note span {
  color: var(--ydm-res-muted);
  font-size: 14px;
  line-height: 1.55;
}

.ydm-resources-links {
  background: var(--ydm-res-soft);
}

.ydm-resources-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ydm-resources-related-grid a {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-top: 4px solid var(--ydm-res-ink);
  background: #fff;
  text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.ydm-resources-related-grid a:hover {
  transform: translateY(-4px);
  border-color: var(--ydm-res-red);
  box-shadow: 0 16px 34px rgba(18,24,32,.08);
}

.ydm-resources-related-grid span {
  margin-bottom: 38px;
  color: var(--ydm-res-red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ydm-resources-related-grid strong {
  font-size: 18px;
  line-height: 1.45;
}

.ydm-resources-related-grid em {
  margin-top: auto;
  padding-top: 24px;
  color: #3f4a57;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.ydm-resources-cta {
  padding: 92px 0;
  background: #e9edf1;
}

.ydm-resources-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr);
  align-items: end;
  gap: 70px;
}

.ydm-resources-cta__inner > div > p {
  max-width: 760px;
  margin-top: 22px;
}

.ydm-resources-cta__actions {
  justify-content: flex-end;
  margin-top: 0;
}

@media (max-width: 1100px) {
  .ydm-resources-hero {
    min-height: 660px;
  }

  .ydm-resources-path-grid,
  .ydm-resources-article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ydm-resources-feature-card {
    grid-template-columns: 1fr;
  }

  .ydm-resources-feature-card__image {
    min-height: 440px;
  }

  .ydm-resources-workflow__grid {
    grid-template-columns: 1fr;
  }

  .ydm-resources-workflow__visual {
    min-height: 540px;
  }

  .ydm-resources-workflow__visual img {
    height: 540px;
  }

  .ydm-resources-workflow__note {
    left: 28px;
  }

  .ydm-resources-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ydm-resources-cta__inner {
    grid-template-columns: 1fr;
  }

  .ydm-resources-cta__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .ydm-resources-shell {
    width: min(calc(100% - 32px), var(--ydm-res-max));
  }

  .ydm-resources-hero {
    min-height: 680px;
    align-items: flex-end;
  }

  .ydm-resources-hero__media img {
    object-position: 72% center;
  }

  .ydm-resources-hero__overlay {
    background:
      linear-gradient(180deg, rgba(248,250,252,.45) 0%, rgba(248,250,252,.91) 41%, rgba(248,250,252,1) 75%),
      linear-gradient(90deg, rgba(248,250,252,.82), rgba(248,250,252,.25));
  }

  .ydm-resources-hero__content {
    padding-block: 104px 50px;
  }

  .ydm-resources-breadcrumb {
    margin-bottom: 110px;
  }

  .ydm-resources-hero h1 {
    font-size: clamp(44px, 14vw, 66px);
  }

  .ydm-resources-hero__lead {
    font-size: 17px;
  }

  .ydm-resources-button {
    width: 100%;
  }

  .ydm-resources-hero__topics {
    display: none;
  }

  .ydm-resources-intro,
  .ydm-resources-latest,
  .ydm-resources-links {
    padding: 76px 0;
  }

  .ydm-resources-feature,
  .ydm-resources-workflow {
    padding-bottom: 76px;
  }

  .ydm-resources-workflow {
    padding-top: 76px;
  }

  .ydm-resources-section-heading {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 34px;
  }

  .ydm-resources-section-heading h2,
  .ydm-resources-feature-card h2,
  .ydm-resources-workflow h2,
  .ydm-resources-cta h2 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .ydm-resources-path-grid,
  .ydm-resources-article-grid,
  .ydm-resources-related-grid {
    grid-template-columns: 1fr;
  }

  .ydm-resources-path-card {
    min-height: 290px;
    padding: 28px;
  }

  .ydm-resources-path-card h3 {
    margin-top: 38px;
  }

  .ydm-resources-feature-card__image {
    min-height: 320px;
  }

  .ydm-resources-feature-card__content {
    padding: 34px 26px 40px;
  }

  .ydm-resources-article-card {
    min-height: 330px;
    padding: 26px;
  }

  .ydm-resources-workflow__visual,
  .ydm-resources-workflow__visual img {
    min-height: 430px;
    height: 430px;
  }

  .ydm-resources-workflow__note {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }

  .ydm-resources-cta {
    padding: 70px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ydm-resources-page *,
  .ydm-resources-page *::before,
  .ydm-resources-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
