/* MBT Awards Tile
   Square, fully-clickable tile. Reproduces the hover behaviour the old
   et_pb_row_inner tiles had (4px border turns blue + drop shadow fades in),
   but on a single element with a single real <a>. */

.mbt-awards-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;

	/* the square */
	aspect-ratio: 1 / 1;
	width: 100%;
	box-sizing: border-box;
	padding: 20px;

	background-color: #f1f1f1;
	border: 4px solid #f1f1f1;
	box-shadow: 0 0 0 rgba( 0, 0, 0, 0.3 );

	text-decoration: none;
	transition: border-color 300ms ease, box-shadow 300ms ease;
}

.mbt-awards-tile:hover,
.mbt-awards-tile:focus {
	border-color: #004e99;
	box-shadow: 0 2px 18px rgba( 0, 0, 0, 0.3 );
	text-decoration: none;
}

/* Keyboard users get a visible focus ring the old JS-clickable rows never had. */
.mbt-awards-tile:focus-visible {
	outline: 3px solid #004e99;
	outline-offset: 3px;
}

.mbt-awards-tile__icon {
	display: block;
	width: 50px;
	height: auto;
	margin: 0;
}

.mbt-awards-tile__label {
	margin: 0;
	padding: 0;
	text-align: center;
	text-transform: uppercase;
	line-height: 1.3;
	word-break: break-word;
}

/* Vertical spacing between rows is left to Divi. Its default module margin in
   these columns (13.174% of a 28.35314% column) resolves to 3.735% of the row
   width -- about 30px, the same gap the original stacked tiles used. */

/* Divi stacks columns below 980px; keep the squares a sane size once stacked. */
@media ( max-width: 980px ) {
	.mbt-awards-tile {
		max-width: 320px;
		margin-left: auto;
		margin-right: auto;
	}
}
