/*!
Theme Name: asiantuntijahaku
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: asiantuntijahaku
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

asiantuntijahaku is based on Underscores https://underscores.me/, (C) 2012-2020 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 https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

@font-face {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  src: url('/wp-content/themes/asiantuntijahaku/fonts/raleway/Raleway-Bold.woff2');
}

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
	/*font-size: 2em;
	margin: 0.67em 0;*/
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
	color: #111;
	/*font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;*/
	font-size: 18px;
	line-height: 1.6;
}

body {
	margin-bottom:0 !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
	line-height: 1.3em;
}

.popmake-content h2 {
	font-size:32px;
}

@media screen and (max-width: 700px) {
	h1 {
		font-size:34px;
		line-height: 1.3em;
	}
	h2 {
		font-size:26px;
		line-height: 1.3em;
	}
}

p {
	margin-top: 1.0em;
	margin-bottom: 1.0em;
}

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;
	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;
}

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

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

big {
	font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
	background: #fff;
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul,
ol {
	margin: 0 0 1.5em 0;
	padding-left:20px;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

ol li {
	margin-top: 15px;
	margin-bottom: 15px;
	font-size:18px;
}

li {
	margin-top: 5px;
	margin-bottom: 5px;
}

li > ul,
li > ol {
	margin-top: 5px;
	margin-bottom: 5px;
	margin-left: 0;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

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

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

figure {
	margin: 0 0;
}

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

/* Links
--------------------------------------------- */
a {
	color: #111;
	text-decoration:none;
}

a:visited {
	color: #111;
}

a:hover,
a:focus,
a:active {
	color: #191970;
}

a:focus {
	outline: thin dotted;
}

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

a:hover {
	text-decoration: underline;
}

p a, li a {
	text-decoration: underline;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-color: #ccc #ccc #bbb;
	border-radius: 3px;
	background: #e6e6e6;
	color: rgba(0, 0, 0, 0.8);
	line-height: 1;
	padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: #aaa #bbb #bbb;
}

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 {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
}

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;
}

select {
	border: 1px solid #ccc;
	background-color:#fff;
}

textarea {
	width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

article .post-thumbnail img {
	width:100%;
	height:auto;
}
.reg-image {
	position:relative;
	height:260px;
}
.reg-image figure {
	position:absolute;
	right:0;
	top:0;
}

@media screen and (max-width: 750px) {
	.reg-image {
		height:380px;
	}
	
	.reg-padding {
		padding-top: 4.0rem !important;
		padding-right: 15px !important;
		padding-bottom: 2.0rem !important;
		padding-left: 15px !important;
	}
	.hankinnat-padding {
		padding-top: 2.0rem !important;
		padding-right: 15px !important;
		padding-bottom: 2.0rem !important;
		padding-left: 15px !important;
	}
	
	.reg-image figure, .entry-content img {
		min-width:100%;
		height:auto;
	}
}
@media screen and (max-width: 700px) {
	.reg-image {
		height:340px;
	}
}
@media screen and (max-width: 650px) {
	.reg-image {
		height:320px;
	}
}
@media screen and (max-width: 600px) {
	.reg-image {
		height:280px;
	}
}
@media screen and (max-width: 550px) {
	.reg-image {
		height:240px;
	}
}
@media screen and (max-width: 500px) {
	.reg-image {
		height:220px;
	}
}

/* sisäänkirjautuminen */
.login-form-wrapper {
	margin:1.0rem 0 15px;
	padding:0 1rem 1rem;
	border:1px solid #FCBD29;
}

.login-form-wrapper h3 {
	font-size:20px;
	padding: 0.7em 0 0.5em !important;
	margin-top:0.8em;
	margin-bottom:0.2em;
}

#login-form {
	width:100%;
	max-width:100%;
}

#login-form p {
	margin-top:0.5em;
	margin-bottom:0.5em;
}
#login-form label {
	font-size:16px;
	display:block;
	margin-bottom:0.2rem;
}
#login-form input {
	display:inline-block;
	width:100%;
	font-size:16px;
	padding:5px;
	background-color:#eee;
}
#login-form input[type="checkbox"] {
	width:auto;
}

