/*
 * Article style sheet for Turun yliopisto. 
 *
 * 2004-05 Tero Ykspetäjä & Matti Laakso, Kuulalaakeri Oy.
 * Modified Kari Tanskanen, Turku University 2004-09-07
 * Modified Ilmari Vakkala, TY, 24/01/2005 
 * FONTS:
 *	Normal font size: 1em
 *	Smaller text size: 0.8em
 *
 * PARAGRAPHS ETC.
 *   Increased line spacing between list items etc. 0.3em
 *
 *  LINK COLORS:
 *	a:link #0e5e7f;
 *	a:visited #29434e;
 *	a:hover #96612f;
 *
 * OTHER COLORS:
 *   Gray text: #999999;
 *
 * NOTE:
 *	NavPath-sensitive elements defined at the bottom of this file
 */

#article {
	line-height: 1.4em;
	padding-top: 1em;
}

/* Hand-waving to try and work around IE/Win display bugs. */

#article {
	position: relative;
}

/* Seems to mess up Opera. Pikalinkit which are on the same line as H1 can't be pressed

#article h1 {
	position: relative;
}
*/

/* Headers */

#article h1 {
	font-size: 1.4em;
	color: #000000;
}

#article h2 {
	font-size: 1.2em;
}

#article h3 {
	font-size: 1.0em;
	border: none;
}

/* Special area containers */

/* Pikalinkit */

#article .Pikalinkit {
	border-left: 1px dotted #464646;
	float: right;
	/* Moved to base_newbrowser.css, mac only
	width: 40%;
	*/
	margin-bottom: 0.5em;
	margin-left: 0.5em;
	padding: 0em 0.5em 0em 1em;
	background-color: #F9F9F9;
	/*background-image: url(img/background.png);*/
}

#article .Pikalinkit ul {
	margin-top: 0em;
	margin-bottom: 0em;
	margin-left: 0em;
	padding-left: 0em;
	display: block;
}

/* fix: so pikalinkit can be indent inside ul*/
#article .Pikalinkit ul ul {
	padding-left: 1em;
}

/* NOTE: This element is NavPath-sensitive */

#article .Pikalinkit li {
	display: list-item;
	list-style-type: none;
	margin: 0;
	padding: 0px;
	padding-left: 12px;
	display: list-item;
	background-image: url(img/arrowbullet_main.gif);
	background-repeat: no-repeat;
	background-position: 0px 0.5em;
	list-style-position: outside;
}

#article .Pikalinkit li a {
	font-weight: bold;
	text-decoration: none;
	color: #464646;
}

#article .Pikalinkit li a:visited {
	color: #29434e;
	text-decoration: none;
}

#article .Pikalinkit li:hover,
#article .Pikalinkit li a:hover {
	color: #96612f;
	text-decoration: underline;
}

/* Added by Ilmari @ TY 24.1.2005 */
#article .Pikalinkit img a {
	border: 0px none;
}
#article .Pikalinkit img a:visited {
	border: 0px none;
}
/* Added by Ilmari @ TY 24.1.2005 */

/* Images within articles */

#article .KuvaOikea,
#article .KuvaVasen,
#article .KuvaVasenNoMargin,
#article .KuvaOikeaNoMargin {
	border: 0px solid #464646;
	background-color: #ffffff;
}

#article .KuvaOikea,
#article .KuvaOikeaNoMargin {
	float: right;
	margin-left: 0.5em;
	padding: 0.2em;
	/* debug
	clear: right;
	*/
}

#article .KuvaVasen,
#article .KuvaVasenNoMargin {
	float: left;
	margin-right: 0.5em;
}

#article .KuvaVasen p,
#article .KuvaOikea p,
#article .KuvaVasenNoMargin p{
	font-size: 0.8em;
}

#article .KuvaVasen, .KuvaVasenNoMargin {
padding-right: 1em;
}
#article .KuvaOikea, .KuvaOikeaNoMargin {
padding-left: 0.2em;
}

#article .KuvaVasenNoMargin {
	margin: 5px 10px 5px 5px;
	padding: 0px 0px 0px 0px;
	background-color: transparent;
}

#article .KuvaOikeaNoMargin {
	margin: 5px 5px 5px 5px;
	padding: 0px 0px 0px 0px;
	background-color: transparent;
}
/* Paragraph styles */

#article .Ingressi {
	font-weight: bolder;
}

#article .Lainaus {
	font-style: oblique;
	margin-left: 3em;
	margin-right: 3em;
	padding: 0.5em;
}

.author {
	/* debug - also a workaround to IE two column problem */
	/*clear: both;*/
	
	font-size: 0.8em;
	text-align: left;
	margin-top: 1em;
	margin-bottom: 0em;
}

