body {
	font: 100%/1.4 Verdana, Arial, Helvetica, sans-serif;
	background-color: #42413C;
	margin: 0;
	padding: 0;
	color: #000;
}
ul, ol, dl {
	padding: 0;
	margin: 0;
}
h1, h2, h3, h4, h5, h6, p {
	margin-top: 0;
	padding-right: 15px;
	padding-left: 15px;
}
h1, h2, h3, h4, h5, h6 {
	text-align: left;
}
p {
	text-align: justify;
}
p.no-justify {
	/* used for paragraphs containing an email address or web address:
	   justify can stretch the line badly around a long unbreakable word/link */
	text-align: left;
}
a img {
	border: none;
}
a:link {
	color: #42413C;
	text-decoration: underline;
}
a:visited {
	color: #42413C;
	text-decoration: underline;
}
a:hover, a:active, a:focus {
	text-decoration: none;
}
img {
	max-width: 100%;
	height: auto;
}
iframe {
	max-width: 100%;
}
.container {
	max-width: 960px;
	width: 100%;
	background-color: #FAF7EF;
	margin: 0 auto;
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
}
.header, .footer {
	flex: 1 1 100%;
	width: 100%;
	box-sizing: border-box;
}
.header {
	background-color: #ADB96E;
	order: 1;
}
.header img.banner-img {
	display: block;
	width: 100%;
	height: auto;
}
.sidebar1 {
	flex: 1 1 320px;
	min-width: 260px;
	box-sizing: border-box;
	background-color: #EADCAE;
	padding-bottom: 10px;
	order: 2;
}
.sidebar1 img {
	display: block;
	width: 100%;
	height: auto;
}
.sidebar1 hr {
	border: none;
	border-top: 1px solid #B3A06B;
	margin: 15px;
}
.content {
	flex: 2 1 500px;
	min-width: 280px;
	box-sizing: border-box;
	padding-top: 10px;
	padding-right: 0;
	padding-bottom: 10px;
	padding-left: 0;
	text-align: justify;
	order: 3;
}
.footer {
	order: 4;
}
@media (max-width: 768px) and (orientation: portrait) {
	.sidebar1, .content {
		flex: 1 1 100%;
		width: 100%;
	}
	.content { order: 2; }
	.sidebar1 { order: 3; }
	.tagline .tagline-extra { display: none; }
}
@media (orientation: landscape) and (max-width: 926px) {
	.sidebar1 { flex: 1 1 240px; }
	.content { flex: 2 1 300px; }
}
.content ul, .content ol {
	padding: 0 15px 15px 40px;
}
.content .floatleft, .content .floatright {
	text-align: center;
	margin: 0;
}
.content .floatleft img, .content .floatright img {
	display: inline-block;
	margin: 0 10px 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid #B3A06B;
}
.content img.floatleft, .content img.floatright {
	display: block;
	margin: 0 auto 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid #B3A06B;
}
.content p.gallery-img {
	text-align: center;
	padding-bottom: 25px;
	margin-bottom: 25px;
	border-bottom: 1px solid #B3A06B;
}
.content p.gallery-img:last-child {
	border-bottom: none;
}
.book-row {
	display: flex;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 15px;
	padding: 0 15px;
	padding-bottom: 15px;
	margin-bottom: 15px;
	border-bottom: 1px solid #B3A06B;
}
.book-row p {
	flex: 1 1 200px;
	padding: 0;
}
.book-row img {
	flex: 0 0 auto;
	width: 104px;
	max-width: 40%;
	height: auto;
}
ul.nav {
	list-style: none;
	border-top: 1px solid #666;
	margin-bottom: 15px;
}
ul.nav li {
	border-bottom: 1px solid #666;
}
ul.nav a, ul.nav a:visited {
	display: block;
	width: auto;
	box-sizing: border-box;
	text-decoration: none;
	background-color: #C6D580;
	padding-top: 5px;
	padding-right: 5px;
	padding-bottom: 5px;
	padding-left: 15px;
}
ul.nav a:hover, ul.nav a:active, ul.nav a:focus {
	background-color: #ADB96E;
	color: #FFF;
}
ul.nav a.current, ul.nav a.current:visited {
	background-color: #6E1918;
	color: #FFF;
}

/* Horizontal main navigation, placed under the banner */
.mainnav {
	background-color: #C6D580;
	border-top: 1px solid #666;
	border-bottom: 1px solid #666;
}
.mainnav ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
}
.mainnav li {
	flex: 0 1 auto;
	border-right: 1px solid #666;
}
.mainnav li:last-child {
	border-right: none;
}
.mainnav a, .mainnav a:visited {
	display: block;
	text-decoration: none;
	text-align: center;
	color: #42413C;
	font-weight: bold;
	font-size: 0.85em;
	padding: 10px 8px;
	white-space: nowrap;
}
.mainnav a:hover, .mainnav a:active, .mainnav a:focus {
	background-color: #ADB96E;
	color: #FFF;
}
.mainnav a.current, .mainnav a.current:visited {
	background-color: #6E1918;
	color: #FFF;
}
@media (max-width: 640px) {
	.mainnav a { white-space: normal; }
}

/* Section sub-navigation shown at the top of the sidebar */
.sectionnav {
	margin-bottom: 15px;
}

