/*
Theme Name: TradeIndices
Theme URI: https://tradeindices.net
Author: TradeIndices
Description: Lead-focused indices signals and analysis theme. Clean light design with live TradingView ticker, charts and heatmap, automatic daily key levels, Fluent Forms lead form, per-page FAQs with FAQ schema, Yoast SEO ready, and colours, fonts and community links editable from the Customizer.
Version: 1.7.2
Requires at least: 6.6
Tested up to: 6.8
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: tradeindices
*/

/* ---------- Tokens (overridden by the Customizer) ---------- */
:root {
	--ti-bg: #ffffff;
	--ti-surface: #ffffff;
	--ti-text: #3a3a3c;
	--ti-heading: #0a0a0a;
	--ti-accent: #e61e1e;
	--ti-accent2: #0a8f5f;
	--ti-font-heading: "DM Sans", system-ui, sans-serif;
	--ti-font-body: "DM Sans", system-ui, sans-serif;
	--ti-font-size: 17px;

	--ti-container: 1200px;
	--ti-gutter: clamp(16px, 4vw, 32px);
	--ti-radius: 20px;
	--ti-radius-sm: 12px;
	--ti-whatsapp: #1fae54;
	--ti-telegram: #2298d6;
	--ti-down: #d92d20;
}
/* Derived colours. Re-declared on dark blocks so everything inside adapts. */
:root, .ti-dark {
	--ti-border: color-mix(in srgb, var(--ti-heading) 12%, transparent);
	--ti-muted: color-mix(in srgb, var(--ti-text) 72%, var(--ti-bg));
	--ti-soft: color-mix(in srgb, var(--ti-heading) 4%, var(--ti-bg));
}
.ti-dark {
	--ti-bg: #0a0a0a;
	--ti-surface: #17171a;
	--ti-text: #d2d2d7;
	--ti-heading: #ffffff;
	background: #0a0a0a;
	color: var(--ti-text);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
	margin: 0;
	background: var(--ti-bg);
	color: var(--ti-text);
	font-family: var(--ti-font-body);
	font-size: var(--ti-font-size);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--ti-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--ti-font-heading);
	color: var(--ti-heading);
	font-weight: 700;
	line-height: 1.15;
	margin: 0 0 .55em;
	letter-spacing: -.02em;
	text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.035em; line-height: 1.05; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -.03em; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
