/**
 * A fluid 2-column layout
 *
 * As its name implies, the skeleton skin may be used as a good starting point by skin designers requiring:
 * - a fluid 2-column layout
 * - top navigation tabs
 *
 * This single style sheet takes care of all media (screen, handheld, print, etc.)
 *
 * This style sheet has been checked against Mozilla Firefox version 1 and Microsoft Internet Explorer version 6.
 * You may have to split this file into several pieces to avoid side-effects on legacy browsers such as Netscape navigator 4.7, etc.
 *
 * Styles are ordered according to following list:
 * - standard HTML and XHTML tags are refined
 * - unique styles used for page layout
 * - other unique styles
 * - classes
 *
 * Where applicable we have also mentioned the YACS codes related to styles.
 * You can find more information on YACS codes at codes/codes.php and related pages.
 *
 * @author Bernard Paques
 * @reference
 * @license http://www.gnu.org/copyleft/lesser.txt GNU Lesser General Public License
 */

/**
 * import core YACS reference style sheet -- this has to come before any other rule
 */
@import url("../_reference/yacs.css");

/**
 * standard tags - redefine behaviour of reference HTML and XHTML tags
 * to ensure that all browsers will be aligned
 */

a,
a code { /* basic link */
	color: #039;
	text-decoration: none;
	cursor: pointer; /* help ie on folded boxes */
}

a:link,
a:link code { /* link displayed for the first time */
	color: #039;
}

a:visited,
a:visited code { /* link that has been used at least once */
	color: #039;
}

a:active,
a:active code { /* link at the moment it is clicked */
	background-color: #ede;
}

a:hover,
a:hover code { /* link below the mouse pointer */
	background-color: #ede;
}

a img { /* avoid borders around images used as links */
	border: none;
}

body { /* most elements will inherit some of these attributes */
	margin: 0;
	padding: 2em 3% 1em 3%;
	font-family: Georgia, Verdana, Arial, Helvetica, sans-serif;
	font-size: 1em;
	font-weight: normal;
	color: #333;
	background: #999 url("images/background_page.gif");
}

button { /* change button appearance */
}

button:hover {
}

h1 { /* appears only once, with the page title */
	margin: 1em 0 0.5em 0;
	padding: 0;
	color: #f93;
	font-size: 1.5em;
	font-weight: bold;
	text-align: left;
}

h2 { /* appears in the main content panel, to introduce sections of the page -- [title]...[/title], [question]...[/question] */
	clear: left;
	margin: 1em 0 0.5em 0;
	padding: 0;
	font-size: 1.2em;
	font-weight: bold;
	text-align: left;
	clear: both;

}

h3 { /* a second level of heading in the main panel -- [subtitle]...[/subtitle] */
	clear: left;
	margin: 1em 0 0.5em 0;
	padding: 0;
	font-size: 1em;
	font-weight: bold;
	text-align: left;
}

img { /* a standard image */
	margin: 0;
	padding: 0;
}

input[type="password"],
input[type="text"] { /* change form elements */
	color: black;
	background-color: white;
	border: #26a solid 1px;
}

input:focus { /* help to locate the current field */
	color: black;
	background-color:#dedede;
}

input[type="submit"] { /* change button appearance */
	background-color: #aaa;
	border-color: #dcdcdc #696969 #696969 #dcdcdc;
	border-style: solid;
	border-width: 2px;
	text-align: center;
	padding: 1px;
	font-size: 10px;
}

input[type="submit"]:focus,
input[type="submit"]:hover {
	background-color: #caa;
}

li { /* avoid justification alignment */
	text-align: left;
}

pre { /* a block of sample lines -- [php]...[/php], [snippet]...[/snippet] */
	background-color: #ffc;
	color: #000;
	border: 1px solid #999;
}

select {
	color: black;
	background-color: white;
}

select:focus { /* help to locate the current field */
	color: black;
	background-color: #dedede;
}

textarea { /* change form elements */
	color: black;
	background-color: white;
	border: #bfbfbf solid 1px;
}

textarea:focus { /* signal current input area */
	color: black;
	background-color: #dedede;
}

/**
 * layout elements - also add behaviour for related sub-elements where applicable
 */

#footer_panel { /* comes after everything */
	margin: 0;
	padding: 1em;
	width: 99%;
	text-align: center;
	font-size: 0.8em;
	font-weight: normal;
}

