/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #01325d;
}

body {
    font-size: 1em;
    line-height: 1.4;
}

a {
    color: #0085b7;
}

a:visited {
    color: #0085b7;
}

a:active, a:hover {
    color: #006990;
}
#main h2 a, #main h3 a  {color: #01325d;text-decoration:none;}
/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}
.henkilot div.palsta1  {background:#f6f6f6;padding:15px 0 0 0;margin:0 40px 0 0;width:420px;}
.henkilot div.palsta2  {background:#f6f6f6;padding:15px 0 0 0;margin:0;width:460px;}

.henkilot p  {margin-top:0;padding-top:15px;margin-bottom:0;font-size:85%}
.henkilot p strong {font-size:120%;}
form .palsta1, form .palsta2  {background:#fff;}
.palsta1 input {width:90%;}
form .palstat p strong {display:block;padding:2px 0 8px 0;float:left;width:100%;}
.palstat input, .palstat textarea {border:0 none;background:#f6f6f6;color:#333;font-size:95%;padding:10px 5px;}
form .palstat textarea {width:98%;height:270px;}
form .palstat p.submit input {padding:10px;background:#002748;color:#fff;font-weight:bold;float:right;text-transform:uppercase;}

.contact-form-wrapper, .contact-form-wrapper li {list-style:none;}
/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */




.dateheader {
	font-size:90%;
	width:100%;
	margin:0;
	padding:0;
	float:left;
}
#header-inside h1 a, 
#header-inside h1 span {
	display:block;
	width:262px;
	height:106px;float:left;
	text-decoration:none;
	text-indent:-99999px;
}
/*
------------------------------------------------------------
	Main navigation
------------------------------------------------------------
*/

#mainnavigation ul {
	margin:0;
	padding:0;
	float:left;
	width:642px;
	height:36px;
	list-style:none;
}
#mainnavigation ul li {
	margin:0 5px 0 0;
	padding:0 0 0 0;
	height:36px;
	line-height:1;
	list-style:none;
	float:left;
	font-size:85%;font-weight:bold;
	text-transform:uppercase;
}

#mainnavigation ul li a {
	color:#fff; text-decoration:none;
	display:block;margin:0 0 0 0;line-height:1;
	padding:14px 15px 0 15px;height:22px;float:left;
}
#mainnavigation ul li a.selected {
	background:rgba(0,137,255,0.2);
}
#mainnavigation ul ul.subnavi li a {
	color:#fff;
	text-decoration:none;
	display:block;
	float:left;
	text-indent:0;
	padding:15px 0 10px 0;
	border-bottom:1px solid #fff;
	width:140px;
	background:transparent;
}
#mainnavigation ul ul.subnavi li a:hover {
	color:#fff;
	background:transparent;
} 
#mainnavigation ul#nav ul.subnavi li a.selected, 
#mainnavigation ul#nav ul.subnavi li a.selected:hover{
	color:#fff;
	background:transparent;
}
#nav li#navi-option3 ul a, 
#nav li#navi-option3 ul a:hover {
	background:transparent;
	border-bottom:0 none;
}
#mainnavigation ul ul.subnavi { /* all lists */
	padding: 0 0 0 0;
	margin:0 0 0 0;
	list-style: none;
	line-height: 1;
	z-index:666;
}
#mainnavigation ul li ul.subnavi { /* second-level lists */
	position: absolute;
	width: 150px;top:36px;z-index:99999;
	left: -999em; /* using left instead of display to hide menus because display: none isn't read by screen readers */
}
#mainnavigation ul li ul.subnavi li {
	width: 130px;
	height:auto;
	font-size:0.9em;
	margin:0 0 0 0;
	padding:0 10px;
	float:left;
	background:#024e8c;
	border:0 none;
	border-top:0 none;
}
#mainnavigation ul li ul.subnavi li#subnavi-option5 {
	border-bottom:0 none;
	padding-bottom:0px;
}
#mainnavigation ul li:hover ul, #mainnavigation ul li.sfhover ul { /* lists nested under hovered list items */
	left: auto;
}
#page-footer a {text-decoration:none;color:#fff;}
#page-footer a:hover {text-decoration:underline;color:#fff;}


#main .entry li, #main .entry dd, #main .entry p {letter-spacing:-0.025em;}
.ingressi {letter-spacing:-0.05em;font-weight:bold;font-size:130%;}

ul.palstat, div.palstat {margin:0 0 0.75em 0;padding:0;list-style:none;float:left;width:100%;}
ul.palstat li, div.palsta1, div.palsta2 {float:left;width:50%;margin:0 0 0.25em 0;padding:0;list-style:none;}

.palstat img.alignleft {margin-right:30px;margin-top:-30px;}


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 100%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   Theses examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
       only screen and (min-resolution: 144dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow:none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
