/*
Theme Name: Corhoon
Theme URI: https://corhoon.com
Author: Corhoon
Description: A dark, editorial blog theme with sidebar, related posts, and related pages. Built for crypto and trading content sites.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.7
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: corhoon
Tags: blog, two-columns, right-sidebar, custom-menu, featured-images, threaded-comments, translation-ready, block-styles, full-width-template
*/

/* -------------------------------------------------------------------------
   Design tokens
   ------------------------------------------------------------------------- */
:root {
	--theme-bg: #f3f5f7;
	--theme-surface: #ffffff;
	--theme-surface-2: #eef2f7;
	--theme-border: #d7dee8;
	--theme-text: #1f2937;
	--theme-muted: #6b7280;
	--theme-accent: #2563eb;
	--theme-accent-dim: #1d4ed8;
	--theme-warn: #93c5fd;
	--theme-radius: 10px;
	--theme-font: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
	--theme-max: 1200px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	/* Safety: stop rare descendants from widening the viewport on narrow screens */
	overflow-x: clip;
}

body {
	margin: 0;
	font-family: var(--theme-font);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--theme-text);
	background: var(--theme-bg);
	background-image:
		radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, 0.12), transparent),
		radial-gradient(ellipse 60% 40% at 100% 0%, rgba(59, 130, 246, 0.06), transparent);
	min-height: 100vh;
}

