.talk-list { display: grid; gap: 20px; margin-top: 28px; }
.talk-card { border: 1px solid var(--line); border-radius: 14px; padding: 22px 26px; background: rgba(255,255,255,.55); }
.talk-card h2 { margin: 6px 0 8px; font-size: 24px; }
.talk-card p { margin: 8px 0; line-height: 1.55; }
.talk-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 14px; }
.talk-date { color: var(--orange-dark); font-weight: 600; }
.talk-venue { color: var(--text-soft); }
.talk-event { color: var(--text-soft); }
.talk-button { display: inline-block; margin-top: 10px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; text-decoration: none; }
.talk-button i { margin-right: 6px; }
body.dark-mode .talk-card { background: rgba(10,30,50,.55); border-color: #173b5c; }
body.dark-mode .talk-date { color: #ffbf73; }
.talk-button + .talk-button { margin-left: 8px; }



.paper-connect { margin: 6px 0 4px; text-align: center; }
.paper-connect a { color: inherit; text-decoration: none; }
.paper-connect span { display: block; color: var(--orange-dark); font: 600 10.5px/1.4 "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.paper-connect strong { display: block; font-size: 18px; }
.paper-connect em { display: block; font-style: normal; font-size: 13px; line-height: 1.4; color: var(--text-soft); }
.pc-root { display: inline-block; padding: 10px 22px; background: #fff; border: 1px solid var(--line); border-top: 3px solid #0b5ea8; }
.pc-arrow { margin: 8px 0; color: #0b5ea8; font: 600 11.5px "IBM Plex Mono", monospace; }
.pc-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.pc-row a { padding: 10px; background: #fff; border: 1px solid var(--line); }
.pc-row a:hover, .pc-root:hover { border-color: #0b5ea8; }
.pc-loop { margin: 12px 0 0; color: #0b5ea8; font: 600 12px/1.5 "IBM Plex Mono", monospace; }
body.dark-mode .pc-root, body.dark-mode .pc-row a { background: transparent; }

/* Talks reuse the research-card layout; label each card by its kind. */
body.talks-page .research-card::before { content: "Talk"; }
body.talks-page #epoch-s1::before, body.talks-page #epoch-s2::before, body.talks-page #epoch-s3::before, body.talks-page #epoch-s4::before, body.talks-page #epoch-s5::before { content: "Session"; }
body.talks-page #epoch-w1::before, body.talks-page #epoch-w2::before { content: "Workshop"; }
body.talks-page #programming-ai-accelerators::before { content: "Guest lecture"; }
body.talks-page #vllm-meetup-mumbai::before { content: "Invited talk"; }
body.talks-page #docai-research::before { content: "Thesis talk"; }
body.talks-page #docog-eccv::before { content: "Spotlight · ECCV 2026"; }
body.talks-page #replica-icdar::before { content: "Oral · ICDAR 2026"; }

body.research-page:not(.talks-page) #patram::before { content: "Model · BharatGen"; }
body.research-page:not(.talks-page) #evikrai::before { content: "Model · BharatGen"; }
body.research-page:not(.talks-page) #programming-ai-accelerators::before { content: "Guest lecture"; }
body.research-page:not(.talks-page) #vllm-meetup-mumbai::before { content: "Invited talk"; }


/* Research interests */
.interest-map { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 22px 0 8px; }
.interest-map a { display: block; padding: 12px 14px; color: inherit; text-decoration: none; text-align: left; background: var(--surface-strong); border: 1px solid var(--line); border-top: 3px solid #0b5ea8; }
.interest-map a:hover { border-color: var(--orange); }
.interest-map span { display: block; color: var(--orange-dark); font: 600 11px/1.4 "IBM Plex Mono", monospace; letter-spacing: .1em; }
.interest-map strong { display: block; margin: 2px 0; font-size: 17px; line-height: 1.25; color: var(--text); }
.interest-map em { display: block; font-style: normal; font-size: 13.5px; line-height: 1.4; color: var(--text-soft); }
.page-section > p.interest-map-note { margin-top: 8px; font: 600 12px/1.5 "IBM Plex Mono", monospace; color: #0b5ea8; text-align: center; }
.research-interest { margin-top: 46px; scroll-margin-top: 80px; }
.interest-head { padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.interest-kicker { margin: 0; color: var(--orange-dark); font: 600 11px/1.4 "IBM Plex Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.interest-head h2 { margin: 4px 0 6px; font-size: clamp(26px, 4vw, 34px); line-height: 1.1; }
.interest-head p:last-child { margin: 0 0 10px; color: var(--text-soft); font-size: 17px; line-height: 1.5; }
body.dark-mode .interest-map a { background: transparent; }
@media (max-width: 640px) { .interest-map { grid-template-columns: 1fr; } }
.research-thesis { margin: 10px 0 8px; font-size: 16px; line-height: 1.55; color: var(--text-soft); }
.research-thesis strong { color: var(--text); }
#research-talk .paper-connect { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }

/* VLM infrastructure: the stack from the guest lecture, slide 2 */
body.research-page:not(.talks-page) #patram-ingest::before { content: "System"; }
.infra-stack { margin: 18px 0 6px; }
.infra-stack ol { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.infra-stack li { box-sizing: border-box; margin: 0 auto; width: 100%; padding: 9px 14px; text-align: center; background: var(--surface-strong); border: 1px solid var(--line); }
.infra-stack li:nth-child(1) { width: 52%; } .infra-stack li:nth-child(2) { width: 60%; } .infra-stack li:nth-child(3) { width: 68%; }
.infra-stack li:nth-child(4) { width: 76%; } .infra-stack li:nth-child(5) { width: 84%; } .infra-stack li:nth-child(6) { width: 92%; }
.infra-stack li.is-focus { border-color: #0b5ea8; border-width: 2px; background: #fff; }
.infra-stack li.is-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0; background: transparent; border: 0; }
.infra-stack li.is-split > div { box-sizing: border-box; padding: 9px 14px; background: var(--surface-strong); border: 1px solid var(--line); }
.infra-stack span { display: block; color: var(--orange-dark); font: 600 10.5px/1.4 "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.infra-stack strong { display: block; font-size: 15.5px; line-height: 1.3; color: var(--text); }
.infra-stack figcaption { margin-top: 8px; color: var(--text-soft); font: 12px/1.5 "IBM Plex Mono", monospace; text-align: center; }
body.dark-mode .infra-stack li, body.dark-mode .infra-stack li.is-split > div { background: transparent; }
@media (max-width: 640px) { .infra-stack li { width: 100% !important; } .infra-stack li.is-split { grid-template-columns: 1fr; } }

/* Thesis card inside a research interest: set apart from the publication cards */
body.research-page .research-card.thesis-card {
  background: #eaf0f6;
  border: 1px solid #b9cbe0;
  border-left: 5px solid #0b5ea8;
  padding-top: 52px;
}
body.research-page .research-card.thesis-card:hover { background: #eef3f8; border-color: #b9cbe0; border-left-color: #0b5ea8; transform: none; }
body.research-page .research-card.thesis-card::before { color: #0b5ea8; content: "Thesis"; }
body.research-page .thesis-card .papertitle { font-size: 1.32em; }
body.research-page .thesis-card .research-thesis { padding: 12px 14px; background: rgba(255,255,255,.7); border-left: 3px solid #d66f00; color: var(--text); font-size: 16.5px; }
body.research-page .thesis-card .pc-root,
body.research-page .thesis-card .pc-row a { background: #fff; }
body.dark-mode.research-page .research-card.thesis-card { background: #0d2740; border-color: #1f4a72; border-left-color: #6fb7ff; }
body.dark-mode.research-page .thesis-card .research-thesis { background: rgba(255,255,255,.04); }
body.research-page .research-card.thesis-card { flex-direction: column; }
body.research-page .thesis-card .research-card-image { align-self: flex-start; margin: 0 0 16px; }
body.research-page .thesis-card .research-card-image img { max-width: 260px; }
body.research-page .thesis-card .thesis-why { margin: 12px 0 4px; padding-left: 22px; color: var(--text-soft); font-size: 16px; line-height: 1.55; }
body.research-page .thesis-card .thesis-why li { margin: 8px 0; padding-left: 4px; }
body.research-page .thesis-card .thesis-why li::marker { color: #d66f00; font-weight: 700; }
body.research-page .thesis-card .thesis-why strong { color: var(--text); }
body.research-page .thesis-card .thesis-why a { color: #0b5ea8; text-decoration: underline; text-underline-offset: 2px; }
body.dark-mode.research-page .thesis-card .thesis-why a { color: #6fb7ff; }
body.research-page .thesis-card .infra-stack { margin: 16px 0 4px; }
.talk-blurb { margin: 8px 0 0; color: var(--text-soft); font-size: 15.5px; line-height: 1.55; }
a.arxiv-button { display: inline-block; text-decoration: none; }

.epoch-fold { margin-top: 38px; border: 1px solid var(--line); border-radius: 8px; scroll-margin-top: 80px; }
.epoch-fold > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px; align-items: center; padding: 18px 22px; cursor: pointer; list-style: none; }
.epoch-fold > summary::-webkit-details-marker { display: none; }
.epoch-sum-text h2 { margin: 0 0 6px; }
.epoch-sum-text > span { display: block; max-width: 680px; color: var(--text-soft); font-size: 15px; line-height: 1.5; }
.epoch-count { color: var(--orange-dark); font: 600 11.5px/1.4 "IBM Plex Mono", ui-monospace, monospace; white-space: nowrap; }
.epoch-fold > summary > i { color: var(--text-soft); transition: transform 180ms ease; }
.epoch-fold[open] > summary > i { transform: rotate(180deg); }
.epoch-fold > summary:hover h2 { color: var(--orange-dark); }
.epoch-fold[open] > summary { border-bottom: 1px solid var(--line); }
.epoch-fold > .research-card { margin-left: 22px; margin-right: 22px; }
.epoch-fold > .research-card:last-child { margin-bottom: 22px; }
@media (max-width: 768px) { .epoch-fold > summary { grid-template-columns: minmax(0, 1fr) auto; padding: 16px; } .epoch-count { display: none; } .epoch-fold > .research-card { margin-left: 14px; margin-right: 14px; } }

.talk-photos { margin: 10px 0 0; }
.talk-photos summary { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; color: var(--blue-dark, #0b5ea8); border: 1px solid currentColor; border-radius: 6px; cursor: pointer; list-style: none; font: 600 12px/1 "IBM Plex Mono", monospace; }
.talk-photos summary::-webkit-details-marker { display: none; }
.talk-photos img { display: block; width: 100%; max-width: 620px; margin-top: 10px; border: 1px solid var(--line); border-radius: 6px; }
body.dark-mode .talk-photos summary { color: #7fc1ff; }

.research-more { margin: 36px 0 12px; }
.research-more a { display: flex; align-items: center; gap: 18px; padding: 20px 22px; color: inherit; text-decoration: none; background: linear-gradient(135deg, rgba(11, 94, 168, 0.07), rgba(242, 140, 24, 0.07)); border: 1px solid rgba(120, 120, 120, 0.3); border-radius: 10px; transition: transform 180ms ease, border-color 180ms ease; }
.research-more a:hover { transform: translateY(-2px); border-color: #f28c18; }
.research-more i { color: #f28c18; font-size: 26px; }
.research-more span { flex: 1; min-width: 0; }
.research-more small { display: block; color: #f28c18; font: 600 11px/1.4 "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.research-more strong { display: block; margin: 2px 0 3px; font: 700 22px/1.2 "Bricolage Grotesque", system-ui, sans-serif; }
.research-more em { display: block; font-style: normal; opacity: .75; font-size: 14.5px; line-height: 1.45; }
.research-more b { color: #0b5ea8; font: 600 12px/1 "IBM Plex Mono", monospace; white-space: nowrap; }
@media (max-width: 640px) { .research-more a { flex-wrap: wrap; gap: 10px; padding: 16px; } .research-more strong { font-size: 18px; } .research-more b { width: 100%; } }

.epoch-link { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px; align-items: center; margin-top: 38px; padding: 18px 22px; color: inherit; text-decoration: none; border: 1px solid var(--line); border-radius: 8px; transition: border-color 160ms ease, transform 160ms ease; }
.epoch-link:hover { border-color: var(--orange); transform: translateY(-2px); }
.epoch-link:hover h2 { color: var(--orange-dark); }
.epoch-link > i { color: var(--text-soft); }
.back-link { display: inline-block; margin-bottom: 10px; color: var(--blue-dark, #0b5ea8); font: 600 12px/1 "IBM Plex Mono", monospace; text-decoration: none; }
.back-link:hover { color: var(--orange-dark); }
@media (max-width: 768px) { .epoch-link { grid-template-columns: minmax(0, 1fr) auto; padding: 16px; } }
.epoch-link h2 { margin: 0 0 6px; font-size: 26px; line-height: 1.15; }
.epoch-link .epoch-sum-text > span { display: block; max-width: 680px; font-size: 15px; line-height: 1.5; }

.epoch-link { grid-template-columns: auto minmax(0, 1fr) auto auto; background: linear-gradient(135deg, rgba(95, 44, 150, 0.09), rgba(242, 140, 24, 0.07)), var(--surface-strong, transparent); }
.epoch-link-logo { width: 64px; height: 64px; border-radius: 12px; }
@media (max-width: 768px) { .epoch-link { grid-template-columns: auto minmax(0, 1fr) auto; } .epoch-link-logo { width: 48px; height: 48px; } }

.epoch-strip { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
.epoch-strip img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: 0 4px 12px rgba(30, 20, 60, 0.10); transition: transform 200ms ease; }
.epoch-strip img:nth-child(odd) { transform: translateY(0) rotate(-1.2deg); }
.epoch-strip img:nth-child(even) { transform: translateY(3px) rotate(1.2deg); }
.epoch-link:hover .epoch-strip img { transform: translateY(-4px) rotate(0); }
@media (max-width: 768px) { .epoch-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } }
