/* =============================================================================
   Innovative Global Impact — component layer
   Tokens come from theme.json (--wp--preset--*). This file styles the things
   block markup alone can't express: the header band, "the turn", campaign
   theming, the method diagram, the donate container, and accessibility.
   ============================================================================= */

:root {
	--igi-accent: var(--wp--preset--color--marigold);
	--igi-turn-color: var(--wp--preset--color--marigold);
	--igi-maxwide: 1280px;
	--igi-ease: cubic-bezier(0.22, 1, 0.36, 1);
	/* Text-safe deep amber: Marigold fails AA as small/large text on light
	   (brief §7a), so use this darker tone wherever Marigold must be TEXT.
	   Marigold itself stays for fills (buttons, rules, on-dark). */
	--igi-marigold-text: #8a5d04;
	/* Muted label tone that still clears AA (4.5:1) on Paper, white AND Adobe. */
	--igi-mute: #635a50;
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* Top-level layout: header, page content and footer sit flush. Without this the
   root flow block-gap leaves a ~1.5rem Paper strip between the dark header/footer
   and the content. */
.wp-site-blocks > * { margin-block: 0 !important; }

/* Tighter optical leading on the big display sizes. */
.has-display-font-size { line-height: 1.02; letter-spacing: -0.022em; }
.has-xx-large-font-size { line-height: 1.06; }

/* -----------------------------------------------------------------------------
   Eyebrow / data labels (mono — "evidence builds trust" in type form)
   ----------------------------------------------------------------------------- */
.igi-eyebrow {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--water);
	margin-bottom: 0.5rem;
}
.igi-eyebrow--accent { color: var(--igi-accent); }
.igi-eyebrow--mute   { color: var(--igi-mute); }
/* On the Adobe band, Water Blue / Marigold eyebrows fail AA — use Ink.
   (Method step eyebrows sit on white cards and re-assert Water below.) */
.igi-band-adobe .igi-eyebrow:not(.igi-eyebrow--mute) { color: var(--wp--preset--color--ink); }

/* Stats / figures render in mono so numbers read as precise + engineered. */
.igi-stat { font-family: var(--wp--preset--font-family--mono); font-weight: 500; }
.igi-stat__num { font-size: var(--wp--preset--font-size--x-large); line-height: 1; color: var(--wp--preset--color--ink); }
.igi-stat__label { font-family: var(--wp--preset--font-family--mono); font-size: var(--wp--preset--font-size--x-small); letter-spacing: 0.06em; text-transform: uppercase; color: color-mix(in srgb, var(--wp--preset--color--ink) 60%, transparent); }

/* -----------------------------------------------------------------------------
   "The turn" — the signature. The verb of transformation, set apart.
   Usage: <em class="igi-turn">reaches</em>  inside a Fraunces heading.
   ----------------------------------------------------------------------------- */
.igi-turn {
	font-style: italic;
	font-weight: 500;
	color: var(--igi-turn-color);
}
.igi-turn--water  { --igi-turn-color: var(--wp--preset--color--water); }
.igi-turn--ember  { --igi-turn-color: var(--wp--preset--color--ember); }
.igi-turn--ink    { --igi-turn-color: var(--wp--preset--color--ink); }

/* Optional single "flow" line — restrained secondary signature (water/continuity).
   One signature at a time: use sparingly, never alongside a loud turn. */
.igi-flowline { position: relative; }
.igi-flowline::after {
	content: "";
	display: block;
	width: 4.5rem;
	height: 2px;
	margin-top: 1.25rem;
	background: var(--igi-accent);
	border-radius: 2px;
}

/* -----------------------------------------------------------------------------
   Buttons
   ----------------------------------------------------------------------------- */
.wp-block-button__link { transition: background-color 0.18s var(--igi-ease), color 0.18s var(--igi-ease), box-shadow 0.18s var(--igi-ease); }

/* Ghost / secondary */
.is-style-igi-ghost .wp-block-button__link,
.wp-block-button.is-style-igi-ghost > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--ink);
	box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--ink);
}
.is-style-igi-ghost .wp-block-button__link:hover {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
}