a {
	color: var(--theme-accent);
	text-decoration: none;
	transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover,
a:focus-visible {
	color: var(--theme-accent-dim);
}

a:focus-visible {
	outline: 2px solid var(--theme-accent);
	outline-offset: 2px;
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	clip: auto !important;
	display: block;
	height: auto;
	left: 5px;
	top: 5px;
	width: auto;
	z-index: 100000;
	padding: 0.75rem 1rem;
	background: var(--theme-surface);
	border: 1px solid var(--theme-border);
	border-radius: var(--theme-radius);
}

/* -------------------------------------------------------------------------
   Layout
   ------------------------------------------------------------------------- */
.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-main-wrap {
	flex: 1;
	width: 100%;
	max-width: var(--theme-max);
	margin: 0 auto;
	padding: 0 1.25rem 3rem;
	min-width: 0;
}

@media (min-width: 900px) {
	.site-main-wrap.has-sidebar {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 320px;
		gap: 2.5rem;
		align-items: start;
	}
}

.site-main {
	min-width: 0;
	padding-top: 1.5rem;
}

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */
.site-header {
	border-bottom: 1px solid var(--theme-border);
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(12px);
	position: sticky;
	top: 0;
	z-index: 100;
}

.header-inner {
	max-width: var(--theme-max);
	margin: 0 auto;
	padding: 0.45rem 1.15rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.header-inner--branding-only {
	justify-content: flex-start;
}

.site-branding {
	min-width: 0;
}

.site-branding-home {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-width: 0;
	text-decoration: none;
	color: var(--theme-text);
	border-radius: var(--theme-radius);
}

.site-branding-home:focus-visible {
	outline: 2px solid var(--theme-accent);
	outline-offset: 3px;
}

.site-branding-home__logo {
	display: block;
	line-height: 0;
	flex-shrink: 0;
}

/* Header title / tagline: one at a time, crossfade (title shown longer) */
.site-branding-rotate {
	display: grid;
	min-width: 0;
}

.site-branding-rotate > * {
	grid-area: 1 / 1;
	margin: 0;
	align-self: center;
}

.site-branding-rotate--dual .site-branding-rotate__pane--title {
	animation: site-branding-rotate-title 10s ease-in-out infinite;
}

.site-branding-rotate--dual .site-branding-rotate__pane--desc {
	animation: site-branding-rotate-desc 10s ease-in-out infinite;
	font-size: 0.8rem;
	font-weight: 400;
	color: var(--theme-muted);
	letter-spacing: 0;
	line-height: 1.4;
}

@keyframes site-branding-rotate-title {
	0%,
	56% {
		opacity: 1;
		transform: translateY(0);
	}
	60% {
		opacity: 0;
		transform: translateY(-6px);
	}
	61%,
	89% {
		opacity: 0;
		transform: translateY(6px);
	}
	93%,
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes site-branding-rotate-desc {
	0%,
	56% {
		opacity: 0;
		transform: translateY(6px);
	}
	60%,
	86% {
		opacity: 1;
		transform: translateY(0);
	}
	90%,
	100% {
		opacity: 0;
		transform: translateY(-6px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.site-branding-rotate--dual .site-branding-rotate__pane--title,
	.site-branding-rotate--dual .site-branding-rotate__pane--desc {
		animation: none;
	}

	.site-branding-rotate--dual .site-branding-rotate__pane--desc {
		display: none;
	}
}

.site-title {
	margin: 0;
	font-size: 1.2rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.site-branding-home__logo .custom-logo {
	max-height: 36px;
	width: auto;
}

.site-branding-rotate--single .site-description,
.site-description:not(.site-branding-rotate__pane) {
	margin: 0.15rem 0 0;
	font-size: 0.8rem;
	color: var(--theme-muted);
}

/* -------------------------------------------------------------------------
   Content — lists & entries
   ------------------------------------------------------------------------- */
.page-header {
	margin-bottom: 2rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--theme-border);
}

.page-title,
.entry-title {
	margin: 0 0 0.35rem;
	font-size: clamp(1.5rem, 4vw, 2rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.page-title {
	font-size: clamp(1.75rem, 4.5vw, 2.25rem);
}

.archive-description,
.taxonomy-description {
	color: var(--theme-muted);
	margin: 0;
	font-size: 0.95rem;
}

/* -------------------------------------------------------------------------
   Home — exchanges + posts sections
   ------------------------------------------------------------------------- */
.home-exchanges {
	margin-bottom: 2.5rem;
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 0;
}

.home-exchanges-header {
	margin-bottom: 1.1rem;
}

.home-exchanges-title,
.home-section-title {
	font-size: clamp(1.25rem, 3vw, 1.55rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--theme-text);
	line-height: 1.2;
	display: flex;
	align-items: center;
	gap: 0.55rem;
}

.home-exchanges-title {
	margin: 0 0 0.4rem;
}

.home-section-title {
	margin: 0;
}

.home-exchanges-title::before,
.home-section-title::before {
	content: "";
	width: 4px;
	height: 1.15em;
	background: linear-gradient(180deg, var(--theme-accent), var(--theme-warn));
	border-radius: 2px;
	flex-shrink: 0;
}

.home-exchanges-note {
	margin: 0;
	font-size: 0.82rem;
	color: var(--theme-muted);
	line-height: 1.45;
}

.home-exchanges-empty {
	margin: 0;
	padding: 1.25rem 1rem;
	font-size: 0.95rem;
	color: var(--theme-muted);
	background: var(--theme-surface);
	border: 1px solid var(--theme-border);
	border-radius: var(--theme-radius);
}

.home-exchanges-shell {
	background: var(--theme-surface);
	border: 1px solid var(--theme-border);
	border-radius: var(--theme-radius);
	overflow: hidden;
}

.home-exchanges-scroll {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 1rem;
	padding: 0.85rem 1rem 0.55rem;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: 1rem;
	scrollbar-width: thin;
	scrollbar-color: var(--theme-border) transparent;
}

/* Carousel controls — match .exchange-promo__controls */
.home-exchanges__controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.4rem;
	margin-top: 0.6rem;
	padding: 0 1rem 0.85rem;
}

.home-exchanges__nav {
	width: 28px;
	height: 28px;
	border: 1px solid var(--theme-border);
	border-radius: 999px;
	background: var(--theme-surface);
	color: var(--theme-text);
	cursor: pointer;
}

.home-exchanges__dots {
	display: inline-flex;
	align-items: center;
	gap: 0.34rem;
}

.home-exchanges__dot {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: var(--theme-border);
	cursor: pointer;
}

.home-exchanges__dot.is-active {
	background: var(--theme-accent-dim);
}

.home-exchanges-scroll:focus-visible {
	outline: 2px solid var(--theme-accent);
	outline-offset: -2px;
}

.home-exchange-card {
	display: grid;
	grid-template-columns: 1fr;
	flex: 0 0 auto;
	width: clamp(280px, 88vw, 400px);
	max-width: 100%;
	scroll-snap-align: start;
	gap: 0.75rem 1.25rem;
	align-items: start;
	padding: 0.85rem 1rem;
	text-decoration: none;
	color: inherit;
	border: 1px solid var(--theme-border);
	border-radius: calc(var(--theme-radius) - 2px);
	background: var(--theme-bg);
	transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.home-exchange-card:hover,
.home-exchange-card:focus-visible {
	background: rgba(37, 99, 235, 0.05);
	border-color: rgba(37, 99, 235, 0.35);
	box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.home-exchange-card__left {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.home-exchange-card__head {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	flex-wrap: wrap;
}

.home-exchange-card__rank {
	font-size: 1.1rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	min-width: 1.5rem;
}

/* Rank colors: one blue family for consistent branding. */
.home-exchange-card__rank--n1 {
	color: var(--theme-accent);
}

.home-exchange-card__rank--n2 {
	color: var(--theme-accent);
}

.home-exchange-card__rank--n3 {
	color: #3b82f6;
}

.home-exchange-card__rank--n4 {
	color: var(--theme-accent-dim);
}

/* Keep lower ranks in the same accent family. */
.home-exchange-card__rank--other {
	color: #60a5fa;
}

.home-exchange-card__identity {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-width: 0;
	flex: 1;
}

.home-exchange-logo {
	line-height: 0;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	overflow: hidden;
	background: var(--theme-bg);
	border: 1px solid var(--theme-border);
	flex-shrink: 0;
}

.home-exchange-logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.home-exchange-name {
	display: inline-flex;
	flex-direction: column;
	gap: 0.08rem;
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--theme-text);
	line-height: 1.2;
}

.home-exchange-name-main {
	display: block;
}

.home-exchange-name-sub {
	display: block;
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--theme-muted);
	line-height: 1.2;
}

.home-exchange-dl {
	margin: 0;
	display: grid;
	gap: 0.35rem;
	font-size: 0.78rem;
}

.home-exchange-dl__row {
	display: grid;
	grid-template-columns: 6.5rem minmax(0, 1fr);
	gap: 0.35rem 0.5rem;
	align-items: baseline;
}

.home-exchange-dl__row--fee {
	align-items: start;
}

.home-exchange-dl dt {
	margin: 0;
	font-weight: 600;
	color: var(--theme-muted);
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.home-exchange-dl dd {
	margin: 0;
	color: var(--theme-text);
	line-height: 1.4;
}

.home-exchange-dl__row--fee dd {
	font-size: 0.72rem;
	color: var(--theme-text);
}

.home-exchange-fee-stack {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.75rem;
}

.home-exchange-fee-tier {
	flex: none;
	width: 100%;
	min-width: 0;
}

.home-exchange-fee-tier__label {
	display: block;
	font-weight: 700;
	font-size: 0.72rem;
	color: var(--theme-text);
	margin-bottom: 0.2rem;
}

.home-exchange-fee-pair {
	margin: 0;
	display: grid;
	gap: 0.2rem;
	font-size: 0.72rem;
}

.home-exchange-fee-pair__row {
	display: grid;
	grid-template-columns: 3.75rem minmax(0, 1fr);
	gap: 0.35rem 0.5rem;
	align-items: baseline;
}

.home-exchange-fee-pair dt {
	margin: 0;
	font-weight: 600;
	color: var(--theme-muted);
	font-size: 0.65rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.home-exchange-fee-pair dd {
	margin: 0;
	color: var(--theme-text);
	font-variant-numeric: tabular-nums;
	line-height: 1.35;
}

.home-exchange-na {
	color: var(--theme-muted);
	font-weight: 500;
}

.home-exchange-score-value {
	font-size: 0.78rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--theme-accent);
}

.home-exchange-code {
	display: inline-block;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.78rem;
	font-weight: 600;
	padding: 0.18rem 0.45rem;
	background: var(--theme-surface-2);
	border: 1px solid var(--theme-border);
	border-radius: 6px;
	color: var(--theme-accent);
}

.home-exchange-card__right {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	padding: 0.35rem 0 0;
	border-top: 1px solid var(--theme-border);
}

.home-exchange-side-heading {
	margin: 0 0 0.35rem;
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--theme-muted);
}

.home-exchange-side-block {
	min-width: 0;
}

.home-exchange-promo-list {
	margin: 0;
	padding-left: 1.05rem;
	color: var(--theme-text);
	font-size: 0.78rem;
	line-height: 1.45;
}

.home-exchange-promo-list li + li {
	margin-top: 0.25rem;
}

.home-exchange-promo-empty {
	margin: 0;
	font-size: 0.78rem;
	color: var(--theme-muted);
}

.promo-em {
	color: var(--theme-accent-dim);
	font-weight: 600;
}

/* Fear & Greed sidebar — same palette / copy as live page, no gauge */
.widget_fear_greed .fear-greed-sidebar-card {
	margin: 0;
	padding: 0.85rem;
}

.widget_fear_greed .fear-greed-sidebar-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.widget_fear_greed .fear-greed-sidebar-card__head .fear-greed-live-label {
	flex: 1;
	min-width: 0;
}

.widget_fear_greed .fear-greed-sidebar-card__more {
	flex-shrink: 0;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--theme-accent);
	text-decoration: none;
	white-space: nowrap;
}

.widget_fear_greed .fear-greed-sidebar-card__more:hover,
.widget_fear_greed .fear-greed-sidebar-card__more:focus-visible {
	color: var(--theme-accent-dim);
}

.widget_fear_greed .fear-greed-sidebar-card__body {
	margin-top: 0.45rem;
	text-align: center;
}

.widget_fear_greed .fear-greed-sidebar-card .fear-greed-live-value {
	margin: 0;
	font-size: clamp(1.5rem, 4vw, 1.85rem);
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	line-height: 1.1;
}

.widget_fear_greed .fear-greed-sidebar-card .fear-greed-live-classification {
	margin: 0.35rem 0 0;
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--theme-text);
}

.widget_fear_greed .fear-greed-sidebar-card__empty {
	margin: 0.5rem 0 0;
	font-size: 0.85rem;
}

.widget_fear_greed .fear-greed-sidebar-card .fear-greed-live-value.fear-greed-value--extreme-fear {
	color: #dc2626;
}

.widget_fear_greed .fear-greed-sidebar-card .fear-greed-live-value.fear-greed-value--fear {
	color: #f97316;
}

.widget_fear_greed .fear-greed-sidebar-card .fear-greed-live-value.fear-greed-value--neutral {
	color: #facc15;
}

.widget_fear_greed .fear-greed-sidebar-card .fear-greed-live-value.fear-greed-value--greed {
	color: #a3e635;
}

.widget_fear_greed .fear-greed-sidebar-card .fear-greed-live-value.fear-greed-value--extreme-greed {
	color: #16a34a;
}

.widget_fear_greed .fear-greed-sidebar-card .fear-greed-live-value.fear-greed-value--unknown {
	color: var(--theme-muted);
}

/* Fear & Greed live page template */
.fear-greed-live-card {
	margin: 0 0 1.2rem;
	padding: 1rem;
	border: 1px solid var(--theme-border);
	border-radius: 12px;
	background: var(--theme-surface);
}

.fear-greed-live-top {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.6rem;
}

.fear-greed-live-label {
	margin: 0;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--theme-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.fear-greed-live-main {
	margin-top: 0.7rem;
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
}

.fear-greed-live-main--gauge {
	display: block;
}

.fear-greed-gauge {
	margin: 0.2rem auto 0;
	width: min(100%, 380px);
	text-align: center;
}

.fear-greed-gauge__dial {
	position: relative;
	width: 100%;
	aspect-ratio: 2 / 1;
}

/*
 * Pivot at bottom center (same as needle). Arc = 180deg for score 0–100.
 * Band angles match table: 0–24 / 25–44 / 45–54 / 55–74 / 75–100 → (score/100)*180deg boundaries.
 * 24→43.2deg, 44→79.2deg, 54→97.2deg, 74→133.2deg, 100→180deg.
 */
.fear-greed-gauge__arc {
	position: absolute;
	inset: 0;
	border-top-left-radius: 999px;
	border-top-right-radius: 999px;
	overflow: hidden;
	background: conic-gradient(
		from 270deg at 50% 100%,
		#dc2626 0deg,
		#dc2626 43.2deg,
		#f97316 43.2deg,
		#f97316 79.2deg,
		#facc15 79.2deg,
		#facc15 97.2deg,
		#a3e635 97.2deg,
		#a3e635 133.2deg,
		#16a34a 133.2deg,
		#16a34a 180deg
	);
}

.fear-greed-gauge__arc::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -1px;
	transform: translateX(-50%);
	width: calc(100% - 38px);
	height: calc(100% - 18px);
	border-top-left-radius: 999px;
	border-top-right-radius: 999px;
	background: var(--theme-surface);
}

.fear-greed-gauge__needle {
	position: absolute;
	left: 50%;
	bottom: 3px;
	width: 3px;
	height: calc(100% - 30px);
	border-radius: 999px;
	background: #111;
	transform: translateX(-50%) rotate(0deg);
	transform-origin: bottom center;
	transition: transform 220ms ease;
	z-index: 2;
}

.fear-greed-gauge__needle::before {
	content: "";
	position: absolute;
	top: -8px;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-bottom: 10px solid #111;
}

.fear-greed-gauge__hub {
	position: absolute;
	left: 50%;
	bottom: -1px;
	transform: translateX(-50%);
	width: 14px;
	height: 14px;
	border-radius: 999px;
	background: #111;
	z-index: 3;
}

.fear-greed-live-value {
	margin: 0.65rem 0 0;
	font-size: clamp(2rem, 8vw, 2.7rem);
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

.fear-greed-live-classification {
	margin: 0.28rem 0 0;
	font-size: 1rem;
	font-weight: 700;
	color: var(--theme-text);
}

.fear-greed-live-state {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.28rem 0.36rem;
	border-radius: 999px;
	border: 1px solid var(--theme-border);
	background: var(--theme-bg);
	font-size: 0.67rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--theme-muted);
	text-align: center;
}

.fear-greed-live-zones .fear-greed-live-state {
	min-width: 70px;
	max-width: 100%;
	justify-content: center;
	white-space: normal;
}

.fear-greed-live-state.is-active {
	color: #fff;
	border-color: transparent;
}

.fear-greed-live-state--extreme-fear.is-active {
	background: #dc2626;
}

.fear-greed-live-state--fear.is-active {
	background: #f97316;
}

.fear-greed-live-state--neutral.is-active {
	background: #facc15;
	color: #111;
}

.fear-greed-live-state--greed.is-active {
	background: #a3e635;
	color: #111;
}

.fear-greed-live-state--extreme-greed.is-active {
	background: #16a34a;
}

.fear-greed-live-state--unknown.is-active {
	background: #6b7280;
}

.fear-greed-live-empty {
	margin: 0.8rem 0 0;
	font-size: 0.9rem;
	color: var(--theme-muted);
}

.fear-greed-live-history {
	margin-top: 1rem;
	padding: 1rem;
	border: 1px solid var(--theme-border);
	border-radius: 12px;
	background: var(--theme-surface);
}

.fear-greed-live-history h2 {
	margin: 0 0 0.65rem;
	font-size: clamp(1.06rem, 2.8vw, 1.2rem);
}

.fear-greed-live-history__desc {
	margin: 0 0 0.7rem;
	font-size: 0.88rem;
	color: var(--theme-muted);
}

.fear-greed-live-history__ranges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0 0 0.65rem;
}

.fear-greed-range-btn {
	appearance: none;
	border: 1px solid var(--theme-border);
	background: var(--theme-bg);
	color: var(--theme-text);
	border-radius: 8px;
	padding: 0.28rem 0.58rem;
	font-size: 0.78rem;
	font-weight: 600;
	cursor: pointer;
}

.fear-greed-range-btn.is-active {
	background: #111;
	border-color: #111;
	color: #fff;
}

.fear-greed-live-history__chart-wrap {
	border: 1px solid var(--theme-border);
	border-radius: 10px;
	padding: 0.6rem;
	background: #fff;
}

.fear-greed-live-history__plot {
	position: relative;
	height: 320px;
}

.fear-greed-live-history__canvas {
	width: 100%;
	height: 100% !important;
	display: block;
}

.fear-greed-live-history__xlabels,
.fear-greed-live-history__summary {
	margin-top: 0.45rem;
	display: flex;
	justify-content: space-between;
	gap: 0.55rem;
	font-size: 0.79rem;
	color: var(--theme-muted);
}

.fear-greed-live-history__summary span {
	display: inline-flex;
	gap: 0.28rem;
	align-items: center;
}

.fear-greed-live-history__summary strong {
	font-variant-numeric: tabular-nums;
	color: var(--theme-text);
}

.fear-greed-live-explainer {
	margin-top: 1rem;
	padding: 1rem;
	border: 1px solid var(--theme-border);
	border-radius: 12px;
	background: var(--theme-surface);
}

.fear-greed-live-explainer h2 {
	margin: 0 0 0.6rem;
	font-size: clamp(1.08rem, 3vw, 1.25rem);
}

.fear-greed-live-explainer p {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.7;
	color: var(--theme-text);
}

.fear-greed-live-explainer p + p {
	margin-top: 0.78rem;
}

.fear-greed-live-zones-wrap {
	margin-top: 0.45rem;
	overflow-x: visible;
}

.fear-greed-live-zones {
	width: 100%;
	min-width: 0;
	table-layout: fixed;
	border-collapse: collapse;
	border: 1px solid var(--theme-border);
	border-radius: 10px;
	overflow: hidden;
}

.fear-greed-live-zones th:nth-child(1),
.fear-greed-live-zones td:nth-child(1) {
	width: 5.25rem;
}

.fear-greed-live-zones th:nth-child(2),
.fear-greed-live-zones td:nth-child(2) {
	width: 7.25rem;
}

.fear-greed-live-zones th:nth-child(3),
.fear-greed-live-zones td:nth-child(3) {
	word-break: keep-all;
	overflow-wrap: anywhere;
}

.fear-greed-live-zones th,
.fear-greed-live-zones td {
	padding: 0.62rem 0.68rem;
	border-bottom: 1px solid var(--theme-border);
	text-align: left;
	vertical-align: top;
	font-size: 0.86rem;
}

.fear-greed-live-zones th {
	background: var(--theme-surface-2);
	color: var(--theme-muted);
	font-size: 0.74rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.fear-greed-live-zones tbody tr:last-child td {
	border-bottom: 0;
}

.fear-greed-live-zones th:nth-child(2),
.fear-greed-live-zones td:nth-child(2) {
	text-align: center;
}

.fear-greed-live-value.fear-greed-value--extreme-fear {
	color: #dc2626;
}

.fear-greed-live-value.fear-greed-value--fear {
	color: #f97316;
}

.fear-greed-live-value.fear-greed-value--neutral {
	color: #facc15;
}

.fear-greed-live-value.fear-greed-value--greed {
	color: #a3e635;
}

.fear-greed-live-value.fear-greed-value--extreme-greed {
	color: #16a34a;
}

.fear-greed-live-value.fear-greed-value--unknown {
	color: var(--theme-muted);
}

/* Binance futures coin recommendation page */
.binance-coin-reco-page .binance-reco-card {
	margin: 0 0 1rem;
	padding: 1rem;
	border: 1px solid var(--theme-border);
	border-radius: 12px;
	background: var(--theme-surface);
}

.binance-reco-card h2 {
	margin: 0 0 0.6rem;
	font-size: clamp(1.05rem, 2.7vw, 1.22rem);
}

.binance-reco-card--intro {
	margin-bottom: 1.25rem;
}

.binance-reco-strategy {
	margin: 0 0 1rem;
	font-size: 0.88rem;
	color: var(--theme-text);
	line-height: 1.65;
}

.binance-reco-strategy p {
	margin: 0 0 0.65rem;
}

.binance-reco-strategy p:last-child {
	margin-bottom: 0;
}

.binance-reco-lede {
	margin: 0;
	font-size: 0.9rem;
	color: var(--theme-muted);
	line-height: 1.7;
}

.binance-reco-lede p {
	margin: 0 0 0.75rem;
}

.binance-reco-lede p:last-child {
	margin-bottom: 0;
}

.binance-reco-empty {
	margin: 0;
	font-size: 0.88rem;
	color: var(--theme-muted);
}

.binance-reco-table-wrap {
	overflow-x: auto;
}

.binance-reco-table {
	width: 100%;
	min-width: 680px;
	border-collapse: collapse;
	font-size: 0.86rem;
}

.binance-reco-table th,
.binance-reco-table td {
	padding: 0.56rem 0.58rem;
	border-bottom: 1px solid var(--theme-border);
	text-align: left;
	vertical-align: middle;
}

.binance-reco-table th {
	font-size: 0.74rem;
	color: var(--theme-muted);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.binance-reco-table tbody tr:last-child td {
	border-bottom: 0;
}

.binance-reco-table thead th:first-child,
.binance-reco-table tbody td.market-cell-rank {
	width: 2.25rem;
	max-width: 3rem;
	white-space: nowrap;
	padding-left: 0.45rem;
	padding-right: 0.2rem;
	font-variant-numeric: tabular-nums;
}

.binance-reco-table thead th:nth-child(2),
.binance-reco-table tbody td.market-cell-name {
	width: 1%;
	white-space: nowrap;
	padding-left: 0.08rem;
	padding-right: 0.55rem;
	vertical-align: middle;
}

.binance-reco-table tbody td.market-cell-price,
.binance-reco-table tbody td.market-cell-volume {
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.binance-reco-table tbody tr.is-clickable {
	cursor: pointer;
}

.binance-reco-table tbody tr.is-clickable:hover td {
	background: rgba(37, 99, 235, 0.04);
}

.binance-reco-table tbody tr.is-clickable:hover .market-name-primary {
	color: var(--theme-accent-dim);
}

.binance-coin-reco-page .binance-reco-table .market-row-link,
.binance-coin-reco-page .binance-reco-table .market-row-link:hover {
	color: inherit;
	text-decoration: none;
}

.binance-reco-table .market-cell-change {
	font-weight: 700;
}

.binance-reco-table .market-cell-change.is-up {
	color: #dc2626;
}

.binance-reco-table .market-cell-change.is-down {
	color: #2563eb;
}

.binance-reco-table .market-cell-change.is-flat {
	color: var(--theme-muted);
}

/* Binance futures movers (sidebar) */
.widget_binance_futures_movers .binance-futures-widget-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.6rem;
	margin-bottom: 0.65rem;
}

.widget_binance_futures_movers .binance-futures-widget-head .widget-title {
	margin: 0;
	flex: 1;
	min-width: 0;
}

.widget_binance_futures_movers .binance-futures-more {
	flex-shrink: 0;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--theme-accent-dim);
	text-decoration: none;
	white-space: nowrap;
}

.widget_binance_futures_movers .binance-futures-more:hover {
	text-decoration: underline;
}

.widget_binance_futures_movers .binance-futures-empty {
	margin: 0;
	font-size: 0.85rem;
	color: var(--theme-muted);
}

.widget_binance_futures_movers .binance-futures-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.widget_binance_futures_movers .binance-futures-list li {
	padding: 0;
	border-bottom: 0;
}

.widget_binance_futures_movers .binance-futures-list li + li {
	margin-top: 0.35rem;
}

.widget_binance_futures_movers .binance-futures-today-row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.55rem;
	border-radius: 10px;
	background: var(--theme-bg);
	border: 1px solid var(--theme-border);
	color: var(--theme-text);
	text-decoration: none;
	transition: border-color 0.15s ease, background 0.15s ease;
	min-width: 0;
}

.widget_binance_futures_movers .binance-futures-today-row:hover {
	border-color: rgba(37, 99, 235, 0.35);
	background: rgba(37, 99, 235, 0.06);
	color: var(--theme-text);
}

.widget_binance_futures_movers .binance-futures-today-meta {
	flex: 1;
	min-width: 0;
}

.widget_binance_futures_movers .binance-futures-today-row .market-cell-change {
	flex-shrink: 0;
	font-size: 0.8rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.widget_binance_futures_movers .binance-futures-today-row .market-cell-change.is-up {
	color: #dc2626;
}

.widget_binance_futures_movers .binance-futures-today-row .market-cell-change.is-down {
	color: #2563eb;
}

.widget_binance_futures_movers .binance-futures-today-row .market-cell-change.is-flat {
	color: var(--theme-muted);
}

.home-market-dashboard {
	margin: 0 0 2rem;
}

.home-market-dashboard__header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.8rem;
	margin: 0 0 1rem;
}

.home-market-dashboard__switch {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.25rem;
	border: 1px solid var(--theme-border);
	background: var(--theme-surface);
	border-radius: 999px;
}

.market-switch {
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--theme-muted);
	font-family: inherit;
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1;
	padding: 0.5rem 0.75rem;
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.market-switch:hover {
	color: var(--theme-accent-dim);
}

.market-switch.is-active {
	background: rgba(37, 99, 235, 0.12);
	color: var(--theme-accent-dim);
}

.market-table-wrap {
	background: var(--theme-surface);
	border: 1px solid var(--theme-border);
	border-radius: var(--theme-radius);
	overflow: hidden;
}

.market-table-scroll {
	max-height: 320px;
	overflow: auto;
}

.market-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.84rem;
}

.market-table thead th {
	position: sticky;
	top: 0;
	z-index: 1;
	text-align: left;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--theme-muted);
	background: var(--theme-surface-2);
	border-bottom: 1px solid var(--theme-border);
	padding: 0.6rem 0.75rem;
}

.market-sort-btn {
	appearance: none;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	padding: 0;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
}

.market-sort-btn::after {
	content: "↕";
	font-size: 0.68rem;
	color: var(--theme-muted);
	line-height: 1;
}

.market-sort-btn.is-active::after {
	content: "▼";
	color: var(--theme-accent-dim);
}

[data-sort-current="asc"].market-sort-btn.is-active::after {
	content: "▲";
}

.market-table tbody td {
	padding: 0.58rem 0.75rem;
	border-bottom: 1px solid var(--theme-border);
	color: var(--theme-text);
	font-variant-numeric: tabular-nums;
}

.market-table thead th:first-child,
.market-table tbody td.market-cell-rank {
	width: 28px;
	max-width: 28px;
	white-space: nowrap;
}

.market-table thead th:first-child {
	padding-left: 0.45rem;
	padding-right: 0.15rem;
}

.market-table tbody td.market-cell-rank {
	padding-left: 0.45rem;
	padding-right: 0.15rem;
}

.market-cell-name {
	min-width: 180px;
}

.market-table thead th:nth-child(2),
.market-table tbody td.market-cell-name {
	padding-left: 0.08rem;
	padding-right: 0.5rem;
}

.market-cell-price,
.market-cell-volume {
	white-space: nowrap;
}

.market-name-stack {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
}

.market-name-primary {
	line-height: 1.25;
}

.market-name-symbol {
	margin-top: 0.02rem;
	font-size: 0.72rem;
	color: var(--theme-muted);
	line-height: 1.2;
	letter-spacing: 0.02em;
}

.market-table tbody tr:last-child td {
	border-bottom: 0;
}

.market-table tbody tr.is-clickable {
	cursor: pointer;
}

.market-table tbody tr:hover td {
	background: rgba(37, 99, 235, 0.04);
}

.market-row-link {
	color: inherit;
	text-decoration: none;
}

.market-row-link--name {
	display: inline-flex;
	align-items: center;
	gap: 0.42rem;
}

.market-coin-logo {
	width: 18px;
	height: 18px;
	border-radius: 999px;
	background: var(--theme-surface-2);
	border: 1px solid var(--theme-border);
	flex-shrink: 0;
}

.market-coin-logo-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.market-coin-logo-fallback {
	display: none;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 999px;
	border: 1px solid var(--theme-border);
	background: var(--theme-surface-2);
	color: var(--theme-muted);
	font-size: 0.62rem;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
}

.market-coin-logo-wrap.is-fallback .market-coin-logo-fallback {
	display: inline-flex;
}

.market-coin-logo-wrap.is-fallback .market-coin-logo {
	display: none;
}

.market-row-link:hover {
	color: var(--theme-accent-dim);
}

.market-cell-change {
	font-weight: 700;
}

.market-cell-change.is-up {
	color: #dc2626;
}

.market-cell-change.is-down {
	color: #2563eb;
}

.market-cell-change.is-flat {
	color: var(--theme-muted);
}

.home-market-dashboard__empty {
	margin: 0;
	padding: 1rem;
	font-size: 0.88rem;
	color: var(--theme-muted);
}

.exchange-promo {
	margin: 1.2rem 0 1.5rem;
	padding: 0.72rem;
	border: 1px solid var(--theme-border);
	border-radius: 14px;
	background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(16, 185, 129, 0.06));
}

.exchange-promo__viewport {
	overflow: hidden;
	border-radius: 12px;
}

.exchange-promo__track {
	display: flex;
	transition: transform 320ms ease;
	will-change: transform;
}

.exchange-promo__slide {
	flex: 0 0 100%;
	min-width: 100%;
}

.exchange-promo__card {
	display: block;
	padding: 0.9rem 0.95rem;
	border-radius: 12px;
	background: var(--theme-surface);
}

.exchange-promo__header-line {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem;
	margin-bottom: 0.62rem;
}

.exchange-promo__badge {
	display: inline-flex;
	padding: 0.16rem 0.5rem;
	border-radius: 999px;
	background: rgba(37, 99, 235, 0.12);
	color: var(--theme-accent-dim);
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.exchange-promo__join-btn {
	position: relative;
	isolation: isolate;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.26rem;
	padding: 0.36rem 0.78rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	background: linear-gradient(135deg, #2563eb, #1d4ed8);
	color: #fff;
	font-size: 0.76rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	transition: transform 180ms ease, filter 180ms ease, background-color 180ms ease;
	animation: exchange-promo-join-attention 2.2s ease-in-out infinite;
}

.exchange-promo__join-btn:hover,
.exchange-promo__join-btn:focus-visible,
.exchange-promo__join-btn:active,
.exchange-promo__join-btn:visited {
	color: #fff;
	text-decoration: none;
}

.exchange-promo__join-btn:hover,
.exchange-promo__join-btn:focus-visible {
	transform: translateY(-1px) scale(1.02);
	filter: brightness(1.04);
}

@keyframes exchange-promo-join-attention {
	0%,
	100% {
		transform: translateY(0) scale(1);
		filter: saturate(1);
	}
	35% {
		transform: translateY(-1px) scale(1.02);
		filter: saturate(1.1);
	}
	70% {
		transform: translateY(0) scale(1.015);
		filter: saturate(1.06);
	}
}

.exchange-promo__join-btn::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.3) 50%, transparent 75%);
	transform: translateX(-140%);
	animation: exchange-promo-join-shine 2.8s ease-in-out infinite;
	pointer-events: none;
	z-index: -1;
}

