/* Main Page */

div.resourceGrid {
	display: grid;
	grid-gap: 1em;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	grid-template-areas: "last-article last-article last-article files"
							"widget1 widget2 widget3 files"
							"article1 article2 article3 files"
							"codes codes categories categories"
							"publications publications publications publications";
	
}

@media (max-width: 59.9rem) {
	div.resourceGrid {
		grid-template-columns: 1fr 1fr;
		grid-template-areas: "last-article last-article"
							"widget1 widget2"
							"widget3 article1"
							"article2 article3"
							"files files"
							"codes codes"
							"categories categories"
							"publications publications";
		
	}
}

div.rgArticle {
	grid-area: last-article;
}

div.rgArticle div.rgaWrapper {
	display: grid;
	grid-template-columns: 20% auto;
	grid-template-rows: 10em;
	grid-gap: 1em;
	overflow: hidden;
}

div.rgArticle figure, div.rgOtherArticles figure {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
}

div.rgArticle article, div.rgOtherArticles article {
	color: #2b2d42 !important;
	width: 100%;
	height: 100%;
}

div.rgOtherArticles div.rgaWrapper {
	display: grid;
	grid-template-rows: 10em 12em;
	overflow: hidden;
}

@media (max-width: 59.9rem) {
	div.rgOtherArticles div.rgaWrapper {
		grid-template-rows: 10em;
	}
	
	div.rgOtherArticles div.rgaWrapper figure {
		display: none;
	}
}

div.rgWidget {
	text-align: center;
	padding: 1em 0.5em;
	background-color: #1f1f28;
	font-size: 0.8em;
	border-radius: 5px;
}

div.rgWidget h4 {
	color: #ffba00;
}

div.rgWidget span {
	color: #FFF !important;
}


div.rgFiles {
	grid-area: files;
	padding: 0.5em;
	background-color: #f0f0f0;
	border-radius: 5px;
}

div.rgFiles h4 {
	margin: 0 !important;
	text-align: center;
}

div.rgFiles ul li {
	display: block;
	padding-top: 1em;
}

div.rgFiles ul li a, div.rgFiles ul li span {
	display: block;
}

div.rgFiles ul li span {
	padding-left: 1em;
	font-size: 0.8em
}






div.rgHealthCodes {
	grid-area: codes;
	padding: 0.5em;
	background-color: #f0f0f0;
	border-radius: 5px;
}

div.rgHealthCodes h4 {
	margin: 0 !important;
	text-align: center;
}

div.rgHealthCodes table {
	width: 100%;
}


div.rgHealthCodes ul li span {
	font-size: 0.8em;
}



div.rgCategories {
	grid-area: categories;
}

div.rgCategories h4 {
	text-align: center;
}

div.rgCategories ul {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	list-style: none;
}

div.rgCategories ul li {
	flex: 0 0 calc(50% - 0.6em);
	text-align: center;
	padding: 0.3em;
}


div.rgPublications {
	grid-area: publications;
}

div.rgPublications h4 {
	margin: 0 !important;
	text-align: center;
}

div.rgPublications ul {
	display: flex;
	list-style: none;
	flex-wrap: wrap;
}

div.rgPublications ul li {
	flex: 1 0 25%;
	padding: 1em;
}


div.rgPublications ul li h5 {
	display: block;
	font-size: 1.1em;
	text-align: center;
}

div.rgPublications ul li p {
	display: block;
	padding: 0.5em;
	text-align: center;
	color: initial !important;
}



div.rgVideos {

}

div.rgVideos h4 {
	text-align: center;
}

div.rgVideos ul {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	list-style: none;
}

div.rgVideos ul li {
	flex: 0 0 calc(50% - 0.6em);
	text-align: center;
	padding: 0.3em;
}

div.rgVideos ul li div.innerVideoWrapper {
	border-left: 0.2em solid transparent;
	padding-left: 0.5em;
	height: 100%;
	transition: all 0.2s;
}

@media (max-width: 59.9rem) {
	div.rgVideos ul li {
		flex: 0 0 calc(100% - 0.6em);
	}
	
	div.rgVideos ul li div.innerVideoWrapper {
		border-left-color: #121177;
	}
}

div.rgVideos ul li div.innerVideoWrapper:hover {
	border-left-color: #121177;
}

div.rgVideos ul li div.ivwVideo {
	height: 12em;
}

div.rgVideos ul li div.ivwText {
	margin: 1em 0;
	opacity: 0.7;
	transition: all 0.2s;
}

div.rgVideos ul li:hover div.ivwText {
	opacity: 1;
}

