.edtech-filters{display:flex;flex-wrap:wrap;gap:.8rem;margin:2rem 0 0;align-items:end}
.edtech-filters label{display:grid;gap:.35rem;min-width:0;flex:0 1 11rem;color:var(--ink-soft);font:600 .78rem/1.4 system-ui}
.edtech-filters input,.edtech-filters select{width:100%;min-width:0}
.edtech-clear-all,.edtech-clear,.edtech-sheet-open{border:1px solid var(--line);border-radius:6px;background:#fff;padding:.4rem .7rem;font:600 .78rem/1.3 system-ui;color:var(--ink);cursor:pointer}
.edtech-clear-all:hover,.edtech-clear:hover,.edtech-sheet-open:hover{border-color:var(--teal,#0f7c72)}
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Tabs keep the page short: one table at a time. */
.edtech-tabs{display:flex;gap:.3rem;margin-top:1.5rem;border-bottom:2px solid var(--ink)}
.edtech-tabs [role=tab]{border:1px solid var(--line);border-bottom:0;border-radius:6px 6px 0 0;background:#f7f5ef;padding:.55rem .9rem;font:650 .9rem/1.2 system-ui;color:var(--ink-soft);cursor:pointer}
.edtech-tabs [role=tab][aria-selected=true]{background:var(--ink);border-color:var(--ink);color:#fff}
.edtech-tabs [role=tab][aria-selected=true] .result-count{background:#fff;color:var(--ink)}
/* A shorter heading so the tables start near the top. */
.edtech-page .data-heading h1{font-size:clamp(1.8rem,3.6vw,2.6rem);max-width:none}
.edtech-page .data-heading p:last-child{max-width:56rem}
.edtech-panel{margin-top:1rem}
.edtech-panel .panel-note{margin:.4rem 0 0;color:var(--ink-soft);font-size:.86rem;max-width:56rem}
.edtech-toolbar{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;margin:.9rem 0 .5rem}
.edtech-showing{margin:0;color:var(--ink-soft);font:600 .82rem/1.4 system-ui;margin-right:auto}
.edtech-sheet-open{display:none}

/* Bounded scroll box: sticky header row and sticky district column. */
.edtech-scroll{position:relative;max-height:70vh;overflow:auto;border:1px solid var(--line);border-radius:6px;background:var(--paper,#fff);overscroll-behavior:contain}
.edtech-scroll:focus-visible{outline:2px solid var(--teal,#0f7c72);outline-offset:2px}
.edtech-table{min-width:100%}
.edtech-table thead th{position:sticky;top:0;z-index:2;background:var(--paper,#fffdf8);vertical-align:bottom}
.edtech-table .edtech-sticky{position:sticky;left:0;z-index:1;background:var(--paper,#fffdf8);box-shadow:1px 0 0 var(--line)}
.edtech-table thead th.edtech-sticky{z-index:3}
.edtech-th{display:flex;align-items:center;gap:.3rem}
.edtech-table th[data-numeric] .edtech-th{justify-content:flex-end}
.edtech-table th[aria-sort=ascending] .edtech-th span::after{content:" ▲";font-size:.6rem}
.edtech-table th[aria-sort=descending] .edtech-th span::after{content:" ▼";font-size:.6rem}
.edtech-filter-btn{display:inline-flex;align-items:center;justify-content:center;min-width:1.6rem;min-height:1.6rem;padding:0 .25rem;border:1px solid transparent;border-radius:4px;background:none;color:var(--ink-faint,#8a877e);cursor:pointer}
.research-table th .edtech-filter-btn{border:1px solid transparent}
.edtech-filter-btn:hover,.edtech-filter-btn:focus-visible,.edtech-filter-btn[aria-expanded=true]{color:var(--ink);border-color:var(--line)}
.edtech-filter-btn.is-active{color:#fff;background:var(--teal,#0f7c72);border-color:var(--teal,#0f7c72)}
.edtech-table td{overflow-wrap:break-word}.edtech-quote blockquote,.edtech-source{overflow-wrap:anywhere}
.edtech-table td.edtech-wide{min-width:16rem}
.edtech-table td.edtech-sticky{min-width:9rem}
.edtech-table td:last-child{min-width:12rem}
.edtech-num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.edtech-highlight{font-weight:700;color:var(--teal,#0f7c72)}
.edtech-estimate summary{cursor:pointer;list-style:none;font-weight:650;color:var(--ink-soft);text-decoration:underline dotted}
.edtech-estimate summary::-webkit-details-marker{display:none}
.edtech-estimate p{margin:.35rem 0 0;max-width:18rem;white-space:normal;text-align:left;font-size:.74rem;line-height:1.45;color:var(--ink-soft)}
.edtech-tilde{margin-right:.05rem}
.edtech-tag{display:inline-block;padding:.05rem .4rem;border-radius:4px;background:#f1efe8;color:var(--ink-soft);font:600 .7rem/1.5 system-ui}
.edtech-state{display:inline-block;margin-left:.35rem;color:var(--ink-soft);font:600 .72rem/1 system-ui}
.edtech-pill{display:inline-block;padding:.15rem .5rem;border-radius:999px;background:#e8f1ee;color:var(--teal,#0f7c72);font:650 .74rem/1.4 system-ui;white-space:nowrap}
.edtech-status{display:inline-block;padding:.05rem .4rem;border-radius:4px;background:#f1efe8;color:var(--ink-soft);font:600 .66rem/1.5 system-ui;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap}
.edtech-status.is-verified{background:#dff1e8;color:#0f7a4e}
.edtech-source{color:var(--teal,#0f7c72);font-weight:650;font-size:.82rem;text-decoration:none}.edtech-source:hover{text-decoration:underline}
.edtech-quote{margin-top:.35rem;font-size:.78rem}.edtech-quote summary{cursor:pointer;color:var(--ink-soft)}
.edtech-quote blockquote{margin:.4rem 0 0;padding:.5rem .65rem;border-left:3px solid var(--teal,#0f7c72);background:#f7f5ef;white-space:pre-wrap;line-height:1.5;max-width:34rem}
.edtech-sources{margin-top:.35rem;font-size:.78rem}.edtech-sources summary{cursor:pointer;color:var(--teal,#0f7c72);font-weight:650}
.edtech-sources ul{margin:.4rem 0 0;padding:0;list-style:none;display:grid;gap:.5rem}
.edtech-source-date{display:block;color:var(--ink-soft);font-size:.72rem}
.edtech-sources blockquote{margin:.25rem 0 0;padding:.4rem .6rem;border-left:3px solid var(--line);background:#f7f5ef;white-space:pre-wrap;line-height:1.45;max-width:34rem;overflow-wrap:anywhere}
.edtech-empty td{color:var(--ink-soft);text-align:center;padding:1.5rem}
.edtech-page .data-method{margin-top:1.5rem;color:var(--ink-soft);font-size:.8rem;max-width:52rem}

/* Column menu: popover on desktop, bottom sheet on phones. */
.edtech-menu{position:absolute;z-index:50;width:min(300px,calc(100vw - 16px));box-sizing:border-box;padding:.7rem;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:0 12px 32px rgba(0,0,0,.16);font:500 .84rem/1.4 system-ui}
.edtech-menu.is-sheet,.edtech-sheet{position:fixed;left:0;right:0;bottom:0;top:auto;width:100%;max-height:80vh;overflow:auto;border-radius:12px 12px 0 0}
.edtech-sheet{z-index:40}
.edtech-menu-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}
.edtech-menu button{font:600 .8rem/1.3 system-ui;cursor:pointer}
.edtech-menu-close,.edtech-sheet-close{border:0;background:none;font-size:1.2rem!important;line-height:1;padding:.2rem .4rem}
.edtech-menu-sort{display:grid;grid-template-columns:1fr 1fr;gap:.35rem;margin-bottom:.6rem}
.edtech-menu-sort button,.edtech-menu-foot button,.edtech-menu-links button{border:1px solid var(--line);border-radius:5px;background:#fff;padding:.35rem .5rem}
.edtech-menu-sort button[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:#fff}
.edtech-menu-search,.edtech-menu-range input,.edtech-menu-contains input{width:100%;box-sizing:border-box}
.edtech-menu-links{display:flex;gap:.35rem;margin:.45rem 0}
.edtech-menu-values{list-style:none;margin:0;padding:0;max-height:14rem;overflow:auto;border:1px solid var(--line-soft,#eee);border-radius:4px}
.edtech-menu-values label{display:flex;align-items:center;gap:.4rem;padding:.25rem .4rem;cursor:pointer}
.edtech-menu-values label:hover{background:#f7f5ef}
.edtech-menu-count{margin-left:auto;color:var(--ink-soft);font-variant-numeric:tabular-nums}
.edtech-menu-range{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}
.edtech-menu-range label,.edtech-menu-contains{display:grid;gap:.2rem;color:var(--ink-soft);font-weight:600;font-size:.76rem}
.edtech-menu-foot{display:flex;justify-content:space-between;gap:.4rem;margin-top:.7rem}
.edtech-menu-done{background:var(--ink)!important;color:#fff;border-color:var(--ink)!important}
.edtech-sheet-list{list-style:none;margin:0;padding:0;display:grid;gap:.35rem}
.edtech-sheet-list .edtech-filter-btn{width:100%;justify-content:flex-start;padding:.55rem .6rem;border:1px solid var(--line);color:var(--ink);font:600 .86rem/1.3 system-ui}

@media(max-width:760px){
  .edtech-filters{gap:.6rem;margin-top:1.2rem}
  .edtech-filters label{flex:1 1 calc(50% - .3rem)}
  .edtech-filters label:nth-of-type(3){flex:1 1 100%}
  .edtech-sheet-open{display:inline-block}
  .edtech-scroll{max-height:70vh}
  /* Phones: each row is a card inside the bounded scroll box; filters live in the sheet. */
  .edtech-table,.edtech-table tbody,.edtech-table tr,.edtech-table td{display:block;width:100%;box-sizing:border-box}
  .edtech-table thead{display:none}
  .edtech-table .edtech-sticky{position:static;box-shadow:none}
  .edtech-table tbody tr{padding:.8rem .7rem;border-bottom:1px solid var(--line)}
  .edtech-table td{padding:.2rem 0;border:0;text-align:left}
  .edtech-table td.edtech-wide,.edtech-table td:last-child,.edtech-table td.edtech-sticky{min-width:0}
  .edtech-table td::before{content:attr(data-label);display:block;color:var(--ink-soft);font:600 .68rem/1.5 system-ui;text-transform:uppercase;letter-spacing:.04em}
  .edtech-table td.metric-missing{display:none}
  .edtech-num{white-space:normal}
  .edtech-empty td::before{content:none}
  .edtech-quote blockquote,.edtech-sources blockquote{max-width:none}
}
