/* =============================================
   EDR (Entity Descriptive Record) display
   Source: Figma UXEbDNdcsFkogt5KuLGOvH, page "Entity Descriptive record",
   frames 2562:274 (person template) and 2568:543 (organization template).
   See edr-design-handoff/DESIGN-SPEC.md. Decisions in spec section 7.0
   override Figma: one orange (#c54700), one link blue (#3f6f9f).
   Markup comes from the Layout Builder sections on
   core.entity_view_display.node.entity_descriptive_record_edr.default
   and the edr_display_* views.
   ============================================= */

/* ---------- Group theme colour ----------
   --current-group-color is printed in <head> by leaf_base_apply_group_theme()
   from the project group's field_group_theme. For the "Default" theme it is
   printed EMPTY ("--current-group-color: ;"), which defeats a var() fallback.
   These registered <color> properties fall back to their initial value
   (the Figma colour) whenever the group colour is missing, empty or invalid. */
@property --edr-accent {
	syntax: '<color>';
	inherits: true;
	initial-value: #c54700;
}
@property --edr-link {
	syntax: '<color>';
	inherits: true;
	initial-value: #3f6f9f;
}

/* ---------- Tokens (spec section 2) ---------- */
.node--type-entity-descriptive-record-edr {
	--edr-accent: var(--current-group-color);
	--edr-link: var(--current-group-color);
	--cwrc-orange: var(--edr-accent);  /* rules, buttons, Contributions titles */
	--cwrc-link: var(--edr-link);      /* links */
	--cwrc-grey-900: #333333;
	--cwrc-grey-cool: #55565a;
	--cwrc-grey-100: #f6f6f6;
	--cwrc-rule-light: #cccccc;
	--cwrc-black: #000000;
	--cwrc-white: #ffffff;
	--cwrc-font: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
	--rule-weight: 2px;
	--hero-col-gap: 75px;
	--section-gap: 44px;             /* Figma: band -> Timeline, Affiliations -> Contributions */

	font-family: var(--cwrc-font);
	font-size: 16px;
	line-height: 24px;
	color: var(--cwrc-black);
}

.node--type-entity-descriptive-record-edr a:not(.button) {
	color: var(--cwrc-link);
	text-decoration: none;
	border-bottom: 0;
}

/* Field labels ("BIRTH:", "GENDER:", "ON THE WEB", "ORGANIZATIONS:") = Eyebrow Heading */
.node--type-entity-descriptive-record-edr .node__content strong.text-uppercase {
	font-size: 14px;
	font-weight: 700;
	line-height: 24px;
	letter-spacing: normal;
	text-transform: uppercase;
	color: var(--cwrc-black);
	white-space: nowrap;
}

/* External-link icon (Font Awesome 5 renders <i> as an inline SVG) */
.node--type-entity-descriptive-record-edr .svg-inline--fa.fa-external-link-alt,
.node--type-entity-descriptive-record-edr i.fa-external-link-alt {
	width: 15px;
	height: 15px;
	margin-left: 4px;
	vertical-align: -2px;
	color: var(--cwrc-grey-900);
}

/* ---------- Page title {EDR Title} = Header 1 + orange rule ----------
   Text colour is left to the theme so it matches simple pages: the group
   colour on themed projects, the theme's h2 colour otherwise. */
.node--type-entity-descriptive-record-edr .layout .block.block-layout-builder.block-field-blocknodeentity-descriptive-record-edrtitle h2 {
	font-family: var(--cwrc-font);
	font-size: 36px;
	font-weight: 400;
	line-height: normal;
	letter-spacing: -0.02em;
	text-transform: none;
	margin: 0;
	padding-bottom: 12px;
	border-bottom: var(--rule-weight) solid var(--cwrc-orange);
}

/* ---------- Hero band (spec section 4) ----------
   Two Layout Builder sections carry .bs-bg-light: the name/dates + Edit
   row, and the three-column details row. Together they form one grey band,
   painted full-bleed past the #main container. */
