/*
 * Static fallback — loaded via <link href="/critical.css"> so base layout still applies
 * when hashed /_next/static/css/*.css requests fail (broken dev cache, wrong process, etc.).
 * Keep in sync with app/globals.css tokens and key layout intent.
 */
:root {
  --black: #000000;
  --queen-blue: #536583;
  --white: #ffffff;
  --oxford-blue: #1f2936;
  --alice-blue: #dee6ec;
  --text-dark: #1f2936;
  --text-body: #2d3a4a;
  --text-muted: #445166;
  --border-light: #dee6ec;
  --shadow-soft: 0 4px 20px rgba(31, 41, 54, 0.08);
  --shadow-hover: 0 8px 30px rgba(31, 41, 54, 0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--alice-blue);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
}

/* Home: resource grid + cards (class names are hashed; match by stable substring) */
#resources[class*='resources'] {
  padding: clamp(5.5rem, 11vw, 7.5rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem);
  background: var(--white);
}

#resources [class*='resourcesGrid'] {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  /* Three columns on desktop (must match Resources.module.css) */
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2rem;
}

@media (max-width: 1024px) {
  #resources [class*='resourcesGrid'] {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  #resources [class*='resourcesGrid'] {
    grid-template-columns: 1fr;
  }
}

#resources [class*='resourceCard'] {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 200px;
}

#resources [class*='resourceIcon'] {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: var(--queen-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

#resources [class*='resourceIcon'] svg {
  width: 34px;
  height: 34px;
  stroke: var(--white);
  fill: none;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