/* Campaign-themed donate fills (white text passes AA on these darks). */
.is-style-igi-water .wp-block-button__link { background: var(--wp--preset--color--water); color: #fff; }
.is-style-igi-water .wp-block-button__link:hover { background: #3A82B0; color: #fff; }
.is-style-igi-ember .wp-block-button__link { background: var(--wp--preset--color--ember); color: #fff; }
.is-style-igi-ember .wp-block-button__link:hover { background: #D2654C; color: #fff; }

/* On dark bands the ghost button inverts. */
.igi-on-dark .is-style-igi-ghost .wp-block-button__link {
	color: var(--wp--preset--color--paper);
	box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--wp--preset--color--paper) 60%, transparent);
}
.igi-on-dark .is-style-igi-ghost .wp-block-button__link:hover {
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
}

/* -----------------------------------------------------------------------------
   Header — fixed overlay bar. Transparent over a dark hero at the top of the
   page; fades to a solid light (Paper) bar with an ink wordmark once scrolled.
   Pages with no dark hero render solid from load — driven by .has-dark-hero on
   <body> + assets/js/igi-header.js, which toggles .is-solid. Position never
   changes on scroll (stays fixed) so there's no layout jump.
   ----------------------------------------------------------------------------- */
.igi-header {
	position: fixed; inset: 0 0 auto 0; z-index: 100;
	height: 74px;
	background: transparent;            /* transparent default = correct over a dark hero */
	border-bottom: 1px solid transparent;
	transition: background-color .25s ease, border-color .25s ease;
	--igi-nav: #E4D8C6;                 /* foreground (links, hamburger): cream over the hero */
}
.igi-header a { text-decoration: none; }
.igi-header .igi-header__inner {
	display: flex; align-items: center; justify-content: space-between;
	flex-wrap: nowrap; gap: 1rem;
	max-width: var(--igi-maxwide);
	margin-inline: auto;
	height: 100%;
	padding-inline: clamp(20px, 5vw, 56px);
}

/* --- solid state ---
   Applies to light pages from the first (server-rendered) paint — `has-dark-hero`
   is added to <body> ONLY on the dark-hero views, so :not(.has-dark-hero) catches
   404/search/archive/plain pages with no transparent flash — and to dark-hero
   pages once igi-header.js adds .is-solid on scroll. */
body:not(.has-dark-hero) .igi-header,
.igi-header.is-solid {
	background: var(--wp--preset--color--paper);
	border-bottom-color: var(--wp--preset--color--adobe);
	--igi-nav: var(--wp--preset--color--ink);
}

/* --- logo swap: both wordmarks in the DOM, toggled by display (no flicker) --- */
.igi-header .igi-logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.igi-header .igi-logo img { height: 29px; width: auto; }
.igi-header .igi-logo__white { display: block; }
.igi-header .igi-logo__ink { display: none; }
body:not(.has-dark-hero) .igi-header .igi-logo__white,
.igi-header.is-solid .igi-logo__white { display: none; }
body:not(.has-dark-hero) .igi-header .igi-logo__ink,
.igi-header.is-solid .igi-logo__ink { display: block; }

/* --- header layout: logo left, nav + actions clustered right --- */
.igi-header__right { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 32px); }
.igi-header__actions { display: flex; align-items: center; gap: 1rem; flex: 0 0 auto; }

/* --- primary nav (custom, not the core block) ---
   Inline on desktop; below the breakpoint it becomes the dark dropdown panel.
   Link colour follows --igi-nav (cream over the hero, ink when solid). */
.igi-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 32px); font-family: var(--wp--preset--font-family--body); }
.igi-nav__link {
	font-size: 14.5px; font-weight: 500; letter-spacing: 0.01em;
	color: var(--igi-nav); text-decoration: none; white-space: nowrap;
	transition: color .2s ease;
}
.igi-nav__link:hover,
.igi-nav__link:focus-visible { color: var(--wp--preset--color--marigold); }
/* Active page link — Marigold, heavier, in both states. */
.igi-nav__link.is-current { color: var(--wp--preset--color--marigold); font-weight: 600; }

