.shl-homepage {
	--shl-navy: #102a3d;
	--shl-orange: #ed6a24;
	--shl-magenta: #e6005c;
	--shl-border: #e7e9ec;
	--shl-muted: #727b85;
	max-width: 1240px;
	margin: 0 auto;
	color: #17212b;
}

.shl-homepage a {
	color: inherit;
	text-decoration: none;
}

.shl-homepage a:hover {
	color: var(--shl-orange);
}

/* Match Blocksy category-card title hovers to the homepage news links. */
body.category [data-archive="default"] .entry-card .entry-title a:hover,
body.category [data-archive="default"] .entry-card .entry-title a:focus-visible {
	color: #ed6a24;
}

.shl-hero {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
	align-items: stretch;
	gap: 24px;
	height: auto;
	min-height: 740px;
	margin-bottom: 24px;
}

.shl-featured-card,
.shl-secondary-card,
.shl-news-card,
.shl-panel,
.shl-popular-panel {
	background: #fff;
	border: 1px solid var(--shl-border);
	border-radius: 4px;
	overflow: hidden;
}

.shl-featured-card {
	display: grid;
	grid-template-rows: 456px auto;
	position: relative;
	height: auto;
	min-height: 740px;
	background: var(--shl-navy);
	color: #fff;
}

.shl-featured-card__image-link,
.shl-secondary-card__image-link,
.shl-news-card__image-link {
	display: block;
}

.shl-featured-card__image-link {
	height: 100%;
	overflow: hidden;
}

.shl-featured-card__image,
.shl-secondary-card__image,
.shl-news-card__image,
.shl-card__image-placeholder {
	display: block;
	width: 100%;
	background: #dfe4e8;
	object-fit: cover;
}

.shl-featured-card__image,
.shl-featured-card .shl-card__image-placeholder {
	height: 100%;
	aspect-ratio: auto;
}

.shl-featured-card__content {
	overflow: hidden;
	padding: 26px 28px 24px;
}

.shl-featured-card .shl-card__category,
.shl-featured-card .shl-card__date {
	color: #ffd2bb;
}

.shl-card__category {
	display: inline-block;
	margin-bottom: 8px;
	color: var(--shl-orange);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .08em;
	line-height: 1.2;
	text-transform: uppercase;
}

.shl-featured-card__title {
	margin: 0 0 10px;
	font-size: clamp(30px, 3.6vw, 46px);
	line-height: 1.07;
}

.shl-featured-card__title a {
	color: #fff;
}

.shl-featured-card__excerpt {
	max-width: 62ch;
	margin: 0;
	color: #e9eef2;
	font-size: 15px;
	line-height: 1.5;
}

.shl-card__date {
	margin: 0;
	color: var(--shl-muted);
	font-size: 12px;
}

.shl-secondary-list {
	display: grid;
	grid-template-rows: repeat(4, minmax(0, 1fr));
	min-height: 0;
	gap: 14px;
}

.shl-secondary-card {
	display: grid;
	grid-template-columns: 124px minmax(0, 1fr);
	align-items: center;
	height: 100%;
	min-height: 0;
}

.shl-secondary-card__image-link {
	width: 102px;
	height: 102px;
	margin-left: 11px;
	overflow: hidden;
	border-radius: 3px;
}

.shl-secondary-card__image,
.shl-secondary-card .shl-card__image-placeholder {
	height: 100%;
	min-height: 0;
	aspect-ratio: auto;
	object-position: center;
}

.shl-secondary-card__content {
	min-width: 0;
	overflow: hidden;
	padding: 12px 14px 12px 4px;
}

.shl-secondary-card__title,
.shl-news-card__title {
	margin: 0 0 8px;
	font-size: 17px;
	line-height: 1.25;
}

