/*
 * Blog side, part 1: two-column layout with sidebar, single post, sidebar widgets, share box, social media block.
 * Values mirror the Blocksy settings (sidebar 30% / gap 5%, widgets 50px apart, post box padding 20px).
 */

.hp-layout {
	--hp-sidebar-width: 30%;
	--hp-sidebar-gap: 5%;
	--hp-sidebar-widget-spacing: 50px;
	--hp-sidebar-inner-spacing: 30px;
	--hp-sidebar-background: #ffffff;
	display: grid;
	grid-template-columns: minmax(0, 100%);
	column-gap: var(--hp-sidebar-gap);
	row-gap: 50px;
	padding-block: var(--theme-content-vertical-spacing);
}
.hp-layout > * {
	margin-block: 0;
	min-width: 0;
}
@media (min-width: 1000px) {
	.hp-layout.has-sidebar {
		grid-template-columns: minmax(100px, 1fr) var(--hp-sidebar-width);
	}
}
@media (max-width: 999.98px) {
	.hp-layout { --hp-sidebar-widget-spacing: 30px; }
}

/* Links on the blog side carry no underline (text links inside posts are handled by .entry-content). */
.hp-layout a:where(:not(.entry-content a)) {
	text-decoration: none;
}

/* Sidebar */
.hp-sidebar__inner > * {
	margin-block: 0;
}
.hp-widget {
	--theme-link-initial-color: var(--theme-text-color);
	padding: var(--hp-sidebar-inner-spacing);
	background: var(--hp-sidebar-background);
	border-radius: var(--theme-boxed-content-border-radius);
	box-shadow: var(--theme-boxed-content-box-shadow);
	color: var(--theme-text-color);
}
.hp-widget:not(:last-child) {
	margin-bottom: var(--hp-sidebar-widget-spacing);
}
.hp-widget > * {
	margin-block: 0;
}
.hp-widget .widget-title {
	font-size: 20px;
	line-height: 1.2;
	margin-bottom: 16px;
}
.hp-widget__image {
	margin: 0;
}
.hp-widget__image a {
	display: block;
}
.hp-widget__image img {
	display: block;
	width: 100%;
	height: auto;
}

/* Single post */
.hp-article--post {
	--theme-block-max-width: 100%;
	--theme-block-wide-max-width: 100%;
	padding: var(--wp--custom--box--padding-post);
	background-color: var(--theme-palette-color-6);
	border-radius: var(--theme-boxed-content-border-radius);
	box-shadow: var(--theme-boxed-content-box-shadow);
}
.hp-article--post .hero-section {
	margin-bottom: 40px;
}
.hp-article--post .hero-section .page-title {
	font-size: 32px;
	line-height: 1.2;
}
@media (max-width: 999.98px) {
	.hp-article--post .hero-section .page-title { font-size: 30px; }
}
@media (max-width: 689.98px) {
	.hp-article--post .hero-section .page-title { font-size: 25px; line-height: 1.1; }
}
.hp-featured-image {
	margin: 0 0 50px;
}
.hp-featured-image img {
	display: block;
	width: 100%;
	height: auto;
}
@media (max-width: 999.98px) {
	.hp-featured-image { margin-bottom: 30px; }
}

/* Meta line: items separated by a small circle (single post) */
.hp-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	margin: 20px 0 0;
	padding: 0;
	font-size: 14px;
	font-weight: 300;
	line-height: 1.3;
	color: var(--theme-text-color);
	--theme-link-initial-color: var(--theme-text-color);
}
.hp-meta > * {
	margin: 0;
}
.hp-meta > :not(:last-child) {
	margin-inline-end: 9px;
}
.hp-meta > :not(:last-child)::after {
	content: "●";
	font-size: 0.35em;
	margin-inline-start: 9px;
	position: relative;
	top: -0.1em;
	vertical-align: middle;
}
.hp-meta a {
	color: var(--theme-text-color);
}

/* Share box */
.hp-share {
	display: flex;
	flex-direction: column;
	margin-top: 50px;
}
.hp-share__title {
	margin-bottom: 15px;
	font-weight: 600;
}
.hp-share__icons {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
}
.hp-share__icons a {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 50px;
	padding: 10px 0;
	color: var(--theme-text-color);
}
.hp-share__icons svg {
	width: 15px;
	height: 15px;
	fill: currentColor;
}

/* Social media block below posts (markup is the converted ex-Kadence row; icon CSS ported from the old Additional CSS). */
.hp-social-media > * {
	margin-block: 0;
}
.hp-social-media ul.wp-block-social-links {
	margin: 0;
	padding-inline-start: 0 !important;
}
.hp-social-media .wp-block-social-links li {
	border-radius: 50%;
	width: 65px;
	height: 65px;
	display: flex;
	justify-content: center;
	align-items: center;
}
.hp-social-media .wp-block-social-links a {
	line-height: 1;
	padding: 30px;
}
.hp-social-media .wp-block-social-links a svg {
	fill: white;
}