/* --- Donate pill — Marigold fill + ink text, never wraps/shrinks. --- */
.igi-donate {
	display: inline-flex; align-items: center; justify-content: center; line-height: 1;
	font-family: var(--wp--preset--font-family--body);
	font-size: 13.5px; font-weight: 700;
	color: var(--wp--preset--color--ink) !important;
	background: var(--wp--preset--color--marigold);
	padding: 11px 22px; border-radius: 999px;
	text-decoration: none; white-space: nowrap; flex: 0 0 auto;
	transition: background-color .2s ease;
}
.igi-donate:hover,
.igi-donate:focus-visible { background: #F0B245; color: var(--wp--preset--color--ink) !important; }

/* --- hamburger: boxed, glyph follows --igi-nav; shown only on mobile --- */
.igi-menu-toggle {
	display: none; align-items: center; justify-content: center;
	width: 44px; height: 38px; padding: 0;
	color: var(--igi-nav); background: transparent;
	border: 1px solid currentColor; border-radius: 9px;
	cursor: pointer; flex: 0 0 auto;
}
.igi-menu-toggle__bars,
.igi-menu-toggle__bars::before,
.igi-menu-toggle__bars::after {
	content: ""; display: block; width: 20px; height: 1.6px;
	background: currentColor; border-radius: 2px;
}
.igi-menu-toggle__bars { position: relative; }
.igi-menu-toggle__bars::before { position: absolute; left: 0; top: -6px; }
.igi-menu-toggle__bars::after  { position: absolute; left: 0; top: 6px; }

/* --- mobile: hamburger + dark dropdown panel anchored below the bar --- */
@media (max-width: 860px) {
	.igi-menu-toggle { display: inline-flex; }
	.igi-nav {
		position: absolute; top: 100%; left: 0; right: 0;
		display: none; flex-direction: column; gap: 0; align-items: stretch;
		background: var(--wp--preset--color--ink);
		padding-inline: clamp(20px, 5vw, 56px);
		box-shadow: 0 22px 34px -26px rgba(0,0,0,0.65);
	}
	.igi-nav.is-open { display: flex; }
	.igi-nav__link {
		color: var(--wp--preset--color--paper);
		font-size: 1.0625rem; font-weight: 500;
		padding-block: 1.05rem;
		border-top: 1px solid rgba(228,216,198,0.14);
	}
	/* While the panel is open keep the bar dark and the wordmark white, even if
	   the page was scrolled and the header had turned solid. */
	.igi-header.is-menu-open {
		background: var(--wp--preset--color--ink) !important;
		border-bottom-color: transparent !important;
		--igi-nav: #E4D8C6;
	}
	.igi-header.is-menu-open .igi-logo__white { display: block; }
	.igi-header.is-menu-open .igi-logo__ink   { display: none; }
}

/* The fixed header no longer occupies layout space. Dark-hero pages are
   full-bleed behind it; light pages (404, search, archives, plain pages) must
   clear the 74px bar so their content isn't hidden under it. */
body:not(.has-dark-hero) .wp-site-blocks { padding-top: 74px; }

/* -----------------------------------------------------------------------------
   Section rhythm + dark/adobe bands
   ----------------------------------------------------------------------------- */
.igi-section { padding-block: var(--wp--preset--spacing--80); }
.igi-section--tight { padding-block: var(--wp--preset--spacing--60); }
.igi-band-adobe { background: var(--wp--preset--color--adobe); }
.igi-band-ink   { background: var(--wp--preset--color--ink); }
.igi-on-dark, .igi-band-ink.igi-on-dark { color: var(--wp--preset--color--paper); }
.igi-on-dark :where(h1, h2, h3, h4) { color: var(--wp--preset--color--paper); }
.igi-on-dark .igi-eyebrow { color: var(--wp--preset--color--taupe); }
.igi-eyebrow--marigold { color: var(--wp--preset--color--marigold) !important; }

/* -----------------------------------------------------------------------------
   Hero — typographic thesis over one dignified photograph
   ----------------------------------------------------------------------------- */
.igi-hero { min-height: clamp(30rem, 76vh, 46rem); }
.igi-hero .wp-block-cover__inner-container { width: 100%; max-width: var(--igi-maxwide); margin-inline: auto; }
.igi-hero__title { max-width: 16ch; }
.igi-hero .wp-block-cover__background { /* warm, restrained overlay rather than a flat black */
	background: linear-gradient(180deg, rgba(36,28,23,0.20) 0%, rgba(36,28,23,0.62) 100%) !important;
	opacity: 1 !important;
}

/* -----------------------------------------------------------------------------
   Documentary image grade — light, consistent, warm. Soft 4px radius only.
   ----------------------------------------------------------------------------- */
.is-style-igi-frame img,
.igi-graded img {
	border-radius: 4px;
	filter: saturate(1.04) contrast(1.02) brightness(1.01);
}
figure.wp-block-image img { height: auto; }

/* -----------------------------------------------------------------------------
   Campaign card / section — shared layout, themed by sub-accent
   ----------------------------------------------------------------------------- */
.igi-campaign { --igi-accent: var(--wp--preset--color--marigold); position: relative; }
.igi-campaign--water  { --igi-accent: var(--wp--preset--color--water);  --igi-turn-color: var(--wp--preset--color--water); }
.igi-campaign--ember  { --igi-accent: var(--wp--preset--color--ember);  --igi-turn-color: var(--wp--preset--color--ember); }
/* Marigold campaign: the "turn" must use the text-safe amber, not Marigold,
   on its light/Adobe background (Marigold-as-text fails AA). */
.igi-campaign--marigold { --igi-accent: var(--wp--preset--color--marigold); --igi-turn-color: var(--igi-marigold-text); }

.igi-campaign__rule { height: 3px; width: 3.5rem; background: var(--igi-accent); border-radius: 3px; margin-bottom: 1rem; }
.igi-campaign__name .igi-turn { color: var(--igi-turn-color); }
/* Eyebrows stay Water Blue (AA-safe on Paper/white); the sub-accent identity is
   carried by the rule bar, the turn, and the donate button — not small text. */

/* Home "three pilots" compact card */
.igi-pilot {
	display: flex !important;
	flex-direction: column;
	gap: 0.5rem;
	height: 100%;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--taupe);
	border-top: 4px solid var(--igi-accent);
	border-radius: 6px;
	padding: 1.5rem 1.5rem 1.75rem;
	box-shadow: var(--wp--custom--shadow-card);
	transition: transform 0.2s var(--igi-ease), box-shadow 0.2s var(--igi-ease);
}
.igi-pilot:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(36,28,23,0.06), 0 22px 40px -22px rgba(36,28,23,0.5); }
.igi-pilot__more { margin-top: auto; padding-top: 0.85rem; }
.igi-pilot__more a { font-family: var(--wp--preset--font-family--mono); font-size: var(--wp--preset--font-size--x-small); letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; }
.igi-pilot--water  { --igi-accent: var(--wp--preset--color--water);  --igi-turn-color: var(--wp--preset--color--water); }
.igi-pilot--ember  { --igi-accent: var(--wp--preset--color--ember);  --igi-turn-color: var(--wp--preset--color--ember); }
.igi-pilot--marigold { --igi-accent: var(--wp--preset--color--marigold); --igi-turn-color: var(--igi-marigold-text); }

