/**
 * GGF Community Core: membership invitation (block, widget, placements).
 * Scoped like every plugin rule (see ggfc-base.css). Hidden for people who
 * are signed in: html.ggfc-m (hint cookie, set in the head before paint) and
 * html.ggfc-in (confirmed by the account script).
 */
html.ggfc-m .ggfc:not(#ggfc-i).ggfc-cta,
html.ggfc-in .ggfc:not(#ggfc-i).ggfc-cta { display: none; }

.ggfc:not(#ggfc-i).ggfc-cta {
	display: flex;
	flex-direction: column;
	gap: 14px;
	box-sizing: border-box;
	margin-top: 24px;
	margin-bottom: 24px;
	padding: 20px 22px;
	border: 1px solid var(--ggfc-border);
	border-radius: var(--ggfc-radius);
	background: var(--ggfc-card);
	color: var(--ggfc-text);
	container-type: inline-size;
}
.ggfc:not(#ggfc-i).ggfc-cta--standard { padding: 24px 26px; border-top: 3px solid var(--ggfc-accent); }
.ggfc:not(#ggfc-i).ggfc-cta--inline:not(.ggfc-cta--minimal) { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.ggfc:not(#ggfc-i).ggfc-cta--inline .ggfc-cta__body { flex: 1 1 320px; }
.ggfc:not(#ggfc-i) .ggfc-cta__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ggfc:not(#ggfc-i) .ggfc-cta__eyebrow { margin: 0; color: var(--ggfc-ink); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.ggfc:not(#ggfc-i) .ggfc-cta__title { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.ggfc:not(#ggfc-i).ggfc-cta--standard .ggfc-cta__title { font-size: 22px; }
.ggfc:not(#ggfc-i) .ggfc-cta__text { margin: 0; color: var(--ggfc-text-2); font-size: 15px; line-height: 1.55; }
.ggfc:not(#ggfc-i) .ggfc-cta__benefits { display: grid; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.ggfc:not(#ggfc-i) .ggfc-cta__benefits li { position: relative; margin: 0; padding-left: 24px; font-size: 15px; line-height: 1.45; }
.ggfc:not(#ggfc-i) .ggfc-cta__benefits li::before { content: ""; position: absolute; left: 2px; top: 0.3em; width: 12px; height: 7px; border-left: 2px solid var(--ggfc-ink); border-bottom: 2px solid var(--ggfc-ink); transform: rotate(-45deg); }
.ggfc:not(#ggfc-i) .ggfc-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.ggfc:not(#ggfc-i) .ggfc-cta__primary { min-height: 44px; text-decoration: none; }
.ggfc:not(#ggfc-i) .ggfc-cta__secondary,
.ggfc:not(#ggfc-i) .ggfc-cta__primary-link { display: inline-block; min-height: 24px; padding: 3px 0; color: var(--ggfc-ink); font-weight: 600; line-height: 1.2; text-decoration: underline; text-underline-offset: 2px; }
.ggfc:not(#ggfc-i) .ggfc-cta__secondary:focus-visible,
.ggfc:not(#ggfc-i) .ggfc-cta__primary-link:focus-visible { outline: 2px solid var(--ggfc-ink); outline-offset: 2px; }

/* Minimal: one line, no box. */
.ggfc:not(#ggfc-i).ggfc-cta--minimal { display: block; padding: 12px 0; border: 0; border-top: 1px solid var(--ggfc-border); border-bottom: 1px solid var(--ggfc-border); border-radius: 0; background: none; }
.ggfc:not(#ggfc-i) .ggfc-cta__line { margin: 0; font-size: 15px; line-height: 1.5; }
.ggfc:not(#ggfc-i) .ggfc-cta__sep { margin: 0 4px; color: var(--ggfc-text-2); }
.ggfc:not(#ggfc-i).ggfc-cta--in-footer { max-width: 1200px; margin: 24px auto; padding-left: 16px; padding-right: 16px; text-align: center; }

/* Sidebar widget: desktop only (the sidebar moves under the article on phones). */
@media (max-width: 899px) {
	.ggfc:not(#ggfc-i).ggfc-cta--in-sidebar { display: none; }
}
/* Never stacked under the Community Hub on phones. */
@media (max-width: 719px) {
	.ggfc:not(#ggfc-i).ggfc-cta--after-hub { display: none; }
}
@container (max-width: 420px) {
	.ggfc:not(#ggfc-i) .ggfc-cta__actions { flex-direction: column; align-items: stretch; }
	.ggfc:not(#ggfc-i) .ggfc-cta__primary { width: 100%; }
}
