/*
 Theme Name:   AMS LBS Child
 Theme URI:    https://lbs.se/
 Description:  AMS Child Theme for LBS
 Author:       Academedia WDT
 Author URI:   http://academedia.se/
 Template:     ams
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  ams
*/

/* Adds background color on heading words */
.ams-text-background .c-heading {
	word-spacing: -0.43em;
}

.ams-text-background .c-heading .word {
	line-height: 2.1;
	color: var(--ams-color-button-text);
	background-color: var(--ams-color-button-bg);
	padding-block-start: 0.4em;
	padding-block-end: 0.2em;
	padding-inline: 0.35em;
}

/* Fix aspect ratio on logo */
.site_logo {
	object-fit: contain;
}

/**
 * WCAG (colors) Tweaks
 */

/* Menu's (CTA) Button (desktop) */

.header_wrapper .top-menu-wrapper > button {
	color: #222222 !important;
	background: #f2df38;
	/*background: #ffeb3b;*/
}

.header_wrapper .top-menu-wrapper > button:hover {
	background: #ffef62 !important;
}

.header_wrapper .top-menu-wrapper > button:active,
.header_wrapper .top-menu-wrapper > button:visited {
	background: #f0dd37 !important;
}

/* Menu (mobile) */
@media screen and (max-width: 1099px) {

	/* Dropdown & Pointer icon (arrow) */
	.navbar ul li:hover > a::after,
	.navbar ul li.active i,
	.navbar ul li.active ul.sub-menu li.active i {
		background-color: #222222 !important;
	}

	/* (CTA) Button */
	#main-navigation button {
		color: #fff !important;
		background: #222222 !important;
	}
}

/* (Sub)Menu */
#ams_nav_menu .sub-menu li:hover a,
#ams_nav_menu .sub-menu li.current-menu-item > a,
	/* very specific AMS-rule */
body .ams_active_menu_state_menu #ams_nav_menu .sub-menu li.current-menu-item > a {
	color: #222222 !important;
}

#ams_nav_menu .sub-menu li:hover a:after {
	background-color: #222222 !important; /* svg image, used as mask: () */
}

/* Form */
/*.ams-form__box-wrapper .container-checkmark .checkmark:after,*/
/*.ams-form__box-wrapper .container-checkmark .checkmark:before {*/
/*	background-color: #fff !important;*/
/*}*/

.ams-form__box-wrapper .container-checkmark input ~ .checkmark {
	background: #fff !important;
}

.ams-form__box-wrapper .container-checkmark input:focus {
	box-shadow: none !important;
}

.ams-form__box-wrapper .container-checkmark input:checked ~ .checkmark:after,
.ams-form__box-wrapper .container-checkmark input:checked ~ .checkmark:before,
.ams-form__box-wrapper .container-checkmark:hover input ~ .checkmark:after,
.ams-form__box-wrapper .container-checkmark:hover input ~ .checkmark:before {
	border-color: #222 !important;
}

.ams-form__not-validated,
.ams-form__not-validated ._title,
.ams-form__not-validated .ams-form__not-validated-text {
	color: #222 !important;
}

.ams-form__submit-wrapper button {
	background: #f2df38 !important;
	/*background: #ffeB3b !important;*/
}

.ams-form__submit-wrapper button:hover {
	color: #222222 !important;
	background: #ffef62 !important;
}

.ams-form__submit-wrapper button:active {
	background: #f0dd37;
}

/* Map */
.location-module:not(.site__primary-bg) .location-module__card:hover .location-arrow svg path {
	fill: #222222;
}

/* Mobile map button*/
.location-module #filterByLocation {
	color: white;
}

.location-module #filterByLocation:hover {
	color: #222 !important;
}

.location-module #filterByLocation:hover span {
	border-color: #222 !important;
}

/* Timeline button color fix */
.ams_timeline_module .btn {
	color: #fff;
	background-color: #222 !important;
}

.ams_timeline_module .btn-outline {
	color: #222;
	background-color: transparent !important;
}

.ams_timeline_module .btn:hover,
.ams_timeline_module .btn-outline:hover {
	background-color: #434343 !important;
}

.ams_timeline_module .btn:active,
.ams_timeline_module .btn-outline:active {
	background-color: #1D1D1D !important;
}
