/**
 * ============================================================================
 *  MILTONCAT MANAGED FILE - DO NOT EDIT ON THE SERVER
 * ----------------------------------------------------------------------------
 *  Owner : Getfused (git repo: miltoncat)
 *  Deploy: SFTP overwrites this file wholesale. Server-side edits WILL BE
 *          LOST without warning, with no backup and no notification.
 *
 *  Site code belongs in one of these instead. Neither is ever written by a
 *  Getfused deploy, so anything you put there is safe:
 *      themes/miltoncat-gp/functions.php   (below the SITE CUSTOMIZATIONS marker)
 *      themes/miltoncat-gp/style.css       (below the SITE CUSTOMIZATIONS marker)
 *
 *  Full ownership map: _OWNERSHIP.md in the theme root.
 * ============================================================================
 *
 * Link grid shortcodes (inc/link-grid.php). Skeleton styling. Prints before
 * style.css, so same-specificity overrides there win.
 *
 * Lists collapse only when JavaScript runs (link-grid.js sets hidden; the
 * site header's html.mc-js flag covers the moment before); otherwise open.
 */

.mc-link-grid {
	display: grid;
	grid-template-columns: repeat(var(--mc-grid-cols, 3), minmax(0, 1fr));
	gap: 20px;
}

.mc-link-tile {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 300px;
	padding: 14px;
	background: var(--mc-panel-2);
	overflow: hidden;
}

body img.mc-link-tile__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mc-link-tile__card {
	position: relative;
	max-width: 100%;
	padding: 12px 16px;
	background: var(--mc-panel);
}

/* Two classes: the title can be any h2-h6, and the theme / Elementor kit
   size headings by element at equal or higher weight than one class. */
.mc-link-grid .mc-link-tile__title {
	margin: 0;
	/* Comp: H4 / Card Title - Roboto 16 / 700 */
	font-family: var(--mc-font-body);
	font-size: var(--mc-fs-h4);
	font-weight: 700;
	line-height: 1.3;
	overflow-wrap: normal;
	word-break: normal;
	hyphens: manual;
}

/* .mc-link-grid prefix: outranks Elementor's global kit button/link styles. */
.mc-link-grid .mc-link-tile__toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.mc-link-grid .mc-link-tile__toggle:hover,
.mc-link-grid .mc-link-tile__toggle:focus {
	background: transparent;
	color: inherit;
	border:0px solid!important;
}

.mc-link-grid .mc-link-tile__toggle:focus-visible,
.mc-link-grid .mc-link-tile__link:focus-visible,
.mc-link-grid a.mc-link-tile__label:focus-visible {
	outline: 2px solid var(--mc-ink);
	outline-offset: 2px;
}

.mc-link-tile__chevron {
	flex: none;
	transition: transform var(--mc-transition);
}

.mc-link-tile__toggle[aria-expanded="true"] .mc-link-tile__chevron {
	transform: rotate(180deg);
}

.mc-link-grid a.mc-link-tile__label {
	color: inherit;
	text-decoration: none;
}

.mc-link-tile__links {
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.mc-link-tile__links li + li {
	margin-top: 6px;
}

.mc-link-grid .mc-link-tile__link {
	font-size: 0.9375rem;
	color: var(--mc-ink);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.mc-link-grid .mc-link-tile__link[aria-current="page"] {
	font-weight: 600;
}

/* link-grid.js collapses lists with the hidden attribute. Before it runs,
   html.mc-js (site header) says it will, so start collapsed - no flash. */
.mc-js .mc-link-grid:not(.is-enhanced) .mc-link-tile--has-links .mc-link-tile__links,
.mc-link-tile__links[hidden] {
	display: none;
}

@media (max-width: 1024px) {
	.mc-link-grid {
		grid-template-columns: repeat(min(var(--mc-grid-cols, 3), 2), minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.mc-link-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.mc-link-tile {
		min-height: 220px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mc-link-tile__chevron {
		transition: none;
	}
}
