/*
Theme Name: Hiilivapaa Suomi 2023
Author: La&La
Author URI: http://lala.fi
Description: Hiilivapaa Suomen wp-teema
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hvs
Tags:

Hiilivapaa Suomi is based on Underscores http://underscores.me/, (C) 2012-2015 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Normalize
# Typography
# Global elements
# Forms
# Navigation
	## Links
	## Menus
# Accessibility
# Alignments
# Clearings
# Widgets
# Content
	## Posts and pages
	## Asides
	## Comments
# Infinite scroll
# Media
	## Captions
	## Galleries
# Responsive styles
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Normalize
--------------------------------------------------------------*/
html {
	font-family: sans-serif;
	-webkit-text-size-adjust: 100%;
	-ms-text-size-adjust:     100%;
}

body {
	margin: 0;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
menu,
nav,
section,
summary {
	display: block;
}

audio,
canvas,
progress,
video {
	display: inline-block;
	vertical-align: baseline;
}

audio:not([controls]) {
	display: none;
	height: 0;
}

[hidden],
template {
	display: none;
}

a {
	background-color: transparent;
}

a:active,
a:hover {
	outline: 0;
}

abbr[title] {
	border-bottom: 1px dotted;
}

b,
strong {
	font-weight: bold;
}

dfn {
	font-style: italic;
}

h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

mark {
	background: #ff0;
	color: #000;
}

small {
	font-size: 80%;
}

sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sup {
	top: -0.5em;
}

sub {
	bottom: -0.25em;
}

img {
	border: 0;
}

svg:not(:root) {
	overflow: hidden;
}

figure {
	margin: 0;
}

hr {
	box-sizing: content-box;
	height: 0;
}

pre {
	overflow: auto;
}

code,
kbd,
pre,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

button,
input,
optgroup,
select,
textarea {
	color: inherit;
	font: inherit;
	margin: 0;
}

button {
	overflow: visible;
}

button,
select {
	text-transform: none;
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
	-webkit-appearance: button;
	cursor: pointer;
}

button[disabled],
html input[disabled] {
	cursor: default;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
	border: 0;
	padding: 0;
}

input {
	line-height: normal;
}

input[type="checkbox"],
input[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

input[type="search"] {
	-webkit-appearance: textfield;
	box-sizing: content-box;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

fieldset {
	border: 1px solid #c0c0c0;
	margin: 0 2px;
	padding: 0.35em 0.625em 0.75em;
}

legend {
	border: 0;
	padding: 0;
}

textarea {
	overflow: auto;
}

optgroup {
	font-weight: bold;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

td,
th {
	padding: 5px;
	border: 1px dotted #acaed0;
	font-size: 0.9rem;
}

th {
	background: #fae1d9;
}

/*--------------------------------------------------------------
# Colors
--------------------------------------------------------------*/
:root {	
	--main-color: #00425d;
	--accent-color: #ff6a13;
	--additional-color-1:#F3B8A5;
	--additional-color-2: #3A7D8A;
}
/*
:root {	
	--main-color: #40494F;
	--accent-color: #1BC58F;
	--additional-color-1: #c0babc;
	--additional-color-2: #f8333c;
}*/

.green {
	background: url(img/bg-skin.png) repeat;
    background-size: 4px 4px;
}

.blue {
	background: var(--main-color);
	color: #fff;
}

.campaign-desc {
	background: rgb(0 66 93 / 69%);
	/*background: rgb(64 73 79 / 71%);*/
}



/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/

html {
	font-size: 18px;
}

body,
button,
input,
select,
textarea {
	color: var(--main-color);
	font-family: 'Rubik', sans-serif;
	line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: 0.03em;
	margin: 1.5em 0 1em 0;
}

h1 {
	font-size: 2.5rem;
	margin: 0.6em 0;
}

h2 {
	font-size: 1.8rem;
}

h2:focus {
	outline: none;
}

.archive h2.entry-title {
	font-size: 2rem;
}


h3 {
	text-transform: uppercase;
	font-size: 1.333rem;
	letter-spacing: 0.075em;
}

p {
	margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", Courier, monospace;
	font-size: 15px;
	font-size: 0.8333;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
	font-size: 15px;
	font-size: 0.8333;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

@font-face {
	font-family: 'hvs_icons';
	src: url('icons/hvs_icons.eot?66147118');
	src: url('icons/hvs_icons.eot?66147118#iefix') format('embedded-opentype'),
	url('icons/hvs_icons.woff?66147118') format('woff'),
	url('icons/hvs_icons.ttf?66147118') format('truetype'),
	url('icons/hvs_icons.svg?66147118#hvs_icons') format('svg');
	font-weight: normal;
	font-style: normal;
}
/* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */
/* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */
/*
@media screen and (-webkit-min-device-pixel-ratio:0) {
  @font-face {
    font-family: 'hvs_icons';
    src: url('icons/hvs_icons.svg?66147118#hvs_icons') format('svg');
  }
}
*/

[class^="icon-"]:before, [class*=" icon-"]:before, .social a:before,
a[href$=".pdf"]:before, a[href$=".doc"]:before, a[href$=".xls"]:before, a[href$=".docx"]:before, a[href$=".xlsx"]:before, a[href$=".ppt"]:before,
a[href$=".pptx"]:before, button.menu-toggle:before   {
	font-family: "hvs_icons";
	font-style: normal;
	font-weight: normal;
	speak: none;
	display: inline-block;
	text-decoration: inherit;
	width: 1em;
	margin-right: .2em;
	text-align: center;
	/* opacity: .8; *//* For safety - reset parent styles, that can break glyph codes*/
	font-variant: normal;
	text-transform: none;/* fix buttons height, for twitter bootstrap */
	line-height: 1em;/* Animation center compensation - margins should be symmetric *//* remove if not needed */
	margin-left: .2em;/* you can be more comfortable with increased icons size */
	/* font-size: 120%; *//* Font smoothing. That was taken from TWBS */
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;/* Uncomment for 3D effect */
	/* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
}

.icon-facebook:before, .social a[href*="facebook.com"]:before { content: '\e813'; }
.icon-twitter:before, .social a[href*="twitter.com"]:before { content: '\e801'; }
.icon-menu:before { content: '\e802'; }
.icon-cancel:before { content: '\e803'; }
.icon-instagram:before, .social a[href*="instagram.com"]:before { content: '\e800'; }
.icon-linkedin:before, .social a[href*="linkedin.com"]:before { content: '\e805'; }
.icon-file-pdf:before, a[href$=".pdf"]:before { content: '\e806'; }
.icon-file-word:before, a[href$=".doc"]:before, a[href$=".docx"]:before { content: '\e807'; }
.icon-file-excel:before, a[href$=".xls"]:before, a[href$=".xlsx"]:before { content: '\e808'; }
.icon-file-powerpoint:before, a[href$=".ppt"]:before, a[href$=".pptx"]:before { content: '\e809'; }
.icon-file-image:before { content: '\e80a'; }
.icon-search:before { content: '\e80b'; }
.icon-down-dir:before { content: '\e80c'; }
.icon-left-dir:before { content: '\e80d'; }
.icon-right-dir:before { content: '\e80e'; }
.icon-up-dir:before { content: '\e80f'; }
.icon-file-archive:before { content: '\e810'; }
.icon-file-audio:before { content: '\e811'; }
.icon-rss:before, .social a[href*="feed"]:before { content: '\e812'; }
.icon-mail:before { content: '\f0e0'; }
.icon-youtube:before, .social a[href*="youtube.com"]:before  { content: '\f167'; }
.icon-heart:before { content: '\f30c'; }

/*--------------------------------------------------------------
# Global elements
--------------------------------------------------------------*/
html {
	box-sizing: border-box;
}

*,
*:before,
*:after { /* Inherit box-sizing to make it easier to change the property for components that leverage other behavior; see http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
	box-sizing: inherit;
}

body {
	background-image:url('img/bg-white.png');
	background-size: 4px 4px;
	color: var(--main-color);

}

#page {
	margin 0 auto;
}

.site-content, .site-footer {
	overflow-wrap: break-word;
	word-wrap: break-word;
	-ms-word-break: break-all;
	word-break: break-word;
}

.outer-margins {
	padding: 18px;
	padding: 1rem;
	overflow: auto;
}

.block .section-content > * {
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

.block .section-content.wide > * {
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
}


section {
	/* overflow: auto; */
	clear: both;
}

.coal-policy-table {
	background: #fff;
}

.coal-policy-table th {
	padding: 10px 5px;
    background-color: var(--main-color);
    color: #fff;
}

.coal-policy-table th:first-of-type {
	text-align: center;
}


/* Header */

.site-branding {
	padding: 50px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 0 auto;
	line-height: 1.2;
}

.site-logo img {
	width: 135px;
}

.site-branding div, .site-branding nav {
	text-align: center;
	vertical-align: middle;
}

.site-branding > div > *, .site-branding nav > *{
	margin: 20px;
}

.site-description {
	width: 20%;
}

.site-description p {
	text-transform: uppercase;
	font-family: 'Rubik Dirt', sans-serif;
	font-weight: normal;
	letter-spacing: 0.05em;
	font-size: 1.5rem;
	-ms-transform: rotate(-5deg);
    -webkit-transform: rotate(-5deg);
    transform: rotate(-5deg);
    text-transform: uppercase;
	line-height: 1.1;
}

button#searchbutton {
	background: none;
	width: auto;
	height: auto;
    padding: 0;
    border-radius: 0;
    margin-left: -7px;
    margin-right: 0;
    color: var(--accent-color);
    box-shadow: none;
    font-size: inherit;
}

button#searchbutton:focus {
	outline: 1px dotted;
}

.site-branding  .modal-overlay {
    display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  overflow: auto;
  margin: 0;
	background:#0000003d;
}

.site-branding .modal-header {
	text-align: right;
}


.modal-content {
  margin: 20% auto;
  max-width: 370px;
	background-image:url('img/bg-white.png');
	background-size: 4px 4px;
  padding: 0 20px 20px;
  color: var(--main-color);
  box-shadow: 5px 5px 0px var(--main-color);
}

.modal-body h2 {
	margin-top: -15px;
}
.closebutton {
	margin-right: -25px;
	font-size: 2.5rem;
}

.modal-body .search-field {
	max-width: 170px;
}

/* Footer */

.site-footer nav.social, .site-footer .newsletter {
	width: 50%;
	float: left;
	text-align: center;
	padding: 100px 0;
}

.site-footer nav.social a {
	color: inherit;
	font-size: 1.3em;
}

.site-footer nav.social a:hover {
	color: var(--accent-color);
}


.site-footer nav.social a:before {
	border: 4px solid;
	border-radius: 50%;
	width: 80px;
	height: 80px;
	line-height: 1.7;
}

.site-footer .widget {
	text-align: center;
	border: none;
}
.site-footer .widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: inline;
}
.site-footer .widget li, .site-footer .widget h1 {
	display: inline;
	vertical-align: middle;
}

.site-footer .widget h1 {
	font-size: 20px;
	font-size: 1.1rem;
	text-transform: uppercase;
	letter-spacing: 0.075em;
	margin: 2em;
}

.site-footer #linkcat-47 h1 {
	display: none;
}
.site-footer .widget li img {
	vertical-align: middle;
	margin: 2em;
	max-width: 200px;
}

.site-footer .widget li a[href="https://www.sll.fi"] img {
	max-width: 300px;
}

.site-footer .widget li a[href="https://www.fingo.fi"] img {
	max-width: 150px;
}

.site-footer .widget li a[href="https://savepondhockey.org/"] img,
.site-footer .widget li a[href="https://wwf.fi/"] img {
	max-width: 80px;
}

.site-info {
	text-align: center;
	padding: 2em;
	text-transform: uppercase;
	font-size: 10px;
	font-size: 0.55rem;
	letter-spacing: 0.15em;
}

.site-info a {
	color: var(--additional-color-1);
}

.site-info a:hover {
	color: inherit;
}

.grecaptcha-badge {opacity:0}


blockquote:before,
blockquote:after,
q:before,
q:after {
	content: "";
}

blockquote,
q {
	quotes: "" "";
}

blockquote {
	position: relative;
	padding: 1em 2em 1em 2em;
	margin: 0 ;
	font-size: 1.2em;
}

blockquote:before {
	content: "\0201C";
	font-size: 350px;
	display: block;
	position: absolute;
	line-height: 270px;
	/*color: #dcf1b4;
	opacity: 0.5;*/
	opacity: 0.2;
	left: 0;
	top: 0;
	z-index: 1;
}
blockquote p {
	z-index: 1000;
}


hr {
	border: none;
	border-top: 5px dashed var(--additional-color-1);
	height: 0;
	margin: 3em 0;

}

ul,
ol {
	margin: 0 0 1.5em 0em;
}

ul {
	list-style: disc;
}

.site-content ul {
	padding-left: 0px;
}

.entry-content ul {
	padding-left: 1em;
}

.site-content ul ul {
	margin-top: 1em;
}

.site-content li {
	margin-bottom: 15px;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: bold;
}

dd {
	margin: 0 1.5em 1.5em;
}

img {
	height: auto; /* Make sure images are scaled correctly. */
	max-width: 100%; /* Adhere to container width. */
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

.footnotes {
	font-size: 0.8em;
}

/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/

.entry-content form  {
	margin: 2em auto;
	max-width: 400px;
}

form p {
	font-size: 14px !important;
	font-size: 0.77rem !important;
	text-transform: uppercase;
	text-align: left;
	letter-spacing: 0.05em;
	margin-bottom: 2em;
}

form p .wpcf7-checkbox {
	text-transform: none;
	line-height: 2.5;
}

legend {
	font-size: initial;
	padding: 0 5px;
}

fieldset {
	border-color: var(--main-color);
	margin-bottom: 20px;
}


button,
input[type="button"],
input[type="reset"],
input[type="submit"],
a.button {
	border: none;
	background: var(--accent-color);
	color: #fff;
	font-size: 18px;
	font-size: 1rem;
	line-height: 1;
	padding: .6em 1em .6em;
	box-shadow: 5px 5px 0px var(--main-color);
	text-transform: uppercase;
	font-weight: 900;
	letter-spacing: 0.1em;
}

a.button {
	display: inline-block;
	text-decoration: none !important;
	color: #fff !important;
	margin-right: 20px;
	margin-bottom: 20px;
}

a.button.icon-facebook {
	background-color: #3b5998;
}

a.button.icon-twitter {
	background-color:#55acee;
}

.content-area button,
.content-area input[type="button"],
.content-area input[type="reset"],
.content-area input[type="submit"] {
	margin-top: 54px;
	margin-top: 3rem;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
a.button:hover {
	background-color: var(--additional-color-2) ;
	
}

button:focus,
input[type="button"]:focus,
input[type="reset"]:focus,
input[type="submit"]:focus,
button:active,
input[type="button"]:active,
input[type="reset"]:active,
input[type="submit"]:active,
a.button:focus; a.button:active {
	position: relative;
	top: 5px;
	left: 5px;
	box-shadow: none;
	outline: none;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	border: none;
	font-size: 18px;
	font-size: 1.15rem;
	background: #b6d3d8;
}

input::placeholder {
	color: var(--main-color);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"] {
	padding: 6px;
}

.entry-content input[type="checkbox"],
.entry-content input[type="radio"] {
	width: 30px;
	display: inline-block;
	line-height: 1;
	margin-top: 5px;
	height: 15px;
	vertical-align: bottom;
}


.wpcf7-list-item  {
	display: block;
	line-height: 1.2;
	margin-bottom: 10px;
}

.radio-inline .wpcf7-list-item {
	display: inline-block;
	margin-top: 10px;
	margin-left: 0;
}

.radio-inline .wpcf7-list-item input {
	width: 20px;
	height: 15px;
	vertical-align: baseline;
}

.entry-content input, .entry-content textarea {
	border: none;
	width:100%;
}

.entry-content input[type="submit"] {
	border:none;
	margin-top: 18px;
	margin-top: 1rem;
}

input[type="file"] {
	border: none;
}

select {
	border: 0;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
	outline: none;
}

textarea {
	padding-left: 6px;
	width: 100%;
}

.newsletter form * {
	text-align: center;
	margin: 10px;
}

.newsletter form .mc4wp-form-fields p {
	/* display: inline; */
	margin: 0;
}

.newsletter form label {
	/* display: none; */
}

.newsletter input[type='email'] {
	/* max-width: 200px; */
	background: #fff;
}

form.bigger-form  {
	max-width: 500px; 
}

form.bigger-form  p {
	text-transform: none;
	font-size: 1rem !important;
	letter-spacing: 0;
}

.bigger-form fieldset {
	padding-left: 0;
	padding-right: 0;
	border:0;
	border-bottom: 1px solid #2f3266;
}

.bigger-form legend {
	padding: 0;
	font-weight: bold;
	font-size: 1.2rem;
}

.wpcf7-acceptance .wpcf7-list-item {
	margin: 0;
}

.wpcf7-acceptance input[type="checkbox"], 
.mc4wp-checkbox input[type="checkbox"] {
	margin: 0 0 7px;
	vertical-align: baseline;
}

.wpcf7 form .wpcf7-response-output {
	margin: 0;
}

.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output {
	border: none;
}

span.wpcf7-not-valid-tip {
	background: #fde2e2;
	padding: 0.5em 1em;
	text-transform: none;
	line-height: 1.2;
	color: var(--main-color)
}

div.wpcf7-response-output {
	background:#eee;
	padding: 1em;
}

.home-content div.wpcf7-response-output {
	background: transparent;
	padding: 1em;
}

div.wpcf7-mail-sent-ok, div.wpcf7-mail-sent-ng, div.wpcf7-spam-blocked, div.wpcf7-validation-errors {
	border: none;
}

div.wpcf7-mail-sent-ng {
	background: #f4bfbf;
}

div.wpcf7-spam-blocked {
	background: #f4bfbf;
}

div.wpcf7-validation-errors {
	background: #c7e097;
}

/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/
/*--------------------------------------------------------------
## Links
--------------------------------------------------------------*/
a, .section-content h2 a, .section-content strong a,
.entry-content h2 a, .entry-content strong a {
	color: var(--accent-color);
	text-decoration: none;
}

/* Better contrast for accessibility */
.section-content a, .entry-content a, 
.entry-footer a, .entry-meta a,
.page-header p a, .grid a {
	color: #CE4C00;
}
.section-header a {
	color: #FF863F;
}

a:hover,
a:focus,
a:active {
	color: var(--main-color);
}

.section-header a:hover {
	color: #fff;
}

a:focus {
	outline-offset: 3px;
  outline: dotted 2px var(--main-color);
}

a:hover {
	outline: 0;
}

.site-footer a:focus {
	outline: 1px dotted #fff;
	color: #fff;
}

/*--------------------------------------------------------------
## Menus
--------------------------------------------------------------*/


.main-navigation {
	clear: both;
	display: block;
	float: left;
	width: 100%;
	background-color: var(--main-color);
	text-transform: uppercase;
	font-size: 14px;
	font-size: 0.75rem;
	letter-spacing: 0.075em;
}

.main-navigation ul, .social ul {
	display: none;
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.main-navigation ul {
	/* max-width: 1280px; */
	margin: 0 auto;
	padding: 0 18px;
	padding: 0 1rem;
	justify-content: space-between;
	align-items: center;
}

.social ul {
	display: block;
}

.main-navigation li {
	display: inline-block;
	position: relative;
	padding: 12px;
}


.toggle-submenu {
	display: block;
	border: 0;
	float: right;
	margin-top: 0;
	padding: 0;
	height: 25px;
	position: relative;
	color: #fff;
}
.toggle-submenu:after {
	content: "\e80c";
	font-size: 1rem;
	display: block;
    height: 25px;
    position: absolute;
    line-height: 1;
    top: 13px;
    margin-left: -10px;
    width: 25px;
    font-family: "hvs_icons";   
}

.focus .toggle-submenu:after {
	content: "\e80f";
}

button.toggle-submenu:hover {
	color: var(--accent-color) !important;
}

#primary-menu > li:last-of-type {
	font-size: 0.65em;
	text-transform: none;
}


.social li {
	display: inline-block;
	font-size: 34px;
	font-size: 1.9rem;
}

.main-navigation a {
	display: block;
	text-decoration: none;
	color: #fff;
	padding: 1em;
}

.main-navigation a:hover {
	color: var(--additional-color-1);
}

.main-navigation ul ul {
	float: left;
	position: absolute;
	top: 4em;
	left: -999em;
	z-index: 99999;
	background-color: var(--main-color);
	padding: 1em 0;
}

.main-navigation ul ul ul {
	left: -999em;
	top: 0;
}

.main-navigation ul ul a {
	width: 200px;
	padding-bottom: 0em;
	padding-top: 0.5em;
}

.main-navigation ul ul li {
	padding: 0;
}

.main-navigation li:hover > a,
.main-navigation li.focus > a {
}

.main-navigation ul ul :hover > a,
.main-navigation ul ul .focus > a {
}

.main-navigation ul ul a:hover,
.main-navigation ul ul a.focus {
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
	left: auto;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
	left: 100%;
}

.main-navigation .current_page_item > a,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_ancestor > a,
.main-navigation .current-menu-ancestor > a,
.main-navigation .current-page-ancestor > a,
.page-template-page-ilmastokalenteri-kuukausinakyma .main-navigation .menu-item-4681 a {
	color: #FD7676;
}

.page-id-4795 #menu-item-5046 a {
	color: #fff;
}

.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
	margin: 0 auto 1.5em auto;
	overflow: hidden;
	max-width: 950px;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	float: left;
	width: 50%;
}

.nav-previous:before {
	content: "\25C0";
	margin-right: 5px;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	float: right;
	text-align: right;
	width: 50%;
}

.nav-next:after {
	content: "\25b6";
	margin-left: 5px;
}

/* Social menu */

.social a:link .menu-text, .social a:link .menu-text {
	position: absolute;
	top: -9999em;
	left: -9999em;
}

/*--------------------------------------------------------------
# Accessibility
--------------------------------------------------------------*/
/* Text meant only for screen readers. */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.screen-reader-text:focus {
	background-color: var(--accent-color);
	box-shadow: 5px 5px 0px var(--main-color);
	clip: auto !important;
	color: #ffffff;
	display: block;
	font-size: 14px;
	font-size: 0.875rem;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000; /* Above WP toolbar. */
}

/* Do not show the outline on the skip link target. */
#content[tabindex="-1"]:focus {
	outline: 0;
}

/*--------------------------------------------------------------
# Alignments
--------------------------------------------------------------*/
.alignleft {
	display: inline;
	float: left;
	margin-right: 1.5em;
}

.alignright {
	display: inline;
	float: right;
	margin-left: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

/*--------------------------------------------------------------
# Clearings
--------------------------------------------------------------*/
.clear:before,
.clear:after,
.entry-content:before,
.entry-content:after,
.comment-content:before,
.comment-content:after,
.site-header:before,
.site-header:after,
.site-content:before,
.site-content:after,
.site-footer:before,
.site-footer:after {
	content: "";
	display: table;
	table-layout: fixed;
}

.clear:after,
.entry-content:after,
.comment-content:after,
.site-header:after,
.site-content:after,
.site-footer:after {
	clear: both;
}

/*--------------------------------------------------------------
# Widgets
--------------------------------------------------------------*/
.widget {
	margin: 0 0 1.5em;
}

/* Make sure select elements fit in widgets. */
.widget select {
	max-width: 100%;
}

/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/
/*--------------------------------------------------------------
## Posts and pages
--------------------------------------------------------------*/

a.news-item {
	display: block;
	width: 50%;
	float: left;
	margin: 0;
	font-size: 16px;
	font-size: 0.888rem;
	color: var(--main-color);
}


.news-item h3 {
	font-size: 18px;
	font-size: 1rem;
	text-transform: none;
	letter-spacing: 0;
}

.news-item figure {
	
}

.news-item figure, .news-item .news-intro {
	width: 50%;
	float: left;
	height: 375px;
	position: relative;	
}

.news-item:nth-of-type(3) figure, .news-item:nth-of-type(4) figure {
	float: right;
}

.news-item figure {
	margin: 0;
	background-size: cover;
	background-position: center;
}

.news-item:hover {
	color: var(--accent-color);
}

.news-item:hover figure {
	opacity: 0.9;
}


.news-item > *:before, 
.news-item > *:after,
.news-item .dotted-bg:before,
.news-item .dotted-bg:after {
	content: "";
	display: block;
	position: absolute;
	width: 0;
	height: 0;
	border-left:35px solid transparent;
	border-right: 35px solid transparent;
	left:0;
	margin-left: -35px;
} 

.news-item > *:before, .news-item .dotted-bg:before  {
	border-top: 35px solid var(--accent-color);
}

.news-item > *:after, .news-item .dotted-bg:after {
	border-bottom: 35px solid var(--accent-color);
}

.news-item figure:before {
	bottom: 35px;
}
.news-item figure:after {
	bottom: 0;
}

.news-item .news-intro:after,
.news-item .dotted-bg:after{
	top: 35px;
}

.news-item .dotted-bg:before, .news-item .dotted-bg:after {
	right: 0;
	left: unset;
	margin-left: 0;
	margin-right: -35px;
}

.news-item:first-of-type figure:before,
.news-item:first-of-type figure:after {
	border-top-color: var(--additional-color-1);
	border-bottom-color: var(--additional-color-1);
}

.news-item:nth-of-type(2) figure:before,
.news-item:nth-of-type(2) figure:after {
	border-top-color: var(--main-color);
	border-bottom-color: var(--main-color);
}

.news-item:nth-of-type(2) .news-intro:before,
.news-item:nth-of-type(2) .news-intro:after,
.news-item:nth-of-type(2) .dotted-bg:before,
.news-item:nth-of-type(2) .dotted-bg:after {
	border-top-color: var(--additional-color-1);
	border-bottom-color: var(--additional-color-1);
}


.news-intro {
	overflow: hidden;
}

.news-intro .outer-margins {
	padding: 40px;
}

.sticky {
	display: block;
}

article, .page-header, .search .page-content {
	margin: 90px auto;
	margin: 5rem auto;
	max-width: 800px;
	position: relative;
	padding: 54px;
	padding: 3rem;
}

.search .page-header {
	text-align: center;
	margin-bottom: -3rem;;
}

article {
	background: #fff;
}

.page-header {
	margin:0 auto;
	padding: 54px 0 0 0;
	padding: 3rem 0 0 0;
}

.archive .page-header, .page-template-page-local-group .page-header {
	text-align: center;
	text-transform: uppercase;
}

.archive .page-header p, .archive .page-header blockquote {
	text-transform: none;
}

.entry-header:before, .entry-header:after,
.entry-footer:before, .entry-footer:after {
	content: "";
	display: block;
	position: absolute;
	width: 0; 
	height: 0; 
	border-left:35px solid transparent;
	border-right: 35px solid transparent;
	left:calc(50% - 35px);
} 

.entry-header:before, .entry-footer:before  {
	border-top: 35px solid var(--accent-color);
}

.entry-header:after, .entry-footer:after {
	border-bottom: 35px solid var(--accent-color);
}

.home-content .entry-header:before, .home-content .entry-header:after {
	border-top-color: var(--additional-color-1);
	border-bottom-color: var(--additional-color-1);
}

.entry-header:before {
	top: 0;
	margin-top: -35px;
}

.entry-header:after {
	top: 0;
}

.entry-footer:before {
	bottom: 0;

}

.entry-footer:after {
	bottom: 0;
	margin-bottom: -35px;
}

.archive .entry-footer:before,
.archive .entry-footer:after {
	display: none;
}


.byline,
.updated:not(.published) {
	display: none;
}

.single .byline,
.group-blog .byline {
	display: inline;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

/* Home */


.home-content {
	background: url(img/bg-image.jpg);
	background-position: center center;
	background-size: cover;
	color: #fff;
	/* overflow: auto; */
	position:relative;
	display:flex;
	flex-wrap: wrap;
}

.home-content > * {
	flex-basis: 50%;
}

.home-content h1 {
	/* font-family: 'Rubik Dirt', sans-serif; */
	font-size: 59px;
	font-size: 3rem;
	text-transform: uppercase;
	letter-spacing: 2px;
	font-weight: 900;
}

.home-content .entry-header:before {
	margin-top: 0;
	left: 0;
	margin-left: -35px;
}

.home-content .entry-header:after {
	top: 35px;
	left: 0;
	margin-left: -35px;
}

.home-content .entry-footer:before {
	bottom: 35px;
	left: 0;
	margin-left: -35px;
}

.home-content .entry-footer:after {
	margin-bottom: 0;
	left: 0;
	margin-left: -35px;
}

.page-template-page-blocks .home-content,
.page-template-page-petition .home-content,
.page-template-page-allekirjoita-sitoumus .home-content,
.page-template-page-blocks-images .home-content  {
	display: block;
}

.page-template-page-blocks .home-content h1,
.page-template-page-petition .home-content h1,
.page-template-page-allekirjoita-sitoumus .home-content h1,
.page-template-page-blocks-images .home-content h1  {
	text-align: center;
	padding-left: 20px;
	padding-right: 20px;
}

.home-content p, .home-content h2 {
	max-width: 750px;
	margin-right: auto;
	margin-left: auto;
}

.home-content p {
	font-size: 25px;
	font-size: 1.1rem;
}


.home-content small {

}

.home-content a {
	color: inherit;
	text-decoration: underline;
}

.home-content form {
	max-width: 700px;
	margin: 0 auto;
}

form .half {
	float: left;
	width: 44%;
	margin-left: 3%;
	margin-right: 3%;
}

form .half input {
	width: 100%;
}

.home-content input[type="submit"] {
	font-size: 25px;
	font-size: 1.4rem;
}


div.wpcf7 .ajax-loader {
	display: block;
}

span.wpcf7-list-item {
	margin: 0 1em;
}

.home-content .campaign-desc {
	position: relative;
}

.home-content-caption {
	position: absolute;
	bottom: 5px;
	right: 5px;
	color: #fff;
	font-size: 9px;
	font-size: 0.5rem;
	text-transform: uppercase;
}

.section-header {
	background: var(--main-color);
	color: #fff;
	text-align: center;
}

.section-header h2 {
	font-size: 33px;
	font-size: 1.83rem;
	
}

.section-header h2:after {
	content: "";
	border-bottom: 6px solid;
	display: block;
	width: 160px;
	margin: 10px auto 0 auto;
}

.volunteers, .grid {
	text-align: center;
}

.searchandfilter ul {
	margin: 0;
}

.searchandfilter select {
	background: #ecffc8;
	height: 30px;
}

.volunteer, .ehdokas {
	width: 16%;
	display: inline-block;
	margin: 3%;
	vertical-align: top;
	font-size: 14px;
	font-size: 0.8rem;
}

.volunteer h3 {
	font-size: 1.3em;
	text-transform: none;
}

.volunteer h4:before {
	content: "---";
	display: block;
	color: var(--accent-color);
	margin-top: -1.5em;
}

.volunteer img, .grid img {
	border-radius: 50%;
	width: 375px;
}

.volunteer img {
	filter: brightness(93%) contrast(115%) hue-rotate(207deg) saturate(152%) grayscale(51%) sepia(29%) 
}

/* Full width video */

.extra-content,
.site-main section:last-of-type > div.extra-content  {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	padding-top: 1px;
	height: 0;
}

.extra-content iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}


/* Valtuutetut */

h2.city {
	text-align: center;
	font-size: 44px;
	font-size: 2.4444rem;
}

.ehdokas.vaalitulos-varalla .sitoumus-image {
	position: relative;
}

.page-template-page-valtuutetut .ehdokas.vaalitulos-varalla .sitoumus-image:after {
	content: "VARA";
	width: 60px;
	height: 60px;
	position: absolute;
	top:0;
	right: 20px;
	background: #ecffc8;
	line-height: 0.8;
	border-radius: 30px;
	padding: 25px 0 0 0;
	font-weight: bold;
	font-size: 1.2em;
	text-align: center;
}


/* Local groups */

.page-template-page-local-group .home-content h1 {
	font-size: 72px;
	font-size: 4rem;
}

.campaign-header {
	padding: 70px;
	text-align: center;
}

.campaign-info.mobile {
	display: none;
}


.home-content .campaign-info {
	background: rgb(255, 255, 255);
	color: var(--main-color);
	padding: 10px 40px 20px 40px;
	max-width: 350px;
	margin: 0 auto;
}

.page-template-page-local-group .home-content p {
	font-size: 1rem;
}

.home-content .campaign-info p {
	font-size: 0.8rem;
}

.campaign-desc {
	padding: 50px;
}

.page-template-page-local-group .home-content {
	text-align: left;
	position: relative;
}

/* Map */

.section-header.map {
	background: transparent;
	color: var(--main-color);
}

/* Profile pic generator */

.profile-pic-canvas-box {
	/*
	background: url(img/profile-pic/bg2.png) #9B9FBF;
	background-size: 300px 300px;
	*/
	background-color: #BFC2DD;
	width: 300px;
	height: 300px;
	box-shadow: 5px 5px 0px var(--main-color);
}

.profile-pic-canvas-box #canvas {
	width: 100%;
}

/* Blocks with images */


.image-text {
	display: flex;
	flex-wrap: wrap;
}

.block .image-text > div {
	flex-basis: 50%;
	max-width: 100%;
	min-height: 500px;
}

.section-image {
	background-size: cover;
	background-position: center center;
}

.section-text {
	padding: 2rem;
}

@media screen and (min-width: 941px) {

	.block:nth-of-type(even) .image-text .section-image {
		order: 1;
	}

}

/* Tabs & accordions */

.tabs {
	margin: 20px 0;
	background: rgb(209 209 209 / 39%);
	background-size: 4px 4px;
}

.tabs ul {
	list-style: none;
	display: flex;
	justify-content: space-around;
}

.tabs li {
	width: 100%;
	margin-bottom: 0;
	text-align: center;
	border-right: 1px dotted #ffffff99;
	background-color: var(--main-color);
}

.tabs li:last-of-type {
	border-right: none;
}

.tabs li a {
	width: 100%;
	display: block;
	padding: 20px 10px;
	color: #fff;	
}

.tabs li.ui-state-active {

	border-bottom: none;
	background-color: transparent;
	color: inherit;

}

.tabs li.ui-state-active a {
	color: inherit;
}

.tabs > div {
	padding: 0 20px 1px 20px;
}


/* Send a message to a politician */

.block .section-content .puolue {
	margin-bottom: 4em;
}

.block .section-content .puolue ul {
	-webkit-columns: 2 200px;
	-moz-columns: 2 200px;
	columns: 2 200px;
	-webkit-column-gap: 2em;
	-moz-column-gap: 2em;
	column-gap: 2em;
	margin: 2em 0 2em 1em;
}

.block .section-content .puolueet h3 {
	-webkit-column-span: all;
	column-span: all;
	margin-top: 3em;
}

li.politician {
	-webkit-column-break-inside: avoid;
	page-break-inside: avoid;
	break-inside: avoid;
	margin-bottom: 30px;
}

.politician div {
	font-size: 0.9rem;
}

/* Petition counter */

.counter {
	font-size: 2rem;
	margin: 1em auto;
	max-width: 400px;

}

.signatures-container {
	background: #312d67;
	position: relative;
	margin: 0 20px;
}

.signatures {
	background: #dcf1b4;
	color: var(--accent-color);
	padding: 5px 10px;
	text-align: right;
	height: 65px;
}

.signatures-number {
	position: absolute;
	left: 5px;
}

.start {
	float: left;
	font-size: 1.2rem;
	margin-left: 20px;
}

.goal {
	text-align: right;
	margin-right: 20px;
	font-size: 1.2rem;
}

.start:before,
.goal:before {
	content: "|";
	display: block;
	margin: 3px;
}

/* Ilmastokalenteri kuukausinakyma */

.page-template-page-ilmastokalenteri-kuukausinakyma .site-footer .green {
	background: inherit;
}

.page-template-page-ilmastokalenteri-kuukausinakyma .site-footer input[type="email"] {
	border: 3px solid;
}

.ilmastokalenteri-kk {
	overflow: hidden;
}

.ilmastokalenteri-kk h1{
	text-align: right;
	padding: 80px;
	margin: 0;
	line-height: 1;
	font-size: 4rem;
}

.ilmastokalenteri-kk .dotted-bg {
	overflow: hidden;
}

.ilmastokalenteri-kk p:before {
	content: "\0201C";
	font-size: 25rem;
	position: absolute;
	line-height: 0px;
	opacity: 0.2;
	left: -3rem;
	top: 7rem;
	z-index: 1;
}

.ilmastokalenteri-kk p {
	font-size: 2rem;
	font-weight: 700;
	margin: 20rem auto 5rem auto;
	position: relative;
	max-width: 1100px;
	line-height: 1.2;
	padding: 0 3rem;
}

a.month-link {
	display: inline-block;
	background: #dcf1b4;
	color: #2f3068;
	text-decoration: none;
	text-transform: uppercase;
	font-size: 14px;
	font-size: 0.875rem;
	letter-spacing: 0.075rem;
	position: absolute;
	top: calc(50% - 20px);
	left: 0;
	padding: 15px;
}

a.month-link.next-month {
	left: unset;
	right: 0;
}

.ilmastokalenteri-thismonth {
	margin-bottom: 3rem;
}

.ilmastokalenteri-subscribe {
	text-align: center;
	margin-top: 3rem;
	margin-bottom: 3rem;
}

.ilmastokalenteri-googlecal {
	width: 50%;
	float: left;
	text-align: center;
	padding-left: 3rem;
	padding-right: 3rem;
}

.ilmastokalenteri-hints {
	width: 50%;
	padding-left: 3rem;
	padding-right: 3rem;
	overflow: auto;
}

.ilmastokalenteri-hints ul {
	margin-left: 1rem;
}

.ilmastokalenteri-hints p:first-of-type {
	margin-top: 0px;
}

.ilmastokalenteri-social-feed {
	overflow: hidden;
}

/* Ilmastokiltit */


.page-template-page-ilmastokiltit-main .home-content {
	background: #fff;
	display: table;
	width: 100%;
}

.page-template-page-ilmastokiltit-main .home-content h1 {
	max-width: 750px;
	margin-right: auto;
	margin-left: auto;
}

.page-template-page-ilmastokiltit-main .campaign-desc,
.page-template-page-ilmastokiltit-main .campaign-header {
	display: table-cell;
	width: 50%;
}

.page-template-page-ilmastokiltit-main .campaign-desc {
	margin: 0;
	background: url(img/bg-white.png) ;
	background-size: 4px 4px;
	color: #2f3068;
}

.page-template-page-ilmastokiltit-main .campaign-desc p {

}

.page-template-page-ilmastokiltit-main .campaign-header {
	background-position: center center;
    background-size: cover;
   float: none;
   height: 0;
   padding-bottom: 50%;
}

.post-type-archive-sitoumus .site-main {
	position: relative;
}

.post-type-archive-sitoumus .site-main:before {
	content: "";
	width: 200px;
	height: 200px;
	background: url(img/ilmastokiltti.png) no-repeat right top;
	background-size: 200px;
	display: block;
	margin: 0 auto 30px auto;
	opacity: 0.9;
	position: absolute;
	right: 30px;
	top: 230px;
	z-index: 1000;
}


/* Campaign page */

.campaign-page .home-content {
	background: #fff;
	display: flex;
	flex-wrap: wrap;
}

.campaign-page .home-content > div {
	flex-basis: 50%;
	margin: 0;
}

.campaign-page .campaign-desc {
	background: url(img/bg-white.png) ;
	background-size: 4px 4px;
	color: #2f3068;
}

.campaign-page .campaign-image {
	background-size: cover;
	background-position: center center;
}


/* Kiltteyskalkyyli */

.chart {
	margin: 40px 40px 80px 40px;
}

.energia {
	/* background: #5386fc; */
	/* overflow: auto; */
	margin-bottom: 3em;
}

.energia select {
	vertical-align: middle;
	background: #fff;
	padding: 5px;
	height: 2.2em;
	line-height: 1;
	border: 0;
	border-radius: 0;
	/* color: #000; */
	text-transform: uppercase;
	/*-webkit-appearance: none;*/
	margin: 0;
	max-width: 100%;
}

.energia select:focus {
	outline:0;
}

.energia img {
	float: right;
	width: 100px;
	margin: 30px 30px 0 0;
}

@media only screen and (max-width: 480px) {
	.energia h1 {
	font-size: 40px !important;
	margin: 1em 0 0 0.4em;
	}
	.energia img {
	float: none;
	margin: 0 1em 1em;
	}
	.energia select {
	font-size: 18px;
	display: block;
	margin: 0.5em 0 1em 0;
	}
}

.credit {
	text-align: center;
	text-transform: uppercase;
	font-size: 0.67em;
	margin: 2em;
	letter-spacing: 0.05em;
	color: #8D8D8D;
}

.chart div.energia-foot img {
	margin: 2em 1em;
	max-width: 360px;
	height: auto;
}

.chart-bars {
	margin: 1.5em auto;
	max-width: 800px;
	position: relative;
}

/*
.chart-bars div.kategoria-1 {
	background-color: #00A965;
}
.chart-bars div.kategoria-2 {
	background-color: #BED66A;
}
.chart-bars div.kategoria-3 {
	background-color: #FDF06F;
}
.chart-bars div.kategoria-4 {
	background-color: #FCB759;
}
.chart-bars div.kategoria-5 {
	background-color: #F26C41;
}
.chart-bars div.kategoria-6 {
	background-color: #D21D39;
}
.chart-bars div.kategoria-7 {
	background-color: #7E1826;
}
*/

.chart-bars div.kategoria-1 .bar-color {
	background-color: #00A965;
}
.chart-bars div.kategoria-2 .bar-color {
	background-color: #BED66A;
}
.chart-bars div.kategoria-3 .bar-color {
	background-color: #FDF06F;
}
.chart-bars div.kategoria-4 .bar-color {
	background-color: #FCB759;
}
.chart-bars div.kategoria-5 .bar-color {
	background-color: #F26C41;
}
.chart-bars div.kategoria-6 .bar-color {
	background-color: #D21D39;
}
.chart-bars div.kategoria-7 .bar-color {
	background-color: #7E1826;
}

.chart div.full-bar {
	position: absolute;
	width: 100%;
	background-color: lightgrey;
	height: 60px;
	z-index: -1;
	border-radius: 20px;
	left: 0;
}

.chart div.bar {
  font: 40px sans-serif;
  overflow: visible;
  white-space: nowrap;
  height: 60px;
  line-height: 60px;
	/*
  padding-left: 15px;
	*/
  margin-top: 35px;
  border-radius: 20px;
  width: 0;
	background-color: lightgrey;
}

.chart div.bar-color {
	height: 60px;
	border-radius: 20px;
	padding-left: 15px;
}

.chart div.bar:hover {
	cursor: pointer;
}

.chart div.bar:hover .bar-color {
	background-color:#2e3068;
}

.chart div.name-party {
	color: #2e3068;
	font: 12px Poppins;
	position: relative;
	left: 7px;
	/*
	bottom: -60px;
	left: -10px;
	*/
	padding-top: 5px;
	text-transform: uppercase;
	z-index: -1;
}

.chart .bar div.calcs {
	display: none;
  position: absolute;

}

.chart .bar div.calcs div {
	position: relative;
	top: 0px;
  left: 0px;
  font-size: 12px;
  line-height: 1;
  background-color: white;
  border: solid grey 1px;
  padding: 10px;
	z-index: 10000;
}

.debug .chart .bar:not(.party):not(.district):hover div.calcs {
	display: inline-block;
}

div.black-bar {
	position: relative;
	color: white;
/*	background-color: #0BA6E1;*/
	background-color: #fff;
	font: 50px sans-serif;
	line-height: 150px;
	overflow: visible;
	white-space: nowrap;
	height: 150px;
	width: 200px;
	top: -115px;
	left: 465px;
}

div.black-bar-stick {
	position: absolute;
	color: white;
	background-color: #0BA6E1;
	width: 50px;
	height: 300px;
	top: 421px;
	left: 658px;
}

.hidden {
	display: none;
}

.ilmastokiltti-ehdokas {
	max-width: 800px;
	margin: 0 auto;
	position: relative;
}

div.ehdokas {
	margin: 2em 1.5em;
}

.kiltteysluokka-kuva {
	width: 100%;
	height: 0;
	padding-bottom: 30.6%;
	margin-bottom: 30px;
	background-repeat: no-repeat;
	background-size: contain;
}

.kategoria-1 .kiltteysluokka-kuva {
	background-image: url(ilmastokiltit/ilmastosankari.png);
}

.kategoria-2 .kiltteysluokka-kuva {
	background-image: url(ilmastokiltit/ilmastoviisas.png);
}

.kategoria-3 .kiltteysluokka-kuva {
	background-image: url(ilmastokiltit/ilmastotsemppari.png);
}

.kategoria-4 .kiltteysluokka-kuva {
	background-image: url(ilmastokiltit/ilmastokompuroija.png);
}

.kategoria-5 .kiltteysluokka-kuva {
	background-image: url(ilmastokiltit/ilmastotorkku.png);
}

.kategoria-6 .kiltteysluokka-kuva {
	background-image: url(ilmastokiltit/ilmastonihkeilija.png);
}

.kategoria-7 .kiltteysluokka-kuva {
	background-image: url(ilmastokiltit/ilmastojuro.png);
}

.sitoumus-allekirjoitettu .ehdokas-details:after {
	content: "";
	width: 150px;
	height: 150px;
	background: url(img/ilmastokiltti.png) no-repeat right top;
	background-size: 150px;
	display: block;
	opacity: 0.9;
	position: absolute;
	right: 30px;
	top: 0px;
	z-index: 1000;
	transform: rotate(30deg)
}

.sitoumus-ei-allekirjoitettu .sitoumus {
	display: none;
}

div.ehdokas .jakolinkit  {
	margin-bottom: 2em;
	font-size: 1em;
	text-align: left;
	margin-left: 0;
}

div.ehdokas .jakolinkit a {
	margin-left: 0;
	padding: 0.2em 0.5em;
	margin-bottom: 0;
}

.ehdokas-details .ehdokas-name-www, .ehdokas-details .ehdokas-name {
	text-transform: uppercase;
	font-size: 2rem;
	margin-top: 2em;
}

.ehdokas-party, .ehdokas-district {
	font-size: 1rem;
}

.ilmastokiltti-ehdokas h3 {
	text-transform: none;
	letter-spacing: normal;
}

.ehdokas-compare {
	margin-bottom: 0;
}

#laskukaava {
	display: none;
}

