/* Sidharth — academic site styles (clean single-column academic layout) */
:root{
  --primary:#00274C;        /* Michigan blue */
  --link:#1D4F91;
  --link-hover:#0B2F5E;
  --maize:#FFCB05;
  --primary-light:#E8EEF7;
  --text:#1A1C22;
  --muted:#565B68;
  --light:#8C909B;
  --bg:#FFFFFF;
  --bg-alt:#F6F8FB;
  --border:#E2E6EE;
  --radius:8px;
  --max-w:960px;
  --nav-h:58px;
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --mono:"SFMono-Regular",Consolas,"Liberation Mono",Menlo,monospace;
  color-scheme:light;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{font-family:var(--font);font-size:16px;line-height:1.7;color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:var(--link);text-decoration:none}
a:hover{color:var(--link-hover);text-decoration:underline}
a:focus-visible,button:focus-visible{outline:2px solid var(--link);outline-offset:2px;border-radius:4px}
strong{font-weight:600}
p{margin-bottom:1rem}p:last-child{margin-bottom:0}
hr{border:none;border-top:1px solid var(--border);margin:2.75rem 0}

.container{max-width:var(--max-w);margin:0 auto;padding-inline:1.5rem}
@media (max-width:520px){.container{padding-inline:1rem}}
.page-content{padding-top:calc(var(--nav-h) + 2.5rem);padding-bottom:5rem;min-height:100vh}

/* ── header ── */
#site-header{position:fixed;top:0;left:0;right:0;z-index:100;padding-top:env(safe-area-inset-top,0px);background:rgba(255,255,255,.94);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--border);transition:box-shadow .2s}
#site-header.scrolled{box-shadow:0 2px 18px rgba(0,20,50,.07)}
.nav-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;height:var(--nav-h)}
.nav-logo{font-weight:700;font-size:1.02rem;color:var(--text);letter-spacing:-.01em;white-space:nowrap}
.nav-logo:hover{text-decoration:none;color:var(--primary)}
.nav-email{display:flex;align-items:center;gap:.5rem;font:13px var(--mono);color:var(--muted)}
.nav-email button{font:500 11.5px var(--font);border:1px solid var(--border);background:var(--bg);color:var(--muted);padding:3px 10px;border-radius:999px;cursor:pointer}
.nav-email button:hover{border-color:var(--link);color:var(--link)}
@media (max-width:760px){.nav-email{display:none}}
.nav-links{display:flex;gap:.25rem;list-style:none}
.nav-links a{display:block;padding:.35rem .75rem;border-radius:6px;color:var(--muted);font-size:.95rem}
.nav-links a:hover{background:var(--bg-alt);color:var(--text);text-decoration:none}
.nav-links a.active{background:var(--primary-light);color:var(--primary);font-weight:500}

