/* ==========================================================
   UPSOURCED RESOURCE LIBRARY
   ========================================================== */

:root {
  --charcoal: #262528;
  --brick: #dd614a;
  --parchment: #e9e3d4;
  --forest: #006c67;
  --currency: #668f80;
  --powder: #9bbec7;
  --cirrus: #cadce0;
  --sunshine: #ffb100;
  --cloud: #f8f7ff;
}

/* ----------------------------------------------------------
   Base
   ---------------------------------------------------------- */

.resource-library-page {
  background: var(--parchment);
}

.resource-library-page header {
  margin-bottom: 0;
}

.resource-library-page main {
  margin-bottom: 0;
}

.resource-library-page .container {
  max-width: 1100px;
}

.resource-library-page button,
.resource-library-page input {
  font-family: "Archivo", sans-serif;
}

/* ----------------------------------------------------------
   Typography
   ---------------------------------------------------------- */

.resource-kicker,
.resource-filter-label,
.resource-list-heading h2,
.resource-newsletter__copy h2 {
  font-family: "Benton Sans Wd Bd", "Arial Narrow", Arial, sans-serif;
  font-display: swap;
  font-weight: normal;
  font-style: normal;
  letter-spacing: 0.12em;
}

.resource-kicker {
  display: block;
  margin: 0 0 100px;
  font-family: "Benton Sans Wd Bd", "Arial Narrow", Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: normal;
  line-height: 1.1;
  letter-spacing: 0.14em;
  color: var(--brick);
  position: relative;
  z-index: 2;
}

.resource-hero h1,
.resource-featured h2,
.resource-row h3 {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  color: var(--charcoal);
}

.resource-hero h1 {
  max-width: 760px;
  margin: 0 0 -65px;
  font-family: "Space Mono", monospace;
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
}

.resource-hero__intro,
.resource-row__summary,
.resource-featured__summary,
.resource-newsletter__copy p,
.resource-search input,
.resource-filter-pill,
.resource-topic-list a,
.resource-row__action,
.resource-button,
.resource-pagination {
  font-family: "Archivo", sans-serif;
}

/* ----------------------------------------------------------
   Hero
   ---------------------------------------------------------- */

.resource-hero {
  padding: 95px 0 48px;
  background: var(--parchment);
}

.resource-hero__intro {
  max-width: 720px;
  margin-bottom: 36px;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--charcoal);
}

/* ----------------------------------------------------------
   Search
   ---------------------------------------------------------- */

.resource-search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(100%, 650px);
  min-height: 58px;
  padding: 0 54px 0 20px;
  border: 1px solid rgba(38, 37, 40, 0.22);
  border-radius: 14px;
  background: var(--cloud);
  box-shadow: 0 7px 18px rgba(38, 37, 40, 0.04);
}

.resource-search:focus-within {
  border-color: var(--brick);
  box-shadow: 0 0 0 3px rgba(221, 97, 74, 0.15);
}

.resource-search > .fa-search {
  margin-right: 14px;
  color: var(--charcoal);
  font-size: 1rem;
}

.resource-search input {
  width: 100%;
  min-width: 0;
  padding: 17px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--charcoal);
  font-size: 0.95rem;
}

.resource-search input::placeholder {
  color: rgba(38, 37, 40, 0.55);
}

.resource-search__clear {
  position: absolute;
  right: 13px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--charcoal);
}

.resource-search__clear:hover,
.resource-search__clear:focus {
  background: rgba(38, 37, 40, 0.06);
}

/* ----------------------------------------------------------
   Filters
   ---------------------------------------------------------- */

.resource-filter-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.7fr);
  gap: 42px;
  margin-top: 38px;
}

.resource-filter-label {
  margin-bottom: 12px;
  color: var(--charcoal);
  font-size: 0.73rem;
  line-height: 1.2;
}

