/* ==========================================================================
   GoalPrevail — site chrome & templates (frontend only)
   ========================================================================== */

html { scroll-padding-top: calc(var(--gp-header-h) + 16px); background: var(--gp-bg); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { overflow-x: clip; transition: background-color .3s, color .3s; }
.gp-main { display: block; outline: none; }
.gp-wrap { width: min(100% - 2 * var(--gp-gutter), var(--gp-wide)); margin-inline: auto; }
.gp-wrap--narrow { width: min(100% - 2 * var(--gp-gutter), var(--gp-content)); }

.gp-skip { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--gp-brand); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; transition: top .2s; }
.gp-skip:focus { top: 12px; color: #fff; }

/* Logo per colour mode */
.gp-logo .gp-logo__img--on-dark { display: none; }
:root[data-theme="dark"] .gp-logo .gp-logo__img--on-light:has(+ .gp-logo__img--on-dark) { display: none; }
:root[data-theme="dark"] .gp-logo .gp-logo__img--on-dark { display: block; }

/* ---------- Template buttons ---------- */
.gp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 44px; padding: var(--gp-button-pad-y) var(--gp-button-pad-x);
	border-radius: var(--gp-button-radius); border: 1px solid transparent;
	font-weight: var(--gp-button-weight); text-transform: var(--gp-button-transform);
	text-decoration: none; line-height: 1.2; white-space: nowrap;
	background: var(--gp-brand); color: #fff;
	box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 8px 24px -10px rgb(var(--gp-brand-rgb) / .7);
	transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.gp-btn:hover { background: var(--gp-brand-hover); color: #fff; }
.gp-btn:active { transform: translateY(1px); }
.gp-btn svg { transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.gp-btn:hover svg { transform: translateX(3px); }
.gp-btn--ghost { background: transparent; color: var(--gp-text); border-color: var(--gp-line-strong); box-shadow: none; }
.gp-btn--ghost:hover { background: rgb(var(--gp-text-rgb) / .06); color: var(--gp-text); }
.gp-btn--brand, .gp-btn--dark { background: var(--gp-brand); color: #fff; }

/* ==========================================================================
   Header
   ========================================================================== */
.gp-header {
	position: relative; z-index: 60;
	background: color-mix(in srgb, var(--gp-bg) 72%, transparent);
	-webkit-backdrop-filter: saturate(1.6) blur(16px);
	backdrop-filter: saturate(1.6) blur(16px);
	transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .3s, background-color .3s;
}
.gp-has-sticky-header .gp-header { position: sticky; top: 0; }
.admin-bar.gp-has-sticky-header .gp-header { top: 32px; }
@media (max-width: 782px) { .admin-bar.gp-has-sticky-header .gp-header { top: 0; } }
.gp-header.is-scrolled { box-shadow: 0 1px 0 var(--gp-line); }
.gp-header.is-hidden { transform: translateY(-100%); }
.gp-header__inner {
	width: min(100% - 2 * var(--gp-gutter), var(--gp-wide)); margin-inline: auto;
	min-height: var(--gp-header-h);
	display: grid; align-items: center; gap: 16px; grid-template-columns: auto 1fr auto;
}
.gp-header--split .gp-header__inner { grid-template-columns: 1fr auto 1fr; }
.gp-header__brand { display: flex; align-items: center; min-width: 0; }
.gp-logo { display: inline-flex; align-items: center; color: inherit; text-decoration: none; border-radius: 6px; }
.gp-logo__img { display: block; width: var(--gp-logo-w-mobile); height: auto; }
@media (min-width: 1024px) { .gp-logo--header .gp-logo__img { width: var(--gp-logo-w); } }
.gp-logo__text { font-weight: 700; font-size: 1.3rem; letter-spacing: -.03em; }
.gp-header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.gp-iconbtn {
	display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px;
	border: 1px solid transparent; background: transparent; color: var(--gp-muted); cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
.gp-iconbtn:hover, .gp-iconbtn[aria-expanded="true"] { color: var(--gp-text); background: rgb(var(--gp-text-rgb) / .07); }
.gp-mode-toggle__sun { display: none; }
:root[data-theme="dark"] .gp-mode-toggle__sun { display: block; }
:root[data-theme="dark"] .gp-mode-toggle__moon { display: none; }
.gp-mode-toggle svg { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.gp-mode-toggle:hover svg { transform: rotate(25deg); }
.gp-btn--cta { min-height: 40px; padding: 9px 16px; font-size: .92rem; margin-left: 6px; }
.gp-header__actions .gp-btn--cta { display: none; }
@media (min-width: 1024px) { .gp-header__actions .gp-btn--cta { display: inline-flex; } }

.gp-burger {
	display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 14px 0 12px;
	border-radius: 10px; border: 1px solid var(--gp-line-strong); background: transparent; color: var(--gp-text);
	font: inherit; font-weight: 500; font-size: .92rem; cursor: pointer;
}
.gp-burger__lines { position: relative; width: 16px; height: 10px; }
.gp-burger__lines i { position: absolute; left: 0; width: 100%; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform .3s cubic-bezier(.2,.7,.2,1), top .3s; }
.gp-burger__lines i:first-child { top: 1px; }
.gp-burger__lines i:last-child { top: 7px; }
.gp-burger[aria-expanded="true"] .gp-burger__lines i:first-child { top: 4px; transform: rotate(45deg); }
.gp-burger[aria-expanded="true"] .gp-burger__lines i:last-child { top: 4px; transform: rotate(-45deg); }
@media (min-width: 1024px) { .gp-burger { display: none; } }

.gp-search {
	position: absolute; left: 0; right: 0; top: 100%;
	background: var(--gp-raised); border-block: 1px solid var(--gp-line);
	box-shadow: var(--gp-shadow);
	visibility: hidden; opacity: 0; transform: translateY(-6px);
	transition: opacity .25s, transform .3s cubic-bezier(.2,.7,.2,1), visibility 0s linear .3s;
}
.gp-search.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.gp-search__inner { width: min(100% - 2 * var(--gp-gutter), 720px); margin-inline: auto; padding: 20px 0; }
.gp-searchform { display: flex; gap: 8px; }
.gp-searchform__input {
	flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; font: inherit; color: var(--gp-text);
	background: var(--gp-bg); border: 1px solid var(--gp-line-strong); border-radius: 10px;
}
.gp-searchform__input:focus { outline: none; border-color: var(--gp-brand); box-shadow: 0 0 0 4px rgb(var(--gp-brand-rgb) / .2); }
.gp-searchform__btn { min-height: 48px; padding: 0 20px; border: 0; border-radius: 10px; cursor: pointer; background: var(--gp-brand); color: #fff; font: inherit; font-weight: 500; }
.gp-searchform__btn:hover { background: var(--gp-brand-hover); }

/* ==========================================================================
   Navigation — desktop
   ========================================================================== */
.gp-nav__list { list-style: none; margin: 0; padding: 0; }
.gp-nav__mobile-extra { display: none; }
.gp-nav__link {
	display: inline-flex; align-items: center; gap: 6px;
	color: var(--gp-muted); text-decoration: none;
	font: inherit; font-size: var(--gp-nav-size); font-weight: var(--gp-nav-weight);
	background: none; border: 0; cursor: pointer; transition: color .2s;
}
.gp-nav__link:hover, .gp-nav__item.is-current > .gp-nav__link, .gp-nav__item.is-current > .gp-nav__row > .gp-nav__link, .gp-nav__item.is-open > .gp-nav__row > .gp-nav__link { color: var(--gp-text); }
.gp-chevron { transition: transform .3s cubic-bezier(.2,.7,.2,1); flex: none; opacity: .7; }
[aria-expanded="true"] > .gp-chevron { transform: rotate(180deg); }

@media (min-width: 1024px) {
	.gp-nav { justify-self: center; }
	.gp-header--right .gp-nav { justify-self: end; }
	.gp-nav__list { display: flex; align-items: center; gap: 2px; }
	.gp-nav__item.has-children:not(.has-mega) { position: relative; }
	.gp-nav__row { display: flex; align-items: center; border-radius: 8px; transition: background-color .2s; }
	.gp-nav__item:hover > .gp-nav__row, .gp-nav__item.is-open > .gp-nav__row { background: rgb(var(--gp-text-rgb) / .06); }
	.gp-nav__link { padding: 8px 12px; border-radius: 8px; min-height: 40px; }
	.gp-nav__item:not(.has-children) > .gp-nav__link:hover { background: rgb(var(--gp-text-rgb) / .06); }
	.gp-nav__row .gp-nav__link:not(.gp-nav__toggle--label) { padding-right: 2px; }
	.gp-nav__item.is-current > .gp-nav__link::after,
	.gp-nav__item.is-current > .gp-nav__row > .gp-nav__link::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gp-brand); margin-left: 2px; }
	.gp-nav__toggle:not(.gp-nav__link) { display: inline-grid; place-items: center; width: 26px; height: 40px; background: none; border: 0; color: var(--gp-muted); cursor: pointer; border-radius: 8px; }

	.gp-sub {
		position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px;
		background: var(--gp-raised); color: var(--gp-text);
		border: 1px solid var(--gp-line); border-radius: 14px; box-shadow: var(--gp-shadow); padding: 8px;
		visibility: hidden; opacity: 0; transform: translateY(6px);
		transition: opacity .2s, transform .3s cubic-bezier(.2,.7,.2,1), visibility 0s linear .3s;
	}
	.gp-sub__list { list-style: none; margin: 0; padding: 0; }
	.gp-sub__link { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; color: inherit; text-decoration: none; }
	.gp-sub__link:hover { background: rgb(var(--gp-text-rgb) / .06); }

	.gp-mega {
		position: absolute; left: 0; right: 0; top: 100%; color: var(--gp-text);
		visibility: hidden; opacity: 0; transform: translateY(-6px); pointer-events: none;
		transition: opacity .2s, transform .35s cubic-bezier(.2,.7,.2,1), visibility 0s linear .35s;
	}
	.gp-mega__inner {
		width: min(100% - 2 * var(--gp-gutter), var(--gp-wide)); margin: 8px auto 0;
		display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 3vw, 40px);
		background: var(--gp-raised);
		border: 1px solid var(--gp-line); border-radius: 20px; box-shadow: var(--gp-shadow);
		padding: clamp(22px, 2.4vw, 32px);
		max-height: calc(100vh - var(--gp-header-h) - 40px); overflow: auto;
	}
	.gp-mega--full .gp-mega__inner { width: 100%; margin-top: 0; border-radius: 0; border-width: 1px 0; padding-inline: max(var(--gp-gutter), (100% - var(--gp-wide)) / 2); }
	.gp-mega__inner:has(.gp-mega__feat) { grid-template-columns: minmax(0, 1fr) 300px; }
	.gp-mega__cols { display: grid; grid-template-columns: repeat(var(--gp-mega-cols, 3), minmax(0, 1fr)); gap: 8px 24px; align-content: start; }
	.gp-mega__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
	.gp-mega__list--flow { grid-column: 1 / -1; grid-template-columns: repeat(var(--gp-mega-cols, 3), minmax(0, 1fr)); gap: 4px 16px; }
	.gp-mega__heading { display: block; margin: 0 0 6px; padding: 0 12px 8px; font-size: .78rem; font-weight: 500; color: var(--gp-muted); text-decoration: none; border-bottom: 1px solid var(--gp-line); }
	a.gp-mega__heading:hover { color: var(--gp-accent-text); }
	.gp-mega__link { display: grid; gap: 3px; padding: 10px 12px; border-radius: 10px; color: inherit; text-decoration: none; transition: background-color .2s; }
	.gp-mega__link .gp-menu-label { font-weight: 500; font-size: .96rem; display: inline-flex; align-items: center; gap: 6px; }
	.gp-mega__link .gp-menu-label::after { content: "\2192"; opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .25s; color: var(--gp-brand); }
	.gp-mega__link:hover, .gp-mega__item.is-current .gp-mega__link { background: rgb(var(--gp-text-rgb) / .06); }
	.gp-mega__link:hover .gp-menu-label::after { opacity: 1; transform: none; }
	.gp-menu-desc { font-size: .85rem; line-height: 1.45; color: var(--gp-muted); }
	.gp-mega__feat { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 10px; background: var(--gp-surface); border: 1px solid var(--gp-line); border-radius: 14px; padding: 16px; }
	.gp-mega__feat::before { content: ""; position: absolute; z-index: -1; inset: auto -30% -50% auto; width: 90%; height: 90%; background: radial-gradient(closest-side, var(--gp-glow), transparent 70%); }
	.gp-mega__feat-label { margin: 0; font-size: .78rem; color: var(--gp-muted); }
	.gp-mega__feat-media { overflow: hidden; border-radius: 10px; aspect-ratio: 16 / 10; background: #fff; border: 1px solid var(--gp-line); }
	.gp-mega__feat-img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
	.gp-mega__feat:hover .gp-mega__feat-img { transform: scale(1.04); }
	.gp-mega__feat--plugin .gp-mega__feat-media { aspect-ratio: 772 / 250; }
	.gp-mega__feat-title { font-weight: 600; font-size: 1.05rem; letter-spacing: -.02em; color: var(--gp-text); text-decoration: none; }
	.gp-mega__feat-title:hover { color: var(--gp-accent-text); }
	.gp-mega__feat-text { margin: 0; font-size: .86rem; line-height: 1.5; color: var(--gp-muted); }

	.gp-nav__item.is-open > .gp-sub, .gp-nav__item.is-open > .gp-mega { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; pointer-events: auto; }
}

/* ==========================================================================
   Navigation — mobile & tablet
   ========================================================================== */
@media (max-width: 1023px) {
	.gp-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--gp-bg); }
	.gp-header__inner, .gp-header--split .gp-header__inner { grid-template-columns: 1fr auto; }
	.gp-nav {
		position: fixed; left: 0; right: 0; bottom: 0; top: var(--gp-nav-top, var(--gp-header-h)); z-index: 59;
		background: var(--gp-bg); color: var(--gp-text);
		overflow-y: auto; overscroll-behavior: contain;
		padding: 8px var(--gp-gutter) 40px; border-top: 1px solid var(--gp-line);
		visibility: hidden; opacity: 0; transform: translateY(-8px);
		transition: opacity .25s, transform .35s cubic-bezier(.2,.7,.2,1), visibility 0s linear .35s;
	}
	.gp-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
	.gp-header__inner > .gp-nav { grid-column: 1 / -1; }
	.gp-nav__list { display: block; }
	.gp-nav__item { border-bottom: 1px solid var(--gp-line); }
	.gp-nav__row { display: flex; align-items: center; justify-content: space-between; }
	.gp-nav__link { flex: 1; min-height: 56px; padding: 0 4px; font-size: 1.15rem; font-weight: 500; color: var(--gp-text); justify-content: space-between; text-align: left; letter-spacing: -.01em; }
	.gp-nav__toggle:not(.gp-nav__link) { display: inline-grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 10px; border: 1px solid var(--gp-line); background: var(--gp-surface); color: var(--gp-text); cursor: pointer; }
	.gp-sub, .gp-mega { display: none; padding: 0 0 14px; }
	.gp-nav__item.is-open > .gp-sub, .gp-nav__item.is-open > .gp-mega { display: block; }
	.gp-mega__inner, .gp-mega__cols { display: grid; gap: 4px; }
	.gp-sub__list, .gp-mega__list { list-style: none; margin: 0; padding: 0; }
	.gp-mega__heading { display: block; margin: 14px 0 4px; font-size: .8rem; color: var(--gp-muted); text-decoration: none; }
	.gp-sub__link, .gp-mega__link { display: grid; gap: 2px; padding: 12px; min-height: 44px; border-radius: 10px; color: inherit; text-decoration: none; }
	.gp-sub__link:active, .gp-mega__link:active { background: var(--gp-surface); }
	.gp-mega__link .gp-menu-label, .gp-sub__link .gp-menu-label { font-weight: 500; }
	.gp-menu-desc { font-size: .85rem; color: var(--gp-muted); }
	.gp-mega__feat { display: none; }
	.gp-nav__mobile-extra { display: block; padding-top: 24px; }
	.gp-nav__mobile-extra .gp-btn { width: 100%; margin: 0; }
	body.gp-nav-open { overflow: hidden; }
}

/* ==========================================================================
   Page header & content
   ========================================================================== */
.gp-pagehead { position: relative; isolation: isolate; overflow: clip; border-bottom: 1px solid var(--gp-line); }
.gp-pagehead::before { content: ""; position: absolute; z-index: -1; right: -10%; top: -60%; width: 60%; height: 160%; background: radial-gradient(closest-side, var(--gp-glow), transparent 70%); filter: blur(40px); opacity: .7; pointer-events: none; }
.gp-pagehead__inner { width: min(100% - 2 * var(--gp-gutter), var(--gp-wide)); margin-inline: auto; padding: clamp(48px, 8vw, 112px) 0 clamp(40px, 5vw, 72px); }
.gp-pagehead__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 5px 12px 5px 10px; border: 1px solid var(--gp-line); border-radius: 999px; font-size: .82rem; color: var(--gp-muted); }
.gp-pagehead__eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gp-brand); box-shadow: 0 0 10px var(--gp-brand); }
.gp-pagehead__title { margin: 0; max-width: 20ch; font-size: var(--wp--preset--font-size--xx-large); line-height: 1.02; letter-spacing: -.045em; }
.gp-pagehead__intro { margin: 18px 0 0; max-width: 58ch; font-size: var(--wp--preset--font-size--large); line-height: 1.5; color: var(--gp-muted); }
.gp-pagehead--search .gp-searchform { margin-top: 24px; max-width: 620px; }
.gp-breadcrumbs { margin-bottom: 22px; font-size: .86rem; color: var(--gp-muted); }
.gp-breadcrumbs a { color: inherit; text-decoration: none; }
.gp-breadcrumbs a:hover { color: var(--gp-text); }
.gp-breadcrumbs .breadcrumb_last { color: var(--gp-text); }

