/* Sisällölle tyypilliset määritteet, riippumatta mediatypestä */

/* Tiedotteet */

div.tiedote h2 {
    margin-bottom: 0px;
}

div.tiedote .info {
    font-size: small;
    margin-left: 3em;
}

div.tiedote .update {
    padding-left: 5px;
    border-left: 5px double #778;
    border-top: 5px double #778;
}

.tiedotteet-listdate {
    font-family: monospace;
    font-weight: bold;
}

.tiedotteet-menulink {
    display: block;
    margin-left: 15em;
    margin-top: -1.25em;
    margin-bottom: 0.3em;
}

/* Tablet */

table {
    margin-bottom: 1em;
}

td, th {
    padding-left: 1em;
    padding-right: 1em;
}

td {
    text-align: left;
    background-color: #E7E7E7;
}

th {
    background-color: #C9C9C7;
}

tr.separator td {
    background-color: transparent;
    height: 1em;
}

tr.hilight td {
    background-color: #D7D7D7;
}

table.plain td, table.plain th {
    background-color: transparent;
}

table.plainheadleft td, table.plainheadleft th {
    background-color: transparent;
    text-align: left;
}

/* Talousarvion summat, jätetään tilaa viitteille */
table.talousarvio td {
    text-align: right;
    padding-right: 2em;
}

table.talousarvio div {
    position: relative;
}

table.talousarvio td div sup {
    position: absolute;
    right: -2em;
}

table.talousarvio td.riviotsikko {
    text-align: left;
    padding-right: 1em;
}

/* Listat */

ul {
    list-style: square inside;
    margin-left: 10px;
    padding: 0px;
}

ol.largespace li, ul.largespace li{
    margin-bottom: 1em;
}

/* Otsikot ja kappaleet */

p {
    margin-top: 5px;
}


h1 {
    font-size: 25px;
}

h2 {
    font-size: 20px;
}

h3 {
    font-size: 15px;
}

h1, h2, h3 {
    font-family: "Arial", "Helvetica", sans-serif;
    font-weight: bold;
    margin-bottom: 10px;
}

h2, h3 {
    margin-top: 20px;
}

div.contentmenu h1 {
    font-size: 30px;
}

div.content h1 {
    padding-bottom: 5px;
    margin-bottom: 20px;
    border-bottom: 1px solid #DBDBD8;
}

h1.contenttop {
    padding-top: 0px;
    margin-top: 0px;
}

h1.liite {
    padding-top: 3em;
}

/* Asetukset-definitionlist */

dl.settings {
    border-left: 3px double #787877;
    padding-left: 10px;
    margin-top: 2em;
    margin-bottom: 2em;
}

dl.settings dt {
    font-weight: bold;
}

dl.settings dd {
    margin-bottom: 1em;
}

/* Vikailmoitukset-laatikko */

div.vikailmoitus, div.vikailmoitus_ok {
    padding-top: 5px;
    padding-bottom: 5px;
    margin-top: 2em;
    margin-bottom: 2em;
}

div.vikailmoitus {
    border-left: 3px double #D22;
    border-top: 3px double #D22;
}

div.vikailmoitus_ok {
    border-left: 3px double #2D2;
    border-top: 3px double #2D2;
}

div.vikailmoitus p, div.vikailmoitus_ok p {
    padding-left: 10px;
}


/* Pöytäkirjat */

div.poytakirja h2 {
    font-size: 15px;
}

div.ylatunniste {
    float: right;
    text-align: right;
}

dl.poytakirja {
    margin-top: 2em;
    margin-bottom: 2em;
}

dl.poytakirja dt {
    width: 6em;
    float: left;
    font-weight: bold;
}

dl.poytakirja dd {
    margin-bottom: 1em;
    margin-left: 6em;
}

div.allekirjoitus {
    border-top: 1px solid #000;
    float: left;

    margin: 1em;
    margin-top: 2em;
    padding-left: 1em;
    width: 15em;
}

div.poytakirja ol.otsikot {
    font-size: 15px;
    font-weight: bold;
}

/* Liian laajalle leviävän ol.otsikot-tyylin voi tarvittaessa poistaa
wrappaamalla sisemmät jutut diviin. */

div.poytakirja ol.otsikot p, div.poytakirja ol.otsikot div {
    font-size: 14px;
    font-weight: 400;
}

/* Linkit */

a {
    color: #566d11;
}

a:visited {
    color: #273107;
}

a:visited:hover {
    color: #475a0d;
}

a:hover {
    color: #87a727;
}

a.external {
    background-image: url('/assets/img/linkki.png');
    background-position: right;
    background-repeat: no-repeat;
    padding-right: 12px;
}

a:hover.external {
    background-image: url('/assets/img/linkki-hover.png');
}

/* <a name:t normiväreillä */
a.name, a:hover.name, a:visited.name, a:visited:hover.name {
    color: #000;
    text-decoration: none;
    cursor: default;
}

/* Haku */
form.haku {
    margin-bottom: 20px;
}

.hakutulokset h2, .sivulista h2 {
    font-size: 14px;
    margin-bottom: 2px;
}

.hakutulokset .tulosmaara {
    margin-top: -4px;
    font-size: 80%;
    float: right;
}

.hakutulokset p, .sivulista p {
    margin-top: 2px;
    margin-bottom: 2px;
}

.hakutulokset .path {
    font-size: 12px;
    color: #273107;
    font-weight: 500;
}

.hakutulokset .muuttulokset {
    padding: 2px;
    background-color: #edf4d9;
    margin-top: -7px;
    margin-bottom: 7px;
}

/* Muita */

hr {
    border: none;
    border-bottom: 1px solid #DBDBD8;
}

pre {
    background-color: #E7E7E7;
    border: 1px solid #787877;
    padding: 5px;
    overflow: auto;
}

code {
    font-family: monospace;
}

.img_right {
    float: right;
    margin-left: 1em;
    margin-bottom: 1em;
    font-style: italic;
    text-align: center;
}

div.imgcaption {
    padding-bottom: 2em;
    
    font-style: italic;
    text-align: center;
    
     /* inline-block olisi parempi, mutta Firefox 2 ei tue */
    display: table-cell;
}

div.img_right img, div.imgcaption img {
    display: block;
    margin-bottom: 0.5em;
}

kbd {
    white-space: nowrap;
}

.roskaposti {
    display: none;
}

a.anchor, a.anchor:visited, a.anchor:hover, a.anchor:visited:hover {
    font-size: 100%;
    color: black;
    text-decoration: none;
}

.infoBox {  
width: 440px;
height: 160px;
float: left;
padding: 8px 4px 4px 8px;
margin-right: 20px;
}

.infoBox a, .infobox a:visited, .infobox a:active {
text-decoration: none;
color: black;
}

.infoBox img {
float: left; width: 150px; 
margin-right: 30px;
}

.infoBox h3 {
color: #97AA1F;
font-size: 1.4em;
}


.infoBox ul li {
list-style-position: outside;
margin-bottom: 4px;
}

.korvaa {
color: #ff2020;
}

div.vanhaohje {
margin: 10px;
padding: 10px;
border: 3px solid #ccc;
background: #f4fae3;
}

p.vanhaohje {
background:url('https://ukk.kapsi.fi/m/kapsi/media/img/ukklogo.png') no-repeat 10px 10px;
padding: 30px 0 0 200px;
height: 60px;
}

p.vanhaohje b {
display: inline-block;
padding-bottom: 5px;
color:red;
}
