/* GITECHY Social Follow – pop-up, slide-in, bar, floating button, inline buttons and the links page. */
.gfollow,
.gfollow-inline,
.gfollow-page {
	--gfollow-bg: #fff;
	--gfollow-fg: #1d2939;
	--gfollow-muted: #667085;
	--gfollow-line: rgba(16, 24, 40, 0.1);
	font-family: inherit;
	line-height: 1.4;
	box-sizing: border-box;
}
.gfollow *, .gfollow-inline *, .gfollow-page * { box-sizing: border-box; }
.gfollow--dark { --gfollow-bg: #111827; --gfollow-fg: #f2f4f7; --gfollow-muted: #98a2b3; --gfollow-line: rgba(255, 255, 255, 0.14); }

.gfollow { position: fixed; z-index: 999999; }
.gfollow__panel {
	position: relative;
	display: flex;
	gap: 18px;
	align-items: center;
	background: var(--gfollow-bg);
	color: var(--gfollow-fg);
	border-radius: 16px;
	box-shadow: 0 20px 50px rgba(16, 24, 40, 0.25);
	padding: 22px 22px 20px;
	border-top: 4px solid var(--gfollow-color);
	opacity: 0;
	transition: opacity 0.25s ease, transform 0.25s ease;
}
.gfollow.is-open .gfollow__panel { opacity: 1; transform: none; }
.gfollow__close {
	position: absolute; top: 6px; right: 8px;
	width: 32px; height: 32px; border: 0; border-radius: 50%;
	background: transparent; color: var(--gfollow-muted);
	font-size: 24px; line-height: 1; cursor: pointer;
}
.gfollow__close:hover, .gfollow__close:focus-visible { background: var(--gfollow-line); color: var(--gfollow-fg); }
.gfollow__close:focus-visible, .gfollow__link:focus-visible, .gfollow__fab:focus-visible { outline: 2px solid var(--gfollow-color); outline-offset: 2px; }
.gfollow__logo { display: block; max-width: 72px; max-height: 72px; object-fit: contain; flex: 0 0 auto; }
.gfollow__body { flex: 1 1 auto; min-width: 0; }
.gfollow__title { margin: 0 28px 4px 0; font-size: 1.2rem; font-weight: 700; color: var(--gfollow-fg); }
.gfollow__text { margin: 0 0 14px; font-size: 0.95rem; color: var(--gfollow-muted); }
.gfollow__links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.gfollow__links li { margin: 0; padding: 0; }
.gfollow__link {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 50%;
	background: var(--gfollow-net, var(--gfollow-color)); color: #fff !important;
	text-decoration: none !important; transition: transform 0.15s ease, filter 0.15s ease;
}
.gfollow--mono .gfollow__link { background: var(--gfollow-color); }
.gfollow--square .gfollow__link { border-radius: 10px; }
.gfollow__link:hover, .gfollow__link:focus-visible { transform: translateY(-2px); filter: brightness(1.08); }
.gfollow__link svg { width: 22px; height: 22px; display: block; }
.gfollow__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Light brand colours (Snapchat yellow): dark icon. */
.gfollow__link[data-gfollow-net="snapchat"], .gfollow-inline .gfollow__link[style*="FFFC00"] { color: #111 !important; }
.gfollow__qr { flex: 0 0 auto; width: 112px; text-align: center; color: var(--gfollow-muted); }
.gfollow__qr svg { display: block; width: 112px; height: 112px; background: #fff; padding: 6px; border-radius: 8px; }
.gfollow__qr small { display: block; margin-top: 4px; font-size: 0.72rem; }
@media (pointer: coarse), (max-width: 767px) { .gfollow__qr { display: none; } }

/* Pop-up in the centre (with a dimmed page behind). */
.gfollow--popup { inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(16, 24, 40, 0); transition: background 0.25s ease; }
.gfollow--popup.is-open { background: rgba(16, 24, 40, 0.5); }
.gfollow--popup .gfollow__panel { width: min(520px, 100%); transform: translateY(12px) scale(0.98); }

/* Slide-in from a corner. */
.gfollow--slidein { bottom: 20px; width: min(400px, calc(100% - 32px)); }
.gfollow--slidein.gfollow--right { right: 16px; }
.gfollow--slidein.gfollow--left { left: 16px; }
.gfollow--slidein .gfollow__panel { transform: translateY(30px); }
.gfollow--slidein .gfollow__qr, .gfollow--button .gfollow__qr { width: 84px; }
.gfollow--slidein .gfollow__qr svg, .gfollow--button .gfollow__qr svg { width: 84px; height: 84px; }

/* Bar at the top or bottom. */
.gfollow--bar { left: 0; right: 0; }
.gfollow--bar.gfollow--bottom { bottom: 0; }
.gfollow--bar.gfollow--top { top: 0; }
.gfollow--bar .gfollow__panel { border-radius: 0; padding: 12px 56px 12px 20px; border-top: 0; box-shadow: 0 -8px 30px rgba(16, 24, 40, 0.18); }
.gfollow--bar.gfollow--bottom .gfollow__panel { border-top: 3px solid var(--gfollow-color); transform: translateY(100%); }
.gfollow--bar.gfollow--top .gfollow__panel { border-bottom: 3px solid var(--gfollow-color); transform: translateY(-100%); }
.gfollow--bar .gfollow__body { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; justify-content: center; }
.gfollow--bar .gfollow__title { margin: 0; font-size: 1rem; }
.gfollow--bar .gfollow__text { margin: 0; }
.gfollow--bar .gfollow__logo { max-height: 36px; }
.gfollow--bar .gfollow__link { width: 36px; height: 36px; }
.gfollow--bar .gfollow__link svg { width: 18px; height: 18px; }
.gfollow--bar .gfollow__close { top: 50%; transform: translateY(-50%); }
.gfollow--bar.is-open .gfollow__panel { transform: none; }

/* Floating button that opens the panel. */
.gfollow--button { bottom: 20px; display: flex; flex-direction: column; gap: 10px; }
.gfollow--button.gfollow--right { right: 16px; align-items: flex-end; }
.gfollow--button.gfollow--left { left: 16px; align-items: flex-start; }
.gfollow__fab svg { display: block; }
.gfollow__fab {
	order: 2; display: inline-flex; align-items: center; gap: 8px;
	padding: 12px 18px; border: 0; border-radius: 999px;
	background: var(--gfollow-color); color: #fff; font: inherit; font-weight: 600;
	box-shadow: 0 10px 25px rgba(16, 24, 40, 0.25); cursor: pointer;
	opacity: 0; transform: translateY(20px); transition: opacity 0.25s ease, transform 0.25s ease;
}
.gfollow--button.is-in .gfollow__fab { opacity: 1; transform: none; }
.gfollow--button .gfollow__panel { order: 1; width: min(380px, calc(100vw - 32px)); display: none; }
.gfollow--button.is-open .gfollow__panel { display: flex; }

/* Phones. */
@media (max-width: 600px) {
	.gfollow__panel { flex-direction: column; align-items: flex-start; }
	.gfollow--bar .gfollow__panel { flex-direction: row; }
	.gfollow--mobile-full.gfollow--popup { padding: 0; }
	.gfollow--mobile-full.gfollow--popup .gfollow__panel,
	.gfollow--mobile-full.gfollow--slidein .gfollow__panel { width: 100%; min-height: 100vh; min-height: 100dvh; border-radius: 0; justify-content: center; align-items: center; text-align: center; }
	.gfollow--mobile-full.gfollow--slidein { inset: 0; width: auto; }
	.gfollow--mobile-full .gfollow__links { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	.gfollow__panel, .gfollow__fab, .gfollow--popup { transition: none; }
}

/* Inline buttons: [gitechy_follow] and the block. */
.gfollow-inline { margin: 1em 0; }
.gfollow-inline .gfollow__title { margin: 0 0 8px; }
.gfollow-inline--labels .gfollow__link { width: auto; padding: 0 16px 0 12px; gap: 8px; border-radius: 999px; }
.gfollow-inline--labels.gfollow--square .gfollow__link { border-radius: 10px; }
.gfollow-inline--labels .gfollow__name { position: static; width: auto; height: auto; clip: auto; font-weight: 600; font-size: 0.92rem; }

/* Links page (what the QR code opens). */
.gfollow-page { margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: #f2f4f7; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.gfollow-page__card { width: min(440px, 100%); padding: 28px 22px; border-radius: 20px; background: var(--gfollow-bg); color: var(--gfollow-fg); text-align: center; border-top: 5px solid var(--gfollow-color); box-shadow: 0 20px 50px rgba(16, 24, 40, 0.12); }
.gfollow-page__card .gfollow__logo { margin: 0 auto 12px; max-width: 96px; max-height: 96px; }
.gfollow-page__card .gfollow__title { margin: 0 0 6px; font-size: 1.5rem; }
.gfollow-page__links { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.gfollow-page__links .gfollow__link { width: 100%; height: 52px; border-radius: 14px; gap: 10px; font-weight: 600; font-size: 1rem; }
.gfollow-page__links .gfollow__name { position: static; width: auto; height: auto; clip: auto; }
.gfollow-page__site { margin: 18px 0 0; font-size: 0.85rem; }
.gfollow-page__site a { color: var(--gfollow-muted); }
