/* Gateway layer: multi-university catalogue on top of base.css.
   Palette: Krishna-river deep blue + marigold, with a type colour per institution kind. */
:root{
  --navy:#0b2e4a; --navy-2:#10466f; --navy-3:#1b65a6; --navy-soft:#e5eff8;
  --saffron:#ee8a1c; --saffron-soft:#fdf1e1;
  --t-state-ou:#7a3fb3; --t-state:#10466f; --t-central:#15724a; --t-private:#b4531a; --t-school:#9a5b00;
}
.brand .logo{width:52px;height:52px;flex:none}
.brand .en-nm{font-size:clamp(1.05rem,2.2vw,1.4rem)}

/* hero with photo */
.hero.photo{background:#0b2e4a}
.hero.photo .bgimg{position:absolute;inset:0;background-size:cover;background-position:center;opacity:.38}
.hero.photo::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,rgba(11,46,74,.96) 0%,rgba(11,46,74,.82) 45%,rgba(11,46,74,.35) 100%)}
.hero.photo::before{z-index:1}
.hero.photo .container{z-index:2}
.finder{background:var(--surface);color:var(--ink);border-radius:16px;box-shadow:0 20px 50px rgba(0,0,0,.28);padding:20px;display:grid;gap:14px}
.finder h3{font-size:1.05rem}
.finder .row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
@media (max-width:520px){.finder .row{grid-template-columns:1fr}}
.photo-credit{position:absolute;right:10px;bottom:8px;z-index:3;font-size:.68rem;color:rgba(255,255,255,.7)}
.photo-credit a{color:rgba(255,255,255,.85)}

