/* Typography imports */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;0,8..60,600;0,8..60,700;1,8..60,400&display=swap");

/* Base layout */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body.sunlab-body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #e5e7eb;
  background-color: #020617;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.sunlab-logo,
.sunlab-section-label,
.sunlab-btn {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.sunlab-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px 72px;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.sunlab-logo:hover {
  text-decoration: none;
}

/* Header / nav */
.sunlab-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(8, 14, 30, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sunlab-header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.sunlab-logo {
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.sunlab-logo-image {
  display: block;
  height: 48px;
  width: auto;
}

.sunlab-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.sunlab-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}

.sunlab-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.18s ease, color 0.18s ease;
}

.sunlab-nav a:hover {
  opacity: 1;
}

.sunlab-nav-cta {
  border-radius: 999px;
  padding: 10px 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  background: transparent;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.sunlab-nav-cta:hover {
  border-color: rgba(255, 255, 255, 0.9);
  background-color: rgba(249, 115, 22, 0.1);
}

.sunlab-nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  position: relative;
  border: none;
  background: none;
  padding: 0;
}

.sunlab-nav-toggle span {
  position: absolute;
  left: 6px;
  right: 6px;
  height: 2px;
  background: #e5e7eb;
  transition: transform 0.18s ease, top 0.18s ease, opacity 0.18s ease;
}

.sunlab-nav-toggle span:first-child {
  top: 10px;
}

.sunlab-nav-toggle span:last-child {
  top: 20px;
}

.sunlab-nav-toggle.sunlab-nav-open span:first-child {
  top: 15px;
  transform: rotate(45deg);
}

.sunlab-nav-toggle.sunlab-nav-open span:last-child {
  top: 15px;
  transform: rotate(-45deg);
}

/* Hero */
.sunlab-hero {
  width: 100%;
  padding: 72px 24px 72px;
  border-bottom: 1px solid rgba(15, 23, 42, 1);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.sunlab-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.sunlab-hero-inner {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
  z-index: 2;
}

.sunlab-hero-text {
  display: inline-block;
  max-width: 40rem;
  background: rgba(2, 6, 23, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 40px;
}

.sunlab-hero-text * {
  overflow: visible;
}

.sunlab-hero-noimage {
  background: radial-gradient(circle at top left, #111827, #020617);
}

.sunlab-hero-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
}

.sunlab-hero h1 {
  font-size: 2.8rem;
  line-height: 1.45;
  margin: 0 0 24px;
  padding: 0;
}

.sunlab-hero-subtitle {
  font-size: 1rem;
  line-height: 1.75;
  width: 100%;
  max-width: 32rem;
  margin-top: 8px;
  margin-bottom: 28px;
  overflow: visible;
  height: auto;
  min-height: 0;
}

.sunlab-hero-subtitle strong,
.sunlab-hero-subtitle b {
  color: rgba(251, 146, 60, 0.95);
  font-weight: 600;
}

/* Second sentence: one line on desktop, wraps on small screens like the first sentence */
.sunlab-hero-subtitle .sunlab-hero-line-nowrap {
  white-space: normal;
}

@media (min-width: 640px) {
  .sunlab-hero-subtitle .sunlab-hero-line-nowrap {
    white-space: nowrap;
  }
}

.sunlab-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.sunlab-hero-footer {
  margin-top: 28px;
  margin-bottom: 0;
  font-size: 0.85rem;
  opacity: 0.65;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.sunlab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-size: 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
}

.sunlab-btn-primary {
  background: #f97316;
  color: #020617;
}

.sunlab-btn-secondary {
  background: transparent;
  color: #e5e7eb;
  border-color: #e5e7eb;
}

/* Removed old collage/frame styles */

/* Sections */
.sunlab-section {
  padding: 32px 0;
}

.sunlab-section-tight-top {
  padding-top: 24px;
}

.sunlab-section-header {
  margin-bottom: 24px;
  width: fit-content;
}

/* Accent line below section header (as wide as header text) */
.sunlab-section-header::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 12px;
  background: rgba(249, 115, 22, 0.7);
}

.sunlab-section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 8px;
}

.sunlab-section h2 {
  margin: 0;
  font-size: 1.6rem;
}

.sunlab-study-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.sunlab-study-card {
  padding: 24px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sunlab-study-card:hover {
  border-color: rgba(251, 146, 60, 0.4);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.sunlab-study-card .sunlab-study-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(251, 146, 60, 0.95);
}

.sunlab-study-card .sunlab-study-desc {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  opacity: 0.92;
  flex: 1;
}

@media (max-width: 768px) {
  .sunlab-study-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.sunlab-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, 180px);
  gap: 24px;
}

.sunlab-section-intro {
  max-width: 40rem;
  margin-top: 8px;
  font-size: 0.98rem;
  line-height: 1.6;
}

.sunlab-card {
  padding: 18px 18px 20px;
  border-radius: 0;
  border: 1px solid rgba(15, 23, 42, 0.9);
  background: #020617;
}

.sunlab-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.sunlab-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Visual cards grid (projects + activity below hero) */
.sunlab-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* Hero-adjacent mosaic: featured projects + activity */
.sunlab-hero-mosaic {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1.4fr);
  gap: 24px;
  align-items: stretch;
}

