/*
 ************************************************************
 * PHILANTHROPY
 ************************************************************
 * ----------------------------------------------------------
 * GLOBAL
 * ----------------------------------------------------------
 */

#top .philanthropy [hidden]
{
	display: none !important;
}

/* TITLE */

#top .philanthropy .title
{
	font-weight: 700;
	color: var(--color-cvi-3);
}

/* LABEL */

#top .philanthropy .label 
{
	line-height: 1.4;
	font-size: 16px;
	color: var(--color-cvi-1);
}

/* ENTRY */

#top .philanthropy .entry 
{
	line-height: 1.6;
	font-size: 16px;
}

/*
 * ----------------------------------------------------------
 * CONTENT
 * ----------------------------------------------------------
 */

#top .philanthropy .content-row,
#top .philanthropy .content-col,
#top .philanthropy .content-head
{
	display: flex;
	gap: 16px;
}

#top .philanthropy .content-row
{
	flex-direction: row;
	gap: 32px;
}

#top .philanthropy .content-col
{
	flex-direction: column;
}

#top .philanthropy .col-1-3
{
	flex-direction: column;
	gap: 0;
	width: calc(33.33% - 8px);
}

#top .philanthropy .col-2-3
{
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	min-width: 0;
	width: calc(66.67% - 8px);
	text-align: center;
}

#top .philanthropy .col-2-3 > div
{
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 16px;
}

/* HEAD */

#top .philanthropy .content-head
{
	align-items: center;
}

#top .philanthropy .content-head .label
{
	text-transform: uppercase;
	font-weight: 700;
	font-size: 16px;
	color: var(--color-cvi-1);
}

#top .philanthropy .content-head .title
{
	font-size: 32px;
}

#top .philanthropy .content-head .content-icon
{
	width: 120px;
}

#top .philanthropy .content-head .content-title
{
	display: flex;
	flex-direction: column;
	width: calc(100% - 120px);
}

#top .philanthropy .content-image,
#top .philanthropy .content-image img
{
	width: 100%;
}

#top .philanthropy .content-image
{
	margin-top: 14px;
}

/* SPACERS */

#top .philanthropy .content-spacer
{
	position: relative;
	flex: 0 0 40px;
	height: 40px;
	color: var(--color-lightgray-2);
	pointer-events: none;
}

#top .philanthropy .content-spacer > span
{
	position: absolute;
	display: block;
}

#top .philanthropy .content-spacer .spacer-1
{
	top: 0;
	left: 0;
	right: 0;
	border-top: 1px solid currentColor;
}

/* Join the top line across the 16px gap between the two sections. */
#top .philanthropy .content-honor .spacer-1
{
	right: -8px;
}

#top .philanthropy .content-recognition .spacer-1
{
	left: -8px;
}

#top .philanthropy .content-honor .spacer-2
{
	top: 0;
	bottom: 0;
	left: 50%;
	border-left: 1px solid currentColor;
}

#top .philanthropy .content-recognition .spacer-2
{
	top: 0;
	left: 50%;
	height: 20px;
	border-left: 1px solid currentColor;
}

/* Card centres include the gap within the two-column grid. */
#top .philanthropy .content-recognition .spacer-3
{
	top: 20px;
	left: calc(25% - 4px);
	right: calc(25% - 4px);
	border-top: 1px solid currentColor;
}

#top .philanthropy .content-recognition .spacer-4,
#top .philanthropy .content-recognition .spacer-5
{
	top: 20px;
	bottom: 0;
	border-left: 1px solid currentColor;
}

#top .philanthropy .content-recognition .spacer-4
{
	left: calc(25% - 4px);
}

#top .philanthropy .content-recognition .spacer-5
{
	right: calc(25% - 4px);
}

#top .philanthropy .content-events .spacer-2,
#top .philanthropy .content-events .spacer-3,
#top .philanthropy .content-events .spacer-4
{
	top: 0;
	bottom: 0;
	border-left: 1px solid currentColor;
}

/* Centres of three equal cards with two 16px gaps. */
#top .philanthropy .content-events .spacer-2
{
	left: calc(16.666667% - 5.333333px);
}

#top .philanthropy .content-events .spacer-3
{
	left: 50%;
}

#top .philanthropy .content-events .spacer-4
{
	right: calc(16.666667% - 5.333333px);
}

/* GRID */

#top .philanthropy .content-grid
{
	display: grid;
	grid-gap: 16px;
}

#top .philanthropy .content-grid .content-item
{
	padding: 16px;
	border: 1px solid var(--color-lightgray-2);
}

#top .philanthropy .content-grid .entry
{
	line-height: 1.4;
	font-size: 14px;
}

/* HONOR */

#top .philanthropy .content-honor
{
	grid-column: span 1;
}

