/* Research content on /biostimulators; the comparison table keeps its own CSS. */
.bg-biostimulators .page h1 {
  overflow-wrap: anywhere;
}

.research-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 32px;
}

.research-nav a {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--card);
  color: var(--heading-color);
  font-weight: 600;
}

.research-nav a:hover {
  background: var(--bg-strong);
}

.biostimulant-research,
.biostimulant-research [id],
.research-quality-heading {
  scroll-margin-top: calc(var(--sticky-offset) + 20px);
}

.biostimulant-research {
  margin-bottom: 48px;
  overflow-wrap: anywhere;
}

.biostimulant-research > h2 {
  margin-top: 0;
}

.research-scope {
  padding: 16px 20px;
  border-left: 3px solid var(--primary-strong);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--bg);
}

.research-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 36px;
}

.research-highlights article {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
}

.biostimulant-research .research-highlights h4 {
  margin: 0 0 10px;
  color: var(--heading-color);
  font-size: 1.1rem;
}

.biostimulant-research .research-highlights .research-study-meta {
  margin: 0 0 10px;
}

.research-highlights a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.research-group {
  margin-top: 36px;
}

.biostimulant-research .research-group > h3,
.biostimulant-research .research-practical h3 {
  font-size: 1.3rem;
}

.research-study {
  margin: 12px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
}

.research-study summary {
  position: relative;
  display: block;
  padding: 16px 52px 16px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  list-style: none;
}

.research-study summary::-webkit-details-marker {
  display: none;
}

.research-study summary::after {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  content: "+";
  color: var(--heading-color);
  font-size: 1.5rem;
}

.research-study[open] summary::after {
  content: "−";
}

.research-study[open] summary {
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.research-study summary:hover {
  background: var(--bg);
}

.research-study-meta,
.research-study-topic {
  display: block;
}

.research-study-meta {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.85rem;
}

.research-study-topic {
  color: var(--heading-color);
  font-weight: 700;
  line-height: 1.4;
}

.research-study-body {
  padding: 20px;
}

.biostimulant-research .research-citation {
  margin-top: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.research-citation cite {
  color: var(--text);
  font-style: normal;
  font-weight: 600;
}

.research-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 14px;
}

.research-metrics-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.research-metrics div {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: 6px;
  background: var(--bg-strong);
}

.research-metrics dt {
  order: 2;
  font-size: 0.95rem;
  line-height: 1.3;
}

.research-metrics dd {
  order: 1;
  margin: 0 0 6px;
  color: var(--heading-color);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

.research-result-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.biostimulant-research .research-source {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 0;
  font-size: 0.95rem;
}

.research-source a,
.research-product-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.research-source span {
  color: var(--muted);
}

#evidence-comparison table {
  min-width: 0;
  margin: 20px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: var(--card);
}

#evidence-comparison th,
#evidence-comparison td {
  padding: 14px;
  border: 0;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  white-space: normal;
}

#evidence-comparison thead th {
  position: static;
  border-radius: 0;
}

#evidence-comparison tbody th {
  color: var(--heading-color);
  background: var(--bg-strong);
}

#evidence-comparison tr > :last-child {
  border-right: 0;
}

#evidence-comparison tbody tr:last-child > * {
  border-bottom: 0;
}

.research-conclusion {
  margin-top: 32px;
}

.research-practical {
  margin-top: 36px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.biostimulant-research .research-practical h3 {
  margin-top: 0;
}

.research-product-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 18px 0;
}

.research-practical .btn {
  white-space: normal;
  text-align: center;
}

.research-nav a:focus-visible,
.biostimulant-research :focus-visible {
  outline: 2px solid var(--primary-strong);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .research-highlights {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  #evidence-comparison table {
    border: 0;
    background: transparent;
    overflow: visible;
  }

  /* Keep column headings available to assistive technology. */
  #evidence-comparison thead {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  #evidence-comparison tbody tr {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card);
  }

  #evidence-comparison th,
  #evidence-comparison td {
    border-right: 0;
  }

  #evidence-comparison tbody td::before {
    content: attr(data-label);
    color: var(--heading-color);
  }

  #evidence-comparison tbody tr:last-child > * {
    border-bottom: 1px solid var(--border);
  }

  #evidence-comparison tbody tr > :last-child {
    border-bottom: 0;
  }
}

@media (max-width: 720px) {
  .research-metrics,
  .research-metrics-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .research-highlights {
    gap: 12px;
  }

  .research-study-body,
  .research-practical {
    padding: 16px;
  }

  .research-study summary {
    padding-left: 16px;
  }
}
