/*
Theme Name: Itä-Suomen koulu
Theme URI: https://sorjaproductions.fi/digitaalinen-markkinointi/verkkosivut/
Author: Sorja Productions
Author URI: https://sorjaproductions.fi/
Description: Itä-Suomen koululle tehty WordPress-teema
Version: 1.0
Text Domain: itasuomenkoulu
*/

:root {
	--musta: #000000;
	--valkoinen: #FFFFFF;
	--violetti: #5D1E79;
	--vaaleanvioletti: #A066AA;
	--kellanruskea: #EDECDE;
	--vihrea: #30BDB6;
	--tummanvihrea: #19A8A1;
	--vaaleanvihrea: #68cbc6;
	--vaaleanpunainen: #FAD1E3;
	--pinkki: #D851AF;
	--vaaleanpinkki: #e8a1ce;
	--oranssi: #F4792C;
	--tummanoranssi: #D45000;
	--vaaleanoranssi: #fca067;
    --laventeli: #f2e9f5;
}

h1, h2, h3, h4, h5, h6 {
    word-break: break-word;
    overflow-wrap: break-word;
}

img {
	max-width: 100%;
	height: auto;
}

blockquote {
	quotes: '"' '"' '"' '"';
	font-style: italic;
}

blockquote:before {
    content: open-quote;
}

blockquote:after {
    content: close-quote;
}

.alignleft {
    float: left;
    margin: 0.3em 2em 2em 0;
}

.aligncenter {
	display: block;
	margin: 2em auto;
}

.alignright {
    float: right;
    margin: 0.3em 0 2em 2em;
}

.wp-caption-text {
    font-size: 0.9em;
    font-style: italic;
    margin-top: 0.25em;
}

.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
}

.embed-container {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	max-width: 100%;
} 

.embed-container iframe,
.embed-container object,
.embed-container embed { 
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

html, body {
	margin: 0;
	font-family: "Poppins", serif;
	font-weight: 400;
	font-style: normal;
	font-size: 22px;
}

html[lang="ru-RU"],
html[lang="ru-RU"] body {
	font-family: "Montserrat", sans-serif;
	font-size: 20px;
}

h1, h2, h3, h4, h5, h6 {
    /*
    word-break: break-word;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    */
    line-height: 1.200em;
    color: var(--violetti);
    margin: 2rem 0 1.5rem 0;
    font-weight: 800;
}

h1 {
    font-size: 4.318rem;
}

h2 {
	font-size: 2.727rem;
}

h3 {
    font-size: 1.364rem;
}

h4 {
    font-size: 1.091rem;
}

.kehys {
	width: 1920px;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
	padding-left: 6.364rem;
	padding-right: 6.364rem;
}

.rivi {
	display: flex;
	flex-wrap: wrap;
	box-sizing: border-box;
}

.solu {
	display: block;
	box-sizing: border-box;
}

.solu12 {
	width: 100%;
}

.solu11 {
	width: calc(100% / 12 * 11);
}

.solu10 {
	width: calc(100% / 1.2);
}

.solu9 {
	width: 75%;
}

.solu8 {
	width: calc(100% / 1.5);
}

.solu7 {
	width: calc(100% / 12 * 7);
}

.solu6 {
	width: 50%;
}

.solu5 {
	width: calc(100% / 2.4);
}

.solu4 {
	width: calc(100% / 3);
}

.solu3 {
	width: 25%;
}

.solu2 {
	width: calc(100% / 6);
}

.solu1 {
	width: calc(100% / 12);
}

header.ylavalikko {
    background-image: linear-gradient(90deg, var(--vaaleanvioletti) 50%, var(--valkoinen) 50%);
    color: var(--valkoinen);
    position: relative;
    z-index: 9999;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.25s color;
}

.ylavalikko .kehys {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 0;
}

a.paalogo {
    display: block;
    width: 230px;
    margin: 0;
}

nav.paavalikko {
    display: flex;
    width: calc(100% - 230px);
    padding-left: 2rem;
    box-sizing: border-box;
    justify-content: flex-end;
}

a.paalogo span {
    display: none;
}

a.paalogo img {
    display: block;
}

img {
    max-width: 100%;
    height: auto;
}

nav.paavalikko ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

nav.paavalikko ul.sub-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    transform: scaleY(0);
    transform-origin: top center;
    transition: 0.5s transform;
    min-width: 100%;
    box-sizing: border-box;
    background: var(--vihrea);
}

nav.paavalikko li, nav.paavalikko li a {
    display: block;
    position: relative;
}

nav.paavalikko li a {
    padding: 2.114em 1em;
    line-height: 1em;
    text-transform: uppercase;
    background-color: var(--vaaleanvioletti);
    transition: 0.25s background, 0.25s color;
}

ul.wilma {
    background: var(--vaaleanpunainen);
    color: var(--violetti);
}

ul.kielivalikko {
    background: var(--valkoinen);
    color: var(--violetti);
}

nav.paavalikko .kielivalikko li a {
    padding: 0.25em 0.5em;
    background: none;
}

nav.paavalikko ul.kielivalikko {
    padding-left: 1.4rem;
    padding-right: 1.4rem;
    background: var(--laventeli);
}

nav.paavalikko .kielivalikko li {
    border-left: 2px solid var(--violetti);
}

nav.paavalikko .kielivalikko li:first-child {
    border: none;
}

/*
nav.paavalikko > ul:first-child > li:last-child > a {
    padding-left: 1.682em;
    padding-right: 1.682em;
}
*/

.paavalikko > ul:first-child > li.menu-item-has-children:last-child > a,
.paavalikko > ul > li.menu-item-has-children > a {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="15.249" height="15.249" viewBox="0 0 15.249 15.249"><path id="arrow-pitkä-terävä" d="M166.671-800v11.6l-5.337-5.337L160-792.376l7.624,7.624,7.624-7.624-1.334-1.358-5.337,5.337V-800Z" transform="translate(-160 800)" fill="%23fff"/></svg>');
    background-size: 16px;
    background-position: center right 1em;
    padding-right: calc(1em + 26px);
    background-repeat: no-repeat;
}

nav.paavalikko ul.wilma {
    padding: 0;
}

nav.paavalikko .wilma li a {
    padding: 2.114em 1.682em;
    background-color: var(--vaaleanpunainen);
}

.bg_violetti {
    background: var(--violetti);
    color: var(--valkoinen);
}

.hero .kehys {
    display: flex;
    height: calc(100vh - 115px);
    max-height: 1400px;
    align-items: center;
}

.bg_violetti.hero {
	background-image: url(kuvat/home_hero_kuvio.svg);
	background-position: right center;
	background-repeat: no-repeat;
	background-color: var(--violetti);
}

nav.paavalikko .sub-menu li a {
    text-transform: initial;
    padding-top: 0.75em;
    padding-bottom: 0.75em;
    background: var(--vihrea);
    white-space: nowrap;
}

* > h1:first-child,
* > h2:first-child,
* > h3:first-child,
* > h4:first-child,
* > h5:first-child,
* > p:first-child {
	margin-top: 0;
}

* > h1:last-child,
* > h2:last-child,
* > h3:last-child,
* > h4:last-child,
* > h5:last-child,
* > p:last-child {
	margin-bottom: 0;
}

