/**
 * Homepage (WPBakery) — The Ginger Hacker Initiative
 *
 * Same approach as the Compass homepage: every section is a WPBakery vc_section
 * whose el_class starts "ghi-home", built from Total elements, so editors change
 * text, images and buttons in the page builder while the layout lives here.
 *
 * Tokens (--ghi-*) and shared components (.ghi-announce, .ghi-hero-art, .ghi-pill,
 * .ghi-bars, .ghi-team, .ghi-logos, .ghi-contact-list ...) come from ghi-home.css.
 * Loaded only on pages whose content contains "ghi-home" (inc/ghi-home-blocks.php).
 */

/* -------------------------------------------------------------------------
 * Page shell: flush under the header, no Total spacing between sections
 * ---------------------------------------------------------------------- */
body.ghi-home-page #content-wrap,
body.ghi-home-page #primary,
body.ghi-home-page #content { padding-top: 0 !important; padding-bottom: 0 !important; margin-top: 0 !important; }
body.ghi-home-page .single-page-article,
body.ghi-home-page .single-page-content { margin: 0 !important; }
body.ghi-home-page #ghi-main { display: none; }

.ghi-home { position: relative; color: var(--ghi-fg); font-family: var(--ghi-body); }
.ghi-home .vc_column-inner { padding-top: 0 !important; }
.ghi-home .wpb_content_element,
.ghi-home .vcex-module:not(.vcex-button) { margin-bottom: 0; }
.ghi-home .vc_row { margin-bottom: 0; }
.ghi-home .wpb_text_column p { margin: 0; }
.ghi-home .wpb_text_column p + p { margin-top: 12px; }
.ghi-home .wpb_wrapper > * + * { margin-top: 12px; }
.ghi-home .wpb_wrapper > .vcex-button + .vcex-button { margin-top: 0; }
.ghi-home a:focus-visible { outline: 3px solid var(--ghi-orange); outline-offset: 3px; border-radius: 4px; }

.ghi-home.ghi-section { padding-block: 96px; scroll-margin-top: 76px; }
.ghi-home.ghi-alt { background: var(--ghi-bg); }

/* Eyebrows and section titles (Total Heading elements) */
body.ghi-site .ghi-home .vcex-heading.ghi-eyebrow {
	font-family: var(--ghi-mono) !important; font-size: .78rem !important; font-weight: 500 !important;
	letter-spacing: .12em !important; text-transform: uppercase !important; line-height: 1.4; color: var(--ghi-navy) !important;
}
body.ghi-site .ghi-home .vcex-heading.ghi-section__title {
	font-family: var(--ghi-display); font-size: clamp(1.9rem, 3.6vw, 2.6rem) !important; font-weight: 700; line-height: 1.1;
	letter-spacing: -.015em; color: inherit; margin-top: 12px;
}
.ghi-home .ghi-lede { color: var(--ghi-muted); font-size: 1.05rem; max-width: 60ch; }
.ghi-home .ghi-lede a { color: var(--ghi-link); font-weight: 600; }

/* Section header row: title left, lede right */
.ghi-home .ghi-wpb-head { margin-bottom: 44px !important; }

/* -------------------------------------------------------------------------
 * Buttons (Total Button element with ghi-vcex-btn classes)
 * Wins over the site-wide orange .theme-button rule in ghi-pages.css.
 * ---------------------------------------------------------------------- */