.resource-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.resource-filter-pill {
  padding: 10px 17px;
  border: 1px solid rgba(38, 37, 40, 0.18);
  border-radius: 999px;
  background: var(--cloud);
  color: var(--charcoal);
  font-size: 0.78rem;
  line-height: 1;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.resource-filter-pill:hover,
.resource-filter-pill:focus {
  transform: translateY(-1px);
  border-color: var(--brick);
}

.resource-filter-pill.is-active {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--cloud);
}

/* ----------------------------------------------------------
   Featured Resource
   ---------------------------------------------------------- */

.resource-featured {
  padding: 10px 0 26px;
}

.resource-featured__panel {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.32fr);
  overflow: hidden;
  border-radius: 12px;
  background: var(--cloud);
  box-shadow: 0 8px 22px rgba(38, 37, 40, 0.08);
}

.resource-featured__image {
  display: block;
  min-height: 310px;
  overflow: hidden;
  border: 0;
}

.resource-featured__image:hover,
.resource-featured__image:focus {
  border: 0;
}

.resource-featured__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.resource-featured__image:hover img {
  transform: scale(1.02);
}

.resource-featured__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px 42px;
}

.resource-type-label {
  margin-bottom: 13px;
  font-family: "Benton Sans Wd Bd", "Arial Narrow", Arial, sans-serif;
  font-size: 0.7rem;
  line-height: 1.2;
  letter-spacing: 0.11em;
}

.resource-featured h2 {
  margin-bottom: 14px;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  line-height: 1.2;
}

.resource-featured h2 a,
.resource-row h3 a {
  border: 0;
  color: var(--charcoal);
}

.resource-featured h2 a:hover,
.resource-featured h2 a:focus,
.resource-row h3 a:hover,
.resource-row h3 a:focus {
  border: 0;
  color: var(--brick);
}

.resource-featured__summary p {
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ----------------------------------------------------------
   Topic Pills
   ---------------------------------------------------------- */

.resource-topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 3px;
}

.resource-topic-list a {
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(102, 143, 128, 0.14);
  color: var(--charcoal);
  font-size: 0.72rem;
  line-height: 1.1;
}

.resource-topic-list a:hover,
.resource-topic-list a:focus {
  border: 0;
  background: var(--forest);
  color: var(--cloud);
}

/* ----------------------------------------------------------
   Buttons
   ---------------------------------------------------------- */

.resource-button {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  justify-content: center;
  gap: 22px;
  min-width: 0;
  margin-top: 20px;
  padding: 13px 18px;
  border: 0;
  border-radius: 5px;
  background: var(--charcoal);
  color: var(--cloud);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  transition: background-color 0.2s ease;
}

.resource-button span,
.resource-row__action span {
  color: var(--brick);
  font-size: 1.25rem;
  transition: transform 0.2s ease;
}

.resource-button:hover,
.resource-button:focus {
  border: 0;
  background: var(--forest);
  color: var(--cloud);
}

.resource-button:hover span,
.resource-button:focus span,
.resource-row__action:hover span,
.resource-row__action:focus span {
  transform: translateX(4px);
}

/* ----------------------------------------------------------
   Resource List
   ---------------------------------------------------------- */

.resource-list-section {
  padding: 0 0 40px;
}

.resource-list-ing {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 12px;
}

.resource-list-heading h2 {
  margin: 0;
  color: var(--charcoal);
  font-size: 1.5rem;
  line-height: 1.15;
}

.resource-list-heading p {
  margin: 0 0 2px;
  font-family: "Archivo", sans-serif;
  font-size: 0.78rem;
}

.resource-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.resource-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 150px;
  min-height: 170px;
  align-items: stretch;
  margin: 0 !important;
  overflow: hidden;
  border-radius: 10px;
  background: var(--cloud);
  box-shadow: 0 4px 14px rgba(38, 37, 40, 0.05);
}
}

.resource-row[hidden] {
  display: none;
}

.resource-row__image {
  display: block;
  min-height: 132px;
  overflow: hidden;
  border: 0;
}

.resource-row__image:hover,
.resource-row__image:focus {
  border: 0;
}

