/* Sargassum Directory — styles for the plugin's shortcodes (includes/ui.php) and, further
   down, the directory page (intro band + explorer).
   Colours come from the Elementor kit globals (--e-global-color-*); the per-type tints and
   inks below are the design's badge pairs, which the kit doesn't hold. */

:root {
	--sd-expert-tint: #E7F0F9;  --sd-expert-ink: #15528D;
	--sd-group-tint: #F0EAF8;   --sd-group-ink: #5D3A8B;
	--sd-project-tint: #E2F3F0; --sd-project-ink: #0B6A5F;
	--sd-private-tint: #FBF0E2; --sd-private-ink: #8A4F0F;
	--sd-public-tint: #F9E8EE;  --sd-public-ink: #8F2A48;
}

.sd-type-expert           { --sd-tint: var(--sd-expert-tint);  --sd-ink: var(--sd-expert-ink);  --sd-color: var(--e-global-color-texpert, #1C64AB); }
.sd-type-research-group   { --sd-tint: var(--sd-group-tint);   --sd-ink: var(--sd-group-ink);   --sd-color: var(--e-global-color-tgroup, #7B4FB2); }
.sd-type-research-project { --sd-tint: var(--sd-project-tint); --sd-ink: var(--sd-project-ink); --sd-color: var(--e-global-color-tproject, #0E8A7B); }
.sd-type-private-actor    { --sd-tint: var(--sd-private-tint); --sd-ink: var(--sd-private-ink); --sd-color: var(--e-global-color-tprivate, #C2741A); }
.sd-type-public-actor     { --sd-tint: var(--sd-public-tint);  --sd-ink: var(--sd-public-ink);  --sd-color: var(--e-global-color-tpublic, #B43A5E); }

.sd-icon { flex: none; display: block; }

/* Avatar: initials or photo for people, type icon for organisations */
.sd-avatar {
	flex: none;
	width: var(--sd-avatar, 44px);
	height: var(--sd-avatar, 44px);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: var(--sd-tint);
	color: var(--sd-ink);
	font-size: calc(var(--sd-avatar, 44px) * .32);
	font-weight: 700;
	line-height: 1;
}
.sd-avatar--person { border-radius: 50%; }
.sd-avatar--org { border-radius: var(--radius-input, 4px); }
.sd-avatar__img { width: 100%; height: 100%; object-fit: cover; }

/* .elementor-shortcode prefix: beats the kit's paragraph spacing (.elementor-kit-N p) */
.sd-subtitle,
.elementor-shortcode .sd-subtitle {
	margin: 2px 0 0;
	font-size: 13px;
	line-height: 1.4;
	color: var(--e-global-color-muted, #5A6B7B);
}

/* Type badge, status pill and place on one wrapping row */
.sd-badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
}
.sd-badge,
.sd-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 2px 8px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
	white-space: nowrap;
}
.sd-badge { border-radius: var(--radius-button, 3px); background: var(--sd-tint); color: var(--sd-ink); }
.sd-status { border-radius: 10px; gap: 5px; }
.sd-status--ongoing { background: #E5F3EB; color: var(--e-global-color-success, #1E6B43); --sd-color: var(--e-global-color-ongoing, #2F8F5B); }
.sd-status--past { background: #EEF1F3; color: #4E5B66; --sd-color: var(--e-global-color-past, #7C8995); }
.sd-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sd-color); flex: none; }
.sd-status .sd-dot { width: 6px; height: 6px; }

.sd-place {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12.5px;
	color: var(--e-global-color-muted, #5A6B7B);
}

/* Fact rows (popup, cards, profiles) */
.sd-facts {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 7px;
	font-size: 13px;
	line-height: 1.4;
	color: var(--e-global-color-text, #3A4D5C);
}
.sd-facts li { display: flex; align-items: flex-start; gap: 8px; margin: 0; }
.sd-facts .sd-icon { margin-top: 2px; color: var(--e-global-color-muted, #5A6B7B); }

.sd-tags {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}
.sd-tag {
	margin: 0;
	padding: 2px 7px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--e-global-color-text, #3A4D5C);
	background: var(--e-global-color-tint, #F2F6F9);
	border: 1px solid #DCE4EA;
	border-radius: var(--radius-button, 3px);
}

/* Icon-only link (website), 40px target */
.sd-icon-link {
	flex: none;
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--e-global-color-lines, #8396A6);
	border-radius: var(--radius-button, 3px);
	color: var(--e-global-color-primary, #1C64AB);
}
.sd-icon-link:hover { border-color: var(--e-global-color-primary, #1C64AB); background: #EEF5FB; }
.sd-icon-link--quiet { width: 36px; height: 36px; border-color: transparent; }

/* Listing names are links but read as headings: ink, underline on hover/focus */
.sd-row .elementor-heading-title a,
.sd-card .elementor-heading-title a { color: inherit; text-decoration: none; }
.sd-row .elementor-heading-title a:hover,
.sd-card .elementor-heading-title a:hover,
.sd-row .elementor-heading-title a:focus-visible,
.sd-card .elementor-heading-title a:focus-visible { text-decoration: underline; }

/* In lists, popups and cards the subtitle stays within two lines */
.sd-row .sd-subtitle,
.sd-popup .sd-subtitle,
.sd-card .sd-subtitle {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* =====================================================================================
   Site header and footer (Theme Builder templates, build/phase6/chrome.php)
   ===================================================================================== */

.sd-brand { display: inline-flex; align-items: center; gap: 18px; text-decoration: none; }
.sd-brand__hub { display: flex; flex-direction: column; line-height: 1; }
.sd-brand__name {
	font-size: 24px;
	font-weight: 800;
	letter-spacing: .01em;
	text-transform: uppercase;
	color: var(--e-global-color-primary, #1C64AB);
}
.sd-brand__sub {
	margin-top: 2px;
	font-size: 15.5px;
	font-weight: 400;
	letter-spacing: .075em;
	text-transform: uppercase;
	color: #3D74AE;
}
.sd-brand__dir {
	padding: 6px 0 6px 18px;
	border-left: 1px solid #D5DEE5;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--e-global-color-tealtext, #2F6E73);
}
.sd-brand:hover .sd-brand__name { color: var(--e-global-color-hover, #114875); }
.sd-brand--footer .sd-brand__name { font-size: 20px; }
.sd-brand--footer .sd-brand__sub { font-size: 13px; }

/* menu items carry inline icons (external link, plus) in their titles */
.sd-header .sd-header__nav .elementor-item .sd-icon { flex: none; display: inline-block; }
.sd-header .sd-header__nav .elementor-nav-menu--main .elementor-item { gap: 6px; }
.sd-header .sd-header__nav .elementor-nav-menu--dropdown .elementor-item { gap: 8px; }
.sd-header .sd-header__nav .elementor-nav-menu--dropdown {
	border-top: 1px solid var(--e-global-color-divider, #E1E8ED);
	box-shadow: 0 10px 20px rgba(15, 47, 77, .14);
}
/* "Join the directory" is the menu's last item, shown as the primary button on desktop */
.sd-header .sd-header__nav .elementor-nav-menu--main .menu-item.sd-menu-join > a.elementor-item,
.sd-header .sd-header__nav .elementor-nav-menu--main .menu-item.sd-menu-join > a.elementor-item:is(:hover, :focus, .elementor-item-active) {
	gap: 8px;
	padding: 13px 20px;
	border-radius: var(--radius-button, 3px);
	background: var(--e-global-color-primary, #1C64AB);
	color: #fff;
	letter-spacing: .05em;
}
.sd-header .sd-header__nav .elementor-nav-menu--main .menu-item.sd-menu-join > a.elementor-item:hover { background: var(--e-global-color-hover, #114875); }
.sd-header .sd-header__nav .elementor-nav-menu--main .menu-item.sd-menu-join > a.elementor-item::after { content: none; }

.sd-footer .sd-footer__notewrap { flex: 1 1 420px; }
.sd-footer p.sd-footer__note { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--e-global-color-secondary, #005289); }
.sd-footer .sd-footer__funders {
	display: flex;
	align-items: center;
	height: 40px;
	padding: 0 16px;
	border: 1px dashed #A9B8C4;
	font-size: 12px;
	color: var(--e-global-color-muted, #5A6B7B);
}
.sd-socket p.sd-socket__copy { margin: 0; font-size: 12.5px; color: #E2EDF6; }
.sd-socket .sd-socket__links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.sd-socket .sd-socket__links a { font-size: 12.5px; color: #E2EDF6; text-decoration: underline; text-underline-offset: 3px; }
.sd-socket .sd-socket__links a:hover { color: #fff; }

@media (max-width: 767px) {
	.sd-brand { gap: 12px; }
	.sd-brand__name { font-size: 18px; }
	.sd-brand__sub { font-size: 11.5px; }
	.sd-brand__dir { padding-left: 12px; font-size: 10.5px; letter-spacing: .18em; }
}

/* =====================================================================================
   Directory page: intro band, then the explorer (filters + list on the left, map on the
   right). Markup: build/phase5/page.php. Behaviour: directory.js.
   This file loads after the Elementor kit (ui.php, priority 100) but before JetSmartFilters
   and Leaflet, so rules for their markup carry at least one class more than theirs.
   ===================================================================================== */

.sd-band,
.sd-explorer {
	--d-ink: var(--e-global-color-ink, #23384A);
	--d-text: var(--e-global-color-text, #3A4D5C);
	--d-muted: var(--e-global-color-muted, #5A6B7B);
	--d-lines: var(--e-global-color-lines, #8396A6);
	--d-divider: var(--e-global-color-divider, #E1E8ED);
	--d-rule: #EDF1F4;
	--d-bar: #F7F9FB;
	--d-primary: var(--e-global-color-primary, #1C64AB);
	--d-hover: var(--e-global-color-hover, #114875);
	--d-navy: var(--e-global-color-socket, #0F5187);
	--d-teal: var(--e-global-color-tealtext, #2F6E73);
	--d-shadow: 0 2px 8px rgba(15, 47, 77, .18);
}

/* The kit styles every <button> as a primary button, and again on :hover/:focus. Buttons here
   start neutral: ":is(*, :hover, :focus)" matches every state with a pseudo-class's weight, so
   this outranks the kit's button:hover without !important. Component rules below use
   ".sd-explorer button.x" (same weight, later) and add one class for their own states. */
.sd-band button:is(*, :hover, :focus),
.sd-explorer button:is(*, :hover, :focus) {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: inherit;
	font: inherit;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
}

.sd-explorer [hidden] { display: none !important; }

/* ---------- intro band ---------- */

.sd-band .sd-skips { position: absolute; left: 0; top: 0; width: 0; height: 0; margin: 0; }
/* out of sight until focused, then pinned to the top-left corner of the window */
.sd-band a.sd-skip {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.sd-band a.sd-skip:focus {
	position: fixed;
	left: 12px;
	top: 12px;
	z-index: 10001;
	width: auto;
	height: auto;
	padding: 12px 16px;
	overflow: visible;
	clip-path: none;
	border-radius: var(--radius-button, 3px);
	background: var(--d-navy);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.sd-band p.sd-band-note {
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 400px;
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #D6E6F2;
}
.sd-band .sd-band-note svg { flex: none; }
.sd-band .sd-band-note a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.sd-band .sd-band-note a:hover { color: #fff; text-decoration-thickness: 2px; }

/* ---------- explorer layout ---------- */

.sd-explorer {
	/* the rest of the window below the site header and the intro band: directory.js measures
	   where the explorer starts (--sd-explorer-top); 153px is that offset on desktop, for the
	   first paint. Never shorter than 560px. */
	height: max(560px, calc(100vh - var(--sd-explorer-top, 153px)));
	height: max(560px, calc(100svh - var(--sd-explorer-top, 153px)));
	border-bottom: 1px solid var(--d-divider);
}
.sd-explorer > .e-con.sd-panel {
	--width: 420px;
	width: 420px;
	flex: 0 0 420px;
	min-height: 0;
	border-right: 1px solid var(--d-divider);
	background: #fff;
}
.sd-explorer .sd-panel > .e-con:not(.sd-results) { flex: none; }
.sd-explorer .sd-panel > .e-con.sd-results {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: #B9C7D2 transparent;
}
.sd-explorer > .e-con.sd-map {
	--width: auto;
	position: relative;
	width: auto;
	flex: 1 1 auto;
	min-width: 0;
	min-height: 0;
	background: #D8E7EF;
}

/* ---------- filter labels and native inputs ---------- */

.sd-explorer .jet-filter-label,
.sd-explorer .sd-flabel {
	display: block;
	margin: 0 0 8px;
	font-size: 11.5px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--d-ink);
}

/* JetSmartFilters hides the real inputs (display:none). Keep them for keyboard and screen
   readers, out of sight; the label around each one still takes the clicks. */
.sd-explorer .jet-checkboxes-list .jet-checkboxes-list__item .jet-checkboxes-list__input,
.sd-explorer .jet-radio-list .jet-radio-list__item .jet-radio-list__input {
	display: block;
	visibility: visible;
	position: absolute;
	left: 0;
	top: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}
.sd-explorer .jet-checkboxes-list__input:focus-visible + .jet-checkboxes-list__button,
.sd-explorer .jet-radio-list__input:focus-visible + .jet-radio-list__button {
	outline: 2px solid var(--d-primary);
	outline-offset: 2px;
}
.sd-explorer .jet-checkboxes-list-wrapper,
.sd-explorer .jet-radio-list-wrapper,
.sd-explorer .jet-radio-list-wrapper fieldset {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}
.sd-explorer .jet-checkboxes-list__row,
.sd-explorer .jet-radio-list__row { margin: 0; padding: 0; }

/* ---------- search ---------- */

.sd-explorer .jet-search-filter__input-wrapper { position: relative; }
.sd-explorer .jet-search-filter .jet-search-filter__input {
	width: 100%;
	height: 44px;
	box-sizing: border-box;
	padding: 0 40px 0 42px;
	border: 1px solid var(--d-lines);
	border-radius: var(--radius-button, 3px);
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235A6B7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 14px 50% / 18px 18px;
	font-family: inherit;
	font-size: 14px;
	color: var(--d-ink);
}
.sd-explorer .jet-search-filter .jet-search-filter__input::placeholder { color: var(--d-muted); opacity: 1; }
.sd-explorer .jet-search-filter .jet-search-filter__input:hover { border-color: var(--d-primary); }
.sd-explorer .jet-search-filter .jet-search-filter__input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; } /* JetSmartFilters has its own clear */
.sd-explorer .jet-search-filter .jet-search-filter__input-clear,
.sd-explorer .jet-search-filter .jet-search-filter__input-loading { left: auto; right: 10px; color: var(--d-muted); }
.sd-explorer .jet-search-filter .jet-search-filter__input-clear svg { width: 14px; height: 14px; }

/* ---------- actor type chips ---------- */

.sd-explorer .sd-chips .jet-smart-filters-checkboxes {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: baseline;
	column-gap: 12px;
}
.sd-explorer .sd-chips .jet-checkboxes-list { grid-column: 1 / -1; }
.sd-explorer .sd-chips .jet-checkboxes-list-wrapper { display: flex; flex-wrap: wrap; gap: 6px; }
.sd-explorer .sd-chips .jet-checkboxes-list__item .jet-checkboxes-list__button {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	width: auto;
	min-height: 36px;
	box-sizing: border-box;
	padding: 0 11px;
	border: 1px solid var(--d-lines);
	border-radius: var(--radius-button, 3px);
	background: #fff;
	color: var(--d-text);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	transition: background-color .15s, border-color .15s;
}
/* type dot; the type colours come from ui.php (keyed by the term id in each input) */
.sd-explorer .sd-chips .jet-checkboxes-list__button::before {
	content: "";
	flex: none;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--sd-color, #9AA8B4);
}
.sd-explorer .sd-chips .jet-checkboxes-list__item .jet-checkboxes-list__decorator { display: none; }
.sd-explorer .sd-chips .jet-checkboxes-list__item:hover .jet-checkboxes-list__button { border-color: var(--d-primary); }
.sd-explorer .sd-chips .jet-checkboxes-list__item .jet-checkboxes-list__input:checked + .jet-checkboxes-list__button {
	border-color: var(--sd-color);
	background: var(--sd-tint);
	color: var(--sd-ink);
}
/* once some types are ticked, the unticked ones are out of the results: grey dot */
.sd-explorer .sd-chips:has(input:checked) .jet-checkboxes-list__input:not(:checked) + .jet-checkboxes-list__button::before { background: #9AA8B4; }
.sd-explorer .sd-chips .jet-filters-counter { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
/* Types combine with OR, so adding one is always possible: JetSmartFilters' "disable" rule
   (zero count → pointer-events:none) only greys the chip. Once some types are ticked, the
   indexer counts the others within the current results (always 0), so those counters go. */
.sd-explorer .sd-chips .jet-filter-row-disable { opacity: .45; pointer-events: auto; }
.sd-explorer .sd-chips:has(input:checked) .jet-filter-row-disable { opacity: 1; }
.sd-explorer .sd-chips:has(input:checked) .jet-checkboxes-list__input:not(:checked) + .jet-checkboxes-list__button .jet-filters-counter { display: none; }

.sd-explorer button.sd-linkbtn {
	padding: 4px 0;
	color: var(--d-primary);
	font-size: 12.5px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.sd-explorer button.sd-linkbtn:hover { color: var(--d-hover); }

/* ---------- status: segmented control (Ongoing · Past · All) ---------- */

.sd-explorer .sd-segmented .jet-radio-list-wrapper fieldset {
	display: flex;
	height: 38px;
	box-sizing: border-box;
	border: 1px solid var(--d-lines);
	border-radius: var(--radius-button, 3px);
	overflow: hidden;
}
.sd-explorer .sd-segmented .jet-radio-list__row { display: flex; }
.sd-explorer .sd-segmented .jet-radio-list__row:first-of-type { order: 1; } /* "All" comes first in the markup */
.sd-explorer .sd-segmented .jet-radio-list__item { display: flex; height: 100%; }
.sd-explorer .sd-segmented .jet-radio-list__item .jet-radio-list__button {
	display: flex;
	align-items: center;
	height: 100%;
	box-sizing: border-box;
	padding: 0 13px;
	background: #fff;
	color: var(--d-ink);
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	box-shadow: -1px 0 0 var(--d-lines); /* divider; the first segment's is clipped by the frame */
}
.sd-explorer .sd-segmented .jet-radio-list__item .jet-radio-list__decorator { display: none; }
.sd-explorer .sd-segmented .jet-radio-list__item:hover .jet-radio-list__button { background: var(--e-global-color-tint, #F2F6F9); }
.sd-explorer .sd-segmented .jet-radio-list__item .jet-radio-list__input:checked + .jet-radio-list__button { background: var(--d-primary); color: #fff; }
.sd-explorer .sd-segmented .jet-radio-list__input:focus-visible + .jet-radio-list__button { outline: 2px solid currentColor; outline-offset: -5px; }

/* ---------- tags: one button, a panel with the three tag filters ---------- */

.sd-explorer .e-con.sd-tags {
	--width: auto;
	position: relative;
	width: auto;
	flex: 1 1 150px;
	min-width: 0;
}
.sd-explorer button.sd-tagbtn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	height: 38px;
	box-sizing: border-box;
	padding: 0 12px;
	border: 1px solid var(--d-lines);
	border-radius: var(--radius-button, 3px);
	background: #fff;
	color: var(--d-ink);
	font-size: 13px;
	font-weight: 500;
}
.sd-explorer button.sd-tagbtn:hover { border-color: var(--d-primary); }
.sd-explorer button.sd-tagbtn[aria-disabled="true"] { border-color: var(--d-divider); background: var(--d-bar); color: var(--d-muted); cursor: not-allowed; }
.sd-explorer .sd-tagbtn span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sd-explorer .sd-tagbtn svg { flex: none; color: var(--d-muted); transition: transform .15s; }
.sd-explorer .sd-tagbtn[aria-expanded="true"] svg { transform: rotate(180deg); }

/* without JS the panel just stays open below the button */
.sd-tags-ready .sd-explorer .e-con.sd-tagpanel {
	--width: auto;
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	z-index: 60;
	width: min(320px, calc(100vw - 32px));
	max-height: min(70vh, 580px);
	flex-wrap: nowrap; /* a wrapping column would push the footer into a second column */
	overflow-y: auto;
	border: 1px solid #C9D5DE;
	border-radius: var(--radius-input, 4px);
	background: #fff;
	box-shadow: 0 12px 28px rgba(15, 47, 77, .18);
}
.sd-tags-ready .sd-explorer .e-con.sd-tagpanel:not(.is-open) { display: none; }
.sd-explorer .sd-tagpanel > .elementor-widget { flex-shrink: 0; }

.sd-explorer p.sd-tagnote { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--d-muted); }

.sd-explorer .sd-tagfilter.sd-off { display: none; }
.sd-explorer .sd-tagfilter[data-sd-type="expert"] { --sd-tag-ink: var(--sd-expert-ink); }
.sd-explorer .sd-tagfilter[data-sd-type="private-actor"] { --sd-tag-ink: var(--sd-private-ink); }
.sd-explorer .sd-tagfilter[data-sd-type="public-actor"] { --sd-tag-ink: var(--sd-public-ink); }
.sd-explorer .sd-tagfilter .jet-filter-label {
	margin-bottom: 4px;
	font-size: 12px;
	letter-spacing: 0;
	text-transform: none;
	color: var(--sd-tag-ink, var(--d-ink));
}
.sd-explorer .sd-tagfilter .jet-checkboxes-list__item .jet-checkboxes-list__button {
	align-items: center;
	gap: 10px;
	min-height: 32px;
	color: var(--d-ink);
	font-size: 13.5px;
	line-height: 1.3;
}
.sd-explorer .sd-tagfilter .jet-checkboxes-list__item .jet-checkboxes-list__decorator {
	width: 17px;
	height: 17px;
	min-width: 17px;
	min-height: 17px;
	box-sizing: border-box;
	margin: 0;
	border: 1px solid var(--d-lines);
	border-radius: 3px;
	background: #fff;
}
.sd-explorer .sd-tagfilter .jet-checkboxes-list__item .jet-checkboxes-list__input:checked + .jet-checkboxes-list__button .jet-checkboxes-list__decorator {
	border-color: var(--d-primary);
	background: var(--d-primary);
}
.sd-explorer .sd-tagfilter .jet-checkboxes-list__item .jet-checkboxes-list__input:checked + .jet-checkboxes-list__button .jet-checkboxes-list__checked-icon { opacity: 1; font-size: 11px; }
.sd-explorer .sd-tagfilter .jet-filters-counter { margin-left: auto; padding-left: 8px; font-size: 12px; color: var(--d-muted); font-variant-numeric: tabular-nums; }

.sd-explorer .sd-tagfoot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 10px;
	border-top: 1px solid #E8EEF2;
}
.sd-explorer .sd-tagfoot button.sd-linkbtn { padding: 8px 0; color: var(--d-muted); text-decoration: none; }
.sd-explorer .sd-tagfoot button.sd-linkbtn:hover { color: var(--d-ink); text-decoration: underline; }
.sd-explorer button.sd-btn {
	padding: 9px 16px;
	border-radius: var(--radius-button, 3px);
	background: var(--d-primary);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
}
.sd-explorer button.sd-btn:hover { background: var(--d-hover); }

/* ---------- results bar, active filters, list ---------- */

.sd-explorer p.sd-count { margin: 0; font-size: 13.5px; color: var(--d-text); font-variant-numeric: tabular-nums; }
.sd-explorer p.sd-count strong { font-weight: 700; color: var(--d-ink); }
.sd-explorer .sd-sort .jet-sorting { display: flex; align-items: center; gap: 6px; }
.sd-explorer .sd-sort .jet-sorting-label { margin: 0; font-size: 12.5px; color: var(--d-muted); }
.sd-explorer .sd-sort .jet-sorting .jet-sorting-select {
	width: auto;
	height: 32px;
	padding: 0 6px;
	border: 1px solid var(--d-lines);
	border-radius: var(--radius-button, 3px);
	background-color: #fff;
	color: var(--d-ink);
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 600;
}

/* the strip disappears while no filter is active */
.sd-explorer .e-con.sd-active:not(:has(.elementor-widget:not(.hide-widget))) { display: none; }
.sd-explorer .jet-active-tags__list { display: flex; flex-wrap: wrap; gap: 6px; }
.sd-explorer .jet-active-tags .jet-active-tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	height: 30px;
	box-sizing: border-box;
	margin: 0;
	padding: 0 28px 0 10px;
	border: 1px solid #9CC0E3;
	border-radius: 15px;
	background: #EEF5FB;
	color: #15528D;
	font-size: 12.5px;
	font-weight: 600;
}
.sd-explorer .jet-active-tags .jet-active-tag:hover { border-color: var(--d-primary); }
.sd-explorer .jet-active-tags .jet-active-tag__label { padding: 0; font-weight: 500; }
.sd-explorer .jet-active-tags .jet-active-tag__remove { top: 50%; right: 10px; transform: translateY(-50%); font-size: 14px; }
.sd-explorer button.jet-remove-all-filters__button {
	padding: 6px 4px;
	color: var(--d-text);
	font-size: 12.5px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.sd-explorer button.jet-remove-all-filters__button:hover { color: var(--d-ink); }

.sd-explorer .sd-list .jet-listing-grid__item { transition: background-color .15s; }
.sd-explorer .sd-list .jet-listing-grid__item:hover { background: #F5F8FA; }
.sd-explorer .sd-list .jet-listing-not-found { padding: 28px 24px; font-size: 14px; line-height: 1.5; color: var(--d-text); }

/* ---------- map ---------- */

.sd-explorer .sd-map .sd-mapwidget { flex: 1 1 auto; width: 100%; min-height: 0; }
.sd-explorer .sd-mapwidget > .elementor-widget-container { height: 100%; }
/* the widget's height control (760px) is for the editor; on the page the map fills the explorer */
.sd-explorer .sd-mapwidget .jet-map-listing { height: 100% !important; }
.sd-explorer .sd-mapwidget .leaflet-container { background: #D8E7EF; font: inherit; }
.sd-explorer .sd-mapwidget .leaflet-control-attribution a { color: var(--d-primary); } /* only here: the popup's button keeps its own colours */

/* zoom buttons top-right, as in the design (the region bar takes the top-left) */
.sd-explorer .sd-mapwidget .leaflet-top.leaflet-left { left: auto; right: 0; }
.sd-explorer .sd-mapwidget .leaflet-top.leaflet-left .leaflet-control { margin: 16px 16px 0 0; }
.sd-explorer .sd-mapwidget .leaflet-bar { border: 0; border-radius: var(--radius-button, 3px); box-shadow: var(--d-shadow); overflow: hidden; }
.sd-explorer .sd-mapwidget .leaflet-bar a {
	width: 42px;
	height: 42px;
	line-height: 42px;
	border-bottom-color: var(--d-divider);
	color: var(--d-ink);
	font-size: 20px;
}
.sd-explorer .sd-mapwidget .leaflet-bar a:hover { background: var(--e-global-color-tint, #F2F6F9); color: var(--d-ink); }

/* pins: the image is centred on the point; lift it so the tip sits on the point */
.sd-explorer .sd-mapwidget .jet-map-marker-image {
	display: block;
	width: 34px;
	height: 44px;
	max-width: none;
	transform: translateY(-22px);
	transform-origin: 50% 100%;
	transition: transform .15s;
}
.sd-explorer .sd-mapwidget .leaflet-marker-icon:hover .jet-map-marker-image { transform: translateY(-22px) scale(1.12); }

/* clusters: navy discs with a soft halo (markercluster's default is green/yellow/orange) */
.sd-explorer .sd-mapwidget .marker-cluster { border-radius: 50%; background: rgba(15, 81, 135, .2); }
.sd-explorer .sd-mapwidget .marker-cluster div {
	width: 30px;
	height: 30px;
	box-sizing: border-box;
	margin: 5px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--d-navy);
	color: #fff;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 26px;
	text-align: center;
	box-shadow: 0 2px 6px rgba(15, 47, 77, .3);
	transition: transform .15s;
}
.sd-explorer .sd-mapwidget .marker-cluster span { line-height: 26px; }
.sd-explorer .sd-mapwidget .marker-cluster:hover div { transform: scale(1.08); }

/* popup (listing "Directory · map popup") */
.sd-explorer .sd-mapwidget .jet-map-box::after { content: none; }
.sd-explorer .sd-mapwidget .jet-map-box .leaflet-popup-content-wrapper {
	padding: 0;
	border-radius: var(--radius-card, 5px);
	box-shadow: 0 14px 34px rgba(15, 47, 77, .24), 0 2px 6px rgba(15, 47, 77, .12);
	overflow: hidden;
}
.sd-explorer .sd-mapwidget .jet-map-box .leaflet-popup-content { margin: 0; font-size: 13px; line-height: 1.4; }
.sd-explorer .sd-mapwidget .jet-map-box .leaflet-popup-tip { box-shadow: none; }
.sd-explorer .sd-mapwidget .jet-map-box a.leaflet-popup-close-button {
	top: 6px;
	right: 6px;
	z-index: 2;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius-button, 3px);
	color: var(--d-text);
	font-family: inherit;
	font-size: 22px;
	font-weight: 400;
	line-height: 1;
}
.sd-explorer .sd-mapwidget .jet-map-box a.leaflet-popup-close-button:hover { background: var(--e-global-color-tint, #F2F6F9); color: var(--d-ink); }

/* overlays on the map: region shortcuts (top-left) and the legend (bottom-left) */
.sd-explorer .sd-map > .sd-overlay {
	--container-widget-width: auto;
	position: absolute;
	z-index: 1000;
	width: auto;
	max-width: calc(100% - 32px);
	margin: 0;
}
/* pinned by left/right (Elementor forces max-width:100% on widgets); the bar inside shrinks to
   its buttons, and the empty rest of the strip lets clicks and drags through to the map */
.sd-explorer .sd-map > .sd-overlay--regions { left: 16px; right: 76px; top: 16px; pointer-events: none; }
.sd-explorer .sd-overlay--regions .sd-regions { display: flex; }
.sd-explorer .sd-map > .sd-overlay--legend { left: 16px; bottom: 20px; }

.sd-explorer .sd-regions__bar {
	display: inline-flex;
	pointer-events: auto;
	gap: 2px;
	max-width: 100%;
	box-sizing: border-box;
	padding: 4px;
	overflow-x: auto;
	scrollbar-width: none;
	border-radius: var(--radius-input, 4px);
	background: #fff;
	box-shadow: var(--d-shadow);
}
.sd-explorer .sd-regions__bar::-webkit-scrollbar { display: none; }
.sd-explorer .sd-regions button {
	flex: none;
	height: 34px;
	padding: 0 12px;
	border: 1px solid transparent;
	border-radius: var(--radius-button, 3px);
	background: #fff;
	color: var(--d-teal);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}
.sd-explorer .sd-regions button:hover { border-color: var(--d-teal); }
.sd-explorer .sd-regions button[aria-pressed="true"] { background: var(--d-teal); color: #fff; }

.sd-explorer .sd-legend {
	min-width: 190px;
	border-radius: var(--radius-input, 4px);
	background: #fff;
	box-shadow: 0 2px 10px rgba(15, 47, 77, .16);
}
.sd-explorer .sd-legend summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	height: 38px;
	padding: 0 14px;
	list-style: none;
	cursor: pointer;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--d-ink);
}
.sd-explorer .sd-legend summary::-webkit-details-marker { display: none; }
.sd-explorer .sd-legend summary::after {
	content: "";
	width: 7px;
	height: 7px;
	margin-top: -4px;
	border-right: 2px solid var(--d-muted);
	border-bottom: 2px solid var(--d-muted);
	transform: rotate(45deg);
}
.sd-explorer .sd-legend[open] summary::after { margin-top: 4px; transform: rotate(-135deg); }
.sd-explorer .sd-legend ul { display: flex; flex-direction: column; gap: 7px; margin: 0; padding: 0 14px 12px; list-style: none; }
.sd-explorer .sd-legend li { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 12.5px; color: var(--d-text); }
.sd-explorer .sd-legend img { flex: none; width: 14px; height: 18px; }
.sd-explorer .sd-legend li.sd-legend__cluster { margin-top: 2px; padding-top: 8px; border-top: 1px solid var(--d-rule); }
.sd-explorer .sd-legend__dot {
	flex: none;
	width: 16px;
	height: 16px;
	box-sizing: border-box;
	margin-left: -1px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--d-navy);
	box-shadow: 0 0 0 3px rgba(15, 81, 135, .22);
}

#dir-list:focus,
#dir-map:focus { outline: none; } /* skip-link targets: focus moves there, no ring around the region */

/* ---------- tablet and below: stacked, map first ---------- */

@media (max-width: 1024px) {
	.sd-explorer { height: auto; }
	.sd-explorer > .e-con.sd-map {
		order: -1;
		flex: none;
		width: 100%;
		height: clamp(320px, 55vh, 560px);
	}
	.sd-explorer > .e-con.sd-panel {
		--width: 100%;
		width: 100%;
		flex: none;
		border-right: 0;
	}
	.sd-explorer .sd-panel > .e-con.sd-results { flex: none; overflow: visible; }
}

@media (max-width: 767px) {
	.sd-explorer .sd-map > .sd-overlay--regions { left: 12px; right: 66px; top: 12px; }
	.sd-explorer .sd-mapwidget .leaflet-top.leaflet-left .leaflet-control { margin: 12px 12px 0 0; }
	.sd-explorer .sd-map > .sd-overlay--legend { display: none; }
}

/* ---------- search row; the sheet's own parts stay hidden outside mobile ---------- */

.sd-explorer .sd-searchrow > .sd-search { flex: 1 1 auto; min-width: 0; }
.sd-explorer .sd-filtersbtn-wrap,
.sd-explorer .sd-sheet-only { display: none; }
.sd-sheet-backdrop[hidden] { display: none; }
.sd-sheet-open,
.sd-sheet-open body { overflow: hidden; }

/* ---------- mobile: the filter panel becomes a sheet (directory.js adds .sd-sheet-ready) ---------- */

@media (max-width: 767px) {
	.sd-sheet-ready .sd-explorer .sd-filtersbtn-wrap { display: block; flex: none; }
	.sd-explorer button.sd-filtersbtn {
		display: flex;
		align-items: center;
		gap: 6px;
		height: 44px;
		box-sizing: border-box;
		padding: 0 12px;
		border: 1px solid var(--d-lines);
		border-radius: var(--radius-input, 4px);
		background: #fff;
		color: var(--d-ink);
		font-size: 13.5px;
		font-weight: 600;
	}
	.sd-explorer .sd-filtersbtn__n {
		min-width: 20px;
		height: 20px;
		box-sizing: border-box;
		padding: 0 6px;
		border-radius: 10px;
		background: var(--d-primary);
		color: #fff;
		font-size: 12px;
		line-height: 20px;
		text-align: center;
		font-variant-numeric: tabular-nums;
	}

	.sd-sheet-backdrop {
		position: fixed;
		inset: 0;
		z-index: 9999;
		background: rgba(15, 38, 58, .45);
	}
	.sd-sheet-ready .sd-explorer .e-con.sd-filterpanel {
		--width: auto;
		position: fixed;
		left: 0;
		right: 0;
		top: 44px;
		bottom: 0;
		z-index: 10000;
		width: auto;
		flex-wrap: nowrap;
		gap: 0;
		border-radius: 14px 14px 0 0;
		background: #fff;
		box-shadow: 0 -6px 24px rgba(15, 47, 77, .18);
	}
	.sd-sheet-ready .sd-explorer .e-con.sd-filterpanel:not(.is-open) { display: none; }
	.sd-sheet-ready .sd-explorer .sd-filterpanel > .sd-sheet-only { display: block; flex: none; }

	.sd-explorer .sd-sheethead {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 8px 6px 8px 20px;
		border-bottom: 1px solid var(--d-divider);
	}
	.sd-explorer h2.sd-sheettitle {
		margin: 0;
		font-size: 17px;
		font-weight: 700;
		line-height: 1.3;
		letter-spacing: 0;
		text-transform: none;
		color: var(--d-ink);
	}
	.sd-explorer h2.sd-sheettitle:focus { outline: none; } /* focused on open so screen readers start at the title */
	.sd-explorer button.sd-sheetclose {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		color: var(--d-text);
	}
	.sd-sheet-ready .sd-explorer .e-con.sd-sheetbody {
		flex: 1 1 auto;
		flex-wrap: nowrap;
		min-height: 0;
		gap: 26px;
		padding: 18px 20px 24px;
		overflow-y: auto;
	}
	.sd-explorer .sd-sheetfoot {
		display: flex;
		gap: 10px;
		padding: 12px 16px 18px;
		border-top: 1px solid var(--d-divider);
		background: #fff;
	}
	.sd-explorer button.sd-btn-outline {
		height: 50px;
		padding: 0 18px;
		border: 1px solid var(--d-lines);
		border-radius: var(--radius-button, 3px);
		background: #fff;
		color: var(--d-ink);
		font-size: 13px;
		font-weight: 700;
		letter-spacing: .05em;
		text-transform: uppercase;
	}
	.sd-explorer .sd-sheetfoot button.sd-sheetshow {
		display: flex;
		flex: 1 1 auto;
		align-items: center;
		justify-content: center;
		gap: .3em;
		height: 50px;
		font-size: 13px;
		font-variant-numeric: tabular-nums;
	}

	/* actor types: rows with a checkbox and a pin swatch, as in the design */
	.sd-sheet-ready .sd-filterpanel .sd-chips .jet-checkboxes-list-wrapper { flex-direction: column; flex-wrap: nowrap; gap: 0; }
	.sd-sheet-ready .sd-filterpanel .sd-chips .jet-checkboxes-list__item .jet-checkboxes-list__button,
	.sd-sheet-ready .sd-filterpanel .sd-chips .jet-checkboxes-list__item .jet-checkboxes-list__input:checked + .jet-checkboxes-list__button {
		display: flex;
		gap: 12px;
		width: 100%;
		min-height: 48px;
		padding: 0;
		border: 0;
		border-bottom: 1px solid var(--d-rule);
		border-radius: 0;
		background: none;
		color: var(--d-ink);
		font-size: 15px;
		font-weight: 500;
	}
	.sd-sheet-ready .sd-filterpanel .sd-chips .jet-checkboxes-list__item .jet-checkboxes-list__input + .jet-checkboxes-list__button::before {
		width: 11px;
		height: 11px;
		border-radius: 50% 50% 50% 0;
		background: var(--sd-color);
		transform: rotate(-45deg);
	}
	.sd-sheet-ready .sd-filterpanel .jet-checkboxes-list .jet-checkboxes-list__item .jet-checkboxes-list__decorator {
		display: block;
		order: -1;
		width: 22px;
		height: 22px;
		min-width: 22px;
		min-height: 22px;
		box-sizing: border-box;
		margin: 0;
		border: 1px solid var(--d-lines);
		border-radius: 3px;
		background: #fff;
	}
	.sd-sheet-ready .sd-filterpanel .jet-checkboxes-list .jet-checkboxes-list__item .jet-checkboxes-list__input:checked + .jet-checkboxes-list__button .jet-checkboxes-list__decorator {
		border-color: var(--d-primary);
		background: var(--d-primary);
	}
	.sd-sheet-ready .sd-filterpanel .jet-checkboxes-list .jet-checkboxes-list__item .jet-checkboxes-list__input:checked + .jet-checkboxes-list__button .jet-checkboxes-list__checked-icon { opacity: 1; font-size: 13px; }
	.sd-sheet-ready .sd-filterpanel .sd-chips .jet-filters-counter { margin-left: auto; font-size: 13px; font-weight: 400; color: var(--d-muted); }

	/* status: full-width segments */
	.sd-sheet-ready .sd-filterpanel .e-con.sd-statusrow { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 26px; }
	.sd-sheet-ready .sd-filterpanel .sd-segmented .jet-radio-list-wrapper fieldset { height: 46px; }
	.sd-sheet-ready .sd-filterpanel .sd-segmented .jet-radio-list__row { flex: 1 1 0; }
	.sd-sheet-ready .sd-filterpanel .sd-segmented .jet-radio-list__item { width: 100%; }
	.sd-sheet-ready .sd-filterpanel .sd-segmented .jet-radio-list__item .jet-radio-list__button { justify-content: center; width: 100%; font-size: 14px; }

	/* tags: the panel sits open in the sheet, without its button and "Done" */
	.sd-sheet-ready .sd-filterpanel .sd-tagbtn,
	.sd-sheet-ready .sd-filterpanel button[data-sd-tagdone] { display: none; }
	.sd-sheet-ready .sd-filterpanel .e-con.sd-tags:has(.sd-tagbtn[aria-disabled="true"]) { display: none; }
	.sd-sheet-ready .sd-explorer .sd-filterpanel .e-con.sd-tagpanel.e-flex {
		position: static;
		display: flex;
		width: auto;
		max-height: none;
		padding: 0;
		overflow: visible;
		border: 0;
		border-radius: 0;
		box-shadow: none;
	}
	.sd-sheet-ready .sd-filterpanel .sd-tagfilter .jet-checkboxes-list__item .jet-checkboxes-list__button { min-height: 44px; }
	.sd-sheet-ready .sd-filterpanel .sd-tagfoot { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
	.sd-explorer *,
	.sd-explorer *::before { transition: none !important; }
}

/* =====================================================================================
   Profile pages (Theme Builder singles, build/phase6/singles.php; shortcodes in
   includes/profile.php). Every root band carries .sd-profile.
   ===================================================================================== */

.sd-profile {
	--d-ink: var(--e-global-color-ink, #23384A);
	--d-text: var(--e-global-color-text, #3A4D5C);
	--d-muted: var(--e-global-color-muted, #5A6B7B);
	--d-lines: var(--e-global-color-lines, #8396A6);
	--d-divider: var(--e-global-color-divider, #E1E8ED);
	--d-primary: var(--e-global-color-primary, #1C64AB);
	--d-hover: var(--e-global-color-hover, #114875);
	--d-tint: var(--e-global-color-tint, #F2F6F9);
	--d-card-line: #DCE4EA;
}

/* section and box titles */
.sd-profile .sd-sectiontitle-w .elementor-heading-title,
.sd-profile h2.sd-sectiontitle {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--d-primary);
}
.sd-profile h2.sd-sectiontitle { margin-bottom: 16px; }
.sd-profile h2.sd-boxtitle {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--d-muted);
}

/* breadcrumb bar */
.sd-profile.sd-crumbsbar { background: #F7F9FB; border-bottom: 1px solid var(--d-divider); }
.sd-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 13px; }
.sd-profile a.sd-crumbs__back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--d-primary); text-decoration: none; }
.sd-profile a.sd-crumbs__back:hover { color: var(--d-hover); text-decoration: underline; }
.sd-crumbs__sep { width: 1px; height: 16px; background: #C9D5DE; }
.sd-crumbs__trail ol { display: flex; flex-wrap: wrap; gap: 0 6px; margin: 0; padding: 0; list-style: none; color: var(--d-muted); }
.sd-crumbs__trail li { margin: 0; }
.sd-crumbs__trail li + li::before { content: "/"; margin-right: 6px; color: #9AA8B4; }
.sd-profile .sd-crumbs__trail a { color: var(--d-muted); text-decoration: none; }
.sd-profile .sd-crumbs__trail a:hover { color: var(--d-ink); text-decoration: underline; }
.sd-crumbs__trail [aria-current] { font-weight: 600; color: var(--d-ink); }

/* hero */
.sd-profile.sd-hero { background: var(--d-tint); border-bottom: 1px solid var(--d-divider); }
.sd-profile .e-con.sd-hero__main { --width: auto; width: auto; flex: 999 1 480px; min-width: 0; }
.sd-profile .sd-hero__avatar,
.sd-profile .sd-hero__actions { --container-widget-width: auto; width: auto; }
.sd-profile .sd-hero__avatar { flex: none; }
.sd-profile .sd-hero__actions { flex: 0 1 260px; }
.sd-hero__avatar .sd-avatar { border: 4px solid #fff; box-shadow: 0 4px 16px rgba(15, 47, 77, .12); }
.sd-profile .e-con.sd-hero__map { --width: auto; width: auto; flex: 1 1 360px; min-width: 0; }

.sd-profile .sd-profile__title .elementor-heading-title {
	margin: 0;
	font-size: clamp(28px, calc(16px + 1.6vw), 40px);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: .01em;
	color: var(--d-ink);
}
.sd-profile p.sd-lead { margin: 0; font-size: 17px; line-height: 1.5; color: var(--d-text); }
.sd-profile p.sd-lead--intro { max-width: 52ch; font-size: clamp(16px, calc(13px + .4vw), 19px); line-height: 1.45; }
.sd-profile p.sd-ledby { margin: 10px 0 0; font-size: 15px; line-height: 1.5; color: var(--d-text); }
.sd-profile p.sd-ledby strong { font-weight: 600; color: var(--d-ink); }
.sd-hero .sd-badges { gap: 8px 14px; }
.sd-hero .sd-badge,
.sd-hero .sd-status { padding: 4px 10px; font-size: 13px; }
.sd-hero .sd-tag { padding: 3px 9px; font-size: 13px; background: #fff; border-color: #C9D5DE; }
.sd-hero .sd-place { font-size: 14px; color: var(--d-text); }

/* buttons */
.sd-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.sd-actions--stack { flex-direction: column; margin-top: 0; }
.sd-actions__note { font-size: 12.5px; color: var(--d-muted); text-align: center; }
.sd-profile a.sd-btn-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	box-sizing: border-box;
	padding: 0 16px;
	border: 1px solid var(--d-primary);
	border-radius: var(--radius-button, 3px);
	background: var(--d-primary);
	color: #fff;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none;
}
.sd-profile a.sd-btn-link:hover { border-color: var(--d-hover); background: var(--d-hover); color: #fff; }
.sd-profile a.sd-btn-link--outline { background: #fff; color: var(--d-primary); }
.sd-profile a.sd-btn-link--outline:hover { background: #EEF5FB; color: var(--d-hover); }
.sd-profile a.sd-btn-link--block { display: flex; width: 100%; min-height: 44px; }

/* the kit styles every <button>; same ":is(*, :hover, :focus)" reset as the explorer */
.sd-profile button.sd-sharebtn:is(*, :hover, :focus) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid var(--d-lines);
	border-radius: var(--radius-button, 3px);
	background: #fff;
	color: var(--d-ink);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
}
.sd-profile button.sd-sharebtn:hover { border-color: var(--d-primary); }
.sd-actions .sd-sharebtn { min-height: 46px; }
.sd-share { display: flex; gap: 10px; }
.sd-share .sd-sharebtn { flex: 1 1 auto; }

/* mini-map card (hero figure or sidebar): a still map with the entry's pin */
.sd-profile .sd-mapcard { overflow: hidden; border: 1px solid var(--d-card-line); border-radius: var(--radius-input, 4px); background: #fff; }
.sd-minimap .jet-map-listing { pointer-events: none; background: #D8E7EF; }
.sd-minimap .leaflet-control-attribution { pointer-events: auto; }
.sd-minimap .leaflet-control-zoom { display: none; }
.sd-minimap .leaflet-container { font: inherit; }
.sd-minimap .jet-map-marker-image { display: block; width: 34px; height: 44px; max-width: none; transform: translateY(-22px); }
.sd-loccard { padding: 14px 18px 16px; }
.sd-profile p.sd-loccard__place { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--d-ink); }
.sd-profile a.sd-loccard__link { display: inline-flex; gap: 6px; margin-top: 8px; font-size: 13.5px; font-weight: 600; }

/* project timeline */
.sd-profile.sd-timelinebar { border-bottom: 1px solid var(--d-divider); }
.sd-profile.sd-timelinebar:not(:has(.sd-timeline)) { display: none; }
.sd-timeline { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.sd-timeline__end { display: flex; flex: none; flex-direction: column; gap: 3px; }
.sd-timeline__end--right { text-align: right; }
.sd-timeline__label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--d-muted); }
.sd-timeline__date { font-size: 15.5px; font-weight: 700; color: var(--d-ink); }
.sd-timeline__track { flex: 1 1 320px; min-width: 0; }
.sd-timeline__bar { position: relative; height: 8px; border-radius: 4px; background: var(--d-card-line); }
.sd-timeline__bar span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--e-global-color-tproject, #0E8A7B); }
.sd-timeline__bar i {
	position: absolute;
	top: 50%;
	width: 16px;
	height: 16px;
	box-sizing: border-box;
	margin: -8px 0 0 -8px;
	border: 3px solid var(--e-global-color-tproject, #0E8A7B);
	border-radius: 50%;
	background: #fff;
}
/* "Today" sits under the marker, the note on the line below it */
.sd-timeline__note { position: relative; margin-top: 6px; padding-top: 20px; font-size: 13px; line-height: 1.45; color: var(--d-muted); }
.sd-timeline__note:not(:has(.sd-timeline__today)) { padding-top: 4px; }
.sd-timeline__today { position: absolute; top: 0; transform: translateX(-50%); font-weight: 600; color: #0B6A5F; white-space: nowrap; }

/* main: content + aside */
.sd-profile .e-con.sd-profile-main__content { --width: auto; width: auto; flex: 999 1 560px; min-width: 0; }
.sd-profile .e-con.sd-profile-main__aside { --width: auto; width: auto; flex: 1 1 320px; min-width: 0; }
.sd-profile .sd-prose p { max-width: 68ch; font-size: 16px; line-height: 1.75; color: var(--d-text); }
.sd-profile .sd-prose p:last-child { margin-bottom: 0; }

.sd-affiliations { margin: 0; border: 1px solid var(--d-divider); border-radius: var(--radius-input, 4px); }
.sd-affiliations__main { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.sd-affiliations__main:not(:last-child) { border-bottom: 1px solid var(--d-divider); }
.sd-affiliations__icon {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: var(--radius-input, 4px);
	background: var(--d-tint);
	color: var(--d-primary);
}
.sd-affiliations dt { font-size: 13px; color: var(--d-muted); }
.sd-affiliations dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; color: var(--d-ink); }
.sd-affiliations__others { padding: 16px 18px; }
.sd-affiliations__others dt { margin-bottom: 10px; }
.sd-affiliations__others dd { margin: 0; font-weight: 400; }

.sd-chiplist { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sd-chiplist li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 6px 10px;
	border: 1px solid var(--d-card-line);
	border-radius: var(--radius-button, 3px);
	background: var(--d-tint);
	font-size: 14px;
	color: var(--d-ink);
}
.sd-chiplist .sd-icon { color: var(--d-muted); }

.sd-partners { margin: 0; padding: 0; list-style: none; border: 1px solid var(--d-divider); border-radius: var(--radius-input, 4px); }
.sd-partners li { display: flex; align-items: center; gap: 12px; margin: 0; padding: 13px 18px; border-bottom: 1px solid #EDF1F4; }
.sd-partners li:last-child { border-bottom: 0; }
.sd-partners .sd-partners__lead { padding-top: 14px; padding-bottom: 14px; border-bottom-color: var(--d-divider); background: #F7F9FB; }
.sd-partners__badge { flex: none; padding: 3px 8px; border-radius: var(--radius-button, 3px); background: #E2F3F0; color: #0B6A5F; font-size: 12px; font-weight: 700; }
.sd-partners__name { font-size: 15px; color: var(--d-ink); }
.sd-partners__lead .sd-partners__name { font-weight: 600; }
.sd-partners__place { margin-left: auto; font-size: 13.5px; color: var(--d-muted); text-align: right; }

.sd-contact,
.sd-factbox { padding: 18px; border: 1px solid var(--d-divider); border-radius: var(--radius-input, 4px); }
.sd-contact__person { display: flex; align-items: center; gap: 14px; margin: 14px 0 16px; }
.sd-profile .sd-contact__name { font-size: 16px; font-weight: 600; color: var(--d-ink); }
.sd-profile a.sd-contact__name:hover { color: var(--d-hover); }
.sd-profile p.sd-contact__sub { margin: 2px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--d-muted); }
.sd-profile a.sd-contact__profile { display: block; margin-top: 12px; font-size: 13.5px; font-weight: 600; text-align: center; }
.sd-factbox .sd-facts { margin-top: 12px; font-size: 14px; }

.sd-claim { padding: 18px; border-radius: var(--radius-input, 4px); background: var(--e-global-color-tealtint, #E6F1F1); }
.sd-profile h2.sd-claim__title { margin: 0; font-size: 14.5px; font-weight: 700; line-height: 1.3; letter-spacing: 0; text-transform: none; color: var(--e-global-color-tealtext, #2F6E73); }
.sd-profile .sd-claim p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--d-ink); }
.sd-profile .sd-claim a { display: inline-block; margin-top: 10px; font-size: 13.5px; font-weight: 600; }

/* related entries: in the main column (point of contact for) or as the band at the end */
.sd-profile.sd-relband { background: var(--d-tint); border-top: 1px solid var(--d-divider); }
.sd-profile.sd-relband:not(:has(.sd-related)) { display: none; }
.sd-related__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.sd-profile h2.sd-related__title { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: 1px; text-transform: uppercase; color: var(--d-ink); }
.sd-profile a.sd-related__more { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.sd-profile a.sd-related__more:hover { text-decoration: underline; }
.sd-related--contact-for .sd-related__head { margin-bottom: 6px; }
.sd-profile .sd-related--contact-for h2.sd-related__title { font-size: 15px; font-weight: 700; letter-spacing: .12em; color: var(--d-primary); }
.sd-profile p.sd-related__intro { margin: 0 0 16px; font-size: 14px; color: var(--d-muted); }

@media (max-width: 767px) {
	.sd-crumbs__sep { display: none; } /* the trail wraps under "Back to the map" */
	.sd-hero__avatar .sd-avatar { width: 96px; height: 96px; font-size: 30px; }
	.sd-profile .sd-hero__actions { flex: 1 1 100%; }
	.sd-timeline__end--right { text-align: left; }
}

/* =====================================================================================
   Join the directory (build/phase7: form.php = the JetFormBuilder form, pages.php = the
   Join and Submitted pages). JetFormBuilder's own CSS loads after this file, so rules for
   its markup carry an extra class (.sd-joinform).
   ===================================================================================== */

.sd-band--page p.sd-band-intro { max-width: 70ch; margin: 0; font-size: 15px; line-height: 1.6; color: #D6E6F2; }

.sd-join { background: #fff; }
.sd-join .e-con.sd-join__form { --width: auto; width: auto; flex: 999 1 600px; min-width: 0; }
.sd-join .e-con.sd-join__aside { --width: auto; width: auto; flex: 1 1 300px; min-width: 0; }

.sd-joinform {
	--f-ink: var(--e-global-color-ink, #23384A);
	--f-text: var(--e-global-color-text, #3A4D5C);
	--f-muted: var(--e-global-color-muted, #5A6B7B);
	--f-lines: var(--e-global-color-lines, #8396A6);
	--f-divider: var(--e-global-color-divider, #E1E8ED);
	--f-primary: var(--e-global-color-primary, #1C64AB);
	--f-hover: var(--e-global-color-hover, #114875);
	--f-error: var(--e-global-color-error, #C2412D);
}

/* progress */
.sd-joinform .jet-form-builder-progress-pages {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	margin: 0 0 32px;
	padding: 0 0 18px;
	border-bottom: 1px solid var(--f-divider);
}
.sd-joinform .jet-form-builder-progress-pages .jet-form-builder-progress-pages__item--wrapper { display: flex; align-items: center; flex: none; }
.sd-joinform .jet-form-builder-progress-pages .jet-form-builder-progress-pages__separator { display: none; }
.sd-joinform .jet-form-builder-progress-pages .jet-form-builder-progress-pages__item { display: flex; flex-direction: row; align-items: center; gap: 10px; padding: 0; background: none; }
.sd-joinform .jet-form-builder-progress-pages .jet-form-builder-progress-pages__item--circle {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	box-sizing: border-box;
	margin: 0;
	border: 2px solid var(--f-lines);
	border-radius: 50%;
	background: #fff;
	color: var(--f-muted);
	font-size: 13px;
	font-weight: 700;
}
.sd-joinform .jet-form-builder-progress-pages { justify-content: flex-start; }
/* JetFormBuilder hangs the labels absolutely under the circles; keep them in the flow, beside */
.sd-joinform .jet-form-builder-progress-pages .jet-form-builder-progress-pages__item--label {
	position: static;
	transform: none;
	white-space: nowrap;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--f-muted);
}
.sd-joinform .jet-form-builder-progress-pages .active-page .jet-form-builder-progress-pages__item--circle { border-color: var(--f-primary); background: var(--f-primary); color: #fff; }
.sd-joinform .jet-form-builder-progress-pages .active-page .jet-form-builder-progress-pages__item--label { font-weight: 700; color: var(--f-ink); }
.sd-joinform .jet-form-builder-progress-pages .passed-page .jet-form-builder-progress-pages__item--circle { border-color: #E5F3EB; background: #E5F3EB; color: var(--e-global-color-success, #1E6B43); }
.sd-joinform .jet-form-builder-progress-pages .passed-page .jet-form-builder-progress-pages__item--label { color: var(--e-global-color-success, #1E6B43); }

/* rows, labels, inputs */
.sd-joinform .jet-form-builder-row { margin: 0 0 22px; padding: 0; }
.sd-joinform .jet-form-builder__label { margin: 0 0 7px; padding: 0; }
.sd-joinform .jet-form-builder__label-text { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--f-ink); }
.sd-joinform .jet-form-builder__required { color: #B43A5E; }
.sd-joinform .jet-form-builder__desc { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--f-muted); }
.sd-joinform .jet-form-builder__desc small { font-size: inherit; }
.sd-joinform .jet-form-builder-row input.jet-form-builder__field:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
.sd-joinform .jet-form-builder-row select.jet-form-builder__field,
.sd-joinform .jet-form-builder-row textarea.jet-form-builder__field,
.sd-joinform .jet-fb-map-field__search input {
	width: 100%;
	min-height: 46px;
	box-sizing: border-box;
	padding: 10px 14px;
	border: 1px solid var(--f-lines);
	border-radius: var(--radius-button, 3px);
	background: #fff;
	color: var(--f-ink);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
}
.sd-joinform .jet-form-builder-row textarea.jet-form-builder__field { min-height: 150px; resize: vertical; }
.sd-joinform .jet-form-builder-row :is(input, select, textarea):focus { border-color: var(--f-primary); outline: 2px solid var(--f-primary); outline-offset: 0; }
.sd-joinform .jet-form-builder-row:has(.sd-col-narrow) { max-width: 260px; }
.sd-joinform .jet-form-builder-row:has(.sd-col-half) { max-width: 320px; }

/* section headings inside the form */
.sd-joinform .sd-formsec__head { margin: 34px 0 18px; padding-top: 26px; border-top: 1px solid var(--f-divider); }
.sd-joinform .jet-form-builder-page > .sd-formsec__head:first-of-type,
.sd-joinform .sd-typenote + .sd-formsec__head { margin-top: 8px; padding-top: 0; border-top: 0; }
.sd-joinform h2.sd-formsec__title { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: 0; text-transform: none; color: var(--f-ink); }
.sd-joinform p.sd-formsec__intro { margin: 6px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--f-muted); }
.sd-joinform .sd-typenote:not(:empty) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
	padding: 12px 18px;
	border: 1px solid var(--f-divider);
	border-radius: 5px;
	font-size: 14px;
	color: var(--f-text);
}

/* checkboxes and radios (tags, status, consents): native inputs, larger targets */
.sd-joinform .jet-form-builder__fields-group { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.sd-joinform .jet-form-builder__field-label.for-checkbox,
.sd-joinform .jet-form-builder__field-label.for-radio { display: inline-flex; align-items: flex-start; gap: 10px; min-height: 32px; font-size: 14.5px; line-height: 1.45; color: var(--f-ink); cursor: pointer; }
.sd-joinform .jet-form-builder__field-label :is(input[type="checkbox"], input[type="radio"]) { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--f-primary); }
.sd-joinform .jet-form-builder-row:has(.sd-consent) .jet-form-builder__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } /* the option says it all */
.sd-joinform .jet-form-builder-row:has(.sd-consent) { margin-bottom: 12px; }
/* JetFormBuilder makes every span in a checkbox label a flex row ("…checkradio-wrap span"), which
   splits a sentence around a link: labels with a link keep their sentence in a block span (build/phase7) */
.sd-joinform .jet-form-builder__field-wrap .for-checkbox > span { align-items: flex-start; }
.sd-joinform .jet-form-builder__field-wrap.checkradio-wrap span.sd-consent__text { display: block; }

/* step 1: actor type cards */
.sd-joinform .jet-form-builder-row:has(.sd-typecards) > .jet-form-builder__label .jet-form-builder__label-text { font-size: 22px; font-weight: 700; }
.sd-joinform .jet-form-builder-row:has(.sd-typecards) .jet-form-builder__fields-group { flex-direction: column; gap: 10px; }
.sd-joinform .jet-form-builder-row:has(.sd-typecards) .jet-form-builder__field-wrap { width: 100%; }
.sd-joinform .jet-form-builder-row:has(.sd-typecards) .jet-form-builder__field-label.for-radio {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 16px;
	width: 100%;
	box-sizing: border-box;
	padding: 18px 20px;
	border: 2px solid #DCE4EA;
	border-radius: 5px;
	background: #fff;
	transition: border-color .15s;
}
.sd-joinform .jet-form-builder-row:has(.sd-typecards) .for-radio:hover { border-color: var(--f-primary); }
.sd-joinform .for-radio:has(input[value="expert"]) { --sd-color: #1C64AB; --sd-tint: var(--sd-expert-tint); --sd-ink: var(--sd-expert-ink); }
.sd-joinform .for-radio:has(input[value="research-group"]) { --sd-color: #7B4FB2; --sd-tint: var(--sd-group-tint); --sd-ink: var(--sd-group-ink); }
.sd-joinform .for-radio:has(input[value="research-project"]) { --sd-color: #0E8A7B; --sd-tint: var(--sd-project-tint); --sd-ink: var(--sd-project-ink); }
.sd-joinform .for-radio:has(input[value="private-actor"]) { --sd-color: #C2741A; --sd-tint: var(--sd-private-tint); --sd-ink: var(--sd-private-ink); }
.sd-joinform .for-radio:has(input[value="public-actor"]) { --sd-color: #B43A5E; --sd-tint: var(--sd-public-tint); --sd-ink: var(--sd-public-ink); }
/* the native radio stays (keyboard, screen readers), drawn as the design's circle */
.sd-joinform .jet-form-builder-row:has(.sd-typecards) .for-radio input[type="radio"] {
	-webkit-appearance: none;
	appearance: none;
	flex: none;
	width: 22px;
	height: 22px;
	margin: 2px 0 0;
	border: 2px solid var(--f-lines);
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
}
.sd-joinform .jet-form-builder-row:has(.sd-typecards) .for-radio input[type="radio"]:checked { border-color: var(--sd-color); background: radial-gradient(circle, #fff 0 4px, var(--sd-color) 5px); }
.sd-joinform .jet-form-builder-row:has(.sd-typecards) .for-radio:has(input:checked) { border-color: var(--sd-color); }
.sd-joinform .jet-form-builder-row:has(.sd-typecards) .for-radio:has(input:focus-visible) { outline: 2px solid var(--f-primary); outline-offset: 2px; }
/* JetFormBuilder makes every span in a radio label a centred flex row; undo that inside the cards */
.sd-joinform .jet-form-builder__field-wrap .for-radio > span { display: flex; flex: 1 1 auto; align-items: flex-start; gap: 16px; min-width: 0; }
.sd-joinform .jet-form-builder__field-wrap .sd-typecard__text { align-items: flex-start; gap: 0; }
.sd-joinform .jet-form-builder__field-wrap :is(.sd-typecard__desc, .sd-typecard__needs) { display: block; }
.sd-typecard__icon { position: relative; flex: none; width: 44px; height: 44px; border-radius: var(--radius-input, 4px); background: var(--sd-tint); }
.sd-typecard__icon::after { content: ""; position: absolute; inset: 11px; background: var(--sd-ink); -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.sd-typecard__text { display: flex; flex-direction: column; min-width: 0; }
.sd-typecard__name { font-size: 16.5px; font-weight: 700; color: var(--f-ink, #23384A); }
.sd-typecard__desc { margin-top: 3px; font-size: 14px; line-height: 1.55; color: var(--f-text, #3A4D5C); }
.sd-typecard__needs { margin-top: 6px; font-size: 13px; line-height: 1.55; color: var(--f-muted, #5A6B7B); }
.sd-typecard__needs b { font-weight: 600; color: var(--f-text, #3A4D5C); }

/* repeaters */
.sd-joinform .jet-form-builder-repeater__row { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 10px; }
.sd-joinform .jet-form-builder-repeater__row-fields { display: flex; flex: 1 1 auto; flex-wrap: wrap; gap: 0 12px; }
.sd-joinform .jet-form-builder-repeater__row-fields .jet-form-builder-row { flex: 1 1 200px; margin-bottom: 0; }

/* map field */
.sd-joinform .jet-fb-map-field__search { position: relative; margin-bottom: 10px; }
.sd-joinform .jet-fb-map-field__frame { border: 1px solid var(--f-divider); border-radius: var(--radius-input, 4px); }
.sd-joinform .jet-fb-map-field__position { font-style: normal; font-size: 14px; color: var(--f-ink); }

/* step buttons (the kit already styles Continue and Submit as primary buttons) */
.sd-joinform .jet-form-builder__next-page-wrap,
.sd-joinform .jet-form-builder__submit-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid var(--f-divider);
}
.sd-joinform .jet-form-builder__next-page-wrap:not(:has(.jet-form-builder__prev-page)) { justify-content: flex-end; }
.sd-joinform :is(button.jet-form-builder__next-page, button.jet-form-builder__submit) { align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; }
.sd-joinform button.jet-form-builder__prev-page:is(*, :hover, :focus) {
	min-height: 48px;
	padding: 0 18px;
	border: 1px solid var(--f-lines);
	border-radius: var(--radius-button, 3px);
	background: #fff;
	color: var(--f-ink);
}
.sd-joinform button.jet-form-builder__prev-page:hover { border-color: var(--f-primary); }

/* validation */
.sd-joinform .error-message,
.sd-joinform .jet-form-builder__field-error { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--f-error); }
.sd-joinform .field-has-error :is(input, select, textarea) { border-color: var(--f-error); }
.sd-joinform .jet-form-builder-messages-wrap { margin-top: 18px; }
.sd-joinform .jet-form-builder-message { padding: 12px 16px; border-radius: var(--radius-input, 4px); font-size: 14px; text-align: left; }
.sd-joinform .jet-form-builder-message--error { background: #FBEDEA; color: #8E2F21; }
.sd-joinform .jet-form-builder-message--success { background: #E5F3EB; color: #1E6B43; }

/* step 4: review (directory.js) */
.sd-review h2.sd-review__title { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.3; letter-spacing: 0; text-transform: none; color: var(--f-ink); }
.sd-review p.sd-review__intro { max-width: 68ch; margin: 8px 0 20px; font-size: 14.5px; line-height: 1.6; color: var(--f-muted); }
.sd-review__sec { margin-bottom: 18px; padding: 18px 22px 8px; border: 1px solid var(--f-divider); border-radius: 5px; }
.sd-review__sec h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; color: var(--f-ink); }
.sd-review__sec h3 small { font-size: 13px; font-weight: 500; color: var(--f-muted); }
.sd-review__sec dl { display: grid; grid-template-columns: minmax(130px, 190px) minmax(0, 1fr); margin: 0; }
.sd-review__sec dt { padding: 11px 12px 11px 0; border-top: 1px solid #EDF1F4; font-size: 13.5px; color: var(--f-muted); }
.sd-review__sec dd { margin: 0; padding: 11px 0; border-top: 1px solid #EDF1F4; font-size: 14.5px; line-height: 1.55; color: var(--f-ink); overflow-wrap: anywhere; white-space: pre-line; }

/* aside: how it works */
.sd-howbox { padding: 24px; border-radius: var(--radius-input, 4px); background: var(--e-global-color-tealtint, #E6F1F1); }
.sd-howbox h2.sd-howbox__title { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--e-global-color-tealtext, #2F6E73); }
.sd-howbox__steps { display: flex; flex-direction: column; gap: 18px; margin: 18px 0 0; padding: 0; list-style: none; }
.sd-howbox__steps li { display: flex; gap: 14px; margin: 0; font-size: 13px; line-height: 1.55; color: var(--e-global-color-ink, #23384A); }
.sd-howbox__steps strong { display: block; font-size: 14px; }
.sd-howbox__n {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border: 1px solid #8FB9BC;
	border-radius: 50%;
	background: #fff;
	font-size: 13px;
	font-weight: 700;
	color: var(--e-global-color-tealtext, #2F6E73);
}
.sd-howbox p.sd-howbox__contact { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid #B9D6D8; font-size: 13px; line-height: 1.55; color: var(--e-global-color-ink, #23384A); }

/* "Request an update" dialog on the profiles (profile.php: profile_claim; directory.js: initDialogs).
   The form inside reuses the Join form styles through .sd-joinform. */
.sd-dialog {
	width: min(560px, calc(100vw - 32px));
	max-width: none;
	max-height: calc(100dvh - 32px);
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: #fff;
	color: var(--d-text);
	box-shadow: 0 24px 60px rgba(15, 47, 77, .3);
	overscroll-behavior: contain;
}
.sd-dialog::backdrop { background: rgba(15, 47, 77, .55); }
.sd-dialog__box { padding: 22px 28px 28px; }
.sd-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sd-dialog h2.sd-dialog__title { margin: 6px 0 0; font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: 0; text-transform: none; color: var(--d-ink); }
.sd-dialog button.sd-dialog__close:is(*, :hover, :focus) {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0 -12px 0 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--d-text);
}
.sd-dialog button.sd-dialog__close:hover { background: var(--d-tint); color: var(--d-ink); }
.sd-dialog button.sd-dialog__close:focus-visible { outline: 2px solid var(--d-primary); outline-offset: 0; }
.sd-dialog p.sd-dialog__intro { margin: 4px 0 22px; font-size: 14px; line-height: 1.55; color: var(--d-muted); }
.sd-joinform.sd-joinform--dialog .jet-form-builder-row { margin-bottom: 18px; }
.sd-joinform.sd-joinform--dialog .jet-form-builder-row textarea.jet-form-builder__field { min-height: 120px; }
.sd-joinform .jet-form-builder-row:has(.sd-stack) .jet-form-builder__fields-group { flex-direction: column; gap: 2px; }
.sd-joinform.sd-joinform--dialog .jet-form-builder__submit-wrap { justify-content: flex-end; margin-top: 22px; padding-top: 20px; }
/* once sent: the message and a Close button */
.sd-dialog p.sd-dialog__done { display: none; }
.sd-dialog.is-sent .sd-joinform--dialog .jet-form-builder-row { display: none; }
.sd-dialog.is-sent .sd-joinform--dialog .jet-form-builder-messages-wrap { margin-top: 0; }
.sd-dialog.is-sent p.sd-dialog__done { display: flex; justify-content: flex-end; margin: 22px 0 0; }
.sd-dialog .jet-form-builder-message:focus { outline: none; }

/* Submitted page */
.sd-done { max-width: 760px; }
.sd-done__head { display: flex; gap: 20px; align-items: flex-start; }
.sd-done__icon { display: flex; flex: none; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: #E5F3EB; color: var(--e-global-color-success, #1E6B43); }
.sd-profile h1.sd-done__title { margin: 0; font-size: clamp(24px, calc(18px + 1vw), 32px); font-weight: 700; line-height: 1.2; color: var(--d-ink); }
.sd-profile p.sd-done__lead { max-width: 60ch; margin: 10px 0 0; font-size: 16px; line-height: 1.65; color: var(--d-text); }
.sd-done__steps { display: flex; flex-direction: column; gap: 0; margin: 32px 0 0; padding: 0; list-style: none; }
.sd-done__steps li { position: relative; display: flex; gap: 16px; margin: 0; padding: 0 0 22px; font-size: 14px; line-height: 1.55; color: var(--d-text); }
.sd-done__steps li:not(:last-child)::before { content: ""; position: absolute; left: 7px; top: 18px; bottom: 0; width: 2px; background: var(--d-divider); }
.sd-done__steps strong { display: block; font-size: 15px; color: var(--d-ink); }
.sd-done__dot { position: relative; flex: none; width: 16px; height: 16px; box-sizing: border-box; margin-top: 3px; border: 2px solid var(--d-lines); border-radius: 50%; background: #fff; }
.sd-done__steps .is-done .sd-done__dot { border-color: var(--e-global-color-ongoing, #2F8F5B); background: var(--e-global-color-ongoing, #2F8F5B); }
.sd-done__steps .is-current .sd-done__dot { border-color: var(--d-primary); box-shadow: 0 0 0 4px rgba(28, 100, 171, .18); }
.sd-done__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.sd-profile p.sd-done__note { margin: 26px 0 0; font-size: 13.5px; color: var(--d-muted); }

@media (max-width: 767px) {
	.sd-dialog__box { padding: 14px 18px 22px; }
	.sd-dialog h2.sd-dialog__title { font-size: 19px; }
	.sd-review__sec dl { grid-template-columns: minmax(0, 1fr); }
	.sd-review__sec dd { padding-top: 0; border-top: 0; }
	.sd-joinform .jet-form-builder-row:has(.sd-typecards) .jet-form-builder__field-label.for-radio { padding: 14px 16px; gap: 12px; }
	.sd-joinform .for-radio > span { gap: 12px; }
	.sd-typecard__icon { width: 36px; height: 36px; }
	.sd-typecard__icon::after { inset: 8px; }
}

/* =====================================================================================
   How it works (build/phase8/how-it-works.php), from the design's "About" artboard.
   ===================================================================================== */

.sd-howto {
	--h-ink: var(--e-global-color-ink, #23384A);
	--h-text: var(--e-global-color-text, #3A4D5C);
	--h-muted: var(--e-global-color-muted, #5A6B7B);
	--h-divider: var(--e-global-color-divider, #E1E8ED);
	--h-primary: var(--e-global-color-primary, #1C64AB);
	background: #fff;
}
.sd-howto .e-con.sd-howto__toc { --width: auto; width: auto; flex: 1 1 220px; max-width: 260px; position: sticky; top: 24px; }
.sd-howto .e-con.sd-howto__article { --width: auto; width: auto; flex: 999 1 560px; min-width: 0; max-width: 72ch; }

/* on this page */
.sd-toc h2.sd-toc__title { margin: 0 0 10px; font-size: 12px; font-weight: 700; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; color: var(--h-muted); }
.sd-toc ul { margin: 0; padding: 0; list-style: none; }
.sd-toc a { display: block; padding: 7px 0 7px 14px; border-left: 1px solid #C9D5DE; font-size: 14px; line-height: 1.45; color: var(--h-text); text-decoration: none; }
.sd-toc a:hover { border-left-color: var(--h-primary); color: var(--h-primary); }

/* sections */
.sd-howto .e-con.sd-howsec { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--h-divider); scroll-margin-top: 24px; }
.sd-howto .e-con.sd-howsec:has(+ .sd-howto__cta) { padding-bottom: 0; border-bottom: 0; }
.sd-howto .sd-howsec__title .elementor-heading-title { margin: 0 0 14px; font-size: 22px; font-weight: 700; line-height: 1.3; letter-spacing: 0; text-transform: none; color: var(--h-ink); }
.sd-howto .sd-howsec__text :is(p, li) { font-size: 16px; line-height: 1.75; color: var(--h-text); }
.sd-howto .sd-howsec__text p { margin: 0 0 14px; }
.sd-howto .sd-howsec__text > :last-child,
.sd-howto .sd-howsec__text .elementor-widget-container > :last-child { margin-bottom: 0; }
.sd-howto .sd-howsec__text :is(ol, ul:not(.sd-typelist)) { margin: 0 0 14px; padding-left: 22px; }
.sd-howto .sd-howsec__text :is(ol, ul:not(.sd-typelist)) li { margin-bottom: 8px; }
.sd-howto .sd-howsec__text strong { color: var(--h-ink); }
.sd-howto .sd-howsec__text strong.sd-ongoing { color: #1E6B43; }
.sd-howto .sd-howsec__text strong.sd-past { color: #4E5B66; }
.sd-howto .sd-howsec__text a { color: var(--h-primary); text-underline-offset: 3px; }

/* the five types ([sd_type_list]) */
.sd-typelist { display: flex; flex-direction: column; gap: 10px; margin: 0 0 14px; padding: 0; list-style: none; }
.sd-typelist li { display: flex; align-items: flex-start; gap: 12px; margin: 0; }
.sd-typelist__pin { flex: none; width: 14px; height: 18px; margin-top: 5px; }

/* join box */
.sd-howto .e-con.sd-howto__cta { margin-top: 40px; border-radius: 4px; background: var(--e-global-color-tealtint, #E6F1F1); }
.sd-howto p.sd-howto__ctatext { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--h-ink); }

@media (max-width: 1024px) {
	.sd-howto .e-con.sd-howto__toc { position: static; flex-basis: 100%; max-width: none; }
}
