/*
 * The public source page: one names list, one collapsed "Record details".
 * GAP-529 and GAP-534, 16 September 2026 -- owner: "simplify the view so
 * any uneducated person in the trade can figure out what is going on."
 * Loaded by BB_Sources::enqueue_view() on singular bb_source only, after
 * bb-library and bb-index, whose variables it reuses.
 */

/* --- Who this document names ------------------------------------------ */

.bb-names {
	margin-block-start: 2rem;
	min-width: 0;
}

.bb-names h2 { margin-block: 0 0.4rem; }

.bb-names__count {
	margin: 0 0 1rem;
	color: var(--bb-soft, inherit);
	font-size: 0.95rem;
}

.bb-names__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.bb-names__row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.2rem 0.75rem;
	padding-block-end: 0.35rem;
	border-block-end: 1px solid var(--bb-rule, transparent);
	min-width: 0;
}

.bb-names__name { font-weight: 600; }
a.bb-names__name { text-decoration: none; }
a.bb-names__name:hover { text-decoration: underline; }

.bb-names__also {
	font-size: 0.85rem;
	color: var(--bb-soft, inherit);
}

.bb-names__where {
	font-size: 0.8rem;
	font-variant-numeric: tabular-nums;
	color: var(--bb-muted, inherit);
	overflow-wrap: anywhere;
}

/* --- the disclosures: "Show all N" and "Record details" ----------------- */

.bb-names__more,
.bb-sourcerecord__details {
	margin: 0;
	padding: 0;
	min-width: 0;
}

.bb-names__more-summary,
.bb-sourcerecord__summary {
	cursor: pointer;
	font-family: var(--wp--preset--font-family--label);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--accent-1);
	list-style: none;
	padding: 0.75rem 0;
}

.bb-names__more-summary::-webkit-details-marker,
.bb-sourcerecord__summary::-webkit-details-marker { display: none; }

.bb-names__more-summary::before,
.bb-sourcerecord__summary::before {
	content: "+";
	display: inline-block;
	width: 1.1em;
	color: inherit;
}

.bb-names__more[open] > .bb-names__more-summary::before,
.bb-sourcerecord__details[open] > .bb-sourcerecord__summary::before {
	content: "\2212";
}

.bb-sourcerecord__details {
	margin-block-start: 2.5rem;
	border-block-start: 1px solid var(--bb-rule, currentColor);
}

.bb-sourcerecord__details[open] > .bb-sourcerecord__summary {
	border-block-end: 1px solid var(--bb-rule, currentColor);
}

/* Inside the disclosure the old sections keep their own stylesheets; the
   caveat and field list get a top margin, and every h2 is set as a
   sub-heading so the outline reads as one collapsed record. */
.bb-sourcerecord__details > .bb-caveat,
.bb-sourcerecord__details > .bb-sourcerecord__fields {
	margin-block-start: 1rem;
}

.bb-sourcerecord__details h2 {
	font-size: var(--wp--preset--font-size--large);
}

.bb-sourcerecord__details dd {
	overflow-wrap: anywhere;
}
