/*
 * Txt2Give Giving Directory — ported from the design handoff (directory.html / profile.html).
 * Brand: red #A91E22, black #1A1A1A, gray #8C8C8C. Fonts: Fraunces (headings), Nunito (body).
 * --h on category-tinted elements is an oklch hue: church 25, nonprofit 190, civic 75. Each
 * oklch() is preceded by a hex fallback for browsers without oklch support.
 *
 * Everything is scoped under .t2g-dir, and "body .t2g-dir" is used where theme rules
 * (Hello Elementor's .page-content a, global button styles) would otherwise win.
 */
.t2g-dir {
	--accent: #A91E22;
	--ink: #1A1A1A;
	--muted: #8C8C8C;
	--bg: #FAF7F2;
	--card: #FFFFFF;
	--line: #EFE8DA;
	--line-strong: #DDD5C6;
	--body: #3A362F;
	--soft: #6B655C;
	--chip: #F5F0E5;
	--serif: 'Fraunces', Georgia, 'Times New Roman', serif;
	--sans: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

	--h: 60;
	--tint-strong: #7a7266;
	--tint-cover: #8a8173;
	--tint-soft: #f4f1ec;
	--tint-badge-bg: #ece7df;
	--tint-text: #4f4940;

	box-sizing: border-box;
	background: var(--bg);
	box-shadow: 0 0 0 100vmax var(--bg);
	clip-path: inset(0 -100vmax);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.5;
	padding-bottom: 8px;
	-webkit-font-smoothing: antialiased;
}

.t2g-type--church      { --h: 25;  --tint-strong: #a83a33; --tint-cover: #a8413a; --tint-soft: #fbefed; --tint-badge-bg: #f8e2df; --tint-text: #8a2a24; }
.t2g-type--nonprofit   { --h: 190; --tint-strong: #00747a; --tint-cover: #00777c; --tint-soft: #eaf6f6; --tint-badge-bg: #daf0f0; --tint-text: #005b60; }
.t2g-type--civic-group { --h: 75;  --tint-strong: #8a5e00; --tint-cover: #8a6100; --tint-soft: #f8f2e6; --tint-badge-bg: #f3e8d2; --tint-text: #6c4800; }

.t2g-dir *,
.t2g-dir *::before,
.t2g-dir *::after {
	box-sizing: border-box;
}

body .t2g-dir a,
body .t2g-dir a:hover,
body .t2g-dir a:focus {
	color: inherit;
	text-decoration: none;
}

body .t2g-dir [hidden] {
	display: none !important;
}

/* Outranks Elementor's global kit (.elementor-kit-N h1/h2/h3, which sets its own
   font family, size and spacing and loads after this file). */
body .t2g-dir h1,
body .t2g-dir h2,
body .t2g-dir h3 {
	font-family: var(--serif);
	margin: 0;
	padding: 0;
	color: var(--ink);
	letter-spacing: normal;
	text-transform: none;
}

body .t2g-dir p,
body .t2g-dir input,
body .t2g-dir button,
body .t2g-dir li {
	font-family: var(--sans);
}

.t2g-dir p {
	margin: 0;
}

/* The page may sit in a full-width template (no theme container), so the
   directory brings its own, matching the design's .container. */
.t2g-dir .t2g-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 32px;
}

.t2g-dir img {
	display: block;
	max-width: 100%;
}

.t2g-dir :focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
}

.t2g-icon {
	flex-shrink: 0;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
body .t2g-dir .t2g-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	font-family: var(--sans);
	font-weight: 800;
	font-size: 14px;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	border-radius: 10px;
	cursor: pointer;
	border: 1px solid transparent;
	box-shadow: none;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

body .t2g-dir .t2g-btn--primary {
	flex: 1;
	padding: 11px 20px;
	background: var(--accent);
	color: #fff;
}

body .t2g-dir .t2g-btn--primary:hover,
body .t2g-dir .t2g-btn--primary:focus-visible {
	background: #8d1619;
	color: #fff;
}

body .t2g-dir .t2g-btn--icon {
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	padding: 0;
	background: #fff;
	border-color: var(--line-strong);
	color: var(--body);
}

body .t2g-dir .t2g-btn--icon:hover,
body .t2g-dir .t2g-btn--icon:focus-visible {
	background: #fff;
	border-color: var(--soft);
	color: var(--ink);
}

body .t2g-dir .t2g-btn--icon .t2g-icon {
	width: 16px;
	height: 16px;
}

/* ── Hero + filters ─────────────────────────────────────────────────────── */
.t2g-dir .t2g-hero {
	padding: 56px 0 24px;
}

.t2g-dir .t2g-hero h1 {
	font-size: 44px;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.02em;
	max-width: 640px;
}

.t2g-dir .t2g-hero p {
	max-width: 560px;
	margin: 14px 0 0;
	color: var(--soft);
	font-size: 16px;
}

.t2g-dir .t2g-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin: 28px 0 8px;
}

body .t2g-dir .t2g-search {
	flex: 1;
	min-width: 240px;
	max-width: 380px;
	height: auto;
	margin: 0;
	padding: 12px 16px;
	border: 1px solid var(--line-strong);
	border-radius: 12px;
	background: #fff;
	color: var(--ink);
	font: inherit;
	font-size: 15px;
	box-shadow: none;
	outline: none;
}

body .t2g-dir .t2g-search::placeholder {
	color: var(--muted);
}

body .t2g-dir .t2g-search:focus {
	border-color: var(--soft);
	box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.06);
}

