/*
Theme Name: Digitaali 2026
Author: Digitaali Oy
Version: 2026.1
*/
body {
	background-color: #f3f4f0;
	font-family: 'Montserrat', sans-serif;
}

@media (min-width: 1300px) {
	.container { width: 1260px;}
}

.site-main { padding: 4rem 0;}

@media (min-width: 992px) {
	.site-main { padding: 5rem 0;}
}

body.home .site-main { padding-bottom: 0; }
.page-title { text-align: center }
.caret { color: #2f575a; }

.fiiliskuva {
	background-color: #E8E8E8;
	font-weight: 300;

	 display: flex;
  	align-items: center;
  	justify-content: center;
}
.fiiliskuva.has-carousel { display: block; }
.fiiliskuva, .carousel .item .image {
	background-position: top center;
	background-size: cover;
	background-repeat: no-repeat;

	height: 550px;
}
/* Kirjakauppiaiden osiossa matalampi yläosa. ärsyttää ku pomppii */
.page-template-template-page-members .fiiliskuva {
	height: 370px;
}
.fiiliskuva a.btn { opacity: 0.95 }

@media (min-width: 992px) {
	.fiiliskuva, .carousel .item .image {
		height: 650px;
	}
}
@media (min-width: 1200px) {
	.fiiliskuva, .carousel .item .image {
		height: 750px;
	}
}

#masonry-wrap {
	margin-bottom: 2rem; 
}
.carousel-indicators li, .carousel-indicators li.active {
	height: 5px;
	width: 30px;
	margin: 2px;
	background-color: #fff;
	border-radius: 0;
	border: 0;
}
.carousel-indicators li.active { background-color: #008e94 }
#main-menu-bar {
	position: absolute;
	width: 100%;
	z-index: 1;
	top: 0;
    left: 0;
    
}

ul.main-menu > li > a {
	text-transform: uppercase;
	font-weight: 600;
}

@media (min-width: 992px) {
	ul.main-menu { justify-content: space-between; }
	ul.main-menu > li > a {
		padding-top: 1rem;
		padding-bottom: 1rem;
		font-size: .85rem;
	}
}

ul.main-menu ul.dropdown-menu > li > a {
	padding-top: .5rem;
	padding-bottom: .5rem;
}

ul.dropdown-menu li {
    padding-top: 5px;
    padding-bottom: 5px;
}

ul.main-menu ul.dropdown-menu > li { 
	padding-top: 0;
	padding-bottom: 0;
}

@media (max-width: 991px) {
	ul.main-menu ul.dropdown-menu a.dropdown-item {
		white-space: normal;
	}
}
@media (min-width: 992px) {

	ul.main-menu ul.dropdown-menu { 
		/* max-width: 350px; */
		padding-top: 25px;
		background-color: transparent;
		border: 0;
		box-shadow: none;
	}

	ul.main-menu > li > ul.dropdown-menu::before { 
		content: "";
		position: absolute;
		top: 5px;
		/* left: 50%;
		transform: translateX(-50%); */
		left: 30%;
		transform: translateX(-30%);

		border-left: 20px solid transparent;
		border-right: 20px solid transparent;
		border-bottom: 20px solid #fff;
		box-shadow: none;
	}

	ul.main-menu ul.dropdown-menu > li {
		padding: .2rem 1rem;
		background-color: #fff;
	}
	ul.main-menu ul.dropdown-menu ul.dropdown-menu > li {
		padding: .2rem .5rem;
	}
	ul.main-menu > li > ul.dropdown-menu > li:first-of-type {
		padding-top: 20px;
	}
	ul.main-menu > li > ul.dropdown-menu > li:last-of-type {
		padding-bottom: 20px;
	}
	ul.main-menu ul.dropdown-menu li a {
		padding: 5px 0;
		text-decoration: none;
	}

	ul.main-menu ul.dropdown-menu ul.dropdown-menu a.dropdown-item {
		font-size: .9rem;
	}

	
}

ul.main-menu ul.dropdown-menu li a {
	white-space: normal;
	font-weight: 500;
}

ul.dropdown-menu li.current_page_item a.dropdown-item {
	text-decoration: none;
}

ul.main-menu ul.dropdown-menu li.current_page_item > a:not(.separate-dropdown-toggle),
ul.link-list > li.current_page_item > a:not(.separate-dropdown-toggle) {
	border-bottom: 2px solid #2f575a;
	background-color: transparent;
	color: #000;
}

body.single-post .date-styled { font-size: 1.1rem;}
/*
body.admin-bar #main-menu-bar {
	top: 33px;
}
*/

.strong, b, strong { font-weight: 600; }

@media (min-width: 576px) and (max-width: 991px) {
	.container, .container-sm {
		max-width: 100%;
	}
}

.lead {
    line-height: 1.2;
	font-family: "Montserrat",Arial,sans-serif;
	font-size: 1.3rem;
	font-weight: 500;
}

.main-article {
	padding-top: 0;
	padding-bottom: 0;
}
.entry-content ul, .entry-content li {
	list-style-type: none;
	margin-left: 0;
	padding-left: 0;
}
.entry-content ul:not(.list-unstyled) li {
	background-image: url('images/icon-check2.png');
	background-repeat: no-repeat;
	background-size: 15px 15px;
	background-position: 0 5px;
	padding-left: 28px;
	margin-bottom: 5px;
}

@media (min-width: 992px) {
	ul.main-menu > li > a {
		padding-left: 0 !important;
	}
}
@media (min-width: 992px) and (max-width: 1199px) {
	ul.top-menu > li > a,
	ul.main-menu > li > a,
	.lang-selector a {
		font-size: 14px;
	}
	
}


#main-menu-bar .top-bar {
	background-color: #fff;
	min-height: 53px;
}
#main-menu-bar .nav-wrapper {
	margin-left: 20px;
	margin-right: 20px;
}
#main-menu-bar .top-bar .nav { float: right; }
#main-menu-bar .top-bar ul.nav li { display: inline-block; }
#main-menu-bar .top-bar ul.nav li a {
	font-size: 14px;
	color: #000;
}
.top-bar .lang-selector a { font-size: 14px; }

@media (min-width: 768px) {

	#main-menu-bar .top-bar ul.nav li a:hover {
		color: #2f575a;
		background-color: transparent;
	}
	#main-menu-bar .top-bar ul.nav li.active a {
		color: #2f575a;
		background-color: transparent;
	}
}
@media (min-width: 1200px) {
	#main-menu-bar .top-bar ul.nav li a,
	.top-bar .lang-selector a {
		font-size: 16px;
	}
}

#main-menu-navbar { 
    margin-bottom: 0;
    /* background-color: rgba(248, 248, 248, 1); */ 
} 

@media (min-width: 992px) {
	#main-navbar { padding: 0;}
}

.navbar-brand img {
	width: 150px;
}

@media (min-width: 300px) {
	.navbar-brand img {
		width: 220px;
	}
}

#main-navbar a.navbar-brand {
	margin-top: .2rem;
	padding-top: 0;
	padding-bottom: 0;
}