#login-form .button {
	font-size:16px;
	color:#fff;
	background-color:#111;
	margin:0.2rem auto 0.2rem;
	padding:0.7rem 2.0rem;
	border-radius:25px;
	width:auto;
}

@media screen and (max-width: 700px) {
	.login-form-wrapper {
		margin-right:-15px;
		margin-left:-15px;
	}
}

/* sisäänkirjautuminen */

.home-hankintailmoitukset-wrapper {
	background-color: #FCBD29;
	padding:1.0rem 2.0rem;
	margin:2.0rem 0 2.0rem;
	font-weight:700;
	font-size:22px;
}

.logot {
	gap:0.5em;
}

@media screen and (max-width: 750px) {
	.logot {
		gap:0;
		width:40%;
		margin-right:auto !important;
		margin-left:auto !important;
	}	
}

/* yhteystietolaatikko 

.contact-block {
	border:1px solid #FCBD29;
}

.contact-header {
	margin-top:0;
	margin-bottom:0;
	padding: 0.70em 1.00em 0.50em !important;
	font-size:20px;
}
.contact {
	gap: 1rem;
	margin-bottom:0px;
}
.contact-text h4 {
	margin-top:0.8rem;
	margin-bottom:0.1rem;
}
.contact-text p {
	font-size:15px;
	margin-top:0.3rem;
	margin-bottom:0.6rem;
}

 yhteystietolaatikko */



/* julkiset hankinnat logot */
.custom-logot {
	margin-top:-5px !important;
	margin-bottom:0 !important;
	gap: 15px 10px !important;
	flex-wrap: wrap !important;
}
.custom-logot .wp-block-column {
	flex-basis: auto !important;
	width:32% !important;
}

.custom-logot figure, .custom-logot figure img {
	
}

@media screen and (max-width: 750px) {
	.custom-logot {
		row-gap: 20px;
		flex-direction: row:
		
	}
	.custom-logot .is-layout-flow.wp-block-column {
		width:33%;
		flex-basis: 33%!important;
	}	
	.custom-logot figure img {
		width:auto;
		margin-right:auto;
		margin-left:auto;
		min-width:10% !important;
	}
}

.custom-cover {
	height:100%;
}
/* julkiset hankinnat logot */

/* rekisteroitymislomake */
.acf-fields > .acf-field {
	padding-right:0 !important;
	padding-left:0 !important;
}
.af-page-wrap {
    border: none !important;
	border-top:1px solid #C29869 !important;
	border-bottom:1px solid #C29869 !important;
	padding:0.6rem 0 !important;
    margin: 1.2rem 0 !important;
}

.af-page-button.enabled, .af-page-button {
    background: none !important;
	border-right: none !important;
}
.af-page-button .index {
	border:1px solid #111 !important;
    background: #111 !important;
    border-radius: 23px !important;
    color: #fff !important;
    display: inline-block;
    font-size: 18px !important;
	font-weight:700;
    margin-right: 10px;
    width: 45px !important;
    height: 45px !important;
    line-height: 40px !important;
    vertical-align: middle;
}
.af-page-button.current .index {
	background: #fff !important;
	color: #111 !important;
}
.af-page-button .title {
    color:#111 !important;
	font-size: 16px !important;
	font-weight:700 !important;
	opacity: 1 !important;
}

.af-page-button:after, .af-page-button:before {
	display:none !important;
}

.af-field .af-label label {
	font-weight:700 !important;
}

.af-field input, .af-field select {
	font-size:16px !important;
	font-weight:400 !important;
	padding: 0.8rem 1.0rem !important;
}

.af-field input:disabled, .af-field select:disabled {
	background-color: rgba(239, 239, 239, 0.3);
	color:#999;
}

.af-field ul.acf-radio-list li, .af-field ul.acf-checkbox-list li {
    font-size: 16px;
	margin-top:5px;
	margin-bottom:10px;
    /*line-height: 22px;
    margin: 0;
    position: relative;
    word-wrap: break-word;*/
}

.af-field ul.acf-radio-list input[type="radio"] {
	margin-right:15px;
}

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

