@import url("../../shared/css/styles.css");

.hero {
  max-width: 100%;
}

.hero .intro,
.hero-subline {
  max-width: none;
}

.resources-scope {
  --rs-max: 1600px;
  --rs-radius: 8px;
  --rs-gap: 16px;
}

.resources-scope a {
  color: var(--text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition:
    color 160ms ease,
    opacity 160ms ease;
}

.hero .panel-intro a,
.hero .intro a {
  color: var(--text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition:
    color 160ms ease,
    opacity 160ms ease;
}

.resource-card li a {
  display: inline-block;
  color: var(--text);
  font-weight: 700;
}

.resources-scope a:hover {
  color: color-mix(in oklab, var(--amber) 92%, white 8%);
}

.hero .panel-intro a:hover,
.hero .intro a:hover {
  color: color-mix(in oklab, var(--amber) 92%, white 8%);
}

.resources-scope a:focus-visible,
.hero .panel-intro a:focus-visible,
.hero .intro a:focus-visible {
  outline: 2px solid rgba(115, 193, 255, 0.35);
  outline-offset: 3px;
  border-radius: 4px;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--rs-gap);
  margin: 10px auto 24px;
  max-width: var(--rs-max);
  align-items: stretch;
}

.resource-card {
  background: transparent;
  border: 0;
  border-radius: var(--rs-radius);
  padding: 16px 16px 14px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 232px;
  box-shadow: none;
}

.resource-card h2 {
  margin: 0 0 2px;
  font-size: 1.06rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
}

.resource-desc {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

.resource-card ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.resource-card li {
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--muted);
  transition: transform 160ms ease;
}

.resource-card li:hover {
  transform: translateY(-1px);
}

.resource-card li a strong {
  color: var(--text);
}

.resource-card li:hover a {
  color: color-mix(in oklab, var(--amber) 92%, white 8%);
}

.resource-card li:hover a strong {
  color: #ffffff;
}

.resource-card strong {
  color: var(--text);
}

@media (max-width: 900px) {
  .resources-grid {
    grid-template-columns: 1fr;
  }
}
