/* User-provided architectural background; homepage lab photographs. */
.robot-page .sec-lab { background: #e5e6e8; }
.robot-page .sec-lab::before {
  inset: 0;
  background-image: url('../images/labs/robot-lab-team-asian-v2.jpg');
  background-image: image-set(url('../images/labs/robot-lab-team-asian-v2.webp') type('image/webp'), url('../images/labs/robot-lab-team-asian-v2.jpg') type('image/jpeg'));
  background-position: center;
  background-size: cover;
  filter: none;
}
.robot-page .sec-lab::after { display: none; }
/* A landscape frame must not stretch to the tab column height. */
.robot-page .lab-view {
  align-self: start;
  aspect-ratio: 4 / 3;
  height: auto;
  background: #202321;
}
.robot-page .lab-pane picture {
  display: flex;
  align-items: center;
  justify-content: center;
}
.robot-page .lab-pane img {
  position: static;
  inset: auto;
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}
/* Compact lab section with the same photographs used on the home page. */
.robot-page .sec-lab .biz-head { margin-bottom: 28px; }
.robot-page .lab-tabs { gap: 8px; }
.robot-page .lab-tab {
  padding: 12px 36px 12px 16px;
  min-height: 46px;
  border-radius: 8px;
}
.robot-page .lab-tab b { font-size: 15px; line-height: 22px; letter-spacing: 0; }
.robot-page .lab-view { aspect-ratio: 3 / 2; }
.robot-page .lab-info { padding: 0 12px; }
@media (max-width: 992px) {
  .robot-page .lab-tab { width: auto; min-width: 160px; }
}
/* Readable text and controls on the light architectural photograph. */
.robot-page .sec-lab,
.robot-page .sec-lab .sec-title,
.robot-page .lab-text h3,
.robot-page .lab-params b { color: #202724; }
.robot-page .sec-lab .sec-desc,
.robot-page .lab-text > p,
.robot-page .lab-params span { color: #505955; }
.robot-page .lab-tab {
  color: #26332c;
  background: rgba(255,255,255,.72);
  border-color: rgba(35,60,45,.16);
}
.robot-page .lab-tab.on {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 5px 14px rgba(0,110,58,.15);
}
.robot-page .lab-params,
.robot-page .lab-params li { border-color: rgba(35,60,45,.18); }
.robot-page .sec-lab .sec-title { color: #fff; }
.robot-page .sec-lab .sec-desc { color: #202724; }
/* Darkened architectural backdrop with compact photographs and white text. */
.robot-page .sec-lab::after {
  display: block;
  background: rgba(0, 0, 0, 0);
}
.robot-page .sec-lab,
.robot-page .sec-lab .sec-title,
.robot-page .sec-lab .sec-desc,
.robot-page .lab-text h3,
.robot-page .lab-text > p,
.robot-page .lab-params span,
.robot-page .lab-params b,
.robot-page .lab-tab { color: #fff; }
.robot-page .lab-tab {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.2);
}
.robot-page .lab-tab.on { background: var(--green); border-color: var(--green); }
.robot-page .lab-params,
.robot-page .lab-params li { border-color: rgba(255,255,255,.2); }
.robot-page .lab-wrap { grid-template-columns: 220px minmax(0, 420px) minmax(0, 1fr); }
.robot-page .lab-view { width: 100%; max-width: 420px; }
@media (max-width: 1200px) and (min-width: 993px) {
  .robot-page .lab-wrap { grid-template-columns: 200px minmax(0, 360px) minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 992px) {
  .robot-page .lab-wrap { grid-template-columns: 1fr; }
  .robot-page .lab-view { max-width: 420px; justify-self: center; }
}
/* Larger, edge-to-edge laboratory photographs without side gutters. */
.robot-page .lab-wrap { grid-template-columns: 220px minmax(0, 3fr) minmax(0, 2fr); }
.robot-page .lab-view { max-width: none; width: 100%; }
.robot-page .lab-pane img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 1200px) and (min-width: 993px) {
  .robot-page .lab-wrap { grid-template-columns: 200px minmax(0, 3fr) minmax(0, 2fr); }
}
@media (max-width: 992px) {
  .robot-page .lab-wrap { grid-template-columns: 1fr; }
  .robot-page .lab-view { max-width: none; }
}
/* Match the service photo column width: (container - 44px gap) × .85 / 2. */
@media (min-width: 993px) {
  .robot-page .lab-wrap {
    grid-template-columns: 220px minmax(0, calc(42.5% - 18.7px)) minmax(0, 1fr);
  }
}
@media (min-width: 993px) and (max-width: 1200px) {
  .robot-page .lab-wrap {
    grid-template-columns: 200px minmax(0, calc(42.5% - 18.7px)) minmax(0, 1fr);
  }
}
/* Keep the navigation column exactly as tall as the landscape photograph. */
@media (min-width: 993px) {
  .robot-page .lab-wrap { container-type: inline-size; }
  .robot-page .lab-tabs {
    height: calc((42.5cqw - 18.7px) / 1.5);
    display: grid;
    grid-template-rows: repeat(6, minmax(0, 1fr));
    gap: 8px;
  }
  .robot-page .lab-tab {
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    align-items: center;
  }
}