@keyframes exchange-promo-join-shine {
	0%,
	58%,
	100% {
		transform: translateX(-140%);
	}
	72% {
		transform: translateX(140%);
	}
}

.exchange-promo__main {
	display: flex;
	align-items: center;
	gap: 0.72rem;
}

.exchange-promo__layout {
	display: grid;
	grid-template-columns: minmax(220px, 0.95fr) minmax(220px, 1.05fr);
	gap: 0.92rem;
}

.exchange-promo__left,
.exchange-promo__right {
	min-width: 0;
}

.exchange-promo__logo-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	flex-shrink: 0;
}

.exchange-promo__logo {
	width: 36px;
	height: 36px;
	border-radius: 999px;
	background: var(--theme-surface-2);
	border: 1px solid var(--theme-border);
}

.exchange-promo__logo-fallback {
	display: none;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	background: var(--theme-surface-2);
	border: 1px solid var(--theme-border);
	color: var(--theme-muted);
	font-weight: 700;
	font-size: 0.9rem;
}

.exchange-promo__logo-wrap.is-fallback .exchange-promo__logo {
	display: none;
}

.exchange-promo__logo-wrap.is-fallback .exchange-promo__logo-fallback {
	display: inline-flex;
}

.exchange-promo__meta {
	display: flex;
	flex-direction: column;
	gap: 0.16rem;
	min-width: 0;
}

