/*
	main.css - css for my tips web site - Bob Hinkley
	06/27/10: started - copying reset.css from Missing Manual book
	07/09/10: align 3 links to right so don't cover Hamilton's face
	03/06/11: handle new aftermarket page
	03/29/18: fix green piece on otherwise orange border on main page
*/

html, body, h1, h2, h3, h4, h5, h6, p, ol, ul, li, pre, code, address, variable, form, fieldset, blockquote {
 padding: 0;
 margin: 0;
 font-size: 100%;
 font-weight: normal;
}
table { border-collapse: collapse; border-spacing: 0; }
td, th, caption { font-weight: normal; text-align: left; }
img, fieldset { border: 0; }
ol { padding-left: 1.4em; list-style: decimal; }
ul { padding-left: 1.4em; list-style:square; }
q:before, q:after { content:''; }
/* end of code from reset.css */

div {
	text-align: center;
	margin: 10px auto;
}
p {
	text-align: center;
	margin: 0 auto 10px auto;
}
p.just {
	text-align: justify;
	margin: 0 auto 10px 15px;
}
p.finish {
	font-style: italic;
	margin: 20px 0 0 0;
}
h1 {
	font-size: 120%;
	font-weight: bold;
	text-transform: uppercase;
	text-align: center;
	margin: 0 auto 5px auto;
}
h2 {
	font-size: 110%;
	font-weight: bold;
	font-variant: small-caps;
	text-align: center;
	color: blue;
	margin: 0 auto 5px auto;
}
h3 {
	font-size: 100%;
	font-weight: bold;
	text-align: left;
	color: blue;
	margin: 0 auto 2px 15px;
}

/* layout for home page */
body#home {
	width: 1000px;
}
#home div#sidebar {
	float: left;
	width: 194px;
	margin: 10px 0 0 20px;
	background-image: url(../images/hamilton.jpg);
	background-repeat: no-repeat;
}
table#home_mo_tbl {
	margin: 10px auto 0 229px;
}
table#home_yr_tbl {
	margin: 20px auto 0 30px;
}

/* layout for help page */
body#help {
	max-width: 1150px;
}
#help h1 {
	margin-bottom: 20px;
}
#help #sidebar1 {
	float: left;
	width: 250px;
	margin: 0 0 0 10px;
	padding: 10px 15px 10px 0;
	background: #FDE2B8;
	border: 1px solid #DC9000;
}
#help #main {
	margin: 0 10px 0 280px;
}
#help #footer {
	clear: both;
}
#help dl {
	margin: 0 0 0 10px;
}
#help #main dl {
	margin: 0 0 0 30px;
}
#help dt {
	margin: 0;
	text-align: left;
}
#help dd {
	margin: 0 0 10px 10px ;
	text-align: left;
}

/* layout for links page */
body#links {
	max-width: 700px;
	margin: 10px;
}
#links dl {
	margin: 10px 0 0 0;
	padding: 10px 10px 0 20px;
	background: #FED;
	border: 1px solid #DC9000;
}
#links dt {
	margin: 0;
	text-align: left;
}
#links dd {
	margin: 0 0 10px 10px ;
	text-align: left;
}

/* layout for History page  */
#hist h1 {
	font-size: 90%
}
#hist h2 {
	font-size: 90%
}

/* layout for Aftermarket page  */
#aftmkt h1 {
	font-size: 90%
}
#aftmkt h2 {
	font-size: 90%
}

/* default link behavior */
a:hover {
	color: white;
	background: #777;
}
/* month navigation links on aftermarket page */
ul.mo {
	text-align: center;
	margin: 15px 0 15px 0;
}
ul.mo li {
	display: inline;
	list-style-type: none;
	margin: 0 15px 0 0;
	padding: 0;
}

/* navigation links at top of each page */
ul.nav {
	text-align: center;
	margin: 15px 0 15px 0;
}
ul.nav li {
	display: inline;
	list-style-type: none;
	margin: 0;
	padding: 0;
}
ul.nav a {
	text-decoration: none;
	color: blue;
	font-weight: bold;
	margin: 2px;
	padding: 1px 3px 1px 3px;
	border: 1px solid #DC9000;
	background: #FDE2B8;
}
ul.nav a:hover {
	color: white;
	background: #DC9000;
}
ul.nav li.issord a {
	border: 1px solid #083;
	background: #BDB;
}
ul.nav li.issord a:hover {
	background: #083;
}
ul.nav li.nolink {
	color: gray;
	margin: 2px;
	padding: 1px 2px 1px 3px;
	border: 1px solid gray;
	background: white;
}

/* overrides for nav links in sidebar of home page */
#home ul.nav {
	text-align: right;
	margin: 0;
	padding: 0;
}
#home ul.nav li {
	display: block;
	list-style-type: none;
	margin: 40px 10px 40px 0;
	padding: 0;
}
#home ul.nav a {
	border: 1px solid black;
	background: transparent;
}
#home ul.nav a:hover {
	color: white;
	background: #777;
}

/* override for nav links on History page */
#hist ul.nav {
	margin-bottom: 10px;
}
/* default table formatting */
table {
	margin: 10px auto 20px auto;
	border-collapse: collapse;
	border: none;
}
tr.shade, td.shade {
	background: #FDE2B8;
}
th, td {
	text-align: center;
	padding: 1px 10px 1px 10px;
	border: 1px solid #DC9000;
}
th {
	font-weight: bold;
}

/* overrides for upper table on home page */
#home_mo_tbl, #home_mo_tbl th {
/*	border: 3px solid #FDE2B8; */
	border: 2px solid #DC9000;
	font-weight: normal;
}
#home_mo_tbl td {
	border: none;
}

