/**
 * Homepage — CoinGape-style dark layout.
 */

.sn-home {
	background: var(--snf-bg);
	color: var(--snf-text);
	padding: 28px 0 48px;
}

.sn-home__container {
	max-width: var(--snf-max);
}

/* Toggle pills */
.sn-home__toggle {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 24px;
}

.sn-home-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border: 1px solid var(--snf-border);
	border-radius: 999px;
	background: var(--snf-bg-alt);
	color: var(--snf-muted);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.sn-home-toggle.is-active {
	background: var(--snf-blue);
	border-color: var(--snf-blue);
	color: #fff;
}

.sn-home-toggle__icon {
	font-size: 16px;
	line-height: 1;
}

/* Panel */
.sn-home-panel {
	border: 1px solid var(--snf-border);
	background: var(--snf-bg-alt);
	border-radius: 4px;
	overflow: hidden;
}

/* Category tabs */
.sn-home-tabs {
	display: flex;
	flex-wrap: nowrap;
	gap: 0;
	border-bottom: 1px solid var(--snf-border);
	padding: 0 16px;
}

.sn-home-tab {
	flex-shrink: 0;
	padding: 18px 6px;
	border: 0;
	border-bottom: 2px solid transparent;
	background: transparent;
	color: var(--snf-muted);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	margin-bottom: -1px;
	transition: color 0.2s, border-color 0.2s;
}

.sn-home-tab:hover,
.sn-home-tab.is-active {
	color: var(--snf-blue);
	border-bottom-color: var(--snf-blue);
}

/* Main grid: hero + list */
.sn-home-main {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 380px;
	border-bottom: 1px solid var(--snf-border);
}

/* Hero carousel */
.sn-home-hero {
	position: relative;
	border-right: 1px solid var(--snf-border);
	overflow: hidden;
}

.sn-home-hero__track {
	display: flex;
	height: 100%;
	transition: transform 0.4s ease;
}

.sn-home-hero__slide {
	flex: 0 0 100%;
	min-width: 100%;
	height: 100%;
}

.sn-home-hero__link {
	display: block;
	position: relative;
	height: 100%;
	min-height: 380px;
	color: #fff;
	text-decoration: none;
}

.sn-home-hero__media {
	position: absolute;
	inset: 0;
}

.sn-home-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sn-home-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
}

.sn-home-hero__overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 24px;
	z-index: 1;
}

.sn-home-hero__badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: var(--snf-blue);
	margin-bottom: 8px;
}

.sn-home-hero__title {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.1rem, 2vw, 1.5rem);
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 8px;
	color: #fff;
}

.sn-home-hero__time {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.65);
}

.sn-home-hero__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 36px;
	height: 36px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sn-home-hero__nav--prev {
	left: 12px;
}

.sn-home-hero__nav--next {
	right: 12px;
}

/* Headline list */
.sn-home-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.sn-home-list__item {
	border-bottom: 1px solid var(--snf-border);
	flex: 1;
}

.sn-home-list__item:last-child {
	border-bottom: 0;
}

.sn-home-list__link {
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 100%;
	min-height: 95px;
	padding: 16px 20px;
	color: var(--snf-text);
	text-decoration: none;
	transition: background 0.2s;
}

.sn-home-list__link:hover {
	background: rgba(255, 255, 255, 0.03);
	color: var(--snf-blue);
}

.sn-home-list__title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.45;
	margin-bottom: 6px;
}

.sn-home-list__time {
	font-size: 12px;
	color: var(--snf-muted);
}

/* More news */
.sn-home-more {
	padding: 16px;
	text-align: center;
	border-bottom: 1px solid var(--snf-border);
}

.sn-home-more__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 24px;
	border: 1px solid var(--snf-border);
	border-radius: 4px;
	color: var(--snf-text);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: none;
	transition: border-color 0.2s, color 0.2s;
}

.sn-home-more__btn:hover {
	border-color: var(--snf-blue);
	color: var(--snf-blue);
}

/* Category showcase (above insights) */
.sn-home-showcase {
	padding-top: 44px;
}

