/* Stylesheet for Connecticut route pages. */
/* todo: em instead of px for margins, padding */

/*
	decided against Vollkorn google web font
	
	Any colors that are not black or white:
	light green for header, masthead: #CDFFE6
	orange for quotes: #FF9900
	links: 
		color: #36f
		visited: #639
		active: #36f
		hover: #c00
	table borders: #666
	container border: "gray" - todo: fix
	
	div.route { background: #009900; } - bright green
	div.history { background: #996633; } - brownish
	div.turnpikes { background: #FA4E19; } - orange/brown
	div.future { background: #3300FF; } bright blue
	div.more { background: #33CCCC; } greenish blue
	div.quotes { background: #FF9900; } - quoty orange
	div.suggests { background: #808080; } - gray
	div.driveit { background: #D11406; } yet another orange
	div.sources { background: #D0D0D0; } - light gray
	div.links { background: #3399ff; } - yet another blue
	
	h3, h4: #333 - very dark gray ("tungsten") also used in home page body text
	
	pic box:
		background: eee - light gray - todo align
		border: aaa - todo align
		header: 666 - dark gray
	
	tables:
		border: 666 - dark gray
		zebra rows: e6f3ff
		header and timeline year: cce6ff
	
	abbr: underline 666
	
	padding and margin are em except for 8px rounded corners + padding

*/

/* Eric Meyer reset;  http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/ */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-weight: inherit;
	font-style: inherit;
	font-size: 100%;
	font-family: inherit;
	vertical-align: baseline;
}
/* remember to define focus styles! */
:focus {
	outline: 0;
}
body {
	line-height: 1;
	color: #000;
	background: #f0f0f0;
}
ol, ul {
	list-style: none;
}
/* tables still need 'cellspacing="0"' in the markup */
table {
	border-collapse: separate;
	border-spacing: 0;
}
/* 
td {
	background: #fff;
}
 */
caption, th, td {
	text-align: left;
	font-weight: normal;
}
blockquote:before, blockquote:after, q:before, q:after {
	content: "";
}
blockquote, q {
	quotes: "" "";
}

/* k3 stuff starts here */

/* semi-liquid width; works well for desktop and mobile */
html {
	max-width: 45em;
	margin-right: auto;
	margin-left: auto;
}

/* slightly higher line-height than FF default (about 120%) for readability */
body {
	font-family: Palatino, serif;
	line-height: 140%;
}

/* general link appearance */
a {
	background-color: transparent;
	text-decoration: none;
}

a:link 	{
	color: #36f;
/* 
	border-bottom: 1px dotted #36f;
 */
}
	
a:visited {
	color: #639;
/* 
	border-bottom: 1px dotted #639;
 */
}
	
a:active {
	color: #36f;
	border-bottom: 1px dotted #36f;
}		
	
a:hover {
	color:#c00;
	border-bottom: 1px solid #c00;
}

/* kurumi logo in div.logo as a link: never decorate */
.logo a {
	border: none;
}

/* Headings:
	h1 - route numbers (not yet used)
	h2 - categories
	h3 - topic headings
	h4 - small topic headings
	Uses Ubuntu Google API font.
*/

h1, h2, h3, h4 {
	font-family: 'Ubuntu', Helvetica, sans-serif;
	font-weight: bold;
}

h1, h2 {
	color: #fff;
 	background: transparent;
	margin: 0;
	margin-left: 4px;
	padding: 8px;
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
}

h3, h4 {
	color: #333;
	margin-bottom: 0.25em;
	margin-top: 0;   /* let the para above do the margin, if it's there */
}

h1 { font-size: 200%; }
h2 { font-size: 150%; }
h3 { font-size: 125%; }
h4 { font-size: 100%; }

/* lighter route number inside an H2 heading */
h2 span {
	opacity: 0.6;
}

/* header and footer stuff */
div.masthead {
	border: 1px solid gray;
	margin: 8px;
	border-radius: 8px;
	background: #cdffe6;
	border-radius: 8px;
	padding: 8px;
}

/* for breadcrumbs links, top of page */
div.logo {
	padding-left: 6px;
}

div.logo img {
	padding-right: 8px;
}

div.navline {
	padding: 4px;
}

/* for breadcrumbs, updated, quicklinks, prev/next -- top of page */
*.navbase {
	font-family: sans-serif;
	font-weight: bold;
	font-size: 100%;
	margin-top: 0;
}

/* next 4 inherit from navbase */
*.breadcrumbs, *.quicklinks {
	float: left;
}

*.updated, *.prevnext {
	text-align: right;
}

*.credits {
	float: left;
	font-weight: normal;
}

/* rounded boxes for categories */
.container {
	background: red;  /* should override */
	margin: 8px;
	border: 1px solid gray;
	border-radius: 8px;
}

.content {
	background: #fff;
	margin: 0px; margin-left: 8px;
	padding: 8px;
	border-radius: 8px;
	overflow: auto;
}

.raw {
	background: #fff;
	margin: 8px;
	padding: 8px;
	border: 1px solid gray;
	border-radius: 8px;
}

/* route marker and summary at top of route page or section */
table.routebox {
	margin: 8px;
	border-radius: 8px;
}
table.routebox ul {
	list-style-type: none;
	margin-left: 0;
	margin-bottom: 0;
}

table.routebox ul li {
	margin-bottom: 0.5em;
}

