/*
Theme Name: CryptoMag
Theme URI: http://localhost/cryptomag
Author: CryptoMag
Description: Crypto news homepage theme for CryptoMag — matches the me2crypto HTML template.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cryptomag
*/

/* Custom styles extracted from me_2_crypto_homepage_template.html */
html {
	scroll-behavior: smooth;
}

body {
	background: #f4f5f7;
	color: #111214;
}

.headline {
	letter-spacing: -0.03em;
}

.display-title {
	letter-spacing: -0.025em;
}

.hide-scrollbar::-webkit-scrollbar {
	display: none;
}

.hide-scrollbar {
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.glass {
	background: rgba(255, 255, 255, 0.72);
	backdrop-filter: blur(18px);
}

.image-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.56));
	pointer-events: none;
}

.ticker-track {
	display: flex;
	width: max-content;
	animation: ticker 34s linear infinite;
	will-change: transform;
}

.cryptomag-ticker .ticker-track {
	display: flex;
	width: max-content;
	animation: ticker 34s linear infinite;
	will-change: transform;
}

.cryptomag-ticker:hover .ticker-track,
.cryptomag-ticker:focus-within .ticker-track {
	animation-play-state: paused;
}

.cryptomag-ticker__row--clone {
	pointer-events: none;
}

.cryptomag-ticker__row--clone .cryptomag-ticker-item {
	pointer-events: auto;
}

.cryptomag-ticker-item {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
	flex-shrink: 0;
	cursor: pointer;
	transition: color 0.15s ease, opacity 0.15s ease;
}

.cryptomag-ticker-item b {
	font-weight: 700;
}

.cryptomag-ticker-item:hover,
.cryptomag-ticker-item:focus-visible {
	color: #ff9700;
	opacity: 1;
}

.cryptomag-ticker-item:focus-visible {
	outline: 2px solid #ff9700;
	outline-offset: 2px;
	border-radius: 0.25rem;
}

.cryptomag-ticker-item__price {
	color: rgba(17, 18, 20, 0.6);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.cryptomag-home-ad__code,
.cryptomag-home-ad .cryptomag-ad-widget {
	display: block;
	width: 100%;
}

.cryptomag-home-ad__code iframe,
.cryptomag-home-ad .cryptomag-ad-widget iframe {
	max-width: 100%;
}

.cryptomag-home-ad__placeholder {
	min-height: 240px;
	background: linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
}

.cryptomag-ticker-item:hover .cryptomag-ticker-item__price,
.cryptomag-ticker-item:focus-visible .cryptomag-ticker-item__price {
	color: inherit;
}

@keyframes ticker {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

/* WordPress menu: primary nav inside dark pill */
.cryptomag-nav-menu {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.cryptomag-nav-menu li {
	margin: 0;
}

.cryptomag-nav-menu a {
	display: block;
	border-radius: 9999px;
	padding: 0.5rem 1rem;
	transition: background-color 0.15s;
}

.cryptomag-nav-menu a:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

.cryptomag-nav-menu .current-menu-item > a,
.cryptomag-nav-menu .current_page_item > a,
.cryptomag-nav-menu .current-menu-parent > a,
.cryptomag-nav-menu .current-menu-ancestor > a,
.cryptomag-nav-menu .current-page-ancestor > a {
	background-color: #23FF6B;
	color: #111214;
}

/* Mobile menu */
#mobile-menu[hidden] {
	display: none !important;
}

#mobile-menu .cryptomag-nav-menu {
	flex-direction: column;
	align-items: stretch;
}

#mobile-menu .cryptomag-nav-menu a {
	border-radius: 0.75rem;
}

:root {
	--cryptomag-ink: #111214;
	--cryptomag-paper: #f4f5f7;
	--cryptomag-panel: #ffffff;
	--cryptomag-border: rgba(17, 18, 20, 0.12);
	--cryptomag-accent: #23FF6B;
	--cryptomag-zeroa-brand: #138085;
	--cryptomag-zeroa-logo-filter: brightness(0) saturate(100%) invert(42%) sepia(34%) saturate(769%) hue-rotate(134deg) brightness(97%) contrast(93%);
}

.cryptomag-calc__powered-by-logo,
.cryptomag-article-market__powered-by-logo,
.cryptomag-markets-page__credit-logo,
.cryptomag-markets-page__platform-logo {
	filter: var(--cryptomag-zeroa-logo-filter);
	mix-blend-mode: normal;
	opacity: 1;
}

.cryptomag-markets-page__credit-logo-link:hover .cryptomag-markets-page__credit-logo {
	filter: var(--cryptomag-zeroa-logo-filter) brightness(1.12);
}