.node--type-entity-descriptive-record-edr .node__content > .bs-bg-light {
	background-color: var(--cwrc-grey-100) !important;
	box-shadow: 0 0 0 100vmax var(--cwrc-grey-100);
	clip-path: inset(0 -100vmax);
	padding-left: 0 !important;
	padding-right: 0 !important;
}
.node--type-entity-descriptive-record-edr .node__content > div:first-child + .bs-bg-light {
	margin-top: 46px;                 /* title rule -> band */
	padding-top: 31px !important;
}
.node--type-entity-descriptive-record-edr .node__content > .bs-bg-light + .bs-bg-light {
	padding-top: 8px !important;
	padding-bottom: 40px !important;
}
/* Second hero section uses .w-100 instead of .container: line it up with the first */
.node--type-entity-descriptive-record-edr .node__content > .bs-bg-light > .w-100 {
	padding-left: calc(var(--bs-gutter-x, 1.5rem) * .5);
	padding-right: calc(var(--bs-gutter-x, 1.5rem) * .5);
}

/* {Taxonomy term label} = Header 3 */
.node--type-entity-descriptive-record-edr .view-edr-display-disambiguation.view-display-id-block_3 h4 {
	font-family: var(--cwrc-font);
	font-size: 24px;
	font-weight: 700;
	line-height: normal;
	letter-spacing: -0.02em;
	margin: 0 0 4px;
}
.node--type-entity-descriptive-record-edr .view-edr-display-disambiguation.view-display-id-block_3 h4 a {
	color: var(--cwrc-black) !important;   /* beats the group theme's "#page .layout a" colour */
}

/* (DOB – DOD): Bold 14 uppercase, on one line */
.node--type-entity-descriptive-record-edr .view-edr-display-disambiguation .views-field-field-important-dates,
.node--type-entity-descriptive-record-edr .view-edr-display-disambiguation .views-field-field-important-dates > .field-content {
	display: inline-flex !important;
	flex-wrap: wrap;
	align-items: baseline;
	gap: .35em;
	font-size: 14px;
	font-weight: 700;
	line-height: 24px;
	text-transform: uppercase;
}
.node--type-entity-descriptive-record-edr .view-edr-display-disambiguation .views-field-field-important-dates .paragraph:first-child .field::before { content: "("; }
.node--type-entity-descriptive-record-edr .view-edr-display-disambiguation .views-field-field-important-dates .paragraph:last-child .field::after { content: ")"; }
.node--type-entity-descriptive-record-edr .view-edr-display-disambiguation .views-field-field-important-dates .paragraph {
	display: inline;
}

/* EDIT RECORD button (edr_display_edit view) */
.node--type-entity-descriptive-record-edr .view-edr-display-edit .field-group-footer-button {
	text-align: right;
	padding: 0;
}
.node--type-entity-descriptive-record-edr .view-edr-display-edit .field-group-footer-button a {
	display: inline-flex !important;   /* beats the group-page "#page .layout a" rule */
	align-items: center;
	justify-content: center;
	min-width: 124px;
	height: 39px;
	padding: 0 22px;
	background: var(--cwrc-orange);
	color: var(--cwrc-white) !important;   /* beats the group theme's "#page .layout a" colour */
	border: 1.25px solid var(--cwrc-orange);
	border-radius: 3px;
	font-size: 12px;
	line-height: 16px;
	text-transform: uppercase;
	text-decoration: none;
}
.node--type-entity-descriptive-record-edr .view-edr-display-edit .field-group-footer-button a::after {
	display: none !important;
}
.node--type-entity-descriptive-record-edr .view-edr-display-edit .field-group-footer-button a:hover,
.node--type-entity-descriptive-record-edr .view-edr-display-edit .field-group-footer-button a:focus {
	background: var(--cwrc-white);
	color: var(--cwrc-orange) !important;
	text-decoration: none;
}

/* Hero columns: label/value tables (context, details, names) */
.node--type-entity-descriptive-record-edr .bs-bg-light table {
	border-collapse: collapse;
	margin: 0;
}
.node--type-entity-descriptive-record-edr .bs-bg-light td {
	padding: 0 0 4px;
	vertical-align: top;
	font-size: 16px;
	line-height: 24px;
}
.node--type-entity-descriptive-record-edr .bs-bg-light td:first-child {
	min-width: 180px;
	padding-right: 10px;
}
.node--type-entity-descriptive-record-edr .bs-bg-light .views-field-nothing br {
	display: none;
}
.node--type-entity-descriptive-record-edr .view-edr-display-details .field-content {
	padding-top: 0 !important;
}