.top-menu li a {
	padding-left: 2px;
	padding-right: 2px;

}

@media (min-width: 1200px) {
	.top-menu li a {
		padding-left: 5px;
		padding-right: 5px;
	}
}
@media (min-width: 992px) { 
	.top-menu {
		font-size: 16px;
	}
}



/*
.top-logo {
	max-width: 150px;
	margin: 4px 0 6px 0;
}
*/
/*
@media (min-width: 768px) and (max-width: 991px) {
	.top-logo { margin-top: 9px; }
}

@media (min-width: 992px) {
	.top-logo { max-width: none;}
}
*/

#menu-ylavalikko { margin-top: 9px; }


@media (min-width: 992px) {
	.lang-selector {
		margin: .6rem 0 0 1rem;
	}
}

.lang-selector a { 
	color: #090909;
	text-decoration: none;
	font-weight: 600;
}
.lang-selector a:hover { 
	color: #2f575a;
}
.navbar-light .navbar-nav .active>.nav-link, 
.navbar-light .navbar-nav .nav-link.active, 
.navbar-light .navbar-nav .nav-link.show, 
.navbar-light .navbar-nav .show>.nav-link {
	color: #2f575a;	
}

.ingressi {
	display: block;
	font-size: 18px;
	/* margin-bottom: 35px; */
	/* margin-bottom: 1.5rem; */
	margin-bottom: 3rem;
	line-height: 1.5;
	color: #294547;
}

@media (max-width: 767px) {
	.navbar#main-menu-navbar {
		position: fixed;
		width: 100%;
		top: 0;
		left: 0;
		max-height: 100%;
		overflow-y: auto;
	}
}



@media (min-width: 768px) {
	.ingressi { font-size: 20px; }
	#main-menu-navbar {
		/* background-color: rgba(248, 248, 248, 0.7); */
		border: 0;
	}

}

/* Koitetaan mahduttaa valikko tableteille */
@media (min-width: 768px) and (max-width: 1199px) {
	/*
	#masthead .container {
		width: 100%;
		padding-left: 0;
		padding-right: 0;
	}
	*/
}
@media (min-width: 992px) and (max-width: 1100px) {
	.navbar {
		min-height: auto;
	}
	.navbar-collapse {
		padding-left: 0;
		padding-right: 0;
	}

}

/*
@media (min-width: 768px) {
	.navbar-nav > li > a {
		font-size: 12px;
		padding-left: 8px;
		padding-right: 8px;
	}
}
@media (min-width: 868px) {
	.navbar-nav > li > a {
		font-size: 14px;
		padding-left: 10px;
		padding-right: 10px;
	}
}


@media (min-width: 992px) {
	.navbar-nav > li > a {
		font-size: 16px;
	}
}
@media (min-width: 1200px) {
	.navbar-nav > li > a {
		font-size: 17px;
	}
}

*/

@media (min-width: 992px) {
	#top-carousel .carousel-control-prev,
	#top-carousel .carousel-control-next {
		display: none;
	} 
}

body.home .ingressi {
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
	font-family: bilo, sans-serif; /* 'Amiko', Arial, sans-serif; */
	line-height: 1.1;
	color: #214c50;
	font-weight: 800;
	/* font-weight: 400; */
	margin-bottom: 1.5rem;
}

h1, .h1 {
	color: #b87954;
}
h1, .h1, h2, .h2, h3, .h3 { 
	font-weight: 800;
}
h4, .h4, h5, .h5, h6, .h6 { line-height: 1.2; }
.wpcf7-form .wpcf7-form-control-wrap { padding: 0; }

/*
h1 { margin: 30px 0 21px 0; }
h2 { margin: 20px 0 10px 0; }
h3 { margin: 18px 0 9px 0; }
h4 { margin: 16px 0 7px 0; }
*/

h1 small {
	color: inherit;
	font-size: 50%;
	line-height: 1.2;
	display: block;
}
p {
	line-height: 1.5;
	margin-bottom: 1.5rem;
}
p, li, li a { line-height: 1.5; }

.entry-title { 
	/* margin-bottom: 20px; */
	margin-bottom: 1.5rem;
}
.date { color: #2f575a }


/*
h1, .h1 { font-size: 32px; }
h2, .h2 { font-size: 26px; }
h3, .h3 { font-size: 24px; }
h4, .h4 { font-size: 22px; }
h5, .h5 { font-size: 20px; }
h6, .h6 { font-size: 18px; }
*/

h1, .h1 { font-size: 1.8rem; }
h2, .h2 { font-size: 1.5rem; }
h3, .h3 { font-size: 1.3rem; }
h4, .h4 { font-size: 1.1rem; }
h5, .h5 { font-size: 1rem; }
h6, .h6 { font-size: 1rem; }


@media (min-width: 992px) {
	h1, .h1 { font-size: 2.8rem; }
	h2, .h2 { font-size: 2rem; }
	h3, .h3 { font-size: 1.5rem; }
	h4, .h4 { font-size: 1.3rem; }
	h5, .h5 { font-size: 1.2rem; }
	h6, .h6 { font-size: 1rem; }
	/* h1, .h1 { font-size: 1.8rem; }
	h2, .h2 { font-size: 1.4rem; }
	h3, .h3 { font-size: 1.2rem; }
	h4, .h4 { font-size: 1.1rem; }
	h5, .h5 { font-size: 1rem; }
	h6, .h6 { font-size: 1rem; } */
}

/* @media (min-width: 1200px) {
	h1, .h1 { font-size: 42px; }
	h2, .h2 { font-size: 30px; }
	h3, .h3 { font-size: 24px; }
	h4, .h4 { font-size: 20px; }
	h5, .h5 { font-size: 19px; }
	h6, .h6 { font-size: 18px; }
} */

.navbar-nav  > li.active > a,
.top-bar .nav > li.active > a,
.navbar-nav  > li > a:hover, .navbar-nav  > li > a:focus, .navbar-nav  > li > a:active,
li.current-page-ancestor > a {
    /*
    background-color: #ededed;
    */
}


#main-navi > ul > li > a {
	color: #000000;
	text-transform: uppercase;
}
#main-navi .lang-selector {
	float: right;
	margin-bottom: 20px;
}

#main-navi ul.dropdown-menu li {
	padding-top: 5px;
	padding-bottom: 5px;
}

ul.main-menu .dropdown-menu {
	background-color: transparent;
}
ul.main-menu .dropdown-menu .dropdown-item:focus, 
ul.main-menu .dropdown-menu .dropdown-item:hover {
	background-color: transparent;
}