.gp-entry { padding-block: clamp(36px, 6vw, 80px); }
.gp-entry--canvas { padding-block: 0; }
.gp-entry > .alignfull:first-child { margin-block-start: 0; }
.gp-entry > .alignfull + .alignfull { margin-block-start: 0 !important; }
.gp-entry > .alignfull:last-child { margin-block-end: 0; }
.gp-entry:has(> .alignfull:last-child) { padding-bottom: 0; }
.gp-entry :where(h2) { margin-block-start: 1.6em; }
.gp-entry :where(h3) { margin-block-start: 1.4em; }
.gp-entry :where(.wp-block-group, .wp-block-column, .wp-block-cover) > :where(h1, h2, h3):first-child,
.gp-entry :where(.wp-block-group, .wp-block-column) > .is-style-gp-eyebrow + :where(h1, h2, h3) { margin-block-start: 0; }
.gp-entry > :where(h2, h3):first-child { margin-block-start: 0; }

/* Articles */
.gp-article__head-inner { width: min(100% - 2 * var(--gp-gutter), 880px); margin-inline: auto; padding: clamp(48px, 8vw, 104px) 0 clamp(28px, 4vw, 48px); }
.gp-article__title { font-size: var(--wp--preset--font-size--xx-large); line-height: 1.04; letter-spacing: -.04em; margin: 16px 0 0; }
.gp-article__dek { margin: 20px 0 0; font-size: var(--wp--preset--font-size--large); line-height: 1.5; color: var(--gp-muted); max-width: 60ch; }
.gp-article__hero { width: min(100% - 2 * var(--gp-gutter), 1160px); margin: 0 auto; }
.gp-article__hero img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--gp-radius); border: 1px solid var(--gp-line); }
.gp-article__hero figcaption { font-size: .82rem; color: var(--gp-muted); margin-top: 10px; }
.gp-entry--article { font-size: 1.06em; }
.gp-entry--article :where(p, li) { line-height: 1.75; color: rgb(var(--gp-text-rgb) / .86); }
.gp-entry--article a { text-decoration-color: var(--gp-brand); }
.gp-article__foot { width: min(100% - 2 * var(--gp-gutter), var(--gp-content)); margin: 0 auto clamp(40px, 6vw, 80px); }
.gp-tags { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.gp-tags a { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--gp-line); font-size: .85rem; text-decoration: none; color: var(--gp-muted); }
.gp-tags a:hover { border-color: var(--gp-line-strong); color: var(--gp-text); }
.gp-postnav .nav-links { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.gp-postnav a { display: grid; gap: 4px; padding: 18px 20px; border: 1px solid var(--gp-line); border-radius: var(--gp-radius); text-decoration: none; color: inherit; background: var(--gp-raised); transition: border-color .2s; }
.gp-postnav a:hover { border-color: var(--gp-line-strong); color: inherit; }
.gp-postnav .nav-next { text-align: right; }
.gp-postnav__label { font-size: .82rem; color: var(--gp-muted); }
.gp-postnav__title { font-weight: 600; font-size: 1.05rem; letter-spacing: -.02em; }

.gp-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; font-size: .86rem; color: var(--gp-muted); }
.gp-meta a { color: var(--gp-accent-text); text-decoration: none; font-weight: 500; }

