/*
Theme Name: Blocktide Child
Theme URI: https://blocktidenews.com/
Author: Blocktide
Description: Child of official Blocktide 1.2.0. Restores CoinGecko exchange rankings and the neobank comparison tables, plus /llms.txt and /news-sitemap.xml. The parent theme stays in charge of the design.
Template: blocktide
Version: 1.0.5
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blocktide
*/

/*
 * Ranking / comparison pages. Parent hides .tbl on small screens for the
 * homepage markets module, so these tables use .bt-rank-tbl instead and
 * stay visible with horizontal scroll. Tokens and type come from the parent.
 */
.bt-data {
	padding-block: 40px 60px;
}
.bt-data .page-title {
	margin-bottom: 16px;
}
.bt-data .lede {
	max-width: 72ch;
	margin: 0 0 22px;
}
.bt-rank-tbl {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 16px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.bt-rank-tbl table {
	width: 100%;
	border-collapse: collapse;
	font: 500 13.5px var(--mono);
	min-width: 680px;
}
.bt-rank-tbl.cmp table {
	min-width: 980px;
	font-family: var(--sans);
	font-size: 14.5px;
	line-height: 1.45;
}
.bt-rank-tbl.cmp th,
.bt-rank-tbl.cmp td {
	text-align: left;
	white-space: normal;
	vertical-align: top;
}
.bt-rank-tbl .tl {
	text-align: left;
}
.bt-rank-tbl .ci {
	width: 22px;
	height: 22px;
	display: inline-block;
}
.src-line {
	font: 500 12.5px var(--mono);
	color: var(--mute);
	margin-top: 12px;
}
.src-line a {
	color: var(--ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.src-line code {
	font-family: var(--mono);
	font-size: 12px;
}
.bt-trust {
	display: inline-block;
	min-width: 34px;
	text-align: center;
	padding: 3px 8px;
	border-radius: 6px;
	font-weight: 700;
	background: rgba(0, 229, 160, .12);
	color: var(--neon);
}
.bt-trust.mid {
	background: rgba(255, 194, 75, .12);
	color: #FFC24B;
}
.bt-trust.lo {
	background: rgba(255, 92, 114, .12);
	color: var(--red);
}
.empty-note {
	color: var(--mute);
	font-size: 14.5px;
	padding: 18px;
	border: 1px dashed var(--line);
	border-radius: 12px;
	text-align: center;
	margin-top: 20px;
}
.bt-data .bt-disclaimer {
	margin-top: 18px;
}
.bt-data .bt-disclaimer a {
	color: var(--neon);
}
@media (max-width: 760px) {
	.bt-rank-tbl {
		display: block !important;
	}
}


/* Parent .search{display:none} also matches <body class="search"> and blanks results. */
body.search,
body.search-results {
	display: block !important;
	padding: 0;
	border: 0;
}
#search.search {
	display: none;
}
#search.search.open {
	display: block;
}

/* Ranking tables: fit the card. Website shows the hostname only (see template).
   Rank numbers 10+ must stay visible. Headers may wrap; cells stay one line. */
.bt-rank-tbl {
	overflow-x: auto !important;
	max-width: 100%;
}
.bt-rank-tbl table {
	width: 100% !important;
	min-width: 0 !important;
	table-layout: auto !important;
}
.bt-rank-tbl th {
	white-space: normal !important;
	overflow: visible !important;
	text-overflow: unset !important;
	line-height: 1.25;
}
.bt-rank-tbl td {
	white-space: nowrap !important;
	overflow: visible !important;
	text-overflow: unset !important;
}
.bt-rank-tbl th:nth-child(1),
.bt-rank-tbl td:nth-child(1) {
	width: 3em;
	text-align: right;
}
.bt-rank-tbl a.bt-site {
	color: var(--neon);
	text-shadow: none;
	display: inline;
	white-space: nowrap;
}
.bt-rank-tbl.cmp table {
	min-width: 980px !important;
	table-layout: auto !important;
}
.bt-rank-tbl.cmp th,
.bt-rank-tbl.cmp td {
	white-space: normal !important;
	overflow: visible !important;
	width: auto;
}

/* Website layout, not app chrome. Overrides parent mobile.css tab bar / bottom sheet. */
.tabbar {
	display: none !important;
}
@media (max-width: 760px) {
	body {
		padding-bottom: 0;
	}
	.ticker,
	.pulse {
		display: block;
	}
	.burger {
		display: grid !important;
	}
	.mast nav,
	.mast > .btn {
		display: none;
	}
	footer {
		padding-bottom: 24px;
	}
	.drawer {
		position: static !important;
		left: auto !important;
		right: auto !important;
		bottom: auto !important;
		z-index: auto !important;
		border-radius: 0 !important;
		background: var(--bg, #070b14) !important;
		max-height: none !important;
		overflow: visible !important;
		padding-bottom: 0 !important;
		box-shadow: none !important;
		border-top: 1px solid var(--line, rgba(255, 255, 255, 0.08));
	}
	.drawer .wrap::before {
		display: none !important;
	}
}

/* CookieYes: slim full-width bar at the bottom, no overlay, does not cover the story. */
.cky-overlay {
	display: none !important;
	pointer-events: none !important;
}
.cky-consent-container,
.cky-consent-container.cky-banner-bottom,
.cky-consent-container.cky-banner-top,
.cky-consent-container.cky-box-bottom-left,
.cky-consent-container.cky-box-bottom-right,
.cky-consent-container.cky-box-top-left,
.cky-consent-container.cky-box-top-right {
	position: fixed !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	top: auto !important;
	width: 100% !important;
	max-width: none !important;
	transform: none !important;
	border-radius: 0 !important;
	z-index: 40 !important;
}
.cky-consent-container .cky-consent-bar {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	border-radius: 0 !important;
	border-left: 0 !important;
	border-right: 0 !important;
	border-bottom: 0 !important;
	padding: 10px 16px !important;
	box-sizing: border-box !important;
}
.cky-consent-bar .cky-notice {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
}
.cky-notice .cky-title {
	font-size: 14px !important;
	line-height: 1.3 !important;
	margin: 0 !important;
}
.cky-notice-group {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 8px 16px !important;
	flex: 1 1 280px;
}
.cky-custom-brand-logo-wrapper,
.cky-notice .cky-title,
.cky-notice-des,
.cky-notice-btn-wrapper {
	padding: 0 !important;
}
.cky-notice-des {
	font-size: 13px !important;
	line-height: 1.35 !important;
	flex: 1 1 220px;
	min-width: 0;
}
.cky-notice-des p {
	margin: 0 !important;
}
.cky-notice-btn-wrapper {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	margin: 0 !important;
	gap: 8px !important;
}
.cky-notice-btn-wrapper .cky-btn {
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 8px 14px !important;
	flex: none !important;
	white-space: nowrap !important;
}
.cky-policy[href="#"] {
	display: none;
}

/* Keep the lead headline and page content above the bar. */
body:has(.cky-consent-container:not(.cky-hide)) {
	padding-bottom: 76px;
}
body:has(.cky-consent-container:not(.cky-hide)) .lead .txt {
	padding-bottom: calc(clamp(20px, 3vw, 36px) + 76px);
}
@media (max-width: 760px) {
	.cky-notice-des {
		display: none !important;
	}
	.cky-consent-container .cky-consent-bar {
		padding: 10px 12px !important;
	}
	.cky-notice .cky-title {
		font-size: 13px !important;
		margin: 0 !important;
	}
	.cky-notice-btn-wrapper .cky-btn {
		padding: 8px 10px !important;
		font-size: 13px !important;
	}
	body:has(.cky-consent-container:not(.cky-hide)) {
		padding-bottom: 64px;
	}
	body:has(.cky-consent-container:not(.cky-hide)) .lead .txt {
		padding-bottom: calc(16px + 64px);
	}
}


/* Slim ticker and market cards. Not a fat tape. */
.ticker .track {
	padding: 4px 0;
	gap: 22px;
	font-size: 12px;
	line-height: 1;
}
.ticker .track .ci {
	width: 12px;
	height: 12px;
	margin-right: 4px;
	vertical-align: -1px;
}
.ticker .track b {
	margin-right: 5px;
}
.pulse .wrap {
	padding-block: 4px;
	font-size: 11.5px;
	gap: 18px;
}
.ov {
	gap: 10px;
	padding-block: 4px 16px;
}
.ov-card {
	min-height: 0;
	padding: 10px 12px 8px;
	gap: 4px;
	border-radius: 12px;
}
.ov-lbl {
	font-size: 11.5px;
	gap: 6px;
}
.ov-lbl img {
	width: 16px;
	height: 16px;
}
.ov-big {
	font-size: clamp(20px, 2vw, 24px);
	line-height: 1.05;
}
.ov-num {
	font-size: 18px;
}
.ov-spark {
	position: relative;
	left: auto;
	right: auto;
	bottom: auto;
	height: 28px;
	margin-top: 2px;
}
.dom,
.fg-bar {
	height: 5px;
	margin-top: 4px;
}
.fg-bar b {
	width: 10px;
	height: 10px;
	border-width: 2px;
}
.ov-card.main .dom-l {
	font-size: 11.5px;
}
@media (max-width: 760px) {
	.ticker .track {
		padding: 3px 0;
		font-size: 11.5px;
	}
	.ov-card,
	.ov-card.main {
		min-height: 0;
		padding: 10px 12px;
		flex-basis: 68%;
	}
	.m-chip {
		padding: 8px 12px;
		min-width: 0;
		border-radius: 12px;
	}
}
