/* Earls Gate plug-and-play animation (styles from the approved design). */

.eg-pp-root {
	position: relative;
	font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: normal;
	color: #fff;
}

.eg-pp-root *,
.eg-pp-root *::before,
.eg-pp-root *::after {
	box-sizing: border-box;
}

@keyframes egPing {
	0% { transform: scale(0.5); opacity: 0.9; }
	100% { transform: scale(2.6); opacity: 0; }
}

@keyframes egFlow {
	to { stroke-dashoffset: -16; }
}

@keyframes egPulse {
	0% { box-shadow: 0 0 0 0 rgba(138, 189, 58, 0.7); }
	70% { box-shadow: 0 0 0 10px rgba(138, 189, 58, 0); }
	100% { box-shadow: 0 0 0 0 rgba(138, 189, 58, 0); }
}

/* Static fallback (no JavaScript, search engines). */
.eg-pp-fallback__items {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 8px 20px;
	margin: 40px 0 0;
	padding: 0;
	list-style: none;
	font-size: 16px;
	color: #fff;
}

.eg-pp-fallback__cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 28px 32px;
	max-width: 1040px;
	margin: 40px auto 0;
}

.eg-pp-fallback__cards p {
	margin: 14px 0 0;
	font-size: 16px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.82);
}

.eg-js .eg-pp-root:not(.is-ready) .eg-pp-fallback {
	visibility: hidden;
}

.eg-js .eg-pp-root:not(.is-ready) {
	min-height: 600px;
}

/* Visually hidden, still read by screen readers and search engines. */
.eg-pp-sr {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Scene */
.eg-pp__stagewrap {
	max-width: 1160px;
	margin: clamp(32px, 5vw, 56px) auto 0;
}

.eg-pp__stage {
	position: relative;
	width: 100%;
	aspect-ratio: 1200 / 520;
}

.eg-pp__scene {
	position: absolute;
	inset: 0;
}

.eg-pp__svg {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.eg-pp__light {
	opacity: 0;
	transition: opacity 0.8s;
}

.eg-pp__ping {
	transform-box: fill-box;
	transform-origin: center;
}

.eg-pp__ping.is-on {
	animation: egPing 2.6s ease-out infinite;
}

.eg-pp__dash {
	animation: egFlow 2.2s linear infinite;
}

.eg-pp__flow {
	animation: egFlow 2.4s linear infinite;
}

.eg-pp__overlay > * {
	position: absolute;
	pointer-events: none;
}

/* Icon chip: unlit (light icon) and lit (green with navy icon) cross-fade */
.eg-pp__chip {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	transition: background 0.6s, box-shadow 0.6s;
}

.eg-pp__chip.is-lit {
	background: #8abd3a;
}

.eg-pp__co .eg-pp__chip.is-lit,
.eg-pp__fac .eg-pp__chip.is-lit {
	box-shadow: 0 0 0 5px rgba(138, 189, 58, 0.16);
}

.eg-pp__ic-wrap {
	display: grid;
}

.eg-pp__ic {
	grid-area: 1 / 1;
	display: block;
	max-width: none;
	transition: opacity 0.6s;
}

.eg-pp__ic--on {
	opacity: 0;
}

.eg-pp__chip.is-lit .eg-pp__ic--on {
	opacity: 1;
}

.eg-pp__chip.is-lit .eg-pp__ic--off {
	opacity: 0;
}

/* Callouts with names (wide screens) */
.eg-pp__co {
	display: flex;
	align-items: center;
	gap: 12px;
	text-align: left;
	opacity: 0;
	transform: translate(0, -50%);
	transition: opacity 0.8s 0.3s;
}

.eg-pp__co.is-left {
	flex-direction: row-reverse;
	text-align: right;
	transform: translate(-100%, -50%);
}

.eg-pp__co-t {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.eg-pp__co-n {
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
	white-space: nowrap;
}

.eg-pp__co-s {
	line-height: 1.25;
	color: rgba(255, 255, 255, 0.72);
	white-space: nowrap;
}

.eg-pp__fac {
	opacity: 0;
	transform: translate(-50%, -50%);
	transition: opacity 0.8s;
}

.eg-pp__plotlbl {
	font-weight: 600;
	color: #fff;
	white-space: nowrap;
	transform: translate(-50%, -50%);
	transition: opacity 0.8s;
}

.eg-pp__status {
	left: 0;
	top: 0;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 9px 16px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	font-weight: 600;
	transition: color 0.6s, border-color 0.6s;
}

.eg-pp__status.is-ready {
	border-color: rgba(138, 189, 58, 0.55);
	color: #8abd3a;
}

.eg-pp__status-dot {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: #e87919;
	animation: egPulse 2.4s infinite;
	transition: background 0.6s;
}

.eg-pp__status.is-ready .eg-pp__status-dot {
	background: #8abd3a;
}

/* Legend grid (screens under 780 px wide) */
.eg-pp__legend {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
	gap: 16px 20px;
	margin-top: 28px;
}

.eg-pp__lg {
	display: flex;
	align-items: center;
	gap: 12px;
	transition: opacity 0.6s;
}

.eg-pp__lg-t {
	display: flex;
	flex-direction: column;
}

.eg-pp__lg-n {
	font-size: 16px;
	color: #fff;
}

.eg-pp__lg-s {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.7);
}

/* Group cards with progress bars */
.eg-pp__groups {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 28px 32px;
	max-width: 1040px;
	margin: 40px auto 0;
}

.eg-pp__group {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font-family: inherit;
	text-align: left;
	cursor: pointer;
	transition: opacity 0.5s;
}

.eg-pp__group:focus-visible {
	outline: 2px solid #8abd3a;
	outline-offset: 6px;
	border-radius: 4px;
}

.eg-pp__bar {
	position: relative;
	display: block;
	width: 100%;
	height: 2px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.16);
}

.eg-pp__bar-fill {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 0;
	background: #8abd3a;
}

.eg-pp__logo {
	display: block;
	align-self: flex-start;
	width: auto;
	height: 24px;
	max-width: none;
}

.eg-pp__group-t {
	font-size: 16px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.82);
}

@media (prefers-reduced-motion: reduce) {
	.eg-pp-root *,
	.eg-pp-root *::before,
	.eg-pp-root *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
