/* Public, reviewed resource highlights. Loaded only by enterprise templates. */
.rd-home .rd-resources-section {
  --rh-accent: var(--rd-accent, #176bd1);
  --rh-accent-rgb: var(--rd-accent-rgb, 23 107 209);
  --rh-glow-rgb: var(--rd-glow-rgb, 82 184 255);
  --rh-tint: var(--rd-tint, #edf5fc);
}

/* Keep each tile and row independent; their outer containers must not clip glow. */
.rd-home .rd-resources-section .rd-resources-layout,
.rd-home .rd-resources-section .rd-resource-feature,
.rd-home .rd-resources-section .rd-resource-types,
.rd-home .rd-resources-section .rd-resource-visual {
  min-width: 0;
  overflow: visible;
}

.rd-home.rd-refined .rd-resource-feature:has(a:hover),
.rd-home.rd-refined .rd-resource-feature:has(a:focus-visible) {
  transform: none;
  box-shadow: none;
  border-color: rgb(var(--rh-accent-rgb) / .18);
}

.rd-home .rd-resources-section .rd-resource-feature {
  border-color: rgb(var(--rh-accent-rgb) / .18);
  background: #fff;
}

.rd-home .rd-resources-section .rd-resource-visual {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  padding: 11px 11px 0;
  background: transparent;
}

.rd-home .rd-resource-visual > a.rd-resource-tile {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgb(var(--rh-accent-rgb) / .18);
  border-radius: 5px;
  background: #0b1b2b;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.rd-home .rd-resource-visual > a.rd-resource-tile::after {
  content: "";
  position: absolute;
  inset: 37% 0 0;
  z-index: 1;
  background: linear-gradient(transparent, #06101ad9);
  pointer-events: none;
}

.rd-home .rd-resource-visual > a.rd-resource-tile > img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  max-width: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.rd-home .rd-resource-tile .rd-resource-tile-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 15px;
  z-index: 2;
  color: #fff;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 500;
  text-shadow: 0 1px 8px #0008;
  overflow-wrap: anywhere;
  pointer-events: none;
}

.rd-home .rd-resources-section .rd-resource-types {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 13px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.rd-home .rd-resource-types > a.rd-resource-type {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
  min-height: 110px;
  padding: 22px 24px;
  border: 1px solid rgb(var(--rh-accent-rgb) / .18);
  border-radius: 6px;
  background: #fff;
  color: var(--rd-ink, #20384b);
  box-shadow: 0 3px 11px rgb(var(--rh-accent-rgb) / .025);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}

.rd-home .rd-resource-types > a.rd-resource-type:last-child {
  border-bottom: 1px solid rgb(var(--rh-accent-rgb) / .18);
}

.rd-home .rd-resource-types > a.rd-resource-type > div {
  min-width: 0;
}

.rd-home .rd-resource-types > a.rd-resource-type h3,
.rd-home .rd-resource-types > a.rd-resource-type p {
  overflow-wrap: anywhere;
}

.rd-home .rd-resource-types > a.rd-resource-type .rd-resource-type-icon {
  flex-shrink: 0;
  background: var(--rh-tint);
  color: var(--rh-accent);
  pointer-events: none;
}

.rd-home .rd-resource-types > a.rd-resource-type > svg {
  flex-shrink: 0;
  color: var(--rh-accent);
  pointer-events: none;
}

/* Keyboard selection lights the complete clickable object. */
.rd-home .rd-resource-visual > a.rd-resource-tile:focus-visible,
.rd-home .rd-resource-types > a.rd-resource-type:focus-visible {
  outline: 3px solid var(--rh-accent);
  outline-offset: 4px;
  border-color: var(--rh-accent);
  box-shadow: 0 0 0 1px rgb(var(--rh-accent-rgb) / .2), 0 7px 25px rgb(var(--rh-glow-rgb) / .28);
}

@media (hover: hover) and (pointer: fine) {
  .rd-home.rd-refined .rd-resource-visual > a.rd-resource-tile[href]:hover,
  .rd-home .rd-resource-visual > a.rd-resource-tile[href]:hover {
    top: 0;
    transform: translateY(-5px);
    border-color: rgb(var(--rh-accent-rgb) / .6);
    box-shadow: 0 9px 25px rgb(var(--rh-accent-rgb) / .2), 0 0 19px rgb(var(--rh-glow-rgb) / .23);
    color: #fff;
    filter: none;
  }

  .rd-home .rd-resource-visual > a.rd-resource-tile:hover > img {
    transform: scale(1.035);
  }

  .rd-home.rd-refined .rd-resource-types > a.rd-resource-type[href]:hover,
  .rd-home .rd-resource-types > a.rd-resource-type[href]:hover {
    top: 0;
    transform: translateY(-4px);
    border-color: rgb(var(--rh-accent-rgb) / .5);
    background: #fff;
    box-shadow: 0 10px 26px rgb(var(--rh-accent-rgb) / .13), 0 0 19px rgb(var(--rh-glow-rgb) / .13);
    color: var(--rd-ink, #20384b);
    filter: none;
  }
}

@media (max-width: 950px) {
  .rd-home .rd-resources-section .rd-resource-visual {
    gap: 8px;
    padding: 9px 9px 0;
  }

  .rd-home .rd-resource-tile .rd-resource-tile-caption {
    left: 10px;
    right: 10px;
    bottom: 12px;
    font-size: 13px;
  }

  .rd-home .rd-resource-types > a.rd-resource-type {
    padding: 20px 18px;
    gap: 13px;
  }
}

@media (max-width: 700px) {
  .rd-home .rd-resources-section .rd-resource-types {
    gap: 11px;
  }

  .rd-home .rd-resource-types > a.rd-resource-type {
    min-height: 106px;
    padding: 20px;
    gap: 16px;
  }

  .rd-home .rd-resource-tile .rd-resource-tile-caption {
    left: 8px;
    right: 8px;
    font-size: 12px;
    line-height: 1.65;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rd-home .rd-resource-visual > a.rd-resource-tile,
  .rd-home .rd-resource-types > a.rd-resource-type,
  .rd-home .rd-resource-visual > a.rd-resource-tile > img {
    transition: none;
  }

  .rd-home .rd-resource-visual > a.rd-resource-tile:hover,
  .rd-home .rd-resource-types > a.rd-resource-type:hover,
  .rd-home .rd-resource-visual > a.rd-resource-tile:hover > img {
    top: 0 !important;
    transform: none !important;
  }
}
