/* Forfatterprofil + byline – Madmagasinet */

.mm-authorpage {
	--au-green: #18583d;
	--au-green-d: #103d2b;
	--au-tint: #eef3ee;
	--au-line: #e5dfd3;
	--au-sand: #f6f1e6;
	--au-mut: #6b6a63;
	padding: 30px 0 64px;
}

.mm-authorpage .mm-container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 18px;
}

/* ---------- Profil-hero ---------- */

.mm-au-hero {
	display: flex;
	gap: 26px;
	align-items: flex-start;
	background: var(--au-sand);
	border: 1px solid var(--au-line);
	border-radius: 22px;
	padding: 30px;
	position: relative;
	overflow: hidden;
}

.mm-au-hero::after {
	content: "";
	position: absolute;
	right: -70px;
	top: -70px;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: rgba(24, 88, 61, 0.06);
	pointer-events: none;
}

.mm-au-avatar {
	flex: 0 0 auto;
	width: 92px;
	height: 92px;
	border-radius: 50%;
	background: var(--au-green);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 34px;
	font-weight: 700;
	letter-spacing: 0.02em;
	box-shadow: 0 6px 18px rgba(16, 61, 43, 0.18);
}

.mm-au-info {
	position: relative;
	z-index: 1;
	min-width: 0;
}

.mm-au-eyebrow {
	margin: 2px 0 6px;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--au-green);
}

.mm-au-navn {
	font-family: "Fraunces", Georgia, serif;
	color: var(--au-green-d);
	font-size: clamp(28px, 4.4vw, 40px);
	line-height: 1.1;
	margin: 0 0 10px;
	letter-spacing: -0.01em;
}

.mm-au-bio {
	margin: 0 0 12px;
	font-size: 16px;
	line-height: 1.6;
	color: #3f3e39;
	max-width: 62ch;
}

.mm-au-tal {
	margin: 0 0 12px;
	font-size: 13.5px;
	color: var(--au-mut);
}

.mm-au-emner {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 0;
}

.mm-au-emner__l {
	font-size: 12.5px;
	color: var(--au-mut);
	margin-right: 2px;
}

.mm-au-tag {
	display: inline-block;
	background: #fff;
	border: 1px solid var(--au-line);
	border-radius: 999px;
	padding: 5px 12px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--au-green-d);
	text-decoration: none;
}

.mm-au-tag:hover {
	background: var(--au-tint);
}

/* ---------- Artikler ---------- */

.mm-au-overskrift {
	font-family: "Fraunces", Georgia, serif;
	color: var(--au-green-d);
	font-size: clamp(21px, 3vw, 27px);
	margin: 40px 0 18px;
}

.mm-au-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 20px;
}

.mm-au-kort {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--au-line);
	border-radius: 16px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mm-au-kort:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(16, 61, 43, 0.1);
}

.mm-au-kort__img {
	width: 100%;
	height: 168px;
	object-fit: cover;
	display: block;
	background: var(--au-tint);
}

.mm-au-kort__img--tom {
	background: linear-gradient(135deg, var(--au-tint), var(--au-sand));
}

.mm-au-kort__ind {
	display: flex;
	flex-direction: column;
	gap: 7px;
	padding: 14px 16px 18px;
}

.mm-au-kort__t {
	font-family: "Fraunces", Georgia, serif;
	font-size: 17px;
	line-height: 1.3;
	color: var(--au-green-d);
	font-weight: 600;
}

.mm-au-kort__m {
	font-size: 12.5px;
	color: var(--au-mut);
}

.mm-au-pag {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin: 34px 0 0;
	flex-wrap: wrap;
}

.mm-au-pag .page-numbers {
	display: inline-block;
	min-width: 38px;
	text-align: center;
	padding: 8px 12px;
	border: 1px solid var(--au-line);
	border-radius: 999px;
	text-decoration: none;
	color: var(--au-green-d);
	font-size: 14px;
}

.mm-au-pag .page-numbers.current {
	background: var(--au-green);
	border-color: var(--au-green);
	color: #fff;
}

.mm-au-tom {
	margin: 34px 0;
	color: var(--au-mut);
}

.mm-au-retur {
	margin: 40px 0 0;
	font-size: 14px;
}

.mm-au-retur a {
	color: var(--au-green);
	text-decoration: none;
}

.mm-au-retur a:hover {
	text-decoration: underline;
}

@media (max-width: 599px) {
	.mm-au-hero {
		flex-direction: column;
		gap: 16px;
		padding: 22px;
	}

	.mm-au-avatar {
		width: 68px;
		height: 68px;
		font-size: 26px;
	}
}

/* ---------- Byline på artikler ---------- */

.mm-byline {
	display: flex;
	align-items: center;
	gap: 11px;
	margin: 0 0 22px;
	padding: 0 0 18px;
	border-bottom: 1px solid #e5dfd3;
}

.mm-byline__av {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #18583d;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}

.mm-byline__t {
	font-size: 14px;
	line-height: 1.4;
	color: #6b6a63;
}

.mm-byline__t a {
	color: #103d2b;
	font-weight: 700;
	text-decoration: none;
}

.mm-byline__t a:hover {
	text-decoration: underline;
}

/* ---------- Forfatterboks under artikler ---------- */

.mm-aubox {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	background: #eef3ee;
	border-radius: 18px;
	padding: 22px;
	margin: 38px 0 6px;
}

.mm-aubox__av {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #18583d;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 21px;
	font-weight: 700;
	text-decoration: none;
}

.mm-aubox__navn {
	margin: 0 0 5px;
	font-size: 16.5px;
	font-weight: 700;
	color: #103d2b;
}

.mm-aubox__navn a {
	color: inherit;
	text-decoration: none;
}

.mm-aubox__navn a:hover {
	text-decoration: underline;
}

.mm-aubox__bio {
	margin: 0 0 8px;
	font-size: 14.5px;
	line-height: 1.55;
	color: #3f3e39;
}

.mm-aubox__link {
	font-size: 13.5px;
	color: #18583d;
	text-decoration: none;
	font-weight: 600;
}

.mm-aubox__link:hover {
	text-decoration: underline;
}

@media (max-width: 599px) {
	.mm-aubox {
		flex-direction: column;
		gap: 12px;
		padding: 18px;
	}
}

/* specificitet – temaets linkfarve må ikke overskrive avatarerne */
a.mm-byline__av,
a.mm-aubox__av,
.mm-authorpage .mm-au-avatar {
	color: #fff;
}

a.mm-byline__av:hover,
a.mm-aubox__av:hover {
	color: #fff;
	opacity: 0.9;
}

.mm-authorpage a.mm-au-tag {
	color: #103d2b;
}

.mm-authorpage a.mm-au-kort,
.mm-authorpage a.mm-au-kort:hover {
	color: inherit;
}