.sn-home-showcase__grid {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: 0;
	border: 1px solid var(--snf-border);
	border-radius: 10px;
	overflow: hidden;
	background: var(--snf-bg-alt);
}

.sn-home-predictions,
.sn-home-market {
	padding: 22px 24px 20px;
	min-width: 0;
}

.sn-home-predictions {
	border-right: 1px solid var(--snf-border);
}

.sn-home-showcase__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.sn-home-showcase__title {
	margin: 0;
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
	font-size: clamp(1.15rem, 2vw, 1.65rem);
	font-weight: 700;
	line-height: 1.2;
	color: var(--snf-title);
}

.sn-home-showcase__more {
	flex-shrink: 0;
	font-size: 13px;
	font-weight: 500;
	color: var(--snf-text);
	text-decoration: none;
	white-space: nowrap;
}

.sn-home-showcase__more:hover {
	color: var(--snf-blue);
}

.sn-home-predictions__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border: 1px solid var(--snf-border);
	border-radius: 8px;
	overflow: hidden;
}

.sn-home-predictions__item {
	border-right: 1px dashed var(--snf-border);
	border-bottom: 1px dashed var(--snf-border);
}

.sn-home-predictions__item:nth-child(3n) {
	border-right: 0;
}

.sn-home-predictions__item:nth-last-child(-n+3) {
	border-bottom: 0;
}

.sn-home-predictions__link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	min-height: 72px;
	color: inherit;
	text-decoration: none;
	transition: background 0.2s;
}

.sn-home-predictions__link:hover {
	background: rgba(255, 255, 255, 0.03);
}

.sn-home-predictions__logo {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--snf-bg);
}

.sn-home-predictions__logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sn-home-predictions__logo-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #1f6fe5, #6438ce);
}

.sn-home-predictions__body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.sn-home-predictions__name {
	display: block;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--snf-blue);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sn-home-predictions__meta {
	font-size: 12px;
	color: var(--snf-text);
	white-space: nowrap;
}

.sn-home-predictions__banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 14px;
	padding: 16px 18px;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.25);
	border: 1px solid var(--snf-border);
}

.sn-home-predictions__banner-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.sn-home-predictions__banner-text strong {
	font-size: 15px;
	font-weight: 700;
	color: var(--snf-blue);
	line-height: 1.3;
}

.sn-home-predictions__banner-text span {
	font-size: 12px;
	color: var(--snf-muted);
}

.sn-home-predictions__banner-btn {
	flex-shrink: 0;
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--snf-blue);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: filter 0.2s;
}

.sn-home-predictions__banner-btn:hover {
	color: #fff;
	filter: brightness(1.08);
}

.sn-home-market__featured {
	margin-bottom: 14px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--snf-border);
}

.sn-home-market__featured-link {
	display: grid;
	grid-template-columns: minmax(0, 220px) 1fr;
	gap: 16px;
	align-items: start;
	color: inherit;
	text-decoration: none;
}

.sn-home-market__featured-media {
	display: block;
	border-radius: 6px;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: var(--snf-bg);
}

.sn-home-market__featured-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sn-home-market__featured-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #331111, #8f1818);
}

.sn-home-market__featured-title {
	margin: 0 0 8px;
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
	font-size: clamp(1.1rem, 2.2vw, 1.75rem);
	font-weight: 700;
	line-height: 1.25;
	color: var(--snf-title);
	transition: color 0.2s;
}

.sn-home-market__featured-time {
	font-size: 13px;
	font-weight: 600;
	color: var(--snf-blue);
}

.sn-home-market__featured-link:hover .sn-home-market__featured-title {
	color: var(--snf-blue);
}

.sn-home-market__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 20px;
}

.sn-home-market__item-link {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: inherit;
	text-decoration: none;
}

.sn-home-market__item-thumb {
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	border-radius: 4px;
	overflow: hidden;
	background: var(--snf-bg);
}

.sn-home-market__item-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sn-home-market__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #24303c, #10151c);
}

.sn-home-market__item-body {
	min-width: 0;
}

.sn-home-market__item-title {
	display: -webkit-box;
	margin-bottom: 4px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--snf-title);
	line-clamp: 2;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.2s;
}

