/* LawyerAI E-E-A-T attribution + sample clause — scoped to .lai-eeat / .lai-clause */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,500;8..60,600&display=swap");

.lai-eeat {
	--lai-eeat-text: #0f172a;
	--lai-eeat-muted: #64748b;
	--lai-eeat-border: rgba(15, 23, 42, 0.08);
	--lai-eeat-accent: #7c3aed;
	--lai-eeat-surface: #ffffff;
	--lai-eeat-soft: #f8fafc;
	font-family: Inter, system-ui, sans-serif;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	gap: 16px;
	margin: 14px 0 10px;
	padding: 14px 0 16px;
	border-top: 1px solid var(--lai-eeat-border);
	border-bottom: 1px solid var(--lai-eeat-border);
	color: var(--lai-eeat-text);
}

.lai-eeat__people {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 16px 28px;
	min-width: 0;
	width: 100%;
}

.lai-eeat__person {
	display: grid;
	gap: 0;
	min-width: 0;
	flex: 0 0 auto;
}

.lai-eeat__label {
	display: block;
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	color: #94a3b8;
	line-height: 1.3;
	text-align: left;
}

.lai-eeat__person-row {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	margin-top: 0;
}

.lai-eeat__avatar {
	position: relative;
	width: 32px;
	height: 32px;
	flex: 0 0 auto;
	border-radius: 999px;
	background: var(--lai-eeat-soft);
	border: 0;
	overflow: hidden;
	display: grid;
	place-items: center;
}

.lai-eeat__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.lai-eeat__initials {
	font-size: 0.65rem;
	font-weight: 700;
	color: #475569;
}

.lai-eeat__verified {
	display: none;
}

.lai-eeat__identity {
	display: grid;
	gap: 1px;
	min-width: max-content;
	justify-items: start;
	text-align: left;
}

.lai-eeat__name-row {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.lai-eeat__name {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--lai-eeat-text);
	white-space: nowrap;
}

.lai-eeat__role {
	font-size: 12px;
	line-height: 1.3;
	color: #64748b;
	white-space: nowrap;
	overflow: visible;
	text-overflow: clip;
}

.lai-eeat__linkedin {
	flex: 0 0 auto;
	display: inline-flex;
	line-height: 0;
	text-decoration: none;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.lai-eeat__linkedin-icon {
	width: 14px;
	height: 14px;
	display: block;
}

.lai-eeat__linkedin:hover,
.lai-eeat__linkedin:focus-visible {
	opacity: 0.88;
	transform: translateY(-1px);
	outline: none;
}

.lai-eeat__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	flex: 0 0 auto;
}

.lai-eeat__pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 10px;
	border-radius: 999px;
	border: 1px solid var(--lai-eeat-border);
	background: var(--lai-eeat-soft);
	font-size: 0.75rem;
	font-weight: 500;
	color: #475569;
	white-space: nowrap;
}

.lai-eeat__pill-icon {
	opacity: 0.75;
}

/* Sample clause card */
.lai-clause {
	--lai-clause-accent: #7c3aed;
	--lai-clause-border: rgba(15, 23, 42, 0.08);
	--lai-clause-text: #0f172a;
	--lai-clause-muted: #64748b;
	font-family: Inter, system-ui, sans-serif;
	margin: 1.5rem 0 1.75rem;
	border: 1px solid var(--lai-clause-border);
	border-radius: 14px;
	background: #fff;
	overflow: hidden;
}

.lai-clause__header {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 28px;
	padding: 16px 18px;
	border-bottom: 1px solid var(--lai-clause-border);
	background: linear-gradient(180deg, #fbfafd 0%, #ffffff 100%);
}

.lai-clause__heading {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 12px;
	min-width: 0;
	flex: 1 1 auto;
}

.lai-clause__icon {
	flex: 0 0 auto;
	align-self: flex-start;
	width: 28px;
	height: 28px;
	margin: 0;
	border-radius: 8px;
	display: grid;
	place-items: center;
	color: var(--lai-clause-accent);
	background: rgba(124, 58, 237, 0.08);
}

.lai-clause__icon svg {
	display: block;
	width: 16px;
	height: 16px;
}

/* Not a heading — avoids .lai-lt-article h3 / .sdg-prose h3 30px top margins. */
.lai-clause .lai-clause__title {
	margin: 0 !important;
	padding: 0 !important;
	min-width: 0;
	flex: 0 1 auto;
	max-width: 34rem;
	font-family: inherit;
	font-size: 20px !important;
	font-weight: 650 !important;
	letter-spacing: -0.01em;
	line-height: 1.3 !important;
	color: var(--lai-clause-text) !important;
	overflow-wrap: break-word;
}

.lai-clause__actions {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: flex-end;
	justify-content: center;
	flex: 0 0 auto;
	gap: 10px;
}

.lai-clause__copy {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 10px;
	border: 1px solid var(--lai-clause-border);
	background: #fff;
	color: var(--lai-clause-text);
	font: inherit;
	font-size: 0.82rem;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.lai-clause__copy:hover,
.lai-clause__copy:focus-visible {
	border-color: rgba(124, 58, 237, 0.35);
	color: var(--lai-clause-accent);
	outline: none;
}

.lai-clause__copy.is-copied {
	color: #047857;
	border-color: rgba(4, 120, 87, 0.28);
	background: #ecfdf5;
}

.lai-clause__copy-icon {
	display: inline-grid;
	place-items: center;
	width: 16px;
	height: 16px;
}

/* Checkmark only in the green copied state (theme CSS can un-hide [hidden] SVGs). */
.lai-clause__icon-check {
	display: none !important;
}

.lai-clause__copy.is-copied .lai-clause__icon-copy {
	display: none !important;
}

.lai-clause__copy.is-copied .lai-clause__icon-check {
	display: block !important;
}

.lai-clause__customize {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--lai-clause-accent);
	text-decoration: none;
	text-align: right;
	white-space: nowrap;
}

.lai-clause__customize:hover,
.lai-clause__customize:focus-visible {
	text-decoration: underline;
	outline: none;
}

.lai-clause__tabs {
	display: flex;
	gap: 6px;
	padding: 10px 16px 0;
}

.lai-clause__tab {
	border: 0;
	background: transparent;
	padding: 8px 12px;
	border-radius: 999px;
	font: inherit;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--lai-clause-muted);
	cursor: pointer;
}

