/* ---------- Students directory (/student) ---------- */
.students-directory .students-tools { margin: 0 0 12px; }
.students-directory .students-filter {
  width: 100%;
  max-width: 460px;
  padding: 10px 16px;
  border: 1px solid #c3d1c8;
  border-radius: 999px;
  background: #fff;
  font-size: 1rem;
  box-sizing: border-box;
}
.students-directory .students-filter:focus { outline: 2px solid var(--ces-leaf, #7a8f3a); border-color: transparent; }
.students-directory .students-count { margin: 8px 4px 0; font-size: .85rem; color: #55635a; min-height: 1.2em; }

.students-directory .students-table-wrap {
  border: 1px solid #d9e3dc;
  border-top: 4px solid var(--ces-green, #1d4e3a);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 4px rgba(16, 28, 22, .07);
}
.students-directory .students-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: .95rem;
}
.students-directory .students-table th,
.students-directory .students-table td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.4;
  border: 0;
  border-bottom: 1px solid #e3ebe5;
}
.students-directory .students-table thead th {
  position: sticky; top: 0;
  background: var(--ces-green, #1d4e3a);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.students-directory .students-table tbody tr:nth-child(even) { background: #f6f8f3; }
.students-directory .students-table tbody tr:hover { background: #e6efe7; }
.students-directory .students-table tbody tr[hidden] { display: none; }
.students-directory .students-table td:first-child { font-weight: 600; }
.students-directory .students-table a { color: var(--ces-green, #1d4e3a); text-decoration: none; }
.students-directory .students-table a:hover,
.students-directory .students-table a:focus { text-decoration: underline; color: var(--ces-leaf, #7a8f3a); }
.students-directory .students-empty { color: #9aa8a0; }

/* mobile: each row becomes a card, using data-label */
@media (max-width: 720px) {
  .students-directory .students-table thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
  }
  .students-directory .students-table,
  .students-directory .students-table tbody,
  .students-directory .students-table tr,
  .students-directory .students-table td { display: block; width: 100%; box-sizing: border-box; }
  .students-directory .students-table tr { padding: 8px 4px; border-bottom: 3px solid #e3ebe5; }
  .students-directory .students-table tbody tr:nth-child(even) { background: #fff; }
  .students-directory .students-table td {
    display: grid;
    grid-template-columns: 8.5em 1fr;
    gap: 8px;
    padding: 5px 12px;
    border: 0;
    overflow-wrap: anywhere;
  }
  .students-directory .students-table td::before {
    content: attr(data-label);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #55635a;
    padding-top: 2px;
  }
  .students-directory .students-table td:first-child { font-size: 1.05rem; }
}
