/*--------------------------------------------------------------------------------------------------------

# MAIN AND OVERRIDES

--------------------------------------------------------------------------------------------------------*/

* {
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}
html {
  overflow-x: clip;
}
body {
	padding: 0 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

@media (min-width: 1441px) {
	body.sv-theme-socialdemokraterna-ny-profil {
		--env-font-size-base: 1.125em;
	}
}

@media (min-height: 1301px) {
	body.sv-theme-socialdemokraterna-ny-profil {
		--env-font-size-base: 1.125em;
	}
}

main .sos-grid__standard,
main .sv-grid-maxgrid {
	padding: 0 1rem;
}

.sap-box-padding {
   padding: 1em;
}
.sap-box-padding--small {
   padding: 0.75em;
}
.sap-no-margins h1,
.sap-no-margins h2,
.sap-no-margins h3 {
   margin: 0;
}
   
@media (min-width: 400px) {
   .sap-box-padding {
      padding: 2em;
   }
   .sap-box-padding--small {
      padding: 1.5em;
   }
}

/*--------------------------------------------------------------------------------------------------------

# Tell Friend

--------------------------------------------------------------------------------------------------------*/

.sv-tellfriend2-container a.normal {
	padding: .75rem 1rem;
	border-radius: 4px;
	min-height: none;
	-webkit-transition: all 0.3s ease-in-out;
	-o-transition: all 0.3s ease-in-out;
	transition: all 0.3s ease-in-out;
	margin: 0.4rem 0rem;
	font-weight: 600;
}

.sv-tellfriend2-container a.normal:hover {
	text-decoration: underline;
	-webkit-transition: all 0.3s ease-in-out;
	-o-transition: all 0.3s ease-in-out;
	transition: all 0.3s ease-in-out;
}

.sv-tellfriend2-container a.normal {
	background-color: #ED1B34;
	color: #fff;
	border-color: #ED1B34;
}

.sv-tellfriend2-container a.normal:hover {
	color: #ED1B34;
	background-color: #fff;
	border-color: #ED1B34;
}

/*------------------------------------------------------------------------------------------------------

# FRAME

------------------------------------------------------------------------------------------------------*/

.sos-white-frame {
	background-color: var(--env-section-background-color);
	padding: 2rem 3.75rem 3.75rem;
}


@media (min-width: 768px) {
	.sos-white-frame blockquote.sv-blockquote {
		margin: 0 -1.125rem !important;
	}

	.sos-white-frame .sv-image-portlet {
		margin: 2rem 0;
	}

}

@media screen and (max-width: 767px) {

	.sos-white-frame .sv-image-portlet {
		margin: 1rem 0;
	}

	.sos-white-frame {
		padding: 1rem;
	}

}

/* Flex */
.flex {
	display: flex;
}

@media(max-width: 767px) {
	.flex.sv-row {
		flex-direction: column;
	}

	.flex.sv-row>[class*="sv-column-"] {
		width: 100%;
		float: unset !important;
		margin: 0;
	}
}

@media only screen and (max-width: 10000px) and (min-width: 1201px) {
	.sv-visible-sv-bp-dator.flex {
		display: flex !important;
	}
}


/* sap-image-fill */
.sap-image-fill img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	object-position: center;
}

/* sap-light-red-box */
.sap-light-red-box {
	background-color: var(--env-section-background-color);
}

.sos-white-frame .sap-light-red-box {
	background-color: var(--env-background-color);
}

   
/*------------------------------------------------------------------------------------------------------

# Formatmallar

------------------------------------------------------------------------------------------------------*/
p.normal:has(.sv-font-small) {
   margin-bottom: 0 !important;
   line-height: 1;
}
   
.sv-font-small {
   color: inherit;
}
   
.sv-text-portlet .env-ui-text-overline {
   margin-bottom: 1em !important;
}
     
/*------------------------------------------------------------------------------------------------------

# QUOTE

------------------------------------------------------------------------------------------------------*/

blockquote,
blockquote.sv-blockquote,
blockquote.sv-blockquote-edit {
	margin: 0;
	display: inline-flex;
	flex-direction: column;
	gap: 0.75em;
	padding: 0;
	max-width: 30rem;
}

blockquote p:before,
blockquote p:after {}

blockquote:before,
blockquote.sv-blockquote:before,
blockquote.sv-blockquote-edit:lang(sv):before,
blockquote.sv-blockquote:lang(sv):before {
	background: unset !important;
	background-color: currentColor !important;
	mask-image: url(/images/18.348d6de218de83ec3fa2519/1709214581112/quote-icon.svg);
	mask-position: center;
	mask-repeat: no-repeat;
	mask-size: 100%;
	transform: rotate(0deg) !important;
	position: unset;
	height: 2.5em;
	width: 2.5em;
}

blockquote p.normal {
	font-size: 2.5rem;
	font-weight: 900;
	line-height: 1.25;
	margin-bottom: 1rem !important;
}

.env-block-secondary blockquote p.normal,
.env-block-secondary blockquote,
.env-block-secondary blockquote p.normal span.sv-font-ros-display {
	color: var(--env-background-color);
}

/*------------------------------------------------------------------------------------------------------

# Punktlistor - bulletlists

------------------------------------------------------------------------------------------------------*/


ul.normal,
ul.normal ul {
	margin: 0;
	list-style: none;
	padding: 0;
}

ul.normal {
	padding: .5rem 0;
}

ul.normal li {
	margin-top: .25rem;
	margin-left: 1.75rem;
	margin-bottom: 1.25rem;
	line-height: 1.4;
}

ul.normal li:before {
	content: '';
	display: inline-block;
	border-radius: 100%;
	height: .625rem;
	width: .625rem;
	background: var(--env-color-brand);
	margin-right: 1.125rem;
	margin-left: -1.75rem;
	vertical-align: middle;
}

ul.normal li:last-child {
	margin-bottom: 0;
}

.sap-bullet-list--dark-grey li:before {
	background: #303030 !important;
}

/*------------------------------------------------------------------------------------------------------

# Dekorationer - Decorations

------------------------------------------------------------------------------------------------------*/
.sv-decoration-white-box-less-padding > .sv-text-portlet:first-child h2,
   .sv-decoration-white-box-less-padding > .sv-text-portlet:first-child h3,
   .sv-decoration-white-box-less-padding > .sv-text-portlet:first-child h4{
   margin-top: 0;
}
/* Två spalter med boxar */
.sv-decoration-two-columns-with-boxes {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5em;
   margin-bottom: 2.5em;
}

.sv-decoration-two-columns-with-boxes>div {
	width: calc(50% - 0.75em);
}
   
@media(max-width: 767px) {
   .sv-decoration-two-columns-with-boxes>div {
      width: 100%;
   }
}

/*		Temp fix for webapp		*/

@media (max-width: 767px) {

	.sos-ak,
	.sos-district {
		flex-flow: column;
	}
}

/* Länkar */

.pagecontent .sv-text-portlet a.normal:link {
	color: var(--env-link-hover-font-color);
}

/* Sätt nya värden för variabler */
.sv-theme-socialdemokraterna-ny-profil {
	--env-breadcrumb-divider-color: var(--env-font-color);
}
   
/* Personal */
   
.sap-staff h2.subheading {
   margin-top: 1.5em;
   margin-bottom: 0.5em;
}

.sap-staff .env-card .env-ui-text-overline {
   margin-top: 0.25em !important;
   margin-bottom: 0.75em !important;
}
   
   