/*
Theme Name: OnMSFT 2020 Revision 1
Author: Kip Kniskern
Author URI: www.onmsft.com
Description: OnMSFT Theme for 2020 
Version: 1.0
*/

/* Bootstrap overrides */
h1 {font-size:1.75rem;line-height:1.5rem;font-weight:400;}
h2{font-size:1.5rem;line-height:1.4rem;font-weight:400;}
h3 {font-size:1.25rem;line-height:1.25rem;font-weight:400;}
h4 {font-size:1rem;line-height:1.1rem;font-weight:400;}
h5 {font-size:.9rem;line-height:.9rem;font-weight:400;}
h6 {font-size:.8rem;line-height:.8rem;font-weight:400;}

body {background:#d2d0ce;color:#3b3a39;margin:10px auto;line-height:1.25rem}
.container.masthead {background:#d2d0ce;}
.container.main {background:#fff;}
	h1, h2, h3, h4, h5, h6 {color: #004b50;}
	h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {color: #323130;}
	a {color:#00188f;}
	a:hover, .widget a:hover {color:#2b88d8;text-decoration:none;}
	img {object-fit:cover;max-width:100%;height:auto;}
	ul {list-style-type:none;}
	.ms-Icon {color:#197278;font-size:1.5rem;vertical-align:-.25rem;}

	#navmenu li, ul.social-header li, ul.social-single li, ul.social-footer li { display: inline-block; }
	#navmenu ul, footer ul, .widget ul, .social-single ul { 
	margin:.5rem 0; 
	padding: 0; 
	list-style-type: none; 
	list-style-image: none;
	}

/* Ads */
.ad {margin:0 auto .5rem;text-align:center;}
.adblock {height:250px; width:310px; display: inline-block;position:relative; vertical-align:top;}

/* Social Icons */
.social-home, .home-logo {text-align:center;margin-bottom:.5rem;}
ul.social.social-header {padding:0;margin:0;}
ul.social li {padding:.5rem 0;}
ul.social li:last-child {padding-right:0;}
.social-icon {background:#fff;border: solid 1px  #8a8886;border-radius:50%;padding:1rem .25rem;}
.social-icon:hover {border: solid 1px #605e5c;}
.social-header .social-icon {border: solid 1px #a19f9d;}
.social-header .social-icon:hover {border: solid 1px #d2d0ce;}
.social-icon img {margin-bottom:.4rem;height:48px;}
.social-counter {margin:.5rem auto;}
.socialcounter-legend {font-size:.9rem;}

li.teams-share {display:none !important;}
@media screen and (-webkit-min-device-pixel-ratio:0) {
  li.teams-share {display:inline-block !important;}
}

/* News Tip */
.newstip {
	text-align:center;
	margin-top:.75rem;
	background: #197278;
	padding:.5rem 0;
	box-shadow: 0 6.4px 14.4px 0 rgba(0,0,0,.132), 0 1.2px 3.6px 0 rgba(0,0,0,.108); /* (ms-depth-16) */
}
.newstip a, .newstip .ms-Icon {color:#edebe9;}
.newstip a:hover {color:#2b88d8;}

/* Nav Menu */
nav {text-align: center;}
#navmenu ul li a { 
	text-decoration:none; 
	color:#323130;
	font-family: sans-serif;
	font-weight:500;
	font-size:1rem;
	}
#navmenu .menu-item  {
	padding: .5rem;
	margin:.25rem;
	background: #fff;
	border:solid 1px #fff;
	}
#navmenu .menu-item a {vertical-align:.25rem;padding:0 .25rem;}
#navmenu .menu-item:hover {border:solid 1px #a19f9d;}
#navmenu .menu-item a:hover {color:#2b88d8;}
#navmenu .menu-item.current-menu-item a {color:#197278;font-weight:bold;}

/*Trending Menu */
ul#menu-trending-topics {margin-left:5%;}
ul#menu-trending-topics li {display:inline-block}
#menu-trending-topics li{
	margin:.25rem;
	white-space: nowrap;
}
#menu-trending-topics li a {margin-left:.25rem;font-size:1rem;font-family:sans-serif;vertical-align:.25rem;}
#menu-trending-topics .ms-Icon {color:#EF642C; }

/* Search */
.searchbox {width:80%;margin:0 auto 1rem;padding:.25rem;}
.searchbox .input-group {border-radius:0}
.searchbox .search-query {padding:0 .25rem;border:none;border-radius:0;}
.searchbox .btn {padding:0 .5rem;}
.search-term1 {color:#197278; text-transform: lowercase;}
.search-term2 {color:#ef642c; text-transform: none;}
.ms-Icon .ms-Icon--Search {font-size:.75rem;}

/* Titles */
.index-title {margin:0;padding:.5rem 0;}
.archive-title {margin:1rem 0 2rem;padding:.5rem 0;}
.single-title {margin:1rem 1rem .5rem;padding:.5rem;}
.single-title-icon .ms-Icon {margin:2.5rem 0 0;font-size:2.5rem;}
h2.widget-title, h2.widget, h4.widget{padding:.5rem 0;}

/* Lists */
.list-block {margin: .5rem 0 .5rem 1rem;}
.list-img img {max-width:125%;margin-top:.5rem;}
.list-title {margin-bottom:.2rem;padding:.25rem; }
.list-meta {line-height:1.25rem;color:#8a8886;padding:0 .25rem;}
.list-meta a {color:#00188f;}
.list-meta a:hover {color:#2b88d8; }

/* Single post / page */
.single-block {padding-left:1rem;}
.single-content a {color:#197278;}
.single-content a:hover {color:#2b88d8;}
.single-content ul {list-style-type:disc;font-size:1.1rem;}
.single-content {padding-top:1rem;}
.single-meta {margin-top:.5rem;padding:.5rem .5rem .75rem;line-height:1.5rem;}
.single-meta span {margin-right:.5rem;}
.single-meta a {color: #004b50;font-size:1rem;font-weight:bold;}
.single-meta a:hover {color:#197278;font-weight:normal}
.single-meta .ms-Icon {color:#3b3a39;vertical-align:-.4rem;}


blockquote {
	max-width: 100%;
	padding:1rem;
	margin:.5rem 1rem 1.5rem;
	box-shadow: 0 6.4px 14.4px 0 rgba(0,0,0,.132), 0 1.2px 3.6px 0 rgba(0,0,0,.108); /* (ms-depth-16) */
	}
.wp-caption-text {color: #004b50;font-style:italic;padding:.25rem 0  0 2rem;}

/* Widgets - Sidebar */
.sidebar {margin-top:.75rem;}
.single-sidebar {margin-top:1.25rem;}
.widget {max-width:100%;margin:0 auto 1rem;padding:.25rem;}
.widget a {color:#00188f;line-height:1rem;}
.widget li {margin:.5rem;}
.sidebar .widget {box-shadow: 0 6.4px 14.4px 0 rgba(0,0,0,.132), 0 1.2px 3.6px 0 rgba(0,0,0,.108); /* (ms-depth-16) */}
.sidebar .widget.ad {box-shadow:none;margin-bottom:0}
.wpp-list {font-weight:400 !important;}

/* Jetpack Top Posts Widget images */
.widget_top-posts .widgets-list-layout img.widgets-list-layout-blavatar {
    max-width: 240px;
    width: 30%;
}
 
.widget_top-posts .widgets-list-layout div.widgets-list-layout-links {
    max-width: 100%;
    width: 65%;
}

/* UPW OnMSFT UPW Custom lists */
.upw-posts article{margin-bottom:.75rem !important;}
.upw-posts article:last-child{border-bottom:0;padding-bottom:0;border-bottom:none;}
.onmsft-upw-image{float:left;width:30%;margin:.5rem .5rem;}
.onmsft-upw-content>:last-child,.onmsft-upw-summary>:last-child{margin-bottom:1em}
.onmsft-upw-more-link{white-space:nowrap}
footer{display:block;color:#888;font-size:.9em;line-height:1.4}
.onmsft-upw-custom-field,.onmsft-upw-categories,.onmsft-upw-custom-fields,.onmsft-upw-tags{margin-bottom:.5em}
.upw-after,.upw-before{margin-bottom:1rem}
.upw-after>:last-child,.upw-before>:last-child{margin-bottom:0}

/* Trending Grid */
.trending-item {position:relative;}
.wpp-grid li {padding:0;margin:0 .25rem 1.25rem;}
 .wpp-grid li  .wpp-thumbnail{
      display: block;
      width: 100%;
      height: auto;
    }


  .wpp-grid {
	 display: -ms-grid;
	display: grid;
     -ms-grid-columns: 1fr [2];
	grid-template-columns: repeat(2, 1fr);
}

  .wpp-grid li:first-child {
  	-ms-grid-column:1;
	-ms-grid-column-span:2;
	-ms-grid-row:1;
  grid-column-start: 1;
  grid-column-end: 3;
  grid-row-start: 1;
  grid-row-end: 5;
    }

.wpp-grid li:nth-child(2) {
	-ms-grid-column:1;
	-ms-grid-column-span:2;
	-ms-grid-row:5;
	grid-column-start:1 ;
	grid-column-end:3;
	grid-row-start:5;
	grid-row-end:8;
}

.wpp-grid li:nth-child(3) {
	-ms-grid-column:1;
	-ms-grid-column-span:2;
	-ms-grid-row:9;
	grid-column-start:1 ;
	grid-column-end:3;
	grid-row-start:8;
	grid-row-end:11;
}
.wpp-grid li:nth-child(4) {
	display:none;
}

.wpp-grid li:nth-child(5) {
	display:none;
}

/* Feature Widgets */
.feature-item {position:relative;}
.feature-item {padding:0;margin:0 .25rem 4rem;}
.feature-title { 
	position:absolute;
     bottom:-3rem;
	 left:0;
	 width:100%;
	 background:#fff;
	 padding:.25rem;
 }
.feature-headline {margin-bottom:0;opacity:1;}
.feature-headline a:hover, .feature-title a:hover{color:#2b88d8; }
h5.list-meta {line-height:1rem;color:#8a8886;padding:0 .25rem;margin:0;}

/* Read More */
.read-more {margin:1rem 0 2.5rem;padding:.5rem 0;}
.read-more h3 {margin-right:2rem;	float:right;}
.read-more h3 a {color: #004578;; }
.read-more h3 a:hover {color:#2b88d8; }

.archive-page {float:right;margin-right:2rem;}
.archive-number {color:#ef642c; }

/*Category, Tag Intro */
 .cat-intro {margin: 1rem .5rem;padding:1rem 1.5rem;font-size:1.15rem;line-height:1.25rem;}

/* Bing Snippets */
.bing-title, .review-title {}
.bing-snippet, .review-snippet {margin: 1rem 2rem;padding:.5rem 1.5rem;}
.bing-field, .review-field {padding-bottom:.5rem;}

/* tags */
.terms {margin-bottom:1rem;}
.terms a {white-space:nowrap;color: #004b50;}
.tagcloud {line-height:1.6rem;padding:.25rem;}

/* About Template Page  */ 
.staff-list { margin: 0 0 20px 10px; } 
.staff li {display:block; float: left;padding: 10px;width:180px;}
.staff-name {font-size:1.25em; font-weight:400;}

/* Embedded Twitter */
.twitter-tweet { margin: 0 auto; }
.tweet-container {margin-bottom:20px }
.tweet-container iframe, .tweet-container object, .tweet-container embed, .tweet-container video { width: 100%; margin:0px auto}

/* Pagination */
ul.pager {width:100%;text-align:center;margin:1rem 0;padding:1rem .5rem;font-size:1rem;}
ul.pager li {display:inline-block;}
.pager {}
.pager .page-item a {
  border: solid 1px #a19f9d;
  color: #197278;
  padding: .25rem .5rem;
  text-decoration: none;
  margin:0 .2rem;
}
.pager .page-item a:focus,
.pager .page-item a:hover {color: #fff;background:#008272;}
.pager .page-item.active a {background: #197278;color: #fff;}
.index-page {color: #197278;} 
.index-number {color: #ef642c;}

/* Footer */
.foot {background:#8a8886;padding-top:.25rem;padding-bottom:.25rem;}
.lh-footer, .rh-footer {background:#323130;margin:.5rem}
.lh-footer, .rh-footer li {padding-left:-1rem;white-space:nowrap;}
.mid-footer {margin:.5rem;background:#d2d0ce;padding:auto .5rem;}
.mid-footer img {margin-top:1.5rem;}
footer ul li a {color: #edebe9;}
.lh-footer .ms-Icon, .rh-footer .ms-Icon {display:block;color:#edebe9;font-size: 1rem;font-weight: 400;}
.icon-footer a {    
	padding: 0 0 .25rem .5rem;
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
}

/*---Dark Theme ---*/
@media (prefers-color-scheme: dark) {
body {color:#e1dfdd;}
body, .container.masthead  {background:#201f1e;}
.container.main {background:#323130;}
	a {color:#c8c6c4; }
	a:hover {color:#2b88d8;text-decoration:none;}
	h1, h2, h3, h4, h5, h6 {color:#edebe9; }
	h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {color:#d2d0ce;}
	.ms-Icon {color:#008272;vertical-align:-20%;font-size:1.5rem;}
.social-single .social-icon:hover, .social-footer .social-icon:hover {border: solid 1px #201f1e;}
.social-icon {background:#323130;border: solid 1px #323130;}
#navmenu ul li a { color:#d2d0ce;}
#navmenu .menu-item  {background: #323130;border:solid 1px #323130;}
#navmenu .menu-item:hover {border:solid 1px #767676;}
#navmenu .menu-item a:hover {color:#2b88d8;}
#navmenu .menu-item.current-menu-item > a {color:#008272;}
#navmenu li.search-menu {background:#201f1e;}
input#s.search-query.form-control {background:#323130;}
input#s.search-query.form-control[type=text] {color:#edebe9;}
button#searchsubmit.btn.btn-default {background:#201f1e;}
.form-control::placeholder {color: #edebe9;}
.search-term1 {color:#008272;}
.feature-title {background:#323130;}
.feature-headline a:hover{color:#2b88d8; }
.list-meta {line-height:1.25rem;color:#8a8886; }
.list-meta a {color:#c8c6c4;}
.list-meta a:hover {color:#2b88d8; }
.single-meta a {color:#e1dfdd;}
.single-meta .ms-Icon {color:#197278;}
.read-more h3 a {color: #008272; }
.read-more h3 a:hover {color:#2b88d8; }
.single-content a {color:#00B294;}
.single-content a:hover {color:#2b88d8;}
.terms {color:#197278;}
.terms a {color:#e1dfdd;}
.wp-caption-text {color:#e1dfdd;}
.wpappbox {background:#8a8886 !important;color:#201f1e !important;border:solid 1px #323130 !important;}
pre {color: #edebe9;}
.widget a {color:#d2d0ce;}
.arqam-widget-counter.arq-outer-frame {background:#323130;}
.arqam-widget-counter li a {color: #e1dfdd;}
.pager .page-item a {border: solid 1px #767676;}
.pager .page-item a:hover {color: #fff;background:#008272;}
.pager .page-item.active a {background: #008272;}
.index-page {color: #008272;} 
.social-icon:hover {border: solid 1px #767676;}
.social-single .social-icon, .social-footer .social-icon {border: solid 1px #767676;}
.foot {background:#201f1e; }
.mid-footer {background:#201f1e;}
}
/*--- End Dark Theme ---*/

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {

	}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
	article.single-content p {font-size:1.1rem;line-height:1.5rem}

	ul.social li {padding: .25rem 1rem}
	.searchbox {width:50%;}
	}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) { 
.single-title {margin:1rem .25rem .5rem;padding:.5rem;}
.single-title-icon .ms-Icon {margin:2.5rem 0 0;font-size:3rem;}
.wpp-grid li:first-child {
  	-ms-grid-column:1;
	-ms-grid-column-span:2;
	-ms-grid-row:1;
  grid-column-start: 1;
  grid-column-end: 3;
  grid-row-start: 1;
  grid-row-end: 5;
    }

.wpp-grid li:nth-child(2) {
	-ms-grid-column:1;
	-ms-grid-column-span:1;
	-ms-grid-row:5;
	grid-column-start:1 ;
	grid-column-end:2;
	grid-row-start:5;
	grid-row-end:8;

}

.wpp-grid li:nth-child(3) {
	-ms-grid-column:2;
	-ms-grid-column-span:1;
	-ms-grid-row:5;
	grid-column-start:2 ;
	grid-column-end:3;
	grid-row-start:5;
	grid-row-end:8;
}
.wpp-grid li:nth-child(4) {
		display:block;
	-ms-grid-column:1;
	-ms-grid-column-span:1;
	-ms-grid-row:9;
	grid-column-start:1;
	grid-column-end:2;
	grid-row-start:8;
	grid-row-end:11;
		padding:.5rem;
}

.wpp-grid li:nth-child(5) {
		display:block;
	-ms-grid-column:2;
	-ms-grid-column-span:1;
	-ms-grid-row:9;
	grid-column-start:2;
	grid-column-end:3;
	grid-row-start:8;
	grid-row-end:11;
}
	}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
 .mid-footer img {margin:1.5rem;}
	}