.sunlab-hero-mosaic-projects,
.sunlab-hero-mosaic-activity {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sunlab-cards-activity-compact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sunlab-section-footer-inline {
  margin-top: 8px;
}

.sunlab-section-footer-right {
  text-align: right;
}

.sunlab-card-visual {
  padding: 0;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.sunlab-card-visual:hover {
  border-color: rgba(148, 163, 184, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

/* Project cards: hover animations */
.sunlab-cards-projects .sunlab-card-visual:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.sunlab-cards-projects .sunlab-card-visual .sunlab-card-image {
  overflow: hidden;
}

.sunlab-cards-projects .sunlab-card-visual .sunlab-card-image img {
  transition: transform 0.4s ease;
}

.sunlab-cards-projects .sunlab-card-visual:hover .sunlab-card-image img {
  transform: scale(1.06);
}

.sunlab-cards-projects .sunlab-card-visual .sunlab-card-title {
  transition: color 0.25s ease, opacity 0.25s ease;
}

.sunlab-cards-projects .sunlab-card-visual:hover .sunlab-card-title {
  color: #f8fafc;
  opacity: 1;
}

.sunlab-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.sunlab-card-link:hover {
  text-decoration: none;
}

.sunlab-card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  background: rgba(15, 23, 42, 0.9);
  overflow: hidden;
}

.sunlab-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Project cards: image on top, text in separate block */
.sunlab-cards-projects .sunlab-card-visual .sunlab-card-link {
  position: static;
  display: block;
  aspect-ratio: auto;
  min-height: 0;
}

.sunlab-cards-projects .sunlab-card-visual .sunlab-card-image {
  position: relative;
  inset: auto;
  aspect-ratio: 16 / 10;
}

.sunlab-cards-projects .sunlab-card-visual .sunlab-card-body {
  position: static;
  padding: 18px 18px 20px;
  background: #020617;
  color: #e5e7eb;
}

.sunlab-cards-projects .sunlab-card-visual.sunlab-card-placeholder .sunlab-card-link {
  aspect-ratio: auto;
  min-height: 0;
}

.sunlab-cards-projects .sunlab-card-visual.sunlab-card-placeholder .sunlab-card-image {
  position: relative;
  display: none;
}

.sunlab-cards-projects .sunlab-card-visual.sunlab-card-placeholder .sunlab-card-body {
  position: static;
  background: #020617;
  padding: 24px 20px 28px;
}

.sunlab-card-body {
  padding: 20px 20px 22px;
}

.sunlab-card-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  margin-bottom: 10px;
}

.sunlab-card-title {
  margin: 0 0 8px;
  font-size: 1.12rem;
  line-height: 1.3;
}

.sunlab-card-summary {
  margin: 0 0 12px;
  font-size: 0.92rem;
  line-height: 1.5;
  opacity: 0.9;
}

.sunlab-card-cta {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: underline;
  opacity: 0.95;
}

.sunlab-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 0.8rem;
  opacity: 0.85;
  margin-bottom: 8px;
}

.sunlab-card-date {
  font-variant-numeric: tabular-nums;
}

/* Activity section: horizontal (compact) cards */
.sunlab-cards-activity {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sunlab-card-horizontal {
  padding: 0;
  overflow: hidden;
}

.sunlab-card-link-horizontal {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  min-height: 96px;
}

.sunlab-cards-activity .sunlab-card-image-thumb {
  width: 96px;
  min-width: 96px;
  aspect-ratio: 1;
  flex-shrink: 0;
  background: rgba(15, 23, 42, 0.9);
}

.sunlab-cards-activity .sunlab-card-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sunlab-cards-activity .sunlab-card-body-horizontal {
  flex: 1;
  min-width: 0;
  padding: 8px 12px 8px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.sunlab-card-activity-date {
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  opacity: 0.8;
  margin-bottom: 2px;
}

.sunlab-cards-activity .sunlab-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.sunlab-cards-activity .sunlab-card-summary {
  font-size: 0.8rem;
  line-height: 1.4;
  margin: 0;
  opacity: 0.88;
}

.sunlab-card-placeholder .sunlab-card-body {
  padding: 24px 20px 28px;
}

.sunlab-card-placeholder .sunlab-card-title {
  margin-bottom: 8px;
}

/* Publication cards on homepage: one column, shorter height, reuse activity horizontal card */
.sunlab-cards-publications {
  grid-template-columns: 1fr;
}

#publications .sunlab-cards-publications .sunlab-card-link-horizontal {
  min-height: 72px;
}

#publications .sunlab-cards-publications .sunlab-card-image-thumb {
  width: 110px;
  min-width: 110px;
  aspect-ratio: auto;
  height: 72px;
}

#publications .sunlab-cards-publications .sunlab-card-body-horizontal {
  padding: 6px 12px;
  gap: 1px;
}