@media (min-width: 992px) {

	ul.main-menu .dropdown-menu {
		background-color: #fff;
	}

	ul.main-menu .dropdown-menu .dropdown-item:focus, 
	ul.main-menu .dropdown-menu .dropdown-item:hover {
		background-color: #fff;
	}

	/* .menu-item-has-children:hover > .dropdown-menu { display: block; } */
	#main-navi .dropdown-menu:before {
		content: "";
		position: absolute;
		top: 5px;
		left: 50%;
		transform: translateX(-50%);

		border-left: 20px solid transparent;
		border-right: 20px solid transparent;
		border-bottom: 20px solid #fff;
		box-shadow: none;

	}
	#main-navi ul.dropdown-menu {
		background-color: transparent;
		border: 0;
		padding-top: 25px;
		box-shadow: none;
	}
	#main-navi ul.dropdown-menu li {
		background-color: #fff;
		padding-left: 20px;
		padding-right: 20px;
	}
	#main-navi ul.dropdown-menu li:first-of-type { padding-top: 20px; }
	#main-navi ul.dropdown-menu li:last-child { padding-bottom: 20px; }
	#main-navi ul.dropdown-menu li > a { 
        padding: 5px 0;
        max-width: 300px;
        white-space: normal;
    }
	#main-navi ul.dropdown-menu li > a:hover {
		color: #2f575a;
		background-color: transparent;
	}

}

ul.link-list > li > a {
	padding: 5px 0;
	color: #2f2f2f;
	text-decoration: none;
	padding-bottom: 0;
}
ul.link-list > li {
	padding-top: 5px;
	padding-bottom: 5px;
}
ul.link-list li.current_page_item > a,
ul.link-list li.active > a,
ul.link-list > li  a:hover,
ul.link-list > li  a:active  {
	border-bottom: 2px solid black; 
}
#sidebar .dropdown-menu { padding: 10px; }
#main-navi ul.dropdown-menu li.active > a, ul.link-list > li.current_page_item > a {
	border-bottom: 2px solid #2f575a;
	background-color: transparent;
	color: #000;
}

@media (max-width: 991px) {
	.widget-area .dropdown {

	}
	/*
	.widget-area .dropdown button.btn {
		display: block;
		margin: auto;
	}
	*/
}

.navbar-toggle .icon-bar { background-color: #008e94; }
.navbar-toggle:hover, .navbar-toggle:focus, .navbar-toggle:active { background-color: #008e94; }
.navbar-toggle:hover .icon-bar, .navbar-toggle:focus .icon-bar, .navbar-toggle:active .icon-bar { background-color: #fff; }

/*
@media (max-width: 767px) {
	h1, .h1 { font-size: 35px; }
	h2, .h2 { font-size: 30px; }
	h3, .h3 { font-size: 26px; }
	h4, .h4 { font-size: 22px; }
	h5, .h5 { font-size: 20px; }
	h6, .h6 { font-size: 18px; }
}
*/
.btn.btn-default {
	color: #090909;
	border-color: #2f575a;
}
.btn.btn-default:hover, a.btn.btn-default:active, a.btn.btn-default:focus {
	color: #fff;
	background-color: #2f575a;
}
.btn-primary:hover, .btn-primary:active, .btn-primary:focus {
	color: #fff;
}
.btn.btn-secondary {
	/* background-color: #f4f4f4; */
	background-color: #d7d8cc;
	color: #2f575a;
}
.btn {
	display: inline-block;
	max-width: 220px;
	padding: .8rem 1.2rem;
	text-transform: uppercase;
	color: #fff;
	border: 0;
	/* border: 2px solid #fff; */
	line-height: 1.2;
}
.btn:hover {
	opacity: .5;
}
.btn::after {
	content: " \00BB";
}
.btn.btn-white:hover { border-color: #090909 }

a.btn-loadmore {
	display: block;
	float: none;
	margin: auto;
	margin-top: 40px;
	text-align:center;
}
a.btn-loadmore:hover, a.btn-loadmore:active, a.btn-loadmore:focus {
	background-color: #c8c8c8;
	color: #fff;
}
img { max-width: 100% }

.section-Y-paddings {
	padding-top: 4rem;
	padding-bottom: 4rem;
}

@media (min-width: 992px) {
	.section-Y-paddings {
		padding-top: 6rem;
		padding-bottom: 6rem;
	}
}
.pt-6, .py-6 {
	padding-top: 6rem;
}
.pb-6, .py-6 {
	padding-bottom: 6rem;
}
/*
article, section, footer {
	padding-top: 20px;
	padding-bottom: 20px;
}
@media (min-width: 768px) {
	article, section, footer {
		padding-top: 5rem;
		padding-bottom: 5rem;
		padding-top: 60px;
		padding-bottom: 60px;
	}
}
*/

/* Ajankohtaista sivulla aukinaisella artikkelilla turha päddingi päällä */
.page-template-template-page-ajankohtaista .container > article.hentry {
	padding-top: 0;
}

@media (min-width:1200px){
    .auto-clear .col-lg-1:nth-child(12n+1){clear:left;}
    .auto-clear .col-lg-2:nth-child(6n+1){clear:left;}
    .auto-clear .col-lg-3:nth-child(4n+1){clear:left;}
    .auto-clear .col-lg-4:nth-child(3n+1){clear:left;}
    .auto-clear .col-lg-6:nth-child(odd){clear:left;}
}
@media (min-width:992px) and (max-width:1199px){
    .auto-clear .col-md-1:nth-child(12n+1){clear:left;}
    .auto-clear .col-md-2:nth-child(6n+1){clear:left;}
    .auto-clear .col-md-3:nth-child(4n+1){clear:left;}
    .auto-clear .col-md-4:nth-child(3n+1){clear:left;}
    .auto-clear .col-md-6:nth-child(odd){clear:left;}
}
@media (min-width:768px) and (max-width:991px){
    .auto-clear .col-sm-1:nth-child(12n+1){clear:left;}
    .auto-clear .col-sm-2:nth-child(6n+1){clear:left;}
    .auto-clear .col-sm-3:nth-child(4n+1){clear:left;}
    .auto-clear .col-sm-4:nth-child(3n+1){clear:left;}
    .auto-clear .col-sm-6:nth-child(odd){clear:left;}
}
@media (max-width:767px){
    .auto-clear .col-xs-1:nth-child(12n+1){clear:left;}
    .auto-clear .col-xs-2:nth-child(6n+1){clear:left;}
    .auto-clear .col-xs-3:nth-child(4n+1){clear:left;}
    .auto-clear .col-xs-4:nth-child(3n+1){clear:left;}
    .auto-clear .col-xs-6:nth-child(odd){clear:left;}
}

#ajankohtaista {
	padding-top: 0;
	margin-bottom: 0;
}
#ajankohtaista > .container > h2 { text-align: center; }
/* #ajankohtaista .h4 { color: #fff; } */
#ajankohtaista .section-title { 
	font-family: 'Montserrat', arial;
	font-weight: 600; 
}
#ajankohtaista .btn,
.list-article { font-size: 1.1rem; }
.list-article .btn { font-size: 1.1rem; }

.masonry article .text { 
	margin: 20px 0 22px 0;
}
.masonry article {
	padding: 0;
	background-color: #d8d8cd;
}
.masonry article .date,
.date-styled {
	display: block;
	width: 100%;
	max-width: 400px;
	text-align: left;
	padding: 0 0 .2rem 0;
	border-bottom: 1px solid #334d4f;
	color: #294446;
}
#ajankohtaista .date-styled {
	font-size: 1.2rem;
}
#ajankohtaista .texts-wrapper,
.list-article .text {
	color: #294446;
	font-size: 1.1rem;
}

.masonry article .content { padding: 15px; }
.masonry article .match-height { margin-bottom: 25px;}

@media (min-width: 768px) {
	.masonry article .content { padding: 40px; }
}

.masonry article .thumb {
	display: block;
	height: 1px;
	width: 100%;
	padding-bottom: 58%;

	background-size: cover;
	background-position: center;
	background-color: #efefef;
	background-repeat: no-repeat;
 }
.masonry article .thumb > img {
	display: none;
}

.masonry > [class*="col-"] { padding: 10px; }
.masonry { margin-bottom: 80px; }
.masonry#dg-ajax-articles-grid { margin-bottom: 0 }

/** PRELOADER */
.loader { display: none; }
#dg-ajax-articles-wrapper .loader { display: block; }
.loader,
.loader:before,
.loader:after {
  border-radius: 50%;
  width: 1.5em;
  height: 1.5em;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation: load7 1.8s infinite ease-in-out;
  animation: load7 1.8s infinite ease-in-out;
}
.loader {
  color: #2f575a;
  font-size: 10px;
  margin: 25px auto;
  position: relative;
  text-indent: -9999em;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
}
.loader:before,
.loader:after {
  content: '';
  position: absolute;
  top: 0;
}
.loader:before {
  left: -2.5em;
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
}
.loader:after {
  left: 2.5em;
}
@-webkit-keyframes load7 {
  0%,
  80%,
  100% {
    box-shadow: 0 2.5em 0 -1.3em;
  }
  40% {
    box-shadow: 0 2.5em 0 0;
  }
}
@keyframes load7 {
  0%,
  80%,
  100% {
    box-shadow: 0 2.5em 0 -1.3em;
  }
  40% {
    box-shadow: 0 2.5em 0 0;
  }
}

#mita-suomi-lukee {
	padding: 60px 0;
	text-align: center;
	background-color: #c66129;
}
#mita-suomi-lukee .btn-wrapper a {
	text-transform: uppercase;
	font-weight: 700;
	text-decoration: none;
	color: #000;
	font-size: 1.1rem;
}
#mita-suomi-lukee .btn-wrapper a:hover{
	text-decoration: underline;
}
#mita-suomi-lukee .item .caption {
	hyphens: inherit;
}
#mita-suomi-lukee .item > div { line-height: 1.3; }
#mita-suomi-lukee h2, #mita-suomi-lukee h3 { margin-top: 0 }
#mita-suomi-lukee h2, #mita-suomi-lukee h2 small { color: #000; }
#mita-suomi-lukee h3, 
#mita-suomi-lukee .h3,
#mita-suomi-lukee h4,
#mita-suomi-lukee .h4,
#mita-suomi-lukee h5,
#mita-suomi-lukee .h5,
#mita-suomi-lukee h6,
#mita-suomi-lukee .h6 { 
	color: #000;
	font-weight: 700;
}
#mita-suomi-lukee h2 small { display: block; }
#mita-suomi-lukee > .container > .row > div > .row > div > div { margin-top: 20px;}
#mita-suomi-lukee .item { margin-bottom: 2rem;}