/* Alternative names: "PSEUDONYM: John Doe (EN)" */
.node--type-entity-descriptive-record-edr .view-edr-display-names .views-field-nothing > .field-content {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: .35em;
}
.node--type-entity-descriptive-record-edr .view-edr-display-names small {
	font-size: 16px;
	color: var(--cwrc-grey-900);
}

/* ON THE WEB: authority labels 14px #333 + external-link icon */
.node--type-entity-descriptive-record-edr .view-edr-display-dereferencing .views-field-nothing-1 > .field-content > div {
	padding-top: 16px !important;
}
.node--type-entity-descriptive-record-edr .view-edr-display-dereferencing .view-content > div > div:not(.views-field) {
	font-size: 14px;
	line-height: 24px;
	color: var(--cwrc-grey-900);
}

/* Media gallery (column 3) */
.node--type-entity-descriptive-record-edr .view-edr-display-disambiguation.view-display-id-block_4 figure {
	margin: 0;
	transform: none;                  /* cancel .translate-middle */
}
/* Every image sits in the same 3:2 landscape frame (Figma organization
   template, 278 x 186). Portrait images are scaled to the frame's height
   and centred; the frame matches the hero band's grey so switching between
   portrait and landscape images doesn't flash a white box. */
.node--type-entity-descriptive-record-edr .view-edr-display-disambiguation.view-display-id-block_4 .image__wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--cwrc-grey-100);
}
.node--type-entity-descriptive-record-edr .view-edr-display-disambiguation.view-display-id-block_4 .field--name-field-media-image a {
	display: block;
}
.node--type-entity-descriptive-record-edr .view-edr-display-disambiguation.view-display-id-block_4 img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}
/* Caption under each image (not in Figma): centred "Title" in quotes, then
   contributors styled like the Contributions block's meta line. */
.node--type-entity-descriptive-record-edr .edr-gallery__figure {
	margin: 0;
}
/* The image template's hidden placeholder loses its inline display:none in
   the Views rewrite; hide it here so it doesn't sit beside the image. */
.node--type-entity-descriptive-record-edr .edr-gallery__figure .ugly__hack {
	display: none;
}
.node--type-entity-descriptive-record-edr .edr-gallery__caption {
	margin-top: 8px;
	text-align: center;
}
.node--type-entity-descriptive-record-edr .edr-gallery__title,
.node--type-entity-descriptive-record-edr .edr-gallery__contributors {
	display: block;
}
.node--type-entity-descriptive-record-edr .edr-gallery__title {
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
}
.node--type-entity-descriptive-record-edr .edr-gallery__title::before {
	content: "\201C";
}
.node--type-entity-descriptive-record-edr .edr-gallery__title::after {
	content: "\201D";
}
.node--type-entity-descriptive-record-edr .edr-gallery__contributors {
	margin-top: 4px;
}
/* Pager built by asset_injector.js.edr_gallery (Figma 2562:330):
   «  ‹  [n] OF N  ›  »  — 12px uppercase #333, number Bold in a
   1px #55565a box, radius 4. */
.node--type-entity-descriptive-record-edr .edr-gallery__pager {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 15px;
	color: var(--cwrc-grey-900);
}
.node--type-entity-descriptive-record-edr .edr-gallery__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent !important;   /* beats the theme's default button look */
	box-shadow: none !important;
	color: var(--cwrc-grey-900);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}
.node--type-entity-descriptive-record-edr .edr-gallery__btn:hover,
.node--type-entity-descriptive-record-edr .edr-gallery__btn:focus-visible {
	color: var(--cwrc-orange);
}
.node--type-entity-descriptive-record-edr .edr-gallery__btn:disabled {
	opacity: .3;
	cursor: default;
	color: var(--cwrc-grey-900);
}
.node--type-entity-descriptive-record-edr .edr-gallery__btn .svg-inline--fa {
	height: 1em;
}
.node--type-entity-descriptive-record-edr .edr-gallery__count {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	line-height: 16px;
	text-transform: uppercase;
}
.node--type-entity-descriptive-record-edr .edr-gallery__input {
	width: 37px;
	height: 36px;
	padding: 0;
	text-align: center;
	font: inherit;
	font-weight: 700;
	color: var(--cwrc-grey-900);
	border: 1px solid var(--cwrc-grey-cool);
	border-radius: 4px;
	background: var(--cwrc-white);
}
.node--type-entity-descriptive-record-edr .edr-gallery__input:focus {
	outline: 2px solid var(--cwrc-orange);
	outline-offset: 1px;
}