.af-input h3 {
	font-size:20px;
	margin-bottom:0;
}

.af-submit button {
	font-size:16px;
	color:#fff;
	background-color:#111;
	margin:0.2rem 1.0rem 0.2rem 0;
	padding:0.7rem 2.0rem;
	border-radius:25px;
	border:1px solid #111;
}

@media screen and (max-width: 750px) {
	.af-page-button span.title {
		display:none;
	}	
}
/* rekisteroitymislomake */

/* rekisteroitymistietojen muokkaus */
#reg-edit .af-page-wrap {
	display:none !important;
}

#reg-edit .af-field {
	display:block !important;
}
/*
#reg-edit .af-field:not(#reg-edit .af-field-toimipaikka-muu) {
	display:block !important;
}
*/
#reg-edit .af-field.acf-hidden {
	display:none !important;
}

#reg-edit .af-field-type-page {
	padding-top:25px;
	margin-bottom:0;
	padding-bottom:0;
}
#reg-edit .af-field-type-page label {
	font-size:24px;
}	

#reg-edit .af-submit .af-previous-button, #reg-edit .af-submit .af-next-button, #reg-edit .af-input.acf-input .af-previous-button, #reg-edit .af-input.acf-input .af-next-button {
	display:none !important;
}
#reg-edit .ohje {
	display:none !important;
}
#reg-edit .af-submit-button {
	display:inline-block !important;
}
/* rekisteroitymistietojen muokkaus */

/* etusivu */

h1.header-main {
	max-width:850px;
}

a.btn-bj {
	display:inline-block;
	font-size:16px;
	color:#fff;
	background-color:#111;
	/*max-width:180px;*/
	margin:1.0rem auto 0.2rem;
	padding:0.7rem 1.2rem;
	border-radius:25px;
	text-decoration:none;
}

@media screen and (max-width: 700px) {
	:where(.wp-block-columns.has-background) {
		padding: 1.0em 15px;
	}
	:where(.wp-block-columns.is-layout-flex) {
		gap: 1em;
	}
	
	.pum-theme-lightbox .pum-container {
		padding: 15px !important;
	}
}
/* etusivu */

/* asiantuntijaprofiili -hakukentat */
.search-filter-base {
	position:relative;
	/*background-color:#fff;*/
	background-color:#e9e9e9;
	border:1px solid #aaa;
	padding:8px;
}
.search-filter-base:has(div.search-filter-input-group div.search-filter-input-checkbox--is-active) {
	border:1px solid #000;
	background-color:#D9D9D9;
	color:#000;
}

.search-filter-label {
	margin-bottom:0;
}
.search-filter-input-text {
	/*background-color:#fff;*/
	background-color:#e9e9e9;
	border:none;
}
.search-filter-input-text .search-filter-input-text__input {
	padding-top:0 !important;
	padding-bottom:0 !important;
}
.search-filter-input-text .search-filter-icon {
	margin-top:0;
	margin-bottom:0;
}

.search-filter-input-group {
	position:absolute;
	top:45px;
	left:0;
	max-height:200px;
	z-index:9999;
	background-color:#fff;
	border:1px solid #eee;
	overflow:auto;
	padding:5px;
	
}

@media screen and (max-width: 700px) {
	.search-area .wp-block-columns.is-layout-flex {
		gap: 1.0em;
		padding-top: 0.5em !important;
	}
}

/* asiantuntijaprofiili -hakukentat */

/* asiantuntijaprofiili -hakutulos */

h2.header-searchresult {
	font-size:22px;
}
h2.header-searchresult span {
	color: #6DC3CA
}
div.result-list {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: stretch;
	align-content: flex-start;
	row-gap: 0px;
	column-gap: 2%;
	margin-top:1.0rem;
}	

div.result-list div.item {
	width:23.5%;
	color:#111;
	background-color:#FCBD29;
	text-align:center;
	margin-bottom:2%;
	padding:1.6rem 0.6rem;
	position:relative;
	word-break: break-word;
}
div.result-list div.item img.favorite-sel {
	position:absolute;
	top:15px;
	right:15px;
	width:32px;
	height:auto;
	min-width:32px;
}