.sn-home-market__item-time {
	font-size: 12px;
	color: var(--snf-muted);
}

.sn-home-market__item-link:hover .sn-home-market__item-title {
	color: var(--snf-blue);
}

/* Insights blog grid (above More News) */
.sn-home-insights {
	padding-top: 48px;
	margin-bottom: 8px;
}

.sn-home-insights__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 28px;
}

.sn-home-insights__heading {
	margin: 0;
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
	font-size: clamp(1.35rem, 2.5vw, 1.75rem);
	font-weight: 700;
	line-height: 1.25;
	color: var(--snf-title);
}

.sn-home-insights__all {
	flex-shrink: 0;
	margin-top: 6px;
	font-size: 14px;
	font-weight: 500;
	color: var(--snf-text);
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s;
}

.sn-home-insights__all:hover {
	color: var(--snf-blue);
}

.sn-home-insights__link {
	display: block;
	color: inherit;
}

.sn-home-insights__media {
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 14px;
	background: var(--snf-bg-alt);
	aspect-ratio: 16 / 10;
}

.sn-home-insights__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}

.sn-home-insights__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--snf-gradient-from), var(--snf-gradient-to));
}

.sn-home-insights__link:hover .sn-home-insights__img {
	transform: scale(1.03);
}

.sn-home-insights__title {
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--snf-title);
	transition: color 0.2s;
	display: -webkit-box;
	line-clamp: 2;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.sn-home-insights__link:hover .sn-home-insights__title {
	color: var(--snf-blue);
}

.sn-home-insights__time {
	display: block;
	font-size: 13px;
	color: var(--snf-muted);
}

/* Full-width More News grid (above footer) */
.sn-home-more-news {
	padding-top: 40px;
}

.sn-home-more-news__heading {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 0 0 28px;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}

.sn-home-more-news__heading::before,
.sn-home-more-news__heading::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--snf-border);
}

.sn-home-more-news__heading-text {
	flex-shrink: 0;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: var(--snf-title);
	text-transform: uppercase;
}

.sn-home-more-news__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0 32px;
}

.sn-home-more-news__col {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.sn-home-more-news__item {
	padding: 14px 0;
	border-bottom: 1px solid var(--snf-border);
}

.sn-home-more-news__item:last-child {
	border-bottom: 0;
}

.sn-home-more-news__link {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	color: inherit;
	text-decoration: none;
}

.sn-home-more-news__thumb {
	flex-shrink: 0;
	width: 72px;
	height: 72px;
	border-radius: 4px;
	overflow: hidden;
	background: var(--snf-bg-alt);
}

.sn-home-more-news__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sn-home-more-news__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--snf-gradient-from), var(--snf-gradient-to));
}

.sn-home-more-news__body {
	min-width: 0;
	flex: 1;
}

.sn-home-more-news__title {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.45;
	color: var(--snf-title);
	transition: color 0.2s;
}

.sn-home-more-news__link:hover .sn-home-more-news__title {
	color: var(--snf-blue);
}

.sn-home-more-news__time {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: var(--snf-blue);
}

/* Featured bar */
.sn-home-featured-bar {
	border-top: 0;
}

.sn-home-featured-bar__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 20px;
	color: var(--snf-text);
	text-decoration: none;
	transition: background 0.2s;
}

.sn-home-featured-bar__inner:hover {
	background: rgba(255, 255, 255, 0.03);
}

.sn-home-featured-bar__thumb {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	border-radius: 4px;
	overflow: hidden;
	background: var(--snf-bg);
}

.sn-home-featured-bar__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sn-home-featured-bar__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 13px;
	line-height: 1.4;
}

.sn-home-featured-bar__text strong {
	font-weight: 600;
}

.sn-home-featured-bar__label {
	font-size: 11px;
	color: var(--snf-muted);
}

/* Sidebar */
.sn-home-sidebar {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.sn-home-sidebar__heading {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 22px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 16px;
}

/* Research grid */
.sn-home-research__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.sn-home-research__card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--snf-border);
	background: var(--snf-bg-alt);
	border-radius: 4px;
	overflow: hidden;
	text-decoration: none;
	color: var(--snf-text);
	transition: border-color 0.2s;
}