/* Factuality under the name/dates ("Fictional character", "Fictionalized
   organization"; nothing for real). Figma: 14/20 #333, like "[fictional character]". */
.node--type-entity-descriptive-record-edr .edr-factuality {
	margin-top: 4px;
	font-size: 14px;
	line-height: 20px;
	color: var(--cwrc-grey-900);
}

/* Organization description in the hero (Figma org template, column 1),
   clamped to 8 lines with a "more" toggle added by asset_injector.js.edr_more. */
.node--type-entity-descriptive-record-edr .bs-bg-light .field--name-field-edr-org-descr {
	margin-top: 16px;
	font-size: 16px;
	line-height: 24px;
}
.node--type-entity-descriptive-record-edr .edr-clamp.is-clamped {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 8;
	line-clamp: 8;
	overflow: hidden;
}
/* While collapsed, run the paragraphs together so the 8-line clamp ends on a
   clean line with an ellipsis; expanding restores the normal paragraphs. */
.node--type-entity-descriptive-record-edr .edr-clamp.is-clamped p {
	display: inline;
	margin: 0;
}
.node--type-entity-descriptive-record-edr .edr-clamp.is-clamped p + p::before {
	content: " ";
}
.node--type-entity-descriptive-record-edr .edr-clamp p:last-child {
	margin-bottom: 0;
}
.node--type-entity-descriptive-record-edr .edr-more {
	padding: 0;
	border: 0;
	background: transparent !important;
	box-shadow: none !important;
	font-size: 16px;
	line-height: 24px;
	color: var(--cwrc-link);
	cursor: pointer;
}
.node--type-entity-descriptive-record-edr .edr-more:hover,
.node--type-entity-descriptive-record-edr .edr-more:focus-visible {
	text-decoration: underline;
}

/* ---------- Sections below the hero (spec section 5) ---------- */

/* Section heading = Header 3 + 2px orange rule */
.node--type-entity-descriptive-record-edr .node__content > div:not(.bs-bg-light) h3 {
	font-family: var(--cwrc-font);
	font-size: 24px;
	font-weight: 700;
	line-height: normal;
	letter-spacing: -0.02em;
	color: var(--cwrc-black);
	text-transform: none;
	margin: 0 0 22px;
	padding-bottom: 8px;
	border-bottom: var(--rule-weight) solid var(--cwrc-orange);
}
.node--type-entity-descriptive-record-edr .node__content > div:not(.bs-bg-light) {
	padding-top: 0 !important;
}
.node--type-entity-descriptive-record-edr .node__content > .bs-bg-light + div:not(.bs-bg-light) {
	margin-top: var(--section-gap);   /* band -> first section */
}
/* Everything below the band sits in ONE Layout Builder region (class
   .edr-below, set in the section's region classes), laid out here as a
   single full-width column. Order (Layout Builder): Timeline, Description,
   Context, Affiliations, Sources, Contributions. Blocks with no content
   aren't rendered, so nothing leaves an empty gap. */
.node--type-entity-descriptive-record-edr .edr-below {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	row-gap: var(--section-gap);
}
.node--type-entity-descriptive-record-edr .edr-below > * {
	min-width: 0;
	margin: 0;
}
/* Safety net: every block here prints its own h3, so one without a heading
   has nothing to show and must not take a grid cell (or a gap). */
.node--type-entity-descriptive-record-edr .edr-below > :not(:has(h3)) {
	display: none;
}

/* Description / Context body text */
.node--type-entity-descriptive-record-edr .field--name-field-edr-pers-descr,
.node--type-entity-descriptive-record-edr .field--name-field-edr-pers-status,
.node--type-entity-descriptive-record-edr .field--name-field-edr-org-descr {
	font-size: 16px;
	line-height: 24px;
}
.node--type-entity-descriptive-record-edr .field--name-field-edr-pers-descr p:last-child,
.node--type-entity-descriptive-record-edr .field--name-field-edr-pers-status p:last-child,
.node--type-entity-descriptive-record-edr .field--name-field-edr-org-descr p:last-child {
	margin-bottom: 0;
}

