/**
 * Approved Gutenberg homepage composition.
 * All content rules are scoped to the exact communio-home root marker.
 */

.communio-home {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin: 0;
	background: var(--communio-color-white);
	color: var(--communio-color-ink);
}

/*
 * Core's alignfull rule uses 100vw, which includes the vertical scrollbar and
 * makes this full-width Page root 8px wider than the document at larger
 * breakpoints. Keep the full-width treatment within the actual client width.
 */
body.communio-home-active
	.entry-content
	> .communio-home.alignfull {
	width: 100%;
	max-width: 100%;
	margin-inline: 0;
}

.communio-home *,
.communio-home *::before,
.communio-home *::after {
	box-sizing: border-box;
}

.communio-home > .wp-block-group__inner-container {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.communio-home-active .site.grid-container,
.communio-home-active .site-content,
.communio-home-active .content-area,
.communio-home-active .site-main,
.communio-home-active .inside-article,
.communio-home-active .entry-content {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

/* Communio homepage design
-------------------------------------------------------------- */

/* General text colors */

.communio-home .communio-hero-meta,
.communio-home .communio-hero-title,
.communio-home .communio-hero-subtitle,
.communio-home .communio-featured-title,
.communio-home .communio-featured-author,
.communio-home .communio-featured-link {
	color: var(--communio-color-ink);
}


/* Current Issue hero */

.communio-home .communio-hero-meta {
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	color: var(--communio-color-accent);
	margin: 0 0 1.5rem;
}

.communio-home .communio-hero-title {
	font-size: var(--communio-size-display-home);
	font-weight: 400;
	line-height: 0.92;
	letter-spacing: -0.035em;
	margin: 0 0 1.25rem;
	white-space: normal;
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
	text-wrap: balance;
}

.communio-home .communio-hero-subtitle {
	max-width: 26rem;
	font-size: 1.35rem;
	font-style: italic;
	font-weight: 400;
	line-height: 1.42;
	color: var(--communio-color-deck);
	margin: 0 0 2rem;
}

.communio-home .communio-hero-button a {
	display: inline-block;
	padding: 0.8rem 1.25rem;
	border: 1px solid var(--communio-color-accent-rule);
	font-family: var(--communio-font-utility);
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--communio-color-accent-dark);
	background: transparent;
}

.communio-home .communio-hero-button a:hover,
.communio-home .communio-hero-button a:focus {
	color: var(--communio-color-white);
	background: var(--communio-color-accent);
}


/* Featured Articles section */

/* 75rem structural frame matches GeneratePress's 1200px container. */
.communio-home .communio-eyebrow {
	font-family: var(--communio-font-utility);
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	text-align: center;
	color: var(--communio-color-accent);
	width: min(var(--communio-measure-structural), calc(100% - var(--communio-gutter-viewport)));
	margin: clamp(1.5rem, 2vw, 1.75rem) auto 0.625rem;
}

.communio-home .communio-article-collection {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	box-sizing: border-box;
	width: min(var(--communio-measure-structural), calc(100% - var(--communio-gutter-viewport)));
	margin-block: 0;
	margin-inline: auto;
	border-top: 1px solid var(--communio-color-rule-translucent);
	border-bottom: 1px solid var(--communio-color-rule-translucent);
}

/* Flex columns maintain consistent editorial rhythm without fixed title heights. */
.communio-home .communio-featured-card {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	min-width: 0;
	min-height: 100%;
	padding: 1.75rem clamp(1.5rem, 2.2vw, 2.25rem) 1.85rem;
	border-left: 1px solid var(--communio-color-rule);
}

.communio-home .communio-featured-card:first-child {
	padding-left: clamp(1.75rem, 3vw, 3rem);
	border-left: 0;
}

.communio-home .communio-featured-card:last-child {
	padding-right: clamp(1.75rem, 3vw, 3rem);
}

.communio-home .communio-featured-card .communio-article-topics {
	margin: 0 0 0.7rem;
	font-family: var(--communio-font-utility);
	font-size: 0.68rem;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	color: var(--communio-color-editorial);
}

.communio-home .communio-featured-card .communio-article-topics a {
	color: inherit;
	text-decoration: none;
}

.communio-home .communio-featured-card .communio-article-topics a:hover,
.communio-home .communio-featured-card .communio-article-topics a:focus {
	color: var(--communio-color-accent-hover);
	text-decoration: underline;
	text-decoration-thickness: 0.06em;
	text-underline-offset: 0.18em;
}

.communio-home .communio-featured-card .communio-article-topics a:focus-visible {
	outline: 2px solid var(--communio-color-accent-muted);
	outline-offset: 3px;
}

.communio-home .communio-featured-title {
	margin: 0 0 0.65rem;
	font-size: 1.22rem;
	font-weight: 400;
	line-height: 1.18;
	letter-spacing: -0.012em;
}

.communio-home .communio-featured-title a {
	color: var(--communio-color-ink);
	text-decoration: none;
}

.communio-home .communio-featured-title a:hover,
.communio-home .communio-featured-title a:focus {
	color: var(--communio-color-accent-hover);
}

.communio-home .communio-featured-title a:focus-visible,
.communio-home .communio-featured-link a:focus-visible {
	outline: 2px solid var(--communio-color-accent-muted);
	outline-offset: 3px;
}

.communio-home .communio-featured-author {
	margin: 0 0 1rem;
	font-size: 0.88rem;
	font-style: italic;
	font-weight: 400;
	line-height: 1.35;
	color: var(--communio-color-muted-soft);
}

.communio-home .communio-featured-author a {
	color: inherit;
	text-decoration: none;
}

.communio-home .communio-featured-link {
	margin-top: auto;
	margin-right: 0;
	margin-bottom: 0;
	margin-left: 0;
	padding-top: 0.35rem;
	font-family: var(--communio-font-utility);
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.065em;
	text-transform: uppercase;
}

.communio-home .communio-featured-link a {
	color: var(--communio-color-accent-dark);
	text-decoration: none;
}

.communio-home .communio-featured-link a::after {
	content: " \2192";
}


/* Responsive Featured Articles */

@media (max-width: 960px) {
	/* Homepage editorial content gutters */
	.communio-home .communio-article-collection {
		width: calc(100% - 3rem);
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.communio-home .communio-featured-card:nth-child(odd) {
		border-left: 0;
	}

	.communio-home .communio-featured-card:nth-child(n + 3) {
		border-top: 1px solid var(--communio-color-rule);
	}
}

@media (max-width: 600px) {
	/* Homepage editorial content gutters */
	.communio-home .communio-article-collection {
		width: calc(100% - 3rem);
		grid-template-columns: 1fr !important;
	}

	.communio-home .communio-featured-card {
		border-left: 0;
		border-top: 1px solid var(--communio-color-rule);
		padding-top: 1.5rem;
		padding-right: 0;
		padding-bottom: 1.5rem;
		padding-left: 0;
	}

	.communio-home .communio-featured-card:first-child {
		padding-left: 0;
		border-top: 0;
	}

	.communio-home .communio-featured-card:last-child {
		padding-right: 0;
	}

	.communio-home .communio-hero-title {
		font-size: clamp(3rem, 14vw, 4.5rem);
	}
}

/* Communio homepage responsive hero
-------------------------------------------------------------- */

@media (min-width: 961px) {
	/* 75rem structural frame matches GeneratePress's 1200px container. */
	.communio-home .communio-home-hero {
		display: flex;
		align-items: stretch !important;
		gap: 0;
		box-sizing: border-box;
		width: min(var(--communio-measure-structural), calc(100% - var(--communio-gutter-viewport)));
		margin-inline: auto;
	}

	/* Homepage editorial content gutters */
	.communio-home .communio-home-hero-copy {
		flex: 0 0 48% !important;
		width: 48%;
		box-sizing: border-box;
		/* Deliberate desktop top inset places hero copy below the global header. */
		padding-top: clamp(1.25rem, 2vw, 2rem);
		padding-left: clamp(2rem, 3vw, 3.5rem);
		padding-right: clamp(2rem, 3vw, 3.5rem);
	}

	.communio-home .communio-home-hero-media {
		position: relative;
		flex: 0 0 52% !important;
		width: 52%;
		min-height: 34rem;
		overflow: hidden;
	}

	/* Fade the photograph itself into the page surface, avoiding a visible overlay boundary. */
	.communio-home .communio-home-hero-image {
		-webkit-mask-image: linear-gradient(
			90deg,
			transparent 0%,
			rgba(0, 0, 0, 0.12) 7%,
			rgba(0, 0, 0, 0.42) 17%,
			rgba(0, 0, 0, 0.76) 29%,
			rgba(0, 0, 0, 0.96) 40%,
			#000 48%
		);
		mask-image: linear-gradient(
			90deg,
			transparent 0%,
			rgba(0, 0, 0, 0.12) 7%,
			rgba(0, 0, 0, 0.42) 17%,
			rgba(0, 0, 0, 0.76) 29%,
			rgba(0, 0, 0, 0.96) 40%,
			#000 48%
		);
		-webkit-mask-repeat: no-repeat;
		mask-repeat: no-repeat;
		-webkit-mask-size: 100% 100%;
		mask-size: 100% 100%;
	}

	.communio-home .communio-home-hero-image,
	.communio-home .communio-home-hero-image img {
		display: block;
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

}

@media (max-width: 960px) {
	.communio-home .communio-home-hero {
		display: flex;
		flex-direction: column;
		align-items: stretch !important;
		gap: 0;
	}

	.communio-home .communio-home-hero-copy,
	.communio-home .communio-home-hero-media {
		flex: 0 0 100% !important;
		width: 100%;
	}

	.communio-home .communio-home-hero-copy {
		padding: 4rem 6vw;
	}

	.communio-home .communio-home-hero-media {
		min-height: 0;
	}

	.communio-home .communio-home-hero-image,
	.communio-home .communio-home-hero-image img {
		display: block;
		width: 100%;
		height: auto;
		aspect-ratio: 16 / 9;
		object-fit: cover;
	}

	.communio-home .communio-home-hero .communio-hero-title {
		white-space: normal;
		overflow-wrap: normal;
		word-break: normal;
		hyphens: none;
	}
}

@media (max-width: 600px) {
	.communio-home .communio-home-hero-copy {
		padding: 3.25rem 1.75rem;
	}

	/*
	 * A taller crop keeps the contextual architecture while bringing the cover
	 * forward as the primary artifact. Tablet retains the wider 16:9 scene.
	 */
	.communio-home .communio-home-hero-media,
	.communio-home .communio-home-hero-image {
		aspect-ratio: 4 / 3;
		overflow: hidden;
	}

	.communio-home .communio-home-hero-image img {
		height: 100%;
		aspect-ratio: auto;
		object-fit: cover;
		object-position: 62% center;
	}

	.communio-home .communio-home-hero .communio-hero-title {
		font-size: clamp(2.75rem, 13vw, 4rem);
		white-space: normal;
		overflow-wrap: normal;
		word-break: normal;
		hyphens: none;
	}
}

/* Homepage Browse Section — START */

.communio-home .communio-browse-section {
	padding-block: 0;
	height: auto;
	min-height: 0;
}

.communio-home .communio-browse-section > .wp-block-group__inner-container {
	padding-inline: 0;
	height: auto;
	min-height: 0;
}

/* 75rem is the structural frame used by Hero, Featured Articles, and Browse; 70rem remains the inner utility frame used by the header's visible content, motto, and footer. */
.communio-home .communio-browse-section .wp-block-columns {
	align-items: stretch !important;
	gap: 0;
	width: min(var(--communio-measure-structural), calc(100% - var(--communio-gutter-viewport)));
	height: auto;
	min-height: 0;
	margin-block: 0;
	margin-inline: auto;
}

.communio-home .communio-browse-section .wp-block-columns > .communio-browse-column {
	display: flex;
	flex: 1 1 0 !important;
	box-sizing: border-box;
	height: auto;
	min-height: 0;
}

.communio-home .communio-browse-section .communio-browse-column-border {
	border-left: 1px solid var(--communio-color-rule-soft);
}

.communio-home .communio-browse-section .communio-browse-item {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: center;
	width: 100%;
	height: auto;
	min-height: 0;
	padding: 2.25rem clamp(1.75rem, 3vw, 3rem);
	text-align: center;
}

.communio-home .communio-browse-section .communio-browse-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 58px;
	height: 58px;
	margin: 0 0 0.85rem;
	border: 1px solid var(--communio-color-editorial-icon-rule);
	border-radius: 50%;
	color: var(--communio-color-editorial-icon);
	background: transparent;
}

.communio-home .communio-browse-section .communio-browse-icon svg {
	display: block;
	width: 26px;
	height: 26px;
	color: inherit;
}

.communio-home .communio-browse-section .communio-browse-icon svg,
.communio-home .communio-browse-section .communio-browse-icon svg * {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.communio-home .communio-browse-section .communio-browse-title {
	margin: 0 0 0.65rem;
	font-family: var(--communio-font-utility);
	font-size: 0.86rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--communio-color-browse-heading);
}

.communio-home .communio-browse-section .communio-browse-description {
	max-width: 25rem;
	margin: 0 0 1rem;
	font-family: var(--communio-font-reading);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.45;
	color: var(--communio-color-browse-copy);
}

.communio-home .communio-browse-section .communio-browse-link {
	margin: auto 0 0;
	padding-top: 0;
	font-family: var(--communio-font-utility);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.075em;
	text-transform: uppercase;
}

.communio-home .communio-browse-section .communio-browse-link a {
	color: var(--communio-color-accent-link);
	text-decoration: none;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
}

.communio-home .communio-browse-section .communio-browse-link a:hover,
.communio-home .communio-browse-section .communio-browse-link a:focus {
	color: var(--communio-color-accent-deep);
	text-decoration: underline;
}

.communio-home .communio-browse-section .communio-browse-link a:focus-visible {
	outline: 2px solid var(--communio-color-accent-link);
	outline-offset: 4px;
}

@media (min-width: 961px) {
	.communio-home .communio-browse-section {
		padding-block: 1.25rem;
	}

	.communio-home .communio-browse-section .communio-browse-item {
		flex: 0 1 auto;
		padding: 1.5rem clamp(1.5rem, 2vw, 2rem);
		text-align: left;
	}

	.communio-home .communio-browse-section .communio-browse-item > .wp-block-group__inner-container {
		display: grid;
		grid-template-columns: 3.625rem minmax(9rem, 1fr) auto;
		grid-template-rows: auto auto;
		align-items: center;
		column-gap: 1.25rem;
		row-gap: 0.35rem;
		width: 100%;
		min-width: 0;
		max-width: none;
		height: auto;
		min-height: 0;
	}

	.communio-home .communio-browse-section .communio-browse-icon {
		grid-column: 1;
		grid-row: 1 / span 2;
		align-self: center;
		margin: 0;
	}

	.communio-home .communio-browse-section .communio-browse-title {
		grid-column: 2;
		grid-row: 1;
		align-self: end;
		min-width: 0;
		width: auto;
		max-width: none;
		margin: 0;
		text-align: left;
	}

	.communio-home .communio-browse-section .communio-browse-description {
		grid-column: 2;
		grid-row: 2;
		align-self: start;
		min-width: 0;
		width: auto;
		max-width: 17rem;
		margin: 0;
		text-align: left;
		overflow-wrap: normal;
		word-break: normal;
		hyphens: none;
	}

	.communio-home .communio-browse-section .communio-browse-link {
		grid-column: 3;
		grid-row: 1 / span 2;
		align-self: center;
		justify-self: end;
		margin: 0;
		white-space: nowrap;
	}

	.communio-home .communio-browse-section .communio-browse-link a {
		font-size: 0;
		line-height: 1;
	}

	.communio-home .communio-browse-section .communio-browse-link a::after {
		content: "\2192";
		display: inline-block;
		font-family: var(--communio-font-utility);
		font-size: 1.35rem;
		font-weight: 400;
		line-height: 1;
	}
}

@media (max-width: 960px) {
	.communio-home .communio-browse-section .wp-block-columns {
		flex-wrap: wrap !important;
		width: min(76rem, calc(100% - 2.5rem));
	}

	.communio-home .communio-browse-section .wp-block-columns > .communio-browse-column {
		flex: 0 0 50% !important;
	}

	.communio-home .communio-browse-section .communio-browse-column:nth-child(3) {
		flex-basis: 100% !important;
		border-top: 1px solid var(--communio-color-rule-soft);
		border-left: 0;
	}

	.communio-home .communio-browse-section .communio-browse-item {
		padding-inline: clamp(1.5rem, 4vw, 2.5rem);
	}

	.communio-home .communio-browse-section .communio-browse-item > .wp-block-group__inner-container {
		display: block;
		width: 100%;
		min-width: 0;
		max-width: none;
		height: auto;
		min-height: 0;
		text-align: center;
	}

	.communio-home .communio-browse-section .communio-browse-icon,
	.communio-home .communio-browse-section .communio-browse-title,
	.communio-home .communio-browse-section .communio-browse-description,
	.communio-home .communio-browse-section .communio-browse-link {
		grid-column: auto;
		grid-row: auto;
		align-self: auto;
		justify-self: auto;
	}

	.communio-home .communio-browse-section .communio-browse-icon {
		margin: 0 auto 0.85rem;
	}

	.communio-home .communio-browse-section .communio-browse-title {
		width: auto;
		max-width: none;
		text-align: center;
	}

	.communio-home .communio-browse-section .communio-browse-description {
		width: auto;
		max-width: 25rem;
		margin: 0 auto 1rem;
		text-align: center;
		overflow-wrap: normal;
		word-break: normal;
		hyphens: none;
	}

	.communio-home .communio-browse-section .communio-browse-link {
		width: auto;
		max-width: none;
		text-align: center;
		white-space: normal;
	}

	.communio-home .communio-browse-section .communio-browse-link a {
		font-size: 0.75rem;
		line-height: 1.3;
	}

	.communio-home .communio-browse-section .communio-browse-link a::after {
		content: none;
	}
}

@media (max-width: 600px) {
	.communio-home .communio-browse-section .wp-block-columns {
		width: calc(100% - 2rem);
	}

	.communio-home .communio-browse-section .wp-block-columns > .communio-browse-column {
		flex-basis: 100% !important;
	}

	.communio-home .communio-browse-section .communio-browse-column-border {
		border-left: 0;
		border-top: 1px solid var(--communio-color-rule-soft);
	}

	.communio-home .communio-browse-section .communio-browse-item {
		padding: 2.25rem 0.75rem;
	}

	.communio-home .communio-browse-section .communio-browse-icon {
		width: 56px;
		height: 56px;
		margin-bottom: 0.9rem;
	}

	.communio-home .communio-browse-section .communio-browse-icon svg {
		width: 25px;
		height: 25px;
	}
}

/* Homepage Browse Section — END */