body.ghi-site .ghi-home .vcex-button.ghi-vcex-btn {
	display: inline-flex !important; align-items: center; justify-content: center;
	font-family: var(--ghi-body) !important; font-weight: 700 !important; font-size: .98rem !important;
	text-transform: none !important; letter-spacing: 0 !important; line-height: 1.2;
	padding: 12px 20px !important; border-radius: 8px !important; border: 2px solid transparent !important;
	margin: 0 8px 8px 0; box-shadow: none !important;
	transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
body.ghi-site .ghi-home .vcex-button.ghi-vcex-btn--lg { padding: 15px 24px !important; font-size: 1.04rem !important; }
body.ghi-site .ghi-home .vcex-button.ghi-vcex-btn--orange { background: var(--ghi-orange) !important; border-color: var(--ghi-orange) !important; color: var(--ghi-board) !important; }
body.ghi-site .ghi-home .vcex-button.ghi-vcex-btn--orange:hover { background: var(--ghi-orange-hover) !important; border-color: var(--ghi-orange-hover) !important; transform: translateY(-1px); }
body.ghi-site .ghi-home .vcex-button.ghi-vcex-btn--ghost { background: transparent !important; border-color: rgba(244, 247, 250, .45) !important; color: var(--ghi-on-board) !important; }
body.ghi-site .ghi-home .vcex-button.ghi-vcex-btn--ghost:hover { background: rgba(255, 255, 255, .06) !important; border-color: #fff !important; }
body.ghi-site .ghi-home .vcex-button.ghi-vcex-btn--navy { background: var(--ghi-navy) !important; border-color: var(--ghi-navy) !important; color: #fff !important; }
body.ghi-site .ghi-home .vcex-button.ghi-vcex-btn--navy:hover { background: var(--ghi-board) !important; }
body.ghi-site .ghi-home .vcex-button.ghi-vcex-btn--outline { background: transparent !important; border-color: var(--ghi-navy) !important; color: var(--ghi-navy) !important; }
body.ghi-site .ghi-home .vcex-button.ghi-vcex-btn--outline:hover { background: var(--ghi-navy) !important; color: #fff !important; }

/* -------------------------------------------------------------------------
 * Hero
 * ---------------------------------------------------------------------- */
.ghi-home.ghi-hero {
	color: var(--ghi-on-board); padding-block: 72px 84px; overflow: hidden;
	background-color: var(--ghi-board);
	background-image:
		radial-gradient(60% 80% at 80% 40%, rgba(0, 64, 123, .55), transparent 70%),
		linear-gradient(rgba(244, 247, 250, .04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(244, 247, 250, .04) 1px, transparent 1px);
	background-size: auto, 48px 48px, 48px 48px;
}
.ghi-home .ghi-hero__announce .ghi-announce { margin-bottom: 14px; color: var(--ghi-on-board); }
.ghi-home .ghi-hero__title h1 {
	font-family: var(--ghi-display); font-size: clamp(2.7rem, 6vw, 4.6rem); font-weight: 700;
	letter-spacing: -.025em; line-height: 1.02; color: #fff; margin: 0; text-wrap: balance; text-transform: none;
}
.ghi-home .ghi-hero__title h1 em { font-style: normal; color: var(--ghi-orange); }
.ghi-home .ghi-hero__lede { margin-top: 24px !important; margin-bottom: 32px !important; font-size: 1.15rem; line-height: 1.65; max-width: 50ch; color: var(--ghi-on-board-muted); }
.ghi-home .ghi-hero__who { margin-top: 14px !important; font-size: .92rem; color: var(--ghi-on-board-muted); }
.ghi-home .ghi-hero__art .ghi-hero-art { margin-inline: auto; }

/* -------------------------------------------------------------------------
 * Impact stats
 * ---------------------------------------------------------------------- */
.ghi-home.ghi-stats { background: var(--ghi-card); border-bottom: 1px solid var(--ghi-line); }
.ghi-home .ghi-stats__grid > .wpb_column + .wpb_column > .vc_column-inner { border-left: 1px solid var(--ghi-line); }
.ghi-home .ghi-stats__grid .vc_column-inner { padding-block: 30px !important; }
.ghi-home .ghi-stat__num { font-family: var(--ghi-display); font-size: clamp(2rem, 3.4vw, 2.6rem); font-weight: 700; color: var(--ghi-navy); line-height: 1.05; font-variant-numeric: tabular-nums; }
.ghi-home .ghi-stat__label { margin-top: 4px !important; color: var(--ghi-muted); font-size: .93rem; line-height: 1.45; }
.ghi-home .ghi-stat__label a { color: var(--ghi-link); font-weight: 600; white-space: nowrap; }

/* -------------------------------------------------------------------------
 * Mission and vision
 * ---------------------------------------------------------------------- */
.ghi-home .ghi-mv-lead { margin-top: 16px !important; font-family: var(--ghi-display); font-size: clamp(1.3rem, 2.1vw, 1.6rem); font-weight: 500; line-height: 1.4; letter-spacing: -.01em; color: var(--ghi-fg); }
.ghi-home .ghi-wpb-vision > .vc_column-inner { border-left: 3px solid var(--ghi-orange); padding-left: 28px !important; }
.ghi-home .ghi-mv-text { margin-top: 16px !important; color: var(--ghi-muted); font-size: 1.05rem; }

/* -------------------------------------------------------------------------
 * Programs: one WPBakery row per program, styled as one card
 * ---------------------------------------------------------------------- */
.ghi-home .ghi-program {
	margin-inline: 0 !important; background: var(--ghi-card); border: 1px solid var(--ghi-line); border-top: 0;
	padding: 24px 13px; align-items: flex-start;
}
.ghi-home .ghi-wpb-head + .ghi-program { border-top: 1px solid var(--ghi-line); border-radius: var(--ghi-radius) var(--ghi-radius) 0 0; }
.ghi-home .ghi-program:last-child { border-radius: 0 0 var(--ghi-radius) var(--ghi-radius); box-shadow: var(--ghi-shadow); }
.ghi-home .ghi-program .ghi-ref { font-family: var(--ghi-mono); font-size: .78rem; letter-spacing: .06em; color: var(--ghi-muted); padding-top: 4px; }
.ghi-home .ghi-program h3 { font-family: var(--ghi-display); font-size: 1.2rem; font-weight: 600; line-height: 1.25; margin: 0; text-transform: none; color: var(--ghi-fg); }
.ghi-home .ghi-program h3 a { color: inherit; text-decoration: none; }
.ghi-home .ghi-program h3 a:hover { color: var(--ghi-link); text-decoration: underline; }
.ghi-home .ghi-program .ghi-tag { margin-top: 4px !important; color: var(--ghi-muted); font-size: .88rem; }
.ghi-home .ghi-program .ghi-what { color: var(--ghi-muted); }
.ghi-home .ghi-program .ghi-status .wpb_wrapper { display: grid; gap: 6px; }
.ghi-home .ghi-program .ghi-status__note { margin: 0 !important; font-size: .86rem; color: var(--ghi-muted); }

/* -------------------------------------------------------------------------
 * Certifications
 * ---------------------------------------------------------------------- */
.ghi-home .ghi-big { font-family: var(--ghi-display); font-weight: 700; font-size: clamp(5rem, 11vw, 8rem); line-height: .9; color: var(--ghi-navy); font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.ghi-home .ghi-big-wrap { margin-top: 14px !important; }
.ghi-home .ghi-big-cap { margin-top: 14px !important; font-family: var(--ghi-display); font-size: 1.15rem; }
.ghi-home .ghi-note { margin-top: 14px !important; color: var(--ghi-muted); max-width: 36ch; }

/* -------------------------------------------------------------------------
 * Where to start: each column is a card
 * ---------------------------------------------------------------------- */
.ghi-home .ghi-wpb-step > .vc_column-inner { height: 100%; }
.ghi-home .ghi-wpb-step > .vc_column-inner > .wpb_wrapper {
	height: 100%; display: flex; flex-direction: column; gap: 10px;
	background: var(--ghi-card); border: 1px solid var(--ghi-line); border-radius: var(--ghi-radius); padding: 26px 24px; box-shadow: var(--ghi-shadow);
}
.ghi-home .ghi-wpb-step .wpb_wrapper > * + * { margin-top: 0; }
.ghi-home .ghi-step-n { width: 36px; height: 36px; border-radius: 50%; background: var(--ghi-navy); color: #fff; font-family: var(--ghi-display); font-weight: 700; display: grid; place-items: center; margin-bottom: 6px; }
body.ghi-site .ghi-home .ghi-step__title { font-family: var(--ghi-display); font-size: 1.2rem !important; font-weight: 600; line-height: 1.25; color: var(--ghi-fg); }
.ghi-home .ghi-step__text { color: var(--ghi-muted); font-size: .95rem; flex: 1; }
.ghi-home .ghi-step__link a { font-weight: 700; font-size: .95rem; color: var(--ghi-link); text-decoration: none; }
.ghi-home .ghi-step__link a:hover { text-decoration: underline; }

/* -------------------------------------------------------------------------
 * Events
 * ---------------------------------------------------------------------- */
.ghi-home .ghi-wpb-feature {
	margin-inline: 0 !important; background: var(--ghi-board); color: var(--ghi-on-board); border-radius: 16px; overflow: hidden;
	box-shadow: 0 20px 50px rgba(4, 33, 61, .2);
}
.ghi-home .ghi-wpb-feature > .wpb_column > .vc_column-inner { padding: 0 !important; height: 100%; }
.ghi-home .ghi-feature__media .wpb_wrapper,
.ghi-home .ghi-feature__media .vcex-image,
.ghi-home .ghi-feature__media .vcex-image-inner,
.ghi-home .ghi-feature__media a { display: block; height: 100%; line-height: 0; background: #000; }
.ghi-home .ghi-feature__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.ghi-home .ghi-feature__body > .vc_column-inner > .wpb_wrapper { padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.ghi-home .ghi-feature__body .wpb_wrapper > * + * { margin-top: 0; }
body.ghi-site .ghi-home .ghi-feature__title { font-family: var(--ghi-display); font-size: 1.9rem !important; font-weight: 700; color: #fff; }
.ghi-home .ghi-feature__lede { color: var(--ghi-on-board-muted); }
.ghi-home .ghi-wpb-feature .ghi-pill { color: #0b1724; background: #fff; }
.ghi-home .ghi-wpb-checks ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: .93rem; }
.ghi-home .ghi-wpb-checks li { display: flex; gap: 10px; align-items: baseline; margin: 0; }
.ghi-home .ghi-wpb-checks li::before { content: ""; width: 11px; height: 6px; border-left: 2px solid var(--ghi-orange-text); border-bottom: 2px solid var(--ghi-orange-text); transform: rotate(-45deg) translateY(-3px); flex: none; }
.ghi-home .ghi-wpb-feature .vcex-button { align-self: flex-start; }

.ghi-home .ghi-events__cards { margin-top: 16px; }
.ghi-home .ghi-wpb-ev > .vc_column-inner { height: 100%; }
.ghi-home .ghi-wpb-ev > .vc_column-inner > .wpb_wrapper {
	height: 100%; display: flex; flex-direction: column; gap: 10px;
	background: var(--ghi-card); border: 1px solid var(--ghi-line); border-radius: var(--ghi-radius); padding: 28px;
}
.ghi-home .ghi-wpb-ev .wpb_wrapper > * + * { margin-top: 0; }
.ghi-home .ghi-wpb-ev .wpb_text_column:last-child { margin-top: auto; }
.ghi-home .ghi-wpb-ev .wpb_text_column .wpb_wrapper { display: flex; flex-direction: column; gap: 10px; }
body.ghi-site .ghi-home .ghi-ev__title,
.ghi-home .ghi-wpb-ev h3 { font-family: var(--ghi-display); font-size: 1.2rem !important; font-weight: 600; line-height: 1.25; color: var(--ghi-fg); margin: 0; text-transform: none; }
.ghi-home .ghi-wpb-ev p:not(.ghi-eyebrow) { color: var(--ghi-muted); }
.ghi-home .ghi-wpb-ev p.ghi-eyebrow { margin: 0; }
.ghi-home .ghi-link { color: var(--ghi-link); font-weight: 600; text-decoration: none; }
.ghi-home .ghi-link:hover { text-decoration: underline; }

/* -------------------------------------------------------------------------
 * Team (dynamic) and partners
 * ---------------------------------------------------------------------- */
.ghi-home .ghi-team-section .ghi-subteams h3 { font-family: var(--ghi-display); font-size: 1.05rem; font-weight: 600; text-transform: none; color: var(--ghi-fg); margin: 0 0 14px; }
.ghi-home .ghi-person { color: var(--ghi-fg); }
.ghi-home .ghi-names a { color: var(--ghi-fg); }

.ghi-home .ghi-logo-group + .ghi-logo-group { margin-top: 36px; }
body.ghi-site .ghi-home .ghi-logo-group__title { font-family: var(--ghi-mono) !important; font-size: .78rem !important; font-weight: 500 !important; letter-spacing: .12em; text-transform: uppercase !important; color: var(--ghi-muted) !important; margin-bottom: 14px; }
.ghi-home .ghi-logos { list-style: none; margin: 0 !important; padding: 0 !important; }
.ghi-home .ghi-logos li { margin: 0; }
.ghi-home .ghi-logo-tile { display: grid; place-items: center; height: 140px; padding: 14px 18px; background: #fff; border: 1px solid var(--ghi-line); border-radius: 10px; transition: border-color .15s, box-shadow .15s; }
.ghi-home a.ghi-logo-tile:hover { border-color: var(--ghi-line-strong); box-shadow: var(--ghi-shadow); }
.ghi-home .ghi-logo-tile img { max-height: 108px; max-width: 100%; width: auto; height: auto; object-fit: contain; }

/* -------------------------------------------------------------------------
 * Get involved (Total Icon Box elements)
 * ---------------------------------------------------------------------- */
.ghi-home.ghi-plug { background: var(--ghi-board); color: var(--ghi-on-board); }
body.ghi-site .ghi-home.ghi-plug .vcex-heading.ghi-eyebrow { color: var(--ghi-orange-text) !important; }
.ghi-home.ghi-plug .ghi-section__title { color: #fff; }
.ghi-home.ghi-plug .ghi-lede { color: var(--ghi-on-board-muted); }
.ghi-home .ghi-wpb-ways > .wpb_column > .vc_column-inner { height: 100%; }
.ghi-home .ghi-wpb-ways .wpb_wrapper { height: 100%; }
body.ghi-site .ghi-home a.ghi-way {
	position: relative; height: 100%; display: flex !important; flex-direction: column;
	background: rgba(255, 255, 255, .04); border: 1px solid var(--ghi-board-line); border-radius: var(--ghi-radius);
	padding: 26px 24px 54px; color: var(--ghi-on-board) !important; text-decoration: none;
	transition: border-color .15s, background-color .15s, transform .15s;
}
body.ghi-site .ghi-home a.ghi-way:hover { border-color: var(--ghi-orange); background: rgba(255, 255, 255, .07); transform: translateY(-2px); }
.ghi-home .ghi-way .vcex-icon-box-symbol { display: none !important; }
.ghi-home .ghi-way .vcex-icon-box-text { display: flex; flex-direction: column; }
body.ghi-site .ghi-home .ghi-way .vcex-icon-box-heading { order: 2; font-family: var(--ghi-display); font-size: 1.25rem !important; font-weight: 600; color: #fff !important; margin: 0 0 8px; text-transform: none; }
.ghi-home .ghi-way .vcex-icon-box-content { order: 3; font-size: .93rem; color: var(--ghi-on-board-muted); }
.ghi-home .ghi-way-k { display: block; font-family: var(--ghi-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ghi-orange-text); margin: -2px 0 8px; }
.ghi-home .ghi-way .vcex-icon-box-content { display: flex; flex-direction: column; }
.ghi-home .ghi-way .vcex-icon-box-text { position: static; }
.ghi-home .ghi-way::after { content: "→"; position: absolute; left: 24px; bottom: 20px; color: var(--ghi-orange-text); font-size: 1.15rem; transition: transform .15s; }
.ghi-home .ghi-way:hover::after { transform: translateX(4px); }

/* Kicker sits above the heading: pull it out of the content block */
.ghi-home .ghi-way .vcex-icon-box-text { display: grid; grid-template-areas: "kicker" "heading" "content"; }
.ghi-home .ghi-way .vcex-icon-box-heading { grid-area: heading; }
.ghi-home .ghi-way .vcex-icon-box-content { grid-area: content; display: block; }
.ghi-home .ghi-way .vcex-icon-box-content .ghi-way-k { position: absolute; top: 26px; left: 24px; }
.ghi-home .ghi-way .vcex-icon-box-text { padding-top: 22px; }

/* -------------------------------------------------------------------------
 * Contact
 * ---------------------------------------------------------------------- */
.ghi-home.ghi-contact .ghi-lede { margin-top: 16px !important; }
.ghi-home .ghi-contact-list { margin-top: 32px !important; }
.ghi-home .ghi-contact-list li { margin: 0; }
.ghi-home .wpb_text_column.ghi-form {
	background: var(--ghi-card); border: 1px solid var(--ghi-line); border-radius: 16px; padding: 32px; box-shadow: var(--ghi-shadow);
}

/* -------------------------------------------------------------------------
 * Tablet
 * ---------------------------------------------------------------------- */
@media (max-width: 959px) {
	.ghi-home .ghi-wpb-steps > .wpb_column,
	.ghi-home .ghi-wpb-ways > .wpb_column { width: 50%; }
	.ghi-home .ghi-wpb-steps > .wpb_column,
	.ghi-home .ghi-wpb-ways > .wpb_column { margin-bottom: 16px; }
	.ghi-home .ghi-wpb-feature > .wpb_column { width: 100%; }
}
@media (max-width: 767px) {
	.ghi-home.ghi-section { padding-block: 56px; }
	.ghi-home .ghi-wpb-head { margin-bottom: 26px !important; }
	.ghi-home .ghi-wpb-head .ghi-lede { margin-top: 12px; }
	.ghi-home .wpb_column { margin-bottom: 0; }

	/* Hero */
	.ghi-home.ghi-hero { padding-block: 40px 48px; }
	.ghi-home .ghi-hero__art { margin-top: 36px !important; }
	.ghi-home .ghi-hero__art .ghi-hero-art { max-width: 290px; }
	body.ghi-site .ghi-home .ghi-hero .vcex-button.ghi-vcex-btn { display: flex !important; width: 100%; margin-right: 0; }

	/* Stats: two by two */
	.ghi-home .ghi-stats__grid > .wpb_column { width: 50%; float: left; }
	.ghi-home .ghi-stats__grid > .wpb_column > .vc_column-inner { border-left: 0 !important; padding-block: 20px !important; }
	.ghi-home .ghi-stats__grid > .wpb_column:nth-child(even) > .vc_column-inner { border-left: 1px solid var(--ghi-line) !important; }
	.ghi-home .ghi-stats__grid > .wpb_column:nth-child(-n+2) > .vc_column-inner { border-bottom: 1px solid var(--ghi-line); }
	.ghi-home .ghi-stat__num { font-size: 1.85rem; }
	.ghi-home .ghi-stat__label { font-size: .86rem; }

	/* Mission */
	.ghi-home .ghi-wpb-vision { margin-top: 32px; }

	/* Programs */
	.ghi-home .ghi-program { padding: 20px 5px; }
	.ghi-home .ghi-program .wpb_column + .wpb_column { margin-top: 6px; }

	/* Certs */
	.ghi-home.ghi-certs .wpb_column + .wpb_column { margin-top: 28px; }

	/* Steps: number beside the text */
	.ghi-home .ghi-wpb-steps > .wpb_column { width: 100%; margin-bottom: 10px; }
	.ghi-home .ghi-wpb-step > .vc_column-inner > .wpb_wrapper { display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; row-gap: 4px; padding: 18px; }
	.ghi-home .ghi-wpb-step .wpb_wrapper > .wpb_text_column:first-child { grid-row: 1 / span 3; }
	.ghi-home .ghi-step-n { margin: 0; }

	/* Events */
	.ghi-home .ghi-feature__body > .vc_column-inner > .wpb_wrapper { padding: 22px; gap: 14px; }
	body.ghi-site .ghi-home .ghi-feature__title { font-size: 1.6rem !important; }
	body.ghi-site .ghi-home .ghi-wpb-feature .vcex-button.ghi-vcex-btn { display: flex !important; width: 100%; }
	.ghi-home .ghi-events__cards .wpb_column + .wpb_column { margin-top: 10px; }
	.ghi-home .ghi-wpb-ev > .vc_column-inner > .wpb_wrapper { padding: 22px; }

	/* Partners: three per row */
	.ghi-home .ghi-logo-group + .ghi-logo-group { margin-top: 28px; }
	.ghi-home .ghi-logos { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; }
	.ghi-home .ghi-logo-tile { height: 84px; padding: 8px; border-radius: 8px; }
	.ghi-home .ghi-logo-tile img { max-height: 64px; }

	/* Get involved: arrow on the right */
	.ghi-home .ghi-wpb-ways > .wpb_column { width: 100%; margin-bottom: 10px; }
	body.ghi-site .ghi-home a.ghi-way { padding: 18px 48px 18px 18px; }
	.ghi-home .ghi-way::after { left: auto; right: 18px; bottom: auto; top: 50%; transform: translateY(-50%); }
	.ghi-home .ghi-way:hover::after { transform: translate(4px, -50%); }
	.ghi-home .ghi-way .vcex-icon-box-content .ghi-way-k { top: 18px; left: 18px; }

	/* Contact */
	.ghi-home.ghi-contact .wpb_column + .wpb_column { margin-top: 28px; }
	.ghi-home .wpb_text_column.ghi-form { padding: 18px; }
	.ghi-home .ghi-form .gform_wrapper .gform_footer :is(input[type=submit], button) { width: 100%; }
}
@media (max-width: 520px) {
	.ghi-home .ghi-wpb-checks ul { grid-template-columns: 1fr; }
	.ghi-home .ghi-contact-list li { grid-template-columns: 1fr; gap: 2px; }
}

/* Program titles are links but read as headings */
body.ghi-site .ghi-home .ghi-program h3 a { color: var(--ghi-fg) !important; }
body.ghi-site .ghi-home .ghi-program h3 a:hover { color: var(--ghi-link) !important; }

/* =========================================================================
 * Spacing system
 * Total gives every WPBakery column a 30px bottom margin. Remove it and set
 * each gap on purpose so desktop and phone spacing stays even.
 * ====================================================================== */
.ghi-home .vc_column-inner { margin-bottom: 0 !important; }
.ghi-home .vc_row:last-child { margin-bottom: 0 !important; }

/* Card grids: an even 16px gap between cards */
.ghi-home .ghi-wpb-steps,
.ghi-home .ghi-wpb-ways,
.ghi-home .ghi-events__cards { margin-left: -8px !important; margin-right: -8px !important; }
.ghi-home .ghi-wpb-steps > .wpb_column > .vc_column-inner,
.ghi-home .ghi-wpb-ways > .wpb_column > .vc_column-inner,
.ghi-home .ghi-events__cards > .wpb_column > .vc_column-inner { padding-left: 8px !important; padding-right: 8px !important; }

/* Event cards: content starts at the top, the link sits at the bottom */
.ghi-home .ghi-wpb-ev .wpb_text_column:last-child { margin-top: 0; }
.ghi-home .ghi-wpb-ev .wpb_text_column:last-child:not(:only-child) { margin-top: auto; }
.ghi-home .ghi-wpb-ev .wpb_text_column:only-child { flex: 1; display: flex; }
.ghi-home .ghi-wpb-ev .wpb_text_column:only-child > .wpb_wrapper { flex: 1; }
.ghi-home .ghi-wpb-ev .wpb_text_column:only-child .ghi-link { margin-top: auto; padding-top: 6px; }

/* Tablet: two-up card grids */
@media (min-width: 768px) and (max-width: 959px) {
	.ghi-home .ghi-wpb-steps > .wpb_column,
	.ghi-home .ghi-wpb-ways > .wpb_column { margin-bottom: 0 !important; }
	.ghi-home .ghi-wpb-steps > .wpb_column:nth-child(n+3),
	.ghi-home .ghi-wpb-ways > .wpb_column:nth-child(n+3) { margin-top: 16px; }
}

/* Phone: one rhythm for stacked columns */
@media (max-width: 767px) {
	.ghi-home .wpb_column { margin-bottom: 0 !important; }
	.ghi-home .vc_row > .wpb_column + .wpb_column { margin-top: 24px; }

	/* Section intro: title, then lede */
	.ghi-home .ghi-wpb-head { margin-bottom: 28px !important; }
	.ghi-home .ghi-wpb-head > .wpb_column + .wpb_column { margin-top: 14px; }
	.ghi-home .ghi-wpb-head .ghi-lede { margin-top: 0 !important; }

	/* Hero: copy, then mascot */
	.ghi-home.ghi-hero .vc_row > .wpb_column + .wpb_column { margin-top: 40px; }
	.ghi-home .ghi-hero__art { margin-top: 0 !important; }

	/* Cards stack 10px apart */
	.ghi-home .ghi-wpb-steps > .wpb_column + .wpb_column,
	.ghi-home .ghi-wpb-ways > .wpb_column + .wpb_column,
	.ghi-home .ghi-events__cards > .wpb_column + .wpb_column { margin-top: 10px; }
	.ghi-home .ghi-events__cards { margin-top: 10px !important; }

	/* Stats 2x2 and the GHI-Con card have no gaps of their own */
	.ghi-home .ghi-stats__grid > .wpb_column + .wpb_column,
	.ghi-home .ghi-wpb-feature > .wpb_column + .wpb_column { margin-top: 0; }

	/* Program rows: tight lines inside each program */
	.ghi-home .ghi-program > .wpb_column + .wpb_column { margin-top: 6px; }
	.ghi-home .ghi-program .ghi-ref { padding-top: 0; }

	/* Mission, certifications, contact: a clear break between the two halves */
	.ghi-home.ghi-about .vc_row > .wpb_column + .wpb_column,
	.ghi-home.ghi-certs .vc_row > .wpb_column + .wpb_column,
	.ghi-home.ghi-contact .vc_row > .wpb_column + .wpb_column { margin-top: 32px; }
	.ghi-home .ghi-wpb-vision { margin-top: 32px !important; }

	/* Partner groups */
	.ghi-home .ghi-logo-group + .ghi-logo-group { margin-top: 24px; }
}

/* Section intro: the short description lines up with the bottom of the heading */
@media (min-width: 768px) {
	.ghi-home .ghi-wpb-head { display: flex; align-items: flex-end; }
	.ghi-home .ghi-wpb-head > .wpb_column > .vc_column-inner { display: block; }
	.ghi-home .ghi-wpb-head .ghi-lede { padding-bottom: 4px; }
}

/* Contact form: no extra space under the Submit button */
.ghi-home .ghi-form .gform_footer { padding-bottom: 0 !important; margin-bottom: 0 !important; }

/* Team cards: names read as headings, not links */
body.ghi-site .ghi-home .ghi-person,
body.ghi-site .ghi-home .ghi-person b { color: var(--ghi-fg) !important; text-decoration: none !important; }
body.ghi-site .ghi-home .ghi-person .ghi-person-text span { color: var(--ghi-muted) !important; }
body.ghi-site .ghi-home .ghi-names a { color: var(--ghi-fg) !important; text-decoration: none !important; }
body.ghi-site .ghi-home .ghi-names a:hover { color: var(--ghi-navy) !important; }

/* Program cards: a little more side padding on phones */
@media (max-width: 767px) {
	.ghi-home .ghi-program { padding: 20px 8px; }
}
