/* Knowledge pathways: match each row to its intended content-led footer baseline. */
html body.v71-page-resources main .knowledge-grid > .knowledge-card {
  display:block !important;
}

/* First row follows SOP / Work Instructions, which has the tallest label and title. */
html body.v71-page-resources main .knowledge-grid > .knowledge-card:nth-child(-n+4) > small {
  min-height:27px !important;
  box-sizing:border-box !important;
}
html body.v71-page-resources main .knowledge-grid > .knowledge-card:nth-child(-n+4) > h3 {
  min-height:49px !important;
  box-sizing:border-box !important;
}
html body.v71-page-resources main .knowledge-grid > .knowledge-card:nth-child(-n+4) > p {
  min-height:116px !important;
  box-sizing:border-box !important;
}

/* Second row follows Permits & Inductions and Incidents, whose copy sets the row depth. */
html body.v71-page-resources main .knowledge-grid > .knowledge-card:nth-child(n+5) > p {
  min-height:116px !important;
  box-sizing:border-box !important;
}

html body.v71-page-resources main .knowledge-grid > .knowledge-card > a {
  display:flex !important;
  align-items:center !important;
  gap:12px !important;
  margin-top:32px !important;
  padding-top:18px !important;
  border-top:1px solid #dce8d7 !important;
}

@media (max-width:1000px) {
  html body.v71-page-resources main .knowledge-grid > .knowledge-card > small,
  html body.v71-page-resources main .knowledge-grid > .knowledge-card > h3,
  html body.v71-page-resources main .knowledge-grid > .knowledge-card > p {
    min-height:0 !important;
  }
  html body.v71-page-resources main .knowledge-grid > .knowledge-card > a { margin-top:24px !important; }
}
