/*
Theme Name:   CapitolRadar
Description:  Purpose-built theme for CapitolRadar.com — congressional & insider trade tracking, fantasy trading arena, and the Radar Report. Fast, system fonts, no build step.
Version:      0.1.0
Author:       Valentin
Requires PHP: 8.0
Text Domain:  capitolradar
*/

:root {
	--cr-navy: #0f2b3d;
	--cr-navy-2: #143850;
	--cr-teal: #14636f;
	--cr-teal-dark: #0f4f59;
	--cr-bg: #f6f8f9;
	--cr-card: #ffffff;
	--cr-line: #e3e6ea;
	--cr-text: #1d2b33;
	--cr-muted: #5c6770;
	--cr-gain: #157347;
	--cr-loss: #b02a37;
	--cr-gold: #b98900;
	--cr-radius: 12px;
	--cr-max: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--cr-bg);
	color: var(--cr-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.65;
}

img { max-width: 100%; height: auto; }
a { color: var(--cr-teal); }
a:hover { color: var(--cr-teal-dark); }

.cr-wrap { max-width: var(--cr-max); margin: 0 auto; padding: 0 20px; }
.cr-narrow { max-width: 760px; }

.skip-link {
	position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 14px; z-index: 999;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------------------------------------------------------------- Header */

.cr-header {
	background: var(--cr-navy);
	color: #fff;
	position: sticky;
	top: 0;
	z-index: 50;
	box-shadow: 0 1px 4px rgba(10, 25, 35, 0.25);
}
.cr-header-inner {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 12px 20px;
	max-width: var(--cr-max);
	margin: 0 auto;
}
.cr-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.cr-logo img { max-height: 34px; width: auto; }
.cr-logo-text {
	font-size: 21px; font-weight: 800; letter-spacing: 0.01em; color: #fff; text-decoration: none;
}
.cr-logo-text span { color: #6fd3c2; }

.cr-nav { margin-left: auto; }
.cr-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.cr-nav a {
	display: block; padding: 7px 11px; border-radius: 8px;
	color: #dbe6ec; text-decoration: none; font-size: 15px; font-weight: 500;
}
.cr-nav a:hover { background: var(--cr-navy-2); color: #fff; }

.cr-header-cta { display: flex; gap: 8px; align-items: center; }

.cr-btn {
	display: inline-block;
	background: var(--cr-teal);
	color: #fff !important;
	border: 1px solid var(--cr-teal);
	border-radius: 8px;
	padding: 8px 16px;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none !important;
	cursor: pointer;
}
.cr-btn:hover { background: var(--cr-teal-dark); }
.cr-btn-ghost { background: transparent; color: #dbe6ec !important; border-color: #3d5a6e; }
.cr-btn-ghost:hover { background: var(--cr-navy-2); }
.cr-btn-light { background: #fff; color: var(--cr-navy) !important; border-color: #fff; }
.cr-btn-light:hover { background: #e8f2f0; }

.cr-nav-toggle {
	display: none;
	margin-left: auto;
	background: none; border: 1px solid #3d5a6e; border-radius: 8px;
	color: #fff; padding: 7px 11px; font-size: 15px; cursor: pointer;
}

@media (max-width: 860px) {
	.cr-nav-toggle { display: block; }
	.cr-nav { display: none; width: 100%; margin: 0; }
	.cr-nav.open { display: block; }
	.cr-nav ul { flex-direction: column; }
	.cr-header-inner { flex-wrap: wrap; }
	.cr-header-cta { margin-left: auto; }
}

/* ------------------------------------------------------------------ Hero */

.cr-hero {
	background: linear-gradient(160deg, var(--cr-navy) 0%, #123448 55%, var(--cr-teal-dark) 100%);
	color: #fff;
	padding: 64px 20px 56px;
	text-align: center;
}
.cr-hero h1 {
	margin: 0 auto 14px;
	max-width: 720px;
	font-size: clamp(30px, 5vw, 46px);
	line-height: 1.15;
	letter-spacing: -0.01em;
}
.cr-hero p.cr-sub {
	margin: 0 auto 26px;
	max-width: 620px;
	font-size: 18px;
	color: #cfe0e8;
}
.cr-hero .cr-btn { font-size: 17px; padding: 12px 24px; margin: 4px 6px; }

.cr-statband {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 14px;
	max-width: 820px;
	margin: 40px auto 0;
}
.cr-statband div {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: var(--cr-radius);
	padding: 14px 10px;
}
.cr-statband strong { display: block; font-size: 26px; }
.cr-statband span { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: #a7c2cf; }

/* -------------------------------------------------------------- Sections */

.cr-section { padding: 48px 0; }
.cr-section-alt { background: #eef2f4; }
.cr-section h2 { font-size: 28px; margin: 0 0 6px; letter-spacing: -0.01em; }
.cr-section .cr-lead { color: var(--cr-muted); margin: 0 0 24px; }
.cr-section-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.cr-section-head .cr-more { margin-left: auto; font-weight: 600; }

.cr-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.cr-card {
	background: var(--cr-card);
	border: 1px solid var(--cr-line);
	border-radius: var(--cr-radius);
	padding: 18px 20px;
	box-shadow: 0 1px 2px rgba(20, 40, 60, 0.04);
}
.cr-card h3 { margin-top: 0; }

.cr-badge {
	display: inline-block; border-radius: 20px; padding: 3px 10px;
	font-size: 12px; font-weight: 700; background: #eef0f2; color: #333;
}
.cr-badge-green { background: #d1f5df; color: #0f5132; }
.cr-badge-red { background: #fde2e1; color: #842029; }
.cr-gain { color: var(--cr-gain); font-weight: 600; }
.cr-loss { color: var(--cr-loss); font-weight: 600; }
.cr-muted { color: var(--cr-muted); }
.cr-small { font-size: 13px; color: var(--cr-muted); }

.cr-table-wrap { overflow-x: auto; }
.cr-table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--cr-card); border-radius: var(--cr-radius); }
.cr-table th {
	text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em;
	color: var(--cr-muted); padding: 10px 12px; border-bottom: 2px solid var(--cr-line);
}
.cr-table td { padding: 10px 12px; border-bottom: 1px solid #eef0f2; }

.cr-steps { counter-reset: step; }
.cr-steps .cr-card { position: relative; padding-top: 26px; }
.cr-steps .cr-card::before {
	counter-increment: step;
	content: counter(step);
	position: absolute; top: -16px; left: 18px;
	width: 34px; height: 34px; border-radius: 50%;
	background: var(--cr-teal); color: #fff;
	font-weight: 800; display: flex; align-items: center; justify-content: center;
}

.cr-premium {
	background: var(--cr-navy);
	color: #fff;
	border-radius: var(--cr-radius);
	padding: 30px 28px;
	display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
}
.cr-premium h2 { margin: 0 0 6px; color: #fff; }
.cr-premium p { margin: 0; color: #cfe0e8; }
.cr-premium .cr-btn-light { margin-left: auto; }

/* --------------------------------------------------------------- Content */

.cr-main { padding: 36px 0 56px; }
.cr-entry {
	background: var(--cr-card);
	border: 1px solid var(--cr-line);
	border-radius: var(--cr-radius);
	padding: 30px 32px;
}
.cr-entry-title { margin-top: 0; font-size: clamp(26px, 4vw, 36px); line-height: 1.2; letter-spacing: -0.01em; }
.cr-entry-meta { color: var(--cr-muted); font-size: 14px; margin-bottom: 20px; }
.cr-entry img { border-radius: 8px; }
.cr-entry table { width: 100%; border-collapse: collapse; }
.cr-entry table th, .cr-entry table td { padding: 8px 10px; border-bottom: 1px solid var(--cr-line); text-align: left; }
.cr-entry blockquote { border-left: 4px solid var(--cr-teal); margin-left: 0; padding-left: 16px; color: var(--cr-muted); }
.cr-entry pre { overflow-x: auto; background: #f2f4f5; padding: 14px; border-radius: 8px; }

.cr-loop { display: grid; gap: 16px; }
.cr-loop-card h2 { margin: 0 0 4px; font-size: 22px; }
.cr-loop-card h2 a { text-decoration: none; color: var(--cr-text); }
.cr-loop-card h2 a:hover { color: var(--cr-teal); }

.cr-pagination { margin-top: 26px; text-align: center; }
.cr-pagination .nav-links { display: inline-flex; gap: 6px; }
.cr-pagination a, .cr-pagination span.current {
	padding: 7px 13px; border-radius: 8px; border: 1px solid var(--cr-line);
	background: #fff; text-decoration: none;
}
.cr-pagination span.current { background: var(--cr-teal); color: #fff; border-color: var(--cr-teal); }

/* ---------------------------------------------------------------- Footer */

.cr-footer {
	background: var(--cr-navy);
	color: #9db4c0;
	margin-top: 40px;
	padding: 36px 20px 30px;
	font-size: 14px;
}
.cr-footer-inner { max-width: var(--cr-max); margin: 0 auto; }
.cr-footer a { color: #cfe0e8; }
.cr-footer-nav ul { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.cr-footer-disclaimer { border-top: 1px solid #27455a; padding-top: 16px; line-height: 1.6; }