#mita-suomi-lukee .cols { 
	max-width: 1200px;
	margin: auto;
}
#mita-suomi-lukee .label,
#mita-suomi-lukee .dg-ordered-list li::marker {
	font-weight: 700;
}

#mita-suomi-lukee .second-col .label,
#mita-suomi-lukee .second-col .dg-ordered-list li::marker {
	font-weight: 400;
}

#mita-suomi-lukee .dg-ordered-list { 
	list-style-position: inside; 
	padding-left: 0;
}
#mita-suomi-lukee .dg-ordered-list > li {
	margin-bottom: .5rem;
}

#mita-suomi-lukee .book + .publisher:before {
	content: ' | ';
}

@media (min-width: 768px) {
	#mita-suomi-lukee .dg-ordered-list { list-style-position: outside; }
	#mita-suomi-lukee .dg-ordered-list .content { padding-left: 1rem; }
	#mita-suomi-lukee .bordered-lg-row > [class*='col']:nth-child(1){
		border-right: 1px solid #000;
	}
	#mita-suomi-lukee .bordered-lg-row > [class*='col']:nth-child(2) { 
		padding-left: 5rem;
	}
}
@media (min-width: 1200px) {
	#mita-suomi-lukee .bordered-lg-row > [class*='col']:nth-child(1) { 
		padding-left: 4rem;
	}
}

@media (max-width: 768px) {
	/* Kuvituskuva, turhan iso mobiilillla turhaan */
	#mita-suomi-lukee h2 + img {
		max-width: 33%;
	}
}

@media (min-width: 768px) {
	#mita-suomi-lukee { text-align: left;}
	#mita-suomi-lukee > .container > .row > div > .row > div > div { margin-top: 0; }
	#mita-suomi-lukee > .container > .row > div > .row > div:first-child > div {
		padding-right: 10px;
		border-right: 2px solid #fff;
	}
	#mita-suomi-lukee > .container > .row > div > .row > div:nth-child(2) > div { padding-left: 30px  }
}
.btn-wrapper {
	position: relative;
	text-align: center;
}


#mita-suomi-lukee dt {
	width: 40px;
	height: 40px;
	line-height: 40px;
	background-color: #123a3c;
	border-radius: 50%;
	color: #fff;
	text-align:center;
}
#mita-suomi-lukee dt { margin: 20px auto 0 auto;}
#mita-suomi-lukee dd {
	padding-top: 10px;
	text-align:center;
}
#mita-suomi-lukee dd span { display: block; }
#mita-suomi-lukee dd span:nth-child(odd) { color: #fff; }
#mita-suomi-lukee dd span:nth-child(2) { font-weight: 700 }
#mita-suomi-lukee dd span:nth-child(3) { font-style: italic; }
#mita-suomi-lukee img {
	float: none;
	text-align: center;
	margin: auto;
}

@media (min-width: 768px) {
	#mita-suomi-lukee .dl-horizontal dt { float: left;}
	#mita-suomi-lukee .dl-horizontal dd { margin-left: 60px; }

	#mita-suomi-lukee dd {
		margin-left: 60px;
		padding-top: 18px;
		text-align: left;
	}
	#btn-view-all {
		float: none;
		margin: 25px auto 0 -45px;
	}
}

.banner {
	background-color: #fff;
	padding: 20px;
	/* border: 1px solid #d8d8d8; */
}


ul.list-unstyled > li {
	margin-bottom: 5px;
}
.file-link-list ul.list-unstyled > li {
	margin-bottom: 1.5rem;
}

#sidebar .link-list ul.children {
	list-style-type: none;
	padding-left: 15px;

	margin-bottom: 15px;
}
#sidebar .link-list > li > ul.children {
	margin-bottom: 0;
	margin-top: 15px;
}

#sidebar .link-list ul.children a {
	color: #2f2f2f;
	text-decoration: none;
}

/* aina auki
#sidebar .link-list ul.children {
	display: none;
}
#sidebar .link-list li.active > ul.children {
	display: block;
}*/
ul.children li {
	margin-top: 3px;
	margin-bottom: 3px;
}