/* type chips */
.tchip{display:inline-flex;align-items:center;gap:6px;font-size:.72rem;font-weight:800;letter-spacing:.03em;padding:3px 9px;border-radius:999px;color:#fff;white-space:nowrap}
.tchip.state-ou{background:var(--t-state-ou)} .tchip.state{background:var(--t-state)} .tchip.central{background:var(--t-central)} .tchip.private{background:var(--t-private)} .tchip.school{background:var(--t-school)}

/* university cards */
.ucard{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow:hidden;color:inherit;transition:box-shadow .15s,transform .15s}
.ucard:hover{text-decoration:none;box-shadow:0 14px 34px rgba(11,46,74,.14);transform:translateY(-2px)}
.ucard .img{aspect-ratio:16/9;background:linear-gradient(135deg,var(--navy-2),var(--navy));background-size:cover;background-position:center;position:relative}
.ucard .img .tchip{position:absolute;left:12px;top:12px;box-shadow:0 2px 6px rgba(0,0,0,.25)}
.ucard .img .ph{position:absolute;inset:0;display:grid;place-items:center;color:rgba(255,255,255,.85);font-family:var(--f-serif);font-size:2.4rem;font-weight:700}
.ucard .bd{padding:16px 18px;display:flex;flex-direction:column;gap:10px;flex:1}
.ucard h3{font-size:1.05rem;line-height:1.3}
.ucard .loc{font-size:.82rem;color:var(--muted);display:flex;gap:6px;align-items:center}
.ucard .loc .icon{width:15px;height:15px}
.ucard .facts{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;border-top:1px solid var(--line);padding-top:12px;margin-top:auto}
.ucard .facts div{display:grid;gap:1px}
.ucard .facts b{font-size:1rem;font-variant-numeric:tabular-nums}
.ucard .facts span{font-size:.72rem;color:var(--muted)}

/* university page header */
.uhead{position:relative;color:#fff;min-height:320px;display:grid;align-items:end;background:var(--navy)}
.uhead .bgimg{position:absolute;inset:0;background-size:cover;background-position:center}
.uhead::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(8,30,50,.95) 0%,rgba(8,30,50,.55) 55%,rgba(8,30,50,.2) 100%)}
.uhead .container{position:relative;z-index:2;padding-block:28px 30px;display:grid;gap:10px}
.uhead h1{color:#fff;font-size:clamp(1.6rem,3.6vw,2.5rem)}
.uhead .crumbs a{color:#fff}
.uhead .meta{display:flex;gap:16px;flex-wrap:wrap;font-size:.9rem;color:#d6e3f2}

/* catalogue */
.catalog{display:grid;grid-template-columns:270px minmax(0,1fr);gap:24px;align-items:start}
@media (max-width:960px){.catalog{grid-template-columns:minmax(0,1fr)}}
.filters{position:sticky;top:64px;display:grid;gap:16px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:16px}
@media (max-width:960px){.filters{position:static}}
.filters h4{font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.fgroup{display:grid;gap:7px}
.fgroup label{display:flex;gap:8px;align-items:center;font-size:.9rem;cursor:pointer}
.fgroup input{accent-color:var(--navy-2);width:16px;height:16px}
.fgroup .ct{margin-left:auto;font-size:.75rem;color:var(--muted)}
.results-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.prow{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:16px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:14px 16px;color:inherit}
.prow+.prow{margin-top:10px}
.prow:hover{border-color:var(--navy-3);text-decoration:none}
.prow .thumb{width:64px;height:64px;border-radius:10px;background:var(--navy-soft);background-size:cover;background-position:center;display:grid;place-items:center;font-weight:800;color:var(--navy-2)}
.prow h3{font-size:1rem}
.prow .u{font-size:.82rem;color:var(--muted)}
.prow .tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}
.prow .price{text-align:right;display:grid;gap:4px;justify-items:end}
.prow .price b{font-size:1.1rem;font-variant-numeric:tabular-nums}
.prow .price span{font-size:.74rem;color:var(--muted)}
@media (max-width:620px){.prow{grid-template-columns:48px minmax(0,1fr)}.prow .thumb{width:48px;height:48px}.prow .price{grid-column:1/-1;justify-items:start;text-align:left;grid-auto-flow:column;align-items:center;justify-content:space-between}}
.cmp-toggle{display:inline-flex;align-items:center;gap:6px;font-size:.8rem;font-weight:600;color:var(--navy-3);cursor:pointer;background:none;border:0;padding:0}
.cmp-toggle input{accent-color:var(--navy-2)}
.cmpbar{position:fixed;left:50%;bottom:16px;transform:translateX(-50%);background:var(--ink);color:#fff;border-radius:12px;padding:10px 12px 10px 18px;display:flex;align-items:center;gap:14px;z-index:80;box-shadow:0 14px 40px rgba(0,0,0,.3);max-width:calc(100% - 32px)}
.cmpbar .btn{padding:8px 14px}

/* categories */
.cats{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:12px}
.cat{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:16px;display:grid;gap:6px;color:inherit}
.cat:hover{border-color:var(--navy-3);text-decoration:none}
.cat .ic{width:42px;height:42px;border-radius:10px;background:var(--navy-soft);color:var(--navy-2);display:grid;place-items:center}
.cat b{font-size:.98rem}
.cat span{font-size:.8rem;color:var(--muted)}

/* how it works */
.how{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:14px;counter-reset:h;list-style:none;padding:0;margin:0}
.how li{counter-increment:h;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:18px;display:grid;gap:6px;position:relative}
.how li::before{content:counter(h);width:30px;height:30px;border-radius:50%;background:var(--saffron);color:#fff;display:grid;place-items:center;font-weight:800}
.how b{font-size:1rem}
.how span{font-size:.88rem;color:var(--muted)}

/* compare table */
.cmp{min-width:720px}
.cmp th{width:170px}
.cmp td{vertical-align:top}
.cmp .hd{display:grid;gap:6px}
.cmp .hd .img{height:90px;border-radius:8px;background:var(--navy-soft);background-size:cover;background-position:center}

/* source / confidence */
.conf{display:inline-flex;align-items:center;gap:5px;font-size:.72rem;font-weight:700;padding:2px 8px;border-radius:999px}
.conf.official{background:var(--green-soft);color:var(--green)}
.conf.news{background:var(--navy-soft);color:var(--navy-2)}
.conf.aggregator{background:var(--amber-soft);color:var(--amber)}
.srcs{font-size:.8rem;color:var(--muted);display:grid;gap:4px;padding-left:18px;margin:0}

/* portal programme switcher */
.switcher{display:flex;gap:8px;flex-wrap:wrap}
.switcher button{display:flex;align-items:center;gap:10px;border:1px solid var(--line);background:var(--surface);border-radius:10px;padding:8px 12px;cursor:pointer;text-align:left}
.switcher button[aria-pressed="true"]{border-color:var(--navy-3);box-shadow:0 0 0 3px rgba(27,101,166,.15)}
.switcher .uimg{width:36px;height:36px;border-radius:8px;background:var(--navy-soft);background-size:cover;background-position:center;flex:none}
.switcher b{font-size:.85rem;display:block}
.switcher span{font-size:.72rem;color:var(--muted)}
.credit-list{display:grid;gap:12px}
.credit-list .row{display:grid;grid-template-columns:120px 1fr;gap:14px;align-items:center}
.credit-list .row div:first-child{height:70px;border-radius:8px;background-size:cover;background-position:center;background-color:var(--sunk)}
@media (max-width:700px){#route{grid-template-columns:minmax(0,1fr)!important}}
.hide-sm{}
@media (max-width:600px){.hide-sm{display:none!important}.topbar .switcher button span:last-child{display:none}}
.filters details{display:grid}
.fsum{font-weight:800;cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center}
.fsum::-webkit-details-marker{display:none}
.fsum::after{content:"▾";color:var(--muted)}
details[open]>.fsum{margin-bottom:12px}
.fbody{display:grid;gap:16px}
@media (min-width:961px){.fsum{pointer-events:none}.fsum::after{content:""}}
