﻿@import url(nas.css);

#appTitle
{
	color: #336;
	float: left;
	font-size: 1.5em;
	font-weight: 700;
	height: 100%;
	line-height: 1.3em;
	margin-right: .67em;
	vertical-align: middle;
}
#content
{
	float: left;
	margin: 0;
	width: 28em;
}
#content p
{
	line-height: 1.2em;
	text-align: justify;
}
#content p img
{
	max-width: 100%;
}
#content, #footer
{
	padding: 1em;
	text-align: left;
}
.news-side-bar
{
	border-left: 1px solid #ccc;
	color: #1d307c;
	float: left;
	font-size: small;
	padding: 15px;
	text-align: left;
	width: 19em;
}
.news-side-bar li
{
	margin-left: 1.25em;
}
.news-side-bar p
{
	color: #000;
	font-size: .875em;
	margin: .125em 0;
}
.news-side-bar ul
{
	margin: 0;
	padding: 0;
}
#webFeed
{
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	background-color: #eee;
	border: 1px solid #838383;
	border-radius: 5px;
	margin: 2em 1em;
	padding: .5em;
}
#webFeed img
{
	border: 0;
}
}
.newsDate, .submitted-by
{
	font-size: smaller;
	font-style: italic;
}
.news-update
{
	background-color: lightyellow;
	border: 1px solid goldenrod;
	border-radius: 0.2rem;
	margin-bottom: 1.2rem;
	margin-top: 2rem;
	padding: 0.5rem;
}
.panel-close
{
	-moz-border-radius: 4px;
	-webkit-border-radius: 4px;
	background: -moz-linear-gradient(top, #de4545, #a01616);
	background: -webkit-gradient(linear, left top, left bottom, from(#de4545), to(#a01616));
	background: linear-gradient(top, #de4545, #a01616);
	background-color: #a01616;
	border: 1px solid #a01616;
	border-radius: 4px;
	color: #eee;
	cursor: pointer;
	font-size: 0.6em;
	padding: 2px 4px;
	position: absolute;
	right: .2em;
	text-align: center;
	top: .2em;
}
.panel-close:hover
{
	background-color: #de4545;
	background: -moz-linear-gradient(top, #f59898, #de4545);
	background: -webkit-gradient(linear, left top, left bottom, from(#f59898), to(#de4545));
	background-image: linear-gradient(top, #f59898, #de4545);
}
.row
{
	margin-bottom: 1em;
}
.small-caps
{
	font-size: .8em;
	font-variant: small-caps;
}
.submitted-by
{
	margin-bottom: 2em;
}
.title
{
	font-size: 3rem;
	margin: 0;
}
.title > a
{
	color: #fff6b6;
}
article
{
	border-bottom: 1px solid #ccc;
	margin-bottom: 1em;
}
article > h1 > a
{
	color: #2a4979 !important;
}
article h1
{
	font-size: 1.6rem;
	margin-bottom: 0.4rem;
	text-align: left;
}
aside
{
	margin-bottom: 1.4em;
}
aside h1
{
	font-size: 1.1em;
	margin-bottom: .6em;
}
aside li
{
	border-bottom: 1px solid #ddd;
	line-height: 1.5rem;
}
body
{
	background: linear-gradient(0deg,#999 0%, #ddd 100%);
	font-family: Helvetica, Calibri, Arial, sans-serif;
	margin: 0 auto;
	padding: 0;
	text-align: center;
}
footer
{
	background-color: #2a4979;
	background-image: -webkit-gradient(linear, left top, left bottom, from(#7daed0), to(#2a4979)); /* Saf4+, Chrome */
	background-image: -webkit-linear-gradient(top, #7daed0, #2a4979); /* Chrome 10+, Saf5.1+ */
	background-image: -moz-linear-gradient(top, #7daed0, #2a4979); /* FF3.6 */
	background-image: linear-gradient(top, #7daed0, #2a4979);
	border-radius: 0 0 5px 5px;
	clear: both;
	color: #eee;
	height: 0.5em;
	margin: 0 auto;
	padding: 1em;
	text-align: center;
}
footer a
{
	color: #eee !important;
}
footer a:hover
{
	color: #eee;
	font-weight: 700;
	text-decoration: none;
}
html
{
	min-height: 100vh;
}
h1 a
{
	text-decoration: none;
}
h2
{
	margin-bottom: 0;
	margin-top: 1.5rem;
	text-align: left;
}
h3
{
	font-size: medium;
}
header
{
	align-items: center;
	background: linear-gradient(135deg, #2a4979 0%, #7daed0 100%);
	border-bottom: 1px solid #2a4979;
	border-radius: 5px 5px 0 0;
	height: 8em;
	display: flex;
	justify-content: center;
}
hgroup
{
	padding: 2em;
}
hgroup h2
{
	color: #eee;
	font-size: 1.2rem;
	font-style: italic;
	margin: 0;
	text-align: center;
}
li
{
	margin: 4px 2em;
}
main
{
	-moz-border-radius: 10px;
	-webkit-border-radius: 10px;
	-moz-box-shadow: 4px 4px 4px #999;
	-webkit-box-shadow: 4px 4px 4px #999;
	background-color: #fff;
	border: 2px solid #2a4979;
	border-radius: 10px;
	box-shadow: 4px 4px 4px #999;
	margin: 2em auto;
	padding: 0;
}
main a
{
	text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
}
p
{
	margin: 10px 0;
}
time.pub-date
{
	border: 0.2rem solid #2a4979;
	border-radius: 0.4rem;
	box-sizing: border-box;
	display: inline-grid;
	float: left;
	grid-template-columns: 1.2rem 1fr;
	grid-template-rows: 1.1rem 1fr;
	height: 3.6rem;
	line-height: 1;
	margin-right: 1rem;
	overflow: hidden;
	width: 4.6rem;
}
/* Year strip: one tall cell spanning both rows */
time.pub-date > .pub-year
{
	background-color: #999;
	border-right: 0.15rem solid #2a4979;
	box-sizing: border-box;
	color: #000;
	display: grid;
	font-size: 0.7rem;
	font-weight: 600;
	grid-column: 1;
	grid-row: 1 / -1;
	opacity: 0.75;
	place-items: center;
	text-orientation: upright;
	writing-mode: vertical-rl;
}
/* Fallback if vertical writing isn’t supported */
@supports not (writing-mode: vertical-rl)
{
	time.pub-date > .pub-year
	{
		writing-mode: horizontal-tb;
		text-orientation: mixed;
		transform: rotate(-90deg);
		transform-origin: center;
	}
}
/* Month (top-right) */
time.pub-date > .pub-month
{
	align-items: center;
	background-color: #2a4979;
	border-bottom: 0.08rem solid rgba(0,0,0,0.12);
	box-sizing: border-box;
	color: #eee;
	font-size: 0.75rem;
	font-weight: 700;
	display: flex;
	grid-column: 2;
	grid-row: 1;
	justify-content: center;
	letter-spacing: 0.06em;
}
/* Day (bottom-right) */
time.pub-date > .pub-day
{
	grid-column: 2;
	grid-row: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.9rem;
	font-weight: 800;
	line-height: 0.95;
	background: rgba(0,0,0,0.04);
	box-sizing: border-box;
}
@media (max-width: 50rem)
{
	#content
	{
		grid-column: 1 / span 2;
	}
	.news-side-bar
	{
		display: none;
	}
}
@supports (display: grid)
{
	#content
	{
		float: none;
		margin: 0;
		width: auto;
	}
	.news-side-bar
	{
		float: none;
		margin: 0;
		width: auto;
	}
	header
	{
		grid-column: 1 / span 2;
	}
	footer
	{
		grid-column: 1 / span 2;
		height: auto;
		margin: 0;
		padding: 0.5rem;
	}
	main
	{
		display: grid;
		grid-template-columns: 1fr minmax(10rem, 20rem);
		grid-template-rows: 8em 1fr 2em;
		max-width: 64rem;
	}
}