:root {
  --navy: #0b2545;
  --blue-600: #1d4e89;
  --blue-500: #2f6db3;
  --blue-100: #dbe9f7;
  --blue-50: #f4f8fd;
  --text: #1f2933;
  --muted: #5a6b7b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--blue-50);
}

a {
  color: var(--blue-500);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.5rem 1rem;
  background-color: #fff;
  color: var(--navy);
  border: 1px solid var(--blue-500);
  border-radius: 0 0 6px 0;
}

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

body > header {
  background-color: var(--navy);
  border-bottom: 2px solid var(--blue-500);
}

.header-bar {
  max-width: 920px;
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.brand {
  margin: 0;
}

.brand a {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand a:hover {
  color: var(--blue-100);
  text-decoration: none;
}

.site-menu ul {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-menu a {
  color: var(--blue-100);
  font-size: 0.85rem;
  font-weight: 500;
}

.site-menu a:hover {
  color: #fff;
  text-decoration: none;
}

.site-menu a[aria-current="page"] {
  color: #fff;
  border-bottom: 2px solid var(--blue-500);
  padding-bottom: 2px;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.65rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  cursor: pointer;
}

.menu-toggle:hover {
  border-color: #fff;
}

.menu-toggle:focus-visible {
  outline: 2px solid #8fc2f5;
  outline-offset: 2px;
}

.menu-icon {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 18px;
}

.menu-icon span {
  display: block;
  height: 2px;
  background-color: #fff;
  border-radius: 1px;
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-menu {
    display: none;
    width: 100%;
    order: 3;
    margin: 0.5rem -1.25rem 0;
    padding: 0 1.25rem;
    background-color: var(--blue-700);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .site-menu.is-open {
    display: block;
  }

  .site-menu ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-menu li {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .site-menu li:first-child {
    border-top: 0;
  }

  .site-menu a {
    display: block;
    padding: 0.65rem 0;
    font-size: 0.9rem;
  }

  .site-menu a[aria-current="page"] {
    color: #8fc2f5;
    border-bottom: 0;
  }

  table {
    table-layout: fixed;
  }

  th:first-child,
  td:first-child {
    width: 45%;
  }

  th:last-child,
  td:last-child {
    width: 28%;
  }
}

nav[aria-label="Breadcrumb"] {
  max-width: 920px;
  margin: 0 auto;
  padding: 0.7rem 1.25rem 0;
  font-size: 0.8rem;
  color: var(--muted);
}

nav[aria-label="Breadcrumb"] p {
  margin: 0;
}

nav[aria-label="Breadcrumb"] a {
  color: var(--blue-600);
  font-weight: 500;
}

main {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}

h1 {
  margin: 0.6rem 0 0;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.2;
  color: var(--navy);
}

main > p {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

section {
  margin: 1.15rem 0 0;
  padding: 1rem 1.15rem;
  background-color: #fff;
  border: 1px solid var(--blue-100);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(11, 37, 69, 0.06);
}

section h2 {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--blue-600);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.45rem;
}

.section-head h2 {
  margin: 0;
  flex: 1;
}

.table-toggle {
  margin-left: auto;
  padding: 0.18rem 0.55rem;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--blue-600);
  background-color: #fff;
  border: 1px solid var(--blue-100);
  border-radius: 999px;
  cursor: pointer;
}

.table-toggle:hover {
  color: var(--navy);
  border-color: var(--blue-500);
}

.table-toggle:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
}

section.schools-colleges .table-toggle {
  color: #6d28d9;
}

section.schools-colleges .table-toggle:hover {
  border-color: #6d28d9;
}

section ul {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 1.75rem;
}

section li {
  padding: 0.38rem 0;
  font-size: 0.925rem;
  break-inside: avoid;
}

section li a {
  color: var(--blue-600);
  font-weight: 500;
}

section li a:hover {
  color: var(--navy);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

th,
td {
  padding: 0.42rem 0.5rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--blue-100);
  overflow-wrap: anywhere;
}

th {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue-600);
  white-space: nowrap;
}

tbody tr:nth-child(even) {
  background-color: #f8fbff;
}

thead th {
  border-bottom: 1px solid var(--blue-100);
}

section.schools-public,
section.schools-private,
section.schools-colleges {
  border-top-width: 3px;
}

section.schools-public {
  border-top-color: var(--blue-500);
}

section.schools-private {
  border-top-color: #0f766e;
  background-color: #fbfdfd;
  margin-top: 1.5rem;
}

section.schools-public h2,
section.schools-private h2 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

section.schools-public h2::before,
section.schools-private h2::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

section.schools-public h2::before {
  background-color: var(--blue-500);
}

section.schools-private h2::before {
  background-color: #0f766e;
}

section.schools-private h2 {
  color: #0f766e;
}

section.schools-public thead th {
  background-color: #eaf3fc;
}

section.schools-private thead th {
  background-color: #e6f5f2;
  color: #0f766e;
}

section.schools-colleges {
  border-top-color: #6d28d9;
  background-color: #fcfbff;
  margin-top: 1.5rem;
}

section.schools-colleges h2 {
  color: #6d28d9;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

section.schools-colleges h2::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #6d28d9;
  flex: none;
}

section.schools-colleges thead th {
  background-color: #f1ecfc;
  color: #6d28d9;
}

tr.level-colleges td {
  color: #6d28d9;
  font-weight: 600;
  background-color: #fcfbff;
  border-top: 2px solid #e6d9fb;
}

.source {
  margin: 1.25rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.faq h3 {
  margin: 0.9rem 0 0.25rem;
  font-size: 0.95rem;
  color: var(--navy);
}

.faq p {
  margin: 0;
}

.search-form {
  margin: 1rem 0 0;
}

.search-form label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.search-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.search-row input {
  flex: 1 1 220px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  color: var(--text);
  background-color: #fff;
  border: 1px solid var(--blue-100);
  border-radius: 6px;
}

.search-row input:focus {
  outline: 2px solid var(--blue-500);
  outline-offset: 1px;
  border-color: var(--blue-500);
}

.search-row button {
  padding: 0.55rem 1.1rem;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background-color: var(--blue-600);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.search-row button:hover {
  background-color: var(--navy);
}

.search-row button:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
}

.search-results {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.search-results li {
  padding: 0.55rem 0;
  border-top: 1px solid var(--blue-100);
  overflow-wrap: anywhere;
}

.search-results li:first-child {
  border-top: 0;
}

.search-results a {
  font-weight: 600;
  color: var(--blue-600);
}

.search-results span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
}

#search-status {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

footer {
  max-width: 920px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 2.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

footer p {
  margin: 0;
}

@media (max-width: 640px) {
  main {
    padding: 0 1rem 2rem;
  }

  section {
    padding: 0.9rem 0.95rem;
  }

  th,
  td {
    padding: 0.38rem 0.4rem;
  }

  section ul {
    columns: 1;
  }

  table {
    font-size: 0.82rem;
  }
}

@media (max-width: 720px) {
  th {
    white-space: normal;
  }

  .schools-colleges th:first-child,
  .schools-colleges td:first-child {
    width: 38%;
  }

  .schools-colleges th:nth-child(2),
  .schools-colleges td:nth-child(2) {
    width: 25%;
  }

  .schools-colleges th:nth-child(3),
  .schools-colleges td:nth-child(3) {
    width: 14%;
  }

  .schools-colleges th:last-child,
  .schools-colleges td:last-child {
    width: 23%;
  }
}
