* { box-sizing: border-box; }
.mCM_thumbnails_caption { box-sizing: content-box; }
/*==== PURE adjustments after out-of-the-box plus common minicm styles ====*/

/* latvian red = #A4343A */

#topmenu a, .mCM_pagenav a.mCM_SITE_link { color: #333; }
#topmenu a:hover, .mCM_pagenav a.mCM_SITE_link: hover { color: #000; background: #fff; }
#topmenu a:active, #topmenu span:active { font-weight: normal; }

.pure-menu-selected .pure-menu-link, .pure-menu-selected .pure-menu-link:visited { color: #eee; font-weight: normal; background-color: #A4343A; }
.pure-menu-selected .pure-menu-link:hover, .pure-menu-selected .pure-menu-link:visited:hover { background-color: #A4343A; } /* latvian red is... rgba( 116, 13, 9, 0.4 ) */
a.pure-menu-link:hover { background-color: #ffffff; color: #A4343A !important; }
#topmenu *:focus { font-weight: normal !important; }
/*===== (other) miniCM styles and templates =====*/

.figure_center,
.mCM_frame,
.mCM_caption {
	display: block;
	margin: 1em auto;
	font-size: 85%;
	line-height: 135%;
	text-align: center;
	max-width: 100%;
	font-style: italic;
}
.mCM_caption .nocaption {
	display: none;
}
.mCM_navigate {
	display: block;
	padding: 0 0 .5em 0;
	text-align: center;
}

.figure_left,
.figure_right,
.figure_center {
	display: block;
	font-size: 85%;
	line-height: 135%;
	text-align: center;
	float: left;
	max-width: 100%;
	box-sizing: border-box;
	font-style: italic;
}
.figure_left {
	margin: 1em 1.5em 1em 0;
	float: right;
}
.figure_right {
	margin: 1em 0 1em 1.5em;
	float: right;
}
.figure_center {
	margin: 1em auto;
}

.stack_right {
	clear: right;
}
.stack_left {
	clear: left;
}
.stack {
	clear: both;
}

img.figure {
	padding: 0;
	margin: 0 0 4px 0;
	border: 1px #606060 solid;
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
}
.noborder img, .NOBORDER img {
	border: none !important;
	box-shadow: none !important;
}
.mCM_thumbnails_caption > a { 
	display:inline-block;
}
.mCM_thumbnails_caption a:hover,
a .dim:hover { 
	opacity: 0.7;
	filter: alpha(opacity=70); /* For IE8 and earlier */
}
/* specify variants in case we differentiate in the future */
.content :not(.mCM_pagenav) a.mCM_WIK_link,
.content :not(.mCM_pagenav) a.mCM_EXT_link,
.content :not(.mCM_pagenav) a.mCM_SITE_link {
	color: #e08900 /* #f1ab51 */ /* #db932a */;
	border-bottom: 3px rgb(219, 222, 224) dotted;
	text-decoration: none;
}
.content :not(.mCM_pagenav) a.mCM_WIK_link:hover,
.content :not(.mCM_pagenav) a.mCM_EXT_link:hover,
.content :not(.mCM_pagenav) a.mCM_SITE_link:hover {
	border-bottom: 2px solid;
}

#menu a, #topmenu a , .menu-link, .mCM_FB_id { border: none; } /* undo what we just set */

#topmenu {
	width: 800px; max-width : 100%;
	margin: 0 auto 8px auto;
	z-index:1000;
}
#topmenu > div.pure-menu-horizontal > UL {
	margin: 0 auto; background-color: #eee; display:inline-block;
	box-shadow: 0px 5px 12px rgba( 50,50,50,0.5 );
}
#topmenu > div.pure-menu-horizontal { text-align: center; }

a.mCM_WIK_link, a.mCM_EXT_link {
	font-weight: bold;
}
a.mCM_WIK_link:focus, a.mCM_EXT_link:focus, a.mCM_SITE_link:focus, a.mCM_fn_link:focus {
	outline: 1px solid #ffffff; /* leave in plain sight for machine assisted reading */
	font-weight: bold;
}
a.mCM_WIK_link:hover, a.mCM_EXT_link:hover, a.mCM_SITE_link:hover, a:hover {
	color: #be6700; /* darken */
	border-bottom-color: #ffa500 /* #f1ab51 */ /* #db932a */;
}
.mCM_embed_link { /* INSIDE ext link */
	text-transform: uppercase;
	font-size: 15px;
}
a.lb-close {
	text-decoration: none;
}

.mCM_WIK_fn TD,
.mCM_WIK_fn TD p,
.mCM_WIK_fn TD ol,
.mCM_WIK_fn TD ul  {
	font-size: 15px;
	vertical-align: top;
}
a.mCM_WIK_fn {
	text-decoration:none;
}
hr.mCM_WIK_fnsep {
	width: 33%;
}

/*===== SITE SPECIFIC content and pure content over-ride styles =====*/

body {
	background-image:url('../graphics/latback2.gif');
	background-repeat: repeat;
	background-attachment: fixed;
}
body, html, .pagenav, .lastupdated {
	font-family: sans-serif;
	font-size: 15px;
}
.pagenav {
	font-size: 15px;
	padding-top: 10px;
	border-top: 1px dotted #666;
	clear:both;
}
.lastupdated {
	font-size: 14px;
}

div.content {
	font-family: "Merriweather", serif;
font-size: 15px;
   line-height: 1.6;
   color: #1f2124;
	margin-bottom: 0;
}
ul {
	list-style-type:square;
}
sub,
sup,
a.mCM_WIK_fn,
td.mCM_WIK_fnnum a {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sup,
a.mCM_WIK_fn  {
  top: -0.5em;
}
sub {
  bottom: -0.25em;
}

#main {
	max-width: 800px; /* change from ems since pixels are now logical */
	margin: 0 auto;		
}
.open .centered {
	margin-top: 0;
}
	.content {
		margin-top: 5px;
		padding: .5em 2em;
		background-color: #fff;
		border: 1px #c0c0c0 solid;
	}
		.content h1, #header h1, h2 {
			color: #900000;
			font-size: 20px;
			background-color: #f8f8f8;
			padding: .25em .5em;
			border-right: 1pt #808080 solid;
			border-bottom: 1pt #808080 solid;
			box-sizing: border-box;
			font-family: Merriweather;
		}
		#header h1 { text-align: center; }
		.content h2 {
			font-size: 18px;
		}
		.content h3 {
			font-size: 16px;
			color: #606060;
		}
		.content b {
			color: #800000;
		}
		.content blockquote {
			border-bottom: 1px solid #c0c0c0;
			border-right: 1px solid #c0c0c0;
			border-top: 1px solid #c0c0c0;
			margin: 1em 0 1em 1em;
			padding: .8em .8em .8em 0;
		}
	.sitetrailer {
		font-size: 12px; color: #606060;
		padding: .5em 1em;
		background-color: rgba( 0, 0, 0, 0.1);
		line-height: 130%;
	}
