.page-type-laboratory .ct-content {
  padding: 26px 0 38px;
}

.page-type-laboratory .ct-main-post {
  min-height: 0;
}

.lab-v2-card {
  --lab-accent: #7a45e8;
  --lab-soft: #f6efff;
}

.lab-v2-card.ct-red { --lab-accent: #d25565; --lab-soft: #fff0f2; }
.lab-v2-card.ct-blue { --lab-accent: #1678f2; --lab-soft: #eaf6ff; }
.lab-v2-card.ct-green { --lab-accent: #16b864; --lab-soft: #effcf3; }
.lab-v2-card.ct-orange { --lab-accent: #ee9e2d; --lab-soft: #fff7e9; }
.lab-v2-card.ct-yellow { --lab-accent: #f1c40f; --lab-soft: #fffbea; }
.lab-v2-card.ct-purple { --lab-accent: #7a45e8; --lab-soft: #f6efff; }

.page-type-laboratory .lab-v2-card {
  box-sizing: border-box;
  margin-bottom: 0;
  padding: 34px 38px 42px;
  overflow: hidden;
  border: 1px solid #e0e6eb;
  border-bottom: 10px solid var(--lab-accent);
  background: #fdfdfd;
  box-shadow: 0 14px 34px rgba(0,0,0,.16);
}

.page-type-laboratory .lab-breadcrumbs {
  margin: 0 0 20px;
  padding: 0;
  color: #6f7c86;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.page-type-laboratory .lab-breadcrumbs a {
  color: #456272;
  font-weight: 700;
}

.lab-kicker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 10px;
}

.page-type-laboratory .lab-kicker {
  margin-bottom: 0;
  color: var(--lab-accent);
}

.lab-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid var(--lab-accent);
  border-radius: 999px;
  background: #fff;
  color: var(--lab-accent);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.page-type-laboratory .lab-v2-header .entry-title {
  margin: 0 0 .8rem;
  color: #1f2b33;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.06;
  text-shadow: none;
}

.page-type-laboratory .lab-v2-excerpt {
  max-width: 820px;
  color: #5a6974;
}

.page-type-laboratory .lab-meta {
  color: #4f6979;
  font-weight: 600;
  opacity: 1;
}

.page-type-laboratory .lab-meta a {
  color: #456272;
  font-weight: 700;
}

.page-type-laboratory .ct-post-featured-img.lab-featured {
  display: block;
  box-sizing: border-box;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 0 1.75rem !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid #d8e0e7;
  border-bottom: 8px solid var(--lab-accent);
  background: var(--lab-soft);
  box-shadow: 0 10px 24px rgba(17,32,43,.12);
  font-size: 0;
  line-height: 0;
}

.page-type-laboratory .ct-post-featured-img.lab-featured img {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain;
  vertical-align: top;
}

.lab-hypothesis {
  margin: 0 0 26px;
  padding: 17px 19px;
  border: 1px solid color-mix(in srgb, var(--lab-accent) 28%, #dfe5e8);
  border-left: 5px solid var(--lab-accent);
  background: var(--lab-soft);
}

.lab-hypothesis span,
.lab-hypothesis strong {
  display: block;
}

.lab-hypothesis span {
  margin-bottom: 6px;
  color: var(--lab-accent);
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.lab-hypothesis strong {
  color: #334954;
  font-size: 1.04rem;
  line-height: 1.55;
}

.page-type-laboratory .lab-content {
  color: #2f3e47;
  line-height: 1.72;
}

.page-type-laboratory .lab-content p,
.page-type-laboratory .lab-content li {
  color: #2f3e47;
}

.page-type-laboratory .lab-content h2 {
  margin-top: 2.2rem;
  margin-bottom: .55rem;
  padding: .25em 0 .38em;
  border-bottom: 5px solid var(--lab-soft);
  color: #1f2b33;
}

.lab-section {
  margin: 0;
}

.lab-steps {
  margin: .4rem 0 1rem;
  padding: .7rem 0 .7rem 1.55rem !important;
}

.lab-steps li {
  margin: .45rem 0;
  padding-left: .18rem;
  line-height: 1.55;
}

.lab-experiment-cta {
  margin: 34px 0;
  padding: 22px 24px;
  border: 1px solid color-mix(in srgb, var(--lab-accent) 45%, #dfe5e8);
  border-left: 6px solid var(--lab-accent);
  background: var(--lab-soft);
  box-shadow: 0 4px 14px rgba(17,32,43,.07);
}

.lab-experiment-cta__eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--lab-accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.page-type-laboratory .lab-experiment-cta h2 {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  color: #1f2b33;
}

.lab-experiment-cta p {
  margin: 0 0 15px;
  padding: 0 !important;
}

.lab-experiment-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 15px;
  border-radius: 4px;
  background: var(--lab-accent);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
}

.lab-experiment-button:hover,
.lab-experiment-button:focus {
  filter: brightness(.92);
}

.lab-section--results {
  margin-top: 27px;
  padding-left: 16px;
  border-left: 3px solid var(--lab-accent);
}

.page-type-laboratory .lab-tags {
  margin: 22px 0 0;
  padding-top: 17px;
  border-top: 1px solid #e3e8eb;
  color: #52616b;
  line-height: 1.65;
}

.page-type-laboratory .lab-tags .ct-tags-label {
  font-weight: 700;
}

.page-type-laboratory .lab-tags span:not(.ct-tags-label) {
  display: inline-block;
  margin: 3px 3px 3px 5px;
  padding: 5px 10px;
  border: 1px solid color-mix(in srgb, var(--lab-accent) 35%, #dfe5e8);
  background: #fff;
  color: #334954;
  font-size: .82rem;
  font-weight: 700;
}

.page-type-laboratory .lab-sidebar {
  top: 26px;
}

@supports not (color: color-mix(in srgb, red 10%, white)) {
  .lab-hypothesis,
  .lab-experiment-cta,
  .page-type-laboratory .lab-tags span:not(.ct-tags-label) {
    border-color: #dfe5e8;
  }
}

@media only screen and (max-width: 960px) {
  .page-type-laboratory .ct-content {
    padding: 16px 0 28px;
  }

  .page-type-laboratory .lab-v2-card {
    padding: 24px 22px 28px;
    border-bottom-width: 8px;
    box-shadow: 0 10px 24px rgba(0,0,0,.14);
  }

  .page-type-laboratory .lab-sidebar {
    top: auto;
  }
}

@media (max-width: 700px) {
  .page-type-laboratory .lab-v2-header .entry-title {
    font-size: 2rem;
  }

  .lab-experiment-cta {
    padding: 17px;
  }

  .lab-experiment-button {
    box-sizing: border-box;
    width: 100%;
    justify-content: center;
  }

  .lab-status {
    font-size: .68rem;
  }
}


.lab-experiment-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.lab-table-wrap {
  margin: 18px 0 8px;
  overflow-x: auto;
  border: 1px solid #dde5e9;
  background: #fff;
}

.lab-results-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: .88rem;
}

.lab-results-table th,
.lab-results-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #e5ebee;
  text-align: left;
  vertical-align: top;
}

.lab-results-table th {
  background: var(--lab-soft);
  color: #2d3d47;
  font-weight: 800;
}

.lab-results-table tbody tr:last-child td {
  border-bottom: 0;
}

.lab-results-table tbody tr:hover {
  background: #fafcfd;
}

@media (max-width: 700px) {
  .lab-experiment-links {
    display: grid;
  }

  .lab-experiment-links .lab-experiment-button {
    width: 100%;
    justify-content: center;
  }
}