.resource-row__image img {
  width: 100%;
  height: 100%;
  min-height: 132px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.resource-row:hover .resource-row__image img {
  transform: scale(1.025);
}

.resource-row__content {
  align-self: center;
  min-width: 0;
  padding: 18px 28px;
}

.resource-row .resource-type-label {
  margin-bottom: 8px;
  font-size: 0.63rem;
}

.resource-row h3 {
  margin-bottom: 6px;
  font-size: 0.96rem;
  line-height: 1.35;
}

.resource-row__summary p {
  margin-bottom: 9px;
  font-size: 0.81rem;
  line-height: 1.4;
}

.resource-row__action {
  display: flex;
  align-items: center;
  align-self: stretch;
  justify-content: flex-end;
  gap: 16px;
  padding: 18px 24px 18px 10px;
  border: 0;
  color: var(--charcoal);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.resource-row__action:hover,
.resource-row__action:focus {
  border: 0;
  color: var(--brick);
}

/* ----------------------------------------------------------
   Fallback Images
   ---------------------------------------------------------- */

.resource-image-fallback {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: inherit;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--forest), var(--charcoal));
  color: var(--cloud);
}

.resource-image-fallback span {
  font-family: "Benton Sans Wd Bd", "Arial Narrow", Arial, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
}

.resource-image-fallback--podcast {
  background: linear-gradient(145deg, var(--charcoal), var(--forest));
}

.resource-image-fallback--guide {
  background: linear-gradient(145deg, var(--currency), var(--forest));
}

.resource-image-fallback--featured {
  min-height: 310px;
}

/* ----------------------------------------------------------
   Empty State
   ---------------------------------------------------------- */

.resource-empty {
  padding: 55px 20px;
  text-align: center;
}

.resource-empty h3 {
  font-family: "Space Mono", monospace;
  font-size: 1.25rem;
}

.resource-empty .resource-button {
  align-self: auto;
}

/* ----------------------------------------------------------
   Pagination
   ---------------------------------------------------------- */

.resource-pagination {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) auto minmax(110px, 1fr);
  align-items: center;
  gap: 24px;
  margin-top: 24px;
  color: var(--charcoal);
  font-size: 0.82rem;
}

.resource-pagination a {
  border: 0;
  color: var(--charcoal);
}

.resource-pagination a:hover,
.resource-pagination a:focus {
  border: 0;
  color: var(--brick);
}

.resource-pagination__previous {
  justify-self: end;
}

.resource-pagination__next {
  justify-self: start;
}

.resource-pagination__pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
}

.resource-pagination__current {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--cloud);
}

.resource-pagination__disabled {
  color: rgba(38, 37, 40, 0.35);
}
/* ----------------------------------------------------------
   Responsive
   ---------------------------------------------------------- */

@media (max-width: 991px) {
  .resource-filter-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .resource-featured__panel {
    grid-template-columns: 1fr;
  }

  .resource-featured__image {
    min-height: 300px;
  }

  .resource-row {
    grid-template-columns: 185px minmax(0, 1fr);
  }

  .resource-row__action {
    grid-column: 2;
    justify-content: flex-start;
    padding: 0 28px 18px;
  }

  .resource-newsletter__panel {
    grid-template-columns: 60px 1fr;
  }

  .resource-newsletter__form {
    grid-column: 1 / -1;
  }
}

/* ==========================================================
   RESOURCE LIBRARY — RESPONSIVE STYLES
   ========================================================== */


/* Hide content-type tags inside resource cards */
.resource-topic-list a[href*="/tag/all"],
.resource-topic-list a[href*="/tag/articles"],
.resource-topic-list a[href*="/tag/blogs"],
.resource-topic-list a[href*="/tag/podcasts"],
.resource-topic-list a[href*="/tag/guides"] {
  display: none;
}