.lai-clause__tab.is-active {
	background: rgba(124, 58, 237, 0.1);
	color: var(--lai-clause-accent);
}

.lai-clause__panel {
	padding: 12px 16px 16px;
}

.lai-clause__panel[hidden] {
	display: none !important;
}

.lai-clause__body {
	margin: 0;
	padding: 14px 16px;
	border-left: 3px solid var(--lai-clause-accent);
	background: #faf9fc;
	border-radius: 0 10px 10px 0;
}

.lai-clause__text {
	margin: 0;
	font-family: "Source Serif 4", "Times New Roman", Times, serif;
	font-size: 1rem;
	line-height: 1.65;
	color: #1e293b;
}

.lai-clause__var {
	display: inline;
	padding: 0.05em 0.35em;
	border-radius: 6px;
	background: rgba(124, 58, 237, 0.1);
	color: var(--lai-clause-accent);
	font-family: Inter, system-ui, sans-serif;
	font-size: 0.86em;
	font-weight: 600;
	white-space: nowrap;
}

@media (max-width: 720px) {
	.lai-eeat__meta {
		width: 100%;
	}

	.lai-eeat__people {
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: flex-start;
		gap: 16px;
	}

	.lai-eeat__person {
		width: 100%;
	}

	.lai-eeat__name,
	.lai-eeat__role {
		white-space: normal;
	}

	.lai-clause__header {
		flex-wrap: wrap;
		align-items: flex-start;
		gap: 14px;
	}

	.lai-clause__actions {
		width: 100%;
		align-items: flex-start;
	}

	.lai-clause__customize {
		text-align: left;
		white-space: normal;
	}
}

/* -------------------------------------------------------------------------
   Blog post hero: flush-left 2-col people row + left-aligned pills.
   Glossary / templates keep the default stacked layout above.
   ------------------------------------------------------------------------- */
.sd-editorial-hero .lai-eeat {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 14px;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 18px 0 0;
	border-top: 0;
	border-bottom: 0;
	text-align: left;
}

.sd-editorial-hero .lai-eeat__people {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 40px;
	width: 100%;
	margin: 0;
	min-width: 0;
}

.sd-editorial-hero .lai-eeat__person {
	display: grid;
	flex: 0 1 auto;
	margin: 0;
	padding: 0;
	border: 0;
	text-align: left;
	justify-items: start;
}

.sd-editorial-hero .lai-eeat__label {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 500;
	color: #64748b;
	line-height: 1.3;
	text-align: left;
	width: auto;
}

.sd-editorial-hero .lai-eeat__person-row,
.sd-editorial-hero .lai-eeat__identity,
.sd-editorial-hero .lai-eeat__name-row {
	justify-content: flex-start;
	justify-items: start;
	text-align: left;
}

.sd-editorial-hero .lai-eeat__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
}

@media (max-width: 992px) {
	/* Pull only the author cards up toward the H1; keep the Updated/read pills where they are. */
	.sd-editorial-hero .lai-eeat {
		padding-top: 2px; /* cards a tad closer to the H1 */
		gap: 30px; /* +4px vs prior so Updated pills stay put */
	}

	.sd-editorial-hero .lai-eeat__people {
		flex-direction: column;
		align-items: flex-start;
		gap: 18px; /* clearer separation between Written by / Fact-checked by */
	}

	.sd-editorial-hero .lai-eeat__person {
		width: 100%;
	}

	.sd-editorial-hero .lai-eeat__label {
		margin-bottom: 4px;
	}

	.sd-editorial-hero .lai-eeat__meta {
		justify-content: flex-start;
		margin: 0;
	}
}