table.routebox td {
	padding: 8px;
	background: #fff;
	font-family: sans-serif;
	line-height: 100%;
}
td.marker {
	border-top-left-radius: 8px;
	border-bottom-left-radius: 8px;
}
td.summary {
	border-top-right-radius: 8px;
	border-bottom-right-radius: 8px;
}

/* 
	color-coded divs help keep context in long pages
	use these as <div class="container route">, etc.
 */
div.intro { background: #CDFFE6; }
div.route { background: #009900; }
div.history { background: #996633; }
div.turnpikes { background: #FA4E19; }
div.future { background: #3300FF; }
div.more { background: #33CCCC; }
div.quotes { background: #FF9900; }
div.suggests { background: #808080; }
div.driveit { background: #D11406; }
div.sources { background: #D0D0D0; }
div.links { background: #3399ff; }

/*
	if route or history is not first on page,
	add some margin to separate from previous route
*/
div.notfirst { margin-top: 2em; }

/* adjust others (e.g. li, quote) to fit */
p {
	margin-top: 0;
	margin-bottom: 0.75em;
}

/* who said a particular quote */
p.author {
	text-align: right;
	font-style: italic;
	margin-top: -0.5em;
}

/* general lists (not in route box) */
ul {
	margin-top: 0;
	margin-bottom: 1em;
	margin-left: 1em;   /* FF */
	padding-left: 0;  /* IE */
	list-style-type: circle;
}

/* get list following p closer to p */
p+ul {
	margin-top: -0.5em;
}

li {
	/*margin-bottom: 0.5em;*/
}

/* box to hold route markers, in raw files */
div.markerbox {
	margin: 0 8px 8px 0;
	float: left;
}

div.markerbox img {
	margin-right: 8px;
}

/* larger text announcing route number, if no marker */
*.route-label
{
	font-family: sans-serif;
	font-size: large;
	font-weight: normal;
}

/* standard picture frame with small caption text */
/* you'll have to specify width for this pic = image width */
/* also, specify float */
*.pic, *.rpic   
{
	box-sizing: content-box;   /* overrides general fix for all divs */
	background-color: #eee;
	border: 1px solid #aaa;
	border-radius: 8px;
	padding: 8px;
	margin: 0 0 1em 0;
	font-size: 80%;
	font-family: sans-serif;
	line-height: 130%;
}

/* float-right pic */
*.rpic   
{
	float: right;
	margin-left: 8px;
}

*.pic-header {
	background-color: #666;
	padding: 0.5em;
	color: #fff;
	font-size: 125%;  /* back to normal */
	font-family: sans-serif;
	font-weight: bold;
}


/* footer box has search, links, copyright info */
*.footer-box {
	background-color: #cdffe6;
	border: 1px solid gray;
	padding: 6px;
	margin: 8px 12px 0 12px;
}

/* orange pullquote box right aligned */
blockquote {
	float: right;
	width: 12em;
	border-top: 3px solid #FF9900;
	border-bottom: 3px solid #FF9900;
	font-size: 125%;
	line-height: 1.2em;
	color: #FF9900;
	margin: 8px 0 8px 12px;
	padding: 8px 0 8px 0;
}

/* for attribution */
blockquote footer {
	color: #000;
	text-align: right;
	font: 80% sans-serif;
	font-style: italic;
	margin-top: 8px;
}

/* different kind of blockquote that doesn't float */
div.quote {
   margin: 0.5em 5em 0.5em 3em;
   border-left: 3px solid #FF9900;
   padding-left: 8px;
}


/* all table cells should be top- and left-aligned */
td, th {
    vertical-align: top;
}

/* actual tabular data tables */
table.data, table.timeline {
    border-spacing: 0px;
    border-collapse: collapse;
    border: 1px solid #666;
    margin-bottom: 1em;
}
table.data {
	font-family: sans-serif;
}
table.data tr:nth-child(odd) {
    background-color: #e6f3ff;
}
table.data th {
    background-color: #CCE6FF;
    border-bottom: 1px solid #666;
    font-weight: bold;
    padding: 0.2em 0.5em;
}
table.data td {
    border-bottom: 1px solid #666;
    border-right: 1px solid #666;
    padding: 0.2em 0.5em;
}


/* for timeline */
table.timeline th {
	background: #CCE6FF;
	font-family: Georgia, Times, serif;
	font-size: 300%;  
}
table.timeline td, table.timeline th {
	border: 1px solid #666;
	padding: 8px;
}
table.timeline ul {
	margin-left: 1em;
	margin-bottom: 0;
	padding-left: 0;
}

/* basic self-contained styling */
abbr {
	border-bottom: 1px dotted #666;
	cursor: help;
}

strong {
	font-weight: bold;
}

cite {
	font-style: italic;
}

/* iphone and other handhelds */
@media screen and (max-device-width:640px) {
	html {
		width: auto;
		max-width: 100%;
		margin-left: 0;
		margin-right: 0;
		font-size: 200%;
		-webkit-text-size-adjust: none; 
	}
		/* next 4 inherit from navbase */
	*.breadcrumbs, *.quicklinks {
		float: none;
		padding-bottom: 0.5em;
		padding-top: 0.5em;
		border-top: 1px solid green;
	}
	
	*.updated, *.prevnext {
		text-align: left;
		padding-bottom: 0.5em;
		padding-top: 0.5em;
		border-top: 1px solid green;
	}
}

/* including this will keep you from slapping Eric the CSS dude */
div { box-sizing: border-box; }