@media (min-width: 1200px) {
	#sidebar ul.list-unstyled {
		font-size: 15px;
	}
	#sidebar ul.list-unstyled > li {
		margin-bottom: 10px;
	}
}

footer a { color: #111111 }
footer .site-info { margin: 40px 0 40px 0 }
.site-footer { color: #fff; }
.site-footer a,
body.dg-custom-theme .site-footer a:not(.btn) { color: #fff; }
.site-footer * { color: inherit; }


.site-footer .nav-link {
	padding-left: 0;
}

.site-footer a:not(.btn):active, .site-footer a:not(.btn):hover,
body.dg-custom-theme .site-footer a:not(.btn):active, .site-footer a:not(.btn):hover {
	color: #d7d8cc;
}
	
footer ul.menu,
footer ul.menu li {
	list-style-type: none;
	margin: 0;
	padding: 0;
}
footer ul.menu { padding-top: 25px; }
footer ul.menu > li > a {
	text-decoration: none;
	line-height: 28px;
}
footer ul.menu > li > a:hover, footer ul.menu > li.current-menu-item > a { text-decoration: underline; }
@media (min-width: 992px) {
	footer > .container > .row > div:nth-child(2) {
		border-left: 2px solid #ba855e;
	}
	footer ul.menu {
		margin-top: 0;
		padding: 0;
	}
	footer > .container > .row > div:nth-child(2) { padding-left: 5rem; }
}
footer .design-by { margin-top: 20px; }
footer .design-by a {
	color: #d7d8cc !important;
	text-decoration: underline;
}
.entry-header { text-align: center }
.entry-header .date { text-align: left; }
.entry-header img { margin-bottom: 40px; }
section#personnel {
	margin-top: 0;
	padding-top: 0;
}
section#personnel [class*="col-"] { margin-top: 40px }
/* section#personnel a { color: #151515; } */

.person { 
	margin-bottom: 2rem;
	text-align: center; 
	line-height: 1.4;
}
.person .info {
	margin: auto;
	max-width: 300px;
}

.person .image {
	width: 180px;
	height: 180px;
	margin: 0 auto 2rem auto;
	-webkit-border-radius: 50%;
	-moz-border-radius: 50%;
	border-radius: 50%;

	background-repeat: no-repeat;
	background-size: cover;
}

@media(min-width: 992px) {
	.person .image {
		width: 250px;
		height: 250px;	
	}
}

#personnel .person .image { 
	width: 180px;
	height: 180px;
}


.person .role {
	margin-bottom: .1rem;
	color: #334d50;
	text-transform: none;
	font-weight: 700;
}
@media(min-width: 992px) {
	.person .role { font-size: 1.2rem;}
}

.person-name { font-weight: 500; }
.person .info, 
.person a[href^="tel:"], 
.person a[href^=mailto] { color: #334d50; }

.event-nosto { padding: 20px 0 }
.event-nosto:hover { cursor: pointer;}
.event-nosto .title { margin-top: 20px }
.event-nosto .event-image-container {
	display: flex;
	height: 250px;
	align-items: center;
 	justify-content: center;
	/* background-color: #f5f5f5; */
	background-color: #e3e3e3;
}
.event-nosto:hover .event-image-container,
.event-nosto:active .event-image-container { background-color: #c8c8c8; }
.event-nosto .event-image-container img {
	max-width: 70%;
	max-height: 70%;
}
@media (max-width: 991px) {
	#events {
		margin-left: 0;
		margin-right: 0;
	}
}

.masonry .grid-item {
	position: relative;
}
.masonry .grid-item > .list-article {
	width: 100%;
	height: 100%;
}

#dg-ajax-articles-wrapper { margin-bottom: 5rem; }

#events > .grid-item { padding: 0 10px;}
.grid-item.active:before {
    position: absolute;
    display: block;
    content: "";
    z-index: 2;
    bottom: -20px;
    left: 50%;

    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 20px solid #f5f5f5;
    margin-left: -20px;
}
#ajax-singleview {
	position: relative;
	margin-top: 20px;
	margin-bottom: 30px;
}
#ajax-singleview .entry-header { text-align: left; }
#ajax-singleview .entry-header .date { font-size: 18px; }
#ajax-singleview .entry-title {
	/* color: #090909; */
	background-image: url('images/border-gray.png');
	background-repeat: no-repeat;
	background-position: left bottom;
	padding-bottom: 15px;
	margin-top: 10px;
	margin-bottom: 30px;
}
#ajax-singleview .content {
	padding: 30px;
	/* background-color: #f5f5f5; */
	background-color: #e3e3e3;
	margin-bottom: 20px;
}
@media (min-width: 768px) {
	#ajax-singleview .content { padding: 40px;}
}
#ajax-singleview .content article {
	padding: 0;
	margin: 0;
}
body.page-template-template-page-ajankohtaista .entry-title, .single .entry-title { text-align: left; }

/* Mitä suomi lukee taulukko */
.table-responsive.booklist,
.table.no-borders>thead>tr>th,
.table.no-borders>tbody>tr>th,
.table.no-borders>tfoot>tr>th,
.table.no-borders>thead>tr>td,
.table.no-borders>tbody>tr>td,
.table.no-borders>tfoot>tr>td {
	border: 0;
}
.table .heading { padding: 20px 0 5px 0; }

.booklist table tr + tr .dg-header {
	margin-top: 2rem;
}

.booklist table {
	margin-bottom: 4rem;
}

.booklist table > tbody > tr > td,
.booklist table > tr > td {
	padding: 2px 8px;
}
@media (min-width: 768px) {
	.booklist table > tbody > tr > td,
	.booklist table > tr > td {
		padding: 4px 8px;
	}
}
.booklist table tr td:nth-child(1) {
	padding-top: 16px;
	font-size: 120%;
}
@media (min-width: 768px) {
	.booklist table tr td:nth-child(1) {
		padding: 4px 8px 4px 0;
		font-size: 100%;
	}
}
.booklist table tr td:nth-child(1),
.booklist table tr td:nth-child(3) {
	font-weight: bold;
}
.booklist table tr td:nth-child(1),
.booklist table tr td:nth-child(3) { color: #2f575a; }
.booklist table tr td:nth-child(4) { font-style: italic }

/* @media (max-width: 767px) {
	.booklist h2 {
		text-align: center;
	}
} */


@media(max-width: 767px) {
	form .row.no-gutter > [class*="col-"] {
		padding-left: 0;
		padding-right: 0;
	}
	.table * {
		display: block;
		float: none;
		text-align: center;
	}
	.table .book-ranking { padding-top: 25px;}
}
.page-numbers {
	display: inline-block;
	padding: 5px 10px;
	background-color: #f5f5f5;
}
.page-numbers:hover { text-decoration: none; }
.page-numbers.current, .page-numbers:hover {
	background-color: #218f96;
	color: #fff;
}
.pull-down { margin-bottom: -70px; }
section#banners { background-color: #e5e5de }
section#banners [class*="col-"] {
	margin-top: 20px;
	margin-bottom: 20px;
}
@media (min-width: 992px) {
	section#banners [class*="col-"] {
		margin-top: 0;
		margin-bottom: 0;
	}
}
.banner {
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner > img {
	max-width: 70%;

	object-fit: scale-down; /* Older FF aspect ratio fix */
	flex: 0 0 auto; /* IE aspect ratio fix */
}
#tiedotteet-form { padding-top: 0; }
#tiedotteet-form .title {
	text-align: center;
	margin: auto;
}
#tiedotteet-form form {
	margin: auto;
	width: 100%;
	max-width: 800px;
}

