/* ============================================================
   TBSJ RWA Markets — Plugin Styles
   ============================================================ */

/* ── Layout ───────────────────────────────────────────────── */

.rwa-page-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 20px 40px;
}

.rwa-content-grid {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 40px;
	align-items: start;
}

@media (max-width: 900px) {
	.rwa-content-grid {
		grid-template-columns: 1fr;
	}
}

/* ── Breadcrumb ───────────────────────────────────────────── */

.rwa-breadcrumb {
	font-size: 13px;
	color: #888;
	margin-bottom: 24px;
	padding-bottom: 12px;
	border-bottom: 1px solid #ebebeb;
}
.rwa-breadcrumb a {
	color: #888;
	text-decoration: none;
}
.rwa-breadcrumb a:hover {
	color: #f7931a;
}

/* ── Page header ──────────────────────────────────────────── */

.rwa-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 20px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

.rwa-badge {
	display: inline-block;
	background: #f7931a;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 3px 10px;
	border-radius: 3px;
	margin-bottom: 8px;
}

.rwa-title {
	font-size: 30px;
	font-weight: 800;
	margin: 0 0 10px;
	line-height: 1.2;
}

.rwa-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.rwa-leverage-chip {
	background: #e8f5e9;
	color: #2e7d32;
	font-size: 12px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 20px;
}

.rwa-pair-chip {
	background: #f0f0f0;
	color: #555;
	font-size: 12px;
	font-family: monospace;
	padding: 3px 10px;
	border-radius: 20px;
}

/* ── Buttons ──────────────────────────────────────────────── */

.rwa-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 700;
	padding: 12px 22px;
	border-radius: 5px;
	text-decoration: none !important;
	transition: background 0.18s, color 0.18s, border-color 0.18s;
	cursor: pointer;
	white-space: nowrap;
}

.rwa-btn-primary {
	background: #000;
	color: #fff !important;
	border: 2px solid #000;
}
.rwa-btn-primary:hover {
	background: #f7931a;
	border-color: #f7931a;
	color: #fff !important;
}

.rwa-btn-outline {
	background: transparent;
	color: #000 !important;
	border: 2px solid #000;
}
.rwa-btn-outline:hover {
	background: #000;
	color: #fff !important;
}

.rwa-btn-large {
	font-size: 17px;
	padding: 16px 34px;
}

.rwa-btn-block {
	width: 100%;
	display: flex;
}

/* ── TradingView chart ────────────────────────────────────── */

.rwa-chart-wrap {
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	overflow: hidden;
	margin-bottom: 24px;
}

.rwa-chart {
	height: 520px;
	width: 100%;
}

@media (max-width: 600px) {
	.rwa-chart { height: 340px; }
}

.rwa-tv-referral {
	text-align: right;
	margin-bottom: 6px;
}

.rwa-tv-referral-link {
	font-size: 12px;
	color: #888;
	text-decoration: none;
}

.rwa-tv-referral-link:hover {
	color: #f7931a;
	text-decoration: underline;
}

/* ── Stats bar ────────────────────────────────────────────── */

.rwa-stats {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 1px;
	background: #e0e0e0;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	overflow: hidden;
	margin-bottom: 36px;
}

@media (max-width: 700px) {
	.rwa-stats { grid-template-columns: repeat(2, 1fr); }
}

.rwa-stat {
	background: #fff;
	padding: 14px 16px;
	text-align: center;
}

.rwa-stat-label {
	display: block;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #999;
	margin-bottom: 4px;
}

.rwa-stat-value {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: #111;
}

/* ── Body content ─────────────────────────────────────────── */

.rwa-body {
	margin-bottom: 36px;
	line-height: 1.75;
	font-size: 15px;
}

.rwa-body h2 {
	font-size: 20px;
	font-weight: 700;
	margin: 32px 0 12px;
}

.rwa-body ol,
.rwa-body ul {
	padding-left: 22px;
	margin-bottom: 16px;
}

.rwa-body li {
	margin-bottom: 8px;
}