* > h1:first-child:last-child,
* > h2:first-child:last-child,
* > h3:first-child:last-child,
* > h4:first-child:last-child,
* > h5:first-child:last-child {
    margin-bottom: 1.5rem;
}

.tekstijakuva.kehys {
    padding: 0;
}

.tekstijakuva {
    display: flex;
}

.tekstijakuva.kehys > * {
    display: block;
    width: 50%;
    box-sizing: border-box;
}

.tekstijakuva_teksti {
	padding: 8.500rem 6.364rem;
}

.tekstijakuva_kuva {
    background-size: cover !important;
    background-position: center !important;
}

.alahero h1,
.bg_violetti h1 {
    color: var(--valkoinen);
}

p {
    line-height: 1.591em;
}

.bg_vaaleanpunainen {
    background-color: var(--vaaleanpunainen);
    color: var(--musta);
}

.haemeille_sisalto {
    display: block;
    padding-left: 50%;
    padding-right: 8rem;
    padding-top: 5.864rem;
    padding-bottom: 5.864rem;
}

.haemeille {
    background-image: url(kuvat/home_nosto_kuvio.svg);
    background-position: center left;
    background-repeat: no-repeat;
}

#pagination > *,
.arkisto_navigointi a,
a.nappula {
    display: inline-block;
    background: var(--violetti);
    color: var(--valkoinen);
    position: relative;
    padding: 1.0455em 1.182em;
    line-height: 1em;
    margin-right: 4em;
    transition: 0.25s background;
}


#pagination > * {
	margin-right: 1em;
}

.arkisto_navigointi a::after,
a.nappula::after {
    content: '';
    position: absolute;
    top: 0;
    left: 100%;
    background-color: var(--vaaleanvioletti);
    width: auto;
    height: 100%;
    aspect-ratio: 1 / 1;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="35.175" height="35.175" viewBox="0 0 35.175 35.175"><path id="arrow-pitkä-terävä" d="M15.389,0V26.766L3.078,14.455,0,17.587,17.587,35.175,35.175,17.587,32.1,14.455,19.786,26.766V0Z" transform="translate(0 35.175) rotate(-90)" fill="%23fff"/></svg>');
    background-size: 51%;
    background-position: center;
    background-repeat: no-repeat;
}

p+a.nappula {
    margin-top: 1.5rem;
}

.kuvanosto {
    display: flex;
    background: var(--vihrea);
    color: var(--valkoinen);
    margin: 6.364rem 0;
    align-items: center;
    justify-content: flex-start;
}

.kuvanosto_kuva {
    display: block;
    width: 628px;
    background-size: cover !important;
    background-position: center !important;
}

.kuvanosto_teksti {
    display: block;
    width: calc(100% - 628px);
    padding: 2rem 6.7rem 2rem 6.364rem;
    box-sizing: border-box;
}

.kuvanosto_kuva_kuvasuhde {
    display: block;
    padding-top: 100%;
}

.kuvanosto h2 {
    color: var(--valkoinen);
}

.statistiikka {
    display: flex;
    color: var(--violetti);
    font-weight: 800;
    justify-content: space-between;
    font-size: 3rem;
    margin: 9.182rem 0;
}

span.keski {
    display: inline-block;
    font-size: 2.727rem;
    line-height: 1.250em;
}

span.iso {
    font-size: 6.500rem;
    line-height: 1em;
    display: inline-block;
}

span.pieni {
    font-size: 1.182rem;
    line-height: 1.385em;
    display: inline-block;
}

.bg_kellanruskea {
    background-color: var(--kellanruskea);
}

.nostot {
    display: block;
    padding-top: 5.636rem;
    padding-bottom: 7.182rem;
    text-align: center;
}

.nostot_kehys {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.091rem;
    margin-top: 5.864rem;
}

.yksi_nosto {
    display: block;
    background: var(--valkoinen);
    text-align: left;
    padding: 2.455rem 2rem 2.864rem 2rem;
    font-size: 0.909rem;
}

.toiminnassamukana {
    margin-top: 5.591rem;
    margin-bottom: 7.318rem;
    text-align: center;
}

.toiminnassamukana_logot {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5rem;
    flex-wrap: wrap;
}

.toiminnassamukana_logot > * {
    display: block;
	width: 200px;
	max-width: calc(25% - 3rem);
	height: auto;
    margin: 1.5rem;
	box-sizing: border-box;
}

footer.alapalkki {
    padding-top: 6.182rem;
    padding-bottom: 0;
    background-image: url(kuvat/footer_kuvio.svg);
    background-position: right top 175px;
    background-repeat: no-repeat;
}