div.result-list div.item a {
	text-decoration:none;
}

div.result-list div.item div.profile-pic-wrapper {
	width:175px;
	height:175px;
	border-radius:50%;
	overflow:hidden;
	margin: 0 auto 25px auto;
	background-color:#eee;
}

div.result-list div.item div.profile-pic-wrapper img {
	width:100%;
	height:auto;
}

div.result-list div.item h2 {
	color:#111;
	font-size:18px;
	font-weight:700;
	line-height:21px;
	margin-bottom:0.5rem;
	
}
div.result-list div.item div.result {
	color:#111;
	margin:0.4rem 0;
	font-size:15px;
}
div.result-list div.item div.btn {
	font-size:16px;
	color:#fff;
	background-color:rgb(42, 42, 46);
	max-width:180px;
	margin:1.2rem auto 0.2rem;
	padding:0.7rem 0;
	border-radius:25px;
}
div.result-list div.item div.btn:hover {
	background-color: #000;
}

.search-filter-style--control-load_more {
	border:none !important;
	display:block;
}
.search-filter-style--control-load_more button {
	font-size: 16px;
    color: #fff;
    background-color: #111;
    width: 200px !important;
    margin: 0.2rem auto 0.2rem auto !important;
    padding: 0.7rem 0.7rem;
    border-radius: 25px;
	text-align:center;
}
.search-filter-style--control-load_more button:hover {
	color: #fff !important;
    background-color: #111 !important;
}

@media screen and (max-width: 1000px) {
	div.result-list div.item {
		width:31%;
	}
}

@media screen and (max-width: 800px) {
	div.result-list div.item {
		width:48%;
	}
}
@media screen and (max-width: 700px) {
	
	h2.header-searchresult {
		font-size:18px;
	}
	div.result-list {
		flex-direction: column;
		column-gap: 0;
		flex-wrap: nowrap;
	}
	div.result-list div.item {
		width:100%;
		margin-bottom: 4%;
	}
	div.result-list div.item img.favorite-sel {
		width:48px;
		height:auto;
		min-width:48px;
	}
	
	
}
/* asiantuntijaprofiili -hakutulos */

/* suosikit -nappi */
a.favorites-btn {
	display:none;
	position:relative;
	left: calc(50% - 120px);
    /*max-width: calc(100vh - 100px);*/
	max-width:95%;
    padding: 8px 25px;
    position: fixed;
    text-align: center;
    text-decoration: none;
    width: 240px;
    z-index: 8;
	background-color: rgb(42, 42, 46);
	color:#fff;
    border-radius: 50px;
    bottom: 10px;
	font-size: 18px;
	font-weight:700;
	box-shadow: 0 22px 22px -22px rgba(0,0,0,.5);
}

a.favorites-btn:hover {
	background-color: #000;
}

a.favorites-btn .favorites-img {
	position:absolute;
	top:10px;
	left:20px;
	width:26px;
}

a.favorites-btn span {
	margin: 0 5px;
}

.show {
	display:block !important;
}
.hide {
	display:none !important;
}

@media screen and (max-width: 981px) {
	
	a.favorites-btn {
		bottom: 50px;
	}
	
}

@media screen and (max-width: 700px) {
	
	a.favorites-btn {
		width: 350px;
		left: calc(50% - 175px);
	}
	
}	

/* suosikit -nappi */

@media screen and (max-width: 981px) {
	.a2a_floating_style {
		display:flex;
		flex-direction: row;
		flex-wrap: nowrap;
	}
}
/* suosikit -sivu */
#favorites-container {
	position:relative;
	min-height:440px;
}

#favorites-container .overlay {
	position:absolute;
	width:100%;
	height:100%;
	z-index:99;
	background-color: rgba(254,254,254,0.75);
	transition-property: all;
    transition-duration: 1s;
	text-align:center;
	padding-top:50px;
}

#favorites-container .overlay .lds-dual-ring {
  display: inline-block;
  width: 120px;
  height: 120px;
}
#favorites-container .overlay .lds-dual-ring:after {
  content: " ";
  display: block;
  width: 104px;
  height: 104px;
  margin: 8px;
  border-radius: 50%;
  border: 12px solid #333;
  border-color: #333 transparent #333 transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}
