/* Newsletter issue (single-newsletter.php). Everything sits in a centred 720 column:
   article header (py 80) · navy standfirst (py 64, mobile 40) · body (py 80) with numbered H2
   sections, pull quotes, the "Én ting at prøve" box and the sign-off · close (py 80, gap 56 /
   mobile 40): thanks + share, contact people, related reading, previous / next, back link ·
   "Vores vision" band. Body copy is Body/L on desktop and Body/M on mobile, as in the Figma file. */

.axn-issue__col {
	width: 100%;
	max-width: var(--measure-max);
	margin-inline: auto;
}

/* ---------- Portrait (round, monogram fallback) ---------- */
.axn-portrait {
	flex: none;
	aspect-ratio: 1;
	height: auto;
	border-radius: 50%;
	object-fit: cover;
	object-position: center 20%;
	background: var(--c-neutral-200);
}

.axn-portrait.is-monogram {
	display: grid;
	place-items: center;
	background: var(--surface-accent);
	color: var(--text-link);
	font-weight: 600;
	font-size: 0.875rem;
	letter-spacing: 0.02em;
}

/* ---------- Article header ---------- */
.axn-issue-header {
	padding: 80px var(--page-margin);
	background: var(--surface-page);
}

.axn-issue-header .axn-issue__col {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-24);
}

.axn-issue-header__title {
	width: 100%;
}

.axn-issue-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-8) var(--space-16);
	width: 100%;
}

.axn-issue-meta__author {
	display: flex;
	align-items: center;
	gap: var(--space-10);
}

.axn-issue-meta__author .axn-portrait {
	width: 32px;
}

.axn-issue-meta__who {
	display: flex;
	flex-direction: column;
}

.axn-issue-meta__name {
	font-size: var(--type-body-m-size);
	line-height: var(--type-body-m-line);
	font-weight: 600;
}

.axn-issue-meta__role {
	font-size: var(--type-body-xs-size);
	line-height: var(--type-body-xs-line);
	color: var(--text-secondary);
}

.axn-issue-meta__text {
	font-size: var(--type-meta-size);
	line-height: var(--type-meta-line);
	font-weight: 500;
	letter-spacing: 0.02em;
	font-variant-numeric: tabular-nums;
	color: var(--text-secondary);
}

/* ---------- Standfirst ---------- */
.axn-issue-standfirst {
	padding: 64px var(--page-margin);
	background: var(--surface-page);
}

.axn-issue-standfirst .axn-issue__col {
	display: flex;
	flex-direction: column;
	gap: var(--space-24);
}

.axn-issue-standfirst .axn-issue__col::before {
	content: "";
	width: 56px;
	height: 3px;
	background: var(--accent-rule);
}

/* ---------- Body ---------- */
.axn-issue-body {
	padding: 80px var(--page-margin);
	background: var(--surface-page);
}

.axn-prose.axn-issue-prose {
	max-width: none;
	font-size: var(--type-body-l-size);
	line-height: var(--type-body-l-line);
	counter-reset: axn-section;
}

/* Numbered sections: every H2 gets 01, 02, 03 … above it in the accent colour. */
.axn-prose.axn-issue-prose > h2 {
	margin: 0;
	padding: 56px 0 16px;
	counter-increment: axn-section;
}

.axn-prose.axn-issue-prose > h2::before {
	content: counter(axn-section, decimal-leading-zero);
	display: block;
	margin-bottom: var(--space-12);
	font-family: var(--font-body);
	font-size: var(--type-eyebrow-size);
	line-height: var(--type-eyebrow-line);
	font-weight: 600;
	letter-spacing: 0.1em;
	color: var(--text-accent);
}

/* Pull quote: 64×2 accent rule above Quote/L, 48 above and below. */
.axn-prose.axn-issue-prose > .wp-block-quote,
.axn-prose.axn-issue-prose > blockquote {
	margin: 0;
	padding: 48px 0;
	border: 0;
}

.axn-prose.axn-issue-prose > .wp-block-quote::before,
.axn-prose.axn-issue-prose > blockquote::before {
	content: "";
	display: block;
	width: 64px;
	height: 2px;
	margin-bottom: 28px;
	background: var(--accent-rule);
}

.axn-prose.axn-issue-prose > ul:not(.is-style-check) {
	margin: 0;
	padding: 4px 0 24px;
}

.axn-prose.axn-issue-prose > ul:not(.is-style-check) > li {
	padding-left: 20px;
}

