html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Figtree', sans-serif;
  background: #e2e2e2;
  display: flex;
  flex-direction: column;
  color: #222;
}

#wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}



.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #0057ac;
  color: white;
  padding: 8px;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

header {
  background: linear-gradient(90deg, #0057ac, #0b113a);
  color: white;
  padding: 2rem 1rem;
  text-align: center;
}

.logo {
  max-height: 60px;
  margin-bottom: 1rem;
}

.controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.controls input,
.controls select {
  padding: 0.6rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  min-width: 180px;
}

main {
  flex: 1;
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 2rem;
}

#results {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: start;
}

@media (min-width: 1000px) {
  #results {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: white;
  border-radius: 8px;
  padding: 1.2rem;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  border-left: 5px solid #0057ac;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 250px;
  transition: all 0.2s ease-in-out;
}

.card strong {
  font-size: 1.2rem;
  color: #1f1f1f;
  margin-bottom: 0.2rem;
}

.card a {
  color: #0077b6;
  text-decoration: none;
  word-break: break-word;
  margin-bottom: 0.3rem;
}

.card a:focus {
  outline: 2px solid #ffc75f;
  outline-offset: 2px;
}

.card em {
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.card p {
  font-size: 0.95rem;
  margin: 0.3rem 0 0;
  color: #333;
}

footer {
  background: #f5f5f5;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}