/* Uganda Gold Regions (/uganda-gold-regions) - sourced regional evidence
   guide. Scoped entirely to this page - not loaded anywhere else. Palette
   reuses the site's own navy/gold brand tokens; typography (Source Serif 4
   headings + IBM Plex Mono for data/labels) matches the research artifact
   this page was drafted and approved from, so the published page and the
   review document the owner saw look like the same thing. */

.gr-page {
	--gr-navy: #1f2937;
	--gr-navy-soft: #3d4a5c;
	--gr-paper: #fbfaf7;
	--gr-paper-raised: #ffffff;
	--gr-line: #dcdfe4;
	--gr-line-strong: #b9c0ca;
	--gr-gold: #a9822a;
	--gr-gold-bg: #f6ecd2;
	--gr-gold-ink: #6b4f13;
	--gr-occurrence: #6b6f76;
	--gr-occurrence-bg: #eceef0;
	--gr-historical: #7a5a2e;
	--gr-historical-bg: #f1e6d2;
	--gr-active: #7a5fb0;
	--gr-active-bg: #ece6f6;
	--gr-commercial: #1f6b45;
	--gr-commercial-bg: #e3f1e9;
	--gr-potential: #3d6f8a;
	--gr-potential-bg: #e2edf1;
	--gr-muted: #757e8a;
	background: var(--gr-paper);
}

.gr-wrap {
	max-width: 780px;
	margin: 0 auto;
	padding: 2.5rem 1.5rem 5rem;
	font-family: var(--font-sans, -apple-system, sans-serif);
	color: var(--gr-navy);
	line-height: 1.7;
}
.gr-wrap p { margin: 0 0 1.1rem; max-width: 72ch; }

.gr-crumbs { font-size: 0.8rem; color: var(--gr-muted); margin: 0 0 1.2rem; }
.gr-crumbs a { color: var(--gr-muted); text-decoration: none; }
.gr-crumbs a:hover { color: var(--gr-gold-ink); }
.gr-crumbs span { margin: 0 0.4em; color: var(--gr-line-strong); }

.gr-eyebrow {
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--gr-gold);
	margin: 0 0 0.6rem;
}
.gr-page h1 {
	font-family: "Source Serif 4", Georgia, serif;
	font-weight: 600;
	font-size: clamp(2rem, 2.6vw + 1rem, 2.6rem);
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--gr-navy);
	margin: 0 0 0.7rem;
	text-wrap: balance;
}
.gr-lede {
	font-family: "Source Serif 4", Georgia, serif;
	font-size: 1.2rem;
	color: var(--gr-navy-soft);
	max-width: 66ch;
	margin: 0 0 2.2rem;
}
.gr-wrap h2 {
	font-family: "Source Serif 4", Georgia, serif;
	font-size: 1.55rem;
	font-weight: 600;
	margin: 2.8rem 0 0.9rem;
	color: var(--gr-navy);
}
.gr-wrap h3 {
	font-family: "Source Serif 4", Georgia, serif;
	font-size: 1.2rem;
	font-weight: 600;
	margin: 1.8rem 0 0.6rem;
	color: var(--gr-navy);
}
.gr-wrap h4 {
	font-family: "Source Serif 4", Georgia, serif;
	font-size: 0.98rem;
	margin: 0 0 0.35rem;
}
.gr-wrap a { color: var(--gr-gold-ink); text-decoration-underline; text-decoration-color: var(--gr-line-strong); }
.gr-wrap a:hover { text-decoration-color: currentColor; }
.gr-wrap em { font-style: italic; }