/* Banner tagline text, above the banner image */
.tagline {
	text-align: center;
	color: #6E1918;
	font-weight: bold;
	font-size: 1.1em;
	padding: 6px 10px;
	margin: 0;
	background-color: #ADB96E;
}
.footer {
	padding: 10px 0;
	background-color: #CCC49F;
	position: relative;
	clear: both;
}
.fltrt {
	float: right;
	margin-left: 8px;
}
.fltlft {
	float: left;
	margin-right: 8px;
}
.clearfloat {
	clear:both;
	height:0;
	font-size: 1px;
	line-height: 0px;
}
.page-title {
	text-align: center;
	background-color: #201F1B;
	padding: 10px;
}
.page-title strong {
	color: #F2EEE2;
	font-size: 120%;
	font-weight: normal;
}

/* Staff intranet */
.staff-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
	margin: 0 15px 20px;
}
.staff-nav-link,
.staff-nav-link:link,
.staff-nav-link:visited {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background-color: #42413C;
	color: #FFF;
	text-decoration: none;
	font-weight: bold;
	font-size: 0.85em;
	padding: 7px 16px;
	border-radius: 20px;
}
.staff-nav-link:hover {
	background-color: #6E1918;
	color: #FFF;
}
.staff-nav-logout,
.staff-nav-logout:link,
.staff-nav-logout:visited {
	background-color: transparent;
	color: #42413C;
	border: 1px solid #B3A06B;
}
.staff-nav-logout:hover {
	background-color: #EADCAE;
	color: #42413C;
}
.intranet-lede {
	margin: 0 15px 18px;
	color: #55524A;
}
.btn {
	display: inline-block;
	background-color: #6E1918;
	color: #FFF;
	font-weight: bold;
	padding: 10px 24px;
	border: none;
	border-radius: 4px;
	text-decoration: none;
	cursor: pointer;
	font-size: 1em;
}
.btn:hover, .btn:focus {
	background-color: #ADB96E;
	color: #FFF;
	text-decoration: none;
}
.login-box {
	max-width: 340px;
	margin: 20px 15px;
	background-color: #EADCAE;
	border-top: 4px solid #6E1918;
	border-radius: 6px;
	padding: 28px 30px;
	text-align: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.login-box h2 {
	margin-top: 0;
	color: #6E1918;
	padding: 0;
}
.login-box label {
	display: block;
	text-align: left;
	margin-bottom: 4px;
	font-weight: bold;
}
.login-box input[type="text"],
.login-box input[type="password"] {
	width: 100%;
	padding: 8px;
	margin-bottom: 14px;
	box-sizing: border-box;
	border: 1px solid #B3A06B;
	border-radius: 3px;
	font-size: 1em;
}
.login-box .btn {
	width: 100%;
}
.login-error {
	color: #6E1918;
	font-weight: bold;
}

/* Statistics dashboard (intranet) */
.quick-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 15px 20px;
}
.quick-nav a {
	background-color: #FAF7EF;
	border: 1px solid #B3A06B;
	color: #42413C;
	text-decoration: none;
	font-size: 0.82em;
	font-weight: bold;
	padding: 5px 14px;
	border-radius: 20px;
}
.quick-nav a:hover {
	background-color: #C6D580;
	border-color: #ADB96E;
	text-decoration: none;
}
.stats-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 14px;
	margin: 0 15px 28px;
}
.stats-card {
	background-color: #FAF7EF;
	border: 1px solid #E4D9B8;
	border-left: 4px solid #ADB96E;
	border-radius: 8px;
	padding: 16px 18px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.stats-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
}
.stats-card.is-downloads {
	border-left-color: #6E1918;
}
.stats-card strong {
	display: block;
	font-size: 1.8em;
	line-height: 1.1;
	color: #6E1918;
}
.stats-card span {
	display: block;
	margin-top: 4px;
	font-size: 0.78em;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #7A7565;
}
.panel {
	background-color: #FAF7EF;
	border: 1px solid #E4D9B8;
	border-radius: 8px;
	margin: 0 15px 22px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	scroll-margin-top: 15px;
}
.panel-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	background-color: #EADCAE;
	padding: 10px 16px;
	border-bottom: 1px solid #B3A06B;
}
.panel-header h3 {
	margin: 0;
	padding: 0;
	color: #42413C;
	font-size: 1.05em;
}
.panel-note {
	font-size: 0.78em;
	color: #7A7565;
}
.panel-body {
	padding: 2px 0;
}
.panel-empty {
	margin: 0;
	padding: 16px;
	color: #7A7565;
	font-style: italic;
}
.stats-table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
}
.stats-table th, .stats-table td {
	text-align: left;
	padding: 8px 16px;
	border-bottom: 1px solid #EADCAE;
	font-size: 0.92em;
}
.stats-table th {
	background-color: transparent;
	color: #7A7565;
	text-transform: uppercase;
	font-size: 0.75em;
	letter-spacing: 0.04em;
	border-bottom: 2px solid #B3A06B;
}
.stats-table th.num, .stats-table td.num {
	text-align: right;
	font-variant-numeric: tabular-nums;
}
.stats-table td.mono {
	font-family: Consolas, "Liberation Mono", Menlo, monospace;
	font-size: 0.88em;
}
.stats-table tbody tr:nth-child(even) {
	background-color: #FCFAF3;
}
.stats-table tbody tr:hover {
	background-color: #F2ECDA;
}
.badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 20px;
	font-size: 0.75em;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}
.badge-view {
	background-color: #DCE8B0;
	color: #42541A;
}
.badge-download {
	background-color: #F0D9D9;
	color: #6E1918;
}
.geoip-credit {
	font-size: 0.8em;
	color: #7A7565;
	margin: 10px 16px 0;
	padding: 0;
}
