.anm-resources-hub {
  --anm-ink: #171b2f;
  --anm-purple: #2b175e;
  --anm-cream: #f5f0e6;
  --anm-paper: #fffdf8;
  --anm-coral: #ef6a4c;
  --anm-ochre: #dfa027;
  --anm-sage: #bdc9aa;
  --anm-pink: #d83b7d;
  --anm-line: rgba(23, 27, 47, 0.2);
  width: 100vw;
  max-width: none !important;
  margin: 0 0 0 calc(50% - 50vw) !important;
  padding: 0;
  overflow: hidden;
  background: var(--anm-paper);
  color: var(--anm-ink);
  container-name: anm-resources;
  container-type: inline-size;
  font-family: Arial, Helvetica, sans-serif;
}

.anm-resources-hub,
.anm-resources-hub * {
  box-sizing: border-box;
}

.anm-resources-hub > * {
  max-width: none;
  margin-block: 0;
}

.anm-resources-hub h1,
.anm-resources-hub h2,
.anm-resources-hub h3 {
  color: inherit;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.anm-resources-hub a {
  color: inherit;
}

.anm-resources-eyebrow {
  margin: 0 0 22px !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.anm-resources-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.65fr);
  min-height: 680px;
  background: var(--anm-cream);
}

.anm-resources-hero__copy {
  padding: clamp(72px, 10vw, 148px) clamp(24px, 7vw, 108px);
  position: relative;
}

.anm-resources-hero__copy::after {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -100px;
  width: 260px;
  height: 260px;
  border: 54px solid var(--anm-ochre);
  border-radius: 50%;
}

.anm-resources-title {
  max-width: 920px;
  margin: 0 !important;
  font-size: clamp(58px, 8.2vw, 124px) !important;
  line-height: 0.9 !important;
  overflow-wrap: anywhere;
}

.anm-resources-intro {
  max-width: 720px;
  margin: 34px 0 0 !important;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.58;
}

.anm-resources-actions {
  margin-top: 38px !important;
  gap: 12px;
}