#laskukaava small {
	line-height: 1.5em;
	display: block;
}

.ilmastokiltti_in {
	position: absolute;
	top: 3px;
	margin-left: 4px;
}

.ilmastokiltti_in:before {
	content: "\2665";
}

.page-template-page-kiltteyskalkyyli .block .section-content > * {
    max-width: 800px;
    margin: 0 auto;
}

.ilmastokiltti-loading {
	width: 128px;
	height: 128px;
	position: fixed;
	top: calc(50vh - 64px);
	left: calc(50vw - 64px);
	background-image: url(img/loading.png);
	z-index: 100;
	/*display: none;*/
}


/* Sitoumuslomake */

.acf-fields > .acf-field {
	border: none !important;
}

.acf-input-wrap input {
	height: auto !important;
	font-size: 1rem !important;
	padding: 6px !important;
}

form.acf-form {
	margin: 1em auto 4em auto;
	max-width: 600px;
}

.acf-form-submit {
	text-align: center;
}

.action-list {
	font-size: 0.8em;
	margin-left: 1em;
}

/* Politiikkavertailu */

.page-template-page-compare-policies .campaign-header {
	position: relative;
}

.comparision {
	text-align: left;
}

.company {
	display: flex;
	margin-bottom: 10px;
	height: 60px;
}

