/* UAS Mandya - site styles. Order: base, header/menu, hero, home sections, polish, responsive overrides, header leaders, inner pages (bottom). */
:root{color-scheme:light;--bg:#fff;--tint:#f0f0f8;--surface:#fff;--ink:#1a1a2e;--muted:#4d4d66;--line:#dcdcec;--green:#3c4094;--green2:#2e7d3f;--gold:#e8b828;--onGreen:#fff;--alert:#fff3cf;--alertInk:#4a3600;--focus:#0a5bd8;
box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
html{height:100%;scroll-padding-top:env(safe-area-inset-top,0px)}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font:400 16px/1.6 "Noto Sans","Noto Sans Kannada",system-ui,sans-serif}
h1,h2,h3{font-family:Literata,"Noto Serif Kannada",Georgia,serif;line-height:1.2;margin:0}
a{color:inherit}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
:focus-visible{outline:3px solid var(--focus);outline-offset:2px;box-shadow:0 0 0 2px #fff}
.wrap{max-width:1200px;margin:0 auto;padding:0 20px}
.skip{position:absolute;left:-999px}.skip:focus{left:8px;top:8px;background:#fff;color:#000;padding:8px;z-index:50}
/* announcement */
.strip{background:var(--alert);color:var(--alertInk);font-size:.95rem}
.strip .wrap{display:flex;gap:12px;align-items:center;justify-content:space-between;padding-top:8px;padding-bottom:8px}
.strip button{background:none;border:1px solid currentColor;color:inherit;border-radius:4px;padding:2px 10px;cursor:pointer}
/* header */
.util{background:var(--green);color:var(--onGreen);font-size:.85rem}
.util .wrap{display:flex;flex-wrap:wrap;gap:6px 20px;justify-content:space-between;padding-top:6px;padding-bottom:6px}
.util a{text-decoration:none}.util a:hover{text-decoration:underline}
.util nav{display:flex;gap:16px;flex-wrap:wrap}
header.site{background:var(--surface)}
.bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none}
.logo{width:56px;height:56px;flex:none;border-radius:50%}
.mark{width:48px;height:48px;border-radius:50%;background:var(--green);color:var(--gold);display:grid;place-items:center;font:700 .95rem Literata,serif;border:2px solid var(--gold)}
.brand b{display:block;font:700 1.15rem/1.15 Literata,serif}.brand small{color:var(--muted);font-size:.8rem}
nav.main ul{display:flex;gap:2px;list-style:none;margin:0;padding:0;flex-wrap:wrap}
nav.main a{display:block;padding:8px 11px;text-decoration:none;font-weight:600;font-size:.93rem;border-radius:6px}
nav.main a:hover{background:var(--tint)}
.menu-btn{display:none;background:var(--green);color:#fff;border:0;border-radius:6px;padding:8px 14px;font:inherit;cursor:pointer}
/* hero */
.hero{padding:28px 0 8px}
.hero-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:24px;align-items:stretch}
.carousel{background:var(--surface);border:1px solid var(--line);border-radius:10px;overflow:hidden;display:flex;flex-direction:column}
.slides{position:relative;aspect-ratio:16/9;background:var(--green)}
.slide{position:absolute;inset:0;opacity:0;transition:opacity .6s;display:flex;align-items:flex-end;padding:14px}
.slide.on{opacity:1}
.slide span{background:rgba(0,0,0,.55);color:#fff;font-size:.78rem;padding:2px 8px;border-radius:4px}
.s1{background:repeating-linear-gradient(100deg,#2f6b4f 0 14px,#3b7d5d 14px 28px)}
.s2{background:linear-gradient(180deg,#9fc3d6 0 38%,#d8b45a 38% 62%,#6f8f3d 62%)}
.s3{background:repeating-linear-gradient(0deg,#8aa73f 0 10px,#5f8a32 10px 20px)}
.s4{background:linear-gradient(180deg,#b9d3c1 0 45%,#2b5a3d 45%)}
.cap{padding:16px 20px 8px;flex:1}
.cap h2{font-size:1.35rem}.cap p{margin:6px 0 0;color:var(--muted)}
.cap a{font-weight:600;color:var(--green2)}
.ctrl{display:flex;align-items:center;gap:8px;padding:8px 20px 16px}
.ctrl button{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:6px;min-width:40px;height:36px;cursor:pointer;font:inherit}
.dots{display:flex;gap:6px;margin-left:auto}
.dots button{min-width:0;width:24px;height:24px;border:0;background:none;padding:0;position:relative}
.dots button::before{content:"";position:absolute;inset:5px;border-radius:50%;border:2px solid var(--muted);background:var(--surface)}
.dots button[aria-current="true"]::before{background:var(--green2);border-color:var(--green2)}
/* notices */
.notices{background:var(--surface);border:1px solid var(--line);border-radius:10px;display:flex;flex-direction:column;min-height:0}
.notices h2{font-size:1.2rem;padding:16px 20px 8px}
.nh{display:flex;align-items:center;justify-content:space-between;padding-right:14px}
.nh button{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:6px;padding:4px 10px;font:inherit;font-size:.82rem;cursor:pointer}
.new.b2{background:var(--green);color:#fff}
.catsel{display:block;margin:0 14px 12px;padding:8px 32px 8px 12px;font:600 .88rem "Noto Sans",sans-serif;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:6px;cursor:pointer}
.ntfcat{margin:8px 0 0;max-width:280px}
.list{list-style:none;margin:0;padding:0;flex:1;overflow:auto;max-height:340px}
.list li{border-bottom:1px solid var(--line)}
.list a{display:grid;grid-template-columns:54px 1fr;gap:12px;padding:11px 20px;text-decoration:none}
.list a:hover{background:var(--tint)}
.d{text-align:center;font-size:.72rem;line-height:1.1;color:var(--muted)}.d b{display:block;font:700 1.35rem Literata,serif;color:var(--ink)}
.t{font-size:.94rem;line-height:1.4}
.m{font-size:.78rem;color:var(--muted);margin-top:2px}
.new{background:var(--gold);color:#2a2000;font-size:.7rem;font-weight:700;padding:0 6px;border-radius:3px;margin-left:6px}
.pin{border-left:4px solid var(--gold)}
.empty{padding:22px 20px;color:var(--muted)}
.more{padding:12px 20px;font-weight:600}.more a{color:var(--green2)}
/* sections */
section.blk{padding:44px 0 8px}
.blk>.wrap>h2{font-size:1.6rem;margin-bottom:6px}.lead{color:var(--muted);max-width:62ch;margin:0 0 22px}
/* Fixed column count, not auto-fit: auto-fit's column count depends on container width *and* lets a
   card with more text force its own track wider than the rest (the same "CSS Grid pitfall" as the
   Departments faculty cards - see HANDOFF), which is what made these tiles look randomly placed instead
   of a clean grid. minmax(0,1fr) plus min-width:0 on the tiles keeps every column identical regardless
   of content length. */
.quick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.quick a{display:block;min-width:0;background:var(--green);color:var(--onGreen);border-radius:8px;padding:16px;text-decoration:none;font-weight:600;overflow-wrap:anywhere}
.quick a small{display:block;font-weight:400;opacity:.85}
.quick a:hover{background:#2b2e72;color:#fff}
@media (max-width:700px){.quick{grid-template-columns:minmax(0,1fr)}}
.cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:18px}
.col{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:18px 20px}
.col h3{font-size:1.1rem;margin-bottom:4px}.col p{margin:4px 0;color:var(--muted);font-size:.92rem}
.tw{overflow-x:auto;background:var(--surface);border:1px solid var(--line);border-radius:10px}
table{border-collapse:collapse;width:100%;min-width:720px;font-size:.92rem}
th,td{text-align:left;padding:10px 14px;border-bottom:1px solid var(--line);vertical-align:top}
th{font-family:Literata,serif;background:var(--tint)}
.about{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:center}
.about p{max-width:65ch}
.facts{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.facts div{border-left:4px solid var(--gold);padding:4px 12px}
.facts b{display:block;font:700 1.5rem Literata,serif}
footer{background:var(--green);color:var(--onGreen);margin-top:56px;padding:36px 0 24px;font-size:.92rem}
.fg{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:24px}
footer h3{font-size:1rem;margin-bottom:8px}footer ul{list-style:none;padding:0;margin:0}
footer a{text-decoration:none;opacity:.9}footer a:hover{text-decoration:underline}
.copy{margin-top:24px;border-top:1px solid rgba(255,255,255,.25);padding-top:14px;opacity:.85;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 16px}
.copy .vc{opacity:1}
.copy .vc .uasm-visitor-counter{display:inline-block;background:var(--gold);color:#2a2000;font-weight:700;padding:5px 14px;border-radius:999px;letter-spacing:.01em}
@media (max-width:900px){
.hero-grid,.about{grid-template-columns:1fr}.fg{grid-template-columns:1fr 1fr}
.menu-btn{display:block}nav.main{display:none;width:100%}nav.main.open{display:block}
.bar{flex-wrap:wrap}nav.main ul{flex-direction:column}
.list{max-height:300px}}
@media (prefers-reduced-motion:reduce){.slide{transition:none}}
.mela{background:var(--alert);border:2px solid var(--gold);border-radius:14px;padding:30px;display:grid;grid-template-columns:1.2fr 1fr;gap:30px;align-items:center}
.mela h2{font-size:clamp(2rem,4.5vw,3.2rem)}.mela .kn{font-size:1.4rem;font-weight:600;color:var(--green);margin:4px 0 0}
.mela p{color:var(--alertInk);max-width:55ch}
.dates{display:flex;gap:10px;margin:14px 0;flex-wrap:wrap}.dates div{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:8px 18px;text-align:center;font-size:.85rem}.dates b{display:block;font:700 2.3rem/1.1 Literata,serif}
#cd{font-weight:600;color:var(--green)}
.btn{display:inline-block;background:var(--green);color:#fff;padding:10px 20px;border-radius:8px;text-decoration:none;font-weight:600;margin:6px 8px 0 0}.btn.o{background:var(--surface);color:var(--green);border:2px solid var(--green)}
.posters{display:grid;grid-template-columns:1fr 1fr;gap:12px}.poster{aspect-ratio:3/4;border-radius:8px;border:1px solid var(--line);background:repeating-linear-gradient(135deg,#eeeef8 0 12px,#f8f8fd 12px 24px);display:flex;align-items:flex-end;padding:8px;font-size:.78rem;color:var(--muted)}
.about2{display:grid;grid-template-columns:1.15fr 1fr;gap:36px;align-items:start}
.about2 h2{font-size:clamp(1.8rem,3.6vw,2.6rem);margin-bottom:12px}.about2 p{max-width:62ch;margin:0 0 12px}
.wings{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:18px 0}.wings div{border-top:4px solid var(--gold);background:var(--tint);padding:10px 12px;border-radius:0 0 8px 8px}.wings b{display:block;font-family:Literata,serif}.wings span{font-size:.88rem;color:var(--muted)}
.tl{list-style:none;margin:0;padding:0 0 0 18px;border-left:3px solid var(--gold)}.tl li{margin:0 0 20px;padding-left:14px}.tl b{display:block;font:700 1.5rem Literata,serif}.tl span{color:var(--muted)}
@media (max-width:900px){.mela,.about2{grid-template-columns:1fr}.wings{grid-template-columns:1fr}}
.hero .wrap{max-width:none;padding:0 clamp(16px,2.5vw,40px)}.slides{max-height:560px}
@media (min-width:901px){.notices{contain:size}.list{max-height:none}}
.util .lg{background:none;border:1px solid #fff;color:#fff;border-radius:4px;padding:0 12px;font:inherit;cursor:pointer}.util .lg:hover{background:rgba(255,255,255,.18)}
html[lang="kn"] h1,html[lang="kn"] h2,html[lang="kn"] h3{line-height:1.4}
html[lang="kn"] .brand b,html[lang="kn"] th,html[lang="kn"] .wings b,html[lang="kn"] .tl b{font-family:Literata,"Noto Serif Kannada",serif;line-height:1.4}
html[lang="kn"] .mela .kn,html[lang="kn"] .mela span[lang="kn"]{display:none}
#ul{display:contents}
header.site{border-bottom:0}.brandrow{padding-top:12px;padding-bottom:12px}
.brand{display:flex;align-items:center;text-decoration:none}
.lockup{height:76px;width:auto;max-width:100%;display:block}
.brandlogos{display:flex;align-items:center;gap:5px}
.govlogo{height:76px;width:76px;flex:none;border-radius:50%}
.compact{display:none;align-items:center;gap:10px}.compact b{font:700 1.05rem/1.3 Literata,"Noto Serif Kannada",serif}
.menubar{background:var(--green);position:sticky;top:env(safe-area-inset-top,0px);z-index:25;border-bottom:3px solid var(--gold)}
.mrow{display:flex;align-items:center;justify-content:space-between;gap:8px}
nav.main{flex:1}nav.main ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:0}nav.main li{position:relative}
nav.main a,nav.main .t{display:block;width:100%;color:#fff;background:none;border:0;border-radius:0;font:600 .92rem "Noto Sans","Noto Sans Kannada",sans-serif;padding:13px 12px;text-decoration:none;cursor:pointer;text-align:left}
nav.main li.has>.t::after{content:"";display:inline-block;margin-left:8px;border:4px solid transparent;border-top-color:currentColor;border-bottom:0;vertical-align:middle}
nav.main a:hover,nav.main .t:hover,nav.main li.open>.t{background:rgba(255,255,255,.16)}
.sub{display:none;position:absolute;top:100%;left:0;z-index:30;width:max-content;min-width:230px;max-width:340px;background:var(--surface);border:1px solid var(--line);border-top:3px solid var(--gold);box-shadow:0 12px 28px rgba(30,30,90,.2);padding:6px;border-radius:0 0 8px 8px;flex-direction:column}
nav.main .sub a,nav.main .sub .t{color:var(--ink);font-weight:400;padding:8px 12px;border-radius:6px;white-space:normal}
nav.main .sub a:hover,nav.main .sub .t:hover,nav.main .sub li.open>.t{background:var(--tint);color:var(--ink)}
nav.main .sub li.has>.t::after{float:right;margin-top:7px;border:4px solid transparent;border-left-color:currentColor;border-right:0}
.sub .sub{top:-9px;left:100%;border-top-width:1px;border-radius:8px}
nav.main li.open>.sub{display:flex}
nav.main>ul>li:nth-last-child(-n+3)>.sub{left:auto;right:0}
nav.main>ul>li:nth-last-child(-n+3) .sub .sub{left:auto;right:100%}
.sbtn{background:none;border:0;color:#fff;width:44px;height:44px;cursor:pointer;display:grid;place-items:center}.sbtn:hover{background:rgba(255,255,255,.16)}
.sbtn[aria-expanded="true"]{background:rgba(255,255,255,.16)}
.searchpanel{background:var(--surface,#fff);border-bottom:3px solid var(--gold);box-shadow:0 8px 20px rgba(0,0,0,.12)}
.searchpanel[hidden]{display:none}
.searchform{max-width:720px;margin:0 auto;padding:14px clamp(16px,4vw,32px);display:flex;gap:10px;align-items:center}
.searchform input[type=search]{flex:1;min-width:0;padding:10px 14px;border:1px solid var(--line);border-radius:6px;font-size:1rem}
.searchform input[type=search]:focus{outline:2px solid var(--green);outline-offset:1px}
.searchform button{background:var(--green);color:#fff;border:0;width:40px;height:40px;border-radius:6px;cursor:pointer;display:grid;place-items:center;flex:0 0 auto}
.searchform button:hover{opacity:.9}
@media (max-width:900px){
.lockup{display:none}.compact{display:flex}
.govlogo{height:44px;width:44px}
.mrow{flex-wrap:wrap}.menu-btn{background:none;border:1px solid #fff;margin:6px 0}
nav.main{order:3;flex-basis:100%}nav.main ul{flex-direction:column}
.sub,.sub .sub{position:static;width:auto;max-width:none;box-shadow:none;border:0;border-left:3px solid var(--gold);border-radius:0;margin:0 0 6px 14px}
nav.main>ul>li:nth-last-child(-n+3)>.sub{right:auto}}
body{overflow-x:clip}
.hero-grid{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}
.hero-grid>*,.about2>*,.mela>*,.cols>*,.fg>*{min-width:0}
.list a{grid-template-columns:56px minmax(0,1fr)}.t,.cap h2,.cap p{overflow-wrap:anywhere}
.quick{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:1200px){
.menu-btn{display:block;background:none;border:1px solid #fff;margin:6px 0}
nav.main{display:none;order:3;flex-basis:100%}nav.main.open{display:block;max-height:70vh;overflow-y:auto}
.mrow{flex-wrap:wrap}nav.main ul{flex-direction:column}
.sub,.sub .sub{position:static;width:auto;max-width:none;box-shadow:none;border:0;border-left:3px solid var(--gold);border-radius:0;margin:0 0 6px 14px}
nav.main>ul>li:nth-last-child(-n+3)>.sub{right:auto}
}
@media (max-width:900px){.hero-grid{grid-template-columns:minmax(0,1fr)}.hero{padding-top:16px}section.blk{padding-top:32px}.mela{padding:20px}.dates b{font-size:1.8rem}}
@media (max-width:760px){
.tw{border:0;background:none;overflow:visible}table{min-width:0;display:block}
thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
tbody,tr,td{display:block}
tr{background:var(--surface);border:1px solid var(--line);border-radius:10px;margin-bottom:12px;padding:6px 0}
td{border:0;padding:6px 14px}td:first-child{font:700 1.05rem Literata,"Noto Serif Kannada",serif}
td:not(:first-child)::before{content:attr(data-l-col);display:block;font-size:.78rem;font-weight:600;color:var(--muted)}}
@media (max-width:560px){.fg{grid-template-columns:1fr}.wrap{padding-left:16px;padding-right:16px}}
/* v2 polish */
h2{letter-spacing:-.01em}.blk>.wrap>h2,.about2 h2,.farm h2{font-size:clamp(1.9rem,3.2vw,2.6rem)}
.carousel,.notices,.tw,tr,.btn,.ctrl button,.lg,.sbtn,.menu-btn,.catsel{border-radius:4px}
nav.main>ul>li>a:hover,nav.main>ul>li>.t:hover,nav.main>ul>li.open>.t{background:none;box-shadow:inset 0 -4px 0 var(--gold)}
.slide{padding:0}.slide svg,.slide .heroimg{position:absolute;inset:0;width:100%;height:100%}
.slide .heroimg{object-fit:contain;display:block}
.stats{display:grid;grid-template-columns:repeat(6,1fr);list-style:none;margin:20px 0 0;padding:0}
.stats li{padding:6px 22px;border-left:1px solid var(--line)}.stats li:first-child{border-left:0;padding-left:0}
.stats b{display:block;font:700 clamp(2.4rem,4.6vw,3.8rem)/1 Literata,"Noto Serif Kannada",serif;color:var(--green)}
.stats span{display:block;margin-top:8px;color:var(--muted);font-size:.93rem}
.quick a{background:#f0f1f9;color:var(--green);border-left:4px solid var(--green);border-radius:0;padding:16px 18px}
.quick a small{opacity:1;color:var(--muted);font-weight:400}.quick a:hover{background:var(--green);color:#fff}.quick a:hover small{color:#dfe1f5}
/* .soon: a "Find it fast" tile with no real destination page yet (e.g. Recruitments/Faculty directory) -
   same box as a real .quick/.farm link, minus the hover affordance, so it reads as not-yet-clickable
   rather than a dead "#" link. */
.quick .soon{display:block;min-width:0;background:#f0f1f9;color:var(--muted);border-left:4px solid var(--line);border-radius:0;padding:16px 18px;font-weight:600;overflow-wrap:anywhere;cursor:default}
.quick .soon small{display:block;opacity:1;color:var(--muted);font-weight:400}
#krishimela{background:#fff2c4;margin-top:56px;padding:30px 0 0;position:relative}
#krishimela::before{content:"";position:absolute;top:0;left:0;right:0;height:30px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='30'%3E%3Cpath d='M0 3Q60 12 120 3' stroke='%23564a1a' fill='none'/%3E%3Cpath d='M6 5L30 6L18 28Z' fill='%233c4094'/%3E%3Cpath d='M36 7L60 8L48 28Z' fill='%232e7d3f'/%3E%3Cpath d='M66 8L90 7L78 28Z' fill='%23e8b828'/%3E%3Cpath d='M96 6L120 5L108 28Z' fill='%23d9542b'/%3E%3C/svg%3E") repeat-x}
.mela{background:none;border:0;border-radius:0;padding:34px 0 56px}
.dates div{background:none;border:0;padding:0 24px 0 0;text-align:left}.dates b{font-size:clamp(3.2rem,8vw,6rem);color:var(--green);line-height:1}
.poster{border:0;color:#fff;background:linear-gradient(160deg,#3c4094,#2b2e72);box-shadow:0 14px 26px rgba(30,30,90,.28)}
.poster:nth-child(1){transform:rotate(-2.5deg)}.poster:nth-child(2){transform:rotate(2deg) translateY(16px)}
.cols .col{background:none;border:0;border-top:5px solid var(--green);border-radius:0;padding:14px 0 0}
.cols .col:nth-child(2){border-color:var(--green2)}.cols .col:nth-child(3){border-color:var(--gold)}.cols .col:nth-child(4){border-color:#d9542b}
.col h3{font-size:1.25rem;margin-bottom:6px}.col p a{font-weight:600;color:var(--green2);text-decoration:none;border-bottom:2px solid currentColor}
.farm{background:#eaf4ec;margin-top:60px;padding:60px 0}
.farm .wrap{display:grid;grid-template-columns:1fr 1.5fr;gap:48px;align-items:start}.farm .wrap>*{min-width:0}
.farm ul{list-style:none;margin:0;padding:0}.farm li{border-bottom:1px solid #c5ddca}.farm li:first-child{border-top:1px solid #c5ddca}
.farm li a{display:grid;grid-template-columns:1fr auto;column-gap:16px;padding:18px 4px;text-decoration:none}
.farm li a:hover{background:#dcecdf}.farm li a::after{content:"\2192";grid-column:2;grid-row:1/3;align-self:center;font-size:1.4rem;color:var(--green2)}
.farm b{font:700 1.2rem Literata,"Noto Serif Kannada",serif}.farm small{display:block;color:var(--muted);font-size:.93rem}
.rvon .rv{opacity:0;transform:translateY(18px);transition:opacity .6s,transform .6s}.rvon .rv.in{opacity:1;transform:none}
@media (max-width:900px){.farm .wrap{grid-template-columns:minmax(0,1fr);gap:24px}.farm{padding:40px 0}}
@media (max-width:760px){.stats{grid-template-columns:repeat(2,1fr);gap:22px 0}.stats li:nth-child(odd){border-left:0;padding-left:0}}
nav.main ul.sub{display:none}
nav.main li.open>ul.sub{display:flex}
@media (min-width:1281px){.hero-grid{grid-template-columns:repeat(12,minmax(0,1fr))}.hero-grid>.carousel{grid-column:span 8}.hero-grid>.notices{grid-column:span 4}}
.util .wrap{justify-content:flex-end}
@media (max-width:900px){.util .wrap{justify-content:flex-start}}
/* Krishi Mela logo */
.sli{height:40px;width:auto;vertical-align:middle;margin-right:8px}
.mela-logo{display:grid;place-items:center}
.mela-logo img{width:min(500px,100%);height:auto;filter:drop-shadow(0 16px 24px rgba(70,55,10,.28))}

/* ===== Header: leadership strip (full width, hidden on small screens) ===== */
.brandrow{display:flex;align-items:center;justify-content:space-between;gap:16px 32px;padding:12px clamp(16px,2.5vw,40px)}
.dig{display:flex;align-items:flex-start;justify-content:flex-end;gap:clamp(14px,2vw,34px);list-style:none;margin:0 0 0 auto;padding:0}
.dig li{display:flex;flex-direction:column;align-items:center;text-align:center;width:clamp(130px,12vw,190px)}
.dig img{width:clamp(52px,4.4vw,68px);height:auto;aspect-ratio:1;border-radius:50%;margin-bottom:6px}
.dig b{font-size:clamp(.74rem,.9vw,.9rem);line-height:1.3;color:#c42a30}
.dig span{font-size:clamp(.7rem,.82vw,.82rem);line-height:1.35;color:var(--green);font-weight:600;margin-top:2px;white-space:pre-line}
@media (max-width:1100px){.dig{display:none}}

/* ===== Inner pages: language blocks, page header, side menu, article, timeline ===== */
html[lang="kn"] [data-l="en"], html[lang="en"] [data-l="kn"] { display: none !important; }
.pagehead { background: #f0f1f9; border-bottom: 4px solid var(--gold); padding: 26px 0 34px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; margin: 0 0 14px; padding: 0; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; }
.crumbs a { color: var(--green); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.pagehead h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); color: var(--green); letter-spacing: -.01em; }
html[lang="kn"] .pagehead h1 { line-height: 1.4; }
.pagehead p { margin: 10px 0 0; color: var(--muted); font-size: 1.1rem; max-width: 60ch; }

/* .wrap.page (never bare .page): WordPress's body_class() puts a plain "page" class on the <body> of
   every Page, which a bare `.page` selector would also match - turning the whole page into this 2-column
   grid (header/menubar/footer included, since they're all direct body children) the moment any real
   content made that collapse visible. Always scope this to .wrap.page. */
.wrap.page { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; padding-top: 40px; padding-bottom: 24px; align-items: start; }
.side { position: sticky; top: calc(var(--menuh, 56px) + 16px); display: grid; gap: 30px; }
.side h2 { font: 700 .95rem "Noto Sans", "Noto Sans Kannada", sans-serif; color: var(--muted); margin: 0 0 8px; }
.side ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.side ul ul { border: 0; margin-left: 14px; }
.side a, .side .grp { display: block; padding: 7px 14px; margin-left: -2px; border-left: 3px solid transparent; font-size: .95rem; text-decoration: none; color: var(--ink); }
.side .grp { font-weight: 600; color: var(--muted); }
.side a:hover { background: var(--tint); }
.side a[aria-current] { border-left-color: var(--green); color: var(--green); font-weight: 600; background: var(--tint); }
.side .soon { display: block; padding: 7px 14px; margin-left: -2px; font-size: .95rem; font-style: italic; color: var(--muted); }

.prose { min-width: 0; }
.prose > section { scroll-margin-top: calc(var(--menuh, 56px) + 20px); margin-bottom: 64px; }
.prose h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin: 0 0 18px; letter-spacing: -.01em; }
.prose h3 { font-size: 1.35rem; margin: 40px 0 12px; }
html[lang="kn"] .prose h2, html[lang="kn"] .prose h3 { line-height: 1.4; }
.prose p { margin: 0 0 16px; font-size: 1.05rem; line-height: 1.85; text-align: justify; text-justify: inter-word; }
.prose section img { max-width: 100%; height: auto; display: block; margin: 0 auto 24px; border-radius: 10px; border: 1px solid var(--line); }
.prose section table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: .95rem; }
.prose section table th, .prose section table td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose section table th { background: var(--tint); font-weight: 700; }
.kicker { display: inline-block; background: var(--gold); color: #2a2000; font-weight: 700; padding: 2px 12px; border-radius: 4px; margin-bottom: 14px; font-size: .85rem; }

.tl2 { list-style: none; margin: 30px 0 40px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.tl2::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 3px; background: var(--gold); }
.tl2 li { position: relative; padding: 36px 14px 0 0; }
.tl2 li::before { content: ""; position: absolute; top: 4px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--green); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--green); }
.tl2 b { display: block; font: 700 1.6rem/1.2 Literata, "Noto Serif Kannada", serif; color: var(--green); }
.tl2 span { display: block; font-size: .92rem; color: var(--muted); line-height: 1.5; }

.people { margin: 20px 0 8px; }
.person { display: grid; grid-template-columns: minmax(160px, 230px) minmax(0, 1fr); gap: 8px 36px; padding: 26px 0; border-top: 1px solid var(--line); }
.person:last-child { border-bottom: 1px solid var(--line); }
.person h4 { font: 700 1.25rem/1.3 Literata, "Noto Serif Kannada", serif; margin: 0; color: var(--green); }
.person small { display: block; color: var(--muted); font-size: .92rem; margin-top: 6px; line-height: 1.45; }
.person p { margin: 0; max-width: none; }

.facts3 { display: flex; flex-wrap: wrap; gap: 14px 48px; margin: 6px 0 26px; }
.facts3 div { border-left: 4px solid var(--gold); padding: 2px 0 2px 14px; }
.facts3 dt { font: 700 2.6rem/1 Literata, serif; color: var(--green); }
.facts3 dd { margin: 4px 0 0; color: var(--muted); font-size: .93rem; max-width: 22ch; }
.wings2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 8px 0 30px; }
.wings2 div { border-top: 4px solid var(--green); background: var(--tint); padding: 14px 16px; }
.wings2 div:nth-child(2) { border-color: var(--green2); } .wings2 div:nth-child(3) { border-color: var(--gold); }
.wings2 b { display: block; font-family: Literata, "Noto Serif Kannada", serif; font-size: 1.15rem; }
.wings2 span { color: var(--muted); font-size: .95rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 6px 0 22px; }
.chips li { background: var(--tint); border-left: 4px solid var(--green2); padding: 7px 16px; font-weight: 600; color: var(--green); }

.vision { background: var(--green); color: #fff; padding: clamp(26px, 4vw, 48px); margin: 0; font: 500 clamp(1.2rem, 2.2vw, 1.65rem)/1.6 Literata, "Noto Serif Kannada", serif; border-left: 8px solid var(--gold); }
.vision p { margin: 0; max-width: 60ch; font: inherit; }
.mission { counter-reset: m; list-style: none; margin: 0; padding: 0; }
.mission li { counter-increment: m; display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: start; padding: 20px 0; border-top: 1px solid var(--line); font-size: 1.08rem; line-height: 1.7; }
.mission li:last-child { border-bottom: 1px solid var(--line); }
.mission li::before { content: counter(m); font: 700 2rem/1.1 Literata, serif; color: var(--green2); }
nav.main .sub a[aria-current] { font-weight: 600; color: var(--green); }
nav.main > ul > li.here > .t, nav.main > ul > li.here > a { box-shadow: inset 0 -4px 0 var(--gold); }

@media (max-width: 900px) {
  .wrap.page { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 28px; }
  .side { position: static; gap: 20px; }
  .side ul { display: flex; flex-wrap: wrap; gap: 6px; border: 0; }
  .side ul ul { display: contents; }
  .side a, .side .grp { margin: 0; border: 1px solid var(--line); border-radius: 4px; padding: 6px 12px; }
  .side a[aria-current] { border-color: var(--green); }
  .person { grid-template-columns: minmax(0, 1fr); }
  .wings2 { grid-template-columns: minmax(0, 1fr); }
  .tl2 { grid-template-columns: minmax(0, 1fr); }
  .tl2::before { left: 7px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; }
  .tl2 li { padding: 0 0 22px 40px; }
  .tl2 li::before { top: 2px; left: 0; }
}

/* ===== Profile / message pages ===== */
.profile { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; padding: 28px; background: var(--tint); border-left: 6px solid var(--gold); margin-bottom: 56px; }
.profile img { width: 132px; height: 132px; border-radius: 50%; display: block; }
.profile h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; color: var(--green); }
.profile .role { margin: 4px 0 12px; font-weight: 600; color: var(--muted); }
.contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .98rem; overflow-wrap: anywhere; }
.contact span { color: var(--muted); }
.contact a, .ocard a { color: var(--green); font-weight: 600; }
.nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px 28px; margin: 6px 0 30px; }
.nums div { border-left: 4px solid var(--gold); padding: 2px 0 2px 14px; }
.nums dt { font: 700 clamp(1.8rem, 3.2vw, 2.5rem)/1.1 Literata, serif; color: var(--green); }
.nums dd { margin: 4px 0 0; color: var(--muted); font-size: .93rem; line-height: 1.4; }
.pull { margin: 0 0 30px; padding: 6px 0 6px 24px; border-left: 6px solid var(--gold); font: 500 clamp(1.35rem, 2.6vw, 2rem)/1.45 Literata, "Noto Serif Kannada", serif; color: var(--green); }
.pull p { font: inherit; margin: 0; max-width: 32ch; }
.note { font-size: .88rem !important; color: var(--muted); margin-top: -8px !important; }
.sign { margin-top: 28px !important; padding-top: 18px; border-top: 1px solid var(--line); line-height: 1.7 !important; }
.office { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.ocard { position: relative; border-top: 4px solid var(--green); background: var(--tint); padding: 18px 22px; }
.ocard h3 { margin: 0 0 8px; font-size: 1.2rem; color: var(--green); }
.ocard ul { margin: 0 0 12px; padding-left: 18px; color: var(--muted); }
.ocard p { margin: 0; font-size: .96rem; }
.ocard.clickable { cursor: pointer; transition: box-shadow .15s; }
.ocard.clickable:hover, .ocard.clickable:focus-within { box-shadow: 0 0 0 2px var(--green) inset; }
.ocard .cardlink { position: absolute; inset: 0; z-index: 1; }
.ocard .cardlink:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; }
.ocard p a { position: relative; z-index: 2; }
@media (max-width: 600px) { .profile { grid-template-columns: minmax(0, 1fr); text-align: left; padding: 22px; } .profile img { width: 104px; height: 104px; } }

/* notices panel layout (previously inline styles) */
.panel { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.list .m { display: block; }

/* ===== Officers ===== */
.avatar { display: grid; place-items: center; width: 132px; height: 132px; border-radius: 50%; background: var(--green); color: #fff; font: 700 2.2rem Literata, serif; }
.pending { color: var(--muted); font-style: italic; }
.side ul ul a { font-size: .9rem; padding: 5px 12px; }
#officer > section { margin-bottom: 44px; scroll-margin-top: calc(var(--menuh, 56px) + 20px); }
@media (max-width: 600px) { .avatar { width: 104px; height: 104px; font-size: 1.8rem; } }

/* ===== Officer profile: full-width photo on top, details below (default) ===== */
.officer-hero { margin-bottom: 48px; }
.portrait { margin: 0; aspect-ratio: 4 / 5; background: var(--tint); overflow: hidden; border-bottom: 6px solid var(--gold); }
.portrait img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
.portrait .ini { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(160deg, var(--green), #2b2e72); color: #fff; font: 700 clamp(3rem, 8vw, 5rem) Literata, serif; }
.officer-hero .portrait { aspect-ratio: 16 / 9; margin-bottom: 24px; }
.officer-hero .who h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0; color: var(--green); }
.officer-hero .role { margin: 6px 0 16px; font-weight: 600; color: var(--muted); }

/* profile1: side-by-side grid (photo left, details right) - kept for revert.
   To switch an officer profile back to it, add class="profile1" to the .officer-hero element. */
.officer-hero.profile1 { display: grid; grid-template-columns: minmax(220px, 38%) minmax(0, 1fr); gap: 0 36px; align-items: end; }
.officer-hero.profile1 .portrait { aspect-ratio: 4 / 5; margin-bottom: 0; }
@media (max-width: 760px) { .officer-hero.profile1 { grid-template-columns: minmax(0, 1fr); gap: 20px; } .officer-hero.profile1 .portrait { aspect-ratio: 4 / 3; } }

/* ===== Page-top full-width photo (e.g. PPMC coordinator) ===== */
.topimg { margin: 0 0 28px; border-bottom: 6px solid var(--gold); overflow: hidden; background: var(--tint); }
.topimg img { width: 100%; height: auto; display: block; }
.topimg.placeholder { aspect-ratio: 16 / 7; display: grid; place-items: center; border: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.topimg.placeholder .ph { color: var(--muted); font-size: .95rem; }

/* ===== Krishi Mela page ===== */
.kmlive { background: #0d0d0d; }
.kmlive .wrap { padding-top: 14px; padding-bottom: 14px; }
.kmlivetag { color: #fff; display: flex; align-items: center; gap: 8px; font-weight: 700; margin: 0 0 10px; }
.kmlivetag .dot { width: 10px; height: 10px; border-radius: 50%; background: #e23; display: inline-block; animation: kmpulse 1.4s infinite; }
@keyframes kmpulse { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }
.kmlivebox { position: relative; aspect-ratio: 16/9; background: #000; }
.kmlivebox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.kmgrid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.kmgrid .carousel { position: sticky; top: calc(var(--menuh, 56px) + 16px); }
.slidebtn { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.kminfo { display: flex; flex-direction: column; gap: 4px; }
.kmheadrow { display: flex; align-items: stretch; gap: 28px; }
.kmlogo-crumb { height: 100%; width: auto; max-width: 180px; object-fit: contain; flex-shrink: 0; }
@media (max-width: 640px) { .kmheadrow { flex-direction: column; align-items: flex-start; } .kmlogo-crumb { height: 90px; max-width: none; } }
.kmtheme { font: 700 1.3rem Literata, serif; color: var(--green); margin: 4px 0 2px; }
.kmtheme.sm { font-size: 1.1rem; }
.kmhl-h { font-size: 1.1rem !important; margin: 18px 0 8px !important; }
.kmhighlights { margin: 0; padding: 0 0 0 20px; display: grid; gap: 8px; }
.kmhighlights li { font-size: .95rem; color: var(--muted); }
.kmvgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.kmvgrid.sm { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-top: 10px; }
@media (max-width: 1100px) { .kmvgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .kmvgrid { grid-template-columns: repeat(2, 1fr); } }
.kmvcard.placeholder { aspect-ratio: 16/9; border-radius: 10px; background: var(--tint); border: 1px dashed var(--line); display: grid; place-items: center; overflow: hidden; margin: 0; }
.kmvcard.placeholder .ph { color: var(--muted); font-size: .85rem; }
/* A real video card (has data-yt): .kmvplay is the clickable thumbnail-with-play-button; clicking it
   (assets/js/krishimela.js) replaces the <button> with a playing YouTube <iframe> of the same shape. */
figure.kmvcard { margin: 0; border-radius: 10px; overflow: hidden; background: var(--tint); }
.kmvcard .kmvplay { position: relative; display: block; width: 100%; aspect-ratio: 16/9; padding: 0; border: 0; background: #000; cursor: pointer; }
.kmvcard .kmvplay img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; }
.kmvcard .kmvplaybtn { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 2rem; text-shadow: 0 2px 10px rgba(0,0,0,.7); pointer-events: none; }
.kmvcard iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; }
.kmvcard figcaption { padding: 8px 10px; font-size: .85rem; color: var(--muted); }
.kmqgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.kmqcard { min-height: 120px; padding: 16px; border-radius: 10px; background: var(--tint); display: grid; align-content: center; gap: 8px; }
.kmqcard.placeholder { border: 1px dashed var(--line); place-items: center; }
.kmqcard blockquote { margin: 0; font-size: .95rem; line-height: 1.5; color: var(--ink); }
.kmqcard .ph { color: var(--muted); font-size: .9rem; margin: 0; }
.kmprevgrid { display: grid; grid-template-columns: minmax(200px, 320px) 1fr; gap: 28px; align-items: start; }
.kmprevimg { margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.kmprevimg img { width: 100%; height: auto; display: block; }
.lightbox { position: fixed; inset: 0; background: rgba(10, 10, 20, .92); z-index: 60; display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 86vh; object-fit: contain; }
.lbx { all: unset; position: absolute; top: 16px; right: 20px; color: #fff; font-size: 2rem; cursor: pointer; line-height: 1; padding: 6px 10px; }
.lbprev, .lbnext { all: unset; position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 2.6rem; cursor: pointer; padding: 10px 18px; }
.lbprev { left: 6px; } .lbnext { right: 6px; }
@media (max-width: 900px) { .kmgrid, .kmprevgrid { grid-template-columns: 1fr; } .kmgrid .carousel { position: static; } }
body[data-page="/krishi-mela"] main .wrap { max-width: none; padding: 0 clamp(20px, 4vw, 64px); }

/* Search results: a plain linear list (not a card grid - a tiled layout reads oddly once there are more
   than a couple of results, since each row has nothing but a title and a one-word type label). */
.searchresults { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.searchresults li { border-bottom: 1px solid var(--line); }
.searchresults a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 16px 4px; text-decoration: none; color: inherit; }
.searchresults a:hover { background: var(--tint); }
.searchresults .t { font-size: 1.05rem; font-weight: 600; color: var(--green); }
.searchresults .m { font-size: .85rem; color: var(--muted); }

/* ===== Team cards (full-width photo) and document viewer ===== */
.org { color: var(--muted); font-weight: 600; margin: -6px 0 14px !important; }
.ntfwrap { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 28px; align-items: start; margin: 8px 0 64px; }
.ntflist { position: sticky; top: calc(var(--menuh, 56px) + 16px); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; max-height: calc(100vh - var(--menuh, 56px) - 32px); overflow-y: auto; }
.ntflist ul { list-style: none; margin: 0; padding: 0; }
.ntflist li { border-bottom: 1px solid var(--line); }
.ntflist a { display: block; padding: 12px 16px; text-decoration: none; color: var(--ink); }
.ntflist a:hover { background: var(--tint); }
.ntflist a[aria-current] { border-left: 4px solid var(--green); background: var(--tint); font-weight: 600; }
.ntflist .t { display: block; font-size: .95rem; }
.ntflist .d { display: block; margin-top: 4px; font-size: .78rem; color: var(--muted); }
.ntfback { margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.ntfback a { color: var(--green); font-weight: 600; text-decoration: none; }
.ntfviewer { min-height: 400px; }
.ntftitle { font-size: 1.3rem; line-height: 1.1; margin: -6px 0 14px; color: var(--green); }
.ntfpdf { width: 100%; height: 80vh; border: 1px solid var(--line); border-radius: 10px; background: var(--tint); }
.ntfdl { margin-top: 14px; }
.ntfempty { padding: 60px 24px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: 10px; }
@media (max-width: 760px) { .ntfwrap { grid-template-columns: 1fr; } .ntflist { position: static; max-height: 320px; } .ntfpdf { height: 60vh; } }
body[data-page="/notification"] main .wrap, body[data-page="/ao-notifications"] main .wrap,
body[data-page="/timetable"] main .wrap, body[data-page="/press-release"] main .wrap,
body[data-page="/admissions-notifications"] main .wrap, body[data-page="/modelkeyanswers"] main .wrap
{ max-width: none; padding: 0 clamp(20px, 4vw, 64px); }

.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 300px)); gap: 28px; justify-content: start; }
/* Events listing (page-templates/events-listing.php) reuses .team/.tcard, but a card there should never
   grow past half the section's width, even when there's only one event - auto-fit's 1fr track would
   otherwise stretch a single card to the full row (the "tile is too big" report). */
.team.events { grid-template-columns: repeat(auto-fit, minmax(240px, calc(50% - 14px))); justify-content: start; }
.tcard { position: relative; background: var(--tint); border-bottom: 6px solid var(--gold); }
.tcard .portrait { border-bottom: 0; aspect-ratio: 4 / 5; }
/* .tcard .photo (the plain, non-.depts "Meet the Team"/Events card photo) had no size rule at all, so an
   image bigger than its card - e.g. the Krishi Mela poster - rendered at full natural size and overflowed
   the card/page horizontally ("image width is not contained and going out of screen"). Contained and
   cropped consistently here, same object-fit:cover approach .depts .tcard already used. */
.tcard .photo, .tcard > .ini { display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; }
.tcard .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* .ini (the initials placeholder, no real photo set) must NOT also get the img rule's height:100% above -
   that forced it to fill its grid-stretched parent's full row height instead of the aspect-ratio box the
   line above already gives it, producing a wildly oversized box (the "insane height" report) - the
   aspect-ratio alone is this element's own sizing, nothing inside it needs filling. */
.tcard > .ini { display: grid; place-items: center; font: 700 2.2rem Literata, serif; color: #fff; background: linear-gradient(160deg, var(--green), #2b2e72); }
.tcard.clickable { cursor: pointer; transition: box-shadow .15s; }
.tcard.clickable:hover, .tcard.clickable:focus-within { box-shadow: 0 0 0 2px var(--green) inset; }
.tcard .cardlink { position: absolute; inset: 0; z-index: 1; }
.tcard .cardlink:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; }
/* A real mailto:/tel: link inside a whole-card-clickable tile must stay reachable above the card's own
   full-tile overlay link (z-index 1), or clicking it just activates the card link instead. */
.tcard .tbody a { position: relative; z-index: 2; color: inherit; overflow-wrap: anywhere; }
.tbody { padding: 18px 22px 22px; }
.tbody h3 { margin: 0 0 6px !important; font-size: 1.3rem; color: var(--green); }
.trole { margin: 0 0 4px !important; font-weight: 600; color: var(--muted); font-size: .98rem !important; line-height: 1.45 !important; }
.tbody .contact { margin-top: 12px; }

/* ===== College pages: programmes offered / departments ===== */
.ctitle { color: var(--green); }
.collegebody > h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 20px; }
.collegebody .tw { margin-bottom: 32px; }
.collegebody .tw:last-child { margin-bottom: 0; }
.depts { display: grid; gap: 48px; }
.depts h2 { font-size: 1.4rem; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--green); }
.depts .team { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.depts .tcard { position: relative; display: flex; align-items: stretch; min-width: 0; background: var(--tint); border-radius: 6px; overflow: hidden; }
.depts .tcard .photo, .depts .tcard .ini { flex: 0 0 110px; width: 110px; height: 137px; }
.depts .tcard img, .depts .tcard .ini { display: block; width: 110px; height: 137px; object-fit: cover; object-position: top center; }
.depts .tcard .ini { display: grid; place-items: center; font: 700 1.5rem Literata, serif; color: #fff; background: linear-gradient(160deg, var(--green), #2b2e72); }
.depts .tbody { flex: 1; min-width: 0; padding: 16px 20px; border-left: 6px solid var(--gold); }
.depts .tbody h3 { margin: 0 0 6px !important; font-size: 1.1rem; color: var(--green); }
.depts .tbody p { margin: 2px 0; font-size: .92rem; color: var(--ink); line-height: 1.5; }
.depts .tbody a { position: relative; z-index: 2; color: inherit; overflow-wrap: anywhere; }
/* The whole card links to the profile via this overlay, stacked under the mailto link above so both
   stay clickable - a wrapper <a> around the card isn't possible, since that would nest it inside the
   mailto <a> (invalid HTML). */
.depts .tcard.clickable { cursor: pointer; transition: box-shadow .15s; }
.depts .tcard.clickable:hover, .depts .tcard.clickable:focus-within { box-shadow: 0 0 0 2px var(--green) inset; }
.depts .cardlink { position: absolute; inset: 0; z-index: 1; }
.depts .cardlink:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; }
@media (max-width: 480px) {
  .depts .tcard { flex-direction: column; }
  .depts .tcard .photo, .depts .tcard .ini, .depts .tcard img { width: 100%; height: 160px; }
  .depts .tbody { border-left: 0; border-top: 6px solid var(--gold); }
}
/* ===== College Facilities (photo galleries, grouped by facility name) ===== */
.facilities { display: grid; gap: 48px; }
.facgroup h2 { font-size: 1.3rem; margin: 0 0 16px; color: var(--green); }
.facgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.facgrid figure { margin: 0; aspect-ratio: 4 / 3; background: var(--tint); border-radius: 8px; overflow: hidden; border-bottom: 4px solid var(--gold); }
.facgrid img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) { .facgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .facgrid { grid-template-columns: minmax(0, 1fr); } }

.docbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 18px; }
.docbar h2 { margin: 0 !important; }
.docbar .org { margin: 4px 0 0 !important; }
.docbtns { display: flex; flex-wrap: wrap; gap: 8px; }
.docbtns .btn { margin: 0; }
.docframe { border: 1px solid var(--line); background: var(--tint); }
.docframe object { display: block; width: 100%; height: min(86vh, 980px); min-height: 520px; }
.docfallback { display: grid; place-items: center; gap: 14px; padding: 64px 24px; text-align: center; }
.docfallback p { margin: 0 !important; color: var(--muted); }
.pdfico { display: grid; place-items: center; width: 84px; height: 104px; background: #c42a30; color: #fff; font: 700 1.3rem Literata, serif; border-radius: 4px; }

/* ===== Footer: columns generated from the header menu ===== */
footer .wrap { max-width: none; padding: 0 clamp(20px, 3vw, 56px); }
.fg { grid-template-columns: minmax(230px, 1fr) 4fr; gap: 32px 40px; }
.fnav { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px 28px; }
footer h3 { font-size: 1.02rem; margin-bottom: 10px; color: #fff; }
.fnav h3 { padding-bottom: 8px; border-bottom: 2px solid var(--gold); display: inline-block; }
.fnav li { margin: 0 0 6px; line-height: 1.4; }
.fnav a { font-size: .9rem; }
.fbrand p { line-height: 1.7; }
@media (max-width: 900px) { .fg { grid-template-columns: minmax(0, 1fr); } }