.font-display,
.cryptomag-section-title {
	font-family: Anton, sans-serif;
}

.cryptomag-section-title {
	font-size: clamp(3.75rem, 9vw, 6rem);
	line-height: 0.9;
	letter-spacing: -0.03em;
	text-transform: uppercase;
}

@media (min-width: 1024px) {
	.cryptomag-section-title {
		font-size: clamp(3.25rem, 5.5vw, 5rem);
	}
}

.cryptomag-site-header {
	background-color: rgba(244, 245, 247, 0.85);
	-webkit-backdrop-filter: blur(24px);
	backdrop-filter: blur(24px);
}

.cryptomag-brand-link {
	flex-shrink: 0;
	min-width: 0;
	text-decoration: none;
	position: relative;
	z-index: 2;
	cursor: pointer;
}

.cryptomag-footer-brand .cryptomag-logo {
	height: clamp(2.85rem, 6vw, 3.85rem);
}

@media (min-width: 1024px) {
	.cryptomag-footer-brand .cryptomag-logo {
		height: clamp(3.5rem, 7vw, 4.75rem);
	}
}

/* Footer is dark in light mode / light in dark mode — use opposite logo files from header */
@media (prefers-color-scheme: light) {
	.cryptomag-site-footer .cryptomag-footer-brand .cryptomag-logo--light {
		display: none !important;
	}

	.cryptomag-site-footer .cryptomag-footer-brand .cryptomag-logo--dark {
		display: block !important;
	}
}

@media (prefers-color-scheme: dark) {
	.cryptomag-site-footer .cryptomag-footer-brand .cryptomag-logo--dark {
		display: none !important;
	}

	.cryptomag-site-footer .cryptomag-footer-brand .cryptomag-logo--light {
		display: block !important;
	}
}

.cryptomag-brand-logo {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	overflow: visible;
	line-height: 0;
}

.cryptomag-logo {
	display: block;
	height: clamp(2.85rem, 7.5vw, 80px);
	width: auto;
	max-width: none;
	object-fit: contain;
}

@media (min-width: 1024px) {
	.cryptomag-site-header .cryptomag-logo {
		height: clamp(2.5rem, 5.5vw, 68px);
	}
}

@media (max-width: 767px) {
	.cryptomag-site-header .cryptomag-logo {
		height: 2.75rem;
	}
}

.cryptomag-logo--dark {
	display: none;
}

@media (prefers-color-scheme: dark) {
	.cryptomag-logo--light {
		display: none;
	}

	.cryptomag-logo--dark {
		display: block;
	}

	.cryptomag-brand-link .dark-mode-tagline,
	.cryptomag-brand-link .site-header-brand .text-black\/55 {
		color: rgba(244, 245, 247, 0.72) !important;
	}
}

.cryptomag-primary-nav {
	background: transparent;
}

#mobile-menu .cryptomag-primary-nav .cryptomag-nav-menu a {
	color: var(--cryptomag-ink);
}

#mobile-menu .cryptomag-primary-nav .cryptomag-nav-menu a:hover {
	background: rgba(17, 18, 20, 0.08);
}

/* Desktop header nav — frosted glass pill behind links */
.cryptomag-nav-pill {
	position: relative;
	z-index: 0;
	isolation: isolate;
	border-radius: 9999px;
	overflow: hidden;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
}

.cryptomag-nav-pill::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	background: rgba(255, 255, 255, 0.55);
	-webkit-backdrop-filter: blur(32px) saturate(1.85);
	backdrop-filter: blur(32px) saturate(1.85);
	border: 1px solid rgba(17, 18, 20, 0.12);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
	pointer-events: none;
}

.cryptomag-nav-pill::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	border-radius: inherit;
	background: linear-gradient(
		180deg,
		rgba(255, 255, 255, 0.16) 0%,
		rgba(255, 255, 255, 0.04) 38%,
		rgba(0, 0, 0, 0.06) 100%
	);
	pointer-events: none;
}

.cryptomag-nav-pill .cryptomag-nav-menu,
.cryptomag-nav-pill .cryptomag-nav-divider,
.cryptomag-nav-pill .cryptomag-lang-label {
	position: relative;
	z-index: 1;
}

.cryptomag-nav-pill .cryptomag-nav-menu a {
	color: #111214;
}

.cryptomag-nav-pill .cryptomag-nav-menu a:hover {
	background-color: rgba(17, 18, 20, 0.08);
}

.cryptomag-nav-pill .cryptomag-nav-menu .current-menu-item > a,
.cryptomag-nav-pill .cryptomag-nav-menu .current_page_item > a,
.cryptomag-nav-pill .cryptomag-nav-menu .current-menu-parent > a,
.cryptomag-nav-pill .cryptomag-nav-menu .current-menu-ancestor > a,
.cryptomag-nav-pill .cryptomag-nav-menu .current-page-ancestor > a {
	background-color: var(--cryptomag-accent);
	color: #111214;
}