.shl-secondary-card__title {
	display: -webkit-box;
	overflow: hidden;
	font-size: 15.5px;
	line-height: 1.28;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.shl-secondary-card .shl-card__category {
	display: block;
	overflow: hidden;
	margin-bottom: 7px;
	font-size: 10px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.shl-main-ad-area {
	width: 100%;
	max-width: 728px;
	margin: 24px auto;
	text-align: center;
}

.shl-main-ad-widget,
.shl-main-ad-widget .wp-block-image {
	margin: 0;
	padding: 0;
}

.shl-main-ad-widget a {
	display: inline-block;
	max-width: 100%;
}

.shl-main-ad-widget img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

.shl-content-layout {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(280px, 1fr);
	gap: 24px;
}

.shl-content-layout--with-flow-ads {
	grid-template-columns: minmax(180px, 210px) minmax(0, 1fr) minmax(270px, 300px);
}

.shl-flow-ads {
	display: grid;
	grid-template-rows: repeat(3, auto);
	align-content: start;
	min-height: 0;
	gap: 14px;
}

.shl-flow-ad {
	display: grid;
	position: relative;
	min-width: 0;
	min-height: 0;
	aspect-ratio: 300 / 250;
	place-items: center;
	overflow: hidden;
	border: 1px solid var(--shl-border);
	border-radius: 4px;
	background: #fff;
}

.shl-flow-ad--tall {
	aspect-ratio: 300 / 500;
}

.shl-flow-ad--empty {
	visibility: hidden;
}

.shl-flow-ad__media {
	display: block;
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.shl-flow-ad__image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	min-width: 0;
	min-height: 0;
	object-fit: cover;
	object-position: center;
	background: #fff;
}

.shl-section-title,
.shl-panel__title {
	margin: 0 0 16px;
	padding-bottom: 10px;
	border-bottom: 3px solid var(--shl-orange);
	font-size: 20px;
	line-height: 1.2;
	text-transform: uppercase;
}

.shl-news-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.shl-news-grid--second {
	margin-top: 16px;
}

.shl-news-card {
	display: flex;
	min-width: 0;
	min-height: 100%;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--shl-border);
	border-radius: 4px;
}

.shl-news-card__image-link {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.shl-news-card__image,
.shl-news-card .shl-card__image-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 0;
	aspect-ratio: auto;
	object-fit: cover;
}

.shl-news-card__content {
	display: flex;
	min-width: 0;
	flex: 1;
	flex-direction: column;
	padding: 13px 14px 14px;
}

.shl-news-card__title {
	font-size: 15px;
}

.shl-news-card__content .shl-card__date {
	margin-top: auto;
	padding-top: 5px;
}

.shl-news-more {
	display: flex;
	justify-content: center;
	margin-top: 22px;
}

.shl-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 210px;
	padding: 11px 22px;
	border: 1px solid var(--shl-border);
	border-radius: 3px;
	background: #fff;
	color: var(--shl-navy);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.shl-homepage a.shl-button:hover,
.shl-homepage a.shl-button:focus-visible {
	border-color: var(--shl-orange);
	background: var(--shl-orange);
	color: #fff;
}

.shl-news-bottom-banners {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 18px;
}

.shl-news-bottom-banner {
	min-width: 0;
	aspect-ratio: 3 / 1;
	overflow: hidden;
	border: 1px solid var(--shl-border);
	border-radius: 4px;
	background: #fff;
}

.shl-news-bottom-banner--position-1 {
	grid-column: 1;
}

.shl-news-bottom-banner--position-2 {
	grid-column: 2;
}

.shl-news-bottom-banner__media,
.shl-news-bottom-banner__image {
	display: block;
	width: 100%;
	height: 100%;
}

.shl-news-bottom-banner__image {
	object-fit: contain;
	background: #fff;
}

.shl-sidebar {
	display: grid;
	align-content: start;
	gap: 18px;
}

.shl-popular-panel {
	border-color: #d9dde1;
}

.shl-popular-panel__title {
	margin: 0;
	padding: 16px 18px;
	background: #111;
	color: #fff;
	font-size: 17px;
	line-height: 1.25;
	text-transform: uppercase;
}

.shl-popular-list {
	padding: 4px 16px;
}

.shl-popular-card {
	display: grid;
	grid-template-columns: 28px 78px minmax(0, 1fr);
	align-items: center;
	gap: 10px;
	padding: 16px 0;
	border-bottom: 1px solid var(--shl-border);
}

.shl-popular-card:last-child {
	border-bottom: 0;
}

.shl-popular-card__rank {
	display: grid;
	width: 28px;
	height: 28px;
	place-items: center;
	border-radius: 2px;
	background: var(--shl-orange);
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	line-height: 1;
}

.shl-popular-card__image-link {
	display: block;
	height: 64px;
}

.shl-popular-card__image,
.shl-popular-card .shl-card__image-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: #dfe4e8;
	object-fit: cover;
	aspect-ratio: auto;
}

