  .table-neighdata {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: 20px;
  }
  
  /* ---------- Table Base Styles ---------- */
.table-neighdata {
  width: 100%;
  margin: 16px auto;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #111;
  box-sizing: border-box;
}

.table-neighdata table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.table-neighdata thead th {
  background: #cdd8e3;
  font-weight: 700;
  text-align: center;
  padding: 12px 10px;
  border: 1px solid #e2e4e7;
  font-size: 0.94rem;
} 

.table-neighdata thead th.purp1985 {
    background: #d080d7;
}
.table-neighdata thead th.aqua1985 {
    background: #70bac9;
}
.table-neighdata thead th.turq1985 {
    background: #75e2df;
}

.table-neighdata tbody td {
  padding: 10px;
  border: 1px solid #e6e8eb;
  vertical-align: top;
  font-size: 0.92rem;
  line-height: 1.35;
  word-break: break-word;
  text-align: center;
}

.table-neighdata tbody tr:hover {
  background: #fbfcfd;
}
ul.demos_bsc {
  width: 100%;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #111;
  box-sizing: border-box;
  margin: 25px 0;
}
ul.demos_bsc li {
  padding: 8px 10px;
  line-height: 1.5;
}

.llimitsconf tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}
    .school-list {
        max-width: 500px;
        margin: 40px 0;
        padding: 0 20px;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    }
    .school-item {margin-bottom: 28px; }
    .school__name {font-size: 1.125rem; font-weight: 600; color: #1e293b;  margin: 0 0 2px 0; line-height: 1.1; }
    .school__address {font-size: 1.025rem; line-height: 1; font-style: normal; }
    .school__address span {display: inline; }   

@media (min-width: 680px) {
  .table-neighdata th, .table-neighdata td {
    padding: 12px 14px;
  }
}

/* ---------- Accessibility helpers ---------- */
/* Visually hide but keep for screen readers */
/* .table-neighdata .visually-hidden {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  white-space: nowrap !important;
  width: 1px !important;
} */

@media (max-width: 679px) {

  /* Turn table elements into blocks */
  .table-neighdata table,
  .table-neighdata thead,
  .table-neighdata tbody,
  .table-neighdata th,
  .table-neighdata td,
  .table-neighdata tr {
    display: block;  
    width: 100%;
  }

.table-neighdata tbody td::before {
  content: attr(data-label) ": ";   
  display: inline-block;           
  font-weight: 600;
  color: #333;
  width: 48%;                       
  min-width: 120px;                 
  padding-right: 8px;
  text-align: left;
  white-space: normal;             
}

  /* Hide the table header visually but keep it for screen readers */
  .table-neighdata thead {
  }
  .table-neighdata thead tr {
    position: absolute;
    left: -9999px;
    top: -9999px;
  }

  /* Each row becomes a card */
  .table-neighdata tbody tr {
    border: 1px solid #e6e8eb;
    margin: 0 0 1rem 0;
    padding: 0.6rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.03);
  }
.table-neighdata tbody tr td:first-child {
        background-color: #f9d3ff !important;
        padding-left: 6px;
    }

.table-neighdata tbody td {
  display: flex;
  flex-wrap: wrap;          
  justify-content: flex-start;
  align-items: baseline;
  padding: 8px 0;
  border: none;
  border-bottom: 1px solid #f0f1f3;
}

td[data-label="County"]::before {
        content: "" !important;        /* removes "County:" label entirely */
        /* Or use: content: "Area:";  if you prefer a different word */
    }
td[data-label="County"] {
        color: #19678b !important;
        font-weight: 900 !important;
        text-decoration: underline !important;
        font-size: 1.05rem;
    }

  /* Remove last cell divider */
  .table-neighdata tbody tr td:last-child {
    border-bottom: none;
  }

  /* Label (left) and value (right) inside each td */
  .table-neighdata tbody td::before {
    content: attr(data-label);
    flex: 0 0 35%;
    max-width: 35%;
    font-weight: 700;
    padding-right: 0.6rem;
    white-space: normal;
    line-height: 1.2;
    color: #333;
  }
  .table-neighdata tbody td > * {
    flex: 1 1 auto;
  } 

  /* Improve tap targets and readability */
  .table-neighdata tbody td {
    font-size: 0.95rem;
  }
  .school-item { padding: 20px 10px;}
  .school__name { font-size: 1.125rem;}
  .school__address {font-size: 0.9625rem;
   }
}

/* ---------- Focus styles (keyboard) ---------- */
.table-neighdata a:focus,
.table-neighdata button:focus,
.table-neighdata td:focus {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
  border-radius: 4px;
}


/* ---------- Print adjustments ---------- */
@media print {
  .table-neighdata table { border: none; }
  .table-neighdata thead { display: table-header-group; position: static; left: auto; top: auto; }
  .table-neighdata tbody tr { display: table-row; border: none; page-break-inside: avoid; }
  .table-neighdata tbody td { display: table-cell; border: 1px solid #ccc; }
}