.cryptomag-nav-pill .cryptomag-nav-divider {
	background-color: rgba(17, 18, 20, 0.15);
}

.cryptomag-nav-pill .cryptomag-lang-label {
	color: #111214;
	border-color: rgba(17, 18, 20, 0.15);
	background: rgba(17, 18, 20, 0.06);
}

/* Single post — article body typography */
.cryptomag-single-content {
	font-size: 1.125rem;
	line-height: 1.8;
	color: rgba(17, 18, 20, 0.88);
}

.cryptomag-single-content > *:first-child {
	margin-top: 0;
}

.cryptomag-single-content > *:last-child {
	margin-bottom: 0;
}

.cryptomag-single-content p,
.cryptomag-single-content .wp-block-paragraph {
	margin: 0 0 1.35rem;
}

.cryptomag-single-content .cryptomag-lead,
.cryptomag-single-content > p:first-of-type {
	font-size: 1.25rem;
	line-height: 1.75;
}

.cryptomag-single-content h2,
.cryptomag-single-content .wp-block-heading {
	margin: 2.5rem 0 1rem;
	font-size: clamp(1.5rem, 3vw, 1.875rem);
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: var(--cryptomag-ink);
}

.cryptomag-single-content h3 {
	margin: 2rem 0 0.85rem;
	font-size: 1.375rem;
	font-weight: 800;
	line-height: 1.3;
	color: var(--cryptomag-ink);
}

.cryptomag-single-content h4 {
	margin: 1.5rem 0 0.75rem;
	font-size: 1.125rem;
	font-weight: 800;
	line-height: 1.35;
	color: var(--cryptomag-ink);
}

.cryptomag-single-content strong,
.cryptomag-single-content b {
	font-weight: 800;
	color: var(--cryptomag-ink);
}

.cryptomag-single-content a {
	color: var(--cryptomag-ink);
	text-decoration: underline;
	text-decoration-color: var(--cryptomag-accent);
	text-decoration-thickness: 0.14em;
	text-underline-offset: 0.18em;
}

.cryptomag-single-content a:hover {
	filter: brightness(0.92);
}

.cryptomag-single-content ul,
.cryptomag-single-content ol,
.cryptomag-single-content .wp-block-list {
	margin: 0 0 1.5rem;
	padding-left: 1.5rem;
}

.cryptomag-single-content ul,
.cryptomag-single-content .wp-block-list {
	list-style: disc;
}

.cryptomag-single-content ol {
	list-style: decimal;
}

.cryptomag-single-content li {
	margin-bottom: 0.5rem;
	padding-left: 0.25rem;
}

.cryptomag-single-content li::marker {
	color: rgba(17, 18, 20, 0.55);
}

.cryptomag-single-content blockquote,
.cryptomag-single-content .wp-block-quote {
	margin: 2rem 0;
	padding: 1.25rem 1.5rem;
	border-left: 4px solid var(--cryptomag-accent);
	background: rgba(17, 18, 20, 0.04);
	border-radius: 0 1rem 1rem 0;
	font-style: italic;
}

.cryptomag-single-content img,
.cryptomag-single-content .wp-block-image img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 2rem auto;
	border-radius: 1rem;
}

.cryptomag-single-content hr,
.cryptomag-single-content .wp-block-separator {
	margin: 2.5rem 0;
	border: 0;
	border-top: 1px solid var(--cryptomag-border);
}

.cryptomag-single-category {
	color: var(--cryptomag-ink);
	text-decoration: none;
}

.cryptomag-single-category:hover {
	text-decoration: underline;
	text-decoration-color: var(--cryptomag-accent);
}

/* Single post — page layout */
.cryptomag-single-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	font-size: 0.6875rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cryptomag-single-published {
	color: rgba(17, 18, 20, 0.45);
}

.cryptomag-single-title {
	margin-top: 1.5rem;
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 900;
	line-height: 1.05;
	letter-spacing: -0.025em;
	color: var(--cryptomag-ink);
}

.cryptomag-single-byline {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin-top: 1.5rem;
}

.cryptomag-single-author-label,
.cryptomag-single-tags-label {
	font-size: 0.6875rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(17, 18, 20, 0.45);
}

.cryptomag-single-author-name {
	margin-top: 0.25rem;
	font-size: 1.125rem;
	font-weight: 900;
	color: var(--cryptomag-ink);
}

.cryptomag-single-share {
	display: flex;
	gap: 0.5rem;
}

