/* The home (templates/screens/home.html): the featured experiment, its finding beside the figure that
   decides it, then the experiments as rows. */
.featured {
  display: grid;
  grid-template-columns: 480px minmax(0, 1fr);
  gap: var(--space-18);
  align-items: start;
  padding: var(--space-22) var(--gutter) var(--space-24);
}

.featured-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-7);
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: var(--meta-size);
  line-height: var(--meta-leading);
  color: var(--text-secondary);
}

.featured-meta .mono {
  color: var(--text);
}

.featured-text .facts {
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
}

.experiments {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: 0 var(--gutter) var(--space-18);
}

.experiments .rows td:first-child {
  width: 64px;
  color: var(--text-secondary);
}

.experiments .rows .title {
  font-size: var(--title-size);
  line-height: var(--title-leading);
  font-weight: 500;
}

/* Too narrow for the figure beside its finding: it goes under it. */
@media (max-width: 1024px) {
  .featured {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* A phone (MobileHome.dc.html): the button across the page, each experiment a block of its own. */
@media (max-width: 640px) {
  .featured {
    gap: var(--space-8);
    padding: var(--space-10) var(--gutter);
  }

  .featured-text {
    gap: var(--space-5);
  }

  .featured-actions {
    align-self: stretch;
  }

  .featured-actions .button {
    width: 100%;
    height: 48px;
  }

  .experiments .rows thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .experiments .rows tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-1) var(--space-3);
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--line);
  }

  .experiments .rows td {
    width: auto;
    padding: 0;
    border: none;
  }

  .experiments .rows .title {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