.exchange-promo__name {
	font-size: 1rem;
	line-height: 1.2;
}

.exchange-promo__name-kr {
	font-size: 0.82rem;
	color: var(--theme-muted);
}

.exchange-promo__score {
	font-size: 0.76rem;
	color: var(--theme-muted);
}

.exchange-promo__stars {
	display: inline-flex;
	align-items: center;
	gap: 0.06rem;
}

.exchange-promo__star {
	position: relative;
	display: inline-flex;
	font-size: 0.92rem;
	line-height: 1;
}

.exchange-promo__star.is-full {
	color: #f59e0b;
}

.exchange-promo__star.is-empty {
	color: #d1d5db;
}

.exchange-promo__star.is-half {
	color: #d1d5db;
}

.exchange-promo__star.is-half::before {
	content: "★";
	position: absolute;
	top: 0;
	left: 0;
	width: 50%;
	overflow: hidden;
	color: #f59e0b;
}

.exchange-promo__code-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.34rem;
	margin-top: 0.35rem;
	padding: 0.18rem 0.46rem;
	border: 1px dashed var(--theme-border);
	border-radius: 999px;
	background: transparent;
	color: inherit;
	cursor: pointer;
	font-size: 0.74rem;
}

.exchange-promo__code-label {
	color: var(--theme-muted);
}