.cryptomag-single-featured {
	margin-top: 2rem;
}

.cryptomag-single-featured__image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 1.25rem;
	object-fit: cover;
}

.cryptomag-single-content {
	margin-top: 2rem;
}

.cryptomag-single-tags {
	margin-top: 2rem;
}

.cryptomag-single-tags-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.cryptomag-single-related {
	margin-top: 4rem;
	padding-top: 3rem;
	border-top: 1px solid var(--cryptomag-border);
}

.cryptomag-single-related-title {
	font-family: Anton, sans-serif;
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 0.95;
	letter-spacing: -0.03em;
	text-transform: uppercase;
	color: var(--cryptomag-ink);
}

.cryptomag-related-grid {
	display: grid;
	gap: 1.25rem;
	margin-top: 2rem;
}

@media (min-width: 768px) {
	.cryptomag-related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.5rem;
	}
}

.cryptomag-related-card {
	display: grid;
	grid-template-columns: 5.5rem 1fr;
	gap: 0.875rem;
	align-items: start;
	padding: 1rem;
	border-radius: 1rem;
	background: var(--cryptomag-panel);
	border: 1px solid var(--cryptomag-border);
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.cryptomag-related-card:hover {
	border-color: rgba(35, 255, 107, 0.35);
	transform: translateY(-2px);
}

.cryptomag-related-card__thumb {
	display: block;
	width: 5.5rem;
	height: 4.5rem;
	border-radius: 0.75rem;
	object-fit: cover;
}

.cryptomag-related-card__time {
	font-size: 0.6875rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(17, 18, 20, 0.45);
}

.cryptomag-related-card__title {
	margin-top: 0.35rem;
	font-size: 1rem;
	font-weight: 900;
	line-height: 1.25;
	color: var(--cryptomag-ink);
}

.cryptomag-single-share .cryptomag-share-btn {
	width: 2.25rem;
	padding: 0;
}

.cryptomag-share-btn svg {
	width: 1rem;
	height: 1rem;
}

.cryptomag-share-btn,
.cryptomag-tag-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	height: 2.25rem;
	padding: 0 0.75rem;
	border-radius: 9999px;
	border: 1px solid var(--cryptomag-border);
	font-size: 0.75rem;
	font-weight: 800;
	text-decoration: none;
	color: var(--cryptomag-ink);
}

.cryptomag-tag-pill:hover,
.cryptomag-share-btn:hover {
	background: rgba(17, 18, 20, 0.06);
}

.cryptomag-accent-btn,
.cryptomag-btc-cta {
	background: var(--cryptomag-accent);
	color: #111214 !important;
	border: 0;
	text-decoration: none;
}

.cryptomag-accent-btn:hover,
.cryptomag-btc-cta:hover {
	filter: brightness(0.98);
}

.cryptomag-carousel-btn {
	border: 0;
	cursor: pointer;
	transition: opacity 0.15s ease, filter 0.15s ease;
}

.cryptomag-carousel-btn:disabled {
	cursor: not-allowed;
	opacity: 0.45;
}

.cryptomag-carousel-btn--muted {
	background: rgba(49, 94, 232, 0.35);
	color: #ffffff;
}

.cryptomag-carousel__track {
	transition: transform 0.35s ease;
	will-change: transform;
}

.cryptomag-carousel__slide {
	flex: 0 0 100%;
	max-width: 100%;
}

@media (min-width: 768px) {
	.cryptomag-carousel__slide {
		flex: 0 0 calc((100% - 1.75rem) / 2);
		max-width: calc((100% - 1.75rem) / 2);
	}
}

@media (min-width: 1280px) {
	.cryptomag-carousel__slide {
		flex: 0 0 calc((100% - 5.25rem) / 4);
		max-width: calc((100% - 5.25rem) / 4);
	}
}

.cryptomag-link-accent,
.cryptomag-hover-accent:hover,
.cryptomag-article-card:hover .cryptomag-hover-accent,
.cryptomag-article-card:focus-within .cryptomag-hover-accent,
.cryptomag-article-card:hover :is(h1, h2, h3, h4) > a,
.cryptomag-article-card:focus-within :is(h1, h2, h3, h4) > a,
#news .cryptomag-article-card:hover .cryptomag-hover-accent,
#news .cryptomag-article-card:focus-within .cryptomag-hover-accent,
#news .cryptomag-article-card:hover :is(h1, h2, h3, h4) > a,
#news .cryptomag-article-card:focus-within :is(h1, h2, h3, h4) > a,
#news article.group:hover .cryptomag-hover-accent,
#news article.group:focus-within .cryptomag-hover-accent,
#news article.group:hover :is(h1, h2, h3, h4) > a,
#news article.group:focus-within :is(h1, h2, h3, h4) > a,
main article.group:hover .cryptomag-hover-accent,
main article.group:focus-within .cryptomag-hover-accent,
main article.group:hover :is(h1, h2, h3, h4) > a,
main article.group:focus-within :is(h1, h2, h3, h4) > a,
.cryptomag-related-card:hover .cryptomag-related-card__title {
	color: #111214 !important;
	text-decoration: underline !important;
	text-decoration-color: var(--cryptomag-accent) !important;
	text-decoration-thickness: 0.18em !important;
	text-underline-offset: 0.15em !important;
}

