/* ==========================================================================
   The browse frame — one surface for courses and universities.
   A rail of tick-box filters down the left, the Courses | Universities toggle
   above the results. Written against both shells: the portal's variables
   (--text, --primary, --surface) and the website's (--ink, --orange, --white),
   each with a literal fallback, so the same file reads correctly in either.
   ========================================================================== */

.br-layout{display:grid;grid-template-columns:274px minmax(0,1fr);gap:22px;align-items:start}
.br-main{min-width:0}

/* ---- the rail ---------------------------------------------------------- */
/* The rail is as tall as its own content and scrolls with the page — no inner
   scrollbar, which is what makes a long list of ticks feel like part of the
   search rather than a window parked beside it. */
.br-rail{padding:14px 14px 18px;border-radius:14px;border:1px solid var(--line,#e6e8f0);
  background:var(--surface,#fff)}
.br-rail::-webkit-scrollbar{width:9px}
.br-rail::-webkit-scrollbar-thumb{background:#c9cfdb;border-radius:99px;border:3px solid transparent;background-clip:content-box}
.br-railhead{display:none;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.br-rt{font-weight:800;font-size:15px;color:var(--text,var(--ink,#1b1f33))}
.br-x{display:none;background:none;border:0;font:inherit;font-size:18px;line-height:1;cursor:pointer;
  color:var(--muted,#6b7191)}

.br-group{padding:12px 0;border-top:1px solid var(--line,#eef0f4)}
.br-group:first-of-type{border-top:0;padding-top:2px}
.br-h{display:block;margin:0 0 8px;font-size:11.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;
  color:var(--muted,#6b7191)}
.br-q,.br-text{width:100%;box-sizing:border-box;font:inherit;font-size:13.5px;margin:0 0 8px;padding:9px 11px;
  border-radius:9px;border:1px solid var(--line,#d8dee9);background:var(--surface-2,var(--bg,#fafbff));
  color:var(--text,var(--ink,#1b1f33))}
.br-q:focus,.br-text:focus{outline:2px solid var(--primary,var(--orange,#f4620c));outline-offset:1px;background:var(--surface,#fff)}

.br-opts{display:block}
/* One choice per line, box first. The reset of label{text-transform…} matters on
   the portal, where every label on the page is uppercased. */
.br-rail label.br-o,.br-rail .br-o{display:flex;align-items:center;gap:9px;margin:0;padding:6px 4px;cursor:pointer;
  font-size:13.5px;font-weight:500;letter-spacing:normal;text-transform:none;line-height:1.35;
  color:var(--text,var(--ink,#1b1f33))}
.br-o:hover{color:var(--primary,var(--orange,#f4620c))}
.br-o input{-webkit-appearance:none;appearance:none;position:relative;flex:0 0 17px;width:17px;height:17px;margin:0;padding:0;
  cursor:pointer;border:1.5px solid #c3c9d6;background:var(--surface,#fff)}
.br-o input[type=checkbox]{border-radius:5px}
.br-o input[type=radio]{border-radius:99px}
.br-o input:hover{border-color:#98a2b6}
.br-o input:checked{background:var(--primary,var(--orange,#f4620c));border-color:var(--primary,var(--orange,#f4620c))}
.br-o input[type=checkbox]:checked:after{content:"";position:absolute;left:4.5px;top:1.5px;width:4px;height:9px;
  border:solid #fff;border-width:0 2.4px 2.4px 0;transform:rotate(42deg)}
.br-o input[type=radio]:checked:after{content:"";position:absolute;left:4px;top:4px;width:7px;height:7px;border-radius:99px;background:#fff}
.br-o input:focus-visible{outline:2px solid var(--primary,var(--orange,#f4620c));outline-offset:2px}
.br-o span{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.br-o em{flex:0 0 auto;font-style:normal;font-size:11.5px;font-weight:700;color:var(--muted,#98a2b6);
  background:var(--surface-2,#f3f5f9);border-radius:99px;padding:1px 7px}
.br-o.br-off{display:none!important}
/* .br-rail .br-o further up sets display:flex with a higher specificity than a
   bare .br-o.br-tail would have, so the hidden rows are named from the rail. */
.br-o.br-tail,.br-rail .br-o.br-tail{display:none}
.br-group.br-open .br-o.br-tail,.br-rail .br-group.br-open .br-o.br-tail{display:flex}

.br-more{background:none;border:0;margin:4px 0 0;padding:2px 4px;cursor:pointer;font:inherit;font-size:12.5px;
  font-weight:700;color:var(--primary,var(--orange,#f4620c))}
.br-more:hover{text-decoration:underline}
.br-none{font-size:13px;color:var(--muted,#6b7191);padding:4px 0}
.br-note{display:block;margin-top:6px;font-size:11.5px;color:var(--muted,#6b7191)}

.br-pair{display:flex;align-items:center;gap:7px}
.br-pair input{width:100%;min-width:0;box-sizing:border-box;font:inherit;font-size:13.5px;padding:8px 10px;
  border-radius:9px;border:1px solid var(--line,#d8dee9);background:var(--surface,#fff);color:var(--text,var(--ink,#1b1f33))}
.br-dash{color:var(--muted,#98a2b6);font-size:13px}

/* ---- the bar above the tabs --------------------------------------------- */
.br-bar{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin:0 0 18px;padding:14px;
  border-radius:14px;border:1px solid var(--line,#e6e8f0);background:var(--surface,#fff)}
.br-bf{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1 1 170px}
.br-bf-q{flex:2 1 260px}
.br-bl{font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted,#6b7191)}
.br-bq{width:100%;box-sizing:border-box;font:inherit;font-size:14px;padding:11px 13px;border-radius:10px;
  border:1px solid var(--line,#d8dee9);background:var(--surface-2,var(--bg,#fafbff));color:var(--text,var(--ink,#1b1f33))}
.br-bq:focus{outline:2px solid var(--primary,var(--orange,#f4620c));outline-offset:1px;background:var(--surface,#fff)}
/* the dropdowns keep their own button styling; in the bar they only need to fill
   the column and match the search box height */
.br-bf .ms-btn{min-height:44px}
.br-bf .ccp{width:100%}
/* the bar while a debounced dropdown choice is on its way to the server */
.br-bar.br-busy{opacity:.62;pointer-events:none}
.br-bar.br-busy:after{content:'Filtering…';position:absolute;top:6px;right:12px;font-size:11.5px;
  font-weight:700;color:var(--primary,var(--orange,#f4620c))}
.br-bar{position:relative}

/* ---- an on/off switch ----------------------------------------------------- */
.br-rail label.br-sw,.br-rail .br-sw{display:flex;align-items:center;gap:10px;margin:0;padding:2px 0;cursor:pointer;
  font-size:13.5px;font-weight:500;letter-spacing:normal;text-transform:none;color:var(--text,var(--ink,#1b1f33))}
.br-sw input{-webkit-appearance:none;appearance:none;position:relative;flex:0 0 42px;width:42px;height:24px;margin:0;
  cursor:pointer;border-radius:99px;border:1px solid #c3c9d6;background:var(--surface-2,#eef0f4);transition:background .14s,border-color .14s}
.br-sw input:after{content:"";position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:99px;
  background:#fff;box-shadow:0 1px 2px rgba(20,25,60,.25);transition:transform .14s ease}
.br-sw input:checked{background:var(--primary,var(--orange,#f4620c));border-color:var(--primary,var(--orange,#f4620c))}
.br-sw input:checked:after{transform:translateX(18px)}
.br-sw input:focus-visible{outline:2px solid var(--primary,var(--orange,#f4620c));outline-offset:2px}
.br-sw span{flex:1 1 auto;min-width:0}

/* ---- the tuition slider --------------------------------------------------- */
.br-sl{position:relative;height:26px;margin:2px 2px 0}
.br-sl-rail{position:absolute;top:11px;left:0;right:0;height:4px;border-radius:99px;background:var(--surface-2,#e6e8f0)}
.br-sl-fill{position:absolute;top:0;bottom:0;left:0;border-radius:99px;background:var(--primary,var(--orange,#f4620c))}
/* two native ranges stacked; only the thumbs and the top of the track take events */
.br-sl input[type=range]{position:absolute;top:0;left:0;width:100%;height:26px;margin:0;padding:0;
  -webkit-appearance:none;appearance:none;background:none;pointer-events:none}
.br-sl input[type=range]::-webkit-slider-runnable-track{height:26px;background:none;border:0}
.br-sl input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;pointer-events:auto;
  width:18px;height:18px;margin-top:4px;border-radius:99px;cursor:grab;
  background:var(--surface,#fff);border:2px solid var(--primary,var(--orange,#f4620c));
  box-shadow:0 1px 3px rgba(20,25,60,.25)}
.br-sl input[type=range]::-moz-range-track{height:26px;background:none;border:0}
.br-sl input[type=range]::-moz-range-thumb{pointer-events:auto;width:16px;height:16px;border-radius:99px;cursor:grab;
  background:var(--surface,#fff);border:2px solid var(--primary,var(--orange,#f4620c))}
.br-sl input[type=range]:focus-visible{outline:2px solid var(--primary,var(--orange,#f4620c));outline-offset:2px}
.br-sl-out{display:block;margin-top:6px;font-size:12.5px;font-weight:700;color:var(--text,var(--ink,#1b1f33))}

/* ---- the strip above the results --------------------------------------- */
/* One bordered box holding the tabs, the page count, the pager, share and the
   grid/list switch on a single line — the reference site's result header. */
.br-top{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:0 0 14px;padding:9px 12px;
  border-radius:14px;border:1px solid var(--line,#e6e8f0);background:var(--surface,#fff)}
.br-tabs{display:inline-flex;gap:4px;padding:4px;border-radius:12px;background:var(--surface-2,var(--bg,#f2f3f5));
  border:1px solid var(--line,#e6e8f0)}
.br-tabs a{display:inline-flex;align-items:center;gap:7px;padding:8px 15px;border-radius:9px;font-size:14px;
  font-weight:700;color:var(--muted,#6b7191);white-space:nowrap}
.br-tabs a:hover{color:var(--text,var(--ink,#1b1f33))}
.br-tabs a.on{background:var(--surface,#fff);color:var(--primary,var(--orange,#f4620c));
  box-shadow:0 1px 2px rgba(20,25,60,.10)}
.br-tabs .br-n{font-size:11.5px;font-weight:800;color:var(--muted,#98a2b6)}
.br-tabs a.on .br-n{color:var(--primary,var(--orange,#f4620c))}
.br-topright{display:flex;align-items:center;gap:10px;margin-left:auto;flex-wrap:wrap}
.br-pages{font-size:13px;color:var(--muted,#6b7191)}
.br-pages b{color:var(--text,var(--ink,#1b1f33))}
.br-open{display:none;align-items:center;gap:7px;padding:9px 14px;border-radius:10px;font:inherit;font-size:14px;
  font-weight:700;cursor:pointer;border:1px solid var(--line,#d8dee9);
  background:var(--surface,#fff);color:var(--text,var(--ink,#1b1f33))}
.br-clear{font-size:13px;font-weight:700;color:var(--primary,var(--orange,#f4620c))}

/* the sort control sits in the chips row above the results, not in the rail */
label.br-sort{display:inline-flex;align-items:center;gap:7px;margin:0;padding:0;font-size:12px;font-weight:700;
  letter-spacing:.04em;text-transform:uppercase;color:var(--muted,#6b7191)}
.br-sort select{font:inherit;font-size:13px;font-weight:600;text-transform:none;letter-spacing:normal;
  padding:7px 10px;border-radius:9px;border:1px solid var(--line,#d8dee9);
  background:var(--surface,#fff);color:var(--text,var(--ink,#1b1f33))}

/* ---- the active filters, one removable tag each ------------------------- */
/* An orange pill with its own ✕, the way the reference portals mark the choice
   that is currently narrowing the list. */
.br-chips{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 16px}
/* The removable filter tag: a soft wash of whatever the brand color is, so the
   pill never fights the accent it is written on top of. The orange wash below is
   the fallback for a browser with no color-mix(). */
.br-chip{display:inline-flex;align-items:center;gap:7px;padding:6px 12px;border-radius:99px;font-size:12.5px;
  font-weight:700;color:var(--primary,#f4620c);background:rgba(244,98,12,.10);
  border:1px solid rgba(244,98,12,.36)}
.br-chip{background:color-mix(in srgb,var(--primary,#f4620c) 10%,transparent);
  border-color:color-mix(in srgb,var(--primary,#f4620c) 34%,transparent)}
.br-chip a{color:var(--primary,#f4620c);text-decoration:none;font-size:12px;line-height:1;opacity:.7}
.br-chip a:hover{opacity:1;color:var(--primary,#f4620c)}
.br-chip.clear{color:var(--primary,var(--orange,#f4620c));background:transparent;border-style:dashed;
  cursor:pointer;text-decoration:none}
.br-cend{display:inline-flex;align-items:center;gap:12px;margin-left:auto;flex-wrap:wrap}
.br-view{display:inline-flex;padding:3px;gap:3px;border-radius:10px;border:1px solid var(--line,#d8dee9);
  background:var(--surface-2,var(--bg,#f2f3f5))}
.br-view button{border:0;background:none;cursor:pointer;font:inherit;font-size:15px;line-height:1;font-weight:700;
  width:34px;height:32px;padding:0;border-radius:8px;color:var(--muted,#6b7191);white-space:nowrap}
.br-view button.on{background:var(--surface,#fff);color:var(--primary,var(--orange,#f4620c));
  box-shadow:0 1px 2px rgba(20,25,60,.10)}
/* the Export button, at the right end of the strip above the results */
.br-export{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border-radius:10px;font-size:13px;
  font-weight:700;text-decoration:none;white-space:nowrap;color:var(--text,var(--ink,#1b1f33));
  border:1px solid var(--line,#dfe4ec);background:var(--surface,#fff)}
.br-export:hover{border-color:var(--primary,var(--orange,#f4620c));color:var(--primary,var(--orange,#f4620c))}
/* grid ⇄ rows, whichever card family the page happens to use */
.br-grid.br-rows{display:flex;flex-direction:column;gap:14px}
.br-grid.br-rows .p-card{flex-direction:row}
.br-grid.br-rows .p-card .head{flex:0 0 220px}
.br-grid.br-rows .p-card .body{flex:1 1 auto;min-width:0}
.br-grid.br-rows .p-card .foot{flex-direction:column;align-items:flex-start;gap:10px;
  border-top:0;border-left:1px solid var(--line,#e6e8f0)}
.br-grid.br-rows .pf-card{flex-direction:row}
.br-grid.br-rows .pf-card .pf-body{flex:1 1 auto;min-width:0}
.br-grid.br-rows .pf-card .pf-foot{flex-direction:column;align-items:flex-start;gap:10px}

/* without JavaScript every rail still needs a way in */
.br-apply{display:block;width:100%;margin:12px 0 0;padding:10px 12px;border-radius:10px;font:inherit;
  font-size:14px;font-weight:700;cursor:pointer;border:0;
  background:var(--primary,#f4620c);color:var(--on-primary,#fff)}
.br-apply:hover{filter:brightness(.94)}

/* the portal's bulk-download bar, parked above the results */
.br-bulk{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 14px;padding:10px 14px;
  border-radius:12px;border:1px solid var(--line,#e6e8f0);background:var(--surface-2,var(--bg,#f6f7fb))}
.br-bulk label{display:flex;align-items:center;gap:7px;margin:0;font-size:13px;font-weight:600;
  letter-spacing:normal;text-transform:none;color:var(--text,var(--ink,#1b1f33))}
.br-bulk .spacer{margin-left:auto}

/* ---- the tick on a result card ------------------------------------------ */
/* The same box as the rail's, on the card itself: what you tick to narrow a
   search is what you tick to carry a row away with you. */
label.br-pick,.br-pick{display:inline-flex;align-items:center;flex:0 0 auto;margin:0;padding:0;cursor:pointer;
  font-size:inherit;font-weight:inherit;letter-spacing:normal;text-transform:none;line-height:1}
.br-pick input{-webkit-appearance:none;appearance:none;position:relative;flex:0 0 18px;width:18px;height:18px;
  min-width:18px;margin:0;padding:0;cursor:pointer;border:1.5px solid #c3c9d6;border-radius:5px;
  background:var(--surface,#fff)}
.br-pick input:hover{border-color:#98a2b6}
.br-pick input:checked{background:var(--primary,var(--orange,#f4620c));border-color:var(--primary,var(--orange,#f4620c))}
.br-pick input:checked:after{content:"";position:absolute;left:5px;top:2px;width:4px;height:9px;
  border:solid #fff;border-width:0 2.4px 2.4px 0;transform:rotate(42deg)}
.br-pick input:focus-visible{outline:2px solid var(--primary,var(--orange,#f4620c));outline-offset:2px}
.p-card:has(> .head > .br-pick input:checked),.pf-card:has(> .pf-head > .br-pick input:checked){
  box-shadow:0 0 0 2px var(--primary,var(--orange,#f4620c))}

/* ---- the bar that rises while rows are ticked --------------------------- */
.br-sel{position:fixed;left:50%;bottom:18px;z-index:80;display:flex;align-items:center;gap:14px;flex-wrap:wrap;
  width:min(940px,calc(100vw - 24px));transform:translate(-50%,130%);visibility:hidden;opacity:0;
  padding:12px 16px;border-radius:14px;background:#1b1f33;color:#fff;
  box-shadow:0 18px 44px rgba(10,14,26,.36);transition:transform .2s ease,opacity .2s ease,visibility .2s}
.br-sel.on{transform:translate(-50%,0);visibility:visible;opacity:1}
.br-sel[hidden]{display:none}
.br-sel-n{font-size:14px;font-weight:600;letter-spacing:normal;text-transform:none}
.br-sel-n b{font-size:16.5px;font-weight:800;color:#ffb27a}
.br-sel-a{display:flex;align-items:center;gap:9px;margin-left:auto;flex-wrap:wrap}
.br-sel-b{display:inline-flex;align-items:center;gap:6px;padding:9px 15px;border-radius:10px;
  border:1px solid rgba(255,255,255,.26);background:rgba(255,255,255,.08);color:#fff;font:inherit;font-size:13.5px;
  font-weight:700;letter-spacing:normal;text-transform:none;text-decoration:none;cursor:pointer}
.br-sel-b:hover{background:rgba(255,255,255,.17)}
.br-sel-b.pri{background:var(--primary,#f4620c);border-color:var(--primary,#f4620c);color:#fff}
/* The compare button is the one action in the bar, so it stays a solid, bright
   pill and keeps its label on hover — it never goes dull or blank. */
.br-sel-b.pri:hover,.br-sel-b.pri:focus{background:var(--primary-d,#d9560a);border-color:var(--primary-d,#d9560a);
  color:#fff;filter:none}
.br-sel-b.alt{background:none;border-color:transparent;color:#c5ccdd;text-decoration:underline}
.br-sel-b.alt:hover{background:none;color:#fff}

/* ---- the numbered pager above the results ------------------------------- */
.br-pager{display:flex;align-items:center}
.br-pgs{display:inline-flex;align-items:center;gap:4px;flex-wrap:wrap}
.br-pgs a,.br-pgs span{display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;
  padding:0 7px;border-radius:9px;font-size:13px;font-weight:700;text-decoration:none;
  color:var(--text,var(--ink,#1b1f33));border:1px solid var(--line,#dfe4ec);background:var(--surface,#fff)}
.br-pgs a:hover{border-color:var(--primary,var(--orange,#f4620c));color:var(--primary,var(--orange,#f4620c))}
.br-pgs .cur{background:var(--primary,var(--orange,#f4620c));border-color:var(--primary,var(--orange,#f4620c));color:#fff}
.br-pgs .off{opacity:.45}
.br-pgs .dots{min-width:16px;padding:0;border:0;background:none;color:var(--muted,#98a2b6)}

/* ---- share this search --------------------------------------------------- */
.br-sharebtn{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:10px;
  border:1px solid var(--line,#dfe4ec);background:var(--surface,#fff);cursor:pointer;
  color:var(--text,var(--ink,#1b1f33))}
.br-sharebtn:hover{border-color:var(--primary,var(--orange,#f4620c));color:var(--primary,var(--orange,#f4620c))}
.br-modal{position:fixed;inset:0;z-index:120;display:grid;place-items:center;padding:18px;background:rgba(10,14,26,.5)}
.br-modal[hidden]{display:none}
.br-modal-c{width:min(470px,100%);padding:18px;border-radius:16px;background:var(--surface,#fff);
  box-shadow:0 24px 60px rgba(10,14,26,.34)}
.br-modal-h{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:16px;font-weight:800;
  color:var(--text,var(--ink,#1b1f33))}
.br-modal-h button{background:none;border:0;font:inherit;font-size:17px;line-height:1;cursor:pointer;
  color:var(--muted,#6b7191);padding:2px 6px}
.br-modal-h button:hover{color:#e5484d}
.br-modal-s{margin:8px 0 14px;font-size:13px;line-height:1.5;color:var(--muted,#6b7191)}
.br-modal-l{display:flex;align-items:stretch;gap:8px}
.br-modal-l input{flex:1 1 auto;min-width:0;width:auto;font:inherit;font-size:13px;padding:10px 12px;
  border-radius:10px;border:1px solid var(--line,#d8dee9);background:var(--surface-2,var(--bg,#f6f8fc));
  color:var(--text,var(--ink,#1b1f33))}
.br-copy{flex:0 0 auto;padding:0 16px;border-radius:10px;border:0;cursor:pointer;font:inherit;font-size:13.5px;
  font-weight:700;background:var(--primary,#f4620c);color:var(--on-primary,#fff)}
.br-copy:hover{filter:brightness(.94)}
.br-modal-n{margin:12px 0 0;font-size:12px;line-height:1.55;color:var(--muted,#6b7191)}

/* ---- the comparison table ------------------------------------------------ */
.cmp{margin:0 0 14px;padding:16px 18px;border-radius:14px;border:1px solid var(--line,#e6e8f0);
  background:var(--surface,#fff)}
.cmp h1{margin:0;font-size:19px}
.cmp-sub{margin:6px 0 0;font-size:13px;color:var(--muted,#6b7191)}
.cmp-wrap{padding:4px;border-radius:14px;border:1px solid var(--line,#e6e8f0);background:var(--surface,#fff);overflow:auto}
.cmp-t{width:100%;min-width:640px;border-collapse:collapse;font-size:13.5px}
.cmp-t th,.cmp-t td{padding:11px 13px;border-bottom:1px solid var(--line,#eef0f4);text-align:left;vertical-align:top}
.cmp-t thead th{position:sticky;top:0;z-index:1;border-bottom:2px solid var(--line,#dfe4ec);background:var(--surface,#fff)}
.cmp-t tbody th{width:170px;font-weight:700;color:var(--muted,#6b7191);background:var(--surface-2,var(--bg,#f6f8fc))}
.cmp-t tbody tr:hover td{background:var(--surface-2,var(--bg,#f6f8fc))}
.cmp-t del{color:var(--muted,#98a2b6)}
.cmp-name{display:flex;gap:9px;align-items:flex-start;font-weight:800;font-size:13.5px}
.cmp-name a{color:inherit;text-decoration:none}
.cmp-name a:hover{color:var(--primary,var(--orange,#f4620c))}
.cmp-uni{display:block;font-weight:600;font-size:12px;color:var(--muted,#6b7191)}
.cmp-logo{width:38px;height:38px;flex:0 0 auto;object-fit:contain;padding:4px;border-radius:9px;
  border:1px solid var(--line,#dfe4ec);background:var(--surface,#fff)}
.cmp-logo.ph{display:flex;align-items:center;justify-content:center;font-weight:800;color:var(--navy,#123a6b)}
@media (max-width:1040px){.cmp-t tbody th{width:120px}}
/* one action column per record: this site's page, then the application */
.cmp-acts{display:flex;flex-direction:column;gap:8px;vertical-align:top}
.cmp-acts .bc-btn{width:100%}
.cmp-t tfoot th{width:170px;padding-top:16px}
.cmp-foot-t{font-size:10.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted,#98a2b6)}

/* ---- the comparison, opened as a popup over the search -------------------- */
/* The same table compare.php draws, fetched with ?embed=1 and shown in a dialog
   so the list you were comparing stays behind it. */
body.cmp-lock{overflow:hidden}
.cmp-modal{position:fixed;inset:0;z-index:130;display:none}
.cmp-modal.on{display:block}
.cmp-modal-bg{position:absolute;inset:0;background:rgba(10,14,26,.55)}
.cmp-modal-box{position:relative;top:50%;left:50%;transform:translate(-50%,-50%);
  width:min(1080px,calc(100vw - 28px));max-height:88vh;display:flex;flex-direction:column;
  border-radius:16px;background:var(--surface,#fff);box-shadow:0 30px 70px rgba(10,14,26,.4);overflow:hidden}
.cmp-modal-h{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:0 0 auto;
  padding:16px 20px;border-bottom:1px solid var(--line,#e6e8f0);font-size:17px;font-weight:800;
  color:var(--text,var(--ink,#1b1f33))}
.cmp-modal-h button{background:none;border:0;font:inherit;font-size:20px;line-height:1;cursor:pointer;
  color:var(--muted,#6b7191);padding:2px 8px}
.cmp-modal-h button:hover{color:#e5484d}
.cmp-modal-b{flex:1 1 auto;overflow:auto;padding:16px 20px 22px;background:var(--surface-2,var(--bg,#f6f8fc))}
.cmp-modal-b .cmp-wrap{background:var(--surface,#fff)}
.cmp-loading{padding:40px 10px;text-align:center;font-size:14px;color:var(--muted,#6b7191)}

/* ---- a rail that is a drawer on small screens -------------------------- */
.br-scrim{display:none;position:fixed;inset:0;z-index:90;background:rgba(10,14,26,.44)}
.br-rail.br-drawer{position:fixed;z-index:95;top:0;left:0;bottom:0;width:min(330px,90vw);max-height:none;
  overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c3c9d6 transparent;
  border-radius:0;transform:translateX(-102%);transition:transform .2s ease;box-shadow:0 20px 50px rgba(10,14,26,.3)}
.br-rail.br-drawer.br-show{transform:none}
.br-rail.br-drawer .br-railhead{display:flex}
.br-rail.br-drawer .br-x{display:block}

@media (max-width:1040px){
  .br-layout{grid-template-columns:1fr}
  .br-rail{display:none}
  .br-rail.br-drawer{display:block}
  .br-open{display:inline-flex}
  .br-scrim.on{display:block}
}

@media (max-width:700px){
  .br-sel{flex-direction:column;align-items:stretch;gap:10px;bottom:12px}
  .br-sel-a{margin-left:0;justify-content:flex-end}
  .br-sel-b{padding:8px 12px;font-size:13px}
  /* The search bar stacks one control per line so each keeps a thumb-sized box. */
  .br-bar{padding:12px;gap:12px}
  .br-bf,.br-bf-q{flex:1 1 100%}
  /* The result header box: tabs take the full width, the count/pager/share/view
     strip drops under them and spreads across the row. */
  .br-top{padding:10px;gap:10px}
  .br-tabs{width:100%}
  .br-tabs a{flex:1 1 0;justify-content:center;padding:8px 10px;font-size:13.5px}
  .br-topright{width:100%;margin-left:0;justify-content:space-between;gap:8px}
  .br-pages{font-size:12px}
}

@media (prefers-reduced-motion:reduce){
  .br-rail.br-drawer{transition:none}
  .br-sel{transition:none}
}

/* ==========================================================================
   The result card — one component for the website and for the portal, for a
   course and for an institution, so the two tabs and the two shells cannot drift
   apart. Pictures across the top from Admin → Universities' gallery, the logo in
   a white disc over their bottom-left corner, the name (out to the institution's
   own site), the facts in two columns, Details and Apply along the base.
   It is written against both variable sets, each with a literal fallback, like
   the rest of this file.
   ========================================================================== */
.bc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:18px}
.bc-grid.br-rows{grid-template-columns:minmax(0,1fr)}

.bc-card{display:flex;flex-direction:column;min-width:0;padding:0 16px 15px;
  border:1px solid var(--line,#e6e8f0);border-radius:16px;background:var(--surface,#fff)}
.bc-card:hover{border-color:#d5dbe8;box-shadow:0 10px 26px rgba(20,25,60,.10)}
/* the same tick that carries a row into a comparison marks it while held */
.bc-card:has(.br-pick input:checked){box-shadow:0 0 0 2px var(--primary,var(--orange,#f4620c))}

.bc-media{position:relative;margin:0 -16px;height:152px;background:var(--surface-2,#f3f5f9)}
.bc-shots{display:grid;grid-template-columns:repeat(3,1fr);gap:2px;height:100%}
.bc-shots img{display:block;width:100%;height:100%;object-fit:cover}
/* the band is the top edge of the card, so its outer corners follow the radius;
   overflow stays visible on the band itself, or the disc gets cut off */
.bc-shots img:first-child{border-top-left-radius:15px}
.bc-shots img:last-child{border-top-right-radius:15px}
.bc-logo{position:absolute;left:14px;bottom:-26px;z-index:2;display:grid;place-items:center;
  width:56px;height:56px;border-radius:99px;overflow:hidden;background:var(--surface,#fff);
  border:1px solid var(--line,#e6e8f0);box-shadow:0 4px 12px rgba(20,25,60,.16)}
.bc-logo img{width:36px;height:36px;object-fit:contain}
.bc-logo.inline{position:static;flex:0 0 auto;width:48px;height:48px;box-shadow:none}
.bc-logo.inline img{width:32px;height:32px}
.bc-init{font-size:16px;font-weight:800;color:var(--primary,var(--orange,#f4620c))}

.bc-body{padding-top:36px}
.bc-noshot .bc-body{padding-top:14px}
.bc-top{display:flex;align-items:flex-start;gap:10px}
/* the title clears the disc hanging over the band */
.bc-card:not(.bc-noshot) .bc-top,
.bc-card:not(.bc-noshot) .bc-sub{margin-left:64px}
.bc-name{flex:1 1 auto;min-width:0;margin:0;font-size:16px;font-weight:800;line-height:1.32}
.bc-name a{display:block;color:var(--text,var(--ink,#1b1f33));text-decoration:none}
.bc-name a:hover{color:var(--primary,var(--orange,#f4620c))}
.bc-name i{font-style:normal;font-weight:700;font-size:11.5px;margin-left:4px;color:var(--muted,#98a2b6)}
.bc-top .br-pick{margin-top:4px}
.bc-sub{margin-top:5px;font-size:13px;line-height:1.45;color:var(--muted,#6b7191);overflow-wrap:anywhere}
.bc-sub.dim{font-size:12.5px;color:#98a2b6}
.bc-sub a{color:inherit;text-decoration:none;border-bottom:1px solid transparent}
.bc-sub a:hover{color:var(--primary,var(--orange,#f4620c));border-bottom-color:currentColor}

.bc-rows{display:grid;grid-template-columns:repeat(auto-fit,minmax(132px,1fr));gap:11px 14px;
  margin:16px 0 0;padding:14px 0 0;border-top:1px solid var(--line,#eef0f4)}
.bc-row{margin:0;min-width:0}
.bc-row dt{font-size:10.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted,#98a2b6)}
.bc-row dd{margin:3px 0 0;font-size:13.5px;font-weight:700;color:var(--text,var(--ink,#1b1f33));overflow-wrap:anywhere}
.bc-row dd em{font-style:normal;font-size:11.5px;font-weight:600;color:var(--muted,#98a2b6)}
.bc-row dd del{margin-right:5px;font-size:12px;font-weight:600;color:#98a2b6}

.bc-tags{display:flex;flex-wrap:wrap;gap:6px;margin:13px 0 0}
.bc-tag{display:inline-flex;align-items:center;padding:4px 9px;border-radius:99px;font-size:11.5px;font-weight:700;
  color:var(--muted,#6b7191);background:var(--surface-2,#f3f5f9);border:1px solid var(--line,#eef0f4)}
.bc-tag.pg{background:#EDE9FE;color:#6D28D9;border-color:#DDD6FE}
.bc-tag.ug{background:#E6F4EA;color:#137333;border-color:#D2EBD9}
.bc-tag.moi{background:#E9F7F3;color:#1E8A76;border-color:#D3EFE8}
.bc-tag.money{background:#FFF4E6;color:#B25000;border-color:#FFE3C4}

.bc-foot{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:16px 0 0;padding-top:14px;
  border-top:1px solid var(--line,#eef0f4)}
.bc-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px 16px;border-radius:10px;
  font-size:13.5px;font-weight:800;letter-spacing:.01em;white-space:nowrap;text-decoration:none;cursor:pointer;
  border:1px solid var(--line,#d8dee9);background:var(--surface,#fff);color:var(--text,var(--ink,#1b1f33))}
.bc-btn.line:hover{border-color:var(--primary,var(--orange,#f4620c));color:var(--primary,var(--orange,#f4620c))}
.bc-btn.solid{margin-left:auto;background:var(--primary,#f4620c);border-color:var(--primary,#f4620c);
  color:var(--on-primary,#fff)}
.bc-btn.solid:hover{filter:brightness(.94);color:var(--on-primary,#fff)}

@media (max-width:700px){
  .bc-grid{grid-template-columns:minmax(0,1fr)}
  .bc-rows{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bc-btn.solid{margin-left:0}
  .bc-foot{flex-direction:column;align-items:stretch}
  .bc-btn{justify-content:center}
}
