/* Resource Library cards, rendered from public/data/resources.json by
   tools/build-resources.py. The markup is in the HTML; the sidebar filters hide
   and reorder it. */

.lib-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.95rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lib-card:hover {
  border-color: var(--sage-light);
  box-shadow: var(--shadow-md);
}

.lib-card[hidden] { display: none !important; }

.lib-card-title {
  font-family: var(--font-palatino);
  font-size: var(--text-base);
  line-height: 1.3;
  margin: 0;
}

.lib-card-title a {
  color: var(--sage-green);
  text-decoration: none;
}

.lib-card-title a:hover { text-decoration: underline; }

.lib-card-title a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.lib-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.6rem;
  font-size: var(--text-xs);
  color: var(--text-light);
  margin: 0;
}

.lib-grade { font-weight: 700; color: var(--sage-light); }

.lib-card-desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--body);
}

.lib-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0.15rem 0 0;
}

.lib-tag {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--body);
  background: var(--beige);
  border-radius: 3px;
  padding: 0.1rem 0.35rem;
}

.filter-heading {
  font-family: var(--font-palatino);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--sage-green);
  margin-bottom: 0.35rem;
}

.filter-checkbox input:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* The plain list of every Student Hub site, under the cards. Real content, not
   a hidden crawler list: a parent can scan it and a screen reader can read it. */
.hub-static-index {
  max-width: 1100px;
  margin: 2rem auto 3rem;
  padding: 0 var(--container-padding);
  font-family: var(--font-body);
  color: var(--body);
}

.hub-static-index h2 {
  font-family: var(--font-palatino);
  color: var(--sage-green);
  font-size: var(--text-xl);
  margin-bottom: 0.25rem;
}

.hub-static-index > p {
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.hub-static-index ul {
  columns: 2 320px;
  column-gap: 2rem;
  list-style: none;
  padding: 0;
}

.hub-static-index li {
  break-inside: avoid;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
  line-height: 1.45;
}

.hub-static-index a {
  color: var(--sage-green);
  font-weight: 600;
  text-decoration: none;
}

.hub-static-index a:hover { text-decoration: underline; }

.hub-static-index a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