.company-name {
	flex-basis: 26%;
	background: var(--accent-color);
	padding: 5px 10px;
	display: flex;
	align-items:center;
	line-height: 1.1
}

.comparision-header {
	margin-bottom: 20px;
}

.comparision-header .company-bar {
	border-bottom: 3px solid;
	background: transparent;
}

.comparision-header > * {
	text-transform: uppercase;
	font-weight: 700;
	background: transparent;
	align-items:center;
}

.comparision-emoji {
	flex-basis: 10%;
}

.comparision-emoji img {
	width: 25px;
	display: block;
	margin: 0 auto;
}

.comparision-header-text {
	flex-basis: 80%;
	text-align: center;
}

.company-bar {
	flex-basis: 74%;
	display: flex;
	background: #DFEFF2;
	position: relative;
}

.company-bar .percent {
	background: #f3b8a5;
}

.company-bar .percent-text {
	color: var(--main-color);
	font-weight: 700;
	position: absolute;
	display: flex;
	align-items:center;
	top: 18px;
	left: 10px;
} 

.page-template-page-compare-policies table td {
	width:9%;
}

table.tablesorter td {
	background: #fae1d9;
	padding: 10px;
	text-align: center;
}

table.tablesorter tr:hover td {
	background: #dfeff2;
}