/* Load More */
.resource-load-more {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.resource-load-more[hidden] {
  display: none;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 1100px) {

  .resource-library-page .container {
    width: auto;
    max-width: none;
    margin-left: 32px;
    margin-right: 32px;
  }

  .resource-hero {
    padding: 70px 0 40px;
  }

  .resource-library-page .resource-kicker {
    position: static;
    margin: 0 0 26px;
    font-size: 1.1rem;
    transform: none;
  }

  .resource-library-page .resource-hero h1 {
    position: static;
    max-width: 820px;
    margin: 0 0 32px;
    padding: 0;
    font-size: clamp(2.3rem, 5vw, 3.6rem);
    line-height: 1.12;
    transform: none;
  }

  .resource-hero__intro {
    max-width: 760px;
    margin: 0 0 32px;
    font-size: 1rem;
    line-height: 1.55;
  }

  .resource-search {
    width: 100%;
    max-width: 760px;
  }

  .resource-filter-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 38px;
  }

  .resource-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    overflow: visible;
  }

  .resource-filter-pill {
    flex: 0 0 auto;
  }

  .resource-list-heading {
    margin-top: 20px;
    margin-bottom: 18px;
  }

  .resource-row {
    grid-template-columns: 180px minmax(0, 1fr);
    min-height: 170px;
  }

  .resource-row__image,
  .resource-row__image img {
    min-height: 170px;
  }

  .resource-row__action {
    grid-column: 2;
    justify-content: flex-start;
    padding: 0 28px 22px;
  }
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 767px) {

  .resource-library-page {
    overflow-x: hidden;
  }

  .resource-library-page .container {
    width: auto;
    max-width: none;
    margin-left: 18px;
    margin-right: 18px;
    padding-left: 0;
    padding-right: 0;
  }


  /* HERO */

  .resource-library-page .resource-hero {
    padding: 58px 0 36px;
  }

  .resource-library-page .resource-hero__inner {
    display: flex;
    flex-direction: column;
  }

  .resource-library-page .resource-kicker {
    position: static !important;
    margin: 0 0 28px !important;
    padding: 0 !important;

    font-size: 1rem;
    line-height: 1.15;
    letter-spacing: 0.13em;

    transform: none !important;
  }

  .resource-library-page .resource-hero h1 {
    position: static !important;

    width: 100%;
    max-width: 100%;

    margin: 0 0 28px !important;
    padding: 0 !important;

    font-family: "Space Mono", monospace;
    font-size: 2rem;
    line-height: 1.18;

    transform: none !important;
  }

  .resource-library-page .resource-hero__intro {
    position: static !important;

    width: 100%;
    max-width: 100%;

    margin: 0 0 30px !important;
    padding: 0 !important;

    font-family: "Archivo", sans-serif;
    font-size: 0.95rem;
    line-height: 1.55;

    transform: none !important;
  }


  /* SEARCH */

  .resource-library-page .resource-search {
    width: 100%;
    min-height: 56px;

    margin: 0;
    padding: 0 48px 0 18px;

    border-radius: 12px;
  }

  .resource-library-page .resource-search input {
    min-width: 0;
    font-size: 0.9rem;
    text-overflow: ellipsis;
  }


  /* FILTERS */

  .resource-library-page .resource-filter-layout {
    display: block;

    margin-top: 36px;
    margin-bottom: 32px;
  }

  .resource-library-page .resource-filter-group {
    margin-bottom: 34px;
  }

  .resource-library-page .resource-filter-group:last-child {
    margin-bottom: 0;
  }

  .resource-library-page .resource-filter-label {
    margin-bottom: 14px;
    font-size: 0.72rem;
  }

  .resource-library-page .resource-filter-pills {
    display: flex;

    flex-wrap: wrap !important;

    gap: 9px;

    padding: 0;

    overflow: visible !important;
  }

  .resource-library-page .resource-filter-pill {
    flex: 0 0 auto;

    padding: 9px 14px;

    font-size: 0.74rem;
    line-height: 1;
  }


  /* ALL RESOURCES */

  .resource-library-page .resource-list-section {
    padding-top: 0;
  }

  .resource-library-page .resource-list-heading {
    display: block;

    margin: 28px 0 18px;
  }

  .resource-library-page .resource-list-heading h2 {
    margin: 0 0 5px;

    font-size: 1.35rem;
    line-height: 1.15;
  }


  /* RESOURCE LIST
     This is now the ONLY thing controlling spacing
     between visible cards.
  */

  .resource-library-page .resource-list {
    display: flex !important;
    flex-direction: column !important;

    gap: 22px !important;
  }


  /* HIDDEN FILTER RESULTS */

  .resource-library-page .resource-list > .resource-row[hidden] {
    display: none !important;

    margin: 0 !important;
    padding: 0 !important;
  }


  /* RESOURCE CARD */

  .resource-library-page .resource-list > article.resource-row {
    display: block;

    width: 100%;
    min-height: 0;

    margin: 0 !important;

    overflow: hidden;

    border-radius: 12px;
  }


  /* IMAGE */

  .resource-library-page .resource-row__image {
    display: block;

    width: 100%;
    height: 180px;
    min-height: 0;
  }

  .resource-library-page .resource-row__image img,
  .resource-library-page .resource-row__image .resource-image-fallback {
    display: block;

    width: 100%;
    height: 180px;
    min-height: 0;

    object-fit: cover;
  }


  /* CARD CONTENT */

  .resource-library-page .resource-row__content {
    display: block;

    width: 100%;

    padding: 22px 22px 14px;
  }

  .resource-library-page .resource-row .resource-type-label {
    margin: 0 0 10px;

    font-size: 0.65rem;
  }

  .resource-library-page .resource-row h3 {
    display: -webkit-box;

    margin: 0 0 14px;

    overflow: hidden;

    font-size: 1rem;
    line-height: 1.4;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }


  /* Hide description on phones/tablets */

  .resource-library-page .resource-row__summary {
    display: none;
  }


  /* TOPIC PILLS */

  .resource-library-page .resource-topic-list {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 0;
  }

  .resource-library-page .resource-topic-list a {
    padding: 6px 10px;

    font-size: 0.65rem;
    line-height: 1.15;
  }


  /* CTA */

  .resource-library-page .resource-row__action {
    display: flex;

    width: 100%;

    justify-content: flex-start;
    align-items: center;

    gap: 12px;

    padding: 5px 22px 22px;

    font-size: 0.78rem;
  }


  /* LOAD MORE */

  .resource-library-page .resource-load-more {
    margin-top: 30px;
  }
}