#publications .sunlab-cards-publications .sunlab-card-title {
  font-size: 0.88rem;
}

#publications .sunlab-cards-publications .sunlab-card-summary {
  font-size: 0.78rem;
  line-height: 1.35;
}

.sunlab-card-image-placeholder {
  background: rgba(30, 41, 59, 0.6);
}

.sunlab-publication-journal-ref {
  font-style: italic;
  opacity: 0.85;
}

.sunlab-section-empty {
  margin: 0;
  font-size: 0.98rem;
  opacity: 0.85;
}

.sunlab-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Publication list: card-style items */
.sunlab-list-publications {
  gap: 16px;
}

.sunlab-list-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(30, 64, 175, 0.7);
}

.sunlab-list-item-publication {
  padding: 20px 24px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: none;
  background: rgba(15, 23, 42, 0.4);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sunlab-list-item-publication:hover {
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.sunlab-list-item-publication .sunlab-publication-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
}

.sunlab-list-item-publication .sunlab-publication-authors {
  margin: 0 0 10px;
  font-size: 1rem;
  opacity: 0.92;
  line-height: 1.5;
}

.sunlab-list-item-publication .sunlab-publication-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
  opacity: 0.88;
}

.sunlab-publication-journal-ref {
  font-style: italic;
  color: rgba(226, 232, 240, 0.95);
}

.sunlab-publication-links {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.sunlab-publication-link {
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.sunlab-publication-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
}

.sunlab-publication-link-view {
  border-color: rgba(251, 146, 60, 0.4);
  color: rgba(251, 191, 36, 0.95);
}

.sunlab-publication-link-view:hover {
  background: rgba(251, 146, 60, 0.15);
  border-color: rgba(251, 146, 60, 0.5);
}

.sunlab-list-item-title-link {
  color: inherit;
  text-decoration: none;
}

.sunlab-list-item-title-link:hover {
  text-decoration: underline;
}

.sunlab-list-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.8rem;
  opacity: 0.8;
  margin-bottom: 4px;
}

.sunlab-list-date {
  font-variant-numeric: tabular-nums;
}

.sunlab-list-tag {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.65rem;
}

.sunlab-section-footer {
  margin-top: 16px;
}

.sunlab-link {
  font-size: 0.9rem;
  text-decoration: underline;
}

.sunlab-card-person .sunlab-person-role {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}

.sunlab-person-affiliation {
  font-size: 0.9rem;
  margin: 0;
}

.sunlab-card-person-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.sunlab-card-person-link:hover {
  text-decoration: none;
}

.sunlab-card-person-image {
  aspect-ratio: 1;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.9);
}

.sunlab-card-person-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sunlab-card-person-body {
  padding: 14px 16px 16px;
}

.sunlab-card-person .sunlab-card-person-body h3 {
  margin-top: 0;
  margin-bottom: 4px;
}