table.tablesorter td:first-child {
	font-weight: 700;
	text-align: left;
}

table.tablesorter thead tr th {
	border: 1px dotted #fff;
	background-image: url(img/sort-w.png);
	background-size: 20px;
	background-position: bottom;
	padding-bottom: 20px;
	background-color: var(--additional-color-2);
	font-weight: 400;
	font-size: 0.75rem;
	color: #fff;
}

table.tablesorter thead tr th.tablesorter-headerAsc {
	background-image: url(img/asc.png);
}

table.tablesorter thead tr th.tablesorter-headerDesc {
	background-image: url(img/desc.png);
}

/*--------------------------------------------------------------
## Asides
--------------------------------------------------------------*/

.share {
	background: var(--accent-color);
	color: #fff;
	position: absolute;
	left: 0;
	top: 360px;
	width: 86px;
	height: 75px;
	text-transform: uppercase;
	padding: 10px 9px;
	font-size: 1rem;
	text-align: center;
	font-weight: bold
}

.share a {
	color: #fff;
	font-size: 22px;
	font-size: 1.2rem;
}

.share a:before {
	margin: 0;
}

.blog .format-aside .entry-title,
.archive .format-aside .entry-title {
	display: none;
}

/*--------------------------------------------------------------
## Comments
--------------------------------------------------------------*/
.comments-area {
	max-width: 640px;
	margin: 90px auto;
	margin: 5rem auto;
	padding: 20px;
}

