/* ============================================================
   Shared stylesheet for the "Beyond the Crowds" mini-site
   All four pages (index, data, analysis, resources) link here
   so the site keeps one consistent look and feel.
   ============================================================ */

body {
	background-color: #e9e3d6;
	color: #2b2926;
	font-family: Georgia, "Times New Roman", serif;
	line-height: 1.5;
	margin: 0;
}

#outercontainer {
	background-color: #243b3a;
	width: 1600px;
	max-width: 100%;
	margin: 0 auto;
	padding: 12px;
}

#container {
	background-color: #fcfbf7;
	width: 1600px;
	max-width: 100%;
	margin: 0 auto;
	padding: 22px;
}

h1 {
	text-align: center;
	font-size: 34pt;
	color: #243b3a;
	margin: 0;
}

#author {
	font-style: italic;
	font-size: 12pt;
	text-align: center;
	margin-top: 10px;
	margin-bottom: 40px;
}

h2 {
	color: #106b64;
	border-bottom: 2px solid #d5cdba;
	padding-bottom: 4px;
}

h3 {
	color: #b0531e;
}

#header {
	display: block;
	text-align: center;
	font-size: 36pt;
	border-bottom: 4px solid #106b64;
	padding: 16px;
}

#subgenre {
	text-align: center;
	background-color: #243b3a;
	color: #f4efe3;
	border: none;
	padding: 12px;
	font-size: 20pt;
}

a { color: #106b64; }
a:hover { color: #b0531e; }

/* -------------------- shared site navigation -------------------- */

nav#sitenav {
	background-color: #243b3a;
	margin: 0 -22px 30px -22px;
	padding: 10px 22px;
}

nav#sitenav ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 30px;
	list-style: none;
	margin: 0;
	padding: 0;
}

nav#sitenav a {
	color: #f4efe3;
	text-decoration: none;
	font-size: 13pt;
	padding: 4px 2px;
	border-bottom: 2px solid transparent;
}

nav#sitenav a:hover {
	color: #e2a06f;
}

nav#sitenav a.active {
	color: #e2a06f;
	border-bottom: 2px solid #e2a06f;
	font-weight: bold;
}

/* -------------------- page-jump sub-nav (within a page) -------------------- */

nav.pagejump {
	text-align: center;
	margin-bottom: 30px;
	font-size: 11pt;
}

nav.pagejump a {
	margin: 0 12px;
	text-decoration: none;
}

nav.pagejump a:hover { text-decoration: underline; }

/* -------------------- quote callouts -------------------- */

.quote {
	background-color: #f1ecdf;
	border-left: 6px solid #b0531e;
	padding: 10px 20px;
}

/* -------------------- tables -------------------- */

figure.datafig {
	background-color: #ffffff;
	border: 1px solid #d5cdba;
	padding: 8px;
	margin: 20px 0;
	clear: both;
}

.table-scroll { overflow-x: auto; }

table {
	width: 100%;
	border-collapse: collapse;
	font-size: 10.5pt;
	min-width: 760px;
}

table.small-table { min-width: 0; font-size: 10pt; }

thead th {
	background-color: #106b64;
	color: #f4efe3;
	text-align: left;
	padding: 7px 10px;
	font-weight: bold;
	white-space: nowrap;
}

td {
	padding: 6px 10px;
	border-bottom: 1px solid #e4ddc9;
}

tbody tr:nth-child(even) { background-color: #f4efe3; }
tbody tr:hover { background-color: #ecdfc4; }

tfoot td {
	font-weight: bold;
	border-top: 2px solid #106b64;
	border-bottom: none;
	background-color: #f1ecdf;
}

td.num, th.num { text-align: right; }

td.highlight {
	background-color: #f3ded0;
	color: #b0531e;
	font-weight: bold;
}

td.fee-free { color: #106b64; font-weight: bold; }

figcaption {
	font-size: 10pt;
	margin: 8px 2px 0;
	color: #55504a;
}

/* -------------------- flexible layout rows -------------------- */

.flex-row {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	align-items: flex-start;
	margin-bottom: 30px;
	clear: both;
}

.flex-row .compare-table { flex: 1 1 340px; }
.flex-row .compare-text { flex: 1 1 360px; }
.flex-row .compare-table figure.datafig { margin-top: 0; }

.teaser-row {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	margin-bottom: 10px;
}

.teaser-row .datafig { flex: 1 1 380px; margin: 0; }

.resource-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 30px;
}

.resource-box {
	background-color: #ffffff;
	border: 1px solid #d5cdba;
	border-top: 3px solid #106b64;
	padding: 16px;
	flex: 1 1 300px;
}

.takeaways {
	background-color: #ffffff;
	border: 1px solid #d5cdba;
	border-left: 6px solid #106b64;
	padding: 14px 22px;
	margin: 20px 0 30px;
}

.takeaways li { margin-bottom: 8px; }

.cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: center;
	margin: 24px 0 10px;
}

.cta-row a {
	background-color: #106b64;
	color: #f4efe3;
	text-decoration: none;
	padding: 10px 20px;
	font-size: 12pt;
}

.cta-row a:hover { background-color: #b0531e; color: #fff; }

/* -------------------- glossary -------------------- */

dl.glossary dt {
	color: #b0531e;
	font-size: 13pt;
	font-weight: bold;
	margin-top: 16px;
}

dl.glossary dt:first-child { margin-top: 0; }

dl.glossary dd { margin: 3px 0 0 0; }

footer {
	border-top: 2px solid #d5cdba;
	margin-top: 30px;
	padding-top: 14px;
	font-size: 10pt;
	color: #55504a;
	text-align: center;
}

@media (max-width: 700px) {
	#container, #outercontainer { padding: 14px; }
	h1 { font-size: 24pt; }
	#subgenre { font-size: 15pt; }
}
