@import url('https://fonts.googleapis.com/css?family=Libre+Franklin:400,700|Montserrat:400,700');

*,
*:before,
*:after {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

:root {

	/* Colors */
	--color-primary: #c62828;

	/* Fonts */
	--font-primary: 'Libre Franklin', sans-serif;
	--font-secondary: 'Lato', sans-serif;
	--font-tertiary: 'Montserrat', sans-serif;

	--letter-spacing: 0.5px;
	--border-radius: 3px;
}

.group:after {
	display: table;
	clear: both;
	content: '';
}

html {
	padding: 0;
	margin: 0;
	font-size: 100%;
}

body {
	font-family: var(--font-primary);
	font-weight: 400;
	padding: 0;
	margin: 0;
}

body #content {
	margin: 0 auto;
	position: relative;
	top: 0px;
	/* padding: 0px 24px 24px 24px; */
}

body header { 
	/* padding: 24px 24px 0px 24px; */
}

h1, h2 {
	margin: 0px;
	font-weight: 700;
	color: #4a4a4a;
}

h1 {
	font-size: 1.125rem;
}

h2 {
	font-size: 0.875rem;
	margin: 0.5rem 0rem;
}

body #content .color0 {
	/* background-color: #555555; */
	background-color: #AAAAAA;
}

body #content .color1 {
	/* background-color: #3288bd; */
	background-color: #CC0000;
}

body #content .color2 {
	background-color: #66c2a5;
}

body #content .color3 {
	background-color: #afdd88;
}

body #content .color4 {
	background-color: #ffdd88;
}

body #content #interactive-map-legend ul {
	margin: 0px 0px 15px 0px;
	padding: 0;
	list-style: none;
}

body #content #interactive-map-legend ul li {
	display: inline-block;
	margin-right: 8px;
	list-style: none;
	line-height: 1;
	font-size: 0.875rem;
}

body #content #interactive-map-legend ul li span {
	display: inline-block;
	width: 1rem;
	height: 1rem;
	border-radius: 1rem;
}

body #content #interactive-map-input {
	position: relative;
	display: block;
	width: 100%;
	margin-bottom: 0px;
}

body #content #interactive-map-input #user_addr {
	display: inline-block;
	position: relative;
	left: auto;
	right: auto;
	margin-bottom: 10px;
	width: 100%;
	font-size: 1rem; /* As of June 2017, STLtoday's font-size is set to 10px (!!) on the <html> element. */
	line-height: 1rem;
	padding: 6px;
}




body #content #interactive-map {
	margin-top: 1rem;
	width: 100%;
	height: 500px;
}

dl {
	display: inline-grid;
	grid-template-columns: max-content auto;
	margin-top: 0px;
}

dt {
	grid-column-start: 1;
	border-bottom: 1px solid #aaa;
	padding: 3px 10px 0px 0px;
	margin: 0px;
}

dd {
	grid-column-start: 2;
	border-bottom: 1px solid #aaa;
	padding: 2px 0px;
	margin: 0px;
}

dl dt:last-of-type, dl dd:last-of-type {
	border-bottom: none;
}


/* Style the toggle button like a hyperlink */
#interactive-table-toggle {
	font-family: var(--font-primary);
	font-weight: bold;
	font-size: 1rem;
	text-align: left;
	color: black;
	background: none;
	margin: 1rem 0 0 0;
	padding: 0 0 3px 0;
	border: none;
	border-bottom: 1px solid black;
	cursor: pointer;
}
#interactive-table-toggle:hover {
	color: var(--color-primary);
	border-bottom: 1px solid var(--color-primary);
}


/* Styles to simulate jQuery slideToggle() */
body #content #interactive-table {
	display: block;
    overflow-y: hidden;
	max-height: 1000px;
    transition: max-height 0.3s ease;
}
body #content #interactive-table.hidden {
    max-height: 0;
}


/* Table styles */
body #content #interactive-table table {
	margin: 15px 0px 15px 0px;
	padding: 0;
	width: 100%;
	border-collapse: collapse;
}

body #content #interactive-table table tr td,
body #content #interactive-table table tr th {
	font-size: 1rem;
	line-height: 1;
	padding: 6px;
}

body #content #interactive-table table tr td span,
body #content #interactive-table table tr th span {
	display: inline-block;
	width: 1rem;
	height: 1rem;
	border-radius: 1rem;
}

body #content #interactive-table table tr td {
	font-weight: normal;
	border-bottom: 1px solid #aaa;
}

body #content #interactive-table table tr th {
	text-align: left;
	font-weight: bold;
	border-bottom: 1px solid black;
}

body #content #interactive-table table tr td a { color: black; text-decoration: none;}

body #content #interactive-table table tr td:nth-child(4),
body #content #interactive-table table tr td:nth-child(6),
body #content #interactive-table table tr th:nth-child(4),
body #content #interactive-table table tr th:nth-child(6) {
	border-left: 1px solid #aaa;
}

body #content #interactive-table table tr td:nth-child(4),
body #content #interactive-table table tr td:nth-child(5),
body #content #interactive-table table tr td:nth-child(6),
body #content #interactive-table table tr td:nth-child(7),
body #content #interactive-table table tr th:nth-child(4),
body #content #interactive-table table tr th:nth-child(5),
body #content #interactive-table table tr th:nth-child(6),
body #content #interactive-table table tr th:nth-child(7) {
	text-align: center;
}

@media (max-width: 800px) {
	html {
		font-size: 87.5%;
	}

	body #content #interactive-map {
		height: 400px;
	}

	body #content #interactive-table table tr td,
	body #content #interactive-table table tr th {
		padding: 3px;
	}

}

body #content #interactive-table table tr:nth-child(even) {
	background: #f0f0f0;
}


.map__date,
.map__note,
.map__credit,
.map__source {
	font-size: 0.875rem;
}


.map__source {
	font-style: italic;
}



body #content .leaflet-popup-content {
	font-family: var(--font-primary);
}

body #content .leaflet-popup-content h3 {
	font-size: 1rem;
	line-height: 1;
	color: black;
	text-transform: none;
	margin-bottom: 0.75rem;
}

body #content .leaflet-popup-content p {
	font-size: 0.875rem;
	font-weight: normal;
	margin: 6px 0px;
}