/* LAN Lab — component styles
   Hero, research-thrust cards, and small layout helpers. */

/* Layout helper — shared by nav and page sections */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.accent {
  color: var(--accent);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 2rem;
}

/* Soft teal radial glow behind the heading — adds depth */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 28% 42%, rgba(45, 212, 191, 0.14), transparent 62%);
  pointer-events: none;
  z-index: 0;
}

/* Keep hero content above the glow and the canvas */
.hero > * {
  position: relative;
  z-index: 1;
}

/* Network-constellation animation canvas — behind the hero text */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.kicker {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(1.6rem, 6vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero .tagline {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 720px;
  margin-top: 1rem;
}

/* Research-thrust cards */
.thrusts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  padding: 0.5rem 0 3rem;
}

.thrust-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.thrust-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.thrust-card h3 {
  font-size: 1.05rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.thrust-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.thrust-card .more {
  color: var(--accent-2);
  font-size: 0.85rem;
  margin-top: 1rem;
  display: inline-block;
}

/* Transitional notice */
.construction-note {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 2rem 0;
}

/* Interior page header */
.page-header {
  padding: 3rem 0 1rem;
}

.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-header .intro {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 760px;
  margin-top: 0.75rem;
}

/* Italic philosophy line — Teaching page intro, kept at body scale */
.page-header .lead-quote {
  color: var(--muted);
  font-size: 1.05rem;
  font-style: italic;
  max-width: 640px;
  margin-top: 0.75rem;
}

/* Interior page sections */
.page-section {
  padding: 1.5rem 0;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

/* Lab-lead band — a slim block, distinct from the student member cards */
.lab-lead {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
}

.lab-lead img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.lab-lead p {
  flex: 1;
  min-width: 220px;
  color: var(--text);
  font-size: 0.98rem;
}

.lab-lead a {
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Member cards — people with a photo */
.member-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.member-card {
  display: flex;
  gap: 1rem;
  width: 340px;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
}

.member-card img {
  width: 120px;
  height: 120px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--bg);
  flex-shrink: 0;
}

.member-card .member-name {
  font-weight: 700;
  color: var(--text);
}

.member-card .member-role {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.15rem;
}

.member-card .member-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Project cards — B.Tech work organized by project */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}

.project-card h3 {
  font-size: 1.05rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.project-card .project-brief {
  color: var(--muted);
  font-size: 0.9rem;
}

.project-card .project-students {
  color: var(--text);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.project-card .project-students strong {
  color: var(--muted);
  font-weight: 600;
}

/* Text-style people lists — alumni, collaborators */
.people-list {
  list-style: none;
}

.people-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}

.people-list li:last-child {
  border-bottom: none;
}

.people-list .person-name {
  color: var(--text);
  font-weight: 600;
}

/* Profile page header — dibbendu-roy.html */
.profile-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 3rem 0 1rem;
}

.profile-header img {
  width: 180px;
  height: 180px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.profile-header .profile-title {
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 0.5rem;
  max-width: 460px;
}

.profile-header .profile-one-liner {
  color: var(--accent);
  font-size: 0.95rem;
  margin-top: 0.75rem;
}

/* Readable prose blocks */
.prose p {
  color: var(--muted);
  max-width: 760px;
  margin-bottom: 1rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose strong {
  color: var(--text);
}

.prose ul {
  color: var(--muted);
  max-width: 760px;
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

/* Solid call-to-action link */
.button-link {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
}

.button-link:hover {
  background: var(--accent-2);
  text-decoration: none;
}

/* Section subtitle */
.section-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

/* Course tables — teaching.html */
.table-wrap {
  overflow-x: auto;
}

.course-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

/* Empty/note table (Section A) — no need to force a scroll width */
.course-table--note {
  min-width: 0;
}

.course-table th {
  text-align: left;
  background: var(--surface);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.course-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 0.95rem;
  vertical-align: top;
}

.course-table tbody tr:last-child td {
  border-bottom: none;
}

.course-table tbody tr {
  transition: background 0.15s;
}

.course-table tbody tr:hover {
  background: var(--surface);
}

.course-table .course-name .code {
  color: var(--accent);
  font-weight: 600;
}

.course-table .table-note {
  color: var(--muted);
  font-style: italic;
}

/* Offering chips */
.offerings {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  white-space: nowrap;
}

/* Pending chip — materials not yet linked */
.chip-pending {
  color: var(--muted);
  cursor: default;
}

/* Live chip — links to a materials repo (used once repos exist) */
a.chip {
  color: var(--accent);
}

a.chip:hover {
  border-color: var(--accent);
  text-decoration: none;
}

/* Publications list — publications.html */
.pub-refresh-note {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.6rem;
}

.pub-status {
  color: var(--muted);
}

.pub-year-group {
  margin-bottom: 2.25rem;
}

.pub-year {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  padding-bottom: 0.4rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.pub-entry {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}

.pub-entry:last-child {
  border-bottom: none;
}

.pub-title {
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.4;
}

.pub-authors {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.3rem;
}

.pub-authors strong {
  color: var(--text);
}

.pub-venue {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 0.2rem;
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.pub-links a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.pub-cites {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Research thrusts — research.html */
.research-thrust {
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 84px;     /* clear the sticky nav on anchor jumps */
}

.directions-label {
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
}

.directions-list {
  margin-top: 0.5rem;
  padding-left: 1.25rem;
  color: var(--muted);
}

.directions-list li {
  margin-bottom: 0.35rem;
}

.research-closing {
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

/* Homepage "Recent Updates" band */
.news-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
  margin-top: 1rem;
}

.news-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.news-status {
  color: var(--muted);
}

.news-items {
  list-style: none;
}

.news-item {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  display: block;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.news-text {
  color: var(--text);
  font-size: 0.95rem;
}

.news-link {
  color: var(--accent);
  font-weight: 600;
}

/* Newest item — flagged so the section showcases recent activity */
.news-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.4rem;
}

.news-item--latest {
  border-left: 2px solid var(--accent);
  padding-left: 0.9rem;
  margin-left: -0.9rem;
}

/* Openings page */
.opening {
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
}

.provisional-tag {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 0.5rem;
}

.contact-card .contact-intro {
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 1rem;
}

.contact-card .contact-name {
  font-weight: 700;
  color: var(--text);
}

.contact-card .contact-line {
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-card .contact-more {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}