#footer_panel a {
	font-weight: normal;
}

@media print { /* do not print footer information */

	#footer_panel {
		display: none;
	}

}

#header_panel { /* comes before everything */
	background-image: url("images/header_background.jpg");
	margin: 0;
	padding: 0;
	width: 99%;
	max-width: 90em;
	position: relative;
	min-height: 5em;
	height: 5em;
	border-width: 1px;
	border-style: solid solid none solid;
	border-color: #000;
}

@media print { /* do not print heading information, including div.tabs */

	#header_panel {
		display: none;
	}

}

@media screen { /* only on a wide screen */

	#main_panel { /* where the actual content is */
		margin: 0 1em 0 0;
		padding: 0;
		width: 70%;
		float: right;
		text-align: justify;
	}

	#main_panel a code { /* next rule do not impact links (eg, <code> in [toc]) */
		background-color: transparent;
	}

	#main_panel code { /* make code more visual */
		background-color: #F5F5F5;
		margin: 0;
		padding: 0 4px 0 4px;
	}

	#main_panel pre code { /* use block attributes instead of in-line attributes */
		background-color: transparent;
		margin: 0;
		padding: 0;
	}

}

#main_panel ul { /* change lists in the main panel */
	margin: 0.5em 0 1em 0;
	padding: 0;
	list-style: none;
}

#side_panel { /* complementary information related to this page */
	clear: left;
	padding: 0.5em;
	margin-right: 75%;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 0.7em;
	font-weight: normal;
}

@media print { /* do not print complementary information */

	#side_panel {
		display: none;
	}

}

#side_panel a:hover { /* links in the side panel */
	background-color: #ccc;
}

#side_panel dl { /* actually, a box on the side panel */
	margin: 0;
	padding: 0;
}

#side_panel dl dd { /* body of one side box */
	margin: 0.2em 0 2em 0;
	padding: 0;
}

#side_panel dt { /* used for titles of various boxes */
	background: transparent url("images/side_header.gif") top right;
	margin: 1em 0 0.2em 0;
	padding: 2px 30px 2px 2px;
	font-weight: bold;
}

@media screen { /* on large screens */

	#wrapper { /* limit the horizontal size of everything, and decorate the layout */
		border: 1px solid #000;
		background: #fff url("images/yacs_background.png") repeat-y 25% 0%; /*	*/
		margin: 0;
		padding: 0;
		width: 99%;
		max-width: 90em;
	}

}

/**
 * unique elements - may appear in one or several pages
 */

dl#categories ul { /* categories related to an article, on page side -- articles/view.php */
	margin: 0;
	padding: 0;
	list-style: none;
}

dl#categories ul li { /* space between links */
	margin: 0 0 4px 0;
	padding: 0;
}

#featured { /* the navigation box for statically featured pages -- index.php, sections/view.php */
}

#featured ul { /* the list of featured pages */
	margin: 0;
	padding: 0;
	list-style: none;
}

#featured hr { /* simple rule between items */
	border-top: none;
	border-left: none;
	border-right: none;
	border-bottom: 1px dotted #447;
	height: 0px;
}

/* gadget boxes are generated at index.php and sections/view.php */

#header_slogan { /* appears towards the top of the page -- see template script */
	position: absolute;
	top: 0;
	right: 0;
	margin: 0; /* need for IE Mac */
	padding: 12px 20px 0 0;
	font-size: 0.7em;
	font-weight: bold;
	text-align: right; /* need for IE Mac */
	white-space: nowrap; /* for Opera */
}

#header_title { /* appears towards the top of the page -- see template script */
	position: absolute;
	top: 0;
	left: 0;
	margin: 0; /* need for IE Mac */
	padding: 12px 0 0 20px;
	font-size: 1.3em;
	font-weight: bold;
	color: #5F697E;
	background: transparent;
}

@media screen { /* for the home page, only on large screens -- index.php */

	#newest { /* the most new article at the home page, in layouts: daily, newspaper, slashdot */
		border: 1px solid #fa0;
	}

}

#neighbours ul { /* navigation commands on page side -- articles/view.php */
	margin: 0;
	padding: 0;
	list-style: none;
}

#neighbours ul li { /* space between links */
	margin: 0 0 4px 0;
	padding: 0;
}

/* the global navigation bar -- see template script */