div.rgVideos ul li div.ivwText h5 {
	color: #ffba00;
	padding-bottom: 0.5em;
}




/* Category Article Listing */

div.articleGrid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	grid-gap: 1em;
}

div.agItem {
	grid-area: span 1;
}

div.agItem.big {
	grid-area: span 2 / span 2;
}

div.agiWrapper {
	height: 24em;
	display: grid;
	grid-template-rows: 10em 14em;
}

div.agiWrapper figure {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

div.agiWrapper p {
	color: #1f1f28;
}

/* heroImageWrapper */

div#heroImageWrapper {
	display: block;
	position: relative;
	height: 15em;
}

/* Articles */

article.articleView {
	background-color: #FFFFFF;
	padding: 2em;
	font-size: 1.1em;
}

@media (max-width: 59.9rem) {
	article.articleView {
		padding: 1em 0.5em;
	}
}

article.articleView > header {
	display: block;
}

cite.subText {
	display: block;
	width: 100%;
	font-size: 0.8em;
	text-align: right;
	margin-bottom: 1em;
}

article.articleView h1, article.articleView h2, article.articleView h3, article.articleView h4, article.articleView h5 {
	clear: both;
}

/* Intro and Section Listing */

article section.articleIntro {
	display: flex;
}

article section.articleIntro > div {
	flex: 1 0 60%;
}

article section.articleIntro > aside {
	flex: 0 0 30%;
	font-size: 0.8em;
}

article section.articleIntro > aside span {
	display: block;
	font-weight: 700;
	text-align: center;
}

article section.articleIntro > aside ol {
	list-style: none;
	padding: 0.3em 1em;
}

article section.articleIntro > aside ol li {
	margin: 0.5em 0;
}

/* Section Wrappers */

section.articleSectionWrapper {
	margin: 1em 0;
}

section.articleSectionWrapper + section.articleSectionWrapper {
	margin-top: 2em;
}

section.articleSectionWrapper:target::before {
  content: "";
  display: block;
  height: 5rem; /* fixed header height*/
  margin: -5rem 0 0; /* negative fixed header height */
}

section.articleSectionWrapper figure.articleSectionImage {
	display: block;
	text-align: center;
	min-height: 15em;
}

section.articleSectionWrapper figure.articleSectionImage img {
	max-height: 20em;
	max-width: 100%;
}

section.articleSectionWrapper div.articleContent {
	padding: 0 0.5em;
}

article.articleView div.videoWrapper {
	display: block;
	clear: both;
	background-color: var(--color1);
	padding: 1em;
	margin: 1em;
	text-align: center;
	height: 20em;
}

article.articleView div.contentWrapper {
	display: inline-block;
	float: right;
	background-color: var(--color1);
	padding: 1em;
	margin: 1em;
}

article.articleView div.imageWrapper {
	display: block;
	clear: both;
	padding: 1em;
	margin: auto;
	width: 80%;
}

article.articleView div.imageWrapper.left {
	display: inline-block;
	float: left;
	width: 10em;
}

article.articleView div.imageWrapper img {
	width: 100%;
	border-radius: 5px;
}

article.articleView div.imageWrapper a {
	display: block;
	text-align: center;
}

article.articleView p ~ p {
	margin-top: 1em;
}


/* Special Image Wrappers */

article.articleView div.imageWrapper.flex {
	display: flex;
}

article.articleView div.imageWrapper.flex img {
	margin: 0.5em;
}

@media (max-width: 60em) {
	article.articleView div.imageWrapper.flex {
		flex-wrap: wrap;
	}
}

article.articleView div.imageWrapper.grid {
	display: grid;
	grid-template-columns: 75% 1fr;
	grid-template-rows: auto;
}

article.articleView div.imageWrapper.grid img:first-of-type {
	grid-column: 1 / -2;
	grid-row: 1 / -1;
}

article.articleView table {
	display: block;
	width: 90%;
	margin: 5em auto;
	font-size: 0.8em;
}

article.articleView table th {
	background-color: #1f1f28;
	color: #FFF;
	font-weight: 700;
	text-align: center;
	padding: 0.2em;
}

article.articleView table tr {
	transition: background-color 0.2s;
}

article.articleView table tr:hover {
	background-color: #c9c9c9;
	cursor: pointer;
	transition: background-color 0.2s;
}

article.articleView table td {
	padding: 0.2em;
}


table#pricingTable td:nth-of-type(2) {
	font-size: 0.8em;
}

table#pricingTable td:last-of-type {
	text-align: right;
}