.exchange-promo__code-value {
	font-size: 0.78rem;
}

.exchange-promo__code-hint {
	color: var(--theme-accent-dim);
}

.exchange-promo__benefit-list {
	margin: 0;
	padding-left: 1.05rem;
	font-size: 0.86rem;
	line-height: 1.45;
}

.exchange-promo__benefit-list .promo-em {
	font-weight: 700;
	color: var(--theme-accent-dim);
}

.exchange-promo__benefit-empty {
	margin: 0;
	font-size: 0.84rem;
	color: var(--theme-muted);
}

.exchange-promo__controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.4rem;
	margin-top: 0.6rem;
}

.exchange-promo__nav {
	width: 28px;
	height: 28px;
	border: 1px solid var(--theme-border);
	border-radius: 999px;
	background: var(--theme-surface);
	color: var(--theme-text);
	cursor: pointer;
}

.exchange-promo__dots {
	display: inline-flex;
	align-items: center;
	gap: 0.34rem;
}

.exchange-promo__dot {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: var(--theme-border);
}

.exchange-promo__dot.is-active {
	background: var(--theme-accent-dim);
}

@media (max-width: 780px) {
	.exchange-promo__layout {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.exchange-promo__join-btn {
		animation: none;
		transition: none;
	}

	.exchange-promo__join-btn::after {
		animation: none;
	}
}

.home-posts-section {
	margin-top: 0;
}

.home-posts-header {
	margin-bottom: 1.5rem;
}

.home-posts-category + .home-posts-category {
	margin-top: 1.8rem;
}

.home-posts-category__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.8rem;
	padding-bottom: 0.55rem;
	border-bottom: 1px solid var(--theme-border);
}

.home-posts-category__title {
	margin: 0;
	font-size: clamp(1rem, 2.5vw, 1.15rem);
	line-height: 1.35;
}

.home-posts-category__more {
	font-size: 0.82rem;
	color: var(--theme-muted);
}

.home-posts-category__more:hover {
	color: var(--theme-accent);
}

.post-list {
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
}