.anm-resources-button .wp-block-button__link {
  min-height: 52px;
  padding: 15px 23px;
  border: 2px solid var(--anm-ink);
  border-radius: 0;
  background: var(--anm-ink);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.anm-resources-button--outline .wp-block-button__link {
  background: transparent;
  color: var(--anm-ink);
}

.anm-resources-button .wp-block-button__link:hover {
  border-color: var(--anm-coral);
  background: var(--anm-coral);
  color: var(--anm-ink);
}

.anm-resources-hero__note {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  padding: clamp(42px, 5vw, 78px) clamp(28px, 4vw, 58px);
  overflow: hidden;
  position: relative;
  background: var(--anm-coral);
}

.anm-resources-hero__note::before {
  content: "↓";
  position: absolute;
  top: 50px;
  left: 48px;
  width: 72px;
  height: 72px;
  border-radius: 50% 50% 50% 0;
  background: var(--anm-ink);
  color: #fff;
  font-size: 32px;
  line-height: 72px;
  text-align: center;
}

.anm-resources-hero__note h2 {
  margin: 22px 0 0;
  font-size: clamp(38px, 4.2vw, 66px);
  line-height: 0.98;
}

.anm-resources-hero__note > p:last-child {
  margin: 24px 0 0;
  font-size: 17px;
  line-height: 1.6;
}

.anm-resources-jump {
  min-height: 72px;
  padding: 16px clamp(24px, 6vw, 96px);
  background: var(--anm-ink);
  color: #fff;
}

.anm-resources-jump p {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.anm-resources-jump a {
  text-decoration-color: var(--anm-ochre);
  text-underline-offset: 5px;
}

.anm-resources-section {
  padding: clamp(78px, 10vw, 144px) clamp(24px, 7vw, 108px);
}

.anm-resources-section__heading {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: clamp(42px, 8vw, 128px);
  margin-bottom: clamp(52px, 8vw, 96px) !important;
}

.anm-resources-section__heading h2 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(46px, 5.4vw, 86px);
  line-height: 0.96;
}

.anm-resources-section__heading p:last-child {
  max-width: 620px;
  margin: 28px 0 0;
  font-size: 17px;
  line-height: 1.7;
}

.anm-resources-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.anm-resource-card {
  display: flex;
  flex-direction: column;
  min-height: 520px;
  padding: clamp(30px, 4vw, 52px);
  border: 1px solid var(--anm-line);
  background: var(--anm-cream);
  position: relative;
  overflow: hidden;
}

.anm-resource-card:nth-child(2) {
  background: var(--anm-sage);
}

.anm-resource-card:nth-child(3) {
  background: var(--anm-coral);
}

.anm-resource-card:nth-child(4) {
  background: #ead7e1;
}

.anm-resource-card::after {
  content: "";
  position: absolute;
  right: -58px;
  top: -58px;
  width: 150px;
  height: 150px;
  border: 30px solid var(--anm-ochre);
  border-radius: 50%;
  opacity: 0.8;
}

.anm-resource-card__number {
  margin: 0 !important;
  color: var(--anm-purple);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.anm-resource-card h3 {
  max-width: 540px;
  margin: 58px 0 18px;
  font-size: clamp(38px, 4vw, 60px);
  line-height: 0.98;
}

.anm-resource-card__lead {
  max-width: 580px;
  margin: 0 !important;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.anm-resource-card__summary {
  max-width: 590px;
  margin: 18px 0 0 !important;
  color: rgba(23, 27, 47, 0.78);
  line-height: 1.65;
}

.anm-resource-card__actions {
  margin-top: auto !important;
  padding-top: 38px;
  gap: 10px;
}

.anm-resource-card__actions .wp-block-button__link {
  padding: 13px 17px;
  border: 2px solid var(--anm-ink);
  border-radius: 0;
  background: var(--anm-ink);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.anm-resource-card__actions .is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--anm-ink);
}

.anm-resources-contexts {
  background: var(--anm-sage);
}

.anm-resources-context-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(23, 27, 47, 0.24);
  background: rgba(23, 27, 47, 0.24);
}

.anm-resources-context-grid article {
  min-height: 270px;
  padding: 34px;
  background: var(--anm-sage);
}

.anm-resources-context-grid h3 {
  margin: 0 0 72px;
  font-size: 31px;
}

.anm-resources-context-grid p {
  margin: 0;
  line-height: 1.6;
}

.anm-resources-use {
  background: var(--anm-purple);
  color: #fff;
}

.anm-resources-use .anm-resources-eyebrow {
  color: #f3bd5b;
}

.anm-resources-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 64px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.anm-resources-step {
  min-height: 300px;
  padding: 34px 34px 34px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.anm-resources-step + .anm-resources-step {
  padding-left: 34px;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.anm-resources-step h3 {
  margin: 56px 0 18px;
  font-size: 34px;
}

.anm-resources-step p:last-child {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

.anm-resources-cta {
  padding: clamp(80px, 11vw, 160px) clamp(24px, 8vw, 128px);
  background: var(--anm-coral);
  text-align: center;
}

.anm-resources-cta h2 {
  max-width: 1080px;
  margin: 0 auto;
  font-size: clamp(50px, 7vw, 108px);
  line-height: 0.94;
}

.anm-resources-cta > p:last-of-type {
  max-width: 700px;
  margin: 30px auto 0;
  font-size: 18px;
  line-height: 1.6;
}

.anm-resources-cta .wp-block-buttons {
  justify-content: center;
  margin-top: 36px;
}

.anm-resources-disclaimer {
  margin: 0 !important;
  padding: 20px 24px;
  background: var(--anm-ink);
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.anm-resources-hub a:focus-visible {
  outline: 3px solid var(--anm-ochre);
  outline-offset: 4px;
}

.editor-styles-wrapper .anm-resources-hub,
.block-editor-writing-flow .anm-resources-hub {
  width: auto;
  margin-left: 0 !important;
}

@media (max-width: 960px) {
  .anm-resources-hero,
  .anm-resources-section__heading {
    grid-template-columns: 1fr;
  }

  .anm-resources-hero {
    min-height: auto;
  }

  .anm-resources-hero__note {
    min-height: 430px;
  }

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

@media (max-width: 680px) {
  .anm-resources-title {
    font-size: clamp(48px, 15vw, 68px) !important;
  }

  .anm-resources-hero__copy {
    padding: 64px 22px 78px;
  }

  .anm-resources-hero__note {
    min-height: 360px;
    padding: 100px 22px 44px;
  }

  .anm-resources-grid,
  .anm-resources-context-grid,
  .anm-resources-steps {
    grid-template-columns: 1fr;
  }

  .anm-resource-card {
    min-height: 480px;
  }

  .anm-resources-step + .anm-resources-step {
    padding-left: 0;
    border-left: 0;
  }

  .anm-resources-jump {
    justify-content: center !important;
  }
}

@container anm-resources (max-width: 960px) {
  .anm-resources-hero,
  .anm-resources-section__heading {
    grid-template-columns: 1fr;
  }

  .anm-resources-hero {
    min-height: auto;
  }

  .anm-resources-hero__note {
    min-height: 430px;
  }

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

@container anm-resources (max-width: 680px) {
  .anm-resources-title {
    font-size: clamp(48px, 15cqw, 68px) !important;
  }

  .anm-resources-hero__copy {
    padding: 64px 22px 78px;
  }

  .anm-resources-grid,
  .anm-resources-context-grid,
  .anm-resources-steps {
    grid-template-columns: 1fr;
  }

  .anm-resources-step + .anm-resources-step {
    padding-left: 0;
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .anm-resources-hub * {
    scroll-behavior: auto !important;
  }
}
