


/* Placerar sidfoten en bit ner ifall det saknas innehåll */
main{
	min-height:calc(100vh - 300px);
}

button,
input,
select,
textarea{
    font-family: inherit !important;
}


main ul{
	padding:0;
	padding-left: 20px;
}
main ol {
	counter-reset: item;
	list-style: none;
	padding-left: 0;
}
main ol li {
	counter-increment: item;
	position: relative;
	padding-left: 2.2rem;
	margin-bottom: 1rem;
}
main ol li::before {
	content: counter(item);
	position: absolute;
	left: 0;
	top: -0.09rem;

	width: 1.5rem;
	height: 1.5rem;

	display: flex;
	align-items: center;
	justify-content: center;

	border: 1px solid #853127;
	background-color:#853127;
	border-radius: 50%;

	color: #fff;
	font-weight: 900;
	font-family:arial;
	line-height: 0.9rem;
	font-size:0.9rem;
}


/* Brödsmulor */
.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0rem .5rem;
	font-size:1rem;
	align-items: center;
	line-height:1.55;
}
.breadcrumb-separator {
	opacity: .5;
}
.breadcrumbs a {
	text-decoration: none;
}


/* Klassisk editor */
.classic-content{
	max-width:650px;
}
.classic-content img{
	border-radius:10px;
}
.entry-content .classic-content p:last-of-type{
	margin-bottom:0;
}
h1.classic-h1{
	margin-top:30px;
}
img.classic-img{
	display:block;
	max-width:100%;
	margin-top:35px !important;
	margin-bottom:30px;
	border-radius:10px;
}
@media (max-width: 1100px) {
	.classic-content{
		margin:0 20px;
	}
	img.classic-img{
		margin:0 20px 30px 20px;
	}
}
@media (max-width: 781px) {
	img.classic-img{
		padding:0;
		width:calc(100%);
		margin:0 0 30px 0 !important;
		border-radius: 0;
		background-color:#faf2e4;
	}
}


/* Nyheter och evenemang */
#news{
	margin:auto;
	width:1470px;
	max-width:100%;
	padding:0 10px;
	box-sizing: border-box;	
	display: grid;
	grid-template-columns: 2fr 1fr;
	column-gap:0;
}
#news .grid-sizer,
#news .grid-item{
	width:calc(50% - 10px);
}
#news .grid-headline-container{
	width:calc(100% - 10px);
}
#news .grid-headline{
	background-color:#fff;
	margin:auto;
	padding:10px;
	display:block;
	width:150px;
	text-align:center;
	border-radius:10px 10px 0 0;
	border-left:solid 1px #eee;
	border-top:solid 1px #eee;
	border-right:solid 1px #eee;
}
@media (max-width: 1024px) {  
	#news{
		grid-template-columns: 1fr;
		gap:0;
	}
	#news .grid-sizer,
	#news .grid-item{
		width:calc(50% - 5px);
	}
	#news .grid-headline-container,
	#news #events.grid-headline-container{
		width:100%;
	}
	#news #events{
		column-count: 2;
		column-gap: 10px;
	}
}
@media (max-width: 781px) {
	#news{
		display:block;
		width:600px;
		max-width:100%;
	}
	#news .grid-sizer,
    #news .grid-item{
        width: 100%;
    }
	#news #events{
		column-count: 1;
		column-gap: 0;
	}
	#news .grid-headline-container,
	#news #events.grid-headline-container{
		width:600px;
		max-width:100%;
	}
}

/* Nyhetsarkiv */
#news.news-archive{
	grid-template-columns: 1fr;	
}
#news.news-archive .grid-sizer,
#news.news-archive .grid-item{
	width:calc(33.333333% - 7px);
}
@media (max-width: 1024px) {
    #news.news-archive .grid-sizer,
    #news.news-archive .grid-item{
        width: calc(50% - 5px);
    }
}
@media (max-width: 781px) {
    #news.news-archive .grid-sizer,
    #news.news-archive .grid-item{
        width: 100%;
    }
}

/* Nyhet */

#news .news-item,
#newsSwipe .news-item,
#eventsSwipe .news-item{
	position:relative;
	display:block;
	background-color:#fff;
	border:solid 1px #eee;
	border-radius:10px;
	margin-bottom:10px;
	cursor:pointer;
	break-inside: avoid;
	overflow:hidden;
	box-sizing: border-box;
	text-decoration:none;
    hyphens: auto;
	transition: transform .5s ease;
    overflow-wrap: break-word;
	box-shadow:
		0 1px 3px rgba(0,0,0,0.03),
		0 4px 12px rgba(0,0,0,0.02);
}
#news .news-item:hover .news-icon,
#newsSwipe .news-item:hover .news-icon,
#eventsSwipe .news-item:hover .news-icon{
	color:#f1d6ab;
	background-color:#863127;
}
#news .news-item:hover,
#newsSwipe .news-item:hover,
#eventsSwipe .news-item:hover{
	transform: translateY(-3px);	
}