.alapalkki_yla {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

a.alapalkki_logo span {
    display: none !important;
}

a.alapalkki_logo img {
    display: block;
    width: 100%;
}

a.alapalkki_logo {
    display: block;
    width: 417px;
}

.hakupalkki form {
    display: flex;
    background: var(--valkoinen);
    width: 100%;
}

.hakupalkki form > * {
    display: block;
    margin: 0;
    border: 0;
}

.hakupalkki {
    display: block;
    width: 481px;
    max-width: 100%;
}

.hakupalkki input[type="submit"] {
    width: 70px;
    height: 70px;
    padding: 0;
    margin: 0;
    background-color: var(--valkoinen);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="31.362" height="31.362" viewBox="0 0 31.362 31.362"><path id="magnifyingglass-terävä" d="M148.922-808.638l-10.977-10.977a10.384,10.384,0,0,1-3.005,1.655,10.621,10.621,0,0,1-3.615.61,10.932,10.932,0,0,1-8.036-3.289A10.932,10.932,0,0,1,120-828.675a10.932,10.932,0,0,1,3.289-8.036A10.932,10.932,0,0,1,131.325-840a10.932,10.932,0,0,1,8.036,3.289,10.932,10.932,0,0,1,3.289,8.036,10.62,10.62,0,0,1-.61,3.615,10.383,10.383,0,0,1-1.655,3.005l10.977,10.976Zm-17.6-12.2a7.561,7.561,0,0,0,5.554-2.287,7.561,7.561,0,0,0,2.287-5.554,7.561,7.561,0,0,0-2.287-5.554,7.561,7.561,0,0,0-5.554-2.287,7.561,7.561,0,0,0-5.554,2.287,7.561,7.561,0,0,0-2.287,5.554,7.561,7.561,0,0,0,2.287,5.554A7.561,7.561,0,0,0,131.325-820.835Z" transform="translate(-120 840)" fill="%235d1e79"/></svg>');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 44%;
    cursor: pointer;
    transition: 0.25s background-color;
}

.hakupalkki input[type="text"] {
    width: calc(100% - 70px);
    box-sizing: border-box;
    padding: 0.25em 1.227em;
    font-size: 1em;
    box-sizing: border-box;
    color: var(--violetti);
}

.alapalkki_ala {
    display: flex;
    margin-top: 6.045rem;
}

.alapalkki_ala_vasen {
    display: flex;
    width: calc(100% - 266px);
    gap: 2rem;
}

.alapalkki_ala_oikea {
    width: 266px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

a.some {
    text-indent: -9999px;
    width: 70px;
    height: 70px;
    background: #fff;
    transition: 0.25s background;
    background-size: 100% !important;
}

a.some.fb {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="70" height="70" viewBox="0 0 70 70"><path id="fb" d="M0,0V70H70V0ZM44.083,36.018H38.21V55.123H29.362V36.018H25.134V28.5h4.228V23.647c0-3.445,1.644-8.926,8.926-8.926h6.5V22H40.011a1.7,1.7,0,0,0-1.879,1.566v4.855h6.655Z" fill="%23fff"/></svg>');
}

a.some.ig {
    background: url('data:image/svg+xml,<svg id="ig" xmlns="http://www.w3.org/2000/svg" width="70" height="70" viewBox="0 0 70 70"><g id="Group_16" data-name="Group 16" transform="translate(17.656 18.027)"><path id="Path_21" data-name="Path 21" d="M95.92,48.091h5.229a2.061,2.061,0,0,0,2.073-2.073V41.073A2.061,2.061,0,0,0,101.148,39H95.92a2.1,2.1,0,0,0-2.12,2.073v4.946a2.165,2.165,0,0,0,2.12,2.073Z" transform="translate(-67.61 -39)" fill="%23fff"/><path id="Path_22" data-name="Path 22" d="M66.05,75.5a9.088,9.088,0,0,0,9.185-8.95h0A9.088,9.088,0,0,0,66.05,57.6a8.95,8.95,0,0,0,0,17.9Z" transform="translate(-48.197 -48.838)" fill="%23fff"/><path id="Path_23" data-name="Path 23" d="M70.326,73.257A14.249,14.249,0,1,1,42.392,69.3H38.2V88.707a1.871,1.871,0,0,0,1.837,1.837H71.974a1.839,1.839,0,0,0,1.837-1.837V69.3H69.76A16.374,16.374,0,0,1,70.326,73.257Z" transform="translate(-38.2 -55.027)" fill="%23fff"/></g><path id="Path_24" data-name="Path 24" d="M59.36,0H0V70H70V0ZM12.6,18.853a5.856,5.856,0,0,1,5.88-5.88H52.5a5.856,5.856,0,0,1,5.88,5.88V52.92A5.856,5.856,0,0,1,52.5,58.8H18.48a5.856,5.856,0,0,1-5.88-5.88V18.853Z" fill="%23fff"/></svg>');
}

a.some.tt {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="70" height="70" viewBox="0 0 70 70"><path id="tiktok" d="M0,0V70H70V0ZM52.869,31.475S46.557,31.23,43.2,28.2v13.77a19.974,19.974,0,0,1-.082,2.213A13.019,13.019,0,1,1,31.885,29.59v7.377a6.24,6.24,0,0,0-1.721-.246A5.738,5.738,0,1,0,35.9,42.459V14.508h7.3c0,.9.328,9.426,9.672,9.836v7.131Z" fill="%23fff"/></svg>');
}

.alapalkki_ala_vasen > * {
    display: block;
    width: 309px;
}

.alapalkki_ala_vasen h3 {
    color: var(--valkoinen) !important;
}

.alapalkki a:hover {
    color: var(--vaaleanpunainen);
}

.footnote {
    display: block;
    background: var(--valkoinen);
    margin-top: 6.818rem;
    color: var(--musta);
    padding: 1.3864rem 0;
}

.footnote a {
    text-decoration: none;
    color: var(--vaaleanvioletti);
}

.footnote > .kehys {
    display: flex;
    justify-content: space-between;
}

.footnote_vasen, .footnote_oikea {
    display: flex;
    gap: 2.227rem;
}

.footnote p {
    margin: 0;
}

.footnote a:hover {
    color: var(--violetti);
}

.alapalkki_ala_vasen > div:last-child a {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="15.249" height="15.249" viewBox="0 0 15.249 15.249"><path id="arrow-pitkä-terävä" d="M166.671-800v11.6l-5.337-5.337L160-792.376l7.624,7.624,7.624-7.624-1.334-1.358-5.337,5.337V-800Z" transform="translate(800 175.249) rotate(-90)" fill="%23a066aa"/></svg>');
    background-size: auto 40% !important;
    background-position: center left !important;
    background-repeat: no-repeat !important;
    padding-left: 20px;
    transition: 0.25s background;
}

.alapalkki_ala_vasen > div:last-child a:hover {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="15.249" height="15.249" viewBox="0 0 15.249 15.249"><path id="arrow-pitkä-terävä" d="M166.671-800v11.6l-5.337-5.337L160-792.376l7.624,7.624,7.624-7.624-1.334-1.358-5.337,5.337V-800Z" transform="translate(800 175.249) rotate(-90)" fill="%23fad1e3"/></svg>');
}

.alapalkki_ala_vasen p {
    margin: 1.6em 0;
}

.kuvanosto.bg_vaaleanpunainen {
    background: var(--vaaleanpunainen);
    color: var(--musta);
}

.bg_vaaleanpunainen h2 {
    color: var(--pinkki);
}

.bg_vaaleanpunainen a.nappula {
    background: var(--pinkki);
}

.bg_vaaleanpunainen a.nappula:hover {
    background-color: var(--vaaleanpinkki);    
}

.bg_vaaleanpunainen a.nappula::after {
    background-color: var(--vaaleanpinkki);
}

.kuvanosto.bg_vaaleanvioletti {
    background: var(--vaaleanvioletti);
}

.kuvanosto.bg_vaaleanvioletti a:hover,
.kuvanosto.bg_vaaleanvioletti a.nappula::after {
    background-color: #b883c1;
}

.kuvanosto.bg_oranssi {
    background: var(--oranssi);
}

.kuvanosto.bg_oranssi a.nappula {
    background-color: var(--tummanoranssi);
}

.kuvanosto.bg_oranssi a.nappula:hover,
.kuvanosto.bg_oranssi a.nappula::after {
    background-color: var(--vaaleanoranssi);
}

.bg_vihrea {
    background: var(--vihrea);
}

.bg_vihrea h2 {
    color: var(--valkoinen);
}

.bg_vihrea .yksi_nosto h3 {
    color: var(--vihrea);
    transition: 0.25s color;
}

.bg_vihrea .yksi_nosto a:hover h3 {
    color: var(--tummanvihrea);
}

.nosto_taxonomy {
    display: inline-block;
    text-transform: uppercase;
    background: var(--vihrea);
    color: var(--valkoinen);
    font-weight: 800;
    padding: 0.42em 0.72rem;
    margin: 0 0.5rem 0.5rem 0;
}

.nosto_paivays {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 1.3rem 0 1.5rem 0;
}

.nostot_luelisaa {
    display: block;
    margin-top: 5.727rem;
}

.bg_vihrea a.nappula {
    background: var(--tummanvihrea);
}

.bg_vihrea a.nappula:hover,
.bg_vihrea a.nappula::after {
    background-color: var(--vaaleanvihrea);
}

.alahero {
    display: flex;
    justify-content: center;
	background: var(--violetti);
    color: var(--valkoinen);
}

.alahero > * {
    display: block;
    width: 50%;
}

.kehys.puolikas_kehys {
    width: 960px;
    padding-right: 6.364rem;
    box-sizing: border-box;
    padding-left: 6.364rem;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

@media screen and (min-width: 1701px) {
	.alahero .kehys.puolikas_kehys {
		padding-right: 2rem;
	}
	
	html[lang="en-GB"] nav.paavalikko li a {
		font-size: 0.9em;
	}
}

.puolikas.alahero_otsikko {
    display: flex;
    justify-content: flex-end;
    min-height: 438px;
    align-items: center;
}

.kehys.puolikas_kehys h1 {
    line-height: 1.2em;
    margin: 1em 0;
    hyphens: initial;
}

.puolikas.kuva {
    display: block;
    background: url(kuvat/hae.jpg);
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.paasisalto {
    display: block;
    padding: 6.182rem 0;
    position: relative;
}

.paasisalto::before {
    content: '';
    position: absolute;
    top: -135px;
    right: 0;
    width: 621px;
    height: 438px;
    background: url(kuvat/hero_kuvio_vihrea.svg);
    background-size: contain !important;
    background-position: top right !important;
    background-repeat: no-repeat !important;
}

.paasisalto.yksi_artikkeli::before {
    top: 82px;
	background: url(kuvat/hero_kuvio_lukio.svg);
}

.paasisalto_rajoittaja {
    display: block;
    width: 1092px;
    max-width: 100%;
    position: relative;
}

.paasisalto_rajoittaja h2 {
    margin-top: 5rem;
}

p + p > .nappula:first-child,
.paasisalto_rajoittaja p + p > .nappula:first-child {
    margin-top: 1.5em;
}

.paasisalto_rajoittaja .nappula {
    margin-bottom: 1em;
}

.nostot_kehys.nostot_kolme {
    margin-top: 1rem;
    gap: 3.318rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nosto_kuva, .nosto_kuva img {
    display: block;
}

.yksi_nosto_kuva {
    background: var(--valkoinen);
}

.nosto_kuva_data {
    display: block;
    text-align: left;
    padding: 2.364rem 2.727rem 2.727rem 2.727rem;
}

.nostot .nosto_kuva_data h3 {
    margin-bottom: 2.5rem;
}

.nosto_kuva_wrapper {
    width: 100%;
    padding-top: 55.625%;
    position: relative;
}

.nosto_kuva_wrapper > img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.paasisalto_rajoittaja.yhteystiedot_rajoittaja {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

.yhteystiedot_kokolevea {
    display: block;
    width: 100%;
    margin-bottom: 7rem;
}

.yhteystiedot_kartta {
    display: block;
    width: 100%;
    height: 515px;
    margin-top: 5rem;
}

.yhteystiedot_sarake_1,
.yhteystiedot_sarake_2,
.yhteystiedot_sarake_3 {
    display: block;
    box-sizing: border-box;
    margin-bottom: 7rem;
}

.yhteystiedot_sarake_1 > *:first-child,
.yhteystiedot_sarake_2 > *:first-child,
.yhteystiedot_sarake_3 > *:first-child {
    margin-top: 0;
}

.yhteystiedot_sarake_1 {
    width: 36%;
    padding-right: 5rem;
}

.yhteystiedot_sarake_2 {
    width: 38%;
    padding-right: 5rem;
}

.yhteystiedot_sarake_3 {
    width: 26%;
}

.yhteystiedot_kokolevea > h2:first-child {
    margin-top: 0;
}

.paasisalto_rajoittaja a:not(.nappula) {
    color: var(--vaaleanvioletti);
}

.paasisalto_rajoittaja a:hover:not(.nappula) {
    color: var(--violetti);
}

.alahero h1 {
    font-size: 3.636rem;
}

.paasisalto_rajoittaja .arkisto_taxonomies > *, .paasisalto_rajoittaja .arkisto_taxonomies > a {
    display: inline-block;
    text-transform: uppercase;
    font-weight: 800;
    padding: 0.775em 0.64em 0.6em 0.64em;
    line-height: 1em;
    background: var(--vaaleanvioletti);
    color: var(--valkoinen);
    margin: 0 0.5rem 0.5rem 0;
    transition: 0.25s background, 0.25s color;
}

.paasisalto_rajoittaja .arkisto_taxonomies > a:hover, .paasisalto_rajoittaja .arkisto_taxonomies > a.aktiivinen {
    background: var(--violetti);
    color: var(--valkoinen);
}

.arkisto_taxonomies {
    display: block;
    margin-bottom: 5.364rem;
}

.yksi_arkisto_kohde h2 {
    font-size: 1.364rem;
    margin: 0 0 1.5rem 0;
}

.yksi_arkisto_kohde {
    display: block;
    font-size: 0.909rem;
    margin-bottom: 5rem;
}

.arkisto_kohde_date_taxonomy {
    display: block;
    color: var(--violetti);
    margin-bottom: 1rem;
}

.paasisalto_rajoittaja .arkisto_kohde_date_taxonomy > a {
    display: inline-block;
    margin-left: 0.4rem;
    text-transform: uppercase;
    color: var(--violetti);
    font-weight: 800;
}

.paasisalto_rajoittaja .arkisto_kohde_date_taxonomy > a:hover {
    color: var(--vaaleanvioletti);
}

.paasisalto_rajoittaja .yksi_arkisto_kohde h2 > a {
    color: var(--violetti);
}

.paasisalto_rajoittaja .yksi_arkisto_kohde h2 > a:hover {
    color: var(--vaaleanvioletti);
}

.arkisto_otsikko {
    font-size: 2.727rem;
    margin-top: 0;
    margin-bottom: 3rem;
}

.arkisto_paivays {
    display: block;
    color: var(--violetti);
    font-size: 1.364rem;
    line-height: 1em;
    margin-bottom: 3rem;
}

.yksi_artikkeli h2 {
    font-size: 1.364rem;
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.palaa.nappula {
    margin-right: 0;
    margin-top: 6rem;
}

.artikkelikuva {
	display: block;
	width: 100%;
	height: auto;
	margin: 5rem 0 6rem 0;
}

.yksi_arkisto_kohde .artikkelikuva {
	margin: 2rem 0;
}

.arkisto_navigointi a {
	color: var(--valkoinen) !important;
}

/* ESIOPETUS START */
.esiopetus header.ylavalikko {
    background-image: linear-gradient(90deg, #E693C8 50%, var(--valkoinen) 50%);
}

.esiopetus .alahero {
    background: var(--vaaleanpunainen);
}

.esiopetus .alahero h1 {
    color: var(--pinkki);
}

.esiopetus h1,
.esiopetus h2,
.esiopetus h3,
.esiopetus h4,
.esiopetus h5,
.esiopetus h6 {
    color: var(--pinkki);
}

.esiopetus nav.paavalikko > ul:first-child > li > a {
    background-color: #E693C8;
}

.esiopetus .bg_kellanruskea {
    background-color: var(--vaaleanpunainen);
}

.esiopetus a.nappula {
    background: var(--pinkki);
}

.esiopetus a.nappula::after {
    background-color: #e693c8;
}

.esiopetus .paasisalto::before {
	background: url(kuvat/hero_kuvio_esiopetus.svg);
}

.paasisalto_rajoittaja > *:first-child {
	margin-top: 0;
	padding-top: 0;
}

.pienempi {
	display: block;
	font-size: 0.7em;
}

@media screen and (min-width: 1201px) {
	.esiopetus nav.paavalikko ul.kielivalikko {
		background-color: var(--valkoinen);	
	}
	
	.esiopetus nav.paavalikko .kielivalikko li a:hover {
		color: #E8A1CE;
	}
	
	.esiopetus nav.paavalikko > ul:first-child > li:hover > a,
	.esiopetus nav.paavalikko .sub-menu li:hover a {
		background-color: #D851AF;
	}
	
	.esiopetus nav.paavalikko ul.sub-menu,
	.esiopetus nav.paavalikko .sub-menu li a {
		background-color: #E693C8;
	}
	
	.esiopetus nav.paavalikko .wilma li a:hover {
		background-color: #D851AF;
		color: var(--valkoinen);
	}

	.esiopetus .nappula:hover {
		background: #e693c8;
	}
	
		
	html[lang="ru-RU"] nav.paavalikko ul {
		font-size: 0.79em;
	}
}

@media screen and (max-width: 1200px) {
  	.esiopetus header.ylavalikko {
    	background: #E693C8;
  	}
	
	.esiopetus nav.paavalikko .wilma li a,
	.esiopetus nav.paavalikko ul.kielivalikko,
	.esiopetus nav.paavalikko .sub-menu li a {
		background: #E693C8;
	  }
}
/* ESIOPETUS END */


/* PERUSOPETUS START */
.perusopetus header.ylavalikko {
    background-image: linear-gradient(90deg, var(--violetti) 50%, var(--valkoinen) 50%);
}

.perusopetus .alahero {
    background: var(--vaaleanvioletti);
}

.perusopetus .alahero h1 {
    color: var(--valkoinen);
}

.perusopetus h1,
.perusopetus h2,
.perusopetus h3,
.perusopetus h4,
.perusopetus h5,
.perusopetus h6 {
    color: var(--vaaleanvioletti);
}

.perusopetus nav.paavalikko > ul:first-child > li > a {
    background-color: var(--violetti);
}

.perusopetus .bg_kellanruskea {
    background-color: #EDDBF0;
}

.perusopetus a.nappula {
    background: var(--vaaleanvioletti);
}

.perusopetus a.nappula::after {
    background-color: #c89bcf;
}

.perusopetus .paasisalto::before {
	background: url(kuvat/hero_kuvio_perusopetus.svg);
}

.perusopetus nav.paavalikko .wilma li a {
	background-color: #EDDBF0;
}

.paasisalto_rajoittaja h3 {
	margin-top: 4rem;
	margin-bottom: 2rem;
}

.paasisalto_rajoittaja h4 {
	margin-top: 4rem;
	margin-bottom: 2rem;
}

.perusopetus nav.paavalikko > ul ul.sub-menu,
.perusopetus nav.paavalikko .sub-menu li a {
	background: var(--violetti);
}

.perusopetus nav.paavalikko .kielivalikko li a:hover {
	color: #A066AA;
}

.perusopetus nav.paavalikko ul.kielivalikko {
	background: var(--valkoinen);
}

@media screen and (min-width: 1201px) {
	.perusopetus nav.paavalikko > ul:first-child > li:hover > a,
	.perusopetus nav.paavalikko .sub-menu li:hover a {
		background-color: #B883C1;
	}

	.perusopetus .nappula:hover {
		background: #c89bcf;
	}
	
	.perusopetus nav.paavalikko .wilma li a:hover {
		background: #B883C1;
		color: var(--valkoinen);
	}
}

@media screen and (max-width: 1200px) {
  	.perusopetus header.ylavalikko {
    	background: var(--violetti);
  	}
	
	.perusopetus nav.paavalikko .wilma li a,
	.perusopetus nav.paavalikko ul.kielivalikko,
	.perusopetus nav.paavalikko .sub-menu li a {
		background: var(--violetti);
	  }
}
/* PERUSOPETUS END */


/* LUKIO START */
.lukio header.ylavalikko {
    background-image: linear-gradient(90deg, var(--tummanoranssi) 50%, var(--valkoinen) 50%);
}

.lukio .alahero {
    background: var(--oranssi);
}

.lukio .alahero h1 {
    color: var(--valkoinen);
}

.lukio h1,
.lukio h2,
.lukio h3,
.lukio h4,
.lukio h5,
.lukio h6 {
    color: var(--oranssi);
}

.lukio nav.paavalikko > ul:first-child > li > a {
    background-color: var(--tummanoranssi);
}

.lukio .bg_kellanruskea {
    background-color: #FCE3D4;
}

.lukio a.nappula {
    background: var(--oranssi);
}

.lukio a.nappula::after {
    background-color: var(--vaaleanoranssi);
}

.lukio .paasisalto::before {
	background: url(kuvat/hero_kuvio_lukio.svg);
}

.lukio nav.paavalikko .wilma li a {
	background-color: #FCE3D4;
	color: var(--oranssi);
}

.lukio nav.paavalikko > ul ul.sub-menu,
.lukio nav.paavalikko .sub-menu li a {
	background: var(--tummanoranssi);
}

.lukio nav.paavalikko ul.kielivalikko {
	background: var(--valkoinen);
}

.alavalikko {
	padding: 0;
	margin: 0;
	list-style: none;
}

#pagination > .current {
  	background: #3a114d;
}

a.sahkopostiosoite > i {
    display: none !important;
}

.statistiikka_yksi {
	box-sizing: border-box;
	padding-right: 2rem;
}

@media screen and (min-width: 1201px) {
	.lukio nav.paavalikko > ul:first-child > li:hover > a,
	.lukio nav.paavalikko .sub-menu li:hover a {
		background-color: #FCA067;
	}

	.lukio .nappula:hover {
		background: var(--vaaleanoranssi);
	}
	
	.lukio nav.paavalikko .kielivalikko li,
	.lukio ul.kielivalikko {
		border-color: #D45000;
		color: #D45000;
	}

	.lukio nav.paavalikko .kielivalikko li a:hover {
		color: #FCA067;
	}
	
	.lukio nav.paavalikko .wilma li a:hover {
		background-color: #FCA067;
		color: var(--valkoinen);
	}
}

@media screen and (max-width: 1200px) {
  	.lukio header.ylavalikko {
    	background: var(--tummanoranssi);
  	}
	
	.lukio nav.paavalikko .wilma li a,
	.lukio nav.paavalikko ul.kielivalikko,
	.lukio nav.paavalikko .sub-menu li a {
		background: var(--tummanoranssi);
	}
	
	.lukio nav.paavalikko .wilma li a{
		color: var(--valkoinen);
	}
}
/* LUKIO END */

@media screen and (max-width: 1900px) {
    .paasisalto::before {
        width: calc(100vw - 1092px - 8.364rem);
        height: 0;
        padding-top: 22%;
        top: -100px;
    }
}

@media screen and (max-width: 1800px) {
    .nosto_kuva_data {
        padding: 2rem;
    }
    
    .nostot_kehys.nostot_kolme {
        gap: 1.5rem;
    }
}

@media screen and (max-width: 1700px) {
    .alahero h1 {
        font-size: 3rem;
    }

    .puolikas.kuva {
        width: 45%;
    }
    
    .puolikas.alahero_otsikko {
        width: 55%;
    }

    .paasisalto::before {
        width: 500px;
        height: 0;
        padding-top: 22%;
        top: -150px;
    }

    .arkisto_paivays, .arkisto_otsikko {
        padding-right: 160px;
    }
}

@media screen and (max-width: 1500px) {
    .puolikas.kuva {
        width: 35%;
    }

    .puolikas.alahero_otsikko {
        width: 65%;
    }

    .paasisalto::before {
        width: 400px;
        height: 0;
        padding-top: 22%;
        top: -175px;
    }

    .nostot_kehys.nostot_kolme {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .paasisalto_rajoittaja.yhteystiedot_rajoittaja {
        gap: 3rem;
    }

    .yhteystiedot_sarake_1,
    .yhteystiedot_sarake_2,
    .yhteystiedot_sarake_3 {
        width: calc(100% / 3 - 2rem);
        padding-right: 0;
    }

    .arkisto_paivays, .arkisto_otsikko {
        padding-right: 260px;
    }
}

@media screen and (max-width: 1300px) {
    .paasisalto_rajoittaja.yhteystiedot_rajoittaja {
        display: block;
        gap: 0;
    }

    .yhteystiedot_kokolevea {
        margin-bottom: 3rem;
    }

    .yhteystiedot_sarake_1,
    .yhteystiedot_sarake_2,
    .yhteystiedot_sarake_3 {
        width: 100%;
        padding-right: 0;
        margin-bottom: 3rem;
    }

    .yhteystiedot_sarake_3 {
        margin-bottom: 6rem;
    }

    .yhteystiedot_kartta {
        margin-top: 3rem;
    }

    .tyhjaotsikko {
        display: none !important;
    }

    .mobile_no_margin_bottom {
        margin-bottom: 0 !important;
    }

    .paasisalto.yksi_artikkeli::before {
        top: 10px;
    }

    .arkisto_paivays {
        margin-top: 3rem;
        margin-bottom: 5rem;
        padding-right: 50%;
    }

    .arkisto_otsikko {
        padding-right: 0;
    }
}

@media screen and (max-width: 1000px) {
    .yksi_nosto_kuva {
        margin-bottom: 1.5rem;
    }

    .alahero {
        flex-direction: column;
    }

    .puolikas.kuva {
        width: 100%;
        height: 300px;
    }

    .puolikas.alahero_otsikko {
        width: 100%;
        min-height: unset;
        padding: 2rem;
        box-sizing: border-box;
    }

    .paasisalto::before {
        top: 1.5rem;
        width: 100%;
        height: 20vh;
        padding-top: 0;
    }

    .alahero+.paasisalto::before {
		top: -165px;
		height: 150px;
    }

    .paasisalto {
        padding-top: calc(20vh + 5rem);
    }

    .alahero+.paasisalto {
        padding-top: 3rem;
    }

    .kehys.puolikas_kehys {
        padding-left: 0;
        padding-right: 0;
    }

    .yhteystiedot_kartta {
        height: 50vh;
    }

    .arkisto_paivays {
        margin-top: 0rem;
        margin-bottom: 2rem;
        padding-right: 0;
    }
}

@media screen and (min-width: 2000px) {
	.bg_violetti.hero {
		background-size: auto 100%;
		background-position: right -200px bottom -100px;
	}

    .haemeille {
        background-size: auto 100%;
        background-position: bottom -60px left;
    }

    .paasisalto::before {
        width: 31vw;
        height: 0;
        padding-top: 26%;
        top: -175px;
    }

    .paasisalto.yksi_artikkeli::before {
        width: 31vw;
        height: 0;
        padding-top: 26%;
        top: 82px;
    }
}

@media screen and (min-width: 3000px) {
	.bg_violetti.hero {
		background-size: auto 80%;
		background-position: right 0px bottom -20px;
	}

    footer.alapalkki {
        background-size: auto 75%;
        background-position: right bottom 0;
    }
}

@media screen and (max-width: 1800px) {
    nav.paavalikko {
        font-size: 0.9em;
    }
	
	html[lang="en-GB"] nav.paavalikko {
		font-size: 0.8em;
	}

    footer.alapalkki {
        background-position: right top 50px;
        background-repeat: no-repeat;
        background-size: 35% auto;
    }
}

@media screen and (max-width: 1700px) {
    body {
        font-size: 20px;
    }
	
	html[lang="ru-RU"] body {
		font-size: 18px;
	}

    .kuvanosto_teksti {
        padding: 2rem 4rem;
    }

    .nostot_kehys {
        gap: 2rem;
    }

    nav.paavalikko li a,
    nav.paavalikko .wilma li a {
        padding: 2.5em 1em;
    }
}

@media screen and (max-width: 1600px) {
    nav.paavalikko {
        font-size: 0.8em;
    }

    .kuvanosto_kuva {
        width: 40%;
    }

    .bg_violetti.hero {
        background-size: 40% auto;
    }

    .haemeille {
        background-size: 35% auto;
    }

    .kuvanosto_teksti {
        width: 60%;
        padding: 2rem 3rem;
    }

    .tekstijakuva.kehys > .tekstijakuva_kuva {
        width: 40%;
    }
    
    .tekstijakuva.kehys > .tekstijakuva_teksti {
        width: 60%;
        padding: 4rem;
    }

    .statistiikka {
        flex-wrap: wrap;
        gap: 2rem;
    }
    
    .statistiikka_yksi {
        width: calc(50% - 1rem);
    }

    nav.paavalikko li a,
    nav.paavalikko .wilma li a {
        padding: 3em 1em;
    }

    .kehys {
        padding-left: 4rem;
        padding-right: 4rem;
    }

    .alahero .kehys.puolikas_kehys {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

@media screen and (max-width: 1500px) {
    .kuvanosto_kuva_kuvasuhde {
        padding-top: 150%;
    }
	
	html[lang="en-GB"] nav.paavalikko {
		font-size: 0.75em;
	}
}

@media screen and (max-width: 1400px) {
    .alapalkki_ala {
        display: block;
    }
    
    .alapalkki_ala_vasen {
        width: 100%;
    }
    
    .alapalkki_ala_vasen > * {
        width: calc(100% / 3);
    }
    
    .alapalkki_ala_oikea {
        width: 100%;
        justify-content: center;
        gap: 2rem;
        margin-top: 6rem;
    }

    nav.paavalikko {
        font-size: 0.9em;
    }

    .alahero .kehys.puolikas_kehys,
    .kehys {
        padding-left: 3rem;
        padding-right: 3rem;
    }
    
    .tekstijakuva.kehys > .tekstijakuva_teksti {
        padding: 4rem 3rem;
    }

    .yksi_nosto {
        padding: 1.5rem;
    }
    
    a.paalogo {
        width: 200px;
        margin: 0.5rem auto;
    }
    
    header.ylavalikko {
        background: var(--vaaleanvioletti);
        padding-top: 0;
    }
    
    nav.paavalikko {
        width: calc(100% - 200px);
        /* padding: 0; */
        justify-content: flex-end;
        font-size: 0.7em;
    }

    nav.paavalikko li a, nav.paavalikko .wilma li a {
        padding: 4.25em 1em;
    }
	
	html[lang="en-GB"] nav.paavalikko {
		font-size: 0.7em;
	}
	
	html[lang="ru-RU"] nav.paavalikko ul {
    	font-size: 0.89em;
  	}
}

@media screen and (max-width: 1300px) {
	html[lang="en-GB"] nav.paavalikko {
		font-size: 0.65em;
	}
	
	nav.paavalikko li a, nav.paavalikko .wilma li a {
    	padding: 4.25em 0.7em;
  	}
	
	html[lang="ru-RU"] nav.paavalikko ul {
    	font-size: 0.83em;
  	}
}

@media screen and (min-width: 1201px) {
    .mobile_nav_toggle {
        display: none !important;
    }

    nav.paavalikko {
        display: flex !important;
    }

    nav.paavalikko li:hover ul.sub-menu {
        transform: scaleY(1.0);
    }

    nav.paavalikko li:hover > a {
        background-color: var(--vihrea);
    }
    
    nav.paavalikko .wilma li a:hover {
        background-color: var(--vaaleanpinkki);
        color: var(--valkoinen);
    }
    
    nav.paavalikko .kielivalikko li a:hover {
        background: none;
        color: var(--vihrea);
    }

    nav.paavalikko .sub-menu li:hover a {
        background: var(--vaaleanvioletti);
    }

	#pagination a:hover,
	.arkisto_navigointi a:hover,
    a.nappula:hover {
        background: var(--vaaleanvioletti);
    }
        
    a.some.fb:hover {
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="70" height="70" viewBox="0 0 70 70"><g id="Group_23" data-name="Group 23" transform="translate(-1513.336 -8035.386)"><rect id="Rectangle_97" data-name="Rectangle 97" width="43" height="56" transform="translate(1527 8043)" fill="%23fff"/><path id="fb" d="M0,0V70H70V0ZM44.083,36.018H38.21V55.123H29.362V36.018H25.134V28.5h4.228V23.647c0-3.445,1.644-8.926,8.926-8.926h6.5V22H40.011a1.7,1.7,0,0,0-1.879,1.566v4.855h6.655Z" transform="translate(1513.336 8035.386)" fill="%23a066aa"/></g></svg>')
    }

    a.some.ig:hover {
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="70" height="70" viewBox="0 0 70 70"><g id="Group_24" data-name="Group 24" transform="translate(-1611.339 -8035.386)"><rect id="Rectangle_98" data-name="Rectangle 98" width="51" height="56" transform="translate(1621 8043)" fill="%23fff"/><g id="ig" transform="translate(1611.339 8035.386)"><g id="Group_16" data-name="Group 16" transform="translate(17.656 18.027)"><path id="Path_21" data-name="Path 21" d="M95.92,48.091h5.229a2.061,2.061,0,0,0,2.073-2.073V41.073A2.061,2.061,0,0,0,101.148,39H95.92a2.1,2.1,0,0,0-2.12,2.073v4.946a2.165,2.165,0,0,0,2.12,2.073Z" transform="translate(-67.61 -39)" fill="%23a066aa"/><path id="Path_22" data-name="Path 22" d="M66.05,75.5a9.088,9.088,0,0,0,9.185-8.95h0A9.088,9.088,0,0,0,66.05,57.6a8.95,8.95,0,0,0,0,17.9Z" transform="translate(-48.197 -48.838)" fill="%23a066aa"/><path id="Path_23" data-name="Path 23" d="M70.326,73.257A14.249,14.249,0,1,1,42.392,69.3H38.2V88.707a1.871,1.871,0,0,0,1.837,1.837H71.974a1.839,1.839,0,0,0,1.837-1.837V69.3H69.76A16.374,16.374,0,0,1,70.326,73.257Z" transform="translate(-38.2 -55.027)" fill="%23a066aa"/></g><path id="Path_24" data-name="Path 24" d="M59.36,0H0V70H70V0ZM12.6,18.853a5.856,5.856,0,0,1,5.88-5.88H52.5a5.856,5.856,0,0,1,5.88,5.88V52.92A5.856,5.856,0,0,1,52.5,58.8H18.48a5.856,5.856,0,0,1-5.88-5.88V18.853Z" fill="%23a066aa"/></g></g></svg>')
    }

    a.some.tt:hover {
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="70" height="70" viewBox="0 0 70 70"><g id="Group_25" data-name="Group 25" transform="translate(-1709.343 -8035.386)"><rect id="Rectangle_99" data-name="Rectangle 99" width="51" height="56" transform="translate(1719 8043)" fill="%23fff"/><path id="tiktok" d="M0,0V70H70V0ZM52.869,31.475S46.557,31.23,43.2,28.2v13.77a19.974,19.974,0,0,1-.082,2.213A13.019,13.019,0,1,1,31.885,29.59v7.377a6.24,6.24,0,0,0-1.721-.246A5.738,5.738,0,1,0,35.9,42.459V14.508h7.3c0,.9.328,9.426,9.672,9.836v7.131Z" transform="translate(1709.343 8035.386)" fill="%23a066aa"/></g></svg>')
    }

    .hakupalkki input[type="submit"]:hover {
        background-color: var(--vaaleanpunainen);
    } 
}

@media screen and (max-width: 1200px) {
    html, body {
        font-size: 18px;
    }
    
	html[lang="ru-RU"],
	html[lang="ru-RU"] body {
		font-size: 18px;
	}
	
	html[lang="ru-RU"] nav.paavalikko,
	html[lang="en-GB"] nav.paavalikko,
    nav.paavalikko {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        max-width: 100%;
        font-size: 1em;
        padding: 0;
    }
    
    nav.paavalikko ul,
	html[lang="ru-RU"] nav.paavalikko ul,
	html[lang="en-GB"] > nav.paavalikko ul {
		display: block;
		font-size: 1em;
    }
    
	html[lang="en-GB"] nav.paavalikko ul.kielivalikko,
	html[lang="ru-RU"] nav.paavalikko ul.kielivalikko,
    nav.paavalikko ul.kielivalikko {
        display: flex;
        justify-content: flex-start;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    nav.paavalikko .kielivalikko li:first-child a {
        padding-left: 0;
    }

    p+a.nappula {
        margin-top: 0.75rem;
    }
    
    header.ylavalikko {
        padding: 1rem 2rem;
    }
    
    nav.paavalikko li a, nav.paavalikko .wilma li a, nav.paavalikko > ul:first-child > li:last-child > a {
        padding: 1em 2em;
    }
    
    nav.paavalikko ul.sub-menu,
	html[lang="ru-RU"] nav.paavalikko ul.sub-menu,
	html[lang="en-GB"] > nav.paavalikko ul.sub-menu {
        display: none;
        position: relative;
        transform: initial;
    }
    
    .paavalikko > ul > li.menu-item-has-children > a {
        padding-right: calc(2em + 26px);
        background-position: center right 2em;
    }
    
    .ylavalikko .kehys {
        display: flex;
        justify-content: space-between;
        padding-left: 0;
    }
    
    .mobile_nav_toggle {
        display: block;
        width: 49px;
        box-sizing: border-box;
        cursor: pointer;
        padding: 5px 10px;
    }
    
    .viiva1, .viiva2, .viiva3 {
        width: 29px;
        height: 5px;
        background-color: var(--valkoinen);
        margin: 6px 0;
        transition: 0.4s;
    }
    
    .avattu .viiva1 {
        -webkit-transform: rotate(-45deg) translate(-9px, 6px);
        transform: rotate(-45deg) translate(-8px, 7px);
    }
    
    .avattu .viiva2 {
        opacity: 0;
    }
    
    .avattu .viiva3 {
        -webkit-transfom: rotate(45deg) translate(-8px, -8px);
        transform: rotate(45deg) translate(-8px, -8px);
    }
    
    a.paalogo {
        margin: 0;
    }

    .haemeille_sisalto {
        padding-right: 0;
    }

    a.alapalkki_logo {
        width: 40%;
    }

    .hakupalkki {
        width: calc(60% - 5rem);
    }

    nav.paavalikko .wilma li a,
    nav.paavalikko ul.kielivalikko {
        background: var(--vaaleanvioletti);
        color: var(--valkoinen);
        padding-left: 2rem;
        padding-right: 2rem;
    }

    nav.paavalikko .kielivalikko li {
        border-color: var(--valkoinen);
    }

    nav.paavalikko .sub-menu li a {
        padding-left: 3rem;
        background: var(--vaaleanvioletti);
    }

    .alahero h1,
    .arkisto_otsikko {
        font-size: 2.3rem;
    }
	
	h2 {
		font-size: 1.8rem;
	}
	
	.toiminnassamukana_logot > * {
		width: calc((100% / 3) - 3rem);
		max-width: calc((100% / 3) - 3rem);
		margin: 1.5rem;
	}
}

@media screen and (min-width: 601px) and (max-width: 1000px) and (max-height: 1000px) {
    .bg_violetti.hero {
        background-position: bottom 20px right -100px !important;
        background-size: 90% auto !important;
    }
}

@media screen and (max-width: 1000px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .kehys,
    .tekstijakuva.kehys > .tekstijakuva_teksti {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .kuvanosto_teksti {
        padding: 2rem;
    }
    
    .hero .kehys {
        height: calc(100vh - 115px);
        max-height: 1000px;
        /*text-align: center;*/
        width: 100%;
        display: block;
        padding-top: 10vw;
    }
    
    .bg_violetti.hero {
        background-position: bottom 25px right -100px;
        background-size: 100% auto;
    }
    
    .tekstijakuva.kehys {
        display: flex;
        flex-direction: column;
    }
    
    .tekstijakuva.kehys > .tekstijakuva_teksti {
        width: 100%;
        order: 0;
    }
    
    .tekstijakuva.kehys > .tekstijakuva_kuva {
        width: 100%;
        order: 1;
    }
    
    .tekstijakuva_kuva_kuvasuhde {
        padding-top: 75%;
    }
    
    .kuvanosto {
        flex-direction: column;
        margin: 3rem 0;
    }
    
    .kuvanosto_kuva {
        width: 100%;
        order: 0;
    }
    
    .kuvanosto_kuva_kuvasuhde {
        padding-top: 50%;
    }
    
    .kuvanosto_teksti {
        order: 1;
        width: 100%;
    }
    
    .statistiikka {
        display: block;
        margin: 5rem 0;
    }
    
    .statistiikka_yksi {
        width: 100%;
        text-align: center;
        margin: 2rem 0;
		padding-right: 0;
    }

    .statistiikka_yksi:first-child {
        margin-bottom: 4rem;
    }
    
    .nostot {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    .nostot_kehys {
        display: block;
        margin-top: 3rem;
    }
    
    .yksi_nosto {
        margin: 1rem 0;
    }
    
    .alapalkki_yla {
        display: block;
    }
    
    footer.alapalkki {
        background-size: 60% auto;
        background-position: right top 20px;
    }
    
    a.alapalkki_logo {
        width: 300px;
        max-width: 70%;
        margin: 40vw auto 2rem auto;
    }
    
    .hakupalkki {
        width: 80%;
        margin-top: 4rem;
        margin-left: auto;
        margin-right: auto;
    }
    
    .alapalkki_ala_vasen {
        display: block;
    }
    
    .alapalkki_ala_vasen > * {
        width: 100%;
        text-align: center;
        margin: 3rem 0;
    }
    
    .footnote > .kehys {
        display: block;
    }
    
    .footnote_vasen, .footnote_oikea {
        display: block;
        text-align: center;
    }
    
    .footnote_vasen div,
    .footnote_oikea div {
        margin: 1rem 0;
    }
    
    .haemeille {
        background-size: auto 150px;
        background-position:left top 25px;
    }


    .bg_kellanruskea.haemeille {
        position: relative;
        background-image: none;
    }

    .bg_kellanruskea.haemeille::before {
        content: '';
        display: block;
        position: absolute;
        top: -140px;
        left: 0px;
        width: 221px;
        height: 195px;
        background: url(kuvat/home_nosto_kuvio.svg);
        background-position: center left;
        background-repeat: no-repeat;
        background-size: 100% auto;
        background-position: left top 25px;
    }
    
    .haemeille_sisalto {
        padding: 100px 0 2rem 0;
    }
    
    .statistiikka {
        font-size: 2.5rem;
    }
    
    span.keski {
        font-size: 3rem;
    }
    
    span.iso {
        font-size: 3.5rem;
    }

    .hakupalkki input[type="text"] {
        width: calc(100% - 50px);
    }

    .hakupalkki input[type="submit"] {
        width: 50px;
        height: 50px;
    }

    .alapalkki_ala_vasen > div:last-child a {
        padding-left: 17px;
    }

    .hero .kehys {
        padding-top: 0;
        padding-bottom: 32vh;
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }

    .hero .kehys h1 {
        margin-bottom: 0;
    }

    .nostot_luelisaa {
        margin-top: 4rem;
    }

    .alahero .kehys.puolikas_kehys {
        padding-left: 0;
        padding-right: 0;
    }
}

@media screen and (max-width: 800px) {
	.toiminnassamukana_logot > * {
		width: calc(50% - 3rem);
		max-width: calc(50% - 3rem);
		margin: 1.5rem;
	}
}

@media screen and (max-width: 600px) {
    a.paalogo {
        max-width: 50%;
    }

    a.alapalkki_logo {
        margin: 35vw auto 2rem auto;
    }

    a.some {
        width: 50px;
        height: 50px;
    }

    .bg_violetti.hero {
        background-position: bottom 20px right -100px;
        background-size: 110% auto;
    }
}

@media screen and (max-width: 500px) {
	.toiminnassamukana_logot > * {
		width: calc(50% - 1.5rem);
		max-width: calc(50% - 1.5rem);
		margin: 0.75rem;
	}
	
	
	h1 {
		font-size: 2rem;
	}
	
	.alahero h1,
    .arkisto_otsikko {
        font-size: 1.8rem;
    }
	
	h2 {
		font-size: 1.5rem;
	}
}

@media screen and (max-width: 400px) {
    html, body {
        font-size: 14px;
    }
	
	html[lang="ru-RU"] body {
		font-size: 13px;
	}

    a.some {
        width: 35px;
        height: 35px;
    }

    nav.paavalikko li a,
    nav.paavalikko .sub-menu li a {
        white-space: initial;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    a.alapalkki_logo {
        margin: 35vw auto 2rem auto;
    }
}