/*
 * Olga Gipich — useful pages audit fixes.
 * Keeps article CTA text readable and tightens the resources-page rhythm.
 */

/* The shared heading rules otherwise repaint these headings with dark ink. */
.og-vest-note h2,
.og-jumper-note h2,
.og-skinny-note h2 {
  color: #fff !important;
}

.og-vest-note > a,
.og-jumper-note > a,
.og-skinny-note > a {
  background: #fff;
  color: #241f1c !important;
}

.og-vest-note > a:hover,
.og-vest-note > a:focus-visible,
.og-jumper-note > a:hover,
.og-jumper-note > a:focus-visible,
.og-skinny-note > a:hover,
.og-skinny-note > a:focus-visible {
  color: #7a263f !important;
}

/* Small labels in the two older dark link panels need a light foreground. */
.og-article-links .og-eyebrow {
  color: #f0dfe4 !important;
}

/* Footer column headings were dark-on-dark because of a global h2 rule. */
#brx-footer .og-footer-column h2 {
  color: #fff !important;
}

/* The resources index had three stacked sources of vertical whitespace. */
body.page-id-1361 .og-inner-page.og-resources-page {
  padding-bottom: 56px !important;
}

body.page-id-1361 .og-resources-page .og-delivery-note {
  margin-top: 48px;
}

body.page-id-1361 #brx-content > .og-seo-suite {
  margin-top: 48px !important;
  margin-bottom: 80px !important;
}

/* Make an odd final card look intentional instead of leaving half a row empty. */
@media (min-width: 821px) {
  body.page-id-1361 .og-resource-grid > .og-resource-card:last-child:nth-child(odd) {
    min-height: 340px;
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  body.page-id-1361 .og-inner-page.og-resources-page {
    padding-bottom: 40px !important;
  }

  body.page-id-1361 .og-resources-page .og-delivery-note {
    margin-top: 36px;
  }

  body.page-id-1361 #brx-content > .og-seo-suite {
    margin-top: 36px !important;
    margin-bottom: 56px !important;
  }
}