#news .news-img,
#newsSwipe .news-img,
#eventsSwipe .news-img{
	max-width:100%;
	display: block;
	padding:10px;
}

#news .news-img img,
#newsSwipe .news-img img,
#eventsSwipe .news-img img{
	max-width:100%;
	border-radius:10px 10px 5px 5px;
}


#news .news-content,
#newsSwipe .news-content,
#eventsSwipe .news-content{
	align-items:top;
	box-sizing:border-box;
	column-gap:0px;
	display:flex;
	flex-wrap:nowrap;
	justify-content:flex-start;
	overflow:hidden;
	padding:10px;
	padding-right:30px;
}
#news .news-icon,
#newsSwipe .news-icon,
#eventsSwipe .news-icon{
	color:#863127;
	background-color:#f1d6ab;
	font-size:30px;
	margin:0px 15px 0 10px;
	transition: background-color 0.3s ease, color 0.3s ease, border-radius 0.3s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width:60px;
	height:60px;
	min-width:60px;
	border-radius:60px;
}
@media (max-width: 500px) {
	#news .news-icon,
	#newsSwipe .news-icon,
	#eventsSwipe .news-icon{
		margin:0px 10px 0 5px;
		font-size:20px;
		width:30px;
		height:30px;
		min-width:30px;
	}
}

#news .news-textlayer,
#newsSwipe .news-textlayer,
#eventsSwipe .news-textlayer{
	display:flex;
	flex-wrap:wrap;
	align-items: center;
}
#news .news-link,
#newsSwipe .news-link,
#eventsSwipe .news-link{ /* Samma som h3 */
	color:#3d3d3d;
	text-decoration:none;
	font-size: clamp(1.45rem, 3vw, 1.75rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
	font-weight:700;
	margin: 0 0 0.375rem;
	
	  display: block;
  line-height: 1.15;
   min-height: 0;
  margin: 0 0 0.375rem;
	
}
#news .news-time,
#newsSwipe .news-time,
#eventsSwipe .news-time{
	display:block;
	font-weight:700;
	color:#853127;
	flex-basis: 100%;
	margin: 0 0 0.625rem;
}
#news .news-text,
#newsSwipe .news-text,
#eventsSwipe .news-text{
	color:#333;
	flex-basis: 100%;
	margin-bottom: 1.5rem;
}
#news .sticky,
#newsSwipe .sticky,
#eventsSwipe .sticky{
	position:absolute;
	top:20px;
	left:20px;
	color:#fff;
	background-color: rgba(0, 0, 0, 0.2);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius:60px;
	height:30px;
	width:30px;
}


/* Swiper */
.swiper-wrapper {
	align-items: stretch;
}
.swiper-slide {
	height: auto;
	display: flex;
}
.swiper-pagination-bullet.swiper-pagination-bullet-active{
	background-color:#853127;
}



/* Döljer ingress i fokus ifall rubriken täcker flera rader */
.swiper-slide .news-text{
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
	-webkit-line-clamp: 2;
}
.swiper-slide.hide-intro-2 .news-text{
	-webkit-line-clamp: 1;
}
.swiper-slide.hide-intro-3 .news-text{
	-webkit-line-clamp: 1;
}
.swiper-slide.hide-intro-4 .news-text{
	-webkit-line-clamp: 0;
}
.swiper-slide.hide-intro .news-text{
	display:none;
}



.wp-block-buttons.news-btns{
	padding:0 20px;
}
.wp-block-buttons.news-btns .wp-block-button a{
	width:175px;
	max-width:100%;
	
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.wp-block-buttons.news-btns .wp-block-button a:hover{
	background-color:#fff !important;
	
	color: #333;
	box-shadow:
		0 1px 3px rgba(0,0,0,0.04),
		0 4px 12px rgba(0,0,0,0.03);
}


/* Höger kolumn (klassisk editor) */
#aside{
	margin-top:8px;
}
#aside h2{ /* Samma som h3 */
	font-size: clamp(1.45rem, 3vw, 1.75rem);
    line-height: 1.15;
    letter-spacing": -0.02em;
}
#aside h3, #aside h4, #aside h5, #aside h6{ /* Samma som h4 */
	font-size: clamp(1.2rem, 2.5vw, 1.375rem);
    line-height: 1.2;
    letter-spacing": -0.015em;
}
@media (max-width: 781px) {
	#aside{
		margin-bottom:30px;
	}
}