.is-style-igi-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--taupe);
	border-radius: 6px;
}

/* -----------------------------------------------------------------------------
   Method / "how it works" diagram — solar → tank → gravity → home
   ----------------------------------------------------------------------------- */
.igi-method { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.igi-method__step { position: relative; padding: 1.25rem 1rem; background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--taupe); border-radius: 6px; }
/* Step eyebrows sit on white cards — keep them Water Blue (AA-safe), overriding
   the Adobe-band Ink rule above. */
.igi-method__step .igi-eyebrow { margin-bottom: 0.35rem; color: var(--wp--preset--color--water); }
.igi-method__step:not(:last-child)::after {
	content: "→";
	position: absolute;
	right: -0.85rem; top: 50%;
	transform: translateY(-50%);
	color: var(--wp--preset--color--water);
	font-family: var(--wp--preset--font-family--mono);
	z-index: 2;
}
@media (max-width: 781px) {
	.igi-method { grid-template-columns: 1fr 1fr; }
	.igi-method__step:nth-child(2)::after { content: none; }
}
@media (max-width: 480px) {
	.igi-method { grid-template-columns: 1fr; }
	.igi-method__step::after { content: "↓" !important; right: 50% !important; top: auto !important; bottom: -1.1rem !important; transform: translateX(50%) !important; }
}

