@charset "utf-8";
/* CSS Document */
/* ==========================================================================
   1. GLOBAL RESETS & BASE LAYOUT (For PC / Large Monitors)
   ========================================================================== */
.scientists-guide-box,
.scientists-table {
  width: 100%;
  max-width: 1000px; /* Upper boundary for desktop monitors */
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Guide box design */
.scientists-guide-box {
  margin-top: 0;
  margin-bottom: 24px;
  padding: 24px;
  background-color: #fdfdfd;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.scientists-guide-box h3 {
  margin-top: 0;
  margin-bottom: 12px;
  color: #1a202c;
  font-size: 1.3rem;
}

.scientists-guide-box p {
  margin: 0;
  color: #4a5568;
  line-height: 1.6;
  font-size: 1rem;
}

/* Base table presentation */
.scientists-table {
  border-collapse: collapse;
  background-color: #ffffff;
}

.scientists-table th {
  background-color: #f7fafc;
  color: #2d3748;
  text-align: left;
  padding: 16px 20px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid #e2e8f0;
}

/* Fluid multi-attribute distribution across wide screens */
.col-name { width: 22%; }
.col-desc { width: 58%; }
.col-photo { width: 20%; text-align: center; }

.scientists-table tr {
  border-bottom: 1px solid #edf2f7;
}

.scientists-table tbody tr:nth-child(even) {
  background-color: #fcfdfd;
}

.scientists-table td {
  padding: 20px;
  vertical-align: top;
}

.scientist-name {
  font-size: 1.15rem;
  color: #1a202c;
  line-height: 1.4;
}

.scientist-bio {
  margin: 0;
  line-height: 1.6;
  color: #4a5568;
  font-size: 1rem;
}

.scientist-photo-cell {
  text-align: center;
}

.scientists-table-img {
  width: 120px;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #cbd5e0;
  display: inline-block;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}


/* ==========================================================================
   2. TABLET FORMAT BREAKPOINT (Screens below 900px)
   ========================================================================== */
@media screen and (max-width: 900px) {
  .scientists-guide-box,
  .scientists-table {
    max-width: 95%; /* Hugs screen edges safely with margin spacing */
  }
  
  /* Shifts width ratios to handle narrower horizontal spaces comfortably */
  .col-name { width: 25%; }
  .col-desc { width: 53%; }
  .col-photo { width: 22%; }
  
  .scientists-table td {
    padding: 16px 12px; /* Pulls padding down slightly to retain content space */
  }
  
  .scientist-name {
    font-size: 1.05rem;
  }
  
  .scientists-table-img {
    width: 100px; /* Microscale down portraits for medium-sized devices */
    height: 130px;
  }
}


/* ==========================================================================
   3. SMARTPHONE FORMAT BREAKPOINT (Screens below 640px)
   ========================================================================== */
@media screen and (max-width: 640px) {
  .scientists-guide-box {
    max-width: 100%;
    margin-bottom: 16px;
    border-radius: 0; /* Extends clean edge-to-edge colors on small phones */
    border-left: none;
    border-right: none;
    padding: 16px;
  }

  /* Deconstructs table behaviors completely so element text doesn't overflow */
  .scientists-table, 
  .scientists-table tbody, 
  .scientists-table tr, 
  .scientists-table td {
    display: block;
    width: 100% !important;
  }
  
  .scientists-table th {
    display: none; /* Hides horizontal headings on smartphones */
  }
  
  .scientists-table tr {
    padding: 24px 16px;
    box-sizing: border-box;
    border-bottom: 4px solid #edf2f7; /* Creates distinct block demarcations */
  }
  
  .scientists-table td {
    padding: 0 0 12px 0; /* Spaces stacking metrics inside each scientist record */
    text-align: left !important;
  }
  
  .scientists-table td:last-child {
    padding-bottom: 0;
  }
  
  /* Mobilized Elements Configuration */
  .scientist-name {
    font-size: 1.3rem; /* Enlarges headers to clearly separate records */
    font-weight: 700;
    color: #111111;
  }
  
  .scientist-photo-cell {
    padding-top: 8px;
  }
  
  .scientists-table-img {
    width: 110px; /* Restores visually sound rendering size for individual blocks */
    height: 140px;
  }
}