.axn-prose.axn-issue-prose > ul:not(.is-style-check) > li::before {
	left: 0;
	top: 12px;
	background: var(--accent-rule);
}

.axn-prose.axn-issue-prose > :first-child {
	padding-top: 0;
}

/* "Én ting at prøve" box (pattern axcess-nordic/newsletter-try-box). */
.axn-try,
.axn-prose.axn-issue-prose > .axn-try {
	display: flex;
	flex-direction: column;
	gap: var(--space-20);
	margin: 48px 0;
	padding: var(--space-40);
	border-radius: var(--radius-16);
	background: var(--surface-accent);
	color: var(--text-primary);
}

.axn-try > * {
	margin: 0;
}

.axn-try__title {
	font-family: var(--font-display);
	font-size: var(--type-h4-size);
	line-height: var(--type-h4-line);
	font-weight: 600;
	letter-spacing: -0.01em;
}

ul.axn-try__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.axn-try__chips li {
	padding: var(--space-8) var(--space-16);
	border-radius: var(--radius-pill);
	background: var(--c-white);
	color: var(--c-navy);
	font-size: var(--type-body-m-size);
	line-height: var(--type-body-m-line);
	font-weight: 600;
}

.axn-try__chips li::before {
	content: none;
}

/* Sign-off */
.axn-issue-signoff {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	margin-top: 20px;
	padding-top: 40px;
	border-top: 1px solid var(--border-subtle);
}

.axn-issue-signoff__valediction {
	font-size: var(--type-body-l-size);
	line-height: var(--type-body-l-line);
	color: var(--text-secondary);
}

.axn-issue-signoff__signature {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	padding-top: var(--space-12);
}

.axn-issue-signoff__name {
	font-family: var(--font-display);
	font-size: var(--type-h5-size);
	line-height: var(--type-h5-line);
	font-weight: 600;
	letter-spacing: -0.005em;
}

.axn-issue-signoff__role {
	font-size: var(--type-body-s-size);
	line-height: var(--type-body-s-line);
	color: var(--text-secondary);
}

/* ---------- Close ---------- */
.axn-issue-close {
	padding: 80px var(--page-margin);
	background: var(--surface-page);
}

.axn-issue-close__col {
	display: flex;
	flex-direction: column;
	gap: 56px;
}

.axn-issue-thanks {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-12);
}

.axn-issue-thanks__text {
	font-size: var(--type-body-l-size);
	line-height: var(--type-body-l-line);
	color: var(--text-secondary);
}

.axn-issue-thanks__share {
	display: flex;
	align-items: center;
	gap: var(--space-8);
	padding-top: var(--space-8);
	color: var(--text-link);
}

.axn-issue-thanks__share .axn-icon {
	width: 20px;
	height: 20px;
}

.axn-issue-group {
	display: flex;
	flex-direction: column;
	gap: var(--space-16);
}

h2.axn-eyebrow {
	font-family: var(--font-body);
	font-weight: 400;
}

.axn-issue-group__list {
	display: flex;
	flex-direction: column;
	gap: var(--space-16);
	margin: 0;
}

/* Contact person card */
.axn-person-card {
	display: flex;
	align-items: center;
	gap: var(--space-24);
	padding: var(--space-32);
	border-radius: var(--radius-16);
	background: var(--surface-accent);
	color: var(--text-primary);
}

.axn-person-card .axn-portrait {
	width: 80px;
}

.axn-person-card .axn-portrait.is-monogram {
	background: var(--surface-page);
}

.axn-person-card__text {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: var(--space-8);
	min-width: 0;
}

.axn-person-card__name {
	font-size: var(--type-body-m-size);
	line-height: var(--type-body-m-line);
	font-weight: 600;
}

.axn-person-card__role {
	font-size: var(--type-body-s-size);
	line-height: var(--type-body-s-line);
	color: var(--text-secondary);
}

.axn-person-card__contact {
	display: flex;
	flex-wrap: wrap;
	gap: 0 var(--space-16);
	padding-top: var(--space-4);
	font-size: var(--type-body-m-size);
	line-height: var(--type-body-m-line);
}

/* Related reading */
.axn-related {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: start;
	gap: var(--space-16);
	margin: 0;
	padding: 0;
	list-style: none;
}

.axn-related__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-12);
	padding: var(--space-24);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-12);
}