/* Flexibla fält i main och högerkolumn */
.subpages ul{
	list-style: none;
    padding: 0;
    margin: 0;
}
.subpages ul li a,
.flexcontent a.block-link,
button.btn_leave_fast{
	display: inline-flex;
	align-items: center;
	justify-content: left;
	width:100%;
	box-sizing: border-box; 
	text-decoration:none;
	padding:10px 10px 10px 10px;
	background-color:#fff;
	margin-bottom:10px;
	border-radius:10px;
	font-weight:600;
	vertical-align:middle;
	border:none;
	transition:
		box-shadow .25s ease,
		transform .25s ease,
		background-color 0.5s ease;
	box-shadow:
		0 2px 4px rgba(0,0,0,.03),
		0 8px 24px rgba(0,0,0,.06);
}
.flexcontent a.block-link{
	background:#fff;
}
.subpages ul li a i,
.flexcontent a i,
button.btn_leave_fast i{
	font-size:20px;
	background-color:#F1D6AB;
	border-radius:60px;
	width:35px;
	min-width:35px;
	height:35px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-right:7px;
}
.flexcontent a i{
	background-color:#eee;
	color:#333;
}
.subpages ul li a:hover,
.flexcontent a.block-link:hover,
button.btn_leave_fast:hover{
	background-color:#F1D6AB;
	color:#333;
	transform:translateY(-2px);
	box-shadow:
		0 6px 14px rgba(0,0,0,.05),
		0 18px 40px rgba(0,0,0,.08);
}
.subpages ul li a:hover i,
.flexcontent a.block-link:hover i{
	background-color:#fff;
	color:#333;
}


/* Lämna snabbt knapp */
.leave-fast-wrapper{
	/*47px*/
}
button.btn_leave_fast{
	margin-bottom:0;
	cursor:pointer;
	background-color:#853127;
	color:#fff;
	font-size:16px;
}
button.btn_leave_fast i{
	background-color:transparent;
	font-size:30px;
	height:auto;
}

/* Lämna snabbt knapp i mobilt läge */
@media (max-width: 781px) {
	.leave-fast-wrapper p,
	.leave-fast-wrapper span{
		display:none;
	}
	button.btn_leave_fast{
		border:solid 2px #fff;
		border-radius:50px;
		width:60px;
		height:60px;
		position:fixed;
		z-index:1000000;
		bottom:110px;
		right:30px;
	}
}
@media (max-width: 600px) {
	button.btn_leave_fast{
		bottom:95px;
		right:15px;
	}
}

/* Standardbild */
#aside img.classic-img{display:block;}
#content img.classic-img{display:none;}
@media (max-width: 1100px) {
	#aside img.classic-img{max-width:calc(100% - 40px);}
}
@media (max-width: 781px) {
	#aside img.classic-img{display:none;}
	#content img.classic-img{display:block;}
}

/* Linjer */
hr.wp-block-separator{
	height:1px;
	border:0;
}


/* FAQ */
.faq-list{
	display:flex;
	flex-direction:column;
	gap:10px;
	margin-bottom:10px;
}
.faq-item{
	border-radius:10px;
	overflow:hidden;
	background:#fff;
	border:none;
	transition:
		box-shadow .25s ease,
		transform .25s ease;
	box-shadow:
		0 2px 4px rgba(0,0,0,.03),
		0 8px 24px rgba(0,0,0,.06);
}
.faq-item:hover{
	transform:translateY(-2px);
	box-shadow:
		0 6px 14px rgba(0,0,0,.05),
		0 18px 40px rgba(0,0,0,.08);
}

.faq-question{
	padding:19px 15px;
	font-weight:600;
	cursor:pointer;
	list-style:none;
	position:relative;
}

.faq-question::-webkit-details-marker{
	display:none;
}

.faq-question::after{
	content:"+";
	position:absolute;
	right:20px;
	top:50%;
	transform:translateY(-50%);
	font-size:30px;
	font-weight:400;
	transition:.3s;
}

.faq-item[open] .faq-question::after{
	content:"–";
}

.faq-answer{
	padding:0 15px 30px 15px;
}