.comments-area input[type="submit"] {
	margin-top: 0;
}

.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/*--------------------------------------------------------------
# Infinite scroll
--------------------------------------------------------------*/
/* Globally hidden elements when Infinite Scroll is supported and in use. */
.infinite-scroll .posts-navigation, /* Older / Newer Posts Navigation (always hidden) */
.infinite-scroll.neverending .site-footer { /* Theme Footer (when set to scrolling) */
	display: none;
}

/* When Infinite Scroll has reached its end we need to re-display elements that were hidden (via .neverending) before. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Media
--------------------------------------------------------------*/
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

.dotted-bg {
	background: url(img/dot-transparent.png) repeat;
	background-size: 4px 4px;
	height: 100%;
	overflow: auto;
}

.campaign-desc  {
	display: flex;
	flex-wrap: wrap;
	align-content: center;
}

.campaign-desc > * {
	flex-basis: 100%;
}

.page-template-page-local-group .campaign-desc {
	/* background: url(img/dot-transparent-lowres.png), radial-gradient(circle, rgba(40,40,87, 0.7), rgba(40,40,87, 0.1)); */
}

.entry-header img {
	display: block;
	margin: 1em 0 0 0;
}

figure.alignnone, figure.alignleft {
	margin-left: 0;
}

figure.alignright {
	margin-right: 0;
}