/* Timeline events grid: one event fills the row like a list item; 2+ events
   sit in 2 columns (each at least 14rem, so narrow screens drop to 1). */
.node--type-entity-descriptive-record-edr .view-edr-display-events:is(.view-display-id-block_2, .view-display-id-block_org_events) .view-content {
	--events-gap: 32px;
	--events-cols: 2;
	display: grid;
	gap: 24px var(--events-gap);
	grid-template-columns: repeat(auto-fit, minmax(max(14rem, (100% - (var(--events-cols) - 1) * var(--events-gap)) / var(--events-cols)), 1fr));
}
.node--type-entity-descriptive-record-edr .view-edr-display-events:is(.view-display-id-block_2, .view-display-id-block_org_events) .views-row {
	margin: 0;
}
/* Each event: "BIRTH: {date}", then place and note indented 53px */
.node--type-entity-descriptive-record-edr .view-edr-display-events:is(.view-display-id-block_2, .view-display-id-block_org_events) .field-content > br {
	display: none;
}
.node--type-entity-descriptive-record-edr .view-edr-display-events:is(.view-display-id-block_2, .view-display-id-block_org_events) table {
	flex-direction: column;
	margin: 0;
	border-collapse: collapse;
}
.node--type-entity-descriptive-record-edr .view-edr-display-events:is(.view-display-id-block_2, .view-display-id-block_org_events) tr {
	align-items: baseline;
	padding: 0 !important;
}
.node--type-entity-descriptive-record-edr .view-edr-display-events:is(.view-display-id-block_2, .view-display-id-block_org_events) td {
	padding: 0;
	font-size: 16px;
	line-height: 24px;
}
.node--type-entity-descriptive-record-edr .view-edr-display-events:is(.view-display-id-block_2, .view-display-id-block_org_events) td:first-child {
	padding-right: .35em;
}
.node--type-entity-descriptive-record-edr .view-edr-display-events:is(.view-display-id-block_2, .view-display-id-block_org_events) td:first-child:empty {
	flex: 0 0 53px;
	padding: 0;
}
.node--type-entity-descriptive-record-edr .view-edr-display-events:is(.view-display-id-block_2, .view-display-id-block_org_events) td p {
	margin: 0;
}

/* Affiliations (block_affiliations): centred heading, rule across the full
   width, then People / Organizations / Places stacked as accordions
   (<details>, open when a group has fewer than 10 items). Styled like the
   theme's simple-page accordions (_node-page.scss .ui-accordion): bordered
   box, 14px uppercase header, collapse icon on the right. Borders and the
   icon use the project's theme colour. */
.node--type-entity-descriptive-record-edr .view-edr-display-affiliations h3.text-center {
	text-align: center;
}
.node--type-entity-descriptive-record-edr .edr-affiliations {
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.node--type-entity-descriptive-record-edr .edr-accordion,
.node--type-entity-descriptive-record-edr .edr-accordion__header {
	background: transparent;              /* theme gives details/summary a grey fill */
}
.node--type-entity-descriptive-record-edr .edr-accordion {
	border: 1.25px solid var(--cwrc-orange);
	border-radius: 4px;
}
.node--type-entity-descriptive-record-edr .edr-accordion__header {
	position: relative;
	display: block;
	padding: .9rem 3em .9rem 1em;
	font-size: 14px;
	font-weight: 700;
	line-height: 17px;
	text-transform: uppercase;
	color: var(--cwrc-black);
	cursor: pointer;
	list-style: none;
}
.node--type-entity-descriptive-record-edr .edr-accordion__header::-webkit-details-marker {
	display: none;
}
.node--type-entity-descriptive-record-edr .edr-accordion__header::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 12px;
	width: 18px;
	height: 19px;
	margin-top: -9.5px;
	background-color: var(--cwrc-orange);
	-webkit-mask: url(/themes/custom/leaf_base/images/form_icons/collapse_ic.svg) center / contain no-repeat;
	mask: url(/themes/custom/leaf_base/images/form_icons/collapse_ic.svg) center / contain no-repeat;
	transform: rotate(180deg);              /* collapsed: chevron points down */
	transition: transform .3s ease-in-out;
}
.node--type-entity-descriptive-record-edr .edr-accordion[open] > .edr-accordion__header::after {
	transform: none;                        /* open: chevron points up */
}
.node--type-entity-descriptive-record-edr .edr-accordion__header:focus-visible {
	outline: 2px solid var(--cwrc-orange);
	outline-offset: 2px;
}
.node--type-entity-descriptive-record-edr .edr-accordion[open] > .edr-accordion__header {
	border-bottom: 1.25px solid var(--cwrc-orange);
}
.node--type-entity-descriptive-record-edr .edr-accordion__count {
	font-weight: 400;
}
.node--type-entity-descriptive-record-edr .edr-accordion__content {
	padding: 16px 1em;
}
@media (prefers-reduced-motion: reduce) {
	.node--type-entity-descriptive-record-edr .edr-accordion__header::after {
		transition: none;
	}
}
/* Items: A-Z, same grid rules as the Timeline events (1 column for a
   single item, 2 columns otherwise). */