/* ==========================================================
   SMALL PHONES
   ========================================================== */

@media (max-width: 480px) {

  .resource-library-page .container {
    margin-left: 16px;
    margin-right: 16px;
  }

  .resource-library-page .resource-hero {
    padding-top: 58px;
  }

  .resource-library-page .resource-kicker {
    margin-bottom: 28px !important;
    font-size: 0.95rem;
  }

  .resource-library-page .resource-hero h1 {
    margin-bottom: 26px !important;

    font-size: 1.72rem;
    line-height: 1.18;
  }

  .resource-library-page .resource-hero__intro {
    font-size: 0.9rem;
  }

  .resource-library-page .resource-filter-layout {
    margin-bottom: 34px;
  }

  .resource-library-page .resource-filter-pill {
    padding: 9px 14px;
    font-size: 0.74rem;
  }

  /* Exactly equal space between every visible card */
  .resource-library-page .resource-list {
    gap: 22px !important;
  }

  .resource-library-page .resource-list > .resource-row,
  .resource-library-page .resource-list > article.resource-row {
    margin: 0 !important;
  }

  .resource-library-page .resource-list > .resource-row[hidden] {
    display: none !important;
  }

  .resource-library-page .resource-row__image,
  .resource-library-page .resource-row__image img,
  .resource-library-page .resource-row__image .resource-image-fallback {
    height: 180px;
  }

  .resource-library-page .resource-row__content {
    padding: 22px 20px 14px;
  }

  .resource-library-page .resource-row h3 {
    font-size: 1rem;
  }
}
/* ==========================================================
   RESOURCE LIBRARY — FINAL TABLET/MOBILE SPACING
   ========================================================== */

