/* Hall of Fame — front end */

.ehof-wrap {
	--ehof-accent: #c8102e;
	--ehof-button: #1b1b1b;
	--ehof-card-bg: #ffffff;
	--ehof-text: #1b1b1b;
	--ehof-muted: #6b7280;
	--ehof-border: #e5e7eb;
	--ehof-radius: 8px;
	--ehof-gap: 28px;
	color: var(--ehof-text);
}

.ehof-wrap *,
.ehof-modal * {
	box-sizing: border-box;
}

.ehof-wrap .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* Toolbar */
.ehof-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 24px;
}

.ehof-toolbar .ehof-field {
	flex: 1 1 220px;
	max-width: 320px;
	margin: 0;
}

.ehof-toolbar input[type="search"],
.ehof-toolbar select {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--ehof-border);
	border-radius: var(--ehof-radius);
	background: #fff;
	font-size: 15px;
	line-height: 1.4;
	color: var(--ehof-text);
}

/* Grid */
.ehof-grid {
	display: grid;
	grid-template-columns: repeat(var(--ehof-columns, 3), minmax(0, 1fr));
	gap: var(--ehof-gap);
}

.ehof-cols-1 { --ehof-columns: 1; }
.ehof-cols-2 { --ehof-columns: 2; }
.ehof-cols-3 { --ehof-columns: 3; }
.ehof-cols-4 { --ehof-columns: 4; }
.ehof-cols-5 { --ehof-columns: 5; }
.ehof-cols-6 { --ehof-columns: 6; }

.ehof-wrap.is-loading { opacity: 0.6; }

/* Card */
.ehof-card {
	background: var(--ehof-card-bg);
	border: 1px solid var(--ehof-border);
	border-radius: var(--ehof-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.ehof-card__media {
	margin: 0;
	background: #f3f4f6;
}

.ehof-card__media img {
	display: block;
	width: 100%;
	height: 320px;
	object-fit: cover;
}

.ehof-card__body {
	padding: 20px 22px 26px;
}

.ehof-card__name {
	margin: 0 0 6px;
	font-size: 22px;
	line-height: 1.25;
	font-weight: 700;
	color: var(--ehof-text);
}

.ehof-card__faults {
	margin: 0 0 6px;
	font-size: 15px;
	color: var(--ehof-muted);
}

.ehof-card__date {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 16px;
	font-size: 15px;
	color: var(--ehof-muted);
}

.ehof-card__date .ehof-icon { flex: 0 0 auto; }

.ehof-card__download {
	display: inline-block;
	margin: 0 0 18px;
	padding: 9px 16px;
	border: 0;
	border-radius: 4px;
	background: var(--ehof-button);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.ehof-card__download:hover,
.ehof-card__download:focus { opacity: 0.85; color: #fff; }

.ehof-card__instructor {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 700;
	color: var(--ehof-text);
}

.ehof-card__headline {
	margin: 0 0 8px;
	font-weight: 600;
}

.ehof-card__message {
	font-size: 15px;
	line-height: 1.6;
}

.ehof-card__message p { margin: 0 0 10px; }
.ehof-card__message p:last-child { margin-bottom: 0; }

.ehof-read-more {
	margin-top: 6px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ehof-text);
	font-size: 15px;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

.ehof-empty {
	grid-column: 1 / -1;
	margin: 0;
	padding: 24px 0;
	color: var(--ehof-muted);
}

/* Load more */
.ehof-actions {
	display: flex;
	justify-content: center;
	margin-top: 32px;
}

.ehof-load-more {
	padding: 12px 30px;
	border: 0;
	border-radius: 4px;
	background: var(--ehof-button);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.ehof-load-more[disabled] { opacity: 0.6; cursor: default; }

/* Modal */
body.ehof-modal-open { overflow: hidden; }

.ehof-modal {
	--ehof-accent: #c8102e;
	--ehof-text: #1b1b1b;
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 24px 16px;
	overflow-y: auto;
}

.ehof-modal[hidden] { display: none; }

.ehof-modal__overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
}

.ehof-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 520px;
	margin: auto;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
	color: var(--ehof-text);
}

.ehof-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	border-bottom: 1px solid #e5e7eb;
}

.ehof-modal__title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
}

.ehof-modal__close {
	padding: 4px;
	border: 0;
	background: none;
	color: var(--ehof-text);
	line-height: 0;
	cursor: pointer;
}

.ehof-modal__body { padding: 22px; }

.ehof-modal__heading {
	margin: 0 0 18px;
	text-align: center;
	font-size: 17px;
	font-weight: 700;
}

.ehof-modal__cta {
	margin: 0 0 22px;
	text-align: center;
}

.ehof-modal__button {
	display: inline-block;
	padding: 12px 22px;
	border-radius: 4px;
	background: var(--ehof-accent);
	color: #fff !important;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.ehof-modal__button:hover,
.ehof-modal__button:focus { opacity: 0.9; }

.ehof-modal__content {
	font-size: 15px;
	line-height: 1.6;
}

.ehof-modal__content ol,
.ehof-modal__content ul { padding-left: 20px; margin: 0 0 14px; }
.ehof-modal__content li { margin-bottom: 6px; }

.ehof-modal__preview { margin-top: 20px; }

.ehof-modal__preview img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
}

/* Responsive */
@media (max-width: 1024px) {
	.ehof-grid { --ehof-columns: 2 !important; }
}

@media (max-width: 640px) {
	.ehof-grid { --ehof-columns: 1 !important; }
	.ehof-card__media img { height: 260px; }
	.ehof-toolbar .ehof-field { max-width: none; }
}