.cryptomag-badge-navy {
	display: inline-flex;
	align-items: center;
	border-radius: 9999px;
	background: var(--cryptomag-accent);
	color: #111214;
	font-weight: 800;
}

.cryptomag-header-icon-btn {
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border-radius: 9999px;
	border: 1px solid var(--cryptomag-border);
	background: transparent;
	color: var(--cryptomag-ink);
}

.cryptomag-search-wrap {
	position: relative;
}

.cryptomag-search-panel {
	position: absolute;
	right: 0;
	top: calc(100% + 0.65rem);
	width: min(92vw, 440px);
	border: 1px solid var(--cryptomag-border);
	border-radius: 1rem;
	background: var(--cryptomag-panel);
	padding: 0.75rem;
	box-shadow: 0 24px 80px rgba(17, 18, 20, 0.12);
	z-index: 80;
}

.cryptomag-search-panel[hidden] {
	display: none !important;
}

@media (max-width: 1023px) {
	.cryptomag-search-panel {
		position: fixed;
		left: 50%;
		right: auto;
		top: 5rem;
		transform: translateX(-50%);
		width: min(92vw, 440px);
	}
}

.cryptomag-search-form {
	display: flex;
	gap: 0.5rem;
	align-items: center;
}

.cryptomag-search-input {
	width: 100%;
	height: 2.8rem;
	border-radius: 9999px;
	border: 1px solid var(--cryptomag-border);
	background: #fff;
	padding: 0 1rem;
	font-weight: 600;
}

.cryptomag-search-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 2.8rem;
	padding: 0 1rem;
	border-radius: 9999px;
	font-weight: 800;
}

.cryptomag-search-field {
	position: relative;
	flex: 1;
	min-width: 0;
}

.cryptomag-nav-search-suggestions {
	position: absolute;
	top: calc(100% + 0.35rem);
	left: 0;
	right: 0;
	z-index: 90;
	max-height: 16rem;
	overflow-y: auto;
	margin: 0;
	padding: 0.35rem;
	list-style: none;
	border: 1px solid var(--cryptomag-border);
	border-radius: 0.85rem;
	background: #fff;
	box-shadow: 0 18px 48px rgba(17, 18, 20, 0.12);
}

.cryptomag-nav-search-suggestion {
	display: block;
	padding: 0.65rem 0.75rem;
	border-radius: 0.65rem;
	font-size: 0.9rem;
	font-weight: 700;
	color: #111214;
	cursor: pointer;
}

.cryptomag-nav-search-suggestion.is-active,
.cryptomag-nav-search-suggestion:hover {
	background: rgba(255, 151, 0, 0.1);
}

.cryptomag-lang-label {
	display: inline-flex;
	align-items: center;
	border-radius: 9999px;
	border: 1px solid var(--cryptomag-border);
	padding: 0.5rem 0.85rem;
	font-size: 0.875rem;
	font-weight: 700;
	color: #111214;
}

.cryptomag-back-to-top {
	position: fixed;
	left: 1rem;
	bottom: 1rem;
	width: 3rem;
	height: 3rem;
	border-radius: 9999px;
	display: grid;
	place-items: center;
	background: rgba(35, 255, 107, 0.65);
	backdrop-filter: blur(6px);
	color: #111214;
	text-decoration: none;
	z-index: 60;
}

