:root {
	--jgd-primary: #0b5d2a;
	--jgd-primary-dark: #07451f;
	--jgd-heading: #17241b;
	--jgd-text: #3f4f44;
	--jgd-muted: #6c7a70;
	--jgd-border: #dce5df;
	--jgd-surface: #eaf4ed;
	--jgd-background: #f6f9f7;
	--jgd-white: #ffffff;
	--jgd-radius-sm: 8px;
	--jgd-radius: 12px;
	--jgd-shadow: 0 8px 24px rgba(19, 47, 28, 0.07);
}

.jgd-directory,
.jgd-agenda-layout {
	color: var(--jgd-text);
}

.jgd-filter-form {
	display: grid;
	grid-template-columns:
		minmax(220px, 1fr)
		minmax(170px, 220px)
		minmax(170px, 220px)
		auto
		auto;
	gap: 12px;
	align-items: center;
	margin: 0 0 32px;
	padding: 16px;
	background: var(--jgd-white);
	border: 1px solid var(--jgd-border);
	border-radius: var(--jgd-radius);
	box-shadow: var(--jgd-shadow);
}

.jgd-filter-form--news {
	grid-template-columns: minmax(240px, 1fr) minmax(180px, 240px) auto auto;
}

.jgd-filter-form--gallery {
	grid-template-columns: minmax(200px, 300px) auto auto;
	justify-content: start;
}

.jgd-filter-form input,
.jgd-filter-form select {
	width: 100%;
	min-height: 46px;
	margin: 0;
	padding: 10px 13px;
	color: var(--jgd-heading);
	background: var(--jgd-white);
	border: 1px solid var(--jgd-border);
	border-radius: var(--jgd-radius-sm);
	font: inherit;
}

.jgd-filter-form input:focus,
.jgd-filter-form select:focus {
	outline: 3px solid rgba(11, 93, 42, 0.2);
	border-color: var(--jgd-primary);
}

.jgd-button {
	display: inline-flex;
	min-height: 46px;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	color: var(--jgd-white);
	background: var(--jgd-primary);
	border: 1px solid var(--jgd-primary);
	border-radius: var(--jgd-radius-sm);
	font: inherit;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
}

.jgd-button:hover,
.jgd-button:focus-visible {
	color: var(--jgd-white);
	background: var(--jgd-primary-dark);
	border-color: var(--jgd-primary-dark);
}

.jgd-button--outline {
	color: var(--jgd-primary);
	background: transparent;
}

.jgd-button--outline:hover,
.jgd-button--outline:focus-visible {
	color: var(--jgd-white);
	background: var(--jgd-primary);
}

.jgd-results-count {
	margin: -14px 0 24px;
	color: var(--jgd-muted);
	font-size: 14px;
}

.jgd-grid {
	display: grid;
	gap: 24px;
}