#tiedotteet-form input:not([type="checkbox"]) { width: 100%; }

aside section { padding: 0; }
.tablepress tfoot th, .tablepress thead th {
    background-color: #224d50 !important;
	color: #fff;
}
.tablepress tbody td {
	color: #1d1d1b;
}

body.page-id-168 .tablepress tbody > tr > td:nth-child(1) {
	border-right: 1px solid #1d1d1b;
}

.tablepress-table-description h3 {
	font-size: 1.4rem;
}

@media (min-width: 992px) {
	.tablepress-table-description h3 {
		font-size: 1.8rem;
	}
}

/* .tablepress tbody tr td:nth-child(2) { font-weight: 600; } */

.tablepress.tablepress-id-5 tbody tr td:nth-child(2) { font-weight: 400; }
.tablepress.tablepress-id-5 tbody tr td:nth-child(4) { text-transform: uppercase; }

.tablepress .even td { background-color: #d8d8cc !important;}
.tablepress .odd td { background-color: #e5e5de !important;}
.tablepress tbody td, .tablepress tfoot th { border-top: 0 !important;}
.tablepress thead th { border-bottom: 0 !important;}
.tablepress-table-description h3 {
	text-align: center;
}
.tablepress-table-description h3 small {
	font-size: .85rem;
	text-transform: uppercase;
	color: #1d1d1c;
}

.dropdown button {
	background: transparent;
	border: 2px solid #008E93;
	padding: 10px 15px 10px 20px;
}
.dropdown button .caret { margin-left: 10px; }
.dropdown button:hover, .dropdown button:active, .dropdown button:focus {
	background-color: #008E93;
	color: #fff;
}
.carousel-indicators { z-index: 2; }
.member-links { text-align: right }
#wpmem_restricted_msg, #wpmem_login, #wpmem_reg {
	max-width: 700px;
	margin: auto;
}
legend {
	border: 0;
	padding-bottom: 20px;
}

.page-members ul li {
	background-image: none;
	margin: 0;
	padding: 0;
}
.members-menu-container { text-align: center; }
#wpmem_login { text-align: left; }
.wpmem_msg { margin: auto }
ul.members-menu {
	display: inline-block;
}
ul.members-menu li { float: left; }
.post-603 .entry-content { text-align: center }
ul.members-menu li.current-page-ancestor a { background-color: transparent }
ul.members-menu li.current_page_item a { background-color: #eee }
span.req { padding: 0 5px; }
#wpmem_reg .noinput {
	color: #989898 !important;
	width: 100% !important;
	background-color: #F5F5F5;
}
.checkbox-newsletter {
	display: block;
	margin: 10px 0;
}
.checkbox-newsletter .wpcf7-list-item, .checkbox-tos .wpcf7-list-item {
	display: block;
	margin: 4px 0;
}
.wpcf7-list-item {
	display: block;
}
.wpcf7-list-item-label { padding-top: 2px; }
a.btn-big {
	display: inline-block;
	max-width: none;
	padding: 20px 45px;
	color: #fff;
	/* background-color: rgba(0, 142, 148, 0.9); */
	background-color: #2f575a;
	text-decoration: none;
}
a.btn-big:hover {
	background-color: #2f575a; /* background-color: rgba(0,101,105, 0.9); */
	text-decoration: none;
}
#ajankohtaista .bg {
	background-color: #d7d8cc;
}

/** Tablepress */
/* Vuoden libristi-palkitut*/


/*
#tablepress-2 tbody tr.row-2,
#tablepress-2 tbody tr.row-28,
#tablepress-2 tbody tr.row-35 {
	margin-top: 20px;
	border-bottom: 0;
	font-weight: 700;
}
#tablepress-2 tbody tr.row-2 .column-1,
#tablepress-2 tbody tr.row-28 .column-1,
#tablepress-2 tbody tr.row-35 .column-1 {
	padding-top: 30px;
	padding-bottom: 10px;
}
#tablepress-2 tbody tr.row-2 + tr td,
#tablepress-2 tbody tr.row-28 + tr td,
#tablepress-2 tbody tr.row-35 + tr td { border-top: 0; }
*/
.heading-row { 
	font-weight: bold;
	margin-top: 2rem;
}


#bottom-links a { font-size: 14px;}

.tiny-field { max-width: 100px; }
img.aligncenter {
	display: block;
	margin: auto;
}


/** Kirjan ja ruusun päivä-formi */
.page-id-1054 .wpcf7-form {
	max-width: 600px;
	margin: auto;
}

button[disabled], html input[disabled] { opacity: 0.3 !important }
button[disabled]:hover, input[disabled]:hover {
	background: inherit;
}
input[type=submit]:disabled:hover,
button:disabled:hover {
	background: inherit;
	color: inherit;
}
span.wpcf7-list-item { margin-left: 0; }
.gdpr-box { margin: 1rem 0; }

.thin-content {
	max-width: 800px;
	margin: auto;
}
.page-id-19 .thin-content {
	max-width: 1000px;
}
.caption-top-bordered {
    border-top: 1px solid #008e94;
    padding-top: .4rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

body.error404 .top-hero .top-hero__image, body.is-404 .top-hero .top-hero__image, body.search .top-hero .top-hero__image {
	height: auto;
}
.btn,
.btn-big { 
	line-height: 1.3;
	text-align: center;
}
.site-main .main-content {
	padding: 0;
}
.top-hero .top-hero__image {
	min-height: 0 !important;
	padding-bottom: 0;
}

.top-hero .overlay { text-align: center;}
.top-hero .overlay .btn-big {
	margin: .5rem;
	display: inline-block;
}
@media (min-width: 500px) {
	.top-hero .overlay {
		position: absolute;
		z-index: 1;
		top: 50%;
		left: 50%;
		transform: translate(-50%,-50%);
	}
}
.site-footer { background-color: #224d50; }

body.dg-custom-theme a { color: #000; }
body.dg-custom-theme,
body.dg-custom-theme .site-main { background-color: #fbf8f0; }
body.dg-custom-theme ul.link-list { 
	font-family: bilo, sans-serif;
	font-weight: 500;
	text-transform: uppercase; 
	letter-spacing: .05rem;
}

#sidebar .link-list > li > ul.children {
	margin-top: 1.5rem;
}
#sidebar .link-list li ul.children li { 
	position: relative;
	padding-left: 1.5rem;
}
#sidebar .link-list li ul.children li a::before{ 
	content: '';
	position: absolute;
	top: 9px;
	left: 0;
	display: inline-block;
	width: .5rem;
	height: .5rem;
	background-color: #000;
	border-radius: 50%;
}

body.dg-custom-theme #sidebar .link-list li ul.children li.painetut-kirjat a::before {
	background-color: #1231e6;
}
body.dg-custom-theme #sidebar .link-list li ul.children li.aanikirjat a::before {
	background-color: #592424;
}
body.dg-custom-theme #sidebar .link-list li ul.children li.sahkokirjat a::before {
	background-color: #767445;
}
body.dg-custom-theme #sidebar .link-list li ul.children li.pokkarit a::before {
	background-color: #f05226;
}