@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* suosikit -sivu */

/* asiantuntijaprofiili-sivu */
.single-asiantuntijaprofiili .entry-content {
	max-width:1230px;
	margin:0 auto !important;
	padding:15px;
}

.single-asiantuntijaprofiili .entry-content h1 {
	line-height:1.2em;
}

.single-asiantuntijaprofiili .top-content {
	display:flex;
	flex-direction: row;
	justify-content:space-between;
	align-items: center;
	align-content: flex-start;
	column-gap: 30px;
	background-color:#eee;
	padding:30px 30px 20px;
	margin-bottom:30px;
}

.single-asiantuntijaprofiili .top-content .top-content-text {
	width:68%;
}

.single-asiantuntijaprofiili .top-content .top-content-text a {
	font-weight:700;
	text-decoration:none;
}

.single-asiantuntijaprofiili .top-content .profile-pic-wrapper {
	width:320px;
	height:320px;
	border-radius:50%;
	overflow:hidden;
	min-width:320px;
}

.single-asiantuntijaprofiili .top-content .profile-pic-wrapper img {
	object-fit:cover;
	width:100%;
	height:100%;
}

.single-asiantuntijaprofiili .top-content p.contact {
	font-size:22px;
	line-height:1.2em;
	font-weight:700;
}

.single-asiantuntijaprofiili .top-content p.info {
	margin-top:0.3em;
	margin-bottom:0.3em;
}

.single-asiantuntijaprofiili .top-content ul.info {
	margin-top:1.0em;
	margin-bottom:1.0em;
}

.single-asiantuntijaprofiili .top-content ul.info li {
	margin-top:1px;
	margin-bottom:1px;
}

.single-asiantuntijaprofiili .top-content a:hover {
	text-decoration:underline;
}

.single-asiantuntijaprofiili .bottom-content {
	display:flex;
	flex-direction: row;
	justify-content:space-between;
	align-items: stretch;
	align-content: flex-start;
	column-gap: 3%;
}

.single-asiantuntijaprofiili .bottom-content-text {
	width:65%;
	padding:5px 30px 20px;
	margin-left:0 !important;
}

.single-asiantuntijaprofiili .logo-pic-wrapper {	
	padding:5px 30px 20px 0;
}

.entry-content .button-link-wrapper {
	max-width:1170px !important;
	margin:40px 0 !important;
	margin-right:0 !important;
	margin-left:0 !important;
	padding:5px 30px 20px 30px;
}

.button-link-wrapper .btn {
	display:inline-block;
	background:#111;
	color:#fff;
	font-size:18px;
	text-decoration:none;
	padding:11px 22px;
	border-radius:25px;
}

.profile-buttons .fav-link {
	position:relative;
	display:inline-block;
	padding-left:65px;
}

.profile-buttons .fav-link.bj_favorite {
	background-color: rgb(238, 238, 238);
	color:#111;
}

.profile-buttons img.favorite-sel {
	position:absolute;
	width: 28px;
	top:10px;
	left:20px;
}

.profile-keywords {
	margin-top:30px;
}

@media screen and (max-width: 900px) {
	.single-asiantuntijaprofiili .top-content .profile-pic-wrapper {
		width:260px;
		height:260px;
		min-width:260px;
	}
}