.sunlab-card-person-summary {
  font-size: 0.85rem;
  line-height: 1.45;
  margin: 8px 0 0;
  opacity: 0.9;
}

.sunlab-person-links {
  display: flex;
  gap: 2px;
  margin-top: 8px;
}

.sunlab-person-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.sunlab-person-social-link:hover {
  color: #fff;
}

.sunlab-person-links-single {
  justify-content: flex-start;
  gap: 6px;
  margin-top: 12px;
}

.sunlab-person-links-single .sunlab-person-social-link {
  width: 32px;
  height: 32px;
  font-size: 1.15rem;
}

.sunlab-card-person {
  padding: 0;
  overflow: hidden;
  max-width: 180px;
}

/* Homepage people: ordered by role, compact image + name + role */
.sunlab-people-director {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.sunlab-people-home {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.sunlab-card-person-home {
  width: 140px;
  min-width: 0;
  justify-self: start;
}

.sunlab-card-person-home .sunlab-card-person-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0;
  min-width: 0;
}

.sunlab-card-person-home .sunlab-card-person-image-home {
  width: 100%;
  max-width: 120px;
  aspect-ratio: 1;
  flex-shrink: 0;
  background: rgba(15, 23, 42, 0.9);
}

.sunlab-card-person-home .sunlab-card-person-image-home img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sunlab-card-person-home .sunlab-card-person-body {
  padding: 6px 8px 8px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.sunlab-card-person-home .sunlab-card-person-name {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 2px;
  line-height: 1.25;
  word-wrap: break-word;
  overflow-wrap: break-word;
  min-width: 0;
}

.sunlab-card-person-home .sunlab-person-role {
  font-size: 0.72rem;
  margin: 0;
  letter-spacing: 0.08em;
}

/* Person single page */
.sunlab-article-person .sunlab-person-image {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 20px;
  background: rgba(15, 23, 42, 0.9);
}

.sunlab-article-person .sunlab-person-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sunlab-person-affiliation-inline {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-left: 8px;
}

.sunlab-section-cta {
  text-align: left;
}

/* Collaborate: intro and separator */
.sunlab-section-collaborate-intro {
  max-width: 40rem;
  margin: 0 0 28px;
  font-size: 0.98rem;
  line-height: 1.6;
}

.sunlab-collaborate-sep {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin: 0 0 28px;
}

/* Collaborate: three cards in a single row */
.sunlab-section-collaborate .sunlab-cards-collaborate {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.sunlab-card-collaborate {
  display: flex;
  flex-direction: column;
  padding: 24px 22px 28px;
}

.sunlab-card-collaborate-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  font-weight: 600;
}

.sunlab-card-collaborate-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.sunlab-card-collaborate-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
}

.sunlab-card-collaborate-list li {
  margin-bottom: 6px;
}

.sunlab-card-collaborate-list li:last-child {
  margin-bottom: 0;
}

.sunlab-card-collaborate .sunlab-btn {
  align-self: flex-start;
  margin-top: 24px;
  padding: 10px 24px;
}

.sunlab-cta-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
}

/* Footer */
.sunlab-footer {
  background: #111827;
  padding: 40px 24px 48px;
}

.sunlab-footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr 1fr 1fr 1fr;
  gap: 48px;
  font-size: 0.9rem;
}

.sunlab-footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sunlab-footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin: 0 0 4px;
  color: #fff;
}

.sunlab-footer-col a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.88rem;
}

.sunlab-footer-col a:hover {
  color: #fff;
}

.sunlab-footer-brand {
  display: flex;
  align-items: flex-start;
  margin-right: 24px;
}

.sunlab-footer-logo img {
  height: 60px;
  width: auto;
}

.sunlab-footer-social {
  display: flex;
  gap: 12px;
}

.sunlab-footer-social a {
  font-size: 1.2rem;
  color: #e8a838;
}

.sunlab-footer-social a:hover {
  color: #f5c563;
}

/* Contact form */
.sunlab-contact-form-wrap {
  max-width: 640px;
}

.sunlab-contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sunlab-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.sunlab-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sunlab-form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.8);
}

.sunlab-form-group input,
.sunlab-form-group textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.92rem;
  color: #f1f5f9;
  font-family: inherit;
  transition: border-color 0.2s;
}