hr, .wp-block-separator { border: 0; border-top: 1px solid var(--ti-border); margin-block: 2.5rem; }
blockquote { margin-block: 1.5em; padding: .4em 0 .4em 1.2em; border-left: 3px solid var(--ti-accent); color: var(--ti-heading); }
:focus-visible { outline: 2px solid var(--ti-accent); outline-offset: 2px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ti-skip { position: absolute; left: -999px; top: 8px; background: var(--ti-accent); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 1000; }
.ti-skip:focus { left: 8px; }

.ti-container { width: 100%; max-width: calc(var(--ti-container) + 2 * var(--ti-gutter)); margin-inline: auto; padding-inline: var(--ti-gutter); }
.ti-section { padding-block: clamp(40px, 6vw, 80px); }

/* ---------- Buttons ---------- */
.ti-btn, .wp-block-button__link, .ff-btn-submit, .search-submit {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 50px; padding: 12px 26px;
	border: 1.5px solid transparent; border-radius: 999px;
	font-family: var(--ti-font-body); font-size: 1rem; font-weight: 600; line-height: 1.2;
	color: #fff; background: var(--ti-accent);
	cursor: pointer; text-decoration: none !important;
	transition: transform .15s ease, filter .15s ease, background-color .15s ease;
}
.ti-btn:hover, .wp-block-button__link:hover, .ff-btn-submit:hover { filter: brightness(1.08); transform: translateY(-1px); color: #fff; }
.ti-btn--sm { min-height: 42px; padding: 9px 20px; font-size: .93rem; }
.ti-btn--whatsapp { background: var(--ti-whatsapp); }
.ti-btn--telegram { background: var(--ti-telegram); }
.ti-btn--contact, .is-style-outline .wp-block-button__link {
	background: transparent; color: var(--ti-heading); border-color: color-mix(in srgb, var(--ti-heading) 35%, transparent);
}
.ti-btn--contact:hover, .is-style-outline .wp-block-button__link:hover { color: var(--ti-heading); background: color-mix(in srgb, var(--ti-heading) 6%, transparent); }
.ti-btn svg { flex: none; }
.ti-header__cta { white-space: nowrap; }
.ti-cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 1.2em; }
.ti-cta-buttons--center { justify-content: center; }
.ti-cta-buttons--stack { flex-direction: column; }
.ti-cta-buttons--stack .ti-btn { width: 100%; }

/* ---------- Top notice + header ---------- */
.ti-topbar { background: #0a0a0a; color: #e5e5e7; font-size: .78rem; line-height: 1.45; text-align: center; padding: 8px 0; }
.ti-topbar p { margin: 0; }
.ti-header {
	position: sticky; top: 0; z-index: 100;
	background: color-mix(in srgb, var(--ti-bg) 92%, transparent);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--ti-border);
}
.ti-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 70px; }
.ti-brand__link { display: inline-flex; align-items: center; gap: 10px; color: var(--ti-heading); text-decoration: none !important; }
.ti-brand__name { font-family: var(--ti-font-heading); font-weight: 700; font-size: 1.4rem; letter-spacing: -.035em; white-space: nowrap; }
.ti-brand__name span { color: var(--ti-accent); }
.ti-brand__link svg { flex: none; }
.custom-logo { display: block; max-height: 46px; width: auto; }
.ti-nav { display: flex; align-items: center; gap: 18px; }
.ti-menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.ti-menu li { position: relative; }
.ti-menu a { display: block; white-space: nowrap; padding: 10px 12px; border-radius: 999px; color: var(--ti-text); font-size: .95rem; font-weight: 500; text-decoration: none; }
.ti-menu a:hover, .ti-menu .current-menu-item > a, .ti-menu .current_page_item > a, .ti-menu .current-menu-ancestor > a { color: var(--ti-heading); background: var(--ti-soft); }
.ti-menu .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 220px; margin: 0; padding: 8px; list-style: none;
	background: var(--ti-surface); border: 1px solid var(--ti-border); border-radius: 16px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, .14);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease;
}
.ti-menu .sub-menu a { border-radius: 10px; }
.ti-menu li:hover > .sub-menu, .ti-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.ti-menu .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.ti-nav-toggle { display: none; background: none; border: 1px solid var(--ti-border); border-radius: 12px; color: var(--ti-heading); padding: 8px; cursor: pointer; line-height: 0; }

.ti-tickerbar { border-bottom: 1px solid var(--ti-border); background: var(--ti-bg); min-height: 47px; overflow: hidden; }
.ti-tickerbar .ti-tv { min-height: 46px; }
.ti-tickerbar .ti-tv__loading { padding: 12px var(--ti-gutter); border: 0; min-height: 0; justify-content: flex-start; }