/* -----------------------------------------------------------------------------
   Donate container — styled section around the GiveWP form/button.
   We DO NOT design form internals; GiveWP renders the modal.
   ----------------------------------------------------------------------------- */
.igi-donate { display: flex; flex-direction: column; gap: 0.75rem; }
.igi-donate__note { font-family: var(--wp--preset--font-family--mono); font-size: var(--wp--preset--font-size--x-small); letter-spacing: 0.04em; color: var(--igi-mute); }
/* Placeholder shown only when GiveWP isn't active yet (body.igi-no-givewp). */
.igi-donate__placeholder { display: none; }
body.igi-no-givewp .igi-donate__placeholder {
	display: block;
	border: 1px dashed var(--wp--preset--color--taupe);
	border-radius: 6px;
	padding: 0.85rem 1rem;
	background: color-mix(in srgb, var(--wp--preset--color--adobe) 40%, transparent);
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	color: color-mix(in srgb, var(--wp--preset--color--ink) 70%, transparent);
}

/* -----------------------------------------------------------------------------
   Story / community voice
   ----------------------------------------------------------------------------- */
.is-style-igi-voice {
	border: none;
	padding-left: 0;
}
.is-style-igi-voice p {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--x-large);
	font-style: italic;
	font-weight: 500;
	line-height: 1.25;
}
.is-style-igi-voice cite {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	font-style: normal;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--water);
}

/* -----------------------------------------------------------------------------
   News cards
   ----------------------------------------------------------------------------- */
.igi-newscard { background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--taupe); border-radius: 6px; overflow: hidden; height: 100%; }
.igi-newscard .wp-block-post-title { font-size: var(--wp--preset--font-size--large); }
.igi-newscard .wp-block-post-date { font-family: var(--wp--preset--font-family--mono); font-size: var(--wp--preset--font-size--x-small); letter-spacing: 0.06em; text-transform: uppercase; color: var(--wp--preset--color--water); }

/* -----------------------------------------------------------------------------
   Newsletter
   ----------------------------------------------------------------------------- */
.igi-newsletter input[type="email"],
.igi-newsletter input[type="text"] {
	font-family: var(--wp--preset--font-family--body);
	border: 1.5px solid var(--wp--preset--color--taupe);
	border-radius: 999px;
	padding: 0.8rem 1.2rem;
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
}
.igi-newsletter input:focus { outline: 2px solid var(--wp--preset--color--water); outline-offset: 1px; }

/* -----------------------------------------------------------------------------
   Footer
   ----------------------------------------------------------------------------- */