.axn-related__icon {
	width: 24px;
	height: 24px;
	color: var(--text-accent);
}

.axn-related__title {
	font-family: var(--font-display);
	font-size: var(--type-h5-size);
	line-height: var(--type-h5-line);
	font-weight: 600;
	letter-spacing: -0.005em;
}

.axn-related__text {
	font-size: var(--type-body-m-size);
	line-height: var(--type-body-m-line);
	color: var(--text-secondary);
}

/* Previous / next issue. A missing cell is left out; the other keeps its half width. */
.axn-prevnext {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-24);
	padding-top: var(--space-32);
	border-top: 1px solid var(--border-subtle);
}

.axn-prevnext__cell {
	display: flex;
	align-items: center;
	gap: var(--space-16);
	padding: var(--space-24);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-12);
	color: var(--text-primary);
	text-decoration: none;
	transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.axn-prevnext__cell:hover {
	border-color: var(--border-default);
	background: var(--surface-raised);
}

.axn-prevnext__cell.is-next {
	grid-column: 2;
	justify-content: flex-end;
	text-align: right;
}

.axn-prevnext__icon {
	width: 24px;
	height: 24px;
	color: var(--text-accent);
}

.axn-prevnext__text {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: var(--space-4);
	min-width: 0;
}

.axn-prevnext__label {
	font-size: var(--type-meta-size);
	line-height: var(--type-meta-line);
	font-weight: 500;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--text-secondary);
}

.axn-prevnext__title {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	font-size: var(--type-body-m-size);
	line-height: var(--type-body-m-line);
	font-weight: 600;
}

.axn-issue-back {
	padding-top: var(--space-32);
}

/* ---------- Vision band ---------- */
.axn-section.axn-vision {
	padding-block: 112px;
}

.axn-vision__inner {
	display: flex;
	align-items: flex-start;
	gap: 80px;
}

.axn-vision__lede {
	display: flex;
	flex: 0 0 560px;
	flex-direction: column;
	gap: var(--space-16);
}

.axn-vision__body {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: var(--space-20);
	min-width: 0;
	font-size: var(--type-body-l-size);
	line-height: var(--type-body-l-line);
	letter-spacing: -0.0025em;
}

.axn-vision__muted {
	color: var(--text-secondary);
}

.axn-vision__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
}

.axn-vision__list li {
	position: relative;
	padding-left: 20px;
}

.axn-vision__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 11px;
	width: 6px;
	height: 6px;
	background: var(--accent-rule);
}

/* ---------- Tablet ---------- */
@media (max-width: 1023px) {
	.axn-vision__inner {
		flex-direction: column;
		gap: var(--space-40);
	}

	.axn-vision__lede {
		flex: none;
		max-width: 560px;
	}
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	.axn-issue-meta__author {
		flex-basis: 100%;
	}

	.axn-issue-meta__sep {
		display: none;
	}

	.axn-issue-standfirst {
		padding-block: 40px;
	}

	.axn-issue-standfirst .axn-issue__col {
		gap: var(--space-20);
	}

	.axn-prose.axn-issue-prose,
	.axn-issue-signoff__valediction,
	.axn-issue-thanks__text,
	.axn-vision__body {
		font-size: var(--type-body-m-size);
		line-height: var(--type-body-m-line);
		letter-spacing: 0;
	}

	.axn-prose.axn-issue-prose > h2 {
		padding: 40px 0 16px;
	}

	.axn-prose.axn-issue-prose > h2::before {
		margin-bottom: 10px;
	}

	.axn-prose.axn-issue-prose > .wp-block-quote,
	.axn-prose.axn-issue-prose > blockquote {
		padding: 32px 0;
	}

	.axn-prose.axn-issue-prose > .wp-block-quote::before,
	.axn-prose.axn-issue-prose > blockquote::before {
		margin-bottom: 20px;
	}

	.axn-prose.axn-issue-prose > ul:not(.is-style-check) > li::before {
		top: 10px;
	}

	.axn-try,
	.axn-prose.axn-issue-prose > .axn-try {
		gap: var(--space-16);
		margin: 32px 0;
		padding: var(--space-24);
	}

	.axn-issue-signoff {
		padding-top: 28px;
	}

	.axn-issue-close__col {
		gap: var(--space-40);
	}

	.axn-person-card {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--space-16);
		padding: var(--space-24);
	}

	.axn-person-card .axn-portrait {
		width: 64px;
		height: 64px;
	}

	.axn-related,
	.axn-prevnext {
		grid-template-columns: minmax(0, 1fr);
	}

	.axn-prevnext {
		gap: var(--space-12);
	}

	.axn-prevnext__cell.is-next {
		grid-column: auto;
		justify-content: flex-start;
		text-align: left;
	}

	.axn-prevnext__cell.is-next .axn-prevnext__icon {
		order: -1;
	}

	.axn-section.axn-vision {
		padding-block: var(--section-y);
	}

	.axn-vision__inner {
		gap: var(--space-32);
	}

	.axn-vision__list li::before {
		top: 10px;
	}
}