/* body.dg-custom-theme #sidebar .link-list li ul.children li:nth-child(4n+2) a::before {
	background-color: #767445;
}
body.dg-custom-theme #sidebar .link-list li ul.children li:nth-child(4n+3) a::before {
	background-color: #592424;
}
body.dg-custom-theme #sidebar .link-list li ul.children li:nth-child(4n+4) a::before {
	background-color: #f05226;
} */

body.dg-custom-theme .main-article {
	font-family: swear-text, serif;
}
body.dg-custom-theme h1.entry-title, 
section#mita-suomi-lukee .h1 {
	font-family: swear-text, serif;
	font-weight: 700;
	font-style: normal;
	text-align: left;
	text-transform: none;
	font-size: 2.5rem;
}

@media (min-width: 992px) {
	body.dg-custom-theme h1.entry-title,
	section#mita-suomi-lukee .h1 { font-size: 3rem; }
}

body.dg-custom-theme .booklist {
	font-family: bilo, sans-serif;
	font-weight: 500;
	margin-top: 3rem;
}

body.dg-custom-theme .booklist .dg-header {
	margin-bottom: 2rem;
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	justify-content: space-between;
	border-bottom: 3px solid #000;	
}
body.dg-custom-theme .booklist .dg-header + .dg-prev-next {
	margin-bottom: 2rem;
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	justify-content: space-between;
}
body.dg-custom-theme .booklist table .dg-header {
	margin-bottom: 0;
}

.dg-prev-next a.left {
	margin-right: auto;
}
.dg-prev-next a.right {
	margin-left: auto;
}
.dg-header + .dg-prev-next a {
	text-decoration: none;
	text-transform: uppercase;
}
.dg-header + .dg-prev-next a:hover {
	text-decoration: underline;
}