.pagenav {
	text-align: center;
	margin-bottom: .5em;
}

/*
 * gallery processing
 */
.mCM_thumbnails_container {
	width: 100%;
	text-align: center;
	padding-bottom: .8em;
} 
.mCM_thumbnails_head {
	font-size: 80%;
	color: #606060;
	padding: .5em 10% 1em 10%;
	line-height: 130%;
	font-style: italic;
}
.mCM_thumbnails {
}

DIV.figure, DIV.mCM_thumbnails_caption {
	font-size: 13px;
	display: block;
	vertical-align: top;
	padding: 0 4px;
	line-height: 20px;
	color: #808080;
}
.gallery DIV.mCM_thumbnails_caption { display: inline-block; }
.mCM_thumbnails_caption img, DIV.figure img {
	margin: 0 auto 3px auto;
}
.mCM_thumbnails_caption a:hover {
	background-color: #f0f0f0;
}

.mCM_thumbnails_caption IMG , DIV.figure img {
	border: .125em #606060 solid;
	box-shadow: 7px 3px 7px #bbbbbb;
	margin-bottom: 8px;
	background-color: transparent;
}
.mCM_thumbnails_caption p {
	margin: 0 !important;
	padding-top: 1em;
}

.mCM_caption .hidep { display: none; }

.mCM_thumbnails .mCM_1up {
	width: 100%; border: 1pt dotted #e0e0e0;
	box-sizing: border-box;
	background-color: #f8f8f8;
	text-align: left;
	display: block;
	margin-bottom: .5em; margin-right: 1em;
	clear: both;
	padding: 0.5em;
}
.mCM_thumbnails .mCM_1up_pic {
	display: block; float: left;
	width: 13%;
}	
.mCM_thumbnails .mCM_1up_pic IMG {
	border: .125em #606060 solid;
	box-shadow: 7px 3px 7px #bbbbbb;
	margin: 0 0 .5em 0;
	max-width: 100%;
}
.mCM_thumbnails .mCM_1up_desc {
	display: table-cell;
	width: 85%;
	padding-left: 2em;
}