/* ---------- Cards & small parts ---------- */
.ti-card { background: var(--ti-surface); border: 1px solid var(--ti-border); border-radius: var(--ti-radius); padding: clamp(18px, 2.4vw, 28px); }
.ti-tag, .ti-eyebrow {
	display: inline-block; margin: 0 0 14px; padding: 5px 13px; border-radius: 999px;
	font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; text-decoration: none !important;
	color: var(--ti-accent); background: color-mix(in srgb, var(--ti-accent) 9%, transparent);
}
.ti-muted, .ti-note { color: var(--ti-muted); font-size: .9rem; }
.ti-admin-note { margin: 12px 0 0; padding: 10px 12px; border: 1px dashed #b98900; border-radius: 8px; color: #b98900; font-size: .85rem; }

/* ---------- TradingView widgets ---------- */
.ti-tv { position: relative; width: 100%; }
.ti-tv--framed { border: 1px solid var(--ti-border); border-radius: var(--ti-radius); overflow: hidden; background: var(--ti-surface); }
.ti-tv .tradingview-widget-container, .ti-tv .tradingview-widget-container__widget { width: 100%; height: 100%; }
.ti-tv iframe { display: block; }
.ti-tv__loading { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 46px; color: var(--ti-muted); font-size: .9rem; }
.ti-tv.is-loaded > .ti-tv__loading { display: none; }
.ti-content .ti-tv { margin-bottom: 1.4em; }

/* ---------- Page content (block editor output) ----------
   Every direct child is centred in the same 1200px column so headings, text,
   tables, charts and buttons always line up. Only margin-left/right are set
   here, so block styles can still control vertical spacing. */
.ti-content--page > :not(.alignfull),
.ti-content--page > .alignfull > * {
	max-width: var(--ti-container);
	width: calc(100% - 2 * var(--ti-gutter));
	margin-left: auto;
	margin-right: auto;
}
.ti-content--page > .alignwide { max-width: 1360px; }
.ti-content--page > .alignfull { max-width: none; width: 100%; }
.ti-content--page > :first-child:not(.alignfull) { margin-top: clamp(32px, 5vw, 56px); }
.ti-content--page > :last-child:not(.alignfull) { margin-bottom: clamp(32px, 5vw, 56px); }
.ti-content > .wp-block-group.alignfull { padding-block: clamp(44px, 6.5vw, 88px); margin-block: 0; }
.ti-content--page h2 { margin-top: 1em; }
.ti-content--page .wp-block-group h2, .ti-content--page > h2:first-child { margin-top: 0; }
.ti-section--alt { background: var(--ti-soft); }
.ti-section-head, .ti-hero__intro { margin-left: auto; margin-right: auto; }
.ti-section-head { max-width: 780px !important; text-align: center; margin-bottom: clamp(24px, 3vw, 40px); }
.ti-section-head p { color: var(--ti-muted); font-size: 1.08rem; }
.ti-section-head .ti-cta-buttons { justify-content: center; }
.ti-content .wp-block-columns { display: flex; flex-wrap: nowrap; gap: clamp(18px, 2.5vw, 32px); margin-bottom: 1.4em; }
.ti-content .wp-block-column { flex: 1 1 0; min-width: 0; }
.ti-content .wp-block-columns.are-vertically-aligned-center, .ti-align-center { align-items: center; }
.ti-content .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 1.2em; }
.ti-content .has-text-align-center { text-align: center; }
.ti-content .wp-block-image { margin-top: 0; margin-bottom: 1.4em; }
.ti-content .wp-block-image img { display: block; width: 100%; border-radius: var(--ti-radius); }
.ti-content li { margin-bottom: .4em; }
.ti-content li::marker { color: var(--ti-accent); }

/* Hero */
.ti-hero { text-align: center; padding-bottom: clamp(28px, 4vw, 48px) !important; }
.ti-hero__intro { max-width: 920px !important; margin-bottom: clamp(24px, 3vw, 40px); }
.ti-hero__lead { font-size: clamp(1.08rem, 1.7vw, 1.3rem); max-width: 640px; margin-inline: auto; color: var(--ti-text); }
.ti-hero__intro .ti-cta-buttons { justify-content: center; }
.ti-hero__intro .ti-note { margin-bottom: 0; }
.ti-hero__intro .ti-cta-buttons:last-child { margin-bottom: 0; }