/* ── CTA block ────────────────────────────────────────────── */

.rwa-cta-block {
	background: #f8f8f8;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	padding: 36px 32px;
	text-align: center;
	margin-bottom: 32px;
}

.rwa-cta-block h3 {
	font-size: 22px;
	font-weight: 800;
	margin: 0 0 12px;
}

.rwa-cta-block p {
	color: #666;
	margin-bottom: 22px;
	font-size: 15px;
}

/* ── Disclaimer ───────────────────────────────────────────── */

.rwa-disclaimer {
	font-size: 12px;
	color: #aaa;
	border-top: 1px solid #ebebeb;
	padding-top: 16px;
	margin-top: 32px;
	line-height: 1.6;
}

/* ── Sidebar ──────────────────────────────────────────────── */

.rwa-sidebar {
	position: sticky;
	top: 20px;
}

.rwa-sidebar-trade {
	background: #000;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 24px;
	text-align: center;
}

.rwa-sidebar-trade-label {
	color: #aaa;
	font-size: 12px;
	margin: 0 0 12px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.rwa-sidebar-widget {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 24px;
}

.rwa-widget-title {
	font-size: 14px !important;
	font-weight: 700 !important;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0 0 14px !important;
	padding-bottom: 10px;
	border-bottom: 1px solid #ebebeb;
}

.rwa-sidebar-list {
	list-style: none;
	padding: 0;
	margin: 0 0 12px;
}

.rwa-sidebar-list li {
	padding: 7px 0;
	border-bottom: 1px solid #f0f0f0;
	font-size: 13px;
}

.rwa-sidebar-list li:last-child {
	border-bottom: none;
}

.rwa-sidebar-all {
	font-size: 12px;
	color: #888;
	text-decoration: none;
}

.rwa-sidebar-all:hover {
	color: #f7931a;
}

/* ── Archive ──────────────────────────────────────────────── */

.rwa-archive-header {
	text-align: center;
	padding: 20px 0 36px;
}

.rwa-archive-header h1 {
	font-size: 34px;
	font-weight: 800;
	margin: 0 0 12px;
}

.rwa-archive-header p {
	font-size: 16px;
	color: #666;
	max-width: 640px;
	margin: 0 auto;
}

.rwa-cat-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 36px;
	justify-content: center;
}

.rwa-cat-nav a {
	padding: 7px 18px;
	border: 1px solid #ddd;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
	color: #555 !important;
	text-decoration: none !important;
	transition: all 0.15s;
}

.rwa-cat-nav a:hover,
.rwa-cat-nav a.active {
	background: #000;
	border-color: #000;
	color: #fff !important;
}

.rwa-archive-section {
	margin-bottom: 48px;
}

.rwa-section-title {
	font-size: 22px;
	font-weight: 800;
	margin: 0 0 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid #f7931a;
	display: inline-block;
}

.rwa-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}

/* ── Archive cards ────────────────────────────────────────── */

.rwa-card {
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	padding: 22px;
	background: #fff;
	transition: box-shadow 0.18s, transform 0.18s;
}

.rwa-card:hover {
	box-shadow: 0 6px 24px rgba(0,0,0,0.09);
	transform: translateY(-2px);
}

.rwa-card-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.rwa-card-ticker {
	font-size: 18px;
	font-weight: 800;
	color: #111;
}

.rwa-card-leverage {
	background: #e8f5e9;
	color: #2e7d32;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 20px;
}

.rwa-card-title {
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 6px;
	line-height: 1.3;
}

.rwa-card-title a {
	color: #111 !important;
	text-decoration: none !important;
}

.rwa-card-title a:hover {
	color: #f7931a !important;
}

.rwa-card-pair {
	font-size: 11px;
	font-family: monospace;
	color: #aaa;
	margin: 0 0 16px;
}

.rwa-card-actions {
	display: flex;
	gap: 8px;
}

.rwa-card-actions .rwa-btn {
	flex: 1;
	font-size: 13px;
	padding: 9px 14px;
}