.sunlab-form-group input::placeholder,
.sunlab-form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.sunlab-form-group input:focus,
.sunlab-form-group textarea:focus {
  outline: none;
  border-color: #f97316;
}

.sunlab-form-group textarea {
  resize: vertical;
}

.sunlab-contact-form .sunlab-btn {
  align-self: flex-start;
  padding: 12px 32px;
  font-size: 0.92rem;
  cursor: pointer;
}

.sunlab-publications-year {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(251, 146, 60, 0.95);
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(251, 146, 60, 0.35);
  width: fit-content;
}

.sunlab-publications-year:first-child {
  margin-top: 8px;
}

.sunlab-publications-year-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 16px;
  align-items: flex-start;
  margin-top: 24px;
}

.sunlab-publications-year-col {
  text-align: right;
}

.sunlab-publications-list-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sunlab-list-item-publication-card {
  padding: 20px 24px;
  border-radius: 10px;
  border: 1px solid rgba(30, 64, 175, 0.4);
  background: rgba(15, 23, 42, 0.4);
}

.sunlab-list-item-publication-card:hover {
  background: rgba(30, 41, 59, 0.4);
  border-color: rgba(30, 64, 175, 0.6);
}

.sunlab-publication-card-title {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
}

.sunlab-publication-card-authors {
  margin: 0 0 8px;
  font-size: 0.95rem;
  opacity: 0.92;
  line-height: 1.4;
}

.sunlab-publication-card-venue-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0 0 10px;
  line-height: 1.4;
}

.sunlab-publication-card-venue {
  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.88;
}

.sunlab-publication-fulltext-btn {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  font-style: normal;
  padding: 4px 10px;
  color: rgba(148, 163, 184, 0.95);
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 4px;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.sunlab-publication-fulltext-btn:hover {
  color: rgba(226, 232, 240, 0.95);
  border-color: rgba(148, 163, 184, 0.6);
  background: rgba(148, 163, 184, 0.1);
  text-decoration: none;
}

.sunlab-publication-card-tags {
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sunlab-tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-family: inherit;
  color: rgba(251, 146, 60, 0.95);
  background: rgba(251, 146, 60, 0.12);
  border: 1px solid rgba(251, 146, 60, 0.35);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.sunlab-tag:hover {
  background: rgba(251, 146, 60, 0.2);
  border-color: rgba(251, 146, 60, 0.5);
}

.sunlab-publications-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 24px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(30, 64, 175, 0.4);
}

.sunlab-publications-filter-label {
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.9;
}

.sunlab-publications-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sunlab-filter-btn {
  padding: 6px 12px;
  font-size: 0.85rem;
  font-family: inherit;
  color: rgba(226, 232, 240, 0.9);
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.sunlab-filter-btn:hover {
  background: rgba(51, 65, 85, 0.7);
  border-color: rgba(255, 255, 255, 0.25);
}

.sunlab-filter-btn.sunlab-filter-active {
  color: rgba(251, 191, 36, 0.95);
  background: rgba(251, 146, 60, 0.2);
  border-color: rgba(251, 146, 60, 0.5);
}

.sunlab-list-item-publication-card.sunlab-filter-hidden,
.sunlab-publications-year-row.sunlab-filter-hidden {
  display: none !important;
}

/* Activity list: by year, card = image left + text (title, shortSummary) right */
.sunlab-activity-list {
  margin-top: 8px;
}

.sunlab-activity-year-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 16px;
  align-items: flex-start;
  margin-top: 24px;
}

.sunlab-activity-year-col {
  text-align: right;
}

.sunlab-activity-year {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(251, 146, 60, 0.95);
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(251, 146, 60, 0.35);
  width: fit-content;
}

.sunlab-activity-year:first-child {
  margin-top: 8px;
}

.sunlab-activity-list-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sunlab-activity-card {
  border-radius: 0;
  overflow: hidden;
  border: 1px solid rgba(30, 64, 175, 0.4);
  background: rgba(15, 23, 42, 0.4);
}

.sunlab-activity-card:hover {
  background: rgba(30, 41, 59, 0.4);
  border-color: rgba(30, 64, 175, 0.6);
}

.sunlab-activity-card-link {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 120px;
  text-decoration: none;
  color: inherit;
}

.sunlab-activity-card-link:hover {
  color: inherit;
  text-decoration: none;
}

.sunlab-activity-card-image {
  width: 160px;
  min-width: 160px;
  flex-shrink: 0;
  background: rgba(15, 23, 42, 0.9);
}

.sunlab-activity-card-image img {
  width: 100%;
  height: 100%;
  min-height: 120px;
  object-fit: cover;
  display: block;
}

.sunlab-activity-card-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 120px;
  background: rgba(30, 64, 175, 0.2);
}

