/* ANCHOR - Päävalikko */
header .nav-bar .primary-menu-desktop, 
header .upper-menu ul {
	list-style: none;
	display: flex;
    margin: 0;
}
header .nav-bar .primary-menu-desktop > li {
	position: relative;
}
header .nav-bar .primary-menu-desktop > li > a {
	padding: 10px 15px;
	display: inline-block;
}
header .primary-menu-desktop .menu-link .closed-sub-menu:after {
	content: "\f078";
}
header .primary-menu-desktop .menu-link .open-sub-menu::after {
	content: "\f077";
}
header .primary-menu-desktop .menu-link .closed-sub-menu:after, 
header .primary-menu-desktop .menu-link .open-sub-menu::after {
	font-family: "Font Awesome 5 Pro";
    font-weight: 900;
	line-height: 1;
    font-size: 13px;
}

/* Piilotettu avauspainike (ei näkyvissä, mutta käytettävissä näppäimistöllä saavutettavuutta varten) */
/* header .primary-menu-desktop .menu-link .closed-sub-menu,
header .primary-menu-desktop .menu-link .menu-link-item:focus + .closed-sub-menu,
header .primary-menu-desktop .menu-link:hover .menu-link-button.closed-sub-menu {
    display: none;
}
header .primary-menu-desktop .menu-link:focus-within .closed-sub-menu,
header .primary-menu-desktop .menu-link .menu-link-item:focus-visible + .closed-sub-menu,
header .primary-menu-desktop .menu-link:focus-within .open-sub-menu {
    display: inline-block;
} */

/* ANCHOR - Päävalikon submenu */
header .primary-menu-desktop .sub-menu {
    position: absolute;
    z-index: 2;
	background-color: white;
    left: 0;
    top: 100%;
    visibility: hidden;
	padding: 15px;
	display: flex;
    justify-content: space-between;
	flex-wrap: wrap;
}
header .primary-menu-desktop .menu-link.has-grand-children:hover > .sub-menu,
header .primary-menu-desktop .menu-link.has-children:hover > .sub-menu,
header .primary-menu-desktop .menu-link > .sub-menu:hover,
header .primary-menu-desktop .open-sub-menu + .sub-menu {
    visibility: visible !important;
}
header .primary-menu-desktop .sub-menu .sub-menu-items ul {
	margin: 0;
    padding: 0;
    display: flex;
	flex-wrap: wrap;
	list-style: none;
}
header .primary-menu-desktop .sub-menu .sub-menu-items ul > li .inner-sub-menu {
	width: 100%;
    display: block;
}
header .primary-menu-desktop .sub-menu .sub-menu-items ul > li.sub-menu-link > p {
    font-weight: 600;
	font-size: 18px;
    margin-bottom: 10px;
}
header .primary-menu-desktop .sub-menu .sub-menu-items ul > li.sub-menu-link a {
	font-weight: 400;
}
header .primary-menu-desktop .sub-menu .sub-menu-items .painike {
    padding: 5px 20px;
    border-radius: 20px 0;
    text-transform: uppercase;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
	width: 85%;
    text-align: center;
}
header .primary-menu-desktop .sub-menu .sub-menu-items ul > li.sub-menu-link a:hover {
	text-decoration: none;
}
header .primary-menu-desktop .sub-menu .sub-menu-extra-links p {
	font-weight: 600;
    font-size: 18px;
    margin-bottom: 15px;
}
header .primary-menu-desktop .sub-menu .sub-menu-extra-links .extra-link {
	display: block;
	margin-bottom: 5px;
    width: fit-content;
    width: -moz-fit-content;
	font-weight: 500;
}

/* 4. tason linkkien haitarit */
header .primary-menu-desktop .sub-menu .sub-menu-items > ul .sm-accordion-title {
	display: flex;
	align-items: center;
    justify-content: space-between;
}
header .primary-menu-desktop .sub-menu .sub-menu-items > ul .sm-accordion-title .menu-accord-button {
	background-color: transparent;
    border: none;
    font-size: 14px;
}
header .primary-menu-desktop .sub-menu .sub-menu-items > ul .sm-accordion-title .menu-accord-button:before {
	content: "\f067";
	font-family: "Font Awesome 5 Pro";
    font-weight: 900;
}
header .primary-menu-desktop .sub-menu .sub-menu-items > ul .sm-accordion-title.active-menu-accord .menu-accord-button:before {
	content: "\f068";
}
header .primary-menu-desktop .sub-menu .sub-menu-items > ul .menu-accord-panel {
	display: none;
  	overflow: hidden;
	padding: 5px 15px;
}
header .primary-menu-desktop .sub-menu .sub-menu-items > ul .sm-accordion-title.active-menu-accord + .menu-accord-panel {
	display: flex;
}

