/*
Theme Name:     Suomen Sijoitusmetsät
Theme URI:      n/a
Template:       kadence
Author:         Suomen Sijoitusmetsät Oy
Author URI:     n/a
Description:    Custom Kadence child theme for the Suomen Sijoitusmetsät website.
Version:        1.0
License:        GNU General Public License v3.0 (or later)
License URI:    https://www.gnu.org/licenses/gpl-3.0.html
*/
#primary .tribe-common .tribe-common-l-container{
	padding: 40px 40px 20px;
}
#masthead {
	z-index: 101;
}

.site-header-inner-wrap.kadence-sticky-header.item-is-stuck {
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.1) !important;
  transition:
    background 0.3s,
    border 0.3s,
    border-radius 0.3s,
    box-shadow 0.3s;
  z-index: 10;
}


/* WPML language switcher: FI / EN */

/* Replace native language names (Suomi / English) with FI / EN */
#primary-menu .wpml-ls-item .wpml-ls-native {
    font-size: 0;
}

#primary-menu .wpml-ls-item-fi .wpml-ls-native::after {
    content: "FI";
    font-size: 16px;
}

#primary-menu .wpml-ls-item-en .wpml-ls-native::after {
    content: "EN";
    font-size: 16px;
}


/* Keep language switcher at the end of the menu
   and always show FI first, EN second */
#primary-menu {
    display: flex;
}

#primary-menu .wpml-ls-item-fi {
    order: 98;
}

#primary-menu .wpml-ls-item-en {
    order: 99;
}


/* Remove extra Kadence spacing between language links */
#primary-menu .wpml-ls-item-fi > a {
    padding-right: 4px;
}

#primary-menu .wpml-ls-item-en > a {
    padding-left: 0;
}


/* Add slash after FI */
#primary-menu .wpml-ls-item-fi > a::after {
    content: "/";
    display: inline-block;
    margin-left: 7px;
    margin-right: 3px;
    opacity: 0.45;
    color: var(--global-palette6);
}


/* Keep slash color unchanged on hover/focus */
#primary-menu .wpml-ls-item-fi > a:hover::after,
#primary-menu .wpml-ls-item-fi > a:focus::after {
    color: var(--global-palette6);
}


/* Highlight current language */
#primary-menu .wpml-ls-current-language > a {
    font-weight: 700;
}


/* Non-current language */
#primary-menu .wpml-ls-item:not(.wpml-ls-current-language) > a {
    font-weight: 400;
}

#hero {
  position: relative;
}

#hero .hero__wrapper {
  position: relative;
  overflow: hidden;
}

#hero .hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#hero .hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Default image visibility */

#hero .hero__image--tablet,
#hero .hero__image--mobile {
  display: none;
}

#hero .hero__overlay {
  opacity: 1;

  background:
    radial-gradient(
      ellipse at 92% 35%,
      rgba(255, 255, 255, 0.14) 0%,
      rgba(255, 255, 255, 0.06) 30%,
      rgba(255, 255, 255, 0) 58%
    ),
    linear-gradient(
      90deg,
      rgba(11, 22, 34, 0.72) 0%,
      rgba(11, 22, 34, 0.66) 25%,
      rgba(11, 22, 34, 0.50) 42%,
      rgba(11, 22, 34, 0.22) 58%,
      rgba(11, 22, 34, 0.06) 72%,
      rgba(11, 22, 34, 0) 82%
    );

  mix-blend-mode: normal;
}

/* Tablet */
@media (max-width: 1024px) {
  #hero .hero__overlay {
    opacity: 1;
    background: linear-gradient(
      180deg,
      rgba(11, 22, 34, 0.70) 0%,
      rgba(11, 22, 34, 0.62) 45%,
      rgba(11, 22, 34, 0.35) 72%,
      rgba(11, 22, 34, 0.08) 90%,
      rgba(11, 22, 34, 0) 100%
    );
  }
}

/* Mobile */
@media (max-width: 767px) {
  #hero .hero__overlay {
    opacity: 1;
    background: linear-gradient(
      180deg,
      rgba(11, 22, 34, 0.76) 0%,
      rgba(11, 22, 34, 0.68) 50%,
      rgba(11, 22, 34, 0.40) 75%,
      rgba(11, 22, 34, 0.08) 94%,
      rgba(11, 22, 34, 0) 100%
    );
  }
}

#hero .hero__content {
  position: relative;
  z-index: 2;
}

/* Tablet */

@media (max-width: 1024px) {
  #hero .hero__image--desktop {
    display: none;
  }

  #hero .hero__image--tablet {
    display: block;
  }
}

/* Mobile */

@media (max-width: 767px) {
  #hero .hero__image--tablet {
    display: none;
  }

  #hero .hero__image--mobile {
    display: block;
  }
}

/* Market chart */
#chartContainer {
    height: 346px;
    width: 100%;
}
.market-chart-card{
    background:#2A3520;
    border:1px solid rgba(246,244,238,.12);
    border-radius:4px;
    padding:24px;
}

.market-chart-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    margin-bottom:28px;
}

.market-chart-header h3{
  margin:0;
	color: var(--global-palette9);
}

.market-chart-change{
    color:#B98A3F;
    font-size:20px;
    font-weight:600;
}

.market-chart-source{
    margin-top:18px;
    color:rgba(246,244,238,.55);
    font-size:13px;
}


.publication-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:8px 14px;

    background:var(--global-palette7);
    color:var(--global-palette5);

    font-size:12px;
    font-weight:600;
    letter-spacing:.06em;
    text-transform:uppercase;

    border-radius:2px;
    line-height:1;
}

.kb-query-item .wp-block-kadence-single-icon {
    transition: transform .25s ease;
}

.kb-query-item:hover .wp-block-kadence-single-icon {
    transform: translateX(8px);
}

.arrow-row .kb-svg-icon-wrap {
    transition: transform 0.2s ease;
}

.arrow-row:hover .kb-svg-icon-wrap {
    transform: translateX(8px);
}


/* Footer */

/* Hide WPML */
.otgs-development-site-front-end,
.wpml-ls-statics-footer {
    display:none!important;
}

.logo-footer {
	max-width: 225px;
	margin: 0 auto;
}

.small-jokinetti {
	margin-top: 10px;
	margin-bottom: 5px;
	display: inline-flex;
	font-size: 13px;
	color: var(--global-palette7);
}

.small-jokinetti a {
	color: var(--global-palette7) !important;
}

.jokinetti {
}

.jokinetti img {
  display: inline;
	margin-top: -2px;
	margin-right: 2px;
	margin-left: 2px;
}

footer .widget_recent_entries ul li a {
	color: #fff;
}