.jgd-grid--umkm {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.jgd-card {
	overflow: hidden;
	background: var(--jgd-white);
	border: 1px solid var(--jgd-border);
	border-radius: var(--jgd-radius);
	box-shadow: var(--jgd-shadow);
}

.jgd-card__media {
	display: block;
	overflow: hidden;
	background: var(--jgd-surface);
}

.jgd-card__media img,
.jgd-card__placeholder {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 250ms ease;
}

.jgd-card--news .jgd-card__media img {
	aspect-ratio: 16 / 9;
}

.jgd-card__media:hover img {
	transform: scale(1.025);
}

.jgd-card__placeholder {
	background:
		linear-gradient(
			135deg,
			var(--jgd-surface),
			var(--jgd-background)
		);
}

.jgd-card__body {
	padding: 20px;
}

.jgd-card__title {
	margin: 10px 0 8px;
	color: var(--jgd-heading);
	font-size: 19px;
	line-height: 1.35;
}

.jgd-card__title a {
	color: inherit;
	text-decoration: none;
}

.jgd-card__title a:hover,
.jgd-card__title a:focus-visible {
	color: var(--jgd-primary);
	text-decoration: underline;
}

.jgd-card__meta,
.jgd-card__meta-row,
.jgd-card__excerpt {
	color: var(--jgd-muted);
	font-size: 14px;
}

.jgd-card__meta-row {
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: space-between;
}

.jgd-card__excerpt {
	margin: 10px 0 16px;
	line-height: 1.65;
}

.jgd-card__link {
	color: var(--jgd-primary);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.jgd-card__link:hover,
.jgd-card__link:focus-visible {
	text-decoration: underline;
}

.jgd-badge,
.jgd-eyebrow {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	padding: 5px 9px;
	color: var(--jgd-primary);
	background: var(--jgd-surface);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
}

.jgd-news-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.jgd-card--featured-news {
	grid-column: span 2;
	grid-row: span 2;
}

.jgd-card--featured-news .jgd-card__title {
	font-size: 28px;
}

.jgd-card--featured-news .jgd-card__media img {
	aspect-ratio: 16 / 8.2;
}

.jgd-gallery-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.jgd-gallery-card {
	overflow: hidden;
	border-radius: var(--jgd-radius);
	background: var(--jgd-surface);
}

.jgd-gallery-card > a {
	position: relative;
	display: block;
	overflow: hidden;
	color: var(--jgd-white);
}

.jgd-gallery-card img,
.jgd-gallery-card .jgd-card__placeholder {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 250ms ease;
}

.jgd-gallery-card a:hover img,
.jgd-gallery-card a:focus-visible img {
	transform: scale(1.03);
}

.jgd-gallery-card__overlay {
	position: absolute;
	inset: auto 0 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 32px 16px 15px;
	background: linear-gradient(
		to top,
		rgba(8, 28, 16, 0.82),
		transparent
	);
}

.jgd-gallery-card__overlay span {
	font-size: 12px;
	opacity: 0.82;
}

.jgd-gallery-card__overlay strong {
	font-size: 15px;
	line-height: 1.35;
}

.jgd-agenda-layout {
	display: grid;
	grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.4fr);
	gap: 24px;
	align-items: start;
}

.jgd-calendar,
.jgd-agenda-list {
	padding: 24px;
	background: var(--jgd-white);
	border: 1px solid var(--jgd-border);
	border-radius: var(--jgd-radius);
	box-shadow: var(--jgd-shadow);
}

.jgd-calendar {
	position: sticky;
	top: 100px;
}

.jgd-calendar__header {
	display: grid;
	grid-template-columns: 40px 1fr 40px;
	align-items: center;
	gap: 8px;
	margin-bottom: 18px;
}

.jgd-calendar__header h2 {
	margin: 0;
	text-align: center;
	font-size: 20px;
}

.jgd-calendar__header a {
	display: inline-flex;
	width: 40px;
	height: 40px;
	align-items: center;
	justify-content: center;
	color: var(--jgd-primary);
	background: var(--jgd-surface);
	border-radius: var(--jgd-radius-sm);
	text-decoration: none;
}

.jgd-calendar table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: separate;
	border-spacing: 3px;
	table-layout: fixed;
}

.jgd-calendar th,
.jgd-calendar td {
	padding: 0;
	border: 0;
	text-align: center;
	font-size: 13px;
}

.jgd-calendar th {
	padding-bottom: 8px;
	color: var(--jgd-muted);
	font-weight: 600;
}

.jgd-calendar td > span,
.jgd-calendar td > a {
	display: flex;
	width: 100%;
	min-height: 38px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
}

.jgd-calendar td.has-event a {
	color: var(--jgd-white);
	background: var(--jgd-primary);
	font-weight: 700;
	text-decoration: none;
}

.jgd-calendar td.has-event a:hover,
.jgd-calendar td.has-event a:focus-visible {
	background: var(--jgd-primary-dark);
	outline: 3px solid rgba(11, 93, 42, 0.2);
}

.jgd-agenda-list__heading {
	margin-bottom: 20px;
}

.jgd-agenda-list__heading h2 {
	margin: 6px 0 0;
	font-size: 25px;
}

