/* CELLMIND local reference rebuild — generated from website/cellmind-rebuild/src/styles. Do not edit output. */
/* ---- pages/research.css ---- */
/* Research / lab-report hub. Values = resolved reference styles (computed_dump of research/index.html,
   research/index8b29.html (?view=cards) and the live filtered states at 1440/1101/1024/1023/769/768/767/
   600/480/390/375/320) and the rules they come from (evidence/css-usage/research(.cards).used.css:
   research-ux2, shop-ux2, site-ux2, parity-ux2, responsive). Intro: components/page-intro.css. */

/* ---- page frame (reference ux2 page: 15px / 1.6 / 450, #151515; 80px → 56px bottom space) ---- */
.research {
  padding-bottom: 80px;
  font-size: 15px;
  font-weight: 450;
  line-height: 1.6;
  color: var(--t-text-ink-soft);
}
/* Reference ux2 button size on this page (14px / 500; shared .btn is 15px / 600). */
.research .btn { font-size: 14px; font-weight: 500; }
/* Keyboard focus ring as on the reference page (2px gold-dark, 3px offset). The reference removes it
   from the cards' "View lab report" button; kept here for keyboard users (no effect on mouse use). */
.research :focus-visible { outline: 2px solid var(--t-border-gold-dark); outline-offset: 3px; }

/* ---- filter bar ---- */
.report-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0;
  padding: 16px;
  background: var(--t-bg-white);
  border: 1px solid var(--t-border-line);
  border-radius: var(--r);
  box-shadow: 0 10px 28px rgba(var(--t-shadow-ink-rgb), 0.07), 0 1px 3px rgba(var(--t-shadow-ink-rgb), 0.04);
}
.report-filter__field {
  display: flex;
  flex: 1 1 260px;
  flex-direction: column;
  gap: 6px;
  cursor: default;
}
.report-filter__label { font-size: 13px; font-weight: 600; color: var(--t-text-ink-5); }
.report-filter__control { position: relative; display: block; }
.report-filter__icon {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--t-text-gold-dark);
  transform: translateY(-50%);
  pointer-events: none;
}
.report-filter__select,
.report-filter__input {
  display: block;
  width: 100%;
  height: 50px;
  padding: 0 14px 0 42px;
  border: 1px solid var(--t-border-line-strong);
  border-radius: var(--r-sm);
  background-color: var(--t-bg-white);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--t-text-ink);
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color var(--t), box-shadow var(--t);
}
/* The flat white gradient stands in for the reference's background-image layer (the chevron SVG):
   with an image layer Chrome draws the select's text with greyscale antialiasing, as on the reference. */
.report-filter__select { padding-right: 44px; background-image: linear-gradient(var(--t-grad-white), var(--t-grad-white)); cursor: pointer; }
/* Select chevron. Reference: 12×8 SVG background (V from 1,1.5 → 6,6.5 → 11,1.5; 1.6px #111 stroke)
   16px from the right edge. Drawn with borders instead (no image request: the preview server's
   CSP has img-src 'self', which blocks data: URIs): 7.07px arms rotated 45°, a 1.9px border ≈ the
   rasterised 1.6px round-capped stroke; position tuned against the reference raster (apex ≈23.5px
   from the right edge). */
.report-filter__control--select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 19.49px;
  width: 8.02px;
  height: 8.02px;
  border-right: 1.9px solid var(--t-border-ink);
  border-bottom: 1.9px solid var(--t-border-ink);
  transform: translateY(-6.54px) rotate(45deg);
  pointer-events: none;
}
.report-filter__input::placeholder { color: var(--t-text-muted-3); font-weight: 400; opacity: 1; }
.report-filter__input::-webkit-search-decoration { -webkit-appearance: none; }
.report-filter__select:hover,
.report-filter__input:hover { border-color: var(--t-border-ink); }
/* Reference: focus = ink border + soft 3px ring, no outline (also for keyboard focus). */
.report-filter__select:focus,
.report-filter__input:focus { outline: none; border-color: var(--t-border-ink); box-shadow: 0 0 0 3px rgba(var(--t-shadow-ink-rgb), 0.06); }

.report-filter__meta { display: flex; align-items: center; gap: 10px; height: 50px; }
.report-filter__count {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--t-border-line);
  border-radius: var(--pill);
  background: var(--t-bg-off);
  font-size: 14px;
  color: var(--t-text-ink-5);
  white-space: nowrap;
}
.report-filter__count b { margin-right: 4px; font-weight: 600; color: var(--t-text-ink); }
.report-filter__clear {
  font-size: 13px;
  font-weight: 600;
  color: var(--t-text-gold-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  white-space: nowrap;
}
.report-filter__clear:hover { color: var(--t-text-ink); }
.report-filter__submit {
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid var(--t-border-ink);
  border-radius: var(--r-sm);
  background: var(--t-bg-white);
  font-size: 13px;
  font-weight: 500;
}

.view-toggle {
  display: inline-flex;
  height: 36px;
  overflow: hidden;
  border: 1px solid var(--t-border-line-strong);
  border-radius: var(--r-sm);
}
.view-toggle__link {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--t-text-ink-5);
  text-decoration: none;
  transition: background var(--t), color var(--t);
}
.view-toggle__link:hover { color: var(--t-text-ink); }
.view-toggle__link.is-active { background: var(--t-bg-black); color: var(--t-text-white); }

