  /* Row → Cards component
   Works with table[data-snippet="ou-row-cards"] rendered by XSL
   ------------------------------------------------------------- */

:root {
  --rc-brand-primary: #93002B;
  --rc-brand-primary-hover: #B7324D;
  --rc-surface: #FFFFFF;
  --rc-text: #1A1A1A;
  --rc-muted: #6B7280;
  --rc-card-border: #BBBBBB;
  --rc-focus-ring: rgba(147, 0, 43, .35);
  --rc-card-hover-bg: rgba(147, 0, 43, .04);
}

.rc-row-cards { 
  margin: 1.5rem 0; 
  color: var(--rc-text); 
}

.rc-row-cards .rc-section { 
  margin: 2rem 0 2.25rem; 
}

.rc-row-cards .rc-section__title {
  font-size: clamp(1.25rem, 1.2vw + 1rem, 1.6rem);
  line-height: 1.25;
  margin: 0 0 40px 0;
  color: var(--rc-brand-primary);
  border-bottom: 1px solid currentColor;
  padding-bottom: 10px;
  max-width: 500px;
}

.rc-row-cards .rc-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .rc-row-cards .rc-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (min-width: 992px) {
  .rc-row-cards .rc-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

.rc-row-cards .rc-card {
  display: flex;
  flex-direction: column;
  background: var(--rc-surface);
  border: 1px solid var(--rc-card-border);
  border-radius: 7px;
  padding: 1rem 1rem 1.1rem;
  text-decoration: none;
  color: inherit;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease, background-color .14s ease;
  outline: none;
}

.rc-row-cards .rc-card:focus-visible {
  box-shadow: 0 0 0 4px var(--rc-focus-ring);
  border-color: var(--rc-brand-primary);
}

.rc-row-cards .rc-card:hover { 
  transform: translateY(-2px); 
  background: var(--rc-card-hover-bg);       /* requested mouseover bg */
  border-color: #333;                        /* subtle emphasis */
}

.rc-row-cards .rc-card__heading {
  font-size: 1.2rem !important;
  font-weight: 700;
  margin: 0 0 .35rem 0;
  line-height: 1.25;
  color: var(--rc-brand-primary);
}

.rc-row-cards .rc-card:hover .rc-card__heading { 
  color: var(--rc-brand-primary-hover); 
}

.rc-row-cards .rc-card__desc { 
  margin: 0; 
  opacity: .92; 
}

.rc-row-cards p.rc-card__desc { 
  font-weight: normal; 
}

.rc-row-cards .rc-card__meta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .92rem;
  color: #C2363D;
}

.rc-row-cards .rc-card__meta svg { 
  width: 1rem; 
  height: 1rem; 
}

/* Hide authoring table on publish (kept here so it’s not duplicated inline) 
table[data-snippet="ou-row-cards"] { 
  display: none !important; 
}
*/