/**
Theme Name: Region 10
Author: VAIA Digital AB
Author URI: https://vaia.se
Description: Tema för moveupnorth.se
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: move-up-north
Template: astra
*/

a:focus-visible,
button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}
footer a:focus {
	color: var(--ast-global-color-5);
}
footer a:hover,
footer .wp-block-uagb-icon-list-child:hover .uagb-icon-list__label {
	text-decoration: underline !important;
}
input::placeholder,
textarea::placeholder {
	color: #000000 !important;
	opacity: 1 !important;
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
	color: #000000 !important;
	opacity: 1 !important;
}

input::-moz-placeholder,
textarea::-moz-placeholder {
	color: #000000 !important;
	opacity: 1 !important;
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
	color: #000000 !important;
}

input::-ms-input-placeholder,
textarea::-ms-input-placeholder {
	color: #000000 !important;
}
p {
	font-weight: 300;
}
.site-header .site-primary-header-wrap .ast-builder-grid-row {
	border-radius: 200px;
	background: rgba(255, 255, 255, 0.50);
	box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.25);
	backdrop-filter: blur(20px);
	justify-content: space-between;
	padding: 24px 30px 21px 50px;
	grid-template-columns: auto auto auto;
	height: 98px;
	margin: 0 auto;
	width: 100%;
	-webkit-transition: background-color 500ms linear;
	-ms-transition: background-color 500ms linear;
	transition: background-color 500ms linear;
}
.site-header .site-primary-header-wrap .ast-builder-grid-row:hover {
	background: rgba(255, 255, 255, 0.90);
}
#ast-fixed-header .main-header-bar {
box-shadow: none;
}
.wp-block-navigation.is-horizontal a {
	font-size: 14px;
	font-style: normal;
	font-weight: 500;
	line-height: 100%; /* 14px */
	letter-spacing: 1.4px;
	text-transform: uppercase;
	border-radius: 200px;
	padding: 12px 28px 13px;
	text-decoration: none;
}
.wp-block-navigation.is-horizontal .current-menu-item a,
.wp-block-navigation.is-horizontal a:hover {
	background: var(--ast-global-color-6);
	font-weight: 800;
}
.wp-block-navigation.is-horizontal ul {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 28px 0 0;
  margin: 0 25px 0;
  list-style: none;
  scrollbar-width: none;
}

.wp-block-navigation.is-horizontal ul::-webkit-scrollbar {
  display: none;
}

.wp-block-navigation.is-horizontal::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid rgba(0,0,0,0.35);
  border-right: 2px solid rgba(0,0,0,0.35);
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

.ast-theme-transparent-header .ast-builder-menu .main-header-menu .menu-item .sub-menu .menu-link:hover, 
.ast-theme-transparent-header .main-header-menu .menu-item .sub-menu .menu-link:hover
.ast-builder-menu-1 .menu-item.current-menu-item > .menu-link, 
.ast-builder-menu-1 .menu-item.current-menu-item > .menu-link,
.ast-builder-menu-1 .inline-on-mobile .menu-item.current-menu-item > .ast-menu-toggle, 
.ast-builder-menu-1 .current-menu-ancestor > .menu-link {
	color: var(--ast-global-color-2);
	background-color: var(--ast-global-color-6) !important;
}
body .wplng-switcher.title-id.flags-none {
	min-width: unset;
}
body .wplng-switcher.theme-light-simple-smooth .switcher-content {
	background: transparent;
	border: none;
}
body .wplng-switcher.theme-light-simple-smooth .switcher-content .wplng-language {
	color: var(--ast-global-color-5);
	font-weight: 600;
	display: flex;
}
body .wplng-switcher.style-block .wplng-language.wplng-language-current, 
body .wplng-switcher.style-list .wplng-language.wplng-language-current {
	display: none;
}
body .wplng-switcher.theme-light-simple-smooth .switcher-content .wplng-language:hover {
	background: transparent;
}
body .wplng-switcher .switcher-content .wplng-language.current {
	display: none;
}
body header .main-header-menu:not(#ast-desktop-toggle-menu) {
	gap: 5px;
	margin-left: 33px;
}
body .ast-builder-menu-1 .menu-item > .menu-link,
body .ast-builder-menu-1 .menu-item.current-menu-item > .menu-link, 
body .ast-builder-menu-1 .inline-on-mobile .menu-item.current-menu-item > .ast-menu-toggle, 
body .ast-builder-menu-1 .current-menu-ancestor > .menu-link {
	border-radius: 250px;
	font-weight: 600;
	padding: 12px 19px 13px;
}
body .ast-builder-menu-1 .current-page-ancestor > .menu-link {
	color: var(--ast-global-color-2);
	background: var(--ast-global-color-6);
}
.ast-builder-menu-1 .menu-item:hover > .menu-link, .ast-builder-menu-1 .inline-on-mobile .menu-item:hover > .ast-menu-toggle {
	border-radius: 250px;
}

