/**
 * Publications / Resources — reference layout (grey featured tiles, cyan accents, archive pipes).
 */

.hfh-pub-page {
	padding-bottom: 3.5rem;
	background: #fff;
}

.hfh-pub-body {
	max-width: 960px;
	margin-left: auto;
	margin-right: auto;
}

/* Narrower centered column for all page blocks inside the root container */
.hfh-pub-page.hfh-pub-body > .e-con-inner {
	max-width: 880px;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
}

.hfh-pub-body,
.hfh-pub-body .hfh-pub-bc,
.hfh-pub-body .hfh-pub-title,
.hfh-pub-body .hfh-pub-title .elementor-heading-title {
	text-transform: lowercase;
}

.hfh-pub-header {
	margin-bottom: 2.5rem;
	padding-bottom: 1.35rem;
	border-bottom: 1px solid rgba(26, 46, 50, 0.12);
}

.hfh-pub-bc {
	font-size: 0.8125rem;
	line-height: 1.5;
	color: #5a6d72;
	margin-bottom: 1rem;
}

.hfh-pub-bc a {
	color: #0099cc;
	text-decoration: none;
	font-weight: 700;
}

.hfh-pub-bc a:hover,
.hfh-pub-bc a:focus {
	text-decoration: underline;
}

.hfh-pub-bc-sep::before {
	content: '/';
	display: inline;
	margin: 0 0.35rem;
	color: rgba(26, 46, 50, 0.35);
	font-weight: 400;
}

.hfh-pub-bc-current {
	color: #5a6d72;
	font-weight: 700;
}

.hfh-pub-title .elementor-heading-title {
	font-size: clamp(1.85rem, 4.2vw, 2.5rem);
	font-weight: 700;
	line-height: 1.15;
	margin: 0;
	color: #1a2e32;
	letter-spacing: -0.02em;
}

/* Section heading + short cyan rule (class on Elementor widget wrapper) */
.hfh-pub-section-title {
	margin-bottom: 0 !important; /* override Elementor widget default spacing */
}

.hfh-pub-section-title.elementor-widget:not(:last-child) {
	margin-bottom: 0 !important; /* Elementor sets 20px globally */
}

.hfh-pub-section-title .elementor-heading-title {
	font-size: clamp(1.2rem, 2.6vw, 1.45rem);
	font-weight: 700;
	margin: 0 0 0.45rem;
	padding-bottom: 0.65rem;
	line-height: 1.25;
	color: #1a2e32;
	letter-spacing: -0.01em;
	position: relative;
	border-bottom: none;
}

.hfh-pub-section-title .elementor-heading-title::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 2.75rem;
	height: 2px;
	background: #0099cc;
}

.hfh-pub-section-title-text {
	display: inline-block;
}

.hfh-pub-section-title-muted {
	color: #1a2e32;
	font-weight: 700;
}

/* Featured row: two columns centered on the page */
.hfh-pub-featured-row {
	align-items: stretch;
	margin-top: 0 !important;
}

.hfh-pub-section-title + .hfh-pub-featured-row {
	margin-top: 0 !important;
}

.hfh-pub-featured-row > .e-con-inner {
	align-items: stretch;
	justify-content: center;
	margin-top: 0;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	max-width: 880px;
	column-gap: 1.25rem;
	row-gap: 1.25rem;
}

.hfh-pub-featured-row:not(.hfh-pub-featured-row--wallpapers) .hfh-pub-featured-cell {
	box-sizing: border-box;
	flex: 1 1 280px;
	max-width: 420px;
	width: auto !important;
}

@media (min-width: 640px) {
	.hfh-pub-featured-row:not(.hfh-pub-featured-row--wallpapers) .hfh-pub-featured-cell {
		flex: 1 1 calc(50% - 0.625rem);
		max-width: calc(50% - 0.625rem);
		min-width: 260px;
	}
}

@media (max-width: 639px) {
	.hfh-pub-featured-row .hfh-pub-featured-cell {
		width: 100% !important;
		max-width: 100% !important;
		flex: 1 1 100%;
		min-width: 0;
	}
}

/* Featured tile inner container: spacing comes from Elementor; keep box model only */
.hfh-pub-featured-card {
	box-sizing: border-box;
}

.hfh-pub-featured-row--wallpapers > .e-con-inner {
	max-width: 900px;
}