/* 10/03/17: overrides for lower table on home page */
#home_yr_tbl th {
	padding: 1px 6px 1px 6px;
	font-weight: normal;
	border: 2px solid #DC9000;
}
#home_yr_tbl td {
	padding: 1px 6px 1px 6px;
	font-weight: normal;
	border: none;
}
#home_yr_tbl th.no_bord {
		border: none;
}
#home_yr_tbl th.bottom {
		border-top: none;
		border-right: none;
		border-bottom: 2px solid #DC9000;
		border-left: none;
}
#home_yr_tbl th.top {
		border-top: 2px solid #DC9000;
		border-right: none;
		border-bottom: none;
		border-left: none;
}
#home_yr_tbl td.right {
		border-right: 2px solid #DC9000;
}
#home_yr_tbl td.left {
		border-left: 2px solid #DC9000;
}

/* overrides for sidebar table on hist page */
#hist_list_tbl {
	margin-top: 0;
	font-size: 75%;
}
#hist_list_tbl th, #hist_list_tbl td {
		padding: 1px 5px 1px 5px;
}

/* override padding on month page */
#month_tbl th, #month_tbl td {
		padding: 1px 3px 1px 3px;
}

/* overrides for big cpi table */
body#cpib {
	font-size: 75%;
}
body#cpib ul.nav li h1 {
	display: inline;
	text-transform: none;
}
#cpib_tbl th, #cpib_tbl td {
		padding: 0 4px 0 4px;
}
#cpib_tbl th.chg_mo {
	border-width: 2px;
	font-weight: bold;
	color: #DC9000;
}
#cpib_tbl td {
		text-align: right;
}
#cpib_tbl td.chg_mo {
	font-weight: bold;
}
table#cpib_tbl th {
		border: 2px solid #DC9000;
}
table#cpib_tbl td.right {
		border-right: 2px solid #DC9000;
}
table#cpib_tbl th.no_bord {
		border: none;
}
table#cpib_tbl span.yr {
	font-size: 75%
}

/* overrides for table on atermarket page */
table#aftmkt_tbl {
		border-right: 2px solid #DC9000;
		border-bottom: 2px solid #DC9000;
}
table#aftmkt_tbl tr td:first-child {
		border-left: 2px solid #DC9000;
}
#aftmkt_tbl th {
	border-width: 2px;
}
#aftmkt_tbl th.no_bord {
	border: none;
}
#aftmkt_tbl td.right {
		border-right: 2px solid #DC9000;
}

/* overrides for cpi page & annual chg table */
div#cpichg {
	margin-top: 30px;
}
table#cpiu_tbl th#linkmo_hdr, table#cpiu_tbl td#linkmo_val {
	border-width: 2px;
	font-weight: bold;
	color: #DC9000;
}
table#cpichg_tbl {
		border-bottom: 2px solid #DC9000;
		border-left: 2px solid #DC9000;
}
table#cpichg_tbl th {
		border: 2px solid #DC9000;
}
table#cpichg_tbl th.cpichg_title {
	border: none;
	font-size: 110%;
	font-weight: bold;
	font-variant: small-caps;
	color: #DC9000;
	text-align: right;
}
table#cpichg_tbl td.right {
		border-right: 2px solid #DC9000;
}
/* overrides for description tables on list, hist, and month pages */
table.desc_tbl {
	border: 3px solid #FDE2B8;
}
.desc_tbl td {
	border: none;
	text-align: left;
}
.desc_tbl col.value1 {
	width: 35%;		/* would prefer to set margin-right but doesn't work */
}

/* overrides for table columns on list and auctions pages */
#list td.desc, #auct td.desc {
	text-align: left;
}
#list td.cusip, #auct td.cusip {
	font-family: monospace;
	font-size: 110%;
}

/* prevent wrapping for cols on some tables */
table#list_tbl td, table#interest_tbl td, table#cpib_tbl th {
	white-space: nowrap;	/* Description on list, Period on interest, Yr hdng on cpi big */
}

/* overrides for numbers and negative numbers on hist page OID, interest, & IRR sections */
td.nbr {
	text-align: right;
}
td.neg {
	color: red;
	white-space: nowrap;
}

/* overrides special table cells on year pages */
td.past_mo_end {
/* decided looks better WITH border
	border: none;
*/
}
td.jan1 {
	border: none;
	text-align: right;
}

/* override for tables in issued order */
/* use green rather than tan theme */
table.issord th, table.issord td {
	border: 1px solid #083;
}
table.issord tr.shade {
	background: #BDB;
}
table.issord td.jan1 {
	border: none;
	text-align: right;
}
#home_mo_tbl.issord, #home_mo_tbl.issord th {
		/* border: 2px solid #BDB; */
		border: 2px solid #083;
}
#home_yr_tbl.issord {
		border: none;
}
#home_yr_tbl.issord th {
		border: 2px solid #083;
}
#home_yr_tbl.issord th.no_bord {
		border: none;
}
#home_yr_tbl.issord th.bottom {
		border-top: none;
		border-right: none;
		border-bottom: 2px solid #083;
		border-left: none;
}
#home_yr_tbl.issord th.top {
		border-top: 2px solid #083;
		border-right: none;
		border-bottom: none;
		border-left: none;
}
#home_yr_tbl.issord td.right {
		border-right: 2px solid #083;
}
#home_yr_tbl.issord td.left {
		border-left: 2px solid #083;
}

/* print only styles */
/* want to suppress printing links at top of page */ 
@media print {
	ul.nav, ul.mo {display: none;}
	body#cpib ul.nav, body#home ul.nav {display: block;}
	body#cpib ul.nav li.noprn {display: none;}
	body#links dt a:after {content: " (" attr(href) ") ";}
}