/* JoyNewsRoom homepage — Option A (hero + sidebar + 3-column grids)
   Everything is scoped to .jnr-home so it cannot affect the rest of the site. */

.jnr-home {
	--jnr-ink: #12151a;
	--jnr-body: #59616e;
	--jnr-muted: #838b98;
	--jnr-line: #e3e7ed;
	--jnr-accent: #1d4ed8;
	--jnr-soft: #f6f7f9;
	--jnr-radius: 6px;
	--jnr-gap: 28px;

	color: var(--jnr-ink);
	line-height: 1.5;
}

.jnr-home *,
.jnr-home *::before,
.jnr-home *::after {
	box-sizing: border-box;
}

/* ---------------- headings ---------------- */
.jnr-home .jnr-heading {
	position: relative;
	margin: 0;
	padding-left: 14px;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
	border: 0;
}

.jnr-home .jnr-heading::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.15em;
	bottom: 0.15em;
	width: 4px;
	border-radius: 2px;
	background: var(--jnr-accent);
}

.jnr-home .jnr-heading--tight {
	font-size: 1.05rem;
	padding-bottom: 14px;
	margin-bottom: 4px;
	border-bottom: 1px solid var(--jnr-line);
}

.jnr-home .jnr-heading--tight::before {
	bottom: auto;
	height: 1em;
}

.jnr-home .jnr-block__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
}

.jnr-home .jnr-block__all {
	flex: none;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--jnr-accent);
	text-decoration: none;
}

.jnr-home .jnr-block__all:hover,
.jnr-home .jnr-block__all:focus-visible {
	text-decoration: underline;
}

/* ---------------- section rhythm ---------------- */
.jnr-home .jnr-hero {
	padding-block: 36px 40px;
}

.jnr-home .jnr-block {
	padding-block: 34px;
	border-top: 1px solid var(--jnr-line);
}

/* ---------------- hero ---------------- */
.jnr-home .jnr-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr);
	gap: var(--jnr-gap);
	align-items: start;
}

.jnr-home .jnr-hero__side {
	display: flex;
	flex-direction: column;
	padding-left: var(--jnr-gap);
	border-left: 1px solid var(--jnr-line);
}

/* ---------------- cards (shared) ---------------- */
.jnr-home .jnr-card {
	min-width: 0;
	margin: 0;
}

.jnr-home .jnr-card__media {
	display: block;
	position: relative;
	overflow: hidden;
	border-radius: var(--jnr-radius);
	background: #eef1f5;
	aspect-ratio: 5 / 3;
	text-decoration: none;
}

.jnr-home .jnr-card__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	display: block;
	margin: 0;
	border-radius: inherit;
}

.jnr-home .jnr-noimg {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-size: 2rem;
	font-weight: 700;
	color: #aeb6c2;
	background: var(--jnr-soft);
}

.jnr-home .jnr-card__cat {
	display: inline-block;
	margin-bottom: 6px;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--jnr-accent);
	text-decoration: none;
}

.jnr-home .jnr-card__cat:hover,
.jnr-home .jnr-card__cat:focus-visible {
	text-decoration: underline;
}

.jnr-home .jnr-card__title {
	margin: 0;
	padding: 0;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
	border: 0;
}

.jnr-home .jnr-card__title a {
	color: inherit;
	text-decoration: none;
	box-shadow: none;
}

.jnr-home .jnr-card__title a:hover,
.jnr-home .jnr-card__title a:focus-visible {
	color: var(--jnr-accent);
}

.jnr-home .jnr-card__excerpt {
	margin: 10px 0 0;
	max-width: 62ch;
	color: var(--jnr-body);
	font-size: 1rem;
	line-height: 1.6;
}

.jnr-home .jnr-card__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 0 0;
	color: var(--jnr-muted);
	font-size: 0.8rem;
}

.jnr-home .jnr-card__author {
	font-weight: 600;
	color: var(--jnr-body);
}

.jnr-home .jnr-card__dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.6;
	flex: none;
}

/* ---------------- lead card ---------------- */
.jnr-home .jnr-card--lead {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 26px;
	align-items: start;
}

.jnr-home .jnr-card--lead .jnr-card__media {
	aspect-ratio: 4 / 3;
}

.jnr-home .jnr-card--lead .jnr-card__title {
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	line-height: 1.18;
}

.jnr-home .jnr-card--lead .jnr-card__cat {
	font-size: 0.82rem;
}

/* ---------------- row card (sidebar) ---------------- */
.jnr-home .jnr-card--row {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
	padding-block: 16px;
	border-bottom: 1px solid var(--jnr-line);
}

.jnr-home .jnr-hero__side .jnr-card--row:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.jnr-home .jnr-card--row .jnr-card__media {
	aspect-ratio: 4 / 3;
}

.jnr-home .jnr-card--row .jnr-card__cat {
	margin-bottom: 3px;
	font-size: 0.72rem;
}

