/**
 * Public board grid, lightbox, and submitter dashboard.
 *
 * Sizes are in px so they are not scaled by the theme’s small html font-size.
 */

.hfcs-ebulletin .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.hfcs-board-disclaimer {
	margin: 0 0 16px;
	padding: 14px 16px;
	border-left: 4px solid #1e3a8a;
	background: #eff6ff;
	color: #1e3a8a;
}

.hfcs-board-hint {
	margin: 0 0 20px;
	font-weight: 600;
}

.hfcs-board-empty {
	margin: 0;
}

.hfcs-board-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
	gap: 36px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hfcs-board-grid-item {
	margin: 0;
	border: 1px solid black;
	padding: 2rem;
	background: #f1f1f1;
	box-shadow: 1px 1px 1px 1px #e1e1e1;
}

.hfcs-board-item-title {
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

.hfcs-board-item-body {
	display: flex;
	flex-direction: column;
	gap: 14px;
	align-items: stretch;
}

.hfcs-board-thumb {
	display: block;
	width: 100%;
}

.hfcs-board-thumb img,
.hfcs-board-placeholder {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid #d1d5db;
	background: #fff;
}

.hfcs-board-thumb:focus {
	outline: 3px solid #1e3a8a;
	outline-offset: 2px;
}

.hfcs-board-item-text {
	min-width: 0;
}

.hfcs-board-item-description {
	margin: 0 0 8px;
	font-size: 15px;
	line-height: 1.45;
	color: #111827;
}

.hfcs-board-item-org {
	margin: 0 0 8px;
	font-size: 14px;
	color: #374151;
}

.hfcs-board-item-link {
	margin: 0;
	font-size: 14px;
}

.hfcs-board-item-edit {
	margin: 10px 0 0;
}

.hfcs-board-edit-button {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid #1e3a8a;
	border-radius: 4px;
	background: #1e3a8a;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
}

.hfcs-board-edit-button:hover,
.hfcs-board-edit-button:focus {
	background: #1e40af;
	color: #fff;
	text-decoration: none;
}

.hfcs-flyer-single {
	max-width: 768px;
	margin: 24px auto 48px;
}

.hfcs-flyer-single-title {
	margin: 0 0 16px;
}

.hfcs-flyer-single-back {
	margin: 24px 0 0;
}

/* Lightbox */
.hfcs-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(17, 24, 39, 0.85);
}

.hfcs-lightbox.is-open {
	display: flex;
}

.hfcs-lightbox-dialog {
	position: relative;
	max-width: min(96vw, 1152px);
	max-height: 96vh;
}

.hfcs-lightbox-img {
	display: block;
	max-width: 96vw;
	max-height: 90vh;
	width: auto;
	height: auto;
	background: #fff;
}

.hfcs-lightbox-close {
	position: absolute;
	top: -6px;
	right: -6px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 999px;
	background: #111827;
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.hfcs-lightbox-close:focus {
	outline: 3px solid #93c5fd;
	outline-offset: 2px;
}

.hfcs-lightbox-status {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Dashboard */
.hfcs-dashboard-title {
	margin: 0 0 16px;
}

.hfcs-dashboard-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 0 0 20px;
}

.hfcs-dashboard-table-wrap {
	overflow-x: auto;
}

.hfcs-dashboard-table {
	width: 100%;
	border-collapse: collapse;
}

.hfcs-dashboard-table th,
.hfcs-dashboard-table td {
	padding: 10px 12px;
	border-bottom: 1px solid #e5e7eb;
	text-align: left;
	vertical-align: top;
}

.hfcs-dashboard-table thead th {
	border-bottom-width: 2px;
	font-weight: 700;
}

.hfcs-dashboard-reason {
	margin: 6px 0 0;
	font-weight: 400;
	font-size: 14px;
	color: #7f1d1d;
}

.hfcs-dashboard-status-publish {
	color: #166534;
	font-weight: 600;
}

.hfcs-dashboard-status-pending {
	color: #9a3412;
	font-weight: 600;
}

.hfcs-dashboard-status-hfcs_expired {
	color: #374151;
	font-weight: 600;
}

.hfcs-dashboard-status-hfcs_rejected {
	color: #9b1c1c;
	font-weight: 600;
}

.hfcs-dashboard-notice {
	margin: 0 0 16px;
	padding: 12px 14px;
	border-radius: 4px;
}

.hfcs-dashboard-notice-success {
	background: #eff6ff;
	border: 1px solid #93c5fd;
	color: #1e3a8a;
}

.hfcs-dashboard-notice-error {
	background: #fef2f2;
	border: 2px solid #9b1c1c;
	color: #7f1d1d;
	font-weight: 600;
}

body.hfcs-lightbox-open {
	overflow: hidden;
}
