/*
 * JobGetr editorial personas - the persona strip on an Editor's Pick article
 * and the /editors/<slug>/ profile. Loaded only on those two surfaces.
 * Tokens come from the child theme (--jg-*) with the platform fallbacks.
 */

.jg-editor-byline,
.jg-editor {
	--ed-ink: var(--jg-navy, #131f49);
	--ed-soft: var(--jg-gray, #717176);
	--ed-line: var(--jg-border, #e4e8ef);
	--ed-brand: var(--jg-accent, #ff6a13);

	box-sizing: border-box;
}

.jg-editor-byline *,
.jg-editor * {
	box-sizing: border-box;
}

/* ---- article persona strip */
.jg-editor-byline {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 28px;
	padding: 16px 0;
	border-top: 2px solid var(--ed-brand);
	border-bottom: 1px solid var(--ed-line);
}

.jg-editor-byline__portrait-wrap {
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	overflow: hidden;
	border: 1px solid var(--ed-line);
	background: #ffffff;
}

.jg-editor-byline__portrait-wrap img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}

.jg-editor-byline__text {
	min-width: 0;
}

.tagdiv-type .jg-editor-byline p,
.jg-editor-byline p {
	margin: 0;
}

.tagdiv-type .jg-editor-byline__kicker,
.jg-editor-byline__kicker {
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ed-brand);
}

.jg-editor-byline__name {
	font-family: var(--global-font-3, Georgia, serif);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.25;
}

/* Outranks the tagDiv content block's `.tdi_N a:not(...)` accent colour. */
.jg-editor-byline p.jg-editor-byline__name a {
	color: var(--ed-ink);
	text-decoration: none;
}

.jg-editor-byline p.jg-editor-byline__name a:hover,
.jg-editor-byline p.jg-editor-byline__name a:focus-visible {
	color: var(--ed-brand);
}

.tagdiv-type .jg-editor-byline__note,
.jg-editor-byline__note {
	margin-top: 4px;
	font-size: 12px;
	line-height: 1.45;
	color: var(--ed-soft);
}

/* ---- profile */
.jg-editor {
	max-width: 880px;
	margin: 0 auto;
	padding: 10px 0 56px;
	color: var(--ed-ink);
}

.jg-editor__head {
	display: flex;
	align-items: center;
	gap: 28px;
	padding-bottom: 26px;
	margin-bottom: 8px;
	border-bottom: 2px solid var(--ed-brand);
}

.jg-editor__portrait-wrap {
	flex: 0 0 160px;
	width: 160px;
	height: 160px;
	border-radius: 50%;
	overflow: hidden;
	border: 1px solid var(--ed-line);
	background: #ffffff;
}

.jg-editor__portrait-wrap img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.jg-editor__kicker {
	margin: 0 0 6px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ed-brand);
}

.jg-editor__name {
	margin: 0 0 8px;
	font-family: var(--global-font-3, Georgia, serif);
	font-size: 36px;
	font-weight: 700;
	line-height: 1.15;
	color: var(--ed-ink);
}

.jg-editor__summary {
	margin: 0 0 10px;
	font-size: 16px;
	line-height: 1.55;
	color: #1f2329;
}

.jg-editor__note {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--ed-soft);
}

.jg-editor__list-title {
	margin: 26px 0 4px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ed-ink);
}

.jg-editor__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.jg-editor__item {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin: 0;
	padding: 18px 0;
	border-bottom: 1px solid var(--ed-line);
}

.jg-editor__item-text {
	flex: 1 1 auto;
	min-width: 0;
}

.jg-editor__category {
	margin: 0 0 5px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ed-brand);
}

.jg-editor__title {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}

.jg-editor__title a {
	color: var(--ed-ink);
	text-decoration: none;
}

.jg-editor__title a:hover,
.jg-editor__title a:focus-visible {
	color: var(--ed-brand);
}

.jg-editor__date {
	margin: 0;
	font-size: 12px;
	color: var(--ed-soft);
}

.jg-editor__thumb {
	flex: 0 0 150px;
	width: 150px;
	height: 100px;
	overflow: hidden;
	background: var(--ed-line);
}

.jg-editor__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.jg-editor__empty {
	margin: 18px 0 0;
	padding: 22px;
	border: 1px dashed var(--ed-line);
	font-size: 14px;
	line-height: 1.5;
	color: var(--ed-soft);
}

.jg-editor__pager {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin: 22px 0 0;
	font-size: 13px;
	font-weight: 700;
}

.jg-editor__pager a {
	color: var(--ed-ink);
}

.jg-editor__back {
	margin: 30px 0 0;
	font-size: 13px;
}

.jg-editor__back a {
	color: var(--ed-brand);
	font-weight: 700;
	text-decoration: none;
}

@media (max-width: 767px) {
	.jg-editor__head {
		flex-direction: column;
		align-items: flex-start;
		gap: 18px;
	}

	.jg-editor__portrait-wrap {
		flex-basis: 120px;
		width: 120px;
		height: 120px;
	}

	.jg-editor__name {
		font-size: 28px;
	}

	.jg-editor__title {
		font-size: 17px;
	}

	.jg-editor__thumb {
		flex-basis: 96px;
		width: 96px;
		height: 72px;
	}

	.jg-editor-byline__portrait-wrap {
		flex-basis: 56px;
		width: 56px;
		height: 56px;
	}
}