/* TABLET + MOBILE */
@media (max-width: 1100px) {

  /* More breathing room after the topic filters */
  .resource-library-page .resource-filter-layout {
    margin-bottom: 42px !important;
  }

  /* One single source of spacing between cards */
  .resource-library-page .resource-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
  }

  /* Kill any old article margins inherited from BlogStyles.css */
  .resource-library-page .resource-list > article.resource-row {
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  /* Filtered-out cards take up zero space */
  .resource-library-page .resource-list > article.resource-row[hidden] {
    display: none !important;
    margin: 0 !important;
  }
}


/* PHONE */
@media (max-width: 480px) {

  /* Slightly more separation after filters on a phone */
  .resource-library-page .resource-filter-layout {
    margin-bottom: 38px !important;
  }

  /* Slightly tighter than tablet, but perfectly consistent */
  .resource-library-page .resource-list {
    gap: 22px !important;
  }

  .resource-library-page .resource-list > article.resource-row {
    margin: 0 !important;
  }

  .resource-library-page .resource-list > article.resource-row[hidden] {
    display: none !important;
  }
}

}
/* ==========================================================
   FINAL MOBILE/TABLET CLEANUP
   ========================================================== */

@media (max-width: 1100px) {

  /* Make sure wrapped topic filters fully expand
     before the resource list begins */
  .resource-library-page .resource-filter-layout {
    position: relative;
    z-index: 2;

    height: auto !important;
    min-height: 0 !important;

    margin-bottom: 48px !important;
    padding-bottom: 0 !important;

    overflow: visible !important;
  }

  .resource-library-page .resource-filter-group,
  .resource-library-page .resource-filter-pills {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  /* Keep the resource section below the filters */
  .resource-library-page .resource-list-section {
    position: relative;
    z-index: 1;

    clear: both;
    padding-top: 0 !important;
  }

  /* Consistent card spacing */
  .resource-library-page .resource-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
  }

  .resource-library-page .resource-list > article.resource-row {
    margin: 0 !important;
  }

  .resource-library-page .resource-list > article.resource-row[hidden] {
    display: none !important;
  }
}


/* ==========================================================
   PHONE ONLY
   ========================================================== */

@media (max-width: 480px) {

  /* More room after the final topic-filter row */
  .resource-library-page .resource-filter-layout {
    margin-bottom: 52px !important;
  }

  /* Exactly equal space between cards */
  .resource-library-page .resource-list {
    gap: 24px !important;
  }

  /*
   Give each card's text area a consistent minimum height.
   This prevents cards with one topic from feeling much
   shorter than cards with three topics.
  */
  .resource-library-page .resource-row__content {
    display: flex !important;
    flex-direction: column !important;

    min-height: 215px;

    padding: 22px 20px 14px;
  }

  /* Always reserve two lines for the title */
  .resource-library-page .resource-row h3 {
    min-height: 2.8em;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
  }

  /*
   Reserve space for up to two rows of topic pills.
   This keeps the cards visually consistent.
  */
  .resource-library-page .resource-topic-list {
    min-height: 72px;

    align-content: flex-start;
  }

  .resource-library-page .resource-row__action {
    margin: 0 !important;
    padding: 8px 20px 22px !important;
  }
}
/* ==========================================================
   RESOURCE LIBRARY — DESKTOP HERO SPACING FIX
   ========================================================== */

@media (min-width: 1101px) {

  .resource-library-page .resource-hero__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .resource-library-page .resource-kicker {
    position: static !important;
    transform: none !important;
    margin: 0 0 42px !important;
  }

  .resource-library-page .resource-hero h1 {
    position: static !important;
    transform: none !important;

    width: 100%;
    max-width: 800px;

    margin: 0 0 42px !important;
    padding: 0 !important;

    line-height: 1.15;
  }

  .resource-library-page .resource-hero__intro {
    position: static !important;
    transform: none !important;

    width: 100%;
    max-width: 720px;

    margin: 0 0 32px !important;
    padding: 0 !important;
  }
}