.post-list--home-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 768px) {
	.post-list--home-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.post-card {
	position: relative;
	background: var(--theme-surface);
	border: 1px solid var(--theme-border);
	border-radius: var(--theme-radius);
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
	border-color: rgba(37, 99, 235, 0.35);
	box-shadow: 0 8px 24px rgba(31, 41, 55, 0.1);
}

.post-card-stretched-link {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.post-card .entry-meta a,
.post-card .byline a {
	position: relative;
	z-index: 2;
}

.post-card-inner {
	display: grid;
	gap: 0;
	position: relative;
	z-index: 0;
}

@media (min-width: 640px) {
	.post-card-inner.has-thumb {
		grid-template-columns: 220px 1fr;
	}

	.post-list--home-grid .post-card-inner.has-thumb {
		grid-template-columns: 112px 1fr;
	}
}

.post-card-thumb {
	line-height: 0;
	background: var(--theme-surface-2);
	overflow: hidden;
	aspect-ratio: 16 / 10;
}

.post-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
	display: block;
}

.post-card:hover .post-card-thumb img {
	transform: scale(1.04);
}

@media (min-width: 640px) {
	.post-card-inner.has-thumb .post-card-thumb {
		height: 100%;
		aspect-ratio: auto;
		min-height: 0;
	}
}

.post-card-body {
	padding: 1.25rem 1.35rem;
}

.post-list--home-grid .post-card-body {
	padding: 0.75rem 0.85rem;
}

.post-list--home-grid .entry-meta {
	font-size: 0.72rem;
	margin-bottom: 0.35rem;
}

.post-list--home-grid .entry-title {
	font-size: clamp(0.95rem, 2.5vw, 1.05rem);
	margin: 0 0 0.25rem;
}

.post-list--home-grid .post-card .entry-title {
	color: var(--theme-text);
}

.post-list--home-grid .entry-summary {
	margin-top: 0.35rem;
	font-size: 0.8rem;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
}

.entry-meta {
	font-size: 0.8rem;
	color: var(--theme-muted);
	margin-bottom: 0.5rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1rem;
}

.entry-meta a {
	color: var(--theme-muted);
}

.entry-meta a:hover {
	color: var(--theme-accent);
}

.entry-title a {
	color: var(--theme-text);
}

.entry-title a:hover {
	color: var(--theme-accent);
}

.entry-summary,
.entry-content,
.page-content {
	font-size: 1rem;
	color: var(--theme-text);
	/* Long hex addresses / URLs without spaces — avoid horizontal scroll on narrow viewports */
	overflow-wrap: anywhere;
	word-break: break-word;
}

/* Lists / defs: explicit — unbroken contract addresses still expand some flex/grid ancestors without this */
.entry-content li,
.entry-content dd,
.entry-content td,
.entry-content th,
.page-content li,
.page-content dd {
	overflow-wrap: anywhere;
	word-break: break-word;
	max-width: 100%;
}

/* Block editor list markup */
.entry-content .wp-block-list li {
	overflow-wrap: anywhere;
	word-break: break-word;
	max-width: 100%;
}

/* Single column: flex/grid min-content defaults can prevent shrinking */
.single .site-main > article,
.page .site-main > article {
	min-width: 0;
	max-width: 100%;
}

/* Prefer horizontal scroll inside code, not the whole page */
.entry-content pre,
.page-content pre {
	overflow-x: auto;
	max-width: 100%;
	-webkit-overflow-scrolling: touch;
}

.entry-summary {
	margin: 0.5rem 0 0;
	color: var(--theme-muted);
}

.entry-summary p {
	margin: 0;
}

.read-more {
	display: inline-block;
	margin-top: 0.85rem;
	font-weight: 600;
	font-size: 0.9rem;
}

/* Single */
.single .entry-header {
	margin-bottom: 1.25rem;
}

.single .featured-image {
	margin: 0 0 1.5rem;
	border-radius: var(--theme-radius);
	overflow: hidden;
	border: 1px solid var(--theme-border);
	line-height: 0;
}

.single .featured-image img {
	width: 100%;
	display: block;
}

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

/* Post body: h2 only — signature bar + clear hierarchy */
.entry-content h2 {
	display: flex;
	align-items: stretch;
	gap: 0.55rem;
	margin-top: 2em;
	margin-bottom: 0.55em;
	font-size: clamp(1.2rem, 2.5vw, 1.45rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.3;
	color: var(--theme-text);
}

.entry-content h2::before {
	content: "";
	width: 4px;
	min-height: 1.15em;
	border-radius: 2px;
	flex-shrink: 0;
	background: linear-gradient(180deg, var(--theme-accent), var(--theme-warn));
	align-self: stretch;
}

.entry-content h3,
.entry-content h4 {
	margin-top: 1.75em;
	margin-bottom: 0.5em;
	color: var(--theme-text);
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote {
	margin: 0 0 1.1em;
}

.entry-content blockquote {
	border-left: 3px solid var(--theme-accent);
	margin-left: 0;
	padding-left: 1.25rem;
	color: var(--theme-muted);
	font-style: italic;
}

.entry-content a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.entry-footer {
	margin-top: 2rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--theme-border);
	font-size: 0.85rem;
	color: var(--theme-muted);
}

.post-navigation,
.comments-area {
	margin-top: 2.5rem;
}

.post-navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: space-between;
}

.post-navigation a {
	display: inline-block;
	padding: 0.65rem 1rem;
	background: var(--theme-surface);
	border: 1px solid var(--theme-border);
	border-radius: var(--theme-radius);
	color: var(--theme-text);
	font-weight: 500;
}

.post-navigation a:hover {
	border-color: var(--theme-accent);
	color: var(--theme-accent);
}

/* Related sections */
.related-block {
	margin-top: 2.75rem;
	padding: 1.5rem;
	background: var(--theme-surface);
	border: 1px solid var(--theme-border);
	border-radius: var(--theme-radius);
}

.related-block h2 {
	margin: 0 0 1rem;
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--theme-text);
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.related-block h2::before {
	content: "";
	width: 4px;
	height: 1.1em;
	background: linear-gradient(180deg, var(--theme-accent), var(--theme-warn));
	border-radius: 2px;
}

.related-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.related-list a {
	color: var(--theme-text);
	font-weight: 500;
}

.related-list a:hover {
	color: var(--theme-accent);
}

.related-list .meta {
	display: block;
	font-size: 0.75rem;
	color: var(--theme-muted);
	font-weight: 400;
	margin-top: 0.15rem;
}

/* -------------------------------------------------------------------------
   Sidebar
   ------------------------------------------------------------------------- */
.sidebar {
	padding-top: 1.5rem;
}

@media (min-width: 900px) {
	.sidebar {
		padding-top: 1.5rem;
		position: sticky;
		top: 5.5rem;
	}
}

.widget {
	background: var(--theme-surface);
	border: 1px solid var(--theme-border);
	border-radius: var(--theme-radius);
	padding: 1.25rem 1.35rem;
	margin-bottom: 1.25rem;
}

.widget-title {
	margin: 0 0 1rem;
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--theme-muted);
}

.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.widget li {
	padding: 0.45rem 0;
	border-bottom: 1px solid var(--theme-border);
}

.widget li:last-child {
	border-bottom: 0;
}

.widget a {
	color: var(--theme-text);
}

.widget a:hover {
	color: var(--theme-accent);
}

.widget_calendar table {
	width: 100%;
	font-size: 0.85rem;
}

.widget_search .search-form {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0.5rem;
}

.widget_search input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: 0.55rem 0.75rem;
	border: 1px solid var(--theme-border);
	border-radius: var(--theme-radius);
	background: var(--theme-bg);
	color: var(--theme-text);
	font-family: inherit;
	font-size: 0.9rem;
}

.widget_search input[type="submit"],
.widget_search .search-form button.search-submit,
.search-form .search-submit {
	appearance: none;
	padding: 0.55rem 1rem;
	min-height: 2.75rem;
	background: var(--theme-surface-2);
	border: 1px solid var(--theme-border);
	border-radius: var(--theme-radius);
	color: var(--theme-accent);
	font-weight: 600;
	font-size: 0.9rem;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.widget_search input[type="submit"]:hover,
.widget_search .search-form button.search-submit:hover,
.search-form .search-submit:hover {
	background: rgba(37, 99, 235, 0.12);
	border-color: var(--theme-accent);
	color: var(--theme-accent-dim);
}

.widget_search input[type="submit"]:focus-visible,
.widget_search .search-form button.search-submit:focus-visible,
.search-form .search-submit:focus-visible {
	outline: 2px solid var(--theme-accent);
	outline-offset: 2px;
}

/* Block Search widget in sidebar (no .search-form) */
.sidebar .wp-block-search {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.sidebar .wp-block-search__inside-wrapper {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0.5rem;
}

.sidebar .wp-block-search__input {
	flex: 1;
	min-width: 0;
	padding: 0.55rem 0.75rem;
	border: 1px solid var(--theme-border);
	border-radius: var(--theme-radius);
	background: var(--theme-bg);
	color: var(--theme-text);
	font-family: inherit;
	font-size: 0.9rem;
}

.sidebar .wp-block-search__button {
	appearance: none;
	padding: 0.55rem 1rem;
	min-height: 2.75rem;
	background: var(--theme-surface-2);
	border: 1px solid var(--theme-border);
	border-radius: var(--theme-radius);
	color: var(--theme-accent);
	font-weight: 600;
	font-size: 0.9rem;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sidebar .wp-block-search__button:hover {
	background: rgba(37, 99, 235, 0.12);
	border-color: var(--theme-accent);
	color: var(--theme-accent-dim);
}

.sidebar .wp-block-search__button:focus-visible {
	outline: 2px solid var(--theme-accent);
	outline-offset: 2px;
}

.widget_recent_entries_with_thumbs ul {
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
}

.widget_recent_entries_with_thumbs li {
	padding: 0;
	border-bottom: 0;
}

.recent-post-link {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: 0.8rem;
	align-items: start;
}

.recent-post-thumb {
	display: block;
	width: 64px;
	height: 64px;
	border-radius: 8px;
	overflow: hidden;
	background: var(--theme-surface-2);
	border: 1px solid var(--theme-border);
	box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.recent-post-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.recent-post-thumb-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(59, 130, 246, 0.2));
}

.recent-post-title {
	font-size: 0.84rem;
	line-height: 1.3;
	color: var(--theme-text);
	display: block;
	padding-top: 0.05rem;
}

/* -------------------------------------------------------------------------
   Search form (header / 404)
   ------------------------------------------------------------------------- */
.search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 1rem 0;
}

.search-form label {
	flex: 1;
	min-width: 200px;
}

.search-form input[type="search"] {
	width: 100%;
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--theme-border);
	border-radius: var(--theme-radius);
	background: var(--theme-surface);
	color: var(--theme-text);
	font-family: inherit;
}

