/**
 * Link hover states.
 *
 * - Text links on light backgrounds (the "Text Link with Arrow" button preset,
 *   map links): an underline draws in from the left.
 * - Table of contents: the rail beside the hovered/current section turns green.
 * - Underlined links in text: the underline thickens.
 * - Links on dark backgrounds (footer, breadcrumbs, social icons): turn gold.
 *   (Header/footer menus: set in each menu module's custom CSS. "Text Link
 *   Light" buttons: hover colour set in the preset.)
 */

/* Underline draws in --------------------------------------------------------- */
.et_pb_button.preset--module--divi-button--hcd2ae5c34, /* preset: Button — Text Link with Arrow */
.hc-map__link,
.hc-maps-link {
	background-image: linear-gradient(currentColor, currentColor) !important;
	background-repeat: no-repeat !important;
	background-size: 0 2px !important;
	background-position: 0 var(--hc-underline-y, 100%) !important;
	transition: background-size 0.3s ease, color 0.2s ease !important;
}
.et_pb_button.preset--module--divi-button--hcd2ae5c34:hover,
.et_pb_button.preset--module--divi-button--hcd2ae5c34:focus-visible,
.hc-map__link:hover,
.hc-maps-link:hover {
	background-size: var(--hc-underline-w, 100%) 2px !important;
}
/* Button: underline the label only (not the arrow), 4px under the text. */
.et_pb_button.preset--module--divi-button--hcd2ae5c34 {
	--hc-underline-w: calc(100% - 24px);
	--hc-underline-y: calc(50% + 13px);
}
/* Both text-link presets: a 44px-tall tap target with the label centred, as in
   the design (the presets themselves have no vertical padding). */
body #page-container .et_pb_button.preset--module--divi-button--hcd2ae5c34,
body #page-container .et_pb_button.preset--module--divi-button--hcaf2d89a2 {
	display: inline-flex;
	flex-direction: row; /* Divi makes modules column flex boxes */
	align-items: center;
	min-height: 44px;
	vertical-align: top; /* no stray line-height gap under the link */
}

/* Map links: 44px-tall flex links with an 8px gap + 14–16px arrow after the label. */
.hc-map__link,
.hc-maps-link {
	--hc-underline-w: calc(100% - 24px);
	--hc-underline-y: calc(50% + 13px);
}

/* Table of contents rail (desktop) ------------------------------------------- */
@media (min-width: 768px) {
	.hc-toc .et_pb_table_of_contents__link {
		position: relative;
	}
	.hc-toc .et_pb_table_of_contents__link::before {
		content: "";
		position: absolute;
		top: 8px;
		bottom: 8px;
		left: -2px;
		width: 2px;
		background: var(--gcid-primary-color);
		transform: scaleY(0);
		transition: transform 0.25s ease;
	}
	.hc-toc .et_pb_table_of_contents__link:hover::before,
	.hc-toc .et_pb_table_of_contents__link--active::before {
		transform: scaleY(1);
	}
}
@media (max-width: 767px) {
	.hc-toc .et_pb_table_of_contents__link {
		transition: border-color 0.2s ease;
	}
	.hc-toc .et_pb_table_of_contents__link:hover {
		border-color: var(--gcid-primary-color) !important;
	}
}

/* Underlined links in text: underline thickens ------------------------------- */
.et_pb_text_inner a:not([class]),
.et_pb_breadcrumbs a,
.hc-hello__link {
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
	transition: text-decoration-thickness 0.2s ease, text-decoration-color 0.2s ease, color 0.2s ease;
}
.et_pb_text_inner a:not([class]):hover {
	text-decoration-thickness: 2px;
}
.hc-hello__link {
	text-decoration-thickness: 2px;
}
.hc-hello__link:hover {
	text-decoration-thickness: 3px;
}

/* Dark backgrounds: gold ------------------------------------------------------ */
.et-l--footer .et_pb_text_inner a:hover,
.hc-crumbs a:hover,
.et_pb_breadcrumbs a:hover { /* Divi Breadcrumbs module (Pay & Play, Plan Your Visit heroes) */
	color: var(--gcid-secondary-color) !important;
	text-decoration-color: currentColor;
}
.hc-icon-link svg {
	transition: stroke 0.2s ease;
}
.hc-icon-link:hover svg,
.hc-icon-link a:focus-visible svg {
	stroke: var(--gcid-secondary-color);
}
