/* Shared Bharti blue / IIT Delhi red visual system. */
:root {
  --blue: #2f97da; --blue-link: #08689e; --navy: #073c60;
  --iit-red: #d40000; --red: #d40000; --red-bright: #be2634; --red-dark: #7c1723;
  --ink: #193346; --muted: #536875; --line: #d9e4eb; --paper: #f2f7fa; --warm: #e6f1f7;
  --container: min(1240px, calc(100% - 64px));
}
body { line-height: 1.5; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid var(--iit-red); outline-offset: 4px; }
img { color: var(--muted); }
.utility-bar { max-height: 26px; background: #edf4f8; color: #344e61; font-size: 14px; }
.utility-inner { min-height: 26px; }
.utility-inner nav { gap: 22px; }
.identity-row { min-height: 88px; gap: 22px; }
.identity { gap: 16px; min-width: 0; }
.iitd-logo { width: 64px; height: 64px; object-fit: contain; flex: 0 0 auto; }
.identity strong { font-size: clamp(21px, 2.2vw, 30px); color: var(--navy); }
.identity small { color: var(--iit-red); font-size: 11px; margin-top: 7px; letter-spacing: .15em; }
.bharti-wordmark { display: block; margin-left: auto; flex-shrink: 0; }
.bharti-wordmark img { width: 135px; height: auto; }
.nav-inner, .nav-group summary, .nav-direct { min-height: 46px; }
.nav-group summary, .nav-direct { font-size: 16px; padding-inline: 13px; }
.nav-group summary::after { color: var(--iit-red); }
.nav-cta { background: var(--blue-link); padding: 10px 16px; font-size: 15px; }
.nav-cta:hover { background: var(--navy); }
.nav-current, .primary-nav a[aria-current="page"] { color: var(--iit-red); }
.mega-menu { border-top-color: var(--iit-red); z-index: 55; }
.site-header.is-scrolled .identity-row { min-height: 70px; }
.site-header.is-scrolled .iitd-logo { width: 48px; height: 48px; }
.site-header.is-scrolled .identity strong { font-size: 24px; }
.site-header.is-scrolled .nav-inner, .site-header.is-scrolled .nav-group summary, .site-header.is-scrolled .nav-direct { min-height: 42px; }
.page-hero { min-height: 310px; background: var(--navy); }
.page-hero::before { background: linear-gradient(90deg,rgba(4,40,66,.97),rgba(7,64,101,.85) 55%,rgba(7,64,101,.34)),var(--page-image,none) center 48%/cover no-repeat; }
.page-hero::after { display: none; }
.page-hero-inner { padding: 44px 0; }
.page-hero h1 { font-size: clamp(40px,4.6vw,64px); max-width: 950px; line-height: 1.05; }
.page-hero p { font-size: 18px; max-width: 750px; margin-top: 18px; }
.breadcrumbs { margin-bottom: 22px; }
.page-section { padding: 72px 0; }
.content-heading { margin-bottom: 34px; }
.content-heading h2, .prose h2 { font-size: clamp(32px,3.4vw,46px); }
.content-heading > p { font-size: 18px; }
.content-heading .eyebrow { color: var(--iit-red); font-size: 14px; margin-bottom: 14px; }
.section-heading h2 { font-size: clamp(36px,4vw,54px); }
.section-heading { gap: 50px; }
.section-nav { top: 132px; }
.section-nav a[aria-current="page"] { border-left: 3px solid var(--iit-red); padding-left: 12px; }
.programme-badge { background: #f9ecee; color: var(--iit-red); }
.programme-panel::after { border-color: #d6e7f1; box-shadow: 0 0 0 36px #f2f7fa; }
.programme-panel > a, .text-link, .read-more, .gallery-caption a, .contact-help-link { color: var(--blue-link); }
.action-panel, .spotlight-meta, .resource-spotlight .spotlight-meta, .admissions-panel, .event-date, .person-avatar { background: var(--navy); }
.action-panel .button, .spotlight-meta .button { color: white; }
.admissions-intro { background: #0a5684; }
.callout { background: #edf5fa; border-left-color: var(--iit-red); }
.callout strong { color: var(--navy); }
.comparison th { background: var(--navy); }
.page-next a, .page-next a:last-child { background: var(--navy); }
.page-next a:last-child { background: #0a5f91; }
.contact-cta { background: #0a5f91; }
.research-section { background: #0b354e; }
.research-heading .eyebrow { color: #94d5fb; }
.research-card:hover { background: #114d6c; }
.site-footer { background: #102e42; }
.footer-logo { width: 66px; height: 66px; object-fit: contain; background: white; padding: 4px; margin-bottom: 20px; }
.footer-grid { gap: 40px; }
.footer-brand h2 { color: white; }
.footer-contact a { overflow-wrap: anywhere; }
.source-note { font-size: 15px; color: var(--muted); margin-top: 24px; }
.source-note a { color: var(--blue-link); text-decoration: underline; text-underline-offset: 3px; }
.editorial-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 25px; }
.editorial-card { min-width: 0; background: white; border: 1px solid var(--line); display: flex; flex-direction: column; }
.editorial-card > img { width: 100%; height: 230px; object-fit: cover; }
.editorial-card > div { padding: 28px; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.editorial-card h3 { margin: 0 0 14px; font: 400 29px/1.15 Georgia,serif; color: var(--navy); }
.editorial-card p { margin: 0 0 22px; font-size: 17px; line-height: 1.75; color: var(--muted); }
.editorial-card .text-link { margin-top: auto; font-size: 14px; }
.editorial-grid:has(> :nth-child(4)) { grid-template-columns: repeat(2,minmax(0,1fr)); }
.editorial-grid:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2,minmax(0,1fr)); }
.topic-strip { display: flex; flex-wrap: wrap; gap: 12px; }
.topic-strip span { padding: 10px 16px; border-bottom: 2px solid var(--iit-red); background: white; color: var(--navy); font-size: 16px; }
.lab-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px; }
.lab-card { border: 1px solid var(--line); background: white; scroll-margin-top: 145px; }
.lab-card > img { width: 100%; height: 280px; object-fit: cover; }
.lab-card > div { padding: 30px; }
.lab-card h2 { margin: 0 0 16px; font: 400 29px/1.15 Georgia,serif; }
.lab-card .eyebrow { font-size: 13px; margin-bottom: 15px; }
.lab-card p { font-size: 17px; color: var(--muted); }
.lab-lead { border-top: 1px solid var(--line); padding-top: 16px; }
.lab-lead strong { color: var(--iit-red); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.split-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-feature > img { width: 100%; height: 360px; object-fit: cover; }
.split-feature p { color: var(--muted); line-height: 1.8; }
.split-feature h3 { font: 400 27px Georgia,serif; }
.wide-photo { width: 100%; max-height: 540px; object-fit: cover; margin: 24px 0; }
.leadership-feature { display: grid; grid-template-columns: 230px 1fr; gap: 50px; align-items: start; max-width: 1000px; }
.leadership-feature > img { width: 230px; max-height: 320px; object-fit: cover; }
.leadership-feature .text-link { margin: 18px 25px 0 0; }
.leadership-feature p { color: var(--muted); }
.directory-tools { max-width: 690px; margin-bottom: 42px; }
.directory-tools label { display: block; font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.directory-tools input { display: block; width: 100%; background: white; border: 1px solid #98b5c7; border-radius: 0; padding: 15px 16px; font: inherit; color: var(--ink); }
.search-status { font-size: 15px; color: var(--muted); min-height: 18px; }
.directory-group { margin-bottom: 42px; }
.directory-group > h2 { margin: 0 0 23px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font: 400 31px Georgia,serif; }
.faculty-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.faculty-entry { display: flex; gap: 18px; padding: 22px; background: white; border: 1px solid var(--line); align-items: flex-start; min-width: 0; }
.directory-portrait, .faculty-initials { width: 76px; height: 92px; object-fit: cover; object-position: center top; flex: 0 0 auto; }
.faculty-initials { display: grid; place-items: center; background: #e7f1f8; color: var(--blue-link); font: 28px Georgia,serif; }
.faculty-entry h3 { margin: 0 0 8px; font: 400 21px/1.25 Georgia,serif; }
.faculty-entry p { margin: 0 0 7px; font-size: 15px; color: var(--muted); }
.directory-note { color: var(--iit-red); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.cohort { margin-bottom: 20px; }
.student-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.student-card { display: flex; gap: 18px; padding: 22px; background: #fff; align-items: flex-start; min-width: 0; }
.student-portrait, .student-initials { width: 70px; height: 88px; object-fit: cover; object-position: center top; flex: 0 0 auto; }
.student-initials { display: grid; place-items: center; font: 25px Georgia,serif; color: var(--blue-link); background: var(--paper); }
.student-card h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.35; }
.entry-number { font-size: 13px; font-weight: 700; color: var(--iit-red); letter-spacing: .04em; }
.student-card p { font-size: 14px; line-height: 1.6; color: var(--muted); }
.student-card p strong { display: block; font-size: 12px; text-transform: uppercase; }
.student-card > div { min-width: 0; overflow-wrap: anywhere; }
.staff-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 25px; }
.staff-card { border: 1px solid var(--line); min-width: 0; }
.staff-portrait { width: 100%; height: 290px; object-fit: contain; object-position: center; background: var(--paper); padding: 20px; }
.staff-card > div { padding: 26px; }
.staff-card h2 { font: 400 28px Georgia,serif; margin: 0 0 12px; }
.staff-card p { font-size: 16px; color: var(--muted); }
.staff-card .person-role { color: var(--iit-red); }
.staff-card a { color: var(--blue-link); font-size: 15px; overflow-wrap: anywhere; }
.news-story-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px; }
.news-story { border: 1px solid var(--line); scroll-margin-top: 150px; }
.news-story > img { width: 100%; height: 310px; object-fit: cover; }
.news-story > div { padding: 30px; }
.news-story .eyebrow { font-size: 13px; }
.news-story h2 { margin: 0 0 17px; font: 400 31px/1.12 Georgia,serif; }
.news-story p { font-size: 17px; line-height: 1.8; color: var(--muted); }
.news-story .source-note { font-size: 15px; }
img.poster { object-fit: contain; background: #e8f0f5; padding: 12px; }
.album-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 55px; }
.album-link { padding: 10px 14px; border: 1px solid var(--line); color: var(--blue-link); font-size: 15px; font-weight: 700; }
.album-link:hover { background: var(--paper); }
.photo-album { margin-bottom: 65px; scroll-margin-top: 145px; }
.photo-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.photo-grid figure { margin: 0; }
.photo-grid a { display: block; overflow: hidden; background: var(--paper); }
.photo-grid img { width: 100%; height: 250px; object-fit: cover; transition: transform .25s ease; }
.photo-grid img.poster { object-fit: contain; height: 330px; }
.photo-grid a:hover img { transform: scale(1.03); }
.photo-grid figcaption { padding: 12px 0; color: var(--muted); font-size: 14px; }
.photo-dialog { border: 0; padding: 30px; background: #092a3e; color: white; max-width: min(1100px,95vw); max-height: 95vh; }
.photo-dialog::backdrop { background: rgba(0,15,25,.86); }
.photo-dialog img { max-height: 77vh; width: auto; margin: auto; object-fit: contain; }
.photo-dialog p { font-size: 15px; margin: 16px 0 0; }
.close-photo { position: absolute; right: 2px; top: 0; width: 32px; height: 32px; color: white; background: var(--iit-red); border: 0; font-size: 25px; cursor: pointer; }
.award-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin-bottom: 35px; }
.award-card { padding: 28px; background: var(--paper); border-top: 3px solid var(--blue); }
.award-card > span { color: var(--iit-red); font: 32px Georgia,serif; }
.award-card h3 { font: 400 23px Georgia,serif; margin: 14px 0 0; }
.publication-feature { display: grid; grid-template-columns: 240px 1fr; align-items: center; gap: 60px; padding: 36px; background: var(--paper); border-left: 4px solid var(--iit-red); }
.publication-feature > img { width: 240px; max-height: 320px; object-fit: contain; }
.publication-feature p { color: var(--muted); line-height: 1.8; }
.placement-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin-block: 36px; border-block: 1px solid var(--line); }
.placement-metrics article { padding: 28px 22px; border-right: 1px solid var(--line); }
.placement-metrics article:last-child { border: 0; }
.placement-metrics span { color: var(--muted); font-size: 15px; }
.placement-metrics strong { display: block; font: 42px Georgia,serif; color: var(--blue-link); margin-top: 12px; }
.placement-metrics small { font: 12px Arial,sans-serif; color: var(--iit-red); }
.project-list { columns: 2; column-gap: 50px; padding-left: 22px; }
.project-list li { break-inside: avoid; margin-bottom: 15px; color: var(--muted); }
@media (max-width: 1100px) {
  .faculty-grid, .student-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nav-group summary, .nav-direct { padding-inline: 9px; font-size: 15px; }
  .editorial-card > div { padding: 22px; }
}
@media (max-width: 980px) {
  :root { --container: calc(100% - 40px); }
  .bharti-wordmark { display: block; }
  .bharti-wordmark img { width: 95px; }
  .identity-row { min-height: 80px; gap: 14px; }
  .identity strong { font-size: 23px; }
  .identity small { font-size: 9px; }
  .menu-toggle { width: 44px; height: 44px; flex-shrink: 0; background: var(--blue-link); }
  .nav-inner { min-height: 0; }
  .nav-group summary, .nav-direct { min-height: 46px; padding-inline: 4px; font-size: 17px; }
  .primary-nav.is-open { max-height: calc(100dvh - 110px); overflow-y: auto; }
  .editorial-grid, .staff-grid, .photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .split-feature { gap: 30px; }
  .publication-feature { grid-template-columns: 170px 1fr; gap: 32px; padding: 26px; }
  .publication-feature > img { width: 170px; }
  .placement-metrics { grid-template-columns: repeat(2,1fr); }
  .section-nav { position: static; }
  .leadership-feature { gap: 30px; grid-template-columns: 180px 1fr; }
  .leadership-feature > img { width: 180px; }
}
@media (max-width: 640px) {
  :root { --container: calc(100% - 32px); }
  .identity strong { font-size: 17px; max-width: 225px; }
  .identity { gap: 10px; }
  .identity small { font-size: 8px; letter-spacing: .08em; }
  .iitd-logo { width: 44px; height: 44px; }
  .bharti-wordmark { display: none; }
  .site-header.is-scrolled .identity strong { font-size: 17px; }
  .site-header.is-scrolled .identity small { font-size: 8px; }
  .site-header.is-scrolled .iitd-logo { width: 40px; height: 40px; }
  .page-hero { min-height: 280px; }
  .page-hero h1 { font-size: 39px; }
  .page-hero p { font-size: 18px; }
  .page-section { padding: 48px 0; }
  .editorial-grid, .editorial-grid:has(> :nth-child(4)), .editorial-grid:has(> :nth-child(2):last-child), .lab-grid, .split-feature, .staff-grid, .news-story-grid, .award-grid, .photo-grid, .faculty-grid, .student-card-grid { grid-template-columns: 1fr; }
  .split-feature > img { height: 260px; }
  .leadership-feature { grid-template-columns: 1fr; }
  .leadership-feature > img { width: 150px; max-height: 205px; }
  .publication-feature { grid-template-columns: 1fr; }
  .publication-feature > img { width: 170px; margin: auto; }
  .placement-metrics article { padding: 24px 10px; }
  .placement-metrics strong { font-size: 31px; }
  .project-list { columns: 1; }
  .photo-grid img, .lab-card > img { height: 240px; }
  .staff-portrait { height: 280px; }
  .cohort summary { gap: 12px; padding: 20px; }
  .cohort-title strong { font-size: 22px; }
  .photo-dialog { padding: 30px 10px 15px; }
}

/* Let narrow content columns shrink around horizontally scrollable tables. */
.content-shell > *, .programme-detail-grid > * { min-width: 0; }


/* Give documentary photos and portraits more room throughout the site. */
.editorial-card > img { height: 290px; }
.lab-card > img, .news-story > img { height: 365px; }
.split-feature > img { height: 440px; }
.leadership-feature { grid-template-columns: 300px minmax(0,1fr); max-width: 1120px; }
.leadership-feature > img { width: 300px; height: auto; max-height: none; }
.faculty-grid, .student-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.directory-portrait, .faculty-initials { width: 104px; height: 130px; }
.student-portrait, .student-initials { width: 96px; height: 120px; }
.staff-portrait { height: 355px; padding: 12px; }
.photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.photo-grid img { height: 350px; }
.photo-grid img.poster { height: 420px; }
.publication-feature { grid-template-columns: 290px minmax(0,1fr); }
.publication-feature > img { width: 290px; max-height: 410px; }
@media (max-width: 980px) {
 .leadership-feature { grid-template-columns: 250px minmax(0,1fr); }
 .leadership-feature > img { width: 250px; }
 .lab-card > img, .news-story > img, .photo-grid img { height: 290px; }
 .publication-feature { grid-template-columns: 230px minmax(0,1fr); }
 .publication-feature > img { width: 230px; }
}
@media (max-width: 640px) {
 .faculty-grid, .student-card-grid, .photo-grid { grid-template-columns: 1fr; }
 .faculty-entry, .student-card { gap: 18px; padding: 20px; }
 .directory-portrait, .faculty-initials { width: 96px; height: 120px; }
 .student-portrait, .student-initials { width: 88px; height: 110px; }
 .leadership-feature, .publication-feature { grid-template-columns: 1fr; }
 .leadership-feature > img { width: min(280px,100%); margin-inline: auto; }
 .publication-feature > img { width: min(250px,100%); }
 .split-feature > img { height: 320px; }
 .editorial-card > img, .lab-card > img, .news-story > img, .photo-grid img { height: 280px; }
 .photo-grid img.poster { height: 380px; }
}

/* Shared reading rhythm for body copy, tables and directories. */
body { font-size: 18px; }
.utility-bar { max-height: 32px; font-size: 13px; }
.utility-inner { min-height: 32px; }
.site-header.is-scrolled .utility-bar { max-height: 0; }
.student-card p, .faculty-entry p { font-size: 16px; line-height: 1.65; }
.student-card h3 { font-size: 19px; }
.faculty-entry > div { min-width: 0; overflow-wrap: anywhere; }
.placement-metrics small { font-size: 14px; }
.page-hero { height: auto; }
@media (min-width: 981px) and (max-width: 1200px) {
 .nav-group summary, .nav-direct { padding-inline: 7px; font-size: 14px; }
 .nav-cta { font-size: 14px; padding-inline: 12px; }
}

/* October 2026 change list: expanded navigation and laboratory details. */
.utility-inner nav { flex-wrap: wrap; }
.utility-bar { max-height: none; }
.lab-grid { align-items: start; }
.lab-details { margin-top: 24px; border-top: 1px solid var(--line); }
.lab-details summary { cursor: pointer; color: var(--blue-link); font-weight: 700; padding: 18px 0; font-size: 18px; }
.lab-details-body h3 { color: var(--navy); font-size: 21px; margin: 26px 0 12px; }
.lab-details-body p, .lab-details-body li { font-size: 18px; line-height: 1.65; }
.lab-details-body ul { padding-left: 24px; }
.lab-details-body li { margin-bottom: 12px; }
@media (max-width: 640px) {
  .utility-inner nav { justify-content: flex-start; gap: 6px 16px; padding-block: 6px; }
}

/* Keep continuing-education and lab anchors clear of the sticky header. */
#cep-courses, #online-diplomas, #wireless-sensing { scroll-margin-top: 145px; }
@media (max-width: 640px) {
  #cep-courses, #online-diplomas, #wireless-sensing { scroll-margin-top: 100px; }
}