/* ---- list view ---- */
.report-list { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.report-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(4, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--t-bg-white);
  border: 1px solid var(--t-border-line);
  border-radius: var(--r-sm);
  box-shadow: 0 6px 18px rgba(var(--t-shadow-ink-rgb), 0.05);
}
.report-row__product { display: flex; align-items: center; gap: 12px; min-width: 0; }
.report-row__thumb {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 1px solid var(--t-border-line);
  border-radius: var(--r-xs);
  background: var(--t-plate-soft);
}
.report-row__thumb img { filter: var(--t-photo-filter); display: block; width: 100%; height: 100%; object-fit: cover; }
.report-row__copy { min-width: 0; }
.report-row__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--t-text-ink);
}
.report-row__batch {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  font-size: 12.5px;
  color: var(--t-text-ink-5);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.report-row__cell { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.report-row__label { font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--t-text-muted-2); }
.report-row__value {
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  color: var(--t-text-ink);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.report-row__value--accent { color: var(--t-text-gold-dark); }
.report-row__view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--t-border-ink);
  border-radius: var(--r-sm);
  background: var(--t-bg-white);
  box-shadow: 0 3px 10px rgba(var(--t-shadow-ink-rgb), 0.10);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--t-text-ink);
  white-space: nowrap;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.report-row__view:hover { background: var(--t-bg-ink); color: var(--t-text-white); }

/* ---- cards view (?view=cards) ---- */
.report-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.report-card {
  position: relative; /* reference value; also gives the card its own paint layer (text AA as on the reference) */
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--t-bg-white);
  border: 1px solid rgba(var(--t-border-ink-rgb), 0.06);
  border-radius: var(--r);
  box-shadow: 0 12px 32px rgba(var(--t-shadow-ink-rgb), 0.09), 0 2px 6px rgba(var(--t-shadow-ink-rgb), 0.05);
  transition: transform var(--t), box-shadow var(--t);
}
.report-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(var(--t-shadow-ink-rgb), 0.13), 0 3px 8px rgba(var(--t-shadow-ink-rgb), 0.06);
}
.report-card__body { display: flex; flex: 0 0 auto; flex-direction: column; padding: 18px 18px 8px; }
.report-card__lab {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  height: 22px;
  margin-bottom: 12px;
  padding: 0 10px;
  border-radius: var(--pill);
  background: var(--t-bg-gold-light);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--t-text-gold-dark);
}
.report-card__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0.3em;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--t-text-ink);
}
.report-card__dose { color: var(--t-text-gold-dark); }
.report-card__latest {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  border-radius: var(--pill);
  background: var(--t-bg-green-bg);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--t-text-green);
  white-space: nowrap;
}
.report-card__specs {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--t-border-line);
  border-radius: var(--r-xs);
}
.report-card__spec {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 12px;
  padding: 9px 12px;
  border-top: 1px solid var(--t-border-line);
  font-size: 13.5px;
}
.report-card__spec:first-child { border-top: 0; }
.report-card__spec-label {
  min-width: 56px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--t-text-muted-2);
}
.report-card__spec-val { font-weight: 500; text-align: right; color: var(--t-text-ink); }
.report-card__spec-val strong { font-weight: 600; color: var(--t-text-gold-dark); }
.report-card__spec-val--batch { letter-spacing: -0.01em; white-space: nowrap; }
.report-card__foot { padding: 10px 18px 16px; }
.report-card__view {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--t-text-gold-dark-2);
  opacity: 0.85;
  transition: color var(--t), opacity var(--t);
}
.report-card__view svg { width: 13px; height: 13px; }
.report-card__view:hover { color: var(--t-text-ink); text-decoration: underline; opacity: 1; }

/* ---- no results (live ?q=zzzz) ---- */
.report-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding: 56px 24px;
  text-align: center;
  background: var(--t-bg-off);
  border: 1px dashed var(--t-border-line-strong);
  border-radius: var(--r);
}
.report-empty__title { margin-bottom: 8px; font-size: 20px; font-weight: 500; color: var(--t-text-ink); }

