body.edu-portal {
  font-size: 14px;
  --page-max: min(1600px, 100vw);
  --content-max: min(1600px, calc(100vw - 48px));
}

.edu-header {
  background: var(--background);
  border-bottom: 1px solid var(--border);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.edu-stat {
  display: grid;
  gap: var(--space-1);
}

.edu-stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
}

.edu-stat-value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.edu-stat-meta {
  font-size: 12px;
}

.input-with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  padding: 0 var(--space-2);
  background: var(--background);
  min-height: 32px;
}

.input-with-icon .input {
  border: 0;
  background: transparent;
  padding: 6px 0;
  min-height: 20px;
  width: 100%;
  outline: none;
}

.input-with-icon .hz-icon {
  font-size: 18px;
  color: var(--muted-foreground);
}

.edu-input-compact {
  width: min(320px, 42vw);
}

.edu-select-compact {
  width: min(240px, 38vw);
}

.edu-institution-controls {
  flex-wrap: wrap;
}

.edu-scroll-card {
  max-height: clamp(260px, 46vh, 520px);
  --sticky-offset: 0px;
}

.edu-explorer {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  align-items: start;
}

.edu-card-controls {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.edu-city-table th:nth-child(2),
.edu-city-table td:nth-child(2),
.edu-city-table th:nth-child(3),
.edu-city-table td:nth-child(3) {
  width: 1%;
}

.edu-city-table th:nth-child(2),
.edu-city-table td:nth-child(2) {
  text-align: right;
}

.edu-city-table th:nth-child(3),
.edu-city-table td:nth-child(3) {
  text-align: right;
}

.edu-city-table td:nth-child(3) .flex {
  justify-content: flex-end;
}

.edu-city-table tbody tr {
  cursor: pointer;
}

.edu-city-table tbody tr.is-active td {
  background: var(--muted);
}

.edu-institution-table th:nth-child(2),
.edu-institution-table td:nth-child(2),
.edu-institution-table th:nth-child(3),
.edu-institution-table td:nth-child(3) {
  width: 1%;
  text-align: right;
}

@media (max-width: 768px) {
  body.edu-portal {
    --content-max: min(1600px, calc(100vw - 24px));
  }

  .edu-input-compact,
  .edu-select-compact {
    width: 100%;
  }

  .edu-explorer {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1024px) {
  .edu-explorer {
    grid-template-columns: minmax(0, 1fr);
  }
}