/* Sidfot */
footer h2{
	font-size: clamp(1.45rem, 3vw, 1.75rem);
    line-height: 1.15;
    letter-spacing": -0.02em;
}
footer a{
	text-decoration:none;
	color:#863127;
	font-weight:500;
	display:inline-block;
}
footer a:hover{
	text-decoration:underline;
}
footer a::before{
	font-family: "Font Awesome 7 Pro";
	content: "\f061";
	margin-right: 8px;
	font-weight:700;
}
footer a[href^="tel:"]::before{
	font-family: "Font Awesome 7 Pro";
	content: "\f095";
	margin-right: 8px;
	font-weight:700;
}
footer a[href^="mailto:"]::before{
	font-family: "Font Awesome 7 Pro";
	content: "\40";
	margin-right: 8px;
	font-weight:700;
}
footer a[href^="https://facebook.com"]::before{
	font-family: "Font Awesome 7 Brands";
	content: "\f082";
	margin-right: 8px;
	font-weight:700;
}
footer a[href^="https://instagram.com"]::before{
	font-family: "Font Awesome 7 Brands";
	content: "\f16d";
	margin-right: 8px;
	font-weight:700;
}
footer a[href^="https://nybro.se"]::before{
	content: "";
}
@media (max-width: 1100px) {
	
	footer > .wp-block-group{
		padding:20px;
	}
}
@media (max-width: 980px) {
	footer .wp-block-column{
		display:block;
		margin-bottom:20px;
	}
	footer .wp-block-group{
		display:block;
	}
	footer > .wp-block-group{
		padding:20px;
	}
	footer .wp-block-group-is-layout-flex a{
		display:block;
		padding:10px 0 10px 0;
	}
	/*
	footer img{
		display:block;
		max-width:150px !important;
	}
	*/
}
@media (max-width: 781px) {
	footer a{
		padding-bottom:15px;
	}
}

/* Dolda block - synliga enbart för skärmläsare */
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Utskrift för skrivare */
@media print {
	
	main{
		min-height:0;
	}
	
	h1.wp-block-heading{
		display:block !important;
	}

	footer,
	header{
		display:none !important;
	}
	
}

/* Topprad */
#toprow{
	column-gap:0;
	padding:10px 0px 10px 6px;
	background-color:eee;
}
#toprow #toprow-datetime{
	border-radius:10px;
	background-color:#fff;
	padding:0 10px;
	margin:0;
	margin-right:10px;
	border:solid 1px #fff;
	font-size:16px;
	height:30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
#toprow #toprow-select select{
	font-family:Raleway;
	font-size:16px;
	width:100%;
	display:block;
	border-radius:10px;
	background-color:#F1D6AB;
	border:solid 1px #F1D6AB;
	padding:0 10px;
	height:30px;
}
#toprow #toprow-select option{
	background-color:#fff;
}
@media (max-width: 1024px) {
	#toprow{
		padding:10px 15px 10px 20px;
	}
}
@media (max-width: 781px) {
	#toprow{
		padding:6px 0 1px 0;
	}
	#toprow #toprow-logo-column{
		text-align:center;
		flex-basis:50% !important;
	}
	#toprow #toprow-select-column{
		flex-basis:50% !important;
		padding:0 5px 0 2px;
		box-sizing: border-box;
	}
	#toprow #toprow-select-column #toprow-datetime{
		display:none;
	}
	#toprow #toprow-select-column #toprow-select{
		width:100%;
	}
	#toprow #toprow-select-column #toprow-select select{
		height:50px;
		
	}
}

/* Modal bakgrund */
#modal-accessible-overlay{
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	opacity: 0;
	transition: opacity 0.3s ease;
}
#modal-accessible{
	background: #fff;
	padding: 30px;
	max-width: 500px;
	width: 90%;
	border-radius: 6px;
	position: relative;
	transform: translateY(20px);
	transition: transform 0.3s ease;
	text-align:center;
}
#modal-close{
	position: absolute;
	top: 10px;
	right: 5px;
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
}

/* Modal - selectbox */
select#selectbox-modal{
	font-family:Raleway;
	font-size:16px;
	width:100%;
	max-width:400px;
	display:block;
	border-radius:10px;
	background-color:#F1D6AB;
	border:solid 1px #F1D6AB;
	padding:0 10px;
	height:50px;
	margin:auto;
	margin-bottom:20px;
}
select#selectbox-modal option{
	background-color:#fff;
}

/* gör att huvudmenyns bakgrund inte lägger sig ovanpå */
header{
	position:relative;
	z-index:1000;
}


/* Huvudmeny bakgrund */
#mymenu-bg{
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100vh;
	z-index: 999;
	background-color: #000;
	opacity: 0;
	visibility: hidden;
}

body.admin-bar #mymenu-bg {
  top: var(--wp-admin--admin-bar--height);
}


