/**
 * Swiss Biotech Day's program entries on their single page, after the
 * shared assets/css/listing.css. See docs/listing.md, "Swiss Biotech Day".
 *
 * - The hero is the warm surface with dark type, no photograph and no logo:
 *   an entry has no cover, and its logos are in the page. No quick actions
 *   (templates/single-listing/main-info.php), and no tab bar.
 * - The tab's two columns are two thirds and one third (MyListing's
 *   "content-sidebar" template, 7 and 5 of 12 in the parent's markup).
 * - The logos are gallery blocks, each joined to the card of its company
 *   below it, the logo whole (contained, never cropped) and linked to the
 *   company's website.
 * - The People field's rows ([[speakers.list]]) as a list.
 *
 * Enqueued on single listings on SBD only, by sites/sbd/site.php.
 */

/* --------------------------------------------------------------------------
 * Hero: the warm surface, dark type
 * -------------------------------------------------------------------------- */

.single-listing .profile-cover,
.single-listing .profile-cover.profile-cover-no-img {
	min-height: 0;
	padding: 64px 0 40px;
	border-bottom: 1px solid var(--sba-border);
	background: var(--sba-surface-warm);
	color: var(--sba-charcoal);
}

@media (min-width: 1025px) {
	.single-listing .profile-cover,
	.single-listing .profile-cover.profile-cover-no-img {
		padding: 96px 0 56px;
	}
}

/* The format above the title: the guide's hero eyebrow, dark red on a
 * light field, its 32px rule in front, 20px above the title (the stack's
 * 12px gap and 8px of its own). A block with the rule inline, not a flex
 * row: WebKit sized the row too narrow for its text, which then broke
 * after its first word in Safari, on the Mac and on iOS (Chromium did not;
 * measured October 16, 2026 in a WKWebView: 159px for 191px of content). */
.single-listing .raskin-sbd-hero-eyebrow {
	display: block;
	margin: 0 0 8px;
	color: var(--sba-red-dark);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: normal;
	line-height: 20px;
}

.single-listing .raskin-sbd-hero-eyebrow::before {
	content: "";
	display: inline-block;
	width: 32px;
	height: 1px;
	margin-right: 12px;
	background-color: currentColor;
	vertical-align: middle;
}

/* Lines filled, not balanced: an entry's title is a sentence of two or three
 * lines, and balance evened them out at two thirds of the width. Pretty
 * only keeps a last word from standing alone. */
.single-listing .listing-main-info h1 {
	color: var(--sba-charcoal);
	text-wrap: pretty;
}

.single-listing .listing-main-info h2 {
	color: var(--sba-slate);
}

.single-listing .profile-name .edit-listing i {
	border-color: var(--sba-input);
	color: var(--sba-charcoal);
}

/* --------------------------------------------------------------------------
 * No tab bar: an entry has one tab, "Details", which a bar only names.
 * -------------------------------------------------------------------------- */

.single-listing .profile-header {
	display: none;
}

/* --------------------------------------------------------------------------
 * Two thirds, one third
 * -------------------------------------------------------------------------- */

@media (min-width: 992px) {
	.single-listing .tab-template-content-sidebar > .row > .col-md-7 {
		width: 66.6667%;
	}

	.single-listing .tab-template-content-sidebar > .row > .col-md-5 {
		width: 33.3333%;
	}
}

/* --------------------------------------------------------------------------
 * Logos: a gallery block per company, joined to the company's card
 *
 * Rendered by sites/sbd/logo-block.php, not the parent's carousel: the logo
 * as an image linked to the company's website. Whole, never cropped:
 * contained in a box 128px tall and as wide as the card, centered, as the
 * carousel's background image was.
 * -------------------------------------------------------------------------- */

.single-listing .raskin-sbd-logo-card .pf-body {
	padding: 24px;
}

.single-listing .raskin-sbd-logo-link {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 128px;
	border-radius: var(--sba-radius-sm);
}

.single-listing .raskin-sbd-logo-link img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.single-listing a.raskin-sbd-logo-link:focus-visible {
	outline: 2px solid var(--sba-red);
	outline-offset: 4px;
}

/* The logo card and the card under it are one: no gap, square corners
 * where they meet, the lower card's hairline between them. */
.single-listing .single-job-listing .raskin-sbd-logo:has(+ .raskin-sbd-org) .element {
	margin-bottom: 0 !important;
	border-bottom: 0;
	border-bottom-right-radius: 0;
	border-bottom-left-radius: 0;
}

.single-listing .raskin-sbd-logo + .raskin-sbd-org .element {
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}

/* Name and links as one short list: the parent's 15px between the rows of
 * an outlined list made four rows read as four items. */
.single-listing .raskin-sbd-org .details-block-content > li {
	margin-bottom: 0;
}

/* The company's name, the first row of its card. */
.single-listing .raskin-sbd-org .details-block-content > li:first-child .wp-editor-content {
	color: var(--sba-charcoal);
	font-weight: 500;
}

/* --------------------------------------------------------------------------
 * People: speakers, moderators, jury members, pitching companies
 * -------------------------------------------------------------------------- */

.single-listing .raskin-people-block .details-block-content > li {
	padding: 0;
}

.single-listing .raskin-people {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.single-listing .raskin-people > li {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	border: 0;
}

.single-listing .raskin-people-name {
	color: var(--sba-charcoal);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
}

.single-listing .raskin-people-meta {
	color: var(--sba-slate);
	font-size: 14px;
	line-height: 1.5;
}
