@media (max-width: 1024px) {
	.primary-nav { display: none; }
	.hot-grid { grid-template-columns: repeat(2, 1fr); }
	.hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.news-grid, .related-grid { grid-template-columns: 1fr 1fr; }
	.header-inner { grid-template-columns: auto minmax(0, 1fr) auto; }
	.logo { min-width: 0; }
	.logo__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (min-width: 768px) and (max-width: 1024px) {
	.primary-nav { display: block; grid-column: 1 / -1; }
	.primary-nav .menu { justify-content: flex-start; flex-wrap: wrap; row-gap: 4px; }
}

@media (max-width: 1024px) {
	.site-header { height: auto; }
	.header-inner { height: auto; min-height: var(--header); padding: 8px 0; }
}

@media (max-width: 767px) {
	:root { --header: 56px; }
	.global-search { display: none; }
	.global-search.is-open {
		display: block;
		position: fixed;
		z-index: 80;
		left: 0;
		right: 0;
		top: 0;
		padding: 12px 16px 16px;
		background: var(--navy);
	}
	.search-close { display: inline-flex; margin-top: 8px; background: transparent; color: #fff; border: 0; }
	.hero { padding-top: 28px; }
	.hero h1 { font-size: 30px; }
	.hero-stats, .board, .hot-grid, .news-grid, .related-grid, .convert-out, .converter__fields { grid-template-columns: minmax(0, 1fr); }
	.header-inner { grid-template-columns: minmax(0, 1fr) auto; }
	.tabbar { display: grid; }
	body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
	.coin-chart { height: 280px; }
	.price { font-size: 32px; }
	.coin-table thead { display: none; }
	.coin-table, .coin-table tbody, .coin-table tr, .coin-table td { display: block; width: 100%; }
	.coin-table tr {
		padding: 8px 0 12px;
		border-bottom: 1px solid var(--line);
	}
	.coin-table td {
		display: flex;
		justify-content: space-between;
		gap: 12px;
		text-align: right;
		border: 0;
		padding: 6px 16px;
		white-space: normal;
	}
	.coin-table td::before {
		content: attr(data-label);
		color: var(--muted);
		font-size: 13px;
	}
	.coin-table td:nth-child(2) { padding-top: 12px; }
	.hero h1, .page-head h1 { overflow-wrap: anywhere; }
	.entry-content { overflow-wrap: break-word; }
	.entry-content img, .entry-content table, .entry-content pre { max-width: 100%; }
	.entry-content table { display: block; overflow-x: auto; }
	.convert-out dd { font-size: 18px; overflow-wrap: anywhere; }
	.section__head { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation: none !important;
		transition: none !important;
	}
}
