/* White Hat Gaming directory (mu-plugins/wm-whitehat-directory.php).
   Based on the original /sites/ archive styles: teal #b0dfdd rules, 8px cards, #3a3a3a text.
   Secondary text uses #595959 (7:1 on white) instead of the old #aaa, which failed contrast. */

.whcs-dir { color: #3a3a3a; }

.whcs-az {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	margin: 0 0 24px;
	padding: 12px 0;
	border-top: 2px solid #b0dfdd;
	border-bottom: 2px solid #b0dfdd;
}
.whcs-az a,
.whcs-az span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	font-size: 13px;
	font-weight: 600;
	border-radius: 4px;
	line-height: 1;
	vertical-align: middle;
	text-decoration: none;
}
.whcs-az a { color: #3a3a3a; }
.whcs-az a:hover,
.whcs-az a:focus { background: #b0dfdd; color: #222; }
.whcs-az span { color: #767676; }

.whcs-letter { margin: 28px 0 10px; scroll-margin-top: 80px; }
.whcs-letter-h {
	font-size: 18px;
	font-weight: 600;
	color: #222;
	margin: 0 0 14px;
	padding-bottom: 6px;
	border-bottom: 2px solid #b0dfdd;
}

.whcs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 14px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.whcs-card {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 14px 16px;
	margin: 0;
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
}
.whcs-card:hover { border-color: #b0dfdd; box-shadow: 0 3px 12px rgba(0, 0, 0, .06); }
.whcs-logo {
	display: block;
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	border-radius: 10px;
	object-fit: cover;
	background: #f5f5f5;
}
.whcs-info { flex: 1; min-width: 0; }
.whcs-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* The name is the only link to the review, so it is underlined to read clearly as a link. */
.whcs-name {
	display: inline-block;
	font-weight: 600;
	font-size: 16px;
	line-height: 1.3;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.whcs-name:hover,
.whcs-name:focus { text-decoration-thickness: 2px; }
/* Rating badge: same colours as the original /sites/ cards (all pass 4.5:1). */
.whcs-rating {
	display: inline-block;
	padding: 2px 6px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	color: #fff;
	background: #2e7d32;
	border-radius: 3px;
}
.whcs-rating.mid { color: #333; background: #f9a825; }
.whcs-rating.low { color: #fff; background: #c62828; }
.whcs-type { margin: 2px 0 8px; font-size: 13px; color: #595959; }
.whcs-facts { margin: 0; font-size: 13px; line-height: 1.45; }
.whcs-facts div { display: flex; gap: 6px; }
.whcs-facts dt { flex: 0 0 78px; margin: 0; font-weight: 600; color: #3a3a3a; }
.whcs-facts dd { margin: 0; color: #3a3a3a; }
.whcs-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 10px 0 0; font-size: 14px; font-weight: 600; }

.whcs-closed-h { margin-top: 40px; }
/* Closed brands: compact tiles with a greyed logo, as on the original /sites/ page. Text darkened for contrast. */
.whcs-closed {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 8px;
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
}
.whcs-closed li { margin: 0; }
/* Higher specificity: a theme rule sets links in lists to inline-block on small screens. */
.whcs-dir ul.whcs-closed a.whcs-closed-card {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	box-sizing: border-box;
	width: 100%;
	gap: 10px;
	padding: 10px 14px;
	background: #f9f9f9;
	border: 1px solid #eee;
	border-radius: 6px;
	font-size: 13px;
	text-decoration: none;
	color: #595959;
}
.whcs-closed-card:hover,
.whcs-closed-card:focus { border-color: #b0dfdd; color: #3a3a3a; }
.whcs-closed-logo {
	display: block;
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	object-fit: cover;
	background: #eee;
	opacity: .5;
	filter: grayscale(100%);
}
.whcs-closed-name { text-decoration: line-through; }

.whcs-table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 15px; }
.whcs-table th, .whcs-table td { padding: 8px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid #e8e8e8; }
.whcs-table th { background: #b0dfdd; color: #222; font-weight: 600; }
.whcs-table td { background: #fff; color: #3a3a3a; }
.whcs-company-summary { margin: 0 0 20px; }

.whcs-pay { list-style: none; margin: 0 0 20px; padding: 0; columns: 2; column-gap: 24px; }
.whcs-pay li { margin: 0 0 6px; break-inside: avoid; }
.whcs-pay span { font-size: 13px; color: #595959; }

.whcs-company { margin: 0 0 32px; padding-bottom: 8px; border-bottom: 1px solid #e8e8e8; }
.whcs-company-brands { font-size: 15px; }

@media (max-width: 640px) {
	.whcs-grid { grid-template-columns: 1fr; }
	.whcs-closed { grid-template-columns: 1fr; }
	.whcs-table th, .whcs-table td { padding: 6px 8px; font-size: 14px; }
	.whcs-az a, .whcs-az span { width: 28px; height: 28px; font-size: 12px; }
	.whcs-pay { columns: 1; }
}

/* Country directories list every brand; brands that take players from that country are marked. */
.whcs-card.whcs-local { border-color: #7fc8c3; box-shadow: inset 4px 0 0 #2f8f89; }
.whcs-card.whcs-local:hover { box-shadow: inset 4px 0 0 #2f8f89, 0 3px 12px rgba(0, 0, 0, .06); }
.whcs-lang-fi .whcs-facts dt,
.whcs-lang-ca .whcs-facts dt,
.whcs-lang-ie .whcs-facts dt,
.whcs-lang-nz .whcs-facts dt,
.whcs-lang-no .whcs-facts dt { flex-basis: 100px; }