.igi-footer { background: var(--wp--preset--color--ink); color: color-mix(in srgb, var(--wp--preset--color--paper) 78%, transparent); }
.igi-footer a { color: color-mix(in srgb, var(--wp--preset--color--paper) 78%, transparent); text-decoration: none; }
.igi-footer a:hover { color: #fff; }
.igi-footer img { max-height: 34px; width: auto; height: auto; }
.igi-footer .igi-eyebrow { color: var(--wp--preset--color--taupe); }
.igi-footer__donate { color: var(--wp--preset--color--marigold) !important; }
.igi-footer__donate:hover { color: #f2b94a !important; }
.igi-footer ul.wp-block-list { list-style: none; margin: 0; padding-left: 0; }
.igi-footer .wp-block-social-links .wp-social-link { background: transparent; }
.igi-footer .wp-block-social-links a { color: inherit; }

/* -----------------------------------------------------------------------------
   Section heads, arrow links, shells (used by the redesigned home sections)
   ----------------------------------------------------------------------------- */
.igi-section-head { align-items: flex-end; }
.igi-shell { width: 100%; }
/* Constrain content inside the full-bleed dark cover bands to the page grid. */
.igi-flagship > .wp-block-cover__inner-container,
.igi-fund > .wp-block-cover__inner-container {
	max-width: var(--igi-maxwide);
	margin-inline: auto;
	width: 100%;
	padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.igi-arrowlink a {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--water);
	text-decoration: none;
	border-bottom: 1.5px solid var(--wp--preset--color--marigold);
	padding-bottom: 2px;
}
.igi-arrowlink a:hover { color: var(--wp--preset--color--ink); }
.igi-arrowlink--light a { color: var(--wp--preset--color--paper); }
.igi-arrowlink--light a:hover { color: #fff; }

/* The blue italic emphasis inside the "Why we exist" lead reads as a calm turn. */
.igi-lead .igi-turn { font-weight: 500; }

/* -----------------------------------------------------------------------------
   "What we do" — program model cards (light)
   ----------------------------------------------------------------------------- */
.igi-model {
	display: flex !important;
	flex-direction: column;
	gap: 0.4rem;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--taupe);
	border-left: 3px solid var(--wp--preset--color--marigold);
	border-radius: 6px;
	padding: 1.5rem 1.5rem 1.75rem;
}
.igi-model .igi-eyebrow { color: var(--wp--preset--color--water); }
.igi-eyebrow__no { color: var(--igi-marigold-text); }

/* -----------------------------------------------------------------------------
   Flagship pilots — translucent dark cards on the photographic band
   ----------------------------------------------------------------------------- */
.igi-pilot-dark {
	--igi-accent: var(--wp--preset--color--marigold);
	display: flex !important;
	flex-direction: column;
	gap: 0.5rem;
	background: rgba(20, 15, 12, 0.46);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	border: 1px solid rgba(250, 248, 244, 0.18);
	border-top: 3px solid var(--igi-accent);
	border-radius: 6px;
	padding: 1.4rem 1.4rem 1.6rem;
}
.igi-pilot-dark--water  { --igi-accent: var(--wp--preset--color--water); }
.igi-pilot-dark--marigold { --igi-accent: var(--wp--preset--color--marigold); }
.igi-pilot-dark--ember  { --igi-accent: var(--wp--preset--color--ember); }
.igi-pilot-dark .igi-eyebrow { color: var(--wp--preset--color--taupe); }
.igi-pilot-dark h3 { color: var(--wp--preset--color--paper); }
.igi-pilot-dark h3 a { color: inherit; text-decoration: none; }
.igi-pilot-dark h3 a:hover { color: #fff; }
.igi-pilot-dark .igi-turn { color: var(--wp--preset--color--marigold); } /* AA-safe on dark */
.igi-pilot-dark p { color: rgba(250, 248, 244, 0.84); }

/* -----------------------------------------------------------------------------
   "Our approach" — four numbered principles with a hairline top rule
   ----------------------------------------------------------------------------- */
.igi-principle {
	border-top: 1px solid var(--wp--preset--color--taupe);
	padding-top: 0.9rem;
}
.igi-principle__no {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--water);
	margin: 0 0 0.6rem;
}
.igi-principle__title { font-family: var(--wp--preset--font-family--body) !important; font-weight: 700 !important; letter-spacing: -0.005em !important; margin-bottom: 0.35rem; }

/* -----------------------------------------------------------------------------
   Fund-a-pilot — outline tag pills + dark newsletter button
   ----------------------------------------------------------------------------- */
.igi-tags { list-style: none; margin: 0.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.igi-tag {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.03em;
	color: var(--wp--preset--color--paper);
	border: 1px solid rgba(250, 248, 244, 0.42);
	border-radius: 999px;
	padding: 0.45rem 0.9rem;
}
.igi-fund .igi-donate__note { color: rgba(250, 248, 244, 0.78); }

.igi-btn-dark {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--paper);
	background: var(--wp--preset--color--ink);
	border: 0;
	border-radius: 999px;
	padding: 0.8rem 1.5rem;
	cursor: pointer;
	transition: background-color 0.18s var(--igi-ease);
}
.igi-btn-dark:hover { background: #3a2f28; }

/* -----------------------------------------------------------------------------
   Donate modal — themed overlay that hosts the GiveWP form
   ----------------------------------------------------------------------------- */
.igi-give-trigger { cursor: pointer; }
.igi-give-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding: clamp(1rem, 6vh, 5rem) 1rem; overflow: auto; }
.igi-give-modal[hidden] { display: none; }
.igi-give-modal__backdrop { position: fixed; inset: 0; background: rgba(20, 15, 12, 0.62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.igi-give-modal__panel {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 680px;
	background: var(--wp--preset--color--paper);
	border-radius: 12px;
	box-shadow: 0 40px 90px -25px rgba(20, 15, 12, 0.6);
	animation: igi-give-in 0.22s var(--igi-ease) both;
}
@keyframes igi-give-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.igi-give-modal__close {
	position: absolute; top: 0.4rem; right: 0.4rem; z-index: 2;
	width: 2.4rem; height: 2.4rem; border: 0; border-radius: 999px;
	background: transparent; color: var(--wp--preset--color--ink);
	font-size: 1.7rem; line-height: 1; cursor: pointer;
}
.igi-give-modal__close:hover { background: rgba(36, 28, 23, 0.08); }
.igi-give-modal__body { padding: 0; }
.igi-give-frame { display: block; width: 100%; border: 0; border-radius: 12px; min-height: min(80vh, 760px); background: #fff; }
.igi-give-modal__placeholder { font-family: var(--wp--preset--font-family--mono); font-size: var(--wp--preset--font-size--small); text-align: center; padding: 2.5rem 1rem; color: var(--igi-mute); }
@media (prefers-reduced-motion: reduce) { .igi-give-modal__panel { animation: none; } }

/* -----------------------------------------------------------------------------
   Accessibility — visible keyboard focus everywhere; honor reduced motion.
   ----------------------------------------------------------------------------- */
:where(a, button, input, .wp-block-button__link):focus-visible {
	outline: 3px solid var(--wp--preset--color--water);
	outline-offset: 2px;
	border-radius: 2px;
}
.igi-on-dark a:focus-visible,
.igi-header a:focus-visible,
.igi-footer a:focus-visible { outline-color: var(--wp--preset--color--marigold); }

/* Visually-hidden helper (block themes don't always ship one). */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

.skip-link { position: absolute; left: -999px; top: 0; }
.skip-link:focus { left: 0.5rem; top: 0.5rem; z-index: 1000; background: var(--wp--preset--color--marigold); color: var(--wp--preset--color--ink); padding: 0.6rem 1rem; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
	.igi-pilot:hover { transform: none; }
}

/* -----------------------------------------------------------------------------
   Single News article — designed hero + readable body, all from plain blocks.
   Author sets a title, featured image (hero) and category (eyebrow), then writes
   normal text; this styles the rest.
   ----------------------------------------------------------------------------- */
.igi-article-hero__inner { padding-inline: clamp(20px, 5vw, 56px); }
.igi-article-eyebrow,
.igi-article-eyebrow a {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--wp--preset--color--marigold) !important; text-decoration: none;
}
.igi-article-meta {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.04em;
	color: color-mix(in srgb, var(--wp--preset--color--paper) 80%, transparent);
}
.igi-article .wp-block-post-content { font-size: 1.1875rem; line-height: 1.75; color: #3a342c; }
.igi-article .wp-block-post-content > * { margin-block: 0; }
.igi-article .wp-block-post-content > * + * { margin-block-start: 1.5rem; }
.igi-article .wp-block-post-content :where(h2, h3) { color: var(--wp--preset--color--ink); margin-top: 2.75rem; }
.igi-article .wp-block-post-content h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.igi-article .wp-block-post-content h3 { font-size: 1.4rem; }
.igi-article .wp-block-post-content p { max-width: 40em; }
.igi-article .wp-block-post-content a { color: var(--wp--preset--color--water); }
.igi-article .wp-block-post-content > p:first-child {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.3rem, 2vw, 1.55rem); line-height: 1.45; color: #2a231d;
}
.igi-article .wp-block-post-content figure.wp-block-image { margin-block: 2.25rem; }
.igi-article .wp-block-post-content .is-style-igi-voice { margin-block: 2.5rem; }
.igi-article__back a { color: var(--wp--preset--color--water); }

/* -----------------------------------------------------------------------------
   News index (dynamic) — one card per post, styled like the design; cards
   alternate image side and accent colour. New posts appear here automatically.
   ----------------------------------------------------------------------------- */
.igi-newssection { background: var(--wp--preset--color--paper); padding: clamp(48px,6vw,88px) clamp(20px,5vw,56px) clamp(36px,4vw,56px); }
.igi-newsgrid { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(24px,3vw,40px); }
.igi-ncard { display: flex !important; flex-wrap: wrap; gap: clamp(24px,4vw,52px); align-items: center; background: #fff; border: 1px solid var(--wp--preset--color--adobe); border-radius: 6px; overflow: hidden; }
.igi-ncard__img { flex: 1 1 420px; min-width: min(100%,420px); align-self: stretch; position: relative; margin: 0; }
.igi-ncard__img img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; display: block; }
.igi-ncard__img::after { content: ""; position: absolute; top: 0; left: 0; height: 5px; width: 100%; background: var(--wp--preset--color--water); }
.igi-ncard__body { flex: 1 1 380px; min-width: min(100%,380px); padding: clamp(24px,3vw,48px) clamp(24px,3vw,48px) clamp(28px,3vw,48px) 0; }
.igi-newsgrid > li:nth-child(even) .igi-ncard { flex-direction: row-reverse; }
.igi-newsgrid > li:nth-child(even) .igi-ncard .igi-ncard__img::after { background: var(--wp--preset--color--marigold); }
.igi-newsgrid > li:nth-child(even) .igi-ncard .igi-ncard__body { padding: clamp(24px,3vw,48px) 0 clamp(28px,3vw,48px) clamp(24px,3vw,48px); }
.igi-ncard__meta { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.igi-ncard__cat, .igi-ncard__cat a { font-family: var(--wp--preset--font-family--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wp--preset--color--water) !important; text-decoration: none; }
.igi-ncard__date, .igi-ncard__date time { font-family: var(--wp--preset--font-family--mono); font-size: 11px; color: var(--igi-mute); }
.igi-ncard__title { margin: 0; }
.igi-ncard__title a { font-family: var(--wp--preset--font-family--display); font-weight: 400; font-size: clamp(26px,3.2vw,42px); line-height: 1.08; letter-spacing: -0.01em; color: var(--wp--preset--color--ink) !important; text-decoration: none; }
.igi-ncard__title a:hover { color: var(--wp--preset--color--water) !important; }
.igi-ncard__excerpt { font-size: 16px; line-height: 1.6; color: #4a4036; margin-top: 16px; max-width: 38em; }
.igi-ncard__excerpt .wp-block-post-excerpt__more-link { display: inline-block; margin-top: 18px; font-family: var(--wp--preset--font-family--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--wp--preset--color--ink); text-decoration: none; border-bottom: 1.5px solid var(--wp--preset--color--marigold); padding-bottom: 3px; }
.igi-newspag { margin-top: clamp(32px,4vw,56px); font-family: var(--wp--preset--font-family--mono); font-size: 14px; }
.igi-newspag a:hover { color: var(--wp--preset--color--water); }
@media (max-width: 781px) {
	.igi-ncard, .igi-newsgrid > li:nth-child(even) .igi-ncard { flex-direction: column; }
	.igi-ncard__body, .igi-newsgrid > li:nth-child(even) .igi-ncard .igi-ncard__body { padding: 1.5rem clamp(20px,5vw,28px) clamp(24px,5vw,32px); }
}

.igi-newsgrid > li { margin: 0; }
