/*
	From scratch miniCM/PURE style file - for NMOA.US
*/

:root {
	--fillercolor: #fcfbfa;
	--bodyfont: sans-serif;
	--bodycolor: #333;
	--bodysize: 18px;
	--bodywidth: 900px;
	--bodypadding: min( 2vw, 30px );
	--boxborder: 2px solid;
	--boxradius: 0px;
	--bodylinecolor: rgba(44, 62, 80, 0.75);
	--pureleft:	300px;
	--negativepureleft: -300px;
	--headfont: 'Fira Sans Condensed' /* 'Oswald' */;
	--headcolor: #746748;
	/* start reworking figure to not be hard-coded? */
	--figure-thumb:	100px;
	--figure-small:	150px;
	--figure-medium:	250px;
	--figure-large:	350px;
	--figure-xl:		500px;
	--figure-xxl:		600px;
	/* set to content width */
	--figure-full:		calc( var(--bodywidth) - var(--bodypadding ) );
}
/* constrain */
* { box-sizing: border-box; }
.figure-thumb	{ max-width: var(--figure-thumb); max-height: var(--figure-thumb); margin: auto; }
.figure-small	{ max-width: var(--figure-small); max-height: var(--figure-small); margin: auto; }
.figure-medium	{ max-width: var(--figure-medium); max-height: var(--figure-medium); margin: auto; }
.figure-large	{ max-width: var(--figure-large); max-height: var(--figure-large); margin: auto; }
.figure-xl		{ max-width: var(--figure-xl); max-height: var(--figure-xl); margin: auto; }
.figure-xxl		{ max-width: var(--figure-xxl); max-height: var(--figure-xxl); margin: auto; }
.figure-full	{ max-width: var(--figure-full); max-height: var(--figure-full); margin: auto; }

/* set PURE left menu, 48em is the PUER bre*/