@media (prefers-color-scheme: light) {
	body.home #interviews,
	.cryptomag-site-footer {
		background: #000 !important;
	}

	body.home #interviews h2,
	.cryptomag-site-footer,
	.cryptomag-site-footer p,
	.cryptomag-site-footer a {
		color: #f4f5f7;
	}

	/* Keep video card copy white in light mode (section uses a dark band). */
	body.home #interviews .cryptomag-article-card h3,
	body.home #interviews .cryptomag-article-card h3 a,
	body.home #interviews .cryptomag-article-card p,
	body.home #interviews .cryptomag-article-card .cryptomag-muted-on-dark {
		color: #f4f5f7 !important;
	}

	body.home #interviews .cryptomag-article-card p.text-white\/45 {
		color: rgba(255, 255, 255, 0.45) !important;
	}

	/* Light mode: keep Videos card copy white on hover with green accent underline. */
	body.home #interviews .cryptomag-article-card:hover h3,
	body.home #interviews .cryptomag-article-card:focus-within h3,
	body.home #interviews .cryptomag-article-card:hover p,
	body.home #interviews .cryptomag-article-card:focus-within p {
		color: #f4f5f7 !important;
	}

	body.home #interviews .cryptomag-article-card:hover h3 a,
	body.home #interviews .cryptomag-article-card:focus-within h3 a,
	body.home #interviews .cryptomag-article-card:hover .cryptomag-hover-accent,
	body.home #interviews .cryptomag-article-card:focus-within .cryptomag-hover-accent,
	body.home #interviews .cryptomag-article-card:hover :is(h1, h2, h3, h4) > a,
	body.home #interviews .cryptomag-article-card:focus-within :is(h1, h2, h3, h4) > a {
		color: #f4f5f7 !important;
		text-decoration: underline !important;
		text-decoration-color: var(--cryptomag-accent) !important;
		text-decoration-thickness: 0.18em !important;
		text-underline-offset: 0.15em !important;
	}

	body.home #interviews .cryptomag-article-card:hover p.text-white\/45,
	body.home #interviews .cryptomag-article-card:focus-within p.text-white\/45 {
		color: rgba(255, 255, 255, 0.45) !important;
	}

	.cryptomag-site-footer .text-black\/45,
	.cryptomag-site-footer .text-black\/55 {
		color: rgba(244, 245, 247, 0.72) !important;
	}
}

