/* =====================================================================
   2026-10-04 (deepseek) — Network boards panel on the hub template.
   Owner: "go into all locations at once" — one shared board list shown on
   every suburb/community hub page. Additive: the existing "Local Community"
   satellite card and every hub link are untouched.

   Tokens only (--jf-*); no hard-coded colours outside the var() fallbacks.
   ===================================================================== */

.jffj-boards {
	margin: 0 0 28px;
	padding: 20px 22px 22px;
	background: var(--jf-surface, #ffffff);
	border: 1px solid var(--jf-line, #e2e7f0);
	border-radius: var(--jf-r-lg, 16px);
	box-shadow: var(--jf-e2, 0 1px 2px rgba(16, 24, 40, .04), 0 4px 12px rgba(16, 24, 40, .06));
}

.jffj-boards__head {
	margin-bottom: 14px;
}

.jffj-boards__title {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--jf-navy, #0b2668);
	text-wrap: balance;
}

.jffj-boards__intro {
	margin: 6px 0 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--jf-muted, #60708a);
}

/* --- board list --- */
.jffj-boards__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.jffj-boards__item {
	min-width: 0;
}

.jffj-boards__link {
	display: flex;
	flex-direction: column;
	gap: 5px;
	height: 100%;
	padding: 14px 16px;
	background: var(--jf-canvas, #f5f6fa);
	border: 1px solid var(--jf-line, #e2e7f0);
	border-radius: var(--jf-r-md, 12px);
	color: inherit;
	text-decoration: none;
	transition: border-color .16s var(--jf-ease, ease),
		box-shadow .16s var(--jf-ease, ease),
		transform .16s var(--jf-ease, ease),
		background-color .16s var(--jf-ease, ease);
}

.jffj-boards__link:hover {
	background: var(--jf-surface, #ffffff);
	border-color: var(--jf-action, #0369a1);
	box-shadow: var(--jf-e3, 0 8px 24px rgba(3, 10, 28, .18));
	transform: translateY(-2px);
}

.jffj-boards__link:focus-visible {
	outline: none;
	border-color: var(--jf-action, #0369a1);
	box-shadow: var(--jf-focus, 0 0 0 3px rgba(7, 177, 229, .28));
}

.jffj-boards__name {
	font-size: 15.5px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--jf-navy, #0b2668);
}

.jffj-boards__link:hover .jffj-boards__name {
	color: var(--jf-action, #0369a1);
}

.jffj-boards__excerpt {
	font-size: 13.5px;
	line-height: 1.45;
	color: var(--jf-body, #3a4250);
}

.jffj-boards__meta {
	margin-top: auto;
	padding-top: 2px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--jf-faint, #646c80);
}

/* --- compact variant (sidebar / tight spots) --- */
.jffj-boards--compact {
	padding: 16px 18px 18px;
	margin-bottom: 20px;
}

.jffj-boards--compact .jffj-boards__title {
	font-size: 18px;
}

.jffj-boards--compact .jffj-boards__list {
	grid-template-columns: 1fr;
	gap: 8px;
}

.jffj-boards--compact .jffj-boards__link {
	padding: 10px 12px;
}

/* --- mobile --- */
@media (max-width: 767px) {
	.jffj-boards {
		padding: 16px 16px 18px;
		margin-bottom: 22px;
	}

	.jffj-boards__title {
		font-size: 21px;
	}

	.jffj-boards__list {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.jffj-boards__link {
		padding: 12px 14px;
	}
}