@media (min-width: 48em) {
	#menu.our { left: var(--pureleft); }
	#layout.our { padding-left: var(--pureleft); }
	#topmenu.our { margin-left: 0; }
}
#layout.our.active { left: var(--pureleft); }
#layout.our.active #menu.our { left: var(--pureleft); width: var(--pureleft); }
#layout.our.active #topmenu.our { margin-left: 20px; }
#layout.our.active .menu-link { left: var(--pureleft); }
#menu.our { margin-left: calc( 0px - var(--pureleft) ); width: var(--pureleft); }
#topmenu.our .top0, #topmenu.our .top1, #topmenu.our .top2, #topmenu.our .top3, #topmenu.our .top4, #topmenu.our .top5, #topmenu.our .top6 { width: calc(100vw - var(--pureleft)); }
#menuLink { z-index: 1000; }
#topmenu.our { background: #000000; position:sticky; top: 0; text-transform: uppercase; }
#topmenu.our .mCM_active, #topmenu.our .mCM_active .pure-menu-link:hover { background-color: #eee; }
#menu.our { background: #ffffff; color: var(--bodycolor); } 
#header h1 { margin: 0 0 16px 0; color: #000000; font-family: var(--headfont); } /* note we have fadebar under top menu for spacing */
h2, h3, h4, h5, h6 { color: #000000; font-family: var(--headfont); }
#fadebar { background: linear-gradient(to bottom, white 0%, transparent 100%); z-index:100; position: sticky; }

/* rest of menus */

#abovetop { display:none; }
#innermenu { padding: 15px; }

/* short-hand */

.c { text-align: center; }
.l { text-align: left; }
.r { text-align: right; }
.t { vertical-align: top; }
.m { vertical-align: middle; }
.b { vertical-align: bottom; }
.big { font-size: 150%; }
.t0 { margin-top: 0; padding-top: 0; }
.b0 { margin-bottom: 0; padding-bottom: 0; }
.black { color: #000000; }

/* re-stylized elements */

em { font-style: normal; font-weight: bold; color: #ee0000; }

/* body styles */

.content.our { font-family: var(--bodyfont); font-size: var(--bodysize); color: var(--bodycolor); }
.content.our p, .content.our ul, .content.our ol, .content.our details, .content.our blockquote { margin-top: 6px; margin-bottom: 6px; }
.content.our blockquote {
	 background: var(--fillercolor);
    background-image: var(--bodylinecolor);
    background-position-x: initial; background-position-y: initial; background-size: initial; background-repeat: initial;
    background-attachment: initial; background-origin: initial; background-clip: initial; margin-left: 0; margin-right: 0;  }
.content.our { padding: 0 var(--bodypadding); }

a.mCM_WIK_fn {
	font-size: 12px;
	vertical-align: baseline;
	position: relative;
	top: -0.5em;
	line-height: 0;
	margin-left: 2px;
	border: 1px dotted #444;
	padding: 1px 3px;
}

table.mCM_WIK_fn td.mCM_WIK_fnnum { padding-right: 10px; vertical-align: top; }
table.mCM_WIK_fn td.mCM_WIK_fnref { font-size: 16px; vertical-align: top; border-bottom: 1px dotted; }

.content-body a {
	text-decoration: none;
}
.content-body a:hover {
	text-decoration: underline dotted;
	text-underline-offset: 4px;
}

p { text-indent: 1.5em }
p:first-of-type { text-indent: 0; }

/* progress */

progress {
    width: 100%;
    height: 12px;
    appearance: none;
    border: none;
    border-radius: 6px;
    overflow: hidden;
}

/* Chrome, Edge, Safari */
progress::-webkit-progress-bar {
    background: #ddd;
    border-radius: 6px;
	 width: 100%;
}
// need to keep them segregated, if combined and one is not recognized, entire rule fails
progress::-webkit-progress-value			{ border-radius: 6px; }
progress.document::-moz-progress-bar	{ border-radius: 6px; }

progress.document::-webkit-progress-value	{ background: var(--document-color); }
progress.document::-moz-progress-bar		{ background: var(--document-color); }

progress.acknowledge::-webkit-progress-value	{ background: var(--acknowledge-color); }
progress.acknowledge::-moz-progress-bar		{ background: var(--acknowledge-color); }

progress.atone::-webkit-progress-value	{ background: var(--atone-color); }
progress.atone::-moz-progress-bar		{ background: var(--atone-color); }

progress.aware::-webkit-progress-value	{ background: var(--aware-color); }
progress.aware::-moz-progress-bar		{ background: var(--aware-color); }


.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-container progress {
    flex: 1;
}

.progress-container span {
    min-width: 3em;
    text-align: right;
    font-size: 0.9em;
}
.sub { color: #999; display:block; }

h3{ font-size: 1.33em; }

blockquote, details div.summaryblock {
	border: 1px #333 solid !important;
	border-radius: 8px;
	overflow: hidden;
	padding: 4px 16px;
	background: var(--fillercolor);
}
details div.summaryblock { margin-left: 1px !important; } /* override plus/minus */

h2,h3,h4,h5,h6 { margin: 6px 0; }

.i0 { text-indent: 0; }
.c { text-indent: 0; text-align: center; }
.b { font-weight: bold; }

.mCM_TOC {
    background: var(--fillercolor );
    border: 1px solid #666; );
    border-radius: 8px;
    margin: 8px 0;
    padding: 8px 10px
}
.mCM_TOC:first-child {
    margin-top: 0
}
.mCM_TOC {
    display: table;
}
.mCM_TOC a { color: #333; }
.mCM_TOC a:hover {
	text-decoration-line: underline;
	text-decoration-style: dotted;
	text-decoration-color: currentColor;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 4px;
}

/* do hanging indents on TOCs, sometimes we cheat and create deeper header levels than supported */

.mCM_TOC_H2 { display: block; margin-left: 0; }
.mCM_TOC_H3 { display: block; margin-left: 1em; padding-left: 1.75em; text-indent: -1.75em; }
.mCM_TOC_H4 { display: block; margin-left: 2em; padding-left: 1.75em; text-indent: -1.75em; }
.mCM_TOC_H5 { display: block; margin-left: 3em; padding-left: 1.75em; text-indent: -1.75em; }
.mCM_TOC_H6 { display: block; margin-left: 4em; padding-left: 1.75em; text-indent: -1.75em; }
.mCM_TOC_H7 { display: block; margin-left: 5em; padding-left: 1.75em; text-indent: -1.75em; }
.mCM_TOC_H8 { display: block; margin-left: 6em; padding-left: 1.75em; text-indent: -1.75em; }
.mCM_TOC_H9 { display: block; margin-left: 7em; padding-left: 1.75em; text-indent: -1.75em; }

#topmenu li.pure-menu-selected { background: orange; }

#expand, #collapse { background-color: var(--fillercolor ); border: 1px solid; }
#expand:hover, #collapse:hover { background-color: orange; color: #fff; }
.sitetrailer { padding-bottom: 8px; text-align: center; font-size: 15px; }
#topmenu.our { height: auto; z-index:1000; }

a.mCM_WIK_link, a.mCM_EXT_link { color: rgb( 85, 26, 139 ); }
a.mCM_WIK_link:after { content: '\2197'; }
.lastupdated { clear:right; float:right; display:block; font-size: 15px; }

 