/* Toppmeny */
#mymenu{
	position:relative;
	z-index:1000;
	user-select: none;
}
#mymenu ul{
	align-items:center;
	box-sizing:border-box;
	column-gap:0px;
	display:flex;
	flex-wrap:wrap;
	justify-content:space-between;
	margin:0;
	padding:0;
}
#mymenu ul li{
	align-items:center;
	box-sizing:border-box;
	column-gap:0px;
	cursor:pointer;
	display:flex;
	flex-wrap:nowrap;
	justify-content:flex-start;
	margin:0;
	padding-bottom:20px;
	padding-top:20px;
	padding-left:0px;
	padding-right:0px;
}
@media (hover: hover) and (pointer: fine) {
	#mymenu ul li:hover .mymenu-icon i{
		background-color:#F1D6AB;
		border-radius:60px;
		color:#863127;
	}
}
#mymenu ul li.selected .mymenu-icon i{
	background-color:#F1D6AB;
	border-radius:60px;
	color:#863127;
}
#mymenu a{
	color:#fff;
	text-decoration:none;
	font-weight:500;
	font-size:26px;
}
#mymenu .mymenu-icon i{
	color:#F1D6AB;
	font-size:40px;
	margin-right:10px;
	transition: background-color 0.3s ease, color 0.3s ease, border-radius 0.3s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width:60px;
	height:60px;
}
#mymenu ul.mymenu-children{
	overflow: hidden;
	height: 0;
	position:absolute;
	top:100%;
	left:0;
	width:100%;
	border-radius:0 0 10px 10px;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1px;
	background-color:#eee;
}

/* Undermeny */
#mymenu ul.mymenu-children.open{
}
#mymenu ul.mymenu-children.closed{
	display:none;
}
#mymenu ul.mymenu-children li{
	padding-top:20px;
	padding-bottom:20px;
	padding-right:20px;
	background-color:#fff;
	height:100%;
	transition: background-color 0.3s ease;
}
#mymenu ul.mymenu-children li:last-child{
	border-bottom:none;
}
#mymenu ul.mymenu-children li:nth-child(even){
	border-right:none;
}
#mymenu ul.mymenu-children li:hover{
	background-color:#F1D6AB;
}
#mymenu ul.mymenu-children li .mymenu-icon i{
	background-color:#fff;
	color:#333;
	font-size:40px;
	width:60px;
	height:60px;
	text-align:center;
	margin-left:15px;
}
#mymenu ul.mymenu-children li:hover .mymenu-icon i{
	background-color:#fff;
	color:#333;
}
#mymenu ul.mymenu-children li a{
	color:#333;
	font-size:20px;
	font-weight:600;
}
#mymenu ul.mymenu-children .mymenu-icon{
	display: inline-block;
	text-align:center;
}
#mymenu ul.mymenu-children .mymenu-text{
	display: block; 
	font-size:14px;
}
#mymenu ul li.selected ul.mymenu-children li.current-menu-item .mymenu-icon i,
#mymenu ul li.selected ul.mymenu-children li.current-menu-ancestor .mymenu-icon i{
	background-color:#F1D6AB;
	border-radius:60px;
	color:#863127;
}

/* Dolda nivåer */
#mymenu ul.mymenu-subchildren{
	display:none;
}
/*
#mymenu ul.mymenu-subchildren{
	display:block !important;
}
*/

@media (max-width: 1024px) {
	
	/* Toppmeny */
	#mymenu{
		padding:0 20px 0 10px;
	}
	
	/* Undermeny */
	#mymenu ul.mymenu-children{
		width:calc(100% - 40px);
		margin-left:20px;
		margin-right:20px;
	}
}

/* Mobil skärm */
@media (max-width: 781px) {
	
	/* Toppmeny */
	#mymenu{	
		/*background-color:#f8e8cc;*/
		background-color:#fff;
		padding:2px;
	}
	#mymenu ul li{
		background-color:#863127;
		border-radius: 10px;
		width:calc(50% - 4px);
		margin:2px;
		padding:10px;
	}
	#mymenu ul li a{
		font-size:20px;
	}
	#mymenu .mymenu-icon i{
		color:#F1D6AB;
		font-size:25px;
		margin-right:5px;
		height:40px;
		width:40px;
	}
	
	/* Undermeny */
	#mymenu ul.mymenu-children{
		align-items:left;
		grid-template-columns: repeat(1, 1fr);
		width:100%;
		margin:0;
	}
	#mymenu ul.mymenu-children li{
		border-radius: 0;
		width:100%;
		margin:0;
	}
	#mymenu ul.mymenu-children li .mymenu-icon i{
		margin-right:15px;
		margin-left:0;
	}
	#mymenu ul.mymenu-children .mymenu-text{
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
	
}