#article .centered {
	text-align: center;
}

/* Author clears floats on full page layout to make event calendar work.
   IE left margin bug not relevant since on full page no navi-area to the left. */

.full-page .author {
	clear: both;
	width: auto;
}

/* On complying (non-IE) browsers, can clear on all pages. */

#article > .author {
  clear: both;
}

/* Article links */

#article a:link {
	color: #0e5e7f;
}

#article a:visited {
	color: #29434e;
}

#article a:hover {
	color: #96612f;
}

/* Tables */

#article table {
	border: 1px solid #464646;
	border-spacing: 0px 0px;
	border-collapse: collapse;
	table-layout: auto;
	width: auto;
}

#article th {
	background-color: #E4E4E4;
	font-weight: bold;
	display: table-cell;
	empty-cells: show;
	text-align: left;
}

/* Note: see also base_newbrowser.css for IE5 table text size correction. */
#article th, 
#article td {
	border: 1px solid #464646;
	/* debug ie testing
	font-size: 1em !important;
	font-size: 0.8em;
	*/
	padding: 0.2em;
}

td .TaulNro {
	text-align: right;
}

#article table.no-border,
#article table.no-border th,
#article table.no-border td {
	border: 0px none;
}

#article table.no-border-top,
#article table.no-border-top th,
#article table.no-border-top td {
	border: 0px none;
	vertical-align: top;
}

#article table.border-top,
#article table.border-top th,
#article table.border-top td {
	border: 1px solid #aaaaaa;
	vertical-align: top;
}

/* For alumni main category, the bottom case */

#article table.bottom-case,
#article table.bottom-case th,
#article table.bottom-case td {
	background-color: #E4E4E4;
	border: 0px none;
	vertical-align: top;
	padding: 5px 5px 5px 5px;
	text-align: justify;
	font-size: 0.9em;
	line-height: 1.2em;
}

#article table.slogan,
#article table.slogan th,
#article table.slogan td {
	border: 1px solid #666666;
	padding: 15px 15px 15px 15px;
	width: 200px;
	max-width: 200px;
	background-color: #FFFFFF;
	color: #666666;
	text-align: center;
	font-size: 0.9em; 
}

/* Form field table */

#article table.form {
	margin-bottom: 1em;
}

/* Document list */

#article .headlines dt {
	margin: 1em 0.5em 0.5em 1em;
}

/* NOTE: This element is NavPath-sensitive */

#article .headlines dt .title {
	margin: 1em 0.5em 0.5em 0em;
	padding-left: 12px;
	background: url(img/doclistarrow_main.gif) no-repeat;
	background-position: 0px 0.5em;
}

#article .headlines dd p {
	margin-top: 0em;
	margin-bottom: 0.5em;
}

/* Calendar information */

#article .calendar-month {
	display: table;
	border-spacing: 2px 0px;
	border-collapse: separate;
}

#article .calendar-month,
#article .calendar-month th,
#article .calendar-month td {
	border: 0em none;
	line-height: 1em;
	/*
	background: none;
	*/
}

.calendar-month .irrelevant {
	color: #999999;
}

/*
#article tr.calendar-header th,
#article tr.calendar-header th a {
	color: black;
}
*/

.calendar-day .calendar-heading,
#article .calendar-month thead th,
#article .calendar-month thead a {
	color: white;
}

.calendar-day .calendar-heading,
#article .calendar-month thead th {
	background-color: #0f5e7e;
}

body#alumni #article .calendar-month thead th {
	background-color: #e78427;
}

#article .calendar-month tbody th,
#article .calendar-month tbody th a {
	background: inherit;
	color: #999999;
}

.calendar-header {
	font-weight: bold;
}

.calendar-name {
	line-height: 1em;
	margin-bottom: 0.3em;
}

.calendar-week ul,
.calendar-day ul {
	margin-left: 0em;
	margin-top: 0em;
	padding-left: 0em;
}

.calendar-week li,
.calendar-day li {
	display: list-item;
	/* debug
	clear: left;
	*/
	list-style-type: none;
	margin-bottom: 0.3em;
	/* IE rules test */
}

.calendar-week li .date,
.calendar-day li .time {
	color: #999999;
	margin-right: 1em;
	/*
	float: left;
	*/
	/* IE rule */
	margin-left: -4.5em;
}

.calendar-week li {
	margin-left: 4.6em;
}

.calendar-week li .date {
	margin-left: -4.6em;
}

.calendar-day li {
	margin-left: 4.5em;
}

.calendar-day li .time {
	margin-left: -4.5em;
}

.calendar-week li .title,
.calendar-day li .title {
	position: relative;
	top: 0px;
	left: 0em;
	/*
	float: left;
	*/
}