.jgd-agenda-items {
	display: grid;
	gap: 12px;
}

.jgd-agenda-item {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: 16px;
	padding: 16px;
	background: var(--jgd-background);
	border: 1px solid var(--jgd-border);
	border-radius: 10px;
	scroll-margin-top: 110px;
}

.jgd-agenda-item__date {
	display: flex;
	min-height: 64px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: var(--jgd-primary);
	background: var(--jgd-white);
	border-radius: var(--jgd-radius-sm);
}

.jgd-agenda-item__date strong {
	font-size: 24px;
	line-height: 1;
}

.jgd-agenda-item__date span {
	margin-top: 5px;
	font-size: 11px;
	font-weight: 700;
}

.jgd-agenda-item__content h3 {
	margin: 0 0 5px;
	font-size: 17px;
}

.jgd-agenda-item__content h3 a {
	color: var(--jgd-heading);
	text-decoration: none;
}

.jgd-agenda-item__content h3 a:hover,
.jgd-agenda-item__content h3 a:focus-visible {
	color: var(--jgd-primary);
	text-decoration: underline;
}

.jgd-agenda-item__content p {
	margin: 5px 0 0;
	color: var(--jgd-muted);
	font-size: 14px;
}

.jgd-pagination {
	margin-top: 32px;
}

.jgd-pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.jgd-pagination a,
.jgd-pagination span {
	display: inline-flex;
	min-width: 40px;
	min-height: 40px;
	align-items: center;
	justify-content: center;
	padding: 8px 12px;
	color: var(--jgd-primary);
	background: var(--jgd-white);
	border: 1px solid var(--jgd-border);
	border-radius: var(--jgd-radius-sm);
	text-decoration: none;
}

.jgd-pagination .current,
.jgd-pagination a:hover,
.jgd-pagination a:focus-visible {
	color: var(--jgd-white);
	background: var(--jgd-primary);
	border-color: var(--jgd-primary);
}

.jgd-empty-state {
	padding: 48px 24px;
	text-align: center;
	background: var(--jgd-background);
	border: 1px dashed var(--jgd-border);
	border-radius: var(--jgd-radius);
}

.jgd-empty-state h2,
.jgd-empty-state h3 {
	margin-top: 0;
}

.jgd-home-list,
.jgd-home-agenda {
	display: grid;
	gap: 12px;
}

.jgd-home-list__item {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--jgd-border);
}

.jgd-home-list__item:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.jgd-home-list__image {
	display: block;
	overflow: hidden;
	border-radius: 8px;
}

.jgd-home-list__image img,
.jgd-home-list__image .jgd-card__placeholder {
	display: block;
	width: 88px;
	height: 66px;
	object-fit: cover;
}

.jgd-home-list h3,
.jgd-home-agenda h3 {
	margin: 0 0 5px;
	font-size: 14px;
	line-height: 1.4;
}

.jgd-home-list h3 a,
.jgd-home-agenda h3 a {
	color: var(--jgd-heading);
	text-decoration: none;
}

.jgd-home-list h3 a:hover,
.jgd-home-agenda h3 a:hover {
	color: var(--jgd-primary);
	text-decoration: underline;
}

.jgd-home-list time,
.jgd-home-list p,
.jgd-home-agenda p {
	margin: 0;
	color: var(--jgd-muted);
	font-size: 12px;
}

.jgd-home-agenda__item {
	display: grid;
	grid-template-columns: 54px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--jgd-border);
}

.jgd-home-agenda__item:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.jgd-home-agenda__date {
	display: flex;
	min-height: 54px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: var(--jgd-primary);
	background: var(--jgd-surface);
	border-radius: 8px;
}

.jgd-home-agenda__date strong {
	font-size: 19px;
	line-height: 1;
}

.jgd-home-agenda__date span {
	margin-top: 4px;
	font-size: 10px;
	font-weight: 700;
}

.jgd-detail-panel {
	margin-top: 40px;
	padding: 24px;
	background: var(--jgd-background);
	border: 1px solid var(--jgd-border);
	border-radius: var(--jgd-radius);
}

