/* =========================================================================
   LBA Funktioner – medlemsöversikt [lba_memberlist] och medlemsprofil [lba_member_profile]
   Sammanslaget från tre äldre varianter i Extra CSS. Värdena är de som faktiskt gällde.
   ========================================================================= */

:root {
	--lba-primary: #2E7D32;
}

/* ---------- Medlemsöversikt ---------- */

.lba-memberlist {
	display: grid;
	gap: 12px;
	margin-top: 10px;
}

.lba-memberlist .lba-row {
	position: relative; /* för "Visa mer"-knappen */
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	align-items: start;
	padding: 16px 24px;
	border: 1px solid #eee;
	border-bottom-color: #EBEEF0;
	border-radius: 8px;
	background: #fff;
}

.lba-memberlist .lba-row:nth-child(even) {
	background: #F7F8F9;
}

.lba-memberlist .lba-col {
	min-width: 0;
}

/* Vänster: företag */
.lba-memberlist .lba-company {
	margin: 0 0 2px 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
}

/* Höger: kontaktperson */
.lba-memberlist .lba-contact {
	margin: 0 0 2px 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

.lba-memberlist .lba-address,
.lba-memberlist .lba-website,
.lba-memberlist .lba-phone,
.lba-memberlist .lba-email {
	margin: 0;
	font-size: 16px;
	line-height: 1.3;
}

/* Webbadress i textfärg, understruken vid hovring */
.lba-memberlist .lba-website a {
	color: inherit;
	text-decoration: none;
	word-break: break-word;
}

.lba-memberlist .lba-website a:hover {
	text-decoration: underline;
}

/* Telefon och e-post: klickbara, grön vid hovring */
.lba-memberlist .lba-phone a,
.lba-memberlist .lba-email a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.lba-memberlist .lba-phone a:hover,
.lba-memberlist .lba-email a:hover {
	color: var(--lba-primary);
	border-color: var(--lba-primary);
}

/* "Visa mer", vertikalt centrerad i högerkanten */
.lba-memberlist .lba-more {
	position: absolute;
	top: 50%;
	right: 24px;
	margin-top: 0;
	transform: translateY(-50%);
	text-align: right;
}

.lba-more-btn {
	display: inline-block;
	padding: 8px 18px;
	background: #222;
	color: #fff !important;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-decoration: none !important;
}

.lba-more-btn:hover {
	background: #000;
}

@media (max-width: 900px) {
	.lba-memberlist .lba-row {
		grid-template-columns: 1fr;
	}

	.lba-memberlist .lba-company {
		font-size: 18px;
	}
}

/* ---------- Medlemsprofil ---------- */

.lba-member-profile {
	max-width: 900px;
	margin: 60px auto 80px;
	padding: 0 20px;
}

.lba-profile-company {
	margin: 0 0 8px 0;
	font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
	font-size: 44px;
	font-weight: 700;
	line-height: 1.1;
}

/* Intro med grön linje till vänster */
.lba-profile-intro {
	margin: 24px 0 32px;
	padding-left: 24px;
	border-left: 4px solid var(--lba-primary, #2E7D32);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
}

/* Kontaktuppgifter (visas bara om det är påslaget i inställningarna) */
.lba-profile-meta {
	margin: 16px 0 32px;
	font-size: 16px;
	line-height: 1.6;
}

.lba-profile-meta > div {
	margin-bottom: 4px;
}

.lba-profile-meta a {
	color: inherit;
	text-decoration: underline;
}

.lba-profile-meta a:hover {
	color: var(--lba-primary, #2E7D32);
}

.lba-profile-about {
	max-width: 720px;
	font-size: 16px;
	line-height: 1.8;
}

.lba-profile-about p:last-child {
	margin-bottom: 0;
}