.t2g-dir .t2g-pills {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

body .t2g-dir .t2g-pill {
	margin: 0;
	padding: 9px 16px;
	border-radius: 999px;
	border: 1px solid var(--line-strong);
	background: #fff;
	color: var(--body);
	font-family: inherit;
	font-weight: 700;
	font-size: 13px;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

body .t2g-dir .t2g-pill:hover {
	background: #fff;
	border-color: var(--soft);
	color: var(--ink);
}

body .t2g-dir .t2g-pill[aria-pressed="true"],
body .t2g-dir .t2g-pill[aria-pressed="true"]:hover {
	background: var(--ink);
	border-color: var(--ink);
	color: #fff;
}

/* ── Grid + cards ───────────────────────────────────────────────────────── */
.t2g-dir .t2g-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 22px;
	margin-top: 24px;
}

.t2g-dir .t2g-card {
	display: flex;
	flex-direction: column;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 16px;
	overflow: hidden;
}

.t2g-dir .t2g-card__cover {
	height: 96px;
	background: var(--tint-cover);
	background: oklch(50% .12 var(--h));
}

.t2g-dir .t2g-card__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.t2g-dir .t2g-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 20px;
}

.t2g-dir .t2g-card__top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.t2g-dir .t2g-card--cover .t2g-card__top {
	margin-top: -44px;
}

/* Centers the badge on the cover's bottom edge, as in the design. */
.t2g-dir .t2g-card--cover .t2g-badge {
	margin-top: 13px;
}

.t2g-dir .t2g-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 3px solid #fff;
	background: var(--tint-strong);
	background: oklch(50% .13 var(--h));
	color: #fff;
	font-family: var(--serif);
	font-weight: 600;
	font-size: 16px;
	line-height: 1;
	overflow: hidden;
}

.t2g-dir .t2g-avatar--tile {
	border-radius: 12px;
	border: 1px solid var(--line-strong);
	background: var(--tint-soft);
	background: oklch(96% .02 var(--h));
	color: var(--tint-text);
	color: oklch(40% .12 var(--h));
}

.t2g-dir .t2g-avatar--logo {
	background: #fff;
}

.t2g-dir .t2g-avatar img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.t2g-dir .t2g-badge {
	display: inline-block;
	padding: 5px 10px;
	border-radius: 999px;
	background: var(--tint-badge-bg);
	background: oklch(94% .035 var(--h));
	color: var(--tint-text);
	color: oklch(40% .13 var(--h));
	font-family: var(--sans);
	font-weight: 800;
	font-size: 10.5px;
	line-height: 1.2;
	letter-spacing: .04em;
	text-transform: uppercase;
	white-space: nowrap;
}