.lastupdated {
	color: #808080;
	font-style: italic;
	font-size: 90%;
	display: block; float: right;
}
blockquote, h1, h2 {
	overflow: hidden;
} 

DIV.twoup { line-height: 150%; box-sizing: border-box; width: 100%; }
DIV.threeup { 	box-sizing: border-box;float: left; width: 100%; }
DIV.rightifroom { display: none; }
DIV.rightpad, DIV.verso { padding-right: 0; }
DIV.leftpad, DIV.recto  { padding-left: 0;  }

@media (min-width: 60em) {
	DIV.rightpad, DIV.verso { padding-right: .5em; }
	DIV.leftpad, DIV.recto  { padding-left: .5em;  }
	DIV.twoup { width: 50%; float: left; }
	DIV.threeup { width: 33%;}
	DIV.rightifroom { /* right if room */
		display: block;
		float: right;
		width: 33%;
		margin-left: 1.5em;
	}	
}

.alleged {
	font-family: Courier, Courier New, monospace;
	font-size: 8pt;
	line-height: 8pt;
	color:red;
	padding: 1px 3px;
	font-weight: bold;
	border: 1pt solid red;
	display: block; float:left; 
	margin: 6px 4px 0 0;
}
.mCM_btn {
	font-family: sans-serif;
	font-size: 13px !important;
}
/* Merriweather italic butts too close to trailing non-italic */
DIV.content i { padding-right: 2px; }
.gallery DIV.mCM_thumbnails_caption { margin: 0; }
.mCM_thumbnails_caption img { border: 1px #666666 solid; }
TABLE.mCM_qt_BQDATES TD { vertical-align: top; }
TABLE.mCM_qt_BQDATES TD.mCM_qt_col1 { padding-right: 15px; }
DIV.figure {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.gallery DIV.mCM_thumbnails_caption { padding-bottom: 10px; }

TD.mCM_WIK_fnnum { width: 50px; font-size: 15px; }
TD.mCM_WIK_fnnum wbr { display: none; }
TD.mCM_WIK_fnnum a { text-decoration: none; }
TD.mCM_WIK_fnnum a:before { content: " "; }

/*=== last but not least, tweak device display ===*/

#header { display: block; float: left; clear: both; margin: 0px 0 0px 2em; }
#header { width: calc( 100% - 4em ); }
h1 { margin-top: 15px; } /* pure-min sets margin, change */

@media ( max-width: 32em ) {
	#header { margin-left: 12px; width: calc( 100% - 24px );}
	.content { padding-left: 12px; padding-right: 12px; }
	TABLE.mCM_qt_BQDATES, TABLE.mCM_qt_BQDATES tbody, TABLE.mCM_qt_BQDATES tr {
		display: block; }
	TABLE.mCM_qt_BQDATES TD.mCM_qt_col1 {
		display: block; float: left; background: #f0f0f0; padding: 4px; margin: 6px 10px 3px 0; }
	TABLE.mCM_qt_BQDATES TD.mCM_qt_col2 { display: inline; }
	ul { padding-left: 15px; }
	#topmenu .pure-menu-link { padding: 7px 5px; }
	/* and a slight shrink */
	DIV.content { font-size: 16px; }
	DIV.content h1 { font-size: 18px; }
	DIV.content h2 { font-size: 16px; }
	DIV.content h2 { font-size: 16px; }
}

#toptop { font-family: 'Ysabeau SC', sans-serif; font-size: min( 8vw, 48px); color: #333; text-align: center; text-shadow: 5px 5px 10px #333; padding-top: 3px; line-height:80%;
display: block; margin-bottom: 12px; }
#topmenu { position: sticky; top: 0; }
.lg-hide-items .lg-sub-html { opacity: 1; }
#topmenu .pure-menu-horizontal { white-space: normal; }
p { clear: left; }
#fadebar { display: none; }
TABLE.mCM_WIK_fn { font-family: sans-serif; font-size: 14px; line-height: 130%; }

@media print {
	#topBtn, #toggle { color: transparent; background: transparent; border: transparent; float:right; }
	#topmenu { display: none; }
	.content { border:none; }
	TABLE.mCM_WIK_fn { display: block; }
	.content { color: #000; }
	.content a { color: #000! important; }
	h1, h2, h3, h4, h5, h6, b { color: #000! important; }
	body { background: #fff; }
}
/* 1320 as M227fdw */
