#logo { height: 80px; }
header { text-align: center; margin-bottom: 2rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 1rem; }

.card-research { padding: 1rem; border: 1px solid #ccc; border-radius: 4px; background-color: cornflowerblue; }
.card-lab { padding: 1rem; border: 1px solid #ccc; border-radius: 4px; background-color:lightgreen; }

footer { text-align: center; margin: 2rem 0; color: #555; font-size: 0.9rem; }
ul { list-style: disc; padding-left: 1.2rem; }

body {
    font-family: Arial, sans-serif;
    margin: 2rem;
    line-height: 1.6;
    background-color: #f5f7fa;
}
h1, h2, h3 {
    color: #003366;
}
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.timeline-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    border-radius: 10px;
    padding: 1.5rem;
}
.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}
.timeline-content {
    flex: 1;
    padding: 1rem;
    line-height: 1.2;
    padding-top: 0.2em;
    padding-bottom: 0.2em;
}
.timeline-content p {
    margin: 0.2em 0;
    line-height: 1.2;
}
.timeline-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}
.timeline-meta {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.segmented-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    text-align: left;
}

.segmented-table th, .segmented-table td {
    padding: 0.2rem;
    border: 1px solid #ccc;
}

.segmented-table th {
    background-color: #e9eff6;
    font-weight: bold;
    color: #003366;
}

.segmented-table td a {
    text-decoration: none;
}

.segmented-table td.small {
    font-size: 0.2rem;
    color: #555;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
  margin-bottom: 2rem;
}
.capabilities-grid > .card-research {
  grid-row: 1;
}
.capabilities-grid > .card-lab {
  grid-row: 2;
}
.capabilities-grid > .card-research:nth-child(1) {
  grid-column: 1;
}
.capabilities-grid > .card-research:nth-child(2) {
  grid-column: 2;
}
.capabilities-grid > .card-lab:nth-child(3) {
  grid-column: 1;
}
.capabilities-grid > .card-lab:nth-child(4) {
  grid-column: 2;
}
.capabilities-grid > div {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
}

.card-research, .card-lab {
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin: 0;
}
.card-research h3, .card-lab h3 {
  margin-top: 0;
  margin-bottom: 0.5em;
}
.card-research p, .card-lab p {
  margin: 0.5em 0 0 0;
}

.rendering, .rendering_upmproject, .rendering_short, .rendering_upmproject_short {
  line-height: 1.2;
  margin: 0.2em 0;
  padding: 0;
}
.rendering p, .rendering_upmproject p, .rendering_short p, .rendering_upmproject_short p {
  margin: 0.2em 0;
  line-height: 1.2;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}
.team-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 1rem 0.5rem 0.7rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.team-card-img {
  width: 120px;
  height: 120px;
  border-radius: 25%;
  overflow: hidden;
  margin-bottom: 0.7rem;
  background: #e6e6e6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-card-img img {
  height: 100%;
  width: auto;
  border-radius: 25%;
  display: block;
  margin: 0 auto;
}
.team-card-content {
  text-align: center;
}
.team-card h4 {
  margin: 0.2em 0 0.4em 0;
  font-size: 1.1em;
  color: #003366;
}
.team-card-desc {
  font-size: 0.95em;
  color: #444;
  margin-bottom: 0.2em;
}