@media screen and (max-width: 700px) {
	
	.single-asiantuntijaprofiili .entry-content h1 {
		font-size:30px;
		line-height:1.2em;
	}
	
	.single-asiantuntijaprofiili .top-content {
		flex-direction: column-reverse;
		justify-content:space-between;
		align-items: center;
		align-content: flex-start;
		column-gap: 0;
		row-gap:20px;
		background-color:#eee;
		padding:30px 15px 20px;
		margin-bottom:30px;
		margin-right:-15px !important;
		margin-left:-15px !important;
	}
	.single-asiantuntijaprofiili .top-content .top-content-text {
		width:100%;
	}
	
	.single-asiantuntijaprofiili .top-content .profile-pic-wrapper {
		width:240px;
		height:240px;
		min-width:240px;
	}
	
	.single-asiantuntijaprofiili .top-content p.contact {
		font-size:18px;
		line-height:1.2em;
		font-weight:700;
	}
	
	.single-asiantuntijaprofiili .top-content p.info strong {
		display:block;
	}
	
	.single-asiantuntijaprofiili .bottom-content {
		display:flex;
		flex-direction: column;
		justify-content:space-between;
		align-items: stretch;
		align-content: flex-start;
		column-gap: 0;
		row-gap:0;
		margin-right:-15px !important;
		margin-left:-15px !important;
	}
	.single-asiantuntijaprofiili .bottom-content-text {
		width:100%;
		padding:5px 15px 20px;
	}
	
	.single-asiantuntijaprofiili .logo-pic-wrapper {
		width:100%;
		padding:5px 15px 20px;
	}
	
	.entry-content .button-link-wrapper {
		margin-right:-15px !important;
		margin-left:-15px !important;
		padding:5px 15px 20px 15px;
	}
	
	.single-asiantuntijaprofiili .profile-buttons img.favorite-sel {
		width: 28px;
		min-width:28px;
	}
	
}

/* asiantuntija-sivu */

@media screen and (max-width: 700px) {
	.wp-block-spacer {
		height:50px !important;
	}
}

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Header
--------------------------------------------- */

header.site-header {
	position:fixed;
	top:0;
	min-width:100%;
	background-color:#fff;
	height:98px;
	z-index:10000;
	transition: top 0.3s;
	padding: 25px 0 10px;
	border-bottom:1px solid #E5E5E5;
}

header.site-header.extra-padding {
	padding-top:50px;
	height:128px;
}

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

	header.site-header.header-hide {
		top:-98px;
	}
	header.site-header.extra-padding.header-hide {
		top:-128px;
	}
	
}

main.site-main {
	margin-top:98px;
}

main.site-main.extra-margin {
	margin-top:98px;
}

header.site-header .header-content {
	max-width:1230px;
	margin: 0 auto 0 !important;
	padding:0 15px;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	align-content: flex-start;
	row-gap: 0px;
	column-gap: 2%;
}
header.site-header .header-content .site-branding {
	width:50%;
}

header.site-header .header-content .site-branding img.custom-logo {
	width:160px;
	height:auto;
}

@media screen and (min-width: 37.5em) {
	
	header.site-header .header-content .site-branding {
		width:25%;
	}
}

@media screen and (max-width: 47.5em) {
	main.site-main {
		margin-top:80px;
	}
}

/* Footer
--------------------------------------------- */
footer.site-footer {
	background-color:#f9f9f9;
	background-image:url('images/footer-bg.jpg');
	background-repeat:repeat-x;
}

footer .footer-content {
	max-width:1230px;
	margin: 0 auto 0 !important;
	padding:75px 15px 15px;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: stretch;
	align-content: flex-start;
	row-gap: 0px;
	column-gap: 2%;
	font-size:14px;
	line-height:2.0em;
}

footer .footer-content p {
	margin-bottom:1.7em;
}

footer .footer-content a {
	text-decoration:none;
	color:#111;
}

footer .footer-content strong {
	font-size:18px;
}

footer .footer-content a:hover {
	text-decoration:underline;
}

footer .footer-content ul {
	list-style-type: none;
	padding: 0;
	margin: 0;
}

footer .footer-content .footer-col {
	width:31%;
}

#footer-col-1 img {
	width: 160px;
	height:auto;
}

#footer-col-2, #footer-col-3 {
	margin-top:80px;
}

footer .footer-content #footer-col-2 ul li {
	margin: 0 0 20px;
}

footer .footer-content #footer-col-3 p a img {
	margin-right:35px;
}

footer .footer-content .footer-copy{
	width:100%;
	display: flex;
	flex-direction:row-reverse;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	align-content: flex-start;
	row-gap: 0px;
	column-gap: 2%;
	margin-top:70px;
	border-top: 1px solid #333;
	padding: 10px 0;
}