.jgd-detail-panel h2 {
	margin-top: 0;
	font-size: 24px;
}

.jgd-detail-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 24px;
	margin: 0;
}

.jgd-detail-list__item {
	padding: 12px 0;
	border-bottom: 1px solid var(--jgd-border);
}

.jgd-detail-list dt {
	color: var(--jgd-muted);
	font-size: 13px;
	font-weight: 600;
}

.jgd-detail-list dd {
	margin: 5px 0 0;
	color: var(--jgd-heading);
}

.jgd-detail-list a {
	color: var(--jgd-primary);
	font-weight: 600;
}

@media (max-width: 1024px) {
	.jgd-filter-form,
	.jgd-filter-form--news {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.jgd-grid--umkm,
	.jgd-gallery-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

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

	.jgd-card--featured-news {
		grid-column: span 2;
	}

	.jgd-agenda-layout {
		grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
	}
}

@media (max-width: 767px) {
	.jgd-filter-form,
	.jgd-filter-form--news,
	.jgd-filter-form--gallery {
		grid-template-columns: 1fr;
		padding: 14px;
	}

	.jgd-grid--umkm,
	.jgd-news-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.jgd-card--featured-news {
		grid-column: auto;
		grid-row: auto;
	}

	.jgd-card--featured-news .jgd-card__title {
		font-size: 21px;
	}

	.jgd-gallery-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.jgd-gallery-card__overlay {
		padding: 28px 11px 11px;
	}

	.jgd-gallery-card__overlay strong {
		font-size: 13px;
	}

	.jgd-agenda-layout {
		grid-template-columns: 1fr;
	}

	.jgd-calendar {
		position: static;
		padding: 18px;
	}

	.jgd-agenda-list {
		padding: 18px;
	}

	.jgd-agenda-item {
		grid-template-columns: 56px minmax(0, 1fr);
		gap: 12px;
		padding: 13px;
	}

	.jgd-detail-list {
		grid-template-columns: 1fr;
	}
}

/* =========================================================
   Dashboard Statistics
   ========================================================= */

.jgd-stat-value {
	display: inline-block;
	color: var(--jgd-heading);
	font-size: inherit;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.jgd-stat-grid {
	display: grid;
	grid-template-columns:
		repeat(
			min(var(--jgd-stat-columns, 6), 6),
			minmax(0, 1fr)
		);
	gap: 12px;
}

.jgd-stat-card {
	display: flex;
	min-width: 0;
	align-items: center;
	gap: 12px;
	padding: 18px;
	background: var(--jgd-white);
	border: 1px solid var(--jgd-border);
	border-radius: 11px;
	box-shadow: 0 6px 18px rgba(19, 47, 28, 0.05);
}

.jgd-stat-card__icon {
	display: inline-flex;
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	align-items: center;
	justify-content: center;
	color: var(--jgd-primary);
	background: var(--jgd-surface);
	border-radius: 10px;
}

.jgd-stat-card__icon svg {
	width: 21px;
	height: 21px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.jgd-stat-card__value,
.jgd-stat-card__label {
	display: block;
}

.jgd-stat-card__value {
	color: var(--jgd-heading);
	font-size: 20px;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
}

.jgd-stat-card__label {
	margin-top: 4px;
	color: var(--jgd-muted);
	font-size: 12px;
	line-height: 1.35;
}

.jgd-chart-card {
	height: 100%;
	padding: 24px;
	background: var(--jgd-white);
	border: 1px solid var(--jgd-border);
	border-radius: var(--jgd-radius);
	box-shadow: var(--jgd-shadow);
}

.jgd-chart-card__header {
	margin-bottom: 20px;
}

.jgd-chart-card__header h2 {
	margin: 0;
	color: var(--jgd-heading);
	font-size: 21px;
	line-height: 1.3;
}

.jgd-chart-card__header p {
	margin: 7px 0 0;
	color: var(--jgd-muted);
	font-size: 14px;
	line-height: 1.6;
}

.jgd-chart-container {
	position: relative;
	width: 100%;
	height: 300px;
	min-height: 300px;
}

.jgd-chart-container canvas {
	opacity: 0;
	transition: opacity 200ms ease;
}

.jgd-chart-container.is-ready canvas {
	opacity: 1;
}

.jgd-chart-fallback {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 20px;
	color: var(--jgd-muted);
	text-align: center;
	background: var(--jgd-background);
	border-radius: 8px;
}

.jgd-chart-container.is-ready .jgd-chart-fallback {
	display: none;
}

.jgd-chart-container.has-error canvas {
	display: none;
}

.jgd-chart-table {
	margin-top: 18px;
	border-top: 1px solid var(--jgd-border);
}

.jgd-chart-table summary {
	padding: 14px 0 0;
	color: var(--jgd-primary);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.jgd-chart-table__scroll {
	overflow-x: auto;
	margin-top: 12px;
}

.jgd-chart-table table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	font-size: 14px;
}

.jgd-chart-table caption {
	padding: 0 0 10px;
	color: var(--jgd-heading);
	font-weight: 600;
	text-align: left;
}

.jgd-chart-table th,
.jgd-chart-table td {
	padding: 10px 12px;
	border: 1px solid var(--jgd-border);
	text-align: left;
}

.jgd-chart-table thead th {
	color: var(--jgd-heading);
	background: var(--jgd-background);
}

.jgd-progress-list {
	padding: 24px;
	background: var(--jgd-white);
	border: 1px solid var(--jgd-border);
	border-radius: var(--jgd-radius);
	box-shadow: var(--jgd-shadow);
}

.jgd-progress-list__heading {
	margin-bottom: 24px;
}

.jgd-progress-list__heading h2 {
	margin: 0;
	font-size: 22px;
}

.jgd-progress-list__heading p {
	margin: 7px 0 0;
	color: var(--jgd-muted);
	font-size: 14px;
}

.jgd-progress-list__items {
	display: grid;
	gap: 22px;
}

.jgd-progress-item__header {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 9px;
}

.jgd-progress-item__header strong,
.jgd-progress-item__header span {
	display: block;
}

.jgd-progress-item__header strong {
	color: var(--jgd-heading);
	font-size: 15px;
}

.jgd-progress-item__header div > span {
	margin-top: 3px;
	color: var(--jgd-muted);
	font-size: 12px;
}

.jgd-progress-item__value {
	flex: 0 0 auto;
	color: var(--jgd-primary);
	font-size: 16px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.jgd-progress-track {
	overflow: hidden;
	width: 100%;
	height: 10px;
	background: var(--jgd-surface);
	border-radius: 999px;
}

.jgd-progress-fill {
	display: block;
	height: 100%;
	background: linear-gradient(
		90deg,
		var(--jgd-primary),
		#2e8b57
	);
	border-radius: inherit;
}

.jgd-data-source {
	margin-top: 22px;
	padding: 14px 16px;
	color: var(--jgd-muted);
	background: var(--jgd-background);
	border-left: 3px solid var(--jgd-primary);
	border-radius: 6px;
	font-size: 13px;
	line-height: 1.6;
}

.jgd-data-source strong {
	color: var(--jgd-heading);
}

@media (max-width: 1100px) {
	.jgd-stat-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.jgd-stat-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.jgd-stat-card {
		align-items: flex-start;
		padding: 14px;
	}

	.jgd-stat-card__icon {
		width: 34px;
		height: 34px;
		flex-basis: 34px;
	}

	.jgd-stat-card__icon svg {
		width: 18px;
		height: 18px;
	}

	.jgd-stat-card__value {
		font-size: 17px;
	}

	.jgd-chart-card,
	.jgd-progress-list {
		padding: 18px;
	}

	.jgd-chart-container {
		height: 260px;
		min-height: 260px;
	}

	.jgd-progress-item__header {
		gap: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jgd-chart-container canvas,
	.jgd-stat-card,
	.jgd-progress-fill {
		transition: none;
	}
}