.sn-home-research__card:hover {
	border-color: var(--snf-blue);
}

.sn-home-research__cover {
	aspect-ratio: 3 / 4;
	background: #1a1a1a;
	overflow: hidden;
}

.sn-home-research__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sn-home-research__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #1a2530, #0d1520);
}

.sn-home-research__title {
	padding: 10px 12px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
}

.sn-home-research__cta {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 24px 16px;
	border-radius: 4px;
	background: linear-gradient(135deg, #1c5a8a 0%, #4a3d8f 100%);
	text-decoration: none;
	color: #fff;
	text-align: center;
	min-height: 140px;
}

.sn-home-research__cta-icon {
	font-size: 28px;
}

.sn-home-research__cta-text {
	font-size: 14px;
	font-weight: 600;
}

.sn-home-research__cta-btn {
	padding: 8px 20px;
	border-radius: 4px;
	background: #fff;
	color: #1a1a1a;
	font-size: 12px;
	font-weight: 700;
}

/* Press releases */
.sn-home-press__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.sn-home-press__head .sn-home-sidebar__heading {
	margin-bottom: 0;
}

.sn-home-press__all {
	font-size: 12px;
	color: var(--snf-muted);
	text-decoration: none;
	white-space: nowrap;
}

.sn-home-press__all:hover {
	color: var(--snf-blue);
}

.sn-home-press__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.sn-home-press__item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--snf-border);
	text-decoration: none;
	color: var(--snf-text);
}

.sn-home-press__item:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.sn-home-press__item:hover .sn-home-press__title {
	color: var(--snf-blue);
}

.sn-home-press__thumb {
	flex-shrink: 0;
	width: 72px;
	height: 72px;
	border-radius: 4px;
	overflow: hidden;
	background: var(--snf-bg-alt);
}

.sn-home-press__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sn-home-press__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: #222;
}

.sn-home-press__title {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.45;
	transition: color 0.2s;
}

/* Sidebar sponsors */
.sn-home-sponsors__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 16px;
	padding: 16px;
	border-radius: 8px;
	background: #f2f4f6;
}

.sn-home-sponsors__item {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	text-decoration: none;
}

.sn-home-sponsors__logo {
	display: block;
	max-width: 100%;
}

.sn-home-sponsors__logo img {
	display: block;
	max-width: 100%;
	max-height: 34px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.sn-home-empty {
	font-size: 13px;
	color: var(--snf-muted);
	margin: 0;
	padding: 12px;
	border: 1px dashed var(--snf-border);
	border-radius: 4px;
}

.sn-home.is-loading [data-sn-list],
.sn-home.is-loading [data-sn-hero] {
	opacity: 0.5;
	pointer-events: none;
}

/* Responsive */
@media (max-width: 991px) {
	.sn-home-showcase__grid {
		grid-template-columns: 1fr;
	}

	.sn-home-predictions {
		border-right: 0;
		border-bottom: 1px solid var(--snf-border);
	}

	.sn-home-market__featured-link {
		grid-template-columns: 1fr;
	}

	.sn-home-market__list {
		grid-template-columns: 1fr;
	}

	.sn-home-predictions__banner {
		flex-direction: column;
		align-items: flex-start;
	}

	.sn-home-main {
		grid-template-columns: 1fr;
	}

	.sn-home-insights__head {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.sn-home-insights__all {
		margin-top: 0;
	}

	.sn-home-more-news__grid {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.sn-home-hero {
		border-right: 0;
		border-bottom: 1px solid var(--snf-border);
	}

	.sn-home-hero__link {
		min-height: 280px;
	}
}

@media (max-width: 575px) {
	.sn-home-predictions__grid {
		grid-template-columns: 1fr;
	}

	.sn-home-predictions__item {
		border-right: 0;
	}

	.sn-home-predictions__item:last-child {
		border-bottom: 0;
	}

	.sn-home-research__grid {
		grid-template-columns: 1fr;
	}
}

/* Full-width main on homepage */
.wp-block-template-part:has(.sn-header) + main .sn-home,
main:has(.sn-home) {
	max-width: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

main:has(.sn-home) {
	background: var(--snf-bg);
}