/* Dark rounded feature panel */
.ti-panel {
	border-radius: 32px; padding: clamp(20px, 4vw, 52px); text-align: left;
	background: radial-gradient(90% 120% at 0% 0%, #26262b 0%, #0a0a0a 60%);
}
.ti-panel .wp-block-columns { margin-bottom: 0; }
/* Core forces align-items on columns, so centre each column itself. */
.ti-panel .wp-block-column, .ti-align-center > .wp-block-column { align-self: center; }
.ti-panel .wp-block-image img { max-width: 600px; margin-inline: auto; }
.ti-panel .wp-block-group__inner-container { width: 100%; max-width: none; }
.ti-panel .wp-block-image { margin-bottom: 0; }
.ti-panel .wp-block-image img { border-radius: 0; }
.ti-panel h2, .ti-panel h3 { color: #fff; }

.ti-checks { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 10px; }
.ti-checks li { position: relative; padding-left: 32px; margin: 0; }
.ti-checks li::before {
	content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
	background: var(--ti-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.5 3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat;
}

/* Feature / index cards built from Columns */
.ti-cards > .wp-block-column {
	background: var(--ti-surface); border: 1px solid var(--ti-border); border-radius: var(--ti-radius);
	padding: clamp(20px, 2.2vw, 28px); transition: box-shadow .2s ease, transform .2s ease;
}
.ti-cards > .wp-block-column:hover { box-shadow: 0 16px 40px rgba(0, 0, 0, .09); transform: translateY(-3px); }
.ti-cards > .wp-block-column > :last-child { margin-bottom: 0; }
.ti-cards h3 { margin-bottom: .4em; }
.ti-cards p { color: var(--ti-muted); font-size: .97rem; }
.ti-cards p a { font-weight: 600; }
.ti-cards .ti-step { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; margin-bottom: 14px; background: var(--ti-heading); color: var(--ti-bg); font-family: var(--ti-font-heading); font-weight: 700; font-size: 1rem; }
.ti-cards .ti-symbol { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .08em; color: var(--ti-accent); background: color-mix(in srgb, var(--ti-accent) 9%, transparent); padding: 4px 11px; border-radius: 999px; margin-bottom: 12px; }

/* Tables (key levels, guides) */
.wp-block-table { margin-top: 0; margin-bottom: 1.4em; overflow-x: auto; border: 1px solid var(--ti-border); border-radius: var(--ti-radius); background: var(--ti-surface); }
.wp-block-table table { width: 100%; border-collapse: collapse; min-width: 520px; font-variant-numeric: tabular-nums; }
.wp-block-table thead { border-bottom: 0; }
.wp-block-table th, .wp-block-table td { padding: 15px 20px; text-align: left; border: 0; border-bottom: 1px solid var(--ti-border); vertical-align: middle; }
.wp-block-table thead th { font-size: .76rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ti-muted); background: var(--ti-soft); font-weight: 700; }
.wp-block-table tbody tr:last-child td { border-bottom: 0; }
.wp-block-table td:first-child { color: var(--ti-heading); font-weight: 600; }
.wp-block-table figcaption { margin: 0; padding: 12px 20px; color: var(--ti-muted); font-size: .84rem; text-align: left; border-top: 1px solid var(--ti-border); }
.ti-levels td:nth-child(2) { color: var(--ti-down); font-weight: 600; }
.ti-levels td:nth-child(4) { color: var(--ti-accent2); font-weight: 600; }
.ti-levels td:nth-child(3) { color: var(--ti-heading); font-weight: 600; }
.ti-bias { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; background: var(--ti-soft); color: var(--ti-heading); }
.ti-bias--bullish { background: color-mix(in srgb, var(--ti-accent2) 14%, transparent); color: var(--ti-accent2); }
.ti-bias--bearish { background: color-mix(in srgb, var(--ti-down) 12%, transparent); color: var(--ti-down); }

/* ---------- Lead form (Fluent Forms) ---------- */
.ti-lead { position: relative; box-shadow: 0 24px 60px rgba(0, 0, 0, .12); text-align: left; }
.ti-lead__title { font-family: var(--ti-font-heading); color: var(--ti-heading); font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; margin: 0 0 6px; }
.ti-lead__text { color: var(--ti-muted); font-size: .95rem; margin-bottom: 16px; }
.ti-lead__note { color: var(--ti-muted); font-size: .8rem; margin: 12px 0 0; }
.ti-lead .fluentform .ff-el-group { margin-bottom: 14px; }
.ti-lead .fluentform .ff-el-input--label label { color: var(--ti-heading); font-size: .86rem; font-weight: 600; }
.ti-lead .fluentform .ff-el-form-control, .search-field {
	width: 100%; min-height: 48px; padding: 10px 14px;
	background: var(--ti-bg); color: var(--ti-heading);
	border: 1px solid color-mix(in srgb, var(--ti-heading) 22%, transparent); border-radius: 12px;
	font-family: var(--ti-font-body); font-size: 1rem;
}
.ti-lead .fluentform select.ff-el-form-control { appearance: auto; }
.ti-lead .fluentform .ff-el-form-control::placeholder { color: var(--ti-muted); opacity: 1; }
.ti-lead .fluentform .ff-el-form-control:focus { border-color: var(--ti-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ti-accent) 22%, transparent); outline: 0; background: var(--ti-bg); color: var(--ti-heading); }
.ti-lead .fluentform .ff-btn-submit { width: 100%; background: var(--ti-accent) !important; color: #fff !important; border: 0; border-radius: 999px; }
.ti-lead .fluentform .ff_submit_btn_wrapper { margin-bottom: 0; }
.ti-lead .fluentform .iti { display: block; width: 100%; }
.ti-lead .fluentform .iti input.ff-el-form-control { padding-left: 54px; }
.ti-lead .fluentform .iti__country-list { color: #1a2233; background: #fff; width: max-content; max-width: min(340px, 82vw); white-space: nowrap; overflow-x: hidden; border-radius: 12px; z-index: 20; text-align: left; }
.ti-lead .fluentform .iti__country { padding: 8px 12px; }
.ti-lead .fluentform .iti__country-name { overflow: hidden; text-overflow: ellipsis; }
/* Some hosts auto-resize large images, which breaks the plugin's flag sprite; load an untouched copy. */
.fluentform .iti__flag { background-image: url("https://cdn.jsdelivr.net/npm/intl-tel-input@18.1.1/build/img/flags.png"); }
@media (min-resolution: 2x) {
	.fluentform .iti__flag { background-image: url("https://cdn.jsdelivr.net/npm/intl-tel-input@18.1.1/build/img/flags@2x.png"); }
}
.ti-lead .fluentform .ff-t-container { gap: 10px; }
.ti-lead .fluentform .ti-phone-row { display: flex; flex-wrap: nowrap; }
.ti-lead .fluentform .ti-phone-row .ff-t-cell { padding: 0; }
.ti-lead .fluentform .text-danger, .ti-lead .fluentform .error { color: var(--ti-down); font-size: .82rem; }
.ti-dark .ti-lead .fluentform .text-danger, .ti-dark .ti-lead .fluentform .error { color: #ff8585; }
.ti-lead .ff-message-success p:last-child { margin-bottom: 0; }
.ti-thanks__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.ti-lead .ff-message-success { background: color-mix(in srgb, var(--ti-accent2) 10%, transparent); border: 1px solid color-mix(in srgb, var(--ti-accent2) 40%, transparent); color: var(--ti-heading); border-radius: 12px; padding: 16px; box-shadow: none; }

/* ---------- FAQ ---------- */
.ti-faq { max-width: 860px; margin: clamp(32px, 5vw, 56px) auto 0; }
.ti-page .ti-faq { margin-top: 0; }
.ti-faq__heading { text-align: center; margin-bottom: 1em; }
.ti-article .ti-faq__heading { text-align: left; }
.ti-faq__list { border-top: 1px solid var(--ti-border); }
.ti-faq__item { border-bottom: 1px solid var(--ti-border); }
.ti-faq__q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 4px; cursor: pointer; list-style: none; color: var(--ti-heading); font-family: var(--ti-font-heading); font-weight: 600; font-size: 1.1rem; }
.ti-faq__q::-webkit-details-marker { display: none; }
.ti-faq__q::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--ti-accent); border-bottom: 2px solid var(--ti-accent); transform: rotate(45deg); transition: transform .2s ease; margin-right: 6px; }
.ti-faq__item[open] .ti-faq__q::after { transform: rotate(-135deg); }
.ti-faq__a { padding: 0 4px 20px; max-width: 46em; }
.ti-faq__a > :last-child { margin-bottom: 0; }

/* ---------- Page header ---------- */
.ti-page-header { padding-block: clamp(36px, 5vw, 64px); background: var(--ti-soft); }
.ti-page-header__title { margin: 0; font-size: clamp(2rem, 4.2vw, 3.2rem); }
.ti-page-header__lead { margin: 14px 0 0; max-width: 46em; color: var(--ti-text); font-size: 1.12rem; }
.ti-breadcrumbs { font-size: .85rem; color: var(--ti-muted); margin-bottom: 14px; }
.ti-breadcrumbs a { color: var(--ti-muted); }

/* ---------- Blog ---------- */
.ti-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: clamp(18px, 2.4vw, 28px); text-align: left; }
.ti-post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease; }
.ti-post-card:hover { box-shadow: 0 16px 40px rgba(0, 0, 0, .09); transform: translateY(-3px); }
.ti-post-card__thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ti-soft); }
.ti-post-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ti-post-card__thumb--placeholder { background: #0a0a0a url("assets/img/post-placeholder.svg") center/cover no-repeat; }
.ti-post-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.ti-post-card .ti-tag { align-self: flex-start; margin-bottom: 12px; }
.ti-post-card__title { font-size: 1.2rem; margin-bottom: .5em; }
.ti-post-card__title a { color: var(--ti-heading); }
.ti-post-card__excerpt { color: var(--ti-muted); font-size: .95rem; }
.ti-post-card__meta { margin: auto 0 0; color: var(--ti-muted); font-size: .82rem; display: flex; gap: 8px; }
.ti-pagination { margin-top: 40px; }
.ti-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ti-pagination .page-numbers { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border: 1px solid var(--ti-border); border-radius: 999px; color: var(--ti-text); text-decoration: none; }
.ti-pagination .page-numbers.current { background: var(--ti-heading); border-color: var(--ti-heading); color: var(--ti-bg); }

.ti-single { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(28px, 4vw, 56px); padding-block: clamp(28px, 4vw, 56px); align-items: start; }
.ti-article { min-width: 0; }
.ti-article__title { font-size: clamp(2rem, 3.8vw, 3rem); }
.ti-article__meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--ti-muted); font-size: .9rem; margin-bottom: 24px; }
.ti-article__thumb { margin: 0 0 28px; }
.ti-article__thumb img { display: block; width: 100%; border-radius: var(--ti-radius); }
.ti-content--article { font-size: 1.08rem; line-height: 1.7; }
.ti-content--article p { margin-bottom: .9em; }
.ti-content--article h2 { margin-top: 1em; margin-bottom: .45em; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.ti-content--article h3 { margin-top: .9em; margin-bottom: .4em; }
.ti-content--article a { text-decoration: underline; text-underline-offset: 3px; }
.ti-content--article .alignfull, .ti-content--article .alignwide { margin-inline: 0; max-width: 100%; }
.ti-article__disclaimer { margin: 32px 0 0; padding: 14px 16px; border-left: 3px solid #b98900; background: color-mix(in srgb, #d9a400 10%, transparent); border-radius: 0 10px 10px 0; font-size: .88rem; color: var(--ti-text); }
.ti-article__tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.ti-article__tags a { padding: 5px 12px; border: 1px solid var(--ti-border); border-radius: 999px; font-size: .82rem; color: var(--ti-text); }
.ti-sidebar { min-width: 0; height: 100%; }
.ti-sidebar__sticky { position: sticky; top: 92px; display: grid; gap: 20px; }
.ti-sidebar .ti-lead { box-shadow: none; }
.ti-widget { padding: 20px; }
.ti-widget__title, .ti-related__title, .ti-footer__title { font-family: var(--ti-font-heading); color: var(--ti-heading); font-weight: 700; margin: 0 0 12px; }
.ti-widget__title { font-size: 1.05rem; }
.ti-related__title { font-size: 1.6rem; letter-spacing: -.02em; margin-bottom: 20px; }
.ti-related { border-top: 1px solid var(--ti-border); }
.ti-widget__list { list-style: none; margin: 0; padding: 0; }
.ti-widget__list li { padding: 10px 0; border-bottom: 1px solid var(--ti-border); line-height: 1.4; font-size: .95rem; }
.ti-widget__list li:last-child { border: 0; padding-bottom: 0; }
.ti-widget__list a { color: var(--ti-text); }
.ti-widget__list a:hover { color: var(--ti-accent); }
.ti-widget .ti-tv { margin: 0; }
.ti-widget__body > :last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.ti-band { padding: 0 var(--ti-gutter) clamp(32px, 5vw, 64px); background: var(--ti-bg); }
.ti-band__inner {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
	max-width: var(--ti-container); padding: clamp(28px, 4.5vw, 56px); border-radius: 32px;
	background: radial-gradient(90% 140% at 0% 0%, #2a2a30 0%, #0a0a0a 60%);
}
.ti-band__title { font-family: var(--ti-font-heading); font-weight: 700; color: #fff; font-size: clamp(1.5rem, 2.8vw, 2.2rem); letter-spacing: -.03em; line-height: 1.15; margin: 0 0 8px; }
.ti-band__text { margin: 0; color: #d2d2d7; }
.ti-band .ti-cta-buttons { margin: 0; }

/* ---------- Footer ---------- */
.ti-footer { padding-block: clamp(40px, 5vw, 64px) 0; font-size: .94rem; }
.ti-footer__grid { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); padding-bottom: clamp(28px, 4vw, 44px); }
.ti-footer .ti-brand__link { color: #fff; }
.ti-footer__brand p { margin: 16px 0 0; max-width: 30em; color: var(--ti-muted); }
.ti-footer__mail { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px !important; padding: 10px 18px; border: 1px solid var(--ti-border); border-radius: 999px; }
.ti-footer__mail a { color: #fff; font-weight: 600; }
.ti-footer__title { font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.ti-footer__menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ti-footer__menu a { display: inline-block; padding: 6px 0; color: var(--ti-text); }
.ti-footer__menu a:hover { color: #fff; }
.ti-footer__disclaimer { padding-block: 24px; border-top: 1px solid var(--ti-border); color: var(--ti-muted); font-size: .82rem; line-height: 1.65; margin: 0; }
.ti-footer__disclaimer strong { color: #fff; }
.ti-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 20px 26px; border-top: 1px solid var(--ti-border); color: var(--ti-muted); font-size: .85rem; }
.ti-footer__bottom p { margin: 0; }
.ti-footer__top { color: var(--ti-text); font-weight: 600; }

/* ---------- Sticky community bar ---------- */
.ti-sticky { position: fixed; right: 18px; bottom: 18px; z-index: 90; transition: transform .25s ease, opacity .25s ease; }
.ti-sticky .ti-cta-buttons { margin: 0; gap: 8px; }
.ti-sticky .ti-btn { box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.ti-sticky.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }

/* ---------- Misc ---------- */
.ti-404 { text-align: center; max-width: 640px; }
.search-form { display: flex; gap: 8px; max-width: 480px; margin: 24px auto 0; }
.search-form label { flex: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1140px) {
	.ti-single { grid-template-columns: minmax(0, 1fr); }
	.ti-sidebar__sticky { position: static; }
	.ti-nav-toggle { display: inline-flex; }
	.ti-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		display: none; flex-direction: column; align-items: stretch; gap: 12px;
		padding: 14px var(--ti-gutter) 20px;
		background: var(--ti-bg); border-bottom: 1px solid var(--ti-border);
		max-height: calc(100vh - 70px); overflow-y: auto;
	}
	.ti-nav.is-open { display: flex; }
	.ti-menu { flex-direction: column; align-items: stretch; gap: 2px; }
	.ti-menu a { padding: 13px 14px; font-size: 1rem; border-radius: 12px; }
	.ti-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 0 14px; }
	.ti-menu .menu-item-has-children > a::after { display: none; }
	.ti-footer__grid { grid-template-columns: 1fr 1fr 1fr; }
	.ti-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 781px) {
	.ti-content .wp-block-columns { flex-direction: column; flex-wrap: wrap; }
	.ti-content .wp-block-column { flex-basis: auto !important; width: 100%; }
	.ti-footer__grid { grid-template-columns: 1fr 1fr; }
	.ti-band__inner { flex-direction: column; align-items: flex-start; }
	.ti-panel { border-radius: 24px; }
	.ti-sticky { left: 0; right: 0; bottom: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--ti-bg) 94%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--ti-border); }
	.ti-sticky .ti-cta-buttons { flex-wrap: nowrap; }
	.ti-sticky .ti-btn { flex: 1; box-shadow: none; padding-inline: 10px; font-size: .88rem; }
	.ti-has-sticky .ti-footer__bottom { padding-bottom: 96px; }
	/* Phones: WhatsApp and Telegram side by side, Contact on its own row below. */
	.ti-cta-buttons:not(.ti-cta-buttons--stack) { flex-wrap: wrap; gap: 8px; width: 100%; }
	.ti-cta-buttons:not(.ti-cta-buttons--stack) .ti-btn { flex: 1 1 0; min-width: 0; gap: 5px; padding-inline: 6px; font-size: .76rem; letter-spacing: -.01em; white-space: nowrap; }
	.ti-cta-buttons:not(.ti-cta-buttons--stack) .ti-btn svg { width: 15px; height: 15px; }
	.ti-cta-buttons:not(.ti-cta-buttons--stack) .ti-btn--contact { flex: 1 1 100%; }
	.ti-band .ti-cta-buttons { width: 100%; gap: 6px; }
	.ti-band { padding-inline: 12px; }
	.ti-band__inner { padding: 24px 14px; border-radius: 24px; }
	.ti-band .ti-cta-buttons .ti-btn { font-size: .74rem; gap: 4px; padding-inline: 4px; }
	.ti-tv--advanced-chart, .ti-tv--stock-heatmap { height: 440px !important; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
