/*!
 * BlockTicker — Skeleton chrome stylesheet
 * v119.28.43
 *
 * Self-contained styling for the new layout pipeline. Reuses the design
 * tokens already established in bt-tokens.css; redeclares them here scoped
 * to body.bt-skeleton so this file works even when bt-tokens.css doesn't
 * load (e.g. during admin previews).
 *
 * Component prefixes:
 *   .bt-skeleton__*    — skeleton.php structural elements (header, main, footer)
 *   .bt-header__*      — Header_Region_Widget
 *   .bt-footer__*      — Footer_Region_Widget
 *   .bt-menu__*        — Menu_Builder_Widget
 *
 * No inline styles. No !important. Component-scoped only.
 */

/* ============================================================================
   §1  Design tokens (scoped to skeleton body)
   ============================================================================ */

body.bt-skeleton {
	--bt-bg-page:       #0A0B0D;
	--bt-bg-elev-1:     #11141A;
	--bt-bg-elev-2:     #161A22;
	--bt-text-1:        #F8FAFC;
	--bt-text-2:        #E2E8F0;
	--bt-text-3:        #CBD5E1;
	--bt-text-4:        #9DAAC0;
	--bt-border-1:      rgba(255, 255, 255, 0.06);
	--bt-border-2:      rgba(255, 255, 255, 0.10);
	--bt-accent:        #00FF66;
	--bt-accent-hover:  #22FF7E;
	--bt-accent-soft:   rgba(0, 255, 102, 0.10);
	--bt-radius-sm:     6px;
	--bt-radius-md:     10px;
	--bt-radius-lg:     14px;
	--bt-container:     1400px;
	--bt-header-h:      64px;
	--bt-dur:           0.20s;
	--bt-ease:          cubic-bezier(0.16, 1, 0.3, 1);
	--bt-font:          system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ============================================================================
   §2  Page reset (skeleton-only — does not affect non-skeleton pages)
   ============================================================================ */

body.bt-skeleton {
	margin: 0;
	background: var(--bt-bg-page);
	color: var(--bt-text-3);
	font-family: var(--bt-font);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

body.bt-skeleton a {
	color: var(--bt-text-2);
	text-decoration: none;
	transition: color var(--bt-dur) var(--bt-ease);
}

body.bt-skeleton a:hover,
body.bt-skeleton a:focus-visible {
	color: var(--bt-accent);
}

body.bt-skeleton :focus-visible {
	outline: 2px solid var(--bt-accent);
	outline-offset: 2px;
	border-radius: var(--bt-radius-sm);
}

/* ============================================================================
   §3  Skeleton structural elements (skeleton.php)
   ============================================================================ */

.bt-skeleton__header {
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--bt-header-h);
	background: rgba(10, 11, 13, 0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--bt-border-1);
}

.bt-main.bt-main {
	display: block;
	max-width: var(--bt-container);
	margin: 0 auto;
	padding: 32px 20px 64px;
	min-height: calc(100vh - var(--bt-header-h) - 200px);
}

.bt-skeleton__article {
	max-width: 100%;
}

.bt-skeleton__title {
	font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
	font-weight: 700;
	color: var(--bt-text-1);
	margin: 0 0 24px;
	line-height: 1.2;
}

.bt-skeleton__content {
	color: var(--bt-text-3);
	font-size: 1.0625rem;
}

/* Article body: long-form reading typography for blog posts.
   Applies inside .bt-skeleton__content — i.e. only on skeleton-rendered
   pages. Legacy mode is unaffected; v45 will fix article styling there. */

.bt-skeleton__article {
	max-width: 720px;
	margin: 0 auto;
}

.bt-skeleton__article .bt-skeleton__title {
	max-width: 100%;
}

.bt-skeleton__content {
	font-size: 1.125rem;
	line-height: 1.7;
}

.bt-skeleton__content > * + * {
	margin-top: 1.4em;
}

.bt-skeleton__content :is(h2, h3, h4, h5, h6) {
	color: var(--bt-text-1);
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: -0.01em;
	margin-top: 2em;
	margin-bottom: 0.5em;
}

.bt-skeleton__content h2 { font-size: 1.75rem; }
.bt-skeleton__content h3 { font-size: 1.4rem; }
.bt-skeleton__content h4 { font-size: 1.15rem; }

.bt-skeleton__content p {
	margin: 0;
}

.bt-skeleton__content a {
	color: var(--bt-accent);
	text-decoration: underline;
	text-decoration-color: rgba(0, 255, 102, 0.4);
	text-underline-offset: 3px;
	transition: text-decoration-color var(--bt-dur) var(--bt-ease);
}

.bt-skeleton__content a:hover,
.bt-skeleton__content a:focus-visible {
	text-decoration-color: var(--bt-accent);
}

.bt-skeleton__content :is(strong, b) {
	color: var(--bt-text-1);
	font-weight: 600;
}

.bt-skeleton__content blockquote {
	margin: 1.6em 0;
	padding: 16px 20px;
	border-left: 3px solid var(--bt-accent);
	background: var(--bt-bg-elev-1);
	color: var(--bt-text-2);
	font-style: italic;
	border-radius: 0 var(--bt-radius-md) var(--bt-radius-md) 0;
}

.bt-skeleton__content blockquote p {
	margin: 0;
}

.bt-skeleton__content :is(ul, ol) {
	padding-left: 1.5em;
	margin: 0;
}

.bt-skeleton__content li + li {
	margin-top: 0.4em;
}

.bt-skeleton__content li::marker {
	color: var(--bt-accent);
}

.bt-skeleton__content code {
	font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace;
	font-size: 0.9em;
	background: var(--bt-bg-elev-2);
	color: var(--bt-text-1);
	padding: 2px 6px;
	border-radius: var(--bt-radius-sm);
}

.bt-skeleton__content pre {
	background: var(--bt-bg-elev-2);
	border: 1px solid var(--bt-border-1);
	padding: 16px 20px;
	border-radius: var(--bt-radius-md);
	overflow-x: auto;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.bt-skeleton__content pre code {
	background: transparent;
	padding: 0;
}

.bt-skeleton__content img,
.bt-skeleton__content figure {
	max-width: 100%;
	height: auto;
	border-radius: var(--bt-radius-md);
}

.bt-skeleton__content figure {
	margin: 1.6em 0;
}

.bt-skeleton__content figcaption {
	margin-top: 8px;
	font-size: 0.875rem;
	color: var(--bt-text-4);
	text-align: center;
}

.bt-skeleton__content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.bt-skeleton__content :is(th, td) {
	padding: 10px 14px;
	text-align: left;
	border-bottom: 1px solid var(--bt-border-1);
}

.bt-skeleton__content th {
	color: var(--bt-text-1);
	font-weight: 600;
	background: var(--bt-bg-elev-1);
}

.bt-skeleton__content hr {
	border: 0;
	border-top: 1px solid var(--bt-border-2);
	margin: 2.4em 0;
}

.bt-skeleton__empty {
	padding: 48px 0;
	text-align: center;
	color: var(--bt-text-4);
}

.bt-skeleton__footer {
	border-top: 1px solid var(--bt-border-1);
	background: var(--bt-bg-elev-1);
	margin-top: 48px;
}

/* ============================================================================
   §4  Header_Region_Widget
   ============================================================================ */

.bt-header__inner {
	max-width: var(--bt-container);
	margin: 0 auto;
	padding: 0 20px;
	height: 100%;
	display: flex;
	align-items: center;
	gap: 32px;
}

.bt-header__brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--bt-text-1);
	font-weight: 700;
	font-size: 1.0625rem;
	letter-spacing: -0.01em;
	flex-shrink: 0;
}

