:root {
	--jysk-red: #90261d;
	--jysk-red-hover: #7a1f17;
	--jysk-yellow: #f7d500;
	--jysk-linen: #f5f0eb;
	--jysk-white: #ffffff;
	--jysk-ink: #1c1c1a;
	--jysk-grey: #6b6b6b;
	--jysk-light-border: #e8e3de;
}

@media (prefers-reduced-motion: reduce) {
	.jysk-post-template *,
	.jysk-post-template *::before,
	.jysk-post-template *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Full-bleed section background (break out of theme container). */
.jysk-post-template {
	width: 100vw;
	max-width: 100vw;
	margin-inline: calc(50% - 50vw);
	padding: 80px 24px;
	box-sizing: border-box;
	font-family: "Lato", sans-serif;
	background: var(--jysk-linen);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.jysk-post-template__main {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	background: transparent;
}

.jysk-post-template__article {
	max-width: 1200px;
	margin: 0 auto;
	background: var(--jysk-white);
	border: 1px solid var(--jysk-light-border);
	border-radius: 12px;
	padding: 40px 32px 48px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	display: grid;
	row-gap: 0;
}

.jysk-post-template__article > .jysk-post-template__back-wrap,
.jysk-post-template__article > .jysk-post-template__header,
.jysk-post-template__article > .jysk-post-template__content {
	width: 100%;
	max-width: 920px;
	margin-left: auto;
	margin-right: auto;
}

.jysk-post-template__back-wrap {
	margin: 0 auto 24px;
}

.jysk-post-template .jysk-post-template__back-link,
.jysk-post-template .jysk-post-template__back-link:link,
.jysk-post-template .jysk-post-template__back-link:visited,
.jysk-post-template .jysk-post-template__back-link:hover,
.jysk-post-template .jysk-post-template__back-link:active,
.jysk-post-template .jysk-post-template__back-link:focus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 14px 32px;
	border: 0;
	border-radius: 5px;
	background: var(--jysk-red);
	color: #ffffff !important;
	font-family: "Lato", sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.02em;
	text-decoration: none !important;
	box-shadow: 0 4px 14px rgba(144, 38, 29, 0.25);
	transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.jysk-post-template .jysk-post-template__back-link::before {
	content: "\2190";
	font-size: 16px;
	line-height: 1;
	color: #ffffff !important;
}

.jysk-post-template .jysk-post-template__back-link:hover,
.jysk-post-template .jysk-post-template__back-link:focus {
	background: var(--jysk-red-hover);
	color: #ffffff !important;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(144, 38, 29, 0.35);
}

.jysk-post-template .jysk-post-template__back-link:focus-visible {
	outline: 3px solid var(--jysk-yellow);
	outline-offset: 3px;
}

.jysk-post-template__header {
	margin: 0 auto 32px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--jysk-light-border);
}

.jysk-post-template__title,
.jysk-post-template__content h1,
.jysk-post-template__content h2,
.jysk-post-template__content h3 {
	font-family: "Bitter", serif !important;
}

.jysk-post-template,
.jysk-post-template__main,
.jysk-post-template__meta,
.jysk-post-template__content,
.jysk-post-template__content h4,
.jysk-post-template__content p,
.jysk-post-template__content li,
.jysk-post-template__content blockquote,
.jysk-post-template .jysk-post-template__back-link {
	font-family: "Lato", sans-serif !important;
}

.jysk-post-template__title {
	margin: 0 0 16px;
	font-size: clamp(1.875rem, 3vw, 2.625rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--jysk-ink);
	text-align: left;
}

.jysk-post-template__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.6;
	color: var(--jysk-grey);
	justify-content: flex-start;
}

.jysk-post-template__content {
	margin: 0 auto;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.7;
	color: var(--jysk-ink);
}

.jysk-post-template__content > *:first-child {
	margin-top: 0;
}

.jysk-post-template__content > *:last-child {
	margin-bottom: 0;
}

.jysk-post-template__content p,
.jysk-post-template__content ul,
.jysk-post-template__content ol,
.jysk-post-template__content blockquote,
.jysk-post-template__content figure,
.jysk-post-template__content table,
.jysk-post-template__content pre {
	margin: 0 0 24px;
}

.jysk-post-template__content h2,
.jysk-post-template__content h3 {
	font-weight: 700;
	color: var(--jysk-ink);
}

