/* SEM - Semantic Elements Markup 
 * Author: Tradesouthwest 
 * Mobile first set at 768px;
 */
/**
MICRO RESET
==================================================== */
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, main, article, aside, figure, footer, header, menu, nav, section, menu, time, mark, audio, video {
margin : 0;
padding : 0;
border : 0;
outline : 0;
vertical-align : baseline;
background : transparent;
} 
html {
height : 100%;
}

/* one liners at top for background-color easy access */
div {           background: #fafafa;}
aside {         background: #f7f9f9}
article {       background: inherit;}
section  {      background: inherit}
nav ul    {     background: #222;}

header,footer { background: #f6f6f6;}

body {          background: #e5e6e9;
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size:   100%;
	margin:      7px 15px;
	color:       #3b3b3b;
	-webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
/* Adding a body class gives rounded borders on almost everything */
body.border-round section,
body.border-round article,
body.border-round aside,
body.border-round header,
body.border-round footer,
body.border-round nav ul {
	border-radius: .25rem;
}
/* Set all elements some base styling 
   RTL style in media query and at bottom of page 
 */
div,
nav,
section,
header,
footer,
article {
	float:      left;
	position:   relative;
	min-height: 1px;
	width:      100%;
	-webkit-box-sizing:     border-box;
       -moz-box-sizing:     border-box;
            box-sizing:     border-box;
            padding-top:    15px;
            padding-bottom: 15px;
}

/* Div can be treated like a container to wrap other sections in. 
 * Adds padding to sides of elements on page.(div is only el w/ side padding)
 * By removing padding on widths there is less chance of sections breaking
 * between those sensitive (ex.: 768px/769px) device widths.)
 */
/* Certain combination divs WILL get H-padding */
div,
article > header,
article > section > header {
	padding-left:  15px;
	padding-right: 15px;
}
div {
	background:    transparent;
	margin-bottom: 0;
	display:       block;
}
/* article followed by a div(container) can lessen top-space on first div */
article > div {
    padding-top: 1px;
}
/* Main can be used on full page or portions of page (wrapper).
   Has no significant use-case at current, other than semantics.
 */
main {
	width: 100%;
}
/* Article element wraps articles/sections/asides (hence the 100% width; */
article {
	border-bottom: thin solid #ddd;
	min-height:    1px;
	width:         100%;
	margin-bottom: 7px;
}
header,
footer {
	width:         100%;
	margin-bottom: 0px;
	border-bottom: thin solid #ddd;
	padding-left:  1.445rem;
}
footer {
    text-align: initial;
}
header{
	text-align: center;
}
section {
	padding: 15px;
    display: block;
  	margin-bottom: 7px;
    width: 100%;
}
aside {
    display: block;
	float: left;
	margin-right: 15px;
	padding-top: 15px;
	padding-bottom: 15px;
    box-sizing: border-box; 
    width: 100%;
}
aside > header {
    margin-top: -15px;
}
h1 small, h2 small, h3 small, h4 small, h5 small {
    font-style: italic;
    color: #676767;
}
h1, h2, h3 {
    
    font-family: 'Roboto', sans-serif;
}
p {
	margin: 0 0 1.445rem 0;
	line-height: 1.444em;
}
div p:first-child {
    margin-top: 1.445rem;
}
p:first-letter {
	margin-left: .4582em;
}
/* half height margin on last paragraph */
div p:last-child,
section p:last-child,
article section p:last-child,
article p:last-child,
p:last-child {
    margin-bottom: .7225rem;
}
#content{
    padding-top: 0;
}
.top-stars{
    display: block;
    background: #f9f9f9 url('imgs/star.png');
    background-repeat: repeat;
    background-size: 2em;
    background-position: center;
    height: 2.1222em;
    border-bottom: thin solid #ddd;
    padding-top:0;
    overflow-y:hidden;
}
/* external links icon after link 
   external-link.png = 14px 
   TODO a[target="_blank"]::after:not(nav ul li a[target="_blank"])
*/
a.external:after,
a.ext:after,
a[target="_blank"]:after {
	content:    url("imgs/external-link.png");
	background: rgba(252, 252, 252, .75) none repeat scroll 0% 0%;
	position:   relative;
	display:    inline-block;
	right:      -3px;
	top:        0px;
	height:     1.167em;
}
a { 
    color:           #05d;
    text-decoration: none;
    text-shadow:     .25px .5px 1px #939393;
}
a:visited{
    color: #76448a;
}
a:hover {
    text-decoration: underline;
    opacity:         .9;
    text-shadow:     none;
}
ul {
    list-style: none;
    position:relative;
    top:1em;
}
li{
    margin-left:.5em;
    margin-bottom: .67em;
}
ul.list-inline{
    display: inline;
}
.list-inline li{
    display: inline-block;
 
    margin-left: 0px;
    margin-right: 15px;
}
img {
	max-width: 100%;
}
figure{
    position: relative;
    box-sizing: border-box;
}
figcaption,
time{
    color: #656565;
    font-size: .938rem;
    font-style: italic;
    text-align: center;
    margin-left: 7px;
        margin-right: 7px;
    }

nav {
  margin-bottom: 7px;
}    
nav ul {
	display: block;
	list-style: none;
	padding: 7px;
	max-width: 100%;
	height: calc(10vw + 10vh);
	border-bottom: thin solid #eee;
	margin: 0 auto 7px auto;
}	
nav ul li {
   	float: left;
   	margin: 1px auto;
   	position: relative; 
   	width: 100%;
}
nav ul li a {
	display: block;
	padding: 5px;
	margin-bottom: 1px;
	border-radius: 1.222px;
}
@media all and (min-width: 768px) {
    div:after,
    section:after,
    header:after,
    footer:after,
    article:after {
        clear: left;
        display: table;
        content: " ";
    }
    /*
    section {
	    width: calc(66.66666667% - 30px);
	    display: inline;
    }
    article{
        width: 100%;
    }
	aside {
	    float:   left;
	    width:    calc(33.33333336% - 30px);
	    display:   block;
	   	margin-top: 15px;
	   	margin-left: 15px;
	   	margin-right: 15px;
    } */
    /* if Article has Aside(s) but No Section tag 
       (Sections are displayed inline;) */
    article > aside {
        float:        right;
        margin-right: 30px;
    }
    article section aside {
        margin-left: 15px;
    }
    article section aside:first-child{
        margin-left: 15px;
        float:       left;
    }
    body.rtl aside {
        margin-left:  15px;
	   	margin-right: auto;
	}
	body.rtl article section aside {
        margin-right: 15px;
    }
    body.rtl article section aside:first-child{
        margin-right: 15px;
        float:        right;
    }
    nav {
        width: 98.8992%;
    }
	nav ul {
		display: block;
		list-style: none;
		margin: 0 auto;
		padding: 7px;
		width: 100%;
		height: 2.5em;
		border-bottom: thin solid #eee;
		background: #222;
	}	
    nav ul li {
    	float: left;
    	margin: 5px 2px;
    	position: relative;
    	width: auto;
    }
    nav ul li:first-child {
	    margin-left: 5px;
    }
    nav ul li a {
    	margin-bottom: 0px;
    }
}
/* ends mobile first */
/* Table elements */
table {
    border-spacing: 0;
    width: 100%;
 	margin-bottom: 7px;
}
tbody{
    word-wrap: normal;
}
th {
    background: #404853;
    background: linear-gradient(#687587, #404853);
    border-left: 1px solid rgba(0, 0, 0, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px;
    text-align: left;
    text-transform: uppercase;
}  
th:first-child {
    border-top-left-radius: 4px;
    border-left: 0;
}
th:last-child {
    border-top-right-radius: 4px;
    border-right: 0;
}
td {
    border-right: 1px solid #c6c9cc;
    border-bottom: 1px solid #c6c9cc;
    padding: 8px;
}
td:first-child {
    border-left: 1px solid #c6c9cc;
}
tr:first-child td {
    border-top: 0;
}
tr:nth-child(even) td {
    background: #e8eae9;
}
tr:last-child td:first-child {
    border-bottom-left-radius: 4px;
}
tr:last-child td:last-child {
    border-bottom-right-radius: 4px;
} 
dt {
	font-size: 103%;
	line-height: 1.67
}
dl {
	padding: 15px 0px;
	word-wrap: normal;
	white-space: pre-inline;
	margin-bottom: 7px;
}
dd {
	font-size: 98%;
	color: #333;
}
mark {
    color: #000;
    background: #ff0;
}
small {
    font-size: 80%;
}
sub,
sup {
    position: relative;
    font-size: 75%;
    line-height: 0;
    vertical-align: baseline;
}
sup {
    top: -.5em;
}
sub {
    bottom: -.25em;
}
button,
input,
optgroup,
select,
textarea {
    margin: 0;
    font: inherit;
    color: inherit;
}
button {
    overflow: visible;
}
button,
select {
    text-transform: none;
}
button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
    -webkit-appearance: button;
    cursor: pointer;
}
button[disabled],
html input[disabled] {
    cursor: default;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
    padding: 0;
    border: 0;
}
form {
    margin: 0 auto;
    position: relative;
    width: 90%;
    height: 100%;
}
fieldset {
    padding: 7px;
    overflow: auto;
    border: thin dashed #ddd;
}
label {
    font-weight: bold;
}
input {
    line-height: normal;
}
textarea {
    overflow: auto;
}
optgroup {
    font-weight: bold;
}

[role="button"] {
    cursor: pointer;
}
abbr[title],
abbr[data-original-title] {
    cursor: help;
    border-bottom: 1px dotted #777;
}

blockquote {
    padding: 10px 20px;
    margin: 0 0 20px;
    font-size: 17.5px;
    border-left: 5px solid #eee;
}

blockquote p:last-child,
blockquote ul:last-child,
blockquote ol:last-child {
    margin-bottom: 0;
}
address {
    margin: 20px 0px;
    font-style: normal;
    color:#555;
    line-height: 1.42857143;

}
address u{color:maroon; margin-bottom: 1rem;}
code,
xmp,
pre,
samp {
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
}

code {
    padding: 2px 4px;
    font-size: 90%;
    color: #c7254e;
    background-color: #f9f2f4;
    border-radius: 4px;
}

pre {
    display: block;
    padding: 9.5px;
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.42857143;
    color: #333;
    word-break: break-all;
    word-wrap: break-word;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 4px;
}

pre code {
    padding: 0;
    font-size: inherit;
    color: inherit;
    white-space: pre-wrap;
    background-color: transparent;
    border-radius: 0;
}

legend {
    display: block;
    width: 100%;
    padding: 0;
    margin-bottom: 20px;
    font-size: 21px;
    line-height: inherit;
    color: #333;
    border: 0;
    border-bottom: 1px solid #e5e5e5;
}


button {
    display: block;
    padding: 6px 12px;
    margin: 7px auto 0px auto;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;
}
 
button:focus,
button:active:focus,
button.active:focus,
button.focus,
button:active.focus,
button.active.focus {
    outline: 5px auto -webkit-focus-ring-color;
    outline-offset: -2px;
}

button:hover,
button:focus {
    color: #333;
    text-decoration: none;
}
.text-center{
margin: 0 auto;
text-align: center;
}
.marg-t2{
margin-top: 2em;
margin-bottom: 1em;
}
.bkgnd-med{
background: palegoldenrod;
}
article h4 span{
border: thin solid #ddd;
border-radius: 5px;
padding: 8px 16px;
background: rgba(252,252,252, .68)
}