.bt-header__brand:hover,
.bt-header__brand:focus-visible {
	color: var(--bt-accent);
}

.bt-header__logo {
	width: 32px;
	height: 32px;
	border-radius: var(--bt-radius-sm);
	display: block;
}

.bt-header__mark {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--bt-accent);
	color: var(--bt-bg-page);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	box-shadow: 0 0 24px var(--bt-accent-soft);
}

.bt-header__name {
	white-space: nowrap;
}

.bt-header__nav {
	flex: 1;
}

.bt-header__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 4px;
	align-items: center;
}

.bt-header__menu > li {
	position: relative;
}

.bt-header__menu a,
.bt-header__menu-link {
	display: block;
	padding: 8px 14px;
	color: var(--bt-text-3);
	font-weight: 500;
	font-size: 0.9375rem;
	border-radius: var(--bt-radius-sm);
	transition: background-color var(--bt-dur) var(--bt-ease), color var(--bt-dur) var(--bt-ease);
}

.bt-header__menu a:hover,
.bt-header__menu a:focus-visible,
.bt-header__menu .current-menu-item > a {
	background: var(--bt-accent-soft);
	color: var(--bt-text-1);
}

/* sub-menus */
.bt-header__menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 8px;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: var(--bt-bg-elev-2);
	border: 1px solid var(--bt-border-2);
	border-radius: var(--bt-radius-md);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
	display: none;
}