.t2g-dir .t2g-card__name {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	margin-top: 14px;
	letter-spacing: -.01em;
}

body .t2g-dir .t2g-card__name a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.t2g-dir .t2g-card__loc {
	margin-top: 3px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--muted);
}

.t2g-dir .t2g-card__blurb {
	flex: 1;
	margin: 10px 0 14px;
	font-size: 13.5px;
	color: var(--body);
	overflow-wrap: anywhere;
}

.t2g-dir .t2g-card__raised {
	margin-bottom: 14px;
	font-size: 12.5px;
	color: var(--muted);
}

.t2g-dir .t2g-card__raised strong {
	color: var(--ink);
	font-size: 14px;
}

.t2g-dir .t2g-card__actions {
	display: flex;
	gap: 9px;
}

/* ── Pagination + CTA ───────────────────────────────────────────────────── */
.t2g-dir .t2g-pagination {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin: 36px 0 8px;
	font-size: 13.5px;
	color: var(--soft);
}

.t2g-dir .t2g-pager {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

body .t2g-dir .t2g-pager button {
	min-width: 38px;
	height: 38px;
	margin: 0;
	padding: 0 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	background: #fff;
	color: var(--ink);
	font-family: inherit;
	font-weight: 700;
	font-size: 13.5px;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
}

body .t2g-dir .t2g-pager button:hover {
	background: #fff;
	border-color: var(--soft);
	color: var(--ink);
}

body .t2g-dir .t2g-pager button[aria-current="page"] {
	background: var(--ink);
	border-color: var(--ink);
	color: #fff;
}

.t2g-dir .t2g-pager__gap {
	min-width: 20px;
	align-self: center;
	text-align: center;
}

.t2g-dir .t2g-cta-band {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 24px;
	margin: 56px 0 64px;
	padding: 40px;
	border-radius: 20px;
	background: var(--ink);
	color: #fff;
}

.t2g-dir .t2g-cta-band h2 {
	font-size: 26px;
	font-weight: 600;
	color: #fff;
}

.t2g-dir .t2g-cta-band p {
	margin: 6px 0 0;
	color: #cfc8ba;
}

body .t2g-dir .t2g-btn--cta {
	padding: 14px 24px;
	background: var(--accent);
	color: #fff;
}

body .t2g-dir .t2g-btn--cta:hover,
body .t2g-dir .t2g-btn--cta:focus-visible {
	background: #8d1619;
	color: #fff;
}

.t2g-dir .t2g-empty {
	margin-top: 24px;
	padding: 56px 20px;
	text-align: center;
	color: var(--soft);
	background: var(--card);
	border: 1px dashed var(--line-strong);
	border-radius: 16px;
}

.t2g-dir .t2g-empty__title {
	font-size: 24px;
	font-weight: 600;
	margin-bottom: 8px;
}

/* ── Profile ────────────────────────────────────────────────────────────── */
.t2g-dir .t2g-profile {
	max-width: 600px;
	margin: 0 auto;
	padding: 0 24px 64px;
}

body .t2g-dir .t2g-back {
	display: flex;
	align-items: center;
	gap: 8px;
	width: fit-content;
	padding: 24px 0 4px;
	font-weight: 700;
	font-size: 13.5px;
	color: var(--soft);
}

body .t2g-dir .t2g-back:hover {
	color: var(--ink);
}

.t2g-dir .t2g-back .t2g-icon {
	width: 15px;
	height: 15px;
	stroke-width: 2.5;
}

.t2g-dir .t2g-profile__cover {
	margin-top: 20px;
	height: 150px;
	border-radius: 18px;
	overflow: hidden;
	background: var(--tint-cover);
	background: oklch(46% .13 var(--h));
}

.t2g-dir .t2g-profile__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.t2g-dir .t2g-profile__avatar {
	width: 92px;
	height: 92px;
	margin: -46px auto 0;
	border: 4px solid var(--bg);
	font-size: 30px;
	position: relative;
}

.t2g-dir .t2g-profile__avatar.t2g-avatar--logo img {
	padding: 8px;
}

.t2g-dir .t2g-profile__head {
	text-align: center;
	margin-top: 14px;
}

.t2g-dir .t2g-profile__head h1 {
	font-size: 27px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -.01em;
}

.t2g-dir .t2g-profile__meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 9px;
	font-size: 13px;
	font-weight: 600;
	color: var(--muted);
}