/* ---- "Research notes" blog teaser ---- */
.research-notes {
  margin: 44px 0 8px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--t-bg-cream);
  border-radius: var(--r);
}
.research-notes__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
}
.research-notes__all-m { display: none; }
.note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.note-grid__item { display: flex; min-width: 0; }
.note-card {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 20px 20px 18px;
  background: var(--t-bg-white);
  border: 1px solid var(--t-border-line);
  border-radius: var(--r-sm);
  box-shadow: 0 8px 22px rgba(var(--t-shadow-ink-rgb), 0.06);
  color: var(--t-text-ink);
  text-decoration: none;
  transition: transform var(--t), box-shadow var(--t);
}
.note-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(var(--t-shadow-ink-rgb), 0.10); }
.note-card__num { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--t-text-gold-dark); }
.note-card__tag {
  display: inline-block;
  align-self: flex-start;
  max-width: 100%;
  height: 22px;
  padding: 0 10px;
  overflow: hidden;
  border-radius: var(--pill);
  background: var(--t-bg-gold-light);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 22px;
  color: var(--t-text-gold-dark);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.note-card__title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--t-text-ink);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.note-card__meta { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 500; color: var(--t-text-ink-5); }

/* ---- "How to read a report" ---- */
.research-how { margin-top: 48px; }
.read-steps { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
.read-step {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px;
  background: var(--t-bg-off);
  border-radius: var(--r);
}
.read-step__num { min-width: 32px; font-size: 12px; font-weight: 600; line-height: 1.6; color: var(--t-text-gold-dark); }
.read-step__title { margin-bottom: 6px; font-size: 16px; font-weight: 600; line-height: 1.6; color: var(--t-text-ink); }
.read-step__desc { font-size: 14.5px; font-weight: 400; line-height: 1.55; color: var(--t-text-ink-5); }

/* ---- CTA band ---- */
.research-cta {
  margin-top: 56px;
  padding: clamp(40px, 6vw, 64px) var(--container-pad);
  background: var(--t-bg-black);
  border-radius: var(--r);
  color: var(--t-text-white);
  text-align: center;
}
.research-cta__inner { max-width: 600px; margin: 0 auto; }
.research-cta__tag { margin-bottom: 12px; font-size: 12px; font-weight: 500; letter-spacing: 0.06em; color: var(--t-text-gold); }
.research-cta__title {
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--t-text-white);
}
.research-cta__title em { font-style: italic; font-weight: 400; color: var(--t-text-gold); }
/* Reference: transparent 1px border over the gold fill (shared .btn--gold paints it gold — corner AA). */
.research-cta__btn,
.research-cta__btn:hover { border-color: transparent; }
.research-cta__sub {
  max-width: 46ch;
  margin: 0 auto 24px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(var(--t-text-white-rgb), 0.7);
}

/* ---- responsive ---- */
@media (max-width: 1023px) {
  .report-row { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .report-row__product { grid-column: 1 / 4; }
  .report-row__view { grid-column: 1 / 4; width: 100%; }
  .note-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* 768px exactly: the reference's ≤768 product-card rules reach the report cards (spec cells padded and
   divided, smaller values) one pixel before its ≤767 layout switch; the steps stack from here too. */
@media (max-width: 768px) {
  .report-card__title { line-height: 1.2; }
  .report-card__dose { white-space: nowrap; }
  .report-card__spec-label { padding: 10px; border-right: 1px solid var(--t-border-line); }
  .report-card__spec-val { padding: 10px 12px; font-size: 12px; line-height: 1.35; }
  .read-step { flex-direction: column; }
}
@media (max-width: 767px) {
  .research { padding-bottom: 56px; }
  .report-filter { gap: 12px; padding: 14px; }
  .report-filter__field { flex-basis: 100%; }
  .report-filter__meta { justify-content: space-between; width: 100%; height: auto; }
  .view-toggle { display: none; }
  .report-list { margin-top: 16px; }
  .report-row { grid-template-columns: 1fr 1fr; padding: 14px; }
  .report-row__product,
  .report-row__view { grid-column: 1 / 3; }
  .report-row__value { font-size: 13.5px; }
  .report-cards { grid-template-columns: 1fr; gap: 12px; margin-top: 16px; }
  .report-card__body { padding: 16px 16px 6px; }
  .report-card__name { flex-direction: column; align-items: flex-start; gap: 2px; }
  .report-card__dose { font-size: 16px; }
  .report-card__spec { font-size: 13px; }
  .research-notes { margin-top: 28px; padding: 20px 16px; }
  .research-notes__all { display: none; }
  .research-notes__all-m { display: flex; width: 100%; margin-top: 12px; }
  .note-grid { grid-template-columns: 1fr; gap: 10px; }
  .note-card { padding: 16px 16px 14px; }
  .note-card__title { font-size: 16px; }
  .research-how { margin-top: 36px; }
  .read-step { gap: 14px; padding: 18px 16px; }
  .research-cta { margin-top: 40px; padding: 36px 20px; }
  .research-cta__btn { width: 100%; white-space: normal; }
}

@media (max-width: 480px) {
  .report-empty__all { width: 100%; }
}

/* Motion preference: no hover lift (appearance at rest unchanged). */
@media (prefers-reduced-motion: reduce) {
  .report-card:hover,
  .note-card:hover { transform: none; }
}
