/* 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;
}

/* Light theme — slightly stronger teal so the glow registers against off-white */
:root[data-theme="light"] .hero::before {
  background: radial-gradient(ellipse at 28% 42%, rgba(20, 184, 166, 0.16), transparent 62%);
}

/* Light theme — soft card shadows so cards have visual weight on the off-white bg */
:root[data-theme="light"] .thrust-card,
:root[data-theme="light"] .member-card,
:root[data-theme="light"] .project-card,
:root[data-theme="light"] .lab-lead,
:root[data-theme="light"] .contact-card {
  box-shadow: 0 1px 3px rgba(15, 20, 25, 0.04), 0 4px 14px rgba(15, 20, 25, 0.04);
}

:root[data-theme="light"] .thrust-card:hover {
  /* keep the lift effect but with a softer light-theme shadow */
  box-shadow: 0 4px 8px rgba(15, 20, 25, 0.06), 0 12px 28px rgba(15, 20, 25, 0.08);
}

/* 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;
}

/* Hero call-to-action row */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Homepage thrusts heading — matches the news-section h2 scale */
.thrusts-heading {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 1rem 0 0.25rem;
}

/* 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 */
.legacy-note {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 2rem 0;
}

/* Interior page header */
.page-header {
  /* longhand so .container's horizontal padding is preserved when used together */
  padding-top: 3rem;
  padding-bottom: 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 {
  /* longhand so .container's horizontal padding is preserved when used together */
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.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;
  transition: border-color 0.2s;
}

.member-card:hover {
  border-color: var(--accent);
}

.member-card img {
  width: 120px;
  height: 120px;
  border-radius: 6px;
  object-fit: cover;
  background: transparent;
  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;
  transition: border-color 0.2s;
}

.project-card:hover {
  border-color: var(--accent);
}

.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;
  /* longhand so .container's horizontal padding is preserved when used together */
  padding-top: 3rem;
  padding-bottom: 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;
}

/* Academic / professional presence — icon-button bar (pages/dibbendu-roy.html).
   Generic line icons in the site idiom; the text label carries the brand. */
.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.profile-link svg,
.profile-link img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.profile-link:hover,
.profile-link:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  text-decoration: none;
}

/* 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;
}

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

/* Small uppercase accent label used inside .prose for sub-section headings
   like "Key facts", "Eligibility", "How to apply". */
.subhead {
  margin: 1.25rem 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Two-column term/value grid for compact "key facts" blocks. */
.key-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.25rem;
  margin: 0 0 1.25rem;
  max-width: 760px;
  font-size: 0.92rem;
}
.key-facts dt {
  color: var(--text);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-top: 0.15rem;
}
.key-facts dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
@media (max-width: 520px) {
  .key-facts {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .key-facts dt {
    margin-top: 0.7rem;
  }
  .key-facts dt:first-child {
    margin-top: 0;
  }
}

/* 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;
}

/* Ghost variant — outlined, for secondary actions (e.g. hero) */
.button-link--ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.button-link--ghost:hover {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}

/* Homepage collaborators & partners strip — text badges, no third-party logos */
.collab-section {
  padding-top: 2.5rem;
  padding-bottom: 0.5rem;
}

.collab-heading {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.collab-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.collab-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.9rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  transition: border-color 0.2s, transform 0.2s;
}

.collab-list li:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.collab-name {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

.collab-org {
  color: var(--muted);
  font-size: 0.82rem;
}

/* Homepage call-to-action band — drives toward Openings */
.cta-band {
  margin-top: 2.5rem;
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--accent) 14%, var(--surface)),
      var(--surface));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.25rem 0;
}

.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.cta-band h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.cta-band p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 560px;
}

.cta-band .button-link {
  flex-shrink: 0;
}

/* Row of CTA buttons, used when a section has more than one external link. */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

/* 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;
}

/* Student feedback section — pages/teaching.html */
.feedback-hero {
  margin: 1.5rem 0 2rem;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border-radius: 0 12px 12px 0;
  line-height: 1.55;
  color: var(--text);
}

.feedback-hero p {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-style: italic;
}

.feedback-hero cite {
  display: block;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--muted);
}

.feedback-table tfoot th,
.feedback-table tfoot td {
  font-weight: 600;
  border-top: 2px solid var(--border);
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}

.feedback-table .pct {
  color: var(--muted);
  font-size: 0.85em;
  margin-left: 0.35rem;
  font-weight: 400;
}

.feedback-source {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.75rem 0 2.25rem;
  line-height: 1.55;
  max-width: 64rem;
}

.feedback-source strong {
  color: var(--text);
  font-weight: 600;
}

.feedback-themes-title {
  margin: 2rem 0 1rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.feedback-themes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.feedback-theme h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.feedback-theme blockquote {
  margin: 0 0 0.9rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.feedback-theme blockquote p {
  margin: 0 0 0.4rem;
  font-style: italic;
  line-height: 1.5;
  font-size: 0.95rem;
}

.feedback-theme blockquote cite {
  display: block;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted);
}

.feedback-asks {
  margin-top: 1.75rem;
  padding: 1rem 1.25rem;
  background: color-mix(in srgb, var(--muted) 10%, transparent);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.55;
}

.feedback-asks strong {
  color: var(--accent-2);
  font-weight: 600;
}

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

/* Preprint / type badge on a publication entry */
.pub-type-badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.5rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--accent-2);
  color: var(--accent-2);
  background: color-mix(in srgb, var(--accent-2) 10%, transparent);
}

.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;
}