/* Figure / region cards */
.gr-figure {
	border: 1px solid var(--gr-line);
	border-radius: 10px;
	background: var(--gr-paper-raised);
	padding: 1.6rem;
	margin: 1.5rem 0 0.8rem;
}
.gr-figure-caption {
	font-family: var(--font-mono, monospace);
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--gr-muted);
	margin-bottom: 1.1rem;
}
.gr-regions-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.9rem;
}
@media (max-width: 700px) {
	.gr-regions-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
	.gr-regions-grid { grid-template-columns: 1fr; }
}
.gr-region-card {
	border: 1px solid var(--gr-line);
	border-radius: 8px;
	padding: 0.9rem 1rem;
	background: var(--gr-paper);
}
.gr-region-card.gr-commercial { border-top: 3px solid var(--gr-commercial); }
.gr-region-card.gr-active { border-top: 3px solid var(--gr-active); }
.gr-region-card.gr-historical { border-top: 3px solid var(--gr-historical); }
.gr-region-card.gr-occurrence { border-top: 3px solid var(--gr-occurrence); }
.gr-region-card.gr-potential { border-top: 3px solid var(--gr-potential); }
.gr-compass {
	font-family: var(--font-mono, monospace);
	font-size: 0.65rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--gr-muted);
	margin-bottom: 0.4rem;
}
.gr-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.5rem; }
.gr-tag {
	font-family: var(--font-mono, monospace);
	font-size: 0.6rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-weight: 600;
	padding: 0.1rem 0.4rem;
	border-radius: 3px;
}
.gr-tag.gr-commercial { background: var(--gr-commercial-bg); color: var(--gr-commercial); }
.gr-tag.gr-active { background: var(--gr-active-bg); color: var(--gr-active); }
.gr-tag.gr-historical { background: var(--gr-historical-bg); color: var(--gr-historical); }
.gr-tag.gr-occurrence { background: var(--gr-occurrence-bg); color: var(--gr-occurrence); }
.gr-tag.gr-potential { background: var(--gr-potential-bg); color: var(--gr-potential); }

.gr-legend-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	margin: 1.2rem 0 0;
	padding-top: 1rem;
	border-top: 1px solid var(--gr-line);
	font-size: 0.78rem;
	color: var(--gr-navy-soft);
}
.gr-legend-strip span { display: inline-flex; align-items: center; gap: 0.35rem; }
.gr-legend-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.gr-legend-dot.gr-commercial { background: var(--gr-commercial); }
.gr-legend-dot.gr-active { background: var(--gr-active); }
.gr-legend-dot.gr-historical { background: var(--gr-historical); }
.gr-legend-dot.gr-occurrence { background: var(--gr-occurrence); }
.gr-legend-dot.gr-potential { background: var(--gr-potential); }

.gr-disclaimer {
	background: var(--gr-gold-bg);
	border: 1px solid var(--gr-gold);
	border-radius: 8px;
	padding: 1rem 1.2rem;
	margin-top: 1.4rem;
	font-size: 0.88rem;
	color: var(--gr-gold-ink);
}
.gr-disclaimer strong {
	display: block;
	margin-bottom: 0.3rem;
	font-family: var(--font-mono, monospace);
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* Evidence table */
.gr-table-wrap {
	overflow-x: auto;
	margin: 1.2rem 0 1.6rem;
	border: 1px solid var(--gr-line);
	border-radius: 8px;
}
.gr-table-wrap table { border-collapse: collapse; width: 100%; font-size: 0.85rem; min-width: 640px; }
.gr-table-wrap th {
	text-align: left;
	font-family: var(--font-mono, monospace);
	font-size: 0.64rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--gr-muted);
	background: var(--gr-paper);
	padding: 0.6rem 0.7rem;
	border-bottom: 1px solid var(--gr-line-strong);
	white-space: nowrap;
}
.gr-table-wrap td {
	padding: 0.65rem 0.7rem;
	border-bottom: 1px solid var(--gr-line);
	color: var(--gr-navy-soft);
	vertical-align: top;
}
.gr-table-wrap tr:last-child td { border-bottom: none; }
.gr-table-wrap td.gr-strong { color: var(--gr-navy); font-weight: 600; }

/* The sitewide framework has its own @media(max-width:40rem) rule that turns
   every bare <table> into display:inline-flex with thead hidden and each td
   as its own flex row - built for a different, narrower comparison table
   elsewhere on the site. That collapses this 5-column evidence table into an
   unreadable single-cell-per-line stack and hides the column headers
   entirely. Override back to a normal table that scrolls horizontally inside
   .gr-table-wrap instead, which is what the desktop layout already does. */