body.dg-custom-theme .booklist .dg-header h2,
body.dg-custom-theme .booklist .dg-header .h2 {
	margin: 0;
	padding: 0;
}
body.dg-custom-theme .booklist .dg-header .btn-readmore {
	text-decoration: none;
	text-transform: uppercase;
	font-weight: 700;
}
body.dg-custom-theme .booklist .dg-header .btn-readmore:hover {
	text-decoration: underline;
}
body.dg-custom-theme .booklist table tr.dg-heading-row * { margin-bottom: 0; }
body.dg-custom-theme .booklist table tr td:nth-child(1), 
body.dg-custom-theme .booklist table tr td:nth-child(3) { color: #000; }

@media (min-width: 768px) {
	body.dg-custom-theme .booklist table tr td:nth-child(3) { max-width: 160px; }	
}

body.dg-custom-theme .booklist .booklist-section { margin-bottom: 3rem; }
body.dg-custom-theme .booklist .booklist-section .caption { margin-bottom: .5rem;}
body.dg-custom-theme .booklist .booklist-section ol {
	padding-left: 1.2rem;
	font-weight: 700;
}
body.dg-custom-theme .booklist .booklist-section ol li {
	list-style-type: inherit;
}
body.dg-custom-theme .booklist .booklist-section ol li .value { font-weight: 400; }
body.dg-custom-theme .booklist .booklist-section .item { 
	position: relative;
	padding-left: 60px;
}
@media (min-width: 768px) {
	body.dg-custom-theme .booklist .booklist-section .item { 
		padding-left: 0;
		padding-right: 60px;
	}
}
body.dg-custom-theme .booklist .booklist-section .item.most-sales::before { 
	content: 'Myydyin';
	display: inline-flex;
	justify-content: center;
	align-items: center;

	position: absolute;
	top: 0;
	left: 0;
	width: 42px;
	height: 42px;
	font-size: .4rem;
	font-weight: 700;
	border-radius: 50%;
	text-transform: uppercase;
	background-color: #164030;
	color: #fff;
}
@media (min-width: 768px) {
	body.dg-custom-theme .booklist .booklist-section .item.most-sales::before { 
		left: -60px;
	}
}

body.dg-custom-theme .booklist .booklist-section.painetut-kirjat .dg-header,
body.dg-custom-theme.painetut-kirjat .booklist .dg-header { border-color: #1231e6; }
body.dg-custom-theme .booklist .booklist-section.painetut-kirjat .dg-header h2,
body.dg-custom-theme .booklist .booklist-section.painetut-kirjat .dg-header a.btn-readmore,
body.dg-custom-theme.painetut-kirjat .booklist .dg-header h2,
body.dg-custom-theme.painetut-kirjat .entry-title + p.h2 {
	color: #1231e6;
}
body.dg-custom-theme .booklist .booklist-section.painetut-kirjat .item.most-sales::before {
	background-color: #1231e6;
}

body.dg-custom-theme .booklist .booklist-section.aanikirjat .dg-header,
body.dg-custom-theme.aanikirjat .booklist .dg-header { border-color: #592424; }
body.dg-custom-theme .booklist .booklist-section.aanikirjat .dg-header h2,
body.dg-custom-theme .booklist .booklist-section.aanikirjat .dg-header a.btn-readmore,
body.dg-custom-theme.aanikirjat .booklist .dg-header h2,
body.dg-custom-theme.aanikirjat .entry-title + p.h2 {
	color: #592424;
}
body.dg-custom-theme .booklist .booklist-section.aanikirjat .item.most-sales::before {
	background-color: #592424;
}

body.dg-custom-theme .booklist .booklist-section.sahkokirjat .dg-header,
body.dg-custom-theme.sahkokirjat .booklist .dg-header { 
	border-color: #767445;
	position: relative;
}
body.dg-custom-theme .booklist .booklist-section.pokkarit .dg-header h2 { position: relative;}
body.dg-custom-theme .booklist .booklist-section.sahkokirjat .dg-header h2,
body.dg-custom-theme .booklist .booklist-section.sahkokirjat .dg-header a.btn-readmore,
body.dg-custom-theme.sahkokirjat .booklist .dg-header h2,
body.dg-custom-theme.sahkokirjat .entry-title + p.h2 {
	color: #767445;
}
body.dg-custom-theme .booklist .booklist-section.sahkokirjat .item.most-sales::before {
	background-color: #767445;
}

body.dg-custom-theme .booklist .booklist-section.pokkarit .dg-header,
body.dg-custom-theme.pokkarit .booklist .dg-header { border-color: #f05226; }
body.dg-custom-theme .booklist .booklist-section.pokkarit .dg-header h2,
body.dg-custom-theme .booklist .booklist-section.pokkarit .dg-header a.btn-readmore,
body.dg-custom-theme.pokkarit .booklist .dg-header h2,
body.dg-custom-theme.pokkarit .entry-title + p.h2 {
	color: #f05226;
}
body.dg-custom-theme .booklist .booklist-section.pokkarit .item.most-sales::before {
	background-color: #f05226;
}

body.dg-custom-theme .booklist .booklist-section.painetut-kirjat .dg-header h2,
body.dg-custom-theme .booklist .booklist-section.aanikirjat .dg-header h2,
body.dg-custom-theme .booklist .booklist-section.sahkokirjat .dg-header h2,
body.dg-custom-theme .booklist .booklist-section.pokkarit .dg-header h2 {
	display: block;
	padding-right: 10px;
}

body.dg-custom-theme ul.children li {
	margin-top: .5rem;
	margin-bottom: .5rem;
}
body.dg-custom-theme #main-navi ul.dropdown-menu li.active > a, 
body.dg-custom-theme ul.link-list > li.current_page_item > a {
	border-color: #000;
	font-weight: 700;
}

body.dg-custom-theme h1,
body.dg-custom-theme .h1,
body.dg-custom-theme h2,
body.dg-custom-theme .h2,
body.dg-custom-theme h3,
body.dg-custom-theme .h3,
body.dg-custom-theme h4,
body.dg-custom-theme .h4,
body.dg-custom-theme h5,
body.dg-custom-theme .h5,
body.dg-custom-theme h6,
body.dg-custom-theme .h6 {
	font-family: 'Amiko', Arial, sans-serif;
	color: #000;
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1.3;
}

.table-icon {
	display: block;
	width: 15px;
	height: 15px;
	margin: 0 auto;
}

/* Nuoliikonit: SVG-mask, väri tulee background-colorista */
.table-icon.up,
.table-icon.down {
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
}
.table-icon.up {
	background-color: #f05226;
	-webkit-mask-image: url('images/icon-arrow-up.svg');
	mask-image: url('images/icon-arrow-up.svg');
}
.table-icon.down {
	background-color: #767445;
	-webkit-mask-image: url('images/icon-arrow-down.svg');
	mask-image: url('images/icon-arrow-down.svg');
}

.table-icon.new {
	background: #1231e6;
    border-radius: 50%;
    width: 8px !important;
    height: 8px !important;
}
.table-icon.still {
	background: #592424;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50%;
}

.booklist-legend .table-icon {
	margin-left: 0;
	margin-right: 0;
	display: inline-block;
}

body.dg-custom-theme .btn-primary {
	background-color: transparent;
	color: #000;
	border-color: #000;
}
body.dg-custom-theme .btn-primary:hover,
body.dg-custom-theme .btn-primary:active {
	background-color: #000;
	color: #fff;
}

section#mita-suomi-lukee {
	background-color: transparent;
}
section#mita-suomi-lukee .bg {
	background-color: #e3e8fa;
}


body.dg-custom-theme .print-buttons {
	margin-bottom: 3rem;
}

.container .container { width: auto; }

body.home .dg-video {
	padding-top: 6rem;
	padding-bottom: 6rem;
}

.some-icons > ul {
	display: flex;
}
.some-icons > ul > li { margin: .3rem;}
.some-icons > ul > li > a > img { width: 2rem;}

#mita-suomi-lukee .some-icons > ul { 
	justify-content: center;
	margin-top: 1rem;
}

ul.main-menu ul.dropdown-menu ul.dropdown-menu {
	display: none;
	padding-top: 0;
}
@media (min-width: 992px) { 
	ul.main-menu ul.dropdown-menu ul.dropdown-menu { display: block; }	
}
ul.main-menu ul.dropdown-menu ul.dropdown-menu.show { display: block; } 
ul.main-menu > li > ul .separate-dropdown-toggle { 
	display: block; 
}
ul.main-menu a.dropdown-item { font-size: .9rem; }
@media (min-width: 992px) {
	ul.main-menu ul.dropdown-menu { 
		min-width: 350px;
		max-width: 400px;
	}
	ul.main-menu ul.dropdown-menu > li:first-child > .separate-dropdown-toggle {
		top: 1.1rem;
	}
}
ul.main-menu > li > ul.dropdown-menu > li > ul.dropdown-menu > li > .separate-dropdown-toggle { display: none}

.ff-btn {
	background-color: transparent !important;
	color: #090909 !important;
	border-color: #2f575a !important;
	border: 2px solid #2f575a !important;
	border-radius: 0 !important;
	font-weight: 700 !important;
}

.ff-btn:hover,
.ff-btn:active {
	background-color: #2f575a !important;
	color: #fff !important;
}

/** Materiaalipankki - sivulta yläkuva veke */
body.page-id-4447 .top-hero { display: none; }

.footer-logo { 
	width: 250px;
	max-width: 95%;
}







/* Kuvagalleria artikkelissa */
article .gallery {
	display: flex;
	flex-wrap: wrap;
}
article .gallery > figure {
	margin-right: 1rem;
	flex: 1 0 21%; 
}
article .gallery.gallery-columns-3 > figure {
	flex: 1 0 31%;
}

.btn-link,
.btn.btn-link {
	padding: 0;
	color: #2f575a;
	text-decoration: none;
	text-transform: uppercase;
	font-weight: 600;
}
.btn-link:hover {
	text-decoration: underline;
}


@media (min-width: 992px) {
	.articles-list > [class*='col']:not(:last-child) .dg-custom-box .contents {
		border-right: 1px solid #334d4f;
	}
	body.home #ajankohtaista { margin-bottom: 4rem; }
}



.color-primary {
	color: #2f575a;	
}
.highlight-nosto,
.highlight-nosto .btn { font-size: 1.1rem; }

.highlight-nosto .excerpt {
	color: #334d50;
}

#ff-stream-1 {
	background-color: transparent !important;
}
.ff-loadmore-wrapper .ff-btn {
	background-color: #2f575a !important;
	color: #fff !important;
}
.ff-loadmore-wrapper .ff-btn:hover {
	background-color: #2f575a !important;
	color: #fff !important;
	opacity: .5;
}

a[href^="tel:"]{ 
	white-space: nowrap; 
}

.btn-primary:not(:disabled):not(.disabled).active, .btn-primary:not(:disabled):not(.disabled):active, .show>.btn-primary.dropdown-toggle {
	background-color: #2f575a;
	border-color: #2f575a;
}

.dg-table-wrapper {
	width: 100%;
	overflow-x: auto;
}

/* MSL haku */
.search-results .entry-header {
	text-align: left;
}
.search-results .dg-header {
	border: 0;
}
.search-results .dg-header .h2 {
	font-size: 1rem;
	text-transform: none;
}


.search-results .dg_booklist .entry-header h2 a {
	text-decoration: none;
}

.is-form-style input.is-search-input {
	border-color: #224d50 !important;
}
.is-form-style .is-search-submit path {
	fill: white;
}
.is-form-style input.is-search-submit, .is-search-icon, .is-search-icon:hover {
	background-color: #224d50;
	border-color: #224d50;
}