div.tabs,
div.tabs a { /* text appearance in tabs */
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 0.8em;;
	font-weight: normal;
}

div.tabs ul { /* position tabs */
	width: auto;
	position: absolute;
	bottom: 0;
	right: 0;
	margin: 0 1px 0 0;
	padding: 0;
	list-style: none;
	z-index: 10;
}

div.tabs ul li { /* tab top left corner */
	float: right;
	background: transparent url("images/navigation_tab.gif") no-repeat 100% -600px;
	padding: 0 6px 0 0;
	margin: 0 1px 0 0;
	border-bottom: 1px solid #515358;
}

div.tabs ul li:hover { /* change tab background on hovering */
	background-position: 100% -400px;
	cursor: pointer; /* else ie 6 is lost */
}

div.tabs ul li a { /* tab top right corner */
	float: left;
	display: block;
	padding: 4px 4px 4px 10px;
	background: transparent url("images/navigation_tab.gif") no-repeat 0% -600px;
}

div.tabs ul li a,
div.tabs ul li a span{ /* link text */
	color: #fff;
	text-decoration: none;
}

div.tabs ul li:hover a { /* change tab background on hovering */
	background-position: 0% -400px;
}


#tools img { /* towards bottom of the page -- see articles/view.php */
	margin-right: 4px; /* space between icons and labels */
}

#user_menu ul { /* commands that apply to this user -- see template script */
	margin: 0;
	padding: 0;
	list-style: none;
}

@media screen { /* on large screens */

	#wrapper_prefix { /* top decoration */
		background: transparent url("images/yacs_top.png") no-repeat 25% 0px;
		font-size: 3px; /* for IE */
		margin: 0;
		padding: 0 0 5px 0;
		width: 100%;
	}

	#wrapper_suffix { /* bottom decoration */
		background: transparent url("images/yacs_bottom.png") no-repeat 25% 100%;
		clear: both;
		font-size: 3px; /* for IE */
		margin: 0;
		padding: 5px 0 0 0;
		width: 100%;
	}

}

/**
 * styles by classes
 */

td.author { /* in jive and yabb layouts */
	border-right: 1px solid #bfbfbf;
}

#main_panel a.button { /* a link that mimic a form button -- [button]url[/button], [button=label]url[/button] */
	display: -moz-inline-box; /* mandatory for firefox 2 */
	display: inline-block;
	cursor: pointer;
	border: none;
	font-size: 0;
	font-style: normal;
	text-decoration: none;
	color: #2e523b;
	line-height: 0;
	background: transparent url('images/button_drop.png') no-repeat 0 0;
	height: 30px;
	margin: 0 6px 0 0;
	padding: 0 10px 0 0;
	vertical-align: middle;
}

#main_panel a.button span {
	display: inline-block;
	cursor: pointer;
	border: none;
	font-family: "Arial" !important;
	font-size: 12px !important;
	font-style: normal;
	white-space: nowrap;
	letter-spacing: 0 !important;
	color: #222;
	line-height: 16px;
	background: transparent url('images/button_drop.png') no-repeat 100% 0;
	height: 30px;
	margin: 0 -16px 0 10px;
	padding: 8px 20px 0 10px;
	vertical-align: middle;
}


#main_panel span.button { /* a button in a form */
	display: -moz-inline-box; /* mandatory for firefox 2 */
	display: inline-block;
	cursor: pointer;
	border: none;
	font-size: 0;
	font-style: normal;
	text-decoration: none;
	color: #2e523b;
	line-height: 0;
	background: transparent url('images/button_drop.png') no-repeat 0 0;
	height: 30px;
	margin: 0 6px 0 0;
	padding: 0 10px 0 0;
	vertical-align: middle;
}

#main_panel span.button button {
	display: -moz-inline-box;
	display: inline-block;
	cursor: pointer;
	border: none;
	font-family: "Arial" !important;
	font-size: 12px !important;
	font-style: normal;
	white-space: nowrap;
	letter-spacing: 0 !important;
	color: #222;
	line-height: 1;
	background: transparent url('images/button_drop.png') no-repeat 100% 0;
	height: 30px;
	margin: 0 -16px 0 10px;
	padding: 0 20px 0 10px;
}

#main_panel a.button:hover,
#main_panel span.button:hover {
	background-position:0 -60px;
	color:#fff;
	text-decoration:none;
}

