/* The Daily Brew Lab pages. Loads after order.css and shares its colours, faces and parts. */
.lab-page .col { --col: 680px; }
.lab-page .intro { padding-top: 32px; }
.lab-page .intro h1 { font-size: clamp(36px, 9vw, 56px); line-height: 1.02; letter-spacing: -0.04em; }
.lab-page .lead { font-size: clamp(18px, 2.4vw, 21px); line-height: 1.45; }
.lab-page__kicker { font: 500 13px/16px var(--font-text); color: var(--action); }
.lab-page .lab { margin-top: 24px; }

/* experiment cards: the archive and related experiments */
.exps { display: grid; gap: 8px; }
@media (min-width: 640px) { .exps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.exp-card { display: grid; gap: 6px; align-content: start; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; text-decoration: none; }
.exp-card img { width: calc(100% + 32px); margin: -16px -16px 6px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.exp-card__meta { font-size: 13px; line-height: 18px; color: var(--muted); font-variant-numeric: tabular-nums; }
.exp-card__title { font: 400 21px/1.2 var(--font-display); letter-spacing: -0.02em; }
.exp-card__var { font-size: 14px; font-weight: 500; }
.exp-card__verdict { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (hover: hover) { .exp-card:hover { border-color: var(--ink); } }

/* one experiment */
#exp { display: grid; gap: 12px; padding-top: 16px; }
#exp h1 { font-size: clamp(32px, 8vw, 48px); line-height: 1.05; letter-spacing: -0.035em; }
.back { justify-self: start; display: inline-flex; align-items: center; }
.exp__cover { margin: 4px 0 8px; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.exp__cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.exp__order { display: grid; gap: 8px; padding-top: 8px; }
.exp__params > div { grid-template-columns: 96px minmax(0, 1fr); }
.exp__params dd { font-size: 16px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.compare th, .compare td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font: 500 13px/16px var(--font-text); color: var(--muted); }
.compare tbody th { font-weight: 500; }
.compare tr.is-changed td:last-child { font-weight: 600; color: var(--action); }
.compare .tag { margin-left: 6px; font-size: 11px; padding: 3px 7px; background: var(--action); color: var(--action-ink); }
.exp__expect { border-left: 3px solid var(--line); padding-left: 16px; margin-top: 24px; }
.exp__expect, .exp__result { gap: 10px; }
.exp__expect p, .exp__result p, .exp__long p { max-width: 62ch; }
.exp__long { display: grid; gap: 12px; }
.ratings { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; padding: 4px 0 8px; }
.verdict { padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface); }
