/* Hirenews Dashboard v3 */

.hn-v3-main {
	width: 100%;
}

.hn-v3-container {
	width: min(1180px, calc(100% - 40px));
	margin-inline: auto;
	padding: 28px 0 70px;
}

.hn-v3-dashboard {
	width: 100%;
}

.hn-v3-intro {
	padding: 8px 0 30px;
}

.hn-v3-eyebrow {
	display: block;
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 1.5px;
	opacity: .55;
}

.hn-v3-intro h1 {
	margin: 0;
	font-size: clamp(30px, 4vw, 48px);
	line-height: 1.08;
	letter-spacing: -0.025em;
}

.hn-v3-intro p {
	max-width: 760px;
	margin: 12px 0 0;
	font-size: 16px;
	line-height: 1.6;
	opacity: .68;
}

.hn-v3-trending,
.hn-v3-section,
.hn-v3-categories {
	margin-top: 22px;
	padding: 24px 0;
	border-top: 1px solid rgba(20, 30, 45, .12);
}

.hn-v3-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 15px;
}

.hn-v3-section-head h2 {
	margin: 0;
	font-size: 21px;
	line-height: 1.2;
	letter-spacing: -.01em;
}

.hn-v3-count {
	display: block;
	margin-top: 5px;
	font-size: 12px;
	line-height: 1.3;
	opacity: .52;
}

.hn-v3-view-all {
	flex: 0 0 auto;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.hn-v3-topics {
	display: flex;
	gap: 9px;
	overflow-x: auto;
	padding: 3px 0 7px;
	scrollbar-width: none;
}

.hn-v3-topics::-webkit-scrollbar {
	display: none;
}

.hn-v3-topic {
	flex: 0 0 auto;
	padding: 9px 15px;
	border: 1px solid rgba(20, 30, 45, .14);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 650;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}

.hn-v3-slider-wrap {
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr) 36px;
	align-items: stretch;
	gap: 8px;
}

.hn-v3-slider {
	display: flex;
	min-width: 0;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-inline: contain;
}

.hn-v3-slider::-webkit-scrollbar {
	display: none;
}

.hn-v3-item {
	flex: 0 0 25%;
	min-width: 25%;
	scroll-snap-align: start;
	border-right: 1px solid rgba(20, 30, 45, .10);
}

.hn-v3-item-link {
	display: block;
	padding: 8px 20px 12px;
	text-decoration: none;
}

.hn-v3-thumb {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	margin-bottom: 11px;
	border-radius: 8px;
	background: rgba(20, 30, 45, .06);
}

.hn-v3-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.hn-v3-number {
	display: block;
	margin-bottom: 3px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .02em;
	opacity: .38;
}

.hn-v3-item-body {
	display: block;
	min-width: 0;
}

.hn-v3-item-title {
	display: -webkit-box;
	overflow: hidden;
	color: #17283b;
	font-size: 15px;
	line-height: 1.42;
	font-weight: 700;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.hn-v3-item-meta {
	display: block;
	margin-top: 7px;
	font-size: 11px;
	line-height: 1.2;
	opacity: .5;
}

.hn-v3-arrow {
	align-self: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid rgba(20, 30, 45, .15);
	border-radius: 50%;
	background: transparent;
	font-size: 25px;
	line-height: 1;
	cursor: pointer;
}

.hn-v3-arrow:hover {
	background: rgba(20, 30, 45, .05);
}

.hn-v3-category-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border-top: 1px solid rgba(20, 30, 45, .11);
}

.hn-v3-category-grid a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 12px;
	border-right: 1px solid rgba(20, 30, 45, .11);
	border-bottom: 1px solid rgba(20, 30, 45, .11);
	font-size: 14px;
	font-weight: 650;
	text-decoration: none;
}

.hn-v3-category-grid a span:last-child {
	font-size: 11px;
	font-weight: 600;
	opacity: .5;
}

@media (max-width: 900px) {
	.hn-v3-container {
		width: min(100% - 30px, 760px);
	}

	.hn-v3-item {
		flex-basis: 50%;
		min-width: 50%;
	}

	.hn-v3-category-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.hn-v3-container {
		width: calc(100% - 28px);
	}

	.hn-v3-section {
		padding: 28px 0;
	}

	.hn-v3-section-head {
		margin-bottom: 16px;
	}

	.hn-v3-section-head h2 {
		max-width: 72%;
		font-size: 24px;
		line-height: 1.18;
	}

	.hn-v3-count {
		font-size: 14px;
	}

	.hn-v3-view-all {
		font-size: 16px;
		white-space: nowrap;
	}

	.hn-v3-topics {
		gap: 9px;
		overflow-x: auto;
		padding-bottom: 4px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.hn-v3-topics::-webkit-scrollbar {
		display: none;
	}

	.hn-v3-topic {
		flex: 0 0 auto;
		padding: 9px 15px;
		font-size: 14px;
	}

	.hn-v3-slider-wrap {
		margin: 0 -14px;
	}

	.hn-v3-slider {
		gap: 0;
		padding: 0 14px 6px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.hn-v3-slider::-webkit-scrollbar {
		display: none;
	}

	.hn-v3-item {
		flex: 0 0 84%;
		min-width: 84%;
		border-right: 1px solid rgba(20, 30, 45, .10);
	}

	.hn-v3-item-link {
		padding: 0 14px 8px 0;
	}

	.hn-v3-thumb {
		width: 100%;
		aspect-ratio: 16 / 9;
		margin-bottom: 9px;
		border-radius: 7px;
	}

	.hn-v3-item-title {
		font-size: 17px;
		line-height: 1.34;
		-webkit-line-clamp: 3;
	}

	.hn-v3-number {
		margin-bottom: 3px;
		font-size: 10px;
	}

	.hn-v3-item-meta {
		margin-top: 6px;
		font-size: 11px;
	}

	.hn-v3-arrow {
		width: 36px;
		height: 36px;
	}

	.hn-v3-arrow.prev {
		left: 2px;
	}

	.hn-v3-arrow.next {
		right: 2px;
	}
}

/* Keep the custom homepage visually independent from Blocksy archive-title spacing. */
body.home .hn-v3-main,
body.blog .hn-v3-main {
	min-height: 1px;
}

/* v14: desktop slider uses the real rendered posts only; no cloned slides. */
@media (min-width: 601px) {
	.hn-v3-slider {
		display: flex;
		flex-wrap: nowrap;
		overflow-x: auto;
	}

	.hn-v3-item {
		flex: 0 0 25%;
		min-width: 25%;
	}
}


/* v15: mobile-only refinement for the Latest section heading. */
.hn-v3-heading-mobile {
	display: none;
}

@media (max-width: 600px) {
	.hn-v3-latest-heading {
		font-size: 25px;
		line-height: 1.15;
		letter-spacing: -0.02em;
		max-width: 100%;
	}

	.hn-v3-latest-heading .hn-v3-heading-full {
		display: none;
	}

	.hn-v3-latest-heading .hn-v3-heading-mobile {
		display: inline;
	}

	.hn-v3-section-head {
		align-items: flex-start;
		gap: 12px;
	}

	.hn-v3-section-head > div {
		min-width: 0;
	}

	.hn-v3-view-all {
		flex: 0 0 auto;
		margin-top: 2px;
	}
}

/* v16: mobile-only Latest heading refinement. */
@media (max-width: 600px) {
	.hn-v3-latest-heading {
		font-size: 26px;
		line-height: 1.15;
		max-width: 100%;
	}
}