.ast-above-header-wrap {
	border-radius: 0;
	overflow: hidden;
	/*position: absolute;
	top: 0;
	left: 0;
	z-index: 9;*/
}
.ast-theme-transparent-header .ast-above-header, .ast-theme-transparent-header .ast-above-header.ast-above-header-bar {
	background-color: var(--ast-global-color-4);
}
.ast-above-header-wrap .ast-site-identity,
.ast-above-header-bar .site-above-header-wrap {
	padding: 0;
}

.site-header .site-header-primary-section-right-center {
	display: none;
}
.site-header .site-primary-header-wrap .site-header-primary-section-right {
	border-radius: 200px;
	background-color: var(--ast-global-color-7);
	padding: 20px 30px 20px 20px;
}
.ast-desktop .ast-primary-header-bar .ast-builder-menu-2 .main-header-menu > .menu-item {
	line-height: unset;
}
h1 em {
	font-size: clamp(60px, 6vw, 80px);
	font-style: normal;
	font-weight: 800;
	line-height: 110%;
}

.wp-block .wplng-switcher .switcher-content .wplng-language, .wplng-switcher .switcher-content .wplng-language {
	font-size: 20px;
}

.wp-block-uagb-loop-builder a.uagb-buttons-repeater.is-active-filter,
.wp-block-uagb-loop-builder a.uagb-buttons-repeater.is-active-filter:hover {
	background-color: var(--ast-global-color-7);
	border-color: var(--ast-global-color-7);
}

.wp-block-uagb-loop-builder a.uagb-buttons-repeater.is-active-filter .uagb-button__link {
	color: #ffffff;
}

.aktuellt-loop h3.uagb-ifb-title a {
	color: var(--ast-global-color-2);
}
.aktuellt-loop h3.uagb-ifb-title a:hover {
	text-decoration: underline;
}

@media (min-width:800px){
	/* Flytta megamenyn så den hamnar inuti header-containern */
	.ast-mega-menu-enabled .sub-menu,
	#masthead .main-header-menu .menu-item-has-children .astra-megamenu.sub-menu {
  	border-radius: 20px;  /* rundade hörn bara nedtill */
  	box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.25);
  	padding: 30px 30px;
	}
	/* När megamenyn är öppen – ta bort nedre rundning på headern */
	.main-header-menu .menu-item-has-children:hover .ast-container,
	.main-header-menu .menu-item-has-children.focus .ast-container {
	  border-radius: 16px 16px 0 0;
	}
}
@media (max-width:921px) {
	html .ast-header-break-point.ast-replace-site-logo-transparent.ast-theme-transparent-header .custom-mobile-logo-link {
		display: inline-block;
	}
	.ast-header-break-point.ast-replace-site-logo-transparent.ast-theme-transparent-header .transparent-custom-logo {
		display: none;
	}
}
@media (max-width:800px){
	.site-header .site-primary-header-wrap .ast-builder-grid-row {
		width: calc(100% - 30px);
		padding: 24px 30px 21px 30px;
		grid-template-columns: auto auto;
	}
	h1 em {
		font-size: clamp(46px, 6vw, 56px);
		font-style: normal;
		font-weight: 800;
		line-height: 110%;
	}
	.ast-mobile-popup-drawer.active .ast-mobile-popup-inner {
		background: rgba(255, 255, 255, 0.95);
	}
	.ast-mobile-popup-inner .ast-mm-custom-content.ast-mm-template-content {
		padding: 20px;
	}
	.ast-mobile-popup-inner button.ast-menu-toggle {
		border: 0;
		box-shadow: none;
	}
	.wp-block-navigation.is-horizontal ul {
	  gap: 10px;
	  padding: 0 28px 0 0;
	  margin: 0 25px 0;
	}
	.wp-block-navigation.is-horizontal li a {
		background: var(--ast-global-color-4);
	}
}

/* Evenemangskalender */
.tribe-events-widget-events-list {
	padding: 40px;
}

/* Varje event */
.tribe-events-widget-events-list__event-row {
	display: block !important;
	position: relative;
	margin: 0 0 52px !important;
	padding: 22px 0 22px 24px;
	border-left: 3px solid rgba(255, 255, 255, 0.18);
}

.tribe-events-widget-events-list__event-row:last-child {
	margin-bottom: 0 !important;
}

/* Nollställ TEC:s kolumnlayout */
.tribe-events-widget-events-list__event-wrapper {
	width: 100% !important;
	padding: 0 !important;
}

.tribe-events-widget-events-list__event-wrapper .tribe-events-widget-events-list__event {
	border-left: 3px solid #2C7368;
	padding: 20px 22px;
}

/* Rubrik */
.tribe-events-widget-events-list__event-title {
	margin: 0 0 10px !important;
	font-size: clamp(30px, 3.3vw, 44px) !important;
	font-weight: 400 !important;
	line-height: 1.1 !important;
}

.tribe-events-widget-events-list__event-title-link {
	color: #fff !important;
	text-decoration: none !important;
}

.tribe-events-widget-events-list__event-title-link:hover,
.tribe-events-widget-events-list__event-title-link:focus-visible {
	text-decoration: underline !important;
	border-bottom: 0 !important;
}