.node--type-entity-descriptive-record-edr .edr-accordion__content .view-content {
	--items-gap: 32px;
	--items-cols: 2;
	display: grid;
	gap: 8px var(--items-gap);
	grid-template-columns: repeat(auto-fit, minmax(max(14rem, (100% - (var(--items-cols) - 1) * var(--items-gap)) / var(--items-cols)), 1fr));
}
.node--type-entity-descriptive-record-edr .view-edr-display-affiliations .views-field,
.node--type-entity-descriptive-record-edr .view-edr-display-affiliations .field-content {
	padding-top: 0 !important;
}
.node--type-entity-descriptive-record-edr .view-edr-display-affiliations .field-content {
	font-size: 16px;
	line-height: 24px;
}

/* Contributions (edr_display_contributions): a bibliography of the items'
   citations (site CSL style, as on each item's About tab), sorted A-Z by the
   leaf_citation_field. MLA works-cited layout: hanging indent. */
.node--type-entity-descriptive-record-edr .edr-bibliography {
	list-style: none;
	margin: 0;
	padding: 0;
}
.node--type-entity-descriptive-record-edr .edr-bibliography__item + .edr-bibliography__item {
	margin-top: 12px;
}
.node--type-entity-descriptive-record-edr .edr-bibliography .csl-entry,
.node--type-entity-descriptive-record-edr .view-edr-display-sources .csl-entry {
	padding-left: 2em;
	text-indent: -2em;
	font-size: 16px;
	line-height: 24px;
	overflow-wrap: anywhere;               /* long item URLs */
}

/* Contributors line in the gallery caption.
   Figma: Lato Light 14, -0.28px. Already #000, so Regular (400) instead of
   Light is what makes it read darker. */
.node--type-entity-descriptive-record-edr .edr-gallery__contributors {
	font-size: 14px;
	font-weight: 400;
	line-height: normal;
	letter-spacing: -0.02em;
	color: var(--cwrc-black);
}

/* Sources (edr_display_sources): internal sources as linked citations,
   formatted like Contributions (above); external ones as a link + icon. */
.node--type-entity-descriptive-record-edr .view-edr-display-sources {
	font-size: 16px;
	line-height: 24px;
}
.node--type-entity-descriptive-record-edr .view-edr-display-sources .edr-source + .edr-source,
.node--type-entity-descriptive-record-edr .view-edr-display-sources .views-row:has(.edr-source) ~ .views-row .edr-source {
	margin-top: 12px;
}
.node--type-entity-descriptive-record-edr .view-edr-display-sources .edr-source a::after {
	display: none !important;
}

/* ---------- Small screens: everything stacks in one column ---------- */
@media (max-width: 767.98px) {
	.node--type-entity-descriptive-record-edr .block-field-blocknodeentity-descriptive-record-edrtitle h2 {
		font-size: 28px;
	}
	.node--type-entity-descriptive-record-edr .node__content > .bs-bg-light .layout > [class*="col-"] + [class*="col-"] {
		margin-top: 16px;
	}
	.node--type-entity-descriptive-record-edr .view-edr-display-edit .field-group-footer-button {
		text-align: left;
	}
	.node--type-entity-descriptive-record-edr .bs-bg-light td:first-child {
		min-width: 140px;
	}
}