.bt-header__menu li:hover > .sub-menu,
.bt-header__menu li:focus-within > .sub-menu {
	display: block;
}

.bt-header__cta {
	display: inline-flex;
	align-items: center;
	padding: 9px 16px;
	background: var(--bt-accent);
	color: var(--bt-bg-page) !important;
	font-weight: 600;
	font-size: 0.9375rem;
	border-radius: var(--bt-radius-sm);
	flex-shrink: 0;
	transition: background-color var(--bt-dur) var(--bt-ease);
}

.bt-header__cta:hover,
.bt-header__cta:focus-visible {
	background: var(--bt-accent-hover);
}

/* mobile toggle */
.bt-header__toggle {
	display: none;
	width: 40px;
	height: 40px;
	background: transparent;
	border: 1px solid var(--bt-border-2);
	border-radius: var(--bt-radius-sm);
	cursor: pointer;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 4px;
	padding: 0;
}

.bt-header__toggle span {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--bt-text-2);
}

@media (max-width: 880px) {
	.bt-header__nav {
		position: fixed;
		top: var(--bt-header-h);
		left: 0;
		right: 0;
		background: var(--bt-bg-elev-1);
		border-bottom: 1px solid var(--bt-border-1);
		padding: 16px;
		display: none;
	}
	.bt-header__nav[data-open="true"] {
		display: block;
	}
	.bt-header__menu {
		flex-direction: column;
		align-items: stretch;
	}
	.bt-header__menu a {
		padding: 12px 14px;
	}
	.bt-header__cta {
		display: none;
	}
	.bt-header__toggle {
		display: inline-flex;
	}
}

/* ============================================================================
   §5  Footer_Region_Widget
   ============================================================================ */

.bt-footer__inner {
	max-width: var(--bt-container);
	margin: 0 auto;
	padding: 40px 20px;
	display: grid;
	gap: 24px;
}

.bt-footer__brand {
	display: flex;
	align-items: baseline;
	gap: 12px;
	flex-wrap: wrap;
}

.bt-footer__name {
	color: var(--bt-text-1);
	font-weight: 700;
	font-size: 1.0625rem;
}

.bt-footer__copyright {
	color: var(--bt-text-4);
	font-size: 0.875rem;
}

.bt-footer__nav .bt-footer__menu,
.bt-footer__nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
}

.bt-footer__nav a {
	color: var(--bt-text-3);
	font-size: 0.9375rem;
	padding: 4px 0;
}

.bt-footer__disclaimer {
	color: var(--bt-text-4);
	font-size: 0.8125rem;
	max-width: 90ch;
	margin: 0;
	line-height: 1.5;
}

/* ============================================================================
   §6  Menu_Builder_Widget (standalone)
   ============================================================================ */

