/* =====================================================================
   HEMGÅRDEN – FÖRBÄTTRINGAR (plugin)
   Laddas efter temats site.css och vinner över äldre regler.
   1. Rubriker (centrering + storlek)
   2. Utmärkelser
   3. Vi utvecklar hem genom livet
   4. Interaktiv karta
   5. Projektkort (Hem till salu)
   6. Projektmodaler – samma utseende för alla projekt
   7. Standard för hela sajten: header, footer, marginaler, rubriker
   8. Startsidan (SV + EN)
   9. Undersidor
   ===================================================================== */

:root {
	--hgx-navy: #173452;
	--hgx-ink: #1f241f;
	--hgx-text: #414a43;
	--hgx-muted: #697169;
	--hgx-line: #dcd8cf;
	--hgx-paper: #faf9f5;
	--hgx-sand: #f7f4f0;
	--hgx-sky: #eaf0f7;
	--hgx-red: #9b1c2c;
	--hgx-red-on-dark: #b52a3e;
	--hgx-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--hgx-sans: Outfit, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* ---------------------------------------------------------------------
   1. RUBRIKER – centrerade där undertexten är centrerad, och större
   --------------------------------------------------------------------- */

html body:not(#hgx) .hg-home .hg-eyebrow,
html body:not(#hgx) .hg-home .hg-section-heading .hg-eyebrow {
	font-family: var(--hgx-sans) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	letter-spacing: 0.16em !important;
	line-height: 1.4 !important;
}

html body:not(#hgx) .hg-home .hg-values .hg-section-heading,
html body:not(#hgx) .hg-home .hg-quality .hg-section-heading {
	text-align: center !important;
	max-width: 820px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
}

html body:not(#hgx) .hg-home .hg-values .hg-eyebrow,
html body:not(#hgx) .hg-home .hg-quality .hg-eyebrow,
html body:not(#hgx) .hg-home .hg-lifestages .hg-eyebrow {
	display: block !important;
	width: 100% !important;
	text-align: center !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

html body:not(#hgx) .hg-home .hg-values .hg-section-heading h2,
html body:not(#hgx) .hg-home .hg-quality .hg-section-heading h2 {
	font-family: var(--hgx-serif) !important;
	font-size: clamp(2.4rem, 4.2vw, 3.4rem) !important;
	font-weight: 400 !important;
	line-height: 1.08 !important;
	text-align: center !important;
	margin: 12px auto 18px !important;
}

html body:not(#hgx) .hg-home .hg-values .hg-section-heading p:not(.hg-eyebrow),
html body:not(#hgx) .hg-home .hg-quality .hg-section-heading p:not(.hg-eyebrow),
html body:not(#hgx) .hg-home .hg-quality .hg-shell > p:not(.hg-eyebrow):first-of-type {
	text-align: center !important;
	max-width: 700px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	font-size: 17px !important;
	line-height: 1.65 !important;
}

/* Övriga sektionsrubriker på startsidan får samma storlek */
html body:not(#hgx) .hg-home .hg-presence__copy > h2 {
	font-family: var(--hgx-serif) !important;
	font-size: clamp(2.1rem, 3.4vw, 2.75rem) !important;
	line-height: 1.12 !important;
}

/* ---------------------------------------------------------------------
   2. UTMÄRKELSER – liten, diskret rad i samma stil som sifferbannern
   --------------------------------------------------------------------- */

html body:not(#hgx) .hg-home section.hg-awards {
	padding: 14px 0 !important;
	margin: 0 !important;
	min-height: 0 !important;
	background: #fff !important;
	border-bottom: 1px solid #ebe7df !important;
}

html body:not(#hgx) .hg-home .hg-awards .hg-shell {
	display: grid !important;
	grid-template-columns: minmax(150px, 0.8fr) 3.2fr !important;
	align-items: center !important;
	gap: 28px !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

html body:not(#hgx) .hg-home .hg-awards .hg-section-heading {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	max-width: none !important;
	text-align: left !important;
}

html body:not(#hgx) .hg-home .hg-awards .hg-section-heading h2 {
	margin: 0 0 2px !important;
	font-family: var(--hgx-serif) !important;
	font-size: 18px !important;
	font-weight: 400 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	line-height: 1.3 !important;
	color: var(--hgx-ink) !important;
	text-align: left !important;
}

html body:not(#hgx) .hg-home .hg-awards .hg-section-heading h2::after,
html body:not(#hgx) .hg-home .hg-awards .hg-section-heading h2::before {
	display: none !important;
}

html body:not(#hgx) .hg-home .hg-awards .hg-section-heading p:not(.hg-eyebrow) {
	margin: 0 !important;
	max-width: 220px !important;
	font-family: var(--hgx-sans) !important;
	font-size: 12px !important;
	line-height: 1.5 !important;
	color: var(--hgx-muted) !important;
	text-align: left !important;
}

html body:not(#hgx) .hg-home .hg-awards .hg-section-heading p:not(.hg-eyebrow) br {
	display: none;
}

html body:not(#hgx) .hg-home .hg-awards .hg-awards__grid {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
}

html body:not(#hgx) .hg-home .hg-awards .hg-award {
	display: grid !important;
	grid-template-columns: auto 1fr !important;
	grid-template-rows: auto auto !important;
	column-gap: 10px !important;
	row-gap: 2px !important;
	align-items: start !important;
	align-content: center !important;
	text-align: left !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 18px !important;
	background: none !important;
	border: 0 !important;
	border-left: 1px solid #e3dfd6 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	transform: none !important;
}

html body:not(#hgx) .hg-home .hg-awards .hg-award::before,
html body:not(#hgx) .hg-home .hg-awards .hg-award::after {
	display: none !important;
}

/* ikon + typ på första raden, namnet under */
html body:not(#hgx) .hg-home .hg-awards .hg-award__top {
	display: contents !important;
}

html body:not(#hgx) .hg-home .hg-awards .hg-award__icon {
	grid-column: 1 !important;
	grid-row: 1 / span 2 !important;
	align-self: center !important;
	position: static !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex: none !important;
	width: 18px !important;
	min-width: 18px !important;
	height: 18px !important;
	min-height: 18px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	color: var(--hgx-navy) !important;
	opacity: 0.75;
	transform: none !important;
}

html body:not(#hgx) .hg-home .hg-awards .hg-award__icon svg {
	width: 18px !important;
	height: 18px !important;
}

html body:not(#hgx) .hg-home .hg-awards .hg-award__type {
	grid-column: 2 !important;
	grid-row: 1 !important;
	display: block !important;
	margin: 0 !important;
	font-family: var(--hgx-sans) !important;
	font-size: 11.5px !important;
	font-weight: 500 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	line-height: 1.3 !important;
	color: var(--hgx-muted) !important;
	text-align: left !important;
	position: static !important;
}

html body:not(#hgx) .hg-home .hg-awards .hg-award h3 {
	grid-column: 2 !important;
	grid-row: 2 !important;
	margin: 0 !important;
	padding: 0 !important;
	font-family: var(--hgx-serif) !important;
	font-size: 14.5px !important;
	font-weight: 400 !important;
	line-height: 1.3 !important;
	color: var(--hgx-ink) !important;
	text-align: left !important;
	max-width: none !important;
}

html body:not(#hgx) .hg-home .hg-awards .hg-award p {
	display: none !important;
}

@media (max-width: 960px) {
	html body:not(#hgx) .hg-home .hg-awards .hg-shell {
		grid-template-columns: 1fr !important;
		gap: 14px !important;
	}
	html body:not(#hgx) .hg-home .hg-awards .hg-section-heading p:not(.hg-eyebrow) {
		max-width: none !important;
	}
	html body:not(#hgx) .hg-home .hg-awards .hg-awards__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		row-gap: 14px !important;
	}
	html body:not(#hgx) .hg-home .hg-awards .hg-award:nth-child(odd) {
		border-left: 0 !important;
		padding-left: 0 !important;
	}
}

@media (max-width: 520px) {
	html body:not(#hgx) .hg-home .hg-awards .hg-awards__grid {
		grid-template-columns: 1fr !important;
	}
	html body:not(#hgx) .hg-home .hg-awards .hg-award {
		border-left: 0 !important;
		padding-left: 0 !important;
	}
}

/* ---------------------------------------------------------------------
   3. VI UTVECKLAR HEM GENOM LIVET – mindre luft, en rad på desktop
   --------------------------------------------------------------------- */

html body:not(#hgx) .hg-home section.hg-lifestages {
	padding: 56px 0 52px !important;
	margin: 0 !important;
	min-height: 0 !important;
}

html body:not(#hgx) .hg-home .hg-lifestages .hg-shell {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

html body:not(#hgx) .hg-home .hg-lifestages .hg-eyebrow {
	margin: 0 auto 34px !important;
}

html body:not(#hgx) .hg-home .hg-lifestages .hg-eyebrow::after {
	margin: 14px auto 0 !important;
}

html body:not(#hgx) .hg-home .hg-lifestages .hg-life-timeline {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: stretch !important;
	justify-content: center !important;
	gap: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	grid-template-columns: none !important;
}

html body:not(#hgx) .hg-home .hg-lifestages .hg-life-stage {
	flex: 1 1 0 !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	gap: 14px !important;
	margin: 0 !important;
	padding: 6px 10px !important;
	min-height: 0 !important;
	border: 0 !important;
	text-align: center !important;
}

html body:not(#hgx) .hg-home .hg-lifestages .hg-life-stage::before,
html body:not(#hgx) .hg-home .hg-lifestages .hg-life-stage::after {
	display: none !important;
}

html body:not(#hgx) .hg-home .hg-lifestages .hg-life-stage__icon {
	margin: 0 !important;
	color: var(--hgx-navy) !important;
}

html body:not(#hgx) .hg-home .hg-lifestages .hg-life-stage__label {
	margin: 0 !important;
	font-family: var(--hgx-sans) !important;
	font-size: 15px !important;
	line-height: 1.35 !important;
	color: var(--hgx-navy) !important;
}

html body:not(#hgx) .hg-home .hg-lifestages .hg-life-timeline__line {
	display: block !important;
	flex: 0 0 1px !important;
	width: 1px !important;
	min-width: 1px !important;
	max-width: 1px !important;
	padding: 0 !important;
	height: auto !important;
	min-height: 56px !important;
	margin: 4px 0 !important;
	background: var(--hgx-line) !important;
	border: 0 !important;
	position: static !important;
	transform: none !important;
}

html body:not(#hgx) .hg-home .hg-lifestages .hg-shell > p:not(.hg-eyebrow) {
	max-width: 760px !important;
	margin: 36px auto 0 !important;
	padding: 0 !important;
	text-align: center !important;
	font-family: var(--hgx-serif) !important;
	font-size: 19px !important;
	font-size-adjust: 0.47;
	line-height: 1.5 !important;
	color: var(--hgx-ink) !important;
}

html body:not(#hgx) .hg-home .hg-lifestages .hg-shell > p:not(.hg-eyebrow):empty {
	display: none !important;
}

@media (max-width: 820px) {
	html body:not(#hgx) .hg-home .hg-lifestages .hg-life-timeline {
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
		row-gap: 26px !important;
	}
	html body:not(#hgx) .hg-home .hg-lifestages .hg-life-timeline__line {
		display: none !important;
	}
}

@media (max-width: 480px) {
	html body:not(#hgx) .hg-home section.hg-lifestages {
		padding: 44px 0 40px !important;
	}
	html body:not(#hgx) .hg-home .hg-lifestages .hg-life-timeline {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

/* ---------------------------------------------------------------------
   4. INTERAKTIV KARTA
   --------------------------------------------------------------------- */

html body:not(#hgx) .hg-presence__map.hgx-map-ready {
	position: relative !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 1px solid #d8ddd7 !important;
	background: #eef0ec !important;
	box-shadow: none !important;
	height: auto !important;
	min-height: 0 !important;
	aspect-ratio: auto !important;
	overflow: hidden !important;
	align-self: stretch !important;
}

html body:not(#hgx) .hg-presence__map.hgx-map-ready > img,
html body:not(#hgx) .hg-presence__map.hgx-map-ready > picture,
html body:not(#hgx) .hg-presence__map.hgx-map-ready > figcaption {
	display: none !important;
}

html body:not(#hgx) .hgx-map {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 460px;
	background: #eef0ec;
	font-family: var(--hgx-sans);
	z-index: 0;
}

html body:not(#hgx) .hgx-map .leaflet-container,
html body:not(#hgx) .hgx-map.leaflet-container {
	font-family: var(--hgx-sans);
	background: #eef0ec;
}

/* skydda kartbilderna mot temats bildregler */
html body:not(#hgx) .hgx-map img.leaflet-tile {
	max-width: none !important;
	max-height: none !important;
	width: 256px !important;
	height: 256px !important;
	object-fit: fill !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

html body:not(#hgx) .hgx-map .leaflet-control-attribution {
	font-size: 10px;
	background: rgba(250, 249, 245, 0.85);
	color: var(--hgx-muted);
}

html body:not(#hgx) .hgx-map .leaflet-control-attribution a {
	color: var(--hgx-muted);
}

html body:not(#hgx) .hgx-map .leaflet-bar {
	border: 1px solid #d8ddd7 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

html body:not(#hgx) .hgx-map .leaflet-bar a {
	width: 34px !important;
	height: 34px !important;
	line-height: 32px !important;
	color: var(--hgx-navy) !important;
	background: var(--hgx-paper) !important;
	border-radius: 0 !important;
	text-decoration: none !important;
}

html body:not(#hgx) .hgx-map .leaflet-bar a:hover {
	background: #fff !important;
}

/* Vy-knappar */
.hgx-map-views {
	display: flex;
	gap: 0;
	background: var(--hgx-paper);
	border: 1px solid #d8ddd7;
}

.hgx-map-views button {
	appearance: none;
	border: 0;
	margin: 0;
	padding: 9px 14px;
	background: transparent;
	color: var(--hgx-navy);
	font-family: var(--hgx-sans);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
	line-height: 1.2;
}

.hgx-map-views button + button {
	border-left: 1px solid #d8ddd7;
}

.hgx-map-views button.is-active,
.hgx-map-views button:hover {
	background: var(--hgx-navy);
	color: #fff;
}

.hgx-map-hint {
	background: rgba(250, 249, 245, 0.92);
	border: 1px solid #d8ddd7;
	padding: 7px 12px;
	font-family: var(--hgx-sans);
	font-size: 12px;
	color: var(--hgx-muted);
	pointer-events: none;
}

/* Markörer */
.hgx-pin-wrap {
	background: none !important;
	border: 0 !important;
}

.hgx-pin {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: var(--hgx-navy);
	color: #fff;
	border: 2px solid #fff;
	box-shadow: 0 2px 8px rgba(23, 52, 82, 0.35);
	font-family: var(--hgx-sans);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	box-sizing: border-box;
	cursor: pointer;
	transition: transform 0.2s ease, background 0.2s ease;
}

.hgx-pin--empty {
	background: #fff;
	border: 3px solid var(--hgx-navy);
	box-shadow: 0 1px 4px rgba(23, 52, 82, 0.25);
}

.hgx-pin--region {
	background: #8b1e2d;
	font-size: 13px;
}

.hgx-pin-wrap:hover .hgx-pin,
.hgx-pin-wrap:focus .hgx-pin {
	transform: scale(1.15);
}

/* Ortnamn */
html body:not(#hgx) .hgx-map .leaflet-tooltip.hgx-label {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0 4px;
	font-family: var(--hgx-sans);
	font-size: 12px;
	font-weight: 600;
	color: var(--hgx-navy);
	text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff;
	white-space: nowrap;
}

html body:not(#hgx) .hgx-map .leaflet-tooltip.hgx-label::before {
	display: none;
}

/* Popup */
html body:not(#hgx) .hgx-map .leaflet-popup-content-wrapper {
	border-radius: 0;
	background: var(--hgx-paper);
	box-shadow: 0 18px 40px -18px rgba(23, 52, 82, 0.5);
	border: 1px solid #d8ddd7;
	padding: 0;
}

html body:not(#hgx) .hgx-map .leaflet-popup-content {
	margin: 0;
	width: 270px !important;
	font-family: var(--hgx-sans);
}

html body:not(#hgx) .hgx-map .leaflet-popup-tip {
	background: var(--hgx-paper);
	box-shadow: none;
	border: 1px solid #d8ddd7;
}

html body:not(#hgx) .hgx-map a.leaflet-popup-close-button {
	color: var(--hgx-navy);
	top: 8px;
	right: 8px;
	font-size: 20px;
}

.hgx-pop {
	padding: 18px 20px 16px;
}

.hgx-pop__eyebrow {
	margin: 0 0 4px;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: #8b1e2d;
}

.hgx-pop__title {
	margin: 0 0 12px;
	font-family: var(--hgx-serif);
	font-size: 22px;
	font-weight: 400;
	line-height: 1.15;
	color: var(--hgx-navy);
}

.hgx-pop__list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid #e3e0d8;
	max-height: 230px;
	overflow-y: auto;
}

.hgx-pop__list li {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid #e3e0d8;
}

.hgx-pop__list a,
.hgx-pop__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 9px 0;
	text-decoration: none !important;
	color: var(--hgx-ink) !important;
}

.hgx-pop__list a:hover .hgx-pop__name {
	color: var(--hgx-navy);
	text-decoration: underline;
}

.hgx-pop__name {
	display: block;
	font-family: var(--hgx-serif);
	font-size: 15.5px;
	line-height: 1.25;
}

.hgx-pop__place {
	display: block;
	margin-top: 2px;
	font-size: 11.5px;
	color: var(--hgx-muted);
}

.hgx-pop__tag {
	flex: 0 0 auto;
	padding: 3px 7px;
	font-size: 9.5px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--hgx-navy);
	background: var(--hgx-sky);
}

.hgx-pop__tag--own {
	color: var(--hgx-muted);
	background: #efece6;
}

.hgx-pop__tag--sale {
	color: #fff;
	background: var(--hgx-navy);
}

.hgx-pop__btn {
	display: inline-block;
	margin-top: 12px;
	padding: 0;
	border: 0;
	background: none;
	font-family: var(--hgx-sans);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--hgx-navy);
	cursor: pointer;
	border-bottom: 1px solid var(--hgx-navy);
}

@media (max-width: 900px) {
	html body:not(#hgx) .hgx-map {
		min-height: 400px;
	}
}

@media (max-width: 560px) {
	html body:not(#hgx) .hgx-map {
		min-height: 360px;
	}
	.hgx-map-hint {
		display: none;
	}
	.hgx-map-views button {
		padding: 8px 10px;
		font-size: 10px;
	}
}

/* ---------------------------------------------------------------------
   5. PROJEKTKORT – Hem till salu: samma typsnitt och bildformat
   --------------------------------------------------------------------- */

html body:not(#hgx) .hg-sale-card .hg-sale-card__image {
	aspect-ratio: 4 / 3 !important;
	height: auto !important;
	overflow: hidden !important;
	background: #ebe8e1 !important;
	padding: 0 !important;
}

html body:not(#hgx) .hg-sale-card .hg-sale-card__image img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
	transition: transform 0.6s ease;
}

html body:not(#hgx) .hg-sale-card:hover .hg-sale-card__image img {
	transform: scale(1.03);
}

html body:not(#hgx) .hg-sale-card h3 {
	font-family: var(--hgx-serif) !important;
	font-weight: 400 !important;
}

html body:not(#hgx) .hg-sale-card p,
html body:not(#hgx) .hg-sale-card .hg-sale-card__text,
html body:not(#hgx) .hg-sale-card .hg-sale-card__place {
	font-family: var(--hgx-sans) !important;
	text-align: left !important;
	hyphens: manual !important;
}

html body:not(#hgx) .hg-sale-card,
html body:not(#hgx) .hg-fp-card {
	cursor: pointer;
}

/* ---------------------------------------------------------------------
   6. PROJEKTMODALER – samma layout för Hem till salu, Bostäder
      och Samhällsfastigheter
   --------------------------------------------------------------------- */

/* Ram */
html body:not(#hgx) .hg-fp-modal .hg-fp-modal__dialog,
html body:not(#hgx) .hg-sale-modal .hg-sale-modal__dialog {
	width: min(1040px, calc(100vw - 40px)) !important;
	max-width: none !important;
	background: var(--hgx-paper) !important;
	border-radius: 0 !important;
	border: 0 !important;
	box-shadow: 0 30px 80px -30px rgba(10, 25, 40, 0.55) !important;
	font-family: var(--hgx-sans) !important;
}

html body:not(#hgx) .hg-fp-modal .hg-fp-modal__backdrop,
html body:not(#hgx) .hg-sale-modal .hg-sale-modal__backdrop {
	background: rgba(23, 52, 82, 0.56) !important;
}

/* Stängknapp */
html body:not(#hgx) .hg-fp-modal .hg-fp-modal__close,
html body:not(#hgx) .hg-sale-modal .hg-sale-modal__close {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 44px !important;
	height: 44px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, 0.94) !important;
	color: var(--hgx-navy) !important;
	font-family: var(--hgx-sans) !important;
	font-size: 24px !important;
	line-height: 1 !important;
	box-shadow: 0 4px 14px rgba(23, 52, 82, 0.25) !important;
	cursor: pointer !important;
	z-index: 20 !important;
}

html body:not(#hgx) .hg-fp-modal .hg-fp-modal__close:hover,
html body:not(#hgx) .hg-sale-modal .hg-sale-modal__close:hover {
	background: var(--hgx-navy) !important;
	color: #fff !important;
}

/* Huvudbild – samma höjd i alla modaler */
html body:not(#hgx) .hg-fp-modal .hg-fp-modal__hero,
html body:not(#hgx) .hg-sale-modal .hg-sale-modal__dialog > .hg-sale-modal__gallery {
	display: grid !important;
	grid-auto-flow: column !important;
	grid-auto-columns: 1fr !important;
	grid-template-columns: none !important;
	grid-template-rows: 1fr !important;
	gap: 0 !important;
	width: 100% !important;
	max-width: none !important;
	height: clamp(260px, 52vh, 480px) !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	background: #e8e5de !important;
}

html body:not(#hgx) .hg-sale-modal .hg-sale-modal__dialog > .hg-sale-modal__gallery > figure,
html body:not(#hgx) .hg-fp-modal .hg-fp-modal__hero > figure {
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	grid-column: auto !important;
	grid-row: auto !important;
	aspect-ratio: auto !important;
}

html body:not(#hgx) .hg-fp-modal .hg-fp-modal__hero img,
html body:not(#hgx) .hg-sale-modal .hg-sale-modal__dialog > .hg-sale-modal__gallery img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover !important;
	margin: 0 !important;
}

html body:not(#hgx) .hg-fp-modal .hg-fp-modal__image-credit {
	padding: 6px 16px 0 !important;
	text-align: right !important;
	font-size: 11px !important;
	color: var(--hgx-muted) !important;
}

/* Innehåll – samma ordning: plats, namn, text, fakta, detaljer, bilder */
html body:not(#hgx) .hg-fp-modal .hg-fp-modal__content,
html body:not(#hgx) .hg-sale-modal .hg-sale-modal__content {
	display: flex !important;
	flex-direction: column !important;
	gap: 18px !important;
	padding: 46px 64px 60px !important;
	max-width: none !important;
}

html body:not(#hgx) .hg-fp-modal .hg-fp-modal__content > *,
html body:not(#hgx) .hg-sale-modal .hg-sale-modal__content > * {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	max-width: none !important;
}

html body:not(#hgx) .hg-fp-modal .hg-fp-modal__content > .hg-fp-modal__facts,
html body:not(#hgx) .hg-sale-modal .hg-sale-modal__content > .hg-sale-modal__facts {
	order: 2 !important;
	margin-top: 10px !important;
}

html body:not(#hgx) .hg-fp-modal .hg-fp-modal__content > [class*="story-grid"],
html body:not(#hgx) .hg-fp-modal .hg-fp-modal__content > .hg-fp-modal__grid,
html body:not(#hgx) .hg-fp-modal .hg-fp-modal__content > .hg-fp-modal__breakdown {
	order: 3 !important;
	margin-top: 14px !important;
}

html body:not(#hgx) .hg-fp-modal .hg-fp-modal__content > .hg-fp-modal__gallery,
html body:not(#hgx) .hg-sale-modal .hg-sale-modal__content > .hg-sale-modal__gallery {
	order: 4 !important;
	margin-top: 14px !important;
}

html body:not(#hgx) .hg-fp-modal .hg-fp-modal__content > .hg-fp-modal__gallery-credit {
	order: 5 !important;
}

html body:not(#hgx) .hg-fp-modal .hg-fp-modal__content > .hg-fp-modal__sources {
	order: 6 !important;
	margin-top: 8px !important;
}

html body:not(#hgx) .hg-sale-modal .hg-sale-modal__content > .hg-sale-modal__actions {
	order: 7 !important;
	margin-top: 10px !important;
}

/* Plats-rad (eyebrow) */
html body:not(#hgx) .hg-fp-modal .hg-fp-modal__eyebrow,
html body:not(#hgx) .hg-fp-modal .hg-fp-modal__content > .hg-eyebrow,
html body:not(#hgx) .hg-sale-modal .hg-sale-modal__eyebrow {
	display: block !important;
	font-family: var(--hgx-sans) !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	letter-spacing: 0.15em !important;
	text-transform: uppercase !important;
	line-height: 1.5 !important;
	color: var(--hgx-navy) !important;
	text-align: left !important;
}

/* Projektnamn */
html body:not(#hgx) .hg-fp-modal .hg-fp-modal__content > h2,
html body:not(#hgx) .hg-sale-modal .hg-sale-modal__content > h2 {
	font-family: var(--hgx-serif) !important;
	font-size: clamp(2.2rem, 4.6vw, 3.5rem) !important;
	font-weight: 400 !important;
	line-height: 1.05 !important;
	letter-spacing: -0.01em !important;
	color: var(--hgx-navy) !important;
	text-align: left !important;
	margin-top: -8px !important;
}

html body:not(#hgx) .hg-sale-modal .hg-sale-modal__concept-title {
	font-family: var(--hgx-serif) !important;
	font-size: 24px !important;
	font-weight: 400 !important;
	line-height: 1.3 !important;
	color: var(--hgx-ink) !important;
}

/* Brödtext */
html body:not(#hgx) .hg-fp-modal .hg-fp-modal__content p,
html body:not(#hgx) .hg-sale-modal .hg-sale-modal__content p {
	font-family: var(--hgx-sans) !important;
	font-size: 16.5px !important;
	line-height: 1.72 !important;
	color: var(--hgx-text) !important;
	text-align: left !important;
	hyphens: manual !important;
	-webkit-hyphens: manual !important;
}

html body:not(#hgx) .hg-fp-modal .hg-fp-modal__content > .hg-fp-modal__lead:first-of-type {
	font-size: 18px !important;
}

html body:not(#hgx) .hg-sale-modal .hg-sale-modal__concept-copy {
	display: flex !important;
	flex-direction: column !important;
	gap: 14px !important;
}

html body:not(#hgx) .hg-sale-modal .hg-sale-modal__concept-copy p {
	margin: 0 !important;
}

/* Faktaruta – samma i alla modaler */
html body:not(#hgx) .hg-fp-modal .hg-fp-modal__facts,
html body:not(#hgx) .hg-sale-modal .hg-sale-modal__facts {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
	gap: 1px !important;
	padding: 0 !important;
	background: #d8ddd7 !important;
	border: 1px solid #d8ddd7 !important;
	border-radius: 0 !important;
}

html body:not(#hgx) .hg-fp-modal .hg-fp-modal__facts > div,
html body:not(#hgx) .hg-sale-modal .hg-sale-modal__facts > div {
	display: flex !important;
	flex-direction: column !important;
	gap: 8px !important;
	margin: 0 !important;
	padding: 18px 20px 20px !important;
	background: var(--hgx-sky) !important;
	border: 0 !important;
	min-height: 0 !important;
}

html body:not(#hgx) .hg-fp-modal .hg-fp-modal__facts span,
html body:not(#hgx) .hg-sale-modal .hg-sale-modal__facts span {
	display: block !important;
	font-family: var(--hgx-sans) !important;
	font-size: 10.5px !important;
	font-weight: 600 !important;
	letter-spacing: 0.14em !important;
	text-transform: uppercase !important;
	line-height: 1.4 !important;
	color: var(--hgx-muted) !important;
}

html body:not(#hgx) .hg-fp-modal .hg-fp-modal__facts strong,
html body:not(#hgx) .hg-sale-modal .hg-sale-modal__facts strong {
	display: block !important;
	font-family: var(--hgx-sans) !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	color: var(--hgx-navy) !important;
}

/* Detaljtexter (rubrik + text i två kolumner) */
html body:not(#hgx) .hg-fp-modal [class*="hg-fp-modal__story-grid"],
html body:not(#hgx) .hg-fp-modal .hg-fp-modal__grid {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 28px 44px !important;
}

html body:not(#hgx) .hg-fp-modal [class*="hg-fp-modal__story-grid"] h3,
html body:not(#hgx) .hg-fp-modal .hg-fp-modal__grid h3 {
	margin: 0 0 8px !important;
	font-family: var(--hgx-serif) !important;
	font-size: 22px !important;
	font-weight: 400 !important;
	line-height: 1.25 !important;
	color: var(--hgx-navy) !important;
}

html body:not(#hgx) .hg-fp-modal [class*="hg-fp-modal__story-grid"] p,
html body:not(#hgx) .hg-fp-modal .hg-fp-modal__grid p {
	margin: 0 !important;
	font-size: 15px !important;
	line-height: 1.68 !important;
}

/* Bildgalleri – samma rutnät och format överallt */
html body:not(#hgx) .hg-fp-modal .hg-fp-modal__content > .hg-fp-modal__gallery,
html body:not(#hgx) .hg-sale-modal .hg-sale-modal__content > .hg-sale-modal__gallery {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	grid-auto-rows: auto !important;
	grid-auto-flow: row !important;
	gap: 12px !important;
	height: auto !important;
	padding: 0 !important;
	columns: auto !important;
}

html body:not(#hgx) .hg-fp-modal .hg-fp-modal__content > .hg-fp-modal__gallery > figure,
html body:not(#hgx) .hg-sale-modal .hg-sale-modal__content > .hg-sale-modal__gallery > figure {
	position: relative !important;
	grid-column: auto !important;
	grid-row: auto !important;
	width: auto !important;
	height: auto !important;
	aspect-ratio: 4 / 3 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	background: #ebe8e1 !important;
	transform: none !important;
}

html body:not(#hgx) .hg-fp-modal .hg-fp-modal__content > .hg-fp-modal__gallery > figure:last-child:nth-child(odd),
html body:not(#hgx) .hg-sale-modal .hg-sale-modal__content > .hg-sale-modal__gallery > figure:last-child:nth-child(odd) {
	grid-column: 1 / -1 !important;
	aspect-ratio: 16 / 9 !important;
}

html body:not(#hgx) .hg-fp-modal .hg-fp-modal__content > .hg-fp-modal__gallery img,
html body:not(#hgx) .hg-sale-modal .hg-sale-modal__content > .hg-sale-modal__gallery img {
	position: absolute !important;
	inset: 0 !important;
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover !important;
	margin: 0 !important;
}

html body:not(#hgx) .hg-fp-modal .hg-fp-modal__content > .hg-fp-modal__gallery figcaption,
html body:not(#hgx) .hg-sale-modal .hg-sale-modal__content > .hg-sale-modal__gallery figcaption {
	position: absolute !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	padding: 18px 12px 8px !important;
	font-size: 11px !important;
	color: #fff !important;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.45)) !important;
}

html body:not(#hgx) .hg-fp-modal .hg-fp-modal__gallery-credit,
html body:not(#hgx) .hg-fp-modal .hg-fp-modal__sources,
html body:not(#hgx) .hg-fp-modal .hg-fp-modal__sources a {
	font-size: 12px !important;
	line-height: 1.6 !important;
	color: var(--hgx-muted) !important;
}

@media (max-width: 760px) {
	html body:not(#hgx) .hg-fp-modal .hg-fp-modal__content,
	html body:not(#hgx) .hg-sale-modal .hg-sale-modal__content {
		padding: 30px 22px 40px !important;
		gap: 16px !important;
	}
	html body:not(#hgx) .hg-fp-modal [class*="hg-fp-modal__story-grid"],
	html body:not(#hgx) .hg-fp-modal .hg-fp-modal__grid {
		grid-template-columns: 1fr !important;
	}
	html body:not(#hgx) .hg-fp-modal .hg-fp-modal__facts,
	html body:not(#hgx) .hg-sale-modal .hg-sale-modal__facts {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
	html body:not(#hgx) .hg-fp-modal .hg-fp-modal__content > .hg-fp-modal__gallery,
	html body:not(#hgx) .hg-sale-modal .hg-sale-modal__content > .hg-sale-modal__gallery {
		gap: 8px !important;
	}
}

/* ---------------------------------------------------------------------
   7. HELA SAJTEN – gemensamma förbättringar på alla sidor
   --------------------------------------------------------------------- */

/* Ingen automatisk avstavning (gav "fastig-heter", "po-tential" osv.) */
html body:not(#hgx) .entry-content p,
html body:not(#hgx) .entry-content li,
html body:not(#hgx) .entry-content small,
html body:not(#hgx) .hg-footer p {
	hyphens: manual !important;
	-webkit-hyphens: manual !important;
}

/* Text som var marginaljusterad blir vänsterställd (sätts av skriptet) */
html body:not(#hgx):not(#hgx2) .hgx-left {
	text-align: left !important;
	word-spacing: normal !important;
}

/* Ingresser i sidornas toppar – större och lättare att läsa */
html body:not(#hgx) .entry-content p[class*="hero__lead"],
html body:not(#hgx) .entry-content p[class*="intro__lead"],
html body:not(#hgx) .entry-content p[class*="hero__text"],
html body:not(#hgx) .entry-content p[class*="hero__intro"] {
	font-size: 17px !important;
	line-height: 1.65 !important;
	max-width: 540px !important;
}

/* Sidan Hem till salu använde Arial – samma typsnitt som resten */
html body:not(#hgx) .hg-homes-sale-page p,
html body:not(#hgx) .hg-homes-sale-page li,
html body:not(#hgx) .hg-homes-sale-page span,
html body:not(#hgx) .hg-homes-sale-page a,
html body:not(#hgx) .hg-homes-sale-page small,
html body:not(#hgx) .hg-homes-sale-page strong {
	font-family: var(--hgx-sans) !important;
}

html body:not(#hgx) .hg-homes-sale-page h1,
html body:not(#hgx) .hg-homes-sale-page h2,
html body:not(#hgx) .hg-homes-sale-page h3 {
	font-family: var(--hgx-serif) !important;
	font-weight: 400 !important;
}

/* Vår filosofi – rutorna lika stora och i rak linje */
html body:not(#hgx) .hg-loci-factors__grid {
	grid-auto-rows: 1fr !important;
	align-items: stretch !important;
}

html body:not(#hgx) .hg-loci-factors__grid > .hg-loci-card {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: flex-start !important;
	margin: 0 !important;
	padding: 30px 22px !important;
	transform: none !important;
	top: auto !important;
	height: auto !important;
}

/* Sidfot – loggan i vitt i linje med texten, mejladresser bryts snyggt */
html body:not(#hgx) .hg-footer .hg-footer__logo.hgx-footer-logo {
	display: block !important;
	width: 189px !important;
	max-width: 100% !important;
	height: auto !important;
	margin: 0 0 14px !important;
	padding: 0 !important;
	object-fit: contain !important;
	object-position: left center !important;
	filter: none !important;
}

html body:not(#hgx) .hg-footer .hg-footer__logo-link {
	display: inline-block !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 0 !important;
}

html body:not(#hgx) .hg-footer .hg-footer__logo-link + p,
html body:not(#hgx) .hg-footer .hg-footer__logo-link ~ p:first-of-type {
	margin-top: 0 !important;
}

html body:not(#hgx) .hg-footer a[href^="mailto:"] {
	font-size: 13.5px !important;
	white-space: nowrap !important;
	overflow-wrap: normal !important;
	word-break: normal !important;
}

/* ---------------------------------------------------------------------
   8. TYPOGRAFI OCH LUFT – hela sajten
      Cormorant Garamond (rubriker) + Outfit (text), Hemgårdens
      blå, röda och vita färger.
   --------------------------------------------------------------------- */

html body:not(#hgx) .wp-site-blocks :is(h1, h2, h3, h4, h5, h6) {
	font-family: var(--hgx-serif) !important;
	font-weight: 400 !important;
	font-size-adjust: 0.47;
	letter-spacing: -0.005em !important;
	color: var(--hgx-navy);
}

html body:not(#hgx) .wp-site-blocks :is(h1, h2) {
	font-weight: 400 !important;
	line-height: 1.08 !important;
}

html body:not(#hgx) .wp-site-blocks :is(p, li, small, label, input, select, textarea, button, td, th, figcaption, dd, dt),
html body:not(#hgx) .wp-site-blocks :is(a, span, strong, em, b):not(:is(h1, h2, h3, h4, h5, h6) *) {
	font-family: var(--hgx-sans) !important;
}

html body:not(#hgx) .wp-site-blocks .entry-content p:not([class*="eyebrow"]):not([class*="kicker"]) {
	font-weight: 300;
	line-height: 1.75;
	color: #3f4651;
}

html body:not(#hgx) .wp-site-blocks strong,
html body:not(#hgx) .wp-site-blocks b {
	font-weight: 500;
}

/* Små överrubriker: röd, luftig versal */
html body:not(#hgx) .wp-site-blocks [class*="eyebrow"],
html body:not(#hgx) .wp-site-blocks [class*="kicker"],
html body:not(#hgx) .wp-site-blocks .hg-fp-modal__eyebrow,
html body:not(#hgx) .wp-site-blocks .hg-sale-modal__eyebrow {
	font-family: var(--hgx-sans) !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	letter-spacing: 0.26em !important;
	text-transform: uppercase !important;
	color: var(--hgx-red) !important;
}

/* Meny / sidhuvud – exakt samma på alla sidor */
html body:not(#hgx) header.hg-header {
	background: #f7f4f0 !important;
	border-bottom: 1px solid #e6e1d8 !important;
}

html body:not(#hgx) header.hg-header .hg-header__nav > a,
html body:not(#hgx) header.hg-header .hg-header__nav > .hg-menu-item > a,
html body:not(#hgx) header.hg-header .hg-header__language a,
html body:not(#hgx) header.hg-header .hg-header__language {
	font-family: var(--hgx-sans) !important;
	font-size: 12.5px !important;
	font-weight: 500 !important;
	letter-spacing: 0.16em !important;
	text-transform: uppercase !important;
	color: var(--hgx-navy) !important;
	opacity: 1 !important;
}

html body:not(#hgx) header.hg-header .hg-header__nav > a:hover,
html body:not(#hgx) header.hg-header .hg-header__nav > .hg-menu-item > a:hover,
html body:not(#hgx) header.hg-header .hg-header__language a:hover {
	color: var(--hgx-red) !important;
}

html body:not(#hgx) header.hg-header .hg-header__nav > a.is-active,
html body:not(#hgx) header.hg-header .hg-header__language a.is-active {
	color: var(--hgx-navy) !important;
}

/* Undermenyn under Bostäder */
html body:not(#hgx) header.hg-header .hg-dropdown a {
	font-family: var(--hgx-sans) !important;
	color: var(--hgx-navy) !important;
	letter-spacing: 0.02em !important;
	text-transform: none !important;
}

/* Knappar och textlänkar med pil */
html body:not(#hgx) .wp-site-blocks :is(.wp-block-button__link, [class*="button"], [class*="btn"], [class*="cta"]) {
	font-family: var(--hgx-sans) !important;
	font-weight: 500 !important;
	letter-spacing: 0.2em !important;
}

/* Siffror och citat i serif */
html body:not(#hgx) .wp-site-blocks .hg-stat strong,
html body:not(#hgx) .wp-site-blocks blockquote,
html body:not(#hgx) .wp-site-blocks blockquote p,
html body:not(#hgx) .wp-site-blocks [class*="quote"]:not([class*="author"]):not([class*="cite"]),
html body:not(#hgx) .wp-site-blocks [class*="quote"] p {
	font-family: var(--hgx-serif) !important;
	font-weight: 400 !important;
	font-size-adjust: 0.47;
}

html body:not(#hgx) .wp-site-blocks [class*="quote"] cite,
html body:not(#hgx) .wp-site-blocks [class*="quote"] [class*="author"],
html body:not(#hgx) .wp-site-blocks [class*="quote"] [class*="cite"] {
	font-family: var(--hgx-sans) !important;
	font-size-adjust: none;
}

/* Kartans namn och popup i serif */
html body:not(#hgx) .hgx-pop__title,
html body:not(#hgx) .hgx-pop__name {
	font-family: var(--hgx-serif) !important;
	font-size-adjust: 0.47;
}

/* Sidfoten */
html body:not(#hgx) .hg-footer :is(h2, h3, h4, [class*="title"], [class*="heading"]) {
	font-family: var(--hgx-sans) !important;
	font-size-adjust: none;
	font-weight: 500 !important;
	letter-spacing: 0.22em !important;
	color: #fff !important;
}

html body:not(#hgx) .hg-footer a,
html body:not(#hgx) .hg-footer p {
	font-weight: 300 !important;
}

/* Utmärkelser – ännu tätare, jämnare och lite större text */
html body:not(#hgx) .hg-home section.hg-awards {
	padding: 8px 0 !important;
}

html body:not(#hgx) .hg-home .hg-awards .hg-shell {
	grid-template-columns: minmax(0, 1fr) minmax(0, 4fr) !important;
	gap: 24px !important;
}

html body:not(#hgx) .hg-home .hg-awards .hg-award {
	grid-template-columns: 18px minmax(0, 1fr) !important;
	column-gap: 12px !important;
	padding: 4px 20px !important;
	align-content: start !important;
	align-items: start !important;
}

html body:not(#hgx) .hg-home .hg-awards .hg-award h3,
html body:not(#hgx) .hg-home .hg-awards .hg-award__type {
	justify-self: start !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	text-align: left !important;
	text-wrap: pretty;
}

html body:not(#hgx) .hg-home .hg-awards .hg-award h3 {
	font-size: 18px !important;
	line-height: 1.25 !important;
	color: var(--hgx-navy) !important;
}

html body:not(#hgx) .hg-home .hg-awards .hg-award__type {
	font-size: 12.5px !important;
	font-weight: 400 !important;
	letter-spacing: 0.02em !important;
	text-transform: none !important;
	color: var(--hgx-muted) !important;
}

html body:not(#hgx) .hg-home .hg-awards .hg-section-heading h2 {
	font-size: 22px !important;
	color: var(--hgx-navy) !important;
}

html body:not(#hgx) .hg-home .hg-awards .hg-section-heading p {
	font-size: 12.5px !important;
}

/* Vår filosofi – arbetsstegen (Lyssna, Analysera …) i en rad */
html body:not(#hgx) .hg-loci-process__grid {
	display: grid !important;
	grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
	gap: 28px !important;
	position: relative !important;
	align-items: start !important;
}

html body:not(#hgx) .hg-loci-process__grid::before {
	content: "" !important;
	position: absolute !important;
	left: 10% !important;
	right: 10% !important;
	top: 66px !important;
	height: 1px !important;
	background: #d5dbe3 !important;
	z-index: 0 !important;
}

html body:not(#hgx) .hg-loci-process__arrow {
	display: none !important;
}

html body:not(#hgx) .hg-loci-process__step {
	position: relative !important;
	z-index: 1 !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	text-align: center !important;
	gap: 10px !important;
	margin: 0 !important;
	padding: 0 !important;
}

html body:not(#hgx) .hg-loci-process__image {
	order: -1 !important;
	width: 132px !important;
	height: 132px !important;
	margin: 0 0 14px !important;
	border-radius: 50% !important;
	overflow: hidden !important;
	border: 6px solid #fff !important;
	box-shadow: 0 0 0 1px #d5dbe3 !important;
	background-color: #eef1f5 !important;
	background-size: cover !important;
	background-position: center !important;
	min-width: 132px !important;
	max-width: 132px !important;
	min-height: 132px !important;
	max-height: 132px !important;
	flex: none !important;
	transform: none !important;
}

html body:not(#hgx) .hg-loci-process__image img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	border-radius: 50% !important;
	margin: 0 !important;
}

html body:not(#hgx) .hg-loci-process__number {
	font-family: var(--hgx-serif) !important;
	font-size: 22px !important;
	font-size-adjust: 0.47;
	font-weight: 400 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	color: var(--hgx-navy) !important;
}

html body:not(#hgx):not(#hgx2) .hg-loci-process__step p {
	text-align: center !important;
	font-size: 14.5px !important;
	line-height: 1.6 !important;
	max-width: 200px !important;
	margin: 0 auto !important;
}

@media (max-width: 900px) {
	html body:not(#hgx) .hg-loci-process__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
	html body:not(#hgx) .hg-loci-process__grid::before {
		display: none !important;
	}
}

@media (max-width: 520px) {
	html body:not(#hgx) .hg-loci-process__grid {
		grid-template-columns: 1fr !important;
	}
}

/* ---------------------------------------------------------------------
   9. ENHETLIGT PÅ ALLA SIDOR – färger, storlekar och luft
   --------------------------------------------------------------------- */

/* Färgpalett (bakgrunder sätts om av skriptet till dessa) */
html body:not(#hgx) .hgx-bg-paper { background-color: #f7f4f0 !important; }
html body:not(#hgx) .hgx-bg-white { background-color: #ffffff !important; }
html body:not(#hgx) .hgx-bg-sky { background-color: #eaf0f7 !important; }
html body:not(#hgx) .hgx-bg-navy { background-color: #173452 !important; }

/* Rubriker – samma storleksskala på alla sidor */
html body:not(#hgx) .wp-site-blocks .entry-content h1 {
	font-size: clamp(2.6rem, 4.8vw, 4rem) !important;
	line-height: 1.04 !important;
	color: var(--hgx-navy) !important;
}

html body:not(#hgx) .wp-site-blocks .entry-content :is(section, [class*="section"]) :is([class*="heading"], [class*="intro"], [class*="hero"], [class*="__copy"], [class*="__head"], .hg-shell) > h2 {
	font-size: clamp(2.2rem, 3.8vw, 3.2rem) !important;
	line-height: 1.08 !important;
	color: var(--hgx-navy) !important;
}

html body:not(#hgx) .wp-site-blocks .entry-content h3 {
	color: var(--hgx-navy) !important;
}

/* Mörka bakgrunder: vit text */
html body:not(#hgx) .hgx-bg-navy :is(h1, h2, h3, h4, p, li, span, strong, a, blockquote) {
	color: #fff !important;
}

html body:not(#hgx) .hgx-bg-navy [class*="eyebrow"] {
	color: #b52a3e !important;
}

/* Brödtext – samma storlek, radavstånd och färg (för liten text höjs av skriptet) */
html body:not(#hgx):not(#hgx2) .hgx-text {
	font-size: 15.5px !important;
	line-height: 1.72 !important;
}

html body:not(#hgx) .wp-site-blocks .entry-content :is(p, li):not(.hgx-bg-navy *):not([class*="hero"] *):not([class*="eyebrow"]) {
	color: #3f4651;
}

/* Länkar och knappar – samma stil överallt */
html body:not(#hgx) .wp-site-blocks .entry-content p a:not([class]) {
	color: var(--hgx-navy) !important;
	text-decoration: underline !important;
	text-decoration-color: rgba(23, 52, 82, 0.35) !important;
	text-underline-offset: 3px !important;
}

html body:not(#hgx) .wp-site-blocks .entry-content :is(a[class*="button"], a[class*="btn"], a[class*="cta"], .wp-block-button__link) {
	font-size: 12px !important;
	text-transform: uppercase !important;
	border-radius: 0 !important;
}

/* Tunna linjer i samma ton */
html body:not(#hgx) .wp-site-blocks .entry-content hr {
	border-color: #e3dfd6 !important;
}

/* Samma luft mellan sektionerna på undersidorna (startsidan har egen rytm) */
html body:not(#hgx):not(.home) .wp-site-blocks .entry-content :is(main, div) > section:not([class*="hero"]):not([class*="intro"]):not([class*="stats"]):not([class*="banner"]):not([class*="cta"]) {
	padding-top: clamp(36px, 4.5vw, 64px) !important;
	padding-bottom: clamp(36px, 4.5vw, 64px) !important;
}

/* Direkt under sidans toppbild: mindre luft, så att innehållet syns direkt */
html body:not(#hgx):not(#hgx2):not(.home) .wp-site-blocks .entry-content section:is([class*="hero"], [class*="intro"]) + section {
	padding-top: clamp(28px, 3vw, 44px) !important;
}

/* Samma vänsterkant på alla sidor: loggan, rubriker och innehåll börjar
   på samma avstånd från kanten (mindre än tidigare, men inte i kanten) */
:root {
	--hgx-gutter: clamp(24px, 3.4vw, 56px);
}

html body:not(#hgx):not(#hgx2) header.hg-header .hg-header__inner,
html body:not(#hgx):not(#hgx2) .hg-footer .hg-shell,
html body:not(#hgx):not(#hgx2) .wp-site-blocks .entry-content .hg-shell:not([class*="hero"]):not([class*="intro"]),
html body:not(#hgx):not(#hgx2) .wp-site-blocks .entry-content .hg-rentals-wrap,
html body:not(#hgx):not(#hgx2) .wp-site-blocks .entry-content .hg-buying-wrap {
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: var(--hgx-gutter) !important;
	padding-right: var(--hgx-gutter) !important;
}

html body:not(#hgx):not(#hgx2) header.hg-header .hg-header__inner {
	background: transparent !important;
	box-shadow: none !important;
	border: 0 !important;
}

html body:not(#hgx):not(#hgx2) .wp-site-blocks .entry-content .hg-shell .hg-shell {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* Siffror och årtal i serif överallt (som på startsidan) */
html body:not(#hgx) .wp-site-blocks :is(.hg-about-fact strong, [class*="stat"] strong, [class*="__year"], [class*="__value"]) {
	font-family: var(--hgx-serif) !important;
	font-size-adjust: 0.47;
	font-weight: 400 !important;
	letter-spacing: 0 !important;
}

html body:not(#hgx) .wp-site-blocks .hg-about-fact strong {
	font-size: clamp(2.2rem, 3.4vw, 2.8rem) !important;
	color: var(--hgx-navy) !important;
}

html body:not(#hgx) .wp-site-blocks .hg-about-fact:last-child strong {
	font-size: 1.7rem !important;
	text-transform: none !important;
}

html body:not(#hgx) .wp-site-blocks [class*="__year"] {
	font-size: 22px !important;
	line-height: 1 !important;
	color: var(--hgx-navy) !important;
}

/* Hyresbostäder – rubriken i toppen fick ett ord per rad */
html body:not(#hgx) .hg-rentals-hero__panel-inner {
	width: auto !important;
	min-width: min(340px, 80vw) !important;
}

html body:not(#hgx) .wp-site-blocks .hg-rentals-hero__panel-inner h1 {
	font-size: clamp(2.4rem, 4vw, 3.4rem) !important;
}

/* Startsidan – utmärkelseraden ska vara liten och diskret (vinner över
   den generella rubrikstorleken ovan) */
html body:not(#hgx):not(#hgx2) .hg-home .hg-awards .hg-section-heading h2 {
	font-size: 22px !important;
	line-height: 1.2 !important;
	margin: 0 0 2px !important;
}

html body:not(#hgx):not(#hgx2) .hg-home .hg-awards .hg-award h3 {
	font-size: 17px !important;
	line-height: 1.25 !important;
}

html body:not(#hgx):not(#hgx2) .hg-home .hg-awards .hg-section-heading p {
	font-size: 12.5px !important;
	line-height: 1.5 !important;
}

/* Startsidan – "Passion för perfektion" på mörkblå botten som bryter av */
html body:not(#hgx):not(#hgx2) .hg-home section.hg-values {
	background: #173452 !important;
	padding: clamp(44px, 5.5vw, 72px) 0 !important;
	margin: 0 !important;
}

html body:not(#hgx):not(#hgx2) .hg-home .hg-values :is(h2, h3, p, span, strong, sup) {
	color: #fff !important;
}

html body:not(#hgx):not(#hgx2) .hg-home .hg-values .hg-eyebrow {
	color: #b52a3e !important;
}

html body:not(#hgx):not(#hgx2) .hg-home .hg-values .hg-values__intro,
html body:not(#hgx):not(#hgx2) .hg-home .hg-values article p {
	color: rgba(255, 255, 255, 0.78) !important;
}

html body:not(#hgx):not(#hgx2) .hg-home .hg-values .hg-values__grid {
	border-color: rgba(255, 255, 255, 0.16) !important;
	margin-top: 32px !important;
}

html body:not(#hgx):not(#hgx2) .hg-home .hg-values .hg-values__grid > article {
	background: transparent !important;
	border-color: rgba(255, 255, 255, 0.16) !important;
}

html body:not(#hgx):not(#hgx2) .hg-home .hg-values svg {
	color: #b52a3e !important;
	stroke: currentColor;
}

html body:not(#hgx):not(#hgx2) .hg-home .hg-values * {
	border-color: rgba(255, 255, 255, 0.16) !important;
}

html body:not(#hgx):not(#hgx2) .hg-home .hg-values + section {
	padding-top: clamp(44px, 5.5vw, 72px) !important;
}

/* ---------------------------------------------------------------------
   10. EXAKT SAMMA TEXTSTIL PÅ ALLA SIDOR SOM PÅ STARTSIDAN
       (starkare regler som vinner över sidornas egna)
   --------------------------------------------------------------------- */

/* Alla rubriker: Cormorant Garamond, Hemgårdens blå */
html body:not(#hgx):not(#hgx2) .wp-site-blocks .entry-content :is(h1, h2, h3, h4) {
	font-family: var(--hgx-serif) !important;
	font-weight: 400 !important;
	font-size-adjust: 0.47;
	color: var(--hgx-navy) !important;
	letter-spacing: -0.005em !important;
}

/* Sidtoppens huvudrubrik – samma storlek på alla sidor, även startsidan */
html body:not(#hgx):not(#hgx2) .wp-site-blocks .entry-content h1 {
	font-size: clamp(2.8rem, 4.6vw, 4rem) !important;
	line-height: 1.05 !important;
}

/* Ingresser (texten under sidrubriken) – samma storlek och färg */
html body:not(#hgx):not(#hgx2) .wp-site-blocks .entry-content p:is([class*="__lead"], [class*="__intro"], [class*="hero__text"]):not(.hgx-bg-navy *):not(.hg-values *) {
	font-family: var(--hgx-sans) !important;
	font-size: 17.5px !important;
	font-weight: 300 !important;
	line-height: 1.7 !important;
	color: #4a515c !important;
}

/* Brödtext – samma färg överallt */
html body:not(#hgx):not(#hgx2) .wp-site-blocks .entry-content p:not([class*="eyebrow"]):not([class*="kicker"]):not([class*="__lead"]):not([class*="__intro"]):not([class*="caption"]):not([class*="quote"]):not(.hgx-bg-navy *):not(.hg-values *):not(.hg-stats *):not([class*="quote"] *) {
	color: #3f4651 !important;
}

/* Mörkblå ytor: vit text, röda detaljer */
html body:not(#hgx):not(#hgx2) .wp-site-blocks .entry-content :is(.hgx-bg-navy, .hg-values) :is(h1, h2, h3, h4) {
	color: #fff !important;
}

html body:not(#hgx):not(#hgx2) .wp-site-blocks .entry-content .hgx-bg-navy p {
	color: rgba(255, 255, 255, 0.8) !important;
}

html body:not(#hgx):not(#hgx2) .wp-site-blocks .entry-content :is(.hgx-bg-navy, .hg-values) [class*="eyebrow"] {
	color: var(--hgx-red-on-dark) !important;
}

/* Länkar till e-post och telefon – samma blå överallt (vissa var gröna) */
html body:not(#hgx):not(#hgx2) .wp-site-blocks .entry-content :is(a[href^="mailto:"], a[href^="tel:"]) {
	color: var(--hgx-navy) !important;
	text-decoration-color: rgba(23, 52, 82, 0.35) !important;
	border-color: rgba(23, 52, 82, 0.35) !important;
}

html body:not(#hgx):not(#hgx2) .wp-site-blocks .entry-content .hgx-bg-navy :is(a[href^="mailto:"], a[href^="tel:"]) {
	color: #fff !important;
}

/* ---------------------------------------------------------------------
   11. STARTSIDAN – "Våra stoltaste projekt"
   --------------------------------------------------------------------- */

html body:not(#hgx):not(#hgx2) .hg-home section.hgx-featured {
	background: #fff !important;
	padding: clamp(44px, 5.5vw, 72px) 0 !important;
	margin: 0 !important;
}

html body:not(#hgx):not(#hgx2) .hgx-featured__head {
	max-width: 720px;
	margin: 0 auto clamp(28px, 3.5vw, 44px) !important;
	text-align: center !important;
}

html body:not(#hgx):not(#hgx2) .hgx-featured__head .hg-eyebrow {
	display: block !important;
	text-align: center !important;
	margin: 0 0 14px !important;
}

html body:not(#hgx):not(#hgx2) .hgx-featured__head h2 {
	font-size: clamp(2.4rem, 4.2vw, 3.4rem) !important;
	line-height: 1.08 !important;
	text-align: center !important;
	margin: 0 0 18px !important;
}

html body:not(#hgx):not(#hgx2) .hgx-featured__head .hgx-featured__intro {
	font-size: 17px !important;
	line-height: 1.7 !important;
	color: #4a515c !important;
	text-align: center !important;
	margin: 0 auto !important;
	max-width: 600px !important;
}

.hgx-featured__item {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: clamp(28px, 4vw, 64px);
	align-items: center;
	margin: 0 0 clamp(36px, 4.5vw, 64px);
}

.hgx-featured__item:last-child {
	margin-bottom: 0;
}

.hgx-featured__item--flip .hgx-featured__media {
	order: 2;
}

.hgx-featured__media {
	display: block;
	aspect-ratio: 3 / 2;
	max-height: 460px;
	overflow: hidden;
	background: #ebe8e1;
}

html body:not(#hgx):not(#hgx2) .hgx-featured__media img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover !important;
	margin: 0 !important;
	transition: transform 0.8s ease;
}

.hgx-featured__media:hover img {
	transform: scale(1.03);
}

html body:not(#hgx):not(#hgx2) .hgx-featured__body .hg-eyebrow {
	margin: 0 0 12px !important;
	text-align: left !important;
}

html body:not(#hgx):not(#hgx2) .hgx-featured__body h3 {
	font-size: clamp(2rem, 3vw, 2.6rem) !important;
	line-height: 1.05 !important;
	margin: 0 0 6px !important;
	color: var(--hgx-navy) !important;
}

html body:not(#hgx):not(#hgx2) .hgx-featured__body .hgx-featured__kicker {
	font-family: var(--hgx-serif) !important;
	font-size: 21px !important;
	font-size-adjust: 0.47;
	font-style: italic !important;
	font-weight: 400 !important;
	line-height: 1.35 !important;
	color: var(--hgx-red) !important;
	margin: 0 0 14px !important;
}

html body:not(#hgx):not(#hgx2) .hgx-featured__body .hgx-featured__text {
	font-size: 15.5px !important;
	line-height: 1.7 !important;
	color: #3f4651 !important;
	margin: 0 0 10px !important;
	text-align: left !important;
}

.hgx-featured__facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 18px 0 20px;
	padding: 16px 0 0;
	border-top: 1px solid #e3dfd6;
}

.hgx-featured__facts > div {
	padding: 0 16px 0 0;
}

.hgx-featured__facts > div + div {
	padding-left: 18px;
	border-left: 1px solid #e3dfd6;
}

html body:not(#hgx):not(#hgx2) .hgx-featured__facts dt {
	margin: 0 !important;
	font-family: var(--hgx-serif) !important;
	font-size: 28px !important;
	font-size-adjust: 0.47;
	font-weight: 400 !important;
	line-height: 1.1 !important;
	color: var(--hgx-navy) !important;
}

html body:not(#hgx):not(#hgx2) .hgx-featured__facts dd {
	margin: 4px 0 0 !important;
	font-family: var(--hgx-sans) !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	letter-spacing: 0.14em !important;
	text-transform: uppercase !important;
	color: var(--hgx-muted) !important;
}

html body:not(#hgx):not(#hgx2) .hgx-featured__link {
	display: inline-flex !important;
	align-items: center !important;
	gap: 10px !important;
	padding: 0 0 6px !important;
	font-family: var(--hgx-sans) !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	letter-spacing: 0.2em !important;
	text-transform: uppercase !important;
	color: var(--hgx-navy) !important;
	text-decoration: none !important;
	border-bottom: 1px solid var(--hgx-navy) !important;
}

html body:not(#hgx):not(#hgx2) .hgx-featured__link:hover {
	color: var(--hgx-red) !important;
	border-color: var(--hgx-red) !important;
}

@media (max-width: 860px) {
	.hgx-featured__item,
	.hgx-featured__item--flip {
		grid-template-columns: 1fr;
	}
	.hgx-featured__item--flip .hgx-featured__media {
		order: 0;
	}
}

/* Toppsektioner (hero/intro) behåller sin egen fulla bredd */
html body:not(#hgx):not(#hgx2) .wp-site-blocks .entry-content .hg-shell:is([class*="hero"], [class*="intro"]) {
	max-width: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

html body:not(#hgx):not(.home) .wp-site-blocks .entry-content section[class*="intro"] {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

/* Övriga sektioners inre ramar får samma vänsterkant */
html body:not(#hgx):not(#hgx2) .wp-site-blocks .entry-content section:not([class*="hero"]):not([class*="intro"]) > [class*="__inner"]:not(.hg-shell) {
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: var(--hgx-gutter) !important;
	padding-right: var(--hgx-gutter) !important;
}

/* Ingresser alltid vänsterställda (ingen marginaljustering) */
html body:not(#hgx):not(#hgx2) .wp-site-blocks .entry-content section:is([class*="hero"], [class*="intro"]) p:is([class*="__lead"], [class*="hero__text"]) {
	text-align: left !important;
	hyphens: manual !important;
	-webkit-hyphens: manual !important;
	word-spacing: normal !important;
}

/* =========================================================
   7. STANDARD FÖR HELA SAJTEN (SV + EN) – v1.8
   :not(#hgx1):not(#hgx2):not(#hgx3) ger extra styrka mot äldre regler.
   ========================================================= */

/* 7.1 Gemensam sidmarginal – logga, rubriker, innehåll och footer linjerar */
:root { --hgx-gutter: clamp(16px, 1.7vw, 26px) !important; }

/* 7.2 Header – samma höjd, logga, meny och färg på alla sidor */
html body:not(#hgx1):not(#hgx2):not(#hgx3) header.hg-header {
  background: #f7f4f0 !important;
  box-shadow: none !important;
}
html body:not(#hgx1):not(#hgx2):not(#hgx3) header.hg-header .hg-header__inner {
  width: 100% !important; max-width: none !important; margin: 0 !important;
  height: 90px !important; min-height: 90px !important;
  padding: 0 var(--hgx-gutter) !important;
  background: transparent !important; box-shadow: none !important; border: 0 !important;
  display: flex !important; align-items: center !important; justify-content: space-between !important;
}
html body:not(#hgx1):not(#hgx2):not(#hgx3) header.hg-header.is-scrolled .hg-header__inner {
  height: 74px !important; min-height: 74px !important;
}
html body:not(#hgx1):not(#hgx2):not(#hgx3) header.hg-header .hg-header__brand,
html body:not(#hgx1):not(#hgx2):not(#hgx3) header.hg-header .hg-logo {
  width: 170px !important; max-width: 170px !important; height: auto !important; margin: 0 !important;
  transition: width .25s ease, max-width .25s ease;
}
html body:not(#hgx1):not(#hgx2):not(#hgx3) header.hg-header.is-scrolled .hg-header__brand,
html body:not(#hgx1):not(#hgx2):not(#hgx3) header.hg-header.is-scrolled .hg-logo {
  width: 150px !important; max-width: 150px !important;
}
html body:not(#hgx1):not(#hgx2):not(#hgx3) header.hg-header .hg-header__nav {
  gap: clamp(16px, 2vw, 30px) !important; margin-left: auto !important;
}
html body:not(#hgx1):not(#hgx2):not(#hgx3) header.hg-header .hg-header__nav > a,
html body:not(#hgx1):not(#hgx2):not(#hgx3) header.hg-header .hg-header__nav > .hg-menu-item > a,
html body:not(#hgx1):not(#hgx2):not(#hgx3) header.hg-header .hg-header__nav .hg-header__language a {
  font-family: Outfit, -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 12.5px !important; font-weight: 500 !important; letter-spacing: 2px !important;
  color: #173452 !important;
}

@media (max-width: 1200px) {
  html body:not(#hgx1):not(#hgx2):not(#hgx3) header.hg-header .hg-header__nav { gap: 14px !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) header.hg-header .hg-header__nav > a,
  html body:not(#hgx1):not(#hgx2):not(#hgx3) header.hg-header .hg-header__nav > .hg-menu-item > a,
  html body:not(#hgx1):not(#hgx2):not(#hgx3) header.hg-header .hg-header__nav .hg-header__language a { letter-spacing: 1.4px !important; font-size: 12px !important; }
}

/* Rullgardinsmenyn (Bostäder) – texterna ryms inom rutan */
html body:not(#hgx1):not(#hgx2):not(#hgx3) header.hg-header .hg-dropdown {
  width: 270px !important; min-width: 270px !important; max-width: 90vw !important; box-sizing: border-box !important;
}
html body:not(#hgx1):not(#hgx2):not(#hgx3) header.hg-header .hg-dropdown a {
  display: block !important; white-space: normal !important; letter-spacing: 0 !important;
  padding: 10px 14px !important; box-sizing: border-box !important;
}
html body:not(#hgx1):not(#hgx2):not(#hgx3) header.hg-header .hg-dropdown a strong {
  display: block !important; white-space: normal !important;
  font-family: Outfit, -apple-system, BlinkMacSystemFont, sans-serif !important; font-size: 12.5px !important; font-weight: 500 !important;
  letter-spacing: 2px !important; line-height: 1.35 !important; color: #173452 !important; text-transform: uppercase !important;
}
html body:not(#hgx1):not(#hgx2):not(#hgx3) header.hg-header .hg-dropdown a small {
  display: block !important; white-space: normal !important; letter-spacing: 0.3px !important;
  font-family: Outfit, -apple-system, BlinkMacSystemFont, sans-serif !important; font-size: 11.5px !important;
  font-weight: 400 !important; line-height: 1.4 !important; margin-top: 3px !important; color: #697169 !important;
  text-transform: none !important;
}

@media (max-width: 1200px) {
  html body:not(#hgx1):not(#hgx2):not(#hgx3) header.hg-header .hg-dropdown a strong { font-size: 12px !important; letter-spacing: 1.4px !important; }
}

/* 7.3 Footer – samma på alla sidor och båda språken */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-footer .hg-footer__statement,
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-footer .hg-footer__established { color: #fff !important; opacity: 1 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-footer .hg-footer__column h4 {
  display: block !important; color: #fff !important; opacity: 1 !important;
  font-family: Outfit, -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 11.5px !important; font-weight: 600 !important; letter-spacing: 2.2px !important;
  text-transform: uppercase !important; margin: 0 0 16px !important;
}
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-footer .hg-footer__column h4 a { color: inherit !important; font: inherit !important; letter-spacing: inherit !important; text-decoration: none !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-footer .hg-footer__contact-links a,
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-footer .hg-footer__column a { color: #f2eee6 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-footer .hg-footer__column a:hover { color: #fff !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-footer .hg-footer__contact-links { display: flex !important; flex-direction: column !important; }

/* 7.4 Mindre luft i alla sektioner (startsidan har egna värden längre ned) */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .entry-content section:where(:not([class*="hero"]):not(.hg-stats):not(.hg-awards):not(.hg-sale-interest)) {
  padding-top: clamp(24px, 2.6vw, 36px) !important;
  padding-bottom: clamp(24px, 2.6vw, 36px) !important;
}
html body:not(#hgx1):not(#hgx2):not(#hgx3) .entry-content :where(section) { margin-left: 0 !important; margin-right: 0 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .entry-content :where(.hg-section-heading, [class*="section-heading"], [class*="__heading"], [class*="__head"]):where(:not(h1, h2, h3)) {
  margin-bottom: clamp(16px, 1.6vw, 22px) !important;
}
html body:not(#hgx1):not(#hgx2):not(#hgx3) .entry-content :where([class*="eyebrow"], [class*="kicker"]):where(:not([class*="featured__kicker"])) { margin-bottom: 10px !important; }

/* 7.5 Rubriker – samma storlekar på alla sidor */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .entry-content h1 {
  font-size: clamp(36px, 3.9vw, 54px) !important; line-height: 1.06 !important;
}
html body:not(#hgx1):not(#hgx2):not(#hgx3) .entry-content :is([class*="eyebrow"], [class*="kicker"]) + h2,
html body:not(#hgx1):not(#hgx2):not(#hgx3) .entry-content :is(.hg-section-heading, [class*="section-heading"], [class*="__heading"], [class*="__head"]) > h2,
html body:not(#hgx1):not(#hgx2):not(#hgx3) .entry-content .hg-land h2 {
  font-size: clamp(30px, 3vw, 40px) !important; line-height: 1.12 !important; margin-top: 0 !important;
}

/* 7.6 Hero-texter börjar vid sidmarginalen (samma vänsterkant som loggan) */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home .hg-hero__copy { left: var(--hgx-gutter) !important; width: min(390px, 30vw) !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home .hg-hero__kicker { font-size: 12px !important; line-height: 1.3 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home .hg-hero__copy .hg-hero__lead {
  font-size: 15.5px !important; line-height: 1.75 !important; text-align: left !important;
  hyphens: manual !important; -webkit-hyphens: manual !important;
}
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-sale-hero__copy,
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-about-hero__copy { padding-left: var(--hgx-gutter) !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-about-hero__copy-inner { margin-left: 0 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-about-intro > .hg-shell,
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-contact-panel > .hg-about-wrap,
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-contact-hero > .hg-about-wrap {
  width: auto !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important;
  padding-left: var(--hgx-gutter) !important; padding-right: var(--hgx-gutter) !important;
}
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-sale-projects > .hg-sale-shell {
  width: auto !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important;
  padding-left: var(--hgx-gutter) !important; padding-right: var(--hgx-gutter) !important;
}

html body:not(#hgx1):not(#hgx2):not(#hgx3) .entry-content section:not(.hg-loci-intro) > .hg-shell {
  padding-left: var(--hgx-gutter) !important; padding-right: var(--hgx-gutter) !important;
}

/* Kortrubriker ska inte bli lika stora som sektionsrubrikerna */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .entry-content .hg-fp-card__heading h2 { font-size: clamp(24px, 2.1vw, 28px) !important; line-height: 1.15 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .entry-content .hg-news-listing :is(article, [class*="card"]) :is(h2, h3) { font-size: clamp(22px, 2vw, 26px) !important; line-height: 1.18 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .entry-content .hg-contact-panel h2 { font-size: clamp(24px, 2.2vw, 30px) !important; line-height: 1.15 !important; }

/* 7.7 Hero-bilder fyller hela höjden – ingen beige yta under bilden */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .entry-content section[class*="hero"] :is([class*="hero__copy"], [class*="hero__panel"], [class*="hero__media"]) { box-sizing: border-box !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .entry-content section.hg-rentals-hero { height: auto !important; min-height: 420px !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-rentals-hero .hg-rentals-hero__panel { height: auto !important; min-height: 0 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-rentals-hero .hg-rentals-hero__panel-inner { padding-left: var(--hgx-gutter) !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-rentals-hero .hg-rentals-hero__picture,
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-rentals-hero .hg-rentals-hero__picture img { height: 100% !important; min-height: 420px !important; object-fit: cover !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .entry-content section.hg-about-hero { width: 100% !important; max-width: none !important; }

/* 7.8 Om oss – tidslinjens linje syns när stegen ligger på rad */
@media (min-width: 900px) {
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-about-timeline::before { display: block !important; }
}

/* =========================================================
   8. STARTSIDAN (SV + EN)
   ========================================================= */

/* 8.1 Utmärkelser – etikett på en rad, ikon under, samma storlek, centrerat */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-section.hg-awards { padding-top: 12px !important; padding-bottom: 12px !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-awards .hg-award {
  display: flex !important; flex-direction: column !important; align-items: center !important;
  justify-content: flex-start !important; text-align: center !important; padding: 6px 14px !important;
}
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-awards .hg-award__top {
  display: flex !important; flex-direction: column !important; align-items: center !important;
  gap: 8px !important; margin: 0 0 8px !important; grid-template-columns: none !important;
}
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-awards .hg-award__type {
  order: 1 !important; white-space: nowrap !important; color: #9b1c2c !important;
  font-size: 12.5px !important; line-height: 1.3 !important; margin: 0 !important; text-align: center !important;
}
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-awards .hg-award__icon {
  order: 2 !important; position: static !important; width: 20px !important; height: 20px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  margin: 0 auto !important; grid-row: auto !important; grid-column: auto !important; transform: none !important;
}
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-awards .hg-award__icon svg { width: 20px !important; height: 20px !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-awards .hg-award h3 {
  font-size: 19px !important; line-height: 1.22 !important; margin: 0 !important; text-align: center !important;
  grid-column: auto !important; padding: 0 !important;
}

/* 8.2 Hem genom livet – texten mitt emellan tidslinjen och nästa sektion */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-section.hg-lifestages { padding-top: 26px !important; padding-bottom: 0 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-lifestages .hg-eyebrow { margin-bottom: 18px !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-lifestages .hg-life-timeline__caption { margin-top: 30px !important; margin-bottom: 0 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-section.hg-current { padding-top: 12px !important; }

/* 8.3 Projektkorten – namnen i samma typsnitt som rubrikerna, mörkblå */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-project-card__meta strong {
  font-family: "Cormorant Garamond", Georgia, serif !important; font-weight: 500 !important;
  font-size: 25px !important; line-height: 1.15 !important; color: #173452 !important; letter-spacing: 0 !important;
}

/* 8.4 Passion för perfektion – lägre blå yta, vitt i stället för rött */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-section.hg-values { padding-top: 26px !important; padding-bottom: 16px !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-values .hg-section-heading { margin-bottom: 14px !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-values .hg-section-heading h2 { margin-top: 4px !important; margin-bottom: 10px !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-values .hg-values__grid { margin-top: 10px !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-values .hg-values__grid > article { padding-top: 16px !important; padding-bottom: 4px !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-values .hg-eyebrow { color: #fff !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-values .hg-value-icon,
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-values .hg-value-icon svg,
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-values .hg-value-icon svg * { color: #fff !important; stroke: #fff !important; }

/* 8.5 Kvalitet som består – tätare mellan text, bilder, ikoner */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-section.hg-quality { padding-top: 30px !important; padding-bottom: 20px !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-quality .hg-quality__heading { margin-bottom: 22px !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-quality .hg-quality__heading h2 { margin-bottom: 10px !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-quality .hg-quality__image { margin-bottom: 14px !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-quality .hg-quality__icon { margin-bottom: 6px !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-quality .hg-quality__copy h3 { margin-bottom: 6px !important; }

html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-quality .hg-quality__grid { row-gap: 28px !important; }

/* 8.6 Våra stoltaste projekt – tätare */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-section.hgx-featured { padding-top: 24px !important; padding-bottom: 20px !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hgx-featured .hgx-featured__head { margin-bottom: 22px !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hgx-featured .hgx-featured__head h2 { margin-bottom: 10px !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hgx-featured .hgx-featured__item { margin-bottom: 30px !important; align-items: start !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hgx-featured .hgx-featured__item:last-child { margin-bottom: 0 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hgx-featured .hgx-featured__kicker { margin-bottom: 10px !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hgx-featured .hgx-featured__facts { margin-top: 12px !important; margin-bottom: 14px !important; }

/* Länkar till kvarteren i Hägerneholm-texten */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hgx-featured .hgx-featured__text a {
  color: #173452 !important; text-decoration: underline !important; text-decoration-thickness: 1px !important;
  text-underline-offset: 3px !important; text-decoration-color: rgba(23, 52, 82, .45) !important;
}
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hgx-featured .hgx-featured__text a:hover { text-decoration-color: #173452 !important; }

/* 8.7 Hem över hela Sverige + Har du mark */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-section.hg-presence { padding-top: 24px !important; padding-bottom: 30px !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .entry-content section.hg-land { padding-top: 32px !important; padding-bottom: 30px !important; }

/* =========================================================
   9. UNDERSIDOR
   ========================================================= */

/* 9.1 Hem till salu */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .entry-content section.hg-sale-projects { padding-top: 10px !important; padding-bottom: 20px !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-sale-interest { padding-top: 0 !important; padding-bottom: 0 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-sale-interest .hg-sale-interest__inner { padding-top: 22px !important; padding-bottom: 22px !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-sale-interest .hg-sale-eyebrow { margin-bottom: 8px !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .entry-content section.hg-sale-buying { padding-top: 24px !important; padding-bottom: 26px !important; }

/* 9.2 Projektfönster (t.ex. Öreslandet 2) – knappen under bilderna */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-sale-modal__gallery--ores-secondary { grid-template-rows: auto !important; height: auto !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-sale-modal__actions { margin-top: 28px !important; }

/* 9.3 Vår filosofi – alla rutor får samma linjer, stegrubriker i samma typsnitt */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-loci-factors__grid {
  border-top: 1px solid #dcd8cf !important; border-left: 1px solid #dcd8cf !important; gap: 0 !important;
}
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-loci-factors__grid > .hg-loci-card {
  border: 0 !important; border-right: 1px solid #dcd8cf !important; border-bottom: 1px solid #dcd8cf !important;
  padding: 22px 18px !important;
}
html body:not(#hgx1):not(#hgx2):not(#hgx3) .entry-content section.hg-loci-intro { padding-top: 0 !important; padding-bottom: 0 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-loci-intro__copy { padding: 34px var(--hgx-gutter) 30px !important; box-sizing: border-box !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-loci-intro__quote { padding-top: 28px !important; padding-bottom: 28px !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-loci-process :is(h3, h4, .hg-loci-process__number) {
  font-family: "Cormorant Garamond", Georgia, serif !important; font-weight: 500 !important;
  color: #173452 !important; font-size: 24px !important; letter-spacing: 0 !important;
}

/* 9.4 Att köpa bostad */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .entry-content section.hg-buying-hero { padding-top: 0 !important; padding-bottom: 0 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-buying-hero .hg-buying-hero__copy { padding: 36px 30px 36px 0 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-buying-banner { margin-left: var(--hgx-gutter) !important; margin-right: var(--hgx-gutter) !important; width: auto !important; max-width: none !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) :is(.hg-buying-guarantees, .hg-buying-economy) h3 {
  font-family: "Cormorant Garamond", Georgia, serif !important; font-size: 22px !important; font-weight: 500 !important;
  line-height: 1.2 !important; letter-spacing: 0 !important; text-transform: none !important; color: #173452 !important;
  min-height: 0 !important; height: auto !important; margin: 0 0 6px !important;
}
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-buying-guarantees .hg-buying-guarantee__icon { margin-bottom: 12px !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) :is(.hg-buying-guarantees, .hg-buying-economy) p:not([class*="eyebrow"]) { font-size: 14.5px !important; line-height: 1.65 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-buying-guarantees p { margin-top: 6px !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-buying-cta p:not([class*="eyebrow"]) { letter-spacing: 0 !important; }

/* =========================================================
   10. JUSTERINGAR v1.9 (2026-11-15 kväll)
   ========================================================= */

/* 10.1 Rullgardinsmenyn – smalare och lägre */
html body:not(#hgx1):not(#hgx2):not(#hgx3) header.hg-header .hg-dropdown {
  width: 238px !important; min-width: 238px !important; padding: 4px !important;
}
html body:not(#hgx1):not(#hgx2):not(#hgx3) header.hg-header .hg-dropdown a { padding: 7px 12px !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) header.hg-header .hg-dropdown a small { margin-top: 1px !important; }

/* 10.2 Rubriker sidtopp – något mindre på alla sidor */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .entry-content h1 {
  font-size: clamp(32px, 3.3vw, 44px) !important; line-height: 1.08 !important;
}

/* 10.3 Startsidan – "Hem för livet" längre till vänster */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home .hg-hero__copy { left: max(8px, calc(var(--hgx-gutter) - 12px)) !important; }

/* 10.4 Utmärkelser – lägre, mindre rubrik, röd ikon bredvid etiketten */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-section.hg-awards { padding-top: 4px !important; padding-bottom: 4px !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-awards .hg-section-heading h2 { font-size: 24px !important; line-height: 1.1 !important; margin-bottom: 2px !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-awards .hg-section-heading p { font-size: 12px !important; line-height: 1.4 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-awards .hg-award { padding: 2px 14px !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-awards .hg-award__top {
  flex-direction: row !important; justify-content: center !important; gap: 6px !important; margin: 0 0 4px !important;
}
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-awards .hg-award__icon {
  order: 0 !important; width: 15px !important; height: 15px !important; margin: 0 !important; color: #9b1c2c !important;
}
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-awards .hg-award__icon svg { width: 15px !important; height: 15px !important; color: #9b1c2c !important; stroke: #9b1c2c !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-awards .hg-award__icon svg * { stroke: #9b1c2c !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-awards .hg-award h3 { font-size: 18px !important; line-height: 1.18 !important; }

/* 10.5 Vi utvecklar hem genom livet – mörkblå med vit text och vita ikoner */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-section.hg-lifestages {
  background: #173452 !important; padding-top: 26px !important; padding-bottom: 28px !important;
}
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-lifestages .hg-eyebrow,
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-lifestages .hg-life-stage,
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-lifestages .hg-life-stage__label,
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-lifestages .hg-life-stage__icon,
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-lifestages .hg-life-timeline__caption { color: #fff !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-lifestages .hg-life-stage__icon svg,
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-lifestages .hg-life-stage__icon svg * { stroke: #fff !important; color: #fff !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-lifestages .hg-eyebrow::after,
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-lifestages .hg-eyebrow::before { background: rgba(255, 255, 255, .55) !important; border-color: rgba(255, 255, 255, .55) !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-lifestages .hg-life-timeline__line { background: rgba(255, 255, 255, .2) !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-lifestages .hg-life-timeline__caption { margin-top: 24px !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-section.hg-current { padding-top: 28px !important; }

/* 10.6 Utvalda projekt – mindre luft ovanför, Hägerneholm på mörkblått */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-section.hgx-featured { padding-top: 10px !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hgx-featured .hgx-featured__item:first-of-type {
  background: #173452 !important; color: #fff !important;
  margin-left: calc(-1 * var(--hgx-gutter)) !important; margin-right: calc(-1 * var(--hgx-gutter)) !important;
  padding: 30px var(--hgx-gutter) !important;
}
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hgx-featured .hgx-featured__item:first-of-type :is(h3, p, dt, dd, .hg-eyebrow, .hgx-featured__kicker, .hgx-featured__text) { color: #fff !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hgx-featured .hgx-featured__item:first-of-type .hgx-featured__kicker { color: rgba(255, 255, 255, .82) !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hgx-featured .hgx-featured__item:first-of-type .hgx-featured__text a {
  color: #fff !important; text-decoration-color: rgba(255, 255, 255, .55) !important;
}
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hgx-featured .hgx-featured__item:first-of-type .hgx-featured__facts,
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hgx-featured .hgx-featured__item:first-of-type .hgx-featured__facts > div { border-color: rgba(255, 255, 255, .22) !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hgx-featured .hgx-featured__item:first-of-type .hgx-featured__facts { margin-bottom: 0 !important; }

/* 10.7 Hem över hela Sverige – mörkblå med vit text (kartan oförändrad) */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-section.hg-presence { background: #173452 !important; padding-top: 30px !important; padding-bottom: 30px !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-presence .hg-presence__copy,
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-presence .hg-presence__copy :is(p, h2, strong, small, span, .hg-eyebrow) { color: #fff !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-presence .hg-presence__copy small { color: rgba(255, 255, 255, .8) !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-presence .hg-card-icon svg,
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-presence .hg-card-icon svg * { fill: #fff !important; color: #fff !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-presence .hg-presence__principles,
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-presence .hg-presence__principles > div { border-color: rgba(255, 255, 255, .22) !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-presence .hg-presence__quote { border-left-color: rgba(255, 255, 255, .7) !important; color: #fff !important; }

/* 10.8 Vår filosofi – citatet får plats, faktorrutorna mörkblå med vit text */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-loci-intro__quote { padding-left: 24px !important; padding-right: 24px !important; box-sizing: border-box !important; overflow: hidden !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-loci-intro__quote :is(p, .hg-loci-intro__quote-line, small) { max-width: 100% !important; width: auto !important; overflow-wrap: break-word !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-loci-factors__grid { border-color: rgba(255, 255, 255, .18) !important; background: #173452 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-loci-factors__grid > .hg-loci-card {
  background: #173452 !important; border-color: rgba(255, 255, 255, .18) !important;
}
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-loci-factors__grid > .hg-loci-card :is(h3, p, span) { color: #fff !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-loci-factors__grid > .hg-loci-card p { color: rgba(255, 255, 255, .85) !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-loci-factors__grid > .hg-loci-card svg,
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-loci-factors__grid > .hg-loci-card svg * { stroke: #fff !important; color: #fff !important; }

/* 10.9 Nyheter – ingen beige yta under hero-bilden, texten vid sidmarginalen */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .entry-content section.hg-news-intro { padding-top: 0 !important; padding-bottom: 0 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-news-intro .hg-news-intro__copy { padding-left: var(--hgx-gutter) !important; }

/* 10.10 Kontakt – mindre luft runt kontaktuppgifterna */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .entry-content section.hg-contact-panel { padding-top: 16px !important; padding-bottom: 16px !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-contact-panel .hg-about-wrap > * { padding-top: 22px !important; padding-bottom: 22px !important; }

/* 10.11 Om oss – mindre rubriker och siffror */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-about-intro h2 { font-size: clamp(26px, 2.4vw, 32px) !important; line-height: 1.15 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-about-facts .hg-about-fact strong { font-size: clamp(26px, 2.3vw, 32px) !important; line-height: 1.1 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-about-facts .hg-about-fact small { font-size: 10.5px !important; }

/* 10.12 Hyresbostäder – rubriken centrerad i den beige ytan, rutorna mörkblå */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-rentals-hero .hg-rentals-hero__panel-inner { padding-left: clamp(24px, 4.4vw, 72px) !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .entry-content section.hg-rentals-principles { padding-top: 14px !important; padding-bottom: 14px !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-rentals-principles .hg-rentals-principle {
  background: #173452 !important; color: #fff !important; border-left-color: rgba(255, 255, 255, .2) !important;
}
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-rentals-principles .hg-rentals-principle :is(strong, span) { color: #fff !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-rentals-principles .hg-rentals-principle svg,
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-rentals-principles .hg-rentals-principle svg * { stroke: #fff !important; color: #fff !important; }

/* ===================================================================
   11. Justeringar v1.9.1
   =================================================================== */

/* Siffrorna under hero: lika stort avstånd till båda kanterna, linjerna mitt emellan */
@media (min-width: 900px) {
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-stats .hg-stats__grid { display: flex !important; grid-template-columns: none !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-stats .hg-stats__grid > .hg-stat { flex: 1 1 auto !important; width: auto !important; min-width: 0 !important; padding-left: 12px !important; padding-right: 12px !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-stats .hg-stat__text { width: auto !important; }
}

/* Hem genom livet: mindre blå luft upptill och nedtill */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .entry-content section.hg-lifestages { padding-top: 22px !important; padding-bottom: 22px !important; }

/* Utvalda projekt: siffror centrerade med linjerna mitt emellan */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hgx-featured .hgx-featured__facts { display: flex !important; grid-template-columns: none !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hgx-featured .hgx-featured__facts > div { flex: 1 1 auto !important; min-width: 0 !important; padding: 0 10px !important; text-align: center !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hgx-featured .hgx-featured__facts > div + div { border-left: 1px solid #e3dfd6 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hgx-featured .hgx-featured__item:first-of-type .hgx-featured__facts > div + div { border-left-color: rgba(255, 255, 255, .22) !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hgx-featured .hgx-featured__facts dd { letter-spacing: .1em !important; line-height: 1.45 !important; }

html body:not(#hgx1):not(#hgx2):not(#hgx3) .hgx-featured .hgx-featured__facts dt { white-space: nowrap !important; }
@media (min-width: 1200px) { html body:not(#hgx1):not(#hgx2):not(#hgx3) .hgx-featured .hgx-featured__facts dd { white-space: nowrap !important; } }

/* Nyheter: bilden fyller hela hero-höjden */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-news-intro__media { position: relative !important; overflow: hidden !important; margin: 0 !important; padding: 0 !important; align-self: stretch !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-news-intro__media img { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-height: none !important; object-fit: cover !important; }
@media (max-width: 899px) { html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-news-intro__media { min-height: 240px !important; } }

/* Vår filosofi hero: samma avstånd överallt – luft, text, luft, bild, luft, citat, luft */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-loci-intro .hg-loci-intro__copy { padding-left: var(--hgx-loci-gap, 44px) !important; padding-right: var(--hgx-loci-gap, 44px) !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-loci-intro .hg-loci-intro__quote { padding-left: var(--hgx-loci-gap, 44px) !important; padding-right: var(--hgx-loci-gap, 44px) !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-loci-intro { --hgx-loci-gap: clamp(20px, 3.4vw, 56px); }
@media (min-width: 1100px) {
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-philosophy .hg-loci-intro .hg-loci-intro__inner { column-gap: 0 !important; grid-template-columns: minmax(0, 1fr) minmax(0, 38vw) minmax(280px, 22vw) !important; width: 100% !important; max-width: none !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-loci-intro .hg-loci-intro__image { margin: 0 !important; transform: none !important; }
}

/* Om oss hero: luftigare rubrik, texten centrerad i den beige ytan */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-about-hero h1 { line-height: 1.16 !important; }
@media (min-width: 900px) {
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-about-hero .hg-about-hero__copy { display: flex !important; align-items: center !important; justify-content: center !important; padding-left: var(--hgx-gutter) !important; padding-right: var(--hgx-gutter) !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-about-hero .hg-about-hero__copy-inner { width: 100% !important; max-width: 546px !important; margin: 0 auto !important; }
}

/* Om oss: "Långsiktigt" mindre än siffrorna */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-about-facts .hg-about-fact:last-child strong { font-size: clamp(19px, 1.6vw, 23px) !important; line-height: clamp(29px, 2.53vw, 35px) !important; }

/* Blockjusterade texter (som en bok) */
html body:not(#hgx1):not(#hgx2):not(#hgx3) :is(.hg-about-intro__copy p.hgx-text, .hg-about-person p:not(.hg-about-person__role), .hg-about-timeline p) {
  text-align: justify !important; text-align-last: left !important; hyphens: auto !important; -webkit-hyphens: auto !important;
}

/* ===================================================================
   12. Justeringar v1.9.2
   =================================================================== */

/* Hem för livet: samma vänsterkant som loggan */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home .hg-hero__copy { left: var(--hgx-gutter) !important; }

/* Utmärkelser: mindre luft mellan typ (t.ex. Internationell nominering) och namnet */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-awards .hg-award__top { height: auto !important; min-height: 0 !important; margin: 0 0 6px !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-awards .hg-award { gap: 0 !important; }

/* Hägerneholm: eurobelopp efter kronor */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hgx-featured .hgx-featured__invest { display: flex !important; flex-direction: column !important; align-items: center !important; text-align: center !important; margin: 14px 0 0 !important; padding: 14px 0 0 !important; border-top: 1px solid rgba(255, 255, 255, .22) !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hgx-featured .hgx-featured__invest strong { font-family: var(--hgx-serif) !important; font-size: 28px !important; font-weight: 400 !important; line-height: 1.1 !important; color: #fff !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hgx-featured .hgx-featured__invest span { margin-top: 4px !important; font-family: var(--hgx-sans) !important; font-size: 12px !important; font-weight: 500 !important; letter-spacing: .1em !important; text-transform: uppercase !important; color: #fff !important; }

/* Kartan: mörkblå text i rutorna och i kartkrediten */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-presence .leaflet-popup-content-wrapper,
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-presence .leaflet-popup-tip { background: #faf8f4 !important; color: #173452 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-presence .hgx-pop :is(.hgx-pop__title, .hgx-pop__name) { color: #173452 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-presence .hgx-pop .hgx-pop__place { color: #5d6877 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-presence .hgx-pop .hgx-pop__eyebrow { color: #8b1e2d !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-presence .hgx-pop .hgx-pop__tag { color: #173452 !important; background: #dfe7f0 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-presence .hgx-pop .hgx-pop__tag--sale { color: #fff !important; background: #173452 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-presence .hgx-pop .hgx-pop__tag--own { color: #173452 !important; background: #ebe6dd !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-presence .hgx-pop :is(.hgx-pop__list a, .hgx-pop__row) { color: #173452 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-presence .hgx-pop .hgx-pop__btn { color: #173452 !important; border-bottom-color: #173452 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-presence .leaflet-control-attribution,
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-presence .leaflet-control-attribution a,
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-presence .leaflet-control-zoom a { color: #173452 !important; }

/* Kartan: liten förhandsbild bredvid projekt med egen sida */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hgx-pop .hgx-pop__list a { justify-content: flex-start !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hgx-pop .hgx-pop__list a > span:nth-child(2) { flex: 1 1 auto !important; min-width: 0 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hgx-pop .hgx-pop__thumb { flex: 0 0 52px !important; width: 52px !important; height: 38px !important; overflow: hidden !important; background: #e9e5dd !important; display: block !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hgx-pop .hgx-pop__thumb img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; margin: 0 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hgx-pop .hgx-pop__thumb--none { display: none !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-presence .leaflet-popup-content { width: 300px !important; }

/* Hem till salu: knappen närmare texten i intresseanmälan (ca 20 % mindre mellanrum) */
@media (min-width: 900px) {
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-sale-interest .hg-sale-interest__inner { grid-template-columns: minmax(0, 680px) auto !important; justify-content: start !important; column-gap: clamp(48px, 21vw, 300px) !important; }
}

/* Blockjusterade texter: Hem till salu, Att köpa bostad, Referensprojekt (alla projektfönster) */
html body:not(#hgx1):not(#hgx2):not(#hgx3) :is(.hg-sale-hero__lead, .hg-sale-modal__lead, .hg-sale-modal__concept-copy p, .hg-sale-interest__copy p.hgx-text, .hg-buying-hero__lead, .hg-fp-modal__lead, .hg-fp-modal__concept-copy p, .hg-fp-modal__content > p:not([class]), [class*="hg-fp-modal"] p.hgx-text) {
  text-align: justify !important; text-align-last: left !important; hyphens: auto !important; -webkit-hyphens: auto !important;
}

/* ===================================================================
   13. Justeringar v1.9.3
   =================================================================== */

/* Utmärkelser: luftigare och vertikalt centrerat, samma höjd på sektionen */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-awards .hg-section-heading h2 { margin: 0 0 9px !important; line-height: 1.05 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-awards .hg-section-heading p { line-height: 1.45 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-awards .hg-award { justify-content: center !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-awards .hg-award__top { margin: 0 0 13px !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-awards .hg-award h3 { line-height: 1.12 !important; }

/* Hem för livet: rubriken två steg större (ingressen följer med i bredd) */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home h1 { font-size: clamp(40px, 4vw, 54px) !important; }

/* Kartan: + och − syns (mörkblå) */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-presence .leaflet-control-zoom a,
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-presence .leaflet-control-zoom a span { color: #173452 !important; }

/* Menyn under Bostäder: lite mindre rubriker än huvudmenyn */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-dropdown a strong { font-size: 11px !important; letter-spacing: 1.6px !important; }

/* Referensprojekt: Åby Ängar, mer byggnad och mindre himmel i huvudbilden */
html body:not(#hgx1):not(#hgx2):not(#hgx3) #hg-abyangar-modal .hg-fp-modal__hero img { object-position: 50% 72% !important; }

/* Att köpa bostad: "Vi hjälper dig gärna vidare" på vit bakgrund */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-buying-cta { background: #fff !important; }

/* Hyresbostäder: blå blocket kant i kant utan beige luft */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .entry-content section.hg-rentals-principles { padding: 0 !important; background: #173452 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-rentals-principles .hg-rentals-principles__grid { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-rentals-principles .hg-rentals-principle:first-child { border-left: 0 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-rentals-principles .hg-rentals-principle:last-child { border-right: 0 !important; }

/* Hyresbostäder: pilen i rullgardinsmenyerna syns */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .entry-content select {
  -webkit-appearance: none !important; appearance: none !important; padding-right: 40px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23173452' stroke-width='1.6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 16px center !important; background-size: 12px 8px !important;
}

/* Hyresbostäder: mindre ljusblå luft kring "Redan hyresgäst?" */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .entry-content section.hg-rentals-tenant { padding-top: 20px !important; padding-bottom: 20px !important; }

/* Om oss: rubriken lite luftigare, mindre ljusblå luft vid Finansiell information */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-about-hero h1 { line-height: 1.2 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .entry-content section.hg-about-report { padding-top: 20px !important; padding-bottom: 20px !important; }

/* Fler blockjusterade texter (svenska och engelska) */
html body:not(#hgx1):not(#hgx2):not(#hgx3) :is(.hg-sale-card__text, .hg-sale-buying__copy p.hgx-text, .hg-fp-hero__copy p:not(.hg-eyebrow), .hg-buying-step__body p.hgx-text, .hg-buying-info-card p.hgx-text, .hg-rentals-ownership__columns p) {
  text-align: justify !important; text-align-last: left !important; hyphens: auto !important; -webkit-hyphens: auto !important;
}

/* ===================================================================
   14. Justeringar v1.9.4
   =================================================================== */

/* Hyresbostäder: "Redan hyresgäst?" kompaktare, mindre texter och rutor */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .entry-content section.hg-rentals-tenant { padding-top: 14px !important; padding-bottom: 18px !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-rentals-tenant .hg-rentals-eyebrow { margin-bottom: 6px !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-rentals-tenant h2 { font-size: clamp(26px, 2.4vw, 32px) !important; line-height: 1.1 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-rentals-tenant .hg-rentals-tenant__grid { margin-top: 16px !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-rentals-tenant .hg-rentals-tenant-card { padding: 20px 24px !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-rentals-tenant .hg-rentals-tenant-card h3 { font-size: 21px !important; margin-bottom: 6px !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-rentals-tenant .hg-rentals-tenant-card p { font-size: 14px !important; line-height: 1.6 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-rentals-tenant .hg-rentals-tenant-card a { font-size: 13px !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-rentals-tenant .hg-rentals-tenant-card__icon svg { width: 22px !important; height: 22px !important; }

/* Att köpa bostad: hero-texten centreras i den beige ytan via JS (centerBuyingHero) */

/* Att köpa bostad: mindre vit luft kring bannerbilden */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .entry-content section.hg-buying-steps { padding-bottom: 18px !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-buying-banner { margin-bottom: 0 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .entry-content section.hg-buying-economy { padding-top: 18px !important; }

/* Att köpa bostad: mindre ljusblå luft i Garantier */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .entry-content section.hg-buying-guarantees { padding-top: 20px !important; padding-bottom: 20px !important; }

/* Att köpa bostad: "Har du frågor?" på kritvit bakgrund (samma som sidan) */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-buying-cta,
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-buying-cta .hg-buying-cta__inner { background: #fbfaf6 !important; }

/* Fler blockjusterade texter (svenska och engelska) */
html body:not(#hgx1):not(#hgx2):not(#hgx3) :is(.hg-rentals-interest__intro, .hg-rentals-tenant-card p, .hg-loci-intro__lead, .hg-loci-intro__quote p, .hg-news-intro__lead, .hg-contact-hero__lead) {
  text-align: justify !important; text-align-last: left !important; hyphens: auto !important; -webkit-hyphens: auto !important;
}

/* ===================================================================
   15. Justeringar v1.9.5
   =================================================================== */

/* Utmärkelser: tunn mörkblå linje mellan rubriken och texten */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-awards .hg-section-heading h2 { margin-bottom: 0 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-awards .hg-section-heading h2::after { content: "" !important; display: block !important; width: 44px !important; height: 1px !important; background: #173452 !important; margin: 7px 0 7px !important; }

/* Utmärkelser: namn på en rad (t.ex. Mies van der Rohe) en aning lägre, rutorna oförändrade */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-awards .hg-award.hgx-award--single h3 { transform: translateY(5px) !important; }

/* Fler blockjusterade texter på startsidan (svenska och engelska) */
html body:not(#hgx1):not(#hgx2):not(#hgx3) :is(.hg-values__grid article p.hgx-text, .hgx-featured .hgx-featured__text, .hg-presence__principles small, .hg-land__copy p.hgx-text) {
  text-align: justify !important; text-align-last: left !important; hyphens: auto !important; -webkit-hyphens: auto !important;
}

/* ===================================================================
   16. Justeringar v1.9.6
   =================================================================== */

/* Pågående projekt: rubriken "Hitta ditt nästa hem" två steg större (svenska och engelska) */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-sale-hero h1 { font-size: clamp(40px, 4vw, 54px) !important; line-height: 1.08 !important; }

/* ===================================================================
   17. Mobilversion v1.9.7 (skärmar smalare än 900 px)
   =================================================================== */
@media (max-width: 899px) {
  /* Sidhuvud: tydligare logga, lagom hög rad */
  html body:not(#hgx1):not(#hgx2):not(#hgx3) header.hg-header .hg-header__inner { min-height: 72px !important; height: auto !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) header.hg-header .hg-logo { width: 132px !important; max-width: 132px !important; height: auto !important; }

  /* Mobilmenyn: samma typsnitt som på datorn */
  html body:not(#hgx1):not(#hgx2):not(#hgx3) #hg-mobile-portal a { font-family: var(--hgx-sans), 'Outfit', sans-serif !important; font-weight: 500 !important; font-size: 12.5px !important; letter-spacing: 2px !important; text-transform: uppercase !important; color: #173452 !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) #hg-mobile-portal .hg-dropdown a { font-size: 11.5px !important; letter-spacing: 1.4px !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) #hg-mobile-portal .hg-dropdown a small { display: none !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) #hg-mobile-portal .hg-mobile-portal__heading { font-family: var(--hgx-sans), 'Outfit', sans-serif !important; font-weight: 500 !important; letter-spacing: 2px !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) #hg-mobile-portal .hg-mobile-portal__close { outline: none !important; border: 0 !important; box-shadow: none !important; }

  /* Startsidan, Hem för livet: full bredd för text och ingress */
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home .hg-hero__copy { width: auto !important; max-width: none !important; left: auto !important; padding-left: 0 !important; padding-right: 0 !important; box-sizing: border-box !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home .hg-hero__copy .hg-hero__lead { width: auto !important; max-width: none !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home h1 { font-size: clamp(38px, 11vw, 46px) !important; }

  /* Siffrorna under hero: centrerade */
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-stats .hg-stat, html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-stats .hg-stat__text { text-align: center !important; align-items: center !important; justify-content: center !important; }

  /* Utmärkelser: rubrik överst, utmärkelserna två och två */
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-awards .hg-shell { display: block !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-awards .hg-section-heading { margin: 0 0 14px !important; padding: 14px 0 0 !important; text-align: left !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-awards .hg-awards__grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; border-top: 1px solid #e3dfd6 !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-awards .hg-award { padding: 14px 8px !important; border-left: 0 !important; border-bottom: 1px solid #e3dfd6 !important; min-height: 0 !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-awards .hg-award:nth-child(even) { border-left: 1px solid #e3dfd6 !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-awards .hg-award__top { flex-wrap: wrap !important; margin-bottom: 8px !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-awards .hg-award__type { font-size: 11.5px !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-awards .hg-award h3 { font-size: 17px !important; min-height: 0 !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-awards .hg-award.hgx-award--single h3 { transform: none !important; }

  /* Utvalda projekt: lugnare underrubrik och siffror */
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hgx-featured .hgx-featured__kicker, html body:not(#hgx1):not(#hgx2):not(#hgx3) .hgx-featured [class*="kicker"] { letter-spacing: .1em !important; font-size: 15px !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hgx-featured .hgx-featured__facts dt { font-size: 23px !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hgx-featured .hgx-featured__facts dd { font-size: 10.5px !important; letter-spacing: .08em !important; white-space: normal !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hgx-featured .hgx-featured__invest strong { font-size: 23px !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hgx-featured .hgx-featured__invest span { font-size: 10.5px !important; letter-spacing: .08em !important; }

  /* Hem över hela Sverige: inga tomma höga rutor */
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-presence .hg-presence__principles > div { min-height: 0 !important; padding: 14px 0 !important; }

  /* Har du mark: knappen i linje med texten */
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-land .hg-land__details { justify-content: flex-start !important; align-items: flex-start !important; }

  /* Referensprojekt: texten ovanför bilden istället för ovanpå */
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-fp-hero { display: flex !important; flex-direction: column !important; min-height: 0 !important; height: auto !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-fp-hero .hg-fp-hero__inner { order: 1 !important; width: 100% !important; max-width: none !important; box-sizing: border-box !important; padding: 26px var(--hgx-gutter) 22px !important; margin: 0 !important; min-height: 0 !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-fp-hero .hg-fp-hero__copy { width: auto !important; max-width: none !important; padding: 0 !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-fp-hero .hg-fp-hero__media { order: 2 !important; position: relative !important; inset: auto !important; height: 240px !important; width: 100% !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-fp-hero .hg-fp-hero__media img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-fp-hero .hg-fp-hero__overlay { display: none !important; }

  /* Att köpa bostad: stegen i en kolumn (siffra ovanför texten) */
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-buying-steps .hg-buying-step { grid-template-columns: 1fr !important; gap: 6px !important; padding: 20px 18px !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-buying-steps .hg-buying-step__number { border: 0 !important; padding: 0 !important; font-size: 34px !important; line-height: 1 !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-buying-steps .hg-buying-step__body { padding: 0 !important; }

  /* Hyresbostäder: rubriken i full bredd, blå rutorna kompaktare */
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-rentals-hero .hg-rentals-hero__panel-inner { padding-left: 0 !important; padding-right: 0 !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-rentals-hero h1 { width: auto !important; max-width: none !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-rentals-principles .hg-rentals-principle { padding: 18px var(--hgx-gutter) !important; }

  /* Om oss: tidslinjens texter i full bredd, lagom höga porträtt */
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-about-timeline article p { max-width: none !important; width: auto !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-about-person img { max-height: 360px !important; width: 100% !important; object-fit: cover !important; object-position: 50% 20% !important; }
}

/* Fler blockjusterade texter: Hem över hela Sverige-ingressen och nyhetskorten (svenska och engelska) */
html body:not(#hgx1):not(#hgx2):not(#hgx3) :is(.hg-presence__copy p.hgx-text, .hg-news-card__excerpt) {
  text-align: justify !important; text-align-last: left !important; hyphens: auto !important; -webkit-hyphens: auto !important;
}

/* Pågående projekt: intresseanmälan centrerad som grupp (texten längre in från vänster) */
@media (min-width: 900px) {
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-sale-interest .hg-sale-interest__inner { justify-content: center !important; }
}

/* ===================================================================
   18. Justeringar v1.9.8
   =================================================================== */

/* Utmärkelser: lika mycket luft över och under rubriken och texten (samma höjd) */
@media (min-width: 900px) {
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-awards .hg-section-heading { margin-top: 0 !important; margin-bottom: 0 !important; align-self: center !important; }
}

@media (max-width: 899px) {
  /* Sidhuvud i mobilen: samma höjd, läge och loggstorlek på alla sidor (svenska och engelska) */
  html body:not(#hgx1):not(#hgx2):not(#hgx3) header.hg-header {
    position: sticky !important; top: var(--wp-admin--admin-bar--height, 0px) !important; left: auto !important; right: auto !important;
    z-index: 1000 !important; padding: 0 !important; margin: 0 !important; height: auto !important; min-height: 0 !important;
    background: #f7f4f0 !important; transform: none !important;
  }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) header.hg-header .hg-header__inner { height: 78px !important; min-height: 78px !important; padding: 0 var(--hgx-gutter) !important; display: flex !important; align-items: center !important; justify-content: space-between !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) header.hg-header .hg-header__brand { width: auto !important; max-width: none !important; height: auto !important; display: block !important; margin: 0 !important; padding: 0 !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) header.hg-header .hg-logo { width: 150px !important; max-width: 150px !important; height: auto !important; max-height: none !important; margin: 0 !important; }

  /* Vår filosofi: mindre luft mellan ingressen och bilden */
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-loci-intro .hg-loci-intro__inner { row-gap: 0 !important; gap: 0 !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-loci-intro .hg-loci-intro__copy { padding-bottom: 22px !important; }

  /* Nyheter: mer av huset och mindre himmel i hero-bilden */
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-news-intro__media img { transform: scale(1.26) !important; transform-origin: 60% 100% !important; }
}

/* ===================================================================
   19. Justeringar v1.9.9
   =================================================================== */
@media (max-width: 899px) {
  /* Loggan i mobilens sidhuvud: rätt proportioner och centrerad i höjdled (lika mycket luft över och under) */
  html body:not(#hgx1):not(#hgx2):not(#hgx3) header.hg-header .hg-logo { aspect-ratio: auto !important; min-height: 0 !important; height: auto !important; width: 150px !important; max-width: 150px !important; flex: 0 0 auto !important; object-fit: contain !important; display: block !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) header.hg-header .hg-header__brand { display: flex !important; align-items: center !important; line-height: 0 !important; flex: 0 0 auto !important; width: 150px !important; min-width: 150px !important; }
}

/* ===================================================================
   20. Ny startsidestopp v2.0: mörkblå hero (A) och siffror på vitt kort (B)
   =================================================================== */

/* Hero: mörkblå textyta med mjuk övertoning mot bilden */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home .hg-hero__content,
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home .hg-hero__media.hgx-bg-paper { background: #173452 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home .hg-hero__fade {
  background: linear-gradient(90deg, #173452 0%, #173452 24%, rgba(23, 52, 82, .99) 35%, rgba(23, 52, 82, .9) 46%, rgba(23, 52, 82, .62) 60%, rgba(23, 52, 82, .28) 76%, rgba(23, 52, 82, .07) 91%, rgba(23, 52, 82, 0) 100%) !important;
}
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home .hg-hero__kicker { color: #a22738 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home h1,
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home h1 span { color: #ffffff !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home h1 .hg-word-for,
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home h1 .hg-word-for span,
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home h1 .hgx-h1-tail { font-style: italic !important; color: #a22738 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home .hg-hero__copy::after,
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home .hg-hero__copy [class*="rule"],
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home .hg-hero__copy [class*="accent"] { background-color: #a22738 !important; border-color: #a22738 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home .hg-hero__lead { color: rgba(255, 255, 255, .86) !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home .hg-button--light,
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home .hg-hero__copy .hg-button {
  background: transparent !important; color: #ffffff !important; border: 1px solid rgba(255, 255, 255, .7) !important; box-shadow: none !important;
}
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home .hg-hero__copy .hg-button span { color: #ffffff !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home .hg-hero__copy .hg-button:hover { background: #ffffff !important; color: #173452 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home .hg-hero__copy .hg-button:hover span { color: #173452 !important; }

/* Siffrorna: vitt kort som lägger sig över heroens nederkant */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-home-stats-only { position: relative !important; z-index: 90 !important; overflow: visible !important; background: transparent !important; height: auto !important; max-height: none !important; min-height: 0 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .entry-content section.hg-stats { height: auto !important; max-height: none !important; min-height: 0 !important; overflow: visible !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .entry-content section.hg-stats {
  position: relative !important; z-index: 80 !important; margin-top: -56px !important; padding: 0 clamp(16px, 3.4vw, 48px) 10px !important;
  background: transparent !important;
}
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-stats .hg-stats__grid { background: #ffffff !important; box-shadow: 0 18px 40px rgba(15, 36, 58, .12) !important; padding: 0 !important; max-width: none !important; width: 100% !important; box-sizing: border-box !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-stats .hg-stats__grid { height: auto !important; min-height: 0 !important; max-height: none !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-stats .hg-stat { background: transparent !important; height: auto !important; min-height: 0 !important; max-height: none !important; padding-top: 14px !important; padding-bottom: 14px !important; border-color: #e4ddd2 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-stats .hg-stat__text { height: auto !important; gap: 6px !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-stats .hg-stat + .hg-stat { border-left: 1px solid #e4ddd2 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-stats .hg-stat strong,
html body #hg-home-stats-primary.hg-stats .hg-stat strong { color: #173452 !important; -webkit-text-fill-color: #173452 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-stats .hg-stat span,
html body #hg-home-stats-primary.hg-stats .hg-stat span { color: #5b6676 !important; -webkit-text-fill-color: #5b6676 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3):not(#hgx4) .entry-content section.hg-stats > .hg-shell.hg-stats__grid { padding: 0 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-stats .hg-stat:last-child strong { font-style: italic !important; }
/* bildspelets streck flyttas upp så att kortet inte täcker dem */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home .hg-hero__progress { bottom: 84px !important; }

@media (max-width: 899px) {
  /* Mobil: mörkblå textyta under bilden, kortet med siffror lägger sig över dess nederkant */
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home,
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home .hg-hero__inner,
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home .hg-hero__content,
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home .hg-hero__copy,
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home .hg-hero__media { background: #173452 !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-stats .hg-stats__grid { padding: 0 !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home .hg-hero__inner { padding-bottom: 64px !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home .hg-hero__content { padding-bottom: 0 !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home .hg-hero__fade { display: none !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .entry-content section.hg-stats { margin-top: -44px !important; padding: 0 var(--hgx-gutter) 6px !important; background: transparent !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-stats .hg-stat { padding-top: 18px !important; padding-bottom: 18px !important; border-left: 0 !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-stats .hg-stat__text, html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-stats .hg-stat strong, html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-stats .hg-stat span { background: transparent !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-stats .hg-stat:nth-child(even) { border-left: 1px solid #e4ddd2 !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-stats .hg-stat:nth-child(n+3) { border-top: 1px solid #e4ddd2 !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home .hg-hero__progress { bottom: 16px !important; }
}


/* ===================================================================
   21. Justeringar v2.0.1
   =================================================================== */

/* Startsidan: mörkblått sidhuvud med vit text och vit logga, vinröd hovring (bara startsidan) */
html body:not(#hgx1):not(#hgx2):not(#hgx3) header.hg-header.hg-header--home,
html body:not(#hgx1):not(#hgx2):not(#hgx3) header.hg-header.hg-header--home .hg-header__inner { background: #173452 !important; border-bottom-color: rgba(255, 255, 255, .12) !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) header.hg-header.hg-header--home :is(.hg-header__nav > a, .hg-header__nav > .hg-menu-item > a, .hg-header__language a, .hg-header__language) { color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) header.hg-header.hg-header--home :is(.hg-header__nav > a, .hg-header__nav > .hg-menu-item > a, .hg-header__language a):hover { color: #a22738 !important; -webkit-text-fill-color: #a22738 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) header.hg-header.hg-header--home .hg-header__nav > a.is-active::after,
html body:not(#hgx1):not(#hgx2):not(#hgx3) header.hg-header.hg-header--home .hg-header__nav > a.is-active { border-color: #ffffff !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) header.hg-header.hg-header--home .hg-header__nav > a.is-active::after { background: #ffffff !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) header.hg-header.hg-header--home .hg-mobile-menu-toggle span { background: #ffffff !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) header.hg-header.hg-header--home .hg-mobile-menu-toggle { color: #ffffff !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) header.hg-header.hg-header--home .hg-dropdown a strong { color: #173452 !important; -webkit-text-fill-color: #173452 !important; }

/* Hyresbostäder: "Hem att trivas i" tre steg större */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-rentals-hero h1 { font-size: clamp(40px, 4.4vw, 60px) !important; max-width: none !important; line-height: 1.04 !important; }


/* ===================================================================
   22. Justeringar v2.0.2
   =================================================================== */

/* Vinrött som i loggan även på Hyresbostäders mörkblå ruta */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-rentals-hero .hg-rentals-hero__panel .hg-rentals-eyebrow { color: #a22738 !important; -webkit-text-fill-color: #a22738 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-rentals-hero .hg-rentals-hero__panel .hg-rentals-hero__divider { background: #a22738 !important; border-color: #a22738 !important; }

/* Startsidan: loggan visas först när den vita versionen är klar (ingen mörk logga som blinkar till) */
html body:not(#hgx1):not(#hgx2):not(#hgx3) header.hg-header.hg-header--home .hg-logo:not(.hgx-logo-white) { opacity: 0 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) header.hg-header.hg-header--home .hg-logo.hgx-logo-white { opacity: 1 !important; transition: opacity .2s !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) header.hg-header.hg-header--home { border-bottom: 0 !important; box-shadow: none !important; }

/* Siffer-kortet: hela bredden (inga ljusa ränder vid sidorna) och lite lägre */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .entry-content section.hg-stats { margin-top: -40px !important; padding-left: 0 !important; padding-right: 0 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home .hg-hero__progress { bottom: 64px !important; }

@media (max-width: 899px) {
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .entry-content section.hg-stats { margin-top: -44px !important; padding-left: var(--hgx-gutter) !important; padding-right: var(--hgx-gutter) !important; }
  /* Mobil: ingen ljus kant runt bildspelet */
  html body:not(#hgx1):not(#hgx2):not(#hgx3):not(#hgx4) .hg-hero--home,
  html body:not(#hgx1):not(#hgx2):not(#hgx3):not(#hgx4) .hg-hero--home .hgx-bg-paper,
  html body:not(#hgx1):not(#hgx2):not(#hgx3):not(#hgx4) .hg-hero--home .hg-hero__media,
  html body:not(#hgx1):not(#hgx2):not(#hgx3):not(#hgx4) .hg-hero--home .hg-hero__slide { background: #173452 !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home .hg-hero__slide img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home .hg-hero__inner { margin-top: -1px !important; }
  /* Mobil: jämn luft mellan texterna i heron */
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home .hg-hero__kicker { margin: 0 0 12px !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home h1 { margin: 0 0 18px !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home .hg-hero__lead { margin: 0 0 24px !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home .hg-hero__copy .hg-button { margin-top: 0 !important; }
}


/* ===================================================================
   23. Justeringar v2.0.3
   =================================================================== */

/* Reservlösning för den vita loggan */
html body:not(#hgx1):not(#hgx2):not(#hgx3) header.hg-header.hg-header--home .hg-logo.hgx-logo-filter { filter: brightness(0) invert(1) !important; }

/* Fasadbilden i bildspelet har vita kanter i själva bildfilen: zooma in lite så att de inte syns */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home .hg-hero__slide img[src*="hero-fasad-2026"],
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home .hg-hero__slide img[srcset*="hero-fasad-2026"] { transform: scale(1.09) !important; transform-origin: 50% 30% !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home .hg-hero__slide { overflow: hidden !important; }

/* Inget mellanrum mellan siffer-bannern och Utmärkelser */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .entry-content section.hg-stats { padding-bottom: 0 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-stats .hg-stats__grid { box-shadow: none !important; border-bottom: 1px solid #e4ddd2 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .entry-content section.hg-awards { padding-top: 0 !important; margin-top: 0 !important; }

@media (min-width: 900px) {
  /* Hem för livet lite högre upp */

}

/* v2.0.4: lägre siffer-banner så att Utmärkelser syns utan att scrolla */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-stats .hg-stat { padding-top: 9px !important; padding-bottom: 9px !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-stats .hg-stat__text { gap: 3px !important; }

/* v2.0.5: bild 2 och 3 i bildspelet visar lite längre ner (mindre himmel) */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home .hg-hero__slide img:is([src*="b0a9ba769d235915c0feef32c5da87c5"], [src*="Aby-Angar-Vy-03"]) { object-position: 50% 88% !important; }

/* v2.0.7: mobil, mindre luft mellan "Hem för livet" och texten under */
@media (max-width: 899px) {
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home h1 { line-height: 1.05 !important; padding-bottom: 12px !important; margin-bottom: 14px !important; }
}

/* v2.0.8: mindre luft mellan "Hem för livet" och texten under (dator och mobil), linjen under rubriken syns i vinrött */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home h1 { padding-bottom: 14px !important; margin-bottom: 0 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home h1::after { background: #a22738 !important; border-color: #a22738 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-hero--home .hg-hero__lead { margin-top: 18px !important; }

/* Pågående projekt (mobil): Öreslandet 2 visar sin bild i projektfönstret */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-sale-modal__gallery--ores-hero > figure:first-child { display: block !important; width: 100% !important; height: 100% !important; margin: 0 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-sale-modal__gallery--ores-hero > figure:first-child img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; }

/* v2.0.9: "Hem att trivas i" ett steg mindre */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-rentals-hero h1 { font-size: clamp(36px, 3.8vw, 52px) !important; }

/* v2.1.0: "Hem att trivas i" två steg mindre */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-rentals-hero h1 { font-size: clamp(38px, 3.75vw, 54px) !important; }

/* ===================================================================
   24. Justeringar v2.1.1
   =================================================================== */
@media (max-width: 899px) {
  /* Pågående projekt: mindre luft mellan ingressen och bilden */
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-sale-hero .hg-sale-hero__copy { padding-bottom: 16px !important; }
  /* Pågående projekt: mindre luft före knapparna */
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-sale-interest .hg-sale-interest__inner { row-gap: 18px !important; gap: 18px !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-sale-buying .hg-sale-outline-button { margin-top: 16px !important; }
  /* Så går köpet till: mindre luft mellan texten och Kontakta oss */
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-buying-cta .hg-buying-cta__inner { row-gap: 18px !important; gap: 18px !important; }
  /* Hyresbostäder: tunt vinrött streck mellan Hyresbostäder och rubriken, bilden visar mindre tak */
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-rentals-hero .hg-rentals-hero__divider { display: block !important; width: 48px !important; height: 1px !important; margin: 12px 0 14px !important; background: #a22738 !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-rentals-hero .hg-rentals-hero__picture img { object-position: 50% 80% !important; }
}

/* ===================================================================
   25. v2.1.2: Passion för perfektion och Hem över hela Sverige på vit bakgrund
   med mörkblå text och vinröda detaljer (dator och mobil)
   =================================================================== */
html body:not(#hgx1):not(#hgx2):not(#hgx3):not(#hgx4) .entry-content section:is(.hg-values, .hg-presence) { background: #ffffff !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3):not(#hgx4) .entry-content section:is(.hg-values, .hg-presence) :is(h2, h3, h4, strong, sup) { color: #173452 !important; -webkit-text-fill-color: #173452 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3):not(#hgx4) .entry-content section:is(.hg-values, .hg-presence) :is(p, small, span, li):not([class*="eyebrow"]):not(.hgx-label):not(.hgx-pop *):not(.leaflet-container *) { color: #4a5462 !important; -webkit-text-fill-color: #4a5462 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3):not(#hgx4) .entry-content section:is(.hg-values, .hg-presence) [class*="eyebrow"] { color: #a22738 !important; -webkit-text-fill-color: #a22738 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3):not(#hgx4) .entry-content section.hg-values svg,
html body:not(#hgx1):not(#hgx2):not(#hgx3):not(#hgx4) .entry-content section.hg-values svg * { stroke: #a22738 !important; color: #a22738 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3):not(#hgx4) .entry-content section.hg-presence .hg-card-icon svg,
html body:not(#hgx1):not(#hgx2):not(#hgx3):not(#hgx4) .entry-content section.hg-presence .hg-card-icon svg * { fill: #a22738 !important; color: #a22738 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3):not(#hgx4) .entry-content section:is(.hg-values, .hg-presence) :is(.hg-values__grid, .hg-values__grid > article, .hg-presence__principles, .hg-presence__principles > div) { border-color: #e4ddd2 !important; background: transparent !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3):not(#hgx4) .entry-content section.hg-presence .hg-presence__quote { border-left-color: #a22738 !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3):not(#hgx4) .entry-content section.hg-presence .hg-presence__quote,
html body:not(#hgx1):not(#hgx2):not(#hgx3):not(#hgx4) .entry-content section.hg-presence .hg-presence__quote * { color: #173452 !important; -webkit-text-fill-color: #173452 !important; }

/* v2.1.3 (dator): lägre siffer-banner och utmärkelser, bilden blir lika mycket högre (räknas ut av fitHomeHero) */
@media (min-width: 900px) {
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-stats .hg-stat { padding-top: 4px !important; padding-bottom: 5px !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-stats .hg-stat__text { gap: 1px !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .entry-content section.hg-awards { padding-top: 0 !important; padding-bottom: 0 !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-awards .hg-award { padding-top: 10px !important; padding-bottom: 10px !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-awards .hg-section-heading { padding-top: 10px !important; padding-bottom: 10px !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-awards .hg-award__top { margin-bottom: 10px !important; }
}

/* v2.1.4: ikonerna under Hem över hela Sverige i mörkblått */
html body:not(#hgx1):not(#hgx2):not(#hgx3):not(#hgx4) .entry-content section.hg-presence .hg-card-icon svg,
html body:not(#hgx1):not(#hgx2):not(#hgx3):not(#hgx4) .entry-content section.hg-presence .hg-card-icon svg * { fill: #173452 !important; color: #173452 !important; }

/* v2.1.5: samma vinröda hovring i menyn på alla sidor */
html body:not(#hgx1):not(#hgx2):not(#hgx3):not(#hgx4) header.hg-header :is(.hg-header__nav > a, .hg-header__nav > .hg-menu-item > a, .hg-header__language a, .hg-dropdown a):hover,
html body:not(#hgx1):not(#hgx2):not(#hgx3):not(#hgx4) header.hg-header .hg-dropdown a:hover strong,
html body:not(#hgx1):not(#hgx2):not(#hgx3):not(#hgx4) #hg-mobile-portal a:hover { color: #a22738 !important; -webkit-text-fill-color: #a22738 !important; }

/* ===================================================================
   26. v2.1.6
   =================================================================== */
/* Hem för livet: hela rubriken kritvit och kursiv */
html body:not(#hgx1):not(#hgx2):not(#hgx3):not(#hgx4) .hg-hero--home h1,
html body:not(#hgx1):not(#hgx2):not(#hgx3):not(#hgx4) .hg-hero--home h1 span,
html body:not(#hgx1):not(#hgx2):not(#hgx3):not(#hgx4) .hg-hero--home h1 .hgx-h1-tail { color: #f7f4ef !important; -webkit-text-fill-color: #f7f4ef !important; font-style: italic !important; }

/* Hägerneholm (dator): texten närmare bilden, samma luft mot bilden som mot högerkanten */
@media (min-width: 900px) {
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hgx-featured .hgx-featured__item:first-of-type .hgx-featured__body { margin-left: -38px !important; padding-right: 16px !important; }
}

/* Sjöterrassen: underrubriken i vanlig skrift, inte versaler */


/* Projektfönstrens faktatabeller: ingen grå yta där rutor saknas */
html body:not(#hgx1):not(#hgx2):not(#hgx3) [class*="modal__facts"] { background: transparent !important; }

/* v2.1.8: Hem genom livet, ikonerna centrerade på alla skärmbredder */
html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-lifestages .hg-life-timeline { margin-left: auto !important; margin-right: auto !important; justify-content: center !important; }

/* v2.2.1: Kontakt, ingen onödig luft mellan och runt korten (textstorleken oförändrad) */
@media (min-width: 900px) {
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-contact-panel .hg-contact-grid { padding-left: var(--hgx-gutter) !important; padding-right: var(--hgx-gutter) !important; column-gap: 0 !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-contact-panel .hg-contact-card { padding: 26px 22px !important; box-shadow: none !important; transform: none !important; background: #eaf0f7 !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-contact-panel .hg-contact-card:first-child { padding-left: 0 !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-contact-panel .hg-contact-card:last-child { padding-right: 0 !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-contact-panel .hg-contact-card h2 { max-width: none !important; width: auto !important; }
}

/* v2.2.4: Om oss, bredare textblock bredvid hero-bilden */
@media (min-width: 900px) {
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-about-hero .hg-about-hero__copy { padding-left: calc(var(--hgx-gutter) + 14px) !important; padding-right: 14px !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3) .hg-about-hero .hg-about-hero__copy-inner p:not(.hg-eyebrow) { max-width: none !important; width: auto !important; }
}

/* v2.2.7: startsidan, "Sedan 1994" och strecket under rubriken i vitt */
html body:not(#hgx1):not(#hgx2):not(#hgx3):not(#hgx4) .hg-hero--home .hg-hero__kicker { color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; }
html body:not(#hgx1):not(#hgx2):not(#hgx3):not(#hgx4) .hg-hero--home h1::after,
html body:not(#hgx1):not(#hgx2):not(#hgx3):not(#hgx4) .hg-hero--home .hg-hero__copy [class*="rule"],
html body:not(#hgx1):not(#hgx2):not(#hgx3):not(#hgx4) .hg-hero--home .hg-hero__copy [class*="accent"] { background: #ffffff !important; background-color: #ffffff !important; border-color: #ffffff !important; }

/* Hyresbostäder (mobil): "Hyresbostäder" och strecket i vitt */
@media (max-width: 899px) {
  html body:not(#hgx1):not(#hgx2):not(#hgx3):not(#hgx4) .hg-rentals-hero .hg-rentals-hero__panel .hg-rentals-eyebrow { color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3):not(#hgx4) .hg-rentals-hero .hg-rentals-hero__divider { background: #ffffff !important; border-color: #ffffff !important; }
}

/* v2.5.0: Hem till salu, "Vill du få information om kommande bostäder?": texten börjar vid vänsterkanten och ingressen får plats på en rad. Knappen ligger kvar. */
@media (min-width: 1300px) {
  html body:not(#hgx1):not(#hgx2):not(#hgx3):not(#hgx4) .hg-sale-interest .hg-sale-interest__inner { justify-content: start !important; grid-template-columns: calc((100% + 465px - min(21vw, 300px)) / 2) auto !important; }
  html body:not(#hgx1):not(#hgx2):not(#hgx3):not(#hgx4) .hg-sale-interest .hg-sale-interest__copy,
  html body:not(#hgx1):not(#hgx2):not(#hgx3):not(#hgx4) .hg-sale-interest .hg-sale-interest__copy p { max-width: none !important; }
}

/* v2.5.3: mobil, jämn ruta bakom 01 02 03, bildutsnitt på startsidan, Hyresbostäder och Vår filosofi, centrerad rubrik på Hyresbostäder */
@media (max-width:899px){
html body:not(#hgx1):not(#hgx2):not(#hgx3):not(#hgx4) .hg-hero__progress button{height:auto!important;min-height:0!important;line-height:1!important;padding:5px 8px!important;align-self:flex-start!important}
html body:not(#hgx1):not(#hgx2):not(#hgx3):not(#hgx4) .hg-hero--home .hg-hero__slide:nth-child(1) img{height:120%!important;max-height:none!important;object-position:50% 0%!important}
html body:not(#hgx1):not(#hgx2):not(#hgx3):not(#hgx4) .hg-hero--home .hg-hero__slide:nth-child(2) img{object-position:90% 88%!important}
html body:not(#hgx1):not(#hgx2):not(#hgx3):not(#hgx4) .hg-rentals-hero img{transform:scale(1.18)!important;transform-origin:50% 100%!important}
html body:not(#hgx1):not(#hgx2):not(#hgx3):not(#hgx4) .hg-rentals-hero .hg-rentals-hero__panel-inner{text-align:center!important}
html body:not(#hgx1):not(#hgx2):not(#hgx3):not(#hgx4) .hg-rentals-hero .hg-rentals-hero__panel-inner>*{margin-left:auto!important;margin-right:auto!important}
html body:not(#hgx1):not(#hgx2):not(#hgx3):not(#hgx4) .hg-loci-intro .hg-loci-intro__image{background-size:108% auto!important;background-position:65% 50%!important}
}

/* v2.5.4: mobil, startsidan "Nya hem": mindre luft mellan rubriken och texten under */
@media (max-width: 899px) {
  html body:not(#hgx1):not(#hgx2):not(#hgx3):not(#hgx4) .hg-current .hg-current__heading { row-gap: 14px !important; }
}

/* v2.5.4: mobil, startsidan: lika mycket luft under texten (ovanför 6 000+) som ovanför SEDAN 1994 */
@media (max-width: 899px) {
  html body:not(#hgx1):not(#hgx2):not(#hgx3):not(#hgx4) .hg-hero--home .hg-hero__lead { margin-bottom: 3px !important; }
}