/* ── profile ── */
.profile-grid{display:grid;grid-template-columns:1fr 190px;gap:3rem;align-items:start;padding-top:1rem}
@media (max-width:700px){.profile-grid{grid-template-columns:1fr;gap:1.5rem}.profile-photo-wrap{order:-1}}
.profile-name{font-size:2rem;font-weight:700;letter-spacing:-.02em;line-height:1.15;margin-bottom:.35rem}
.profile-role{color:var(--muted);margin-bottom:1.25rem}
.profile-bio p{color:#2A2D35}
.profile-photo{width:190px;height:190px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 4px #fff,0 0 0 5px var(--border),0 12px 30px rgba(0,39,76,.15)}
.profile-links{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1.5rem}
.profile-link{display:inline-flex;align-items:center;gap:.4rem;padding:.3rem .8rem;border:1px solid var(--border);border-radius:999px;font-size:.85rem;color:var(--text);background:var(--bg)}
.profile-link:hover{border-color:var(--link);color:var(--link);text-decoration:none;background:var(--primary-light)}
.profile-link svg,.profile-link img{width:14px;height:14px;flex:none}
.profile-link img{border-radius:3px}

/* ── sections ── */
.section-header{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;padding-bottom:.6rem;margin-bottom:1.4rem;border-bottom:1px solid var(--border)}
.section-title{font-size:1.4rem;font-weight:700;letter-spacing:-.01em;padding-left:.75rem;border-left:4px solid var(--maize);line-height:1.2}
.section-link{font-size:.88rem;color:var(--muted)}
.page-title{font-size:2rem;font-weight:700;letter-spacing:-.02em;margin-bottom:.5rem}
.page-sub{color:var(--muted);margin-bottom:2rem}

/* ── news: bubbles in a scroll box ── */
#news{position:relative}
.news-scroll{max-height:350px;overflow-y:auto;padding:.4rem .6rem .4rem 0;scroll-behavior:smooth;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#C3CEDF transparent}
.news-scroll::-webkit-scrollbar{width:8px}
.news-scroll::-webkit-scrollbar-thumb{background:#C3CEDF;border-radius:8px}
.news-scroll:focus-visible{outline:2px solid var(--link);outline-offset:4px;border-radius:12px}
#news::before,#news::after{content:"";position:absolute;left:0;right:12px;height:36px;pointer-events:none;transition:opacity .2s;z-index:1}
#news::before{top:0;background:linear-gradient(#fff,rgba(255,255,255,0))}
#news::after{bottom:0;background:linear-gradient(rgba(255,255,255,0),#fff)}
#news.at-top::before,#news.at-end::after{opacity:0}
.news-list{list-style:none;display:flex;flex-direction:column;gap:.85rem}
.news-item{--tint:#EAF0FA;--ink:#1D4F91;display:grid;grid-template-columns:40px 1fr;gap:.75rem;align-items:start}
.news-item.t-work{--tint:#FFF6D6;--ink:#8A6A00}
.news-item.t-edu{--tint:#E6F4EE;--ink:#1E6B4A}
.news-item.t-talk{--tint:#F3ECFA;--ink:#5B3A8C}
.news-icon{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--tint);color:var(--ink);box-shadow:0 0 0 3px #fff,0 2px 8px rgba(0,39,76,.10)}
.news-icon svg{width:18px;height:18px}
.bubble{position:relative;background:var(--tint);border-radius:4px 18px 18px 18px;padding:.7rem 1rem .8rem;transition:transform .25s cubic-bezier(.2,.7,.2,1),box-shadow .25s}
.bubble::before{content:"";position:absolute;left:-7px;top:0;border-top:10px solid var(--tint);border-left:8px solid transparent}
.news-item:hover .bubble{transform:translateX(3px);box-shadow:0 6px 18px rgba(0,39,76,.08)}
.bubble-meta{display:flex;align-items:center;gap:.5rem;margin-bottom:.15rem}
.news-date{font-size:.72rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--ink);font-variant-numeric:tabular-nums}
.news-tag{font-size:.68rem;font-weight:600;color:var(--ink);background:#fff;border-radius:999px;padding:0 .5rem;opacity:.85}
.news-text{font-size:.94rem;line-height:1.55;color:#22252D}
@media (prefers-reduced-motion:no-preference){.news-item{animation:pop .5s cubic-bezier(.2,.8,.3,1.2) both;animation-delay:calc(var(--i) * 60ms)}}
@keyframes pop{from{transform:translateY(6px) scale(.98)}to{transform:none}}
@media (max-width:520px){.news-scroll{max-height:360px}.news-item{grid-template-columns:32px 1fr;gap:.6rem}.news-icon{width:32px;height:32px}.news-icon svg{width:15px;height:15px}}

/* ── publications ── */
.pub-list{display:flex;flex-direction:column;gap:1rem;list-style:none}
.pub-card{display:grid;grid-template-columns:1fr;gap:1.25rem;background:var(--bg-alt);border:1px solid var(--border);border-radius:var(--radius);padding:1.25rem 1.4rem;transition:border-color .2s,box-shadow .2s}
.pub-card.has-thumb{grid-template-columns:190px 1fr}
.pub-card:hover{border-color:#C9D3E3;box-shadow:0 4px 18px rgba(0,39,76,.06)}
.pub-thumb{background:#fff;border:1px solid var(--border);border-radius:6px;overflow:hidden;aspect-ratio:4/3;max-width:100%}
.pub-thumb img{width:100%;height:100%;object-fit:contain}
@media (max-width:600px){.pub-card.has-thumb{grid-template-columns:1fr}}
.pub-title{font-size:1.02rem;font-weight:700;line-height:1.4;margin-bottom:.3rem;text-wrap:balance}
.pub-title a{color:var(--text)}
.pub-title a:hover{color:var(--link)}
.pub-authors{font-size:.9rem;color:var(--muted)}
.pub-authors strong{color:var(--text)}
.pub-venue{font-size:.9rem;font-style:italic;color:var(--link);margin-top:.1rem}
.pub-venue .status{font-style:normal;font-size:.72rem;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);border:1px solid var(--border);background:#fff;border-radius:4px;padding:1px 6px;margin-left:.4rem;vertical-align:1px}
.pub-summary{font-size:.9rem;color:#3C404A;margin-top:.55rem}
.pub-links{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.8rem}
.chip{display:inline-block;font-size:.78rem;font-weight:600;padding:.2rem .65rem;border-radius:4px;background:var(--primary-light);color:var(--primary)}
.chip:hover{background:var(--primary);color:#fff;text-decoration:none}

.filters{display:flex;flex-wrap:wrap;gap:.4rem;margin-bottom:1.5rem}
.filters button{font:500 .85rem var(--font);border:1px solid var(--border);background:var(--bg);color:var(--muted);padding:.3rem .85rem;border-radius:999px;cursor:pointer}
.filters button:hover{border-color:var(--link);color:var(--link)}
.filters button[aria-pressed="true"]{background:var(--primary);border-color:var(--primary);color:#fff}
.year-head{font-size:1rem;font-weight:700;color:var(--light);margin:2rem 0 .8rem;font-variant-numeric:tabular-nums}
.year-head:first-of-type{margin-top:0}

/* ── experience / education ── */
.org-list{display:flex;flex-direction:column;list-style:none}
.org{display:grid;grid-template-columns:64px 1fr auto;gap:1.1rem;align-items:center;padding:1rem 0;border-bottom:1px solid var(--border)}
.org:last-child{border-bottom:none}
.org-logo{width:64px;height:64px;border-radius:12px;border:1px solid var(--border);background:#fff;display:grid;place-items:center;overflow:hidden}
.org-logo img{max-width:86%;max-height:80%;object-fit:contain}
.org-logo.fill img{max-width:100%;max-height:100%;width:100%;height:100%;object-fit:cover}
.org-name{font-weight:700;font-size:1.02rem;line-height:1.35}
.org-role{color:var(--muted);font-size:.92rem}
.org-note{color:var(--light);font-size:.86rem;font-style:italic;margin-top:.15rem}
.org-dates{font-size:.85rem;color:var(--light);white-space:nowrap;font-variant-numeric:tabular-nums;text-align:right}
@media (max-width:600px){.org{grid-template-columns:52px 1fr}.org-logo{width:52px;height:52px}.org-dates{grid-column:2;text-align:left;margin-top:-.6rem}}
.sub-label{font-size:.78rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--light);margin:1.75rem 0 .25rem}
.sub-label:first-child{margin-top:0}

/* ── talks ── */
.talk-list{list-style:none;display:flex;flex-direction:column;gap:.75rem}
.talk-list li{padding-left:1rem;border-left:2px solid var(--border)}
.talk-title{font-weight:600;font-size:.95rem}
.talk-meta{color:var(--muted);font-size:.86rem}

/* ── CV page ── */
.btn-row{display:flex;flex-wrap:wrap;gap:.75rem;margin-bottom:1.75rem}
.btn{display:inline-flex;align-items:center;gap:.5rem;font-weight:600;font-size:.92rem;padding:.6rem 1.1rem;border-radius:6px;border:1.5px solid var(--primary)}
.btn.solid{background:var(--primary);color:#fff}
.btn.solid:hover{background:var(--link-hover);color:#fff;text-decoration:none}
.btn.ghost{color:var(--primary);background:#fff}
.btn.ghost:hover{background:var(--primary-light);text-decoration:none}
.cv-pages{display:flex;flex-direction:column;gap:1.25rem;padding:1.25rem;background:var(--bg-alt);border:1px solid var(--border);border-radius:var(--radius)}
.cv-page{display:block;max-width:100%;background:#fff;border-radius:4px;box-shadow:0 2px 12px rgba(0,39,76,.10)}
.cv-fallback{padding:2rem;text-align:center;color:var(--muted)}

/* ── footer ── */
#site-footer{border-top:1px solid var(--border);padding:1.5rem 0 calc(1.5rem + env(safe-area-inset-bottom,0px));text-align:center;font-size:.85rem;color:var(--light)}
#site-footer a{color:var(--muted)}
.loading-placeholder{color:var(--light)}

/* ── custom touches ── */
.wave{display:block;width:100%;max-width:520px;height:34px;margin:-.4rem 0 1rem}
.interests{list-style:none;display:flex;flex-wrap:wrap;justify-content:center;gap:.35rem;margin-top:1.25rem;max-width:190px}
.interests li{font-size:.74rem;font-weight:500;color:var(--primary);background:var(--primary-light);border-radius:999px;padding:.15rem .6rem}
@media (max-width:700px){.interests{justify-content:flex-start;max-width:none}}

/* ── internship callout bubble ── */
.hiring{position:relative;display:flex;gap:.85rem;align-items:flex-start;margin-top:1.6rem;padding:1rem 1.2rem 1.1rem;background:linear-gradient(135deg,#FFF7D1,#FFF0B8);border:1px solid #F3DE85;border-radius:6px 22px 22px 22px;box-shadow:0 8px 24px -12px rgba(138,106,0,.35)}
.hiring::before{content:"";position:absolute;left:18px;top:-9px;border-bottom:9px solid #F3DE85;border-left:8px solid transparent;border-right:8px solid transparent}
.hiring::after{content:"";position:absolute;left:19px;top:-7px;border-bottom:8px solid #FFF7D1;border-left:7px solid transparent;border-right:7px solid transparent}
.hiring-dot{flex:none;width:12px;height:12px;margin-top:.4rem;border-radius:50%;background:#2E9E5B;box-shadow:0 0 0 4px rgba(46,158,91,.18)}
@media (prefers-reduced-motion:no-preference){.hiring-dot{animation:ping 2s ease-out infinite}}
@keyframes ping{0%{box-shadow:0 0 0 0 rgba(46,158,91,.45)}70%{box-shadow:0 0 0 9px rgba(46,158,91,0)}100%{box-shadow:0 0 0 0 rgba(46,158,91,0)}}
.hiring-head{font-weight:700;color:#5C4700;font-size:.98rem;margin-bottom:.2rem}
.hiring-body p:not(.hiring-head){font-size:.93rem;color:#3D3424;line-height:1.55}
.hiring-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem;margin-top:.7rem}
.hiring-btn{display:inline-block;font-weight:600;font-size:.86rem;padding:.35rem .95rem;border-radius:999px;background:var(--primary);color:#fff}
.hiring-btn:hover{background:var(--link-hover);color:#fff;text-decoration:none}
.hiring-mail{font:13px var(--mono);color:#5C4700;user-select:all}