@media (prefers-color-scheme: dark) {
	:root {
		--cryptomag-ink: #f4f5f7;
		--cryptomag-paper: #0e1014;
		--cryptomag-panel: #161a20;
		--cryptomag-border: rgba(255, 255, 255, 0.16);
	}

	body {
		background: var(--cryptomag-paper);
		color: var(--cryptomag-ink);
	}

	header,
	#mobile-menu,
	section,
	footer,
	main article,
	.cryptomag-search-panel {
		color: var(--cryptomag-ink);
	}

	.bg-white,
	[class*="bg-paper"]:not(.cryptomag-site-header),
	[class*="bg-panel"] {
		background-color: var(--cryptomag-panel) !important;
	}

	.cryptomag-site-header {
		background-color: rgba(14, 16, 20, 0.85) !important;
		-webkit-backdrop-filter: blur(24px);
		backdrop-filter: blur(24px);
	}

	.text-black\/60,
	.text-black\/65,
	.text-black\/55,
	.text-black\/50,
	.text-black\/45,
	.text-black\/40,
	.text-black\/35 {
		color: rgba(244, 245, 247, 0.72) !important;
	}

	.cryptomag-ticker-item {
		color: #f4f5f7;
	}

	.cryptomag-ticker-item__price {
		color: rgba(244, 245, 247, 0.65);
	}

	.cryptomag-home-ad__placeholder {
		border-color: var(--cryptomag-border);
		background: linear-gradient(180deg, var(--cryptomag-panel) 0%, rgba(22, 26, 32, 0.92) 100%);
	}

	.cryptomag-home-ad__placeholder .text-black\/40,
	.cryptomag-home-ad__placeholder .text-black\/50 {
		color: rgba(244, 245, 247, 0.55) !important;
	}

	.cryptomag-ticker-item:hover,
	.cryptomag-ticker-item:focus-visible {
		color: #ff9700;
	}

	.border-black\/5,
	.border-black\/10,
	.border-black\/15 {
		border-color: var(--cryptomag-border) !important;
	}

	#mobile-menu .cryptomag-primary-nav .cryptomag-nav-menu a {
		color: #f4f5f7;
	}

	#mobile-menu .cryptomag-primary-nav .cryptomag-nav-menu a:hover {
		background: rgba(255, 255, 255, 0.08);
	}

	.cryptomag-nav-pill {
		box-shadow: none;
	}

	.cryptomag-nav-pill::before {
		background: #161a20;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		border-color: rgba(255, 255, 255, 0.08);
		box-shadow: none;
	}

	.cryptomag-nav-pill::after {
		background: transparent;
	}

	.cryptomag-nav-pill .cryptomag-nav-menu a {
		color: #f4f5f7;
	}

	.cryptomag-nav-pill .cryptomag-nav-menu a:hover {
		background-color: rgba(255, 255, 255, 0.08);
	}

	.cryptomag-nav-pill .cryptomag-nav-menu .current-menu-item > a,
	.cryptomag-nav-pill .cryptomag-nav-menu .current_page_item > a,
	.cryptomag-nav-pill .cryptomag-nav-menu .current-menu-parent > a,
	.cryptomag-nav-pill .cryptomag-nav-menu .current-menu-ancestor > a,
	.cryptomag-nav-pill .cryptomag-nav-menu .current-page-ancestor > a {
		background-color: var(--cryptomag-accent);
		color: #111214 !important;
	}

	.cryptomag-nav-pill .cryptomag-nav-divider {
		background-color: rgba(255, 255, 255, 0.14);
	}

	.cryptomag-nav-pill .cryptomag-lang-label {
		color: #f4f5f7;
		border-color: rgba(255, 255, 255, 0.14);
		background: rgba(255, 255, 255, 0.06);
	}

	.cryptomag-nav-menu .current-menu-item > a,
	.cryptomag-nav-menu .current_page_item > a,
	.cryptomag-nav-menu .current-menu-parent > a,
	.cryptomag-nav-menu .current-menu-ancestor > a,
	.cryptomag-nav-menu .current-page-ancestor > a {
		background-color: #23FF6B;
		color: #111214 !important;
	}

	.cryptomag-link-accent,
	.cryptomag-hover-accent:hover,
	.cryptomag-article-card:hover .cryptomag-hover-accent,
	.cryptomag-article-card:focus-within .cryptomag-hover-accent,
	.cryptomag-article-card:hover :is(h1, h2, h3, h4) > a,
	.cryptomag-article-card:focus-within :is(h1, h2, h3, h4) > a,
	#news .cryptomag-article-card:hover .cryptomag-hover-accent,
	#news .cryptomag-article-card:focus-within .cryptomag-hover-accent,
	#news .cryptomag-article-card:hover :is(h1, h2, h3, h4) > a,
	#news .cryptomag-article-card:focus-within :is(h1, h2, h3, h4) > a,
	#news article.group:hover .cryptomag-hover-accent,
	#news article.group:focus-within .cryptomag-hover-accent,
	#news article.group:hover :is(h1, h2, h3, h4) > a,
	#news article.group:focus-within :is(h1, h2, h3, h4) > a,
	main article.group:hover .cryptomag-hover-accent,
	main article.group:focus-within .cryptomag-hover-accent,
	main article.group:hover :is(h1, h2, h3, h4) > a,
	main article.group:focus-within :is(h1, h2, h3, h4) > a,
	.cryptomag-related-card:hover .cryptomag-related-card__title {
		color: #f4f5f7 !important;
		text-decoration: underline !important;
		text-decoration-color: var(--cryptomag-accent) !important;
		text-decoration-thickness: 0.18em !important;
		text-underline-offset: 0.15em !important;
	}

	.cryptomag-header-icon-btn {
		background: transparent;
		color: #f4f5f7;
		border-color: rgba(255, 255, 255, 0.2);
	}

	.cryptomag-search-panel {
		background: #141518;
		border-color: rgba(255, 255, 255, 0.16);
	}

	.cryptomag-search-input {
		background: #1c1f24;
		color: #f4f5f7;
		border-color: rgba(255, 255, 255, 0.2);
	}

	.cryptomag-nav-search-suggestions {
		background: #161a20;
		border-color: rgba(255, 255, 255, 0.12);
		box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
	}

	.cryptomag-nav-search-suggestion {
		color: #f4f5f7;
	}

	.cryptomag-nav-search-suggestion.is-active,
	.cryptomag-nav-search-suggestion:hover {
		background: rgba(255, 151, 0, 0.16);
	}

	.cryptomag-accent-btn,
	.cryptomag-btc-cta,
	.cryptomag-badge-navy {
		color: #111214 !important;
	}

	.cryptomag-lang-label {
		color: #f4f5f7;
		border-color: rgba(255, 255, 255, 0.2);
	}

	.cryptomag-back-to-top {
		background: rgba(35, 255, 107, 0.55);
		color: #111214;
	}

	/* Keep requested labels black in dark mode. */
	.cryptomag-news-badge,
	.cryptomag-reviews-title {
		color: #111214 !important;
	}

	.cryptomag-single-content {
		color: rgba(244, 245, 247, 0.88);
	}

	.cryptomag-single-content h2,
	.cryptomag-single-content h3,
	.cryptomag-single-content h4,
	.cryptomag-single-content .wp-block-heading,
	.cryptomag-single-content strong,
	.cryptomag-single-content b {
		color: #f4f5f7;
	}

	.cryptomag-single-content a {
		color: var(--cryptomag-accent);
		text-decoration-color: var(--cryptomag-accent);
	}

	.cryptomag-single-published,
	.cryptomag-single-author-label,
	.cryptomag-single-tags-label,
	.cryptomag-related-card__time {
		color: rgba(244, 245, 247, 0.55);
	}

	.cryptomag-related-card {
		background: #161a20;
	}

	.cryptomag-single-content li::marker {
		color: rgba(244, 245, 247, 0.55);
	}

	.cryptomag-single-content blockquote,
	.cryptomag-single-content .wp-block-quote {
		background: rgba(255, 255, 255, 0.06);
	}

	/* Bitcoin widget: always light panel with dark copy in dark mode. */
	.cryptomag-btc-widget {
		background-color: #fff4e7 !important;
		color: #111214 !important;
	}

	.cryptomag-btc-widget h3,
	.cryptomag-btc-widget p,
	.cryptomag-btc-widget dt,
	.cryptomag-btc-widget dd,
	.cryptomag-btc-widget div,
	.cryptomag-btc-widget .cryptomag-btc-header,
	.cryptomag-btc-widget .cryptomag-btc-name,
	.cryptomag-btc-widget .cryptomag-btc-price,
	.cryptomag-btc-widget .cryptomag-btc-widget__price {
		color: #111214 !important;
	}

	.cryptomag-btc-widget .text-black\/45 {
		color: rgba(17, 18, 20, 0.55) !important;
	}

	.cryptomag-btc-widget .border-black\/10 {
		border-color: rgba(17, 18, 20, 0.12) !important;
	}

	.cryptomag-btc-widget .text-emerald-500 {
		color: #16a34a !important;
	}

	.cryptomag-btc-widget .text-red-500 {
		color: #ef4444 !important;
	}

	/* Homepage dark-mode override per request. */
	body.home #interviews,
	.cryptomag-site-footer {
		background: #ffffff !important;
		color: #111214 !important;
	}

	body.home #interviews h2,
	body.home #interviews h3,
	body.home #interviews p,
	body.home #interviews a,
	.cryptomag-site-footer,
	.cryptomag-site-footer p,
	.cryptomag-site-footer a {
		color: #111214 !important;
	}

	body.home #reviews {
		background: var(--cryptomag-paper) !important;
	}

	/* Dark mode: article card copy + reviews heading should be white. */
	.cryptomag-article-card h1,
	.cryptomag-article-card h2,
	.cryptomag-article-card h3,
	.cryptomag-article-card h4,
	.cryptomag-article-card p,
	.cryptomag-article-card a,
	.cryptomag-article-card .cryptomag-muted-on-dark,
	#reviews .cryptomag-section-title {
		color: #f4f5f7 !important;
	}

	/* Dark mode: Videos card copy should be black on the light section band. */
	#interviews .cryptomag-article-card h1,
	#interviews .cryptomag-article-card h2,
	#interviews .cryptomag-article-card h3,
	#interviews h3.text-xl.font-black,
	#interviews .cryptomag-article-card h4,
	#interviews .cryptomag-article-card p,
	#interviews .cryptomag-article-card a,
	#interviews .cryptomag-article-card .cryptomag-muted-on-dark {
		color: #111214 !important;
	}

	#interviews .cryptomag-article-card p.text-white\/45 {
		color: rgba(17, 18, 20, 0.45) !important;
	}

	/* Stronger override against generic section text rules. */
	body.home #interviews .cryptomag-article-card h3.text-xl.font-black,
	body.home #interviews .cryptomag-article-card h3.text-xl.font-black a {
		color: #111214 !important;
	}

	/* Dark mode: keep Videos card copy black on hover with green accent underline. */
	body.home #interviews .cryptomag-article-card:hover h3,
	body.home #interviews .cryptomag-article-card:focus-within h3,
	body.home #interviews .cryptomag-article-card:hover p,
	body.home #interviews .cryptomag-article-card:focus-within p {
		color: #111214 !important;
	}

	body.home #interviews .cryptomag-article-card:hover h3 a,
	body.home #interviews .cryptomag-article-card:focus-within h3 a,
	body.home #interviews .cryptomag-article-card:hover .cryptomag-hover-accent,
	body.home #interviews .cryptomag-article-card:focus-within .cryptomag-hover-accent,
	body.home #interviews .cryptomag-article-card:hover :is(h1, h2, h3, h4) > a,
	body.home #interviews .cryptomag-article-card:focus-within :is(h1, h2, h3, h4) > a {
		color: #111214 !important;
		text-decoration: underline !important;
		text-decoration-color: var(--cryptomag-accent) !important;
		text-decoration-thickness: 0.18em !important;
		text-underline-offset: 0.15em !important;
	}

	body.home #interviews .cryptomag-article-card:hover p.text-white\/45,
	body.home #interviews .cryptomag-article-card:focus-within p.text-white\/45 {
		color: rgba(17, 18, 20, 0.45) !important;
	}
}