.sunlab-activity-card-body {
  flex: 1;
  min-width: 0;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.sunlab-activity-card-date {
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  opacity: 0.8;
}

.sunlab-activity-card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}

.sunlab-activity-card-link:hover .sunlab-activity-card-title {
  text-decoration: underline;
}

.sunlab-activity-card-summary {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.45;
}

.sunlab-publication-authors {
  margin: 4px 0;
  font-size: 1.1rem;
}

.sunlab-publication-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.85rem;
  opacity: 0.9;
}

.sunlab-publication-image {
  margin-bottom: 16px;
  max-width: 100%;
  border-radius: 0;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.9);
}

.sunlab-publication-image img {
  width: 100%;
  height: auto;
  display: block;
}

.sunlab-publication-venue {
  font-style: normal;
  margin: 0;
  font-size: 1.1rem;
}


.sunlab-publication-abstract {
  margin-bottom: 20px;
}

.sunlab-publication-abstract-title {
  font-size: 1rem;
  margin: 0 0 8px;
  font-weight: 600;
}

.sunlab-article-body {
  max-width: none;
}

.sunlab-article-body img {
  max-width: 80%;
  height: auto;
  display: block;
  margin: 16px auto;
}

.sunlab-article-body a {
  color: #f9fafb;
  text-decoration: underline;
}

/* Buttons/CTA links inside articles should not show underlines */
.sunlab-article-body a.sunlab-btn,
.sunlab-article-body a.sunlab-publication-link {
  text-decoration: none;
}

.sunlab-article-body strong,
.sunlab-article-body b {
  color: rgba(251, 146, 60, 0.95);
  font-weight: 600;
}

.sunlab-article-body figure {
  margin: 16px auto;
  text-align: center;
}

.sunlab-article-body figure img {
  max-width: 80%;
}

.sunlab-article-body figure figcaption {
  margin-top: 6px;
  font-size: 0.9rem;
  opacity: 0.85;
}

.sunlab-article-summary {
  max-width: 48rem;
  font-size: 1rem;
  line-height: 1.6;
  margin: 12px 0 24px;
  opacity: 0.95;
}

/* Post layout: text ~66%, image ~33% */
.sunlab-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 32px;
  align-items: flex-start;
  grid-template-areas: "body sidebar";
}

.sunlab-article-sidebar {
  align-self: flex-start;
  grid-area: sidebar;
}

.sunlab-article-body {
  max-width: none;
  grid-area: body;
}

.sunlab-article-featured-figure {
  margin: 0;
}

.sunlab-article-featured-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  border: 1px solid rgba(15, 23, 42, 0.9);
}

/* Responsive */
@media (max-width: 900px) {
  .sunlab-main {
    padding-top: 0;
  }

  .sunlab-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sunlab-hero-visual {
    justify-content: flex-start;
  }

  .sunlab-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .sunlab-section-collaborate .sunlab-cards-collaborate {
    grid-template-columns: minmax(0, 1fr);
  }

  .sunlab-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .sunlab-cards-activity {
    grid-template-columns: minmax(0, 1fr);
  }

  .sunlab-article-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "sidebar"
      "body";
  }

  .sunlab-header-inner {
    padding-inline: 16px;
  }

  .sunlab-nav-toggle {
    display: inline-block;
  }

  .sunlab-nav {
    position: absolute;
    inset-inline: 0;
    top: 56px;
    background: rgba(8, 14, 30, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 16px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
  }

  .sunlab-nav.sunlab-nav-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .sunlab-nav ul {
    flex-direction: column;
    gap: 8px;
  }

  .sunlab-cta-actions {
    flex-direction: column;
  }

  .sunlab-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .sunlab-list-item-publication {
    padding: 16px 18px;
  }

  .sunlab-list-item-publication .sunlab-publication-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sunlab-hero-video {
    display: none;
  }
}

/* Share links */
.sunlab-share {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sunlab-share-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.6;
  margin-right: 4px;
}

.sunlab-share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.sunlab-share-link:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