/* ---------- Carried-over issue content ---------- */

/* Key figures (pattern axcess-nordic/newsletter-figures): hairline, H3-size number, Body/S label. */
.axn-figures,
.axn-prose.axn-issue-prose > .axn-figures {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: var(--space-24);
	margin: 32px 0;
}

.axn-figure {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	padding-top: var(--space-16);
	border-top: 1px solid var(--border-subtle);
}

.axn-figure > * {
	margin: 0;
}

.axn-figure__value {
	font-family: var(--font-display);
	font-size: var(--type-h3-size);
	line-height: var(--type-h3-line);
	font-weight: 600;
	letter-spacing: -0.0125em;
	white-space: nowrap;
	color: var(--text-primary);
}

/* Four or more figures share the 720 column: step the number down to H4 so "20,5 → 11,3" fits. */
.axn-figures:has(> :nth-child(4)) .axn-figure__value {
	font-size: var(--type-h4-size);
	line-height: var(--type-h4-line);
	letter-spacing: -0.01em;
}

.axn-figure__label {
	font-size: var(--type-body-s-size);
	line-height: var(--type-body-s-line);
	color: var(--text-secondary);
}

/* The question asked inside a try box. */
.axn-try__question {
	font-family: var(--font-display);
	font-size: var(--type-h5-size);
	line-height: var(--type-h5-line);
	font-weight: 600;
	letter-spacing: -0.005em;
}

.axn-prose.axn-issue-prose > figure img,
.axn-prose.axn-issue-prose > .wp-block-image img {
	border-radius: var(--radius-16);
}

.axn-prose.axn-issue-prose > .wp-block-buttons {
	margin: 4px 0 20px;
}

@media (max-width: 767px) {
	.axn-figures,
	.axn-prose.axn-issue-prose > .axn-figures {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--space-20) var(--space-16);
	}

	.axn-figure__value {
		white-space: normal;
	}
}

/* Quote with the speaker's portrait (a group .axn-voice: Image block + Quote block). */
.axn-prose.axn-issue-prose > .axn-voice {
	display: grid;
	grid-template-columns: 80px minmax(0, 1fr);
	align-items: start;
	gap: 0 var(--space-24);
	margin: 0;
	padding: 48px 0;
}

.axn-voice::before {
	content: "";
	grid-column: 1 / -1;
	width: 64px;
	height: 2px;
	margin-bottom: 28px;
	background: var(--accent-rule);
}

.axn-voice > .wp-block-image {
	margin: 0;
}

.axn-voice > .wp-block-image img {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
}

.axn-voice > .wp-block-quote {
	margin: 0;
	padding: 0;
	border: 0;
	font-family: var(--font-display);
	font-size: var(--type-quote-l-size);
	line-height: var(--type-quote-l-line);
	font-weight: 500;
	letter-spacing: -0.01em;
}

.axn-voice > .wp-block-quote p {
	margin: 0;
}

.axn-voice > .wp-block-quote cite {
	display: block;
	margin-top: var(--space-12);
	font-family: var(--font-body);
	font-size: var(--type-body-s-size);
	line-height: var(--type-body-s-line);
	font-style: normal;
	font-weight: 400;
	letter-spacing: 0;
	color: var(--text-secondary);
}

@media (max-width: 767px) {
	.axn-prose.axn-issue-prose > .axn-voice {
		grid-template-columns: 56px minmax(0, 1fr);
		gap: 0 var(--space-16);
		padding: 32px 0;
	}

	.axn-voice::before {
		margin-bottom: 20px;
	}

	.axn-voice > .wp-block-image img {
		width: 56px;
		height: 56px;
	}
}

.axn-prose.axn-issue-prose > .axn-figures:first-child,
.axn-prose.axn-issue-prose > .axn-try:first-child {
	margin-top: 0;
}