/*--------------------------------------------------------------
## Captions
--------------------------------------------------------------*/
.wp-caption, .gallery-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
	font-size: 14px;
	font-size: 0.8rem;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/*--------------------------------------------------------------
## Galleries
--------------------------------------------------------------*/
.gallery {
	margin-bottom: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	vertical-align: bottom;
	width: 100%;
}

.gallery-columns-2 .gallery-item {
	max-width: 46%;
	margin: 1%;
}

.gallery-columns-3 .gallery-item {
	max-width: 31.33%;
	margin: 1%;
}

.gallery-columns-4 .gallery-item {
	max-width: 25%;
}

.gallery-columns-5 .gallery-item {
	max-width: 20%;
}

.gallery-columns-6 .gallery-item {
	max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
	max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
	max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
	max-width: 11.11%;
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Responsive styles
--------------------------------------------------------------*/


@media screen and (min-width: 941px) {
	.menu-toggle {
		display: none;
	}
	.main-navigation ul {
		display: flex;
	}
	.main-navigation ul ul {
		display: block;
	}

}

@media screen and (max-width: 1200px) {
	.news-item h3 {
		font-size: 24px;
		font-size: 1rem;
		text-transform: none;
		letter-spacing: 0em;
	}

	.news-item p {
		font-size: 14px;
		font-size: 0.8rem;
	}

	.news-item figure, .news-item .news-intro,
	.news-item:nth-of-type(odd) figure {
		height: 500px;
	}

}

@media screen and (max-width: 1024px) {

	.home-content, .campaign-desc {
		text-shadow: none;
	}

	.main-navigation ul {
		font-size: 0.653rem;
	}

	.volunteer, .ehdokas {
		width: 18%;
	}
	
	.page-template-page-compare-policies table td {
        width: 100%;
        text-align: left;
        padding: 10px;
        height: 60px;
        line-height: 1;
    }

    table.tablesorter td:first-child {
        background: var(--additional-color-2);
        color: #fff;
    }
    
    table.csvtohtml.responsive-csvtohtml, 
	table.csvtohtml.responsive-csvtohtml thead, 
	table.csvtohtml.responsive-csvtohtml tbody, 
	table.csvtohtml.responsive-csvtohtml th, 
	table.csvtohtml.responsive-csvtohtml td, 
	table.csvtohtml.responsive-csvtohtml tr {
		display: block !important;
	}
	table.csvtohtml.responsive-csvtohtml thead tr {
	    position: absolute !important;
	    top: -9999px !important;
	    left: -9999px !important;
	}


    table.csvtohtml.responsive-csvtohtml td:before {
        white-space: normal !important;
        left: 10px !important;
        top: 10px !important;
    }


}

@media screen and (min-width: 941px) and (max-width: 1024px) {


	.main-navigation ul {
		align-items: baseline;
	}

	.toggle-submenu {
	    margin-top: -3px;
	}

	.site-header nav.social {
		max-width: 200px
	}

	a.news-item {
		display: block;
		width: 100%;
		float: none;
		margin: 0;
		font-size: 16px;
		font-size: 0.888rem;
		/* color: #000; */
	}

	.news-item:nth-of-type(odd) figure, .news-item:nth-of-type(odd) .news-intro {
		float: right;
		/* height: 375px; */
		position: relative;
	}

	.news-item:nth-of-type(4) figure {
		float: left;
	}

	.news-item h3 {
		font-size: 24px;
		font-size: 1.333rem;
	}

	.news-item p {
		font-size: 18px;
		font-size: 1rem;
	}

}


@media screen and (max-width: 940px) {


	html {
		font-size: 16px;
	}

	.site-branding {
		display: block;
	}

	.site-branding div, .site-branding nav, .site-branding .site-logo, .site-branding .social, .site-branding .site-action  {
		display: block;
		width: 100%;
	}

	.modal-content {
		margin-top: 48px;
		box-shadow: none;
		max-width: 100%;
	}

	.ginger_container.top {
		top: unset;
		bottom: 0;
	}

	.main-navigation {
		position: absolute;
		top: 0;
		z-index: 10;
	}

	.menu-toggle,
	.main-navigation.toggled ul,
	.main-navigation.toggled li  {
		display: block;
	}

	.main-navigation.toggled > div > ul > li {
		border-top: 1px dotted var(--accent-color);
		margin-left: 0;
	}

	.main-navigation.toggled {
		padding-bottom: 20px;
		min-height: 69vh;
	}

	.main-navigation.toggled ul ul {
		display: none;
	}

	.main-navigation ul {
		font-size: 1rem;
		padding: 1rem;
	}

	.main-navigation a {
		padding: 10px 0;
	}


	.toggle-submenu:after {
		width: 40px;
		font-size: 1.85rem;
		top: 5px;
		 margin-left: 0;
		 right: 0;
	}

	.main-navigation ul ul {
		float: none;
		position: static;
		padding: 0 1em;
		margin-bottom: 10px;
		font-size: 0.9rem;
	}

	.main-navigation li {
		padding: 0;
	}

	.main-navigation ul li.focus > ul {
		display: block;
	}

	button.menu-toggle {
		border: none;
		background: transparent;
		color: #fff !important;
		font-size: 18px;
		font-size: 1rem;
		line-height: 1;
		padding: 0.5em;
		font-family: inherit;
		box-shadow: none;
		text-transform: uppercase;
		width: 100%;
		text-align: right;
	}

	button.menu-toggle:hover {
		background-color: transparent;
		color: #fff;
	}

	button.menu-toggle:before {
		content: '\e802';
		font-size: 36px;
		font-size: 2rem;
		margin: 0;
	}

	.main-navigation.toggled button.menu-toggle {
		padding-right: 5px;
	}

	.main-navigation.toggled button.menu-toggle:before {
		content: '\e803';
		font-size: 36px;
		font-size: 2rem;
	}

	.site-branding .social {
		position: absolute;
		top: 5px;
		left: 10px;
		z-index: 1000;
		text-align: left;
		max-width: 230px;
	}

	.social a:before {
		margin: 0;
	}

	.social a:hover, .social a:focus {
		color: #fff;
	} 

	button#searchbutton:focus {
		color: #fff !important;
	}

	.site-branding .social li {
		font-size: 27px;
		font-size: 1.5rem;
		padding: 4px 3px;
	}

	.site-branding  .site-logo img {
		width: 60%;
		max-width: 200px;
		margin: 1em;
	}

	.site-description {
		max-width: 500px;
		margin: 0em auto 2em auto;
	}

	.site-footer nav.social, .site-footer .newsletter {
		width: 100%;
		float: none;
		text-align: center;
		padding: 30px 20px;
	}

	.site-footer nav.social a:before {
		border: 3px solid;
		width: 50px;
		height: 50px;
		font-size: 0.7em;
		margin: 3px;
	}

	.site-footer .widget h1 {
		display: block;
	}

	.site-footer .widget li img {
		margin: 1em;
		max-width: 180px !important;
	}

	.site-footer .widget li a[href="https://savepondhockey.org/"] img,
	.site-footer .widget li a[href="https://wwf.fi/"] img,
	.site-footer .widget li a[href="https://www.fingo.fi"] img {
		max-width: 100px !important;
	}

	.site-content {
		position: relative;
	}

	.share {
		right: auto;
		top: auto;
		left: 0;
		bottom: 0;
		width: 70px;
		/* height: 50px; */
		text-transform: uppercase;
		padding: 10px;
		/* font-size: 13px; */
		/* font-size: 0.7rem; */
		text-align: center;
	}

	.site-main section:last-of-type > div {
		padding-bottom: 60px;
	}

	.alignleft, .alignright {
		display: block;
		float: none;
	}




	/* Home */

	.home-content h1, .page-template-page-local-group .home-content h1 {
		font-size: 36px;
		font-size: 2.25rem;
	}

	form p.half {
		float: none;
		width: 100%;
		margin:0;
	}

	.home-content input[type="submit"] {
		font-size: 20px;
		font-size: 1.1rem;
		text-overflow: ellipsis;
		max-width: 100%;
		overflow: hidden;
	}

	.volunteer {
		width: 94%;
	}

	a.news-item {
		width: 100%;
		float: none;
	}

	.news-item figure, .news-item:nth-of-type(odd) figure {
		height: 0px;
		padding-bottom: 100%;
		float: none;
	}

	.news-item figure, .news-item .news-intro {
		width: 100%;
		float: none;
	}

	.news-item .news-intro:before,
	.news-item .news-intro:after {
		display: none;
	}

	.news-item .news-intro {
		height: auto;
	}

	/* Pages & posts */

	.section-content {
		max-width: 500px;
		margin: 0 auto;
	}

	.section-content.wide {
		max-width: 100%;
		margin: 0 auto;
	}

	.block .image-text > div {
		flex-basis: 100%;
		text-align: center;
		min-height: auto;
	}


	.campaign-page .home-content > div {
		flex-basis: 100%;
		margin: 0;
	}

	.section-image {
		height:0;
		padding-bottom: 100%
	}

	.campaign-page .campaign-image {
		height: 400px;
	}

	.campaign-page .campaign-desc {
		max-width: 100%;
	}


	.section-content.social-stream-wrapper {
		max-width: 100%;
	}

	.campaign-header, .campaign-desc, .page-template-page-local-group .campaign-desc,
	.page-template-page-ilmastokiltit-main .campaign-desc, .page-template-page-ilmastokiltit-main .campaign-header {
		max-width: 500px;
		width: auto;
		float: none;
		margin: 0 auto 60px auto;
		flex-basis: 100%;
	}

	.campaign-header {
		padding: 0 10px;
	}
	
	.page-template-page-compare-policies .campaign-header {
		padding-top: 50px;
	}

	.campaign-desc {
		padding: 50px 20px;
	}

	.campaign-info {
		display: none;
	}

	.campaign-info.mobile {
		padding: 0;
		display: block;
		padding: 10px 20px;
		margin: 40px auto;
	}


	h1 {
		font-size: 2rem;
	}
	
	h2 {
		font-size: 1.5rem;
	}
	
	.archive h2.entry-title {
		font-size: 1.5rem;
	}
	
	
	h3 {
		font-size: 1.2rem;
	}

	article, .page-header {
		max-width: 500px;
		margin-left: auto;
		margin-right: auto;
		padding: 72px 24px;
		padding: 4rem 1.333rem;
	}

	.page-header {
		padding: 0 1.333rem 2rem 1.333rem;
	}

	.archive .page-header h1 {
		font-size: 25px;
		font-size: 1.4rem;
	}


	.volunteer, div.ehdokas {
		width: 50%;
		margin-bottom: 40px;
	}

	div.ehdokas {
		margin-bottom: 0;
		padding-bottom: 30px !important;
	}

	
    .entry-header:before, .entry-header:after,
    .entry-footer:before, .entry-footer:after {
    	/* border-left:15px solid transparent; */
    	/* border-right: 15px solid transparent; */
    	left:calc(50% - 35px) !important;
    	margin-left: 0 !important;
    } 
    
    .entry-header:before, .entry-footer:before  {
    	/* border-top-width: 15px; */
    }
    
    .entry-header:after, .entry-footer:after {
    	/* border-bottom-width: 15px; */
    }
    
    .entry-header:before {
    	margin-top: -35px !important;
    }
    
    .entry-header:after {
    	top: 0 !important;
    
    }
    
    .entry-footer:before {
    	bottom: 0px !important;
    }
    
    .entry-footer:after {
    	margin-bottom: -35px !important;
    }
    
    .home-content .entry-footer:after {
    	
    }


	/* Ilmastokalenteri kuukausinakyma */


	.ilmastokalenteri-kk {
		background-size: contain;
		background-repeat: no-repeat;
		background-position: top;
		background-color:#2f3068;
	}

	.ilmastokalenteri-kk h1{

		padding: 20px;
	}

	.ilmastokalenteri-kk p{
		margin: 55% auto 4rem auto;
		padding-left: 5rem;
		font-size: 1.3rem;
	}

	.ilmastokalenteri-subscribe {
		padding-left: 20px;
		padding-right: 20px;
	}

	.ilmastokalenteri-googlecal {
		width: auto;
		float: none;
		margin: 20px;
		padding: 0px;
	}

	.ilmastokalenteri-hints {
		width: auto;
		padding-left: 20px;
		padding-right: 20px;
	}

	a.month-link {
		display: none;
	}

	/* Ilmastokiltit */


	.page-template-page-ilmastokiltit-main .home-content {
		display: block;
		width: 100%;
	}

	.page-template-page-ilmastokiltit-main .campaign-desc,
	.page-template-page-ilmastokiltit-main .campaign-header {
		display: block;
	}

	.page-template-page-ilmastokiltit-main .campaign-desc {
		margin: 0 auto;
		background: #fff;
	}

	.page-template-page-ilmastokiltit-main .campaign-header {
			margin: 0px auto;
			padding-bottom: 100%;
	}

	.post-type-archive-sitoumus .site-main:before {
		position: static;
	}

}



@media screen and (max-width: 500px){

	.news-item figure, .news-item:nth-of-type(odd) figure {
		overflow: hidden;
	}
}	