@media screen and (max-width: 40rem) {
	.gr-table-wrap table { display: table; }
	.gr-table-wrap thead { display: table-header-group; }
	.gr-table-wrap tbody { display: table-row-group; }
	.gr-table-wrap tr { display: table-row; }
	.gr-table-wrap td, .gr-table-wrap th { display: table-cell; }
}

.gr-callout {
	background: var(--gr-gold-bg);
	border: 1px solid var(--gr-gold);
	border-radius: 8px;
	padding: 1.1rem 1.3rem;
	margin: 1.6rem 0;
}
.gr-callout p { margin: 0; color: var(--gr-gold-ink); max-width: none; }
.gr-callout-big { font-family: var(--font-mono, monospace); font-size: 1.2rem; font-weight: 600; }

.gr-bib { padding-left: 1.3rem; font-size: 0.9rem; }
.gr-bib li { margin-bottom: 0.7rem; color: var(--gr-navy-soft); }
.gr-src-type {
	font-family: var(--font-mono, monospace);
	font-size: 0.64rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--gr-muted);
	margin-right: 0.4rem;
}

.gr-cta-close {
	border: 1px solid var(--gr-line);
	border-radius: 10px;
	padding: 1.5rem 1.7rem;
	margin-top: 2rem;
	background: var(--gr-paper-raised);
}
.gr-cta-close h3 { margin-top: 0; }
.gr-cta-close-last { margin-bottom: 0; }
.gr-cta-btns { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1rem; }
.gr-btn {
	display: inline-block;
	font-weight: 600;
	font-size: 0.92rem;
	padding: 0.7rem 1.3rem;
	border-radius: 6px;
	text-decoration: none !important;
}
.gr-btn-primary { background: var(--gr-gold); color: #fff !important; }
.gr-btn-primary:hover { background: var(--gr-gold-ink); }
.gr-btn-secondary { border: 1px solid var(--gr-line-strong); color: var(--gr-navy) !important; }
.gr-btn-secondary:hover { border-color: var(--gr-navy); }

@media (max-width: 480px) {
	.gr-cta-btns { flex-direction: column; }
	.gr-btn { text-align: center; }
}

/* Revised structure (four major districts / other documented areas /
   current activity, kept separate) - additive only, nothing above this
   point was removed since /gold-kanungu and other district pages may still
   share visual language with this one. */

.gr-equivalence {
	background: var(--gr-navy);
	color: #fff;
	border-radius: 10px;
	padding: 1.2rem 1.4rem;
	margin: 1.4rem 0 1.8rem;
	display: flex;
	align-items: center;
	gap: 0.9rem;
	flex-wrap: wrap;
}
.gr-equivalence-symbol {
	font-family: var(--font-mono, monospace);
	font-size: 1.3rem;
	color: var(--gr-gold);
	flex-shrink: 0;
}
.gr-equivalence p {
	margin: 0;
	color: #fff;
	max-width: none;
	font-size: 1rem;
}
.gr-equivalence strong { color: var(--gr-gold); }

.gr-section-note {
	font-size: 0.88rem;
	color: var(--gr-muted);
	font-style: italic;
	margin: -0.4rem 0 1.2rem;
	max-width: 68ch;
}

/* Major-district badge, alongside the existing occurrence/potential/active/
   historical/commercial tag colours already used in the figure legend. */
.gr-tag.gr-major { background: var(--gr-gold-bg); color: var(--gr-gold-ink); }

.gr-wrap h3 .gr-tag {
	vertical-align: middle;
	margin-right: 0.5rem;
	position: relative;
	top: -0.1em;
}

.gr-activity {
	border: 1px solid var(--gr-line);
	border-radius: 8px;
	background: var(--gr-paper-raised);
	padding: 1.1rem 1.3rem;
	margin-bottom: 1rem;
}
.gr-activity h4 {
	font-family: "Source Serif 4", Georgia, serif;
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 0.6rem;
	color: var(--gr-navy);
}
.gr-activity h4 .gr-tag {
	vertical-align: middle;
	margin-right: 0.5rem;
	position: relative;
	top: -0.1em;
}
.gr-activity p { margin: 0; }