/* Listing grid & cards */
.gp-listing { padding-block: clamp(32px, 5vw, 64px) clamp(56px, 8vw, 112px); }
.gp-grid { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
@media (min-width: 1024px) {
	.gp-grid--blog { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.gp-grid--blog .gp-card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; }
	.gp-grid--blog .gp-card--featured .gp-card__media { aspect-ratio: auto; min-height: 100%; }
	.gp-grid--blog .gp-card--featured .gp-card__body { padding: clamp(28px, 3vw, 48px); justify-content: center; }
	.gp-grid--blog .gp-card--featured .gp-card__title { font-size: var(--wp--preset--font-size--x-large); }
}
.gp-card {
	position: relative; display: flex; flex-direction: column;
	background: var(--gp-raised); border: 1px solid var(--gp-line); border-radius: var(--gp-radius); overflow: hidden;
	transition: border-color .25s, transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
.gp-card:hover, .gp-card:focus-within { border-color: var(--gp-line-strong); transform: translateY(-3px); box-shadow: 0 24px 60px -36px rgb(var(--gp-brand-rgb) / .55); }
.gp-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--gp-surface); }
.gp-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.gp-card:hover .gp-card__media img { transform: scale(1.04); }
.gp-card__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; flex: 1; }
.gp-card__title { margin: 0; font-size: 1.22rem; line-height: 1.22; letter-spacing: -.025em; }
.gp-card__title a { color: inherit; text-decoration: none; }
.gp-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.gp-card__title a:focus-visible { outline: none; }
.gp-card__title a:focus-visible::after { outline: 2px solid var(--gp-brand); outline-offset: -2px; border-radius: var(--gp-radius); }
.gp-card__excerpt { margin: 0; color: var(--gp-muted); font-size: .95rem; line-height: 1.55; }
.gp-card__more { margin-top: auto; padding-top: 6px; font-weight: 500; font-size: .92rem; }
.gp-arrow { display: inline-block; transition: transform .3s; }
.gp-card:hover .gp-card__more .gp-arrow { transform: translateX(4px); color: var(--gp-brand); }
.gp-card .gp-meta a { position: relative; z-index: 2; }