.jysk-post-template__content h2 {
	margin: 48px 0 16px;
	font-size: clamp(1.875rem, 3vw, 2.625rem);
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.jysk-post-template__content h3 {
	margin: 32px 0 12px;
	font-size: clamp(1.25rem, 2vw, 1.375rem);
	line-height: 1.3;
}

.jysk-post-template__content h4 {
	margin: 24px 0 10px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--jysk-ink);
}

.jysk-post-template__content ul,
.jysk-post-template__content ol {
	padding-left: 1.5rem;
}

.jysk-post-template__content li + li {
	margin-top: 8px;
}

.jysk-post-template__content a,
.jysk-post-template__content a:visited {
	color: var(--jysk-red);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 0.15em;
}

.jysk-post-template__content a:hover,
.jysk-post-template__content a:focus {
	color: var(--jysk-red-hover);
}

.jysk-post-template__content a:focus-visible {
	outline: 3px solid var(--jysk-yellow);
	outline-offset: 2px;
	border-radius: 3px;
}

.jysk-post-template__content blockquote {
	margin-left: 0;
	margin-right: 0;
	padding: 16px 20px;
	border-left: 4px solid var(--jysk-red);
	border-radius: 6px;
	background: var(--jysk-linen);
	font-size: 15px;
	font-style: italic;
	line-height: 1.6;
	color: var(--jysk-ink);
}

.jysk-post-template__content img,
.jysk-post-template__content iframe,
.jysk-post-template__content video,
.jysk-post-template__content embed,
.jysk-post-template__content object {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.jysk-post-template__content iframe {
	width: 100% !important;
	min-height: 320px;
	aspect-ratio: 16 / 9 !important;
	border: 0;
}

/* Force Gutenberg/oEmbed wrappers to stay full-width and aligned. */
.jysk-post-template__content .wp-block-embed,
.jysk-post-template__content .wp-block-embed__wrapper,
.jysk-post-template__content figure.wp-block-embed {
	width: 100% !important;
	max-width: 100% !important;
	display: block !important;
	float: none !important;
	margin-left: 0;
	margin-right: 0;
}

.jysk-post-template__content figure.wp-block-embed iframe,
.jysk-post-template__content .wp-block-embed__wrapper iframe {
	width: 100% !important;
	max-width: 100% !important;
	height: 100% !important;
}

/* Robust 16:9 embed box to defeat theme/plugin overrides. */
.jysk-post-template__content figure.wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper {
	position: relative;
	width: 100% !important;
	padding-top: 56.25% !important;
	height: 0 !important;
	overflow: hidden;
}

.jysk-post-template__content figure.wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper iframe {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
}

.jysk-post-template__content figure {
	margin-left: 0;
	margin-right: 0;
}

.jysk-post-template__content figcaption {
	margin-top: 8px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--jysk-grey);
}

.jysk-post-template__content table {
	display: block;
	width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
}

.jysk-post-template__content th,
.jysk-post-template__content td {
	padding: 10px 12px;
	border: 1px solid var(--jysk-light-border);
	text-align: left;
	vertical-align: top;
}

.jysk-post-template__content th {
	background: var(--jysk-linen);
	font-weight: 700;
}

.jysk-post-template__content hr {
	margin: 32px 0;
	border: 0;
	border-top: 1px solid var(--jysk-light-border);
}

@media (max-width: 1024px) {
	.jysk-post-template {
		padding: 64px 24px;
	}

	.jysk-post-template__article {
		padding: 32px 24px 40px;
	}
}

@media (max-width: 768px) {
	.jysk-post-template {
		padding: 48px 24px;
	}

	.jysk-post-template__article {
		padding: 24px 20px 32px;
	}

	.jysk-post-template__header {
		margin-bottom: 24px;
		padding-bottom: 20px;
	}

	.jysk-post-template__title {
		font-size: 1.875rem;
	}

	.jysk-post-template__content {
		font-size: 16px;
		line-height: 1.65;
	}

	.jysk-post-template__content h2 {
		margin-top: 40px;
		font-size: 1.875rem;
	}

	.jysk-post-template__content h3 {
		font-size: 1.25rem;
	}
}

@media (max-width: 480px) {
	.jysk-post-template {
		padding: 48px 16px;
	}

	.jysk-post-template__article {
		padding: 20px 16px 28px;
	}

	.jysk-post-template .jysk-post-template__back-link {
		width: 100%;
	}

	.jysk-post-template__content iframe {
		min-height: 220px;
	}
}