/* Nice list display rules have to be hidden from IE/Win, or
will mess up display. */
/* Breaks Safari and IE/Mac, doesn't really seem to be needed.
.calendar-week li>.date,
.calendar-day li>.time {
	display: block;
	clear: left;
	float: left;
	color: #999999;
	margin-right: 1em;
}
*/
.calendar-week li>.title,
.calendar-day li>.title {
	/* Breaks Safari and IE/Mac
	display: block;
	float: none !important;
	*/
	/* IE test
	padding-left: 5em !important;
	*/
	width: auto;
}

/* Single event view contains floating day and month views, separated from event text with a border. */

.calendar-event {
	border-bottom: 1px #0f5e7e solid;
	margin-bottom: 1em;
}

.calendar-event-left-column {
	float: left;
	width: 60%;
	/* position to work around IE bug. */
	position: relative;
}

.calendar-event-right-column {
	float: right;
	width: auto;
	margin-top: 1.3em;
	/* position to work around IE bug. */
	position: relative;
}

/*
 * Site map formatting.
 */

#sitemap h2 {
	background-color: #e7eff2;
	font-weight: bold;
	font-size: 1.2em;
	height: 1.2em;
}

#sitemap .category {
	margin-left: 2em;
}

/*
 * Search result formatting.
 */

/* Search options box + page navigation box */

#search-form-options {
	margin-bottom: 1em;
	background-color: #e7eff2;
	border: 1px solid #0f5e7e;
}

#search-form-options fieldset {
	padding: 0.5em;
	border: 0px none;
}

#search-form-options legend {
	font-weight: bold;
	margin: 0px;
	padding: 0px;
}

/* Search results in a bit looser format. */

#search-results {
	padding-bottom: 0.3em;
}

#search-results dt {
	margin-top: 0.3em;
}

/* URL and meta info in a bit smaller font. */

dd.search-result-url,
dd.search-result-meta {
	font-size: 0.8em;
}

/* URL normally not shown at all. */

dd.search-result-url {
	display: none;
}

/*
 * Form layout 
 */

/* Form item consists of name, one or more fields and optional help text. */

.form-item {
	width: 100%;
	padding-top: 1em;
	padding-bottom: 1em;    
}

/* Data is item name and fields, in consecutive DIVs. */

.form-item .data {
	float: left;
	width: 55%;
	font-weight: bold;
}

form label {
	font-weight: normal;
}
	
/* Make fields smaller in narrow windows in conforming browsers. */
/* 25.10.2005 - Ilmari Vakkala - Seems to mess up the select options width to narrow as possible (Mozilla Firefox)

.form-item .data * {
	max-width: 99%;
}
*/

/* Item description (help text) floated on the right side of fields. */

.form-item .desc {
	float: left;
	width: 44%;
}

/* Not used at the moment - insert an empty DIV just before the end of .form-item if needed.
   Stretches the .form-item div under all fields (i.e. if a border is wanted). */

.form-item-end {
	width: 100%;
	margin: 0px;
	padding: 0px;
	line-height: 0px;
	border: 0px none;
}

/* Make submit button separate a bit from last form-item
   without altering paragraphs in item desctiption
   in IE-compatible way. */

form p {
	padding-top: 1em;
}

form div p {
	padding-top: 0em;
}

/* Conforming browsers can clear the floats of previous item. */

form > .form-item {
	clear: left;
}

.form-item > .data {
	clear: left;
	display: block;
	/* Force Mozilla to float "desc" under "data" on smaller browser widths: */
	padding-right: 4px;
}

/*
.form-item > .data * {
	max-width: 99%;
}
*/

.form-item > .desc {
	display: block;
}

/* Doesn't seem to affect anything at the moment.
.form-item > .desc > p {
	clear: left;
	display: block;
	width: 100%;
	margin-bottom: 1em;
}
*/

form > p {
	clear: left;
}

/* navigator elements */

/*
#search-results-navigator {
margin-bottom: 2em;
padding-left: 0.5em;
padding-right: 0.5em;
padding-top: 0.3em;
padding-bottom: 0.3em;
background-color: #e7eff2;
border: 1px solid #0f5e7e;}
*/

/* 
* NavPath-sensitives (Subpage color themes)
*
* These override previous statements
* Subpage style defined in <body id="style">
*
*/

/* Lisäominaisuuksia mm. sivuntaittoon yms. */

.osa1{
	clear: right;
}

.palsta1 {
	width:48%;
	float:left;
	text-align: justify;
	position: relative;
}

.palsta2 {
	width:48%;
	float:right;
	text-align: justify;
	position: relative;
}