.gp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(24px, 3vw, 40px); }
.gp-chip { display: inline-flex; align-items: center; min-height: 38px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--gp-line); color: var(--gp-muted); text-decoration: none; font-size: .9rem; transition: border-color .2s, color .2s, background-color .2s; }
.gp-chip:hover { border-color: var(--gp-line-strong); color: var(--gp-text); }
.gp-chip.is-active { background: var(--gp-text); border-color: var(--gp-text); color: var(--gp-bg); }

.gp-pagination { margin-top: clamp(32px, 4vw, 56px); }
.gp-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.gp-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--gp-line); color: var(--gp-text); text-decoration: none; font-weight: 500; }
.gp-pagination a.page-numbers:hover { border-color: var(--gp-line-strong); }
.gp-pagination .page-numbers.current { background: var(--gp-brand); border-color: var(--gp-brand); color: #fff; }

.gp-related { padding: clamp(48px, 7vw, 96px) 0; border-top: 1px solid var(--gp-line); }
.gp-related__title { font-size: var(--wp--preset--font-size--x-large); margin-bottom: 28px; letter-spacing: -.035em; }

.gp-results { display: grid; border-top: 1px solid var(--gp-line); max-width: 880px; }
.gp-result { position: relative; padding: 22px 0; border-bottom: 1px solid var(--gp-line); }
.gp-result__type { margin: 0 0 6px; font-size: .82rem; color: var(--gp-accent-text); }
.gp-result__title { margin: 0 0 6px; font-size: 1.3rem; letter-spacing: -.025em; }
.gp-result__title a { color: inherit; text-decoration: none; }
.gp-result__title a:hover { color: var(--gp-accent-text); }
.gp-result__excerpt { margin: 0; color: var(--gp-muted); }
.gp-none { max-width: 640px; padding: 24px 0; }
.gp-none .gp-searchform { margin-top: 18px; }

/* 404 */
.gp-404 { position: relative; isolation: isolate; overflow: clip; padding: clamp(64px, 12vw, 160px) 0; }
.gp-404::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 0; width: 70%; height: 80%; transform: translateX(-50%); background: radial-gradient(closest-side, var(--gp-glow), transparent 70%); filter: blur(40px); }
.gp-404__inner { width: min(100% - 2 * var(--gp-gutter), 720px); margin-inline: auto; text-align: center; }
.gp-404__code { margin: 0; font-weight: 700; font-size: clamp(6rem, 22vw, 13rem); line-height: .85; letter-spacing: -.07em; background: linear-gradient(180deg, var(--gp-text), rgb(var(--gp-text-rgb) / .15)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gp-404__title { margin: 24px 0 12px; font-size: var(--wp--preset--font-size--x-large); }
.gp-404__text { color: var(--gp-muted); max-width: 52ch; margin-inline: auto; }
.gp-404 .gp-searchform { margin: 24px auto; max-width: 520px; }
.gp-404__menu { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.gp-404__menu a { display: inline-flex; min-height: 40px; align-items: center; padding: 0 14px; border: 1px solid var(--gp-line); border-radius: 999px; text-decoration: none; color: var(--gp-muted); }
.gp-404__menu a:hover { border-color: var(--gp-line-strong); color: var(--gp-text); }

/* ==========================================================================
   Projects & plugins (templates)
   ========================================================================== */
.gp-project-hero, .gp-plugin-hero { position: relative; isolation: isolate; overflow: clip; border-bottom: 1px solid var(--gp-line); }
.gp-project-hero::before, .gp-plugin-hero::before { content: ""; position: absolute; z-index: -1; right: -10%; top: -20%; width: 70%; height: 140%; background: radial-gradient(closest-side, var(--gp-glow), transparent 70%); filter: blur(40px); pointer-events: none; }
.gp-project-hero__inner, .gp-plugin-hero__inner { width: min(100% - 2 * var(--gp-gutter), var(--gp-wide)); margin-inline: auto; padding: clamp(32px, 5vw, 72px) 0 clamp(48px, 7vw, 96px); }
.gp-project-hero__grid, .gp-plugin-hero__grid { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 1024px) {
	.gp-project-hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
	.gp-plugin-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.gp-project-hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.gp-project-hero__title { margin: 0; font-size: var(--wp--preset--font-size--huge); line-height: .95; letter-spacing: -.055em; }
.gp-project-hero__excerpt { margin: 0 0 8px; font-size: var(--wp--preset--font-size--large); line-height: 1.5; color: var(--gp-muted); max-width: 40ch; }
.gp-project-hero__logo { max-height: 40px; width: auto; max-width: 240px; }

.gp-plugin-hero__id { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.gp-plugin-hero__icon { width: 64px; height: 64px; border-radius: 16px; border: 1px solid var(--gp-line); object-fit: cover; }
.gp-plugin-hero__badges { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; }
.gp-plugin-hero__badges .gp-badge { text-decoration: none; }
.gp-plugin-hero__title { margin: 0; font-size: var(--wp--preset--font-size--xx-large); line-height: 1.02; letter-spacing: -.045em; }
.gp-plugin-hero__tagline { margin: 14px 0 0; font-size: var(--wp--preset--font-size--large); font-weight: 500; color: var(--gp-accent-text); letter-spacing: -.015em; }
.gp-plugin-hero__excerpt { margin: 12px 0 0; color: var(--gp-muted); font-size: 1.05rem; max-width: 56ch; }
.gp-plugin-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.gp-plugin-hero__facts { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--gp-line); }
.gp-plugin-hero__facts div { display: grid; gap: 2px; }
.gp-plugin-hero__facts dt { font-size: .8rem; color: var(--gp-muted); }
.gp-plugin-hero__facts dd { margin: 0; font-weight: 500; }
.gp-plugin-hero__media img { display: block; width: auto; max-width: 100%; max-height: 440px; margin-left: auto; height: auto; border-radius: var(--gp-radius); border: 1px solid var(--gp-line); box-shadow: var(--gp-shadow); }

/* Documentation */
.gp-docs__back { margin: 16px 0 0; }
.gp-docs__back a { font-weight: 500; text-decoration: none; color: var(--gp-accent-text); }
.gp-docs__layout { width: min(100% - 2 * var(--gp-gutter), var(--gp-wide)); margin-inline: auto; display: grid; gap: 0 clamp(24px, 4vw, 64px); }
@media (min-width: 1024px) { .gp-docs__layout { grid-template-columns: 250px minmax(0, 1fr); } }
.gp-docs__toc { padding-top: clamp(28px, 4vw, 56px); }
@media (min-width: 1024px) { .gp-docs__toc details { position: sticky; top: calc(var(--gp-header-h) + 24px); } }
.gp-docs__toc summary { cursor: pointer; font-size: .82rem; color: var(--gp-muted); padding: 8px 0; }
.gp-docs__toc ol { list-style: none; margin: 8px 0 0; padding: 0; border-left: 1px solid var(--gp-line); max-height: calc(100vh - 200px); overflow: auto; }
.gp-docs__toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--gp-muted); text-decoration: none; font-size: .88rem; line-height: 1.35; }
.gp-docs__toc a:hover, .gp-docs__toc a.is-active { color: var(--gp-text); border-left-color: var(--gp-brand); }
.gp-entry--docs { padding-inline: 0; }
.gp-entry--docs > * { max-width: 820px; margin-left: 0 !important; }
.gp-entry--docs h2 { padding-top: 1.2em; border-top: 1px solid var(--gp-line); font-size: var(--wp--preset--font-size--x-large); }
.gp-entry--docs > h2:first-child { border-top: 0; padding-top: 0; }
.gp-entry--docs :where(p, li) { color: rgb(var(--gp-text-rgb) / .82); }

/* ==========================================================================
   Footer
   ========================================================================== */
.gp-footer { position: relative; isolation: isolate; overflow: clip; border-top: 1px solid var(--gp-line); font-size: .95rem; }
.gp-footer__wrap { width: min(100% - 2 * var(--gp-gutter), var(--gp-wide)); margin-inline: auto; }
.gp-footer a { color: var(--gp-muted); text-decoration: none; transition: color .2s; }
.gp-footer a:hover { color: var(--gp-text); }
.gp-footer__cta { padding: clamp(48px, 7vw, 96px) 0 0; }
.gp-footer-cta {
	position: relative; isolation: isolate; overflow: hidden;
	gap: 24px 48px; align-items: flex-end !important;
	padding: clamp(32px, 5vw, 64px);
	border: 1px solid var(--gp-line); border-radius: calc(var(--gp-radius) + 8px);
	background: var(--gp-surface);
}
.gp-footer-cta::before { content: ""; position: absolute; z-index: -1; right: -10%; bottom: -80%; width: 70%; height: 170%; background: radial-gradient(closest-side, var(--gp-glow), transparent 70%); filter: blur(30px); }
.gp-footer-cta > .wp-block-heading { margin: 0; flex: 1 1 420px; font-size: var(--wp--preset--font-size--xx-large); line-height: 1.02; letter-spacing: -.045em; max-width: 15ch; color: var(--gp-text); }
.gp-footer-cta__side { flex: 0 1 420px; }
.gp-footer-cta__side > * { margin-left: 0 !important; margin-right: 0 !important; }
.gp-footer-cta__side p { color: var(--gp-muted); }
.gp-footer .gp-footer-cta .wp-block-button__link { color: #fff; }
.gp-footer__grid { display: grid; gap: 40px 32px; padding: clamp(48px, 6vw, 80px) 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
@media (min-width: 1024px) { .gp-footer__grid { grid-template-columns: 1.7fr repeat(auto-fit, minmax(150px, 1fr)); } }
.gp-footer__brand { display: grid; gap: 18px; align-content: start; max-width: 340px; }
.gp-logo--footer .gp-logo__img { width: 168px; }
.gp-footer__tagline { margin: 0; line-height: 1.6; color: var(--gp-muted); }
.gp-footer__heading { margin: 0 0 14px; font-size: .85rem; font-weight: 500; color: var(--gp-text); letter-spacing: 0; }
.gp-footer__menu, .gp-footer__legal { list-style: none; margin: 0; padding: 0; }
.gp-footer__menu li + li { margin-top: 10px; }
.gp-contact { display: grid; gap: 6px; font-style: normal; }
.gp-social { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.gp-social__link { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--gp-line); transition: border-color .2s, color .2s, background-color .2s; }
.gp-social__link:hover { border-color: var(--gp-brand); background: rgb(var(--gp-brand-rgb) / .12); }
.gp-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 22px 0 28px; border-top: 1px solid var(--gp-line); font-size: .86rem; color: var(--gp-muted); }
.gp-footer__copy { margin: 0; }
.gp-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.gp-totop { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.gp-footer .gp-widget + .gp-widget { margin-top: 16px; }

/* ==========================================================================
   Motion (opt-in via html.gp-motion)
   ========================================================================== */
.gp-motion .gp-reveal {
	opacity: 0; transform: translate3d(0, var(--gp-motion-distance), 0);
	transition: opacity var(--gp-motion-duration) cubic-bezier(.2,.7,.2,1), transform var(--gp-motion-duration) cubic-bezier(.2,.7,.2,1);
	transition-delay: calc(var(--gp-d, 0) * var(--gp-motion-stagger));
}
.gp-motion .gp-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.gp-motion .gp-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
	.gp-header, .gp-nav, .gp-mega, .gp-sub, .gp-search, body { transition: none !important; }
}
@media print {
	.gp-header, .gp-footer, .gp-docs__toc, .gp-skip { display: none !important; }
	.gp-motion .gp-reveal { opacity: 1; transform: none; }
}
