/* =====================================================================
 * zzf-core — research.css
 * Styling for [zzf_research], the compound index.
 * ---------------------------------------------------------------------
 * MESH RULE: this is a DATA surface. Compound identity is the most
 * clinical content on the site — CAS numbers, sizes, storage conditions
 * — so the card is flat white with a hairline, never glass. The cards
 * carry .zzf-clinical from glass.css and this file only adds layout and
 * the internal type scale.
 *
 * Every figure is mono, by house rule, via .zzf-spec. The term is
 * separated from its value by COLOUR, not weight — .zzf-spec b is
 * font-weight 400 for exactly this reason, and the dt/dd pair here
 * follows it rather than inventing a second treatment.
 * ================================================================== */

.zzf-research {
	--zzf-research-gap: 1.4rem;
	width: 100%;
}

/* The framing sentence. Deliberately body copy at reading width, not a
   notice box — it is context, and a box would read as a warning. */
/* Centred to match the Lab Results page, which sets the pattern for a
   documentation page: header lede centred, then a centred search. This used
   to be left-anchored under a centred page header, so the column visibly
   stepped left halfway down the page. */
.zzf-research__note {
	max-width: 66ch;
	margin: 0 auto 2rem;
	text-align: center;
	color: var(--wp--preset--color--muted, #5A6C89);
	font-size: 0.9rem;
	line-height: 1.7;
}

/* Same centring mechanism the COA library uses (.zzfcoa-search-wrap):
   flex + justify-content on the wrapper rather than margin:auto on the
   input, so the field keeps a fixed width instead of stretching. */
.zzf-research__search {
	display: flex;
	justify-content: center;
	margin: 0 0 2rem;
}

.zzf-research__search input {
	width: 460px;   /* matches #zzfcoa-search so the two pages agree */
	max-width: 92vw;
	padding: 0.72rem 1rem;
	background: var(--wp--preset--color--base, #FFFFFF);
	border: 1px solid var(--wp--preset--color--line, #E3EBF6);
	border-radius: 4px;
	color: var(--wp--preset--color--contrast, #0B1B36);
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 300;
	outline: none;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.zzf-research__search input:focus {
	border-color: var(--wp--preset--color--accent, #14346E);
	box-shadow: 0 0 0 3px rgba(20, 52, 110, .10);
}

.zzf-research__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--zzf-research-gap);
}

/* .zzf-clinical supplies the fill, hairline and radius. */
.zzf-research__card {
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
	padding: 1.25rem 1.3rem 1.15rem;
}

.zzf-research__card[hidden] { display: none; }

.zzf-research__name {
	margin: 0;
	font-family: var(--wp--preset--font-family--display, Marcellus, serif);
	font-size: 1.24rem;
	font-weight: 400;
	line-height: 1.14;
	letter-spacing: -0.012em;
	color: var(--wp--preset--color--contrast, #0B1B36);
}

/* Spec rows — the .zzf-spec scale, laid out as a two-column definition
   list so the values line up down the card instead of ragging. */
.zzf-research__spec {
	margin: 0;
	display: grid;
	gap: 0.1rem;
}

.zzf-research__row {
	display: grid;
	grid-template-columns: 5.5rem 1fr;
	gap: 0.75rem;
	align-items: baseline;
}

.zzf-research__row dt {
	margin: 0;
	color: var(--wp--preset--color--muted, #5A6C89);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.68rem;
}

.zzf-research__row dd {
	margin: 0;
	color: var(--wp--preset--color--contrast, #0B1B36);
	font-weight: 400;
	overflow-wrap: anywhere;
}

/* Links are a list of destinations, not a row of buttons. A card with
   three buttons on it reads as three calls to action; this is a reference
   entry and the emphasis belongs on the compound, not on leaving. */
.zzf-research__links {
	margin: 0;
	padding: 0.85rem 0 0;
	list-style: none;
	border-top: 1px solid var(--wp--preset--color--line, #E3EBF6);
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.zzf-research__links a {
	font-family: var(--wp--preset--font-family--mono, ui-monospace, monospace);
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--accent, #14346E);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	align-self: flex-start;
	transition: border-color .2s ease, color .2s ease;
}

.zzf-research__links a:hover,
.zzf-research__links a:focus-visible {
	color: var(--wp--preset--color--contrast, #0B1B36);
	border-bottom-color: currentColor;
}

.zzf-research__empty {
	max-width: 52ch;
	margin: 2.5rem auto;
	text-align: center;
	color: var(--wp--preset--color--muted, #5A6C89);
	font-weight: 300;
}

.zzf-research__empty[hidden] { display: none; }

@media (max-width: 960px) {
	.zzf-research__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
	.zzf-research__grid { grid-template-columns: 1fr; }
	.zzf-research__row  { grid-template-columns: 4.75rem 1fr; }
}
