* { box-sizing: border-box; }

body {
	background: #0a0a0a;
	color: #222;
	font-family: Georgia, 'Times New Roman', serif;
	margin: 0;
	padding: 0;
}

.wrap {
	max-width: 1100px;
	margin: 0 auto;
	background: #fff;
	box-shadow: 0 0 40px rgba(0,0,0,0.6);
}

.banner {
	width: 100%;
	background: #000;
	text-align: center;
}
.banner-img {
	width: 100%;
	max-width: 1100px;
	display: block;
	margin: 0 auto;
}

.mainnav {
	background: #14213d;
	border-bottom: 3px solid #b8860b;
	padding: 10px 16px;
	text-align: center;
	position: sticky;
	top: 0;
	z-index: 100;
}
.mainnav a {
	display: inline-block;
	color: #f5deb3;
	text-decoration: none;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: bold;
	font-size: 0.9em;
	padding: 8px 12px;
	margin: 2px;
	border-radius: 4px;
}
.mainnav a:hover {
	background: #b8860b;
	color: #14213d;
}
.mainnav a.live-link {
	background: #7a0c0c;
	color: #fff;
}
.mainnav a.live-link:hover {
	background: #a30f0f;
}

.content {
	padding: 30px 6% 20px 6%;
	line-height: 1.6;
}

.content h1 {
	font-family: 'Times New Roman', serif;
	color: #14213d;
	border-bottom: 3px solid #b8860b;
	padding-bottom: 10px;
}

.content h2 {
	color: #7a0c0c;
	margin-top: 2em;
}

.content h3 {
	color: #14213d;
	font-family: Arial, sans-serif;
}

.intro-lede {
	font-size: 1.15em;
	font-style: italic;
	color: #444;
	border-left: 4px solid #b8860b;
	padding-left: 16px;
	margin: 1.2em 0;
}

.stat-row {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 24px 0;
}
.stat-box {
	flex: 1 1 200px;
	background: #14213d;
	color: #fff;
	padding: 16px;
	border-radius: 6px;
	text-align: center;
}
.stat-box .num {
	display: block;
	font-size: 1.8em;
	font-weight: bold;
	color: #f5deb3;
}
.stat-box .lbl {
	font-family: Arial, sans-serif;
	font-size: 0.8em;
}

.nav-tiles {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 28px 0;
}
.nav-tile {
	flex: 1 1 220px;
	display: block;
	background: #f7f3ea;
	border: 1px solid #ccc;
	border-left: 5px solid #b8860b;
	padding: 16px;
	text-decoration: none;
	color: #222;
	border-radius: 4px;
}
.nav-tile:hover {
	background: #efe6d0;
}
.nav-tile h3 {
	margin: 0 0 8px 0;
	color: #14213d;
	font-family: Arial, sans-serif;
}
.nav-tile.live {
	border-left-color: #7a0c0c;
}

.table-scroll {
	overflow-x: auto;
	margin: 20px 0;
}

table.cases {
	width: 100%;
	min-width: 900px;
	border-collapse: collapse;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.9em;
	margin: 0;
}
table.cases th {
	background: #14213d;
	color: #f5deb3;
	text-align: left;
	padding: 10px 8px;
}
table.cases td {
	padding: 10px 8px;
	border-bottom: 1px solid #ddd;
	vertical-align: top;
}
table.cases tr:nth-child(even) {
	background: #f7f3ea;
}
table.cases .src a {
	color: #7a0c0c;
	font-size: 0.9em;
}

.disclaimer {
	background: #f2f2f2;
	border-top: 3px solid #b8860b;
	border-bottom: 3px solid #b8860b;
	padding: 16px 6%;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.82em;
	color: #444;
}

.support {
	text-align: center;
	padding: 20px;
}
.donate-img {
	max-width: 220px;
}
.support-text {
	font-family: Arial, sans-serif;
	font-size: 0.8em;
	color: #666;
	margin-top: 6px;
}

.footer {
	background: #14213d;
	color: #cacaca;
	text-align: center;
	font-family: Arial, sans-serif;
	font-size: 0.8em;
	padding: 16px;
}
.footer a {
	color: #f5deb3;
}

