/**
 * OTA Research Details: the study's label and value pairs, drawn as a card.
 *
 * The client asked for the study details under the take-part buttons in the
 * Research Single's column, as label and value rows (Teamwork 49532455), and
 * for the block to look like the Author Card. So this is the Author Card's
 * card with no portrait and no button: the same 14px radius, the same roles,
 * and the card's text for each value.
 *
 * The labels are the exception. They began as the Author Card's eyebrow, 12px
 * and uppercase, and are now the More research card's heading treatment, 17px
 * bold with no uppercase, which the client asked for so the two cards in the
 * column read as a pair (Teamwork 49532455). See THE LABEL below. Labels sit
 * above values because the column is a third of the page and the values run
 * long (four authors with qualifications, two organisations).
 *
 * Every colour is a colour theme role, the same bar/* set the Author Card
 * binds, so the card ships with no colours of its own and takes the design's
 * look when the editor sets the widget's Colour Theme to Teal:
 *
 *   card surface   --ota-background    #005361
 *   label          --ota-logo          #d4f0d9
 *   value          --ota-white-text    #ffffff
 *   heading        --ota-white-text
 *
 * The theme's _content.scss spaces every `li + li` inside the content column
 * by 0.5rem at one id, three classes and four elements, which a bare class
 * cannot beat; the authors list restates its spacing at one id and five
 * classes, the same counter ota-secondary-nav.css documents.
 */

/*
 * The Colour Theme control puts its class on the widget wrapper, and the theme
 * stylesheet paints every themed element's background through a zero-
 * specificity `:where(.ota-theme--*)` rule. Left alone that paints a square
 * teal block behind the rounded card. One class outranks :where(), so the
 * wrapper goes clear and only the card carries the surface.
 */
.elementor-widget-ota_research_details {
	background-color: transparent;
}

/*
 * The aside column spaces its cards with `.ota-aside-card + .ota-aside-card`
 * (ota-news-single.css), which a widget between two cards falls outside of.
 * The same 19px above and below, so the card sits in the column's rhythm.
 * Two classes here so it also wins over Elementor's own widget spacing.
 */
.ota-news-aside .elementor-widget-ota_research_details {
	margin-block: 19px;
}

.ota-news-aside .elementor-widget-ota_research_details:first-child {
	margin-block-start: 0;
}

.ota-news-aside .elementor-widget-ota_research_details:last-child {
	margin-block-end: 0;
}

.ota-research-details {
	--ord-surface: var(--ota-background, #005361);
	--ord-label: var(--ota-logo, #d4f0d9);
	--ord-text: var(--ota-white-text, #fff);

	/*
	 * The row divider. The aside card's own `--oac-line` is
	 * `rgba(0, 48, 56, 0.2)`, a dark line sized for a white card, and it is
	 * invisible on this card's teal. So the same idea at the same weight in the
	 * other direction: the card's own text at a fifth.
	 *
	 * Derived from the text role rather than typed as a white, so what carries
	 * it is the text colour and not an assumption that the surface is dark. On
	 * Teal it resolves to white at 0.2, the same line either way; on a theme
	 * with a light surface and dark text a literal white would have gone
	 * white-on-white and disappeared. Same derivation
	 * `--ota-menu-on-feature-line` uses in ota-mega-menu.css.
	 */
	--ord-line: color-mix(in srgb, var(--ord-text) 20%, transparent);

	/* The Author Card's numbers, with the side padding eased for a column. */
	--ord-radius: 14px;
	--ord-pad: 28px 30px;

	display: flex;
	flex-direction: column;
	gap: 20px;
	box-sizing: border-box;
	padding: var(--ord-pad);
	border-radius: var(--ord-radius);
	background-color: var(--ord-surface);
}

/* The Author Card's name: 28px regular, tight. */
.ota-research-details__heading {
	margin: 0;
	font-size: 1.75rem;
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: -0.01em;
	color: var(--ord-text);
}

/*
 * THE ROWS
 *
 * The client asked for a line between the rows, matching the More research
 * card below this one (Teamwork 49532455). That card is the posts widget, whose
 * rows are `padding-block: 12px` with a `border-bottom` on every row, the last
 * one included (ota-news-single.css). So the same here: the gap that used to
 * space the rows becomes padding either side of each line, and the trailing
 * line under the last row is deliberate, because that is what More research
 * does and the ask was for it to look the same.
 */
.ota-research-details__list {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin: 0;
	padding: 0;
}

.ota-research-details__row {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding-block: 12px;
	border-bottom: 1px solid var(--ord-line);
}

/*
 * The card's own padding already opens the top, so the first row's would read
 * as a gap between the heading and the first label rather than as rhythm.
 */
.ota-research-details__row:first-child {
	padding-top: 0;
}

/*
 * THE LABEL
 *
 * Was the Author Card's eyebrow: 12px, uppercase, 0.08em tracking. The client
 * asked for the More research card's typography instead (Teamwork 49532455),
 * which is that card's heading: 17px bold, 1.456, 1px of tracking, no
 * uppercase (ota-news-single.css, THE EYEBROW).
 *
 * The one part of it not taken is the colour. More research draws its heading
 * in `--ota-accent` (#f04c3a), which on this card's teal surface is around
 * 2.4:1 and fails AA for text. So the label keeps `--ord-label`, the pale green
 * the card was built to read in.
 */
.ota-research-details__label {
	margin: 0;
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.456;
	letter-spacing: 1px;
	color: var(--ord-label);
}

/* The Author Card's bio size, at regular weight so a name reads as a name. */
.ota-research-details__value {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.55;
	color: var(--ord-text);
	/* An ethics reference or an email has no spaces to break at. */
	overflow-wrap: anywhere;
}

.ota-research-details__names {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ota-research-details__name {
	margin: 0;
	padding: 0;
}

#agendtheme-content .ota-research-details .ota-research-details__list .ota-research-details__names > .ota-research-details__name + .ota-research-details__name {
	margin-top: 4px;
}