footer .footer-content .footer-copy ul {
	margin-top:1.0em;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: stretch;
	align-content: flex-start;
	row-gap: 0px;
	column-gap: 20px;
}

footer .footer-content .footer-copy .menu-footer-bottom-menu-container ul li a {
	font-family: 'Roboto Mono', monospace;
	font-weight:400;
	font-size:14.5px;
	/*color:#000 !important;*/
}

footer .footer-content .footer-copy ul li {
	margin: 0;
}

@media screen and (max-width: 700px) {
	
	footer .footer-content .footer-col {
		width:100%;
	}
	
	#footer-col-2, #footer-col-3 {
		margin-top:0;
	}
	
	#footer-col-3 {
		margin-top:30px;
	}
	
	footer .footer-content .footer-copy{
		flex-direction: column-reverse;
		align-items: flex-start;
		column-gap: 0;
	}
	
	footer .footer-content .footer-copy section {
		width:100%;
		text-align:center;
	}
	
	footer .footer-content .footer-copy ul {
		flex-direction: column;
	}
	footer .footer-content .footer-copy ul li {
		margin: 0px 0;
		width:100%;
		text-align:center;
	}
}

/* Navigation
--------------------------------------------- */
.main-navigation {
	display: block;
	width: 45%;
}

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

.main-navigation ul ul {
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	float: left;
	position: absolute;
	top: 100%;
	left: -999em;
	z-index: 99999;
}

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

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

.main-navigation ul ul a {
	width: 200px;
}

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

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	text-decoration: none;
	font-size:18px;
	font-weight:500;
	color:#111;
	
}

.main-navigation button div.bar {
  width: 35px;
  height: 5px;
  background-color: black;
  margin: 6px 0;
}

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
	display: block;
}

@media screen and (max-width: 47.5em) {
	header.site-header {
		height:auto !important;
	}
	
	header.site-header .site-header-content {
		flex-direction: column;
		justify-content: flex-start;
		align-items: flex-start;
		position:relative;
	}
	header.site-header .site-header-content .site-branding {
		width:70%;
	}
	.main-navigation {
		width:100%;
		margin-left:0;
	}
	.main-navigation button {
		position:absolute;
		right:15px;
		top:20px;
		padding-top:0.2em;
		padding-bottom:0.2em;
		background-color:#fff;
		border:1px solid #fff;
	}
	.main-navigation .nav-menu {
		margin-top:15px;
		margin-right:-15px;
		margin-bottom:-15px;
		margin-left:-15px;
		padding: 15px 15px 5px 30px;
		border-top:1px solid #ddd;
		background-color:#333;
	}
	.main-navigation ul li a {
		font-size:16px;
		color:#fff;
		margin:8px 0;
	}
	.main-navigation ul li.menu-icon {
		float:left;
		margin-top:1.0em;
		margin-right:0 ;
		margin-left: 0.9em;
	}
	
}

@media screen and (min-width: 47.5em) {

	.menu-toggle {
		display: none;
	}
	
	.main-navigation {
		width: 70%;
	}
	
	.main-navigation ul {
		display: flex;
		justify-content: flex-end;
		column-gap: 3%;
	}
}

@media screen and (min-width: 750px) and (max-width: 1200px) {
	.main-navigation a {
		font-size:16px;
	}
}
.site-main .comment-navigation,
.site-main
.posts-navigation,
.site-main
.post-navigation {
	margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
	display: block;
}

.post,
.page {
	margin: 0 0 1.5em;
}

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

.page-content,
.entry-content,
.entry-summary {
	/*max-width:1230px;*/
	padding:2.0rem 0 0;
	margin:0 auto;
}

.entry-content > * {
    max-width: 1230px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.entry-content .alignfull {
    max-width: none;
}

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

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

.bypostauthor {
	display: block;
}

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

.widget select {
	max-width: 100%;
}

/* 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 logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.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;
	display: grid;
	grid-gap: 1.5em;
}

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

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

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

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

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

.cmplz-cookiebanner .cmplz-title {
	font-weight:700 !important;
}

.cmplz-cookiebanner .cmplz-buttons button.cmplz-btn {
	font-weight:700;
}
