/* ── Charitable Resource Hub ────────────────────────────────────────────────── */

/* Grid */
.chub-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 280px, 1fr ) );
	gap: 24px;
	margin: 32px 0;
}

/* Gradient placeholders — double-class selectors beat .chub-card-thumb specificity */
.chub-card-thumb.chub-card-thumb--gradient {
	display: flex;
	align-items: center;
	justify-content: center;
}
.chub-card-thumb.chub-gradient-blue-purple   { background: linear-gradient(135deg, #3b82f6, #9333ea); }
.chub-card-thumb.chub-gradient-green-teal    { background: linear-gradient(135deg, #22c55e, #0d9488); }
.chub-card-thumb.chub-gradient-red-pink      { background: linear-gradient(135deg, #ef4444, #db2777); }
.chub-card-thumb.chub-gradient-indigo-blue   { background: linear-gradient(135deg, #6366f1, #2563eb); }
.chub-card-thumb.chub-gradient-orange-red    { background: linear-gradient(135deg, #f97316, #dc2626); }
.chub-card-thumb.chub-gradient-yellow-orange { background: linear-gradient(135deg, #eab308, #ea580c); }
.chub-card-thumb.chub-gradient-purple-indigo { background: linear-gradient(135deg, #a855f7, #4f46e5); }

.chub-thumb-icon {
	width: 48px;
	height: 48px;
	opacity: 0.92;
	position: relative;
	z-index: 1;
	transition: transform 0.25s ease;
	/* Ensure icon is visible — fill/stroke set to white in SVG attributes */
}

.chub-card:hover .chub-thumb-icon {
	transform: scale(1.12);
}

/* Card */
.chub-card {
	border: 1px solid #e8e8e8;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.chub-card:hover {
	box-shadow: 0 6px 24px rgba( 0, 0, 0, 0.09 );
	transform: translateY( -2px );
}

/* Thumbnail */
.chub-card-thumb {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f5f5f5;
}

.chub-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Lock overlay */
.chub-card-lock {
	position: absolute;
	inset: 0;
	background: rgba( 0, 0, 0, 0.38 );
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur( 3px );
}

/* Clickable video thumb: cursor, gentle zoom on hover, darken, fade-in play badge */
.chub-card-thumb--playable {
	cursor: pointer;
}

.chub-card-thumb--playable img {
	transition: transform 0.35s ease;
}

.chub-card-thumb--playable::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba( 0, 0, 0, 0 );
	transition: background 0.25s ease;
	pointer-events: none;
}

.chub-card-thumb--playable:hover img,
.chub-card-thumb--playable:focus-visible img {
	transform: scale( 1.045 );
}

.chub-card-thumb--playable:hover::after,
.chub-card-thumb--playable:focus-visible::after {
	background: rgba( 0, 0, 0, 0.18 );
}

.chub-card-thumb--playable:focus-visible {
	outline: 3px solid #ff6b35;
	outline-offset: -3px;
}

.chub-card-play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 56px;
	height: 56px;
	margin: -28px 0 0 -28px;
	background: rgba( 255, 255, 255, 0.96 );
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 24px rgba( 0, 0, 0, 0.35 );
	color: #ff6b35;
	opacity: 0;
	transform: scale( 0.85 );
	transition: opacity 0.25s ease, transform 0.25s ease;
	pointer-events: none;
	z-index: 2;
}

.chub-card-play svg {
	width: 22px;
	height: 22px;
	margin-left: 3px; /* nudge play triangle to optical center */
}

.chub-card-thumb--playable:hover .chub-card-play,
.chub-card-thumb--playable:focus-visible .chub-card-play {
	opacity: 1;
	transform: scale( 1 );
}

/* Card body */
.chub-card-body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

/* Type badge */
.chub-type-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	padding: 3px 10px;
	border-radius: 100px;
	background: #f0f0f0;
	color: #666;
	margin-bottom: 12px;
	align-self: flex-start;
}

.chub-type-pdf    .chub-type-badge { background: #fff3ec; color: #c85000; }
.chub-type-video  .chub-type-badge { background: #edf3ff; color: #1a56c9; }
.chub-type-video--youtube .chub-type-badge { background: #ffeaea; color: #c00000; }
.chub-type-guide  .chub-type-badge { background: #edfaf1; color: #1a7a3c; }

.chub-youtube-empty {
	color: #777;
	font-style: italic;
	padding: 24px 0;
}

/* "View all on YouTube" footer link under the YouTube tab grid. */
.chub-youtube-footer {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid #f0f0f0;
	text-align: center;
}

.chub-youtube-all {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #555;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	transition: color 0.15s;
}

.chub-youtube-all:hover {
	color: #ff6b35;
	text-decoration: none;
}

.chub-youtube-all svg {
	width: 14px;
	height: 14px;
	transition: transform 0.15s;
}

.chub-youtube-all:hover svg {
	transform: translateX( 2px );
}
.chub-type-tiktok .chub-type-badge { background: #ffe5ec; color: #d6244c; }

/* TikTok thumbnail wrapper — keep card layout identical to other types. */
.chub-card-thumb-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

/* ── Tabs ─────────────────────────────────────────────────────────────────── */

.chub-tabs {
	margin: 0 0 32px;
}

.chub-tablist {
	display: flex;
	gap: 4px;
	border-bottom: 1px solid #e5e5e5;
	margin: 0 0 20px;
	overflow-x: auto;
	scrollbar-width: thin;
}

.chub-tab {
	position: relative;
	background: transparent;
	border: 0;
	padding: 12px 18px;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	color: #666;
	cursor: pointer;
	margin-bottom: -1px;
	border-bottom: 2px solid transparent;
	transition: color 0.15s, border-color 0.15s;
	white-space: nowrap;
}

.chub-tab:hover {
	color: #ff6b35;
}

.chub-tab.is-active,
.chub-tab[aria-selected="true"] {
	color: #ff6b35;
	border-bottom-color: #ff6b35;
}

.chub-tab:focus-visible {
	outline: 2px solid #ff6b35;
	outline-offset: -2px;
	border-radius: 4px;
}

.chub-tab-panel[hidden] {
	display: none;
}

/* Tighten margins inside panels so the tablist sits flush against the content. */
.chub-tab-panel > .chub-reading-list:first-child,
.chub-tab-panel > .chub-curated-list:first-child {
	margin-top: 0;
}

/* Title */
.chub-card-title {
	font-size: 17px;
	font-weight: 700;
	margin: 0 0 8px;
	line-height: 1.4;
	color: #1a1a1a;
}

/* Description */
.chub-card-desc {
	font-size: 14px;
	color: #666;
	line-height: 1.65;
	margin: 0 0 20px;
	flex: 1;
}

/* Buttons */
.chub-btn {
	display: inline-block;
	padding: 11px 22px;
	border-radius: 7px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	border: none;
	text-decoration: none;
	line-height: 1;
	transition: opacity 0.15s, background 0.15s;
	text-align: center;
}

.chub-btn:hover {
	opacity: 0.88;
	text-decoration: none;
}

.chub-btn-access {
	background: #ff6b35;
	color: #fff !important;
	align-self: flex-start;
}

/* CTA row sits below the description; the wrapper exists so wpautop can't
   absorb the button into the preceding <p class="chub-card-desc">, which
   would render the button inline with the text on long descriptions. */
.chub-card-cta {
	margin-top: 15px;
}

.chub-btn-unlock {
	background: #f0f0f0;
	color: #333;
	width: 100%;
	margin-top: auto;
}

.chub-btn-unlock:hover {
	background: #e5e5e5;
}

.chub-btn-soon {
	display: inline-block;
	padding: 11px 22px;
	border-radius: 7px;
	font-size: 14px;
	font-weight: 600;
	background: #f5f5f5;
	color: #bbb;
	width: 100%;
	text-align: center;
	cursor: default;
	font-style: italic;
	border: none;
}

/* ── Gate / Email Form ──────────────────────────────────────────────────────── */

.chub-gate-form {
	background: #fafafa;
	border: 1px solid #e8e8e8;
	border-radius: 16px;
	padding: 52px 40px;
	text-align: center;
	margin: 56px 0;
}

.chub-gate-icon {
	color: #ff6b35;
	margin-bottom: 20px;
}

.chub-gate-icon svg {
	display: inline-block;
}

.chub-gate-title {
	font-size: 28px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 12px;
	line-height: 1.2;
}

.chub-gate-desc {
	font-size: 16px;
	color: #555;
	margin: 0 0 32px;
	line-height: 1.6;
	max-width: 420px;
	margin-left: auto;
	margin-right: auto;
}

.chub-field {
	max-width: 400px;
	margin: 0 auto 16px;
	text-align: left;
}

.chub-field label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 6px;
	color: #333;
}

.chub-field input[type="email"] {
	width: 100%;
	padding: 13px 16px;
	border: 1.5px solid #d4d4d4;
	border-radius: 8px;
	font-size: 15px;
	color: #1a1a1a;
	box-sizing: border-box;
	transition: border-color 0.15s;
	background: #fff;
}

.chub-field input[type="email"]:focus {
	outline: none;
	border-color: #ff6b35;
	box-shadow: 0 0 0 3px rgba( 255, 107, 53, 0.12 );
}

.chub-opt-in {
	margin-bottom: 20px;
}

.chub-opt-in label {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 13px;
	color: #777;
	font-weight: 400;
	cursor: pointer;
}

.chub-opt-in input[type="checkbox"] {
	margin-top: 1px;
	flex-shrink: 0;
	accent-color: #ff6b35;
}

.chub-btn-submit {
	background: #ff6b35;
	color: #fff;
	padding: 15px 32px;
	font-size: 16px;
	border-radius: 8px;
	width: 100%;
	max-width: 400px;
	display: block;
	margin: 0 auto;
}

.chub-btn-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.chub-gate-fine {
	font-size: 12px;
	color: #aaa;
	margin: 10px auto 0;
	max-width: 400px;
}

.chub-form-msg {
	max-width: 400px;
	margin: 12px auto 0;
	font-size: 14px;
	min-height: 20px;
	line-height: 1.5;
}

.chub-success { color: #1a7a3c; }
.chub-error   { color: #c0392b; }

/* ── Section wrapper ────────────────────────────────────────────────────────── */

.chub-section {
	margin: 48px 0;
}

.chub-section-header {
	margin-bottom: 20px;
}

.chub-section-title {
	font-size: 22px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 6px;
	padding-bottom: 10px;
	border-bottom: 2px solid #f0f0f0;
}

.chub-section-subtitle {
	font-size: 15px;
	color: #777;
	margin: 6px 0 0;
}

/* ── Featured card ──────────────────────────────────────────────────────────── */

.chub-featured {
	border: 1px solid #e8e8e8;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	margin: 0 0 32px;
	transition: box-shadow 0.2s ease;
}

.chub-featured:hover {
	box-shadow: 0 6px 28px rgba( 0, 0, 0, 0.09 );
}

/* Side layout: thumbnail left, content right */
.chub-featured--side {
	display: grid;
	grid-template-columns: 260px 1fr;
}

/* Stacked layout: thumbnail on top, content below */
.chub-featured--stacked {
	display: block;
}

.chub-featured--stacked .chub-featured-thumb {
	width: 100%;
	min-height: 160px;
	border-bottom: 1px solid #f0f0f0;
}

.chub-featured--stacked .chub-featured-body {
	border-top: none;
	padding: 20px;
}

.chub-featured--stacked .chub-featured-title {
	font-size: 17px;
}

.chub-featured--side .chub-featured-thumb {
	border-right: none;
}

.chub-featured-thumb {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f5f5f5;
	min-height: 200px;
}

.chub-featured-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Gradient classes apply to .chub-featured-thumb too */
.chub-featured-thumb.chub-gradient-blue-purple   { background: linear-gradient(135deg, #3b82f6, #9333ea); }
.chub-featured-thumb.chub-gradient-green-teal    { background: linear-gradient(135deg, #22c55e, #0d9488); }
.chub-featured-thumb.chub-gradient-red-pink      { background: linear-gradient(135deg, #ef4444, #db2777); }
.chub-featured-thumb.chub-gradient-indigo-blue   { background: linear-gradient(135deg, #6366f1, #2563eb); }
.chub-featured-thumb.chub-gradient-orange-red    { background: linear-gradient(135deg, #f97316, #dc2626); }
.chub-featured-thumb.chub-gradient-yellow-orange { background: linear-gradient(135deg, #eab308, #ea580c); }
.chub-featured-thumb.chub-gradient-purple-indigo { background: linear-gradient(135deg, #a855f7, #4f46e5); }

.chub-featured-icon {
	width: 56px;
	height: 56px;
	opacity: 0.92;
}

.chub-featured-body {
	padding: 28px 32px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.chub-featured-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}

.chub-featured-label {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 3px 10px;
	border-radius: 100px;
	background: #fff3ec;
	color: #c85000;
	border: 1px solid #ffd4b8;
}

.chub-featured-title {
	font-size: 20px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 10px;
	line-height: 1.35;
}

.chub-featured-desc {
	font-size: 15px;
	color: #555;
	line-height: 1.65;
	margin: 0 0 20px;
}

/* ── Reading list ───────────────────────────────────────────────────────────── */

.chub-reading-list {
	margin: 0 0 32px;
}

.chub-reading-list-title {
	font-size: 22px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 4px;
	padding-bottom: 10px;
	border-bottom: 2px solid #f0f0f0;
}

.chub-reading-items {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 280px, 1fr ) );
	column-gap: 32px;
}

.chub-reading-item {
	border-bottom: 1px solid #f4f4f4;
}

.chub-reading-link,
.chub-reading-link--locked {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 4px;
	text-decoration: none;
	width: 100%;
	text-align: left;
	background: none;
	border: none;
	cursor: pointer;
	transition: color 0.15s;
}

.chub-reading-link:hover {
	text-decoration: none;
}

.chub-reading-link--locked {
	cursor: pointer;
}

/* Icon column (unlock / arrow) */
.chub-reading-icon {
	flex-shrink: 0;
}

.chub-reading-icon--unlock {
	color: #ccc;
	transition: color 0.15s;
}

.chub-reading-link--locked:hover .chub-reading-icon--unlock {
	color: #ff6b35;
}

.chub-reading-icon--arrow {
	margin-left: auto;
	color: #ddd;
	transition: color 0.15s, transform 0.15s;
}

.chub-reading-link:hover .chub-reading-icon--arrow {
	color: #ff6b35;
	transform: translateX(3px);
}

/* Content column: category on line 1, title on line 2 */
.chub-reading-content {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
}

.chub-reading-cat {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #aaa;
	align-self: flex-start;
}

.chub-reading-badge {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 2px 7px;
	border-radius: 10px;
	vertical-align: middle;
	margin-left: 8px;
	line-height: 1.4;
}
.chub-reading-badge--new {
	background: #ff6b35;
	color: #ffffff;
}

.chub-reading-title {
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	color: #1a1a1a;
	transition: color 0.15s;
}

.chub-reading-link:hover .chub-reading-title {
	color: #ff6b35;
}

.chub-reading-link--locked .chub-reading-title {
	color: #555;
}

.chub-reading-link--locked:hover .chub-reading-title {
	color: #ff6b35;
}

/* "Coming soon" placeholder: authorized user, no URL yet. Non-interactive. */
.chub-reading-link--soon {
	cursor: default;
}

.chub-reading-link--soon .chub-reading-title {
	color: #888;
}

.chub-reading-soon-badge {
	margin-left: auto;
	flex-shrink: 0;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #888;
	background: #f3f3f3;
	border: 1px solid #e6e6e6;
	padding: 3px 8px;
	border-radius: 10px;
	line-height: 1.4;
}

/* ── YouTube embed ──────────────────────────────────────────────────────────── */

.chub-video {
	border: 1px solid #e8e8e8;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	margin: 0 0 32px;
}

/* Stacked: video on top, context below */
.chub-video--stacked {
	display: block;
}

/* Side: video left, context right */
.chub-video--side {
	display: grid;
	grid-template-columns: 1fr 340px;
}

.chub-video--side .chub-video-context {
	border-top: none;
	border-left: 1px solid #f0f0f0;
}

.chub-video-ratio {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	height: 0;
	overflow: hidden;
	background: #111;
}

.chub-video--side .chub-video-ratio {
	/* Side layout: let iframe fill naturally */
	padding-bottom: 0;
	height: 100%;
	min-height: 240px;
}

.chub-video-ratio iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: block;
}

.chub-video--side .chub-video-ratio iframe {
	position: static;
	width: 100%;
	height: 100%;
}

.chub-video-context {
	padding: 20px 24px;
	border-top: 1px solid #f0f0f0;
}

.chub-video-label {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	padding: 3px 10px;
	border-radius: 100px;
	background: #edf3ff;
	color: #1a56c9;
	margin-bottom: 10px;
}

.chub-video-title {
	font-size: 17px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 8px;
	line-height: 1.35;
}

.chub-video-context-text {
	font-size: 14px;
	color: #666;
	line-height: 1.65;
	margin: 0;
}

/* ── Curated external links ─────────────────────────────────────────────────── */

.chub-curated {
	margin: 0 0 32px;
}

.chub-curated-items {
	list-style: none;
	margin: 0;
	padding: 0;
}

.chub-curated-item {
	border-bottom: 1px solid #f4f4f4;
}

.chub-curated-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 4px;
	text-decoration: none;
	transition: background 0.15s;
}

.chub-curated-link:hover {
	text-decoration: none;
}

.chub-curated-content {
	display: flex;
	flex-direction: column;
	gap: 3px;
	flex: 1;
}

.chub-curated-source {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #aaa;
}

.chub-curated-title {
	font-size: 15px;
	font-weight: 500;
	color: #1a1a1a;
	line-height: 1.4;
	transition: color 0.15s;
}

.chub-curated-link:hover .chub-curated-title {
	color: #ff6b35;
}

.chub-curated-desc {
	font-size: 13px;
	color: #888;
	line-height: 1.5;
}

.chub-external-icon {
	flex-shrink: 0;
	color: #ccc;
	transition: color 0.15s, transform 0.15s;
}

.chub-curated-link:hover .chub-external-icon {
	color: #ff6b35;
	transform: translate( 2px, -2px );
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */

@media ( max-width: 640px ) {
	.chub-grid {
		grid-template-columns: 1fr;
	}

	.chub-featured {
		grid-template-columns: 1fr;
	}

	.chub-featured-thumb {
		min-height: 160px;
	}

	.chub-featured-body {
		padding: 20px;
	}

	.chub-video--side {
		grid-template-columns: 1fr;
	}

	.chub-video--side .chub-video-context {
		border-left: none;
		border-top: 1px solid #f0f0f0;
	}

	.chub-video--side .chub-video-ratio {
		padding-bottom: 56.25%;
		height: 0;
	}

	.chub-video--side .chub-video-ratio iframe {
		position: absolute;
	}

	.chub-gate-form {
		padding: 36px 20px;
	}

	.chub-gate-title {
		font-size: 22px;
	}
}

/* ── Video modal ────────────────────────────────────────────────────────────
   Overlay player for "Watch Workshop" clicks. The modal markup is injected
   by hub.js the first time a video is opened, so there's no DOM cost when
   the user never engages a workshop card. */

.chub-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
}

.chub-modal.is-open {
	display: block;
}

.chub-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.88);
	cursor: pointer;
}

/* Defaults to vertical TikTok-shape (9:16). Toggle to
   `.chub-modal--landscape` for YouTube-style 16:9 videos. */
.chub-modal-content {
	position: relative;
	width: 100%;
	max-width: 540px;
	margin: 4vh auto 0;
	padding: 20px;
	background: #0a0a0a;
	border-radius: 12px;
	color: #fff;
	box-shadow: 0 25px 80px rgba(0, 0, 0, 0.55);
}

.chub-modal--landscape .chub-modal-content {
	max-width: 1100px;
}

.chub-modal-title {
	margin: 0 44px 14px 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	color: #fff;
}

.chub-modal-close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 36px;
	height: 36px;
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	border-radius: 50%;
	transition: background 0.15s;
}

.chub-modal-close:hover {
	background: rgba(255, 255, 255, 0.15);
}

.chub-modal-video {
	aspect-ratio: 9 / 16;
	background: #000;
	border-radius: 6px;
	overflow: hidden;
	max-height: 78vh;
	margin: 0 auto;
}

.chub-modal--landscape .chub-modal-video {
	aspect-ratio: 16 / 9;
	max-height: none;
}

.chub-modal-video video,
.chub-modal-video iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	background: #000;
}

.chub-modal-video video {
	object-fit: contain;
}

.chub-modal-footer {
	margin-top: 12px;
	display: flex;
	justify-content: flex-end;
}

.chub-modal-yt-link {
	color: #fff;
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	opacity: 0.7;
	transition: opacity 0.15s;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.chub-modal-yt-link:hover {
	color: #fff;
	opacity: 1;
	text-decoration: underline;
}

.chub-modal-yt-link svg {
	width: 14px;
	height: 14px;
}

body.chub-modal-locked {
	overflow: hidden;
}

@media ( max-width: 768px ) {
	.chub-modal-content {
		margin: 0;
		padding: 12px;
		border-radius: 0;
		min-height: 100vh;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}

	.chub-modal-close {
		top: 6px;
		right: 6px;
	}
}

/* ── Reading list pagination ──────────────────────────────────────────────── */

.chub-reading-list[data-pages] {
	position: relative;
}

.chub-reading-list[data-pages] .chub-reading-items,
.chub-reading-list[data-pages] .chub-reading-pagination {
	opacity: 0;
	transition: opacity 0.2s ease-out;
}

.chub-reading-list[data-pages].is-ready .chub-reading-items,
.chub-reading-list[data-pages].is-ready .chub-reading-pagination {
	opacity: 1;
}

.chub-reading-list[data-pages].is-ready .chub-reading-loading {
	display: none;
}

.chub-reading-list[data-pages].is-ready .chub-reading-item:not(.is-active) {
	display: none;
}

.chub-reading-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 240px;
}

.chub-spinner {
	width: 32px;
	height: 32px;
	border: 3px solid #f0f0f0;
	border-top-color: #ff6b35;
	border-radius: 50%;
	animation: chub-spin 0.8s linear infinite;
}

@keyframes chub-spin {
	to { transform: rotate(360deg); }
}

.chub-reading-pagination {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin-top: 20px;
}

.chub-reading-pagination__btn {
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid #e5e5e5;
	background: #fff;
	border-radius: 6px;
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	color: #444;
	transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.chub-reading-pagination__btn:hover {
	border-color: #ff6b35;
	color: #ff6b35;
}

.chub-reading-pagination__btn[aria-current="page"] {
	background: #ff6b35;
	border-color: #ff6b35;
	color: #fff;
	cursor: default;
}

.chub-reading-pagination__btn[aria-current="page"]:hover {
	color: #fff;
}

/* No-script fallback: reveal everything if JS doesn't execute. */
@media (scripting: none) {
	.chub-reading-list[data-pages] .chub-reading-items,
	.chub-reading-list[data-pages] .chub-reading-pagination {
		opacity: 1;
	}
	.chub-reading-list[data-pages] .chub-reading-loading {
		display: none;
	}
	.chub-reading-list[data-pages] .chub-reading-item {
		display: list-item !important;
	}
}

/* ── TikTok showcase ──────────────────────────────────────────────────────── */

.chub-tiktoks {
	margin: 0 0 32px;
}

.chub-tiktoks-title {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 16px;
	color: #222;
}

.chub-tiktoks-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	justify-items: center;
}

@media (min-width: 720px) {
	.chub-tiktoks-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		align-items: start;
	}
}

.chub-tiktok {
	width: 100%;
	max-width: 325px;
	margin: 0;
}

/* ── What's New card ──────────────────────────────────────────────────────── */

.chub-whats-new {
	margin: 0 0 32px;
	border: 1px solid #3aaa57;
	background: linear-gradient(180deg, #f4fbf6 0%, #fff 100%);
	border-radius: 12px;
	overflow: hidden;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.chub-whats-new:hover {
	border-color: #2c8842;
	box-shadow: 0 4px 14px rgba(58, 170, 87, 0.12);
}

.chub-whats-new__link {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 20px 24px 22px;
	text-decoration: none !important;
	color: inherit;
}

.chub-whats-new__image {
	width: 100%;
	border-radius: 8px;
	overflow: hidden;
	background: #f4f4f4;
}

.chub-whats-new__image img {
	max-width: 100%;
	height: auto;
	display: block;
}

.chub-whats-new__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.chub-whats-new__eyebrow {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #ff6b35;
	margin-bottom: 2px;
}

.chub-whats-new__title {
	font-size: 18px;
	font-weight: 700;
	color: #222;
	line-height: 1.3;
}

.chub-whats-new__teaser {
	font-size: 14px;
	color: #555;
	line-height: 1.5;
}

.chub-whats-new__meta {
	font-size: 13px;
	color: #888;
	margin-top: 4px;
}

.chub-whats-new__cta {
	color: #ff6b35;
	font-weight: 600;
}

.chub-whats-new__link:hover .chub-whats-new__cta {
	text-decoration: underline;
}

/* ── Page-level gate (overlay + modal) ────────────────────────────────────── */

/* Blur only the page content wrapper — header/nav/footer stay sharp. */
body.chub-gate-active .chub-gated-content {
	filter: blur(8px);
	-webkit-filter: blur(8px);
	pointer-events: none;
	user-select: none;
	transition: filter 0.2s ease-out;
}

/* Lock body scroll while the gate is up. */
body.chub-gate-active {
	overflow: hidden;
}

/* Overlay wrapper — fixed, full-viewport, semi-transparent. */
.chub-gate {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 12vh 16px 24px;
	overflow-y: auto;
	background: rgba(255, 255, 255, 0.35);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}

/* The card itself — keeps style of other hub cards. */
.chub-gate-modal {
	width: 100%;
	max-width: 560px;
	background: #fafafa;
	border: 1px solid #999;
	border-radius: 16px;
	padding: 44px 40px 36px;
	text-align: center;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.chub-gate-icon {
	width: 48px;
	height: 48px;
	color: #ff6b35;
	margin: 0 auto 18px;
}

.chub-gate-icon svg {
	width: 100%;
	height: 100%;
}

.chub-gate-title {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	color: #222;
	margin: 0 0 12px;
}

.chub-gate-subtitle {
	font-size: 15px;
	line-height: 1.55;
	color: #555;
	margin: 0 0 14px;
}

.chub-gate-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.chub-gate-label {
	display: block;
	margin: 0;
}

.chub-gate-email {
	width: 100%;
	padding: 14px 16px;
	border: 2px solid #ff6b35;
	border-radius: 8px;
	font-size: 15px;
	background: #fff;
	color: #222;
	outline: none;
	box-sizing: border-box;
}

.chub-gate-email:focus {
	border-color: #e85a25;
	box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.chub-gate-optin {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 13px;
	color: #555;
	text-align: left;
	cursor: pointer;
	line-height: 1.4;
}

.chub-gate-optin input[type="checkbox"] {
	margin: 2px 0 0;
	flex-shrink: 0;
}

.chub-gate-submit {
	width: 100%;
	padding: 14px;
	border: 0;
	border-radius: 8px;
	background: #ff6b35;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s;
}

.chub-gate-submit:hover:not(:disabled) {
	background: #e85a25;
}

.chub-gate-submit:disabled {
	opacity: 0.6;
	cursor: wait;
}

.chub-gate-fineprint {
	font-size: 12px;
	color: #999;
	margin: 4px 0 0;
}

.chub-gate-msg {
	min-height: 1.2em;
	font-size: 14px;
	margin: 4px 0 0;
	color: #d63637;
}

.chub-gate-msg.is-success {
	color: #2c8842;
}

.screen-reader-text {
	position: absolute;
	clip: rect(1px, 1px, 1px, 1px);
	width: 1px;
	height: 1px;
	overflow: hidden;
	white-space: nowrap;
}

@media (max-width: 540px) {
	.chub-gate {
		padding: 6vh 12px 24px;
	}
	.chub-gate-modal {
		padding: 32px 24px 28px;
	}
	.chub-gate-title {
		font-size: 24px;
	}
}

/* Newsletter signup block — match the .chub-whats-new green frame above it.
   Selector intentionally pairs with .wpforms-container so it wins specificity
   against WPForms' own container reset (.wpforms-container has its own border
   and padding rules that would otherwise override us). */
.wpforms-container.fundraising-hub-newsletter-join,
.fundraising-hub-newsletter-join {
	margin: 0 0 32px;
	padding: 20px 24px 22px;
	border: 1px solid #3aaa57;
	background: linear-gradient(180deg, #f4fbf6 0%, #fff 100%);
	border-radius: 12px;
}
