/* News feed + notification prefs — brand palette. */
.jgn-feed { max-width: 780px; margin: 0 auto; padding: 10px 16px 40px; }

.jgn-prefs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	background: #fff;
	border: 1px solid #f3d9f7;
	border-radius: 14px;
	padding: 16px 18px;
	margin-bottom: 22px;
	box-shadow: 0 6px 18px rgba(169, 70, 180, .08);
}
.jgn-pref { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: #4a3a5c; }
.jgn-pref strong { color: #27103A; font-size: 15px; }
.jgn-pref form { display: flex; gap: 8px; }
.jgn-pref input[type="email"] {
	flex: 1;
	border: 1px solid #e2c7ea;
	border-radius: 8px;
	padding: 8px 11px;
	font-size: 14px;
	min-width: 0;
}
.jgn-btn {
	align-self: flex-start;
	background: linear-gradient(135deg, #F674FF, #FFC2FD);
	color: #27103A;
	font-weight: 800;
	border: 0;
	border-radius: 999px;
	padding: 8px 20px;
	cursor: pointer;
	transition: filter .12s;
}
.jgn-btn:hover { filter: brightness(1.07); }
.jgn-btn[data-on="1"] { background: #eee; color: #666; }
.jgn-pref-status { grid-column: 1 / -1; margin: 0; font-size: 13px; font-weight: 700; color: #A946B4; }

.jgn-item {
	background: #fff;
	border: 1px solid #f3d9f7;
	border-radius: 14px;
	padding: 20px 22px;
	margin-bottom: 16px;
	box-shadow: 0 4px 14px rgba(169, 70, 180, .06);
}
.jgn-title { margin: 0 0 2px; font-size: 21px; }
.jgn-title a { color: #27103A !important; text-decoration: none !important; }
.jgn-title a:hover { color: #A946B4 !important; }
.jgn-meta { margin: 0 0 10px; font-size: 12.5px; color: #6b5580; }
.jgn-excerpt { font-size: 14.5px; line-height: 1.6; color: #1d1d1d; }
.jgn-more { display: inline-block; margin-top: 8px; font-weight: 700; color: #A946B4 !important; text-decoration: none !important; }
.jgn-pages { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }
.jgn-pages a, .jgn-pages span {
	padding: 6px 12px;
	border-radius: 8px;
	border: 1px solid #e2c7ea;
	text-decoration: none !important;
	color: #27103A !important;
}
.jgn-pages .is-current { background: #F674FF; color: #fff !important; border-color: #F674FF; }
.jgn-empty { text-align: center; color: #6b5580; padding: 30px 0; }

@media (max-width: 640px) {
	.jgn-prefs { grid-template-columns: 1fr; }
}

/* compact variant (inside an account card) */
.jgn-prefs-compact { grid-template-columns: 1fr; border: 0; box-shadow: none; padding: 0; margin: 0; }

/* item layout with thumbnails + NEW badge */
.jgn-item { display: flex; gap: 16px; }
.jgn-thumb { flex: 0 0 180px; }
.jgn-thumb img { width: 180px; height: 120px; object-fit: cover; border-radius: 10px; display: block; }
.jgn-body { flex: 1; min-width: 0; }
.jgn-item.is-new { border: 2px solid #F674FF; box-shadow: 0 6px 18px rgba(246, 116, 255, .18); }
.jgn-new {
	display: inline-block;
	background: linear-gradient(135deg, #F674FF, #FFC2FD);
	color: #27103A;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .06em;
	padding: 2px 10px;
	border-radius: 999px;
	vertical-align: middle;
	margin-right: 6px;
}
@media (max-width: 560px) {
	.jgn-item { flex-direction: column; }
	.jgn-thumb, .jgn-thumb img { width: 100%; height: auto; }
}

/* homepage latest-news strip */
.jgn-latest {
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: 1100px;
	margin: 10px auto 0;
	background: #fff;
	border: 1px solid #f3d9f7;
	border-left: 4px solid #F674FF;
	border-radius: 12px;
	padding: 10px 16px;
	text-decoration: none !important;
	color: #27103A !important;
	transition: box-shadow .15s;
}
.jgn-latest:hover { box-shadow: 0 8px 22px rgba(169, 70, 180, .18); }
.jgn-latest img { width: 92px; height: 60px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.jgn-latest-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.jgn-latest-kicker { font-size: 11.5px; font-weight: 800; letter-spacing: .05em; color: #A946B4; text-transform: uppercase; }
.jgn-latest-title { font-weight: 800; font-size: 15.5px; }
.jgn-latest-excerpt { font-size: 12.5px; color: #6b5580; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jgn-latest-more { font-weight: 800; color: #A946B4; white-space: nowrap; }
@media (max-width: 560px) { .jgn-latest img, .jgn-latest-excerpt { display: none; } }

/* homepage news carousel */
.jgn-latest-car { position: relative; max-width: 1100px; margin: 10px auto 0; }
.jgn-latest-car .jgn-latest { display: none; margin: 0; }
.jgn-latest-car .jgn-latest.is-active { display: flex; animation: jgn-fade .4s ease; }
@keyframes jgn-fade { from { opacity: 0; } to { opacity: 1; } }
.jgn-latest-dots { position: absolute; right: 14px; bottom: 8px; display: flex; gap: 5px; }
.jgn-latest-dot {
	width: 8px; height: 8px; border-radius: 50%;
	border: 0; padding: 0; cursor: pointer;
	background: #e2c7ea;
}
.jgn-latest-dot.is-active { background: #F674FF; }

/* single news post: two columns */
.jgn-single {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 26px;
	max-width: 1180px;
	margin: 0 auto;
	padding: 24px 16px 50px;
	align-items: start;
}
.jgn-single-main {
	background: #fff;
	border: 1px solid #f3d9f7;
	border-radius: 16px;
	padding: 28px 32px;
	box-shadow: 0 6px 18px rgba(169, 70, 180, .08);
	color: #27103A;
}
.jgn-single-kicker { margin: 0 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #A946B4; }
.jgn-single-title { margin: 0 0 14px; font-size: 28px; font-weight: 800; line-height: 1.25; }
.jgn-single-thumb { width: 100%; height: auto; border-radius: 12px; margin-bottom: 16px; }
.jgn-single-content { font-size: 15px; line-height: 1.7; color: #1d1d1d; overflow-wrap: anywhere; }
.jgn-single-content img { max-width: 100%; height: auto; border-radius: 10px; }
.jgn-single-content p { margin: 0 0 14px; }
.jgn-single-content a { color: #A946B4 !important; font-weight: 700; }

.jgn-single-side {
	background: #fff;
	border: 1px solid #f3d9f7;
	border-radius: 16px;
	padding: 16px;
	position: sticky;
	top: 66px;
}
.jgn-single-side h3 { margin: 0 0 10px; font-size: 15px; color: #27103A; }
.jgn-side-list { max-height: 70vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.jgn-side-item {
	display: flex;
	gap: 10px;
	align-items: center;
	text-decoration: none !important;
	color: #27103A !important;
	border-radius: 10px;
	padding: 6px;
}
.jgn-side-item:hover { background: #faf3fc; }
.jgn-side-item.is-current { background: #faf3fc; outline: 1px solid #f3d9f7; }
.jgn-side-item img { width: 64px; height: 42px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; }
.jgn-side-title { display: block; font-size: 13px; font-weight: 700; line-height: 1.3; }
.jgn-side-date { display: block; font-size: 11.5px; color: #6b5580; }
@media (max-width: 900px) {
	.jgn-single { grid-template-columns: 1fr; }
	.jgn-single-side { position: static; }
}

/* fallback (logo) thumbnail — contained, not cropped */
.jgn-thumb-fallback { background: #27103A; display: flex; align-items: center; justify-content: center; }
.jgn-thumb-fallback img { object-fit: contain !important; padding: 18px; width: 100% !important; height: 100% !important; }
.jgn-latest .jgn-thumb-fallback { background: #27103A; border-radius: 8px; }

/* patreon / survey CTA on a post */
.jgn-patreon-cta {
	display: inline-block;
	margin: 18px 0 4px;
	background: linear-gradient(135deg, #F674FF, #FFC2FD);
	color: #27103A !important;
	font-weight: 800;
	padding: 11px 22px;
	border-radius: 999px;
	text-decoration: none !important;
}
.jgn-patreon-cta:hover { filter: brightness(1.06); }

/* patron-only post lock */
.jgn-lock-badge {
	display: inline-block;
	background: #27103A;
	color: #FFC2FD;
	font-size: 11px;
	font-weight: 800;
	padding: 2px 9px;
	border-radius: 999px;
	vertical-align: middle;
	margin-right: 6px;
}
.jgn-lock {
	text-align: center;
	background: #faf3fc;
	border: 1px solid #f3d9f7;
	border-radius: 14px;
	padding: 24px 20px;
	margin-top: 12px;
}
.jgn-lock-icon { font-size: 34px; margin: 0 0 4px; }
.jgn-lock-title { font-weight: 800; font-size: 17px; color: #27103A; margin: 0 0 12px; }
.jgn-lock-cta { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 0; }
.jgn-btn {
	background: linear-gradient(135deg, #F674FF, #FFC2FD);
	color: #27103A !important;
	font-weight: 800;
	padding: 9px 20px;
	border-radius: 999px;
	text-decoration: none !important;
}
.jgn-btn-ghost { background: #fff; border: 1px solid #e2c7ea; color: #6b5580 !important; }

/* mobile: long unbroken words (links) must wrap, and flex bodies must be
   allowed to shrink below their content width */
.jgn-item .jgn-body { min-width: 0; }
.jgn-title, .jgn-excerpt, .jgn-meta,
.jgn-single-title, .jgn-single-content, .jgn-single-content a,
.jgn-latest-title { overflow-wrap: anywhere; word-break: break-word; }
.jgn-single-content img, .jgn-single-content iframe { max-width: 100%; height: auto; }