.timeline {
	list-style: none;
	margin: 0;
	padding: 0;
}
.timeline li {
	border-left: 3px solid #b8860b;
	padding: 6px 0 20px 20px;
	margin-left: 6px;
	position: relative;
}
.timeline li::before {
	content: '';
	position: absolute;
	left: -8px;
	top: 8px;
	width: 12px;
	height: 12px;
	background: #7a0c0c;
	border-radius: 50%;
}
.close-all-btn {
	display: block;
	margin: 0 0 16px 0;
	padding: 8px 16px;
	background: #14213d;
	border: 1px solid #b8860b;
	color: #f5deb3;
	border-radius: 6px;
	cursor: pointer;
	font-family: Arial, sans-serif;
	font-size: 0.9em;
	font-weight: bold;
}
.close-all-btn:hover {
	background: #b8860b;
	border-color: #b8860b;
	color: #14213d;
}

.timeline details {
	display: inline;
}
.timeline summary {
	cursor: pointer;
	list-style: none;
	display: inline;
}
.timeline summary::-webkit-details-marker {
	display: none;
}
.timeline summary::before {
	content: '\25B8 ';
	color: #7a0c0c;
	font-weight: bold;
}
.timeline details[open] summary::before {
	content: '\25BE ';
}
.timeline summary:hover {
	text-decoration: underline;
	text-decoration-color: #b8860b;
}
.timeline-drilldown {
	margin: 12px 0 4px 0;
}
.timeline-drilldown .case-card {
	margin-bottom: 10px;
}
.timeline .yr {
	font-weight: bold;
	color: #14213d;
	font-family: Arial, sans-serif;
}

.constitution-box {
	background: #fdf8ee;
	border: 1px solid #b8860b;
	padding: 18px 22px;
	font-family: 'Times New Roman', serif;
	font-style: italic;
	margin: 20px 0;
}

/* --- Evidence tags --- */
.tag-green, .tag-yellow {
	display: inline-block;
	font-family: Arial, sans-serif;
	font-size: 0.72em;
	font-weight: bold;
	letter-spacing: 0.03em;
	padding: 2px 7px;
	border-radius: 3px;
	vertical-align: middle;
}
.tag-green {
	background: #1e7e34;
	color: #fff;
}
.tag-yellow {
	background: #c99a06;
	color: #1a1a1a;
}

/* --- Case cards (database.php drill-down) --- */
.case-card {
	background: #f7f3ea;
	border: 1px solid #ccc;
	border-left: 5px solid #b8860b;
	border-radius: 4px;
	padding: 16px 20px;
	margin: 0 0 18px 0;
}
.case-card h3 {
	margin: 0 0 4px 0;
}
.case-card .case-meta {
	font-family: Arial, sans-serif;
	font-size: 0.8em;
	color: #666;
	margin-bottom: 8px;
}
.case-card .case-sources {
	font-family: Arial, sans-serif;
	font-size: 0.82em;
	margin-top: 10px;
}
.case-card .case-sources a {
	color: #7a0c0c;
}
.case-filters {
	font-family: Arial, sans-serif;
	font-size: 0.85em;
	margin: 16px 0;
}
.case-filters button {
	background: #14213d;
	color: #f5deb3;
	border: none;
	padding: 6px 12px;
	margin: 3px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.95em;
}
.case-filters button:hover, .case-filters button.active {
	background: #b8860b;
	color: #14213d;
}

/* --- Live/ongoing page banner --- */
.live-banner {
	background: #7a0c0c;
	color: #fff;
	font-family: Arial, sans-serif;
	font-size: 0.85em;
	padding: 10px 16px;
	border-radius: 4px;
	margin: 0 0 20px 0;
}
.live-banner strong { color: #f5deb3; }

.response-box {
	background: #eef2f7;
	border: 1px solid #14213d;
	border-left: 5px solid #14213d;
	padding: 14px 18px;
	margin: 20px 0;
	font-size: 0.95em;
}

@media (max-width: 700px) {
	.content { padding: 20px 5%; }
	table.cases { font-size: 0.8em; }
	.mainnav a { font-size: 0.8em; padding: 6px 8px; }
}