/* -------------------------------------------------------------------------
   Pagination
   ------------------------------------------------------------------------- */
.pagination,
.nav-links {
	margin-top: 2rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
}

.pagination a,
.pagination span,
.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.65rem;
	border-radius: var(--theme-radius);
	background: var(--theme-surface);
	border: 1px solid var(--theme-border);
	color: var(--theme-text);
	font-size: 0.9rem;
	font-weight: 500;
}

.pagination a:hover,
.page-numbers:hover {
	border-color: var(--theme-accent);
	color: var(--theme-accent);
}

.pagination .current,
.page-numbers.current {
	background: rgba(37, 99, 235, 0.12);
	border-color: var(--theme-accent);
	color: var(--theme-accent);
}

/* -------------------------------------------------------------------------
   Comments
   ------------------------------------------------------------------------- */
.comments-title {
	font-size: 1.2rem;
	margin: 0 0 1.25rem;
}

.comment-list {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
}

.comment-body {
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--theme-border);
}

.comment-meta {
	font-size: 0.85rem;
	color: var(--theme-muted);
	margin-bottom: 0.5rem;
}

.comment-content {
	font-size: 0.95rem;
}

.comment-reply-link {
	font-size: 0.85rem;
	font-weight: 600;
}

.children {
	list-style: none;
	margin: 0 0 0 1rem;
	padding: 0;
}

@media (min-width: 600px) {
	.children {
		margin-left: 2rem;
	}
}

.comment-respond label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.85rem;
	color: var(--theme-muted);
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--theme-border);
	border-radius: var(--theme-radius);
	background: var(--theme-bg);
	color: var(--theme-text);
	font-family: inherit;
	margin-bottom: 1rem;
}

.comment-respond .submit {
	padding: 0.65rem 1.35rem;
	background: var(--theme-accent-dim);
	border: none;
	border-radius: var(--theme-radius);
	color: #ffffff;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
}

.comment-respond .submit:hover {
	background: var(--theme-accent);
}

/* -------------------------------------------------------------------------
   404
   ------------------------------------------------------------------------- */
.error-404 {
	text-align: center;
	padding: 3rem 1rem;
}

.error-404 .page-title {
	font-size: clamp(2rem, 6vw, 3rem);
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.site-footer {
	margin-top: auto;
	border-top: 1px solid var(--theme-border);
	background: linear-gradient(165deg, var(--theme-surface) 0%, var(--theme-surface-2) 55%, var(--theme-surface) 100%);
	padding: 2.25rem 1.25rem 1.75rem;
}

.footer-inner {
	max-width: var(--theme-max);
	margin: 0 auto;
	font-size: 0.88rem;
	color: var(--theme-muted);
}

.footer-home-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	overflow: hidden;
}

.footer-home-icon--small {
	width: 24px;
	height: 24px;
	border-radius: 6px;
	background: var(--theme-bg);
	border: 1px solid var(--theme-border);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.footer-home-icon__img {
	width: 22px;
	height: 22px;
	object-fit: cover;
	display: block;
}

.footer-home-icon--small .footer-home-icon__fallback {
	font-size: 0.65rem;
	font-weight: 800;
	color: var(--theme-accent);
	line-height: 1;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.75rem 2rem;
	margin-bottom: 2rem;
}

@media (min-width: 560px) {
	.footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 900px) {
	.footer-grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr);
		align-items: start;
	}
}

.footer-col__title {
	position: relative;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--theme-text);
	margin: 0 0 0.9rem;
	padding-bottom: 0.55rem;
	border-bottom: 1px solid var(--theme-border);
}

.footer-col__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 2.25rem;
	height: 2px;
	background: var(--theme-accent);
	border-radius: 1px;
}

.footer-col__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.footer-col__list--categories {
	gap: 0.35rem;
}

.footer-col__list--categories a {
	display: inline-block;
	padding: 0.2rem 0;
	line-height: 1.4;
}

.site-footer a {
	color: var(--theme-text);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.15s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
	color: var(--theme-accent);
}

.site-footer a.is-current {
	color: var(--theme-accent);
	font-weight: 700;
}

.footer-link-placeholder {
	color: var(--theme-muted);
	font-weight: 500;
	cursor: default;
	opacity: 0.75;
}

.site-info-row {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.55rem;
	padding-top: 1.35rem;
	border-top: 1px solid var(--theme-border);
}

.site-info {
	margin: 0;
	font-size: 0.78rem;
	color: var(--theme-muted);
	line-height: 1.4;
}

/* -------------------------------------------------------------------------
   Leverage / margin calculator page
   ------------------------------------------------------------------------- */
.lev-calc-page .lev-calc-lede {
	max-width: 52rem;
	color: var(--theme-muted);
	font-size: 0.95rem;
	margin: 0 0 1.5rem;
}

.lev-calc {
	max-width: 56rem;
}

.lev-calc__panel {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	margin-bottom: 2.5rem;
}

@media (min-width: 900px) {
	.lev-calc__panel {
		grid-template-columns: 1fr 1fr;
		align-items: start;
	}
}

.lev-calc__form-wrap,
.lev-calc__results-wrap {
	background: var(--theme-surface);
	border: 1px solid var(--theme-border);
	border-radius: var(--theme-radius);
	padding: 1.25rem 1.35rem;
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.lev-calc__h2 {
	font-size: 1.05rem;
	margin: 0 0 1rem;
	font-weight: 700;
	color: var(--theme-text);
}

.lev-calc__form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.lev-calc__field label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--theme-text);
	margin-bottom: 0.35rem;
}

.lev-calc__optional {
	font-weight: 500;
	color: var(--theme-muted);
	font-size: 0.8rem;
}

.lev-calc__field input[type="number"],
.lev-calc__field input[type="text"] {
	width: 100%;
	max-width: 100%;
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--theme-border);
	border-radius: var(--theme-radius);
	background: var(--theme-bg);
	color: var(--theme-text);
	font-family: inherit;
	font-size: 1rem;
}

.lev-calc__field--readonly input {
	background: var(--theme-surface-2);
	color: var(--theme-muted);
}

.lev-calc__hint {
	display: block;
	font-size: 0.78rem;
	color: var(--theme-muted);
	margin-top: 0.35rem;
	line-height: 1.45;
}

.lev-calc__fieldset {
	border: none;
	margin: 0;
	padding: 0;
}

.lev-calc__fieldset legend {
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: var(--theme-text);
}

.lev-calc__segment {
	display: inline-flex;
	border-radius: var(--theme-radius);
	border: 1px solid var(--theme-border);
	overflow: hidden;
	background: var(--theme-surface-2);
}