/* Datum, tid och plats */
.r10-event-meta {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.4em;
	color: #fff;
	font-size: clamp(18px, 1.7vw, 22px);
	line-height: 1.4;
}

.tribe-events-widget-events-list__event-datetime-wrapper {
	margin: 0 !important;
	color: inherit !important;
	font-size: inherit !important;
	line-height: inherit !important;
}

.tribe-events-widget-events-list__event-datetime {
	color: inherit !important;
}

.r10-event-venue {
	color: inherit;
}

/* Dölj "Visa alla evenemang" om den inte ska finnas */
.tribe-events-widget-events-list__view-more {
	display: none;
}

@media (max-width: 767px) {

	.tribe-events-widget-events-list {
		padding: 28px 22px;
	}

	.tribe-events-widget-events-list__event-row {
		margin-bottom: 32px !important;
		padding: 14px 0 14px 18px;
	}

	.tribe-events-widget-events-list__event-title {
		font-size: 30px !important;
	}

	.r10-event-meta {
		font-size: 17px;
	}
}

/* Region 10: naturlig ordbrytning, 2026-10-13. */
#page {
  word-break: normal;
  overflow-wrap: normal;
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 9 4 4;
}
#page :is(h1, h2, h3, h4, h5, h6, p, li, td, th, blockquote, figcaption, button, label,
.uagb-infobox__content-wrap, .uagb-cta__left-right-wrap, .uagb-icon-list__label,
.uagb-post__title, .uagb-post__excerpt, .uagb-post__author, .uagb-post__date, .uagb-post__comment,
.uagb-tm__content, .wp-block-uagb-advanced-heading) {
  word-break: normal;
  overflow-wrap: normal;
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 9 4 4;
}
#page :is(h1, h2, h3, h4, h5, h6) :is(a, span, strong, em) {
  word-break: inherit;
  overflow-wrap: inherit;
  -webkit-hyphens: inherit;
  hyphens: inherit;
}
#page .mun-post-flow__title {
  font-size: 28px;
  line-height: 1.25;
}
#page :is(a[href^="mailto:"], a[href^="tel:"], pre, code) {
  overflow-wrap: anywhere;
  -webkit-hyphens: none;
  hyphens: none;
}
#page .region10-evenemangskalender :is(.region10-evenemangskalender__category, .region10-evenemangskalender__filter) {
  -webkit-hyphens: manual;
  hyphens: manual;
}
@media (max-width: 600px) {
  #page .mun-post-flow__title { font-size: 22px; }
}

/* Nyhetsflodet ska inte gora hela sidan horisontellt rullbar. */
#page .mun-post-flow__viewport { overflow: hidden; }
@media (max-width: 600px) {
  #page .wp-block-uagb-advanced-heading h1.uagb-heading-text {
	font-size: clamp(36px, 10vw, 60px);
	line-height: 1.1;
  }
}


/* Behåll kortbredden när bara en kalenderkategori visas. */
#page .region10-evenemangskalender__grid {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr));
}


/* Startsidan: Kommande aktiviteter */
#page .r10-kommande-aktiviteter {
  box-sizing: border-box;
  width: 100%; min-width: 0;
  background: #0d574c; color: #fff;
  padding: 0;
}
#page .r10-kommande-aktiviteter .tribe-events-widget-events-list__event-row {
  margin: 0 !important; padding: 0; border: 0;
}
#page .r10-kommande-aktiviteter .tribe-events-widget-events-list__event-row + .tribe-events-widget-events-list__event-row {
  margin-top: clamp(30px, 4vw, 50px) !important;
}
#page .r10-kommande-aktiviteter article.tribe-events-widget-events-list__event {
  margin: 0; padding: 19px 0 19px 20px; border: 0; border-left: 3px solid #2c7368;
  background: transparent;
}
#page .r10-kommande-aktiviteter h3.tribe-events-widget-events-list__event-title {
  font-family: inherit; font-size: clamp(26px, 3vw, 40px) !important;
  font-weight: 400 !important; line-height: 1.15 !important; letter-spacing: -.025em;
  margin: 0 0 13px !important;
}
#page .r10-kommande-aktiviteter .r10-event-meta {
  display: block; font-size: clamp(16px, 1.5vw, 20px); font-weight: 400; line-height: 1.4;
}
#page .r10-kommande-aktiviteter > a {
  display: inline-flex; align-items: center; gap: 26px; min-height: 60px; box-sizing: border-box;
  padding: 12px 24px; margin-top: clamp(40px, 6vw, 80px);
  color: white !important; border: 1px solid white !important; border-radius: 999px;
  font: inherit; font-size: 16px; line-height: 1.25; text-decoration: none !important;
}
#page .r10-kommande-aktiviteter > a span { color: inherit !important; -webkit-text-fill-color: currentColor; font-size: 24px; line-height: 1; }
#page .r10-kommande-aktiviteter > a:is(:hover, :focus-visible) { background: white; color: #0d574c !important; }
@media (max-width: 600px) {
  #page .r10-kommande-aktiviteter article.tribe-events-widget-events-list__event { padding: 12px 0 12px 14px; }
  #page .r10-kommande-aktiviteter > a { min-height: 48px; }
}
