/* Light / dark theme. Light mode keeps the original site look. */
.theme-toggle{position:absolute;top:10px;right:10px;z-index:20;width:28px;height:28px;padding:0;border-radius:50%;border:1px solid rgba(0,0,0,.25);background:transparent;color:#222;font-size:14px;line-height:26px;text-align:center;cursor:pointer}
.theme-toggle:hover{background:rgba(0,0,0,.06)}
.theme-toggle:focus-visible{outline:2px solid #007bb6;outline-offset:2px}
.navigation-wrapper{position:relative}
.theme-toggle .fa-sun-o{display:none}
html[data-theme="dark"] .theme-toggle .fa-sun-o{display:inline}
html[data-theme="dark"] .theme-toggle .fa-moon-o{display:none}

html[data-theme="dark"]{color-scheme:dark}
html[data-theme="dark"] body{background-color:#151515;color:#dedede}
html[data-theme="dark"] h1,html[data-theme="dark"] h2,html[data-theme="dark"] h3,
html[data-theme="dark"] h4,html[data-theme="dark"] h5,html[data-theme="dark"] h6,
html[data-theme="dark"] strong,html[data-theme="dark"] b{color:#f2f2f2}
html[data-theme="dark"] a{color:#7cc0ef}
html[data-theme="dark"] a:hover{color:#a9d6f6}
html[data-theme="dark"] .navigation-wrapper a,html[data-theme="dark"] .site-name a{color:#ececec}
html[data-theme="dark"] .navigation-wrapper{border-bottom-color:#e05555}
html[data-theme="dark"] .theme-toggle{color:#ececec;border-color:rgba(255,255,255,.35)}
html[data-theme="dark"] .theme-toggle:hover{background:rgba(255,255,255,.1)}
html[data-theme="dark"] .nav .navtoggle{background-color:#2a2a2a;color:#ececec}
html[data-theme="dark"] .nav ul,html[data-theme="dark"] .nav li{background-color:transparent}
html[data-theme="dark"] table,html[data-theme="dark"] tr,html[data-theme="dark"] td,html[data-theme="dark"] th,
html[data-theme="dark"] .mytable1 tr:nth-child(odd),html[data-theme="dark"] .mytable1 tr:nth-child(even){background:transparent !important;color:#dedede;border-color:#3a3a3a}
html[data-theme="dark"] hr{border-color:#3a3a3a}
html[data-theme="dark"] blockquote{border-left-color:#555;color:#cfcfcf}
html[data-theme="dark"] code,html[data-theme="dark"] pre{background-color:#222;color:#e6e6e6}
html[data-theme="dark"] .footer-wrap,html[data-theme="dark"] footer{background-color:transparent;color:#bdbdbd}
html[data-theme="dark"] [style*="color:#000000"],html[data-theme="dark"] [style*="color: #000000"],
html[data-theme="dark"] [style*="color:#000;"],html[data-theme="dark"] [style*="color: initial"],
html[data-theme="dark"] .author-social{color:#e6e6e6 !important}
html[data-theme="dark"] .rv-badge{border-color:rgba(255,255,255,.15)}
html[data-theme="dark"] .rv-badge .rv-l{background:#d3d1c7;color:#2c2c2a}
html[data-theme="dark"] .rv-elsevier{background:#633806;color:#fac775}
html[data-theme="dark"] .rv-springer{background:#0c447c;color:#b5d4f4}
html[data-theme="dark"] .rv-nature{background:#085041;color:#9fe1cb}
html[data-theme="dark"] .rv-wiley{background:#3c3489;color:#cecbf6}
html[data-theme="dark"] .rv-igi{background:#712b13;color:#f5c4b3}
html[data-theme="dark"] .rv-tandf{background:#72243e;color:#f4c0d1}
html[data-theme="dark"] .rv-frontiers{background:#27500a;color:#c0dd97}

/* Language selector (Google Translate: English / Hindi / Odia) */
.lang-select{position:absolute;top:10px;right:46px;z-index:20;height:28px;padding:0 6px;font-size:13px;border-radius:14px;border:1px solid rgba(0,0,0,.25);background:transparent;color:#222;cursor:pointer;width:auto}
html[data-theme="dark"] .lang-select{color:#ececec;border-color:rgba(255,255,255,.35);background:#151515}
body>.skiptranslate,iframe.skiptranslate,.goog-te-banner-frame,#goog-gt-tt,.goog-te-balloon-frame{display:none !important}
body{top:0 !important}
.goog-text-highlight{background:none !important;box-shadow:none !important}

/* Publications: year and type switches */
.pub-filters{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center;margin:0 0 .5em}
.pub-field{display:inline-flex;align-items:center;gap:8px;margin:0}
.pub-select{font-size:14px;height:32px;padding:0 8px;border-radius:6px;border:1px solid rgba(0,0,0,.3);background:#fff;color:#222;width:auto;cursor:pointer}
html[data-theme="dark"] .pub-select{background:#1f1f1f;color:#ececec;border-color:rgba(255,255,255,.3)}
.pub-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 8px}
.pub-label{font-size:13px;font-weight:bold;min-width:42px;color:#555}
.pub-btn{font-size:13px;line-height:1.2;padding:4px 10px;border-radius:14px;border:1px solid rgba(0,0,0,.25);background:transparent;color:#222;cursor:pointer}
.pub-btn:hover{background:rgba(0,0,0,.06)}
.pub-btn.is-on{background:#222;border-color:#222;color:#fff}
.pub-count{font-size:13px;color:#666;margin:.2em 0 .8em}
.pub-list{list-style:none;margin:0;padding:0}
.pub-list li{padding:.7em 0;border-bottom:1px solid rgba(0,0,0,.1);text-align:justify}
.pub-list li[hidden]{display:none}
.pub-tag{display:inline-block;font-size:11px;font-weight:bold;letter-spacing:.02em;padding:1px 8px;border-radius:4px;margin-right:4px;vertical-align:1px}
.pub-tag-journal{background:#e6f1fb;color:#0c447c}
.pub-tag-conference{background:#e1f5ee;color:#085041}
.pub-tag-patent{background:#faeeda;color:#633806}
.pub-year{font-size:12px;color:#777}
html[data-theme="dark"] .pub-label{color:#bbb}
html[data-theme="dark"] .pub-btn{color:#ececec;border-color:rgba(255,255,255,.3)}
html[data-theme="dark"] .pub-btn:hover{background:rgba(255,255,255,.1)}
html[data-theme="dark"] .pub-btn.is-on{background:#ececec;border-color:#ececec;color:#151515}
html[data-theme="dark"] .pub-count,html[data-theme="dark"] .pub-year{color:#aaa}
html[data-theme="dark"] .pub-list li{border-bottom-color:rgba(255,255,255,.12)}
html[data-theme="dark"] .pub-tag-journal{background:#0c447c;color:#b5d4f4}
html[data-theme="dark"] .pub-tag-conference{background:#085041;color:#9fe1cb}
html[data-theme="dark"] .pub-tag-patent{background:#633806;color:#fac775}

/* Page title with controls on the right (Publications, Activities) */
.page-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 20px}
.page-head h1{margin-right:auto}
.page-head .pub-filters{margin:0}
.act-sec[hidden]{display:none}

/* Activities: summary strip, timeline, role tags, membership pills */
.act-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:.5em 0 1.5em}
.act-stats .stat{border:1px solid rgba(0,0,0,.12);border-radius:8px;padding:10px 12px;background:rgba(0,0,0,.02)}
.act-stats b{display:block;font-size:26px;line-height:1.1;font-family:'PT Sans Narrow',sans-serif}
.act-stats span{font-size:13px;color:#666;line-height:1.3;display:block}
.tl{list-style:none;margin:.5em 0 1.5em 6px;padding:0 0 0 18px;border-left:2px solid rgba(0,0,0,.15)}
.tl-item{position:relative;padding:0 0 14px}
.tl-item:before{content:"";position:absolute;left:-25px;top:6px;width:10px;height:10px;border-radius:50%;background:#fff;border:2px solid #534ab7}
.tl-date{display:block;font-size:13px;color:#777;line-height:1.4}
.tl-body{line-height:1.5}
.tl-title{display:block;font-weight:bold}
.tl-event{display:block}
.role{display:inline-block;font-size:12px;font-weight:bold;line-height:1.5;padding:0 8px;border-radius:4px;margin:2px 0 3px;font-family:sans-serif}
.role-talk{background:#faeeda;color:#633806}.role-pc{background:#eeedfe;color:#3c3489}.role-chair{background:#e1f5ee;color:#085041}
.role-editor{background:#fbeaf0;color:#72243e}.role-review{background:#e6f1fb;color:#0c447c}.role-volunteer{background:#f1efe8;color:#444441}
.mem-pills{display:flex;flex-wrap:wrap;gap:8px;margin:.8em 0 1.5em}
.mem-pill{font-size:14px;line-height:1.4;padding:5px 12px;border-radius:16px;border:1px solid rgba(0,0,0,.2)}
.table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
html[data-theme="dark"] .act-stats .stat{border-color:rgba(255,255,255,.15);background:rgba(255,255,255,.04)}
html[data-theme="dark"] .act-stats span,html[data-theme="dark"] .tl-date{color:#aaa}
html[data-theme="dark"] .tl{border-left-color:rgba(255,255,255,.2)}
html[data-theme="dark"] .tl-item:before{background:#151515;border-color:#afa9ec}
html[data-theme="dark"] .role-talk{background:#633806;color:#fac775}html[data-theme="dark"] .role-pc{background:#3c3489;color:#cecbf6}
html[data-theme="dark"] .role-chair{background:#085041;color:#9fe1cb}html[data-theme="dark"] .role-editor{background:#72243e;color:#f4c0d1}
html[data-theme="dark"] .role-review{background:#0c447c;color:#b5d4f4}html[data-theme="dark"] .role-volunteer{background:#444441;color:#d3d1c7}
html[data-theme="dark"] .mem-pill{border-color:rgba(255,255,255,.3)}

/* Phones: keep the language/theme controls clear of the name, tidy spacing */
@media (max-width: 600px){
  .navigation-wrapper{padding-top:48px}
  .act-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .act-stats b{font-size:22px}
  .page-head{gap:6px}
  .page-head .pub-filters{width:100%}
  .pub-select{max-width:100%}
  .rv-badge{font-size:12px}
}

/* Courses taught */
.course-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px;margin:.6em 0 1.6em}
.course{border:1px solid rgba(0,0,0,.12);border-radius:8px;padding:10px 12px;line-height:1.35}
.course b{display:block;margin:2px 0}
.course-meta{font-size:13px;color:#777}
html[data-theme="dark"] .course{border-color:rgba(255,255,255,.15)}
html[data-theme="dark"] .course-meta{color:#aaa}
.tl-photo img{display:block;max-width:280px;width:100%;margin:8px 0 2px;border-radius:6px;border:1px solid rgba(0,0,0,.12)}

/* 4: clickable summary tiles */
a.stat{display:block;color:inherit !important;text-decoration:none !important;border-bottom-width:1px;transition:border-color .15s,background .15s}
a.stat:hover{border-color:#534ab7 !important}
a.stat.is-on{border-color:#534ab7 !important;box-shadow:inset 0 -3px 0 #534ab7}
html[data-theme="dark"] a.stat:hover,html[data-theme="dark"] a.stat.is-on{border-color:#afa9ec !important}
html[data-theme="dark"] a.stat.is-on{box-shadow:inset 0 -3px 0 #afa9ec}

/* 5: show older */
.tl.tl-collapsed .tl-old{display:none}
.tl-more{margin:-.6em 0 1.5em 26px;font-size:13px;padding:5px 12px;border-radius:14px;border:1px solid rgba(0,0,0,.25);background:transparent;color:#222;cursor:pointer}
.tl-more:hover{background:rgba(0,0,0,.06)}
html[data-theme="dark"] .tl-more{color:#ececec;border-color:rgba(255,255,255,.3)}
.tl-event[title]{cursor:help}
.tl-event a{cursor:pointer}

/* 7: cleaner Teaching Assistantships table */
.act-sec table.mytable2,.act-sec table.mytable2 th,.act-sec table.mytable2 td{border:0 !important}
.act-sec table.mytable2{width:100%;border-collapse:collapse;margin:.4em 0 1.5em;font-size:15px}
.act-sec table.mytable2 th{text-align:left;font-size:13px;text-transform:uppercase;letter-spacing:.04em;color:#666;padding:6px 10px 6px 0;border-bottom:2px solid rgba(0,0,0,.15) !important}
.act-sec table.mytable2 td{padding:8px 10px 8px 0;border-bottom:1px solid rgba(0,0,0,.08) !important;vertical-align:top;line-height:1.45}
.act-sec table.mytable2 td:first-child{white-space:nowrap;color:#777;font-size:14px;width:1%}
html[data-theme="dark"] .act-sec table.mytable2 th{color:#aaa;border-bottom-color:rgba(255,255,255,.2) !important}
html[data-theme="dark"] .act-sec table.mytable2 td{border-bottom-color:rgba(255,255,255,.1) !important}
html[data-theme="dark"] .act-sec table.mytable2 td:first-child{color:#aaa}

/* 8: remove the thick black band under the menu */
#main{border-top:0 !important}

/* 9: photo and contact links on phones (homepage) */
@media (max-width: 599px){
  body.is-home .article-author-side{display:flex;align-items:center;gap:14px;margin:0 32px 1.2em;padding:0 0 1em;border-bottom:1px solid rgba(0,0,0,.1)}
  body.is-home .article-author-side>div{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
  body.is-home .article-author-side .bio-photo{width:84px;height:84px;object-fit:cover;border-radius:50% !important;margin:0;opacity:1}
  body.is-home .article-author-side p:empty{display:none}
  body.is-home .article-author-side .author-social{display:inline-block;margin:0 12px 0 0;font-size:15px}
  html[data-theme="dark"] body.is-home .article-author-side{border-bottom-color:rgba(255,255,255,.12)}
}

/* Album */
.album{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;margin:.5em 0 1.5em}
.album-item{margin:0;border:1px solid rgba(0,0,0,.12);border-radius:10px;overflow:hidden;background:rgba(0,0,0,.02)}
.album-item img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}
.album-item figcaption{padding:10px 12px;line-height:1.4;font-size:14px}
.album-item figcaption b{display:block;font-size:15px}
.album-item figcaption span{display:block;color:#777;font-size:13px;margin-top:2px}
.album-link{display:inline-block;margin-top:6px;font-size:13px}
html[data-theme="dark"] .album-item{border-color:rgba(255,255,255,.15);background:rgba(255,255,255,.03)}
html[data-theme="dark"] .album-item figcaption span{color:#aaa}
.term-filter{margin:.3em 0 .2em}
.course[hidden]{display:none}

/* Research page: institution and dates under each heading */
.rs-meta{display:block;margin:-.2em 0 .9em;font-size:16px;line-height:1.7;color:#444}
.rs-meta .fa{margin-right:6px}
.rs-date{margin-left:6px;white-space:nowrap}
.rs-meta .fa{color:#0b5394}
.rs-date{display:inline-block;font-size:13px;font-weight:bold;font-family:sans-serif;padding:1px 10px;border-radius:12px;background:#e6f1fb;color:#0c447c}
html[data-theme="dark"] .rs-meta{color:#ccc}
html[data-theme="dark"] .rs-meta .fa{color:#7cc0ef}
html[data-theme="dark"] .rs-date{background:#0c447c;color:#b5d4f4}
.justify{text-align:justify;text-justify:inter-word}

/* Justified text on every page (hyphenation keeps word gaps small on phones) */
.article-wrap p,.article-wrap li,.article-wrap td,.tl-body,.pub-list li,.news td{text-align:justify;text-justify:inter-word;-webkit-hyphens:auto;hyphens:auto}
.article-wrap h1,.article-wrap h2,.article-wrap h3,.article-wrap h4,.tl-title,.tl-date,.role,.course,.mem-pill,.rv-badge,.stat,figcaption,.pub-filters,.rs-meta,.tl-event{text-align:left;-webkit-hyphens:manual;hyphens:manual}
.tl-title,.tl-event a,.rv-badge,.mem-pill,.course b{-webkit-hyphens:manual;hyphens:manual}
.article-wrap h3+.rs-meta{margin-top:.1em}
.article-wrap p.rs-meta{text-align:left;-webkit-hyphens:manual;hyphens:manual}

/* About page: plain lines, no gaps between lines of one entry */
.about-plain p{text-align:left;line-height:1.55;margin:0 0 1.1em}
.ab-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:0 16px}
.ab-date{color:#555;white-space:nowrap}
html[data-theme="dark"] .ab-date{color:#bbb}
.article-wrap p.ab-block{margin-bottom:.35em;text-align:left}