.jnr-home .jnr-card--row .jnr-card__title {
	font-size: 0.95rem;
}

.jnr-home .jnr-card--row .jnr-card__meta {
	margin-top: 6px;
}

/* ---------------- category grid ---------------- */
.jnr-home .jnr-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px var(--jnr-gap);
}

.jnr-home .jnr-grid .jnr-card__body {
	padding-top: 12px;
}

/* ---------------- newsletter ---------------- */
.jnr-home .jnr-news {
	margin-top: 34px;
	padding-block: 40px 8px;
}

.jnr-home .jnr-news__widget {
	padding: 40px;
	border-radius: 10px;
	background: var(--jnr-accent);
	color: #fff;
}

.jnr-home .jnr-news__title {
	margin: 0 0 10px;
	font-size: 1.6rem;
	line-height: 1.25;
	color: #fff;
}

.jnr-home .jnr-news__widget a {
	color: #fff;
}

/* ---------------- accessibility ---------------- */
.jnr-home a:focus-visible {
	outline: 2px solid var(--jnr-accent);
	outline-offset: 3px;
	border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.jnr-home * {
		transition: none !important;
		animation: none !important;
	}
}

/* ---------------- responsive ---------------- */
@media (max-width: 1024px) {
	.jnr-home .jnr-hero__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.jnr-home .jnr-hero__side {
		padding-left: 0;
		border-left: 0;
		border-top: 1px solid var(--jnr-line);
		padding-top: 18px;
	}

	.jnr-home .jnr-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	.jnr-home .jnr-card--lead {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.jnr-home .jnr-card--lead .jnr-card__media {
		aspect-ratio: 16 / 9;
	}

	.jnr-home .jnr-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 26px;
	}

	.jnr-home .jnr-card--row {
		grid-template-columns: 84px minmax(0, 1fr);
	}

	.jnr-home .jnr-hero {
		padding-block: 24px 28px;
	}

	.jnr-home .jnr-block {
		padding-block: 26px;
	}
}

/* ---------------------------------------------------------------
   Page-chrome fixes — scoped to the shortcode page only.
   Hide the theme's page title + breadcrumb, break out of the narrow
   content container, and neutralise any <code> wrapper.
   --------------------------------------------------------------- */
body.jnr-home-page .entry-title,
body.jnr-home-page .page-title,
body.jnr-home-page .post-title,
body.jnr-home-page .breadcrumbs,
body.jnr-home-page .breadcrumb,
body.jnr-home-page .rank-math-breadcrumb,
body.jnr-home-page nav[aria-label="Breadcrumb"],
body.jnr-home-page nav[aria-label="Breadcrumbs"],
body.jnr-home-page .wrap.post-hero,
body.jnr-home-page .post-hero {
	display: none !important;
}

/* Remove leftover top spacing on the article/content wrappers. */
body.jnr-home-page article.hentry,
body.jnr-home-page .article,
body.jnr-home-page .page-content,
body.jnr-home-page #content {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

body.jnr-home-page #content,
body.jnr-home-page .page-content,
body.jnr-home-page article.hentry,
body.jnr-home-page .article,
body.jnr-home-page .entry-content {
	max-width: none !important;
	width: auto !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	float: none !important;
}

body.jnr-home-page .jnr-home {
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 20px;
}

body.jnr-home-page .jnr-home,
body.jnr-home-page .jnr-home * {
	font-family: inherit;
}

body.jnr-home-page .jnr-home code,
body.jnr-home-page code:has(.jnr-home) {
	display: block;
	font-family: inherit !important;
	font-size: inherit !important;
	background: none !important;
	padding: 0 !important;
	white-space: normal !important;
}
.jnr-news{ background:linear-gradient(135deg,#1657d0,#0f3f9e); color:#fff; border-radius:16px; padding:46px; position:relative; overflow:hidden; margin:40px 0 0; }
.jnr-news__inner{ position:relative; max-width:560px; }
.jnr-news__kick{ font-weight:700; font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:rgba(255,255,255,.85); }
.jnr-news__title{ color:#fff; font-size:34px; line-height:1.1; margin:12px 0 10px; font-weight:800; }
.jnr-news__text{ opacity:.9; margin-bottom:20px; font-size:16px; }
.jnr-news__form{ display:flex; gap:10px; max-width:460px; flex-wrap:wrap; }
.jnr-news__input{ flex:1; min-width:200px; padding:14px 18px; border-radius:8px; border:0; font-size:15px; }
.jnr-news__btn{ padding:14px 24px; border-radius:8px; border:0; background:#10151c; color:#fff; font-weight:700; font-size:14px; cursor:pointer; transition:background .2s; }
.jnr-news__btn:hover{ background:#000; }
@media(max-width:600px){ .jnr-news{ padding:30px 24px; } .jnr-news__title{ font-size:26px; } }
body.jnr-home-page footer.site{ margin-top:20px !important; }