#top .philanthropy .content-honor .content-grid
{
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

/* RECOGNITION */

#top .philanthropy .content-recognition
{
	grid-column: span 2;
}

#top .philanthropy .content-recognition .content-grid
{
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* EVENTS */

#top .philanthropy .content-events
{
	grid-column: span 3;
}

#top .philanthropy .content-events .content-grid
{
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

/*
 * ----------------------------------------------------------
 * TABS
 * ----------------------------------------------------------
 */

/* WRAP */

#top .philanthropy .philanthropy-menu-toggle
{
	display: none;
}

#top .philanthropy .philanthropy-tabs
{
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	border-bottom: 4px solid var(--color-cvi-3);
}

/* TAB */

#top .philanthropy .philanthropy-tabs a
{
	align-self: flex-start;
	appearance: none;
	background: none;
	border: none;
	margin: 0;
	padding: 0;
	color: var(--color-cvi-2);
	font-family: var(--font-base);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	text-align: left;
	text-decoration: none;
	white-space: normal;
	overflow-wrap: anywhere;
	cursor: pointer;
	transition-property: opacity, color, border-color, background-color;
	transition-duration: .3s;
	transition-timing-function: ease;
}

#top .philanthropy .philanthropy-tabs a:hover
{
	color: var(--color-cvi-3);
}

#top .philanthropy .philanthropy-tabs [aria-current="page"]
{
	font-weight: 600;
	align-self: center;
	padding: 12px 20px;
	border-radius: 8px 8px 0 0;
	background: var(--color-cvi-3);
	border-color: var(--color-cvi-3);
	color: var(--color-white) !important;
}

/* PANELS */

#top .philanthropy .philanthropy-panel
{
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 0;
    overflow-wrap: anywhere;
}

#top .philanthropy .philanthropy-panel > :last-child
{
    margin-bottom: 0;
}

#top .philanthropy .philanthropy-tabs a:focus-visible,
#top .philanthropy .philanthropy-menu-toggle:focus-visible
{
    outline: 2px solid var(--color-cvi-2);
    outline-offset: 4px;
}
/*
 * ----------------------------------------------------------
 * RESPONSIVE CONTENT
 * ----------------------------------------------------------
 */

@media (max-width: 1080px)
{
	#top .philanthropy .philanthropy-menu-toggle
	{
		display: flex;
		align-items: center;
		gap: 12px;
		width: 100%;
		box-sizing: border-box;
		margin: 0;
		padding: 16px;
		border: 1px solid var(--color-lightgray-2);
		border-radius: 0;
		background: var(--color-white);
		color: var(--color-cvi-2);
		font: inherit;
		text-align: left;
		cursor: pointer;
	}

	#top .philanthropy .philanthropy-menu-icon
	{
		display: grid;
		gap: 4px;
		flex: 0 0 22px;
	}

	#top .philanthropy .philanthropy-menu-icon span
	{
		display: block;
		height: 2px;
		background: currentColor;
	}

	#top .philanthropy .philanthropy-navigation[data-menu-ready] .philanthropy-menu
	{
		display: grid;
		grid-template-rows: 0fr;
		opacity: 0;
		visibility: hidden;
		transition: grid-template-rows 320ms ease, opacity 200ms ease, visibility 0s 320ms;
	}

	#top .philanthropy .philanthropy-navigation[data-menu-open="true"] .philanthropy-menu
	{
		grid-template-rows: 1fr;
		opacity: 1;
		visibility: visible;
		transition-delay: 0s;
	}

	#top .philanthropy .philanthropy-menu-inner
	{
		min-height: 0;
		overflow: hidden;
	}

	#top .philanthropy .philanthropy-tabs
	{
		flex-direction: column;
		flex-wrap: nowrap;
		gap: 0;
		border-bottom: 0;
	}

	#top .philanthropy .philanthropy-tabs a,
	#top .philanthropy .philanthropy-tabs [aria-current="page"]
	{
		align-self: stretch;
		display: block;
		padding: 14px 16px;
		border-radius: 0;
		border-bottom: 1px solid var(--color-lightgray-2);
	}

	#top .philanthropy .philanthropy-panel
	{
		gap: 32px;
		padding: 20px;
	}

	#top .philanthropy .content-row
	{
		flex-direction: column;
		gap: 24px;
		min-width: 0;
	}

	#top .philanthropy .col-1-3,
	#top .philanthropy .col-2-3
	{
		width: 100%;
		min-width: 0;
		box-sizing: border-box;
	}

	#top .philanthropy .content-head .content-icon
	{
		flex: 0 0 96px;
		width: 96px;
	}

	#top .philanthropy .content-head .content-title
	{
		flex: 1;
		width: auto;
		min-width: 0;
	}

	#top .philanthropy .content-image
	{
		width: 100%;
	}

	#top .philanthropy .content-image img,
	#top .philanthropy .content-icon img
	{
		display: block;
		width: 100%;
		max-width: 100%;
		height: auto;
	}

	#top .philanthropy .content-grid .content-item
	{
		min-width: 0;
		box-sizing: border-box;
	}
}

@media (max-width: 1080px) and (prefers-reduced-motion: reduce)
{
	#top .philanthropy .philanthropy-navigation[data-menu-ready] .philanthropy-menu
	{
		transition: none;
	}
}

@media (max-width: 767px)
{
	#top .philanthropy .philanthropy-panel
	{
		padding: 16px;
	}

	#top .philanthropy .col-2-3
	{
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	#top .philanthropy .content-honor,
	#top .philanthropy .content-recognition,
	#top .philanthropy .content-events
	{
		grid-column: 1 / -1;
	}

	#top .philanthropy .col-2-3 .content-grid
	{
		grid-template-columns: minmax(0, 1fr);
	}

	#top .philanthropy .content-head .content-icon
	{
		flex-basis: 72px;
		width: 72px;
	}

	#top .philanthropy .content-head .title
	{
		font-size: clamp(24px, 5vw, 32px);
		line-height: 1.2;
	}

	/* Each stacked section gets its own line and central connector. */
	#top .philanthropy .content-spacer
	{
		flex-basis: 24px;
		height: 24px;
	}

	#top .philanthropy .content-spacer .spacer-1
	{
		left: 0;
		right: 0;
	}

	#top .philanthropy .content-spacer .spacer-2
	{
		top: 0;
		bottom: 0;
		left: 50%;
		right: auto;
		height: auto;
	}

	#top .philanthropy .content-spacer .spacer-3,
	#top .philanthropy .content-spacer .spacer-4,
	#top .philanthropy .content-spacer .spacer-5
	{
		display: none;
	}
}
