/*
 * Hurpedia E-E-A-T frontend styles v1.1.5
 *
 * Använder .entry-content.entry-content-prefix (dubbel-klass-trick) för att
 * höja specificitet och slå Mercia-temats CSS-regler utan att överanvända
 * !important.
 *
 * Cross-site-konvention: ThemeZee och liknande teman (Poseidon, Treville,
 * Mercia) riktar sina regler mot .entry-content-parent. Plugin-CSS måste
 * därför prefixas med .entry-content.entry-content för att vinna.
 */

/* === Topbyline =================================================== */

.entry-content.entry-content .hp-topbyline {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	gap: 14px;
	align-items: center;
	margin: 0 0 28px;
	padding: 14px 18px;
	background: var(--hp-bg-soft, #faf9f7);
	border-left: 4px solid var(--hp-primary, #3377bb);
	border-radius: 0 8px 8px 0;
	box-sizing: border-box;
	max-width: 100%;
	overflow: visible;
	word-break: normal;
	overflow-wrap: normal;
	hyphens: none;
}

.entry-content.entry-content .hp-topbyline,
.entry-content.entry-content .hp-topbyline * {
	word-break: normal;
	overflow-wrap: normal;
	hyphens: none;
}

.entry-content.entry-content .hp-topbyline-avatar-link {
	display: block;
	width: 48px;
	height: 48px;
	line-height: 0;
	margin: 0;
}

.entry-content.entry-content .hp-topbyline-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	margin: 0;
	max-width: none;
}

.entry-content.entry-content .hp-topbyline-text {
	min-width: 0;
}

.entry-content.entry-content .hp-topbyline-author-line {
	margin: 0 0 2px;
	padding: 0;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--hp-text, #1f2937);
}

.entry-content.entry-content .hp-topbyline-by {
	color: var(--hp-muted, #6b7280);
	margin-right: 4px;
}

.entry-content.entry-content .hp-topbyline-name {
	font-weight: 600;
	text-decoration: none;
	color: var(--hp-primary-dark, #2a5f93);
	border-bottom: 1px solid transparent;
	transition: border-color 0.15s;
}

.entry-content.entry-content .hp-topbyline-name:hover {
	border-bottom-color: var(--hp-primary-dark, #2a5f93);
	text-decoration: none;
}

.entry-content.entry-content .hp-topbyline-role {
	color: var(--hp-muted, #6b7280);
	font-weight: 400;
}

.entry-content.entry-content .hp-topbyline-dates {
	margin: 0;
	padding: 0;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--hp-muted, #6b7280);
}

.entry-content.entry-content .hp-topbyline-dates strong,
.entry-content.entry-content .hp-topbyline-reviewer-line strong {
	color: var(--hp-text, #1f2937);
	font-weight: 600;
}

.entry-content.entry-content .hp-topbyline-divider {
	margin: 0 8px;
	color: var(--hp-border, #d1d5db);
}

.entry-content.entry-content .hp-topbyline-reviewer-line {
	margin: 2px 0 0;
	padding: 0;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--hp-muted, #6b7280);
}

.entry-content.entry-content .hp-topbyline-reviewer-name {
	color: var(--hp-primary-dark, #2a5f93);
	text-decoration: none;
	font-weight: 500;
}

.entry-content.entry-content .hp-topbyline-reviewer-name:hover {
	text-decoration: underline;
}

.entry-content.entry-content .hp-topbyline-reviewed-date {
	color: var(--hp-muted, #6b7280);
	font-style: italic;
	margin-left: 4px;
}

@media (max-width: 600px) {
	.entry-content.entry-content .hp-topbyline {
		padding: 12px 14px;
		gap: 12px;
	}

	.entry-content.entry-content .hp-topbyline-dates,
	.entry-content.entry-content .hp-topbyline-reviewer-line {
		font-size: 0.85rem;
	}

	.entry-content.entry-content .hp-topbyline-divider {
		display: none;
	}

	.entry-content.entry-content .hp-topbyline-updated {
		display: block;
		margin-top: 2px;
	}
}

/* === Bottombyline ================================================ */

.entry-content.entry-content .hp-bottombyline {
	display: block;
	margin: 40px 0 0;
	padding: 24px;
	background: var(--hp-bg-soft, #faf9f7);
	border: 1px solid var(--hp-border, #e5e7eb);
	border-radius: 12px;
	box-sizing: border-box;
	max-width: 100%;
	word-break: normal;
	overflow-wrap: normal;
}

.entry-content.entry-content .hp-bottombyline * {
	word-break: normal;
	overflow-wrap: break-word;
	hyphens: none;
}

.entry-content.entry-content .hp-bottombyline-heading {
	margin: 0 0 16px;
	padding: 0;
	font-size: 0.85rem;
	line-height: 1.4;
	color: var(--hp-muted, #6b7280);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 600;
	border: none;
}

.entry-content.entry-content .hp-bottombyline-card {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

.entry-content.entry-content .hp-bottombyline-photo-link {
	display: block;
	width: 120px;
	height: 120px;
	line-height: 0;
	margin: 0;
}

.entry-content.entry-content .hp-bottombyline-avatar {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	border: 3px solid #fff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	margin: 0;
	max-width: none;
}

.entry-content.entry-content .hp-bottombyline-content {
	min-width: 0;
}

.entry-content.entry-content .hp-bottombyline-name {
	margin: 0 0 4px;
	padding: 0;
	font-size: 1.25rem;
	line-height: 1.3;
	border: none;
}

.entry-content.entry-content .hp-bottombyline-name a {
	color: var(--hp-primary-dark, #2a5f93);
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.entry-content.entry-content .hp-bottombyline-name a:hover {
	border-bottom-color: var(--hp-primary-dark, #2a5f93);
	text-decoration: none;
}

.entry-content.entry-content .hp-bottombyline-role {
	margin: 0 0 14px;
	padding: 0;
	color: var(--hp-muted, #6b7280);
	font-size: 0.95rem;
	line-height: 1.4;
}

.entry-content.entry-content .hp-bottombyline-bio {
	margin: 0 0 14px;
	color: var(--hp-text, #1f2937);
	line-height: 1.6;
}

.entry-content.entry-content .hp-bottombyline-bio p {
	margin: 0 0 10px;
}

.entry-content.entry-content .hp-bottombyline-bio p:last-child {
	margin-bottom: 0;
}

.entry-content.entry-content .hp-bottombyline-sameas {
	list-style: none;
	padding: 0;
	margin: 0 0 14px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.entry-content.entry-content .hp-bottombyline-sameas li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.entry-content.entry-content .hp-bottombyline-sameas li:before {
	content: none;
	display: none;
}

.entry-content.entry-content .hp-bottombyline-sameas a {
	display: inline-block;
	padding: 4px 12px;
	background: #fff;
	border: 1px solid var(--hp-border, #e5e7eb);
	border-radius: 4px;
	font-size: 0.85rem;
	color: var(--hp-primary-dark, #2a5f93);
	text-decoration: none;
}

.entry-content.entry-content .hp-bottombyline-sameas a:hover {
	background: var(--hp-primary-soft, #eef5fc);
	border-color: var(--hp-primary, #3377bb);
}

.entry-content.entry-content .hp-bottombyline-cta {
	margin: 0;
	padding: 0;
	font-size: 0.95rem;
}

.entry-content.entry-content .hp-bottombyline-cta a {
	color: var(--hp-primary-dark, #2a5f93);
	font-weight: 500;
	text-decoration: none;
}

.entry-content.entry-content .hp-bottombyline-cta a:hover {
	text-decoration: underline;
}

@media (max-width: 600px) {
	.entry-content.entry-content .hp-bottombyline {
		padding: 18px;
	}

	.entry-content.entry-content .hp-bottombyline-card {
		grid-template-columns: 1fr;
		text-align: center;
		gap: 16px;
	}

	.entry-content.entry-content .hp-bottombyline-photo-link {
		margin: 0 auto;
	}

	.entry-content.entry-content .hp-bottombyline-sameas {
		justify-content: center;
	}
}

/* === Team grid (för /om-oss/ via [hp_team]) ====================== */

.entry-content.entry-content .hp-team-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	margin: 1.5em 0;
	word-break: normal;
}

@media (min-width: 600px) {
	.entry-content.entry-content .hp-team-grid {
		grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	}
}

.entry-content.entry-content .hp-team-card {
	padding: 20px;
	background: #fff;
	border: 1px solid var(--hp-border, #e5e7eb);
	border-radius: 12px;
	text-align: center;
	box-sizing: border-box;
	min-width: 0;
}

.entry-content.entry-content .hp-team-photo {
	display: inline-block;
	margin: 0 0 12px;
}

.entry-content.entry-content .hp-team-photo img {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	border: 3px solid #fff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.entry-content.entry-content .hp-team-card h3 {
	margin: 0 0 4px;
	font-size: 1.1rem;
}

.entry-content.entry-content .hp-team-card h3 a {
	color: var(--hp-primary-dark, #2a5f93);
	text-decoration: none;
}

.entry-content.entry-content .hp-team-role {
	margin: 0 0 12px;
	color: var(--hp-muted, #6b7280);
	font-size: 0.9rem;
	font-style: italic;
}

.entry-content.entry-content .hp-team-bio {
	margin: 0;
	font-size: 0.95rem;
	color: var(--hp-text, #1f2937);
	line-height: 1.5;
}

/* === Inline corrections-block i artikel ========================== */

.entry-content.entry-content .hp-art-corrections {
	margin: 24px 0;
	padding: 16px 20px;
	background: #fef3c7;
	border-left: 4px solid #f59e0b;
	border-radius: 0 8px 8px 0;
}

.entry-content.entry-content .hp-art-corrections h3 {
	margin: 0 0 8px;
	font-size: 1rem;
	color: #78350f;
}

.entry-content.entry-content .hp-art-corrections ul {
	margin: 0;
	padding-left: 20px;
}

.entry-content.entry-content .hp-art-corrections li {
	margin: 4px 0;
}
