/* DScE frontend + student panel. Self-contained, no framework needed. */
:root{
  --ink:#0c2a27; --ink-soft:#44605b; --paper:#f4f7f5; --surface:#fff; --grid:#d9e4df; --line:#b9cbc4;
  --green:#0f5c4f; --green-deep:#0a3f37; --marigold:#f0a202; --marigold-soft:#fff1cc;
  --blue:#2d6a8e; --red:#c2412d; --red-soft:#fde8e4; --ok:#12573a; --ok-soft:#e3f4ea;
  --radius:14px;
  --font-display:'Young Serif','Hind Siliguri',Georgia,serif;
  --font-body:'Hind Siliguri',system-ui,-apple-system,'Segoe UI',sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;font-family:var(--font-body);font-size:1.0625rem;line-height:1.65;color:var(--ink);background:var(--paper)}
img,svg{max-width:100%;display:block}
a{color:var(--green);text-underline-offset:3px}
a:hover{color:var(--green-deep)}
h1,h2,h3{font-family:var(--font-display);font-weight:400;line-height:1.15;margin:0 0 .6em;letter-spacing:-.01em}
h1{font-size:clamp(2.1rem,6vw,3.6rem)}
h2{font-size:clamp(1.65rem,3.6vw,2.35rem)}
h3{font-size:1.3rem}
p{margin:0 0 1em;max-width:64ch}
:focus-visible{outline:3px solid var(--marigold);outline-offset:2px;border-radius:4px}
[hidden]{display:none!important}
.wrap{width:min(1120px,100% - 2rem);margin-inline:auto}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.sr-only:focus{position:fixed;left:1rem;top:1rem;width:auto;height:auto;clip:auto;background:#fff;padding:.6rem 1rem;z-index:100;border-radius:8px}
.lead{font-size:1.2rem;color:var(--ink-soft)}
.muted{color:var(--ink-soft)}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:46px;padding:.6rem 1.3rem;border-radius:999px;border:2px solid transparent;font:inherit;font-weight:600;text-decoration:none;cursor:pointer;transition:background .15s,color .15s,border-color .15s}
.btn-primary{background:var(--green);color:#fff}
.btn-primary:hover{background:var(--green-deep);color:#fff}
.btn-accent{background:var(--marigold);color:var(--ink)}
.btn-accent:hover{background:#ffb81f;color:var(--ink)}
.btn-line{border-color:var(--green);color:var(--green);background:transparent}
.btn-line:hover{background:var(--green);color:#fff}
.btn-sm{min-height:38px;padding:.35rem 1rem;font-size:.95rem}
.btn-block{width:100%}
.btn svg{width:18px;height:18px}

/* forms */
.field{display:grid;gap:.35rem;margin-bottom:1rem}
.field label{font-weight:600;font-size:.95rem}
.field .opt{font-weight:400;color:var(--ink-soft)}
.field input:not([type=checkbox]):not([type=radio]),.field select,.field textarea{width:100%;min-height:48px;padding:.6rem .85rem;border:1.5px solid var(--line);border-radius:10px;background:#fff;font:inherit;color:var(--ink)}
.field textarea{min-height:92px;resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--green);outline:3px solid rgba(240,162,2,.45);outline-offset:0}
.field input[type=file]{padding:.55rem;border-style:dashed}
.field.has-error input,.field.has-error select,.field.has-error textarea{border-color:var(--red)}
.field-error{color:var(--red);font-size:.9rem;font-weight:500}
.hint{color:var(--ink-soft);font-size:.9rem}
.pw{position:relative}
.pw input{padding-right:4.5rem!important}
.pw button{position:absolute;right:.4rem;top:50%;transform:translateY(-50%);border:0;background:none;color:var(--green);font:inherit;font-weight:600;font-size:.9rem;padding:.4rem .6rem;cursor:pointer}
.check{display:flex;align-items:center;gap:.6rem;margin-bottom:1rem}
.check input{width:20px;height:20px;accent-color:var(--green)}
.form-grid{display:grid;gap:0 1.25rem}
@media(min-width:700px){.form-grid.cols-2{grid-template-columns:1fr 1fr}.span-2{grid-column:1/-1}}
.flash{padding:.8rem 1rem;border-radius:10px;margin-bottom:1rem;font-weight:500}
.flash-ok{background:var(--ok-soft);color:var(--ok);border:1px solid #b8e0c8}
.flash-err{background:var(--red-soft);color:#8f2a1b;border:1px solid #f3c1b8}
.chip{display:inline-block;padding:.1rem .7rem;border-radius:999px;font-size:.85rem;font-weight:600}
.chip-pending{background:var(--marigold-soft);color:#6b4700}
.chip-ok{background:var(--ok-soft);color:var(--ok)}
.chip-bad{background:var(--red-soft);color:#8f2a1b}

/* header */
.site-header{position:sticky;top:0;z-index:40;background:rgba(244,247,245,.95);backdrop-filter:blur(8px);border-bottom:1px solid var(--grid)}
.bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:68px}
.brand{display:flex;align-items:center;gap:.7rem;text-decoration:none;color:var(--ink)}
.brand:hover{color:var(--ink)}
.brand-mark{width:38px;height:38px;flex:none}
.brand-name{display:block;font-family:var(--font-display);font-size:1.25rem;line-height:1}
.brand-sub{display:block;font-size:.72rem;color:var(--ink-soft);margin-top:3px;line-height:1.1}
.nav{display:none}
.nav-toggle{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border:1.5px solid var(--line);border-radius:12px;background:#fff;cursor:pointer;color:var(--ink)}
.nav-toggle svg{width:22px;height:22px}
.nav a.link{display:block;padding:.9rem .5rem;font-size:1.2rem;color:var(--ink);text-decoration:none;border-bottom:1px solid var(--grid)}
.nav a.link.active{color:var(--green);font-weight:700}
.nav-actions{display:grid;gap:.6rem;margin-top:1.25rem}
@media(max-width:899px){
  .nav.open{display:block;position:fixed;inset:68px 0 0 0;background:var(--paper);padding:1rem 1rem 2rem;overflow:auto}
  body.nav-open{overflow:hidden}
}
@media(min-width:900px){
  .nav{display:flex;align-items:center;gap:.25rem}
  .nav-toggle{display:none}
  .nav a.link{border:0;padding:.5rem .8rem;font-size:1rem;border-radius:999px}
  .nav a.link:hover{background:#e6eeea}
  .nav-actions{display:flex;margin:0 0 0 .75rem}
}

/* hero */
.hero{position:relative;padding:clamp(2rem,6vw,4.5rem) 0 clamp(2.5rem,6vw,5rem);overflow:hidden}
.hero::before{content:"";position:absolute;inset:0;background-image:linear-gradient(var(--grid) 1px,transparent 1px),linear-gradient(90deg,var(--grid) 1px,transparent 1px);background-size:36px 36px;opacity:.6;-webkit-mask-image:linear-gradient(180deg,#000 35%,transparent 100%);mask-image:linear-gradient(180deg,#000 35%,transparent 100%);pointer-events:none}
.hero-grid{position:relative;display:grid;gap:2.5rem;align-items:center}
@media(min-width:960px){.hero-grid{grid-template-columns:1.05fr .95fr;gap:3.5rem}}
.hero-cta{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.5rem}
.chart-card{margin:0;background:#fff;border:2px solid var(--ink);border-radius:var(--radius);padding:1rem 1rem .5rem;box-shadow:8px 8px 0 var(--marigold)}
.chart-card figcaption{font-weight:600;padding:.25rem .25rem .5rem}
.chart-card figcaption small{display:block;font-weight:400;color:var(--ink-soft)}
.chart-card text{font-family:var(--font-body);font-size:13px;fill:var(--ink-soft)}
.chart-card text.strong{fill:var(--ink);font-weight:700}
.chart-line{fill:none;stroke:var(--green);stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:1;animation:draw 1.8s .3s cubic-bezier(.3,.6,.2,1) forwards}
.chart-area{fill:var(--green);opacity:.09}
.chart-dot{fill:#fff;stroke:var(--green);stroke-width:3;opacity:0;animation:pop .3s ease-out forwards;animation-delay:calc(.3s + var(--i) * .2s)}
.chart-dot.chart-end{fill:var(--marigold);stroke:var(--ink)}
@keyframes draw{to{stroke-dashoffset:0}}
@keyframes pop{to{opacity:1}}
@media(prefers-reduced-motion:reduce){.chart-line{animation:none;stroke-dashoffset:0}.chart-dot{animation:none;opacity:1}html{scroll-behavior:auto}}

/* sections */
.section{padding:clamp(2.5rem,6vw,4.5rem) 0}
.section-alt{background:#fff;border-block:1px solid var(--grid)}
.section-head{max-width:60ch;margin-bottom:2rem}
.section-head p{color:var(--ink-soft)}
.page-head{padding:2.5rem 0 1.5rem}
.programmes{border-top:2px solid var(--ink)}
.prog{display:grid;gap:.5rem 2rem;align-items:center;padding:1.4rem 0;border-bottom:1px solid var(--grid)}
@media(min-width:760px){.prog{grid-template-columns:230px 1fr auto}}
.prog h3{margin:0;font-size:1.7rem}
.prog p{margin:0;color:var(--ink-soft)}
.ticks{display:flex;gap:5px;margin:.2rem 0 0}
.tick{width:22px;height:10px;border-radius:3px;background:var(--marigold)}
.cards{display:grid;gap:1.25rem;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr))}
.course{display:flex;flex-direction:column;background:#fff;border:1px solid var(--grid);border-radius:var(--radius);overflow:hidden}
.course-img{display:grid;place-items:center;aspect-ratio:16/10;background:var(--green);color:#fff;font-family:var(--font-display);font-size:2.4rem;overflow:hidden;text-decoration:none}
.course-img img{width:100%;height:100%;object-fit:cover}
.course-body{display:flex;flex-direction:column;gap:.35rem;padding:1rem 1.1rem 1.2rem;flex:1}
.course-tag{align-self:flex-start;font-size:.8rem;font-weight:600;background:var(--marigold-soft);color:#6b4700;padding:.1rem .65rem;border-radius:999px}
.course h3{margin:.25rem 0 0;font-size:1.25rem}
.course h3 a{color:inherit;text-decoration:none}
.course h3 a:hover{text-decoration:underline}
.course p{margin:0;color:var(--ink-soft);font-size:.98rem}
.course-meta{display:flex;flex-wrap:wrap;gap:.1rem 1rem;font-size:.92rem;color:var(--ink-soft)}
.course-foot{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding-top:.8rem}
.price{font-family:var(--font-display);font-size:1.25rem}
.steps{list-style:none;margin:0;padding:0;display:grid;gap:1.5rem;counter-reset:s}
@media(min-width:800px){.steps{grid-template-columns:repeat(4,1fr);gap:2rem}}
.steps li{position:relative;padding-left:3.3rem}
@media(min-width:800px){.steps li{padding:3.5rem 0 0}}
.steps li::before{counter-increment:s;content:counter(s);position:absolute;left:0;top:0;width:2.5rem;height:2.5rem;border-radius:50%;background:var(--ink);color:#fff;display:grid;place-items:center;font-family:var(--font-display)}
.steps h3{font-size:1.15rem;margin-bottom:.25rem}
.steps p{margin:0;color:var(--ink-soft);font-size:.98rem}
.people{display:grid;gap:1rem 1.5rem;grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}
.person{display:flex;gap:.9rem;align-items:center}
.avatar{flex:none;width:52px;height:52px;border-radius:50%;background:var(--green);color:#fff;display:grid;place-items:center;font-family:var(--font-display);overflow:hidden}
.avatar img{width:100%;height:100%;object-fit:cover}
.person strong{display:block;line-height:1.3}
.person span{font-size:.9rem;color:var(--ink-soft);line-height:1.3;display:block}
.band{background:var(--green-deep);color:#fff;border-radius:var(--radius);padding:clamp(1.5rem,4vw,3rem);display:grid;gap:1rem;justify-items:start}
.band h2{color:#fff;margin:0}
.band p{margin:0;color:#cfe3dd}
.filters{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1.25rem}
.filters a{padding:.4rem 1rem;border:1.5px solid var(--line);border-radius:999px;text-decoration:none;color:var(--ink);background:#fff;font-weight:500}
.filters a.on{background:var(--ink);color:#fff;border-color:var(--ink)}
.search{display:flex;gap:.5rem;margin-bottom:1rem;max-width:520px}
.search input{flex:1;min-width:0;min-height:46px;padding:.5rem .9rem;border:1.5px solid var(--line);border-radius:999px;font:inherit}
.detail{display:grid;gap:2rem;padding-bottom:2rem}
@media(min-width:920px){.detail{grid-template-columns:1fr 340px;align-items:start}.facts{position:sticky;top:90px}}
.facts{background:#fff;border:1px solid var(--grid);border-radius:var(--radius);padding:1.25rem}
.facts dl{margin:0 0 1rem}
.facts div{display:flex;justify-content:space-between;gap:1rem;padding:.6rem 0;border-bottom:1px solid var(--grid)}
.facts dt{color:var(--ink-soft)}
.facts dd{margin:0;font-weight:600;text-align:right}
.prose{max-width:68ch}
.prose img{border-radius:10px}
.contact-list{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}
.contact-list .tile a{font-weight:600}
.pagination{list-style:none;display:flex;justify-content:center;gap:.6rem;padding:0;margin:2rem 0 0}
.pagination a,.pagination span{display:inline-block;padding:.45rem 1.1rem;border:1.5px solid var(--green);border-radius:999px;text-decoration:none;font-weight:600}
.pagination .disabled span{opacity:.4;border-color:var(--line)}
.site-footer{background:var(--ink);color:#d3e2dc;padding:3rem 0 5rem;margin-top:3rem}
.site-footer a{color:#fff}
.site-footer .brand{color:#fff}
.foot-grid{display:grid;gap:2rem}
@media(min-width:800px){.foot-grid{grid-template-columns:1.4fr 1fr 1.2fr}}
.site-footer h3{font-family:var(--font-body);font-weight:700;font-size:1rem;color:#fff;margin-bottom:.6rem}
.site-footer ul{list-style:none;margin:0;padding:0;display:grid;gap:.35rem}
.copy{margin-top:2rem;padding-top:1rem;border-top:1px solid rgba(255,255,255,.15);font-size:.9rem;color:#9db5ad}

/* auth */
.auth{min-height:100vh;display:grid}
@media(min-width:900px){.auth{grid-template-columns:5fr 6fr}}
.auth-side{display:none;background:var(--green-deep);color:#fff;padding:3rem;flex-direction:column;justify-content:space-between}
.auth-side .brand{color:#fff}
.auth-side h2{color:#fff;font-size:2.2rem}
.auth-side p{color:#cfe3dd}
@media(min-width:900px){.auth-side{display:flex}}
.auth-main{display:grid;place-items:center;padding:1.25rem}
.auth-card{width:min(100%,440px);padding:1rem 0 2rem}
.auth-card .brand{margin-bottom:1.5rem}
@media(min-width:900px){.auth-card .brand{display:none}}
.auth-card h1{font-size:2rem}

/* student panel */
body.panel{background:var(--paper)}
.shell{min-height:100vh;display:grid}
@media(min-width:1024px){.shell{grid-template-columns:260px minmax(0,1fr)}}
.side{display:none}
@media(min-width:1024px){.side{display:flex;flex-direction:column;position:sticky;top:0;height:100vh;background:var(--ink);color:#d3e2dc;padding:1.25rem 1rem}}
.side .brand{color:#fff;padding:.25rem .5rem 1.25rem}
.side nav{display:grid;gap:.25rem}
.navlink{display:flex;align-items:center;gap:.75rem;padding:.7rem .85rem;border-radius:10px;color:inherit;text-decoration:none;font-weight:500;background:none;border:0;font:inherit;width:100%;cursor:pointer;text-align:left}
.navlink svg,.tab svg,.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.navlink:hover{background:rgba(255,255,255,.08);color:#fff}
.navlink.active{background:var(--marigold);color:var(--ink)}
.side-user{margin-top:auto;display:grid;gap:.5rem;padding-top:1rem;border-top:1px solid rgba(255,255,255,.15)}
.side-who{display:flex;gap:.7rem;align-items:center;padding:.4rem .5rem}
.side-who strong{display:block;color:#fff;line-height:1.2}
.side-who span{font-size:.85rem;color:#9db5ad}
.topbar{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.65rem 1rem;background:#fff;border-bottom:1px solid var(--grid);position:sticky;top:0;z-index:30}
.topbar form{margin:0}
.icon-btn{display:grid;place-items:center;width:44px;height:44px;border:1.5px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);cursor:pointer}
@media(min-width:1024px){.topbar{display:none}}
.tabbar{position:fixed;inset:auto 0 0 0;z-index:35;display:grid;grid-template-columns:repeat(5,1fr);background:#fff;border-top:1px solid var(--grid);padding-bottom:env(safe-area-inset-bottom)}
@media(min-width:1024px){.tabbar{display:none}}
.tab{display:grid;justify-items:center;gap:2px;padding:.5rem .25rem;font-size:.72rem;font-weight:600;color:var(--ink-soft);text-decoration:none}
.tab svg{width:22px;height:22px}
.tab.active{color:var(--green);box-shadow:inset 0 3px 0 var(--marigold)}
.main{padding:1.25rem 1rem 6.5rem;width:100%;max-width:1040px}
@media(min-width:1024px){.main{padding:2.25rem 2.5rem 3rem}}
.page-title{margin-bottom:1.25rem}
.page-title h1{font-size:clamp(1.8rem,4vw,2.4rem);margin:0}
.page-title p{margin:.25rem 0 0;color:var(--ink-soft)}
.grid-2{display:grid;gap:1rem;margin-bottom:1rem}
@media(min-width:760px){.grid-2{grid-template-columns:1.2fr 1fr}}
.tile{background:#fff;border:1px solid var(--grid);border-radius:var(--radius);padding:1.25rem}
.tile h2{font-family:var(--font-body);font-weight:700;font-size:1.05rem;margin-bottom:.6rem;letter-spacing:0}
.tile p:last-child{margin-bottom:0}
.figure{font-family:var(--font-display);font-size:clamp(2rem,7vw,2.9rem);line-height:1.1;margin:.1rem 0 .5rem}
.tile-due{background:var(--ink);border-color:var(--ink);color:#fff}
.tile-due h2,.tile-due p{color:#cfe3dd}
.tile-due .figure{color:var(--marigold)}
.tile-due .btn-line{border-color:#fff;color:#fff}
.tile-due .btn-line:hover{background:#fff;color:var(--ink)}
.rows{list-style:none;margin:0;padding:0}
.rows li{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.7rem 0;border-top:1px solid var(--grid)}
.rows li:first-child{border-top:0;padding-top:0}
.rows small{display:block;color:var(--ink-soft)}
.empty{border:2px dashed var(--line);border-radius:var(--radius);padding:1.75rem 1.25rem;text-align:center;background:#fff}
.empty p{margin-inline:auto}
.strip{display:grid;grid-template-columns:repeat(3,1fr);gap:.6rem;margin-bottom:1rem}
.strip .tile{padding:.85rem}
.strip small{display:block;color:var(--ink-soft);font-size:.85rem}
.strip b{font-family:var(--font-display);font-weight:400;font-size:clamp(1.05rem,4vw,1.5rem)}
.table-wrap{background:#fff;border:1px solid var(--grid);border-radius:var(--radius);overflow:hidden}
.rt{width:100%;border-collapse:collapse}
.rt th,.rt td{padding:.8rem 1rem;text-align:left;border-bottom:1px solid var(--grid)}
.rt th{font-size:.85rem;color:var(--ink-soft);font-weight:600;background:#eef4f1}
.rt .num{text-align:right;font-variant-numeric:tabular-nums}
.rt tfoot td{font-weight:700;background:#eef4f1;border-bottom:0}
@media(max-width:699px){
  .rt thead{position:absolute;left:-9999px}
  .rt,.rt tbody,.rt tfoot,.rt tr{display:block}
  .rt tr{padding:.7rem 1rem;border-bottom:1px solid var(--grid)}
  .rt td{display:flex;justify-content:space-between;gap:1rem;border:0;padding:.2rem 0;text-align:right}
  .rt td::before{content:attr(data-label);font-weight:600;color:var(--ink-soft);text-align:left}
  .rt tfoot tr{background:#eef4f1;border-bottom:0}
  .rt tfoot td{background:none}
}
.stepper-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:.6rem;font-weight:600}
.progress{height:8px;background:var(--grid);border-radius:99px;overflow:hidden;margin-bottom:1.5rem}
.progress i{display:block;height:100%;width:0;background:var(--green);border-radius:99px;transition:width .3s}
.step{border:0;padding:0;margin:0 0 1rem;min-width:0}
.step legend{font-family:var(--font-display);font-size:1.45rem;margin-bottom:.2rem;padding:0}
.step .sub{color:var(--ink-soft);margin-bottom:1.25rem}
.step-nav{display:flex;justify-content:space-between;gap:.75rem;margin-top:1.5rem}
html:not(.js) .js-only{display:none}
.edu{border:1px solid var(--grid);border-radius:12px;padding:1rem 1rem 0;margin-bottom:1rem;background:#fafcfb}
.edu h3{font-family:var(--font-body);font-weight:700;font-size:1rem;margin-bottom:.75rem}
.summary{background:var(--marigold-soft);border:1px solid #f2d98f;border-radius:var(--radius);padding:1rem 1.1rem;margin-bottom:1.25rem}
.summary strong{display:block}
.form-card{background:#fff;border:1px solid var(--grid);border-radius:var(--radius);padding:1.25rem}
@media(min-width:700px){.form-card{padding:1.75rem}}
.profile-head{display:flex;align-items:center;gap:1rem;margin-bottom:1.25rem}
.profile-head .avatar{width:72px;height:72px;font-size:1.6rem}
.actions{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1rem}