.bt-menu .bt-menu__list,
.bt-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 4px;
}

.bt-menu a {
	display: block;
	padding: 8px 14px;
	color: var(--bt-text-3);
	font-weight: 500;
	font-size: 0.9375rem;
	border-radius: var(--bt-radius-sm);
}

.bt-menu a:hover,
.bt-menu a:focus-visible {
	background: var(--bt-accent-soft);
	color: var(--bt-text-1);
}

/* ============================================================================
   §99  v44.0.3 — flush legacy chrome to top of viewport
   ============================================================================
   When skeleton mode delegates the header to BT_LandingRevamp::render_chrome_only(),
   the legacy chrome is wrapped in our widget envelope and rendered immediately
   inside <body>. Some themes inject default body padding/margin that pushes the
   orange compliance strip down a few pixels — visible in production testing as
   a small gap above the disclaimer bar. Zero out body spacing in skeleton mode
   so the chrome flushes to the top exactly as it does in legacy mode. The
   bt-site-takeover class is also added by Layout_Manager::add_body_class so the
   existing legacy CSS rules that target it apply consistently. */

body.bt-skeleton {
	margin: 0 !important;
	padding-top: 0 !important;
}

body.bt-skeleton .bt-widget--header-region-legacy {
	margin-top: 0;
}

/* If the WP admin bar is showing, leave room for it — same offset legacy uses. */
body.bt-skeleton.admin-bar {
	padding-top: 32px !important;
}
@media screen and (max-width: 782px) {
	body.bt-skeleton.admin-bar {
		padding-top: 46px !important;
	}
}

/* ============================================================================
   §100  v44.0.4 — table header visibility + footer copyright color + body reset
   ============================================================================
   Three fixes informed by post-v44.0.3 production screenshots: */

/* (a) Belt-and-braces on body padding. critical-fixes.css ships at priority
   99999 with `body{padding-top:56px}`; bt-skeleton.css ships at 100001 so we
   print after it. Plus extra specificity via .bt-skeleton class. */
body.bt-skeleton.bt-skeleton {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

/* (b) Crypto table thead — sometimes hidden by upstream "hide GP defaults"
   blocks that match `thead` too aggressively. Force visible in skeleton mode. */
body.bt-skeleton .fxlm-table thead,
body.bt-skeleton .fxlm-table thead tr,
body.bt-skeleton .fxlm-table thead th {
	display: revert !important;
	visibility: visible !important;
}

body.bt-skeleton .fxlm-table thead {
	background: #151a30;
}

body.bt-skeleton .fxlm-table thead th {
	padding: 14px 16px;
	color: #5a6478;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	border-bottom: 1px solid #1e2440;
	text-align: left;
}

/* v44.10: increase top padding so the table's first row isn't hidden behind
   the sticky nav. Legacy chrome stacks at: disclaimer (~40px) + ticker (~40px)
   + nav row (~64px) ≈ 144px total. Only the nav row is `position: sticky` —
   so when the user scrolls past the disclaimer/ticker, only the nav (~64px)
   covers the content area. 100px gives a ~36px breathing zone below the
   sticky nav so the first table row is fully visible during scroll, and a
   generous gap on initial page load before scroll. */
body.bt-skeleton .bt-main {
	padding-top: 100px;
}

body.bt-skeleton .bt-widget--crypto-table {
	margin-top: 0;
}

/* (c) Footer copyright row in legacy footer — user explicitly asked for
   gray instead of white. The legacy `.foot__bottom { color: var(--text-5) }`
   relies on landing-revamp.css's --text-5 token; we force the gray here too
   so a missing-token fallback to white doesn't bite us. */
body.bt-skeleton .foot__bottom,
body.bt-skeleton .foot__bottom * {
	color: #71717a !important;
}

body.bt-skeleton .foot__bottom a {
	color: #71717a !important;
}

body.bt-skeleton .foot__bottom a:hover,
body.bt-skeleton .foot__bottom a:focus-visible {
	color: #a1a1aa !important;
}