.hfh-pub-featured-row--wallpapers .hfh-pub-wall-tile {
	min-width: min(100%, 200px);
	flex-shrink: 1;
}

@media (min-width: 700px) {
	.hfh-pub-featured-row--wallpapers .hfh-pub-wall-tile {
		flex: 1 1 calc(33.333% - 14px);
		max-width: calc(33.333% - 14px);
	}
}

/* Wallpaper tiles */
.hfh-pub-wall-card {
	box-sizing: border-box;
	background: #eef2f5;
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.hfh-pub-wall-thumb {
	aspect-ratio: 16 / 10;
	background: linear-gradient(145deg, #e8eef4 0%, #cfdce8 45%, #b8c9d6 100%);
	overflow: hidden;
	flex-shrink: 0;
}

.hfh-pub-wall-thumb-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hfh-pub-wall-thumb-ph {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 140px;
}

.hfh-pub-wall-body {
	padding: 1.25rem 1.15rem 1.5rem;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 0.85rem;
}

.hfh-pub-wall-title {
	margin: 0;
}

.hfh-pub-card-btn--wall {
	margin-top: 0;
}

/* Archive: Icon List (Elementor) + legacy link markup */
.hfh-pub-archive {
	margin-top: 0.25rem;
	margin-bottom: 0;
}

.hfh-pub-archive .elementor-icon-list-items.elementor-inline-items {
	justify-content: center;
	flex-wrap: wrap;
}

.hfh-pub-archive .elementor-icon-list-text {
	color: #0099cc;
	font-weight: 700;
	text-transform: lowercase;
}

.hfh-pub-archive .elementor-icon-list-icon i {
	color: #0099cc;
}

.hfh-pub-archive-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: #0099cc;
	text-decoration: none;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.4;
	text-transform: lowercase;
}

.hfh-pub-archive-link:hover,
.hfh-pub-archive-link:focus {
	text-decoration: underline;
}

.hfh-pub-archive-dl-ico {
	display: inline-flex;
	color: #0099cc;
	flex-shrink: 0;
}

.hfh-pub-archive-dl-ico .hfh-pub-dl-svg {
	display: block;
	width: 14px;
	height: 14px;
}

.hfh-pub-archive-pipe {
	display: inline-block;
	width: 1px;
	height: 1em;
	background: #d8dfe3;
	margin: 0 0.65rem;
	vertical-align: middle;
	align-self: center;
}

.hfh-pub-archive--4x2 .hfh-pub-archive-r1,
.hfh-pub-archive--4x2 .hfh-pub-archive-r2 {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	row-gap: 0.5rem;
}

.hfh-pub-archive--4x2 .hfh-pub-archive-r1 {
	margin-bottom: 0.45rem;
}

.hfh-pub-archive--row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	row-gap: 0.5rem;
}

@media (min-width: 900px) {
	.hfh-pub-archive--row {
		flex-wrap: nowrap;
		justify-content: flex-start;
	}
}

/* Publications page (ID 4559) hard-stop spacing overrides:
   Keep section title + cyan rule flush to the top of each frame. */
.elementor-4559 .elementor-element.elementor-element-6ca5e9c,
.elementor-4559 .elementor-element.elementor-element-a6be6dc,
.elementor-4559 .elementor-element.elementor-element-dba50b1,
.elementor-4559 .elementor-element.elementor-element-61039a3 {
	margin-bottom: 0 !important;
}

.elementor-4559 .elementor-element.elementor-element-6ca5e9c .elementor-heading-title,
.elementor-4559 .elementor-element.elementor-element-a6be6dc .elementor-heading-title,
.elementor-4559 .elementor-element.elementor-element-dba50b1 .elementor-heading-title,
.elementor-4559 .elementor-element.elementor-element-61039a3 .elementor-heading-title {
	margin-bottom: 0.3rem !important;
	padding-bottom: 0.45rem !important;
}

.elementor-4559 .elementor-element.elementor-element-ba311a6,
.elementor-4559 .elementor-element.elementor-element-0ec4b07,
.elementor-4559 .elementor-element.elementor-element-61e9f69,
.elementor-4559 .elementor-element.elementor-element-7def4ec {
	margin-top: 0 !important;
	padding-top: 0 !important;
}