.t2g-dir .t2g-stats {
	display: flex;
	justify-content: center;
	gap: 48px;
	margin-top: 26px;
	padding: 20px 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	text-align: center;
}

.t2g-dir .t2g-stats strong {
	display: block;
	font-family: var(--serif);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
}

.t2g-dir .t2g-stats span {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--muted);
}

.t2g-dir .t2g-bio {
	margin: 24px 0 0;
	font-size: 15px;
	line-height: 1.65;
	color: var(--body);
	overflow-wrap: anywhere;
}

.t2g-dir .t2g-bio p + p {
	margin-top: 12px;
}

.t2g-dir .t2g-section-label {
	margin: 28px 0 10px;
	font-weight: 800;
	font-size: 12px;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--muted);
}

body .t2g-dir .t2g-link-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 9px;
	padding: 15px 17px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 13px;
	font-weight: 700;
	font-size: 14px;
	color: var(--ink);
	transition: border-color 0.15s;
}

body .t2g-dir .t2g-link-row:hover {
	border-color: var(--line-strong);
	color: var(--ink);
}

.t2g-dir .t2g-link-row__left {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	overflow-wrap: anywhere;
}

.t2g-dir .t2g-link-row__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 9px;
	background: var(--chip);
	color: #5A5650;
}

.t2g-dir .t2g-link-row__icon .t2g-icon {
	width: 15px;
	height: 15px;
}

.t2g-dir .t2g-link-row__chevron {
	display: flex;
	color: #B5AD9C;
}

.t2g-dir .t2g-link-row__chevron .t2g-icon {
	width: 15px;
	height: 15px;
	stroke-width: 2.5;
}

body .t2g-dir .t2g-give-cta {
	display: block;
	margin-top: 22px;
	padding: 17px;
	border-radius: 14px;
	background: var(--accent);
	color: #fff;
	text-align: center;
	font-weight: 800;
	font-size: 16px;
	line-height: 1.3;
	transition: background-color 0.15s;
}

body .t2g-dir .t2g-give-cta:hover,
body .t2g-dir .t2g-give-cta:focus-visible {
	background: #8d1619;
	color: #fff;
}

.t2g-dir .t2g-share {
	margin-top: 34px;
	padding-top: 26px;
	border-top: 1px solid var(--line);
	text-align: center;
}

.t2g-dir .t2g-share .t2g-section-label {
	margin-top: 0;
}

.t2g-dir .t2g-share__row {
	display: flex;
	justify-content: center;
	gap: 11px;
}

body .t2g-dir .t2g-share__row .t2g-btn--icon {
	border-radius: 50%;
}

body .t2g-dir .t2g-share__row .t2g-btn--icon .t2g-icon {
	width: 15px;
	height: 15px;
}

.t2g-dir .t2g-share__url {
	display: inline-block;
	max-width: 100%;
	margin-top: 16px;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--chip);
	color: var(--soft);
	font-size: 12.5px;
	overflow-wrap: anywhere;
}

/* ── Toast (mounted on <body> so the directory's clip-path can't clip it) ── */
.t2g-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	z-index: 99999;
	max-width: calc(100vw - 32px);
	padding: 10px 18px;
	border-radius: 999px;
	background: #1A1A1A;
	color: #fff;
	font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.t2g-toast[hidden] {
	display: none;
}

/* ── Responsive (handoff breakpoint: 640px) ─────────────────────────────── */
@media (max-width: 640px) {
	.t2g-dir .t2g-hero h1 {
		font-size: 32px;
	}

	.t2g-dir .t2g-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	body .t2g-dir .t2g-search {
		min-width: 0;
		max-width: none;
		flex-basis: 100%;
	}

	.t2g-dir .t2g-container {
		padding: 0 18px;
	}

	.t2g-dir .t2g-cta-band {
		padding: 28px;
	}

	.t2g-dir .t2g-profile {
		padding: 0 18px 48px;
	}
}