#main_panel a.button:hover span,
#main_panel span.button:hover button {
	background-position:100% -60px;
	color:#fff;
}

#main_panel a.button:active span,
#main_panel span.button:focus button {
	color:#444;
}

table.calendar { /* add bottom and right borders to the table*/
	border-spacing: 0;
	border-collapse: collapse;
	border-bottom: 1px solid #bfbfbf;
	border-right: 1px solid #bfbfbf;
	margin-bottom: 1em;
}

table.calendar caption,
table.calendar caption a { /* calendar caption */
	font-weight: bold;
	font-size: 12px;
	font-style: normal;
	color: #fff8ff;
	background-color: #8D90AB;
	text-align: left;
	padding: 0 2px 0 2px;
}

table.calendar td,
table.calendar th { /* add top and left borders to each cell */
	border-top: 1px solid #bfbfbf;
	border-left: 1px solid #bfbfbf;
	margin: 0;
	padding: 4px;
	vertical-align: top;
	text-align: left;
}

table.calendar td.spot {
	background-color: #eee;
	font-weight: bold;
}

dl.column_1,
dl.column_2 { /* left or right column out of two -- index.php, sections/index.php, sections/view.php, categories/index.php, etc. */
	margin: 0 8px 8px 0;
	width: 45%;
}

dl.column_1 dd,
dl.column_2 dd { /* column actual content */
	margin: 0 0 1em 30px;
	padding: 0 0 0.4em 0.7em;
	border-left: solid 1px #D6CCBD;
}

div.even { /* stacked with div.odd */
	padding: 0.5em 0;
}

.extra_box ul { /* a list in the side panel */
	margin: 0.5em 0 1em 0;
	padding: 0 0 0 1.5em;
	list-style: disc;
}

dl.gadget_box { /* container of one gadget box -- also see #gadget_1, etc. -- from index.php, sections/view.php */
	padding: 0;
	margin: 0 1em 1em 0;
	float: left;
	width: 45%;
}

.highlight1 { /* to locate words looked for, following a search request */
	background-color: #80FF80;
}

.highlight2 {
	background-color: #8080FF;
}

.highlight3 {
	background-color: #FF8080;
}

table.jive tr.even {
	background-color: #ffe;
}

table.jive tr.odd {
	background-color: #fef;
}

.left_image .large img { /* add a simple border around large images */
	border: 1px solid #a9a9a9;
	padding: 4px;
}

.menu { /* a small inline menu, almost anywhere */
	margin: 0;
	padding: 0;
	font-size: 0.8em;
}

.menu a {
	font-weight: normal;
}

@media screen { /* not on printers */

	.new { /* [new] -- display a neat image as a flag */
		padding-right: 33px;
		margin-right: 2px;
		background: transparent url("tools/new.gif") no-repeat right;
	}

}

div.odd { /* stacked with div.even */
	padding: 0.5em 0;
}

#main_panel td.odd { /* one row out of two, but only in the main panel */
	background-color: #F4F0F4;
}

div.sidebar_box { /* somewhere in the main panel -- [sidebar]...[/sidebar] */
	background-color: #ffc;
	border-style: none none none dotted;
	border-width: 1px;
	border-color: #696;
	float: right;
	padding: 1em;
	font-size: smaller;
	margin: 0 0 4px 4px;
}

div.sidebar_box h3 { /* header of one sidebar box -- the 'foo bar' of [sidebar=foo bar]...[/sidebar] */
	margin: 0;
	padding: 0;
	background-color: transparent;
	color: inherit;
	border: none;
	font-size: 1em;
	text-align: inherit;
}

div.sidebar_box div.sidebar_body {
	padding: 0.5em 0 1em 0;
	border: none;
}

.thumbnail_image img { /* add a small border to images */
	border: 1px solid #333;
}

@media screen { /* not on printers */

	.updated { /* flag modified pages -- see also .flag */
		padding-right: 60px;
		margin-right: 2px;
		background: transparent url("tools/updated.gif") no-repeat right;
	}

}

table.yabb { /* to introduce threads and comments -- see articles/layout_articles_as_yabb.php */
	border: 1px solid #ccc;
}

table.yabb tr.even {
	background-color: #ffe;
}

table.yabb tr.odd {
	background-color: #fef;
}

