/* UniHive school directory. Builds on css/styles.css (tokens, header, buttons, footer, school cards). */

.nl.cur { color: var(--text); font-weight: 700; }
.dir-head { padding-top: clamp(8px, 3vh, 32px); }
.dir-title { max-width: 46rem; font-size: clamp(32px, 4.6vw, 58px); letter-spacing: -.03em; }
.search { max-width: 640px; margin-top: 28px; }
.search input {
  width: 100%; min-height: 58px; padding: 0 24px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text);
  font: 500 18px var(--font); box-shadow: var(--shadow);
}
.search input::placeholder { color: #8A9A90; }

.filters { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.filter-label { margin-right: 8px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; min-width: 56px; }
.fpill { position: relative; display: inline-block; cursor: pointer; }
.fpill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fpill span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: 15px; font-weight: 600; transition: all .2s ease;
}
.fpill:hover span { border-color: var(--amber); }
.fpill input:checked + span { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }
.fpill input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }

.results { padding-top: 28px; }
.count { margin: 0; color: var(--muted); font-size: 15px; font-weight: 600; }
.notice { margin: 12px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--surface-2); font-weight: 500; }
.school-grid.dir { margin-top: 18px; }
.sc-update { margin: 0; color: var(--text); font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sc-cta { color: var(--ok); font-size: 14px; font-weight: 700; }
.school-card > .box.static { cursor: default; }
.more-row { display: flex; justify-content: center; margin-top: 28px; }
.empty { margin-top: 24px; padding: 48px 24px; border: 1.5px dashed var(--line); border-radius: 26px; text-align: center; }
.empty strong { font-size: 24px; }
.empty p { max-width: 30rem; margin: 10px auto 20px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.empty a { color: var(--text); font-weight: 700; }
.sec-last { padding-top: 72px; }
.band p .btn { margin-top: 8px; }
@media (max-width: 760px) {
  .filter-label { flex: 1 1 100%; }
  .school-card.extra { display: flex; }
}

/* A directory card opens the school's own page. The title link is stretched over the whole card;
   the official-website link sits above it, so both stay separate, real links. */
.school-card > .box.linked { position: relative; }
.school-card > .box.linked:hover { transform: translateY(-4px); border-color: var(--amber); }
.sc-main { color: inherit; text-decoration: none; }
.sc-main::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.sc-main:focus-visible { outline: none; }
.sc-main:focus-visible::after { outline: 2px solid var(--amber); outline-offset: 3px; }
.sc-ext { position: relative; z-index: 1; align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; margin-top: 2px; color: var(--ok); font-size: 14px; font-weight: 700; text-decoration: none; }
.sc-ext:hover { text-decoration: underline; }
@media (max-width: 760px) { .school-card > .box.linked:hover { transform: none; } }
