/* Tavoitelaskuri "Montako viikkoa lähtöön?" (inc/goal-countdown.php, assets/js/goal-countdown.js).
   Own file, loaded only on pages whose content uses the module. A night stage in Electrofit's own colours: navy into
   black, the bright blue as light, yellow for the goal, red for the start line, green for the fresh legs of the taper. The card
   (.efit-card) is the size container: rules inside use @container, the readout is a container of its own.
   Motion plays once per choice (< 2.5 s) or follows the visitor's pointer; style.css section 1 switches all of it
   off with reduced motion. */

.efit-gc.efit-gc {
	--gc-fg: #fff;
	--gc-soft: var(--efit-sky, #a3ceeb);
	--gc-line: rgba(255, 255, 255, 0.14);
	--gc-hi: #f1ed0f;
	--gc-red: #ed3008;
	--gc-green: #b2cf08;
	--gc-ink: #00213b;
	--gc-base: #0077c8;
	--gc-spec: #80bbe4;
	--gc-pre: #f1ed0f;
	--gc-taper: #b2cf08;
	--mx: 0; --my: 0;
	color: var(--gc-fg);
	padding: var(--efit-pad-y) var(--efit-pad-x);
	background:
		radial-gradient(70% 55% at 88% 4%, rgba(0, 119, 200, 0.42), transparent 70%),
		radial-gradient(60% 50% at 4% 96%, rgba(0, 84, 143, 0.5), transparent 70%),
		linear-gradient(170deg, #00213b 0%, #00172b 48%, #000 100%);
	isolation: isolate;
}
.efit-gc .efit-gc__app { position: relative; display: grid; gap: var(--efit-s5); }
.efit-gc .efit-gc__app > * { margin: 0; min-width: 0; }
.efit-gc .efit-gc__app:not(.has-js) :is(.efit-gc__stage, .efit-gc__way, .efit-gc__cta, .efit-gc__pick) { display: none; }
.efit-gc .efit-gc__app.is-empty :is(.efit-gc__stage, .efit-gc__way, .efit-gc__cta) { opacity: 0.25; pointer-events: none; }

/* ---- backdrop: contour lines + a far-away ghost of the number ---- */
.efit-gc__sky {
	position: absolute; z-index: -1; pointer-events: none;
	inset: calc(var(--efit-pad-y) * -1) calc(var(--efit-pad-x) * -1);
	transform: translate3d(calc(var(--mx) * -18px), calc(var(--my) * -12px), 0);
	transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.efit-gc__sky svg { width: 100%; height: 100%; display: block; }
.efit-gc__sky path { fill: none; stroke: rgba(163, 206, 235, 0.085); stroke-width: 1; }
.efit-gc__sky path.is-index { stroke: rgba(163, 206, 235, 0.17); }
.efit-gc .efit-gc__ghost {
	position: absolute; z-index: -1; right: -0.03em; top: -0.16em; pointer-events: none; user-select: none;
	font-family: var(--efit-ff-display); font-weight: var(--efit-fw-display); line-height: 0.8; letter-spacing: -0.03em;
	font-size: clamp(14rem, 46cqi, 42rem); color: transparent; -webkit-text-stroke: 1.5px rgba(163, 206, 235, 0.085);
	transform: translate3d(calc(var(--mx) * 26px), calc(var(--my) * 14px), 0);
	transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---- head ---- */
.efit-gc__head { display: grid; gap: var(--efit-s3); }
.efit-gc__head > * { margin: 0; }
@container (min-width: 1000px) {
	.efit-gc__head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; column-gap: var(--efit-s6); }
	.efit-gc__head .efit-gc__eyebrow { grid-column: 1 / -1; }
}
.efit-gc p.efit-gc__eyebrow { display: flex; flex-wrap: wrap; gap: 8px; }
.efit-gc__eyebrow > span {
	display: inline-flex; padding: 7px 14px; border-radius: 999px; background: var(--gc-hi); color: var(--gc-ink);
	font: var(--efit-fw-ui-heavy) var(--efit-fs-xs)/1 var(--wp--preset--font-family--inter); letter-spacing: 0.12em; text-transform: uppercase;
}
.efit-card.efit-gc :is(h1, h2).efit-gc__title {
	font-family: var(--efit-ff-display); font-weight: var(--efit-fw-display); text-transform: uppercase;
	font-size: clamp(2.7rem, 9.4cqi, 8.2rem); line-height: 1; letter-spacing: -0.01em; color: var(--gc-fg);
}
.efit-gc__title em { display: block; font-style: normal; color: var(--gc-hi); }
.efit-card.efit-gc :is(h1, h2) + p { padding-top: 0; }
.efit-gc p.efit-gc__lead { font-size: var(--efit-fs-lead); line-height: var(--efit-lh-lead); max-width: 40ch; color: var(--gc-fg); }
.efit-gc p.efit-gc__label, .efit-gc legend.efit-gc__label {
	padding: 0; margin: 0 0 var(--efit-s2); color: var(--gc-soft);
	font: var(--efit-fw-ui) var(--efit-fs-xs)/1 var(--wp--preset--font-family--inter); letter-spacing: 0.14em; text-transform: uppercase;
}

/* ---- picker: real radio buttons dressed as chips ---- */
.efit-gc__pick { border: 0; margin: 0; padding: 0; min-width: 0; }
.efit-gc__opts { display: flex; flex-wrap: wrap; gap: 10px; }
.efit-gc__opt { position: relative; display: flex; flex: 1 1 auto; min-width: min(100%, 9rem); max-width: 100%; }
.efit-gc__optplace { display: none; }
@container (min-width: 700px) { .efit-gc__optplace { display: inline; } }
@container (min-width: 1000px) { .efit-gc__opt { flex: 0 1 auto; } }
.efit-gc__opt[hidden] { display: none; }
/* phones: one swipeable row instead of eight stacked chips; the edges fade to show there is more */
@container (max-width: 699.98px) {
	.efit-gc__opts {
		flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none;
		margin-inline: calc(var(--efit-pad-x) * -1); padding: 6px var(--efit-pad-x) 12px; scroll-padding-inline: var(--efit-pad-x);
		-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--efit-pad-x), #000 calc(100% - var(--efit-pad-x)), transparent 100%);
		mask-image: linear-gradient(90deg, transparent 0, #000 var(--efit-pad-x), #000 calc(100% - var(--efit-pad-x)), transparent 100%);
	}
	.efit-gc__opts::-webkit-scrollbar { display: none; }
	.efit-gc__opt { flex: 0 0 auto; min-width: 0; scroll-snap-align: start; }
	.efit-gc__opt b { white-space: nowrap; }
}
.efit-gc__opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.efit-gc__opt > span {
	flex: 1 1 auto; display: grid; align-content: start; gap: 4px; padding: 11px 16px 12px; border-radius: 14px;
	background: rgba(255, 255, 255, 0.045); box-shadow: inset 0 0 0 1.5px var(--gc-line);
	transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, color 0.25s ease;
}
.efit-gc__opt b {
	font-family: var(--efit-ff-display); font-weight: var(--efit-fw-display); text-transform: uppercase;
	font-size: 1.2rem; line-height: 1.05; hyphens: manual; overflow-wrap: break-word;
}
.efit-gc__opt small { font-size: var(--efit-fs-xs); line-height: 1.3; color: var(--gc-soft); font-variant-numeric: tabular-nums; }
.efit-gc__opt:hover > span { box-shadow: inset 0 0 0 1.5px var(--gc-soft); transform: translateY(-2px); }
.efit-gc__opt input:checked + span {
	background: var(--gc-hi); color: var(--gc-ink); transform: translateY(-2px);
	box-shadow: 0 14px 34px -10px rgba(241, 237, 15, 0.55);
}
.efit-gc__opt input:checked + span small { color: var(--gc-ink); }
.efit-gc__opt input:focus-visible + span { outline: 3px solid var(--efit-focus); outline-offset: 3px; }
.efit-gc__opt--own > span { box-shadow: inset 0 0 0 1.5px var(--gc-line); background: transparent; border: 1.5px dashed rgba(163, 206, 235, 0.45); }
.efit-gc__opt--own input:checked + span { border-color: transparent; }

.efit-gc__own { display: grid; gap: var(--efit-s2); margin-top: var(--efit-s3); max-width: 44rem; }
.efit-gc__own[hidden] { display: none; }
@container (min-width: 620px) { .efit-gc__own { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.efit-gc__own p { margin: 0; display: grid; gap: 6px; }
.efit-gc__own label { font: var(--efit-fw-ui) var(--efit-fs-sm)/1.2 var(--wp--preset--font-family--inter); color: var(--gc-soft); }
.efit-gc__own input {
	font: 400 16px/1.2 var(--wp--preset--font-family--inter); color: #fff; color-scheme: dark;
	min-height: 48px; padding: 10px 14px; border: 0; border-radius: 12px;
	background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1.5px rgba(163, 206, 235, 0.4);
}
.efit-gc__own input::placeholder { color: rgba(163, 206, 235, 0.75); }
.efit-gc__own input:focus-visible { outline: 3px solid var(--efit-focus); outline-offset: 2px; }

/* ---- stage: the number and the season ---- */
.efit-gc__stage { display: grid; gap: var(--efit-s4); align-items: end; }
@container (min-width: 1000px) { .efit-gc__stage { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--efit-s5); } }
.efit-gc__readout { container-type: inline-size; display: grid; gap: var(--efit-s1); align-self: center; }
.efit-gc__readout > p { margin: 0; }
.efit-gc p.efit-gc__kicker { color: var(--gc-soft); font: var(--efit-fw-ui) var(--efit-fs-xs)/1 var(--wp--preset--font-family--inter); letter-spacing: 0.14em; text-transform: uppercase; }
.efit-gc p.efit-gc__big {
	display: flex; align-items: flex-end; gap: 0.06em; color: var(--gc-hi);
	font-family: var(--efit-ff-display); font-weight: var(--efit-fw-display); line-height: 0.86; letter-spacing: -0.02em;
	font-size: clamp(7.5rem, 50cqi, 15rem); font-variant-numeric: tabular-nums;
}
.efit-gc__num { display: inline-flex; filter: drop-shadow(0 0 34px rgba(241, 237, 15, 0.3)); }
.efit-gc__digit { display: inline-block; height: 0.86em; overflow: hidden; }
.efit-gc__strip { display: flex; flex-direction: column; transition: transform 1.25s cubic-bezier(0.16, 1, 0.3, 1); }
.efit-gc__strip > span { display: block; height: 0.86em; text-align: center; }
.efit-gc__unit {
	writing-mode: vertical-rl; transform: rotate(180deg); color: var(--gc-fg); text-shadow: none;
	font-size: 0.17em; line-height: 1; letter-spacing: 0.06em; padding: 0.1em 0 0.35em;
}
.efit-gc p.efit-gc__to {
	font-family: var(--efit-ff-display); font-weight: var(--efit-fw-display); text-transform: uppercase;
	font-size: clamp(1.5rem, 10cqi, 2.6rem); line-height: 1; hyphens: manual; overflow-wrap: break-word; padding-top: var(--efit-s1);
}
.efit-gc__toplace { display: block; padding-top: 6px; font: var(--efit-fw-ui) var(--efit-fs-sm)/1.3 var(--wp--preset--font-family--inter); text-transform: none; color: #fff; }
.efit-gc p.efit-gc__facts { font-size: var(--efit-fs-sm); line-height: 1.45; color: var(--gc-soft); font-variant-numeric: tabular-nums; }

/* ---- chart ---- */
.efit-gc__chart { margin: 0; min-width: 0; }
.efit-gc__track { margin-right: 30px; }
.efit-gc__plot {
	position: relative; height: clamp(230px, 28cqi, 400px); margin-top: 34px;
	touch-action: pan-y; cursor: crosshair; -webkit-user-select: none; user-select: none;
}
.efit-gc__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.efit-gc__band { opacity: 0.075; }
.efit-gc__band.is-base, .efit-gc__ribbon .is-base, .efit-gc__legend .is-base .efit-gc__sw { fill: var(--gc-base); background: var(--gc-base); }
.efit-gc__band.is-spec, .efit-gc__ribbon .is-spec, .efit-gc__legend .is-spec .efit-gc__sw { fill: var(--gc-spec); background: var(--gc-spec); }
.efit-gc__band.is-pre, .efit-gc__ribbon .is-pre, .efit-gc__legend .is-pre .efit-gc__sw { fill: var(--gc-pre); background: var(--gc-pre); }
.efit-gc__band.is-taper, .efit-gc__ribbon .is-taper, .efit-gc__legend .is-taper .efit-gc__sw { fill: var(--gc-taper); background: var(--gc-taper); }
.efit-gc__guide { stroke: rgba(255, 255, 255, 0.07); stroke-dasharray: 2 6; vector-effect: non-scaling-stroke; }
.efit-gc__sep { stroke: rgba(255, 255, 255, 0.22); stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.efit-gc__wk { stroke: rgba(255, 255, 255, 0.25); vector-effect: non-scaling-stroke; }
.efit-gc__bar.is-base { fill: url(#gc-bar-base); }
.efit-gc__bar.is-spec { fill: url(#gc-bar-spec); }
.efit-gc__bar.is-pre { fill: url(#gc-bar-pre); }
.efit-gc__bar.is-taper { fill: url(#gc-bar-taper); }
.efit-gc__bar {
	transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0.015);
	transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.25, 1.15);
}
.is-drawn .efit-gc__bar { transform: none; }
.efit-gc__area { opacity: 0.95; }
.efit-gc__glow { fill: none; stroke: #0077c8; stroke-width: 16; stroke-linecap: round; opacity: 0.32; vector-effect: non-scaling-stroke; }
.efit-gc__line { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.efit-gc__line2 { fill: none; stroke: rgba(163, 206, 235, 0.5); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.efit-gc__drop { stroke: rgba(241, 237, 15, 0.55); stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }

/* the dot that skis the season, today's mark, the start line */
.efit-gc__rider {
	position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; opacity: 0;
	box-shadow: 0 0 0 4px rgba(241, 237, 15, 0.35), 0 0 26px 8px rgba(241, 237, 15, 0.55); pointer-events: none;
}
.is-drawing .efit-gc__rider, .is-arrived .efit-gc__rider { opacity: 1; }
.is-arrived .efit-gc__rider { background: var(--gc-hi); animation: gc-ping 1.5s cubic-bezier(0.2, 0.7, 0.3, 1) 3; }
@keyframes gc-ping {
	0% { box-shadow: 0 0 0 0 rgba(241, 237, 15, 0.7), 0 0 26px 8px rgba(241, 237, 15, 0.55); }
	100% { box-shadow: 0 0 0 30px rgba(241, 237, 15, 0), 0 0 26px 8px rgba(241, 237, 15, 0.55); }
}
.efit-gc__today { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18); }
.efit-gc__today > span {
	position: absolute; left: -4px; top: 18px; white-space: nowrap; color: #fff; padding: 4px 6px; border-radius: 5px; background: rgba(0, 23, 43, 0.85);
	font: var(--efit-fw-ui-heavy) 11px/1 var(--wp--preset--font-family--inter); letter-spacing: 0.14em; text-transform: uppercase;
}
.efit-gc__flag {
	position: absolute; left: 100%; top: -10px; bottom: 0; width: 10px; margin-left: 10px; border-radius: 2px;
	background: repeating-conic-gradient(#fff 0 25%, #00172b 0 50%) 0 0 / 10px 10px;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.efit-gc__flagtag {
	position: absolute; right: 16px; top: -26px; white-space: nowrap; padding: 7px 10px; border-radius: 8px;
	background: var(--gc-red); color: #000; font: var(--efit-fw-ui-heavy) 12px/1 var(--wp--preset--font-family--inter); letter-spacing: 0.1em; text-transform: uppercase;
	transform-origin: 100% 100%; transition: transform 0.5s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.is-drawing .efit-gc__flagtag { transform: scale(0.85); }
.is-arrived .efit-gc__flagtag { box-shadow: 0 0 0 0 rgba(237, 48, 8, 0.6); animation: gc-flag 1.5s ease-out 2; }
@keyframes gc-flag { 100% { box-shadow: 0 0 0 16px rgba(237, 48, 8, 0); } }

/* camps on the curve */
.efit-gc__pins { position: absolute; inset: 0; pointer-events: none; }
.efit-gc__pin {
	position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%;
	display: grid; place-items: center; background: #00172b; color: var(--gc-hi); box-shadow: inset 0 0 0 2px var(--gc-hi), 0 0 18px rgba(241, 237, 15, 0.35);
	font: var(--efit-fw-ui-heavy) 12px/1 var(--wp--preset--font-family--inter); font-variant-numeric: tabular-nums;
	transform: scale(0); transition: transform 0.5s cubic-bezier(0.3, 1.7, 0.5, 1);
}
.efit-gc__pin.is-lit { transform: scale(1); }

/* scrubbing */
.efit-gc__cursor {
	position: absolute; top: 0; bottom: 0; width: 1px; margin-left: -0.5px; background: rgba(255, 255, 255, 0.55);
	opacity: 0; transition: opacity 0.15s ease; pointer-events: none;
}
.efit-gc__cursor::after {
	content: ""; position: absolute; left: -6px; top: var(--y, 50%); width: 13px; height: 13px; margin-top: -6.5px;
	border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(0, 119, 200, 0.6);
}
.efit-gc__tip {
	position: absolute; top: 6px; z-index: 2; display: grid; gap: 3px; min-width: 11.5rem; padding: 12px 14px;
	border-radius: 12px; background: rgba(0, 23, 43, 0.94); box-shadow: inset 0 0 0 1px var(--gc-line), 0 18px 40px rgba(0, 0, 0, 0.45);
	font-size: var(--efit-fs-xs); line-height: 1.35; color: #fff;
	opacity: 0; transition: opacity 0.15s ease; pointer-events: none; font-variant-numeric: tabular-nums;
}
.is-scrub .efit-gc__cursor, .is-scrub .efit-gc__tip { opacity: 1; }
.efit-gc__tipwk { font-family: var(--efit-ff-display); font-weight: var(--efit-fw-display); font-size: 1.35rem; line-height: 1; color: var(--gc-hi); text-transform: uppercase; }
.efit-gc__tipdate, .efit-gc__tipleft { color: var(--gc-soft); }
.efit-gc__tipph { display: flex; align-items: center; gap: 7px; font-weight: 600; }
.efit-gc__tipph::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--gc-base); }
.efit-gc__tipph.is-spec::before { background: var(--gc-spec); }
.efit-gc__tipph.is-pre::before { background: var(--gc-pre); }
.efit-gc__tipph.is-taper::before { background: var(--gc-taper); }
.efit-gc__tipcamp { color: var(--gc-hi); font-weight: 600; }

/* axis, phase ribbon, camp lane */
.efit-gc__axis { position: relative; height: 28px; border-top: 1px solid rgba(255, 255, 255, 0.3); }
.efit-gc__axis span {
	position: absolute; top: 0; padding: 8px 0 0 6px; white-space: nowrap; color: var(--gc-soft);
	font: var(--efit-fw-ui) 11px/1 var(--wp--preset--font-family--inter); letter-spacing: 0.1em; text-transform: uppercase;
}
.efit-gc__axis span::before { content: ""; position: absolute; left: 0; top: -1px; height: 8px; border-left: 1px solid rgba(255, 255, 255, 0.45); }
.efit-gc__ribbon { display: grid; gap: 3px; height: 10px; margin-top: 4px; }
.efit-gc__ribbon i { display: block; border-radius: 999px; }
.efit-gc__lane { position: relative; height: calc(var(--rows, 0) * 32px); margin-top: 14px; }
.efit-gc__seg { position: absolute; top: calc(var(--row, 0) * 32px); height: 26px; min-width: 6px; }
.efit-gc__seg::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; min-width: 6px; border-radius: 3px; background: var(--gc-hi); opacity: 0.85; }
.efit-gc__seglabel {
	position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
	font: var(--efit-fw-ui) 12px/1 var(--wp--preset--font-family--inter); color: #fff;
}
.efit-gc__seg.is-flip .efit-gc__seglabel { left: auto; right: 0; }
.efit-gc__seglabel b {
	display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%;
	background: var(--gc-hi); color: var(--gc-ink); font-size: 10px; font-weight: 700;
}
p.efit-gc__caption, .efit-gc figcaption.efit-gc__caption { margin: var(--efit-s2) 30px 0 0; font-size: var(--efit-fs-xs); line-height: 1.4; color: var(--gc-soft); }

/* phase legend */
.efit-gc__legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; }
@container (min-width: 1000px) { .efit-gc__stage .efit-gc__legend { grid-column: 2; grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.efit-gc__legend li { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 9px; row-gap: 3px; align-items: center; }
.efit-gc__legend .efit-gc__sw { width: 10px; height: 10px; border-radius: 3px; }
.efit-gc__legend b { font: var(--efit-fw-ui) var(--efit-fs-sm)/1.2 var(--wp--preset--font-family--inter); }
.efit-gc__legend li > span:last-child { grid-column: 2; font-size: var(--efit-fs-xs); line-height: 1.3; color: var(--gc-soft); font-variant-numeric: tabular-nums; }

/* ---- on the way: camp cards, the goal last ---- */
.efit-gc__stops { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--efit-gap); grid-template-columns: minmax(0, 1fr); }
@container (min-width: 640px) { .efit-gc__stops { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 1100px) { .efit-gc__stops { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.efit-gc__stop { margin: 0; }
.efit-gc__stop > :is(a, div) {
	position: relative; display: grid; align-content: start; gap: 6px; height: 100%; padding: 20px 20px 18px 62px;
	border-radius: 16px; background: rgba(255, 255, 255, 0.045); box-shadow: inset 0 0 0 1px var(--gc-line);
	color: #fff; text-decoration: none; transition: background-color 0.25s ease, box-shadow 0.35s ease, transform 0.25s ease;
}
.efit-gc__stop > a:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-3px); }
.efit-gc__stop > a:hover .efit-gc__stopname { color: var(--gc-hi); }
.efit-gc__stop > a:focus-visible { outline: 3px solid var(--efit-focus); outline-offset: 3px; }
.efit-gc__stop.is-lit > :is(a, div) { animation: gc-lit 1.1s ease-out 1; }
@keyframes gc-lit { 0% { box-shadow: inset 0 0 0 1px var(--gc-hi), 0 0 0 0 rgba(241, 237, 15, 0.5); } 100% { box-shadow: inset 0 0 0 1px var(--gc-line), 0 0 0 14px rgba(241, 237, 15, 0); } }
.efit-gc__stopn {
	position: absolute; left: 18px; top: 18px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
	background: var(--gc-hi); color: var(--gc-ink); font: 700 13px/1 var(--wp--preset--font-family--inter);
}
.efit-gc__stopwhen { color: var(--gc-soft); font: var(--efit-fw-ui) var(--efit-fs-sm)/1.3 var(--wp--preset--font-family--inter); font-variant-numeric: tabular-nums; }
.efit-gc__stopname {
	font-family: var(--efit-ff-display); font-weight: var(--efit-fw-display); text-transform: uppercase;
	font-size: clamp(1.3rem, 2.2cqi, 1.75rem); line-height: 1.02; hyphens: manual; overflow-wrap: break-word; transition: color 0.25s ease;
}
.efit-gc__stopplace { font-size: var(--efit-fs-sm); line-height: 1.35; }
.efit-gc__stopweek { margin-top: 4px; color: var(--gc-soft); font: var(--efit-fw-ui) var(--efit-fs-xs)/1 var(--wp--preset--font-family--inter); letter-spacing: 0.1em; text-transform: uppercase; }
.efit-gc__stop--goal > :is(a, div) {
	background: linear-gradient(140deg, rgba(237, 48, 8, 0.3), rgba(241, 237, 15, 0.08) 70%);
	box-shadow: inset 0 0 0 1.5px var(--gc-red);
}
.efit-gc__stop--goal .efit-gc__stopn {
	border-radius: 4px; background: repeating-conic-gradient(#fff 0 25%, #00172b 0 50%) 0 0 / 14px 14px; box-shadow: 0 0 0 2px #fff;
}
.efit-gc__stop--goal .efit-gc__stopweek { color: #fff; }
.efit-gc__stop--goal.is-lit > :is(a, div) { animation: none; }
.is-arrived .efit-gc__stop--goal > :is(a, div) { animation: gc-goal 1.4s ease-out 1; }
@keyframes gc-goal { 0% { box-shadow: inset 0 0 0 1.5px var(--gc-red), 0 0 0 0 rgba(237, 48, 8, 0.55); } 100% { box-shadow: inset 0 0 0 1.5px var(--gc-red), 0 0 0 18px rgba(237, 48, 8, 0); } }

/* ---- call to action ---- */
.efit-gc__cta { display: grid; gap: var(--efit-s3); padding-top: var(--efit-s4); border-top: 1px solid var(--gc-line); }
.efit-gc__cta > * { margin: 0; }
.efit-gc__cta .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.efit-gc__cta .wp-block-button { margin: 0; }
.efit-gc .efit-gc__gobtn .wp-block-button__link { background: var(--gc-hi); color: var(--gc-ink); box-shadow: 0 14px 36px -12px rgba(241, 237, 15, 0.6); }
.efit-gc .efit-gc__gobtn .wp-block-button__link::after { content: "→"; margin-left: 0.45em; }
.efit-gc button.wp-block-button__link { font: inherit; font-weight: var(--efit-fw-ui); cursor: pointer; color: #fff; }
.efit-gc p.efit-gc__note { font-size: var(--efit-fs-sm); line-height: 1.5; color: var(--gc-soft); max-width: 62ch; }
.efit-gc p.efit-gc__noscript { font-size: var(--efit-fs-sm); }
.efit-gc p.efit-gc__noscript a { color: var(--gc-hi); }

/* ---- the demo page's note for the client (patterns/page-tavoitelaskuri.php), same look as the Team demo's ---- */
.efit-gcdemo.efit-gcdemo { padding: 12px var(--efit-s3); border-radius: calc(var(--efit-radius) * 0.7); background: var(--efit-navy); color: #fff; }
p.efit-gcdemo__text { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; font-size: var(--efit-fs-sm); line-height: 1.5; }
.efit-gcdemo__chip { padding: 3px 10px; border-radius: 999px; background: var(--efit-yellow); color: var(--efit-navy); font: var(--efit-fw-ui-heavy) var(--efit-fs-xs)/1.3 var(--wp--preset--font-family--inter); letter-spacing: 0.06em; text-transform: uppercase; }
.efit-gcdemo a { color: var(--efit-yellow); }
.efit-gcdemo a:focus-visible { outline-color: var(--efit-yellow); }