.lev-calc__seg-btn {
	margin: 0;
	padding: 0.55rem 1.25rem;
	border: none;
	background: transparent;
	color: var(--theme-muted);
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.lev-calc__seg-btn:hover,
.lev-calc__seg-btn:focus-visible {
	color: var(--theme-text);
	background: rgba(37, 99, 235, 0.08);
}

.lev-calc__seg-btn.is-active {
	background: var(--theme-accent);
	color: #fff;
}

.lev-calc__seg-btn.is-active:hover,
.lev-calc__seg-btn.is-active:focus-visible {
	background: var(--theme-accent-dim);
	color: #fff;
}

.lev-calc__field--inline {
	margin-top: 0.25rem;
}

.lev-calc__check {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 0.85rem;
	color: var(--theme-text);
	cursor: pointer;
	font-weight: 500;
}

.lev-calc__check input {
	margin-top: 0.2rem;
	flex-shrink: 0;
}

.lev-calc__actions {
	display: flex;
	gap: 0.75rem;
	margin-top: 0.25rem;
}

.lev-calc__btn {
	padding: 0.6rem 1.1rem;
	border-radius: var(--theme-radius);
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid var(--theme-border);
	background: var(--theme-surface);
	color: var(--theme-text);
	transition: background 0.15s ease, border-color 0.15s ease;
}

.lev-calc__btn--ghost:hover,
.lev-calc__btn--ghost:focus-visible {
	border-color: var(--theme-accent);
	color: var(--theme-accent);
	background: rgba(37, 99, 235, 0.06);
}

.lev-calc__results {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.lev-calc__result-row {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.5rem 1rem;
	align-items: baseline;
	padding-bottom: 0.85rem;
	border-bottom: 1px solid var(--theme-border);
}

.lev-calc__result-row:last-of-type {
	border-bottom: none;
	padding-bottom: 0;
}

.lev-calc__result-row dt {
	margin: 0;
	font-size: 0.82rem;
	color: var(--theme-muted);
	font-weight: 600;
}

.lev-calc__result-row dd {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--theme-text);
	text-align: right;
}

.lev-calc__result-row dd.is-profit {
	color: #15803d;
}

.lev-calc__result-row dd.is-loss {
	color: #b91c1c;
}

.lev-calc__disclaimer {
	font-size: 0.78rem;
	color: var(--theme-muted);
	line-height: 1.5;
	margin: 1rem 0 0;
}

.lev-calc__educate,
.lev-calc__glossary {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid var(--theme-border);
}

.lev-calc__educate h2,
.lev-calc__glossary h2 {
	font-size: 1.2rem;
	margin: 0 0 1rem;
}

.lev-calc__educate p,
.lev-calc__glossary p {
	margin: 0 0 1rem;
	color: var(--theme-text);
	max-width: 52rem;
}

.lev-calc__more {
	margin-top: 1.25rem;
}

.lev-calc__more a {
	font-weight: 600;
}

.lev-calc__gloss-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}

@media (min-width: 720px) {
	.lev-calc__gloss-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.lev-calc__gloss-item {
	background: var(--theme-surface);
	border: 1px solid var(--theme-border);
	border-radius: var(--theme-radius);
	padding: 1rem 1.1rem;
}

.lev-calc__gloss-item h3 {
	font-size: 0.95rem;
	margin: 0 0 0.5rem;
	color: var(--theme-text);
}

.lev-calc__gloss-item p {
	font-size: 0.88rem;
	margin: 0;
	color: var(--theme-muted);
	line-height: 1.6;
	max-width: none;
}

/* -------------------------------------------------------------------------
   Coin fee calculator page
   ------------------------------------------------------------------------- */
.fee-calc-page .fee-calc-lede {
	max-width: 52rem;
	color: var(--theme-muted);
	font-size: 0.95rem;
	margin: 0 0 1.5rem;
}

.fee-calc {
	max-width: 56rem;
}

.fee-calc__panel {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	margin-bottom: 2rem;
}

@media (min-width: 900px) {
	.fee-calc__panel {
		grid-template-columns: 1fr 1fr;
		align-items: start;
	}
}

.fee-calc__form-wrap,
.fee-calc__results-wrap {
	background: var(--theme-surface);
	border: 1px solid var(--theme-border);
	border-radius: var(--theme-radius);
	padding: 1.25rem 1.35rem;
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.fee-calc__h2 {
	font-size: 1.05rem;
	margin: 0 0 1rem;
	font-weight: 700;
	color: var(--theme-text);
}

.fee-calc__field {
	margin-bottom: 1.1rem;
}

.fee-calc__field:last-of-type {
	margin-bottom: 0;
}

.fee-calc__label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--theme-text);
	margin-bottom: 0.45rem;
}

.fee-calc__field label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--theme-text);
	margin-bottom: 0.35rem;
}

.fee-calc__field input[type="number"],
.fee-calc__field input[type="text"] {
	width: 100%;
	max-width: 100%;
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--theme-border);
	border-radius: var(--theme-radius);
	background: var(--theme-bg);
	color: var(--theme-text);
	font-family: inherit;
	font-size: 1rem;
}

.fee-calc__hint {
	display: block;
	font-size: 0.78rem;
	color: var(--theme-muted);
	margin-top: 0.35rem;
	line-height: 1.45;
}

.fee-calc__chips-shell {
	background: var(--theme-surface-2);
	border: 1px solid var(--theme-border);
	border-radius: var(--theme-radius);
	padding: 0.65rem;
	overflow: hidden;
}

.fee-calc__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	max-height: 200px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.fee-calc__chip {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
	width: 4.75rem;
	padding: 0.45rem 0.35rem;
	margin: 0;
	border: 1px solid var(--theme-border);
	border-radius: var(--theme-radius);
	background: var(--theme-surface);
	color: var(--theme-text);
	font-family: inherit;
	font-size: 0.68rem;
	line-height: 1.2;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.fee-calc__chip:hover,
.fee-calc__chip:focus-visible {
	border-color: var(--theme-accent);
	background: rgba(37, 99, 235, 0.06);
	outline: none;
}

.fee-calc__chip.is-active {
	border-color: var(--theme-accent);
	box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
	background: rgba(37, 99, 235, 0.08);
	font-weight: 600;
}

.fee-calc__chip-face {
	width: 36px;
	height: 36px;
	border-radius: 9px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--theme-surface-2);
	flex-shrink: 0;
}

.fee-calc__chip-face img {
	width: 36px;
	height: 36px;
	object-fit: contain;
	display: block;
}

.fee-calc__chip-face.is-fallback {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--theme-accent);
	background: rgba(37, 99, 235, 0.12);
}

.fee-calc__chip-caption {
	display: block;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	text-align: center;
	color: var(--theme-muted);
}

.fee-calc__chip.is-active .fee-calc__chip-caption {
	color: var(--theme-text);
}

.fee-calc__selected {
	margin: 0.5rem 0 0;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--theme-text);
}

.fee-calc__segment {
	display: inline-flex;
	border-radius: var(--theme-radius);
	border: 1px solid var(--theme-border);
	overflow: hidden;
	background: var(--theme-surface-2);
}

.fee-calc__seg-btn {
	margin: 0;
	padding: 0.55rem 1.1rem;
	border: none;
	background: transparent;
	color: var(--theme-muted);
	font-family: inherit;
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.fee-calc__seg-btn:hover,
.fee-calc__seg-btn:focus-visible {
	color: var(--theme-text);
	background: rgba(37, 99, 235, 0.08);
}

.fee-calc__seg-btn.is-active {
	background: var(--theme-accent);
	color: #fff;
}

.fee-calc__actions {
	margin-top: 1rem;
}

.fee-calc__btn {
	padding: 0.6rem 1.1rem;
	border-radius: var(--theme-radius);
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid var(--theme-border);
	background: var(--theme-surface);
	color: var(--theme-text);
	transition: background 0.15s ease, border-color 0.15s ease;
}

.fee-calc__btn--ghost:hover,
.fee-calc__btn--ghost:focus-visible {
	border-color: var(--theme-accent);
	color: var(--theme-accent);
	background: rgba(37, 99, 235, 0.06);
}

.fee-calc__results {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.fee-calc__result-row {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.5rem 1rem;
	align-items: baseline;
	padding-bottom: 0.85rem;
	border-bottom: 1px solid var(--theme-border);
}

.fee-calc__result-row:last-of-type {
	border-bottom: none;
	padding-bottom: 0;
}

.fee-calc__result-row dt {
	margin: 0;
	font-size: 0.82rem;
	color: var(--theme-muted);
	font-weight: 600;
}

.fee-calc__result-row dd {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--theme-text);
	text-align: right;
}

.fee-calc__disclaimer {
	font-size: 0.78rem;
	color: var(--theme-muted);
	line-height: 1.5;
	margin: 1rem 0 0;
}

.fee-calc__educate {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid var(--theme-border);
}

.fee-calc__educate h2 {
	font-size: 1.2rem;
	margin: 0 0 1rem;
}

.fee-calc__educate h3 {
	font-size: 1rem;
	margin: 1.5rem 0 0.5rem;
	color: var(--theme-text);
}

.fee-calc__educate p {
	margin: 0 0 1rem;
	color: var(--theme-muted);
	font-size: 0.92rem;
	line-height: 1.65;
	max-width: 52rem;
}

/* Block editor alignment */
.alignwide {
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
}

.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.wp-block-image figcaption {
	font-size: 0.85rem;
	color: var(--theme-muted);
	text-align: center;
	margin-top: 0.5rem;
}
