/**
 * Járókelő blog megjelenés – csak .jk-blog scope alatt.
 * Forrás: romix-jarokelok frontend design tokenek.
 */

/* Mintaprojekt: Bold → BrandingSF, Medium → BrandingSF-medium */
@font-face {
	font-family: "BrandingSF";
	src: url("../fonts/BrandingSF-Bold.otf") format("opentype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "BrandingSF";
	src: url("../fonts/BrandingSF-Bold.otf") format("opentype");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "BrandingSF-medium";
	src: url("../fonts/BrandingSF-Medium.otf") format("opentype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "BrandingSF-medium";
	src: url("../fonts/BrandingSF-Medium.otf") format("opentype");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

.jk-blog {
	--jk-primary: #25367c;
	--jk-secondary: #94c55d;
	/* WCAG AA: fehér háttéren ≥4,5:1 (korábbi #515e96 ~4:1) */
	--jk-text-main: #3d4b7c;
	--jk-bg-gray: #ebedf6;
	--jk-banner-bg: #344ba7;
	--primary-color: var(--jk-primary);
	--secondary-color: var(--jk-secondary);
	--text-main: var(--jk-text-main);

	font-family: "BrandingSF", sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: var(--jk-primary);
	background: #fff;
}

/* A téma Oswald + Tailwind heading base felülírása a blog területen */
.jk-blog h1,
.jk-blog h2,
.jk-blog h3,
.jk-blog h4,
.jk-blog h5,
.jk-blog h6 {
	font-family: "BrandingSF", sans-serif !important;
	letter-spacing: normal;
}

/* Alap címszín gyenge specificitással – Elementor egyedi szín felülírhatja */
:where(.jk-blog) :is(h1, h2, h3, h4, h5, h6, .header-2, .heading-3, .heading-4, .heading-5, .heading-6) {
	color: var(--jk-primary);
}

.jk-blog h1 {
	font-size: 28px !important;
	font-weight: 700;
	line-height: 1.2;
}

.jk-blog h2,
.jk-blog .header-2 {
	font-size: 30px !important;
	font-weight: 700;
	line-height: 1.25;
}

.jk-blog h3,
.jk-blog .heading-3 {
	font-size: 27px !important;
	font-weight: 700;
	line-height: 1.25;
}

.jk-blog h4,
.jk-blog .heading-4 {
	font-size: 25px !important;
	font-weight: 700;
	line-height: 1.25;
}

.jk-blog h5,
.jk-blog .heading-5 {
	font-size: 22px !important;
	font-weight: 700;
	line-height: 1.3;
}

.jk-blog h6,
.jk-blog .heading-6 {
	font-family: "BrandingSF", sans-serif !important;
	font-size: 20px !important;
	font-weight: 700;
	margin: 0;
	line-height: 1.3;
}

/* Cím alatti térköz alap; Elementor felülírhatja */
:where(.jk-blog .entry-content) :is(h1, h2, h3, h4, h5, h6, .heading-3, .heading-4, .heading-5, .heading-6) {
	margin-block-end: 20px;
}

.jk-blog a,
.jk-blog li,
.jk-blog button,
.jk-blog input,
.jk-blog textarea,
.jk-blog select {
	font-family: inherit;
}

.jk-blog a,
.jk-blog li {
	font-size: inherit;
}

.jk-blog p,
.jk-blog .jk-blog-excerpt {
	font-family: "BrandingSF-medium", sans-serif;
	font-size: 14px;
	color: var(--jk-text-main);
	padding-bottom: 10px;
}

.jk-blog .jk-blog-excerpt {
	padding-bottom: 0;
}

.jk-blog .smaller {
	font-family: "BrandingSF-medium", sans-serif;
	font-size: 14px;
}

.jk-blog .jk-blog-no-pad {
	padding-bottom: 0;
	margin-bottom: 0;
}

/* Kártyacímek: mintában h6 + Tailwind méretek (text-xl / text-2xl / text-3xl) */
.jk-blog .jk-blog-card-title {
	font-family: "BrandingSF", sans-serif !important;
	font-weight: 700;
	color: var(--jk-primary) !important;
	line-height: 1.25;
	margin: 0;
}

.jk-blog .jk-blog-card-title--regular {
	font-size: 1.25rem !important; /* text-xl */
}

.jk-blog .jk-blog-card-title--featured {
	font-size: 1.5rem !important; /* text-2xl */
}

@media (min-width: 768px) {
	.jk-blog .jk-blog-card-title--featured {
		font-size: 1.875rem !important; /* text-3xl */
	}
}

.jk-blog .jk-blog-sidebar-title {
	font-family: "BrandingSF", sans-serif !important;
	font-size: 1.25rem !important; /* text-xl */
	font-weight: 700;
	color: var(--jk-primary) !important;
	margin: 0 0 1.5rem;
	line-height: 1.3;
}

.jk-blog .bg-gray {
	background-color: var(--jk-bg-gray);
}

.jk-blog .btn-secondary {
	background-color: transparent;
	padding: 14px 24px;
	border-radius: 34px;
	border: 2px solid rgba(37, 54, 124, 0.2);
	color: var(--jk-primary);
	text-align: center;
	display: inline-block;
	text-decoration: none;
	font-family: "BrandingSF", sans-serif;
	font-size: 14px;
	line-height: 1.4;
	transition: border-color 0.3s ease, box-shadow 0.2s ease;
}

.jk-blog .btn-secondary:hover {
	border-color: var(--jk-primary);
}

.jk-blog .btn-secondary.btn-small {
	padding: 8px 24px;
	font-size: 14px;
	line-height: 22px;
}

.jk-blog .btn-secondary:focus,
.jk-blog .btn-secondary:focus-visible {
	outline: 3px solid var(--jk-primary);
	outline-offset: 2px;
	border-color: var(--jk-primary);
}

.jk-blog .btn-secondary.szeles,
.jk-blog .btn-primary.szeles,
body.jk-blog-standalone .btn-primary.szeles,
body.jk-blog-standalone .btn-secondary.szeles {
	display: inline-flex;
	min-width: 180px;
	justify-content: center;
}

/* 404 */
.jk-blog .jk-blog-404 {
	min-height: 70vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 4rem 1.5rem;
}

.jk-blog .jk-blog-404__code {
	font-size: 4.5rem;
	line-height: 1;
	font-weight: 700;
	color: var(--jk-primary);
	margin: 0 0 1rem;
	font-family: "BrandingSF", sans-serif;
}

.jk-blog .jk-blog-404__heading {
	font-size: 1.5rem;
	line-height: 2rem;
	font-weight: 600;
	color: #1f2937;
	margin: 0 0 1.5rem;
	font-family: "BrandingSF", sans-serif;
}

.jk-blog .jk-blog-404__text {
	max-width: 36rem;
	margin: 0 0 2rem;
	padding-bottom: 0;
	color: var(--jk-text-main);
}

.jk-blog .jk-blog-404__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
}

.jk-blog .banner-section1 {
	padding: 30px;
	position: relative;
	background-color: transparent;
}

@media (min-width: 640px) {
	.jk-blog .banner-section1--bg {
		min-height: 280px;
		background-image: var(--jk-banner-image, url("../img/blog/banner_jarokelo.png"));
		background-size: cover;
		background-position: center;
		background-repeat: no-repeat;
	}
}

.jk-blog .banner {
	background-color: var(--jk-banner-bg);
	color: #fff;
	padding: 30px 60px;
	border-radius: 32px;
	max-width: 620px;
	margin-left: auto;
	margin-right: auto;
}

.jk-blog .banner--wide {
	max-width: 1200px;
}

.jk-blog .banner h1,
.jk-blog .banner .jk-blog-banner-title {
	font-family: "BrandingSF", sans-serif !important;
	color: #fff !important;
	font-weight: 700;
	font-size: 28px !important;
	margin: 0 !important;
	line-height: 1.2;
	padding-bottom: 0;
}

.jk-blog .banner p {
	font-family: "BrandingSF-medium", sans-serif;
	color: #fff;
	font-size: 16px;
	padding-top: 10px;
	padding-bottom: 0;
	margin: 0;
}

body.category .jk-blog .jk-blog-list-section,
body.tax-post_tag .jk-blog .jk-blog-list-section,
body.archive:not(.home) .jk-blog .jk-blog-list-section {
	margin-top: 2rem;
}

.jk-blog .jk-blog-search-mobile {
	display: block;
	/* padding: a margin a pt-0 szülőben összeomlana */
	margin-top: 2rem;
	margin-bottom: 2rem;
	padding: 1rem;
	position: relative;
	z-index: 1;
	background-color: var(--jk-bg-gray);
	border-radius: 32px;
}

.jk-blog .jk-blog-single-section > .jk-blog-search-mobile {
	margin-top: 0;
	margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
	.jk-blog .jk-blog-search-mobile {
		display: none;
	}
}

.jk-blog .jk-blog-search {
	display: flex;
	background: #fff;
	border-radius: 32px;
	gap: 0.5rem;
	padding: 0.5rem;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	border: 1px solid #f3f4f6;
}

.jk-blog .jk-blog-search label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.jk-blog .jk-blog-search input[type="search"] {
	flex: 1;
	min-width: 0;
	border: 0 !important;
	box-shadow: none !important;
	outline: none;
	padding: 0.75rem 1rem !important;
	font-family: "BrandingSF-medium", sans-serif !important;
	font-size: 16px;
	color: var(--jk-text-main) !important;
	background: transparent;
	border-radius: 8px;
}

.jk-blog .jk-blog-search input[type="search"]:focus,
.jk-blog .jk-blog-search input[type="search"]:focus-visible {
	outline: 2px solid var(--jk-primary);
	outline-offset: 0;
}

.jk-blog .jk-blog-search button[type="submit"] {
	background: var(--jk-secondary);
	width: 60px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 9999px;
	border: 0;
	flex-shrink: 0;
	cursor: pointer;
	color: var(--jk-primary);
	transition: opacity 0.2s ease;
}

.jk-blog .jk-blog-search button[type="submit"]:hover {
	opacity: 0.9;
}

.jk-blog .jk-blog-search button[type="submit"]:focus,
.jk-blog .jk-blog-search button[type="submit"]:focus-visible {
	outline: 3px solid var(--jk-primary);
	outline-offset: 2px;
}

.jk-blog .jk-blog-pagination a,
.jk-blog .jk-blog-pagination span {
	color: #2d3a82;
	font-weight: 700;
	text-decoration: none;
}

.jk-blog .jk-blog-pagination a:hover {
	text-decoration: underline;
}

.jk-blog .jk-blog-pagination a:focus,
.jk-blog .jk-blog-pagination a:focus-visible {
	outline: 3px solid var(--jk-primary);
	outline-offset: 2px;
}

.jk-blog .jk-blog-pagination .is-current {
	background: var(--jk-primary);
	color: #fff;
}

.jk-blog .entry-content {
	max-width: none;
	line-height: 1.7;
	color: var(--jk-text-main);
	font-family: "BrandingSF-medium", sans-serif;
	font-size: 14px;
}

/* Bekezdések: szín inherit; térköz margin-nel (Elementor paragraph_spacing felülírhatja) */
.jk-blog .entry-content p {
	padding-bottom: 0;
	color: inherit;
}

:where(.jk-blog .entry-content) p {
	margin-block-end: 20px;
}

.jk-blog .entry-content .elementor-element p {
	padding-bottom: 0;
}

/* Tailwind/preflight list-style: none felülírása a poszt tartalomban */
.jk-blog .entry-content ul:not(.blh-gallery),
.jk-blog .entry-content ol {
	margin: 0;
	padding: 0 0 0 1.5rem;
	font-family: "BrandingSF-medium", sans-serif;
	font-size: 14px;
	line-height: 1.7;
}

/* Lista alatti térköz: alap 20px, Elementor Paragraph Spacing felülírhatja */
:where(.jk-blog .entry-content) ul:not(.blh-gallery),
:where(.jk-blog .entry-content) ol {
	margin-block-end: 20px;
}

.jk-blog .entry-content ul:not(.blh-gallery) {
	list-style-type: disc;
	list-style-position: outside;
}

.jk-blog .entry-content ol {
	list-style-type: decimal;
	list-style-position: outside;
}

.jk-blog .entry-content ul:not(.blh-gallery) ul {
	list-style-type: circle;
	margin-top: 0.5rem;
	margin-bottom: 0.5rem;
}

.jk-blog .entry-content ul:not(.blh-gallery) ul ul {
	list-style-type: square;
}

.jk-blog .entry-content ol ol {
	list-style-type: lower-alpha;
	margin-top: 0.5rem;
	margin-bottom: 0.5rem;
}

.jk-blog .entry-content li {
	margin: 0 0 0.5rem;
	padding: 0;
	font-family: "BrandingSF-medium", sans-serif;
	font-size: 14px;
	line-height: 1.7;
}

.jk-blog .entry-content li:last-child {
	margin-bottom: 0;
}

.jk-blog .entry-content li > p {
	padding-bottom: 0;
}

.jk-blog .entry-content h1,
.jk-blog .entry-content h2,
.jk-blog .entry-content h3,
.jk-blog .entry-content h4,
.jk-blog .entry-content h5,
.jk-blog .entry-content h6 {
	font-family: "BrandingSF", sans-serif !important;
}

/*
 * Címek alap színe gyenge specificitással (:where),
 * így az Elementor egyedi címszíne mindig felülírhatja.
 */
:where(.jk-blog .entry-content) :is(h1, h2, h3, h4, h5, h6) {
	color: var(--jk-primary);
}

/* Elementor Heading: alap a wrapperen, a cím örököl – egyedi szín a címre mehet */
.jk-blog .entry-content .elementor-widget-heading {
	color: var(--jk-primary);
}

:where(.jk-blog .entry-content .elementor-widget-heading) .elementor-heading-title {
	color: inherit;
}

/*
 * Elementor: a widgeten beállított szín öröklődjön a belső szövegre
 * (bekezdés + lista). Optimized DOM esetén nincs mindig widget-container.
 */
.jk-blog .entry-content .elementor-element p,
.jk-blog .entry-content .elementor-element li,
.jk-blog .entry-content .elementor-element ul:not(.blh-gallery),
.jk-blog .entry-content .elementor-element ol,
.jk-blog .entry-content .elementor-widget-container p,
.jk-blog .entry-content .elementor-widget-container li,
.jk-blog .entry-content .elementor-widget-container ul:not(.blh-gallery),
.jk-blog .entry-content .elementor-widget-container ol {
	color: inherit;
}

.jk-blog .entry-content > *:first-child {
	margin-top: 0;
}

.jk-blog .entry-content img {
	max-width: 100%;
	height: auto;
	display: block;
	margin-inline: auto;
	margin-block: 1rem 1.25rem;
}

.jk-blog .entry-content figure,
.jk-blog .entry-content .wp-caption,
.jk-blog .entry-content .aligncenter {
	display: block;
	margin-inline: auto;
	text-align: center;
}

.jk-blog .entry-content img.alignleft,
.jk-blog .entry-content .alignleft img {
	margin-inline: 0 1rem 1rem 0;
	float: left;
}

.jk-blog .entry-content img.alignright,
.jk-blog .entry-content .alignright img {
	margin-inline: 0 0 1rem 1rem;
	float: right;
}

/* Elementor kép widget: alapból középre */
.jk-blog .entry-content .elementor-widget-image {
	text-align: center;
	margin-block-end: 0;
}

.jk-blog .entry-content .elementor-widget-image img {
	display: inline-block;
	margin-inline: auto;
	margin-block: 0;
	vertical-align: middle;
}

.jk-blog .entry-content a {
	color: var(--jk-primary);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.jk-blog .entry-content a:focus,
.jk-blog .entry-content a:focus-visible {
	outline: 3px solid var(--jk-primary);
	outline-offset: 2px;
}

.jk-blog .jk-blog-card-link:focus,
.jk-blog .jk-blog-card-link:focus-visible {
	outline: 3px solid var(--jk-primary);
	outline-offset: 2px;
}

.jk-blog .jk-blog-sidebar-cats a {
	color: var(--jk-primary);
	text-decoration: none;
}

.jk-blog .jk-blog-sidebar-cats a:hover {
	text-decoration: underline;
}

.jk-blog .jk-blog-sidebar-cats a:focus,
.jk-blog .jk-blog-sidebar-cats a:focus-visible {
	outline: 3px solid var(--jk-primary);
	outline-offset: 2px;
}

/* Lista layout: 8+4, kártyák 2 oszlopban (ne egymás alatt) */
.jk-blog .jk-blog-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 3rem;
	align-items: start;
}

body.search .jk-blog .jk-blog-layout {
	padding-top: 2rem;
}

/* Single: poszt vége és lábléc közötti térköz felezve (py-12 alsó fele) */
.jk-blog .jk-blog-single-section {
	padding-top: 1.5rem;
	padding-bottom: 1.5rem;
}

.jk-blog .jk-blog-main {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

/* Dátum/kategória + kiemelt kép (felette és alatta ugyanaz a 2rem) */
.jk-blog .jk-blog-cat-link {
	color: inherit;
	text-decoration: none;
	text-underline-offset: 3px;
}

.jk-blog .jk-blog-cat-link:hover {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	color: var(--jk-primary);
}

.jk-blog .jk-blog-cat-link:focus,
.jk-blog .jk-blog-cat-link:focus-visible {
	outline: 3px solid var(--jk-primary);
	outline-offset: 2px;
	border-radius: 2px;
}

.jk-blog .jk-blog-post-lead {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.jk-blog .jk-blog-post-lead > .jk-blog-featured-image {
	margin-top: 0;
	margin-bottom: 0;
}

.jk-blog .jk-blog-aside {
	min-width: 0;
}

.jk-blog .jk-blog-cards {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem;
}

.jk-blog .jk-blog-cards > article {
	min-width: 0;
	max-width: 100%;
	width: 100%;
	margin: 0;
	float: none;
	clear: none;
}

@media (min-width: 768px) {
	.jk-blog .jk-blog-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (min-width: 1024px) {
	.jk-blog .jk-blog-layout {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		gap: 3rem;
	}

	.jk-blog .jk-blog-main {
		grid-column: span 8 / span 8;
	}

	.jk-blog .jk-blog-aside {
		grid-column: span 4 / span 4;
	}
}

@media (max-width: 768px) {
	.jk-blog .banner-section1 {
		padding: 30px 10px 0;
	}

	.jk-blog .banner {
		padding: 20px;
	}

	.jk-blog h6,
	.jk-blog .heading-6 {
		font-size: 18px !important;
	}

	.jk-blog .smaller {
		font-size: 12px;
	}

	.jk-blog .banner h1,
	.jk-blog .banner .jk-blog-banner-title {
		font-size: 24px !important;
	}
}

/* ==========================================================================
   Fejléc + lábléc (mintaprojekt chrome)
   ========================================================================== */

body.jk-blog-standalone {
	--jk-primary: #25367c;
	--jk-secondary: #94c55d;
	/* WCAG AA: fehér háttéren ≥4,5:1 (korábbi #515e96 ~4:1) */
	--jk-text-main: #3d4b7c;
	--jk-bg-gray: #ebedf6;
	--primary-color: var(--jk-primary);
	--secondary-color: var(--jk-secondary);
	--text-main: var(--jk-text-main);
	margin: 0;
	font-family: "BrandingSF", sans-serif;
	font-size: 14px;
	color: var(--jk-primary);
	background: #fff;
}

.jk-skip-links {
	position: absolute;
	left: 0;
	top: 0;
	z-index: 1000;
}

.jk-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	padding: 0.75rem 1rem;
	background: var(--jk-primary);
	color: #fff;
	text-decoration: none;
	font-family: "BrandingSF", sans-serif;
}

.jk-skip-link:focus,
.jk-skip-link:focus-visible {
	position: static;
	left: auto;
	display: inline-block;
	margin: 0.5rem 0.25rem 0.5rem 0.5rem;
	outline: 3px solid var(--jk-secondary);
	outline-offset: 2px;
}

body.jk-blog-standalone .sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

body.jk-blog-standalone .btn-primary {
	background-color: var(--jk-secondary);
	padding: 14px 24px;
	border-radius: 34px;
	border: 0;
	color: var(--jk-primary);
	display: inline-block;
	text-align: center;
	font-size: 16px;
	font-family: "BrandingSF", sans-serif;
	text-decoration: none;
	cursor: pointer;
	line-height: 1.4;
	transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.2s ease;
}

body.jk-blog-standalone .btn-primary:hover {
	background-color: var(--jk-primary);
	color: #fff;
}

body.jk-blog-standalone .btn-primary.btn-small,
body.jk-blog-standalone .btn-secondary.btn-small {
	padding: 8px 24px;
	font-size: 14px;
	line-height: 22px;
}

body.jk-blog-standalone .btn-primary:focus,
body.jk-blog-standalone .btn-primary:focus-visible {
	outline: 3px solid var(--jk-primary);
	outline-offset: 2px;
}

body.jk-blog-standalone .btn-secondary {
	background-color: transparent;
	padding: 14px 24px;
	border-radius: 34px;
	border: 2px solid rgba(37, 54, 124, 0.2);
	color: var(--jk-primary);
	text-align: center;
	display: inline-block;
	text-decoration: none;
	font-family: "BrandingSF", sans-serif;
	cursor: pointer;
	line-height: 1.4;
}

body.jk-blog-standalone .btn-secondary:hover {
	border-color: var(--jk-primary);
}

body.jk-blog-standalone .btn-secondary:focus,
body.jk-blog-standalone .btn-secondary:focus-visible {
	outline: 3px solid var(--jk-primary);
	outline-offset: 2px;
}

body.jk-blog-standalone .medium {
	font-family: "BrandingSF-medium", sans-serif !important;
}

body.jk-blog-standalone .bold {
	font-family: "BrandingSF", sans-serif !important;
}

body.jk-blog-standalone .smaller {
	font-family: "BrandingSF-medium", sans-serif;
	font-size: 14px;
}

body.jk-blog-standalone .link {
	font-family: "BrandingSF-medium", sans-serif;
	font-size: inherit;
	cursor: pointer;
	color: inherit;
	text-decoration: underline;
	/* WCAG 1.4.11: aláhúzás ≥3:1 a sötétkék háttéren */
	text-decoration-color: rgba(255, 255, 255, 0.65);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
	transition: text-decoration-color 0.3s ease;
}

body.jk-blog-standalone .link:hover {
	text-decoration-color: #fff;
	color: #fff;
}

body.jk-blog-standalone .link:focus,
body.jk-blog-standalone .link:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* --- Nav --- */
/* Fontos: a CSS `translate` tulajdonságot használjuk (ne `transform`-ot),
   különben a sticky elromlik — ugyanez a minta a jarokelo.hu-n. */
.jk-chrome-nav {
	width: 100%;
	padding: 1rem 0.5rem;
	border-bottom: 1px solid #f3f4f6;
	background: #fff;
	position: sticky;
	top: 0;
	z-index: 100;
	translate: 0 0;
	transition: translate 0.3s ease;
}

.jk-chrome-nav.is-hidden {
	translate: 0 -100%;
}

/* Nyitott mobilmenü / nagyítás: a nav ne csússzon el, a lista görgethető legyen */
body.jk-chrome-mobile-open {
	overflow: hidden;
}

body.jk-chrome-mobile-open .jk-chrome-nav,
body.jk-chrome-mobile-open .jk-chrome-nav.is-hidden {
	translate: 0 0;
}

/* 200%+ nagyítás / keskeny layout: sticky elrejtés kikapcsolva (WCAG 1.4.4 / 1.4.10) */
@media (max-width: 1279px) {
	.jk-chrome-nav.is-hidden {
		translate: 0 0;
	}
}

.jk-chrome-nav__bar {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.jk-chrome-nav__start,
.jk-chrome-nav__actions--mobile {
	flex: 1;
}

.jk-chrome-nav__actions--mobile {
	display: flex;
	justify-content: flex-end;
}

.jk-chrome-nav__logo img {
	width: 100px;
	height: auto;
	display: block;
}

.jk-chrome-burger {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 9999px;
	border: 2px solid var(--jk-primary);
	background: #fff;
	cursor: pointer;
	padding: 0;
}

.jk-chrome-burger:focus,
.jk-chrome-burger:focus-visible {
	outline: 3px solid var(--jk-primary);
	outline-offset: 2px;
}

.jk-chrome-burger__lines {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	width: 20px;
	height: 20px;
}

.jk-chrome-burger__lines span {
	display: block;
	width: 20px;
	height: 2px;
	background: var(--jk-primary);
	transition: transform 0.3s ease;
}

.jk-chrome-burger.is-open .jk-chrome-burger__lines span:first-child {
	transform: translateY(4px) rotate(45deg);
}

.jk-chrome-burger.is-open .jk-chrome-burger__lines span:last-child {
	transform: translateY(-4px) rotate(-45deg);
}

.jk-chrome-nav__desktop,
.jk-chrome-nav__actions--desktop {
	display: none;
}

.jk-chrome-nav__link {
	font-family: "BrandingSF", sans-serif;
	font-size: 16px;
	color: var(--jk-primary);
	padding: 2rem 1rem;
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	background: transparent;
	border: 0;
	cursor: pointer;
	height: 100%;
}

.jk-chrome-nav__link:hover {
	color: var(--jk-primary);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.jk-chrome-nav__link:focus,
.jk-chrome-nav__link:focus-visible {
	color: var(--jk-primary);
	outline: 3px solid var(--jk-primary);
	outline-offset: 2px;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.jk-chrome-nav__link .jk-chrome-dd__chevron {
	display: inline-block;
	margin-left: 0.35rem;
	width: 0.5rem;
	height: 0.5rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	transition: transform 0.2s ease;
}

.jk-chrome-nav__link[aria-expanded="true"] .jk-chrome-dd__chevron {
	transform: translateY(1px) rotate(225deg);
}

.jk-chrome-nav__link[aria-current="page"] {
	font-weight: 700;
}

.jk-chrome-dd {
	position: relative;
	height: 100%;
	display: flex;
	align-items: center;
}

.jk-chrome-dd__panel {
	position: absolute;
	top: 100%;
	left: 0;
	width: 16rem;
	background: #fff;
	border-radius: 8px;
	padding: 0.5rem 0;
	z-index: 50;
	border: 1px solid #f3f4f6;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.jk-chrome-dd__item {
	display: block;
	padding: 0.5rem 1rem;
	color: var(--jk-primary);
	text-decoration: none;
}

.jk-chrome-dd__item:hover {
	background: #f9fafb;
}

.jk-chrome-dd__item:focus,
.jk-chrome-dd__item:focus-visible {
	background: #f9fafb;
	outline: 3px solid var(--jk-primary);
	outline-offset: -3px;
}

.jk-chrome-ext {
	margin-left: 0.25rem;
	font-size: 0.875rem;
}

.jk-chrome-backdrop {
	position: fixed;
	inset: 88px 0 0 0;
	background: rgba(37, 54, 124, 0.4);
	z-index: -1;
}

.jk-chrome-mobile {
	background: #fff;
	border-bottom: 1px solid #e5e7eb;
	max-height: min(70vh, calc(100dvh - 5.5rem));
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
}

.jk-chrome-mobile__cta {
	padding: 1rem;
	background: #f9fafb;
}

.jk-chrome-mobile__cta-btn {
	display: block;
	width: 100%;
	text-align: center;
}

.jk-chrome-mobile__trigger,
.jk-chrome-mobile__link {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.25rem 1.5rem;
	font-family: "BrandingSF", sans-serif;
	font-weight: 700;
	font-size: 16px;
	color: var(--jk-primary);
	background: transparent;
	border: 0;
	border-bottom: 1px solid #f3f4f6;
	text-decoration: none;
	cursor: pointer;
	text-align: left;
}

.jk-chrome-mobile__trigger img {
	transition: transform 0.3s ease;
}

.jk-chrome-mobile__group.is-open .jk-chrome-mobile__trigger img {
	transform: rotate(180deg);
}

.jk-chrome-mobile__panel {
	background: #fff;
}

.jk-chrome-mobile__accent {
	height: 3px;
	background: #a3cf4d;
	margin: 0 1.5rem;
	border-radius: 3px 3px 0 0;
}

.jk-chrome-mobile__panel a {
	display: block;
	padding: 0.75rem 2rem;
	color: var(--jk-primary);
	text-decoration: none;
	font-family: "BrandingSF-medium", sans-serif;
}

.jk-chrome-mobile__panel a:hover {
	background: #f9fafb;
}

.jk-chrome-mobile__panel a:focus,
.jk-chrome-mobile__panel a:focus-visible,
.jk-chrome-mobile__trigger:focus,
.jk-chrome-mobile__trigger:focus-visible,
.jk-chrome-mobile__link:focus,
.jk-chrome-mobile__link:focus-visible {
	background: #f9fafb;
	outline: 3px solid var(--jk-primary);
	outline-offset: -3px;
}

.jk-chrome-burger:focus,
.jk-chrome-burger:focus-visible {
	outline: 3px solid var(--jk-primary);
	outline-offset: 2px;
}

@media (min-width: 640px) {
	.jk-chrome-nav__logo img {
		width: 130px;
	}
}

@media (min-width: 1280px) {
	.jk-chrome-nav {
		padding: 0 1rem;
	}

	.jk-chrome-nav__bar {
		justify-content: flex-start;
	}

	.jk-chrome-nav__start,
	.jk-chrome-nav__actions--mobile,
	.jk-chrome-burger {
		display: none;
	}

	.jk-chrome-nav__logo {
		margin-right: 2rem;
		flex: none;
	}

	.jk-chrome-nav__desktop {
		display: flex;
		align-items: stretch;
		flex-grow: 1;
		align-self: stretch;
		gap: 0.25rem;
	}

	.jk-chrome-nav__actions--desktop {
		display: flex;
		align-items: center;
		gap: 1rem;
		margin-left: auto;
	}

	.jk-chrome-mobile {
		display: none !important;
	}
}

/* --- Footer --- */
.jk-chrome-footer {
	background-color: var(--jk-primary);
	color: #fff;
	padding: 4rem 1rem;
}

.jk-chrome-footer__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 4rem;
}

.jk-chrome-footer__heading {
	font-family: "BrandingSF", sans-serif !important;
	font-size: 20px !important;
	font-weight: 700;
	color: #fff !important;
	margin: 0 0 1.5rem;
}

.jk-chrome-footer__contacts {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.jk-chrome-footer__muted {
	/* WCAG AA: sötétkék háttéren ≥4,5:1 */
	color: #e8eaf4;
	padding-bottom: 0.5rem !important;
	margin: 0;
	font-family: "BrandingSF-medium", sans-serif;
}

.jk-chrome-footer__legal {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: 1rem;
}

.jk-chrome-footer__legal .link,
.jk-chrome-footer__legal .jk-chrome-footer__cookie-btn {
	margin-bottom: 0.5rem;
}

.jk-chrome-footer__cookie-btn {
	appearance: none;
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	text-align: left;
	cursor: pointer;
	color: inherit;
}

.jk-chrome-footer__copy {
	/* WCAG AA: sötétkék háttéren ≥4,5:1 */
	color: #d5dae8;
	margin-top: 0.5rem;
}

.jk-chrome-social {
	list-style: none;
	margin: 1.5rem 0 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 1rem;
}

.jk-chrome-social__link {
	display: inline-flex;
	padding: 0.5rem;
	border: 2px solid rgba(255, 255, 255, 0.2);
	border-radius: 9999px;
	transition: border-color 0.3s ease;
}

.jk-chrome-social__link:hover {
	border-color: #fff;
}

.jk-chrome-social__link:focus,
.jk-chrome-social__link:focus-visible {
	border-color: #fff;
	outline: 3px solid #fff;
	outline-offset: 2px;
}

.jk-chrome-social__link img {
	width: 16px;
	height: 16px;
	display: block;
}

.jk-chrome-footer__col--form {
	border: 2px solid #fff;
	border-radius: 32px;
	padding: 1rem;
}

.jk-chrome-newsletter {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.jk-chrome-newsletter__required-hint {
	color: #e8eaf4;
	margin: 0;
}

.jk-chrome-newsletter__req {
	color: #ffd6d6;
	font-weight: 700;
	margin-left: 0.15rem;
}

.jk-chrome-footer input.is-invalid,
.jk-chrome-footer input[aria-invalid="true"] {
	border-color: #ffb4b4 !important;
	outline: 2px solid #ffb4b4;
	outline-offset: 1px;
}

.jk-chrome-footer .custom-checkbox-container input.is-invalid + .checkmark,
.jk-chrome-footer .custom-checkbox-container input[aria-invalid="true"] + .checkmark {
	border-color: #ffb4b4;
	outline: 2px solid #ffb4b4;
	outline-offset: 2px;
}

.jk-chrome-newsletter__row {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.jk-chrome-newsletter__field {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	flex: 1;
}

.jk-chrome-footer label.smaller {
	color: #fff;
	font-family: "BrandingSF", sans-serif;
}

.jk-chrome-footer input[type="text"],
.jk-chrome-footer input[type="email"] {
	font-family: "BrandingSF-medium", sans-serif !important;
	font-size: 16px;
	border: 3px solid rgba(255, 255, 255, 0.7);
	border-radius: 8px;
	padding: 8px 15px !important;
	background: transparent;
	color: #fff !important;
	caret-color: #fff;
	width: 100%;
	box-sizing: border-box;
}

.jk-chrome-footer input::placeholder {
	/* WCAG AA közelítés: világosabb placeholder a sötétkék mezőn */
	color: rgba(255, 255, 255, 0.85) !important;
}

.jk-chrome-footer input:focus,
.jk-chrome-footer input:focus-visible {
	border-color: #fff !important;
	outline: 3px solid #fff !important;
	outline-offset: 2px;
	box-shadow: none;
}

#hirlevel {
	scroll-margin-top: 6rem;
}

.jk-chrome-newsletter__submit {
	width: 100%;
	border: 0;
}

body.jk-blog-standalone .jk-chrome-newsletter__submit:hover {
	background-color: #fff;
	color: var(--jk-primary);
}

.jk-chrome-newsletter__msg {
	border-radius: 0.5rem;
	padding: 0.5rem 0.75rem;
	font-size: 14px;
}

.jk-chrome-newsletter__msg.msg-error {
	background-color: #fde8e8;
	border: 2px solid #be1b1b;
	color: #be1b1b;
}

.jk-chrome-footer .custom-checkbox-container {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	cursor: pointer;
	font-family: "BrandingSF-medium", sans-serif;
	color: #fff;
	user-select: none;
	margin-bottom: 0.75rem;
	position: relative;
}

.jk-chrome-footer .custom-checkbox-container input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
}

.jk-chrome-footer .checkmark {
	height: 32px;
	width: 32px;
	background-color: transparent;
	border: 3px solid rgba(255, 255, 255, 0.7);
	border-radius: 4px;
	flex-shrink: 0;
	position: relative;
	transition: all 0.2s ease;
}

.jk-chrome-footer .custom-checkbox-container:hover .checkmark {
	border-color: #fff;
}

.jk-chrome-footer .custom-checkbox-container input:focus + .checkmark,
.jk-chrome-footer .custom-checkbox-container input:focus-visible + .checkmark {
	border-color: #fff;
	outline: 3px solid #fff;
	outline-offset: 3px;
}

.jk-chrome-footer .custom-checkbox-container input:checked + .checkmark {
	background-color: #fff;
	border-color: #fff;
}

.jk-chrome-footer .checkmark:after {
	content: "";
	position: absolute;
	display: none;
	left: 8px;
	top: 3px;
	width: 8px;
	height: 14px;
	border: solid var(--jk-primary);
	border-width: 0 3px 3px 0;
	transform: rotate(45deg);
}

.jk-chrome-footer .custom-checkbox-container input:checked + .checkmark:after {
	display: block;
}

.jk-chrome-newsletter__checks {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: 0.5rem;
}

@media (min-width: 640px) {
	.jk-chrome-footer__col--form {
		padding: 2rem;
	}
}

@media (min-width: 768px) {
	.jk-chrome-newsletter__row {
		flex-direction: row;
	}
}

@media (min-width: 1024px) {
	.jk-chrome-footer__inner {
		flex-direction: row;
	}

	.jk-chrome-footer__col--info {
		width: 41.6%;
	}

	.jk-chrome-footer__col--form {
		width: 58.3%;
	}
}

/* Süti hozzájárulás modal */
.jk-cookie-backdrop {
	position: fixed;
	inset: 0;
	z-index: 200;
	background: rgba(0, 0, 0, 0.5);
}

.jk-cookie-modal {
	position: fixed;
	inset: 0;
	z-index: 210;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	overflow-y: auto;
}

.jk-cookie-modal[hidden],
.jk-cookie-backdrop[hidden] {
	display: none !important;
}

.jk-cookie-modal__panel {
	position: relative;
	width: 100%;
	max-width: 750px;
	margin: auto;
	background: #fff;
	border-radius: 0;
	display: flex;
	flex-direction: column;
	box-shadow: 0 20px 40px rgba(37, 54, 124, 0.18);
}

@media (min-width: 640px) {
	.jk-cookie-modal__panel {
		border-radius: 32px;
	}
}

.jk-cookie-modal__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	z-index: 2;
	padding: 0.25rem;
	color: var(--jk-primary);
	background: transparent;
	border: 2px solid #25367c;
	border-radius: 9999px;
	cursor: pointer;
	line-height: 0;
	transition: background-color 0.2s ease;
}

.jk-cookie-modal__close:hover {
	background-color: #f3f4f6;
}

.jk-cookie-modal__close:focus,
.jk-cookie-modal__close:focus-visible {
	outline: 3px solid var(--jk-primary);
	outline-offset: 2px;
}

.jk-cookie-modal__close-icon {
	width: 1.25rem;
	height: 1.25rem;
	display: block;
}

.jk-cookie-modal__body {
	padding: 1rem;
}

@media (min-width: 768px) {
	.jk-cookie-modal__body {
		padding: 2.5rem;
	}
}

.jk-cookie-modal__title {
	font-size: 1.5rem;
	line-height: 2rem;
	font-weight: 700;
	color: var(--jk-text-main);
	margin: 0 0 1rem;
	padding-right: 1.5rem;
	font-family: "BrandingSF", sans-serif;
}

.jk-cookie-modal__intro {
	line-height: 1.625;
	margin: 0 0 0.5rem;
	padding-bottom: 0;
	color: var(--jk-text-main);
}

.jk-cookie-modal .link {
	color: var(--jk-primary);
	text-decoration: underline;
	/* WCAG 1.4.11: aláhúzás ≥3:1 fehér háttéren */
	text-decoration-color: rgba(37, 54, 124, 0.7);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
	font-weight: 500;
}

.jk-cookie-modal .link:hover {
	color: var(--jk-primary);
	text-decoration-color: var(--jk-primary);
}

.jk-cookie-modal .link:focus,
.jk-cookie-modal .link:focus-visible {
	outline: 3px solid var(--jk-primary);
	outline-offset: 2px;
}

.jk-cookie-modal__choices {
	margin-top: 0;
}

.jk-cookie-modal__choices-label {
	margin: 0 0 1rem;
	padding-bottom: 0;
	color: var(--jk-text-main);
}

.jk-cookie-modal__options {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}

.jk-cookie-modal__option {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	cursor: pointer;
}

.jk-cookie-modal__option--locked {
	opacity: 0.7;
	cursor: not-allowed;
}

.jk-cookie-modal__option-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.jk-cookie-modal__option-text .smaller {
	color: var(--jk-primary);
}

.jk-cookie-modal__option-text p.smaller {
	/* WCAG AA: fehér háttéren ≥4,5:1 */
	color: #374151;
	margin: 0;
	padding-bottom: 0;
}

.jk-cookie-modal .custom-checkbox-container {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	cursor: pointer;
	user-select: none;
	flex-shrink: 0;
	margin: 0;
}

.jk-cookie-modal .custom-checkbox-container input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
}

.jk-cookie-modal .checkmark {
	height: 28px;
	width: 28px;
	background-color: transparent;
	border: 2px solid var(--jk-primary);
	border-radius: 4px;
	flex-shrink: 0;
	position: relative;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.jk-cookie-modal .custom-checkbox-container:hover .checkmark {
	border-color: var(--jk-primary);
}

.jk-cookie-modal .custom-checkbox-container input:focus + .checkmark,
.jk-cookie-modal .custom-checkbox-container input:focus-visible + .checkmark {
	border-color: var(--jk-primary);
	outline: 3px solid var(--jk-primary);
	outline-offset: 3px;
	box-shadow: none;
}

.jk-cookie-modal .custom-checkbox-container input:checked + .checkmark {
	background-color: var(--jk-primary);
	border-color: var(--jk-primary);
}

.jk-cookie-modal .checkmark:after {
	content: "";
	position: absolute;
	display: none;
	left: 8px;
	top: 3px;
	width: 6px;
	height: 12px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.jk-cookie-modal .custom-checkbox-container input:checked + .checkmark:after {
	display: block;
}

.jk-cookie-modal__option--locked .custom-checkbox-container {
	cursor: not-allowed;
}

.jk-cookie-modal__footer {
	padding: 0 1.5rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	justify-content: flex-end;
}

.jk-cookie-modal__action {
	width: 100%;
}

@media (min-width: 640px) {
	.jk-cookie-modal__footer {
		flex-direction: row;
	}

	.jk-cookie-modal__action {
		width: auto;
	}
}

body.jk-cookie-open {
	overflow: hidden;
}
