/* All Resources index - filter bar and article grid */

.page-hero-compact {
  padding: 3rem 0 0;
}

.resources-intro {
  max-width: 650px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  text-align: center;
}

.resources-intro p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.resources-intro p:last-child {
  margin-bottom: 0;
}

.resources-intro-link {
  color: var(--gold);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

button.resources-intro-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.resources-intro-link:hover {
  color: var(--gold-dark);
}

.resources-external-wrap {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(27, 75, 74, 0.12);
}

.resources-external-wrap:not([hidden]) {
  display: block;
}

.external-resources-page .resources-external-wrap {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.resources-external-wrap .external-resources {
  background: transparent;
  border: none;
  padding: 0;
}

.resources-external-wrap .external-resources h2 {
  text-align: left;
  margin-top: 0;
}

.resources-external-wrap .external-resources-subhead {
  max-width: 720px;
  margin: 0 0 1.75rem;
  text-align: left;
}

.resources-external-wrap .external-resources-inner {
  max-width: none;
  margin: 0;
  padding: 0;
}

.resources-external-wrap .external-resources-grid {
  max-width: none;
  margin: 0;
}

.resources-external-wrap .external-resources-card {
  background: white;
}

.resources-external-wrap .external-resources + .external-resources {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(27, 75, 74, 0.12);
}

.resources-index {
  padding: 0 0 4rem;
  background: var(--grey-warm);
}

.resources-index .container {
  max-width: var(--container);
}

.resources-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

.resources-filter-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--teal-deep);
  margin: 0;
}

.resources-filter-select {
  min-width: min(100%, 280px);
  padding: 0.65rem 2.25rem 0.65rem 0.85rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background-color: #fafaf8;
  border: 1.5px solid rgba(27, 75, 74, 0.22);
  border-radius: 8px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%231B4B4A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.resources-filter-select:hover {
  border-color: rgba(27, 75, 74, 0.35);
}

.resources-filter-select:focus {
  outline: none;
  border-color: var(--teal-deep);
  box-shadow: 0 0 0 3px rgba(27, 75, 74, 0.12);
}

.resources-count {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.resources-external-jump {
  margin: 0 0 1.75rem;
}

.resources-external-jump a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--teal-deep);
  text-decoration: none;
}

.resources-external-jump a:hover {
  text-decoration: underline;
}

.resources-article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  transition: opacity 0.22s ease;
}

.resources-article-grid.is-updating {
  opacity: 0;
}

.resources-article-grid .latest-card {
  height: 100%;
}

.resources-empty {
  max-width: 560px;
  margin: 1rem auto 0;
  padding: 2rem 1.75rem;
  text-align: center;
  background: white;
  border: 1.5px solid rgba(27, 75, 74, 0.12);
  border-radius: 4px;
  box-shadow: 0 8px 28px rgba(27, 75, 74, 0.08);
}

.resources-empty p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

.resources-empty a {
  color: var(--teal-deep);
  font-weight: 600;
}

.resources-prelaunch {
  padding: 4rem 0 5rem;
  background: var(--grey-warm);
}

.resources-prelaunch-inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 2.5rem 1.75rem;
  text-align: center;
  background: white;
  border: 1.5px solid rgba(27, 75, 74, 0.12);
  border-radius: 4px;
  box-shadow: 0 8px 28px rgba(27, 75, 74, 0.08);
}

.resources-prelaunch-inner p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

.resources-prelaunch-inner a {
  color: var(--teal-deep);
  font-weight: 600;
}

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

@media (max-width: 640px) {
  .resources-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .resources-filter-select {
    width: 100%;
  }

  .resources-article-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .external-resources-card {
    flex-direction: column;
  }

  .external-resources-logo {
    width: 100%;
    max-width: 160px;
    height: auto;
  }
}
