/* education-rankings.css
   Styles for the Education Data Rankings dashboard.
   Reference this ONCE from your host page (e.g. wwwroot/index.html or _Host.cshtml) as a global
   stylesheet -- do NOT use Blazor scoped CSS (*.razor.css), because the charts and tables are
   injected into the DOM by JavaScript at runtime and scoped-CSS attributes would not reach them. */

  :root{
    --ink:#14211d; --muted:#5f6f69; --line:#e3e9e7; --bg:#f5f8f7;
    --brand:#386858; --brand-d:#2b5144; --brand-l:#4f8770; --brandwash:#eef4f1;
    --dist:#9aa7a2;
    --c0:#386858; --c1:#c9772f; --c2:#3b6ea5; --c3:#a8556f;
    --d0:#386858; --d1:#c9772f; --d2:#3b6ea5; --d3:#a8556f; --d4:#6a8f3c; --d5:#7a5aa0;
  }
  *{box-sizing:border-box}
  body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:var(--bg);line-height:1.45}
  header{background:var(--brand);color:#fff;padding:22px 28px}
  header h1{margin:0;font-size:20px;font-weight:700}
  header p{margin:4px 0 0;font-size:13px;opacity:.9}
  .tabs{display:flex;gap:4px;background:var(--brand-d);padding:0 28px}
  .tabs button{background:transparent;border:0;color:#dfeae6;padding:12px 18px;font-size:13.5px;font-weight:600;
    cursor:pointer;border-bottom:3px solid transparent}
  .tabs button:hover{color:#fff}
  .tabs button.active{color:#fff;border-bottom-color:#fff;background:rgba(255,255,255,.08)}
  .wrap{max-width:1080px;margin:0 auto;padding:22px 28px 60px}
  .card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:18px 20px;margin-bottom:20px}
  .step{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--brand);margin:0 0 10px}
  h3.blk{font-size:15px;color:var(--brand-d);margin:2px 0 8px}
  .gradebtns{display:flex;gap:10px;flex-wrap:wrap}
  .gradebtns button{flex:1;min-width:150px;padding:12px;border:1.5px solid var(--line);background:#fff;border-radius:8px;
    font-size:14px;font-weight:600;color:var(--ink);cursor:pointer;transition:.12s}
  .gradebtns button:hover{border-color:var(--brand-l)}
  .gradebtns button.active{background:var(--brand);border-color:var(--brand);color:#fff}
  .pickrow{display:flex;gap:16px;flex-wrap:wrap}
  .pickcol{flex:1;min-width:280px}
  label.fld{display:block;font-size:12px;font-weight:600;color:var(--muted);margin:0 0 4px}
  select,input[type=search]{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:8px;font-size:14px;background:#fff}
  select:focus,input:focus{outline:2px solid var(--brand-l);outline-offset:0}
  .list{margin-top:10px;max-height:280px;overflow:auto;border:1px solid var(--line);border-radius:8px}
  .list button{display:block;width:100%;text-align:left;padding:9px 12px;border:0;border-bottom:1px solid #eef2f1;
    background:#fff;cursor:pointer;font-size:13px}
  .list button:hover{background:var(--brandwash)}
  .list button:disabled{opacity:.4;cursor:not-allowed}
  .list .d{color:var(--muted);font-size:11.5px}
  .chips{display:flex;flex-wrap:wrap;gap:8px;min-height:20px}
  .chip{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border-radius:20px;color:#fff;font-size:13px;font-weight:600}
  .chip span.x{cursor:pointer;font-weight:700;opacity:.85}
  .chip span.x:hover{opacity:1}
  .note{font-size:12.5px;color:var(--muted)}
  .warn{color:#a3521a;font-weight:600;font-size:12.5px;margin-top:8px;min-height:16px}
  .legend{font-size:12px;color:var(--muted);margin:0 0 8px}
  .swatch{display:inline-block;width:11px;height:11px;border-radius:2px;margin-right:5px;vertical-align:middle}
  table{border-collapse:collapse;width:100%;font-size:13px;margin-top:6px}
  th,td{padding:8px 10px;border-bottom:1px solid var(--line);text-align:right}
  th:first-child,td:first-child,th:nth-child(2),td:nth-child(2){text-align:left}
  th{background:var(--brandwash);font-size:11.5px;text-transform:uppercase;letter-spacing:.04em;color:var(--brand-d)}
  .empty{color:var(--muted);font-size:14px;padding:30px 0;text-align:center}
  .foot{font-size:11.5px;color:var(--muted);margin-top:14px;border-top:1px solid var(--line);padding-top:12px}
  .charttitle{font-size:13.5px;font-weight:700;color:var(--brand-d);margin:6px 0 2px}
  .mbody h4{color:var(--brand-d);margin:16px 0 4px;font-size:14px}
  .mbody p{margin:4px 0;font-size:13.5px;color:#33403b}
  .mbody code{background:var(--brandwash);padding:1px 5px;border-radius:4px;font-size:12.5px}