/* ANCHOR - Mobiilivalikko */
.menu-mobile {
	display: none;
}
header.position-fixed {
	width: 100%;
	z-index: 2;
	background-color: white;
}
header .mobile-menu {
	padding: 5px 0;
	display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    z-index: 99999;
}
header .mobile-menu img {
    max-height: 46px;
	padding: 5px 0;
	margin: 0;
}

header .mobile-menu #mobile-menu:after {
    content: "\f0c9";
	font-family: "Font Awesome 5 Pro";
    font-weight: 900;
}
#full-menu .full-menu-row-top .full-menu-close {
    margin-left: auto;
}
header .mobile-menu #mobile-menu, #full-menu .full-menu-row-top .full-menu-close {
	background-color: transparent;
	border: none;
	font-size: 22px;
}
header.position-fixed .mobile-menu #mobile-menu:after {
	content: "\f00d";
}

#full-menu {
	display: none;
    position: fixed;
    overflow: scroll;
    background-color: white;
    width: 100vw;
    height: 100vh;
    z-index: 100;
    right: 0;
    padding-bottom: 40px;
}
#full-menu .submenu-links .full-menu-page-title {
	margin-bottom: 10px;
}
#full-menu .full-menu-upper-links {
	margin: 20px auto;
    padding-bottom: 40px;
    width: 80%;
}
#full-menu .full-menu-page .full-menu-page-title {
	display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
#full-menu .full-menu-page-title .full-menu-accordion {
	border: none;
    margin-right: 2px;
    height: 25px;
    width: 25px;
    border-radius: 50%;
    margin-left: 5px;
}
#full-menu .full-menu-subpages {
	display: none;
    position: absolute;
    top: 0;
    width: 100%;
	right: 0;
	background-color: white;
}
#full-menu .full-menu-subpages .full-menu-submenu-title {
	padding: 15px;
    background-color: #F5F5F5;
	display: flex;
    align-items: center;
}
#full-menu .full-menu-subpages .submenu-links, #full-menu .full-menu-subpages .submenu-extra-links {
	width: 80%;
    margin: 20px auto;
}
#full-menu .full-menu-subpages .submenu-extra-links {
	padding-top: 30px;
    margin-top: 30px;
}
#full-menu .full-menu-subpages .submenu-extra-links .extra-link {
	display: block;
	width: fit-content;
	width: -moz-fit-content;
	margin-bottom: 10px;
}
#full-menu .full-menu-subpages .sub-menu-links {
	padding: 40px 20px;
}
#full-menu .full-menu-subpages .sub-menu-links a {
	margin-bottom: 20px;
    display: block;
    width: fit-content;
    width: -moz-fit-content;
}
#full-menu .full-menu-subpage .full-menu-subpages {
	top: 0;
	width: 100%;
}
.full-menu-accordion:after {
    content: "\f105";
    font-family: "Font Awesome 5 Pro";
    font-size: 24px;
    line-height: 1;
    height: 24px;
    font-weight: 700;
}
#full-menu .full-menu-close-subpage {
    background-color: transparent;
    border: none;
    font-weight: 500;
    display: flex;
    align-items: center;
	position: absolute;
    font-size: 12px;
}
#full-menu .full-menu-close-subpage:before {
	content: "\f104";
	font-family: "Font Awesome 5 Pro";
    font-weight: 900;
	margin-right: 10px;
    font-size: 20px;
}
#full-menu .full-menu-submenu-title p {
	width: 60%;
    margin: auto;
    text-align: center;
}
#full-menu .full-menu-lower-links {
	margin: 20px auto;
    width: 80%;
    background-color: white;
	padding-top: 20px;
}
#full-menu .full-menu-lower-links .lower-menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ANCHOR - Linkki valiko */

.links-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-sm);
}