.shl-popular-card__title {
	margin: 0;
	font-size: 13px;
	line-height: 1.35;
}

.shl-latest-archive__grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shl-news-card--archive .shl-news-card__title {
	font-size: 17px;
}

.shl-pagination {
	margin-top: 30px;
}

.shl-pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.shl-pagination a,
.shl-pagination .current {
	display: grid;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	place-items: center;
	border: 1px solid var(--shl-border);
	border-radius: 3px;
	background: #fff;
	font-size: 13px;
	font-weight: 700;
}

.shl-pagination a:hover,
.shl-pagination .current {
	border-color: var(--shl-orange);
	background: var(--shl-orange);
	color: #fff;
}

.shl-post-tags {
	clear: both;
	margin-top: 32px;
	padding-top: 18px;
	border-top: 1px solid #e7e9ec;
	font-size: 14px;
	line-height: 1.7;
}

.shl-post-tags strong {
	color: #17212b;
}

.shl-post-tags a {
	color: var(--shl-orange, #ed6a24);
	font-weight: 600;
}

.shl-post-advertisements {
	display: grid;
	clear: both;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin: 32px 0 0;
}

.shl-post-advertisement {
	position: relative;
	min-width: 0;
	aspect-ratio: 300 / 250;
	overflow: hidden;
	border: 1px solid #e7e9ec;
	border-radius: 4px;
	background: #fff;
}

.shl-post-advertisement--tall {
	aspect-ratio: 300 / 500;
}

.shl-post-advertisement__media,
.shl-post-advertisement__image {
	display: block;
	width: 100%;
	height: 100%;
}

.shl-post-advertisement__image {
	max-width: none;
	object-fit: cover;
	object-position: center;
}

.shl-sidebar-widgets {
	display: grid;
	gap: 18px;
}

.shl-panel {
	padding: 18px;
}

.shl-panel__title {
	font-size: 17px;
}

.shl-panel__note,
.shl-empty {
	margin: 0;
	color: var(--shl-muted);
	font-size: 14px;
	line-height: 1.5;
}

.shl-sidebar-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.shl-sidebar-list li {
	padding: 10px 0;
	border-bottom: 1px solid var(--shl-border);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
}

.shl-sidebar-list li:first-child {
	padding-top: 0;
}

.shl-sidebar-list li:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

@media (max-width: 900px) {
	.shl-hero,
	.shl-content-layout {
		grid-template-columns: 1fr;
	}

	.shl-hero {
		height: auto;
		min-height: 0;
	}

	.shl-featured-card {
		grid-template-rows: auto auto;
		min-height: 0;
	}

	.shl-featured-card__image-link {
		height: auto;
		aspect-ratio: 16 / 9;
	}

	.shl-secondary-list {
		grid-template-rows: repeat(4, 150px);
		height: auto;
	}

	.shl-news-grid,
	.shl-latest-archive__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.shl-main-column,
	.shl-sidebar {
		display: contents;
	}

	.shl-flow-ads {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: none;
		order: 1;
		width: 100%;
		gap: 16px;
	}

	.shl-flow-ad--empty {
		display: none;
	}

	.shl-news-section {
		order: 2;
	}

	.shl-popular-panel {
		order: 3;
	}

	.shl-news-bottom-banners {
		order: 4;
		margin-top: 0;
	}

	.shl-sidebar-widgets {
		order: 5;
	}

}

@media (max-width: 600px) {
	.shl-homepage {
		width: 100%;
	}

	.shl-featured-card__content {
		padding: 20px;
	}

	.shl-featured-card__title {
		font-size: 30px;
	}

	.shl-news-grid {
		grid-template-columns: 1fr;
	}

	.shl-flow-ads {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.shl-secondary-card {
		grid-template-columns: 106px minmax(0, 1fr);
	}

	.shl-secondary-card__image-link {
		width: 86px;
		height: 86px;
		margin-left: 10px;
	}

	.shl-secondary-card__image,
	.shl-secondary-card .shl-card__image-placeholder {
		min-height: 0;
	}

	.shl-news-bottom-banners {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.shl-news-bottom-banner--position-1,
	.shl-news-bottom-banner--position-2 {
		grid-column: 1;
	}

	.shl-post-advertisements {
		grid-template-columns: 1fr;
		gap: 14px;
	}
}
